@evoke-platform/ui-components 1.0.0-dev.216 → 1.0.0-dev.218
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/LICENSE +1 -1
- package/colors.ts +1 -1
- package/dist/published/components/core/Accordion/Accordion.js +1 -1
- package/dist/published/components/core/Accordion/AccordionActions/AccordionActions.js +1 -1
- package/dist/published/components/core/Accordion/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/published/components/core/Accordion/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/published/components/core/Accordion/index.d.ts +2 -2
- package/dist/published/components/core/Accordion/index.js +2 -2
- package/dist/published/components/core/Alert/Alert.js +3 -3
- package/dist/published/components/core/AlertTitle/AlertTitle.js +1 -1
- package/dist/published/components/core/AppBar/AppBar.js +1 -1
- package/dist/published/components/core/Autocomplete/Autocomplete.d.ts +2 -2
- package/dist/published/components/core/Autocomplete/Autocomplete.js +2 -2
- package/dist/published/components/core/Autocomplete/Autocomplete.test.js +1 -1
- package/dist/published/components/core/Avatar/Avatar.js +1 -1
- package/dist/published/components/core/Backdrop/Backdrop.js +1 -1
- package/dist/published/components/core/Badge/Badge.js +1 -1
- package/dist/published/components/core/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/published/components/core/Button/Button.js +1 -1
- package/dist/published/components/core/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/published/components/core/Card/Card.js +1 -1
- package/dist/published/components/core/Checkbox/Checkbox.js +1 -1
- package/dist/published/components/core/Chip/Chip.js +1 -1
- package/dist/published/components/core/CircularProgress/CircularProgress.js +1 -1
- package/dist/published/components/core/Collapse/Collapse.js +1 -1
- package/dist/published/components/core/DatePicker/DatePicker.js +3 -3
- package/dist/published/components/core/DateTimePicker/DateTimePicker.js +3 -3
- package/dist/published/components/core/Dialog/Dialog.js +1 -1
- package/dist/published/components/core/Dialog/DialogActions/DialogActions.d.ts +2 -2
- package/dist/published/components/core/Dialog/DialogActions/DialogActions.js +1 -1
- package/dist/published/components/core/Dialog/DialogContent/DialogContent.js +1 -1
- package/dist/published/components/core/Dialog/DialogContentText/DialogContentText.js +1 -1
- package/dist/published/components/core/Dialog/DialogTitle/DialogTitle.js +1 -1
- package/dist/published/components/core/Dialog/index.d.ts +2 -2
- package/dist/published/components/core/Dialog/index.js +2 -2
- package/dist/published/components/core/Divider/Divider.js +1 -1
- package/dist/published/components/core/Drawer/Drawer.js +1 -1
- package/dist/published/components/core/FieldError/FieldError.js +2 -2
- package/dist/published/components/core/FormElements/FormControl/FormControl.js +1 -1
- package/dist/published/components/core/FormElements/FormControlLabel/FormControlLabel.js +1 -1
- package/dist/published/components/core/FormElements/FormGroup/FormGroup.js +1 -1
- package/dist/published/components/core/FormElements/FormHelperText/FormHelperText.js +1 -1
- package/dist/published/components/core/FormElements/FormLabel/FormLabel.js +1 -1
- package/dist/published/components/core/FormElements/index.d.ts +3 -3
- package/dist/published/components/core/FormElements/index.js +3 -3
- package/dist/published/components/core/IconButton/IconButton.js +1 -1
- package/dist/published/components/core/LinearProgress/LinearProgress.js +1 -1
- package/dist/published/components/core/Link/Link.js +1 -1
- package/dist/published/components/core/List/List.js +1 -1
- package/dist/published/components/core/List/ListItem.js +1 -1
- package/dist/published/components/core/List/ListItemText/ListItemText.js +1 -1
- package/dist/published/components/core/LoadingButton/LoadingButton.js +1 -1
- package/dist/published/components/core/LocalizationProvider/LocalizationProvider.js +4 -4
- package/dist/published/components/core/Menu/Menu.js +1 -1
- package/dist/published/components/core/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/published/components/core/Menu/index.d.ts +1 -1
- package/dist/published/components/core/Menu/index.js +1 -1
- package/dist/published/components/core/Paper/Paper.js +1 -1
- package/dist/published/components/core/Popover/Popover.js +1 -1
- package/dist/published/components/core/Popper/Popper.js +1 -1
- package/dist/published/components/core/RadioGroup/Radio.js +1 -1
- package/dist/published/components/core/RadioGroup/RadioGroup.js +1 -1
- package/dist/published/components/core/Select/Select.js +1 -1
- package/dist/published/components/core/Skeleton/Skeleton.js +1 -1
- package/dist/published/components/core/Snackbar/Snackbar.d.ts +2 -2
- package/dist/published/components/core/Snackbar/Snackbar.js +1 -1
- package/dist/published/components/core/StaticDatePicker/StaticDatePicker.js +2 -2
- package/dist/published/components/core/Stepper/Step/Step.js +1 -1
- package/dist/published/components/core/Stepper/StepButton/StepButton.js +1 -1
- package/dist/published/components/core/Stepper/StepConnector/StepConnector.js +1 -1
- package/dist/published/components/core/Stepper/StepContent/StepContent.js +1 -1
- package/dist/published/components/core/Stepper/StepIcon/StepIcon.js +1 -1
- package/dist/published/components/core/Stepper/StepLabel/StepLabel.js +1 -1
- package/dist/published/components/core/Stepper/Stepper.js +1 -1
- package/dist/published/components/core/Stepper/index.d.ts +5 -5
- package/dist/published/components/core/Stepper/index.js +5 -5
- package/dist/published/components/core/Switch/Switch.js +1 -1
- package/dist/published/components/core/Table/Table.js +1 -1
- package/dist/published/components/core/Tabs/Tab/Tab.js +1 -1
- package/dist/published/components/core/Tabs/Tabs.js +1 -1
- package/dist/published/components/core/Tabs/index.d.ts +2 -2
- package/dist/published/components/core/Tabs/index.js +2 -2
- package/dist/published/components/core/TextField/TextField.js +1 -1
- package/dist/published/components/core/TextField/TextField.test.js +1 -1
- package/dist/published/components/core/ToggleButton/ToggleButton.js +1 -1
- package/dist/published/components/core/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/published/components/core/Tooltip/Tooltip.js +1 -1
- package/dist/published/components/core/Typography/index.js +1 -1
- package/dist/published/components/core/index.d.ts +23 -23
- package/dist/published/components/core/index.js +22 -22
- package/dist/published/components/custom/BuilderGrid/BuilderGrid.d.ts +3 -3
- package/dist/published/components/custom/BuilderGrid/BuilderGrid.js +1 -1
- package/dist/published/components/custom/BuilderGrid/BuilderGridToolbar.d.ts +2 -2
- package/dist/published/components/custom/BuilderGrid/ToolbarActions.d.ts +2 -2
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.d.ts +3 -3
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.js +2 -2
- package/dist/published/components/custom/CriteriaBuilder/ValueEditor.d.ts +1 -1
- package/dist/published/components/custom/CriteriaBuilder/ValueEditor.js +3 -3
- package/dist/published/components/custom/DataGrid/DataGrid.d.ts +1 -1
- package/dist/published/components/custom/DataGrid/DataGrid.js +4 -5
- package/dist/published/components/custom/DataGrid/DateTimeCustomOperator.js +1 -1
- package/dist/published/components/custom/DataGrid/Toolbar.d.ts +1 -1
- package/dist/published/components/custom/DataGrid/Toolbar.js +3 -3
- package/dist/published/components/custom/ErrorComponent/ErrorComponent.d.ts +2 -2
- package/dist/published/components/custom/ErrorComponent/ErrorComponent.js +2 -2
- package/dist/published/components/custom/Form/Common/Form.d.ts +38 -0
- package/dist/published/components/custom/Form/Common/Form.js +413 -0
- package/dist/published/components/custom/Form/Common/FormComponentWrapper.d.ts +26 -0
- package/dist/published/components/custom/Form/Common/FormComponentWrapper.js +79 -0
- package/dist/published/components/custom/Form/Common/index.d.ts +2 -0
- package/dist/published/components/custom/Form/Common/index.js +2 -0
- package/dist/published/components/custom/Form/FormComponents/ButtonComponent.d.ts +37 -0
- package/dist/published/components/custom/Form/FormComponents/ButtonComponent.js +150 -0
- package/dist/published/components/custom/Form/FormComponents/DocumentComponent/Document.d.ts +17 -0
- package/dist/published/components/custom/Form/FormComponents/DocumentComponent/Document.js +80 -0
- package/dist/published/components/custom/Form/FormComponents/DocumentComponent/DocumentComponent.d.ts +23 -0
- package/dist/published/components/custom/Form/FormComponents/DocumentComponent/DocumentComponent.js +154 -0
- package/dist/published/components/custom/Form/FormComponents/DocumentComponent/DocumentList.d.ts +15 -0
- package/dist/published/components/custom/Form/FormComponents/DocumentComponent/DocumentList.js +172 -0
- package/dist/published/components/custom/Form/FormComponents/FormFieldComponent.d.ts +41 -0
- package/dist/published/components/custom/Form/FormComponents/FormFieldComponent.js +409 -0
- package/dist/published/components/custom/Form/FormComponents/ImageComponent/Image.d.ts +15 -0
- package/dist/published/components/custom/Form/FormComponents/ImageComponent/Image.js +111 -0
- package/dist/published/components/custom/Form/FormComponents/ImageComponent/ImageComponent.d.ts +23 -0
- package/dist/published/components/custom/Form/FormComponents/ImageComponent/ImageComponent.js +112 -0
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/InstanceLookup.d.ts +20 -0
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/InstanceLookup.js +229 -0
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/ObjectComponent.d.ts +34 -0
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/ObjectComponent.js +150 -0
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/ObjectPropertyInput.d.ts +3 -0
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/ObjectPropertyInput.js +306 -0
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/RelatedObjectInstance.d.ts +24 -0
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/RelatedObjectInstance.js +126 -0
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ActionDialog.d.ts +21 -0
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ActionDialog.js +96 -0
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ManyToMany/DropdownRepeatableField.d.ts +15 -0
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ManyToMany/DropdownRepeatableField.js +158 -0
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ManyToMany/DropdownRepeatableFieldInput.d.ts +39 -0
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ManyToMany/DropdownRepeatableFieldInput.js +89 -0
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/RepeatableField.d.ts +12 -0
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/RepeatableField.js +369 -0
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/RepeatableFieldComponent.d.ts +20 -0
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/RepeatableFieldComponent.js +57 -0
- package/dist/published/components/custom/Form/FormComponents/UserComponent/UserComponent.d.ts +26 -0
- package/dist/published/components/custom/Form/FormComponents/UserComponent/UserComponent.js +99 -0
- package/dist/published/components/custom/Form/FormComponents/UserComponent/UserProperty.d.ts +23 -0
- package/dist/published/components/custom/Form/FormComponents/UserComponent/UserProperty.js +115 -0
- package/dist/published/components/custom/Form/FormComponents/ViewOnlyComponent.d.ts +20 -0
- package/dist/published/components/custom/Form/FormComponents/ViewOnlyComponent.js +83 -0
- package/dist/published/components/custom/Form/FormComponents/index.d.ts +8 -0
- package/dist/published/components/custom/Form/FormComponents/index.js +8 -0
- package/dist/published/components/custom/Form/index.d.ts +3 -0
- package/dist/published/components/custom/Form/index.js +3 -0
- package/dist/published/components/custom/Form/types.d.ts +109 -0
- package/dist/published/components/custom/Form/types.js +1 -0
- package/dist/published/components/custom/Form/utils.d.ts +45 -0
- package/dist/published/components/custom/Form/utils.js +1036 -0
- package/dist/published/components/custom/FormField/AddressFieldComponent/AddressFieldComponent.test.js +1 -1
- package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.js +1 -1
- package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.test.js +1 -1
- package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.test.js +3 -3
- package/dist/published/components/custom/FormField/DateTimePickerSelect/DateTimePickerSelect.js +2 -2
- package/dist/published/components/custom/FormField/DateTimePickerSelect/DateTimePickerSelect.test.js +4 -4
- package/dist/published/components/custom/FormField/FormField.d.ts +4 -4
- package/dist/published/components/custom/FormField/FormField.js +1 -1
- package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.js +1 -1
- package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.test.js +1 -1
- package/dist/published/components/custom/FormField/Select/Select.test.js +1 -1
- package/dist/published/components/custom/FormField/TimePickerSelect/TimePickerSelect.js +4 -4
- package/dist/published/components/custom/Menubar/Menubar.js +1 -1
- package/dist/published/components/custom/Menubar/Menubar.test.js +2 -2
- package/dist/published/components/custom/MultiSelect/MultiSelect.js +7 -7
- package/dist/published/components/custom/MultiSelect/SortableItem.js +2 -2
- package/dist/published/components/custom/RepeatableField/RepeatableField.js +4 -4
- package/dist/published/components/custom/index.d.ts +1 -0
- package/dist/published/components/custom/index.js +1 -0
- package/dist/published/components/custom/util.js +1 -1
- package/dist/published/components/layout/Box/Box.d.ts +2 -2
- package/dist/published/components/layout/Box/Box.js +1 -1
- package/dist/published/components/layout/Container/Container.js +1 -1
- package/dist/published/components/layout/Grid/Grid.js +1 -1
- package/dist/published/components/layout/Stack/Stack.js +1 -1
- package/dist/published/icons/custom/TrashCan.d.ts +1 -1
- package/dist/published/icons/custom/TrashCan.js +1 -1
- package/dist/published/icons/custom/index.d.ts +1 -1
- package/dist/published/icons/custom/index.js +1 -1
- package/dist/published/index.d.ts +3 -3
- package/dist/published/index.js +2 -2
- package/dist/published/stories/Accordion.stories.d.ts +1 -1
- package/dist/published/stories/Accordion.stories.js +2 -2
- package/dist/published/stories/Alert.stories.d.ts +1 -1
- package/dist/published/stories/AlertTitle.stories.d.ts +1 -1
- package/dist/published/stories/Appbar.stories.d.ts +1 -1
- package/dist/published/stories/Appbar.stories.js +2 -2
- package/dist/published/stories/Autocomplete.stories.d.ts +1 -1
- package/dist/published/stories/Autocomplete.stories.js +3 -3
- package/dist/published/stories/Avatar.stories.d.ts +1 -1
- package/dist/published/stories/Backdrop.stories.d.ts +1 -1
- package/dist/published/stories/Backdrop.stories.js +3 -3
- package/dist/published/stories/Badge.stories.d.ts +1 -1
- package/dist/published/stories/Badge.stories.js +1 -1
- package/dist/published/stories/Box.stories.d.ts +1 -1
- package/dist/published/stories/Breadcrumbs.stories.d.ts +1 -1
- package/dist/published/stories/Button.stories.d.ts +1 -1
- package/dist/published/stories/ButtonGroup.stories.d.ts +1 -1
- package/dist/published/stories/Card.stories.d.ts +1 -1
- package/dist/published/stories/Card.stories.js +1 -1
- package/dist/published/stories/Checkbox.stories.d.ts +1 -1
- package/dist/published/stories/Chip.stories.d.ts +1 -1
- package/dist/published/stories/CircularProgress.stories.d.ts +1 -1
- package/dist/published/stories/Collapse.stories.d.ts +1 -1
- package/dist/published/stories/Collapse.stories.js +1 -1
- package/dist/published/stories/Container.stories.d.ts +1 -1
- package/dist/published/stories/Container.stories.js +3 -3
- package/dist/published/stories/DataGrid.stories.d.ts +1 -1
- package/dist/published/stories/DataGrid.stories.js +1 -1
- package/dist/published/stories/DatePicker.stories.d.ts +1 -1
- package/dist/published/stories/Dialog.stories.d.ts +1 -1
- package/dist/published/stories/Dialog.stories.js +3 -3
- package/dist/published/stories/Divider.stories.d.ts +1 -1
- package/dist/published/stories/Drawer.stories.d.ts +1 -1
- package/dist/published/stories/Drawer.stories.js +4 -4
- package/dist/published/stories/FormControl.stories.d.ts +1 -1
- package/dist/published/stories/FormControl.stories.js +1 -1
- package/dist/published/stories/FormControlLabel.stories.d.ts +1 -1
- package/dist/published/stories/FormGroup.stories.d.ts +1 -1
- package/dist/published/stories/FormHelperText.stories.d.ts +1 -1
- package/dist/published/stories/FormLabel.stories.d.ts +1 -1
- package/dist/published/stories/FormLabel.stories.js +2 -2
- package/dist/published/stories/Grid.stories.d.ts +1 -1
- package/dist/published/stories/IconButton.stories.d.ts +1 -1
- package/dist/published/stories/IconButton.stories.js +1 -1
- package/dist/published/stories/LinearProgress.stories.d.ts +1 -1
- package/dist/published/stories/Link.stories.d.ts +1 -1
- package/dist/published/stories/List.stories.d.ts +1 -1
- package/dist/published/stories/List.stories.js +3 -3
- package/dist/published/stories/Menu.stories.d.ts +1 -1
- package/dist/published/stories/Menu.stories.js +3 -3
- package/dist/published/stories/MenuBar.stories.d.ts +1 -1
- package/dist/published/stories/MenuBar.stories.js +1 -1
- package/dist/published/stories/MultiSelect.stories.d.ts +1 -1
- package/dist/published/stories/MultiSelect.stories.js +1 -1
- package/dist/published/stories/Palette.stories.d.ts +1 -1
- package/dist/published/stories/Palette.stories.js +1 -1
- package/dist/published/stories/Paper.stories.d.ts +1 -1
- package/dist/published/stories/Paper.stories.js +1 -1
- package/dist/published/stories/RadioGroup.stories.d.ts +1 -1
- package/dist/published/stories/RadioGroup.stories.js +1 -1
- package/dist/published/stories/RepeatableField.stories.d.ts +1 -1
- package/dist/published/stories/RepeatableField.stories.js +1 -1
- package/dist/published/stories/Skeleton.stories.d.ts +1 -1
- package/dist/published/stories/Snackbar.stories.d.ts +1 -1
- package/dist/published/stories/Snackbar.stories.js +3 -3
- package/dist/published/stories/Stack.stories.d.ts +1 -1
- package/dist/published/stories/StaticDatePicker.stories.d.ts +1 -1
- package/dist/published/stories/Stepper.stories.d.ts +2 -2
- package/dist/published/stories/Stepper.stories.js +6 -6
- package/dist/published/stories/Switch.stories.d.ts +1 -1
- package/dist/published/stories/Table.stories.d.ts +1 -1
- package/dist/published/stories/Table.stories.js +1 -1
- package/dist/published/stories/Tabs.stories.d.ts +1 -1
- package/dist/published/stories/TextField.stories.d.ts +1 -1
- package/dist/published/stories/TimePicker.stories.d.ts +1 -1
- package/dist/published/stories/TimePicker.stories.js +1 -1
- package/dist/published/stories/TimePickerSelect.stories.d.ts +1 -1
- package/dist/published/stories/ToggleButton.stories.d.ts +1 -1
- package/dist/published/stories/ToggleButton.stories.js +3 -3
- package/dist/published/stories/Typography.stories.d.ts +1 -1
- package/dist/published/stories/Typography.stories.js +1 -1
- package/dist/published/styles/form-component.css +152 -0
- package/dist/published/theme/UIThemeProvider.d.ts +2 -2
- package/dist/published/theme/UIThemeProvider.js +1 -1
- package/dist/published/util/date.d.ts +1 -1
- package/dist/published/util/date.js +1 -1
- package/icons.ts +1 -1
- package/package.json +21 -7
|
@@ -8,9 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import '@testing-library/jest-dom/extend-expect';
|
|
11
|
-
import React from 'react';
|
|
12
11
|
import { render, screen } from '@testing-library/react';
|
|
13
12
|
import { userEvent } from '@testing-library/user-event';
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import AddressFieldComponent from './addressFieldComponent';
|
|
15
15
|
// Right now an object property is required for this to function, but eventually this should go
|
|
16
16
|
// away.
|
package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.js
CHANGED
|
@@ -8,7 +8,7 @@ const AddressFieldComponent = (props) => {
|
|
|
8
8
|
const { id, property, defaultValue, error, errorMessage, onBlur, readOnly, required, size, placeholder, mask, isMultiLineText, rows, inputMaskPlaceholderChar, queryAddresses, additionalProps, } = props;
|
|
9
9
|
const [value, setValue] = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : '');
|
|
10
10
|
const [selectOptions, setSelectOptions] = useState([]);
|
|
11
|
-
const [anchorEl, setAnchorEl] =
|
|
11
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
|
12
12
|
const textFieldRef = useRef(null);
|
|
13
13
|
const open = Boolean(anchorEl);
|
|
14
14
|
const popoverId = open ? `${id}-popover` : undefined;
|
|
@@ -8,9 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import '@testing-library/jest-dom/extend-expect';
|
|
11
|
-
import React from 'react';
|
|
12
11
|
import { render, screen } from '@testing-library/react';
|
|
13
12
|
import { userEvent } from '@testing-library/user-event';
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import BooleanSelect from './BooleanSelect';
|
|
15
15
|
// Right now an object property is required for this to function, but eventually this should go
|
|
16
16
|
// away.
|
package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.test.js
CHANGED
|
@@ -7,13 +7,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
import { LocalDate, Month } from '@js-joda/core';
|
|
10
11
|
import '@testing-library/jest-dom/extend-expect';
|
|
11
|
-
import React from 'react';
|
|
12
12
|
import { render, screen, within } from '@testing-library/react';
|
|
13
13
|
import { userEvent } from '@testing-library/user-event';
|
|
14
|
-
import
|
|
15
|
-
import { LocalDate, Month } from '@js-joda/core';
|
|
14
|
+
import React from 'react';
|
|
16
15
|
import { InvalidDate } from '../../../../util';
|
|
16
|
+
import DatePickerSelect from './DatePickerSelect';
|
|
17
17
|
// Right now an object property is required for this to function, but eventually this should go
|
|
18
18
|
// away.
|
|
19
19
|
const dateProperty = {
|
package/dist/published/components/custom/FormField/DateTimePickerSelect/DateTimePickerSelect.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { LocalDate, LocalDateTime, LocalTime, nativeJs } from '@js-joda/core';
|
|
1
2
|
import React, { useEffect, useState } from 'react';
|
|
3
|
+
import { InvalidDate } from '../../../../util';
|
|
2
4
|
import { DateTimePicker, LocalizationProvider, TextField } from '../../../core';
|
|
3
5
|
import InputFieldComponent from '../InputFieldComponent/InputFieldComponent';
|
|
4
|
-
import { LocalDate, LocalDateTime, LocalTime, nativeJs } from '@js-joda/core';
|
|
5
|
-
import { InvalidDate } from '../../../../util';
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
7
7
|
const { format } = require('small-date');
|
|
8
8
|
function asCalendarDate(value) {
|
package/dist/published/components/custom/FormField/DateTimePickerSelect/DateTimePickerSelect.test.js
CHANGED
|
@@ -7,13 +7,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
import { LocalDateTime, Month } from '@js-joda/core';
|
|
10
11
|
import '@testing-library/jest-dom/extend-expect';
|
|
11
|
-
import React from 'react';
|
|
12
12
|
import { render, screen, within } from '@testing-library/react';
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import { LocalDateTime, Month } from '@js-joda/core';
|
|
13
|
+
import { PointerEventsCheckLevel, userEvent } from '@testing-library/user-event';
|
|
14
|
+
import React from 'react';
|
|
16
15
|
import { InvalidDate } from '../../../../util';
|
|
16
|
+
import DateTimePickerSelect from './DateTimePickerSelect';
|
|
17
17
|
// Right now an object property is required for this to function, but eventually this should go
|
|
18
18
|
// away.
|
|
19
19
|
const dateTimeProperty = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Address } from './AddressFieldComponent/addressFieldComponent';
|
|
1
|
+
import { FocusEventHandler, ReactNode } from 'react';
|
|
3
2
|
import { ObjectProperty } from '../../../types';
|
|
4
3
|
import { AutocompleteOption } from '../../core';
|
|
4
|
+
import { Address } from './AddressFieldComponent/addressFieldComponent';
|
|
5
5
|
export declare type FormFieldProps = {
|
|
6
6
|
id?: string;
|
|
7
7
|
property: ObjectProperty;
|
|
8
8
|
onChange: Function;
|
|
9
|
-
onBlur?:
|
|
9
|
+
onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
10
10
|
defaultValue?: unknown;
|
|
11
11
|
error?: boolean;
|
|
12
12
|
errorMessage?: string;
|
|
@@ -24,7 +24,7 @@ export declare type FormFieldProps = {
|
|
|
24
24
|
inputMaskPlaceholderChar?: string;
|
|
25
25
|
queryAddresses?: (input: string) => Promise<Address[]>;
|
|
26
26
|
isOptionEqualToValue?: (option: AutocompleteOption | string, value: unknown) => boolean;
|
|
27
|
-
renderOption?: (props: unknown, option: AutocompleteOption | string, state: unknown) =>
|
|
27
|
+
renderOption?: (props: unknown, option: AutocompleteOption | string, state: unknown) => ReactNode;
|
|
28
28
|
getOptionLabel?: (option: AutocompleteOption) => string;
|
|
29
29
|
disableCloseOnSelect?: boolean;
|
|
30
30
|
additionalProps?: Record<string, unknown>;
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import AddressFieldComponent from './AddressFieldComponent/addressFieldComponent';
|
|
3
3
|
import BooleanSelect from './BooleanSelect/BooleanSelect';
|
|
4
4
|
import DatePickerSelect from './DatePickerSelect/DatePickerSelect';
|
|
5
|
+
import DateTimePickerSelect from './DateTimePickerSelect/DateTimePickerSelect';
|
|
5
6
|
import FileUploadControl from './FileUpload/FileUpload';
|
|
6
7
|
import InputFieldComponent from './InputFieldComponent/InputFieldComponent';
|
|
7
8
|
import Select from './Select/Select';
|
|
8
9
|
import TimePickerSelect from './TimePickerSelect/TimePickerSelect';
|
|
9
|
-
import DateTimePickerSelect from './DateTimePickerSelect/DateTimePickerSelect';
|
|
10
10
|
const FormField = (props) => {
|
|
11
11
|
const { id, defaultValue, error, onChange, property, readOnly, selectOptions, required, size, placeholder, errorMessage, onBlur, mask, max, min, isMultiLineText, rows, inputMaskPlaceholderChar, queryAddresses, isOptionEqualToValue, renderOption, disableCloseOnSelect, getOptionLabel, additionalProps, } = props;
|
|
12
12
|
let control;
|
package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.js
CHANGED
|
@@ -10,9 +10,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import React, { useEffect, useState } from 'react';
|
|
13
|
+
import InputMask from 'react-input-mask';
|
|
13
14
|
import NumberFormat from 'react-number-format';
|
|
14
15
|
import { Autocomplete, TextField } from '../../../core';
|
|
15
|
-
import InputMask from 'react-input-mask';
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
17
|
export const NumericFormat = (props) => {
|
|
18
18
|
const { inputRef, onChange, defaultValue } = props, other = __rest(props, ["inputRef", "onChange", "defaultValue"]);
|
package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.test.js
CHANGED
|
@@ -8,9 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import '@testing-library/jest-dom/extend-expect';
|
|
11
|
-
import React from 'react';
|
|
12
11
|
import { render, screen } from '@testing-library/react';
|
|
13
12
|
import { userEvent } from '@testing-library/user-event';
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import InputField from './InputFieldComponent';
|
|
15
15
|
describe('Free-text input', () => {
|
|
16
16
|
// Right now an object property is required for this to function, but eventually this should go
|
|
@@ -8,9 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import '@testing-library/jest-dom/extend-expect';
|
|
11
|
-
import React from 'react';
|
|
12
11
|
import { render, screen } from '@testing-library/react';
|
|
13
12
|
import { userEvent } from '@testing-library/user-event';
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import Select from './Select';
|
|
15
15
|
describe('Single select', () => {
|
|
16
16
|
// Right now an object property is required for this to function, but eventually this should go
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { LocalizationProvider, TextField } from '../../../core';
|
|
3
|
-
import { TimePicker } from '@mui/x-date-pickers';
|
|
4
1
|
import { LocalDateTime } from '@js-joda/core';
|
|
5
|
-
import {
|
|
2
|
+
import { TimePicker } from '@mui/x-date-pickers';
|
|
3
|
+
import { isUndefined, padStart } from 'lodash';
|
|
4
|
+
import React, { useEffect, useState } from 'react';
|
|
6
5
|
import { InvalidDate } from '../../../../util';
|
|
6
|
+
import { LocalizationProvider, TextField } from '../../../core';
|
|
7
7
|
const TimePickerSelect = (props) => {
|
|
8
8
|
const { id, property, defaultValue, error, errorMessage, readOnly, required, size, onBlur, placeholder, additionalProps, } = props;
|
|
9
9
|
const values = defaultValue ? defaultValue.split(':') : undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { render, screen } from '@testing-library/react';
|
|
3
|
-
import
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import { Link } from '../../core';
|
|
4
|
+
import Menubar from './index';
|
|
5
5
|
test('render Menubar component without crashing', () => {
|
|
6
6
|
const navItems = (React.createElement(React.Fragment, null,
|
|
7
7
|
React.createElement(Link, { href: "#" }, "Object1"),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { closestCenter, DndContext, KeyboardSensor, PointerSensor, useSensor, useSensors, } from '@dnd-kit/core';
|
|
2
|
+
import { restrictToVerticalAxis, restrictToWindowEdges } from '@dnd-kit/modifiers';
|
|
3
|
+
import { SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
4
|
+
import { DragHandleOutlined, Search, WarningRounded } from '@mui/icons-material';
|
|
5
|
+
import { AlertTitle, Box, Button, Grid, IconButton, InputAdornment, Switch, TextField, Typography, } from '@mui/material';
|
|
6
|
+
import { sortBy } from 'lodash';
|
|
1
7
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { Box, Grid, InputAdornment, Switch, TextField, Typography, IconButton, Button, AlertTitle, } from '@mui/material';
|
|
3
|
-
import { Search, DragHandleOutlined, WarningRounded } from '@mui/icons-material';
|
|
4
8
|
import UIThemeProvider from '../../../theme';
|
|
5
|
-
import { sortBy } from 'lodash';
|
|
6
|
-
import { DndContext, closestCenter, KeyboardSensor, PointerSensor, useSensor, useSensors, } from '@dnd-kit/core';
|
|
7
|
-
import { SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
8
|
-
import { restrictToVerticalAxis, restrictToWindowEdges } from '@dnd-kit/modifiers';
|
|
9
|
-
import { SortableItem } from './SortableItem';
|
|
10
9
|
import { Alert, Tooltip } from '../../core';
|
|
10
|
+
import { SortableItem } from './SortableItem';
|
|
11
11
|
const styles = {
|
|
12
12
|
textField: {
|
|
13
13
|
borderRadius: '8px',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Box } from '@mui/material';
|
|
3
1
|
import { useSortable } from '@dnd-kit/sortable';
|
|
4
2
|
import { CSS } from '@dnd-kit/utilities';
|
|
3
|
+
import { Box } from '@mui/material';
|
|
4
|
+
import React from 'react';
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
6
|
export const SortableItem = (props) => {
|
|
7
7
|
const { Item } = props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Add as AddIcon, ExpandMore as ExpandMoreIcon, InfoRounded } from '@mui/icons-material';
|
|
2
|
+
import { Accordion, AccordionDetails, AccordionSummary, Button, Typography } from '@mui/material';
|
|
2
3
|
import { cloneDeep } from 'lodash';
|
|
3
|
-
import
|
|
4
|
+
import React, { Fragment, useEffect, useState } from 'react';
|
|
4
5
|
import UIThemeProvider from '../../../theme';
|
|
5
|
-
import { InfoRounded, ExpandMore as ExpandMoreIcon, Add as AddIcon } from '@mui/icons-material';
|
|
6
6
|
const styles = {
|
|
7
7
|
accordion: {
|
|
8
8
|
borderRadius: '8px',
|
|
@@ -112,7 +112,7 @@ export default function RepeatableField(props) {
|
|
|
112
112
|
(dynamicHeaders === null || dynamicHeaders === void 0 ? void 0 : dynamicHeaders.isError) && (dynamicHeaders === null || dynamicHeaders === void 0 ? void 0 : dynamicHeaders.isError(field)) && (React.createElement(InfoRounded, { sx: { color: '#A12723', paddingRight: '4px' } })),
|
|
113
113
|
React.createElement(Typography, { sx: { padding: '4px' } }, displayHeaders(index))),
|
|
114
114
|
React.createElement(AccordionDetails, { sx: styles.accordionDetails },
|
|
115
|
-
React.createElement(
|
|
115
|
+
React.createElement(Fragment, null, children(handler, index, selectedField)),
|
|
116
116
|
React.createElement(Button, { variant: "outlined", color: "error", size: "small", sx: { margin: '15px 0 0 0', borderRadius: '8px', width: 'max-content' }, onClick: () => handleRemoveSelectField(index) },
|
|
117
117
|
"Delete ",
|
|
118
118
|
(dynamicHeaders === null || dynamicHeaders === void 0 ? void 0 : dynamicHeaders.displayTitle) || 'Item'))))),
|
|
@@ -2,6 +2,7 @@ export { BuilderGrid } from './BuilderGrid';
|
|
|
2
2
|
export { CriteriaBuilder } from './CriteriaBuilder';
|
|
3
3
|
export { DataGrid } from './DataGrid';
|
|
4
4
|
export { ErrorComponent } from './ErrorComponent';
|
|
5
|
+
export { Form } from './Form';
|
|
5
6
|
export { FormField } from './FormField';
|
|
6
7
|
export { MenuBar } from './Menubar';
|
|
7
8
|
export { MultiSelect } from './MultiSelect';
|
|
@@ -2,6 +2,7 @@ export { BuilderGrid } from './BuilderGrid';
|
|
|
2
2
|
export { CriteriaBuilder } from './CriteriaBuilder';
|
|
3
3
|
export { DataGrid } from './DataGrid';
|
|
4
4
|
export { ErrorComponent } from './ErrorComponent';
|
|
5
|
+
export { Form } from './Form';
|
|
5
6
|
export { FormField } from './FormField';
|
|
6
7
|
export { MenuBar } from './Menubar';
|
|
7
8
|
export { MultiSelect } from './MultiSelect';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
3
|
declare type CustomBoxProps = BoxProps & {
|
|
4
4
|
sx?: object;
|
|
5
|
-
component?:
|
|
5
|
+
component?: ElementType;
|
|
6
6
|
};
|
|
7
7
|
declare const Box: (props: CustomBoxProps) => JSX.Element;
|
|
8
8
|
export default Box;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SvgIcon } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export const TrashCan = (props) => {
|
|
4
4
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5
5
|
return (React.createElement(SvgIcon, Object.assign({}, props, { viewBox: '0 0 20 20', sx: Object.assign({ verticalAlign: 'top', maxWidth: (_b = (_a = props.sx) === null || _a === void 0 ? void 0 : _a['width']) !== null && _b !== void 0 ? _b : '24', maxHeight: (_d = (_c = props.sx) === null || _c === void 0 ? void 0 : _c['height']) !== null && _d !== void 0 ? _d : '24' }, props.sx) }),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
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
|
-
export { BuilderGrid, CriteriaBuilder, DataGrid, ErrorComponent, FormField, MenuBar, MultiSelect, RepeatableField, UserAvatar, } from './components/custom';
|
|
4
|
+
export { BuilderGrid, CriteriaBuilder, DataGrid, ErrorComponent, Form, FormField, MenuBar, MultiSelect, RepeatableField, UserAvatar, } from './components/custom';
|
|
5
5
|
export { Box, Container, Grid, Stack } from './components/layout';
|
|
6
|
-
export * from './util';
|
|
7
6
|
export * as EVOKE_TYPES from './types';
|
|
7
|
+
export * from './util';
|
|
8
8
|
export type { ButtonBaseActions, ButtonBaseClasses, FormControlProps, FormHelperTextProps, GridSize, MenuItemClasses, Theme, } from '@mui/material';
|
|
9
|
-
export type {
|
|
9
|
+
export type { TouchRippleActions, TouchRippleProps } from '@mui/material/ButtonBase/TouchRipple';
|
|
10
10
|
export type { CommonProps } from '@mui/material/OverridableComponent';
|
|
11
11
|
export type { SxProps } from '@mui/system';
|
package/dist/published/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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
|
-
export { BuilderGrid, CriteriaBuilder, DataGrid, ErrorComponent, FormField, MenuBar, MultiSelect, RepeatableField, UserAvatar, } from './components/custom';
|
|
4
|
+
export { BuilderGrid, CriteriaBuilder, DataGrid, ErrorComponent, Form, FormField, MenuBar, MultiSelect, RepeatableField, UserAvatar, } from './components/custom';
|
|
5
5
|
export { Box, Container, Grid, Stack } from './components/layout';
|
|
6
|
-
export * from './util';
|
|
7
6
|
export * as EVOKE_TYPES from './types';
|
|
7
|
+
export * from './util';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { AccordionProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: AccordionProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Accordion: ComponentStory<(props: AccordionProps) => JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Typography } from '@mui/material';
|
|
3
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AccordionDetails, AccordionSummary, Accordion as CustomAccordion } from '../index';
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Data Display/Accordion',
|
|
6
6
|
component: CustomAccordion,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { AlertProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: AlertProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Alert: ComponentStory<(props: AlertProps) => JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { AlertTitleProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: AlertTitleProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const AlertTitle: ComponentStory<(props: AlertTitleProps) => JSX.Element>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
3
|
declare const _default: ComponentMeta<(props: import("@mui/material").AppBarProps<"header", {}>) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const AppBar: ComponentStory<(props: import("@mui/material").AppBarProps<"header", {}>) => JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AppBar as CustomAppBar, Toolbar, Typography, Box, Button, IconButton } from '../index';
|
|
3
1
|
import { Menu } from '@mui/icons-material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Box, Button, AppBar as CustomAppBar, IconButton, Toolbar, Typography } from '../index';
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Data Display/AppBar',
|
|
6
6
|
component: CustomAppBar,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
3
|
import { AutocompleteProps } from '../components/core/Autocomplete/Autocomplete';
|
|
4
4
|
declare const _default: ComponentMeta<(props: AutocompleteProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { TextField } from '@mui/material';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { Autocomplete as CustomAutocomplete } from '../index';
|
|
3
|
-
import { TextField } from '@mui/material';
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Input/Autocomplete',
|
|
6
6
|
component: CustomAutocomplete,
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
173
173
|
getOptionDisabled: {
|
|
174
174
|
type: 'function',
|
|
175
175
|
description: `Used to determine the disabled state for a given option.
|
|
176
|
-
|
|
176
|
+
|
|
177
177
|
Signature:
|
|
178
178
|
function(option: T) => boolean
|
|
179
179
|
option: The option to test.
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
262
262
|
multiple: {
|
|
263
263
|
type: 'boolean',
|
|
264
264
|
defaultValue: false,
|
|
265
|
-
description: `
|
|
265
|
+
description: `
|
|
266
266
|
If true, value must be an array and the menu will support multiple selections`,
|
|
267
267
|
},
|
|
268
268
|
noOptionsText: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
3
|
declare const _default: ComponentMeta<(props: import("../components/core/Avatar/Avatar").CustomAvatarProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Avatar: ComponentStory<(props: import("../components/core/Avatar/Avatar").CustomAvatarProps) => JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { BackdropProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: BackdropProps<"div", {}>) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Backdrop: ComponentStory<(props: BackdropProps<"div", {}>) => JSX.Element>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Backdrop as CustomBackdrop
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Button, CircularProgress, Backdrop as CustomBackdrop } from '../index';
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Data Display/Backdrop',
|
|
5
5
|
component: CustomBackdrop,
|
|
6
6
|
};
|
|
7
7
|
const BackdropTemplate = (args) => {
|
|
8
|
-
const [open, setOpen] =
|
|
8
|
+
const [open, setOpen] = useState(false);
|
|
9
9
|
const handleClose = () => {
|
|
10
10
|
setOpen(false);
|
|
11
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { BadgeProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: BadgeProps<"span", {}>) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Badge: ComponentStory<(props: BadgeProps<"span", {}>) => JSX.Element>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
declare const _default: ComponentMeta<(props: import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
component?: React.ElementType<any> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { BreadcrumbsProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: BreadcrumbsProps<"nav", {}>) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Breadcrumbs: ComponentStory<(props: BreadcrumbsProps<"nav", {}>) => JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { ButtonProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: ButtonProps<"button", {}>) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Button: ComponentStory<(props: ButtonProps<"button", {}>) => JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { ButtonGroupProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: ButtonGroupProps<"div", {}>) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const ButtonGroup: ComponentStory<(props: ButtonGroupProps<"div", {}>) => JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { CardProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: CardProps<"div", {}>) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Card: ComponentStory<(props: CardProps<"div", {}>) => JSX.Element>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Button, CardActions, CardContent, CardMedia, Card as CustomCard, Typography } from '../index';
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Data Display/Card',
|
|
5
5
|
component: CustomCard,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { CheckboxProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: CheckboxProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Checkbox: ComponentStory<(props: CheckboxProps) => JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { ChipProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: ChipProps<"div", {}>) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Chip: ComponentStory<(props: ChipProps<"div", {}>) => JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
2
|
import { CircularProgressProps } from '@mui/material';
|
|
3
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
4
4
|
declare const _default: ComponentMeta<(props: CircularProgressProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const CircularProgress: ComponentStory<(props: CircularProgressProps) => JSX.Element>;
|