@vygruppen/spor-react 12.4.5 → 12.4.6
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 +12 -12
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/index.d.mts +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.js +20 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/linjetag/InfoTag.tsx +0 -1
- package/src/linjetag/LineIcon.tsx +1 -1
- package/src/linjetag/types.ts +1 -1
- package/src/theme/slot-recipes/accordion.ts +9 -10
- package/src/theme/slot-recipes/info-tag.ts +11 -7
package/package.json
CHANGED
package/src/linjetag/InfoTag.tsx
CHANGED
@@ -24,7 +24,7 @@ type VariantProps = DefaultVariantProps | CustomVariantProps;
|
|
24
24
|
export type LineIconProps = Exclude<BoxProps, "variant"> &
|
25
25
|
VariantProps &
|
26
26
|
PropsWithChildren<LineIconVariantProps> & {
|
27
|
-
size
|
27
|
+
size?: TagProps["size"];
|
28
28
|
foregroundColor?: string;
|
29
29
|
backgroundColor?: string;
|
30
30
|
disabled?: boolean;
|
package/src/linjetag/types.ts
CHANGED
@@ -94,24 +94,24 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
94
94
|
},
|
95
95
|
"&:hover": {
|
96
96
|
outlineWidth: tokens.size.stroke.md,
|
97
|
-
outlineColor: "core.outline
|
98
|
-
outline: "solid",
|
97
|
+
outlineColor: "core.outline",
|
98
|
+
outline: "2px solid",
|
99
99
|
|
100
100
|
outlineOffset: 0,
|
101
101
|
},
|
102
102
|
"&:active": {
|
103
103
|
backgroundColor: "core.surface.active",
|
104
104
|
outlineWidth: tokens.size.stroke.sm,
|
105
|
-
|
106
|
-
outline: "solid",
|
105
|
+
outline: "none",
|
107
106
|
},
|
108
107
|
},
|
109
108
|
},
|
110
109
|
floating: {
|
111
110
|
item: {
|
112
|
-
outline: "solid",
|
111
|
+
outline: "1px solid",
|
113
112
|
outlineWidth: tokens.size.stroke.sm,
|
114
|
-
|
113
|
+
boxShadow: "sm",
|
114
|
+
outlineColor: "floating.outline",
|
115
115
|
},
|
116
116
|
itemTrigger: {
|
117
117
|
_expanded: {
|
@@ -119,16 +119,15 @@ export const accordionSlotRecipe = defineSlotRecipe({
|
|
119
119
|
},
|
120
120
|
"&:hover": {
|
121
121
|
outlineWidth: tokens.size.stroke.md,
|
122
|
+
outline: "1px solid",
|
122
123
|
outlineColor: "floating.outline.hover",
|
123
|
-
outline: "solid",
|
124
124
|
|
125
|
-
outlineOffset:
|
125
|
+
outlineOffset: 1,
|
126
126
|
},
|
127
127
|
"&:active": {
|
128
128
|
backgroundColor: "floating.surface.active",
|
129
129
|
outlineWidth: tokens.size.stroke.sm,
|
130
|
-
|
131
|
-
outline: "solid",
|
130
|
+
outline: "none",
|
132
131
|
},
|
133
132
|
},
|
134
133
|
},
|
@@ -26,13 +26,17 @@ export const infoTagSlotRecipe = defineSlotRecipe({
|
|
26
26
|
},
|
27
27
|
variants: {
|
28
28
|
variant: {
|
29
|
-
walk: {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
},
|
29
|
+
walk: {},
|
30
|
+
ferry: {},
|
31
|
+
subway: {},
|
32
|
+
tram: {},
|
33
|
+
"local-train": {},
|
34
|
+
"region-train": {},
|
35
|
+
"region-express-train": {},
|
36
|
+
"long-distance-train": {},
|
37
|
+
"airport-express-train": {},
|
38
|
+
"vy-bus": {},
|
39
|
+
"local-bus": {},
|
36
40
|
},
|
37
41
|
size: {
|
38
42
|
...travelTagSlotRecipe.variants?.size,
|