@vygruppen/spor-react 12.10.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 (38) hide show
  1. package/.turbo/turbo-build.log +12 -12
  2. package/.turbo/turbo-postinstall.log +1 -1
  3. package/CHANGELOG.md +8 -0
  4. package/dist/index.cjs +86 -130
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +8 -39
  7. package/dist/index.d.ts +8 -39
  8. package/dist/index.mjs +86 -130
  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/theme/recipes/badge.ts +1 -1
  18. package/src/theme/recipes/close-button.ts +2 -2
  19. package/src/theme/recipes/link.ts +3 -3
  20. package/src/theme/recipes/pressable-card.ts +0 -1
  21. package/src/theme/recipes/skeleton.ts +1 -1
  22. package/src/theme/slot-recipes/alert-service.ts +1 -1
  23. package/src/theme/slot-recipes/checkbox.ts +2 -3
  24. package/src/theme/slot-recipes/choice-chip.ts +7 -7
  25. package/src/theme/slot-recipes/datepicker.ts +1 -2
  26. package/src/theme/slot-recipes/dialog.ts +1 -0
  27. package/src/theme/slot-recipes/drawer.ts +1 -0
  28. package/src/theme/slot-recipes/field.ts +4 -3
  29. package/src/theme/slot-recipes/floating-action-button.ts +1 -1
  30. package/src/theme/slot-recipes/line-icon.ts +3 -36
  31. package/src/theme/slot-recipes/radio-card.ts +0 -1
  32. package/src/theme/slot-recipes/select.ts +0 -1
  33. package/src/theme/slot-recipes/switch.ts +2 -4
  34. package/src/theme/slot-recipes/table.ts +0 -1
  35. package/src/theme/slot-recipes/tabs.ts +3 -4
  36. package/src/theme/slot-recipes/toast.ts +0 -9
  37. package/src/theme/slot-recipes/travel-tag.ts +11 -9
  38. package/src/toast/toast.tsx +1 -1
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.10.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
- ESM dist/index.mjs 294.10 KB
15
- ESM dist/icons/index.mjs 110.00 B
16
- ESM dist/index.mjs.map 630.10 KB
17
- ESM dist/icons/index.mjs.map 157.00 B
18
- ESM ⚡️ Build success in 3192ms
19
- CJS dist/index.cjs 315.51 KB
14
+ CJS dist/index.cjs 314.93 KB
20
15
  CJS dist/icons/index.cjs 381.00 B
16
+ CJS dist/index.cjs.map 629.08 KB
21
17
  CJS dist/icons/index.cjs.map 157.00 B
22
- CJS dist/index.cjs.map 630.10 KB
23
- CJS ⚡️ Build success in 3193ms
24
- DTS ⚡️ Build success in 31693ms
18
+ CJS ⚡️ Build success in 2614ms
19
+ ESM dist/index.mjs 293.53 KB
20
+ ESM dist/icons/index.mjs 110.00 B
21
+ ESM dist/icons/index.mjs.map 157.00 B
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.80 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.80 KB
28
+ DTS dist/index.d.cts 155.93 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.10.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,5 +1,13 @@
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
+
3
11
  ## 12.10.0
4
12
 
5
13
  ### Minor 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,
@@ -5515,12 +5519,12 @@ var closeButtonRecipe = react.defineRecipe({
5515
5519
  transitionDuration: "normal",
5516
5520
  borderRadius: "md",
5517
5521
  backgroundColor: "transparent",
5518
- color: "darkGrey",
5522
+ color: "text",
5519
5523
  fontWeight: "normal",
5520
5524
  _hover: {
5521
5525
  background: "ghost.surface.hover",
5522
5526
  _disabled: {
5523
- color: "dimGrey"
5527
+ color: "icon.disabled"
5524
5528
  },
5525
5529
  _active: {
5526
5530
  background: "ghost.surface.active"
@@ -5678,17 +5682,17 @@ var linkRecipe = react.defineRecipe({
5678
5682
  primary: {
5679
5683
  color: "core.text",
5680
5684
  _hover: {
5681
- color: "text.default",
5685
+ color: "text",
5682
5686
  _active: {
5683
5687
  color: "text.disabled"
5684
5688
  }
5685
5689
  }
5686
5690
  },
5687
5691
  secondary: {
5688
- color: "text.hightlight",
5692
+ color: "text.highlight",
5689
5693
  padding: "2px",
5690
5694
  _hover: {
5691
- color: "text.hightlight",
5695
+ color: "text.highlight",
5692
5696
  _active: {
5693
5697
  color: "text.disabled"
5694
5698
  }
@@ -5772,7 +5776,6 @@ var pressableCardRecipe = react.defineRecipe({
5772
5776
  outlineColor: "core.outline",
5773
5777
  outlineWidth: tokens23__namespace.default.size.stroke.sm,
5774
5778
  outlineStyle: "solid",
5775
- backgroundColor: "core.surface",
5776
5779
  _hover: {
5777
5780
  outlineColor: "core.outline.hover",
5778
5781
  outlineWidth: tokens23__namespace.default.size.stroke.md,
@@ -5930,7 +5933,7 @@ var skeletonRecipe = react.defineRecipe({
5930
5933
  },
5931
5934
  none: {
5932
5935
  animation: "none",
5933
- background: "steel"
5936
+ background: "surface.color.grey"
5934
5937
  }
5935
5938
  }
5936
5939
  }
@@ -6683,7 +6686,7 @@ var alertServiceSlotRecipe = react.defineSlotRecipe({
6683
6686
  backgroundColor: "alert.service.surface.active"
6684
6687
  },
6685
6688
  _icon: {
6686
- color: "darkGrey"
6689
+ color: "text"
6687
6690
  }
6688
6691
  },
6689
6692
  itemTriggerTitle: {
@@ -6789,7 +6792,6 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
6789
6792
  indicator: {
6790
6793
  width: "100%",
6791
6794
  height: "100%",
6792
- borderColor: "white",
6793
6795
  marginTop: -1,
6794
6796
  transform: "scale(1)",
6795
6797
  opacity: 0,
@@ -6820,8 +6822,8 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
6820
6822
  borderColor: "currentColor"
6821
6823
  },
6822
6824
  _invalid: {
6823
- backgroundColor: "brightRed",
6824
- borderColor: "brightRed"
6825
+ backgroundColor: "outline.error",
6826
+ borderColor: "outline.error"
6825
6827
  }
6826
6828
  },
6827
6829
  _disabled: {
@@ -6861,7 +6863,7 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
6861
6863
  paddingInlineStart: "2",
6862
6864
  paddingInlineEnd: "2",
6863
6865
  outline: "1px solid",
6864
- outlineColor: "base.outline",
6866
+ outlineColor: "core.outline",
6865
6867
  _checked: {
6866
6868
  backgroundColor: "brand.surface",
6867
6869
  borderRadius: "sm",
@@ -6886,19 +6888,19 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
6886
6888
  color: "text.disabled",
6887
6889
  outline: "none",
6888
6890
  _hover: {
6889
- backgroundColor: "core.surface.disabled",
6891
+ backgroundColor: "surface.disabled",
6890
6892
  boxShadow: "none",
6891
- color: "core.text.disabled"
6893
+ color: "text.disabled"
6892
6894
  },
6893
6895
  _checked: {
6894
6896
  cursor: "not-allowed",
6895
6897
  boxShadow: "none",
6896
- color: "core.text.disabled",
6897
- backgroundColor: "core.surface.disabled",
6898
+ color: "text.disabled",
6899
+ backgroundColor: "surface.disabled",
6898
6900
  _hover: {
6899
- backgroundColor: "core.surface.disabled",
6901
+ backgroundColor: "surface.disabled",
6900
6902
  boxShadow: "none",
6901
- color: "core.text.disabled"
6903
+ color: "text.disabled"
6902
6904
  }
6903
6905
  }
6904
6906
  }
@@ -7062,7 +7064,7 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
7062
7064
  dateTimeSegment: {
7063
7065
  _focus: {
7064
7066
  backgroundColor: "ghost.surface.active",
7065
- color: "text.default"
7067
+ color: "text"
7066
7068
  }
7067
7069
  },
7068
7070
  box: {
@@ -7170,7 +7172,6 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
7170
7172
  wrapper: {
7171
7173
  outline: "1px solid",
7172
7174
  outlineColor: "core.outline",
7173
- backgroundColor: "core.surface",
7174
7175
  _hover: {
7175
7176
  outline: "2px solid",
7176
7177
  outlineColor: "core.outline.hover",
@@ -7238,6 +7239,7 @@ var dialogSlotRecipe = react.defineSlotRecipe({
7238
7239
  className: "spor-dialog",
7239
7240
  base: {
7240
7241
  backdrop: {
7242
+ // eslint-disable-next-line spor/use-semantic-tokens
7241
7243
  background: "blackAlpha.500",
7242
7244
  position: "fixed",
7243
7245
  left: 0,
@@ -7458,6 +7460,7 @@ var drawerSlotRecipe = react.defineSlotRecipe({
7458
7460
  className: "spor-drawer",
7459
7461
  base: {
7460
7462
  backdrop: {
7463
+ // eslint-disable-next-line spor/use-semantic-tokens
7461
7464
  bg: "blackAlpha.500",
7462
7465
  position: "fixed",
7463
7466
  insetInlineStart: 0,
@@ -7663,6 +7666,7 @@ var fieldSlotRecipe = react.defineSlotRecipe({
7663
7666
  },
7664
7667
  requiredIndicator: {
7665
7668
  marginStart: 1,
7669
+ // eslint-disable-next-line spor/use-semantic-tokens
7666
7670
  color: "brightRed"
7667
7671
  },
7668
7672
  label: {
@@ -7676,8 +7680,8 @@ var fieldSlotRecipe = react.defineSlotRecipe({
7676
7680
  },
7677
7681
  errorText: {
7678
7682
  borderRadius: "xs",
7679
- backgroundColor: "lightRed",
7680
- color: "darkGrey",
7683
+ backgroundColor: "alert.error.surface",
7684
+ color: "text",
7681
7685
  paddingX: 1.5,
7682
7686
  paddingY: 1,
7683
7687
  textStyle: "xs",
@@ -7694,7 +7698,7 @@ var fieldSlotRecipe = react.defineSlotRecipe({
7694
7698
  left: "1em",
7695
7699
  width: "0.5rem",
7696
7700
  height: "0.5rem",
7697
- backgroundColor: "lightRed",
7701
+ backgroundColor: "alert.error.surface",
7698
7702
  transform: "translateY(-50%) rotate(45deg)",
7699
7703
  pointerEvents: "none"
7700
7704
  }
@@ -7774,7 +7778,7 @@ var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
7774
7778
  _hover: {
7775
7779
  backgroundColor: "transparent",
7776
7780
  outline: "2px solid",
7777
- outlineColor: "core.outline.light",
7781
+ outlineColor: "core.outline",
7778
7782
  _active: {
7779
7783
  outline: "1px solid",
7780
7784
  outlineColor: "core.outline",
@@ -7837,6 +7841,9 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
7837
7841
  display: "flex",
7838
7842
  alignItems: "center",
7839
7843
  padding: 0.5,
7844
+ _disabled: {
7845
+ background: "surface.disabled"
7846
+ },
7840
7847
  width: "fit-content",
7841
7848
  transitionDuration: "fast",
7842
7849
  transitionProperty: "common",
@@ -7852,13 +7859,13 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
7852
7859
  }
7853
7860
  },
7854
7861
  textContainer: {
7855
- color: "darkGrey",
7862
+ color: "text",
7856
7863
  paddingRight: 0.5,
7857
7864
  whiteSpace: "nowrap"
7858
7865
  },
7859
7866
  title: {
7860
7867
  fontWeight: "bold",
7861
- color: "brand.text.inverted",
7868
+ color: "text",
7862
7869
  "[aria-disabled=true] &": {
7863
7870
  color: "text.disabled"
7864
7871
  }
@@ -7882,24 +7889,21 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
7882
7889
  critical: {
7883
7890
  container: {
7884
7891
  border: "1px solid",
7885
- borderColor: "error.text"
7892
+ borderColor: "outline.error"
7886
7893
  },
7887
7894
  deviationIcon: {
7888
- color: "brightRed"
7895
+ color: "outline.error"
7889
7896
  }
7890
7897
  },
7891
7898
  major: {
7892
7899
  container: {
7893
7900
  border: "1px solid",
7901
+ // eslint-disable-next-line spor/use-semantic-tokens
7894
7902
  borderColor: "golden"
7895
7903
  }
7896
7904
  },
7897
7905
  minor: {},
7898
- info: {
7899
- deviationIcon: {
7900
- color: "ocean"
7901
- }
7902
- },
7906
+ info: {},
7903
7907
  none: {}
7904
7908
  },
7905
7909
  variant: {
@@ -8090,22 +8094,13 @@ var lineIconSlotRecipe = react.defineSlotRecipe({
8090
8094
  iconContainer: {
8091
8095
  display: "flex",
8092
8096
  justifyContent: "center",
8093
- alignItems: "center",
8094
- "[aria-disabled=true] &": {
8095
- backgroundColor: "surface.disabled"
8096
- }
8097
+ alignItems: "center"
8097
8098
  },
8098
8099
  icon: {
8099
- color: "white",
8100
- "[aria-disabled=true] &": {
8101
- color: "icon.disabled"
8102
- }
8100
+ color: "bg"
8103
8101
  },
8104
8102
  title: {
8105
- color: "darkGrey",
8106
- "[aria-disabled=true] &": {
8107
- color: "text.disabled"
8108
- }
8103
+ color: "text"
8109
8104
  }
8110
8105
  },
8111
8106
  variants: {
@@ -8163,39 +8158,15 @@ var lineIconSlotRecipe = react.defineSlotRecipe({
8163
8158
  "alt-transport": {
8164
8159
  iconContainer: {
8165
8160
  backgroundColor: "linjetag.altTransport"
8166
- },
8167
- icon: {
8168
- color: "darkGrey",
8169
- "[aria-disabled=true] &": {
8170
- color: "white"
8171
- }
8172
8161
  }
8173
8162
  },
8174
8163
  walk: {
8175
8164
  title: {
8176
8165
  color: "text"
8177
- },
8178
- icon: {
8179
- color: "linjetag.walkLight",
8180
- "[aria-disabled=true] &": {
8181
- color: "icon.disabled"
8182
- }
8183
- },
8184
- _disabled: {
8185
- icon: {
8186
- color: "text.disabled"
8187
- },
8188
- title: {
8189
- color: "text.disabled"
8190
- }
8191
8166
  }
8192
8167
  },
8193
8168
  custom: {
8194
- iconContainer: {
8195
- _disabled: {
8196
- backgroundColor: "surface.disabled"
8197
- }
8198
- }
8169
+ iconContainer: {}
8199
8170
  }
8200
8171
  },
8201
8172
  size: {
@@ -8844,7 +8815,6 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
8844
8815
  outlineColor: "core.outline",
8845
8816
  outlineWidth: tokens23__namespace.default.size.stroke.sm,
8846
8817
  outlineStyle: "solid",
8847
- backgroundColor: "core.surface",
8848
8818
  _hover: {
8849
8819
  outlineColor: "core.outline.hover",
8850
8820
  outlineWidth: tokens23__namespace.default.size.stroke.md,
@@ -9020,8 +8990,7 @@ var selectSlotRecipe = react.defineSlotRecipe({
9020
8990
  outlineColor: "outline.focus"
9021
8991
  },
9022
8992
  _active: {
9023
- backgroundColor: "ghost.surface.active",
9024
- color: "green"
8993
+ backgroundColor: "ghost.surface.active"
9025
8994
  },
9026
8995
  _highlighted: {
9027
8996
  _active: {
@@ -9298,9 +9267,8 @@ var switchSlotRecipe = react.defineSlotRecipe({
9298
9267
  height: "var(--switch-height)",
9299
9268
  transitionProperty: "common",
9300
9269
  transitionDuration: "fast",
9301
- outline: "1px solid",
9302
- outlineColor: "core.outline.default",
9303
- backgroundColor: "core.background",
9270
+ outline: "2px solid",
9271
+ outlineColor: "core.outline",
9304
9272
  _hover: {
9305
9273
  outline: "2px solid",
9306
9274
  outlineColor: "core.outline.hover",
@@ -9324,7 +9292,6 @@ var switchSlotRecipe = react.defineSlotRecipe({
9324
9292
  },
9325
9293
  _disabled: {
9326
9294
  pointerEvents: "none",
9327
- backgroundColor: "core.disabled",
9328
9295
  outlineColor: "outline.disabled",
9329
9296
  _checked: {
9330
9297
  backgroundColor: "icon.disabled",
@@ -9427,7 +9394,6 @@ var tableSlotRecipe = react.defineSlotRecipe({
9427
9394
  backgroundColor: "bg"
9428
9395
  },
9429
9396
  columnHeader: {
9430
- color: "brand.text.inverted",
9431
9397
  backgroundColor: "surface.disabled",
9432
9398
  _hover: {
9433
9399
  backgroundColor: "surface.disabled"
@@ -9629,7 +9595,6 @@ var tabsSlotRecipe = react.defineSlotRecipe({
9629
9595
  variant: {
9630
9596
  core: {
9631
9597
  list: {
9632
- backgroundColor: "core.surface",
9633
9598
  color: "core.text",
9634
9599
  border: "sm"
9635
9600
  },
@@ -9639,7 +9604,7 @@ var tabsSlotRecipe = react.defineSlotRecipe({
9639
9604
  borderColor: "transparent",
9640
9605
  _hover: {
9641
9606
  outline: "2px solid",
9642
- outlineColor: "core.surface.hover",
9607
+ outlineColor: "core.outline.hover",
9643
9608
  outlineOffset: "-2px"
9644
9609
  },
9645
9610
  _active: {
@@ -9656,7 +9621,7 @@ var tabsSlotRecipe = react.defineSlotRecipe({
9656
9621
  },
9657
9622
  _disabled: {
9658
9623
  backgroundColor: "surface.disabled",
9659
- color: "brand.text.disabled"
9624
+ color: "surface.disabled"
9660
9625
  }
9661
9626
  }
9662
9627
  },
@@ -9669,7 +9634,7 @@ var tabsSlotRecipe = react.defineSlotRecipe({
9669
9634
  color: "accent.text",
9670
9635
  _disabled: {
9671
9636
  backgroundColor: "surface.disabled",
9672
- color: "accent.text.disabled"
9637
+ color: "icon.disabled"
9673
9638
  },
9674
9639
  _hover: {
9675
9640
  backgroundColor: "accent.surface.hover",
@@ -9762,22 +9727,13 @@ var toastSlotRecipe = react.defineSlotRecipe({
9762
9727
  boxShadow: "xl",
9763
9728
  color: "text",
9764
9729
  "&[data-type=success]": {
9765
- backgroundColor: "alert.success.surface",
9766
- "& svg": {
9767
- color: "primaryGreen"
9768
- }
9730
+ backgroundColor: "alert.success.surface"
9769
9731
  },
9770
9732
  "&[data-type=error]": {
9771
- backgroundColor: "alert.error.surface",
9772
- "& svg": {
9773
- color: "brightRed"
9774
- }
9733
+ backgroundColor: "alert.error.surface"
9775
9734
  },
9776
9735
  "&[data-type=info]": {
9777
- backgroundColor: "alert.info.surface",
9778
- "& svg": {
9779
- color: "darkBlue"
9780
- }
9736
+ backgroundColor: "alert.info.surface"
9781
9737
  }
9782
9738
  },
9783
9739
  title: {