@ceed/cds 0.0.186 → 0.0.187-treeshaking.1
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/_virtual/_commonjsHelpers.js +30 -0
- package/dist/_virtual/bind-all.js +3 -0
- package/dist/_virtual/bind.js +3 -0
- package/dist/_virtual/colorManipulator.js +5 -0
- package/dist/_virtual/colorManipulator2.js +3 -0
- package/dist/_virtual/createStyled.js +7 -0
- package/dist/_virtual/createStyled2.js +3 -0
- package/dist/_virtual/extends.js +3 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index10.js +6 -0
- package/dist/_virtual/index11.js +6 -0
- package/dist/_virtual/index12.js +6 -0
- package/dist/_virtual/index2.js +3 -0
- package/dist/_virtual/index3.js +7 -0
- package/dist/_virtual/index4.js +3 -0
- package/dist/_virtual/index5.js +6 -0
- package/dist/_virtual/index6.js +6 -0
- package/dist/_virtual/index7.js +6 -0
- package/dist/_virtual/index8.js +6 -0
- package/dist/_virtual/index9.js +6 -0
- package/dist/_virtual/interopRequireDefault.js +3 -0
- package/dist/_virtual/objectWithoutPropertiesLoose.js +3 -0
- package/dist/components/Accordions/Accordions.js +43 -0
- package/dist/components/Accordions/index.d.ts +2 -2
- package/dist/components/Autocomplete/Autocomplete.js +196 -0
- package/dist/components/Autocomplete/index.d.ts +2 -2
- package/dist/components/Autocomplete/index.js +5 -0
- package/dist/components/Avatar/Avatar.js +42 -0
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/Box/Box.js +8 -0
- package/dist/components/Box/index.d.ts +2 -2
- package/dist/components/Box/index.js +5 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +47 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -2
- package/dist/components/Button/Button.js +20 -0
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Button/index.js +5 -0
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Calendar/Calendar.js +333 -0
- package/dist/components/Calendar/hooks/use-calendar-props.d.ts +3 -3
- package/dist/components/Calendar/hooks/use-calendar-props.js +74 -0
- package/dist/components/Calendar/hooks/use-calendar.d.ts +1 -1
- package/dist/components/Calendar/hooks/use-calendar.js +247 -0
- package/dist/components/Calendar/index.d.ts +2 -2
- package/dist/components/Calendar/index.js +5 -0
- package/dist/components/Calendar/utils/index.js +74 -0
- package/dist/components/Card/Card.js +20 -0
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.js +19 -0
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/Checkbox/index.js +5 -0
- package/dist/components/Chip/Chip.js +8 -0
- package/dist/components/Chip/index.d.ts +2 -2
- package/dist/components/Chip/index.js +5 -0
- package/dist/components/Container/Container.js +49 -0
- package/dist/components/Container/index.d.ts +2 -2
- package/dist/components/CurrencyInput/CurrencyInput.js +91 -0
- package/dist/components/CurrencyInput/hooks/use-currency-setting.js +167 -0
- package/dist/components/CurrencyInput/index.d.ts +2 -2
- package/dist/components/CurrencyInput/index.js +5 -0
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTable.js +568 -0
- 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/DatePicker.js +210 -0
- package/dist/components/DatePicker/index.d.ts +2 -2
- package/dist/components/DatePicker/index.js +5 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +213 -0
- package/dist/components/DateRangePicker/index.d.ts +2 -2
- package/dist/components/DialogActions/DialogActions.js +14 -0
- package/dist/components/DialogActions/index.d.ts +2 -2
- package/dist/components/DialogActions/index.js +5 -0
- package/dist/components/DialogContent/DialogContent.js +11 -0
- package/dist/components/DialogContent/index.d.ts +2 -2
- package/dist/components/DialogContent/index.js +5 -0
- package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
- package/dist/components/DialogFrame/DialogFrame.js +31 -0
- package/dist/components/DialogFrame/index.d.ts +2 -2
- package/dist/components/DialogTitle/DialogTitle.js +11 -0
- package/dist/components/DialogTitle/index.d.ts +2 -2
- package/dist/components/DialogTitle/index.js +5 -0
- package/dist/components/Divider/Divider.js +19 -0
- package/dist/components/Divider/index.d.ts +2 -2
- package/dist/components/Drawer/Drawer.js +40 -0
- package/dist/components/Drawer/index.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.js +8 -0
- package/dist/components/Dropdown/index.d.ts +2 -2
- package/dist/components/Dropdown/index.js +5 -0
- package/dist/components/FormControl/FormControl.js +15 -0
- package/dist/components/FormControl/index.d.ts +2 -2
- package/dist/components/FormControl/index.js +5 -0
- package/dist/components/FormHelperText/FormHelperText.js +8 -0
- package/dist/components/FormHelperText/index.d.ts +2 -2
- package/dist/components/FormHelperText/index.js +5 -0
- package/dist/components/FormLabel/FormLabel.js +8 -0
- package/dist/components/FormLabel/index.d.ts +2 -2
- package/dist/components/FormLabel/index.js +5 -0
- package/dist/components/Grid/index.d.ts +2 -2
- package/dist/components/IconButton/IconButton.js +20 -0
- package/dist/components/IconButton/index.d.ts +2 -2
- package/dist/components/IconButton/index.js +5 -0
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +60 -0
- package/dist/components/Input/index.d.ts +2 -2
- package/dist/components/Input/index.js +5 -0
- package/dist/components/InsetDrawer/InsetDrawer.js +30 -0
- package/dist/components/InsetDrawer/index.d.ts +2 -2
- package/dist/components/Markdown/Markdown.d.ts +6 -22
- package/dist/components/Markdown/Markdown.js +36 -0
- package/dist/components/Markdown/index.d.ts +2 -2
- package/dist/components/Menu/Menu.js +43 -0
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/Menu/index.js +6 -0
- package/dist/components/MenuButton/MenuButton.js +26 -0
- package/dist/components/Modal/Modal.d.ts +4 -4
- package/dist/components/Modal/Modal.js +43 -0
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/components/MonthPicker/MonthPicker.d.ts +1 -1
- package/dist/components/MonthPicker/MonthPicker.js +162 -0
- package/dist/components/MonthPicker/index.d.ts +2 -2
- package/dist/components/MonthRangePicker/MonthRangePicker.d.ts +1 -1
- package/dist/components/MonthRangePicker/MonthRangePicker.js +172 -0
- package/dist/components/MonthRangePicker/index.d.ts +2 -2
- package/dist/components/NavigationGroup/NavigationGroup.js +42 -0
- package/dist/components/NavigationGroup/index.d.ts +2 -2
- package/dist/components/NavigationItem/NavigationItem.js +45 -0
- package/dist/components/NavigationItem/index.d.ts +2 -2
- package/dist/components/Navigator/Navigator.js +30 -0
- package/dist/components/Navigator/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Pagination/Pagination.js +117 -0
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Pagination/index.js +5 -0
- package/dist/components/PercentageInput/PercentageInput.js +85 -0
- package/dist/components/PercentageInput/index.d.ts +2 -2
- package/dist/components/Radio/Radio.js +11 -0
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/RadioList/RadioList.d.ts +1 -1
- package/dist/components/RadioList/RadioList.js +18 -0
- package/dist/components/RadioList/index.d.ts +2 -2
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +56 -0
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Select/index.js +6 -0
- package/dist/components/Sheet/Sheet.js +8 -0
- package/dist/components/Sheet/index.d.ts +2 -2
- package/dist/components/Sheet/index.js +5 -0
- package/dist/components/Stack/index.d.ts +2 -2
- package/dist/components/Stack/index.js +2 -0
- package/dist/components/Stepper/Stepper.js +66 -0
- package/dist/components/Stepper/index.d.ts +2 -2
- package/dist/components/Switch/Switch.js +46 -0
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Table/Table.js +64 -0
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Tabs/Tabs.js +17 -0
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Textarea/Textarea.d.ts +3 -17
- package/dist/components/Textarea/Textarea.js +31 -0
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/Textarea/index.js +5 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +7 -7
- package/dist/components/ThemeProvider/ThemeProvider.js +240 -0
- package/dist/components/ThemeProvider/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.js +19 -0
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/Tooltip/index.js +5 -0
- package/dist/components/Typography/Typography.js +19 -0
- package/dist/components/Typography/index.d.ts +2 -2
- package/dist/components/Typography/index.js +5 -0
- package/dist/components/Uploader/Uploader.d.ts +4 -3
- package/dist/components/Uploader/Uploader.js +402 -0
- package/dist/components/Uploader/index.d.ts +2 -2
- package/dist/components/index.d.ts +53 -53
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/element-adapter-native-data-key.js +8 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/external-adapter.js +245 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js +1 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js +1 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js +1 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js +1 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/get-element-from-point-without-honey-pot.js +19 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/honey-pot-data-attribute.js +5 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/is-honey-pot-element.js +7 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js +128 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/lifecycle-manager.js +340 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/usage-ledger.js +33 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-adapter.js +60 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-drop-target.js +312 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-monitor.js +96 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/combine.js +13 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/external/file.js +23 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/once.js +18 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/prevent-unhandled.js +102 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/add-attribute.js +10 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/android.js +3 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js +123 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-entering-window.js +55 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-from-another-window.js +18 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-leaving-window.js +55 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/detect-broken-drag.js +49 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/get-input.js +16 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-firefox.js +15 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-safari.js +18 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/media-types/text-media-type.js +8 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayLikeToArray.js +7 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/defineProperty.js +18 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArray.js +5 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArrayLimit.js +26 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableSpread.js +5 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +12 -0
- package/dist/external/@babel/runtime/helpers/esm/extends.js +16 -0
- package/dist/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
- package/dist/external/@babel/runtime/helpers/extends.js +28 -0
- package/dist/external/@babel/runtime/helpers/interopRequireDefault.js +19 -0
- package/dist/external/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +26 -0
- package/dist/external/@emotion/cache/dist/emotion-cache.esm.js +653 -0
- package/dist/external/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
- package/dist/external/@emotion/sheet/dist/emotion-sheet.esm.js +154 -0
- package/dist/external/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/dist/external/@mui/icons-material/esm/ArrowUpwardRounded.js +8 -0
- package/dist/external/@mui/icons-material/esm/CalendarToday.js +8 -0
- package/dist/external/@mui/icons-material/esm/Check.js +8 -0
- package/dist/external/@mui/icons-material/esm/ChevronLeft.js +8 -0
- package/dist/external/@mui/icons-material/esm/ChevronRight.js +8 -0
- package/dist/external/@mui/icons-material/esm/ClearRounded.js +8 -0
- package/dist/external/@mui/icons-material/esm/Close.js +8 -0
- package/dist/external/@mui/icons-material/esm/CloudUploadRounded.js +8 -0
- package/dist/external/@mui/icons-material/esm/ExpandMore.js +8 -0
- package/dist/external/@mui/icons-material/esm/Info.js +8 -0
- package/dist/external/@mui/icons-material/esm/UploadFileRounded.js +8 -0
- package/dist/external/@mui/material/SvgIcon/SvgIcon.js +186 -0
- package/dist/external/@mui/material/SvgIcon/svgIconClasses.js +9 -0
- package/dist/external/@mui/material/colors/blue.js +18 -0
- package/dist/external/@mui/material/colors/common.js +6 -0
- package/dist/external/@mui/material/colors/green.js +18 -0
- package/dist/external/@mui/material/colors/grey.js +18 -0
- package/dist/external/@mui/material/colors/lightBlue.js +18 -0
- package/dist/external/@mui/material/colors/orange.js +18 -0
- package/dist/external/@mui/material/colors/purple.js +18 -0
- package/dist/external/@mui/material/colors/red.js +18 -0
- package/dist/external/@mui/material/styles/createMixins.js +19 -0
- package/dist/external/@mui/material/styles/createPalette.js +308 -0
- package/dist/external/@mui/material/styles/createTheme.js +82 -0
- package/dist/external/@mui/material/styles/createTransitions.js +91 -0
- package/dist/external/@mui/material/styles/createTypography.js +93 -0
- package/dist/external/@mui/material/styles/defaultTheme.js +5 -0
- package/dist/external/@mui/material/styles/identifier.js +3 -0
- package/dist/external/@mui/material/styles/rootShouldForwardProp.js +5 -0
- package/dist/external/@mui/material/styles/shadows.js +11 -0
- package/dist/external/@mui/material/styles/slotShouldForwardProp.js +6 -0
- package/dist/external/@mui/material/styles/styled.js +12 -0
- package/dist/external/@mui/material/styles/useThemeProps.js +17 -0
- package/dist/external/@mui/material/styles/zIndex.js +14 -0
- package/dist/external/@mui/material/utils/capitalize.js +5 -0
- package/dist/external/@mui/material/utils/createSvgIcon.js +24 -0
- package/dist/external/@mui/styled-engine/GlobalStyles/GlobalStyles.js +24 -0
- package/dist/external/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +37 -0
- package/dist/external/@mui/styled-engine/index.js +38 -0
- package/dist/external/@mui/system/colorManipulator.js +385 -0
- package/dist/external/@mui/system/createStyled.js +270 -0
- package/dist/external/@mui/system/esm/borders.js +51 -0
- package/dist/external/@mui/system/esm/breakpoints.js +66 -0
- package/dist/external/@mui/system/esm/compose.js +26 -0
- package/dist/external/@mui/system/esm/createTheme/applyStyles.js +76 -0
- package/dist/external/@mui/system/esm/createTheme/createBreakpoints.js +82 -0
- package/dist/external/@mui/system/esm/createTheme/createSpacing.js +34 -0
- package/dist/external/@mui/system/esm/createTheme/createTheme.js +45 -0
- package/dist/external/@mui/system/esm/createTheme/index.js +3 -0
- package/dist/external/@mui/system/esm/createTheme/shape.js +5 -0
- package/dist/external/@mui/system/esm/cssGrid.js +86 -0
- package/dist/external/@mui/system/esm/memoize.js +11 -0
- package/dist/external/@mui/system/esm/merge.js +12 -0
- package/dist/external/@mui/system/esm/palette.js +28 -0
- package/dist/external/@mui/system/esm/responsivePropType.js +5 -0
- package/dist/external/@mui/system/esm/sizing.js +67 -0
- package/dist/external/@mui/system/esm/spacing.js +144 -0
- package/dist/external/@mui/system/esm/style.js +77 -0
- package/dist/external/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +293 -0
- package/dist/external/@mui/system/esm/styleFunctionSx/extendSxProp.js +51 -0
- package/dist/external/@mui/system/esm/styleFunctionSx/index.js +3 -0
- package/dist/external/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +129 -0
- package/dist/external/@mui/system/esm/useTheme.js +9 -0
- package/dist/external/@mui/system/esm/useThemeProps/getThemeProps.js +15 -0
- package/dist/external/@mui/system/esm/useThemeProps/useThemeProps.js +22 -0
- package/dist/external/@mui/system/esm/useThemeWithoutDefault.js +12 -0
- package/dist/external/@mui/utils/ClassNameGenerator/ClassNameGenerator.js +18 -0
- package/dist/external/@mui/utils/capitalize/capitalize.js +14 -0
- package/dist/external/@mui/utils/capitalize/index.js +1 -0
- package/dist/external/@mui/utils/clamp/clamp.js +5 -0
- package/dist/external/@mui/utils/clamp/index.js +1 -0
- package/dist/external/@mui/utils/composeClasses/composeClasses.js +23 -0
- package/dist/external/@mui/utils/deepmerge/deepmerge.js +44 -0
- package/dist/external/@mui/utils/deepmerge/index.js +1 -0
- package/dist/external/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js +21 -0
- package/dist/external/@mui/utils/formatMuiErrorMessage/index.js +1 -0
- package/dist/external/@mui/utils/generateUtilityClass/generateUtilityClass.js +22 -0
- package/dist/external/@mui/utils/generateUtilityClasses/generateUtilityClasses.js +11 -0
- package/dist/external/@mui/utils/getDisplayName/getDisplayName.js +49 -0
- package/dist/external/@mui/utils/getDisplayName/index.js +1 -0
- package/dist/external/@mui/utils/resolveProps/resolveProps.js +37 -0
- package/dist/external/bind-event-listener/dist/bind-all.js +54 -0
- package/dist/external/bind-event-listener/dist/bind.js +21 -0
- package/dist/external/bind-event-listener/dist/index.js +21 -0
- package/dist/external/clsx/dist/clsx.js +3 -0
- package/dist/external/object-assign/index.js +99 -0
- package/dist/external/prop-types/checkPropTypes.js +115 -0
- package/dist/external/prop-types/factoryWithThrowingShims.js +74 -0
- package/dist/external/prop-types/factoryWithTypeCheckers.js +625 -0
- package/dist/external/prop-types/index.js +33 -0
- package/dist/external/prop-types/lib/ReactPropTypesSecret.js +21 -0
- package/dist/external/prop-types/lib/has.js +11 -0
- package/dist/external/raf-schd/dist/raf-schd.esm.js +34 -0
- package/dist/external/stylis/src/Enum.js +12 -0
- package/dist/external/stylis/src/Middleware.js +32 -0
- package/dist/external/stylis/src/Parser.js +193 -0
- package/dist/external/stylis/src/Serializer.js +38 -0
- package/dist/external/stylis/src/Tokenizer.js +223 -0
- package/dist/external/stylis/src/Utility.js +117 -0
- package/dist/hooks/use-controlled-state/index.js +23 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +52 -2
- package/dist/libs/rehype-accent/index.js +39 -0
- package/framer/index.js +30 -30
- package/package.json +8 -4
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Dropdown } from "./Dropdown";
|
|
2
|
-
export * from "./Dropdown";
|
|
1
|
+
import { Dropdown } from "./Dropdown.js";
|
|
2
|
+
export * from "./Dropdown.js";
|
|
3
3
|
export default Dropdown;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormControl as FormControl$1, styled, formLabelClasses } from '@mui/joy';
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
|
|
4
|
+
const MotionFormControl = motion(FormControl$1);
|
|
5
|
+
const FormControl = styled(MotionFormControl)(({ theme }) => ({
|
|
6
|
+
[`.${formLabelClasses.root}`]: {
|
|
7
|
+
display: "block",
|
|
8
|
+
},
|
|
9
|
+
[`.${formLabelClasses.asterisk}`]: {
|
|
10
|
+
marginLeft: theme.spacing(0.5),
|
|
11
|
+
},
|
|
12
|
+
}));
|
|
13
|
+
FormControl.displayName = "FormControl";
|
|
14
|
+
|
|
15
|
+
export { FormControl };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormControl } from "./FormControl";
|
|
2
|
-
export * from "./FormControl";
|
|
1
|
+
import { FormControl } from "./FormControl.js";
|
|
2
|
+
export * from "./FormControl.js";
|
|
3
3
|
export default FormControl;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormHelperText as FormHelperText$1 } from '@mui/joy';
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
|
|
4
|
+
const MotionFormHelperText = motion(FormHelperText$1);
|
|
5
|
+
const FormHelperText = MotionFormHelperText;
|
|
6
|
+
FormHelperText.displayName = "FormHelperText";
|
|
7
|
+
|
|
8
|
+
export { FormHelperText };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormHelperText } from "./FormHelperText";
|
|
2
|
-
export * from "./FormHelperText";
|
|
1
|
+
import { FormHelperText } from "./FormHelperText.js";
|
|
2
|
+
export * from "./FormHelperText.js";
|
|
3
3
|
export default FormHelperText;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormLabel } from "./FormLabel";
|
|
2
|
-
export * from "./FormLabel";
|
|
1
|
+
import { FormLabel } from "./FormLabel.js";
|
|
2
|
+
export * from "./FormLabel.js";
|
|
3
3
|
export default FormLabel;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Grid } from "./Grid";
|
|
2
|
-
export * from "./Grid";
|
|
1
|
+
import { Grid } from "./Grid.js";
|
|
2
|
+
export * from "./Grid.js";
|
|
3
3
|
export default Grid;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React__default, { forwardRef } from 'react';
|
|
2
|
+
import { IconButton as IconButton$1 } from '@mui/joy';
|
|
3
|
+
import { motion } from 'framer-motion';
|
|
4
|
+
|
|
5
|
+
const MotionIconButton = motion(IconButton$1);
|
|
6
|
+
const IconButton = 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(MotionIconButton, { ref: ref, ...props });
|
|
16
|
+
});
|
|
17
|
+
// @ts-expect-error
|
|
18
|
+
IconButton.displayName = "IconButton";
|
|
19
|
+
|
|
20
|
+
export { IconButton };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IconButton } from "./IconButton";
|
|
2
|
-
export * from "./IconButton";
|
|
1
|
+
import { IconButton } from "./IconButton.js";
|
|
2
|
+
export * from "./IconButton.js";
|
|
3
3
|
export default IconButton;
|
|
@@ -15,7 +15,7 @@ declare const Input: React.ForwardRefExoticComponent<Omit<{
|
|
|
15
15
|
fullWidth?: boolean | undefined;
|
|
16
16
|
startDecorator?: React.ReactNode;
|
|
17
17
|
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").InputPropsSizeOverrides> | undefined;
|
|
18
|
-
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
18
|
+
sx?: import("@mui/joy/styles/types/theme.js").SxProps | undefined;
|
|
19
19
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").InputPropsVariantOverrides> | undefined;
|
|
20
20
|
} & import("@mui/joy").InputSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
21
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React__default, { useCallback } from 'react';
|
|
2
|
+
import { Input as Input$1, Stack } from '@mui/joy';
|
|
3
|
+
import { motion } from 'framer-motion';
|
|
4
|
+
import ClearIcon from '../../external/@mui/icons-material/esm/Close.js';
|
|
5
|
+
import { FormControl } from '../FormControl/FormControl.js';
|
|
6
|
+
import { FormLabel } from '../FormLabel/FormLabel.js';
|
|
7
|
+
import { FormHelperText } from '../FormHelperText/FormHelperText.js';
|
|
8
|
+
import { IconButton } from '../IconButton/IconButton.js';
|
|
9
|
+
import { useControlledState } from '../../hooks/use-controlled-state/index.js';
|
|
10
|
+
|
|
11
|
+
const MotionInput = motion(Input$1);
|
|
12
|
+
const Input = React__default.forwardRef((props, ref) => {
|
|
13
|
+
// prop destruction
|
|
14
|
+
const { label, helperText, error, style, size, color, disabled, required, onChange, name,
|
|
15
|
+
// NOTE: 스타일 관련된 props는 최상위 엘리먼트에 적용한다.
|
|
16
|
+
sx, className, enableClearable, ...innerProps } = props;
|
|
17
|
+
// lib hooks
|
|
18
|
+
// state, ref, querystring hooks
|
|
19
|
+
const [value, setValue] = useControlledState(props.value, props.defaultValue, useCallback((value) => {
|
|
20
|
+
onChange?.({
|
|
21
|
+
/**
|
|
22
|
+
* @see https://github.com/Ecube-Labs/hds/pull/36#discussion_r1722720909
|
|
23
|
+
* NOTE: onChange(React.SyntheticEvent)의 타입과 맞지 않아 타입 에러가 발생. 이대로 사용하다가 문제가 생기면 대응한다.
|
|
24
|
+
*/
|
|
25
|
+
// @ts-expect-error
|
|
26
|
+
target: { value: value?.toString() || "", name: name || "" },
|
|
27
|
+
});
|
|
28
|
+
}, [onChange, name]));
|
|
29
|
+
// form hooks
|
|
30
|
+
// query hooks
|
|
31
|
+
// calculated values
|
|
32
|
+
// effects
|
|
33
|
+
// handlers
|
|
34
|
+
const handleChange = (e) => {
|
|
35
|
+
setValue(e.target.value);
|
|
36
|
+
};
|
|
37
|
+
const handleClear = () => {
|
|
38
|
+
setValue(props.defaultValue || "");
|
|
39
|
+
};
|
|
40
|
+
const input = (React__default.createElement(MotionInput, { value: value, name: name, onChange: handleChange, required: required, color: error ? "danger" : color, disabled: disabled, slotProps: {
|
|
41
|
+
input: { ref, ...innerProps.slotProps?.input },
|
|
42
|
+
...innerProps.slotProps,
|
|
43
|
+
}, ...innerProps, endDecorator: enableClearable ? (React__default.createElement(Stack, { gap: 1, direction: "row" },
|
|
44
|
+
innerProps.endDecorator,
|
|
45
|
+
value && (React__default.createElement(IconButton
|
|
46
|
+
// NOTE: clear 이후에도 focus를 유지하기 위해 mouseDown 이벤트를 막는다.
|
|
47
|
+
, {
|
|
48
|
+
// NOTE: clear 이후에도 focus를 유지하기 위해 mouseDown 이벤트를 막는다.
|
|
49
|
+
onMouseDown: (e) => e.preventDefault(), onClick: handleClear, "aria-label": "Clear" },
|
|
50
|
+
React__default.createElement(ClearIcon, null))))) : (innerProps.endDecorator) }));
|
|
51
|
+
return (React__default.createElement(FormControl, { required: required, color: color, size: size, error: error, disabled: disabled,
|
|
52
|
+
// NOTE: 스타일 관련된 props는 최상위 엘리먼트에 적용한다.
|
|
53
|
+
sx: sx, className: className },
|
|
54
|
+
label && React__default.createElement(FormLabel, null, label),
|
|
55
|
+
input,
|
|
56
|
+
helperText && React__default.createElement(FormHelperText, null, helperText)));
|
|
57
|
+
});
|
|
58
|
+
Input.displayName = "Input";
|
|
59
|
+
|
|
60
|
+
export { Input };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Input } from "./Input";
|
|
2
|
-
export * from "./Input";
|
|
1
|
+
import { Input } from "./Input.js";
|
|
2
|
+
export * from "./Input.js";
|
|
3
3
|
export default Input;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Drawer } from '@mui/joy';
|
|
3
|
+
import { motion } from 'framer-motion';
|
|
4
|
+
|
|
5
|
+
const MotionDrawer = motion(Drawer);
|
|
6
|
+
const InsetDrawer = (props) => {
|
|
7
|
+
// prop destruction
|
|
8
|
+
const { children, ...innerProps } = props;
|
|
9
|
+
// lib hooks
|
|
10
|
+
// state, ref, querystring hooks
|
|
11
|
+
// form hooks
|
|
12
|
+
// query hooks
|
|
13
|
+
// calculated values
|
|
14
|
+
// effects
|
|
15
|
+
// handlers
|
|
16
|
+
return (React__default.createElement(MotionDrawer, { ...innerProps, slotProps: {
|
|
17
|
+
...innerProps.slotProps,
|
|
18
|
+
content: {
|
|
19
|
+
...innerProps.slotProps?.content,
|
|
20
|
+
sx: {
|
|
21
|
+
bgcolor: "transparent",
|
|
22
|
+
p: { md: 3, sm: 0 },
|
|
23
|
+
boxShadow: "none",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
} }, children));
|
|
27
|
+
};
|
|
28
|
+
InsetDrawer.displayName = "InsetDrawer";
|
|
29
|
+
|
|
30
|
+
export { InsetDrawer };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InsetDrawer } from "./InsetDrawer";
|
|
2
|
-
export * from "./InsetDrawer";
|
|
1
|
+
import { InsetDrawer } from "./InsetDrawer.js";
|
|
2
|
+
export * from "./InsetDrawer.js";
|
|
3
3
|
export default InsetDrawer;
|
|
@@ -5,28 +5,12 @@ import { TypographyProps } from "@mui/joy";
|
|
|
5
5
|
import { TypographySystem } from "@mui/joy";
|
|
6
6
|
import { TextColor } from "@mui/joy/styles/types";
|
|
7
7
|
declare const Markdown: {
|
|
8
|
-
(props: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
gutterBottom?: boolean | undefined;
|
|
15
|
-
level?: "inherit" | keyof TypographySystem | undefined;
|
|
16
|
-
levelMapping?: Partial<Record<"inherit" | keyof TypographySystem, string>> | undefined;
|
|
17
|
-
noWrap?: boolean | undefined;
|
|
18
|
-
startDecorator?: React.ReactNode;
|
|
19
|
-
textColor?: TextColor | undefined;
|
|
20
|
-
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
21
|
-
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").TypographyPropsVariantOverrides> | undefined;
|
|
22
|
-
} & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
23
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
24
|
-
}, "p" | "children" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "sx" | "endDecorator" | "startDecorator" | "component" | keyof import("@mui/joy").TypographySlotsAndSlotProps | "gutterBottom" | "level" | "levelMapping" | "noWrap" | "textColor"> & MotionProps & {
|
|
25
|
-
defaultLevel?: "marketing-lg" | "marketing-md" | "marketing-sm" | "title-lg" | "title-md" | "title-sm" | "body-lg" | "body-md" | "body-sm" | "body-xs" | undefined;
|
|
26
|
-
accentColor?: TextColor | undefined;
|
|
27
|
-
defaultLinkAction?: "_self" | "_blank" | "_parent" | "_top" | "_unfencedTop" | undefined;
|
|
28
|
-
markdownOptions?: import("react-markdown").Options | undefined;
|
|
29
|
-
boldFontWeight?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
8
|
+
(props: TypographyProps & MotionProps & {
|
|
9
|
+
defaultLevel?: Exclude<keyof TypographySystem, "h1" | "h2" | "h3" | "h4">;
|
|
10
|
+
accentColor?: TextColor;
|
|
11
|
+
defaultLinkAction?: "_self" | "_blank" | "_parent" | "_top" | "_unfencedTop";
|
|
12
|
+
markdownOptions?: Options;
|
|
13
|
+
boldFontWeight?: "sm" | "md" | "lg" | "xl";
|
|
30
14
|
}): React.JSX.Element;
|
|
31
15
|
displayName: string;
|
|
32
16
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import ReactMarkdown from 'react-markdown';
|
|
3
|
+
import { Divider } from '../Divider/Divider.js';
|
|
4
|
+
import { Typography } from '../Typography/Typography.js';
|
|
5
|
+
import { Link } from '@mui/joy';
|
|
6
|
+
import { rehypeAccent } from '../../libs/rehype-accent/index.js';
|
|
7
|
+
|
|
8
|
+
const Markdown = (props) => {
|
|
9
|
+
// prop destruction
|
|
10
|
+
const { color, textColor, defaultLevel = "body-md", accentColor = "danger.500", defaultLinkAction = "_self", markdownOptions, boldFontWeight, content, ...innerProps } = props;
|
|
11
|
+
// lib hooks
|
|
12
|
+
// state, ref, querystring hooks
|
|
13
|
+
// form hooks
|
|
14
|
+
// query hooks
|
|
15
|
+
// calculated values
|
|
16
|
+
// effects
|
|
17
|
+
// handlers
|
|
18
|
+
return (React__default.createElement(Typography, { component: "div", color: color, textColor: textColor, level: defaultLevel, ...innerProps },
|
|
19
|
+
React__default.createElement(ReactMarkdown, { ...markdownOptions, children: content, rehypePlugins: [[rehypeAccent, { accentColor }]], components: {
|
|
20
|
+
h1: ({ children }) => (React__default.createElement(Typography, { color: color, textColor: textColor, level: "h1" }, children)),
|
|
21
|
+
h2: ({ children }) => (React__default.createElement(Typography, { color: color, textColor: textColor, level: "h2" }, children)),
|
|
22
|
+
h3: ({ children }) => (React__default.createElement(Typography, { color: color, textColor: textColor, level: "h3" }, children)),
|
|
23
|
+
h4: ({ children }) => (React__default.createElement(Typography, { color: color, textColor: textColor, level: "h4" }, children)),
|
|
24
|
+
p: ({ children, node }) => {
|
|
25
|
+
return (React__default.createElement(Typography, { color: color, textColor: textColor, level: defaultLevel, ...node?.properties }, children));
|
|
26
|
+
},
|
|
27
|
+
a: ({ children, href }) => (React__default.createElement(Link, { href: href, target: defaultLinkAction }, children)),
|
|
28
|
+
hr: () => React__default.createElement(Divider, null),
|
|
29
|
+
b: ({ children }) => (React__default.createElement(Typography, { fontWeight: boldFontWeight }, children)),
|
|
30
|
+
strong: ({ children }) => (React__default.createElement(Typography, { fontWeight: boldFontWeight }, children)),
|
|
31
|
+
...markdownOptions?.components,
|
|
32
|
+
} })));
|
|
33
|
+
};
|
|
34
|
+
Markdown.displayName = "Markdown";
|
|
35
|
+
|
|
36
|
+
export { Markdown };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Markdown } from "./Markdown";
|
|
2
|
-
export * from "./Markdown";
|
|
1
|
+
import { Markdown } from "./Markdown.js";
|
|
2
|
+
export * from "./Markdown.js";
|
|
3
3
|
export default Markdown;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Menu as Menu$1, MenuItem as MenuItem$1 } from '@mui/joy';
|
|
3
|
+
import { motion } from 'framer-motion';
|
|
4
|
+
|
|
5
|
+
const MotionMenu = motion(Menu$1);
|
|
6
|
+
/**
|
|
7
|
+
* @todo [v1.0.0] Restructure menu component to:
|
|
8
|
+
* - Abstract the menu component.
|
|
9
|
+
*
|
|
10
|
+
* * Example of future usage:
|
|
11
|
+
* ```jsx
|
|
12
|
+
* <Menu menuItems={[{...}]}>
|
|
13
|
+
* Menu Button Content
|
|
14
|
+
* </Menu>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
const Menu = (props) => {
|
|
18
|
+
// prop destruction
|
|
19
|
+
// lib hooks
|
|
20
|
+
// state, ref, querystring hooks
|
|
21
|
+
// form hooks
|
|
22
|
+
// query hooks
|
|
23
|
+
// calculated values
|
|
24
|
+
// effects
|
|
25
|
+
// handlers
|
|
26
|
+
return React__default.createElement(MotionMenu, { ...props });
|
|
27
|
+
};
|
|
28
|
+
Menu.displayName = "Menu";
|
|
29
|
+
const MotionMenuItem = motion(MenuItem$1);
|
|
30
|
+
const MenuItem = (props) => {
|
|
31
|
+
// prop destruction
|
|
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(MotionMenuItem, { ...props });
|
|
40
|
+
};
|
|
41
|
+
MenuItem.displayName = "MenuItem";
|
|
42
|
+
|
|
43
|
+
export { Menu, MenuItem };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Menu } from "./Menu";
|
|
2
|
-
export * from "./Menu";
|
|
1
|
+
import { Menu } from "./Menu.js";
|
|
2
|
+
export * from "./Menu.js";
|
|
3
3
|
export default Menu;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button, MenuButton as MenuButton$1 } from '@mui/joy';
|
|
3
|
+
import ExpandMoreIcon from '../../external/@mui/icons-material/esm/ExpandMore.js';
|
|
4
|
+
import { Dropdown } from '../Dropdown/Dropdown.js';
|
|
5
|
+
import { Menu, MenuItem } from '../Menu/Menu.js';
|
|
6
|
+
|
|
7
|
+
function MenuButton(props) {
|
|
8
|
+
// prop destruction
|
|
9
|
+
const { size, buttonText, items = [], showIcon } = props;
|
|
10
|
+
// lib hooks
|
|
11
|
+
// state, ref, querystring hooks
|
|
12
|
+
// form hooks
|
|
13
|
+
// query hooks
|
|
14
|
+
// calculated values
|
|
15
|
+
// effects
|
|
16
|
+
// handlers
|
|
17
|
+
if (!items.length) {
|
|
18
|
+
return (React__default.createElement(Button, { component: props.buttonComponent ?? "button", size: size, variant: "plain", color: "neutral", endDecorator: showIcon ? React__default.createElement(ExpandMoreIcon, null) : undefined, ...(props.buttonComponentProps ?? {}) }, buttonText));
|
|
19
|
+
}
|
|
20
|
+
return (React__default.createElement(Dropdown, null,
|
|
21
|
+
React__default.createElement(MenuButton$1, { component: props.buttonComponent ?? "button", size: size, variant: "plain", endDecorator: showIcon ? React__default.createElement(ExpandMoreIcon, null) : undefined, ...(props.buttonComponentProps ?? {}) }, buttonText),
|
|
22
|
+
React__default.createElement(Menu, { size: size }, items.map((i) => (React__default.createElement(MenuItem, { key: i.text, component: i.component, ...(i.componentProps ?? {}) }, i.text))))));
|
|
23
|
+
}
|
|
24
|
+
MenuButton.displayName = "MenuButton";
|
|
25
|
+
|
|
26
|
+
export { MenuButton };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
|
|
3
3
|
onClose?: ((event: {}, reason: "escapeKeyDown" | "backdropClick" | "closeClick") => void) | undefined;
|
|
4
|
-
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
4
|
+
sx?: import("@mui/joy/styles/types/theme.js").SxProps | undefined;
|
|
5
5
|
} & import("@mui/joy").ModalSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7
7
|
}, "children" | "container" | "sx" | "open" | "onClose" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop" | keyof import("@mui/joy").ModalSlotsAndSlotProps>>;
|
|
@@ -15,7 +15,7 @@ declare const ModalDialog: import("@emotion/styled").StyledComponent<{
|
|
|
15
15
|
layout?: import("@mui/types").OverridableStringUnion<"center" | "fullscreen", import("@mui/joy").ModalDialogPropsLayoutOverrides> | undefined;
|
|
16
16
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
17
17
|
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").ModalDialogPropsSizeOverrides> | undefined;
|
|
18
|
-
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
18
|
+
sx?: import("@mui/joy/styles/types/theme.js").SxProps | undefined;
|
|
19
19
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalDialogPropsVariantOverrides> | undefined;
|
|
20
20
|
} & import("@mui/joy").ModalDialogSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
21
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -24,14 +24,14 @@ export { ModalDialog };
|
|
|
24
24
|
declare const ModalClose: import("@emotion/styled").StyledComponent<Omit<{
|
|
25
25
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ModalClosePropsColorOverrides> | undefined;
|
|
26
26
|
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").ModalClosePropsSizeOverrides> | undefined;
|
|
27
|
-
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
27
|
+
sx?: import("@mui/joy/styles/types/theme.js").SxProps | undefined;
|
|
28
28
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalClosePropsVariantOverrides> | undefined;
|
|
29
29
|
} & import("@mui/joy").ModalCloseSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
30
30
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
31
31
|
}, "color" | "variant" | "sx" | "size" | keyof import("@mui/joy").ModalCloseSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
32
32
|
export { ModalClose };
|
|
33
33
|
declare const ModalOverflow: import("framer-motion").CustomDomComponent<{
|
|
34
|
-
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
34
|
+
sx?: import("@mui/joy/styles/types/theme.js").SxProps | undefined;
|
|
35
35
|
} & import("@mui/joy").ModalOverflowSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
36
36
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
37
37
|
}, "sx" | keyof import("@mui/joy").ModalOverflowSlotsAndSlotProps>>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Modal as Modal$1, styled, ModalDialog as ModalDialog$1, ModalClose as ModalClose$1, ModalOverflow as ModalOverflow$1 } from '@mui/joy';
|
|
3
|
+
import { motion } from 'framer-motion';
|
|
4
|
+
import { DialogTitle } from '../DialogTitle/DialogTitle.js';
|
|
5
|
+
import { DialogContent } from '../DialogContent/DialogContent.js';
|
|
6
|
+
|
|
7
|
+
const MotionModal = motion(Modal$1);
|
|
8
|
+
const Modal = MotionModal;
|
|
9
|
+
Modal.displayName = "Modal";
|
|
10
|
+
const StyledModalDialog = styled(ModalDialog$1)({
|
|
11
|
+
padding: 0,
|
|
12
|
+
});
|
|
13
|
+
const ModalDialog = StyledModalDialog;
|
|
14
|
+
ModalDialog.displayName = "ModalDialog";
|
|
15
|
+
const MotionModalClose = styled(motion(ModalClose$1))(({ theme }) => ({
|
|
16
|
+
top: theme.spacing(3),
|
|
17
|
+
right: theme.spacing(6),
|
|
18
|
+
}));
|
|
19
|
+
const ModalClose = MotionModalClose;
|
|
20
|
+
ModalClose.displayName = "ModalClose";
|
|
21
|
+
const MotionModalOverflow = motion(ModalOverflow$1);
|
|
22
|
+
const ModalOverflow = MotionModalOverflow;
|
|
23
|
+
ModalOverflow.displayName = "ModalOverflow";
|
|
24
|
+
function ModalFrame(props) {
|
|
25
|
+
// prop destruction
|
|
26
|
+
const { title, children, titleStartDecorator, ...innerProps } = props;
|
|
27
|
+
// lib hooks
|
|
28
|
+
// state, ref, querystring hooks
|
|
29
|
+
// form hooks
|
|
30
|
+
// query hooks
|
|
31
|
+
// calculated values
|
|
32
|
+
// effects
|
|
33
|
+
// handlers
|
|
34
|
+
return (React__default.createElement(StyledModalDialog, { ...innerProps },
|
|
35
|
+
React__default.createElement(ModalClose, null),
|
|
36
|
+
React__default.createElement(DialogTitle, null,
|
|
37
|
+
titleStartDecorator,
|
|
38
|
+
title),
|
|
39
|
+
React__default.createElement(DialogContent, null, children)));
|
|
40
|
+
}
|
|
41
|
+
ModalFrame.displayName = "ModalFrame";
|
|
42
|
+
|
|
43
|
+
export { Modal, ModalClose, ModalDialog, ModalFrame, ModalOverflow };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Modal } from "./Modal";
|
|
2
|
-
export * from "./Modal";
|
|
1
|
+
import { Modal } from "./Modal.js";
|
|
2
|
+
export * from "./Modal.js";
|
|
3
3
|
export default Modal;
|