@vygruppen/spor-react 13.0.3 → 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 +10 -10
- package/.turbo/turbo-postinstall.log +3 -4
- package/CHANGELOG.md +15 -0
- package/dist/index.cjs +411 -402
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +175 -175
- package/dist/index.d.ts +175 -175
- package/dist/index.mjs +411 -401
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -10
- 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/Popover.tsx +9 -7
- 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/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/input-chip.ts +10 -10
- 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
|
@@ -30,33 +30,33 @@ export const pressableCardRecipe = defineRecipe({
|
|
|
30
30
|
shadowColor: "surface.disabled",
|
|
31
31
|
|
|
32
32
|
border: "sm",
|
|
33
|
-
borderColor: "floating
|
|
33
|
+
borderColor: "outline.floating",
|
|
34
34
|
|
|
35
|
-
backgroundColor: "floating
|
|
35
|
+
backgroundColor: "surface.floating",
|
|
36
36
|
_hover: {
|
|
37
37
|
boxShadow: "0px 2px 6px 0px var(--shadow-color)",
|
|
38
|
-
backgroundColor: "floating.
|
|
38
|
+
backgroundColor: "surface.floating.hover",
|
|
39
39
|
|
|
40
|
-
borderColor: "floating.
|
|
40
|
+
borderColor: "outline.floating.hover",
|
|
41
41
|
|
|
42
42
|
_active: {
|
|
43
43
|
boxShadow: "none",
|
|
44
|
-
backgroundColor: "floating.
|
|
45
|
-
borderColor: "
|
|
44
|
+
backgroundColor: "surface.floating.active",
|
|
45
|
+
borderColor: "outline.neutral",
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
core: {
|
|
50
|
-
outlineColor: "core
|
|
50
|
+
outlineColor: "outline.core",
|
|
51
51
|
outlineWidth: tokens.size.stroke.sm,
|
|
52
52
|
outlineStyle: "solid",
|
|
53
53
|
|
|
54
54
|
_hover: {
|
|
55
|
-
outlineColor: "core.
|
|
55
|
+
outlineColor: "outline.core.hover",
|
|
56
56
|
outlineWidth: tokens.size.stroke.md,
|
|
57
57
|
outlineStyle: "solid",
|
|
58
58
|
_active: {
|
|
59
|
-
backgroundColor: "core.
|
|
59
|
+
backgroundColor: "surface.core.active",
|
|
60
60
|
outlineWidth: tokens.size.stroke.sm,
|
|
61
61
|
},
|
|
62
62
|
},
|
|
@@ -64,13 +64,13 @@ export const pressableCardRecipe = defineRecipe({
|
|
|
64
64
|
accent: {
|
|
65
65
|
boxShadow: "0px 1px 3px 0px var(--shadow-color)",
|
|
66
66
|
shadowColor: "surface.disabled",
|
|
67
|
-
background: "
|
|
67
|
+
background: "surface.success",
|
|
68
68
|
_hover: {
|
|
69
|
-
background: "
|
|
69
|
+
background: "surface.success.hover",
|
|
70
70
|
|
|
71
71
|
boxShadow: "0px 2px 6px 0px var(--shadow-color)",
|
|
72
72
|
_active: {
|
|
73
|
-
background: "
|
|
73
|
+
background: "surface.success.active",
|
|
74
74
|
boxShadow: "none",
|
|
75
75
|
},
|
|
76
76
|
},
|
|
@@ -7,29 +7,29 @@ export const staticCardRecipe = defineRecipe({
|
|
|
7
7
|
variants: {
|
|
8
8
|
colorPalette: {
|
|
9
9
|
white: {
|
|
10
|
-
backgroundColor: "surface
|
|
10
|
+
backgroundColor: "surface",
|
|
11
11
|
color: "text",
|
|
12
12
|
},
|
|
13
13
|
grey: {
|
|
14
|
-
backgroundColor: "surface.
|
|
14
|
+
backgroundColor: "surface.neutral",
|
|
15
15
|
},
|
|
16
16
|
yellow: {
|
|
17
|
-
backgroundColor: "surface.
|
|
17
|
+
backgroundColor: "surface.warning",
|
|
18
18
|
},
|
|
19
19
|
darkYellow: {
|
|
20
|
-
backgroundColor: "surface.
|
|
20
|
+
backgroundColor: "surface.notice",
|
|
21
21
|
},
|
|
22
22
|
red: {
|
|
23
|
-
backgroundColor: "surface.
|
|
23
|
+
backgroundColor: "surface.critical",
|
|
24
24
|
},
|
|
25
25
|
green: {
|
|
26
|
-
backgroundColor: "surface.
|
|
26
|
+
backgroundColor: "surface.success",
|
|
27
27
|
},
|
|
28
28
|
blue: {
|
|
29
|
-
backgroundColor: "surface.
|
|
29
|
+
backgroundColor: "surface.info",
|
|
30
30
|
},
|
|
31
31
|
orange: {
|
|
32
|
-
backgroundColor: "surface.
|
|
32
|
+
backgroundColor: "surface.caution",
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
},
|
|
@@ -18,7 +18,7 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
18
18
|
borderRadius: "sm",
|
|
19
19
|
display: "flex",
|
|
20
20
|
justifyContent: "space-between",
|
|
21
|
-
color: "core
|
|
21
|
+
color: "text.core",
|
|
22
22
|
textAlign: "left",
|
|
23
23
|
width: "full",
|
|
24
24
|
alignItems: "center",
|
|
@@ -75,10 +75,10 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
75
75
|
},
|
|
76
76
|
itemTrigger: {
|
|
77
77
|
"&:hover": {
|
|
78
|
-
background: "ghost.
|
|
78
|
+
background: "surface.ghost.hover",
|
|
79
79
|
},
|
|
80
80
|
"&:active": {
|
|
81
|
-
backgroundColor: "ghost.
|
|
81
|
+
backgroundColor: "surface.ghost.active",
|
|
82
82
|
},
|
|
83
83
|
},
|
|
84
84
|
},
|
|
@@ -86,7 +86,7 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
86
86
|
item: {
|
|
87
87
|
outline: "solid",
|
|
88
88
|
outlineWidth: tokens.size.stroke.sm,
|
|
89
|
-
outlineColor: "core
|
|
89
|
+
outlineColor: "outline.core",
|
|
90
90
|
},
|
|
91
91
|
itemTrigger: {
|
|
92
92
|
_expanded: {
|
|
@@ -94,13 +94,13 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
94
94
|
},
|
|
95
95
|
"&:hover": {
|
|
96
96
|
outlineWidth: tokens.size.stroke.md,
|
|
97
|
-
outlineColor: "core
|
|
97
|
+
outlineColor: "outline.core",
|
|
98
98
|
outline: "2px solid",
|
|
99
99
|
|
|
100
100
|
outlineOffset: 0,
|
|
101
101
|
},
|
|
102
102
|
"&:active": {
|
|
103
|
-
backgroundColor: "core.
|
|
103
|
+
backgroundColor: "surface.core.active",
|
|
104
104
|
outlineWidth: tokens.size.stroke.sm,
|
|
105
105
|
outline: "none",
|
|
106
106
|
},
|
|
@@ -113,7 +113,7 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
113
113
|
item: {
|
|
114
114
|
borderRadius: "none",
|
|
115
115
|
borderBottom: "1px solid",
|
|
116
|
-
borderBottomColor: "
|
|
116
|
+
borderBottomColor: "outline.neutral",
|
|
117
117
|
},
|
|
118
118
|
},
|
|
119
119
|
floating: {
|
|
@@ -121,7 +121,7 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
121
121
|
outline: "1px solid",
|
|
122
122
|
outlineWidth: tokens.size.stroke.sm,
|
|
123
123
|
boxShadow: "sm",
|
|
124
|
-
outlineColor: "floating
|
|
124
|
+
outlineColor: "outline.floating",
|
|
125
125
|
},
|
|
126
126
|
itemTrigger: {
|
|
127
127
|
_expanded: {
|
|
@@ -130,12 +130,12 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
|
130
130
|
"&:hover": {
|
|
131
131
|
outlineWidth: tokens.size.stroke.md,
|
|
132
132
|
outline: "1px solid",
|
|
133
|
-
outlineColor: "floating.
|
|
133
|
+
outlineColor: "outline.floating.hover",
|
|
134
134
|
|
|
135
135
|
outlineOffset: 1,
|
|
136
136
|
},
|
|
137
137
|
"&:active": {
|
|
138
|
-
backgroundColor: "floating.
|
|
138
|
+
backgroundColor: "surface.floating.active",
|
|
139
139
|
outlineWidth: tokens.size.stroke.sm,
|
|
140
140
|
outline: "none",
|
|
141
141
|
},
|
|
@@ -24,117 +24,117 @@ export const alertExpandableSlotRecipe = defineSlotRecipe({
|
|
|
24
24
|
variant: {
|
|
25
25
|
important: {
|
|
26
26
|
itemContent: {
|
|
27
|
-
color: "
|
|
27
|
+
color: "text.warning.subtle",
|
|
28
28
|
},
|
|
29
29
|
itemTrigger: {
|
|
30
30
|
"&:hover": {
|
|
31
|
-
bg: "
|
|
31
|
+
bg: "surface.warning.hover",
|
|
32
32
|
outline: "1px solid",
|
|
33
|
-
outlineColor: "
|
|
33
|
+
outlineColor: "outline.warning.hover",
|
|
34
34
|
outlineOffset: "0px",
|
|
35
35
|
},
|
|
36
36
|
"&:active": {
|
|
37
|
-
bg: "
|
|
37
|
+
bg: "surface.warning.active",
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
root: {
|
|
41
|
-
borderColor: "
|
|
42
|
-
bg: "
|
|
41
|
+
borderColor: "outline.warning",
|
|
42
|
+
bg: "surface.warning",
|
|
43
43
|
},
|
|
44
44
|
title: {
|
|
45
|
-
color: "
|
|
45
|
+
color: "text.warning",
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
success: {
|
|
49
49
|
itemContent: {
|
|
50
|
-
color: "
|
|
50
|
+
color: "text.success.subtle",
|
|
51
51
|
},
|
|
52
52
|
itemTrigger: {
|
|
53
53
|
"&:hover": {
|
|
54
|
-
bg: "
|
|
54
|
+
bg: "surface.success.hover",
|
|
55
55
|
outline: "1px solid",
|
|
56
56
|
outlineOffset: "0px",
|
|
57
|
-
outlineColor: "
|
|
57
|
+
outlineColor: "outline.success.hover",
|
|
58
58
|
"&:active": {
|
|
59
|
-
bg: "
|
|
59
|
+
bg: "surface.success.active",
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
root: {
|
|
64
|
-
borderColor: "
|
|
65
|
-
bg: "
|
|
64
|
+
borderColor: "outline.success",
|
|
65
|
+
bg: "surface.success",
|
|
66
66
|
},
|
|
67
67
|
title: {
|
|
68
|
-
color: "
|
|
68
|
+
color: "text.success",
|
|
69
69
|
},
|
|
70
70
|
},
|
|
71
71
|
alt: {
|
|
72
72
|
itemContent: {
|
|
73
|
-
color: "
|
|
73
|
+
color: "text.notice.subtle",
|
|
74
74
|
},
|
|
75
75
|
itemTrigger: {
|
|
76
76
|
"&:hover": {
|
|
77
|
-
bg: "
|
|
77
|
+
bg: "surface.notice.hover",
|
|
78
78
|
outlineOffset: "0px",
|
|
79
79
|
outline: "1px solid",
|
|
80
|
-
outlineColor: "
|
|
80
|
+
outlineColor: "outline.notice.hover",
|
|
81
81
|
"&:active": {
|
|
82
|
-
bg: "
|
|
82
|
+
bg: "surface.notice.active",
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
85
|
},
|
|
86
86
|
root: {
|
|
87
|
-
borderColor: "
|
|
88
|
-
bg: "
|
|
87
|
+
borderColor: "outline.notice",
|
|
88
|
+
bg: "surface.notice",
|
|
89
89
|
},
|
|
90
90
|
title: {
|
|
91
|
-
color: "
|
|
91
|
+
color: "text.notice",
|
|
92
92
|
},
|
|
93
93
|
},
|
|
94
94
|
info: {
|
|
95
95
|
itemContent: {
|
|
96
|
-
color: "
|
|
96
|
+
color: "text.info.subtle",
|
|
97
97
|
},
|
|
98
98
|
itemTrigger: {
|
|
99
99
|
"&:hover": {
|
|
100
|
-
bg: "
|
|
100
|
+
bg: "surface.info.hover",
|
|
101
101
|
outlineOffset: "0px",
|
|
102
102
|
outline: "1px solid",
|
|
103
|
-
outlineColor: "
|
|
103
|
+
outlineColor: "outline.info.hover",
|
|
104
104
|
"&:active": {
|
|
105
|
-
bg: "
|
|
105
|
+
bg: "surface.info.active",
|
|
106
106
|
},
|
|
107
107
|
},
|
|
108
108
|
},
|
|
109
109
|
root: {
|
|
110
|
-
borderColor: "
|
|
111
|
-
bg: "
|
|
110
|
+
borderColor: "outline.info",
|
|
111
|
+
bg: "surface.info",
|
|
112
112
|
},
|
|
113
113
|
title: {
|
|
114
|
-
color: "
|
|
114
|
+
color: "text.info",
|
|
115
115
|
},
|
|
116
116
|
},
|
|
117
117
|
error: {
|
|
118
118
|
itemContent: {
|
|
119
|
-
color: "
|
|
119
|
+
color: "text.critical.subtle",
|
|
120
120
|
},
|
|
121
121
|
itemTrigger: {
|
|
122
122
|
"&:hover": {
|
|
123
|
-
bg: "
|
|
123
|
+
bg: "surface.critical.hover",
|
|
124
124
|
outlineOffset: "0px",
|
|
125
125
|
outline: "1px solid",
|
|
126
|
-
outlineColor: "
|
|
126
|
+
outlineColor: "outline.critical.hover",
|
|
127
127
|
"&:active": {
|
|
128
|
-
bg: "
|
|
128
|
+
bg: "surface.critical.active",
|
|
129
129
|
},
|
|
130
130
|
},
|
|
131
131
|
},
|
|
132
132
|
root: {
|
|
133
|
-
borderColor: "
|
|
134
|
-
bg: "
|
|
133
|
+
borderColor: "outline.critical",
|
|
134
|
+
bg: "surface.critical",
|
|
135
135
|
},
|
|
136
136
|
title: {
|
|
137
|
-
color: "
|
|
137
|
+
color: "text.critical",
|
|
138
138
|
},
|
|
139
139
|
},
|
|
140
140
|
},
|
|
@@ -12,10 +12,10 @@ export const alertServiceSlotRecipe = defineSlotRecipe({
|
|
|
12
12
|
transitionDuration: "fast",
|
|
13
13
|
borderTopRadius: "none",
|
|
14
14
|
borderBottomRadius: "md",
|
|
15
|
-
backgroundColor: "
|
|
15
|
+
backgroundColor: "surface.service",
|
|
16
16
|
outline: "1px solid",
|
|
17
|
-
outlineColor: "
|
|
18
|
-
color: "text.
|
|
17
|
+
outlineColor: "outline.service",
|
|
18
|
+
color: "text.brand",
|
|
19
19
|
boxShadow: "sm",
|
|
20
20
|
},
|
|
21
21
|
itemTrigger: {
|
|
@@ -27,16 +27,16 @@ export const alertServiceSlotRecipe = defineSlotRecipe({
|
|
|
27
27
|
borderBottomRadius: "md",
|
|
28
28
|
borderTopRadius: "none",
|
|
29
29
|
width: "full",
|
|
30
|
-
color: "text.
|
|
30
|
+
color: "text.brand",
|
|
31
31
|
"&:hover": {
|
|
32
|
-
backgroundColor: "
|
|
32
|
+
backgroundColor: "surface.service.hover",
|
|
33
33
|
},
|
|
34
34
|
"&:active": {
|
|
35
|
-
backgroundColor: "
|
|
35
|
+
backgroundColor: "surface.service.active",
|
|
36
36
|
},
|
|
37
37
|
|
|
38
38
|
_icon: {
|
|
39
|
-
color: "
|
|
39
|
+
color: "icon.brand",
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
itemTriggerTitle: {
|
|
@@ -46,7 +46,7 @@ export const alertServiceSlotRecipe = defineSlotRecipe({
|
|
|
46
46
|
fontWeight: "400",
|
|
47
47
|
fontSize: ["mobile.xs", "desktop.xs"],
|
|
48
48
|
textWrap: "nowrap",
|
|
49
|
-
color: "
|
|
49
|
+
color: "text.service.subtle",
|
|
50
50
|
},
|
|
51
51
|
|
|
52
52
|
itemContent: {
|
|
@@ -58,14 +58,14 @@ export const alertServiceSlotRecipe = defineSlotRecipe({
|
|
|
58
58
|
itemBody: {
|
|
59
59
|
marginX: "auto",
|
|
60
60
|
padding: "0 !important",
|
|
61
|
-
color: "
|
|
61
|
+
color: "text.service.subtle",
|
|
62
62
|
gap: 0,
|
|
63
63
|
flexDirection: "column",
|
|
64
64
|
display: "flex",
|
|
65
65
|
"& > p": {
|
|
66
66
|
width: "full",
|
|
67
67
|
borderBottom: "1px dashed",
|
|
68
|
-
borderColor: "outline.
|
|
68
|
+
borderColor: "outline.neutral",
|
|
69
69
|
|
|
70
70
|
paddingY: ["1", "1.5"],
|
|
71
71
|
|
|
@@ -4,21 +4,21 @@ import { alertAnatomy } from "./anatomy";
|
|
|
4
4
|
|
|
5
5
|
const createVariant = (variant: string) => ({
|
|
6
6
|
root: {
|
|
7
|
-
borderColor: `
|
|
8
|
-
background: `
|
|
7
|
+
borderColor: `outline.${variant}`,
|
|
8
|
+
background: `surface.${variant}`,
|
|
9
9
|
},
|
|
10
10
|
description: {
|
|
11
|
-
color: `
|
|
11
|
+
color: `text.${variant}.subtle`,
|
|
12
12
|
},
|
|
13
13
|
title: {
|
|
14
|
-
color: `
|
|
14
|
+
color: `text.${variant}`,
|
|
15
15
|
},
|
|
16
16
|
closeButton: {
|
|
17
|
-
color: `
|
|
17
|
+
color: `text.${variant}`,
|
|
18
18
|
_hover: {
|
|
19
|
-
bg: `
|
|
19
|
+
bg: `surface.${variant}.hover`,
|
|
20
20
|
_active: {
|
|
21
|
-
bg: `
|
|
21
|
+
bg: `surface.${variant}.active`,
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
},
|
|
@@ -54,13 +54,13 @@ export const alertSlotRecipe = defineSlotRecipe({
|
|
|
54
54
|
},
|
|
55
55
|
variants: {
|
|
56
56
|
variant: {
|
|
57
|
-
important: createVariant("
|
|
58
|
-
alt: createVariant("
|
|
59
|
-
error: createVariant("
|
|
57
|
+
important: createVariant("warning"),
|
|
58
|
+
alt: createVariant("notice"),
|
|
59
|
+
error: createVariant("critical"),
|
|
60
60
|
success: createVariant("success"),
|
|
61
61
|
info: createVariant("info"),
|
|
62
62
|
neutral: createVariant("neutral"),
|
|
63
|
-
"error-secondary": createVariant("
|
|
63
|
+
"error-secondary": createVariant("caution"),
|
|
64
64
|
service: createVariant("service"),
|
|
65
65
|
},
|
|
66
66
|
},
|
|
@@ -80,7 +80,7 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
|
80
80
|
borderRadius: "sm",
|
|
81
81
|
flex: "1",
|
|
82
82
|
_highlighted: {
|
|
83
|
-
bg: "ghost.
|
|
83
|
+
bg: "surface.ghost.active",
|
|
84
84
|
},
|
|
85
85
|
_disabled: {
|
|
86
86
|
pointerEvents: "none",
|
|
@@ -89,15 +89,15 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
|
89
89
|
},
|
|
90
90
|
|
|
91
91
|
_hover: {
|
|
92
|
-
bg: "ghost.
|
|
92
|
+
bg: "surface.ghost.hover",
|
|
93
93
|
},
|
|
94
94
|
|
|
95
95
|
_pressed: {
|
|
96
|
-
bg: "ghost.
|
|
96
|
+
bg: "surface.ghost.active",
|
|
97
97
|
},
|
|
98
98
|
|
|
99
99
|
_focus: {
|
|
100
|
-
bg: "ghost.
|
|
100
|
+
bg: "surface.ghost.active",
|
|
101
101
|
},
|
|
102
102
|
},
|
|
103
103
|
|
|
@@ -120,7 +120,7 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
|
120
120
|
itemGroupLabel: {
|
|
121
121
|
px: "3",
|
|
122
122
|
py: "0.5",
|
|
123
|
-
color: "floating
|
|
123
|
+
color: "text.floating",
|
|
124
124
|
fontFeatureSettings: "liga off",
|
|
125
125
|
fontSize: ["mobile.sm, desktop.sm"],
|
|
126
126
|
fontWeight: "bold",
|
|
@@ -33,11 +33,11 @@ export const breadcrumbSlotRecipe = defineSlotRecipe({
|
|
|
33
33
|
core: {
|
|
34
34
|
link: {
|
|
35
35
|
_hover: {
|
|
36
|
-
outlineColor: "core.
|
|
36
|
+
outlineColor: "outline.core.hover",
|
|
37
37
|
outlineWidth: tokens.size.stroke.md,
|
|
38
38
|
outlineStyle: "solid",
|
|
39
39
|
_active: {
|
|
40
|
-
backgroundColor: "core.
|
|
40
|
+
backgroundColor: "surface.core.active",
|
|
41
41
|
outline: "none",
|
|
42
42
|
},
|
|
43
43
|
},
|
|
@@ -46,9 +46,9 @@ export const breadcrumbSlotRecipe = defineSlotRecipe({
|
|
|
46
46
|
ghost: {
|
|
47
47
|
link: {
|
|
48
48
|
_hover: {
|
|
49
|
-
backgroundColor: "ghost.
|
|
49
|
+
backgroundColor: "surface.ghost.hover",
|
|
50
50
|
_active: {
|
|
51
|
-
backgroundColor: "ghost.
|
|
51
|
+
backgroundColor: "surface.ghost.active",
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
},
|
|
@@ -14,11 +14,11 @@ export const checkboxSlotRecipe = defineSlotRecipe({
|
|
|
14
14
|
gap: 1.5,
|
|
15
15
|
_hover: {
|
|
16
16
|
"& > input:enabled:not([aria-invalid]) + .spor-checkbox__control": {
|
|
17
|
-
borderColor: "core.
|
|
17
|
+
borderColor: "outline.core.hover",
|
|
18
18
|
},
|
|
19
19
|
"& > input:enabled:checked:not([aria-invalid]) + .spor-checkbox__control":
|
|
20
20
|
{
|
|
21
|
-
background: "brand.
|
|
21
|
+
background: "surface.brand.hover",
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
},
|
|
@@ -40,31 +40,25 @@ export const checkboxSlotRecipe = defineSlotRecipe({
|
|
|
40
40
|
transitionProperty: "background, border-color",
|
|
41
41
|
transitionDuration: "moderate",
|
|
42
42
|
border: "2px solid",
|
|
43
|
-
borderColor: "core
|
|
43
|
+
borderColor: "outline.core",
|
|
44
44
|
borderRadius: "xs",
|
|
45
45
|
|
|
46
46
|
_checked: {
|
|
47
|
-
color: "brand
|
|
48
|
-
borderColor: "brand
|
|
49
|
-
background: "brand
|
|
47
|
+
color: "icon.brand",
|
|
48
|
+
borderColor: "surface.brand",
|
|
49
|
+
background: "surface.brand",
|
|
50
50
|
_focus: {
|
|
51
|
-
borderColor: "brand.
|
|
51
|
+
borderColor: "surface.brand.active",
|
|
52
52
|
},
|
|
53
|
-
|
|
54
|
-
_disabled: {
|
|
55
|
-
background: "surface.disabled",
|
|
56
|
-
color: "text.disabled",
|
|
57
|
-
borderColor: "currentColor",
|
|
58
|
-
},
|
|
59
|
-
|
|
60
53
|
_invalid: {
|
|
61
54
|
backgroundColor: "outline.error",
|
|
62
55
|
borderColor: "outline.error",
|
|
63
56
|
},
|
|
64
57
|
},
|
|
65
58
|
_disabled: {
|
|
66
|
-
|
|
67
|
-
borderColor: "
|
|
59
|
+
background: "surface.disabled",
|
|
60
|
+
borderColor: "outline.disabled",
|
|
61
|
+
color: "text.disabled",
|
|
68
62
|
},
|
|
69
63
|
_invalid: {
|
|
70
64
|
borderColor: "outline.error",
|
|
@@ -74,7 +68,7 @@ export const checkboxSlotRecipe = defineSlotRecipe({
|
|
|
74
68
|
outlineColor: "outline.focus",
|
|
75
69
|
outlineOffset: tokens.size.stroke.md,
|
|
76
70
|
outlineWidth: tokens.size.stroke.md,
|
|
77
|
-
borderColor: "core
|
|
71
|
+
borderColor: "outline.core",
|
|
78
72
|
borderWidth: tokens.size.stroke.md,
|
|
79
73
|
},
|
|
80
74
|
},
|