@sproutsocial/racine 25.11.0 → 26.1.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 +41 -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
package/commonjs/Image/Image.js
DELETED
|
@@ -1,128 +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 _styles = _interopRequireDefault(require("./styles"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
var _excluded = ["alt", "title", "onClick", "onError", "onLoad", "src", "qa"];
|
|
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
|
-
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); }
|
|
15
|
-
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; }
|
|
16
|
-
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; }
|
|
17
|
-
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; }
|
|
18
|
-
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; }
|
|
19
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
20
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
21
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
22
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
23
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
24
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
26
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
27
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
-
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; }
|
|
30
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
31
|
-
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); }
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
33
|
-
var noop = function noop() {};
|
|
34
|
-
var Image = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
35
|
-
_inherits(Image, _React$Component);
|
|
36
|
-
function Image() {
|
|
37
|
-
var _this;
|
|
38
|
-
_classCallCheck(this, Image);
|
|
39
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
40
|
-
args[_key] = arguments[_key];
|
|
41
|
-
}
|
|
42
|
-
_this = _callSuper(this, Image, [].concat(args));
|
|
43
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
44
|
-
didError: false,
|
|
45
|
-
didLoad: false,
|
|
46
|
-
imageUrl: _this.props.src
|
|
47
|
-
});
|
|
48
|
-
_defineProperty(_assertThisInitialized(_this), "onError", function (e) {
|
|
49
|
-
if (!_this.state.didError && _this.props.defaultImage) {
|
|
50
|
-
_this.setState({
|
|
51
|
-
didError: true,
|
|
52
|
-
imageUrl: _this.props.defaultImage
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
_this.props.onError(e);
|
|
56
|
-
});
|
|
57
|
-
_defineProperty(_assertThisInitialized(_this), "onLoad", function () {
|
|
58
|
-
_this.setState({
|
|
59
|
-
didLoad: true
|
|
60
|
-
});
|
|
61
|
-
_this.props.onLoad();
|
|
62
|
-
});
|
|
63
|
-
_defineProperty(_assertThisInitialized(_this), "onClick", function () {
|
|
64
|
-
_this.props.onClick();
|
|
65
|
-
});
|
|
66
|
-
return _this;
|
|
67
|
-
}
|
|
68
|
-
_createClass(Image, [{
|
|
69
|
-
key: "componentDidMount",
|
|
70
|
-
value: function componentDidMount() {
|
|
71
|
-
// eslint-disable-next-line react/no-did-mount-set-state
|
|
72
|
-
if (this.imageRef) {
|
|
73
|
-
this.setState({
|
|
74
|
-
didLoad: this.imageRef.complete
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}, {
|
|
79
|
-
key: "componentDidUpdate",
|
|
80
|
-
value: function componentDidUpdate(prevProps) {
|
|
81
|
-
if (this.props.src !== prevProps.src) {
|
|
82
|
-
this.setState({
|
|
83
|
-
didError: false,
|
|
84
|
-
didLoad: false,
|
|
85
|
-
imageUrl: this.props.src
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}, {
|
|
90
|
-
key: "render",
|
|
91
|
-
value: function render() {
|
|
92
|
-
var _this2 = this;
|
|
93
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
94
|
-
var _this$props = this.props,
|
|
95
|
-
alt = _this$props.alt,
|
|
96
|
-
title = _this$props.title,
|
|
97
|
-
onClick = _this$props.onClick,
|
|
98
|
-
onError = _this$props.onError,
|
|
99
|
-
onLoad = _this$props.onLoad,
|
|
100
|
-
src = _this$props.src,
|
|
101
|
-
qa = _this$props.qa,
|
|
102
|
-
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
103
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.default, _objectSpread(_objectSpread({
|
|
104
|
-
isLoading: !this.state.didLoad,
|
|
105
|
-
ref: function ref(img) {
|
|
106
|
-
return _this2.imageRef = img;
|
|
107
|
-
},
|
|
108
|
-
onClick: this.onClick,
|
|
109
|
-
src: this.state.imageUrl,
|
|
110
|
-
onError: function onError(e) {
|
|
111
|
-
return _this2.onError(e);
|
|
112
|
-
},
|
|
113
|
-
onLoad: this.onLoad,
|
|
114
|
-
alt: alt,
|
|
115
|
-
title: title,
|
|
116
|
-
"data-qa-image": title ? title : alt ? alt : "",
|
|
117
|
-
"data-qa-image-src": src || ""
|
|
118
|
-
}, qa), rest));
|
|
119
|
-
}
|
|
120
|
-
}]);
|
|
121
|
-
return Image;
|
|
122
|
-
}(React.Component);
|
|
123
|
-
_defineProperty(Image, "defaultProps", {
|
|
124
|
-
title: "",
|
|
125
|
-
onError: noop,
|
|
126
|
-
onClick: noop,
|
|
127
|
-
onLoad: noop
|
|
128
|
-
});
|
package/commonjs/Image/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
Image: true
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "Image", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function get() {
|
|
12
|
-
return _Image.default;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
exports.default = void 0;
|
|
16
|
-
var _Image = _interopRequireDefault(require("./Image"));
|
|
17
|
-
var _ImageTypes = require("./ImageTypes");
|
|
18
|
-
Object.keys(_ImageTypes).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] === _ImageTypes[key]) return;
|
|
22
|
-
Object.defineProperty(exports, key, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function get() {
|
|
25
|
-
return _ImageTypes[key];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
|
-
var _default = exports.default = _Image.default;
|
package/commonjs/Image/styles.js
DELETED
|
@@ -1,20 +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 = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _seedsReactSystemProps = require("@sproutsocial/seeds-react-system-props");
|
|
10
|
-
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); }
|
|
11
|
-
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; }
|
|
12
|
-
var ImageContainer = _styledComponents.default.img.attrs({
|
|
13
|
-
className: "Image"
|
|
14
|
-
}).withConfig({
|
|
15
|
-
displayName: "styles__ImageContainer",
|
|
16
|
-
componentId: "sc-dngsi7-0"
|
|
17
|
-
})(["display:block;", " ", " ", ""], function (props) {
|
|
18
|
-
return props.isLoading && (0, _styledComponents.css)(["visibility:hidden;"]);
|
|
19
|
-
}, _seedsReactSystemProps.COMMON, _seedsReactSystemProps.LAYOUT);
|
|
20
|
-
var _default = exports.default = ImageContainer;
|
|
@@ -1,65 +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 _Icon = _interopRequireDefault(require("../Icon"));
|
|
9
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
var _excluded = ["tooltip"];
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
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); }
|
|
14
|
-
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; }
|
|
15
|
-
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); }
|
|
16
|
-
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; }
|
|
17
|
-
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; }
|
|
18
|
-
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; }
|
|
19
|
-
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; }
|
|
20
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
22
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
24
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
25
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
26
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
|
-
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; }
|
|
31
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
32
|
-
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); }
|
|
33
|
-
var Indicator = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
34
|
-
_inherits(Indicator, _React$Component);
|
|
35
|
-
function Indicator() {
|
|
36
|
-
_classCallCheck(this, Indicator);
|
|
37
|
-
return _callSuper(this, Indicator, arguments);
|
|
38
|
-
}
|
|
39
|
-
_createClass(Indicator, [{
|
|
40
|
-
key: "render",
|
|
41
|
-
value: function render() {
|
|
42
|
-
var _this$props = this.props,
|
|
43
|
-
tooltip = _this$props.tooltip,
|
|
44
|
-
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
45
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.default, _objectSpread(_objectSpread({
|
|
46
|
-
"data-tip": tooltip,
|
|
47
|
-
"data-qa-indicator": "",
|
|
48
|
-
"aria-label": tooltip,
|
|
49
|
-
tabIndex: 0
|
|
50
|
-
}, rest), {}, {
|
|
51
|
-
children: [tooltip && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
52
|
-
children: tooltip
|
|
53
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
54
|
-
name: "circle-fill-solid",
|
|
55
|
-
size: "mini",
|
|
56
|
-
"aria-hidden": true
|
|
57
|
-
})]
|
|
58
|
-
}));
|
|
59
|
-
}
|
|
60
|
-
}]);
|
|
61
|
-
return Indicator;
|
|
62
|
-
}(React.Component);
|
|
63
|
-
_defineProperty(Indicator, "defaultProps", {
|
|
64
|
-
tooltip: ""
|
|
65
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
Indicator: true
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "Indicator", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function get() {
|
|
12
|
-
return _Indicator.default;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
exports.default = void 0;
|
|
16
|
-
var _Indicator = _interopRequireDefault(require("./Indicator"));
|
|
17
|
-
var _IndicatorTypes = require("./IndicatorTypes");
|
|
18
|
-
Object.keys(_IndicatorTypes).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] === _IndicatorTypes[key]) return;
|
|
22
|
-
Object.defineProperty(exports, key, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function get() {
|
|
25
|
-
return _IndicatorTypes[key];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
|
-
var _default = exports.default = _Indicator.default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _seedsReactSystemProps = require("@sproutsocial/seeds-react-system-props");
|
|
9
|
-
var _seedsReactMixins = require("@sproutsocial/seeds-react-mixins");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var Container = _styledComponents.default.span.attrs({
|
|
12
|
-
className: "Indicator"
|
|
13
|
-
}).withConfig({
|
|
14
|
-
displayName: "styles__Container",
|
|
15
|
-
componentId: "sc-8xib7y-0"
|
|
16
|
-
})(["position:relative;display:block;width:", ";height:", ";font-size:10px;line-height:0;color:", ";text-align:center;> div{", "}", ""], function (props) {
|
|
17
|
-
return props.theme.space[400];
|
|
18
|
-
}, function (props) {
|
|
19
|
-
return props.theme.space[400];
|
|
20
|
-
}, function (props) {
|
|
21
|
-
var _props$color;
|
|
22
|
-
return (_props$color = props.color) !== null && _props$color !== void 0 ? _props$color : props.theme.colors.icon.info;
|
|
23
|
-
}, _seedsReactMixins.visuallyHidden, _seedsReactSystemProps.COMMON);
|
|
24
|
-
var _default = exports.default = Container;
|
package/commonjs/Input/Input.js
DELETED
|
@@ -1,294 +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 _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
var _useInteractiveColor = require("../utils/useInteractiveColor");
|
|
10
|
-
var _seedsReactUtilities = require("@sproutsocial/seeds-react-utilities");
|
|
11
|
-
var _seedsReactButton = _interopRequireDefault(require("@sproutsocial/seeds-react-button"));
|
|
12
|
-
var _seedsReactIcon = _interopRequireDefault(require("@sproutsocial/seeds-react-icon"));
|
|
13
|
-
var _styles = _interopRequireWildcard(require("./styles"));
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
var _excluded = ["autoComplete", "autoFocus", "disabled", "readOnly", "isInvalid", "hasWarning", "id", "name", "placeholder", "type", "required", "value", "elemBefore", "elemAfter", "maxLength", "ariaLabel", "ariaDescribedby", "clearButtonLabel", "innerRef", "onBlur", "onChange", "onClear", "onFocus", "onKeyDown", "onKeyUp", "onPaste", "inputProps", "qa", "appearance", "size"];
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
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); }
|
|
18
|
-
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; }
|
|
19
|
-
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); }
|
|
20
|
-
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; }
|
|
21
|
-
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; }
|
|
22
|
-
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; }
|
|
23
|
-
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; }
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
28
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
29
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
32
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
34
|
-
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; }
|
|
35
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
36
|
-
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); } // Using Context so that Input's Input.ClearButton-specific props can be passed to Input.ClearButton,
|
|
37
|
-
// regardless of whether it is manually included as elemAfter or automatically included for type="search" Inputs.
|
|
38
|
-
var InputContext = /*#__PURE__*/React.createContext({});
|
|
39
|
-
var StyledButton = (0, _styledComponents.default)(_seedsReactButton.default).withConfig({
|
|
40
|
-
displayName: "Input__StyledButton",
|
|
41
|
-
componentId: "sc-j6ok5s-0"
|
|
42
|
-
})(["&:hover,&:active{color:", ";}"], function (props) {
|
|
43
|
-
return (0, _useInteractiveColor.useInteractiveColor)(props.theme.colors.icon.base);
|
|
44
|
-
});
|
|
45
|
-
var ClearButton = function ClearButton() {
|
|
46
|
-
var _React$useContext = React.useContext(InputContext),
|
|
47
|
-
handleClear = _React$useContext.handleClear,
|
|
48
|
-
clearButtonLabel = _React$useContext.clearButtonLabel,
|
|
49
|
-
hasValue = _React$useContext.hasValue,
|
|
50
|
-
inputSize = _React$useContext.size;
|
|
51
|
-
|
|
52
|
-
// Hide the button when there is no text to clear.
|
|
53
|
-
if (!hasValue) {
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Warn if clearButtonLabel is not included, so that the unlocalized fallback will not be mistaken for a proper label.
|
|
58
|
-
if (!clearButtonLabel) {
|
|
59
|
-
// eslint-disable-next-line no-console
|
|
60
|
-
console.warn("Warning: clearButtonLabel prop is required when using Input.ClearButton. Please pass a localized clearButtonLabel to Input.");
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Reduce Button padding for size small Inputs so that the Button won't go outside the bounds of the Input.
|
|
64
|
-
// This adjustment is handled automatically for default and large Inputs via Button's size. There is no "small" Button.
|
|
65
|
-
var py = inputSize === "small" ? 100 : undefined;
|
|
66
|
-
var px = inputSize === "small" ? 200 : undefined;
|
|
67
|
-
var buttonSize = inputSize === "small" ? "default" : inputSize;
|
|
68
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledButton, {
|
|
69
|
-
onClick: handleClear,
|
|
70
|
-
size: buttonSize,
|
|
71
|
-
py: py,
|
|
72
|
-
px: px,
|
|
73
|
-
title: clearButtonLabel || "Clear",
|
|
74
|
-
ariaLabel: clearButtonLabel || "Clear",
|
|
75
|
-
color: "icon.base",
|
|
76
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_seedsReactIcon.default, {
|
|
77
|
-
name: "circle-x-outline",
|
|
78
|
-
"aria-hidden": true
|
|
79
|
-
})
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
ClearButton.displayName = "Input.ClearButton";
|
|
83
|
-
|
|
84
|
-
// Used for positioning elementAfter. This logic will detect if the element is a ClearButton,
|
|
85
|
-
// regardless of whether it was manually passed as elemAfter or automatically added to a search Input.
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
87
|
-
var isClearButton = function isClearButton(elem) {
|
|
88
|
-
if (elem !== null && elem !== void 0 && elem.type) {
|
|
89
|
-
return elem.type.displayName === "Input.ClearButton";
|
|
90
|
-
}
|
|
91
|
-
return false;
|
|
92
|
-
};
|
|
93
|
-
var Input = /*#__PURE__*/function (_React$Component) {
|
|
94
|
-
_inherits(Input, _React$Component);
|
|
95
|
-
function Input(props) {
|
|
96
|
-
var _this;
|
|
97
|
-
_classCallCheck(this, Input);
|
|
98
|
-
_this = _callSuper(this, Input, [props]);
|
|
99
|
-
// Define our own ref for use in handleClear.
|
|
100
|
-
// We use mergeRefs to pass both this.inputRef and this.props.innerRef to input.
|
|
101
|
-
_defineProperty(_assertThisInitialized(_this), "inputRef", /*#__PURE__*/React.createRef());
|
|
102
|
-
_defineProperty(_assertThisInitialized(_this), "handleBlur", function (e) {
|
|
103
|
-
var _this$props$onBlur, _this$props;
|
|
104
|
-
return (_this$props$onBlur = (_this$props = _this.props).onBlur) === null || _this$props$onBlur === void 0 ? void 0 : _this$props$onBlur.call(_this$props, e);
|
|
105
|
-
});
|
|
106
|
-
_defineProperty(_assertThisInitialized(_this), "handleClear", function (e) {
|
|
107
|
-
var input = _this.inputRef.current;
|
|
108
|
-
if (input) {
|
|
109
|
-
var _Object$getOwnPropert, _this$props$onClear, _this$props2;
|
|
110
|
-
// Clear the value via the input prototype, then dispatch an input event in order to trigger handleChange
|
|
111
|
-
var nativeInputValueSetter = (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.set;
|
|
112
|
-
nativeInputValueSetter === null || nativeInputValueSetter === void 0 || nativeInputValueSetter.call(input, "");
|
|
113
|
-
var inputEvent = new Event("input", {
|
|
114
|
-
bubbles: true
|
|
115
|
-
});
|
|
116
|
-
input.dispatchEvent(inputEvent);
|
|
117
|
-
|
|
118
|
-
// call any onClear callback
|
|
119
|
-
(_this$props$onClear = (_this$props2 = _this.props).onClear) === null || _this$props$onClear === void 0 || _this$props$onClear.call(_this$props2, e);
|
|
120
|
-
|
|
121
|
-
// wait for next cycle to update focus
|
|
122
|
-
setTimeout(function () {
|
|
123
|
-
input.focus();
|
|
124
|
-
}, 0);
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
_defineProperty(_assertThisInitialized(_this), "handleChange", function (e) {
|
|
128
|
-
var _this$props$onChange, _this$props3;
|
|
129
|
-
(_this$props$onChange = (_this$props3 = _this.props).onChange) === null || _this$props$onChange === void 0 || _this$props$onChange.call(_this$props3, e, e.currentTarget.value);
|
|
130
|
-
// needed for uncontrolled inputs
|
|
131
|
-
_this.updateState(e.currentTarget.value);
|
|
132
|
-
});
|
|
133
|
-
_defineProperty(_assertThisInitialized(_this), "handleFocus", function (e) {
|
|
134
|
-
var _this$props$onFocus, _this$props4;
|
|
135
|
-
return (_this$props$onFocus = (_this$props4 = _this.props).onFocus) === null || _this$props$onFocus === void 0 ? void 0 : _this$props$onFocus.call(_this$props4, e);
|
|
136
|
-
});
|
|
137
|
-
_defineProperty(_assertThisInitialized(_this), "handleKeyDown", function (e) {
|
|
138
|
-
var _this$props$onKeyDown, _this$props5;
|
|
139
|
-
return (_this$props$onKeyDown = (_this$props5 = _this.props).onKeyDown) === null || _this$props$onKeyDown === void 0 ? void 0 : _this$props$onKeyDown.call(_this$props5, e, e.currentTarget.value);
|
|
140
|
-
});
|
|
141
|
-
_defineProperty(_assertThisInitialized(_this), "handleKeyUp", function (e) {
|
|
142
|
-
var _this$props$onKeyUp, _this$props6;
|
|
143
|
-
return (_this$props$onKeyUp = (_this$props6 = _this.props).onKeyUp) === null || _this$props$onKeyUp === void 0 ? void 0 : _this$props$onKeyUp.call(_this$props6, e, e.currentTarget.value);
|
|
144
|
-
});
|
|
145
|
-
_defineProperty(_assertThisInitialized(_this), "handlePaste", function (e) {
|
|
146
|
-
var _this$props$onPaste, _this$props7;
|
|
147
|
-
return (_this$props$onPaste = (_this$props7 = _this.props).onPaste) === null || _this$props$onPaste === void 0 ? void 0 : _this$props$onPaste.call(_this$props7, e, e.currentTarget.value);
|
|
148
|
-
});
|
|
149
|
-
_defineProperty(_assertThisInitialized(_this), "updateState", function (inputValue) {
|
|
150
|
-
var hasValue = inputValue !== "";
|
|
151
|
-
var previousHasValue = _this.state.hasValue;
|
|
152
|
-
|
|
153
|
-
// Only update state if the value of `hasValue` has changed to avoid unnecessary renders.
|
|
154
|
-
if (hasValue !== previousHasValue) {
|
|
155
|
-
_this.setState({
|
|
156
|
-
hasValue: hasValue
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
_this.state = {
|
|
161
|
-
// Tracking hasValue in state allows us to hide ClearButton when there is no value to clear
|
|
162
|
-
// for both controlled and uncontrolled inputs.
|
|
163
|
-
hasValue: !!props.value
|
|
164
|
-
};
|
|
165
|
-
return _this;
|
|
166
|
-
}
|
|
167
|
-
_createClass(Input, [{
|
|
168
|
-
key: "componentDidUpdate",
|
|
169
|
-
value: function componentDidUpdate(_ref) {
|
|
170
|
-
var prevValue = _ref.value;
|
|
171
|
-
// Update hasValue state whenever props value changes
|
|
172
|
-
var value = this.props.value;
|
|
173
|
-
if (value !== prevValue) {
|
|
174
|
-
this.updateState(value || "");
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}, {
|
|
178
|
-
key: "render",
|
|
179
|
-
value: function render() {
|
|
180
|
-
var _this$props8 = this.props,
|
|
181
|
-
autoComplete = _this$props8.autoComplete,
|
|
182
|
-
autoFocus = _this$props8.autoFocus,
|
|
183
|
-
disabled = _this$props8.disabled,
|
|
184
|
-
readOnly = _this$props8.readOnly,
|
|
185
|
-
isInvalid = _this$props8.isInvalid,
|
|
186
|
-
hasWarning = _this$props8.hasWarning,
|
|
187
|
-
id = _this$props8.id,
|
|
188
|
-
name = _this$props8.name,
|
|
189
|
-
placeholder = _this$props8.placeholder,
|
|
190
|
-
type = _this$props8.type,
|
|
191
|
-
required = _this$props8.required,
|
|
192
|
-
value = _this$props8.value,
|
|
193
|
-
elemBefore = _this$props8.elemBefore,
|
|
194
|
-
elemAfter = _this$props8.elemAfter,
|
|
195
|
-
maxLength = _this$props8.maxLength,
|
|
196
|
-
ariaLabel = _this$props8.ariaLabel,
|
|
197
|
-
ariaDescribedby = _this$props8.ariaDescribedby,
|
|
198
|
-
clearButtonLabel = _this$props8.clearButtonLabel,
|
|
199
|
-
_this$props8$innerRef = _this$props8.innerRef,
|
|
200
|
-
innerRef = _this$props8$innerRef === void 0 ? null : _this$props8$innerRef,
|
|
201
|
-
onBlur = _this$props8.onBlur,
|
|
202
|
-
onChange = _this$props8.onChange,
|
|
203
|
-
onClear = _this$props8.onClear,
|
|
204
|
-
onFocus = _this$props8.onFocus,
|
|
205
|
-
onKeyDown = _this$props8.onKeyDown,
|
|
206
|
-
onKeyUp = _this$props8.onKeyUp,
|
|
207
|
-
onPaste = _this$props8.onPaste,
|
|
208
|
-
_this$props8$inputPro = _this$props8.inputProps,
|
|
209
|
-
inputProps = _this$props8$inputPro === void 0 ? {} : _this$props8$inputPro,
|
|
210
|
-
_this$props8$qa = _this$props8.qa,
|
|
211
|
-
qa = _this$props8$qa === void 0 ? {} : _this$props8$qa,
|
|
212
|
-
appearance = _this$props8.appearance,
|
|
213
|
-
size = _this$props8.size,
|
|
214
|
-
rest = _objectWithoutProperties(_this$props8, _excluded);
|
|
215
|
-
|
|
216
|
-
// Convert autoComplete from a boolean prop to a string value.
|
|
217
|
-
var autoCompleteValue;
|
|
218
|
-
if (autoComplete !== undefined) {
|
|
219
|
-
autoCompleteValue = autoComplete ? "on" : "off";
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
// Add default elemBefore and elemAfter elements if type is search.
|
|
223
|
-
var elementBefore = type === "search" && !elemBefore ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_seedsReactIcon.default, {
|
|
224
|
-
name: "magnifying-glass-outline",
|
|
225
|
-
"aria-hidden": true,
|
|
226
|
-
color: "icon.base"
|
|
227
|
-
}) : elemBefore;
|
|
228
|
-
|
|
229
|
-
// Do not add a ClearButton if an elemAfter prop was passed.
|
|
230
|
-
var elementAfter = type === "search" && !elemAfter ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ClearButton, {}) : elemAfter;
|
|
231
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.default, _objectSpread(_objectSpread({
|
|
232
|
-
hasBeforeElement: !!elementBefore,
|
|
233
|
-
hasAfterElement: !!elementAfter,
|
|
234
|
-
disabled: disabled,
|
|
235
|
-
invalid: !!isInvalid,
|
|
236
|
-
warning: hasWarning,
|
|
237
|
-
appearance: appearance,
|
|
238
|
-
size: size
|
|
239
|
-
}, rest), {}, {
|
|
240
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(InputContext.Provider, {
|
|
241
|
-
value: {
|
|
242
|
-
handleClear: this.handleClear,
|
|
243
|
-
hasValue: this.state.hasValue,
|
|
244
|
-
clearButtonLabel: clearButtonLabel,
|
|
245
|
-
size: size
|
|
246
|
-
},
|
|
247
|
-
children: [elementBefore && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Accessory, {
|
|
248
|
-
before: true,
|
|
249
|
-
children: elementBefore
|
|
250
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread(_objectSpread({
|
|
251
|
-
"aria-invalid": !!isInvalid,
|
|
252
|
-
"aria-label": ariaLabel,
|
|
253
|
-
"aria-describedby": ariaDescribedby,
|
|
254
|
-
autoComplete: autoCompleteValue,
|
|
255
|
-
autoFocus: autoFocus,
|
|
256
|
-
disabled: disabled,
|
|
257
|
-
readOnly: readOnly,
|
|
258
|
-
id: id,
|
|
259
|
-
name: name,
|
|
260
|
-
placeholder: placeholder,
|
|
261
|
-
type: type,
|
|
262
|
-
required: required,
|
|
263
|
-
value: value,
|
|
264
|
-
maxLength: maxLength,
|
|
265
|
-
onBlur: this.handleBlur,
|
|
266
|
-
onChange: this.handleChange,
|
|
267
|
-
onFocus: this.handleFocus,
|
|
268
|
-
onKeyDown: this.handleKeyDown,
|
|
269
|
-
onKeyUp: this.handleKeyUp,
|
|
270
|
-
onPaste: this.handlePaste,
|
|
271
|
-
ref: (0, _seedsReactUtilities.mergeRefs)(innerRef, this.inputRef),
|
|
272
|
-
"data-qa-input": name || "",
|
|
273
|
-
"data-qa-input-isdisabled": disabled === true,
|
|
274
|
-
"data-qa-input-isrequired": required === true
|
|
275
|
-
}, qa), inputProps)), elementAfter && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Accessory, {
|
|
276
|
-
after: true,
|
|
277
|
-
isClearButton: isClearButton(elementAfter),
|
|
278
|
-
children: elementAfter
|
|
279
|
-
})]
|
|
280
|
-
})
|
|
281
|
-
}));
|
|
282
|
-
}
|
|
283
|
-
}]);
|
|
284
|
-
return Input;
|
|
285
|
-
}(React.Component);
|
|
286
|
-
_defineProperty(Input, "defaultProps", {
|
|
287
|
-
autoFocus: false,
|
|
288
|
-
disabled: false,
|
|
289
|
-
type: "text",
|
|
290
|
-
size: "default",
|
|
291
|
-
appearance: "primary"
|
|
292
|
-
});
|
|
293
|
-
_defineProperty(Input, "ClearButton", ClearButton);
|
|
294
|
-
var _default = exports.default = Input;
|