@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,21 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeIconName } from "../Icon/index.flow";
|
|
4
|
-
import { badgeColors } from "./constants.flow";
|
|
5
|
-
export type TypeBadgeColor = $Keys<typeof badgeColors>;
|
|
6
|
-
export type TypeBadgeProps = {
|
|
7
|
-
children?: React.Node,
|
|
8
|
-
/** DEPRECATED: Use children instead of text */
|
|
9
|
-
text?: React.Node,
|
|
10
|
-
/** Size default is deprecated in favor of small and large */
|
|
11
|
-
size?: "small" | "large" | "default",
|
|
12
|
-
badgeColor?: TypeBadgeColor,
|
|
13
|
-
iconName?: TypeIconName,
|
|
14
|
-
/** DEPRECATED: Possibly only used for testing. Refrain from using at all if possible. (optional) */
|
|
15
|
-
tip?: React.Node,
|
|
16
|
-
/** DEPRECATED: The legacy method of choosing a theme. Use badgeColor instead. (optional) */
|
|
17
|
-
type?: string,
|
|
18
|
-
...
|
|
19
|
-
};
|
|
20
|
-
declare var Badge: React.StatelessFunctionalComponent<TypeBadgeProps>;
|
|
21
|
-
declare export default typeof Badge;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
|
|
3
|
-
type TypeLegacyBadgeColor = {|
|
|
4
|
-
color: string,
|
|
5
|
-
background: string,
|
|
6
|
-
|};
|
|
7
|
-
declare export var legacyBadgeColors: {|
|
|
8
|
-
primary: TypeLegacyBadgeColor,
|
|
9
|
-
secondary: TypeLegacyBadgeColor,
|
|
10
|
-
passive: TypeLegacyBadgeColor,
|
|
11
|
-
common: TypeLegacyBadgeColor,
|
|
12
|
-
approval: TypeLegacyBadgeColor,
|
|
13
|
-
default: TypeLegacyBadgeColor,
|
|
14
|
-
suggestion: TypeLegacyBadgeColor,
|
|
15
|
-
|};
|
|
16
|
-
export const badgeColors = Object.freeze({
|
|
17
|
-
green: "green",
|
|
18
|
-
blue: "blue",
|
|
19
|
-
purple: "purple",
|
|
20
|
-
yellow: "yellow",
|
|
21
|
-
orange: "orange",
|
|
22
|
-
red: "red",
|
|
23
|
-
neutral: "neutral",
|
|
24
|
-
magenta: "magenta",
|
|
25
|
-
pink: "pink",
|
|
26
|
-
aqua: "aqua",
|
|
27
|
-
teal: "teal"
|
|
28
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeIconProps } from "../Icon/index.flow";
|
|
4
|
-
export type EnumBannerType = "success" | "info" | "error" | "warning" | "opportunity";
|
|
5
|
-
export type TypeBannerProps = {
|
|
6
|
-
text: React.Node,
|
|
7
|
-
/** Type of banner. */
|
|
8
|
-
type?: EnumBannerType,
|
|
9
|
-
/** Show the close icon in the banner with an action when clicked */
|
|
10
|
-
onClose?: () => void,
|
|
11
|
-
/** Close icon aria label */
|
|
12
|
-
closeButtonLabel?: string,
|
|
13
|
-
/** Icon props that can be passed to the Type specific Icon */
|
|
14
|
-
typeIconProps?: {
|
|
15
|
-
...TypeIconProps,
|
|
16
|
-
name?: void,
|
|
17
|
-
...
|
|
18
|
-
},
|
|
19
|
-
...
|
|
20
|
-
};
|
|
21
|
-
declare var Banner: React.StatelessFunctionalComponent<TypeBannerProps>;
|
|
22
|
-
declare export default typeof Banner;
|
package/__flow__/Box/Box.flow.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { StyledComponent } from "styled-components";
|
|
4
|
-
import type { TypeStyledComponentsCommonProps } from "../types/styled-components.flow";
|
|
5
|
-
import type { TypeSystemCommonProps, TypeSystemBorderProps, TypeSystemLayoutProps, TypeSystemPositionProps, TypeSystemFlexboxProps, TypeSystemGridProps } from "../types/system-props.flow";
|
|
6
|
-
import type { TypeTheme } from "../types/theme.flow";
|
|
7
|
-
export type TypeContainerProps = $ReadOnly<{|
|
|
8
|
-
...TypeStyledComponentsCommonProps,
|
|
9
|
-
...TypeSystemCommonProps,
|
|
10
|
-
...TypeSystemBorderProps,
|
|
11
|
-
...TypeSystemLayoutProps,
|
|
12
|
-
...TypeSystemPositionProps,
|
|
13
|
-
...TypeSystemFlexboxProps,
|
|
14
|
-
...TypeSystemGridProps,
|
|
15
|
-
|}>;
|
|
16
|
-
type TypeBoxContainer = StyledComponent<TypeContainerProps, TypeTheme, *>;
|
|
17
|
-
export type TypeBoxProps = {
|
|
18
|
-
...React.ElementConfig<TypeBoxContainer>,
|
|
19
|
-
...
|
|
20
|
-
};
|
|
21
|
-
declare var Box: React.AbstractComponent<TypeBoxProps, *>;
|
|
22
|
-
declare export default typeof Box;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeLinkProps } from "../Link/index.flow";
|
|
4
|
-
import type { TypeWithDisplayName } from "../types/shared.flow";
|
|
5
|
-
export type TypeBreadcrumbProps = {
|
|
6
|
-
children: React.Node,
|
|
7
|
-
/** Description of the type of navigation being provided by the breadcrumb (i.e. "Asset library breadcrumb") */
|
|
8
|
-
ariaLabel: string,
|
|
9
|
-
/** optional */
|
|
10
|
-
overflow?: {
|
|
11
|
-
label: string,
|
|
12
|
-
menu: React.Node,
|
|
13
|
-
...
|
|
14
|
-
},
|
|
15
|
-
...
|
|
16
|
-
};
|
|
17
|
-
export type TypeBreadcrumbItemProps = TypeLinkProps;
|
|
18
|
-
declare var BreadcrumbItem: TypeWithDisplayName<React.StatelessFunctionalComponent<TypeBreadcrumbItemProps>>;
|
|
19
|
-
declare class Breadcrumb extends React.Component<TypeBreadcrumbProps> {
|
|
20
|
-
static Item: typeof BreadcrumbItem
|
|
21
|
-
}
|
|
22
|
-
declare export default typeof Breadcrumb;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { type StyledComponent } from "styled-components";
|
|
4
|
-
import type { TypeTheme } from "../types/theme.flow";
|
|
5
|
-
import type { TypeSystemCommonProps, TypeSystemLayoutProps, TypeSystemFlexboxProps, TypeSystemGridProps } from "../types/system-props.flow";
|
|
6
|
-
export type TypeButtonProps = {
|
|
7
|
-
...TypeSystemCommonProps,
|
|
8
|
-
...TypeSystemLayoutProps,
|
|
9
|
-
...TypeSystemFlexboxProps,
|
|
10
|
-
...TypeSystemGridProps,
|
|
11
|
-
/** If the button is being used as an anchor, this prop will cause the link to open in a new tab. */
|
|
12
|
-
external?: boolean,
|
|
13
|
-
size?: "large" | "default",
|
|
14
|
-
/** What the button looks like. "default" is deprecated in favor of "unstyled" */
|
|
15
|
-
appearance?: "primary" | "secondary" | "pill" | "destructive" | "unstyled" | "placeholder",
|
|
16
|
-
/** Set the button to display in its active state */
|
|
17
|
-
active?: boolean,
|
|
18
|
-
/** Disables user action and applies a disabled style on the button */
|
|
19
|
-
disabled?: boolean,
|
|
20
|
-
children: React.Node,
|
|
21
|
-
/** Setting this prop will cause the component to be rendered as an anchor element instead of a button element */
|
|
22
|
-
href?: string,
|
|
23
|
-
/** Used to get a reference to the underlying button */
|
|
24
|
-
innerRef?: React.Ref<"button">,
|
|
25
|
-
/** Action to perform when the button is clicked */
|
|
26
|
-
onClick?: (e: SyntheticEvent<HTMLButtonElement>) => any,
|
|
27
|
-
title?: string,
|
|
28
|
-
qa?: Object,
|
|
29
|
-
as?: any,
|
|
30
|
-
/** Label used to describe the button if the button does not have text within it */
|
|
31
|
-
ariaLabel?: string,
|
|
32
|
-
...
|
|
33
|
-
};
|
|
34
|
-
declare export var Container: StyledComponent<any, TypeTheme, *>;
|
|
35
|
-
declare var Button: React.StatelessFunctionalComponent<TypeButtonProps>;
|
|
36
|
-
declare export default typeof Button;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeCardProps, TypeCardLink, TypeCardArea } from "./CardTypes.flow";
|
|
4
|
-
declare var Card: React.StatelessFunctionalComponent<TypeCardProps>;
|
|
5
|
-
declare export var CardLink: React.StatelessFunctionalComponent<TypeCardLink>;
|
|
6
|
-
declare export var CardHeader: React.StatelessFunctionalComponent<TypeCardArea>;
|
|
7
|
-
declare export var CardContent: React.StatelessFunctionalComponent<TypeCardArea>;
|
|
8
|
-
declare export var CardFooter: React.StatelessFunctionalComponent<TypeCardArea>;
|
|
9
|
-
declare export default typeof Card;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import type { TypeIconProps } from "../Icon/index.flow";
|
|
5
|
-
import type { TypeStyledComponentsCommonProps, TypePropsWithChildren } from "../types/index.flow";
|
|
6
|
-
import type { TypeBorderSystemProps, TypeColorSystemProps, TypeFlexboxSystemProps, TypeGridSystemProps, TypeLayoutSystemProps, TypePositionSystemProps, TypeSpaceSystemProps, TypeTypographySystemProps } from "../systemProps/index.flow";
|
|
7
|
-
export type TypeSharedCardSystemProps = TypePropsWithChildren<{|
|
|
8
|
-
...TypeStyledComponentsCommonProps,
|
|
9
|
-
...TypeBorderSystemProps,
|
|
10
|
-
...TypeColorSystemProps,
|
|
11
|
-
...TypeFlexboxSystemProps,
|
|
12
|
-
...TypeGridSystemProps,
|
|
13
|
-
...TypeLayoutSystemProps,
|
|
14
|
-
...TypePositionSystemProps,
|
|
15
|
-
...TypeSpaceSystemProps,
|
|
16
|
-
key?: React.Key,
|
|
17
|
-
|}>;
|
|
18
|
-
export type TypeCardStyleProps = {|
|
|
19
|
-
elevation?: "low" | "medium" | "high",
|
|
20
|
-
disabled?: boolean,
|
|
21
|
-
compositionalComponents?: boolean,
|
|
22
|
-
selected?: boolean,
|
|
23
|
-
|};
|
|
24
|
-
export type TypeCardStyleTransientProps = {|
|
|
25
|
-
$elevation?: "low" | "medium" | "high",
|
|
26
|
-
$disabled?: boolean,
|
|
27
|
-
$compositionalComponents?: boolean,
|
|
28
|
-
$selected?: boolean,
|
|
29
|
-
|};
|
|
30
|
-
export type TypeStyledCard = {
|
|
31
|
-
...TypeSharedCardSystemProps,
|
|
32
|
-
...TypeCardStyleTransientProps,
|
|
33
|
-
...
|
|
34
|
-
};
|
|
35
|
-
export type TypeCardStyles = {|
|
|
36
|
-
...TypeSharedCardSystemProps,
|
|
37
|
-
...$Diff<TypeCardStyleProps, {|
|
|
38
|
-
compositionalComponents: any
|
|
39
|
-
|}>,
|
|
40
|
-
|};
|
|
41
|
-
declare type TypeOnClick = (event: SyntheticMouseEvent<HTMLElement> | SyntheticMouseEvent<HTMLElement>) => void;
|
|
42
|
-
export type TypeCardConditions = {|
|
|
43
|
-
role: "link" | "button" | "checkbox" | "presentation",
|
|
44
|
-
href?: string,
|
|
45
|
-
onClick?: TypeOnClick,
|
|
46
|
-
selected?: boolean,
|
|
47
|
-
|};
|
|
48
|
-
export type TypeCardProps = {
|
|
49
|
-
...TypeCardConditions,
|
|
50
|
-
...TypeCardStyles,
|
|
51
|
-
$elevation?: void,
|
|
52
|
-
$disabled?: void,
|
|
53
|
-
$compositionalComponents?: void,
|
|
54
|
-
$selected?: void,
|
|
55
|
-
...
|
|
56
|
-
};
|
|
57
|
-
export type TypeCardArea = {
|
|
58
|
-
...TypeSharedCardSystemProps,
|
|
59
|
-
$divider?: "top" | "bottom",
|
|
60
|
-
...
|
|
61
|
-
};
|
|
62
|
-
export type TypeStyledSelectedIcon = {
|
|
63
|
-
...TypeIconProps,
|
|
64
|
-
$selected: $PropertyType<TypeCardStyleTransientProps, "$selected">,
|
|
65
|
-
...
|
|
66
|
-
};
|
|
67
|
-
export type TypeCardLink = {
|
|
68
|
-
...TypeColorSystemProps,
|
|
69
|
-
...TypeTypographySystemProps,
|
|
70
|
-
affordance?: boolean,
|
|
71
|
-
external?: boolean,
|
|
72
|
-
...
|
|
73
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export type TypeCharacterCounterProps = {
|
|
4
|
-
/** Current value of relative input/textarea */
|
|
5
|
-
currentValue: number,
|
|
6
|
-
/** Max amount of characters for input/textarea */
|
|
7
|
-
maxValue: number,
|
|
8
|
-
size?: "default" | "mini",
|
|
9
|
-
...
|
|
10
|
-
};
|
|
11
|
-
declare var CharacterCounter: React.ComponentType<TypeCharacterCounterProps>;
|
|
12
|
-
declare export default typeof CharacterCounter;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export type TypeChartLegendTheme = "compare" | "contrast" | "extended";
|
|
4
|
-
export type TypeChartLegendProps = {
|
|
5
|
-
/** Inline or stacked y plots */
|
|
6
|
-
stacked?: boolean,
|
|
7
|
-
theme?: TypeChartLegendTheme,
|
|
8
|
-
/** Array of names with optional color to display. If no color is specified, index of label will be used to determine color based on the theme. */
|
|
9
|
-
legendLabels: {
|
|
10
|
-
name: string,
|
|
11
|
-
color?: string,
|
|
12
|
-
...
|
|
13
|
-
}[],
|
|
14
|
-
qa?: Object,
|
|
15
|
-
...
|
|
16
|
-
};
|
|
17
|
-
declare var ChartLegend: React.StatelessFunctionalComponent<TypeChartLegendProps>;
|
|
18
|
-
declare export default typeof ChartLegend;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export type TypeCheckboxProps = {
|
|
4
|
-
/** ID of the form element, should match the "for" value of the associated label */
|
|
5
|
-
id: string,
|
|
6
|
-
value?: string,
|
|
7
|
-
name?: string,
|
|
8
|
-
/** Label text to display next to the checkbox */
|
|
9
|
-
label?: string,
|
|
10
|
-
/** Label used to describe the input (if not used with an accompanying visual label) */
|
|
11
|
-
ariaLabel?: string,
|
|
12
|
-
labelProps?: Object,
|
|
13
|
-
checked?: boolean,
|
|
14
|
-
indeterminate?: boolean,
|
|
15
|
-
disabled?: boolean,
|
|
16
|
-
onChange: (event: SyntheticEvent<HTMLInputElement>) => void,
|
|
17
|
-
appearance?: "pill" | "default",
|
|
18
|
-
qa?: Object,
|
|
19
|
-
tabIndex?: string | number,
|
|
20
|
-
inputProps?: Object,
|
|
21
|
-
...
|
|
22
|
-
};
|
|
23
|
-
declare var Checkbox: React.StatelessFunctionalComponent<TypeCheckboxProps>;
|
|
24
|
-
declare export default typeof Checkbox;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeWithDisplayName } from "../types/shared.flow";
|
|
4
|
-
export type TypeCollapsibleProps = {
|
|
5
|
-
isOpen: boolean,
|
|
6
|
-
children: React.Node,
|
|
7
|
-
/** If the children of the collapsible panel have a top or bottom margin, it will throw off the calculations for the height of the content. The total amount of vertical margin (in pixels) can be supplied to this prop to correct this. */
|
|
8
|
-
offset?: number,
|
|
9
|
-
collapsedHeight?: number,
|
|
10
|
-
openHeight?: number,
|
|
11
|
-
...
|
|
12
|
-
};
|
|
13
|
-
declare var Trigger: TypeWithDisplayName<React.StatelessFunctionalComponent<{...}>>;
|
|
14
|
-
declare var Panel: TypeWithDisplayName<React.StatelessFunctionalComponent<{...}>>;
|
|
15
|
-
declare class Collapsible extends React.Component<TypeCollapsibleProps> {
|
|
16
|
-
static Trigger: typeof Trigger,
|
|
17
|
-
static Panel: typeof Panel,
|
|
18
|
-
}
|
|
19
|
-
declare export default typeof Collapsible;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { type TypeCommonDatePickerProps } from "../common.flow";
|
|
4
|
-
export type EnumFocusedInput = null | "startDate" | "endDate";
|
|
5
|
-
export type TypeDateRangePickerProps = {
|
|
6
|
-
startDate: ?moment$Moment,
|
|
7
|
-
endDate: ?moment$Moment,
|
|
8
|
-
onDatesChange: ({|
|
|
9
|
-
startDate: moment$Moment,
|
|
10
|
-
endDate: moment$Moment,
|
|
11
|
-
|}) => void,
|
|
12
|
-
focusedInput: EnumFocusedInput,
|
|
13
|
-
onFocusChange: (EnumFocusedInput) => void,
|
|
14
|
-
setStatusText?: (moment$Moment[]) => string,
|
|
15
|
-
...TypeCommonDatePickerProps,
|
|
16
|
-
...
|
|
17
|
-
};
|
|
18
|
-
declare var DateRangePicker: React.StatelessFunctionalComponent<TypeDateRangePickerProps>;
|
|
19
|
-
declare export default typeof DateRangePicker;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeDateRangePickerProps } from "./DateRangePicker.flow";
|
|
4
|
-
export type TypeStatefulDateRangePickerProps = {
|
|
5
|
-
...TypeDateRangePickerProps,
|
|
6
|
-
onDatesChange?: $PropertyType<TypeDateRangePickerProps, "onDatesChange">,
|
|
7
|
-
focusedInput?: $PropertyType<TypeDateRangePickerProps, "focusedInput">,
|
|
8
|
-
onFocusChange?: $PropertyType<TypeDateRangePickerProps, "onFocusChange">,
|
|
9
|
-
...
|
|
10
|
-
};
|
|
11
|
-
declare export var StatefulDateRangePicker: React.StatelessFunctionalComponent<TypeStatefulDateRangePickerProps>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { type TypeCommonDatePickerProps } from "../common.flow";
|
|
4
|
-
export type TypeSingleDatePickerProps = {
|
|
5
|
-
date: ?moment$Moment,
|
|
6
|
-
onDateChange: (date: moment$Moment) => void,
|
|
7
|
-
setStatusText?: (date: moment$Moment) => string,
|
|
8
|
-
focused?: boolean,
|
|
9
|
-
onFocusChange?: ({
|
|
10
|
-
focused: boolean,
|
|
11
|
-
...
|
|
12
|
-
}) => void,
|
|
13
|
-
...TypeCommonDatePickerProps,
|
|
14
|
-
...
|
|
15
|
-
};
|
|
16
|
-
declare var SingleDatePicker: React.StatelessFunctionalComponent<TypeSingleDatePickerProps>;
|
|
17
|
-
declare export default typeof SingleDatePicker;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeSingleDatePickerProps } from "./SingleDatePicker.flow";
|
|
4
|
-
export type TypeStatefulSingleDatePickerProps = {
|
|
5
|
-
...TypeSingleDatePickerProps,
|
|
6
|
-
onDateChange?: (date: moment$Moment) => void,
|
|
7
|
-
...
|
|
8
|
-
};
|
|
9
|
-
declare export var StatefulSingleDatePicker: React.StatelessFunctionalComponent<TypeStatefulSingleDatePickerProps>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import { type Node } from "react";
|
|
3
|
-
export type TypeCommonDatePickerProps = {|
|
|
4
|
-
daySize?: number,
|
|
5
|
-
isOutsideRange?: (date: moment$Moment) => boolean,
|
|
6
|
-
hideKeyboardShortcutsPanel?: boolean,
|
|
7
|
-
navPrev?: Node,
|
|
8
|
-
navNext?: Node,
|
|
9
|
-
numberOfMonths?: number,
|
|
10
|
-
renderDayContents?: (day: moment$Moment, modifiers: Object) => Node,
|
|
11
|
-
keepOpenOnDateSelect?: boolean,
|
|
12
|
-
initialVisibleMonth?: () => moment$Moment,
|
|
13
|
-
minimumNights?: number,
|
|
14
|
-
phrases?: {
|
|
15
|
-
[phrase: string]: Node | (({
|
|
16
|
-
date: moment$Moment,
|
|
17
|
-
...
|
|
18
|
-
}) => Node),
|
|
19
|
-
...
|
|
20
|
-
},
|
|
21
|
-
|};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
export { default as SingleDatePicker } from "./SingleDatePicker/index.flow";
|
|
3
|
-
export { default as DateRangePicker } from "./DateRangePicker/index.flow";
|
|
4
|
-
export * from "./common.flow";
|
|
5
|
-
export * from "./DateRangePicker/index.flow";
|
|
6
|
-
export * from "./SingleDatePicker/index.flow";
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeWithDisplayName } from "../types/shared.flow";
|
|
4
|
-
export type TypeDrawerContext = $Shape<{
|
|
5
|
-
/** Callback for close button */
|
|
6
|
-
onClose: () => any,
|
|
7
|
-
/** aria-label for drawer close button */
|
|
8
|
-
closeButtonLabel: string,
|
|
9
|
-
...
|
|
10
|
-
}>;
|
|
11
|
-
export type TypeDrawerCloseButtonProps = {
|
|
12
|
-
/** An optional function that receives the context of the parent drawer as an argument. Can be used to customize the on-close behavior. */
|
|
13
|
-
render?: (TypeDrawerContext) => React.Node,
|
|
14
|
-
children?: React.Node,
|
|
15
|
-
...
|
|
16
|
-
};
|
|
17
|
-
export type TypeDrawerHeaderProps = {
|
|
18
|
-
title?: string,
|
|
19
|
-
children?: React.Node,
|
|
20
|
-
/** An optional function that receives the context of the parent drawer as an argument. Can be used to customize the appearance of the header. */
|
|
21
|
-
render?: (TypeDrawerContext) => React.Node,
|
|
22
|
-
...
|
|
23
|
-
};
|
|
24
|
-
export type TypeDrawerProps = {
|
|
25
|
-
children: React.Node,
|
|
26
|
-
/** Label for the close button. Usually this should be "Close" */
|
|
27
|
-
closeButtonLabel: string,
|
|
28
|
-
/** Whether the drawer slides in from the left or right side of the screen */
|
|
29
|
-
direction?: "left" | "right",
|
|
30
|
-
/** In some cases, you may not want the user to be able to click outside of the drawer to close it. You can disable that with this prop. */
|
|
31
|
-
disableCloseOnClickOutside?: boolean,
|
|
32
|
-
id: string,
|
|
33
|
-
isOpen: boolean,
|
|
34
|
-
offset?: number,
|
|
35
|
-
onClose: () => void,
|
|
36
|
-
zIndex?: number,
|
|
37
|
-
closeTargets?: Array<Element>,
|
|
38
|
-
width?: number,
|
|
39
|
-
...
|
|
40
|
-
};
|
|
41
|
-
declare class DrawerContainer extends React.Component<TypeDrawerProps> {
|
|
42
|
-
static Header: TypeWithDisplayName<React.StatelessFunctionalComponent<TypeDrawerHeaderProps>>,
|
|
43
|
-
static Content: TypeWithDisplayName<React.StatelessFunctionalComponent<{
|
|
44
|
-
children?: React.Node,
|
|
45
|
-
...
|
|
46
|
-
}>>,
|
|
47
|
-
static CloseButton: TypeWithDisplayName<React.StatelessFunctionalComponent<TypeDrawerCloseButtonProps>>,
|
|
48
|
-
}
|
|
49
|
-
declare export default typeof DrawerContainer;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export type TypeEmptyStateProps = {
|
|
4
|
-
/** An image in (preferably in SVG format) */
|
|
5
|
-
media?: React.Node,
|
|
6
|
-
/** A headline describing the empty state */
|
|
7
|
-
headline: React.Node,
|
|
8
|
-
/** Optional description of the empty state */
|
|
9
|
-
subtext?: React.Node,
|
|
10
|
-
/** Element for the primary call-to-action */
|
|
11
|
-
primaryAction?: React.Element<*>,
|
|
12
|
-
/** Element for any secondary call-to-action */
|
|
13
|
-
secondaryAction?: React.Element<*>,
|
|
14
|
-
...
|
|
15
|
-
};
|
|
16
|
-
declare var EmptyState: React.StatelessFunctionalComponent<TypeEmptyStateProps>;
|
|
17
|
-
declare export default typeof EmptyState;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeWithDisplayName } from "../types/shared.flow";
|
|
4
|
-
export type TypeFieldsetProps = {
|
|
5
|
-
/** Label text to display above the fieldset */
|
|
6
|
-
label: React.Node,
|
|
7
|
-
helperText?: React.Node,
|
|
8
|
-
layout?: "vertical" | "horizontal",
|
|
9
|
-
children: React.Node,
|
|
10
|
-
...
|
|
11
|
-
};
|
|
12
|
-
declare class Fieldset extends React.Component<TypeFieldsetProps> {
|
|
13
|
-
static Legend: TypeWithDisplayName<React.StatelessFunctionalComponent<{...}>>,
|
|
14
|
-
static HelperText: TypeWithDisplayName<React.StatelessFunctionalComponent<{...}>>,
|
|
15
|
-
}
|
|
16
|
-
declare export default typeof Fieldset;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeBoxProps } from "../Box/index.flow";
|
|
4
|
-
export type TypeFormFieldProps = {
|
|
5
|
-
...TypeBoxProps,
|
|
6
|
-
/** A function that receives props that need to be spread onto the child element */
|
|
7
|
-
children: (options: {
|
|
8
|
-
id: string,
|
|
9
|
-
isInvalid: boolean,
|
|
10
|
-
ariaDescribedby: string,
|
|
11
|
-
required?: boolean,
|
|
12
|
-
...
|
|
13
|
-
}) => React.Element<any>,
|
|
14
|
-
/** Text describing any error with the field's content */
|
|
15
|
-
error?: React.Node,
|
|
16
|
-
/** Text acting as a description blurb below the main label **/
|
|
17
|
-
helperText?: React.Node,
|
|
18
|
-
/** ID of the form element (will be auto-generated if not provided) */
|
|
19
|
-
id?: string,
|
|
20
|
-
/** Whether the current contents of the field are invalid */
|
|
21
|
-
isInvalid?: boolean,
|
|
22
|
-
/** Label text to display above the form field */
|
|
23
|
-
label: React.Node,
|
|
24
|
-
qa?: Object,
|
|
25
|
-
/** Whether the label text should be visually hidden */
|
|
26
|
-
isLabelHidden?: boolean,
|
|
27
|
-
/** Whether the form element is required */
|
|
28
|
-
required?: boolean,
|
|
29
|
-
...
|
|
30
|
-
};
|
|
31
|
-
declare var FormField: React.StatelessFunctionalComponent<TypeFormFieldProps>;
|
|
32
|
-
declare export default typeof FormField;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { StyledComponent } from "styled-components";
|
|
4
|
-
import type { EnumIconNames } from "@sproutsocial/seeds-icons";
|
|
5
|
-
import type { EnumLogoNamesWithoutVariants } from "@sproutsocial/seeds-partner-logos";
|
|
6
|
-
import type { TypeWithDisplayName } from "../types/shared.flow";
|
|
7
|
-
import type { TypeTheme } from "../types/theme.flow";
|
|
8
|
-
export type TypeIconSize = "mini" // 12x12
|
|
9
|
-
// TODO: deprecate default in favor of small in future release
|
|
10
|
-
| "default" // 16x16
|
|
11
|
-
| "small" // 16x16
|
|
12
|
-
| "medium" // 24x24
|
|
13
|
-
| "large" // 32x32
|
|
14
|
-
| "jumbo"; // 64x64
|
|
15
|
-
|
|
16
|
-
export type TypeIconNames = EnumIconNames;
|
|
17
|
-
export type TypeIconName = TypeIconNames | EnumLogoNamesWithoutVariants;
|
|
18
|
-
export type TypeIconProps = {
|
|
19
|
-
/** Name of the icon in the svg sprite */
|
|
20
|
-
name: TypeIconName,
|
|
21
|
-
size?: TypeIconSize,
|
|
22
|
-
/** Whether the icon should have a fixed width or not. Use this when you need to align icons/text vertically in a list. */
|
|
23
|
-
fixedWidth?: boolean,
|
|
24
|
-
/** Label used to describe the icon if not used with an accompanying visual label */
|
|
25
|
-
ariaLabel?: string,
|
|
26
|
-
svgProps?: {...},
|
|
27
|
-
...
|
|
28
|
-
};
|
|
29
|
-
export type TypeToggleProps = {
|
|
30
|
-
/** Name of the icon to be shown in the active state */
|
|
31
|
-
activeName: TypeIconName,
|
|
32
|
-
/** Name of the icon to be shown in the inactive state */
|
|
33
|
-
inactiveName: TypeIconName,
|
|
34
|
-
/** Whether the active icon should be shown or not */
|
|
35
|
-
isActive: boolean,
|
|
36
|
-
/** The size of the icon. `small` is the default */
|
|
37
|
-
size?: "mini" | "default" | "small" | "medium" | "large" | "jumbo",
|
|
38
|
-
fixedWidth?: boolean,
|
|
39
|
-
ariaLabel?: string,
|
|
40
|
-
...
|
|
41
|
-
};
|
|
42
|
-
declare class Icon extends React.Component<TypeIconProps> {
|
|
43
|
-
static Toggle: TypeWithDisplayName<React.StatelessFunctionalComponent<TypeToggleProps>>
|
|
44
|
-
}
|
|
45
|
-
declare export var IconContainer: StyledComponent<{
|
|
46
|
-
iconSize: TypeIconSize,
|
|
47
|
-
fixedWidth: boolean,
|
|
48
|
-
...
|
|
49
|
-
}, TypeTheme, HTMLSpanElement>;
|
|
50
|
-
declare export default typeof Icon;
|