@spothero/ui 22.5.3 → 23.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/dist/components/Accordion/Accordion.stories.js +101 -0
- package/dist/components/Accordion/AccordionActionButton.js +32 -0
- package/dist/components/Accordion/index.js +45 -0
- package/dist/components/Accordion/styles/index.js +77 -0
- package/dist/components/Alert/Alert.js +91 -0
- package/dist/components/Alert/Alert.stories.js +64 -0
- package/dist/components/Alert/index.js +14 -0
- package/dist/components/AutoSuggestSelect/AutoSuggestSelect.js +169 -0
- package/dist/components/AutoSuggestSelect/AutoSuggestSelect.stories.js +23 -0
- package/dist/components/AutoSuggestSelect/index.js +14 -0
- package/dist/components/Badge/Badge.js +13 -0
- package/dist/components/Badge/Badge.stories.js +32 -0
- package/dist/components/Badge/styles/index.js +33 -0
- package/dist/components/Button/Button.js +54 -0
- package/dist/components/Button/Button.spec.js +25 -0
- package/dist/components/Button/Button.styles.js +166 -0
- package/dist/components/Button/button-props.js +73 -0
- package/dist/components/Button/index.js +21 -0
- package/dist/components/Button/stories/button.js +47 -0
- package/dist/components/Button/stories/index.stories.js +97 -0
- package/dist/components/Button/stories/overview.js +77 -0
- package/dist/components/Card/Card.js +28 -0
- package/dist/components/Card/Card.stories.js +33 -0
- package/dist/components/Checkbox/Checkbox.js +44 -0
- package/dist/components/Checkbox/Checkbox.stories.js +69 -0
- package/dist/components/Checkbox/index.js +14 -0
- package/dist/components/Checkbox/styles/index.js +90 -0
- package/dist/components/Container/Container.js +23 -0
- package/dist/components/Container/Container.stories.js +53 -0
- package/dist/components/Container/Container.styles.js +17 -0
- package/dist/components/CreatableSelect/CreatableSelect.js +148 -0
- package/dist/components/CreatableSelect/CreatableSelect.stories.js +69 -0
- package/dist/components/CreatableSelect/index.js +14 -0
- package/dist/components/Divider/Divider.js +34 -0
- package/dist/components/Divider/Divider.stories.js +40 -0
- package/dist/components/Divider/Divider.styles.js +21 -0
- package/dist/components/Drawer/Drawer.js +29 -0
- package/dist/components/Drawer/Drawer.stories.js +50 -0
- package/dist/components/Drawer/index.js +57 -0
- package/dist/components/Drawer/styles/index.js +108 -0
- package/dist/components/FormControl/FormControl.js +74 -0
- package/dist/components/Grid/Grid.js +35 -0
- package/dist/components/Grid/Grid.stories.js +117 -0
- package/dist/components/Grid/Grid.styles.js +18 -0
- package/dist/components/Grid/GridItem.js +23 -0
- package/dist/components/Grid/GridItem.styles.js +14 -0
- package/dist/components/Grid/index.js +21 -0
- package/dist/components/Heading/Heading.js +34 -0
- package/dist/components/Heading/Heading.stories.js +46 -0
- package/dist/components/Heading/Heading.styles.js +69 -0
- package/dist/components/Icon/Icon.js +13 -0
- package/dist/components/Icon/Icon.stories.js +40 -0
- package/dist/components/Image/Image.js +84 -0
- package/dist/components/Image/Image.spec.js +77 -0
- package/dist/components/Image/Image.stories.js +80 -0
- package/dist/components/Input/Input.js +49 -0
- package/dist/components/Input/Input.stories.js +63 -0
- package/dist/components/Input/index.js +14 -0
- package/dist/components/Input/styles/index.js +65 -0
- package/dist/components/Link/Link.js +13 -0
- package/dist/components/Link/Link.stories.js +52 -0
- package/dist/components/Link/Link.styles.js +45 -0
- package/dist/components/List/List.js +69 -0
- package/dist/components/List/List.stories.js +92 -0
- package/dist/components/List/index.js +21 -0
- package/dist/components/List/styles/index.js +17 -0
- package/dist/components/List/styles/item.styles.js +11 -0
- package/dist/components/Loader/Loader.js +53 -0
- package/dist/components/Loader/Loader.stories.js +124 -0
- package/dist/components/Menu/Menu.js +17 -0
- package/dist/components/Menu/Menu.stories.js +169 -0
- package/dist/components/Menu/Menu.styles.js +174 -0
- package/dist/components/Menu/index.js +57 -0
- package/dist/components/Modal/Modal.js +46 -0
- package/dist/components/Modal/Modal.stories.js +225 -0
- package/dist/components/Modal/index.js +33 -0
- package/dist/components/Modal/styles/body.js +39 -0
- package/dist/components/Modal/styles/closeButton.js +25 -0
- package/dist/components/Modal/styles/dialog.js +23 -0
- package/dist/components/Modal/styles/dialogContainer.js +21 -0
- package/dist/components/Modal/styles/footer.js +12 -0
- package/dist/components/Modal/styles/header.js +18 -0
- package/dist/components/Modal/styles/index.js +56 -0
- package/dist/components/Modal/styles/overlay.js +11 -0
- package/dist/components/Popover/Popover.js +34 -0
- package/dist/components/Popover/Popover.stories.js +87 -0
- package/dist/components/Popover/PopoverArrow.js +23 -0
- package/dist/components/Popover/PopoverCloseButton.js +23 -0
- package/dist/components/Popover/PopoverContent.js +42 -0
- package/dist/components/Popover/index.js +41 -0
- package/dist/components/Popover/styles/index.js +27 -0
- package/dist/components/Popover/styles/popover-arrow.js +14 -0
- package/dist/components/Popover/styles/popover-body.js +13 -0
- package/dist/components/Popover/styles/popover-close-button.js +40 -0
- package/dist/components/Popover/styles/popover-content.js +30 -0
- package/dist/components/Popover/styles/popover-header.js +12 -0
- package/dist/components/Popover/styles/popper.js +11 -0
- package/dist/components/Progress/Progress.js +42 -0
- package/dist/components/Progress/Progress.stories.js +90 -0
- package/dist/components/Progress/Progress.styles.js +107 -0
- package/dist/components/Radio/Radio.js +43 -0
- package/dist/components/Radio/Radio.stories.js +137 -0
- package/dist/components/Radio/RadioGroup.js +52 -0
- package/dist/components/Radio/index.js +21 -0
- package/dist/components/Radio/styles/index.js +119 -0
- package/dist/components/RefreshedInput/Button/Button.js +72 -0
- package/dist/components/RefreshedInput/Button/Button.stories.js +84 -0
- package/dist/components/RefreshedInput/Button/index.js +14 -0
- package/dist/components/RefreshedInput/Button/styles/index.js +34 -0
- package/dist/components/RefreshedInput/FormControl/index.js +175 -0
- package/dist/components/RefreshedInput/Input/Input.js +67 -0
- package/dist/components/RefreshedInput/Input/Input.stories.js +79 -0
- package/dist/components/RefreshedInput/Input/index.js +14 -0
- package/dist/components/RefreshedInput/Input/styles/index.js +33 -0
- package/dist/components/RefreshedInput/Select/Select.js +70 -0
- package/dist/components/RefreshedInput/Select/Select.stories.js +85 -0
- package/dist/components/RefreshedInput/Select/index.js +14 -0
- package/dist/components/RefreshedInput/Select/styles/index.js +34 -0
- package/dist/components/RefreshedInput/index.js +35 -0
- package/dist/components/RefreshedInput/storyAid/index.js +22 -0
- package/dist/components/Select/Select.js +55 -0
- package/dist/components/Select/Select.stories.js +67 -0
- package/dist/components/Select/index.js +14 -0
- package/dist/components/Select/styles/index.js +51 -0
- package/dist/components/SelectionCard/SelectionCard.js +67 -0
- package/dist/components/SelectionCard/SelectionCard.stories.js +91 -0
- package/dist/components/SelectionCard/index.js +14 -0
- package/dist/components/Skeleton/Skeleton.stories.js +31 -0
- package/dist/components/Skeleton/Skeleton.styles.js +10 -0
- package/dist/components/Skeleton/index.js +25 -0
- package/dist/components/Spinner/Spinner.js +34 -0
- package/dist/components/Spinner/Spinner.stories.js +109 -0
- package/dist/components/Spinner/Spinner.styles.js +67 -0
- package/dist/components/Switch/Switch.js +45 -0
- package/dist/components/Switch/Switch.stories.js +80 -0
- package/dist/components/Switch/index.js +14 -0
- package/dist/components/Switch/styles/index.js +42 -0
- package/dist/components/Table/Table.js +13 -0
- package/dist/components/Table/Table.stories.js +80 -0
- package/dist/components/Table/Table.styles.js +77 -0
- package/dist/components/Table/index.js +63 -0
- package/dist/components/Tabs/Tabs.js +35 -0
- package/dist/components/Tabs/Tabs.stories.js +44 -0
- package/dist/components/Tabs/combineSizeWithVariant.js +35 -0
- package/dist/components/Tabs/index.js +39 -0
- package/dist/components/Tabs/styles/index.js +71 -0
- package/dist/components/Text/Text.js +35 -0
- package/dist/components/Text/Text.stories.js +47 -0
- package/dist/components/Text/Text.styles.js +53 -0
- package/dist/components/Text/combineAsWithVariant.js +103 -0
- package/dist/components/Text/options.js +9 -0
- package/dist/components/Textarea/Textarea.js +49 -0
- package/dist/components/Textarea/Textarea.stories.js +62 -0
- package/dist/components/Textarea/index.js +14 -0
- package/dist/components/Textarea/styles/index.js +65 -0
- package/dist/components/ThemeProvider/ThemeProvider.js +47 -0
- package/dist/components/ThemeProvider/ThemeProvider.stories.js +52 -0
- package/dist/components/Toast/Toast.stories.js +84 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js +65 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.js +62 -0
- package/dist/components/ToggleButtonGroup/index.js +14 -0
- package/dist/components/ToggleButtonGroup/styles/index.js +48 -0
- package/dist/components/index.js +792 -0
- package/dist/components/styles.js +189 -0
- package/dist/theme/base/breakpoints.js +24 -0
- package/dist/theme/base/colors.js +144 -0
- package/dist/theme/base/index.js +80 -0
- package/dist/theme/base/notifications.js +197 -0
- package/dist/theme/base/shadows.js +16 -0
- package/dist/theme/base/sizes.js +89 -0
- package/dist/theme/base/typography.js +39 -0
- package/dist/theme/base/zindices.js +34 -0
- package/dist/theme/global.js +39 -0
- package/dist/theme/index.js +45 -0
- package/dist/utils/Spaces.js +21 -0
- package/package.json +34 -33
- package/dist/AccordionActionButton.d.ts +0 -2
- package/dist/index.cjs.js +0 -53728
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.esm.js +0 -53575
- package/dist/index.esm.js.map +0 -1
- package/dist/styles/index.d.ts +0 -68
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
_Object$defineProperty(exports, "Accordion", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _styles2["default"];
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
_Object$defineProperty(exports, "Badge", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return _styles14["default"];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
_Object$defineProperty(exports, "Button", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _Button["default"];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
_Object$defineProperty(exports, "ButtonRefreshed", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _styles11["default"];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
_Object$defineProperty(exports, "Checkbox", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _styles5["default"];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
_Object$defineProperty(exports, "Divider", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _Divider["default"];
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
_Object$defineProperty(exports, "Drawer", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _styles15["default"];
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
_Object$defineProperty(exports, "GridItem", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function get() {
|
|
53
|
+
return _GridItem["default"];
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
_Object$defineProperty(exports, "Heading", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function get() {
|
|
59
|
+
return _Heading["default"];
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
_Object$defineProperty(exports, "Input", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function get() {
|
|
65
|
+
return _styles8["default"];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
_Object$defineProperty(exports, "InputRefreshed", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function get() {
|
|
71
|
+
return _styles9["default"];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
_Object$defineProperty(exports, "Link", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function get() {
|
|
77
|
+
return _Link["default"];
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
_Object$defineProperty(exports, "List", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function get() {
|
|
83
|
+
return _styles["default"];
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
_Object$defineProperty(exports, "Menu", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function get() {
|
|
89
|
+
return _Menu["default"];
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
_Object$defineProperty(exports, "Modal", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function get() {
|
|
95
|
+
return _styles12["default"];
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
_Object$defineProperty(exports, "Popover", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function get() {
|
|
101
|
+
return _styles7["default"];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
_Object$defineProperty(exports, "Progress", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function get() {
|
|
107
|
+
return _Progress["default"];
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
_Object$defineProperty(exports, "Radio", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function get() {
|
|
113
|
+
return _styles13["default"];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
_Object$defineProperty(exports, "Select", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function get() {
|
|
119
|
+
return _styles4["default"];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
_Object$defineProperty(exports, "SelectRefreshed", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function get() {
|
|
125
|
+
return _styles10["default"];
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
_Object$defineProperty(exports, "Skeleton", {
|
|
129
|
+
enumerable: true,
|
|
130
|
+
get: function get() {
|
|
131
|
+
return _Skeleton["default"];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
_Object$defineProperty(exports, "Spinner", {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function get() {
|
|
137
|
+
return _Spinner["default"];
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
_Object$defineProperty(exports, "Switch", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function get() {
|
|
143
|
+
return _styles6["default"];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
_Object$defineProperty(exports, "Table", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
get: function get() {
|
|
149
|
+
return _Table["default"];
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
_Object$defineProperty(exports, "Tabs", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function get() {
|
|
155
|
+
return _styles3["default"];
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
_Object$defineProperty(exports, "Text", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function get() {
|
|
161
|
+
return _Text["default"];
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
var _styles = _interopRequireDefault(require("./List/styles"));
|
|
165
|
+
var _Table = _interopRequireDefault(require("./Table/Table.styles"));
|
|
166
|
+
var _Text = _interopRequireDefault(require("./Text/Text.styles"));
|
|
167
|
+
var _Link = _interopRequireDefault(require("./Link/Link.styles"));
|
|
168
|
+
var _styles2 = _interopRequireDefault(require("./Accordion/styles"));
|
|
169
|
+
var _Button = _interopRequireDefault(require("./Button/Button.styles"));
|
|
170
|
+
var _GridItem = _interopRequireDefault(require("./Grid/GridItem.styles"));
|
|
171
|
+
var _Spinner = _interopRequireDefault(require("./Spinner/Spinner.styles"));
|
|
172
|
+
var _Heading = _interopRequireDefault(require("./Heading/Heading.styles"));
|
|
173
|
+
var _Divider = _interopRequireDefault(require("./Divider/Divider.styles"));
|
|
174
|
+
var _styles3 = _interopRequireDefault(require("./Tabs/styles"));
|
|
175
|
+
var _styles4 = _interopRequireDefault(require("./Select/styles"));
|
|
176
|
+
var _styles5 = _interopRequireDefault(require("./Checkbox/styles"));
|
|
177
|
+
var _styles6 = _interopRequireDefault(require("./Switch/styles"));
|
|
178
|
+
var _styles7 = _interopRequireDefault(require("./Popover/styles"));
|
|
179
|
+
var _styles8 = _interopRequireDefault(require("./Input/styles"));
|
|
180
|
+
var _styles9 = _interopRequireDefault(require("./RefreshedInput/Input/styles"));
|
|
181
|
+
var _styles10 = _interopRequireDefault(require("./RefreshedInput/Select/styles"));
|
|
182
|
+
var _styles11 = _interopRequireDefault(require("./RefreshedInput/Button/styles"));
|
|
183
|
+
var _styles12 = _interopRequireDefault(require("./Modal/styles"));
|
|
184
|
+
var _styles13 = _interopRequireDefault(require("./Radio/styles"));
|
|
185
|
+
var _Skeleton = _interopRequireDefault(require("./Skeleton/Skeleton.styles"));
|
|
186
|
+
var _styles14 = _interopRequireDefault(require("./Badge/styles"));
|
|
187
|
+
var _styles15 = _interopRequireDefault(require("./Drawer/styles"));
|
|
188
|
+
var _Progress = _interopRequireDefault(require("./Progress/Progress.styles"));
|
|
189
|
+
var _Menu = _interopRequireDefault(require("./Menu/Menu.styles"));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _themeTools = require("@chakra-ui/theme-tools");
|
|
9
|
+
/**
|
|
10
|
+
* The "base" breakpoint is Chakra's default non-responsive value (from 0 upwards).
|
|
11
|
+
* While we don't explicitly enable a "mobile" breakpoint, we can consider "base" and
|
|
12
|
+
* "mobile" the same for all intents and purposes for mobile-first responsive styling.
|
|
13
|
+
* @see https://chakra-ui.com/docs/features/responsive-styles#customizing-breakpoints
|
|
14
|
+
*/
|
|
15
|
+
var breakpoints = (0, _themeTools.createBreakpoints)({
|
|
16
|
+
mobileXL: '30rem',
|
|
17
|
+
// 480px
|
|
18
|
+
tablet: '48rem',
|
|
19
|
+
// 768px
|
|
20
|
+
desktop: '64rem',
|
|
21
|
+
// 1024px
|
|
22
|
+
desktopXL: '90rem' // 1440px
|
|
23
|
+
});
|
|
24
|
+
var _default = exports["default"] = breakpoints;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
4
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
|
5
|
+
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
|
6
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
7
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
8
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
|
9
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
|
10
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
11
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
12
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
exports["default"] = void 0;
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
17
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
+
var white = '#ffffff';
|
|
20
|
+
var black = '#000000';
|
|
21
|
+
var brandBlue = '#0082ff';
|
|
22
|
+
var modalOverlay = '#21212160';
|
|
23
|
+
var gray = {
|
|
24
|
+
50: '#f6f7f9',
|
|
25
|
+
100: '#e1e6ec',
|
|
26
|
+
200: '#cbd4de',
|
|
27
|
+
300: '#afbdcc',
|
|
28
|
+
400: '#94a7ba',
|
|
29
|
+
500: '#7890a8',
|
|
30
|
+
600: '#537495',
|
|
31
|
+
700: '#3b5261',
|
|
32
|
+
800: '#2f3f4b',
|
|
33
|
+
900: '#26323c'
|
|
34
|
+
};
|
|
35
|
+
var blue = {
|
|
36
|
+
50: '#f6fbfd',
|
|
37
|
+
100: '#e6f8fd',
|
|
38
|
+
200: '#c0e9fb',
|
|
39
|
+
300: '#96d3fa',
|
|
40
|
+
400: '#5baafa',
|
|
41
|
+
500: '#1271eb',
|
|
42
|
+
600: '#1d58f2',
|
|
43
|
+
700: '#1b46da',
|
|
44
|
+
800: '#1735a6',
|
|
45
|
+
900: '#132b7f'
|
|
46
|
+
};
|
|
47
|
+
var navy = {
|
|
48
|
+
50: '#f4fafc',
|
|
49
|
+
100: '#e4f7fb',
|
|
50
|
+
200: '#bfebf6',
|
|
51
|
+
300: '#92d9f4',
|
|
52
|
+
400: '#51b7f0',
|
|
53
|
+
500: '#2590ea',
|
|
54
|
+
600: '#1a6cda',
|
|
55
|
+
700: '#1b55b6',
|
|
56
|
+
800: '#194185',
|
|
57
|
+
900: '#002d5b'
|
|
58
|
+
};
|
|
59
|
+
var green = {
|
|
60
|
+
50: '#ecf8f7',
|
|
61
|
+
100: '#d3f7ef',
|
|
62
|
+
200: '#a4f3d9',
|
|
63
|
+
300: '#65eabf',
|
|
64
|
+
400: '#1edb96',
|
|
65
|
+
500: '#09c66a',
|
|
66
|
+
600: '#08ad50',
|
|
67
|
+
700: '#008547',
|
|
68
|
+
800: '#11703e',
|
|
69
|
+
900: '#115a35'
|
|
70
|
+
};
|
|
71
|
+
var yellow = {
|
|
72
|
+
50: '#f9f5e5',
|
|
73
|
+
100: '#faf0bd',
|
|
74
|
+
200: '#f6e67c',
|
|
75
|
+
300: '#f1d439',
|
|
76
|
+
400: '#ffbf02',
|
|
77
|
+
500: '#e19706',
|
|
78
|
+
600: '#cf7404',
|
|
79
|
+
700: '#ae5708',
|
|
80
|
+
800: '#8e440e',
|
|
81
|
+
900: '#743710'
|
|
82
|
+
};
|
|
83
|
+
var red = {
|
|
84
|
+
50: '#fdf9f8',
|
|
85
|
+
100: '#fdeef3',
|
|
86
|
+
200: '#fbcee6',
|
|
87
|
+
300: '#fba4d1',
|
|
88
|
+
400: '#fc6bad',
|
|
89
|
+
500: '#fc4086',
|
|
90
|
+
600: '#f7265f',
|
|
91
|
+
700: '#e01438',
|
|
92
|
+
800: '#b4193c',
|
|
93
|
+
900: '#901530'
|
|
94
|
+
};
|
|
95
|
+
var colors = {
|
|
96
|
+
gray: _objectSpread(_objectSpread({}, gray), {}, {
|
|
97
|
+
light: gray['50'],
|
|
98
|
+
medium: gray['200'],
|
|
99
|
+
dark: gray['600']
|
|
100
|
+
}),
|
|
101
|
+
blue: blue,
|
|
102
|
+
navy: navy,
|
|
103
|
+
red: _objectSpread(_objectSpread({}, red), {}, {
|
|
104
|
+
"default": red['700']
|
|
105
|
+
}),
|
|
106
|
+
green: _objectSpread(_objectSpread({}, green), {}, {
|
|
107
|
+
"default": green['700']
|
|
108
|
+
}),
|
|
109
|
+
yellow: _objectSpread(_objectSpread({}, yellow), {}, {
|
|
110
|
+
"default": yellow['400']
|
|
111
|
+
}),
|
|
112
|
+
primary: _objectSpread(_objectSpread({}, blue), {}, {
|
|
113
|
+
"default": blue['500']
|
|
114
|
+
}),
|
|
115
|
+
secondary: _objectSpread(_objectSpread({}, navy), {}, {
|
|
116
|
+
"default": navy['900']
|
|
117
|
+
}),
|
|
118
|
+
success: green['700'],
|
|
119
|
+
warning: yellow['400'],
|
|
120
|
+
error: red['700'],
|
|
121
|
+
accent: gray['200'],
|
|
122
|
+
text: {
|
|
123
|
+
primary: {
|
|
124
|
+
light: black,
|
|
125
|
+
dark: white
|
|
126
|
+
},
|
|
127
|
+
secondary: {
|
|
128
|
+
light: gray['600']
|
|
129
|
+
},
|
|
130
|
+
link: {
|
|
131
|
+
light: blue['500'],
|
|
132
|
+
dark: white
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
background: {
|
|
136
|
+
gray: gray['50'],
|
|
137
|
+
white: white
|
|
138
|
+
},
|
|
139
|
+
white: white,
|
|
140
|
+
black: black,
|
|
141
|
+
brandBlue: brandBlue,
|
|
142
|
+
modalOverlay: modalOverlay
|
|
143
|
+
};
|
|
144
|
+
var _default = exports["default"] = colors;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
_Object$defineProperty(exports, "NOTIFICATION_STATUSES", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _notifications.NOTIFICATION_STATUSES;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
_Object$defineProperty(exports, "breakpoints", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return _breakpoints["default"];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
_Object$defineProperty(exports, "colors", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _colors["default"];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
_Object$defineProperty(exports, "fontSizes", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _typography.fontSizes;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
_Object$defineProperty(exports, "fontWeights", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _typography.fontWeights;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
_Object$defineProperty(exports, "fonts", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _typography.fonts;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
_Object$defineProperty(exports, "notificationBaseStyle", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _notifications.notificationBaseStyle;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
_Object$defineProperty(exports, "notificationStatusStyles", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function get() {
|
|
53
|
+
return _notifications.notificationStatusStyles;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
_Object$defineProperty(exports, "shadows", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function get() {
|
|
59
|
+
return _shadows["default"];
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
_Object$defineProperty(exports, "sizes", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function get() {
|
|
65
|
+
return _sizes["default"];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
_Object$defineProperty(exports, "zIndices", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function get() {
|
|
71
|
+
return _zindices["default"];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
var _sizes = _interopRequireDefault(require("./sizes"));
|
|
75
|
+
var _colors = _interopRequireDefault(require("./colors"));
|
|
76
|
+
var _shadows = _interopRequireDefault(require("./shadows"));
|
|
77
|
+
var _zindices = _interopRequireDefault(require("./zindices"));
|
|
78
|
+
var _breakpoints = _interopRequireDefault(require("./breakpoints"));
|
|
79
|
+
var _typography = require("./typography");
|
|
80
|
+
var _notifications = require("./notifications");
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.notificationStatusStyles = exports.notificationSizeStyles = exports.notificationBaseStyle = exports.NOTIFICATION_STATUSES = void 0;
|
|
8
|
+
var NOTIFICATION_STATUSES = exports.NOTIFICATION_STATUSES = {
|
|
9
|
+
NEUTRAL: 'neutral',
|
|
10
|
+
ERROR: 'error',
|
|
11
|
+
WARNING: 'warning',
|
|
12
|
+
SUCCESS: 'success'
|
|
13
|
+
};
|
|
14
|
+
var NOTIFICATION_SIZES = {
|
|
15
|
+
SM: 'sm',
|
|
16
|
+
MD: 'md',
|
|
17
|
+
LG: 'lg'
|
|
18
|
+
};
|
|
19
|
+
var notificationBaseStyle = exports.notificationBaseStyle = {
|
|
20
|
+
container: {
|
|
21
|
+
paddingY: 2,
|
|
22
|
+
borderRadius: 'base'
|
|
23
|
+
},
|
|
24
|
+
actionButton: {
|
|
25
|
+
fontSize: 'sm',
|
|
26
|
+
height: 'fit-content',
|
|
27
|
+
lineHeight: '1.4',
|
|
28
|
+
color: 'primary.600',
|
|
29
|
+
_hover: {
|
|
30
|
+
color: 'primary.700'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
dismissButton: {
|
|
34
|
+
color: 'gray.600',
|
|
35
|
+
borderColor: 'transparent',
|
|
36
|
+
borderWidth: '2px',
|
|
37
|
+
padding: 0,
|
|
38
|
+
width: 10,
|
|
39
|
+
height: 10,
|
|
40
|
+
backgroundColor: 'transparent',
|
|
41
|
+
borderRadius: 'base',
|
|
42
|
+
marginLeft: 2,
|
|
43
|
+
_hover: {
|
|
44
|
+
color: 'gray.700'
|
|
45
|
+
},
|
|
46
|
+
_focus: {
|
|
47
|
+
color: 'gray.700',
|
|
48
|
+
borderColor: 'white',
|
|
49
|
+
boxShadow: 'outline'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
icon: {
|
|
53
|
+
width: 6,
|
|
54
|
+
marginRight: 2,
|
|
55
|
+
height: 'auto'
|
|
56
|
+
},
|
|
57
|
+
description: {
|
|
58
|
+
lineHeight: 1.4
|
|
59
|
+
},
|
|
60
|
+
title: {
|
|
61
|
+
lineHeight: 1.4
|
|
62
|
+
},
|
|
63
|
+
variants: {},
|
|
64
|
+
sizes: {
|
|
65
|
+
sm: {
|
|
66
|
+
title: {
|
|
67
|
+
fontSize: 'xs'
|
|
68
|
+
},
|
|
69
|
+
description: {
|
|
70
|
+
fontSize: 'xs'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
md: {
|
|
74
|
+
title: {
|
|
75
|
+
fontSize: 'sm'
|
|
76
|
+
},
|
|
77
|
+
description: {
|
|
78
|
+
fontSize: 'sm'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
lg: {
|
|
82
|
+
title: {
|
|
83
|
+
fontSize: 'base'
|
|
84
|
+
},
|
|
85
|
+
description: {
|
|
86
|
+
fontSize: 'base'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
var notificationStatusStyles = exports.notificationStatusStyles = function notificationStatusStyles(status) {
|
|
92
|
+
switch (status) {
|
|
93
|
+
case NOTIFICATION_STATUSES.NEUTRAL:
|
|
94
|
+
return {
|
|
95
|
+
container: {
|
|
96
|
+
background: 'gray.light'
|
|
97
|
+
},
|
|
98
|
+
icon: {
|
|
99
|
+
color: 'gray.dark'
|
|
100
|
+
},
|
|
101
|
+
dismissButton: {
|
|
102
|
+
_hover: {
|
|
103
|
+
background: 'gray.200'
|
|
104
|
+
},
|
|
105
|
+
_focus: {
|
|
106
|
+
background: 'gray.200'
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
case NOTIFICATION_STATUSES.WARNING:
|
|
111
|
+
return {
|
|
112
|
+
container: {
|
|
113
|
+
background: 'yellow.100'
|
|
114
|
+
},
|
|
115
|
+
icon: {
|
|
116
|
+
color: 'yellow.500'
|
|
117
|
+
},
|
|
118
|
+
dismissButton: {
|
|
119
|
+
_hover: {
|
|
120
|
+
background: 'yellow.200'
|
|
121
|
+
},
|
|
122
|
+
_focus: {
|
|
123
|
+
background: 'yellow.200'
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
case NOTIFICATION_STATUSES.ERROR:
|
|
128
|
+
return {
|
|
129
|
+
container: {
|
|
130
|
+
background: 'red.100'
|
|
131
|
+
},
|
|
132
|
+
icon: {
|
|
133
|
+
color: 'red.700'
|
|
134
|
+
},
|
|
135
|
+
dismissButton: {
|
|
136
|
+
_hover: {
|
|
137
|
+
background: 'red.200'
|
|
138
|
+
},
|
|
139
|
+
_focus: {
|
|
140
|
+
background: 'red.200'
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
case NOTIFICATION_STATUSES.SUCCESS:
|
|
145
|
+
return {
|
|
146
|
+
container: {
|
|
147
|
+
background: 'green.100'
|
|
148
|
+
},
|
|
149
|
+
icon: {
|
|
150
|
+
color: 'green.700'
|
|
151
|
+
},
|
|
152
|
+
dismissButton: {
|
|
153
|
+
_hover: {
|
|
154
|
+
background: 'green.200'
|
|
155
|
+
},
|
|
156
|
+
_focus: {
|
|
157
|
+
background: 'green.200'
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
default:
|
|
162
|
+
return {};
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
var notificationSizeStyles = exports.notificationSizeStyles = function notificationSizeStyles(size) {
|
|
166
|
+
switch (size) {
|
|
167
|
+
case NOTIFICATION_SIZES.SM:
|
|
168
|
+
return {
|
|
169
|
+
title: {
|
|
170
|
+
fontSize: 'xs'
|
|
171
|
+
},
|
|
172
|
+
description: {
|
|
173
|
+
fontSize: 'xs'
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
case NOTIFICATION_SIZES.MD:
|
|
177
|
+
return {
|
|
178
|
+
title: {
|
|
179
|
+
fontSize: 'sm'
|
|
180
|
+
},
|
|
181
|
+
description: {
|
|
182
|
+
fontSize: 'sm'
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
case NOTIFICATION_SIZES.LG:
|
|
186
|
+
return {
|
|
187
|
+
title: {
|
|
188
|
+
fontSize: 'base'
|
|
189
|
+
},
|
|
190
|
+
description: {
|
|
191
|
+
fontSize: 'base'
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
default:
|
|
195
|
+
return {};
|
|
196
|
+
}
|
|
197
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _merge = _interopRequireDefault(require("lodash/merge"));
|
|
10
|
+
var _theme = _interopRequireDefault(require("@chakra-ui/theme"));
|
|
11
|
+
var shadows = {
|
|
12
|
+
outline: '0 0 0 3px rgba(91, 170, 250, 0.7)',
|
|
13
|
+
// primary.400, 70% opacity
|
|
14
|
+
drawer: '-8px 0 16px 0 rgba(33,33,33,.1)'
|
|
15
|
+
};
|
|
16
|
+
var _default = exports["default"] = (0, _merge["default"])(_theme["default"].shadows, shadows);
|