@vygruppen/spor-react 12.24.10 → 12.24.11
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 +10 -0
- package/dist/index.cjs +25 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +25 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/accordion/Accordion.tsx +8 -3
- package/src/input/Autocomplete.tsx +8 -9
- package/src/layout/RadioCard.tsx +16 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@12.24.
|
|
2
|
+
> @vygruppen/spor-react@12.24.11 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,17 +11,17 @@
|
|
|
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[32m356.
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m356.73 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[32m703.26 KB[39m
|
|
17
17
|
[32mCJS[39m [1mdist/icons/index.cjs.map [22m[32m157.00 B[39m
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 2702ms
|
|
19
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m332.58 KB[39m
|
|
19
20
|
[32mESM[39m [1mdist/icons/index.mjs [22m[32m110.00 B[39m
|
|
20
|
-
[32mESM[39m [1mdist/index.mjs
|
|
21
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m703.26 KB[39m
|
|
21
22
|
[32mESM[39m [1mdist/icons/index.mjs.map [22m[32m157.00 B[39m
|
|
22
|
-
[32mESM[39m
|
|
23
|
-
[
|
|
24
|
-
[32mDTS[39m ⚡️ Build success in 20964ms
|
|
23
|
+
[32mESM[39m ⚡️ Build success in 2703ms
|
|
24
|
+
[32mDTS[39m ⚡️ Build success in 20415ms
|
|
25
25
|
[32mDTS[39m [1mdist/icons/index.d.ts [22m[32m44.00 B[39m
|
|
26
26
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m147.62 KB[39m
|
|
27
27
|
[32mDTS[39m [1mdist/icons/index.d.cts [22m[32m44.00 B[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@12.24.
|
|
2
|
+
> @vygruppen/spor-react@12.24.11 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: 🤖 agentic secret storage: https://dotenvx.com/as2
|
|
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,15 @@
|
|
|
1
1
|
# @vygruppen/spor-react
|
|
2
2
|
|
|
3
|
+
## 12.24.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4b468fb: Autocomplete - Empty result text now does not display when input is empty
|
|
8
|
+
- ecdcdba: Improve voiceover support on RadioCards
|
|
9
|
+
- e73653c: Improve voiceover support on Accordion
|
|
10
|
+
- Updated dependencies [3c08bf8]
|
|
11
|
+
- @vygruppen/spor-icon-react@4.5.3
|
|
12
|
+
|
|
3
13
|
## 12.24.10
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -128,10 +128,17 @@ var AccordionItemTrigger = React20.forwardRef(function AccordionItemTrigger2(pro
|
|
|
128
128
|
] }) });
|
|
129
129
|
});
|
|
130
130
|
var AccordionItemContent = React20.forwardRef(function AccordionItemContent2(props, ref) {
|
|
131
|
-
const { children } = props;
|
|
131
|
+
const { children, "aria-labelledby": ariaLabelledBy, ...otherProps } = props;
|
|
132
132
|
const recipe = react.useSlotRecipe({ key: "accordion" });
|
|
133
133
|
const styles = recipe();
|
|
134
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
134
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
135
|
+
react.Accordion.ItemContent,
|
|
136
|
+
{
|
|
137
|
+
css: styles.itemContent,
|
|
138
|
+
"aria-labelledby": ariaLabelledBy,
|
|
139
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemBody, { ...otherProps, ref, children })
|
|
140
|
+
}
|
|
141
|
+
);
|
|
135
142
|
});
|
|
136
143
|
Accordion.displayName = "Accordion";
|
|
137
144
|
var AccordionItem = react.Accordion.Item;
|
|
@@ -1524,9 +1531,19 @@ PressableCard.displayName = "PressableCard";
|
|
|
1524
1531
|
var RadioCard = React20.forwardRef(
|
|
1525
1532
|
(props, ref) => {
|
|
1526
1533
|
const { inputProps, children } = props;
|
|
1534
|
+
const uniqueId = React20.useId();
|
|
1535
|
+
const itemControlId = `radio-card-item-control-${uniqueId}`;
|
|
1536
|
+
const inputHasAriaLabel = (inputProps == null ? void 0 : inputProps["aria-labelledby"]) || (inputProps == null ? void 0 : inputProps["aria-label"]);
|
|
1527
1537
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.RadioCard.Item, { ...props, children: [
|
|
1528
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1529
|
-
|
|
1538
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1539
|
+
react.RadioCard.ItemHiddenInput,
|
|
1540
|
+
{
|
|
1541
|
+
"aria-labelledby": inputHasAriaLabel ? inputProps == null ? void 0 : inputProps["aria-labelledby"] : itemControlId,
|
|
1542
|
+
ref,
|
|
1543
|
+
...inputProps
|
|
1544
|
+
}
|
|
1545
|
+
),
|
|
1546
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.RadioCard.ItemControl, { id: itemControlId, "aria-hidden": true, children })
|
|
1530
1547
|
] });
|
|
1531
1548
|
}
|
|
1532
1549
|
);
|
|
@@ -3351,7 +3368,7 @@ var Autocomplete = ({
|
|
|
3351
3368
|
);
|
|
3352
3369
|
const combobox = react.useCombobox({
|
|
3353
3370
|
collection,
|
|
3354
|
-
openOnClick,
|
|
3371
|
+
openOnClick: filteredChildren.length > 0 ? openOnClick : false,
|
|
3355
3372
|
onInputValueChange: (event) => {
|
|
3356
3373
|
if (!filteredExternally) {
|
|
3357
3374
|
filter(event.inputValue);
|
|
@@ -3384,7 +3401,7 @@ var Autocomplete = ({
|
|
|
3384
3401
|
required,
|
|
3385
3402
|
onFocus: (event) => {
|
|
3386
3403
|
onFocus == null ? void 0 : onFocus(event);
|
|
3387
|
-
if (openOnFocus)
|
|
3404
|
+
if (openOnFocus && filteredChildren.length > 0)
|
|
3388
3405
|
combobox.setOpen(true);
|
|
3389
3406
|
}
|
|
3390
3407
|
}
|
|
@@ -3392,8 +3409,8 @@ var Autocomplete = ({
|
|
|
3392
3409
|
/* @__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", tabIndex: 0 }) }) })
|
|
3393
3410
|
] }),
|
|
3394
3411
|
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Combobox.Content, { children: [
|
|
3395
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children:
|
|
3396
|
-
loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) :
|
|
3412
|
+
!loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(texts14.noItemsFound) }),
|
|
3413
|
+
loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
|
|
3397
3414
|
] }) })
|
|
3398
3415
|
] });
|
|
3399
3416
|
};
|