@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
@@ -30,11 +30,9 @@ var ActionRow = function ActionRow(_ref) {
30
30
  }, primaryText));
31
31
  };
32
32
 
33
- /**
34
- * A functional React component utilized to render the `Button` component
35
- */
36
33
  var Button = function Button(_ref) {
37
34
  var onClick = _ref.onClick,
35
+ children = _ref.children,
38
36
  text = _ref.text,
39
37
  _ref$type = _ref.type,
40
38
  type = _ref$type === void 0 ? 'button' : _ref$type,
@@ -58,7 +56,7 @@ var Button = function Button(_ref) {
58
56
  rightIcon: rightIcon,
59
57
  leftIcon: leftIcon,
60
58
  color: color
61
- }, text);
59
+ }, children != null ? children : text);
62
60
  };
63
61
 
64
62
  var _path;
@@ -195,7 +193,9 @@ var Banner = function Banner(_ref) {
195
193
  buttonText = _ref.buttonText,
196
194
  onClick = _ref.onClick,
197
195
  _ref$type = _ref.type,
198
- type = _ref$type === void 0 ? 'expanded' : _ref$type;
196
+ type = _ref$type === void 0 ? 'expanded' : _ref$type,
197
+ _ref$centered = _ref.centered,
198
+ centered = _ref$centered === void 0 ? false : _ref$centered;
199
199
  var Icon = useMemo(function () {
200
200
  switch (variant) {
201
201
  case 'error':
@@ -220,16 +220,20 @@ var Banner = function Banner(_ref) {
220
220
  }, [variant]);
221
221
  return /*#__PURE__*/React__default.createElement(Alert$1, {
222
222
  variant: variant,
223
- borderRadius: "4px"
223
+ borderRadius: "4px",
224
+ justifyContent: centered ? 'center' : undefined
224
225
  }, /*#__PURE__*/React__default.createElement(AlertDescription, null, /*#__PURE__*/React__default.createElement(Flex, {
225
- flexDirection: type === 'condensed' ? 'row' : 'column',
226
- alignItems: type === 'condensed' ? 'center' : '',
226
+ flexDirection: centered || type === 'condensed' ? 'row' : 'column',
227
+ alignItems: centered || type === 'condensed' ? 'center' : '',
228
+ justifyContent: centered ? 'center' : undefined,
227
229
  minHeight: "26px"
228
230
  }, /*#__PURE__*/React__default.createElement(Box, {
229
- pr: "8px"
231
+ pr: "8px",
232
+ pt: !centered && type !== 'condensed' ? '8px' : 0
230
233
  }, Icon), /*#__PURE__*/React__default.createElement(Box, {
231
- flexGrow: "1",
232
- pt: type === 'condensed' ? 0 : '8px'
234
+ flexGrow: centered ? undefined : '1',
235
+ pt: !centered && type !== 'condensed' ? '8px' : 0,
236
+ textAlign: centered ? 'center' : 'left'
233
237
  }, message), onClick && buttonText && /*#__PURE__*/React__default.createElement(Flex, {
234
238
  ml: type === 'condensed' ? 'auto' : '',
235
239
  pt: type === 'condensed' ? 0 : '8px',
@@ -291,34 +295,40 @@ var green = {
291
295
  800: 'hsl(141, 42%, 24%)',
292
296
  900: 'hsl(138, 42%, 6%)'
293
297
  };
294
- var label = {
295
- primary: {
296
- light: '#000000',
297
- dark: '#FFFFFF'
298
- },
299
- secondary: {
300
- light: '#3C3C4399'
298
+ // ─── Canonical semantic tokens ────────────────────────────────────────────────
299
+ var text = {
300
+ primary: '#000000',
301
+ secondary: '#3C3C4399',
302
+ tertiary: '#3C3C4366',
303
+ onAccent: '#FFFFFF',
304
+ danger: red[500] // form-error text and required indicator
305
+ };
306
+
307
+ var surface = {
308
+ canvas: '#FFFFFF' // page / card / table-header background
309
+ };
310
+
311
+ var action = {
312
+ solid: '#0082ff',
313
+ danger: red[600] // danger button fill; also used for focus rings
314
+ };
315
+
316
+ var status = {
317
+ success: {
318
+ fill: '#d8f1b8'
301
319
  },
302
- tertiary: {
303
- light: '',
304
- dark: '#EBEBF52E'
320
+ warning: {
321
+ fill: '#ffefb4'
305
322
  },
306
- error: '#FF0000'
323
+ danger: {
324
+ fill: '#ffbdb9'
325
+ }
307
326
  };
308
327
  var border = {
309
328
  focus: '#3A6CD980',
310
329
  "default": '#D9D9D9',
311
- light: '#99999919A'
312
- };
313
- var blur = {
314
- quaternary: {
315
- light: '',
316
- dark: '#2A2A2A73'
317
- },
318
- tertiary: {
319
- light: '',
320
- dark: '#111111A6'
321
- }
330
+ /** @deprecated typo was '#99999919A' — kept for compat, use inline '#9999991A' */
331
+ light: '#9999991A'
322
332
  };
323
333
  var fill = {
324
334
  light: {
@@ -327,11 +337,50 @@ var fill = {
327
337
  tertiary: '#7474801F',
328
338
  quaternary: '#7474800D'
329
339
  },
340
+ // translucent "dark glass" fills — previously named blur.*
341
+ dark: {
342
+ subtle: '#2A2A2A60',
343
+ strong: '#111111A6' // tertiary button pressed bg
344
+ },
345
+
346
+ // ─── deprecated aliases ───────────────────────────────────────────────────
347
+ /** @deprecated use colors.action.solid */
348
+ action: '#0082ff',
349
+ /** @deprecated use colors.status.success.fill */
330
350
  success: '#d8f1b8',
351
+ /** @deprecated use colors.status.danger.fill */
331
352
  error: '#ffbdb9',
332
- warning: '#ffefb4',
333
- action: '#0082ff'
353
+ /** @deprecated use colors.status.warning.fill */
354
+ warning: '#ffefb4'
355
+ };
356
+ // ─── Deprecated compat aliases ────────────────────────────────────────────────
357
+ // Keep old top-level keys so consumer repos don't break on upgrade.
358
+ // Remove these in the next major version.
359
+ /** @deprecated use colors.text.* and colors.surface.canvas */
360
+ var label = {
361
+ primary: {
362
+ light: text.primary,
363
+ dark: text.onAccent
364
+ },
365
+ secondary: {
366
+ light: text.secondary
367
+ },
368
+ tertiary: {
369
+ light: text.tertiary,
370
+ dark: '#EBEBF52E'
371
+ },
372
+ error: text.danger
373
+ };
374
+ /** @deprecated use colors.fill.dark.subtle / colors.fill.dark.strong */
375
+ var blur = {
376
+ quaternary: {
377
+ dark: fill.dark.subtle
378
+ },
379
+ tertiary: {
380
+ dark: fill.dark.strong
381
+ }
334
382
  };
383
+ /** @deprecated colors.semantic.* was a parallel action palette — use colors.action / colors.status instead */
335
384
  var semantic = {
336
385
  action: '#488ef7',
337
386
  success: '#5fcf65',
@@ -339,18 +388,28 @@ var semantic = {
339
388
  error: '#f96057'
340
389
  };
341
390
  var colors = {
342
- label: label,
343
- blur: blur,
391
+ // canonical
392
+ text: text,
393
+ surface: surface,
394
+ action: action,
395
+ status: status,
344
396
  border: border,
345
397
  fill: fill,
398
+ // deprecated compat
399
+ label: label,
400
+ blur: blur,
346
401
  semantic: semantic,
402
+ // misc
347
403
  transparent: 'transparent',
348
404
  current: 'currentColor',
349
405
  black: '#000000',
350
406
  white: '#FFFFFF',
407
+ /** @deprecated */
351
408
  lightBlue: '#29abe2',
352
409
  coolGray: '#F6F7FB',
410
+ /** @deprecated */
353
411
  darkBlue: '#292f4c',
412
+ /** @deprecated */
354
413
  backdrop: '#fbfcff',
355
414
  whiteAlpha: {
356
415
  50: 'rgba(255, 255, 255, 0.04)',
@@ -393,6 +452,8 @@ var colors = {
393
452
  green: green,
394
453
  blue: blue
395
454
  };
455
+ /** Canonical alias — prefer this over `colors` for new code */
456
+ var tokens = colors;
396
457
 
397
458
  /**
398
459
  * A functional React component utilized to render the `Icon` for the `Breadcrumbs` component.
@@ -405,17 +466,17 @@ var Icon = function Icon(_ref) {
405
466
  case 'active':
406
467
  return {
407
468
  bg: '#0082FF',
408
- color: colors.label.primary.dark
469
+ color: colors.text.onAccent
409
470
  };
410
471
  case 'complete':
411
472
  return {
412
473
  bg: '#7474800D',
413
- color: colors.label.primary.light
474
+ color: colors.text.primary
414
475
  };
415
476
  case 'inactive':
416
477
  return {
417
478
  bg: '#7474800D',
418
- color: colors.label.primary.light
479
+ color: colors.text.primary
419
480
  };
420
481
  }
421
482
  }, [status]);
@@ -439,7 +500,7 @@ var Label = function Label(_ref) {
439
500
  return /*#__PURE__*/React__default.createElement(Box, {
440
501
  pl: "8px"
441
502
  }, /*#__PURE__*/React__default.createElement(Text$2, {
442
- color: colors.label.primary.light,
503
+ color: colors.text.primary,
443
504
  fontSize: "13px"
444
505
  }, label));
445
506
  };
@@ -515,7 +576,8 @@ var typography = {
515
576
  black: 900
516
577
  },
517
578
  fonts: {
518
- base: "proxima-nova, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
579
+ heading: "proxima-nova, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
580
+ body: "proxima-nova, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
519
581
  mono: "SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace"
520
582
  },
521
583
  fontSizes: {
@@ -540,18 +602,20 @@ var Card = function Card(_ref) {
540
602
  leftIcon = _ref.leftIcon,
541
603
  children = _ref.children,
542
604
  _ref$height = _ref.height,
543
- height = _ref$height === void 0 ? 'auto' : _ref$height;
605
+ height = _ref$height === void 0 ? 'auto' : _ref$height,
606
+ _ref$width = _ref.width,
607
+ width = _ref$width === void 0 ? '206px' : _ref$width;
544
608
  return /*#__PURE__*/React__default.createElement(Box, {
545
609
  bg: colors.fill.light.quaternary,
546
610
  borderRadius: "4px",
547
611
  border: ".5px solid " + colors.border["default"],
548
- py: "8px",
549
- px: "8px",
612
+ py: 2,
613
+ px: 2,
550
614
  height: height,
551
615
  overflowY: "auto",
552
- width: "206px",
616
+ width: width,
553
617
  _notLast: {
554
- marginBottom: '8px'
618
+ marginBottom: 2
555
619
  }
556
620
  }, title && /*#__PURE__*/React__default.createElement(Flex, {
557
621
  display: "flex",
@@ -561,13 +625,13 @@ var Card = function Card(_ref) {
561
625
  _hover: {
562
626
  textDecoration: 'none'
563
627
  },
564
- mb: "8px"
628
+ mb: 2
565
629
  }, /*#__PURE__*/React__default.createElement(Flex, {
566
630
  alignItems: "center"
567
631
  }, /*#__PURE__*/React__default.createElement(Box, {
568
- mr: "4px"
632
+ mr: 1
569
633
  }, leftIcon), /*#__PURE__*/React__default.createElement(Text$2, {
570
- color: colors.label.primary.light,
634
+ color: colors.text.primary,
571
635
  fontSize: typography.fontSizes.sm,
572
636
  fontWeight: typography.fontWeights.medium
573
637
  }, title))), Children.map(children, function (child) {
@@ -578,15 +642,15 @@ var Card = function Card(_ref) {
578
642
  return /*#__PURE__*/React__default.createElement(Text$2, {
579
643
  as: "div",
580
644
  _notLast: {
581
- marginBottom: '8px'
645
+ marginBottom: 2
582
646
  },
583
- color: colors.label.primary.light,
647
+ color: colors.text.primary,
584
648
  fontSize: typography.fontSizes.xs,
585
649
  fontWeight: typography.fontWeights.normal
586
650
  }, child);
587
651
  } else {
588
652
  return /*#__PURE__*/React__default.createElement(Box, {
589
- mt: "8px"
653
+ mt: 2
590
654
  }, child);
591
655
  }
592
656
  }));
@@ -739,6 +803,33 @@ var SpinnerButton = function SpinnerButton(_ref) {
739
803
  }, text);
740
804
  };
741
805
 
806
+ function _extends$6() {
807
+ _extends$6 = Object.assign ? Object.assign.bind() : function (target) {
808
+ for (var i = 1; i < arguments.length; i++) {
809
+ var source = arguments[i];
810
+ for (var key in source) {
811
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
812
+ target[key] = source[key];
813
+ }
814
+ }
815
+ }
816
+ return target;
817
+ };
818
+ return _extends$6.apply(this, arguments);
819
+ }
820
+ function _objectWithoutPropertiesLoose(source, excluded) {
821
+ if (source == null) return {};
822
+ var target = {};
823
+ var sourceKeys = Object.keys(source);
824
+ var key, i;
825
+ for (i = 0; i < sourceKeys.length; i++) {
826
+ key = sourceKeys[i];
827
+ if (excluded.indexOf(key) >= 0) continue;
828
+ target[key] = source[key];
829
+ }
830
+ return target;
831
+ }
832
+
742
833
  /**
743
834
  * A functional React component utilized to render the `Form` component, a form wrapper for
744
835
  * `react-hook-form`. The `Form` component is provided a `formHandler` and is used to wrap a container
@@ -749,7 +840,7 @@ function Form(_ref) {
749
840
  children = _ref.children;
750
841
  var form = formHandler.form,
751
842
  onSubmit = formHandler.onSubmit;
752
- return /*#__PURE__*/React__default.createElement(FormProvider, Object.assign({}, form), /*#__PURE__*/React__default.createElement("form", {
843
+ return /*#__PURE__*/React__default.createElement(FormProvider, _extends$6({}, form), /*#__PURE__*/React__default.createElement("form", {
753
844
  onSubmit: onSubmit
754
845
  }, children));
755
846
  }
@@ -780,33 +871,6 @@ var StackedCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
780
871
  }, label));
781
872
  });
782
873
 
783
- function _extends$6() {
784
- _extends$6 = Object.assign ? Object.assign.bind() : function (target) {
785
- for (var i = 1; i < arguments.length; i++) {
786
- var source = arguments[i];
787
- for (var key in source) {
788
- if (Object.prototype.hasOwnProperty.call(source, key)) {
789
- target[key] = source[key];
790
- }
791
- }
792
- }
793
- return target;
794
- };
795
- return _extends$6.apply(this, arguments);
796
- }
797
- function _objectWithoutPropertiesLoose(source, excluded) {
798
- if (source == null) return {};
799
- var target = {};
800
- var sourceKeys = Object.keys(source);
801
- var key, i;
802
- for (i = 0; i < sourceKeys.length; i++) {
803
- key = sourceKeys[i];
804
- if (excluded.indexOf(key) >= 0) continue;
805
- target[key] = source[key];
806
- }
807
- return target;
808
- }
809
-
810
874
  var _excluded = ["type", "isRequired", "rightElement", "leftElement", "defaultValue", "variant", "label"];
811
875
  /**
812
876
  * A functional React component utilized to render the `StackedInput` component.
@@ -824,7 +888,7 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
824
888
  props = _objectWithoutPropertiesLoose(_ref2, _excluded);
825
889
  var isMobile = variant === 'mobile';
826
890
  var placeholder = isMobile && label ? label : undefined;
827
- return /*#__PURE__*/React__default.createElement(InputGroup, null, leftElement && leftElement, label, /*#__PURE__*/React__default.createElement(Input$2, Object.assign({}, props, {
891
+ return /*#__PURE__*/React__default.createElement(InputGroup, null, leftElement && leftElement, label, /*#__PURE__*/React__default.createElement(Input$2, _extends$6({}, props, {
828
892
  placeholder: (_props$placeholder = props.placeholder) != null ? _props$placeholder : placeholder,
829
893
  type: type,
830
894
  isRequired: isRequired,
@@ -878,7 +942,7 @@ var Dropdown = function Dropdown(_ref) {
878
942
  px: "8px",
879
943
  py: "4px",
880
944
  width: "100%",
881
- color: colors.label.primary.light,
945
+ color: colors.text.primary,
882
946
  bg: "inherit",
883
947
  whiteSpace: "nowrap"
884
948
  }, /*#__PURE__*/React__default.createElement(Flex, {
@@ -896,7 +960,7 @@ var Dropdown = function Dropdown(_ref) {
896
960
  px: "8px",
897
961
  py: "4px",
898
962
  width: "100%",
899
- color: colors.label.primary.light,
963
+ color: colors.text.primary,
900
964
  bg: "inherit",
901
965
  whiteSpace: "nowrap"
902
966
  }, "No options");
@@ -907,7 +971,7 @@ var Dropdown = function Dropdown(_ref) {
907
971
  width: "100%",
908
972
  role: "combobox"
909
973
  }, option.value === 'section_header' && options[idx + 1] && options[idx + 1].value !== 'section_header' && /*#__PURE__*/React__default.createElement(Box, {
910
- color: colors.label.secondary.light,
974
+ color: colors.text.secondary,
911
975
  fontSize: "13px",
912
976
  width: "100%",
913
977
  fontWeight: "bold",
@@ -930,14 +994,14 @@ var Dropdown = function Dropdown(_ref) {
930
994
  px: "8px",
931
995
  py: "4px",
932
996
  width: "100%",
933
- color: optionIndex === idx ? colors.label.primary.dark : colors.label.primary.light,
997
+ color: optionIndex === idx ? colors.text.onAccent : colors.text.primary,
934
998
  _hover: {
935
- color: colors.label.primary.dark,
936
- bg: colors.fill.action,
999
+ color: colors.text.onAccent,
1000
+ bg: colors.action.solid,
937
1001
  borderRadius: '4px',
938
1002
  width: '100%'
939
1003
  },
940
- bg: optionIndex === idx ? colors.fill.action : 'inherit',
1004
+ bg: optionIndex === idx ? colors.action.solid : 'inherit',
941
1005
  whiteSpace: "nowrap",
942
1006
  id: option.value
943
1007
  }, option.label));
@@ -1181,7 +1245,7 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
1181
1245
  return /*#__PURE__*/React__default.createElement(Box, {
1182
1246
  ref: dropdownRef,
1183
1247
  position: "relative"
1184
- }, /*#__PURE__*/React__default.createElement(InputGroup, null, /*#__PURE__*/React__default.createElement(Input$2, Object.assign({
1248
+ }, /*#__PURE__*/React__default.createElement(InputGroup, null, /*#__PURE__*/React__default.createElement(Input$2, _extends$6({
1185
1249
  isRequired: isRequired
1186
1250
  }, props, {
1187
1251
  ref: _ref,
@@ -1223,7 +1287,7 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
1223
1287
  props = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
1224
1288
  var isMobile = variant === 'mobile';
1225
1289
  if (isMobile) {
1226
- return /*#__PURE__*/React__default.createElement(Flex, null, /*#__PURE__*/React__default.createElement(Textarea$1, Object.assign({
1290
+ return /*#__PURE__*/React__default.createElement(Flex, null, /*#__PURE__*/React__default.createElement(Textarea$1, _extends$6({
1227
1291
  ref: _ref
1228
1292
  }, props, {
1229
1293
  variant: variant,
@@ -1231,7 +1295,7 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
1231
1295
  placeholder: label != null ? label : ''
1232
1296
  })));
1233
1297
  }
1234
- return /*#__PURE__*/React__default.createElement(Textarea$1, Object.assign({
1298
+ return /*#__PURE__*/React__default.createElement(Textarea$1, _extends$6({
1235
1299
  ref: _ref
1236
1300
  }, props, {
1237
1301
  variant: variant,
@@ -1311,7 +1375,7 @@ var Token = function Token(_ref) {
1311
1375
  }, /*#__PURE__*/React__default.createElement(Text$2, {
1312
1376
  whiteSpace: "nowrap",
1313
1377
  wordBreak: "break-word",
1314
- color: colors.label.primary.light,
1378
+ color: colors.text.primary,
1315
1379
  fontSize: isMobile ? '17px' : '13px',
1316
1380
  lineHeight: "1.5",
1317
1381
  pr: "2px",
@@ -1356,6 +1420,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1356
1420
  var dropdownMenuRef = useRef(null);
1357
1421
  var scrollRef = useRef(null);
1358
1422
  var inputRef = useRef(null);
1423
+ var searchRef = useRef(null);
1359
1424
  var _useState = useState(false),
1360
1425
  isInit = _useState[0],
1361
1426
  setIsInit = _useState[1];
@@ -1464,7 +1529,8 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1464
1529
  });
1465
1530
  setLocalOptions(function (prevLocalOptions) {
1466
1531
  return [].concat(prevLocalOptions, [option]).sort(function (a, b) {
1467
- return a.sortValue - b.sortValue;
1532
+ var _a$sortValue, _b$sortValue;
1533
+ return ((_a$sortValue = a.sortValue) != null ? _a$sortValue : 0) - ((_b$sortValue = b.sortValue) != null ? _b$sortValue : 0);
1468
1534
  });
1469
1535
  });
1470
1536
  setLocalValues(function (prevLocalValues) {
@@ -1531,6 +1597,10 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1531
1597
  return element.label.toLowerCase().includes(searchValue.toLowerCase());
1532
1598
  }));
1533
1599
  }, [localOptions, searchValue]);
1600
+ useEffect(function () {
1601
+ var _searchRef$current;
1602
+ if (isFocussed) (_searchRef$current = searchRef.current) == null ? void 0 : _searchRef$current.focus();
1603
+ }, [isFocussed]);
1534
1604
  var handleInput = function handleInput(e) {
1535
1605
  var _filteredOptions$;
1536
1606
  var initialOptionIndex = ((_filteredOptions$ = filteredOptions[0]) == null ? void 0 : _filteredOptions$.value) === 'section_header' ? 1 : 0;
@@ -1593,7 +1663,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1593
1663
  }
1594
1664
  }));
1595
1665
  }) : /*#__PURE__*/React__default.createElement(Text$2, {
1596
- color: colors.label.secondary.light,
1666
+ color: colors.text.secondary,
1597
1667
  fontSize: "13px"
1598
1668
  }, placeholder)), /*#__PURE__*/React__default.createElement(Input$2, {
1599
1669
  padding: 0,
@@ -1624,7 +1694,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1624
1694
  optionIndex: optionIndex,
1625
1695
  loading: loadingOptions
1626
1696
  }, /*#__PURE__*/React__default.createElement(Input$2, {
1627
- autoFocus: true,
1697
+ ref: searchRef,
1628
1698
  value: searchValue,
1629
1699
  onChange: handleInput,
1630
1700
  disabled: loadingOptions
@@ -1675,11 +1745,11 @@ var StackedNumberInput = /*#__PURE__*/React__default.forwardRef(function (_ref,
1675
1745
  max: max,
1676
1746
  step: step,
1677
1747
  precision: precision,
1678
- onChange: function onChange(_, valueAsNumber) {
1748
+ onChange: function onChange(valueAsString, valueAsNumber) {
1679
1749
  return _onChange == null ? void 0 : _onChange({
1680
1750
  target: {
1681
1751
  name: name,
1682
- value: Number.isNaN(valueAsNumber) ? '' : precision === 0 ? String(Math.round(valueAsNumber)) : String(valueAsNumber)
1752
+ value: Number.isNaN(valueAsNumber) ? '' : precision === 0 ? String(Math.round(valueAsNumber)) : valueAsString
1683
1753
  }
1684
1754
  });
1685
1755
  },
@@ -1969,7 +2039,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1969
2039
  truncateLength: truncatePillLength
1970
2040
  }));
1971
2041
  }) : null, !lastestFormValueToArray.length && !isFocussed ? /*#__PURE__*/React__default.createElement(Text$2, {
1972
- color: colors.label.secondary.light,
2042
+ color: colors.text.secondary,
1973
2043
  fontSize: isMobile ? '17px' : '13px',
1974
2044
  pointerEvents: "none"
1975
2045
  }, placeholder) : null, !disabled && !scrollMode && /*#__PURE__*/React__default.createElement(Flex, {
@@ -1983,7 +2053,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1983
2053
  "float": "right",
1984
2054
  border: "none",
1985
2055
  height: "auto",
1986
- color: tokenIndex !== null ? 'transparent' : colors.label.primary,
2056
+ color: tokenIndex !== null ? 'transparent' : colors.text.primary,
1987
2057
  _focus: {
1988
2058
  boxShadow: 'none !important'
1989
2059
  },
@@ -1993,6 +2063,10 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1993
2063
  onFocus: function onFocus() {
1994
2064
  return setIsFocussed(true);
1995
2065
  },
2066
+ onBlur: function onBlur() {
2067
+ setIsFocussed(false);
2068
+ setTokenIndex(null);
2069
+ },
1996
2070
  fontSize: isMobile ? '17px' : '13px',
1997
2071
  lineHeight: 1.5,
1998
2072
  placeholder: isMobile && label && lastestFormValueToArray.length === 0 ? label : '',
@@ -2011,7 +2085,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
2011
2085
  "float": "right",
2012
2086
  border: "none",
2013
2087
  height: "auto",
2014
- color: tokenIndex !== null ? 'transparent' : colors.label.primary,
2088
+ color: tokenIndex !== null ? 'transparent' : colors.text.primary,
2015
2089
  _focus: {
2016
2090
  boxShadow: 'none !important'
2017
2091
  },
@@ -2021,6 +2095,10 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
2021
2095
  onFocus: function onFocus() {
2022
2096
  return setIsFocussed(true);
2023
2097
  },
2098
+ onBlur: function onBlur() {
2099
+ setIsFocussed(false);
2100
+ setTokenIndex(null);
2101
+ },
2024
2102
  placeholder: isMobile && label && lastestFormValueToArray.length === 0 ? label : '',
2025
2103
  variant: variant,
2026
2104
  style: isMobile ? {
@@ -2065,7 +2143,7 @@ var Label$1 = function Label(_ref) {
2065
2143
  ml: "0"
2066
2144
  }, label, isRequired && /*#__PURE__*/React__default.createElement(Box, {
2067
2145
  ml: 1,
2068
- color: colors.label.error
2146
+ color: colors.text.danger
2069
2147
  }, "*"), !!tooltipText && /*#__PURE__*/React__default.createElement(Popover$1, {
2070
2148
  trigger: "hover",
2071
2149
  placement: "top"
@@ -2074,7 +2152,7 @@ var Label$1 = function Label(_ref) {
2074
2152
  }, /*#__PURE__*/React__default.createElement(QuestionIcon, {
2075
2153
  boxSize: "13px",
2076
2154
  ml: 1,
2077
- color: colors.fill.action
2155
+ color: colors.action.solid
2078
2156
  }))), /*#__PURE__*/React__default.createElement(PopoverContent, null, /*#__PURE__*/React__default.createElement(PopoverArrow, null), /*#__PURE__*/React__default.createElement(PopoverBody, null, tooltipText))));
2079
2157
  };
2080
2158
 
@@ -2312,7 +2390,7 @@ function Input(_ref) {
2312
2390
  id: name,
2313
2391
  isInvalid: isInvalid,
2314
2392
  position: "relative",
2315
- py: !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && label || helperText || isInvalid ? 5 : 0
2393
+ py: !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && label || helperText ? 5 : 0
2316
2394
  }, label && !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && /*#__PURE__*/React__default.createElement(Label$1, {
2317
2395
  tooltipText: tooltipText,
2318
2396
  label: label,
@@ -2434,7 +2512,7 @@ var ChevronDown = function ChevronDown(_ref) {
2434
2512
  return /*#__PURE__*/React__default.createElement(Memo$9, {
2435
2513
  width: boxSize,
2436
2514
  height: boxSize,
2437
- fill: colors.fill.action
2515
+ fill: colors.action.solid
2438
2516
  });
2439
2517
  };
2440
2518
 
@@ -2965,7 +3043,7 @@ var Settings = function Settings(_ref) {
2965
3043
  return /*#__PURE__*/React__default.createElement(Memo$o, {
2966
3044
  width: boxSize,
2967
3045
  height: boxSize,
2968
- fill: colors.fill.action
3046
+ fill: colors.action.solid
2969
3047
  });
2970
3048
  };
2971
3049
 
@@ -3303,7 +3381,7 @@ var GearIcon = function GearIcon(_ref) {
3303
3381
  var boxSize = _ref.boxSize,
3304
3382
  color = _ref.color,
3305
3383
  props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
3306
- return /*#__PURE__*/React__default.createElement(Box, Object.assign({}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
3384
+ return /*#__PURE__*/React__default.createElement(Box, _extends$6({}, props), /*#__PURE__*/React__default.createElement("svg", _extends$6({
3307
3385
  xmlns: "http://www.w3.org/2000/svg",
3308
3386
  width: boxSize != null ? boxSize : 16,
3309
3387
  height: boxSize != null ? boxSize : 17,
@@ -3337,22 +3415,6 @@ function SelectNative(_ref) {
3337
3415
  onChange = _ref.onChange,
3338
3416
  setValue = _ref.setValue,
3339
3417
  props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3340
- // const [selectedOption, setSelectedOption] = useState(
3341
- // options ? options[0] ?? '' : ''
3342
- // );
3343
- var style = {
3344
- cursor: 'pointer',
3345
- color: 'var(--chakra-colors-blue-500)',
3346
- height: '48px',
3347
- fontSize: '17px',
3348
- lineHeight: '20px',
3349
- fontWeight: 400,
3350
- padding: '12px 16px 12px 0px',
3351
- borderRadius: 0,
3352
- border: '0.5px solid rgba(153, 153, 153, 0.1)',
3353
- borderLeft: 'none',
3354
- borderRight: 'none'
3355
- };
3356
3418
  var handleOnSelectItem = function handleOnSelectItem(e) {
3357
3419
  var selectedValue = e.target.value;
3358
3420
  var selectedOption = options == null ? void 0 : options.find(function (_ref2) {
@@ -3384,14 +3446,13 @@ function SelectNative(_ref) {
3384
3446
  isInvalid: isInvalid,
3385
3447
  position: "relative",
3386
3448
  py: 0
3387
- }, /*#__PURE__*/React__default.createElement(Select$1, Object.assign({}, props, {
3449
+ }, /*#__PURE__*/React__default.createElement(Select$1, _extends$6({}, props, {
3388
3450
  required: isRequired,
3389
3451
  ref: ref,
3390
3452
  value: value,
3391
3453
  disabled: disabled != null ? disabled : false,
3392
3454
  onChange: handleOnSelectItem,
3393
- defaultValue: defaultValue,
3394
- style: style
3455
+ defaultValue: defaultValue
3395
3456
  }), options && options.map(function (i) {
3396
3457
  return /*#__PURE__*/React__default.createElement("option", {
3397
3458
  value: i.value,
@@ -3517,7 +3578,7 @@ var Link = function Link(_ref) {
3517
3578
  }, getIcon, /*#__PURE__*/React__default.createElement(Text$2, {
3518
3579
  variant: "description-large",
3519
3580
  pl: "2px",
3520
- color: colors.fill.action
3581
+ color: colors.action.solid
3521
3582
  }, text));
3522
3583
  };
3523
3584
 
@@ -3541,7 +3602,7 @@ var LoadingIndicator = function LoadingIndicator(_ref) {
3541
3602
  className: "loading-indicator " + (className != null ? className : '')
3542
3603
  }, /*#__PURE__*/React__default.createElement(Spinner, {
3543
3604
  size: size,
3544
- color: colors.fill.action,
3605
+ color: colors.action.solid,
3545
3606
  flex: "none",
3546
3607
  thickness: thickness,
3547
3608
  speed: speed,
@@ -3580,7 +3641,7 @@ var NavigationMenuHeader = function NavigationMenuHeader(_ref) {
3580
3641
  height: "26px",
3581
3642
  width: "204px",
3582
3643
  fontSize: "12px",
3583
- color: colors.label.secondary.light
3644
+ color: colors.text.secondary
3584
3645
  }, label);
3585
3646
  };
3586
3647
 
@@ -3612,7 +3673,7 @@ var NavigationMenuItem = function NavigationMenuItem(_ref) {
3612
3673
  isExternal: true
3613
3674
  });
3614
3675
  }
3615
- return /*#__PURE__*/React__default.createElement(Link$2, Object.assign({}, reactRouterLinkProps, additionalProps, {
3676
+ return /*#__PURE__*/React__default.createElement(Link$2, _extends$6({}, reactRouterLinkProps, additionalProps, {
3616
3677
  onClick: onClick,
3617
3678
  display: "flex",
3618
3679
  alignItems: "center",
@@ -3621,7 +3682,7 @@ var NavigationMenuItem = function NavigationMenuItem(_ref) {
3621
3682
  px: "4px",
3622
3683
  height: "26px",
3623
3684
  width: "204px",
3624
- color: colors.label.primary,
3685
+ color: colors.text.primary,
3625
3686
  bg: isSelected ? colors.fill.light.quaternary : 'transparent',
3626
3687
  borderRadius: "4px",
3627
3688
  fontSize: "13px",
@@ -3672,7 +3733,7 @@ var NavigationMenu = function NavigationMenu(_ref) {
3672
3733
  }, menuItemGroup.groupHeader && /*#__PURE__*/React__default.createElement(NavigationMenuHeader, {
3673
3734
  label: menuItemGroup.groupHeader
3674
3735
  }), menuItemGroup.groupMenuItems.map(function (item, idx) {
3675
- return /*#__PURE__*/React__default.createElement(NavigationMenuItem, Object.assign({}, item, {
3736
+ return /*#__PURE__*/React__default.createElement(NavigationMenuItem, _extends$6({}, item, {
3676
3737
  key: idx,
3677
3738
  isSelected: _selectedMenuItem === item.label,
3678
3739
  onClick: function onClick() {
@@ -3680,7 +3741,7 @@ var NavigationMenu = function NavigationMenu(_ref) {
3680
3741
  }
3681
3742
  }));
3682
3743
  }));
3683
- }), bottomMenuItem && /*#__PURE__*/React__default.createElement(NavigationMenuItem, Object.assign({}, bottomMenuItem, {
3744
+ }), bottomMenuItem && /*#__PURE__*/React__default.createElement(NavigationMenuItem, _extends$6({}, bottomMenuItem, {
3684
3745
  key: bottomMenuItem.label,
3685
3746
  isSelected: true,
3686
3747
  onClick: function onClick() {
@@ -3714,14 +3775,14 @@ var TableLoadingRows = function TableLoadingRows(_ref) {
3714
3775
  borderTopColor: colors.fill.light.quaternary
3715
3776
  }, isLoading ? /*#__PURE__*/React__default.createElement(Spinner, {
3716
3777
  size: "lg",
3717
- color: colors.fill.action
3778
+ color: colors.action.solid
3718
3779
  }) : /*#__PURE__*/React__default.createElement(IconButton, {
3719
3780
  "aria-label": "Fetch more rows",
3720
3781
  icon: /*#__PURE__*/React__default.createElement(HiOutlineRefresh, null),
3721
3782
  fontSize: typography.fontSizes['3xl'],
3722
3783
  bg: "transparent",
3723
3784
  shadow: "none",
3724
- color: colors.fill.action,
3785
+ color: colors.action.solid,
3725
3786
  type: "button",
3726
3787
  variant: "outline",
3727
3788
  onClick: onLoadMore
@@ -3801,7 +3862,7 @@ function SimpleTable(_ref) {
3801
3862
  }
3802
3863
  }, (headers || columnsWidths) && /*#__PURE__*/React__default.createElement(Thead, null, /*#__PURE__*/React__default.createElement(Tr, {
3803
3864
  _odd: {
3804
- bg: colors.label.primary.dark
3865
+ bg: colors.surface.canvas
3805
3866
  }
3806
3867
  }, columnsAsConst.map(function (column, idx) {
3807
3868
  return /*#__PURE__*/React__default.createElement(Th, {
@@ -3889,9 +3950,9 @@ var shadows = {
3889
3950
  lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
3890
3951
  xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
3891
3952
  '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
3892
- insetOutline: "inset 0 0 0 2px " + colors.fill.action,
3893
- outline: "0 0 0 2px " + colors.fill.action,
3894
- outlineDanger600: "0 0 0 2px " + colors.fill.error,
3953
+ insetOutline: "inset 0 0 0 2px " + colors.action.solid,
3954
+ outline: "0 0 0 2px " + colors.action.solid,
3955
+ outlineDanger600: "0 0 0 2px " + colors.action.danger,
3895
3956
  inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
3896
3957
  none: 'none',
3897
3958
  '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'
@@ -3907,28 +3968,28 @@ var baseStyle = {
3907
3968
  width: '100%',
3908
3969
  fontSize: '13px',
3909
3970
  textAlign: 'left',
3910
- color: colors.label.primary.light,
3971
+ color: colors.text.primary,
3911
3972
  lineHeight: '16px'
3912
3973
  }
3913
3974
  };
3914
3975
  function variantPositive() {
3915
3976
  return {
3916
3977
  container: {
3917
- bg: colors.fill.success
3978
+ bg: colors.status.success.fill
3918
3979
  }
3919
3980
  };
3920
3981
  }
3921
3982
  function variantWarning() {
3922
3983
  return {
3923
3984
  container: {
3924
- bg: colors.fill.warning
3985
+ bg: colors.status.warning.fill
3925
3986
  }
3926
3987
  };
3927
3988
  }
3928
3989
  function variantError() {
3929
3990
  return {
3930
3991
  container: {
3931
- bg: colors.fill.error
3992
+ bg: colors.status.danger.fill
3932
3993
  }
3933
3994
  };
3934
3995
  }
@@ -4010,8 +4071,8 @@ var baseStyle$2 = /*#__PURE__*/defineStyle({
4010
4071
  borderRadius: '4px',
4011
4072
  fontSize: '13px',
4012
4073
  fontWeight: 400,
4013
- bg: colors.fill.action,
4014
- color: colors.label.primary.dark,
4074
+ bg: colors.action.solid,
4075
+ color: colors.text.onAccent,
4015
4076
  h: '26px',
4016
4077
  border: 'none',
4017
4078
  px: '8px',
@@ -4025,11 +4086,11 @@ var baseStyle$2 = /*#__PURE__*/defineStyle({
4025
4086
  pointerEvents: 'none'
4026
4087
  },
4027
4088
  _hover: {
4028
- bg: colors.fill.action
4089
+ bg: colors.action.solid
4029
4090
  },
4030
4091
  _active: {
4031
- color: colors.label.primary.dark,
4032
- bg: colors.fill.action,
4092
+ color: colors.text.onAccent,
4093
+ bg: colors.action.solid,
4033
4094
  bgGradient: colors.fill.light.quaternary
4034
4095
  },
4035
4096
  _focus: {
@@ -4043,66 +4104,66 @@ var variantPrimary = function variantPrimary() {
4043
4104
  var variantSecondary = function variantSecondary() {
4044
4105
  return _extends$6({}, baseStyle$2, {
4045
4106
  color: colors.black,
4046
- bg: colors.label.primary.dark,
4107
+ bg: colors.surface.canvas,
4047
4108
  _hover: {
4048
- bg: colors.label.primary.dark
4109
+ bg: colors.surface.canvas
4049
4110
  },
4050
4111
  _active: {
4051
4112
  color: colors.black,
4052
- bg: colors.label.primary.dark,
4113
+ bg: colors.surface.canvas,
4053
4114
  bgGradient: colors.fill.light.quaternary
4054
4115
  },
4055
4116
  _focus: {
4056
- bg: colors.label.primary.dark
4117
+ bg: colors.surface.canvas
4057
4118
  }
4058
4119
  });
4059
4120
  };
4060
4121
  var variantTertiary = function variantTertiary() {
4061
4122
  return _extends$6({}, baseStyle$2, {
4062
- color: colors.label.primary.dark,
4063
- bg: colors.blur.quaternary.dark,
4123
+ color: colors.text.onAccent,
4124
+ bg: colors.fill.dark.subtle,
4064
4125
  _hover: {
4065
- bg: colors.blur.quaternary.dark
4126
+ bg: colors.fill.dark.subtle
4066
4127
  },
4067
4128
  _active: {
4068
- color: colors.label.primary.dark,
4069
- bg: colors.blur.tertiary.dark
4129
+ color: colors.text.onAccent,
4130
+ bg: colors.fill.dark.strong
4070
4131
  },
4071
4132
  _focus: {
4072
- color: colors.label.primary.dark,
4073
- bg: colors.blur.quaternary.dark
4133
+ color: colors.text.onAccent,
4134
+ bg: colors.fill.dark.subtle
4074
4135
  },
4075
4136
  _disabled: {
4076
- backgroundColor: colors.blur.quaternary.dark,
4077
- color: colors.blur.tertiary.dark
4137
+ backgroundColor: colors.fill.dark.subtle,
4138
+ color: 'gray.500'
4078
4139
  }
4079
4140
  });
4080
4141
  };
4081
4142
  var variantDanger = function variantDanger() {
4082
4143
  return _extends$6({}, baseStyle$2, {
4083
4144
  fontWeight: '400',
4084
- color: colors.label.primary.dark,
4085
- bg: colors.label.error,
4145
+ color: colors.text.onAccent,
4146
+ bg: colors.action.danger,
4086
4147
  _hover: {
4087
- bg: colors.label.error
4148
+ bg: colors.action.danger
4088
4149
  },
4089
4150
  _active: {
4090
- color: colors.label.primary.dark,
4091
- bg: colors.label.error
4151
+ color: colors.text.onAccent,
4152
+ bg: colors.action.danger
4092
4153
  },
4093
4154
  _focus: {
4094
- color: colors.label.primary.dark,
4095
- bg: colors.label.error
4155
+ color: colors.text.onAccent,
4156
+ bg: colors.action.danger
4096
4157
  },
4097
4158
  _disabled: {
4098
- backgroundColor: colors.label.error,
4099
- color: colors.label.secondary.light
4159
+ backgroundColor: colors.action.danger,
4160
+ color: colors.text.secondary
4100
4161
  }
4101
4162
  });
4102
4163
  };
4103
4164
  var variantPrimaryFlat = function variantPrimaryFlat() {
4104
4165
  return _extends$6({}, baseStyle$2, {
4105
- bg: colors.fill.action,
4166
+ bg: colors.action.solid,
4106
4167
  bgGradient: null,
4107
4168
  minWidth: '120px',
4108
4169
  padding: '10px 16px',
@@ -4123,61 +4184,61 @@ var variantSecondaryFlat = function variantSecondaryFlat() {
4123
4184
  return _extends$6({}, variantPrimaryFlat(), {
4124
4185
  fontWeight: '400',
4125
4186
  color: colors.black,
4126
- bg: colors.label.primary.dark,
4187
+ bg: colors.surface.canvas,
4127
4188
  _hover: {
4128
- bg: colors.label.primary.dark
4189
+ bg: colors.surface.canvas
4129
4190
  },
4130
4191
  _active: {
4131
4192
  color: colors.black,
4132
- bg: colors.label.primary.dark,
4193
+ bg: colors.surface.canvas,
4133
4194
  bgGradient: colors.fill.light.quaternary
4134
4195
  },
4135
4196
  _focus: {
4136
- bg: colors.label.primary.dark
4197
+ bg: colors.surface.canvas
4137
4198
  }
4138
4199
  });
4139
4200
  };
4140
4201
  var variantTertiaryFlat = function variantTertiaryFlat() {
4141
4202
  return _extends$6({}, variantPrimaryFlat(), {
4142
4203
  fontWeight: '400',
4143
- color: colors.label.primary.dark,
4144
- bg: colors.blur.quaternary.dark,
4204
+ color: colors.text.onAccent,
4205
+ bg: colors.fill.dark.subtle,
4145
4206
  _hover: {
4146
- bg: colors.blur.quaternary.dark
4207
+ bg: colors.fill.dark.subtle
4147
4208
  },
4148
4209
  _active: {
4149
- color: colors.label.primary.dark,
4150
- bg: colors.blur.tertiary.dark
4210
+ color: colors.text.onAccent,
4211
+ bg: colors.fill.dark.strong
4151
4212
  },
4152
4213
  _focus: {
4153
- color: colors.label.primary.dark,
4154
- bg: colors.blur.quaternary.dark
4214
+ color: colors.text.onAccent,
4215
+ bg: colors.fill.dark.subtle
4155
4216
  },
4156
4217
  _disabled: {
4157
- backgroundColor: colors.blur.quaternary.dark,
4158
- color: colors.blur.tertiary.dark
4218
+ backgroundColor: colors.fill.dark.subtle,
4219
+ color: 'gray.500'
4159
4220
  }
4160
4221
  });
4161
4222
  };
4162
4223
  var variantDangerFlat = function variantDangerFlat() {
4163
4224
  return _extends$6({}, variantPrimaryFlat(), {
4164
4225
  fontWeight: '400',
4165
- color: colors.label.primary.dark,
4166
- bg: colors.label.error,
4226
+ color: colors.text.onAccent,
4227
+ bg: colors.action.danger,
4167
4228
  _hover: {
4168
- bg: colors.label.error
4229
+ bg: colors.action.danger
4169
4230
  },
4170
4231
  _active: {
4171
- color: colors.label.primary.dark,
4172
- bg: colors.label.error
4232
+ color: colors.text.onAccent,
4233
+ bg: colors.action.danger
4173
4234
  },
4174
4235
  _focus: {
4175
- color: colors.label.primary.dark,
4176
- bg: colors.label.error
4236
+ color: colors.text.onAccent,
4237
+ bg: colors.action.danger
4177
4238
  },
4178
4239
  _disabled: {
4179
- backgroundColor: colors.label.error,
4180
- color: colors.label.secondary.light
4240
+ backgroundColor: colors.action.danger,
4241
+ color: colors.text.secondary
4181
4242
  }
4182
4243
  });
4183
4244
  };
@@ -4240,14 +4301,14 @@ var parts$1 = ['requiredIndicator', 'helperText'];
4240
4301
  function baseStyleRequiredIndicator() {
4241
4302
  return {
4242
4303
  ml: 1,
4243
- color: colors.label.error
4304
+ color: colors.text.danger
4244
4305
  };
4245
4306
  }
4246
4307
  function baseStyleHelperText() {
4247
4308
  return {
4248
4309
  // mt: 1,
4249
4310
  ml: 1,
4250
- color: colors.label.secondary.light,
4311
+ color: colors.text.secondary,
4251
4312
  fontSize: '11px'
4252
4313
  };
4253
4314
  }
@@ -4265,10 +4326,8 @@ var Form$1 = {
4265
4326
  var parts$2 = ['text', 'icon'];
4266
4327
  function baseStyleText() {
4267
4328
  return {
4268
- color: colors.label.error,
4269
- position: 'absolute',
4270
- bottom: 0,
4271
- // mt: 1,
4329
+ color: colors.text.danger,
4330
+ mt: 1,
4272
4331
  ml: 1,
4273
4332
  fontSize: '11px'
4274
4333
  };
@@ -4276,7 +4335,7 @@ function baseStyleText() {
4276
4335
  function baseStyleIcon() {
4277
4336
  return {
4278
4337
  ml: 1,
4279
- color: colors.label.error
4338
+ color: colors.text.danger
4280
4339
  };
4281
4340
  }
4282
4341
  var baseStyle$5 = function baseStyle() {
@@ -4298,7 +4357,7 @@ var baseStyle$6 = {
4298
4357
  display: 'flex',
4299
4358
  ml: 1,
4300
4359
  // mb: 1,
4301
- color: colors.label.primary.light,
4360
+ color: colors.text.primary,
4302
4361
  opacity: 1
4303
4362
  };
4304
4363
  var FormLabel = {
@@ -4311,7 +4370,7 @@ var baseStyle$7 = {
4311
4370
  fontSize: '13px',
4312
4371
  h: '26px',
4313
4372
  '::placeholder': {
4314
- color: colors.label.secondary.light
4373
+ color: colors.text.secondary
4315
4374
  },
4316
4375
  py: '5px',
4317
4376
  px: '8px',
@@ -4321,7 +4380,7 @@ var baseStyle$7 = {
4321
4380
  opacity: 1,
4322
4381
  cursor: 'not-allowed',
4323
4382
  bg: colors.fill.light.quaternary,
4324
- color: colors.label.secondary.light,
4383
+ color: colors.text.secondary,
4325
4384
  border: '1px solid',
4326
4385
  borderColor: '#9999991A'
4327
4386
  },
@@ -4331,7 +4390,7 @@ var baseStyle$7 = {
4331
4390
  borderColor: colors.border.focus
4332
4391
  },
4333
4392
  _placeholder: {
4334
- color: colors.label.secondary.light
4393
+ color: colors.text.secondary
4335
4394
  }
4336
4395
  }
4337
4396
  };
@@ -4367,7 +4426,7 @@ var Input$1 = {
4367
4426
  };
4368
4427
 
4369
4428
  var baseStyle$8 = {
4370
- color: colors.fill.action,
4429
+ color: colors.action.solid,
4371
4430
  textDecoration: 'underline',
4372
4431
  transition: 'none',
4373
4432
  _hover: {
@@ -4378,7 +4437,6 @@ function variantSidebar() {
4378
4437
  return {
4379
4438
  display: 'flex',
4380
4439
  alignItems: 'center',
4381
- // height: '56px',
4382
4440
  pl: 4,
4383
4441
  pr: 4,
4384
4442
  py: 2,
@@ -4404,20 +4462,13 @@ function variantSidebar() {
4404
4462
  // and not only for a child sub route match. I did it as a separate variant instead of a
4405
4463
  // prop to get around React complaining that the dom element was not recognized.
4406
4464
  function variantSidebarExact() {
4407
- // props: Dict
4408
4465
  var base = variantSidebar();
4409
- // const { theme } = props;
4410
- // const primaryColor = getColor(theme, 'primary.500');
4411
4466
  return _extends$6({}, base, {
4412
- '&.active': {
4413
- // ...base['&.active'],
4414
- // boxShadow: `inset 3px 0 0 0 ${primaryColor}`,
4415
- }
4467
+ '&.active': {}
4416
4468
  });
4417
4469
  }
4418
- function variantSubNavigation(props) {
4419
- var theme = props.theme;
4420
- var primaryColor = getColor(theme, 'primary.500');
4470
+ function variantSubNavigation(_props) {
4471
+ var primaryColor = colors.action.solid;
4421
4472
  return {
4422
4473
  display: 'block',
4423
4474
  pl: 10,
@@ -4501,7 +4552,7 @@ function baseStyleItem(props) {
4501
4552
  transition: 'background 50ms ease-in 0s',
4502
4553
  _hover: {
4503
4554
  color: colors.white,
4504
- background: colors.fill.action
4555
+ background: colors.action.solid
4505
4556
  },
4506
4557
  _active: {
4507
4558
  bg: mode("gray.200", "whiteAlpha.200")(props)
@@ -4539,30 +4590,34 @@ var Menu$1 = {
4539
4590
 
4540
4591
  var parts$5 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
4541
4592
  var baseStyle$a = {
4542
- width: 'fit-content',
4543
- height: 'fit-content',
4544
- background: '#F6F6F6',
4545
- backdropFilter: 'blur(25px)',
4593
+ overlay: {
4594
+ backdropFilter: 'blur(25px)'
4595
+ },
4596
+ dialog: {
4597
+ width: 'fit-content',
4598
+ height: 'fit-content',
4599
+ background: colors.coolGray
4600
+ },
4546
4601
  header: {
4547
- pt: '32px',
4548
- px: '32px',
4549
- pb: '16px',
4602
+ pt: 8,
4603
+ px: 8,
4604
+ pb: 4,
4550
4605
  fontSize: '18px',
4551
4606
  fontWeight: 600,
4552
4607
  lineHeight: '26px'
4553
4608
  },
4554
4609
  body: {
4555
4610
  pt: 0,
4556
- pb: '32px',
4557
- px: '32px',
4611
+ pb: 8,
4612
+ px: 8,
4558
4613
  fontSize: '13px',
4559
4614
  fontWeight: 400,
4560
4615
  lineHeight: '16px',
4561
4616
  whiteSpace: 'pre-line'
4562
4617
  },
4563
4618
  footer: {
4564
- py: '16px',
4565
- px: '32px',
4619
+ py: 4,
4620
+ px: 8,
4566
4621
  display: 'flex',
4567
4622
  justifyContent: 'flex-end',
4568
4623
  width: '100%'
@@ -4706,10 +4761,10 @@ var Switch = {
4706
4761
  var parts$8 = ['th', 'td', 'tr', 'body', 'thead'];
4707
4762
  var baseStyle$d = {
4708
4763
  thead: {
4709
- bg: colors.label.primary.dark
4764
+ bg: colors.surface.canvas
4710
4765
  },
4711
4766
  th: {
4712
- bg: colors.label.primary.dark,
4767
+ bg: colors.surface.canvas,
4713
4768
  padding: '5px 8px !important',
4714
4769
  fontSize: '13px'
4715
4770
  },
@@ -4790,7 +4845,7 @@ var baseStyle$e = function baseStyle(props) {
4790
4845
  var sizes$1 = {
4791
4846
  sm: {
4792
4847
  tab: {
4793
- py: '0.25rem',
4848
+ py: 1,
4794
4849
  px: 6,
4795
4850
  fontSize: '0.85rem'
4796
4851
  }
@@ -4798,7 +4853,7 @@ var sizes$1 = {
4798
4853
  md: {
4799
4854
  tab: {
4800
4855
  fontSize: '1rem',
4801
- py: '0.75rem',
4856
+ py: 3,
4802
4857
  px: 6
4803
4858
  }
4804
4859
  },
@@ -4808,7 +4863,7 @@ var sizes$1 = {
4808
4863
  base: '1rem',
4809
4864
  sm: '1.15rem'
4810
4865
  },
4811
- py: '0.75rem',
4866
+ py: 3,
4812
4867
  px: 6
4813
4868
  }
4814
4869
  }
@@ -4927,12 +4982,12 @@ var variantSimple = {
4927
4982
  position: 'relative',
4928
4983
  borderColor: 'transparent',
4929
4984
  '&.active': {
4930
- color: colors.fill.action,
4985
+ color: colors.action.solid,
4931
4986
  bg: 'transparent',
4932
- borderBottom: "1px solid " + colors.fill.action
4987
+ borderBottom: "1px solid " + colors.action.solid
4933
4988
  },
4934
4989
  _selected: {
4935
- color: colors.fill.action,
4990
+ color: colors.action.solid,
4936
4991
  bg: 'transparent',
4937
4992
  _after: {
4938
4993
  content: '""',
@@ -5111,9 +5166,6 @@ var styles = {
5111
5166
  },
5112
5167
  '*, *::before, *::after': {
5113
5168
  borderColor: 'gray.200'
5114
- },
5115
- '*::placeholder': {
5116
- color: 'primary'
5117
5169
  }
5118
5170
  }
5119
5171
  };
@@ -5197,7 +5249,7 @@ var ToolbarBreadcrumbItem = function ToolbarBreadcrumbItem(_ref) {
5197
5249
  return pageLabel;
5198
5250
  }, [breakpoint1512, breakpoint400, breakpoint600, breakpoint800, page, pageLabel]);
5199
5251
  return /*#__PURE__*/React__default.createElement(Box, {
5200
- color: page === 'current' ? colors.label.primary.light : colors.label.secondary.light,
5252
+ color: page === 'current' ? colors.text.primary : colors.text.secondary,
5201
5253
  fontSize: "13px",
5202
5254
  letterSpacing: "0.02em",
5203
5255
  onClick: onClick,
@@ -5432,12 +5484,12 @@ var Toast = function Toast(_ref) {
5432
5484
  }, Icon), /*#__PURE__*/React__default.createElement(Text$2, {
5433
5485
  pr: "16px",
5434
5486
  fontSize: "13px",
5435
- color: colors.label.primary.dark
5487
+ color: colors.text.onAccent
5436
5488
  }, message), onClick && buttonText && /*#__PURE__*/React__default.createElement(Flex, {
5437
5489
  ml: "auto",
5438
5490
  justifyContent: "flex-end"
5439
5491
  }, /*#__PURE__*/React__default.createElement(Button$2, {
5440
- color: colors.fill.action,
5492
+ color: colors.action.solid,
5441
5493
  style: {
5442
5494
  background: 'transparent',
5443
5495
  border: 'transparent',
@@ -5458,7 +5510,7 @@ var useToast = function useToast() {
5458
5510
  return toast({
5459
5511
  position: props.position,
5460
5512
  render: function render() {
5461
- return /*#__PURE__*/React__default.createElement(Toast, Object.assign({}, props));
5513
+ return /*#__PURE__*/React__default.createElement(Toast, _extends$6({}, props));
5462
5514
  }
5463
5515
  });
5464
5516
  }, [toast]);
@@ -5486,5 +5538,5 @@ function formatErrorResponse(error) {
5486
5538
  };
5487
5539
  }
5488
5540
 
5489
- export { ActionRow, Banner, Breadcrumbs, Button, Card, Checkmark, ChevronDown, ChevronRight, Clock, Close, Dropdown$1 as Dropdown, Error$1 as Error, FileFill, FileOutline, FolderAddFill, FolderAddOutline, FolderFill, FolderOutline, Form, FormSection, GearIcon, Google, GoogleButton, GoogleDrive, Group, Home, Image, Input, Label$1 as Label, Layout, Link, LoadingIndicator, Menu, Microsoft, MicrosoftButton, MicrosoftOneDrive, Modal, NavigationMenu, Neutral, Page, Positive, Question, Search, SelectNative, Services, Settings, SimpleTable, SpinnerButton, TableFill, TableOutline, TabsWrapper, Task, Text, Toolbar, Trash, Vault, Video, Warning, Workspace, XQThemeProvider, colors, formatErrorResponse, useToast };
5541
+ export { ActionRow, Banner, Breadcrumbs, Button, Card, Checkmark, ChevronDown, ChevronRight, Clock, Close, Dropdown$1 as Dropdown, Error$1 as Error, FileFill, FileOutline, FolderAddFill, FolderAddOutline, FolderFill, FolderOutline, Form, FormSection, GearIcon, Google, GoogleButton, GoogleDrive, Group, Home, Image, Input, Label$1 as Label, Layout, Link, LoadingIndicator, Menu, Microsoft, MicrosoftButton, MicrosoftOneDrive, Modal, NavigationMenu, Neutral, Page, Positive, Question, Search, SelectNative, Services, Settings, SimpleTable, SpinnerButton, TableFill, TableOutline, TabsWrapper, Task, Text, Toolbar, Trash, Vault, Video, Warning, Workspace, XQThemeProvider, colors, formatErrorResponse, tokens, useToast };
5490
5542
  //# sourceMappingURL=ui-core.esm.js.map