@vygruppen/spor-react 13.0.2 → 13.1.0
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 +25 -25
- package/.turbo/turbo-postinstall.log +4 -4
- package/CHANGELOG.md +21 -0
- package/dist/index.cjs +554 -397
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +194 -181
- package/dist/index.d.ts +194 -181
- package/dist/index.mjs +556 -399
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -8
- package/src/alert/AlertIcon.tsx +2 -2
- package/src/alert/ServiceAlert.tsx +2 -1
- package/src/calendar/CalendarCell.tsx +4 -4
- package/src/datepicker/CalendarHeader.tsx +1 -1
- package/src/dialog/Drawer.tsx +1 -1
- package/src/input/CardSelect.tsx +4 -4
- package/src/input/Combobox.tsx +1 -1
- package/src/input/Field.tsx +1 -1
- package/src/input/InputChip.tsx +33 -0
- package/src/input/PasswordInput.tsx +2 -1
- package/src/input/Popover.tsx +9 -7
- package/src/input/Select.tsx +44 -7
- package/src/input/index.ts +1 -0
- package/src/linjetag/LineIcon.tsx +1 -1
- package/src/loader/ColorInlineLoader.tsx +2 -1
- package/src/loader/ColorSpinner.tsx +2 -1
- package/src/loader/ContentLoader.tsx +2 -1
- package/src/loader/DarkFullScreenLoader.tsx +2 -1
- package/src/loader/DarkInlineLoader.tsx +2 -1
- package/src/loader/DarkSpinner.tsx +2 -1
- package/src/loader/LightFullScreenLoader.tsx +2 -1
- package/src/loader/LightInlineLoader.tsx +2 -1
- package/src/loader/LightSpinner.tsx +2 -1
- package/src/loader/Lottie.tsx +3 -2
- package/src/loader/text.ts +15 -0
- package/src/stepper/StepperStep.tsx +2 -2
- package/src/theme/recipes/badge.ts +24 -24
- package/src/theme/recipes/button.ts +22 -22
- package/src/theme/recipes/close-button.ts +2 -2
- package/src/theme/recipes/input.ts +9 -9
- package/src/theme/recipes/link.ts +1 -1
- package/src/theme/recipes/pressable-card.ts +12 -12
- package/src/theme/recipes/skeleton.ts +1 -1
- package/src/theme/recipes/static-card.ts +8 -8
- package/src/theme/semantic-tokens/colors.ts +1 -1
- package/src/theme/slot-recipes/accordion.ts +10 -10
- package/src/theme/slot-recipes/alert-expandable.ts +35 -35
- package/src/theme/slot-recipes/alert-service.ts +10 -10
- package/src/theme/slot-recipes/alert.ts +11 -11
- package/src/theme/slot-recipes/anatomy.ts +2 -0
- package/src/theme/slot-recipes/autocomplete.ts +5 -5
- package/src/theme/slot-recipes/breadcrumb.ts +4 -4
- package/src/theme/slot-recipes/checkbox.ts +11 -17
- package/src/theme/slot-recipes/choice-chip.ts +21 -21
- package/src/theme/slot-recipes/datepicker.ts +29 -29
- package/src/theme/slot-recipes/field.ts +3 -3
- package/src/theme/slot-recipes/floating-action-button.ts +14 -14
- package/src/theme/slot-recipes/index.ts +2 -0
- package/src/theme/slot-recipes/input-chip.ts +118 -0
- package/src/theme/slot-recipes/listbox.ts +9 -9
- package/src/theme/slot-recipes/media-controller-button.ts +9 -9
- package/src/theme/slot-recipes/menu.ts +7 -7
- package/src/theme/slot-recipes/numeric-stepper.ts +4 -4
- package/src/theme/slot-recipes/pagination.ts +4 -4
- package/src/theme/slot-recipes/popover.ts +4 -4
- package/src/theme/slot-recipes/progress-bar.ts +2 -2
- package/src/theme/slot-recipes/progress-indicator.ts +1 -1
- package/src/theme/slot-recipes/radio-card.ts +11 -11
- package/src/theme/slot-recipes/radio.ts +5 -5
- package/src/theme/slot-recipes/select.ts +16 -16
- package/src/theme/slot-recipes/stepper.ts +5 -5
- package/src/theme/slot-recipes/switch.ts +6 -6
- package/src/theme/slot-recipes/table.ts +2 -2
- package/src/theme/slot-recipes/tabs.ts +18 -18
- package/src/theme/slot-recipes/toast.ts +3 -3
|
@@ -24,19 +24,19 @@ export const listBoxSlotRecipe = defineSlotRecipe({
|
|
|
24
24
|
marginY: 1,
|
|
25
25
|
marginX: 1,
|
|
26
26
|
borderRadius: "sm",
|
|
27
|
-
color: "ghost
|
|
27
|
+
color: "text.ghost",
|
|
28
28
|
cursor: "pointer",
|
|
29
29
|
listStyle: "none",
|
|
30
30
|
_active: {
|
|
31
|
-
backgroundColor: "ghost.
|
|
31
|
+
backgroundColor: "surface.ghost.active",
|
|
32
32
|
},
|
|
33
33
|
|
|
34
34
|
_hover: {
|
|
35
|
-
backgroundColor: "accent
|
|
36
|
-
color: "accent
|
|
35
|
+
backgroundColor: "surface.accent",
|
|
36
|
+
color: "text.accent",
|
|
37
37
|
},
|
|
38
38
|
_selected: {
|
|
39
|
-
backgroundColor: "ghost.
|
|
39
|
+
backgroundColor: "surface.ghost.active",
|
|
40
40
|
},
|
|
41
41
|
_focus: {
|
|
42
42
|
outline: "2px solid",
|
|
@@ -46,9 +46,9 @@ export const listBoxSlotRecipe = defineSlotRecipe({
|
|
|
46
46
|
label: {},
|
|
47
47
|
description: {
|
|
48
48
|
fontSize: ["mobile.xs", "desktop.xs"],
|
|
49
|
-
color: "ghost
|
|
49
|
+
color: "text.ghost",
|
|
50
50
|
"[aria-selected='true'] &": {
|
|
51
|
-
color: "ghost
|
|
51
|
+
color: "text.ghost",
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
},
|
|
@@ -57,13 +57,13 @@ export const listBoxSlotRecipe = defineSlotRecipe({
|
|
|
57
57
|
core: {
|
|
58
58
|
root: {
|
|
59
59
|
outline: "1px solid",
|
|
60
|
-
outlineColor: "core
|
|
60
|
+
outlineColor: "outline.core",
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
floating: {
|
|
64
64
|
root: {
|
|
65
65
|
outline: "1px solid",
|
|
66
|
-
outlineColor: "floating
|
|
66
|
+
outlineColor: "outline.floating",
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
},
|
|
@@ -18,7 +18,7 @@ export const mediaControllerSlotRecipe = defineSlotRecipe({
|
|
|
18
18
|
display: "flex",
|
|
19
19
|
padding: 1,
|
|
20
20
|
alignSelf: "center",
|
|
21
|
-
color: "brand
|
|
21
|
+
color: "surface.brand",
|
|
22
22
|
outlineOffset: "2px",
|
|
23
23
|
},
|
|
24
24
|
icon: {
|
|
@@ -31,14 +31,14 @@ export const mediaControllerSlotRecipe = defineSlotRecipe({
|
|
|
31
31
|
play: {
|
|
32
32
|
root: {
|
|
33
33
|
padding: 0,
|
|
34
|
-
color: "brand
|
|
35
|
-
backgroundColor: "brand
|
|
34
|
+
color: "text.brand",
|
|
35
|
+
backgroundColor: "surface.brand",
|
|
36
36
|
_hover: {
|
|
37
|
-
color: "brand
|
|
38
|
-
backgroundColor: "brand.
|
|
37
|
+
color: "text.brand",
|
|
38
|
+
backgroundColor: "surface.brand.hover",
|
|
39
39
|
_active: {
|
|
40
|
-
color: "brand
|
|
41
|
-
backgroundColor: "brand.
|
|
40
|
+
color: "text.brand",
|
|
41
|
+
backgroundColor: "surface.brand.active",
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
_disabled: {
|
|
@@ -51,9 +51,9 @@ export const mediaControllerSlotRecipe = defineSlotRecipe({
|
|
|
51
51
|
jumpSkip: {
|
|
52
52
|
root: {
|
|
53
53
|
_hover: {
|
|
54
|
-
backgroundColor: "ghost.
|
|
54
|
+
backgroundColor: "surface.ghost.hover",
|
|
55
55
|
_active: {
|
|
56
|
-
backgroundColor: "ghost.
|
|
56
|
+
backgroundColor: "surface.ghost.active",
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
59
|
_disabled: {
|
|
@@ -38,19 +38,19 @@ export const menuSlotRecipe = defineSlotRecipe({
|
|
|
38
38
|
gap: 1.5,
|
|
39
39
|
|
|
40
40
|
_hover: {
|
|
41
|
-
backgroundColor: "accent.
|
|
41
|
+
backgroundColor: "surface.accent.hover",
|
|
42
42
|
},
|
|
43
43
|
|
|
44
44
|
"&:active": {
|
|
45
|
-
backgroundColor: "accent.
|
|
45
|
+
backgroundColor: "surface.accent.active",
|
|
46
46
|
},
|
|
47
47
|
|
|
48
48
|
_checked: {
|
|
49
|
-
backgroundColor: "accent
|
|
49
|
+
backgroundColor: "surface.accent",
|
|
50
50
|
},
|
|
51
51
|
|
|
52
52
|
_highlighted: {
|
|
53
|
-
backgroundColor: "ghost.
|
|
53
|
+
backgroundColor: "surface.ghost.hover",
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
itemGroupLabel: {
|
|
@@ -87,19 +87,19 @@ export const menuSlotRecipe = defineSlotRecipe({
|
|
|
87
87
|
core: {
|
|
88
88
|
content: {
|
|
89
89
|
border: "1px solid",
|
|
90
|
-
borderColor: "core
|
|
90
|
+
borderColor: "outline.core",
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
93
|
accent: {
|
|
94
94
|
content: {
|
|
95
95
|
border: "1px solid",
|
|
96
|
-
borderColor: "core
|
|
96
|
+
borderColor: "outline.core",
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
99
|
floating: {
|
|
100
100
|
content: {
|
|
101
101
|
border: "sm",
|
|
102
|
-
borderColor: "floating
|
|
102
|
+
borderColor: "outline.floating",
|
|
103
103
|
boxShadow: "lg",
|
|
104
104
|
},
|
|
105
105
|
},
|
|
@@ -25,7 +25,7 @@ export const numericStepperRecipe = defineSlotRecipe({
|
|
|
25
25
|
textAlign: "center",
|
|
26
26
|
transitionProperty: "common",
|
|
27
27
|
transitionDuration: "fast",
|
|
28
|
-
color: "core
|
|
28
|
+
color: "text.core",
|
|
29
29
|
backgroundColor: "transparent",
|
|
30
30
|
|
|
31
31
|
_focus: {
|
|
@@ -35,7 +35,7 @@ export const numericStepperRecipe = defineSlotRecipe({
|
|
|
35
35
|
},
|
|
36
36
|
|
|
37
37
|
_active: {
|
|
38
|
-
backgroundColor: "accent.
|
|
38
|
+
backgroundColor: "surface.accent.active",
|
|
39
39
|
},
|
|
40
40
|
|
|
41
41
|
_disabled: {
|
|
@@ -45,7 +45,7 @@ export const numericStepperRecipe = defineSlotRecipe({
|
|
|
45
45
|
|
|
46
46
|
_hover: {
|
|
47
47
|
outline: "1px solid",
|
|
48
|
-
outlineColor: "core
|
|
48
|
+
outlineColor: "outline.core",
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
text: {
|
|
@@ -55,7 +55,7 @@ export const numericStepperRecipe = defineSlotRecipe({
|
|
|
55
55
|
paddingX: 1,
|
|
56
56
|
textAlign: "center",
|
|
57
57
|
width: "4ch",
|
|
58
|
-
color: "core
|
|
58
|
+
color: "text.core",
|
|
59
59
|
},
|
|
60
60
|
button: {
|
|
61
61
|
outlineOffset: "-2px",
|
|
@@ -14,18 +14,18 @@ export const paginationSlotRecipe = defineSlotRecipe({
|
|
|
14
14
|
width: "5",
|
|
15
15
|
fontSize: "xs",
|
|
16
16
|
borderRadius: "xl",
|
|
17
|
-
color: "core
|
|
17
|
+
color: "text.core",
|
|
18
18
|
cursor: "pointer",
|
|
19
19
|
_hover: {
|
|
20
|
-
background: "ghost.
|
|
20
|
+
background: "surface.ghost.hover",
|
|
21
21
|
_active: {
|
|
22
|
-
background: "ghost.
|
|
22
|
+
background: "surface.ghost.active",
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
_selected: {
|
|
26
26
|
cursor: "default",
|
|
27
27
|
fontWeight: "bold",
|
|
28
|
-
backgroundColor: "core.
|
|
28
|
+
backgroundColor: "surface.core.active",
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
31
|
list: {
|
|
@@ -10,13 +10,13 @@ export const popoverSlotRecipe = defineSlotRecipe({
|
|
|
10
10
|
position: "relative",
|
|
11
11
|
display: "flex",
|
|
12
12
|
flexDirection: "row-reverse",
|
|
13
|
-
color: "text.
|
|
13
|
+
color: "text.brand",
|
|
14
14
|
|
|
15
15
|
gap: "0.625rem",
|
|
16
16
|
padding: "0.563rem 0.75rem",
|
|
17
17
|
|
|
18
18
|
textStyle: "sm",
|
|
19
|
-
bg: "surface.
|
|
19
|
+
bg: "surface.brand",
|
|
20
20
|
boxShadow: "lg",
|
|
21
21
|
borderRadius: "sm",
|
|
22
22
|
zIndex: "popover",
|
|
@@ -34,7 +34,7 @@ export const popoverSlotRecipe = defineSlotRecipe({
|
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
body: {
|
|
37
|
-
color: "text.
|
|
37
|
+
color: "text.brand",
|
|
38
38
|
|
|
39
39
|
alignItems: "center",
|
|
40
40
|
borderRadius: "sm",
|
|
@@ -42,7 +42,7 @@ export const popoverSlotRecipe = defineSlotRecipe({
|
|
|
42
42
|
maxWidth: "20em",
|
|
43
43
|
},
|
|
44
44
|
arrow: {
|
|
45
|
-
"--arrow-background": "colors.surface.
|
|
45
|
+
"--arrow-background": "colors.surface.brand",
|
|
46
46
|
"--arrow-size": "6px",
|
|
47
47
|
},
|
|
48
48
|
},
|
|
@@ -10,7 +10,7 @@ export const progressBarRecipe = defineSlotRecipe({
|
|
|
10
10
|
},
|
|
11
11
|
background: {
|
|
12
12
|
display: "flex",
|
|
13
|
-
backgroundColor: "accent.
|
|
13
|
+
backgroundColor: "surface.accent.hover",
|
|
14
14
|
borderRadius: "sm",
|
|
15
15
|
boxPack: "start",
|
|
16
16
|
justifyContent: "flex-start",
|
|
@@ -22,7 +22,7 @@ export const progressBarRecipe = defineSlotRecipe({
|
|
|
22
22
|
borderRadius: "sm",
|
|
23
23
|
},
|
|
24
24
|
progress: {
|
|
25
|
-
backgroundColor: "brand.
|
|
25
|
+
backgroundColor: "surface.brand.active",
|
|
26
26
|
borderRadius: "sm",
|
|
27
27
|
maxWidth: "100%",
|
|
28
28
|
transition: "width .2s ease-out",
|
|
@@ -42,16 +42,16 @@ export const radioCardSlotRecipe = defineSlotRecipe({
|
|
|
42
42
|
variant: {
|
|
43
43
|
core: {
|
|
44
44
|
item: {
|
|
45
|
-
outlineColor: "core
|
|
45
|
+
outlineColor: "outline.core",
|
|
46
46
|
outlineWidth: tokens.size.stroke.sm,
|
|
47
47
|
outlineStyle: "solid",
|
|
48
48
|
|
|
49
49
|
_hover: {
|
|
50
|
-
outlineColor: "core.
|
|
50
|
+
outlineColor: "outline.core.hover",
|
|
51
51
|
outlineWidth: tokens.size.stroke.md,
|
|
52
52
|
outlineStyle: "solid",
|
|
53
53
|
_active: {
|
|
54
|
-
backgroundColor: "core.
|
|
54
|
+
backgroundColor: "surface.core.active",
|
|
55
55
|
outlineWidth: tokens.size.stroke.sm,
|
|
56
56
|
},
|
|
57
57
|
},
|
|
@@ -59,7 +59,7 @@ export const radioCardSlotRecipe = defineSlotRecipe({
|
|
|
59
59
|
outlineColor: "outline.focus",
|
|
60
60
|
outlineWidth: tokens.size.stroke.md,
|
|
61
61
|
outlineStyle: "solid",
|
|
62
|
-
backgroundColor: "core.
|
|
62
|
+
backgroundColor: "surface.core.active",
|
|
63
63
|
_focusVisible: {
|
|
64
64
|
outlineStyle: "double",
|
|
65
65
|
outlineWidth: `calc(3 * ${tokens.size.stroke.md})`, // space for double outline
|
|
@@ -73,18 +73,18 @@ export const radioCardSlotRecipe = defineSlotRecipe({
|
|
|
73
73
|
shadowColor: "surface.disabled",
|
|
74
74
|
|
|
75
75
|
border: "sm",
|
|
76
|
-
borderColor: "floating
|
|
76
|
+
borderColor: "outline.floating",
|
|
77
77
|
|
|
78
|
-
background: "floating
|
|
78
|
+
background: "surface.floating",
|
|
79
79
|
_hover: {
|
|
80
|
-
background: "floating.
|
|
80
|
+
background: "surface.floating.hover",
|
|
81
81
|
|
|
82
|
-
borderColor: "floating.
|
|
82
|
+
borderColor: "outline.floating.hover",
|
|
83
83
|
|
|
84
84
|
boxShadow: "0px 2px 6px 0px var(--shadow-color)",
|
|
85
85
|
_active: {
|
|
86
|
-
background: "floating.
|
|
87
|
-
borderColor: "
|
|
86
|
+
background: "surface.floating.active",
|
|
87
|
+
borderColor: "outline.neutral",
|
|
88
88
|
boxShadow: "none",
|
|
89
89
|
},
|
|
90
90
|
},
|
|
@@ -92,7 +92,7 @@ export const radioCardSlotRecipe = defineSlotRecipe({
|
|
|
92
92
|
outlineColor: "outline.focus",
|
|
93
93
|
outlineWidth: tokens.size.stroke.md,
|
|
94
94
|
outlineStyle: "solid",
|
|
95
|
-
backgroundColor: "core.
|
|
95
|
+
backgroundColor: "surface.core.active",
|
|
96
96
|
|
|
97
97
|
_focusVisible: {
|
|
98
98
|
outlineStyle: "double",
|
|
@@ -37,18 +37,18 @@ export const radioGroupSlotRecipe = defineSlotRecipe({
|
|
|
37
37
|
justifyContent: "center",
|
|
38
38
|
verticalAlign: "top",
|
|
39
39
|
borderWidth: "2px",
|
|
40
|
-
borderColor: "core
|
|
40
|
+
borderColor: "outline.core",
|
|
41
41
|
borderRadius: "xl",
|
|
42
42
|
width: 4,
|
|
43
43
|
height: 4,
|
|
44
44
|
|
|
45
45
|
_checked: {
|
|
46
|
-
borderColor: "brand
|
|
46
|
+
borderColor: "surface.brand",
|
|
47
47
|
},
|
|
48
48
|
_hover: {
|
|
49
|
-
borderColor: "brand.
|
|
49
|
+
borderColor: "surface.brand.hover",
|
|
50
50
|
"& .dot": {
|
|
51
|
-
backgroundColor: "brand.
|
|
51
|
+
backgroundColor: "surface.brand.hover",
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
|
|
@@ -71,7 +71,7 @@ export const radioGroupSlotRecipe = defineSlotRecipe({
|
|
|
71
71
|
height: "full",
|
|
72
72
|
width: "full",
|
|
73
73
|
borderRadius: "xl",
|
|
74
|
-
backgroundColor: "brand
|
|
74
|
+
backgroundColor: "surface.brand",
|
|
75
75
|
scale: "0.5",
|
|
76
76
|
},
|
|
77
77
|
},
|
|
@@ -72,7 +72,7 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
|
72
72
|
color: {
|
|
73
73
|
base: "text",
|
|
74
74
|
_disabled: "text.disabled",
|
|
75
|
-
_invalid: "text.
|
|
75
|
+
_invalid: "text.highlight",
|
|
76
76
|
},
|
|
77
77
|
_icon: {
|
|
78
78
|
width: 3,
|
|
@@ -110,14 +110,14 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
|
110
110
|
justifyContent: "space-between",
|
|
111
111
|
gap: 1,
|
|
112
112
|
borderRadius: "sm",
|
|
113
|
-
color: "ghost
|
|
113
|
+
color: "text.ghost",
|
|
114
114
|
cursor: "pointer",
|
|
115
115
|
outline: "none",
|
|
116
116
|
"&[data-highlighted]:hover": {
|
|
117
117
|
outlineOffset: "2px",
|
|
118
118
|
outline: "2px solid",
|
|
119
119
|
outlineColor: "outline.focus",
|
|
120
|
-
backgroundColor: "
|
|
120
|
+
backgroundColor: "surface.accent.hover",
|
|
121
121
|
},
|
|
122
122
|
"&[data-highlighted]": {
|
|
123
123
|
outlineOffset: "2px",
|
|
@@ -125,7 +125,7 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
|
125
125
|
outlineColor: "outline.focus",
|
|
126
126
|
},
|
|
127
127
|
_active: {
|
|
128
|
-
backgroundColor: "
|
|
128
|
+
backgroundColor: "surface.accent.active",
|
|
129
129
|
},
|
|
130
130
|
_highlighted: {
|
|
131
131
|
_active: {
|
|
@@ -133,12 +133,12 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
|
133
133
|
},
|
|
134
134
|
},
|
|
135
135
|
_hover: {
|
|
136
|
-
backgroundColor: "
|
|
136
|
+
backgroundColor: "surface.accent.hover",
|
|
137
137
|
outline: "2px solid core.outline",
|
|
138
138
|
outlineOffset: "2px",
|
|
139
139
|
},
|
|
140
140
|
_selected: {
|
|
141
|
-
backgroundColor: "
|
|
141
|
+
backgroundColor: "surface.accent",
|
|
142
142
|
},
|
|
143
143
|
_icon: {
|
|
144
144
|
width: 3,
|
|
@@ -173,9 +173,9 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
|
173
173
|
valueText: {},
|
|
174
174
|
itemDescription: {
|
|
175
175
|
fontSize: ["mobile.xs", "desktop.xs"],
|
|
176
|
-
color: "ghost
|
|
176
|
+
color: "text.ghost",
|
|
177
177
|
"[aria-selected='true'] &": {
|
|
178
|
-
color: "ghost
|
|
178
|
+
color: "text.ghost",
|
|
179
179
|
},
|
|
180
180
|
},
|
|
181
181
|
},
|
|
@@ -184,13 +184,13 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
|
184
184
|
core: {
|
|
185
185
|
control: {
|
|
186
186
|
outline: "1px solid",
|
|
187
|
-
outlineColor: "core
|
|
187
|
+
outlineColor: "outline.core",
|
|
188
188
|
_hover: {
|
|
189
189
|
outline: "2px solid",
|
|
190
|
-
outlineColor: "core
|
|
190
|
+
outlineColor: "outline.core",
|
|
191
191
|
},
|
|
192
192
|
_active: {
|
|
193
|
-
backgroundColor: "brand.
|
|
193
|
+
backgroundColor: "surface.brand.active",
|
|
194
194
|
},
|
|
195
195
|
_disabled: {
|
|
196
196
|
pointerEvents: "none",
|
|
@@ -202,13 +202,13 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
|
202
202
|
floating: {
|
|
203
203
|
control: {
|
|
204
204
|
outline: "1px solid",
|
|
205
|
-
outlineColor: "floating
|
|
205
|
+
outlineColor: "outline.floating",
|
|
206
206
|
_hover: {
|
|
207
207
|
outline: "2px solid",
|
|
208
|
-
outlineColor: "floating
|
|
208
|
+
outlineColor: "outline.floating",
|
|
209
209
|
},
|
|
210
210
|
_active: {
|
|
211
|
-
backgroundColor: "brand.
|
|
211
|
+
backgroundColor: "surface.brand.active",
|
|
212
212
|
},
|
|
213
213
|
_disabled: {
|
|
214
214
|
pointerEvents: "none",
|
|
@@ -222,7 +222,7 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
|
222
222
|
rightSideSquare: {
|
|
223
223
|
control: {
|
|
224
224
|
outline: "1px solid",
|
|
225
|
-
outlineColor: "core
|
|
225
|
+
outlineColor: "outline.core",
|
|
226
226
|
},
|
|
227
227
|
trigger: {
|
|
228
228
|
_focus: {
|
|
@@ -233,7 +233,7 @@ export const selectSlotRecipe = defineSlotRecipe({
|
|
|
233
233
|
leftSideSquare: {
|
|
234
234
|
control: {
|
|
235
235
|
outline: "1px solid",
|
|
236
|
-
outlineColor: "core
|
|
236
|
+
outlineColor: "outline.core",
|
|
237
237
|
},
|
|
238
238
|
trigger: {
|
|
239
239
|
_focus: {
|
|
@@ -59,7 +59,7 @@ export const stepperSlotRecipe = defineSlotRecipe({
|
|
|
59
59
|
},
|
|
60
60
|
accent: {
|
|
61
61
|
root: {
|
|
62
|
-
backgroundColor: "accent
|
|
62
|
+
backgroundColor: "bg.accent",
|
|
63
63
|
},
|
|
64
64
|
stepButton: {
|
|
65
65
|
color: {
|
|
@@ -67,13 +67,13 @@ export const stepperSlotRecipe = defineSlotRecipe({
|
|
|
67
67
|
_dark: "whiteAlpha.900",
|
|
68
68
|
},
|
|
69
69
|
_disabled: {
|
|
70
|
-
color: "core
|
|
70
|
+
color: "text.core",
|
|
71
71
|
},
|
|
72
72
|
_currentStep: {
|
|
73
|
-
color: "accent
|
|
73
|
+
color: "text.accent",
|
|
74
74
|
},
|
|
75
75
|
_hover: {
|
|
76
|
-
backgroundColor: "accent.
|
|
76
|
+
backgroundColor: "surface.accent.hover",
|
|
77
77
|
_disabled: {
|
|
78
78
|
backgroundColor: "transparent",
|
|
79
79
|
},
|
|
@@ -81,7 +81,7 @@ export const stepperSlotRecipe = defineSlotRecipe({
|
|
|
81
81
|
},
|
|
82
82
|
backButton: {
|
|
83
83
|
_hover: {
|
|
84
|
-
backgroundColor: "brand.
|
|
84
|
+
backgroundColor: "surface.brand.hover",
|
|
85
85
|
},
|
|
86
86
|
},
|
|
87
87
|
},
|
|
@@ -29,7 +29,7 @@ export const switchSlotRecipe = defineSlotRecipe({
|
|
|
29
29
|
justifyContent: "center",
|
|
30
30
|
width: "var(--switch-height)",
|
|
31
31
|
height: "var(--switch-height)",
|
|
32
|
-
backgroundColor: "core
|
|
32
|
+
backgroundColor: "icon.core",
|
|
33
33
|
|
|
34
34
|
_disabled: {
|
|
35
35
|
backgroundColor: "icon.disabled",
|
|
@@ -39,7 +39,7 @@ export const switchSlotRecipe = defineSlotRecipe({
|
|
|
39
39
|
},
|
|
40
40
|
_checked: {
|
|
41
41
|
translate: "var(--switch-x) 0",
|
|
42
|
-
backgroundColor: "brand
|
|
42
|
+
backgroundColor: "icon.brand",
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
45
|
|
|
@@ -69,13 +69,13 @@ export const switchSlotRecipe = defineSlotRecipe({
|
|
|
69
69
|
transitionDuration: "fast",
|
|
70
70
|
outline: "1px solid",
|
|
71
71
|
outlineOffset: "-1px",
|
|
72
|
-
outlineColor: "core
|
|
72
|
+
outlineColor: "outline.core",
|
|
73
73
|
_hover: {
|
|
74
74
|
outline: "2px solid",
|
|
75
|
-
outlineColor: "core.
|
|
75
|
+
outlineColor: "outline.core.hover",
|
|
76
76
|
_checked: {
|
|
77
77
|
outlineColor: "transparent",
|
|
78
|
-
backgroundColor: "brand.
|
|
78
|
+
backgroundColor: "surface.brand.hover",
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
81
|
|
|
@@ -86,7 +86,7 @@ export const switchSlotRecipe = defineSlotRecipe({
|
|
|
86
86
|
},
|
|
87
87
|
|
|
88
88
|
_checked: {
|
|
89
|
-
backgroundColor: "brand
|
|
89
|
+
backgroundColor: "surface.brand",
|
|
90
90
|
outline: "none",
|
|
91
91
|
_focusVisible: {
|
|
92
92
|
outlineOffset: "1px",
|
|
@@ -48,10 +48,10 @@ export const tableSlotRecipe = defineSlotRecipe({
|
|
|
48
48
|
backgroundColor: "bg",
|
|
49
49
|
},
|
|
50
50
|
header: {
|
|
51
|
-
backgroundColor: "bg.
|
|
51
|
+
backgroundColor: "bg.brand",
|
|
52
52
|
},
|
|
53
53
|
columnHeader: {
|
|
54
|
-
color: "text.
|
|
54
|
+
color: "text.highlight",
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
57
|
grey: {
|
|
@@ -63,26 +63,26 @@ export const tabsSlotRecipe = defineSlotRecipe({
|
|
|
63
63
|
variant: {
|
|
64
64
|
core: {
|
|
65
65
|
list: {
|
|
66
|
-
color: "core
|
|
66
|
+
color: "text.core",
|
|
67
67
|
border: "sm",
|
|
68
68
|
},
|
|
69
69
|
trigger: {
|
|
70
|
-
color: "core
|
|
70
|
+
color: "text.core",
|
|
71
71
|
border: "md",
|
|
72
72
|
borderColor: "transparent",
|
|
73
73
|
_hover: {
|
|
74
74
|
outline: "2px solid",
|
|
75
|
-
outlineColor: "core.
|
|
75
|
+
outlineColor: "outline.core.hover",
|
|
76
76
|
outlineOffset: "-2px",
|
|
77
77
|
},
|
|
78
78
|
_active: {
|
|
79
|
-
backgroundColor: "brand.
|
|
80
|
-
color: "brand
|
|
79
|
+
backgroundColor: "surface.brand.active",
|
|
80
|
+
color: "text.brand",
|
|
81
81
|
outline: "none",
|
|
82
82
|
},
|
|
83
83
|
_selected: {
|
|
84
|
-
backgroundColor: "brand
|
|
85
|
-
color: "brand
|
|
84
|
+
backgroundColor: "surface.brand",
|
|
85
|
+
color: "text.brand",
|
|
86
86
|
_hover: {
|
|
87
87
|
outline: "none",
|
|
88
88
|
},
|
|
@@ -95,29 +95,29 @@ export const tabsSlotRecipe = defineSlotRecipe({
|
|
|
95
95
|
},
|
|
96
96
|
accent: {
|
|
97
97
|
list: {
|
|
98
|
-
backgroundColor: "accent
|
|
99
|
-
color: "accent
|
|
98
|
+
backgroundColor: "bg.accent",
|
|
99
|
+
color: "text.accent",
|
|
100
100
|
},
|
|
101
101
|
trigger: {
|
|
102
|
-
color: "accent
|
|
102
|
+
color: "text.accent",
|
|
103
103
|
|
|
104
104
|
_disabled: {
|
|
105
105
|
backgroundColor: "surface.disabled",
|
|
106
106
|
color: "icon.disabled",
|
|
107
107
|
},
|
|
108
108
|
_hover: {
|
|
109
|
-
backgroundColor: "accent.
|
|
109
|
+
backgroundColor: "surface.accent.hover",
|
|
110
110
|
_active: {
|
|
111
|
-
backgroundColor: "brand.
|
|
112
|
-
color: "brand
|
|
111
|
+
backgroundColor: "surface.brand.active",
|
|
112
|
+
color: "text.brand",
|
|
113
113
|
},
|
|
114
114
|
},
|
|
115
115
|
_selected: {
|
|
116
|
-
backgroundColor: "brand
|
|
117
|
-
color: "brand
|
|
116
|
+
backgroundColor: "surface.brand",
|
|
117
|
+
color: "text.brand",
|
|
118
118
|
_hover: {
|
|
119
|
-
backgroundColor: "brand.
|
|
120
|
-
color: "brand
|
|
119
|
+
backgroundColor: "surface.brand.hover",
|
|
120
|
+
color: "text.brand",
|
|
121
121
|
outline: "none",
|
|
122
122
|
},
|
|
123
123
|
},
|
|
@@ -165,7 +165,7 @@ export const tabsSlotRecipe = defineSlotRecipe({
|
|
|
165
165
|
paddingX: 3,
|
|
166
166
|
_focus: {
|
|
167
167
|
border: "md",
|
|
168
|
-
borderColor: "accent
|
|
168
|
+
borderColor: "surface.accent",
|
|
169
169
|
},
|
|
170
170
|
},
|
|
171
171
|
},
|
|
@@ -29,14 +29,14 @@ export const toastSlotRecipe = defineSlotRecipe({
|
|
|
29
29
|
|
|
30
30
|
color: "text",
|
|
31
31
|
"&[data-type=success]": {
|
|
32
|
-
backgroundColor: "
|
|
32
|
+
backgroundColor: "surface.success",
|
|
33
33
|
},
|
|
34
34
|
"&[data-type=error]": {
|
|
35
|
-
backgroundColor: "
|
|
35
|
+
backgroundColor: "surface.critical",
|
|
36
36
|
},
|
|
37
37
|
|
|
38
38
|
"&[data-type=info]": {
|
|
39
|
-
backgroundColor: "
|
|
39
|
+
backgroundColor: "surface.info",
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
|