@vygruppen/spor-react 12.12.0 → 12.13.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 +12 -12
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +16 -0
- package/dist/index.cjs +7 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.mjs +7 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/Input.tsx +2 -0
- package/src/input/NumericStepper.tsx +4 -14
- package/src/theme/recipes/button.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.
|
2
|
+
> @vygruppen/spor-react@12.13.0 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
|
-
|
15
|
-
CJS dist/index.cjs 315.50 KB
|
16
|
-
CJS dist/icons/index.cjs.map 157.00 B
|
17
|
-
CJS dist/index.cjs.map 630.18 KB
|
18
|
-
CJS ⚡️ Build success in 2778ms
|
19
|
-
ESM dist/index.mjs 294.09 KB
|
14
|
+
ESM dist/index.mjs 293.92 KB
|
20
15
|
ESM dist/icons/index.mjs 110.00 B
|
21
|
-
ESM dist/index.mjs.map 630.18 KB
|
22
16
|
ESM dist/icons/index.mjs.map 157.00 B
|
23
|
-
ESM
|
24
|
-
|
17
|
+
ESM dist/index.mjs.map 629.73 KB
|
18
|
+
ESM ⚡️ Build success in 2545ms
|
19
|
+
CJS dist/index.cjs 315.32 KB
|
20
|
+
CJS dist/icons/index.cjs 381.00 B
|
21
|
+
CJS dist/icons/index.cjs.map 157.00 B
|
22
|
+
CJS dist/index.cjs.map 629.73 KB
|
23
|
+
CJS ⚡️ Build success in 2546ms
|
24
|
+
DTS ⚡️ Build success in 18331ms
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
26
|
-
DTS dist/index.d.ts 156.
|
26
|
+
DTS dist/index.d.ts 156.05 KB
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
28
|
-
DTS dist/index.d.cts 156.
|
28
|
+
DTS dist/index.d.cts 156.05 KB
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.13.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- 7ee3d63: Update design for NumericStepper, disable not hide buttons.
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- 39d7fd8: Fix floating button use floating background.
|
12
|
+
|
13
|
+
## 12.12.1
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- 8dee5a5: Fix hidden prop not hiding label on input
|
18
|
+
|
3
19
|
## 12.12.0
|
4
20
|
|
5
21
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
@@ -2813,6 +2813,7 @@ var Input = React27.forwardRef(
|
|
2813
2813
|
helperText,
|
2814
2814
|
errorText,
|
2815
2815
|
required,
|
2816
|
+
hidden,
|
2816
2817
|
...props
|
2817
2818
|
}, ref) => {
|
2818
2819
|
const recipe = react.useRecipe({ key: "input" });
|
@@ -2824,6 +2825,7 @@ var Input = React27.forwardRef(
|
|
2824
2825
|
invalid,
|
2825
2826
|
helperText,
|
2826
2827
|
required,
|
2828
|
+
hidden,
|
2827
2829
|
errorText,
|
2828
2830
|
id: props.id,
|
2829
2831
|
label: (
|
@@ -3046,7 +3048,6 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3046
3048
|
disabled,
|
3047
3049
|
withInput = true,
|
3048
3050
|
stepSize = 1,
|
3049
|
-
showZero = false,
|
3050
3051
|
ariaLabelContext = { singular: "", plural: "" },
|
3051
3052
|
...rest
|
3052
3053
|
} = props;
|
@@ -3081,8 +3082,7 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3081
3082
|
focusOnAddButton();
|
3082
3083
|
}
|
3083
3084
|
},
|
3084
|
-
|
3085
|
-
disabled,
|
3085
|
+
disabled: disabled || value <= minValue,
|
3086
3086
|
id: value <= minValue ? void 0 : idProp
|
3087
3087
|
}
|
3088
3088
|
),
|
@@ -3094,10 +3094,9 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3094
3094
|
name: nameProp,
|
3095
3095
|
value,
|
3096
3096
|
disabled,
|
3097
|
-
id:
|
3097
|
+
id: value === 0 ? void 0 : idProp,
|
3098
3098
|
css: styles.input,
|
3099
3099
|
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
3100
|
-
visibility: !showZero && value === 0 ? "hidden" : "visible",
|
3101
3100
|
"aria-live": "assertive",
|
3102
3101
|
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts13.currentNumberAriaLabel(ariaLabelContext.plural)),
|
3103
3102
|
onChange: (e) => {
|
@@ -3106,7 +3105,7 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3106
3105
|
return;
|
3107
3106
|
}
|
3108
3107
|
onChange(Math.max(Math.min(numericInput, maxValue), minValue));
|
3109
|
-
if (
|
3108
|
+
if (Math.max(Math.min(numericInput, maxValue), minValue) === 0) {
|
3110
3109
|
focusOnAddButton();
|
3111
3110
|
}
|
3112
3111
|
}
|
@@ -3114,7 +3113,6 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3114
3113
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
3115
3114
|
Text3,
|
3116
3115
|
{
|
3117
|
-
visibility: !showZero && value === 0 ? "hidden" : "visible",
|
3118
3116
|
"aria-live": "assertive",
|
3119
3117
|
paddingX: "0.95rem",
|
3120
3118
|
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts13.currentNumberAriaLabel(ariaLabelContext.plural)),
|
@@ -3133,8 +3131,7 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3133
3131
|
)
|
3134
3132
|
),
|
3135
3133
|
onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
|
3136
|
-
|
3137
|
-
disabled,
|
3134
|
+
disabled: disabled || value >= maxValue,
|
3138
3135
|
id: value >= maxValue ? void 0 : idProp
|
3139
3136
|
}
|
3140
3137
|
)
|
@@ -5516,6 +5513,7 @@ var buttonRecipe = react.defineRecipe({
|
|
5516
5513
|
},
|
5517
5514
|
floating: {
|
5518
5515
|
color: "floating.text",
|
5516
|
+
background: "floating.surface",
|
5519
5517
|
border: "sm",
|
5520
5518
|
borderColor: "floating.outline",
|
5521
5519
|
boxShadow: "0px 1px 3px 0px var(--spor-colors-surface-disabled, rgba(0, 0, 0, 0.10))",
|