@ceed/cds 0.0.187-treeshaking.1 → 0.0.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/dist/components/Accordions/index.d.ts +2 -2
- package/dist/components/Autocomplete/index.d.ts +2 -2
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/Box/index.d.ts +2 -2
- package/dist/components/Breadcrumbs/index.d.ts +2 -2
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Calendar/hooks/use-calendar-props.d.ts +3 -3
- package/dist/components/Calendar/hooks/use-calendar.d.ts +1 -1
- package/dist/components/Calendar/index.d.ts +2 -2
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/Chip/index.d.ts +2 -2
- package/dist/components/Container/index.d.ts +2 -2
- package/dist/components/CurrencyInput/index.d.ts +2 -2
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/index.d.ts +2 -2
- package/dist/components/DataTable/types.d.ts +7 -7
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker/index.d.ts +2 -2
- package/dist/components/DialogActions/index.d.ts +2 -2
- package/dist/components/DialogContent/index.d.ts +2 -2
- package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
- package/dist/components/DialogFrame/index.d.ts +2 -2
- package/dist/components/DialogTitle/index.d.ts +2 -2
- package/dist/components/Divider/index.d.ts +2 -2
- package/dist/components/Drawer/index.d.ts +2 -2
- package/dist/components/Dropdown/index.d.ts +2 -2
- package/dist/components/FormControl/index.d.ts +2 -2
- package/dist/components/FormHelperText/index.d.ts +2 -2
- package/dist/components/FormLabel/index.d.ts +2 -2
- package/dist/components/Grid/index.d.ts +2 -2
- package/dist/components/IconButton/index.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/index.d.ts +2 -2
- package/dist/components/InsetDrawer/index.d.ts +2 -2
- package/dist/components/Markdown/Markdown.d.ts +22 -6
- package/dist/components/Markdown/index.d.ts +2 -2
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/MenuButton/MenuButton.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +4 -4
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/components/MonthPicker/MonthPicker.d.ts +1 -1
- package/dist/components/MonthPicker/index.d.ts +2 -2
- package/dist/components/MonthRangePicker/MonthRangePicker.d.ts +1 -1
- package/dist/components/MonthRangePicker/index.d.ts +2 -2
- package/dist/components/NavigationGroup/index.d.ts +2 -2
- package/dist/components/NavigationItem/index.d.ts +2 -2
- package/dist/components/Navigator/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/PercentageInput/index.d.ts +2 -2
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/RadioList/RadioList.d.ts +1 -1
- package/dist/components/RadioList/index.d.ts +2 -2
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Sheet/index.d.ts +2 -2
- package/dist/components/Stack/index.d.ts +2 -2
- package/dist/components/Stepper/index.d.ts +2 -2
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Textarea/Textarea.d.ts +17 -3
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +7 -7
- package/dist/components/ThemeProvider/index.d.ts +2 -2
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/Typography/index.d.ts +2 -2
- package/dist/components/Uploader/Uploader.d.ts +3 -4
- package/dist/components/Uploader/index.d.ts +2 -2
- package/dist/components/index.d.ts +53 -53
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -52
- package/framer/index.js +30 -30
- package/package.json +4 -8
- package/dist/_virtual/_commonjsHelpers.js +0 -30
- package/dist/_virtual/bind-all.js +0 -3
- package/dist/_virtual/bind.js +0 -3
- package/dist/_virtual/colorManipulator.js +0 -5
- package/dist/_virtual/colorManipulator2.js +0 -3
- package/dist/_virtual/createStyled.js +0 -7
- package/dist/_virtual/createStyled2.js +0 -3
- package/dist/_virtual/extends.js +0 -3
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index10.js +0 -6
- package/dist/_virtual/index11.js +0 -6
- package/dist/_virtual/index12.js +0 -6
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.js +0 -7
- package/dist/_virtual/index4.js +0 -3
- package/dist/_virtual/index5.js +0 -6
- package/dist/_virtual/index6.js +0 -6
- package/dist/_virtual/index7.js +0 -6
- package/dist/_virtual/index8.js +0 -6
- package/dist/_virtual/index9.js +0 -6
- package/dist/_virtual/interopRequireDefault.js +0 -3
- package/dist/_virtual/objectWithoutPropertiesLoose.js +0 -3
- package/dist/components/Accordions/Accordions.js +0 -43
- package/dist/components/Autocomplete/Autocomplete.js +0 -196
- package/dist/components/Autocomplete/index.js +0 -5
- package/dist/components/Avatar/Avatar.js +0 -42
- package/dist/components/Box/Box.js +0 -8
- package/dist/components/Box/index.js +0 -5
- package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -47
- package/dist/components/Button/Button.js +0 -20
- package/dist/components/Button/index.js +0 -5
- package/dist/components/Calendar/Calendar.js +0 -333
- package/dist/components/Calendar/hooks/use-calendar-props.js +0 -74
- package/dist/components/Calendar/hooks/use-calendar.js +0 -247
- package/dist/components/Calendar/index.js +0 -5
- package/dist/components/Calendar/utils/index.js +0 -74
- package/dist/components/Card/Card.js +0 -20
- package/dist/components/Checkbox/Checkbox.js +0 -19
- package/dist/components/Checkbox/index.js +0 -5
- package/dist/components/Chip/Chip.js +0 -8
- package/dist/components/Chip/index.js +0 -5
- package/dist/components/Container/Container.js +0 -49
- package/dist/components/CurrencyInput/CurrencyInput.js +0 -91
- package/dist/components/CurrencyInput/hooks/use-currency-setting.js +0 -167
- package/dist/components/CurrencyInput/index.js +0 -5
- package/dist/components/DataTable/DataTable.js +0 -568
- package/dist/components/DatePicker/DatePicker.js +0 -210
- package/dist/components/DatePicker/index.js +0 -5
- package/dist/components/DateRangePicker/DateRangePicker.js +0 -213
- package/dist/components/DialogActions/DialogActions.js +0 -14
- package/dist/components/DialogActions/index.js +0 -5
- package/dist/components/DialogContent/DialogContent.js +0 -11
- package/dist/components/DialogContent/index.js +0 -5
- package/dist/components/DialogFrame/DialogFrame.js +0 -31
- package/dist/components/DialogTitle/DialogTitle.js +0 -11
- package/dist/components/DialogTitle/index.js +0 -5
- package/dist/components/Divider/Divider.js +0 -19
- package/dist/components/Drawer/Drawer.js +0 -40
- package/dist/components/Dropdown/Dropdown.js +0 -8
- package/dist/components/Dropdown/index.js +0 -5
- package/dist/components/FormControl/FormControl.js +0 -15
- package/dist/components/FormControl/index.js +0 -5
- package/dist/components/FormHelperText/FormHelperText.js +0 -8
- package/dist/components/FormHelperText/index.js +0 -5
- package/dist/components/FormLabel/FormLabel.js +0 -8
- package/dist/components/FormLabel/index.js +0 -5
- package/dist/components/IconButton/IconButton.js +0 -20
- package/dist/components/IconButton/index.js +0 -5
- package/dist/components/Input/Input.js +0 -60
- package/dist/components/Input/index.js +0 -5
- package/dist/components/InsetDrawer/InsetDrawer.js +0 -30
- package/dist/components/Markdown/Markdown.js +0 -36
- package/dist/components/Menu/Menu.js +0 -43
- package/dist/components/Menu/index.js +0 -6
- package/dist/components/MenuButton/MenuButton.js +0 -26
- package/dist/components/Modal/Modal.js +0 -43
- package/dist/components/MonthPicker/MonthPicker.js +0 -162
- package/dist/components/MonthRangePicker/MonthRangePicker.js +0 -172
- package/dist/components/NavigationGroup/NavigationGroup.js +0 -42
- package/dist/components/NavigationItem/NavigationItem.js +0 -45
- package/dist/components/Navigator/Navigator.js +0 -30
- package/dist/components/Pagination/Pagination.js +0 -117
- package/dist/components/Pagination/index.js +0 -5
- package/dist/components/PercentageInput/PercentageInput.js +0 -85
- package/dist/components/Radio/Radio.js +0 -11
- package/dist/components/RadioList/RadioList.js +0 -18
- package/dist/components/Select/Select.js +0 -56
- package/dist/components/Select/index.js +0 -6
- package/dist/components/Sheet/Sheet.js +0 -8
- package/dist/components/Sheet/index.js +0 -5
- package/dist/components/Stack/index.js +0 -2
- package/dist/components/Stepper/Stepper.js +0 -66
- package/dist/components/Switch/Switch.js +0 -46
- package/dist/components/Table/Table.js +0 -64
- package/dist/components/Tabs/Tabs.js +0 -17
- package/dist/components/Textarea/Textarea.js +0 -31
- package/dist/components/Textarea/index.js +0 -5
- package/dist/components/ThemeProvider/ThemeProvider.js +0 -240
- package/dist/components/Tooltip/Tooltip.js +0 -19
- package/dist/components/Tooltip/index.js +0 -5
- package/dist/components/Typography/Typography.js +0 -19
- package/dist/components/Typography/index.js +0 -5
- package/dist/components/Uploader/Uploader.js +0 -402
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/element-adapter-native-data-key.js +0 -8
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/external-adapter.js +0 -245
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js +0 -1
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js +0 -1
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js +0 -1
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js +0 -1
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/get-element-from-point-without-honey-pot.js +0 -19
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/honey-pot-data-attribute.js +0 -5
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/is-honey-pot-element.js +0 -7
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js +0 -128
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/lifecycle-manager.js +0 -340
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/usage-ledger.js +0 -33
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-adapter.js +0 -60
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-drop-target.js +0 -312
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-monitor.js +0 -96
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/combine.js +0 -13
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/external/file.js +0 -23
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/once.js +0 -18
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/prevent-unhandled.js +0 -102
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/add-attribute.js +0 -10
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/android.js +0 -3
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js +0 -123
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-entering-window.js +0 -55
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-from-another-window.js +0 -18
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-leaving-window.js +0 -55
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/detect-broken-drag.js +0 -49
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/get-input.js +0 -16
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-firefox.js +0 -15
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-safari.js +0 -18
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/media-types/text-media-type.js +0 -8
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/defineProperty.js +0 -18
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -26
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -12
- package/dist/external/@babel/runtime/helpers/esm/extends.js +0 -16
- package/dist/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -14
- package/dist/external/@babel/runtime/helpers/extends.js +0 -28
- package/dist/external/@babel/runtime/helpers/interopRequireDefault.js +0 -19
- package/dist/external/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -26
- package/dist/external/@emotion/cache/dist/emotion-cache.esm.js +0 -653
- package/dist/external/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/dist/external/@emotion/sheet/dist/emotion-sheet.esm.js +0 -154
- package/dist/external/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
- package/dist/external/@mui/icons-material/esm/ArrowUpwardRounded.js +0 -8
- package/dist/external/@mui/icons-material/esm/CalendarToday.js +0 -8
- package/dist/external/@mui/icons-material/esm/Check.js +0 -8
- package/dist/external/@mui/icons-material/esm/ChevronLeft.js +0 -8
- package/dist/external/@mui/icons-material/esm/ChevronRight.js +0 -8
- package/dist/external/@mui/icons-material/esm/ClearRounded.js +0 -8
- package/dist/external/@mui/icons-material/esm/Close.js +0 -8
- package/dist/external/@mui/icons-material/esm/CloudUploadRounded.js +0 -8
- package/dist/external/@mui/icons-material/esm/ExpandMore.js +0 -8
- package/dist/external/@mui/icons-material/esm/Info.js +0 -8
- package/dist/external/@mui/icons-material/esm/UploadFileRounded.js +0 -8
- package/dist/external/@mui/material/SvgIcon/SvgIcon.js +0 -186
- package/dist/external/@mui/material/SvgIcon/svgIconClasses.js +0 -9
- package/dist/external/@mui/material/colors/blue.js +0 -18
- package/dist/external/@mui/material/colors/common.js +0 -6
- package/dist/external/@mui/material/colors/green.js +0 -18
- package/dist/external/@mui/material/colors/grey.js +0 -18
- package/dist/external/@mui/material/colors/lightBlue.js +0 -18
- package/dist/external/@mui/material/colors/orange.js +0 -18
- package/dist/external/@mui/material/colors/purple.js +0 -18
- package/dist/external/@mui/material/colors/red.js +0 -18
- package/dist/external/@mui/material/styles/createMixins.js +0 -19
- package/dist/external/@mui/material/styles/createPalette.js +0 -308
- package/dist/external/@mui/material/styles/createTheme.js +0 -82
- package/dist/external/@mui/material/styles/createTransitions.js +0 -91
- package/dist/external/@mui/material/styles/createTypography.js +0 -93
- package/dist/external/@mui/material/styles/defaultTheme.js +0 -5
- package/dist/external/@mui/material/styles/identifier.js +0 -3
- package/dist/external/@mui/material/styles/rootShouldForwardProp.js +0 -5
- package/dist/external/@mui/material/styles/shadows.js +0 -11
- package/dist/external/@mui/material/styles/slotShouldForwardProp.js +0 -6
- package/dist/external/@mui/material/styles/styled.js +0 -12
- package/dist/external/@mui/material/styles/useThemeProps.js +0 -17
- package/dist/external/@mui/material/styles/zIndex.js +0 -14
- package/dist/external/@mui/material/utils/capitalize.js +0 -5
- package/dist/external/@mui/material/utils/createSvgIcon.js +0 -24
- package/dist/external/@mui/styled-engine/GlobalStyles/GlobalStyles.js +0 -24
- package/dist/external/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +0 -37
- package/dist/external/@mui/styled-engine/index.js +0 -38
- package/dist/external/@mui/system/colorManipulator.js +0 -385
- package/dist/external/@mui/system/createStyled.js +0 -270
- package/dist/external/@mui/system/esm/borders.js +0 -51
- package/dist/external/@mui/system/esm/breakpoints.js +0 -66
- package/dist/external/@mui/system/esm/compose.js +0 -26
- package/dist/external/@mui/system/esm/createTheme/applyStyles.js +0 -76
- package/dist/external/@mui/system/esm/createTheme/createBreakpoints.js +0 -82
- package/dist/external/@mui/system/esm/createTheme/createSpacing.js +0 -34
- package/dist/external/@mui/system/esm/createTheme/createTheme.js +0 -45
- package/dist/external/@mui/system/esm/createTheme/index.js +0 -3
- package/dist/external/@mui/system/esm/createTheme/shape.js +0 -5
- package/dist/external/@mui/system/esm/cssGrid.js +0 -86
- package/dist/external/@mui/system/esm/memoize.js +0 -11
- package/dist/external/@mui/system/esm/merge.js +0 -12
- package/dist/external/@mui/system/esm/palette.js +0 -28
- package/dist/external/@mui/system/esm/responsivePropType.js +0 -5
- package/dist/external/@mui/system/esm/sizing.js +0 -67
- package/dist/external/@mui/system/esm/spacing.js +0 -144
- package/dist/external/@mui/system/esm/style.js +0 -77
- package/dist/external/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -293
- package/dist/external/@mui/system/esm/styleFunctionSx/extendSxProp.js +0 -51
- package/dist/external/@mui/system/esm/styleFunctionSx/index.js +0 -3
- package/dist/external/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -129
- package/dist/external/@mui/system/esm/useTheme.js +0 -9
- package/dist/external/@mui/system/esm/useThemeProps/getThemeProps.js +0 -15
- package/dist/external/@mui/system/esm/useThemeProps/useThemeProps.js +0 -22
- package/dist/external/@mui/system/esm/useThemeWithoutDefault.js +0 -12
- package/dist/external/@mui/utils/ClassNameGenerator/ClassNameGenerator.js +0 -18
- package/dist/external/@mui/utils/capitalize/capitalize.js +0 -14
- package/dist/external/@mui/utils/capitalize/index.js +0 -1
- package/dist/external/@mui/utils/clamp/clamp.js +0 -5
- package/dist/external/@mui/utils/clamp/index.js +0 -1
- package/dist/external/@mui/utils/composeClasses/composeClasses.js +0 -23
- package/dist/external/@mui/utils/deepmerge/deepmerge.js +0 -44
- package/dist/external/@mui/utils/deepmerge/index.js +0 -1
- package/dist/external/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -21
- package/dist/external/@mui/utils/formatMuiErrorMessage/index.js +0 -1
- package/dist/external/@mui/utils/generateUtilityClass/generateUtilityClass.js +0 -22
- package/dist/external/@mui/utils/generateUtilityClasses/generateUtilityClasses.js +0 -11
- package/dist/external/@mui/utils/getDisplayName/getDisplayName.js +0 -49
- package/dist/external/@mui/utils/getDisplayName/index.js +0 -1
- package/dist/external/@mui/utils/resolveProps/resolveProps.js +0 -37
- package/dist/external/bind-event-listener/dist/bind-all.js +0 -54
- package/dist/external/bind-event-listener/dist/bind.js +0 -21
- package/dist/external/bind-event-listener/dist/index.js +0 -21
- package/dist/external/clsx/dist/clsx.js +0 -3
- package/dist/external/object-assign/index.js +0 -99
- package/dist/external/prop-types/checkPropTypes.js +0 -115
- package/dist/external/prop-types/factoryWithThrowingShims.js +0 -74
- package/dist/external/prop-types/factoryWithTypeCheckers.js +0 -625
- package/dist/external/prop-types/index.js +0 -33
- package/dist/external/prop-types/lib/ReactPropTypesSecret.js +0 -21
- package/dist/external/prop-types/lib/has.js +0 -11
- package/dist/external/raf-schd/dist/raf-schd.esm.js +0 -34
- package/dist/external/stylis/src/Enum.js +0 -12
- package/dist/external/stylis/src/Middleware.js +0 -32
- package/dist/external/stylis/src/Parser.js +0 -193
- package/dist/external/stylis/src/Serializer.js +0 -38
- package/dist/external/stylis/src/Tokenizer.js +0 -223
- package/dist/external/stylis/src/Utility.js +0 -117
- package/dist/hooks/use-controlled-state/index.js +0 -23
- package/dist/libs/rehype-accent/index.js +0 -39
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceed/cds",
|
|
3
|
-
"version": "0.0.187
|
|
3
|
+
"version": "0.0.187",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
|
-
"
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "UI tool for Ecube Labs front-end developers",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"storybook": "storybook dev -p 6006",
|
|
10
10
|
"build-storybook": "storybook build",
|
|
11
|
-
"build": "yarn build-for-framer && rm -rf ./dist &&
|
|
12
|
-
"build-for-framer": "yarn esbuild src/framer-entrypoint.ts --bundle --outfile='framer/index.js' --format=esm '--external:react' '--external:react/jsx-runtime' '--external:react-dom' '--external:framer' '--external:framer-motion' --main-fields=module,main --target=chrome58 --minify",
|
|
11
|
+
"build": "yarn build-for-framer && rm -rf ./dist && tsc --emitDeclarationOnly -p tsconfig.build.json && yarn dlx esbuild src/index.ts --bundle --outfile='dist/index.js' --format=esm '--packages=external' --tsconfig=tsconfig.build.json --minify",
|
|
12
|
+
"build-for-framer": "yarn dlx esbuild src/framer-entrypoint.ts --bundle --outfile='framer/index.js' --format=esm '--external:react' '--external:react/jsx-runtime' '--external:react-dom' '--external:framer' '--external:framer-motion' --main-fields=module,main --target=chrome58 --minify",
|
|
13
13
|
"prepack": "yarn build"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
@@ -47,9 +47,6 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@ecubelabs/tsconfig": "^1.0.0",
|
|
49
49
|
"@mui/material": "^5.15.10",
|
|
50
|
-
"@rollup/plugin-commonjs": "^28.0.2",
|
|
51
|
-
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
52
|
-
"@rollup/plugin-typescript": "^12.1.2",
|
|
53
50
|
"@storybook/addon-a11y": "^7.6.13",
|
|
54
51
|
"@storybook/addon-essentials": "^7.6.13",
|
|
55
52
|
"@storybook/addon-interactions": "^7.6.13",
|
|
@@ -65,7 +62,6 @@
|
|
|
65
62
|
"framer": "^2.4.1",
|
|
66
63
|
"react": "^18.2.0",
|
|
67
64
|
"react-dom": "^18.2.0",
|
|
68
|
-
"rollup": "^4.30.1",
|
|
69
65
|
"storybook": "^7.6.13",
|
|
70
66
|
"typescript": "^5.3.3"
|
|
71
67
|
},
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
function getDefaultExportFromCjs (x) {
|
|
2
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
function getAugmentedNamespace(n) {
|
|
6
|
-
if (n.__esModule) return n;
|
|
7
|
-
var f = n.default;
|
|
8
|
-
if (typeof f == "function") {
|
|
9
|
-
var a = function a () {
|
|
10
|
-
if (this instanceof a) {
|
|
11
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
12
|
-
}
|
|
13
|
-
return f.apply(this, arguments);
|
|
14
|
-
};
|
|
15
|
-
a.prototype = f.prototype;
|
|
16
|
-
} else a = {};
|
|
17
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
18
|
-
Object.keys(n).forEach(function (k) {
|
|
19
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
20
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () {
|
|
23
|
-
return n[k];
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
return a;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { getAugmentedNamespace, getDefaultExportFromCjs };
|
package/dist/_virtual/bind.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requireCreateStyled } from '../external/@mui/system/createStyled.js';
|
|
3
|
-
|
|
4
|
-
var createStyledExports = /*@__PURE__*/ requireCreateStyled();
|
|
5
|
-
var createStyled = /*@__PURE__*/getDefaultExportFromCjs(createStyledExports);
|
|
6
|
-
|
|
7
|
-
export { createStyled as default };
|
package/dist/_virtual/extends.js
DELETED
package/dist/_virtual/index.js
DELETED
package/dist/_virtual/index10.js
DELETED
package/dist/_virtual/index11.js
DELETED
package/dist/_virtual/index12.js
DELETED
package/dist/_virtual/index2.js
DELETED
package/dist/_virtual/index3.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requirePropTypes } from '../external/prop-types/index.js';
|
|
3
|
-
|
|
4
|
-
var propTypesExports = /*@__PURE__*/ requirePropTypes();
|
|
5
|
-
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
6
|
-
|
|
7
|
-
export { PropTypes as default };
|
package/dist/_virtual/index4.js
DELETED
package/dist/_virtual/index5.js
DELETED
package/dist/_virtual/index6.js
DELETED
package/dist/_virtual/index7.js
DELETED
package/dist/_virtual/index8.js
DELETED
package/dist/_virtual/index9.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { AccordionSummary as AccordionSummary$1, AccordionDetails as AccordionDetails$1, Accordion as Accordion$1, AccordionGroup } from '@mui/joy';
|
|
3
|
-
import { motion } from 'framer-motion';
|
|
4
|
-
|
|
5
|
-
const MotionAccordionSummary = motion(AccordionSummary$1);
|
|
6
|
-
const AccordionSummary = MotionAccordionSummary;
|
|
7
|
-
AccordionSummary.displayName = "AccordionSummary";
|
|
8
|
-
const MotionAccordionDetails = motion(AccordionDetails$1);
|
|
9
|
-
const AccordionDetails = MotionAccordionDetails;
|
|
10
|
-
AccordionDetails.displayName = "AccordionDetails";
|
|
11
|
-
const MotionAccordion = motion(Accordion$1);
|
|
12
|
-
function Accordion(props) {
|
|
13
|
-
// prop destruction
|
|
14
|
-
const { summary, details, variant, color, ...innerProps } = props;
|
|
15
|
-
// lib hooks
|
|
16
|
-
// state, ref, querystring hooks
|
|
17
|
-
// form hooks
|
|
18
|
-
// query hooks
|
|
19
|
-
// calculated values
|
|
20
|
-
const inheritedVariant = variant === "solid" ? "solid" : undefined;
|
|
21
|
-
// effects
|
|
22
|
-
// handlers
|
|
23
|
-
return (React__default.createElement(MotionAccordion, { variant: inheritedVariant, color: color, ...innerProps },
|
|
24
|
-
React__default.createElement(AccordionSummary, { variant: inheritedVariant, color: color }, summary),
|
|
25
|
-
React__default.createElement(AccordionDetails, { variant: inheritedVariant, color: color }, details)));
|
|
26
|
-
}
|
|
27
|
-
Accordion.displayName = "Accordion";
|
|
28
|
-
const MotionAccordions = motion(AccordionGroup);
|
|
29
|
-
function Accordions(props) {
|
|
30
|
-
// prop destruction
|
|
31
|
-
const { variant, color, items, ...innerProps } = props;
|
|
32
|
-
// lib hooks
|
|
33
|
-
// state, ref, querystring hooks
|
|
34
|
-
// form hooks
|
|
35
|
-
// query hooks
|
|
36
|
-
// calculated values
|
|
37
|
-
// effects
|
|
38
|
-
// handlers
|
|
39
|
-
return (React__default.createElement(MotionAccordions, { variant: variant, color: color, ...innerProps }, items.map((item, index) => (React__default.createElement(Accordion, { summary: item.summary, details: item.details, index: index, variant: variant, color: color })))));
|
|
40
|
-
}
|
|
41
|
-
Accordions.displayName = "Accordions";
|
|
42
|
-
|
|
43
|
-
export { Accordion, AccordionDetails, AccordionSummary, Accordions };
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import React__default, { useRef, useEffect, useCallback, useMemo } from 'react';
|
|
2
|
-
import { styled, ListSubheader, AutocompleteListbox, CircularProgress, Autocomplete as Autocomplete$1, Stack, AutocompleteOption, ListItemDecorator } from '@mui/joy';
|
|
3
|
-
import ClearIcon from '../../external/@mui/icons-material/esm/Close.js';
|
|
4
|
-
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
5
|
-
import { Popper } from '@mui/base';
|
|
6
|
-
import { FormControl } from '../FormControl/FormControl.js';
|
|
7
|
-
import { FormLabel } from '../FormLabel/FormLabel.js';
|
|
8
|
-
import { FormHelperText } from '../FormHelperText/FormHelperText.js';
|
|
9
|
-
import { Chip } from '../Chip/Chip.js';
|
|
10
|
-
import { IconButton } from '../IconButton/IconButton.js';
|
|
11
|
-
import { useControlledState } from '../../hooks/use-controlled-state/index.js';
|
|
12
|
-
|
|
13
|
-
const AutocompletePopper = styled(Popper, {
|
|
14
|
-
name: "Autocomplete",
|
|
15
|
-
slot: "Popper",
|
|
16
|
-
})(({ theme }) => ({
|
|
17
|
-
zIndex: theme.zIndex.tooltip,
|
|
18
|
-
}));
|
|
19
|
-
const AutocompleteListBox = React__default.forwardRef((props, ref) => {
|
|
20
|
-
// prop destruction
|
|
21
|
-
const { anchorEl, open, modifiers, children, ownerState: { loading, size: fontSize = "md" }, ...innerProps } = props;
|
|
22
|
-
// state, ref, querystring hooks
|
|
23
|
-
const parentRef = useRef(null);
|
|
24
|
-
// lib hooks
|
|
25
|
-
// NOTE: 부분 grouping은 불가능하다.
|
|
26
|
-
const isGrouped = children[0].every((child) => child.hasOwnProperty("group"));
|
|
27
|
-
const renderTargets = (() => {
|
|
28
|
-
if (loading) {
|
|
29
|
-
return [children[1]];
|
|
30
|
-
}
|
|
31
|
-
if (children[0].length === 0) {
|
|
32
|
-
return [children[2]];
|
|
33
|
-
}
|
|
34
|
-
if (isGrouped) {
|
|
35
|
-
return children[0].flatMap((child) => [
|
|
36
|
-
React__default.createElement(ListSubheader, { key: child.key, component: "li" }, child.group),
|
|
37
|
-
...child.children,
|
|
38
|
-
]);
|
|
39
|
-
}
|
|
40
|
-
return children[0];
|
|
41
|
-
})();
|
|
42
|
-
const virtualizer = useVirtualizer({
|
|
43
|
-
count: renderTargets.length,
|
|
44
|
-
estimateSize: () => 36,
|
|
45
|
-
getScrollElement: () => parentRef.current,
|
|
46
|
-
measureElement: (element) => element.clientHeight,
|
|
47
|
-
overscan: 5,
|
|
48
|
-
});
|
|
49
|
-
// form hooks
|
|
50
|
-
// query hooks
|
|
51
|
-
// calculated values
|
|
52
|
-
const items = virtualizer.getVirtualItems();
|
|
53
|
-
// effects
|
|
54
|
-
useEffect(() => {
|
|
55
|
-
if (open) {
|
|
56
|
-
virtualizer.measure();
|
|
57
|
-
}
|
|
58
|
-
}, [open, virtualizer]);
|
|
59
|
-
// handlers
|
|
60
|
-
return (React__default.createElement(AutocompletePopper, { ref: ref, anchorEl: anchorEl, open: open, modifiers: modifiers },
|
|
61
|
-
React__default.createElement(AutocompleteListbox, { ...innerProps },
|
|
62
|
-
React__default.createElement("div", { ref: parentRef, style: { overflow: "auto" } },
|
|
63
|
-
React__default.createElement("div", { style: {
|
|
64
|
-
height: `${virtualizer.getTotalSize()}px`,
|
|
65
|
-
position: "relative",
|
|
66
|
-
} }, items.map(({ index, size, start, key }) => React__default.cloneElement(renderTargets[index], {
|
|
67
|
-
key,
|
|
68
|
-
style: {
|
|
69
|
-
position: "absolute",
|
|
70
|
-
top: 0,
|
|
71
|
-
left: 0,
|
|
72
|
-
width: "100%",
|
|
73
|
-
fontSize: `var(--ceed-fontSize-${fontSize})`,
|
|
74
|
-
height: `${size}px`,
|
|
75
|
-
transform: `translateY(${start}px)`,
|
|
76
|
-
overflow: "visible",
|
|
77
|
-
},
|
|
78
|
-
children: (React__default.createElement("div", { style: {
|
|
79
|
-
textOverflow: "ellipsis",
|
|
80
|
-
textWrap: "nowrap",
|
|
81
|
-
overflow: "hidden",
|
|
82
|
-
width: "100%",
|
|
83
|
-
} }, renderTargets[index].props.children)),
|
|
84
|
-
})))))));
|
|
85
|
-
});
|
|
86
|
-
const AutocompleteDeleteSize = {
|
|
87
|
-
sm: "20px",
|
|
88
|
-
md: "24px",
|
|
89
|
-
lg: "28px",
|
|
90
|
-
};
|
|
91
|
-
const AutocompleteTagDelete = styled(IconButton, {
|
|
92
|
-
name: "Autocomplete",
|
|
93
|
-
slot: "tagDelete",
|
|
94
|
-
})(({ theme, size = "md" }) => ({
|
|
95
|
-
width: AutocompleteDeleteSize[size],
|
|
96
|
-
height: AutocompleteDeleteSize[size],
|
|
97
|
-
minWidth: AutocompleteDeleteSize[size],
|
|
98
|
-
minHeight: AutocompleteDeleteSize[size],
|
|
99
|
-
borderRadius: "50%",
|
|
100
|
-
}));
|
|
101
|
-
function Autocomplete(props) {
|
|
102
|
-
// prop destruction
|
|
103
|
-
const { label, error, helperText, color, size, disabled, required, onChange, onChangeComplete,
|
|
104
|
-
// NOTE: 스타일 관련된 props는 최상위 엘리먼트에 적용한다.
|
|
105
|
-
sx, className, ...innerProps } = props;
|
|
106
|
-
// lib hooks
|
|
107
|
-
// state, ref, querystring hooks
|
|
108
|
-
const [_value, setValue] = useControlledState(props.value, props.defaultValue || "", useCallback((value) => onChange?.({
|
|
109
|
-
target: {
|
|
110
|
-
value: value,
|
|
111
|
-
name: props.name,
|
|
112
|
-
},
|
|
113
|
-
}), [onChange, props.name]));
|
|
114
|
-
// form hooks
|
|
115
|
-
// query hooks
|
|
116
|
-
// calculated values
|
|
117
|
-
const options = useMemo(() => props.options.map((option) => {
|
|
118
|
-
if (typeof option !== "object") {
|
|
119
|
-
return {
|
|
120
|
-
value: option,
|
|
121
|
-
label: option,
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
return option;
|
|
125
|
-
}), [props.options]);
|
|
126
|
-
const optionMap = useMemo(() => {
|
|
127
|
-
const map = new Map();
|
|
128
|
-
options.forEach((option) => {
|
|
129
|
-
map.set(option.value, option);
|
|
130
|
-
});
|
|
131
|
-
return map;
|
|
132
|
-
}, [options]);
|
|
133
|
-
const value = useMemo(() => {
|
|
134
|
-
if (props.loading) {
|
|
135
|
-
return {
|
|
136
|
-
value: "",
|
|
137
|
-
label: "",
|
|
138
|
-
startDecorator: React__default.createElement(CircularProgress, { size: "sm", color: "neutral", variant: "plain", thickness: 3 }),
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
if (Array.isArray(_value)) {
|
|
142
|
-
return _value.filter((value) => optionMap.has(value)).map((value) => optionMap.get(value || ""));
|
|
143
|
-
}
|
|
144
|
-
return optionMap.get(_value);
|
|
145
|
-
}, [_value, optionMap, props.loading]);
|
|
146
|
-
const applySize = useCallback((node) => {
|
|
147
|
-
return React__default.isValidElement(node) && !props.loading ? React__default.cloneElement(node, { ...{ size } }) : node;
|
|
148
|
-
}, [size, props.loading]);
|
|
149
|
-
const startDecorator = useMemo(() => applySize(value?.startDecorator || props.startDecorator), [value, applySize, props.startDecorator]);
|
|
150
|
-
const endDecorator = useMemo(() => applySize(value?.endDecorator || props.endDecorator), [value, applySize, props.endDecorator]);
|
|
151
|
-
// effects
|
|
152
|
-
// handlers
|
|
153
|
-
const handleChange = useCallback((event, value) => {
|
|
154
|
-
const newValue = value;
|
|
155
|
-
const _value = (Array.isArray(newValue) ? newValue.map((value) => value.value) : newValue?.value);
|
|
156
|
-
setValue(_value);
|
|
157
|
-
if ((Array.isArray(newValue) && newValue.map((value) => optionMap.get(value.value))) ||
|
|
158
|
-
optionMap.get(newValue?.value)) {
|
|
159
|
-
onChangeComplete?.({
|
|
160
|
-
...event,
|
|
161
|
-
target: {
|
|
162
|
-
...event.target,
|
|
163
|
-
value: _value,
|
|
164
|
-
},
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
}, [onChangeComplete, setValue, optionMap]);
|
|
168
|
-
const autocomplete = (React__default.createElement(Autocomplete$1, { ...innerProps, required: required, onChange: handleChange, color: error ? "danger" : color, value: (value || null), options: options, size: size, disabled: disabled, startDecorator: startDecorator, endDecorator: endDecorator, getOptionLabel: (option) => `${option.label ?? ""}`, renderTags: (tags, getTagProps) => tags.map((tag, index) => {
|
|
169
|
-
const { onClick, ...rest } = getTagProps({ index });
|
|
170
|
-
return applySize(React__default.createElement(Chip, { color: "primary", ...rest },
|
|
171
|
-
React__default.createElement(Stack, { direction: "row", alignItems: "center", gap: 2, py: 0.5 },
|
|
172
|
-
tag.value,
|
|
173
|
-
applySize(React__default.createElement(AutocompleteTagDelete, { color: "primary", variant: "soft", onClick: onClick },
|
|
174
|
-
React__default.createElement(ClearIcon, null))))));
|
|
175
|
-
}), slots: {
|
|
176
|
-
listbox: AutocompleteListBox,
|
|
177
|
-
}, renderOption: (props, option) => (React__default.createElement(AutocompleteOption, { ...props },
|
|
178
|
-
option.startDecorator && (React__default.createElement(ListItemDecorator, { sx: (theme) => ({
|
|
179
|
-
marginInlineEnd: `var(--Input-gap, ${theme.spacing(1)})`,
|
|
180
|
-
}) }, applySize(option.startDecorator))),
|
|
181
|
-
applySize(option.label),
|
|
182
|
-
option.endDecorator && (React__default.createElement(ListItemDecorator, { sx: (theme) => ({
|
|
183
|
-
marginInlineStart: `var(--Input-gap, ${theme.spacing(1)})`,
|
|
184
|
-
}) }, applySize(option.endDecorator))))),
|
|
185
|
-
// TODO: Post React 18 update - validate this conversion, look like a hidden bug
|
|
186
|
-
renderGroup: (params) => params }));
|
|
187
|
-
return (React__default.createElement(FormControl, { required: required, color: color, size: size, error: error, disabled: disabled,
|
|
188
|
-
// NOTE: 스타일 관련된 props는 최상위 엘리먼트에 적용한다.
|
|
189
|
-
sx: sx, className: className },
|
|
190
|
-
label && React__default.createElement(FormLabel, null, label),
|
|
191
|
-
autocomplete,
|
|
192
|
-
helperText && React__default.createElement(FormHelperText, null, helperText)));
|
|
193
|
-
}
|
|
194
|
-
Autocomplete.displayName = "Autocomplete";
|
|
195
|
-
|
|
196
|
-
export { Autocomplete };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React__default, { forwardRef, useMemo } from 'react';
|
|
2
|
-
import { styled, Avatar as Avatar$1, useThemeProps } from '@mui/joy';
|
|
3
|
-
export { AvatarGroup } from '@mui/joy';
|
|
4
|
-
|
|
5
|
-
const StyledAvatar = styled(Avatar$1, {
|
|
6
|
-
name: "Avatar",
|
|
7
|
-
slot: "Root",
|
|
8
|
-
overridesResolver: (props, styles) => styles.root,
|
|
9
|
-
})({});
|
|
10
|
-
const defaultGetInitial = (name) => {
|
|
11
|
-
const isKorean = /[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/.test(name);
|
|
12
|
-
if (isKorean) {
|
|
13
|
-
return name[0];
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
const nameParts = name.trim().split(/\s+/);
|
|
17
|
-
if (nameParts.length === 0)
|
|
18
|
-
return;
|
|
19
|
-
if (nameParts.length === 1) {
|
|
20
|
-
return nameParts[0].charAt(0).toUpperCase();
|
|
21
|
-
}
|
|
22
|
-
const firstName = nameParts[0];
|
|
23
|
-
const lastName = nameParts[nameParts.length - 1];
|
|
24
|
-
return (firstName.charAt(0) + lastName.charAt(0)).toUpperCase();
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
const Avatar = forwardRef(function Avatar(inProps, ref) {
|
|
28
|
-
const props = useThemeProps({
|
|
29
|
-
props: inProps,
|
|
30
|
-
name: "Avatar",
|
|
31
|
-
});
|
|
32
|
-
const { children, getInitial = defaultGetInitial, ...inheritProps } = props;
|
|
33
|
-
const calcChildren = useMemo(() => {
|
|
34
|
-
if (typeof children === "string") {
|
|
35
|
-
return getInitial?.(children) ?? "";
|
|
36
|
-
}
|
|
37
|
-
return children;
|
|
38
|
-
}, [children, getInitial]);
|
|
39
|
-
return React__default.createElement(StyledAvatar, { ...inheritProps, children: calcChildren, ref: ref });
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export { Avatar };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { Breadcrumbs as Breadcrumbs$1, MenuButton, Link } from '@mui/joy';
|
|
3
|
-
import { MenuItem, Menu } from '../Menu/Menu.js';
|
|
4
|
-
import { Dropdown } from '../Dropdown/Dropdown.js';
|
|
5
|
-
import { Typography } from '../Typography/Typography.js';
|
|
6
|
-
|
|
7
|
-
function Breadcrumbs(props) {
|
|
8
|
-
// prop destruction
|
|
9
|
-
const { crumbs, size, startCrumbCount = 1, endCrumbCount = 3, slots: { link: Link$1, ...restSlots } = { link: Link }, slotProps: { link: linkProps, ...restSlotProps } = {
|
|
10
|
-
link: { color: "neutral" },
|
|
11
|
-
}, ...innerProps } = props;
|
|
12
|
-
// lib hooks
|
|
13
|
-
// state, ref, querystring hooks
|
|
14
|
-
// form hooks
|
|
15
|
-
// query hooks
|
|
16
|
-
// calculated values
|
|
17
|
-
const _endCrumbCount = Math.max(1, endCrumbCount);
|
|
18
|
-
const Crumb = (props) => {
|
|
19
|
-
if (props.type === "link" && Link$1) {
|
|
20
|
-
return (React__default.createElement(Link$1, { to: props.linkHref, href: props.linkHref, ...linkProps }, props.label));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return React__default.createElement(Typography, null, props.label);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
const frontCrumbs = crumbs
|
|
27
|
-
.slice(0, startCrumbCount)
|
|
28
|
-
.map((crumb) => React__default.createElement(Crumb, { ...crumb }));
|
|
29
|
-
const backCrumbs = (startCrumbCount + _endCrumbCount > crumbs.length
|
|
30
|
-
? crumbs.slice(startCrumbCount)
|
|
31
|
-
: crumbs.slice(-_endCrumbCount)).map((crumb) => React__default.createElement(Crumb, { ...crumb }));
|
|
32
|
-
const collapsedCrumbs = crumbs
|
|
33
|
-
.slice(startCrumbCount, -_endCrumbCount)
|
|
34
|
-
.map((crumb) => (React__default.createElement(MenuItem, null,
|
|
35
|
-
React__default.createElement(Crumb, { ...crumb }))));
|
|
36
|
-
// effects
|
|
37
|
-
// handlers
|
|
38
|
-
return (React__default.createElement(Breadcrumbs$1, { size: size, slots: restSlots, slotProps: restSlotProps, ...innerProps },
|
|
39
|
-
frontCrumbs,
|
|
40
|
-
collapsedCrumbs.length && (React__default.createElement(Dropdown, null,
|
|
41
|
-
React__default.createElement(MenuButton, { size: size, variant: "plain" }, "..."),
|
|
42
|
-
React__default.createElement(Menu, { size: size }, collapsedCrumbs))),
|
|
43
|
-
backCrumbs));
|
|
44
|
-
}
|
|
45
|
-
Breadcrumbs.displayName = "Breadcrumbs";
|
|
46
|
-
|
|
47
|
-
export { Breadcrumbs };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React__default, { forwardRef } from 'react';
|
|
2
|
-
import { Button as Button$1 } from '@mui/joy';
|
|
3
|
-
import { motion } from 'framer-motion';
|
|
4
|
-
|
|
5
|
-
const MotionButton = motion(Button$1);
|
|
6
|
-
const Button = forwardRef(({ ...props }, ref) => {
|
|
7
|
-
// prop destruction
|
|
8
|
-
// lib hooks
|
|
9
|
-
// state, ref, querystring hooks
|
|
10
|
-
// form hooks
|
|
11
|
-
// query hooks
|
|
12
|
-
// calculated values
|
|
13
|
-
// effects
|
|
14
|
-
// handlers
|
|
15
|
-
return React__default.createElement(MotionButton, { ref: ref, ...props });
|
|
16
|
-
});
|
|
17
|
-
// @ts-expect-error
|
|
18
|
-
Button.displayName = "Button";
|
|
19
|
-
|
|
20
|
-
export { Button };
|