@pingux/astro 2.149.2-alpha.0 → 2.150.0-alpha.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/lib/cjs/components/Icon/Icon.js +2 -2
- package/lib/cjs/components/IconButton/IconButton.stories.js +18 -28
- package/lib/cjs/components/Tabs/Tabs.style.js +2 -2
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +2 -0
- package/lib/cjs/hooks/useTShirtSize/useTShirtSize.test.js +51 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +7 -45
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +10 -23
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themes/astro/customProperties/index.js +2 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +1 -1
- package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +4 -2
- package/lib/cjs/styles/themes/next-gen/customProperties/index.js +2 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/tShirtSizes.js +13 -13
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +145 -245
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +18 -20
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +136 -235
- package/lib/cjs/styles/themes/next-gen/variants/button.js +48 -105
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +9 -10
- package/lib/components/Icon/Icon.js +2 -2
- package/lib/components/IconButton/IconButton.stories.js +18 -28
- package/lib/components/Tabs/Tabs.style.js +2 -2
- package/lib/hooks/useTShirtSize/useTShirtSize.test.js +51 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +10 -23
- package/lib/styles/themes/astro/customProperties/index.js +2 -0
- package/lib/styles/themes/next-gen/colors/colors.js +1 -1
- package/lib/styles/themes/next-gen/customProperties/index.js +2 -0
- package/lib/styles/themes/next-gen/customProperties/tShirtSizes.js +13 -13
- package/lib/styles/themes/next-gen/variants/button.js +48 -105
- package/package.json +1 -1
|
@@ -29,15 +29,15 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
29
29
|
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; }
|
|
30
30
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31
31
|
var Icon = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
32
|
+
var theme = (0, _hooks.useGetTheme)();
|
|
32
33
|
var color = props.color,
|
|
33
34
|
IconComponent = props.icon,
|
|
34
35
|
sx = props.sx,
|
|
35
36
|
_props$size = props.size,
|
|
36
|
-
size = _props$size === void 0 ?
|
|
37
|
+
size = _props$size === void 0 ? theme.defaultIconSize : _props$size,
|
|
37
38
|
variant = props.variant,
|
|
38
39
|
title = props.title,
|
|
39
40
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
40
|
-
var theme = (0, _hooks.useGetTheme)();
|
|
41
41
|
var _useTShirtSize = (0, _hooks.useTShirtSize)({
|
|
42
42
|
size: size,
|
|
43
43
|
sizes: theme.tShirtSizes
|
|
@@ -15,6 +15,7 @@ var _PencilIcon = _interopRequireDefault(require("@pingux/mdi-react/PencilIcon")
|
|
|
15
15
|
var _PlusIcon = _interopRequireDefault(require("@pingux/mdi-react/PlusIcon"));
|
|
16
16
|
var _storybookAddonDesigns = require("storybook-addon-designs");
|
|
17
17
|
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
|
18
|
+
var _hooks = require("../../hooks");
|
|
18
19
|
var _index = require("../../index");
|
|
19
20
|
var _figmaLinks = require("../../utils/designUtils/figmaLinks");
|
|
20
21
|
var _IconButton = _interopRequireDefault(require("./IconButton.mdx"));
|
|
@@ -77,7 +78,6 @@ var WithTooltip = function WithTooltip(args) {
|
|
|
77
78
|
title: "Edit"
|
|
78
79
|
}, args), (0, _react2.jsx)(_index.Icon, {
|
|
79
80
|
icon: _CreateIcon["default"],
|
|
80
|
-
size: "sm",
|
|
81
81
|
title: {
|
|
82
82
|
name: 'Create Icon'
|
|
83
83
|
}
|
|
@@ -109,6 +109,8 @@ Disabled.parameters = {
|
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
var Sizes = function Sizes() {
|
|
112
|
+
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
|
113
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
112
114
|
return (0, _react2.jsx)(_index.Table, null, (0, _react2.jsx)(_index.TableHead, null, (0, _react2.jsx)(_index.TableRow, {
|
|
113
115
|
key: "head"
|
|
114
116
|
}, (0, _react2.jsx)(_index.TableCell, {
|
|
@@ -126,47 +128,41 @@ var Sizes = function Sizes() {
|
|
|
126
128
|
bg: "transparent !important"
|
|
127
129
|
}, (0, _react2.jsx)(_index.TableCell, {
|
|
128
130
|
width: "40%"
|
|
129
|
-
}, (0, _react2.jsx)(_index.Text, null, "XXS | 15px
|
|
131
|
+
}, (0, _react2.jsx)(_index.Text, null, "XXS |", ' ', isOnyx ? '18px' : '15px')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.Text, {
|
|
130
132
|
fontFamily: "monospace"
|
|
131
133
|
}, ' ', "<IconButton aria-label='create button' variant='inverted'/>"), (0, _react2.jsx)(_index.Text, {
|
|
132
134
|
fontFamily: "monospace"
|
|
133
135
|
}, "<Icon icon={CreateIcon} size='xxs'/>"), (0, _react2.jsx)(_index.Text, {
|
|
134
136
|
fontFamily: "monospace"
|
|
135
|
-
}, '</IconButton>')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.IconButton, {
|
|
137
|
+
}, '</IconButton>')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.IconButton, {
|
|
136
138
|
"aria-label": "create button",
|
|
137
|
-
variant: "inverted"
|
|
138
|
-
sx: {
|
|
139
|
-
width: 'unset'
|
|
140
|
-
}
|
|
139
|
+
variant: "inverted"
|
|
141
140
|
}, (0, _react2.jsx)(_index.Icon, {
|
|
142
141
|
icon: _CreateIcon["default"],
|
|
143
142
|
size: "xxs",
|
|
144
143
|
title: {
|
|
145
144
|
name: 'Create Icon'
|
|
146
145
|
}
|
|
147
|
-
})))), (0, _react2.jsx)(_index.TableRow, {
|
|
146
|
+
}))))), (0, _react2.jsx)(_index.TableRow, {
|
|
148
147
|
bg: "transparent !important"
|
|
149
148
|
}, (0, _react2.jsx)(_index.TableCell, {
|
|
150
149
|
width: "40%"
|
|
151
|
-
}, (0, _react2.jsx)(_index.Text, null, "XS | 21px
|
|
150
|
+
}, (0, _react2.jsx)(_index.Text, null, "XS |", ' ', isOnyx ? '22px' : '21px')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.Text, {
|
|
152
151
|
fontFamily: "monospace"
|
|
153
152
|
}, ' ', "<IconButton aria-label='create button' variant='inverted'/>"), (0, _react2.jsx)(_index.Text, {
|
|
154
153
|
fontFamily: "monospace"
|
|
155
154
|
}, "<Icon icon={CreateIcon} size='xs'/>"), (0, _react2.jsx)(_index.Text, {
|
|
156
155
|
fontFamily: "monospace"
|
|
157
|
-
}, '</IconButton>')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.IconButton, {
|
|
156
|
+
}, '</IconButton>')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.IconButton, {
|
|
158
157
|
"aria-label": "create button",
|
|
159
|
-
variant: "inverted"
|
|
160
|
-
sx: {
|
|
161
|
-
width: 'unset'
|
|
162
|
-
}
|
|
158
|
+
variant: "inverted"
|
|
163
159
|
}, (0, _react2.jsx)(_index.Icon, {
|
|
164
160
|
icon: _CreateIcon["default"],
|
|
165
161
|
size: "xs",
|
|
166
162
|
title: {
|
|
167
163
|
name: 'Create Icon'
|
|
168
164
|
}
|
|
169
|
-
})))), (0, _react2.jsx)(_index.TableRow, {
|
|
165
|
+
}))))), (0, _react2.jsx)(_index.TableRow, {
|
|
170
166
|
bg: "transparent !important"
|
|
171
167
|
}, (0, _react2.jsx)(_index.TableCell, {
|
|
172
168
|
width: "40%"
|
|
@@ -176,41 +172,35 @@ var Sizes = function Sizes() {
|
|
|
176
172
|
fontFamily: "monospace"
|
|
177
173
|
}, "<Icon icon={CreateIcon} size='sm'/>"), (0, _react2.jsx)(_index.Text, {
|
|
178
174
|
fontFamily: "monospace"
|
|
179
|
-
}, '</IconButton>')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.IconButton, {
|
|
175
|
+
}, '</IconButton>')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.IconButton, {
|
|
180
176
|
"aria-label": "create button",
|
|
181
|
-
variant: "inverted"
|
|
182
|
-
sx: {
|
|
183
|
-
width: 'unset'
|
|
184
|
-
}
|
|
177
|
+
variant: "inverted"
|
|
185
178
|
}, (0, _react2.jsx)(_index.Icon, {
|
|
186
179
|
icon: _CreateIcon["default"],
|
|
187
180
|
size: "sm",
|
|
188
181
|
title: {
|
|
189
182
|
name: 'Create Icon'
|
|
190
183
|
}
|
|
191
|
-
})))), (0, _react2.jsx)(_index.TableRow, {
|
|
184
|
+
}))))), (0, _react2.jsx)(_index.TableRow, {
|
|
192
185
|
bg: "transparent !important"
|
|
193
186
|
}, (0, _react2.jsx)(_index.TableCell, {
|
|
194
187
|
width: "40%"
|
|
195
|
-
}, (0, _react2.jsx)(_index.Text, null, "MD | 31px
|
|
188
|
+
}, (0, _react2.jsx)(_index.Text, null, "MD |", ' ', isOnyx ? '32px' : '31px')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.Text, {
|
|
196
189
|
fontFamily: "monospace"
|
|
197
190
|
}, ' ', "<IconButton aria-label='create button' variant='inverted'/>"), (0, _react2.jsx)(_index.Text, {
|
|
198
191
|
fontFamily: "monospace"
|
|
199
192
|
}, "<Icon icon={CreateIcon} size='md'/>"), (0, _react2.jsx)(_index.Text, {
|
|
200
193
|
fontFamily: "monospace"
|
|
201
|
-
}, '</IconButton>')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.IconButton, {
|
|
194
|
+
}, '</IconButton>')), (0, _react2.jsx)(_index.TableCell, null, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.IconButton, {
|
|
202
195
|
"aria-label": "create button",
|
|
203
|
-
variant: "inverted"
|
|
204
|
-
sx: {
|
|
205
|
-
width: 'unset'
|
|
206
|
-
}
|
|
196
|
+
variant: "inverted"
|
|
207
197
|
}, (0, _react2.jsx)(_index.Icon, {
|
|
208
198
|
icon: _CreateIcon["default"],
|
|
209
199
|
size: "md",
|
|
210
200
|
title: {
|
|
211
201
|
name: 'Create Icon'
|
|
212
202
|
}
|
|
213
|
-
}))))));
|
|
203
|
+
})))))));
|
|
214
204
|
};
|
|
215
205
|
exports.Sizes = Sizes;
|
|
216
206
|
Sizes.parameters = {
|
|
@@ -33,7 +33,7 @@ var tab = {
|
|
|
33
33
|
cursor: 'default'
|
|
34
34
|
},
|
|
35
35
|
'&.is-selected.is-vertical': {
|
|
36
|
-
bg: 'accent.
|
|
36
|
+
bg: 'accent.99'
|
|
37
37
|
},
|
|
38
38
|
'& > svg': {
|
|
39
39
|
flexShrink: 0
|
|
@@ -51,7 +51,7 @@ var tab = {
|
|
|
51
51
|
'&.is-selected': {
|
|
52
52
|
borderLeft: '3px solid',
|
|
53
53
|
borderLeftColor: 'active',
|
|
54
|
-
bg: 'accent.
|
|
54
|
+
bg: 'accent.99',
|
|
55
55
|
'& > span': {
|
|
56
56
|
p: '0',
|
|
57
57
|
color: 'active'
|
|
@@ -56,6 +56,7 @@ declare const useGetTheme: () => {
|
|
|
56
56
|
accordionItemDefaultLabelTag: string;
|
|
57
57
|
iFrameContentDivBackgroundColor: string;
|
|
58
58
|
rockerButtonGap: string;
|
|
59
|
+
defaultIconSize: import("../..").IconSize;
|
|
59
60
|
buttonLoaderSize: import("../..").LoaderSize;
|
|
60
61
|
themeState: {
|
|
61
62
|
isOnyx: boolean;
|
|
@@ -106,6 +107,7 @@ declare const useGetTheme: () => {
|
|
|
106
107
|
accordionItemMarginLeft: string;
|
|
107
108
|
defaultLoaderSize: number;
|
|
108
109
|
defaultIconColor: string;
|
|
110
|
+
defaultIconSize: import("../..").IconSize;
|
|
109
111
|
buttonLoaderSize: import("../..").LoaderSize;
|
|
110
112
|
name: string;
|
|
111
113
|
themeState: {
|
|
@@ -62,7 +62,7 @@ test('returns size value if size is a t-shirt value', function () {
|
|
|
62
62
|
result = _renderHook2.result;
|
|
63
63
|
var obj = {
|
|
64
64
|
sizeProps: {
|
|
65
|
-
size: '
|
|
65
|
+
size: '48px'
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
expect(result.current).toEqual(obj);
|
|
@@ -112,4 +112,54 @@ test('using custom sizes, returns size value if size is a string value', functio
|
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
expect(result.current).toEqual(obj);
|
|
115
|
+
});
|
|
116
|
+
test('returns size directly if size key is not found in sizes', function () {
|
|
117
|
+
var props = {
|
|
118
|
+
size: 'unknown-size'
|
|
119
|
+
};
|
|
120
|
+
var _renderHook6 = (0, _react.renderHook)(function () {
|
|
121
|
+
return (0, _useTShirtSize["default"])(props);
|
|
122
|
+
}),
|
|
123
|
+
result = _renderHook6.result;
|
|
124
|
+
expect(result.current).toEqual({
|
|
125
|
+
sizeProps: {
|
|
126
|
+
size: 'unknown-size'
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
test('returns value if size value includes rem', function () {
|
|
131
|
+
var customSizes = {
|
|
132
|
+
sm: '1.5rem'
|
|
133
|
+
};
|
|
134
|
+
var props = {
|
|
135
|
+
size: 'sm',
|
|
136
|
+
sizes: customSizes
|
|
137
|
+
};
|
|
138
|
+
var _renderHook7 = (0, _react.renderHook)(function () {
|
|
139
|
+
return (0, _useTShirtSize["default"])(props);
|
|
140
|
+
}),
|
|
141
|
+
result = _renderHook7.result;
|
|
142
|
+
expect(result.current).toEqual({
|
|
143
|
+
sizeProps: {
|
|
144
|
+
size: '1.5rem'
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
test('returns size with px when numeric value found in sizes', function () {
|
|
149
|
+
var customSizes = {
|
|
150
|
+
sm: 8
|
|
151
|
+
};
|
|
152
|
+
var props = {
|
|
153
|
+
size: 'sm',
|
|
154
|
+
sizes: customSizes
|
|
155
|
+
};
|
|
156
|
+
var _renderHook8 = (0, _react.renderHook)(function () {
|
|
157
|
+
return (0, _useTShirtSize["default"])(props);
|
|
158
|
+
}),
|
|
159
|
+
result = _renderHook8.result;
|
|
160
|
+
expect(result.current).toEqual({
|
|
161
|
+
sizeProps: {
|
|
162
|
+
size: '8px'
|
|
163
|
+
}
|
|
164
|
+
});
|
|
115
165
|
});
|
|
@@ -194,11 +194,6 @@ declare const buttons: {
|
|
|
194
194
|
path: {
|
|
195
195
|
fill: string;
|
|
196
196
|
};
|
|
197
|
-
'&.is-focused': {
|
|
198
|
-
outline: string;
|
|
199
|
-
outlineColor: string;
|
|
200
|
-
outlineOffset: string;
|
|
201
|
-
};
|
|
202
197
|
'&.is-hovered': {
|
|
203
198
|
path: {
|
|
204
199
|
fill: string;
|
|
@@ -214,34 +209,28 @@ declare const buttons: {
|
|
|
214
209
|
};
|
|
215
210
|
};
|
|
216
211
|
inverted: {
|
|
217
|
-
borderColor: string;
|
|
218
212
|
path: {
|
|
219
213
|
fill: string;
|
|
220
214
|
};
|
|
221
215
|
'&.is-pressed': {
|
|
222
216
|
backgroundColor: string;
|
|
223
|
-
borderColor: string;
|
|
224
217
|
};
|
|
225
218
|
'&.is-hovered': {
|
|
226
|
-
border: string;
|
|
227
|
-
borderColor: string;
|
|
228
219
|
backgroundColor: string;
|
|
229
220
|
};
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
221
|
+
};
|
|
222
|
+
searchClearButton: {
|
|
223
|
+
'&.is-hovered': {
|
|
224
|
+
backgroundColor: string;
|
|
225
|
+
};
|
|
226
|
+
'&.is-pressed': {
|
|
227
|
+
backgroundColor: string;
|
|
234
228
|
};
|
|
235
229
|
};
|
|
236
230
|
hintButton: {
|
|
237
231
|
path: {
|
|
238
232
|
fill: string;
|
|
239
233
|
};
|
|
240
|
-
'&.is-focused': {
|
|
241
|
-
outline: string;
|
|
242
|
-
outlineColor: string;
|
|
243
|
-
outlineOffset: string;
|
|
244
|
-
};
|
|
245
234
|
'&.is-hovered': {
|
|
246
235
|
path: {
|
|
247
236
|
fill: string;
|
|
@@ -256,18 +245,6 @@ declare const buttons: {
|
|
|
256
245
|
};
|
|
257
246
|
};
|
|
258
247
|
};
|
|
259
|
-
nextGen: {
|
|
260
|
-
'&.is-hovered': {
|
|
261
|
-
path: {
|
|
262
|
-
fill: string;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
'&.is-pressed': {
|
|
266
|
-
path: {
|
|
267
|
-
fill: string;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
248
|
deleteAttachment: {
|
|
272
249
|
backgroundColor: string;
|
|
273
250
|
borderColor: string;
|
|
@@ -282,11 +259,6 @@ declare const buttons: {
|
|
|
282
259
|
path: {
|
|
283
260
|
fill: string;
|
|
284
261
|
};
|
|
285
|
-
'&.is-focused': {
|
|
286
|
-
outline: string;
|
|
287
|
-
outlineColor: string;
|
|
288
|
-
outlineOffset: string;
|
|
289
|
-
};
|
|
290
262
|
'&.is-pressed': {
|
|
291
263
|
backgroundColor: string;
|
|
292
264
|
borderColor: string;
|
|
@@ -299,11 +271,6 @@ declare const buttons: {
|
|
|
299
271
|
path: {
|
|
300
272
|
fill: string;
|
|
301
273
|
};
|
|
302
|
-
'&.is-focused': {
|
|
303
|
-
outline: string;
|
|
304
|
-
outlineColor: string;
|
|
305
|
-
outlineOffset: string;
|
|
306
|
-
};
|
|
307
274
|
'&.is-hovered': {
|
|
308
275
|
path: {
|
|
309
276
|
fill: string;
|
|
@@ -325,11 +292,6 @@ declare const buttons: {
|
|
|
325
292
|
path: {
|
|
326
293
|
fill: string;
|
|
327
294
|
};
|
|
328
|
-
'&.is-focused': {
|
|
329
|
-
outline: string;
|
|
330
|
-
outlineColor: string;
|
|
331
|
-
outlineOffset: string;
|
|
332
|
-
};
|
|
333
295
|
'&.is-pressed': {
|
|
334
296
|
backgroundColor: string;
|
|
335
297
|
borderColor: string;
|
|
@@ -22,56 +22,43 @@ var baseIconButton = {
|
|
|
22
22
|
path: {
|
|
23
23
|
fill: 'dark'
|
|
24
24
|
},
|
|
25
|
-
'&.is-focused': {
|
|
26
|
-
outline: '2px solid',
|
|
27
|
-
outlineColor: 'primary',
|
|
28
|
-
outlineOffset: '3px'
|
|
29
|
-
},
|
|
30
25
|
'&.is-hovered': {
|
|
31
26
|
path: {
|
|
32
|
-
fill:
|
|
27
|
+
fill: 'gray-400'
|
|
33
28
|
},
|
|
34
|
-
backgroundColor: '
|
|
29
|
+
backgroundColor: 'background.secondary'
|
|
35
30
|
},
|
|
36
31
|
'&.is-pressed': {
|
|
37
32
|
backgroundColor: 'gray-800',
|
|
38
33
|
borderColor: 'gray-900',
|
|
39
34
|
path: {
|
|
40
|
-
fill:
|
|
35
|
+
fill: 'gray-400'
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
};
|
|
44
39
|
var hintButton = _objectSpread({}, baseIconButton);
|
|
45
40
|
var iconButtons = {
|
|
46
41
|
base: _objectSpread({}, baseIconButton),
|
|
47
|
-
inverted:
|
|
48
|
-
borderColor: 'transparent !important',
|
|
42
|
+
inverted: {
|
|
49
43
|
path: {
|
|
50
44
|
fill: 'black'
|
|
51
45
|
},
|
|
52
46
|
'&.is-pressed': {
|
|
53
|
-
backgroundColor: _chromaJs["default"].mix('white', 'black', 0.125, 'rgb').hex()
|
|
54
|
-
borderColor: _chromaJs["default"].mix('white', 'black', 0.125, 'rgb').hex()
|
|
47
|
+
backgroundColor: _chromaJs["default"].mix('white', 'black', 0.125, 'rgb').hex()
|
|
55
48
|
},
|
|
56
49
|
'&.is-hovered': {
|
|
57
|
-
border: 'none !important',
|
|
58
|
-
borderColor: 'none !important',
|
|
59
50
|
backgroundColor: 'white'
|
|
60
51
|
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
nextGen: {
|
|
52
|
+
},
|
|
53
|
+
searchClearButton: {
|
|
64
54
|
'&.is-hovered': {
|
|
65
|
-
|
|
66
|
-
fill: 'black'
|
|
67
|
-
}
|
|
55
|
+
backgroundColor: 'background.secondary'
|
|
68
56
|
},
|
|
69
57
|
'&.is-pressed': {
|
|
70
|
-
|
|
71
|
-
fill: 'black'
|
|
72
|
-
}
|
|
58
|
+
backgroundColor: 'background.secondary'
|
|
73
59
|
}
|
|
74
60
|
},
|
|
61
|
+
hintButton: hintButton,
|
|
75
62
|
deleteAttachment: {
|
|
76
63
|
backgroundColor: 'background.secondary',
|
|
77
64
|
borderColor: 'border.attachment',
|
|
@@ -28,6 +28,7 @@ var defaultLoaderSize = 16;
|
|
|
28
28
|
var buttonLoaderSize = '0.5em';
|
|
29
29
|
var iFrameContentDivBackgroundColor = '#F7F8FD';
|
|
30
30
|
var defaultIconColor = 'currentColor';
|
|
31
|
+
var defaultIconSize = 'sm';
|
|
31
32
|
var astroThemeValues = {
|
|
32
33
|
accordionItemDefaultLabelTag: accordionItemDefaultLabelTag,
|
|
33
34
|
activeColor: activeColor,
|
|
@@ -46,6 +47,7 @@ var astroThemeValues = {
|
|
|
46
47
|
accordionItemMarginLeft: accordionItemMarginLeft,
|
|
47
48
|
defaultLoaderSize: defaultLoaderSize,
|
|
48
49
|
defaultIconColor: defaultIconColor,
|
|
50
|
+
defaultIconSize: defaultIconSize,
|
|
49
51
|
buttonLoaderSize: buttonLoaderSize
|
|
50
52
|
};
|
|
51
53
|
exports.astroThemeValues = astroThemeValues;
|
|
@@ -128,7 +128,7 @@ var badge = {
|
|
|
128
128
|
textColor: _colorTokens.nextGenColors.font.base,
|
|
129
129
|
background: _colorTokens.nextGenColors['gray-100']
|
|
130
130
|
};
|
|
131
|
-
var tooltip =
|
|
131
|
+
var tooltip = 'black';
|
|
132
132
|
var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, subColors), _colorTokens.nextGenColors), overrides), {}, {
|
|
133
133
|
badge: badge,
|
|
134
134
|
card: card,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { IconSize } from '../../../../types';
|
|
2
3
|
import { LoaderSize } from '../../../../types';
|
|
3
4
|
export declare const nextGenThemeValues: {
|
|
4
|
-
copyButtonSize:
|
|
5
|
-
breadcrumbIconSize:
|
|
5
|
+
copyButtonSize: IconSize;
|
|
6
|
+
breadcrumbIconSize: IconSize;
|
|
6
7
|
breadcrumbIconMargin: string;
|
|
7
8
|
accordionItemMarginLeft: string;
|
|
8
9
|
pageHeaderTitleMargin: string;
|
|
@@ -51,5 +52,6 @@ export declare const nextGenThemeValues: {
|
|
|
51
52
|
accordionItemDefaultLabelTag: string;
|
|
52
53
|
iFrameContentDivBackgroundColor: string;
|
|
53
54
|
rockerButtonGap: string;
|
|
55
|
+
defaultIconSize: IconSize;
|
|
54
56
|
buttonLoaderSize: LoaderSize;
|
|
55
57
|
};
|
|
@@ -30,6 +30,7 @@ var activeColor = '#1a73e8';
|
|
|
30
30
|
var backgroundBaseColor = 'white';
|
|
31
31
|
var iFrameContentDivBackgroundColor = backgroundBaseColor;
|
|
32
32
|
var defaultIconColor = 'gray-800';
|
|
33
|
+
var defaultIconSize = 'md';
|
|
33
34
|
var buttonLoaderSize = 'sm';
|
|
34
35
|
var nextGenThemeValues = _objectSpread({
|
|
35
36
|
activeColor: activeColor,
|
|
@@ -43,6 +44,7 @@ var nextGenThemeValues = _objectSpread({
|
|
|
43
44
|
accordionItemDefaultLabelTag: accordionItemDefaultLabelTag,
|
|
44
45
|
iFrameContentDivBackgroundColor: iFrameContentDivBackgroundColor,
|
|
45
46
|
rockerButtonGap: '0px',
|
|
47
|
+
defaultIconSize: defaultIconSize,
|
|
46
48
|
buttonLoaderSize: buttonLoaderSize
|
|
47
49
|
}, _customSizes["default"]);
|
|
48
50
|
exports.nextGenThemeValues = nextGenThemeValues;
|
|
@@ -6,19 +6,19 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.iconWrapperSizes = exports["default"] = void 0;
|
|
8
8
|
var _default = {
|
|
9
|
-
xxs: '
|
|
10
|
-
'icon-100': '
|
|
11
|
-
xs: '
|
|
12
|
-
'icon-200': '
|
|
13
|
-
sm: '
|
|
14
|
-
'icon-300': '
|
|
15
|
-
md: '
|
|
16
|
-
'icon-400': '
|
|
17
|
-
'icon-500': '
|
|
18
|
-
'icon-600': '
|
|
19
|
-
'icon-700': '
|
|
20
|
-
'icon-800': '
|
|
21
|
-
'icon-900': '
|
|
9
|
+
xxs: '10px',
|
|
10
|
+
'icon-100': '14px',
|
|
11
|
+
xs: '14px',
|
|
12
|
+
'icon-200': '18px',
|
|
13
|
+
sm: '18px',
|
|
14
|
+
'icon-300': '24px',
|
|
15
|
+
md: '24px',
|
|
16
|
+
'icon-400': '36px',
|
|
17
|
+
'icon-500': '48px',
|
|
18
|
+
'icon-600': '60px',
|
|
19
|
+
'icon-700': '72px',
|
|
20
|
+
'icon-800': '84px',
|
|
21
|
+
'icon-900': '96px'
|
|
22
22
|
};
|
|
23
23
|
exports["default"] = _default;
|
|
24
24
|
var iconWrapperSizes = {
|