@vygruppen/spor-react 13.0.2 → 13.1.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 (75) hide show
  1. package/.turbo/turbo-build.log +25 -25
  2. package/.turbo/turbo-postinstall.log +4 -4
  3. package/CHANGELOG.md +21 -0
  4. package/dist/index.cjs +554 -397
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +194 -181
  7. package/dist/index.d.ts +194 -181
  8. package/dist/index.mjs +556 -399
  9. package/dist/index.mjs.map +1 -1
  10. package/package.json +4 -8
  11. package/src/alert/AlertIcon.tsx +2 -2
  12. package/src/alert/ServiceAlert.tsx +2 -1
  13. package/src/calendar/CalendarCell.tsx +4 -4
  14. package/src/datepicker/CalendarHeader.tsx +1 -1
  15. package/src/dialog/Drawer.tsx +1 -1
  16. package/src/input/CardSelect.tsx +4 -4
  17. package/src/input/Combobox.tsx +1 -1
  18. package/src/input/Field.tsx +1 -1
  19. package/src/input/InputChip.tsx +33 -0
  20. package/src/input/PasswordInput.tsx +2 -1
  21. package/src/input/Popover.tsx +9 -7
  22. package/src/input/Select.tsx +44 -7
  23. package/src/input/index.ts +1 -0
  24. package/src/linjetag/LineIcon.tsx +1 -1
  25. package/src/loader/ColorInlineLoader.tsx +2 -1
  26. package/src/loader/ColorSpinner.tsx +2 -1
  27. package/src/loader/ContentLoader.tsx +2 -1
  28. package/src/loader/DarkFullScreenLoader.tsx +2 -1
  29. package/src/loader/DarkInlineLoader.tsx +2 -1
  30. package/src/loader/DarkSpinner.tsx +2 -1
  31. package/src/loader/LightFullScreenLoader.tsx +2 -1
  32. package/src/loader/LightInlineLoader.tsx +2 -1
  33. package/src/loader/LightSpinner.tsx +2 -1
  34. package/src/loader/Lottie.tsx +3 -2
  35. package/src/loader/text.ts +15 -0
  36. package/src/stepper/StepperStep.tsx +2 -2
  37. package/src/theme/recipes/badge.ts +24 -24
  38. package/src/theme/recipes/button.ts +22 -22
  39. package/src/theme/recipes/close-button.ts +2 -2
  40. package/src/theme/recipes/input.ts +9 -9
  41. package/src/theme/recipes/link.ts +1 -1
  42. package/src/theme/recipes/pressable-card.ts +12 -12
  43. package/src/theme/recipes/skeleton.ts +1 -1
  44. package/src/theme/recipes/static-card.ts +8 -8
  45. package/src/theme/semantic-tokens/colors.ts +1 -1
  46. package/src/theme/slot-recipes/accordion.ts +10 -10
  47. package/src/theme/slot-recipes/alert-expandable.ts +35 -35
  48. package/src/theme/slot-recipes/alert-service.ts +10 -10
  49. package/src/theme/slot-recipes/alert.ts +11 -11
  50. package/src/theme/slot-recipes/anatomy.ts +2 -0
  51. package/src/theme/slot-recipes/autocomplete.ts +5 -5
  52. package/src/theme/slot-recipes/breadcrumb.ts +4 -4
  53. package/src/theme/slot-recipes/checkbox.ts +11 -17
  54. package/src/theme/slot-recipes/choice-chip.ts +21 -21
  55. package/src/theme/slot-recipes/datepicker.ts +29 -29
  56. package/src/theme/slot-recipes/field.ts +3 -3
  57. package/src/theme/slot-recipes/floating-action-button.ts +14 -14
  58. package/src/theme/slot-recipes/index.ts +2 -0
  59. package/src/theme/slot-recipes/input-chip.ts +118 -0
  60. package/src/theme/slot-recipes/listbox.ts +9 -9
  61. package/src/theme/slot-recipes/media-controller-button.ts +9 -9
  62. package/src/theme/slot-recipes/menu.ts +7 -7
  63. package/src/theme/slot-recipes/numeric-stepper.ts +4 -4
  64. package/src/theme/slot-recipes/pagination.ts +4 -4
  65. package/src/theme/slot-recipes/popover.ts +4 -4
  66. package/src/theme/slot-recipes/progress-bar.ts +2 -2
  67. package/src/theme/slot-recipes/progress-indicator.ts +1 -1
  68. package/src/theme/slot-recipes/radio-card.ts +11 -11
  69. package/src/theme/slot-recipes/radio.ts +5 -5
  70. package/src/theme/slot-recipes/select.ts +16 -16
  71. package/src/theme/slot-recipes/stepper.ts +5 -5
  72. package/src/theme/slot-recipes/switch.ts +6 -6
  73. package/src/theme/slot-recipes/table.ts +2 -2
  74. package/src/theme/slot-recipes/tabs.ts +18 -18
  75. package/src/theme/slot-recipes/toast.ts +3 -3
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@ var spor_icon_react_star = require('@vygruppen/spor-icon-react');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var React13 = require('react');
7
7
  var sporLoader = require('@vygruppen/spor-loader');
8
- var ReactLottie = require('lottie-react');
8
+ var lottieReact = require('lottie-react');
9
9
  var usehooksTs = require('usehooks-ts');
10
10
  var reactAria = require('react-aria');
11
11
  var date = require('@internationalized/date');
@@ -44,7 +44,6 @@ function _interopNamespace(e) {
44
44
 
45
45
  var spor_icon_react_star__namespace = /*#__PURE__*/_interopNamespace(spor_icon_react_star);
46
46
  var React13__namespace = /*#__PURE__*/_interopNamespace(React13);
47
- var ReactLottie__default = /*#__PURE__*/_interopDefault(ReactLottie);
48
47
  var tokens22__namespace = /*#__PURE__*/_interopNamespace(tokens22);
49
48
  var tokens4__default = /*#__PURE__*/_interopDefault(tokens4);
50
49
 
@@ -232,8 +231,23 @@ function createTexts(texts27) {
232
231
  return texts27;
233
232
  }
234
233
  function Lottie({ animationData }) {
235
- return /* @__PURE__ */ jsxRuntime.jsx(ReactLottie__default.default, { animationData });
234
+ const { View } = lottieReact.useLottie({ animationData });
235
+ return View;
236
236
  }
237
+
238
+ // src/loader/text.ts
239
+ var useGetLoadingText = () => {
240
+ const { t } = useTranslation();
241
+ return t(loadingText.loading);
242
+ };
243
+ var loadingText = createTexts({
244
+ loading: {
245
+ en: "Loading",
246
+ nb: "Laster",
247
+ nn: "Lastar",
248
+ sv: "Laddar"
249
+ }
250
+ });
237
251
  var ColorInlineLoader = ({
238
252
  width,
239
253
  maxWidth,
@@ -241,7 +255,7 @@ var ColorInlineLoader = ({
241
255
  }) => {
242
256
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { role: "status", "aria-live": "polite", ...props, children: [
243
257
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderColorData }) }) }),
244
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
258
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: useGetLoadingText() })
245
259
  ] });
246
260
  };
247
261
  var ColorSpinner = ({
@@ -252,14 +266,14 @@ var ColorSpinner = ({
252
266
  }) => {
253
267
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { flexDirection: "column", role: "status", "aria-live": "polite", ...props, children: [
254
268
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.spinnerColorData }) }) }),
255
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." }),
269
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: useGetLoadingText() }),
256
270
  children && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { marginTop: 3, fontWeight: "bold", children })
257
271
  ] });
258
272
  };
259
273
  var ContentLoader = ({ children, ...props }) => {
260
274
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { role: "status", "aria-live": "polite", ...props, children: [
261
275
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { maxWidth: "140px", marginX: "auto", children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.contentLoaderData }) }) }),
262
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." }),
276
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: useGetLoadingText() }),
263
277
  children && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { textAlign: "center", fontWeight: "bold", children })
264
278
  ] });
265
279
  };
@@ -279,7 +293,7 @@ var DarkFullScreenLoader = ({
279
293
  ...props,
280
294
  children: [
281
295
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.fullScreenLoaderWhiteData }) }) }),
282
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
296
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: useGetLoadingText() })
283
297
  ]
284
298
  }
285
299
  );
@@ -291,7 +305,7 @@ var DarkInlineLoader = ({
291
305
  }) => {
292
306
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { role: "status", "aria-live": "polite", ...props, children: [
293
307
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderDarkData }) }) }),
294
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
308
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: useGetLoadingText() })
295
309
  ] });
296
310
  };
297
311
  var DarkSpinner = ({
@@ -304,7 +318,7 @@ var DarkSpinner = ({
304
318
  const spinnerData = colorMode === "dark" ? sporLoader.spinnerLightData : sporLoader.spinnerDarkData;
305
319
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { flexDirection: "column", role: "status", "aria-live": "polite", ...props, children: [
306
320
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: spinnerData }) }) }),
307
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." }),
321
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: useGetLoadingText() }),
308
322
  children && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { marginTop: 3, fontWeight: "bold", children })
309
323
  ] });
310
324
  };
@@ -315,7 +329,7 @@ var LightFullScreenLoader = ({
315
329
  }) => {
316
330
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { height: "100%", role: "status", "aria-live": "polite", ...props, children: [
317
331
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.fullScreenLoaderBlackData }) }) }),
318
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
332
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: useGetLoadingText() })
319
333
  ] });
320
334
  };
321
335
  var LightInlineLoader = ({
@@ -325,7 +339,7 @@ var LightInlineLoader = ({
325
339
  }) => {
326
340
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { height: "100%", role: "status", "aria-live": "polite", ...props, children: [
327
341
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderLightData }) }) }),
328
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
342
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: useGetLoadingText() })
329
343
  ] });
330
344
  };
331
345
  var LightSpinner = ({
@@ -336,7 +350,7 @@ var LightSpinner = ({
336
350
  }) => {
337
351
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { flexDirection: "column", role: "status", "aria-live": "polite", ...props, children: [
338
352
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.spinnerLightData }) }) }),
339
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." }),
353
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: useGetLoadingText() }),
340
354
  children && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { marginTop: 3, fontWeight: "bold", children })
341
355
  ] });
342
356
  };
@@ -591,12 +605,12 @@ var ButtonContent = ({
591
605
  ] });
592
606
  var LoadingContent = ({
593
607
  children,
594
- loadingText
608
+ loadingText: loadingText2
595
609
  }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
596
610
  /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { gap: "1", visibility: "hidden", children }),
597
611
  /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { position: "absolute", inset: "1px 0", children: [
598
612
  /* @__PURE__ */ jsxRuntime.jsx(ColorInlineLoader, { maxWidth: "8", marginX: 2, marginY: 2 }),
599
- loadingText && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { children: loadingText })
613
+ loadingText2 && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { children: loadingText2 })
600
614
  ] })
601
615
  ] });
602
616
  var getChildContent = (child) => {
@@ -609,7 +623,7 @@ var Button = ({
609
623
  ref,
610
624
  loading,
611
625
  disabled,
612
- loadingText,
626
+ loadingText: loadingText2,
613
627
  variant = "primary",
614
628
  size = "md",
615
629
  leftIcon,
@@ -619,11 +633,11 @@ var Button = ({
619
633
  ...rest
620
634
  }) => {
621
635
  const { t } = useTranslation();
622
- const ariaLabel = loading ? String(loadingText ?? t(texts2.loadingText)) : rest["aria-label"];
636
+ const ariaLabel = loading ? String(loadingText2 ?? t(texts2.loadingText)) : rest["aria-label"];
623
637
  const renderContent = () => {
624
638
  const content = rest.asChild ? getChildContent(children) : children;
625
639
  if (loading)
626
- return /* @__PURE__ */ jsxRuntime.jsx(LoadingContent, { size, loadingText, children: /* @__PURE__ */ jsxRuntime.jsx(ButtonContent, { leftIcon, rightIcon, children: content }) });
640
+ return /* @__PURE__ */ jsxRuntime.jsx(LoadingContent, { size, loadingText: loadingText2, children: /* @__PURE__ */ jsxRuntime.jsx(ButtonContent, { leftIcon, rightIcon, children: content }) });
627
641
  return /* @__PURE__ */ jsxRuntime.jsx(ButtonContent, { leftIcon, rightIcon, children: content });
628
642
  };
629
643
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -683,59 +697,59 @@ var badgeRecipie = react.defineRecipe({
683
697
  variants: {
684
698
  colorPalette: {
685
699
  neutral: {
686
- backgroundColor: "badge.surface",
687
- color: "badge.text",
700
+ backgroundColor: "surface",
701
+ color: "text",
688
702
  "& svg": {
689
- color: "badge.icon"
703
+ color: "icon"
690
704
  }
691
705
  },
692
706
  grey: {
693
- backgroundColor: "badge.grey.surface",
694
- color: "badge.grey.text",
707
+ backgroundColor: "surface.neutral",
708
+ color: "text.neutral",
695
709
  "& svg": {
696
- color: "badge.grey.icon"
710
+ color: "icon.neutral"
697
711
  }
698
712
  },
699
713
  green: {
700
- backgroundColor: "badge.green.surface",
701
- color: "badge.green.text",
714
+ backgroundColor: "surface.subtle",
715
+ color: "text.success",
702
716
  "& svg": {
703
- color: "badge.green.icon"
717
+ color: "icon.success"
704
718
  }
705
719
  },
706
720
  blue: {
707
- backgroundColor: "badge.blue.surface",
708
- color: "badge.blue.text",
721
+ backgroundColor: "surface.info",
722
+ color: "text.info",
709
723
  "& svg": {
710
- color: "badge.blue.icon"
724
+ color: "icon.info"
711
725
  }
712
726
  },
713
727
  cream: {
714
- backgroundColor: "badge.cream.surface",
715
- color: "badge.cream.text",
728
+ backgroundColor: "surface.warning",
729
+ color: "text.warning",
716
730
  "& svg": {
717
- color: "badge.cream.icon"
731
+ color: "icon.warning"
718
732
  }
719
733
  },
720
734
  yellow: {
721
- backgroundColor: "badge.yellow.surface",
722
- color: "badge.yellow.text",
735
+ backgroundColor: "surface.notice",
736
+ color: "text.notice",
723
737
  "& svg": {
724
- color: "badge.yellow.icon"
738
+ color: "icon.notice"
725
739
  }
726
740
  },
727
741
  orange: {
728
- backgroundColor: "badge.orange.surface",
729
- color: "badge.orange.text",
742
+ backgroundColor: "surface.caution",
743
+ color: "text.caution",
730
744
  "& svg": {
731
- color: "badge.orange.icon"
745
+ color: "icon.caution"
732
746
  }
733
747
  },
734
748
  red: {
735
- backgroundColor: "badge.red.surface",
736
- color: "badge.red.text",
749
+ backgroundColor: "surface.critical",
750
+ color: "text.critical",
737
751
  "& svg": {
738
- color: "badge.red.icon"
752
+ color: "icon.critical"
739
753
  }
740
754
  }
741
755
  },
@@ -1108,10 +1122,10 @@ var BaseAlertIcon = ({
1108
1122
  }) => {
1109
1123
  const css = {
1110
1124
  "& path:first-of-type": {
1111
- fill: `alert.${variant}.icon`
1125
+ fill: `icon.${variant}`
1112
1126
  },
1113
1127
  "& path:not(:first-of-type)": {
1114
- fill: `alert.${variant}.surface`
1128
+ fill: `surface.${variant}`
1115
1129
  }
1116
1130
  };
1117
1131
  switch (variant) {
@@ -1299,6 +1313,7 @@ var ServiceAlert = ({
1299
1313
  css: { ...styles.root, ...css },
1300
1314
  ref,
1301
1315
  ...rest,
1316
+ className: "light",
1302
1317
  children: /* @__PURE__ */ jsxRuntime.jsxs(react.Accordion.Item, { value: defaultValue, children: [
1303
1318
  /* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemTrigger, { css: styles.itemTrigger, children: /* @__PURE__ */ jsxRuntime.jsxs(
1304
1319
  react.HStack,
@@ -1327,7 +1342,7 @@ var ServiceAlert = ({
1327
1342
  ] }),
1328
1343
  /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { alignItems: "center", gap: [0.5, null, null, 1], children: [
1329
1344
  notification && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { css: styles.notificationText, children: t(texts5.notification(notification)) }),
1330
- /* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownDownFill24Icon, { color: "icon.inverted" }) })
1345
+ /* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownDownFill24Icon, { color: "icon.brand" }) })
1331
1346
  ] })
1332
1347
  ]
1333
1348
  }
@@ -1692,18 +1707,18 @@ var cellStyles = {
1692
1707
  },
1693
1708
  // Selection edge (single-mode selected OR range start/end)
1694
1709
  "&[data-edge]": {
1695
- backgroundColor: "brand.surface",
1696
- color: "text.inverted"
1710
+ backgroundColor: "surface.brand",
1711
+ color: "text.brand"
1697
1712
  },
1698
1713
  // Range middle
1699
1714
  "&[data-middle]": {
1700
- backgroundColor: "surface.secondary",
1715
+ backgroundColor: "surface.subtle",
1701
1716
  color: "text"
1702
1717
  },
1703
1718
  // Hover for non-selected, non-disabled cells on devices that support hover
1704
1719
  "@media (hover: hover)": {
1705
1720
  "&:not([data-edge]):not([data-middle]):not([data-disabled]):hover": {
1706
- backgroundColor: "surface.secondary",
1721
+ backgroundColor: "surface.subtle",
1707
1722
  color: "text"
1708
1723
  }
1709
1724
  }
@@ -2106,7 +2121,7 @@ var Field3 = ({
2106
2121
  ]
2107
2122
  }
2108
2123
  ),
2109
- helperText && /* @__PURE__ */ jsxRuntime.jsx(Text3, { variant: "sm", color: "text.tertiary", children: helperText })
2124
+ helperText && /* @__PURE__ */ jsxRuntime.jsx(Text3, { variant: "sm", color: "text.subtle", children: helperText })
2110
2125
  ] });
2111
2126
  };
2112
2127
  var FieldErrorText = ({
@@ -2343,7 +2358,7 @@ var CalendarNavigator = ({
2343
2358
  fontWeight: "bold",
2344
2359
  flex: "1",
2345
2360
  textAlign: "center",
2346
- color: "core.text",
2361
+ color: "text.core",
2347
2362
  children: capitalize(title)
2348
2363
  }
2349
2364
  ),
@@ -3142,7 +3157,7 @@ var CloseDrawerLine = ({
3142
3157
  top: 0,
3143
3158
  marginY: 2,
3144
3159
  marginX: "auto",
3145
- backgroundColor: "floating.outline.active",
3160
+ backgroundColor: "outline.neutral",
3146
3161
  borderRadius: "xs",
3147
3162
  ...props,
3148
3163
  ref
@@ -3613,7 +3628,7 @@ var CardSelectContent = ({
3613
3628
  p: "2",
3614
3629
  bg: "bg",
3615
3630
  border: "sm",
3616
- borderColor: "floating.outline",
3631
+ borderColor: "outline.floating",
3617
3632
  borderRadius: "sm",
3618
3633
  ...props,
3619
3634
  children
@@ -3621,9 +3636,9 @@ var CardSelectContent = ({
3621
3636
  ) }) }) }) });
3622
3637
  };
3623
3638
  var bgActiveStyleMap = {
3624
- core: "core.surface.active",
3625
- ghost: "ghost.surface.active",
3626
- floating: "floating.surface.active"
3639
+ core: "surface.core.active",
3640
+ ghost: "surface.ghost.active",
3641
+ floating: "surface.floating.active"
3627
3642
  };
3628
3643
  var CardSelectTrigger = ({
3629
3644
  ref,
@@ -3708,9 +3723,15 @@ var Popover = ({
3708
3723
  hasBackdrop = true,
3709
3724
  containerPadding = 12
3710
3725
  }) => {
3711
- var _a6;
3712
3726
  const internalRef = React13.useRef(null);
3713
3727
  const popoverRef = ref ?? internalRef;
3728
+ React13.useLayoutEffect(() => {
3729
+ var _a6;
3730
+ const element = typeof popoverRef === "object" ? popoverRef == null ? void 0 : popoverRef.current : null;
3731
+ if (element) {
3732
+ element.style.minWidth = `${((_a6 = triggerRef.current) == null ? void 0 : _a6.clientWidth) ?? 0}px`;
3733
+ }
3734
+ });
3714
3735
  const { popoverProps, underlayProps } = reactAria.usePopover(
3715
3736
  {
3716
3737
  triggerRef,
@@ -3724,19 +3745,11 @@ var Popover = ({
3724
3745
  },
3725
3746
  state
3726
3747
  );
3727
- const popoverBox = /* @__PURE__ */ jsxRuntime.jsxs(
3728
- react.Box,
3729
- {
3730
- ...popoverProps,
3731
- ref: popoverRef,
3732
- minWidth: ((_a6 = triggerRef.current) == null ? void 0 : _a6.clientWidth) ?? "auto",
3733
- children: [
3734
- /* @__PURE__ */ jsxRuntime.jsx(reactAria.DismissButton, { onDismiss: state.close }),
3735
- children,
3736
- /* @__PURE__ */ jsxRuntime.jsx(reactAria.DismissButton, { onDismiss: state.close })
3737
- ]
3738
- }
3739
- );
3748
+ const popoverBox = /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { ...popoverProps, ref: popoverRef, children: [
3749
+ /* @__PURE__ */ jsxRuntime.jsx(reactAria.DismissButton, { onDismiss: state.close }),
3750
+ children,
3751
+ /* @__PURE__ */ jsxRuntime.jsx(reactAria.DismissButton, { onDismiss: state.close })
3752
+ ] });
3740
3753
  if (isNonModal) {
3741
3754
  return popoverBox;
3742
3755
  }
@@ -3867,7 +3880,7 @@ var Combobox2 = (props) => {
3867
3880
  "aria-controls": listboxId,
3868
3881
  borderBottomLeftRadius: state.isOpen && !loading ? 0 : borderBottomLeftRadius,
3869
3882
  borderBottomRightRadius: state.isOpen && !loading ? 0 : borderBottomRightRadius,
3870
- _active: { backgroundColor: "core.surface.active" },
3883
+ _active: { backgroundColor: "surface.core.active" },
3871
3884
  ...filteredInputProps,
3872
3885
  startElement: leftIcon,
3873
3886
  endElement: loading ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -3953,6 +3966,19 @@ var FieldsetLegend = react.Fieldset.Legend;
3953
3966
  var FieldsetContent = react.Fieldset.Content;
3954
3967
  var FieldsetHelperText = react.Fieldset.HelperText;
3955
3968
  var FieldsetErrorText = react.Fieldset.ErrorText;
3969
+ var InputChip = ({
3970
+ startIcon,
3971
+ endIcon,
3972
+ children,
3973
+ ref,
3974
+ ...rest
3975
+ }) => {
3976
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Tag.Root, { ref, ...rest, as: "button", children: [
3977
+ startIcon && /* @__PURE__ */ jsxRuntime.jsx(react.Tag.StartElement, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: startIcon }) }),
3978
+ /* @__PURE__ */ jsxRuntime.jsx(react.Tag.Label, { children }),
3979
+ endIcon && /* @__PURE__ */ jsxRuntime.jsx(react.Tag.EndElement, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: endIcon }) })
3980
+ ] });
3981
+ };
3956
3982
  var ListBox = (props) => {
3957
3983
  const { loading, listBoxRef, state, maxWidth, variant, children } = props;
3958
3984
  const { listBoxProps } = reactAria.useListBox(props, state, listBoxRef);
@@ -4790,7 +4816,7 @@ var Select = ({
4790
4816
  css: styles.root,
4791
4817
  position: "relative",
4792
4818
  children: [
4793
- /* @__PURE__ */ jsxRuntime.jsx(SelectTrigger, { "data-attachable": true, children: /* @__PURE__ */ jsxRuntime.jsx(SelectValueText, { withPlaceholder: label ? true : false }) }),
4819
+ /* @__PURE__ */ jsxRuntime.jsx(SelectTrigger, { "data-attachable": true, children: /* @__PURE__ */ jsxRuntime.jsx(SelectValueText, { withPlaceholder: !!label }) }),
4794
4820
  label && /* @__PURE__ */ jsxRuntime.jsx(SelectLabel, { css: styles.label, children: label }),
4795
4821
  /* @__PURE__ */ jsxRuntime.jsx(SelectContent, { css: styles.selectContent, baseStyle: css, children })
4796
4822
  ]
@@ -4805,7 +4831,7 @@ var SelectLabel = (props) => {
4805
4831
  react.Select.Label,
4806
4832
  {
4807
4833
  ...props,
4808
- "data-selected": value.length > 0 ? true : void 0
4834
+ "data-selected": value.length > 0 || void 0
4809
4835
  }
4810
4836
  );
4811
4837
  };
@@ -4816,14 +4842,19 @@ var SelectItem = ({
4816
4842
  const { item, children, description, ...rest } = props;
4817
4843
  const recipe = react.useSlotRecipe({ key: "select" });
4818
4844
  const styles = recipe();
4845
+ const selectContext = react.useSelectContext();
4846
+ const multiple = selectContext.multiple;
4847
+ const isSelected = selectContext.value.includes(item.value);
4819
4848
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Select.Item, { item, ...rest, ref, css: styles.item, children: [
4849
+ multiple && /* @__PURE__ */ jsxRuntime.jsx(react.Checkbox.Root, { checked: isSelected, pointerEvents: "none", children: /* @__PURE__ */ jsxRuntime.jsx(react.Checkbox.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Checkbox.Indicator, {}) }) }),
4820
4850
  /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { width: "100%", children: [
4821
4851
  /* @__PURE__ */ jsxRuntime.jsx(react.Select.ItemText, { display: "flex", children }),
4822
4852
  description && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { "data-part": "item-description", css: styles.itemDescription, children: description })
4823
4853
  ] }),
4824
- /* @__PURE__ */ jsxRuntime.jsx(react.Select.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CheckmarkFill18Icon, {}) })
4854
+ !multiple && /* @__PURE__ */ jsxRuntime.jsx(react.Select.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CheckmarkFill18Icon, {}) })
4825
4855
  ] });
4826
4856
  };
4857
+ SelectItem.displayName = "SelectItem";
4827
4858
  var SelectItemGroup = function SelectItemGroup2({
4828
4859
  ref,
4829
4860
  ...props
@@ -4882,6 +4913,8 @@ var SelectValueText = function SelectValueText2({
4882
4913
  ...props
4883
4914
  }) {
4884
4915
  const { children, withPlaceholder, placeholder, ...rest } = props;
4916
+ const selectContext = react.useSelectContext();
4917
+ const multiple = selectContext.multiple;
4885
4918
  return /* @__PURE__ */ jsxRuntime.jsx(
4886
4919
  react.Select.ValueText,
4887
4920
  {
@@ -4895,9 +4928,20 @@ var SelectValueText = function SelectValueText2({
4895
4928
  return placeholder;
4896
4929
  if (children)
4897
4930
  return children(items);
4898
- if (items.length === 1)
4931
+ if (multiple) {
4932
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { gap: 0.5, marginBottom: 1, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
4933
+ Badge,
4934
+ {
4935
+ size: "sm",
4936
+ colorPalette: "green",
4937
+ children: select.collection.stringifyItem(item)
4938
+ },
4939
+ select.collection.stringifyItem(item)
4940
+ )) });
4941
+ }
4942
+ if (items.length === 1) {
4899
4943
  return select.collection.stringifyItem(items[0]);
4900
- return `${items.length} selected`;
4944
+ }
4901
4945
  } })
4902
4946
  }
4903
4947
  );
@@ -5152,7 +5196,7 @@ var LineIcon = function LineIcon2({
5152
5196
  css: { ...styles.iconContainer, ...style },
5153
5197
  padding: targetPadding(),
5154
5198
  borderWidth: borderContainer(),
5155
- borderColor: variant === "walk" ? "core.outline" : "transparent",
5199
+ borderColor: variant === "walk" ? "outline.core" : "transparent",
5156
5200
  "aria-label": label,
5157
5201
  ref,
5158
5202
  className: clsx_default("light", rest.className),
@@ -6592,8 +6636,8 @@ var StepperStep = ({
6592
6636
  const state = getState(stepNumber, activeStep);
6593
6637
  const recipe = react.useSlotRecipe({ key: "stepper" });
6594
6638
  const style = recipe({ variant });
6595
- const disabledTextColor = "text.tertiary";
6596
- const iconColor = "text.tertiary";
6639
+ const disabledTextColor = "text.subtle";
6640
+ const iconColor = "text.subtle";
6597
6641
  const disabled = state !== "active" && disabledOverride || state === "disabled";
6598
6642
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { css: style.stepContainer, "data-part": "step-container", children: [
6599
6643
  stepNumber > 1 && /* @__PURE__ */ jsxRuntime.jsx(
@@ -6897,40 +6941,40 @@ var buttonRecipe = react.defineRecipe({
6897
6941
  variants: {
6898
6942
  variant: {
6899
6943
  primary: {
6900
- background: "brand.surface",
6901
- color: "brand.text",
6944
+ background: "surface.brand",
6945
+ color: "text.brand",
6902
6946
  fontWeight: "bold",
6903
6947
  _hover: {
6904
- background: "brand.surface.hover",
6948
+ background: "surface.brand.hover",
6905
6949
  _active: {
6906
- background: "brand.surface.active"
6950
+ background: "surface.brand.active"
6907
6951
  }
6908
6952
  }
6909
6953
  },
6910
6954
  secondary: {
6911
- background: "accent.surface",
6912
- color: "accent.text",
6955
+ background: "surface.accent",
6956
+ color: "text.accent",
6913
6957
  fontWeight: "bold",
6914
6958
  _hover: {
6915
- background: "accent.surface.hover",
6959
+ background: "surface.accent.hover",
6916
6960
  _active: {
6917
- background: "accent.surface.active"
6961
+ background: "surface.accent.active"
6918
6962
  }
6919
6963
  }
6920
6964
  },
6921
6965
  tertiary: {
6922
- color: "core.text",
6966
+ color: "text.core",
6923
6967
  outline: "solid",
6924
6968
  fontWeight: "normal",
6925
6969
  outlineWidth: tokens22__namespace.default.size.stroke.sm,
6926
- outlineColor: "core.outline",
6970
+ outlineColor: "outline.core",
6927
6971
  _hover: {
6928
6972
  outlineWidth: tokens22__namespace.default.size.stroke.md,
6929
- outlineColor: "core.outline.hover",
6973
+ outlineColor: "outline.core.hover",
6930
6974
  _active: {
6931
- background: "core.surface.active",
6975
+ background: "surface.core.active",
6932
6976
  outlineWidth: tokens22__namespace.default.size.stroke.sm,
6933
- outlineColor: "core.outline"
6977
+ outlineColor: "outline.core"
6934
6978
  }
6935
6979
  },
6936
6980
  _focus: {
@@ -6938,28 +6982,28 @@ var buttonRecipe = react.defineRecipe({
6938
6982
  }
6939
6983
  },
6940
6984
  ghost: {
6941
- color: "ghost.text",
6985
+ color: "text.ghost",
6942
6986
  fontWeight: "bold",
6943
6987
  _hover: {
6944
- background: "ghost.surface.hover",
6988
+ background: "surface.ghost.hover",
6945
6989
  _active: {
6946
- background: "ghost.surface.active"
6990
+ background: "surface.ghost.active"
6947
6991
  }
6948
6992
  }
6949
6993
  },
6950
6994
  floating: {
6951
- color: "floating.text",
6952
- background: "floating.surface",
6995
+ color: "text.floating",
6996
+ background: "surface.floating",
6953
6997
  fontWeight: "bold",
6954
6998
  border: "sm",
6955
- borderColor: "floating.outline",
6999
+ borderColor: "outline.floating",
6956
7000
  boxShadow: "0px 1px 3px 0px var(--spor-colors-surface-disabled, rgba(0, 0, 0, 0.10))",
6957
7001
  _hover: {
6958
- borderColor: "floating.outline.hover",
7002
+ borderColor: "outline.floating.hover",
6959
7003
  _active: {
6960
- background: "core.surface.active",
7004
+ background: "surface.core.active",
6961
7005
  boxShadow: "none",
6962
- borderColor: "floating.outline"
7006
+ borderColor: "outline.floating"
6963
7007
  }
6964
7008
  }
6965
7009
  }
@@ -7014,12 +7058,12 @@ var closeButtonRecipe = react.defineRecipe({
7014
7058
  color: "text",
7015
7059
  fontWeight: "normal",
7016
7060
  _hover: {
7017
- background: "ghost.surface.hover",
7061
+ background: "surface.ghost.hover",
7018
7062
  _disabled: {
7019
7063
  color: "icon.disabled"
7020
7064
  },
7021
7065
  _active: {
7022
- background: "ghost.surface.active"
7066
+ background: "surface.ghost.active"
7023
7067
  }
7024
7068
  }
7025
7069
  },
@@ -7094,7 +7138,7 @@ var inputRecipe = react.defineRecipe({
7094
7138
  },
7095
7139
  _hover: {
7096
7140
  outline: "2px solid",
7097
- outlineColor: "core.outline"
7141
+ outlineColor: "outline.core"
7098
7142
  }
7099
7143
  }
7100
7144
  },
@@ -7103,14 +7147,14 @@ var inputRecipe = react.defineRecipe({
7103
7147
  core: {
7104
7148
  backgroundColor: "transparent",
7105
7149
  outline: "1px solid",
7106
- outlineColor: "core.outline",
7150
+ outlineColor: "outline.core",
7107
7151
  _hover: {
7108
7152
  outline: "2px solid",
7109
- outlineColor: "core.outline.hover",
7153
+ outlineColor: "outline.core.hover",
7110
7154
  _active: {
7111
7155
  outline: "1px solid",
7112
7156
  outlineColor: "outline.disabled",
7113
- backgroundColor: "core.surface.active"
7157
+ backgroundColor: "surface.core.active"
7114
7158
  }
7115
7159
  },
7116
7160
  _focus: {
@@ -7120,17 +7164,17 @@ var inputRecipe = react.defineRecipe({
7120
7164
  },
7121
7165
  floating: {
7122
7166
  boxShadow: "sm",
7123
- bg: "floating.surface",
7167
+ bg: "surface.floating",
7124
7168
  outline: "1px solid",
7125
- outlineColor: "floating.outline",
7169
+ outlineColor: "outline.floating",
7126
7170
  _hover: {
7127
7171
  outline: "1px solid",
7128
- outlineColor: "floating.outline.hover"
7172
+ outlineColor: "outline.floating.hover"
7129
7173
  },
7130
7174
  _active: {
7131
7175
  outline: "1px solid",
7132
- outlineColor: "floating.outline.active",
7133
- backgroundColor: "floating.surface.active"
7176
+ outlineColor: "outline.neutral",
7177
+ backgroundColor: "surface.floating.active"
7134
7178
  },
7135
7179
  focus: {
7136
7180
  outline: "1px solid",
@@ -7173,7 +7217,7 @@ var linkRecipe = react.defineRecipe({
7173
7217
  variants: {
7174
7218
  variant: {
7175
7219
  primary: {
7176
- color: "core.text",
7220
+ color: "text.core",
7177
7221
  _hover: {
7178
7222
  color: "text",
7179
7223
  _active: {
@@ -7236,29 +7280,29 @@ var pressableCardRecipe = react.defineRecipe({
7236
7280
  boxShadow: "0px 1px 3px 0px var(--shadow-color)",
7237
7281
  shadowColor: "surface.disabled",
7238
7282
  border: "sm",
7239
- borderColor: "floating.outline",
7240
- backgroundColor: "floating.surface",
7283
+ borderColor: "outline.floating",
7284
+ backgroundColor: "surface.floating",
7241
7285
  _hover: {
7242
7286
  boxShadow: "0px 2px 6px 0px var(--shadow-color)",
7243
- backgroundColor: "floating.surface.hover",
7244
- borderColor: "floating.outline.hover",
7287
+ backgroundColor: "surface.floating.hover",
7288
+ borderColor: "outline.floating.hover",
7245
7289
  _active: {
7246
7290
  boxShadow: "none",
7247
- backgroundColor: "floating.surface.active",
7248
- borderColor: "floating.outline.active"
7291
+ backgroundColor: "surface.floating.active",
7292
+ borderColor: "outline.neutral"
7249
7293
  }
7250
7294
  }
7251
7295
  },
7252
7296
  core: {
7253
- outlineColor: "core.outline",
7297
+ outlineColor: "outline.core",
7254
7298
  outlineWidth: tokens22__namespace.default.size.stroke.sm,
7255
7299
  outlineStyle: "solid",
7256
7300
  _hover: {
7257
- outlineColor: "core.outline.hover",
7301
+ outlineColor: "outline.core.hover",
7258
7302
  outlineWidth: tokens22__namespace.default.size.stroke.md,
7259
7303
  outlineStyle: "solid",
7260
7304
  _active: {
7261
- backgroundColor: "core.surface.active",
7305
+ backgroundColor: "surface.core.active",
7262
7306
  outlineWidth: tokens22__namespace.default.size.stroke.sm
7263
7307
  }
7264
7308
  }
@@ -7266,12 +7310,12 @@ var pressableCardRecipe = react.defineRecipe({
7266
7310
  accent: {
7267
7311
  boxShadow: "0px 1px 3px 0px var(--shadow-color)",
7268
7312
  shadowColor: "surface.disabled",
7269
- background: "alert.success.surface",
7313
+ background: "surface.success",
7270
7314
  _hover: {
7271
- background: "alert.success.surface.hover",
7315
+ background: "surface.success.hover",
7272
7316
  boxShadow: "0px 2px 6px 0px var(--shadow-color)",
7273
7317
  _active: {
7274
- background: "alert.success.surface.active",
7318
+ background: "surface.success.active",
7275
7319
  boxShadow: "none"
7276
7320
  }
7277
7321
  }
@@ -7390,7 +7434,7 @@ var skeletonRecipe = react.defineRecipe({
7390
7434
  },
7391
7435
  none: {
7392
7436
  animation: "none",
7393
- background: "surface.color.grey"
7437
+ background: "surface.neutral"
7394
7438
  }
7395
7439
  }
7396
7440
  }
@@ -7402,29 +7446,29 @@ var staticCardRecipe = react.defineRecipe({
7402
7446
  variants: {
7403
7447
  colorPalette: {
7404
7448
  white: {
7405
- backgroundColor: "surface.color.neutral",
7449
+ backgroundColor: "surface",
7406
7450
  color: "text"
7407
7451
  },
7408
7452
  grey: {
7409
- backgroundColor: "surface.color.grey"
7453
+ backgroundColor: "surface.neutral"
7410
7454
  },
7411
7455
  yellow: {
7412
- backgroundColor: "surface.color.cream"
7456
+ backgroundColor: "surface.warning"
7413
7457
  },
7414
7458
  darkYellow: {
7415
- backgroundColor: "surface.color.yellow"
7459
+ backgroundColor: "surface.notice"
7416
7460
  },
7417
7461
  red: {
7418
- backgroundColor: "surface.color.red"
7462
+ backgroundColor: "surface.critical"
7419
7463
  },
7420
7464
  green: {
7421
- backgroundColor: "surface.color.green"
7465
+ backgroundColor: "surface.success"
7422
7466
  },
7423
7467
  blue: {
7424
- backgroundColor: "surface.color.blue"
7468
+ backgroundColor: "surface.info"
7425
7469
  },
7426
7470
  orange: {
7427
- backgroundColor: "surface.color.orange"
7471
+ backgroundColor: "surface.caution"
7428
7472
  }
7429
7473
  }
7430
7474
  },
@@ -7482,7 +7526,7 @@ var vyUtviklingColors = react.defineSemanticTokens.colors({
7482
7526
  ...tokens4__default.default.color["vy-utvikling"].color.vyUtvikling
7483
7527
  });
7484
7528
  var cargonetColors = react.defineSemanticTokens.colors({
7485
- ...tokens4__default.default.color.cargonet.color.cargonet
7529
+ ...tokens4__default.default.color["cargonet"].color.cargonet
7486
7530
  });
7487
7531
  var radii = react.defineSemanticTokens.radii({
7488
7532
  none: { value: tokens22__namespace.default.size["border-radius"].none },
@@ -7789,6 +7833,7 @@ var comboboxAnatomy = react$1.comboboxAnatomy.extendWith(
7789
7833
  "indicatorGroup",
7790
7834
  "empty"
7791
7835
  );
7836
+ var tagAnatomy = anatomy.createAnatomy("tag").parts("root");
7792
7837
  var menuAnatomy = anatomy.createAnatomy("menu").parts(
7793
7838
  "trigger",
7794
7839
  "content",
@@ -7819,7 +7864,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
7819
7864
  borderRadius: "sm",
7820
7865
  display: "flex",
7821
7866
  justifyContent: "space-between",
7822
- color: "core.text",
7867
+ color: "text.core",
7823
7868
  textAlign: "left",
7824
7869
  width: "full",
7825
7870
  alignItems: "center",
@@ -7875,10 +7920,10 @@ var accordionSlotRecipe = react.defineSlotRecipe({
7875
7920
  },
7876
7921
  itemTrigger: {
7877
7922
  "&:hover": {
7878
- background: "ghost.surface.hover"
7923
+ background: "surface.ghost.hover"
7879
7924
  },
7880
7925
  "&:active": {
7881
- backgroundColor: "ghost.surface.active"
7926
+ backgroundColor: "surface.ghost.active"
7882
7927
  }
7883
7928
  }
7884
7929
  },
@@ -7886,7 +7931,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
7886
7931
  item: {
7887
7932
  outline: "solid",
7888
7933
  outlineWidth: tokens22__namespace.default.size.stroke.sm,
7889
- outlineColor: "core.outline"
7934
+ outlineColor: "outline.core"
7890
7935
  },
7891
7936
  itemTrigger: {
7892
7937
  _expanded: {
@@ -7894,12 +7939,12 @@ var accordionSlotRecipe = react.defineSlotRecipe({
7894
7939
  },
7895
7940
  "&:hover": {
7896
7941
  outlineWidth: tokens22__namespace.default.size.stroke.md,
7897
- outlineColor: "core.outline",
7942
+ outlineColor: "outline.core",
7898
7943
  outline: "2px solid",
7899
7944
  outlineOffset: 0
7900
7945
  },
7901
7946
  "&:active": {
7902
- backgroundColor: "core.surface.active",
7947
+ backgroundColor: "surface.core.active",
7903
7948
  outlineWidth: tokens22__namespace.default.size.stroke.sm,
7904
7949
  outline: "none"
7905
7950
  }
@@ -7912,7 +7957,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
7912
7957
  item: {
7913
7958
  borderRadius: "none",
7914
7959
  borderBottom: "1px solid",
7915
- borderBottomColor: "floating.outline.active"
7960
+ borderBottomColor: "outline.neutral"
7916
7961
  }
7917
7962
  },
7918
7963
  floating: {
@@ -7920,7 +7965,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
7920
7965
  outline: "1px solid",
7921
7966
  outlineWidth: tokens22__namespace.default.size.stroke.sm,
7922
7967
  boxShadow: "sm",
7923
- outlineColor: "floating.outline"
7968
+ outlineColor: "outline.floating"
7924
7969
  },
7925
7970
  itemTrigger: {
7926
7971
  _expanded: {
@@ -7929,11 +7974,11 @@ var accordionSlotRecipe = react.defineSlotRecipe({
7929
7974
  "&:hover": {
7930
7975
  outlineWidth: tokens22__namespace.default.size.stroke.md,
7931
7976
  outline: "1px solid",
7932
- outlineColor: "floating.outline.hover",
7977
+ outlineColor: "outline.floating.hover",
7933
7978
  outlineOffset: 1
7934
7979
  },
7935
7980
  "&:active": {
7936
- backgroundColor: "floating.surface.active",
7981
+ backgroundColor: "surface.floating.active",
7937
7982
  outlineWidth: tokens22__namespace.default.size.stroke.sm,
7938
7983
  outline: "none"
7939
7984
  }
@@ -7944,21 +7989,21 @@ var accordionSlotRecipe = react.defineSlotRecipe({
7944
7989
  });
7945
7990
  var createVariant = (variant) => ({
7946
7991
  root: {
7947
- borderColor: `alert.${variant}.outline`,
7948
- background: `alert.${variant}.surface`
7992
+ borderColor: `outline.${variant}`,
7993
+ background: `surface.${variant}`
7949
7994
  },
7950
7995
  description: {
7951
- color: `alert.${variant}.text.secondary`
7996
+ color: `text.${variant}.subtle`
7952
7997
  },
7953
7998
  title: {
7954
- color: `alert.${variant}.text`
7999
+ color: `text.${variant}`
7955
8000
  },
7956
8001
  closeButton: {
7957
- color: `alert.${variant}.text`,
8002
+ color: `text.${variant}`,
7958
8003
  _hover: {
7959
- bg: `alert.${variant}.surface.hover`,
8004
+ bg: `surface.${variant}.hover`,
7960
8005
  _active: {
7961
- bg: `alert.${variant}.surface.active`
8006
+ bg: `surface.${variant}.active`
7962
8007
  }
7963
8008
  }
7964
8009
  }
@@ -7993,13 +8038,13 @@ var alertSlotRecipe = react.defineSlotRecipe({
7993
8038
  },
7994
8039
  variants: {
7995
8040
  variant: {
7996
- important: createVariant("important"),
7997
- alt: createVariant("alt"),
7998
- error: createVariant("error"),
8041
+ important: createVariant("warning"),
8042
+ alt: createVariant("notice"),
8043
+ error: createVariant("critical"),
7999
8044
  success: createVariant("success"),
8000
8045
  info: createVariant("info"),
8001
8046
  neutral: createVariant("neutral"),
8002
- "error-secondary": createVariant("error-secondary"),
8047
+ "error-secondary": createVariant("caution"),
8003
8048
  service: createVariant("service")
8004
8049
  }
8005
8050
  },
@@ -8029,117 +8074,117 @@ var alertExpandableSlotRecipe = react.defineSlotRecipe({
8029
8074
  variant: {
8030
8075
  important: {
8031
8076
  itemContent: {
8032
- color: "alert.important.text.secondary"
8077
+ color: "text.warning.subtle"
8033
8078
  },
8034
8079
  itemTrigger: {
8035
8080
  "&:hover": {
8036
- bg: "alert.important.surface.hover",
8081
+ bg: "surface.warning.hover",
8037
8082
  outline: "1px solid",
8038
- outlineColor: "alert.important.outline.hover",
8083
+ outlineColor: "outline.warning.hover",
8039
8084
  outlineOffset: "0px"
8040
8085
  },
8041
8086
  "&:active": {
8042
- bg: "alert.important.surface.active"
8087
+ bg: "surface.warning.active"
8043
8088
  }
8044
8089
  },
8045
8090
  root: {
8046
- borderColor: "alert.important.outline",
8047
- bg: "alert.important.surface"
8091
+ borderColor: "outline.warning",
8092
+ bg: "surface.warning"
8048
8093
  },
8049
8094
  title: {
8050
- color: "alert.important.text"
8095
+ color: "text.warning"
8051
8096
  }
8052
8097
  },
8053
8098
  success: {
8054
8099
  itemContent: {
8055
- color: "alert.success.text.secondary"
8100
+ color: "text.success.subtle"
8056
8101
  },
8057
8102
  itemTrigger: {
8058
8103
  "&:hover": {
8059
- bg: "alert.success.surface.hover",
8104
+ bg: "surface.success.hover",
8060
8105
  outline: "1px solid",
8061
8106
  outlineOffset: "0px",
8062
- outlineColor: "alert.success.outline.hover",
8107
+ outlineColor: "outline.success.hover",
8063
8108
  "&:active": {
8064
- bg: "alert.success.surface.active"
8109
+ bg: "surface.success.active"
8065
8110
  }
8066
8111
  }
8067
8112
  },
8068
8113
  root: {
8069
- borderColor: "alert.success.outline",
8070
- bg: "alert.success.surface"
8114
+ borderColor: "outline.success",
8115
+ bg: "surface.success"
8071
8116
  },
8072
8117
  title: {
8073
- color: "alert.success.text"
8118
+ color: "text.success"
8074
8119
  }
8075
8120
  },
8076
8121
  alt: {
8077
8122
  itemContent: {
8078
- color: "alert.alt.text.secondary"
8123
+ color: "text.notice.subtle"
8079
8124
  },
8080
8125
  itemTrigger: {
8081
8126
  "&:hover": {
8082
- bg: "alert.alt.surface.hover",
8127
+ bg: "surface.notice.hover",
8083
8128
  outlineOffset: "0px",
8084
8129
  outline: "1px solid",
8085
- outlineColor: "alert.alt.outline.hover",
8130
+ outlineColor: "outline.notice.hover",
8086
8131
  "&:active": {
8087
- bg: "alert.alt.surface.active"
8132
+ bg: "surface.notice.active"
8088
8133
  }
8089
8134
  }
8090
8135
  },
8091
8136
  root: {
8092
- borderColor: "alert.alt.outline",
8093
- bg: "alert.alt.surface"
8137
+ borderColor: "outline.notice",
8138
+ bg: "surface.notice"
8094
8139
  },
8095
8140
  title: {
8096
- color: "alert.alt.text"
8141
+ color: "text.notice"
8097
8142
  }
8098
8143
  },
8099
8144
  info: {
8100
8145
  itemContent: {
8101
- color: "alert.info.text.secondary"
8146
+ color: "text.info.subtle"
8102
8147
  },
8103
8148
  itemTrigger: {
8104
8149
  "&:hover": {
8105
- bg: "alert.info.surface.hover",
8150
+ bg: "surface.info.hover",
8106
8151
  outlineOffset: "0px",
8107
8152
  outline: "1px solid",
8108
- outlineColor: "alert.info.outline.hover",
8153
+ outlineColor: "outline.info.hover",
8109
8154
  "&:active": {
8110
- bg: "alert.info.surface.active"
8155
+ bg: "surface.info.active"
8111
8156
  }
8112
8157
  }
8113
8158
  },
8114
8159
  root: {
8115
- borderColor: "alert.info.outline",
8116
- bg: "alert.info.surface"
8160
+ borderColor: "outline.info",
8161
+ bg: "surface.info"
8117
8162
  },
8118
8163
  title: {
8119
- color: "alert.info.text"
8164
+ color: "text.info"
8120
8165
  }
8121
8166
  },
8122
8167
  error: {
8123
8168
  itemContent: {
8124
- color: "alert.error.text.secondary"
8169
+ color: "text.critical.subtle"
8125
8170
  },
8126
8171
  itemTrigger: {
8127
8172
  "&:hover": {
8128
- bg: "alert.error.surface.hover",
8173
+ bg: "surface.critical.hover",
8129
8174
  outlineOffset: "0px",
8130
8175
  outline: "1px solid",
8131
- outlineColor: "alert.error.outline.hover",
8176
+ outlineColor: "outline.critical.hover",
8132
8177
  "&:active": {
8133
- bg: "alert.error.surface.active"
8178
+ bg: "surface.critical.active"
8134
8179
  }
8135
8180
  }
8136
8181
  },
8137
8182
  root: {
8138
- borderColor: "alert.error.outline",
8139
- bg: "alert.error.surface"
8183
+ borderColor: "outline.critical",
8184
+ bg: "surface.critical"
8140
8185
  },
8141
8186
  title: {
8142
- color: "alert.error.text"
8187
+ color: "text.critical"
8143
8188
  }
8144
8189
  }
8145
8190
  }
@@ -8155,10 +8200,10 @@ var alertServiceSlotRecipe = react.defineSlotRecipe({
8155
8200
  transitionDuration: "fast",
8156
8201
  borderTopRadius: "none",
8157
8202
  borderBottomRadius: "md",
8158
- backgroundColor: "alert.service.surface",
8203
+ backgroundColor: "surface.service",
8159
8204
  outline: "1px solid",
8160
- outlineColor: "alert.service.outline",
8161
- color: "text.inverted",
8205
+ outlineColor: "outline.service",
8206
+ color: "text.brand",
8162
8207
  boxShadow: "sm"
8163
8208
  },
8164
8209
  itemTrigger: {
@@ -8170,15 +8215,15 @@ var alertServiceSlotRecipe = react.defineSlotRecipe({
8170
8215
  borderBottomRadius: "md",
8171
8216
  borderTopRadius: "none",
8172
8217
  width: "full",
8173
- color: "text.inverted",
8218
+ color: "text.brand",
8174
8219
  "&:hover": {
8175
- backgroundColor: "alert.service.surface.hover"
8220
+ backgroundColor: "surface.service.hover"
8176
8221
  },
8177
8222
  "&:active": {
8178
- backgroundColor: "alert.service.surface.active"
8223
+ backgroundColor: "surface.service.active"
8179
8224
  },
8180
8225
  _icon: {
8181
- color: "text"
8226
+ color: "icon.brand"
8182
8227
  }
8183
8228
  },
8184
8229
  itemTriggerTitle: {
@@ -8188,7 +8233,7 @@ var alertServiceSlotRecipe = react.defineSlotRecipe({
8188
8233
  fontWeight: "400",
8189
8234
  fontSize: ["mobile.xs", "desktop.xs"],
8190
8235
  textWrap: "nowrap",
8191
- color: "alert.service.text.secondary"
8236
+ color: "text.service.subtle"
8192
8237
  },
8193
8238
  itemContent: {
8194
8239
  paddingX: ["2", "3"],
@@ -8198,14 +8243,14 @@ var alertServiceSlotRecipe = react.defineSlotRecipe({
8198
8243
  itemBody: {
8199
8244
  marginX: "auto",
8200
8245
  padding: "0 !important",
8201
- color: "alert.service.text.secondary",
8246
+ color: "text.service.subtle",
8202
8247
  gap: 0,
8203
8248
  flexDirection: "column",
8204
8249
  display: "flex",
8205
8250
  "& > p": {
8206
8251
  width: "full",
8207
8252
  borderBottom: "1px dashed",
8208
- borderColor: "outline.inverted",
8253
+ borderColor: "outline.neutral",
8209
8254
  paddingY: ["1", "1.5"],
8210
8255
  _first: {
8211
8256
  paddingTop: 0
@@ -8288,7 +8333,7 @@ var comboboxSlotRecipe = react.defineSlotRecipe({
8288
8333
  borderRadius: "sm",
8289
8334
  flex: "1",
8290
8335
  _highlighted: {
8291
- bg: "ghost.surface.active"
8336
+ bg: "surface.ghost.active"
8292
8337
  },
8293
8338
  _disabled: {
8294
8339
  pointerEvents: "none",
@@ -8296,13 +8341,13 @@ var comboboxSlotRecipe = react.defineSlotRecipe({
8296
8341
  color: "text.disabled"
8297
8342
  },
8298
8343
  _hover: {
8299
- bg: "ghost.surface.hover"
8344
+ bg: "surface.ghost.hover"
8300
8345
  },
8301
8346
  _pressed: {
8302
- bg: "ghost.surface.active"
8347
+ bg: "surface.ghost.active"
8303
8348
  },
8304
8349
  _focus: {
8305
- bg: "ghost.surface.active"
8350
+ bg: "surface.ghost.active"
8306
8351
  }
8307
8352
  },
8308
8353
  empty: {
@@ -8321,7 +8366,7 @@ var comboboxSlotRecipe = react.defineSlotRecipe({
8321
8366
  itemGroupLabel: {
8322
8367
  px: "3",
8323
8368
  py: "0.5",
8324
- color: "floating.text",
8369
+ color: "text.floating",
8325
8370
  fontFeatureSettings: "liga off",
8326
8371
  fontSize: ["mobile.sm, desktop.sm"],
8327
8372
  fontWeight: "bold"
@@ -8357,11 +8402,11 @@ var breadcrumbSlotRecipe = react.defineSlotRecipe({
8357
8402
  core: {
8358
8403
  link: {
8359
8404
  _hover: {
8360
- outlineColor: "core.outline.hover",
8405
+ outlineColor: "outline.core.hover",
8361
8406
  outlineWidth: tokens22__namespace.default.size.stroke.md,
8362
8407
  outlineStyle: "solid",
8363
8408
  _active: {
8364
- backgroundColor: "core.surface.active",
8409
+ backgroundColor: "surface.core.active",
8365
8410
  outline: "none"
8366
8411
  }
8367
8412
  }
@@ -8370,9 +8415,9 @@ var breadcrumbSlotRecipe = react.defineSlotRecipe({
8370
8415
  ghost: {
8371
8416
  link: {
8372
8417
  _hover: {
8373
- backgroundColor: "ghost.surface.hover",
8418
+ backgroundColor: "surface.ghost.hover",
8374
8419
  _active: {
8375
- backgroundColor: "ghost.surface.active"
8420
+ backgroundColor: "surface.ghost.active"
8376
8421
  }
8377
8422
  }
8378
8423
  }
@@ -8394,10 +8439,10 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
8394
8439
  gap: 1.5,
8395
8440
  _hover: {
8396
8441
  "& > input:enabled:not([aria-invalid]) + .spor-checkbox__control": {
8397
- borderColor: "core.outline.hover"
8442
+ borderColor: "outline.core.hover"
8398
8443
  },
8399
8444
  "& > input:enabled:checked:not([aria-invalid]) + .spor-checkbox__control": {
8400
- background: "brand.surface.hover"
8445
+ background: "surface.brand.hover"
8401
8446
  }
8402
8447
  }
8403
8448
  },
@@ -8419,19 +8464,14 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
8419
8464
  transitionProperty: "background, border-color",
8420
8465
  transitionDuration: "moderate",
8421
8466
  border: "2px solid",
8422
- borderColor: "core.outline",
8467
+ borderColor: "outline.core",
8423
8468
  borderRadius: "xs",
8424
8469
  _checked: {
8425
- color: "brand.icon",
8426
- borderColor: "brand.surface",
8427
- background: "brand.surface",
8470
+ color: "icon.brand",
8471
+ borderColor: "surface.brand",
8472
+ background: "surface.brand",
8428
8473
  _focus: {
8429
- borderColor: "brand.surface.active"
8430
- },
8431
- _disabled: {
8432
- background: "surface.disabled",
8433
- color: "text.disabled",
8434
- borderColor: "currentColor"
8474
+ borderColor: "surface.brand.active"
8435
8475
  },
8436
8476
  _invalid: {
8437
8477
  backgroundColor: "outline.error",
@@ -8439,8 +8479,9 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
8439
8479
  }
8440
8480
  },
8441
8481
  _disabled: {
8442
- // borderColor: coreText("disabled").color,
8443
- borderColor: "text.disabled"
8482
+ background: "surface.disabled",
8483
+ borderColor: "outline.disabled",
8484
+ color: "text.disabled"
8444
8485
  },
8445
8486
  _invalid: {
8446
8487
  borderColor: "outline.error"
@@ -8450,7 +8491,7 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
8450
8491
  outlineColor: "outline.focus",
8451
8492
  outlineOffset: tokens22__namespace.default.size.stroke.md,
8452
8493
  outlineWidth: tokens22__namespace.default.size.stroke.md,
8453
- borderColor: "core.outline",
8494
+ borderColor: "outline.core",
8454
8495
  borderWidth: tokens22__namespace.default.size.stroke.md
8455
8496
  }
8456
8497
  },
@@ -8474,16 +8515,16 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
8474
8515
  paddingInlineStart: "2",
8475
8516
  paddingInlineEnd: "2",
8476
8517
  outline: "1px solid",
8477
- outlineColor: "core.outline",
8518
+ outlineColor: "outline.core",
8478
8519
  _checked: {
8479
- backgroundColor: "brand.surface",
8520
+ backgroundColor: "surface.brand",
8480
8521
  borderRadius: "sm",
8481
8522
  outline: "none",
8482
- color: "brand.text",
8523
+ color: "text.brand",
8483
8524
  _hover: {
8484
- backgroundColor: "brand.surface.hover",
8525
+ backgroundColor: "surface.brand.hover",
8485
8526
  _active: {
8486
- backgroundColor: "brand.surface.active"
8527
+ backgroundColor: "surface.brand.active"
8487
8528
  }
8488
8529
  }
8489
8530
  },
@@ -8580,47 +8621,47 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
8580
8621
  variant: {
8581
8622
  core: {
8582
8623
  root: {
8583
- color: "core.text",
8584
- outlineColor: "core.outline",
8624
+ color: "text.core",
8625
+ outlineColor: "outline.core",
8585
8626
  _hover: {
8586
8627
  outline: "2px solid",
8587
- outlineColor: "core.outline.hover",
8628
+ outlineColor: "outline.core.hover",
8588
8629
  _active: {
8589
8630
  outline: "1px solid",
8590
- outlineColor: "core.outline",
8591
- backgroundColor: "core.surface.active"
8631
+ outlineColor: "outline.core",
8632
+ backgroundColor: "surface.core.active"
8592
8633
  }
8593
8634
  }
8594
8635
  }
8595
8636
  },
8596
8637
  accent: {
8597
8638
  root: {
8598
- backgroundColor: "accent.surface",
8599
- color: "accent.text",
8639
+ backgroundColor: "surface.accent",
8640
+ color: "text.accent",
8600
8641
  outline: "none",
8601
8642
  _hover: {
8602
- backgroundColor: "accent.surface.hover",
8643
+ backgroundColor: "surface.accent.hover",
8603
8644
  _active: {
8604
- backgroundColor: "accent.surface.active"
8645
+ backgroundColor: "surface.accent.active"
8605
8646
  }
8606
8647
  }
8607
8648
  }
8608
8649
  },
8609
8650
  floating: {
8610
8651
  root: {
8611
- backgroundColor: "floating.surface",
8652
+ backgroundColor: "surface.floating",
8612
8653
  outline: "1px solid",
8613
- outlineColor: "floating.outline",
8614
- color: "floating.text",
8654
+ outlineColor: "outline.floating",
8655
+ color: "text.floating",
8615
8656
  boxShadow: "sm",
8616
8657
  _hover: {
8617
- backgroundColor: "floating.surface.hover",
8658
+ backgroundColor: "surface.floating.hover",
8618
8659
  outline: "1px solid",
8619
- outlineColor: "floating.outline.hover",
8660
+ outlineColor: "outline.floating.hover",
8620
8661
  _active: {
8621
- backgroundColor: "floating.surface.active",
8662
+ backgroundColor: "surface.floating.active",
8622
8663
  outline: "1px solid",
8623
- outlineColor: "floating.outline"
8664
+ outlineColor: "outline.floating"
8624
8665
  }
8625
8666
  }
8626
8667
  }
@@ -8698,7 +8739,7 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8698
8739
  },
8699
8740
  dateTimeSegment: {
8700
8741
  _focus: {
8701
- backgroundColor: "ghost.surface.active",
8742
+ backgroundColor: "surface.ghost.active",
8702
8743
  color: "text"
8703
8744
  }
8704
8745
  },
@@ -8714,10 +8755,10 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8714
8755
  transitionProperty: "box-shadow, background-color",
8715
8756
  right: "0.5rem",
8716
8757
  _hover: {
8717
- backgroundColor: "ghost.surface.hover"
8758
+ backgroundColor: "surface.ghost.hover"
8718
8759
  },
8719
8760
  _active: {
8720
- backgroundColor: "ghost.surface.active"
8761
+ backgroundColor: "surface.ghost.active"
8721
8762
  },
8722
8763
  _invalid: {
8723
8764
  outline: "2px solid",
@@ -8728,11 +8769,11 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8728
8769
  backgroundColor: "surface"
8729
8770
  },
8730
8771
  calendarPopover: {
8731
- color: "core.text",
8772
+ color: "text.core",
8732
8773
  outline: "1px solid",
8733
- outlineColor: "floating.outline",
8774
+ outlineColor: "outline.floating",
8734
8775
  boxShadow: "md",
8735
- backgroundColor: "floating.surface",
8776
+ backgroundColor: "surface.floating",
8736
8777
  minHeight: "min-content"
8737
8778
  },
8738
8779
  rangeCalendarPopover: {
@@ -8740,11 +8781,11 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8740
8781
  maxWidth: "100vw"
8741
8782
  },
8742
8783
  weekdays: {
8743
- color: "core.text",
8784
+ color: "text.core",
8744
8785
  fontWeight: "bold"
8745
8786
  },
8746
8787
  weekend: {
8747
- color: "accent.text",
8788
+ color: "text.accent",
8748
8789
  fontWeight: "bold"
8749
8790
  },
8750
8791
  cell: {
@@ -8758,12 +8799,12 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8758
8799
  top: 0,
8759
8800
  bottom: 0,
8760
8801
  zIndex: -1,
8761
- backgroundColor: "brand.surface"
8802
+ backgroundColor: "surface.brand"
8762
8803
  }
8763
8804
  }
8764
8805
  },
8765
8806
  dateCell: {
8766
- color: "core.text",
8807
+ color: "text.core",
8767
8808
  borderRadius: "xl",
8768
8809
  position: "relative",
8769
8810
  transition: ".1s ease-in-out",
@@ -8772,10 +8813,10 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8772
8813
  height: [6, 7],
8773
8814
  transitionProperty: "common",
8774
8815
  _hover: {
8775
- backgroundColor: "ghost.surface.hover"
8816
+ backgroundColor: "surface.ghost.hover"
8776
8817
  },
8777
8818
  _active: {
8778
- backgroundColor: "ghost.surface.active"
8819
+ backgroundColor: "surface.ghost.active"
8779
8820
  },
8780
8821
  _disabled: {
8781
8822
  backgroundColor: "surface.disabled",
@@ -8783,16 +8824,16 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8783
8824
  pointerEvents: "none"
8784
8825
  },
8785
8826
  _selected: {
8786
- backgroundColor: "brand.surface",
8787
- color: "brand.text",
8827
+ backgroundColor: "surface.brand",
8828
+ color: "text.brand",
8788
8829
  _active: {
8789
- backgroundColor: "brand.surface.active",
8790
- color: "brand.text"
8830
+ backgroundColor: "surface.brand.active",
8831
+ color: "text.brand"
8791
8832
  }
8792
8833
  },
8793
8834
  "&[data-today]": {
8794
8835
  outline: "1px solid",
8795
- outlineColor: "core.outline"
8836
+ outlineColor: "outline.core"
8796
8837
  },
8797
8838
  "&[data-unavailable]": {
8798
8839
  pointerEvents: "none",
@@ -8807,14 +8848,14 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8807
8848
  core: {
8808
8849
  wrapper: {
8809
8850
  outline: "1px solid",
8810
- outlineColor: "core.outline",
8851
+ outlineColor: "outline.core",
8811
8852
  _hover: {
8812
8853
  outline: "2px solid",
8813
- outlineColor: "core.outline.hover",
8854
+ outlineColor: "outline.core.hover",
8814
8855
  _active: {
8815
- backgroundColor: "ghost.surface.active",
8856
+ backgroundColor: "surface.ghost.active",
8816
8857
  outline: "1px solid",
8817
- outlineColor: "core.outline"
8858
+ outlineColor: "outline.core"
8818
8859
  },
8819
8860
  "&[data-active]": {
8820
8861
  outline: "2px solid",
@@ -8832,17 +8873,17 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8832
8873
  },
8833
8874
  floating: {
8834
8875
  wrapper: {
8835
- bg: "floating.surface",
8876
+ bg: "surface.floating",
8836
8877
  outline: "1px solid",
8837
- outlineColor: "floating.outline",
8878
+ outlineColor: "outline.floating",
8838
8879
  boxShadow: "sm",
8839
8880
  _hover: {
8840
8881
  outline: "1px solid",
8841
- outlineColor: "floating.outline.hover",
8882
+ outlineColor: "outline.floating.hover",
8842
8883
  _active: {
8843
- backgroundColor: "ghost.surface.active",
8884
+ backgroundColor: "surface.ghost.active",
8844
8885
  outline: "1px solid",
8845
- outlineColor: "core.outline"
8886
+ outlineColor: "outline.core"
8846
8887
  },
8847
8888
  "&[data-active]": {
8848
8889
  outline: "2px solid",
@@ -8862,11 +8903,11 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
8862
8903
  wrapper: {
8863
8904
  _hover: {
8864
8905
  outline: "2px solid",
8865
- outlineColor: "core.outline.hover",
8906
+ outlineColor: "outline.core.hover",
8866
8907
  _active: {
8867
- backgroundColor: "ghost.surface.active",
8908
+ backgroundColor: "surface.ghost.active",
8868
8909
  outline: "1px solid",
8869
- outlineColor: "core.outline"
8910
+ outlineColor: "outline.core"
8870
8911
  },
8871
8912
  "&[data-active]": {
8872
8913
  outline: "2px solid",
@@ -9326,13 +9367,13 @@ var fieldSlotRecipe = react.defineSlotRecipe({
9326
9367
  },
9327
9368
  helperText: {
9328
9369
  marginTop: 2,
9329
- color: "text.tertiary",
9370
+ color: "text.subtle",
9330
9371
  lineHeight: "normal",
9331
9372
  fontSize: "sm"
9332
9373
  },
9333
9374
  errorText: {
9334
9375
  borderRadius: "xs",
9335
- backgroundColor: "alert.error.surface",
9376
+ backgroundColor: "surface.critical",
9336
9377
  color: "text",
9337
9378
  paddingX: 1.5,
9338
9379
  paddingY: 1,
@@ -9350,7 +9391,7 @@ var fieldSlotRecipe = react.defineSlotRecipe({
9350
9391
  left: "1em",
9351
9392
  width: "0.5rem",
9352
9393
  height: "0.5rem",
9353
- backgroundColor: "alert.error.surface",
9394
+ backgroundColor: "surface.critical",
9354
9395
  transform: "translateY(-50%) rotate(45deg)",
9355
9396
  pointerEvents: "none"
9356
9397
  }
@@ -9411,12 +9452,12 @@ var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
9411
9452
  variant: {
9412
9453
  brand: {
9413
9454
  root: {
9414
- backgroundColor: "brand.surface",
9415
- color: "brand.text",
9455
+ backgroundColor: "surface.brand",
9456
+ color: "text.brand",
9416
9457
  _hover: {
9417
- backgroundColor: "brand.surface.hover",
9458
+ backgroundColor: "surface.brand.hover",
9418
9459
  _active: {
9419
- backgroundColor: "brand.surface.active"
9460
+ backgroundColor: "surface.brand.active"
9420
9461
  }
9421
9462
  }
9422
9463
  }
@@ -9425,29 +9466,29 @@ var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
9425
9466
  root: {
9426
9467
  backgroundColor: "transparent",
9427
9468
  outline: "1px solid",
9428
- outlineColor: "core.outline",
9429
- color: "core.text",
9469
+ outlineColor: "outline.core",
9470
+ color: "text.core",
9430
9471
  _hover: {
9431
9472
  backgroundColor: "transparent",
9432
9473
  outline: "2px solid",
9433
- outlineColor: "core.outline",
9474
+ outlineColor: "outline.core",
9434
9475
  _active: {
9435
9476
  outline: "1px solid",
9436
- outlineColor: "core.outline",
9437
- backgroundColor: "core.surface.active"
9477
+ outlineColor: "outline.core",
9478
+ backgroundColor: "surface.core.active"
9438
9479
  }
9439
9480
  }
9440
9481
  }
9441
9482
  },
9442
9483
  accent: {
9443
9484
  root: {
9444
- backgroundColor: "accent.surface",
9445
- color: "accent.text",
9485
+ backgroundColor: "surface.accent",
9486
+ color: "text.accent",
9446
9487
  _hover: {
9447
- backgroundColor: "accent.surface.hover",
9448
- color: "accent.text",
9488
+ backgroundColor: "surface.accent.hover",
9489
+ color: "text.accent",
9449
9490
  _active: {
9450
- backgroundColor: "accent.surface.active"
9491
+ backgroundColor: "surface.accent.active"
9451
9492
  }
9452
9493
  }
9453
9494
  }
@@ -9739,6 +9780,120 @@ var infoTagSlotRecipe = react.defineSlotRecipe({
9739
9780
  size: "md"
9740
9781
  }
9741
9782
  });
9783
+ var inputChipSlotRecipe = react.defineSlotRecipe({
9784
+ slots: tagAnatomy.keys(),
9785
+ className: "chakra-tag",
9786
+ base: {
9787
+ root: {
9788
+ display: "flex",
9789
+ direction: "row",
9790
+ width: "fit-content",
9791
+ height: "fit-content",
9792
+ alignItems: "center",
9793
+ justifyContent: "center",
9794
+ gap: "1",
9795
+ outline: "none",
9796
+ "&:focus": {
9797
+ outline: "2px solid",
9798
+ outlineColor: "outline.focus"
9799
+ }
9800
+ }
9801
+ },
9802
+ variants: {
9803
+ variant: {
9804
+ core: {
9805
+ root: {
9806
+ backgroundColor: "surface",
9807
+ border: "1px solid",
9808
+ borderColor: "outline",
9809
+ "&:hover": {
9810
+ outline: "2px solid",
9811
+ outlineColor: "outline.core.hover"
9812
+ },
9813
+ "&:active": {
9814
+ outline: "none",
9815
+ backgroundColor: "surface.core.active"
9816
+ }
9817
+ }
9818
+ },
9819
+ accent: {
9820
+ root: {
9821
+ backgroundColor: "surface.accent",
9822
+ color: "text.highlight",
9823
+ "& svg": {
9824
+ color: "icon.highlight"
9825
+ },
9826
+ "&:hover": {
9827
+ backgroundColor: "surface.accent.hover"
9828
+ },
9829
+ "&:active": {
9830
+ backgroundColor: "surface.accent.active",
9831
+ outline: "none"
9832
+ }
9833
+ }
9834
+ },
9835
+ brand: {
9836
+ root: {
9837
+ backgroundColor: "surface.brand",
9838
+ color: "text.brand",
9839
+ "& svg": {
9840
+ color: "icon.brand"
9841
+ },
9842
+ "&:hover": {
9843
+ backgroundColor: "surface.brand.hover"
9844
+ },
9845
+ "&:active": {
9846
+ backgroundColor: "surface.brand.active",
9847
+ outline: "none"
9848
+ }
9849
+ }
9850
+ }
9851
+ },
9852
+ size: {
9853
+ xs: {
9854
+ root: {
9855
+ fontSize: "desktop.xs",
9856
+ paddingX: "1.5",
9857
+ paddingY: "0",
9858
+ fontWeight: "normal",
9859
+ borderRadius: "xs"
9860
+ }
9861
+ },
9862
+ sm: {
9863
+ root: {
9864
+ fontSize: "desktop.sm",
9865
+ paddingX: "2",
9866
+ paddingY: "0.5",
9867
+ fontWeight: "bold",
9868
+ borderRadius: "9px"
9869
+ }
9870
+ },
9871
+ md: {
9872
+ root: {
9873
+ padding: 5,
9874
+ fontSize: "desktop.md",
9875
+ paddingX: "2",
9876
+ paddingY: "1",
9877
+ fontWeight: "bold",
9878
+ borderRadius: "sm"
9879
+ }
9880
+ },
9881
+ lg: {
9882
+ root: {
9883
+ fontSize: "desktop.md",
9884
+ paddingX: "2",
9885
+ paddingY: "3",
9886
+ fontWeight: "bold",
9887
+ borderRadius: "md"
9888
+ }
9889
+ }
9890
+ }
9891
+ },
9892
+ defaultVariants: {
9893
+ variant: "core",
9894
+ size: "sm"
9895
+ }
9896
+ });
9742
9897
  var lineIconSlotRecipe = react.defineSlotRecipe({
9743
9898
  slots: linjetagAnatomy.keys(),
9744
9899
  className: "spor-line-icon",
@@ -9915,18 +10070,18 @@ var listBoxSlotRecipe = react.defineSlotRecipe({
9915
10070
  marginY: 1,
9916
10071
  marginX: 1,
9917
10072
  borderRadius: "sm",
9918
- color: "ghost.text",
10073
+ color: "text.ghost",
9919
10074
  cursor: "pointer",
9920
10075
  listStyle: "none",
9921
10076
  _active: {
9922
- backgroundColor: "ghost.surface.active"
10077
+ backgroundColor: "surface.ghost.active"
9923
10078
  },
9924
10079
  _hover: {
9925
- backgroundColor: "accent.surface",
9926
- color: "accent.text"
10080
+ backgroundColor: "surface.accent",
10081
+ color: "text.accent"
9927
10082
  },
9928
10083
  _selected: {
9929
- backgroundColor: "ghost.surface.active"
10084
+ backgroundColor: "surface.ghost.active"
9930
10085
  },
9931
10086
  _focus: {
9932
10087
  outline: "2px solid",
@@ -9936,9 +10091,9 @@ var listBoxSlotRecipe = react.defineSlotRecipe({
9936
10091
  label: {},
9937
10092
  description: {
9938
10093
  fontSize: ["mobile.xs", "desktop.xs"],
9939
- color: "ghost.text",
10094
+ color: "text.ghost",
9940
10095
  "[aria-selected='true'] &": {
9941
- color: "ghost.text"
10096
+ color: "text.ghost"
9942
10097
  }
9943
10098
  }
9944
10099
  },
@@ -9947,13 +10102,13 @@ var listBoxSlotRecipe = react.defineSlotRecipe({
9947
10102
  core: {
9948
10103
  root: {
9949
10104
  outline: "1px solid",
9950
- outlineColor: "core.outline"
10105
+ outlineColor: "outline.core"
9951
10106
  }
9952
10107
  },
9953
10108
  floating: {
9954
10109
  root: {
9955
10110
  outline: "1px solid",
9956
- outlineColor: "floating.outline"
10111
+ outlineColor: "outline.floating"
9957
10112
  }
9958
10113
  }
9959
10114
  }
@@ -9978,7 +10133,7 @@ var mediaControllerSlotRecipe = react.defineSlotRecipe({
9978
10133
  display: "flex",
9979
10134
  padding: 1,
9980
10135
  alignSelf: "center",
9981
- color: "brand.surface",
10136
+ color: "surface.brand",
9982
10137
  outlineOffset: "2px"
9983
10138
  },
9984
10139
  icon: {
@@ -9991,14 +10146,14 @@ var mediaControllerSlotRecipe = react.defineSlotRecipe({
9991
10146
  play: {
9992
10147
  root: {
9993
10148
  padding: 0,
9994
- color: "brand.text",
9995
- backgroundColor: "brand.surface",
10149
+ color: "text.brand",
10150
+ backgroundColor: "surface.brand",
9996
10151
  _hover: {
9997
- color: "brand.text",
9998
- backgroundColor: "brand.surface.hover",
10152
+ color: "text.brand",
10153
+ backgroundColor: "surface.brand.hover",
9999
10154
  _active: {
10000
- color: "brand.text",
10001
- backgroundColor: "brand.surface.active"
10155
+ color: "text.brand",
10156
+ backgroundColor: "surface.brand.active"
10002
10157
  }
10003
10158
  },
10004
10159
  _disabled: {
@@ -10011,9 +10166,9 @@ var mediaControllerSlotRecipe = react.defineSlotRecipe({
10011
10166
  jumpSkip: {
10012
10167
  root: {
10013
10168
  _hover: {
10014
- backgroundColor: "ghost.surface.hover",
10169
+ backgroundColor: "surface.ghost.hover",
10015
10170
  _active: {
10016
- backgroundColor: "ghost.surface.active"
10171
+ backgroundColor: "surface.ghost.active"
10017
10172
  }
10018
10173
  },
10019
10174
  _disabled: {
@@ -10123,16 +10278,16 @@ var menuSlotRecipe = react.defineSlotRecipe({
10123
10278
  justifyContent: "space-between",
10124
10279
  gap: 1.5,
10125
10280
  _hover: {
10126
- backgroundColor: "accent.surface.hover"
10281
+ backgroundColor: "surface.accent.hover"
10127
10282
  },
10128
10283
  "&:active": {
10129
- backgroundColor: "accent.surface.active"
10284
+ backgroundColor: "surface.accent.active"
10130
10285
  },
10131
10286
  _checked: {
10132
- backgroundColor: "accent.surface"
10287
+ backgroundColor: "surface.accent"
10133
10288
  },
10134
10289
  _highlighted: {
10135
- backgroundColor: "ghost.surface.hover"
10290
+ backgroundColor: "surface.ghost.hover"
10136
10291
  }
10137
10292
  },
10138
10293
  itemGroupLabel: {
@@ -10169,19 +10324,19 @@ var menuSlotRecipe = react.defineSlotRecipe({
10169
10324
  core: {
10170
10325
  content: {
10171
10326
  border: "1px solid",
10172
- borderColor: "core.outline"
10327
+ borderColor: "outline.core"
10173
10328
  }
10174
10329
  },
10175
10330
  accent: {
10176
10331
  content: {
10177
10332
  border: "1px solid",
10178
- borderColor: "core.outline"
10333
+ borderColor: "outline.core"
10179
10334
  }
10180
10335
  },
10181
10336
  floating: {
10182
10337
  content: {
10183
10338
  border: "sm",
10184
- borderColor: "floating.outline",
10339
+ borderColor: "outline.floating",
10185
10340
  boxShadow: "lg"
10186
10341
  }
10187
10342
  }
@@ -10269,7 +10424,7 @@ var numericStepperRecipe = react.defineSlotRecipe({
10269
10424
  textAlign: "center",
10270
10425
  transitionProperty: "common",
10271
10426
  transitionDuration: "fast",
10272
- color: "core.text",
10427
+ color: "text.core",
10273
10428
  backgroundColor: "transparent",
10274
10429
  _focus: {
10275
10430
  backgroundColor: "surface",
@@ -10277,7 +10432,7 @@ var numericStepperRecipe = react.defineSlotRecipe({
10277
10432
  outlineColor: "outline.focus"
10278
10433
  },
10279
10434
  _active: {
10280
- backgroundColor: "accent.surface.active"
10435
+ backgroundColor: "surface.accent.active"
10281
10436
  },
10282
10437
  _disabled: {
10283
10438
  pointerEvents: "none",
@@ -10285,7 +10440,7 @@ var numericStepperRecipe = react.defineSlotRecipe({
10285
10440
  },
10286
10441
  _hover: {
10287
10442
  outline: "1px solid",
10288
- outlineColor: "core.outline"
10443
+ outlineColor: "outline.core"
10289
10444
  }
10290
10445
  },
10291
10446
  text: {
@@ -10295,7 +10450,7 @@ var numericStepperRecipe = react.defineSlotRecipe({
10295
10450
  paddingX: 1,
10296
10451
  textAlign: "center",
10297
10452
  width: "4ch",
10298
- color: "core.text"
10453
+ color: "text.core"
10299
10454
  },
10300
10455
  button: {
10301
10456
  outlineOffset: "-2px",
@@ -10329,18 +10484,18 @@ var paginationSlotRecipe = react.defineSlotRecipe({
10329
10484
  width: "5",
10330
10485
  fontSize: "xs",
10331
10486
  borderRadius: "xl",
10332
- color: "core.text",
10487
+ color: "text.core",
10333
10488
  cursor: "pointer",
10334
10489
  _hover: {
10335
- background: "ghost.surface.hover",
10490
+ background: "surface.ghost.hover",
10336
10491
  _active: {
10337
- background: "ghost.surface.active"
10492
+ background: "surface.ghost.active"
10338
10493
  }
10339
10494
  },
10340
10495
  _selected: {
10341
10496
  cursor: "default",
10342
10497
  fontWeight: "bold",
10343
- backgroundColor: "core.surface.active"
10498
+ backgroundColor: "surface.core.active"
10344
10499
  }
10345
10500
  },
10346
10501
  list: {
@@ -10360,11 +10515,11 @@ var popoverSlotRecipe = react.defineSlotRecipe({
10360
10515
  position: "relative",
10361
10516
  display: "flex",
10362
10517
  flexDirection: "row-reverse",
10363
- color: "text.inverted",
10518
+ color: "text.brand",
10364
10519
  gap: "0.625rem",
10365
10520
  padding: "0.563rem 0.75rem",
10366
10521
  textStyle: "sm",
10367
- bg: "surface.tertiary",
10522
+ bg: "surface.brand",
10368
10523
  boxShadow: "lg",
10369
10524
  borderRadius: "sm",
10370
10525
  zIndex: "popover",
@@ -10381,14 +10536,14 @@ var popoverSlotRecipe = react.defineSlotRecipe({
10381
10536
  }
10382
10537
  },
10383
10538
  body: {
10384
- color: "text.inverted",
10539
+ color: "text.brand",
10385
10540
  alignItems: "center",
10386
10541
  borderRadius: "sm",
10387
10542
  zIndex: "inherit",
10388
10543
  maxWidth: "20em"
10389
10544
  },
10390
10545
  arrow: {
10391
- "--arrow-background": "colors.surface.tertiary",
10546
+ "--arrow-background": "colors.surface.brand",
10392
10547
  "--arrow-size": "6px"
10393
10548
  }
10394
10549
  },
@@ -10432,7 +10587,7 @@ var progressBarRecipe = react.defineSlotRecipe({
10432
10587
  },
10433
10588
  background: {
10434
10589
  display: "flex",
10435
- backgroundColor: "accent.surface.hover",
10590
+ backgroundColor: "surface.accent.hover",
10436
10591
  borderRadius: "sm",
10437
10592
  boxPack: "start",
10438
10593
  justifyContent: "flex-start",
@@ -10443,7 +10598,7 @@ var progressBarRecipe = react.defineSlotRecipe({
10443
10598
  borderRadius: "sm"
10444
10599
  },
10445
10600
  progress: {
10446
- backgroundColor: "brand.surface.active",
10601
+ backgroundColor: "surface.brand.active",
10447
10602
  borderRadius: "sm",
10448
10603
  maxWidth: "100%",
10449
10604
  transition: "width .2s ease-out"
@@ -10473,7 +10628,7 @@ var progressIndicatorRecipe = react.defineSlotRecipe({
10473
10628
  width: 1,
10474
10629
  fill: "icon.disabled",
10475
10630
  "&[aria-current='step']": {
10476
- fill: "brand.surface"
10631
+ fill: "surface.brand"
10477
10632
  }
10478
10633
  }
10479
10634
  }
@@ -10513,17 +10668,17 @@ var radioGroupSlotRecipe = react.defineSlotRecipe({
10513
10668
  justifyContent: "center",
10514
10669
  verticalAlign: "top",
10515
10670
  borderWidth: "2px",
10516
- borderColor: "core.outline",
10671
+ borderColor: "outline.core",
10517
10672
  borderRadius: "xl",
10518
10673
  width: 4,
10519
10674
  height: 4,
10520
10675
  _checked: {
10521
- borderColor: "brand.surface"
10676
+ borderColor: "surface.brand"
10522
10677
  },
10523
10678
  _hover: {
10524
- borderColor: "brand.surface.hover",
10679
+ borderColor: "surface.brand.hover",
10525
10680
  "& .dot": {
10526
- backgroundColor: "brand.surface.hover"
10681
+ backgroundColor: "surface.brand.hover"
10527
10682
  }
10528
10683
  },
10529
10684
  _disabled: {
@@ -10544,7 +10699,7 @@ var radioGroupSlotRecipe = react.defineSlotRecipe({
10544
10699
  height: "full",
10545
10700
  width: "full",
10546
10701
  borderRadius: "xl",
10547
- backgroundColor: "brand.surface",
10702
+ backgroundColor: "surface.brand",
10548
10703
  scale: "0.5"
10549
10704
  }
10550
10705
  }
@@ -10596,15 +10751,15 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
10596
10751
  variant: {
10597
10752
  core: {
10598
10753
  item: {
10599
- outlineColor: "core.outline",
10754
+ outlineColor: "outline.core",
10600
10755
  outlineWidth: tokens22__namespace.default.size.stroke.sm,
10601
10756
  outlineStyle: "solid",
10602
10757
  _hover: {
10603
- outlineColor: "core.outline.hover",
10758
+ outlineColor: "outline.core.hover",
10604
10759
  outlineWidth: tokens22__namespace.default.size.stroke.md,
10605
10760
  outlineStyle: "solid",
10606
10761
  _active: {
10607
- backgroundColor: "core.surface.active",
10762
+ backgroundColor: "surface.core.active",
10608
10763
  outlineWidth: tokens22__namespace.default.size.stroke.sm
10609
10764
  }
10610
10765
  },
@@ -10612,7 +10767,7 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
10612
10767
  outlineColor: "outline.focus",
10613
10768
  outlineWidth: tokens22__namespace.default.size.stroke.md,
10614
10769
  outlineStyle: "solid",
10615
- backgroundColor: "core.surface.active",
10770
+ backgroundColor: "surface.core.active",
10616
10771
  _focusVisible: {
10617
10772
  outlineStyle: "double",
10618
10773
  outlineWidth: `calc(3 * ${tokens22__namespace.default.size.stroke.md})`
@@ -10626,15 +10781,15 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
10626
10781
  boxShadow: "0px 1px 3px 0px var(--shadow-color)",
10627
10782
  shadowColor: "surface.disabled",
10628
10783
  border: "sm",
10629
- borderColor: "floating.outline",
10630
- background: "floating.surface",
10784
+ borderColor: "outline.floating",
10785
+ background: "surface.floating",
10631
10786
  _hover: {
10632
- background: "floating.surface.hover",
10633
- borderColor: "floating.outline.hover",
10787
+ background: "surface.floating.hover",
10788
+ borderColor: "outline.floating.hover",
10634
10789
  boxShadow: "0px 2px 6px 0px var(--shadow-color)",
10635
10790
  _active: {
10636
- background: "floating.surface.active",
10637
- borderColor: "floating.outline.active",
10791
+ background: "surface.floating.active",
10792
+ borderColor: "outline.neutral",
10638
10793
  boxShadow: "none"
10639
10794
  }
10640
10795
  },
@@ -10642,7 +10797,7 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
10642
10797
  outlineColor: "outline.focus",
10643
10798
  outlineWidth: tokens22__namespace.default.size.stroke.md,
10644
10799
  outlineStyle: "solid",
10645
- backgroundColor: "core.surface.active",
10800
+ backgroundColor: "surface.core.active",
10646
10801
  _focusVisible: {
10647
10802
  outlineStyle: "double",
10648
10803
  outlineWidth: `calc(3 * ${tokens22__namespace.default.size.stroke.md})`
@@ -10722,7 +10877,7 @@ var selectSlotRecipe = react.defineSlotRecipe({
10722
10877
  color: {
10723
10878
  base: "text",
10724
10879
  _disabled: "text.disabled",
10725
- _invalid: "text.secondary"
10880
+ _invalid: "text.highlight"
10726
10881
  },
10727
10882
  _icon: {
10728
10883
  width: 3,
@@ -10759,14 +10914,14 @@ var selectSlotRecipe = react.defineSlotRecipe({
10759
10914
  justifyContent: "space-between",
10760
10915
  gap: 1,
10761
10916
  borderRadius: "sm",
10762
- color: "ghost.text",
10917
+ color: "text.ghost",
10763
10918
  cursor: "pointer",
10764
10919
  outline: "none",
10765
10920
  "&[data-highlighted]:hover": {
10766
10921
  outlineOffset: "2px",
10767
10922
  outline: "2px solid",
10768
10923
  outlineColor: "outline.focus",
10769
- backgroundColor: "ghost.surface.hover"
10924
+ backgroundColor: "surface.accent.hover"
10770
10925
  },
10771
10926
  "&[data-highlighted]": {
10772
10927
  outlineOffset: "2px",
@@ -10774,7 +10929,7 @@ var selectSlotRecipe = react.defineSlotRecipe({
10774
10929
  outlineColor: "outline.focus"
10775
10930
  },
10776
10931
  _active: {
10777
- backgroundColor: "ghost.surface.active"
10932
+ backgroundColor: "surface.accent.active"
10778
10933
  },
10779
10934
  _highlighted: {
10780
10935
  _active: {
@@ -10782,12 +10937,12 @@ var selectSlotRecipe = react.defineSlotRecipe({
10782
10937
  }
10783
10938
  },
10784
10939
  _hover: {
10785
- backgroundColor: "ghost.surface.hover",
10940
+ backgroundColor: "surface.accent.hover",
10786
10941
  outline: "2px solid core.outline",
10787
10942
  outlineOffset: "2px"
10788
10943
  },
10789
10944
  _selected: {
10790
- backgroundColor: "ghost.surface.active"
10945
+ backgroundColor: "surface.accent"
10791
10946
  },
10792
10947
  _icon: {
10793
10948
  width: 3,
@@ -10822,9 +10977,9 @@ var selectSlotRecipe = react.defineSlotRecipe({
10822
10977
  valueText: {},
10823
10978
  itemDescription: {
10824
10979
  fontSize: ["mobile.xs", "desktop.xs"],
10825
- color: "ghost.text",
10980
+ color: "text.ghost",
10826
10981
  "[aria-selected='true'] &": {
10827
- color: "ghost.text"
10982
+ color: "text.ghost"
10828
10983
  }
10829
10984
  }
10830
10985
  },
@@ -10833,13 +10988,13 @@ var selectSlotRecipe = react.defineSlotRecipe({
10833
10988
  core: {
10834
10989
  control: {
10835
10990
  outline: "1px solid",
10836
- outlineColor: "core.outline",
10991
+ outlineColor: "outline.core",
10837
10992
  _hover: {
10838
10993
  outline: "2px solid",
10839
- outlineColor: "core.outline"
10994
+ outlineColor: "outline.core"
10840
10995
  },
10841
10996
  _active: {
10842
- backgroundColor: "brand.surface.active"
10997
+ backgroundColor: "surface.brand.active"
10843
10998
  },
10844
10999
  _disabled: {
10845
11000
  pointerEvents: "none",
@@ -10851,13 +11006,13 @@ var selectSlotRecipe = react.defineSlotRecipe({
10851
11006
  floating: {
10852
11007
  control: {
10853
11008
  outline: "1px solid",
10854
- outlineColor: "floating.outline",
11009
+ outlineColor: "outline.floating",
10855
11010
  _hover: {
10856
11011
  outline: "2px solid",
10857
- outlineColor: "floating.outline"
11012
+ outlineColor: "outline.floating"
10858
11013
  },
10859
11014
  _active: {
10860
- backgroundColor: "brand.surface.active"
11015
+ backgroundColor: "surface.brand.active"
10861
11016
  },
10862
11017
  _disabled: {
10863
11018
  pointerEvents: "none",
@@ -10871,7 +11026,7 @@ var selectSlotRecipe = react.defineSlotRecipe({
10871
11026
  rightSideSquare: {
10872
11027
  control: {
10873
11028
  outline: "1px solid",
10874
- outlineColor: "core.outline"
11029
+ outlineColor: "outline.core"
10875
11030
  },
10876
11031
  trigger: {
10877
11032
  _focus: {
@@ -10882,7 +11037,7 @@ var selectSlotRecipe = react.defineSlotRecipe({
10882
11037
  leftSideSquare: {
10883
11038
  control: {
10884
11039
  outline: "1px solid",
10885
- outlineColor: "core.outline"
11040
+ outlineColor: "outline.core"
10886
11041
  },
10887
11042
  trigger: {
10888
11043
  _focus: {
@@ -10950,7 +11105,7 @@ var stepperSlotRecipe = react.defineSlotRecipe({
10950
11105
  },
10951
11106
  accent: {
10952
11107
  root: {
10953
- backgroundColor: "accent.bg"
11108
+ backgroundColor: "bg.accent"
10954
11109
  },
10955
11110
  stepButton: {
10956
11111
  color: {
@@ -10958,13 +11113,13 @@ var stepperSlotRecipe = react.defineSlotRecipe({
10958
11113
  _dark: "whiteAlpha.900"
10959
11114
  },
10960
11115
  _disabled: {
10961
- color: "core.text"
11116
+ color: "text.core"
10962
11117
  },
10963
11118
  _currentStep: {
10964
- color: "accent.text"
11119
+ color: "text.accent"
10965
11120
  },
10966
11121
  _hover: {
10967
- backgroundColor: "accent.surface.hover",
11122
+ backgroundColor: "surface.accent.hover",
10968
11123
  _disabled: {
10969
11124
  backgroundColor: "transparent"
10970
11125
  }
@@ -10972,7 +11127,7 @@ var stepperSlotRecipe = react.defineSlotRecipe({
10972
11127
  },
10973
11128
  backButton: {
10974
11129
  _hover: {
10975
- backgroundColor: "brand.surface.hover"
11130
+ backgroundColor: "surface.brand.hover"
10976
11131
  }
10977
11132
  }
10978
11133
  }
@@ -11006,7 +11161,7 @@ var switchSlotRecipe = react.defineSlotRecipe({
11006
11161
  justifyContent: "center",
11007
11162
  width: "var(--switch-height)",
11008
11163
  height: "var(--switch-height)",
11009
- backgroundColor: "core.icon",
11164
+ backgroundColor: "icon.core",
11010
11165
  _disabled: {
11011
11166
  backgroundColor: "icon.disabled",
11012
11167
  _checked: {
@@ -11015,7 +11170,7 @@ var switchSlotRecipe = react.defineSlotRecipe({
11015
11170
  },
11016
11171
  _checked: {
11017
11172
  translate: "var(--switch-x) 0",
11018
- backgroundColor: "brand.icon"
11173
+ backgroundColor: "icon.brand"
11019
11174
  }
11020
11175
  },
11021
11176
  label: {
@@ -11044,13 +11199,13 @@ var switchSlotRecipe = react.defineSlotRecipe({
11044
11199
  transitionDuration: "fast",
11045
11200
  outline: "1px solid",
11046
11201
  outlineOffset: "-1px",
11047
- outlineColor: "core.outline",
11202
+ outlineColor: "outline.core",
11048
11203
  _hover: {
11049
11204
  outline: "2px solid",
11050
- outlineColor: "core.outline.hover",
11205
+ outlineColor: "outline.core.hover",
11051
11206
  _checked: {
11052
11207
  outlineColor: "transparent",
11053
- backgroundColor: "brand.surface.hover"
11208
+ backgroundColor: "surface.brand.hover"
11054
11209
  }
11055
11210
  },
11056
11211
  _focusVisible: {
@@ -11059,7 +11214,7 @@ var switchSlotRecipe = react.defineSlotRecipe({
11059
11214
  outlineStyle: "double"
11060
11215
  },
11061
11216
  _checked: {
11062
- backgroundColor: "brand.surface",
11217
+ backgroundColor: "surface.brand",
11063
11218
  outline: "none",
11064
11219
  _focusVisible: {
11065
11220
  outlineOffset: "1px",
@@ -11158,10 +11313,10 @@ var tableSlotRecipe = react.defineSlotRecipe({
11158
11313
  backgroundColor: "bg"
11159
11314
  },
11160
11315
  header: {
11161
- backgroundColor: "bg.tertiary"
11316
+ backgroundColor: "bg.brand"
11162
11317
  },
11163
11318
  columnHeader: {
11164
- color: "text.secondary"
11319
+ color: "text.highlight"
11165
11320
  }
11166
11321
  },
11167
11322
  grey: {
@@ -11370,26 +11525,26 @@ var tabsSlotRecipe = react.defineSlotRecipe({
11370
11525
  variant: {
11371
11526
  core: {
11372
11527
  list: {
11373
- color: "core.text",
11528
+ color: "text.core",
11374
11529
  border: "sm"
11375
11530
  },
11376
11531
  trigger: {
11377
- color: "core.text",
11532
+ color: "text.core",
11378
11533
  border: "md",
11379
11534
  borderColor: "transparent",
11380
11535
  _hover: {
11381
11536
  outline: "2px solid",
11382
- outlineColor: "core.outline.hover",
11537
+ outlineColor: "outline.core.hover",
11383
11538
  outlineOffset: "-2px"
11384
11539
  },
11385
11540
  _active: {
11386
- backgroundColor: "brand.surface.active",
11387
- color: "brand.text",
11541
+ backgroundColor: "surface.brand.active",
11542
+ color: "text.brand",
11388
11543
  outline: "none"
11389
11544
  },
11390
11545
  _selected: {
11391
- backgroundColor: "brand.surface",
11392
- color: "brand.text",
11546
+ backgroundColor: "surface.brand",
11547
+ color: "text.brand",
11393
11548
  _hover: {
11394
11549
  outline: "none"
11395
11550
  }
@@ -11402,28 +11557,28 @@ var tabsSlotRecipe = react.defineSlotRecipe({
11402
11557
  },
11403
11558
  accent: {
11404
11559
  list: {
11405
- backgroundColor: "accent.bg",
11406
- color: "accent.text"
11560
+ backgroundColor: "bg.accent",
11561
+ color: "text.accent"
11407
11562
  },
11408
11563
  trigger: {
11409
- color: "accent.text",
11564
+ color: "text.accent",
11410
11565
  _disabled: {
11411
11566
  backgroundColor: "surface.disabled",
11412
11567
  color: "icon.disabled"
11413
11568
  },
11414
11569
  _hover: {
11415
- backgroundColor: "accent.surface.hover",
11570
+ backgroundColor: "surface.accent.hover",
11416
11571
  _active: {
11417
- backgroundColor: "brand.surface.active",
11418
- color: "brand.text"
11572
+ backgroundColor: "surface.brand.active",
11573
+ color: "text.brand"
11419
11574
  }
11420
11575
  },
11421
11576
  _selected: {
11422
- backgroundColor: "brand.surface",
11423
- color: "brand.text",
11577
+ backgroundColor: "surface.brand",
11578
+ color: "text.brand",
11424
11579
  _hover: {
11425
- backgroundColor: "brand.surface.hover",
11426
- color: "brand.text",
11580
+ backgroundColor: "surface.brand.hover",
11581
+ color: "text.brand",
11427
11582
  outline: "none"
11428
11583
  }
11429
11584
  }
@@ -11471,7 +11626,7 @@ var tabsSlotRecipe = react.defineSlotRecipe({
11471
11626
  paddingX: 3,
11472
11627
  _focus: {
11473
11628
  border: "md",
11474
- borderColor: "accent.surface"
11629
+ borderColor: "surface.accent"
11475
11630
  }
11476
11631
  }
11477
11632
  }
@@ -11502,13 +11657,13 @@ var toastSlotRecipe = react.defineSlotRecipe({
11502
11657
  boxShadow: "xl",
11503
11658
  color: "text",
11504
11659
  "&[data-type=success]": {
11505
- backgroundColor: "alert.success.surface"
11660
+ backgroundColor: "surface.success"
11506
11661
  },
11507
11662
  "&[data-type=error]": {
11508
- backgroundColor: "alert.error.surface"
11663
+ backgroundColor: "surface.critical"
11509
11664
  },
11510
11665
  "&[data-type=info]": {
11511
- backgroundColor: "alert.info.surface"
11666
+ backgroundColor: "surface.info"
11512
11667
  }
11513
11668
  },
11514
11669
  title: {
@@ -11555,6 +11710,7 @@ var slotRecipes = {
11555
11710
  checkboxCard: choiceChipSlotRecipe,
11556
11711
  collapsible: collapsibleSlotRecipe,
11557
11712
  tooltip: popoverSlotRecipe,
11713
+ tag: inputChipSlotRecipe,
11558
11714
  menu: menuSlotRecipe
11559
11715
  };
11560
11716
  var animations = react.defineTokens.animations({
@@ -12734,6 +12890,7 @@ exports.Heading = Heading;
12734
12890
  exports.IconButton = IconButton;
12735
12891
  exports.InfoTag = InfoTag;
12736
12892
  exports.Input = Input;
12893
+ exports.InputChip = InputChip;
12737
12894
  exports.ItemDescription = ItemDescription;
12738
12895
  exports.ItemLabel = ItemLabel;
12739
12896
  exports.JumpButton = JumpButton;