@evoke-platform/ui-components 1.0.0-dev.184 → 1.0.0-dev.187

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.
Files changed (123) hide show
  1. package/README.md +1 -0
  2. package/dist/published/components/core/Autocomplete/Autocomplete.d.ts +3 -3
  3. package/dist/published/components/core/Autocomplete/Autocomplete.js +5 -5
  4. package/dist/published/components/core/Autocomplete/Autocomplete.test.d.ts +1 -0
  5. package/dist/published/components/core/Autocomplete/Autocomplete.test.js +11 -0
  6. package/dist/published/components/core/Autocomplete/index.d.ts +2 -1
  7. package/dist/published/components/core/LocalizationProvider/LocalizationProvider.js +6 -4
  8. package/dist/published/components/core/Select/Select.d.ts +1 -2
  9. package/dist/published/components/core/Snackbar/Snackbar.d.ts +2 -2
  10. package/dist/published/components/core/TextField/TextField.js +4 -5
  11. package/dist/published/components/core/TextField/TextField.test.js +9 -9
  12. package/dist/published/components/core/Typography/index.js +1 -0
  13. package/dist/published/components/core/index.d.ts +4 -2
  14. package/dist/published/components/custom/BuilderGrid/EmptyContent.d.ts +1 -1
  15. package/dist/published/components/custom/BuilderGrid/EmptyContent.js +1 -0
  16. package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.d.ts +7 -3
  17. package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.js +55 -17
  18. package/dist/published/components/custom/CriteriaBuilder/ValueEditor.js +38 -18
  19. package/dist/published/components/custom/DataGrid/Toolbar.d.ts +2 -1
  20. package/dist/published/components/custom/FormField/AddressFieldComponent/AddressFieldComponent.test.d.ts +1 -0
  21. package/dist/published/components/custom/FormField/AddressFieldComponent/AddressFieldComponent.test.js +89 -0
  22. package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.d.ts +13 -1
  23. package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.js +8 -13
  24. package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.d.ts +3 -1
  25. package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.js +2 -3
  26. package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.test.d.ts +1 -0
  27. package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.test.js +32 -0
  28. package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.d.ts +3 -1
  29. package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.js +2 -3
  30. package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.test.d.ts +1 -0
  31. package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.test.js +73 -0
  32. package/dist/published/components/custom/FormField/FileUpload/FileUpload.d.ts +3 -1
  33. package/dist/published/components/custom/FormField/FileUpload/FileUpload.js +7 -6
  34. package/dist/published/components/custom/FormField/FormField.d.ts +10 -6
  35. package/dist/published/components/custom/FormField/FormField.js +2 -3
  36. package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.d.ts +3 -1
  37. package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.js +3 -5
  38. package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.test.d.ts +1 -0
  39. package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.test.js +52 -0
  40. package/dist/published/components/custom/FormField/Select/Select.d.ts +3 -1
  41. package/dist/published/components/custom/FormField/Select/Select.js +6 -5
  42. package/dist/published/components/custom/FormField/Select/Select.test.d.ts +1 -0
  43. package/dist/published/components/custom/FormField/Select/Select.test.js +68 -0
  44. package/dist/published/components/custom/FormField/TimePickerSelect/TimePickerSelect.d.ts +3 -1
  45. package/dist/published/components/custom/FormField/TimePickerSelect/TimePickerSelect.js +7 -6
  46. package/dist/published/components/custom/Menubar/Menubar.d.ts +2 -4
  47. package/dist/published/components/custom/Menubar/Menubar.js +1 -4
  48. package/dist/published/components/custom/MultiSelect/MultiSelect.d.ts +5 -6
  49. package/dist/published/components/custom/MultiSelect/MultiSelect.js +9 -5
  50. package/dist/published/components/custom/MultiSelect/SortableItem.js +1 -0
  51. package/dist/published/components/custom/RepeatableField/RepeatableField.d.ts +2 -3
  52. package/dist/published/components/custom/RepeatableField/RepeatableField.js +2 -2
  53. package/dist/published/components/custom/UserAvatar/UserAvatar.js +5 -3
  54. package/dist/published/components/custom/util.js +2 -1
  55. package/dist/published/icons/custom/Inherited.d.ts +6 -1
  56. package/dist/published/icons/custom/Overrides.d.ts +22 -2
  57. package/dist/published/icons/custom/TrashCan.d.ts +22 -2
  58. package/dist/published/index.d.ts +2 -1
  59. package/dist/published/index.js +2 -3
  60. package/dist/published/stories/Accordion.stories.d.ts +3 -2
  61. package/dist/published/stories/Alert.stories.d.ts +3 -2
  62. package/dist/published/stories/Appbar.stories.js +1 -1
  63. package/dist/published/stories/Autocomplete.stories.d.ts +3 -20
  64. package/dist/published/stories/Autocomplete.stories.js +1 -1
  65. package/dist/published/stories/Avatar.stories.js +1 -1
  66. package/dist/published/stories/Backdrop.stories.d.ts +3 -2
  67. package/dist/published/stories/Backdrop.stories.js +1 -1
  68. package/dist/published/stories/Badge.stories.d.ts +3 -2
  69. package/dist/published/stories/Box.stories.d.ts +2 -2
  70. package/dist/published/stories/Box.stories.js +2 -2
  71. package/dist/published/stories/Breadcrumbs.stories.d.ts +3 -2
  72. package/dist/published/stories/Button.stories.d.ts +3 -2
  73. package/dist/published/stories/ButtonGroup.stories.d.ts +3 -2
  74. package/dist/published/stories/Card.stories.d.ts +3 -2
  75. package/dist/published/stories/Checkbox.stories.d.ts +3 -2
  76. package/dist/published/stories/Chip.stories.d.ts +3 -2
  77. package/dist/published/stories/CircularProgress.stories.d.ts +3 -2
  78. package/dist/published/stories/Collapse.stories.d.ts +3 -2
  79. package/dist/published/stories/Container.stories.d.ts +3 -2
  80. package/dist/published/stories/CriteriaBuilder.stories.d.ts +5 -4
  81. package/dist/published/stories/CriteriaBuilder.stories.js +1 -1
  82. package/dist/published/stories/DataGrid.stories.js +1 -1
  83. package/dist/published/stories/Dialog.stories.d.ts +3 -2
  84. package/dist/published/stories/Dialog.stories.js +3 -3
  85. package/dist/published/stories/Divider.stories.d.ts +3 -2
  86. package/dist/published/stories/Drawer.stories.d.ts +3 -2
  87. package/dist/published/stories/FormControl.stories.d.ts +3 -2
  88. package/dist/published/stories/FormControlLabel.stories.d.ts +3 -2
  89. package/dist/published/stories/FormControlLabel.stories.js +1 -1
  90. package/dist/published/stories/FormField.stories.d.ts +12 -10
  91. package/dist/published/stories/FormGroup.stories.d.ts +3 -2
  92. package/dist/published/stories/FormHelperText.stories.d.ts +3 -2
  93. package/dist/published/stories/FormLabel.stories.d.ts +3 -2
  94. package/dist/published/stories/Grid.stories.d.ts +3 -2
  95. package/dist/published/stories/IconButton.stories.d.ts +3 -2
  96. package/dist/published/stories/LinearProgress.stories.d.ts +3 -2
  97. package/dist/published/stories/Link.stories.d.ts +3 -2
  98. package/dist/published/stories/List.stories.d.ts +3 -2
  99. package/dist/published/stories/List.stories.js +1 -1
  100. package/dist/published/stories/Menu.stories.d.ts +3 -2
  101. package/dist/published/stories/Menu.stories.js +2 -2
  102. package/dist/published/stories/MenuBar.stories.js +2 -1
  103. package/dist/published/stories/Palette.stories.js +1 -1
  104. package/dist/published/stories/Paper.stories.d.ts +3 -2
  105. package/dist/published/stories/RadioGroup.stories.d.ts +3 -2
  106. package/dist/published/stories/Skeleton.stories.d.ts +3 -2
  107. package/dist/published/stories/Stack.stories.d.ts +3 -2
  108. package/dist/published/stories/Stepper.stories.d.ts +3 -2
  109. package/dist/published/stories/Switch.stories.d.ts +3 -2
  110. package/dist/published/stories/Table.stories.d.ts +3 -2
  111. package/dist/published/stories/Tabs.stories.d.ts +3 -2
  112. package/dist/published/stories/TextField.stories.d.ts +4 -3
  113. package/dist/published/stories/TextField.stories.js +2 -2
  114. package/dist/published/stories/TimePicker.stories.js +1 -1
  115. package/dist/published/stories/TimePickerSelect.stories.d.ts +6 -2
  116. package/dist/published/stories/TimePickerSelect.stories.js +2 -1
  117. package/dist/published/stories/ToggleButton.stories.d.ts +3 -2
  118. package/dist/published/stories/ToggleButton.stories.js +4 -4
  119. package/dist/published/stories/Typography.stories.js +1 -1
  120. package/dist/published/theme/UIThemeProvider.d.ts +4 -1
  121. package/dist/published/theme/UIThemeProvider.js +1 -1
  122. package/dist/published/theme/defaultTheme.js +5 -5
  123. package/package.json +31 -14
@@ -0,0 +1,68 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import '@testing-library/jest-dom/extend-expect';
11
+ import React from 'react';
12
+ import { render, screen } from '@testing-library/react';
13
+ import { userEvent } from '@testing-library/user-event';
14
+ import Select from './Select';
15
+ describe('Single select', () => {
16
+ // Right now an object property is required for this to function, but eventually this should go
17
+ // away.
18
+ const choiceProperty = {
19
+ id: 'selectOptions',
20
+ name: 'Select Options',
21
+ type: 'choices',
22
+ };
23
+ test('returns selected option', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const user = userEvent.setup();
25
+ const onChangeMock = jest.fn((name, value, property) => { });
26
+ const options = ['option 1', 'option 2', 'option 3'];
27
+ render(React.createElement(Select, { id: "testSelect", property: choiceProperty, selectOptions: options, onChange: onChangeMock }));
28
+ const input = screen.getByRole('combobox');
29
+ yield user.click(input);
30
+ const option2 = yield screen.findByRole('option', { name: 'option 2' });
31
+ yield user.click(option2);
32
+ expect(onChangeMock).toBeCalledWith('selectOptions', expect.objectContaining({ label: 'option 2', value: 'option 2' }), choiceProperty);
33
+ }));
34
+ test('displays matching options', () => __awaiter(void 0, void 0, void 0, function* () {
35
+ const user = userEvent.setup();
36
+ const options = ['option 1', 'option 2', 'something different'];
37
+ render(React.createElement(Select, { id: "testSelect", property: choiceProperty, selectOptions: options, onChange: () => { } }));
38
+ const input = screen.getByRole('combobox');
39
+ yield user.type(input, 'option');
40
+ yield screen.findByRole('option', { name: 'option 1' });
41
+ yield screen.findByRole('option', { name: 'option 2' });
42
+ expect(screen.queryByRole('option', { name: 'something different' })).not.toBeInTheDocument();
43
+ }));
44
+ });
45
+ describe('Multi select', () => {
46
+ // Right now an object property is required for this to function, but eventually this should go
47
+ // away.
48
+ const multiChoiceProperty = {
49
+ id: 'multiSelect',
50
+ name: 'Select Multiple',
51
+ type: 'array',
52
+ };
53
+ test('returns selected options', () => __awaiter(void 0, void 0, void 0, function* () {
54
+ const user = userEvent.setup();
55
+ const onChangeMock = jest.fn((name, value, property) => { });
56
+ const options = ['option 1', 'option 2', 'option 3'];
57
+ render(React.createElement(Select, { id: "testSelect", property: multiChoiceProperty, selectOptions: options, onChange: onChangeMock }));
58
+ const input = screen.getByRole('combobox');
59
+ yield user.click(input);
60
+ const option2 = yield screen.findByRole('option', { name: 'option 2' });
61
+ yield user.click(option2);
62
+ yield user.click(input); // selecting option closes the dropdown, re-open the options
63
+ const option3 = yield screen.findByRole('option', { name: 'option 3' });
64
+ yield user.click(option3);
65
+ expect(onChangeMock).toBeCalledTimes(2);
66
+ expect(onChangeMock).lastCalledWith('multiSelect', ['option 2', 'option 3'], multiChoiceProperty);
67
+ }));
68
+ });
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FormFieldProps } from '../FormField';
3
- declare const TimePickerSelect: (props: FormFieldProps) => JSX.Element;
3
+ declare const TimePickerSelect: (props: FormFieldProps & {
4
+ id: string;
5
+ }) => JSX.Element;
4
6
  export default TimePickerSelect;
@@ -2,16 +2,17 @@ import React, { useEffect, useState } from 'react';
2
2
  import { LocalizationProvider, TextField } from '../../../core';
3
3
  import { TimePicker } from '@mui/x-date-pickers';
4
4
  import { LocalDateTime } from '@js-joda/core';
5
- import { padStart } from 'lodash-es';
5
+ import { padStart, isUndefined } from 'lodash';
6
6
  import { InvalidDate } from '../../../../util';
7
7
  const TimePickerSelect = (props) => {
8
- const { property, defaultValue, error, errorMessage, readOnly, required, size, onBlur, placeholder } = props;
8
+ const { id, property, defaultValue, error, errorMessage, readOnly, required, size, onBlur, placeholder } = props;
9
9
  const values = defaultValue ? defaultValue.split(':') : undefined;
10
10
  const hour = values ? parseInt(values[0]) : undefined;
11
11
  const minute = values ? parseInt(values[1]) : undefined;
12
12
  const second = values ? parseInt(values[2]) : undefined;
13
- const [value, setValue] = useState(defaultValue ? LocalDateTime.now().withHour(hour).withMinute(minute).withSecond(second) : null);
14
- const id = property.id;
13
+ const [value, setValue] = useState(defaultValue && !isUndefined(hour) && !isUndefined(minute) && !isUndefined(second)
14
+ ? LocalDateTime.now().withHour(hour).withMinute(minute).withSecond(second)
15
+ : null);
15
16
  useEffect(() => {
16
17
  if (defaultValue) {
17
18
  const values = defaultValue.split(':');
@@ -31,11 +32,11 @@ const TimePickerSelect = (props) => {
31
32
  const hour = padStart(date === null || date === void 0 ? void 0 : date.hour().toString(), 2, '0');
32
33
  const minute = padStart(date === null || date === void 0 ? void 0 : date.minute().toString(), 2, '0');
33
34
  const second = padStart(date === null || date === void 0 ? void 0 : date.second().toString(), 2, '0');
34
- props.onChange(id, `${hour}:${minute}:${second}`, property);
35
+ props.onChange(property.id, `${hour}:${minute}:${second}`, property);
35
36
  }
36
37
  else {
37
38
  setValue(null);
38
- props.onChange(id, date, property);
39
+ props.onChange(property.id, date, property);
39
40
  }
40
41
  };
41
42
  return (React.createElement(LocalizationProvider, null,
@@ -1,12 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { ReactJSXElement } from '@emotion/react/types/jsx-namespace';
3
- declare type MenuBarProps = {
3
+ export declare type MenuBarProps = {
4
4
  showNotifications: boolean;
5
- logo: any;
5
+ logo: string;
6
6
  logoAltText?: string;
7
- notificationProps?: any;
8
7
  navItems?: ReactJSXElement;
9
8
  envName?: string;
10
9
  };
11
10
  export default function MenuBar(props: MenuBarProps): JSX.Element;
12
- export {};
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { AppBar, Toolbar, Box, Typography, CardMedia } from '@mui/material';
3
- import { Notifications as NotificationIcon } from '@mui/icons-material';
4
3
  import UIThemeProvider from '../../../theme';
5
4
  const classes = {
6
5
  title: {
@@ -14,7 +13,6 @@ const classes = {
14
13
  },
15
14
  };
16
15
  export default function MenuBar(props) {
17
- var _a;
18
16
  return (React.createElement(UIThemeProvider, null,
19
17
  React.createElement(AppBar, { color: "inherit", position: "fixed", elevation: 0, sx: { zIndex: (theme) => theme.zIndex.drawer + 1, borderBottom: '1px solid #919EAB3D' } },
20
18
  React.createElement(Toolbar, { sx: { justifyContent: 'space-between' } },
@@ -22,6 +20,5 @@ export default function MenuBar(props) {
22
20
  React.createElement(Typography, { variant: "h5" }, props === null || props === void 0 ? void 0 :
23
21
  props.envName,
24
22
  " ")))),
25
- props.navItems,
26
- props.showNotifications && (React.createElement(NotificationIcon, Object.assign({ color: "action", fontSize: "small" }, props.notificationProps, { sx: Object.assign({ marginLeft: '10px' }, (_a = props.notificationProps) === null || _a === void 0 ? void 0 : _a.sx) })))))));
23
+ props.navItems))));
27
24
  }
@@ -1,16 +1,15 @@
1
1
  /// <reference types="react" />
2
- export declare type DropdownOptions = {
2
+ export declare type DropdownOption = {
3
3
  id?: string;
4
4
  label: string;
5
5
  value: boolean;
6
6
  disabled?: boolean;
7
7
  tooltip?: string;
8
8
  };
9
- declare type MultiSelectProps = {
10
- options: DropdownOptions[];
11
- onChange: Function;
9
+ export declare type MultiSelectProps = {
10
+ options: DropdownOption[];
11
+ onChange: (options: DropdownOption[]) => void;
12
12
  maxHeight?: number;
13
- isSortable?: Boolean;
13
+ isSortable?: boolean;
14
14
  };
15
15
  export default function MultiSelect(props: MultiSelectProps): JSX.Element;
16
- export {};
@@ -3,7 +3,7 @@ import { Box, Grid, InputAdornment, Switch, TextField, Typography, IconButton, B
3
3
  import { Search, DragHandleOutlined } from '@mui/icons-material';
4
4
  import UIThemeProvider from '../../../theme';
5
5
  import { sortBy } from 'lodash';
6
- import { DndContext, closestCenter, KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core';
6
+ import { DndContext, closestCenter, KeyboardSensor, PointerSensor, useSensor, useSensors, } from '@dnd-kit/core';
7
7
  import { SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy } from '@dnd-kit/sortable';
8
8
  import { restrictToVerticalAxis, restrictToWindowEdges } from '@dnd-kit/modifiers';
9
9
  import { SortableItem } from './SortableItem';
@@ -112,9 +112,9 @@ export default function MultiSelect(props) {
112
112
  const { active, over } = event;
113
113
  const items = [...optionsArray];
114
114
  let reOrderedItems = [];
115
- if (active.id !== over.id) {
115
+ if (active.id !== (over === null || over === void 0 ? void 0 : over.id)) {
116
116
  const oldIndex = items.findIndex((item) => item.id === active.id);
117
- const newIndex = items.findIndex((item) => item.id === over.id);
117
+ const newIndex = items.findIndex((item) => item.id === (over === null || over === void 0 ? void 0 : over.id));
118
118
  reOrderedItems = arrayMove(items, oldIndex, newIndex);
119
119
  setOptions(reOrderedItems);
120
120
  onChange(reOrderedItems);
@@ -143,10 +143,14 @@ export default function MultiSelect(props) {
143
143
  React.createElement(Grid, { item: true, xs: 6 },
144
144
  React.createElement(Button, { sx: Object.assign({}, styles.button), variant: "text", onClick: (e) => handleClearAll(e), disabled: optionsArray.every((option) => option.disabled === true) ||
145
145
  optionsArray.every((option) => option.value === false) }, "Clear All")))),
146
- React.createElement(Box, { sx: Object.assign(Object.assign({}, styles.list), { maxHeight: maxHeight !== null && maxHeight !== void 0 ? maxHeight : 'auto' }) }, !!isSortable ? (React.createElement(DndContext, { sensors: sensors, collisionDetection: closestCenter, onDragEnd: handleDragEnd, modifiers: [restrictToVerticalAxis, restrictToWindowEdges] },
146
+ React.createElement(Box, { sx: Object.assign(Object.assign({}, styles.list), { maxHeight: maxHeight !== null && maxHeight !== void 0 ? maxHeight : 'auto' }) }, isSortable ? (React.createElement(DndContext, { sensors: sensors, collisionDetection: closestCenter, onDragEnd: handleDragEnd, modifiers: [restrictToVerticalAxis, restrictToWindowEdges] },
147
147
  React.createElement(SortableContext, { items: optionsArray, strategy: verticalListSortingStrategy }, optionsArray.map((option) => {
148
148
  var _a, _b;
149
- return (React.createElement(SortableItem, { Item: (props) => {
149
+ return (React.createElement(SortableItem
150
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
151
+ , {
152
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
153
+ Item: (props) => {
150
154
  var _a, _b;
151
155
  return (React.createElement(Grid, { item: true, m: 1, sx: styles.listItem, key: (_a = option === null || option === void 0 ? void 0 : option.id) !== null && _a !== void 0 ? _a : option === null || option === void 0 ? void 0 : option.label },
152
156
  React.createElement(Grid, { container: true, justifyContent: "space-between", wrap: "nowrap" },
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { Box } from '@mui/material';
3
3
  import { useSortable } from '@dnd-kit/sortable';
4
4
  import { CSS } from '@dnd-kit/utilities';
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
6
  export const SortableItem = (props) => {
6
7
  const { Item } = props;
7
8
  const { attributes, setActivatorNodeRef, listeners, setNodeRef, transform, transition } = useSortable({
@@ -3,9 +3,9 @@ export declare type DynamicHeaders = {
3
3
  field: string;
4
4
  displayTitle: string;
5
5
  mapping: string;
6
- isError?: Function;
6
+ isError?: (field: Record<string, unknown>) => boolean;
7
7
  };
8
- declare type RepeatableFieldProps = {
8
+ export declare type RepeatableFieldProps = {
9
9
  children: Function;
10
10
  onChange: Function;
11
11
  dynamicHeaders?: DynamicHeaders;
@@ -13,4 +13,3 @@ declare type RepeatableFieldProps = {
13
13
  noInitialItem?: boolean;
14
14
  };
15
15
  export default function RepeatableField(props: RepeatableFieldProps): JSX.Element;
16
- export {};
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useState } from 'react';
2
- import { cloneDeep } from 'lodash-es';
2
+ import { cloneDeep } from 'lodash';
3
3
  import { Accordion, Typography, AccordionSummary, AccordionDetails, Button } from '@mui/material';
4
4
  import UIThemeProvider from '../../../theme';
5
5
  import { InfoRounded, ExpandMore as ExpandMoreIcon, Add as AddIcon } from '@mui/icons-material';
@@ -67,7 +67,7 @@ export default function RepeatableField(props) {
67
67
  initialState[name] = '';
68
68
  }
69
69
  });
70
- let newFields = cloneDeep(selectedField);
70
+ const newFields = cloneDeep(selectedField);
71
71
  newFields[index] = initialState;
72
72
  setSelectField(newFields);
73
73
  onChange(newFields);
@@ -10,11 +10,13 @@ export default function UserAvatar(props) {
10
10
  }
11
11
  else {
12
12
  let sum = 0;
13
- [...userId].forEach((v, index) => sum += userId.charCodeAt(index));
13
+ [...userId].forEach((v, index) => (sum += userId.charCodeAt(index)));
14
14
  return availableColors[sum % availableColors.length];
15
15
  }
16
16
  };
17
17
  const backgroundColor = determineColor(user === null || user === void 0 ? void 0 : user.id);
18
- return (React.createElement(Avatar, Object.assign({}, props, { src: imageUrl !== null && imageUrl !== void 0 ? imageUrl : '', sx: Object.assign(Object.assign({}, props.sx), { backgroundColor: backgroundColor, color: ['#BCD340', '#FFC107'].includes(backgroundColor) ? 'black' : 'white' }) }), (user === null || user === void 0 ? void 0 : user.id) && (user === null || user === void 0 ? void 0 : user.name) ? (_b = (_a = user.name.match(/(\b\S)?/g)) === null || _a === void 0 ? void 0 : _a.join('').match(/(^\S|\S$)?/g)) === null || _b === void 0 ? void 0 : _b.join('').toUpperCase() : undefined));
18
+ return (React.createElement(Avatar, Object.assign({}, props, { src: imageUrl !== null && imageUrl !== void 0 ? imageUrl : '', sx: Object.assign(Object.assign({}, props.sx), { backgroundColor: backgroundColor, color: ['#BCD340', '#FFC107'].includes(backgroundColor) ? 'black' : 'white' }) }), (user === null || user === void 0 ? void 0 : user.id) && (user === null || user === void 0 ? void 0 : user.name)
19
+ ? (_b = (_a = user.name
20
+ .match(/(\b\S)?/g)) === null || _a === void 0 ? void 0 : _a.join('').match(/(^\S|\S$)?/g)) === null || _b === void 0 ? void 0 : _b.join('').toUpperCase()
21
+ : undefined));
19
22
  }
20
- ;
@@ -1,4 +1,5 @@
1
- import { transform, isEqual, isObject } from 'lodash-es';
1
+ import { transform, isEqual, isObject } from 'lodash';
2
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2
3
  export function difference(object, base) {
3
4
  if (!object) {
4
5
  return undefined;
@@ -1,3 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { SvgIconProps } from '@mui/material';
3
- export declare const Inherited: (props: SvgIconProps) => JSX.Element;
3
+ export declare const Inherited: (props: SvgIconProps & {
4
+ sx: {
5
+ width?: string;
6
+ height?: string;
7
+ };
8
+ }) => JSX.Element;
@@ -1,3 +1,23 @@
1
- /// <reference types="react" />
2
1
  import { SvgIconProps } from '@mui/material';
3
- export declare const Overrides: (props: SvgIconProps) => JSX.Element;
2
+ import React from 'react';
3
+ export declare const Overrides: (props: {
4
+ children?: React.ReactNode;
5
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
6
+ color?: "inherit" | "primary" | "secondary" | "error" | "info" | "success" | "warning" | "disabled" | "action" | undefined;
7
+ fontSize?: "inherit" | "large" | "medium" | "small" | undefined;
8
+ htmlColor?: string | undefined;
9
+ inheritViewBox?: boolean | undefined;
10
+ shapeRendering?: string | undefined;
11
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
12
+ titleAccess?: string | undefined;
13
+ viewBox?: string | undefined;
14
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "direction" | "spacing" | "fontFamily" | "fontSize" | "color" | "fontWeight" | "className" | "style" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "clipPath" | "filter" | "mask" | "path" | "key" | "cursor" | "display" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "name" | "type" | "elevation" | "in" | "max" | "href" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
15
+ ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
16
+ }, "fontSize" | "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & {
17
+ sx: {
18
+ [key: string]: unknown;
19
+ width?: string | undefined;
20
+ height?: string | undefined;
21
+ color?: string | undefined;
22
+ };
23
+ }) => JSX.Element;
@@ -1,3 +1,23 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { SvgIconProps } from '@mui/material';
3
- export declare const TrashCan: (props: SvgIconProps) => JSX.Element;
3
+ export declare const TrashCan: (props: {
4
+ children?: React.ReactNode;
5
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
6
+ color?: "inherit" | "primary" | "secondary" | "error" | "info" | "success" | "warning" | "disabled" | "action" | undefined;
7
+ fontSize?: "inherit" | "large" | "medium" | "small" | undefined;
8
+ htmlColor?: string | undefined;
9
+ inheritViewBox?: boolean | undefined;
10
+ shapeRendering?: string | undefined;
11
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
12
+ titleAccess?: string | undefined;
13
+ viewBox?: string | undefined;
14
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "direction" | "spacing" | "fontFamily" | "fontSize" | "color" | "fontWeight" | "className" | "style" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "clipPath" | "filter" | "mask" | "path" | "key" | "cursor" | "display" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "name" | "type" | "elevation" | "in" | "max" | "href" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
15
+ ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
16
+ }, "fontSize" | "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "shapeRendering" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & {
17
+ sx: {
18
+ [key: string]: unknown;
19
+ width?: string | undefined;
20
+ height?: string | undefined;
21
+ color?: string | undefined;
22
+ };
23
+ }) => JSX.Element;
@@ -1,7 +1,8 @@
1
- export { ClickAwayListener, FormControlProps, FormHelperTextProps, GridSize, Toolbar, createTheme, styled, } from '@mui/material';
1
+ export { ClickAwayListener, Toolbar, createTheme, styled } from '@mui/material';
2
2
  export { CalendarPicker, DateTimePicker, MonthPicker, PickersDay, StaticDateTimePicker, StaticTimePicker, TimePicker, YearPicker, } from '@mui/x-date-pickers';
3
3
  export * from './components/core';
4
4
  export { BuilderGrid, CriteriaBuilder, DataGrid, FormField, MenuBar, MultiSelect, RepeatableField, UserAvatar, } from './components/custom';
5
5
  export { Box, Container, Grid, Stack } from './components/layout';
6
6
  export * from './util';
7
7
  export * as EVOKE_TYPES from './types';
8
+ export type { FormControlProps, FormHelperTextProps, GridSize } from '@mui/material';
@@ -1,8 +1,7 @@
1
- export { ClickAwayListener, Toolbar, createTheme, styled, } from '@mui/material';
1
+ export { ClickAwayListener, Toolbar, createTheme, styled } from '@mui/material';
2
2
  export { CalendarPicker, DateTimePicker, MonthPicker, PickersDay, StaticDateTimePicker, StaticTimePicker, TimePicker, YearPicker, } from '@mui/x-date-pickers';
3
3
  export * from './components/core';
4
4
  export { BuilderGrid, CriteriaBuilder, DataGrid, FormField, MenuBar, MultiSelect, RepeatableField, UserAvatar, } from './components/custom';
5
5
  export { Box, Container, Grid, Stack } from './components/layout';
6
6
  export * from './util';
7
- import * as EVOKE_TYPES_1 from './types';
8
- export { EVOKE_TYPES_1 as EVOKE_TYPES };
7
+ export * as EVOKE_TYPES from './types';
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<(props: import("@mui/material").AccordionProps) => JSX.Element>;
3
+ import { AccordionProps } from '@mui/material';
4
+ declare const _default: ComponentMeta<(props: AccordionProps) => JSX.Element>;
4
5
  export default _default;
5
- export declare const Accordion: ComponentStory<(props: import("@mui/material").AccordionProps) => JSX.Element>;
6
+ export declare const Accordion: ComponentStory<(props: AccordionProps) => JSX.Element>;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<(props: import("@mui/material").AlertProps) => JSX.Element>;
3
+ import { AlertProps } from '@mui/material';
4
+ declare const _default: ComponentMeta<(props: AlertProps) => JSX.Element>;
4
5
  export default _default;
5
- export declare const Alert: ComponentStory<(props: import("@mui/material").AlertProps) => JSX.Element>;
6
+ export declare const Alert: ComponentStory<(props: AlertProps) => JSX.Element>;
@@ -5,7 +5,7 @@ export default {
5
5
  title: 'Data Display/AppBar',
6
6
  component: CustomAppBar,
7
7
  };
8
- const Template = (props) => (React.createElement(Box, { sx: { flexGrow: 1 } },
8
+ const Template = () => (React.createElement(Box, { sx: { flexGrow: 1 } },
9
9
  React.createElement(CustomAppBar, { position: "static" },
10
10
  React.createElement(Toolbar, null,
11
11
  React.createElement(IconButton, { size: "large", edge: "start", color: "inherit", "aria-label": "menu", sx: { mr: 2 } },
@@ -1,23 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<(props: import("@mui/material").AutocompleteProps<any, any, any, any, "div"> & {
4
- options: string[] | import("../index").AutocompleteOption[] | number[];
5
- sortBy?: "ASC" | "DESC" | "NONE" | undefined;
6
- label?: string | undefined;
7
- labelPlacement?: string | undefined;
8
- required?: boolean | undefined;
9
- instructionText?: string | undefined;
10
- error?: boolean | undefined;
11
- errorMessage?: string | undefined;
12
- }) => JSX.Element>;
3
+ import { AutocompleteProps } from '../components/core/Autocomplete/Autocomplete';
4
+ declare const _default: ComponentMeta<(props: AutocompleteProps) => JSX.Element>;
13
5
  export default _default;
14
- export declare const Autocomplete: ComponentStory<(props: import("@mui/material").AutocompleteProps<any, any, any, any, "div"> & {
15
- options: string[] | import("../index").AutocompleteOption[] | number[];
16
- sortBy?: "ASC" | "DESC" | "NONE" | undefined;
17
- label?: string | undefined;
18
- labelPlacement?: string | undefined;
19
- required?: boolean | undefined;
20
- instructionText?: string | undefined;
21
- error?: boolean | undefined;
22
- errorMessage?: string | undefined;
23
- }) => JSX.Element>;
6
+ export declare const Autocomplete: ComponentStory<(props: AutocompleteProps) => JSX.Element>;
@@ -409,5 +409,5 @@ export default {
409
409
  },
410
410
  },
411
411
  };
412
- const AutocompleteTemplate = (args) => React.createElement(CustomAutocomplete, Object.assign({}, args));
412
+ const AutocompleteTemplate = (args) => (React.createElement(CustomAutocomplete, Object.assign({}, args)));
413
413
  export const Autocomplete = AutocompleteTemplate.bind({});
@@ -4,5 +4,5 @@ export default {
4
4
  title: 'Data Display/Avatar',
5
5
  component: CustomAvatar,
6
6
  };
7
- const AvatarTemplate = (args) => React.createElement(CustomAvatar, Object.assign({}, args), "AZ");
7
+ const AvatarTemplate = (args) => (React.createElement(CustomAvatar, Object.assign({}, args), "AZ"));
8
8
  export const Avatar = AvatarTemplate.bind({});
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<(props: import("@mui/material").BackdropProps<"div", {}>) => JSX.Element>;
3
+ import { BackdropProps } from '@mui/material';
4
+ declare const _default: ComponentMeta<(props: BackdropProps<"div", {}>) => JSX.Element>;
4
5
  export default _default;
5
- export declare const Backdrop: ComponentStory<(props: import("@mui/material").BackdropProps<"div", {}>) => JSX.Element>;
6
+ export declare const Backdrop: ComponentStory<(props: BackdropProps<"div", {}>) => JSX.Element>;
@@ -14,7 +14,7 @@ const BackdropTemplate = (args) => {
14
14
  };
15
15
  return (React.createElement("div", null,
16
16
  React.createElement(Button, { onClick: handleToggle }, "Show backdrop"),
17
- React.createElement(CustomBackdrop, Object.assign({ sx: { color: '#fff', zIndex: (theme) => theme.zIndex.drawer + 1 }, open: open, onClick: handleClose }, args),
17
+ React.createElement(CustomBackdrop, Object.assign({ sx: { color: '#fff', zIndex: (theme) => theme.zIndex.drawer + 1 }, onClick: handleClose }, args, { open: open }),
18
18
  React.createElement(CircularProgress, { color: "inherit" }))));
19
19
  };
20
20
  export const Backdrop = BackdropTemplate.bind({});
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<(props: import("@mui/material").BadgeProps<"span", {}>) => JSX.Element>;
3
+ import { BadgeProps } from '@mui/material';
4
+ declare const _default: ComponentMeta<(props: BadgeProps<"span", {}>) => JSX.Element>;
4
5
  export default _default;
5
- export declare const Badge: ComponentStory<(props: import("@mui/material").BadgeProps<"span", {}>) => JSX.Element>;
6
+ export declare const Badge: ComponentStory<(props: BadgeProps<"span", {}>) => JSX.Element>;
@@ -4,7 +4,7 @@ declare const _default: ComponentMeta<(props: import("@mui/system").SystemProps<
4
4
  children?: React.ReactNode;
5
5
  component?: React.ElementType<any> | undefined;
6
6
  ref?: React.Ref<unknown> | undefined;
7
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
7
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
8
8
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
9
9
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
10
10
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("zIndex" | "typography" | "fontFamily" | "fontSize" | "color" | "fontWeight" | "lineHeight" | "p" | "margin" | "border" | "boxShadow" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "component"> & {
@@ -16,7 +16,7 @@ export declare const Box: ComponentStory<(props: import("@mui/system").SystemPro
16
16
  children?: React.ReactNode;
17
17
  component?: React.ElementType<any> | undefined;
18
18
  ref?: React.Ref<unknown> | undefined;
19
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
19
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
20
20
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
21
21
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
22
22
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("zIndex" | "typography" | "fontFamily" | "fontSize" | "color" | "fontWeight" | "lineHeight" | "p" | "margin" | "border" | "boxShadow" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "component"> & {
@@ -5,7 +5,7 @@ export default {
5
5
  component: CustomBox,
6
6
  };
7
7
  const BoxTemplate = (args) => {
8
- return (React.createElement(CustomBox, Object.assign({ sx: {
8
+ return (React.createElement(CustomBox, Object.assign({}, args, { sx: {
9
9
  width: 300,
10
10
  height: 300,
11
11
  backgroundColor: 'primary.dark',
@@ -13,6 +13,6 @@ const BoxTemplate = (args) => {
13
13
  backgroundColor: 'primary.main',
14
14
  opacity: [0.9, 0.8, 0.7],
15
15
  },
16
- } }, args)));
16
+ } })));
17
17
  };
18
18
  export const Box = BoxTemplate.bind({});
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<(props: import("@mui/material").BreadcrumbsProps<"nav", {}>) => JSX.Element>;
3
+ import { BreadcrumbsProps } from '@mui/material';
4
+ declare const _default: ComponentMeta<(props: BreadcrumbsProps<"nav", {}>) => JSX.Element>;
4
5
  export default _default;
5
- export declare const Breadcrumbs: ComponentStory<(props: import("@mui/material").BreadcrumbsProps<"nav", {}>) => JSX.Element>;
6
+ export declare const Breadcrumbs: ComponentStory<(props: BreadcrumbsProps<"nav", {}>) => JSX.Element>;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<(props: import("@mui/material").ButtonProps<"button", {}>) => JSX.Element>;
3
+ import { ButtonProps } from '@mui/material';
4
+ declare const _default: ComponentMeta<(props: ButtonProps<"button", {}>) => JSX.Element>;
4
5
  export default _default;
5
- export declare const Button: ComponentStory<(props: import("@mui/material").ButtonProps<"button", {}>) => JSX.Element>;
6
+ export declare const Button: ComponentStory<(props: ButtonProps<"button", {}>) => JSX.Element>;