@sproutsocial/racine 24.1.0 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/codemods/__tests__/icon-library.test.js +5 -11
- package/commonjs/Avatar/Avatar.js +3 -2
- package/commonjs/Duration/Duration.js +31 -49
- package/commonjs/Duration/constants.js +21 -2
- package/commonjs/Duration/index.js +9 -1
- package/commonjs/Duration/utils.js +76 -0
- package/dist/types/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/Duration/Duration.d.ts.map +1 -1
- package/dist/types/Duration/DurationTypes.d.ts +16 -4
- package/dist/types/Duration/DurationTypes.d.ts.map +1 -1
- package/dist/types/Duration/constants.d.ts +18 -1
- package/dist/types/Duration/constants.d.ts.map +1 -1
- package/dist/types/Duration/index.d.ts +3 -0
- package/dist/types/Duration/index.d.ts.map +1 -1
- package/dist/types/Duration/utils.d.ts +16 -0
- package/dist/types/Duration/utils.d.ts.map +1 -0
- package/lib/Avatar/Avatar.js +3 -2
- package/lib/Duration/Duration.js +30 -48
- package/lib/Duration/constants.js +20 -1
- package/lib/Duration/index.js +2 -0
- package/lib/Duration/utils.js +70 -0
- package/package.json +2 -9
- 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,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;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
// eslint-disable-next-line no-unused-vars -- used in class extend... why is this erroring?
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
export type TypeImageProps = {
|
|
5
|
-
src: string,
|
|
6
|
-
/** Alt text is required for non-decorative images */
|
|
7
|
-
alt: string,
|
|
8
|
-
title: string,
|
|
9
|
-
onError: (e: SyntheticEvent<HTMLImageElement, Event>) => void,
|
|
10
|
-
onClick: () => void,
|
|
11
|
-
/** A URL for a default image to load if the source image is not available */
|
|
12
|
-
defaultImage?: string,
|
|
13
|
-
onLoad: () => void,
|
|
14
|
-
qa?: Object,
|
|
15
|
-
...
|
|
16
|
-
};
|
|
17
|
-
declare class Image extends React.Component<TypeImageProps> {
|
|
18
|
-
static defaultProps: {|
|
|
19
|
-
title: $PropertyType<TypeImageProps, "title">,
|
|
20
|
-
onError: $PropertyType<TypeImageProps, "onError">,
|
|
21
|
-
onClick: $PropertyType<TypeImageProps, "onClick">,
|
|
22
|
-
onLoad: $PropertyType<TypeImageProps, "onLoad">,
|
|
23
|
-
|}
|
|
24
|
-
}
|
|
25
|
-
declare export default typeof Image;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeWithDisplayName } from "../types/shared.flow";
|
|
4
|
-
export type TypeInputProps = {
|
|
5
|
-
/** ID of the form element, should match the "for" value of the associated label */
|
|
6
|
-
id: string,
|
|
7
|
-
name: string,
|
|
8
|
-
/** Label used to describe the input if not used with an accompanying visual label */
|
|
9
|
-
ariaLabel?: string,
|
|
10
|
-
/** Attribute used to associate other elements that describe the Input, like an error */
|
|
11
|
-
ariaDescribedby?: string,
|
|
12
|
-
/** Label for Input.ClearButton. Required when using Input.ClearButton. */
|
|
13
|
-
clearButtonLabel?: string,
|
|
14
|
-
/** Placeholder text for when value is undefined or empty */
|
|
15
|
-
placeholder?: string,
|
|
16
|
-
/** Current value of the input */
|
|
17
|
-
value?: string,
|
|
18
|
-
/** HTML type attribute */
|
|
19
|
-
type?: "date" | "email" | "number" | "password" | "text" | "url" | "search",
|
|
20
|
-
/** Set option to display earlier typed values */
|
|
21
|
-
autoComplete?: boolean,
|
|
22
|
-
/** Will autofocus the element when mounted to the DOM */
|
|
23
|
-
autoFocus?: boolean,
|
|
24
|
-
/** HTML disabled attribute */
|
|
25
|
-
disabled?: boolean,
|
|
26
|
-
/** HTML readonly attribute */
|
|
27
|
-
readOnly?: boolean,
|
|
28
|
-
/** Whether or not the current contents of the input are invalid */
|
|
29
|
-
isInvalid?: boolean,
|
|
30
|
-
/** Whether or not the current contents of the input has any warnings */
|
|
31
|
-
hasWarning?: boolean,
|
|
32
|
-
/** HTML required attribute */
|
|
33
|
-
required?: boolean,
|
|
34
|
-
/** 16x16 element, such as an icon */
|
|
35
|
-
elemBefore?: React.Node,
|
|
36
|
-
/** 16x16 element, such as an icon */
|
|
37
|
-
elemAfter?: React.Node,
|
|
38
|
-
/** Max length of the input */
|
|
39
|
-
maxLength?: number,
|
|
40
|
-
/** Props to spread onto the underlying input element */
|
|
41
|
-
inputProps?: any,
|
|
42
|
-
/** Used to get a reference to the underlying element */
|
|
43
|
-
innerRef?: {|
|
|
44
|
-
current: null | HTMLInputElement
|
|
45
|
-
|} | ((React.ElementRef<any> | HTMLElement) => void),
|
|
46
|
-
onBlur?: (e: SyntheticFocusEvent<HTMLInputElement>) => void,
|
|
47
|
-
onChange?: (e: SyntheticInputEvent<HTMLInputElement>, value: string) => void,
|
|
48
|
-
onClear?: (e: SyntheticEvent<HTMLButtonElement>) => void,
|
|
49
|
-
onFocus?: (e: SyntheticFocusEvent<HTMLInputElement>) => void,
|
|
50
|
-
onKeyDown?: (e: SyntheticKeyboardEvent<HTMLInputElement>, value: string) => void,
|
|
51
|
-
onKeyUp?: (e: SyntheticKeyboardEvent<HTMLInputElement>, value: string) => void,
|
|
52
|
-
onPaste?: (e: SyntheticInputEvent<HTMLInputElement>, value: string) => void,
|
|
53
|
-
size?: "large" | "small" | "default",
|
|
54
|
-
qa?: Object,
|
|
55
|
-
/**
|
|
56
|
-
Controls the styles of the input. Primary is our standard input styles and secondary is a borderless input.
|
|
57
|
-
Note that this prop should only be used to alter styles and not functionality.
|
|
58
|
-
*/
|
|
59
|
-
appearance?: "primary" | "secondary",
|
|
60
|
-
...
|
|
61
|
-
};
|
|
62
|
-
declare class Input extends React.Component<TypeInputProps> {
|
|
63
|
-
static ClearButton: TypeWithDisplayName<React.StatelessFunctionalComponent<{||}>>
|
|
64
|
-
}
|
|
65
|
-
declare export default typeof Input;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export type TypeKeyboardKeyProps = {
|
|
4
|
-
/** Text to display inside of key */
|
|
5
|
-
children: string,
|
|
6
|
-
...
|
|
7
|
-
};
|
|
8
|
-
declare var KeyboardKey: React.ComponentType<TypeKeyboardKeyProps>;
|
|
9
|
-
declare export default typeof KeyboardKey;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import Text from "../Text/index.flow";
|
|
4
|
-
export type TypeLabelBaseProps = {
|
|
5
|
-
...React.ElementConfig<typeof Text>,
|
|
6
|
-
as: string,
|
|
7
|
-
...
|
|
8
|
-
};
|
|
9
|
-
export type TypeLabelProps = {
|
|
10
|
-
/** ID of the associated form element */
|
|
11
|
-
htmlFor: string,
|
|
12
|
-
children: React.Node,
|
|
13
|
-
...
|
|
14
|
-
};
|
|
15
|
-
declare var Label: React.ComponentType<TypeLabelProps>;
|
|
16
|
-
declare export default typeof Label;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeStyledComponentsCommonProps } from "../types/styled-components.flow";
|
|
4
|
-
export type TypeLinkProps = {
|
|
5
|
-
/** Optional prop to make the URL open in a new tab */
|
|
6
|
-
external?: boolean,
|
|
7
|
-
children: React.Node,
|
|
8
|
-
/** Setting this prop will cause the component to be rendered as a link */
|
|
9
|
-
href?: string,
|
|
10
|
-
/** Disables user action and applies a disabled style to the component */
|
|
11
|
-
disabled?: boolean,
|
|
12
|
-
/** Can be used in addition to an href but still renders as a link. Omitting href will render as button */
|
|
13
|
-
onClick?: (e: SyntheticEvent<HTMLButtonElement>) => void,
|
|
14
|
-
as?: $PropertyType<TypeStyledComponentsCommonProps, "as">,
|
|
15
|
-
underline?: boolean,
|
|
16
|
-
qa?: Object,
|
|
17
|
-
...
|
|
18
|
-
};
|
|
19
|
-
declare var Link: React.StatelessFunctionalComponent<TypeLinkProps>;
|
|
20
|
-
declare export default typeof Link;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import Button from "../Button/index.flow";
|
|
4
|
-
import Popout from "../Popout/index.flow";
|
|
5
|
-
import Menu from "../Menu/index.flow";
|
|
6
|
-
import type { TypeMenuProps, TypeMenuButtonContext } from "../Menu/index.flow";
|
|
7
|
-
export type TypeListboxProps = {
|
|
8
|
-
...TypeMenuProps,
|
|
9
|
-
role?: "listbox",
|
|
10
|
-
...
|
|
11
|
-
};
|
|
12
|
-
export type TypeListboxButtonProps = {
|
|
13
|
-
...$Exact<React.ElementConfig<typeof Button>>,
|
|
14
|
-
...TypeMenuButtonContext,
|
|
15
|
-
size?: "large" | "default" | "small",
|
|
16
|
-
content: React.Node,
|
|
17
|
-
popoutProps?: $Shape<React.ElementConfig<typeof Popout>>,
|
|
18
|
-
"aria-label"?: string,
|
|
19
|
-
"aria-labelledby"?: string,
|
|
20
|
-
...
|
|
21
|
-
};
|
|
22
|
-
declare class Listbox extends React.Component<TypeListboxProps> {
|
|
23
|
-
static Item: typeof Menu.Item,
|
|
24
|
-
static Option: typeof Menu.Item,
|
|
25
|
-
static Checkbox: typeof Menu.Checkbox,
|
|
26
|
-
static Radio: typeof Menu.Radio,
|
|
27
|
-
static Group: typeof Menu.Group,
|
|
28
|
-
static Switch: typeof Menu.Switch,
|
|
29
|
-
static Divider: typeof Menu.Divider,
|
|
30
|
-
static FilterInput: typeof Menu.FilterInput,
|
|
31
|
-
}
|
|
32
|
-
declare export var ListboxButton: React.StatelessFunctionalComponent<TypeListboxButtonProps>;
|
|
33
|
-
declare export default typeof Listbox;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export type TypeLoaderProps = {
|
|
4
|
-
size?: "small" | "large",
|
|
5
|
-
/** Text for the loader. This text is not visible, but is used for accessibility purposed */
|
|
6
|
-
text?: string,
|
|
7
|
-
/** Whether the loader should wait 2 seconds before it displays */
|
|
8
|
-
delay?: boolean,
|
|
9
|
-
color?: "light" | "dark",
|
|
10
|
-
qa?: Object,
|
|
11
|
-
...
|
|
12
|
-
};
|
|
13
|
-
declare var Loader: React.ComponentType<TypeLoaderProps>;
|
|
14
|
-
declare export default typeof Loader;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { TypeButtonProps } from "../Button/index.flow";
|
|
4
|
-
export type TypeLoaderButtonProps = {
|
|
5
|
-
...TypeButtonProps,
|
|
6
|
-
isLoading?: boolean,
|
|
7
|
-
loaderLabel: string,
|
|
8
|
-
...
|
|
9
|
-
};
|
|
10
|
-
declare var LoaderButton: React.StatelessFunctionalComponent<TypeLoaderButtonProps>;
|
|
11
|
-
declare export default typeof LoaderButton;
|