Skip to content

Commit

Permalink
Add Ra prefix to names
Browse files Browse the repository at this point in the history
  • Loading branch information
DanudeSandstorm committed Nov 25, 2019
1 parent fd7ba05 commit 4979a0b
Show file tree
Hide file tree
Showing 68 changed files with 89 additions and 79 deletions.
2 changes: 1 addition & 1 deletion packages/ra-input-rich-text/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { makeStyles } from '@material-ui/core/styles';

import styles from './styles';

const useStyles = makeStyles(styles, { name: 'RichTextInput' });
const useStyles = makeStyles(styles, { name: 'RaRichTextInput' });

const RichTextInput = ({
options = {}, // Quill editor options
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const useStyles = makeStyles(
color: theme.palette.primary.main,
},
}),
{ name: 'Link' }
{ name: 'RaLink' }
);

const Link = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const useStyles = makeStyles(
backgroundColor: theme.palette.secondary[500],
},
}),
{ name: 'Login' }
{ name: 'RaLogin' }
);

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/auth/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const useStyles = makeStyles(
marginRight: theme.spacing(1),
},
}),
{ name: 'LoginForm' }
{ name: 'RaLoginForm' }
);

const Input = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/auth/Logout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const useStyles = makeStyles(
},
icon: { minWidth: theme.spacing(5) },
}),
{ name: 'Logout' }
{ name: 'RaLogout' }
);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const useStyles = makeStyles(
},
},
}),
{ name: 'BulkDeleteWithConfirmButton' }
{ name: 'RaBulkDeleteWithConfirmButton' }
);

const BulkDeleteWithConfirmButton = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const useStyles = makeStyles(
},
},
}),
{ name: 'BulkDeleteWithUndoButton' }
{ name: 'RaBulkDeleteWithUndoButton' }
);

const BulkDeleteWithUndoButton = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const useStyles = makeStyles(
fontSize: 24,
},
},
{ name: 'Button' }
{ name: 'RaButton' }
);

const Button = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/button/CreateButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const useStyles = makeStyles(
color: 'inherit',
},
}),
{ name: 'CreateButton' }
{ name: 'RaCreateButton' }
);

const CreateButton = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const useStyles = makeStyles(
},
},
}),
{ name: 'DeleteWithConfirmButton' }
{ name: 'RaDeleteWithConfirmButton' }
);

const DeleteWithConfirmButton = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const useStyles = makeStyles(
},
},
}),
{ name: 'DeleteWithUndoButton' }
{ name: 'RaDeleteWithUndoButton' }
);

const DeleteWithUndoButton = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/button/SaveButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const useStyles = makeStyles(
fontSize: 18,
},
}),
{ name: 'SaveButton' }
{ name: 'RaSaveButton' }
);

const sanitizeRestProps = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/detail/Create.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const useStyles = makeStyles(
flex: '1 1 auto',
},
}),
{ name: 'Create' }
{ name: 'RaCreate' }
);

const sanitizeRestProps = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/detail/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const useStyles = makeStyles(
flex: '1 1 auto',
},
},
{ name: 'Edit' }
{ name: 'RaEdit' }
);

const sanitizeRestProps = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/detail/Show.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const useStyles = makeStyles(
flex: '1 1 auto',
},
},
{ name: 'Show' }
{ name: 'RaShow' }
);

const sanitizeRestProps = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/detail/TabbedShowLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const useStyles = makeStyles(
paddingRight: theme.spacing(2),
},
}),
{ name: 'TabbedShow' }
{ name: 'RaTabbedShowLayout' }
);

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/field/BooleanField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const useStyles = makeStyles(
whiteSpace: 'nowrap',
},
},
{ name: 'BooleanField' }
{ name: 'RaBooleanField' }
);

interface Props extends FieldProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/field/ChipField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useStyles = makeStyles(
{
chip: { margin: 4 },
},
{ name: 'ChipField' }
{ name: 'RaChipField' }
);

export const ChipField: FunctionComponent<
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/field/FileField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const useStyles = makeStyles(
{
root: { display: 'inline-block' },
},
{ name: 'FileField' }
{ name: 'RaFileField' }
);

interface Props extends FieldProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/field/ImageField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const useStyles = makeStyles(
maxHeight: '10rem',
},
},
{ name: 'ImageField' }
{ name: 'RaImageField' }
);

interface Props extends FieldProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/field/ReferenceArrayField.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const useStyles = makeStyles(
theme => ({
progress: { marginTop: theme.spacing(2) },
}),
{ name: 'ReferenceArrayField' }
{ name: 'RaReferenceArrayField' }
);

export const ReferenceArrayFieldView = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/field/ReferenceField.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const useStyles = makeStyles(
color: theme.palette.primary.main,
},
}),
{ name: 'ReferenceField' }
{ name: 'RaReferenceField' }
);

// useful to prevent click bubbling in a datagrid with rowClick
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/form/FormInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const useStyles = makeStyles(
theme => ({
input: { width: theme.spacing(32) },
}),
{ name: 'FormInput' }
{ name: 'RaFormInput' }
);

export const FormInput = ({ input, classes: classesOverride, ...rest }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/form/TabbedForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const useStyles = makeStyles(
paddingRight: theme.spacing(2),
},
}),
{ name: 'TabbedForm' }
{ name: 'RaTabbedForm' }
);

const TabbedForm = ({ initialValues, defaultValue, saving, ...props }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/form/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const useStyles = makeStyles(
},
},
}),
{ name: 'Toolbar' }
{ name: 'RaToolbar' }
);

const valueOrDefault = (value, defaultValue) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ const useStyles = makeStyles(
},
};
},
{ name: 'AutocompleteArrayInput' }
{ name: 'RaAutocompleteArrayInput' }
);

export default AutocompleteArrayInput;
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/AutocompleteInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ const useStyles = makeStyles(
},
};
},
{ name: 'AutocompleteInput' }
{ name: 'RaAutocompleteInput' }
);

export default AutocompleteInput;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const useStyles = makeStyles(
suggestionText: { fontWeight: 300 },
highlightedSuggestionText: { fontWeight: 500 },
}),
{ name: 'AutocompleteSuggestionItem' }
{ name: 'RaAutocompleteSuggestionItem' }
);

interface Props {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const useStyles = makeStyles(
overflowY: 'auto',
},
},
{ name: 'AutocompleteSuggestionList' }
{ name: 'RaAutocompleteSuggestionList' }
);

interface Props {
Expand Down
19 changes: 12 additions & 7 deletions packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@ const sanitizeRestProps = ({
...rest
}: any) => defaultSanitizeRestProps(rest);

const useStyles = makeStyles(theme => ({
root: {},
label: {
transform: 'translate(0, 8px) scale(0.75)',
transformOrigin: `top ${theme.direction === 'ltr' ? 'left' : 'right'}`,
},
}), { name: 'CheckboxGroupInput' });
const useStyles = makeStyles(
theme => ({
root: {},
label: {
transform: 'translate(0, 8px) scale(0.75)',
transformOrigin: `top ${
theme.direction === 'ltr' ? 'left' : 'right'
}`,
},
}),
{ name: 'RaCheckboxGroupInput' }
);

/**
* An Input component for a checkbox group, using an array of objects for the options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const useStyles = makeStyles(
height: 32,
},
},
{ name: 'CheckboxGroupInputItem' }
{ name: 'RaCheckboxGroupInputItem' }
);

const CheckboxGroupInputItem = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/FileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const useStyles = makeStyles(
removeButton: {},
root: { width: '100%' },
}),
{ name: 'FileInput' }
{ name: 'RaFileInput' }
);

export interface FileInputProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/FileInputPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const useStyles = makeStyles(
color: theme.palette.error.main,
},
}),
{ name: 'FileInputPreview' }
{ name: 'RaFileInputPreview' }
);

interface Props {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/ImageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const useStyles = makeStyles(
},
},
}),
{ name: 'ImageInput' }
{ name: 'RaImageInput' }
);

const ImageInput = (props: FileInputProps & InputProps<FileInputOptions>) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/Labeled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const useStyles = makeStyles(
width: '100%',
},
}),
{ name: 'Labeled' }
{ name: 'RaLabeled' }
);

interface Props {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useStyles = makeStyles(
theme => ({
input: { width: theme.spacing(16) },
}),
{ name: 'NullableBooleanInput' }
{ name: 'RaNullableBooleanInput' }
);

const getBooleanFromString = (value: string): boolean | null => {
Expand Down
17 changes: 11 additions & 6 deletions packages/ra-ui-materialui/src/input/RadioButtonGroupInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ import sanitizeRestProps from './sanitizeRestProps';
import InputHelperText from './InputHelperText';
import RadioButtonGroupInputItem from './RadioButtonGroupInputItem';

const useStyles = makeStyles(theme => ({
label: {
transform: 'translate(0, 5px) scale(0.75)',
transformOrigin: `top ${theme.direction === 'ltr' ? 'left' : 'right'}`,
},
}), { name: 'RadioButtonGroupInput' });
const useStyles = makeStyles(
theme => ({
label: {
transform: 'translate(0, 5px) scale(0.75)',
transformOrigin: `top ${
theme.direction === 'ltr' ? 'left' : 'right'
}`,
},
}),
{ name: 'RaRadioButtonGroupInput' }
);

/**
* An Input component for a radio button group, using an array of objects for the options
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/ResettableTextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const useStyles = makeStyles(
marginRight: 12,
},
},
{ name: 'ResettableTextField' }
{ name: 'RaResettableTextField' }
);

const handleMouseDownClearButton = event => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useStyles = makeStyles(
marginTop: 32,
},
},
{ name: 'SearchInput' }
{ name: 'RaSearchInput' }
);

const SearchInput: FunctionComponent<
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/SelectArrayInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const useStyles = makeStyles(
overflow: 'auto',
},
}),
{ name: 'SelectArrayInput' }
{ name: 'RaSelectArrayInput' }
);

/**
Expand Down
Loading

0 comments on commit 4979a0b

Please sign in to comment.