@sproutsocial/racine 20.0.0 → 20.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 +22 -0
- package/README.md +5 -5
- package/__flow__/Avatar/Avatar.flow.js +1 -0
- package/__flow__/Avatar/constants.flow.js +11 -0
- package/__flow__/Avatar/index.flow.js +2 -1
- package/__flow__/Menu/Menu.flow.js +3 -0
- package/__flow__/Popout/Popout.flow.js +5 -0
- package/__flow__/types/theme.colors.flow.js +14 -0
- package/commonjs/Avatar/Avatar.flow.js +1 -1
- package/commonjs/Avatar/Avatar.js +54 -30
- package/commonjs/Avatar/constants.flow.js +17 -0
- package/commonjs/Avatar/constants.js +17 -0
- package/commonjs/Avatar/index.flow.js +12 -1
- package/commonjs/Avatar/index.js +9 -1
- package/commonjs/Badge/Badge.flow.js +1 -1
- package/commonjs/Badge/Badge.js +1 -1
- package/commonjs/Banner/Banner.flow.js +1 -1
- package/commonjs/Banner/Banner.js +1 -1
- package/commonjs/Banner/styles.js +1 -1
- package/commonjs/Box/Box.flow.js +1 -1
- package/commonjs/Box/Box.js +1 -1
- package/commonjs/Breadcrumb/Breadcrumb.flow.js +1 -1
- package/commonjs/Breadcrumb/Breadcrumb.js +3 -3
- package/commonjs/Button/Button.flow.js +1 -1
- package/commonjs/Button/styles.js +1 -1
- package/commonjs/Card/Card.flow.js +1 -1
- package/commonjs/Card/Card.js +3 -3
- package/commonjs/Card/CardTypes.flow.js +1 -1
- package/commonjs/Card/subComponents.js +1 -1
- package/commonjs/Card/utils.js +1 -1
- package/commonjs/CharacterCounter/CharacterCounter.flow.js +1 -1
- package/commonjs/CharacterCounter/CharacterCounter.js +1 -1
- package/commonjs/CharacterCounter/styles.js +1 -1
- package/commonjs/ChartLegend/ChartLegend.flow.js +1 -1
- package/commonjs/ChartLegend/ChartLegend.js +1 -1
- package/commonjs/ChartLegend/styles.js +1 -1
- package/commonjs/Checkbox/Checkbox.flow.js +1 -1
- package/commonjs/Checkbox/Checkbox.js +1 -1
- package/commonjs/Checkbox/styles.js +1 -1
- package/commonjs/Collapsible/Collapsible.flow.js +1 -1
- package/commonjs/Collapsible/Collapsible.js +5 -5
- package/commonjs/DatePicker/DateRangePicker/DateRangePicker.flow.js +1 -1
- package/commonjs/DatePicker/DateRangePicker/DateRangePicker.js +3 -3
- package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +1 -1
- package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.js +3 -3
- package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +1 -1
- package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.js +3 -3
- package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +1 -1
- package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +3 -3
- package/commonjs/DatePicker/index.flow.js +1 -1
- package/commonjs/DatePicker/styles.js +1 -1
- package/commonjs/Drawer/Drawer.flow.js +1 -1
- package/commonjs/Drawer/Drawer.js +4 -4
- package/commonjs/Drawer/SlideTransition.js +1 -1
- package/commonjs/Drawer/styles.js +1 -1
- package/commonjs/EmptyState/EmptyState.flow.js +1 -1
- package/commonjs/EmptyState/EmptyState.js +2 -2
- package/commonjs/Fieldset/Fieldset.flow.js +1 -1
- package/commonjs/Fieldset/Fieldset.js +2 -2
- package/commonjs/Fieldset/styles.js +1 -1
- package/commonjs/FormField/FormField.flow.js +1 -1
- package/commonjs/FormField/FormField.js +3 -3
- package/commonjs/Icon/Icon.flow.js +1 -1
- package/commonjs/Icon/Icon.js +3 -3
- package/commonjs/Icon/index.flow.js +1 -1
- package/commonjs/Icon/styles.js +1 -1
- package/commonjs/Image/Image.flow.js +1 -1
- package/commonjs/Image/Image.js +1 -1
- package/commonjs/Image/styles.js +1 -1
- package/commonjs/Indicator/Indicator.flow.js +1 -1
- package/commonjs/Indicator/Indicator.js +1 -1
- package/commonjs/Input/Input.flow.js +1 -1
- package/commonjs/Input/Input.js +8 -4
- package/commonjs/Input/styles.js +1 -1
- package/commonjs/KeyboardKey/KeyboardKey.flow.js +1 -1
- package/commonjs/KeyboardKey/KeyboardKey.js +1 -1
- package/commonjs/Label/Label.flow.js +1 -1
- package/commonjs/Label/Label.js +1 -1
- package/commonjs/Link/Link.flow.js +1 -1
- package/commonjs/Link/Link.js +1 -1
- package/commonjs/Link/styles.js +1 -1
- package/commonjs/Listbox/Listbox.flow.js +1 -1
- package/commonjs/Listbox/Listbox.js +3 -3
- package/commonjs/Listbox/index.js +1 -1
- package/commonjs/Loader/Loader.flow.js +1 -1
- package/commonjs/Loader/Loader.js +1 -1
- package/commonjs/Loader/styles.js +1 -1
- package/commonjs/LoaderButton/LoaderButton.flow.js +1 -1
- package/commonjs/LoaderButton/LoaderButton.js +4 -5
- package/commonjs/Menu/Menu.flow.js +1 -1
- package/commonjs/Menu/Menu.js +51 -30
- package/commonjs/Menu/index.js +1 -1
- package/commonjs/Menu/styles.js +1 -1
- package/commonjs/Menu/utils/descendants.js +12 -6
- package/commonjs/Menu/utils/hooks.js +8 -2
- package/commonjs/Menu/utils/index.js +0 -11
- package/commonjs/Message/Message.flow.js +1 -1
- package/commonjs/Message/Message.js +1 -1
- package/commonjs/Modal/Modal.flow.js +1 -1
- package/commonjs/Modal/Modal.js +1 -1
- package/commonjs/Modal/styles.js +1 -1
- package/commonjs/Numeral/Numeral.flow.js +1 -1
- package/commonjs/Numeral/Numeral.js +3 -3
- package/commonjs/PartnerLogo/PartnerLogo.flow.js +1 -1
- package/commonjs/PartnerLogo/styles.js +1 -1
- package/commonjs/Popout/Popout.flow.js +1 -1
- package/commonjs/Popout/Popout.js +15 -10
- package/commonjs/Portal/Portal.flow.js +1 -1
- package/commonjs/Portal/Portal.js +1 -1
- package/commonjs/Radio/Radio.flow.js +1 -1
- package/commonjs/Radio/Radio.js +1 -1
- package/commonjs/Radio/styles.js +1 -1
- package/commonjs/SegmentedControl/SegmentedControl.flow.js +1 -1
- package/commonjs/SegmentedControl/SegmentedControl.js +3 -3
- package/commonjs/SegmentedControl/styles.js +1 -1
- package/commonjs/Select/Select.flow.js +1 -1
- package/commonjs/Select/Select.js +1 -1
- package/commonjs/Select/styles.js +1 -1
- package/commonjs/SpotIllustration/SpotIllustration.flow.js +1 -1
- package/commonjs/SpotIllustration/SpotIllustration.js +2 -2
- package/commonjs/Stack/Stack.flow.js +1 -1
- package/commonjs/Stack/Stack.js +1 -1
- package/commonjs/StatefulStory.js +8 -2
- package/commonjs/Switch/Switch.flow.js +1 -1
- package/commonjs/Switch/Switch.js +1 -1
- package/commonjs/Switch/styles.js +1 -1
- package/commonjs/Table/Table.flow.js +1 -1
- package/commonjs/Table/Table.js +1 -1
- package/commonjs/TableCell/TableCell.flow.js +1 -1
- package/commonjs/TableCell/TableCell.js +1 -1
- package/commonjs/TableHeaderCell/TableHeaderCell.flow.js +1 -1
- package/commonjs/TableHeaderCell/TableHeaderCell.js +2 -1
- package/commonjs/TableHeaderCell/styles.js +1 -1
- package/commonjs/TableRowAccordion/TableRowAccordion.flow.js +1 -1
- package/commonjs/TableRowAccordion/TableRowAccordion.js +1 -1
- package/commonjs/TableRowAccordion/styles.js +1 -1
- package/commonjs/Tabs/Tabs.flow.js +1 -1
- package/commonjs/Tabs/Tabs.js +4 -4
- package/commonjs/Tabs/styles.js +1 -1
- package/commonjs/Text/Text.flow.js +1 -1
- package/commonjs/Text/Text.js +1 -1
- package/commonjs/Text/styles.js +1 -1
- package/commonjs/Textarea/Textarea.flow.js +1 -1
- package/commonjs/Textarea/Textarea.js +5 -2
- package/commonjs/Textarea/styles.js +1 -1
- package/commonjs/ThemeProvider/index.flow.js +1 -1
- package/commonjs/ThemeProvider/index.js +3 -1
- package/commonjs/Toast/Toast.flow.js +1 -1
- package/commonjs/Toast/Toast.js +1 -1
- package/commonjs/Toast/index.js +1 -1
- package/commonjs/Toast/styles.js +1 -2
- package/commonjs/ToggleHint/ToggleHint.flow.js +1 -1
- package/commonjs/ToggleHint/ToggleHint.js +1 -1
- package/commonjs/ToggleHint/styles.js +1 -1
- package/commonjs/Token/Token.flow.js +1 -1
- package/commonjs/Token/Token.js +1 -1
- package/commonjs/Token/index.js +1 -1
- package/commonjs/Token/styles.js +1 -1
- package/commonjs/TokenInput/TokenInput.flow.js +1 -1
- package/commonjs/TokenInput/TokenInput.js +4 -4
- package/commonjs/TokenInput/TokenScreenReaderStatus.js +4 -4
- package/commonjs/TokenInput/styles.js +1 -1
- package/commonjs/Tooltip/Tooltip.flow.js +1 -1
- package/commonjs/Tooltip/Tooltip.js +114 -44
- package/commonjs/VisuallyHidden/VisuallyHidden.flow.js +1 -1
- package/commonjs/index.flow.js +1 -1
- package/commonjs/systemProps/background.flow.js +1 -0
- package/commonjs/systemProps/border.flow.js +1 -0
- package/commonjs/systemProps/color.flow.js +1 -0
- package/commonjs/systemProps/custom.flow.js +1 -0
- package/commonjs/systemProps/flexbox.flow.js +1 -0
- package/commonjs/systemProps/grid.flow.js +1 -0
- package/commonjs/systemProps/index.js +2 -0
- package/commonjs/systemProps/layout.flow.js +1 -0
- package/commonjs/systemProps/position.flow.js +1 -0
- package/commonjs/systemProps/shadow.flow.js +1 -0
- package/commonjs/systemProps/space.flow.js +16 -1
- package/commonjs/systemProps/typography.flow.js +1 -0
- package/commonjs/systemProps/variant.flow.js +1 -0
- package/commonjs/themes/dark/theme.js +19 -4
- package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +5 -4
- package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +5 -4
- package/commonjs/themes/light/theme.js +19 -4
- package/commonjs/types/shared.flow.js +1 -1
- package/commonjs/types/styled-components.flow.js +1 -1
- package/commonjs/utils/a11yTest.js +14 -16
- package/commonjs/utils/dataQaLabelQueries.js +2 -2
- package/commonjs/utils/hooks.flow.js +4 -2
- package/commonjs/utils/hooks.js +5 -5
- package/commonjs/utils/index.js +1 -1
- package/commonjs/utils/innerText.flow.js +1 -1
- package/commonjs/utils/react-testing-library.flow.js +1 -1
- package/commonjs/utils/react-testing-library.js +15 -13
- package/commonjs/utils/responsiveProps/index.js +2 -2
- package/commonjs/utils/system-props/system-props.js +1 -1
- package/commonjs/utils/use-measure.js +2 -2
- package/dist/themes/dark/theme.scss +13 -0
- package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +13 -0
- package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +13 -0
- package/dist/themes/light/theme.scss +13 -0
- package/dist/types/Avatar/Avatar.d.ts +4 -3
- package/dist/types/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/Avatar/AvatarTypes.d.ts +5 -2
- package/dist/types/Avatar/AvatarTypes.d.ts.map +1 -1
- package/dist/types/Avatar/constants.d.ts +11 -0
- package/dist/types/Avatar/constants.d.ts.map +1 -0
- package/dist/types/Avatar/index.d.ts +1 -0
- package/dist/types/Avatar/index.d.ts.map +1 -1
- package/dist/types/Badge/Badge.d.ts +2 -2
- package/dist/types/Badge/Badge.d.ts.map +1 -1
- package/dist/types/Badge/BadgeTypes.d.ts +1 -1
- package/dist/types/Badge/BadgeTypes.d.ts.map +1 -1
- package/dist/types/Banner/Banner.d.ts +2 -2
- package/dist/types/Banner/Banner.d.ts.map +1 -1
- package/dist/types/Banner/BannerTypes.d.ts +1 -1
- package/dist/types/Banner/BannerTypes.d.ts.map +1 -1
- package/dist/types/Banner/styles.d.ts +3 -3
- package/dist/types/Banner/styles.d.ts.map +1 -1
- package/dist/types/Breadcrumb/Breadcrumb.d.ts +3 -3
- package/dist/types/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/types/Button/Button.d.ts +2 -2
- package/dist/types/Button/Button.d.ts.map +1 -1
- package/dist/types/Button/ButtonTypes.d.ts +1 -1
- package/dist/types/Button/ButtonTypes.d.ts.map +1 -1
- package/dist/types/Card/Card.d.ts +2 -2
- package/dist/types/Card/Card.d.ts.map +1 -1
- package/dist/types/Card/CardTypes.d.ts +5 -5
- package/dist/types/Card/CardTypes.d.ts.map +1 -1
- package/dist/types/Card/styles.d.ts +4 -4
- package/dist/types/Card/subComponents.d.ts +6 -6
- package/dist/types/Card/subComponents.d.ts.map +1 -1
- package/dist/types/CharacterCounter/CharacterCounter.d.ts +1 -1
- package/dist/types/ChartLegend/ChartLegend.d.ts +2 -2
- package/dist/types/ChartLegend/ChartLegend.d.ts.map +1 -1
- package/dist/types/ChartLegend/ChartLegendTypes.d.ts +1 -1
- package/dist/types/ChartLegend/ChartLegendTypes.d.ts.map +1 -1
- package/dist/types/ChartLegend/useChartLabels.d.ts +2 -2
- package/dist/types/ChartLegend/useChartLabels.d.ts.map +1 -1
- package/dist/types/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/Checkbox/styles.d.ts +3 -3
- package/dist/types/Collapsible/Collapsible.d.ts +4 -4
- package/dist/types/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts +1 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts.map +1 -1
- package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts +2 -2
- package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts +2 -2
- package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/common.d.ts +3 -3
- package/dist/types/DatePicker/common.d.ts.map +1 -1
- package/dist/types/Drawer/Drawer.d.ts +2 -2
- package/dist/types/Drawer/SlideTransition.d.ts +2 -2
- package/dist/types/Drawer/SlideTransition.d.ts.map +1 -1
- package/dist/types/EmptyState/EmptyState.d.ts +2 -2
- package/dist/types/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/types/EnumIllustrationNames.d.ts +1 -1
- package/dist/types/EnumIllustrationNames.d.ts.map +1 -1
- package/dist/types/EnumLogoNames.d.ts +1 -1
- package/dist/types/EnumLogoNames.d.ts.map +1 -1
- package/dist/types/Fieldset/Fieldset.d.ts +4 -4
- package/dist/types/Fieldset/Fieldset.d.ts.map +1 -1
- package/dist/types/FormField/FormField.d.ts +2 -2
- package/dist/types/FormField/FormField.d.ts.map +1 -1
- package/dist/types/Icon/Icon.d.ts +3 -3
- package/dist/types/Icon/Icon.d.ts.map +1 -1
- package/dist/types/Icon/IconTypes.d.ts +2 -2
- package/dist/types/Icon/IconTypes.d.ts.map +1 -1
- package/dist/types/Image/Image.d.ts +2 -2
- package/dist/types/Image/Image.d.ts.map +1 -1
- package/dist/types/Indicator/Indicator.d.ts +1 -1
- package/dist/types/Input/Input.d.ts +2 -2
- package/dist/types/KeyboardKey/KeyboardKey.d.ts +1 -1
- package/dist/types/Label/Label.d.ts +1 -1
- package/dist/types/Link/Link.d.ts +2 -2
- package/dist/types/Link/Link.d.ts.map +1 -1
- package/dist/types/Link/styles.d.ts +1 -1
- package/dist/types/Listbox/Listbox.d.ts +11 -11
- package/dist/types/Listbox/Listbox.d.ts.map +1 -1
- package/dist/types/Loader/Loader.d.ts +1 -1
- package/dist/types/LoaderButton/LoaderButton.d.ts +2 -2
- package/dist/types/LoaderButton/LoaderButton.d.ts.map +1 -1
- package/dist/types/Menu/Menu.d.ts +14 -14
- package/dist/types/Menu/Menu.d.ts.map +1 -1
- package/dist/types/Menu/MenuTypes.d.ts +4 -2
- package/dist/types/Menu/MenuTypes.d.ts.map +1 -1
- package/dist/types/Menu/utils/descendants.d.ts +3 -3
- package/dist/types/Menu/utils/descendants.d.ts.map +1 -1
- package/dist/types/Menu/utils/hooks.d.ts +1 -1
- package/dist/types/Menu/utils/hooks.d.ts.map +1 -1
- package/dist/types/Menu/utils/index.d.ts +0 -1
- package/dist/types/Menu/utils/index.d.ts.map +1 -1
- package/dist/types/Message/Message.d.ts +8 -8
- package/dist/types/Message/MessageTypes.d.ts +2 -2
- package/dist/types/Message/MessageTypes.d.ts.map +1 -1
- package/dist/types/Modal/Modal.d.ts +4 -4
- package/dist/types/Modal/styles.d.ts +1 -1
- package/dist/types/Modal/styles.d.ts.map +1 -1
- package/dist/types/Numeral/Numeral.d.ts +2 -2
- package/dist/types/Numeral/Numeral.d.ts.map +1 -1
- package/dist/types/Numeral/NumeralTypes.d.ts +1 -1
- package/dist/types/Numeral/NumeralTypes.d.ts.map +1 -1
- package/dist/types/Numeral/styles.d.ts +2 -2
- package/dist/types/PartnerLogo/PartnerLogo.d.ts +2 -2
- package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +1 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +3 -3
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
- package/dist/types/Popout/Popout.d.ts +3 -3
- package/dist/types/Popout/Popout.d.ts.map +1 -1
- package/dist/types/Popout/PopoutTypes.d.ts +5 -1
- package/dist/types/Popout/PopoutTypes.d.ts.map +1 -1
- package/dist/types/Radio/Radio.d.ts +1 -1
- package/dist/types/Radio/styles.d.ts +1 -1
- package/dist/types/SegmentedControl/SegmentedControl.d.ts +3 -3
- package/dist/types/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/types/SegmentedControl/styles.d.ts +1 -1
- package/dist/types/Select/Select.d.ts +1 -1
- package/dist/types/SpotIllustration/SpotIllustration.d.ts +2 -2
- package/dist/types/SpotIllustration/SpotIllustration.d.ts.map +1 -1
- package/dist/types/Stack/Stack.d.ts +2 -2
- package/dist/types/Stack/Stack.d.ts.map +1 -1
- package/dist/types/Stack/StackTypes.d.ts +3 -3
- package/dist/types/Stack/StackTypes.d.ts.map +1 -1
- package/dist/types/Switch/Switch.d.ts +2 -2
- package/dist/types/Switch/Switch.d.ts.map +1 -1
- package/dist/types/Table/Table.d.ts +8 -8
- package/dist/types/Table/Table.d.ts.map +1 -1
- package/dist/types/TableCell/TableCell.d.ts +1 -1
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts +2 -2
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +1 -1
- package/dist/types/TableHeaderCell/TableHeaderCellTypes.d.ts +1 -1
- package/dist/types/TableHeaderCell/TableHeaderCellTypes.d.ts.map +1 -1
- package/dist/types/TableRowAccordion/TableRowAccordion.d.ts +1 -1
- package/dist/types/Tabs/Tabs.d.ts +2 -2
- package/dist/types/Tabs/Tabs.d.ts.map +1 -1
- package/dist/types/Tabs/styles.d.ts +2 -2
- package/dist/types/Tabs/styles.d.ts.map +1 -1
- package/dist/types/Text/Text.d.ts +2 -2
- package/dist/types/Text/Text.d.ts.map +1 -1
- package/dist/types/Textarea/Textarea.d.ts +2 -2
- package/dist/types/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/Textarea/TextareaTypes.d.ts +1 -1
- package/dist/types/Textarea/TextareaTypes.d.ts.map +1 -1
- package/dist/types/ThemeProvider/index.d.ts +3 -3
- package/dist/types/ThemeProvider/index.d.ts.map +1 -1
- package/dist/types/Toast/Toast.d.ts +2 -2
- package/dist/types/Toast/Toast.d.ts.map +1 -1
- package/dist/types/Toast/ToastTypes.d.ts +1 -1
- package/dist/types/Toast/ToastTypes.d.ts.map +1 -1
- package/dist/types/Toast/styles.d.ts +2 -2
- package/dist/types/ToggleHint/ToggleHint.d.ts +2 -2
- package/dist/types/ToggleHint/ToggleHint.d.ts.map +1 -1
- package/dist/types/Token/Token.d.ts +2 -2
- package/dist/types/Token/Token.d.ts.map +1 -1
- package/dist/types/TokenInput/TokenInput.d.ts +2 -2
- package/dist/types/TokenInput/TokenInput.d.ts.map +1 -1
- package/dist/types/Tooltip/Tooltip.d.ts +2 -2
- package/dist/types/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/Tooltip/TooltipTypes.d.ts +2 -0
- package/dist/types/Tooltip/TooltipTypes.d.ts.map +1 -1
- package/dist/types/themes/dark/theme.d.ts +13 -0
- package/dist/types/themes/dark/theme.d.ts.map +1 -1
- package/dist/types/themes/light/theme.d.ts +14 -1
- package/dist/types/themes/light/theme.d.ts.map +1 -1
- package/dist/types/types/shared.d.ts +3 -3
- package/dist/types/types/shared.d.ts.map +1 -1
- package/dist/types/types/system-props.d.ts +3 -3
- package/dist/types/types/system-props.d.ts.map +1 -1
- package/dist/types/types/theme.colors.d.ts +28 -15
- package/dist/types/types/theme.colors.d.ts.map +1 -1
- package/dist/types/types/theme.d.ts +13 -13
- package/dist/types/types/theme.d.ts.map +1 -1
- package/dist/types/utils/dataQaLabelQueries.d.ts +2 -2
- package/dist/types/utils/dataQaLabelQueries.d.ts.map +1 -1
- package/dist/types/utils/hooks.d.ts +6 -6
- package/dist/types/utils/hooks.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/react-testing-library.d.ts +3 -123
- package/dist/types/utils/react-testing-library.d.ts.map +1 -1
- package/lib/Avatar/Avatar.js +51 -28
- package/lib/Avatar/constants.flow.js +10 -0
- package/lib/Avatar/constants.js +10 -0
- package/lib/Avatar/index.flow.js +2 -1
- package/lib/Avatar/index.js +2 -1
- package/lib/Breadcrumb/Breadcrumb.js +3 -3
- package/lib/Card/Card.js +2 -2
- package/lib/Card/utils.js +1 -1
- package/lib/CharacterCounter/CharacterCounter.js +1 -1
- package/lib/Checkbox/Checkbox.js +1 -1
- package/lib/Collapsible/Collapsible.js +5 -5
- package/lib/DatePicker/DateRangePicker/DateRangePicker.js +2 -2
- package/lib/DatePicker/DateRangePicker/StatefulDateRangePicker.js +2 -2
- package/lib/DatePicker/SingleDatePicker/SingleDatePicker.js +2 -2
- package/lib/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +2 -2
- package/lib/Drawer/Drawer.js +3 -3
- package/lib/FormField/FormField.js +2 -2
- package/lib/Icon/Icon.flow.js +3 -1
- package/lib/Icon/Icon.js +3 -3
- package/lib/Image/Image.js +1 -1
- package/lib/Indicator/Indicator.js +1 -1
- package/lib/Input/Input.js +9 -4
- package/lib/KeyboardKey/KeyboardKey.js +1 -1
- package/lib/Label/Label.js +1 -1
- package/lib/Listbox/Listbox.js +3 -3
- package/lib/Loader/Loader.js +1 -1
- package/lib/LoaderButton/LoaderButton.js +3 -4
- package/lib/Menu/Menu.js +51 -30
- package/lib/Menu/utils/descendants.js +5 -5
- package/lib/Menu/utils/hooks.js +8 -2
- package/lib/Menu/utils/index.js +1 -2
- package/lib/Numeral/Numeral.js +2 -2
- package/lib/PartnerLogo/PartnerLogo.flow.js +5 -1
- package/lib/Popout/Popout.flow.js +3 -1
- package/lib/Popout/Popout.js +15 -10
- package/lib/Portal/Portal.js +1 -1
- package/lib/Radio/Radio.js +1 -1
- package/lib/SegmentedControl/SegmentedControl.js +2 -2
- package/lib/Select/Select.js +1 -1
- package/lib/StatefulStory.js +2 -2
- package/lib/TableCell/TableCell.flow.js +5 -1
- package/lib/TableCell/TableCell.js +1 -1
- package/lib/TableHeaderCell/TableHeaderCell.js +2 -1
- package/lib/TableRowAccordion/TableRowAccordion.js +1 -1
- package/lib/Tabs/Tabs.js +4 -4
- package/lib/Textarea/Textarea.js +5 -1
- package/lib/ThemeProvider/index.flow.js +3 -1
- package/lib/ThemeProvider/index.js +3 -0
- package/lib/ToggleHint/ToggleHint.js +1 -1
- package/lib/TokenInput/TokenInput.js +4 -4
- package/lib/TokenInput/TokenScreenReaderStatus.js +2 -2
- package/lib/Tooltip/Tooltip.js +114 -44
- package/lib/systemProps/background.flow.js +3 -0
- package/lib/systemProps/border.flow.js +3 -0
- package/lib/systemProps/color.flow.js +3 -0
- package/lib/systemProps/custom.flow.js +3 -0
- package/lib/systemProps/flexbox.flow.js +3 -0
- package/lib/systemProps/grid.flow.js +3 -0
- package/lib/systemProps/index.js +7 -1
- package/lib/systemProps/layout.flow.js +3 -0
- package/lib/systemProps/position.flow.js +3 -0
- package/lib/systemProps/shadow.flow.js +3 -0
- package/lib/systemProps/space.flow.js +16 -0
- package/lib/systemProps/typography.flow.js +3 -0
- package/lib/systemProps/variant.flow.js +3 -0
- package/lib/themes/dark/theme.js +16 -3
- package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +3 -3
- package/lib/themes/extendedThemes/sproutTheme/light/theme.js +3 -3
- package/lib/themes/light/theme.js +16 -4
- package/lib/utils/a11yTest.js +13 -15
- package/lib/utils/dataQaLabelQueries.js +2 -2
- package/lib/utils/hooks.flow.js +2 -3
- package/lib/utils/hooks.js +5 -5
- package/lib/utils/index.js +1 -1
- package/lib/utils/react-testing-library.js +15 -13
- package/lib/utils/responsiveProps/index.js +2 -2
- package/lib/utils/use-measure.js +2 -2
- package/package.json +47 -42
- package/commonjs/Menu/utils/names.js +0 -8
- package/dist/types/Menu/utils/names.d.ts +0 -2
- package/dist/types/Menu/utils/names.d.ts.map +0 -1
- package/lib/Menu/utils/names.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { TypeIconProps, TypeToggleProps } from './IconTypes';
|
|
3
3
|
declare const Icon: {
|
|
4
|
-
({ name, size, fixedWidth, ariaLabel, color, svgProps, ...rest }: TypeIconProps):
|
|
4
|
+
({ name, size, fixedWidth, ariaLabel, color, svgProps, ...rest }: TypeIconProps): JSX.Element;
|
|
5
5
|
/**
|
|
6
6
|
* **Accessibility note:** It is best practice to wrap `<Icon.Toggle />` in a button. The button must include `aria-label` and `aria-pressed` in order for a screen reader to properly communicate the icon's state. See example below.
|
|
7
7
|
*
|
|
@@ -22,7 +22,7 @@ declare const Icon: {
|
|
|
22
22
|
* </Button>
|
|
23
23
|
*/
|
|
24
24
|
Toggle: {
|
|
25
|
-
({ activeName, inactiveName, isActive, size, fixedWidth, ariaLabel, ...rest }: TypeToggleProps):
|
|
25
|
+
({ activeName, inactiveName, isActive, size, fixedWidth, ariaLabel, ...rest }: TypeToggleProps): JSX.Element;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/Icon/Icon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/Icon/Icon.tsx"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,aAAa,CAAC;AAmBhE,QAAA,MAAM,IAAI;sEAQP,aAAa;IA6GhB;;;;;;;;;;;;;;;;;;OAkBG;;uFA1CA,eAAe;;;CA7BjB,CAAC;AA0EF,eAAe,IAAI,CAAC"}
|
|
@@ -4,8 +4,8 @@ import type { EnumLogoNames } from '../EnumLogoNames';
|
|
|
4
4
|
import type { TypeStyledComponentsCommonProps } from '../types/styled-components';
|
|
5
5
|
import type { TypeSystemCommonProps } from '../types/system-props';
|
|
6
6
|
import { TypeBoxProps } from '../Box';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type TypeIconName = EnumIconNames | EnumLogoNames;
|
|
8
|
+
export type TypeIconSize = 'mini' | 'default' | 'small' | 'medium' | 'large' | 'jumbo';
|
|
9
9
|
export interface TypeIconProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, Omit<React.ComponentPropsWithoutRef<'span'>, 'color'> {
|
|
10
10
|
/** Name of the icon in the svg sprite */
|
|
11
11
|
name: TypeIconName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconTypes.d.ts","sourceRoot":"","sources":["../../../src/Icon/IconTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,8BAA8B,CAAC;AAClF,OAAO,KAAK,EAAC,qBAAqB,EAAC,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CAAC,EAAE,YAAY,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { TypeImageProps } from './ImageTypes';
|
|
3
|
-
|
|
3
|
+
type TypeState = {
|
|
4
4
|
didError: boolean;
|
|
5
5
|
didLoad: boolean;
|
|
6
6
|
imageUrl: string;
|
|
@@ -23,7 +23,7 @@ export default class Image extends React.Component<TypeImageProps, TypeState> {
|
|
|
23
23
|
onError: () => void;
|
|
24
24
|
onLoad: () => void;
|
|
25
25
|
onClick: () => void;
|
|
26
|
-
render():
|
|
26
|
+
render(): JSX.Element;
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
29
29
|
//# sourceMappingURL=Image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../src/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../src/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEjD,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAKF,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,EAAE,SAAS,CAAC;IAC3E,MAAM,CAAC,YAAY;;;;;MAKjB;IAEF,KAAK;;;;MAIH;IAEF,QAAQ,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAEnC,iBAAiB;IASjB,kBAAkB,CAAC,SAAS,EAAE,cAAc;IAU5C,OAAO,aASL;IAEF,MAAM,aAKJ;IAEF,OAAO,aAEL;IAEF,MAAM;CAoBP"}
|
|
@@ -13,7 +13,7 @@ declare class Input extends React.Component<TypeInputProps, TypeState> {
|
|
|
13
13
|
appearance: string;
|
|
14
14
|
};
|
|
15
15
|
static ClearButton: {
|
|
16
|
-
():
|
|
16
|
+
(): JSX.Element | null;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
@@ -25,7 +25,7 @@ declare class Input extends React.Component<TypeInputProps, TypeState> {
|
|
|
25
25
|
handleKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void | undefined;
|
|
26
26
|
handlePaste: (e: React.SyntheticEvent<HTMLInputElement>) => void | undefined;
|
|
27
27
|
updateState: (inputValue: string) => void;
|
|
28
|
-
render():
|
|
28
|
+
render(): JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
export default Input;
|
|
31
31
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { TypeKeyboardKeyProps } from './KeyboardKeyTypes';
|
|
3
3
|
export default class KeyboardKey extends React.Component<TypeKeyboardKeyProps> {
|
|
4
|
-
render():
|
|
4
|
+
render(): JSX.Element;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=KeyboardKey.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TypeLinkProps } from './LinkTypes';
|
|
3
|
-
declare const Link: ({ href, external, children, disabled, onClick, as, underline, qa, ...rest }: TypeLinkProps) =>
|
|
3
|
+
declare const Link: ({ href, external, children, disabled, onClick, as, underline, qa, ...rest }: TypeLinkProps) => JSX.Element;
|
|
4
4
|
export default Link;
|
|
5
5
|
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/Link/Link.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/Link/Link.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAE1C,QAAA,MAAM,IAAI,gFAUP,aAAa,gBA4Bf,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TypeLinkProps } from './LinkTypes';
|
|
3
3
|
declare const Container: import("styled-components").StyledComponent<{
|
|
4
|
-
({ fontSize, children, qa, color, ...rest }: import("../Text").TypeTextProps):
|
|
4
|
+
({ fontSize, children, qa, color, ...rest }: import("../Text").TypeTextProps): JSX.Element;
|
|
5
5
|
Headline: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
|
|
6
6
|
SubHeadline: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
|
|
7
7
|
SmallSubHeadline: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { TypeListboxProps, TypeListboxButtonProps } from './ListboxTypes';
|
|
3
3
|
export declare const Listbox: {
|
|
4
|
-
({ role, children, ...rest }: TypeListboxProps):
|
|
4
|
+
({ role, children, ...rest }: TypeListboxProps): JSX.Element;
|
|
5
5
|
Option: {
|
|
6
|
-
({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: import("../Menu").TypeMenuItemProps):
|
|
6
|
+
({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: import("../Menu").TypeMenuItemProps): JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
Item: {
|
|
10
|
-
({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: import("../Menu").TypeMenuItemProps):
|
|
10
|
+
({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: import("../Menu").TypeMenuItemProps): JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
Checkbox: {
|
|
14
|
-
(props: import("../Menu").TypeMenuItemProps):
|
|
14
|
+
(props: import("../Menu").TypeMenuItemProps): JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
17
17
|
Radio: {
|
|
18
|
-
(props: import("../Menu").TypeMenuItemProps):
|
|
18
|
+
(props: import("../Menu").TypeMenuItemProps): JSX.Element;
|
|
19
19
|
displayName: string;
|
|
20
20
|
};
|
|
21
21
|
Group: {
|
|
22
|
-
({ children, title, titleAs, disabled: isDisabled, ...props }: import("../Menu").TypeMenuGroupProps):
|
|
22
|
+
({ children, title, titleAs, disabled: isDisabled, ...props }: import("../Menu").TypeMenuGroupProps): JSX.Element;
|
|
23
23
|
displayName: string;
|
|
24
24
|
};
|
|
25
25
|
Divider: {
|
|
26
|
-
(props: import("..").TypeBoxProps):
|
|
26
|
+
(props: import("..").TypeBoxProps): JSX.Element;
|
|
27
27
|
displayName: string;
|
|
28
28
|
};
|
|
29
29
|
FilterInput: {
|
|
30
|
-
(props: import("..").TypeInputProps):
|
|
30
|
+
(props: import("..").TypeInputProps): JSX.Element;
|
|
31
31
|
displayName: string;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
@@ -35,7 +35,7 @@ export declare const Listbox: {
|
|
|
35
35
|
* These styles are copied from @sproutsocial/racine/commonjs/Select/styles and applied at the root element since
|
|
36
36
|
* the Listbox component doesn't render a select.
|
|
37
37
|
*/
|
|
38
|
-
export declare const ListboxButtonContainer: import("styled-components").StyledComponent<({ content, popoutProps, children, onClick, closeOnItemClick, id, placement, ...props }: import("../Menu").TypeMenuButtonProps) =>
|
|
39
|
-
export declare const ListboxButton: ({ children, ...restProps }: TypeListboxButtonProps) =>
|
|
38
|
+
export declare const ListboxButtonContainer: import("styled-components").StyledComponent<({ content, popoutProps, children, onClick, closeOnItemClick, id, placement, ...props }: import("../Menu").TypeMenuButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
39
|
+
export declare const ListboxButton: ({ children, ...restProps }: TypeListboxButtonProps) => JSX.Element;
|
|
40
40
|
export default Listbox;
|
|
41
41
|
//# sourceMappingURL=Listbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Listbox.d.ts","sourceRoot":"","sources":["../../../src/Listbox/Listbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Listbox.d.ts","sourceRoot":"","sources":["../../../src/Listbox/Listbox.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAC,gBAAgB,EAAE,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AAC7E,eAAO,MAAM,OAAO;kCAIjB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,oPAuDlC,CAAC;AACF,eAAO,MAAM,aAAa,+BAGvB,sBAAsB,gBAaxB,CAAC;AAOF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TypeLoaderButtonProps } from './LoaderButtonTypes';
|
|
3
|
-
export declare const LoaderButton: ({ isLoading, disabled, loaderLabel, children, appearance, ...rest }: TypeLoaderButtonProps) =>
|
|
3
|
+
export declare const LoaderButton: ({ isLoading, disabled, loaderLabel, children, appearance, ...rest }: TypeLoaderButtonProps) => JSX.Element;
|
|
4
4
|
export default LoaderButton;
|
|
5
5
|
//# sourceMappingURL=LoaderButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderButton.d.ts","sourceRoot":"","sources":["../../../src/LoaderButton/LoaderButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoaderButton.d.ts","sourceRoot":"","sources":["../../../src/LoaderButton/LoaderButton.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,qBAAqB,EAAC,MAAM,qBAAqB,CAAC;AAqB1D,eAAO,MAAM,YAAY,wEAOtB,qBAAqB,gBAoBvB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TypeBoxProps } from '../Box';
|
|
3
3
|
import { TypeInputProps } from '../Input';
|
|
4
4
|
import type { TypeMenuButtonProps, TypeMenuGroupProps, TypeMenuItemProps, TypeMenuProps } from './MenuTypes';
|
|
5
5
|
export declare const MenuItem: {
|
|
6
|
-
({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: TypeMenuItemProps):
|
|
6
|
+
({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: TypeMenuItemProps): JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const MenuCheckbox: {
|
|
10
|
-
(props: TypeMenuItemProps):
|
|
10
|
+
(props: TypeMenuItemProps): JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
export declare const MenuRadio: {
|
|
14
|
-
(props: TypeMenuItemProps):
|
|
14
|
+
(props: TypeMenuItemProps): JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
17
17
|
export declare const MenuGroup: {
|
|
18
|
-
({ children, title, titleAs, disabled: isDisabled, ...props }: TypeMenuGroupProps):
|
|
18
|
+
({ children, title, titleAs, disabled: isDisabled, ...props }: TypeMenuGroupProps): JSX.Element;
|
|
19
19
|
displayName: string;
|
|
20
20
|
};
|
|
21
21
|
export declare const MenuDivider: {
|
|
22
|
-
(props: TypeBoxProps):
|
|
22
|
+
(props: TypeBoxProps): JSX.Element;
|
|
23
23
|
displayName: string;
|
|
24
24
|
};
|
|
25
25
|
export declare const Menu: {
|
|
26
|
-
({ role, children, onChange, value, multiselect, innerRef, ...props }: TypeMenuProps):
|
|
26
|
+
({ role, children, onChange, value, multiselect, innerRef, footerContent, ...props }: TypeMenuProps): JSX.Element;
|
|
27
27
|
displayName: string;
|
|
28
28
|
Group: {
|
|
29
|
-
({ children, title, titleAs, disabled: isDisabled, ...props }: TypeMenuGroupProps):
|
|
29
|
+
({ children, title, titleAs, disabled: isDisabled, ...props }: TypeMenuGroupProps): JSX.Element;
|
|
30
30
|
displayName: string;
|
|
31
31
|
};
|
|
32
32
|
Item: {
|
|
33
|
-
({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: TypeMenuItemProps):
|
|
33
|
+
({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: TypeMenuItemProps): JSX.Element;
|
|
34
34
|
displayName: string;
|
|
35
35
|
};
|
|
36
36
|
Checkbox: {
|
|
37
|
-
(props: TypeMenuItemProps):
|
|
37
|
+
(props: TypeMenuItemProps): JSX.Element;
|
|
38
38
|
displayName: string;
|
|
39
39
|
};
|
|
40
40
|
Radio: {
|
|
41
|
-
(props: TypeMenuItemProps):
|
|
41
|
+
(props: TypeMenuItemProps): JSX.Element;
|
|
42
42
|
displayName: string;
|
|
43
43
|
};
|
|
44
44
|
Divider: {
|
|
45
|
-
(props: TypeBoxProps):
|
|
45
|
+
(props: TypeBoxProps): JSX.Element;
|
|
46
46
|
displayName: string;
|
|
47
47
|
};
|
|
48
48
|
FilterInput: {
|
|
49
|
-
(props: TypeInputProps):
|
|
49
|
+
(props: TypeInputProps): JSX.Element;
|
|
50
50
|
displayName: string;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
export declare const MenuButton: ({ content, popoutProps, children, onClick, closeOnItemClick, id, placement, ...props }: TypeMenuButtonProps) =>
|
|
53
|
+
export declare const MenuButton: ({ content, popoutProps, children, onClick, closeOnItemClick, id, placement, ...props }: TypeMenuButtonProps) => JSX.Element;
|
|
54
54
|
export default Menu;
|
|
55
55
|
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/Menu/Menu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/Menu/Menu.tsx"],"names":[],"mappings":";AAcA,OAAY,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AAI3C,OAAc,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAIjD,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAEjB,aAAa,EAEd,MAAM,aAAa,CAAC;AA8CrB,eAAO,MAAM,QAAQ;kMAgBlB,iBAAiB;;CAuLnB,CAAC;AACF,eAAO,MAAM,YAAY;YAAW,iBAAiB;;CAEpD,CAAC;AACF,eAAO,MAAM,SAAS;YAAW,iBAAiB;;CAEjD,CAAC;AAUF,eAAO,MAAM,SAAS;mEAMnB,kBAAkB;;CA2BpB,CAAC;AAEF,eAAO,MAAM,WAAW;YAAW,YAAY;;CAQ9C,CAAC;AA4FF,eAAO,MAAM,IAAI;0FASd,aAAa;;;uEA1Ib,kBAAkB;;;;sMA7MlB,iBAAiB;;;;gBAwLgB,iBAAiB;;;;gBAGpB,iBAAiB;;;;gBA+Cf,YAAY;;;;gBAUf,cAAc;;;CAuJ7C,CAAC;AAqBF,eAAO,MAAM,UAAU,2FASpB,mBAAmB,gBA+CrB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -4,13 +4,14 @@ import type { TypeBoxProps } from '../Box';
|
|
|
4
4
|
import type { TypeButtonProps } from '../Button';
|
|
5
5
|
import type { EnumPlacements, TypePopoutProps } from '../Popout/PopoutTypes';
|
|
6
6
|
import { MENU_ITEM_ROLES, MENU_ROLES } from './utils/constants';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type TypeMenuRoles = (typeof MENU_ROLES)[keyof typeof MENU_ROLES];
|
|
8
|
+
export type TypeMenuItemRoles = (typeof MENU_ITEM_ROLES)[keyof typeof MENU_ITEM_ROLES];
|
|
9
9
|
export interface TypeMenuState {
|
|
10
10
|
selectionIndex: number;
|
|
11
11
|
filterQuery: string;
|
|
12
12
|
filteredItems: number[] | null | undefined;
|
|
13
13
|
isFilterInputFocused: boolean;
|
|
14
|
+
isFooterFocused: boolean;
|
|
14
15
|
}
|
|
15
16
|
export interface TypeMenuSharedProps {
|
|
16
17
|
multiselect?: boolean;
|
|
@@ -31,6 +32,7 @@ export interface TypeMenuContext extends TypeMenuSharedProps {
|
|
|
31
32
|
export interface TypeMenuProps extends Omit<TypeBoxProps, 'onChange' | 'role'>, TypeMenuSharedProps {
|
|
32
33
|
children?: React.ReactNode;
|
|
33
34
|
innerRef?: React.Ref<any>;
|
|
35
|
+
footerContent?: React.ReactNode;
|
|
34
36
|
}
|
|
35
37
|
export interface TypeMenuItemProps {
|
|
36
38
|
id?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuTypes.d.ts","sourceRoot":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,CAAC,EAAE,cAAc,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,0BAA2B,SAAQ,iBAAiB;IACnE,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;CACpC"}
|
|
@@ -4,11 +4,11 @@ import * as React from 'react';
|
|
|
4
4
|
* pre-release and unstable, so instead of importing it, we copied it here and changed the types from TypeScript to
|
|
5
5
|
* Flow. If the package ever stabilizes, we can import these functions from there and remove this file.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type TypeDescendant<ElementType, DescendantProps> = DescendantProps & {
|
|
8
8
|
element: ElementType | null;
|
|
9
9
|
index: number;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type TypeDescendantContext<ElementType, DescendantProps> = {
|
|
12
12
|
descendants: TypeDescendant<ElementType, DescendantProps>[];
|
|
13
13
|
registerDescendant(descendant: Omit<TypeDescendant<ElementType, DescendantProps>, 'index'>): void;
|
|
14
14
|
unregisterDescendant(element: ElementType | null): void;
|
|
@@ -73,7 +73,7 @@ export declare function DescendantProvider<ElementType extends HTMLElement, Desc
|
|
|
73
73
|
children: React.ReactNode;
|
|
74
74
|
items: TypeDescendant<ElementType, DescendantProps>[];
|
|
75
75
|
set: (arg0: (arg0: TypeDescendant<ElementType, DescendantProps>[]) => any) => any;
|
|
76
|
-
}):
|
|
76
|
+
}): JSX.Element;
|
|
77
77
|
export declare function useDescendantKeyDown<ElementType, DescendantProps, K extends keyof TypeDescendant<ElementType, DescendantProps>>(context: React.Context<TypeDescendantContext<ElementType, DescendantProps>>, options: {
|
|
78
78
|
currentIndex?: number;
|
|
79
79
|
key?: K | 'option';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descendants.d.ts","sourceRoot":"","sources":["../../../../src/Menu/utils/descendants.tsx"],"names":[],"mappings":"A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,WAAW,EAAE,eAAe,CAAC,GAC5C,cAAc,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC,MAAM,cAAc,CAC/D,WAAW,EACX,eAAe,CAChB,CAAC,GACL,IAAI,CAAC;CACT,WAaoC,mBAAmB,UAkIzD"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { TypeMenuButtonContext, TypeMenuContext } from '../../Menu/MenuTypes';
|
|
4
4
|
export declare const MenuContext: import("react").Context<TypeMenuContext>;
|
|
5
5
|
export declare const MenuButtonContext: import("react").Context<TypeMenuButtonContext>;
|
|
6
|
-
export
|
|
6
|
+
export type TypeMenuDescendantProps = {
|
|
7
7
|
id: string;
|
|
8
8
|
label: string | null | undefined;
|
|
9
9
|
value?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/Menu/utils/hooks.ts"],"names":[],"mappings":";;AAGA,OAAO,KAAK,EAAC,qBAAqB,EAAE,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAShF,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/Menu/utils/hooks.ts"],"names":[],"mappings":";;AAGA,OAAO,KAAK,EAAC,qBAAqB,EAAE,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAShF,eAAO,MAAM,WAAW,0CAoBtB,CAAC;AACH,eAAO,MAAM,iBAAiB,gDAG5B,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AACF,eAAO,MAAM,qBAAqB;;;;EAEjC,CAAC;AAwBF,wBAAgB,cAAc;;;EAsI7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Menu/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Menu/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
|
|
@@ -4,33 +4,33 @@ import { TypeButtonProps } from '../Button';
|
|
|
4
4
|
import { TypeCheckboxProps } from '../Checkbox';
|
|
5
5
|
import { EnumDensities, TypeMessageProps } from './MessageTypes';
|
|
6
6
|
declare const Message: {
|
|
7
|
-
({ children, density, borderColor, bg, indentContent, innerRef, qa, ...rest }: TypeMessageProps):
|
|
7
|
+
({ children, density, borderColor, bg, indentContent, innerRef, qa, ...rest }: TypeMessageProps): JSX.Element;
|
|
8
8
|
Body: {
|
|
9
|
-
(props: TypeMessageProps):
|
|
9
|
+
(props: TypeMessageProps): JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
Header: {
|
|
13
|
-
(props: TypeMessageProps):
|
|
13
|
+
(props: TypeMessageProps): JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
Footer: {
|
|
17
|
-
(props: TypeMessageProps):
|
|
17
|
+
(props: TypeMessageProps): JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
20
|
Meta: {
|
|
21
|
-
(props: TypeMessageProps):
|
|
21
|
+
(props: TypeMessageProps): JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
Button: {
|
|
25
|
-
(props: TypeButtonProps):
|
|
25
|
+
(props: TypeButtonProps): JSX.Element;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
28
|
Avatar: {
|
|
29
|
-
(props: TypeAvatarProps):
|
|
29
|
+
(props: TypeAvatarProps): JSX.Element;
|
|
30
30
|
displayName: string;
|
|
31
31
|
};
|
|
32
32
|
Checkbox: {
|
|
33
|
-
(props: TypeCheckboxProps):
|
|
33
|
+
(props: TypeCheckboxProps): JSX.Element;
|
|
34
34
|
displayName: string;
|
|
35
35
|
};
|
|
36
36
|
Context: React.Context<{
|
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { TypeBoxProps } from '../Box';
|
|
3
3
|
import { TypeQaProps } from '../types/shared';
|
|
4
4
|
import { MESSAGE_DENSITIES } from './constants';
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
type TypeDensityKeys = keyof typeof MESSAGE_DENSITIES;
|
|
6
|
+
export type EnumDensities = (typeof MESSAGE_DENSITIES)[TypeDensityKeys];
|
|
7
7
|
export interface TypeMessageProps extends TypeBoxProps {
|
|
8
8
|
/** Condensed, small, or large. */
|
|
9
9
|
density?: EnumDensities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageTypes.d.ts","sourceRoot":"","sources":["../../../src/Message/MessageTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAI9C,
|
|
1
|
+
{"version":3,"file":"MessageTypes.d.ts","sourceRoot":"","sources":["../../../src/Message/MessageTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAI9C,KAAK,eAAe,GAAG,MAAM,OAAO,iBAAiB,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,eAAe,CAAC,CAAC;AAExE,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,kCAAkC;IAClC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB"}
|
|
@@ -4,17 +4,17 @@ import type { TypeModalProps, TypeModalCloseButtonProps, TypeModalContentProps,
|
|
|
4
4
|
* The modal you want
|
|
5
5
|
*/
|
|
6
6
|
declare const Modal: {
|
|
7
|
-
(props: TypeModalProps):
|
|
7
|
+
(props: TypeModalProps): JSX.Element;
|
|
8
8
|
defaultProps: {
|
|
9
9
|
width: string;
|
|
10
10
|
zIndex: number;
|
|
11
11
|
};
|
|
12
12
|
Header: {
|
|
13
|
-
(props: TypeModalHeaderProps):
|
|
13
|
+
(props: TypeModalHeaderProps): JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
Footer: {
|
|
17
|
-
(props: TypeModalFooterProps):
|
|
17
|
+
(props: TypeModalFooterProps): JSX.Element;
|
|
18
18
|
defaultProps: {
|
|
19
19
|
bg: string;
|
|
20
20
|
};
|
|
@@ -22,7 +22,7 @@ declare const Modal: {
|
|
|
22
22
|
};
|
|
23
23
|
Content: React.ForwardRefExoticComponent<Omit<TypeModalContentProps, "ref"> & React.RefAttributes<unknown>>;
|
|
24
24
|
CloseButton: {
|
|
25
|
-
(props: TypeModalCloseButtonProps):
|
|
25
|
+
(props: TypeModalCloseButtonProps): JSX.Element | null;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -4,7 +4,7 @@ import { TypeContainerProps } from '../Box';
|
|
|
4
4
|
export declare const Body: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
5
5
|
export declare const Container: import("styled-components").StyledComponent<({ className, ...props }: {
|
|
6
6
|
className?: string | undefined;
|
|
7
|
-
} & Omit<ReactModal.Props, "className" | "portalClassName" | "overlayClassName">) =>
|
|
7
|
+
} & Omit<ReactModal.Props, "className" | "portalClassName" | "overlayClassName">) => JSX.Element, import("styled-components").DefaultTheme, TypeContainerProps, never>;
|
|
8
8
|
export declare const Content: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
9
9
|
export declare const HeaderContainer: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
10
10
|
export declare const Header: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Modal/styles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAY,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAC;AAmCjD,eAAO,MAAM,IAAI,gGAIhB,CAAC;AAEF,eAAO,MAAM,SAAS;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Modal/styles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAY,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAC;AAmCjD,eAAO,MAAM,IAAI,gGAIhB,CAAC;AAEF,eAAO,MAAM,SAAS;;sKAkDrB,CAAC;AAEF,eAAO,MAAM,OAAO,uNAWnB,CAAC;AAEF,eAAO,MAAM,eAAe,uNAI3B,CAAC;AAEF,eAAO,MAAM,MAAM;;SASlB,CAAC;AAEF,eAAO,MAAM,MAAM,uNAOlB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { TypeNumeralProps } from './NumeralTypes';
|
|
3
|
-
declare const Numeral: (props: TypeNumeralProps) =>
|
|
3
|
+
declare const Numeral: (props: TypeNumeralProps) => JSX.Element;
|
|
4
4
|
export default Numeral;
|
|
5
5
|
//# sourceMappingURL=Numeral.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Numeral.d.ts","sourceRoot":"","sources":["../../../src/Numeral/Numeral.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Numeral.d.ts","sourceRoot":"","sources":["../../../src/Numeral/Numeral.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,EAAoB,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAyHxE,QAAA,MAAM,OAAO,UAAW,gBAAgB,gBA0CvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TypeTextProps } from '../Text/TextTypes';
|
|
2
2
|
import { TypeQaProps } from '../types/shared';
|
|
3
|
-
export
|
|
3
|
+
export type EnumNumeralFormat = 'decimal' | 'currency' | 'percent';
|
|
4
4
|
export interface TypeNumeralProps extends Omit<TypeTextProps, 'children'> {
|
|
5
5
|
/** The number to be formatted */
|
|
6
6
|
number?: number | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumeralTypes.d.ts","sourceRoot":"","sources":["../../../src/Numeral/NumeralTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE9C,
|
|
1
|
+
{"version":3,"file":"NumeralTypes.d.ts","sourceRoot":"","sources":["../../../src/Numeral/NumeralTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEnE,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC;IACvE,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEnC,mIAAmI;IACnI,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,kIAAkI;IAClI,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE9B,2GAA2G;IAC3G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,sIAAsI;IACtI,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Container: import("styled-components").StyledComponent<{
|
|
3
|
-
({ fontSize, children, qa, color, ...rest }: import("../Text").TypeTextProps):
|
|
3
|
+
({ fontSize, children, qa, color, ...rest }: import("../Text").TypeTextProps): JSX.Element;
|
|
4
4
|
Headline: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
|
|
5
5
|
SubHeadline: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
|
|
6
6
|
SmallSubHeadline: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
|
|
@@ -10,7 +10,7 @@ export declare const Container: import("styled-components").StyledComponent<{
|
|
|
10
10
|
SmallBodyCopy: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
|
|
11
11
|
}, import("styled-components").DefaultTheme, {}, never>;
|
|
12
12
|
export declare const AbbrContainer: import("styled-components").StyledComponent<{
|
|
13
|
-
({ fontSize, children, qa, color, ...rest }: import("../Text").TypeTextProps):
|
|
13
|
+
({ fontSize, children, qa, color, ...rest }: import("../Text").TypeTextProps): JSX.Element;
|
|
14
14
|
Headline: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
|
|
15
15
|
SubHeadline: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
|
|
16
16
|
SmallSubHeadline: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TypePartnerLogoProps } from './PartnerLogoTypes';
|
|
3
|
-
declare const PartnerLogo: ({ partnerName, backgroundType, logoType, height, width, size, "aria-label": ariaLabel, svgProps, ...rest }: TypePartnerLogoProps) =>
|
|
3
|
+
declare const PartnerLogo: ({ partnerName, backgroundType, logoType, height, width, size, "aria-label": ariaLabel, svgProps, ...rest }: TypePartnerLogoProps) => JSX.Element;
|
|
4
4
|
export default PartnerLogo;
|
|
5
5
|
//# sourceMappingURL=PartnerLogo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PartnerLogo.d.ts","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PartnerLogo.d.ts","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogo.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAyBxD,QAAA,MAAM,WAAW,+GAUd,oBAAoB,gBAiCtB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|