@xqmsg/ui-core 0.10.0 → 0.11.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/button/index.d.ts +3 -7
- package/dist/components/input/Input.stories.d.ts +4 -0
- package/dist/theme/components/button.d.ts +68 -207
- package/dist/theme/foundations/colors.d.ts +44 -22
- package/dist/ui-core.cjs.development.js +163 -394
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +163 -394
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -2
- package/src/components/banner/index.tsx +7 -1
- package/src/components/button/Button.stories.tsx +19 -7
- package/src/components/button/index.tsx +7 -19
- package/src/components/button/spinner/index.tsx +2 -7
- package/src/components/input/Input.stories.tsx +45 -59
- package/src/components/input/StackedMultiSelect/index.tsx +11 -11
- package/src/components/input/StackedPilledInput/index.tsx +6 -12
- package/src/components/input/components/dropdown/index.tsx +3 -2
- package/src/components/input/index.tsx +0 -1
- package/src/components/loading/index.tsx +1 -1
- package/src/components/table/Table.stories.tsx +9 -1
- package/src/components/table/index.tsx +1 -1
- package/src/components/table/loading/index.tsx +2 -2
- package/src/components/tabs/index.tsx +1 -1
- package/src/components/text/index.tsx +1 -1
- package/src/theme/components/alert.ts +2 -2
- package/src/theme/components/button.ts +45 -186
- package/src/theme/components/input.ts +1 -1
- package/src/theme/components/link.ts +2 -1
- package/src/theme/components/tabs.ts +3 -3
- package/src/theme/customXQChakraTheme.ts +0 -2
- package/src/theme/foundations/colors.ts +19 -14
- package/src/theme/foundations/shadows.ts +3 -3
- package/dist/theme/components/menu.d.ts +0 -48
- package/src/theme/components/menu.ts +0 -70
package/dist/ui-core.esm.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React, { useMemo, useCallback, useRef, useState, useEffect } from 'react';
|
|
2
2
|
import { Image, Alert as Alert$1, AlertDescription, Box, Flex, Button as Button$2, Text as Text$2, Icon as Icon$1, Spinner, InputGroup, Checkbox, Input as Input$2, RadioGroup, Radio, useOutsideClick, InputRightElement, Textarea as Textarea$1, Switch as Switch$1, FormLabel as FormLabel$1, FormControl, FormErrorMessage, FormHelperText, SimpleGrid, useMediaQuery, Grid, GridItem, IconButton, Collapse, TableContainer, Table as Table$1, Thead, Tr, Th, Tbody, Td, TableCaption, Tabs as Tabs$1, TabList, Tab, extendTheme, ChakraProvider } from '@chakra-ui/react';
|
|
3
|
-
import { FormProvider, useWatch, Controller } from 'react-hook-form';
|
|
4
3
|
import colors$1 from 'src/theme/foundations/colors';
|
|
4
|
+
import { FormProvider, useWatch, Controller } from 'react-hook-form';
|
|
5
5
|
import { CloseIcon as CloseIcon$1, HamburgerIcon } from '@chakra-ui/icons';
|
|
6
6
|
import { HiOutlineRefresh } from 'react-icons/hi';
|
|
7
7
|
import { createBreakpoints, transparentize, mode, getColor } from '@chakra-ui/theme-tools';
|
|
8
|
+
import { defineStyle } from '@chakra-ui/system';
|
|
8
9
|
|
|
9
10
|
var ErrorIcon = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M5.5 5.5L8.5 8.5M8.5 5.5L5.5 8.5M13 7C13 10.3137 10.3137 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7Z\" stroke=\"#F96057\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";
|
|
10
11
|
|
|
@@ -67,43 +68,11 @@ var Banner = function Banner(_ref) {
|
|
|
67
68
|
}, /*#__PURE__*/React.createElement(Button$2, {
|
|
68
69
|
size: "sm",
|
|
69
70
|
bg: "white",
|
|
70
|
-
color:
|
|
71
|
+
color: colors$1.fill.action,
|
|
71
72
|
onClick: onClick
|
|
72
73
|
}, buttonText))));
|
|
73
74
|
};
|
|
74
75
|
|
|
75
|
-
function _extends() {
|
|
76
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
77
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
78
|
-
var source = arguments[i];
|
|
79
|
-
|
|
80
|
-
for (var key in source) {
|
|
81
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
82
|
-
target[key] = source[key];
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
return target;
|
|
88
|
-
};
|
|
89
|
-
return _extends.apply(this, arguments);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
93
|
-
if (source == null) return {};
|
|
94
|
-
var target = {};
|
|
95
|
-
var sourceKeys = Object.keys(source);
|
|
96
|
-
var key, i;
|
|
97
|
-
|
|
98
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
99
|
-
key = sourceKeys[i];
|
|
100
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
101
|
-
target[key] = source[key];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return target;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
76
|
var blue = {
|
|
108
77
|
50: 'hsl(209, 100%, 95%)',
|
|
109
78
|
100: 'hsl(209, 100%, 90%)',
|
|
@@ -152,12 +121,6 @@ var green = {
|
|
|
152
121
|
800: 'hsl(141, 42%, 24%)',
|
|
153
122
|
900: 'hsl(138, 42%, 6%)'
|
|
154
123
|
};
|
|
155
|
-
var aliases = {
|
|
156
|
-
primary: blue,
|
|
157
|
-
success: green,
|
|
158
|
-
warning: orange,
|
|
159
|
-
danger: red
|
|
160
|
-
};
|
|
161
124
|
var label = {
|
|
162
125
|
primary: {
|
|
163
126
|
light: '#000000',
|
|
@@ -173,14 +136,28 @@ var border = {
|
|
|
173
136
|
"default": '#9999991A'
|
|
174
137
|
};
|
|
175
138
|
var fill = {
|
|
176
|
-
light:
|
|
177
|
-
|
|
139
|
+
light: {
|
|
140
|
+
primary: '#74748033',
|
|
141
|
+
secondary: '#74748029',
|
|
142
|
+
tertiary: '#7474801F',
|
|
143
|
+
quaternary: ':#7474800D'
|
|
144
|
+
},
|
|
145
|
+
success: '#d8f1b8',
|
|
178
146
|
error: '#ffbdb9',
|
|
179
147
|
warning: '#ffefb4',
|
|
180
|
-
|
|
148
|
+
action: '#0082ff'
|
|
181
149
|
};
|
|
182
|
-
|
|
183
|
-
|
|
150
|
+
var semantic = {
|
|
151
|
+
action: '#488ef7',
|
|
152
|
+
success: '#5fcf65',
|
|
153
|
+
warning: '#f8c352',
|
|
154
|
+
error: '#f96057'
|
|
155
|
+
};
|
|
156
|
+
var colors = {
|
|
157
|
+
label: label,
|
|
158
|
+
border: border,
|
|
159
|
+
fill: fill,
|
|
160
|
+
semantic: semantic,
|
|
184
161
|
transparent: 'transparent',
|
|
185
162
|
current: 'currentColor',
|
|
186
163
|
black: '#000000',
|
|
@@ -188,11 +165,7 @@ var colors = /*#__PURE__*/_extends({
|
|
|
188
165
|
lightBlue: '#29abe2',
|
|
189
166
|
coolGray: '#F6F7FB',
|
|
190
167
|
darkBlue: '#292f4c',
|
|
191
|
-
backdrop: '#fbfcff'
|
|
192
|
-
}, aliases, {
|
|
193
|
-
label: label,
|
|
194
|
-
border: border,
|
|
195
|
-
fill: fill,
|
|
168
|
+
backdrop: '#fbfcff',
|
|
196
169
|
whiteAlpha: {
|
|
197
170
|
50: 'rgba(255, 255, 255, 0.04)',
|
|
198
171
|
100: 'rgba(255, 255, 255, 0.06)',
|
|
@@ -233,7 +206,7 @@ var colors = /*#__PURE__*/_extends({
|
|
|
233
206
|
orange: orange,
|
|
234
207
|
green: green,
|
|
235
208
|
blue: blue
|
|
236
|
-
}
|
|
209
|
+
};
|
|
237
210
|
|
|
238
211
|
/**
|
|
239
212
|
* A functional React component utilized to render the `Icon` for the `Breadcrumbs` component.
|
|
@@ -322,7 +295,6 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
322
295
|
}));
|
|
323
296
|
};
|
|
324
297
|
|
|
325
|
-
var _excluded = ["onClick", "text", "type", "ariaLabel", "variant", "colorScheme", "style", "size", "disabled", "className"];
|
|
326
298
|
/**
|
|
327
299
|
* A functional React component utilized to render the `Button` component
|
|
328
300
|
*/
|
|
@@ -330,30 +302,23 @@ var _excluded = ["onClick", "text", "type", "ariaLabel", "variant", "colorScheme
|
|
|
330
302
|
var Button = function Button(_ref) {
|
|
331
303
|
var onClick = _ref.onClick,
|
|
332
304
|
text = _ref.text,
|
|
333
|
-
type = _ref.type,
|
|
305
|
+
_ref$type = _ref.type,
|
|
306
|
+
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
334
307
|
ariaLabel = _ref.ariaLabel,
|
|
335
308
|
_ref$variant = _ref.variant,
|
|
336
309
|
variant = _ref$variant === void 0 ? 'solid' : _ref$variant,
|
|
337
|
-
_ref$colorScheme = _ref.colorScheme,
|
|
338
|
-
colorScheme = _ref$colorScheme === void 0 ? 'primary' : _ref$colorScheme,
|
|
339
|
-
style = _ref.style,
|
|
340
|
-
_ref$size = _ref.size,
|
|
341
|
-
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
342
310
|
disabled = _ref.disabled,
|
|
343
311
|
className = _ref.className,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
return /*#__PURE__*/React.createElement(Button$2, Object.assign({
|
|
312
|
+
width = _ref.width;
|
|
313
|
+
return /*#__PURE__*/React.createElement(Button$2, {
|
|
347
314
|
onClick: onClick,
|
|
348
315
|
type: type,
|
|
349
316
|
variant: variant,
|
|
350
|
-
colorScheme: colorScheme,
|
|
351
|
-
size: size,
|
|
352
317
|
disabled: disabled,
|
|
353
318
|
"aria-label": ariaLabel,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
},
|
|
319
|
+
className: className,
|
|
320
|
+
width: width === 'variable' ? '100%' : 'fit-content'
|
|
321
|
+
}, text);
|
|
357
322
|
};
|
|
358
323
|
|
|
359
324
|
var GoogleLogo = "<svg viewBox=\"0 0 533.5 544.3\" xmlns=\"http://www.w3.org/2000/svg\"><path\n d=\"M533.5 278.4c0-18.5-1.5-37.1-4.7-55.3H272.1v104.8h147c-6.1 33.8-25.7 63.7-54.4 82.7v68h87.7c51.5-47.4 81.1-117.4 81.1-200.2z\"\n fill=\"#4285f4\"\n /><path\n d=\"M272.1 544.3c73.4 0 135.3-24.1 180.4-65.7l-87.7-68c-24.4 16.6-55.9 26-92.6 26-71 0-131.2-47.9-152.8-112.3H28.9v70.1c46.2 91.9 140.3 149.9 243.2 149.9z\"\n fill=\"#34a853\"\n /><path\n d=\"M119.3 324.3c-11.4-33.8-11.4-70.4 0-104.2V150H28.9c-38.6 76.9-38.6 167.5 0 244.4l90.4-70.1z\"\n fill=\"#fbbc04\"\n /><path\n d=\"M272.1 107.7c38.8-.6 76.3 14 104.4 40.8l77.7-77.7C405 24.6 339.7-.8 272.1 0 169.2 0 75.1 58 28.9 150l90.4 70.1c21.5-64.5 81.8-112.4 152.8-112.4z\"\n fill=\"#ea4335\"\n /></svg>";
|
|
@@ -398,28 +363,20 @@ var SpinnerButton = function SpinnerButton(_ref) {
|
|
|
398
363
|
onClick = _ref.onClick,
|
|
399
364
|
type = _ref.type,
|
|
400
365
|
ariaLabel = _ref.ariaLabel,
|
|
401
|
-
style = _ref.style,
|
|
402
366
|
_ref$variant = _ref.variant,
|
|
403
367
|
variant = _ref$variant === void 0 ? 'solid' : _ref$variant,
|
|
404
|
-
_ref$colorScheme = _ref.colorScheme,
|
|
405
|
-
colorScheme = _ref$colorScheme === void 0 ? 'primary' : _ref$colorScheme,
|
|
406
|
-
_ref$size = _ref.size,
|
|
407
|
-
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
408
368
|
disabled = _ref.disabled,
|
|
409
369
|
className = _ref.className;
|
|
410
370
|
return /*#__PURE__*/React.createElement(Button$2, {
|
|
411
371
|
spinner: /*#__PURE__*/React.createElement(Spinner, {
|
|
412
|
-
size:
|
|
372
|
+
size: 'md'
|
|
413
373
|
}),
|
|
414
374
|
isLoading: isLoading,
|
|
415
375
|
onClick: onClick,
|
|
416
376
|
type: type,
|
|
417
377
|
variant: variant,
|
|
418
|
-
colorScheme: colorScheme,
|
|
419
|
-
size: size,
|
|
420
378
|
disabled: disabled,
|
|
421
379
|
"aria-label": ariaLabel,
|
|
422
|
-
style: style,
|
|
423
380
|
className: className
|
|
424
381
|
}, text);
|
|
425
382
|
};
|
|
@@ -458,7 +415,39 @@ var StackedCheckboxGroup = /*#__PURE__*/React.forwardRef(function (_ref2, _ref)
|
|
|
458
415
|
}));
|
|
459
416
|
});
|
|
460
417
|
|
|
461
|
-
|
|
418
|
+
function _extends() {
|
|
419
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
420
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
421
|
+
var source = arguments[i];
|
|
422
|
+
|
|
423
|
+
for (var key in source) {
|
|
424
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
425
|
+
target[key] = source[key];
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
return target;
|
|
431
|
+
};
|
|
432
|
+
return _extends.apply(this, arguments);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
436
|
+
if (source == null) return {};
|
|
437
|
+
var target = {};
|
|
438
|
+
var sourceKeys = Object.keys(source);
|
|
439
|
+
var key, i;
|
|
440
|
+
|
|
441
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
442
|
+
key = sourceKeys[i];
|
|
443
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
444
|
+
target[key] = source[key];
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
return target;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
var _excluded = ["type", "isRequired"];
|
|
462
451
|
/**
|
|
463
452
|
* A functional React component utilized to render the `StackedInput` component.
|
|
464
453
|
*/
|
|
@@ -467,7 +456,7 @@ var StackedInput = /*#__PURE__*/React.forwardRef(function (_ref2, _ref) {
|
|
|
467
456
|
var _ref2$type = _ref2.type,
|
|
468
457
|
type = _ref2$type === void 0 ? 'text' : _ref2$type,
|
|
469
458
|
isRequired = _ref2.isRequired,
|
|
470
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded
|
|
459
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded);
|
|
471
460
|
|
|
472
461
|
return /*#__PURE__*/React.createElement(Input$2, Object.assign({
|
|
473
462
|
ref: _ref,
|
|
@@ -533,14 +522,14 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
533
522
|
color: colors$1.label.primary.light,
|
|
534
523
|
_hover: {
|
|
535
524
|
color: colors$1.label.primary.dark,
|
|
536
|
-
bg: colors$1.fill.
|
|
525
|
+
bg: colors$1.fill.action,
|
|
537
526
|
borderRadius: '4px'
|
|
538
527
|
}
|
|
539
528
|
}, option.label));
|
|
540
529
|
});
|
|
541
530
|
}, [onSelectItem, options]);
|
|
542
531
|
return /*#__PURE__*/React.createElement(Box, {
|
|
543
|
-
bg: colors$1.fill.light,
|
|
532
|
+
bg: colors$1.fill.light.quaternary,
|
|
544
533
|
backdropFilter: "blur(64px)",
|
|
545
534
|
borderRadius: "4px",
|
|
546
535
|
mt: "3px",
|
|
@@ -549,11 +538,12 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
549
538
|
px: "8px",
|
|
550
539
|
py: "4px",
|
|
551
540
|
position: "absolute",
|
|
552
|
-
width: "100%"
|
|
541
|
+
width: "100%",
|
|
542
|
+
zIndex: "100"
|
|
553
543
|
}, DropdownContent);
|
|
554
544
|
};
|
|
555
545
|
|
|
556
|
-
var _excluded$
|
|
546
|
+
var _excluded$1 = ["isRequired", "options", "name", "setValue", "onChange"];
|
|
557
547
|
/**
|
|
558
548
|
* A functional React component utilized to render the `StackedSelect` component.
|
|
559
549
|
*/
|
|
@@ -563,7 +553,7 @@ var StackedSelect = /*#__PURE__*/React.forwardRef(function (_ref2, _ref) {
|
|
|
563
553
|
options = _ref2.options,
|
|
564
554
|
name = _ref2.name,
|
|
565
555
|
setValue = _ref2.setValue,
|
|
566
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
556
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1);
|
|
567
557
|
|
|
568
558
|
var dropdownRef = useRef(null);
|
|
569
559
|
|
|
@@ -765,7 +755,7 @@ var StackedMultiSelect = /*#__PURE__*/React.forwardRef(function (_ref2, _ref) {
|
|
|
765
755
|
onClick: function onClick() {
|
|
766
756
|
return !disabled && setIsFocussed(true);
|
|
767
757
|
},
|
|
768
|
-
bg: disabled ? colors.fill.light : '#ffffff',
|
|
758
|
+
bg: disabled ? colors.fill.light.quaternary : '#ffffff',
|
|
769
759
|
cursor: disabled ? 'not-allowed' : 'pointer'
|
|
770
760
|
}, /*#__PURE__*/React.createElement(Flex, {
|
|
771
761
|
height: "28px",
|
|
@@ -954,7 +944,7 @@ var StackedPilledInput = /*#__PURE__*/React.forwardRef(function (_ref2, _ref) {
|
|
|
954
944
|
(_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
|
|
955
945
|
}
|
|
956
946
|
},
|
|
957
|
-
bg: disabled ? colors.fill.light : '#ffffff',
|
|
947
|
+
bg: disabled ? colors.fill.light.quaternary : '#ffffff',
|
|
958
948
|
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
959
949
|
ref: inputWrapperRef
|
|
960
950
|
}, /*#__PURE__*/React.createElement(Flex, {
|
|
@@ -1380,7 +1370,7 @@ var LoadingIndicator = function LoadingIndicator(_ref) {
|
|
|
1380
1370
|
className: "loading-indicator " + (className != null ? className : '')
|
|
1381
1371
|
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
1382
1372
|
size: size,
|
|
1383
|
-
color: colors.
|
|
1373
|
+
color: colors.fill.action,
|
|
1384
1374
|
flex: "none",
|
|
1385
1375
|
thickness: thickness,
|
|
1386
1376
|
speed: speed,
|
|
@@ -1468,10 +1458,10 @@ var TableLoadingRows = function TableLoadingRows(_ref) {
|
|
|
1468
1458
|
justifyContent: "center",
|
|
1469
1459
|
alignItems: "center",
|
|
1470
1460
|
height: 20,
|
|
1471
|
-
borderTopColor: colors.
|
|
1461
|
+
borderTopColor: colors.fill.light.quaternary
|
|
1472
1462
|
}, isLoading ? /*#__PURE__*/React.createElement(Spinner, {
|
|
1473
1463
|
size: "lg",
|
|
1474
|
-
color: colors.
|
|
1464
|
+
color: colors.fill.action
|
|
1475
1465
|
}) : /*#__PURE__*/React.createElement(IconButton, {
|
|
1476
1466
|
"aria-label": "Fetch more rows",
|
|
1477
1467
|
icon: /*#__PURE__*/React.createElement(HiOutlineRefresh, null),
|
|
@@ -1502,7 +1492,7 @@ function Table(_ref) {
|
|
|
1502
1492
|
var columnsAsConst = generateTableColumnsAsConst(columns);
|
|
1503
1493
|
return /*#__PURE__*/React.createElement(TableContainer, {
|
|
1504
1494
|
border: "1px",
|
|
1505
|
-
borderColor: colors.
|
|
1495
|
+
borderColor: colors.fill.light.quaternary,
|
|
1506
1496
|
overflowX: "auto",
|
|
1507
1497
|
bg: "white",
|
|
1508
1498
|
borderRadius: "md",
|
|
@@ -1553,7 +1543,7 @@ var TabsWrapper = function TabsWrapper(_ref) {
|
|
|
1553
1543
|
sm: 'row'
|
|
1554
1544
|
},
|
|
1555
1545
|
border: "1px",
|
|
1556
|
-
borderColor: colors.
|
|
1546
|
+
borderColor: colors.fill.light.quaternary,
|
|
1557
1547
|
bg: "white",
|
|
1558
1548
|
borderRadius: "md",
|
|
1559
1549
|
borderBottom: 0,
|
|
@@ -1578,7 +1568,7 @@ var Text = function Text(_ref) {
|
|
|
1578
1568
|
fontWeight = _ref.fontWeight,
|
|
1579
1569
|
variant = _ref.variant,
|
|
1580
1570
|
_ref$color = _ref.color,
|
|
1581
|
-
color = _ref$color === void 0 ? colors.
|
|
1571
|
+
color = _ref$color === void 0 ? colors.label.primary.light : _ref$color,
|
|
1582
1572
|
className = _ref.className;
|
|
1583
1573
|
return /*#__PURE__*/React.createElement(Text$2, {
|
|
1584
1574
|
fontSize: fontSize,
|
|
@@ -1611,9 +1601,9 @@ var shadows = {
|
|
|
1611
1601
|
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
|
|
1612
1602
|
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
|
|
1613
1603
|
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
|
|
1614
|
-
insetOutline: "inset 0 0 0 2px " + colors.
|
|
1615
|
-
outline: "0 0 0 2px " + colors.
|
|
1616
|
-
outlineDanger600: "0 0 0 2px " + colors.
|
|
1604
|
+
insetOutline: "inset 0 0 0 2px " + colors.fill.action,
|
|
1605
|
+
outline: "0 0 0 2px " + colors.fill.action,
|
|
1606
|
+
outlineDanger600: "0 0 0 2px " + colors.fill.error,
|
|
1617
1607
|
inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
|
|
1618
1608
|
none: 'none',
|
|
1619
1609
|
'dark-lg': 'rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px'
|
|
@@ -1637,7 +1627,7 @@ var baseStyle = {
|
|
|
1637
1627
|
function variantPositive() {
|
|
1638
1628
|
return {
|
|
1639
1629
|
container: {
|
|
1640
|
-
bg: colors.fill.
|
|
1630
|
+
bg: colors.fill.success
|
|
1641
1631
|
}
|
|
1642
1632
|
};
|
|
1643
1633
|
}
|
|
@@ -1661,7 +1651,7 @@ function variantError() {
|
|
|
1661
1651
|
function variantNeutral() {
|
|
1662
1652
|
return {
|
|
1663
1653
|
container: {
|
|
1664
|
-
bg: colors.fill.light
|
|
1654
|
+
bg: colors.fill.light.tertiary
|
|
1665
1655
|
}
|
|
1666
1656
|
};
|
|
1667
1657
|
}
|
|
@@ -1737,223 +1727,68 @@ var Badge = {
|
|
|
1737
1727
|
defaultProps: defaultProps$1
|
|
1738
1728
|
};
|
|
1739
1729
|
|
|
1740
|
-
var baseStyle$2 = {
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1730
|
+
var baseStyle$2 = /*#__PURE__*/defineStyle({
|
|
1731
|
+
borderRadius: '4px',
|
|
1732
|
+
fontSize: '18px',
|
|
1733
|
+
bg: colors.fill.action,
|
|
1734
|
+
color: colors.label.primary.dark,
|
|
1735
|
+
px: '8px',
|
|
1736
|
+
py: '4px',
|
|
1737
|
+
bgGradient: 'linear-gradient(#FFFFFF29, #FFFFFF00)',
|
|
1738
|
+
shadow: '1px 0.5px #0000001A',
|
|
1747
1739
|
_disabled: {
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
};
|
|
1753
|
-
|
|
1754
|
-
var focusShadow = function focusShadow(color) {
|
|
1755
|
-
return "0 0 0 3px " + color;
|
|
1756
|
-
};
|
|
1757
|
-
|
|
1758
|
-
function variantGhost(props) {
|
|
1759
|
-
var c = props.colorScheme,
|
|
1760
|
-
theme = props.theme;
|
|
1761
|
-
|
|
1762
|
-
if (c === 'gray') {
|
|
1763
|
-
var _focusColor = getColor(theme, 'gray.100');
|
|
1764
|
-
|
|
1765
|
-
return {
|
|
1766
|
-
color: mode("gray.500", "whiteAlpha.900")(props),
|
|
1767
|
-
_hover: {
|
|
1768
|
-
bg: mode("gray.50", "whiteAlpha.200")(props)
|
|
1769
|
-
},
|
|
1770
|
-
_active: {
|
|
1771
|
-
bg: mode("gray.200", "whiteAlpha.300")(props)
|
|
1772
|
-
},
|
|
1773
|
-
_focus: {
|
|
1774
|
-
boxShadow: focusShadow(_focusColor)
|
|
1775
|
-
}
|
|
1776
|
-
};
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
var darkHoverBg = transparentize(c + ".200", 0.12)(theme);
|
|
1780
|
-
var darkActiveBg = transparentize(c + ".200", 0.24)(theme);
|
|
1781
|
-
var focusColor = getColor(theme, c + ".200");
|
|
1782
|
-
return {
|
|
1783
|
-
color: mode(c + ".500", c + ".200")(props),
|
|
1784
|
-
bg: 'transparent',
|
|
1785
|
-
_hover: {
|
|
1786
|
-
bg: mode(c + ".50", darkHoverBg)(props)
|
|
1787
|
-
},
|
|
1788
|
-
_active: {
|
|
1789
|
-
bg: mode(c + ".100", darkActiveBg)(props)
|
|
1790
|
-
},
|
|
1791
|
-
_focus: {
|
|
1792
|
-
boxShadow: focusShadow(focusColor)
|
|
1793
|
-
}
|
|
1794
|
-
};
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
function variantOutline$1(props) {
|
|
1798
|
-
var c = props.colorScheme;
|
|
1799
|
-
var borderColor = mode("gray.200", "whiteAlpha.300")(props);
|
|
1800
|
-
return _extends({
|
|
1801
|
-
border: '1px solid',
|
|
1802
|
-
borderColor: c === 'gray' ? borderColor : 'currentColor'
|
|
1803
|
-
}, variantGhost(props));
|
|
1804
|
-
}
|
|
1805
|
-
/** Accessible color overrides for less accessible colors. */
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
var accessibleColorMap = {
|
|
1809
|
-
yellow: {
|
|
1810
|
-
bg: 'yellow.400',
|
|
1811
|
-
color: 'black',
|
|
1812
|
-
hoverBg: 'yellow.500',
|
|
1813
|
-
activeBg: 'yellow.600'
|
|
1740
|
+
backgroundColor: 'gray.100',
|
|
1741
|
+
borderColor: 'gray.100',
|
|
1742
|
+
color: 'gray.500',
|
|
1743
|
+
pointerEvents: 'none'
|
|
1814
1744
|
},
|
|
1815
|
-
|
|
1816
|
-
bg:
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1745
|
+
_hover: {
|
|
1746
|
+
bg: colors.fill.action
|
|
1747
|
+
},
|
|
1748
|
+
_active: {
|
|
1749
|
+
color: colors.label.primary.dark,
|
|
1750
|
+
bg: colors.fill.action,
|
|
1751
|
+
bgGradient: colors.fill.light.quaternary
|
|
1752
|
+
},
|
|
1753
|
+
_focus: {
|
|
1754
|
+
bg: colors.fill.action,
|
|
1755
|
+
border: "2px solid " + colors.border.focus
|
|
1820
1756
|
}
|
|
1821
|
-
};
|
|
1822
|
-
|
|
1823
|
-
function variantSolid$1(props) {
|
|
1824
|
-
var c = props.colorScheme,
|
|
1825
|
-
theme = props.theme;
|
|
1826
|
-
if (c === 'gray') return {
|
|
1827
|
-
color: 'gray.500',
|
|
1828
|
-
bg: mode("gray.50", "whiteAlpha.200")(props),
|
|
1829
|
-
_hover: {
|
|
1830
|
-
bg: mode("gray.100", "whiteAlpha.300")(props)
|
|
1831
|
-
},
|
|
1832
|
-
_active: {
|
|
1833
|
-
bg: mode("gray.200", "whiteAlpha.400")(props)
|
|
1834
|
-
}
|
|
1835
|
-
};
|
|
1836
|
-
if (c === 'darkgray') return {
|
|
1837
|
-
color: 'white',
|
|
1838
|
-
bg: 'gray.400',
|
|
1839
|
-
_hover: {
|
|
1840
|
-
bg: 'gray.600'
|
|
1841
|
-
},
|
|
1842
|
-
_active: {
|
|
1843
|
-
bg: 'gray.700'
|
|
1844
|
-
}
|
|
1845
|
-
};
|
|
1757
|
+
});
|
|
1846
1758
|
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
_ref$color = _ref.color,
|
|
1851
|
-
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
1852
|
-
_ref$hoverBg = _ref.hoverBg,
|
|
1853
|
-
hoverBg = _ref$hoverBg === void 0 ? c + ".600" : _ref$hoverBg,
|
|
1854
|
-
_ref$activeBg = _ref.activeBg,
|
|
1855
|
-
activeBg = _ref$activeBg === void 0 ? c + ".700" : _ref$activeBg;
|
|
1759
|
+
var variantSolid$1 = function variantSolid() {
|
|
1760
|
+
return _extends({}, baseStyle$2);
|
|
1761
|
+
};
|
|
1856
1762
|
|
|
1857
|
-
|
|
1858
|
-
return {
|
|
1859
|
-
|
|
1860
|
-
|
|
1763
|
+
var variantOutline$1 = function variantOutline() {
|
|
1764
|
+
return _extends({}, baseStyle$2, {
|
|
1765
|
+
color: colors.fill.action,
|
|
1766
|
+
bg: colors.label.primary.dark,
|
|
1767
|
+
border: 'none',
|
|
1861
1768
|
_hover: {
|
|
1862
|
-
bg:
|
|
1769
|
+
bg: colors.label.primary.dark
|
|
1863
1770
|
},
|
|
1864
1771
|
_active: {
|
|
1865
|
-
|
|
1772
|
+
color: colors.fill.action,
|
|
1773
|
+
bg: colors.label.primary.dark,
|
|
1774
|
+
bgGradient: colors.fill.light.quaternary
|
|
1866
1775
|
},
|
|
1867
1776
|
_focus: {
|
|
1868
|
-
|
|
1777
|
+
bg: colors.label.primary.dark
|
|
1869
1778
|
}
|
|
1870
|
-
};
|
|
1871
|
-
}
|
|
1872
|
-
/**
|
|
1873
|
-
* A variant that displays a solid variant when an active CSS class is
|
|
1874
|
-
* detected, otherwise display a ghost variant. This is useful for pill nav filters.
|
|
1875
|
-
*/
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
function variantActiveSolid(props) {
|
|
1879
|
-
return _extends({}, variantGhost(_extends({}, props, {
|
|
1880
|
-
colorScheme: 'gray'
|
|
1881
|
-
})), {
|
|
1882
|
-
'&.active': _extends({}, variantSolid$1(props))
|
|
1883
1779
|
});
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
function variantLink(props) {
|
|
1887
|
-
var c = props.colorScheme;
|
|
1888
|
-
return {
|
|
1889
|
-
padding: 0,
|
|
1890
|
-
height: 'auto',
|
|
1891
|
-
lineHeight: 'normal',
|
|
1892
|
-
color: mode(c + ".500", c + ".200")(props),
|
|
1893
|
-
_hover: {
|
|
1894
|
-
textDecoration: 'underline'
|
|
1895
|
-
},
|
|
1896
|
-
_active: {
|
|
1897
|
-
color: mode(c + ".700", c + ".500")(props)
|
|
1898
|
-
}
|
|
1899
|
-
};
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
var variantUnstyled = {
|
|
1903
|
-
bg: 'none',
|
|
1904
|
-
color: 'inherit',
|
|
1905
|
-
display: 'inline',
|
|
1906
|
-
lineHeight: 'inherit',
|
|
1907
|
-
m: 0,
|
|
1908
|
-
p: 0
|
|
1909
1780
|
};
|
|
1781
|
+
|
|
1910
1782
|
var variants$2 = {
|
|
1911
|
-
|
|
1912
|
-
outline: variantOutline$1
|
|
1913
|
-
solid: variantSolid$1,
|
|
1914
|
-
activeSolid: variantActiveSolid,
|
|
1915
|
-
link: variantLink,
|
|
1916
|
-
unstyled: variantUnstyled
|
|
1917
|
-
};
|
|
1918
|
-
var sizes = {
|
|
1919
|
-
lg: {
|
|
1920
|
-
borderRadius: 'full',
|
|
1921
|
-
h: 12,
|
|
1922
|
-
minW: 20,
|
|
1923
|
-
fontSize: 'lg',
|
|
1924
|
-
px: 6
|
|
1925
|
-
},
|
|
1926
|
-
md: {
|
|
1927
|
-
borderRadius: 'full',
|
|
1928
|
-
h: 10,
|
|
1929
|
-
minW: 20,
|
|
1930
|
-
fontSize: 'md',
|
|
1931
|
-
px: 4
|
|
1932
|
-
},
|
|
1933
|
-
sm: {
|
|
1934
|
-
borderRadius: 'full',
|
|
1935
|
-
h: 8,
|
|
1936
|
-
minW: 8,
|
|
1937
|
-
fontSize: 'sm',
|
|
1938
|
-
px: 3
|
|
1939
|
-
},
|
|
1940
|
-
xs: {
|
|
1941
|
-
borderRadius: 'full',
|
|
1942
|
-
h: 6,
|
|
1943
|
-
minW: 6,
|
|
1944
|
-
fontSize: 'xs',
|
|
1945
|
-
px: 2
|
|
1946
|
-
}
|
|
1783
|
+
solid: /*#__PURE__*/variantSolid$1(),
|
|
1784
|
+
outline: /*#__PURE__*/variantOutline$1()
|
|
1947
1785
|
};
|
|
1948
1786
|
var defaultProps$2 = {
|
|
1949
|
-
|
|
1950
|
-
size: 'md',
|
|
1951
|
-
colorScheme: 'primary'
|
|
1787
|
+
solid: 'solid'
|
|
1952
1788
|
};
|
|
1953
1789
|
var Button$1 = {
|
|
1954
1790
|
baseStyle: baseStyle$2,
|
|
1955
1791
|
variants: variants$2,
|
|
1956
|
-
sizes: sizes,
|
|
1957
1792
|
defaultProps: defaultProps$2
|
|
1958
1793
|
};
|
|
1959
1794
|
|
|
@@ -2058,7 +1893,7 @@ var baseStyle$7 = {
|
|
|
2058
1893
|
borderColor: colors.border["default"],
|
|
2059
1894
|
_disabled: {
|
|
2060
1895
|
cursor: 'not-allowed',
|
|
2061
|
-
bg: colors.fill.light,
|
|
1896
|
+
bg: colors.fill.light.quaternary,
|
|
2062
1897
|
color: colors.label.secondary.light
|
|
2063
1898
|
},
|
|
2064
1899
|
_focus: {
|
|
@@ -2082,7 +1917,7 @@ var Input$1 = {
|
|
|
2082
1917
|
};
|
|
2083
1918
|
|
|
2084
1919
|
var baseStyle$8 = {
|
|
2085
|
-
color:
|
|
1920
|
+
color: colors.fill.action,
|
|
2086
1921
|
textDecoration: 'underline',
|
|
2087
1922
|
transition: 'none',
|
|
2088
1923
|
_hover: {
|
|
@@ -2189,72 +2024,7 @@ var Link = {
|
|
|
2189
2024
|
variants: variants$5
|
|
2190
2025
|
};
|
|
2191
2026
|
|
|
2192
|
-
var parts$4 = ['
|
|
2193
|
-
|
|
2194
|
-
function baseStyleList(props) {
|
|
2195
|
-
return {
|
|
2196
|
-
bg: mode("#fff", "gray.700")(props),
|
|
2197
|
-
boxShadow: mode("2xl", "dark-lg")(props),
|
|
2198
|
-
color: 'inherit',
|
|
2199
|
-
minW: '3xs',
|
|
2200
|
-
py: 2,
|
|
2201
|
-
zIndex: 'docked',
|
|
2202
|
-
borderRadius: 'md',
|
|
2203
|
-
borderWidth: 0,
|
|
2204
|
-
overflow: 'hidden'
|
|
2205
|
-
};
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
function baseStyleItem(props) {
|
|
2209
|
-
return {
|
|
2210
|
-
fontSize: 'sm',
|
|
2211
|
-
py: 2,
|
|
2212
|
-
px: 4,
|
|
2213
|
-
transition: 'background 50ms ease-in 0s',
|
|
2214
|
-
_focus: {
|
|
2215
|
-
bg: mode("blue.50", "whiteAlpha.200")(props)
|
|
2216
|
-
},
|
|
2217
|
-
_hover: {
|
|
2218
|
-
bg: mode("blue.50", "whiteAlpha.200")(props)
|
|
2219
|
-
},
|
|
2220
|
-
_active: {
|
|
2221
|
-
bg: mode("gray.200", "whiteAlpha.200")(props)
|
|
2222
|
-
},
|
|
2223
|
-
_expanded: {
|
|
2224
|
-
bg: mode("gray.100", "whiteAlpha.100")(props)
|
|
2225
|
-
},
|
|
2226
|
-
_disabled: {
|
|
2227
|
-
opacity: 0.4,
|
|
2228
|
-
cursor: 'not-allowed'
|
|
2229
|
-
}
|
|
2230
|
-
};
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
var baseStyleGroupTitle = {
|
|
2234
|
-
mx: 4,
|
|
2235
|
-
my: 2,
|
|
2236
|
-
fontWeight: 'semibold',
|
|
2237
|
-
fontSize: 'sm'
|
|
2238
|
-
};
|
|
2239
|
-
var baseStyleCommand = {
|
|
2240
|
-
opacity: 0.6
|
|
2241
|
-
};
|
|
2242
|
-
|
|
2243
|
-
var baseStyle$9 = function baseStyle(props) {
|
|
2244
|
-
return {
|
|
2245
|
-
list: baseStyleList(props),
|
|
2246
|
-
item: baseStyleItem(props),
|
|
2247
|
-
groupTitle: baseStyleGroupTitle,
|
|
2248
|
-
command: baseStyleCommand
|
|
2249
|
-
};
|
|
2250
|
-
};
|
|
2251
|
-
|
|
2252
|
-
var Menu = {
|
|
2253
|
-
parts: parts$4,
|
|
2254
|
-
baseStyle: baseStyle$9
|
|
2255
|
-
};
|
|
2256
|
-
|
|
2257
|
-
var parts$5 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
|
|
2027
|
+
var parts$4 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
|
|
2258
2028
|
var baseStyleOverlay = {
|
|
2259
2029
|
bg: 'blackAlpha.600',
|
|
2260
2030
|
zIndex: 'modal'
|
|
@@ -2328,7 +2098,7 @@ var baseStyleFooter = {
|
|
|
2328
2098
|
pb: 16
|
|
2329
2099
|
};
|
|
2330
2100
|
|
|
2331
|
-
var baseStyle$
|
|
2101
|
+
var baseStyle$9 = function baseStyle(props) {
|
|
2332
2102
|
return {
|
|
2333
2103
|
overlay: baseStyleOverlay,
|
|
2334
2104
|
dialogContainer: baseStyleDialogContainer(props),
|
|
@@ -2421,7 +2191,7 @@ function getSize(value) {
|
|
|
2421
2191
|
};
|
|
2422
2192
|
}
|
|
2423
2193
|
|
|
2424
|
-
var sizes
|
|
2194
|
+
var sizes = {
|
|
2425
2195
|
xs: /*#__PURE__*/getSize('xs'),
|
|
2426
2196
|
sm: /*#__PURE__*/getSize('sm'),
|
|
2427
2197
|
md: /*#__PURE__*/getSize('md'),
|
|
@@ -2452,16 +2222,16 @@ var defaultProps$5 = {
|
|
|
2452
2222
|
isCentered: true
|
|
2453
2223
|
};
|
|
2454
2224
|
var Modal = {
|
|
2455
|
-
parts: parts$
|
|
2456
|
-
baseStyle: baseStyle$
|
|
2457
|
-
sizes: sizes
|
|
2225
|
+
parts: parts$4,
|
|
2226
|
+
baseStyle: baseStyle$9,
|
|
2227
|
+
sizes: sizes,
|
|
2458
2228
|
variants: variants$6,
|
|
2459
2229
|
defaultProps: defaultProps$5
|
|
2460
2230
|
};
|
|
2461
2231
|
|
|
2462
2232
|
var defaultProps$6 = Input$1.defaultProps,
|
|
2463
2233
|
variants$7 = Input$1.variants;
|
|
2464
|
-
var parts$
|
|
2234
|
+
var parts$5 = ['field', 'icon'];
|
|
2465
2235
|
|
|
2466
2236
|
function baseStyleField() {
|
|
2467
2237
|
return _extends({}, Input$1.baseStyle.field, {
|
|
@@ -2482,7 +2252,7 @@ var baseStyleInput = {
|
|
|
2482
2252
|
}
|
|
2483
2253
|
};
|
|
2484
2254
|
|
|
2485
|
-
var baseStyle$
|
|
2255
|
+
var baseStyle$a = function baseStyle() {
|
|
2486
2256
|
return {
|
|
2487
2257
|
field: baseStyleField(),
|
|
2488
2258
|
icon: baseStyleInput
|
|
@@ -2490,13 +2260,13 @@ var baseStyle$b = function baseStyle() {
|
|
|
2490
2260
|
};
|
|
2491
2261
|
|
|
2492
2262
|
var Select = {
|
|
2493
|
-
parts: parts$
|
|
2494
|
-
baseStyle: baseStyle$
|
|
2263
|
+
parts: parts$5,
|
|
2264
|
+
baseStyle: baseStyle$a,
|
|
2495
2265
|
variants: variants$7,
|
|
2496
2266
|
defaultProps: defaultProps$6
|
|
2497
2267
|
};
|
|
2498
2268
|
|
|
2499
|
-
var parts$
|
|
2269
|
+
var parts$6 = ['track', 'thumb'];
|
|
2500
2270
|
|
|
2501
2271
|
function baseStyleTrack(props) {
|
|
2502
2272
|
var c = props.colorScheme,
|
|
@@ -2529,14 +2299,14 @@ var baseStyleThumb = {
|
|
|
2529
2299
|
transform: 'translateX(0)'
|
|
2530
2300
|
};
|
|
2531
2301
|
|
|
2532
|
-
var baseStyle$
|
|
2302
|
+
var baseStyle$b = function baseStyle(props) {
|
|
2533
2303
|
return {
|
|
2534
2304
|
track: baseStyleTrack(props),
|
|
2535
2305
|
thumb: baseStyleThumb
|
|
2536
2306
|
};
|
|
2537
2307
|
};
|
|
2538
2308
|
|
|
2539
|
-
var sizes$
|
|
2309
|
+
var sizes$1 = {
|
|
2540
2310
|
sm: {
|
|
2541
2311
|
track: {
|
|
2542
2312
|
w: '1.375rem',
|
|
@@ -2582,13 +2352,13 @@ var defaultProps$7 = {
|
|
|
2582
2352
|
colorScheme: 'blue'
|
|
2583
2353
|
};
|
|
2584
2354
|
var Switch = {
|
|
2585
|
-
parts: parts$
|
|
2586
|
-
baseStyle: baseStyle$
|
|
2587
|
-
sizes: sizes$
|
|
2355
|
+
parts: parts$6,
|
|
2356
|
+
baseStyle: baseStyle$b,
|
|
2357
|
+
sizes: sizes$1,
|
|
2588
2358
|
defaultProps: defaultProps$7
|
|
2589
2359
|
};
|
|
2590
2360
|
|
|
2591
|
-
var parts$
|
|
2361
|
+
var parts$7 = ['root', 'tablist', 'tab', 'tabpanel', 'indicator'];
|
|
2592
2362
|
|
|
2593
2363
|
function baseStyleRoot(props) {
|
|
2594
2364
|
var orientation = props.orientation;
|
|
@@ -2628,7 +2398,7 @@ var baseStyleTabpanel = {
|
|
|
2628
2398
|
p: 4
|
|
2629
2399
|
};
|
|
2630
2400
|
|
|
2631
|
-
var baseStyle$
|
|
2401
|
+
var baseStyle$c = function baseStyle(props) {
|
|
2632
2402
|
return {
|
|
2633
2403
|
root: baseStyleRoot(props),
|
|
2634
2404
|
tab: baseStyleTab(props),
|
|
@@ -2637,7 +2407,7 @@ var baseStyle$d = function baseStyle(props) {
|
|
|
2637
2407
|
};
|
|
2638
2408
|
};
|
|
2639
2409
|
|
|
2640
|
-
var sizes$
|
|
2410
|
+
var sizes$2 = {
|
|
2641
2411
|
sm: {
|
|
2642
2412
|
tab: {
|
|
2643
2413
|
py: '0.25rem',
|
|
@@ -2778,18 +2548,18 @@ function variantSolidRounded(props) {
|
|
|
2778
2548
|
};
|
|
2779
2549
|
}
|
|
2780
2550
|
|
|
2781
|
-
var variantUnstyled
|
|
2551
|
+
var variantUnstyled = {};
|
|
2782
2552
|
var variantSimple = {
|
|
2783
2553
|
tab: {
|
|
2784
2554
|
position: 'relative',
|
|
2785
2555
|
borderColor: 'transparent',
|
|
2786
2556
|
'&.active': {
|
|
2787
|
-
color: colors.
|
|
2557
|
+
color: colors.fill.action,
|
|
2788
2558
|
bg: 'transparent',
|
|
2789
|
-
borderBottom:
|
|
2559
|
+
borderBottom: "1px solid " + colors.fill.action
|
|
2790
2560
|
},
|
|
2791
2561
|
_selected: {
|
|
2792
|
-
color: colors.
|
|
2562
|
+
color: colors.fill.action,
|
|
2793
2563
|
bg: 'transparent',
|
|
2794
2564
|
_after: {
|
|
2795
2565
|
content: '""',
|
|
@@ -2813,7 +2583,7 @@ var variants$8 = {
|
|
|
2813
2583
|
'enclosed-colored': variantEnclosedColored,
|
|
2814
2584
|
'soft-rounded': variantSoftRounded,
|
|
2815
2585
|
'solid-rounded': variantSolidRounded,
|
|
2816
|
-
unstyled: variantUnstyled
|
|
2586
|
+
unstyled: variantUnstyled,
|
|
2817
2587
|
simple: variantSimple
|
|
2818
2588
|
};
|
|
2819
2589
|
var defaultProps$8 = {
|
|
@@ -2822,14 +2592,14 @@ var defaultProps$8 = {
|
|
|
2822
2592
|
colorScheme: 'blue'
|
|
2823
2593
|
};
|
|
2824
2594
|
var Tabs = {
|
|
2825
|
-
parts: parts$
|
|
2826
|
-
baseStyle: baseStyle$
|
|
2827
|
-
sizes: sizes$
|
|
2595
|
+
parts: parts$7,
|
|
2596
|
+
baseStyle: baseStyle$c,
|
|
2597
|
+
sizes: sizes$2,
|
|
2828
2598
|
variants: variants$8,
|
|
2829
2599
|
defaultProps: defaultProps$8
|
|
2830
2600
|
};
|
|
2831
2601
|
|
|
2832
|
-
var baseStyle$
|
|
2602
|
+
var baseStyle$d = /*#__PURE__*/_extends({}, Input$1.baseStyle.field, {
|
|
2833
2603
|
display: 'block',
|
|
2834
2604
|
paddingY: '8px',
|
|
2835
2605
|
height: '80px',
|
|
@@ -2840,12 +2610,12 @@ var defaultProps$9 = {
|
|
|
2840
2610
|
variant: 'default'
|
|
2841
2611
|
};
|
|
2842
2612
|
var Textarea = {
|
|
2843
|
-
baseStyle: baseStyle$
|
|
2613
|
+
baseStyle: baseStyle$d,
|
|
2844
2614
|
defaultProps: defaultProps$9
|
|
2845
2615
|
};
|
|
2846
2616
|
|
|
2847
2617
|
var defaultProps$a = Text$2.defaultProps;
|
|
2848
|
-
var baseStyle$
|
|
2618
|
+
var baseStyle$e = {
|
|
2849
2619
|
fontWeight: typography.fontWeights.normal,
|
|
2850
2620
|
fontFamily: typography.fonts.base,
|
|
2851
2621
|
fontSize: typography.fontSizes.sm,
|
|
@@ -2854,7 +2624,7 @@ var baseStyle$f = {
|
|
|
2854
2624
|
};
|
|
2855
2625
|
|
|
2856
2626
|
function variantHeader() {
|
|
2857
|
-
return _extends({}, baseStyle$
|
|
2627
|
+
return _extends({}, baseStyle$e, {
|
|
2858
2628
|
fontWeight: typography.fontWeights.bold,
|
|
2859
2629
|
fontSize: typography.fontSizes['3xl'],
|
|
2860
2630
|
lineHeight: typography.lineHeights[8],
|
|
@@ -2863,7 +2633,7 @@ function variantHeader() {
|
|
|
2863
2633
|
}
|
|
2864
2634
|
|
|
2865
2635
|
function variantSubheader() {
|
|
2866
|
-
return _extends({}, baseStyle$
|
|
2636
|
+
return _extends({}, baseStyle$e, {
|
|
2867
2637
|
fontWeight: typography.fontWeights.semibold,
|
|
2868
2638
|
fontSize: typography.fontSizes['lg'],
|
|
2869
2639
|
lineHeight: typography.lineHeights[5],
|
|
@@ -2872,7 +2642,7 @@ function variantSubheader() {
|
|
|
2872
2642
|
}
|
|
2873
2643
|
|
|
2874
2644
|
function variantParagraph() {
|
|
2875
|
-
return baseStyle$
|
|
2645
|
+
return baseStyle$e;
|
|
2876
2646
|
}
|
|
2877
2647
|
|
|
2878
2648
|
var variants$9 = {
|
|
@@ -2881,7 +2651,7 @@ var variants$9 = {
|
|
|
2881
2651
|
paragraph: variantParagraph
|
|
2882
2652
|
};
|
|
2883
2653
|
var Text$1 = {
|
|
2884
|
-
baseStyle: baseStyle$
|
|
2654
|
+
baseStyle: baseStyle$e,
|
|
2885
2655
|
variants: variants$9,
|
|
2886
2656
|
defaultProps: /*#__PURE__*/_extends({}, defaultProps$a, {
|
|
2887
2657
|
variant: variants$9.paragraph
|
|
@@ -2923,7 +2693,6 @@ var customXQChakraTheme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends({
|
|
|
2923
2693
|
FormLabel: FormLabel,
|
|
2924
2694
|
Input: Input$1,
|
|
2925
2695
|
Link: Link,
|
|
2926
|
-
Menu: Menu,
|
|
2927
2696
|
Modal: Modal,
|
|
2928
2697
|
Select: Select,
|
|
2929
2698
|
Switch: Switch,
|