@vygruppen/spor-react 12.10.0 → 12.10.2

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 (44) hide show
  1. package/.turbo/turbo-build.log +10 -10
  2. package/.turbo/turbo-postinstall.log +1 -1
  3. package/CHANGELOG.md +20 -29
  4. package/dist/index.cjs +185 -231
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +10 -41
  7. package/dist/index.d.ts +10 -41
  8. package/dist/index.mjs +185 -231
  9. package/dist/index.mjs.map +1 -1
  10. package/package.json +5 -4
  11. package/src/alert/ServiceAlert.tsx +2 -2
  12. package/src/datepicker/DateField.tsx +6 -2
  13. package/src/datepicker/TimeField.tsx +2 -6
  14. package/src/dialog/Drawer.tsx +2 -2
  15. package/src/input/ListBox.tsx +16 -3
  16. package/src/input/PhoneNumberInput.tsx +31 -40
  17. package/src/input/Switch.tsx +1 -1
  18. package/src/linjetag/LineIcon.tsx +4 -2
  19. package/src/linjetag/TravelTag.tsx +2 -1
  20. package/src/loader/DarkFullScreenLoader.tsx +2 -1
  21. package/src/loader/LightFullScreenLoader.tsx +1 -7
  22. package/src/loader/LightInlineLoader.tsx +1 -7
  23. package/src/theme/recipes/badge.ts +1 -1
  24. package/src/theme/recipes/close-button.ts +2 -2
  25. package/src/theme/recipes/link.ts +3 -3
  26. package/src/theme/recipes/pressable-card.ts +0 -1
  27. package/src/theme/recipes/skeleton.ts +1 -1
  28. package/src/theme/slot-recipes/alert-service.ts +3 -3
  29. package/src/theme/slot-recipes/checkbox.ts +2 -3
  30. package/src/theme/slot-recipes/choice-chip.ts +7 -7
  31. package/src/theme/slot-recipes/datepicker.ts +1 -2
  32. package/src/theme/slot-recipes/dialog.ts +1 -0
  33. package/src/theme/slot-recipes/drawer.ts +1 -0
  34. package/src/theme/slot-recipes/field.ts +4 -3
  35. package/src/theme/slot-recipes/floating-action-button.ts +1 -1
  36. package/src/theme/slot-recipes/line-icon.ts +3 -36
  37. package/src/theme/slot-recipes/radio-card.ts +0 -1
  38. package/src/theme/slot-recipes/select.ts +8 -18
  39. package/src/theme/slot-recipes/switch.ts +3 -5
  40. package/src/theme/slot-recipes/table.ts +0 -1
  41. package/src/theme/slot-recipes/tabs.ts +3 -4
  42. package/src/theme/slot-recipes/toast.ts +0 -9
  43. package/src/theme/slot-recipes/travel-tag.ts +11 -9
  44. package/src/toast/toast.tsx +1 -1
package/dist/index.mjs CHANGED
@@ -228,7 +228,8 @@ var DarkFullScreenLoader = ({
228
228
  Center,
229
229
  {
230
230
  height: "100%",
231
- background: "darkTeal",
231
+ background: "bg",
232
+ className: "dark",
232
233
  role: "status",
233
234
  "aria-live": "polite",
234
235
  ...props,
@@ -268,40 +269,20 @@ var LightFullScreenLoader = ({
268
269
  maxWidth,
269
270
  ...props
270
271
  }) => {
271
- return /* @__PURE__ */ jsxs(
272
- Center,
273
- {
274
- height: "100%",
275
- background: "white",
276
- role: "status",
277
- "aria-live": "polite",
278
- ...props,
279
- children: [
280
- /* @__PURE__ */ jsx(Box, { width, maxWidth, children: /* @__PURE__ */ jsx(ClientOnly, { children: /* @__PURE__ */ jsx(Lottie, { animationData: fullScreenLoaderBlackData }) }) }),
281
- /* @__PURE__ */ jsx(VisuallyHidden, { children: "Loading..." })
282
- ]
283
- }
284
- );
272
+ return /* @__PURE__ */ jsxs(Center, { height: "100%", role: "status", "aria-live": "polite", ...props, children: [
273
+ /* @__PURE__ */ jsx(Box, { width, maxWidth, children: /* @__PURE__ */ jsx(ClientOnly, { children: /* @__PURE__ */ jsx(Lottie, { animationData: fullScreenLoaderBlackData }) }) }),
274
+ /* @__PURE__ */ jsx(VisuallyHidden, { children: "Loading..." })
275
+ ] });
285
276
  };
286
277
  var LightInlineLoader = ({
287
278
  width,
288
279
  maxWidth,
289
280
  ...props
290
281
  }) => {
291
- return /* @__PURE__ */ jsxs(
292
- Center,
293
- {
294
- height: "100%",
295
- background: "white",
296
- role: "status",
297
- "aria-live": "polite",
298
- ...props,
299
- children: [
300
- /* @__PURE__ */ jsx(Box, { width, maxWidth, children: /* @__PURE__ */ jsx(ClientOnly, { children: /* @__PURE__ */ jsx(Lottie, { animationData: inlineLoaderLightData }) }) }),
301
- /* @__PURE__ */ jsx(VisuallyHidden, { children: "Loading..." })
302
- ]
303
- }
304
- );
282
+ return /* @__PURE__ */ jsxs(Center, { height: "100%", role: "status", "aria-live": "polite", ...props, children: [
283
+ /* @__PURE__ */ jsx(Box, { width, maxWidth, children: /* @__PURE__ */ jsx(ClientOnly, { children: /* @__PURE__ */ jsx(Lottie, { animationData: inlineLoaderLightData }) }) }),
284
+ /* @__PURE__ */ jsx(VisuallyHidden, { children: "Loading..." })
285
+ ] });
305
286
  };
306
287
  var LightSpinner = ({
307
288
  children,
@@ -679,7 +660,7 @@ var badgeRecipie = defineRecipe({
679
660
  backgroundColor: "surface.color.orange",
680
661
  color: "alert.error.text.secondary",
681
662
  "& svg": {
682
- color: "alert.error.icon.secondary"
663
+ color: "alert.error-secondary.icon"
683
664
  }
684
665
  },
685
666
  red: {
@@ -1226,11 +1207,11 @@ var ServiceAlert = forwardRef(
1226
1207
  ]
1227
1208
  }
1228
1209
  ) }),
1229
- /* @__PURE__ */ jsx(Accordion$1.ItemContent, { asChild: true, children: /* @__PURE__ */ jsx(Stack, { flexDirection: "row", justifyContent: "center", width: "100%", children: /* @__PURE__ */ jsx(
1210
+ /* @__PURE__ */ jsx(Accordion$1.ItemContent, { asChild: true, children: /* @__PURE__ */ jsx(Stack, { flexDirection: "row", width: "100%", children: /* @__PURE__ */ jsx(
1230
1211
  Accordion$1.ItemBody,
1231
1212
  {
1232
1213
  as: Stack,
1233
- maxWidth: contentWidth,
1214
+ width: contentWidth,
1234
1215
  css: styles.itemBody,
1235
1216
  children
1236
1217
  }
@@ -1825,7 +1806,11 @@ var DateField = forwardRef(
1825
1806
  css: styles.inputLabel,
1826
1807
  position: "absolute",
1827
1808
  paddingTop: "2px",
1828
- children: /* @__PURE__ */ jsx("label", { ...props.labelProps, children: props.label })
1809
+ children: /* @__PURE__ */ jsxs(Label, { padding: "0", fontSize: "2xs", ...props.labelProps, children: [
1810
+ props.label,
1811
+ " ",
1812
+ /* @__PURE__ */ jsx(Field.RequiredIndicator, {})
1813
+ ] })
1829
1814
  }
1830
1815
  ),
1831
1816
  /* @__PURE__ */ jsx(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, i) => /* @__PURE__ */ jsx(
@@ -2168,14 +2153,7 @@ var TimeField = ({ state, ...props }) => {
2168
2153
  children: props.label
2169
2154
  }
2170
2155
  ),
2171
- /* @__PURE__ */ jsx(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment) => /* @__PURE__ */ jsx(
2172
- DateTimeSegment,
2173
- {
2174
- segment,
2175
- state
2176
- },
2177
- JSON.stringify(segment)
2178
- )) }),
2156
+ /* @__PURE__ */ jsx(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsx(DateTimeSegment, { segment, state }, index)) }),
2179
2157
  /* @__PURE__ */ jsx(
2180
2158
  "input",
2181
2159
  {
@@ -2385,7 +2363,7 @@ var CloseDrawerLine = forwardRef((props, ref) => {
2385
2363
  top: 0,
2386
2364
  marginY: 2,
2387
2365
  marginX: "auto",
2388
- backgroundColor: "silver",
2366
+ backgroundColor: "floating.outline.active",
2389
2367
  borderRadius: "xs",
2390
2368
  ...props,
2391
2369
  ref
@@ -2862,6 +2840,7 @@ var ListBox = (props) => {
2862
2840
  css: styles.root,
2863
2841
  "aria-busy": loading,
2864
2842
  maxWidth,
2843
+ padding: "1",
2865
2844
  children: [
2866
2845
  state.collection.size === 0 && props.emptyContent,
2867
2846
  [...state.collection].map(
@@ -2919,7 +2898,18 @@ function Option({ item, state }) {
2919
2898
  { passive: false, once: true }
2920
2899
  );
2921
2900
  }, []);
2922
- return /* @__PURE__ */ jsx(OptionContext.Provider, { value: { labelProps, descriptionProps }, children: /* @__PURE__ */ jsx(ListItem, { ...optionProps, ...dataFields, ref, css: styles.item, children: item.rendered }) });
2901
+ return /* @__PURE__ */ jsx(OptionContext.Provider, { value: { labelProps, descriptionProps }, children: /* @__PURE__ */ jsx(
2902
+ ListItem,
2903
+ {
2904
+ ...optionProps,
2905
+ ...dataFields,
2906
+ ref,
2907
+ css: styles.item,
2908
+ padding: "1",
2909
+ marginX: "0",
2910
+ children: item.rendered
2911
+ }
2912
+ ) });
2923
2913
  }
2924
2914
  var OptionContext = React27__default.createContext({
2925
2915
  labelProps: {},
@@ -2936,25 +2926,34 @@ function ListBoxSection({ section, state }) {
2936
2926
  });
2937
2927
  const isFirstSection = section.key === state.collection.getFirstKey();
2938
2928
  const titleColor = useColorModeValue("darkGrey", "white");
2939
- return /* @__PURE__ */ jsx(List, { children: /* @__PURE__ */ jsxs(ListItem, { ...itemProps, listStyleType: "none", children: [
2940
- section.rendered && /* @__PURE__ */ jsx(
2941
- Box,
2942
- {
2943
- fontSize: "mobile.xs",
2944
- color: titleColor,
2945
- paddingX: 3,
2946
- paddingTop: 1,
2947
- marginTop: isFirstSection ? 0 : 2,
2948
- textTransform: "uppercase",
2949
- fontWeight: "bold",
2950
- ...headingProps,
2951
- children: section.rendered
2952
- }
2953
- ),
2954
- /* @__PURE__ */ jsx(List, { ...groupProps, padding: 0, listStyleType: "none", children: [...((_b4 = (_a5 = state.collection).getChildren) == null ? void 0 : _b4.call(_a5, section.key)) ?? []].map(
2955
- (item) => /* @__PURE__ */ jsx(Option, { item, state }, item.key)
2956
- ) })
2957
- ] }) });
2929
+ return /* @__PURE__ */ jsx(List, { children: /* @__PURE__ */ jsxs(
2930
+ ListItem,
2931
+ {
2932
+ ...itemProps,
2933
+ listStyleType: "none",
2934
+ marginLeft: "0",
2935
+ paddingX: "1",
2936
+ children: [
2937
+ section.rendered && /* @__PURE__ */ jsx(
2938
+ Box,
2939
+ {
2940
+ fontSize: "mobile.xs",
2941
+ color: titleColor,
2942
+ paddingTop: 1,
2943
+ marginTop: isFirstSection ? 0 : 2,
2944
+ marginLeft: "1",
2945
+ textTransform: "uppercase",
2946
+ fontWeight: "bold",
2947
+ ...headingProps,
2948
+ children: section.rendered
2949
+ }
2950
+ ),
2951
+ /* @__PURE__ */ jsx(List, { ...groupProps, padding: 0, listStyleType: "none", children: [...((_b4 = (_a5 = state.collection).getChildren) == null ? void 0 : _b4.call(_a5, section.key)) ?? []].map(
2952
+ (item) => /* @__PURE__ */ jsx(Option, { item, state }, item.key)
2953
+ ) })
2954
+ ]
2955
+ }
2956
+ ) });
2958
2957
  }
2959
2958
  var NativeSelect = React27.forwardRef(function NativeSelect2(props, ref) {
2960
2959
  const {
@@ -3346,54 +3345,43 @@ var PhoneNumberInput = forwardRef((props, ref) => {
3346
3345
  nationalNumber: value.nationalNumber
3347
3346
  });
3348
3347
  };
3349
- return /* @__PURE__ */ jsx(
3350
- AttachedInputs,
3351
- {
3352
- border: invalid ? "1px solid" : "none",
3353
- borderColor: invalid ? "outline.error" : "none",
3354
- outline: invalid ? "1px solid" : "none",
3355
- outlineColor: invalid ? "outline.error" : "none",
3356
- borderRadius: invalid ? "sm" : "none",
3357
- display: "grid",
3358
- gridTemplateColumns: "1fr 10fr",
3359
- children: /* @__PURE__ */ jsxs(Fragment, { children: [
3360
- /* @__PURE__ */ jsx(
3361
- CountryCodeSelect,
3362
- {
3363
- value: [value.countryCode],
3364
- onValueChange: handleCountryCodeChange,
3365
- height: "100%",
3366
- width: "6.25rem",
3367
- variant,
3368
- allowedCountryCodes,
3369
- "data-state": "on"
3370
- }
3371
- ),
3372
- /* @__PURE__ */ jsx(
3373
- Input,
3374
- {
3375
- ref,
3376
- type: "tel",
3377
- ...props,
3378
- value: value.nationalNumber,
3379
- invalid,
3380
- errorText,
3381
- onChange: (e) => {
3382
- const target = e.target;
3383
- const strippedValue = target.value.replaceAll(/[^\d\s-]/g, "");
3384
- onChange({
3385
- countryCode: value.countryCode,
3386
- nationalNumber: strippedValue
3387
- });
3388
- },
3389
- variant,
3390
- "data-state": "on",
3391
- label
3392
- }
3393
- )
3394
- ] })
3395
- }
3396
- );
3348
+ return /* @__PURE__ */ jsxs(AttachedInputs, { display: "grid", gridTemplateColumns: "1fr 10fr", children: [
3349
+ /* @__PURE__ */ jsx(
3350
+ CountryCodeSelect,
3351
+ {
3352
+ value: [value.countryCode],
3353
+ onValueChange: handleCountryCodeChange,
3354
+ height: "100%",
3355
+ width: "6.25rem",
3356
+ variant,
3357
+ allowedCountryCodes,
3358
+ "data-state": "on",
3359
+ invalid
3360
+ }
3361
+ ),
3362
+ /* @__PURE__ */ jsx(
3363
+ Input,
3364
+ {
3365
+ ref,
3366
+ type: "tel",
3367
+ ...props,
3368
+ value: value.nationalNumber,
3369
+ invalid,
3370
+ errorText,
3371
+ onChange: (e) => {
3372
+ const target = e.target;
3373
+ const strippedValue = target.value.replaceAll(/[^\d\s-]/g, "");
3374
+ onChange({
3375
+ countryCode: value.countryCode,
3376
+ nationalNumber: strippedValue
3377
+ });
3378
+ },
3379
+ variant,
3380
+ "data-state": "on",
3381
+ label
3382
+ }
3383
+ )
3384
+ ] });
3397
3385
  });
3398
3386
  PhoneNumberInput.displayName = "PhoneNumberInput";
3399
3387
  var texts16 = createTexts({
@@ -3631,9 +3619,9 @@ var Switch = forwardRef(
3631
3619
  checked: props.checked,
3632
3620
  css: styles.root,
3633
3621
  children: [
3634
- /* @__PURE__ */ jsx(Switch$1.Label, { children: label }),
3635
3622
  /* @__PURE__ */ jsx(Switch$1.HiddenInput, { ref }),
3636
- /* @__PURE__ */ jsx(Switch$1.Control, { css: styles.control, children: /* @__PURE__ */ jsx(Switch$1.Thumb, {}) })
3623
+ /* @__PURE__ */ jsx(Switch$1.Control, { css: styles.control, children: /* @__PURE__ */ jsx(Switch$1.Thumb, {}) }),
3624
+ /* @__PURE__ */ jsx(Switch$1.Label, { children: label })
3637
3625
  ]
3638
3626
  }
3639
3627
  )
@@ -3765,6 +3753,28 @@ var StaticCard = forwardRef(
3765
3753
  }
3766
3754
  );
3767
3755
  StaticCard.displayName = "StaticCard";
3756
+
3757
+ // ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
3758
+ function r(e) {
3759
+ var t, f, n = "";
3760
+ if ("string" == typeof e || "number" == typeof e)
3761
+ n += e;
3762
+ else if ("object" == typeof e)
3763
+ if (Array.isArray(e)) {
3764
+ var o = e.length;
3765
+ for (t = 0; t < o; t++)
3766
+ e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
3767
+ } else
3768
+ for (f in e)
3769
+ e[f] && (n && (n += " "), n += f);
3770
+ return n;
3771
+ }
3772
+ function clsx() {
3773
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++)
3774
+ (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
3775
+ return n;
3776
+ }
3777
+ var clsx_default = clsx;
3768
3778
  var icons = {
3769
3779
  "local-train": {
3770
3780
  sm: TrainFill18Icon,
@@ -3831,9 +3841,9 @@ var LineIcon = forwardRef(
3831
3841
  return variant === "walk" && target === "travelTag" ? 0 : 0.5;
3832
3842
  };
3833
3843
  const Icon3 = getCorrectIcon({
3834
- variant: variant === "custom" && "customIconVariant" in rest ? rest.customIconVariant : (
3835
- // eslint-disable-next-line unicorn/no-nested-ternary
3836
- variant === "custom" ? "local-train" : variant
3844
+ variant: (
3845
+ // eslint-disable-next-line no-nested-ternary
3846
+ variant === "custom" && "customIconVariant" in rest ? rest.customIconVariant : variant === "custom" ? "local-train" : variant
3837
3847
  ),
3838
3848
  size
3839
3849
  });
@@ -3852,6 +3862,7 @@ var LineIcon = forwardRef(
3852
3862
  borderColor: variant === "walk" ? "core.outline" : "transparent",
3853
3863
  "aria-label": label,
3854
3864
  ref,
3865
+ className: clsx_default("light", rest.className),
3855
3866
  children: /* @__PURE__ */ jsx(Icon3, { css: styles.icon })
3856
3867
  }
3857
3868
  );
@@ -3912,8 +3923,8 @@ var TravelTag = forwardRef(
3912
3923
  css: styles.container,
3913
3924
  "aria-disabled": disabled,
3914
3925
  ref,
3926
+ className: clsx_default("light", rest.className),
3915
3927
  ...rest,
3916
- backgroundColor: disabled ? "surface.disabled" : backgroundColor,
3917
3928
  children: [
3918
3929
  /* @__PURE__ */ jsx(
3919
3930
  LineIcon,
@@ -5065,7 +5076,7 @@ var createToast = ({
5065
5076
  text,
5066
5077
  variant,
5067
5078
  id,
5068
- duration = 6e3
5079
+ duration = 6e5
5069
5080
  }) => toaster.create({
5070
5081
  description: text,
5071
5082
  type: variant,
@@ -5495,12 +5506,12 @@ var closeButtonRecipe = defineRecipe({
5495
5506
  transitionDuration: "normal",
5496
5507
  borderRadius: "md",
5497
5508
  backgroundColor: "transparent",
5498
- color: "darkGrey",
5509
+ color: "text",
5499
5510
  fontWeight: "normal",
5500
5511
  _hover: {
5501
5512
  background: "ghost.surface.hover",
5502
5513
  _disabled: {
5503
- color: "dimGrey"
5514
+ color: "icon.disabled"
5504
5515
  },
5505
5516
  _active: {
5506
5517
  background: "ghost.surface.active"
@@ -5658,17 +5669,17 @@ var linkRecipe = defineRecipe({
5658
5669
  primary: {
5659
5670
  color: "core.text",
5660
5671
  _hover: {
5661
- color: "text.default",
5672
+ color: "text",
5662
5673
  _active: {
5663
5674
  color: "text.disabled"
5664
5675
  }
5665
5676
  }
5666
5677
  },
5667
5678
  secondary: {
5668
- color: "text.hightlight",
5679
+ color: "text.highlight",
5669
5680
  padding: "2px",
5670
5681
  _hover: {
5671
- color: "text.hightlight",
5682
+ color: "text.highlight",
5672
5683
  _active: {
5673
5684
  color: "text.disabled"
5674
5685
  }
@@ -5752,7 +5763,6 @@ var pressableCardRecipe = defineRecipe({
5752
5763
  outlineColor: "core.outline",
5753
5764
  outlineWidth: tokens23__default.size.stroke.sm,
5754
5765
  outlineStyle: "solid",
5755
- backgroundColor: "core.surface",
5756
5766
  _hover: {
5757
5767
  outlineColor: "core.outline.hover",
5758
5768
  outlineWidth: tokens23__default.size.stroke.md,
@@ -5910,7 +5920,7 @@ var skeletonRecipe = defineRecipe({
5910
5920
  },
5911
5921
  none: {
5912
5922
  animation: "none",
5913
- background: "steel"
5923
+ background: "surface.color.grey"
5914
5924
  }
5915
5925
  }
5916
5926
  }
@@ -6663,7 +6673,7 @@ var alertServiceSlotRecipe = defineSlotRecipe({
6663
6673
  backgroundColor: "alert.service.surface.active"
6664
6674
  },
6665
6675
  _icon: {
6666
- color: "darkGrey"
6676
+ color: "text"
6667
6677
  }
6668
6678
  },
6669
6679
  itemTriggerTitle: {
@@ -6675,13 +6685,13 @@ var alertServiceSlotRecipe = defineSlotRecipe({
6675
6685
  textWrap: "nowrap"
6676
6686
  },
6677
6687
  itemBody: {
6678
- paddingInline: 2,
6688
+ marginX: "auto",
6689
+ padding: "0 !important",
6679
6690
  paddingBottom: ["0.5", null, null, "1"],
6680
6691
  color: "text.inverted",
6681
6692
  "& > p": {
6682
6693
  gap: 2,
6683
6694
  width: "full",
6684
- justifyContent: "center",
6685
6695
  borderBottom: "1px dashed",
6686
6696
  borderColor: "outline.inverted",
6687
6697
  paddingBottom: "3",
@@ -6769,7 +6779,6 @@ var checkboxSlotRecipe = defineSlotRecipe({
6769
6779
  indicator: {
6770
6780
  width: "100%",
6771
6781
  height: "100%",
6772
- borderColor: "white",
6773
6782
  marginTop: -1,
6774
6783
  transform: "scale(1)",
6775
6784
  opacity: 0,
@@ -6800,8 +6809,8 @@ var checkboxSlotRecipe = defineSlotRecipe({
6800
6809
  borderColor: "currentColor"
6801
6810
  },
6802
6811
  _invalid: {
6803
- backgroundColor: "brightRed",
6804
- borderColor: "brightRed"
6812
+ backgroundColor: "outline.error",
6813
+ borderColor: "outline.error"
6805
6814
  }
6806
6815
  },
6807
6816
  _disabled: {
@@ -6841,7 +6850,7 @@ var choiceChipSlotRecipe = defineSlotRecipe({
6841
6850
  paddingInlineStart: "2",
6842
6851
  paddingInlineEnd: "2",
6843
6852
  outline: "1px solid",
6844
- outlineColor: "base.outline",
6853
+ outlineColor: "core.outline",
6845
6854
  _checked: {
6846
6855
  backgroundColor: "brand.surface",
6847
6856
  borderRadius: "sm",
@@ -6866,19 +6875,19 @@ var choiceChipSlotRecipe = defineSlotRecipe({
6866
6875
  color: "text.disabled",
6867
6876
  outline: "none",
6868
6877
  _hover: {
6869
- backgroundColor: "core.surface.disabled",
6878
+ backgroundColor: "surface.disabled",
6870
6879
  boxShadow: "none",
6871
- color: "core.text.disabled"
6880
+ color: "text.disabled"
6872
6881
  },
6873
6882
  _checked: {
6874
6883
  cursor: "not-allowed",
6875
6884
  boxShadow: "none",
6876
- color: "core.text.disabled",
6877
- backgroundColor: "core.surface.disabled",
6885
+ color: "text.disabled",
6886
+ backgroundColor: "surface.disabled",
6878
6887
  _hover: {
6879
- backgroundColor: "core.surface.disabled",
6888
+ backgroundColor: "surface.disabled",
6880
6889
  boxShadow: "none",
6881
- color: "core.text.disabled"
6890
+ color: "text.disabled"
6882
6891
  }
6883
6892
  }
6884
6893
  }
@@ -7042,7 +7051,7 @@ var datePickerSlotRecipe = defineSlotRecipe({
7042
7051
  dateTimeSegment: {
7043
7052
  _focus: {
7044
7053
  backgroundColor: "ghost.surface.active",
7045
- color: "text.default"
7054
+ color: "text"
7046
7055
  }
7047
7056
  },
7048
7057
  box: {
@@ -7150,7 +7159,6 @@ var datePickerSlotRecipe = defineSlotRecipe({
7150
7159
  wrapper: {
7151
7160
  outline: "1px solid",
7152
7161
  outlineColor: "core.outline",
7153
- backgroundColor: "core.surface",
7154
7162
  _hover: {
7155
7163
  outline: "2px solid",
7156
7164
  outlineColor: "core.outline.hover",
@@ -7218,6 +7226,7 @@ var dialogSlotRecipe = defineSlotRecipe({
7218
7226
  className: "spor-dialog",
7219
7227
  base: {
7220
7228
  backdrop: {
7229
+ // eslint-disable-next-line spor/use-semantic-tokens
7221
7230
  background: "blackAlpha.500",
7222
7231
  position: "fixed",
7223
7232
  left: 0,
@@ -7438,6 +7447,7 @@ var drawerSlotRecipe = defineSlotRecipe({
7438
7447
  className: "spor-drawer",
7439
7448
  base: {
7440
7449
  backdrop: {
7450
+ // eslint-disable-next-line spor/use-semantic-tokens
7441
7451
  bg: "blackAlpha.500",
7442
7452
  position: "fixed",
7443
7453
  insetInlineStart: 0,
@@ -7643,6 +7653,7 @@ var fieldSlotRecipe = defineSlotRecipe({
7643
7653
  },
7644
7654
  requiredIndicator: {
7645
7655
  marginStart: 1,
7656
+ // eslint-disable-next-line spor/use-semantic-tokens
7646
7657
  color: "brightRed"
7647
7658
  },
7648
7659
  label: {
@@ -7656,8 +7667,8 @@ var fieldSlotRecipe = defineSlotRecipe({
7656
7667
  },
7657
7668
  errorText: {
7658
7669
  borderRadius: "xs",
7659
- backgroundColor: "lightRed",
7660
- color: "darkGrey",
7670
+ backgroundColor: "alert.error.surface",
7671
+ color: "text",
7661
7672
  paddingX: 1.5,
7662
7673
  paddingY: 1,
7663
7674
  textStyle: "xs",
@@ -7674,7 +7685,7 @@ var fieldSlotRecipe = defineSlotRecipe({
7674
7685
  left: "1em",
7675
7686
  width: "0.5rem",
7676
7687
  height: "0.5rem",
7677
- backgroundColor: "lightRed",
7688
+ backgroundColor: "alert.error.surface",
7678
7689
  transform: "translateY(-50%) rotate(45deg)",
7679
7690
  pointerEvents: "none"
7680
7691
  }
@@ -7754,7 +7765,7 @@ var floatingActionButtonSlotRecipe = defineSlotRecipe({
7754
7765
  _hover: {
7755
7766
  backgroundColor: "transparent",
7756
7767
  outline: "2px solid",
7757
- outlineColor: "core.outline.light",
7768
+ outlineColor: "core.outline",
7758
7769
  _active: {
7759
7770
  outline: "1px solid",
7760
7771
  outlineColor: "core.outline",
@@ -7817,6 +7828,9 @@ var travelTagSlotRecipe = defineSlotRecipe({
7817
7828
  display: "flex",
7818
7829
  alignItems: "center",
7819
7830
  padding: 0.5,
7831
+ _disabled: {
7832
+ background: "surface.disabled"
7833
+ },
7820
7834
  width: "fit-content",
7821
7835
  transitionDuration: "fast",
7822
7836
  transitionProperty: "common",
@@ -7832,13 +7846,13 @@ var travelTagSlotRecipe = defineSlotRecipe({
7832
7846
  }
7833
7847
  },
7834
7848
  textContainer: {
7835
- color: "darkGrey",
7849
+ color: "text",
7836
7850
  paddingRight: 0.5,
7837
7851
  whiteSpace: "nowrap"
7838
7852
  },
7839
7853
  title: {
7840
7854
  fontWeight: "bold",
7841
- color: "brand.text.inverted",
7855
+ color: "text",
7842
7856
  "[aria-disabled=true] &": {
7843
7857
  color: "text.disabled"
7844
7858
  }
@@ -7862,24 +7876,21 @@ var travelTagSlotRecipe = defineSlotRecipe({
7862
7876
  critical: {
7863
7877
  container: {
7864
7878
  border: "1px solid",
7865
- borderColor: "error.text"
7879
+ borderColor: "outline.error"
7866
7880
  },
7867
7881
  deviationIcon: {
7868
- color: "brightRed"
7882
+ color: "outline.error"
7869
7883
  }
7870
7884
  },
7871
7885
  major: {
7872
7886
  container: {
7873
7887
  border: "1px solid",
7888
+ // eslint-disable-next-line spor/use-semantic-tokens
7874
7889
  borderColor: "golden"
7875
7890
  }
7876
7891
  },
7877
7892
  minor: {},
7878
- info: {
7879
- deviationIcon: {
7880
- color: "ocean"
7881
- }
7882
- },
7893
+ info: {},
7883
7894
  none: {}
7884
7895
  },
7885
7896
  variant: {
@@ -8070,22 +8081,13 @@ var lineIconSlotRecipe = defineSlotRecipe({
8070
8081
  iconContainer: {
8071
8082
  display: "flex",
8072
8083
  justifyContent: "center",
8073
- alignItems: "center",
8074
- "[aria-disabled=true] &": {
8075
- backgroundColor: "surface.disabled"
8076
- }
8084
+ alignItems: "center"
8077
8085
  },
8078
8086
  icon: {
8079
- color: "white",
8080
- "[aria-disabled=true] &": {
8081
- color: "icon.disabled"
8082
- }
8087
+ color: "bg"
8083
8088
  },
8084
8089
  title: {
8085
- color: "darkGrey",
8086
- "[aria-disabled=true] &": {
8087
- color: "text.disabled"
8088
- }
8090
+ color: "text"
8089
8091
  }
8090
8092
  },
8091
8093
  variants: {
@@ -8143,39 +8145,15 @@ var lineIconSlotRecipe = defineSlotRecipe({
8143
8145
  "alt-transport": {
8144
8146
  iconContainer: {
8145
8147
  backgroundColor: "linjetag.altTransport"
8146
- },
8147
- icon: {
8148
- color: "darkGrey",
8149
- "[aria-disabled=true] &": {
8150
- color: "white"
8151
- }
8152
8148
  }
8153
8149
  },
8154
8150
  walk: {
8155
8151
  title: {
8156
8152
  color: "text"
8157
- },
8158
- icon: {
8159
- color: "linjetag.walkLight",
8160
- "[aria-disabled=true] &": {
8161
- color: "icon.disabled"
8162
- }
8163
- },
8164
- _disabled: {
8165
- icon: {
8166
- color: "text.disabled"
8167
- },
8168
- title: {
8169
- color: "text.disabled"
8170
- }
8171
8153
  }
8172
8154
  },
8173
8155
  custom: {
8174
- iconContainer: {
8175
- _disabled: {
8176
- backgroundColor: "surface.disabled"
8177
- }
8178
- }
8156
+ iconContainer: {}
8179
8157
  }
8180
8158
  },
8181
8159
  size: {
@@ -8824,7 +8802,6 @@ var radioCardSlotRecipe = defineSlotRecipe({
8824
8802
  outlineColor: "core.outline",
8825
8803
  outlineWidth: tokens23__default.size.stroke.sm,
8826
8804
  outlineStyle: "solid",
8827
- backgroundColor: "core.surface",
8828
8805
  _hover: {
8829
8806
  outlineColor: "core.outline.hover",
8830
8807
  outlineWidth: tokens23__default.size.stroke.md,
@@ -9000,8 +8977,7 @@ var selectSlotRecipe = defineSlotRecipe({
9000
8977
  outlineColor: "outline.focus"
9001
8978
  },
9002
8979
  _active: {
9003
- backgroundColor: "ghost.surface.active",
9004
- color: "green"
8980
+ backgroundColor: "ghost.surface.active"
9005
8981
  },
9006
8982
  _highlighted: {
9007
8983
  _active: {
@@ -9077,29 +9053,20 @@ var selectSlotRecipe = defineSlotRecipe({
9077
9053
  },
9078
9054
  floating: {
9079
9055
  control: {
9080
- backgroundColor: {
9081
- _light: "bg",
9082
- _dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
9083
- },
9084
9056
  outline: "1px solid",
9085
9057
  outlineColor: "floating.outline",
9086
9058
  _hover: {
9087
- outline: "1px solid",
9088
- outlineColor: "floating.outline.hover",
9089
- backgroundColor: {
9090
- _light: "floating.surface.hover",
9091
- _dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
9092
- }
9059
+ outline: "2px solid",
9060
+ outlineColor: "floating.outline"
9093
9061
  },
9094
9062
  _active: {
9095
- outline: "1px solid",
9096
- outlineColor: "floating.outline.active",
9097
- backgroundColor: "floating.surface.active"
9063
+ backgroundColor: "brand.surface.active"
9064
+ },
9065
+ _disabled: {
9066
+ pointerEvents: "none",
9067
+ color: "text.disabled",
9068
+ backgroundColor: "surface.disabled"
9098
9069
  }
9099
- },
9100
- selectContent: {
9101
- outline: "1px solid",
9102
- outlineColor: "floating.outline"
9103
9070
  }
9104
9071
  }
9105
9072
  },
@@ -9221,7 +9188,7 @@ var switchSlotRecipe = defineSlotRecipe({
9221
9188
  base: {
9222
9189
  root: {
9223
9190
  display: "inline-flex",
9224
- gap: "2.5",
9191
+ gap: "2",
9225
9192
  alignItems: "center",
9226
9193
  position: "relative",
9227
9194
  verticalAlign: "middle",
@@ -9278,9 +9245,8 @@ var switchSlotRecipe = defineSlotRecipe({
9278
9245
  height: "var(--switch-height)",
9279
9246
  transitionProperty: "common",
9280
9247
  transitionDuration: "fast",
9281
- outline: "1px solid",
9282
- outlineColor: "core.outline.default",
9283
- backgroundColor: "core.background",
9248
+ outline: "2px solid",
9249
+ outlineColor: "core.outline",
9284
9250
  _hover: {
9285
9251
  outline: "2px solid",
9286
9252
  outlineColor: "core.outline.hover",
@@ -9304,7 +9270,6 @@ var switchSlotRecipe = defineSlotRecipe({
9304
9270
  },
9305
9271
  _disabled: {
9306
9272
  pointerEvents: "none",
9307
- backgroundColor: "core.disabled",
9308
9273
  outlineColor: "outline.disabled",
9309
9274
  _checked: {
9310
9275
  backgroundColor: "icon.disabled",
@@ -9407,7 +9372,6 @@ var tableSlotRecipe = defineSlotRecipe({
9407
9372
  backgroundColor: "bg"
9408
9373
  },
9409
9374
  columnHeader: {
9410
- color: "brand.text.inverted",
9411
9375
  backgroundColor: "surface.disabled",
9412
9376
  _hover: {
9413
9377
  backgroundColor: "surface.disabled"
@@ -9609,7 +9573,6 @@ var tabsSlotRecipe = defineSlotRecipe({
9609
9573
  variant: {
9610
9574
  core: {
9611
9575
  list: {
9612
- backgroundColor: "core.surface",
9613
9576
  color: "core.text",
9614
9577
  border: "sm"
9615
9578
  },
@@ -9619,7 +9582,7 @@ var tabsSlotRecipe = defineSlotRecipe({
9619
9582
  borderColor: "transparent",
9620
9583
  _hover: {
9621
9584
  outline: "2px solid",
9622
- outlineColor: "core.surface.hover",
9585
+ outlineColor: "core.outline.hover",
9623
9586
  outlineOffset: "-2px"
9624
9587
  },
9625
9588
  _active: {
@@ -9636,7 +9599,7 @@ var tabsSlotRecipe = defineSlotRecipe({
9636
9599
  },
9637
9600
  _disabled: {
9638
9601
  backgroundColor: "surface.disabled",
9639
- color: "brand.text.disabled"
9602
+ color: "surface.disabled"
9640
9603
  }
9641
9604
  }
9642
9605
  },
@@ -9649,7 +9612,7 @@ var tabsSlotRecipe = defineSlotRecipe({
9649
9612
  color: "accent.text",
9650
9613
  _disabled: {
9651
9614
  backgroundColor: "surface.disabled",
9652
- color: "accent.text.disabled"
9615
+ color: "icon.disabled"
9653
9616
  },
9654
9617
  _hover: {
9655
9618
  backgroundColor: "accent.surface.hover",
@@ -9742,22 +9705,13 @@ var toastSlotRecipe = defineSlotRecipe({
9742
9705
  boxShadow: "xl",
9743
9706
  color: "text",
9744
9707
  "&[data-type=success]": {
9745
- backgroundColor: "alert.success.surface",
9746
- "& svg": {
9747
- color: "primaryGreen"
9748
- }
9708
+ backgroundColor: "alert.success.surface"
9749
9709
  },
9750
9710
  "&[data-type=error]": {
9751
- backgroundColor: "alert.error.surface",
9752
- "& svg": {
9753
- color: "brightRed"
9754
- }
9711
+ backgroundColor: "alert.error.surface"
9755
9712
  },
9756
9713
  "&[data-type=info]": {
9757
- backgroundColor: "alert.info.surface",
9758
- "& svg": {
9759
- color: "darkBlue"
9760
- }
9714
+ backgroundColor: "alert.info.surface"
9761
9715
  }
9762
9716
  },
9763
9717
  title: {