@xqmsg/ui-core 0.27.0 → 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 (90) 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/banner/index.d.ts +1 -0
  7. package/dist/components/breadcrumbs/Breadcrumbs.stories.d.ts +2 -2
  8. package/dist/components/button/Button.stories.d.ts +2 -2
  9. package/dist/components/button/google/GoogleButton.stories.d.ts +2 -2
  10. package/dist/components/button/index.d.ts +4 -5
  11. package/dist/components/button/microsoft/MicrosoftButton.stories.d.ts +2 -2
  12. package/dist/components/button/spinner/SpinnerButton.stories.d.ts +2 -2
  13. package/dist/components/card/Card.stories.d.ts +2 -2
  14. package/dist/components/card/index.d.ts +1 -0
  15. package/dist/components/form/Form.stories.d.ts +2 -2
  16. package/dist/components/form/section/FormSection.stories.d.ts +2 -2
  17. package/dist/components/input/Input.stories.d.ts +2 -2
  18. package/dist/components/input/InputTypes.d.ts +3 -1
  19. package/dist/components/input/components/token/Token.stories.d.ts +2 -2
  20. package/dist/components/layout/Layout.stories.d.ts +2 -2
  21. package/dist/components/link/Link.stories.d.ts +2 -2
  22. package/dist/components/loading/LoadingIndicator.stories.d.ts +2 -2
  23. package/dist/components/modal/Modal.stories.d.ts +2 -2
  24. package/dist/components/navigation/NavigationMenu.stories.d.ts +2 -2
  25. package/dist/components/tabs/TabsWrapper.stories.d.ts +2 -2
  26. package/dist/components/text/Text.stories.d.ts +2 -2
  27. package/dist/components/toast/Toast.stories.d.ts +2 -2
  28. package/dist/components/toolbar/Toolbar.stories.d.ts +2 -2
  29. package/dist/hooks/useToast.d.ts +1 -2
  30. package/dist/theme/components/checkbox.d.ts +1 -1
  31. package/dist/theme/components/code.d.ts +9 -3
  32. package/dist/theme/components/form-error.d.ts +1 -2
  33. package/dist/theme/components/link.d.ts +1 -1
  34. package/dist/theme/components/menu.d.ts +2 -1
  35. package/dist/theme/components/modal.d.ts +15 -11
  36. package/dist/theme/components/switch.d.ts +2 -1
  37. package/dist/theme/components/tabs.d.ts +4 -4
  38. package/dist/theme/foundations/colors.d.ts +225 -22
  39. package/dist/theme/foundations/typography.d.ts +10 -9
  40. package/dist/theme/styles.d.ts +0 -3
  41. package/dist/ui-core.cjs.development.js +296 -243
  42. package/dist/ui-core.cjs.development.js.map +1 -1
  43. package/dist/ui-core.cjs.production.min.js +1 -1
  44. package/dist/ui-core.cjs.production.min.js.map +1 -1
  45. package/dist/ui-core.esm.js +296 -244
  46. package/dist/ui-core.esm.js.map +1 -1
  47. package/package.json +4 -9
  48. package/src/components/SimpleTable/SimpleTable.tsx +1 -1
  49. package/src/components/SimpleTable/TableTypes.ts +1 -1
  50. package/src/components/SimpleTable/components/loading/index.tsx +2 -2
  51. package/src/components/SimpleTable/components/text/index.tsx +2 -2
  52. package/src/components/banner/index.tsx +18 -5
  53. package/src/components/breadcrumbs/components/icon/index.tsx +3 -3
  54. package/src/components/breadcrumbs/components/label/index.tsx +1 -1
  55. package/src/components/button/index.tsx +6 -6
  56. package/src/components/card/index.tsx +12 -10
  57. package/src/components/icons/chevron/down/index.tsx +1 -1
  58. package/src/components/icons/settings/index.tsx +1 -1
  59. package/src/components/input/InputTypes.ts +4 -1
  60. package/src/components/input/StackedMultiSelect/index.tsx +10 -3
  61. package/src/components/input/StackedNumberInput/StackedNumberInput.tsx +2 -2
  62. package/src/components/input/StackedPilledInput/index.tsx +11 -3
  63. package/src/components/input/StackedSelect/index.tsx +1 -5
  64. package/src/components/input/components/dropdown/index.tsx +8 -8
  65. package/src/components/input/components/label/index.tsx +2 -2
  66. package/src/components/input/components/token/index.tsx +1 -1
  67. package/src/components/input/index.tsx +1 -2
  68. package/src/components/link/index.tsx +1 -1
  69. package/src/components/loading/index.tsx +1 -1
  70. package/src/components/navigation/components/header/index.tsx +1 -1
  71. package/src/components/navigation/components/items/index.tsx +1 -1
  72. package/src/components/select/index.tsx +0 -19
  73. package/src/components/toast/index.tsx +2 -2
  74. package/src/components/toolbar/components/breadcrumbs/item/index.tsx +2 -2
  75. package/src/components/toolbar/components/dropdown/index.tsx +2 -2
  76. package/src/theme/components/alert.ts +4 -4
  77. package/src/theme/components/button.ts +50 -50
  78. package/src/theme/components/form-error.ts +3 -5
  79. package/src/theme/components/form-label.ts +1 -1
  80. package/src/theme/components/form.ts +2 -2
  81. package/src/theme/components/input.ts +3 -3
  82. package/src/theme/components/link.ts +4 -13
  83. package/src/theme/components/menu.ts +1 -1
  84. package/src/theme/components/modal.ts +17 -11
  85. package/src/theme/components/table.ts +2 -2
  86. package/src/theme/components/tabs.ts +6 -6
  87. package/src/theme/foundations/colors.ts +89 -37
  88. package/src/theme/foundations/shadows.ts +3 -3
  89. package/src/theme/foundations/typography.ts +3 -2
  90. 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;
@@ -202,7 +200,9 @@ var Banner = function Banner(_ref) {
202
200
  buttonText = _ref.buttonText,
203
201
  onClick = _ref.onClick,
204
202
  _ref$type = _ref.type,
205
- type = _ref$type === void 0 ? 'expanded' : _ref$type;
203
+ type = _ref$type === void 0 ? 'expanded' : _ref$type,
204
+ _ref$centered = _ref.centered,
205
+ centered = _ref$centered === void 0 ? false : _ref$centered;
206
206
  var Icon = React.useMemo(function () {
207
207
  switch (variant) {
208
208
  case 'error':
@@ -227,16 +227,20 @@ var Banner = function Banner(_ref) {
227
227
  }, [variant]);
228
228
  return /*#__PURE__*/React__default.createElement(react.Alert, {
229
229
  variant: variant,
230
- borderRadius: "4px"
230
+ borderRadius: "4px",
231
+ justifyContent: centered ? 'center' : undefined
231
232
  }, /*#__PURE__*/React__default.createElement(react.AlertDescription, null, /*#__PURE__*/React__default.createElement(react.Flex, {
232
- flexDirection: type === 'condensed' ? 'row' : 'column',
233
- alignItems: type === 'condensed' ? 'center' : '',
233
+ flexDirection: centered || type === 'condensed' ? 'row' : 'column',
234
+ alignItems: centered || type === 'condensed' ? 'center' : '',
235
+ justifyContent: centered ? 'center' : undefined,
234
236
  minHeight: "26px"
235
237
  }, /*#__PURE__*/React__default.createElement(react.Box, {
236
- pr: "8px"
238
+ pr: "8px",
239
+ pt: !centered && type !== 'condensed' ? '8px' : 0
237
240
  }, Icon), /*#__PURE__*/React__default.createElement(react.Box, {
238
- flexGrow: "1",
239
- pt: type === 'condensed' ? 0 : '8px'
241
+ flexGrow: centered ? undefined : '1',
242
+ pt: !centered && type !== 'condensed' ? '8px' : 0,
243
+ textAlign: centered ? 'center' : 'left'
240
244
  }, message), onClick && buttonText && /*#__PURE__*/React__default.createElement(react.Flex, {
241
245
  ml: type === 'condensed' ? 'auto' : '',
242
246
  pt: type === 'condensed' ? 0 : '8px',
@@ -298,34 +302,40 @@ var green = {
298
302
  800: 'hsl(141, 42%, 24%)',
299
303
  900: 'hsl(138, 42%, 6%)'
300
304
  };
301
- var label = {
302
- primary: {
303
- light: '#000000',
304
- dark: '#FFFFFF'
305
- },
306
- secondary: {
307
- 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'
308
326
  },
309
- tertiary: {
310
- light: '',
311
- dark: '#EBEBF52E'
327
+ warning: {
328
+ fill: '#ffefb4'
312
329
  },
313
- error: '#FF0000'
330
+ danger: {
331
+ fill: '#ffbdb9'
332
+ }
314
333
  };
315
334
  var border = {
316
335
  focus: '#3A6CD980',
317
336
  "default": '#D9D9D9',
318
- light: '#99999919A'
319
- };
320
- var blur = {
321
- quaternary: {
322
- light: '',
323
- dark: '#2A2A2A73'
324
- },
325
- tertiary: {
326
- light: '',
327
- dark: '#111111A6'
328
- }
337
+ /** @deprecated typo was '#99999919A' — kept for compat, use inline '#9999991A' */
338
+ light: '#9999991A'
329
339
  };
330
340
  var fill = {
331
341
  light: {
@@ -334,11 +344,50 @@ var fill = {
334
344
  tertiary: '#7474801F',
335
345
  quaternary: '#7474800D'
336
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 */
337
357
  success: '#d8f1b8',
358
+ /** @deprecated use colors.status.danger.fill */
338
359
  error: '#ffbdb9',
339
- warning: '#ffefb4',
340
- action: '#0082ff'
360
+ /** @deprecated use colors.status.warning.fill */
361
+ warning: '#ffefb4'
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
+ }
341
389
  };
390
+ /** @deprecated colors.semantic.* was a parallel action palette — use colors.action / colors.status instead */
342
391
  var semantic = {
343
392
  action: '#488ef7',
344
393
  success: '#5fcf65',
@@ -346,18 +395,28 @@ var semantic = {
346
395
  error: '#f96057'
347
396
  };
348
397
  var colors = {
349
- label: label,
350
- blur: blur,
398
+ // canonical
399
+ text: text,
400
+ surface: surface,
401
+ action: action,
402
+ status: status,
351
403
  border: border,
352
404
  fill: fill,
405
+ // deprecated compat
406
+ label: label,
407
+ blur: blur,
353
408
  semantic: semantic,
409
+ // misc
354
410
  transparent: 'transparent',
355
411
  current: 'currentColor',
356
412
  black: '#000000',
357
413
  white: '#FFFFFF',
414
+ /** @deprecated */
358
415
  lightBlue: '#29abe2',
359
416
  coolGray: '#F6F7FB',
417
+ /** @deprecated */
360
418
  darkBlue: '#292f4c',
419
+ /** @deprecated */
361
420
  backdrop: '#fbfcff',
362
421
  whiteAlpha: {
363
422
  50: 'rgba(255, 255, 255, 0.04)',
@@ -400,6 +459,8 @@ var colors = {
400
459
  green: green,
401
460
  blue: blue
402
461
  };
462
+ /** Canonical alias — prefer this over `colors` for new code */
463
+ var tokens = colors;
403
464
 
404
465
  /**
405
466
  * A functional React component utilized to render the `Icon` for the `Breadcrumbs` component.
@@ -412,17 +473,17 @@ var Icon = function Icon(_ref) {
412
473
  case 'active':
413
474
  return {
414
475
  bg: '#0082FF',
415
- color: colors.label.primary.dark
476
+ color: colors.text.onAccent
416
477
  };
417
478
  case 'complete':
418
479
  return {
419
480
  bg: '#7474800D',
420
- color: colors.label.primary.light
481
+ color: colors.text.primary
421
482
  };
422
483
  case 'inactive':
423
484
  return {
424
485
  bg: '#7474800D',
425
- color: colors.label.primary.light
486
+ color: colors.text.primary
426
487
  };
427
488
  }
428
489
  }, [status]);
@@ -446,7 +507,7 @@ var Label = function Label(_ref) {
446
507
  return /*#__PURE__*/React__default.createElement(react.Box, {
447
508
  pl: "8px"
448
509
  }, /*#__PURE__*/React__default.createElement(react.Text, {
449
- color: colors.label.primary.light,
510
+ color: colors.text.primary,
450
511
  fontSize: "13px"
451
512
  }, label));
452
513
  };
@@ -522,7 +583,8 @@ var typography = {
522
583
  black: 900
523
584
  },
524
585
  fonts: {
525
- 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\"",
526
588
  mono: "SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace"
527
589
  },
528
590
  fontSizes: {
@@ -547,18 +609,20 @@ var Card = function Card(_ref) {
547
609
  leftIcon = _ref.leftIcon,
548
610
  children = _ref.children,
549
611
  _ref$height = _ref.height,
550
- 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;
551
615
  return /*#__PURE__*/React__default.createElement(react.Box, {
552
616
  bg: colors.fill.light.quaternary,
553
617
  borderRadius: "4px",
554
618
  border: ".5px solid " + colors.border["default"],
555
- py: "8px",
556
- px: "8px",
619
+ py: 2,
620
+ px: 2,
557
621
  height: height,
558
622
  overflowY: "auto",
559
- width: "206px",
623
+ width: width,
560
624
  _notLast: {
561
- marginBottom: '8px'
625
+ marginBottom: 2
562
626
  }
563
627
  }, title && /*#__PURE__*/React__default.createElement(react.Flex, {
564
628
  display: "flex",
@@ -568,13 +632,13 @@ var Card = function Card(_ref) {
568
632
  _hover: {
569
633
  textDecoration: 'none'
570
634
  },
571
- mb: "8px"
635
+ mb: 2
572
636
  }, /*#__PURE__*/React__default.createElement(react.Flex, {
573
637
  alignItems: "center"
574
638
  }, /*#__PURE__*/React__default.createElement(react.Box, {
575
- mr: "4px"
639
+ mr: 1
576
640
  }, leftIcon), /*#__PURE__*/React__default.createElement(react.Text, {
577
- color: colors.label.primary.light,
641
+ color: colors.text.primary,
578
642
  fontSize: typography.fontSizes.sm,
579
643
  fontWeight: typography.fontWeights.medium
580
644
  }, title))), React.Children.map(children, function (child) {
@@ -585,15 +649,15 @@ var Card = function Card(_ref) {
585
649
  return /*#__PURE__*/React__default.createElement(react.Text, {
586
650
  as: "div",
587
651
  _notLast: {
588
- marginBottom: '8px'
652
+ marginBottom: 2
589
653
  },
590
- color: colors.label.primary.light,
654
+ color: colors.text.primary,
591
655
  fontSize: typography.fontSizes.xs,
592
656
  fontWeight: typography.fontWeights.normal
593
657
  }, child);
594
658
  } else {
595
659
  return /*#__PURE__*/React__default.createElement(react.Box, {
596
- mt: "8px"
660
+ mt: 2
597
661
  }, child);
598
662
  }
599
663
  }));
@@ -746,6 +810,33 @@ var SpinnerButton = function SpinnerButton(_ref) {
746
810
  }, text);
747
811
  };
748
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
+
749
840
  /**
750
841
  * A functional React component utilized to render the `Form` component, a form wrapper for
751
842
  * `react-hook-form`. The `Form` component is provided a `formHandler` and is used to wrap a container
@@ -756,7 +847,7 @@ function Form(_ref) {
756
847
  children = _ref.children;
757
848
  var form = formHandler.form,
758
849
  onSubmit = formHandler.onSubmit;
759
- 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", {
760
851
  onSubmit: onSubmit
761
852
  }, children));
762
853
  }
@@ -787,33 +878,6 @@ var StackedCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
787
878
  }, label));
788
879
  });
789
880
 
790
- function _extends$6() {
791
- _extends$6 = Object.assign ? Object.assign.bind() : function (target) {
792
- for (var i = 1; i < arguments.length; i++) {
793
- var source = arguments[i];
794
- for (var key in source) {
795
- if (Object.prototype.hasOwnProperty.call(source, key)) {
796
- target[key] = source[key];
797
- }
798
- }
799
- }
800
- return target;
801
- };
802
- return _extends$6.apply(this, arguments);
803
- }
804
- function _objectWithoutPropertiesLoose(source, excluded) {
805
- if (source == null) return {};
806
- var target = {};
807
- var sourceKeys = Object.keys(source);
808
- var key, i;
809
- for (i = 0; i < sourceKeys.length; i++) {
810
- key = sourceKeys[i];
811
- if (excluded.indexOf(key) >= 0) continue;
812
- target[key] = source[key];
813
- }
814
- return target;
815
- }
816
-
817
881
  var _excluded = ["type", "isRequired", "rightElement", "leftElement", "defaultValue", "variant", "label"];
818
882
  /**
819
883
  * A functional React component utilized to render the `StackedInput` component.
@@ -831,7 +895,7 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
831
895
  props = _objectWithoutPropertiesLoose(_ref2, _excluded);
832
896
  var isMobile = variant === 'mobile';
833
897
  var placeholder = isMobile && label ? label : undefined;
834
- 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, {
835
899
  placeholder: (_props$placeholder = props.placeholder) != null ? _props$placeholder : placeholder,
836
900
  type: type,
837
901
  isRequired: isRequired,
@@ -885,7 +949,7 @@ var Dropdown = function Dropdown(_ref) {
885
949
  px: "8px",
886
950
  py: "4px",
887
951
  width: "100%",
888
- color: colors.label.primary.light,
952
+ color: colors.text.primary,
889
953
  bg: "inherit",
890
954
  whiteSpace: "nowrap"
891
955
  }, /*#__PURE__*/React__default.createElement(react.Flex, {
@@ -903,7 +967,7 @@ var Dropdown = function Dropdown(_ref) {
903
967
  px: "8px",
904
968
  py: "4px",
905
969
  width: "100%",
906
- color: colors.label.primary.light,
970
+ color: colors.text.primary,
907
971
  bg: "inherit",
908
972
  whiteSpace: "nowrap"
909
973
  }, "No options");
@@ -914,7 +978,7 @@ var Dropdown = function Dropdown(_ref) {
914
978
  width: "100%",
915
979
  role: "combobox"
916
980
  }, option.value === 'section_header' && options[idx + 1] && options[idx + 1].value !== 'section_header' && /*#__PURE__*/React__default.createElement(react.Box, {
917
- color: colors.label.secondary.light,
981
+ color: colors.text.secondary,
918
982
  fontSize: "13px",
919
983
  width: "100%",
920
984
  fontWeight: "bold",
@@ -937,14 +1001,14 @@ var Dropdown = function Dropdown(_ref) {
937
1001
  px: "8px",
938
1002
  py: "4px",
939
1003
  width: "100%",
940
- color: optionIndex === idx ? colors.label.primary.dark : colors.label.primary.light,
1004
+ color: optionIndex === idx ? colors.text.onAccent : colors.text.primary,
941
1005
  _hover: {
942
- color: colors.label.primary.dark,
943
- bg: colors.fill.action,
1006
+ color: colors.text.onAccent,
1007
+ bg: colors.action.solid,
944
1008
  borderRadius: '4px',
945
1009
  width: '100%'
946
1010
  },
947
- bg: optionIndex === idx ? colors.fill.action : 'inherit',
1011
+ bg: optionIndex === idx ? colors.action.solid : 'inherit',
948
1012
  whiteSpace: "nowrap",
949
1013
  id: option.value
950
1014
  }, option.label));
@@ -1188,7 +1252,7 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
1188
1252
  return /*#__PURE__*/React__default.createElement(react.Box, {
1189
1253
  ref: dropdownRef,
1190
1254
  position: "relative"
1191
- }, /*#__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({
1192
1256
  isRequired: isRequired
1193
1257
  }, props, {
1194
1258
  ref: _ref,
@@ -1230,7 +1294,7 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
1230
1294
  props = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
1231
1295
  var isMobile = variant === 'mobile';
1232
1296
  if (isMobile) {
1233
- 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({
1234
1298
  ref: _ref
1235
1299
  }, props, {
1236
1300
  variant: variant,
@@ -1238,7 +1302,7 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
1238
1302
  placeholder: label != null ? label : ''
1239
1303
  })));
1240
1304
  }
1241
- return /*#__PURE__*/React__default.createElement(react.Textarea, Object.assign({
1305
+ return /*#__PURE__*/React__default.createElement(react.Textarea, _extends$6({
1242
1306
  ref: _ref
1243
1307
  }, props, {
1244
1308
  variant: variant,
@@ -1318,7 +1382,7 @@ var Token = function Token(_ref) {
1318
1382
  }, /*#__PURE__*/React__default.createElement(react.Text, {
1319
1383
  whiteSpace: "nowrap",
1320
1384
  wordBreak: "break-word",
1321
- color: colors.label.primary.light,
1385
+ color: colors.text.primary,
1322
1386
  fontSize: isMobile ? '17px' : '13px',
1323
1387
  lineHeight: "1.5",
1324
1388
  pr: "2px",
@@ -1363,6 +1427,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1363
1427
  var dropdownMenuRef = React.useRef(null);
1364
1428
  var scrollRef = React.useRef(null);
1365
1429
  var inputRef = React.useRef(null);
1430
+ var searchRef = React.useRef(null);
1366
1431
  var _useState = React.useState(false),
1367
1432
  isInit = _useState[0],
1368
1433
  setIsInit = _useState[1];
@@ -1471,7 +1536,8 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1471
1536
  });
1472
1537
  setLocalOptions(function (prevLocalOptions) {
1473
1538
  return [].concat(prevLocalOptions, [option]).sort(function (a, b) {
1474
- return a.sortValue - b.sortValue;
1539
+ var _a$sortValue, _b$sortValue;
1540
+ return ((_a$sortValue = a.sortValue) != null ? _a$sortValue : 0) - ((_b$sortValue = b.sortValue) != null ? _b$sortValue : 0);
1475
1541
  });
1476
1542
  });
1477
1543
  setLocalValues(function (prevLocalValues) {
@@ -1538,6 +1604,10 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1538
1604
  return element.label.toLowerCase().includes(searchValue.toLowerCase());
1539
1605
  }));
1540
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]);
1541
1611
  var handleInput = function handleInput(e) {
1542
1612
  var _filteredOptions$;
1543
1613
  var initialOptionIndex = ((_filteredOptions$ = filteredOptions[0]) == null ? void 0 : _filteredOptions$.value) === 'section_header' ? 1 : 0;
@@ -1600,7 +1670,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1600
1670
  }
1601
1671
  }));
1602
1672
  }) : /*#__PURE__*/React__default.createElement(react.Text, {
1603
- color: colors.label.secondary.light,
1673
+ color: colors.text.secondary,
1604
1674
  fontSize: "13px"
1605
1675
  }, placeholder)), /*#__PURE__*/React__default.createElement(react.Input, {
1606
1676
  padding: 0,
@@ -1631,7 +1701,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1631
1701
  optionIndex: optionIndex,
1632
1702
  loading: loadingOptions
1633
1703
  }, /*#__PURE__*/React__default.createElement(react.Input, {
1634
- autoFocus: true,
1704
+ ref: searchRef,
1635
1705
  value: searchValue,
1636
1706
  onChange: handleInput,
1637
1707
  disabled: loadingOptions
@@ -1682,11 +1752,11 @@ var StackedNumberInput = /*#__PURE__*/React__default.forwardRef(function (_ref,
1682
1752
  max: max,
1683
1753
  step: step,
1684
1754
  precision: precision,
1685
- onChange: function onChange(_, valueAsNumber) {
1755
+ onChange: function onChange(valueAsString, valueAsNumber) {
1686
1756
  return _onChange == null ? void 0 : _onChange({
1687
1757
  target: {
1688
1758
  name: name,
1689
- value: Number.isNaN(valueAsNumber) ? '' : precision === 0 ? String(Math.round(valueAsNumber)) : String(valueAsNumber)
1759
+ value: Number.isNaN(valueAsNumber) ? '' : precision === 0 ? String(Math.round(valueAsNumber)) : valueAsString
1690
1760
  }
1691
1761
  });
1692
1762
  },
@@ -1976,7 +2046,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1976
2046
  truncateLength: truncatePillLength
1977
2047
  }));
1978
2048
  }) : null, !lastestFormValueToArray.length && !isFocussed ? /*#__PURE__*/React__default.createElement(react.Text, {
1979
- color: colors.label.secondary.light,
2049
+ color: colors.text.secondary,
1980
2050
  fontSize: isMobile ? '17px' : '13px',
1981
2051
  pointerEvents: "none"
1982
2052
  }, placeholder) : null, !disabled && !scrollMode && /*#__PURE__*/React__default.createElement(react.Flex, {
@@ -1990,7 +2060,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1990
2060
  "float": "right",
1991
2061
  border: "none",
1992
2062
  height: "auto",
1993
- color: tokenIndex !== null ? 'transparent' : colors.label.primary,
2063
+ color: tokenIndex !== null ? 'transparent' : colors.text.primary,
1994
2064
  _focus: {
1995
2065
  boxShadow: 'none !important'
1996
2066
  },
@@ -2000,6 +2070,10 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
2000
2070
  onFocus: function onFocus() {
2001
2071
  return setIsFocussed(true);
2002
2072
  },
2073
+ onBlur: function onBlur() {
2074
+ setIsFocussed(false);
2075
+ setTokenIndex(null);
2076
+ },
2003
2077
  fontSize: isMobile ? '17px' : '13px',
2004
2078
  lineHeight: 1.5,
2005
2079
  placeholder: isMobile && label && lastestFormValueToArray.length === 0 ? label : '',
@@ -2018,7 +2092,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
2018
2092
  "float": "right",
2019
2093
  border: "none",
2020
2094
  height: "auto",
2021
- color: tokenIndex !== null ? 'transparent' : colors.label.primary,
2095
+ color: tokenIndex !== null ? 'transparent' : colors.text.primary,
2022
2096
  _focus: {
2023
2097
  boxShadow: 'none !important'
2024
2098
  },
@@ -2028,6 +2102,10 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
2028
2102
  onFocus: function onFocus() {
2029
2103
  return setIsFocussed(true);
2030
2104
  },
2105
+ onBlur: function onBlur() {
2106
+ setIsFocussed(false);
2107
+ setTokenIndex(null);
2108
+ },
2031
2109
  placeholder: isMobile && label && lastestFormValueToArray.length === 0 ? label : '',
2032
2110
  variant: variant,
2033
2111
  style: isMobile ? {
@@ -2072,7 +2150,7 @@ var Label$1 = function Label(_ref) {
2072
2150
  ml: "0"
2073
2151
  }, label, isRequired && /*#__PURE__*/React__default.createElement(react.Box, {
2074
2152
  ml: 1,
2075
- color: colors.label.error
2153
+ color: colors.text.danger
2076
2154
  }, "*"), !!tooltipText && /*#__PURE__*/React__default.createElement(react.Popover, {
2077
2155
  trigger: "hover",
2078
2156
  placement: "top"
@@ -2081,7 +2159,7 @@ var Label$1 = function Label(_ref) {
2081
2159
  }, /*#__PURE__*/React__default.createElement(icons.QuestionIcon, {
2082
2160
  boxSize: "13px",
2083
2161
  ml: 1,
2084
- color: colors.fill.action
2162
+ color: colors.action.solid
2085
2163
  }))), /*#__PURE__*/React__default.createElement(react.PopoverContent, null, /*#__PURE__*/React__default.createElement(react.PopoverArrow, null), /*#__PURE__*/React__default.createElement(react.PopoverBody, null, tooltipText))));
2086
2164
  };
2087
2165
 
@@ -2319,7 +2397,7 @@ function Input(_ref) {
2319
2397
  id: name,
2320
2398
  isInvalid: isInvalid,
2321
2399
  position: "relative",
2322
- py: !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && label || helperText || isInvalid ? 5 : 0
2400
+ py: !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && label || helperText ? 5 : 0
2323
2401
  }, label && !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && /*#__PURE__*/React__default.createElement(Label$1, {
2324
2402
  tooltipText: tooltipText,
2325
2403
  label: label,
@@ -2441,7 +2519,7 @@ var ChevronDown = function ChevronDown(_ref) {
2441
2519
  return /*#__PURE__*/React__default.createElement(Memo$9, {
2442
2520
  width: boxSize,
2443
2521
  height: boxSize,
2444
- fill: colors.fill.action
2522
+ fill: colors.action.solid
2445
2523
  });
2446
2524
  };
2447
2525
 
@@ -2972,7 +3050,7 @@ var Settings = function Settings(_ref) {
2972
3050
  return /*#__PURE__*/React__default.createElement(Memo$o, {
2973
3051
  width: boxSize,
2974
3052
  height: boxSize,
2975
- fill: colors.fill.action
3053
+ fill: colors.action.solid
2976
3054
  });
2977
3055
  };
2978
3056
 
@@ -3310,7 +3388,7 @@ var GearIcon = function GearIcon(_ref) {
3310
3388
  var boxSize = _ref.boxSize,
3311
3389
  color = _ref.color,
3312
3390
  props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
3313
- 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({
3314
3392
  xmlns: "http://www.w3.org/2000/svg",
3315
3393
  width: boxSize != null ? boxSize : 16,
3316
3394
  height: boxSize != null ? boxSize : 17,
@@ -3344,22 +3422,6 @@ function SelectNative(_ref) {
3344
3422
  onChange = _ref.onChange,
3345
3423
  setValue = _ref.setValue,
3346
3424
  props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3347
- // const [selectedOption, setSelectedOption] = useState(
3348
- // options ? options[0] ?? '' : ''
3349
- // );
3350
- var style = {
3351
- cursor: 'pointer',
3352
- color: 'var(--chakra-colors-blue-500)',
3353
- height: '48px',
3354
- fontSize: '17px',
3355
- lineHeight: '20px',
3356
- fontWeight: 400,
3357
- padding: '12px 16px 12px 0px',
3358
- borderRadius: 0,
3359
- border: '0.5px solid rgba(153, 153, 153, 0.1)',
3360
- borderLeft: 'none',
3361
- borderRight: 'none'
3362
- };
3363
3425
  var handleOnSelectItem = function handleOnSelectItem(e) {
3364
3426
  var selectedValue = e.target.value;
3365
3427
  var selectedOption = options == null ? void 0 : options.find(function (_ref2) {
@@ -3391,14 +3453,13 @@ function SelectNative(_ref) {
3391
3453
  isInvalid: isInvalid,
3392
3454
  position: "relative",
3393
3455
  py: 0
3394
- }, /*#__PURE__*/React__default.createElement(react.Select, Object.assign({}, props, {
3456
+ }, /*#__PURE__*/React__default.createElement(react.Select, _extends$6({}, props, {
3395
3457
  required: isRequired,
3396
3458
  ref: ref,
3397
3459
  value: value,
3398
3460
  disabled: disabled != null ? disabled : false,
3399
3461
  onChange: handleOnSelectItem,
3400
- defaultValue: defaultValue,
3401
- style: style
3462
+ defaultValue: defaultValue
3402
3463
  }), options && options.map(function (i) {
3403
3464
  return /*#__PURE__*/React__default.createElement("option", {
3404
3465
  value: i.value,
@@ -3524,7 +3585,7 @@ var Link = function Link(_ref) {
3524
3585
  }, getIcon, /*#__PURE__*/React__default.createElement(react.Text, {
3525
3586
  variant: "description-large",
3526
3587
  pl: "2px",
3527
- color: colors.fill.action
3588
+ color: colors.action.solid
3528
3589
  }, text));
3529
3590
  };
3530
3591
 
@@ -3548,7 +3609,7 @@ var LoadingIndicator = function LoadingIndicator(_ref) {
3548
3609
  className: "loading-indicator " + (className != null ? className : '')
3549
3610
  }, /*#__PURE__*/React__default.createElement(react.Spinner, {
3550
3611
  size: size,
3551
- color: colors.fill.action,
3612
+ color: colors.action.solid,
3552
3613
  flex: "none",
3553
3614
  thickness: thickness,
3554
3615
  speed: speed,
@@ -3587,7 +3648,7 @@ var NavigationMenuHeader = function NavigationMenuHeader(_ref) {
3587
3648
  height: "26px",
3588
3649
  width: "204px",
3589
3650
  fontSize: "12px",
3590
- color: colors.label.secondary.light
3651
+ color: colors.text.secondary
3591
3652
  }, label);
3592
3653
  };
3593
3654
 
@@ -3619,7 +3680,7 @@ var NavigationMenuItem = function NavigationMenuItem(_ref) {
3619
3680
  isExternal: true
3620
3681
  });
3621
3682
  }
3622
- return /*#__PURE__*/React__default.createElement(react.Link, Object.assign({}, reactRouterLinkProps, additionalProps, {
3683
+ return /*#__PURE__*/React__default.createElement(react.Link, _extends$6({}, reactRouterLinkProps, additionalProps, {
3623
3684
  onClick: onClick,
3624
3685
  display: "flex",
3625
3686
  alignItems: "center",
@@ -3628,7 +3689,7 @@ var NavigationMenuItem = function NavigationMenuItem(_ref) {
3628
3689
  px: "4px",
3629
3690
  height: "26px",
3630
3691
  width: "204px",
3631
- color: colors.label.primary,
3692
+ color: colors.text.primary,
3632
3693
  bg: isSelected ? colors.fill.light.quaternary : 'transparent',
3633
3694
  borderRadius: "4px",
3634
3695
  fontSize: "13px",
@@ -3679,7 +3740,7 @@ var NavigationMenu = function NavigationMenu(_ref) {
3679
3740
  }, menuItemGroup.groupHeader && /*#__PURE__*/React__default.createElement(NavigationMenuHeader, {
3680
3741
  label: menuItemGroup.groupHeader
3681
3742
  }), menuItemGroup.groupMenuItems.map(function (item, idx) {
3682
- return /*#__PURE__*/React__default.createElement(NavigationMenuItem, Object.assign({}, item, {
3743
+ return /*#__PURE__*/React__default.createElement(NavigationMenuItem, _extends$6({}, item, {
3683
3744
  key: idx,
3684
3745
  isSelected: _selectedMenuItem === item.label,
3685
3746
  onClick: function onClick() {
@@ -3687,7 +3748,7 @@ var NavigationMenu = function NavigationMenu(_ref) {
3687
3748
  }
3688
3749
  }));
3689
3750
  }));
3690
- }), bottomMenuItem && /*#__PURE__*/React__default.createElement(NavigationMenuItem, Object.assign({}, bottomMenuItem, {
3751
+ }), bottomMenuItem && /*#__PURE__*/React__default.createElement(NavigationMenuItem, _extends$6({}, bottomMenuItem, {
3691
3752
  key: bottomMenuItem.label,
3692
3753
  isSelected: true,
3693
3754
  onClick: function onClick() {
@@ -3721,14 +3782,14 @@ var TableLoadingRows = function TableLoadingRows(_ref) {
3721
3782
  borderTopColor: colors.fill.light.quaternary
3722
3783
  }, isLoading ? /*#__PURE__*/React__default.createElement(react.Spinner, {
3723
3784
  size: "lg",
3724
- color: colors.fill.action
3785
+ color: colors.action.solid
3725
3786
  }) : /*#__PURE__*/React__default.createElement(react.IconButton, {
3726
3787
  "aria-label": "Fetch more rows",
3727
3788
  icon: /*#__PURE__*/React__default.createElement(hi.HiOutlineRefresh, null),
3728
3789
  fontSize: typography.fontSizes['3xl'],
3729
3790
  bg: "transparent",
3730
3791
  shadow: "none",
3731
- color: colors.fill.action,
3792
+ color: colors.action.solid,
3732
3793
  type: "button",
3733
3794
  variant: "outline",
3734
3795
  onClick: onLoadMore
@@ -3808,7 +3869,7 @@ function SimpleTable(_ref) {
3808
3869
  }
3809
3870
  }, (headers || columnsWidths) && /*#__PURE__*/React__default.createElement(react.Thead, null, /*#__PURE__*/React__default.createElement(react.Tr, {
3810
3871
  _odd: {
3811
- bg: colors.label.primary.dark
3872
+ bg: colors.surface.canvas
3812
3873
  }
3813
3874
  }, columnsAsConst.map(function (column, idx) {
3814
3875
  return /*#__PURE__*/React__default.createElement(react.Th, {
@@ -3896,9 +3957,9 @@ var shadows = {
3896
3957
  lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
3897
3958
  xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
3898
3959
  '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
3899
- insetOutline: "inset 0 0 0 2px " + colors.fill.action,
3900
- outline: "0 0 0 2px " + colors.fill.action,
3901
- 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,
3902
3963
  inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
3903
3964
  none: 'none',
3904
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'
@@ -3914,28 +3975,28 @@ var baseStyle = {
3914
3975
  width: '100%',
3915
3976
  fontSize: '13px',
3916
3977
  textAlign: 'left',
3917
- color: colors.label.primary.light,
3978
+ color: colors.text.primary,
3918
3979
  lineHeight: '16px'
3919
3980
  }
3920
3981
  };
3921
3982
  function variantPositive() {
3922
3983
  return {
3923
3984
  container: {
3924
- bg: colors.fill.success
3985
+ bg: colors.status.success.fill
3925
3986
  }
3926
3987
  };
3927
3988
  }
3928
3989
  function variantWarning() {
3929
3990
  return {
3930
3991
  container: {
3931
- bg: colors.fill.warning
3992
+ bg: colors.status.warning.fill
3932
3993
  }
3933
3994
  };
3934
3995
  }
3935
3996
  function variantError() {
3936
3997
  return {
3937
3998
  container: {
3938
- bg: colors.fill.error
3999
+ bg: colors.status.danger.fill
3939
4000
  }
3940
4001
  };
3941
4002
  }
@@ -4017,8 +4078,8 @@ var baseStyle$2 = /*#__PURE__*/system.defineStyle({
4017
4078
  borderRadius: '4px',
4018
4079
  fontSize: '13px',
4019
4080
  fontWeight: 400,
4020
- bg: colors.fill.action,
4021
- color: colors.label.primary.dark,
4081
+ bg: colors.action.solid,
4082
+ color: colors.text.onAccent,
4022
4083
  h: '26px',
4023
4084
  border: 'none',
4024
4085
  px: '8px',
@@ -4032,11 +4093,11 @@ var baseStyle$2 = /*#__PURE__*/system.defineStyle({
4032
4093
  pointerEvents: 'none'
4033
4094
  },
4034
4095
  _hover: {
4035
- bg: colors.fill.action
4096
+ bg: colors.action.solid
4036
4097
  },
4037
4098
  _active: {
4038
- color: colors.label.primary.dark,
4039
- bg: colors.fill.action,
4099
+ color: colors.text.onAccent,
4100
+ bg: colors.action.solid,
4040
4101
  bgGradient: colors.fill.light.quaternary
4041
4102
  },
4042
4103
  _focus: {
@@ -4050,66 +4111,66 @@ var variantPrimary = function variantPrimary() {
4050
4111
  var variantSecondary = function variantSecondary() {
4051
4112
  return _extends$6({}, baseStyle$2, {
4052
4113
  color: colors.black,
4053
- bg: colors.label.primary.dark,
4114
+ bg: colors.surface.canvas,
4054
4115
  _hover: {
4055
- bg: colors.label.primary.dark
4116
+ bg: colors.surface.canvas
4056
4117
  },
4057
4118
  _active: {
4058
4119
  color: colors.black,
4059
- bg: colors.label.primary.dark,
4120
+ bg: colors.surface.canvas,
4060
4121
  bgGradient: colors.fill.light.quaternary
4061
4122
  },
4062
4123
  _focus: {
4063
- bg: colors.label.primary.dark
4124
+ bg: colors.surface.canvas
4064
4125
  }
4065
4126
  });
4066
4127
  };
4067
4128
  var variantTertiary = function variantTertiary() {
4068
4129
  return _extends$6({}, baseStyle$2, {
4069
- color: colors.label.primary.dark,
4070
- bg: colors.blur.quaternary.dark,
4130
+ color: colors.text.onAccent,
4131
+ bg: colors.fill.dark.subtle,
4071
4132
  _hover: {
4072
- bg: colors.blur.quaternary.dark
4133
+ bg: colors.fill.dark.subtle
4073
4134
  },
4074
4135
  _active: {
4075
- color: colors.label.primary.dark,
4076
- bg: colors.blur.tertiary.dark
4136
+ color: colors.text.onAccent,
4137
+ bg: colors.fill.dark.strong
4077
4138
  },
4078
4139
  _focus: {
4079
- color: colors.label.primary.dark,
4080
- bg: colors.blur.quaternary.dark
4140
+ color: colors.text.onAccent,
4141
+ bg: colors.fill.dark.subtle
4081
4142
  },
4082
4143
  _disabled: {
4083
- backgroundColor: colors.blur.quaternary.dark,
4084
- color: colors.blur.tertiary.dark
4144
+ backgroundColor: colors.fill.dark.subtle,
4145
+ color: 'gray.500'
4085
4146
  }
4086
4147
  });
4087
4148
  };
4088
4149
  var variantDanger = function variantDanger() {
4089
4150
  return _extends$6({}, baseStyle$2, {
4090
4151
  fontWeight: '400',
4091
- color: colors.label.primary.dark,
4092
- bg: colors.label.error,
4152
+ color: colors.text.onAccent,
4153
+ bg: colors.action.danger,
4093
4154
  _hover: {
4094
- bg: colors.label.error
4155
+ bg: colors.action.danger
4095
4156
  },
4096
4157
  _active: {
4097
- color: colors.label.primary.dark,
4098
- bg: colors.label.error
4158
+ color: colors.text.onAccent,
4159
+ bg: colors.action.danger
4099
4160
  },
4100
4161
  _focus: {
4101
- color: colors.label.primary.dark,
4102
- bg: colors.label.error
4162
+ color: colors.text.onAccent,
4163
+ bg: colors.action.danger
4103
4164
  },
4104
4165
  _disabled: {
4105
- backgroundColor: colors.label.error,
4106
- color: colors.label.secondary.light
4166
+ backgroundColor: colors.action.danger,
4167
+ color: colors.text.secondary
4107
4168
  }
4108
4169
  });
4109
4170
  };
4110
4171
  var variantPrimaryFlat = function variantPrimaryFlat() {
4111
4172
  return _extends$6({}, baseStyle$2, {
4112
- bg: colors.fill.action,
4173
+ bg: colors.action.solid,
4113
4174
  bgGradient: null,
4114
4175
  minWidth: '120px',
4115
4176
  padding: '10px 16px',
@@ -4130,61 +4191,61 @@ var variantSecondaryFlat = function variantSecondaryFlat() {
4130
4191
  return _extends$6({}, variantPrimaryFlat(), {
4131
4192
  fontWeight: '400',
4132
4193
  color: colors.black,
4133
- bg: colors.label.primary.dark,
4194
+ bg: colors.surface.canvas,
4134
4195
  _hover: {
4135
- bg: colors.label.primary.dark
4196
+ bg: colors.surface.canvas
4136
4197
  },
4137
4198
  _active: {
4138
4199
  color: colors.black,
4139
- bg: colors.label.primary.dark,
4200
+ bg: colors.surface.canvas,
4140
4201
  bgGradient: colors.fill.light.quaternary
4141
4202
  },
4142
4203
  _focus: {
4143
- bg: colors.label.primary.dark
4204
+ bg: colors.surface.canvas
4144
4205
  }
4145
4206
  });
4146
4207
  };
4147
4208
  var variantTertiaryFlat = function variantTertiaryFlat() {
4148
4209
  return _extends$6({}, variantPrimaryFlat(), {
4149
4210
  fontWeight: '400',
4150
- color: colors.label.primary.dark,
4151
- bg: colors.blur.quaternary.dark,
4211
+ color: colors.text.onAccent,
4212
+ bg: colors.fill.dark.subtle,
4152
4213
  _hover: {
4153
- bg: colors.blur.quaternary.dark
4214
+ bg: colors.fill.dark.subtle
4154
4215
  },
4155
4216
  _active: {
4156
- color: colors.label.primary.dark,
4157
- bg: colors.blur.tertiary.dark
4217
+ color: colors.text.onAccent,
4218
+ bg: colors.fill.dark.strong
4158
4219
  },
4159
4220
  _focus: {
4160
- color: colors.label.primary.dark,
4161
- bg: colors.blur.quaternary.dark
4221
+ color: colors.text.onAccent,
4222
+ bg: colors.fill.dark.subtle
4162
4223
  },
4163
4224
  _disabled: {
4164
- backgroundColor: colors.blur.quaternary.dark,
4165
- color: colors.blur.tertiary.dark
4225
+ backgroundColor: colors.fill.dark.subtle,
4226
+ color: 'gray.500'
4166
4227
  }
4167
4228
  });
4168
4229
  };
4169
4230
  var variantDangerFlat = function variantDangerFlat() {
4170
4231
  return _extends$6({}, variantPrimaryFlat(), {
4171
4232
  fontWeight: '400',
4172
- color: colors.label.primary.dark,
4173
- bg: colors.label.error,
4233
+ color: colors.text.onAccent,
4234
+ bg: colors.action.danger,
4174
4235
  _hover: {
4175
- bg: colors.label.error
4236
+ bg: colors.action.danger
4176
4237
  },
4177
4238
  _active: {
4178
- color: colors.label.primary.dark,
4179
- bg: colors.label.error
4239
+ color: colors.text.onAccent,
4240
+ bg: colors.action.danger
4180
4241
  },
4181
4242
  _focus: {
4182
- color: colors.label.primary.dark,
4183
- bg: colors.label.error
4243
+ color: colors.text.onAccent,
4244
+ bg: colors.action.danger
4184
4245
  },
4185
4246
  _disabled: {
4186
- backgroundColor: colors.label.error,
4187
- color: colors.label.secondary.light
4247
+ backgroundColor: colors.action.danger,
4248
+ color: colors.text.secondary
4188
4249
  }
4189
4250
  });
4190
4251
  };
@@ -4247,14 +4308,14 @@ var parts$1 = ['requiredIndicator', 'helperText'];
4247
4308
  function baseStyleRequiredIndicator() {
4248
4309
  return {
4249
4310
  ml: 1,
4250
- color: colors.label.error
4311
+ color: colors.text.danger
4251
4312
  };
4252
4313
  }
4253
4314
  function baseStyleHelperText() {
4254
4315
  return {
4255
4316
  // mt: 1,
4256
4317
  ml: 1,
4257
- color: colors.label.secondary.light,
4318
+ color: colors.text.secondary,
4258
4319
  fontSize: '11px'
4259
4320
  };
4260
4321
  }
@@ -4272,10 +4333,8 @@ var Form$1 = {
4272
4333
  var parts$2 = ['text', 'icon'];
4273
4334
  function baseStyleText() {
4274
4335
  return {
4275
- color: colors.label.error,
4276
- position: 'absolute',
4277
- bottom: 0,
4278
- // mt: 1,
4336
+ color: colors.text.danger,
4337
+ mt: 1,
4279
4338
  ml: 1,
4280
4339
  fontSize: '11px'
4281
4340
  };
@@ -4283,7 +4342,7 @@ function baseStyleText() {
4283
4342
  function baseStyleIcon() {
4284
4343
  return {
4285
4344
  ml: 1,
4286
- color: colors.label.error
4345
+ color: colors.text.danger
4287
4346
  };
4288
4347
  }
4289
4348
  var baseStyle$5 = function baseStyle() {
@@ -4305,7 +4364,7 @@ var baseStyle$6 = {
4305
4364
  display: 'flex',
4306
4365
  ml: 1,
4307
4366
  // mb: 1,
4308
- color: colors.label.primary.light,
4367
+ color: colors.text.primary,
4309
4368
  opacity: 1
4310
4369
  };
4311
4370
  var FormLabel = {
@@ -4318,7 +4377,7 @@ var baseStyle$7 = {
4318
4377
  fontSize: '13px',
4319
4378
  h: '26px',
4320
4379
  '::placeholder': {
4321
- color: colors.label.secondary.light
4380
+ color: colors.text.secondary
4322
4381
  },
4323
4382
  py: '5px',
4324
4383
  px: '8px',
@@ -4328,7 +4387,7 @@ var baseStyle$7 = {
4328
4387
  opacity: 1,
4329
4388
  cursor: 'not-allowed',
4330
4389
  bg: colors.fill.light.quaternary,
4331
- color: colors.label.secondary.light,
4390
+ color: colors.text.secondary,
4332
4391
  border: '1px solid',
4333
4392
  borderColor: '#9999991A'
4334
4393
  },
@@ -4338,7 +4397,7 @@ var baseStyle$7 = {
4338
4397
  borderColor: colors.border.focus
4339
4398
  },
4340
4399
  _placeholder: {
4341
- color: colors.label.secondary.light
4400
+ color: colors.text.secondary
4342
4401
  }
4343
4402
  }
4344
4403
  };
@@ -4374,7 +4433,7 @@ var Input$1 = {
4374
4433
  };
4375
4434
 
4376
4435
  var baseStyle$8 = {
4377
- color: colors.fill.action,
4436
+ color: colors.action.solid,
4378
4437
  textDecoration: 'underline',
4379
4438
  transition: 'none',
4380
4439
  _hover: {
@@ -4385,7 +4444,6 @@ function variantSidebar() {
4385
4444
  return {
4386
4445
  display: 'flex',
4387
4446
  alignItems: 'center',
4388
- // height: '56px',
4389
4447
  pl: 4,
4390
4448
  pr: 4,
4391
4449
  py: 2,
@@ -4411,20 +4469,13 @@ function variantSidebar() {
4411
4469
  // and not only for a child sub route match. I did it as a separate variant instead of a
4412
4470
  // prop to get around React complaining that the dom element was not recognized.
4413
4471
  function variantSidebarExact() {
4414
- // props: Dict
4415
4472
  var base = variantSidebar();
4416
- // const { theme } = props;
4417
- // const primaryColor = getColor(theme, 'primary.500');
4418
4473
  return _extends$6({}, base, {
4419
- '&.active': {
4420
- // ...base['&.active'],
4421
- // boxShadow: `inset 3px 0 0 0 ${primaryColor}`,
4422
- }
4474
+ '&.active': {}
4423
4475
  });
4424
4476
  }
4425
- function variantSubNavigation(props) {
4426
- var theme = props.theme;
4427
- var primaryColor = themeTools.getColor(theme, 'primary.500');
4477
+ function variantSubNavigation(_props) {
4478
+ var primaryColor = colors.action.solid;
4428
4479
  return {
4429
4480
  display: 'block',
4430
4481
  pl: 10,
@@ -4508,7 +4559,7 @@ function baseStyleItem(props) {
4508
4559
  transition: 'background 50ms ease-in 0s',
4509
4560
  _hover: {
4510
4561
  color: colors.white,
4511
- background: colors.fill.action
4562
+ background: colors.action.solid
4512
4563
  },
4513
4564
  _active: {
4514
4565
  bg: themeTools.mode("gray.200", "whiteAlpha.200")(props)
@@ -4546,30 +4597,34 @@ var Menu$1 = {
4546
4597
 
4547
4598
  var parts$5 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
4548
4599
  var baseStyle$a = {
4549
- width: 'fit-content',
4550
- height: 'fit-content',
4551
- background: '#F6F6F6',
4552
- 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
+ },
4553
4608
  header: {
4554
- pt: '32px',
4555
- px: '32px',
4556
- pb: '16px',
4609
+ pt: 8,
4610
+ px: 8,
4611
+ pb: 4,
4557
4612
  fontSize: '18px',
4558
4613
  fontWeight: 600,
4559
4614
  lineHeight: '26px'
4560
4615
  },
4561
4616
  body: {
4562
4617
  pt: 0,
4563
- pb: '32px',
4564
- px: '32px',
4618
+ pb: 8,
4619
+ px: 8,
4565
4620
  fontSize: '13px',
4566
4621
  fontWeight: 400,
4567
4622
  lineHeight: '16px',
4568
4623
  whiteSpace: 'pre-line'
4569
4624
  },
4570
4625
  footer: {
4571
- py: '16px',
4572
- px: '32px',
4626
+ py: 4,
4627
+ px: 8,
4573
4628
  display: 'flex',
4574
4629
  justifyContent: 'flex-end',
4575
4630
  width: '100%'
@@ -4713,10 +4768,10 @@ var Switch = {
4713
4768
  var parts$8 = ['th', 'td', 'tr', 'body', 'thead'];
4714
4769
  var baseStyle$d = {
4715
4770
  thead: {
4716
- bg: colors.label.primary.dark
4771
+ bg: colors.surface.canvas
4717
4772
  },
4718
4773
  th: {
4719
- bg: colors.label.primary.dark,
4774
+ bg: colors.surface.canvas,
4720
4775
  padding: '5px 8px !important',
4721
4776
  fontSize: '13px'
4722
4777
  },
@@ -4797,7 +4852,7 @@ var baseStyle$e = function baseStyle(props) {
4797
4852
  var sizes$1 = {
4798
4853
  sm: {
4799
4854
  tab: {
4800
- py: '0.25rem',
4855
+ py: 1,
4801
4856
  px: 6,
4802
4857
  fontSize: '0.85rem'
4803
4858
  }
@@ -4805,7 +4860,7 @@ var sizes$1 = {
4805
4860
  md: {
4806
4861
  tab: {
4807
4862
  fontSize: '1rem',
4808
- py: '0.75rem',
4863
+ py: 3,
4809
4864
  px: 6
4810
4865
  }
4811
4866
  },
@@ -4815,7 +4870,7 @@ var sizes$1 = {
4815
4870
  base: '1rem',
4816
4871
  sm: '1.15rem'
4817
4872
  },
4818
- py: '0.75rem',
4873
+ py: 3,
4819
4874
  px: 6
4820
4875
  }
4821
4876
  }
@@ -4934,12 +4989,12 @@ var variantSimple = {
4934
4989
  position: 'relative',
4935
4990
  borderColor: 'transparent',
4936
4991
  '&.active': {
4937
- color: colors.fill.action,
4992
+ color: colors.action.solid,
4938
4993
  bg: 'transparent',
4939
- borderBottom: "1px solid " + colors.fill.action
4994
+ borderBottom: "1px solid " + colors.action.solid
4940
4995
  },
4941
4996
  _selected: {
4942
- color: colors.fill.action,
4997
+ color: colors.action.solid,
4943
4998
  bg: 'transparent',
4944
4999
  _after: {
4945
5000
  content: '""',
@@ -5118,9 +5173,6 @@ var styles = {
5118
5173
  },
5119
5174
  '*, *::before, *::after': {
5120
5175
  borderColor: 'gray.200'
5121
- },
5122
- '*::placeholder': {
5123
- color: 'primary'
5124
5176
  }
5125
5177
  }
5126
5178
  };
@@ -5204,7 +5256,7 @@ var ToolbarBreadcrumbItem = function ToolbarBreadcrumbItem(_ref) {
5204
5256
  return pageLabel;
5205
5257
  }, [breakpoint1512, breakpoint400, breakpoint600, breakpoint800, page, pageLabel]);
5206
5258
  return /*#__PURE__*/React__default.createElement(react.Box, {
5207
- color: page === 'current' ? colors.label.primary.light : colors.label.secondary.light,
5259
+ color: page === 'current' ? colors.text.primary : colors.text.secondary,
5208
5260
  fontSize: "13px",
5209
5261
  letterSpacing: "0.02em",
5210
5262
  onClick: onClick,
@@ -5439,12 +5491,12 @@ var Toast = function Toast(_ref) {
5439
5491
  }, Icon), /*#__PURE__*/React__default.createElement(react.Text, {
5440
5492
  pr: "16px",
5441
5493
  fontSize: "13px",
5442
- color: colors.label.primary.dark
5494
+ color: colors.text.onAccent
5443
5495
  }, message), onClick && buttonText && /*#__PURE__*/React__default.createElement(react.Flex, {
5444
5496
  ml: "auto",
5445
5497
  justifyContent: "flex-end"
5446
5498
  }, /*#__PURE__*/React__default.createElement(react.Button, {
5447
- color: colors.fill.action,
5499
+ color: colors.action.solid,
5448
5500
  style: {
5449
5501
  background: 'transparent',
5450
5502
  border: 'transparent',
@@ -5465,7 +5517,7 @@ var useToast = function useToast() {
5465
5517
  return toast({
5466
5518
  position: props.position,
5467
5519
  render: function render() {
5468
- return /*#__PURE__*/React__default.createElement(Toast, Object.assign({}, props));
5520
+ return /*#__PURE__*/React__default.createElement(Toast, _extends$6({}, props));
5469
5521
  }
5470
5522
  });
5471
5523
  }, [toast]);
@@ -5555,5 +5607,6 @@ exports.Workspace = Workspace;
5555
5607
  exports.XQThemeProvider = XQThemeProvider;
5556
5608
  exports.colors = colors;
5557
5609
  exports.formatErrorResponse = formatErrorResponse;
5610
+ exports.tokens = tokens;
5558
5611
  exports.useToast = useToast;
5559
5612
  //# sourceMappingURL=ui-core.cjs.development.js.map