@vygruppen/spor-react 12.21.0 → 12.21.2
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 +8 -8
- package/.turbo/turbo-postinstall.log +2 -2
- package/CHANGELOG.md +21 -0
- package/dist/index.cjs +96 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +96 -67
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/CardSelect.tsx +1 -0
- package/src/input/NumericStepper.tsx +19 -1
- package/src/theme/slot-recipes/radio.ts +7 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@12.21.
|
|
2
|
+
> @vygruppen/spor-react@12.21.2 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,17 +11,17 @@ CLI Cleaning output folder
|
|
|
11
11
|
ESM Build start
|
|
12
12
|
CJS Build start
|
|
13
13
|
DTS Build start
|
|
14
|
-
CJS dist/index.cjs
|
|
14
|
+
CJS dist/index.cjs 340.15 KB
|
|
15
15
|
CJS dist/icons/index.cjs 381.00 B
|
|
16
|
-
CJS dist/index.cjs.map 672.
|
|
16
|
+
CJS dist/index.cjs.map 672.88 KB
|
|
17
17
|
CJS dist/icons/index.cjs.map 157.00 B
|
|
18
|
-
CJS ⚡️ Build success in
|
|
19
|
-
ESM dist/index.mjs 316.
|
|
18
|
+
CJS ⚡️ Build success in 2574ms
|
|
19
|
+
ESM dist/index.mjs 316.87 KB
|
|
20
20
|
ESM dist/icons/index.mjs 110.00 B
|
|
21
|
+
ESM dist/index.mjs.map 672.88 KB
|
|
21
22
|
ESM dist/icons/index.mjs.map 157.00 B
|
|
22
|
-
ESM
|
|
23
|
-
|
|
24
|
-
DTS ⚡️ Build success in 20477ms
|
|
23
|
+
ESM ⚡️ Build success in 2576ms
|
|
24
|
+
DTS ⚡️ Build success in 19478ms
|
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
|
26
26
|
DTS dist/index.d.ts 158.97 KB
|
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@12.21.
|
|
2
|
+
> @vygruppen/spor-react@12.21.2 postinstall /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> chakra typegen src/theme/index.ts
|
|
4
4
|
|
|
5
|
-
[dotenv@17.2.2] injecting env (0) from .env -- tip:
|
|
5
|
+
[dotenv@17.2.2] injecting env (0) from .env -- tip: 📡 observe env with Radar: https://dotenvx.com/radar
|
|
6
6
|
[90m┌[39m Chakra CLI ⚡️
|
|
7
7
|
[?25l[90m│[39m
|
|
8
8
|
[32m◇[39m ✅ Generated conditions typings
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @vygruppen/spor-react
|
|
2
2
|
|
|
3
|
+
## 12.21.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 166d9d3: - Fix props not being forwarded correctly in NumericStepper component
|
|
8
|
+
- Rename "usb-charging" icon to "usb charging" (using space instead of "-")
|
|
9
|
+
→ aligns with existing icon naming convention where type/variant is separated by space rather than hyphen
|
|
10
|
+
- 0a43f61: fix wrong borderRadius CardSelect
|
|
11
|
+
- 1c9db69: Added focus on radio buttons
|
|
12
|
+
- Updated dependencies [2899114]
|
|
13
|
+
- @vygruppen/spor-design-tokens@4.3.2
|
|
14
|
+
- @vygruppen/spor-icon-react@4.5.1
|
|
15
|
+
|
|
16
|
+
## 12.21.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 7b2b1a4: New icon for usb-charging on board
|
|
21
|
+
- Updated dependencies [7b2b1a4]
|
|
22
|
+
- @vygruppen/spor-icon-react@4.5.1
|
|
23
|
+
|
|
3
24
|
## 12.21.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -3079,6 +3079,7 @@ var CardSelectContent = React29.forwardRef(
|
|
|
3079
3079
|
bg: "bg",
|
|
3080
3080
|
border: "sm",
|
|
3081
3081
|
borderColor: "floating.outline",
|
|
3082
|
+
borderRadius: "sm",
|
|
3082
3083
|
...props,
|
|
3083
3084
|
children
|
|
3084
3085
|
}
|
|
@@ -3748,6 +3749,12 @@ var NumericStepper = React29__namespace.default.forwardRef((props, ref) => {
|
|
|
3748
3749
|
withInput = true,
|
|
3749
3750
|
stepSize = 1,
|
|
3750
3751
|
ariaLabelContext = { singular: "", plural: "" },
|
|
3752
|
+
invalid,
|
|
3753
|
+
readOnly,
|
|
3754
|
+
required,
|
|
3755
|
+
label,
|
|
3756
|
+
helperText,
|
|
3757
|
+
errorText,
|
|
3751
3758
|
...rest
|
|
3752
3759
|
} = props;
|
|
3753
3760
|
const addButtonRef = React29.useRef(null);
|
|
@@ -3764,77 +3771,93 @@ var NumericStepper = React29__namespace.default.forwardRef((props, ref) => {
|
|
|
3764
3771
|
var _a5;
|
|
3765
3772
|
(_a5 = addButtonRef.current) == null ? void 0 : _a5.focus();
|
|
3766
3773
|
};
|
|
3767
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3774
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3775
|
+
Field3,
|
|
3776
|
+
{
|
|
3777
|
+
css: styles.root,
|
|
3778
|
+
width: "auto",
|
|
3779
|
+
id: idProperty,
|
|
3780
|
+
ref,
|
|
3781
|
+
label,
|
|
3782
|
+
helperText,
|
|
3783
|
+
errorText,
|
|
3784
|
+
invalid,
|
|
3785
|
+
readOnly,
|
|
3786
|
+
required,
|
|
3787
|
+
children: [
|
|
3788
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3789
|
+
VerySmallButton,
|
|
3790
|
+
{
|
|
3791
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(SubtractIcon, { stepLabel: clampedStepSize }),
|
|
3792
|
+
"aria-label": t(
|
|
3793
|
+
texts14.decrementButtonAriaLabel(
|
|
3794
|
+
clampedStepSize,
|
|
3795
|
+
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
3796
|
+
)
|
|
3797
|
+
),
|
|
3798
|
+
onClick: () => {
|
|
3799
|
+
onChange(Math.max(value - clampedStepSize, minValue));
|
|
3800
|
+
if (Math.max(value - clampedStepSize, minValue) <= minValue) {
|
|
3801
|
+
focusOnAddButton();
|
|
3802
|
+
}
|
|
3803
|
+
},
|
|
3804
|
+
disabled: disabled || value <= minValue,
|
|
3805
|
+
id: value <= minValue ? void 0 : idProperty
|
|
3782
3806
|
}
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3807
|
+
),
|
|
3808
|
+
withInput ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3809
|
+
react.Input,
|
|
3810
|
+
{
|
|
3811
|
+
min: minValue,
|
|
3812
|
+
max: maxValue,
|
|
3813
|
+
name: nameProperty,
|
|
3814
|
+
value,
|
|
3815
|
+
disabled,
|
|
3816
|
+
id: value === 0 ? void 0 : idProperty,
|
|
3817
|
+
css: styles.input,
|
|
3818
|
+
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
|
3819
|
+
"aria-live": "assertive",
|
|
3820
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
3821
|
+
onChange: (event) => {
|
|
3822
|
+
const numericInput = Number(event.target.value);
|
|
3823
|
+
if (Number.isNaN(numericInput)) {
|
|
3824
|
+
return;
|
|
3825
|
+
}
|
|
3826
|
+
onChange(Math.max(Math.min(numericInput, maxValue), minValue));
|
|
3827
|
+
if (Math.max(Math.min(numericInput, maxValue), minValue) === 0) {
|
|
3828
|
+
focusOnAddButton();
|
|
3829
|
+
}
|
|
3830
|
+
},
|
|
3831
|
+
...rest
|
|
3805
3832
|
}
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3833
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3834
|
+
Text3,
|
|
3835
|
+
{
|
|
3836
|
+
"aria-live": "assertive",
|
|
3837
|
+
paddingX: "0.95rem",
|
|
3838
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
3839
|
+
children: value
|
|
3809
3840
|
}
|
|
3810
|
-
}
|
|
3811
|
-
}
|
|
3812
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3813
|
-
Text3,
|
|
3814
|
-
{
|
|
3815
|
-
"aria-live": "assertive",
|
|
3816
|
-
paddingX: "0.95rem",
|
|
3817
|
-
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
3818
|
-
children: value
|
|
3819
|
-
}
|
|
3820
|
-
),
|
|
3821
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3822
|
-
VerySmallButton,
|
|
3823
|
-
{
|
|
3824
|
-
ref: addButtonRef,
|
|
3825
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(AddIcon, { stepLabel: clampedStepSize }),
|
|
3826
|
-
"aria-label": t(
|
|
3827
|
-
texts14.incrementButtonAriaLabel(
|
|
3828
|
-
clampedStepSize,
|
|
3829
|
-
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
3830
|
-
)
|
|
3831
3841
|
),
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3842
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3843
|
+
VerySmallButton,
|
|
3844
|
+
{
|
|
3845
|
+
ref: addButtonRef,
|
|
3846
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(AddIcon, { stepLabel: clampedStepSize }),
|
|
3847
|
+
"aria-label": t(
|
|
3848
|
+
texts14.incrementButtonAriaLabel(
|
|
3849
|
+
clampedStepSize,
|
|
3850
|
+
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
3851
|
+
)
|
|
3852
|
+
),
|
|
3853
|
+
onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
|
|
3854
|
+
disabled: disabled || value >= maxValue,
|
|
3855
|
+
id: value >= maxValue ? void 0 : idProperty
|
|
3856
|
+
}
|
|
3857
|
+
)
|
|
3858
|
+
]
|
|
3859
|
+
}
|
|
3860
|
+
);
|
|
3838
3861
|
});
|
|
3839
3862
|
NumericStepper.displayName = "NumericStepper";
|
|
3840
3863
|
var VerySmallButton = React29__namespace.default.forwardRef((props, ref) => {
|
|
@@ -9489,6 +9512,12 @@ var radioGroupSlotRecipe = react.defineSlotRecipe({
|
|
|
9489
9512
|
backgroundColor: "outline.disabled"
|
|
9490
9513
|
}
|
|
9491
9514
|
},
|
|
9515
|
+
_focusVisible: {
|
|
9516
|
+
outlineWidth: "2px",
|
|
9517
|
+
outlineColor: "outline.focus",
|
|
9518
|
+
outlineStyle: "solid",
|
|
9519
|
+
outlineOffset: "1px"
|
|
9520
|
+
},
|
|
9492
9521
|
"& .dot": {
|
|
9493
9522
|
height: "full",
|
|
9494
9523
|
width: "full",
|