@veritone-ce/design-system 2.0.8 → 2.1.0
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/dist/cjs/Alert/index.js +80 -0
- package/dist/cjs/Alert/styles.module.scss.js +7 -0
- package/dist/cjs/Box/index.js +16 -0
- package/dist/cjs/Button/index.js +56 -0
- package/dist/cjs/Button/styles.module.scss.js +7 -0
- package/dist/cjs/Checkbox/index.js +116 -0
- package/dist/cjs/Checkbox/styles.module.scss.js +7 -0
- package/dist/cjs/CircularProgress/index.js +59 -0
- package/dist/cjs/CircularProgress/styles.module.scss.js +7 -0
- package/dist/cjs/Dialog/components.js +219 -0
- package/dist/cjs/Dialog/factory.js +16 -0
- package/dist/cjs/Dialog/state.js +63 -0
- package/dist/cjs/Dialog/styles.module.scss.js +7 -0
- package/dist/cjs/Drawer/components.js +219 -0
- package/dist/cjs/Drawer/factory.js +16 -0
- package/dist/cjs/Drawer/state.js +63 -0
- package/dist/cjs/Drawer/styles.module.scss.js +7 -0
- package/dist/cjs/GlobalStyles/index.js +23 -0
- package/dist/cjs/Icon/factory.js +24 -0
- package/dist/cjs/Icon/internal.js +59 -0
- package/dist/cjs/Icon/styles.module.scss.js +7 -0
- package/dist/cjs/Icon/wrappers.js +50 -0
- package/dist/cjs/IconButton/index.js +41 -0
- package/dist/cjs/IconButton/styles.module.scss.js +7 -0
- package/dist/cjs/Input/index.js +72 -0
- package/dist/cjs/Input/styles.module.scss.js +7 -0
- package/dist/cjs/Menu/controlled.js +149 -0
- package/dist/cjs/Menu/factory.js +13 -0
- package/dist/cjs/Menu/styles.module.scss.js +7 -0
- package/dist/cjs/Pagination/index.js +54 -0
- package/dist/cjs/Pagination/styles.module.scss.js +7 -0
- package/dist/cjs/RadioButton/index.js +75 -0
- package/dist/cjs/RadioButton/styles.module.scss.js +7 -0
- package/dist/cjs/Select/controlled.js +144 -0
- package/dist/cjs/Select/factory.js +23 -0
- package/dist/cjs/Select/styles.module.scss.js +7 -0
- package/dist/cjs/Select/uncontrolled.js +59 -0
- package/dist/cjs/TablePagination/index.js +75 -0
- package/dist/cjs/TablePagination/styles.module.scss.js +7 -0
- package/dist/cjs/Textarea/index.js +69 -0
- package/dist/cjs/Textarea/styles.module.scss.js +7 -0
- package/dist/cjs/Toast/content.js +18 -0
- package/dist/cjs/Toast/hook.js +63 -0
- package/dist/cjs/Toast/index.js +15 -0
- package/dist/cjs/Tooltip/index.js +94 -0
- package/dist/cjs/Tooltip/styles.module.scss.js +7 -0
- package/dist/cjs/Typography/index.js +42 -0
- package/dist/cjs/Typography/variants.module.scss.js +7 -0
- package/dist/cjs/index.js +114 -282
- package/dist/cjs/popover/utils.js +8 -0
- package/dist/cjs/styles/createTheme.js +17 -0
- package/dist/cjs/styles/css-vars.js +78 -0
- package/dist/cjs/styles/cx.js +8 -0
- package/dist/cjs/styles/defaultTheme.js +50 -0
- package/dist/cjs/styles/identifier.js +8 -0
- package/dist/cjs/styles/palette.js +204 -0
- package/dist/cjs/styles/provider.client.js +25 -0
- package/dist/cjs/styles/provider.css-vars.js +27 -0
- package/dist/cjs/styles/styled.js +19 -0
- package/dist/cjs/styles/typography.js +117 -0
- package/dist/cjs/styles/useTheme.js +39 -0
- package/dist/cjs/styles.css +18 -0
- package/dist/cjs/utils/capitalize.js +13 -0
- package/dist/{esm-next → esm}/Alert/index.js +4 -2
- package/dist/esm/Alert/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/Button/index.js +2 -0
- package/dist/esm/Button/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/Checkbox/index.js +2 -0
- package/dist/esm/Checkbox/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/CircularProgress/index.js +5 -2
- package/dist/esm/CircularProgress/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/Dialog/components.js +2 -0
- package/dist/esm/Dialog/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/Drawer/components.js +2 -0
- package/dist/esm/Drawer/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/Icon/wrappers.js +2 -0
- package/dist/{esm-next → esm}/IconButton/index.js +2 -0
- package/dist/esm/IconButton/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/Input/index.js +2 -0
- package/dist/esm/Input/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/Menu/controlled.js +2 -0
- package/dist/esm/Menu/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/RadioButton/index.js +2 -0
- package/dist/esm/RadioButton/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/Select/controlled.js +2 -0
- package/dist/esm/Select/styles.module.scss.js +3 -0
- package/dist/esm/TablePagination/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/Textarea/index.js +2 -0
- package/dist/esm/Textarea/styles.module.scss.js +3 -0
- package/dist/{esm-next → esm}/Tooltip/index.js +4 -2
- package/dist/{esm-next → esm}/Tooltip/styles.module.scss.js +1 -1
- package/dist/{esm-next → esm}/Typography/index.js +2 -0
- package/dist/esm/Typography/variants.module.scss.js +3 -0
- package/dist/esm/index.js +40 -30
- package/dist/esm/styles/css-vars.js +71 -0
- package/dist/esm/styles/defaultTheme.js +44 -0
- package/dist/esm/styles/palette.js +202 -0
- package/dist/esm/styles/scss/theme.generated.scss +412 -0
- package/dist/esm/styles.css +18 -0
- package/dist/types/{src-next/styles → styles}/css-vars.d.ts +2 -1
- package/dist/types/{src-next/styles → styles}/defaultTheme.d.ts +1 -0
- package/dist/types/{src-next/styles → styles}/index.d.ts +1 -1
- package/dist/types/styles/palette.d.ts +97 -0
- package/package.json +31 -51
- package/dist/cjs/assets/theme.js +0 -369
- package/dist/cjs/components/AudioSlider/index.js +0 -71
- package/dist/cjs/components/Breadcrumbs/breadcrumbs.theme.js +0 -21
- package/dist/cjs/components/Breadcrumbs/index.js +0 -72
- package/dist/cjs/components/Drawer/index.js +0 -24
- package/dist/cjs/components/ErrorMessage/index.js +0 -48
- package/dist/cjs/components/FileUploader/index.js +0 -349
- package/dist/cjs/components/FormControlLabel/index.js +0 -23
- package/dist/cjs/components/LinearProgress/index.js +0 -55
- package/dist/cjs/components/LinearProgress/linearProgress.theme.js +0 -24
- package/dist/cjs/components/Link/index.js +0 -31
- package/dist/cjs/components/List/index.js +0 -22
- package/dist/cjs/components/ListItem/index.js +0 -22
- package/dist/cjs/components/ListItemButton/index.js +0 -24
- package/dist/cjs/components/ListItemText/index.js +0 -22
- package/dist/cjs/components/Panel/index.js +0 -131
- package/dist/cjs/components/ProgressIndicator/DefaultProgress.js +0 -30
- package/dist/cjs/components/ProgressIndicator/MLProgress.js +0 -32
- package/dist/cjs/components/ProgressIndicator/index.js +0 -35
- package/dist/cjs/components/Select/index.js +0 -118
- package/dist/cjs/components/Select/select.theme.js +0 -63
- package/dist/cjs/components/StatusChip/constants.js +0 -12
- package/dist/cjs/components/StatusChip/index.js +0 -40
- package/dist/cjs/components/StatusChip/statusChip.theme.js +0 -46
- package/dist/cjs/components/Step/index.js +0 -23
- package/dist/cjs/components/StepLabel/index.js +0 -22
- package/dist/cjs/components/Stepper/index.js +0 -25
- package/dist/cjs/components/Stepper/stepper.theme.js +0 -58
- package/dist/cjs/components/Table/AutoTable/common.js +0 -162
- package/dist/cjs/components/Table/AutoTable/controlled.js +0 -128
- package/dist/cjs/components/Table/AutoTable/index.js +0 -122
- package/dist/cjs/components/Table/AutoTable/types.js +0 -5
- package/dist/cjs/components/Table/AutoTable/virtual.js +0 -222
- package/dist/cjs/components/Table/index.js +0 -187
- package/dist/cjs/components/Tabs/index.js +0 -49
- package/dist/cjs/components/Tabs/tabs.theme.js +0 -39
- package/dist/cjs/components/ThemeProvider/index.js +0 -26
- package/dist/cjs/components/UtilityRail/index.js +0 -76
- package/dist/cjs/components/UtilityRail/mock.js +0 -32
- package/dist/cjs/components/ZeroState/index.js +0 -25
- package/dist/cjs/components/_Alert/index.js +0 -70
- package/dist/cjs/components/_Autocomplete/index.js +0 -67
- package/dist/cjs/components/_Button/Indicator.js +0 -36
- package/dist/cjs/components/_Button/button.theme.js +0 -125
- package/dist/cjs/components/_Button/index.js +0 -58
- package/dist/cjs/components/_Checkbox/checkbox.theme.js +0 -28
- package/dist/cjs/components/_Checkbox/index.js +0 -32
- package/dist/cjs/components/_IconButton/index.js +0 -27
- package/dist/cjs/components/_Input/index.js +0 -40
- package/dist/cjs/components/_Input/input.theme.js +0 -114
- package/dist/cjs/components/_MenuFlyout/constants.js +0 -12
- package/dist/cjs/components/_MenuFlyout/index.js +0 -48
- package/dist/cjs/components/_MenuFlyout/menuFlyout.theme.js +0 -52
- package/dist/cjs/components/_Modal/index.js +0 -27
- package/dist/cjs/components/_Modal/modal.theme.js +0 -36
- package/dist/cjs/components/_RadioButton/RadioButton.theme.js +0 -64
- package/dist/cjs/components/_RadioButton/index.js +0 -44
- package/dist/cjs/components/_RadioGroup/index.js +0 -25
- package/dist/cjs/components/_Typography/index.js +0 -21
- package/dist/cjs/components/icons/HomeOutlinedIcon/index.js +0 -15
- package/dist/cjs/components/icons/IconGroups/index.js +0 -15
- package/dist/cjs/components/icons/IconListItem/index.js +0 -16
- package/dist/esm/assets/theme.js +0 -359
- package/dist/esm/components/AudioSlider/index.js +0 -64
- package/dist/esm/components/Breadcrumbs/breadcrumbs.theme.js +0 -14
- package/dist/esm/components/Breadcrumbs/index.js +0 -65
- package/dist/esm/components/Drawer/index.js +0 -14
- package/dist/esm/components/ErrorMessage/index.js +0 -44
- package/dist/esm/components/FileUploader/index.js +0 -343
- package/dist/esm/components/FormControlLabel/index.js +0 -13
- package/dist/esm/components/LinearProgress/index.js +0 -49
- package/dist/esm/components/LinearProgress/linearProgress.theme.js +0 -17
- package/dist/esm/components/Link/index.js +0 -22
- package/dist/esm/components/List/index.js +0 -12
- package/dist/esm/components/ListItem/index.js +0 -12
- package/dist/esm/components/ListItemButton/index.js +0 -14
- package/dist/esm/components/ListItemText/index.js +0 -12
- package/dist/esm/components/Panel/index.js +0 -124
- package/dist/esm/components/ProgressIndicator/DefaultProgress.js +0 -24
- package/dist/esm/components/ProgressIndicator/MLProgress.js +0 -26
- package/dist/esm/components/ProgressIndicator/index.js +0 -28
- package/dist/esm/components/Select/index.js +0 -109
- package/dist/esm/components/Select/select.theme.js +0 -56
- package/dist/esm/components/StatusChip/constants.js +0 -3
- package/dist/esm/components/StatusChip/index.js +0 -32
- package/dist/esm/components/StatusChip/statusChip.theme.js +0 -39
- package/dist/esm/components/Step/index.js +0 -15
- package/dist/esm/components/StepLabel/index.js +0 -12
- package/dist/esm/components/Stepper/index.js +0 -17
- package/dist/esm/components/Stepper/stepper.theme.js +0 -51
- package/dist/esm/components/Table/AutoTable/common.js +0 -150
- package/dist/esm/components/Table/AutoTable/controlled.js +0 -123
- package/dist/esm/components/Table/AutoTable/index.js +0 -111
- package/dist/esm/components/Table/AutoTable/types.js +0 -1
- package/dist/esm/components/Table/AutoTable/virtual.js +0 -215
- package/dist/esm/components/Table/index.js +0 -170
- package/dist/esm/components/Tabs/index.js +0 -40
- package/dist/esm/components/Tabs/tabs.theme.js +0 -32
- package/dist/esm/components/ThemeProvider/index.js +0 -18
- package/dist/esm/components/UtilityRail/index.js +0 -70
- package/dist/esm/components/UtilityRail/mock.js +0 -25
- package/dist/esm/components/ZeroState/index.js +0 -18
- package/dist/esm/components/_Alert/index.js +0 -63
- package/dist/esm/components/_Autocomplete/index.js +0 -59
- package/dist/esm/components/_Button/Indicator.js +0 -29
- package/dist/esm/components/_Button/button.theme.js +0 -118
- package/dist/esm/components/_Button/index.js +0 -48
- package/dist/esm/components/_Checkbox/checkbox.theme.js +0 -21
- package/dist/esm/components/_Checkbox/index.js +0 -24
- package/dist/esm/components/_IconButton/index.js +0 -17
- package/dist/esm/components/_Input/index.js +0 -33
- package/dist/esm/components/_Input/input.theme.js +0 -107
- package/dist/esm/components/_MenuFlyout/constants.js +0 -3
- package/dist/esm/components/_MenuFlyout/index.js +0 -41
- package/dist/esm/components/_MenuFlyout/menuFlyout.theme.js +0 -44
- package/dist/esm/components/_Modal/index.js +0 -20
- package/dist/esm/components/_Modal/modal.theme.js +0 -29
- package/dist/esm/components/_RadioButton/RadioButton.theme.js +0 -57
- package/dist/esm/components/_RadioButton/index.js +0 -36
- package/dist/esm/components/_RadioGroup/index.js +0 -15
- package/dist/esm/components/_Typography/index.js +0 -13
- package/dist/esm/components/icons/HomeOutlinedIcon/index.js +0 -8
- package/dist/esm/components/icons/IconGroups/index.js +0 -8
- package/dist/esm/components/icons/IconListItem/index.js +0 -9
- package/dist/esm-next/Alert/styles.module.scss.js +0 -3
- package/dist/esm-next/Button/styles.module.scss.js +0 -3
- package/dist/esm-next/Checkbox/styles.module.scss.js +0 -3
- package/dist/esm-next/CircularProgress/styles.module.scss.js +0 -3
- package/dist/esm-next/Dialog/styles.module.scss.js +0 -3
- package/dist/esm-next/Drawer/styles.module.scss.js +0 -3
- package/dist/esm-next/IconButton/styles.module.scss.js +0 -3
- package/dist/esm-next/Input/styles.module.scss.js +0 -3
- package/dist/esm-next/Menu/styles.module.scss.js +0 -3
- package/dist/esm-next/RadioButton/styles.module.scss.js +0 -3
- package/dist/esm-next/Select/styles.module.scss.js +0 -3
- package/dist/esm-next/TablePagination/styles.module.scss.js +0 -3
- package/dist/esm-next/Textarea/styles.module.scss.js +0 -3
- package/dist/esm-next/Typography/variants.module.scss.js +0 -3
- package/dist/esm-next/index.js +0 -40
- package/dist/esm-next/styles/css-vars.js +0 -126
- package/dist/esm-next/styles/defaultTheme.js +0 -11
- package/dist/esm-next/styles/palette.js +0 -30
- package/dist/esm-next/styles/scss/theme.generated.scss +0 -328
- package/dist/esm-next/styles.css +0 -18
- package/dist/types/src/assets/theme.d.ts +0 -62
- package/dist/types/src/components/AudioSlider/index.d.ts +0 -12
- package/dist/types/src/components/Breadcrumbs/breadcrumbs.theme.d.ts +0 -11
- package/dist/types/src/components/Breadcrumbs/index.d.ts +0 -25
- package/dist/types/src/components/Drawer/index.d.ts +0 -14
- package/dist/types/src/components/ErrorMessage/index.d.ts +0 -8
- package/dist/types/src/components/FileUploader/index.d.ts +0 -37
- package/dist/types/src/components/FormControlLabel/index.d.ts +0 -11
- package/dist/types/src/components/LinearProgress/index.d.ts +0 -32
- package/dist/types/src/components/LinearProgress/linearProgress.theme.d.ts +0 -13
- package/dist/types/src/components/Link/index.d.ts +0 -9
- package/dist/types/src/components/List/index.d.ts +0 -10
- package/dist/types/src/components/ListItem/index.d.ts +0 -10
- package/dist/types/src/components/ListItemButton/index.d.ts +0 -12
- package/dist/types/src/components/ListItemText/index.d.ts +0 -10
- package/dist/types/src/components/Panel/index.d.ts +0 -17
- package/dist/types/src/components/ProgressIndicator/DefaultProgress.d.ts +0 -3
- package/dist/types/src/components/ProgressIndicator/MLProgress.d.ts +0 -6
- package/dist/types/src/components/ProgressIndicator/index.d.ts +0 -20
- package/dist/types/src/components/Select/index.d.ts +0 -41
- package/dist/types/src/components/Select/select.theme.d.ts +0 -52
- package/dist/types/src/components/StatusChip/constants.d.ts +0 -3
- package/dist/types/src/components/StatusChip/index.d.ts +0 -30
- package/dist/types/src/components/StatusChip/statusChip.theme.d.ts +0 -4
- package/dist/types/src/components/Step/index.d.ts +0 -23
- package/dist/types/src/components/StepLabel/index.d.ts +0 -13
- package/dist/types/src/components/Stepper/index.d.ts +0 -22
- package/dist/types/src/components/Stepper/stepper.theme.d.ts +0 -50
- package/dist/types/src/components/Table/AutoTable/common.d.ts +0 -31
- package/dist/types/src/components/Table/AutoTable/controlled.d.ts +0 -15
- package/dist/types/src/components/Table/AutoTable/index.d.ts +0 -47
- package/dist/types/src/components/Table/AutoTable/types.d.ts +0 -106
- package/dist/types/src/components/Table/AutoTable/virtual.d.ts +0 -23
- package/dist/types/src/components/Table/index.d.ts +0 -150
- package/dist/types/src/components/Tabs/index.d.ts +0 -16
- package/dist/types/src/components/Tabs/tabs.theme.d.ts +0 -4
- package/dist/types/src/components/ThemeProvider/index.d.ts +0 -9
- package/dist/types/src/components/UtilityRail/index.d.ts +0 -12
- package/dist/types/src/components/UtilityRail/mock.d.ts +0 -2
- package/dist/types/src/components/ZeroState/index.d.ts +0 -2
- package/dist/types/src/components/_Alert/index.d.ts +0 -18
- package/dist/types/src/components/_Autocomplete/index.d.ts +0 -24
- package/dist/types/src/components/_Button/Indicator.d.ts +0 -2
- package/dist/types/src/components/_Button/button.theme.d.ts +0 -4
- package/dist/types/src/components/_Button/index.d.ts +0 -24
- package/dist/types/src/components/_Checkbox/checkbox.theme.d.ts +0 -18
- package/dist/types/src/components/_Checkbox/index.d.ts +0 -14
- package/dist/types/src/components/_IconButton/index.d.ts +0 -16
- package/dist/types/src/components/_Input/index.d.ts +0 -25
- package/dist/types/src/components/_Input/input.theme.d.ts +0 -3
- package/dist/types/src/components/_MenuFlyout/constants.d.ts +0 -3
- package/dist/types/src/components/_MenuFlyout/index.d.ts +0 -21
- package/dist/types/src/components/_MenuFlyout/menuFlyout.theme.d.ts +0 -36
- package/dist/types/src/components/_Modal/index.d.ts +0 -14
- package/dist/types/src/components/_Modal/modal.theme.d.ts +0 -3
- package/dist/types/src/components/_RadioButton/RadioButton.theme.d.ts +0 -4
- package/dist/types/src/components/_RadioButton/index.d.ts +0 -17
- package/dist/types/src/components/_RadioGroup/index.d.ts +0 -30
- package/dist/types/src/components/_Typography/index.d.ts +0 -12
- package/dist/types/src/components/icons/HomeOutlinedIcon/index.d.ts +0 -5
- package/dist/types/src/components/icons/IconGroups/index.d.ts +0 -5
- package/dist/types/src/components/icons/IconListItem/index.d.ts +0 -7
- package/dist/types/src/index.d.ts +0 -57
- package/dist/types/src-next/styles/palette.d.ts +0 -55
- /package/dist/{esm-next → esm}/Box/index.js +0 -0
- /package/dist/{esm-next → esm}/Dialog/factory.js +0 -0
- /package/dist/{esm-next → esm}/Dialog/state.js +0 -0
- /package/dist/{esm-next → esm}/Drawer/factory.js +0 -0
- /package/dist/{esm-next → esm}/Drawer/state.js +0 -0
- /package/dist/{esm-next → esm}/GlobalStyles/index.js +0 -0
- /package/dist/{esm-next → esm}/Icon/factory.js +0 -0
- /package/dist/{esm-next → esm}/Icon/internal.js +0 -0
- /package/dist/{esm-next → esm}/Icon/styles.module.scss.js +0 -0
- /package/dist/{esm-next → esm}/Menu/factory.js +0 -0
- /package/dist/{esm-next → esm}/Pagination/index.js +0 -0
- /package/dist/{esm-next → esm}/Pagination/styles.module.scss.js +0 -0
- /package/dist/{esm-next → esm}/Select/factory.js +0 -0
- /package/dist/{esm-next → esm}/Select/uncontrolled.js +0 -0
- /package/dist/{esm-next → esm}/TablePagination/index.js +0 -0
- /package/dist/{esm-next → esm}/Toast/content.js +0 -0
- /package/dist/{esm-next → esm}/Toast/hook.js +0 -0
- /package/dist/{esm-next → esm}/Toast/index.js +0 -0
- /package/dist/{esm-next → esm}/popover/utils.js +0 -0
- /package/dist/{esm-next → esm}/styles/createTheme.js +0 -0
- /package/dist/{esm-next → esm}/styles/cx.js +0 -0
- /package/dist/{esm-next → esm}/styles/identifier.js +0 -0
- /package/dist/{esm-next → esm}/styles/provider.client.js +0 -0
- /package/dist/{esm-next → esm}/styles/provider.css-vars.js +0 -0
- /package/dist/{esm-next → esm}/styles/scss/_index.scss +0 -0
- /package/dist/{esm-next → esm}/styles/scss/baseline.scss +0 -0
- /package/dist/{esm-next → esm}/styles/styled.js +0 -0
- /package/dist/{esm-next → esm}/styles/typography.js +0 -0
- /package/dist/{esm-next → esm}/styles/useTheme.js +0 -0
- /package/dist/{esm-next → esm}/utils/capitalize.js +0 -0
- /package/dist/types/{src-next/Alert → Alert}/index.d.ts +0 -0
- /package/dist/types/{src-next/Box → Box}/index.d.ts +0 -0
- /package/dist/types/{src-next/Button → Button}/index.d.ts +0 -0
- /package/dist/types/{src-next/Checkbox → Checkbox}/index.d.ts +0 -0
- /package/dist/types/{src-next/CircularProgress → CircularProgress}/index.d.ts +0 -0
- /package/dist/types/{src-next/Dialog → Dialog}/components.d.ts +0 -0
- /package/dist/types/{src-next/Dialog → Dialog}/factory.d.ts +0 -0
- /package/dist/types/{src-next/Dialog → Dialog}/index.d.ts +0 -0
- /package/dist/types/{src-next/Dialog → Dialog}/state.d.ts +0 -0
- /package/dist/types/{src-next/Drawer → Drawer}/components.d.ts +0 -0
- /package/dist/types/{src-next/Drawer → Drawer}/factory.d.ts +0 -0
- /package/dist/types/{src-next/Drawer → Drawer}/index.d.ts +0 -0
- /package/dist/types/{src-next/Drawer → Drawer}/state.d.ts +0 -0
- /package/dist/types/{src-next/GlobalStyles → GlobalStyles}/index.d.ts +0 -0
- /package/dist/types/{src-next/Icon → Icon}/factory.d.ts +0 -0
- /package/dist/types/{src-next/Icon → Icon}/index.d.ts +0 -0
- /package/dist/types/{src-next/Icon → Icon}/internal.d.ts +0 -0
- /package/dist/types/{src-next/Icon → Icon}/shared.d.ts +0 -0
- /package/dist/types/{src-next/Icon → Icon}/wrappers.d.ts +0 -0
- /package/dist/types/{src-next/IconButton → IconButton}/index.d.ts +0 -0
- /package/dist/types/{src-next/Input → Input}/index.d.ts +0 -0
- /package/dist/types/{src-next/Menu → Menu}/controlled.d.ts +0 -0
- /package/dist/types/{src-next/Menu → Menu}/factory.d.ts +0 -0
- /package/dist/types/{src-next/Menu → Menu}/index.d.ts +0 -0
- /package/dist/types/{src-next/Pagination → Pagination}/index.d.ts +0 -0
- /package/dist/types/{src-next/RadioButton → RadioButton}/index.d.ts +0 -0
- /package/dist/types/{src-next/Select → Select}/controlled.d.ts +0 -0
- /package/dist/types/{src-next/Select → Select}/factory.d.ts +0 -0
- /package/dist/types/{src-next/Select → Select}/index.d.ts +0 -0
- /package/dist/types/{src-next/Select → Select}/types.d.ts +0 -0
- /package/dist/types/{src-next/Select → Select}/uncontrolled.d.ts +0 -0
- /package/dist/types/{src-next/TablePagination → TablePagination}/index.d.ts +0 -0
- /package/dist/types/{src-next/Textarea → Textarea}/index.d.ts +0 -0
- /package/dist/types/{src-next/Toast → Toast}/content.d.ts +0 -0
- /package/dist/types/{src-next/Toast → Toast}/hook.d.ts +0 -0
- /package/dist/types/{src-next/Toast → Toast}/index.d.ts +0 -0
- /package/dist/types/{src-next/Tooltip → Tooltip}/index.d.ts +0 -0
- /package/dist/types/{src-next/Typography → Typography}/index.d.ts +0 -0
- /package/dist/types/{src-next/index.d.ts → index.d.ts} +0 -0
- /package/dist/types/{src-next/popover → popover}/index.d.ts +0 -0
- /package/dist/types/{src-next/popover → popover}/types.d.ts +0 -0
- /package/dist/types/{src-next/popover → popover}/utils.d.ts +0 -0
- /package/dist/types/{src-next/styles → styles}/baseline.d.ts +0 -0
- /package/dist/types/{src-next/styles → styles}/createTheme.d.ts +0 -0
- /package/dist/types/{src-next/styles → styles}/cx.d.ts +0 -0
- /package/dist/types/{src-next/styles → styles}/identifier.d.ts +0 -0
- /package/dist/types/{src-next/styles → styles}/provider.client.d.ts +0 -0
- /package/dist/types/{src-next/styles → styles}/provider.css-vars.d.ts +0 -0
- /package/dist/types/{src-next/styles → styles}/styled.d.ts +0 -0
- /package/dist/types/{src-next/styles → styles}/sx.d.ts +0 -0
- /package/dist/types/{src-next/styles → styles}/typography.d.ts +0 -0
- /package/dist/types/{src-next/styles → styles}/useTheme.d.ts +0 -0
- /package/dist/types/{src-next/utils → utils}/capitalize.d.ts +0 -0
- /package/dist/types/{src-next/utils → utils}/controlled.d.ts +0 -0
- /package/dist/types/{src-next/utils → utils}/index.d.ts +0 -0
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["variant"],
|
|
3
|
-
_excluded2 = ["checked", "indeterminate", "disabled", "onChange", "sx", "className", "checkboxSx", "checkboxClassName"];
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
-
import { Box, Table as MuiTable, TableBody as MuiTableBody, TableCell as MuiTableCell, TableFooter as MuiTableFooter, TableHead as MuiTableHead, TablePagination as MuiTablePagination, TableRow as MuiTableRow, TableSortLabel as MuiTableSortLabel } from '@mui/material';
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { styled } from '@mui/material/styles';
|
|
14
|
-
import Typography from '../../components/_Typography/index.js';
|
|
15
|
-
import Checkbox from '../../components/_Checkbox/index.js';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
export var Table = function Table(props) {
|
|
18
|
-
return /*#__PURE__*/_jsx(MuiTable, {
|
|
19
|
-
"data-testid": props['data-testid'],
|
|
20
|
-
stickyHeader: props.stickyHeader,
|
|
21
|
-
sx: props.sx,
|
|
22
|
-
className: props.className,
|
|
23
|
-
children: props.children
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
export var TableBody = function TableBody(props) {
|
|
27
|
-
return /*#__PURE__*/_jsx(MuiTableBody, {
|
|
28
|
-
"data-testid": props['data-testid'],
|
|
29
|
-
sx: props.sx,
|
|
30
|
-
className: props.className,
|
|
31
|
-
children: props.children
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var StyledMuiTableCell = styled(MuiTableCell, {
|
|
35
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
36
|
-
return prop !== 'noVerticalPadding';
|
|
37
|
-
}
|
|
38
|
-
})(function (_ref) {
|
|
39
|
-
var theme = _ref.theme,
|
|
40
|
-
noVerticalPadding = _ref.noVerticalPadding;
|
|
41
|
-
return {
|
|
42
|
-
fontSize: theme.typography.body1.fontSize,
|
|
43
|
-
borderBottomColor: theme.palette.text.disabled,
|
|
44
|
-
padding: "".concat(noVerticalPadding ? '0px' : '14.25px', " ", '16px')
|
|
45
|
-
};
|
|
46
|
-
});
|
|
47
|
-
export var TableCell = function TableCell(_ref2) {
|
|
48
|
-
var _props$noVerticalPadd;
|
|
49
|
-
var _ref2$variant = _ref2.variant,
|
|
50
|
-
variant = _ref2$variant === void 0 ? 'data' : _ref2$variant,
|
|
51
|
-
props = _objectWithoutProperties(_ref2, _excluded);
|
|
52
|
-
return /*#__PURE__*/_jsx(StyledMuiTableCell, {
|
|
53
|
-
"data-testid": props['data-testid'],
|
|
54
|
-
component: variant === 'header' ? 'th' : 'td',
|
|
55
|
-
align: props.align,
|
|
56
|
-
colSpan: props.colSpan,
|
|
57
|
-
headers: props.headers,
|
|
58
|
-
rowSpan: props.rowSpan,
|
|
59
|
-
scope: props.scope,
|
|
60
|
-
abbr: props.abbr,
|
|
61
|
-
sortDirection: props.sortDirection,
|
|
62
|
-
noVerticalPadding: (_props$noVerticalPadd = props.noVerticalPadding) !== null && _props$noVerticalPadd !== void 0 ? _props$noVerticalPadd : false,
|
|
63
|
-
sx: props.sx,
|
|
64
|
-
className: props.className,
|
|
65
|
-
children: props.children
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
var StyledSelectionTableCell = styled(TableCell)({
|
|
69
|
-
width: '50px'
|
|
70
|
-
});
|
|
71
|
-
var StyledSelectionCheckbox = styled(Checkbox)({
|
|
72
|
-
padding: 0
|
|
73
|
-
});
|
|
74
|
-
export var SelectionTableCell = function SelectionTableCell(_ref3) {
|
|
75
|
-
var checked = _ref3.checked,
|
|
76
|
-
indeterminate = _ref3.indeterminate,
|
|
77
|
-
disabled = _ref3.disabled,
|
|
78
|
-
onChange = _ref3.onChange,
|
|
79
|
-
sx = _ref3.sx,
|
|
80
|
-
className = _ref3.className,
|
|
81
|
-
checkboxSx = _ref3.checkboxSx,
|
|
82
|
-
checkboxClassName = _ref3.checkboxClassName,
|
|
83
|
-
cellProps = _objectWithoutProperties(_ref3, _excluded2);
|
|
84
|
-
return /*#__PURE__*/_jsx(StyledSelectionTableCell, _objectSpread(_objectSpread({}, cellProps), {}, {
|
|
85
|
-
noVerticalPadding: true,
|
|
86
|
-
sx: sx,
|
|
87
|
-
className: className,
|
|
88
|
-
children: /*#__PURE__*/_jsx(StyledSelectionCheckbox, {
|
|
89
|
-
checked: checked,
|
|
90
|
-
indeterminate: indeterminate,
|
|
91
|
-
disabled: disabled,
|
|
92
|
-
onChange: onChange,
|
|
93
|
-
sx: checkboxSx,
|
|
94
|
-
className: checkboxClassName
|
|
95
|
-
})
|
|
96
|
-
}));
|
|
97
|
-
};
|
|
98
|
-
export var TableFooter = function TableFooter(props) {
|
|
99
|
-
return /*#__PURE__*/_jsx(MuiTableFooter, {
|
|
100
|
-
"data-testid": props['data-testid'],
|
|
101
|
-
sx: props.sx,
|
|
102
|
-
className: props.className,
|
|
103
|
-
children: props.children
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
export var TableHead = function TableHead(props) {
|
|
107
|
-
return /*#__PURE__*/_jsx(MuiTableHead, {
|
|
108
|
-
"data-testid": props['data-testid'],
|
|
109
|
-
sx: props.sx,
|
|
110
|
-
className: props.className,
|
|
111
|
-
children: props.children
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
export var TablePagination = function TablePagination(props) {
|
|
115
|
-
return /*#__PURE__*/_jsx(MuiTablePagination, {
|
|
116
|
-
count: props.count,
|
|
117
|
-
page: props.page,
|
|
118
|
-
rowsPerPage: props.rowsPerPage,
|
|
119
|
-
colSpan: props.colSpan,
|
|
120
|
-
onPageChange: props.onPageChange,
|
|
121
|
-
sx: props.sx,
|
|
122
|
-
className: props.className,
|
|
123
|
-
rowsPerPageOptions: props.rowsPerPageOptions,
|
|
124
|
-
onRowsPerPageChange: props.onRowsPerPageChange
|
|
125
|
-
});
|
|
126
|
-
};
|
|
127
|
-
export var TableRow = function TableRow(props) {
|
|
128
|
-
return /*#__PURE__*/_jsx(MuiTableRow, {
|
|
129
|
-
"data-testid": props['data-testid'],
|
|
130
|
-
hover: props.hover,
|
|
131
|
-
selected: props.selected,
|
|
132
|
-
sx: props.sx,
|
|
133
|
-
className: props.className,
|
|
134
|
-
children: props.children
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
export var TableSortLabel = function TableSortLabel(props) {
|
|
138
|
-
return /*#__PURE__*/_jsx(MuiTableSortLabel, {
|
|
139
|
-
active: props.active,
|
|
140
|
-
direction: props.direction,
|
|
141
|
-
hideSortIcon: props.hideSortIcon,
|
|
142
|
-
onClick: props.onClick,
|
|
143
|
-
disabled: props.disabled,
|
|
144
|
-
children: props.children
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
var StyledTableMessageBase = styled(Box)({
|
|
148
|
-
width: '100%',
|
|
149
|
-
display: 'flex',
|
|
150
|
-
justifyContent: 'center',
|
|
151
|
-
alignItems: 'center',
|
|
152
|
-
paddingTop: '10px',
|
|
153
|
-
paddingBottom: '10px'
|
|
154
|
-
});
|
|
155
|
-
export var TableMessage = function TableMessage(props) {
|
|
156
|
-
return /*#__PURE__*/_jsx(StyledTableMessageBase, {
|
|
157
|
-
sx: props.sx,
|
|
158
|
-
className: props.className,
|
|
159
|
-
children: /*#__PURE__*/_jsx(Typography, {
|
|
160
|
-
sx: function sx(theme) {
|
|
161
|
-
return {
|
|
162
|
-
fontWeight: theme.typography.body2.fontWeight,
|
|
163
|
-
fontSize: theme.typography.body2.fontSize,
|
|
164
|
-
color: theme.palette.text.disabled
|
|
165
|
-
};
|
|
166
|
-
},
|
|
167
|
-
children: props.children
|
|
168
|
-
})
|
|
169
|
-
});
|
|
170
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Tabs as MuiTabs, Tab as MuiTab, Box, Typography, Badge } from '@mui/material';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
-
function Tabs(props) {
|
|
6
|
-
return /*#__PURE__*/_jsx(MuiTabs, {
|
|
7
|
-
value: props.value,
|
|
8
|
-
onChange: props.onChange,
|
|
9
|
-
sx: props.sx,
|
|
10
|
-
className: props.className,
|
|
11
|
-
children: props.tabs.map(function (tab, index) {
|
|
12
|
-
var _tab$count;
|
|
13
|
-
return /*#__PURE__*/_jsx(MuiTab, {
|
|
14
|
-
value: index,
|
|
15
|
-
label: /*#__PURE__*/_jsx(BadgeLabel, {
|
|
16
|
-
count: (_tab$count = tab.count) !== null && _tab$count !== void 0 ? _tab$count : 0,
|
|
17
|
-
label: tab.label
|
|
18
|
-
}),
|
|
19
|
-
disableRipple: true
|
|
20
|
-
}, index);
|
|
21
|
-
})
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
export default Tabs;
|
|
25
|
-
function BadgeLabel(props) {
|
|
26
|
-
return /*#__PURE__*/_jsxs(Box, {
|
|
27
|
-
sx: {
|
|
28
|
-
display: 'flex',
|
|
29
|
-
alignItems: 'center',
|
|
30
|
-
justifyContent: 'center',
|
|
31
|
-
gap: 1.5
|
|
32
|
-
},
|
|
33
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
34
|
-
children: props.label
|
|
35
|
-
}), /*#__PURE__*/_jsx(Badge, {
|
|
36
|
-
badgeContent: props.count,
|
|
37
|
-
color: "primary"
|
|
38
|
-
})]
|
|
39
|
-
});
|
|
40
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var tabsTheme = function tabsTheme(theme) {
|
|
2
|
-
return {
|
|
3
|
-
styleOverrides: {
|
|
4
|
-
root: function root() {
|
|
5
|
-
return {
|
|
6
|
-
'& .MuiTabs-indicator': {
|
|
7
|
-
backgroundColor: theme.palette.text.primary
|
|
8
|
-
},
|
|
9
|
-
'.css-1v8tsix-MuiButtonBase-root-MuiTab-root.Mui-selected': {
|
|
10
|
-
color: theme.palette.text.primary
|
|
11
|
-
},
|
|
12
|
-
'.css-1v8tsix-MuiButtonBase-root-MuiTab-root': {
|
|
13
|
-
color: theme.palette.text.secondary,
|
|
14
|
-
'&:hover': {
|
|
15
|
-
color: theme.palette.text.primary
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
'& .MuiBadge-badge': {
|
|
19
|
-
backgroundColor: theme.palette.misc.rowOnHoverGreyTwo,
|
|
20
|
-
color: theme.palette.text.primary,
|
|
21
|
-
fontSize: '10px',
|
|
22
|
-
padding: '0 4px',
|
|
23
|
-
height: '18px',
|
|
24
|
-
minWidth: '18px',
|
|
25
|
-
borderRadius: '9px'
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export default tabsTheme;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';
|
|
4
|
-
import { createDesignSystemTheme } from '../../assets/theme.js';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export var defaultTheme = createDesignSystemTheme();
|
|
8
|
-
var ThemeProvider = function ThemeProvider(props) {
|
|
9
|
-
var theme = React.useMemo(function () {
|
|
10
|
-
var _props$theme;
|
|
11
|
-
return (_props$theme = props.theme) !== null && _props$theme !== void 0 ? _props$theme : defaultTheme;
|
|
12
|
-
}, [props.theme]);
|
|
13
|
-
return /*#__PURE__*/_jsx(MuiThemeProvider, {
|
|
14
|
-
theme: theme,
|
|
15
|
-
children: props.children
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
export default ThemeProvider;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { useTheme } from '@mui/material/styles';
|
|
4
|
-
import { Box } from '@mui/material';
|
|
5
|
-
import Typography from '../../components/_Typography/index.js';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
var UtilityRail = function UtilityRail(props) {
|
|
9
|
-
var _useTheme = useTheme(),
|
|
10
|
-
palette = _useTheme.palette;
|
|
11
|
-
return /*#__PURE__*/_jsx(Box, {
|
|
12
|
-
"data-testid": props['data-testid'],
|
|
13
|
-
sx: {
|
|
14
|
-
'div:last-of-type': {
|
|
15
|
-
borderLeft: "0.125rem transparent solid"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
className: props.className,
|
|
19
|
-
children: props.items.map(function (item, index) {
|
|
20
|
-
return /*#__PURE__*/_jsx(Box, {
|
|
21
|
-
"data-testid": "item-".concat(index),
|
|
22
|
-
sx: {
|
|
23
|
-
'&::before': {
|
|
24
|
-
content: '""',
|
|
25
|
-
display: 'block',
|
|
26
|
-
height: '0.625rem',
|
|
27
|
-
width: '0.625rem',
|
|
28
|
-
marginLeft: '-0.5rem',
|
|
29
|
-
borderRadius: '50%',
|
|
30
|
-
border: "0.125rem ".concat(palette.secondary.main, " solid"),
|
|
31
|
-
backgroundColor: "".concat(palette.common.white)
|
|
32
|
-
},
|
|
33
|
-
borderLeft: "0.125rem ".concat(palette.secondary.main, " solid"),
|
|
34
|
-
display: 'flex'
|
|
35
|
-
},
|
|
36
|
-
children: /*#__PURE__*/_jsxs(Box, {
|
|
37
|
-
sx: {
|
|
38
|
-
padding: '0 1.25rem 1.25rem'
|
|
39
|
-
},
|
|
40
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
41
|
-
sx: {
|
|
42
|
-
fontSize: '0.625rem',
|
|
43
|
-
fontWeight: 400,
|
|
44
|
-
lineHeight: '1rem',
|
|
45
|
-
color: palette.text.secondary
|
|
46
|
-
},
|
|
47
|
-
children: item.subtitle
|
|
48
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
49
|
-
sx: {
|
|
50
|
-
fontSize: '0.75rem',
|
|
51
|
-
fontWeight: 400,
|
|
52
|
-
lineHeight: '1rem',
|
|
53
|
-
color: palette.text.primary
|
|
54
|
-
},
|
|
55
|
-
children: item.title
|
|
56
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
57
|
-
sx: {
|
|
58
|
-
fontSize: '0.625rem',
|
|
59
|
-
fontWeight: 400,
|
|
60
|
-
lineHeight: '1rem',
|
|
61
|
-
color: palette.text.secondary
|
|
62
|
-
},
|
|
63
|
-
children: item.description
|
|
64
|
-
})]
|
|
65
|
-
})
|
|
66
|
-
}, index);
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
export default UtilityRail;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export var mock = [{
|
|
2
|
-
title: 'Variant Exported by user567',
|
|
3
|
-
subtitle: '1.2.21_01:10:00',
|
|
4
|
-
description: 'Language: Spanish • Voice: Anna'
|
|
5
|
-
}, {
|
|
6
|
-
title: 'Variant Exported by user567',
|
|
7
|
-
subtitle: '1.2.21_01:10:00',
|
|
8
|
-
description: 'Language: Spanish • Voice: Anna'
|
|
9
|
-
}, {
|
|
10
|
-
title: 'Variant Exported by user567',
|
|
11
|
-
subtitle: '1.2.21_01:10:00',
|
|
12
|
-
description: 'Language: Spanish • Voice: Anna'
|
|
13
|
-
}, {
|
|
14
|
-
title: 'Variant Exported by user567',
|
|
15
|
-
subtitle: '1.2.21_01:10:00',
|
|
16
|
-
description: 'Language: Spanish • Voice: Anna'
|
|
17
|
-
}, {
|
|
18
|
-
title: 'Variant Exported by user567',
|
|
19
|
-
subtitle: '1.2.21_01:10:00',
|
|
20
|
-
description: 'Language: Spanish • Voice: Anna'
|
|
21
|
-
}, {
|
|
22
|
-
title: 'Variant Exported by user567',
|
|
23
|
-
subtitle: '1.2.21_01:10:00',
|
|
24
|
-
description: 'Language: Spanish • Voice: Anna'
|
|
25
|
-
}];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Box, Typography } from '@mui/material';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
function ZeroState() {
|
|
4
|
-
return /*#__PURE__*/_jsx(Box, {
|
|
5
|
-
sx: {
|
|
6
|
-
width: '100%',
|
|
7
|
-
height: '100%',
|
|
8
|
-
display: 'flex',
|
|
9
|
-
justifyContent: 'center',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
backgroundColor: 'rgba(224, 232, 240, 1)'
|
|
12
|
-
},
|
|
13
|
-
children: /*#__PURE__*/_jsx(Typography, {
|
|
14
|
-
children: "No data to display"
|
|
15
|
-
})
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
export default ZeroState;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Box, Alert as MuiAlert, Typography } from '@mui/material';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Link from '../Link/index.js';
|
|
4
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
var defaultMessageLabel = {
|
|
7
|
-
success: "Success",
|
|
8
|
-
info: "Info",
|
|
9
|
-
warning: "Alert",
|
|
10
|
-
error: "Error"
|
|
11
|
-
};
|
|
12
|
-
var defaultMessageText = {
|
|
13
|
-
success: "Your action was completed. ",
|
|
14
|
-
info: "General information. ",
|
|
15
|
-
warning: "Your action is required. ",
|
|
16
|
-
error: "An error has occured. "
|
|
17
|
-
};
|
|
18
|
-
var Alert = function Alert(props) {
|
|
19
|
-
var _props$severity;
|
|
20
|
-
var severity = (_props$severity = props.severity) !== null && _props$severity !== void 0 ? _props$severity : 'success';
|
|
21
|
-
return /*#__PURE__*/_jsx(MuiAlert, {
|
|
22
|
-
"data-testid": props['data-testid'],
|
|
23
|
-
onClose: props.onClose,
|
|
24
|
-
severity: severity,
|
|
25
|
-
sx: props.sx,
|
|
26
|
-
className: props.className,
|
|
27
|
-
children: /*#__PURE__*/_jsxs(Box, {
|
|
28
|
-
sx: {
|
|
29
|
-
display: "flex",
|
|
30
|
-
alignItems: "center"
|
|
31
|
-
},
|
|
32
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
33
|
-
sx: {
|
|
34
|
-
fontSize: "12px",
|
|
35
|
-
fontWeight: "bold",
|
|
36
|
-
marginRight: "2px",
|
|
37
|
-
display: 'inline-block',
|
|
38
|
-
whiteSpace: 'pre'
|
|
39
|
-
},
|
|
40
|
-
children: props.label ? /*#__PURE__*/_jsxs("span", {
|
|
41
|
-
children: [props.label, ': ']
|
|
42
|
-
}) : /*#__PURE__*/_jsx("span", {
|
|
43
|
-
children: "".concat(defaultMessageLabel[severity], ": ")
|
|
44
|
-
})
|
|
45
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
46
|
-
sx: {
|
|
47
|
-
fontSize: "12px",
|
|
48
|
-
display: 'inline-block',
|
|
49
|
-
whiteSpace: 'pre'
|
|
50
|
-
},
|
|
51
|
-
children: props.text ? /*#__PURE__*/_jsxs("span", {
|
|
52
|
-
children: [props.text, " "]
|
|
53
|
-
}) : /*#__PURE__*/_jsx("span", {
|
|
54
|
-
children: defaultMessageText[severity]
|
|
55
|
-
})
|
|
56
|
-
}), props.link && /*#__PURE__*/_jsx(Link, {
|
|
57
|
-
href: props.link.href,
|
|
58
|
-
children: props.link.content
|
|
59
|
-
})]
|
|
60
|
-
})
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
export default Alert;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import { Autocomplete as MuiAutocomplete, TextField } from '@mui/material';
|
|
9
|
-
import { styled } from '@mui/material/styles';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
var StyledAutocomplete = styled(MuiAutocomplete)({
|
|
12
|
-
'& .MuiOutlinedInput-root': {
|
|
13
|
-
padding: '0px 8px 4px'
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
function Autocomplete(props) {
|
|
17
|
-
var value = React.useMemo(function () {
|
|
18
|
-
var _props$items$find;
|
|
19
|
-
return props.value !== undefined ? (_props$items$find = props.items.find(function (v) {
|
|
20
|
-
return v.value === props.value;
|
|
21
|
-
})) !== null && _props$items$find !== void 0 ? _props$items$find : null : undefined;
|
|
22
|
-
}, [props.items, props.value]);
|
|
23
|
-
return /*#__PURE__*/_jsx(StyledAutocomplete, {
|
|
24
|
-
disablePortal: props.disablePortal,
|
|
25
|
-
options: props.items,
|
|
26
|
-
inputValue: props.inputValue,
|
|
27
|
-
filterOptions: props.filterOptions,
|
|
28
|
-
value: value,
|
|
29
|
-
isOptionEqualToValue: function isOptionEqualToValue(option, value) {
|
|
30
|
-
return option.value === value.value;
|
|
31
|
-
},
|
|
32
|
-
onInputChange: props.onInputChange && function (event, inputValue) {
|
|
33
|
-
return props.onInputChange(event, inputValue);
|
|
34
|
-
},
|
|
35
|
-
fullWidth: props.fullWidth,
|
|
36
|
-
disabled: props.disabled,
|
|
37
|
-
ListboxProps: {
|
|
38
|
-
style: {
|
|
39
|
-
maxHeight: '30rem'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
renderInput: function renderInput(params) {
|
|
43
|
-
return /*#__PURE__*/_jsx(TextField, _objectSpread(_objectSpread({}, params), {}, {
|
|
44
|
-
InputLabelProps: _objectSpread(_objectSpread({}, params.InputLabelProps), {}, {
|
|
45
|
-
shrink: true
|
|
46
|
-
}),
|
|
47
|
-
label: props.label,
|
|
48
|
-
error: props.error,
|
|
49
|
-
placeholder: props.placeholder,
|
|
50
|
-
helperText: props.error ? "Please select a ".concat(props.label) : ''
|
|
51
|
-
}));
|
|
52
|
-
},
|
|
53
|
-
onChange: function onChange(event, item) {
|
|
54
|
-
return props.onChange(event, item !== null ? item.value : null);
|
|
55
|
-
},
|
|
56
|
-
sx: props.sx
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
export default Autocomplete;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { CircularProgress, Box } from '@mui/material';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
var Indicator = function Indicator() {
|
|
4
|
-
return /*#__PURE__*/_jsx(Box, {
|
|
5
|
-
className: "button-loader",
|
|
6
|
-
"data-testid": "loading-indicator",
|
|
7
|
-
sx: {
|
|
8
|
-
position: "absolute",
|
|
9
|
-
top: 0,
|
|
10
|
-
left: 0,
|
|
11
|
-
right: 0,
|
|
12
|
-
bottom: 0,
|
|
13
|
-
display: "grid",
|
|
14
|
-
justifyItems: "center",
|
|
15
|
-
alignItems: "center",
|
|
16
|
-
background: function background(theme) {
|
|
17
|
-
return theme.palette.misc.rowHoverGreyOne;
|
|
18
|
-
},
|
|
19
|
-
border: function border(theme) {
|
|
20
|
-
return "1px solid ".concat(theme.palette.misc.rowOnHoverGreyTwo);
|
|
21
|
-
},
|
|
22
|
-
borderRadius: '0.2rem'
|
|
23
|
-
},
|
|
24
|
-
children: /*#__PURE__*/_jsx(CircularProgress, {
|
|
25
|
-
size: 20
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
export default Indicator;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
var buttonTheme = function buttonTheme(theme) {
|
|
8
|
-
return {
|
|
9
|
-
defaultProps: {
|
|
10
|
-
variant: 'contained',
|
|
11
|
-
disableRipple: true
|
|
12
|
-
},
|
|
13
|
-
styleOverrides: {
|
|
14
|
-
root: function root(_ref) {
|
|
15
|
-
var ownerState = _ref.ownerState;
|
|
16
|
-
return _objectSpread(_objectSpread(_objectSpread({
|
|
17
|
-
textTransform: 'none',
|
|
18
|
-
fontWeight: '600',
|
|
19
|
-
'&.MuiButton-outlinedError': {
|
|
20
|
-
backgroundColor: theme.palette.common.white
|
|
21
|
-
},
|
|
22
|
-
'&.Mui-disabled': _objectSpread({}, ownerState.variant !== "text" && {
|
|
23
|
-
borderColor: theme.palette.misc.altBackground,
|
|
24
|
-
backgroundColor: theme.palette.misc.rowHoverGreyOne,
|
|
25
|
-
borderWidth: '1px',
|
|
26
|
-
borderStyle: 'solid'
|
|
27
|
-
}),
|
|
28
|
-
'& .MuiButton-startIcon': _objectSpread({
|
|
29
|
-
marginRight: 0,
|
|
30
|
-
marginLeft: 0,
|
|
31
|
-
marginTop: '-1px',
|
|
32
|
-
fontSize: '18px'
|
|
33
|
-
}, {
|
|
34
|
-
'& .MuiSvgIcon-root': {
|
|
35
|
-
fontSize: 18
|
|
36
|
-
}
|
|
37
|
-
}),
|
|
38
|
-
'& .MuiButton-endIcon': _objectSpread({
|
|
39
|
-
marginRight: 0,
|
|
40
|
-
marginLeft: 0,
|
|
41
|
-
marginTop: '-1px',
|
|
42
|
-
fontSize: '18px'
|
|
43
|
-
}, {
|
|
44
|
-
'& .MuiSvgIcon-root': {
|
|
45
|
-
fontSize: 18
|
|
46
|
-
}
|
|
47
|
-
}),
|
|
48
|
-
'&.Mui-disabled .MuiButton-startIcon .MuiButton-endIcon': {
|
|
49
|
-
opacity: 0.3
|
|
50
|
-
}
|
|
51
|
-
}, ownerState.variant === "contained" && {
|
|
52
|
-
//@ts-ignore
|
|
53
|
-
backgroundColor: ownerState.color === "primary" ? theme.palette.button.main :
|
|
54
|
-
//@ts-ignore
|
|
55
|
-
theme.palette[ownerState.color].main,
|
|
56
|
-
':hover': {
|
|
57
|
-
//@ts-ignore
|
|
58
|
-
backgroundColor: ownerState.color === "primary" ? theme.palette.button.hover :
|
|
59
|
-
//@ts-ignore
|
|
60
|
-
theme.palette[ownerState.color]
|
|
61
|
-
}
|
|
62
|
-
}), ownerState.variant === "outlined" && {
|
|
63
|
-
backgroundColor: ownerState.color === "primary" ? theme.palette.common.white :
|
|
64
|
-
//@ts-ignore
|
|
65
|
-
theme.palette[ownerState.color],
|
|
66
|
-
//@ts-ignore
|
|
67
|
-
color: ownerState.color === "primary" ? theme.palette.neutral.main :
|
|
68
|
-
//@ts-ignore
|
|
69
|
-
theme.palette[ownerState.color].main,
|
|
70
|
-
borderColor: ownerState.color === "primary" ? theme.palette.neutral.main :
|
|
71
|
-
//@ts-ignore
|
|
72
|
-
theme.palette[ownerState.color].main,
|
|
73
|
-
':hover': {
|
|
74
|
-
backgroundColor: ownerState.color === "primary" ? theme.palette.common.white :
|
|
75
|
-
//@ts-ignore
|
|
76
|
-
theme.palette[ownerState.color],
|
|
77
|
-
//@ts-ignore
|
|
78
|
-
color: ownerState.color === "primary" ? theme.palette.secondary.main :
|
|
79
|
-
//@ts-ignore
|
|
80
|
-
theme.palette[ownerState.color],
|
|
81
|
-
//@ts-ignore
|
|
82
|
-
borderColor: ownerState.color === "primary" ? theme.palette.secondary.main :
|
|
83
|
-
//@ts-ignore
|
|
84
|
-
theme.palette[ownerState.color]
|
|
85
|
-
}
|
|
86
|
-
}), ownerState.variant === "text" && {
|
|
87
|
-
backgroundColor: 'transparent',
|
|
88
|
-
color: ownerState.color === "primary" ? theme.palette.text.tertiary :
|
|
89
|
-
//@ts-ignore
|
|
90
|
-
theme.palette[ownerState.color].main,
|
|
91
|
-
':hover': {
|
|
92
|
-
backgroundColor: 'rgba(255, 255, 255, 0.15)',
|
|
93
|
-
//@ts-ignore
|
|
94
|
-
color: ownerState.color === "primary" ? theme.palette.secondary.main :
|
|
95
|
-
//@ts-ignore
|
|
96
|
-
theme.palette[ownerState.color]
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
variants: [{
|
|
102
|
-
props: {
|
|
103
|
-
variant: 'secondary'
|
|
104
|
-
},
|
|
105
|
-
style: {
|
|
106
|
-
backgroundColor: 'white',
|
|
107
|
-
color: theme.palette.neutral.main,
|
|
108
|
-
border: "1px solid ".concat(theme.palette.neutral.main),
|
|
109
|
-
':hover': {
|
|
110
|
-
border: "1px solid ".concat(theme.palette.primary.main),
|
|
111
|
-
color: theme.palette.primary.main,
|
|
112
|
-
backgroundColor: 'white'
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}]
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
export default buttonTheme;
|