@sproutsocial/racine 25.10.0 → 26.0.0
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/CHANGELOG.md +36 -0
- package/dist/esm/index.js +1461 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/index.d.mts +430 -0
- package/dist/index.d.ts +430 -0
- package/dist/index.js +1559 -0
- package/dist/index.js.map +1 -0
- package/package.json +30 -139
- package/commonjs/Avatar/Avatar.js +0 -151
- package/commonjs/Avatar/AvatarTypes.js +0 -5
- package/commonjs/Avatar/constants.js +0 -16
- package/commonjs/Avatar/index.js +0 -38
- package/commonjs/Badge/Badge.js +0 -68
- package/commonjs/Badge/BadgeTypes.js +0 -5
- package/commonjs/Badge/constants.js +0 -62
- package/commonjs/Badge/index.js +0 -42
- package/commonjs/Badge/styles.js +0 -26
- package/commonjs/Banner/Banner.js +0 -100
- package/commonjs/Banner/BannerTypes.js +0 -5
- package/commonjs/Banner/index.js +0 -30
- package/commonjs/Banner/styles.js +0 -24
- package/commonjs/Box/Box.js +0 -35
- package/commonjs/Box/BoxTypes.js +0 -5
- package/commonjs/Box/index.js +0 -30
- package/commonjs/Box/styles.js +0 -17
- package/commonjs/Breadcrumb/Breadcrumb.js +0 -84
- package/commonjs/Breadcrumb/BreadcrumbTypes.js +0 -5
- package/commonjs/Breadcrumb/index.js +0 -30
- package/commonjs/Breadcrumb/styles.js +0 -29
- package/commonjs/Button/Button.js +0 -65
- package/commonjs/Button/ButtonTypes.js +0 -5
- package/commonjs/Button/index.js +0 -30
- package/commonjs/Button/styles.js +0 -59
- package/commonjs/Card/Card.js +0 -101
- package/commonjs/Card/CardTypes.js +0 -5
- package/commonjs/Card/index.js +0 -59
- package/commonjs/Card/styles.js +0 -130
- package/commonjs/Card/subComponents.js +0 -106
- package/commonjs/Card/utils.js +0 -59
- package/commonjs/CharacterCounter/CharacterCounter.js +0 -58
- package/commonjs/CharacterCounter/CharacterCounterTypes.js +0 -5
- package/commonjs/CharacterCounter/index.js +0 -30
- package/commonjs/CharacterCounter/styles.js +0 -26
- package/commonjs/ChartLegend/ChartLegend.js +0 -39
- package/commonjs/ChartLegend/ChartLegendTypes.js +0 -5
- package/commonjs/ChartLegend/index.js +0 -30
- package/commonjs/ChartLegend/styles.js +0 -38
- package/commonjs/ChartLegend/useChartLabels.js +0 -42
- package/commonjs/Checkbox/Checkbox.js +0 -153
- package/commonjs/Checkbox/CheckboxTypes.js +0 -5
- package/commonjs/Checkbox/index.js +0 -30
- package/commonjs/Checkbox/styles.js +0 -138
- package/commonjs/Collapsible/Collapsible.js +0 -145
- package/commonjs/Collapsible/CollapsibleTypes.js +0 -5
- package/commonjs/Collapsible/index.js +0 -30
- package/commonjs/Collapsible/styles.js +0 -21
- package/commonjs/DatePicker/DateRangePicker/DateRangePicker.js +0 -86
- package/commonjs/DatePicker/DateRangePicker/DateRangePickerTypes.js +0 -5
- package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.js +0 -65
- package/commonjs/DatePicker/DateRangePicker/index.js +0 -42
- package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.js +0 -82
- package/commonjs/DatePicker/SingleDatePicker/SingleDatePickerTypes.js +0 -5
- package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +0 -44
- package/commonjs/DatePicker/SingleDatePicker/index.js +0 -42
- package/commonjs/DatePicker/common.js +0 -69
- package/commonjs/DatePicker/index.js +0 -27
- package/commonjs/DatePicker/styles.js +0 -128
- package/commonjs/DatePicker/types.js +0 -5
- package/commonjs/Drawer/Drawer.js +0 -279
- package/commonjs/Drawer/DrawerTypes.js +0 -5
- package/commonjs/Drawer/index.js +0 -30
- package/commonjs/Drawer/styles.js +0 -30
- package/commonjs/Duration/Duration.js +0 -111
- package/commonjs/Duration/DurationTypes.js +0 -5
- package/commonjs/Duration/constants.js +0 -27
- package/commonjs/Duration/index.js +0 -47
- package/commonjs/Duration/styles.js +0 -13
- package/commonjs/Duration/utils.js +0 -76
- package/commonjs/EmptyState/EmptyState.js +0 -72
- package/commonjs/EmptyState/EmptyStateTypes.js +0 -5
- package/commonjs/EmptyState/index.js +0 -30
- package/commonjs/Fieldset/Fieldset.js +0 -86
- package/commonjs/Fieldset/FieldsetTypes.js +0 -5
- package/commonjs/Fieldset/index.js +0 -30
- package/commonjs/Fieldset/styles.js +0 -20
- package/commonjs/FormField/FormField.js +0 -93
- package/commonjs/FormField/FormFieldTypes.js +0 -5
- package/commonjs/FormField/index.js +0 -30
- package/commonjs/Icon/Icon.js +0 -147
- package/commonjs/Icon/IconTypes.js +0 -5
- package/commonjs/Icon/index.js +0 -30
- package/commonjs/Icon/styles.js +0 -33
- package/commonjs/IllustrationViewBoxes.d.js +0 -5
- package/commonjs/Image/Image.js +0 -128
- package/commonjs/Image/ImageTypes.js +0 -5
- package/commonjs/Image/index.js +0 -30
- package/commonjs/Image/styles.js +0 -20
- package/commonjs/Indicator/Indicator.js +0 -65
- package/commonjs/Indicator/IndicatorTypes.js +0 -5
- package/commonjs/Indicator/index.js +0 -30
- package/commonjs/Indicator/styles.js +0 -24
- package/commonjs/Input/Input.js +0 -294
- package/commonjs/Input/InputTypes.js +0 -5
- package/commonjs/Input/index.js +0 -30
- package/commonjs/Input/styles.js +0 -97
- package/commonjs/KeyboardKey/KeyboardKey.js +0 -56
- package/commonjs/KeyboardKey/KeyboardKeyTypes.js +0 -5
- package/commonjs/KeyboardKey/index.js +0 -30
- package/commonjs/KeyboardKey/styles.js +0 -26
- package/commonjs/Label/Label.js +0 -75
- package/commonjs/Label/LabelTypes.js +0 -5
- package/commonjs/Label/index.js +0 -30
- package/commonjs/Link/Link.js +0 -55
- package/commonjs/Link/LinkTypes.js +0 -5
- package/commonjs/Link/constants.js +0 -17
- package/commonjs/Link/index.js +0 -42
- package/commonjs/Link/styles.js +0 -37
- package/commonjs/Listbox/Listbox.js +0 -128
- package/commonjs/Listbox/ListboxTypes.js +0 -5
- package/commonjs/Listbox/index.js +0 -39
- package/commonjs/Loader/Loader.js +0 -66
- package/commonjs/Loader/LoaderTypes.js +0 -5
- package/commonjs/Loader/index.js +0 -30
- package/commonjs/Loader/styles.js +0 -42
- package/commonjs/LoaderButton/LoaderButton.js +0 -77
- package/commonjs/LoaderButton/LoaderButtonTypes.js +0 -5
- package/commonjs/LoaderButton/index.js +0 -30
- package/commonjs/LogoViewBoxes.d.js +0 -5
- package/commonjs/Menu/Menu.js +0 -635
- package/commonjs/Menu/MenuTypes.js +0 -5
- package/commonjs/Menu/index.js +0 -63
- package/commonjs/Menu/styles.js +0 -62
- package/commonjs/Menu/utils/constants.js +0 -18
- package/commonjs/Menu/utils/descendants.js +0 -351
- package/commonjs/Menu/utils/hooks.js +0 -176
- package/commonjs/Menu/utils/index.js +0 -38
- package/commonjs/Message/Message.js +0 -174
- package/commonjs/Message/MessageTypes.js +0 -5
- package/commonjs/Message/constants.js +0 -13
- package/commonjs/Message/index.js +0 -42
- package/commonjs/Message/styles.js +0 -127
- package/commonjs/Modal/Modal.js +0 -161
- package/commonjs/Modal/ModalTypes.js +0 -5
- package/commonjs/Modal/index.js +0 -30
- package/commonjs/Modal/styles.js +0 -110
- package/commonjs/Numeral/Numeral.js +0 -183
- package/commonjs/Numeral/NumeralTypes.js +0 -5
- package/commonjs/Numeral/constants.js +0 -16
- package/commonjs/Numeral/index.js +0 -39
- package/commonjs/Numeral/styles.js +0 -19
- package/commonjs/PartnerLogo/PartnerLogo.js +0 -82
- package/commonjs/PartnerLogo/PartnerLogoTypes.js +0 -24
- package/commonjs/PartnerLogo/index.js +0 -30
- package/commonjs/PartnerLogo/styles.js +0 -31
- package/commonjs/Portal/Portal.js +0 -87
- package/commonjs/Portal/PortalTypes.js +0 -5
- package/commonjs/Portal/index.js +0 -22
- package/commonjs/Radio/Radio.js +0 -116
- package/commonjs/Radio/RadioTypes.js +0 -5
- package/commonjs/Radio/index.js +0 -30
- package/commonjs/Radio/styles.js +0 -77
- package/commonjs/SegmentedControl/SegmentedControl.js +0 -105
- package/commonjs/SegmentedControl/SegmentedControlTypes.js +0 -5
- package/commonjs/SegmentedControl/index.js +0 -30
- package/commonjs/SegmentedControl/styles.js +0 -60
- package/commonjs/Select/Select.js +0 -110
- package/commonjs/Select/SelectTypes.js +0 -5
- package/commonjs/Select/index.js +0 -30
- package/commonjs/Select/styles.js +0 -94
- package/commonjs/Skeleton/Skeleton.js +0 -43
- package/commonjs/Skeleton/index.js +0 -15
- package/commonjs/SpotIllustration/SpotIllustration.js +0 -53
- package/commonjs/SpotIllustration/SpotIllustrationTypes.js +0 -5
- package/commonjs/SpotIllustration/illustrationNames.js +0 -7
- package/commonjs/SpotIllustration/index.js +0 -30
- package/commonjs/Stack/Stack.js +0 -117
- package/commonjs/Stack/StackTypes.js +0 -5
- package/commonjs/Stack/index.js +0 -30
- package/commonjs/StatefulStory.js +0 -38
- package/commonjs/Switch/Switch.js +0 -65
- package/commonjs/Switch/SwitchTypes.js +0 -5
- package/commonjs/Switch/index.js +0 -30
- package/commonjs/Switch/styles.js +0 -71
- package/commonjs/Table/Table.js +0 -134
- package/commonjs/Table/TableTypes.js +0 -5
- package/commonjs/Table/index.js +0 -30
- package/commonjs/Table/styles.js +0 -16
- package/commonjs/TableCell/TableCell.js +0 -73
- package/commonjs/TableCell/TableCellTypes.js +0 -5
- package/commonjs/TableCell/index.js +0 -30
- package/commonjs/TableCell/styles.js +0 -22
- package/commonjs/TableHeaderCell/TableHeaderCell.js +0 -133
- package/commonjs/TableHeaderCell/TableHeaderCellTypes.js +0 -5
- package/commonjs/TableHeaderCell/constants.js +0 -10
- package/commonjs/TableHeaderCell/index.js +0 -42
- package/commonjs/TableHeaderCell/styles.js +0 -36
- package/commonjs/TableRowAccordion/TableRowAccordion.js +0 -111
- package/commonjs/TableRowAccordion/TableRowAccordionTypes.js +0 -5
- package/commonjs/TableRowAccordion/index.js +0 -30
- package/commonjs/TableRowAccordion/styles.js +0 -28
- package/commonjs/Tabs/Tabs.js +0 -215
- package/commonjs/Tabs/TabsTypes.js +0 -5
- package/commonjs/Tabs/index.js +0 -30
- package/commonjs/Tabs/styles.js +0 -58
- package/commonjs/Text/Text.js +0 -118
- package/commonjs/Text/TextTypes.js +0 -5
- package/commonjs/Text/index.js +0 -30
- package/commonjs/Text/styles.js +0 -26
- package/commonjs/Textarea/Textarea.js +0 -155
- package/commonjs/Textarea/TextareaTypes.js +0 -5
- package/commonjs/Textarea/index.js +0 -30
- package/commonjs/Textarea/styles.js +0 -67
- package/commonjs/ThemeProvider/index.js +0 -24
- package/commonjs/Toast/Toast.js +0 -166
- package/commonjs/Toast/ToastTypes.js +0 -5
- package/commonjs/Toast/index.js +0 -39
- package/commonjs/Toast/styles.js +0 -71
- package/commonjs/ToggleHint/ToggleHint.js +0 -96
- package/commonjs/ToggleHint/ToggleHintTypes.js +0 -5
- package/commonjs/ToggleHint/index.js +0 -30
- package/commonjs/ToggleHint/styles.js +0 -27
- package/commonjs/Token/Token.js +0 -88
- package/commonjs/Token/TokenTypes.js +0 -5
- package/commonjs/Token/index.js +0 -31
- package/commonjs/Token/styles.js +0 -37
- package/commonjs/TokenInput/TokenInput.js +0 -325
- package/commonjs/TokenInput/TokenInputTypes.js +0 -5
- package/commonjs/TokenInput/TokenScreenReaderStatus.js +0 -52
- package/commonjs/TokenInput/index.js +0 -30
- package/commonjs/TokenInput/styles.js +0 -82
- package/commonjs/TokenInput/util.js +0 -24
- package/commonjs/Tooltip/Tooltip.js +0 -193
- package/commonjs/Tooltip/TooltipTypes.js +0 -5
- package/commonjs/Tooltip/index.js +0 -30
- package/commonjs/Tooltip/styles.js +0 -19
- package/commonjs/VisuallyHidden/VisuallyHidden.js +0 -13
- package/commonjs/VisuallyHidden/index.js +0 -16
- package/commonjs/index.js +0 -760
- package/commonjs/react.d.js +0 -1
- package/commonjs/styled.d.js +0 -3
- package/commonjs/systemProps/index.js +0 -85
- package/commonjs/themes/dark/dataviz-palette.js +0 -33
- package/commonjs/themes/dark/decorative-palettes.js +0 -63
- package/commonjs/themes/dark/theme.js +0 -268
- package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +0 -240
- package/commonjs/themes/extendedThemes/sproutTheme/index.js +0 -20
- package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +0 -237
- package/commonjs/themes/light/dataviz-palette.js +0 -33
- package/commonjs/themes/light/decorative-palettes.js +0 -63
- package/commonjs/themes/light/literal-colors.js +0 -167
- package/commonjs/themes/light/theme.js +0 -425
- package/commonjs/types/index.js +0 -49
- package/commonjs/types/shared.js +0 -5
- package/commonjs/types/styled-components.js +0 -5
- package/commonjs/types/system-props.js +0 -5
- package/commonjs/types/theme.colors.js +0 -5
- package/commonjs/types/theme.js +0 -5
- package/commonjs/utils/a11yTest.js +0 -33
- package/commonjs/utils/chartColors.js +0 -15
- package/commonjs/utils/constants.js +0 -7
- package/commonjs/utils/dataQaLabelQueries.js +0 -70
- package/commonjs/utils/hooks.js +0 -204
- package/commonjs/utils/index.js +0 -63
- package/commonjs/utils/innerText.js +0 -37
- package/commonjs/utils/mixins.js +0 -19
- package/commonjs/utils/responsiveProps/index.js +0 -39
- package/commonjs/utils/system-props/index.js +0 -16
- package/commonjs/utils/use-measure.js +0 -65
- package/commonjs/utils/useInteractiveColor.js +0 -31
- package/dist/dynamicProps.json +0 -1
- package/dist/dynamicPropsRaw.json +0 -1
- package/dist/types/Avatar/Avatar.d.ts +0 -6
- package/dist/types/Avatar/Avatar.d.ts.map +0 -1
- package/dist/types/Avatar/AvatarTypes.d.ts +0 -21
- package/dist/types/Avatar/AvatarTypes.d.ts.map +0 -1
- package/dist/types/Avatar/constants.d.ts +0 -11
- package/dist/types/Avatar/constants.d.ts.map +0 -1
- package/dist/types/Avatar/index.d.ts +0 -6
- package/dist/types/Avatar/index.d.ts.map +0 -1
- package/dist/types/Badge/Badge.d.ts +0 -4
- package/dist/types/Badge/Badge.d.ts.map +0 -1
- package/dist/types/Badge/BadgeTypes.d.ts +0 -21
- package/dist/types/Badge/BadgeTypes.d.ts.map +0 -1
- package/dist/types/Badge/constants.d.ts +0 -47
- package/dist/types/Badge/constants.d.ts.map +0 -1
- package/dist/types/Badge/index.d.ts +0 -6
- package/dist/types/Badge/index.d.ts.map +0 -1
- package/dist/types/Badge/styles.d.ts +0 -7
- package/dist/types/Badge/styles.d.ts.map +0 -1
- package/dist/types/Banner/Banner.d.ts +0 -5
- package/dist/types/Banner/Banner.d.ts.map +0 -1
- package/dist/types/Banner/BannerTypes.d.ts +0 -17
- package/dist/types/Banner/BannerTypes.d.ts.map +0 -1
- package/dist/types/Banner/__tests__/BannerTypes.d.ts +0 -2
- package/dist/types/Banner/__tests__/BannerTypes.d.ts.map +0 -1
- package/dist/types/Banner/index.d.ts +0 -5
- package/dist/types/Banner/index.d.ts.map +0 -1
- package/dist/types/Banner/styles.d.ts +0 -14
- package/dist/types/Banner/styles.d.ts.map +0 -1
- package/dist/types/Box/Box.d.ts +0 -5
- package/dist/types/Box/Box.d.ts.map +0 -1
- package/dist/types/Box/BoxTypes.d.ts +0 -7
- package/dist/types/Box/BoxTypes.d.ts.map +0 -1
- package/dist/types/Box/index.d.ts +0 -5
- package/dist/types/Box/index.d.ts.map +0 -1
- package/dist/types/Box/styles.d.ts +0 -4
- package/dist/types/Box/styles.d.ts.map +0 -1
- package/dist/types/Breadcrumb/Breadcrumb.d.ts +0 -13
- package/dist/types/Breadcrumb/Breadcrumb.d.ts.map +0 -1
- package/dist/types/Breadcrumb/BreadcrumbTypes.d.ts +0 -15
- package/dist/types/Breadcrumb/BreadcrumbTypes.d.ts.map +0 -1
- package/dist/types/Breadcrumb/index.d.ts +0 -5
- package/dist/types/Breadcrumb/index.d.ts.map +0 -1
- package/dist/types/Breadcrumb/styles.d.ts +0 -3
- package/dist/types/Breadcrumb/styles.d.ts.map +0 -1
- package/dist/types/Button/Button.d.ts +0 -7
- package/dist/types/Button/Button.d.ts.map +0 -1
- package/dist/types/Button/ButtonTypes.d.ts +0 -30
- package/dist/types/Button/ButtonTypes.d.ts.map +0 -1
- package/dist/types/Button/index.d.ts +0 -5
- package/dist/types/Button/index.d.ts.map +0 -1
- package/dist/types/Button/styles.d.ts +0 -8
- package/dist/types/Button/styles.d.ts.map +0 -1
- package/dist/types/Card/Card.d.ts +0 -17
- package/dist/types/Card/Card.d.ts.map +0 -1
- package/dist/types/Card/CardTypes.d.ts +0 -63
- package/dist/types/Card/CardTypes.d.ts.map +0 -1
- package/dist/types/Card/__tests__/CardTypes.d.ts +0 -2
- package/dist/types/Card/__tests__/CardTypes.d.ts.map +0 -1
- package/dist/types/Card/index.d.ts +0 -6
- package/dist/types/Card/index.d.ts.map +0 -1
- package/dist/types/Card/styles.d.ts +0 -22
- package/dist/types/Card/styles.d.ts.map +0 -1
- package/dist/types/Card/subComponents.d.ts +0 -22
- package/dist/types/Card/subComponents.d.ts.map +0 -1
- package/dist/types/Card/utils.d.ts +0 -16
- package/dist/types/Card/utils.d.ts.map +0 -1
- package/dist/types/CharacterCounter/CharacterCounter.d.ts +0 -9
- package/dist/types/CharacterCounter/CharacterCounter.d.ts.map +0 -1
- package/dist/types/CharacterCounter/CharacterCounterTypes.d.ts +0 -11
- package/dist/types/CharacterCounter/CharacterCounterTypes.d.ts.map +0 -1
- package/dist/types/CharacterCounter/index.d.ts +0 -5
- package/dist/types/CharacterCounter/index.d.ts.map +0 -1
- package/dist/types/CharacterCounter/styles.d.ts +0 -7
- package/dist/types/CharacterCounter/styles.d.ts.map +0 -1
- package/dist/types/ChartLegend/ChartLegend.d.ts +0 -4
- package/dist/types/ChartLegend/ChartLegend.d.ts.map +0 -1
- package/dist/types/ChartLegend/ChartLegendTypes.d.ts +0 -19
- package/dist/types/ChartLegend/ChartLegendTypes.d.ts.map +0 -1
- package/dist/types/ChartLegend/index.d.ts +0 -5
- package/dist/types/ChartLegend/index.d.ts.map +0 -1
- package/dist/types/ChartLegend/styles.d.ts +0 -10
- package/dist/types/ChartLegend/styles.d.ts.map +0 -1
- package/dist/types/ChartLegend/useChartLabels.d.ts +0 -3
- package/dist/types/ChartLegend/useChartLabels.d.ts.map +0 -1
- package/dist/types/Checkbox/Checkbox.d.ts +0 -14
- package/dist/types/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/types/Checkbox/CheckboxTypes.d.ts +0 -24
- package/dist/types/Checkbox/CheckboxTypes.d.ts.map +0 -1
- package/dist/types/Checkbox/index.d.ts +0 -5
- package/dist/types/Checkbox/index.d.ts.map +0 -1
- package/dist/types/Checkbox/styles.d.ts +0 -28
- package/dist/types/Checkbox/styles.d.ts.map +0 -1
- package/dist/types/Collapsible/Collapsible.d.ts +0 -14
- package/dist/types/Collapsible/Collapsible.d.ts.map +0 -1
- package/dist/types/Collapsible/CollapsibleTypes.d.ts +0 -16
- package/dist/types/Collapsible/CollapsibleTypes.d.ts.map +0 -1
- package/dist/types/Collapsible/index.d.ts +0 -5
- package/dist/types/Collapsible/index.d.ts.map +0 -1
- package/dist/types/Collapsible/styles.d.ts +0 -5
- package/dist/types/Collapsible/styles.d.ts.map +0 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts +0 -4
- package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts.map +0 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts +0 -18
- package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts.map +0 -1
- package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts +0 -3
- package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts.map +0 -1
- package/dist/types/DatePicker/DateRangePicker/index.d.ts +0 -6
- package/dist/types/DatePicker/DateRangePicker/index.d.ts.map +0 -1
- package/dist/types/DatePicker/SingleDatePicker/SingleDatePicker.d.ts +0 -5
- package/dist/types/DatePicker/SingleDatePicker/SingleDatePicker.d.ts.map +0 -1
- package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts +0 -15
- package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts.map +0 -1
- package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts +0 -3
- package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts.map +0 -1
- package/dist/types/DatePicker/SingleDatePicker/index.d.ts +0 -6
- package/dist/types/DatePicker/SingleDatePicker/index.d.ts.map +0 -1
- package/dist/types/DatePicker/common.d.ts +0 -16
- package/dist/types/DatePicker/common.d.ts.map +0 -1
- package/dist/types/DatePicker/index.d.ts +0 -3
- package/dist/types/DatePicker/index.d.ts.map +0 -1
- package/dist/types/DatePicker/styles.d.ts +0 -8
- package/dist/types/DatePicker/styles.d.ts.map +0 -1
- package/dist/types/DatePicker/types.d.ts +0 -19
- package/dist/types/DatePicker/types.d.ts.map +0 -1
- package/dist/types/Drawer/Drawer.d.ts +0 -19
- package/dist/types/Drawer/Drawer.d.ts.map +0 -1
- package/dist/types/Drawer/DrawerTypes.d.ts +0 -49
- package/dist/types/Drawer/DrawerTypes.d.ts.map +0 -1
- package/dist/types/Drawer/index.d.ts +0 -5
- package/dist/types/Drawer/index.d.ts.map +0 -1
- package/dist/types/Drawer/styles.d.ts +0 -9
- package/dist/types/Drawer/styles.d.ts.map +0 -1
- package/dist/types/Duration/Duration.d.ts +0 -6
- package/dist/types/Duration/Duration.d.ts.map +0 -1
- package/dist/types/Duration/DurationTypes.d.ts +0 -26
- package/dist/types/Duration/DurationTypes.d.ts.map +0 -1
- package/dist/types/Duration/__tests__/Duration.typetest.d.ts +0 -2
- package/dist/types/Duration/__tests__/Duration.typetest.d.ts.map +0 -1
- package/dist/types/Duration/__tests__/features/testDuration.d.ts +0 -3
- package/dist/types/Duration/__tests__/features/testDuration.d.ts.map +0 -1
- package/dist/types/Duration/constants.d.ts +0 -20
- package/dist/types/Duration/constants.d.ts.map +0 -1
- package/dist/types/Duration/index.d.ts +0 -9
- package/dist/types/Duration/index.d.ts.map +0 -1
- package/dist/types/Duration/styles.d.ts +0 -11
- package/dist/types/Duration/styles.d.ts.map +0 -1
- package/dist/types/Duration/utils.d.ts +0 -16
- package/dist/types/Duration/utils.d.ts.map +0 -1
- package/dist/types/EmptyState/EmptyState.d.ts +0 -4
- package/dist/types/EmptyState/EmptyState.d.ts.map +0 -1
- package/dist/types/EmptyState/EmptyStateTypes.d.ts +0 -15
- package/dist/types/EmptyState/EmptyStateTypes.d.ts.map +0 -1
- package/dist/types/EmptyState/index.d.ts +0 -5
- package/dist/types/EmptyState/index.d.ts.map +0 -1
- package/dist/types/Fieldset/Fieldset.d.ts +0 -23
- package/dist/types/Fieldset/Fieldset.d.ts.map +0 -1
- package/dist/types/Fieldset/FieldsetTypes.d.ts +0 -13
- package/dist/types/Fieldset/FieldsetTypes.d.ts.map +0 -1
- package/dist/types/Fieldset/index.d.ts +0 -5
- package/dist/types/Fieldset/index.d.ts.map +0 -1
- package/dist/types/Fieldset/styles.d.ts +0 -3
- package/dist/types/Fieldset/styles.d.ts.map +0 -1
- package/dist/types/FormField/FormField.d.ts +0 -4
- package/dist/types/FormField/FormField.d.ts.map +0 -1
- package/dist/types/FormField/FormFieldTypes.d.ts +0 -27
- package/dist/types/FormField/FormFieldTypes.d.ts.map +0 -1
- package/dist/types/FormField/index.d.ts +0 -5
- package/dist/types/FormField/index.d.ts.map +0 -1
- package/dist/types/Icon/Icon.d.ts +0 -29
- package/dist/types/Icon/Icon.d.ts.map +0 -1
- package/dist/types/Icon/IconTypes.d.ts +0 -31
- package/dist/types/Icon/IconTypes.d.ts.map +0 -1
- package/dist/types/Icon/index.d.ts +0 -5
- package/dist/types/Icon/index.d.ts.map +0 -1
- package/dist/types/Icon/styles.d.ts +0 -9
- package/dist/types/Icon/styles.d.ts.map +0 -1
- package/dist/types/Image/Image.d.ts +0 -29
- package/dist/types/Image/Image.d.ts.map +0 -1
- package/dist/types/Image/ImageTypes.d.ts +0 -17
- package/dist/types/Image/ImageTypes.d.ts.map +0 -1
- package/dist/types/Image/index.d.ts +0 -5
- package/dist/types/Image/index.d.ts.map +0 -1
- package/dist/types/Image/styles.d.ts +0 -8
- package/dist/types/Image/styles.d.ts.map +0 -1
- package/dist/types/Indicator/Indicator.d.ts +0 -9
- package/dist/types/Indicator/Indicator.d.ts.map +0 -1
- package/dist/types/Indicator/IndicatorTypes.d.ts +0 -7
- package/dist/types/Indicator/IndicatorTypes.d.ts.map +0 -1
- package/dist/types/Indicator/index.d.ts +0 -5
- package/dist/types/Indicator/index.d.ts.map +0 -1
- package/dist/types/Indicator/styles.d.ts +0 -5
- package/dist/types/Indicator/styles.d.ts.map +0 -1
- package/dist/types/Input/Input.d.ts +0 -32
- package/dist/types/Input/Input.d.ts.map +0 -1
- package/dist/types/Input/InputTypes.d.ts +0 -74
- package/dist/types/Input/InputTypes.d.ts.map +0 -1
- package/dist/types/Input/index.d.ts +0 -5
- package/dist/types/Input/index.d.ts.map +0 -1
- package/dist/types/Input/styles.d.ts +0 -9
- package/dist/types/Input/styles.d.ts.map +0 -1
- package/dist/types/KeyboardKey/KeyboardKey.d.ts +0 -6
- package/dist/types/KeyboardKey/KeyboardKey.d.ts.map +0 -1
- package/dist/types/KeyboardKey/KeyboardKeyTypes.d.ts +0 -8
- package/dist/types/KeyboardKey/KeyboardKeyTypes.d.ts.map +0 -1
- package/dist/types/KeyboardKey/index.d.ts +0 -5
- package/dist/types/KeyboardKey/index.d.ts.map +0 -1
- package/dist/types/KeyboardKey/styles.d.ts +0 -3
- package/dist/types/KeyboardKey/styles.d.ts.map +0 -1
- package/dist/types/Label/Label.d.ts +0 -6
- package/dist/types/Label/Label.d.ts.map +0 -1
- package/dist/types/Label/LabelTypes.d.ts +0 -9
- package/dist/types/Label/LabelTypes.d.ts.map +0 -1
- package/dist/types/Label/index.d.ts +0 -5
- package/dist/types/Label/index.d.ts.map +0 -1
- package/dist/types/Link/Link.d.ts +0 -4
- package/dist/types/Link/Link.d.ts.map +0 -1
- package/dist/types/Link/LinkTypes.d.ts +0 -21
- package/dist/types/Link/LinkTypes.d.ts.map +0 -1
- package/dist/types/Link/constants.d.ts +0 -10
- package/dist/types/Link/constants.d.ts.map +0 -1
- package/dist/types/Link/index.d.ts +0 -6
- package/dist/types/Link/index.d.ts.map +0 -1
- package/dist/types/Link/styles.d.ts +0 -13
- package/dist/types/Link/styles.d.ts.map +0 -1
- package/dist/types/Listbox/Listbox.d.ts +0 -53
- package/dist/types/Listbox/Listbox.d.ts.map +0 -1
- package/dist/types/Listbox/ListboxTypes.d.ts +0 -15
- package/dist/types/Listbox/ListboxTypes.d.ts.map +0 -1
- package/dist/types/Listbox/index.d.ts +0 -5
- package/dist/types/Listbox/index.d.ts.map +0 -1
- package/dist/types/Loader/Loader.d.ts +0 -12
- package/dist/types/Loader/Loader.d.ts.map +0 -1
- package/dist/types/Loader/LoaderTypes.d.ts +0 -13
- package/dist/types/Loader/LoaderTypes.d.ts.map +0 -1
- package/dist/types/Loader/index.d.ts +0 -5
- package/dist/types/Loader/index.d.ts.map +0 -1
- package/dist/types/Loader/styles.d.ts +0 -9
- package/dist/types/Loader/styles.d.ts.map +0 -1
- package/dist/types/LoaderButton/LoaderButton.d.ts +0 -4
- package/dist/types/LoaderButton/LoaderButton.d.ts.map +0 -1
- package/dist/types/LoaderButton/LoaderButtonTypes.d.ts +0 -6
- package/dist/types/LoaderButton/LoaderButtonTypes.d.ts.map +0 -1
- package/dist/types/LoaderButton/index.d.ts +0 -5
- package/dist/types/LoaderButton/index.d.ts.map +0 -1
- package/dist/types/Menu/Menu.d.ts +0 -89
- package/dist/types/Menu/Menu.d.ts.map +0 -1
- package/dist/types/Menu/MenuTypes.d.ts +0 -102
- package/dist/types/Menu/MenuTypes.d.ts.map +0 -1
- package/dist/types/Menu/index.d.ts +0 -7
- package/dist/types/Menu/index.d.ts.map +0 -1
- package/dist/types/Menu/styles.d.ts +0 -4
- package/dist/types/Menu/styles.d.ts.map +0 -1
- package/dist/types/Menu/utils/constants.d.ts +0 -13
- package/dist/types/Menu/utils/constants.d.ts.map +0 -1
- package/dist/types/Menu/utils/descendants.d.ts +0 -87
- package/dist/types/Menu/utils/descendants.d.ts.map +0 -1
- package/dist/types/Menu/utils/hooks.d.ts +0 -19
- package/dist/types/Menu/utils/hooks.d.ts.map +0 -1
- package/dist/types/Menu/utils/index.d.ts +0 -4
- package/dist/types/Menu/utils/index.d.ts.map +0 -1
- package/dist/types/Message/Message.d.ts +0 -50
- package/dist/types/Message/Message.d.ts.map +0 -1
- package/dist/types/Message/MessageTypes.d.ts +0 -18
- package/dist/types/Message/MessageTypes.d.ts.map +0 -1
- package/dist/types/Message/constants.d.ts +0 -7
- package/dist/types/Message/constants.d.ts.map +0 -1
- package/dist/types/Message/index.d.ts +0 -6
- package/dist/types/Message/index.d.ts.map +0 -1
- package/dist/types/Message/styles.d.ts +0 -10
- package/dist/types/Message/styles.d.ts.map +0 -1
- package/dist/types/Modal/Modal.d.ts +0 -30
- package/dist/types/Modal/Modal.d.ts.map +0 -1
- package/dist/types/Modal/ModalTypes.d.ts +0 -46
- package/dist/types/Modal/ModalTypes.d.ts.map +0 -1
- package/dist/types/Modal/index.d.ts +0 -5
- package/dist/types/Modal/index.d.ts.map +0 -1
- package/dist/types/Modal/styles.d.ts +0 -14
- package/dist/types/Modal/styles.d.ts.map +0 -1
- package/dist/types/Numeral/Numeral.d.ts +0 -6
- package/dist/types/Numeral/Numeral.d.ts.map +0 -1
- package/dist/types/Numeral/NumeralTypes.d.ts +0 -20
- package/dist/types/Numeral/NumeralTypes.d.ts.map +0 -1
- package/dist/types/Numeral/__tests__/features/testNumeral.d.ts +0 -3
- package/dist/types/Numeral/__tests__/features/testNumeral.d.ts.map +0 -1
- package/dist/types/Numeral/constants.d.ts +0 -10
- package/dist/types/Numeral/constants.d.ts.map +0 -1
- package/dist/types/Numeral/index.d.ts +0 -6
- package/dist/types/Numeral/index.d.ts.map +0 -1
- package/dist/types/Numeral/styles.d.ts +0 -21
- package/dist/types/Numeral/styles.d.ts.map +0 -1
- package/dist/types/PartnerLogo/PartnerLogo.d.ts +0 -4
- package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +0 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +0 -34
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +0 -1
- package/dist/types/PartnerLogo/index.d.ts +0 -5
- package/dist/types/PartnerLogo/index.d.ts.map +0 -1
- package/dist/types/PartnerLogo/styles.d.ts +0 -7
- package/dist/types/PartnerLogo/styles.d.ts.map +0 -1
- package/dist/types/Portal/Portal.d.ts +0 -14
- package/dist/types/Portal/Portal.d.ts.map +0 -1
- package/dist/types/Portal/PortalTypes.d.ts +0 -9
- package/dist/types/Portal/PortalTypes.d.ts.map +0 -1
- package/dist/types/Portal/index.d.ts +0 -4
- package/dist/types/Portal/index.d.ts.map +0 -1
- package/dist/types/Radio/Radio.d.ts +0 -15
- package/dist/types/Radio/Radio.d.ts.map +0 -1
- package/dist/types/Radio/RadioTypes.d.ts +0 -21
- package/dist/types/Radio/RadioTypes.d.ts.map +0 -1
- package/dist/types/Radio/index.d.ts +0 -5
- package/dist/types/Radio/index.d.ts.map +0 -1
- package/dist/types/Radio/styles.d.ts +0 -20
- package/dist/types/Radio/styles.d.ts.map +0 -1
- package/dist/types/SegmentedControl/SegmentedControl.d.ts +0 -10
- package/dist/types/SegmentedControl/SegmentedControl.d.ts.map +0 -1
- package/dist/types/SegmentedControl/SegmentedControlTypes.d.ts +0 -21
- package/dist/types/SegmentedControl/SegmentedControlTypes.d.ts.map +0 -1
- package/dist/types/SegmentedControl/index.d.ts +0 -5
- package/dist/types/SegmentedControl/index.d.ts.map +0 -1
- package/dist/types/SegmentedControl/styles.d.ts +0 -18
- package/dist/types/SegmentedControl/styles.d.ts.map +0 -1
- package/dist/types/Select/Select.d.ts +0 -10
- package/dist/types/Select/Select.d.ts.map +0 -1
- package/dist/types/Select/SelectTypes.d.ts +0 -27
- package/dist/types/Select/SelectTypes.d.ts.map +0 -1
- package/dist/types/Select/index.d.ts +0 -5
- package/dist/types/Select/index.d.ts.map +0 -1
- package/dist/types/Select/styles.d.ts +0 -8
- package/dist/types/Select/styles.d.ts.map +0 -1
- package/dist/types/Skeleton/Skeleton.d.ts +0 -5
- package/dist/types/Skeleton/Skeleton.d.ts.map +0 -1
- package/dist/types/Skeleton/index.d.ts +0 -4
- package/dist/types/Skeleton/index.d.ts.map +0 -1
- package/dist/types/SpotIllustration/SpotIllustration.d.ts +0 -4
- package/dist/types/SpotIllustration/SpotIllustration.d.ts.map +0 -1
- package/dist/types/SpotIllustration/SpotIllustrationTypes.d.ts +0 -9
- package/dist/types/SpotIllustration/SpotIllustrationTypes.d.ts.map +0 -1
- package/dist/types/SpotIllustration/__tests__/SpotIllustrationTypes.d.ts +0 -2
- package/dist/types/SpotIllustration/__tests__/SpotIllustrationTypes.d.ts.map +0 -1
- package/dist/types/SpotIllustration/illustrationNames.d.ts +0 -2
- package/dist/types/SpotIllustration/illustrationNames.d.ts.map +0 -1
- package/dist/types/SpotIllustration/index.d.ts +0 -5
- package/dist/types/SpotIllustration/index.d.ts.map +0 -1
- package/dist/types/Stack/Stack.d.ts +0 -4
- package/dist/types/Stack/Stack.d.ts.map +0 -1
- package/dist/types/Stack/StackTypes.d.ts +0 -17
- package/dist/types/Stack/StackTypes.d.ts.map +0 -1
- package/dist/types/Stack/index.d.ts +0 -5
- package/dist/types/Stack/index.d.ts.map +0 -1
- package/dist/types/StatefulStory.d.ts +0 -22
- package/dist/types/StatefulStory.d.ts.map +0 -1
- package/dist/types/Switch/Switch.d.ts +0 -16
- package/dist/types/Switch/Switch.d.ts.map +0 -1
- package/dist/types/Switch/SwitchTypes.d.ts +0 -10
- package/dist/types/Switch/SwitchTypes.d.ts.map +0 -1
- package/dist/types/Switch/index.d.ts +0 -5
- package/dist/types/Switch/index.d.ts.map +0 -1
- package/dist/types/Switch/styles.d.ts +0 -6
- package/dist/types/Switch/styles.d.ts.map +0 -1
- package/dist/types/Table/Table.d.ts +0 -37
- package/dist/types/Table/Table.d.ts.map +0 -1
- package/dist/types/Table/TableTypes.d.ts +0 -35
- package/dist/types/Table/TableTypes.d.ts.map +0 -1
- package/dist/types/Table/index.d.ts +0 -5
- package/dist/types/Table/index.d.ts.map +0 -1
- package/dist/types/Table/styles.d.ts +0 -3
- package/dist/types/Table/styles.d.ts.map +0 -1
- package/dist/types/TableCell/TableCell.d.ts +0 -11
- package/dist/types/TableCell/TableCell.d.ts.map +0 -1
- package/dist/types/TableCell/TableCellTypes.d.ts +0 -19
- package/dist/types/TableCell/TableCellTypes.d.ts.map +0 -1
- package/dist/types/TableCell/index.d.ts +0 -5
- package/dist/types/TableCell/index.d.ts.map +0 -1
- package/dist/types/TableCell/styles.d.ts +0 -6
- package/dist/types/TableCell/styles.d.ts.map +0 -1
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts +0 -10
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +0 -1
- package/dist/types/TableHeaderCell/TableHeaderCellTypes.d.ts +0 -19
- package/dist/types/TableHeaderCell/TableHeaderCellTypes.d.ts.map +0 -1
- package/dist/types/TableHeaderCell/constants.d.ts +0 -5
- package/dist/types/TableHeaderCell/constants.d.ts.map +0 -1
- package/dist/types/TableHeaderCell/index.d.ts +0 -6
- package/dist/types/TableHeaderCell/index.d.ts.map +0 -1
- package/dist/types/TableHeaderCell/styles.d.ts +0 -10
- package/dist/types/TableHeaderCell/styles.d.ts.map +0 -1
- package/dist/types/TableRowAccordion/TableRowAccordion.d.ts +0 -10
- package/dist/types/TableRowAccordion/TableRowAccordion.d.ts.map +0 -1
- package/dist/types/TableRowAccordion/TableRowAccordionTypes.d.ts +0 -12
- package/dist/types/TableRowAccordion/TableRowAccordionTypes.d.ts.map +0 -1
- package/dist/types/TableRowAccordion/index.d.ts +0 -5
- package/dist/types/TableRowAccordion/index.d.ts.map +0 -1
- package/dist/types/TableRowAccordion/styles.d.ts +0 -7
- package/dist/types/TableRowAccordion/styles.d.ts.map +0 -1
- package/dist/types/Tabs/Tabs.d.ts +0 -41
- package/dist/types/Tabs/Tabs.d.ts.map +0 -1
- package/dist/types/Tabs/TabsTypes.d.ts +0 -19
- package/dist/types/Tabs/TabsTypes.d.ts.map +0 -1
- package/dist/types/Tabs/index.d.ts +0 -5
- package/dist/types/Tabs/index.d.ts.map +0 -1
- package/dist/types/Tabs/styles.d.ts +0 -15
- package/dist/types/Tabs/styles.d.ts.map +0 -1
- package/dist/types/Text/Text.d.ts +0 -13
- package/dist/types/Text/Text.d.ts.map +0 -1
- package/dist/types/Text/TextTypes.d.ts +0 -18
- package/dist/types/Text/TextTypes.d.ts.map +0 -1
- package/dist/types/Text/index.d.ts +0 -5
- package/dist/types/Text/index.d.ts.map +0 -1
- package/dist/types/Text/styles.d.ts +0 -4
- package/dist/types/Text/styles.d.ts.map +0 -1
- package/dist/types/Textarea/Textarea.d.ts +0 -18
- package/dist/types/Textarea/Textarea.d.ts.map +0 -1
- package/dist/types/Textarea/TextareaTypes.d.ts +0 -65
- package/dist/types/Textarea/TextareaTypes.d.ts.map +0 -1
- package/dist/types/Textarea/index.d.ts +0 -5
- package/dist/types/Textarea/index.d.ts.map +0 -1
- package/dist/types/Textarea/styles.d.ts +0 -5
- package/dist/types/Textarea/styles.d.ts.map +0 -1
- package/dist/types/ThemeProvider/index.d.ts +0 -10
- package/dist/types/ThemeProvider/index.d.ts.map +0 -1
- package/dist/types/Toast/Toast.d.ts +0 -25
- package/dist/types/Toast/Toast.d.ts.map +0 -1
- package/dist/types/Toast/ToastTypes.d.ts +0 -33
- package/dist/types/Toast/ToastTypes.d.ts.map +0 -1
- package/dist/types/Toast/index.d.ts +0 -4
- package/dist/types/Toast/index.d.ts.map +0 -1
- package/dist/types/Toast/styles.d.ts +0 -12
- package/dist/types/Toast/styles.d.ts.map +0 -1
- package/dist/types/ToggleHint/ToggleHint.d.ts +0 -17
- package/dist/types/ToggleHint/ToggleHint.d.ts.map +0 -1
- package/dist/types/ToggleHint/ToggleHintTypes.d.ts +0 -12
- package/dist/types/ToggleHint/ToggleHintTypes.d.ts.map +0 -1
- package/dist/types/ToggleHint/index.d.ts +0 -5
- package/dist/types/ToggleHint/index.d.ts.map +0 -1
- package/dist/types/ToggleHint/styles.d.ts +0 -5
- package/dist/types/ToggleHint/styles.d.ts.map +0 -1
- package/dist/types/Token/Token.d.ts +0 -4
- package/dist/types/Token/Token.d.ts.map +0 -1
- package/dist/types/Token/TokenTypes.d.ts +0 -18
- package/dist/types/Token/TokenTypes.d.ts.map +0 -1
- package/dist/types/Token/index.d.ts +0 -5
- package/dist/types/Token/index.d.ts.map +0 -1
- package/dist/types/Token/styles.d.ts +0 -4
- package/dist/types/Token/styles.d.ts.map +0 -1
- package/dist/types/TokenInput/TokenInput.d.ts +0 -28
- package/dist/types/TokenInput/TokenInput.d.ts.map +0 -1
- package/dist/types/TokenInput/TokenInputTypes.d.ts +0 -78
- package/dist/types/TokenInput/TokenInputTypes.d.ts.map +0 -1
- package/dist/types/TokenInput/index.d.ts +0 -5
- package/dist/types/TokenInput/index.d.ts.map +0 -1
- package/dist/types/TokenInput/styles.d.ts +0 -7
- package/dist/types/TokenInput/styles.d.ts.map +0 -1
- package/dist/types/TokenInput/util.d.ts +0 -4
- package/dist/types/TokenInput/util.d.ts.map +0 -1
- package/dist/types/Tooltip/Tooltip.d.ts +0 -5
- package/dist/types/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/types/Tooltip/TooltipTypes.d.ts +0 -28
- package/dist/types/Tooltip/TooltipTypes.d.ts.map +0 -1
- package/dist/types/Tooltip/index.d.ts +0 -5
- package/dist/types/Tooltip/index.d.ts.map +0 -1
- package/dist/types/Tooltip/styles.d.ts +0 -3
- package/dist/types/Tooltip/styles.d.ts.map +0 -1
- package/dist/types/VisuallyHidden/VisuallyHidden.d.ts +0 -2
- package/dist/types/VisuallyHidden/VisuallyHidden.d.ts.map +0 -1
- package/dist/types/VisuallyHidden/index.d.ts +0 -2
- package/dist/types/VisuallyHidden/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -69
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/systemProps/index.d.ts +0 -21
- package/dist/types/systemProps/index.d.ts.map +0 -1
- package/dist/types/themes/dark/dataviz-palette.d.ts +0 -26
- package/dist/types/themes/dark/dataviz-palette.d.ts.map +0 -1
- package/dist/types/themes/dark/decorative-palettes.d.ts +0 -56
- package/dist/types/themes/dark/decorative-palettes.d.ts.map +0 -1
- package/dist/types/themes/dark/theme.d.ts +0 -612
- package/dist/types/themes/dark/theme.d.ts.map +0 -1
- package/dist/types/themes/extendedThemes/sproutTheme/dark/theme.d.ts +0 -213
- package/dist/types/themes/extendedThemes/sproutTheme/dark/theme.d.ts.map +0 -1
- package/dist/types/themes/extendedThemes/sproutTheme/index.d.ts +0 -3
- package/dist/types/themes/extendedThemes/sproutTheme/index.d.ts.map +0 -1
- package/dist/types/themes/extendedThemes/sproutTheme/light/theme.d.ts +0 -213
- package/dist/types/themes/extendedThemes/sproutTheme/light/theme.d.ts.map +0 -1
- package/dist/types/themes/light/dataviz-palette.d.ts +0 -26
- package/dist/types/themes/light/dataviz-palette.d.ts.map +0 -1
- package/dist/types/themes/light/decorative-palettes.d.ts +0 -56
- package/dist/types/themes/light/decorative-palettes.d.ts.map +0 -1
- package/dist/types/themes/light/literal-colors.d.ts +0 -160
- package/dist/types/themes/light/literal-colors.d.ts.map +0 -1
- package/dist/types/themes/light/theme.d.ts +0 -704
- package/dist/types/themes/light/theme.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -5
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/shared.d.ts +0 -4
- package/dist/types/types/shared.d.ts.map +0 -1
- package/dist/types/types/styled-components.d.ts +0 -11
- package/dist/types/types/styled-components.d.ts.map +0 -1
- package/dist/types/types/system-props.d.ts +0 -71
- package/dist/types/types/system-props.d.ts.map +0 -1
- package/dist/types/types/theme.colors.d.ts +0 -298
- package/dist/types/types/theme.colors.d.ts.map +0 -1
- package/dist/types/types/theme.d.ts +0 -43
- package/dist/types/types/theme.d.ts.map +0 -1
- package/dist/types/utils/a11yTest.d.ts +0 -2
- package/dist/types/utils/a11yTest.d.ts.map +0 -1
- package/dist/types/utils/chartColors.d.ts +0 -9
- package/dist/types/utils/chartColors.d.ts.map +0 -1
- package/dist/types/utils/constants.d.ts +0 -2
- package/dist/types/utils/constants.d.ts.map +0 -1
- package/dist/types/utils/dataQaLabelQueries.d.ts +0 -14
- package/dist/types/utils/dataQaLabelQueries.d.ts.map +0 -1
- package/dist/types/utils/hooks.d.ts +0 -40
- package/dist/types/utils/hooks.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -15
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/innerText.d.ts +0 -4
- package/dist/types/utils/innerText.d.ts.map +0 -1
- package/dist/types/utils/mixins.d.ts +0 -6
- package/dist/types/utils/mixins.d.ts.map +0 -1
- package/dist/types/utils/responsiveProps/index.d.ts +0 -3
- package/dist/types/utils/responsiveProps/index.d.ts.map +0 -1
- package/dist/types/utils/system-props/index.d.ts +0 -2
- package/dist/types/utils/system-props/index.d.ts.map +0 -1
- package/dist/types/utils/use-measure.d.ts +0 -14
- package/dist/types/utils/use-measure.d.ts.map +0 -1
- package/dist/types/utils/useInteractiveColor.d.ts +0 -9
- package/dist/types/utils/useInteractiveColor.d.ts.map +0 -1
- package/lib/Avatar/Avatar.js +0 -142
- package/lib/Avatar/AvatarTypes.js +0 -1
- package/lib/Avatar/constants.js +0 -10
- package/lib/Avatar/index.js +0 -5
- package/lib/Badge/Badge.js +0 -60
- package/lib/Badge/BadgeTypes.js +0 -1
- package/lib/Badge/constants.js +0 -56
- package/lib/Badge/index.js +0 -5
- package/lib/Badge/styles.js +0 -19
- package/lib/Banner/Banner.js +0 -92
- package/lib/Banner/BannerTypes.js +0 -1
- package/lib/Banner/index.js +0 -4
- package/lib/Banner/styles.js +0 -14
- package/lib/Box/Box.js +0 -26
- package/lib/Box/BoxTypes.js +0 -1
- package/lib/Box/index.js +0 -4
- package/lib/Box/styles.js +0 -10
- package/lib/Breadcrumb/Breadcrumb.js +0 -77
- package/lib/Breadcrumb/BreadcrumbTypes.js +0 -1
- package/lib/Breadcrumb/index.js +0 -4
- package/lib/Breadcrumb/styles.js +0 -22
- package/lib/Button/Button.js +0 -58
- package/lib/Button/ButtonTypes.js +0 -1
- package/lib/Button/index.js +0 -4
- package/lib/Button/styles.js +0 -49
- package/lib/Card/Card.js +0 -95
- package/lib/Card/CardTypes.js +0 -1
- package/lib/Card/index.js +0 -5
- package/lib/Card/styles.js +0 -124
- package/lib/Card/subComponents.js +0 -100
- package/lib/Card/utils.js +0 -52
- package/lib/CharacterCounter/CharacterCounter.js +0 -50
- package/lib/CharacterCounter/CharacterCounterTypes.js +0 -1
- package/lib/CharacterCounter/index.js +0 -4
- package/lib/CharacterCounter/styles.js +0 -17
- package/lib/ChartLegend/ChartLegend.js +0 -30
- package/lib/ChartLegend/ChartLegendTypes.js +0 -1
- package/lib/ChartLegend/index.js +0 -4
- package/lib/ChartLegend/styles.js +0 -29
- package/lib/ChartLegend/useChartLabels.js +0 -36
- package/lib/Checkbox/Checkbox.js +0 -147
- package/lib/Checkbox/CheckboxTypes.js +0 -1
- package/lib/Checkbox/index.js +0 -4
- package/lib/Checkbox/styles.js +0 -128
- package/lib/Collapsible/Collapsible.js +0 -136
- package/lib/Collapsible/CollapsibleTypes.js +0 -1
- package/lib/Collapsible/index.js +0 -4
- package/lib/Collapsible/styles.js +0 -14
- package/lib/DatePicker/DateRangePicker/DateRangePicker.js +0 -79
- package/lib/DatePicker/DateRangePicker/DateRangePickerTypes.js +0 -1
- package/lib/DatePicker/DateRangePicker/StatefulDateRangePicker.js +0 -56
- package/lib/DatePicker/DateRangePicker/index.js +0 -5
- package/lib/DatePicker/SingleDatePicker/SingleDatePicker.js +0 -75
- package/lib/DatePicker/SingleDatePicker/SingleDatePickerTypes.js +0 -1
- package/lib/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +0 -35
- package/lib/DatePicker/SingleDatePicker/index.js +0 -5
- package/lib/DatePicker/common.js +0 -62
- package/lib/DatePicker/index.js +0 -2
- package/lib/DatePicker/styles.js +0 -119
- package/lib/DatePicker/types.js +0 -1
- package/lib/Drawer/Drawer.js +0 -272
- package/lib/Drawer/DrawerTypes.js +0 -1
- package/lib/Drawer/index.js +0 -4
- package/lib/Drawer/styles.js +0 -20
- package/lib/Duration/Duration.js +0 -104
- package/lib/Duration/DurationTypes.js +0 -1
- package/lib/Duration/constants.js +0 -21
- package/lib/Duration/index.js +0 -7
- package/lib/Duration/styles.js +0 -6
- package/lib/Duration/utils.js +0 -70
- package/lib/EmptyState/EmptyState.js +0 -65
- package/lib/EmptyState/EmptyStateTypes.js +0 -1
- package/lib/EmptyState/index.js +0 -4
- package/lib/Fieldset/Fieldset.js +0 -79
- package/lib/Fieldset/FieldsetTypes.js +0 -1
- package/lib/Fieldset/index.js +0 -4
- package/lib/Fieldset/styles.js +0 -10
- package/lib/FormField/FormField.js +0 -85
- package/lib/FormField/FormFieldTypes.js +0 -1
- package/lib/FormField/index.js +0 -4
- package/lib/Icon/Icon.js +0 -139
- package/lib/Icon/IconTypes.js +0 -1
- package/lib/Icon/index.js +0 -4
- package/lib/Icon/styles.js +0 -24
- package/lib/IllustrationViewBoxes.d.js +0 -1
- package/lib/Image/Image.js +0 -120
- package/lib/Image/ImageTypes.js +0 -1
- package/lib/Image/index.js +0 -4
- package/lib/Image/styles.js +0 -11
- package/lib/Indicator/Indicator.js +0 -58
- package/lib/Indicator/IndicatorTypes.js +0 -1
- package/lib/Indicator/index.js +0 -4
- package/lib/Indicator/styles.js +0 -17
- package/lib/Input/Input.js +0 -288
- package/lib/Input/InputTypes.js +0 -1
- package/lib/Input/index.js +0 -4
- package/lib/Input/styles.js +0 -88
- package/lib/KeyboardKey/KeyboardKey.js +0 -48
- package/lib/KeyboardKey/KeyboardKeyTypes.js +0 -1
- package/lib/KeyboardKey/index.js +0 -4
- package/lib/KeyboardKey/styles.js +0 -19
- package/lib/Label/Label.js +0 -68
- package/lib/Label/LabelTypes.js +0 -1
- package/lib/Label/index.js +0 -4
- package/lib/Link/Link.js +0 -46
- package/lib/Link/LinkTypes.js +0 -1
- package/lib/Link/constants.js +0 -11
- package/lib/Link/index.js +0 -5
- package/lib/Link/styles.js +0 -27
- package/lib/Listbox/Listbox.js +0 -121
- package/lib/Listbox/ListboxTypes.js +0 -1
- package/lib/Listbox/index.js +0 -4
- package/lib/Loader/Loader.js +0 -59
- package/lib/Loader/LoaderTypes.js +0 -1
- package/lib/Loader/index.js +0 -4
- package/lib/Loader/styles.js +0 -33
- package/lib/LoaderButton/LoaderButton.js +0 -69
- package/lib/LoaderButton/LoaderButtonTypes.js +0 -1
- package/lib/LoaderButton/index.js +0 -4
- package/lib/LogoViewBoxes.d.js +0 -1
- package/lib/Menu/Menu.js +0 -631
- package/lib/Menu/MenuTypes.js +0 -1
- package/lib/Menu/index.js +0 -6
- package/lib/Menu/styles.js +0 -52
- package/lib/Menu/utils/constants.js +0 -12
- package/lib/Menu/utils/descendants.js +0 -338
- package/lib/Menu/utils/hooks.js +0 -167
- package/lib/Menu/utils/index.js +0 -3
- package/lib/Message/Message.js +0 -165
- package/lib/Message/MessageTypes.js +0 -1
- package/lib/Message/constants.js +0 -7
- package/lib/Message/index.js +0 -5
- package/lib/Message/styles.js +0 -120
- package/lib/Modal/Modal.js +0 -153
- package/lib/Modal/ModalTypes.js +0 -1
- package/lib/Modal/index.js +0 -4
- package/lib/Modal/styles.js +0 -103
- package/lib/Numeral/Numeral.js +0 -176
- package/lib/Numeral/NumeralTypes.js +0 -1
- package/lib/Numeral/constants.js +0 -10
- package/lib/Numeral/index.js +0 -5
- package/lib/Numeral/styles.js +0 -12
- package/lib/PartnerLogo/PartnerLogo.js +0 -75
- package/lib/PartnerLogo/PartnerLogoTypes.js +0 -18
- package/lib/PartnerLogo/index.js +0 -4
- package/lib/PartnerLogo/styles.js +0 -22
- package/lib/Portal/Portal.js +0 -80
- package/lib/Portal/PortalTypes.js +0 -1
- package/lib/Portal/index.js +0 -3
- package/lib/Radio/Radio.js +0 -110
- package/lib/Radio/RadioTypes.js +0 -1
- package/lib/Radio/index.js +0 -4
- package/lib/Radio/styles.js +0 -67
- package/lib/SegmentedControl/SegmentedControl.js +0 -97
- package/lib/SegmentedControl/SegmentedControlTypes.js +0 -1
- package/lib/SegmentedControl/index.js +0 -4
- package/lib/SegmentedControl/styles.js +0 -50
- package/lib/Select/Select.js +0 -103
- package/lib/Select/SelectTypes.js +0 -1
- package/lib/Select/index.js +0 -4
- package/lib/Select/styles.js +0 -85
- package/lib/Skeleton/Skeleton.js +0 -37
- package/lib/Skeleton/index.js +0 -3
- package/lib/SpotIllustration/SpotIllustration.js +0 -48
- package/lib/SpotIllustration/SpotIllustrationTypes.js +0 -1
- package/lib/SpotIllustration/illustrationNames.js +0 -1
- package/lib/SpotIllustration/index.js +0 -4
- package/lib/Stack/Stack.js +0 -109
- package/lib/Stack/StackTypes.js +0 -1
- package/lib/Stack/index.js +0 -4
- package/lib/StatefulStory.js +0 -33
- package/lib/Switch/Switch.js +0 -56
- package/lib/Switch/SwitchTypes.js +0 -1
- package/lib/Switch/index.js +0 -4
- package/lib/Switch/styles.js +0 -62
- package/lib/Table/Table.js +0 -126
- package/lib/Table/TableTypes.js +0 -1
- package/lib/Table/index.js +0 -4
- package/lib/Table/styles.js +0 -9
- package/lib/TableCell/TableCell.js +0 -64
- package/lib/TableCell/TableCellTypes.js +0 -1
- package/lib/TableCell/index.js +0 -4
- package/lib/TableCell/styles.js +0 -15
- package/lib/TableHeaderCell/TableHeaderCell.js +0 -125
- package/lib/TableHeaderCell/TableHeaderCellTypes.js +0 -1
- package/lib/TableHeaderCell/constants.js +0 -4
- package/lib/TableHeaderCell/index.js +0 -5
- package/lib/TableHeaderCell/styles.js +0 -27
- package/lib/TableRowAccordion/TableRowAccordion.js +0 -104
- package/lib/TableRowAccordion/TableRowAccordionTypes.js +0 -1
- package/lib/TableRowAccordion/index.js +0 -4
- package/lib/TableRowAccordion/styles.js +0 -19
- package/lib/Tabs/Tabs.js +0 -207
- package/lib/Tabs/TabsTypes.js +0 -1
- package/lib/Tabs/index.js +0 -4
- package/lib/Tabs/styles.js +0 -48
- package/lib/Text/Text.js +0 -109
- package/lib/Text/TextTypes.js +0 -1
- package/lib/Text/index.js +0 -4
- package/lib/Text/styles.js +0 -17
- package/lib/Textarea/Textarea.js +0 -152
- package/lib/Textarea/TextareaTypes.js +0 -1
- package/lib/Textarea/index.js +0 -4
- package/lib/Textarea/styles.js +0 -58
- package/lib/ThemeProvider/index.js +0 -18
- package/lib/Toast/Toast.js +0 -160
- package/lib/Toast/ToastTypes.js +0 -1
- package/lib/Toast/index.js +0 -3
- package/lib/Toast/styles.js +0 -63
- package/lib/ToggleHint/ToggleHint.js +0 -89
- package/lib/ToggleHint/ToggleHintTypes.js +0 -1
- package/lib/ToggleHint/index.js +0 -4
- package/lib/ToggleHint/styles.js +0 -18
- package/lib/Token/Token.js +0 -81
- package/lib/Token/TokenTypes.js +0 -1
- package/lib/Token/index.js +0 -4
- package/lib/Token/styles.js +0 -28
- package/lib/TokenInput/TokenInput.js +0 -318
- package/lib/TokenInput/TokenInputTypes.js +0 -1
- package/lib/TokenInput/TokenScreenReaderStatus.js +0 -45
- package/lib/TokenInput/index.js +0 -4
- package/lib/TokenInput/styles.js +0 -73
- package/lib/TokenInput/util.js +0 -17
- package/lib/Tooltip/Tooltip.js +0 -184
- package/lib/Tooltip/TooltipTypes.js +0 -1
- package/lib/Tooltip/index.js +0 -4
- package/lib/Tooltip/styles.js +0 -12
- package/lib/VisuallyHidden/VisuallyHidden.js +0 -6
- package/lib/VisuallyHidden/index.js +0 -1
- package/lib/index.js +0 -75
- package/lib/react.d.js +0 -0
- package/lib/styled.d.js +0 -1
- package/lib/systemProps/index.js +0 -26
- package/lib/themes/dark/dataviz-palette.js +0 -26
- package/lib/themes/dark/decorative-palettes.js +0 -56
- package/lib/themes/dark/theme.js +0 -263
- package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +0 -235
- package/lib/themes/extendedThemes/sproutTheme/index.js +0 -2
- package/lib/themes/extendedThemes/sproutTheme/light/theme.js +0 -232
- package/lib/themes/light/dataviz-palette.js +0 -26
- package/lib/themes/light/decorative-palettes.js +0 -56
- package/lib/themes/light/literal-colors.js +0 -160
- package/lib/themes/light/theme.js +0 -421
- package/lib/types/index.js +0 -4
- package/lib/types/shared.js +0 -1
- package/lib/types/styled-components.js +0 -1
- package/lib/types/system-props.js +0 -1
- package/lib/types/theme.colors.js +0 -1
- package/lib/types/theme.js +0 -1
- package/lib/utils/a11yTest.js +0 -29
- package/lib/utils/chartColors.js +0 -9
- package/lib/utils/constants.js +0 -1
- package/lib/utils/dataQaLabelQueries.js +0 -64
- package/lib/utils/hooks.js +0 -194
- package/lib/utils/index.js +0 -53
- package/lib/utils/innerText.js +0 -31
- package/lib/utils/mixins.js +0 -13
- package/lib/utils/responsiveProps/index.js +0 -33
- package/lib/utils/system-props/index.js +0 -1
- package/lib/utils/use-measure.js +0 -59
- package/lib/utils/useInteractiveColor.js +0 -27
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var React = _react;
|
|
9
|
-
var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
|
|
10
|
-
var _web = require("@react-spring/web");
|
|
11
|
-
var _unitless = require("@sproutsocial/seeds-motion/unitless");
|
|
12
|
-
var _Box = _interopRequireDefault(require("../Box"));
|
|
13
|
-
var _Button = _interopRequireDefault(require("../Button"));
|
|
14
|
-
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
15
|
-
var _Text = _interopRequireDefault(require("../Text"));
|
|
16
|
-
var _Portal = _interopRequireDefault(require("../Portal"));
|
|
17
|
-
var _styles = _interopRequireWildcard(require("./styles"));
|
|
18
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
var _excluded = ["title", "id", "children", "render"],
|
|
20
|
-
_excluded2 = ["children"],
|
|
21
|
-
_excluded3 = ["id", "offset", "direction", "children", "disableCloseOnClickOutside", "onClose", "zIndex", "closeTargets", "width", "focusLockExemptCheck", "isOpen"],
|
|
22
|
-
_excluded4 = ["children", "closeButtonLabel", "direction", "disableCloseOnClickOutside", "id", "isOpen", "offset", "onClose", "zIndex", "closeTargets", "width"];
|
|
23
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
25
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
26
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
27
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
28
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
32
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
33
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // eslint-disable-next-line import/no-deprecated
|
|
34
|
-
var useSlideTransition = function useSlideTransition(_ref) {
|
|
35
|
-
var isVisible = _ref.isVisible,
|
|
36
|
-
width = _ref.width,
|
|
37
|
-
direction = _ref.direction;
|
|
38
|
-
var offset = width * (direction === "left" ? -1 : 1);
|
|
39
|
-
return (0, _web.useTransition)(isVisible, {
|
|
40
|
-
from: {
|
|
41
|
-
opacity: 0,
|
|
42
|
-
x: offset
|
|
43
|
-
},
|
|
44
|
-
enter: {
|
|
45
|
-
opacity: 1,
|
|
46
|
-
x: 0
|
|
47
|
-
},
|
|
48
|
-
leave: {
|
|
49
|
-
opacity: 0,
|
|
50
|
-
x: offset
|
|
51
|
-
},
|
|
52
|
-
config: {
|
|
53
|
-
duration: _unitless.MOTION_DURATION_MEDIUM * 1000
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
var AnimatedDrawer = (0, _web.animated)(_styles.default);
|
|
58
|
-
var doesRefContainEventTarget = function doesRefContainEventTarget(ref, event) {
|
|
59
|
-
return ref.current && event.target instanceof Node && ref.current.contains(event.target);
|
|
60
|
-
};
|
|
61
|
-
var DrawerContext = /*#__PURE__*/React.createContext({});
|
|
62
|
-
var DrawerCloseButton = function DrawerCloseButton(props) {
|
|
63
|
-
var _useContext = (0, _react.useContext)(DrawerContext),
|
|
64
|
-
onClose = _useContext.onClose,
|
|
65
|
-
closeButtonLabel = _useContext.closeButtonLabel;
|
|
66
|
-
if (props.render) {
|
|
67
|
-
var _props$render;
|
|
68
|
-
return (_props$render = props.render({
|
|
69
|
-
onClose: onClose,
|
|
70
|
-
closeButtonLabel: closeButtonLabel
|
|
71
|
-
})) !== null && _props$render !== void 0 ? _props$render : null;
|
|
72
|
-
}
|
|
73
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread(_objectSpread({
|
|
74
|
-
appearance: "pill",
|
|
75
|
-
"aria-label": closeButtonLabel,
|
|
76
|
-
onClick: onClose
|
|
77
|
-
}, props), {}, {
|
|
78
|
-
children: props.children || /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
79
|
-
"aria-hidden": true,
|
|
80
|
-
name: "x-outline"
|
|
81
|
-
})
|
|
82
|
-
}));
|
|
83
|
-
};
|
|
84
|
-
var DrawerHeader = function DrawerHeader(_ref2) {
|
|
85
|
-
var _ref2$title = _ref2.title,
|
|
86
|
-
title = _ref2$title === void 0 ? "" : _ref2$title,
|
|
87
|
-
_ref2$id = _ref2.id,
|
|
88
|
-
id = _ref2$id === void 0 ? undefined : _ref2$id,
|
|
89
|
-
children = _ref2.children,
|
|
90
|
-
render = _ref2.render,
|
|
91
|
-
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
92
|
-
var drawerContext = (0, _react.useContext)(DrawerContext);
|
|
93
|
-
if (render) {
|
|
94
|
-
return render(drawerContext);
|
|
95
|
-
}
|
|
96
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, _objectSpread(_objectSpread({
|
|
97
|
-
display: "flex",
|
|
98
|
-
flex: "0 0 auto",
|
|
99
|
-
justifyContent: "space-between",
|
|
100
|
-
alignItems: "center",
|
|
101
|
-
pt: 400,
|
|
102
|
-
px: 450
|
|
103
|
-
}, rest), {}, {
|
|
104
|
-
children: children || /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
105
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.default, {
|
|
106
|
-
as: "h2",
|
|
107
|
-
fontSize: 400,
|
|
108
|
-
fontWeight: "semibold",
|
|
109
|
-
color: "text.headline",
|
|
110
|
-
id: id,
|
|
111
|
-
children: title
|
|
112
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(DrawerCloseButton, {})]
|
|
113
|
-
})
|
|
114
|
-
}));
|
|
115
|
-
};
|
|
116
|
-
var DrawerContent = function DrawerContent(_ref3) {
|
|
117
|
-
var children = _ref3.children,
|
|
118
|
-
rest = _objectWithoutProperties(_ref3, _excluded2);
|
|
119
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Content, _objectSpread(_objectSpread({
|
|
120
|
-
height: "100%",
|
|
121
|
-
p: 450,
|
|
122
|
-
color: "text.body"
|
|
123
|
-
}, rest), {}, {
|
|
124
|
-
children: children
|
|
125
|
-
}));
|
|
126
|
-
};
|
|
127
|
-
var useCloseOnBodyClick = function useCloseOnBodyClick(_ref4) {
|
|
128
|
-
var ref = _ref4.ref,
|
|
129
|
-
disableCloseOnClickOutside = _ref4.disableCloseOnClickOutside,
|
|
130
|
-
onClose = _ref4.onClose,
|
|
131
|
-
closeTargets = _ref4.closeTargets;
|
|
132
|
-
(0, _react.useEffect)(function () {
|
|
133
|
-
var documentBody = document.body;
|
|
134
|
-
if (!documentBody) {
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
var onEsc = function onEsc(event) {
|
|
138
|
-
if (event.key === "Escape") {
|
|
139
|
-
onClose();
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
var bodyClick = function bodyClick(event) {
|
|
143
|
-
if (!doesRefContainEventTarget(ref, event) && !disableCloseOnClickOutside) {
|
|
144
|
-
onClose();
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
documentBody === null || documentBody === void 0 || documentBody.addEventListener("keydown", onEsc, {
|
|
148
|
-
capture: true
|
|
149
|
-
});
|
|
150
|
-
if (closeTargets) {
|
|
151
|
-
closeTargets.forEach(function (targetElement) {
|
|
152
|
-
return targetElement === null || targetElement === void 0 ? void 0 : targetElement.addEventListener("click", bodyClick, {
|
|
153
|
-
capture: true
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
} else {
|
|
157
|
-
var _documentBody$firstEl;
|
|
158
|
-
(_documentBody$firstEl = documentBody.firstElementChild) === null || _documentBody$firstEl === void 0 || _documentBody$firstEl.addEventListener("click", bodyClick, {
|
|
159
|
-
capture: true
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
return function () {
|
|
163
|
-
documentBody === null || documentBody === void 0 || documentBody.removeEventListener("keydown", onEsc, {
|
|
164
|
-
capture: true
|
|
165
|
-
});
|
|
166
|
-
if (closeTargets) {
|
|
167
|
-
closeTargets.forEach(function (targetElement) {
|
|
168
|
-
return targetElement === null || targetElement === void 0 ? void 0 : targetElement.removeEventListener("click", bodyClick, {
|
|
169
|
-
capture: true
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
} else {
|
|
173
|
-
var _documentBody$firstEl2;
|
|
174
|
-
(_documentBody$firstEl2 = documentBody.firstElementChild) === null || _documentBody$firstEl2 === void 0 || _documentBody$firstEl2.removeEventListener("click", bodyClick, {
|
|
175
|
-
capture: true
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
}, [onClose, disableCloseOnClickOutside, closeTargets, ref]);
|
|
180
|
-
};
|
|
181
|
-
var Drawer = function Drawer(_ref5) {
|
|
182
|
-
var id = _ref5.id,
|
|
183
|
-
offset = _ref5.offset,
|
|
184
|
-
direction = _ref5.direction,
|
|
185
|
-
children = _ref5.children,
|
|
186
|
-
disableCloseOnClickOutside = _ref5.disableCloseOnClickOutside,
|
|
187
|
-
onClose = _ref5.onClose,
|
|
188
|
-
zIndex = _ref5.zIndex,
|
|
189
|
-
closeTargets = _ref5.closeTargets,
|
|
190
|
-
width = _ref5.width,
|
|
191
|
-
focusLockExemptCheck = _ref5.focusLockExemptCheck,
|
|
192
|
-
isOpen = _ref5.isOpen,
|
|
193
|
-
rest = _objectWithoutProperties(_ref5, _excluded3);
|
|
194
|
-
var ref = (0, _react.useRef)(null);
|
|
195
|
-
useCloseOnBodyClick({
|
|
196
|
-
ref: ref,
|
|
197
|
-
disableCloseOnClickOutside: disableCloseOnClickOutside,
|
|
198
|
-
onClose: onClose,
|
|
199
|
-
closeTargets: closeTargets
|
|
200
|
-
});
|
|
201
|
-
var transition = useSlideTransition({
|
|
202
|
-
isVisible: isOpen,
|
|
203
|
-
width: width,
|
|
204
|
-
direction: direction
|
|
205
|
-
});
|
|
206
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFocusLock.default, {
|
|
207
|
-
autoFocus: true,
|
|
208
|
-
returnFocus: true,
|
|
209
|
-
whiteList: focusLockExemptCheck ? function (e) {
|
|
210
|
-
return !focusLockExemptCheck(e);
|
|
211
|
-
} : undefined,
|
|
212
|
-
children: transition(function (style, isVisible) {
|
|
213
|
-
return isVisible ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedDrawer, _objectSpread(_objectSpread({
|
|
214
|
-
ref: ref,
|
|
215
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
216
|
-
zIndex: zIndex
|
|
217
|
-
}),
|
|
218
|
-
width: width,
|
|
219
|
-
offset: offset,
|
|
220
|
-
direction: direction,
|
|
221
|
-
"data-qa-drawer": id,
|
|
222
|
-
role: "dialog"
|
|
223
|
-
}, rest), {}, {
|
|
224
|
-
children: children
|
|
225
|
-
})) : null;
|
|
226
|
-
})
|
|
227
|
-
}, id);
|
|
228
|
-
};
|
|
229
|
-
var DrawerContainer = function DrawerContainer(_ref6) {
|
|
230
|
-
var children = _ref6.children,
|
|
231
|
-
closeButtonLabel = _ref6.closeButtonLabel,
|
|
232
|
-
_ref6$direction = _ref6.direction,
|
|
233
|
-
direction = _ref6$direction === void 0 ? "right" : _ref6$direction,
|
|
234
|
-
_ref6$disableCloseOnC = _ref6.disableCloseOnClickOutside,
|
|
235
|
-
disableCloseOnClickOutside = _ref6$disableCloseOnC === void 0 ? false : _ref6$disableCloseOnC,
|
|
236
|
-
id = _ref6.id,
|
|
237
|
-
isOpen = _ref6.isOpen,
|
|
238
|
-
_ref6$offset = _ref6.offset,
|
|
239
|
-
offset = _ref6$offset === void 0 ? 0 : _ref6$offset,
|
|
240
|
-
onClose = _ref6.onClose,
|
|
241
|
-
_ref6$zIndex = _ref6.zIndex,
|
|
242
|
-
zIndex = _ref6$zIndex === void 0 ? 7 : _ref6$zIndex,
|
|
243
|
-
_ref6$closeTargets = _ref6.closeTargets,
|
|
244
|
-
closeTargets = _ref6$closeTargets === void 0 ? [] : _ref6$closeTargets,
|
|
245
|
-
_ref6$width = _ref6.width,
|
|
246
|
-
width = _ref6$width === void 0 ? 600 : _ref6$width,
|
|
247
|
-
rest = _objectWithoutProperties(_ref6, _excluded4);
|
|
248
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Portal.default, {
|
|
249
|
-
id: id,
|
|
250
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(DrawerContext.Provider, {
|
|
251
|
-
value: {
|
|
252
|
-
onClose: onClose,
|
|
253
|
-
closeButtonLabel: closeButtonLabel
|
|
254
|
-
},
|
|
255
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Drawer, _objectSpread(_objectSpread({
|
|
256
|
-
isOpen: isOpen,
|
|
257
|
-
id: id,
|
|
258
|
-
offset: offset,
|
|
259
|
-
direction: direction,
|
|
260
|
-
disableCloseOnClickOutside: disableCloseOnClickOutside,
|
|
261
|
-
onClose: onClose,
|
|
262
|
-
zIndex: zIndex,
|
|
263
|
-
closeTargets: closeTargets,
|
|
264
|
-
width: width,
|
|
265
|
-
"data-qa-drawer": id || "",
|
|
266
|
-
"data-qa-drawer-isopen": isOpen
|
|
267
|
-
}, rest), {}, {
|
|
268
|
-
children: children
|
|
269
|
-
}))
|
|
270
|
-
})
|
|
271
|
-
});
|
|
272
|
-
};
|
|
273
|
-
DrawerHeader.displayName = "Drawer.Header";
|
|
274
|
-
DrawerContent.displayName = "Drawer.Content";
|
|
275
|
-
DrawerCloseButton.displayName = "Drawer.CloseButton";
|
|
276
|
-
DrawerContainer.Header = DrawerHeader;
|
|
277
|
-
DrawerContainer.Content = DrawerContent;
|
|
278
|
-
DrawerContainer.CloseButton = DrawerCloseButton;
|
|
279
|
-
var _default = exports.default = DrawerContainer;
|
package/commonjs/Drawer/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
Drawer: true
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "Drawer", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function get() {
|
|
12
|
-
return _Drawer.default;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
exports.default = void 0;
|
|
16
|
-
var _Drawer = _interopRequireDefault(require("./Drawer"));
|
|
17
|
-
var _DrawerTypes = require("./DrawerTypes");
|
|
18
|
-
Object.keys(_DrawerTypes).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
21
|
-
if (key in exports && exports[key] === _DrawerTypes[key]) return;
|
|
22
|
-
Object.defineProperty(exports, key, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function get() {
|
|
25
|
-
return _DrawerTypes[key];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
|
-
var _default = exports.default = _Drawer.default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.Content = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _seedsReactSystemProps = require("@sproutsocial/seeds-react-system-props");
|
|
10
|
-
var _Box = _interopRequireDefault(require("../Box"));
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
var Content = exports.Content = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
15
|
-
displayName: "styles__Content",
|
|
16
|
-
componentId: "sc-1nfgsze-0"
|
|
17
|
-
})(["overflow-y:auto;"]);
|
|
18
|
-
var Container = _styledComponents.default.div.withConfig({
|
|
19
|
-
displayName: "styles__Container",
|
|
20
|
-
componentId: "sc-1nfgsze-1"
|
|
21
|
-
})(["display:flex;flex-direction:column;position:fixed;top:0;height:100%;width:", "px;background-color:", ";box-shadow:", ";filter:blur(0);", " ", ""], function (props) {
|
|
22
|
-
return props.width;
|
|
23
|
-
}, function (props) {
|
|
24
|
-
return props.theme.colors.container.background.base;
|
|
25
|
-
}, function (props) {
|
|
26
|
-
return props.theme.shadows.high;
|
|
27
|
-
}, function (props) {
|
|
28
|
-
return (0, _styledComponents.css)(["", ":", "px;"], props.direction, props.offset);
|
|
29
|
-
}, _seedsReactSystemProps.COMMON);
|
|
30
|
-
var _default = exports.default = Container;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.formatDuration = exports.default = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _lruMemoize = _interopRequireDefault(require("lru-memoize"));
|
|
9
|
-
var _constants = require("../utils/constants");
|
|
10
|
-
var _VisuallyHidden = require("../VisuallyHidden");
|
|
11
|
-
var _constants2 = require("./constants");
|
|
12
|
-
var _styles = require("./styles");
|
|
13
|
-
var _utils = require("./utils");
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
19
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
23
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
-
var _createDurationFormatter = function _createDurationFormatter(locale, unitDisplay, displayUnits) {
|
|
25
|
-
var timeUnitFormatter = function timeUnitFormatter(locale, unit, unitDisplay) {
|
|
26
|
-
return Intl.NumberFormat(locale, {
|
|
27
|
-
style: "unit",
|
|
28
|
-
unit: unit,
|
|
29
|
-
unitDisplay: unitDisplay
|
|
30
|
-
}).format;
|
|
31
|
-
};
|
|
32
|
-
var formatterByUnit = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _constants2.UNITS.days, timeUnitFormatter(locale, "day", unitDisplay)), _constants2.UNITS.hours, timeUnitFormatter(locale, "hour", unitDisplay)), _constants2.UNITS.minutes, timeUnitFormatter(locale, "minute", unitDisplay)), _constants2.UNITS.seconds, timeUnitFormatter(locale, "second", unitDisplay)), _constants2.UNITS.milliseconds, timeUnitFormatter(locale, "millisecond", unitDisplay));
|
|
33
|
-
var formatList = new Intl.ListFormat(locale, {
|
|
34
|
-
style: "narrow",
|
|
35
|
-
type: "unit"
|
|
36
|
-
});
|
|
37
|
-
return function (value) {
|
|
38
|
-
var lowestUnit = (0, _utils.getLowestUnit)(displayUnits);
|
|
39
|
-
|
|
40
|
-
// if the value is zero or negative, we just want to return 0 for the lowest unit (ex "0 minutes")
|
|
41
|
-
if (value <= 0) {
|
|
42
|
-
return formatterByUnit[lowestUnit](0);
|
|
43
|
-
}
|
|
44
|
-
var millisecondsByUnit = (0, _utils.splitMillisecondsIntoUnits)(value, displayUnits);
|
|
45
|
-
var list = [];
|
|
46
|
-
_constants2.ORDERED_UNITS.forEach(function (unit) {
|
|
47
|
-
if (unit in millisecondsByUnit) {
|
|
48
|
-
var unitValue = millisecondsByUnit[unit];
|
|
49
|
-
|
|
50
|
-
// we want to add to the list if one of two conditions are met:
|
|
51
|
-
// 1) the unit has a value greater than 0 OR
|
|
52
|
-
// 2) the unit has value 0 AND the unit is the lowest unit AND the list is already empty
|
|
53
|
-
if (unitValue !== 0 || unitValue === 0 && unit === lowestUnit && list.length === 0) {
|
|
54
|
-
list.push(formatterByUnit[unit](millisecondsByUnit[unit]));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
return formatList.format(list);
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
// Memoize to reduce the energy of creating new instances of Intl.NumberFormat
|
|
63
|
-
var memoizer = (0, _lruMemoize.default)(_constants2.MEMO_CACHE_SIZE, _constants2.COMPARE_OBJECTS);
|
|
64
|
-
var createDurationFormatter = memoizer(_createDurationFormatter);
|
|
65
|
-
var getDuration = function getDuration(_ref) {
|
|
66
|
-
var returnType = _ref.returnType,
|
|
67
|
-
props = _ref.props;
|
|
68
|
-
var _props$display = props.display,
|
|
69
|
-
display = _props$display === void 0 ? _constants2.DEFAULT_DISPLAY : _props$display,
|
|
70
|
-
_props$displayUnits = props.displayUnits,
|
|
71
|
-
displayUnits = _props$displayUnits === void 0 ? _constants2.DEFAULT_DISPLAY_UNITS : _props$displayUnits,
|
|
72
|
-
invalidMillisecondsLabel = props.invalidMillisecondsLabel,
|
|
73
|
-
_props$locale = props.locale,
|
|
74
|
-
locale = _props$locale === void 0 ? _constants2.DEFAULT_LOCALE : _props$locale,
|
|
75
|
-
_props$milliseconds = props.milliseconds,
|
|
76
|
-
milliseconds = _props$milliseconds === void 0 ? _constants2.DEFAULT_MILLISECONDS : _props$milliseconds,
|
|
77
|
-
qa = props.qa;
|
|
78
|
-
var isReturnTypeString = returnType === "string";
|
|
79
|
-
if (!(0, _utils.isValidNumber)(milliseconds)) {
|
|
80
|
-
return isReturnTypeString ? _constants.EM_DASH : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
81
|
-
children: [invalidMillisecondsLabel ?
|
|
82
|
-
/*#__PURE__*/
|
|
83
|
-
// Give screen readers something useful to read off + hide the em dash
|
|
84
|
-
(0, _jsxRuntime.jsx)(_VisuallyHidden.VisuallyHidden, {
|
|
85
|
-
children: invalidMillisecondsLabel
|
|
86
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, _objectSpread(_objectSpread({
|
|
87
|
-
"aria-hidden": true
|
|
88
|
-
}, qa), {}, {
|
|
89
|
-
children: _constants.EM_DASH
|
|
90
|
-
}))]
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
var validatedDisplayUnits = Object.keys(displayUnits).length === 0 ? _constants2.DEFAULT_DISPLAY_UNITS : displayUnits;
|
|
94
|
-
var fullText = createDurationFormatter(locale, display, validatedDisplayUnits)(milliseconds);
|
|
95
|
-
return isReturnTypeString ? fullText : /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, _objectSpread(_objectSpread({}, qa), {}, {
|
|
96
|
-
children: fullText
|
|
97
|
-
}));
|
|
98
|
-
};
|
|
99
|
-
var formatDuration = exports.formatDuration = function formatDuration(props) {
|
|
100
|
-
return getDuration({
|
|
101
|
-
returnType: "string",
|
|
102
|
-
props: props
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
var Duration = function Duration(props) {
|
|
106
|
-
return getDuration({
|
|
107
|
-
returnType: "component",
|
|
108
|
-
props: props
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
var _default = exports.default = Duration;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.UNITS = exports.ORDERED_UNITS = exports.MILLISECONDS_IN = exports.MEMO_CACHE_SIZE = exports.DEFAULT_MILLISECONDS = exports.DEFAULT_LOCALE = exports.DEFAULT_DISPLAY_UNITS = exports.DEFAULT_DISPLAY = exports.COMPARE_OBJECTS = void 0;
|
|
7
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
var COMPARE_OBJECTS = exports.COMPARE_OBJECTS = true;
|
|
12
|
-
var MEMO_CACHE_SIZE = exports.MEMO_CACHE_SIZE = 10;
|
|
13
|
-
var UNITS = exports.UNITS = {
|
|
14
|
-
days: "days",
|
|
15
|
-
hours: "hours",
|
|
16
|
-
minutes: "minutes",
|
|
17
|
-
seconds: "seconds",
|
|
18
|
-
milliseconds: "milliseconds"
|
|
19
|
-
};
|
|
20
|
-
var MILLISECONDS_IN = exports.MILLISECONDS_IN = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, UNITS.days, 1 * 1000 * 60 * 60 * 24), UNITS.hours, 1 * 1000 * 60 * 60), UNITS.minutes, 1 * 1000 * 60), UNITS.seconds, 1 * 1000), UNITS.milliseconds, 1);
|
|
21
|
-
var ORDERED_UNITS = exports.ORDERED_UNITS = [UNITS.days, UNITS.hours, UNITS.minutes, UNITS.seconds, UNITS.milliseconds];
|
|
22
|
-
|
|
23
|
-
// Duration props defaults
|
|
24
|
-
var DEFAULT_DISPLAY = exports.DEFAULT_DISPLAY = "narrow";
|
|
25
|
-
var DEFAULT_DISPLAY_UNITS = exports.DEFAULT_DISPLAY_UNITS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, UNITS.days, true), UNITS.hours, true), UNITS.minutes, true), UNITS.seconds, true), UNITS.milliseconds, false);
|
|
26
|
-
var DEFAULT_LOCALE = exports.DEFAULT_LOCALE = "en-US";
|
|
27
|
-
var DEFAULT_MILLISECONDS = exports.DEFAULT_MILLISECONDS = null;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
var _exportNames = {
|
|
8
|
-
Duration: true,
|
|
9
|
-
formatDuration: true,
|
|
10
|
-
getDurationMaxDisplayUnits: true
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "Duration", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _Duration.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
exports.default = void 0;
|
|
19
|
-
Object.defineProperty(exports, "formatDuration", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _Duration.formatDuration;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "getDurationMaxDisplayUnits", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _utils.getDurationMaxDisplayUnits;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
var _Duration = _interopRequireWildcard(require("./Duration"));
|
|
32
|
-
var _utils = require("./utils");
|
|
33
|
-
var _DurationTypes = require("./DurationTypes");
|
|
34
|
-
Object.keys(_DurationTypes).forEach(function (key) {
|
|
35
|
-
if (key === "default" || key === "__esModule") return;
|
|
36
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
37
|
-
if (key in exports && exports[key] === _DurationTypes[key]) return;
|
|
38
|
-
Object.defineProperty(exports, key, {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function get() {
|
|
41
|
-
return _DurationTypes[key];
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
46
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
47
|
-
var _default = exports.default = _Duration.default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Container = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _seedsReactText = _interopRequireDefault(require("@sproutsocial/seeds-react-text"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var Container = exports.Container = (0, _styledComponents.default)(_seedsReactText.default).withConfig({
|
|
11
|
-
displayName: "styles__Container",
|
|
12
|
-
componentId: "sc-6o8ar7-0"
|
|
13
|
-
})(["font-variant-numeric:tabular-nums;"]);
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.splitMillisecondsIntoUnits = exports.isValidNumber = exports.getLowestUnit = exports.getDurationMaxDisplayUnits = void 0;
|
|
7
|
-
var _constants = require("./constants");
|
|
8
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
9
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
10
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
13
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
14
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
|
-
var getLowestUnit = exports.getLowestUnit = function getLowestUnit(displayUnits) {
|
|
16
|
-
return _toConsumableArray(_constants.ORDERED_UNITS).reverse().find(function (unit) {
|
|
17
|
-
return displayUnits[unit];
|
|
18
|
-
}) || _constants.UNITS.milliseconds;
|
|
19
|
-
};
|
|
20
|
-
var splitMillisecondsIntoUnits = exports.splitMillisecondsIntoUnits = function splitMillisecondsIntoUnits(milliseconds, displayUnits) {
|
|
21
|
-
var lowestUnit = getLowestUnit(displayUnits);
|
|
22
|
-
var remainder = milliseconds % _constants.MILLISECONDS_IN[lowestUnit];
|
|
23
|
-
if (2 * remainder >= _constants.MILLISECONDS_IN[lowestUnit]) {
|
|
24
|
-
// if the remainder is large, add enough seconds to increse the lowest unit
|
|
25
|
-
milliseconds += _constants.MILLISECONDS_IN[lowestUnit] - remainder;
|
|
26
|
-
}
|
|
27
|
-
var units = {};
|
|
28
|
-
_constants.ORDERED_UNITS.forEach(function (unit) {
|
|
29
|
-
if (displayUnits[unit]) {
|
|
30
|
-
units[unit] = Math.floor(milliseconds / _constants.MILLISECONDS_IN[unit]);
|
|
31
|
-
milliseconds -= units[unit] * _constants.MILLISECONDS_IN[unit];
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
return units;
|
|
35
|
-
};
|
|
36
|
-
var isValidNumber = exports.isValidNumber = function isValidNumber(value) {
|
|
37
|
-
return typeof value === "number" && isFinite(value);
|
|
38
|
-
};
|
|
39
|
-
var getDurationMaxDisplayUnits = exports.getDurationMaxDisplayUnits = function getDurationMaxDisplayUnits(_ref) {
|
|
40
|
-
var milliseconds = _ref.milliseconds,
|
|
41
|
-
_ref$maxDisplayUnits = _ref.maxDisplayUnits,
|
|
42
|
-
maxDisplayUnits = _ref$maxDisplayUnits === void 0 ? _constants.ORDERED_UNITS.length : _ref$maxDisplayUnits;
|
|
43
|
-
var displayUnits = {};
|
|
44
|
-
if (!isValidNumber(milliseconds)) {
|
|
45
|
-
return displayUnits;
|
|
46
|
-
}
|
|
47
|
-
var _iterator = _createForOfIteratorHelper(_constants.ORDERED_UNITS),
|
|
48
|
-
_step;
|
|
49
|
-
try {
|
|
50
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
51
|
-
var unit = _step.value;
|
|
52
|
-
if (Object.keys(displayUnits).length >= maxDisplayUnits) {
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// @ts-expect-error - stupid typescript isn't smart enough to check the isValidNumber check above ¯\_(ツ)_/¯
|
|
57
|
-
var millisecondsByUnit = splitMillisecondsIntoUnits(milliseconds, {
|
|
58
|
-
days: true,
|
|
59
|
-
hours: true,
|
|
60
|
-
minutes: true,
|
|
61
|
-
seconds: true,
|
|
62
|
-
milliseconds: true
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
// @ts-expect-error - stupid typescript isn't smart enough to check the isValidNumber check above ¯\_(ツ)_/¯
|
|
66
|
-
if (milliseconds > _constants.MILLISECONDS_IN[unit] && millisecondsByUnit[unit] > 0) {
|
|
67
|
-
displayUnits[unit] = true;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
} catch (err) {
|
|
71
|
-
_iterator.e(err);
|
|
72
|
-
} finally {
|
|
73
|
-
_iterator.f();
|
|
74
|
-
}
|
|
75
|
-
return displayUnits;
|
|
76
|
-
};
|