@vygruppen/spor-react 12.24.7 → 12.24.8
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 +4 -3
- package/CHANGELOG.md +8 -0
- package/dist/index.cjs +27 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.mjs +27 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/NumericStepper.tsx +7 -2
- package/src/layout/RadioCard.tsx +10 -3
- package/src/theme/slot-recipes/numeric-stepper.ts +11 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@12.24.
|
|
2
|
+
> @vygruppen/spor-react@12.24.8 build /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx, src/icons/index.tsx
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mDTS[39m Build start
|
|
14
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m356.25 KB[39m
|
|
15
15
|
[32mCJS[39m [1mdist/icons/index.cjs [22m[32m381.00 B[39m
|
|
16
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m702.33 KB[39m
|
|
16
17
|
[32mCJS[39m [1mdist/icons/index.cjs.map [22m[32m157.00 B[39m
|
|
17
|
-
[32mCJS[39m
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in 2891ms
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 2885ms
|
|
19
19
|
[32mESM[39m [1mdist/icons/index.mjs [22m[32m110.00 B[39m
|
|
20
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
20
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m332.08 KB[39m
|
|
21
21
|
[32mESM[39m [1mdist/icons/index.mjs.map [22m[32m157.00 B[39m
|
|
22
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
23
|
-
[32mESM[39m ⚡️ Build success in
|
|
24
|
-
[32mDTS[39m ⚡️ Build success in
|
|
22
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m702.33 KB[39m
|
|
23
|
+
[32mESM[39m ⚡️ Build success in 2885ms
|
|
24
|
+
[32mDTS[39m ⚡️ Build success in 21486ms
|
|
25
25
|
[32mDTS[39m [1mdist/icons/index.d.ts [22m[32m44.00 B[39m
|
|
26
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m147.
|
|
26
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m147.64 KB[39m
|
|
27
27
|
[32mDTS[39m [1mdist/icons/index.d.cts [22m[32m44.00 B[39m
|
|
28
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m147.
|
|
28
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m147.64 KB[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@12.24.
|
|
2
|
+
> @vygruppen/spor-react@12.24.8 postinstall /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> chakra typegen src/theme/index.ts
|
|
4
4
|
|
|
5
|
-
[dotenv@17.3.1] injecting env (0) from .env -- tip: ⚙️
|
|
5
|
+
[dotenv@17.3.1] injecting env (0) from .env -- tip: ⚙️ suppress all logs with { quiet: true }
|
|
6
6
|
[90m┌[39m Chakra CLI ⚡️
|
|
7
7
|
[?25l[90m│[39m
|
|
8
8
|
[35m◒[39m Generating conditions types...
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
[?25h[?25l[90m│[39m
|
|
14
14
|
[32m◇[39m ✅ Generated utility typings
|
|
15
15
|
[?25h[?25l[90m│[39m
|
|
16
|
-
[
|
|
16
|
+
[35m◒[39m Generating token types...
|
|
17
|
+
[999D[J[32m◇[39m ✅ Generated token typings
|
|
17
18
|
[?25h[?25l[90m│[39m
|
|
18
19
|
[35m◒[39m Generating system types...
|
|
19
20
|
[999D[J[32m◇[39m ✅ Generated system types
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @vygruppen/spor-react
|
|
2
2
|
|
|
3
|
+
## 12.24.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 65d79ba: add padding to numeric stepper when stepSize is visible
|
|
8
|
+
- e83b70a: improve the support of voiceover for RadioCards
|
|
9
|
+
- @vygruppen/spor-icon-react@4.5.2
|
|
10
|
+
|
|
3
11
|
## 12.24.7
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1523,10 +1523,17 @@ var PressableCard = React20.forwardRef(
|
|
|
1523
1523
|
PressableCard.displayName = "PressableCard";
|
|
1524
1524
|
var RadioCard = React20.forwardRef(
|
|
1525
1525
|
(props, ref) => {
|
|
1526
|
-
const { inputProps, children } = props;
|
|
1526
|
+
const { inputProps, children, value } = props;
|
|
1527
1527
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.RadioCard.Item, { ...props, children: [
|
|
1528
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1529
|
-
|
|
1528
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1529
|
+
react.RadioCard.ItemHiddenInput,
|
|
1530
|
+
{
|
|
1531
|
+
ref,
|
|
1532
|
+
...inputProps,
|
|
1533
|
+
"aria-label": value
|
|
1534
|
+
}
|
|
1535
|
+
),
|
|
1536
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.RadioCard.ItemControl, { "aria-hidden": value ? true : false, children })
|
|
1530
1537
|
] });
|
|
1531
1538
|
}
|
|
1532
1539
|
);
|
|
@@ -4060,7 +4067,8 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
|
|
|
4060
4067
|
focusOnAddButton();
|
|
4061
4068
|
}
|
|
4062
4069
|
},
|
|
4063
|
-
disabled: disabled || value <= minValue
|
|
4070
|
+
disabled: disabled || value <= minValue,
|
|
4071
|
+
withStepLabel: stepSize != 1
|
|
4064
4072
|
}
|
|
4065
4073
|
),
|
|
4066
4074
|
withInput ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4109,7 +4117,8 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
|
|
|
4109
4117
|
)
|
|
4110
4118
|
),
|
|
4111
4119
|
onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
|
|
4112
|
-
disabled: disabled || value >= maxValue
|
|
4120
|
+
disabled: disabled || value >= maxValue,
|
|
4121
|
+
withStepLabel: stepSize != 1
|
|
4113
4122
|
}
|
|
4114
4123
|
)
|
|
4115
4124
|
]
|
|
@@ -4118,8 +4127,9 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
|
|
|
4118
4127
|
});
|
|
4119
4128
|
NumericStepper.displayName = "NumericStepper";
|
|
4120
4129
|
var VerySmallButton = React20__namespace.default.forwardRef((props, ref) => {
|
|
4130
|
+
const { withStepLabel = false, ...rest } = props;
|
|
4121
4131
|
const recipe = react.useSlotRecipe({ key: "numericStepper" });
|
|
4122
|
-
const styles = recipe({
|
|
4132
|
+
const styles = recipe({ withStepLabel });
|
|
4123
4133
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4124
4134
|
IconButton,
|
|
4125
4135
|
{
|
|
@@ -4127,7 +4137,7 @@ var VerySmallButton = React20__namespace.default.forwardRef((props, ref) => {
|
|
|
4127
4137
|
size: "xs",
|
|
4128
4138
|
css: styles.button,
|
|
4129
4139
|
ref,
|
|
4130
|
-
...
|
|
4140
|
+
...rest
|
|
4131
4141
|
}
|
|
4132
4142
|
);
|
|
4133
4143
|
});
|
|
@@ -9831,6 +9841,16 @@ var numericStepperRecipe = react.defineSlotRecipe({
|
|
|
9831
9841
|
height: "1.2rem"
|
|
9832
9842
|
}
|
|
9833
9843
|
}
|
|
9844
|
+
},
|
|
9845
|
+
variants: {
|
|
9846
|
+
withStepLabel: {
|
|
9847
|
+
true: {
|
|
9848
|
+
button: {
|
|
9849
|
+
paddingInline: "1 !important"
|
|
9850
|
+
}
|
|
9851
|
+
},
|
|
9852
|
+
false: {}
|
|
9853
|
+
}
|
|
9834
9854
|
}
|
|
9835
9855
|
});
|
|
9836
9856
|
var paginationSlotRecipe = react.defineSlotRecipe({
|