@xqmsg/ui-core 0.10.0 → 0.12.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/components/table/TableTypes.d.ts +0 -1
- package/dist/components/table/{loading → components/loading}/index.d.ts +0 -0
- package/dist/components/table/components/text/index.d.ts +9 -0
- package/dist/components/table/index.d.ts +2 -4
- package/dist/theme/components/button.d.ts +68 -207
- package/dist/theme/components/table.d.ts +28 -0
- package/dist/theme/foundations/colors.d.ts +44 -22
- package/dist/ui-core.cjs.development.js +188 -390
- 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 +190 -392
- 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 +5 -3
- package/src/components/table/TableTypes.ts +0 -20
- package/src/components/table/{loading → components/loading}/index.tsx +8 -5
- package/src/components/table/components/text/index.tsx +23 -0
- package/src/components/table/index.tsx +4 -10
- 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/table.ts +34 -0
- package/src/theme/components/tabs.ts +3 -3
- package/src/theme/customXQChakraTheme.ts +2 -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
|
-
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$
|
|
3
|
-
import { FormProvider, useWatch, Controller } from 'react-hook-form';
|
|
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$2, Thead, Tr, Th, Tbody, Td, TableCaption, Tabs as Tabs$1, TabList, Tab, extendTheme, ChakraProvider } from '@chakra-ui/react';
|
|
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,16 +1458,19 @@ 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),
|
|
1478
1468
|
fontSize: typography.fontSizes['3xl'],
|
|
1469
|
+
bg: "transparent",
|
|
1470
|
+
shadow: "none",
|
|
1471
|
+
color: colors.fill.action,
|
|
1479
1472
|
type: "button",
|
|
1480
|
-
variant: "
|
|
1473
|
+
variant: "outline",
|
|
1481
1474
|
onClick: onLoadMore
|
|
1482
1475
|
}));
|
|
1483
1476
|
};
|
|
@@ -1493,24 +1486,19 @@ function Table(_ref) {
|
|
|
1493
1486
|
_ref$placeholder = _ref.placeholder,
|
|
1494
1487
|
placeholder = _ref$placeholder === void 0 ? 'There is currently no available data' : _ref$placeholder,
|
|
1495
1488
|
loading = _ref.loading,
|
|
1496
|
-
_ref$variant = _ref.variant,
|
|
1497
|
-
variant = _ref$variant === void 0 ? 'simple' : _ref$variant,
|
|
1498
|
-
colorScheme = _ref.colorScheme,
|
|
1499
1489
|
_ref$borderTopRadius = _ref.borderTopRadius,
|
|
1500
1490
|
borderTopRadius = _ref$borderTopRadius === void 0 ? true : _ref$borderTopRadius,
|
|
1501
1491
|
loadMore = _ref.loadMore;
|
|
1502
1492
|
var columnsAsConst = generateTableColumnsAsConst(columns);
|
|
1503
1493
|
return /*#__PURE__*/React.createElement(TableContainer, {
|
|
1504
|
-
border: "
|
|
1505
|
-
borderColor: colors.gray[100],
|
|
1494
|
+
border: "none",
|
|
1506
1495
|
overflowX: "auto",
|
|
1507
1496
|
bg: "white",
|
|
1508
1497
|
borderRadius: "md",
|
|
1509
1498
|
borderTopLeftRadius: borderTopRadius ? 'md' : 0,
|
|
1510
1499
|
borderTopRightRadius: borderTopRadius ? 'md' : 0
|
|
1511
|
-
}, /*#__PURE__*/React.createElement(Table$
|
|
1512
|
-
variant:
|
|
1513
|
-
colorScheme: colorScheme
|
|
1500
|
+
}, /*#__PURE__*/React.createElement(Table$2, {
|
|
1501
|
+
variant: "unstyled"
|
|
1514
1502
|
}, /*#__PURE__*/React.createElement(Thead, null, /*#__PURE__*/React.createElement(Tr, null, columnsAsConst.map(function (column) {
|
|
1515
1503
|
return (
|
|
1516
1504
|
/*#__PURE__*/
|
|
@@ -1553,7 +1541,7 @@ var TabsWrapper = function TabsWrapper(_ref) {
|
|
|
1553
1541
|
sm: 'row'
|
|
1554
1542
|
},
|
|
1555
1543
|
border: "1px",
|
|
1556
|
-
borderColor: colors.
|
|
1544
|
+
borderColor: colors.fill.light.quaternary,
|
|
1557
1545
|
bg: "white",
|
|
1558
1546
|
borderRadius: "md",
|
|
1559
1547
|
borderBottom: 0,
|
|
@@ -1578,7 +1566,7 @@ var Text = function Text(_ref) {
|
|
|
1578
1566
|
fontWeight = _ref.fontWeight,
|
|
1579
1567
|
variant = _ref.variant,
|
|
1580
1568
|
_ref$color = _ref.color,
|
|
1581
|
-
color = _ref$color === void 0 ? colors.
|
|
1569
|
+
color = _ref$color === void 0 ? colors.label.primary.light : _ref$color,
|
|
1582
1570
|
className = _ref.className;
|
|
1583
1571
|
return /*#__PURE__*/React.createElement(Text$2, {
|
|
1584
1572
|
fontSize: fontSize,
|
|
@@ -1611,9 +1599,9 @@ var shadows = {
|
|
|
1611
1599
|
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
|
|
1612
1600
|
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
|
|
1613
1601
|
'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.
|
|
1602
|
+
insetOutline: "inset 0 0 0 2px " + colors.fill.action,
|
|
1603
|
+
outline: "0 0 0 2px " + colors.fill.action,
|
|
1604
|
+
outlineDanger600: "0 0 0 2px " + colors.fill.error,
|
|
1617
1605
|
inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
|
|
1618
1606
|
none: 'none',
|
|
1619
1607
|
'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 +1625,7 @@ var baseStyle = {
|
|
|
1637
1625
|
function variantPositive() {
|
|
1638
1626
|
return {
|
|
1639
1627
|
container: {
|
|
1640
|
-
bg: colors.fill.
|
|
1628
|
+
bg: colors.fill.success
|
|
1641
1629
|
}
|
|
1642
1630
|
};
|
|
1643
1631
|
}
|
|
@@ -1661,7 +1649,7 @@ function variantError() {
|
|
|
1661
1649
|
function variantNeutral() {
|
|
1662
1650
|
return {
|
|
1663
1651
|
container: {
|
|
1664
|
-
bg: colors.fill.light
|
|
1652
|
+
bg: colors.fill.light.tertiary
|
|
1665
1653
|
}
|
|
1666
1654
|
};
|
|
1667
1655
|
}
|
|
@@ -1737,223 +1725,68 @@ var Badge = {
|
|
|
1737
1725
|
defaultProps: defaultProps$1
|
|
1738
1726
|
};
|
|
1739
1727
|
|
|
1740
|
-
var baseStyle$2 = {
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1728
|
+
var baseStyle$2 = /*#__PURE__*/defineStyle({
|
|
1729
|
+
borderRadius: '4px',
|
|
1730
|
+
fontSize: '18px',
|
|
1731
|
+
bg: colors.fill.action,
|
|
1732
|
+
color: colors.label.primary.dark,
|
|
1733
|
+
px: '8px',
|
|
1734
|
+
py: '4px',
|
|
1735
|
+
bgGradient: 'linear-gradient(#FFFFFF29, #FFFFFF00)',
|
|
1736
|
+
shadow: '1px 0.5px #0000001A',
|
|
1747
1737
|
_disabled: {
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
|
|
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'
|
|
1738
|
+
backgroundColor: 'gray.100',
|
|
1739
|
+
borderColor: 'gray.100',
|
|
1740
|
+
color: 'gray.500',
|
|
1741
|
+
pointerEvents: 'none'
|
|
1742
|
+
},
|
|
1743
|
+
_hover: {
|
|
1744
|
+
bg: colors.fill.action
|
|
1814
1745
|
},
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1746
|
+
_active: {
|
|
1747
|
+
color: colors.label.primary.dark,
|
|
1748
|
+
bg: colors.fill.action,
|
|
1749
|
+
bgGradient: colors.fill.light.quaternary
|
|
1750
|
+
},
|
|
1751
|
+
_focus: {
|
|
1752
|
+
bg: colors.fill.action,
|
|
1753
|
+
border: "2px solid " + colors.border.focus
|
|
1820
1754
|
}
|
|
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
|
-
};
|
|
1755
|
+
});
|
|
1846
1756
|
|
|
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;
|
|
1757
|
+
var variantSolid$1 = function variantSolid() {
|
|
1758
|
+
return _extends({}, baseStyle$2);
|
|
1759
|
+
};
|
|
1856
1760
|
|
|
1857
|
-
|
|
1858
|
-
return {
|
|
1859
|
-
|
|
1860
|
-
|
|
1761
|
+
var variantOutline$1 = function variantOutline() {
|
|
1762
|
+
return _extends({}, baseStyle$2, {
|
|
1763
|
+
color: colors.fill.action,
|
|
1764
|
+
bg: colors.label.primary.dark,
|
|
1765
|
+
border: 'none',
|
|
1861
1766
|
_hover: {
|
|
1862
|
-
bg:
|
|
1767
|
+
bg: colors.label.primary.dark
|
|
1863
1768
|
},
|
|
1864
1769
|
_active: {
|
|
1865
|
-
|
|
1770
|
+
color: colors.fill.action,
|
|
1771
|
+
bg: colors.label.primary.dark,
|
|
1772
|
+
bgGradient: colors.fill.light.quaternary
|
|
1866
1773
|
},
|
|
1867
1774
|
_focus: {
|
|
1868
|
-
|
|
1775
|
+
bg: colors.label.primary.dark
|
|
1869
1776
|
}
|
|
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
1777
|
});
|
|
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
1778
|
};
|
|
1779
|
+
|
|
1910
1780
|
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
|
-
}
|
|
1781
|
+
solid: /*#__PURE__*/variantSolid$1(),
|
|
1782
|
+
outline: /*#__PURE__*/variantOutline$1()
|
|
1947
1783
|
};
|
|
1948
1784
|
var defaultProps$2 = {
|
|
1949
|
-
|
|
1950
|
-
size: 'md',
|
|
1951
|
-
colorScheme: 'primary'
|
|
1785
|
+
solid: 'solid'
|
|
1952
1786
|
};
|
|
1953
1787
|
var Button$1 = {
|
|
1954
1788
|
baseStyle: baseStyle$2,
|
|
1955
1789
|
variants: variants$2,
|
|
1956
|
-
sizes: sizes,
|
|
1957
1790
|
defaultProps: defaultProps$2
|
|
1958
1791
|
};
|
|
1959
1792
|
|
|
@@ -2058,7 +1891,7 @@ var baseStyle$7 = {
|
|
|
2058
1891
|
borderColor: colors.border["default"],
|
|
2059
1892
|
_disabled: {
|
|
2060
1893
|
cursor: 'not-allowed',
|
|
2061
|
-
bg: colors.fill.light,
|
|
1894
|
+
bg: colors.fill.light.quaternary,
|
|
2062
1895
|
color: colors.label.secondary.light
|
|
2063
1896
|
},
|
|
2064
1897
|
_focus: {
|
|
@@ -2082,7 +1915,7 @@ var Input$1 = {
|
|
|
2082
1915
|
};
|
|
2083
1916
|
|
|
2084
1917
|
var baseStyle$8 = {
|
|
2085
|
-
color:
|
|
1918
|
+
color: colors.fill.action,
|
|
2086
1919
|
textDecoration: 'underline',
|
|
2087
1920
|
transition: 'none',
|
|
2088
1921
|
_hover: {
|
|
@@ -2189,72 +2022,7 @@ var Link = {
|
|
|
2189
2022
|
variants: variants$5
|
|
2190
2023
|
};
|
|
2191
2024
|
|
|
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'];
|
|
2025
|
+
var parts$4 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
|
|
2258
2026
|
var baseStyleOverlay = {
|
|
2259
2027
|
bg: 'blackAlpha.600',
|
|
2260
2028
|
zIndex: 'modal'
|
|
@@ -2328,7 +2096,7 @@ var baseStyleFooter = {
|
|
|
2328
2096
|
pb: 16
|
|
2329
2097
|
};
|
|
2330
2098
|
|
|
2331
|
-
var baseStyle$
|
|
2099
|
+
var baseStyle$9 = function baseStyle(props) {
|
|
2332
2100
|
return {
|
|
2333
2101
|
overlay: baseStyleOverlay,
|
|
2334
2102
|
dialogContainer: baseStyleDialogContainer(props),
|
|
@@ -2421,7 +2189,7 @@ function getSize(value) {
|
|
|
2421
2189
|
};
|
|
2422
2190
|
}
|
|
2423
2191
|
|
|
2424
|
-
var sizes
|
|
2192
|
+
var sizes = {
|
|
2425
2193
|
xs: /*#__PURE__*/getSize('xs'),
|
|
2426
2194
|
sm: /*#__PURE__*/getSize('sm'),
|
|
2427
2195
|
md: /*#__PURE__*/getSize('md'),
|
|
@@ -2452,16 +2220,16 @@ var defaultProps$5 = {
|
|
|
2452
2220
|
isCentered: true
|
|
2453
2221
|
};
|
|
2454
2222
|
var Modal = {
|
|
2455
|
-
parts: parts$
|
|
2456
|
-
baseStyle: baseStyle$
|
|
2457
|
-
sizes: sizes
|
|
2223
|
+
parts: parts$4,
|
|
2224
|
+
baseStyle: baseStyle$9,
|
|
2225
|
+
sizes: sizes,
|
|
2458
2226
|
variants: variants$6,
|
|
2459
2227
|
defaultProps: defaultProps$5
|
|
2460
2228
|
};
|
|
2461
2229
|
|
|
2462
2230
|
var defaultProps$6 = Input$1.defaultProps,
|
|
2463
2231
|
variants$7 = Input$1.variants;
|
|
2464
|
-
var parts$
|
|
2232
|
+
var parts$5 = ['field', 'icon'];
|
|
2465
2233
|
|
|
2466
2234
|
function baseStyleField() {
|
|
2467
2235
|
return _extends({}, Input$1.baseStyle.field, {
|
|
@@ -2482,7 +2250,7 @@ var baseStyleInput = {
|
|
|
2482
2250
|
}
|
|
2483
2251
|
};
|
|
2484
2252
|
|
|
2485
|
-
var baseStyle$
|
|
2253
|
+
var baseStyle$a = function baseStyle() {
|
|
2486
2254
|
return {
|
|
2487
2255
|
field: baseStyleField(),
|
|
2488
2256
|
icon: baseStyleInput
|
|
@@ -2490,13 +2258,13 @@ var baseStyle$b = function baseStyle() {
|
|
|
2490
2258
|
};
|
|
2491
2259
|
|
|
2492
2260
|
var Select = {
|
|
2493
|
-
parts: parts$
|
|
2494
|
-
baseStyle: baseStyle$
|
|
2261
|
+
parts: parts$5,
|
|
2262
|
+
baseStyle: baseStyle$a,
|
|
2495
2263
|
variants: variants$7,
|
|
2496
2264
|
defaultProps: defaultProps$6
|
|
2497
2265
|
};
|
|
2498
2266
|
|
|
2499
|
-
var parts$
|
|
2267
|
+
var parts$6 = ['track', 'thumb'];
|
|
2500
2268
|
|
|
2501
2269
|
function baseStyleTrack(props) {
|
|
2502
2270
|
var c = props.colorScheme,
|
|
@@ -2529,14 +2297,14 @@ var baseStyleThumb = {
|
|
|
2529
2297
|
transform: 'translateX(0)'
|
|
2530
2298
|
};
|
|
2531
2299
|
|
|
2532
|
-
var baseStyle$
|
|
2300
|
+
var baseStyle$b = function baseStyle(props) {
|
|
2533
2301
|
return {
|
|
2534
2302
|
track: baseStyleTrack(props),
|
|
2535
2303
|
thumb: baseStyleThumb
|
|
2536
2304
|
};
|
|
2537
2305
|
};
|
|
2538
2306
|
|
|
2539
|
-
var sizes$
|
|
2307
|
+
var sizes$1 = {
|
|
2540
2308
|
sm: {
|
|
2541
2309
|
track: {
|
|
2542
2310
|
w: '1.375rem',
|
|
@@ -2582,12 +2350,42 @@ var defaultProps$7 = {
|
|
|
2582
2350
|
colorScheme: 'blue'
|
|
2583
2351
|
};
|
|
2584
2352
|
var Switch = {
|
|
2585
|
-
parts: parts$
|
|
2586
|
-
baseStyle: baseStyle$
|
|
2587
|
-
sizes: sizes$
|
|
2353
|
+
parts: parts$6,
|
|
2354
|
+
baseStyle: baseStyle$b,
|
|
2355
|
+
sizes: sizes$1,
|
|
2588
2356
|
defaultProps: defaultProps$7
|
|
2589
2357
|
};
|
|
2590
2358
|
|
|
2359
|
+
var parts$7 = ['th', 'td', 'tr', 'body'];
|
|
2360
|
+
var baseStyle$c = {
|
|
2361
|
+
th: {
|
|
2362
|
+
height: 'fit-content',
|
|
2363
|
+
width: '100%',
|
|
2364
|
+
bg: colors.label.primary.dark,
|
|
2365
|
+
padding: '5px 8px !important'
|
|
2366
|
+
},
|
|
2367
|
+
tr: {
|
|
2368
|
+
fontSize: '13px',
|
|
2369
|
+
display: 'flex',
|
|
2370
|
+
alignItems: 'center',
|
|
2371
|
+
width: '100%',
|
|
2372
|
+
height: 'fit-content',
|
|
2373
|
+
borderRadius: 'md',
|
|
2374
|
+
_odd: {
|
|
2375
|
+
background: colors.fill.light.tertiary
|
|
2376
|
+
}
|
|
2377
|
+
},
|
|
2378
|
+
td: {
|
|
2379
|
+
padding: '5px 8px !important',
|
|
2380
|
+
borderRadius: 'md',
|
|
2381
|
+
width: '100%'
|
|
2382
|
+
}
|
|
2383
|
+
};
|
|
2384
|
+
var Table$1 = {
|
|
2385
|
+
parts: parts$7,
|
|
2386
|
+
baseStyle: baseStyle$c
|
|
2387
|
+
};
|
|
2388
|
+
|
|
2591
2389
|
var parts$8 = ['root', 'tablist', 'tab', 'tabpanel', 'indicator'];
|
|
2592
2390
|
|
|
2593
2391
|
function baseStyleRoot(props) {
|
|
@@ -2637,7 +2435,7 @@ var baseStyle$d = function baseStyle(props) {
|
|
|
2637
2435
|
};
|
|
2638
2436
|
};
|
|
2639
2437
|
|
|
2640
|
-
var sizes$
|
|
2438
|
+
var sizes$2 = {
|
|
2641
2439
|
sm: {
|
|
2642
2440
|
tab: {
|
|
2643
2441
|
py: '0.25rem',
|
|
@@ -2778,18 +2576,18 @@ function variantSolidRounded(props) {
|
|
|
2778
2576
|
};
|
|
2779
2577
|
}
|
|
2780
2578
|
|
|
2781
|
-
var variantUnstyled
|
|
2579
|
+
var variantUnstyled = {};
|
|
2782
2580
|
var variantSimple = {
|
|
2783
2581
|
tab: {
|
|
2784
2582
|
position: 'relative',
|
|
2785
2583
|
borderColor: 'transparent',
|
|
2786
2584
|
'&.active': {
|
|
2787
|
-
color: colors.
|
|
2585
|
+
color: colors.fill.action,
|
|
2788
2586
|
bg: 'transparent',
|
|
2789
|
-
borderBottom:
|
|
2587
|
+
borderBottom: "1px solid " + colors.fill.action
|
|
2790
2588
|
},
|
|
2791
2589
|
_selected: {
|
|
2792
|
-
color: colors.
|
|
2590
|
+
color: colors.fill.action,
|
|
2793
2591
|
bg: 'transparent',
|
|
2794
2592
|
_after: {
|
|
2795
2593
|
content: '""',
|
|
@@ -2813,7 +2611,7 @@ var variants$8 = {
|
|
|
2813
2611
|
'enclosed-colored': variantEnclosedColored,
|
|
2814
2612
|
'soft-rounded': variantSoftRounded,
|
|
2815
2613
|
'solid-rounded': variantSolidRounded,
|
|
2816
|
-
unstyled: variantUnstyled
|
|
2614
|
+
unstyled: variantUnstyled,
|
|
2817
2615
|
simple: variantSimple
|
|
2818
2616
|
};
|
|
2819
2617
|
var defaultProps$8 = {
|
|
@@ -2824,7 +2622,7 @@ var defaultProps$8 = {
|
|
|
2824
2622
|
var Tabs = {
|
|
2825
2623
|
parts: parts$8,
|
|
2826
2624
|
baseStyle: baseStyle$d,
|
|
2827
|
-
sizes: sizes$
|
|
2625
|
+
sizes: sizes$2,
|
|
2828
2626
|
variants: variants$8,
|
|
2829
2627
|
defaultProps: defaultProps$8
|
|
2830
2628
|
};
|
|
@@ -2923,10 +2721,10 @@ var customXQChakraTheme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends({
|
|
|
2923
2721
|
FormLabel: FormLabel,
|
|
2924
2722
|
Input: Input$1,
|
|
2925
2723
|
Link: Link,
|
|
2926
|
-
Menu: Menu,
|
|
2927
2724
|
Modal: Modal,
|
|
2928
2725
|
Select: Select,
|
|
2929
2726
|
Switch: Switch,
|
|
2727
|
+
Table: Table$1,
|
|
2930
2728
|
Tabs: Tabs,
|
|
2931
2729
|
Textarea: Textarea,
|
|
2932
2730
|
Text: Text$1
|