@sproutsocial/racine 12.22.0 → 12.23.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 +12 -0
- package/README.md +2 -0
- package/__flow__/Avatar/__tests__/features.test.js +98 -0
- package/__flow__/Banner/index.js +2 -1
- package/__flow__/CharacterCounter/index.test.js +1 -1
- package/__flow__/Collapsible/index.js +2 -2
- package/__flow__/Drawer/index.js +11 -0
- package/__flow__/Drawer/index.stories.js +2 -1
- package/__flow__/EmptyState/index.test.js +1 -1
- package/__flow__/EnumIllustrationNames.js +1 -1
- package/__flow__/Fieldset/index.js +1 -1
- package/__flow__/IllustrationViewBoxes.js +1 -1
- package/__flow__/Indicator/index.js +1 -1
- package/__flow__/Input/index.js +2 -1
- package/__flow__/Link/index.js +2 -1
- package/__flow__/Link/index.test.js +2 -0
- package/__flow__/Listbox/index.stories.js +1 -0
- package/__flow__/Loader/index.js +1 -1
- package/__flow__/Modal/index.stories.js +1 -1
- package/__flow__/Numeral/tests/testNumeral.js +1 -0
- package/__flow__/Popout/index.js +1 -1
- package/__flow__/Portal/index.stories.js +7 -7
- package/__flow__/SegmentedControl/index.js +1 -1
- package/__flow__/SpotIllustration/illustrationNames.js +1 -0
- package/__flow__/SpotIllustration/spotIllustrations/campaign-tag.svg +6 -0
- package/__flow__/SpotIllustration/spotIllustrations/tag.svg +4 -4
- package/__flow__/Table/index.js +4 -4
- package/__flow__/TableCell/index.js +1 -1
- package/__flow__/TableHeaderCell/index.js +1 -1
- package/__flow__/Tabs/index.js +1 -1
- package/__flow__/Textarea/index.js +1 -1
- package/__flow__/Toast/index.js +1 -1
- package/__flow__/Toast/styles.js +1 -1
- package/__flow__/TokenInput/index.stories.js +4 -4
- package/__flow__/TokenInput/tests/default/pasting.test.js +6 -2
- package/__flow__/code-guidelines.mdx +244 -0
- package/__flow__/setupTests.js +1 -0
- package/__flow__/utils/a11yTest.js +1 -0
- package/__flow__/utils/system-props.js +1 -0
- package/commonjs/Avatar/index.js +19 -10
- package/commonjs/Badge/constants.js +3 -1
- package/commonjs/Badge/index.js +7 -3
- package/commonjs/Badge/styles.js +4 -2
- package/commonjs/Banner/index.js +9 -4
- package/commonjs/Banner/styles.js +5 -2
- package/commonjs/Box/index.js +5 -2
- package/commonjs/Box/styles.js +3 -1
- package/commonjs/Breadcrumb/index.js +12 -5
- package/commonjs/Breadcrumb/styles.js +3 -1
- package/commonjs/Button/index.js +7 -3
- package/commonjs/Button/styles.js +6 -3
- package/commonjs/Card/index.js +7 -3
- package/commonjs/Card/styles.js +3 -1
- package/commonjs/CharacterCounter/index.js +39 -22
- package/commonjs/CharacterCounter/styles.js +5 -2
- package/commonjs/ChartLegend/index.js +7 -3
- package/commonjs/ChartLegend/styles.js +5 -2
- package/commonjs/Checkbox/index.js +117 -97
- package/commonjs/Checkbox/styles.js +5 -2
- package/commonjs/Collapsible/index.js +27 -12
- package/commonjs/Collapsible/styles.js +4 -2
- package/commonjs/DatePicker/DateRangePicker.js +7 -3
- package/commonjs/DatePicker/SingleDatePicker.js +7 -3
- package/commonjs/DatePicker/StatefulDateRangePicker.js +19 -7
- package/commonjs/DatePicker/StatefulSingleDatePicker.js +16 -5
- package/commonjs/DatePicker/common.js +4 -2
- package/commonjs/DatePicker/index.js +15 -3
- package/commonjs/DatePicker/styles.js +5 -2
- package/commonjs/Drawer/SlideTransition.js +9 -5
- package/commonjs/Drawer/index.js +15 -7
- package/commonjs/Drawer/styles.js +5 -2
- package/commonjs/EmptyState/index.js +7 -3
- package/commonjs/Fieldset/index.js +10 -6
- package/commonjs/Fieldset/styles.js +5 -2
- package/commonjs/FormField/index.js +17 -6
- package/commonjs/Icon/deprecatedIcons.js +3 -1
- package/commonjs/Icon/index.js +9 -5
- package/commonjs/Icon/styles.js +6 -3
- package/commonjs/IllustrationViewBoxes.js +2 -1
- package/commonjs/Image/index.js +78 -58
- package/commonjs/Image/styles.js +5 -2
- package/commonjs/Indicator/index.js +40 -23
- package/commonjs/Indicator/styles.js +4 -2
- package/commonjs/Input/index.js +156 -132
- package/commonjs/Input/styles.js +5 -2
- package/commonjs/KeyboardKey/index.js +30 -14
- package/commonjs/KeyboardKey/styles.js +3 -1
- package/commonjs/Label/index.js +32 -16
- package/commonjs/Link/constants.js +3 -1
- package/commonjs/Link/index.js +9 -4
- package/commonjs/Link/styles.js +5 -2
- package/commonjs/Listbox/index.js +15 -8
- package/commonjs/Loader/index.js +43 -26
- package/commonjs/Loader/styles.js +5 -2
- package/commonjs/LoaderButton/index.js +7 -3
- package/commonjs/Menu/constants.js +3 -1
- package/commonjs/Menu/descendants.js +35 -20
- package/commonjs/Menu/hooks.js +8 -8
- package/commonjs/Menu/index.flow.js +2 -1
- package/commonjs/Menu/index.js +44 -27
- package/commonjs/Menu/names.js +3 -1
- package/commonjs/Menu/styles.js +6 -3
- package/commonjs/Message/index.js +7 -3
- package/commonjs/Message/styles.js +4 -2
- package/commonjs/Modal/index.js +9 -5
- package/commonjs/Modal/styles.js +9 -5
- package/commonjs/Numeral/constants.js +3 -1
- package/commonjs/Numeral/index.js +16 -5
- package/commonjs/Numeral/styles.js +3 -1
- package/commonjs/Numeral/tests/testNumeral.js +16 -11
- package/commonjs/OverflowList/index.flow.js +2 -1
- package/commonjs/OverflowList/index.js +6 -3
- package/commonjs/OverflowList/styles.js +5 -2
- package/commonjs/PartnerLogo/index.js +9 -6
- package/commonjs/PartnerLogo/styles.js +5 -2
- package/commonjs/Popout/index.js +28 -13
- package/commonjs/Popout/styles.js +3 -1
- package/commonjs/Portal/index.js +50 -30
- package/commonjs/Radio/index.js +73 -56
- package/commonjs/Radio/styles.js +5 -2
- package/commonjs/SegmentedControl/index.js +21 -9
- package/commonjs/SegmentedControl/styles.js +5 -2
- package/commonjs/Select/index.js +78 -61
- package/commonjs/Select/styles.js +8 -5
- package/commonjs/Skeleton/index.js +4 -2
- package/commonjs/SpotIllustration/illustrationNames.js +4 -2
- package/commonjs/SpotIllustration/index.js +5 -3
- package/commonjs/Stack/index.js +7 -3
- package/commonjs/Switch/index.js +52 -35
- package/commonjs/Switch/styles.js +6 -3
- package/commonjs/Table/index.js +14 -10
- package/commonjs/Table/styles.js +3 -1
- package/commonjs/TableCell/index.js +39 -23
- package/commonjs/TableCell/styles.js +3 -1
- package/commonjs/TableHeaderCell/index.js +54 -37
- package/commonjs/TableHeaderCell/styles.js +5 -2
- package/commonjs/TableRowAccordion/index.js +61 -44
- package/commonjs/TableRowAccordion/styles.js +5 -2
- package/commonjs/Tabs/index.js +116 -90
- package/commonjs/Tabs/styles.js +8 -5
- package/commonjs/Text/index.js +7 -3
- package/commonjs/Text/styles.js +5 -2
- package/commonjs/Textarea/index.js +104 -87
- package/commonjs/Textarea/styles.js +5 -2
- package/commonjs/ThemeProvider/index.js +5 -2
- package/commonjs/Toast/index.js +7 -8
- package/commonjs/Toast/styles.js +5 -2
- package/commonjs/ToggleHint/index.js +43 -26
- package/commonjs/ToggleHint/styles.js +6 -3
- package/commonjs/Token/index.js +7 -3
- package/commonjs/Token/styles.js +5 -2
- package/commonjs/TokenInput/index.js +221 -192
- package/commonjs/TokenInput/styles.js +5 -2
- package/commonjs/TokenInput/util.js +5 -3
- package/commonjs/Tooltip/index.js +30 -14
- package/commonjs/Tooltip/styles.js +3 -1
- package/commonjs/VisuallyHidden/index.js +3 -1
- package/commonjs/dataviz/index.js +3 -1
- package/commonjs/index.js +451 -84
- package/commonjs/systemProps/background.js +3 -1
- package/commonjs/systemProps/border.js +3 -1
- package/commonjs/systemProps/color.js +3 -1
- package/commonjs/systemProps/custom.js +3 -1
- package/commonjs/systemProps/flexbox.js +3 -1
- package/commonjs/systemProps/grid.js +3 -1
- package/commonjs/systemProps/index.js +87 -15
- package/commonjs/systemProps/layout.js +3 -1
- package/commonjs/systemProps/position.js +3 -1
- package/commonjs/systemProps/shadow.js +3 -1
- package/commonjs/systemProps/space.js +3 -1
- package/commonjs/systemProps/systemProps.js +3 -1
- package/commonjs/systemProps/typography.js +3 -1
- package/commonjs/systemProps/variant.js +3 -1
- package/commonjs/themes/dark/dataviz-palette.js +3 -1
- package/commonjs/themes/dark/decorative-palettes.js +3 -1
- package/commonjs/themes/dark/theme.js +11 -7
- package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +9 -5
- package/commonjs/themes/extendedThemes/sproutTheme/index.js +15 -4
- package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +8 -4
- package/commonjs/themes/light/dataviz-palette.js +3 -1
- package/commonjs/themes/light/decorative-palettes.js +3 -1
- package/commonjs/themes/light/literal-colors.js +3 -1
- package/commonjs/themes/light/theme.js +17 -13
- package/commonjs/utils/a11yTest.js +5 -2
- package/commonjs/utils/chartColors.js +3 -1
- package/commonjs/utils/constants.js +3 -1
- package/commonjs/utils/dataQaLabelQueries.js +26 -16
- package/commonjs/utils/hooks.js +39 -26
- package/commonjs/utils/index.js +18 -8
- package/commonjs/utils/innerText.js +4 -2
- package/commonjs/utils/mixins.js +3 -1
- package/commonjs/utils/react-testing-library.js +74 -18
- package/commonjs/utils/responsiveProps/index.js +16 -8
- package/commonjs/utils/system-props.js +6 -2
- package/commonjs/utils/useInteractiveColor.js +3 -1
- package/dist/illustration.svg +1 -1
- package/dist/illustrationList.js +1 -1
- package/dist/themes/dark/theme.scss +0 -1
- package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +0 -1
- package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +0 -1
- package/dist/themes/light/theme.scss +0 -1
- package/lib/Avatar/index.js +17 -11
- package/lib/Badge/index.js +5 -4
- package/lib/Badge/styles.js +3 -3
- package/lib/Banner/index.js +7 -5
- package/lib/Banner/styles.js +1 -1
- package/lib/Box/index.js +1 -1
- package/lib/Box/styles.js +1 -1
- package/lib/Breadcrumb/index.js +11 -7
- package/lib/Button/index.js +3 -2
- package/lib/Button/styles.js +4 -4
- package/lib/Card/index.js +3 -2
- package/lib/Card/styles.js +2 -2
- package/lib/CharacterCounter/index.js +36 -21
- package/lib/CharacterCounter/styles.js +1 -1
- package/lib/ChartLegend/index.js +5 -4
- package/lib/ChartLegend/styles.js +1 -1
- package/lib/Checkbox/index.js +114 -96
- package/lib/Checkbox/styles.js +5 -5
- package/lib/Collapsible/index.js +24 -12
- package/lib/Collapsible/styles.js +2 -2
- package/lib/DatePicker/DateRangePicker.js +4 -3
- package/lib/DatePicker/SingleDatePicker.js +4 -3
- package/lib/DatePicker/StatefulDateRangePicker.js +15 -6
- package/lib/DatePicker/StatefulSingleDatePicker.js +12 -4
- package/lib/DatePicker/common.js +3 -3
- package/lib/DatePicker/index.js +2 -2
- package/lib/DatePicker/styles.js +2 -2
- package/lib/Drawer/SlideTransition.js +4 -3
- package/lib/Drawer/index.js +17 -12
- package/lib/Drawer/styles.js +2 -2
- package/lib/EmptyState/index.js +4 -3
- package/lib/Fieldset/index.js +8 -7
- package/lib/Fieldset/styles.js +1 -1
- package/lib/FormField/index.js +17 -9
- package/lib/Icon/index.js +8 -7
- package/lib/Icon/styles.js +2 -2
- package/lib/IllustrationViewBoxes.js +2 -1
- package/lib/Image/index.js +75 -57
- package/lib/Image/styles.js +1 -1
- package/lib/Indicator/index.js +38 -23
- package/lib/Indicator/styles.js +3 -3
- package/lib/Input/index.js +157 -135
- package/lib/Input/styles.js +2 -2
- package/lib/KeyboardKey/index.js +28 -14
- package/lib/KeyboardKey/styles.js +1 -1
- package/lib/Label/index.js +29 -15
- package/lib/Link/index.js +5 -3
- package/lib/Link/styles.js +3 -3
- package/lib/Listbox/index.js +14 -10
- package/lib/Loader/index.js +40 -25
- package/lib/Loader/styles.js +2 -2
- package/lib/LoaderButton/index.js +5 -4
- package/lib/Menu/descendants.js +30 -18
- package/lib/Menu/hooks.js +7 -9
- package/lib/Menu/index.flow.js +4 -4
- package/lib/Menu/index.js +54 -40
- package/lib/Menu/styles.js +3 -3
- package/lib/Message/index.js +6 -5
- package/lib/Message/styles.js +4 -4
- package/lib/Modal/index.js +9 -8
- package/lib/Modal/styles.js +6 -5
- package/lib/Numeral/index.js +15 -7
- package/lib/Numeral/styles.js +1 -1
- package/lib/Numeral/tests/testNumeral.js +15 -11
- package/lib/OverflowList/index.js +3 -3
- package/lib/OverflowList/styles.js +1 -1
- package/lib/PartnerLogo/index.js +8 -7
- package/lib/PartnerLogo/styles.js +1 -1
- package/lib/Popout/index.js +27 -15
- package/lib/Popout/styles.js +1 -1
- package/lib/Portal/index.js +47 -29
- package/lib/Radio/index.js +70 -55
- package/lib/Radio/styles.js +3 -3
- package/lib/SegmentedControl/index.js +18 -9
- package/lib/SegmentedControl/styles.js +3 -3
- package/lib/Select/index.js +76 -61
- package/lib/Select/styles.js +5 -5
- package/lib/Skeleton/index.js +2 -2
- package/lib/SpotIllustration/illustrationNames.js +1 -1
- package/lib/SpotIllustration/index.js +3 -3
- package/lib/Stack/index.js +4 -3
- package/lib/Switch/index.js +51 -36
- package/lib/Switch/styles.js +4 -4
- package/lib/Table/index.js +12 -11
- package/lib/Table/styles.js +1 -1
- package/lib/TableCell/index.js +36 -22
- package/lib/TableCell/styles.js +1 -1
- package/lib/TableHeaderCell/index.js +52 -37
- package/lib/TableHeaderCell/styles.js +1 -1
- package/lib/TableRowAccordion/index.js +60 -45
- package/lib/TableRowAccordion/styles.js +1 -1
- package/lib/Tabs/index.js +113 -89
- package/lib/Tabs/styles.js +5 -5
- package/lib/Text/index.js +3 -2
- package/lib/Text/styles.js +1 -1
- package/lib/Textarea/index.js +101 -86
- package/lib/Textarea/styles.js +2 -2
- package/lib/ThemeProvider/index.js +1 -1
- package/lib/Toast/index.js +6 -10
- package/lib/Toast/styles.js +4 -3
- package/lib/ToggleHint/index.js +41 -26
- package/lib/ToggleHint/styles.js +3 -3
- package/lib/Token/index.js +6 -5
- package/lib/Token/styles.js +3 -3
- package/lib/TokenInput/index.js +223 -196
- package/lib/TokenInput/styles.js +2 -2
- package/lib/TokenInput/util.js +2 -2
- package/lib/Tooltip/index.js +28 -14
- package/lib/Tooltip/styles.js +1 -1
- package/lib/VisuallyHidden/index.js +1 -1
- package/lib/dataviz/index.js +1 -1
- package/lib/index.js +64 -64
- package/lib/systemProps/index.js +14 -14
- package/lib/systemProps/systemProps.js +12 -12
- package/lib/themes/dark/theme.js +11 -9
- package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +7 -5
- package/lib/themes/extendedThemes/sproutTheme/index.js +2 -2
- package/lib/themes/extendedThemes/sproutTheme/light/theme.js +6 -4
- package/lib/themes/light/theme.js +17 -15
- package/lib/types/theme.colors.flow.js +2 -2
- package/lib/types/theme.flow.js +2 -2
- package/lib/utils/a11yTest.js +3 -1
- package/lib/utils/dataQaLabelQueries.js +23 -15
- package/lib/utils/hooks.js +37 -26
- package/lib/utils/index.js +15 -7
- package/lib/utils/innerText.js +1 -1
- package/lib/utils/mixins.js +1 -1
- package/lib/utils/react-testing-library.js +11 -8
- package/lib/utils/responsiveProps/index.js +14 -8
- package/lib/utils/system-props.js +1 -0
- package/package.json +16 -27
- package/__flow__/Avatar/index.test.js +0 -23
|
@@ -1,87 +1,159 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
var _typesFlow = require("./types.flow.js");
|
|
5
7
|
Object.keys(_typesFlow).forEach(function (key) {
|
|
6
8
|
if (key === "default" || key === "__esModule") return;
|
|
7
9
|
if (key in exports && exports[key] === _typesFlow[key]) return;
|
|
8
|
-
exports
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _typesFlow[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
9
16
|
});
|
|
10
17
|
var _background = require("./background");
|
|
11
18
|
Object.keys(_background).forEach(function (key) {
|
|
12
19
|
if (key === "default" || key === "__esModule") return;
|
|
13
20
|
if (key in exports && exports[key] === _background[key]) return;
|
|
14
|
-
exports
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _background[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
15
27
|
});
|
|
16
28
|
var _border = require("./border");
|
|
17
29
|
Object.keys(_border).forEach(function (key) {
|
|
18
30
|
if (key === "default" || key === "__esModule") return;
|
|
19
31
|
if (key in exports && exports[key] === _border[key]) return;
|
|
20
|
-
exports
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _border[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
21
38
|
});
|
|
22
39
|
var _color = require("./color");
|
|
23
40
|
Object.keys(_color).forEach(function (key) {
|
|
24
41
|
if (key === "default" || key === "__esModule") return;
|
|
25
42
|
if (key in exports && exports[key] === _color[key]) return;
|
|
26
|
-
exports
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _color[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
27
49
|
});
|
|
28
50
|
var _custom = require("./custom");
|
|
29
51
|
Object.keys(_custom).forEach(function (key) {
|
|
30
52
|
if (key === "default" || key === "__esModule") return;
|
|
31
53
|
if (key in exports && exports[key] === _custom[key]) return;
|
|
32
|
-
exports
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _custom[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
33
60
|
});
|
|
34
61
|
var _flexbox = require("./flexbox");
|
|
35
62
|
Object.keys(_flexbox).forEach(function (key) {
|
|
36
63
|
if (key === "default" || key === "__esModule") return;
|
|
37
64
|
if (key in exports && exports[key] === _flexbox[key]) return;
|
|
38
|
-
exports
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function get() {
|
|
68
|
+
return _flexbox[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
39
71
|
});
|
|
40
72
|
var _grid = require("./grid");
|
|
41
73
|
Object.keys(_grid).forEach(function (key) {
|
|
42
74
|
if (key === "default" || key === "__esModule") return;
|
|
43
75
|
if (key in exports && exports[key] === _grid[key]) return;
|
|
44
|
-
exports
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function get() {
|
|
79
|
+
return _grid[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
45
82
|
});
|
|
46
83
|
var _layout = require("./layout");
|
|
47
84
|
Object.keys(_layout).forEach(function (key) {
|
|
48
85
|
if (key === "default" || key === "__esModule") return;
|
|
49
86
|
if (key in exports && exports[key] === _layout[key]) return;
|
|
50
|
-
exports
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return _layout[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
51
93
|
});
|
|
52
94
|
var _position = require("./position");
|
|
53
95
|
Object.keys(_position).forEach(function (key) {
|
|
54
96
|
if (key === "default" || key === "__esModule") return;
|
|
55
97
|
if (key in exports && exports[key] === _position[key]) return;
|
|
56
|
-
exports
|
|
98
|
+
Object.defineProperty(exports, key, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function get() {
|
|
101
|
+
return _position[key];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
57
104
|
});
|
|
58
105
|
var _shadow = require("./shadow");
|
|
59
106
|
Object.keys(_shadow).forEach(function (key) {
|
|
60
107
|
if (key === "default" || key === "__esModule") return;
|
|
61
108
|
if (key in exports && exports[key] === _shadow[key]) return;
|
|
62
|
-
exports
|
|
109
|
+
Object.defineProperty(exports, key, {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function get() {
|
|
112
|
+
return _shadow[key];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
63
115
|
});
|
|
64
116
|
var _space = require("./space");
|
|
65
117
|
Object.keys(_space).forEach(function (key) {
|
|
66
118
|
if (key === "default" || key === "__esModule") return;
|
|
67
119
|
if (key in exports && exports[key] === _space[key]) return;
|
|
68
|
-
exports
|
|
120
|
+
Object.defineProperty(exports, key, {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _space[key];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
69
126
|
});
|
|
70
127
|
var _systemProps = require("./systemProps");
|
|
71
128
|
Object.keys(_systemProps).forEach(function (key) {
|
|
72
129
|
if (key === "default" || key === "__esModule") return;
|
|
73
130
|
if (key in exports && exports[key] === _systemProps[key]) return;
|
|
74
|
-
exports
|
|
131
|
+
Object.defineProperty(exports, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function get() {
|
|
134
|
+
return _systemProps[key];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
75
137
|
});
|
|
76
138
|
var _typography = require("./typography");
|
|
77
139
|
Object.keys(_typography).forEach(function (key) {
|
|
78
140
|
if (key === "default" || key === "__esModule") return;
|
|
79
141
|
if (key in exports && exports[key] === _typography[key]) return;
|
|
80
|
-
exports
|
|
142
|
+
Object.defineProperty(exports, key, {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function get() {
|
|
145
|
+
return _typography[key];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
81
148
|
});
|
|
82
149
|
var _variant = require("./variant");
|
|
83
150
|
Object.keys(_variant).forEach(function (key) {
|
|
84
151
|
if (key === "default" || key === "__esModule") return;
|
|
85
152
|
if (key in exports && exports[key] === _variant[key]) return;
|
|
86
|
-
exports
|
|
153
|
+
Object.defineProperty(exports, key, {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function get() {
|
|
156
|
+
return _variant[key];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
87
159
|
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
exports.datavizPalette = void 0;
|
|
5
7
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
6
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
exports.yellow = exports.teal = exports.red = exports.purple = exports.pink = exports.orange = exports.neutral = exports.magenta = exports.green = exports.blue = exports.aqua = void 0;
|
|
5
7
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
6
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
exports.shadows = exports.default = void 0;
|
|
5
7
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
6
8
|
var _seedsDepth = _interopRequireDefault(require("@sproutsocial/seeds-depth"));
|
|
@@ -9,17 +11,19 @@ var _datavizPalette = require("./dataviz-palette");
|
|
|
9
11
|
var _decorativePalettes = require("./decorative-palettes");
|
|
10
12
|
var _polished = require("polished");
|
|
11
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function
|
|
14
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
17
|
var MODE = 'dark';
|
|
14
18
|
var shadows = {
|
|
15
|
-
low: _seedsDepth.default.ELEVATION_LEVEL_100
|
|
16
|
-
medium: _seedsDepth.default.ELEVATION_LEVEL_300
|
|
17
|
-
high: _seedsDepth.default.ELEVATION_LEVEL_400
|
|
19
|
+
low: "".concat(_seedsDepth.default.ELEVATION_LEVEL_100, " ").concat(_seedsColor.default.COLOR_NEUTRAL_1100, "FF"),
|
|
20
|
+
medium: "".concat(_seedsDepth.default.ELEVATION_LEVEL_300, " ").concat(_seedsColor.default.COLOR_NEUTRAL_1100, "FF"),
|
|
21
|
+
high: "".concat(_seedsDepth.default.ELEVATION_LEVEL_400, " ").concat(_seedsColor.default.COLOR_NEUTRAL_1100, "FF")
|
|
18
22
|
};
|
|
19
23
|
|
|
20
24
|
// If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
|
|
21
25
|
exports.shadows = shadows;
|
|
22
|
-
var colors =
|
|
26
|
+
var colors = _objectSpread(_objectSpread({}, _theme.default.colors), {}, {
|
|
23
27
|
app: {
|
|
24
28
|
background: {
|
|
25
29
|
base: _seedsColor.default.COLOR_NEUTRAL_1000
|
|
@@ -238,7 +242,7 @@ var colors = _extends({}, _theme.default.colors, {
|
|
|
238
242
|
list: _datavizPalette.datavizPalette.DATAVIZ_COLORS_LIST
|
|
239
243
|
}
|
|
240
244
|
}, _datavizPalette.datavizPalette);
|
|
241
|
-
var darkTheme =
|
|
245
|
+
var darkTheme = _objectSpread(_objectSpread({}, _theme.default), {}, {
|
|
242
246
|
colors: colors,
|
|
243
247
|
shadows: shadows,
|
|
244
248
|
mode: MODE
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
exports.navigation = exports.listening = exports.growth = exports.default = exports.datePicker = exports.cardControl = exports.analytics = void 0;
|
|
5
7
|
var _polished = require("polished");
|
|
6
8
|
var _theme = _interopRequireDefault(require("../../../dark/theme"));
|
|
7
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
function
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
13
|
var navigation = {
|
|
10
14
|
main: {
|
|
11
15
|
background: {
|
|
@@ -30,7 +34,7 @@ var navigation = {
|
|
|
30
34
|
// Uses hexicimal to change the opacity of the color
|
|
31
35
|
// Adding 'A3' at end to make this color have a 64% opacity
|
|
32
36
|
// Reference https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4
|
|
33
|
-
base: _theme.default.colors.neutral[1000]
|
|
37
|
+
base: "".concat(_theme.default.colors.neutral[1000], "A3")
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
40
|
},
|
|
@@ -199,8 +203,8 @@ var cardControl = {
|
|
|
199
203
|
}
|
|
200
204
|
};
|
|
201
205
|
exports.cardControl = cardControl;
|
|
202
|
-
var darkTheme =
|
|
203
|
-
colors:
|
|
206
|
+
var darkTheme = _objectSpread(_objectSpread({}, _theme.default), {}, {
|
|
207
|
+
colors: _objectSpread(_objectSpread({}, _theme.default.colors), {}, {
|
|
204
208
|
navigation: navigation,
|
|
205
209
|
datePicker: datePicker,
|
|
206
210
|
analytics: analytics,
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
4
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "sproutDarkTheme", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _theme2.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "sproutLightTheme", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _theme.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
5
18
|
var _theme = _interopRequireDefault(require("./light/theme"));
|
|
6
|
-
exports.sproutLightTheme = _theme.default;
|
|
7
19
|
var _theme2 = _interopRequireDefault(require("./dark/theme"));
|
|
8
|
-
exports.sproutDarkTheme = _theme2.default;
|
|
9
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
exports.navigation = exports.listening = exports.growth = exports.default = exports.datePicker = exports.cardControl = exports.analytics = void 0;
|
|
5
7
|
var _polished = require("polished");
|
|
6
8
|
var _theme = _interopRequireDefault(require("../../../light/theme"));
|
|
7
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
function
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
13
|
var navigation = {
|
|
10
14
|
main: {
|
|
11
15
|
background: {
|
|
@@ -196,8 +200,8 @@ var cardControl = {
|
|
|
196
200
|
}
|
|
197
201
|
};
|
|
198
202
|
exports.cardControl = cardControl;
|
|
199
|
-
var lightTheme =
|
|
200
|
-
colors:
|
|
203
|
+
var lightTheme = _objectSpread(_objectSpread({}, _theme.default), {}, {
|
|
204
|
+
colors: _objectSpread(_objectSpread({}, _theme.default.colors), {}, {
|
|
201
205
|
navigation: navigation,
|
|
202
206
|
datePicker: datePicker,
|
|
203
207
|
analytics: analytics,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
exports.datavizPalette = void 0;
|
|
5
7
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
6
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
exports.yellow = exports.teal = exports.red = exports.purple = exports.pink = exports.orange = exports.neutral = exports.magenta = exports.green = exports.blue = exports.aqua = void 0;
|
|
5
7
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
6
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
exports.default = void 0;
|
|
5
7
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
6
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
exports.typography = exports.space = exports.shadows = exports.radii = exports.fontWeights = exports.fontFamily = exports.easing = exports.duration = exports.default = exports.breakpoints = exports.borders = exports.borderWidths = void 0;
|
|
5
7
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
6
8
|
var _literalColors = _interopRequireDefault(require("./literal-colors"));
|
|
@@ -14,14 +16,16 @@ var _seedsMotion = _interopRequireDefault(require("@sproutsocial/seeds-motion"))
|
|
|
14
16
|
var _seedsBorder = _interopRequireDefault(require("@sproutsocial/seeds-border"));
|
|
15
17
|
var _polished = require("polished");
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
function
|
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
22
|
var breakpoints = ['900px', '1200px', '1500px', '1800px'];
|
|
19
23
|
exports.breakpoints = breakpoints;
|
|
20
24
|
var MODE = 'light';
|
|
21
25
|
|
|
22
26
|
// If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
|
|
23
27
|
|
|
24
|
-
var colors =
|
|
28
|
+
var colors = _objectSpread(_objectSpread({
|
|
25
29
|
app: {
|
|
26
30
|
background: {
|
|
27
31
|
base: _seedsColor.default.COLOR_NEUTRAL_100
|
|
@@ -228,7 +232,7 @@ var colors = _extends({
|
|
|
228
232
|
}
|
|
229
233
|
},
|
|
230
234
|
elevation: {
|
|
231
|
-
base: _seedsColor.default.COLOR_NEUTRAL_900
|
|
235
|
+
base: "".concat(_seedsColor.default.COLOR_NEUTRAL_900, "3D")
|
|
232
236
|
},
|
|
233
237
|
illustration: {
|
|
234
238
|
fill: _seedsColor.default.COLOR_BLUE_400,
|
|
@@ -265,7 +269,7 @@ var colors = _extends({
|
|
|
265
269
|
map: _datavizPalette.datavizPalette.DATAVIZ_COLORS_MAP,
|
|
266
270
|
list: _datavizPalette.datavizPalette.DATAVIZ_COLORS_LIST
|
|
267
271
|
}
|
|
268
|
-
}, _literalColors.default, _datavizPalette.datavizPalette);
|
|
272
|
+
}, _literalColors.default), _datavizPalette.datavizPalette);
|
|
269
273
|
var typography = {
|
|
270
274
|
'100': _seedsTypography.default.TYPOGRAPHY_SIZE_100,
|
|
271
275
|
'200': _seedsTypography.default.TYPOGRAPHY_SIZE_200,
|
|
@@ -318,7 +322,7 @@ var radii = {
|
|
|
318
322
|
};
|
|
319
323
|
exports.radii = radii;
|
|
320
324
|
var borders = {
|
|
321
|
-
'500': _seedsBorder.default.BORDER_WIDTH_500
|
|
325
|
+
'500': "".concat(_seedsBorder.default.BORDER_WIDTH_500, " solid")
|
|
322
326
|
};
|
|
323
327
|
exports.borders = borders;
|
|
324
328
|
var borderWidths = {
|
|
@@ -326,9 +330,9 @@ var borderWidths = {
|
|
|
326
330
|
};
|
|
327
331
|
exports.borderWidths = borderWidths;
|
|
328
332
|
var shadows = {
|
|
329
|
-
low: _seedsDepth.default.ELEVATION_LEVEL_100
|
|
330
|
-
medium: _seedsDepth.default.ELEVATION_LEVEL_300
|
|
331
|
-
high: _seedsDepth.default.ELEVATION_LEVEL_400
|
|
333
|
+
low: "".concat(_seedsDepth.default.ELEVATION_LEVEL_100, " ").concat(_seedsColor.default.COLOR_NEUTRAL_900, "3D"),
|
|
334
|
+
medium: "".concat(_seedsDepth.default.ELEVATION_LEVEL_300, " ").concat(_seedsColor.default.COLOR_NEUTRAL_900, "3D"),
|
|
335
|
+
high: "".concat(_seedsDepth.default.ELEVATION_LEVEL_400, " ").concat(_seedsColor.default.COLOR_NEUTRAL_900, "3D")
|
|
332
336
|
};
|
|
333
337
|
exports.shadows = shadows;
|
|
334
338
|
var easing = {
|
|
@@ -346,20 +350,20 @@ exports.duration = duration;
|
|
|
346
350
|
var theme = {
|
|
347
351
|
breakpoints: breakpoints,
|
|
348
352
|
colors: colors,
|
|
349
|
-
typography:
|
|
353
|
+
typography: _objectSpread(_objectSpread({}, typography), {}, {
|
|
350
354
|
typography: typography
|
|
351
355
|
}),
|
|
352
356
|
fontFamily: fontFamily,
|
|
353
357
|
fontWeights: fontWeights,
|
|
354
|
-
space:
|
|
358
|
+
space: _objectSpread(_objectSpread({}, space), {}, {
|
|
355
359
|
space: space,
|
|
356
360
|
'-space': Object.keys(space).reduce(function (negativeSpace, key) {
|
|
357
361
|
// The values are strings (eg 24px) so we concatenate a negative sign
|
|
358
|
-
negativeSpace[key] = "-"
|
|
362
|
+
negativeSpace[key] = "-".concat(space[key]);
|
|
359
363
|
return negativeSpace;
|
|
360
364
|
}, {})
|
|
361
365
|
}),
|
|
362
|
-
radii:
|
|
366
|
+
radii: _objectSpread(_objectSpread({}, radii), {}, {
|
|
363
367
|
radii: radii
|
|
364
368
|
}),
|
|
365
369
|
borders: borders,
|