@evoke-platform/ui-components 1.0.0-dev.185 → 1.0.0-dev.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/published/components/core/Autocomplete/Autocomplete.d.ts +3 -3
- package/dist/published/components/core/Autocomplete/Autocomplete.js +1 -1
- package/dist/published/components/core/Autocomplete/index.d.ts +2 -1
- package/dist/published/components/core/LocalizationProvider/LocalizationProvider.js +6 -4
- package/dist/published/components/core/Select/Select.d.ts +1 -2
- package/dist/published/components/core/Snackbar/Snackbar.d.ts +2 -2
- package/dist/published/components/core/Typography/index.js +1 -0
- package/dist/published/components/core/index.d.ts +4 -2
- package/dist/published/components/custom/BuilderGrid/EmptyContent.d.ts +1 -1
- package/dist/published/components/custom/BuilderGrid/EmptyContent.js +1 -0
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.d.ts +7 -3
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.js +55 -17
- package/dist/published/components/custom/CriteriaBuilder/ValueEditor.js +38 -18
- package/dist/published/components/custom/DataGrid/Toolbar.d.ts +2 -1
- package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.d.ts +10 -0
- package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.js +2 -1
- package/dist/published/components/custom/FormField/FileUpload/FileUpload.js +3 -1
- package/dist/published/components/custom/FormField/FormField.d.ts +9 -6
- package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.js +0 -1
- package/dist/published/components/custom/FormField/Select/Select.js +3 -1
- package/dist/published/components/custom/FormField/TimePickerSelect/TimePickerSelect.js +4 -2
- package/dist/published/components/custom/Menubar/Menubar.d.ts +2 -4
- package/dist/published/components/custom/Menubar/Menubar.js +1 -4
- package/dist/published/components/custom/MultiSelect/MultiSelect.d.ts +5 -6
- package/dist/published/components/custom/MultiSelect/MultiSelect.js +9 -5
- package/dist/published/components/custom/MultiSelect/SortableItem.js +1 -0
- package/dist/published/components/custom/RepeatableField/RepeatableField.d.ts +2 -3
- package/dist/published/components/custom/RepeatableField/RepeatableField.js +2 -2
- package/dist/published/components/custom/UserAvatar/UserAvatar.js +5 -3
- package/dist/published/components/custom/util.js +2 -1
- package/dist/published/icons/custom/Inherited.d.ts +6 -1
- package/dist/published/icons/custom/Overrides.d.ts +22 -2
- package/dist/published/icons/custom/TrashCan.d.ts +22 -2
- package/dist/published/index.d.ts +2 -1
- package/dist/published/index.js +2 -3
- package/dist/published/stories/Accordion.stories.d.ts +3 -2
- package/dist/published/stories/Alert.stories.d.ts +3 -2
- package/dist/published/stories/Appbar.stories.js +1 -1
- package/dist/published/stories/Autocomplete.stories.d.ts +3 -20
- package/dist/published/stories/Autocomplete.stories.js +1 -1
- package/dist/published/stories/Avatar.stories.js +1 -1
- package/dist/published/stories/Backdrop.stories.d.ts +3 -2
- package/dist/published/stories/Backdrop.stories.js +1 -1
- package/dist/published/stories/Badge.stories.d.ts +3 -2
- package/dist/published/stories/Box.stories.d.ts +2 -2
- package/dist/published/stories/Box.stories.js +2 -2
- package/dist/published/stories/Breadcrumbs.stories.d.ts +3 -2
- package/dist/published/stories/Button.stories.d.ts +3 -2
- package/dist/published/stories/ButtonGroup.stories.d.ts +3 -2
- package/dist/published/stories/Card.stories.d.ts +3 -2
- package/dist/published/stories/Checkbox.stories.d.ts +3 -2
- package/dist/published/stories/Chip.stories.d.ts +3 -2
- package/dist/published/stories/CircularProgress.stories.d.ts +3 -2
- package/dist/published/stories/Collapse.stories.d.ts +3 -2
- package/dist/published/stories/Container.stories.d.ts +3 -2
- package/dist/published/stories/CriteriaBuilder.stories.d.ts +5 -4
- package/dist/published/stories/CriteriaBuilder.stories.js +1 -1
- package/dist/published/stories/DataGrid.stories.js +1 -1
- package/dist/published/stories/Dialog.stories.d.ts +3 -2
- package/dist/published/stories/Dialog.stories.js +3 -3
- package/dist/published/stories/Divider.stories.d.ts +3 -2
- package/dist/published/stories/Drawer.stories.d.ts +3 -2
- package/dist/published/stories/FormControl.stories.d.ts +3 -2
- package/dist/published/stories/FormControlLabel.stories.d.ts +3 -2
- package/dist/published/stories/FormControlLabel.stories.js +1 -1
- package/dist/published/stories/FormField.stories.d.ts +12 -10
- package/dist/published/stories/FormGroup.stories.d.ts +3 -2
- package/dist/published/stories/FormHelperText.stories.d.ts +3 -2
- package/dist/published/stories/FormLabel.stories.d.ts +3 -2
- package/dist/published/stories/Grid.stories.d.ts +3 -2
- package/dist/published/stories/IconButton.stories.d.ts +3 -2
- package/dist/published/stories/LinearProgress.stories.d.ts +3 -2
- package/dist/published/stories/Link.stories.d.ts +3 -2
- package/dist/published/stories/List.stories.d.ts +3 -2
- package/dist/published/stories/List.stories.js +1 -1
- package/dist/published/stories/Menu.stories.d.ts +3 -2
- package/dist/published/stories/Menu.stories.js +2 -2
- package/dist/published/stories/MenuBar.stories.js +1 -0
- package/dist/published/stories/Palette.stories.js +1 -1
- package/dist/published/stories/Paper.stories.d.ts +3 -2
- package/dist/published/stories/RadioGroup.stories.d.ts +3 -2
- package/dist/published/stories/Skeleton.stories.d.ts +3 -2
- package/dist/published/stories/Stack.stories.d.ts +3 -2
- package/dist/published/stories/Stepper.stories.d.ts +3 -2
- package/dist/published/stories/Switch.stories.d.ts +3 -2
- package/dist/published/stories/Table.stories.d.ts +3 -2
- package/dist/published/stories/Tabs.stories.d.ts +3 -2
- package/dist/published/stories/TextField.stories.d.ts +4 -3
- package/dist/published/stories/TextField.stories.js +2 -2
- package/dist/published/stories/TimePicker.stories.js +1 -1
- package/dist/published/stories/TimePickerSelect.stories.js +2 -1
- package/dist/published/stories/ToggleButton.stories.d.ts +3 -2
- package/dist/published/stories/ToggleButton.stories.js +4 -4
- package/dist/published/stories/Typography.stories.js +1 -1
- package/dist/published/theme/UIThemeProvider.d.ts +4 -1
- package/dist/published/theme/UIThemeProvider.js +1 -1
- package/dist/published/theme/defaultTheme.js +5 -5
- package/dist/published/types.d.ts +1 -0
- package/package.json +23 -13
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { Dialog as CustomDialog, Button, DialogTitle, DialogActions, DialogContent, TextField, Typography } from '../index';
|
2
|
+
import { Dialog as CustomDialog, Button, DialogTitle, DialogActions, DialogContent, TextField, Typography, } from '../index';
|
3
3
|
export default {
|
4
4
|
title: 'Data Display/Dialog',
|
5
5
|
component: CustomDialog,
|
@@ -14,11 +14,11 @@ const DialogTemplate = (args) => {
|
|
14
14
|
};
|
15
15
|
return (React.createElement(React.Fragment, null,
|
16
16
|
React.createElement(Button, { variant: "outlined", onClick: handleClickOpen }, "Open simple dialog"),
|
17
|
-
React.createElement(CustomDialog, Object.assign({ onClose: handleClose, open: open }
|
17
|
+
React.createElement(CustomDialog, Object.assign({ onClose: handleClose }, args, { open: open }),
|
18
18
|
React.createElement(DialogTitle, null, "Add backup account"),
|
19
19
|
React.createElement(DialogContent, null,
|
20
20
|
React.createElement(Typography, null, "Backup Account:"),
|
21
|
-
React.createElement(TextField, { placeholder:
|
21
|
+
React.createElement(TextField, { placeholder: "Account Name" })),
|
22
22
|
React.createElement(DialogActions, { defaultAction: { text: 'Add', onClick: () => { } }, defaultCancel: { text: 'Cancel', onClick: handleClose } }))));
|
23
23
|
};
|
24
24
|
export const Dialog = DialogTemplate.bind({});
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { DividerProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: DividerProps<"hr", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Divider: ComponentStory<(props:
|
6
|
+
export declare const Divider: ComponentStory<(props: DividerProps<"hr", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { DrawerProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: DrawerProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Drawer: ComponentStory<(props:
|
6
|
+
export declare const Drawer: ComponentStory<(props: DrawerProps) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { FormControlProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: FormControlProps<"div", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const FormControl: ComponentStory<(props:
|
6
|
+
export declare const FormControl: ComponentStory<(props: FormControlProps<"div", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { FormControlLabelProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: FormControlLabelProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const FormControlLabel: ComponentStory<(props:
|
6
|
+
export declare const FormControlLabel: ComponentStory<(props: FormControlLabelProps) => JSX.Element>;
|
@@ -4,5 +4,5 @@ export default {
|
|
4
4
|
title: 'Form Elements/FormControlLabel',
|
5
5
|
component: CustomFormControlLabel,
|
6
6
|
};
|
7
|
-
const FormControlLabelTemplate = (args) => (React.createElement(CustomFormControlLabel, Object.assign({ control: React.createElement(Switch, { defaultChecked: true }), label: "Label" }
|
7
|
+
const FormControlLabelTemplate = (args) => (React.createElement(CustomFormControlLabel, Object.assign({}, args, { control: React.createElement(Switch, { defaultChecked: true }), label: "Label" })));
|
8
8
|
export const FormControlLabel = FormControlLabelTemplate.bind({});
|
@@ -1,12 +1,14 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
2
|
-
|
3
|
+
import { FormFieldProps } from '../components/custom/FormField/FormField';
|
4
|
+
declare const _default: ComponentMeta<(props: FormFieldProps) => JSX.Element>;
|
3
5
|
export default _default;
|
4
|
-
export declare const InputField: ComponentStory<(props:
|
5
|
-
export declare const NumberField: ComponentStory<(props:
|
6
|
-
export declare const MaskedInput: ComponentStory<(props:
|
7
|
-
export declare const ChoicesSelectField: ComponentStory<(props:
|
8
|
-
export declare const DatePickerField: ComponentStory<(props:
|
9
|
-
export declare const BooleanField: ComponentStory<(props:
|
10
|
-
export declare const FileUploadField: ComponentStory<(props:
|
11
|
-
export declare const ArraySelectField: ComponentStory<(props:
|
12
|
-
export declare const AddressField: ComponentStory<(props:
|
6
|
+
export declare const InputField: ComponentStory<(props: FormFieldProps) => JSX.Element>;
|
7
|
+
export declare const NumberField: ComponentStory<(props: FormFieldProps) => JSX.Element>;
|
8
|
+
export declare const MaskedInput: ComponentStory<(props: FormFieldProps) => JSX.Element>;
|
9
|
+
export declare const ChoicesSelectField: ComponentStory<(props: FormFieldProps) => JSX.Element>;
|
10
|
+
export declare const DatePickerField: ComponentStory<(props: FormFieldProps) => JSX.Element>;
|
11
|
+
export declare const BooleanField: ComponentStory<(props: FormFieldProps) => JSX.Element>;
|
12
|
+
export declare const FileUploadField: ComponentStory<(props: FormFieldProps) => JSX.Element>;
|
13
|
+
export declare const ArraySelectField: ComponentStory<(props: FormFieldProps) => JSX.Element>;
|
14
|
+
export declare const AddressField: ComponentStory<(props: FormFieldProps) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { FormGroupProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: FormGroupProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const FormGroup: ComponentStory<(props:
|
6
|
+
export declare const FormGroup: ComponentStory<(props: FormGroupProps) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { FormHelperTextProps } from '../index';
|
4
|
+
declare const _default: ComponentMeta<(props: FormHelperTextProps<"p", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const FormHelperText: ComponentStory<(props:
|
6
|
+
export declare const FormHelperText: ComponentStory<(props: FormHelperTextProps<"p", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { FormLabelProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: FormLabelProps<"label", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const FormLabel: ComponentStory<(props:
|
6
|
+
export declare const FormLabel: ComponentStory<(props: FormLabelProps<"label", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { GridProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: GridProps<"div", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Grid: ComponentStory<(props:
|
6
|
+
export declare const Grid: ComponentStory<(props: GridProps<"div", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { IconButtonProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: IconButtonProps<"button", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const IconButton: ComponentStory<(props:
|
6
|
+
export declare const IconButton: ComponentStory<(props: IconButtonProps<"button", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { LinearProgressProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: LinearProgressProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const LinearProgress: ComponentStory<(props:
|
6
|
+
export declare const LinearProgress: ComponentStory<(props: LinearProgressProps) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { LinkProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: LinkProps<"a", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Link: ComponentStory<(props:
|
6
|
+
export declare const Link: ComponentStory<(props: LinkProps<"a", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { ListProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: ListProps<"ul", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const List: ComponentStory<(props:
|
6
|
+
export declare const List: ComponentStory<(props: ListProps<"ul", {}>) => JSX.Element>;
|
@@ -21,7 +21,7 @@ const ListTemplate = (args) => (React.createElement(Box, { sx: { width: '100%',
|
|
21
21
|
React.createElement(ListItemText, { primary: "Drafts" }))))),
|
22
22
|
React.createElement(Divider, null),
|
23
23
|
React.createElement("nav", { "aria-label": "secondary mailbox folders" },
|
24
|
-
React.createElement(CustomList, Object.assign({},
|
24
|
+
React.createElement(CustomList, Object.assign({}, args),
|
25
25
|
React.createElement(ListItem, { disablePadding: true },
|
26
26
|
React.createElement(ListItemButton, null,
|
27
27
|
React.createElement(ListItemText, { primary: "Trash" }))),
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { MenuProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: MenuProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Menu: ComponentStory<(props:
|
6
|
+
export declare const Menu: ComponentStory<(props: MenuProps) => JSX.Element>;
|
@@ -15,9 +15,9 @@ const MenuTemplate = (args) => {
|
|
15
15
|
};
|
16
16
|
return (React.createElement("div", null,
|
17
17
|
React.createElement(Button, { id: "basic-button", "aria-controls": open ? 'basic-menu' : undefined, "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, onClick: handleClick }, "Dashboard"),
|
18
|
-
React.createElement(CustomMenu, Object.assign({ id: "basic-menu", anchorEl: anchorEl,
|
18
|
+
React.createElement(CustomMenu, Object.assign({ id: "basic-menu", anchorEl: anchorEl, onClose: handleClose, MenuListProps: {
|
19
19
|
'aria-labelledby': 'basic-button',
|
20
|
-
} }, args),
|
20
|
+
} }, args, { open: open }),
|
21
21
|
React.createElement(MenuItem, { onClick: handleClose }, "Profile"),
|
22
22
|
React.createElement(MenuItem, { onClick: handleClose }, "My account"),
|
23
23
|
React.createElement(MenuItem, { onClick: handleClose }, "Logout"))));
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { MenuBar as CustomMenuBar } from '../index';
|
3
3
|
import { Link } from '@mui/material';
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
4
5
|
const logo = require('../assets/SA_logo.jpeg');
|
5
6
|
export default {
|
6
7
|
title: 'Data Display/MenuBar',
|
@@ -34,7 +34,7 @@ const colors = [
|
|
34
34
|
{ colorName: 'success', main: '#54D62C', light: '#AAF27F', dark: '#229A16', darker: '#08660D' },
|
35
35
|
{ colorName: 'error', main: '#A12723', light: '#FF695C', dark: '#B72136', darker: '#7A0C2E' },
|
36
36
|
];
|
37
|
-
const PaletteTemplate = (
|
37
|
+
const PaletteTemplate = () => {
|
38
38
|
return (React.createElement(Grid, { container: true, spacing: 2 }, colors.map((item) => (React.createElement(Grid, { item: true, xs: 12, sm: 12, md: 6 },
|
39
39
|
React.createElement(Grid, { container: true, sx: { backgroundColor: 'rgba(145, 158, 171, 0.08)', padding: 2 } },
|
40
40
|
React.createElement(Grid, { item: true, xs: 6, sm: 6, sx: { px: '5px' } },
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { PaperProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: PaperProps<"div", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Paper: ComponentStory<(props:
|
6
|
+
export declare const Paper: ComponentStory<(props: PaperProps<"div", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { RadioGroupProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: RadioGroupProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const RadioGroup: ComponentStory<(props:
|
6
|
+
export declare const RadioGroup: ComponentStory<(props: RadioGroupProps) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { SkeletonProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: SkeletonProps<"span", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Skeleton: ComponentStory<(props:
|
6
|
+
export declare const Skeleton: ComponentStory<(props: SkeletonProps<"span", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { StackProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: StackProps<"div", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Stack: ComponentStory<(props:
|
6
|
+
export declare const Stack: ComponentStory<(props: StackProps<"div", {}>) => JSX.Element>;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { StepperProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: StepperProps<"div", {
|
4
5
|
component?: React.ElementType<any> | undefined;
|
5
6
|
}>) => JSX.Element>;
|
6
7
|
export default _default;
|
7
|
-
export declare const Stepper: ComponentStory<(props:
|
8
|
+
export declare const Stepper: ComponentStory<(props: StepperProps<"div", {
|
8
9
|
component?: React.ElementType<any> | undefined;
|
9
10
|
}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { SwitchProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: SwitchProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Switch: ComponentStory<(props:
|
6
|
+
export declare const Switch: ComponentStory<(props: SwitchProps) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { TableProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: TableProps<"table", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Table: ComponentStory<(props:
|
6
|
+
export declare const Table: ComponentStory<(props: TableProps<"table", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { TabsProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: TabsProps<import("@mui/material").ExtendButtonBase<import("@mui/material").ButtonBaseTypeMap<{}, "button">>, {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Tabs: ComponentStory<(props:
|
6
|
+
export declare const Tabs: ComponentStory<(props: TabsProps<import("@mui/material").ExtendButtonBase<import("@mui/material").ButtonBaseTypeMap<{}, "button">>, {}>) => JSX.Element>;
|
@@ -1,19 +1,20 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { TextFieldProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: TextFieldProps & {
|
4
5
|
labelPlacement?: string | undefined;
|
5
6
|
readOnly?: boolean | undefined;
|
6
7
|
instructionText?: string | undefined;
|
7
8
|
errorMessage?: string | undefined;
|
8
9
|
}) => JSX.Element>;
|
9
10
|
export default _default;
|
10
|
-
export declare const TextField: ComponentStory<(props:
|
11
|
+
export declare const TextField: ComponentStory<(props: TextFieldProps & {
|
11
12
|
labelPlacement?: string | undefined;
|
12
13
|
readOnly?: boolean | undefined;
|
13
14
|
instructionText?: string | undefined;
|
14
15
|
errorMessage?: string | undefined;
|
15
16
|
}) => JSX.Element>;
|
16
|
-
export declare const TextFieldReadOnly: ComponentStory<(props:
|
17
|
+
export declare const TextFieldReadOnly: ComponentStory<(props: TextFieldProps & {
|
17
18
|
labelPlacement?: string | undefined;
|
18
19
|
readOnly?: boolean | undefined;
|
19
20
|
instructionText?: string | undefined;
|
@@ -4,7 +4,7 @@ export default {
|
|
4
4
|
title: 'Input/TextField',
|
5
5
|
component: CustomTextField,
|
6
6
|
};
|
7
|
-
const TextFieldTemplate = (args) => React.createElement(CustomTextField, Object.assign({}, args));
|
7
|
+
const TextFieldTemplate = (args) => (React.createElement(CustomTextField, Object.assign({}, args)));
|
8
8
|
export const TextField = TextFieldTemplate.bind({});
|
9
9
|
TextField.argTypes = {
|
10
10
|
variant: {
|
@@ -42,7 +42,7 @@ TextField.argTypes = {
|
|
42
42
|
},
|
43
43
|
required: {
|
44
44
|
type: 'boolean',
|
45
|
-
defaultValue: false
|
45
|
+
defaultValue: false,
|
46
46
|
},
|
47
47
|
instructionText: {
|
48
48
|
type: 'string',
|
@@ -29,6 +29,6 @@ const TimePickerTemplate = (args) => {
|
|
29
29
|
setValue(newValue);
|
30
30
|
};
|
31
31
|
return (React.createElement(LocalizationProvider, null,
|
32
|
-
React.createElement(TimePicker, Object.assign({}, rest, { value: value, onChange: handleChange, renderInput: (params) =>
|
32
|
+
React.createElement(TimePicker, Object.assign({}, rest, { value: value, onChange: handleChange, renderInput: (params) => React.createElement(TextField, Object.assign({}, params, { fullWidth: true, size: 'small' })) }))));
|
33
33
|
};
|
34
34
|
export const DatePicker = TimePickerTemplate.bind({});
|
@@ -20,12 +20,13 @@ export default {
|
|
20
20
|
},
|
21
21
|
},
|
22
22
|
};
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
23
24
|
const TimePickerSelectTemplate = (args) => {
|
24
25
|
const { defaultValue } = args, rest = __rest(args, ["defaultValue"]);
|
25
26
|
const [value, setValue] = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : null);
|
26
27
|
const handleChange = (id, newValue, property) => {
|
27
28
|
setValue(newValue);
|
28
29
|
};
|
29
|
-
return
|
30
|
+
return React.createElement(TimePickerSelect, Object.assign({}, rest, { value: value, onChange: handleChange, property: { id: '1' } }));
|
30
31
|
};
|
31
32
|
export const TimePicker = TimePickerSelectTemplate.bind({});
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { ToggleButtonProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: ToggleButtonProps<"button", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const ToggleButton: ComponentStory<(props:
|
6
|
+
export declare const ToggleButton: ComponentStory<(props: ToggleButtonProps<"button", {}>) => JSX.Element>;
|
@@ -11,13 +11,13 @@ const ToggleButtonTemplate = (args) => {
|
|
11
11
|
setAlignment(newAlignment);
|
12
12
|
};
|
13
13
|
return (React.createElement(ToggleButtonGroup, { value: alignment, exclusive: true, onChange: handleAlignment, "aria-label": "text alignment" },
|
14
|
-
React.createElement(CustomToggleButton, Object.assign({
|
14
|
+
React.createElement(CustomToggleButton, Object.assign({ "aria-label": "left aligned" }, args, { value: "left" }),
|
15
15
|
React.createElement(FormatAlignLeft, null)),
|
16
|
-
React.createElement(CustomToggleButton, Object.assign({
|
16
|
+
React.createElement(CustomToggleButton, Object.assign({ "aria-label": "centered" }, args, { value: "center" }),
|
17
17
|
React.createElement(FormatAlignCenter, null)),
|
18
|
-
React.createElement(CustomToggleButton, Object.assign({
|
18
|
+
React.createElement(CustomToggleButton, Object.assign({ "aria-label": "right aligned" }, args, { value: "right" }),
|
19
19
|
React.createElement(FormatAlignRight, null)),
|
20
|
-
React.createElement(CustomToggleButton, Object.assign({
|
20
|
+
React.createElement(CustomToggleButton, Object.assign({ "aria-label": "justified", disabled: true }, args, { value: "justify" }),
|
21
21
|
React.createElement(FormatAlignJustify, null))));
|
22
22
|
};
|
23
23
|
export const ToggleButton = ToggleButtonTemplate.bind({});
|
@@ -4,7 +4,7 @@ export default {
|
|
4
4
|
title: 'Theme/Typography',
|
5
5
|
component: CustomTypography,
|
6
6
|
};
|
7
|
-
const TypographyTemplate = (
|
7
|
+
const TypographyTemplate = () => (React.createElement(Box, null,
|
8
8
|
React.createElement(CustomTypography, { variant: "h1", component: "div", gutterBottom: true }, "h1. Heading"),
|
9
9
|
React.createElement(CustomTypography, { variant: "h2", gutterBottom: true, component: "div" }, "h2. Heading"),
|
10
10
|
React.createElement(CustomTypography, { variant: "h3", gutterBottom: true, component: "div" }, "h3. Heading"),
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
+
import { Theme } from '@mui/material';
|
2
3
|
declare type ThemeProviderPropType = {
|
3
|
-
args?:
|
4
|
+
args?: {
|
5
|
+
theme?: Theme;
|
6
|
+
};
|
4
7
|
children: React.ReactNode | string;
|
5
8
|
};
|
6
9
|
declare function UIThemeProvider(props: ThemeProviderPropType): JSX.Element;
|
@@ -4,7 +4,7 @@ import { defaultTheme } from './defaultTheme';
|
|
4
4
|
function UIThemeProvider(props) {
|
5
5
|
var _a, _b, _c;
|
6
6
|
const { args, children } = props;
|
7
|
-
const theme =
|
7
|
+
const theme = ((_c = (_b = (_a = args === null || args === void 0 ? void 0 : args.theme) === null || _a === void 0 ? void 0 : _a.palette) === null || _b === void 0 ? void 0 : _b.primary) === null || _c === void 0 ? void 0 : _c.main) ? createTheme(args === null || args === void 0 ? void 0 : args.theme) : defaultTheme;
|
8
8
|
return React.createElement(ThemeProvider, { theme: theme }, children);
|
9
9
|
}
|
10
10
|
export default UIThemeProvider;
|
@@ -9,7 +9,7 @@ export const defaultTheme = createTheme({
|
|
9
9
|
secondary: {
|
10
10
|
main: '#DFE3E8',
|
11
11
|
light: '#F1F6FC',
|
12
|
-
dark: '#C7C9CC'
|
12
|
+
dark: '#C7C9CC',
|
13
13
|
},
|
14
14
|
info: {
|
15
15
|
main: '#1890FF',
|
@@ -95,9 +95,9 @@ export const defaultTheme = createTheme({
|
|
95
95
|
styleOverrides: {
|
96
96
|
root: {
|
97
97
|
textTransform: 'none',
|
98
|
-
fontWeight: 700
|
99
|
-
}
|
100
|
-
}
|
101
|
-
}
|
98
|
+
fontWeight: 700,
|
99
|
+
},
|
100
|
+
},
|
101
|
+
},
|
102
102
|
},
|
103
103
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@evoke-platform/ui-components",
|
3
|
-
"version": "1.0.0-dev.
|
3
|
+
"version": "1.0.0-dev.188",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/published/index.js",
|
6
6
|
"module": "dist/published/index.js",
|
@@ -22,12 +22,13 @@
|
|
22
22
|
"prepublish": "rm -rf ./dist && tsc && npm run copy-styles",
|
23
23
|
"storybook": "start-storybook -p 6006",
|
24
24
|
"build-storybook": "build-storybook",
|
25
|
-
"lint": "prettier
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"prettier:fix": "prettier --write
|
30
|
-
"
|
25
|
+
"lint": "npm run prettier:check && npm run eslint",
|
26
|
+
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
|
27
|
+
"prettier:cli": "prettier \"**/*.tsx\" \"**/*.js\" \"**/*.json\" \"**/*.md\"",
|
28
|
+
"prettier:check": "npm run prettier:cli -- -l",
|
29
|
+
"prettier:fix": "npm run prettier:cli -- --write",
|
30
|
+
"eslint": "eslint src",
|
31
|
+
"eslint:fix": "npm run eslint -- --fix"
|
31
32
|
},
|
32
33
|
"author": "",
|
33
34
|
"license": "MIT",
|
@@ -49,19 +50,22 @@
|
|
49
50
|
"@types/node": "^17.0.41",
|
50
51
|
"@types/react": "^17.0.49",
|
51
52
|
"@types/react-dom": "^18.0.5",
|
53
|
+
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
52
54
|
"babel-jest": "^28.1.2",
|
53
55
|
"babel-loader": "^8.2.5",
|
54
56
|
"copyfiles": "^2.4.1",
|
55
|
-
"eslint": "^8.
|
57
|
+
"eslint": "^8.57.0",
|
58
|
+
"eslint-config-prettier": "^8.6.0",
|
56
59
|
"eslint-plugin-jest-dom": "^5.2.0",
|
57
|
-
"eslint-plugin-
|
60
|
+
"eslint-plugin-no-inline-styles": "^1.0.5",
|
61
|
+
"eslint-plugin-prettier": "^5.1.2",
|
58
62
|
"eslint-plugin-testing-library": "^6.2.0",
|
59
63
|
"husky": "^4.3.8",
|
60
64
|
"is-ci": "^3.0.1",
|
61
65
|
"jest": "^28.1.2",
|
62
66
|
"jest-environment-jsdom": "^28.1.2",
|
63
67
|
"lint-staged": "^13.0.1",
|
64
|
-
"prettier": "^
|
68
|
+
"prettier": "^3.0.0",
|
65
69
|
"react": "^18.1.0",
|
66
70
|
"react-dom": "^18.1.0",
|
67
71
|
"rimraf": "^3.0.2",
|
@@ -88,7 +92,7 @@
|
|
88
92
|
"@mui/x-data-grid": "^6.2.1",
|
89
93
|
"@mui/x-date-pickers": "^5.0.13",
|
90
94
|
"@react-querybuilder/dnd": "^5.4.1",
|
91
|
-
"@react-querybuilder/material": "^5.
|
95
|
+
"@react-querybuilder/material": "^6.5.0",
|
92
96
|
"@types/react-input-mask": "^3.0.2",
|
93
97
|
"@typescript-eslint/parser": "^5.35.1",
|
94
98
|
"@typescript-eslint/typescript-estree": "^5.35.1",
|
@@ -97,7 +101,6 @@
|
|
97
101
|
"devextreme-dist": "^23.1.5",
|
98
102
|
"eslint-plugin-no-inline-styles": "^1.0.5",
|
99
103
|
"formiojs": "^4.15.0-rc.23",
|
100
|
-
"lodash-es": "^4.17.21",
|
101
104
|
"pluralize": "^8.0.0",
|
102
105
|
"react-dropzone": "^14.2.2",
|
103
106
|
"react-input-mask": "^2.0.4",
|
@@ -105,7 +108,14 @@
|
|
105
108
|
"react-querybuilder": "^6.0.2"
|
106
109
|
},
|
107
110
|
"lint-staged": {
|
108
|
-
"
|
111
|
+
"*.{js,jsx,ts,tsx,json,css,md}": [
|
112
|
+
"npm run lint:fix"
|
113
|
+
]
|
114
|
+
},
|
115
|
+
"husky": {
|
116
|
+
"hooks": {
|
117
|
+
"pre-commit": "npx lint-staged"
|
118
|
+
}
|
109
119
|
},
|
110
120
|
"jest": {
|
111
121
|
"verbose": true,
|