@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.
Files changed (44) hide show
  1. package/dist/components/button/index.d.ts +3 -7
  2. package/dist/components/input/Input.stories.d.ts +4 -0
  3. package/dist/components/table/TableTypes.d.ts +0 -1
  4. package/dist/components/table/{loading → components/loading}/index.d.ts +0 -0
  5. package/dist/components/table/components/text/index.d.ts +9 -0
  6. package/dist/components/table/index.d.ts +2 -4
  7. package/dist/theme/components/button.d.ts +68 -207
  8. package/dist/theme/components/table.d.ts +28 -0
  9. package/dist/theme/foundations/colors.d.ts +44 -22
  10. package/dist/ui-core.cjs.development.js +188 -390
  11. package/dist/ui-core.cjs.development.js.map +1 -1
  12. package/dist/ui-core.cjs.production.min.js +1 -1
  13. package/dist/ui-core.cjs.production.min.js.map +1 -1
  14. package/dist/ui-core.esm.js +190 -392
  15. package/dist/ui-core.esm.js.map +1 -1
  16. package/package.json +1 -2
  17. package/src/components/banner/index.tsx +7 -1
  18. package/src/components/button/Button.stories.tsx +19 -7
  19. package/src/components/button/index.tsx +7 -19
  20. package/src/components/button/spinner/index.tsx +2 -7
  21. package/src/components/input/Input.stories.tsx +45 -59
  22. package/src/components/input/StackedMultiSelect/index.tsx +11 -11
  23. package/src/components/input/StackedPilledInput/index.tsx +6 -12
  24. package/src/components/input/components/dropdown/index.tsx +3 -2
  25. package/src/components/input/index.tsx +0 -1
  26. package/src/components/loading/index.tsx +1 -1
  27. package/src/components/table/Table.stories.tsx +5 -3
  28. package/src/components/table/TableTypes.ts +0 -20
  29. package/src/components/table/{loading → components/loading}/index.tsx +8 -5
  30. package/src/components/table/components/text/index.tsx +23 -0
  31. package/src/components/table/index.tsx +4 -10
  32. package/src/components/tabs/index.tsx +1 -1
  33. package/src/components/text/index.tsx +1 -1
  34. package/src/theme/components/alert.ts +2 -2
  35. package/src/theme/components/button.ts +45 -186
  36. package/src/theme/components/input.ts +1 -1
  37. package/src/theme/components/link.ts +2 -1
  38. package/src/theme/components/table.ts +34 -0
  39. package/src/theme/components/tabs.ts +3 -3
  40. package/src/theme/customXQChakraTheme.ts +2 -2
  41. package/src/theme/foundations/colors.ts +19 -14
  42. package/src/theme/foundations/shadows.ts +3 -3
  43. package/dist/theme/components/menu.d.ts +0 -48
  44. package/src/theme/components/menu.ts +0 -70
@@ -7,11 +7,12 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
7
7
  var React = require('react');
8
8
  var React__default = _interopDefault(React);
9
9
  var react = require('@chakra-ui/react');
10
- var reactHookForm = require('react-hook-form');
11
10
  var colors$1 = _interopDefault(require('src/theme/foundations/colors'));
11
+ var reactHookForm = require('react-hook-form');
12
12
  var icons = require('@chakra-ui/icons');
13
13
  var hi = require('react-icons/hi');
14
14
  var themeTools = require('@chakra-ui/theme-tools');
15
+ var system = require('@chakra-ui/system');
15
16
 
16
17
  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>";
17
18
 
@@ -74,43 +75,11 @@ var Banner = function Banner(_ref) {
74
75
  }, /*#__PURE__*/React__default.createElement(react.Button, {
75
76
  size: "sm",
76
77
  bg: "white",
77
- color: "blue.500",
78
+ color: colors$1.fill.action,
78
79
  onClick: onClick
79
80
  }, buttonText))));
80
81
  };
81
82
 
82
- function _extends() {
83
- _extends = Object.assign ? Object.assign.bind() : function (target) {
84
- for (var i = 1; i < arguments.length; i++) {
85
- var source = arguments[i];
86
-
87
- for (var key in source) {
88
- if (Object.prototype.hasOwnProperty.call(source, key)) {
89
- target[key] = source[key];
90
- }
91
- }
92
- }
93
-
94
- return target;
95
- };
96
- return _extends.apply(this, arguments);
97
- }
98
-
99
- function _objectWithoutPropertiesLoose(source, excluded) {
100
- if (source == null) return {};
101
- var target = {};
102
- var sourceKeys = Object.keys(source);
103
- var key, i;
104
-
105
- for (i = 0; i < sourceKeys.length; i++) {
106
- key = sourceKeys[i];
107
- if (excluded.indexOf(key) >= 0) continue;
108
- target[key] = source[key];
109
- }
110
-
111
- return target;
112
- }
113
-
114
83
  var blue = {
115
84
  50: 'hsl(209, 100%, 95%)',
116
85
  100: 'hsl(209, 100%, 90%)',
@@ -159,12 +128,6 @@ var green = {
159
128
  800: 'hsl(141, 42%, 24%)',
160
129
  900: 'hsl(138, 42%, 6%)'
161
130
  };
162
- var aliases = {
163
- primary: blue,
164
- success: green,
165
- warning: orange,
166
- danger: red
167
- };
168
131
  var label = {
169
132
  primary: {
170
133
  light: '#000000',
@@ -180,14 +143,28 @@ var border = {
180
143
  "default": '#9999991A'
181
144
  };
182
145
  var fill = {
183
- light: '#7474800D',
184
- positive: '#d8f1b8',
146
+ light: {
147
+ primary: '#74748033',
148
+ secondary: '#74748029',
149
+ tertiary: '#7474801F',
150
+ quaternary: ':#7474800D'
151
+ },
152
+ success: '#d8f1b8',
185
153
  error: '#ffbdb9',
186
154
  warning: '#ffefb4',
187
- blue: '#0082ff'
155
+ action: '#0082ff'
188
156
  };
189
-
190
- var colors = /*#__PURE__*/_extends({
157
+ var semantic = {
158
+ action: '#488ef7',
159
+ success: '#5fcf65',
160
+ warning: '#f8c352',
161
+ error: '#f96057'
162
+ };
163
+ var colors = {
164
+ label: label,
165
+ border: border,
166
+ fill: fill,
167
+ semantic: semantic,
191
168
  transparent: 'transparent',
192
169
  current: 'currentColor',
193
170
  black: '#000000',
@@ -195,11 +172,7 @@ var colors = /*#__PURE__*/_extends({
195
172
  lightBlue: '#29abe2',
196
173
  coolGray: '#F6F7FB',
197
174
  darkBlue: '#292f4c',
198
- backdrop: '#fbfcff'
199
- }, aliases, {
200
- label: label,
201
- border: border,
202
- fill: fill,
175
+ backdrop: '#fbfcff',
203
176
  whiteAlpha: {
204
177
  50: 'rgba(255, 255, 255, 0.04)',
205
178
  100: 'rgba(255, 255, 255, 0.06)',
@@ -240,7 +213,7 @@ var colors = /*#__PURE__*/_extends({
240
213
  orange: orange,
241
214
  green: green,
242
215
  blue: blue
243
- });
216
+ };
244
217
 
245
218
  /**
246
219
  * A functional React component utilized to render the `Icon` for the `Breadcrumbs` component.
@@ -329,7 +302,6 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
329
302
  }));
330
303
  };
331
304
 
332
- var _excluded = ["onClick", "text", "type", "ariaLabel", "variant", "colorScheme", "style", "size", "disabled", "className"];
333
305
  /**
334
306
  * A functional React component utilized to render the `Button` component
335
307
  */
@@ -337,30 +309,23 @@ var _excluded = ["onClick", "text", "type", "ariaLabel", "variant", "colorScheme
337
309
  var Button = function Button(_ref) {
338
310
  var onClick = _ref.onClick,
339
311
  text = _ref.text,
340
- type = _ref.type,
312
+ _ref$type = _ref.type,
313
+ type = _ref$type === void 0 ? 'button' : _ref$type,
341
314
  ariaLabel = _ref.ariaLabel,
342
315
  _ref$variant = _ref.variant,
343
316
  variant = _ref$variant === void 0 ? 'solid' : _ref$variant,
344
- _ref$colorScheme = _ref.colorScheme,
345
- colorScheme = _ref$colorScheme === void 0 ? 'primary' : _ref$colorScheme,
346
- style = _ref.style,
347
- _ref$size = _ref.size,
348
- size = _ref$size === void 0 ? 'md' : _ref$size,
349
317
  disabled = _ref.disabled,
350
318
  className = _ref.className,
351
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
352
-
353
- return /*#__PURE__*/React__default.createElement(react.Button, Object.assign({
319
+ width = _ref.width;
320
+ return /*#__PURE__*/React__default.createElement(react.Button, {
354
321
  onClick: onClick,
355
322
  type: type,
356
323
  variant: variant,
357
- colorScheme: colorScheme,
358
- size: size,
359
324
  disabled: disabled,
360
325
  "aria-label": ariaLabel,
361
- style: style,
362
- className: className
363
- }, props), text);
326
+ className: className,
327
+ width: width === 'variable' ? '100%' : 'fit-content'
328
+ }, text);
364
329
  };
365
330
 
366
331
  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>";
@@ -405,28 +370,20 @@ var SpinnerButton = function SpinnerButton(_ref) {
405
370
  onClick = _ref.onClick,
406
371
  type = _ref.type,
407
372
  ariaLabel = _ref.ariaLabel,
408
- style = _ref.style,
409
373
  _ref$variant = _ref.variant,
410
374
  variant = _ref$variant === void 0 ? 'solid' : _ref$variant,
411
- _ref$colorScheme = _ref.colorScheme,
412
- colorScheme = _ref$colorScheme === void 0 ? 'primary' : _ref$colorScheme,
413
- _ref$size = _ref.size,
414
- size = _ref$size === void 0 ? 'md' : _ref$size,
415
375
  disabled = _ref.disabled,
416
376
  className = _ref.className;
417
377
  return /*#__PURE__*/React__default.createElement(react.Button, {
418
378
  spinner: /*#__PURE__*/React__default.createElement(react.Spinner, {
419
- size: size
379
+ size: 'md'
420
380
  }),
421
381
  isLoading: isLoading,
422
382
  onClick: onClick,
423
383
  type: type,
424
384
  variant: variant,
425
- colorScheme: colorScheme,
426
- size: size,
427
385
  disabled: disabled,
428
386
  "aria-label": ariaLabel,
429
- style: style,
430
387
  className: className
431
388
  }, text);
432
389
  };
@@ -465,7 +422,39 @@ var StackedCheckboxGroup = /*#__PURE__*/React__default.forwardRef(function (_ref
465
422
  }));
466
423
  });
467
424
 
468
- var _excluded$1 = ["type", "isRequired"];
425
+ function _extends() {
426
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
427
+ for (var i = 1; i < arguments.length; i++) {
428
+ var source = arguments[i];
429
+
430
+ for (var key in source) {
431
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
432
+ target[key] = source[key];
433
+ }
434
+ }
435
+ }
436
+
437
+ return target;
438
+ };
439
+ return _extends.apply(this, arguments);
440
+ }
441
+
442
+ function _objectWithoutPropertiesLoose(source, excluded) {
443
+ if (source == null) return {};
444
+ var target = {};
445
+ var sourceKeys = Object.keys(source);
446
+ var key, i;
447
+
448
+ for (i = 0; i < sourceKeys.length; i++) {
449
+ key = sourceKeys[i];
450
+ if (excluded.indexOf(key) >= 0) continue;
451
+ target[key] = source[key];
452
+ }
453
+
454
+ return target;
455
+ }
456
+
457
+ var _excluded = ["type", "isRequired"];
469
458
  /**
470
459
  * A functional React component utilized to render the `StackedInput` component.
471
460
  */
@@ -474,7 +463,7 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
474
463
  var _ref2$type = _ref2.type,
475
464
  type = _ref2$type === void 0 ? 'text' : _ref2$type,
476
465
  isRequired = _ref2.isRequired,
477
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1);
466
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded);
478
467
 
479
468
  return /*#__PURE__*/React__default.createElement(react.Input, Object.assign({
480
469
  ref: _ref,
@@ -540,14 +529,14 @@ var Dropdown = function Dropdown(_ref) {
540
529
  color: colors$1.label.primary.light,
541
530
  _hover: {
542
531
  color: colors$1.label.primary.dark,
543
- bg: colors$1.fill.blue,
532
+ bg: colors$1.fill.action,
544
533
  borderRadius: '4px'
545
534
  }
546
535
  }, option.label));
547
536
  });
548
537
  }, [onSelectItem, options]);
549
538
  return /*#__PURE__*/React__default.createElement(react.Box, {
550
- bg: colors$1.fill.light,
539
+ bg: colors$1.fill.light.quaternary,
551
540
  backdropFilter: "blur(64px)",
552
541
  borderRadius: "4px",
553
542
  mt: "3px",
@@ -556,11 +545,12 @@ var Dropdown = function Dropdown(_ref) {
556
545
  px: "8px",
557
546
  py: "4px",
558
547
  position: "absolute",
559
- width: "100%"
548
+ width: "100%",
549
+ zIndex: "100"
560
550
  }, DropdownContent);
561
551
  };
562
552
 
563
- var _excluded$2 = ["isRequired", "options", "name", "setValue", "onChange"];
553
+ var _excluded$1 = ["isRequired", "options", "name", "setValue", "onChange"];
564
554
  /**
565
555
  * A functional React component utilized to render the `StackedSelect` component.
566
556
  */
@@ -570,7 +560,7 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
570
560
  options = _ref2.options,
571
561
  name = _ref2.name,
572
562
  setValue = _ref2.setValue,
573
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
563
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1);
574
564
 
575
565
  var dropdownRef = React.useRef(null);
576
566
 
@@ -772,7 +762,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
772
762
  onClick: function onClick() {
773
763
  return !disabled && setIsFocussed(true);
774
764
  },
775
- bg: disabled ? colors.fill.light : '#ffffff',
765
+ bg: disabled ? colors.fill.light.quaternary : '#ffffff',
776
766
  cursor: disabled ? 'not-allowed' : 'pointer'
777
767
  }, /*#__PURE__*/React__default.createElement(react.Flex, {
778
768
  height: "28px",
@@ -961,7 +951,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
961
951
  (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
962
952
  }
963
953
  },
964
- bg: disabled ? colors.fill.light : '#ffffff',
954
+ bg: disabled ? colors.fill.light.quaternary : '#ffffff',
965
955
  cursor: disabled ? 'not-allowed' : 'pointer',
966
956
  ref: inputWrapperRef
967
957
  }, /*#__PURE__*/React__default.createElement(react.Flex, {
@@ -1387,7 +1377,7 @@ var LoadingIndicator = function LoadingIndicator(_ref) {
1387
1377
  className: "loading-indicator " + (className != null ? className : '')
1388
1378
  }, /*#__PURE__*/React__default.createElement(react.Spinner, {
1389
1379
  size: size,
1390
- color: colors.blue[500],
1380
+ color: colors.fill.action,
1391
1381
  flex: "none",
1392
1382
  thickness: thickness,
1393
1383
  speed: speed,
@@ -1475,16 +1465,19 @@ var TableLoadingRows = function TableLoadingRows(_ref) {
1475
1465
  justifyContent: "center",
1476
1466
  alignItems: "center",
1477
1467
  height: 20,
1478
- borderTopColor: colors.gray[100]
1468
+ borderTopColor: colors.fill.light.quaternary
1479
1469
  }, isLoading ? /*#__PURE__*/React__default.createElement(react.Spinner, {
1480
1470
  size: "lg",
1481
- color: colors.blue[500]
1471
+ color: colors.fill.action
1482
1472
  }) : /*#__PURE__*/React__default.createElement(react.IconButton, {
1483
1473
  "aria-label": "Fetch more rows",
1484
1474
  icon: /*#__PURE__*/React__default.createElement(hi.HiOutlineRefresh, null),
1485
1475
  fontSize: typography.fontSizes['3xl'],
1476
+ bg: "transparent",
1477
+ shadow: "none",
1478
+ color: colors.fill.action,
1486
1479
  type: "button",
1487
- variant: "link",
1480
+ variant: "outline",
1488
1481
  onClick: onLoadMore
1489
1482
  }));
1490
1483
  };
@@ -1500,24 +1493,19 @@ function Table(_ref) {
1500
1493
  _ref$placeholder = _ref.placeholder,
1501
1494
  placeholder = _ref$placeholder === void 0 ? 'There is currently no available data' : _ref$placeholder,
1502
1495
  loading = _ref.loading,
1503
- _ref$variant = _ref.variant,
1504
- variant = _ref$variant === void 0 ? 'simple' : _ref$variant,
1505
- colorScheme = _ref.colorScheme,
1506
1496
  _ref$borderTopRadius = _ref.borderTopRadius,
1507
1497
  borderTopRadius = _ref$borderTopRadius === void 0 ? true : _ref$borderTopRadius,
1508
1498
  loadMore = _ref.loadMore;
1509
1499
  var columnsAsConst = generateTableColumnsAsConst(columns);
1510
1500
  return /*#__PURE__*/React__default.createElement(react.TableContainer, {
1511
- border: "1px",
1512
- borderColor: colors.gray[100],
1501
+ border: "none",
1513
1502
  overflowX: "auto",
1514
1503
  bg: "white",
1515
1504
  borderRadius: "md",
1516
1505
  borderTopLeftRadius: borderTopRadius ? 'md' : 0,
1517
1506
  borderTopRightRadius: borderTopRadius ? 'md' : 0
1518
1507
  }, /*#__PURE__*/React__default.createElement(react.Table, {
1519
- variant: variant,
1520
- colorScheme: colorScheme
1508
+ variant: "unstyled"
1521
1509
  }, /*#__PURE__*/React__default.createElement(react.Thead, null, /*#__PURE__*/React__default.createElement(react.Tr, null, columnsAsConst.map(function (column) {
1522
1510
  return (
1523
1511
  /*#__PURE__*/
@@ -1560,7 +1548,7 @@ var TabsWrapper = function TabsWrapper(_ref) {
1560
1548
  sm: 'row'
1561
1549
  },
1562
1550
  border: "1px",
1563
- borderColor: colors.gray[100],
1551
+ borderColor: colors.fill.light.quaternary,
1564
1552
  bg: "white",
1565
1553
  borderRadius: "md",
1566
1554
  borderBottom: 0,
@@ -1585,7 +1573,7 @@ var Text = function Text(_ref) {
1585
1573
  fontWeight = _ref.fontWeight,
1586
1574
  variant = _ref.variant,
1587
1575
  _ref$color = _ref.color,
1588
- color = _ref$color === void 0 ? colors.black : _ref$color,
1576
+ color = _ref$color === void 0 ? colors.label.primary.light : _ref$color,
1589
1577
  className = _ref.className;
1590
1578
  return /*#__PURE__*/React__default.createElement(react.Text, {
1591
1579
  fontSize: fontSize,
@@ -1618,9 +1606,9 @@ var shadows = {
1618
1606
  lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
1619
1607
  xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
1620
1608
  '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
1621
- insetOutline: "inset 0 0 0 2px " + colors.blue[200],
1622
- outline: "0 0 0 2px " + colors.blue[200],
1623
- outlineDanger600: "0 0 0 2px " + colors.red[600],
1609
+ insetOutline: "inset 0 0 0 2px " + colors.fill.action,
1610
+ outline: "0 0 0 2px " + colors.fill.action,
1611
+ outlineDanger600: "0 0 0 2px " + colors.fill.error,
1624
1612
  inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
1625
1613
  none: 'none',
1626
1614
  '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'
@@ -1644,7 +1632,7 @@ var baseStyle = {
1644
1632
  function variantPositive() {
1645
1633
  return {
1646
1634
  container: {
1647
- bg: colors.fill.positive
1635
+ bg: colors.fill.success
1648
1636
  }
1649
1637
  };
1650
1638
  }
@@ -1668,7 +1656,7 @@ function variantError() {
1668
1656
  function variantNeutral() {
1669
1657
  return {
1670
1658
  container: {
1671
- bg: colors.fill.light
1659
+ bg: colors.fill.light.tertiary
1672
1660
  }
1673
1661
  };
1674
1662
  }
@@ -1744,223 +1732,68 @@ var Badge = {
1744
1732
  defaultProps: defaultProps$1
1745
1733
  };
1746
1734
 
1747
- var baseStyle$2 = {
1748
- lineHeight: 1,
1749
- borderRadius: 'md',
1750
- fontWeight: 'bold',
1751
- _focus: {
1752
- boxShadow: 'outline'
1753
- },
1735
+ var baseStyle$2 = /*#__PURE__*/system.defineStyle({
1736
+ borderRadius: '4px',
1737
+ fontSize: '18px',
1738
+ bg: colors.fill.action,
1739
+ color: colors.label.primary.dark,
1740
+ px: '8px',
1741
+ py: '4px',
1742
+ bgGradient: 'linear-gradient(#FFFFFF29, #FFFFFF00)',
1743
+ shadow: '1px 0.5px #0000001A',
1754
1744
  _disabled: {
1755
- opacity: 0.4,
1756
- cursor: 'not-allowed',
1757
- boxShadow: 'none'
1758
- }
1759
- };
1760
-
1761
- var focusShadow = function focusShadow(color) {
1762
- return "0 0 0 3px " + color;
1763
- };
1764
-
1765
- function variantGhost(props) {
1766
- var c = props.colorScheme,
1767
- theme = props.theme;
1768
-
1769
- if (c === 'gray') {
1770
- var _focusColor = themeTools.getColor(theme, 'gray.100');
1771
-
1772
- return {
1773
- color: themeTools.mode("gray.500", "whiteAlpha.900")(props),
1774
- _hover: {
1775
- bg: themeTools.mode("gray.50", "whiteAlpha.200")(props)
1776
- },
1777
- _active: {
1778
- bg: themeTools.mode("gray.200", "whiteAlpha.300")(props)
1779
- },
1780
- _focus: {
1781
- boxShadow: focusShadow(_focusColor)
1782
- }
1783
- };
1784
- }
1785
-
1786
- var darkHoverBg = themeTools.transparentize(c + ".200", 0.12)(theme);
1787
- var darkActiveBg = themeTools.transparentize(c + ".200", 0.24)(theme);
1788
- var focusColor = themeTools.getColor(theme, c + ".200");
1789
- return {
1790
- color: themeTools.mode(c + ".500", c + ".200")(props),
1791
- bg: 'transparent',
1792
- _hover: {
1793
- bg: themeTools.mode(c + ".50", darkHoverBg)(props)
1794
- },
1795
- _active: {
1796
- bg: themeTools.mode(c + ".100", darkActiveBg)(props)
1797
- },
1798
- _focus: {
1799
- boxShadow: focusShadow(focusColor)
1800
- }
1801
- };
1802
- }
1803
-
1804
- function variantOutline$1(props) {
1805
- var c = props.colorScheme;
1806
- var borderColor = themeTools.mode("gray.200", "whiteAlpha.300")(props);
1807
- return _extends({
1808
- border: '1px solid',
1809
- borderColor: c === 'gray' ? borderColor : 'currentColor'
1810
- }, variantGhost(props));
1811
- }
1812
- /** Accessible color overrides for less accessible colors. */
1813
-
1814
-
1815
- var accessibleColorMap = {
1816
- yellow: {
1817
- bg: 'yellow.400',
1818
- color: 'black',
1819
- hoverBg: 'yellow.500',
1820
- activeBg: 'yellow.600'
1745
+ backgroundColor: 'gray.100',
1746
+ borderColor: 'gray.100',
1747
+ color: 'gray.500',
1748
+ pointerEvents: 'none'
1749
+ },
1750
+ _hover: {
1751
+ bg: colors.fill.action
1821
1752
  },
1822
- cyan: {
1823
- bg: 'cyan.400',
1824
- color: 'black',
1825
- hoverBg: 'cyan.500',
1826
- activeBg: 'cyan.600'
1753
+ _active: {
1754
+ color: colors.label.primary.dark,
1755
+ bg: colors.fill.action,
1756
+ bgGradient: colors.fill.light.quaternary
1757
+ },
1758
+ _focus: {
1759
+ bg: colors.fill.action,
1760
+ border: "2px solid " + colors.border.focus
1827
1761
  }
1828
- };
1829
-
1830
- function variantSolid$1(props) {
1831
- var c = props.colorScheme,
1832
- theme = props.theme;
1833
- if (c === 'gray') return {
1834
- color: 'gray.500',
1835
- bg: themeTools.mode("gray.50", "whiteAlpha.200")(props),
1836
- _hover: {
1837
- bg: themeTools.mode("gray.100", "whiteAlpha.300")(props)
1838
- },
1839
- _active: {
1840
- bg: themeTools.mode("gray.200", "whiteAlpha.400")(props)
1841
- }
1842
- };
1843
- if (c === 'darkgray') return {
1844
- color: 'white',
1845
- bg: 'gray.400',
1846
- _hover: {
1847
- bg: 'gray.600'
1848
- },
1849
- _active: {
1850
- bg: 'gray.700'
1851
- }
1852
- };
1762
+ });
1853
1763
 
1854
- var _ref = accessibleColorMap[c] || {},
1855
- _ref$bg = _ref.bg,
1856
- bg = _ref$bg === void 0 ? c + ".500" : _ref$bg,
1857
- _ref$color = _ref.color,
1858
- color = _ref$color === void 0 ? 'white' : _ref$color,
1859
- _ref$hoverBg = _ref.hoverBg,
1860
- hoverBg = _ref$hoverBg === void 0 ? c + ".600" : _ref$hoverBg,
1861
- _ref$activeBg = _ref.activeBg,
1862
- activeBg = _ref$activeBg === void 0 ? c + ".700" : _ref$activeBg;
1764
+ var variantSolid$1 = function variantSolid() {
1765
+ return _extends({}, baseStyle$2);
1766
+ };
1863
1767
 
1864
- var focusColor = themeTools.getColor(theme, c + ".200");
1865
- return {
1866
- bg: themeTools.mode(bg, c + ".200")(props),
1867
- color: themeTools.mode(color, "gray.800")(props),
1768
+ var variantOutline$1 = function variantOutline() {
1769
+ return _extends({}, baseStyle$2, {
1770
+ color: colors.fill.action,
1771
+ bg: colors.label.primary.dark,
1772
+ border: 'none',
1868
1773
  _hover: {
1869
- bg: themeTools.mode(hoverBg, c + ".300")(props)
1774
+ bg: colors.label.primary.dark
1870
1775
  },
1871
1776
  _active: {
1872
- bg: themeTools.mode(activeBg, c + ".400")(props)
1777
+ color: colors.fill.action,
1778
+ bg: colors.label.primary.dark,
1779
+ bgGradient: colors.fill.light.quaternary
1873
1780
  },
1874
1781
  _focus: {
1875
- boxShadow: focusShadow(focusColor)
1782
+ bg: colors.label.primary.dark
1876
1783
  }
1877
- };
1878
- }
1879
- /**
1880
- * A variant that displays a solid variant when an active CSS class is
1881
- * detected, otherwise display a ghost variant. This is useful for pill nav filters.
1882
- */
1883
-
1884
-
1885
- function variantActiveSolid(props) {
1886
- return _extends({}, variantGhost(_extends({}, props, {
1887
- colorScheme: 'gray'
1888
- })), {
1889
- '&.active': _extends({}, variantSolid$1(props))
1890
1784
  });
1891
- }
1892
-
1893
- function variantLink(props) {
1894
- var c = props.colorScheme;
1895
- return {
1896
- padding: 0,
1897
- height: 'auto',
1898
- lineHeight: 'normal',
1899
- color: themeTools.mode(c + ".500", c + ".200")(props),
1900
- _hover: {
1901
- textDecoration: 'underline'
1902
- },
1903
- _active: {
1904
- color: themeTools.mode(c + ".700", c + ".500")(props)
1905
- }
1906
- };
1907
- }
1908
-
1909
- var variantUnstyled = {
1910
- bg: 'none',
1911
- color: 'inherit',
1912
- display: 'inline',
1913
- lineHeight: 'inherit',
1914
- m: 0,
1915
- p: 0
1916
1785
  };
1786
+
1917
1787
  var variants$2 = {
1918
- ghost: variantGhost,
1919
- outline: variantOutline$1,
1920
- solid: variantSolid$1,
1921
- activeSolid: variantActiveSolid,
1922
- link: variantLink,
1923
- unstyled: variantUnstyled
1924
- };
1925
- var sizes = {
1926
- lg: {
1927
- borderRadius: 'full',
1928
- h: 12,
1929
- minW: 20,
1930
- fontSize: 'lg',
1931
- px: 6
1932
- },
1933
- md: {
1934
- borderRadius: 'full',
1935
- h: 10,
1936
- minW: 20,
1937
- fontSize: 'md',
1938
- px: 4
1939
- },
1940
- sm: {
1941
- borderRadius: 'full',
1942
- h: 8,
1943
- minW: 8,
1944
- fontSize: 'sm',
1945
- px: 3
1946
- },
1947
- xs: {
1948
- borderRadius: 'full',
1949
- h: 6,
1950
- minW: 6,
1951
- fontSize: 'xs',
1952
- px: 2
1953
- }
1788
+ solid: /*#__PURE__*/variantSolid$1(),
1789
+ outline: /*#__PURE__*/variantOutline$1()
1954
1790
  };
1955
1791
  var defaultProps$2 = {
1956
- variant: 'solid',
1957
- size: 'md',
1958
- colorScheme: 'primary'
1792
+ solid: 'solid'
1959
1793
  };
1960
1794
  var Button$1 = {
1961
1795
  baseStyle: baseStyle$2,
1962
1796
  variants: variants$2,
1963
- sizes: sizes,
1964
1797
  defaultProps: defaultProps$2
1965
1798
  };
1966
1799
 
@@ -2065,7 +1898,7 @@ var baseStyle$7 = {
2065
1898
  borderColor: colors.border["default"],
2066
1899
  _disabled: {
2067
1900
  cursor: 'not-allowed',
2068
- bg: colors.fill.light,
1901
+ bg: colors.fill.light.quaternary,
2069
1902
  color: colors.label.secondary.light
2070
1903
  },
2071
1904
  _focus: {
@@ -2089,7 +1922,7 @@ var Input$1 = {
2089
1922
  };
2090
1923
 
2091
1924
  var baseStyle$8 = {
2092
- color: 'blue.500',
1925
+ color: colors.fill.action,
2093
1926
  textDecoration: 'underline',
2094
1927
  transition: 'none',
2095
1928
  _hover: {
@@ -2196,72 +2029,7 @@ var Link = {
2196
2029
  variants: variants$5
2197
2030
  };
2198
2031
 
2199
- var parts$4 = ['item', 'command', 'list', 'button', 'groupTitle'];
2200
-
2201
- function baseStyleList(props) {
2202
- return {
2203
- bg: themeTools.mode("#fff", "gray.700")(props),
2204
- boxShadow: themeTools.mode("2xl", "dark-lg")(props),
2205
- color: 'inherit',
2206
- minW: '3xs',
2207
- py: 2,
2208
- zIndex: 'docked',
2209
- borderRadius: 'md',
2210
- borderWidth: 0,
2211
- overflow: 'hidden'
2212
- };
2213
- }
2214
-
2215
- function baseStyleItem(props) {
2216
- return {
2217
- fontSize: 'sm',
2218
- py: 2,
2219
- px: 4,
2220
- transition: 'background 50ms ease-in 0s',
2221
- _focus: {
2222
- bg: themeTools.mode("blue.50", "whiteAlpha.200")(props)
2223
- },
2224
- _hover: {
2225
- bg: themeTools.mode("blue.50", "whiteAlpha.200")(props)
2226
- },
2227
- _active: {
2228
- bg: themeTools.mode("gray.200", "whiteAlpha.200")(props)
2229
- },
2230
- _expanded: {
2231
- bg: themeTools.mode("gray.100", "whiteAlpha.100")(props)
2232
- },
2233
- _disabled: {
2234
- opacity: 0.4,
2235
- cursor: 'not-allowed'
2236
- }
2237
- };
2238
- }
2239
-
2240
- var baseStyleGroupTitle = {
2241
- mx: 4,
2242
- my: 2,
2243
- fontWeight: 'semibold',
2244
- fontSize: 'sm'
2245
- };
2246
- var baseStyleCommand = {
2247
- opacity: 0.6
2248
- };
2249
-
2250
- var baseStyle$9 = function baseStyle(props) {
2251
- return {
2252
- list: baseStyleList(props),
2253
- item: baseStyleItem(props),
2254
- groupTitle: baseStyleGroupTitle,
2255
- command: baseStyleCommand
2256
- };
2257
- };
2258
-
2259
- var Menu = {
2260
- parts: parts$4,
2261
- baseStyle: baseStyle$9
2262
- };
2263
-
2264
- var parts$5 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
2032
+ var parts$4 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
2265
2033
  var baseStyleOverlay = {
2266
2034
  bg: 'blackAlpha.600',
2267
2035
  zIndex: 'modal'
@@ -2335,7 +2103,7 @@ var baseStyleFooter = {
2335
2103
  pb: 16
2336
2104
  };
2337
2105
 
2338
- var baseStyle$a = function baseStyle(props) {
2106
+ var baseStyle$9 = function baseStyle(props) {
2339
2107
  return {
2340
2108
  overlay: baseStyleOverlay,
2341
2109
  dialogContainer: baseStyleDialogContainer(props),
@@ -2428,7 +2196,7 @@ function getSize(value) {
2428
2196
  };
2429
2197
  }
2430
2198
 
2431
- var sizes$1 = {
2199
+ var sizes = {
2432
2200
  xs: /*#__PURE__*/getSize('xs'),
2433
2201
  sm: /*#__PURE__*/getSize('sm'),
2434
2202
  md: /*#__PURE__*/getSize('md'),
@@ -2459,16 +2227,16 @@ var defaultProps$5 = {
2459
2227
  isCentered: true
2460
2228
  };
2461
2229
  var Modal = {
2462
- parts: parts$5,
2463
- baseStyle: baseStyle$a,
2464
- sizes: sizes$1,
2230
+ parts: parts$4,
2231
+ baseStyle: baseStyle$9,
2232
+ sizes: sizes,
2465
2233
  variants: variants$6,
2466
2234
  defaultProps: defaultProps$5
2467
2235
  };
2468
2236
 
2469
2237
  var defaultProps$6 = Input$1.defaultProps,
2470
2238
  variants$7 = Input$1.variants;
2471
- var parts$6 = ['field', 'icon'];
2239
+ var parts$5 = ['field', 'icon'];
2472
2240
 
2473
2241
  function baseStyleField() {
2474
2242
  return _extends({}, Input$1.baseStyle.field, {
@@ -2489,7 +2257,7 @@ var baseStyleInput = {
2489
2257
  }
2490
2258
  };
2491
2259
 
2492
- var baseStyle$b = function baseStyle() {
2260
+ var baseStyle$a = function baseStyle() {
2493
2261
  return {
2494
2262
  field: baseStyleField(),
2495
2263
  icon: baseStyleInput
@@ -2497,13 +2265,13 @@ var baseStyle$b = function baseStyle() {
2497
2265
  };
2498
2266
 
2499
2267
  var Select = {
2500
- parts: parts$6,
2501
- baseStyle: baseStyle$b,
2268
+ parts: parts$5,
2269
+ baseStyle: baseStyle$a,
2502
2270
  variants: variants$7,
2503
2271
  defaultProps: defaultProps$6
2504
2272
  };
2505
2273
 
2506
- var parts$7 = ['track', 'thumb'];
2274
+ var parts$6 = ['track', 'thumb'];
2507
2275
 
2508
2276
  function baseStyleTrack(props) {
2509
2277
  var c = props.colorScheme,
@@ -2536,14 +2304,14 @@ var baseStyleThumb = {
2536
2304
  transform: 'translateX(0)'
2537
2305
  };
2538
2306
 
2539
- var baseStyle$c = function baseStyle(props) {
2307
+ var baseStyle$b = function baseStyle(props) {
2540
2308
  return {
2541
2309
  track: baseStyleTrack(props),
2542
2310
  thumb: baseStyleThumb
2543
2311
  };
2544
2312
  };
2545
2313
 
2546
- var sizes$2 = {
2314
+ var sizes$1 = {
2547
2315
  sm: {
2548
2316
  track: {
2549
2317
  w: '1.375rem',
@@ -2589,12 +2357,42 @@ var defaultProps$7 = {
2589
2357
  colorScheme: 'blue'
2590
2358
  };
2591
2359
  var Switch = {
2592
- parts: parts$7,
2593
- baseStyle: baseStyle$c,
2594
- sizes: sizes$2,
2360
+ parts: parts$6,
2361
+ baseStyle: baseStyle$b,
2362
+ sizes: sizes$1,
2595
2363
  defaultProps: defaultProps$7
2596
2364
  };
2597
2365
 
2366
+ var parts$7 = ['th', 'td', 'tr', 'body'];
2367
+ var baseStyle$c = {
2368
+ th: {
2369
+ height: 'fit-content',
2370
+ width: '100%',
2371
+ bg: colors.label.primary.dark,
2372
+ padding: '5px 8px !important'
2373
+ },
2374
+ tr: {
2375
+ fontSize: '13px',
2376
+ display: 'flex',
2377
+ alignItems: 'center',
2378
+ width: '100%',
2379
+ height: 'fit-content',
2380
+ borderRadius: 'md',
2381
+ _odd: {
2382
+ background: colors.fill.light.tertiary
2383
+ }
2384
+ },
2385
+ td: {
2386
+ padding: '5px 8px !important',
2387
+ borderRadius: 'md',
2388
+ width: '100%'
2389
+ }
2390
+ };
2391
+ var Table$1 = {
2392
+ parts: parts$7,
2393
+ baseStyle: baseStyle$c
2394
+ };
2395
+
2598
2396
  var parts$8 = ['root', 'tablist', 'tab', 'tabpanel', 'indicator'];
2599
2397
 
2600
2398
  function baseStyleRoot(props) {
@@ -2644,7 +2442,7 @@ var baseStyle$d = function baseStyle(props) {
2644
2442
  };
2645
2443
  };
2646
2444
 
2647
- var sizes$3 = {
2445
+ var sizes$2 = {
2648
2446
  sm: {
2649
2447
  tab: {
2650
2448
  py: '0.25rem',
@@ -2785,18 +2583,18 @@ function variantSolidRounded(props) {
2785
2583
  };
2786
2584
  }
2787
2585
 
2788
- var variantUnstyled$1 = {};
2586
+ var variantUnstyled = {};
2789
2587
  var variantSimple = {
2790
2588
  tab: {
2791
2589
  position: 'relative',
2792
2590
  borderColor: 'transparent',
2793
2591
  '&.active': {
2794
- color: colors.blue[500],
2592
+ color: colors.fill.action,
2795
2593
  bg: 'transparent',
2796
- borderBottom: '1px solid blue.500'
2594
+ borderBottom: "1px solid " + colors.fill.action
2797
2595
  },
2798
2596
  _selected: {
2799
- color: colors.blue[500],
2597
+ color: colors.fill.action,
2800
2598
  bg: 'transparent',
2801
2599
  _after: {
2802
2600
  content: '""',
@@ -2820,7 +2618,7 @@ var variants$8 = {
2820
2618
  'enclosed-colored': variantEnclosedColored,
2821
2619
  'soft-rounded': variantSoftRounded,
2822
2620
  'solid-rounded': variantSolidRounded,
2823
- unstyled: variantUnstyled$1,
2621
+ unstyled: variantUnstyled,
2824
2622
  simple: variantSimple
2825
2623
  };
2826
2624
  var defaultProps$8 = {
@@ -2831,7 +2629,7 @@ var defaultProps$8 = {
2831
2629
  var Tabs = {
2832
2630
  parts: parts$8,
2833
2631
  baseStyle: baseStyle$d,
2834
- sizes: sizes$3,
2632
+ sizes: sizes$2,
2835
2633
  variants: variants$8,
2836
2634
  defaultProps: defaultProps$8
2837
2635
  };
@@ -2930,10 +2728,10 @@ var customXQChakraTheme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends(
2930
2728
  FormLabel: FormLabel,
2931
2729
  Input: Input$1,
2932
2730
  Link: Link,
2933
- Menu: Menu,
2934
2731
  Modal: Modal,
2935
2732
  Select: Select,
2936
2733
  Switch: Switch,
2734
+ Table: Table$1,
2937
2735
  Tabs: Tabs,
2938
2736
  Textarea: Textarea,
2939
2737
  Text: Text$1