@sproutsocial/racine 14.2.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +87 -0
- package/__flow__/Card/Card.flow.js +1 -17
- package/__flow__/Card/CardTypes.flow.js +66 -0
- package/__flow__/Card/index.flow.js +2 -1
- package/__flow__/EnumIconNames.flow.js +1 -1
- package/__flow__/Icon/Icon.flow.js +3 -1
- package/__flow__/IconViewBoxes.js +2 -0
- package/__flow__/PartnerLogo/PartnerLogo.flow.js +3 -3
- package/__flow__/index.flow.js +1 -1
- package/__flow__/systemProps/{background.js → background.flow.js} +1 -1
- package/__flow__/systemProps/{border.js → border.flow.js} +1 -1
- package/__flow__/systemProps/{color.js → color.flow.js} +2 -2
- package/__flow__/systemProps/{custom.js → custom.flow.js} +1 -1
- package/__flow__/systemProps/{flexbox.js → flexbox.flow.js} +1 -1
- package/__flow__/systemProps/{grid.js → grid.flow.js} +1 -1
- package/__flow__/systemProps/index.flow.js +16 -0
- package/__flow__/systemProps/{layout.js → layout.flow.js} +1 -1
- package/__flow__/systemProps/{position.js → position.flow.js} +1 -1
- package/__flow__/systemProps/{shadow.js → shadow.flow.js} +1 -1
- package/__flow__/systemProps/{space.js → space.flow.js} +1 -1
- package/__flow__/systemProps/{systemProps.js → systemProps.flow.js} +13 -13
- package/__flow__/systemProps/{typography.js → typography.flow.js} +1 -1
- package/__flow__/systemProps/{variant.js → variant.flow.js} +1 -1
- package/__flow__/types/shared.flow.js +5 -1
- package/commonjs/Badge/Badge.js +2 -1
- package/commonjs/Banner/Banner.js +2 -1
- package/commonjs/Breadcrumb/Breadcrumb.js +2 -1
- package/commonjs/Card/Card.js +71 -26
- package/commonjs/Card/CardTypes.flow.js +6 -0
- package/commonjs/Card/index.flow.js +11 -0
- package/commonjs/Card/styles.js +102 -22
- package/commonjs/Card/subComponents.js +48 -0
- package/commonjs/Card/utils.js +56 -0
- package/commonjs/Checkbox/styles.js +6 -5
- package/commonjs/DatePicker/common.js +2 -1
- package/commonjs/Drawer/Drawer.js +9 -4
- package/commonjs/Icon/Icon.js +33 -10
- package/commonjs/IconViewBoxes.js +2 -0
- package/commonjs/IllustrationViewBoxes.d.js +5 -0
- package/commonjs/Indicator/Indicator.js +2 -1
- package/commonjs/Input/Input.js +2 -1
- package/commonjs/Listbox/Listbox.js +2 -1
- package/commonjs/Loader/styles.js +17 -12
- package/commonjs/LogoViewBoxes.d.js +5 -0
- package/commonjs/PartnerLogo/PartnerLogo.js +14 -13
- package/commonjs/PartnerLogo/PartnerLogoTypes.js +12 -1
- package/commonjs/PartnerLogo/index.js +0 -12
- package/commonjs/PartnerLogo/styles.js +1 -1
- package/commonjs/Select/Select.js +2 -1
- package/commonjs/Switch/Switch.js +1 -0
- package/commonjs/TableHeaderCell/TableHeaderCell.js +2 -1
- package/commonjs/TableRowAccordion/TableRowAccordion.js +6 -2
- package/commonjs/Toast/Toast.js +40 -34
- package/commonjs/ToggleHint/ToggleHint.js +4 -2
- package/commonjs/Token/Token.js +16 -2
- package/commonjs/Token/styles.js +1 -1
- package/commonjs/TokenInput/TokenInput.js +3 -1
- package/commonjs/index.flow.js +125 -125
- package/commonjs/systemProps/index.flow.js +159 -0
- package/commonjs/systemProps/{systemProps.js → systemProps.flow.js} +12 -12
- package/commonjs/themes/dark/theme.js +1 -1
- package/commonjs/themes/light/theme.js +1 -1
- package/commonjs/types/shared.flow.js +6 -1
- package/commonjs/utils/index.js +27 -2
- package/dist/icon.svg +1 -1
- package/dist/iconList.js +1 -1
- package/dist/themes/dark/theme.scss +1 -1
- package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +1 -1
- package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +1 -1
- package/dist/themes/light/theme.scss +1 -1
- package/dist/types/Avatar/Avatar.d.ts +2 -2
- package/dist/types/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/Badge/Badge.d.ts +2 -1
- package/dist/types/Badge/Badge.d.ts.map +1 -1
- package/dist/types/Banner/Banner.d.ts +2 -1
- package/dist/types/Banner/Banner.d.ts.map +1 -1
- package/dist/types/Banner/styles.d.ts +3 -2
- package/dist/types/Banner/styles.d.ts.map +1 -1
- package/dist/types/Box/Box.d.ts +1 -1
- package/dist/types/Box/Box.d.ts.map +1 -1
- package/dist/types/Breadcrumb/Breadcrumb.d.ts +3 -2
- package/dist/types/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/types/Button/Button.d.ts +2 -1
- package/dist/types/Button/Button.d.ts.map +1 -1
- package/dist/types/Card/Card.d.ts +16 -2
- package/dist/types/Card/Card.d.ts.map +1 -1
- package/dist/types/Card/CardTypes.d.ts +48 -11
- package/dist/types/Card/CardTypes.d.ts.map +1 -1
- package/dist/types/Card/__tests__/CardTypes.d.ts +2 -0
- package/dist/types/Card/__tests__/CardTypes.d.ts.map +1 -0
- package/dist/types/Card/styles.d.ts +13 -6
- package/dist/types/Card/styles.d.ts.map +1 -1
- package/dist/types/Card/subComponents.d.ts +17 -0
- package/dist/types/Card/subComponents.d.ts.map +1 -0
- package/dist/types/Card/utils.d.ts +16 -0
- package/dist/types/Card/utils.d.ts.map +1 -0
- package/dist/types/CharacterCounter/CharacterCounter.d.ts +1 -1
- package/dist/types/ChartLegend/ChartLegend.d.ts +2 -1
- package/dist/types/ChartLegend/ChartLegend.d.ts.map +1 -1
- package/dist/types/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/Checkbox/styles.d.ts +7 -5
- package/dist/types/Checkbox/styles.d.ts.map +1 -1
- package/dist/types/Collapsible/Collapsible.d.ts +4 -3
- package/dist/types/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/types/Collapsible/styles.d.ts +1 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts +2 -1
- package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts +2 -1
- package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/common.d.ts +2 -1
- package/dist/types/DatePicker/common.d.ts.map +1 -1
- package/dist/types/DatePicker/styles.d.ts +1 -1
- package/dist/types/Drawer/Drawer.d.ts +3 -3
- package/dist/types/Drawer/Drawer.d.ts.map +1 -1
- package/dist/types/Drawer/SlideTransition.d.ts +1 -1
- package/dist/types/Drawer/SlideTransition.d.ts.map +1 -1
- package/dist/types/Drawer/styles.d.ts +1 -1
- package/dist/types/Drawer/styles.d.ts.map +1 -1
- package/dist/types/EmptyState/EmptyState.d.ts +2 -1
- package/dist/types/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/types/EnumIconNames.d.ts +1 -1
- package/dist/types/EnumIconNames.d.ts.map +1 -1
- package/dist/types/Fieldset/Fieldset.d.ts +4 -3
- package/dist/types/Fieldset/Fieldset.d.ts.map +1 -1
- package/dist/types/Fieldset/styles.d.ts +1 -1
- package/dist/types/Fieldset/styles.d.ts.map +1 -1
- package/dist/types/FormField/FormField.d.ts +2 -1
- package/dist/types/FormField/FormField.d.ts.map +1 -1
- package/dist/types/Icon/Icon.d.ts +4 -2
- package/dist/types/Icon/Icon.d.ts.map +1 -1
- package/dist/types/Icon/IconTypes.d.ts +3 -2
- package/dist/types/Icon/IconTypes.d.ts.map +1 -1
- package/dist/types/Image/Image.d.ts +1 -1
- package/dist/types/Indicator/Indicator.d.ts +1 -1
- package/dist/types/Input/Input.d.ts +2 -2
- package/dist/types/KeyboardKey/KeyboardKey.d.ts +1 -1
- package/dist/types/Label/Label.d.ts +1 -1
- package/dist/types/Link/Link.d.ts +2 -1
- package/dist/types/Link/Link.d.ts.map +1 -1
- package/dist/types/Link/styles.d.ts +2 -1
- package/dist/types/Link/styles.d.ts.map +1 -1
- package/dist/types/Listbox/Listbox.d.ts +11 -10
- package/dist/types/Listbox/Listbox.d.ts.map +1 -1
- package/dist/types/Listbox/ListboxTypes.d.ts +1 -1
- package/dist/types/Listbox/ListboxTypes.d.ts.map +1 -1
- package/dist/types/Loader/Loader.d.ts +1 -1
- package/dist/types/Loader/styles.d.ts.map +1 -1
- package/dist/types/LoaderButton/LoaderButton.d.ts +2 -1
- package/dist/types/LoaderButton/LoaderButton.d.ts.map +1 -1
- package/dist/types/Menu/Menu.d.ts +14 -13
- package/dist/types/Menu/Menu.d.ts.map +1 -1
- package/dist/types/Menu/MenuTypes.d.ts +1 -1
- package/dist/types/Menu/MenuTypes.d.ts.map +1 -1
- package/dist/types/Menu/styles.d.ts +2 -2
- package/dist/types/Menu/styles.d.ts.map +1 -1
- package/dist/types/Menu/utils/descendants.d.ts +1 -1
- package/dist/types/Menu/utils/descendants.d.ts.map +1 -1
- package/dist/types/Message/Message.d.ts +8 -8
- package/dist/types/Message/styles.d.ts +5 -5
- package/dist/types/Message/styles.d.ts.map +1 -1
- package/dist/types/Modal/Modal.d.ts +5 -5
- package/dist/types/Modal/styles.d.ts +5 -5
- package/dist/types/Modal/styles.d.ts.map +1 -1
- package/dist/types/Numeral/Numeral.d.ts +2 -1
- package/dist/types/Numeral/Numeral.d.ts.map +1 -1
- package/dist/types/Numeral/styles.d.ts +3 -2
- package/dist/types/Numeral/styles.d.ts.map +1 -1
- package/dist/types/OverflowList/OverflowList.d.ts +2 -1
- package/dist/types/OverflowList/OverflowList.d.ts.map +1 -1
- package/dist/types/OverflowList/styles.d.ts +2 -1
- package/dist/types/OverflowList/styles.d.ts.map +1 -1
- package/dist/types/PartnerLogo/PartnerLogo.d.ts +2 -1
- package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +1 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +12 -3
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
- package/dist/types/PartnerLogo/index.d.ts +0 -1
- package/dist/types/PartnerLogo/index.d.ts.map +1 -1
- package/dist/types/Popout/Popout.d.ts +3 -2
- package/dist/types/Popout/Popout.d.ts.map +1 -1
- package/dist/types/Popout/PopoutTypes.d.ts +1 -1
- package/dist/types/Popout/PopoutTypes.d.ts.map +1 -1
- package/dist/types/Radio/Radio.d.ts +1 -1
- package/dist/types/Radio/styles.d.ts +2 -1
- package/dist/types/Radio/styles.d.ts.map +1 -1
- package/dist/types/SegmentedControl/SegmentedControl.d.ts +3 -2
- package/dist/types/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/types/SegmentedControl/styles.d.ts +3 -3
- package/dist/types/SegmentedControl/styles.d.ts.map +1 -1
- package/dist/types/Select/Select.d.ts +1 -1
- package/dist/types/Select/Select.d.ts.map +1 -1
- package/dist/types/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/types/SpotIllustration/SpotIllustration.d.ts +2 -1
- package/dist/types/SpotIllustration/SpotIllustration.d.ts.map +1 -1
- package/dist/types/Stack/Stack.d.ts +2 -1
- package/dist/types/Stack/Stack.d.ts.map +1 -1
- package/dist/types/Switch/Switch.d.ts +1 -1
- package/dist/types/Table/Table.d.ts +8 -7
- package/dist/types/Table/Table.d.ts.map +1 -1
- package/dist/types/TableCell/TableCell.d.ts +1 -1
- package/dist/types/TableCell/TableCellTypes.d.ts +1 -1
- package/dist/types/TableCell/TableCellTypes.d.ts.map +1 -1
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts +2 -2
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +1 -1
- package/dist/types/TableRowAccordion/TableRowAccordion.d.ts +1 -1
- package/dist/types/TableRowAccordion/TableRowAccordion.d.ts.map +1 -1
- package/dist/types/Tabs/Tabs.d.ts +2 -2
- package/dist/types/Tabs/styles.d.ts +2 -1
- package/dist/types/Tabs/styles.d.ts.map +1 -1
- package/dist/types/Text/Text.d.ts +2 -1
- package/dist/types/Text/Text.d.ts.map +1 -1
- package/dist/types/Textarea/Textarea.d.ts +1 -1
- package/dist/types/ThemeProvider/index.d.ts +1 -1
- package/dist/types/ThemeProvider/index.d.ts.map +1 -1
- package/dist/types/Toast/Toast.d.ts +2 -1
- package/dist/types/Toast/Toast.d.ts.map +1 -1
- package/dist/types/Toast/styles.d.ts +3 -3
- package/dist/types/Toast/styles.d.ts.map +1 -1
- package/dist/types/ToggleHint/ToggleHint.d.ts +2 -2
- package/dist/types/ToggleHint/ToggleHint.d.ts.map +1 -1
- package/dist/types/Token/Token.d.ts +2 -1
- package/dist/types/Token/Token.d.ts.map +1 -1
- package/dist/types/TokenInput/TokenInput.d.ts +1 -1
- package/dist/types/TokenInput/TokenInput.d.ts.map +1 -1
- package/dist/types/Tooltip/Tooltip.d.ts +2 -1
- package/dist/types/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/Tooltip/TooltipTypes.d.ts +1 -1
- package/dist/types/Tooltip/TooltipTypes.d.ts.map +1 -1
- package/dist/types/Tooltip/styles.d.ts +1 -1
- package/dist/types/Tooltip/styles.d.ts.map +1 -1
- package/dist/types/systemProps/index.d.ts +3 -79
- package/dist/types/systemProps/index.d.ts.map +1 -1
- package/dist/types/types/styled-components.d.ts +3 -3
- package/dist/types/types/styled-components.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/innerText.d.ts.map +1 -1
- package/icons/advocacy-outline.svg +2 -2
- package/icons/comment-ai-outline.svg +2 -2
- package/icons/comment-ai.svg +1 -1
- package/icons/dropbox.svg +2 -2
- package/icons/facebook-groups.svg +2 -2
- package/icons/facebook.svg +2 -2
- package/icons/feedly.svg +2 -2
- package/icons/flat-negative-sentiment-outline.svg +1 -1
- package/icons/flat-neutral-sentiment-outline.svg +1 -1
- package/icons/flat-positive-sentiment-outline.svg +1 -1
- package/icons/glassdoor.svg +2 -2
- package/icons/hand-sparkle-outline.svg +6 -0
- package/icons/hand-sparkle.svg +3 -0
- package/icons/instagram.svg +2 -2
- package/icons/linkedin.svg +2 -2
- package/icons/messenger.svg +2 -2
- package/icons/pinterest.svg +2 -2
- package/icons/reddit-alien.svg +2 -2
- package/icons/reddit.svg +2 -2
- package/icons/reels-outline.svg +1 -1
- package/icons/salesforce.svg +2 -2
- package/icons/send-again-outline.svg +1 -1
- package/icons/send-again.svg +1 -1
- package/icons/tasks-check.svg +1 -1
- package/icons/tumblr.svg +2 -2
- package/icons/twitter.svg +2 -2
- package/icons/youtube.svg +2 -2
- package/icons/zendesk.svg +2 -2
- package/lib/Badge/Badge.js +2 -1
- package/lib/Banner/Banner.js +2 -1
- package/lib/Breadcrumb/Breadcrumb.js +2 -1
- package/lib/Card/Card.js +73 -28
- package/lib/Card/CardTypes.flow.js +1 -0
- package/lib/Card/index.flow.js +2 -1
- package/lib/Card/styles.js +96 -20
- package/lib/Card/subComponents.js +37 -0
- package/lib/Card/utils.js +46 -0
- package/lib/Checkbox/styles.js +6 -5
- package/lib/DatePicker/common.js +2 -1
- package/lib/Drawer/Drawer.js +9 -4
- package/lib/Icon/Icon.js +33 -10
- package/lib/IconViewBoxes.js +2 -0
- package/lib/IllustrationViewBoxes.d.js +1 -0
- package/lib/Indicator/Indicator.js +2 -1
- package/lib/Input/Input.js +2 -1
- package/lib/Listbox/Listbox.js +2 -1
- package/lib/Loader/styles.js +17 -12
- package/lib/LogoViewBoxes.d.js +1 -0
- package/lib/PartnerLogo/PartnerLogo.js +14 -13
- package/lib/PartnerLogo/PartnerLogoTypes.js +8 -1
- package/lib/PartnerLogo/index.js +1 -2
- package/lib/PartnerLogo/styles.js +1 -1
- package/lib/Select/Select.js +2 -1
- package/lib/Switch/Switch.js +1 -0
- package/lib/TableHeaderCell/TableHeaderCell.js +2 -1
- package/lib/TableRowAccordion/TableRowAccordion.js +6 -2
- package/lib/Toast/Toast.js +40 -34
- package/lib/ToggleHint/ToggleHint.js +4 -2
- package/lib/Token/Token.js +16 -2
- package/lib/Token/styles.js +1 -1
- package/lib/TokenInput/TokenInput.js +3 -1
- package/lib/index.flow.js +1 -1
- package/lib/systemProps/index.flow.js +14 -0
- package/lib/systemProps/index.js +1 -45
- package/lib/systemProps/systemProps.flow.js +14 -0
- package/lib/themes/dark/theme.js +1 -1
- package/lib/themes/light/theme.js +1 -1
- package/lib/types/shared.flow.js +1 -0
- package/lib/utils/index.js +22 -1
- package/package.json +16 -12
- package/__flow__/systemProps/index.js +0 -16
- package/dist/types/PartnerLogo/TypePartnerNames.d.ts +0 -2
- package/dist/types/PartnerLogo/TypePartnerNames.d.ts.map +0 -1
- package/lib/systemProps/systemProps.js +0 -14
- /package/commonjs/{PartnerLogo/TypePartnerNames.js → IconViewBoxes.d.js} +0 -0
- /package/commonjs/systemProps/{background.js → background.flow.js} +0 -0
- /package/commonjs/systemProps/{border.js → border.flow.js} +0 -0
- /package/commonjs/systemProps/{color.js → color.flow.js} +0 -0
- /package/commonjs/systemProps/{custom.js → custom.flow.js} +0 -0
- /package/commonjs/systemProps/{flexbox.js → flexbox.flow.js} +0 -0
- /package/commonjs/systemProps/{grid.js → grid.flow.js} +0 -0
- /package/commonjs/systemProps/{layout.js → layout.flow.js} +0 -0
- /package/commonjs/systemProps/{position.js → position.flow.js} +0 -0
- /package/commonjs/systemProps/{shadow.js → shadow.flow.js} +0 -0
- /package/commonjs/systemProps/{space.js → space.flow.js} +0 -0
- /package/commonjs/systemProps/{typography.js → typography.flow.js} +0 -0
- /package/commonjs/systemProps/{variant.js → variant.flow.js} +0 -0
- /package/lib/{PartnerLogo/TypePartnerNames.js → IconViewBoxes.d.js} +0 -0
- /package/lib/systemProps/{background.js → background.flow.js} +0 -0
- /package/lib/systemProps/{border.js → border.flow.js} +0 -0
- /package/lib/systemProps/{color.js → color.flow.js} +0 -0
- /package/lib/systemProps/{custom.js → custom.flow.js} +0 -0
- /package/lib/systemProps/{flexbox.js → flexbox.flow.js} +0 -0
- /package/lib/systemProps/{grid.js → grid.flow.js} +0 -0
- /package/lib/systemProps/{layout.js → layout.flow.js} +0 -0
- /package/lib/systemProps/{position.js → position.flow.js} +0 -0
- /package/lib/systemProps/{shadow.js → shadow.flow.js} +0 -0
- /package/lib/systemProps/{space.js → space.flow.js} +0 -0
- /package/lib/systemProps/{typography.js → typography.flow.js} +0 -0
- /package/lib/systemProps/{variant.js → variant.flow.js} +0 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _types = require("./types.flow");
|
|
7
|
+
Object.keys(_types).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _types[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _background = require("./background.flow");
|
|
18
|
+
Object.keys(_background).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _background[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _background[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _border = require("./border.flow");
|
|
29
|
+
Object.keys(_border).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _border[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _border[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _color = require("./color.flow");
|
|
40
|
+
Object.keys(_color).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _color[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _color[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var _custom = require("./custom.flow");
|
|
51
|
+
Object.keys(_custom).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _custom[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _custom[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
var _flexbox = require("./flexbox.flow");
|
|
62
|
+
Object.keys(_flexbox).forEach(function (key) {
|
|
63
|
+
if (key === "default" || key === "__esModule") return;
|
|
64
|
+
if (key in exports && exports[key] === _flexbox[key]) return;
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function get() {
|
|
68
|
+
return _flexbox[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
var _grid = require("./grid.flow");
|
|
73
|
+
Object.keys(_grid).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _grid[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function get() {
|
|
79
|
+
return _grid[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
var _layout = require("./layout.flow");
|
|
84
|
+
Object.keys(_layout).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _layout[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return _layout[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
var _position = require("./position.flow");
|
|
95
|
+
Object.keys(_position).forEach(function (key) {
|
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (key in exports && exports[key] === _position[key]) return;
|
|
98
|
+
Object.defineProperty(exports, key, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function get() {
|
|
101
|
+
return _position[key];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
var _shadow = require("./shadow.flow");
|
|
106
|
+
Object.keys(_shadow).forEach(function (key) {
|
|
107
|
+
if (key === "default" || key === "__esModule") return;
|
|
108
|
+
if (key in exports && exports[key] === _shadow[key]) return;
|
|
109
|
+
Object.defineProperty(exports, key, {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function get() {
|
|
112
|
+
return _shadow[key];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
var _space = require("./space.flow");
|
|
117
|
+
Object.keys(_space).forEach(function (key) {
|
|
118
|
+
if (key === "default" || key === "__esModule") return;
|
|
119
|
+
if (key in exports && exports[key] === _space[key]) return;
|
|
120
|
+
Object.defineProperty(exports, key, {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _space[key];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
var _systemProps = require("./systemProps.flow");
|
|
128
|
+
Object.keys(_systemProps).forEach(function (key) {
|
|
129
|
+
if (key === "default" || key === "__esModule") return;
|
|
130
|
+
if (key in exports && exports[key] === _systemProps[key]) return;
|
|
131
|
+
Object.defineProperty(exports, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function get() {
|
|
134
|
+
return _systemProps[key];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
var _typography = require("./typography.flow");
|
|
139
|
+
Object.keys(_typography).forEach(function (key) {
|
|
140
|
+
if (key === "default" || key === "__esModule") return;
|
|
141
|
+
if (key in exports && exports[key] === _typography[key]) return;
|
|
142
|
+
Object.defineProperty(exports, key, {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function get() {
|
|
145
|
+
return _typography[key];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
var _variant = require("./variant.flow");
|
|
150
|
+
Object.keys(_variant).forEach(function (key) {
|
|
151
|
+
if (key === "default" || key === "__esModule") return;
|
|
152
|
+
if (key in exports && exports[key] === _variant[key]) return;
|
|
153
|
+
Object.defineProperty(exports, key, {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function get() {
|
|
156
|
+
return _variant[key];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
});
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.systemProps = void 0;
|
|
7
7
|
var _styledSystem = require("styled-system");
|
|
8
|
-
var _background = require("./background");
|
|
9
|
-
var _border = require("./border");
|
|
10
|
-
var _color = require("./color");
|
|
11
|
-
var _custom = require("./custom");
|
|
12
|
-
var _flexbox = require("./flexbox");
|
|
13
|
-
var _grid = require("./grid");
|
|
14
|
-
var _layout = require("./layout");
|
|
15
|
-
var _position = require("./position");
|
|
16
|
-
var _shadow = require("./shadow");
|
|
17
|
-
var _space = require("./space");
|
|
18
|
-
var _typography = require("./typography");
|
|
19
|
-
var _variant = require("./variant");
|
|
8
|
+
var _background = require("./background.flow");
|
|
9
|
+
var _border = require("./border.flow");
|
|
10
|
+
var _color = require("./color.flow");
|
|
11
|
+
var _custom = require("./custom.flow");
|
|
12
|
+
var _flexbox = require("./flexbox.flow");
|
|
13
|
+
var _grid = require("./grid.flow");
|
|
14
|
+
var _layout = require("./layout.flow");
|
|
15
|
+
var _position = require("./position.flow");
|
|
16
|
+
var _shadow = require("./shadow.flow");
|
|
17
|
+
var _space = require("./space.flow");
|
|
18
|
+
var _typography = require("./typography.flow");
|
|
19
|
+
var _variant = require("./variant.flow");
|
|
20
20
|
var systemProps = (0, _styledSystem.compose)(_custom.customSystemProps, _variant.variantSystemProps, _background.backgroundSystemProps, _border.borderSystemProps, _color.colorSystemProps, _flexbox.flexboxSystemProps, _grid.gridSystemProps, _layout.layoutSystemProps, _position.positionSystemProps, _shadow.shadowSystemProps, _space.spaceSystemProps, _typography.typographySystemProps);
|
|
21
21
|
exports.systemProps = systemProps;
|
|
@@ -179,7 +179,7 @@ var colors = _objectSpread(_objectSpread({}, _theme.default.colors), {}, {
|
|
|
179
179
|
subtext: _seedsColor.default.COLOR_NEUTRAL_300,
|
|
180
180
|
body: _seedsColor.default.COLOR_NEUTRAL_100,
|
|
181
181
|
inverse: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
182
|
-
error:
|
|
182
|
+
error: _decorativePalettes.red.foreground,
|
|
183
183
|
background: {
|
|
184
184
|
highlight: _seedsColor.default.COLOR_YELLOW_900,
|
|
185
185
|
selection: _seedsColor.default.COLOR_BLUE_800
|
|
@@ -182,7 +182,7 @@ var colors = _objectSpread(_objectSpread({
|
|
|
182
182
|
subtext: _seedsColor.default.COLOR_NEUTRAL_700,
|
|
183
183
|
body: _seedsColor.default.COLOR_NEUTRAL_800,
|
|
184
184
|
inverse: _seedsColor.default.COLOR_NEUTRAL_0,
|
|
185
|
-
error:
|
|
185
|
+
error: _decorativePalettes.red.foreground,
|
|
186
186
|
background: {
|
|
187
187
|
highlight: _seedsColor.default.COLOR_YELLOW_200,
|
|
188
188
|
selection: _seedsColor.default.COLOR_BLUE_300
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
var React = _interopRequireWildcard(require("react"));
|
|
5
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
6
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/commonjs/utils/index.js
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.assertIsElement = assertIsElement;
|
|
7
|
+
exports.assertIsNode = assertIsNode;
|
|
8
|
+
exports.canUseDOM = void 0;
|
|
9
|
+
exports.includes = includes;
|
|
10
|
+
exports.mergeRefs = void 0;
|
|
7
11
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
8
12
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
9
13
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
@@ -37,4 +41,25 @@ var mergeRefs = function mergeRefs(refs) {
|
|
|
37
41
|
}
|
|
38
42
|
};
|
|
39
43
|
};
|
|
40
|
-
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Type safe includes with narrowing
|
|
47
|
+
* https://fettblog.eu/typescript-array-includes/
|
|
48
|
+
*/
|
|
49
|
+
exports.mergeRefs = mergeRefs;
|
|
50
|
+
function includes(coll, el) {
|
|
51
|
+
return coll.includes(el);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// https://stackoverflow.com/questions/71193818/react-onclick-argument-of-type-eventtarget-is-not-assignable-to-parameter-of-t
|
|
55
|
+
function assertIsNode(e) {
|
|
56
|
+
if (!e || !('nodeType' in e)) {
|
|
57
|
+
throw new Error("Node expected");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function assertIsElement(e) {
|
|
61
|
+
assertIsNode(e);
|
|
62
|
+
if (e.nodeType !== 1) {
|
|
63
|
+
throw new Error("Element expected");
|
|
64
|
+
}
|
|
65
|
+
}
|