@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.
Files changed (36) 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/theme/components/button.d.ts +68 -207
  4. package/dist/theme/foundations/colors.d.ts +44 -22
  5. package/dist/ui-core.cjs.development.js +163 -394
  6. package/dist/ui-core.cjs.development.js.map +1 -1
  7. package/dist/ui-core.cjs.production.min.js +1 -1
  8. package/dist/ui-core.cjs.production.min.js.map +1 -1
  9. package/dist/ui-core.esm.js +163 -394
  10. package/dist/ui-core.esm.js.map +1 -1
  11. package/package.json +1 -2
  12. package/src/components/banner/index.tsx +7 -1
  13. package/src/components/button/Button.stories.tsx +19 -7
  14. package/src/components/button/index.tsx +7 -19
  15. package/src/components/button/spinner/index.tsx +2 -7
  16. package/src/components/input/Input.stories.tsx +45 -59
  17. package/src/components/input/StackedMultiSelect/index.tsx +11 -11
  18. package/src/components/input/StackedPilledInput/index.tsx +6 -12
  19. package/src/components/input/components/dropdown/index.tsx +3 -2
  20. package/src/components/input/index.tsx +0 -1
  21. package/src/components/loading/index.tsx +1 -1
  22. package/src/components/table/Table.stories.tsx +9 -1
  23. package/src/components/table/index.tsx +1 -1
  24. package/src/components/table/loading/index.tsx +2 -2
  25. package/src/components/tabs/index.tsx +1 -1
  26. package/src/components/text/index.tsx +1 -1
  27. package/src/theme/components/alert.ts +2 -2
  28. package/src/theme/components/button.ts +45 -186
  29. package/src/theme/components/input.ts +1 -1
  30. package/src/theme/components/link.ts +2 -1
  31. package/src/theme/components/tabs.ts +3 -3
  32. package/src/theme/customXQChakraTheme.ts +0 -2
  33. package/src/theme/foundations/colors.ts +19 -14
  34. package/src/theme/foundations/shadows.ts +3 -3
  35. package/dist/theme/components/menu.d.ts +0 -48
  36. 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,10 +1465,10 @@ 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),
@@ -1509,7 +1499,7 @@ function Table(_ref) {
1509
1499
  var columnsAsConst = generateTableColumnsAsConst(columns);
1510
1500
  return /*#__PURE__*/React__default.createElement(react.TableContainer, {
1511
1501
  border: "1px",
1512
- borderColor: colors.gray[100],
1502
+ borderColor: colors.fill.light.quaternary,
1513
1503
  overflowX: "auto",
1514
1504
  bg: "white",
1515
1505
  borderRadius: "md",
@@ -1560,7 +1550,7 @@ var TabsWrapper = function TabsWrapper(_ref) {
1560
1550
  sm: 'row'
1561
1551
  },
1562
1552
  border: "1px",
1563
- borderColor: colors.gray[100],
1553
+ borderColor: colors.fill.light.quaternary,
1564
1554
  bg: "white",
1565
1555
  borderRadius: "md",
1566
1556
  borderBottom: 0,
@@ -1585,7 +1575,7 @@ var Text = function Text(_ref) {
1585
1575
  fontWeight = _ref.fontWeight,
1586
1576
  variant = _ref.variant,
1587
1577
  _ref$color = _ref.color,
1588
- color = _ref$color === void 0 ? colors.black : _ref$color,
1578
+ color = _ref$color === void 0 ? colors.label.primary.light : _ref$color,
1589
1579
  className = _ref.className;
1590
1580
  return /*#__PURE__*/React__default.createElement(react.Text, {
1591
1581
  fontSize: fontSize,
@@ -1618,9 +1608,9 @@ var shadows = {
1618
1608
  lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
1619
1609
  xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
1620
1610
  '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],
1611
+ insetOutline: "inset 0 0 0 2px " + colors.fill.action,
1612
+ outline: "0 0 0 2px " + colors.fill.action,
1613
+ outlineDanger600: "0 0 0 2px " + colors.fill.error,
1624
1614
  inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
1625
1615
  none: 'none',
1626
1616
  '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 +1634,7 @@ var baseStyle = {
1644
1634
  function variantPositive() {
1645
1635
  return {
1646
1636
  container: {
1647
- bg: colors.fill.positive
1637
+ bg: colors.fill.success
1648
1638
  }
1649
1639
  };
1650
1640
  }
@@ -1668,7 +1658,7 @@ function variantError() {
1668
1658
  function variantNeutral() {
1669
1659
  return {
1670
1660
  container: {
1671
- bg: colors.fill.light
1661
+ bg: colors.fill.light.tertiary
1672
1662
  }
1673
1663
  };
1674
1664
  }
@@ -1744,223 +1734,68 @@ var Badge = {
1744
1734
  defaultProps: defaultProps$1
1745
1735
  };
1746
1736
 
1747
- var baseStyle$2 = {
1748
- lineHeight: 1,
1749
- borderRadius: 'md',
1750
- fontWeight: 'bold',
1751
- _focus: {
1752
- boxShadow: 'outline'
1753
- },
1737
+ var baseStyle$2 = /*#__PURE__*/system.defineStyle({
1738
+ borderRadius: '4px',
1739
+ fontSize: '18px',
1740
+ bg: colors.fill.action,
1741
+ color: colors.label.primary.dark,
1742
+ px: '8px',
1743
+ py: '4px',
1744
+ bgGradient: 'linear-gradient(#FFFFFF29, #FFFFFF00)',
1745
+ shadow: '1px 0.5px #0000001A',
1754
1746
  _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'
1747
+ backgroundColor: 'gray.100',
1748
+ borderColor: 'gray.100',
1749
+ color: 'gray.500',
1750
+ pointerEvents: 'none'
1821
1751
  },
1822
- cyan: {
1823
- bg: 'cyan.400',
1824
- color: 'black',
1825
- hoverBg: 'cyan.500',
1826
- activeBg: 'cyan.600'
1752
+ _hover: {
1753
+ bg: colors.fill.action
1754
+ },
1755
+ _active: {
1756
+ color: colors.label.primary.dark,
1757
+ bg: colors.fill.action,
1758
+ bgGradient: colors.fill.light.quaternary
1759
+ },
1760
+ _focus: {
1761
+ bg: colors.fill.action,
1762
+ border: "2px solid " + colors.border.focus
1827
1763
  }
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
- };
1764
+ });
1853
1765
 
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;
1766
+ var variantSolid$1 = function variantSolid() {
1767
+ return _extends({}, baseStyle$2);
1768
+ };
1863
1769
 
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),
1770
+ var variantOutline$1 = function variantOutline() {
1771
+ return _extends({}, baseStyle$2, {
1772
+ color: colors.fill.action,
1773
+ bg: colors.label.primary.dark,
1774
+ border: 'none',
1868
1775
  _hover: {
1869
- bg: themeTools.mode(hoverBg, c + ".300")(props)
1776
+ bg: colors.label.primary.dark
1870
1777
  },
1871
1778
  _active: {
1872
- bg: themeTools.mode(activeBg, c + ".400")(props)
1779
+ color: colors.fill.action,
1780
+ bg: colors.label.primary.dark,
1781
+ bgGradient: colors.fill.light.quaternary
1873
1782
  },
1874
1783
  _focus: {
1875
- boxShadow: focusShadow(focusColor)
1784
+ bg: colors.label.primary.dark
1876
1785
  }
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
1786
  });
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
1787
  };
1788
+
1917
1789
  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
- }
1790
+ solid: /*#__PURE__*/variantSolid$1(),
1791
+ outline: /*#__PURE__*/variantOutline$1()
1954
1792
  };
1955
1793
  var defaultProps$2 = {
1956
- variant: 'solid',
1957
- size: 'md',
1958
- colorScheme: 'primary'
1794
+ solid: 'solid'
1959
1795
  };
1960
1796
  var Button$1 = {
1961
1797
  baseStyle: baseStyle$2,
1962
1798
  variants: variants$2,
1963
- sizes: sizes,
1964
1799
  defaultProps: defaultProps$2
1965
1800
  };
1966
1801
 
@@ -2065,7 +1900,7 @@ var baseStyle$7 = {
2065
1900
  borderColor: colors.border["default"],
2066
1901
  _disabled: {
2067
1902
  cursor: 'not-allowed',
2068
- bg: colors.fill.light,
1903
+ bg: colors.fill.light.quaternary,
2069
1904
  color: colors.label.secondary.light
2070
1905
  },
2071
1906
  _focus: {
@@ -2089,7 +1924,7 @@ var Input$1 = {
2089
1924
  };
2090
1925
 
2091
1926
  var baseStyle$8 = {
2092
- color: 'blue.500',
1927
+ color: colors.fill.action,
2093
1928
  textDecoration: 'underline',
2094
1929
  transition: 'none',
2095
1930
  _hover: {
@@ -2196,72 +2031,7 @@ var Link = {
2196
2031
  variants: variants$5
2197
2032
  };
2198
2033
 
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'];
2034
+ var parts$4 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
2265
2035
  var baseStyleOverlay = {
2266
2036
  bg: 'blackAlpha.600',
2267
2037
  zIndex: 'modal'
@@ -2335,7 +2105,7 @@ var baseStyleFooter = {
2335
2105
  pb: 16
2336
2106
  };
2337
2107
 
2338
- var baseStyle$a = function baseStyle(props) {
2108
+ var baseStyle$9 = function baseStyle(props) {
2339
2109
  return {
2340
2110
  overlay: baseStyleOverlay,
2341
2111
  dialogContainer: baseStyleDialogContainer(props),
@@ -2428,7 +2198,7 @@ function getSize(value) {
2428
2198
  };
2429
2199
  }
2430
2200
 
2431
- var sizes$1 = {
2201
+ var sizes = {
2432
2202
  xs: /*#__PURE__*/getSize('xs'),
2433
2203
  sm: /*#__PURE__*/getSize('sm'),
2434
2204
  md: /*#__PURE__*/getSize('md'),
@@ -2459,16 +2229,16 @@ var defaultProps$5 = {
2459
2229
  isCentered: true
2460
2230
  };
2461
2231
  var Modal = {
2462
- parts: parts$5,
2463
- baseStyle: baseStyle$a,
2464
- sizes: sizes$1,
2232
+ parts: parts$4,
2233
+ baseStyle: baseStyle$9,
2234
+ sizes: sizes,
2465
2235
  variants: variants$6,
2466
2236
  defaultProps: defaultProps$5
2467
2237
  };
2468
2238
 
2469
2239
  var defaultProps$6 = Input$1.defaultProps,
2470
2240
  variants$7 = Input$1.variants;
2471
- var parts$6 = ['field', 'icon'];
2241
+ var parts$5 = ['field', 'icon'];
2472
2242
 
2473
2243
  function baseStyleField() {
2474
2244
  return _extends({}, Input$1.baseStyle.field, {
@@ -2489,7 +2259,7 @@ var baseStyleInput = {
2489
2259
  }
2490
2260
  };
2491
2261
 
2492
- var baseStyle$b = function baseStyle() {
2262
+ var baseStyle$a = function baseStyle() {
2493
2263
  return {
2494
2264
  field: baseStyleField(),
2495
2265
  icon: baseStyleInput
@@ -2497,13 +2267,13 @@ var baseStyle$b = function baseStyle() {
2497
2267
  };
2498
2268
 
2499
2269
  var Select = {
2500
- parts: parts$6,
2501
- baseStyle: baseStyle$b,
2270
+ parts: parts$5,
2271
+ baseStyle: baseStyle$a,
2502
2272
  variants: variants$7,
2503
2273
  defaultProps: defaultProps$6
2504
2274
  };
2505
2275
 
2506
- var parts$7 = ['track', 'thumb'];
2276
+ var parts$6 = ['track', 'thumb'];
2507
2277
 
2508
2278
  function baseStyleTrack(props) {
2509
2279
  var c = props.colorScheme,
@@ -2536,14 +2306,14 @@ var baseStyleThumb = {
2536
2306
  transform: 'translateX(0)'
2537
2307
  };
2538
2308
 
2539
- var baseStyle$c = function baseStyle(props) {
2309
+ var baseStyle$b = function baseStyle(props) {
2540
2310
  return {
2541
2311
  track: baseStyleTrack(props),
2542
2312
  thumb: baseStyleThumb
2543
2313
  };
2544
2314
  };
2545
2315
 
2546
- var sizes$2 = {
2316
+ var sizes$1 = {
2547
2317
  sm: {
2548
2318
  track: {
2549
2319
  w: '1.375rem',
@@ -2589,13 +2359,13 @@ var defaultProps$7 = {
2589
2359
  colorScheme: 'blue'
2590
2360
  };
2591
2361
  var Switch = {
2592
- parts: parts$7,
2593
- baseStyle: baseStyle$c,
2594
- sizes: sizes$2,
2362
+ parts: parts$6,
2363
+ baseStyle: baseStyle$b,
2364
+ sizes: sizes$1,
2595
2365
  defaultProps: defaultProps$7
2596
2366
  };
2597
2367
 
2598
- var parts$8 = ['root', 'tablist', 'tab', 'tabpanel', 'indicator'];
2368
+ var parts$7 = ['root', 'tablist', 'tab', 'tabpanel', 'indicator'];
2599
2369
 
2600
2370
  function baseStyleRoot(props) {
2601
2371
  var orientation = props.orientation;
@@ -2635,7 +2405,7 @@ var baseStyleTabpanel = {
2635
2405
  p: 4
2636
2406
  };
2637
2407
 
2638
- var baseStyle$d = function baseStyle(props) {
2408
+ var baseStyle$c = function baseStyle(props) {
2639
2409
  return {
2640
2410
  root: baseStyleRoot(props),
2641
2411
  tab: baseStyleTab(props),
@@ -2644,7 +2414,7 @@ var baseStyle$d = function baseStyle(props) {
2644
2414
  };
2645
2415
  };
2646
2416
 
2647
- var sizes$3 = {
2417
+ var sizes$2 = {
2648
2418
  sm: {
2649
2419
  tab: {
2650
2420
  py: '0.25rem',
@@ -2785,18 +2555,18 @@ function variantSolidRounded(props) {
2785
2555
  };
2786
2556
  }
2787
2557
 
2788
- var variantUnstyled$1 = {};
2558
+ var variantUnstyled = {};
2789
2559
  var variantSimple = {
2790
2560
  tab: {
2791
2561
  position: 'relative',
2792
2562
  borderColor: 'transparent',
2793
2563
  '&.active': {
2794
- color: colors.blue[500],
2564
+ color: colors.fill.action,
2795
2565
  bg: 'transparent',
2796
- borderBottom: '1px solid blue.500'
2566
+ borderBottom: "1px solid " + colors.fill.action
2797
2567
  },
2798
2568
  _selected: {
2799
- color: colors.blue[500],
2569
+ color: colors.fill.action,
2800
2570
  bg: 'transparent',
2801
2571
  _after: {
2802
2572
  content: '""',
@@ -2820,7 +2590,7 @@ var variants$8 = {
2820
2590
  'enclosed-colored': variantEnclosedColored,
2821
2591
  'soft-rounded': variantSoftRounded,
2822
2592
  'solid-rounded': variantSolidRounded,
2823
- unstyled: variantUnstyled$1,
2593
+ unstyled: variantUnstyled,
2824
2594
  simple: variantSimple
2825
2595
  };
2826
2596
  var defaultProps$8 = {
@@ -2829,14 +2599,14 @@ var defaultProps$8 = {
2829
2599
  colorScheme: 'blue'
2830
2600
  };
2831
2601
  var Tabs = {
2832
- parts: parts$8,
2833
- baseStyle: baseStyle$d,
2834
- sizes: sizes$3,
2602
+ parts: parts$7,
2603
+ baseStyle: baseStyle$c,
2604
+ sizes: sizes$2,
2835
2605
  variants: variants$8,
2836
2606
  defaultProps: defaultProps$8
2837
2607
  };
2838
2608
 
2839
- var baseStyle$e = /*#__PURE__*/_extends({}, Input$1.baseStyle.field, {
2609
+ var baseStyle$d = /*#__PURE__*/_extends({}, Input$1.baseStyle.field, {
2840
2610
  display: 'block',
2841
2611
  paddingY: '8px',
2842
2612
  height: '80px',
@@ -2847,12 +2617,12 @@ var defaultProps$9 = {
2847
2617
  variant: 'default'
2848
2618
  };
2849
2619
  var Textarea = {
2850
- baseStyle: baseStyle$e,
2620
+ baseStyle: baseStyle$d,
2851
2621
  defaultProps: defaultProps$9
2852
2622
  };
2853
2623
 
2854
2624
  var defaultProps$a = react.Text.defaultProps;
2855
- var baseStyle$f = {
2625
+ var baseStyle$e = {
2856
2626
  fontWeight: typography.fontWeights.normal,
2857
2627
  fontFamily: typography.fonts.base,
2858
2628
  fontSize: typography.fontSizes.sm,
@@ -2861,7 +2631,7 @@ var baseStyle$f = {
2861
2631
  };
2862
2632
 
2863
2633
  function variantHeader() {
2864
- return _extends({}, baseStyle$f, {
2634
+ return _extends({}, baseStyle$e, {
2865
2635
  fontWeight: typography.fontWeights.bold,
2866
2636
  fontSize: typography.fontSizes['3xl'],
2867
2637
  lineHeight: typography.lineHeights[8],
@@ -2870,7 +2640,7 @@ function variantHeader() {
2870
2640
  }
2871
2641
 
2872
2642
  function variantSubheader() {
2873
- return _extends({}, baseStyle$f, {
2643
+ return _extends({}, baseStyle$e, {
2874
2644
  fontWeight: typography.fontWeights.semibold,
2875
2645
  fontSize: typography.fontSizes['lg'],
2876
2646
  lineHeight: typography.lineHeights[5],
@@ -2879,7 +2649,7 @@ function variantSubheader() {
2879
2649
  }
2880
2650
 
2881
2651
  function variantParagraph() {
2882
- return baseStyle$f;
2652
+ return baseStyle$e;
2883
2653
  }
2884
2654
 
2885
2655
  var variants$9 = {
@@ -2888,7 +2658,7 @@ var variants$9 = {
2888
2658
  paragraph: variantParagraph
2889
2659
  };
2890
2660
  var Text$1 = {
2891
- baseStyle: baseStyle$f,
2661
+ baseStyle: baseStyle$e,
2892
2662
  variants: variants$9,
2893
2663
  defaultProps: /*#__PURE__*/_extends({}, defaultProps$a, {
2894
2664
  variant: variants$9.paragraph
@@ -2930,7 +2700,6 @@ var customXQChakraTheme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends(
2930
2700
  FormLabel: FormLabel,
2931
2701
  Input: Input$1,
2932
2702
  Link: Link,
2933
- Menu: Menu,
2934
2703
  Modal: Modal,
2935
2704
  Select: Select,
2936
2705
  Switch: Switch,