@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
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import style from './style.js';
|
|
2
|
+
import compose from './compose.js';
|
|
3
|
+
import { createUnaryUnit, getValue } from './spacing.js';
|
|
4
|
+
import { handleBreakpoints } from './breakpoints.js';
|
|
5
|
+
import responsivePropType from './responsivePropType.js';
|
|
6
|
+
|
|
7
|
+
// false positive
|
|
8
|
+
// eslint-disable-next-line react/function-component-definition
|
|
9
|
+
const gap = props => {
|
|
10
|
+
if (props.gap !== undefined && props.gap !== null) {
|
|
11
|
+
const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');
|
|
12
|
+
const styleFromPropValue = propValue => ({
|
|
13
|
+
gap: getValue(transformer, propValue)
|
|
14
|
+
});
|
|
15
|
+
return handleBreakpoints(props, props.gap, styleFromPropValue);
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
};
|
|
19
|
+
gap.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
20
|
+
gap: responsivePropType
|
|
21
|
+
} : {};
|
|
22
|
+
gap.filterProps = ['gap'];
|
|
23
|
+
|
|
24
|
+
// false positive
|
|
25
|
+
// eslint-disable-next-line react/function-component-definition
|
|
26
|
+
const columnGap = props => {
|
|
27
|
+
if (props.columnGap !== undefined && props.columnGap !== null) {
|
|
28
|
+
const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');
|
|
29
|
+
const styleFromPropValue = propValue => ({
|
|
30
|
+
columnGap: getValue(transformer, propValue)
|
|
31
|
+
});
|
|
32
|
+
return handleBreakpoints(props, props.columnGap, styleFromPropValue);
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
};
|
|
36
|
+
columnGap.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
37
|
+
columnGap: responsivePropType
|
|
38
|
+
} : {};
|
|
39
|
+
columnGap.filterProps = ['columnGap'];
|
|
40
|
+
|
|
41
|
+
// false positive
|
|
42
|
+
// eslint-disable-next-line react/function-component-definition
|
|
43
|
+
const rowGap = props => {
|
|
44
|
+
if (props.rowGap !== undefined && props.rowGap !== null) {
|
|
45
|
+
const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');
|
|
46
|
+
const styleFromPropValue = propValue => ({
|
|
47
|
+
rowGap: getValue(transformer, propValue)
|
|
48
|
+
});
|
|
49
|
+
return handleBreakpoints(props, props.rowGap, styleFromPropValue);
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
};
|
|
53
|
+
rowGap.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
54
|
+
rowGap: responsivePropType
|
|
55
|
+
} : {};
|
|
56
|
+
rowGap.filterProps = ['rowGap'];
|
|
57
|
+
const gridColumn = style({
|
|
58
|
+
prop: 'gridColumn'
|
|
59
|
+
});
|
|
60
|
+
const gridRow = style({
|
|
61
|
+
prop: 'gridRow'
|
|
62
|
+
});
|
|
63
|
+
const gridAutoFlow = style({
|
|
64
|
+
prop: 'gridAutoFlow'
|
|
65
|
+
});
|
|
66
|
+
const gridAutoColumns = style({
|
|
67
|
+
prop: 'gridAutoColumns'
|
|
68
|
+
});
|
|
69
|
+
const gridAutoRows = style({
|
|
70
|
+
prop: 'gridAutoRows'
|
|
71
|
+
});
|
|
72
|
+
const gridTemplateColumns = style({
|
|
73
|
+
prop: 'gridTemplateColumns'
|
|
74
|
+
});
|
|
75
|
+
const gridTemplateRows = style({
|
|
76
|
+
prop: 'gridTemplateRows'
|
|
77
|
+
});
|
|
78
|
+
const gridTemplateAreas = style({
|
|
79
|
+
prop: 'gridTemplateAreas'
|
|
80
|
+
});
|
|
81
|
+
const gridArea = style({
|
|
82
|
+
prop: 'gridArea'
|
|
83
|
+
});
|
|
84
|
+
compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
|
|
85
|
+
|
|
86
|
+
export { columnGap, gap, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridRow, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, rowGap };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import deepmerge from '../../utils/deepmerge/deepmerge.js';
|
|
2
|
+
|
|
3
|
+
function merge(acc, item) {
|
|
4
|
+
if (!item) {
|
|
5
|
+
return acc;
|
|
6
|
+
}
|
|
7
|
+
return deepmerge(acc, item, {
|
|
8
|
+
clone: false // No need to clone deep, it's way faster.
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { merge as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import style from './style.js';
|
|
2
|
+
import compose from './compose.js';
|
|
3
|
+
|
|
4
|
+
function paletteTransform(value, userValue) {
|
|
5
|
+
if (userValue === 'grey') {
|
|
6
|
+
return userValue;
|
|
7
|
+
}
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
const color = style({
|
|
11
|
+
prop: 'color',
|
|
12
|
+
themeKey: 'palette',
|
|
13
|
+
transform: paletteTransform
|
|
14
|
+
});
|
|
15
|
+
const bgcolor = style({
|
|
16
|
+
prop: 'bgcolor',
|
|
17
|
+
cssProperty: 'backgroundColor',
|
|
18
|
+
themeKey: 'palette',
|
|
19
|
+
transform: paletteTransform
|
|
20
|
+
});
|
|
21
|
+
const backgroundColor = style({
|
|
22
|
+
prop: 'backgroundColor',
|
|
23
|
+
themeKey: 'palette',
|
|
24
|
+
transform: paletteTransform
|
|
25
|
+
});
|
|
26
|
+
compose(color, bgcolor, backgroundColor);
|
|
27
|
+
|
|
28
|
+
export { backgroundColor, bgcolor, color, paletteTransform };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import style from './style.js';
|
|
2
|
+
import compose from './compose.js';
|
|
3
|
+
import { handleBreakpoints, values } from './breakpoints.js';
|
|
4
|
+
|
|
5
|
+
function sizingTransform(value) {
|
|
6
|
+
return value <= 1 && value !== 0 ? `${value * 100}%` : value;
|
|
7
|
+
}
|
|
8
|
+
const width = style({
|
|
9
|
+
prop: 'width',
|
|
10
|
+
transform: sizingTransform
|
|
11
|
+
});
|
|
12
|
+
const maxWidth = props => {
|
|
13
|
+
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
14
|
+
const styleFromPropValue = propValue => {
|
|
15
|
+
var _props$theme, _props$theme2;
|
|
16
|
+
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? undefined : _props$theme[propValue]) || values[propValue];
|
|
17
|
+
if (!breakpoint) {
|
|
18
|
+
return {
|
|
19
|
+
maxWidth: sizingTransform(propValue)
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? undefined : _props$theme2.unit) !== 'px') {
|
|
23
|
+
return {
|
|
24
|
+
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
maxWidth: breakpoint
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
};
|
|
35
|
+
maxWidth.filterProps = ['maxWidth'];
|
|
36
|
+
const minWidth = style({
|
|
37
|
+
prop: 'minWidth',
|
|
38
|
+
transform: sizingTransform
|
|
39
|
+
});
|
|
40
|
+
const height = style({
|
|
41
|
+
prop: 'height',
|
|
42
|
+
transform: sizingTransform
|
|
43
|
+
});
|
|
44
|
+
const maxHeight = style({
|
|
45
|
+
prop: 'maxHeight',
|
|
46
|
+
transform: sizingTransform
|
|
47
|
+
});
|
|
48
|
+
const minHeight = style({
|
|
49
|
+
prop: 'minHeight',
|
|
50
|
+
transform: sizingTransform
|
|
51
|
+
});
|
|
52
|
+
style({
|
|
53
|
+
prop: 'size',
|
|
54
|
+
cssProperty: 'width',
|
|
55
|
+
transform: sizingTransform
|
|
56
|
+
});
|
|
57
|
+
style({
|
|
58
|
+
prop: 'size',
|
|
59
|
+
cssProperty: 'height',
|
|
60
|
+
transform: sizingTransform
|
|
61
|
+
});
|
|
62
|
+
const boxSizing = style({
|
|
63
|
+
prop: 'boxSizing'
|
|
64
|
+
});
|
|
65
|
+
compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
|
|
66
|
+
|
|
67
|
+
export { boxSizing, height, maxHeight, maxWidth, minHeight, minWidth, sizingTransform, width };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import responsivePropType from './responsivePropType.js';
|
|
2
|
+
import { handleBreakpoints } from './breakpoints.js';
|
|
3
|
+
import { getPath } from './style.js';
|
|
4
|
+
import merge from './merge.js';
|
|
5
|
+
import memoize from './memoize.js';
|
|
6
|
+
|
|
7
|
+
const properties = {
|
|
8
|
+
m: 'margin',
|
|
9
|
+
p: 'padding'
|
|
10
|
+
};
|
|
11
|
+
const directions = {
|
|
12
|
+
t: 'Top',
|
|
13
|
+
r: 'Right',
|
|
14
|
+
b: 'Bottom',
|
|
15
|
+
l: 'Left',
|
|
16
|
+
x: ['Left', 'Right'],
|
|
17
|
+
y: ['Top', 'Bottom']
|
|
18
|
+
};
|
|
19
|
+
const aliases = {
|
|
20
|
+
marginX: 'mx',
|
|
21
|
+
marginY: 'my',
|
|
22
|
+
paddingX: 'px',
|
|
23
|
+
paddingY: 'py'
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// memoize() impact:
|
|
27
|
+
// From 300,000 ops/sec
|
|
28
|
+
// To 350,000 ops/sec
|
|
29
|
+
const getCssProperties = memoize(prop => {
|
|
30
|
+
// It's not a shorthand notation.
|
|
31
|
+
if (prop.length > 2) {
|
|
32
|
+
if (aliases[prop]) {
|
|
33
|
+
prop = aliases[prop];
|
|
34
|
+
} else {
|
|
35
|
+
return [prop];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const [a, b] = prop.split('');
|
|
39
|
+
const property = properties[a];
|
|
40
|
+
const direction = directions[b] || '';
|
|
41
|
+
return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];
|
|
42
|
+
});
|
|
43
|
+
const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
|
|
44
|
+
const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
|
|
45
|
+
const spacingKeys = [...marginKeys, ...paddingKeys];
|
|
46
|
+
function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
47
|
+
var _getPath;
|
|
48
|
+
const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;
|
|
49
|
+
if (typeof themeSpacing === 'number') {
|
|
50
|
+
return abs => {
|
|
51
|
+
if (typeof abs === 'string') {
|
|
52
|
+
return abs;
|
|
53
|
+
}
|
|
54
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
55
|
+
if (typeof abs !== 'number') {
|
|
56
|
+
console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return themeSpacing * abs;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
if (Array.isArray(themeSpacing)) {
|
|
63
|
+
return abs => {
|
|
64
|
+
if (typeof abs === 'string') {
|
|
65
|
+
return abs;
|
|
66
|
+
}
|
|
67
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
68
|
+
if (!Number.isInteger(abs)) {
|
|
69
|
+
console.error([`MUI: The \`theme.${themeKey}\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \`theme.${themeKey}\` as a number.`].join('\n'));
|
|
70
|
+
} else if (abs > themeSpacing.length - 1) {
|
|
71
|
+
console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\n'));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return themeSpacing[abs];
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
if (typeof themeSpacing === 'function') {
|
|
78
|
+
return themeSpacing;
|
|
79
|
+
}
|
|
80
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
81
|
+
console.error([`MUI: The \`theme.${themeKey}\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\n'));
|
|
82
|
+
}
|
|
83
|
+
return () => undefined;
|
|
84
|
+
}
|
|
85
|
+
function createUnarySpacing(theme) {
|
|
86
|
+
return createUnaryUnit(theme, 'spacing', 8, 'spacing');
|
|
87
|
+
}
|
|
88
|
+
function getValue(transformer, propValue) {
|
|
89
|
+
if (typeof propValue === 'string' || propValue == null) {
|
|
90
|
+
return propValue;
|
|
91
|
+
}
|
|
92
|
+
const abs = Math.abs(propValue);
|
|
93
|
+
const transformed = transformer(abs);
|
|
94
|
+
if (propValue >= 0) {
|
|
95
|
+
return transformed;
|
|
96
|
+
}
|
|
97
|
+
if (typeof transformed === 'number') {
|
|
98
|
+
return -transformed;
|
|
99
|
+
}
|
|
100
|
+
return `-${transformed}`;
|
|
101
|
+
}
|
|
102
|
+
function getStyleFromPropValue(cssProperties, transformer) {
|
|
103
|
+
return propValue => cssProperties.reduce((acc, cssProperty) => {
|
|
104
|
+
acc[cssProperty] = getValue(transformer, propValue);
|
|
105
|
+
return acc;
|
|
106
|
+
}, {});
|
|
107
|
+
}
|
|
108
|
+
function resolveCssProperty(props, keys, prop, transformer) {
|
|
109
|
+
// Using a hash computation over an array iteration could be faster, but with only 28 items,
|
|
110
|
+
// it's doesn't worth the bundle size.
|
|
111
|
+
if (keys.indexOf(prop) === -1) {
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
const cssProperties = getCssProperties(prop);
|
|
115
|
+
const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
|
|
116
|
+
const propValue = props[prop];
|
|
117
|
+
return handleBreakpoints(props, propValue, styleFromPropValue);
|
|
118
|
+
}
|
|
119
|
+
function style(props, keys) {
|
|
120
|
+
const transformer = createUnarySpacing(props.theme);
|
|
121
|
+
return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});
|
|
122
|
+
}
|
|
123
|
+
function margin(props) {
|
|
124
|
+
return style(props, marginKeys);
|
|
125
|
+
}
|
|
126
|
+
margin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {
|
|
127
|
+
obj[key] = responsivePropType;
|
|
128
|
+
return obj;
|
|
129
|
+
}, {}) : {};
|
|
130
|
+
margin.filterProps = marginKeys;
|
|
131
|
+
function padding(props) {
|
|
132
|
+
return style(props, paddingKeys);
|
|
133
|
+
}
|
|
134
|
+
padding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {
|
|
135
|
+
obj[key] = responsivePropType;
|
|
136
|
+
return obj;
|
|
137
|
+
}, {}) : {};
|
|
138
|
+
padding.filterProps = paddingKeys;
|
|
139
|
+
process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {
|
|
140
|
+
obj[key] = responsivePropType;
|
|
141
|
+
return obj;
|
|
142
|
+
}, {}) : {};
|
|
143
|
+
|
|
144
|
+
export { createUnarySpacing, createUnaryUnit, getStyleFromPropValue, getValue, margin, marginKeys, padding, paddingKeys };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import responsivePropType from './responsivePropType.js';
|
|
2
|
+
import { handleBreakpoints } from './breakpoints.js';
|
|
3
|
+
import capitalize from '../../utils/capitalize/capitalize.js';
|
|
4
|
+
|
|
5
|
+
function getPath(obj, path, checkVars = true) {
|
|
6
|
+
if (!path || typeof path !== 'string') {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Check if CSS variables are used
|
|
11
|
+
if (obj && obj.vars && checkVars) {
|
|
12
|
+
const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
|
|
13
|
+
if (val != null) {
|
|
14
|
+
return val;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return path.split('.').reduce((acc, item) => {
|
|
18
|
+
if (acc && acc[item] != null) {
|
|
19
|
+
return acc[item];
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}, obj);
|
|
23
|
+
}
|
|
24
|
+
function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
|
|
25
|
+
let value;
|
|
26
|
+
if (typeof themeMapping === 'function') {
|
|
27
|
+
value = themeMapping(propValueFinal);
|
|
28
|
+
} else if (Array.isArray(themeMapping)) {
|
|
29
|
+
value = themeMapping[propValueFinal] || userValue;
|
|
30
|
+
} else {
|
|
31
|
+
value = getPath(themeMapping, propValueFinal) || userValue;
|
|
32
|
+
}
|
|
33
|
+
if (transform) {
|
|
34
|
+
value = transform(value, userValue, themeMapping);
|
|
35
|
+
}
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
function style(options) {
|
|
39
|
+
const {
|
|
40
|
+
prop,
|
|
41
|
+
cssProperty = options.prop,
|
|
42
|
+
themeKey,
|
|
43
|
+
transform
|
|
44
|
+
} = options;
|
|
45
|
+
|
|
46
|
+
// false positive
|
|
47
|
+
// eslint-disable-next-line react/function-component-definition
|
|
48
|
+
const fn = props => {
|
|
49
|
+
if (props[prop] == null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
const propValue = props[prop];
|
|
53
|
+
const theme = props.theme;
|
|
54
|
+
const themeMapping = getPath(theme, themeKey) || {};
|
|
55
|
+
const styleFromPropValue = propValueFinal => {
|
|
56
|
+
let value = getStyleValue(themeMapping, transform, propValueFinal);
|
|
57
|
+
if (propValueFinal === value && typeof propValueFinal === 'string') {
|
|
58
|
+
// Haven't found value
|
|
59
|
+
value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);
|
|
60
|
+
}
|
|
61
|
+
if (cssProperty === false) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
[cssProperty]: value
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
return handleBreakpoints(props, propValue, styleFromPropValue);
|
|
69
|
+
};
|
|
70
|
+
fn.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
71
|
+
[prop]: responsivePropType
|
|
72
|
+
} : {};
|
|
73
|
+
fn.filterProps = [prop];
|
|
74
|
+
return fn;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { style as default, getPath, getStyleValue };
|