@vygruppen/spor-react 12.4.3 → 12.4.5

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.
package/dist/index.js CHANGED
@@ -15,15 +15,9 @@ var anatomy = require('@ark-ui/react/anatomy');
15
15
  var popover = require('@ark-ui/react/popover');
16
16
  var date = require('@internationalized/date');
17
17
  var awesomePhonenumber = require('awesome-phonenumber');
18
- var tokens20 = require('@vygruppen/spor-design-tokens');
19
- var react$1 = require('@ark-ui/react');
20
- var react$2 = require('@emotion/react');
21
- var cargonetJson = require('@vygruppen/spor-design-tokens/tokens/color/cargonet.json');
22
- var vyDigitalJson = require('@vygruppen/spor-design-tokens/tokens/color/vy-digital.json');
23
- var VyUtviklingJson = require('@vygruppen/spor-design-tokens/tokens/color/vy-utvikling.json');
24
- var aliasJson = require('@vygruppen/spor-design-tokens/tokens/color/alias.json');
25
- var linjetagJson = require('@vygruppen/spor-design-tokens/tokens/color/linjetag.json');
26
- var paletteJson = require('@vygruppen/spor-design-tokens/tokens/color/palette.json');
18
+ var tokens23 = require('@vygruppen/spor-design-tokens');
19
+ var react$1 = require('@emotion/react');
20
+ var tokens4 = require('@vygruppen/spor-design-tokens/raw-tokens');
27
21
 
28
22
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
29
23
 
@@ -47,13 +41,8 @@ function _interopNamespace(e) {
47
41
 
48
42
  var React28__namespace = /*#__PURE__*/_interopNamespace(React28);
49
43
  var ReactLottie__default = /*#__PURE__*/_interopDefault(ReactLottie);
50
- var tokens20__namespace = /*#__PURE__*/_interopNamespace(tokens20);
51
- var cargonetJson__default = /*#__PURE__*/_interopDefault(cargonetJson);
52
- var vyDigitalJson__default = /*#__PURE__*/_interopDefault(vyDigitalJson);
53
- var VyUtviklingJson__default = /*#__PURE__*/_interopDefault(VyUtviklingJson);
54
- var aliasJson__default = /*#__PURE__*/_interopDefault(aliasJson);
55
- var linjetagJson__default = /*#__PURE__*/_interopDefault(linjetagJson);
56
- var paletteJson__default = /*#__PURE__*/_interopDefault(paletteJson);
44
+ var tokens23__namespace = /*#__PURE__*/_interopNamespace(tokens23);
45
+ var tokens4__default = /*#__PURE__*/_interopDefault(tokens4);
57
46
 
58
47
  // src/accordion/Accordion.tsx
59
48
 
@@ -61,8 +50,9 @@ var paletteJson__default = /*#__PURE__*/_interopDefault(paletteJson);
61
50
  var warnAboutMismatchingIcon = ({
62
51
  icon
63
52
  }) => {
53
+ var _a5, _b4;
64
54
  if (process.env.NODE_ENV !== "production") {
65
- const displayName = icon?.type?.render?.displayName;
55
+ const displayName = (_b4 = (_a5 = icon == null ? void 0 : icon.type) == null ? void 0 : _a5.render) == null ? void 0 : _b4.displayName;
66
56
  if (!displayName) {
67
57
  return;
68
58
  }
@@ -828,6 +818,7 @@ var badgeRecipie = react.defineRecipe({
828
818
  });
829
819
 
830
820
  // src/theme/recipes/code.ts
821
+ var _a;
831
822
  var codeRecipie = react.defineRecipe({
832
823
  base: {
833
824
  fontFamily: "monospace",
@@ -836,7 +827,7 @@ var codeRecipie = react.defineRecipe({
836
827
  paddingX: 1
837
828
  },
838
829
  variants: {
839
- colorPalette: badgeRecipie.variants?.colorPalette ?? {}
830
+ colorPalette: ((_a = badgeRecipie.variants) == null ? void 0 : _a.colorPalette) ?? {}
840
831
  }
841
832
  });
842
833
  var StyledCode = react.chakra(react.Code, codeRecipie);
@@ -1153,7 +1144,7 @@ var Alert = React28.forwardRef((props, ref) => {
1153
1144
  const { open, onClose } = react.useDisclosure({ defaultOpen: true });
1154
1145
  const handleAlertClose = () => {
1155
1146
  onClose();
1156
- onAlertClose?.();
1147
+ onAlertClose == null ? void 0 : onAlertClose();
1157
1148
  };
1158
1149
  const recipe = react.useSlotRecipe({ key: "alert" });
1159
1150
  const styles = recipe({ variant: props.variant });
@@ -1989,7 +1980,8 @@ function CalendarCell({
1989
1980
  stateProps["data-unavailable"] = true;
1990
1981
  }
1991
1982
  React28.useEffect(() => {
1992
- ref.current?.addEventListener(
1983
+ var _a5;
1984
+ (_a5 = ref.current) == null ? void 0 : _a5.addEventListener(
1993
1985
  "touchend",
1994
1986
  (event) => {
1995
1987
  event.preventDefault();
@@ -2035,7 +2027,7 @@ var getCurrentTime = () => {
2035
2027
  return date.parseTime(now.toTimeString().split(" ")[0]);
2036
2028
  };
2037
2029
  var getTimestampFromTime = (time) => {
2038
- return `${time?.hour ?? 0}:${time?.minute ?? 0}`;
2030
+ return `${(time == null ? void 0 : time.hour) ?? 0}:${(time == null ? void 0 : time.minute) ?? 0}`;
2039
2031
  };
2040
2032
  var weekDays = {
2041
2033
  nb: ["Ma", "Ti", "On", "To", "Fr", "L\xF8", "S\xF8"],
@@ -2339,6 +2331,7 @@ function createCalendar2(identifier) {
2339
2331
  }
2340
2332
  var DateField = React28.forwardRef(
2341
2333
  ({ labelId, ...props }, externalRef) => {
2334
+ var _a5;
2342
2335
  const locale = useCurrentLocale();
2343
2336
  const recipe = react.useSlotRecipe({
2344
2337
  key: "datePicker",
@@ -2384,7 +2377,7 @@ var DateField = React28.forwardRef(
2384
2377
  "input",
2385
2378
  {
2386
2379
  type: "hidden",
2387
- value: state.value?.toString() ?? "",
2380
+ value: ((_a5 = state.value) == null ? void 0 : _a5.toString()) ?? "",
2388
2381
  name: props.name
2389
2382
  }
2390
2383
  )
@@ -2470,8 +2463,8 @@ var DatePicker = React28.forwardRef(
2470
2463
  ...props,
2471
2464
  shouldCloseOnSelect: true,
2472
2465
  errorMessage: errorText,
2473
- isRequired: props.isRequired ?? chakraFieldProps?.required,
2474
- validationState: chakraFieldProps?.invalid ? "invalid" : "valid"
2466
+ isRequired: props.isRequired ?? (chakraFieldProps == null ? void 0 : chakraFieldProps.required),
2467
+ validationState: (chakraFieldProps == null ? void 0 : chakraFieldProps.invalid) ? "invalid" : "valid"
2475
2468
  });
2476
2469
  const internalRef = React28.useRef(null);
2477
2470
  const ref = externalRef ?? internalRef;
@@ -2607,8 +2600,8 @@ function DateRangePicker({
2607
2600
  shouldCloseOnSelect: true,
2608
2601
  isInvalid: invalid,
2609
2602
  errorMessage: errorText,
2610
- isRequired: props.required ?? fieldContextPRops?.required,
2611
- validationState: fieldContextPRops?.invalid ? "invalid" : "valid"
2603
+ isRequired: props.required ?? (fieldContextPRops == null ? void 0 : fieldContextPRops.required),
2604
+ validationState: (fieldContextPRops == null ? void 0 : fieldContextPRops.invalid) ? "invalid" : "valid"
2612
2605
  });
2613
2606
  const ref = React28.useRef(null);
2614
2607
  const uniqueId = reactAria.useId();
@@ -2784,7 +2777,7 @@ var TimePicker = ({
2784
2777
  )}`;
2785
2778
  const inputLabel = label ?? t(texts11.time);
2786
2779
  const ariaLabel = `${inputLabel} \u2013 ${t(
2787
- texts11.selectedTimeIs(`${dateTime?.hour ?? 0} ${dateTime?.minute ?? 0}`)
2780
+ texts11.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
2788
2781
  )}`;
2789
2782
  return /* @__PURE__ */ jsxRuntime.jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(
2790
2783
  StyledField,
@@ -3132,6 +3125,7 @@ var Popover = React28.forwardRef(
3132
3125
  hasBackdrop = true,
3133
3126
  containerPadding = 12
3134
3127
  }, ref) => {
3128
+ var _a5;
3135
3129
  const internalRef = React28.useRef(null);
3136
3130
  const popoverRef = ref ?? internalRef;
3137
3131
  const { popoverProps, underlayProps } = reactAria.usePopover(
@@ -3152,7 +3146,7 @@ var Popover = React28.forwardRef(
3152
3146
  {
3153
3147
  ...popoverProps,
3154
3148
  ref: popoverRef,
3155
- minWidth: triggerRef.current?.clientWidth ?? "auto",
3149
+ minWidth: ((_a5 = triggerRef.current) == null ? void 0 : _a5.clientWidth) ?? "auto",
3156
3150
  children: [
3157
3151
  /* @__PURE__ */ jsxRuntime.jsx(reactAria.DismissButton, { onDismiss: state.close }),
3158
3152
  children,
@@ -3534,7 +3528,8 @@ function Option({ item, state }) {
3534
3528
  dataFields["data-focus-visible"] = true;
3535
3529
  }
3536
3530
  React28.useEffect(() => {
3537
- ref?.current?.addEventListener(
3531
+ var _a5;
3532
+ (_a5 = ref == null ? void 0 : ref.current) == null ? void 0 : _a5.addEventListener(
3538
3533
  "touchend",
3539
3534
  (event) => {
3540
3535
  event.preventDefault();
@@ -3552,6 +3547,7 @@ var useOptionContext = () => {
3552
3547
  return React28.useContext(OptionContext);
3553
3548
  };
3554
3549
  function ListBoxSection({ section, state }) {
3550
+ var _a5, _b4;
3555
3551
  const { itemProps, headingProps, groupProps } = reactAria.useListBoxSection({
3556
3552
  heading: section.rendered,
3557
3553
  "aria-label": section["aria-label"]
@@ -3573,146 +3569,12 @@ function ListBoxSection({ section, state }) {
3573
3569
  children: section.rendered
3574
3570
  }
3575
3571
  ),
3576
- /* @__PURE__ */ jsxRuntime.jsx(List, { ...groupProps, padding: 0, listStyleType: "none", children: [...state.collection.getChildren?.(section.key) ?? []].map(
3572
+ /* @__PURE__ */ jsxRuntime.jsx(List, { ...groupProps, padding: 0, listStyleType: "none", children: [...((_b4 = (_a5 = state.collection).getChildren) == null ? void 0 : _b4.call(_a5, section.key)) ?? []].map(
3577
3573
  (item) => /* @__PURE__ */ jsxRuntime.jsx(Option, { item, state }, item.key)
3578
3574
  ) })
3579
3575
  ] }) });
3580
3576
  }
3581
-
3582
- // src/theme/utils/brand-utils.ts
3583
- function brandBackground(state) {
3584
- switch (state) {
3585
- case "active": {
3586
- return {
3587
- backgroundColor: "brand.surface.active"
3588
- };
3589
- }
3590
- case "hover": {
3591
- return {
3592
- backgroundColor: "brand.surface.hover"
3593
- };
3594
- }
3595
- default: {
3596
- return {
3597
- backgroundColor: "brand.surface"
3598
- };
3599
- }
3600
- }
3601
- }
3602
- function brandText() {
3603
- return {
3604
- color: "brand.text"
3605
- };
3606
- }
3607
-
3608
- // src/theme/utils/surface-utils.ts
3609
- var surface = (surface2) => {
3610
- switch (surface2) {
3611
- case "default": {
3612
- return {
3613
- backgroundColor: "surface"
3614
- };
3615
- }
3616
- case "secondary": {
3617
- return {
3618
- backgroundColor: "surface.secondary"
3619
- };
3620
- }
3621
- case "tertiary": {
3622
- return {
3623
- backgroundColor: "surface.tertiary"
3624
- };
3625
- }
3626
- case "disabled": {
3627
- return {
3628
- backgroundColor: "surface.disabled"
3629
- };
3630
- }
3631
- }
3632
- };
3633
-
3634
- // src/theme/utils/core-utils.ts
3635
- function coreBackground(state) {
3636
- switch (state) {
3637
- case "active": {
3638
- return brandBackground("active");
3639
- }
3640
- case "selected": {
3641
- return brandBackground("default");
3642
- }
3643
- case "disabled": {
3644
- return surface("disabled");
3645
- }
3646
- default: {
3647
- return { backgroundColor: "transparent" };
3648
- }
3649
- }
3650
- }
3651
- function coreBorder(state) {
3652
- switch (state) {
3653
- case "hover": {
3654
- return {
3655
- outline: "2px solid",
3656
- outlineColor: "core.outline"
3657
- };
3658
- }
3659
- case "disabled": {
3660
- return {
3661
- outline: "1px solid",
3662
- outlineColor: "outline.disabled"
3663
- };
3664
- }
3665
- case "active": {
3666
- return {
3667
- outline: "1px solid",
3668
- outlineColor: "core.outline"
3669
- };
3670
- }
3671
- case "invalid": {
3672
- return {
3673
- outline: "2px solid",
3674
- outlineColor: "outline.error"
3675
- };
3676
- }
3677
- default: {
3678
- return {
3679
- outline: "1px solid",
3680
- outlineColor: "core.outline"
3681
- };
3682
- }
3683
- }
3684
- }
3685
- function coreText(state) {
3686
- switch (state) {
3687
- case "selected": {
3688
- return {
3689
- color: "brand.text"
3690
- };
3691
- }
3692
- case "active": {
3693
- return {
3694
- color: "brand.text"
3695
- };
3696
- }
3697
- case "highlight": {
3698
- return {
3699
- color: "text.highlight"
3700
- };
3701
- }
3702
- case "disabled": {
3703
- return {
3704
- color: "text.disabled"
3705
- };
3706
- }
3707
- default: {
3708
- return {
3709
- color: "core.text"
3710
- };
3711
- }
3712
- }
3713
- }
3714
-
3715
- // src/theme/slot-recipes/native-select.ts
3577
+ var _a2, _b;
3716
3578
  var nativeSelectSlotRecipe = react.defineSlotRecipe({
3717
3579
  slots: NativeSelectAnatomy.keys(),
3718
3580
  className: "spor-nativeSelect",
@@ -3743,7 +3605,7 @@ var nativeSelectSlotRecipe = react.defineSlotRecipe({
3743
3605
  color: "currentColor",
3744
3606
  fontSize: "sm",
3745
3607
  _disabled: {
3746
- ...coreText("disabled")
3608
+ color: "text.disabled"
3747
3609
  }
3748
3610
  }
3749
3611
  },
@@ -3751,12 +3613,12 @@ var nativeSelectSlotRecipe = react.defineSlotRecipe({
3751
3613
  variant: {
3752
3614
  core: {
3753
3615
  field: {
3754
- ...inputRecipe.variants?.variant.core
3616
+ ...(_a2 = inputRecipe.variants) == null ? void 0 : _a2.variant.core
3755
3617
  }
3756
3618
  },
3757
3619
  floating: {
3758
3620
  field: {
3759
- ...inputRecipe.variants?.variant.floating
3621
+ ...(_b = inputRecipe.variants) == null ? void 0 : _b.variant.floating
3760
3622
  }
3761
3623
  }
3762
3624
  }
@@ -3899,7 +3761,8 @@ var NumericStepper = React28__namespace.default.forwardRef((props, ref) => {
3899
3761
  });
3900
3762
  const clampedStepSize = Math.max(Math.min(stepSize, 10), 1);
3901
3763
  const focusOnAddButton = () => {
3902
- addButtonRef.current?.focus();
3764
+ var _a5;
3765
+ (_a5 = addButtonRef.current) == null ? void 0 : _a5.focus();
3903
3766
  };
3904
3767
  return /* @__PURE__ */ jsxRuntime.jsxs(Field3, { css: styles.root, width: "auto", ...rest, ref, children: [
3905
3768
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -4156,7 +4019,10 @@ var CountryCodeSelect = React28.forwardRef((props, ref) => {
4156
4019
  const { t } = useTranslation();
4157
4020
  if (props.allowedCountryCodes) {
4158
4021
  callingCodes.items = callingCodes.items.filter(
4159
- (callingCode) => props.allowedCountryCodes?.some((code) => code === callingCode.label)
4022
+ (callingCode) => {
4023
+ var _a5;
4024
+ return (_a5 = props.allowedCountryCodes) == null ? void 0 : _a5.some((code) => code === callingCode.label);
4025
+ }
4160
4026
  );
4161
4027
  }
4162
4028
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -4595,16 +4461,16 @@ var pressableCardRecipe = react.defineRecipe({
4595
4461
  },
4596
4462
  core: {
4597
4463
  outlineColor: "core.outline",
4598
- outlineWidth: tokens20__namespace.default.size.stroke.sm,
4464
+ outlineWidth: tokens23__namespace.default.size.stroke.sm,
4599
4465
  outlineStyle: "solid",
4600
4466
  backgroundColor: "core.surface",
4601
4467
  _hover: {
4602
4468
  outlineColor: "core.outline.hover",
4603
- outlineWidth: tokens20__namespace.default.size.stroke.md,
4469
+ outlineWidth: tokens23__namespace.default.size.stroke.md,
4604
4470
  outlineStyle: "solid",
4605
4471
  _active: {
4606
4472
  backgroundColor: "core.surface.active",
4607
- outlineWidth: tokens20__namespace.default.size.stroke.sm
4473
+ outlineWidth: tokens23__namespace.default.size.stroke.sm
4608
4474
  }
4609
4475
  }
4610
4476
  },
@@ -4860,7 +4726,8 @@ var icons = {
4860
4726
  walk: { sm: sporIconReact.WalkFill18Icon, md: sporIconReact.WalkFill24Icon, lg: sporIconReact.WalkFill30Icon }
4861
4727
  };
4862
4728
  var getCorrectIcon = ({ variant, size }) => {
4863
- return icons[variant]?.[size] ?? react.Box;
4729
+ var _a5;
4730
+ return ((_a5 = icons[variant]) == null ? void 0 : _a5[size]) ?? react.Box;
4864
4731
  };
4865
4732
  var LineIcon = React28.forwardRef(
4866
4733
  function LineIcon2({
@@ -5018,7 +4885,7 @@ var ExternalIcon = ({ label }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fra
5018
4885
  var TextLink = React28.forwardRef(
5019
4886
  ({ children, external, href, ...props }, ref) => {
5020
4887
  const { t } = useTranslation();
5021
- const isExternal = external ?? Boolean(href?.startsWith("http://") || href?.startsWith("https://"));
4888
+ const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
5022
4889
  const externalLabel = t ? t(texts18.externalLink) : texts18.externalLink.en;
5023
4890
  if (props.asChild && React28.isValidElement(children)) {
5024
4891
  return /* @__PURE__ */ jsxRuntime.jsx(react.Link, { href, ...props, ref, children: React28.cloneElement(children, {
@@ -5673,7 +5540,7 @@ var NudgeContent = React28.forwardRef(
5673
5540
  ({ showCloseButton = true, children, ...props }, ref) => {
5674
5541
  const [currentStep, setCurrentStep] = React28.useState(1);
5675
5542
  const childrenArray = React28__namespace.default.Children.toArray(children);
5676
- const { open } = react$1.usePopoverContext();
5543
+ const { open } = react.usePopoverContext();
5677
5544
  React28.useEffect(() => {
5678
5545
  setCurrentStep(1);
5679
5546
  }, [children, open]);
@@ -5732,7 +5599,7 @@ var NudgeActions = ({ ...props }) => {
5732
5599
  var NextButton = ({ isLastStep, onNext }) => {
5733
5600
  const { t } = useTranslation();
5734
5601
  if (isLastStep)
5735
- return /* @__PURE__ */ jsxRuntime.jsx(react$1.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts22.close) }) });
5602
+ return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts22.close) }) });
5736
5603
  return /* @__PURE__ */ jsxRuntime.jsx(
5737
5604
  Button,
5738
5605
  {
@@ -6034,7 +5901,7 @@ var texts24 = createTexts({
6034
5901
  });
6035
5902
  var fontFaces = `
6036
5903
  @font-face {
6037
- font-family: ${tokens20__namespace.default.asset.font["vy-sans"]["light"].name};
5904
+ font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["light"].name};
6038
5905
  src: url("https://www.vy.no/styles/font/VySans-Light.woff2") format("woff2"),
6039
5906
  url("https://www.vy.no/styles/font/VySans-Light.woff") format("woff");
6040
5907
  font-style: normal;
@@ -6042,7 +5909,7 @@ var fontFaces = `
6042
5909
  font-display: swap
6043
5910
  }
6044
5911
  @font-face {
6045
- font-family: ${tokens20__namespace.default.asset.font["vy-sans"]["light-italic"].name};
5912
+ font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["light-italic"].name};
6046
5913
  src: url("https://www.vy.no/styles/font/VySans-LightItalic.woff2")
6047
5914
  format("woff2"),
6048
5915
  url("https://www.vy.no/styles/font/VySans-LightItalic.woff") format("woff");
@@ -6051,7 +5918,7 @@ var fontFaces = `
6051
5918
  font-display: swap
6052
5919
  }
6053
5920
  @font-face {
6054
- font-family: ${tokens20__namespace.default.asset.font["vy-sans"]["medium"].name};
5921
+ font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["medium"].name};
6055
5922
  src: url("https://www.vy.no/styles/font/VySans-Regular.woff2") format("woff2"),
6056
5923
  url("https://www.vy.no/styles/font/VySans-Regular.woff") format("woff");
6057
5924
  font-style: normal;
@@ -6059,7 +5926,7 @@ var fontFaces = `
6059
5926
  font-display: swap
6060
5927
  }
6061
5928
  @font-face {
6062
- font-family: ${tokens20__namespace.default.asset.font["vy-sans"]["medium-italic"].name};
5929
+ font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["medium-italic"].name};
6063
5930
  src: url("https://www.vy.no/styles/font/VySans-RegularItalic.woff2")
6064
5931
  format("woff2"),
6065
5932
  url("https://www.vy.no/styles/font/VySans-RegularItalic.woff")
@@ -6069,7 +5936,7 @@ var fontFaces = `
6069
5936
  font-display: swap
6070
5937
  }
6071
5938
  @font-face {
6072
- font-family: ${tokens20__namespace.default.asset.font["vy-sans"]["bold"].name};
5939
+ font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["bold"].name};
6073
5940
  src: url("https://www.vy.no/styles/font/VySans-Bold.woff2") format("woff2"),
6074
5941
  url("https://www.vy.no/styles/font/VySans-Bold.woff") format("woff");
6075
5942
  font-style: normal;
@@ -6077,7 +5944,7 @@ var fontFaces = `
6077
5944
  font-display: swap
6078
5945
  }
6079
5946
  @font-face {
6080
- font-family: ${tokens20__namespace.default.asset.font["vy-sans"]["bold-italic"].name};
5947
+ font-family: ${tokens23__namespace.default.asset.font["vy-sans"]["bold-italic"].name};
6081
5948
  src: url("https://www.vy.no/styles/font/VySans-BoldItalic.woff2")
6082
5949
  format("woff2"),
6083
5950
  url("https://www.vy.no/styles/font/VySans-BoldItalic.woff") format("woff");
@@ -6086,7 +5953,7 @@ var fontFaces = `
6086
5953
  font-display: swap
6087
5954
  }
6088
5955
  @font-face {
6089
- font-family: ${tokens20__namespace.default.asset.font["vy-display"].name};
5956
+ font-family: ${tokens23__namespace.default.asset.font["vy-display"].name};
6090
5957
  src: url("https://www.vy.no/styles/font/VyDisplay-Medium.woff2")
6091
5958
  format("woff2"),
6092
5959
  url("https://www.vy.no/styles/font/VyDisplay-Medium.woff") format("woff");
@@ -6118,7 +5985,7 @@ var createToast = ({
6118
5985
  }) => toaster.create({
6119
5986
  description: text,
6120
5987
  type: variant,
6121
- id,
5988
+ id: id ?? crypto.randomUUID(),
6122
5989
  duration
6123
5990
  });
6124
5991
  var Toaster = () => {
@@ -6167,7 +6034,7 @@ var SporProvider = ({
6167
6034
  }) => {
6168
6035
  return /* @__PURE__ */ jsxRuntime.jsx(LanguageProvider, { language, children: /* @__PURE__ */ jsxRuntime.jsx(react.ChakraProvider, { value: theme, children: /* @__PURE__ */ jsxRuntime.jsxs(ColorModeProvider, { children: [
6169
6036
  /* @__PURE__ */ jsxRuntime.jsx(Toaster, {}),
6170
- /* @__PURE__ */ jsxRuntime.jsx(react$2.Global, { styles: fontFaces }),
6037
+ /* @__PURE__ */ jsxRuntime.jsx(react$1.Global, { styles: fontFaces }),
6171
6038
  children
6172
6039
  ] }) }) });
6173
6040
  };
@@ -6595,7 +6462,7 @@ var buttonRecipe = react.defineRecipe({
6595
6462
  background: "surface.disabled"
6596
6463
  },
6597
6464
  _focus: {
6598
- outlineOffset: tokens20__namespace.default.size.stroke.md
6465
+ outlineOffset: tokens23__namespace.default.size.stroke.md
6599
6466
  }
6600
6467
  },
6601
6468
  variants: {
@@ -6623,19 +6490,19 @@ var buttonRecipe = react.defineRecipe({
6623
6490
  tertiary: {
6624
6491
  color: "core.text",
6625
6492
  outline: "solid",
6626
- outlineWidth: tokens20__namespace.default.size.stroke.sm,
6493
+ outlineWidth: tokens23__namespace.default.size.stroke.sm,
6627
6494
  outlineColor: "core.outline",
6628
6495
  _hover: {
6629
- outlineWidth: tokens20__namespace.default.size.stroke.md,
6496
+ outlineWidth: tokens23__namespace.default.size.stroke.md,
6630
6497
  outlineColor: "core.outline.hover",
6631
6498
  _active: {
6632
6499
  background: "core.surface.active",
6633
- outlineWidth: tokens20__namespace.default.size.stroke.sm,
6500
+ outlineWidth: tokens23__namespace.default.size.stroke.sm,
6634
6501
  outlineColor: "core.outline"
6635
6502
  }
6636
6503
  },
6637
6504
  _focus: {
6638
- outlineWidth: tokens20__namespace.default.size.stroke.sm
6505
+ outlineWidth: tokens23__namespace.default.size.stroke.sm
6639
6506
  }
6640
6507
  },
6641
6508
  ghost: {
@@ -6695,34 +6562,6 @@ var buttonRecipe = react.defineRecipe({
6695
6562
  size: "md"
6696
6563
  }
6697
6564
  });
6698
-
6699
- // src/theme/utils/ghost-utils.ts
6700
- function ghostBackground(state) {
6701
- switch (state) {
6702
- case "hover": {
6703
- return {
6704
- backgroundColor: "ghost.surface.hover"
6705
- };
6706
- }
6707
- case "active": {
6708
- return {
6709
- backgroundColor: "ghost.surface.active"
6710
- };
6711
- }
6712
- case "selected": {
6713
- return {
6714
- backgroundColor: "ghost.surface.selected"
6715
- };
6716
- }
6717
- case "default": {
6718
- return {
6719
- backgroundColor: "transparent"
6720
- };
6721
- }
6722
- }
6723
- }
6724
-
6725
- // src/theme/recipes/close-button.ts
6726
6565
  var closeButtonRecipe = react.defineRecipe({
6727
6566
  base: {
6728
6567
  transitionProperty: "common",
@@ -6732,12 +6571,12 @@ var closeButtonRecipe = react.defineRecipe({
6732
6571
  color: "darkGrey",
6733
6572
  fontWeight: "normal",
6734
6573
  _hover: {
6735
- ...ghostBackground("hover"),
6574
+ background: "ghost.surface.hover",
6736
6575
  _disabled: {
6737
6576
  color: "dimGrey"
6738
6577
  },
6739
6578
  _active: {
6740
- ...ghostBackground("active")
6579
+ background: "ghost.surface.active"
6741
6580
  }
6742
6581
  }
6743
6582
  },
@@ -6799,7 +6638,7 @@ var linkRecipe = react.defineRecipe({
6799
6638
  variants: {
6800
6639
  variant: {
6801
6640
  primary: {
6802
- ...coreText("default"),
6641
+ color: "core.text",
6803
6642
  _hover: {
6804
6643
  color: "text.default",
6805
6644
  _active: {
@@ -6808,10 +6647,10 @@ var linkRecipe = react.defineRecipe({
6808
6647
  }
6809
6648
  },
6810
6649
  secondary: {
6811
- ...coreText("highlight"),
6650
+ color: "text.hightlight",
6812
6651
  padding: "2px",
6813
6652
  _hover: {
6814
- ...coreText("highlight"),
6653
+ color: "text.hightlight",
6815
6654
  _active: {
6816
6655
  color: "text.disabled"
6817
6656
  }
@@ -6820,6 +6659,7 @@ var linkRecipe = react.defineRecipe({
6820
6659
  }
6821
6660
  }
6822
6661
  });
6662
+ var _a3, _b2;
6823
6663
  var textareaRecipe = react.defineRecipe({
6824
6664
  className: "spor-textarea",
6825
6665
  base: {
@@ -6836,10 +6676,10 @@ var textareaRecipe = react.defineRecipe({
6836
6676
  variants: {
6837
6677
  variant: {
6838
6678
  core: {
6839
- ...inputRecipe.variants?.variant.core
6679
+ ...(_a3 = inputRecipe.variants) == null ? void 0 : _a3.variant.core
6840
6680
  },
6841
6681
  floating: {
6842
- ...inputRecipe.variants?.variant.floating
6682
+ ...(_b2 = inputRecipe.variants) == null ? void 0 : _b2.variant.floating
6843
6683
  }
6844
6684
  }
6845
6685
  }
@@ -6862,23 +6702,23 @@ var recipes = {
6862
6702
  textarea: textareaRecipe
6863
6703
  };
6864
6704
  var vyDigitalColors = react.defineSemanticTokens.colors({
6865
- ...vyDigitalJson__default.default.color.vyDigital
6705
+ ...tokens4__default.default.color["vy-digital"].color.vyDigital
6866
6706
  });
6867
6707
  var vyUtviklingColors = react.defineSemanticTokens.colors({
6868
- ...VyUtviklingJson__default.default.color.vyUtvikling
6708
+ ...tokens4__default.default.color["vy-utvikling"].color.vyUtvikling
6869
6709
  });
6870
6710
  var cargonetColors = react.defineSemanticTokens.colors({
6871
- ...cargonetJson__default.default.color.cargonet
6711
+ ...tokens4__default.default.color.cargonet.color.cargonet
6872
6712
  });
6873
6713
  var radii = react.defineSemanticTokens.radii({
6874
- none: { value: tokens20__namespace.default.size["border-radius"].none },
6875
- xxs: { value: tokens20__namespace.default.size["border-radius"].xxs },
6876
- xs: { value: tokens20__namespace.default.size["border-radius"].xs },
6877
- sm: { value: tokens20__namespace.default.size["border-radius"].sm },
6878
- md: { value: tokens20__namespace.default.size["border-radius"].md },
6879
- lg: { value: tokens20__namespace.default.size["border-radius"].lg },
6880
- xl: { value: tokens20__namespace.default.size["border-radius"].xl },
6881
- "2xl": { value: tokens20__namespace.default.size["border-radius"]["2xl"] },
6714
+ none: { value: tokens23__namespace.default.size["border-radius"].none },
6715
+ xxs: { value: tokens23__namespace.default.size["border-radius"].xxs },
6716
+ xs: { value: tokens23__namespace.default.size["border-radius"].xs },
6717
+ sm: { value: tokens23__namespace.default.size["border-radius"].sm },
6718
+ md: { value: tokens23__namespace.default.size["border-radius"].md },
6719
+ lg: { value: tokens23__namespace.default.size["border-radius"].lg },
6720
+ xl: { value: tokens23__namespace.default.size["border-radius"].xl },
6721
+ "2xl": { value: tokens23__namespace.default.size["border-radius"]["2xl"] },
6882
6722
  round: { value: "50%" }
6883
6723
  });
6884
6724
  var shadows = react.defineSemanticTokens.shadows({
@@ -6886,13 +6726,13 @@ var shadows = react.defineSemanticTokens.shadows({
6886
6726
  value: "none"
6887
6727
  },
6888
6728
  sm: {
6889
- value: tokens20__namespace.default.depth.shadow.sm.value
6729
+ value: tokens23__namespace.default.depth.shadow.sm.value
6890
6730
  },
6891
6731
  md: {
6892
- value: tokens20__namespace.default.depth.shadow.md.value
6732
+ value: tokens23__namespace.default.depth.shadow.md.value
6893
6733
  },
6894
6734
  lg: {
6895
- value: tokens20__namespace.default.depth.shadow.lg.value
6735
+ value: tokens23__namespace.default.depth.shadow.lg.value
6896
6736
  }
6897
6737
  });
6898
6738
 
@@ -6915,66 +6755,6 @@ var semanticTokens = {
6915
6755
  colors: vyDigitalColors
6916
6756
  }
6917
6757
  };
6918
-
6919
- // src/theme/utils/floating-utils.ts
6920
- function floatingBackground(state) {
6921
- switch (state) {
6922
- case "focus": {
6923
- return brandBackground("default");
6924
- }
6925
- case "active": {
6926
- return {
6927
- backgroundColor: "floating.surface.active"
6928
- };
6929
- }
6930
- case "hover": {
6931
- return {
6932
- backgroundColor: {
6933
- _light: "floating.surface.hover",
6934
- _dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
6935
- }
6936
- };
6937
- }
6938
- case "default": {
6939
- return {
6940
- backgroundColor: {
6941
- _light: "bg",
6942
- _dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
6943
- }
6944
- };
6945
- }
6946
- }
6947
- }
6948
- function floatingBorder(state) {
6949
- switch (state) {
6950
- case "hover": {
6951
- return {
6952
- outline: "1px solid",
6953
- outlineColor: "floating.outline.hover"
6954
- };
6955
- }
6956
- case "focus": {
6957
- return {
6958
- outline: "1px solid",
6959
- outlineColor: "outline.focus"
6960
- };
6961
- }
6962
- case "active": {
6963
- return {
6964
- outline: "1px solid",
6965
- outlineColor: "floating.outline.active"
6966
- };
6967
- }
6968
- default: {
6969
- return {
6970
- outline: "1px solid",
6971
- outlineColor: "floating.outline"
6972
- };
6973
- }
6974
- }
6975
- }
6976
-
6977
- // src/theme/slot-recipes/accordion.ts
6978
6758
  var accordionSlotRecipe = react.defineSlotRecipe({
6979
6759
  className: "spor-accordion",
6980
6760
  slots: accordionAnatomy.keys(),
@@ -6990,7 +6770,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
6990
6770
  borderRadius: "sm",
6991
6771
  display: "flex",
6992
6772
  justifyContent: "space-between",
6993
- ...coreText("default"),
6773
+ color: "core.text",
6994
6774
  textAlign: "left",
6995
6775
  width: "full",
6996
6776
  alignItems: "center",
@@ -7041,58 +6821,63 @@ var accordionSlotRecipe = react.defineSlotRecipe({
7041
6821
  variants: {
7042
6822
  variant: {
7043
6823
  ghost: {
7044
- root: {
6824
+ item: {
7045
6825
  outline: "none"
7046
6826
  },
7047
6827
  itemTrigger: {
7048
6828
  "&:hover": {
7049
- ...ghostBackground("hover")
6829
+ background: "ghost.surface.hover"
7050
6830
  },
7051
6831
  "&:active": {
7052
- ...ghostBackground("active")
6832
+ backgroundColor: "ghost.surface.active"
7053
6833
  }
7054
6834
  }
7055
6835
  },
7056
6836
  core: {
7057
6837
  item: {
7058
- ...coreBorder("default")
6838
+ outline: "solid",
6839
+ outlineWidth: tokens23__namespace.default.size.stroke.sm,
6840
+ outlineColor: "core.outline"
7059
6841
  },
7060
6842
  itemTrigger: {
7061
6843
  _expanded: {
7062
6844
  borderBottomRadius: "none"
7063
6845
  },
7064
6846
  "&:hover": {
7065
- ...coreBorder("hover"),
6847
+ outlineWidth: tokens23__namespace.default.size.stroke.md,
6848
+ outlineColor: "core.outline.hover",
6849
+ outline: "solid",
7066
6850
  outlineOffset: 0
7067
6851
  },
7068
6852
  "&:active": {
7069
6853
  backgroundColor: "core.surface.active",
7070
- ...coreBorder("default")
6854
+ outlineWidth: tokens23__namespace.default.size.stroke.sm,
6855
+ outlineColor: "core.outline.active",
6856
+ outline: "solid"
7071
6857
  }
7072
6858
  }
7073
6859
  },
7074
6860
  floating: {
7075
6861
  item: {
7076
- ...floatingBackground("default"),
7077
- ...floatingBorder("default"),
7078
- boxShadow: "sm"
6862
+ outline: "solid",
6863
+ outlineWidth: tokens23__namespace.default.size.stroke.sm,
6864
+ outlineColor: "core.outline"
7079
6865
  },
7080
6866
  itemTrigger: {
7081
6867
  _expanded: {
7082
6868
  borderBottomRadius: "none"
7083
6869
  },
7084
6870
  "&:hover": {
7085
- outlineOffset: 1,
7086
- ...floatingBackground("hover"),
7087
- ...floatingBorder("hover"),
7088
- "&:active": {
7089
- backgroundColor: "floating.surface.active",
7090
- ...floatingBorder("default")
7091
- }
6871
+ outlineWidth: tokens23__namespace.default.size.stroke.md,
6872
+ outlineColor: "floating.outline.hover",
6873
+ outline: "solid",
6874
+ outlineOffset: 0
7092
6875
  },
7093
6876
  "&:active": {
7094
6877
  backgroundColor: "floating.surface.active",
7095
- ...floatingBorder("default")
6878
+ outlineWidth: tokens23__namespace.default.size.stroke.sm,
6879
+ outlineColor: "floating.outline.active",
6880
+ outline: "solid"
7096
6881
  }
7097
6882
  }
7098
6883
  }
@@ -7395,7 +7180,7 @@ var breadcrumbSlotRecipe = react.defineSlotRecipe({
7395
7180
  link: {
7396
7181
  _hover: {
7397
7182
  outlineColor: "core.outline.hover",
7398
- outlineWidth: tokens20__namespace.default.size.stroke.md,
7183
+ outlineWidth: tokens23__namespace.default.size.stroke.md,
7399
7184
  outlineStyle: "solid",
7400
7185
  _active: {
7401
7186
  backgroundColor: "core.surface.active",
@@ -7429,12 +7214,10 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
7429
7214
  gap: 1.5,
7430
7215
  _hover: {
7431
7216
  "& > input:enabled:not([aria-invalid]) + .spor-checkbox__control": {
7432
- ...coreBackground("hover"),
7433
- borderColor: brandBackground("hover").backgroundColor
7217
+ borderColor: "core.outline.hover"
7434
7218
  },
7435
7219
  "& > input:enabled:checked:not([aria-invalid]) + .spor-checkbox__control": {
7436
- ...brandBackground("hover"),
7437
- borderColor: brandBackground("hover").backgroundColor
7220
+ background: "brand.surface.hover"
7438
7221
  }
7439
7222
  }
7440
7223
  },
@@ -7458,17 +7241,16 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
7458
7241
  border: "2px solid",
7459
7242
  borderColor: "core.outline",
7460
7243
  borderRadius: "xs",
7461
- ...coreBackground("default"),
7462
7244
  _checked: {
7463
- ...brandText(),
7464
- ...brandBackground("default"),
7465
- borderColor: brandBackground("default").backgroundColor,
7245
+ color: "brand.icon",
7246
+ borderColor: "brand.surface",
7247
+ background: "brand.surface",
7466
7248
  _focus: {
7467
7249
  borderColor: "brand.surface.active"
7468
7250
  },
7469
7251
  _disabled: {
7470
- ...coreBackground("disabled"),
7471
- ...coreText("disabled"),
7252
+ background: "surface.disabled",
7253
+ color: "text.disabled",
7472
7254
  borderColor: "currentColor"
7473
7255
  },
7474
7256
  _invalid: {
@@ -7477,20 +7259,19 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
7477
7259
  }
7478
7260
  },
7479
7261
  _disabled: {
7480
- ...coreBackground("disabled"),
7481
- borderColor: coreText("disabled").color
7262
+ // borderColor: coreText("disabled").color,
7263
+ borderColor: "text.disabled"
7482
7264
  },
7483
7265
  _invalid: {
7484
- ...coreBackground("default"),
7485
7266
  borderColor: "outline.error"
7486
7267
  },
7487
7268
  _focus: {
7488
7269
  outlineStyle: "solid",
7489
7270
  outlineColor: "outline.focus",
7490
- outlineOffset: tokens20__namespace.default.size.stroke.md,
7491
- outlineWidth: tokens20__namespace.default.size.stroke.md,
7271
+ outlineOffset: tokens23__namespace.default.size.stroke.md,
7272
+ outlineWidth: tokens23__namespace.default.size.stroke.md,
7492
7273
  borderColor: "core.outline",
7493
- borderWidth: tokens20__namespace.default.size.stroke.md
7274
+ borderWidth: tokens23__namespace.default.size.stroke.md
7494
7275
  }
7495
7276
  },
7496
7277
  label: {
@@ -8144,7 +7925,7 @@ var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
8144
7925
  position: "fixed",
8145
7926
  zIndex: "dropdown",
8146
7927
  _focus: {
8147
- outlineOffset: tokens20__namespace.default.size.stroke.lg,
7928
+ outlineOffset: tokens23__namespace.default.size.stroke.lg,
8148
7929
  outlineColor: "outline.focus"
8149
7930
  },
8150
7931
  _disabled: {
@@ -8444,6 +8225,7 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
8444
8225
  });
8445
8226
 
8446
8227
  // src/theme/slot-recipes/info-tag.ts
8228
+ var _a4, _b3, _c, _d;
8447
8229
  var infoTagSlotRecipe = react.defineSlotRecipe({
8448
8230
  slots: infoTagAnatomy.keys(),
8449
8231
  className: "spor-info-tag",
@@ -8476,21 +8258,21 @@ var infoTagSlotRecipe = react.defineSlotRecipe({
8476
8258
  }
8477
8259
  },
8478
8260
  size: {
8479
- ...travelTagSlotRecipe.variants?.size,
8261
+ ...(_a4 = travelTagSlotRecipe.variants) == null ? void 0 : _a4.size,
8480
8262
  sm: {
8481
- ...travelTagSlotRecipe.variants?.size.sm,
8263
+ ...(_b3 = travelTagSlotRecipe.variants) == null ? void 0 : _b3.size.sm,
8482
8264
  iconContainer: {
8483
8265
  borderRadius: "0.375rem"
8484
8266
  }
8485
8267
  },
8486
8268
  md: {
8487
- ...travelTagSlotRecipe.variants?.size.md,
8269
+ ...(_c = travelTagSlotRecipe.variants) == null ? void 0 : _c.size.md,
8488
8270
  iconContainer: {
8489
8271
  borderRadius: "0.375rem"
8490
8272
  }
8491
8273
  },
8492
8274
  lg: {
8493
- ...travelTagSlotRecipe.variants?.size.lg,
8275
+ ...(_d = travelTagSlotRecipe.variants) == null ? void 0 : _d.size.lg,
8494
8276
  iconContainer: {
8495
8277
  borderRadius: "sm"
8496
8278
  }
@@ -8886,13 +8668,12 @@ var paginationSlotRecipe = react.defineSlotRecipe({
8886
8668
  width: "5",
8887
8669
  fontSize: "xs",
8888
8670
  borderRadius: "xl",
8889
- ...coreText("default"),
8671
+ color: "core.text",
8890
8672
  cursor: "pointer",
8891
- ...coreBackground("default"),
8892
8673
  _hover: {
8893
- ...ghostBackground("hover"),
8674
+ background: "ghost.surface.hover",
8894
8675
  _active: {
8895
- ...ghostBackground("active")
8676
+ background: "ghost.surface.active"
8896
8677
  }
8897
8678
  },
8898
8679
  _selected: {
@@ -9148,26 +8929,26 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
9148
8929
  core: {
9149
8930
  item: {
9150
8931
  outlineColor: "core.outline",
9151
- outlineWidth: tokens20__namespace.default.size.stroke.sm,
8932
+ outlineWidth: tokens23__namespace.default.size.stroke.sm,
9152
8933
  outlineStyle: "solid",
9153
8934
  backgroundColor: "core.surface",
9154
8935
  _hover: {
9155
8936
  outlineColor: "core.outline.hover",
9156
- outlineWidth: tokens20__namespace.default.size.stroke.md,
8937
+ outlineWidth: tokens23__namespace.default.size.stroke.md,
9157
8938
  outlineStyle: "solid",
9158
8939
  _active: {
9159
8940
  backgroundColor: "core.surface.active",
9160
- outlineWidth: tokens20__namespace.default.size.stroke.sm
8941
+ outlineWidth: tokens23__namespace.default.size.stroke.sm
9161
8942
  }
9162
8943
  },
9163
8944
  _checked: {
9164
8945
  outlineColor: "outline.focus",
9165
- outlineWidth: tokens20__namespace.default.size.stroke.md,
8946
+ outlineWidth: tokens23__namespace.default.size.stroke.md,
9166
8947
  outlineStyle: "solid",
9167
8948
  backgroundColor: "core.surface.active",
9168
8949
  _focusVisible: {
9169
8950
  outlineStyle: "double",
9170
- outlineWidth: `calc(3 * ${tokens20__namespace.default.size.stroke.md})`
8951
+ outlineWidth: `calc(3 * ${tokens23__namespace.default.size.stroke.md})`
9171
8952
  // space for double outline
9172
8953
  }
9173
8954
  }
@@ -9192,12 +8973,12 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
9192
8973
  },
9193
8974
  _checked: {
9194
8975
  outlineColor: "outline.focus",
9195
- outlineWidth: tokens20__namespace.default.size.stroke.md,
8976
+ outlineWidth: tokens23__namespace.default.size.stroke.md,
9196
8977
  outlineStyle: "solid",
9197
8978
  backgroundColor: "core.surface.active",
9198
8979
  _focusVisible: {
9199
8980
  outlineStyle: "double",
9200
- outlineWidth: `calc(3 * ${tokens20__namespace.default.size.stroke.md})`
8981
+ outlineWidth: `calc(3 * ${tokens23__namespace.default.size.stroke.md})`
9201
8982
  // space for double outline
9202
8983
  }
9203
8984
  }
@@ -9453,46 +9234,6 @@ var selectSlotRecipe = react.defineSlotRecipe({
9453
9234
  }
9454
9235
  }
9455
9236
  });
9456
-
9457
- // src/theme/utils/accent-utils.ts
9458
- function accentBackground(state) {
9459
- switch (state) {
9460
- case "selected": {
9461
- return brandBackground("default");
9462
- }
9463
- case "active": {
9464
- return {
9465
- backgroundColor: "accent.surface.active"
9466
- };
9467
- }
9468
- case "hover": {
9469
- return {
9470
- backgroundColor: "accent.surface.hover"
9471
- };
9472
- }
9473
- default: {
9474
- return {
9475
- backgroundColor: "accent.surface"
9476
- };
9477
- }
9478
- }
9479
- }
9480
- function accentText(state) {
9481
- switch (state) {
9482
- case "selected": {
9483
- return {
9484
- color: "brand.text"
9485
- };
9486
- }
9487
- default: {
9488
- return {
9489
- color: "accent.text"
9490
- };
9491
- }
9492
- }
9493
- }
9494
-
9495
- // src/theme/slot-recipes/stepper.ts
9496
9237
  var stepperSlotRecipe = react.defineSlotRecipe({
9497
9238
  slots: stepperAnatomy.keys(),
9498
9239
  className: "spor-stepper",
@@ -9558,13 +9299,13 @@ var stepperSlotRecipe = react.defineSlotRecipe({
9558
9299
  _dark: "whiteAlpha.900"
9559
9300
  },
9560
9301
  _disabled: {
9561
- color: coreText("disabled").color
9302
+ color: "core.text"
9562
9303
  },
9563
9304
  _currentStep: {
9564
- color: accentText("default").color
9305
+ color: "accent.text"
9565
9306
  },
9566
9307
  _hover: {
9567
- backgroundColor: accentBackground("hover").backgroundColor,
9308
+ backgroundColor: "accent.surface.hover",
9568
9309
  _disabled: {
9569
9310
  backgroundColor: "transparent"
9570
9311
  }
@@ -9572,7 +9313,7 @@ var stepperSlotRecipe = react.defineSlotRecipe({
9572
9313
  },
9573
9314
  backButton: {
9574
9315
  _hover: {
9575
- ...brandBackground("hover")
9316
+ backgroundColor: "brand.surface.hover"
9576
9317
  }
9577
9318
  }
9578
9319
  }
@@ -9662,7 +9403,7 @@ var switchSlotRecipe = react.defineSlotRecipe({
9662
9403
  backgroundColor: "brand.surface",
9663
9404
  _focusVisible: {
9664
9405
  outlineStyle: "double",
9665
- outlineWidth: `calc(3 * ${tokens20__namespace.default.size.stroke.md})`
9406
+ outlineWidth: `calc(3 * ${tokens23__namespace.default.size.stroke.md})`
9666
9407
  // space for double outline
9667
9408
  }
9668
9409
  },
@@ -10038,28 +9779,28 @@ var borders = react.defineTokens.borders({
10038
9779
  value: "0"
10039
9780
  },
10040
9781
  sm: {
10041
- value: `${tokens20__namespace.default.size.stroke.sm} solid`
9782
+ value: `${tokens23__namespace.default.size.stroke.sm} solid`
10042
9783
  },
10043
9784
  "sm-dashed": {
10044
- value: `${tokens20__namespace.default.size.stroke.sm} dashed`
9785
+ value: `${tokens23__namespace.default.size.stroke.sm} dashed`
10045
9786
  },
10046
9787
  md: {
10047
- value: `${tokens20__namespace.default.size.stroke.md} solid`
9788
+ value: `${tokens23__namespace.default.size.stroke.md} solid`
10048
9789
  },
10049
9790
  "md-dashed": {
10050
- value: `${tokens20__namespace.default.size.stroke.md} dashed`
9791
+ value: `${tokens23__namespace.default.size.stroke.md} dashed`
10051
9792
  },
10052
9793
  lg: {
10053
- value: `${tokens20__namespace.default.size.stroke.lg} solid`
9794
+ value: `${tokens23__namespace.default.size.stroke.lg} solid`
10054
9795
  },
10055
9796
  "lg-dashed": {
10056
- value: `${tokens20__namespace.default.size.stroke.lg} dashed`
9797
+ value: `${tokens23__namespace.default.size.stroke.lg} dashed`
10057
9798
  }
10058
9799
  });
10059
9800
  var colors = react.defineTokens.colors({
10060
- ...aliasJson__default.default.color.alias,
10061
- ...paletteJson__default.default.color.palette,
10062
- linjetag: linjetagJson__default.default.color.linjetag
9801
+ ...tokens4__default.default.color.alias.color.alias,
9802
+ ...tokens4__default.default.color.palette.color.palette,
9803
+ linjetag: tokens4__default.default.color.linjetag.color.linjetag
10063
9804
  });
10064
9805
  var cursor = react.defineTokens.cursor({
10065
9806
  button: {
@@ -10125,29 +9866,29 @@ var easings = react.defineTokens.easings({
10125
9866
  }
10126
9867
  });
10127
9868
  var fontSizes = react.defineTokens.fontSizes({
10128
- "2xs": { value: tokens20__namespace.default.size.font.xs.mobile },
10129
- xs: { value: tokens20__namespace.default.size.font.sm.mobile },
10130
- sm: { value: tokens20__namespace.default.size.font.md.mobile },
10131
- md: { value: tokens20__namespace.default.size.font.lg.mobile },
10132
- lg: { value: tokens20__namespace.default.size.font.xl.mobile },
10133
- xl: { value: tokens20__namespace.default.size.font.xxl.mobile },
10134
- "2xl": { value: tokens20__namespace.default.size.font.xl.desktop },
10135
- "3xl": { value: tokens20__namespace.default.size.font.xxl.desktop },
9869
+ "2xs": { value: tokens23__namespace.default.size.font.xs.mobile },
9870
+ xs: { value: tokens23__namespace.default.size.font.sm.mobile },
9871
+ sm: { value: tokens23__namespace.default.size.font.md.mobile },
9872
+ md: { value: tokens23__namespace.default.size.font.lg.mobile },
9873
+ lg: { value: tokens23__namespace.default.size.font.xl.mobile },
9874
+ xl: { value: tokens23__namespace.default.size.font.xxl.mobile },
9875
+ "2xl": { value: tokens23__namespace.default.size.font.xl.desktop },
9876
+ "3xl": { value: tokens23__namespace.default.size.font.xxl.desktop },
10136
9877
  mobile: {
10137
- xs: { value: tokens20__namespace.default.size.font.xs.mobile },
10138
- sm: { value: tokens20__namespace.default.size.font.sm.mobile },
10139
- md: { value: tokens20__namespace.default.size.font.md.mobile },
10140
- lg: { value: tokens20__namespace.default.size.font.lg.mobile },
10141
- xl: { value: tokens20__namespace.default.size.font.xl.mobile },
10142
- xxl: { value: tokens20__namespace.default.size.font.xxl.mobile }
9878
+ xs: { value: tokens23__namespace.default.size.font.xs.mobile },
9879
+ sm: { value: tokens23__namespace.default.size.font.sm.mobile },
9880
+ md: { value: tokens23__namespace.default.size.font.md.mobile },
9881
+ lg: { value: tokens23__namespace.default.size.font.lg.mobile },
9882
+ xl: { value: tokens23__namespace.default.size.font.xl.mobile },
9883
+ xxl: { value: tokens23__namespace.default.size.font.xxl.mobile }
10143
9884
  },
10144
9885
  desktop: {
10145
- xs: { value: tokens20__namespace.default.size.font.xs.desktop },
10146
- sm: { value: tokens20__namespace.default.size.font.sm.desktop },
10147
- md: { value: tokens20__namespace.default.size.font.md.desktop },
10148
- lg: { value: tokens20__namespace.default.size.font.lg.desktop },
10149
- xl: { value: tokens20__namespace.default.size.font.xl.desktop },
10150
- xxl: { value: tokens20__namespace.default.size.font.xxl.desktop }
9886
+ xs: { value: tokens23__namespace.default.size.font.xs.desktop },
9887
+ sm: { value: tokens23__namespace.default.size.font.sm.desktop },
9888
+ md: { value: tokens23__namespace.default.size.font.md.desktop },
9889
+ lg: { value: tokens23__namespace.default.size.font.lg.desktop },
9890
+ xl: { value: tokens23__namespace.default.size.font.xl.desktop },
9891
+ xxl: { value: tokens23__namespace.default.size.font.xxl.desktop }
10151
9892
  }
10152
9893
  });
10153
9894
  var fontWeights = react.defineTokens.fontWeights({
@@ -10180,9 +9921,9 @@ var fontWeights = react.defineTokens.fontWeights({
10180
9921
  }
10181
9922
  });
10182
9923
  var fonts = react.defineTokens.fonts({
10183
- body: { value: `${tokens20__namespace.default.font.family.body}, arial, sans-serif` },
10184
- heading: { value: `${tokens20__namespace.default.font.family.heading}, arial, sans-serif` },
10185
- mono: { value: `${tokens20__namespace.default.font.family.monospace}, monospace` }
9924
+ body: { value: `${tokens23__namespace.default.font.family.body}, arial, sans-serif` },
9925
+ heading: { value: `${tokens23__namespace.default.font.family.heading}, arial, sans-serif` },
9926
+ mono: { value: `${tokens23__namespace.default.font.family.monospace}, monospace` }
10186
9927
  });
10187
9928
  var letterSpacings = react.defineTokens.letterSpacings({
10188
9929
  tighter: {
@@ -10219,31 +9960,31 @@ var lineHeights = react.defineTokens.lineHeights({
10219
9960
  }
10220
9961
  });
10221
9962
  var radii2 = react.defineTokens.radii({
10222
- none: { value: tokens20__namespace.default.size["border-radius"].none },
10223
- xs: { value: tokens20__namespace.default.size["border-radius"].xs },
10224
- sm: { value: tokens20__namespace.default.size["border-radius"].sm },
10225
- md: { value: tokens20__namespace.default.size["border-radius"].md },
10226
- lg: { value: tokens20__namespace.default.size["border-radius"].lg },
10227
- xl: { value: tokens20__namespace.default.size["border-radius"].xl },
10228
- "2xl": { value: tokens20__namespace.default.size["border-radius"]["2xl"] },
9963
+ none: { value: tokens23__namespace.default.size["border-radius"].none },
9964
+ xs: { value: tokens23__namespace.default.size["border-radius"].xs },
9965
+ sm: { value: tokens23__namespace.default.size["border-radius"].sm },
9966
+ md: { value: tokens23__namespace.default.size["border-radius"].md },
9967
+ lg: { value: tokens23__namespace.default.size["border-radius"].lg },
9968
+ xl: { value: tokens23__namespace.default.size["border-radius"].xl },
9969
+ "2xl": { value: tokens23__namespace.default.size["border-radius"]["2xl"] },
10229
9970
  round: { value: "50%" }
10230
9971
  });
10231
9972
  var spacing = react.defineTokens.spacing({
10232
- 0: { value: tokens20__namespace.default.size.spacing["0"] },
10233
- 0.5: { value: tokens20__namespace.default.size.spacing["0.5"] },
10234
- 1: { value: tokens20__namespace.default.size.spacing["1"] },
10235
- 1.5: { value: tokens20__namespace.default.size.spacing["1.5"] },
10236
- 2: { value: tokens20__namespace.default.size.spacing["2"] },
10237
- 3: { value: tokens20__namespace.default.size.spacing["3"] },
10238
- 4: { value: tokens20__namespace.default.size.spacing["4"] },
10239
- 5: { value: tokens20__namespace.default.size.spacing["5"] },
10240
- 6: { value: tokens20__namespace.default.size.spacing["6"] },
10241
- 7: { value: tokens20__namespace.default.size.spacing["7"] },
10242
- 8: { value: tokens20__namespace.default.size.spacing["8"] },
10243
- 9: { value: tokens20__namespace.default.size.spacing["9"] },
10244
- 10: { value: tokens20__namespace.default.size.spacing["10"] },
10245
- 11: { value: tokens20__namespace.default.size.spacing["11"] },
10246
- 12: { value: tokens20__namespace.default.size.spacing["12"] }
9973
+ 0: { value: tokens23__namespace.default.size.spacing["0"] },
9974
+ 0.5: { value: tokens23__namespace.default.size.spacing["0.5"] },
9975
+ 1: { value: tokens23__namespace.default.size.spacing["1"] },
9976
+ 1.5: { value: tokens23__namespace.default.size.spacing["1.5"] },
9977
+ 2: { value: tokens23__namespace.default.size.spacing["2"] },
9978
+ 3: { value: tokens23__namespace.default.size.spacing["3"] },
9979
+ 4: { value: tokens23__namespace.default.size.spacing["4"] },
9980
+ 5: { value: tokens23__namespace.default.size.spacing["5"] },
9981
+ 6: { value: tokens23__namespace.default.size.spacing["6"] },
9982
+ 7: { value: tokens23__namespace.default.size.spacing["7"] },
9983
+ 8: { value: tokens23__namespace.default.size.spacing["8"] },
9984
+ 9: { value: tokens23__namespace.default.size.spacing["9"] },
9985
+ 10: { value: tokens23__namespace.default.size.spacing["10"] },
9986
+ 11: { value: tokens23__namespace.default.size.spacing["11"] },
9987
+ 12: { value: tokens23__namespace.default.size.spacing["12"] }
10247
9988
  });
10248
9989
 
10249
9990
  // src/theme/tokens/sizes.ts
@@ -10280,10 +10021,10 @@ var namedSizes = react.defineTokens.sizes({
10280
10021
  });
10281
10022
  var container = react.defineTokens.sizes({
10282
10023
  base: { value: 0 },
10283
- sm: { value: tokens20__namespace.default.size.breakpoint.sm },
10284
- md: { value: tokens20__namespace.default.size.breakpoint.md },
10285
- lg: { value: tokens20__namespace.default.size.breakpoint.lg },
10286
- xl: { value: tokens20__namespace.default.size.breakpoint.xl }
10024
+ sm: { value: tokens23__namespace.default.size.breakpoint.sm },
10025
+ md: { value: tokens23__namespace.default.size.breakpoint.md },
10026
+ lg: { value: tokens23__namespace.default.size.breakpoint.lg },
10027
+ xl: { value: tokens23__namespace.default.size.breakpoint.xl }
10287
10028
  });
10288
10029
  var sizes = {
10289
10030
  ...largeSizes,
@@ -10292,22 +10033,22 @@ var sizes = {
10292
10033
  container
10293
10034
  };
10294
10035
  var zIndex = react.defineTokens.zIndex({
10295
- hide: { value: tokens20__namespace.default.depth["z-index"].hide },
10036
+ hide: { value: tokens23__namespace.default.depth["z-index"].hide },
10296
10037
  auto: { value: "auto" },
10297
- base: { value: tokens20__namespace.default.depth["z-index"].base },
10298
- docked: { value: tokens20__namespace.default.depth["z-index"].docked },
10299
- dropdown: { value: tokens20__namespace.default.depth["z-index"].dropdown },
10300
- sticky: { value: tokens20__namespace.default.depth["z-index"].sticky },
10301
- banner: { value: tokens20__namespace.default.depth["z-index"].banner },
10302
- overlay: { value: tokens20__namespace.default.depth["z-index"].overlay },
10303
- modal: { value: tokens20__namespace.default.depth["z-index"].modal },
10304
- popover: { value: tokens20__namespace.default.depth["z-index"].popover },
10305
- skipLink: { value: tokens20__namespace.default.depth["z-index"].skipLink },
10306
- toast: { value: tokens20__namespace.default.depth["z-index"].toast }
10038
+ base: { value: tokens23__namespace.default.depth["z-index"].base },
10039
+ docked: { value: tokens23__namespace.default.depth["z-index"].docked },
10040
+ dropdown: { value: tokens23__namespace.default.depth["z-index"].dropdown },
10041
+ sticky: { value: tokens23__namespace.default.depth["z-index"].sticky },
10042
+ banner: { value: tokens23__namespace.default.depth["z-index"].banner },
10043
+ overlay: { value: tokens23__namespace.default.depth["z-index"].overlay },
10044
+ modal: { value: tokens23__namespace.default.depth["z-index"].modal },
10045
+ popover: { value: tokens23__namespace.default.depth["z-index"].popover },
10046
+ skipLink: { value: tokens23__namespace.default.depth["z-index"].skipLink },
10047
+ toast: { value: tokens23__namespace.default.depth["z-index"].toast }
10307
10048
  });
10308
10049
 
10309
10050
  // src/theme/tokens/index.ts
10310
- var tokens18 = {
10051
+ var tokens21 = {
10311
10052
  aspectRatios,
10312
10053
  animations,
10313
10054
  blurs,
@@ -10376,10 +10117,10 @@ var animationStyles = react.defineAnimationStyles({
10376
10117
  });
10377
10118
  var breakpoints = {
10378
10119
  base: "0px",
10379
- sm: tokens20__namespace.default.size.breakpoint.sm,
10380
- md: tokens20__namespace.default.size.breakpoint.md,
10381
- lg: tokens20__namespace.default.size.breakpoint.lg,
10382
- xl: tokens20__namespace.default.size.breakpoint.xl
10120
+ sm: tokens23__namespace.default.size.breakpoint.sm,
10121
+ md: tokens23__namespace.default.size.breakpoint.md,
10122
+ lg: tokens23__namespace.default.size.breakpoint.lg,
10123
+ xl: tokens23__namespace.default.size.breakpoint.xl
10383
10124
  };
10384
10125
 
10385
10126
  // src/theme/tokens/config.ts
@@ -10669,85 +10410,85 @@ var textStyles = react.defineTextStyles({
10669
10410
  xxl: {
10670
10411
  value: {
10671
10412
  fontSize: [
10672
- tokens20__namespace.default.font.style.xxl["font-size"].mobile,
10413
+ tokens23__namespace.default.font.style.xxl["font-size"].mobile,
10673
10414
  null,
10674
10415
  null,
10675
- tokens20__namespace.default.font.style.xxl["font-size"].desktop
10416
+ tokens23__namespace.default.font.style.xxl["font-size"].desktop
10676
10417
  ],
10677
- fontFamily: tokens20__namespace.default.font.style.xxl["font-family"],
10678
- lineHeight: tokens20__namespace.default.font.style.xxl["line-height"]
10418
+ fontFamily: tokens23__namespace.default.font.style.xxl["font-family"],
10419
+ lineHeight: tokens23__namespace.default.font.style.xxl["line-height"]
10679
10420
  }
10680
10421
  },
10681
10422
  "xl-display": {
10682
10423
  value: {
10683
10424
  fontSize: [
10684
- tokens20__namespace.default.font.style["xl-display"]["font-size"].mobile,
10425
+ tokens23__namespace.default.font.style["xl-display"]["font-size"].mobile,
10685
10426
  null,
10686
10427
  null,
10687
- tokens20__namespace.default.font.style["xl-display"]["font-size"].desktop
10428
+ tokens23__namespace.default.font.style["xl-display"]["font-size"].desktop
10688
10429
  ],
10689
- fontFamily: tokens20__namespace.default.font.style["xl-display"]["font-family"],
10690
- lineHeight: tokens20__namespace.default.font.style["xl-display"]["line-height"]
10430
+ fontFamily: tokens23__namespace.default.font.style["xl-display"]["font-family"],
10431
+ lineHeight: tokens23__namespace.default.font.style["xl-display"]["line-height"]
10691
10432
  }
10692
10433
  },
10693
10434
  "xl-sans": {
10694
10435
  value: {
10695
10436
  fontSize: [
10696
- tokens20__namespace.default.font.style["xl-sans"]["font-size"].mobile,
10437
+ tokens23__namespace.default.font.style["xl-sans"]["font-size"].mobile,
10697
10438
  null,
10698
10439
  null,
10699
- tokens20__namespace.default.font.style["xl-sans"]["font-size"].desktop
10440
+ tokens23__namespace.default.font.style["xl-sans"]["font-size"].desktop
10700
10441
  ],
10701
- fontFamily: tokens20__namespace.default.font.style["xl-sans"]["font-family"],
10702
- lineHeight: tokens20__namespace.default.font.style["xl-sans"]["line-height"]
10442
+ fontFamily: tokens23__namespace.default.font.style["xl-sans"]["font-family"],
10443
+ lineHeight: tokens23__namespace.default.font.style["xl-sans"]["line-height"]
10703
10444
  }
10704
10445
  },
10705
10446
  lg: {
10706
10447
  value: {
10707
10448
  fontSize: [
10708
- tokens20__namespace.default.font.style.lg["font-size"].mobile,
10449
+ tokens23__namespace.default.font.style.lg["font-size"].mobile,
10709
10450
  null,
10710
10451
  null,
10711
- tokens20__namespace.default.font.style.lg["font-size"].desktop
10452
+ tokens23__namespace.default.font.style.lg["font-size"].desktop
10712
10453
  ],
10713
- fontFamily: tokens20__namespace.default.font.style.lg["font-family"],
10714
- lineHeight: tokens20__namespace.default.font.style.lg["line-height"]
10454
+ fontFamily: tokens23__namespace.default.font.style.lg["font-family"],
10455
+ lineHeight: tokens23__namespace.default.font.style.lg["line-height"]
10715
10456
  }
10716
10457
  },
10717
10458
  md: {
10718
10459
  value: {
10719
10460
  fontSize: [
10720
- tokens20__namespace.default.font.style.md["font-size"].mobile,
10461
+ tokens23__namespace.default.font.style.md["font-size"].mobile,
10721
10462
  null,
10722
10463
  null,
10723
- tokens20__namespace.default.font.style.md["font-size"].desktop
10464
+ tokens23__namespace.default.font.style.md["font-size"].desktop
10724
10465
  ],
10725
- fontFamily: tokens20__namespace.default.font.style.md["font-family"],
10726
- lineHeight: tokens20__namespace.default.font.style.md["line-height"]
10466
+ fontFamily: tokens23__namespace.default.font.style.md["font-family"],
10467
+ lineHeight: tokens23__namespace.default.font.style.md["line-height"]
10727
10468
  }
10728
10469
  },
10729
10470
  sm: {
10730
10471
  value: {
10731
10472
  fontSize: [
10732
- tokens20__namespace.default.font.style.sm["font-size"].mobile,
10473
+ tokens23__namespace.default.font.style.sm["font-size"].mobile,
10733
10474
  null,
10734
10475
  null,
10735
- tokens20__namespace.default.font.style.sm["font-size"].desktop
10476
+ tokens23__namespace.default.font.style.sm["font-size"].desktop
10736
10477
  ],
10737
- fontFamily: tokens20__namespace.default.font.style.sm["font-family"],
10738
- lineHeight: tokens20__namespace.default.font.style.sm["line-height"]
10478
+ fontFamily: tokens23__namespace.default.font.style.sm["font-family"],
10479
+ lineHeight: tokens23__namespace.default.font.style.sm["line-height"]
10739
10480
  }
10740
10481
  },
10741
10482
  xs: {
10742
10483
  value: {
10743
10484
  fontSize: [
10744
- tokens20__namespace.default.font.style.xs["font-size"].mobile,
10485
+ tokens23__namespace.default.font.style.xs["font-size"].mobile,
10745
10486
  null,
10746
10487
  null,
10747
- tokens20__namespace.default.font.style.xs["font-size"].desktop
10488
+ tokens23__namespace.default.font.style.xs["font-size"].desktop
10748
10489
  ],
10749
- fontFamily: tokens20__namespace.default.font.style.xs["font-family"],
10750
- lineHeight: tokens20__namespace.default.font.style.xs["line-height"]
10490
+ fontFamily: tokens23__namespace.default.font.style.xs["font-family"],
10491
+ lineHeight: tokens23__namespace.default.font.style.xs["line-height"]
10751
10492
  }
10752
10493
  }
10753
10494
  });
@@ -10758,7 +10499,7 @@ var generateTheme = (brand) => {
10758
10499
  theme: {
10759
10500
  breakpoints,
10760
10501
  keyframes,
10761
- tokens: tokens18,
10502
+ tokens: tokens21,
10762
10503
  semanticTokens: semanticTokens[brand],
10763
10504
  recipes,
10764
10505
  slotRecipes,
@@ -10995,7 +10736,7 @@ Object.defineProperty(exports, "Time", {
10995
10736
  enumerable: true,
10996
10737
  get: function () { return date.Time; }
10997
10738
  });
10998
- exports.tokens = tokens20__namespace;
10739
+ exports.tokens = tokens23__namespace;
10999
10740
  exports.Accordion = Accordion;
11000
10741
  exports.AccordionItem = AccordionItem;
11001
10742
  exports.AccordionItemContent = AccordionItemContent;