@vygruppen/spor-react 12.9.0 → 12.10.1

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 (39) hide show
  1. package/.turbo/turbo-build.log +10 -10
  2. package/.turbo/turbo-postinstall.log +1 -1
  3. package/CHANGELOG.md +21 -0
  4. package/dist/index.cjs +89 -131
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +19 -40
  7. package/dist/index.d.ts +19 -40
  8. package/dist/index.mjs +89 -131
  9. package/dist/index.mjs.map +1 -1
  10. package/package.json +5 -4
  11. package/src/dialog/Drawer.tsx +2 -2
  12. package/src/linjetag/LineIcon.tsx +4 -2
  13. package/src/linjetag/TravelTag.tsx +2 -1
  14. package/src/loader/DarkFullScreenLoader.tsx +2 -1
  15. package/src/loader/LightFullScreenLoader.tsx +1 -7
  16. package/src/loader/LightInlineLoader.tsx +1 -7
  17. package/src/provider/SporProvider.tsx +12 -1
  18. package/src/theme/recipes/badge.ts +1 -1
  19. package/src/theme/recipes/close-button.ts +2 -2
  20. package/src/theme/recipes/link.ts +3 -3
  21. package/src/theme/recipes/pressable-card.ts +0 -1
  22. package/src/theme/recipes/skeleton.ts +1 -1
  23. package/src/theme/slot-recipes/alert-service.ts +1 -1
  24. package/src/theme/slot-recipes/checkbox.ts +2 -3
  25. package/src/theme/slot-recipes/choice-chip.ts +8 -8
  26. package/src/theme/slot-recipes/datepicker.ts +1 -2
  27. package/src/theme/slot-recipes/dialog.ts +1 -0
  28. package/src/theme/slot-recipes/drawer.ts +1 -0
  29. package/src/theme/slot-recipes/field.ts +4 -3
  30. package/src/theme/slot-recipes/floating-action-button.ts +1 -1
  31. package/src/theme/slot-recipes/line-icon.ts +3 -36
  32. package/src/theme/slot-recipes/radio-card.ts +0 -1
  33. package/src/theme/slot-recipes/select.ts +0 -1
  34. package/src/theme/slot-recipes/switch.ts +2 -4
  35. package/src/theme/slot-recipes/table.ts +0 -1
  36. package/src/theme/slot-recipes/tabs.ts +3 -4
  37. package/src/theme/slot-recipes/toast.ts +0 -9
  38. package/src/theme/slot-recipes/travel-tag.ts +11 -9
  39. package/src/toast/toast.tsx +1 -1
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.9.0 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.10.1 build /home/runner/work/spor/spor/packages/spor-react
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.tsx, src/icons/index.tsx
@@ -11,18 +11,18 @@ CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
13
  DTS Build start
14
- CJS dist/index.cjs 315.42 KB
14
+ CJS dist/index.cjs 314.93 KB
15
15
  CJS dist/icons/index.cjs 381.00 B
16
+ CJS dist/index.cjs.map 629.08 KB
16
17
  CJS dist/icons/index.cjs.map 157.00 B
17
- CJS dist/index.cjs.map 629.60 KB
18
- CJS ⚡️ Build success in 3398ms
19
- ESM dist/index.mjs 294.02 KB
18
+ CJS ⚡️ Build success in 2614ms
19
+ ESM dist/index.mjs 293.53 KB
20
20
  ESM dist/icons/index.mjs 110.00 B
21
- ESM dist/index.mjs.map 629.60 KB
22
21
  ESM dist/icons/index.mjs.map 157.00 B
23
- ESM ⚡️ Build success in 3402ms
24
- DTS ⚡️ Build success in 32388ms
22
+ ESM dist/index.mjs.map 629.08 KB
23
+ ESM ⚡️ Build success in 2615ms
24
+ DTS ⚡️ Build success in 27219ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
- DTS dist/index.d.ts 156.40 KB
26
+ DTS dist/index.d.ts 155.93 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
28
- DTS dist/index.d.cts 156.40 KB
28
+ DTS dist/index.d.cts 155.93 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.9.0 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.10.1 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
package/CHANGELOG.md CHANGED
@@ -1,11 +1,32 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e690a57: New use-semantic-tokens linting rule to enforce semantic color tokens in Spor components.
8
+ - @vygruppen/spor-design-tokens@4.0.8
9
+ - @vygruppen/spor-icon-react@4.2.1
10
+
11
+ ## 12.10.0
12
+
13
+ ### Minor Changes
14
+
15
+ - c367662: Bump to 12.10.0 - error with previous changeset.
16
+
3
17
  ## 12.9.0
4
18
 
5
19
  ### Minor Changes
6
20
 
7
21
  - 5e4f450: Drawer: Make it possible to close a drawer by swiping
8
22
 
23
+ ### Patch Changes
24
+
25
+ - e375b23: Make it possible to turn off automatic system detection for color mode
26
+ - a4ed71b: Add gap between icon and text in ChoiceChip
27
+ - Updated dependencies [33ffcc7]
28
+ - @vygruppen/spor-design-tokens@4.0.8
29
+
9
30
  ## 12.8.10
10
31
 
11
32
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -248,7 +248,8 @@ var DarkFullScreenLoader = ({
248
248
  react.Center,
249
249
  {
250
250
  height: "100%",
251
- background: "darkTeal",
251
+ background: "bg",
252
+ className: "dark",
252
253
  role: "status",
253
254
  "aria-live": "polite",
254
255
  ...props,
@@ -288,40 +289,20 @@ var LightFullScreenLoader = ({
288
289
  maxWidth,
289
290
  ...props
290
291
  }) => {
291
- return /* @__PURE__ */ jsxRuntime.jsxs(
292
- react.Center,
293
- {
294
- height: "100%",
295
- background: "white",
296
- role: "status",
297
- "aria-live": "polite",
298
- ...props,
299
- children: [
300
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.fullScreenLoaderBlackData }) }) }),
301
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
302
- ]
303
- }
304
- );
292
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { height: "100%", role: "status", "aria-live": "polite", ...props, children: [
293
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.fullScreenLoaderBlackData }) }) }),
294
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
295
+ ] });
305
296
  };
306
297
  var LightInlineLoader = ({
307
298
  width,
308
299
  maxWidth,
309
300
  ...props
310
301
  }) => {
311
- return /* @__PURE__ */ jsxRuntime.jsxs(
312
- react.Center,
313
- {
314
- height: "100%",
315
- background: "white",
316
- role: "status",
317
- "aria-live": "polite",
318
- ...props,
319
- children: [
320
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderLightData }) }) }),
321
- /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
322
- ]
323
- }
324
- );
302
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { height: "100%", role: "status", "aria-live": "polite", ...props, children: [
303
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderLightData }) }) }),
304
+ /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
305
+ ] });
325
306
  };
326
307
  var LightSpinner = ({
327
308
  children,
@@ -699,7 +680,7 @@ var badgeRecipie = react.defineRecipe({
699
680
  backgroundColor: "surface.color.orange",
700
681
  color: "alert.error.text.secondary",
701
682
  "& svg": {
702
- color: "alert.error.icon.secondary"
683
+ color: "alert.error-secondary.icon"
703
684
  }
704
685
  },
705
686
  red: {
@@ -2405,7 +2386,7 @@ var CloseDrawerLine = React27.forwardRef((props, ref) => {
2405
2386
  top: 0,
2406
2387
  marginY: 2,
2407
2388
  marginX: "auto",
2408
- backgroundColor: "silver",
2389
+ backgroundColor: "floating.outline.active",
2409
2390
  borderRadius: "xs",
2410
2391
  ...props,
2411
2392
  ref
@@ -3785,6 +3766,28 @@ var StaticCard = React27.forwardRef(
3785
3766
  }
3786
3767
  );
3787
3768
  StaticCard.displayName = "StaticCard";
3769
+
3770
+ // ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
3771
+ function r(e) {
3772
+ var t, f, n = "";
3773
+ if ("string" == typeof e || "number" == typeof e)
3774
+ n += e;
3775
+ else if ("object" == typeof e)
3776
+ if (Array.isArray(e)) {
3777
+ var o = e.length;
3778
+ for (t = 0; t < o; t++)
3779
+ e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
3780
+ } else
3781
+ for (f in e)
3782
+ e[f] && (n && (n += " "), n += f);
3783
+ return n;
3784
+ }
3785
+ function clsx() {
3786
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++)
3787
+ (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
3788
+ return n;
3789
+ }
3790
+ var clsx_default = clsx;
3788
3791
  var icons = {
3789
3792
  "local-train": {
3790
3793
  sm: sporIconReact.TrainFill18Icon,
@@ -3851,9 +3854,9 @@ var LineIcon = React27.forwardRef(
3851
3854
  return variant === "walk" && target === "travelTag" ? 0 : 0.5;
3852
3855
  };
3853
3856
  const Icon3 = getCorrectIcon({
3854
- variant: variant === "custom" && "customIconVariant" in rest ? rest.customIconVariant : (
3855
- // eslint-disable-next-line unicorn/no-nested-ternary
3856
- variant === "custom" ? "local-train" : variant
3857
+ variant: (
3858
+ // eslint-disable-next-line no-nested-ternary
3859
+ variant === "custom" && "customIconVariant" in rest ? rest.customIconVariant : variant === "custom" ? "local-train" : variant
3857
3860
  ),
3858
3861
  size
3859
3862
  });
@@ -3872,6 +3875,7 @@ var LineIcon = React27.forwardRef(
3872
3875
  borderColor: variant === "walk" ? "core.outline" : "transparent",
3873
3876
  "aria-label": label,
3874
3877
  ref,
3878
+ className: clsx_default("light", rest.className),
3875
3879
  children: /* @__PURE__ */ jsxRuntime.jsx(Icon3, { css: styles.icon })
3876
3880
  }
3877
3881
  );
@@ -3932,8 +3936,8 @@ var TravelTag = React27.forwardRef(
3932
3936
  css: styles.container,
3933
3937
  "aria-disabled": disabled,
3934
3938
  ref,
3939
+ className: clsx_default("light", rest.className),
3935
3940
  ...rest,
3936
- backgroundColor: disabled ? "surface.disabled" : backgroundColor,
3937
3941
  children: [
3938
3942
  /* @__PURE__ */ jsxRuntime.jsx(
3939
3943
  LineIcon,
@@ -5085,7 +5089,7 @@ var createToast = ({
5085
5089
  text,
5086
5090
  variant,
5087
5091
  id,
5088
- duration = 6e3
5092
+ duration = 6e5
5089
5093
  }) => toaster.create({
5090
5094
  description: text,
5091
5095
  type: variant,
@@ -5134,9 +5138,10 @@ var texts25 = createTexts({
5134
5138
  var SporProvider = ({
5135
5139
  language = "nb" /* NorwegianBokmal */,
5136
5140
  theme = system,
5141
+ enableSystemColorMode = true,
5137
5142
  children
5138
5143
  }) => {
5139
- return /* @__PURE__ */ jsxRuntime.jsx(LanguageProvider, { language, children: /* @__PURE__ */ jsxRuntime.jsx(react.ChakraProvider, { value: theme, children: /* @__PURE__ */ jsxRuntime.jsxs(ColorModeProvider, { children: [
5144
+ return /* @__PURE__ */ jsxRuntime.jsx(LanguageProvider, { language, children: /* @__PURE__ */ jsxRuntime.jsx(react.ChakraProvider, { value: theme, children: /* @__PURE__ */ jsxRuntime.jsxs(ColorModeProvider, { enableSystem: enableSystemColorMode, children: [
5140
5145
  /* @__PURE__ */ jsxRuntime.jsx(Toaster, {}),
5141
5146
  /* @__PURE__ */ jsxRuntime.jsx(react$1.Global, { styles: fontFaces }),
5142
5147
  children
@@ -5514,12 +5519,12 @@ var closeButtonRecipe = react.defineRecipe({
5514
5519
  transitionDuration: "normal",
5515
5520
  borderRadius: "md",
5516
5521
  backgroundColor: "transparent",
5517
- color: "darkGrey",
5522
+ color: "text",
5518
5523
  fontWeight: "normal",
5519
5524
  _hover: {
5520
5525
  background: "ghost.surface.hover",
5521
5526
  _disabled: {
5522
- color: "dimGrey"
5527
+ color: "icon.disabled"
5523
5528
  },
5524
5529
  _active: {
5525
5530
  background: "ghost.surface.active"
@@ -5677,17 +5682,17 @@ var linkRecipe = react.defineRecipe({
5677
5682
  primary: {
5678
5683
  color: "core.text",
5679
5684
  _hover: {
5680
- color: "text.default",
5685
+ color: "text",
5681
5686
  _active: {
5682
5687
  color: "text.disabled"
5683
5688
  }
5684
5689
  }
5685
5690
  },
5686
5691
  secondary: {
5687
- color: "text.hightlight",
5692
+ color: "text.highlight",
5688
5693
  padding: "2px",
5689
5694
  _hover: {
5690
- color: "text.hightlight",
5695
+ color: "text.highlight",
5691
5696
  _active: {
5692
5697
  color: "text.disabled"
5693
5698
  }
@@ -5771,7 +5776,6 @@ var pressableCardRecipe = react.defineRecipe({
5771
5776
  outlineColor: "core.outline",
5772
5777
  outlineWidth: tokens23__namespace.default.size.stroke.sm,
5773
5778
  outlineStyle: "solid",
5774
- backgroundColor: "core.surface",
5775
5779
  _hover: {
5776
5780
  outlineColor: "core.outline.hover",
5777
5781
  outlineWidth: tokens23__namespace.default.size.stroke.md,
@@ -5929,7 +5933,7 @@ var skeletonRecipe = react.defineRecipe({
5929
5933
  },
5930
5934
  none: {
5931
5935
  animation: "none",
5932
- background: "steel"
5936
+ background: "surface.color.grey"
5933
5937
  }
5934
5938
  }
5935
5939
  }
@@ -6682,7 +6686,7 @@ var alertServiceSlotRecipe = react.defineSlotRecipe({
6682
6686
  backgroundColor: "alert.service.surface.active"
6683
6687
  },
6684
6688
  _icon: {
6685
- color: "darkGrey"
6689
+ color: "text"
6686
6690
  }
6687
6691
  },
6688
6692
  itemTriggerTitle: {
@@ -6788,7 +6792,6 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
6788
6792
  indicator: {
6789
6793
  width: "100%",
6790
6794
  height: "100%",
6791
- borderColor: "white",
6792
6795
  marginTop: -1,
6793
6796
  transform: "scale(1)",
6794
6797
  opacity: 0,
@@ -6819,8 +6822,8 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
6819
6822
  borderColor: "currentColor"
6820
6823
  },
6821
6824
  _invalid: {
6822
- backgroundColor: "brightRed",
6823
- borderColor: "brightRed"
6825
+ backgroundColor: "outline.error",
6826
+ borderColor: "outline.error"
6824
6827
  }
6825
6828
  },
6826
6829
  _disabled: {
@@ -6860,7 +6863,7 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
6860
6863
  paddingInlineStart: "2",
6861
6864
  paddingInlineEnd: "2",
6862
6865
  outline: "1px solid",
6863
- outlineColor: "base.outline",
6866
+ outlineColor: "core.outline",
6864
6867
  _checked: {
6865
6868
  backgroundColor: "brand.surface",
6866
6869
  borderRadius: "sm",
@@ -6885,19 +6888,19 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
6885
6888
  color: "text.disabled",
6886
6889
  outline: "none",
6887
6890
  _hover: {
6888
- backgroundColor: "core.surface.disabled",
6891
+ backgroundColor: "surface.disabled",
6889
6892
  boxShadow: "none",
6890
- color: "core.text.disabled"
6893
+ color: "text.disabled"
6891
6894
  },
6892
6895
  _checked: {
6893
6896
  cursor: "not-allowed",
6894
6897
  boxShadow: "none",
6895
- color: "core.text.disabled",
6896
- backgroundColor: "core.surface.disabled",
6898
+ color: "text.disabled",
6899
+ backgroundColor: "surface.disabled",
6897
6900
  _hover: {
6898
- backgroundColor: "core.surface.disabled",
6901
+ backgroundColor: "surface.disabled",
6899
6902
  boxShadow: "none",
6900
- color: "core.text.disabled"
6903
+ color: "text.disabled"
6901
6904
  }
6902
6905
  }
6903
6906
  }
@@ -6905,6 +6908,7 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
6905
6908
  label: {
6906
6909
  display: "flex",
6907
6910
  alignItems: "center",
6911
+ gap: "1",
6908
6912
  fontSize: "xs"
6909
6913
  }
6910
6914
  },
@@ -7060,7 +7064,7 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
7060
7064
  dateTimeSegment: {
7061
7065
  _focus: {
7062
7066
  backgroundColor: "ghost.surface.active",
7063
- color: "text.default"
7067
+ color: "text"
7064
7068
  }
7065
7069
  },
7066
7070
  box: {
@@ -7168,7 +7172,6 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
7168
7172
  wrapper: {
7169
7173
  outline: "1px solid",
7170
7174
  outlineColor: "core.outline",
7171
- backgroundColor: "core.surface",
7172
7175
  _hover: {
7173
7176
  outline: "2px solid",
7174
7177
  outlineColor: "core.outline.hover",
@@ -7236,6 +7239,7 @@ var dialogSlotRecipe = react.defineSlotRecipe({
7236
7239
  className: "spor-dialog",
7237
7240
  base: {
7238
7241
  backdrop: {
7242
+ // eslint-disable-next-line spor/use-semantic-tokens
7239
7243
  background: "blackAlpha.500",
7240
7244
  position: "fixed",
7241
7245
  left: 0,
@@ -7456,6 +7460,7 @@ var drawerSlotRecipe = react.defineSlotRecipe({
7456
7460
  className: "spor-drawer",
7457
7461
  base: {
7458
7462
  backdrop: {
7463
+ // eslint-disable-next-line spor/use-semantic-tokens
7459
7464
  bg: "blackAlpha.500",
7460
7465
  position: "fixed",
7461
7466
  insetInlineStart: 0,
@@ -7661,6 +7666,7 @@ var fieldSlotRecipe = react.defineSlotRecipe({
7661
7666
  },
7662
7667
  requiredIndicator: {
7663
7668
  marginStart: 1,
7669
+ // eslint-disable-next-line spor/use-semantic-tokens
7664
7670
  color: "brightRed"
7665
7671
  },
7666
7672
  label: {
@@ -7674,8 +7680,8 @@ var fieldSlotRecipe = react.defineSlotRecipe({
7674
7680
  },
7675
7681
  errorText: {
7676
7682
  borderRadius: "xs",
7677
- backgroundColor: "lightRed",
7678
- color: "darkGrey",
7683
+ backgroundColor: "alert.error.surface",
7684
+ color: "text",
7679
7685
  paddingX: 1.5,
7680
7686
  paddingY: 1,
7681
7687
  textStyle: "xs",
@@ -7692,7 +7698,7 @@ var fieldSlotRecipe = react.defineSlotRecipe({
7692
7698
  left: "1em",
7693
7699
  width: "0.5rem",
7694
7700
  height: "0.5rem",
7695
- backgroundColor: "lightRed",
7701
+ backgroundColor: "alert.error.surface",
7696
7702
  transform: "translateY(-50%) rotate(45deg)",
7697
7703
  pointerEvents: "none"
7698
7704
  }
@@ -7772,7 +7778,7 @@ var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
7772
7778
  _hover: {
7773
7779
  backgroundColor: "transparent",
7774
7780
  outline: "2px solid",
7775
- outlineColor: "core.outline.light",
7781
+ outlineColor: "core.outline",
7776
7782
  _active: {
7777
7783
  outline: "1px solid",
7778
7784
  outlineColor: "core.outline",
@@ -7835,6 +7841,9 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
7835
7841
  display: "flex",
7836
7842
  alignItems: "center",
7837
7843
  padding: 0.5,
7844
+ _disabled: {
7845
+ background: "surface.disabled"
7846
+ },
7838
7847
  width: "fit-content",
7839
7848
  transitionDuration: "fast",
7840
7849
  transitionProperty: "common",
@@ -7850,13 +7859,13 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
7850
7859
  }
7851
7860
  },
7852
7861
  textContainer: {
7853
- color: "darkGrey",
7862
+ color: "text",
7854
7863
  paddingRight: 0.5,
7855
7864
  whiteSpace: "nowrap"
7856
7865
  },
7857
7866
  title: {
7858
7867
  fontWeight: "bold",
7859
- color: "brand.text.inverted",
7868
+ color: "text",
7860
7869
  "[aria-disabled=true] &": {
7861
7870
  color: "text.disabled"
7862
7871
  }
@@ -7880,24 +7889,21 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
7880
7889
  critical: {
7881
7890
  container: {
7882
7891
  border: "1px solid",
7883
- borderColor: "error.text"
7892
+ borderColor: "outline.error"
7884
7893
  },
7885
7894
  deviationIcon: {
7886
- color: "brightRed"
7895
+ color: "outline.error"
7887
7896
  }
7888
7897
  },
7889
7898
  major: {
7890
7899
  container: {
7891
7900
  border: "1px solid",
7901
+ // eslint-disable-next-line spor/use-semantic-tokens
7892
7902
  borderColor: "golden"
7893
7903
  }
7894
7904
  },
7895
7905
  minor: {},
7896
- info: {
7897
- deviationIcon: {
7898
- color: "ocean"
7899
- }
7900
- },
7906
+ info: {},
7901
7907
  none: {}
7902
7908
  },
7903
7909
  variant: {
@@ -8088,22 +8094,13 @@ var lineIconSlotRecipe = react.defineSlotRecipe({
8088
8094
  iconContainer: {
8089
8095
  display: "flex",
8090
8096
  justifyContent: "center",
8091
- alignItems: "center",
8092
- "[aria-disabled=true] &": {
8093
- backgroundColor: "surface.disabled"
8094
- }
8097
+ alignItems: "center"
8095
8098
  },
8096
8099
  icon: {
8097
- color: "white",
8098
- "[aria-disabled=true] &": {
8099
- color: "icon.disabled"
8100
- }
8100
+ color: "bg"
8101
8101
  },
8102
8102
  title: {
8103
- color: "darkGrey",
8104
- "[aria-disabled=true] &": {
8105
- color: "text.disabled"
8106
- }
8103
+ color: "text"
8107
8104
  }
8108
8105
  },
8109
8106
  variants: {
@@ -8161,39 +8158,15 @@ var lineIconSlotRecipe = react.defineSlotRecipe({
8161
8158
  "alt-transport": {
8162
8159
  iconContainer: {
8163
8160
  backgroundColor: "linjetag.altTransport"
8164
- },
8165
- icon: {
8166
- color: "darkGrey",
8167
- "[aria-disabled=true] &": {
8168
- color: "white"
8169
- }
8170
8161
  }
8171
8162
  },
8172
8163
  walk: {
8173
8164
  title: {
8174
8165
  color: "text"
8175
- },
8176
- icon: {
8177
- color: "linjetag.walkLight",
8178
- "[aria-disabled=true] &": {
8179
- color: "icon.disabled"
8180
- }
8181
- },
8182
- _disabled: {
8183
- icon: {
8184
- color: "text.disabled"
8185
- },
8186
- title: {
8187
- color: "text.disabled"
8188
- }
8189
8166
  }
8190
8167
  },
8191
8168
  custom: {
8192
- iconContainer: {
8193
- _disabled: {
8194
- backgroundColor: "surface.disabled"
8195
- }
8196
- }
8169
+ iconContainer: {}
8197
8170
  }
8198
8171
  },
8199
8172
  size: {
@@ -8842,7 +8815,6 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
8842
8815
  outlineColor: "core.outline",
8843
8816
  outlineWidth: tokens23__namespace.default.size.stroke.sm,
8844
8817
  outlineStyle: "solid",
8845
- backgroundColor: "core.surface",
8846
8818
  _hover: {
8847
8819
  outlineColor: "core.outline.hover",
8848
8820
  outlineWidth: tokens23__namespace.default.size.stroke.md,
@@ -9018,8 +8990,7 @@ var selectSlotRecipe = react.defineSlotRecipe({
9018
8990
  outlineColor: "outline.focus"
9019
8991
  },
9020
8992
  _active: {
9021
- backgroundColor: "ghost.surface.active",
9022
- color: "green"
8993
+ backgroundColor: "ghost.surface.active"
9023
8994
  },
9024
8995
  _highlighted: {
9025
8996
  _active: {
@@ -9296,9 +9267,8 @@ var switchSlotRecipe = react.defineSlotRecipe({
9296
9267
  height: "var(--switch-height)",
9297
9268
  transitionProperty: "common",
9298
9269
  transitionDuration: "fast",
9299
- outline: "1px solid",
9300
- outlineColor: "core.outline.default",
9301
- backgroundColor: "core.background",
9270
+ outline: "2px solid",
9271
+ outlineColor: "core.outline",
9302
9272
  _hover: {
9303
9273
  outline: "2px solid",
9304
9274
  outlineColor: "core.outline.hover",
@@ -9322,7 +9292,6 @@ var switchSlotRecipe = react.defineSlotRecipe({
9322
9292
  },
9323
9293
  _disabled: {
9324
9294
  pointerEvents: "none",
9325
- backgroundColor: "core.disabled",
9326
9295
  outlineColor: "outline.disabled",
9327
9296
  _checked: {
9328
9297
  backgroundColor: "icon.disabled",
@@ -9425,7 +9394,6 @@ var tableSlotRecipe = react.defineSlotRecipe({
9425
9394
  backgroundColor: "bg"
9426
9395
  },
9427
9396
  columnHeader: {
9428
- color: "brand.text.inverted",
9429
9397
  backgroundColor: "surface.disabled",
9430
9398
  _hover: {
9431
9399
  backgroundColor: "surface.disabled"
@@ -9627,7 +9595,6 @@ var tabsSlotRecipe = react.defineSlotRecipe({
9627
9595
  variant: {
9628
9596
  core: {
9629
9597
  list: {
9630
- backgroundColor: "core.surface",
9631
9598
  color: "core.text",
9632
9599
  border: "sm"
9633
9600
  },
@@ -9637,7 +9604,7 @@ var tabsSlotRecipe = react.defineSlotRecipe({
9637
9604
  borderColor: "transparent",
9638
9605
  _hover: {
9639
9606
  outline: "2px solid",
9640
- outlineColor: "core.surface.hover",
9607
+ outlineColor: "core.outline.hover",
9641
9608
  outlineOffset: "-2px"
9642
9609
  },
9643
9610
  _active: {
@@ -9654,7 +9621,7 @@ var tabsSlotRecipe = react.defineSlotRecipe({
9654
9621
  },
9655
9622
  _disabled: {
9656
9623
  backgroundColor: "surface.disabled",
9657
- color: "brand.text.disabled"
9624
+ color: "surface.disabled"
9658
9625
  }
9659
9626
  }
9660
9627
  },
@@ -9667,7 +9634,7 @@ var tabsSlotRecipe = react.defineSlotRecipe({
9667
9634
  color: "accent.text",
9668
9635
  _disabled: {
9669
9636
  backgroundColor: "surface.disabled",
9670
- color: "accent.text.disabled"
9637
+ color: "icon.disabled"
9671
9638
  },
9672
9639
  _hover: {
9673
9640
  backgroundColor: "accent.surface.hover",
@@ -9760,22 +9727,13 @@ var toastSlotRecipe = react.defineSlotRecipe({
9760
9727
  boxShadow: "xl",
9761
9728
  color: "text",
9762
9729
  "&[data-type=success]": {
9763
- backgroundColor: "alert.success.surface",
9764
- "& svg": {
9765
- color: "primaryGreen"
9766
- }
9730
+ backgroundColor: "alert.success.surface"
9767
9731
  },
9768
9732
  "&[data-type=error]": {
9769
- backgroundColor: "alert.error.surface",
9770
- "& svg": {
9771
- color: "brightRed"
9772
- }
9733
+ backgroundColor: "alert.error.surface"
9773
9734
  },
9774
9735
  "&[data-type=info]": {
9775
- backgroundColor: "alert.info.surface",
9776
- "& svg": {
9777
- color: "darkBlue"
9778
- }
9736
+ backgroundColor: "alert.info.surface"
9779
9737
  }
9780
9738
  },
9781
9739
  title: {