@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/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vygruppen/spor-react",
|
3
3
|
"type": "module",
|
4
|
-
"version": "12.
|
4
|
+
"version": "12.10.1",
|
5
5
|
"exports": {
|
6
6
|
".": {
|
7
7
|
"types": "./dist/index.d.ts",
|
@@ -25,8 +25,8 @@
|
|
25
25
|
"dependencies": {
|
26
26
|
"@ark-ui/react": "^4.9.2",
|
27
27
|
"@chakra-ui/anatomy": "^2.3.4",
|
28
|
-
"@chakra-ui/react": "^3.24.0",
|
29
28
|
"@chakra-ui/cli": "^3.8.0",
|
29
|
+
"@chakra-ui/react": "^3.24.0",
|
30
30
|
"@chakra-ui/react-use-size": "^2.1.0",
|
31
31
|
"@chakra-ui/styled-system": "^2.12.0",
|
32
32
|
"@chakra-ui/system": "^2.6.2",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"react-stately": "^3.31.1",
|
47
47
|
"react-swipeable": "^7.0.1",
|
48
48
|
"usehooks-ts": "^3.1.0",
|
49
|
-
"@vygruppen/spor-design-tokens": "4.0.
|
49
|
+
"@vygruppen/spor-design-tokens": "4.0.8",
|
50
50
|
"@vygruppen/spor-icon-react": "4.2.1",
|
51
51
|
"@vygruppen/spor-loader": "0.7.0"
|
52
52
|
},
|
@@ -58,6 +58,7 @@
|
|
58
58
|
"@types/node": "^22.13.4",
|
59
59
|
"@types/react": "^18.3.3",
|
60
60
|
"@types/react-dom": "^18.3.0",
|
61
|
+
"clsx": "^2.1.1",
|
61
62
|
"concurrently": "^9.1.2",
|
62
63
|
"eslint": "^9.25.1",
|
63
64
|
"react": "^18.3.1",
|
@@ -67,7 +68,7 @@
|
|
67
68
|
"vitest": "^0.26.3",
|
68
69
|
"vitest-axe": "^0.1.0",
|
69
70
|
"vitest-canvas-mock": "^0.2.2",
|
70
|
-
"@vygruppen/eslint-config": "1.
|
71
|
+
"@vygruppen/eslint-config": "1.2.1",
|
71
72
|
"@vygruppen/tsconfig": "0.1.1"
|
72
73
|
},
|
73
74
|
"peerDependencies": {
|
package/src/dialog/Drawer.tsx
CHANGED
@@ -14,6 +14,7 @@ import {
|
|
14
14
|
CloseFill24Icon,
|
15
15
|
} from "@vygruppen/spor-icon-react";
|
16
16
|
import { forwardRef } from "react";
|
17
|
+
import { useSwipeable } from "react-swipeable";
|
17
18
|
|
18
19
|
import { Button, CloseButton } from "../button";
|
19
20
|
import { createTexts, useTranslation } from "../i18n";
|
@@ -22,7 +23,6 @@ import {
|
|
22
23
|
DrawerFullScreenHeaderProps,
|
23
24
|
DrawerProps,
|
24
25
|
} from "./types";
|
25
|
-
import { useSwipeable } from "react-swipeable";
|
26
26
|
|
27
27
|
/**
|
28
28
|
* A drawer is a panel that slides in from the side of the screen. It is used to display additional content without taking up too much space.
|
@@ -98,7 +98,7 @@ export const CloseDrawerLine = forwardRef<HTMLButtonElement>((props, ref) => {
|
|
98
98
|
top={0}
|
99
99
|
marginY={2}
|
100
100
|
marginX="auto"
|
101
|
-
backgroundColor="
|
101
|
+
backgroundColor="floating.outline.active"
|
102
102
|
borderRadius="xs"
|
103
103
|
{...props}
|
104
104
|
ref={ref}
|
@@ -5,6 +5,7 @@ import {
|
|
5
5
|
RecipeVariantProps,
|
6
6
|
useSlotRecipe,
|
7
7
|
} from "@chakra-ui/react";
|
8
|
+
import clsx from "clsx";
|
8
9
|
import React, { forwardRef, PropsWithChildren } from "react";
|
9
10
|
|
10
11
|
import { lineIconSlotRecipe } from "../theme/slot-recipes/line-icon";
|
@@ -90,10 +91,10 @@ export const LineIcon = forwardRef<HTMLDivElement, LineIconProps>(
|
|
90
91
|
|
91
92
|
const Icon: React.ElementType = getCorrectIcon({
|
92
93
|
variant:
|
94
|
+
// eslint-disable-next-line no-nested-ternary
|
93
95
|
variant === "custom" && "customIconVariant" in rest
|
94
96
|
? rest.customIconVariant
|
95
|
-
:
|
96
|
-
variant === "custom" //eslint rules and prettier conflict
|
97
|
+
: variant === "custom"
|
97
98
|
? "local-train"
|
98
99
|
: variant,
|
99
100
|
size,
|
@@ -116,6 +117,7 @@ export const LineIcon = forwardRef<HTMLDivElement, LineIconProps>(
|
|
116
117
|
borderColor={variant === "walk" ? "core.outline" : "transparent"}
|
117
118
|
aria-label={label}
|
118
119
|
ref={ref}
|
120
|
+
className={clsx("light", rest.className)}
|
119
121
|
>
|
120
122
|
<Icon css={styles.icon} />
|
121
123
|
</Box>
|
@@ -13,6 +13,7 @@ import {
|
|
13
13
|
WarningFill18Icon,
|
14
14
|
WarningFill24Icon,
|
15
15
|
} from "@vygruppen/spor-icon-react";
|
16
|
+
import clsx from "clsx";
|
16
17
|
import { forwardRef, PropsWithChildren } from "react";
|
17
18
|
|
18
19
|
import { travelTagSlotRecipe } from "../theme/slot-recipes/travel-tag";
|
@@ -122,8 +123,8 @@ export const TravelTag = forwardRef<HTMLDivElement, TravelTagProps>(
|
|
122
123
|
css={styles.container}
|
123
124
|
aria-disabled={disabled}
|
124
125
|
ref={ref}
|
126
|
+
className={clsx("light", rest.className)}
|
125
127
|
{...rest}
|
126
|
-
backgroundColor={disabled ? "surface.disabled" : backgroundColor}
|
127
128
|
>
|
128
129
|
<LineIcon
|
129
130
|
variant={variant}
|
@@ -13,13 +13,7 @@ export const LightFullScreenLoader = ({
|
|
13
13
|
...props
|
14
14
|
}: LightFullScreenLoaderProps) => {
|
15
15
|
return (
|
16
|
-
<Center
|
17
|
-
height="100%"
|
18
|
-
background="white"
|
19
|
-
role="status"
|
20
|
-
aria-live="polite"
|
21
|
-
{...props}
|
22
|
-
>
|
16
|
+
<Center height="100%" role="status" aria-live="polite" {...props}>
|
23
17
|
<Box width={width} maxWidth={maxWidth}>
|
24
18
|
<ClientOnly>
|
25
19
|
<Lottie animationData={fullScreenLoaderBlackData} />
|
@@ -15,13 +15,7 @@ export const LightInlineLoader = ({
|
|
15
15
|
...props
|
16
16
|
}: LightInlineLoaderProps) => {
|
17
17
|
return (
|
18
|
-
<Center
|
19
|
-
height="100%"
|
20
|
-
background="white"
|
21
|
-
role="status"
|
22
|
-
aria-live="polite"
|
23
|
-
{...props}
|
24
|
-
>
|
18
|
+
<Center height="100%" role="status" aria-live="polite" {...props}>
|
25
19
|
<Box width={width} maxWidth={maxWidth}>
|
26
20
|
<ClientOnly>
|
27
21
|
<Lottie animationData={inlineLoaderLightData} />
|
@@ -12,8 +12,18 @@ import { fontFaces } from "../theme/brand";
|
|
12
12
|
import { Toaster } from "../toast/toast";
|
13
13
|
|
14
14
|
type SporProviderProps = Omit<ChakraProviderProps, "value"> & {
|
15
|
+
/**
|
16
|
+
* The current language of your application. Used for built-in microcopy and labels. Default is Norwegian (bokmål).
|
17
|
+
*/
|
15
18
|
language?: Language;
|
19
|
+
/**
|
20
|
+
* The theme to use for colors and design tokens. If not provided, the default Spor theme is used.
|
21
|
+
*/
|
16
22
|
theme?: SystemContext;
|
23
|
+
/**
|
24
|
+
* If true, enables system color mode. If false, the default theme is light.
|
25
|
+
*/
|
26
|
+
enableSystemColorMode?: boolean;
|
17
27
|
};
|
18
28
|
|
19
29
|
/**
|
@@ -56,12 +66,13 @@ import { theme } from '../../../../apps/docs/app/features/portable-text/code-blo
|
|
56
66
|
export const SporProvider = ({
|
57
67
|
language = Language.NorwegianBokmal,
|
58
68
|
theme = system,
|
69
|
+
enableSystemColorMode = true,
|
59
70
|
children,
|
60
71
|
}: SporProviderProps) => {
|
61
72
|
return (
|
62
73
|
<LanguageProvider language={language}>
|
63
74
|
<ChakraProvider value={theme}>
|
64
|
-
<ColorModeProvider>
|
75
|
+
<ColorModeProvider enableSystem={enableSystemColorMode}>
|
65
76
|
<Toaster />
|
66
77
|
<Global styles={fontFaces} />
|
67
78
|
|
@@ -6,12 +6,12 @@ export const closeButtonRecipe = defineRecipe({
|
|
6
6
|
transitionDuration: "normal",
|
7
7
|
borderRadius: "md",
|
8
8
|
backgroundColor: "transparent",
|
9
|
-
color: "
|
9
|
+
color: "text",
|
10
10
|
fontWeight: "normal",
|
11
11
|
_hover: {
|
12
12
|
background: "ghost.surface.hover",
|
13
13
|
_disabled: {
|
14
|
-
color: "
|
14
|
+
color: "icon.disabled",
|
15
15
|
},
|
16
16
|
_active: {
|
17
17
|
background: "ghost.surface.active",
|
@@ -34,17 +34,17 @@ export const linkRecipe = defineRecipe({
|
|
34
34
|
primary: {
|
35
35
|
color: "core.text",
|
36
36
|
_hover: {
|
37
|
-
color: "text
|
37
|
+
color: "text",
|
38
38
|
_active: {
|
39
39
|
color: "text.disabled",
|
40
40
|
},
|
41
41
|
},
|
42
42
|
},
|
43
43
|
secondary: {
|
44
|
-
color: "text.
|
44
|
+
color: "text.highlight",
|
45
45
|
padding: "2px",
|
46
46
|
_hover: {
|
47
|
-
color: "text.
|
47
|
+
color: "text.highlight",
|
48
48
|
_active: {
|
49
49
|
color: "text.disabled",
|
50
50
|
},
|
@@ -25,7 +25,6 @@ export const checkboxSlotRecipe = defineSlotRecipe({
|
|
25
25
|
indicator: {
|
26
26
|
width: "100%",
|
27
27
|
height: "100%",
|
28
|
-
borderColor: "white",
|
29
28
|
marginTop: -1,
|
30
29
|
transform: "scale(1)",
|
31
30
|
opacity: 0,
|
@@ -59,8 +58,8 @@ export const checkboxSlotRecipe = defineSlotRecipe({
|
|
59
58
|
},
|
60
59
|
|
61
60
|
_invalid: {
|
62
|
-
backgroundColor: "
|
63
|
-
borderColor: "
|
61
|
+
backgroundColor: "outline.error",
|
62
|
+
borderColor: "outline.error",
|
64
63
|
},
|
65
64
|
},
|
66
65
|
_disabled: {
|
@@ -19,7 +19,7 @@ export const choiceChipSlotRecipe = defineSlotRecipe({
|
|
19
19
|
paddingInlineEnd: "2",
|
20
20
|
|
21
21
|
outline: "1px solid",
|
22
|
-
outlineColor: "
|
22
|
+
outlineColor: "core.outline",
|
23
23
|
_checked: {
|
24
24
|
backgroundColor: "brand.surface",
|
25
25
|
borderRadius: "sm",
|
@@ -47,19 +47,19 @@ export const choiceChipSlotRecipe = defineSlotRecipe({
|
|
47
47
|
outline: "none",
|
48
48
|
|
49
49
|
_hover: {
|
50
|
-
backgroundColor: "
|
50
|
+
backgroundColor: "surface.disabled",
|
51
51
|
boxShadow: "none",
|
52
|
-
color: "
|
52
|
+
color: "text.disabled",
|
53
53
|
},
|
54
54
|
_checked: {
|
55
55
|
cursor: "not-allowed",
|
56
56
|
boxShadow: "none",
|
57
|
-
color: "
|
58
|
-
backgroundColor: "
|
57
|
+
color: "text.disabled",
|
58
|
+
backgroundColor: "surface.disabled",
|
59
59
|
_hover: {
|
60
|
-
backgroundColor: "
|
60
|
+
backgroundColor: "surface.disabled",
|
61
61
|
boxShadow: "none",
|
62
|
-
color: "
|
62
|
+
color: "text.disabled",
|
63
63
|
},
|
64
64
|
},
|
65
65
|
},
|
@@ -68,7 +68,7 @@ export const choiceChipSlotRecipe = defineSlotRecipe({
|
|
68
68
|
label: {
|
69
69
|
display: "flex",
|
70
70
|
alignItems: "center",
|
71
|
-
|
71
|
+
gap: "1",
|
72
72
|
fontSize: "xs",
|
73
73
|
},
|
74
74
|
},
|
@@ -37,7 +37,7 @@ export const datePickerSlotRecipe = defineSlotRecipe({
|
|
37
37
|
dateTimeSegment: {
|
38
38
|
_focus: {
|
39
39
|
backgroundColor: "ghost.surface.active",
|
40
|
-
color: "text
|
40
|
+
color: "text",
|
41
41
|
},
|
42
42
|
},
|
43
43
|
box: {
|
@@ -147,7 +147,6 @@ export const datePickerSlotRecipe = defineSlotRecipe({
|
|
147
147
|
wrapper: {
|
148
148
|
outline: "1px solid",
|
149
149
|
outlineColor: "core.outline",
|
150
|
-
backgroundColor: "core.surface",
|
151
150
|
|
152
151
|
_hover: {
|
153
152
|
outline: "2px solid",
|
@@ -14,6 +14,7 @@ export const fieldSlotRecipe = defineSlotRecipe({
|
|
14
14
|
},
|
15
15
|
requiredIndicator: {
|
16
16
|
marginStart: 1,
|
17
|
+
// eslint-disable-next-line spor/use-semantic-tokens
|
17
18
|
color: "brightRed",
|
18
19
|
},
|
19
20
|
label: {
|
@@ -27,8 +28,8 @@ export const fieldSlotRecipe = defineSlotRecipe({
|
|
27
28
|
},
|
28
29
|
errorText: {
|
29
30
|
borderRadius: "xs",
|
30
|
-
backgroundColor: "
|
31
|
-
color: "
|
31
|
+
backgroundColor: "alert.error.surface",
|
32
|
+
color: "text",
|
32
33
|
paddingX: 1.5,
|
33
34
|
paddingY: 1,
|
34
35
|
textStyle: "xs",
|
@@ -45,7 +46,7 @@ export const fieldSlotRecipe = defineSlotRecipe({
|
|
45
46
|
left: "1em",
|
46
47
|
width: "0.5rem",
|
47
48
|
height: "0.5rem",
|
48
|
-
backgroundColor: "
|
49
|
+
backgroundColor: "alert.error.surface",
|
49
50
|
transform: "translateY(-50%) rotate(45deg)",
|
50
51
|
pointerEvents: "none",
|
51
52
|
},
|
@@ -76,7 +76,7 @@ export const floatingActionButtonSlotRecipe = defineSlotRecipe({
|
|
76
76
|
_hover: {
|
77
77
|
backgroundColor: "transparent",
|
78
78
|
outline: "2px solid",
|
79
|
-
outlineColor: "core.outline
|
79
|
+
outlineColor: "core.outline",
|
80
80
|
_active: {
|
81
81
|
outline: "1px solid",
|
82
82
|
outlineColor: "core.outline",
|
@@ -10,21 +10,12 @@ export const lineIconSlotRecipe = defineSlotRecipe({
|
|
10
10
|
display: "flex",
|
11
11
|
justifyContent: "center",
|
12
12
|
alignItems: "center",
|
13
|
-
"[aria-disabled=true] &": {
|
14
|
-
backgroundColor: "surface.disabled",
|
15
|
-
},
|
16
13
|
},
|
17
14
|
icon: {
|
18
|
-
color: "
|
19
|
-
"[aria-disabled=true] &": {
|
20
|
-
color: "icon.disabled",
|
21
|
-
},
|
15
|
+
color: "bg",
|
22
16
|
},
|
23
17
|
title: {
|
24
|
-
color: "
|
25
|
-
"[aria-disabled=true] &": {
|
26
|
-
color: "text.disabled",
|
27
|
-
},
|
18
|
+
color: "text",
|
28
19
|
},
|
29
20
|
},
|
30
21
|
variants: {
|
@@ -83,38 +74,14 @@ export const lineIconSlotRecipe = defineSlotRecipe({
|
|
83
74
|
iconContainer: {
|
84
75
|
backgroundColor: "linjetag.altTransport",
|
85
76
|
},
|
86
|
-
icon: {
|
87
|
-
color: "darkGrey",
|
88
|
-
"[aria-disabled=true] &": {
|
89
|
-
color: "white",
|
90
|
-
},
|
91
|
-
},
|
92
77
|
},
|
93
78
|
walk: {
|
94
79
|
title: {
|
95
80
|
color: "text",
|
96
81
|
},
|
97
|
-
icon: {
|
98
|
-
color: "linjetag.walkLight",
|
99
|
-
"[aria-disabled=true] &": {
|
100
|
-
color: "icon.disabled",
|
101
|
-
},
|
102
|
-
},
|
103
|
-
_disabled: {
|
104
|
-
icon: {
|
105
|
-
color: "text.disabled",
|
106
|
-
},
|
107
|
-
title: {
|
108
|
-
color: "text.disabled",
|
109
|
-
},
|
110
|
-
},
|
111
82
|
},
|
112
83
|
custom: {
|
113
|
-
iconContainer: {
|
114
|
-
_disabled: {
|
115
|
-
backgroundColor: "surface.disabled",
|
116
|
-
},
|
117
|
-
},
|
84
|
+
iconContainer: {},
|
118
85
|
},
|
119
86
|
},
|
120
87
|
size: {
|
@@ -69,9 +69,8 @@ export const switchSlotRecipe = defineSlotRecipe({
|
|
69
69
|
height: "var(--switch-height)",
|
70
70
|
transitionProperty: "common",
|
71
71
|
transitionDuration: "fast",
|
72
|
-
outline: "
|
73
|
-
outlineColor: "core.outline
|
74
|
-
backgroundColor: "core.background",
|
72
|
+
outline: "2px solid",
|
73
|
+
outlineColor: "core.outline",
|
75
74
|
_hover: {
|
76
75
|
outline: "2px solid",
|
77
76
|
outlineColor: "core.outline.hover",
|
@@ -96,7 +95,6 @@ export const switchSlotRecipe = defineSlotRecipe({
|
|
96
95
|
},
|
97
96
|
_disabled: {
|
98
97
|
pointerEvents: "none",
|
99
|
-
backgroundColor: "core.disabled",
|
100
98
|
outlineColor: "outline.disabled",
|
101
99
|
|
102
100
|
_checked: {
|
@@ -63,7 +63,6 @@ export const tabsSlotRecipe = defineSlotRecipe({
|
|
63
63
|
variant: {
|
64
64
|
core: {
|
65
65
|
list: {
|
66
|
-
backgroundColor: "core.surface",
|
67
66
|
color: "core.text",
|
68
67
|
border: "sm",
|
69
68
|
},
|
@@ -73,7 +72,7 @@ export const tabsSlotRecipe = defineSlotRecipe({
|
|
73
72
|
borderColor: "transparent",
|
74
73
|
_hover: {
|
75
74
|
outline: "2px solid",
|
76
|
-
outlineColor: "core.
|
75
|
+
outlineColor: "core.outline.hover",
|
77
76
|
outlineOffset: "-2px",
|
78
77
|
},
|
79
78
|
_active: {
|
@@ -90,7 +89,7 @@ export const tabsSlotRecipe = defineSlotRecipe({
|
|
90
89
|
},
|
91
90
|
_disabled: {
|
92
91
|
backgroundColor: "surface.disabled",
|
93
|
-
color: "
|
92
|
+
color: "surface.disabled",
|
94
93
|
},
|
95
94
|
},
|
96
95
|
},
|
@@ -104,7 +103,7 @@ export const tabsSlotRecipe = defineSlotRecipe({
|
|
104
103
|
|
105
104
|
_disabled: {
|
106
105
|
backgroundColor: "surface.disabled",
|
107
|
-
color: "
|
106
|
+
color: "icon.disabled",
|
108
107
|
},
|
109
108
|
_hover: {
|
110
109
|
backgroundColor: "accent.surface.hover",
|
@@ -30,22 +30,13 @@ export const toastSlotRecipe = defineSlotRecipe({
|
|
30
30
|
color: "text",
|
31
31
|
"&[data-type=success]": {
|
32
32
|
backgroundColor: "alert.success.surface",
|
33
|
-
"& svg": {
|
34
|
-
color: "primaryGreen",
|
35
|
-
},
|
36
33
|
},
|
37
34
|
"&[data-type=error]": {
|
38
35
|
backgroundColor: "alert.error.surface",
|
39
|
-
"& svg": {
|
40
|
-
color: "brightRed",
|
41
|
-
},
|
42
36
|
},
|
43
37
|
|
44
38
|
"&[data-type=info]": {
|
45
39
|
backgroundColor: "alert.info.surface",
|
46
|
-
"& svg": {
|
47
|
-
color: "darkBlue",
|
48
|
-
},
|
49
40
|
},
|
50
41
|
},
|
51
42
|
|
@@ -11,6 +11,11 @@ export const travelTagSlotRecipe = defineSlotRecipe({
|
|
11
11
|
display: "flex",
|
12
12
|
alignItems: "center",
|
13
13
|
padding: 0.5,
|
14
|
+
|
15
|
+
_disabled: {
|
16
|
+
background: "surface.disabled",
|
17
|
+
},
|
18
|
+
|
14
19
|
width: "fit-content",
|
15
20
|
transitionDuration: "fast",
|
16
21
|
transitionProperty: "common",
|
@@ -26,13 +31,13 @@ export const travelTagSlotRecipe = defineSlotRecipe({
|
|
26
31
|
},
|
27
32
|
},
|
28
33
|
textContainer: {
|
29
|
-
color: "
|
34
|
+
color: "text",
|
30
35
|
paddingRight: 0.5,
|
31
36
|
whiteSpace: "nowrap",
|
32
37
|
},
|
33
38
|
title: {
|
34
39
|
fontWeight: "bold",
|
35
|
-
color: "
|
40
|
+
color: "text",
|
36
41
|
"[aria-disabled=true] &": {
|
37
42
|
color: "text.disabled",
|
38
43
|
},
|
@@ -56,24 +61,21 @@ export const travelTagSlotRecipe = defineSlotRecipe({
|
|
56
61
|
critical: {
|
57
62
|
container: {
|
58
63
|
border: "1px solid",
|
59
|
-
borderColor: "error
|
64
|
+
borderColor: "outline.error",
|
60
65
|
},
|
61
66
|
deviationIcon: {
|
62
|
-
color: "
|
67
|
+
color: "outline.error",
|
63
68
|
},
|
64
69
|
},
|
65
70
|
major: {
|
66
71
|
container: {
|
67
72
|
border: "1px solid",
|
73
|
+
// eslint-disable-next-line spor/use-semantic-tokens
|
68
74
|
borderColor: "golden",
|
69
75
|
},
|
70
76
|
},
|
71
77
|
minor: {},
|
72
|
-
info: {
|
73
|
-
deviationIcon: {
|
74
|
-
color: "ocean",
|
75
|
-
},
|
76
|
-
},
|
78
|
+
info: {},
|
77
79
|
none: {},
|
78
80
|
},
|
79
81
|
variant: {
|