@xqmsg/ui-core 0.9.3 → 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 (67) 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/input/InputTypes.d.ts +5 -3
  4. package/dist/components/input/StackedInput/StackedInput.d.ts +0 -3
  5. package/dist/components/input/StackedMultiSelect/index.d.ts +1 -1
  6. package/dist/components/input/StackedSelect/StackedSelect.d.ts +7 -3
  7. package/dist/components/input/components/dropdown/index.d.ts +10 -0
  8. package/dist/components/input/components/label/index.d.ts +9 -0
  9. package/dist/components/input/components/token/Token.stories.d.ts +5 -0
  10. package/dist/components/input/components/token/index.d.ts +7 -0
  11. package/dist/components/input/index.d.ts +1 -3
  12. package/dist/theme/components/button.d.ts +68 -207
  13. package/dist/theme/components/form-error.d.ts +3 -3
  14. package/dist/theme/components/form-label.d.ts +4 -6
  15. package/dist/theme/components/form.d.ts +3 -3
  16. package/dist/theme/components/input.d.ts +32 -161
  17. package/dist/theme/components/select.d.ts +27 -153
  18. package/dist/theme/components/textarea.d.ts +10 -117
  19. package/dist/theme/foundations/colors.d.ts +68 -16
  20. package/dist/ui-core.cjs.development.js +594 -860
  21. package/dist/ui-core.cjs.development.js.map +1 -1
  22. package/dist/ui-core.cjs.production.min.js +1 -1
  23. package/dist/ui-core.cjs.production.min.js.map +1 -1
  24. package/dist/ui-core.esm.js +598 -864
  25. package/dist/ui-core.esm.js.map +1 -1
  26. package/package.json +1 -2
  27. package/src/components/banner/index.tsx +7 -1
  28. package/src/components/button/Button.stories.tsx +19 -7
  29. package/src/components/button/index.tsx +7 -19
  30. package/src/components/button/spinner/index.tsx +2 -7
  31. package/src/components/input/Input.stories.tsx +60 -58
  32. package/src/components/input/InputTypes.ts +7 -1
  33. package/src/components/input/StackedInput/StackedInput.tsx +3 -15
  34. package/src/components/input/StackedMultiSelect/components/MultiValue/index.tsx +2 -2
  35. package/src/components/input/StackedMultiSelect/index.tsx +88 -92
  36. package/src/components/input/StackedPilledInput/index.tsx +139 -56
  37. package/src/components/input/StackedSelect/StackedSelect.tsx +63 -20
  38. package/src/components/input/StackedSelect/assets/svg/subtract.svg +3 -0
  39. package/src/components/input/components/dropdown/index.tsx +80 -0
  40. package/src/components/input/components/label/index.tsx +24 -0
  41. package/src/components/input/components/token/Token.stories.tsx +22 -0
  42. package/src/components/input/components/token/assets/svg/close.svg +3 -0
  43. package/src/components/input/components/token/index.tsx +37 -0
  44. package/src/components/input/index.tsx +7 -20
  45. package/src/components/loading/index.tsx +1 -1
  46. package/src/components/table/Table.stories.tsx +9 -1
  47. package/src/components/table/index.tsx +1 -1
  48. package/src/components/table/loading/index.tsx +2 -2
  49. package/src/components/tabs/index.tsx +1 -1
  50. package/src/components/text/index.tsx +1 -1
  51. package/src/theme/components/alert.ts +4 -4
  52. package/src/theme/components/button.ts +45 -186
  53. package/src/theme/components/form-error.ts +11 -14
  54. package/src/theme/components/form-label.ts +8 -8
  55. package/src/theme/components/form.ts +10 -13
  56. package/src/theme/components/input.ts +17 -191
  57. package/src/theme/components/link.ts +2 -1
  58. package/src/theme/components/select.ts +5 -10
  59. package/src/theme/components/tabs.ts +3 -3
  60. package/src/theme/components/textarea.ts +2 -38
  61. package/src/theme/customXQChakraTheme.ts +0 -2
  62. package/src/theme/foundations/colors.ts +31 -10
  63. package/src/theme/foundations/shadows.ts +3 -3
  64. package/dist/components/input/components/InputTag/index.d.ts +0 -7
  65. package/dist/theme/components/menu.d.ts +0 -48
  66. package/src/components/input/components/InputTag/index.tsx +0 -24
  67. 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 colors$1 = _interopDefault(require('src/theme/foundations/colors'));
10
11
  var reactHookForm = require('react-hook-form');
11
- var ReactSelect = _interopDefault(require('react-select'));
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,20 +128,43 @@ 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',
171
134
  dark: '#FFFFFF'
172
- }
173
- };
174
-
175
- var colors = /*#__PURE__*/_extends({
135
+ },
136
+ secondary: {
137
+ light: '#3C3C4399'
138
+ },
139
+ error: '#FF0000'
140
+ };
141
+ var border = {
142
+ focus: '#3A6CD980',
143
+ "default": '#9999991A'
144
+ };
145
+ var fill = {
146
+ light: {
147
+ primary: '#74748033',
148
+ secondary: '#74748029',
149
+ tertiary: '#7474801F',
150
+ quaternary: ':#7474800D'
151
+ },
152
+ success: '#d8f1b8',
153
+ error: '#ffbdb9',
154
+ warning: '#ffefb4',
155
+ action: '#0082ff'
156
+ };
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,
176
168
  transparent: 'transparent',
177
169
  current: 'currentColor',
178
170
  black: '#000000',
@@ -180,9 +172,7 @@ var colors = /*#__PURE__*/_extends({
180
172
  lightBlue: '#29abe2',
181
173
  coolGray: '#F6F7FB',
182
174
  darkBlue: '#292f4c',
183
- backdrop: '#fbfcff'
184
- }, aliases, {
185
- label: label,
175
+ backdrop: '#fbfcff',
186
176
  whiteAlpha: {
187
177
  50: 'rgba(255, 255, 255, 0.04)',
188
178
  100: 'rgba(255, 255, 255, 0.06)',
@@ -223,7 +213,7 @@ var colors = /*#__PURE__*/_extends({
223
213
  orange: orange,
224
214
  green: green,
225
215
  blue: blue
226
- });
216
+ };
227
217
 
228
218
  /**
229
219
  * A functional React component utilized to render the `Icon` for the `Breadcrumbs` component.
@@ -312,7 +302,6 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
312
302
  }));
313
303
  };
314
304
 
315
- var _excluded = ["onClick", "text", "type", "ariaLabel", "variant", "colorScheme", "style", "size", "disabled", "className"];
316
305
  /**
317
306
  * A functional React component utilized to render the `Button` component
318
307
  */
@@ -320,30 +309,23 @@ var _excluded = ["onClick", "text", "type", "ariaLabel", "variant", "colorScheme
320
309
  var Button = function Button(_ref) {
321
310
  var onClick = _ref.onClick,
322
311
  text = _ref.text,
323
- type = _ref.type,
312
+ _ref$type = _ref.type,
313
+ type = _ref$type === void 0 ? 'button' : _ref$type,
324
314
  ariaLabel = _ref.ariaLabel,
325
315
  _ref$variant = _ref.variant,
326
316
  variant = _ref$variant === void 0 ? 'solid' : _ref$variant,
327
- _ref$colorScheme = _ref.colorScheme,
328
- colorScheme = _ref$colorScheme === void 0 ? 'primary' : _ref$colorScheme,
329
- style = _ref.style,
330
- _ref$size = _ref.size,
331
- size = _ref$size === void 0 ? 'md' : _ref$size,
332
317
  disabled = _ref.disabled,
333
318
  className = _ref.className,
334
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
335
-
336
- return /*#__PURE__*/React__default.createElement(react.Button, Object.assign({
319
+ width = _ref.width;
320
+ return /*#__PURE__*/React__default.createElement(react.Button, {
337
321
  onClick: onClick,
338
322
  type: type,
339
323
  variant: variant,
340
- colorScheme: colorScheme,
341
- size: size,
342
324
  disabled: disabled,
343
325
  "aria-label": ariaLabel,
344
- style: style,
345
- className: className
346
- }, props), text);
326
+ className: className,
327
+ width: width === 'variable' ? '100%' : 'fit-content'
328
+ }, text);
347
329
  };
348
330
 
349
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>";
@@ -388,28 +370,20 @@ var SpinnerButton = function SpinnerButton(_ref) {
388
370
  onClick = _ref.onClick,
389
371
  type = _ref.type,
390
372
  ariaLabel = _ref.ariaLabel,
391
- style = _ref.style,
392
373
  _ref$variant = _ref.variant,
393
374
  variant = _ref$variant === void 0 ? 'solid' : _ref$variant,
394
- _ref$colorScheme = _ref.colorScheme,
395
- colorScheme = _ref$colorScheme === void 0 ? 'primary' : _ref$colorScheme,
396
- _ref$size = _ref.size,
397
- size = _ref$size === void 0 ? 'md' : _ref$size,
398
375
  disabled = _ref.disabled,
399
376
  className = _ref.className;
400
377
  return /*#__PURE__*/React__default.createElement(react.Button, {
401
378
  spinner: /*#__PURE__*/React__default.createElement(react.Spinner, {
402
- size: size
379
+ size: 'md'
403
380
  }),
404
381
  isLoading: isLoading,
405
382
  onClick: onClick,
406
383
  type: type,
407
384
  variant: variant,
408
- colorScheme: colorScheme,
409
- size: size,
410
385
  disabled: disabled,
411
386
  "aria-label": ariaLabel,
412
- style: style,
413
387
  className: className
414
388
  }, text);
415
389
  };
@@ -448,7 +422,39 @@ var StackedCheckboxGroup = /*#__PURE__*/React__default.forwardRef(function (_ref
448
422
  }));
449
423
  });
450
424
 
451
- var _excluded$1 = ["type", "isRequired", "leftElement", "rightElement"];
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"];
452
458
  /**
453
459
  * A functional React component utilized to render the `StackedInput` component.
454
460
  */
@@ -457,15 +463,13 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
457
463
  var _ref2$type = _ref2.type,
458
464
  type = _ref2$type === void 0 ? 'text' : _ref2$type,
459
465
  isRequired = _ref2.isRequired,
460
- leftElement = _ref2.leftElement,
461
- rightElement = _ref2.rightElement,
462
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1);
466
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded);
463
467
 
464
- return /*#__PURE__*/React__default.createElement(react.InputGroup, null, leftElement && leftElement, /*#__PURE__*/React__default.createElement(react.Input, Object.assign({
468
+ return /*#__PURE__*/React__default.createElement(react.Input, Object.assign({
465
469
  ref: _ref,
466
470
  type: type,
467
471
  isRequired: isRequired
468
- }, props)), rightElement && rightElement);
472
+ }, props));
469
473
  });
470
474
 
471
475
  /**
@@ -492,7 +496,61 @@ var StackedRadioGroup = /*#__PURE__*/React__default.forwardRef(function (_ref2,
492
496
  })));
493
497
  });
494
498
 
495
- var _excluded$2 = ["isRequired", "options", "onChange"];
499
+ var SubtractIcon = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 12C0.89543 12 -3.91405e-08 11.1046 -8.74228e-08 10L-4.37114e-07 2C-4.85396e-07 0.895431 0.89543 -3.91405e-08 2 -8.74228e-08L10 -4.37114e-07C11.1046 -4.85396e-07 12 0.89543 12 2L12 10C12 11.1046 11.1046 12 10 12L2 12ZM6 2.5C6.13261 2.5 6.25979 2.55268 6.35355 2.64645L7.85355 4.14645C8.04881 4.34171 8.04881 4.65829 7.85355 4.85355C7.65829 5.04882 7.34171 5.04882 7.14645 4.85355L6 3.70711L4.85355 4.85355C4.65829 5.04882 4.34171 5.04882 4.14645 4.85355C3.95118 4.65829 3.95118 4.34171 4.14645 4.14645L5.64645 2.64645C5.74021 2.55268 5.86739 2.5 6 2.5ZM5.64645 9.35355C5.74021 9.44732 5.86739 9.5 6 9.5C6.13261 9.5 6.25978 9.44732 6.35355 9.35355L7.85355 7.85355C8.04882 7.65829 8.04882 7.34171 7.85355 7.14645C7.65829 6.95118 7.34171 6.95118 7.14645 7.14645L6 8.29289L4.85355 7.14645C4.65829 6.95118 4.34171 6.95118 4.14645 7.14645C3.95118 7.34171 3.95118 7.65829 4.14645 7.85355L5.64645 9.35355Z\" fill=\"#0082FF\"/>\n</svg>";
500
+
501
+ /**
502
+ * A functional React component utilized to render the `Dropdown` component
503
+ */
504
+
505
+ var Dropdown = function Dropdown(_ref) {
506
+ var onSelectItem = _ref.onSelectItem,
507
+ options = _ref.options;
508
+ var DropdownContent = React.useMemo(function () {
509
+ return options.map(function (option, idx) {
510
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, option.value === 'section_header' && options[idx + 1] && options[idx + 1].value !== 'section_header' && /*#__PURE__*/React__default.createElement(react.Box, {
511
+ color: colors$1.label.secondary.light,
512
+ fontSize: "13px",
513
+ fontWeight: "bold",
514
+ px: "8px"
515
+ }, idx > 0 && /*#__PURE__*/React__default.createElement(react.Box, {
516
+ my: "3px",
517
+ borderTop: "2px solid",
518
+ borderColor: colors$1.border["default"]
519
+ }), option.label), option.value !== 'section_header' && /*#__PURE__*/React__default.createElement(react.Box, {
520
+ cursor: "pointer",
521
+ borderRadius: "inherit",
522
+ onClick: function onClick() {
523
+ return onSelectItem(option);
524
+ },
525
+ key: option.value,
526
+ fontSize: "13px",
527
+ px: "8px",
528
+ py: "4px",
529
+ color: colors$1.label.primary.light,
530
+ _hover: {
531
+ color: colors$1.label.primary.dark,
532
+ bg: colors$1.fill.action,
533
+ borderRadius: '4px'
534
+ }
535
+ }, option.label));
536
+ });
537
+ }, [onSelectItem, options]);
538
+ return /*#__PURE__*/React__default.createElement(react.Box, {
539
+ bg: colors$1.fill.light.quaternary,
540
+ backdropFilter: "blur(64px)",
541
+ borderRadius: "4px",
542
+ mt: "3px",
543
+ maxH: "320px",
544
+ overflowY: "auto",
545
+ px: "8px",
546
+ py: "4px",
547
+ position: "absolute",
548
+ width: "100%",
549
+ zIndex: "100"
550
+ }, DropdownContent);
551
+ };
552
+
553
+ var _excluded$1 = ["isRequired", "options", "name", "setValue", "onChange"];
496
554
  /**
497
555
  * A functional React component utilized to render the `StackedSelect` component.
498
556
  */
@@ -500,19 +558,63 @@ var _excluded$2 = ["isRequired", "options", "onChange"];
500
558
  var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref) {
501
559
  var isRequired = _ref2.isRequired,
502
560
  options = _ref2.options,
503
- onChange = _ref2.onChange,
504
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
561
+ name = _ref2.name,
562
+ setValue = _ref2.setValue,
563
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1);
564
+
565
+ var dropdownRef = React.useRef(null);
566
+
567
+ var _useState = React.useState(false),
568
+ isFocussed = _useState[0],
569
+ setIsFocussed = _useState[1];
570
+
571
+ var _useState2 = React.useState(''),
572
+ selectedOption = _useState2[0],
573
+ setSelectedOption = _useState2[1];
574
+
575
+ react.useOutsideClick({
576
+ ref: dropdownRef,
577
+ handler: function handler() {
578
+ return setIsFocussed(false);
579
+ }
580
+ });
505
581
 
506
- return /*#__PURE__*/React__default.createElement(react.InputGroup, null, /*#__PURE__*/React__default.createElement(react.Select, Object.assign({
582
+ var handleOnSelectItem = function handleOnSelectItem(option) {
583
+ setValue(name, option.value);
584
+ setSelectedOption(option.label);
585
+ setIsFocussed(false);
586
+ };
587
+
588
+ return /*#__PURE__*/React__default.createElement(react.Box, {
589
+ ref: dropdownRef,
590
+ position: "relative"
591
+ }, /*#__PURE__*/React__default.createElement(react.InputGroup, null, /*#__PURE__*/React__default.createElement(react.Input, Object.assign({
592
+ isRequired: isRequired
593
+ }, props, {
507
594
  ref: _ref,
508
- isRequired: isRequired,
509
- onChange: onChange
510
- }, props), options.map(function (option) {
511
- return /*#__PURE__*/React__default.createElement("option", {
512
- value: option.value,
513
- key: option.value
514
- }, option.label);
515
- })));
595
+ onClick: function onClick() {
596
+ return setIsFocussed(!isFocussed);
597
+ },
598
+ cursor: "pointer",
599
+ color: "transparent",
600
+ fontSize: "13px",
601
+ textShadow: "0 0 0 " + colors$1.label.primary.light,
602
+ value: selectedOption
603
+ })), /*#__PURE__*/React__default.createElement(react.InputRightElement, {
604
+ cursor: "pointer",
605
+ onClick: function onClick() {
606
+ return setIsFocussed(!isFocussed);
607
+ }
608
+ }, /*#__PURE__*/React__default.createElement(react.Image, {
609
+ src: SubtractIcon,
610
+ alt: "subtract",
611
+ boxSize: "16px"
612
+ }))), isFocussed && /*#__PURE__*/React__default.createElement(Dropdown, {
613
+ onSelectItem: function onSelectItem(option) {
614
+ return handleOnSelectItem(option);
615
+ },
616
+ options: options
617
+ }));
516
618
  });
517
619
 
518
620
  /**
@@ -527,36 +629,29 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
527
629
  }, props));
528
630
  });
529
631
 
530
- var InputTag = function InputTag(_ref) {
531
- var value = _ref.value,
632
+ var CloseIcon = "<svg width=\"56\" height=\"56\" viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M27.9995 56C43.4635 56 55.9995 43.464 55.9995 28C55.9995 12.536 43.4635 0 27.9995 0C12.5355 0 -0.000488281 12.536 -0.000488281 28C-0.000488281 43.464 12.5355 56 27.9995 56ZM21.9807 18.2688C20.9555 17.2437 19.2935 17.2437 18.2684 18.2688C17.2432 19.294 17.2432 20.956 18.2684 21.9812L24.2872 28L18.2684 34.0188C17.2432 35.044 17.2432 36.706 18.2684 37.7312C19.2935 38.7563 20.9555 38.7563 21.9807 37.7312L27.9995 31.7123L34.0184 37.7312C35.0435 38.7563 36.7055 38.7563 37.7307 37.7312C38.7558 36.706 38.7558 35.044 37.7307 34.0188L31.7118 28L37.7307 21.9812C38.7558 20.956 38.7558 19.294 37.7307 18.2688C36.7055 17.2437 35.0435 17.2437 34.0184 18.2688L27.9995 24.2877L21.9807 18.2688Z\" fill=\"#3C3C43\" fill-opacity=\"0.6\"/>\n</svg>";
633
+
634
+ var Token = function Token(_ref) {
635
+ var label = _ref.label,
532
636
  onDelete = _ref.onDelete;
533
- return /*#__PURE__*/React__default.createElement(react.Tag, {
534
- size: 'md',
535
- key: value,
637
+ return /*#__PURE__*/React__default.createElement(react.Flex, {
638
+ key: label,
536
639
  borderRadius: "full",
537
- variant: "solid",
538
- backgroundColor: "#eeeeee"
539
- }, /*#__PURE__*/React__default.createElement(react.TagLabel, {
540
- color: 'gray.700'
541
- }, value), onDelete && /*#__PURE__*/React__default.createElement(react.TagCloseButton, {
542
- color: 'gray.700',
543
- onClick: onDelete
544
- }));
545
- };
546
-
547
- /**
548
- * A functional React Component utilized to render the custom `MultiValue` component for
549
- * the `StackedMultiSelect` custom component.
550
- */
551
-
552
- var MultiValue = function MultiValue(_ref) {
553
- var children = _ref.children,
554
- clearValue = _ref.clearValue;
555
- return /*#__PURE__*/React__default.createElement(react.Box, {
556
- marginRight: "5px"
557
- }, /*#__PURE__*/React__default.createElement(InputTag, {
558
- value: children,
559
- onDelete: clearValue
640
+ backgroundColor: "#7676801F",
641
+ alignItems: "center",
642
+ width: "fit-content",
643
+ pl: "8px",
644
+ pr: "4px",
645
+ py: "2px"
646
+ }, /*#__PURE__*/React__default.createElement(react.Text, {
647
+ color: colors$1.label.primary.light,
648
+ fontSize: "13px"
649
+ }, label), /*#__PURE__*/React__default.createElement(react.Image, {
650
+ pl: "4px",
651
+ boxSize: "16px",
652
+ src: CloseIcon,
653
+ onClick: onDelete,
654
+ cursor: "pointer"
560
655
  }));
561
656
  };
562
657
 
@@ -568,131 +663,136 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
568
663
  var options = _ref2.options,
569
664
  setValue = _ref2.setValue,
570
665
  control = _ref2.control,
571
- name = _ref2.name;
666
+ name = _ref2.name,
667
+ placeholder = _ref2.placeholder,
668
+ disabled = _ref2.disabled;
572
669
  var watchedValue = reactHookForm.useWatch({
573
670
  control: control,
574
671
  name: name
575
672
  });
673
+ var dropdownRef = React.useRef(null);
674
+
675
+ var _useState = React.useState([]),
676
+ localValues = _useState[0],
677
+ setLocalValues = _useState[1];
576
678
 
577
- var _useState = React.useState(''),
578
- inputValue = _useState[0],
579
- setInputValue = _useState[1];
679
+ var _useState2 = React.useState(options),
680
+ localOptions = _useState2[0],
681
+ setLocalOptions = _useState2[1];
580
682
 
581
- var _useState2 = React.useState([]),
582
- localValue = _useState2[0],
583
- setLocalValue = _useState2[1]; // gets latest watched form value (common delimited) from RHF state and creates a list
683
+ var _useState3 = React.useState(false),
684
+ isFocussed = _useState3[0],
685
+ setIsFocussed = _useState3[1];
584
686
 
687
+ react.useOutsideClick({
688
+ ref: dropdownRef,
689
+ handler: function handler() {
690
+ return setIsFocussed(false);
691
+ }
692
+ }); // gets latest watched form value (common delimited) from RHF state and creates a list
585
693
 
586
694
  React.useEffect(function () {
587
695
  if (watchedValue !== undefined && !watchedValue.length) {
588
- setLocalValue([]);
696
+ setLocalValues([]);
589
697
  }
590
698
 
591
699
  if (watchedValue !== undefined && watchedValue != null && watchedValue.length) {
592
- setLocalValue(watchedValue.split(',').filter(Boolean).map(function (value) {
700
+ setLocalValues(watchedValue.split(',').filter(Boolean).map(function (value) {
593
701
  return options.find(function (option) {
594
702
  return option.value === value;
595
703
  });
596
704
  }));
597
705
  }
598
706
  }, [options, watchedValue]);
599
- var component = {
600
- DropdownIndicator: null,
601
- MultiValue: function MultiValue$1(props) {
602
- return /*#__PURE__*/React__default.createElement(MultiValue, {
603
- clearValue: function clearValue() {
604
- var arrayValue = watchedValue.split(',').filter(function (_, index) {
605
- return index !== props.index;
606
- });
607
- setLocalValue(arrayValue.map(function (value) {
608
- return options.find(function (option) {
609
- return option.value === value;
610
- });
611
- }));
612
- setValue(name, arrayValue.join(','), {
613
- shouldValidate: true,
614
- shouldDirty: true
615
- });
616
- }
617
- }, props.children);
618
- }
619
- };
620
707
 
621
- var handleChange = function handleChange(values) {
622
- setValue(name, values.map(function (_ref3) {
708
+ var handleChange = function handleChange(option) {
709
+ var newValue = [].concat(localValues, [option]).map(function (_ref3) {
623
710
  var value = _ref3.value;
624
711
  return value;
625
- }).join(','), {
712
+ }).join(',');
713
+ setValue(name, newValue, {
626
714
  shouldValidate: true,
627
715
  shouldDirty: true
628
716
  });
717
+ setLocalOptions(function (prevLocalOptions) {
718
+ return prevLocalOptions.filter(function (prevLocalOption) {
719
+ return prevLocalOption !== option;
720
+ });
721
+ });
722
+ setLocalValues(function (prevLocalValues) {
723
+ return [].concat(prevLocalValues, [option]);
724
+ });
629
725
  };
630
726
 
631
- var handleInputChange = function handleInputChange(value, action) {
632
- if (action.action === 'input-change' && action !== 'set-value') {
633
- return setInputValue(value);
634
- } // reset on select of an option
635
-
636
-
637
- return setInputValue('');
638
- };
639
-
640
- var formatGroupLabel = function formatGroupLabel(data) {
641
- return /*#__PURE__*/React__default.createElement(react.Flex, {
642
- alignItems: "center",
643
- justifyContent: "space-between"
644
- }, /*#__PURE__*/React__default.createElement("span", null, data.label));
727
+ var handleDelete = function handleDelete(option) {
728
+ var newValue = localValues.filter(function (localValue) {
729
+ return localValue !== option;
730
+ }).map(function (_ref4) {
731
+ var value = _ref4.value;
732
+ return value;
733
+ }).join(',');
734
+ setValue(name, newValue, {
735
+ shouldValidate: true,
736
+ shouldDirty: true
737
+ });
738
+ setLocalOptions(function (prevLocalOptions) {
739
+ return [].concat(prevLocalOptions, [option]).sort(function (a, b) {
740
+ return a.sortValue - b.sortValue;
741
+ });
742
+ });
743
+ setLocalValues(function (prevLocalValues) {
744
+ return prevLocalValues.filter(function (prevLocalValue) {
745
+ return prevLocalValue !== option;
746
+ });
747
+ });
645
748
  };
646
749
 
647
- var customStyles = {
648
- control: function control() {
649
- return {
650
- borderRadius: '6px',
651
- fontSize: '16px',
652
- color: '#202020',
653
- backgroundColor: '#FFFFFF',
654
- border: '1px solid',
655
- borderColor: colors.gray[200],
656
- minHeight: '48px',
657
- display: 'flex',
658
- padding: '2px 6px'
659
- };
660
- },
661
- menu: function menu() {
662
- return {
663
- boxShadow: '0 5px 5px 0 rgba(16, 27, 79, 0.15)',
664
- borderRadius: '6px',
665
- backgroundColor: 'white'
666
- };
750
+ return /*#__PURE__*/React__default.createElement(react.Box, {
751
+ ref: dropdownRef,
752
+ position: "relative"
753
+ }, /*#__PURE__*/React__default.createElement(react.Flex, {
754
+ fontSize: "13px",
755
+ border: isFocussed ? '2px solid' : '1px solid',
756
+ borderColor: isFocussed ? colors.border.focus : colors.border["default"],
757
+ py: "5px",
758
+ pl: "8px",
759
+ borderRadius: "4px",
760
+ alignItems: "center",
761
+ justifyContent: "space-between",
762
+ onClick: function onClick() {
763
+ return !disabled && setIsFocussed(true);
667
764
  },
668
- indicatorsContainer: function indicatorsContainer() {
669
- return {
670
- display: 'none'
671
- };
765
+ bg: disabled ? colors.fill.light.quaternary : '#ffffff',
766
+ cursor: disabled ? 'not-allowed' : 'pointer'
767
+ }, /*#__PURE__*/React__default.createElement(react.Flex, {
768
+ height: "28px",
769
+ alignItems: "center"
770
+ }, localValues.length ? localValues.map(function (option) {
771
+ return /*#__PURE__*/React__default.createElement(react.Box, {
772
+ mr: "4px"
773
+ }, /*#__PURE__*/React__default.createElement(Token, {
774
+ label: option.label,
775
+ onDelete: function onDelete() {
776
+ return handleDelete(option);
777
+ }
778
+ }));
779
+ }) : /*#__PURE__*/React__default.createElement(react.Text, {
780
+ color: colors.label.secondary.light,
781
+ fontSize: "13px"
782
+ }, placeholder)), /*#__PURE__*/React__default.createElement(react.Flex, {
783
+ width: "39px",
784
+ justifyContent: "center",
785
+ alignItems: "center"
786
+ }, /*#__PURE__*/React__default.createElement(react.Image, {
787
+ src: SubtractIcon,
788
+ alt: "subtract",
789
+ boxSize: "16px"
790
+ }))), isFocussed && /*#__PURE__*/React__default.createElement(Dropdown, {
791
+ onSelectItem: function onSelectItem(option) {
792
+ return handleChange(option);
672
793
  },
673
- placeholder: function placeholder() {
674
- return {
675
- color: '#CBCDCF',
676
- fontSize: '16px'
677
- };
678
- }
679
- };
680
- return /*#__PURE__*/React__default.createElement(ReactSelect, {
681
- components: component,
682
- inputValue: inputValue,
683
- value: localValue,
684
- isClearable: true,
685
- isSearchable: true,
686
- isMulti: true,
687
- menuPortalTarget: document.body,
688
- menuPosition: 'fixed',
689
- onChange: handleChange,
690
- onInputChange: handleInputChange,
691
- styles: customStyles,
692
- options: options,
693
- placeholder: false,
694
- formatGroupLabel: formatGroupLabel
695
- });
794
+ options: localOptions
795
+ }));
696
796
  });
697
797
 
698
798
  /**
@@ -702,7 +802,9 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
702
802
  var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref) {
703
803
  var name = _ref2.name,
704
804
  setValue = _ref2.setValue,
705
- control = _ref2.control;
805
+ control = _ref2.control,
806
+ placeholder = _ref2.placeholder,
807
+ disabled = _ref2.disabled;
706
808
  var watchedValue = reactHookForm.useWatch({
707
809
  control: control,
708
810
  name: name
@@ -713,14 +815,19 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
713
815
  setLatestFormValueToArray = _useState[1];
714
816
 
715
817
  var inputRef = React.useRef(null);
818
+ var inputWrapperRef = React.useRef(null);
819
+
820
+ var _useState2 = React.useState(null),
821
+ tokenIndex = _useState2[0],
822
+ setTokenIndex = _useState2[1];
716
823
 
717
- var _useState2 = React.useState(false),
718
- isInputFocused = _useState2[0],
719
- setInputFocused = _useState2[1];
824
+ var _useState3 = React.useState(false),
825
+ isFocussed = _useState3[0],
826
+ setIsFocussed = _useState3[1];
720
827
 
721
- var _useState3 = React.useState(''),
722
- localValue = _useState3[0],
723
- setLocalValue = _useState3[1]; // gets latest watched form value (common delimited) from RHF state and creates a list
828
+ var _useState4 = React.useState(''),
829
+ localValue = _useState4[0],
830
+ setLocalValue = _useState4[1]; // gets latest watched form value (common delimited) from RHF state and creates a list
724
831
 
725
832
 
726
833
  React.useEffect(function () {
@@ -731,17 +838,24 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
731
838
  if (watchedValue !== undefined && watchedValue != null && watchedValue.length) {
732
839
  setLatestFormValueToArray(watchedValue.split(',').filter(Boolean));
733
840
  }
734
- }, [watchedValue]); // ensures after value addition that the input field is wiped
735
-
736
- React.useEffect(function () {
737
- if (localValue === ' ' || localValue.trim() === ',') {
738
- setLocalValue('');
739
- }
740
- }, [localValue]);
841
+ }, [watchedValue]);
741
842
 
742
843
  var onHandleKeyDown = function onHandleKeyDown(e) {
743
844
  if (e.key === ' ' || e.key === 'Enter' || e.key === ',') {
744
- if (!localValue.trim() || localValue.trim() === ',') return setLocalValue('');
845
+ if (e.key === 'Enter' && !localValue.trim().length && tokenIndex !== null) {
846
+ setLocalValue(lastestFormValueToArray[tokenIndex]);
847
+
848
+ var _filteredUniqueValues = Array.from(new Set(lastestFormValueToArray.filter(function (value) {
849
+ return value !== lastestFormValueToArray[tokenIndex];
850
+ })));
851
+
852
+ setValue(name, _filteredUniqueValues.toString().replace(/\s/g, ''), {
853
+ shouldValidate: true,
854
+ shouldDirty: true
855
+ });
856
+ return setTokenIndex(null);
857
+ }
858
+
745
859
  var filteredUniqueValues = Array.from(new Set([].concat(lastestFormValueToArray, localValue.trim().split(','))));
746
860
  setLocalValue('');
747
861
  return setValue(name, filteredUniqueValues.toString().replace(/\s/g, ''), {
@@ -749,6 +863,46 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
749
863
  shouldDirty: true
750
864
  });
751
865
  }
866
+
867
+ if (!localValue.trim().length && lastestFormValueToArray.length) {
868
+ if (e.key === 'Backspace' && tokenIndex !== null) {
869
+ setLocalValue(lastestFormValueToArray[tokenIndex].substring(0, lastestFormValueToArray[tokenIndex].length));
870
+
871
+ var _filteredUniqueValues2 = Array.from(new Set([].concat(lastestFormValueToArray).filter(function (value) {
872
+ return value !== lastestFormValueToArray[tokenIndex];
873
+ })));
874
+
875
+ setValue(name, _filteredUniqueValues2.toString().replace(/\s/g, ''), {
876
+ shouldValidate: true,
877
+ shouldDirty: true
878
+ });
879
+ return setTokenIndex(null);
880
+ }
881
+
882
+ if (e.key === 'ArrowLeft') {
883
+ if (tokenIndex === 0) return;
884
+
885
+ if (!tokenIndex) {
886
+ return setTokenIndex(lastestFormValueToArray.length - 1);
887
+ }
888
+
889
+ return setTokenIndex(function (prevTokenIndex) {
890
+ return prevTokenIndex - 1;
891
+ });
892
+ }
893
+
894
+ if (e.key === 'ArrowRight') {
895
+ if (tokenIndex === null) return;
896
+
897
+ if (tokenIndex === lastestFormValueToArray.length - 1) {
898
+ return setTokenIndex(null);
899
+ }
900
+
901
+ return setTokenIndex(function (prevTokenIndex) {
902
+ return prevTokenIndex + 1;
903
+ });
904
+ }
905
+ }
752
906
  };
753
907
 
754
908
  var onRemoveTag = function onRemoveTag(index) {
@@ -772,65 +926,77 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
772
926
  setLocalValue('');
773
927
  }
774
928
 
775
- setInputFocused(false);
929
+ setIsFocussed(false);
776
930
  };
777
931
 
778
- return /*#__PURE__*/React__default.createElement(react.Flex, {
779
- position: "relative",
780
- width: "100%"
781
- }, /*#__PURE__*/React__default.createElement(react.Box, {
782
- outline: isInputFocused ? '2px solid rgba(0, 122, 255, 255)' : '',
783
- borderRadius: isInputFocused ? 'md' : '',
784
- width: "100%"
932
+ react.useOutsideClick({
933
+ ref: inputWrapperRef,
934
+ handler: onBlur
935
+ });
936
+ return /*#__PURE__*/React__default.createElement(react.Box, {
937
+ position: "relative"
785
938
  }, /*#__PURE__*/React__default.createElement(react.Flex, {
786
- background: "rgba(255, 255, 255, 0.8)",
787
- border: "1px solid",
788
- borderColor: colors.gray[200],
789
- borderRadius: "6px",
790
- fontWeight: "400",
791
- fontSize: "12px",
792
- lineHeight: "12px",
793
- minHeight: "48px",
794
- letterSpacing: "0.02em",
795
- padding: "0 12px",
796
- pt: lastestFormValueToArray.length ? '12px' : '0px',
939
+ fontSize: "13px",
940
+ border: isFocussed ? '2px solid' : '1px solid',
941
+ borderColor: isFocussed ? colors.border.focus : colors.border["default"],
942
+ py: "5px",
943
+ pl: "8px",
944
+ borderRadius: "4px",
797
945
  alignItems: "center",
798
- flexWrap: "wrap",
799
- gap: "0.5em",
800
- width: "100%",
946
+ justifyContent: "space-between",
801
947
  onClick: function onClick() {
802
- var _inputRef$current;
948
+ if (!disabled) {
949
+ var _inputRef$current;
803
950
 
804
- return (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
805
- }
806
- }, lastestFormValueToArray.map(function (tag, index) {
807
- return /*#__PURE__*/React__default.createElement(InputTag, {
808
- value: tag,
809
- key: tag,
951
+ (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
952
+ }
953
+ },
954
+ bg: disabled ? colors.fill.light.quaternary : '#ffffff',
955
+ cursor: disabled ? 'not-allowed' : 'pointer',
956
+ ref: inputWrapperRef
957
+ }, /*#__PURE__*/React__default.createElement(react.Flex, {
958
+ height: "28px",
959
+ alignItems: "center",
960
+ width: "fit-content"
961
+ }, lastestFormValueToArray.length ? lastestFormValueToArray.map(function (label, index) {
962
+ return /*#__PURE__*/React__default.createElement(react.Box, {
963
+ mr: "4px",
964
+ border: tokenIndex === index ? "2px solid " + colors.border.focus : 'none',
965
+ borderRadius: "full",
966
+ onClick: function onClick() {
967
+ return setTokenIndex(index);
968
+ }
969
+ }, /*#__PURE__*/React__default.createElement(Token, {
970
+ label: label,
810
971
  onDelete: function onDelete(e) {
811
972
  e.stopPropagation();
812
973
  e.preventDefault();
813
974
  onRemoveTag(index);
814
975
  }
815
- });
816
- }), /*#__PURE__*/React__default.createElement(react.Input, {
976
+ }));
977
+ }) : /*#__PURE__*/React__default.createElement(react.Text, {
978
+ color: colors.label.secondary.light,
979
+ fontSize: "13px"
980
+ }, placeholder)), /*#__PURE__*/React__default.createElement(react.Flex, {
981
+ flex: 1
982
+ }, /*#__PURE__*/React__default.createElement(react.Input, {
817
983
  onKeyDown: onHandleKeyDown,
818
984
  type: "text",
819
- padding: isInputFocused ? '0.5em 0' : '0px',
820
- height: isInputFocused ? '46px' : '0px',
985
+ padding: 0,
821
986
  width: "100%",
822
987
  border: "none",
988
+ height: "26px",
989
+ color: tokenIndex !== null ? 'transparent' : colors.label.primary,
823
990
  _focus: {
824
991
  boxShadow: 'none !important'
825
992
  },
826
993
  value: localValue,
827
- onBlur: onBlur,
828
994
  onChange: function onChange(e) {
829
- return setLocalValue(e.target.value);
995
+ return tokenIndex === null && setLocalValue(e.target.value);
830
996
  },
831
997
  ref: inputRef,
832
998
  onFocus: function onFocus() {
833
- return setInputFocused(true);
999
+ return setIsFocussed(true);
834
1000
  }
835
1001
  }))));
836
1002
  });
@@ -856,6 +1022,19 @@ var StackedSwitch = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
856
1022
  });
857
1023
  });
858
1024
 
1025
+ /**
1026
+ * A functional React component utilized to render the `Label` component
1027
+ */
1028
+
1029
+ var Label$1 = function Label(_ref) {
1030
+ var isRequired = _ref.isRequired,
1031
+ label = _ref.label;
1032
+ return /*#__PURE__*/React__default.createElement(react.FormLabel, null, label, isRequired && /*#__PURE__*/React__default.createElement(react.Box, {
1033
+ ml: 1,
1034
+ color: colors$1.label.error
1035
+ }, "*"));
1036
+ };
1037
+
859
1038
  /**
860
1039
  * A functional React component utilized to render the `Input` component. Utilizes a switch statement
861
1040
  * to render the correct input based on the `inputType`.
@@ -869,8 +1048,6 @@ function Input(_ref) {
869
1048
  placeholder = _ref.placeholder,
870
1049
  name = _ref.name,
871
1050
  helperText = _ref.helperText,
872
- leftElement = _ref.leftElement,
873
- rightElement = _ref.rightElement,
874
1051
  options = _ref.options,
875
1052
  isInvalid = _ref.isInvalid,
876
1053
  errorText = _ref.errorText,
@@ -892,8 +1069,6 @@ function Input(_ref) {
892
1069
  placeholder: placeholder,
893
1070
  maxLength: maxLength,
894
1071
  isRequired: isRequired,
895
- leftElement: leftElement,
896
- rightElement: rightElement,
897
1072
  isInvalid: isInvalid,
898
1073
  onChange: onChange,
899
1074
  onBlur: onBlur,
@@ -927,9 +1102,12 @@ function Input(_ref) {
927
1102
  options: options,
928
1103
  onChange: onChange,
929
1104
  onBlur: onBlur,
1105
+ setValue: setValue,
1106
+ control: control,
930
1107
  ref: ref,
931
1108
  disabled: disabled,
932
- value: value
1109
+ value: value,
1110
+ placeholder: placeholder
933
1111
  });
934
1112
 
935
1113
  case 'textarea':
@@ -975,7 +1153,8 @@ function Input(_ref) {
975
1153
  disabled: disabled,
976
1154
  value: value,
977
1155
  setValue: setValue,
978
- control: control
1156
+ control: control,
1157
+ placeholder: placeholder
979
1158
  });
980
1159
 
981
1160
  case 'pilled-text':
@@ -1009,7 +1188,7 @@ function Input(_ref) {
1009
1188
  default:
1010
1189
  return null;
1011
1190
  }
1012
- }, [ariaLabel, className, control, disabled, inputType, isInvalid, isRequired, leftElement, maxLength, name, options, placeholder, rightElement, setValue]);
1191
+ }, [ariaLabel, className, control, disabled, inputType, isInvalid, isRequired, maxLength, name, options, placeholder, setValue]);
1013
1192
  return /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
1014
1193
  control: control,
1015
1194
  name: name,
@@ -1028,14 +1207,10 @@ function Input(_ref) {
1028
1207
  isInvalid: isInvalid,
1029
1208
  position: "relative",
1030
1209
  py: label ? 6 : 0
1031
- }, label && /*#__PURE__*/React__default.createElement(react.FormLabel, {
1032
- position: "absolute",
1033
- top: 0,
1034
- display: "flex"
1035
- }, label, isRequired && /*#__PURE__*/React__default.createElement(react.Box, {
1036
- ml: 1,
1037
- color: "red.500"
1038
- }, "*")), selectedInputField(onChange ? onChange : fieldOnChange, onBlur, ref, value), isInvalid ? /*#__PURE__*/React__default.createElement(react.FormErrorMessage, null, errorText) : helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, null, helperText));
1210
+ }, label && /*#__PURE__*/React__default.createElement(Label$1, {
1211
+ label: label,
1212
+ isRequired: isRequired
1213
+ }), selectedInputField(onChange ? onChange : fieldOnChange, onBlur, ref, value), isInvalid ? /*#__PURE__*/React__default.createElement(react.FormErrorMessage, null, errorText) : helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, null, helperText));
1039
1214
  }
1040
1215
  });
1041
1216
  }
@@ -1202,7 +1377,7 @@ var LoadingIndicator = function LoadingIndicator(_ref) {
1202
1377
  className: "loading-indicator " + (className != null ? className : '')
1203
1378
  }, /*#__PURE__*/React__default.createElement(react.Spinner, {
1204
1379
  size: size,
1205
- color: colors.blue[500],
1380
+ color: colors.fill.action,
1206
1381
  flex: "none",
1207
1382
  thickness: thickness,
1208
1383
  speed: speed,
@@ -1290,10 +1465,10 @@ var TableLoadingRows = function TableLoadingRows(_ref) {
1290
1465
  justifyContent: "center",
1291
1466
  alignItems: "center",
1292
1467
  height: 20,
1293
- borderTopColor: colors.gray[100]
1468
+ borderTopColor: colors.fill.light.quaternary
1294
1469
  }, isLoading ? /*#__PURE__*/React__default.createElement(react.Spinner, {
1295
1470
  size: "lg",
1296
- color: colors.blue[500]
1471
+ color: colors.fill.action
1297
1472
  }) : /*#__PURE__*/React__default.createElement(react.IconButton, {
1298
1473
  "aria-label": "Fetch more rows",
1299
1474
  icon: /*#__PURE__*/React__default.createElement(hi.HiOutlineRefresh, null),
@@ -1324,7 +1499,7 @@ function Table(_ref) {
1324
1499
  var columnsAsConst = generateTableColumnsAsConst(columns);
1325
1500
  return /*#__PURE__*/React__default.createElement(react.TableContainer, {
1326
1501
  border: "1px",
1327
- borderColor: colors.gray[100],
1502
+ borderColor: colors.fill.light.quaternary,
1328
1503
  overflowX: "auto",
1329
1504
  bg: "white",
1330
1505
  borderRadius: "md",
@@ -1375,7 +1550,7 @@ var TabsWrapper = function TabsWrapper(_ref) {
1375
1550
  sm: 'row'
1376
1551
  },
1377
1552
  border: "1px",
1378
- borderColor: colors.gray[100],
1553
+ borderColor: colors.fill.light.quaternary,
1379
1554
  bg: "white",
1380
1555
  borderRadius: "md",
1381
1556
  borderBottom: 0,
@@ -1400,7 +1575,7 @@ var Text = function Text(_ref) {
1400
1575
  fontWeight = _ref.fontWeight,
1401
1576
  variant = _ref.variant,
1402
1577
  _ref$color = _ref.color,
1403
- color = _ref$color === void 0 ? colors.black : _ref$color,
1578
+ color = _ref$color === void 0 ? colors.label.primary.light : _ref$color,
1404
1579
  className = _ref.className;
1405
1580
  return /*#__PURE__*/React__default.createElement(react.Text, {
1406
1581
  fontSize: fontSize,
@@ -1433,9 +1608,9 @@ var shadows = {
1433
1608
  lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
1434
1609
  xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
1435
1610
  '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
1436
- insetOutline: "inset 0 0 0 2px " + colors.blue[200],
1437
- outline: "0 0 0 2px " + colors.blue[200],
1438
- 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,
1439
1614
  inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
1440
1615
  none: 'none',
1441
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'
@@ -1459,7 +1634,7 @@ var baseStyle = {
1459
1634
  function variantPositive() {
1460
1635
  return {
1461
1636
  container: {
1462
- bg: '#d8f1b8'
1637
+ bg: colors.fill.success
1463
1638
  }
1464
1639
  };
1465
1640
  }
@@ -1467,7 +1642,7 @@ function variantPositive() {
1467
1642
  function variantWarning() {
1468
1643
  return {
1469
1644
  container: {
1470
- bg: '#ffefb4'
1645
+ bg: colors.fill.warning
1471
1646
  }
1472
1647
  };
1473
1648
  }
@@ -1475,7 +1650,7 @@ function variantWarning() {
1475
1650
  function variantError() {
1476
1651
  return {
1477
1652
  container: {
1478
- bg: '#ffbdb9'
1653
+ bg: colors.fill.error
1479
1654
  }
1480
1655
  };
1481
1656
  }
@@ -1483,7 +1658,7 @@ function variantError() {
1483
1658
  function variantNeutral() {
1484
1659
  return {
1485
1660
  container: {
1486
- bg: '#7474800D'
1661
+ bg: colors.fill.light.tertiary
1487
1662
  }
1488
1663
  };
1489
1664
  }
@@ -1559,223 +1734,68 @@ var Badge = {
1559
1734
  defaultProps: defaultProps$1
1560
1735
  };
1561
1736
 
1562
- var baseStyle$2 = {
1563
- lineHeight: 1,
1564
- borderRadius: 'md',
1565
- fontWeight: 'bold',
1566
- _focus: {
1567
- boxShadow: 'outline'
1568
- },
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',
1569
1746
  _disabled: {
1570
- opacity: 0.4,
1571
- cursor: 'not-allowed',
1572
- boxShadow: 'none'
1573
- }
1574
- };
1575
-
1576
- var focusShadow = function focusShadow(color) {
1577
- return "0 0 0 3px " + color;
1578
- };
1579
-
1580
- function variantGhost(props) {
1581
- var c = props.colorScheme,
1582
- theme = props.theme;
1583
-
1584
- if (c === 'gray') {
1585
- var _focusColor = themeTools.getColor(theme, 'gray.100');
1586
-
1587
- return {
1588
- color: themeTools.mode("gray.500", "whiteAlpha.900")(props),
1589
- _hover: {
1590
- bg: themeTools.mode("gray.50", "whiteAlpha.200")(props)
1591
- },
1592
- _active: {
1593
- bg: themeTools.mode("gray.200", "whiteAlpha.300")(props)
1594
- },
1595
- _focus: {
1596
- boxShadow: focusShadow(_focusColor)
1597
- }
1598
- };
1599
- }
1600
-
1601
- var darkHoverBg = themeTools.transparentize(c + ".200", 0.12)(theme);
1602
- var darkActiveBg = themeTools.transparentize(c + ".200", 0.24)(theme);
1603
- var focusColor = themeTools.getColor(theme, c + ".200");
1604
- return {
1605
- color: themeTools.mode(c + ".500", c + ".200")(props),
1606
- bg: 'transparent',
1607
- _hover: {
1608
- bg: themeTools.mode(c + ".50", darkHoverBg)(props)
1609
- },
1610
- _active: {
1611
- bg: themeTools.mode(c + ".100", darkActiveBg)(props)
1612
- },
1613
- _focus: {
1614
- boxShadow: focusShadow(focusColor)
1615
- }
1616
- };
1617
- }
1618
-
1619
- function variantOutline$1(props) {
1620
- var c = props.colorScheme;
1621
- var borderColor = themeTools.mode("gray.200", "whiteAlpha.300")(props);
1622
- return _extends({
1623
- border: '1px solid',
1624
- borderColor: c === 'gray' ? borderColor : 'currentColor'
1625
- }, variantGhost(props));
1626
- }
1627
- /** Accessible color overrides for less accessible colors. */
1628
-
1629
-
1630
- var accessibleColorMap = {
1631
- yellow: {
1632
- bg: 'yellow.400',
1633
- color: 'black',
1634
- hoverBg: 'yellow.500',
1635
- activeBg: 'yellow.600'
1747
+ backgroundColor: 'gray.100',
1748
+ borderColor: 'gray.100',
1749
+ color: 'gray.500',
1750
+ pointerEvents: 'none'
1751
+ },
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
1636
1759
  },
1637
- cyan: {
1638
- bg: 'cyan.400',
1639
- color: 'black',
1640
- hoverBg: 'cyan.500',
1641
- activeBg: 'cyan.600'
1760
+ _focus: {
1761
+ bg: colors.fill.action,
1762
+ border: "2px solid " + colors.border.focus
1642
1763
  }
1643
- };
1644
-
1645
- function variantSolid$1(props) {
1646
- var c = props.colorScheme,
1647
- theme = props.theme;
1648
- if (c === 'gray') return {
1649
- color: 'gray.500',
1650
- bg: themeTools.mode("gray.50", "whiteAlpha.200")(props),
1651
- _hover: {
1652
- bg: themeTools.mode("gray.100", "whiteAlpha.300")(props)
1653
- },
1654
- _active: {
1655
- bg: themeTools.mode("gray.200", "whiteAlpha.400")(props)
1656
- }
1657
- };
1658
- if (c === 'darkgray') return {
1659
- color: 'white',
1660
- bg: 'gray.400',
1661
- _hover: {
1662
- bg: 'gray.600'
1663
- },
1664
- _active: {
1665
- bg: 'gray.700'
1666
- }
1667
- };
1764
+ });
1668
1765
 
1669
- var _ref = accessibleColorMap[c] || {},
1670
- _ref$bg = _ref.bg,
1671
- bg = _ref$bg === void 0 ? c + ".500" : _ref$bg,
1672
- _ref$color = _ref.color,
1673
- color = _ref$color === void 0 ? 'white' : _ref$color,
1674
- _ref$hoverBg = _ref.hoverBg,
1675
- hoverBg = _ref$hoverBg === void 0 ? c + ".600" : _ref$hoverBg,
1676
- _ref$activeBg = _ref.activeBg,
1677
- activeBg = _ref$activeBg === void 0 ? c + ".700" : _ref$activeBg;
1766
+ var variantSolid$1 = function variantSolid() {
1767
+ return _extends({}, baseStyle$2);
1768
+ };
1678
1769
 
1679
- var focusColor = themeTools.getColor(theme, c + ".200");
1680
- return {
1681
- bg: themeTools.mode(bg, c + ".200")(props),
1682
- 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',
1683
1775
  _hover: {
1684
- bg: themeTools.mode(hoverBg, c + ".300")(props)
1776
+ bg: colors.label.primary.dark
1685
1777
  },
1686
1778
  _active: {
1687
- bg: themeTools.mode(activeBg, c + ".400")(props)
1779
+ color: colors.fill.action,
1780
+ bg: colors.label.primary.dark,
1781
+ bgGradient: colors.fill.light.quaternary
1688
1782
  },
1689
1783
  _focus: {
1690
- boxShadow: focusShadow(focusColor)
1784
+ bg: colors.label.primary.dark
1691
1785
  }
1692
- };
1693
- }
1694
- /**
1695
- * A variant that displays a solid variant when an active CSS class is
1696
- * detected, otherwise display a ghost variant. This is useful for pill nav filters.
1697
- */
1698
-
1699
-
1700
- function variantActiveSolid(props) {
1701
- return _extends({}, variantGhost(_extends({}, props, {
1702
- colorScheme: 'gray'
1703
- })), {
1704
- '&.active': _extends({}, variantSolid$1(props))
1705
1786
  });
1706
- }
1707
-
1708
- function variantLink(props) {
1709
- var c = props.colorScheme;
1710
- return {
1711
- padding: 0,
1712
- height: 'auto',
1713
- lineHeight: 'normal',
1714
- color: themeTools.mode(c + ".500", c + ".200")(props),
1715
- _hover: {
1716
- textDecoration: 'underline'
1717
- },
1718
- _active: {
1719
- color: themeTools.mode(c + ".700", c + ".500")(props)
1720
- }
1721
- };
1722
- }
1723
-
1724
- var variantUnstyled = {
1725
- bg: 'none',
1726
- color: 'inherit',
1727
- display: 'inline',
1728
- lineHeight: 'inherit',
1729
- m: 0,
1730
- p: 0
1731
1787
  };
1788
+
1732
1789
  var variants$2 = {
1733
- ghost: variantGhost,
1734
- outline: variantOutline$1,
1735
- solid: variantSolid$1,
1736
- activeSolid: variantActiveSolid,
1737
- link: variantLink,
1738
- unstyled: variantUnstyled
1739
- };
1740
- var sizes = {
1741
- lg: {
1742
- borderRadius: 'full',
1743
- h: 12,
1744
- minW: 20,
1745
- fontSize: 'lg',
1746
- px: 6
1747
- },
1748
- md: {
1749
- borderRadius: 'full',
1750
- h: 10,
1751
- minW: 20,
1752
- fontSize: 'md',
1753
- px: 4
1754
- },
1755
- sm: {
1756
- borderRadius: 'full',
1757
- h: 8,
1758
- minW: 8,
1759
- fontSize: 'sm',
1760
- px: 3
1761
- },
1762
- xs: {
1763
- borderRadius: 'full',
1764
- h: 6,
1765
- minW: 6,
1766
- fontSize: 'xs',
1767
- px: 2
1768
- }
1790
+ solid: /*#__PURE__*/variantSolid$1(),
1791
+ outline: /*#__PURE__*/variantOutline$1()
1769
1792
  };
1770
1793
  var defaultProps$2 = {
1771
- variant: 'solid',
1772
- size: 'md',
1773
- colorScheme: 'primary'
1794
+ solid: 'solid'
1774
1795
  };
1775
1796
  var Button$1 = {
1776
1797
  baseStyle: baseStyle$2,
1777
1798
  variants: variants$2,
1778
- sizes: sizes,
1779
1799
  defaultProps: defaultProps$2
1780
1800
  };
1781
1801
 
@@ -1795,26 +1815,26 @@ var Code = {
1795
1815
 
1796
1816
  var parts$1 = ['requiredIndicator', 'helperText'];
1797
1817
 
1798
- function baseStyleRequiredIndicator(props) {
1818
+ function baseStyleRequiredIndicator() {
1799
1819
  return {
1800
1820
  ml: 1,
1801
- color: themeTools.mode('red.500', 'red.300')(props)
1821
+ color: colors.label.error
1802
1822
  };
1803
1823
  }
1804
1824
 
1805
- function baseStyleHelperText(props) {
1825
+ function baseStyleHelperText() {
1806
1826
  return {
1827
+ color: colors.label.secondary.light,
1807
1828
  mt: 1,
1808
- color: themeTools.mode('gray.400', 'whiteAlpha.600')(props),
1809
- lineHeight: 'normal',
1810
- fontSize: 'sm'
1829
+ ml: 1,
1830
+ fontSize: '13px'
1811
1831
  };
1812
1832
  }
1813
1833
 
1814
- var baseStyle$4 = function baseStyle(props) {
1834
+ var baseStyle$4 = function baseStyle() {
1815
1835
  return {
1816
- requiredIndicator: baseStyleRequiredIndicator(props),
1817
- helperText: baseStyleHelperText(props)
1836
+ requiredIndicator: baseStyleRequiredIndicator(),
1837
+ helperText: baseStyleHelperText()
1818
1838
  };
1819
1839
  };
1820
1840
 
@@ -1825,26 +1845,26 @@ var Form$1 = {
1825
1845
 
1826
1846
  var parts$2 = ['text', 'icon'];
1827
1847
 
1828
- function baseStyleText(props) {
1848
+ function baseStyleText() {
1829
1849
  return {
1830
- color: themeTools.mode('red.500', 'red.300')(props),
1850
+ color: colors.label.error,
1831
1851
  mt: 1,
1832
- lineHeight: 'normal',
1833
- fontSize: 'sm'
1852
+ ml: 1,
1853
+ fontSize: '13px'
1834
1854
  };
1835
1855
  }
1836
1856
 
1837
- function baseStyleIcon(props) {
1857
+ function baseStyleIcon() {
1838
1858
  return {
1839
- mr: '0.5em',
1840
- color: themeTools.mode('red.500', 'red.300')(props)
1859
+ ml: 1,
1860
+ color: colors.label.error
1841
1861
  };
1842
1862
  }
1843
1863
 
1844
- var baseStyle$5 = function baseStyle(props) {
1864
+ var baseStyle$5 = function baseStyle() {
1845
1865
  return {
1846
- text: baseStyleText(props),
1847
- icon: baseStyleIcon(props)
1866
+ text: baseStyleText(),
1867
+ icon: baseStyleIcon()
1848
1868
  };
1849
1869
  };
1850
1870
 
@@ -1854,234 +1874,57 @@ var FormError = {
1854
1874
  };
1855
1875
 
1856
1876
  var baseStyle$6 = {
1857
- fontSize: 'md',
1858
- mr: 3,
1877
+ fontSize: '13px',
1878
+ position: 'absolute',
1879
+ top: 0,
1880
+ display: 'flex',
1881
+ ml: 1,
1859
1882
  mb: 1,
1860
- fontWeight: 'bold',
1861
- color: 'gray.700',
1862
- transition: 'all 0.2s',
1863
- opacity: 1,
1864
- _disabled: {
1865
- opacity: 0.4
1866
- }
1883
+ color: colors.label.primary.light,
1884
+ opacity: 1
1867
1885
  };
1868
1886
  var FormLabel = {
1869
1887
  baseStyle: baseStyle$6
1870
1888
  };
1871
1889
 
1872
- var parts$3 = ['field', 'addon'];
1890
+ var parts$3 = ['field'];
1873
1891
  var baseStyle$7 = {
1874
1892
  field: {
1875
- width: '100%',
1876
- outline: 0,
1877
- position: 'relative',
1878
- appearance: 'none',
1879
- transition: 'all 0.2s',
1893
+ fontSize: '13px',
1880
1894
  '::placeholder': {
1881
- color: 'gray.300'
1882
- }
1883
- }
1884
- };
1885
- var size = {
1886
- lg: {
1887
- fontSize: 'md',
1888
- pl: 3,
1889
- pr: 3,
1890
- h: 12,
1891
- borderRadius: 'md'
1892
- },
1893
- md: {
1894
- fontSize: 'md',
1895
- pl: 3,
1896
- pr: 3,
1897
- h: 10,
1898
- borderRadius: 'md'
1899
- },
1900
- sm: {
1901
- fontSize: 'sm',
1902
- pl: 3,
1903
- pr: 3,
1904
- h: 8,
1905
- borderRadius: 'sm'
1906
- }
1907
- };
1908
- var sizes$1 = {
1909
- lg: {
1910
- field: size.lg,
1911
- addon: size.lg
1912
- },
1913
- md: {
1914
- field: size.md,
1915
- addon: size.md
1916
- },
1917
- sm: {
1918
- field: size.sm,
1919
- addon: size.sm
1920
- }
1921
- };
1922
-
1923
- function getDefaults(props) {
1924
- var fc = props.focusBorderColor,
1925
- ec = props.errorBorderColor;
1926
- return {
1927
- focusBorderColor: fc || themeTools.mode('blue.500', 'blue.300')(props),
1928
- errorBorderColor: ec || themeTools.mode('red.500', 'red.300')(props)
1929
- };
1930
- }
1931
-
1932
- function variantOutline$2(props) {
1933
- var theme = props.theme;
1934
-
1935
- var _getDefaults = getDefaults(props),
1936
- fc = _getDefaults.focusBorderColor,
1937
- ec = _getDefaults.errorBorderColor;
1938
-
1939
- return {
1940
- field: {
1941
- border: '1px solid',
1942
- borderColor: 'inherit',
1943
- bg: 'white',
1944
- _hover: {
1945
- borderColor: themeTools.mode('gray.300', 'whiteAlpha.400')(props)
1946
- },
1947
- _readOnly: {
1948
- boxShadow: 'none !important',
1949
- userSelect: 'all'
1950
- },
1951
- _disabled: {
1952
- opacity: 0.4,
1953
- cursor: 'not-allowed'
1954
- },
1955
- _focus: {
1956
- zIndex: 1,
1957
- borderColor: themeTools.getColor(theme, fc),
1958
- boxShadow: "0 0 0 2px " + themeTools.transparentize(fc, 0.3)(theme)
1959
- },
1960
- _invalid: {
1961
- borderColor: themeTools.getColor(theme, ec),
1962
- boxShadow: 'none',
1963
- _focus: {
1964
- boxShadow: "0 0 0 2px " + themeTools.transparentize(ec, 0.3)(theme)
1965
- }
1966
- }
1895
+ color: colors.label.secondary.light
1967
1896
  },
1968
- addon: {
1969
- border: '1px solid',
1970
- borderColor: themeTools.mode('inherit', 'whiteAlpha.50')(props),
1971
- bg: themeTools.mode('gray.100', 'whiteAlpha.300')(props)
1972
- }
1973
- };
1974
- }
1975
-
1976
- function variantFilled(props) {
1977
- var theme = props.theme;
1978
-
1979
- var _getDefaults2 = getDefaults(props),
1980
- fc = _getDefaults2.focusBorderColor,
1981
- ec = _getDefaults2.errorBorderColor;
1982
-
1983
- return {
1984
- field: {
1985
- border: '2px solid',
1986
- borderColor: 'transparent',
1987
- bg: themeTools.mode('gray.50', 'whiteAlpha.50')(props),
1988
- _hover: {
1989
- bg: themeTools.mode('gray.100', 'whiteAlpha.100')(props)
1990
- },
1991
- _readOnly: {
1992
- boxShadow: 'none !important',
1993
- userSelect: 'all'
1994
- },
1995
- _disabled: {
1996
- opacity: 0.4,
1997
- cursor: 'not-allowed'
1998
- },
1999
- _focus: {
2000
- bg: 'transparent',
2001
- borderColor: themeTools.getColor(theme, fc)
2002
- },
2003
- _invalid: {
2004
- borderColor: themeTools.getColor(theme, ec)
2005
- }
1897
+ py: '5px',
1898
+ px: '8px',
1899
+ border: '1px solid',
1900
+ borderColor: colors.border["default"],
1901
+ _disabled: {
1902
+ cursor: 'not-allowed',
1903
+ bg: colors.fill.light.quaternary,
1904
+ color: colors.label.secondary.light
2006
1905
  },
2007
- addon: {
1906
+ _focus: {
1907
+ bg: '#ffffff',
2008
1908
  border: '2px solid',
2009
- borderColor: 'transparent',
2010
- bg: themeTools.mode('gray.100', 'whiteAlpha.50')(props)
1909
+ borderColor: colors.border.focus
2011
1910
  }
2012
- };
2013
- }
2014
-
2015
- function variantFlushed(props) {
2016
- var theme = props.theme;
2017
-
2018
- var _getDefaults3 = getDefaults(props),
2019
- fc = _getDefaults3.focusBorderColor,
2020
- ec = _getDefaults3.errorBorderColor;
2021
-
2022
- return {
2023
- field: {
2024
- borderBottom: '1px solid inherit',
2025
- borderRadius: 0,
2026
- pl: 0,
2027
- pr: 0,
2028
- bg: 'transparent',
2029
- _readOnly: {
2030
- boxShadow: 'none !important',
2031
- userSelect: 'all'
2032
- },
2033
- _focus: {
2034
- borderColor: themeTools.getColor(theme, fc),
2035
- boxShadow: "0px 1px 0px 0px " + themeTools.getColor(theme, fc)
2036
- },
2037
- _invalid: {
2038
- borderColor: themeTools.getColor(theme, ec)
2039
- }
2040
- },
2041
- addon: {
2042
- borderBottom: '2px solid',
2043
- borderColor: 'inherit',
2044
- borderRadius: 0,
2045
- paddingX: 0,
2046
- bg: 'transparent'
2047
- }
2048
- };
2049
- }
2050
-
2051
- var variantUnstyled$1 = {
2052
- field: {
2053
- bg: 'transparent',
2054
- pl: 0,
2055
- pr: 0,
2056
- height: 'auto'
2057
- },
2058
- addon: {
2059
- bg: 'transparent',
2060
- pl: 0,
2061
- pr: 0,
2062
- height: 'auto'
2063
1911
  }
2064
1912
  };
2065
1913
  var variants$4 = {
2066
- outline: variantOutline$2,
2067
- filled: variantFilled,
2068
- flushed: variantFlushed,
2069
- unstyled: variantUnstyled$1
1914
+ "default": baseStyle$7
2070
1915
  };
2071
1916
  var defaultProps$4 = {
2072
- size: 'lg',
2073
- variant: 'outline'
1917
+ variant: 'default'
2074
1918
  };
2075
1919
  var Input$1 = {
2076
1920
  parts: parts$3,
2077
1921
  baseStyle: baseStyle$7,
2078
- sizes: sizes$1,
2079
1922
  variants: variants$4,
2080
1923
  defaultProps: defaultProps$4
2081
1924
  };
2082
1925
 
2083
1926
  var baseStyle$8 = {
2084
- color: 'blue.500',
1927
+ color: colors.fill.action,
2085
1928
  textDecoration: 'underline',
2086
1929
  transition: 'none',
2087
1930
  _hover: {
@@ -2188,72 +2031,7 @@ var Link = {
2188
2031
  variants: variants$5
2189
2032
  };
2190
2033
 
2191
- var parts$4 = ['item', 'command', 'list', 'button', 'groupTitle'];
2192
-
2193
- function baseStyleList(props) {
2194
- return {
2195
- bg: themeTools.mode("#fff", "gray.700")(props),
2196
- boxShadow: themeTools.mode("2xl", "dark-lg")(props),
2197
- color: 'inherit',
2198
- minW: '3xs',
2199
- py: 2,
2200
- zIndex: 'docked',
2201
- borderRadius: 'md',
2202
- borderWidth: 0,
2203
- overflow: 'hidden'
2204
- };
2205
- }
2206
-
2207
- function baseStyleItem(props) {
2208
- return {
2209
- fontSize: 'sm',
2210
- py: 2,
2211
- px: 4,
2212
- transition: 'background 50ms ease-in 0s',
2213
- _focus: {
2214
- bg: themeTools.mode("blue.50", "whiteAlpha.200")(props)
2215
- },
2216
- _hover: {
2217
- bg: themeTools.mode("blue.50", "whiteAlpha.200")(props)
2218
- },
2219
- _active: {
2220
- bg: themeTools.mode("gray.200", "whiteAlpha.200")(props)
2221
- },
2222
- _expanded: {
2223
- bg: themeTools.mode("gray.100", "whiteAlpha.100")(props)
2224
- },
2225
- _disabled: {
2226
- opacity: 0.4,
2227
- cursor: 'not-allowed'
2228
- }
2229
- };
2230
- }
2231
-
2232
- var baseStyleGroupTitle = {
2233
- mx: 4,
2234
- my: 2,
2235
- fontWeight: 'semibold',
2236
- fontSize: 'sm'
2237
- };
2238
- var baseStyleCommand = {
2239
- opacity: 0.6
2240
- };
2241
-
2242
- var baseStyle$9 = function baseStyle(props) {
2243
- return {
2244
- list: baseStyleList(props),
2245
- item: baseStyleItem(props),
2246
- groupTitle: baseStyleGroupTitle,
2247
- command: baseStyleCommand
2248
- };
2249
- };
2250
-
2251
- var Menu = {
2252
- parts: parts$4,
2253
- baseStyle: baseStyle$9
2254
- };
2255
-
2256
- var parts$5 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
2034
+ var parts$4 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
2257
2035
  var baseStyleOverlay = {
2258
2036
  bg: 'blackAlpha.600',
2259
2037
  zIndex: 'modal'
@@ -2327,7 +2105,7 @@ var baseStyleFooter = {
2327
2105
  pb: 16
2328
2106
  };
2329
2107
 
2330
- var baseStyle$a = function baseStyle(props) {
2108
+ var baseStyle$9 = function baseStyle(props) {
2331
2109
  return {
2332
2110
  overlay: baseStyleOverlay,
2333
2111
  dialogContainer: baseStyleDialogContainer(props),
@@ -2420,7 +2198,7 @@ function getSize(value) {
2420
2198
  };
2421
2199
  }
2422
2200
 
2423
- var sizes$2 = {
2201
+ var sizes = {
2424
2202
  xs: /*#__PURE__*/getSize('xs'),
2425
2203
  sm: /*#__PURE__*/getSize('sm'),
2426
2204
  md: /*#__PURE__*/getSize('md'),
@@ -2451,26 +2229,24 @@ var defaultProps$5 = {
2451
2229
  isCentered: true
2452
2230
  };
2453
2231
  var Modal = {
2454
- parts: parts$5,
2455
- baseStyle: baseStyle$a,
2456
- sizes: sizes$2,
2232
+ parts: parts$4,
2233
+ baseStyle: baseStyle$9,
2234
+ sizes: sizes,
2457
2235
  variants: variants$6,
2458
2236
  defaultProps: defaultProps$5
2459
2237
  };
2460
2238
 
2461
- var sizes$3 = Input$1.sizes,
2462
- defaultProps$6 = Input$1.defaultProps,
2239
+ var defaultProps$6 = Input$1.defaultProps,
2463
2240
  variants$7 = Input$1.variants;
2464
- var parts$6 = ['field', 'icon'];
2241
+ var parts$5 = ['field', 'icon'];
2465
2242
 
2466
- function baseStyleField(props) {
2243
+ function baseStyleField() {
2467
2244
  return _extends({}, Input$1.baseStyle.field, {
2468
2245
  appearance: 'none',
2469
2246
  paddingBottom: '1px',
2470
2247
  lineHeight: 'normal',
2471
2248
  bg: 'white',
2472
- '> option': {
2473
- bg: themeTools.mode('white', 'gray.700')(props)
2249
+ '> option': {// bg: mode('white', 'gray.700')(props),
2474
2250
  }
2475
2251
  });
2476
2252
  }
@@ -2483,22 +2259,21 @@ var baseStyleInput = {
2483
2259
  }
2484
2260
  };
2485
2261
 
2486
- var baseStyle$b = function baseStyle(props) {
2262
+ var baseStyle$a = function baseStyle() {
2487
2263
  return {
2488
- field: baseStyleField(props),
2264
+ field: baseStyleField(),
2489
2265
  icon: baseStyleInput
2490
2266
  };
2491
2267
  };
2492
2268
 
2493
2269
  var Select = {
2494
- parts: parts$6,
2495
- baseStyle: baseStyle$b,
2496
- sizes: sizes$3,
2270
+ parts: parts$5,
2271
+ baseStyle: baseStyle$a,
2497
2272
  variants: variants$7,
2498
2273
  defaultProps: defaultProps$6
2499
2274
  };
2500
2275
 
2501
- var parts$7 = ['track', 'thumb'];
2276
+ var parts$6 = ['track', 'thumb'];
2502
2277
 
2503
2278
  function baseStyleTrack(props) {
2504
2279
  var c = props.colorScheme,
@@ -2531,14 +2306,14 @@ var baseStyleThumb = {
2531
2306
  transform: 'translateX(0)'
2532
2307
  };
2533
2308
 
2534
- var baseStyle$c = function baseStyle(props) {
2309
+ var baseStyle$b = function baseStyle(props) {
2535
2310
  return {
2536
2311
  track: baseStyleTrack(props),
2537
2312
  thumb: baseStyleThumb
2538
2313
  };
2539
2314
  };
2540
2315
 
2541
- var sizes$4 = {
2316
+ var sizes$1 = {
2542
2317
  sm: {
2543
2318
  track: {
2544
2319
  w: '1.375rem',
@@ -2584,13 +2359,13 @@ var defaultProps$7 = {
2584
2359
  colorScheme: 'blue'
2585
2360
  };
2586
2361
  var Switch = {
2587
- parts: parts$7,
2588
- baseStyle: baseStyle$c,
2589
- sizes: sizes$4,
2362
+ parts: parts$6,
2363
+ baseStyle: baseStyle$b,
2364
+ sizes: sizes$1,
2590
2365
  defaultProps: defaultProps$7
2591
2366
  };
2592
2367
 
2593
- var parts$8 = ['root', 'tablist', 'tab', 'tabpanel', 'indicator'];
2368
+ var parts$7 = ['root', 'tablist', 'tab', 'tabpanel', 'indicator'];
2594
2369
 
2595
2370
  function baseStyleRoot(props) {
2596
2371
  var orientation = props.orientation;
@@ -2630,7 +2405,7 @@ var baseStyleTabpanel = {
2630
2405
  p: 4
2631
2406
  };
2632
2407
 
2633
- var baseStyle$d = function baseStyle(props) {
2408
+ var baseStyle$c = function baseStyle(props) {
2634
2409
  return {
2635
2410
  root: baseStyleRoot(props),
2636
2411
  tab: baseStyleTab(props),
@@ -2639,7 +2414,7 @@ var baseStyle$d = function baseStyle(props) {
2639
2414
  };
2640
2415
  };
2641
2416
 
2642
- var sizes$5 = {
2417
+ var sizes$2 = {
2643
2418
  sm: {
2644
2419
  tab: {
2645
2420
  py: '0.25rem',
@@ -2780,18 +2555,18 @@ function variantSolidRounded(props) {
2780
2555
  };
2781
2556
  }
2782
2557
 
2783
- var variantUnstyled$2 = {};
2558
+ var variantUnstyled = {};
2784
2559
  var variantSimple = {
2785
2560
  tab: {
2786
2561
  position: 'relative',
2787
2562
  borderColor: 'transparent',
2788
2563
  '&.active': {
2789
- color: colors.blue[500],
2564
+ color: colors.fill.action,
2790
2565
  bg: 'transparent',
2791
- borderBottom: '1px solid blue.500'
2566
+ borderBottom: "1px solid " + colors.fill.action
2792
2567
  },
2793
2568
  _selected: {
2794
- color: colors.blue[500],
2569
+ color: colors.fill.action,
2795
2570
  bg: 'transparent',
2796
2571
  _after: {
2797
2572
  content: '""',
@@ -2815,7 +2590,7 @@ var variants$8 = {
2815
2590
  'enclosed-colored': variantEnclosedColored,
2816
2591
  'soft-rounded': variantSoftRounded,
2817
2592
  'solid-rounded': variantSolidRounded,
2818
- unstyled: variantUnstyled$2,
2593
+ unstyled: variantUnstyled,
2819
2594
  simple: variantSimple
2820
2595
  };
2821
2596
  var defaultProps$8 = {
@@ -2824,70 +2599,30 @@ var defaultProps$8 = {
2824
2599
  colorScheme: 'blue'
2825
2600
  };
2826
2601
  var Tabs = {
2827
- parts: parts$8,
2828
- baseStyle: baseStyle$d,
2829
- sizes: sizes$5,
2602
+ parts: parts$7,
2603
+ baseStyle: baseStyle$c,
2604
+ sizes: sizes$2,
2830
2605
  variants: variants$8,
2831
2606
  defaultProps: defaultProps$8
2832
2607
  };
2833
2608
 
2834
- var baseStyle$e = /*#__PURE__*/_extends({}, Input$1.baseStyle.field, {
2609
+ var baseStyle$d = /*#__PURE__*/_extends({}, Input$1.baseStyle.field, {
2835
2610
  display: 'block',
2836
2611
  paddingY: '8px',
2837
- minHeight: '80px',
2612
+ height: '80px',
2838
2613
  lineHeight: 'short'
2839
2614
  });
2840
2615
 
2841
- var codeVariant = function codeVariant(props) {
2842
- var _focus = Input$1.variants.outline(props).field._focus;
2843
-
2844
- return {
2845
- bg: 'blue.900',
2846
- color: 'white',
2847
- fontFamily: 'mono',
2848
- fontSize: 'sm',
2849
- border: '1px',
2850
- borderColor: 'blue.900',
2851
- borderRadius: 'lg',
2852
- p: 6,
2853
- wordBreak: 'break-all',
2854
- _focus: _focus
2855
- };
2856
- };
2857
-
2858
- var variants$9 = {
2859
- outline: function outline(props) {
2860
- return Input$1.variants.outline(props).field;
2861
- },
2862
- flushed: function flushed(props) {
2863
- return Input$1.variants.flushed(props).field;
2864
- },
2865
- filled: function filled(props) {
2866
- return Input$1.variants.filled(props).field;
2867
- },
2868
- code: function code(props) {
2869
- return codeVariant(props);
2870
- },
2871
- unstyled: Input$1.variants.unstyled.field
2872
- };
2873
- var sizes$6 = {
2874
- sm: Input$1.sizes.sm.field,
2875
- md: Input$1.sizes.md.field,
2876
- lg: Input$1.sizes.lg.field
2877
- };
2878
2616
  var defaultProps$9 = {
2879
- size: 'lg',
2880
- variant: 'outline'
2617
+ variant: 'default'
2881
2618
  };
2882
2619
  var Textarea = {
2883
- baseStyle: baseStyle$e,
2884
- sizes: sizes$6,
2885
- variants: variants$9,
2620
+ baseStyle: baseStyle$d,
2886
2621
  defaultProps: defaultProps$9
2887
2622
  };
2888
2623
 
2889
2624
  var defaultProps$a = react.Text.defaultProps;
2890
- var baseStyle$f = {
2625
+ var baseStyle$e = {
2891
2626
  fontWeight: typography.fontWeights.normal,
2892
2627
  fontFamily: typography.fonts.base,
2893
2628
  fontSize: typography.fontSizes.sm,
@@ -2896,7 +2631,7 @@ var baseStyle$f = {
2896
2631
  };
2897
2632
 
2898
2633
  function variantHeader() {
2899
- return _extends({}, baseStyle$f, {
2634
+ return _extends({}, baseStyle$e, {
2900
2635
  fontWeight: typography.fontWeights.bold,
2901
2636
  fontSize: typography.fontSizes['3xl'],
2902
2637
  lineHeight: typography.lineHeights[8],
@@ -2905,7 +2640,7 @@ function variantHeader() {
2905
2640
  }
2906
2641
 
2907
2642
  function variantSubheader() {
2908
- return _extends({}, baseStyle$f, {
2643
+ return _extends({}, baseStyle$e, {
2909
2644
  fontWeight: typography.fontWeights.semibold,
2910
2645
  fontSize: typography.fontSizes['lg'],
2911
2646
  lineHeight: typography.lineHeights[5],
@@ -2914,19 +2649,19 @@ function variantSubheader() {
2914
2649
  }
2915
2650
 
2916
2651
  function variantParagraph() {
2917
- return baseStyle$f;
2652
+ return baseStyle$e;
2918
2653
  }
2919
2654
 
2920
- var variants$a = {
2655
+ var variants$9 = {
2921
2656
  header: variantHeader,
2922
2657
  subheader: variantSubheader,
2923
2658
  paragraph: variantParagraph
2924
2659
  };
2925
2660
  var Text$1 = {
2926
- baseStyle: baseStyle$f,
2927
- variants: variants$a,
2661
+ baseStyle: baseStyle$e,
2662
+ variants: variants$9,
2928
2663
  defaultProps: /*#__PURE__*/_extends({}, defaultProps$a, {
2929
- variant: variants$a.paragraph
2664
+ variant: variants$9.paragraph
2930
2665
  })
2931
2666
  };
2932
2667
 
@@ -2965,7 +2700,6 @@ var customXQChakraTheme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends(
2965
2700
  FormLabel: FormLabel,
2966
2701
  Input: Input$1,
2967
2702
  Link: Link,
2968
- Menu: Menu,
2969
2703
  Modal: Modal,
2970
2704
  Select: Select,
2971
2705
  Switch: Switch,