@evoke-platform/ui-components 1.0.0-dev.185 → 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.
- package/README.md +1 -0
- package/dist/published/components/core/Autocomplete/Autocomplete.d.ts +3 -3
- package/dist/published/components/core/Autocomplete/Autocomplete.js +1 -1
- package/dist/published/components/core/Autocomplete/index.d.ts +2 -1
- package/dist/published/components/core/LocalizationProvider/LocalizationProvider.js +6 -4
- package/dist/published/components/core/Select/Select.d.ts +1 -2
- package/dist/published/components/core/Snackbar/Snackbar.d.ts +2 -2
- package/dist/published/components/core/Typography/index.js +1 -0
- package/dist/published/components/core/index.d.ts +4 -2
- package/dist/published/components/custom/BuilderGrid/EmptyContent.d.ts +1 -1
- package/dist/published/components/custom/BuilderGrid/EmptyContent.js +1 -0
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.d.ts +7 -3
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.js +55 -17
- package/dist/published/components/custom/CriteriaBuilder/ValueEditor.js +38 -18
- package/dist/published/components/custom/DataGrid/Toolbar.d.ts +2 -1
- package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.d.ts +10 -0
- package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.js +2 -1
- package/dist/published/components/custom/FormField/FileUpload/FileUpload.js +3 -1
- package/dist/published/components/custom/FormField/FormField.d.ts +9 -6
- package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.js +0 -1
- package/dist/published/components/custom/FormField/Select/Select.js +3 -1
- package/dist/published/components/custom/FormField/TimePickerSelect/TimePickerSelect.js +4 -2
- package/dist/published/components/custom/Menubar/Menubar.d.ts +2 -4
- package/dist/published/components/custom/Menubar/Menubar.js +1 -4
- package/dist/published/components/custom/MultiSelect/MultiSelect.d.ts +5 -6
- package/dist/published/components/custom/MultiSelect/MultiSelect.js +9 -5
- package/dist/published/components/custom/MultiSelect/SortableItem.js +1 -0
- package/dist/published/components/custom/RepeatableField/RepeatableField.d.ts +2 -3
- package/dist/published/components/custom/RepeatableField/RepeatableField.js +2 -2
- package/dist/published/components/custom/UserAvatar/UserAvatar.js +5 -3
- package/dist/published/components/custom/util.js +2 -1
- package/dist/published/icons/custom/Inherited.d.ts +6 -1
- package/dist/published/icons/custom/Overrides.d.ts +22 -2
- package/dist/published/icons/custom/TrashCan.d.ts +22 -2
- package/dist/published/index.d.ts +2 -1
- package/dist/published/index.js +2 -3
- package/dist/published/stories/Accordion.stories.d.ts +3 -2
- package/dist/published/stories/Alert.stories.d.ts +3 -2
- package/dist/published/stories/Appbar.stories.js +1 -1
- package/dist/published/stories/Autocomplete.stories.d.ts +3 -20
- package/dist/published/stories/Autocomplete.stories.js +1 -1
- package/dist/published/stories/Avatar.stories.js +1 -1
- package/dist/published/stories/Backdrop.stories.d.ts +3 -2
- package/dist/published/stories/Backdrop.stories.js +1 -1
- package/dist/published/stories/Badge.stories.d.ts +3 -2
- package/dist/published/stories/Box.stories.d.ts +2 -2
- package/dist/published/stories/Box.stories.js +2 -2
- package/dist/published/stories/Breadcrumbs.stories.d.ts +3 -2
- package/dist/published/stories/Button.stories.d.ts +3 -2
- package/dist/published/stories/ButtonGroup.stories.d.ts +3 -2
- package/dist/published/stories/Card.stories.d.ts +3 -2
- package/dist/published/stories/Checkbox.stories.d.ts +3 -2
- package/dist/published/stories/Chip.stories.d.ts +3 -2
- package/dist/published/stories/CircularProgress.stories.d.ts +3 -2
- package/dist/published/stories/Collapse.stories.d.ts +3 -2
- package/dist/published/stories/Container.stories.d.ts +3 -2
- package/dist/published/stories/CriteriaBuilder.stories.d.ts +5 -4
- package/dist/published/stories/CriteriaBuilder.stories.js +1 -1
- package/dist/published/stories/DataGrid.stories.js +1 -1
- package/dist/published/stories/Dialog.stories.d.ts +3 -2
- package/dist/published/stories/Dialog.stories.js +3 -3
- package/dist/published/stories/Divider.stories.d.ts +3 -2
- package/dist/published/stories/Drawer.stories.d.ts +3 -2
- package/dist/published/stories/FormControl.stories.d.ts +3 -2
- package/dist/published/stories/FormControlLabel.stories.d.ts +3 -2
- package/dist/published/stories/FormControlLabel.stories.js +1 -1
- package/dist/published/stories/FormField.stories.d.ts +12 -10
- package/dist/published/stories/FormGroup.stories.d.ts +3 -2
- package/dist/published/stories/FormHelperText.stories.d.ts +3 -2
- package/dist/published/stories/FormLabel.stories.d.ts +3 -2
- package/dist/published/stories/Grid.stories.d.ts +3 -2
- package/dist/published/stories/IconButton.stories.d.ts +3 -2
- package/dist/published/stories/LinearProgress.stories.d.ts +3 -2
- package/dist/published/stories/Link.stories.d.ts +3 -2
- package/dist/published/stories/List.stories.d.ts +3 -2
- package/dist/published/stories/List.stories.js +1 -1
- package/dist/published/stories/Menu.stories.d.ts +3 -2
- package/dist/published/stories/Menu.stories.js +2 -2
- package/dist/published/stories/MenuBar.stories.js +1 -0
- package/dist/published/stories/Palette.stories.js +1 -1
- package/dist/published/stories/Paper.stories.d.ts +3 -2
- package/dist/published/stories/RadioGroup.stories.d.ts +3 -2
- package/dist/published/stories/Skeleton.stories.d.ts +3 -2
- package/dist/published/stories/Stack.stories.d.ts +3 -2
- package/dist/published/stories/Stepper.stories.d.ts +3 -2
- package/dist/published/stories/Switch.stories.d.ts +3 -2
- package/dist/published/stories/Table.stories.d.ts +3 -2
- package/dist/published/stories/Tabs.stories.d.ts +3 -2
- package/dist/published/stories/TextField.stories.d.ts +4 -3
- package/dist/published/stories/TextField.stories.js +2 -2
- package/dist/published/stories/TimePicker.stories.js +1 -1
- package/dist/published/stories/TimePickerSelect.stories.js +2 -1
- package/dist/published/stories/ToggleButton.stories.d.ts +3 -2
- package/dist/published/stories/ToggleButton.stories.js +4 -4
- package/dist/published/stories/Typography.stories.js +1 -1
- package/dist/published/theme/UIThemeProvider.d.ts +4 -1
- package/dist/published/theme/UIThemeProvider.js +1 -1
- package/dist/published/theme/defaultTheme.js +5 -5
- package/package.json +23 -13
@@ -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
|
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:
|
11
|
-
onChange:
|
9
|
+
export declare type MultiSelectProps = {
|
10
|
+
options: DropdownOption[];
|
11
|
+
onChange: (options: DropdownOption[]) => void;
|
12
12
|
maxHeight?: number;
|
13
|
-
isSortable?:
|
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' }) },
|
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
|
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?:
|
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
|
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
|
-
|
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)
|
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,3 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { SvgIconProps } from '@mui/material';
|
3
|
-
export declare const Inherited: (props: SvgIconProps
|
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
|
-
|
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
|
-
|
1
|
+
import React from 'react';
|
2
2
|
import { SvgIconProps } from '@mui/material';
|
3
|
-
export declare const TrashCan: (props:
|
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,
|
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';
|
package/dist/published/index.js
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
export { ClickAwayListener, Toolbar, createTheme, styled
|
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
|
-
|
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
|
-
|
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:
|
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
|
-
|
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:
|
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 = (
|
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
|
-
|
4
|
-
|
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:
|
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
|
-
|
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:
|
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 },
|
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
|
-
|
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:
|
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/
|
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/
|
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
|
-
} }
|
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
|
-
|
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:
|
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
|
-
|
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:
|
6
|
+
export declare const Button: ComponentStory<(props: ButtonProps<"button", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { ButtonGroupProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: ButtonGroupProps<"div", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const ButtonGroup: ComponentStory<(props:
|
6
|
+
export declare const ButtonGroup: ComponentStory<(props: ButtonGroupProps<"div", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { CardProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: CardProps<"div", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Card: ComponentStory<(props:
|
6
|
+
export declare const Card: ComponentStory<(props: CardProps<"div", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { CheckboxProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: CheckboxProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Checkbox: ComponentStory<(props:
|
6
|
+
export declare const Checkbox: ComponentStory<(props: CheckboxProps) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { ChipProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: ChipProps<"div", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Chip: ComponentStory<(props:
|
6
|
+
export declare const Chip: ComponentStory<(props: ChipProps<"div", {}>) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { CircularProgressProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: CircularProgressProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const CircularProgress: ComponentStory<(props:
|
6
|
+
export declare const CircularProgress: ComponentStory<(props: CircularProgressProps) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { CollapseProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: CollapseProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Collapse: ComponentStory<(props:
|
6
|
+
export declare const Collapse: ComponentStory<(props: CollapseProps) => JSX.Element>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { ContainerProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: ContainerProps<"div", {}>) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Container: ComponentStory<(props:
|
6
|
+
export declare const Container: ComponentStory<(props: ContainerProps<"div", {}>) => JSX.Element>;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
3
|
-
|
3
|
+
import { CriteriaInputProps } from '../components/custom/CriteriaBuilder/CriteriaBuilder';
|
4
|
+
declare const _default: ComponentMeta<(props: CriteriaInputProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const CriteriaBuilder: ComponentStory<(props:
|
6
|
-
export declare const CriteriaBuilderPresetUserID: ComponentStory<(props:
|
7
|
-
export declare const CriteriaBuilderGroupedPresetValues: ComponentStory<(props:
|
6
|
+
export declare const CriteriaBuilder: ComponentStory<(props: CriteriaInputProps) => JSX.Element>;
|
7
|
+
export declare const CriteriaBuilderPresetUserID: ComponentStory<(props: CriteriaInputProps) => JSX.Element>;
|
8
|
+
export declare const CriteriaBuilderGroupedPresetValues: ComponentStory<(props: CriteriaInputProps) => JSX.Element>;
|
@@ -4,7 +4,7 @@ export default {
|
|
4
4
|
title: 'Input/CriteriaBuilder',
|
5
5
|
component: BuildCriteria,
|
6
6
|
};
|
7
|
-
const CriteriaBuilderTemplate = (args) => React.createElement(BuildCriteria, Object.assign({}, args));
|
7
|
+
const CriteriaBuilderTemplate = (args) => (React.createElement(BuildCriteria, Object.assign({}, args)));
|
8
8
|
export const CriteriaBuilder = CriteriaBuilderTemplate.bind({});
|
9
9
|
CriteriaBuilder.args = {
|
10
10
|
properties: [
|
@@ -37,7 +37,7 @@ const DataGridTemplate = (args) => (React.createElement(Grid, { container: true,
|
|
37
37
|
React.createElement(Typography, { variant: "h6" }, "With title and bulk action:"),
|
38
38
|
React.createElement(CustomDataGrid, Object.assign({}, args, { key: 'data-grid-with-bulk-action', title: 'Data Grid', bulkAction: {
|
39
39
|
label: 'Bulk Action',
|
40
|
-
|
40
|
+
onClick: () => {
|
41
41
|
console.log('Bulk acion clicked');
|
42
42
|
},
|
43
43
|
} })))));
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
|
-
|
3
|
+
import { DialogProps } from '@mui/material';
|
4
|
+
declare const _default: ComponentMeta<(props: DialogProps) => JSX.Element>;
|
4
5
|
export default _default;
|
5
|
-
export declare const Dialog: ComponentStory<(props:
|
6
|
+
export declare const Dialog: ComponentStory<(props: DialogProps) => JSX.Element>;
|