@xqmsg/ui-core 0.28.1 → 0.29.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 (87) hide show
  1. package/README.md +3 -3
  2. package/dist/components/SimpleTable/SimpleTable.stories.d.ts +2 -2
  3. package/dist/components/SimpleTable/TableTypes.d.ts +1 -1
  4. package/dist/components/SimpleTable/utils/generateTableColumns.d.ts +1 -1
  5. package/dist/components/banner/Banner.stories.d.ts +2 -2
  6. package/dist/components/breadcrumbs/Breadcrumbs.stories.d.ts +2 -2
  7. package/dist/components/button/Button.stories.d.ts +2 -2
  8. package/dist/components/button/google/GoogleButton.stories.d.ts +2 -2
  9. package/dist/components/button/index.d.ts +4 -5
  10. package/dist/components/button/microsoft/MicrosoftButton.stories.d.ts +2 -2
  11. package/dist/components/button/spinner/SpinnerButton.stories.d.ts +2 -2
  12. package/dist/components/card/Card.stories.d.ts +2 -2
  13. package/dist/components/card/index.d.ts +1 -0
  14. package/dist/components/form/Form.stories.d.ts +2 -2
  15. package/dist/components/form/section/FormSection.stories.d.ts +2 -2
  16. package/dist/components/input/Input.stories.d.ts +2 -2
  17. package/dist/components/input/InputTypes.d.ts +2 -0
  18. package/dist/components/input/components/token/Token.stories.d.ts +2 -2
  19. package/dist/components/layout/Layout.stories.d.ts +2 -2
  20. package/dist/components/link/Link.stories.d.ts +2 -2
  21. package/dist/components/loading/LoadingIndicator.stories.d.ts +2 -2
  22. package/dist/components/modal/Modal.stories.d.ts +2 -2
  23. package/dist/components/navigation/NavigationMenu.stories.d.ts +2 -2
  24. package/dist/components/tabs/TabsWrapper.stories.d.ts +2 -2
  25. package/dist/components/text/Text.stories.d.ts +2 -2
  26. package/dist/components/toast/Toast.stories.d.ts +2 -2
  27. package/dist/components/toolbar/Toolbar.stories.d.ts +2 -2
  28. package/dist/hooks/useToast.d.ts +1 -2
  29. package/dist/theme/components/checkbox.d.ts +1 -1
  30. package/dist/theme/components/code.d.ts +9 -3
  31. package/dist/theme/components/form-error.d.ts +1 -2
  32. package/dist/theme/components/link.d.ts +1 -1
  33. package/dist/theme/components/menu.d.ts +2 -1
  34. package/dist/theme/components/modal.d.ts +15 -11
  35. package/dist/theme/components/switch.d.ts +2 -1
  36. package/dist/theme/components/tabs.d.ts +4 -4
  37. package/dist/theme/foundations/colors.d.ts +225 -22
  38. package/dist/theme/foundations/typography.d.ts +10 -9
  39. package/dist/theme/styles.d.ts +0 -3
  40. package/dist/ui-core.cjs.development.js +281 -235
  41. package/dist/ui-core.cjs.development.js.map +1 -1
  42. package/dist/ui-core.cjs.production.min.js +1 -1
  43. package/dist/ui-core.cjs.production.min.js.map +1 -1
  44. package/dist/ui-core.esm.js +281 -236
  45. package/dist/ui-core.esm.js.map +1 -1
  46. package/package.json +4 -9
  47. package/src/components/SimpleTable/SimpleTable.tsx +1 -1
  48. package/src/components/SimpleTable/TableTypes.ts +1 -1
  49. package/src/components/SimpleTable/components/loading/index.tsx +2 -2
  50. package/src/components/SimpleTable/components/text/index.tsx +2 -2
  51. package/src/components/breadcrumbs/components/icon/index.tsx +3 -3
  52. package/src/components/breadcrumbs/components/label/index.tsx +1 -1
  53. package/src/components/button/index.tsx +6 -6
  54. package/src/components/card/index.tsx +12 -10
  55. package/src/components/icons/chevron/down/index.tsx +1 -1
  56. package/src/components/icons/settings/index.tsx +1 -1
  57. package/src/components/input/InputTypes.ts +3 -0
  58. package/src/components/input/StackedMultiSelect/index.tsx +7 -2
  59. package/src/components/input/StackedNumberInput/StackedNumberInput.tsx +2 -2
  60. package/src/components/input/StackedPilledInput/index.tsx +11 -3
  61. package/src/components/input/components/dropdown/index.tsx +8 -8
  62. package/src/components/input/components/label/index.tsx +2 -2
  63. package/src/components/input/components/token/index.tsx +1 -1
  64. package/src/components/input/index.tsx +1 -2
  65. package/src/components/link/index.tsx +1 -1
  66. package/src/components/loading/index.tsx +1 -1
  67. package/src/components/navigation/components/header/index.tsx +1 -1
  68. package/src/components/navigation/components/items/index.tsx +1 -1
  69. package/src/components/select/index.tsx +0 -19
  70. package/src/components/toast/index.tsx +2 -2
  71. package/src/components/toolbar/components/breadcrumbs/item/index.tsx +2 -2
  72. package/src/components/toolbar/components/dropdown/index.tsx +2 -2
  73. package/src/theme/components/alert.ts +4 -4
  74. package/src/theme/components/button.ts +50 -50
  75. package/src/theme/components/form-error.ts +3 -5
  76. package/src/theme/components/form-label.ts +1 -1
  77. package/src/theme/components/form.ts +2 -2
  78. package/src/theme/components/input.ts +3 -3
  79. package/src/theme/components/link.ts +4 -13
  80. package/src/theme/components/menu.ts +1 -1
  81. package/src/theme/components/modal.ts +17 -11
  82. package/src/theme/components/table.ts +2 -2
  83. package/src/theme/components/tabs.ts +6 -6
  84. package/src/theme/foundations/colors.ts +89 -37
  85. package/src/theme/foundations/shadows.ts +3 -3
  86. package/src/theme/foundations/typography.ts +3 -2
  87. package/src/theme/styles.ts +0 -3
@@ -37,11 +37,9 @@ var ActionRow = function ActionRow(_ref) {
37
37
  }, primaryText));
38
38
  };
39
39
 
40
- /**
41
- * A functional React component utilized to render the `Button` component
42
- */
43
40
  var Button = function Button(_ref) {
44
41
  var onClick = _ref.onClick,
42
+ children = _ref.children,
45
43
  text = _ref.text,
46
44
  _ref$type = _ref.type,
47
45
  type = _ref$type === void 0 ? 'button' : _ref$type,
@@ -65,7 +63,7 @@ var Button = function Button(_ref) {
65
63
  rightIcon: rightIcon,
66
64
  leftIcon: leftIcon,
67
65
  color: color
68
- }, text);
66
+ }, children != null ? children : text);
69
67
  };
70
68
 
71
69
  var _path;
@@ -304,34 +302,40 @@ var green = {
304
302
  800: 'hsl(141, 42%, 24%)',
305
303
  900: 'hsl(138, 42%, 6%)'
306
304
  };
307
- var label = {
308
- primary: {
309
- light: '#000000',
310
- dark: '#FFFFFF'
311
- },
312
- secondary: {
313
- light: '#3C3C4399'
305
+ // ─── Canonical semantic tokens ────────────────────────────────────────────────
306
+ var text = {
307
+ primary: '#000000',
308
+ secondary: '#3C3C4399',
309
+ tertiary: '#3C3C4366',
310
+ onAccent: '#FFFFFF',
311
+ danger: red[500] // form-error text and required indicator
312
+ };
313
+
314
+ var surface = {
315
+ canvas: '#FFFFFF' // page / card / table-header background
316
+ };
317
+
318
+ var action = {
319
+ solid: '#0082ff',
320
+ danger: red[600] // danger button fill; also used for focus rings
321
+ };
322
+
323
+ var status = {
324
+ success: {
325
+ fill: '#d8f1b8'
314
326
  },
315
- tertiary: {
316
- light: '',
317
- dark: '#EBEBF52E'
327
+ warning: {
328
+ fill: '#ffefb4'
318
329
  },
319
- error: '#FF0000'
330
+ danger: {
331
+ fill: '#ffbdb9'
332
+ }
320
333
  };
321
334
  var border = {
322
335
  focus: '#3A6CD980',
323
336
  "default": '#D9D9D9',
324
- light: '#99999919A'
325
- };
326
- var blur = {
327
- quaternary: {
328
- light: '',
329
- dark: '#2A2A2A73'
330
- },
331
- tertiary: {
332
- light: '',
333
- dark: '#111111A6'
334
- }
337
+ /** @deprecated typo was '#99999919A' — kept for compat, use inline '#9999991A' */
338
+ light: '#9999991A'
335
339
  };
336
340
  var fill = {
337
341
  light: {
@@ -340,11 +344,50 @@ var fill = {
340
344
  tertiary: '#7474801F',
341
345
  quaternary: '#7474800D'
342
346
  },
347
+ // translucent "dark glass" fills — previously named blur.*
348
+ dark: {
349
+ subtle: '#2A2A2A60',
350
+ strong: '#111111A6' // tertiary button pressed bg
351
+ },
352
+
353
+ // ─── deprecated aliases ───────────────────────────────────────────────────
354
+ /** @deprecated use colors.action.solid */
355
+ action: '#0082ff',
356
+ /** @deprecated use colors.status.success.fill */
343
357
  success: '#d8f1b8',
358
+ /** @deprecated use colors.status.danger.fill */
344
359
  error: '#ffbdb9',
345
- warning: '#ffefb4',
346
- action: '#0082ff'
360
+ /** @deprecated use colors.status.warning.fill */
361
+ warning: '#ffefb4'
347
362
  };
363
+ // ─── Deprecated compat aliases ────────────────────────────────────────────────
364
+ // Keep old top-level keys so consumer repos don't break on upgrade.
365
+ // Remove these in the next major version.
366
+ /** @deprecated use colors.text.* and colors.surface.canvas */
367
+ var label = {
368
+ primary: {
369
+ light: text.primary,
370
+ dark: text.onAccent
371
+ },
372
+ secondary: {
373
+ light: text.secondary
374
+ },
375
+ tertiary: {
376
+ light: text.tertiary,
377
+ dark: '#EBEBF52E'
378
+ },
379
+ error: text.danger
380
+ };
381
+ /** @deprecated use colors.fill.dark.subtle / colors.fill.dark.strong */
382
+ var blur = {
383
+ quaternary: {
384
+ dark: fill.dark.subtle
385
+ },
386
+ tertiary: {
387
+ dark: fill.dark.strong
388
+ }
389
+ };
390
+ /** @deprecated colors.semantic.* was a parallel action palette — use colors.action / colors.status instead */
348
391
  var semantic = {
349
392
  action: '#488ef7',
350
393
  success: '#5fcf65',
@@ -352,18 +395,28 @@ var semantic = {
352
395
  error: '#f96057'
353
396
  };
354
397
  var colors = {
355
- label: label,
356
- blur: blur,
398
+ // canonical
399
+ text: text,
400
+ surface: surface,
401
+ action: action,
402
+ status: status,
357
403
  border: border,
358
404
  fill: fill,
405
+ // deprecated compat
406
+ label: label,
407
+ blur: blur,
359
408
  semantic: semantic,
409
+ // misc
360
410
  transparent: 'transparent',
361
411
  current: 'currentColor',
362
412
  black: '#000000',
363
413
  white: '#FFFFFF',
414
+ /** @deprecated */
364
415
  lightBlue: '#29abe2',
365
416
  coolGray: '#F6F7FB',
417
+ /** @deprecated */
366
418
  darkBlue: '#292f4c',
419
+ /** @deprecated */
367
420
  backdrop: '#fbfcff',
368
421
  whiteAlpha: {
369
422
  50: 'rgba(255, 255, 255, 0.04)',
@@ -406,6 +459,8 @@ var colors = {
406
459
  green: green,
407
460
  blue: blue
408
461
  };
462
+ /** Canonical alias — prefer this over `colors` for new code */
463
+ var tokens = colors;
409
464
 
410
465
  /**
411
466
  * A functional React component utilized to render the `Icon` for the `Breadcrumbs` component.
@@ -418,17 +473,17 @@ var Icon = function Icon(_ref) {
418
473
  case 'active':
419
474
  return {
420
475
  bg: '#0082FF',
421
- color: colors.label.primary.dark
476
+ color: colors.text.onAccent
422
477
  };
423
478
  case 'complete':
424
479
  return {
425
480
  bg: '#7474800D',
426
- color: colors.label.primary.light
481
+ color: colors.text.primary
427
482
  };
428
483
  case 'inactive':
429
484
  return {
430
485
  bg: '#7474800D',
431
- color: colors.label.primary.light
486
+ color: colors.text.primary
432
487
  };
433
488
  }
434
489
  }, [status]);
@@ -452,7 +507,7 @@ var Label = function Label(_ref) {
452
507
  return /*#__PURE__*/React__default.createElement(react.Box, {
453
508
  pl: "8px"
454
509
  }, /*#__PURE__*/React__default.createElement(react.Text, {
455
- color: colors.label.primary.light,
510
+ color: colors.text.primary,
456
511
  fontSize: "13px"
457
512
  }, label));
458
513
  };
@@ -528,7 +583,8 @@ var typography = {
528
583
  black: 900
529
584
  },
530
585
  fonts: {
531
- base: "proxima-nova, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
586
+ heading: "proxima-nova, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
587
+ body: "proxima-nova, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
532
588
  mono: "SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace"
533
589
  },
534
590
  fontSizes: {
@@ -553,18 +609,20 @@ var Card = function Card(_ref) {
553
609
  leftIcon = _ref.leftIcon,
554
610
  children = _ref.children,
555
611
  _ref$height = _ref.height,
556
- height = _ref$height === void 0 ? 'auto' : _ref$height;
612
+ height = _ref$height === void 0 ? 'auto' : _ref$height,
613
+ _ref$width = _ref.width,
614
+ width = _ref$width === void 0 ? '206px' : _ref$width;
557
615
  return /*#__PURE__*/React__default.createElement(react.Box, {
558
616
  bg: colors.fill.light.quaternary,
559
617
  borderRadius: "4px",
560
618
  border: ".5px solid " + colors.border["default"],
561
- py: "8px",
562
- px: "8px",
619
+ py: 2,
620
+ px: 2,
563
621
  height: height,
564
622
  overflowY: "auto",
565
- width: "206px",
623
+ width: width,
566
624
  _notLast: {
567
- marginBottom: '8px'
625
+ marginBottom: 2
568
626
  }
569
627
  }, title && /*#__PURE__*/React__default.createElement(react.Flex, {
570
628
  display: "flex",
@@ -574,13 +632,13 @@ var Card = function Card(_ref) {
574
632
  _hover: {
575
633
  textDecoration: 'none'
576
634
  },
577
- mb: "8px"
635
+ mb: 2
578
636
  }, /*#__PURE__*/React__default.createElement(react.Flex, {
579
637
  alignItems: "center"
580
638
  }, /*#__PURE__*/React__default.createElement(react.Box, {
581
- mr: "4px"
639
+ mr: 1
582
640
  }, leftIcon), /*#__PURE__*/React__default.createElement(react.Text, {
583
- color: colors.label.primary.light,
641
+ color: colors.text.primary,
584
642
  fontSize: typography.fontSizes.sm,
585
643
  fontWeight: typography.fontWeights.medium
586
644
  }, title))), React.Children.map(children, function (child) {
@@ -591,15 +649,15 @@ var Card = function Card(_ref) {
591
649
  return /*#__PURE__*/React__default.createElement(react.Text, {
592
650
  as: "div",
593
651
  _notLast: {
594
- marginBottom: '8px'
652
+ marginBottom: 2
595
653
  },
596
- color: colors.label.primary.light,
654
+ color: colors.text.primary,
597
655
  fontSize: typography.fontSizes.xs,
598
656
  fontWeight: typography.fontWeights.normal
599
657
  }, child);
600
658
  } else {
601
659
  return /*#__PURE__*/React__default.createElement(react.Box, {
602
- mt: "8px"
660
+ mt: 2
603
661
  }, child);
604
662
  }
605
663
  }));
@@ -752,6 +810,33 @@ var SpinnerButton = function SpinnerButton(_ref) {
752
810
  }, text);
753
811
  };
754
812
 
813
+ function _extends$6() {
814
+ _extends$6 = Object.assign ? Object.assign.bind() : function (target) {
815
+ for (var i = 1; i < arguments.length; i++) {
816
+ var source = arguments[i];
817
+ for (var key in source) {
818
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
819
+ target[key] = source[key];
820
+ }
821
+ }
822
+ }
823
+ return target;
824
+ };
825
+ return _extends$6.apply(this, arguments);
826
+ }
827
+ function _objectWithoutPropertiesLoose(source, excluded) {
828
+ if (source == null) return {};
829
+ var target = {};
830
+ var sourceKeys = Object.keys(source);
831
+ var key, i;
832
+ for (i = 0; i < sourceKeys.length; i++) {
833
+ key = sourceKeys[i];
834
+ if (excluded.indexOf(key) >= 0) continue;
835
+ target[key] = source[key];
836
+ }
837
+ return target;
838
+ }
839
+
755
840
  /**
756
841
  * A functional React component utilized to render the `Form` component, a form wrapper for
757
842
  * `react-hook-form`. The `Form` component is provided a `formHandler` and is used to wrap a container
@@ -762,7 +847,7 @@ function Form(_ref) {
762
847
  children = _ref.children;
763
848
  var form = formHandler.form,
764
849
  onSubmit = formHandler.onSubmit;
765
- return /*#__PURE__*/React__default.createElement(reactHookForm.FormProvider, Object.assign({}, form), /*#__PURE__*/React__default.createElement("form", {
850
+ return /*#__PURE__*/React__default.createElement(reactHookForm.FormProvider, _extends$6({}, form), /*#__PURE__*/React__default.createElement("form", {
766
851
  onSubmit: onSubmit
767
852
  }, children));
768
853
  }
@@ -793,33 +878,6 @@ var StackedCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
793
878
  }, label));
794
879
  });
795
880
 
796
- function _extends$6() {
797
- _extends$6 = Object.assign ? Object.assign.bind() : function (target) {
798
- for (var i = 1; i < arguments.length; i++) {
799
- var source = arguments[i];
800
- for (var key in source) {
801
- if (Object.prototype.hasOwnProperty.call(source, key)) {
802
- target[key] = source[key];
803
- }
804
- }
805
- }
806
- return target;
807
- };
808
- return _extends$6.apply(this, arguments);
809
- }
810
- function _objectWithoutPropertiesLoose(source, excluded) {
811
- if (source == null) return {};
812
- var target = {};
813
- var sourceKeys = Object.keys(source);
814
- var key, i;
815
- for (i = 0; i < sourceKeys.length; i++) {
816
- key = sourceKeys[i];
817
- if (excluded.indexOf(key) >= 0) continue;
818
- target[key] = source[key];
819
- }
820
- return target;
821
- }
822
-
823
881
  var _excluded = ["type", "isRequired", "rightElement", "leftElement", "defaultValue", "variant", "label"];
824
882
  /**
825
883
  * A functional React component utilized to render the `StackedInput` component.
@@ -837,7 +895,7 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
837
895
  props = _objectWithoutPropertiesLoose(_ref2, _excluded);
838
896
  var isMobile = variant === 'mobile';
839
897
  var placeholder = isMobile && label ? label : undefined;
840
- return /*#__PURE__*/React__default.createElement(react.InputGroup, null, leftElement && leftElement, label, /*#__PURE__*/React__default.createElement(react.Input, Object.assign({}, props, {
898
+ return /*#__PURE__*/React__default.createElement(react.InputGroup, null, leftElement && leftElement, label, /*#__PURE__*/React__default.createElement(react.Input, _extends$6({}, props, {
841
899
  placeholder: (_props$placeholder = props.placeholder) != null ? _props$placeholder : placeholder,
842
900
  type: type,
843
901
  isRequired: isRequired,
@@ -891,7 +949,7 @@ var Dropdown = function Dropdown(_ref) {
891
949
  px: "8px",
892
950
  py: "4px",
893
951
  width: "100%",
894
- color: colors.label.primary.light,
952
+ color: colors.text.primary,
895
953
  bg: "inherit",
896
954
  whiteSpace: "nowrap"
897
955
  }, /*#__PURE__*/React__default.createElement(react.Flex, {
@@ -909,7 +967,7 @@ var Dropdown = function Dropdown(_ref) {
909
967
  px: "8px",
910
968
  py: "4px",
911
969
  width: "100%",
912
- color: colors.label.primary.light,
970
+ color: colors.text.primary,
913
971
  bg: "inherit",
914
972
  whiteSpace: "nowrap"
915
973
  }, "No options");
@@ -920,7 +978,7 @@ var Dropdown = function Dropdown(_ref) {
920
978
  width: "100%",
921
979
  role: "combobox"
922
980
  }, option.value === 'section_header' && options[idx + 1] && options[idx + 1].value !== 'section_header' && /*#__PURE__*/React__default.createElement(react.Box, {
923
- color: colors.label.secondary.light,
981
+ color: colors.text.secondary,
924
982
  fontSize: "13px",
925
983
  width: "100%",
926
984
  fontWeight: "bold",
@@ -943,14 +1001,14 @@ var Dropdown = function Dropdown(_ref) {
943
1001
  px: "8px",
944
1002
  py: "4px",
945
1003
  width: "100%",
946
- color: optionIndex === idx ? colors.label.primary.dark : colors.label.primary.light,
1004
+ color: optionIndex === idx ? colors.text.onAccent : colors.text.primary,
947
1005
  _hover: {
948
- color: colors.label.primary.dark,
949
- bg: colors.fill.action,
1006
+ color: colors.text.onAccent,
1007
+ bg: colors.action.solid,
950
1008
  borderRadius: '4px',
951
1009
  width: '100%'
952
1010
  },
953
- bg: optionIndex === idx ? colors.fill.action : 'inherit',
1011
+ bg: optionIndex === idx ? colors.action.solid : 'inherit',
954
1012
  whiteSpace: "nowrap",
955
1013
  id: option.value
956
1014
  }, option.label));
@@ -1194,7 +1252,7 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
1194
1252
  return /*#__PURE__*/React__default.createElement(react.Box, {
1195
1253
  ref: dropdownRef,
1196
1254
  position: "relative"
1197
- }, /*#__PURE__*/React__default.createElement(react.InputGroup, null, /*#__PURE__*/React__default.createElement(react.Input, Object.assign({
1255
+ }, /*#__PURE__*/React__default.createElement(react.InputGroup, null, /*#__PURE__*/React__default.createElement(react.Input, _extends$6({
1198
1256
  isRequired: isRequired
1199
1257
  }, props, {
1200
1258
  ref: _ref,
@@ -1236,7 +1294,7 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
1236
1294
  props = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
1237
1295
  var isMobile = variant === 'mobile';
1238
1296
  if (isMobile) {
1239
- return /*#__PURE__*/React__default.createElement(react.Flex, null, /*#__PURE__*/React__default.createElement(react.Textarea, Object.assign({
1297
+ return /*#__PURE__*/React__default.createElement(react.Flex, null, /*#__PURE__*/React__default.createElement(react.Textarea, _extends$6({
1240
1298
  ref: _ref
1241
1299
  }, props, {
1242
1300
  variant: variant,
@@ -1244,7 +1302,7 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
1244
1302
  placeholder: label != null ? label : ''
1245
1303
  })));
1246
1304
  }
1247
- return /*#__PURE__*/React__default.createElement(react.Textarea, Object.assign({
1305
+ return /*#__PURE__*/React__default.createElement(react.Textarea, _extends$6({
1248
1306
  ref: _ref
1249
1307
  }, props, {
1250
1308
  variant: variant,
@@ -1324,7 +1382,7 @@ var Token = function Token(_ref) {
1324
1382
  }, /*#__PURE__*/React__default.createElement(react.Text, {
1325
1383
  whiteSpace: "nowrap",
1326
1384
  wordBreak: "break-word",
1327
- color: colors.label.primary.light,
1385
+ color: colors.text.primary,
1328
1386
  fontSize: isMobile ? '17px' : '13px',
1329
1387
  lineHeight: "1.5",
1330
1388
  pr: "2px",
@@ -1369,6 +1427,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1369
1427
  var dropdownMenuRef = React.useRef(null);
1370
1428
  var scrollRef = React.useRef(null);
1371
1429
  var inputRef = React.useRef(null);
1430
+ var searchRef = React.useRef(null);
1372
1431
  var _useState = React.useState(false),
1373
1432
  isInit = _useState[0],
1374
1433
  setIsInit = _useState[1];
@@ -1545,6 +1604,10 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1545
1604
  return element.label.toLowerCase().includes(searchValue.toLowerCase());
1546
1605
  }));
1547
1606
  }, [localOptions, searchValue]);
1607
+ React.useEffect(function () {
1608
+ var _searchRef$current;
1609
+ if (isFocussed) (_searchRef$current = searchRef.current) == null ? void 0 : _searchRef$current.focus();
1610
+ }, [isFocussed]);
1548
1611
  var handleInput = function handleInput(e) {
1549
1612
  var _filteredOptions$;
1550
1613
  var initialOptionIndex = ((_filteredOptions$ = filteredOptions[0]) == null ? void 0 : _filteredOptions$.value) === 'section_header' ? 1 : 0;
@@ -1607,7 +1670,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1607
1670
  }
1608
1671
  }));
1609
1672
  }) : /*#__PURE__*/React__default.createElement(react.Text, {
1610
- color: colors.label.secondary.light,
1673
+ color: colors.text.secondary,
1611
1674
  fontSize: "13px"
1612
1675
  }, placeholder)), /*#__PURE__*/React__default.createElement(react.Input, {
1613
1676
  padding: 0,
@@ -1638,7 +1701,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1638
1701
  optionIndex: optionIndex,
1639
1702
  loading: loadingOptions
1640
1703
  }, /*#__PURE__*/React__default.createElement(react.Input, {
1641
- autoFocus: true,
1704
+ ref: searchRef,
1642
1705
  value: searchValue,
1643
1706
  onChange: handleInput,
1644
1707
  disabled: loadingOptions
@@ -1689,11 +1752,11 @@ var StackedNumberInput = /*#__PURE__*/React__default.forwardRef(function (_ref,
1689
1752
  max: max,
1690
1753
  step: step,
1691
1754
  precision: precision,
1692
- onChange: function onChange(_, valueAsNumber) {
1755
+ onChange: function onChange(valueAsString, valueAsNumber) {
1693
1756
  return _onChange == null ? void 0 : _onChange({
1694
1757
  target: {
1695
1758
  name: name,
1696
- value: Number.isNaN(valueAsNumber) ? '' : precision === 0 ? String(Math.round(valueAsNumber)) : String(valueAsNumber)
1759
+ value: Number.isNaN(valueAsNumber) ? '' : precision === 0 ? String(Math.round(valueAsNumber)) : valueAsString
1697
1760
  }
1698
1761
  });
1699
1762
  },
@@ -1983,7 +2046,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1983
2046
  truncateLength: truncatePillLength
1984
2047
  }));
1985
2048
  }) : null, !lastestFormValueToArray.length && !isFocussed ? /*#__PURE__*/React__default.createElement(react.Text, {
1986
- color: colors.label.secondary.light,
2049
+ color: colors.text.secondary,
1987
2050
  fontSize: isMobile ? '17px' : '13px',
1988
2051
  pointerEvents: "none"
1989
2052
  }, placeholder) : null, !disabled && !scrollMode && /*#__PURE__*/React__default.createElement(react.Flex, {
@@ -1997,7 +2060,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1997
2060
  "float": "right",
1998
2061
  border: "none",
1999
2062
  height: "auto",
2000
- color: tokenIndex !== null ? 'transparent' : colors.label.primary,
2063
+ color: tokenIndex !== null ? 'transparent' : colors.text.primary,
2001
2064
  _focus: {
2002
2065
  boxShadow: 'none !important'
2003
2066
  },
@@ -2007,6 +2070,10 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
2007
2070
  onFocus: function onFocus() {
2008
2071
  return setIsFocussed(true);
2009
2072
  },
2073
+ onBlur: function onBlur() {
2074
+ setIsFocussed(false);
2075
+ setTokenIndex(null);
2076
+ },
2010
2077
  fontSize: isMobile ? '17px' : '13px',
2011
2078
  lineHeight: 1.5,
2012
2079
  placeholder: isMobile && label && lastestFormValueToArray.length === 0 ? label : '',
@@ -2025,7 +2092,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
2025
2092
  "float": "right",
2026
2093
  border: "none",
2027
2094
  height: "auto",
2028
- color: tokenIndex !== null ? 'transparent' : colors.label.primary,
2095
+ color: tokenIndex !== null ? 'transparent' : colors.text.primary,
2029
2096
  _focus: {
2030
2097
  boxShadow: 'none !important'
2031
2098
  },
@@ -2035,6 +2102,10 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
2035
2102
  onFocus: function onFocus() {
2036
2103
  return setIsFocussed(true);
2037
2104
  },
2105
+ onBlur: function onBlur() {
2106
+ setIsFocussed(false);
2107
+ setTokenIndex(null);
2108
+ },
2038
2109
  placeholder: isMobile && label && lastestFormValueToArray.length === 0 ? label : '',
2039
2110
  variant: variant,
2040
2111
  style: isMobile ? {
@@ -2079,7 +2150,7 @@ var Label$1 = function Label(_ref) {
2079
2150
  ml: "0"
2080
2151
  }, label, isRequired && /*#__PURE__*/React__default.createElement(react.Box, {
2081
2152
  ml: 1,
2082
- color: colors.label.error
2153
+ color: colors.text.danger
2083
2154
  }, "*"), !!tooltipText && /*#__PURE__*/React__default.createElement(react.Popover, {
2084
2155
  trigger: "hover",
2085
2156
  placement: "top"
@@ -2088,7 +2159,7 @@ var Label$1 = function Label(_ref) {
2088
2159
  }, /*#__PURE__*/React__default.createElement(icons.QuestionIcon, {
2089
2160
  boxSize: "13px",
2090
2161
  ml: 1,
2091
- color: colors.fill.action
2162
+ color: colors.action.solid
2092
2163
  }))), /*#__PURE__*/React__default.createElement(react.PopoverContent, null, /*#__PURE__*/React__default.createElement(react.PopoverArrow, null), /*#__PURE__*/React__default.createElement(react.PopoverBody, null, tooltipText))));
2093
2164
  };
2094
2165
 
@@ -2326,7 +2397,7 @@ function Input(_ref) {
2326
2397
  id: name,
2327
2398
  isInvalid: isInvalid,
2328
2399
  position: "relative",
2329
- py: !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && label || helperText || isInvalid ? 5 : 0
2400
+ py: !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && label || helperText ? 5 : 0
2330
2401
  }, label && !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && /*#__PURE__*/React__default.createElement(Label$1, {
2331
2402
  tooltipText: tooltipText,
2332
2403
  label: label,
@@ -2448,7 +2519,7 @@ var ChevronDown = function ChevronDown(_ref) {
2448
2519
  return /*#__PURE__*/React__default.createElement(Memo$9, {
2449
2520
  width: boxSize,
2450
2521
  height: boxSize,
2451
- fill: colors.fill.action
2522
+ fill: colors.action.solid
2452
2523
  });
2453
2524
  };
2454
2525
 
@@ -2979,7 +3050,7 @@ var Settings = function Settings(_ref) {
2979
3050
  return /*#__PURE__*/React__default.createElement(Memo$o, {
2980
3051
  width: boxSize,
2981
3052
  height: boxSize,
2982
- fill: colors.fill.action
3053
+ fill: colors.action.solid
2983
3054
  });
2984
3055
  };
2985
3056
 
@@ -3317,7 +3388,7 @@ var GearIcon = function GearIcon(_ref) {
3317
3388
  var boxSize = _ref.boxSize,
3318
3389
  color = _ref.color,
3319
3390
  props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
3320
- return /*#__PURE__*/React__default.createElement(react.Box, Object.assign({}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
3391
+ return /*#__PURE__*/React__default.createElement(react.Box, _extends$6({}, props), /*#__PURE__*/React__default.createElement("svg", _extends$6({
3321
3392
  xmlns: "http://www.w3.org/2000/svg",
3322
3393
  width: boxSize != null ? boxSize : 16,
3323
3394
  height: boxSize != null ? boxSize : 17,
@@ -3351,22 +3422,6 @@ function SelectNative(_ref) {
3351
3422
  onChange = _ref.onChange,
3352
3423
  setValue = _ref.setValue,
3353
3424
  props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3354
- // const [selectedOption, setSelectedOption] = useState(
3355
- // options ? options[0] ?? '' : ''
3356
- // );
3357
- var style = {
3358
- cursor: 'pointer',
3359
- color: 'var(--chakra-colors-blue-500)',
3360
- height: '48px',
3361
- fontSize: '17px',
3362
- lineHeight: '20px',
3363
- fontWeight: 400,
3364
- padding: '12px 16px 12px 0px',
3365
- borderRadius: 0,
3366
- border: '0.5px solid rgba(153, 153, 153, 0.1)',
3367
- borderLeft: 'none',
3368
- borderRight: 'none'
3369
- };
3370
3425
  var handleOnSelectItem = function handleOnSelectItem(e) {
3371
3426
  var selectedValue = e.target.value;
3372
3427
  var selectedOption = options == null ? void 0 : options.find(function (_ref2) {
@@ -3398,14 +3453,13 @@ function SelectNative(_ref) {
3398
3453
  isInvalid: isInvalid,
3399
3454
  position: "relative",
3400
3455
  py: 0
3401
- }, /*#__PURE__*/React__default.createElement(react.Select, Object.assign({}, props, {
3456
+ }, /*#__PURE__*/React__default.createElement(react.Select, _extends$6({}, props, {
3402
3457
  required: isRequired,
3403
3458
  ref: ref,
3404
3459
  value: value,
3405
3460
  disabled: disabled != null ? disabled : false,
3406
3461
  onChange: handleOnSelectItem,
3407
- defaultValue: defaultValue,
3408
- style: style
3462
+ defaultValue: defaultValue
3409
3463
  }), options && options.map(function (i) {
3410
3464
  return /*#__PURE__*/React__default.createElement("option", {
3411
3465
  value: i.value,
@@ -3531,7 +3585,7 @@ var Link = function Link(_ref) {
3531
3585
  }, getIcon, /*#__PURE__*/React__default.createElement(react.Text, {
3532
3586
  variant: "description-large",
3533
3587
  pl: "2px",
3534
- color: colors.fill.action
3588
+ color: colors.action.solid
3535
3589
  }, text));
3536
3590
  };
3537
3591
 
@@ -3555,7 +3609,7 @@ var LoadingIndicator = function LoadingIndicator(_ref) {
3555
3609
  className: "loading-indicator " + (className != null ? className : '')
3556
3610
  }, /*#__PURE__*/React__default.createElement(react.Spinner, {
3557
3611
  size: size,
3558
- color: colors.fill.action,
3612
+ color: colors.action.solid,
3559
3613
  flex: "none",
3560
3614
  thickness: thickness,
3561
3615
  speed: speed,
@@ -3594,7 +3648,7 @@ var NavigationMenuHeader = function NavigationMenuHeader(_ref) {
3594
3648
  height: "26px",
3595
3649
  width: "204px",
3596
3650
  fontSize: "12px",
3597
- color: colors.label.secondary.light
3651
+ color: colors.text.secondary
3598
3652
  }, label);
3599
3653
  };
3600
3654
 
@@ -3626,7 +3680,7 @@ var NavigationMenuItem = function NavigationMenuItem(_ref) {
3626
3680
  isExternal: true
3627
3681
  });
3628
3682
  }
3629
- return /*#__PURE__*/React__default.createElement(react.Link, Object.assign({}, reactRouterLinkProps, additionalProps, {
3683
+ return /*#__PURE__*/React__default.createElement(react.Link, _extends$6({}, reactRouterLinkProps, additionalProps, {
3630
3684
  onClick: onClick,
3631
3685
  display: "flex",
3632
3686
  alignItems: "center",
@@ -3635,7 +3689,7 @@ var NavigationMenuItem = function NavigationMenuItem(_ref) {
3635
3689
  px: "4px",
3636
3690
  height: "26px",
3637
3691
  width: "204px",
3638
- color: colors.label.primary,
3692
+ color: colors.text.primary,
3639
3693
  bg: isSelected ? colors.fill.light.quaternary : 'transparent',
3640
3694
  borderRadius: "4px",
3641
3695
  fontSize: "13px",
@@ -3686,7 +3740,7 @@ var NavigationMenu = function NavigationMenu(_ref) {
3686
3740
  }, menuItemGroup.groupHeader && /*#__PURE__*/React__default.createElement(NavigationMenuHeader, {
3687
3741
  label: menuItemGroup.groupHeader
3688
3742
  }), menuItemGroup.groupMenuItems.map(function (item, idx) {
3689
- return /*#__PURE__*/React__default.createElement(NavigationMenuItem, Object.assign({}, item, {
3743
+ return /*#__PURE__*/React__default.createElement(NavigationMenuItem, _extends$6({}, item, {
3690
3744
  key: idx,
3691
3745
  isSelected: _selectedMenuItem === item.label,
3692
3746
  onClick: function onClick() {
@@ -3694,7 +3748,7 @@ var NavigationMenu = function NavigationMenu(_ref) {
3694
3748
  }
3695
3749
  }));
3696
3750
  }));
3697
- }), bottomMenuItem && /*#__PURE__*/React__default.createElement(NavigationMenuItem, Object.assign({}, bottomMenuItem, {
3751
+ }), bottomMenuItem && /*#__PURE__*/React__default.createElement(NavigationMenuItem, _extends$6({}, bottomMenuItem, {
3698
3752
  key: bottomMenuItem.label,
3699
3753
  isSelected: true,
3700
3754
  onClick: function onClick() {
@@ -3728,14 +3782,14 @@ var TableLoadingRows = function TableLoadingRows(_ref) {
3728
3782
  borderTopColor: colors.fill.light.quaternary
3729
3783
  }, isLoading ? /*#__PURE__*/React__default.createElement(react.Spinner, {
3730
3784
  size: "lg",
3731
- color: colors.fill.action
3785
+ color: colors.action.solid
3732
3786
  }) : /*#__PURE__*/React__default.createElement(react.IconButton, {
3733
3787
  "aria-label": "Fetch more rows",
3734
3788
  icon: /*#__PURE__*/React__default.createElement(hi.HiOutlineRefresh, null),
3735
3789
  fontSize: typography.fontSizes['3xl'],
3736
3790
  bg: "transparent",
3737
3791
  shadow: "none",
3738
- color: colors.fill.action,
3792
+ color: colors.action.solid,
3739
3793
  type: "button",
3740
3794
  variant: "outline",
3741
3795
  onClick: onLoadMore
@@ -3815,7 +3869,7 @@ function SimpleTable(_ref) {
3815
3869
  }
3816
3870
  }, (headers || columnsWidths) && /*#__PURE__*/React__default.createElement(react.Thead, null, /*#__PURE__*/React__default.createElement(react.Tr, {
3817
3871
  _odd: {
3818
- bg: colors.label.primary.dark
3872
+ bg: colors.surface.canvas
3819
3873
  }
3820
3874
  }, columnsAsConst.map(function (column, idx) {
3821
3875
  return /*#__PURE__*/React__default.createElement(react.Th, {
@@ -3903,9 +3957,9 @@ var shadows = {
3903
3957
  lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
3904
3958
  xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
3905
3959
  '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
3906
- insetOutline: "inset 0 0 0 2px " + colors.fill.action,
3907
- outline: "0 0 0 2px " + colors.fill.action,
3908
- outlineDanger600: "0 0 0 2px " + colors.fill.error,
3960
+ insetOutline: "inset 0 0 0 2px " + colors.action.solid,
3961
+ outline: "0 0 0 2px " + colors.action.solid,
3962
+ outlineDanger600: "0 0 0 2px " + colors.action.danger,
3909
3963
  inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
3910
3964
  none: 'none',
3911
3965
  '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'
@@ -3921,28 +3975,28 @@ var baseStyle = {
3921
3975
  width: '100%',
3922
3976
  fontSize: '13px',
3923
3977
  textAlign: 'left',
3924
- color: colors.label.primary.light,
3978
+ color: colors.text.primary,
3925
3979
  lineHeight: '16px'
3926
3980
  }
3927
3981
  };
3928
3982
  function variantPositive() {
3929
3983
  return {
3930
3984
  container: {
3931
- bg: colors.fill.success
3985
+ bg: colors.status.success.fill
3932
3986
  }
3933
3987
  };
3934
3988
  }
3935
3989
  function variantWarning() {
3936
3990
  return {
3937
3991
  container: {
3938
- bg: colors.fill.warning
3992
+ bg: colors.status.warning.fill
3939
3993
  }
3940
3994
  };
3941
3995
  }
3942
3996
  function variantError() {
3943
3997
  return {
3944
3998
  container: {
3945
- bg: colors.fill.error
3999
+ bg: colors.status.danger.fill
3946
4000
  }
3947
4001
  };
3948
4002
  }
@@ -4024,8 +4078,8 @@ var baseStyle$2 = /*#__PURE__*/system.defineStyle({
4024
4078
  borderRadius: '4px',
4025
4079
  fontSize: '13px',
4026
4080
  fontWeight: 400,
4027
- bg: colors.fill.action,
4028
- color: colors.label.primary.dark,
4081
+ bg: colors.action.solid,
4082
+ color: colors.text.onAccent,
4029
4083
  h: '26px',
4030
4084
  border: 'none',
4031
4085
  px: '8px',
@@ -4039,11 +4093,11 @@ var baseStyle$2 = /*#__PURE__*/system.defineStyle({
4039
4093
  pointerEvents: 'none'
4040
4094
  },
4041
4095
  _hover: {
4042
- bg: colors.fill.action
4096
+ bg: colors.action.solid
4043
4097
  },
4044
4098
  _active: {
4045
- color: colors.label.primary.dark,
4046
- bg: colors.fill.action,
4099
+ color: colors.text.onAccent,
4100
+ bg: colors.action.solid,
4047
4101
  bgGradient: colors.fill.light.quaternary
4048
4102
  },
4049
4103
  _focus: {
@@ -4057,66 +4111,66 @@ var variantPrimary = function variantPrimary() {
4057
4111
  var variantSecondary = function variantSecondary() {
4058
4112
  return _extends$6({}, baseStyle$2, {
4059
4113
  color: colors.black,
4060
- bg: colors.label.primary.dark,
4114
+ bg: colors.surface.canvas,
4061
4115
  _hover: {
4062
- bg: colors.label.primary.dark
4116
+ bg: colors.surface.canvas
4063
4117
  },
4064
4118
  _active: {
4065
4119
  color: colors.black,
4066
- bg: colors.label.primary.dark,
4120
+ bg: colors.surface.canvas,
4067
4121
  bgGradient: colors.fill.light.quaternary
4068
4122
  },
4069
4123
  _focus: {
4070
- bg: colors.label.primary.dark
4124
+ bg: colors.surface.canvas
4071
4125
  }
4072
4126
  });
4073
4127
  };
4074
4128
  var variantTertiary = function variantTertiary() {
4075
4129
  return _extends$6({}, baseStyle$2, {
4076
- color: colors.label.primary.dark,
4077
- bg: colors.blur.quaternary.dark,
4130
+ color: colors.text.onAccent,
4131
+ bg: colors.fill.dark.subtle,
4078
4132
  _hover: {
4079
- bg: colors.blur.quaternary.dark
4133
+ bg: colors.fill.dark.subtle
4080
4134
  },
4081
4135
  _active: {
4082
- color: colors.label.primary.dark,
4083
- bg: colors.blur.tertiary.dark
4136
+ color: colors.text.onAccent,
4137
+ bg: colors.fill.dark.strong
4084
4138
  },
4085
4139
  _focus: {
4086
- color: colors.label.primary.dark,
4087
- bg: colors.blur.quaternary.dark
4140
+ color: colors.text.onAccent,
4141
+ bg: colors.fill.dark.subtle
4088
4142
  },
4089
4143
  _disabled: {
4090
- backgroundColor: colors.blur.quaternary.dark,
4091
- color: colors.blur.tertiary.dark
4144
+ backgroundColor: colors.fill.dark.subtle,
4145
+ color: 'gray.500'
4092
4146
  }
4093
4147
  });
4094
4148
  };
4095
4149
  var variantDanger = function variantDanger() {
4096
4150
  return _extends$6({}, baseStyle$2, {
4097
4151
  fontWeight: '400',
4098
- color: colors.label.primary.dark,
4099
- bg: colors.label.error,
4152
+ color: colors.text.onAccent,
4153
+ bg: colors.action.danger,
4100
4154
  _hover: {
4101
- bg: colors.label.error
4155
+ bg: colors.action.danger
4102
4156
  },
4103
4157
  _active: {
4104
- color: colors.label.primary.dark,
4105
- bg: colors.label.error
4158
+ color: colors.text.onAccent,
4159
+ bg: colors.action.danger
4106
4160
  },
4107
4161
  _focus: {
4108
- color: colors.label.primary.dark,
4109
- bg: colors.label.error
4162
+ color: colors.text.onAccent,
4163
+ bg: colors.action.danger
4110
4164
  },
4111
4165
  _disabled: {
4112
- backgroundColor: colors.label.error,
4113
- color: colors.label.secondary.light
4166
+ backgroundColor: colors.action.danger,
4167
+ color: colors.text.secondary
4114
4168
  }
4115
4169
  });
4116
4170
  };
4117
4171
  var variantPrimaryFlat = function variantPrimaryFlat() {
4118
4172
  return _extends$6({}, baseStyle$2, {
4119
- bg: colors.fill.action,
4173
+ bg: colors.action.solid,
4120
4174
  bgGradient: null,
4121
4175
  minWidth: '120px',
4122
4176
  padding: '10px 16px',
@@ -4137,61 +4191,61 @@ var variantSecondaryFlat = function variantSecondaryFlat() {
4137
4191
  return _extends$6({}, variantPrimaryFlat(), {
4138
4192
  fontWeight: '400',
4139
4193
  color: colors.black,
4140
- bg: colors.label.primary.dark,
4194
+ bg: colors.surface.canvas,
4141
4195
  _hover: {
4142
- bg: colors.label.primary.dark
4196
+ bg: colors.surface.canvas
4143
4197
  },
4144
4198
  _active: {
4145
4199
  color: colors.black,
4146
- bg: colors.label.primary.dark,
4200
+ bg: colors.surface.canvas,
4147
4201
  bgGradient: colors.fill.light.quaternary
4148
4202
  },
4149
4203
  _focus: {
4150
- bg: colors.label.primary.dark
4204
+ bg: colors.surface.canvas
4151
4205
  }
4152
4206
  });
4153
4207
  };
4154
4208
  var variantTertiaryFlat = function variantTertiaryFlat() {
4155
4209
  return _extends$6({}, variantPrimaryFlat(), {
4156
4210
  fontWeight: '400',
4157
- color: colors.label.primary.dark,
4158
- bg: colors.blur.quaternary.dark,
4211
+ color: colors.text.onAccent,
4212
+ bg: colors.fill.dark.subtle,
4159
4213
  _hover: {
4160
- bg: colors.blur.quaternary.dark
4214
+ bg: colors.fill.dark.subtle
4161
4215
  },
4162
4216
  _active: {
4163
- color: colors.label.primary.dark,
4164
- bg: colors.blur.tertiary.dark
4217
+ color: colors.text.onAccent,
4218
+ bg: colors.fill.dark.strong
4165
4219
  },
4166
4220
  _focus: {
4167
- color: colors.label.primary.dark,
4168
- bg: colors.blur.quaternary.dark
4221
+ color: colors.text.onAccent,
4222
+ bg: colors.fill.dark.subtle
4169
4223
  },
4170
4224
  _disabled: {
4171
- backgroundColor: colors.blur.quaternary.dark,
4172
- color: colors.blur.tertiary.dark
4225
+ backgroundColor: colors.fill.dark.subtle,
4226
+ color: 'gray.500'
4173
4227
  }
4174
4228
  });
4175
4229
  };
4176
4230
  var variantDangerFlat = function variantDangerFlat() {
4177
4231
  return _extends$6({}, variantPrimaryFlat(), {
4178
4232
  fontWeight: '400',
4179
- color: colors.label.primary.dark,
4180
- bg: colors.label.error,
4233
+ color: colors.text.onAccent,
4234
+ bg: colors.action.danger,
4181
4235
  _hover: {
4182
- bg: colors.label.error
4236
+ bg: colors.action.danger
4183
4237
  },
4184
4238
  _active: {
4185
- color: colors.label.primary.dark,
4186
- bg: colors.label.error
4239
+ color: colors.text.onAccent,
4240
+ bg: colors.action.danger
4187
4241
  },
4188
4242
  _focus: {
4189
- color: colors.label.primary.dark,
4190
- bg: colors.label.error
4243
+ color: colors.text.onAccent,
4244
+ bg: colors.action.danger
4191
4245
  },
4192
4246
  _disabled: {
4193
- backgroundColor: colors.label.error,
4194
- color: colors.label.secondary.light
4247
+ backgroundColor: colors.action.danger,
4248
+ color: colors.text.secondary
4195
4249
  }
4196
4250
  });
4197
4251
  };
@@ -4254,14 +4308,14 @@ var parts$1 = ['requiredIndicator', 'helperText'];
4254
4308
  function baseStyleRequiredIndicator() {
4255
4309
  return {
4256
4310
  ml: 1,
4257
- color: colors.label.error
4311
+ color: colors.text.danger
4258
4312
  };
4259
4313
  }
4260
4314
  function baseStyleHelperText() {
4261
4315
  return {
4262
4316
  // mt: 1,
4263
4317
  ml: 1,
4264
- color: colors.label.secondary.light,
4318
+ color: colors.text.secondary,
4265
4319
  fontSize: '11px'
4266
4320
  };
4267
4321
  }
@@ -4279,10 +4333,8 @@ var Form$1 = {
4279
4333
  var parts$2 = ['text', 'icon'];
4280
4334
  function baseStyleText() {
4281
4335
  return {
4282
- color: colors.label.error,
4283
- position: 'absolute',
4284
- bottom: 0,
4285
- // mt: 1,
4336
+ color: colors.text.danger,
4337
+ mt: 1,
4286
4338
  ml: 1,
4287
4339
  fontSize: '11px'
4288
4340
  };
@@ -4290,7 +4342,7 @@ function baseStyleText() {
4290
4342
  function baseStyleIcon() {
4291
4343
  return {
4292
4344
  ml: 1,
4293
- color: colors.label.error
4345
+ color: colors.text.danger
4294
4346
  };
4295
4347
  }
4296
4348
  var baseStyle$5 = function baseStyle() {
@@ -4312,7 +4364,7 @@ var baseStyle$6 = {
4312
4364
  display: 'flex',
4313
4365
  ml: 1,
4314
4366
  // mb: 1,
4315
- color: colors.label.primary.light,
4367
+ color: colors.text.primary,
4316
4368
  opacity: 1
4317
4369
  };
4318
4370
  var FormLabel = {
@@ -4325,7 +4377,7 @@ var baseStyle$7 = {
4325
4377
  fontSize: '13px',
4326
4378
  h: '26px',
4327
4379
  '::placeholder': {
4328
- color: colors.label.secondary.light
4380
+ color: colors.text.secondary
4329
4381
  },
4330
4382
  py: '5px',
4331
4383
  px: '8px',
@@ -4335,7 +4387,7 @@ var baseStyle$7 = {
4335
4387
  opacity: 1,
4336
4388
  cursor: 'not-allowed',
4337
4389
  bg: colors.fill.light.quaternary,
4338
- color: colors.label.secondary.light,
4390
+ color: colors.text.secondary,
4339
4391
  border: '1px solid',
4340
4392
  borderColor: '#9999991A'
4341
4393
  },
@@ -4345,7 +4397,7 @@ var baseStyle$7 = {
4345
4397
  borderColor: colors.border.focus
4346
4398
  },
4347
4399
  _placeholder: {
4348
- color: colors.label.secondary.light
4400
+ color: colors.text.secondary
4349
4401
  }
4350
4402
  }
4351
4403
  };
@@ -4381,7 +4433,7 @@ var Input$1 = {
4381
4433
  };
4382
4434
 
4383
4435
  var baseStyle$8 = {
4384
- color: colors.fill.action,
4436
+ color: colors.action.solid,
4385
4437
  textDecoration: 'underline',
4386
4438
  transition: 'none',
4387
4439
  _hover: {
@@ -4392,7 +4444,6 @@ function variantSidebar() {
4392
4444
  return {
4393
4445
  display: 'flex',
4394
4446
  alignItems: 'center',
4395
- // height: '56px',
4396
4447
  pl: 4,
4397
4448
  pr: 4,
4398
4449
  py: 2,
@@ -4418,20 +4469,13 @@ function variantSidebar() {
4418
4469
  // and not only for a child sub route match. I did it as a separate variant instead of a
4419
4470
  // prop to get around React complaining that the dom element was not recognized.
4420
4471
  function variantSidebarExact() {
4421
- // props: Dict
4422
4472
  var base = variantSidebar();
4423
- // const { theme } = props;
4424
- // const primaryColor = getColor(theme, 'primary.500');
4425
4473
  return _extends$6({}, base, {
4426
- '&.active': {
4427
- // ...base['&.active'],
4428
- // boxShadow: `inset 3px 0 0 0 ${primaryColor}`,
4429
- }
4474
+ '&.active': {}
4430
4475
  });
4431
4476
  }
4432
- function variantSubNavigation(props) {
4433
- var theme = props.theme;
4434
- var primaryColor = themeTools.getColor(theme, 'primary.500');
4477
+ function variantSubNavigation(_props) {
4478
+ var primaryColor = colors.action.solid;
4435
4479
  return {
4436
4480
  display: 'block',
4437
4481
  pl: 10,
@@ -4515,7 +4559,7 @@ function baseStyleItem(props) {
4515
4559
  transition: 'background 50ms ease-in 0s',
4516
4560
  _hover: {
4517
4561
  color: colors.white,
4518
- background: colors.fill.action
4562
+ background: colors.action.solid
4519
4563
  },
4520
4564
  _active: {
4521
4565
  bg: themeTools.mode("gray.200", "whiteAlpha.200")(props)
@@ -4553,30 +4597,34 @@ var Menu$1 = {
4553
4597
 
4554
4598
  var parts$5 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
4555
4599
  var baseStyle$a = {
4556
- width: 'fit-content',
4557
- height: 'fit-content',
4558
- background: '#F6F6F6',
4559
- backdropFilter: 'blur(25px)',
4600
+ overlay: {
4601
+ backdropFilter: 'blur(25px)'
4602
+ },
4603
+ dialog: {
4604
+ width: 'fit-content',
4605
+ height: 'fit-content',
4606
+ background: colors.coolGray
4607
+ },
4560
4608
  header: {
4561
- pt: '32px',
4562
- px: '32px',
4563
- pb: '16px',
4609
+ pt: 8,
4610
+ px: 8,
4611
+ pb: 4,
4564
4612
  fontSize: '18px',
4565
4613
  fontWeight: 600,
4566
4614
  lineHeight: '26px'
4567
4615
  },
4568
4616
  body: {
4569
4617
  pt: 0,
4570
- pb: '32px',
4571
- px: '32px',
4618
+ pb: 8,
4619
+ px: 8,
4572
4620
  fontSize: '13px',
4573
4621
  fontWeight: 400,
4574
4622
  lineHeight: '16px',
4575
4623
  whiteSpace: 'pre-line'
4576
4624
  },
4577
4625
  footer: {
4578
- py: '16px',
4579
- px: '32px',
4626
+ py: 4,
4627
+ px: 8,
4580
4628
  display: 'flex',
4581
4629
  justifyContent: 'flex-end',
4582
4630
  width: '100%'
@@ -4720,10 +4768,10 @@ var Switch = {
4720
4768
  var parts$8 = ['th', 'td', 'tr', 'body', 'thead'];
4721
4769
  var baseStyle$d = {
4722
4770
  thead: {
4723
- bg: colors.label.primary.dark
4771
+ bg: colors.surface.canvas
4724
4772
  },
4725
4773
  th: {
4726
- bg: colors.label.primary.dark,
4774
+ bg: colors.surface.canvas,
4727
4775
  padding: '5px 8px !important',
4728
4776
  fontSize: '13px'
4729
4777
  },
@@ -4804,7 +4852,7 @@ var baseStyle$e = function baseStyle(props) {
4804
4852
  var sizes$1 = {
4805
4853
  sm: {
4806
4854
  tab: {
4807
- py: '0.25rem',
4855
+ py: 1,
4808
4856
  px: 6,
4809
4857
  fontSize: '0.85rem'
4810
4858
  }
@@ -4812,7 +4860,7 @@ var sizes$1 = {
4812
4860
  md: {
4813
4861
  tab: {
4814
4862
  fontSize: '1rem',
4815
- py: '0.75rem',
4863
+ py: 3,
4816
4864
  px: 6
4817
4865
  }
4818
4866
  },
@@ -4822,7 +4870,7 @@ var sizes$1 = {
4822
4870
  base: '1rem',
4823
4871
  sm: '1.15rem'
4824
4872
  },
4825
- py: '0.75rem',
4873
+ py: 3,
4826
4874
  px: 6
4827
4875
  }
4828
4876
  }
@@ -4941,12 +4989,12 @@ var variantSimple = {
4941
4989
  position: 'relative',
4942
4990
  borderColor: 'transparent',
4943
4991
  '&.active': {
4944
- color: colors.fill.action,
4992
+ color: colors.action.solid,
4945
4993
  bg: 'transparent',
4946
- borderBottom: "1px solid " + colors.fill.action
4994
+ borderBottom: "1px solid " + colors.action.solid
4947
4995
  },
4948
4996
  _selected: {
4949
- color: colors.fill.action,
4997
+ color: colors.action.solid,
4950
4998
  bg: 'transparent',
4951
4999
  _after: {
4952
5000
  content: '""',
@@ -5125,9 +5173,6 @@ var styles = {
5125
5173
  },
5126
5174
  '*, *::before, *::after': {
5127
5175
  borderColor: 'gray.200'
5128
- },
5129
- '*::placeholder': {
5130
- color: 'primary'
5131
5176
  }
5132
5177
  }
5133
5178
  };
@@ -5211,7 +5256,7 @@ var ToolbarBreadcrumbItem = function ToolbarBreadcrumbItem(_ref) {
5211
5256
  return pageLabel;
5212
5257
  }, [breakpoint1512, breakpoint400, breakpoint600, breakpoint800, page, pageLabel]);
5213
5258
  return /*#__PURE__*/React__default.createElement(react.Box, {
5214
- color: page === 'current' ? colors.label.primary.light : colors.label.secondary.light,
5259
+ color: page === 'current' ? colors.text.primary : colors.text.secondary,
5215
5260
  fontSize: "13px",
5216
5261
  letterSpacing: "0.02em",
5217
5262
  onClick: onClick,
@@ -5446,12 +5491,12 @@ var Toast = function Toast(_ref) {
5446
5491
  }, Icon), /*#__PURE__*/React__default.createElement(react.Text, {
5447
5492
  pr: "16px",
5448
5493
  fontSize: "13px",
5449
- color: colors.label.primary.dark
5494
+ color: colors.text.onAccent
5450
5495
  }, message), onClick && buttonText && /*#__PURE__*/React__default.createElement(react.Flex, {
5451
5496
  ml: "auto",
5452
5497
  justifyContent: "flex-end"
5453
5498
  }, /*#__PURE__*/React__default.createElement(react.Button, {
5454
- color: colors.fill.action,
5499
+ color: colors.action.solid,
5455
5500
  style: {
5456
5501
  background: 'transparent',
5457
5502
  border: 'transparent',
@@ -5472,7 +5517,7 @@ var useToast = function useToast() {
5472
5517
  return toast({
5473
5518
  position: props.position,
5474
5519
  render: function render() {
5475
- return /*#__PURE__*/React__default.createElement(Toast, Object.assign({}, props));
5520
+ return /*#__PURE__*/React__default.createElement(Toast, _extends$6({}, props));
5476
5521
  }
5477
5522
  });
5478
5523
  }, [toast]);
@@ -5562,5 +5607,6 @@ exports.Workspace = Workspace;
5562
5607
  exports.XQThemeProvider = XQThemeProvider;
5563
5608
  exports.colors = colors;
5564
5609
  exports.formatErrorResponse = formatErrorResponse;
5610
+ exports.tokens = tokens;
5565
5611
  exports.useToast = useToast;
5566
5612
  //# sourceMappingURL=ui-core.cjs.development.js.map