@spothero/ui 17.1.0-beta.5 → 17.1.1
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 +57 -49
- package/dist/components/Accordion/AccordionActionButton.js +31 -0
- package/dist/components/Accordion/index.js +17 -14
- package/dist/components/Accordion/styles/index.js +64 -19
- package/dist/components/Alert/Alert.js +36 -58
- package/dist/components/Alert/Alert.stories.js +35 -47
- package/dist/components/Alert/index.js +1 -3
- package/dist/components/AutoSuggestSelect/AutoSuggestSelect.js +84 -119
- package/dist/components/AutoSuggestSelect/AutoSuggestSelect.stories.js +4 -12
- package/dist/components/AutoSuggestSelect/index.js +1 -3
- package/dist/components/Badge/Badge.js +1 -2
- package/dist/components/Badge/Badge.stories.js +12 -20
- package/dist/components/Badge/styles/index.js +6 -12
- package/dist/components/Button/Button.js +17 -47
- package/dist/components/Button/Button.spec.js +4 -10
- package/dist/components/Button/Button.styles.js +36 -49
- package/dist/components/Button/button-props.js +2 -20
- package/dist/components/Button/index.js +2 -5
- package/dist/components/Button/stories/button.js +5 -17
- package/dist/components/Button/stories/index.stories.js +24 -48
- package/dist/components/Button/stories/overview.js +34 -62
- package/dist/components/Card/Card.js +11 -26
- package/dist/components/Card/Card.stories.js +5 -15
- package/dist/components/Checkbox/Checkbox.js +1 -2
- package/dist/components/Checkbox/Checkbox.stories.js +2 -10
- package/dist/components/Checkbox/index.js +1 -3
- package/dist/components/Checkbox/styles/index.js +3 -11
- package/dist/components/Container/Container.js +5 -21
- package/dist/components/Container/Container.stories.js +14 -43
- package/dist/components/Container/Container.styles.js +1 -1
- package/dist/components/Divider/Divider.js +8 -24
- package/dist/components/Divider/Divider.stories.js +3 -15
- package/dist/components/Divider/Divider.styles.js +2 -8
- package/dist/components/FormControl/FormControl.js +14 -29
- package/dist/components/Grid/Grid.js +7 -24
- package/dist/components/Grid/Grid.stories.js +36 -60
- package/dist/components/Grid/Grid.styles.js +2 -2
- package/dist/components/Grid/GridItem.js +5 -21
- package/dist/components/Grid/GridItem.styles.js +2 -1
- package/dist/components/Grid/index.js +2 -5
- package/dist/components/Heading/Heading.js +8 -29
- package/dist/components/Heading/Heading.stories.js +4 -15
- package/dist/components/Heading/Heading.styles.js +24 -38
- package/dist/components/Icon/Icon.js +1 -2
- package/dist/components/Icon/Icon.stories.js +19 -28
- package/dist/components/Image/Image.js +39 -69
- package/dist/components/Image/Image.spec.js +16 -22
- package/dist/components/Image/Image.stories.js +8 -19
- package/dist/components/Input/Input.js +14 -31
- package/dist/components/Input/Input.stories.js +5 -15
- package/dist/components/Input/index.js +1 -3
- package/dist/components/Input/styles/index.js +4 -10
- package/dist/components/Link/Link.js +1 -2
- package/dist/components/Link/Link.stories.js +5 -12
- package/dist/components/Link/Link.styles.js +8 -8
- package/dist/components/List/List.js +14 -37
- package/dist/components/List/List.stories.js +18 -59
- package/dist/components/List/index.js +2 -5
- package/dist/components/List/styles/index.js +2 -9
- package/dist/components/List/styles/item.styles.js +1 -1
- package/dist/components/Loader/Loader.js +17 -33
- package/dist/components/Loader/Loader.stories.js +24 -44
- package/dist/components/Modal/Modal.js +17 -23
- package/dist/components/Modal/Modal.stories.js +30 -100
- package/dist/components/Modal/index.js +1 -3
- package/dist/components/Modal/styles/body.js +11 -28
- package/dist/components/Modal/styles/closeButton.js +4 -4
- package/dist/components/Modal/styles/dialog.js +4 -4
- package/dist/components/Modal/styles/dialogContainer.js +5 -11
- package/dist/components/Modal/styles/header.js +5 -5
- package/dist/components/Modal/styles/index.js +12 -28
- package/dist/components/Popover/Popover.js +12 -33
- package/dist/components/Popover/Popover.stories.js +36 -62
- package/dist/components/Popover/PopoverArrow.js +3 -17
- package/dist/components/Popover/PopoverCloseButton.js +3 -17
- package/dist/components/Popover/PopoverContent.js +10 -27
- package/dist/components/Popover/index.js +4 -8
- package/dist/components/Popover/styles/index.js +9 -22
- package/dist/components/Popover/styles/popover-arrow.js +4 -4
- package/dist/components/Popover/styles/popover-body.js +3 -7
- package/dist/components/Popover/styles/popover-close-button.js +7 -10
- package/dist/components/Popover/styles/popover-content.js +5 -7
- package/dist/components/Popover/styles/popover-header.js +1 -1
- package/dist/components/Popover/styles/popper.js +1 -1
- package/dist/components/Radio/Radio.js +12 -27
- package/dist/components/Radio/Radio.stories.js +2 -12
- package/dist/components/Radio/RadioGroup.js +17 -33
- package/dist/components/Radio/index.js +2 -5
- package/dist/components/Radio/styles/index.js +5 -13
- package/dist/components/Select/Select.js +14 -33
- package/dist/components/Select/Select.stories.js +13 -22
- package/dist/components/Select/index.js +1 -3
- package/dist/components/Select/styles/index.js +4 -14
- package/dist/components/Skeleton/Skeleton.stories.js +6 -20
- package/dist/components/Skeleton/Skeleton.styles.js +0 -3
- package/dist/components/Skeleton/index.js +3 -4
- package/dist/components/Spinner/Spinner.js +9 -25
- package/dist/components/Spinner/Spinner.stories.js +42 -70
- package/dist/components/Spinner/Spinner.styles.js +56 -43
- package/dist/components/Switch/Switch.js +13 -30
- package/dist/components/Switch/Switch.stories.js +2 -10
- package/dist/components/Switch/index.js +1 -3
- package/dist/components/Switch/styles/index.js +10 -31
- package/dist/components/Table/Table.js +1 -2
- package/dist/components/Table/Table.stories.js +17 -37
- package/dist/components/Table/Table.styles.js +13 -32
- package/dist/components/Table/index.js +8 -11
- package/dist/components/Tabs/Tabs.js +14 -22
- package/dist/components/Tabs/Tabs.stories.js +4 -20
- package/dist/components/Tabs/combineSizeWithVariant.js +11 -17
- package/dist/components/Tabs/index.js +5 -8
- package/dist/components/Tabs/styles/index.js +2 -8
- package/dist/components/Text/Text.js +8 -17
- package/dist/components/Text/Text.stories.js +3 -15
- package/dist/components/Text/Text.styles.js +15 -35
- package/dist/components/Text/combineAsWithVariant.js +36 -57
- package/dist/components/Text/options.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +10 -33
- package/dist/components/ThemeProvider/ThemeProvider.stories.js +7 -16
- package/dist/components/Toast/Toast.stories.js +79 -0
- package/dist/components/index.js +95 -171
- package/dist/components/styles.js +32 -61
- package/dist/theme/base/breakpoints.js +1 -4
- package/dist/theme/base/colors.js +32 -45
- package/dist/theme/base/index.js +27 -14
- package/dist/{components/Alert/styles/index.js → theme/base/notifications.js} +75 -72
- package/dist/theme/base/sizes.js +4 -4
- package/dist/theme/base/typography.js +5 -6
- package/dist/theme/base/zindices.js +1 -2
- package/dist/theme/global.js +87 -20
- package/dist/theme/index.js +15 -41
- package/dist/utils/Spaces.js +5 -12
- package/package.json +8 -8
- package/dist/components/Accordion/Accordion.js +0 -13
- package/dist/components/Accordion/styles/button.js +0 -23
- package/dist/components/Accordion/styles/container.js +0 -15
- package/dist/components/Accordion/styles/panel.js +0 -13
- package/dist/components/Datepicker/Range/DatepickerRange.js +0 -67
- package/dist/components/Datepicker/Range/DatepickerRange.stories.js +0 -427
- package/dist/components/Datepicker/Range/DatepickerRangeContext.js +0 -80
- package/dist/components/Datepicker/Range/components/DateRow.js +0 -261
- package/dist/components/Datepicker/Range/components/DatepickerRangeContainer.js +0 -227
- package/dist/components/Datepicker/Range/components/DatepickerRangeControls.js +0 -80
- package/dist/components/Datepicker/Range/components/index.js +0 -31
- package/dist/components/Datepicker/Range/utils/propTypes.js +0 -158
- package/dist/components/Datepicker/Single/Datepicker.stories.js +0 -314
- package/dist/components/Datepicker/Single/DatepickerContext.js +0 -65
- package/dist/components/Datepicker/Single/DatepickerSingle.js +0 -54
- package/dist/components/Datepicker/Single/components/DateRow.js +0 -146
- package/dist/components/Datepicker/Single/components/DatepickerContainer.js +0 -167
- package/dist/components/Datepicker/Single/components/DatepickerControl.js +0 -51
- package/dist/components/Datepicker/Single/components/index.js +0 -31
- package/dist/components/Datepicker/Single/utils/propTypes.js +0 -88
- package/dist/components/Datepicker/common/components/DatepickerDays.js +0 -111
- package/dist/components/Datepicker/common/components/DatepickerHeader.js +0 -118
- package/dist/components/Datepicker/common/components/DatepickerInput.js +0 -126
- package/dist/components/Datepicker/common/components/WithPopoverAnchor.js +0 -23
- package/dist/components/Datepicker/common/components/WithPortal.js +0 -26
- package/dist/components/Datepicker/common/components/index.js +0 -39
- package/dist/components/Datepicker/common/utils/constants.js +0 -43
- package/dist/components/Datepicker/common/utils/dateRowCalculations.js +0 -92
- package/dist/components/Datepicker/common/utils/generalCalculations.js +0 -71
- package/dist/components/Datepicker/common/utils/getWeeksOfMonth.js +0 -51
- package/dist/components/Datepicker/common/utils/sharedPropTypes.js +0 -147
- package/dist/components/Datepicker/index.js +0 -23
|
@@ -1,175 +1,146 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
Object.defineProperty(exports, "Accordion", {
|
|
9
8
|
enumerable: true,
|
|
10
|
-
get: function
|
|
9
|
+
get: function () {
|
|
11
10
|
return _styles2.default;
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
|
-
Object.defineProperty(exports, "Alert", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _styles6.default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
13
|
Object.defineProperty(exports, "Badge", {
|
|
21
14
|
enumerable: true,
|
|
22
|
-
get: function
|
|
23
|
-
return
|
|
15
|
+
get: function () {
|
|
16
|
+
return _styles11.default;
|
|
24
17
|
}
|
|
25
18
|
});
|
|
26
19
|
Object.defineProperty(exports, "Button", {
|
|
27
20
|
enumerable: true,
|
|
28
|
-
get: function
|
|
21
|
+
get: function () {
|
|
29
22
|
return _Button.default;
|
|
30
23
|
}
|
|
31
24
|
});
|
|
32
25
|
Object.defineProperty(exports, "Checkbox", {
|
|
33
26
|
enumerable: true,
|
|
34
|
-
get: function
|
|
27
|
+
get: function () {
|
|
35
28
|
return _styles5.default;
|
|
36
29
|
}
|
|
37
30
|
});
|
|
38
31
|
Object.defineProperty(exports, "Divider", {
|
|
39
32
|
enumerable: true,
|
|
40
|
-
get: function
|
|
33
|
+
get: function () {
|
|
41
34
|
return _Divider.default;
|
|
42
35
|
}
|
|
43
36
|
});
|
|
44
37
|
Object.defineProperty(exports, "GridItem", {
|
|
45
38
|
enumerable: true,
|
|
46
|
-
get: function
|
|
39
|
+
get: function () {
|
|
47
40
|
return _GridItem.default;
|
|
48
41
|
}
|
|
49
42
|
});
|
|
50
43
|
Object.defineProperty(exports, "Heading", {
|
|
51
44
|
enumerable: true,
|
|
52
|
-
get: function
|
|
45
|
+
get: function () {
|
|
53
46
|
return _Heading.default;
|
|
54
47
|
}
|
|
55
48
|
});
|
|
56
49
|
Object.defineProperty(exports, "Input", {
|
|
57
50
|
enumerable: true,
|
|
58
|
-
get: function
|
|
59
|
-
return
|
|
51
|
+
get: function () {
|
|
52
|
+
return _styles8.default;
|
|
60
53
|
}
|
|
61
54
|
});
|
|
62
55
|
Object.defineProperty(exports, "Link", {
|
|
63
56
|
enumerable: true,
|
|
64
|
-
get: function
|
|
57
|
+
get: function () {
|
|
65
58
|
return _Link.default;
|
|
66
59
|
}
|
|
67
60
|
});
|
|
68
61
|
Object.defineProperty(exports, "List", {
|
|
69
62
|
enumerable: true,
|
|
70
|
-
get: function
|
|
63
|
+
get: function () {
|
|
71
64
|
return _styles.default;
|
|
72
65
|
}
|
|
73
66
|
});
|
|
74
67
|
Object.defineProperty(exports, "Modal", {
|
|
75
68
|
enumerable: true,
|
|
76
|
-
get: function
|
|
77
|
-
return
|
|
69
|
+
get: function () {
|
|
70
|
+
return _styles9.default;
|
|
78
71
|
}
|
|
79
72
|
});
|
|
80
73
|
Object.defineProperty(exports, "Popover", {
|
|
81
74
|
enumerable: true,
|
|
82
|
-
get: function
|
|
83
|
-
return
|
|
75
|
+
get: function () {
|
|
76
|
+
return _styles7.default;
|
|
84
77
|
}
|
|
85
78
|
});
|
|
86
79
|
Object.defineProperty(exports, "Radio", {
|
|
87
80
|
enumerable: true,
|
|
88
|
-
get: function
|
|
89
|
-
return
|
|
81
|
+
get: function () {
|
|
82
|
+
return _styles10.default;
|
|
90
83
|
}
|
|
91
84
|
});
|
|
92
85
|
Object.defineProperty(exports, "Select", {
|
|
93
86
|
enumerable: true,
|
|
94
|
-
get: function
|
|
87
|
+
get: function () {
|
|
95
88
|
return _styles4.default;
|
|
96
89
|
}
|
|
97
90
|
});
|
|
98
91
|
Object.defineProperty(exports, "Skeleton", {
|
|
99
92
|
enumerable: true,
|
|
100
|
-
get: function
|
|
93
|
+
get: function () {
|
|
101
94
|
return _Skeleton.default;
|
|
102
95
|
}
|
|
103
96
|
});
|
|
104
97
|
Object.defineProperty(exports, "Spinner", {
|
|
105
98
|
enumerable: true,
|
|
106
|
-
get: function
|
|
99
|
+
get: function () {
|
|
107
100
|
return _Spinner.default;
|
|
108
101
|
}
|
|
109
102
|
});
|
|
110
103
|
Object.defineProperty(exports, "Switch", {
|
|
111
104
|
enumerable: true,
|
|
112
|
-
get: function
|
|
113
|
-
return
|
|
105
|
+
get: function () {
|
|
106
|
+
return _styles6.default;
|
|
114
107
|
}
|
|
115
108
|
});
|
|
116
109
|
Object.defineProperty(exports, "Table", {
|
|
117
110
|
enumerable: true,
|
|
118
|
-
get: function
|
|
111
|
+
get: function () {
|
|
119
112
|
return _Table.default;
|
|
120
113
|
}
|
|
121
114
|
});
|
|
122
115
|
Object.defineProperty(exports, "Tabs", {
|
|
123
116
|
enumerable: true,
|
|
124
|
-
get: function
|
|
117
|
+
get: function () {
|
|
125
118
|
return _styles3.default;
|
|
126
119
|
}
|
|
127
120
|
});
|
|
128
121
|
Object.defineProperty(exports, "Text", {
|
|
129
122
|
enumerable: true,
|
|
130
|
-
get: function
|
|
123
|
+
get: function () {
|
|
131
124
|
return _Text.default;
|
|
132
125
|
}
|
|
133
126
|
});
|
|
134
|
-
|
|
135
127
|
var _styles = _interopRequireDefault(require("./List/styles"));
|
|
136
|
-
|
|
137
128
|
var _Table = _interopRequireDefault(require("./Table/Table.styles"));
|
|
138
|
-
|
|
139
129
|
var _Text = _interopRequireDefault(require("./Text/Text.styles"));
|
|
140
|
-
|
|
141
130
|
var _Link = _interopRequireDefault(require("./Link/Link.styles"));
|
|
142
|
-
|
|
143
131
|
var _styles2 = _interopRequireDefault(require("./Accordion/styles"));
|
|
144
|
-
|
|
145
132
|
var _Button = _interopRequireDefault(require("./Button/Button.styles"));
|
|
146
|
-
|
|
147
133
|
var _GridItem = _interopRequireDefault(require("./Grid/GridItem.styles"));
|
|
148
|
-
|
|
149
134
|
var _Spinner = _interopRequireDefault(require("./Spinner/Spinner.styles"));
|
|
150
|
-
|
|
151
135
|
var _Heading = _interopRequireDefault(require("./Heading/Heading.styles"));
|
|
152
|
-
|
|
153
136
|
var _Divider = _interopRequireDefault(require("./Divider/Divider.styles"));
|
|
154
|
-
|
|
155
137
|
var _styles3 = _interopRequireDefault(require("./Tabs/styles"));
|
|
156
|
-
|
|
157
138
|
var _styles4 = _interopRequireDefault(require("./Select/styles"));
|
|
158
|
-
|
|
159
139
|
var _styles5 = _interopRequireDefault(require("./Checkbox/styles"));
|
|
160
|
-
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
var
|
|
164
|
-
|
|
165
|
-
var _styles8 = _interopRequireDefault(require("./Popover/styles"));
|
|
166
|
-
|
|
167
|
-
var _styles9 = _interopRequireDefault(require("./Input/styles"));
|
|
168
|
-
|
|
169
|
-
var _styles10 = _interopRequireDefault(require("./Modal/styles"));
|
|
170
|
-
|
|
171
|
-
var _styles11 = _interopRequireDefault(require("./Radio/styles"));
|
|
172
|
-
|
|
140
|
+
var _styles6 = _interopRequireDefault(require("./Switch/styles"));
|
|
141
|
+
var _styles7 = _interopRequireDefault(require("./Popover/styles"));
|
|
142
|
+
var _styles8 = _interopRequireDefault(require("./Input/styles"));
|
|
143
|
+
var _styles9 = _interopRequireDefault(require("./Modal/styles"));
|
|
144
|
+
var _styles10 = _interopRequireDefault(require("./Radio/styles"));
|
|
173
145
|
var _Skeleton = _interopRequireDefault(require("./Skeleton/Skeleton.styles"));
|
|
174
|
-
|
|
175
|
-
var _styles12 = _interopRequireDefault(require("./Badge/styles"));
|
|
146
|
+
var _styles11 = _interopRequireDefault(require("./Badge/styles"));
|
|
@@ -4,16 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _themeTools = require("@chakra-ui/theme-tools");
|
|
9
|
-
|
|
10
8
|
/**
|
|
11
9
|
* The "base" breakpoint is Chakra's default non-responsive value (from 0 upwards).
|
|
12
10
|
* While we don't explicitly enable a "mobile" breakpoint, we can consider "base" and
|
|
13
11
|
* "mobile" the same for all intents and purposes for mobile-first responsive styling.
|
|
14
12
|
* @see https://chakra-ui.com/docs/features/responsive-styles#customizing-breakpoints
|
|
15
13
|
*/
|
|
16
|
-
|
|
14
|
+
const breakpoints = (0, _themeTools.createBreakpoints)({
|
|
17
15
|
mobileXL: '30rem',
|
|
18
16
|
// 480px
|
|
19
17
|
tablet: '48rem',
|
|
@@ -21,7 +19,6 @@ var breakpoints = (0, _themeTools.createBreakpoints)({
|
|
|
21
19
|
desktop: '64rem',
|
|
22
20
|
// 1024px
|
|
23
21
|
desktopXL: '90rem' // 1440px
|
|
24
|
-
|
|
25
22
|
});
|
|
26
23
|
var _default = breakpoints;
|
|
27
24
|
exports.default = _default;
|
|
@@ -1,32 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
4
|
-
|
|
5
|
-
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
|
6
|
-
|
|
7
|
-
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
|
8
|
-
|
|
9
|
-
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
10
|
-
|
|
11
|
-
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
|
12
|
-
|
|
13
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
14
|
-
|
|
15
3
|
Object.defineProperty(exports, "__esModule", {
|
|
16
4
|
value: true
|
|
17
5
|
});
|
|
18
6
|
exports.default = void 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
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) { (0, _defineProperty2.default)(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; }
|
|
25
|
-
|
|
26
|
-
var white = '#ffffff';
|
|
27
|
-
var black = '#000000';
|
|
28
|
-
var brandBlue = '#0082ff';
|
|
29
|
-
var gray = {
|
|
7
|
+
const white = '#ffffff';
|
|
8
|
+
const black = '#000000';
|
|
9
|
+
const brandBlue = '#0082ff';
|
|
10
|
+
const gray = {
|
|
30
11
|
50: '#f6f7f9',
|
|
31
12
|
100: '#e1e6ec',
|
|
32
13
|
200: '#cbd4de',
|
|
@@ -38,7 +19,7 @@ var gray = {
|
|
|
38
19
|
800: '#2f3f4b',
|
|
39
20
|
900: '#26323c'
|
|
40
21
|
};
|
|
41
|
-
|
|
22
|
+
const blue = {
|
|
42
23
|
50: '#f6fbfd',
|
|
43
24
|
100: '#e6f8fd',
|
|
44
25
|
200: '#c0e9fb',
|
|
@@ -50,7 +31,7 @@ var blue = {
|
|
|
50
31
|
800: '#1735a6',
|
|
51
32
|
900: '#132b7f'
|
|
52
33
|
};
|
|
53
|
-
|
|
34
|
+
const navy = {
|
|
54
35
|
50: '#f4fafc',
|
|
55
36
|
100: '#e4f7fb',
|
|
56
37
|
200: '#bfebf6',
|
|
@@ -62,7 +43,7 @@ var navy = {
|
|
|
62
43
|
800: '#194185',
|
|
63
44
|
900: '#002d5b'
|
|
64
45
|
};
|
|
65
|
-
|
|
46
|
+
const green = {
|
|
66
47
|
50: '#ecf8f7',
|
|
67
48
|
100: '#d3f7ef',
|
|
68
49
|
200: '#a4f3d9',
|
|
@@ -74,7 +55,7 @@ var green = {
|
|
|
74
55
|
800: '#11703e',
|
|
75
56
|
900: '#115a35'
|
|
76
57
|
};
|
|
77
|
-
|
|
58
|
+
const yellow = {
|
|
78
59
|
50: '#f9f5e5',
|
|
79
60
|
100: '#faf0bd',
|
|
80
61
|
200: '#f6e67c',
|
|
@@ -86,7 +67,7 @@ var yellow = {
|
|
|
86
67
|
800: '#8e440e',
|
|
87
68
|
900: '#743710'
|
|
88
69
|
};
|
|
89
|
-
|
|
70
|
+
const red = {
|
|
90
71
|
50: '#fdf9f8',
|
|
91
72
|
100: '#fdeef3',
|
|
92
73
|
200: '#fbcee6',
|
|
@@ -98,27 +79,33 @@ var red = {
|
|
|
98
79
|
800: '#b4193c',
|
|
99
80
|
900: '#901530'
|
|
100
81
|
};
|
|
101
|
-
|
|
102
|
-
primary:
|
|
82
|
+
const colors = {
|
|
83
|
+
primary: {
|
|
84
|
+
...blue,
|
|
103
85
|
default: blue['500']
|
|
104
|
-
}
|
|
105
|
-
secondary:
|
|
86
|
+
},
|
|
87
|
+
secondary: {
|
|
88
|
+
...navy,
|
|
106
89
|
default: navy['900']
|
|
107
|
-
}
|
|
108
|
-
gray:
|
|
90
|
+
},
|
|
91
|
+
gray: {
|
|
92
|
+
...gray,
|
|
109
93
|
light: gray['50'],
|
|
110
94
|
medium: gray['200'],
|
|
111
95
|
dark: gray['600']
|
|
112
|
-
}
|
|
113
|
-
red:
|
|
96
|
+
},
|
|
97
|
+
red: {
|
|
98
|
+
...red,
|
|
114
99
|
default: red['700']
|
|
115
|
-
}
|
|
116
|
-
green:
|
|
100
|
+
},
|
|
101
|
+
green: {
|
|
102
|
+
...green,
|
|
117
103
|
default: green['700']
|
|
118
|
-
}
|
|
119
|
-
yellow:
|
|
104
|
+
},
|
|
105
|
+
yellow: {
|
|
106
|
+
...yellow,
|
|
120
107
|
default: yellow['400']
|
|
121
|
-
}
|
|
108
|
+
},
|
|
122
109
|
success: green['700'],
|
|
123
110
|
warning: yellow['400'],
|
|
124
111
|
error: red['700'],
|
|
@@ -138,11 +125,11 @@ var colors = {
|
|
|
138
125
|
},
|
|
139
126
|
background: {
|
|
140
127
|
gray: gray['50'],
|
|
141
|
-
white
|
|
128
|
+
white
|
|
142
129
|
},
|
|
143
|
-
white
|
|
144
|
-
black
|
|
145
|
-
brandBlue
|
|
130
|
+
white,
|
|
131
|
+
black,
|
|
132
|
+
brandBlue
|
|
146
133
|
};
|
|
147
134
|
var _default = colors;
|
|
148
135
|
exports.default = _default;
|
package/dist/theme/base/index.js
CHANGED
|
@@ -1,59 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
7
|
+
Object.defineProperty(exports, "NOTIFICATION_STATUSES", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _notifications.NOTIFICATION_STATUSES;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
8
13
|
Object.defineProperty(exports, "breakpoints", {
|
|
9
14
|
enumerable: true,
|
|
10
|
-
get: function
|
|
15
|
+
get: function () {
|
|
11
16
|
return _breakpoints.default;
|
|
12
17
|
}
|
|
13
18
|
});
|
|
14
19
|
Object.defineProperty(exports, "colors", {
|
|
15
20
|
enumerable: true,
|
|
16
|
-
get: function
|
|
21
|
+
get: function () {
|
|
17
22
|
return _colors.default;
|
|
18
23
|
}
|
|
19
24
|
});
|
|
20
25
|
Object.defineProperty(exports, "fontSizes", {
|
|
21
26
|
enumerable: true,
|
|
22
|
-
get: function
|
|
27
|
+
get: function () {
|
|
23
28
|
return _typography.fontSizes;
|
|
24
29
|
}
|
|
25
30
|
});
|
|
26
31
|
Object.defineProperty(exports, "fontWeights", {
|
|
27
32
|
enumerable: true,
|
|
28
|
-
get: function
|
|
33
|
+
get: function () {
|
|
29
34
|
return _typography.fontWeights;
|
|
30
35
|
}
|
|
31
36
|
});
|
|
32
37
|
Object.defineProperty(exports, "fonts", {
|
|
33
38
|
enumerable: true,
|
|
34
|
-
get: function
|
|
39
|
+
get: function () {
|
|
35
40
|
return _typography.fonts;
|
|
36
41
|
}
|
|
37
42
|
});
|
|
43
|
+
Object.defineProperty(exports, "notificationBaseStyle", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _notifications.notificationBaseStyle;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "notificationStatusStyles", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () {
|
|
52
|
+
return _notifications.notificationStatusStyles;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
38
55
|
Object.defineProperty(exports, "sizes", {
|
|
39
56
|
enumerable: true,
|
|
40
|
-
get: function
|
|
57
|
+
get: function () {
|
|
41
58
|
return _sizes.default;
|
|
42
59
|
}
|
|
43
60
|
});
|
|
44
61
|
Object.defineProperty(exports, "zIndices", {
|
|
45
62
|
enumerable: true,
|
|
46
|
-
get: function
|
|
63
|
+
get: function () {
|
|
47
64
|
return _zindices.default;
|
|
48
65
|
}
|
|
49
66
|
});
|
|
50
|
-
|
|
51
67
|
var _sizes = _interopRequireDefault(require("./sizes"));
|
|
52
|
-
|
|
53
68
|
var _colors = _interopRequireDefault(require("./colors"));
|
|
54
|
-
|
|
55
69
|
var _zindices = _interopRequireDefault(require("./zindices"));
|
|
56
|
-
|
|
57
70
|
var _breakpoints = _interopRequireDefault(require("./breakpoints"));
|
|
58
|
-
|
|
59
|
-
var
|
|
71
|
+
var _typography = require("./typography");
|
|
72
|
+
var _notifications = require("./notifications");
|
|
@@ -1,40 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
4
|
-
|
|
5
|
-
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
|
6
|
-
|
|
7
|
-
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
|
8
|
-
|
|
9
|
-
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
10
|
-
|
|
11
|
-
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
|
12
|
-
|
|
13
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
14
|
-
|
|
15
3
|
Object.defineProperty(exports, "__esModule", {
|
|
16
4
|
value: true
|
|
17
5
|
});
|
|
18
|
-
exports.
|
|
19
|
-
|
|
20
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
21
|
-
|
|
22
|
-
var _merge = _interopRequireDefault(require("lodash/merge"));
|
|
23
|
-
|
|
24
|
-
var _theme = _interopRequireDefault(require("@chakra-ui/theme"));
|
|
25
|
-
|
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
-
|
|
28
|
-
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) { (0, _defineProperty2.default)(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; }
|
|
29
|
-
|
|
30
|
-
var STATUSES = {
|
|
6
|
+
exports.notificationStatusStyles = exports.notificationSizeStyles = exports.notificationBaseStyle = exports.NOTIFICATION_STATUSES = void 0;
|
|
7
|
+
const NOTIFICATION_STATUSES = {
|
|
31
8
|
NEUTRAL: 'neutral',
|
|
32
9
|
ERROR: 'error',
|
|
33
10
|
WARNING: 'warning',
|
|
34
11
|
SUCCESS: 'success'
|
|
35
12
|
};
|
|
36
|
-
exports.
|
|
37
|
-
|
|
13
|
+
exports.NOTIFICATION_STATUSES = NOTIFICATION_STATUSES;
|
|
14
|
+
const NOTIFICATION_SIZES = {
|
|
15
|
+
SM: 'sm',
|
|
16
|
+
MD: 'md',
|
|
17
|
+
LG: 'lg'
|
|
18
|
+
};
|
|
19
|
+
const notificationBaseStyle = {
|
|
38
20
|
container: {
|
|
39
21
|
paddingY: 2,
|
|
40
22
|
borderRadius: 'base'
|
|
@@ -77,12 +59,39 @@ var _baseStyle = {
|
|
|
77
59
|
},
|
|
78
60
|
title: {
|
|
79
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
|
+
}
|
|
80
89
|
}
|
|
81
90
|
};
|
|
82
|
-
|
|
83
|
-
|
|
91
|
+
exports.notificationBaseStyle = notificationBaseStyle;
|
|
92
|
+
const notificationStatusStyles = status => {
|
|
84
93
|
switch (status) {
|
|
85
|
-
case
|
|
94
|
+
case NOTIFICATION_STATUSES.NEUTRAL:
|
|
86
95
|
return {
|
|
87
96
|
container: {
|
|
88
97
|
background: 'gray.light'
|
|
@@ -99,8 +108,7 @@ var statusStyles = function statusStyles(status) {
|
|
|
99
108
|
}
|
|
100
109
|
}
|
|
101
110
|
};
|
|
102
|
-
|
|
103
|
-
case STATUSES.WARNING:
|
|
111
|
+
case NOTIFICATION_STATUSES.WARNING:
|
|
104
112
|
return {
|
|
105
113
|
container: {
|
|
106
114
|
background: 'yellow.100'
|
|
@@ -117,8 +125,7 @@ var statusStyles = function statusStyles(status) {
|
|
|
117
125
|
}
|
|
118
126
|
}
|
|
119
127
|
};
|
|
120
|
-
|
|
121
|
-
case STATUSES.ERROR:
|
|
128
|
+
case NOTIFICATION_STATUSES.ERROR:
|
|
122
129
|
return {
|
|
123
130
|
container: {
|
|
124
131
|
background: 'red.100'
|
|
@@ -135,8 +142,7 @@ var statusStyles = function statusStyles(status) {
|
|
|
135
142
|
}
|
|
136
143
|
}
|
|
137
144
|
};
|
|
138
|
-
|
|
139
|
-
case STATUSES.SUCCESS:
|
|
145
|
+
case NOTIFICATION_STATUSES.SUCCESS:
|
|
140
146
|
return {
|
|
141
147
|
container: {
|
|
142
148
|
background: 'green.100'
|
|
@@ -153,45 +159,42 @@ var statusStyles = function statusStyles(status) {
|
|
|
153
159
|
}
|
|
154
160
|
}
|
|
155
161
|
};
|
|
156
|
-
|
|
157
162
|
default:
|
|
158
163
|
return {};
|
|
159
164
|
}
|
|
160
165
|
};
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
166
|
+
exports.notificationStatusStyles = notificationStatusStyles;
|
|
167
|
+
const notificationSizeStyles = size => {
|
|
168
|
+
switch (size) {
|
|
169
|
+
case NOTIFICATION_SIZES.SM:
|
|
170
|
+
return {
|
|
171
|
+
title: {
|
|
172
|
+
fontSize: 'xs'
|
|
173
|
+
},
|
|
174
|
+
description: {
|
|
175
|
+
fontSize: 'xs'
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
case NOTIFICATION_SIZES.MD:
|
|
179
|
+
return {
|
|
180
|
+
title: {
|
|
181
|
+
fontSize: 'sm'
|
|
182
|
+
},
|
|
183
|
+
description: {
|
|
184
|
+
fontSize: 'sm'
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
case NOTIFICATION_SIZES.LG:
|
|
188
|
+
return {
|
|
189
|
+
title: {
|
|
190
|
+
fontSize: 'base'
|
|
191
|
+
},
|
|
192
|
+
description: {
|
|
193
|
+
fontSize: 'base'
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
default:
|
|
197
|
+
return {};
|
|
192
198
|
}
|
|
193
199
|
};
|
|
194
|
-
|
|
195
|
-
var _default = _objectSpread(_objectSpread({}, _theme.default.components.Alert), overrides);
|
|
196
|
-
|
|
197
|
-
exports.default = _default;
|
|
200
|
+
exports.notificationSizeStyles = notificationSizeStyles;
|
package/dist/theme/base/sizes.js
CHANGED
|
@@ -4,16 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
7
|
+
const container = {
|
|
8
8
|
base: '100%',
|
|
9
9
|
// 640px
|
|
10
10
|
tablet: '45rem',
|
|
11
11
|
// 720px
|
|
12
12
|
desktop: '72rem' // 1152px
|
|
13
|
-
|
|
14
13
|
};
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
|
|
15
|
+
const sizes = {
|
|
16
|
+
container,
|
|
17
17
|
0: '0',
|
|
18
18
|
0.5: '0.125rem',
|
|
19
19
|
// 2px
|