@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,24 +0,0 @@
|
|
|
1
|
-
import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import SvgIcon from '../SvgIcon/SvgIcon.js';
|
|
5
|
-
|
|
6
|
-
function createSvgIcon(path, displayName) {
|
|
7
|
-
function Component(props, ref) {
|
|
8
|
-
return /*#__PURE__*/jsx(SvgIcon, _extends({
|
|
9
|
-
"data-testid": `${displayName}Icon`,
|
|
10
|
-
ref: ref
|
|
11
|
-
}, props, {
|
|
12
|
-
children: path
|
|
13
|
-
}));
|
|
14
|
-
}
|
|
15
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16
|
-
// Need to set `displayName` on the inner component for React.memo.
|
|
17
|
-
// React prior to 16.14 ignores `displayName` on the wrapper.
|
|
18
|
-
Component.displayName = `${displayName}Icon`;
|
|
19
|
-
}
|
|
20
|
-
Component.muiName = SvgIcon.muiName;
|
|
21
|
-
return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { createSvgIcon as default };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import PropTypes from '../../../../_virtual/index3.js';
|
|
3
|
-
import { Global } from '@emotion/react';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
function isEmpty(obj) {
|
|
7
|
-
return obj === undefined || obj === null || Object.keys(obj).length === 0;
|
|
8
|
-
}
|
|
9
|
-
function GlobalStyles(props) {
|
|
10
|
-
const {
|
|
11
|
-
styles,
|
|
12
|
-
defaultTheme = {}
|
|
13
|
-
} = props;
|
|
14
|
-
const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty(themeInput) ? defaultTheme : themeInput) : styles;
|
|
15
|
-
return /*#__PURE__*/jsx(Global, {
|
|
16
|
-
styles: globalStyles
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
process.env.NODE_ENV !== "production" ? GlobalStyles.propTypes = {
|
|
20
|
-
defaultTheme: PropTypes.object,
|
|
21
|
-
styles: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.func])
|
|
22
|
-
} : undefined;
|
|
23
|
-
|
|
24
|
-
export { GlobalStyles as default };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import PropTypes from '../../../../_virtual/index3.js';
|
|
3
|
-
import { CacheProvider } from '@emotion/react';
|
|
4
|
-
import createCache from '../../../@emotion/cache/dist/emotion-cache.esm.js';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
let cache;
|
|
8
|
-
if (typeof document === 'object') {
|
|
9
|
-
cache = createCache({
|
|
10
|
-
key: 'css',
|
|
11
|
-
prepend: true
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function StyledEngineProvider(props) {
|
|
15
|
-
const {
|
|
16
|
-
injectFirst,
|
|
17
|
-
children
|
|
18
|
-
} = props;
|
|
19
|
-
return injectFirst && cache ? /*#__PURE__*/jsx(CacheProvider, {
|
|
20
|
-
value: cache,
|
|
21
|
-
children: children
|
|
22
|
-
}) : children;
|
|
23
|
-
}
|
|
24
|
-
process.env.NODE_ENV !== "production" ? StyledEngineProvider.propTypes = {
|
|
25
|
-
/**
|
|
26
|
-
* Your component tree.
|
|
27
|
-
*/
|
|
28
|
-
children: PropTypes.node,
|
|
29
|
-
/**
|
|
30
|
-
* By default, the styles are injected last in the <head> element of the page.
|
|
31
|
-
* As a result, they gain more specificity than any other style sheet.
|
|
32
|
-
* If you want to override MUI's styles, set this prop.
|
|
33
|
-
*/
|
|
34
|
-
injectFirst: PropTypes.bool
|
|
35
|
-
} : undefined;
|
|
36
|
-
|
|
37
|
-
export { StyledEngineProvider as default };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import emStyled from '@emotion/styled';
|
|
2
|
-
export { ThemeContext, css, keyframes } from '@emotion/react';
|
|
3
|
-
export { default as StyledEngineProvider } from './StyledEngineProvider/StyledEngineProvider.js';
|
|
4
|
-
export { default as GlobalStyles } from './GlobalStyles/GlobalStyles.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @mui/styled-engine v5.15.14
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/
|
|
13
|
-
function styled(tag, options) {
|
|
14
|
-
const stylesFactory = emStyled(tag, options);
|
|
15
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16
|
-
return (...styles) => {
|
|
17
|
-
const component = typeof tag === 'string' ? `"${tag}"` : 'component';
|
|
18
|
-
if (styles.length === 0) {
|
|
19
|
-
console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join('\n'));
|
|
20
|
-
} else if (styles.some(style => style === undefined)) {
|
|
21
|
-
console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);
|
|
22
|
-
}
|
|
23
|
-
return stylesFactory(...styles);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
return stylesFactory;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
30
|
-
const internal_processStyles = (tag, processor) => {
|
|
31
|
-
// Emotion attaches all the styles as `__emotion_styles`.
|
|
32
|
-
// Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186
|
|
33
|
-
if (Array.isArray(tag.__emotion_styles)) {
|
|
34
|
-
tag.__emotion_styles = processor(tag.__emotion_styles);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export { styled as default, internal_processStyles };
|
|
@@ -1,385 +0,0 @@
|
|
|
1
|
-
import { __exports as colorManipulator } from '../../../_virtual/colorManipulator2.js';
|
|
2
|
-
import { __require as requireInteropRequireDefault } from '../../@babel/runtime/helpers/interopRequireDefault.js';
|
|
3
|
-
import require$$1 from '../../../_virtual/index11.js';
|
|
4
|
-
import require$$2 from '../../../_virtual/index12.js';
|
|
5
|
-
|
|
6
|
-
var hasRequiredColorManipulator;
|
|
7
|
-
|
|
8
|
-
function requireColorManipulator () {
|
|
9
|
-
if (hasRequiredColorManipulator) return colorManipulator;
|
|
10
|
-
hasRequiredColorManipulator = 1;
|
|
11
|
-
|
|
12
|
-
var _interopRequireDefault = requireInteropRequireDefault();
|
|
13
|
-
Object.defineProperty(colorManipulator, "__esModule", {
|
|
14
|
-
value: true
|
|
15
|
-
});
|
|
16
|
-
colorManipulator.alpha = alpha;
|
|
17
|
-
colorManipulator.blend = blend;
|
|
18
|
-
colorManipulator.colorChannel = undefined;
|
|
19
|
-
colorManipulator.darken = darken;
|
|
20
|
-
colorManipulator.decomposeColor = decomposeColor;
|
|
21
|
-
colorManipulator.emphasize = emphasize;
|
|
22
|
-
colorManipulator.getContrastRatio = getContrastRatio;
|
|
23
|
-
colorManipulator.getLuminance = getLuminance;
|
|
24
|
-
colorManipulator.hexToRgb = hexToRgb;
|
|
25
|
-
colorManipulator.hslToRgb = hslToRgb;
|
|
26
|
-
colorManipulator.lighten = lighten;
|
|
27
|
-
colorManipulator.private_safeAlpha = private_safeAlpha;
|
|
28
|
-
colorManipulator.private_safeColorChannel = undefined;
|
|
29
|
-
colorManipulator.private_safeDarken = private_safeDarken;
|
|
30
|
-
colorManipulator.private_safeEmphasize = private_safeEmphasize;
|
|
31
|
-
colorManipulator.private_safeLighten = private_safeLighten;
|
|
32
|
-
colorManipulator.recomposeColor = recomposeColor;
|
|
33
|
-
colorManipulator.rgbToHex = rgbToHex;
|
|
34
|
-
var _formatMuiErrorMessage2 = _interopRequireDefault(require$$1);
|
|
35
|
-
var _clamp = _interopRequireDefault(require$$2);
|
|
36
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Returns a number whose value is limited to the given range.
|
|
40
|
-
* @param {number} value The value to be clamped
|
|
41
|
-
* @param {number} min The lower boundary of the output range
|
|
42
|
-
* @param {number} max The upper boundary of the output range
|
|
43
|
-
* @returns {number} A number in the range [min, max]
|
|
44
|
-
*/
|
|
45
|
-
function clampWrapper(value, min = 0, max = 1) {
|
|
46
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
47
|
-
if (value < min || value > max) {
|
|
48
|
-
console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return (0, _clamp.default)(value, min, max);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Converts a color from CSS hex format to CSS rgb format.
|
|
56
|
-
* @param {string} color - Hex color, i.e. #nnn or #nnnnnn
|
|
57
|
-
* @returns {string} A CSS rgb color string
|
|
58
|
-
*/
|
|
59
|
-
function hexToRgb(color) {
|
|
60
|
-
color = color.slice(1);
|
|
61
|
-
const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');
|
|
62
|
-
let colors = color.match(re);
|
|
63
|
-
if (colors && colors[0].length === 1) {
|
|
64
|
-
colors = colors.map(n => n + n);
|
|
65
|
-
}
|
|
66
|
-
return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {
|
|
67
|
-
return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
|
|
68
|
-
}).join(', ')})` : '';
|
|
69
|
-
}
|
|
70
|
-
function intToHex(int) {
|
|
71
|
-
const hex = int.toString(16);
|
|
72
|
-
return hex.length === 1 ? `0${hex}` : hex;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Returns an object with the type and values of a color.
|
|
77
|
-
*
|
|
78
|
-
* Note: Does not support rgb % values.
|
|
79
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
80
|
-
* @returns {object} - A MUI color object: {type: string, values: number[]}
|
|
81
|
-
*/
|
|
82
|
-
function decomposeColor(color) {
|
|
83
|
-
// Idempotent
|
|
84
|
-
if (color.type) {
|
|
85
|
-
return color;
|
|
86
|
-
}
|
|
87
|
-
if (color.charAt(0) === '#') {
|
|
88
|
-
return decomposeColor(hexToRgb(color));
|
|
89
|
-
}
|
|
90
|
-
const marker = color.indexOf('(');
|
|
91
|
-
const type = color.substring(0, marker);
|
|
92
|
-
if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) {
|
|
93
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${color}\` color.
|
|
94
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : (0, _formatMuiErrorMessage2.default)(9, color));
|
|
95
|
-
}
|
|
96
|
-
let values = color.substring(marker + 1, color.length - 1);
|
|
97
|
-
let colorSpace;
|
|
98
|
-
if (type === 'color') {
|
|
99
|
-
values = values.split(' ');
|
|
100
|
-
colorSpace = values.shift();
|
|
101
|
-
if (values.length === 4 && values[3].charAt(0) === '/') {
|
|
102
|
-
values[3] = values[3].slice(1);
|
|
103
|
-
}
|
|
104
|
-
if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {
|
|
105
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${colorSpace}\` color space.
|
|
106
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, _formatMuiErrorMessage2.default)(10, colorSpace));
|
|
107
|
-
}
|
|
108
|
-
} else {
|
|
109
|
-
values = values.split(',');
|
|
110
|
-
}
|
|
111
|
-
values = values.map(value => parseFloat(value));
|
|
112
|
-
return {
|
|
113
|
-
type,
|
|
114
|
-
values,
|
|
115
|
-
colorSpace
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Returns a channel created from the input color.
|
|
121
|
-
*
|
|
122
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
123
|
-
* @returns {string} - The channel for the color, that can be used in rgba or hsla colors
|
|
124
|
-
*/
|
|
125
|
-
const colorChannel = color => {
|
|
126
|
-
const decomposedColor = decomposeColor(color);
|
|
127
|
-
return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');
|
|
128
|
-
};
|
|
129
|
-
colorManipulator.colorChannel = colorChannel;
|
|
130
|
-
const private_safeColorChannel = (color, warning) => {
|
|
131
|
-
try {
|
|
132
|
-
return colorChannel(color);
|
|
133
|
-
} catch (error) {
|
|
134
|
-
if (warning && process.env.NODE_ENV !== 'production') {
|
|
135
|
-
console.warn(warning);
|
|
136
|
-
}
|
|
137
|
-
return color;
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Converts a color object with type and values to a string.
|
|
143
|
-
* @param {object} color - Decomposed color
|
|
144
|
-
* @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'
|
|
145
|
-
* @param {array} color.values - [n,n,n] or [n,n,n,n]
|
|
146
|
-
* @returns {string} A CSS color string
|
|
147
|
-
*/
|
|
148
|
-
colorManipulator.private_safeColorChannel = private_safeColorChannel;
|
|
149
|
-
function recomposeColor(color) {
|
|
150
|
-
const {
|
|
151
|
-
type,
|
|
152
|
-
colorSpace
|
|
153
|
-
} = color;
|
|
154
|
-
let {
|
|
155
|
-
values
|
|
156
|
-
} = color;
|
|
157
|
-
if (type.indexOf('rgb') !== -1) {
|
|
158
|
-
// Only convert the first 3 values to int (i.e. not alpha)
|
|
159
|
-
values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);
|
|
160
|
-
} else if (type.indexOf('hsl') !== -1) {
|
|
161
|
-
values[1] = `${values[1]}%`;
|
|
162
|
-
values[2] = `${values[2]}%`;
|
|
163
|
-
}
|
|
164
|
-
if (type.indexOf('color') !== -1) {
|
|
165
|
-
values = `${colorSpace} ${values.join(' ')}`;
|
|
166
|
-
} else {
|
|
167
|
-
values = `${values.join(', ')}`;
|
|
168
|
-
}
|
|
169
|
-
return `${type}(${values})`;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Converts a color from CSS rgb format to CSS hex format.
|
|
174
|
-
* @param {string} color - RGB color, i.e. rgb(n, n, n)
|
|
175
|
-
* @returns {string} A CSS rgb color string, i.e. #nnnnnn
|
|
176
|
-
*/
|
|
177
|
-
function rgbToHex(color) {
|
|
178
|
-
// Idempotent
|
|
179
|
-
if (color.indexOf('#') === 0) {
|
|
180
|
-
return color;
|
|
181
|
-
}
|
|
182
|
-
const {
|
|
183
|
-
values
|
|
184
|
-
} = decomposeColor(color);
|
|
185
|
-
return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Converts a color from hsl format to rgb format.
|
|
190
|
-
* @param {string} color - HSL color values
|
|
191
|
-
* @returns {string} rgb color values
|
|
192
|
-
*/
|
|
193
|
-
function hslToRgb(color) {
|
|
194
|
-
color = decomposeColor(color);
|
|
195
|
-
const {
|
|
196
|
-
values
|
|
197
|
-
} = color;
|
|
198
|
-
const h = values[0];
|
|
199
|
-
const s = values[1] / 100;
|
|
200
|
-
const l = values[2] / 100;
|
|
201
|
-
const a = s * Math.min(l, 1 - l);
|
|
202
|
-
const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
|
|
203
|
-
let type = 'rgb';
|
|
204
|
-
const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
|
|
205
|
-
if (color.type === 'hsla') {
|
|
206
|
-
type += 'a';
|
|
207
|
-
rgb.push(values[3]);
|
|
208
|
-
}
|
|
209
|
-
return recomposeColor({
|
|
210
|
-
type,
|
|
211
|
-
values: rgb
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* The relative brightness of any point in a color space,
|
|
216
|
-
* normalized to 0 for darkest black and 1 for lightest white.
|
|
217
|
-
*
|
|
218
|
-
* Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
219
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
220
|
-
* @returns {number} The relative brightness of the color in the range 0 - 1
|
|
221
|
-
*/
|
|
222
|
-
function getLuminance(color) {
|
|
223
|
-
color = decomposeColor(color);
|
|
224
|
-
let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;
|
|
225
|
-
rgb = rgb.map(val => {
|
|
226
|
-
if (color.type !== 'color') {
|
|
227
|
-
val /= 255; // normalized
|
|
228
|
-
}
|
|
229
|
-
return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
// Truncate at 3 digits
|
|
233
|
-
return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Calculates the contrast ratio between two colors.
|
|
238
|
-
*
|
|
239
|
-
* Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
240
|
-
* @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
|
241
|
-
* @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
|
242
|
-
* @returns {number} A contrast ratio value in the range 0 - 21.
|
|
243
|
-
*/
|
|
244
|
-
function getContrastRatio(foreground, background) {
|
|
245
|
-
const lumA = getLuminance(foreground);
|
|
246
|
-
const lumB = getLuminance(background);
|
|
247
|
-
return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Sets the absolute transparency of a color.
|
|
252
|
-
* Any existing alpha values are overwritten.
|
|
253
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
254
|
-
* @param {number} value - value to set the alpha channel to in the range 0 - 1
|
|
255
|
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
|
256
|
-
*/
|
|
257
|
-
function alpha(color, value) {
|
|
258
|
-
color = decomposeColor(color);
|
|
259
|
-
value = clampWrapper(value);
|
|
260
|
-
if (color.type === 'rgb' || color.type === 'hsl') {
|
|
261
|
-
color.type += 'a';
|
|
262
|
-
}
|
|
263
|
-
if (color.type === 'color') {
|
|
264
|
-
color.values[3] = `/${value}`;
|
|
265
|
-
} else {
|
|
266
|
-
color.values[3] = value;
|
|
267
|
-
}
|
|
268
|
-
return recomposeColor(color);
|
|
269
|
-
}
|
|
270
|
-
function private_safeAlpha(color, value, warning) {
|
|
271
|
-
try {
|
|
272
|
-
return alpha(color, value);
|
|
273
|
-
} catch (error) {
|
|
274
|
-
if (warning && process.env.NODE_ENV !== 'production') {
|
|
275
|
-
console.warn(warning);
|
|
276
|
-
}
|
|
277
|
-
return color;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Darkens a color.
|
|
283
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
284
|
-
* @param {number} coefficient - multiplier in the range 0 - 1
|
|
285
|
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
|
286
|
-
*/
|
|
287
|
-
function darken(color, coefficient) {
|
|
288
|
-
color = decomposeColor(color);
|
|
289
|
-
coefficient = clampWrapper(coefficient);
|
|
290
|
-
if (color.type.indexOf('hsl') !== -1) {
|
|
291
|
-
color.values[2] *= 1 - coefficient;
|
|
292
|
-
} else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {
|
|
293
|
-
for (let i = 0; i < 3; i += 1) {
|
|
294
|
-
color.values[i] *= 1 - coefficient;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
return recomposeColor(color);
|
|
298
|
-
}
|
|
299
|
-
function private_safeDarken(color, coefficient, warning) {
|
|
300
|
-
try {
|
|
301
|
-
return darken(color, coefficient);
|
|
302
|
-
} catch (error) {
|
|
303
|
-
if (warning && process.env.NODE_ENV !== 'production') {
|
|
304
|
-
console.warn(warning);
|
|
305
|
-
}
|
|
306
|
-
return color;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Lightens a color.
|
|
312
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
313
|
-
* @param {number} coefficient - multiplier in the range 0 - 1
|
|
314
|
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
|
315
|
-
*/
|
|
316
|
-
function lighten(color, coefficient) {
|
|
317
|
-
color = decomposeColor(color);
|
|
318
|
-
coefficient = clampWrapper(coefficient);
|
|
319
|
-
if (color.type.indexOf('hsl') !== -1) {
|
|
320
|
-
color.values[2] += (100 - color.values[2]) * coefficient;
|
|
321
|
-
} else if (color.type.indexOf('rgb') !== -1) {
|
|
322
|
-
for (let i = 0; i < 3; i += 1) {
|
|
323
|
-
color.values[i] += (255 - color.values[i]) * coefficient;
|
|
324
|
-
}
|
|
325
|
-
} else if (color.type.indexOf('color') !== -1) {
|
|
326
|
-
for (let i = 0; i < 3; i += 1) {
|
|
327
|
-
color.values[i] += (1 - color.values[i]) * coefficient;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
return recomposeColor(color);
|
|
331
|
-
}
|
|
332
|
-
function private_safeLighten(color, coefficient, warning) {
|
|
333
|
-
try {
|
|
334
|
-
return lighten(color, coefficient);
|
|
335
|
-
} catch (error) {
|
|
336
|
-
if (warning && process.env.NODE_ENV !== 'production') {
|
|
337
|
-
console.warn(warning);
|
|
338
|
-
}
|
|
339
|
-
return color;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Darken or lighten a color, depending on its luminance.
|
|
345
|
-
* Light colors are darkened, dark colors are lightened.
|
|
346
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
347
|
-
* @param {number} coefficient=0.15 - multiplier in the range 0 - 1
|
|
348
|
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
|
349
|
-
*/
|
|
350
|
-
function emphasize(color, coefficient = 0.15) {
|
|
351
|
-
return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
|
|
352
|
-
}
|
|
353
|
-
function private_safeEmphasize(color, coefficient, warning) {
|
|
354
|
-
try {
|
|
355
|
-
return private_safeEmphasize(color, coefficient);
|
|
356
|
-
} catch (error) {
|
|
357
|
-
if (warning && process.env.NODE_ENV !== 'production') {
|
|
358
|
-
console.warn(warning);
|
|
359
|
-
}
|
|
360
|
-
return color;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* Blend a transparent overlay color with a background color, resulting in a single
|
|
366
|
-
* RGB color.
|
|
367
|
-
* @param {string} background - CSS color
|
|
368
|
-
* @param {string} overlay - CSS color
|
|
369
|
-
* @param {number} opacity - Opacity multiplier in the range 0 - 1
|
|
370
|
-
* @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.
|
|
371
|
-
*/
|
|
372
|
-
function blend(background, overlay, opacity, gamma = 1.0) {
|
|
373
|
-
const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);
|
|
374
|
-
const backgroundColor = decomposeColor(background);
|
|
375
|
-
const overlayColor = decomposeColor(overlay);
|
|
376
|
-
const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];
|
|
377
|
-
return recomposeColor({
|
|
378
|
-
type: 'rgb',
|
|
379
|
-
values: rgb
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
return colorManipulator;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export { requireColorManipulator as __require };
|