@vygruppen/spor-react 12.9.0 → 12.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +21 -0
- package/dist/index.cjs +89 -131
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -40
- package/dist/index.d.ts +19 -40
- package/dist/index.mjs +89 -131
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -4
- package/src/dialog/Drawer.tsx +2 -2
- package/src/linjetag/LineIcon.tsx +4 -2
- package/src/linjetag/TravelTag.tsx +2 -1
- package/src/loader/DarkFullScreenLoader.tsx +2 -1
- package/src/loader/LightFullScreenLoader.tsx +1 -7
- package/src/loader/LightInlineLoader.tsx +1 -7
- package/src/provider/SporProvider.tsx +12 -1
- package/src/theme/recipes/badge.ts +1 -1
- package/src/theme/recipes/close-button.ts +2 -2
- package/src/theme/recipes/link.ts +3 -3
- package/src/theme/recipes/pressable-card.ts +0 -1
- package/src/theme/recipes/skeleton.ts +1 -1
- package/src/theme/slot-recipes/alert-service.ts +1 -1
- package/src/theme/slot-recipes/checkbox.ts +2 -3
- package/src/theme/slot-recipes/choice-chip.ts +8 -8
- package/src/theme/slot-recipes/datepicker.ts +1 -2
- package/src/theme/slot-recipes/dialog.ts +1 -0
- package/src/theme/slot-recipes/drawer.ts +1 -0
- package/src/theme/slot-recipes/field.ts +4 -3
- package/src/theme/slot-recipes/floating-action-button.ts +1 -1
- package/src/theme/slot-recipes/line-icon.ts +3 -36
- package/src/theme/slot-recipes/radio-card.ts +0 -1
- package/src/theme/slot-recipes/select.ts +0 -1
- package/src/theme/slot-recipes/switch.ts +2 -4
- package/src/theme/slot-recipes/table.ts +0 -1
- package/src/theme/slot-recipes/tabs.ts +3 -4
- package/src/theme/slot-recipes/toast.ts +0 -9
- package/src/theme/slot-recipes/travel-tag.ts +11 -9
- 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: "
|
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
|
-
|
273
|
-
{
|
274
|
-
|
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
|
-
|
293
|
-
{
|
294
|
-
|
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
|
663
|
+
color: "alert.error-secondary.icon"
|
683
664
|
}
|
684
665
|
},
|
685
666
|
red: {
|
@@ -2385,7 +2366,7 @@ var CloseDrawerLine = forwardRef((props, ref) => {
|
|
2385
2366
|
top: 0,
|
2386
2367
|
marginY: 2,
|
2387
2368
|
marginX: "auto",
|
2388
|
-
backgroundColor: "
|
2369
|
+
backgroundColor: "floating.outline.active",
|
2389
2370
|
borderRadius: "xs",
|
2390
2371
|
...props,
|
2391
2372
|
ref
|
@@ -3765,6 +3746,28 @@ var StaticCard = forwardRef(
|
|
3765
3746
|
}
|
3766
3747
|
);
|
3767
3748
|
StaticCard.displayName = "StaticCard";
|
3749
|
+
|
3750
|
+
// ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
3751
|
+
function r(e) {
|
3752
|
+
var t, f, n = "";
|
3753
|
+
if ("string" == typeof e || "number" == typeof e)
|
3754
|
+
n += e;
|
3755
|
+
else if ("object" == typeof e)
|
3756
|
+
if (Array.isArray(e)) {
|
3757
|
+
var o = e.length;
|
3758
|
+
for (t = 0; t < o; t++)
|
3759
|
+
e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
3760
|
+
} else
|
3761
|
+
for (f in e)
|
3762
|
+
e[f] && (n && (n += " "), n += f);
|
3763
|
+
return n;
|
3764
|
+
}
|
3765
|
+
function clsx() {
|
3766
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++)
|
3767
|
+
(e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
3768
|
+
return n;
|
3769
|
+
}
|
3770
|
+
var clsx_default = clsx;
|
3768
3771
|
var icons = {
|
3769
3772
|
"local-train": {
|
3770
3773
|
sm: TrainFill18Icon,
|
@@ -3831,9 +3834,9 @@ var LineIcon = forwardRef(
|
|
3831
3834
|
return variant === "walk" && target === "travelTag" ? 0 : 0.5;
|
3832
3835
|
};
|
3833
3836
|
const Icon3 = getCorrectIcon({
|
3834
|
-
variant:
|
3835
|
-
// eslint-disable-next-line
|
3836
|
-
variant === "custom" ? "local-train" : variant
|
3837
|
+
variant: (
|
3838
|
+
// eslint-disable-next-line no-nested-ternary
|
3839
|
+
variant === "custom" && "customIconVariant" in rest ? rest.customIconVariant : variant === "custom" ? "local-train" : variant
|
3837
3840
|
),
|
3838
3841
|
size
|
3839
3842
|
});
|
@@ -3852,6 +3855,7 @@ var LineIcon = forwardRef(
|
|
3852
3855
|
borderColor: variant === "walk" ? "core.outline" : "transparent",
|
3853
3856
|
"aria-label": label,
|
3854
3857
|
ref,
|
3858
|
+
className: clsx_default("light", rest.className),
|
3855
3859
|
children: /* @__PURE__ */ jsx(Icon3, { css: styles.icon })
|
3856
3860
|
}
|
3857
3861
|
);
|
@@ -3912,8 +3916,8 @@ var TravelTag = forwardRef(
|
|
3912
3916
|
css: styles.container,
|
3913
3917
|
"aria-disabled": disabled,
|
3914
3918
|
ref,
|
3919
|
+
className: clsx_default("light", rest.className),
|
3915
3920
|
...rest,
|
3916
|
-
backgroundColor: disabled ? "surface.disabled" : backgroundColor,
|
3917
3921
|
children: [
|
3918
3922
|
/* @__PURE__ */ jsx(
|
3919
3923
|
LineIcon,
|
@@ -5065,7 +5069,7 @@ var createToast = ({
|
|
5065
5069
|
text,
|
5066
5070
|
variant,
|
5067
5071
|
id,
|
5068
|
-
duration =
|
5072
|
+
duration = 6e5
|
5069
5073
|
}) => toaster.create({
|
5070
5074
|
description: text,
|
5071
5075
|
type: variant,
|
@@ -5114,9 +5118,10 @@ var texts25 = createTexts({
|
|
5114
5118
|
var SporProvider = ({
|
5115
5119
|
language = "nb" /* NorwegianBokmal */,
|
5116
5120
|
theme = system,
|
5121
|
+
enableSystemColorMode = true,
|
5117
5122
|
children
|
5118
5123
|
}) => {
|
5119
|
-
return /* @__PURE__ */ jsx(LanguageProvider, { language, children: /* @__PURE__ */ jsx(ChakraProvider, { value: theme, children: /* @__PURE__ */ jsxs(ColorModeProvider, { children: [
|
5124
|
+
return /* @__PURE__ */ jsx(LanguageProvider, { language, children: /* @__PURE__ */ jsx(ChakraProvider, { value: theme, children: /* @__PURE__ */ jsxs(ColorModeProvider, { enableSystem: enableSystemColorMode, children: [
|
5120
5125
|
/* @__PURE__ */ jsx(Toaster, {}),
|
5121
5126
|
/* @__PURE__ */ jsx(Global, { styles: fontFaces }),
|
5122
5127
|
children
|
@@ -5494,12 +5499,12 @@ var closeButtonRecipe = defineRecipe({
|
|
5494
5499
|
transitionDuration: "normal",
|
5495
5500
|
borderRadius: "md",
|
5496
5501
|
backgroundColor: "transparent",
|
5497
|
-
color: "
|
5502
|
+
color: "text",
|
5498
5503
|
fontWeight: "normal",
|
5499
5504
|
_hover: {
|
5500
5505
|
background: "ghost.surface.hover",
|
5501
5506
|
_disabled: {
|
5502
|
-
color: "
|
5507
|
+
color: "icon.disabled"
|
5503
5508
|
},
|
5504
5509
|
_active: {
|
5505
5510
|
background: "ghost.surface.active"
|
@@ -5657,17 +5662,17 @@ var linkRecipe = defineRecipe({
|
|
5657
5662
|
primary: {
|
5658
5663
|
color: "core.text",
|
5659
5664
|
_hover: {
|
5660
|
-
color: "text
|
5665
|
+
color: "text",
|
5661
5666
|
_active: {
|
5662
5667
|
color: "text.disabled"
|
5663
5668
|
}
|
5664
5669
|
}
|
5665
5670
|
},
|
5666
5671
|
secondary: {
|
5667
|
-
color: "text.
|
5672
|
+
color: "text.highlight",
|
5668
5673
|
padding: "2px",
|
5669
5674
|
_hover: {
|
5670
|
-
color: "text.
|
5675
|
+
color: "text.highlight",
|
5671
5676
|
_active: {
|
5672
5677
|
color: "text.disabled"
|
5673
5678
|
}
|
@@ -5751,7 +5756,6 @@ var pressableCardRecipe = defineRecipe({
|
|
5751
5756
|
outlineColor: "core.outline",
|
5752
5757
|
outlineWidth: tokens23__default.size.stroke.sm,
|
5753
5758
|
outlineStyle: "solid",
|
5754
|
-
backgroundColor: "core.surface",
|
5755
5759
|
_hover: {
|
5756
5760
|
outlineColor: "core.outline.hover",
|
5757
5761
|
outlineWidth: tokens23__default.size.stroke.md,
|
@@ -5909,7 +5913,7 @@ var skeletonRecipe = defineRecipe({
|
|
5909
5913
|
},
|
5910
5914
|
none: {
|
5911
5915
|
animation: "none",
|
5912
|
-
background: "
|
5916
|
+
background: "surface.color.grey"
|
5913
5917
|
}
|
5914
5918
|
}
|
5915
5919
|
}
|
@@ -6662,7 +6666,7 @@ var alertServiceSlotRecipe = defineSlotRecipe({
|
|
6662
6666
|
backgroundColor: "alert.service.surface.active"
|
6663
6667
|
},
|
6664
6668
|
_icon: {
|
6665
|
-
color: "
|
6669
|
+
color: "text"
|
6666
6670
|
}
|
6667
6671
|
},
|
6668
6672
|
itemTriggerTitle: {
|
@@ -6768,7 +6772,6 @@ var checkboxSlotRecipe = defineSlotRecipe({
|
|
6768
6772
|
indicator: {
|
6769
6773
|
width: "100%",
|
6770
6774
|
height: "100%",
|
6771
|
-
borderColor: "white",
|
6772
6775
|
marginTop: -1,
|
6773
6776
|
transform: "scale(1)",
|
6774
6777
|
opacity: 0,
|
@@ -6799,8 +6802,8 @@ var checkboxSlotRecipe = defineSlotRecipe({
|
|
6799
6802
|
borderColor: "currentColor"
|
6800
6803
|
},
|
6801
6804
|
_invalid: {
|
6802
|
-
backgroundColor: "
|
6803
|
-
borderColor: "
|
6805
|
+
backgroundColor: "outline.error",
|
6806
|
+
borderColor: "outline.error"
|
6804
6807
|
}
|
6805
6808
|
},
|
6806
6809
|
_disabled: {
|
@@ -6840,7 +6843,7 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
6840
6843
|
paddingInlineStart: "2",
|
6841
6844
|
paddingInlineEnd: "2",
|
6842
6845
|
outline: "1px solid",
|
6843
|
-
outlineColor: "
|
6846
|
+
outlineColor: "core.outline",
|
6844
6847
|
_checked: {
|
6845
6848
|
backgroundColor: "brand.surface",
|
6846
6849
|
borderRadius: "sm",
|
@@ -6865,19 +6868,19 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
6865
6868
|
color: "text.disabled",
|
6866
6869
|
outline: "none",
|
6867
6870
|
_hover: {
|
6868
|
-
backgroundColor: "
|
6871
|
+
backgroundColor: "surface.disabled",
|
6869
6872
|
boxShadow: "none",
|
6870
|
-
color: "
|
6873
|
+
color: "text.disabled"
|
6871
6874
|
},
|
6872
6875
|
_checked: {
|
6873
6876
|
cursor: "not-allowed",
|
6874
6877
|
boxShadow: "none",
|
6875
|
-
color: "
|
6876
|
-
backgroundColor: "
|
6878
|
+
color: "text.disabled",
|
6879
|
+
backgroundColor: "surface.disabled",
|
6877
6880
|
_hover: {
|
6878
|
-
backgroundColor: "
|
6881
|
+
backgroundColor: "surface.disabled",
|
6879
6882
|
boxShadow: "none",
|
6880
|
-
color: "
|
6883
|
+
color: "text.disabled"
|
6881
6884
|
}
|
6882
6885
|
}
|
6883
6886
|
}
|
@@ -6885,6 +6888,7 @@ var choiceChipSlotRecipe = defineSlotRecipe({
|
|
6885
6888
|
label: {
|
6886
6889
|
display: "flex",
|
6887
6890
|
alignItems: "center",
|
6891
|
+
gap: "1",
|
6888
6892
|
fontSize: "xs"
|
6889
6893
|
}
|
6890
6894
|
},
|
@@ -7040,7 +7044,7 @@ var datePickerSlotRecipe = defineSlotRecipe({
|
|
7040
7044
|
dateTimeSegment: {
|
7041
7045
|
_focus: {
|
7042
7046
|
backgroundColor: "ghost.surface.active",
|
7043
|
-
color: "text
|
7047
|
+
color: "text"
|
7044
7048
|
}
|
7045
7049
|
},
|
7046
7050
|
box: {
|
@@ -7148,7 +7152,6 @@ var datePickerSlotRecipe = defineSlotRecipe({
|
|
7148
7152
|
wrapper: {
|
7149
7153
|
outline: "1px solid",
|
7150
7154
|
outlineColor: "core.outline",
|
7151
|
-
backgroundColor: "core.surface",
|
7152
7155
|
_hover: {
|
7153
7156
|
outline: "2px solid",
|
7154
7157
|
outlineColor: "core.outline.hover",
|
@@ -7216,6 +7219,7 @@ var dialogSlotRecipe = defineSlotRecipe({
|
|
7216
7219
|
className: "spor-dialog",
|
7217
7220
|
base: {
|
7218
7221
|
backdrop: {
|
7222
|
+
// eslint-disable-next-line spor/use-semantic-tokens
|
7219
7223
|
background: "blackAlpha.500",
|
7220
7224
|
position: "fixed",
|
7221
7225
|
left: 0,
|
@@ -7436,6 +7440,7 @@ var drawerSlotRecipe = defineSlotRecipe({
|
|
7436
7440
|
className: "spor-drawer",
|
7437
7441
|
base: {
|
7438
7442
|
backdrop: {
|
7443
|
+
// eslint-disable-next-line spor/use-semantic-tokens
|
7439
7444
|
bg: "blackAlpha.500",
|
7440
7445
|
position: "fixed",
|
7441
7446
|
insetInlineStart: 0,
|
@@ -7641,6 +7646,7 @@ var fieldSlotRecipe = defineSlotRecipe({
|
|
7641
7646
|
},
|
7642
7647
|
requiredIndicator: {
|
7643
7648
|
marginStart: 1,
|
7649
|
+
// eslint-disable-next-line spor/use-semantic-tokens
|
7644
7650
|
color: "brightRed"
|
7645
7651
|
},
|
7646
7652
|
label: {
|
@@ -7654,8 +7660,8 @@ var fieldSlotRecipe = defineSlotRecipe({
|
|
7654
7660
|
},
|
7655
7661
|
errorText: {
|
7656
7662
|
borderRadius: "xs",
|
7657
|
-
backgroundColor: "
|
7658
|
-
color: "
|
7663
|
+
backgroundColor: "alert.error.surface",
|
7664
|
+
color: "text",
|
7659
7665
|
paddingX: 1.5,
|
7660
7666
|
paddingY: 1,
|
7661
7667
|
textStyle: "xs",
|
@@ -7672,7 +7678,7 @@ var fieldSlotRecipe = defineSlotRecipe({
|
|
7672
7678
|
left: "1em",
|
7673
7679
|
width: "0.5rem",
|
7674
7680
|
height: "0.5rem",
|
7675
|
-
backgroundColor: "
|
7681
|
+
backgroundColor: "alert.error.surface",
|
7676
7682
|
transform: "translateY(-50%) rotate(45deg)",
|
7677
7683
|
pointerEvents: "none"
|
7678
7684
|
}
|
@@ -7752,7 +7758,7 @@ var floatingActionButtonSlotRecipe = defineSlotRecipe({
|
|
7752
7758
|
_hover: {
|
7753
7759
|
backgroundColor: "transparent",
|
7754
7760
|
outline: "2px solid",
|
7755
|
-
outlineColor: "core.outline
|
7761
|
+
outlineColor: "core.outline",
|
7756
7762
|
_active: {
|
7757
7763
|
outline: "1px solid",
|
7758
7764
|
outlineColor: "core.outline",
|
@@ -7815,6 +7821,9 @@ var travelTagSlotRecipe = defineSlotRecipe({
|
|
7815
7821
|
display: "flex",
|
7816
7822
|
alignItems: "center",
|
7817
7823
|
padding: 0.5,
|
7824
|
+
_disabled: {
|
7825
|
+
background: "surface.disabled"
|
7826
|
+
},
|
7818
7827
|
width: "fit-content",
|
7819
7828
|
transitionDuration: "fast",
|
7820
7829
|
transitionProperty: "common",
|
@@ -7830,13 +7839,13 @@ var travelTagSlotRecipe = defineSlotRecipe({
|
|
7830
7839
|
}
|
7831
7840
|
},
|
7832
7841
|
textContainer: {
|
7833
|
-
color: "
|
7842
|
+
color: "text",
|
7834
7843
|
paddingRight: 0.5,
|
7835
7844
|
whiteSpace: "nowrap"
|
7836
7845
|
},
|
7837
7846
|
title: {
|
7838
7847
|
fontWeight: "bold",
|
7839
|
-
color: "
|
7848
|
+
color: "text",
|
7840
7849
|
"[aria-disabled=true] &": {
|
7841
7850
|
color: "text.disabled"
|
7842
7851
|
}
|
@@ -7860,24 +7869,21 @@ var travelTagSlotRecipe = defineSlotRecipe({
|
|
7860
7869
|
critical: {
|
7861
7870
|
container: {
|
7862
7871
|
border: "1px solid",
|
7863
|
-
borderColor: "error
|
7872
|
+
borderColor: "outline.error"
|
7864
7873
|
},
|
7865
7874
|
deviationIcon: {
|
7866
|
-
color: "
|
7875
|
+
color: "outline.error"
|
7867
7876
|
}
|
7868
7877
|
},
|
7869
7878
|
major: {
|
7870
7879
|
container: {
|
7871
7880
|
border: "1px solid",
|
7881
|
+
// eslint-disable-next-line spor/use-semantic-tokens
|
7872
7882
|
borderColor: "golden"
|
7873
7883
|
}
|
7874
7884
|
},
|
7875
7885
|
minor: {},
|
7876
|
-
info: {
|
7877
|
-
deviationIcon: {
|
7878
|
-
color: "ocean"
|
7879
|
-
}
|
7880
|
-
},
|
7886
|
+
info: {},
|
7881
7887
|
none: {}
|
7882
7888
|
},
|
7883
7889
|
variant: {
|
@@ -8068,22 +8074,13 @@ var lineIconSlotRecipe = defineSlotRecipe({
|
|
8068
8074
|
iconContainer: {
|
8069
8075
|
display: "flex",
|
8070
8076
|
justifyContent: "center",
|
8071
|
-
alignItems: "center"
|
8072
|
-
"[aria-disabled=true] &": {
|
8073
|
-
backgroundColor: "surface.disabled"
|
8074
|
-
}
|
8077
|
+
alignItems: "center"
|
8075
8078
|
},
|
8076
8079
|
icon: {
|
8077
|
-
color: "
|
8078
|
-
"[aria-disabled=true] &": {
|
8079
|
-
color: "icon.disabled"
|
8080
|
-
}
|
8080
|
+
color: "bg"
|
8081
8081
|
},
|
8082
8082
|
title: {
|
8083
|
-
color: "
|
8084
|
-
"[aria-disabled=true] &": {
|
8085
|
-
color: "text.disabled"
|
8086
|
-
}
|
8083
|
+
color: "text"
|
8087
8084
|
}
|
8088
8085
|
},
|
8089
8086
|
variants: {
|
@@ -8141,39 +8138,15 @@ var lineIconSlotRecipe = defineSlotRecipe({
|
|
8141
8138
|
"alt-transport": {
|
8142
8139
|
iconContainer: {
|
8143
8140
|
backgroundColor: "linjetag.altTransport"
|
8144
|
-
},
|
8145
|
-
icon: {
|
8146
|
-
color: "darkGrey",
|
8147
|
-
"[aria-disabled=true] &": {
|
8148
|
-
color: "white"
|
8149
|
-
}
|
8150
8141
|
}
|
8151
8142
|
},
|
8152
8143
|
walk: {
|
8153
8144
|
title: {
|
8154
8145
|
color: "text"
|
8155
|
-
},
|
8156
|
-
icon: {
|
8157
|
-
color: "linjetag.walkLight",
|
8158
|
-
"[aria-disabled=true] &": {
|
8159
|
-
color: "icon.disabled"
|
8160
|
-
}
|
8161
|
-
},
|
8162
|
-
_disabled: {
|
8163
|
-
icon: {
|
8164
|
-
color: "text.disabled"
|
8165
|
-
},
|
8166
|
-
title: {
|
8167
|
-
color: "text.disabled"
|
8168
|
-
}
|
8169
8146
|
}
|
8170
8147
|
},
|
8171
8148
|
custom: {
|
8172
|
-
iconContainer: {
|
8173
|
-
_disabled: {
|
8174
|
-
backgroundColor: "surface.disabled"
|
8175
|
-
}
|
8176
|
-
}
|
8149
|
+
iconContainer: {}
|
8177
8150
|
}
|
8178
8151
|
},
|
8179
8152
|
size: {
|
@@ -8822,7 +8795,6 @@ var radioCardSlotRecipe = defineSlotRecipe({
|
|
8822
8795
|
outlineColor: "core.outline",
|
8823
8796
|
outlineWidth: tokens23__default.size.stroke.sm,
|
8824
8797
|
outlineStyle: "solid",
|
8825
|
-
backgroundColor: "core.surface",
|
8826
8798
|
_hover: {
|
8827
8799
|
outlineColor: "core.outline.hover",
|
8828
8800
|
outlineWidth: tokens23__default.size.stroke.md,
|
@@ -8998,8 +8970,7 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
8998
8970
|
outlineColor: "outline.focus"
|
8999
8971
|
},
|
9000
8972
|
_active: {
|
9001
|
-
backgroundColor: "ghost.surface.active"
|
9002
|
-
color: "green"
|
8973
|
+
backgroundColor: "ghost.surface.active"
|
9003
8974
|
},
|
9004
8975
|
_highlighted: {
|
9005
8976
|
_active: {
|
@@ -9276,9 +9247,8 @@ var switchSlotRecipe = defineSlotRecipe({
|
|
9276
9247
|
height: "var(--switch-height)",
|
9277
9248
|
transitionProperty: "common",
|
9278
9249
|
transitionDuration: "fast",
|
9279
|
-
outline: "
|
9280
|
-
outlineColor: "core.outline
|
9281
|
-
backgroundColor: "core.background",
|
9250
|
+
outline: "2px solid",
|
9251
|
+
outlineColor: "core.outline",
|
9282
9252
|
_hover: {
|
9283
9253
|
outline: "2px solid",
|
9284
9254
|
outlineColor: "core.outline.hover",
|
@@ -9302,7 +9272,6 @@ var switchSlotRecipe = defineSlotRecipe({
|
|
9302
9272
|
},
|
9303
9273
|
_disabled: {
|
9304
9274
|
pointerEvents: "none",
|
9305
|
-
backgroundColor: "core.disabled",
|
9306
9275
|
outlineColor: "outline.disabled",
|
9307
9276
|
_checked: {
|
9308
9277
|
backgroundColor: "icon.disabled",
|
@@ -9405,7 +9374,6 @@ var tableSlotRecipe = defineSlotRecipe({
|
|
9405
9374
|
backgroundColor: "bg"
|
9406
9375
|
},
|
9407
9376
|
columnHeader: {
|
9408
|
-
color: "brand.text.inverted",
|
9409
9377
|
backgroundColor: "surface.disabled",
|
9410
9378
|
_hover: {
|
9411
9379
|
backgroundColor: "surface.disabled"
|
@@ -9607,7 +9575,6 @@ var tabsSlotRecipe = defineSlotRecipe({
|
|
9607
9575
|
variant: {
|
9608
9576
|
core: {
|
9609
9577
|
list: {
|
9610
|
-
backgroundColor: "core.surface",
|
9611
9578
|
color: "core.text",
|
9612
9579
|
border: "sm"
|
9613
9580
|
},
|
@@ -9617,7 +9584,7 @@ var tabsSlotRecipe = defineSlotRecipe({
|
|
9617
9584
|
borderColor: "transparent",
|
9618
9585
|
_hover: {
|
9619
9586
|
outline: "2px solid",
|
9620
|
-
outlineColor: "core.
|
9587
|
+
outlineColor: "core.outline.hover",
|
9621
9588
|
outlineOffset: "-2px"
|
9622
9589
|
},
|
9623
9590
|
_active: {
|
@@ -9634,7 +9601,7 @@ var tabsSlotRecipe = defineSlotRecipe({
|
|
9634
9601
|
},
|
9635
9602
|
_disabled: {
|
9636
9603
|
backgroundColor: "surface.disabled",
|
9637
|
-
color: "
|
9604
|
+
color: "surface.disabled"
|
9638
9605
|
}
|
9639
9606
|
}
|
9640
9607
|
},
|
@@ -9647,7 +9614,7 @@ var tabsSlotRecipe = defineSlotRecipe({
|
|
9647
9614
|
color: "accent.text",
|
9648
9615
|
_disabled: {
|
9649
9616
|
backgroundColor: "surface.disabled",
|
9650
|
-
color: "
|
9617
|
+
color: "icon.disabled"
|
9651
9618
|
},
|
9652
9619
|
_hover: {
|
9653
9620
|
backgroundColor: "accent.surface.hover",
|
@@ -9740,22 +9707,13 @@ var toastSlotRecipe = defineSlotRecipe({
|
|
9740
9707
|
boxShadow: "xl",
|
9741
9708
|
color: "text",
|
9742
9709
|
"&[data-type=success]": {
|
9743
|
-
backgroundColor: "alert.success.surface"
|
9744
|
-
"& svg": {
|
9745
|
-
color: "primaryGreen"
|
9746
|
-
}
|
9710
|
+
backgroundColor: "alert.success.surface"
|
9747
9711
|
},
|
9748
9712
|
"&[data-type=error]": {
|
9749
|
-
backgroundColor: "alert.error.surface"
|
9750
|
-
"& svg": {
|
9751
|
-
color: "brightRed"
|
9752
|
-
}
|
9713
|
+
backgroundColor: "alert.error.surface"
|
9753
9714
|
},
|
9754
9715
|
"&[data-type=info]": {
|
9755
|
-
backgroundColor: "alert.info.surface"
|
9756
|
-
"& svg": {
|
9757
|
-
color: "darkBlue"
|
9758
|
-
}
|
9716
|
+
backgroundColor: "alert.info.surface"
|
9759
9717
|
}
|
9760
9718
|
},
|
9761
9719
|
title: {
|