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 8, 2019
1 parent 90b97bc commit a5b96f8
Show file tree
Hide file tree
Showing 68 changed files with 68 additions and 68 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 @@ -56,7 +56,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 @@ -505,7 +505,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 @@ -457,7 +457,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
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const useStyles = makeStyles(
}`,
},
}),
{ name: 'CheckboxGroupInput' }
{ name: 'RaCheckboxGroupInput' }
);

/**
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const useStyles = makeStyles(
position: 'relative',
},
},
{ name: 'RadioButtonGroupInput' }
{ name: 'RaRadioButtonGroupInput' }
);

/**
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
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/SelectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const useStyles = makeStyles(
minWidth: theme.spacing(20),
},
}),
{ name: 'SelectInput' }
{ name: 'RaSelectInput' }
);

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/layout/AppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const useStyles = makeStyles(
overflow: 'hidden',
},
}),
{ name: 'AppBar' }
{ name: 'RaAppBar' }
);

const AppBar = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/layout/CardActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const useStyles = makeStyles(
padding: 0,
},
},
{ name: 'CardActions' }
{ name: 'RaCardActions' }
);

const CardActions = ({ className, children, ...rest }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/layout/CardContentInner.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var useStyles = makeStyles(
},
},
}),
{ name: 'CardContentInner' }
{ name: 'RaCardContentInner' }
);

/**
Expand Down
Loading

0 comments on commit a5b96f8

Please sign in to comment.