@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
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import { padding, margin } from '../spacing.js';
|
|
2
|
-
import { borderTransform, borderRadius } from '../borders.js';
|
|
3
|
-
import { gap, rowGap, columnGap } from '../cssGrid.js';
|
|
4
|
-
import { paletteTransform } from '../palette.js';
|
|
5
|
-
import { sizingTransform, maxWidth } from '../sizing.js';
|
|
6
|
-
|
|
7
|
-
const defaultSxConfig = {
|
|
8
|
-
// borders
|
|
9
|
-
border: {
|
|
10
|
-
themeKey: 'borders',
|
|
11
|
-
transform: borderTransform
|
|
12
|
-
},
|
|
13
|
-
borderTop: {
|
|
14
|
-
themeKey: 'borders',
|
|
15
|
-
transform: borderTransform
|
|
16
|
-
},
|
|
17
|
-
borderRight: {
|
|
18
|
-
themeKey: 'borders',
|
|
19
|
-
transform: borderTransform
|
|
20
|
-
},
|
|
21
|
-
borderBottom: {
|
|
22
|
-
themeKey: 'borders',
|
|
23
|
-
transform: borderTransform
|
|
24
|
-
},
|
|
25
|
-
borderLeft: {
|
|
26
|
-
themeKey: 'borders',
|
|
27
|
-
transform: borderTransform
|
|
28
|
-
},
|
|
29
|
-
borderColor: {
|
|
30
|
-
themeKey: 'palette'
|
|
31
|
-
},
|
|
32
|
-
borderTopColor: {
|
|
33
|
-
themeKey: 'palette'
|
|
34
|
-
},
|
|
35
|
-
borderRightColor: {
|
|
36
|
-
themeKey: 'palette'
|
|
37
|
-
},
|
|
38
|
-
borderBottomColor: {
|
|
39
|
-
themeKey: 'palette'
|
|
40
|
-
},
|
|
41
|
-
borderLeftColor: {
|
|
42
|
-
themeKey: 'palette'
|
|
43
|
-
},
|
|
44
|
-
outline: {
|
|
45
|
-
themeKey: 'borders',
|
|
46
|
-
transform: borderTransform
|
|
47
|
-
},
|
|
48
|
-
outlineColor: {
|
|
49
|
-
themeKey: 'palette'
|
|
50
|
-
},
|
|
51
|
-
borderRadius: {
|
|
52
|
-
themeKey: 'shape.borderRadius',
|
|
53
|
-
style: borderRadius
|
|
54
|
-
},
|
|
55
|
-
// palette
|
|
56
|
-
color: {
|
|
57
|
-
themeKey: 'palette',
|
|
58
|
-
transform: paletteTransform
|
|
59
|
-
},
|
|
60
|
-
bgcolor: {
|
|
61
|
-
themeKey: 'palette',
|
|
62
|
-
cssProperty: 'backgroundColor',
|
|
63
|
-
transform: paletteTransform
|
|
64
|
-
},
|
|
65
|
-
backgroundColor: {
|
|
66
|
-
themeKey: 'palette',
|
|
67
|
-
transform: paletteTransform
|
|
68
|
-
},
|
|
69
|
-
// spacing
|
|
70
|
-
p: {
|
|
71
|
-
style: padding
|
|
72
|
-
},
|
|
73
|
-
pt: {
|
|
74
|
-
style: padding
|
|
75
|
-
},
|
|
76
|
-
pr: {
|
|
77
|
-
style: padding
|
|
78
|
-
},
|
|
79
|
-
pb: {
|
|
80
|
-
style: padding
|
|
81
|
-
},
|
|
82
|
-
pl: {
|
|
83
|
-
style: padding
|
|
84
|
-
},
|
|
85
|
-
px: {
|
|
86
|
-
style: padding
|
|
87
|
-
},
|
|
88
|
-
py: {
|
|
89
|
-
style: padding
|
|
90
|
-
},
|
|
91
|
-
padding: {
|
|
92
|
-
style: padding
|
|
93
|
-
},
|
|
94
|
-
paddingTop: {
|
|
95
|
-
style: padding
|
|
96
|
-
},
|
|
97
|
-
paddingRight: {
|
|
98
|
-
style: padding
|
|
99
|
-
},
|
|
100
|
-
paddingBottom: {
|
|
101
|
-
style: padding
|
|
102
|
-
},
|
|
103
|
-
paddingLeft: {
|
|
104
|
-
style: padding
|
|
105
|
-
},
|
|
106
|
-
paddingX: {
|
|
107
|
-
style: padding
|
|
108
|
-
},
|
|
109
|
-
paddingY: {
|
|
110
|
-
style: padding
|
|
111
|
-
},
|
|
112
|
-
paddingInline: {
|
|
113
|
-
style: padding
|
|
114
|
-
},
|
|
115
|
-
paddingInlineStart: {
|
|
116
|
-
style: padding
|
|
117
|
-
},
|
|
118
|
-
paddingInlineEnd: {
|
|
119
|
-
style: padding
|
|
120
|
-
},
|
|
121
|
-
paddingBlock: {
|
|
122
|
-
style: padding
|
|
123
|
-
},
|
|
124
|
-
paddingBlockStart: {
|
|
125
|
-
style: padding
|
|
126
|
-
},
|
|
127
|
-
paddingBlockEnd: {
|
|
128
|
-
style: padding
|
|
129
|
-
},
|
|
130
|
-
m: {
|
|
131
|
-
style: margin
|
|
132
|
-
},
|
|
133
|
-
mt: {
|
|
134
|
-
style: margin
|
|
135
|
-
},
|
|
136
|
-
mr: {
|
|
137
|
-
style: margin
|
|
138
|
-
},
|
|
139
|
-
mb: {
|
|
140
|
-
style: margin
|
|
141
|
-
},
|
|
142
|
-
ml: {
|
|
143
|
-
style: margin
|
|
144
|
-
},
|
|
145
|
-
mx: {
|
|
146
|
-
style: margin
|
|
147
|
-
},
|
|
148
|
-
my: {
|
|
149
|
-
style: margin
|
|
150
|
-
},
|
|
151
|
-
margin: {
|
|
152
|
-
style: margin
|
|
153
|
-
},
|
|
154
|
-
marginTop: {
|
|
155
|
-
style: margin
|
|
156
|
-
},
|
|
157
|
-
marginRight: {
|
|
158
|
-
style: margin
|
|
159
|
-
},
|
|
160
|
-
marginBottom: {
|
|
161
|
-
style: margin
|
|
162
|
-
},
|
|
163
|
-
marginLeft: {
|
|
164
|
-
style: margin
|
|
165
|
-
},
|
|
166
|
-
marginX: {
|
|
167
|
-
style: margin
|
|
168
|
-
},
|
|
169
|
-
marginY: {
|
|
170
|
-
style: margin
|
|
171
|
-
},
|
|
172
|
-
marginInline: {
|
|
173
|
-
style: margin
|
|
174
|
-
},
|
|
175
|
-
marginInlineStart: {
|
|
176
|
-
style: margin
|
|
177
|
-
},
|
|
178
|
-
marginInlineEnd: {
|
|
179
|
-
style: margin
|
|
180
|
-
},
|
|
181
|
-
marginBlock: {
|
|
182
|
-
style: margin
|
|
183
|
-
},
|
|
184
|
-
marginBlockStart: {
|
|
185
|
-
style: margin
|
|
186
|
-
},
|
|
187
|
-
marginBlockEnd: {
|
|
188
|
-
style: margin
|
|
189
|
-
},
|
|
190
|
-
// display
|
|
191
|
-
displayPrint: {
|
|
192
|
-
cssProperty: false,
|
|
193
|
-
transform: value => ({
|
|
194
|
-
'@media print': {
|
|
195
|
-
display: value
|
|
196
|
-
}
|
|
197
|
-
})
|
|
198
|
-
},
|
|
199
|
-
display: {},
|
|
200
|
-
overflow: {},
|
|
201
|
-
textOverflow: {},
|
|
202
|
-
visibility: {},
|
|
203
|
-
whiteSpace: {},
|
|
204
|
-
// flexbox
|
|
205
|
-
flexBasis: {},
|
|
206
|
-
flexDirection: {},
|
|
207
|
-
flexWrap: {},
|
|
208
|
-
justifyContent: {},
|
|
209
|
-
alignItems: {},
|
|
210
|
-
alignContent: {},
|
|
211
|
-
order: {},
|
|
212
|
-
flex: {},
|
|
213
|
-
flexGrow: {},
|
|
214
|
-
flexShrink: {},
|
|
215
|
-
alignSelf: {},
|
|
216
|
-
justifyItems: {},
|
|
217
|
-
justifySelf: {},
|
|
218
|
-
// grid
|
|
219
|
-
gap: {
|
|
220
|
-
style: gap
|
|
221
|
-
},
|
|
222
|
-
rowGap: {
|
|
223
|
-
style: rowGap
|
|
224
|
-
},
|
|
225
|
-
columnGap: {
|
|
226
|
-
style: columnGap
|
|
227
|
-
},
|
|
228
|
-
gridColumn: {},
|
|
229
|
-
gridRow: {},
|
|
230
|
-
gridAutoFlow: {},
|
|
231
|
-
gridAutoColumns: {},
|
|
232
|
-
gridAutoRows: {},
|
|
233
|
-
gridTemplateColumns: {},
|
|
234
|
-
gridTemplateRows: {},
|
|
235
|
-
gridTemplateAreas: {},
|
|
236
|
-
gridArea: {},
|
|
237
|
-
// positions
|
|
238
|
-
position: {},
|
|
239
|
-
zIndex: {
|
|
240
|
-
themeKey: 'zIndex'
|
|
241
|
-
},
|
|
242
|
-
top: {},
|
|
243
|
-
right: {},
|
|
244
|
-
bottom: {},
|
|
245
|
-
left: {},
|
|
246
|
-
// shadows
|
|
247
|
-
boxShadow: {
|
|
248
|
-
themeKey: 'shadows'
|
|
249
|
-
},
|
|
250
|
-
// sizing
|
|
251
|
-
width: {
|
|
252
|
-
transform: sizingTransform
|
|
253
|
-
},
|
|
254
|
-
maxWidth: {
|
|
255
|
-
style: maxWidth
|
|
256
|
-
},
|
|
257
|
-
minWidth: {
|
|
258
|
-
transform: sizingTransform
|
|
259
|
-
},
|
|
260
|
-
height: {
|
|
261
|
-
transform: sizingTransform
|
|
262
|
-
},
|
|
263
|
-
maxHeight: {
|
|
264
|
-
transform: sizingTransform
|
|
265
|
-
},
|
|
266
|
-
minHeight: {
|
|
267
|
-
transform: sizingTransform
|
|
268
|
-
},
|
|
269
|
-
boxSizing: {},
|
|
270
|
-
// typography
|
|
271
|
-
fontFamily: {
|
|
272
|
-
themeKey: 'typography'
|
|
273
|
-
},
|
|
274
|
-
fontSize: {
|
|
275
|
-
themeKey: 'typography'
|
|
276
|
-
},
|
|
277
|
-
fontStyle: {
|
|
278
|
-
themeKey: 'typography'
|
|
279
|
-
},
|
|
280
|
-
fontWeight: {
|
|
281
|
-
themeKey: 'typography'
|
|
282
|
-
},
|
|
283
|
-
letterSpacing: {},
|
|
284
|
-
textTransform: {},
|
|
285
|
-
lineHeight: {},
|
|
286
|
-
textAlign: {},
|
|
287
|
-
typography: {
|
|
288
|
-
cssProperty: false,
|
|
289
|
-
themeKey: 'typography'
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
export { defaultSxConfig as default };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import _extends from '../../../../@babel/runtime/helpers/esm/extends.js';
|
|
2
|
-
import _objectWithoutPropertiesLoose from '../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
|
|
3
|
-
import defaultSxConfig from './defaultSxConfig.js';
|
|
4
|
-
import { isPlainObject } from '../../../utils/deepmerge/deepmerge.js';
|
|
5
|
-
|
|
6
|
-
const _excluded = ["sx"];
|
|
7
|
-
const splitProps = props => {
|
|
8
|
-
var _props$theme$unstable, _props$theme;
|
|
9
|
-
const result = {
|
|
10
|
-
systemProps: {},
|
|
11
|
-
otherProps: {}
|
|
12
|
-
};
|
|
13
|
-
const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? undefined : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
|
|
14
|
-
Object.keys(props).forEach(prop => {
|
|
15
|
-
if (config[prop]) {
|
|
16
|
-
result.systemProps[prop] = props[prop];
|
|
17
|
-
} else {
|
|
18
|
-
result.otherProps[prop] = props[prop];
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return result;
|
|
22
|
-
};
|
|
23
|
-
function extendSxProp(props) {
|
|
24
|
-
const {
|
|
25
|
-
sx: inSx
|
|
26
|
-
} = props,
|
|
27
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
28
|
-
const {
|
|
29
|
-
systemProps,
|
|
30
|
-
otherProps
|
|
31
|
-
} = splitProps(other);
|
|
32
|
-
let finalSx;
|
|
33
|
-
if (Array.isArray(inSx)) {
|
|
34
|
-
finalSx = [systemProps, ...inSx];
|
|
35
|
-
} else if (typeof inSx === 'function') {
|
|
36
|
-
finalSx = (...args) => {
|
|
37
|
-
const result = inSx(...args);
|
|
38
|
-
if (!isPlainObject(result)) {
|
|
39
|
-
return systemProps;
|
|
40
|
-
}
|
|
41
|
-
return _extends({}, systemProps, result);
|
|
42
|
-
};
|
|
43
|
-
} else {
|
|
44
|
-
finalSx = _extends({}, systemProps, inSx);
|
|
45
|
-
}
|
|
46
|
-
return _extends({}, otherProps, {
|
|
47
|
-
sx: finalSx
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export { extendSxProp as default };
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import merge from '../merge.js';
|
|
2
|
-
import { getPath, getStyleValue } from '../style.js';
|
|
3
|
-
import { createEmptyBreakpointObject, handleBreakpoints, removeUnusedBreakpoints } from '../breakpoints.js';
|
|
4
|
-
import defaultSxConfig from './defaultSxConfig.js';
|
|
5
|
-
import capitalize from '../../../utils/capitalize/capitalize.js';
|
|
6
|
-
|
|
7
|
-
function objectsHaveSameKeys(...objects) {
|
|
8
|
-
const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);
|
|
9
|
-
const union = new Set(allKeys);
|
|
10
|
-
return objects.every(object => union.size === Object.keys(object).length);
|
|
11
|
-
}
|
|
12
|
-
function callIfFn(maybeFn, arg) {
|
|
13
|
-
return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
17
|
-
function unstable_createStyleFunctionSx() {
|
|
18
|
-
function getThemeValue(prop, val, theme, config) {
|
|
19
|
-
const props = {
|
|
20
|
-
[prop]: val,
|
|
21
|
-
theme
|
|
22
|
-
};
|
|
23
|
-
const options = config[prop];
|
|
24
|
-
if (!options) {
|
|
25
|
-
return {
|
|
26
|
-
[prop]: val
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
const {
|
|
30
|
-
cssProperty = prop,
|
|
31
|
-
themeKey,
|
|
32
|
-
transform,
|
|
33
|
-
style
|
|
34
|
-
} = options;
|
|
35
|
-
if (val == null) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// TODO v6: remove, see https://github.com/mui/material-ui/pull/38123
|
|
40
|
-
if (themeKey === 'typography' && val === 'inherit') {
|
|
41
|
-
return {
|
|
42
|
-
[prop]: val
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
const themeMapping = getPath(theme, themeKey) || {};
|
|
46
|
-
if (style) {
|
|
47
|
-
return style(props);
|
|
48
|
-
}
|
|
49
|
-
const styleFromPropValue = propValueFinal => {
|
|
50
|
-
let value = getStyleValue(themeMapping, transform, propValueFinal);
|
|
51
|
-
if (propValueFinal === value && typeof propValueFinal === 'string') {
|
|
52
|
-
// Haven't found value
|
|
53
|
-
value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);
|
|
54
|
-
}
|
|
55
|
-
if (cssProperty === false) {
|
|
56
|
-
return value;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
[cssProperty]: value
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
return handleBreakpoints(props, val, styleFromPropValue);
|
|
63
|
-
}
|
|
64
|
-
function styleFunctionSx(props) {
|
|
65
|
-
var _theme$unstable_sxCon;
|
|
66
|
-
const {
|
|
67
|
-
sx,
|
|
68
|
-
theme = {}
|
|
69
|
-
} = props || {};
|
|
70
|
-
if (!sx) {
|
|
71
|
-
return null; // Emotion & styled-components will neglect null
|
|
72
|
-
}
|
|
73
|
-
const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;
|
|
74
|
-
|
|
75
|
-
/*
|
|
76
|
-
* Receive `sxInput` as object or callback
|
|
77
|
-
* and then recursively check keys & values to create media query object styles.
|
|
78
|
-
* (the result will be used in `styled`)
|
|
79
|
-
*/
|
|
80
|
-
function traverse(sxInput) {
|
|
81
|
-
let sxObject = sxInput;
|
|
82
|
-
if (typeof sxInput === 'function') {
|
|
83
|
-
sxObject = sxInput(theme);
|
|
84
|
-
} else if (typeof sxInput !== 'object') {
|
|
85
|
-
// value
|
|
86
|
-
return sxInput;
|
|
87
|
-
}
|
|
88
|
-
if (!sxObject) {
|
|
89
|
-
return null;
|
|
90
|
-
}
|
|
91
|
-
const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);
|
|
92
|
-
const breakpointsKeys = Object.keys(emptyBreakpoints);
|
|
93
|
-
let css = emptyBreakpoints;
|
|
94
|
-
Object.keys(sxObject).forEach(styleKey => {
|
|
95
|
-
const value = callIfFn(sxObject[styleKey], theme);
|
|
96
|
-
if (value !== null && value !== undefined) {
|
|
97
|
-
if (typeof value === 'object') {
|
|
98
|
-
if (config[styleKey]) {
|
|
99
|
-
css = merge(css, getThemeValue(styleKey, value, theme, config));
|
|
100
|
-
} else {
|
|
101
|
-
const breakpointsValues = handleBreakpoints({
|
|
102
|
-
theme
|
|
103
|
-
}, value, x => ({
|
|
104
|
-
[styleKey]: x
|
|
105
|
-
}));
|
|
106
|
-
if (objectsHaveSameKeys(breakpointsValues, value)) {
|
|
107
|
-
css[styleKey] = styleFunctionSx({
|
|
108
|
-
sx: value,
|
|
109
|
-
theme
|
|
110
|
-
});
|
|
111
|
-
} else {
|
|
112
|
-
css = merge(css, breakpointsValues);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
} else {
|
|
116
|
-
css = merge(css, getThemeValue(styleKey, value, theme, config));
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
return removeUnusedBreakpoints(breakpointsKeys, css);
|
|
121
|
-
}
|
|
122
|
-
return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
|
|
123
|
-
}
|
|
124
|
-
return styleFunctionSx;
|
|
125
|
-
}
|
|
126
|
-
const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
127
|
-
styleFunctionSx.filterProps = ['sx'];
|
|
128
|
-
|
|
129
|
-
export { styleFunctionSx as default, unstable_createStyleFunctionSx };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import useTheme$1 from './useThemeWithoutDefault.js';
|
|
2
|
-
import createTheme from './createTheme/createTheme.js';
|
|
3
|
-
|
|
4
|
-
const systemDefaultTheme = createTheme();
|
|
5
|
-
function useTheme(defaultTheme = systemDefaultTheme) {
|
|
6
|
-
return useTheme$1(defaultTheme);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { useTheme as default, systemDefaultTheme };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import resolveProps from '../../../utils/resolveProps/resolveProps.js';
|
|
2
|
-
|
|
3
|
-
function getThemeProps(params) {
|
|
4
|
-
const {
|
|
5
|
-
theme,
|
|
6
|
-
name,
|
|
7
|
-
props
|
|
8
|
-
} = params;
|
|
9
|
-
if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {
|
|
10
|
-
return props;
|
|
11
|
-
}
|
|
12
|
-
return resolveProps(theme.components[name].defaultProps, props);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { getThemeProps as default };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import getThemeProps from './getThemeProps.js';
|
|
2
|
-
import useTheme from '../useTheme.js';
|
|
3
|
-
|
|
4
|
-
function useThemeProps({
|
|
5
|
-
props,
|
|
6
|
-
name,
|
|
7
|
-
defaultTheme,
|
|
8
|
-
themeId
|
|
9
|
-
}) {
|
|
10
|
-
let theme = useTheme(defaultTheme);
|
|
11
|
-
if (themeId) {
|
|
12
|
-
theme = theme[themeId] || theme;
|
|
13
|
-
}
|
|
14
|
-
const mergedProps = getThemeProps({
|
|
15
|
-
theme,
|
|
16
|
-
name,
|
|
17
|
-
props
|
|
18
|
-
});
|
|
19
|
-
return mergedProps;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { useThemeProps as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ThemeContext } from '@emotion/react';
|
|
3
|
-
|
|
4
|
-
function isObjectEmpty(obj) {
|
|
5
|
-
return Object.keys(obj).length === 0;
|
|
6
|
-
}
|
|
7
|
-
function useTheme(defaultTheme = null) {
|
|
8
|
-
const contextTheme = React.useContext(ThemeContext);
|
|
9
|
-
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { useTheme as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const defaultGenerator = componentName => componentName;
|
|
2
|
-
const createClassNameGenerator = () => {
|
|
3
|
-
let generate = defaultGenerator;
|
|
4
|
-
return {
|
|
5
|
-
configure(generator) {
|
|
6
|
-
generate = generator;
|
|
7
|
-
},
|
|
8
|
-
generate(componentName) {
|
|
9
|
-
return generate(componentName);
|
|
10
|
-
},
|
|
11
|
-
reset() {
|
|
12
|
-
generate = defaultGenerator;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
const ClassNameGenerator = createClassNameGenerator();
|
|
17
|
-
|
|
18
|
-
export { ClassNameGenerator as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import formatMuiErrorMessage from '../formatMuiErrorMessage/formatMuiErrorMessage.js';
|
|
2
|
-
|
|
3
|
-
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
|
|
4
|
-
//
|
|
5
|
-
// A strict capitalization should uppercase the first letter of each word in the sentence.
|
|
6
|
-
// We only handle the first word.
|
|
7
|
-
function capitalize(string) {
|
|
8
|
-
if (typeof string !== 'string') {
|
|
9
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`capitalize(string)\` expects a string argument.` : formatMuiErrorMessage(7));
|
|
10
|
-
}
|
|
11
|
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { capitalize as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './capitalize.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './clamp.js';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
function composeClasses(slots, getUtilityClass, classes = undefined) {
|
|
2
|
-
const output = {};
|
|
3
|
-
Object.keys(slots).forEach(
|
|
4
|
-
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
5
|
-
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
|
|
6
|
-
slot => {
|
|
7
|
-
output[slot] = slots[slot].reduce((acc, key) => {
|
|
8
|
-
if (key) {
|
|
9
|
-
const utilityClass = getUtilityClass(key);
|
|
10
|
-
if (utilityClass !== '') {
|
|
11
|
-
acc.push(utilityClass);
|
|
12
|
-
}
|
|
13
|
-
if (classes && classes[key]) {
|
|
14
|
-
acc.push(classes[key]);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return acc;
|
|
18
|
-
}, []).join(' ');
|
|
19
|
-
});
|
|
20
|
-
return output;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { composeClasses as default };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
|
|
2
|
-
|
|
3
|
-
// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js
|
|
4
|
-
function isPlainObject(item) {
|
|
5
|
-
if (typeof item !== 'object' || item === null) {
|
|
6
|
-
return false;
|
|
7
|
-
}
|
|
8
|
-
const prototype = Object.getPrototypeOf(item);
|
|
9
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
|
|
10
|
-
}
|
|
11
|
-
function deepClone(source) {
|
|
12
|
-
if (!isPlainObject(source)) {
|
|
13
|
-
return source;
|
|
14
|
-
}
|
|
15
|
-
const output = {};
|
|
16
|
-
Object.keys(source).forEach(key => {
|
|
17
|
-
output[key] = deepClone(source[key]);
|
|
18
|
-
});
|
|
19
|
-
return output;
|
|
20
|
-
}
|
|
21
|
-
function deepmerge(target, source, options = {
|
|
22
|
-
clone: true
|
|
23
|
-
}) {
|
|
24
|
-
const output = options.clone ? _extends({}, target) : target;
|
|
25
|
-
if (isPlainObject(target) && isPlainObject(source)) {
|
|
26
|
-
Object.keys(source).forEach(key => {
|
|
27
|
-
// Avoid prototype pollution
|
|
28
|
-
if (key === '__proto__') {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {
|
|
32
|
-
// Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
|
|
33
|
-
output[key] = deepmerge(target[key], source[key], options);
|
|
34
|
-
} else if (options.clone) {
|
|
35
|
-
output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
|
|
36
|
-
} else {
|
|
37
|
-
output[key] = source[key];
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
return output;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { deepmerge as default, isPlainObject };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, isPlainObject } from './deepmerge.js';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WARNING: Don't import this directly.
|
|
3
|
-
* Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.
|
|
4
|
-
* @param {number} code
|
|
5
|
-
*/
|
|
6
|
-
function formatMuiErrorMessage(code) {
|
|
7
|
-
// Apply babel-plugin-transform-template-literals in loose mode
|
|
8
|
-
// loose mode is safe if we're concatenating primitives
|
|
9
|
-
// see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose
|
|
10
|
-
/* eslint-disable prefer-template */
|
|
11
|
-
let url = 'https://mui.com/production-error/?code=' + code;
|
|
12
|
-
for (let i = 1; i < arguments.length; i += 1) {
|
|
13
|
-
// rest params over-transpile for this case
|
|
14
|
-
// eslint-disable-next-line prefer-rest-params
|
|
15
|
-
url += '&args[]=' + encodeURIComponent(arguments[i]);
|
|
16
|
-
}
|
|
17
|
-
return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';
|
|
18
|
-
/* eslint-enable prefer-template */
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { formatMuiErrorMessage as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './formatMuiErrorMessage.js';
|