@vygruppen/spor-react 12.24.6 → 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 +14 -0
- package/dist/index.cjs +36 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.mjs +36 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/datepicker/CalendarTriggerButton.tsx +1 -1
- package/src/datepicker/DateTimeSegment.tsx +1 -1
- package/src/input/Autocomplete.tsx +4 -9
- 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[
|
|
16
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m702.33 KB[39m
|
|
17
17
|
[32mCJS[39m [1mdist/icons/index.cjs.map [22m[32m157.00 B[39m
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
19
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m331.80 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 2885ms
|
|
20
19
|
[32mESM[39m [1mdist/icons/index.mjs [22m[32m110.00 B[39m
|
|
21
|
-
[32mESM[39m [1mdist/index.mjs
|
|
20
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m332.08 KB[39m
|
|
22
21
|
[32mESM[39m [1mdist/icons/index.mjs.map [22m[32m157.00 B[39m
|
|
23
|
-
[32mESM[39m
|
|
24
|
-
[
|
|
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,19 @@
|
|
|
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
|
+
|
|
11
|
+
## 12.24.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 17c0938: Ensure onFocus is passed to Autocomplete
|
|
16
|
+
|
|
3
17
|
## 12.24.6
|
|
4
18
|
|
|
5
19
|
### 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
|
);
|
|
@@ -2312,7 +2319,7 @@ var CalendarTriggerButton = React20.forwardRef(({ variant, disabled, onPress: _,
|
|
|
2312
2319
|
key: "datePicker"
|
|
2313
2320
|
});
|
|
2314
2321
|
const styles = recipe({ variant });
|
|
2315
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverAnchor, { ...buttonProps, ref, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2322
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverAnchor, { ...buttonProps, ref, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2316
2323
|
IconButton,
|
|
2317
2324
|
{
|
|
2318
2325
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CalendarOutline24Icon, {}),
|
|
@@ -2361,7 +2368,7 @@ var DateTimeSegment = React20.forwardRef(
|
|
|
2361
2368
|
borderRadius: "xs",
|
|
2362
2369
|
fontSize: ["mobile.sm", "desktop.sm"],
|
|
2363
2370
|
css: styles.dateTimeSegment,
|
|
2364
|
-
"aria-
|
|
2371
|
+
"aria-label": ariaDescription,
|
|
2365
2372
|
"aria-labelledby": ariaLabel,
|
|
2366
2373
|
children: isPaddable(segment.type) ? segment.text.padStart(2, "0") : segment.text
|
|
2367
2374
|
}
|
|
@@ -3326,6 +3333,7 @@ var Autocomplete = ({
|
|
|
3326
3333
|
loading,
|
|
3327
3334
|
disabled,
|
|
3328
3335
|
emptyLabel,
|
|
3336
|
+
onFocus,
|
|
3329
3337
|
openOnClick = true,
|
|
3330
3338
|
openOnFocus = true,
|
|
3331
3339
|
...rest
|
|
@@ -3381,7 +3389,8 @@ var Autocomplete = ({
|
|
|
3381
3389
|
helperText,
|
|
3382
3390
|
errorText,
|
|
3383
3391
|
required,
|
|
3384
|
-
onFocus: () => {
|
|
3392
|
+
onFocus: (event) => {
|
|
3393
|
+
onFocus == null ? void 0 : onFocus(event);
|
|
3385
3394
|
if (openOnFocus)
|
|
3386
3395
|
combobox.setOpen(true);
|
|
3387
3396
|
}
|
|
@@ -3389,20 +3398,10 @@ var Autocomplete = ({
|
|
|
3389
3398
|
) }),
|
|
3390
3399
|
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts14.clearValue), children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "xs" }) }) })
|
|
3391
3400
|
] }),
|
|
3392
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3393
|
-
react.Combobox.
|
|
3394
|
-
{
|
|
3395
|
-
|
|
3396
|
-
if (!event.currentTarget.contains(event.relatedTarget)) {
|
|
3397
|
-
combobox.setOpen(false);
|
|
3398
|
-
}
|
|
3399
|
-
},
|
|
3400
|
-
children: [
|
|
3401
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: !loading && (emptyLabel ?? t(texts14.noItemsFound)) }),
|
|
3402
|
-
loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: filteredChildren })
|
|
3403
|
-
]
|
|
3404
|
-
}
|
|
3405
|
-
) })
|
|
3401
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Combobox.Content, { children: [
|
|
3402
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: !loading && (emptyLabel ?? t(texts14.noItemsFound)) }),
|
|
3403
|
+
loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: filteredChildren })
|
|
3404
|
+
] }) })
|
|
3406
3405
|
] });
|
|
3407
3406
|
};
|
|
3408
3407
|
var AutocompleteItemGroup = react.Combobox.ItemGroup;
|
|
@@ -4068,7 +4067,8 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
|
|
|
4068
4067
|
focusOnAddButton();
|
|
4069
4068
|
}
|
|
4070
4069
|
},
|
|
4071
|
-
disabled: disabled || value <= minValue
|
|
4070
|
+
disabled: disabled || value <= minValue,
|
|
4071
|
+
withStepLabel: stepSize != 1
|
|
4072
4072
|
}
|
|
4073
4073
|
),
|
|
4074
4074
|
withInput ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4117,7 +4117,8 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
|
|
|
4117
4117
|
)
|
|
4118
4118
|
),
|
|
4119
4119
|
onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
|
|
4120
|
-
disabled: disabled || value >= maxValue
|
|
4120
|
+
disabled: disabled || value >= maxValue,
|
|
4121
|
+
withStepLabel: stepSize != 1
|
|
4121
4122
|
}
|
|
4122
4123
|
)
|
|
4123
4124
|
]
|
|
@@ -4126,8 +4127,9 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
|
|
|
4126
4127
|
});
|
|
4127
4128
|
NumericStepper.displayName = "NumericStepper";
|
|
4128
4129
|
var VerySmallButton = React20__namespace.default.forwardRef((props, ref) => {
|
|
4130
|
+
const { withStepLabel = false, ...rest } = props;
|
|
4129
4131
|
const recipe = react.useSlotRecipe({ key: "numericStepper" });
|
|
4130
|
-
const styles = recipe({
|
|
4132
|
+
const styles = recipe({ withStepLabel });
|
|
4131
4133
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4132
4134
|
IconButton,
|
|
4133
4135
|
{
|
|
@@ -4135,7 +4137,7 @@ var VerySmallButton = React20__namespace.default.forwardRef((props, ref) => {
|
|
|
4135
4137
|
size: "xs",
|
|
4136
4138
|
css: styles.button,
|
|
4137
4139
|
ref,
|
|
4138
|
-
...
|
|
4140
|
+
...rest
|
|
4139
4141
|
}
|
|
4140
4142
|
);
|
|
4141
4143
|
});
|
|
@@ -9839,6 +9841,16 @@ var numericStepperRecipe = react.defineSlotRecipe({
|
|
|
9839
9841
|
height: "1.2rem"
|
|
9840
9842
|
}
|
|
9841
9843
|
}
|
|
9844
|
+
},
|
|
9845
|
+
variants: {
|
|
9846
|
+
withStepLabel: {
|
|
9847
|
+
true: {
|
|
9848
|
+
button: {
|
|
9849
|
+
paddingInline: "1 !important"
|
|
9850
|
+
}
|
|
9851
|
+
},
|
|
9852
|
+
false: {}
|
|
9853
|
+
}
|
|
9842
9854
|
}
|
|
9843
9855
|
});
|
|
9844
9856
|
var paginationSlotRecipe = react.defineSlotRecipe({
|