@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.
- package/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +20 -29
- package/dist/index.cjs +185 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -41
- package/dist/index.d.ts +10 -41
- package/dist/index.mjs +185 -231
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -4
- package/src/alert/ServiceAlert.tsx +2 -2
- package/src/datepicker/DateField.tsx +6 -2
- package/src/datepicker/TimeField.tsx +2 -6
- package/src/dialog/Drawer.tsx +2 -2
- package/src/input/ListBox.tsx +16 -3
- package/src/input/PhoneNumberInput.tsx +31 -40
- package/src/input/Switch.tsx +1 -1
- 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/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 +3 -3
- package/src/theme/slot-recipes/checkbox.ts +2 -3
- package/src/theme/slot-recipes/choice-chip.ts +7 -7
- 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 +8 -18
- package/src/theme/slot-recipes/switch.ts +3 -5
- 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.cjs
CHANGED
@@ -248,7 +248,8 @@ var DarkFullScreenLoader = ({
|
|
248
248
|
react.Center,
|
249
249
|
{
|
250
250
|
height: "100%",
|
251
|
-
background: "
|
251
|
+
background: "bg",
|
252
|
+
className: "dark",
|
252
253
|
role: "status",
|
253
254
|
"aria-live": "polite",
|
254
255
|
...props,
|
@@ -288,40 +289,20 @@ var LightFullScreenLoader = ({
|
|
288
289
|
maxWidth,
|
289
290
|
...props
|
290
291
|
}) => {
|
291
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
292
|
-
react.
|
293
|
-
{
|
294
|
-
|
295
|
-
background: "white",
|
296
|
-
role: "status",
|
297
|
-
"aria-live": "polite",
|
298
|
-
...props,
|
299
|
-
children: [
|
300
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.fullScreenLoaderBlackData }) }) }),
|
301
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
|
302
|
-
]
|
303
|
-
}
|
304
|
-
);
|
292
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { height: "100%", role: "status", "aria-live": "polite", ...props, children: [
|
293
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.fullScreenLoaderBlackData }) }) }),
|
294
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
|
295
|
+
] });
|
305
296
|
};
|
306
297
|
var LightInlineLoader = ({
|
307
298
|
width,
|
308
299
|
maxWidth,
|
309
300
|
...props
|
310
301
|
}) => {
|
311
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
312
|
-
react.
|
313
|
-
{
|
314
|
-
|
315
|
-
background: "white",
|
316
|
-
role: "status",
|
317
|
-
"aria-live": "polite",
|
318
|
-
...props,
|
319
|
-
children: [
|
320
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderLightData }) }) }),
|
321
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
|
322
|
-
]
|
323
|
-
}
|
324
|
-
);
|
302
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { height: "100%", role: "status", "aria-live": "polite", ...props, children: [
|
303
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderLightData }) }) }),
|
304
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
|
305
|
+
] });
|
325
306
|
};
|
326
307
|
var LightSpinner = ({
|
327
308
|
children,
|
@@ -699,7 +680,7 @@ var badgeRecipie = react.defineRecipe({
|
|
699
680
|
backgroundColor: "surface.color.orange",
|
700
681
|
color: "alert.error.text.secondary",
|
701
682
|
"& svg": {
|
702
|
-
color: "alert.error.icon
|
683
|
+
color: "alert.error-secondary.icon"
|
703
684
|
}
|
704
685
|
},
|
705
686
|
red: {
|
@@ -1246,11 +1227,11 @@ var ServiceAlert = React27.forwardRef(
|
|
1246
1227
|
]
|
1247
1228
|
}
|
1248
1229
|
) }),
|
1249
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemContent, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(react.Stack, { flexDirection: "row",
|
1230
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemContent, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(react.Stack, { flexDirection: "row", width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
|
1250
1231
|
react.Accordion.ItemBody,
|
1251
1232
|
{
|
1252
1233
|
as: react.Stack,
|
1253
|
-
|
1234
|
+
width: contentWidth,
|
1254
1235
|
css: styles.itemBody,
|
1255
1236
|
children
|
1256
1237
|
}
|
@@ -1845,7 +1826,11 @@ var DateField = React27.forwardRef(
|
|
1845
1826
|
css: styles.inputLabel,
|
1846
1827
|
position: "absolute",
|
1847
1828
|
paddingTop: "2px",
|
1848
|
-
children: /* @__PURE__ */ jsxRuntime.
|
1829
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Label, { padding: "0", fontSize: "2xs", ...props.labelProps, children: [
|
1830
|
+
props.label,
|
1831
|
+
" ",
|
1832
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Field.RequiredIndicator, {})
|
1833
|
+
] })
|
1849
1834
|
}
|
1850
1835
|
),
|
1851
1836
|
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
@@ -2188,14 +2173,7 @@ var TimeField = ({ state, ...props }) => {
|
|
2188
2173
|
children: props.label
|
2189
2174
|
}
|
2190
2175
|
),
|
2191
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment) => /* @__PURE__ */ jsxRuntime.jsx(
|
2192
|
-
DateTimeSegment,
|
2193
|
-
{
|
2194
|
-
segment,
|
2195
|
-
state
|
2196
|
-
},
|
2197
|
-
JSON.stringify(segment)
|
2198
|
-
)) }),
|
2176
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsxRuntime.jsx(DateTimeSegment, { segment, state }, index)) }),
|
2199
2177
|
/* @__PURE__ */ jsxRuntime.jsx(
|
2200
2178
|
"input",
|
2201
2179
|
{
|
@@ -2405,7 +2383,7 @@ var CloseDrawerLine = React27.forwardRef((props, ref) => {
|
|
2405
2383
|
top: 0,
|
2406
2384
|
marginY: 2,
|
2407
2385
|
marginX: "auto",
|
2408
|
-
backgroundColor: "
|
2386
|
+
backgroundColor: "floating.outline.active",
|
2409
2387
|
borderRadius: "xs",
|
2410
2388
|
...props,
|
2411
2389
|
ref
|
@@ -2882,6 +2860,7 @@ var ListBox = (props) => {
|
|
2882
2860
|
css: styles.root,
|
2883
2861
|
"aria-busy": loading,
|
2884
2862
|
maxWidth,
|
2863
|
+
padding: "1",
|
2885
2864
|
children: [
|
2886
2865
|
state.collection.size === 0 && props.emptyContent,
|
2887
2866
|
[...state.collection].map(
|
@@ -2939,7 +2918,18 @@ function Option({ item, state }) {
|
|
2939
2918
|
{ passive: false, once: true }
|
2940
2919
|
);
|
2941
2920
|
}, []);
|
2942
|
-
return /* @__PURE__ */ jsxRuntime.jsx(OptionContext.Provider, { value: { labelProps, descriptionProps }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
2921
|
+
return /* @__PURE__ */ jsxRuntime.jsx(OptionContext.Provider, { value: { labelProps, descriptionProps }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
2922
|
+
react.ListItem,
|
2923
|
+
{
|
2924
|
+
...optionProps,
|
2925
|
+
...dataFields,
|
2926
|
+
ref,
|
2927
|
+
css: styles.item,
|
2928
|
+
padding: "1",
|
2929
|
+
marginX: "0",
|
2930
|
+
children: item.rendered
|
2931
|
+
}
|
2932
|
+
) });
|
2943
2933
|
}
|
2944
2934
|
var OptionContext = React27__namespace.default.createContext({
|
2945
2935
|
labelProps: {},
|
@@ -2956,25 +2946,34 @@ function ListBoxSection({ section, state }) {
|
|
2956
2946
|
});
|
2957
2947
|
const isFirstSection = section.key === state.collection.getFirstKey();
|
2958
2948
|
const titleColor = useColorModeValue("darkGrey", "white");
|
2959
|
-
return /* @__PURE__ */ jsxRuntime.jsx(List, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
2960
|
-
|
2961
|
-
|
2962
|
-
|
2963
|
-
|
2964
|
-
|
2965
|
-
|
2966
|
-
|
2967
|
-
|
2968
|
-
|
2969
|
-
|
2970
|
-
|
2971
|
-
|
2972
|
-
|
2973
|
-
|
2974
|
-
|
2975
|
-
|
2976
|
-
|
2977
|
-
|
2949
|
+
return /* @__PURE__ */ jsxRuntime.jsx(List, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
2950
|
+
react.ListItem,
|
2951
|
+
{
|
2952
|
+
...itemProps,
|
2953
|
+
listStyleType: "none",
|
2954
|
+
marginLeft: "0",
|
2955
|
+
paddingX: "1",
|
2956
|
+
children: [
|
2957
|
+
section.rendered && /* @__PURE__ */ jsxRuntime.jsx(
|
2958
|
+
react.Box,
|
2959
|
+
{
|
2960
|
+
fontSize: "mobile.xs",
|
2961
|
+
color: titleColor,
|
2962
|
+
paddingTop: 1,
|
2963
|
+
marginTop: isFirstSection ? 0 : 2,
|
2964
|
+
marginLeft: "1",
|
2965
|
+
textTransform: "uppercase",
|
2966
|
+
fontWeight: "bold",
|
2967
|
+
...headingProps,
|
2968
|
+
children: section.rendered
|
2969
|
+
}
|
2970
|
+
),
|
2971
|
+
/* @__PURE__ */ jsxRuntime.jsx(List, { ...groupProps, padding: 0, listStyleType: "none", children: [...((_b4 = (_a5 = state.collection).getChildren) == null ? void 0 : _b4.call(_a5, section.key)) ?? []].map(
|
2972
|
+
(item) => /* @__PURE__ */ jsxRuntime.jsx(Option, { item, state }, item.key)
|
2973
|
+
) })
|
2974
|
+
]
|
2975
|
+
}
|
2976
|
+
) });
|
2978
2977
|
}
|
2979
2978
|
var NativeSelect = React27__namespace.forwardRef(function NativeSelect2(props, ref) {
|
2980
2979
|
const {
|
@@ -3366,54 +3365,43 @@ var PhoneNumberInput = React27.forwardRef((props, ref) => {
|
|
3366
3365
|
nationalNumber: value.nationalNumber
|
3367
3366
|
});
|
3368
3367
|
};
|
3369
|
-
return /* @__PURE__ */ jsxRuntime.
|
3370
|
-
|
3371
|
-
|
3372
|
-
|
3373
|
-
|
3374
|
-
|
3375
|
-
|
3376
|
-
|
3377
|
-
|
3378
|
-
|
3379
|
-
|
3380
|
-
|
3381
|
-
|
3382
|
-
|
3383
|
-
|
3384
|
-
|
3385
|
-
|
3386
|
-
|
3387
|
-
|
3388
|
-
|
3389
|
-
|
3390
|
-
|
3391
|
-
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3395
|
-
|
3396
|
-
|
3397
|
-
|
3398
|
-
|
3399
|
-
|
3400
|
-
|
3401
|
-
|
3402
|
-
|
3403
|
-
|
3404
|
-
|
3405
|
-
|
3406
|
-
nationalNumber: strippedValue
|
3407
|
-
});
|
3408
|
-
},
|
3409
|
-
variant,
|
3410
|
-
"data-state": "on",
|
3411
|
-
label
|
3412
|
-
}
|
3413
|
-
)
|
3414
|
-
] })
|
3415
|
-
}
|
3416
|
-
);
|
3368
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(AttachedInputs, { display: "grid", gridTemplateColumns: "1fr 10fr", children: [
|
3369
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
3370
|
+
CountryCodeSelect,
|
3371
|
+
{
|
3372
|
+
value: [value.countryCode],
|
3373
|
+
onValueChange: handleCountryCodeChange,
|
3374
|
+
height: "100%",
|
3375
|
+
width: "6.25rem",
|
3376
|
+
variant,
|
3377
|
+
allowedCountryCodes,
|
3378
|
+
"data-state": "on",
|
3379
|
+
invalid
|
3380
|
+
}
|
3381
|
+
),
|
3382
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
3383
|
+
Input,
|
3384
|
+
{
|
3385
|
+
ref,
|
3386
|
+
type: "tel",
|
3387
|
+
...props,
|
3388
|
+
value: value.nationalNumber,
|
3389
|
+
invalid,
|
3390
|
+
errorText,
|
3391
|
+
onChange: (e) => {
|
3392
|
+
const target = e.target;
|
3393
|
+
const strippedValue = target.value.replaceAll(/[^\d\s-]/g, "");
|
3394
|
+
onChange({
|
3395
|
+
countryCode: value.countryCode,
|
3396
|
+
nationalNumber: strippedValue
|
3397
|
+
});
|
3398
|
+
},
|
3399
|
+
variant,
|
3400
|
+
"data-state": "on",
|
3401
|
+
label
|
3402
|
+
}
|
3403
|
+
)
|
3404
|
+
] });
|
3417
3405
|
});
|
3418
3406
|
PhoneNumberInput.displayName = "PhoneNumberInput";
|
3419
3407
|
var texts16 = createTexts({
|
@@ -3651,9 +3639,9 @@ var Switch = React27.forwardRef(
|
|
3651
3639
|
checked: props.checked,
|
3652
3640
|
css: styles.root,
|
3653
3641
|
children: [
|
3654
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Switch.Label, { children: label }),
|
3655
3642
|
/* @__PURE__ */ jsxRuntime.jsx(react.Switch.HiddenInput, { ref }),
|
3656
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Switch.Control, { css: styles.control, children: /* @__PURE__ */ jsxRuntime.jsx(react.Switch.Thumb, {}) })
|
3643
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Switch.Control, { css: styles.control, children: /* @__PURE__ */ jsxRuntime.jsx(react.Switch.Thumb, {}) }),
|
3644
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Switch.Label, { children: label })
|
3657
3645
|
]
|
3658
3646
|
}
|
3659
3647
|
)
|
@@ -3785,6 +3773,28 @@ var StaticCard = React27.forwardRef(
|
|
3785
3773
|
}
|
3786
3774
|
);
|
3787
3775
|
StaticCard.displayName = "StaticCard";
|
3776
|
+
|
3777
|
+
// ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
3778
|
+
function r(e) {
|
3779
|
+
var t, f, n = "";
|
3780
|
+
if ("string" == typeof e || "number" == typeof e)
|
3781
|
+
n += e;
|
3782
|
+
else if ("object" == typeof e)
|
3783
|
+
if (Array.isArray(e)) {
|
3784
|
+
var o = e.length;
|
3785
|
+
for (t = 0; t < o; t++)
|
3786
|
+
e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
3787
|
+
} else
|
3788
|
+
for (f in e)
|
3789
|
+
e[f] && (n && (n += " "), n += f);
|
3790
|
+
return n;
|
3791
|
+
}
|
3792
|
+
function clsx() {
|
3793
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++)
|
3794
|
+
(e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
3795
|
+
return n;
|
3796
|
+
}
|
3797
|
+
var clsx_default = clsx;
|
3788
3798
|
var icons = {
|
3789
3799
|
"local-train": {
|
3790
3800
|
sm: sporIconReact.TrainFill18Icon,
|
@@ -3851,9 +3861,9 @@ var LineIcon = React27.forwardRef(
|
|
3851
3861
|
return variant === "walk" && target === "travelTag" ? 0 : 0.5;
|
3852
3862
|
};
|
3853
3863
|
const Icon3 = getCorrectIcon({
|
3854
|
-
variant:
|
3855
|
-
// eslint-disable-next-line
|
3856
|
-
variant === "custom" ? "local-train" : variant
|
3864
|
+
variant: (
|
3865
|
+
// eslint-disable-next-line no-nested-ternary
|
3866
|
+
variant === "custom" && "customIconVariant" in rest ? rest.customIconVariant : variant === "custom" ? "local-train" : variant
|
3857
3867
|
),
|
3858
3868
|
size
|
3859
3869
|
});
|
@@ -3872,6 +3882,7 @@ var LineIcon = React27.forwardRef(
|
|
3872
3882
|
borderColor: variant === "walk" ? "core.outline" : "transparent",
|
3873
3883
|
"aria-label": label,
|
3874
3884
|
ref,
|
3885
|
+
className: clsx_default("light", rest.className),
|
3875
3886
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon3, { css: styles.icon })
|
3876
3887
|
}
|
3877
3888
|
);
|
@@ -3932,8 +3943,8 @@ var TravelTag = React27.forwardRef(
|
|
3932
3943
|
css: styles.container,
|
3933
3944
|
"aria-disabled": disabled,
|
3934
3945
|
ref,
|
3946
|
+
className: clsx_default("light", rest.className),
|
3935
3947
|
...rest,
|
3936
|
-
backgroundColor: disabled ? "surface.disabled" : backgroundColor,
|
3937
3948
|
children: [
|
3938
3949
|
/* @__PURE__ */ jsxRuntime.jsx(
|
3939
3950
|
LineIcon,
|
@@ -5085,7 +5096,7 @@ var createToast = ({
|
|
5085
5096
|
text,
|
5086
5097
|
variant,
|
5087
5098
|
id,
|
5088
|
-
duration =
|
5099
|
+
duration = 6e5
|
5089
5100
|
}) => toaster.create({
|
5090
5101
|
description: text,
|
5091
5102
|
type: variant,
|
@@ -5515,12 +5526,12 @@ var closeButtonRecipe = react.defineRecipe({
|
|
5515
5526
|
transitionDuration: "normal",
|
5516
5527
|
borderRadius: "md",
|
5517
5528
|
backgroundColor: "transparent",
|
5518
|
-
color: "
|
5529
|
+
color: "text",
|
5519
5530
|
fontWeight: "normal",
|
5520
5531
|
_hover: {
|
5521
5532
|
background: "ghost.surface.hover",
|
5522
5533
|
_disabled: {
|
5523
|
-
color: "
|
5534
|
+
color: "icon.disabled"
|
5524
5535
|
},
|
5525
5536
|
_active: {
|
5526
5537
|
background: "ghost.surface.active"
|
@@ -5678,17 +5689,17 @@ var linkRecipe = react.defineRecipe({
|
|
5678
5689
|
primary: {
|
5679
5690
|
color: "core.text",
|
5680
5691
|
_hover: {
|
5681
|
-
color: "text
|
5692
|
+
color: "text",
|
5682
5693
|
_active: {
|
5683
5694
|
color: "text.disabled"
|
5684
5695
|
}
|
5685
5696
|
}
|
5686
5697
|
},
|
5687
5698
|
secondary: {
|
5688
|
-
color: "text.
|
5699
|
+
color: "text.highlight",
|
5689
5700
|
padding: "2px",
|
5690
5701
|
_hover: {
|
5691
|
-
color: "text.
|
5702
|
+
color: "text.highlight",
|
5692
5703
|
_active: {
|
5693
5704
|
color: "text.disabled"
|
5694
5705
|
}
|
@@ -5772,7 +5783,6 @@ var pressableCardRecipe = react.defineRecipe({
|
|
5772
5783
|
outlineColor: "core.outline",
|
5773
5784
|
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
5774
5785
|
outlineStyle: "solid",
|
5775
|
-
backgroundColor: "core.surface",
|
5776
5786
|
_hover: {
|
5777
5787
|
outlineColor: "core.outline.hover",
|
5778
5788
|
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
@@ -5930,7 +5940,7 @@ var skeletonRecipe = react.defineRecipe({
|
|
5930
5940
|
},
|
5931
5941
|
none: {
|
5932
5942
|
animation: "none",
|
5933
|
-
background: "
|
5943
|
+
background: "surface.color.grey"
|
5934
5944
|
}
|
5935
5945
|
}
|
5936
5946
|
}
|
@@ -6683,7 +6693,7 @@ var alertServiceSlotRecipe = react.defineSlotRecipe({
|
|
6683
6693
|
backgroundColor: "alert.service.surface.active"
|
6684
6694
|
},
|
6685
6695
|
_icon: {
|
6686
|
-
color: "
|
6696
|
+
color: "text"
|
6687
6697
|
}
|
6688
6698
|
},
|
6689
6699
|
itemTriggerTitle: {
|
@@ -6695,13 +6705,13 @@ var alertServiceSlotRecipe = react.defineSlotRecipe({
|
|
6695
6705
|
textWrap: "nowrap"
|
6696
6706
|
},
|
6697
6707
|
itemBody: {
|
6698
|
-
|
6708
|
+
marginX: "auto",
|
6709
|
+
padding: "0 !important",
|
6699
6710
|
paddingBottom: ["0.5", null, null, "1"],
|
6700
6711
|
color: "text.inverted",
|
6701
6712
|
"& > p": {
|
6702
6713
|
gap: 2,
|
6703
6714
|
width: "full",
|
6704
|
-
justifyContent: "center",
|
6705
6715
|
borderBottom: "1px dashed",
|
6706
6716
|
borderColor: "outline.inverted",
|
6707
6717
|
paddingBottom: "3",
|
@@ -6789,7 +6799,6 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
6789
6799
|
indicator: {
|
6790
6800
|
width: "100%",
|
6791
6801
|
height: "100%",
|
6792
|
-
borderColor: "white",
|
6793
6802
|
marginTop: -1,
|
6794
6803
|
transform: "scale(1)",
|
6795
6804
|
opacity: 0,
|
@@ -6820,8 +6829,8 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
6820
6829
|
borderColor: "currentColor"
|
6821
6830
|
},
|
6822
6831
|
_invalid: {
|
6823
|
-
backgroundColor: "
|
6824
|
-
borderColor: "
|
6832
|
+
backgroundColor: "outline.error",
|
6833
|
+
borderColor: "outline.error"
|
6825
6834
|
}
|
6826
6835
|
},
|
6827
6836
|
_disabled: {
|
@@ -6861,7 +6870,7 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
6861
6870
|
paddingInlineStart: "2",
|
6862
6871
|
paddingInlineEnd: "2",
|
6863
6872
|
outline: "1px solid",
|
6864
|
-
outlineColor: "
|
6873
|
+
outlineColor: "core.outline",
|
6865
6874
|
_checked: {
|
6866
6875
|
backgroundColor: "brand.surface",
|
6867
6876
|
borderRadius: "sm",
|
@@ -6886,19 +6895,19 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
|
|
6886
6895
|
color: "text.disabled",
|
6887
6896
|
outline: "none",
|
6888
6897
|
_hover: {
|
6889
|
-
backgroundColor: "
|
6898
|
+
backgroundColor: "surface.disabled",
|
6890
6899
|
boxShadow: "none",
|
6891
|
-
color: "
|
6900
|
+
color: "text.disabled"
|
6892
6901
|
},
|
6893
6902
|
_checked: {
|
6894
6903
|
cursor: "not-allowed",
|
6895
6904
|
boxShadow: "none",
|
6896
|
-
color: "
|
6897
|
-
backgroundColor: "
|
6905
|
+
color: "text.disabled",
|
6906
|
+
backgroundColor: "surface.disabled",
|
6898
6907
|
_hover: {
|
6899
|
-
backgroundColor: "
|
6908
|
+
backgroundColor: "surface.disabled",
|
6900
6909
|
boxShadow: "none",
|
6901
|
-
color: "
|
6910
|
+
color: "text.disabled"
|
6902
6911
|
}
|
6903
6912
|
}
|
6904
6913
|
}
|
@@ -7062,7 +7071,7 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
|
|
7062
7071
|
dateTimeSegment: {
|
7063
7072
|
_focus: {
|
7064
7073
|
backgroundColor: "ghost.surface.active",
|
7065
|
-
color: "text
|
7074
|
+
color: "text"
|
7066
7075
|
}
|
7067
7076
|
},
|
7068
7077
|
box: {
|
@@ -7170,7 +7179,6 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
|
|
7170
7179
|
wrapper: {
|
7171
7180
|
outline: "1px solid",
|
7172
7181
|
outlineColor: "core.outline",
|
7173
|
-
backgroundColor: "core.surface",
|
7174
7182
|
_hover: {
|
7175
7183
|
outline: "2px solid",
|
7176
7184
|
outlineColor: "core.outline.hover",
|
@@ -7238,6 +7246,7 @@ var dialogSlotRecipe = react.defineSlotRecipe({
|
|
7238
7246
|
className: "spor-dialog",
|
7239
7247
|
base: {
|
7240
7248
|
backdrop: {
|
7249
|
+
// eslint-disable-next-line spor/use-semantic-tokens
|
7241
7250
|
background: "blackAlpha.500",
|
7242
7251
|
position: "fixed",
|
7243
7252
|
left: 0,
|
@@ -7458,6 +7467,7 @@ var drawerSlotRecipe = react.defineSlotRecipe({
|
|
7458
7467
|
className: "spor-drawer",
|
7459
7468
|
base: {
|
7460
7469
|
backdrop: {
|
7470
|
+
// eslint-disable-next-line spor/use-semantic-tokens
|
7461
7471
|
bg: "blackAlpha.500",
|
7462
7472
|
position: "fixed",
|
7463
7473
|
insetInlineStart: 0,
|
@@ -7663,6 +7673,7 @@ var fieldSlotRecipe = react.defineSlotRecipe({
|
|
7663
7673
|
},
|
7664
7674
|
requiredIndicator: {
|
7665
7675
|
marginStart: 1,
|
7676
|
+
// eslint-disable-next-line spor/use-semantic-tokens
|
7666
7677
|
color: "brightRed"
|
7667
7678
|
},
|
7668
7679
|
label: {
|
@@ -7676,8 +7687,8 @@ var fieldSlotRecipe = react.defineSlotRecipe({
|
|
7676
7687
|
},
|
7677
7688
|
errorText: {
|
7678
7689
|
borderRadius: "xs",
|
7679
|
-
backgroundColor: "
|
7680
|
-
color: "
|
7690
|
+
backgroundColor: "alert.error.surface",
|
7691
|
+
color: "text",
|
7681
7692
|
paddingX: 1.5,
|
7682
7693
|
paddingY: 1,
|
7683
7694
|
textStyle: "xs",
|
@@ -7694,7 +7705,7 @@ var fieldSlotRecipe = react.defineSlotRecipe({
|
|
7694
7705
|
left: "1em",
|
7695
7706
|
width: "0.5rem",
|
7696
7707
|
height: "0.5rem",
|
7697
|
-
backgroundColor: "
|
7708
|
+
backgroundColor: "alert.error.surface",
|
7698
7709
|
transform: "translateY(-50%) rotate(45deg)",
|
7699
7710
|
pointerEvents: "none"
|
7700
7711
|
}
|
@@ -7774,7 +7785,7 @@ var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
|
|
7774
7785
|
_hover: {
|
7775
7786
|
backgroundColor: "transparent",
|
7776
7787
|
outline: "2px solid",
|
7777
|
-
outlineColor: "core.outline
|
7788
|
+
outlineColor: "core.outline",
|
7778
7789
|
_active: {
|
7779
7790
|
outline: "1px solid",
|
7780
7791
|
outlineColor: "core.outline",
|
@@ -7837,6 +7848,9 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
|
|
7837
7848
|
display: "flex",
|
7838
7849
|
alignItems: "center",
|
7839
7850
|
padding: 0.5,
|
7851
|
+
_disabled: {
|
7852
|
+
background: "surface.disabled"
|
7853
|
+
},
|
7840
7854
|
width: "fit-content",
|
7841
7855
|
transitionDuration: "fast",
|
7842
7856
|
transitionProperty: "common",
|
@@ -7852,13 +7866,13 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
|
|
7852
7866
|
}
|
7853
7867
|
},
|
7854
7868
|
textContainer: {
|
7855
|
-
color: "
|
7869
|
+
color: "text",
|
7856
7870
|
paddingRight: 0.5,
|
7857
7871
|
whiteSpace: "nowrap"
|
7858
7872
|
},
|
7859
7873
|
title: {
|
7860
7874
|
fontWeight: "bold",
|
7861
|
-
color: "
|
7875
|
+
color: "text",
|
7862
7876
|
"[aria-disabled=true] &": {
|
7863
7877
|
color: "text.disabled"
|
7864
7878
|
}
|
@@ -7882,24 +7896,21 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
|
|
7882
7896
|
critical: {
|
7883
7897
|
container: {
|
7884
7898
|
border: "1px solid",
|
7885
|
-
borderColor: "error
|
7899
|
+
borderColor: "outline.error"
|
7886
7900
|
},
|
7887
7901
|
deviationIcon: {
|
7888
|
-
color: "
|
7902
|
+
color: "outline.error"
|
7889
7903
|
}
|
7890
7904
|
},
|
7891
7905
|
major: {
|
7892
7906
|
container: {
|
7893
7907
|
border: "1px solid",
|
7908
|
+
// eslint-disable-next-line spor/use-semantic-tokens
|
7894
7909
|
borderColor: "golden"
|
7895
7910
|
}
|
7896
7911
|
},
|
7897
7912
|
minor: {},
|
7898
|
-
info: {
|
7899
|
-
deviationIcon: {
|
7900
|
-
color: "ocean"
|
7901
|
-
}
|
7902
|
-
},
|
7913
|
+
info: {},
|
7903
7914
|
none: {}
|
7904
7915
|
},
|
7905
7916
|
variant: {
|
@@ -8090,22 +8101,13 @@ var lineIconSlotRecipe = react.defineSlotRecipe({
|
|
8090
8101
|
iconContainer: {
|
8091
8102
|
display: "flex",
|
8092
8103
|
justifyContent: "center",
|
8093
|
-
alignItems: "center"
|
8094
|
-
"[aria-disabled=true] &": {
|
8095
|
-
backgroundColor: "surface.disabled"
|
8096
|
-
}
|
8104
|
+
alignItems: "center"
|
8097
8105
|
},
|
8098
8106
|
icon: {
|
8099
|
-
color: "
|
8100
|
-
"[aria-disabled=true] &": {
|
8101
|
-
color: "icon.disabled"
|
8102
|
-
}
|
8107
|
+
color: "bg"
|
8103
8108
|
},
|
8104
8109
|
title: {
|
8105
|
-
color: "
|
8106
|
-
"[aria-disabled=true] &": {
|
8107
|
-
color: "text.disabled"
|
8108
|
-
}
|
8110
|
+
color: "text"
|
8109
8111
|
}
|
8110
8112
|
},
|
8111
8113
|
variants: {
|
@@ -8163,39 +8165,15 @@ var lineIconSlotRecipe = react.defineSlotRecipe({
|
|
8163
8165
|
"alt-transport": {
|
8164
8166
|
iconContainer: {
|
8165
8167
|
backgroundColor: "linjetag.altTransport"
|
8166
|
-
},
|
8167
|
-
icon: {
|
8168
|
-
color: "darkGrey",
|
8169
|
-
"[aria-disabled=true] &": {
|
8170
|
-
color: "white"
|
8171
|
-
}
|
8172
8168
|
}
|
8173
8169
|
},
|
8174
8170
|
walk: {
|
8175
8171
|
title: {
|
8176
8172
|
color: "text"
|
8177
|
-
},
|
8178
|
-
icon: {
|
8179
|
-
color: "linjetag.walkLight",
|
8180
|
-
"[aria-disabled=true] &": {
|
8181
|
-
color: "icon.disabled"
|
8182
|
-
}
|
8183
|
-
},
|
8184
|
-
_disabled: {
|
8185
|
-
icon: {
|
8186
|
-
color: "text.disabled"
|
8187
|
-
},
|
8188
|
-
title: {
|
8189
|
-
color: "text.disabled"
|
8190
|
-
}
|
8191
8173
|
}
|
8192
8174
|
},
|
8193
8175
|
custom: {
|
8194
|
-
iconContainer: {
|
8195
|
-
_disabled: {
|
8196
|
-
backgroundColor: "surface.disabled"
|
8197
|
-
}
|
8198
|
-
}
|
8176
|
+
iconContainer: {}
|
8199
8177
|
}
|
8200
8178
|
},
|
8201
8179
|
size: {
|
@@ -8844,7 +8822,6 @@ var radioCardSlotRecipe = react.defineSlotRecipe({
|
|
8844
8822
|
outlineColor: "core.outline",
|
8845
8823
|
outlineWidth: tokens23__namespace.default.size.stroke.sm,
|
8846
8824
|
outlineStyle: "solid",
|
8847
|
-
backgroundColor: "core.surface",
|
8848
8825
|
_hover: {
|
8849
8826
|
outlineColor: "core.outline.hover",
|
8850
8827
|
outlineWidth: tokens23__namespace.default.size.stroke.md,
|
@@ -9020,8 +8997,7 @@ var selectSlotRecipe = react.defineSlotRecipe({
|
|
9020
8997
|
outlineColor: "outline.focus"
|
9021
8998
|
},
|
9022
8999
|
_active: {
|
9023
|
-
backgroundColor: "ghost.surface.active"
|
9024
|
-
color: "green"
|
9000
|
+
backgroundColor: "ghost.surface.active"
|
9025
9001
|
},
|
9026
9002
|
_highlighted: {
|
9027
9003
|
_active: {
|
@@ -9097,29 +9073,20 @@ var selectSlotRecipe = react.defineSlotRecipe({
|
|
9097
9073
|
},
|
9098
9074
|
floating: {
|
9099
9075
|
control: {
|
9100
|
-
backgroundColor: {
|
9101
|
-
_light: "bg",
|
9102
|
-
_dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
|
9103
|
-
},
|
9104
9076
|
outline: "1px solid",
|
9105
9077
|
outlineColor: "floating.outline",
|
9106
9078
|
_hover: {
|
9107
|
-
outline: "
|
9108
|
-
outlineColor: "floating.outline
|
9109
|
-
backgroundColor: {
|
9110
|
-
_light: "floating.surface.hover",
|
9111
|
-
_dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
|
9112
|
-
}
|
9079
|
+
outline: "2px solid",
|
9080
|
+
outlineColor: "floating.outline"
|
9113
9081
|
},
|
9114
9082
|
_active: {
|
9115
|
-
|
9116
|
-
|
9117
|
-
|
9083
|
+
backgroundColor: "brand.surface.active"
|
9084
|
+
},
|
9085
|
+
_disabled: {
|
9086
|
+
pointerEvents: "none",
|
9087
|
+
color: "text.disabled",
|
9088
|
+
backgroundColor: "surface.disabled"
|
9118
9089
|
}
|
9119
|
-
},
|
9120
|
-
selectContent: {
|
9121
|
-
outline: "1px solid",
|
9122
|
-
outlineColor: "floating.outline"
|
9123
9090
|
}
|
9124
9091
|
}
|
9125
9092
|
},
|
@@ -9241,7 +9208,7 @@ var switchSlotRecipe = react.defineSlotRecipe({
|
|
9241
9208
|
base: {
|
9242
9209
|
root: {
|
9243
9210
|
display: "inline-flex",
|
9244
|
-
gap: "2
|
9211
|
+
gap: "2",
|
9245
9212
|
alignItems: "center",
|
9246
9213
|
position: "relative",
|
9247
9214
|
verticalAlign: "middle",
|
@@ -9298,9 +9265,8 @@ var switchSlotRecipe = react.defineSlotRecipe({
|
|
9298
9265
|
height: "var(--switch-height)",
|
9299
9266
|
transitionProperty: "common",
|
9300
9267
|
transitionDuration: "fast",
|
9301
|
-
outline: "
|
9302
|
-
outlineColor: "core.outline
|
9303
|
-
backgroundColor: "core.background",
|
9268
|
+
outline: "2px solid",
|
9269
|
+
outlineColor: "core.outline",
|
9304
9270
|
_hover: {
|
9305
9271
|
outline: "2px solid",
|
9306
9272
|
outlineColor: "core.outline.hover",
|
@@ -9324,7 +9290,6 @@ var switchSlotRecipe = react.defineSlotRecipe({
|
|
9324
9290
|
},
|
9325
9291
|
_disabled: {
|
9326
9292
|
pointerEvents: "none",
|
9327
|
-
backgroundColor: "core.disabled",
|
9328
9293
|
outlineColor: "outline.disabled",
|
9329
9294
|
_checked: {
|
9330
9295
|
backgroundColor: "icon.disabled",
|
@@ -9427,7 +9392,6 @@ var tableSlotRecipe = react.defineSlotRecipe({
|
|
9427
9392
|
backgroundColor: "bg"
|
9428
9393
|
},
|
9429
9394
|
columnHeader: {
|
9430
|
-
color: "brand.text.inverted",
|
9431
9395
|
backgroundColor: "surface.disabled",
|
9432
9396
|
_hover: {
|
9433
9397
|
backgroundColor: "surface.disabled"
|
@@ -9629,7 +9593,6 @@ var tabsSlotRecipe = react.defineSlotRecipe({
|
|
9629
9593
|
variant: {
|
9630
9594
|
core: {
|
9631
9595
|
list: {
|
9632
|
-
backgroundColor: "core.surface",
|
9633
9596
|
color: "core.text",
|
9634
9597
|
border: "sm"
|
9635
9598
|
},
|
@@ -9639,7 +9602,7 @@ var tabsSlotRecipe = react.defineSlotRecipe({
|
|
9639
9602
|
borderColor: "transparent",
|
9640
9603
|
_hover: {
|
9641
9604
|
outline: "2px solid",
|
9642
|
-
outlineColor: "core.
|
9605
|
+
outlineColor: "core.outline.hover",
|
9643
9606
|
outlineOffset: "-2px"
|
9644
9607
|
},
|
9645
9608
|
_active: {
|
@@ -9656,7 +9619,7 @@ var tabsSlotRecipe = react.defineSlotRecipe({
|
|
9656
9619
|
},
|
9657
9620
|
_disabled: {
|
9658
9621
|
backgroundColor: "surface.disabled",
|
9659
|
-
color: "
|
9622
|
+
color: "surface.disabled"
|
9660
9623
|
}
|
9661
9624
|
}
|
9662
9625
|
},
|
@@ -9669,7 +9632,7 @@ var tabsSlotRecipe = react.defineSlotRecipe({
|
|
9669
9632
|
color: "accent.text",
|
9670
9633
|
_disabled: {
|
9671
9634
|
backgroundColor: "surface.disabled",
|
9672
|
-
color: "
|
9635
|
+
color: "icon.disabled"
|
9673
9636
|
},
|
9674
9637
|
_hover: {
|
9675
9638
|
backgroundColor: "accent.surface.hover",
|
@@ -9762,22 +9725,13 @@ var toastSlotRecipe = react.defineSlotRecipe({
|
|
9762
9725
|
boxShadow: "xl",
|
9763
9726
|
color: "text",
|
9764
9727
|
"&[data-type=success]": {
|
9765
|
-
backgroundColor: "alert.success.surface"
|
9766
|
-
"& svg": {
|
9767
|
-
color: "primaryGreen"
|
9768
|
-
}
|
9728
|
+
backgroundColor: "alert.success.surface"
|
9769
9729
|
},
|
9770
9730
|
"&[data-type=error]": {
|
9771
|
-
backgroundColor: "alert.error.surface"
|
9772
|
-
"& svg": {
|
9773
|
-
color: "brightRed"
|
9774
|
-
}
|
9731
|
+
backgroundColor: "alert.error.surface"
|
9775
9732
|
},
|
9776
9733
|
"&[data-type=info]": {
|
9777
|
-
backgroundColor: "alert.info.surface"
|
9778
|
-
"& svg": {
|
9779
|
-
color: "darkBlue"
|
9780
|
-
}
|
9734
|
+
backgroundColor: "alert.info.surface"
|
9781
9735
|
}
|
9782
9736
|
},
|
9783
9737
|
title: {
|