@sproutsocial/racine 12.23.0 → 13.0.2
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 +53 -0
- package/__flow__/Avatar/index.flow.js +16 -0
- package/__flow__/Avatar/index.js +33 -77
- package/__flow__/Badge/constants.js +9 -15
- package/__flow__/Badge/index.flow.js +17 -0
- package/__flow__/Badge/index.js +12 -53
- package/__flow__/Badge/styles.js +17 -27
- package/__flow__/Banner/index.flow.js +9 -0
- package/__flow__/Banner/index.js +16 -42
- package/__flow__/Banner/styles.js +8 -14
- package/__flow__/Box/index.flow.js +7 -0
- package/__flow__/Box/index.js +7 -9
- package/__flow__/Box/styles.js +9 -25
- package/__flow__/Breadcrumb/index.flow.js +15 -0
- package/__flow__/Breadcrumb/index.js +35 -60
- package/__flow__/Breadcrumb/styles.js +11 -14
- package/__flow__/Button/index.flow.js +26 -0
- package/__flow__/Button/index.js +9 -75
- package/__flow__/Button/styles.js +27 -47
- package/__flow__/Card/index.flow.js +19 -0
- package/__flow__/Card/index.js +8 -37
- package/__flow__/Card/styles.js +8 -11
- package/__flow__/CharacterCounter/index.flow.js +10 -0
- package/__flow__/CharacterCounter/index.js +13 -15
- package/__flow__/CharacterCounter/styles.js +9 -17
- package/__flow__/ChartLegend/index.flow.js +14 -0
- package/__flow__/ChartLegend/index.js +16 -31
- package/__flow__/ChartLegend/styles.js +10 -18
- package/__flow__/Checkbox/index.flow.js +22 -0
- package/__flow__/Checkbox/index.js +16 -93
- package/__flow__/Checkbox/styles.js +48 -101
- package/__flow__/Collapsible/index.flow.js +11 -0
- package/__flow__/Collapsible/index.js +45 -72
- package/__flow__/Collapsible/styles.js +11 -12
- package/__flow__/DatePicker/DateRangePicker.flow.js +15 -0
- package/__flow__/DatePicker/DateRangePicker.js +17 -32
- package/__flow__/DatePicker/SingleDatePicker.flow.js +12 -0
- package/__flow__/DatePicker/SingleDatePicker.js +17 -26
- package/__flow__/DatePicker/StatefulDateRangePicker.js +19 -33
- package/__flow__/DatePicker/StatefulSingleDatePicker.js +10 -16
- package/__flow__/DatePicker/common.flow.js +20 -0
- package/__flow__/DatePicker/common.js +19 -41
- package/__flow__/DatePicker/index.js +3 -4
- package/__flow__/DatePicker/styles.js +87 -72
- package/__flow__/Drawer/SlideTransition.js +22 -14
- package/__flow__/Drawer/index.flow.js +38 -0
- package/__flow__/Drawer/index.js +72 -184
- package/__flow__/Drawer/styles.js +9 -13
- package/__flow__/EmptyState/index.flow.js +15 -0
- package/__flow__/EmptyState/index.js +18 -46
- package/__flow__/EnumIconNames.js +1 -1
- package/__flow__/EnumIllustrationNames.js +1 -1
- package/__flow__/EnumLogoNames.js +1 -1
- package/__flow__/Fieldset/index.flow.js +10 -0
- package/__flow__/Fieldset/index.js +23 -54
- package/__flow__/Fieldset/styles.js +6 -12
- package/__flow__/FormField/index.flow.js +28 -0
- package/__flow__/FormField/index.js +28 -72
- package/__flow__/Icon/deprecatedIcons.js +4 -3
- package/__flow__/Icon/index.flow.js +34 -0
- package/__flow__/Icon/index.js +21 -80
- package/__flow__/Icon/styles.js +9 -15
- package/__flow__/IconViewBoxes.js +375 -1
- package/__flow__/IllustrationViewBoxes.js +121 -1
- package/__flow__/Image/index.flow.js +15 -0
- package/__flow__/Image/index.js +24 -52
- package/__flow__/Image/styles.js +6 -11
- package/__flow__/Indicator/index.flow.js +6 -0
- package/__flow__/Indicator/index.js +16 -20
- package/__flow__/Indicator/styles.js +9 -12
- package/__flow__/Input/index.flow.js +60 -0
- package/__flow__/Input/index.js +50 -188
- package/__flow__/Input/styles.js +49 -70
- package/__flow__/KeyboardKey/index.flow.js +7 -0
- package/__flow__/KeyboardKey/index.js +14 -14
- package/__flow__/KeyboardKey/styles.js +10 -13
- package/__flow__/Label/index.flow.js +14 -0
- package/__flow__/Label/index.js +12 -30
- package/__flow__/Link/constants.js +4 -7
- package/__flow__/Link/index.flow.js +18 -0
- package/__flow__/Link/index.js +11 -44
- package/__flow__/Link/styles.js +15 -22
- package/__flow__/Listbox/index.flow.js +20 -0
- package/__flow__/Listbox/index.js +51 -70
- package/__flow__/Loader/index.flow.js +12 -0
- package/__flow__/Loader/index.js +19 -26
- package/__flow__/Loader/styles.js +13 -28
- package/__flow__/LoaderButton/index.flow.js +7 -0
- package/__flow__/LoaderButton/index.js +19 -47
- package/__flow__/LogoViewBoxes.js +90 -1
- package/__flow__/Menu/constants.js +3 -4
- package/__flow__/Menu/descendants.js +140 -240
- package/__flow__/Menu/hooks.js +86 -115
- package/__flow__/Menu/index.flow.js +23 -31
- package/__flow__/Menu/index.js +146 -340
- package/__flow__/Menu/names.js +1 -4947
- package/__flow__/Menu/styles.js +31 -51
- package/__flow__/Message/constants.js +9 -0
- package/__flow__/Message/index.flow.js +17 -0
- package/__flow__/Message/index.js +69 -115
- package/__flow__/Message/styles.js +62 -76
- package/__flow__/Modal/index.flow.js +46 -0
- package/__flow__/Modal/index.js +55 -129
- package/__flow__/Modal/styles.js +39 -62
- package/__flow__/Numeral/constants.js +3 -3
- package/__flow__/Numeral/index.flow.js +19 -0
- package/__flow__/Numeral/index.js +53 -71
- package/__flow__/Numeral/styles.js +4 -7
- package/__flow__/Numeral/tests/testNumeral.js +20 -24
- package/__flow__/OverflowList/index.flow.js +6 -8
- package/__flow__/OverflowList/index.js +52 -89
- package/__flow__/OverflowList/styles.js +8 -18
- package/__flow__/PartnerLogo/TypePartnerNames.js +1 -38
- package/__flow__/PartnerLogo/index.flow.js +19 -0
- package/__flow__/PartnerLogo/index.js +18 -37
- package/__flow__/PartnerLogo/styles.js +8 -12
- package/__flow__/Popout/index.flow.js +89 -0
- package/__flow__/Popout/index.js +114 -274
- package/__flow__/Popout/styles.js +4 -6
- package/__flow__/Portal/index.flow.js +10 -0
- package/__flow__/Portal/index.js +18 -25
- package/__flow__/Radio/index.flow.js +19 -0
- package/__flow__/Radio/index.js +10 -42
- package/__flow__/Radio/styles.js +27 -43
- package/__flow__/SegmentedControl/index.flow.js +20 -0
- package/__flow__/SegmentedControl/index.js +24 -73
- package/__flow__/SegmentedControl/styles.js +26 -36
- package/__flow__/Select/index.flow.js +25 -0
- package/__flow__/Select/index.js +14 -55
- package/__flow__/Select/styles.js +53 -62
- package/__flow__/Skeleton/index.js +6 -10
- package/__flow__/SpotIllustration/illustrationNames.js +1 -121
- package/__flow__/SpotIllustration/index.flow.js +9 -0
- package/__flow__/SpotIllustration/index.js +24 -41
- package/__flow__/Stack/index.flow.js +24 -0
- package/__flow__/Stack/index.js +57 -81
- package/__flow__/Switch/index.flow.js +16 -0
- package/__flow__/Switch/index.js +21 -34
- package/__flow__/Switch/styles.js +28 -34
- package/__flow__/Table/index.flow.js +30 -0
- package/__flow__/Table/index.js +44 -85
- package/__flow__/Table/styles.js +5 -8
- package/__flow__/TableCell/index.flow.js +19 -0
- package/__flow__/TableCell/index.js +18 -31
- package/__flow__/TableCell/styles.js +11 -12
- package/__flow__/TableHeaderCell/constants.js +6 -0
- package/__flow__/TableHeaderCell/index.flow.js +24 -0
- package/__flow__/TableHeaderCell/index.js +31 -59
- package/__flow__/TableHeaderCell/styles.js +10 -16
- package/__flow__/TableRowAccordion/index.flow.js +13 -0
- package/__flow__/TableRowAccordion/index.js +26 -44
- package/__flow__/TableRowAccordion/styles.js +9 -17
- package/__flow__/Tabs/index.flow.js +20 -0
- package/__flow__/Tabs/index.js +48 -78
- package/__flow__/Tabs/styles.js +21 -40
- package/__flow__/Text/index.flow.js +13 -0
- package/__flow__/Text/index.js +38 -65
- package/__flow__/Text/styles.js +8 -15
- package/__flow__/Textarea/index.flow.js +48 -0
- package/__flow__/Textarea/index.js +12 -96
- package/__flow__/Textarea/styles.js +27 -46
- package/__flow__/ThemeProvider/index.js +5 -11
- package/__flow__/Toast/index.flow.js +20 -0
- package/__flow__/Toast/index.js +45 -99
- package/__flow__/Toast/styles.js +14 -20
- package/__flow__/ToggleHint/index.flow.js +13 -0
- package/__flow__/ToggleHint/index.js +17 -31
- package/__flow__/ToggleHint/styles.js +10 -18
- package/__flow__/Token/index.flow.js +15 -0
- package/__flow__/Token/index.js +15 -44
- package/__flow__/Token/styles.js +25 -22
- package/__flow__/TokenInput/index.flow.js +67 -2
- package/__flow__/TokenInput/index.js +108 -221
- package/__flow__/TokenInput/styles.js +36 -54
- package/__flow__/TokenInput/util.js +6 -11
- package/__flow__/Tooltip/index.flow.js +22 -0
- package/__flow__/Tooltip/index.js +38 -126
- package/__flow__/Tooltip/styles.js +6 -8
- package/__flow__/VisuallyHidden/index.js +4 -6
- package/__flow__/dataviz/index.js +6 -9
- package/__flow__/index.js +152 -76
- package/__flow__/systemProps/background.js +4 -15
- package/__flow__/systemProps/border.js +4 -35
- package/__flow__/systemProps/color.js +5 -15
- package/__flow__/systemProps/custom.js +7 -14
- package/__flow__/systemProps/flexbox.js +4 -21
- package/__flow__/systemProps/grid.js +4 -22
- package/__flow__/systemProps/index.js +14 -15
- package/__flow__/systemProps/layout.js +4 -22
- package/__flow__/systemProps/position.js +4 -16
- package/__flow__/systemProps/shadow.js +4 -9
- package/__flow__/systemProps/space.js +4 -25
- package/__flow__/systemProps/systemProps.js +15 -40
- package/__flow__/systemProps/tests/types.flow.js +2 -6
- package/__flow__/systemProps/types.flow.js +6 -14
- package/__flow__/systemProps/typography.js +5 -18
- package/__flow__/systemProps/variant.js +8 -12
- package/__flow__/themes/dark/dataviz-palette.js +4 -26
- package/__flow__/themes/dark/decorative-palettes.js +12 -23
- package/__flow__/themes/dark/theme.js +60 -74
- package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.js +65 -70
- package/__flow__/themes/extendedThemes/sproutTheme/index.js +2 -2
- package/__flow__/themes/extendedThemes/sproutTheme/light/theme.js +65 -70
- package/__flow__/themes/light/dataviz-palette.js +4 -26
- package/__flow__/themes/light/decorative-palettes.js +12 -23
- package/__flow__/themes/light/literal-colors.js +13 -15
- package/__flow__/themes/light/theme.js +71 -107
- package/__flow__/types/styled-components.flow.js +1 -1
- package/__flow__/types/system-props.flow.js +5 -25
- package/__flow__/types/theme.colors.flow.js +32 -46
- package/__flow__/types/theme.flow.js +7 -25
- package/__flow__/utils/a11yTest.js +2 -3
- package/__flow__/utils/chartColors.js +6 -71
- package/__flow__/utils/constants.js +1 -1
- package/__flow__/utils/dataQaLabelQueries.js +14 -37
- package/__flow__/utils/hooks.js +77 -114
- package/__flow__/utils/index.js +6 -12
- package/__flow__/utils/innerText.js +3 -15
- package/__flow__/utils/mixins.js +5 -14
- package/__flow__/utils/react-testing-library.js +8 -40
- package/__flow__/utils/responsiveProps/index.js +6 -19
- package/__flow__/utils/system-props.js +11 -77
- package/__flow__/utils/useInteractiveColor.js +4 -7
- package/commonjs/{Stack/TypeSpaceLiterals.js → Avatar/index.flow.js} +0 -0
- package/commonjs/Avatar/index.js +31 -28
- package/commonjs/Badge/index.flow.js +6 -0
- package/commonjs/Badge/index.js +1 -1
- package/commonjs/Badge/styles.js +1 -1
- package/commonjs/Banner/index.flow.js +6 -0
- package/commonjs/Banner/index.js +15 -17
- package/commonjs/Box/index.flow.js +8 -0
- package/commonjs/Breadcrumb/index.flow.js +8 -0
- package/commonjs/Breadcrumb/index.js +21 -19
- package/commonjs/Button/index.flow.js +6 -0
- package/commonjs/Button/index.js +1 -7
- package/commonjs/Button/styles.js +1 -1
- package/commonjs/Card/index.flow.js +7 -0
- package/commonjs/Card/styles.js +1 -1
- package/commonjs/CharacterCounter/index.flow.js +1 -0
- package/commonjs/ChartLegend/index.flow.js +1 -0
- package/commonjs/ChartLegend/index.js +10 -6
- package/commonjs/Checkbox/index.flow.js +1 -0
- package/commonjs/Checkbox/index.js +27 -24
- package/commonjs/Checkbox/styles.js +1 -1
- package/commonjs/Collapsible/index.flow.js +6 -0
- package/commonjs/Collapsible/index.js +1 -1
- package/commonjs/DatePicker/DateRangePicker.flow.js +1 -0
- package/commonjs/DatePicker/SingleDatePicker.flow.js +1 -0
- package/commonjs/DatePicker/StatefulDateRangePicker.js +10 -7
- package/commonjs/DatePicker/StatefulSingleDatePicker.js +7 -4
- package/commonjs/DatePicker/common.flow.js +1 -0
- package/commonjs/DatePicker/common.js +1 -1
- package/commonjs/DatePicker/styles.js +1 -1
- package/commonjs/Drawer/index.flow.js +6 -0
- package/commonjs/Drawer/index.js +24 -20
- package/commonjs/EmptyState/index.flow.js +6 -0
- package/commonjs/EmptyState/index.js +1 -1
- package/commonjs/Fieldset/index.flow.js +6 -0
- package/commonjs/FormField/index.flow.js +9 -0
- package/commonjs/FormField/index.js +1 -1
- package/commonjs/Icon/deprecatedIcons.js +2 -2
- package/commonjs/Icon/index.flow.js +4 -0
- package/commonjs/Icon/index.js +19 -15
- package/commonjs/Icon/styles.js +1 -1
- package/commonjs/IllustrationViewBoxes.js +2 -2
- package/commonjs/Image/index.flow.js +1 -0
- package/commonjs/Image/index.js +18 -14
- package/commonjs/Indicator/index.flow.js +1 -0
- package/commonjs/Indicator/index.js +12 -9
- package/commonjs/Indicator/styles.js +1 -1
- package/commonjs/Input/index.flow.js +6 -0
- package/commonjs/Input/index.js +52 -49
- package/commonjs/Input/styles.js +1 -1
- package/commonjs/KeyboardKey/index.flow.js +1 -0
- package/commonjs/Label/index.flow.js +8 -0
- package/commonjs/Label/index.js +9 -6
- package/commonjs/Link/index.flow.js +6 -0
- package/commonjs/Link/styles.js +1 -1
- package/commonjs/Listbox/index.flow.js +9 -0
- package/commonjs/Listbox/index.js +2 -2
- package/commonjs/Loader/index.flow.js +1 -0
- package/commonjs/Loader/index.js +13 -9
- package/commonjs/Loader/styles.js +2 -2
- package/commonjs/LoaderButton/index.flow.js +1 -0
- package/commonjs/LoaderButton/index.js +2 -6
- package/commonjs/Menu/index.js +28 -29
- package/commonjs/Menu/styles.js +1 -1
- package/commonjs/Message/constants.js +15 -0
- package/commonjs/Message/index.flow.js +7 -0
- package/commonjs/Message/index.js +12 -17
- package/commonjs/Message/styles.js +14 -14
- package/commonjs/Modal/index.flow.js +8 -0
- package/commonjs/Modal/index.js +31 -29
- package/commonjs/Modal/styles.js +9 -6
- package/commonjs/Numeral/index.flow.js +1 -0
- package/commonjs/Numeral/index.js +9 -10
- package/commonjs/Numeral/tests/testNumeral.js +4 -4
- package/commonjs/OverflowList/index.js +2 -2
- package/commonjs/OverflowList/styles.js +1 -1
- package/commonjs/PartnerLogo/index.flow.js +1 -0
- package/commonjs/PartnerLogo/index.js +18 -15
- package/commonjs/PartnerLogo/styles.js +1 -1
- package/commonjs/Popout/index.flow.js +6 -0
- package/commonjs/Popout/index.js +25 -23
- package/commonjs/Portal/index.flow.js +6 -0
- package/commonjs/Radio/index.flow.js +1 -0
- package/commonjs/Radio/styles.js +2 -2
- package/commonjs/SegmentedControl/index.flow.js +6 -0
- package/commonjs/SegmentedControl/index.js +21 -19
- package/commonjs/SegmentedControl/styles.js +1 -1
- package/commonjs/Select/index.flow.js +6 -0
- package/commonjs/Select/index.js +1 -1
- package/commonjs/Select/styles.js +1 -1
- package/commonjs/Skeleton/index.js +1 -1
- package/commonjs/SpotIllustration/illustrationNames.js +1 -1
- package/commonjs/SpotIllustration/index.flow.js +1 -0
- package/commonjs/SpotIllustration/index.js +1 -1
- package/commonjs/Stack/index.flow.js +6 -0
- package/commonjs/Stack/index.js +1 -1
- package/commonjs/Switch/index.flow.js +1 -0
- package/commonjs/Switch/index.js +19 -15
- package/commonjs/Switch/styles.js +1 -1
- package/commonjs/Table/index.flow.js +6 -0
- package/commonjs/TableCell/index.flow.js +6 -0
- package/commonjs/TableHeaderCell/constants.js +12 -0
- package/commonjs/TableHeaderCell/index.flow.js +3 -0
- package/commonjs/TableHeaderCell/index.js +5 -9
- package/commonjs/TableRowAccordion/index.flow.js +6 -0
- package/commonjs/TableRowAccordion/index.js +1 -1
- package/commonjs/Tabs/index.flow.js +6 -0
- package/commonjs/Tabs/index.js +1 -2
- package/commonjs/Text/index.flow.js +6 -0
- package/commonjs/Text/index.js +1 -1
- package/commonjs/Textarea/index.flow.js +6 -0
- package/commonjs/Textarea/index.js +42 -38
- package/commonjs/Textarea/styles.js +1 -1
- package/commonjs/Toast/index.flow.js +6 -0
- package/commonjs/Toast/index.js +2 -2
- package/commonjs/Toast/styles.js +2 -1
- package/commonjs/ToggleHint/index.flow.js +1 -0
- package/commonjs/ToggleHint/index.js +8 -5
- package/commonjs/ToggleHint/styles.js +1 -1
- package/commonjs/Token/index.flow.js +6 -0
- package/commonjs/Token/index.js +28 -24
- package/commonjs/Token/styles.js +1 -1
- package/commonjs/TokenInput/index.flow.js +6 -1
- package/commonjs/TokenInput/index.js +42 -39
- package/commonjs/TokenInput/styles.js +1 -1
- package/commonjs/Tooltip/index.flow.js +6 -0
- package/commonjs/Tooltip/index.js +19 -15
- package/commonjs/VisuallyHidden/index.js +1 -1
- package/commonjs/dataviz/index.js +1 -1
- package/commonjs/index.js +113 -97
- package/commonjs/themes/dark/theme.js +1 -1
- package/commonjs/themes/light/theme.js +4 -9
- package/commonjs/utils/hooks.js +2 -2
- package/commonjs/utils/mixins.js +1 -1
- package/commonjs/utils/react-testing-library.js +1 -1
- package/dist/illustration.svg +1 -1
- package/dist/illustrationList.js +1 -1
- package/lib/{Stack/TypeSpaceLiterals.js → Avatar/index.flow.js} +0 -0
- package/lib/Avatar/index.js +31 -28
- package/lib/Badge/index.flow.js +2 -0
- package/lib/Badge/index.js +1 -1
- package/lib/Badge/styles.js +1 -1
- package/lib/Banner/index.flow.js +2 -0
- package/lib/Banner/index.js +15 -23
- package/lib/Box/index.flow.js +3 -0
- package/lib/Breadcrumb/index.flow.js +3 -0
- package/lib/Breadcrumb/index.js +22 -21
- package/lib/Button/index.flow.js +2 -0
- package/lib/Button/index.js +1 -13
- package/lib/Button/styles.js +1 -1
- package/lib/Card/index.flow.js +3 -0
- package/lib/Card/styles.js +1 -1
- package/lib/CharacterCounter/index.flow.js +0 -0
- package/lib/ChartLegend/index.flow.js +0 -0
- package/lib/ChartLegend/index.js +10 -6
- package/lib/Checkbox/index.flow.js +0 -0
- package/lib/Checkbox/index.js +27 -24
- package/lib/Checkbox/styles.js +1 -1
- package/lib/Collapsible/index.flow.js +2 -0
- package/lib/Collapsible/index.js +1 -1
- package/lib/DatePicker/DateRangePicker.flow.js +0 -0
- package/lib/DatePicker/SingleDatePicker.flow.js +0 -0
- package/lib/DatePicker/StatefulDateRangePicker.js +10 -7
- package/lib/DatePicker/StatefulSingleDatePicker.js +7 -4
- package/lib/DatePicker/common.flow.js +0 -0
- package/lib/DatePicker/common.js +1 -1
- package/lib/DatePicker/styles.js +2 -1
- package/lib/Drawer/index.flow.js +2 -0
- package/lib/Drawer/index.js +24 -21
- package/lib/EmptyState/index.flow.js +2 -0
- package/lib/EmptyState/index.js +1 -1
- package/lib/Fieldset/index.flow.js +2 -0
- package/lib/FormField/index.flow.js +4 -0
- package/lib/FormField/index.js +1 -3
- package/lib/Icon/deprecatedIcons.js +3 -2
- package/lib/Icon/index.flow.js +3 -0
- package/lib/Icon/index.js +19 -15
- package/lib/Icon/styles.js +1 -1
- package/lib/IllustrationViewBoxes.js +2 -2
- package/lib/Image/index.flow.js +0 -0
- package/lib/Image/index.js +18 -14
- package/lib/Indicator/index.flow.js +0 -0
- package/lib/Indicator/index.js +12 -9
- package/lib/Indicator/styles.js +1 -1
- package/lib/Input/index.flow.js +2 -0
- package/lib/Input/index.js +52 -49
- package/lib/Input/styles.js +1 -1
- package/lib/KeyboardKey/index.flow.js +0 -0
- package/lib/Label/index.flow.js +3 -0
- package/lib/Label/index.js +9 -6
- package/lib/Link/index.flow.js +2 -0
- package/lib/Link/styles.js +1 -1
- package/lib/Listbox/index.flow.js +4 -0
- package/lib/Listbox/index.js +2 -2
- package/lib/Loader/index.flow.js +0 -0
- package/lib/Loader/index.js +13 -9
- package/lib/Loader/styles.js +2 -2
- package/lib/LoaderButton/index.flow.js +0 -0
- package/lib/LoaderButton/index.js +3 -8
- package/lib/Menu/index.js +29 -30
- package/lib/Menu/styles.js +1 -1
- package/lib/Message/constants.js +9 -0
- package/lib/Message/index.flow.js +3 -0
- package/lib/Message/index.js +5 -10
- package/lib/Message/styles.js +2 -2
- package/lib/Modal/index.flow.js +3 -0
- package/lib/Modal/index.js +31 -29
- package/lib/Modal/styles.js +9 -6
- package/lib/Numeral/constants.js +1 -0
- package/lib/Numeral/index.flow.js +0 -0
- package/lib/Numeral/index.js +2 -3
- package/lib/Numeral/tests/testNumeral.js +2 -2
- package/lib/OverflowList/index.js +1 -1
- package/lib/OverflowList/styles.js +1 -1
- package/lib/PartnerLogo/index.flow.js +0 -0
- package/lib/PartnerLogo/index.js +18 -15
- package/lib/PartnerLogo/styles.js +1 -1
- package/lib/Popout/index.flow.js +2 -0
- package/lib/Popout/index.js +25 -24
- package/lib/Portal/index.flow.js +2 -0
- package/lib/Radio/index.flow.js +0 -0
- package/lib/Radio/styles.js +2 -2
- package/lib/SegmentedControl/index.flow.js +2 -0
- package/lib/SegmentedControl/index.js +21 -19
- package/lib/SegmentedControl/styles.js +1 -1
- package/lib/Select/index.flow.js +2 -0
- package/lib/Select/index.js +1 -1
- package/lib/Select/styles.js +1 -1
- package/lib/Skeleton/index.js +1 -1
- package/lib/SpotIllustration/illustrationNames.js +1 -1
- package/lib/SpotIllustration/index.flow.js +0 -0
- package/lib/SpotIllustration/index.js +1 -1
- package/lib/Stack/index.flow.js +2 -0
- package/lib/Stack/index.js +1 -1
- package/lib/Switch/index.flow.js +0 -0
- package/lib/Switch/index.js +19 -15
- package/lib/Switch/styles.js +1 -1
- package/lib/Table/index.flow.js +2 -0
- package/lib/TableCell/index.flow.js +2 -0
- package/lib/TableHeaderCell/constants.js +6 -0
- package/lib/TableHeaderCell/index.flow.js +3 -0
- package/lib/TableHeaderCell/index.js +2 -5
- package/lib/TableRowAccordion/index.flow.js +2 -0
- package/lib/TableRowAccordion/index.js +1 -1
- package/lib/Tabs/index.flow.js +2 -0
- package/lib/Tabs/index.js +1 -2
- package/lib/Text/index.flow.js +2 -0
- package/lib/Text/index.js +1 -1
- package/lib/Textarea/index.flow.js +2 -0
- package/lib/Textarea/index.js +42 -38
- package/lib/Textarea/styles.js +1 -1
- package/lib/Toast/index.flow.js +2 -0
- package/lib/Toast/index.js +2 -2
- package/lib/Toast/styles.js +2 -3
- package/lib/ToggleHint/index.flow.js +0 -0
- package/lib/ToggleHint/index.js +8 -5
- package/lib/ToggleHint/styles.js +1 -1
- package/lib/Token/index.flow.js +2 -0
- package/lib/Token/index.js +28 -24
- package/lib/Token/styles.js +1 -1
- package/lib/TokenInput/index.flow.js +2 -0
- package/lib/TokenInput/index.js +41 -39
- package/lib/TokenInput/styles.js +1 -1
- package/lib/Tooltip/index.flow.js +2 -0
- package/lib/Tooltip/index.js +19 -15
- package/lib/VisuallyHidden/index.js +1 -1
- package/lib/dataviz/index.js +1 -1
- package/lib/index.js +74 -47
- package/lib/themes/dark/theme.js +4 -2
- package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +3 -0
- package/lib/themes/extendedThemes/sproutTheme/light/theme.js +3 -0
- package/lib/themes/light/theme.js +4 -10
- package/lib/utils/hooks.js +1 -1
- package/lib/utils/mixins.js +1 -1
- package/lib/utils/react-testing-library.js +1 -1
- package/package.json +11 -5
- package/__flow__/Avatar/__tests__/features.test.js +0 -98
- package/__flow__/Avatar/index.stories.js +0 -62
- package/__flow__/Badge/index.stories.js +0 -49
- package/__flow__/Badge/index.test.js +0 -67
- package/__flow__/Banner/index.stories.js +0 -108
- package/__flow__/Banner/index.test.js +0 -68
- package/__flow__/Box/index.stories.js +0 -135
- package/__flow__/Box/index.test.js +0 -12
- package/__flow__/Breadcrumb/index.stories.js +0 -76
- package/__flow__/Breadcrumb/index.test.js +0 -62
- package/__flow__/Button/index.stories.js +0 -153
- package/__flow__/Card/index.stories.js +0 -67
- package/__flow__/CharacterCounter/index.stories.js +0 -42
- package/__flow__/CharacterCounter/index.test.js +0 -24
- package/__flow__/ChartLegend/index.stories.js +0 -66
- package/__flow__/ChartLegend/index.test.js +0 -55
- package/__flow__/Checkbox/index.stories.js +0 -137
- package/__flow__/Checkbox/index.test.js +0 -91
- package/__flow__/Collapsible/index.stories.js +0 -182
- package/__flow__/Collapsible/index.test.js +0 -68
- package/__flow__/DatePicker/DateRangePicker.stories.js +0 -101
- package/__flow__/DatePicker/DateRangePicker.test.js +0 -123
- package/__flow__/DatePicker/SingleDatePicker.stories.js +0 -64
- package/__flow__/DatePicker/SingleDatePicker.test.js +0 -89
- package/__flow__/Drawer/index.stories.js +0 -336
- package/__flow__/Drawer/index.test.js +0 -158
- package/__flow__/EmptyState/index.stories.js +0 -108
- package/__flow__/EmptyState/index.test.js +0 -124
- package/__flow__/Fieldset/index.stories.js +0 -135
- package/__flow__/Fieldset/index.test.js +0 -34
- package/__flow__/FormField/index.stories.js +0 -116
- package/__flow__/FormField/index.test.js +0 -71
- package/__flow__/Icon/index.stories.js +0 -175
- package/__flow__/Icon/index.test.js +0 -25
- package/__flow__/Image/index.stories.js +0 -30
- package/__flow__/Image/index.test.js +0 -86
- package/__flow__/Indicator/index.stories.js +0 -16
- package/__flow__/Indicator/index.test.js +0 -11
- package/__flow__/Input/index.stories.js +0 -216
- package/__flow__/Input/index.test.js +0 -405
- package/__flow__/KeyboardKey/index.stories.js +0 -25
- package/__flow__/KeyboardKey/index.test.js +0 -12
- package/__flow__/Label/index.stories.js +0 -15
- package/__flow__/Label/index.test.js +0 -16
- package/__flow__/Link/index.stories.js +0 -115
- package/__flow__/Link/index.test.js +0 -110
- package/__flow__/Listbox/index.stories.js +0 -238
- package/__flow__/Listbox/index.test.js +0 -291
- package/__flow__/Loader/index.stories.js +0 -40
- package/__flow__/Loader/index.test.js +0 -26
- package/__flow__/LoaderButton/index.stories.js +0 -84
- package/__flow__/LoaderButton/index.test.js +0 -35
- package/__flow__/Menu/__snapshots__/index.test.js.snap +0 -115
- package/__flow__/Menu/index.stories.js +0 -261
- package/__flow__/Menu/index.test.js +0 -103
- package/__flow__/Message/index.stories.js +0 -73
- package/__flow__/Message/index.test.js +0 -12
- package/__flow__/Modal/index.stories.js +0 -409
- package/__flow__/Modal/index.test.js +0 -129
- package/__flow__/Numeral/index.stories.js +0 -183
- package/__flow__/Numeral/tests/A11y.test.js +0 -12
- package/__flow__/Numeral/tests/abbreviate.test.js +0 -72
- package/__flow__/Numeral/tests/currency.test.js +0 -40
- package/__flow__/Numeral/tests/defaults.test.js +0 -33
- package/__flow__/Numeral/tests/invalid.test.js +0 -12
- package/__flow__/Numeral/tests/locale.test.js +0 -83
- package/__flow__/Numeral/tests/precision.test.js +0 -126
- package/__flow__/Numeral/tests/zero.test.js +0 -11
- package/__flow__/OverflowList/index.stories.js +0 -69
- package/__flow__/OverflowList/index.test.js +0 -79
- package/__flow__/PartnerLogo/index.stories.js +0 -124
- package/__flow__/PartnerLogo/partnerLogos/bigcommerce-dark.svg +0 -5
- package/__flow__/PartnerLogo/partnerLogos/bigcommerce-lockup-dark.svg +0 -14
- package/__flow__/PartnerLogo/partnerLogos/bigcommerce-lockup.svg +0 -14
- package/__flow__/PartnerLogo/partnerLogos/bigcommerce.svg +0 -5
- package/__flow__/PartnerLogo/partnerLogos/bitly-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/bitly.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/canva-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/canva.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/dropbox-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/dropbox-lockup-dark.svg +0 -7
- package/__flow__/PartnerLogo/partnerLogos/dropbox-lockup.svg +0 -7
- package/__flow__/PartnerLogo/partnerLogos/dropbox-wordmark-dark.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/dropbox-wordmark.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/dropbox.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/facebook-audience-network-dark.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/facebook-audience-network.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/facebook-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/facebook-groups-dark.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/facebook-groups.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/facebook-shops-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/facebook-shops.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/facebook.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/feedly-dark.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/feedly.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/glassdoor-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/glassdoor.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/google-analytics-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/google-analytics.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/google-business-messages-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/google-business-messages.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/google-drive-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/google-drive.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/google-my-business-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/google-my-business.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/hubspot-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/hubspot.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/instagram-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/instagram.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/linkedin-audience-network-dark.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/linkedin-audience-network.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/linkedin-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/linkedin.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/marketo-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/marketo.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/messenger-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/messenger.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/microsoft-dynamics-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/microsoft-dynamics.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/pinterest-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/pinterest.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/reddit-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/reddit.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/salesforce-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/salesforce.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/shopify-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/shopify.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/slack-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/slack.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial-dark.svg +0 -7
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial-lockup-dark.svg +0 -19
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial-lockup.svg +0 -19
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial-wordmark-dark.svg +0 -14
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial-wordmark.svg +0 -14
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial.svg +0 -7
- package/__flow__/PartnerLogo/partnerLogos/tiktok-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/tiktok.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/tripadvisor-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/tripadvisor.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/tumblr-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/tumblr.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/twitter-audience-network-dark.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/twitter-audience-network.svg +0 -3
- package/__flow__/PartnerLogo/partnerLogos/twitter-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/twitter.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/whatsapp-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/whatsapp.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/woocommerce-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/woocommerce.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/yelp-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/yelp.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/youtube-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/youtube.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/zendesk-dark.svg +0 -1
- package/__flow__/PartnerLogo/partnerLogos/zendesk-lockup-dark.svg +0 -28
- package/__flow__/PartnerLogo/partnerLogos/zendesk-lockup.svg +0 -28
- package/__flow__/PartnerLogo/partnerLogos/zendesk-wordmark-dark.svg +0 -9
- package/__flow__/PartnerLogo/partnerLogos/zendesk-wordmark.svg +0 -9
- package/__flow__/PartnerLogo/partnerLogos/zendesk.svg +0 -1
- package/__flow__/Popout/__snapshots__/index.test.js.snap +0 -121
- package/__flow__/Popout/index.stories.js +0 -471
- package/__flow__/Popout/index.test.js +0 -179
- package/__flow__/Portal/index.stories.js +0 -42
- package/__flow__/Radio/index.stories.js +0 -75
- package/__flow__/Radio/index.test.js +0 -47
- package/__flow__/SegmentedControl/index.stories.js +0 -44
- package/__flow__/SegmentedControl/index.test.js +0 -74
- package/__flow__/Select/index.stories.js +0 -42
- package/__flow__/Select/index.test.js +0 -44
- package/__flow__/Skeleton/index.stories.js +0 -31
- package/__flow__/SpotIllustration/index.stories.js +0 -134
- package/__flow__/SpotIllustration/spotIllustrations/abacus.svg +0 -21
- package/__flow__/SpotIllustration/spotIllustrations/analytics-offering.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/asset-cards.svg +0 -16
- package/__flow__/SpotIllustration/spotIllustrations/astronaut.svg +0 -15
- package/__flow__/SpotIllustration/spotIllustrations/binoculars.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/brand-keyword.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/browser-doc.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/business.svg +0 -23
- package/__flow__/SpotIllustration/spotIllustrations/calendar-event.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/calendar-reporting.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/campaign-tag.svg +0 -6
- package/__flow__/SpotIllustration/spotIllustrations/cat-error.svg +0 -4
- package/__flow__/SpotIllustration/spotIllustrations/cat-no-access.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/cat.svg +0 -4
- package/__flow__/SpotIllustration/spotIllustrations/checkbox-alert.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/coffee-cup.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/competitors.svg +0 -29
- package/__flow__/SpotIllustration/spotIllustrations/compose-window.svg +0 -21
- package/__flow__/SpotIllustration/spotIllustrations/compose.svg +0 -5
- package/__flow__/SpotIllustration/spotIllustrations/computer-error.svg +0 -15
- package/__flow__/SpotIllustration/spotIllustrations/connect.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/contact.svg +0 -87
- package/__flow__/SpotIllustration/spotIllustrations/conversation.svg +0 -15
- package/__flow__/SpotIllustration/spotIllustrations/custom-branding.svg +0 -7
- package/__flow__/SpotIllustration/spotIllustrations/customer-service.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/dashboard.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/exclamation-mark.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/face-happy.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/find-bookmark.svg +0 -12
- package/__flow__/SpotIllustration/spotIllustrations/flask.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/general-topic.svg +0 -9
- package/__flow__/SpotIllustration/spotIllustrations/global-features.svg +0 -17
- package/__flow__/SpotIllustration/spotIllustrations/global-trend.svg +0 -5
- package/__flow__/SpotIllustration/spotIllustrations/grow-large.svg +0 -12
- package/__flow__/SpotIllustration/spotIllustrations/grow.svg +0 -5
- package/__flow__/SpotIllustration/spotIllustrations/hands-raised.svg +0 -8
- package/__flow__/SpotIllustration/spotIllustrations/headset.svg +0 -8
- package/__flow__/SpotIllustration/spotIllustrations/heartbeat-connection.svg +0 -14
- package/__flow__/SpotIllustration/spotIllustrations/instagram-links.svg +0 -28
- package/__flow__/SpotIllustration/spotIllustrations/invoice.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/jewel.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/keyword-tracking.svg +0 -26
- package/__flow__/SpotIllustration/spotIllustrations/lightbulb-alt.svg +0 -5
- package/__flow__/SpotIllustration/spotIllustrations/lightbulb.svg +0 -4
- package/__flow__/SpotIllustration/spotIllustrations/like-conversation.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/link-broken.svg +0 -18
- package/__flow__/SpotIllustration/spotIllustrations/link-messages.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/link-sections.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/link-upload.svg +0 -12
- package/__flow__/SpotIllustration/spotIllustrations/listening-pendo.svg +0 -14
- package/__flow__/SpotIllustration/spotIllustrations/listening-sentiment.svg +0 -27
- package/__flow__/SpotIllustration/spotIllustrations/listening-topic-templates.svg +0 -26
- package/__flow__/SpotIllustration/spotIllustrations/listening-tour.svg +0 -18
- package/__flow__/SpotIllustration/spotIllustrations/listening.svg +0 -9
- package/__flow__/SpotIllustration/spotIllustrations/loading.svg +0 -4
- package/__flow__/SpotIllustration/spotIllustrations/mailbox-empty.svg +0 -18
- package/__flow__/SpotIllustration/spotIllustrations/mailbox-full.svg +0 -8
- package/__flow__/SpotIllustration/spotIllustrations/message.svg +0 -6
- package/__flow__/SpotIllustration/spotIllustrations/molecule.svg +0 -14
- package/__flow__/SpotIllustration/spotIllustrations/network-data.svg +0 -25
- package/__flow__/SpotIllustration/spotIllustrations/no-messages-found.svg +0 -20
- package/__flow__/SpotIllustration/spotIllustrations/no-notifications.svg +0 -4
- package/__flow__/SpotIllustration/spotIllustrations/note.svg +0 -6
- package/__flow__/SpotIllustration/spotIllustrations/notification.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/notifications-onboarding.svg +0 -23
- package/__flow__/SpotIllustration/spotIllustrations/organize-message.svg +0 -64
- package/__flow__/SpotIllustration/spotIllustrations/outbox-queue.svg +0 -12
- package/__flow__/SpotIllustration/spotIllustrations/outbox-reviews.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/pdf.svg +0 -5
- package/__flow__/SpotIllustration/spotIllustrations/planning.svg +0 -28
- package/__flow__/SpotIllustration/spotIllustrations/podium.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/pointer.svg +0 -4
- package/__flow__/SpotIllustration/spotIllustrations/publish-assets.svg +0 -15
- package/__flow__/SpotIllustration/spotIllustrations/publish-links.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/publishing.svg +0 -29
- package/__flow__/SpotIllustration/spotIllustrations/puzzle-piece.svg +0 -4
- package/__flow__/SpotIllustration/spotIllustrations/question-mark.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/reporting-folder.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/reporting.svg +0 -12
- package/__flow__/SpotIllustration/spotIllustrations/review-location.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/review.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/robot-assembly.svg +0 -12
- package/__flow__/SpotIllustration/spotIllustrations/robot-error.svg +0 -19
- package/__flow__/SpotIllustration/spotIllustrations/robot-happy.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/rocket.svg +0 -9
- package/__flow__/SpotIllustration/spotIllustrations/schedule-date.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/schedule-messages.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/search-keywords.svg +0 -9
- package/__flow__/SpotIllustration/spotIllustrations/search-success.svg +0 -8
- package/__flow__/SpotIllustration/spotIllustrations/search-trends.svg +0 -23
- package/__flow__/SpotIllustration/spotIllustrations/search.svg +0 -86
- package/__flow__/SpotIllustration/spotIllustrations/security.svg +0 -12
- package/__flow__/SpotIllustration/spotIllustrations/sentiment.svg +0 -12
- package/__flow__/SpotIllustration/spotIllustrations/shopping-bag.svg +0 -4
- package/__flow__/SpotIllustration/spotIllustrations/spark-line.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/stamp.svg +0 -9
- package/__flow__/SpotIllustration/spotIllustrations/storefront.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/success.svg +0 -9
- package/__flow__/SpotIllustration/spotIllustrations/tag-message.svg +0 -15
- package/__flow__/SpotIllustration/spotIllustrations/tag.svg +0 -5
- package/__flow__/SpotIllustration/spotIllustrations/team-roles.svg +0 -17
- package/__flow__/SpotIllustration/spotIllustrations/team.svg +0 -16
- package/__flow__/SpotIllustration/spotIllustrations/telescope.svg +0 -15
- package/__flow__/SpotIllustration/spotIllustrations/tha-mel.svg +0 -15
- package/__flow__/SpotIllustration/spotIllustrations/thumbs-up.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/toggle-switch.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/toolset-strength.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/tracking-time.svg +0 -6
- package/__flow__/SpotIllustration/spotIllustrations/twitter-messages.svg +0 -11
- package/__flow__/SpotIllustration/spotIllustrations/twitter-profiles.svg +0 -12
- package/__flow__/SpotIllustration/spotIllustrations/under-construction.svg +0 -12
- package/__flow__/SpotIllustration/spotIllustrations/unsubscribe.svg +0 -10
- package/__flow__/SpotIllustration/spotIllustrations/upward-trend.svg +0 -4
- package/__flow__/SpotIllustration/spotIllustrations/user-task.svg +0 -58
- package/__flow__/SpotIllustration/spotIllustrations/view-connections.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/vip-list.svg +0 -13
- package/__flow__/SpotIllustration/spotIllustrations/warning.svg +0 -4
- package/__flow__/SpotIllustration/spotIllustrations/wifi.svg +0 -6
- package/__flow__/SpotIllustration/spotIllustrations/workflow-steps.svg +0 -28
- package/__flow__/Stack/TypeSpaceLiterals.js +0 -13
- package/__flow__/Stack/index.stories.js +0 -91
- package/__flow__/Stack/index.test.js +0 -22
- package/__flow__/Switch/index.stories.js +0 -42
- package/__flow__/Switch/index.test.js +0 -44
- package/__flow__/Table/index.stories.js +0 -293
- package/__flow__/Table/index.test.js +0 -91
- package/__flow__/TableCell/index.stories.js +0 -33
- package/__flow__/TableCell/index.test.js +0 -20
- package/__flow__/TableHeaderCell/index.stories.js +0 -54
- package/__flow__/TableHeaderCell/index.test.js +0 -28
- package/__flow__/TableRowAccordion/index.stories.js +0 -129
- package/__flow__/TableRowAccordion/index.test.js +0 -82
- package/__flow__/Tabs/index.stories.js +0 -84
- package/__flow__/Tabs/index.test.js +0 -242
- package/__flow__/Text/index.stories.js +0 -132
- package/__flow__/Text/index.test.js +0 -49
- package/__flow__/Textarea/index.stories.js +0 -90
- package/__flow__/Textarea/index.test.js +0 -86
- package/__flow__/Toast/index.stories.js +0 -118
- package/__flow__/ToggleHint/index.test.js +0 -16
- package/__flow__/Token/index.stories.js +0 -89
- package/__flow__/Token/index.test.js +0 -75
- package/__flow__/TokenInput/index.stories.js +0 -242
- package/__flow__/TokenInput/tests/default/clicking.test.js +0 -38
- package/__flow__/TokenInput/tests/default/deleting.test.js +0 -101
- package/__flow__/TokenInput/tests/default/focusing.test.js +0 -39
- package/__flow__/TokenInput/tests/default/inputting.test.js +0 -57
- package/__flow__/TokenInput/tests/default/pasting.test.js +0 -216
- package/__flow__/TokenInput/tests/default/rendering.test.js +0 -140
- package/__flow__/Tooltip/index.stories.js +0 -175
- package/__flow__/Tooltip/index.test.js +0 -182
- package/__flow__/building-stories.stories.mdx +0 -121
- package/__flow__/code-guidelines.mdx +0 -244
- package/__flow__/dataviz/dataviz.stories.js +0 -13
- package/__flow__/overview.stories.js +0 -60
- package/__flow__/setupTests.js +0 -22
- package/__flow__/systemProps/tests/__snapshots__/background.test.js.snap +0 -96
- package/__flow__/systemProps/tests/__snapshots__/border.test.js.snap +0 -469
- package/__flow__/systemProps/tests/__snapshots__/color.test.js.snap +0 -55
- package/__flow__/systemProps/tests/__snapshots__/custom.test.js.snap +0 -36
- package/__flow__/systemProps/tests/__snapshots__/flexbox.test.js.snap +0 -239
- package/__flow__/systemProps/tests/__snapshots__/grid.test.js.snap +0 -166
- package/__flow__/systemProps/tests/__snapshots__/layout.test.js.snap +0 -204
- package/__flow__/systemProps/tests/__snapshots__/position.test.js.snap +0 -115
- package/__flow__/systemProps/tests/__snapshots__/shadow.test.js.snap +0 -25
- package/__flow__/systemProps/tests/__snapshots__/space.test.js.snap +0 -39
- package/__flow__/systemProps/tests/__snapshots__/typography.test.js.snap +0 -166
- package/__flow__/systemProps/tests/__snapshots__/variant.test.js.snap +0 -17
- package/__flow__/systemProps/tests/background.test.js +0 -90
- package/__flow__/systemProps/tests/border.test.js +0 -299
- package/__flow__/systemProps/tests/color.test.js +0 -49
- package/__flow__/systemProps/tests/custom.test.js +0 -38
- package/__flow__/systemProps/tests/flexbox.test.js +0 -150
- package/__flow__/systemProps/tests/grid.test.js +0 -123
- package/__flow__/systemProps/tests/layout.test.js +0 -126
- package/__flow__/systemProps/tests/position.test.js +0 -78
- package/__flow__/systemProps/tests/shadow.test.js +0 -30
- package/__flow__/systemProps/tests/space.test.js +0 -32
- package/__flow__/systemProps/tests/typography.test.js +0 -93
- package/__flow__/systemProps/tests/variant.test.js +0 -25
- package/__flow__/themes/extendedThemes/README.md +0 -6
- package/__flow__/themes/utils/_themed.scss +0 -119
- package/__flow__/utils/responsiveProps/index.test.js +0 -31
- package/__flow__/writing-good-stories.stories.mdx +0 -3
|
@@ -1,50 +1,35 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
4
|
-
import Text from
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
type TypeProps = {
|
|
8
|
-
/** Inline or stacked y plots */
|
|
9
|
-
stacked?: boolean,
|
|
10
|
-
theme?: 'compare' | 'contrast' | 'extended',
|
|
11
|
-
/** 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. */
|
|
12
|
-
legendLabels: {name: string, color?: string}[],
|
|
13
|
-
qa?: Object,
|
|
14
|
-
};
|
|
15
|
-
|
|
3
|
+
import { THEME_MAP } from "../utils/chartColors";
|
|
4
|
+
import Text from "../Text";
|
|
5
|
+
import Container, { Label, Swatch } from "./styles";
|
|
6
|
+
import type { TypeChartLegendProps } from "./index.flow";
|
|
16
7
|
function getSwatchColor(theme, index) {
|
|
17
8
|
return THEME_MAP[theme.toUpperCase()][index];
|
|
18
9
|
}
|
|
19
|
-
|
|
20
10
|
function getLabels(legendLabels, theme) {
|
|
21
11
|
return legendLabels.map((label, i) => {
|
|
22
12
|
const labelColor = label.color ? label.color : getSwatchColor(theme, i);
|
|
23
|
-
return
|
|
24
|
-
<Label key={label.name}>
|
|
13
|
+
return <Label key={label.name}>
|
|
25
14
|
<Swatch bg={labelColor} data-qa-swatch="" />
|
|
26
15
|
<Text as="div" fontSize={200} breakWord>
|
|
27
16
|
{label.name}
|
|
28
17
|
</Text>
|
|
29
|
-
</Label
|
|
30
|
-
);
|
|
18
|
+
</Label>;
|
|
31
19
|
});
|
|
32
20
|
}
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
const ChartLegend = (props: TypeChartLegendProps) => {
|
|
22
|
+
const {
|
|
23
|
+
legendLabels,
|
|
24
|
+
stacked,
|
|
25
|
+
theme = 'compare',
|
|
26
|
+
...rest
|
|
27
|
+
} = props;
|
|
37
28
|
return (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
data-qa-chartlegend=""
|
|
41
|
-
{...props.qa}
|
|
42
|
-
// $FlowIssue - upgrade v0.112.0
|
|
43
|
-
{...rest}
|
|
44
|
-
>
|
|
29
|
+
// $FlowIssue - upgrade v0.112.0
|
|
30
|
+
<Container inline={!stacked} data-qa-chartlegend="" {...props.qa} {...rest}>
|
|
45
31
|
{getLabels(legendLabels, theme)}
|
|
46
32
|
</Container>
|
|
47
33
|
);
|
|
48
34
|
};
|
|
49
|
-
|
|
50
|
-
export default ChartLegend;
|
|
35
|
+
export default ChartLegend;
|
|
@@ -1,43 +1,35 @@
|
|
|
1
1
|
//@flow
|
|
2
|
-
import styled, {css, type StyledComponent} from 'styled-components';
|
|
3
|
-
import {COMMON, LAYOUT} from
|
|
4
|
-
|
|
5
|
-
import type {TypeTheme} from '../types/theme.flow';
|
|
6
|
-
|
|
2
|
+
import styled, { css, type StyledComponent } from 'styled-components';
|
|
3
|
+
import { COMMON, LAYOUT } from "../utils/system-props";
|
|
4
|
+
import type { TypeTheme } from "../types/theme.flow";
|
|
7
5
|
export const Label: StyledComponent<{...}, TypeTheme, *> = styled.span`
|
|
8
6
|
display: flex;
|
|
9
7
|
align-items: center;
|
|
10
|
-
color: ${
|
|
8
|
+
color: ${props => props.theme.colors.text.subtext};
|
|
11
9
|
white-space: nowrap;
|
|
12
10
|
text-transform: capitalize;
|
|
13
11
|
`;
|
|
14
|
-
|
|
15
12
|
export const Swatch: StyledComponent<{...}, TypeTheme, *> = styled.span`
|
|
16
|
-
margin-right: ${
|
|
17
|
-
width: ${
|
|
18
|
-
height: ${
|
|
13
|
+
margin-right: ${props => props.theme.space[300]};
|
|
14
|
+
width: ${props => props.theme.space[350]};
|
|
15
|
+
height: ${props => props.theme.space[350]};
|
|
19
16
|
border-radius: 4px;
|
|
20
17
|
|
|
21
18
|
${COMMON}
|
|
22
19
|
`;
|
|
23
|
-
|
|
24
20
|
const Container: StyledComponent<any, TypeTheme, *> = styled.div`
|
|
25
|
-
${
|
|
26
|
-
props.inline &&
|
|
27
|
-
css`
|
|
21
|
+
${props => props.inline && css`
|
|
28
22
|
display: flex;
|
|
29
23
|
justify-content: center;
|
|
30
24
|
|
|
31
25
|
${Label} + ${Label} {
|
|
32
|
-
margin-left: ${
|
|
26
|
+
margin-left: ${props => props.theme.space[450]};
|
|
33
27
|
}
|
|
34
28
|
`}
|
|
35
29
|
|
|
36
30
|
${COMMON}
|
|
37
31
|
${LAYOUT}
|
|
38
32
|
`;
|
|
39
|
-
|
|
40
33
|
Label.displayName = 'ChartLegendLabel';
|
|
41
34
|
Swatch.displayName = 'ChartLegendSwatch';
|
|
42
|
-
|
|
43
|
-
export default Container;
|
|
35
|
+
export default Container;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
|
|
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
|
+
};
|
|
@@ -1,59 +1,31 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import Container, {
|
|
4
|
-
|
|
5
|
-
CheckIcon,
|
|
6
|
-
PillInput,
|
|
7
|
-
InputWrapper,
|
|
8
|
-
LabelText,
|
|
9
|
-
CheckboxContainer,
|
|
10
|
-
} from './styles';
|
|
3
|
+
import Container, { CheckboxBox, CheckIcon, PillInput, InputWrapper, LabelText, CheckboxContainer } from "./styles";
|
|
4
|
+
import type { TypeCheckboxProps } from "./index.flow";
|
|
11
5
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/** Label text to display next to the checkbox */
|
|
18
|
-
label?: string,
|
|
19
|
-
/** Label used to describe the input (if not used with an accompanying visual label) */
|
|
20
|
-
ariaLabel?: string,
|
|
21
|
-
labelProps?: Object,
|
|
22
|
-
checked?: boolean,
|
|
23
|
-
indeterminate?: boolean,
|
|
24
|
-
disabled?: boolean,
|
|
25
|
-
onChange: (event: SyntheticEvent<HTMLInputElement>) => void,
|
|
26
|
-
appearance?: 'pill' | 'default',
|
|
27
|
-
qa?: Object,
|
|
28
|
-
tabIndex?: string | number,
|
|
29
|
-
inputProps?: Object,
|
|
30
|
-
...
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default class Checkbox extends React.Component<TypeProps> {
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use TypeCheckboxProps from root instead
|
|
8
|
+
*/
|
|
9
|
+
export type TypeProps = TypeCheckboxProps;
|
|
10
|
+
export default class Checkbox extends React.Component<TypeCheckboxProps> {
|
|
34
11
|
el: ?HTMLInputElement;
|
|
35
|
-
|
|
36
12
|
static defaultProps = {
|
|
37
13
|
indeterminate: false,
|
|
38
|
-
disabled: false
|
|
14
|
+
disabled: false
|
|
39
15
|
};
|
|
40
|
-
|
|
41
16
|
componentDidUpdate(prevProps: TypeProps) {
|
|
42
17
|
if (prevProps.indeterminate !== !!this.props.indeterminate && this.el) {
|
|
43
18
|
this.el.indeterminate = !!this.props.indeterminate;
|
|
44
19
|
}
|
|
45
20
|
}
|
|
46
|
-
|
|
47
21
|
componentDidMount() {
|
|
48
22
|
if (this.el) {
|
|
49
23
|
this.el.indeterminate = !!this.props.indeterminate;
|
|
50
24
|
}
|
|
51
25
|
}
|
|
52
|
-
|
|
53
26
|
handleChange = (event: SyntheticEvent<HTMLInputElement>) => {
|
|
54
27
|
this.props.onChange(event);
|
|
55
28
|
};
|
|
56
|
-
|
|
57
29
|
render() {
|
|
58
30
|
const {
|
|
59
31
|
id,
|
|
@@ -77,74 +49,25 @@ export default class Checkbox extends React.Component<TypeProps> {
|
|
|
77
49
|
// TODO: Refactor pill checkboxes to use fewer elements for performance gains
|
|
78
50
|
if (!isPill) {
|
|
79
51
|
return (
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
disabled={disabled}
|
|
83
|
-
|
|
84
|
-
checked={checked}
|
|
85
|
-
// $FlowIssue - upgrade v0.112.0
|
|
86
|
-
{...rest}
|
|
87
|
-
>
|
|
88
|
-
<input
|
|
89
|
-
type="checkbox"
|
|
90
|
-
id={id}
|
|
91
|
-
aria-label={ariaLabel}
|
|
92
|
-
value={value}
|
|
93
|
-
name={name}
|
|
94
|
-
checked={checked}
|
|
95
|
-
ref={(el) => (this.el = el)}
|
|
96
|
-
disabled={disabled}
|
|
97
|
-
onChange={this.handleChange}
|
|
98
|
-
data-qa-checkbox={id}
|
|
99
|
-
data-qa-checkbox-ischecked={
|
|
100
|
-
indeterminate ? 'indeterminate' : checked === true
|
|
101
|
-
}
|
|
102
|
-
data-qa-checkbox-isdisabled={disabled === true}
|
|
103
|
-
tabIndex={tabIndex}
|
|
104
|
-
{...qa}
|
|
105
|
-
{...inputProps}
|
|
106
|
-
/>
|
|
107
|
-
{label && (
|
|
108
|
-
<LabelText {...labelProps} disabled={disabled}>
|
|
52
|
+
// $FlowIssue - upgrade v0.112.0
|
|
53
|
+
<CheckboxContainer as={label && 'label'} disabled={disabled} indeterminate={indeterminate} checked={checked} {...rest}>
|
|
54
|
+
<input type="checkbox" id={id} aria-label={ariaLabel} value={value} name={name} checked={checked} ref={el => this.el = el} disabled={disabled} onChange={this.handleChange} data-qa-checkbox={id} data-qa-checkbox-ischecked={indeterminate ? 'indeterminate' : checked === true} data-qa-checkbox-isdisabled={disabled === true} tabIndex={tabIndex} {...qa} {...inputProps} />
|
|
55
|
+
{label && <LabelText {...labelProps} disabled={disabled}>
|
|
109
56
|
{label}
|
|
110
|
-
</LabelText>
|
|
111
|
-
)}
|
|
57
|
+
</LabelText>}
|
|
112
58
|
</CheckboxContainer>
|
|
113
59
|
);
|
|
114
60
|
}
|
|
115
|
-
|
|
116
61
|
return (
|
|
117
62
|
// $FlowIssue - upgrade v0.112.0
|
|
118
63
|
<Container as={label && 'label'} {...rest}>
|
|
119
64
|
<InputWrapper appearance={appearance}>
|
|
120
|
-
<PillInput
|
|
121
|
-
type="checkbox"
|
|
122
|
-
id={id}
|
|
123
|
-
aria-label={ariaLabel}
|
|
124
|
-
value={value}
|
|
125
|
-
name={name}
|
|
126
|
-
checked={checked}
|
|
127
|
-
ref={(el) => (this.el = el)}
|
|
128
|
-
disabled={disabled}
|
|
129
|
-
onChange={this.handleChange}
|
|
130
|
-
data-qa-checkbox={id}
|
|
131
|
-
data-qa-checkbox-ischecked={
|
|
132
|
-
indeterminate ? 'indeterminate' : checked === true
|
|
133
|
-
}
|
|
134
|
-
data-qa-checkbox-isdisabled={disabled === true}
|
|
135
|
-
tabIndex={tabIndex}
|
|
136
|
-
{...qa}
|
|
137
|
-
{...inputProps}
|
|
138
|
-
/>
|
|
65
|
+
<PillInput type="checkbox" id={id} aria-label={ariaLabel} value={value} name={name} checked={checked} ref={el => this.el = el} disabled={disabled} onChange={this.handleChange} data-qa-checkbox={id} data-qa-checkbox-ischecked={indeterminate ? 'indeterminate' : checked === true} data-qa-checkbox-isdisabled={disabled === true} tabIndex={tabIndex} {...qa} {...inputProps} />
|
|
139
66
|
<CheckboxBox>
|
|
140
|
-
<CheckIcon
|
|
141
|
-
name={indeterminate ? 'minus' : 'check'}
|
|
142
|
-
size="mini"
|
|
143
|
-
fixedWidth
|
|
144
|
-
/>
|
|
67
|
+
<CheckIcon name={indeterminate ? 'minus' : 'check'} size="mini" fixedWidth />
|
|
145
68
|
</CheckboxBox>
|
|
146
69
|
</InputWrapper>
|
|
147
70
|
</Container>
|
|
148
71
|
);
|
|
149
72
|
}
|
|
150
|
-
}
|
|
73
|
+
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
//@flow
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {renderToStaticMarkup} from 'react-dom/server';
|
|
4
|
-
import styled, {css, type StyledComponent} from 'styled-components';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import Box from
|
|
8
|
-
import Icon from
|
|
9
|
-
import Text from
|
|
10
|
-
|
|
11
|
-
import type {TypeTheme} from '../types/theme.flow';
|
|
12
|
-
|
|
3
|
+
import { renderToStaticMarkup } from 'react-dom/server';
|
|
4
|
+
import styled, { css, type StyledComponent } from 'styled-components';
|
|
5
|
+
import { focusRing, pill } from "../utils/mixins";
|
|
6
|
+
import { COMMON } from "../utils/system-props";
|
|
7
|
+
import Box from "../Box";
|
|
8
|
+
import Icon from "../Icon";
|
|
9
|
+
import Text from "../Text";
|
|
10
|
+
import type { TypeTheme } from "../types/theme.flow";
|
|
13
11
|
const Container: StyledComponent<{...}, TypeTheme, *> = styled.span`
|
|
14
12
|
display: inline-flex;
|
|
15
13
|
align-items: center;
|
|
@@ -17,24 +15,20 @@ const Container: StyledComponent<{...}, TypeTheme, *> = styled.span`
|
|
|
17
15
|
|
|
18
16
|
${COMMON}
|
|
19
17
|
`;
|
|
20
|
-
|
|
21
18
|
Container.displayName = 'Checkbox';
|
|
22
|
-
|
|
23
19
|
export const InputWrapper = styled<typeof Box, TypeTheme, any>(Box)`
|
|
24
20
|
box-sizing: border-box;
|
|
25
21
|
position: relative;
|
|
26
|
-
width: ${
|
|
27
|
-
height: ${
|
|
22
|
+
width: ${props => props.theme.space[400]};
|
|
23
|
+
height: ${props => props.theme.space[400]};
|
|
28
24
|
display: inline-flex;
|
|
29
25
|
align-items: center;
|
|
30
26
|
justify-content: center;
|
|
31
27
|
|
|
32
|
-
${
|
|
33
|
-
props.appearance === 'pill' &&
|
|
34
|
-
css`
|
|
28
|
+
${props => props.appearance === 'pill' && css`
|
|
35
29
|
background-color: transparent;
|
|
36
|
-
transition: all ${
|
|
37
|
-
${
|
|
30
|
+
transition: all ${props => props.theme.duration.fast}
|
|
31
|
+
${props => props.theme.easing.ease_inout};
|
|
38
32
|
/* This solution is temporary. DS-1095 */
|
|
39
33
|
mix-blend-mode: ${props.theme.mode === 'dark' ? 'screen' : 'multiply'};
|
|
40
34
|
${pill}
|
|
@@ -48,26 +42,22 @@ export const InputWrapper = styled<typeof Box, TypeTheme, any>(Box)`
|
|
|
48
42
|
}
|
|
49
43
|
`}
|
|
50
44
|
`;
|
|
51
|
-
|
|
52
45
|
InputWrapper.displayName = 'InputWrapper';
|
|
53
|
-
|
|
54
46
|
export const CheckboxBox: StyledComponent<{...}, TypeTheme, *> = styled.div`
|
|
55
47
|
box-sizing: border-box;
|
|
56
48
|
position: relative;
|
|
57
|
-
width: ${
|
|
58
|
-
height: ${
|
|
59
|
-
border: 1px solid ${
|
|
49
|
+
width: ${props => props.theme.space[400]};
|
|
50
|
+
height: ${props => props.theme.space[400]};
|
|
51
|
+
border: 1px solid ${props => props.theme.colors.form.border.base};
|
|
60
52
|
border-radius: 4px;
|
|
61
|
-
background-color: ${
|
|
62
|
-
transition: border-color ${
|
|
63
|
-
${
|
|
64
|
-
background-color ${
|
|
65
|
-
${
|
|
53
|
+
background-color: ${props => props.theme.colors.form.background.base};
|
|
54
|
+
transition: border-color ${props => props.theme.duration.fast}
|
|
55
|
+
${props => props.theme.easing.ease_in},
|
|
56
|
+
background-color ${props => props.theme.duration.fast}
|
|
57
|
+
${props => props.theme.easing.ease_in};
|
|
66
58
|
pointer-events: none;
|
|
67
59
|
`;
|
|
68
|
-
|
|
69
60
|
CheckboxBox.displayName = 'CheckboxBox';
|
|
70
|
-
|
|
71
61
|
export const CheckIcon = styled<typeof Icon, TypeTheme>(Icon)`
|
|
72
62
|
position: absolute;
|
|
73
63
|
display: inline-flex;
|
|
@@ -78,8 +68,8 @@ export const CheckIcon = styled<typeof Icon, TypeTheme>(Icon)`
|
|
|
78
68
|
transform: translate(-50%, -50%);
|
|
79
69
|
opacity: 0;
|
|
80
70
|
pointer-events: none;
|
|
81
|
-
transition: all ${
|
|
82
|
-
${
|
|
71
|
+
transition: all ${props => props.theme.duration.fast}
|
|
72
|
+
${props => props.theme.easing.ease_inout};
|
|
83
73
|
|
|
84
74
|
&,
|
|
85
75
|
& .Icon-svg {
|
|
@@ -88,9 +78,7 @@ export const CheckIcon = styled<typeof Icon, TypeTheme>(Icon)`
|
|
|
88
78
|
line-height: 10px;
|
|
89
79
|
}
|
|
90
80
|
`;
|
|
91
|
-
|
|
92
81
|
CheckIcon.displayName = 'CheckIcon';
|
|
93
|
-
|
|
94
82
|
export const PillInput: StyledComponent<any, TypeTheme, *> = styled.input`
|
|
95
83
|
position: absolute;
|
|
96
84
|
top: 0;
|
|
@@ -99,7 +87,7 @@ export const PillInput: StyledComponent<any, TypeTheme, *> = styled.input`
|
|
|
99
87
|
height: 100%;
|
|
100
88
|
margin: 0;
|
|
101
89
|
appearance: none;
|
|
102
|
-
cursor: ${
|
|
90
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
103
91
|
border-radius: 4px;
|
|
104
92
|
|
|
105
93
|
/* IE 11 overrides */
|
|
@@ -111,21 +99,17 @@ export const PillInput: StyledComponent<any, TypeTheme, *> = styled.input`
|
|
|
111
99
|
${focusRing}
|
|
112
100
|
}
|
|
113
101
|
|
|
114
|
-
${
|
|
115
|
-
!props.checked &&
|
|
116
|
-
css`
|
|
102
|
+
${props => !props.checked && css`
|
|
117
103
|
&:hover,
|
|
118
104
|
&:focus {
|
|
119
105
|
~ ${CheckboxBox} ${CheckIcon} {
|
|
120
|
-
opacity: ${
|
|
106
|
+
opacity: ${props => props.disabled ? 0 : 1};
|
|
121
107
|
color: ${props.theme.colors.form.border.base};
|
|
122
108
|
}
|
|
123
109
|
}
|
|
124
110
|
`}
|
|
125
111
|
|
|
126
|
-
${
|
|
127
|
-
props.checked &&
|
|
128
|
-
css`
|
|
112
|
+
${props => props.checked && css`
|
|
129
113
|
~ ${CheckboxBox} {
|
|
130
114
|
border-color: ${props.theme.colors.form.border.selected};
|
|
131
115
|
background-color: ${props.theme.colors.form.background.selected};
|
|
@@ -136,9 +120,7 @@ export const PillInput: StyledComponent<any, TypeTheme, *> = styled.input`
|
|
|
136
120
|
}
|
|
137
121
|
`}
|
|
138
122
|
|
|
139
|
-
${
|
|
140
|
-
props.disabled &&
|
|
141
|
-
css`
|
|
123
|
+
${props => props.disabled && css`
|
|
142
124
|
~ ${CheckboxBox} {
|
|
143
125
|
opacity: 0.4;
|
|
144
126
|
}
|
|
@@ -147,51 +129,31 @@ export const PillInput: StyledComponent<any, TypeTheme, *> = styled.input`
|
|
|
147
129
|
}
|
|
148
130
|
`}
|
|
149
131
|
`;
|
|
150
|
-
|
|
151
132
|
PillInput.displayName = 'PillInput';
|
|
152
|
-
|
|
153
133
|
export const LabelText = styled<typeof Text, TypeTheme, any>(Text)`
|
|
154
|
-
margin-left: ${
|
|
155
|
-
font-size: ${
|
|
134
|
+
margin-left: ${props => props.theme.space[300]};
|
|
135
|
+
font-size: ${props => props.theme.typography[200].fontSize};
|
|
156
136
|
line-height: 1;
|
|
157
|
-
cursor: ${
|
|
158
|
-
color: ${
|
|
137
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
138
|
+
color: ${props => props.theme.colors.text.headline};
|
|
159
139
|
|
|
160
|
-
${
|
|
161
|
-
props.disabled &&
|
|
162
|
-
css`
|
|
140
|
+
${props => props.disabled && css`
|
|
163
141
|
opacity: 0.4;
|
|
164
142
|
`}
|
|
165
143
|
`;
|
|
166
|
-
|
|
167
144
|
LabelText.displayName = 'LabelText';
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
d="M5.378 11.37L2 7.59l1.438-1.286L5.374 8.47l5.185-5.84L12 3.91l-6.622 7.46"
|
|
173
|
-
fill={color}
|
|
174
|
-
/>
|
|
175
|
-
</svg>
|
|
176
|
-
);
|
|
177
|
-
const indeterminateSVG = (color) => (
|
|
178
|
-
<svg width="14" height="14" xmlns="http://www.w3.org/2000/svg">
|
|
145
|
+
const checkSVG = color => <svg width="14" height="14" xmlns="http://www.w3.org/2000/svg">
|
|
146
|
+
<path d="M5.378 11.37L2 7.59l1.438-1.286L5.374 8.47l5.185-5.84L12 3.91l-6.622 7.46" fill={color} />
|
|
147
|
+
</svg>;
|
|
148
|
+
const indeterminateSVG = color => <svg width="14" height="14" xmlns="http://www.w3.org/2000/svg">
|
|
179
149
|
<rect width="10" height="2" x="2" y="6" rx="1" ry="1" fill={color} />
|
|
180
|
-
</svg
|
|
181
|
-
);
|
|
182
|
-
|
|
150
|
+
</svg>;
|
|
183
151
|
const getIcon = (type, color) => {
|
|
184
152
|
const escapedColor = encodeURIComponent(color);
|
|
185
|
-
const icon =
|
|
186
|
-
type === 'indeterminate'
|
|
187
|
-
? indeterminateSVG(escapedColor)
|
|
188
|
-
: checkSVG(escapedColor);
|
|
153
|
+
const icon = type === 'indeterminate' ? indeterminateSVG(escapedColor) : checkSVG(escapedColor);
|
|
189
154
|
return icon;
|
|
190
155
|
};
|
|
191
|
-
|
|
192
|
-
export const CheckboxContainer: StyledComponent<any, TypeTheme, *> =
|
|
193
|
-
styled.span(
|
|
194
|
-
(props) => css`
|
|
156
|
+
export const CheckboxContainer: StyledComponent<any, TypeTheme, *> = styled.span(props => css`
|
|
195
157
|
display: inline-flex;
|
|
196
158
|
align-items: center;
|
|
197
159
|
box-sizing: border-box;
|
|
@@ -201,14 +163,7 @@ export const CheckboxContainer: StyledComponent<any, TypeTheme, *> =
|
|
|
201
163
|
@supports (-webkit-appearance: none) {
|
|
202
164
|
&:before {
|
|
203
165
|
/* stylelint-disable */
|
|
204
|
-
content: url('data:image/svg+xml;utf8,${renderToStaticMarkup(
|
|
205
|
-
getIcon(
|
|
206
|
-
props.indeterminate ? 'indeterminate' : 'check',
|
|
207
|
-
props.checked
|
|
208
|
-
? props.theme.colors.form.background.base
|
|
209
|
-
: props.theme.colors.form.border.base
|
|
210
|
-
)
|
|
211
|
-
)}');
|
|
166
|
+
content: url('data:image/svg+xml;utf8,${renderToStaticMarkup(getIcon(props.indeterminate ? 'indeterminate' : 'check', props.checked ? props.theme.colors.form.background.base : props.theme.colors.form.border.base))}');
|
|
212
167
|
opacity: ${props.checked ? 1 : 0};
|
|
213
168
|
position: absolute;
|
|
214
169
|
width: ${props.theme.space[400]};
|
|
@@ -226,8 +181,7 @@ export const CheckboxContainer: StyledComponent<any, TypeTheme, *> =
|
|
|
226
181
|
opacity: ${props.disabled && !props.checked ? 0 : 1};
|
|
227
182
|
}
|
|
228
183
|
|
|
229
|
-
${props.disabled &&
|
|
230
|
-
css`
|
|
184
|
+
${props.disabled && css`
|
|
231
185
|
opacity: 0.4;
|
|
232
186
|
`}
|
|
233
187
|
|
|
@@ -247,10 +201,8 @@ export const CheckboxContainer: StyledComponent<any, TypeTheme, *> =
|
|
|
247
201
|
flex-shrink: 0;
|
|
248
202
|
|
|
249
203
|
&:not(:checked) {
|
|
250
|
-
${!props.indeterminate &&
|
|
251
|
-
|
|
252
|
-
border-color: ${props.theme.colors
|
|
253
|
-
.neutral[300]} !important; /* We don't want the focus ring to remove the border */
|
|
204
|
+
${!props.indeterminate && css`
|
|
205
|
+
border-color: ${props.theme.colors.neutral[300]} !important; /* We don't want the focus ring to remove the border */
|
|
254
206
|
background-color: ${props.theme.colors.form.background.base};
|
|
255
207
|
`}
|
|
256
208
|
}
|
|
@@ -260,12 +212,9 @@ export const CheckboxContainer: StyledComponent<any, TypeTheme, *> =
|
|
|
260
212
|
background-color: ${props.theme.colors.form.background.selected};
|
|
261
213
|
}
|
|
262
214
|
|
|
263
|
-
${props.indeterminate &&
|
|
264
|
-
props.checked &&
|
|
265
|
-
css`
|
|
215
|
+
${props.indeterminate && props.checked && css`
|
|
266
216
|
border-color: ${props.theme.colors.form.border.selected} !important;
|
|
267
|
-
background-color: ${props.theme.colors.form.background
|
|
268
|
-
.selected} !important;
|
|
217
|
+
background-color: ${props.theme.colors.form.background.selected} !important;
|
|
269
218
|
`}
|
|
270
219
|
|
|
271
220
|
&:focus {
|
|
@@ -275,7 +224,5 @@ export const CheckboxContainer: StyledComponent<any, TypeTheme, *> =
|
|
|
275
224
|
}
|
|
276
225
|
|
|
277
226
|
${COMMON}
|
|
278
|
-
`
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
export default Container;
|
|
227
|
+
`);
|
|
228
|
+
export default Container;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type TypeCollapsibleProps = {
|
|
4
|
+
isOpen: boolean,
|
|
5
|
+
children: React.Node,
|
|
6
|
+
/** 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. */
|
|
7
|
+
offset?: number,
|
|
8
|
+
collapsedHeight?: number,
|
|
9
|
+
openHeight?: number,
|
|
10
|
+
...
|
|
11
|
+
};
|