@vygruppen/spor-react 13.4.0 → 13.4.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 +2 -2
- package/CHANGELOG.md +7 -0
- package/dist/index.cjs +24 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -56
- package/dist/index.d.ts +17 -56
- package/dist/index.mjs +24 -64
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/linjetag/InfoTag.tsx +4 -2
- package/src/linjetag/LineIcon.tsx +1 -1
- package/src/linjetag/TravelTag.tsx +4 -4
- package/src/linjetag/types.ts +4 -0
- package/src/theme/slot-recipes/travel-tag.ts +15 -58
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@13.4.
|
|
2
|
+
> @vygruppen/spor-react@13.4.1 build /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/index.tsx, src/icons/index.tsx
|
|
@@ -11,18 +11,18 @@ CLI Cleaning output folder
|
|
|
11
11
|
ESM Build start
|
|
12
12
|
CJS Build start
|
|
13
13
|
DTS Build start
|
|
14
|
-
CJS dist/index.cjs 376.01 KB
|
|
15
14
|
CJS dist/icons/index.cjs 381.00 B
|
|
16
|
-
CJS dist/index.cjs.
|
|
15
|
+
CJS dist/index.cjs 375.20 KB
|
|
17
16
|
CJS dist/icons/index.cjs.map 157.00 B
|
|
18
|
-
CJS
|
|
19
|
-
|
|
17
|
+
CJS dist/index.cjs.map 745.37 KB
|
|
18
|
+
CJS ⚡️ Build success in 3155ms
|
|
20
19
|
ESM dist/icons/index.mjs 110.00 B
|
|
21
|
-
ESM dist/index.mjs.
|
|
20
|
+
ESM dist/index.mjs 350.63 KB
|
|
22
21
|
ESM dist/icons/index.mjs.map 157.00 B
|
|
23
|
-
ESM
|
|
24
|
-
|
|
22
|
+
ESM dist/index.mjs.map 745.37 KB
|
|
23
|
+
ESM ⚡️ Build success in 3156ms
|
|
24
|
+
DTS ⚡️ Build success in 22936ms
|
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
|
26
|
-
DTS dist/index.d.ts
|
|
26
|
+
DTS dist/index.d.ts 151.03 KB
|
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
|
28
|
-
DTS dist/index.d.cts
|
|
28
|
+
DTS dist/index.d.cts 151.03 KB
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@13.4.
|
|
2
|
+
> @vygruppen/spor-react@13.4.1 postinstall /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> chakra typegen src/theme/index.ts
|
|
4
4
|
|
|
5
|
-
◇ injected env (0) from .env // tip:
|
|
5
|
+
◇ injected env (0) from .env // tip: ⌘ enable debugging { debug: true }
|
|
6
6
|
[90m┌[39m Chakra CLI ⚡️
|
|
7
7
|
[?25l[90m│[39m
|
|
8
8
|
[35m◒[39m Generating conditions types...
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @vygruppen/spor-react
|
|
2
2
|
|
|
3
|
+
## 13.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e5b9c5e: Added customization option for travel and info tags `descriptionProps` & `titleProps`
|
|
8
|
+
- b6495d6: Update TravelTag background colours and walk LineIcon dark mode colour
|
|
9
|
+
|
|
3
10
|
## 13.4.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -5408,7 +5408,7 @@ var LineIcon = function LineIcon2({
|
|
|
5408
5408
|
borderColor: variant === "walk" ? "outline.core" : "transparent",
|
|
5409
5409
|
"aria-label": label,
|
|
5410
5410
|
ref,
|
|
5411
|
-
className: clsx_default("light", rest.className),
|
|
5411
|
+
className: variant === "walk" ? void 0 : clsx_default("light", rest.className),
|
|
5412
5412
|
children: /* @__PURE__ */ jsxRuntime.jsx(LinjeTagIcon, { size, css: styles.icon, variant: getIconVariant() })
|
|
5413
5413
|
}
|
|
5414
5414
|
);
|
|
@@ -5418,6 +5418,8 @@ var InfoTag = ({
|
|
|
5418
5418
|
size = "md",
|
|
5419
5419
|
title,
|
|
5420
5420
|
description,
|
|
5421
|
+
descriptionProps,
|
|
5422
|
+
titleProps,
|
|
5421
5423
|
...customProps
|
|
5422
5424
|
}) => {
|
|
5423
5425
|
const recipe = react.useSlotRecipe({ key: "infoTag" });
|
|
@@ -5436,9 +5438,9 @@ var InfoTag = ({
|
|
|
5436
5438
|
}
|
|
5437
5439
|
),
|
|
5438
5440
|
/* @__PURE__ */ jsxRuntime.jsxs(react.Box, { css: styles.textContainer, children: [
|
|
5439
|
-
title && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: "span", css: styles.title, children: title }),
|
|
5441
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: "span", css: styles.title, ...titleProps, children: title }),
|
|
5440
5442
|
title && description && " ",
|
|
5441
|
-
description && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: "span", css: styles.description, children: description })
|
|
5443
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: "span", css: styles.description, ...descriptionProps, children: description })
|
|
5442
5444
|
] })
|
|
5443
5445
|
] });
|
|
5444
5446
|
};
|
|
@@ -5470,6 +5472,8 @@ var TravelTag = function TravelTag2({
|
|
|
5470
5472
|
foregroundColor,
|
|
5471
5473
|
backgroundColor,
|
|
5472
5474
|
customIconVariant,
|
|
5475
|
+
descriptionProps,
|
|
5476
|
+
titleProps,
|
|
5473
5477
|
...rest
|
|
5474
5478
|
}) {
|
|
5475
5479
|
const recipie = react.useSlotRecipe({ key: "travelTag" });
|
|
@@ -5484,7 +5488,6 @@ var TravelTag = function TravelTag2({
|
|
|
5484
5488
|
css: styles.container,
|
|
5485
5489
|
"aria-disabled": disabled,
|
|
5486
5490
|
ref,
|
|
5487
|
-
className: clsx_default("light", rest.className),
|
|
5488
5491
|
backgroundColor,
|
|
5489
5492
|
...rest,
|
|
5490
5493
|
children: [
|
|
@@ -5502,9 +5505,9 @@ var TravelTag = function TravelTag2({
|
|
|
5502
5505
|
}
|
|
5503
5506
|
),
|
|
5504
5507
|
/* @__PURE__ */ jsxRuntime.jsxs(react.Box, { css: styles.textContainer, children: [
|
|
5505
|
-
title && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: "span", css: styles.title, children: title }),
|
|
5508
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: "span", css: styles.title, ...titleProps, children: title }),
|
|
5506
5509
|
title && description && " ",
|
|
5507
|
-
description && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: "span", css: styles.description, children: description })
|
|
5510
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: "span", css: styles.description, ...descriptionProps, children: description })
|
|
5508
5511
|
] }),
|
|
5509
5512
|
renderDeviationLevelIcon(deviationLevel, size, styles.deviationIcon)
|
|
5510
5513
|
]
|
|
@@ -10008,9 +10011,7 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
|
|
|
10008
10011
|
display: "flex",
|
|
10009
10012
|
alignItems: "center",
|
|
10010
10013
|
padding: 0.5,
|
|
10011
|
-
|
|
10012
|
-
background: "surface.disabled"
|
|
10013
|
-
},
|
|
10014
|
+
backgroundColor: "surface.disabled",
|
|
10014
10015
|
width: "fit-content",
|
|
10015
10016
|
transitionDuration: "fast",
|
|
10016
10017
|
transitionProperty: "common",
|
|
@@ -10074,62 +10075,21 @@ var travelTagSlotRecipe = react.defineSlotRecipe({
|
|
|
10074
10075
|
none: {}
|
|
10075
10076
|
},
|
|
10076
10077
|
variant: {
|
|
10077
|
-
"local-train": {
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
},
|
|
10082
|
-
"
|
|
10083
|
-
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
},
|
|
10087
|
-
"
|
|
10088
|
-
container: {
|
|
10089
|
-
backgroundColor: "linjetag.regionEkspressLight"
|
|
10090
|
-
}
|
|
10091
|
-
},
|
|
10092
|
-
"long-distance-train": {
|
|
10093
|
-
container: {
|
|
10094
|
-
backgroundColor: "linjetag.fjerntogLight"
|
|
10095
|
-
}
|
|
10096
|
-
},
|
|
10097
|
-
"airport-express-train": {
|
|
10098
|
-
container: {
|
|
10099
|
-
backgroundColor: "linjetag.flytogLight"
|
|
10100
|
-
}
|
|
10101
|
-
},
|
|
10102
|
-
"vy-bus": {
|
|
10103
|
-
container: {
|
|
10104
|
-
backgroundColor: "linjetag.vyBussLight"
|
|
10105
|
-
}
|
|
10106
|
-
},
|
|
10107
|
-
"local-bus": {
|
|
10108
|
-
container: {
|
|
10109
|
-
backgroundColor: "linjetag.lokalbussLight"
|
|
10110
|
-
}
|
|
10111
|
-
},
|
|
10112
|
-
ferry: {
|
|
10113
|
-
container: {
|
|
10114
|
-
backgroundColor: "linjetag.fergeLight"
|
|
10115
|
-
}
|
|
10116
|
-
},
|
|
10117
|
-
subway: {
|
|
10118
|
-
container: {
|
|
10119
|
-
backgroundColor: "linjetag.tbaneLight"
|
|
10120
|
-
}
|
|
10121
|
-
},
|
|
10122
|
-
tram: {
|
|
10123
|
-
container: {
|
|
10124
|
-
backgroundColor: "linjetag.trikkLight"
|
|
10125
|
-
}
|
|
10126
|
-
},
|
|
10127
|
-
"alt-transport": {
|
|
10128
|
-
container: {
|
|
10129
|
-
backgroundColor: "linjetag.altTransportLight"
|
|
10130
|
-
}
|
|
10131
|
-
},
|
|
10078
|
+
"local-train": {},
|
|
10079
|
+
"region-train": {},
|
|
10080
|
+
"region-express-train": {},
|
|
10081
|
+
"long-distance-train": {},
|
|
10082
|
+
"airport-express-train": {},
|
|
10083
|
+
"vy-bus": {},
|
|
10084
|
+
"local-bus": {},
|
|
10085
|
+
ferry: {},
|
|
10086
|
+
subway: {},
|
|
10087
|
+
tram: {},
|
|
10088
|
+
"alt-transport": {},
|
|
10132
10089
|
walk: {
|
|
10090
|
+
container: {
|
|
10091
|
+
backgroundColor: "none"
|
|
10092
|
+
},
|
|
10133
10093
|
textContainer: {
|
|
10134
10094
|
position: "absolute",
|
|
10135
10095
|
left: "0.875rem",
|