@sproutsocial/racine 24.2.0 → 25.0.1
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 +46 -0
- package/codemods/__tests__/icon-library.test.js +5 -11
- package/commonjs/Avatar/Avatar.js +3 -2
- package/commonjs/Duration/Duration.js +3 -30
- package/commonjs/Duration/utils.js +36 -2
- package/commonjs/themes/light/theme.js +6 -2
- package/dist/types/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/Duration/Duration.d.ts.map +1 -1
- package/dist/types/Duration/utils.d.ts +8 -0
- package/dist/types/Duration/utils.d.ts.map +1 -1
- package/dist/types/themes/dark/theme.d.ts +4 -0
- package/dist/types/themes/dark/theme.d.ts.map +1 -1
- package/dist/types/themes/light/theme.d.ts +8 -0
- package/dist/types/themes/light/theme.d.ts.map +1 -1
- package/lib/Avatar/Avatar.js +3 -2
- package/lib/Duration/Duration.js +2 -29
- package/lib/Duration/utils.js +36 -2
- package/lib/themes/light/theme.js +6 -2
- package/package.json +19 -26
- package/__flow__/Avatar/Avatar.flow.js +0 -17
- package/__flow__/Avatar/constants.flow.js +0 -11
- package/__flow__/Avatar/index.flow.js +0 -3
- package/__flow__/Badge/Badge.flow.js +0 -21
- package/__flow__/Badge/constants.flow.js +0 -28
- package/__flow__/Badge/index.flow.js +0 -3
- package/__flow__/Banner/Banner.flow.js +0 -22
- package/__flow__/Banner/index.flow.js +0 -2
- package/__flow__/Box/Box.flow.js +0 -22
- package/__flow__/Box/index.flow.js +0 -2
- package/__flow__/Breadcrumb/Breadcrumb.flow.js +0 -22
- package/__flow__/Breadcrumb/index.flow.js +0 -2
- package/__flow__/Button/Button.flow.js +0 -36
- package/__flow__/Button/index.flow.js +0 -2
- package/__flow__/Card/Card.flow.js +0 -9
- package/__flow__/Card/CardTypes.flow.js +0 -73
- package/__flow__/Card/index.flow.js +0 -3
- package/__flow__/CharacterCounter/CharacterCounter.flow.js +0 -12
- package/__flow__/CharacterCounter/index.flow.js +0 -2
- package/__flow__/ChartLegend/ChartLegend.flow.js +0 -18
- package/__flow__/ChartLegend/index.flow.js +0 -2
- package/__flow__/Checkbox/Checkbox.flow.js +0 -24
- package/__flow__/Checkbox/index.flow.js +0 -2
- package/__flow__/Collapsible/Collapsible.flow.js +0 -19
- package/__flow__/Collapsible/index.flow.js +0 -2
- package/__flow__/DatePicker/DateRangePicker/DateRangePicker.flow.js +0 -19
- package/__flow__/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +0 -11
- package/__flow__/DatePicker/DateRangePicker/index.flow.js +0 -3
- package/__flow__/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +0 -17
- package/__flow__/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +0 -9
- package/__flow__/DatePicker/SingleDatePicker/index.flow.js +0 -3
- package/__flow__/DatePicker/common.flow.js +0 -21
- package/__flow__/DatePicker/index.flow.js +0 -6
- package/__flow__/Drawer/Drawer.flow.js +0 -49
- package/__flow__/Drawer/index.flow.js +0 -2
- package/__flow__/EmptyState/EmptyState.flow.js +0 -17
- package/__flow__/EmptyState/index.flow.js +0 -2
- package/__flow__/Fieldset/Fieldset.flow.js +0 -16
- package/__flow__/Fieldset/index.flow.js +0 -2
- package/__flow__/FormField/FormField.flow.js +0 -32
- package/__flow__/FormField/index.flow.js +0 -2
- package/__flow__/Icon/Icon.flow.js +0 -50
- package/__flow__/Icon/index.flow.js +0 -4
- package/__flow__/Image/Image.flow.js +0 -25
- package/__flow__/Image/index.flow.js +0 -2
- package/__flow__/Indicator/Indicator.flow.js +0 -11
- package/__flow__/Indicator/index.flow.js +0 -2
- package/__flow__/Input/Input.flow.js +0 -65
- package/__flow__/Input/index.flow.js +0 -2
- package/__flow__/KeyboardKey/KeyboardKey.flow.js +0 -9
- package/__flow__/KeyboardKey/index.flow.js +0 -2
- package/__flow__/Label/Label.flow.js +0 -16
- package/__flow__/Label/index.flow.js +0 -2
- package/__flow__/Link/Link.flow.js +0 -20
- package/__flow__/Link/index.flow.js +0 -2
- package/__flow__/Listbox/Listbox.flow.js +0 -33
- package/__flow__/Listbox/index.flow.js +0 -2
- package/__flow__/Loader/Loader.flow.js +0 -14
- package/__flow__/Loader/index.flow.js +0 -2
- package/__flow__/LoaderButton/LoaderButton.flow.js +0 -11
- package/__flow__/LoaderButton/index.flow.js +0 -2
- package/__flow__/Menu/Menu.flow.js +0 -142
- package/__flow__/Menu/index.flow.js +0 -3
- package/__flow__/Menu/utils/constants.flow.js +0 -16
- package/__flow__/Message/Message.flow.js +0 -48
- package/__flow__/Message/index.flow.js +0 -2
- package/__flow__/Modal/Modal.flow.js +0 -59
- package/__flow__/Modal/index.flow.js +0 -2
- package/__flow__/Numeral/Numeral.flow.js +0 -23
- package/__flow__/Numeral/index.flow.js +0 -2
- package/__flow__/PartnerLogo/PartnerLogo.flow.js +0 -27
- package/__flow__/PartnerLogo/index.flow.js +0 -2
- package/__flow__/Popout/Popout.flow.js +0 -103
- package/__flow__/Popout/index.flow.js +0 -2
- package/__flow__/Portal/Portal.flow.js +0 -17
- package/__flow__/Portal/index.flow.js +0 -2
- package/__flow__/Radio/Radio.flow.js +0 -21
- package/__flow__/Radio/index.flow.js +0 -2
- package/__flow__/SegmentedControl/SegmentedControl.flow.js +0 -27
- package/__flow__/SegmentedControl/index.flow.js +0 -2
- package/__flow__/Select/Select.flow.js +0 -27
- package/__flow__/Select/index.flow.js +0 -2
- package/__flow__/Skeleton/Skeleton.flow.js +0 -6
- package/__flow__/Skeleton/index.flow.js +0 -2
- package/__flow__/SpotIllustration/SpotIllustration.flow.js +0 -12
- package/__flow__/SpotIllustration/index.flow.js +0 -2
- package/__flow__/Stack/Stack.flow.js +0 -26
- package/__flow__/Stack/index.flow.js +0 -2
- package/__flow__/Switch/Switch.flow.js +0 -5
- package/__flow__/Switch/SwitchTypes.flow.js +0 -16
- package/__flow__/Switch/index.flow.js +0 -3
- package/__flow__/Table/Table.flow.js +0 -48
- package/__flow__/Table/index.flow.js +0 -2
- package/__flow__/TableCell/TableCell.flow.js +0 -28
- package/__flow__/TableCell/index.flow.js +0 -2
- package/__flow__/TableHeaderCell/TableHeaderCell.flow.js +0 -30
- package/__flow__/TableHeaderCell/index.flow.js +0 -2
- package/__flow__/TableRowAccordion/TableRowAccordion.flow.js +0 -15
- package/__flow__/TableRowAccordion/index.flow.js +0 -2
- package/__flow__/Tabs/Tabs.flow.js +0 -26
- package/__flow__/Tabs/index.flow.js +0 -2
- package/__flow__/Text/Text.flow.js +0 -27
- package/__flow__/Text/index.flow.js +0 -2
- package/__flow__/Textarea/Textarea.flow.js +0 -59
- package/__flow__/Textarea/index.flow.js +0 -2
- package/__flow__/ThemeProvider/index.flow.js +0 -12
- package/__flow__/Toast/Toast.flow.js +0 -27
- package/__flow__/Toast/index.flow.js +0 -2
- package/__flow__/ToggleHint/ToggleHint.flow.js +0 -21
- package/__flow__/ToggleHint/index.flow.js +0 -2
- package/__flow__/Token/Token.flow.js +0 -17
- package/__flow__/Token/index.flow.js +0 -2
- package/__flow__/TokenInput/TokenInput.flow.js +0 -79
- package/__flow__/TokenInput/TokenScreenReaderStatus.js +0 -32
- package/__flow__/TokenInput/index.flow.js +0 -2
- package/__flow__/Tooltip/Tooltip.flow.js +0 -24
- package/__flow__/Tooltip/index.flow.js +0 -2
- package/__flow__/VisuallyHidden/VisuallyHidden.flow.js +0 -3
- package/__flow__/VisuallyHidden/index.flow.js +0 -2
- package/__flow__/index.flow.js +0 -136
- package/__flow__/index.js +0 -2
- package/__flow__/systemProps/background.flow.js +0 -17
- package/__flow__/systemProps/border.flow.js +0 -46
- package/__flow__/systemProps/color.flow.js +0 -16
- package/__flow__/systemProps/custom.flow.js +0 -16
- package/__flow__/systemProps/flexbox.flow.js +0 -28
- package/__flow__/systemProps/grid.flow.js +0 -26
- package/__flow__/systemProps/index.flow.js +0 -16
- package/__flow__/systemProps/layout.flow.js +0 -25
- package/__flow__/systemProps/position.flow.js +0 -17
- package/__flow__/systemProps/shadow.flow.js +0 -13
- package/__flow__/systemProps/space.flow.js +0 -71
- package/__flow__/systemProps/systemProps.flow.js +0 -30
- package/__flow__/systemProps/tests/types.flow.js +0 -51
- package/__flow__/systemProps/types.flow.js +0 -12
- package/__flow__/systemProps/typography.flow.js +0 -21
- package/__flow__/systemProps/variant.flow.js +0 -14
- package/__flow__/themes/dark/dataviz-palette.flow.js +0 -3
- package/__flow__/themes/dark/decorative-palettes.flow.js +0 -13
- package/__flow__/themes/dark/theme.flow.js +0 -5
- package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.flow.js +0 -10
- package/__flow__/themes/extendedThemes/sproutTheme/index.flow.js +0 -3
- package/__flow__/themes/extendedThemes/sproutTheme/light/theme.flow.js +0 -10
- package/__flow__/themes/light/dataviz-palette.flow.js +0 -29
- package/__flow__/themes/light/decorative-palettes.flow.js +0 -17
- package/__flow__/themes/light/literal-colors.flow.js +0 -31
- package/__flow__/themes/light/theme.flow.js +0 -16
- package/__flow__/types/index.flow.js +0 -7
- package/__flow__/types/shared.flow.js +0 -9
- package/__flow__/types/styled-components.flow.js +0 -8
- package/__flow__/types/system-props.flow.js +0 -136
- package/__flow__/types/theme.colors.flow.js +0 -364
- package/__flow__/types/theme.flow.js +0 -373
- package/__flow__/utils/a11yTest.flow.js +0 -5
- package/__flow__/utils/chartColors.flow.js +0 -11
- package/__flow__/utils/constants.flow.js +0 -3
- package/__flow__/utils/dataQaLabelQueries.flow.js +0 -20
- package/__flow__/utils/hooks.flow.js +0 -66
- package/__flow__/utils/index.flow.js +0 -11
- package/__flow__/utils/innerText.flow.js +0 -4
- package/__flow__/utils/mixins.flow.js +0 -7
- package/__flow__/utils/react-testing-library.flow.js +0 -14
- package/__flow__/utils/responsiveProps/index.flow.js +0 -3
- package/__flow__/utils/responsiveProps/index.test.flow.js +0 -22
- package/__flow__/utils/system-props.flow.js +0 -9
- package/__flow__/utils/useInteractiveColor.flow.js +0 -3
- package/commonjs/Avatar/Avatar.flow.js +0 -6
- package/commonjs/Avatar/constants.flow.js +0 -16
- package/commonjs/Avatar/index.flow.js +0 -27
- package/commonjs/Badge/Badge.flow.js +0 -7
- package/commonjs/Badge/constants.flow.js +0 -19
- package/commonjs/Badge/index.flow.js +0 -27
- package/commonjs/Banner/Banner.flow.js +0 -6
- package/commonjs/Banner/index.flow.js +0 -16
- package/commonjs/Box/Box.flow.js +0 -6
- package/commonjs/Box/index.flow.js +0 -16
- package/commonjs/Breadcrumb/Breadcrumb.flow.js +0 -6
- package/commonjs/Breadcrumb/index.flow.js +0 -16
- package/commonjs/Button/Button.flow.js +0 -6
- package/commonjs/Button/index.flow.js +0 -16
- package/commonjs/Card/Card.flow.js +0 -6
- package/commonjs/Card/CardTypes.flow.js +0 -6
- package/commonjs/Card/index.flow.js +0 -27
- package/commonjs/CharacterCounter/CharacterCounter.flow.js +0 -6
- package/commonjs/CharacterCounter/index.flow.js +0 -16
- package/commonjs/ChartLegend/ChartLegend.flow.js +0 -6
- package/commonjs/ChartLegend/index.flow.js +0 -16
- package/commonjs/Checkbox/Checkbox.flow.js +0 -6
- package/commonjs/Checkbox/index.flow.js +0 -16
- package/commonjs/Collapsible/Collapsible.flow.js +0 -6
- package/commonjs/Collapsible/index.flow.js +0 -16
- package/commonjs/DatePicker/DateRangePicker/DateRangePicker.flow.js +0 -6
- package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +0 -6
- package/commonjs/DatePicker/DateRangePicker/index.flow.js +0 -27
- package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +0 -6
- package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +0 -6
- package/commonjs/DatePicker/SingleDatePicker/index.flow.js +0 -27
- package/commonjs/DatePicker/common.flow.js +0 -1
- package/commonjs/DatePicker/index.flow.js +0 -60
- package/commonjs/Drawer/Drawer.flow.js +0 -6
- package/commonjs/Drawer/index.flow.js +0 -16
- package/commonjs/EmptyState/EmptyState.flow.js +0 -6
- package/commonjs/EmptyState/index.flow.js +0 -16
- package/commonjs/Fieldset/Fieldset.flow.js +0 -6
- package/commonjs/Fieldset/index.flow.js +0 -16
- package/commonjs/FormField/FormField.flow.js +0 -6
- package/commonjs/FormField/index.flow.js +0 -16
- package/commonjs/Icon/Icon.flow.js +0 -6
- package/commonjs/Icon/index.flow.js +0 -29
- package/commonjs/Image/Image.flow.js +0 -6
- package/commonjs/Image/index.flow.js +0 -16
- package/commonjs/Indicator/Indicator.flow.js +0 -6
- package/commonjs/Indicator/index.flow.js +0 -16
- package/commonjs/Input/Input.flow.js +0 -6
- package/commonjs/Input/index.flow.js +0 -16
- package/commonjs/KeyboardKey/KeyboardKey.flow.js +0 -6
- package/commonjs/KeyboardKey/index.flow.js +0 -16
- package/commonjs/Label/Label.flow.js +0 -8
- package/commonjs/Label/index.flow.js +0 -16
- package/commonjs/Link/Link.flow.js +0 -6
- package/commonjs/Link/index.flow.js +0 -16
- package/commonjs/Listbox/Listbox.flow.js +0 -10
- package/commonjs/Listbox/index.flow.js +0 -16
- package/commonjs/Loader/Loader.flow.js +0 -6
- package/commonjs/Loader/index.flow.js +0 -16
- package/commonjs/LoaderButton/LoaderButton.flow.js +0 -6
- package/commonjs/LoaderButton/index.flow.js +0 -16
- package/commonjs/Menu/Menu.flow.js +0 -11
- package/commonjs/Menu/index.flow.js +0 -27
- package/commonjs/Menu/utils/constants.flow.js +0 -18
- package/commonjs/Message/Message.flow.js +0 -20
- package/commonjs/Message/index.flow.js +0 -16
- package/commonjs/Modal/Modal.flow.js +0 -8
- package/commonjs/Modal/index.flow.js +0 -16
- package/commonjs/Numeral/Numeral.flow.js +0 -6
- package/commonjs/Numeral/index.flow.js +0 -16
- package/commonjs/PartnerLogo/PartnerLogo.flow.js +0 -6
- package/commonjs/PartnerLogo/index.flow.js +0 -16
- package/commonjs/Popout/Popout.flow.js +0 -6
- package/commonjs/Popout/index.flow.js +0 -16
- package/commonjs/Portal/Portal.flow.js +0 -6
- package/commonjs/Portal/index.flow.js +0 -16
- package/commonjs/Radio/Radio.flow.js +0 -6
- package/commonjs/Radio/index.flow.js +0 -16
- package/commonjs/SegmentedControl/SegmentedControl.flow.js +0 -6
- package/commonjs/SegmentedControl/index.flow.js +0 -16
- package/commonjs/Select/Select.flow.js +0 -6
- package/commonjs/Select/index.flow.js +0 -16
- package/commonjs/Skeleton/Skeleton.flow.js +0 -4
- package/commonjs/Skeleton/index.flow.js +0 -16
- package/commonjs/SpotIllustration/SpotIllustration.flow.js +0 -6
- package/commonjs/SpotIllustration/index.flow.js +0 -16
- package/commonjs/Stack/Stack.flow.js +0 -6
- package/commonjs/Stack/index.flow.js +0 -16
- package/commonjs/Switch/Switch.flow.js +0 -6
- package/commonjs/Switch/SwitchTypes.flow.js +0 -1
- package/commonjs/Switch/index.flow.js +0 -27
- package/commonjs/Table/Table.flow.js +0 -9
- package/commonjs/Table/index.flow.js +0 -16
- package/commonjs/TableCell/TableCell.flow.js +0 -6
- package/commonjs/TableCell/index.flow.js +0 -16
- package/commonjs/TableHeaderCell/TableHeaderCell.flow.js +0 -14
- package/commonjs/TableHeaderCell/index.flow.js +0 -16
- package/commonjs/TableRowAccordion/TableRowAccordion.flow.js +0 -6
- package/commonjs/TableRowAccordion/index.flow.js +0 -16
- package/commonjs/Tabs/Tabs.flow.js +0 -6
- package/commonjs/Tabs/index.flow.js +0 -16
- package/commonjs/Text/Text.flow.js +0 -6
- package/commonjs/Text/index.flow.js +0 -16
- package/commonjs/Textarea/Textarea.flow.js +0 -6
- package/commonjs/Textarea/index.flow.js +0 -16
- package/commonjs/ThemeProvider/index.flow.js +0 -6
- package/commonjs/Toast/Toast.flow.js +0 -6
- package/commonjs/Toast/index.flow.js +0 -16
- package/commonjs/ToggleHint/ToggleHint.flow.js +0 -6
- package/commonjs/ToggleHint/index.flow.js +0 -16
- package/commonjs/Token/Token.flow.js +0 -6
- package/commonjs/Token/index.flow.js +0 -16
- package/commonjs/TokenInput/TokenInput.flow.js +0 -6
- package/commonjs/TokenInput/index.flow.js +0 -16
- package/commonjs/Tooltip/Tooltip.flow.js +0 -6
- package/commonjs/Tooltip/index.flow.js +0 -16
- package/commonjs/VisuallyHidden/VisuallyHidden.flow.js +0 -6
- package/commonjs/VisuallyHidden/index.flow.js +0 -16
- package/commonjs/index.flow.js +0 -594
- package/commonjs/index.js.flow +0 -2
- package/commonjs/systemProps/background.flow.js +0 -9
- package/commonjs/systemProps/border.flow.js +0 -9
- package/commonjs/systemProps/color.flow.js +0 -9
- package/commonjs/systemProps/custom.flow.js +0 -12
- package/commonjs/systemProps/flexbox.flow.js +0 -9
- package/commonjs/systemProps/grid.flow.js +0 -9
- package/commonjs/systemProps/index.flow.js +0 -159
- package/commonjs/systemProps/layout.flow.js +0 -9
- package/commonjs/systemProps/position.flow.js +0 -9
- package/commonjs/systemProps/shadow.flow.js +0 -9
- package/commonjs/systemProps/space.flow.js +0 -23
- package/commonjs/systemProps/systemProps.flow.js +0 -20
- package/commonjs/systemProps/tests/types.flow.js +0 -48
- package/commonjs/systemProps/types.flow.js +0 -1
- package/commonjs/systemProps/typography.flow.js +0 -9
- package/commonjs/systemProps/variant.flow.js +0 -12
- package/commonjs/themes/dark/dataviz-palette.flow.js +0 -1
- package/commonjs/themes/dark/decorative-palettes.flow.js +0 -1
- package/commonjs/themes/dark/theme.flow.js +0 -1
- package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.flow.js +0 -7
- package/commonjs/themes/extendedThemes/sproutTheme/index.flow.js +0 -20
- package/commonjs/themes/extendedThemes/sproutTheme/light/theme.flow.js +0 -1
- package/commonjs/themes/light/dataviz-palette.flow.js +0 -1
- package/commonjs/themes/light/decorative-palettes.flow.js +0 -1
- package/commonjs/themes/light/literal-colors.flow.js +0 -1
- package/commonjs/themes/light/theme.flow.js +0 -1
- package/commonjs/types/index.flow.js +0 -60
- package/commonjs/types/shared.flow.js +0 -6
- package/commonjs/types/styled-components.flow.js +0 -6
- package/commonjs/types/system-props.flow.js +0 -2
- package/commonjs/types/theme.colors.flow.js +0 -1
- package/commonjs/types/theme.flow.js +0 -1
- package/commonjs/utils/a11yTest.flow.js +0 -1
- package/commonjs/utils/chartColors.flow.js +0 -1
- package/commonjs/utils/constants.flow.js +0 -1
- package/commonjs/utils/dataQaLabelQueries.flow.js +0 -1
- package/commonjs/utils/hooks.flow.js +0 -28
- package/commonjs/utils/index.flow.js +0 -1
- package/commonjs/utils/innerText.flow.js +0 -6
- package/commonjs/utils/mixins.flow.js +0 -1
- package/commonjs/utils/react-testing-library.flow.js +0 -9
- package/commonjs/utils/responsiveProps/index.flow.js +0 -1
- package/commonjs/utils/responsiveProps/index.test.flow.js +0 -23
- package/commonjs/utils/system-props.flow.js +0 -1
- package/commonjs/utils/useInteractiveColor.flow.js +0 -1
- package/lib/Avatar/Avatar.flow.js +0 -1
- package/lib/Avatar/constants.flow.js +0 -10
- package/lib/Avatar/index.flow.js +0 -2
- package/lib/Badge/Badge.flow.js +0 -2
- package/lib/Badge/constants.flow.js +0 -13
- package/lib/Badge/index.flow.js +0 -2
- package/lib/Banner/Banner.flow.js +0 -1
- package/lib/Banner/index.flow.js +0 -1
- package/lib/Box/Box.flow.js +0 -1
- package/lib/Box/index.flow.js +0 -1
- package/lib/Breadcrumb/Breadcrumb.flow.js +0 -1
- package/lib/Breadcrumb/index.flow.js +0 -1
- package/lib/Button/Button.flow.js +0 -1
- package/lib/Button/index.flow.js +0 -1
- package/lib/Card/Card.flow.js +0 -1
- package/lib/Card/CardTypes.flow.js +0 -1
- package/lib/Card/index.flow.js +0 -2
- package/lib/CharacterCounter/CharacterCounter.flow.js +0 -1
- package/lib/CharacterCounter/index.flow.js +0 -1
- package/lib/ChartLegend/ChartLegend.flow.js +0 -1
- package/lib/ChartLegend/index.flow.js +0 -1
- package/lib/Checkbox/Checkbox.flow.js +0 -1
- package/lib/Checkbox/index.flow.js +0 -1
- package/lib/Collapsible/Collapsible.flow.js +0 -1
- package/lib/Collapsible/index.flow.js +0 -1
- package/lib/DatePicker/DateRangePicker/DateRangePicker.flow.js +0 -1
- package/lib/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +0 -1
- package/lib/DatePicker/DateRangePicker/index.flow.js +0 -2
- package/lib/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +0 -1
- package/lib/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +0 -1
- package/lib/DatePicker/SingleDatePicker/index.flow.js +0 -2
- package/lib/DatePicker/common.flow.js +0 -0
- package/lib/DatePicker/index.flow.js +0 -5
- package/lib/Drawer/Drawer.flow.js +0 -1
- package/lib/Drawer/index.flow.js +0 -1
- package/lib/EmptyState/EmptyState.flow.js +0 -1
- package/lib/EmptyState/index.flow.js +0 -1
- package/lib/Fieldset/Fieldset.flow.js +0 -1
- package/lib/Fieldset/index.flow.js +0 -1
- package/lib/FormField/FormField.flow.js +0 -1
- package/lib/FormField/index.flow.js +0 -1
- package/lib/Icon/Icon.flow.js +0 -3
- package/lib/Icon/index.flow.js +0 -3
- package/lib/Image/Image.flow.js +0 -2
- package/lib/Image/index.flow.js +0 -1
- package/lib/Indicator/Indicator.flow.js +0 -1
- package/lib/Indicator/index.flow.js +0 -1
- package/lib/Input/Input.flow.js +0 -1
- package/lib/Input/index.flow.js +0 -1
- package/lib/KeyboardKey/KeyboardKey.flow.js +0 -1
- package/lib/KeyboardKey/index.flow.js +0 -1
- package/lib/Label/Label.flow.js +0 -2
- package/lib/Label/index.flow.js +0 -1
- package/lib/Link/Link.flow.js +0 -1
- package/lib/Link/index.flow.js +0 -1
- package/lib/Listbox/Listbox.flow.js +0 -4
- package/lib/Listbox/index.flow.js +0 -1
- package/lib/Loader/Loader.flow.js +0 -1
- package/lib/Loader/index.flow.js +0 -1
- package/lib/LoaderButton/LoaderButton.flow.js +0 -1
- package/lib/LoaderButton/index.flow.js +0 -1
- package/lib/Menu/Menu.flow.js +0 -5
- package/lib/Menu/index.flow.js +0 -2
- package/lib/Menu/utils/constants.flow.js +0 -12
- package/lib/Message/Message.flow.js +0 -11
- package/lib/Message/index.flow.js +0 -1
- package/lib/Modal/Modal.flow.js +0 -2
- package/lib/Modal/index.flow.js +0 -1
- package/lib/Numeral/Numeral.flow.js +0 -1
- package/lib/Numeral/index.flow.js +0 -1
- package/lib/PartnerLogo/PartnerLogo.flow.js +0 -5
- package/lib/PartnerLogo/index.flow.js +0 -1
- package/lib/Popout/Popout.flow.js +0 -3
- package/lib/Popout/index.flow.js +0 -1
- package/lib/Portal/Portal.flow.js +0 -1
- package/lib/Portal/index.flow.js +0 -1
- package/lib/Radio/Radio.flow.js +0 -1
- package/lib/Radio/index.flow.js +0 -1
- package/lib/SegmentedControl/SegmentedControl.flow.js +0 -1
- package/lib/SegmentedControl/index.flow.js +0 -1
- package/lib/Select/Select.flow.js +0 -1
- package/lib/Select/index.flow.js +0 -1
- package/lib/Skeleton/Skeleton.flow.js +0 -1
- package/lib/Skeleton/index.flow.js +0 -1
- package/lib/SpotIllustration/SpotIllustration.flow.js +0 -1
- package/lib/SpotIllustration/index.flow.js +0 -1
- package/lib/Stack/Stack.flow.js +0 -1
- package/lib/Stack/index.flow.js +0 -1
- package/lib/Switch/Switch.flow.js +0 -1
- package/lib/Switch/SwitchTypes.flow.js +0 -0
- package/lib/Switch/index.flow.js +0 -2
- package/lib/Table/Table.flow.js +0 -3
- package/lib/Table/index.flow.js +0 -1
- package/lib/TableCell/TableCell.flow.js +0 -5
- package/lib/TableCell/index.flow.js +0 -1
- package/lib/TableHeaderCell/TableHeaderCell.flow.js +0 -5
- package/lib/TableHeaderCell/index.flow.js +0 -1
- package/lib/TableRowAccordion/TableRowAccordion.flow.js +0 -1
- package/lib/TableRowAccordion/index.flow.js +0 -1
- package/lib/Tabs/Tabs.flow.js +0 -1
- package/lib/Tabs/index.flow.js +0 -1
- package/lib/Text/Text.flow.js +0 -1
- package/lib/Text/index.flow.js +0 -1
- package/lib/Textarea/Textarea.flow.js +0 -1
- package/lib/Textarea/index.flow.js +0 -1
- package/lib/ThemeProvider/index.flow.js +0 -3
- package/lib/Toast/Toast.flow.js +0 -1
- package/lib/Toast/index.flow.js +0 -1
- package/lib/ToggleHint/ToggleHint.flow.js +0 -1
- package/lib/ToggleHint/index.flow.js +0 -1
- package/lib/Token/Token.flow.js +0 -1
- package/lib/Token/index.flow.js +0 -1
- package/lib/TokenInput/TokenInput.flow.js +0 -1
- package/lib/TokenInput/index.flow.js +0 -1
- package/lib/Tooltip/Tooltip.flow.js +0 -1
- package/lib/Tooltip/index.flow.js +0 -1
- package/lib/VisuallyHidden/VisuallyHidden.flow.js +0 -1
- package/lib/VisuallyHidden/index.flow.js +0 -1
- package/lib/index.flow.js +0 -79
- package/lib/index.js.flow +0 -2
- package/lib/systemProps/background.flow.js +0 -5
- package/lib/systemProps/border.flow.js +0 -5
- package/lib/systemProps/color.flow.js +0 -5
- package/lib/systemProps/custom.flow.js +0 -8
- package/lib/systemProps/flexbox.flow.js +0 -5
- package/lib/systemProps/grid.flow.js +0 -5
- package/lib/systemProps/index.flow.js +0 -14
- package/lib/systemProps/layout.flow.js +0 -5
- package/lib/systemProps/position.flow.js +0 -5
- package/lib/systemProps/shadow.flow.js +0 -5
- package/lib/systemProps/space.flow.js +0 -32
- package/lib/systemProps/systemProps.flow.js +0 -14
- package/lib/systemProps/tests/types.flow.js +0 -46
- package/lib/systemProps/types.flow.js +0 -0
- package/lib/systemProps/typography.flow.js +0 -5
- package/lib/systemProps/variant.flow.js +0 -8
- package/lib/themes/dark/dataviz-palette.flow.js +0 -0
- package/lib/themes/dark/decorative-palettes.flow.js +0 -0
- package/lib/themes/dark/theme.flow.js +0 -0
- package/lib/themes/extendedThemes/sproutTheme/dark/theme.flow.js +0 -1
- package/lib/themes/extendedThemes/sproutTheme/index.flow.js +0 -2
- package/lib/themes/extendedThemes/sproutTheme/light/theme.flow.js +0 -0
- package/lib/themes/light/dataviz-palette.flow.js +0 -0
- package/lib/themes/light/decorative-palettes.flow.js +0 -0
- package/lib/themes/light/literal-colors.flow.js +0 -0
- package/lib/themes/light/theme.flow.js +0 -0
- package/lib/types/index.flow.js +0 -5
- package/lib/types/shared.flow.js +0 -1
- package/lib/types/styled-components.flow.js +0 -1
- package/lib/types/system-props.flow.js +0 -1
- package/lib/types/theme.colors.flow.js +0 -0
- package/lib/types/theme.flow.js +0 -0
- package/lib/utils/a11yTest.flow.js +0 -0
- package/lib/utils/chartColors.flow.js +0 -0
- package/lib/utils/constants.flow.js +0 -0
- package/lib/utils/dataQaLabelQueries.flow.js +0 -0
- package/lib/utils/hooks.flow.js +0 -27
- package/lib/utils/index.flow.js +0 -0
- package/lib/utils/innerText.flow.js +0 -1
- package/lib/utils/mixins.flow.js +0 -0
- package/lib/utils/react-testing-library.flow.js +0 -3
- package/lib/utils/responsiveProps/index.flow.js +0 -0
- package/lib/utils/responsiveProps/index.test.flow.js +0 -21
- package/lib/utils/system-props.flow.js +0 -0
- package/lib/utils/useInteractiveColor.flow.js +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
import { compose } from "styled-system";
|
|
3
|
-
import { backgroundSystemProps, type TypeBackgroundSystemProps } from "./background.flow";
|
|
4
|
-
import { borderSystemProps, type TypeBorderSystemProps } from "./border.flow";
|
|
5
|
-
import { colorSystemProps, type TypeColorSystemProps } from "./color.flow";
|
|
6
|
-
import { customSystemProps, type TypeCustomSystemProps } from "./custom.flow";
|
|
7
|
-
import { flexboxSystemProps, type TypeFlexboxSystemProps } from "./flexbox.flow";
|
|
8
|
-
import { gridSystemProps, type TypeGridSystemProps } from "./grid.flow";
|
|
9
|
-
import { layoutSystemProps, type TypeLayoutSystemProps } from "./layout.flow";
|
|
10
|
-
import { positionSystemProps, type TypePositionSystemProps } from "./position.flow";
|
|
11
|
-
import { shadowSystemProps, type TypeShadowSystemProps } from "./shadow.flow";
|
|
12
|
-
import { spaceSystemProps, type TypeSpaceSystemProps } from "./space.flow";
|
|
13
|
-
import { typographySystemProps, type TypeTypographySystemProps } from "./typography.flow";
|
|
14
|
-
import { variantSystemProps, type TypeVariantSystemProps } from "./variant.flow";
|
|
15
|
-
import type { StyledSystemStyleFn } from "./types.flow";
|
|
16
|
-
export type TypeSystemProps = $ReadOnly<{|
|
|
17
|
-
...TypeCustomSystemProps,
|
|
18
|
-
...TypeVariantSystemProps,
|
|
19
|
-
...TypeBackgroundSystemProps,
|
|
20
|
-
...TypeBorderSystemProps,
|
|
21
|
-
...TypeColorSystemProps,
|
|
22
|
-
...TypeFlexboxSystemProps,
|
|
23
|
-
...TypeGridSystemProps,
|
|
24
|
-
...TypeLayoutSystemProps,
|
|
25
|
-
...TypePositionSystemProps,
|
|
26
|
-
...TypeShadowSystemProps,
|
|
27
|
-
...TypeSpaceSystemProps,
|
|
28
|
-
...TypeTypographySystemProps,
|
|
29
|
-
|}>;
|
|
30
|
-
export const systemProps: StyledSystemStyleFn = compose(customSystemProps, variantSystemProps, backgroundSystemProps, borderSystemProps, colorSystemProps, flexboxSystemProps, gridSystemProps, layoutSystemProps, positionSystemProps, shadowSystemProps, spaceSystemProps, typographySystemProps);
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// @flow strict
|
|
2
|
-
|
|
3
|
-
import type { TypeResponsiveSystemProp, TypeBaseSystemProp, TypeResponsiveBaseSystemProp } from "../types.flow.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* All system props should be responsive but accepting a tuple of length 1-5.
|
|
7
|
-
*/
|
|
8
|
-
type TypeTestResponsiveSystemProp = TypeResponsiveSystemProp<"a">;
|
|
9
|
-
("a": TypeTestResponsiveSystemProp);
|
|
10
|
-
(["a"]: TypeTestResponsiveSystemProp);
|
|
11
|
-
(["a", "a"]: TypeTestResponsiveSystemProp);
|
|
12
|
-
(["a", "a", "a"]: TypeTestResponsiveSystemProp);
|
|
13
|
-
(["a", "a", "a", "a"]: TypeTestResponsiveSystemProp);
|
|
14
|
-
(["a", "a", "a", "a", "a"]: TypeTestResponsiveSystemProp);
|
|
15
|
-
// $FlowExpectedError
|
|
16
|
-
(["a", "a", "a", "a", "a", "a"]: TypeTestResponsiveSystemProp);
|
|
17
|
-
// $FlowExpectedError
|
|
18
|
-
(["b"]: TypeTestResponsiveSystemProp);
|
|
19
|
-
// $FlowExpectedError
|
|
20
|
-
([null]: TypeTestResponsiveSystemProp);
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* All system props should accept "base" values: boolean, null, and undefined.
|
|
24
|
-
*/
|
|
25
|
-
type TypeTestBaseSystemProp = TypeBaseSystemProp<"a">;
|
|
26
|
-
("a": TypeTestBaseSystemProp);
|
|
27
|
-
(true: TypeTestBaseSystemProp);
|
|
28
|
-
(false: TypeTestBaseSystemProp);
|
|
29
|
-
(null: TypeTestBaseSystemProp);
|
|
30
|
-
(undefined: TypeTestBaseSystemProp);
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* All system props should be responsive and allow "base" values.
|
|
34
|
-
*/
|
|
35
|
-
type TypeTestResponsiveBaseSystemProp = TypeResponsiveBaseSystemProp<"a" | "b">;
|
|
36
|
-
("a": TypeTestResponsiveBaseSystemProp);
|
|
37
|
-
("b": TypeTestResponsiveBaseSystemProp);
|
|
38
|
-
(true: TypeTestResponsiveBaseSystemProp);
|
|
39
|
-
(false: TypeTestResponsiveBaseSystemProp);
|
|
40
|
-
(null: TypeTestResponsiveBaseSystemProp);
|
|
41
|
-
(undefined: TypeTestResponsiveBaseSystemProp);
|
|
42
|
-
(["a", null, undefined, false, "b"]: TypeTestResponsiveBaseSystemProp);
|
|
43
|
-
(["a"]: TypeTestResponsiveBaseSystemProp);
|
|
44
|
-
// $FlowExpectedError
|
|
45
|
-
("c": TypeTestResponsiveBaseSystemProp);
|
|
46
|
-
// $FlowExpectedError
|
|
47
|
-
(1: TypeTestResponsiveBaseSystemProp);
|
|
48
|
-
// $FlowExpectedError
|
|
49
|
-
({}: TypeTestResponsiveBaseSystemProp);
|
|
50
|
-
// $FlowExpectedError
|
|
51
|
-
([]: TypeTestResponsiveBaseSystemProp);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @flow strict
|
|
2
|
-
|
|
3
|
-
export type TypeResponsiveSystemProp<T> = T | [T] | [T, T] | [T, T, T] | [T, T, T, T] | [T, T, T, T, T];
|
|
4
|
-
export type TypeBaseSystemProp<T> = ?T | boolean;
|
|
5
|
-
// eslint-disable-next-line prettier/prettier
|
|
6
|
-
export type TypeResponsiveBaseSystemProp<T> = TypeResponsiveSystemProp<TypeBaseSystemProp<T>>;
|
|
7
|
-
export interface StyledSystemStyleFn {
|
|
8
|
-
config?: {...} | void,
|
|
9
|
-
propNames?: string[] | void,
|
|
10
|
-
cache?: {...} | void,
|
|
11
|
-
(...args: mixed[]): mixed,
|
|
12
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
|
|
3
|
-
import { typography } from "styled-system";
|
|
4
|
-
import type { Property$FontFamily, Property$FontSize, Property$FontStyle, Property$FontWeight, Property$LetterSpacing, Property$LineHeight, Property$TextAlign } from "csstype";
|
|
5
|
-
import typeof { fontWeights as TypeofFontWeights } from "../themes/light/theme.flow";
|
|
6
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
7
|
-
|
|
8
|
-
// https://styled-system.com/table#typography
|
|
9
|
-
|
|
10
|
-
export type TypeTypographySystemProps = $ReadOnly<{|
|
|
11
|
-
fontFamily?: TypeResponsiveBaseSystemProp<Property$FontFamily>,
|
|
12
|
-
fontSize?: TypeResponsiveBaseSystemProp<Property$FontSize<number>>,
|
|
13
|
-
fontStyle?: TypeResponsiveBaseSystemProp<Property$FontStyle>,
|
|
14
|
-
// prettier-ignore
|
|
15
|
-
fontWeight?: TypeResponsiveBaseSystemProp<Property$FontWeight | $Keys<TypeofFontWeights>>,
|
|
16
|
-
// prettier-ignore
|
|
17
|
-
letterSpacing?: TypeResponsiveBaseSystemProp<Property$LetterSpacing<string | number>>,
|
|
18
|
-
lineHeight?: TypeResponsiveBaseSystemProp<Property$LineHeight<void>>,
|
|
19
|
-
textAlign?: TypeResponsiveBaseSystemProp<Property$TextAlign>,
|
|
20
|
-
|}>;
|
|
21
|
-
export const typographySystemProps: StyledSystemStyleFn = typography;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
import { compose, variant } from "styled-system";
|
|
3
|
-
import type { TypeTypography } from "../types/theme.flow";
|
|
4
|
-
import type { TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
5
|
-
|
|
6
|
-
// https://styled-system.com/variants
|
|
7
|
-
|
|
8
|
-
export type TypeVariantSystemProps = $ReadOnly<{|
|
|
9
|
-
typeScale?: TypeResponsiveBaseSystemProp<$Keys<TypeTypography>>
|
|
10
|
-
|}>;
|
|
11
|
-
export const variantSystemProps = compose(variant({
|
|
12
|
-
key: "typography",
|
|
13
|
-
prop: "typeScale"
|
|
14
|
-
}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
import type { TypeDecorativeColors } from "../light/decorative-palettes.flow";
|
|
3
|
-
declare export var green: TypeDecorativeColors;
|
|
4
|
-
declare export var blue: TypeDecorativeColors;
|
|
5
|
-
declare export var purple: TypeDecorativeColors;
|
|
6
|
-
declare export var yellow: TypeDecorativeColors;
|
|
7
|
-
declare export var orange: TypeDecorativeColors;
|
|
8
|
-
declare export var red: TypeDecorativeColors;
|
|
9
|
-
declare export var neutral: TypeDecorativeColors;
|
|
10
|
-
declare export var magenta: TypeDecorativeColors;
|
|
11
|
-
declare export var pink: TypeDecorativeColors;
|
|
12
|
-
declare export var aqua: TypeDecorativeColors;
|
|
13
|
-
declare export var teal: TypeDecorativeColors;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
import type { TypeAnalyticsTheme, TypeCardControlTheme, TypeDatePickerTheme, TypeGrowthTheme, TypeListeningTheme, TypeNavigationTheme, TypeSproutTheme } from "../../../../types/theme.flow";
|
|
3
|
-
declare export var navigation: TypeNavigationTheme;
|
|
4
|
-
declare export var datePicker: TypeDatePickerTheme;
|
|
5
|
-
declare export var analytics: TypeAnalyticsTheme;
|
|
6
|
-
declare export var listening: TypeListeningTheme;
|
|
7
|
-
declare export var growth: TypeGrowthTheme;
|
|
8
|
-
declare export var cardControl: TypeCardControlTheme;
|
|
9
|
-
declare var darkTheme: TypeSproutTheme;
|
|
10
|
-
export default darkTheme;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
import type { TypeAnalyticsTheme, TypeCardControlTheme, TypeDatePickerTheme, TypeGrowthTheme, TypeListeningTheme, TypeNavigationTheme, TypeSproutTheme } from "../../../../types/theme.flow";
|
|
3
|
-
declare export var navigation: TypeNavigationTheme;
|
|
4
|
-
declare export var datePicker: TypeDatePickerTheme;
|
|
5
|
-
declare export var analytics: TypeAnalyticsTheme;
|
|
6
|
-
declare export var listening: TypeListeningTheme;
|
|
7
|
-
declare export var growth: TypeGrowthTheme;
|
|
8
|
-
declare export var cardControl: TypeCardControlTheme;
|
|
9
|
-
declare var lightTheme: TypeSproutTheme;
|
|
10
|
-
declare export default typeof lightTheme;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
export type TypeDatavizPaletteList = string[];
|
|
3
|
-
export type TypeDatavizPaletteMap = {|
|
|
4
|
-
"1": string,
|
|
5
|
-
"2": string,
|
|
6
|
-
"3": string,
|
|
7
|
-
"4": string,
|
|
8
|
-
"5": string,
|
|
9
|
-
"6": string,
|
|
10
|
-
"7": string,
|
|
11
|
-
"8": string,
|
|
12
|
-
"9": string,
|
|
13
|
-
"10": string,
|
|
14
|
-
"11": string,
|
|
15
|
-
"12": string,
|
|
16
|
-
"13": string,
|
|
17
|
-
"14": string,
|
|
18
|
-
"15": string,
|
|
19
|
-
"16": string,
|
|
20
|
-
"17": string,
|
|
21
|
-
"18": string,
|
|
22
|
-
"19": string,
|
|
23
|
-
"20": string,
|
|
24
|
-
|};
|
|
25
|
-
export type TypeDatavizPalette = {|
|
|
26
|
-
DATAVIZ_COLORS_LIST: TypeDatavizPaletteList,
|
|
27
|
-
DATAVIZ_COLORS_MAP: TypeDatavizPaletteMap,
|
|
28
|
-
|};
|
|
29
|
-
declare export var datavizPalette: TypeDatavizPalette;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
export type TypeDecorativeColors = {|
|
|
3
|
-
background: string,
|
|
4
|
-
highlight: string,
|
|
5
|
-
foreground: string,
|
|
6
|
-
|};
|
|
7
|
-
declare export var green: TypeDecorativeColors;
|
|
8
|
-
declare export var blue: TypeDecorativeColors;
|
|
9
|
-
declare export var purple: TypeDecorativeColors;
|
|
10
|
-
declare export var yellow: TypeDecorativeColors;
|
|
11
|
-
declare export var orange: TypeDecorativeColors;
|
|
12
|
-
declare export var red: TypeDecorativeColors;
|
|
13
|
-
declare export var neutral: TypeDecorativeColors;
|
|
14
|
-
declare export var magenta: TypeDecorativeColors;
|
|
15
|
-
declare export var pink: TypeDecorativeColors;
|
|
16
|
-
declare export var aqua: TypeDecorativeColors;
|
|
17
|
-
declare export var teal: TypeDecorativeColors;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
|
|
3
|
-
type TypeLiteralColor = {|
|
|
4
|
-
"0": string,
|
|
5
|
-
"100": string,
|
|
6
|
-
"200": string,
|
|
7
|
-
"300": string,
|
|
8
|
-
"400": string,
|
|
9
|
-
"500": string,
|
|
10
|
-
"600": string,
|
|
11
|
-
"700": string,
|
|
12
|
-
"800": string,
|
|
13
|
-
"900": string,
|
|
14
|
-
"1000": string,
|
|
15
|
-
"1100": string,
|
|
16
|
-
|};
|
|
17
|
-
export type TypeLiteralColors = {|
|
|
18
|
-
neutral: TypeLiteralColor,
|
|
19
|
-
green: TypeLiteralColor,
|
|
20
|
-
red: TypeLiteralColor,
|
|
21
|
-
blue: TypeLiteralColor,
|
|
22
|
-
teal: TypeLiteralColor,
|
|
23
|
-
aqua: TypeLiteralColor,
|
|
24
|
-
purple: TypeLiteralColor,
|
|
25
|
-
magenta: TypeLiteralColor,
|
|
26
|
-
yellow: TypeLiteralColor,
|
|
27
|
-
pink: TypeLiteralColor,
|
|
28
|
-
orange: TypeLiteralColor,
|
|
29
|
-
|};
|
|
30
|
-
declare var literalColors: TypeLiteralColors;
|
|
31
|
-
declare export default typeof literalColors;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
import type { TypeBorder, TypeBorderWidth, TypeBreakpoint, TypeDuration, TypeEasing, TypeFontFamily, TypeFontWeight, TypeRadii, TypeShadow, TypeSpace, TypeTheme, TypeTypography } from "../../types/theme.flow";
|
|
3
|
-
export type TypeFontFamilyString = string;
|
|
4
|
-
declare export var breakpoints: TypeBreakpoint;
|
|
5
|
-
declare export var typography: TypeTypography;
|
|
6
|
-
declare export var fontFamily: TypeFontFamily;
|
|
7
|
-
declare export var fontWeights: TypeFontWeight;
|
|
8
|
-
declare export var space: TypeSpace;
|
|
9
|
-
declare export var radii: TypeRadii;
|
|
10
|
-
declare export var borders: TypeBorder;
|
|
11
|
-
declare export var borderWidths: TypeBorderWidth;
|
|
12
|
-
declare export var shadows: TypeShadow;
|
|
13
|
-
declare export var easing: TypeEasing;
|
|
14
|
-
declare export var duration: TypeDuration;
|
|
15
|
-
declare var theme: TypeTheme;
|
|
16
|
-
declare export default typeof theme;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
"no babel-plugin-flow-react-proptypes";
|
|
2
|
-
|
|
3
|
-
// @flow strict-local
|
|
4
|
-
import type { Property$FlexDirection, Property$FlexWrap, Property$Position, Property$TextAlign, Property$ZIndex } from "csstype";
|
|
5
|
-
import type { TypeTypography } from "./theme.flow";
|
|
6
|
-
|
|
7
|
-
/* eslint-disable prettier/prettier */
|
|
8
|
-
|
|
9
|
-
// helper types
|
|
10
|
-
export type TypeResponsive<T> = T | [T] | [T, T] | [T, T, T] | [T, T, T, T] | [T, T, T, T, T];
|
|
11
|
-
type TypeBase<T = 0> = T | string | number | ?boolean;
|
|
12
|
-
type TypeResponsiveString<T = string> = TypeResponsive<T | string | ?boolean>;
|
|
13
|
-
type TypeResponsiveBase<T = 0> = TypeResponsive<TypeBase<T>>;
|
|
14
|
-
type TypeColorProps = $ReadOnly<{|
|
|
15
|
-
backgroundColor?: TypeResponsiveBase<>,
|
|
16
|
-
bg?: TypeResponsiveBase<>,
|
|
17
|
-
color?: TypeResponsiveBase<>,
|
|
18
|
-
opacity?: TypeResponsiveBase<>,
|
|
19
|
-
|}>;
|
|
20
|
-
type TypeSpaceProps = $ReadOnly<{|
|
|
21
|
-
m?: TypeResponsiveBase<>,
|
|
22
|
-
margin?: TypeResponsiveBase<>,
|
|
23
|
-
mb?: TypeResponsiveBase<>,
|
|
24
|
-
marginBottom?: TypeResponsiveBase<>,
|
|
25
|
-
ml?: TypeResponsiveBase<>,
|
|
26
|
-
marginLeft?: TypeResponsiveBase<>,
|
|
27
|
-
mr?: TypeResponsiveBase<>,
|
|
28
|
-
marginRight?: TypeResponsiveBase<>,
|
|
29
|
-
mt?: TypeResponsiveBase<>,
|
|
30
|
-
marginTop?: TypeResponsiveBase<>,
|
|
31
|
-
mx?: TypeResponsiveBase<>,
|
|
32
|
-
marginX?: TypeResponsiveBase<>,
|
|
33
|
-
my?: TypeResponsiveBase<>,
|
|
34
|
-
marginY?: TypeResponsiveBase<>,
|
|
35
|
-
p?: TypeResponsiveBase<>,
|
|
36
|
-
padding?: TypeResponsiveBase<>,
|
|
37
|
-
pb?: TypeResponsiveBase<>,
|
|
38
|
-
paddingBottom?: TypeResponsiveBase<>,
|
|
39
|
-
pl?: TypeResponsiveBase<>,
|
|
40
|
-
paddingLeft?: TypeResponsiveBase<>,
|
|
41
|
-
pr?: TypeResponsiveBase<>,
|
|
42
|
-
paddingRight?: TypeResponsiveBase<>,
|
|
43
|
-
pt?: TypeResponsiveBase<>,
|
|
44
|
-
paddingTop?: TypeResponsiveBase<>,
|
|
45
|
-
px?: TypeResponsiveBase<>,
|
|
46
|
-
paddingX?: TypeResponsiveBase<>,
|
|
47
|
-
py?: TypeResponsiveBase<>,
|
|
48
|
-
paddingY?: TypeResponsiveBase<>,
|
|
49
|
-
|}>;
|
|
50
|
-
export type TypeSystemCommonProps = $ReadOnly<{|
|
|
51
|
-
...TypeColorProps,
|
|
52
|
-
...TypeSpaceProps,
|
|
53
|
-
cursor?: TypeResponsiveBase<>,
|
|
54
|
-
|}>;
|
|
55
|
-
export type TypeSystemBorderProps = $ReadOnly<{|
|
|
56
|
-
border?: TypeResponsiveBase<>,
|
|
57
|
-
borderWidth?: TypeResponsiveBase<>,
|
|
58
|
-
borderStyle?: TypeResponsiveBase<>,
|
|
59
|
-
borderColor?: TypeResponsiveBase<>,
|
|
60
|
-
borderRadius?: TypeResponsiveBase<>,
|
|
61
|
-
borderTop?: TypeResponsiveBase<>,
|
|
62
|
-
borderTopLeftRadius?: TypeResponsiveBase<>,
|
|
63
|
-
borderTopRightRadius?: TypeResponsiveBase<>,
|
|
64
|
-
borderRight?: TypeResponsiveBase<>,
|
|
65
|
-
borderBottom?: TypeResponsiveBase<>,
|
|
66
|
-
borderBottomLeftRadius?: TypeResponsiveBase<>,
|
|
67
|
-
borderBottomRightRadius?: TypeResponsiveBase<>,
|
|
68
|
-
borderLeft?: TypeResponsiveBase<>,
|
|
69
|
-
borderX?: TypeResponsiveBase<>,
|
|
70
|
-
borderY?: TypeResponsiveBase<>,
|
|
71
|
-
boxShadow?: TypeResponsiveBase<>,
|
|
72
|
-
textShadow?: TypeResponsiveBase<>,
|
|
73
|
-
|}>;
|
|
74
|
-
type TypeResponsiveTypeographySize = TypeResponsiveString<TypeTypography>;
|
|
75
|
-
export type TypeSystemTypographyProps = $ReadOnly<{|
|
|
76
|
-
typeScale?: TypeResponsiveTypeographySize,
|
|
77
|
-
fontFamily?: TypeResponsiveString<>,
|
|
78
|
-
fontSize?: TypeResponsiveTypeographySize,
|
|
79
|
-
fontWeight?: TypeResponsiveString<>,
|
|
80
|
-
lineHeight?: TypeResponsiveBase<>,
|
|
81
|
-
letterSpacing?: TypeResponsiveString<>,
|
|
82
|
-
textAlign?: TypeResponsive<Property$TextAlign>,
|
|
83
|
-
fontStyle?: TypeResponsiveString<>,
|
|
84
|
-
|}>;
|
|
85
|
-
export type TypeSystemLayoutProps = $ReadOnly<{|
|
|
86
|
-
width?: TypeResponsiveBase<>,
|
|
87
|
-
height?: TypeResponsiveBase<>,
|
|
88
|
-
minWidth?: TypeResponsiveBase<>,
|
|
89
|
-
minHeight?: TypeResponsiveBase<>,
|
|
90
|
-
maxWidth?: TypeResponsiveBase<>,
|
|
91
|
-
maxHeight?: TypeResponsiveBase<>,
|
|
92
|
-
size?: TypeResponsiveBase<>,
|
|
93
|
-
overflow?: TypeResponsiveString<>,
|
|
94
|
-
display?: TypeResponsiveString<>,
|
|
95
|
-
verticalAlign?: TypeResponsiveString<>,
|
|
96
|
-
|}>;
|
|
97
|
-
export type TypeSystemPositionProps = $ReadOnly<{|
|
|
98
|
-
position?: TypeResponsive<Property$Position>,
|
|
99
|
-
zIndex?: TypeResponsive<Property$ZIndex>,
|
|
100
|
-
top?: TypeResponsiveBase<>,
|
|
101
|
-
right?: TypeResponsiveBase<>,
|
|
102
|
-
bottom?: TypeResponsiveBase<>,
|
|
103
|
-
left?: TypeResponsiveBase<>,
|
|
104
|
-
|}>;
|
|
105
|
-
export type TypeSystemFlexboxProps = $ReadOnly<{|
|
|
106
|
-
alignItems?: TypeResponsiveString<>,
|
|
107
|
-
alignContent?: TypeResponsiveString<>,
|
|
108
|
-
justifyItems?: TypeResponsiveString<>,
|
|
109
|
-
justifyContent?: TypeResponsiveString<>,
|
|
110
|
-
flexWrap?: TypeResponsive<Property$FlexWrap>,
|
|
111
|
-
flexDirection?: TypeResponsive<Property$FlexDirection>,
|
|
112
|
-
flex?: TypeResponsiveBase<>,
|
|
113
|
-
flexGrow?: TypeResponsiveBase<>,
|
|
114
|
-
flexShrink?: TypeResponsiveBase<>,
|
|
115
|
-
flexBasis?: TypeResponsiveBase<>,
|
|
116
|
-
justifySelf?: TypeResponsiveString<>,
|
|
117
|
-
alignSelf?: TypeResponsiveString<>,
|
|
118
|
-
order?: TypeResponsiveBase<>,
|
|
119
|
-
gap?: TypeResponsiveBase<>,
|
|
120
|
-
rowGap?: TypeResponsiveBase<>,
|
|
121
|
-
columnGap?: TypeResponsiveBase<>,
|
|
122
|
-
|}>;
|
|
123
|
-
export type TypeSystemGridProps = $ReadOnly<{|
|
|
124
|
-
gridArea?: TypeResponsiveBase<>,
|
|
125
|
-
gridAutoColumns?: TypeResponsiveBase<>,
|
|
126
|
-
gridAutoFlow?: TypeResponsiveBase<>,
|
|
127
|
-
gridAutoRows?: TypeResponsiveBase<>,
|
|
128
|
-
gridColumn?: TypeResponsiveBase<>,
|
|
129
|
-
gridColumnGap?: TypeResponsiveBase<>,
|
|
130
|
-
gridGap?: TypeResponsiveBase<>,
|
|
131
|
-
gridRow?: TypeResponsiveBase<>,
|
|
132
|
-
gridRowGap?: TypeResponsiveBase<>,
|
|
133
|
-
gridTemplateAreas?: TypeResponsiveBase<>,
|
|
134
|
-
gridTemplateColumns?: TypeResponsiveBase<>,
|
|
135
|
-
gridTemplateRows?: TypeResponsiveBase<>,
|
|
136
|
-
|}>;
|