@sproutsocial/racine 19.0.1 → 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 +42 -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__/EnumLogoNames.flow.js +1 -1
- package/__flow__/Icon/Icon.flow.js +5 -5
- package/__flow__/Icon/index.flow.js +2 -0
- package/__flow__/LogoViewBoxes.js +2 -4
- package/__flow__/Menu/Menu.flow.js +3 -0
- package/__flow__/Popout/Popout.flow.js +5 -0
- package/__flow__/index.flow.js +2 -3
- package/__flow__/types/theme.colors.flow.js +14 -0
- package/bin/racine-codemod.js +3 -5
- package/codemods/__tests__/icon-library.test.js +17 -2
- package/codemods/artifacts/deprecated-icon-map.json +38 -0
- package/codemods/artifacts/icon-map.json +343 -0
- package/codemods/codemod-docs.js +9 -3
- package/codemods/icon-library.js +17 -12
- package/codemods/icon-name-substitution.js +4 -5
- 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 +2 -2
- package/commonjs/Banner/Banner.flow.js +1 -1
- package/commonjs/Banner/Banner.js +9 -9
- 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 +4 -4
- 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 +3 -3
- 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 +2 -2
- 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/common.js +2 -2
- 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 +5 -5
- 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 -3
- package/commonjs/Icon/Icon.js +24 -13
- package/commonjs/Icon/index.flow.js +15 -2
- 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 +2 -2
- package/commonjs/Input/Input.flow.js +1 -1
- package/commonjs/Input/Input.js +10 -6
- 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 +4 -4
- 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/LogoViewBoxes.js +2 -4
- package/commonjs/Menu/Menu.flow.js +1 -1
- package/commonjs/Menu/Menu.js +53 -32
- 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 +2 -2
- 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 +3 -3
- package/commonjs/Select/styles.js +4 -5
- 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 +2 -2
- 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 +5 -4
- package/commonjs/TableHeaderCell/styles.js +1 -1
- package/commonjs/TableRowAccordion/TableRowAccordion.flow.js +1 -1
- package/commonjs/TableRowAccordion/TableRowAccordion.js +2 -2
- 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 +6 -6
- 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 +3 -3
- package/commonjs/ToggleHint/styles.js +1 -1
- package/commonjs/Token/Token.flow.js +1 -1
- package/commonjs/Token/Token.js +3 -3
- 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 +13 -9
- package/commonjs/index.js +0 -8
- package/commonjs/logoNames.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/mixins.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/logo.svg +1 -1
- package/dist/logoList.js +1 -1
- 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 +2 -2
- 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 +6 -4
- 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 +5 -5
- package/dist/types/Icon/Icon.d.ts.map +1 -1
- package/dist/types/Icon/IconTypes.d.ts +6 -8
- 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 +4 -4
- 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/Select/styles.d.ts.map +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/TableRowAccordion/TableRowAccordion.d.ts.map +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/TokenInput/TokenInputTypes.d.ts +1 -1
- package/dist/types/TokenInput/TokenInputTypes.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/index.d.ts +1 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/logoNames.d.ts +1 -1
- package/dist/types/logoNames.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/Badge/Badge.js +1 -1
- package/lib/Banner/Banner.js +8 -8
- package/lib/Breadcrumb/Breadcrumb.js +4 -4
- package/lib/Card/Card.js +2 -2
- package/lib/Card/subComponents.js +2 -2
- package/lib/Card/utils.js +1 -1
- package/lib/CharacterCounter/CharacterCounter.js +1 -1
- package/lib/Checkbox/Checkbox.js +2 -2
- 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/DatePicker/common.js +2 -2
- package/lib/Drawer/Drawer.js +4 -4
- package/lib/FormField/FormField.js +2 -2
- package/lib/Icon/Icon.flow.js +2 -1
- package/lib/Icon/Icon.js +24 -15
- package/lib/Icon/index.flow.js +2 -0
- package/lib/Image/Image.js +1 -1
- package/lib/Indicator/Indicator.js +2 -2
- package/lib/Input/Input.js +11 -6
- package/lib/KeyboardKey/KeyboardKey.js +1 -1
- package/lib/Label/Label.js +1 -1
- package/lib/Listbox/Listbox.js +4 -4
- package/lib/Loader/Loader.js +1 -1
- package/lib/LoaderButton/LoaderButton.js +3 -4
- package/lib/LogoViewBoxes.js +2 -4
- package/lib/Menu/Menu.js +53 -32
- 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/Modal/Modal.js +1 -1
- 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 +3 -3
- package/lib/Select/styles.js +3 -4
- package/lib/StatefulStory.js +2 -2
- package/lib/Switch/Switch.js +1 -1
- package/lib/TableCell/TableCell.flow.js +5 -1
- package/lib/TableCell/TableCell.js +1 -1
- package/lib/TableHeaderCell/TableHeaderCell.js +5 -4
- package/lib/TableRowAccordion/TableRowAccordion.js +2 -2
- 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/Toast/Toast.js +5 -5
- package/lib/ToggleHint/ToggleHint.js +3 -3
- package/lib/Token/Token.js +2 -2
- package/lib/TokenInput/TokenInput.js +4 -4
- package/lib/TokenInput/TokenScreenReaderStatus.js +2 -2
- package/lib/Tooltip/Tooltip.js +114 -44
- package/lib/index.flow.js +1 -1
- package/lib/index.js +0 -1
- package/lib/logoNames.js +1 -1
- 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/mixins.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 +49 -42
- package/__flow__/EnumIconNames.flow.js +0 -2
- package/__flow__/Icon/deprecatedIcons.flow.js +0 -40
- package/__flow__/IconViewBoxes.js +0 -387
- package/commonjs/EnumIconNames.flow.js +0 -1
- package/commonjs/EnumIconNames.js +0 -5
- package/commonjs/Icon/deprecatedIcons.flow.js +0 -46
- package/commonjs/Icon/deprecatedIcons.js +0 -46
- package/commonjs/IconViewBoxes.d.js +0 -5
- package/commonjs/IconViewBoxes.js +0 -389
- package/commonjs/Menu/utils/names.js +0 -8
- package/commonjs/iconNames.js +0 -8
- package/dist/icon.svg +0 -1
- package/dist/iconList.js +0 -1
- package/dist/types/EnumIconNames.d.ts +0 -2
- package/dist/types/EnumIconNames.d.ts.map +0 -1
- package/dist/types/Icon/deprecatedIcons.d.ts +0 -40
- package/dist/types/Icon/deprecatedIcons.d.ts.map +0 -1
- package/dist/types/Menu/utils/names.d.ts +0 -2
- package/dist/types/Menu/utils/names.d.ts.map +0 -1
- package/dist/types/iconNames.d.ts +0 -3
- package/dist/types/iconNames.d.ts.map +0 -1
- package/icons/active-listener.svg +0 -3
- package/icons/add-item.svg +0 -3
- package/icons/add-keyword.svg +0 -3
- package/icons/add-team-member.svg +0 -3
- package/icons/add-variable.svg +0 -3
- package/icons/address-card-outline.svg +0 -3
- package/icons/address-card-solid.svg +0 -3
- package/icons/adobe-experience-manager.svg +0 -3
- package/icons/ads.svg +0 -3
- package/icons/advocacy-outline.svg +0 -5
- package/icons/advocacy.svg +0 -3
- package/icons/android.svg +0 -3
- package/icons/apple.svg +0 -3
- package/icons/approval-indicator-outline.svg +0 -3
- package/icons/approval-indicator.svg +0 -3
- package/icons/archive.svg +0 -3
- package/icons/arrow-down-line.svg +0 -3
- package/icons/arrow-down.svg +0 -3
- package/icons/arrow-left-line.svg +0 -3
- package/icons/arrow-left.svg +0 -3
- package/icons/arrow-right-line.svg +0 -3
- package/icons/arrow-right.svg +0 -3
- package/icons/arrow-up-line.svg +0 -3
- package/icons/arrow-up.svg +0 -3
- package/icons/arrows.svg +0 -3
- package/icons/asset-library-outline.svg +0 -3
- package/icons/asset-library.svg +0 -3
- package/icons/assign.svg +0 -3
- package/icons/atom.svg +0 -3
- package/icons/audio.svg +0 -3
- package/icons/back-to-top.svg +0 -3
- package/icons/bambu-icon-outline.svg +0 -3
- package/icons/bambu-icon.svg +0 -3
- package/icons/barcode.svg +0 -3
- package/icons/basketball.svg +0 -3
- package/icons/bell-outline.svg +0 -3
- package/icons/bigcommerce.svg +0 -3
- package/icons/bitly.svg +0 -3
- package/icons/bold.svg +0 -3
- package/icons/book.svg +0 -3
- package/icons/bookmark.svg +0 -3
- package/icons/bot.svg +0 -3
- package/icons/browser.svg +0 -3
- package/icons/business.svg +0 -3
- package/icons/calendar-outline.svg +0 -3
- package/icons/calendar.svg +0 -3
- package/icons/camera-outline.svg +0 -3
- package/icons/camera-story.svg +0 -3
- package/icons/camera.svg +0 -3
- package/icons/campaign.svg +0 -3
- package/icons/canva.svg +0 -3
- package/icons/carousel.svg +0 -3
- package/icons/cart-plus-outline.svg +0 -3
- package/icons/cart-plus.svg +0 -3
- package/icons/check.svg +0 -3
- package/icons/chevron-down-filled.svg +0 -3
- package/icons/chevron-down.svg +0 -3
- package/icons/chevron-left.svg +0 -3
- package/icons/chevron-right.svg +0 -3
- package/icons/chevron-up-down-filled.svg +0 -3
- package/icons/chevron-up-filled.svg +0 -3
- package/icons/chevron-up.svg +0 -3
- package/icons/circle+.svg +0 -3
- package/icons/circle-check-outline.svg +0 -3
- package/icons/circle-check.svg +0 -3
- package/icons/circle.svg +0 -3
- package/icons/circles.svg +0 -3
- package/icons/circlex.svg +0 -3
- package/icons/click-to-view.svg +0 -3
- package/icons/clicks.svg +0 -3
- package/icons/clipboard-outline.svg +0 -3
- package/icons/clipboard.svg +0 -3
- package/icons/clock.svg +0 -3
- package/icons/closed-captioning.svg +0 -3
- package/icons/cloud.svg +0 -3
- package/icons/code.svg +0 -3
- package/icons/columns.svg +0 -3
- package/icons/comment-ai-outline.svg +0 -5
- package/icons/comment-ai.svg +0 -4
- package/icons/comment-alt-outline.svg +0 -3
- package/icons/comment-alt.svg +0 -3
- package/icons/comment-lines-alt-outline.svg +0 -3
- package/icons/comment.svg +0 -3
- package/icons/compact-density.svg +0 -3
- package/icons/compact-indicator.svg +0 -3
- package/icons/comparison.svg +0 -3
- package/icons/competitor.svg +0 -3
- package/icons/compose.svg +0 -3
- package/icons/content-suggestions.svg +0 -3
- package/icons/credit-card.svg +0 -3
- package/icons/crop.svg +0 -3
- package/icons/crown.svg +0 -3
- package/icons/dashboard.svg +0 -3
- package/icons/deconstructed-negative-sentiment.svg +0 -3
- package/icons/deconstructed-neutral-sentiment.svg +0 -3
- package/icons/deconstructed-positive-sentiment.svg +0 -3
- package/icons/discovery.svg +0 -3
- package/icons/dislike-outline.svg +0 -3
- package/icons/dislike.svg +0 -3
- package/icons/dm-link-outline.svg +0 -3
- package/icons/dm-link.svg +0 -3
- package/icons/dotdotdot.svg +0 -3
- package/icons/download.svg +0 -3
- package/icons/drafts-outline.svg +0 -3
- package/icons/drafts.svg +0 -3
- package/icons/dropbox.svg +0 -3
- package/icons/duplicate-outline.svg +0 -3
- package/icons/duplicate.svg +0 -3
- package/icons/emoji-outline.svg +0 -3
- package/icons/emoji.svg +0 -3
- package/icons/empty-image.svg +0 -3
- package/icons/engagement-per-post.svg +0 -3
- package/icons/engagements.svg +0 -3
- package/icons/error.svg +0 -3
- package/icons/exchange-alt.svg +0 -3
- package/icons/expanded-indicator.svg +0 -3
- package/icons/export.svg +0 -3
- package/icons/extended-circles.svg +0 -3
- package/icons/external-link-alt.svg +0 -3
- package/icons/external-link.svg +0 -3
- package/icons/extreme-negative-sentiment.svg +0 -12
- package/icons/eye-outline.svg +0 -3
- package/icons/eye-slash-outline.svg +0 -3
- package/icons/eye-slash.svg +0 -3
- package/icons/eye.svg +0 -3
- package/icons/facebook-audience-network.svg +0 -3
- package/icons/facebook-branded-content-outline.svg +0 -3
- package/icons/facebook-branded-content.svg +0 -3
- package/icons/facebook-groups.svg +0 -3
- package/icons/facebook.svg +0 -3
- package/icons/fb-reactions-angry.svg +0 -19
- package/icons/fb-reactions-haha.svg +0 -13
- package/icons/fb-reactions-like.svg +0 -11
- package/icons/fb-reactions-love.svg +0 -11
- package/icons/fb-reactions-sad.svg +0 -12
- package/icons/fb-reactions-wow.svg +0 -11
- package/icons/feedly.svg +0 -3
- package/icons/feeds.svg +0 -3
- package/icons/female.svg +0 -3
- package/icons/file-chart-line.svg +0 -3
- package/icons/file-edit.svg +0 -3
- package/icons/file-times-solid.svg +0 -3
- package/icons/filter.svg +0 -3
- package/icons/flag-outline.svg +0 -3
- package/icons/flag.svg +0 -3
- package/icons/flat-negative-sentiment-outline.svg +0 -4
- package/icons/flat-negative-sentiment.svg +0 -3
- package/icons/flat-neutral-sentiment-outline.svg +0 -4
- package/icons/flat-neutral-sentiment.svg +0 -3
- package/icons/flat-positive-sentiment-outline.svg +0 -4
- package/icons/flat-positive-sentiment.svg +0 -3
- package/icons/folder-open.svg +0 -3
- package/icons/folder.svg +0 -3
- package/icons/follow-outline.svg +0 -3
- package/icons/follow.svg +0 -3
- package/icons/follower-increase.svg +0 -3
- package/icons/following.svg +0 -3
- package/icons/font.svg +0 -3
- package/icons/full-access.svg +0 -3
- package/icons/gear.svg +0 -3
- package/icons/gears.svg +0 -10
- package/icons/github.svg +0 -3
- package/icons/glassdoor.svg +0 -3
- package/icons/glasses.svg +0 -3
- package/icons/globe.svg +0 -3
- package/icons/google-analytics-color.svg +0 -11
- package/icons/google-business-messages.svg +0 -3
- package/icons/google-drive.svg +0 -3
- package/icons/google-my-business.svg +0 -20
- package/icons/grip.svg +0 -3
- package/icons/h1.svg +0 -3
- package/icons/h2.svg +0 -3
- package/icons/h3.svg +0 -3
- package/icons/h4.svg +0 -3
- package/icons/hamburger.svg +0 -3
- package/icons/hand-sparkle-outline.svg +0 -6
- package/icons/hand-sparkle.svg +0 -3
- package/icons/hashtag.svg +0 -3
- package/icons/headset.svg +0 -3
- package/icons/heart-outline.svg +0 -3
- package/icons/heart.svg +0 -3
- package/icons/heartbeat.svg +0 -3
- package/icons/help-alt.svg +0 -3
- package/icons/help.svg +0 -3
- package/icons/hiking.svg +0 -3
- package/icons/history.svg +0 -3
- package/icons/home.svg +0 -3
- package/icons/hourglass.svg +0 -3
- package/icons/hubspot.svg +0 -10
- package/icons/image-caption.svg +0 -3
- package/icons/image.svg +0 -3
- package/icons/images.svg +0 -3
- package/icons/impressions-per-post.svg +0 -3
- package/icons/impressions.svg +0 -3
- package/icons/inactive-listener.svg +0 -3
- package/icons/inbox-action.svg +0 -3
- package/icons/inbox-views.svg +0 -3
- package/icons/inbox.svg +0 -3
- package/icons/indicator.svg +0 -3
- package/icons/industry.svg +0 -3
- package/icons/info.svg +0 -3
- package/icons/instagram.svg +0 -3
- package/icons/internal-activity-outline.svg +0 -3
- package/icons/internal-activity.svg +0 -3
- package/icons/italic.svg +0 -3
- package/icons/key.svg +0 -3
- package/icons/keyboard.svg +0 -3
- package/icons/laptop-phone.svg +0 -3
- package/icons/large-density.svg +0 -3
- package/icons/lift.svg +0 -3
- package/icons/like-outline.svg +0 -3
- package/icons/like.svg +0 -3
- package/icons/link.svg +0 -3
- package/icons/linkedin-audience-network.svg +0 -3
- package/icons/linkedin.svg +0 -3
- package/icons/list-ol.svg +0 -3
- package/icons/listening.svg +0 -3
- package/icons/lists.svg +0 -3
- package/icons/location-outline.svg +0 -3
- package/icons/location.svg +0 -3
- package/icons/lock.svg +0 -3
- package/icons/magic-wand.svg +0 -3
- package/icons/male.svg +0 -3
- package/icons/marketo.svg +0 -3
- package/icons/mention.svg +0 -3
- package/icons/message-preview-outline.svg +0 -3
- package/icons/message-preview.svg +0 -3
- package/icons/message.svg +0 -3
- package/icons/messages-outline.svg +0 -3
- package/icons/messages.svg +0 -3
- package/icons/messenger.svg +0 -11
- package/icons/metric-table.svg +0 -3
- package/icons/microsoft-dynamics.svg +0 -4
- package/icons/minus.svg +0 -3
- package/icons/mobile.svg +0 -3
- package/icons/monitor.svg +0 -3
- package/icons/moon.svg +0 -3
- package/icons/negative-sentiment.svg +0 -11
- package/icons/neutral-positive-sentiment.svg +0 -13
- package/icons/neutral-sentiment.svg +0 -11
- package/icons/new-trend.svg +0 -3
- package/icons/newspaper.svg +0 -3
- package/icons/no-access.svg +0 -3
- package/icons/notepad.svg +0 -3
- package/icons/notifications-publishing-outline.svg +0 -3
- package/icons/notifications-publishing.svg +0 -3
- package/icons/notifications.svg +0 -3
- package/icons/offline.svg +0 -3
- package/icons/online.svg +0 -3
- package/icons/paid-promotion-outline.svg +0 -3
- package/icons/paid-promotion.svg +0 -3
- package/icons/paid.svg +0 -3
- package/icons/paint.svg +0 -3
- package/icons/palette.svg +0 -3
- package/icons/paperclip.svg +0 -3
- package/icons/pause.svg +0 -3
- package/icons/pencil-outline.svg +0 -3
- package/icons/pencil.svg +0 -3
- package/icons/person.svg +0 -3
- package/icons/phone.svg +0 -3
- package/icons/pinterest-boards-outline.svg +0 -3
- package/icons/pinterest-boards.svg +0 -3
- package/icons/pinterest.svg +0 -3
- package/icons/play-circle.svg +0 -3
- package/icons/play.svg +0 -3
- package/icons/plug.svg +0 -3
- package/icons/plus.svg +0 -3
- package/icons/positive-sentiment.svg +0 -12
- package/icons/power-up-outline.svg +0 -3
- package/icons/power-up.svg +0 -3
- package/icons/profile-connect.svg +0 -3
- package/icons/profile-disconnect.svg +0 -3
- package/icons/publishing-outline.svg +0 -3
- package/icons/publishing.svg +0 -3
- package/icons/puzzle-piece.svg +0 -3
- package/icons/qr-code.svg +0 -3
- package/icons/queue.svg +0 -3
- package/icons/quotes-solid.svg +0 -3
- package/icons/recommendation.svg +0 -3
- package/icons/reddit-alien.svg +0 -3
- package/icons/reddit.svg +0 -3
- package/icons/reels-outline.svg +0 -4
- package/icons/reels.svg +0 -3
- package/icons/referrals.svg +0 -3
- package/icons/refresh.svg +0 -3
- package/icons/rejected.svg +0 -3
- package/icons/reply-outline.svg +0 -3
- package/icons/reply.svg +0 -3
- package/icons/reporting-period.svg +0 -3
- package/icons/reporting.svg +0 -3
- package/icons/reports-home.svg +0 -3
- package/icons/reports.svg +0 -3
- package/icons/retweet.svg +0 -3
- package/icons/route.svg +0 -3
- package/icons/rss.svg +0 -3
- package/icons/sales.svg +0 -3
- package/icons/salesforce-cloud.svg +0 -3
- package/icons/salesforce.svg +0 -3
- package/icons/save-assets.svg +0 -3
- package/icons/saved-messages.svg +0 -3
- package/icons/saved-reply-outline.svg +0 -3
- package/icons/saved-reply.svg +0 -3
- package/icons/search.svg +0 -3
- package/icons/send-again-outline.svg +0 -4
- package/icons/send-again.svg +0 -4
- package/icons/sent-message-outline.svg +0 -3
- package/icons/sent-message.svg +0 -3
- package/icons/share.svg +0 -3
- package/icons/shopify.svg +0 -5
- package/icons/shopping-bag-outline.svg +0 -3
- package/icons/shopping-bag.svg +0 -3
- package/icons/show-navigation.svg +0 -3
- package/icons/slack.svg +0 -3
- package/icons/small-density.svg +0 -3
- package/icons/smiley.svg +0 -3
- package/icons/some-access.svg +0 -3
- package/icons/sparkles.svg +0 -3
- package/icons/spike-alert.svg +0 -3
- package/icons/star-half-alt-solid.svg +0 -3
- package/icons/star-of-life.svg +0 -3
- package/icons/star-outline.svg +0 -3
- package/icons/star.svg +0 -3
- package/icons/sticky-note-outline.svg +0 -3
- package/icons/sticky-note.svg +0 -3
- package/icons/stories.svg +0 -3
- package/icons/story.svg +0 -3
- package/icons/suggestions.svg +0 -3
- package/icons/sun.svg +0 -3
- package/icons/tag-outline.svg +0 -3
- package/icons/tag.svg +0 -3
- package/icons/targeting-outline.svg +0 -3
- package/icons/targeting.svg +0 -3
- package/icons/tasks-check.svg +0 -4
- package/icons/tasks-outline.svg +0 -3
- package/icons/tasks.svg +0 -3
- package/icons/team-conversation-outline.svg +0 -3
- package/icons/team-conversation.svg +0 -3
- package/icons/team-sprout-outline.svg +0 -5
- package/icons/team-sprout.svg +0 -4
- package/icons/team.svg +0 -3
- package/icons/text-asset.svg +0 -3
- package/icons/text.svg +0 -3
- package/icons/tiktok.svg +0 -5
- package/icons/times.svg +0 -3
- package/icons/tools.svg +0 -3
- package/icons/trash-can-outline.svg +0 -3
- package/icons/trash-can.svg +0 -3
- package/icons/trend-down.svg +0 -3
- package/icons/trend-neutral.svg +0 -3
- package/icons/trend-up.svg +0 -3
- package/icons/trends.svg +0 -3
- package/icons/triangle-black.svg +0 -3
- package/icons/triangle.svg +0 -3
- package/icons/tripadvisor-circle-outline.svg +0 -3
- package/icons/tripadvisor-circle.svg +0 -11
- package/icons/tripadvisor.svg +0 -11
- package/icons/trophy-outline.svg +0 -3
- package/icons/tumblr.svg +0 -3
- package/icons/twitter-audience-network.svg +0 -3
- package/icons/twitter.svg +0 -3
- package/icons/underline.svg +0 -3
- package/icons/unfollow-outline.svg +0 -3
- package/icons/unfollow.svg +0 -3
- package/icons/unlink.svg +0 -3
- package/icons/unlock.svg +0 -3
- package/icons/upload.svg +0 -3
- package/icons/user-circle.svg +0 -3
- package/icons/users.svg +0 -3
- package/icons/verified.svg +0 -3
- package/icons/video-camera-story.svg +0 -3
- package/icons/video-camera.svg +0 -3
- package/icons/vip.svg +0 -3
- package/icons/weight.svg +0 -3
- package/icons/whatsapp.svg +0 -20
- package/icons/window-maximize.svg +0 -3
- package/icons/window-minimize.svg +0 -3
- package/icons/window-regular.svg +0 -3
- package/icons/window-restore.svg +0 -3
- package/icons/woocommerce.svg +0 -3
- package/icons/x.svg +0 -3
- package/icons/yelp-full-star.svg +0 -3
- package/icons/yelp-half-star.svg +0 -4
- package/icons/yelp.svg +0 -10
- package/icons/youtube.svg +0 -3
- package/icons/zendesk.svg +0 -3
- package/lib/EnumIconNames.flow.js +0 -0
- package/lib/EnumIconNames.js +0 -1
- package/lib/Icon/deprecatedIcons.flow.js +0 -39
- package/lib/Icon/deprecatedIcons.js +0 -39
- package/lib/IconViewBoxes.d.js +0 -1
- package/lib/IconViewBoxes.js +0 -387
- package/lib/Menu/utils/names.js +0 -1
- package/lib/iconNames.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.colors.d.ts","sourceRoot":"","sources":["../../../src/types/theme.colors.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAC;AACjE,
|
|
1
|
+
{"version":3,"file":"theme.colors.d.ts","sourceRoot":"","sources":["../../../src/types/theme.colors.ts"],"names":[],"mappings":"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"}
|
|
@@ -2,19 +2,19 @@ import { breakpoints, typography, fontWeights, radii, borders, borderWidths, sha
|
|
|
2
2
|
import type { TypeColors } from './theme.colors';
|
|
3
3
|
import type { TypeFontFamilyString } from '../themes/light/theme';
|
|
4
4
|
import { datePicker, navigation, analytics, listening, growth, cardControl } from '../themes/extendedThemes/sproutTheme/light/theme';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
5
|
+
export type TypeThemeMode = 'light' | 'dark';
|
|
6
|
+
export type TypeBreakpoint = typeof breakpoints;
|
|
7
|
+
export type TypeTypography = typeof typography;
|
|
8
|
+
export type TypeFontWeight = typeof fontWeights;
|
|
9
|
+
export type TypeFontFamily = TypeFontFamilyString;
|
|
10
|
+
export type TypeSpace = typeof space;
|
|
11
|
+
export type TypeColor = TypeColors;
|
|
12
|
+
export type TypeRadii = typeof radii;
|
|
13
|
+
export type TypeBorder = typeof borders;
|
|
14
|
+
export type TypeBorderWidth = typeof borderWidths;
|
|
15
|
+
export type TypeShadow = typeof shadows;
|
|
16
|
+
export type TypeEasing = typeof easing;
|
|
17
|
+
export type TypeDuration = typeof duration;
|
|
18
18
|
export interface TypeTheme {
|
|
19
19
|
mode: TypeThemeMode;
|
|
20
20
|
breakpoints: TypeBreakpoint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/types/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,KAAK,EACL,OAAO,EACP,YAAY,EACZ,OAAO,EACP,KAAK,EACL,MAAM,EACN,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAClE,OAAO,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,MAAM,EACN,WAAW,EACZ,MAAM,oDAAoD,CAAC;AAE5D,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/types/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,KAAK,EACL,OAAO,EACP,YAAY,EACZ,OAAO,EACP,KAAK,EACL,MAAM,EACN,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAClE,OAAO,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,MAAM,EACN,WAAW,EACZ,MAAM,oDAAoD,CAAC;AAE5D,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAC7C,MAAM,MAAM,cAAc,GAAG,OAAO,WAAW,CAAC;AAChD,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAC;AAC/C,MAAM,MAAM,cAAc,GAAG,OAAO,WAAW,CAAC;AAChD,MAAM,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAClD,MAAM,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC;AACrC,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC;AACnC,MAAM,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,OAAO,OAAO,CAAC;AACxC,MAAM,MAAM,eAAe,GAAG,OAAO,YAAY,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,OAAO,OAAO,CAAC;AACxC,MAAM,MAAM,UAAU,GAAG,OAAO,MAAM,CAAC;AACvC,MAAM,MAAM,YAAY,GAAG,OAAO,QAAQ,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,cAAc,CAAC;IAC5B,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,cAAc,CAAC;IAC3B,WAAW,EAAE,cAAc,CAAC;IAC5B,UAAU,EAAE,cAAc,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,EAAE,eAAe,CAAC;IAC9B,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAGD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,MAAM,EAAE,SAAS,GAAG;QAClB,UAAU,EAAE,OAAO,UAAU,CAAC;QAC9B,UAAU,EAAE,OAAO,UAAU,CAAC;QAC9B,SAAS,EAAE,OAAO,SAAS,CAAC;QAC5B,SAAS,EAAE,OAAO,SAAS,CAAC;QAC5B,MAAM,EAAE,OAAO,MAAM,CAAC;QACtB,WAAW,EAAE,OAAO,WAAW,CAAC;KACjC,CAAC;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MatcherOptions } from '@testing-library/react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type TypeQaValue = string | number | boolean;
|
|
3
|
+
export type TypeQaObject = {
|
|
4
4
|
[K in string]: TypeQaValue;
|
|
5
5
|
};
|
|
6
6
|
export declare const dataQaLabelQueries: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataQaLabelQueries.d.ts","sourceRoot":"","sources":["../../../src/utils/dataQaLabelQueries.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,
|
|
1
|
+
{"version":3,"file":"dataQaLabelQueries.d.ts","sourceRoot":"","sources":["../../../src/utils/dataQaLabelQueries.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG;KACxB,CAAC,IAAI,MAAM,GAAG,WAAW;CAC3B,CAAC;AAyDF,eAAO,MAAM,kBAAkB;;uCA1BlB,WAAW,YACZ,YAAY,YACb,cAAc;;;;;CA+BxB,CAAC"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type textContentRef = ((node: Node) => void) & {
|
|
2
2
|
current?: string;
|
|
3
3
|
};
|
|
4
4
|
export declare function useTextContent(initial: string): textContentRef;
|
|
5
|
-
|
|
5
|
+
type TypeMutationObserverInitRequired = {
|
|
6
6
|
childList: true;
|
|
7
7
|
} | {
|
|
8
8
|
attributes: true;
|
|
9
9
|
} | {
|
|
10
10
|
characterData: true;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type TypeMutationObserverInit = {
|
|
13
13
|
subtree?: boolean;
|
|
14
14
|
attributeOldValue?: boolean;
|
|
15
15
|
characterDataOldValue?: boolean;
|
|
16
16
|
attributeFilter?: Array<string>;
|
|
17
17
|
} & TypeMutationObserverInitRequired;
|
|
18
|
-
|
|
18
|
+
type TypeMutationObserverCallback = (mutationList?: MutationRecord[], observer?: MutationObserver) => any;
|
|
19
19
|
export declare function useMutationObserver(targetNode: Node | null, config: TypeMutationObserverInit, callback?: TypeMutationObserverCallback): undefined;
|
|
20
20
|
export declare function useMutationObserverOnce(targetNode: Node | null, config: TypeMutationObserverInit, callback: TypeMutationObserverCallback): undefined;
|
|
21
|
-
|
|
21
|
+
type TypeSingleSelectProps<T extends string> = {
|
|
22
22
|
initialValue?: T | '';
|
|
23
23
|
onChange?: (value: string | T) => any;
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
type TypeMultiSelectProps<T extends string> = {
|
|
26
26
|
initialValue?: T[];
|
|
27
27
|
onChange?: (value: Array<string | T>) => any;
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks.ts"],"names":[],"mappings":"AAWA,
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,GAAG;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AACzE,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,kBAW7C;AAED,KAAK,gCAAgC,GACjC;IACE,SAAS,EAAE,IAAI,CAAC;CACjB,GACD;IACE,UAAU,EAAE,IAAI,CAAC;CAClB,GACD;IACE,aAAa,EAAE,IAAI,CAAC;CACrB,CAAC;AAEN,KAAK,wBAAwB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC,GAAG,gCAAgC,CAAC;AAErC,KAAK,4BAA4B,GAAG,CAClC,YAAY,CAAC,EAAE,cAAc,EAAE,EAC/B,QAAQ,CAAC,EAAE,gBAAgB,KAExB,GAAG,CAAC;AAKT,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,IAAI,GAAG,IAAI,EACvB,MAAM,EAAE,wBAAwB,EAChC,QAAQ,GAAE,4BAA8C,aA2BzD;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,IAAI,GAAG,IAAI,EACvB,MAAM,EAAE,wBAAwB,EAChC,QAAQ,EAAE,4BAA4B,aASvC;AAED,KAAK,qBAAqB,CAAC,CAAC,SAAS,MAAM,IAAI;IAC7C,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;IAEtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC;CACvC,CAAC;AAEF,KAAK,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI;IAC5C,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;IAEnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,SAAS;;yBAcP,MAAM;CAUpB,CAAC;AAyBF,eAAO,MAAM,cAAc;;yBAiBZ,MAAM;;CAsBpB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAiC7D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementRef } from 'react';
|
|
2
2
|
export declare const canUseDOM: () => boolean;
|
|
3
|
-
|
|
3
|
+
type TypeRef = {
|
|
4
4
|
current: null | HTMLInputElement;
|
|
5
5
|
} | ((arg0: ElementRef<any> | HTMLElement) => void);
|
|
6
6
|
export declare const mergeRefs: (refs: (TypeRef | null)[]) => TypeRef | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AAEjC,eAAO,MAAM,SAAS,eAMrB,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AAEjC,eAAO,MAAM,SAAS,eAMrB,CAAC;AAEF,KAAK,OAAO,GACR;IACE,OAAO,EAAE,IAAI,GAAG,gBAAgB,CAAC;CAClC,GAED,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,WAAW,KAAK,IAAI,CAAC,CAAC;AAIpD,eAAO,MAAM,SAAS,SAAU,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,mBAcjD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,EACrC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EACtB,EAAE,EAAE,CAAC,GACJ,EAAE,IAAI,CAAC,CAET;AAGD,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,IAAI,IAAI,CAIrE;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,IAAI,OAAO,CAK3E"}
|
|
@@ -1,69 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { act, cleanup, createEvent, fireEvent, queries, waitFor, waitForElementToBeRemoved, RenderOptions } from '@testing-library/react';
|
|
1
|
+
import { act, cleanup, createEvent, fireEvent, queries, waitFor, waitForElementToBeRemoved } from '@testing-library/react';
|
|
3
2
|
import userEvent from '@testing-library/user-event';
|
|
4
|
-
declare const customRender:
|
|
5
|
-
runA11yCheck: () => Promise<void>;
|
|
6
|
-
container: HTMLElement;
|
|
7
|
-
baseElement: HTMLElement;
|
|
8
|
-
debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
|
|
9
|
-
rerender: (ui: React.ReactElement<any, string | React.JSXElementConstructor<any>>) => void;
|
|
10
|
-
unmount: () => void;
|
|
11
|
-
asFragment: () => DocumentFragment;
|
|
12
|
-
queryByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement | null;
|
|
13
|
-
queryAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
14
|
-
getAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement[];
|
|
15
|
-
getByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement;
|
|
16
|
-
findAllByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
17
|
-
findByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
18
|
-
getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
|
|
19
|
-
getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
20
|
-
queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
21
|
-
queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
22
|
-
findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
23
|
-
findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
24
|
-
getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
|
|
25
|
-
getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
26
|
-
queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
|
|
27
|
-
queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
28
|
-
findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
29
|
-
findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
30
|
-
getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
|
|
31
|
-
getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
32
|
-
queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
33
|
-
queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
34
|
-
findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
35
|
-
findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
36
|
-
getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
|
|
37
|
-
getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
38
|
-
queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
|
|
39
|
-
queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
40
|
-
findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
41
|
-
findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
42
|
-
getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
|
|
43
|
-
getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
44
|
-
queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
|
|
45
|
-
queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
46
|
-
findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
47
|
-
findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
48
|
-
getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
|
|
49
|
-
getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
50
|
-
queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
|
|
51
|
-
queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
52
|
-
findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
53
|
-
findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
54
|
-
getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement;
|
|
55
|
-
getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
|
|
56
|
-
queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement | null;
|
|
57
|
-
queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
|
|
58
|
-
findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
59
|
-
findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
60
|
-
getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
|
|
61
|
-
getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
62
|
-
queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
|
|
63
|
-
queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
64
|
-
findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
65
|
-
findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
66
|
-
};
|
|
3
|
+
declare const customRender: any;
|
|
67
4
|
declare const customWithin: (element: HTMLElement) => {
|
|
68
5
|
getByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T;
|
|
69
6
|
getAllByLabelText<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_1[];
|
|
@@ -169,63 +106,6 @@ declare const customWithin: (element: HTMLElement) => {
|
|
|
169
106
|
findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
170
107
|
findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
171
108
|
};
|
|
172
|
-
declare const customScreen:
|
|
173
|
-
getByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement);
|
|
174
|
-
getAllByLabelText: (<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_1[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
175
|
-
queryByLabelText: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_2 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null);
|
|
176
|
-
queryAllByLabelText: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
177
|
-
findByLabelText: (<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_4>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
178
|
-
findAllByLabelText: (<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_5[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
179
|
-
getByPlaceholderText: (<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_6) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
|
|
180
|
-
getAllByPlaceholderText: (<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_7[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
|
|
181
|
-
queryByPlaceholderText: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_8 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
|
|
182
|
-
queryAllByPlaceholderText: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
|
|
183
|
-
findByPlaceholderText: (<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_10>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
184
|
-
findAllByPlaceholderText: (<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_11[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
185
|
-
getByText: (<T_12 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_12) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement);
|
|
186
|
-
getAllByText: (<T_13 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_13[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
187
|
-
queryByText: (<T_14 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_14 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null);
|
|
188
|
-
queryAllByText: (<T_15 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_15[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
189
|
-
findByText: (<T_16 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_16>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
190
|
-
findAllByText: (<T_17 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_17[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
191
|
-
getByAltText: (<T_18 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_18) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
|
|
192
|
-
getAllByAltText: (<T_19 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_19[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
|
|
193
|
-
queryByAltText: (<T_20 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_20 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
|
|
194
|
-
queryAllByAltText: (<T_21 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_21[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
|
|
195
|
-
findByAltText: (<T_22 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_22>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
196
|
-
findAllByAltText: (<T_23 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_23[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
197
|
-
getByTitle: (<T_24 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_24) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
|
|
198
|
-
getAllByTitle: (<T_25 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_25[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
|
|
199
|
-
queryByTitle: (<T_26 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_26 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
|
|
200
|
-
queryAllByTitle: (<T_27 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_27[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
|
|
201
|
-
findByTitle: (<T_28 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_28>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
202
|
-
findAllByTitle: (<T_29 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_29[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
203
|
-
getByDisplayValue: (<T_30 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_30) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
|
|
204
|
-
getAllByDisplayValue: (<T_31 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_31[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
|
|
205
|
-
queryByDisplayValue: (<T_32 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_32 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
|
|
206
|
-
queryAllByDisplayValue: (<T_33 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_33[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
|
|
207
|
-
findByDisplayValue: (<T_34 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_34>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
208
|
-
findAllByDisplayValue: (<T_35 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_35[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
209
|
-
getByRole: (<T_36 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_36) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement);
|
|
210
|
-
getAllByRole: (<T_37 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_37[]) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[]);
|
|
211
|
-
queryByRole: (<T_38 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_38 | null) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement | null);
|
|
212
|
-
queryAllByRole: (<T_39 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_39[]) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[]);
|
|
213
|
-
findByRole: (<T_40 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_40>) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
214
|
-
findAllByRole: (<T_41 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_41[]>) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
215
|
-
getByTestId: (<T_42 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_42) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
|
|
216
|
-
getAllByTestId: (<T_43 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_43[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
|
|
217
|
-
queryByTestId: (<T_44 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_44 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
|
|
218
|
-
queryAllByTestId: (<T_45 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_45[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
|
|
219
|
-
findByTestId: (<T_46 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_46>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
220
|
-
findAllByTestId: (<T_47 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_47[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
221
|
-
queryByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement | null;
|
|
222
|
-
queryAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
223
|
-
getAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement[];
|
|
224
|
-
getByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement;
|
|
225
|
-
findAllByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
226
|
-
findByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
227
|
-
debug: (element?: Element | HTMLDocument | (Element | HTMLDocument)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
|
|
228
|
-
logTestingPlaygroundURL: (element?: Element | HTMLDocument | undefined) => string;
|
|
229
|
-
};
|
|
109
|
+
declare const customScreen: any;
|
|
230
110
|
export { act, cleanup, createEvent, customRender as render, customWithin as within, fireEvent, customScreen as screen, userEvent, waitFor, waitForElementToBeRemoved, };
|
|
231
111
|
//# sourceMappingURL=react-testing-library.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-testing-library.d.ts","sourceRoot":"","sources":["../../../src/utils/react-testing-library.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-testing-library.d.ts","sourceRoot":"","sources":["../../../src/utils/react-testing-library.ts"],"names":[],"mappings":"AACA,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,SAAS,EACT,OAAO,EAGP,OAAO,EACP,yBAAyB,EAG1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAWpD,QAAA,MAAM,YAAY,EAAE,GAkBnB,CAAC;AAEF,QAAA,MAAM,YAAY,YAAa,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAI9E,QAAA,MAAM,YAAY,EAAE,GAGnB,CAAC;AAEF,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,YAAY,IAAI,MAAM,EACtB,YAAY,IAAI,MAAM,EACtB,SAAS,EACT,YAAY,IAAI,MAAM,EACtB,SAAS,EACT,OAAO,EACP,yBAAyB,GAC1B,CAAC"}
|
package/lib/Avatar/Avatar.js
CHANGED
|
@@ -4,8 +4,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
4
4
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
6
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
8
|
-
function _iterableToArrayLimit(
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
9
9
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10
10
|
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; }
|
|
11
11
|
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; }
|
|
@@ -26,20 +26,24 @@ var AvatarText = styled(function (_ref) {
|
|
|
26
26
|
}).withConfig({
|
|
27
27
|
displayName: "Avatar__AvatarText",
|
|
28
28
|
componentId: "sc-1ffu253-0"
|
|
29
|
-
})(["font-size:", "px;color:", "
|
|
29
|
+
})(["font-size:", "px;color:", ";"], function (props) {
|
|
30
30
|
return props.fontSize;
|
|
31
|
-
}, function (
|
|
32
|
-
|
|
31
|
+
}, function (_ref2) {
|
|
32
|
+
var theme = _ref2.theme,
|
|
33
|
+
type = _ref2.type,
|
|
34
|
+
color = _ref2.color;
|
|
35
|
+
return color ? color : theme.colors.text.decorative[type];
|
|
33
36
|
});
|
|
34
37
|
var Container = styled(Box).withConfig({
|
|
35
38
|
displayName: "Avatar__Container",
|
|
36
39
|
componentId: "sc-1ffu253-1"
|
|
37
|
-
})(["", ""], function (
|
|
38
|
-
var theme =
|
|
39
|
-
type =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
})(["", ""], function (_ref3) {
|
|
41
|
+
var theme = _ref3.theme,
|
|
42
|
+
type = _ref3.type,
|
|
43
|
+
bg = _ref3.bg,
|
|
44
|
+
$src = _ref3.$src,
|
|
45
|
+
borderColor = _ref3.borderColor;
|
|
46
|
+
return css(["background:", ";border:", ";border-color:", ";color:", ";"], bg ? bg : theme.colors.container.background.decorative[type], $src ? 'none' : "1px solid", borderColor ? borderColor : theme.colors.container.border.decorative[type], theme.colors.text.decorative[type]);
|
|
43
47
|
});
|
|
44
48
|
var getInitials = function getInitials(name) {
|
|
45
49
|
var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '?';
|
|
@@ -50,21 +54,38 @@ var getInitials = function getInitials(name) {
|
|
|
50
54
|
}) // Watch out for empty strings
|
|
51
55
|
.join('');
|
|
52
56
|
};
|
|
53
|
-
export var
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
export var getAvatarColor = function getAvatarColor(name, type) {
|
|
58
|
+
if (type !== 'auto') {
|
|
59
|
+
return type;
|
|
60
|
+
}
|
|
61
|
+
var colors = ['purple', 'green', 'blue', 'yellow', 'red', 'orange'];
|
|
62
|
+
|
|
63
|
+
// Condense the avatar name down into a number
|
|
64
|
+
var seed = name.split('').reduce(function (seed, char) {
|
|
65
|
+
return seed + char.charCodeAt(0);
|
|
66
|
+
}, 0);
|
|
67
|
+
|
|
68
|
+
// Use that seed modulo the number of available colors to generate
|
|
69
|
+
// a "random" color value which will always be consistent
|
|
70
|
+
// for a given string. As a failsafe, return neutral (this should never happen).
|
|
71
|
+
return colors[seed % colors.length] || 'neutral';
|
|
72
|
+
};
|
|
73
|
+
export var Avatar = function Avatar(_ref4) {
|
|
74
|
+
var _ref4$appearance = _ref4.appearance,
|
|
75
|
+
appearance = _ref4$appearance === void 0 ? 'circle' : _ref4$appearance,
|
|
76
|
+
_ref4$name = _ref4.name,
|
|
77
|
+
name = _ref4$name === void 0 ? '' : _ref4$name,
|
|
78
|
+
src = _ref4.src,
|
|
79
|
+
_ref4$variant = _ref4.variant,
|
|
80
|
+
variant = _ref4$variant === void 0 ? 'light' : _ref4$variant,
|
|
81
|
+
_ref4$type = _ref4.type,
|
|
82
|
+
type = _ref4$type === void 0 ? defaultType : _ref4$type,
|
|
83
|
+
_ref4$size = _ref4.size,
|
|
84
|
+
size = _ref4$size === void 0 ? '40px' : _ref4$size,
|
|
85
|
+
bg = _ref4.bg,
|
|
86
|
+
color = _ref4.color,
|
|
87
|
+
rest = _objectWithoutProperties(_ref4, _excluded2);
|
|
88
|
+
var colorType = getAvatarColor(name, type);
|
|
68
89
|
var _useState = useState(false),
|
|
69
90
|
_useState2 = _slicedToArray(_useState, 2),
|
|
70
91
|
imageFailedLoading = _useState2[0],
|
|
@@ -91,12 +112,14 @@ export var Avatar = function Avatar(_ref3) {
|
|
|
91
112
|
title: name,
|
|
92
113
|
bg: bg,
|
|
93
114
|
variant: variant,
|
|
94
|
-
type:
|
|
95
|
-
"data-qa-user-avatar": name
|
|
115
|
+
type: colorType,
|
|
116
|
+
"data-qa-user-avatar": name,
|
|
117
|
+
$src: src
|
|
96
118
|
}, rest), !src || imageFailedLoading ? /*#__PURE__*/React.createElement(AvatarText, {
|
|
97
119
|
lineHeight: size,
|
|
98
120
|
fontWeight: "semibold",
|
|
99
121
|
fontSize: fontSize,
|
|
122
|
+
type: colorType,
|
|
100
123
|
color: color
|
|
101
124
|
}, initials) : /*#__PURE__*/React.createElement(Image, {
|
|
102
125
|
alt: name,
|
package/lib/Avatar/index.flow.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from "./Avatar.flow";
|
|
1
|
+
export * from "./Avatar.flow";
|
|
2
|
+
export { AvatarColorOptions } from "./constants.flow";
|
package/lib/Avatar/index.js
CHANGED
package/lib/Badge/Badge.js
CHANGED
|
@@ -42,7 +42,7 @@ var Badge = function Badge(_ref) {
|
|
|
42
42
|
}, iconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
43
43
|
mr: 200,
|
|
44
44
|
name: iconName,
|
|
45
|
-
size: size === 'small' ? 'mini' : '
|
|
45
|
+
size: size === 'small' ? 'mini' : 'small',
|
|
46
46
|
"aria-hidden": true
|
|
47
47
|
}) : null, children || text));
|
|
48
48
|
};
|
package/lib/Banner/Banner.js
CHANGED
|
@@ -10,16 +10,16 @@ import Container, { StyledBannerIcon } from "./styles";
|
|
|
10
10
|
var getBannerIconName = function getBannerIconName(type) {
|
|
11
11
|
switch (type) {
|
|
12
12
|
case 'success':
|
|
13
|
-
return 'circle-check-
|
|
13
|
+
return 'circle-check-outline';
|
|
14
14
|
case 'error':
|
|
15
|
-
return 'triangle';
|
|
15
|
+
return 'triangle-exclamation-outline';
|
|
16
16
|
case 'warning':
|
|
17
|
-
return 'triangle';
|
|
17
|
+
return 'triangle-exclamation-outline';
|
|
18
18
|
case 'opportunity':
|
|
19
|
-
return '
|
|
19
|
+
return 'sparkle-outline';
|
|
20
20
|
case 'info':
|
|
21
21
|
default:
|
|
22
|
-
return '
|
|
22
|
+
return 'circle-i-outline';
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
var getBannerIconColor = function getBannerIconColor(type) {
|
|
@@ -62,8 +62,8 @@ var Banner = function Banner(_ref) {
|
|
|
62
62
|
color: getBannerIconColor(type),
|
|
63
63
|
className: "Icon",
|
|
64
64
|
fixedWidth: true,
|
|
65
|
-
mt:
|
|
66
|
-
mr:
|
|
65
|
+
mt: 100,
|
|
66
|
+
mr: 350
|
|
67
67
|
}, typeIconProps)), text, onClose && /*#__PURE__*/React.createElement(Box, {
|
|
68
68
|
ml: "auto",
|
|
69
69
|
pl: 400,
|
|
@@ -73,7 +73,7 @@ var Banner = function Banner(_ref) {
|
|
|
73
73
|
onClick: onClose,
|
|
74
74
|
ariaLabel: closeButtonLabel
|
|
75
75
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
76
|
-
name: "x",
|
|
76
|
+
name: "x-outline",
|
|
77
77
|
"aria-hidden": true
|
|
78
78
|
})))));
|
|
79
79
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var _excluded = ["children", "href"],
|
|
2
2
|
_excluded2 = ["ariaLabel", "overflow", "children"];
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
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; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
function _typeof(
|
|
8
|
+
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); }
|
|
9
9
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
10
10
|
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; }
|
|
11
11
|
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; }
|
|
@@ -40,7 +40,7 @@ var Breadcrumb = function Breadcrumb(_ref2) {
|
|
|
40
40
|
px: 200,
|
|
41
41
|
py: 0
|
|
42
42
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
43
|
-
name: "
|
|
43
|
+
name: "ellipsis-horizontal-solid",
|
|
44
44
|
"aria-hidden": true
|
|
45
45
|
}))), listItems.map(function (item, i) {
|
|
46
46
|
// @ts-notes - item is a childNode which can be a string or number but `cloneElement` requires props
|