@spothero/ui 17.0.2-beta.0 → 17.0.3-beta.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.js +1 -2
- package/dist/components/Accordion/Accordion.stories.js +13 -22
- package/dist/components/Accordion/index.js +5 -8
- package/dist/components/Accordion/styles/button.js +1 -3
- package/dist/components/Accordion/styles/container.js +1 -1
- package/dist/components/Accordion/styles/index.js +4 -13
- package/dist/components/Accordion/styles/panel.js +1 -1
- package/dist/components/Alert/Alert.js +23 -44
- package/dist/components/Alert/Alert.stories.js +8 -12
- package/dist/components/Alert/index.js +1 -3
- package/dist/components/Alert/styles/index.js +12 -35
- 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 +19 -55
- 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/index.js +74 -117
- package/dist/components/styles.js +21 -43
- package/dist/theme/base/breakpoints.js +1 -4
- package/dist/theme/base/colors.js +32 -45
- package/dist/theme/base/index.js +7 -13
- 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 +2 -2
|
@@ -1,175 +1,153 @@
|
|
|
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
13
|
Object.defineProperty(exports, "Alert", {
|
|
15
14
|
enumerable: true,
|
|
16
|
-
get: function
|
|
15
|
+
get: function () {
|
|
17
16
|
return _styles6.default;
|
|
18
17
|
}
|
|
19
18
|
});
|
|
20
19
|
Object.defineProperty(exports, "Badge", {
|
|
21
20
|
enumerable: true,
|
|
22
|
-
get: function
|
|
21
|
+
get: function () {
|
|
23
22
|
return _styles12.default;
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
25
|
Object.defineProperty(exports, "Button", {
|
|
27
26
|
enumerable: true,
|
|
28
|
-
get: function
|
|
27
|
+
get: function () {
|
|
29
28
|
return _Button.default;
|
|
30
29
|
}
|
|
31
30
|
});
|
|
32
31
|
Object.defineProperty(exports, "Checkbox", {
|
|
33
32
|
enumerable: true,
|
|
34
|
-
get: function
|
|
33
|
+
get: function () {
|
|
35
34
|
return _styles5.default;
|
|
36
35
|
}
|
|
37
36
|
});
|
|
38
37
|
Object.defineProperty(exports, "Divider", {
|
|
39
38
|
enumerable: true,
|
|
40
|
-
get: function
|
|
39
|
+
get: function () {
|
|
41
40
|
return _Divider.default;
|
|
42
41
|
}
|
|
43
42
|
});
|
|
44
43
|
Object.defineProperty(exports, "GridItem", {
|
|
45
44
|
enumerable: true,
|
|
46
|
-
get: function
|
|
45
|
+
get: function () {
|
|
47
46
|
return _GridItem.default;
|
|
48
47
|
}
|
|
49
48
|
});
|
|
50
49
|
Object.defineProperty(exports, "Heading", {
|
|
51
50
|
enumerable: true,
|
|
52
|
-
get: function
|
|
51
|
+
get: function () {
|
|
53
52
|
return _Heading.default;
|
|
54
53
|
}
|
|
55
54
|
});
|
|
56
55
|
Object.defineProperty(exports, "Input", {
|
|
57
56
|
enumerable: true,
|
|
58
|
-
get: function
|
|
57
|
+
get: function () {
|
|
59
58
|
return _styles9.default;
|
|
60
59
|
}
|
|
61
60
|
});
|
|
62
61
|
Object.defineProperty(exports, "Link", {
|
|
63
62
|
enumerable: true,
|
|
64
|
-
get: function
|
|
63
|
+
get: function () {
|
|
65
64
|
return _Link.default;
|
|
66
65
|
}
|
|
67
66
|
});
|
|
68
67
|
Object.defineProperty(exports, "List", {
|
|
69
68
|
enumerable: true,
|
|
70
|
-
get: function
|
|
69
|
+
get: function () {
|
|
71
70
|
return _styles.default;
|
|
72
71
|
}
|
|
73
72
|
});
|
|
74
73
|
Object.defineProperty(exports, "Modal", {
|
|
75
74
|
enumerable: true,
|
|
76
|
-
get: function
|
|
75
|
+
get: function () {
|
|
77
76
|
return _styles10.default;
|
|
78
77
|
}
|
|
79
78
|
});
|
|
80
79
|
Object.defineProperty(exports, "Popover", {
|
|
81
80
|
enumerable: true,
|
|
82
|
-
get: function
|
|
81
|
+
get: function () {
|
|
83
82
|
return _styles8.default;
|
|
84
83
|
}
|
|
85
84
|
});
|
|
86
85
|
Object.defineProperty(exports, "Radio", {
|
|
87
86
|
enumerable: true,
|
|
88
|
-
get: function
|
|
87
|
+
get: function () {
|
|
89
88
|
return _styles11.default;
|
|
90
89
|
}
|
|
91
90
|
});
|
|
92
91
|
Object.defineProperty(exports, "Select", {
|
|
93
92
|
enumerable: true,
|
|
94
|
-
get: function
|
|
93
|
+
get: function () {
|
|
95
94
|
return _styles4.default;
|
|
96
95
|
}
|
|
97
96
|
});
|
|
98
97
|
Object.defineProperty(exports, "Skeleton", {
|
|
99
98
|
enumerable: true,
|
|
100
|
-
get: function
|
|
99
|
+
get: function () {
|
|
101
100
|
return _Skeleton.default;
|
|
102
101
|
}
|
|
103
102
|
});
|
|
104
103
|
Object.defineProperty(exports, "Spinner", {
|
|
105
104
|
enumerable: true,
|
|
106
|
-
get: function
|
|
105
|
+
get: function () {
|
|
107
106
|
return _Spinner.default;
|
|
108
107
|
}
|
|
109
108
|
});
|
|
110
109
|
Object.defineProperty(exports, "Switch", {
|
|
111
110
|
enumerable: true,
|
|
112
|
-
get: function
|
|
111
|
+
get: function () {
|
|
113
112
|
return _styles7.default;
|
|
114
113
|
}
|
|
115
114
|
});
|
|
116
115
|
Object.defineProperty(exports, "Table", {
|
|
117
116
|
enumerable: true,
|
|
118
|
-
get: function
|
|
117
|
+
get: function () {
|
|
119
118
|
return _Table.default;
|
|
120
119
|
}
|
|
121
120
|
});
|
|
122
121
|
Object.defineProperty(exports, "Tabs", {
|
|
123
122
|
enumerable: true,
|
|
124
|
-
get: function
|
|
123
|
+
get: function () {
|
|
125
124
|
return _styles3.default;
|
|
126
125
|
}
|
|
127
126
|
});
|
|
128
127
|
Object.defineProperty(exports, "Text", {
|
|
129
128
|
enumerable: true,
|
|
130
|
-
get: function
|
|
129
|
+
get: function () {
|
|
131
130
|
return _Text.default;
|
|
132
131
|
}
|
|
133
132
|
});
|
|
134
|
-
|
|
135
133
|
var _styles = _interopRequireDefault(require("./List/styles"));
|
|
136
|
-
|
|
137
134
|
var _Table = _interopRequireDefault(require("./Table/Table.styles"));
|
|
138
|
-
|
|
139
135
|
var _Text = _interopRequireDefault(require("./Text/Text.styles"));
|
|
140
|
-
|
|
141
136
|
var _Link = _interopRequireDefault(require("./Link/Link.styles"));
|
|
142
|
-
|
|
143
137
|
var _styles2 = _interopRequireDefault(require("./Accordion/styles"));
|
|
144
|
-
|
|
145
138
|
var _Button = _interopRequireDefault(require("./Button/Button.styles"));
|
|
146
|
-
|
|
147
139
|
var _GridItem = _interopRequireDefault(require("./Grid/GridItem.styles"));
|
|
148
|
-
|
|
149
140
|
var _Spinner = _interopRequireDefault(require("./Spinner/Spinner.styles"));
|
|
150
|
-
|
|
151
141
|
var _Heading = _interopRequireDefault(require("./Heading/Heading.styles"));
|
|
152
|
-
|
|
153
142
|
var _Divider = _interopRequireDefault(require("./Divider/Divider.styles"));
|
|
154
|
-
|
|
155
143
|
var _styles3 = _interopRequireDefault(require("./Tabs/styles"));
|
|
156
|
-
|
|
157
144
|
var _styles4 = _interopRequireDefault(require("./Select/styles"));
|
|
158
|
-
|
|
159
145
|
var _styles5 = _interopRequireDefault(require("./Checkbox/styles"));
|
|
160
|
-
|
|
161
146
|
var _styles6 = _interopRequireDefault(require("./Alert/styles"));
|
|
162
|
-
|
|
163
147
|
var _styles7 = _interopRequireDefault(require("./Switch/styles"));
|
|
164
|
-
|
|
165
148
|
var _styles8 = _interopRequireDefault(require("./Popover/styles"));
|
|
166
|
-
|
|
167
149
|
var _styles9 = _interopRequireDefault(require("./Input/styles"));
|
|
168
|
-
|
|
169
150
|
var _styles10 = _interopRequireDefault(require("./Modal/styles"));
|
|
170
|
-
|
|
171
151
|
var _styles11 = _interopRequireDefault(require("./Radio/styles"));
|
|
172
|
-
|
|
173
152
|
var _Skeleton = _interopRequireDefault(require("./Skeleton/Skeleton.styles"));
|
|
174
|
-
|
|
175
153
|
var _styles12 = _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,53 @@
|
|
|
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, "breakpoints", {
|
|
9
8
|
enumerable: true,
|
|
10
|
-
get: function
|
|
9
|
+
get: function () {
|
|
11
10
|
return _breakpoints.default;
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
13
|
Object.defineProperty(exports, "colors", {
|
|
15
14
|
enumerable: true,
|
|
16
|
-
get: function
|
|
15
|
+
get: function () {
|
|
17
16
|
return _colors.default;
|
|
18
17
|
}
|
|
19
18
|
});
|
|
20
19
|
Object.defineProperty(exports, "fontSizes", {
|
|
21
20
|
enumerable: true,
|
|
22
|
-
get: function
|
|
21
|
+
get: function () {
|
|
23
22
|
return _typography.fontSizes;
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
25
|
Object.defineProperty(exports, "fontWeights", {
|
|
27
26
|
enumerable: true,
|
|
28
|
-
get: function
|
|
27
|
+
get: function () {
|
|
29
28
|
return _typography.fontWeights;
|
|
30
29
|
}
|
|
31
30
|
});
|
|
32
31
|
Object.defineProperty(exports, "fonts", {
|
|
33
32
|
enumerable: true,
|
|
34
|
-
get: function
|
|
33
|
+
get: function () {
|
|
35
34
|
return _typography.fonts;
|
|
36
35
|
}
|
|
37
36
|
});
|
|
38
37
|
Object.defineProperty(exports, "sizes", {
|
|
39
38
|
enumerable: true,
|
|
40
|
-
get: function
|
|
39
|
+
get: function () {
|
|
41
40
|
return _sizes.default;
|
|
42
41
|
}
|
|
43
42
|
});
|
|
44
43
|
Object.defineProperty(exports, "zIndices", {
|
|
45
44
|
enumerable: true,
|
|
46
|
-
get: function
|
|
45
|
+
get: function () {
|
|
47
46
|
return _zindices.default;
|
|
48
47
|
}
|
|
49
48
|
});
|
|
50
|
-
|
|
51
49
|
var _sizes = _interopRequireDefault(require("./sizes"));
|
|
52
|
-
|
|
53
50
|
var _colors = _interopRequireDefault(require("./colors"));
|
|
54
|
-
|
|
55
51
|
var _zindices = _interopRequireDefault(require("./zindices"));
|
|
56
|
-
|
|
57
52
|
var _breakpoints = _interopRequireDefault(require("./breakpoints"));
|
|
58
|
-
|
|
59
53
|
var _typography = require("./typography");
|
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
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.fonts = exports.fontWeights = exports.fontSizes = void 0;
|
|
7
|
-
|
|
8
|
-
heading: "
|
|
9
|
-
body: "
|
|
7
|
+
const fonts = {
|
|
8
|
+
heading: `"Open Sans", sans-serif`,
|
|
9
|
+
body: `"Open Sans", sans-serif`
|
|
10
10
|
};
|
|
11
11
|
exports.fonts = fonts;
|
|
12
|
-
|
|
12
|
+
const fontSizes = {
|
|
13
13
|
'5xl': '3.5rem',
|
|
14
14
|
// 56px
|
|
15
15
|
'4xl': '3rem',
|
|
@@ -29,10 +29,9 @@ var fontSizes = {
|
|
|
29
29
|
sm: '0.875rem',
|
|
30
30
|
// 14px
|
|
31
31
|
xs: '0.75rem' // 12px
|
|
32
|
-
|
|
33
32
|
};
|
|
34
33
|
exports.fontSizes = fontSizes;
|
|
35
|
-
|
|
34
|
+
const fontWeights = {
|
|
36
35
|
light: 300,
|
|
37
36
|
normal: 400,
|
|
38
37
|
semibold: 600,
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
7
|
+
const indices = {
|
|
8
8
|
hide: -100,
|
|
9
9
|
// equivalent to $z-index-negative in fe-core (https://github.com/spothero/fe-core/blob/main/utils/_defaults.scss)
|
|
10
10
|
auto: 'auto',
|
|
@@ -29,7 +29,6 @@ var indices = {
|
|
|
29
29
|
layer9: 900,
|
|
30
30
|
// equivalent to $z-index-notification in fe-core
|
|
31
31
|
layer10: 1000 // equivalent to $z-index-top in fe-core
|
|
32
|
-
|
|
33
32
|
};
|
|
34
33
|
var _default = indices;
|
|
35
34
|
exports.default = _default;
|
package/dist/theme/global.js
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
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
|
exports.default = exports.LegacyOverrides = exports.Fonts = void 0;
|
|
9
|
-
|
|
10
|
-
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
11
|
-
|
|
12
8
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
9
|
var _react2 = require("@emotion/react");
|
|
15
|
-
|
|
16
10
|
var _base = require("./base");
|
|
17
|
-
|
|
18
|
-
var global = {
|
|
11
|
+
const global = {
|
|
19
12
|
'html, body': {
|
|
20
13
|
color: 'text.primary.light'
|
|
21
14
|
},
|
|
@@ -31,22 +24,96 @@ var global = {
|
|
|
31
24
|
};
|
|
32
25
|
var _default = global;
|
|
33
26
|
exports.default = _default;
|
|
27
|
+
const Fonts = () => /*#__PURE__*/_react.default.createElement(_react2.Global, {
|
|
28
|
+
styles: `
|
|
29
|
+
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');
|
|
30
|
+
/* Copied from https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap */
|
|
31
|
+
/* latin-ext */
|
|
32
|
+
@font-face {
|
|
33
|
+
font-family: 'Open Sans';
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-weight: 700;
|
|
36
|
+
src: url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXOhpKKSTj5PW.woff2) format('woff2');
|
|
37
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
38
|
+
}
|
|
39
|
+
/* latin-ext */
|
|
40
|
+
@font-face {
|
|
41
|
+
font-family: 'Open Sans';
|
|
42
|
+
font-style: normal;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
src: url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXOhpKKSTj5PW.woff2) format('woff2');
|
|
45
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
46
|
+
}
|
|
47
|
+
/* latin-ext */
|
|
48
|
+
@font-face {
|
|
49
|
+
font-family: 'Open Sans';
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
src: url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFW50bf8pkAp6a.woff2) format('woff2');
|
|
53
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
54
|
+
}
|
|
55
|
+
/* latin-ext */
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: 'Open Sans';
|
|
58
|
+
font-style: normal;
|
|
59
|
+
font-weight: 300;
|
|
60
|
+
src: url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXOhpKKSTj5PW.woff2) format('woff2');
|
|
61
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
62
|
+
}
|
|
63
|
+
`
|
|
64
|
+
});
|
|
65
|
+
exports.Fonts = Fonts;
|
|
66
|
+
const LegacyOverrides = _ref => {
|
|
67
|
+
let {
|
|
68
|
+
useLegacyOverrides
|
|
69
|
+
} = _ref;
|
|
70
|
+
return useLegacyOverrides ? /*#__PURE__*/_react.default.createElement(_react2.Global, {
|
|
71
|
+
styles: `
|
|
72
|
+
h1,
|
|
73
|
+
h2,
|
|
74
|
+
h3,
|
|
75
|
+
h4,
|
|
76
|
+
h5,
|
|
77
|
+
h6 {
|
|
78
|
+
margin-top: 0;
|
|
79
|
+
font-weight: ${_base.fontWeights.semibold};
|
|
80
|
+
}
|
|
34
81
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
82
|
+
.heading-sm {
|
|
83
|
+
font-size: ${_base.fontSizes.base};
|
|
84
|
+
}
|
|
85
|
+
.heading-md {
|
|
86
|
+
font-size: ${_base.fontSizes.md};
|
|
87
|
+
}
|
|
88
|
+
.heading-lg {
|
|
89
|
+
font-size: ${_base.fontSizes['5xl']};
|
|
90
|
+
}
|
|
40
91
|
|
|
41
|
-
|
|
92
|
+
p {
|
|
93
|
+
line-height: 1.5;
|
|
94
|
+
}
|
|
42
95
|
|
|
43
|
-
|
|
44
|
-
|
|
96
|
+
a {
|
|
97
|
+
outline: none;
|
|
98
|
+
text-align: left;
|
|
99
|
+
color: ${_base.colors.primary.default};
|
|
100
|
+
text-decoration: none;
|
|
45
101
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
102
|
+
&:active,
|
|
103
|
+
&:focus {
|
|
104
|
+
outline: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
color: ${_base.colors.primary['700']};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
small {
|
|
113
|
+
font-size: ${_base.fontSizes.xs};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
`
|
|
49
117
|
}) : null;
|
|
50
118
|
};
|
|
51
|
-
|
|
52
119
|
exports.LegacyOverrides = LegacyOverrides;
|