@vygruppen/spor-react 12.10.5 → 12.10.6
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 +8 -0
- package/dist/index.cjs +40 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +40 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/dialog/Drawer.tsx +1 -1
- package/src/dialog/types.ts +2 -2
- package/src/input/AttachedInputs.tsx +3 -1
- package/src/input/PhoneNumberInput.tsx +0 -6
- package/src/input/Textarea.tsx +22 -3
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.10.
|
2
|
+
> @vygruppen/spor-react@12.10.6 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/icons/index.cjs 381.00 B
|
16
|
-
CJS dist/index.cjs.map 629.75 KB
|
17
|
-
CJS dist/icons/index.cjs.map 157.00 B
|
18
|
-
CJS ⚡️ Build success in 2506ms
|
19
|
-
ESM dist/index.mjs 293.80 KB
|
14
|
+
ESM dist/index.mjs 294.05 KB
|
20
15
|
ESM dist/icons/index.mjs 110.00 B
|
21
|
-
ESM dist/index.mjs.map
|
16
|
+
ESM dist/index.mjs.map 630.11 KB
|
22
17
|
ESM dist/icons/index.mjs.map 157.00 B
|
23
|
-
ESM ⚡️ Build success in
|
24
|
-
|
18
|
+
ESM ⚡️ Build success in 2705ms
|
19
|
+
CJS dist/index.cjs 315.45 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 630.11 KB
|
23
|
+
CJS ⚡️ Build success in 2706ms
|
24
|
+
DTS ⚡️ Build success in 19069ms
|
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.20 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.20 KB
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.10.6
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- a11fd6a: attached-input: Fix errorLabel so it properly overlaps other elements
|
8
|
+
textarea: Prevent missing props warning in console
|
9
|
+
drawer: Ensure start and end drawers have full height
|
10
|
+
|
3
11
|
## 12.10.5
|
4
12
|
|
5
13
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
@@ -2377,7 +2377,7 @@ var DrawerContent = React27.forwardRef(
|
|
2377
2377
|
swipeDuration: 250
|
2378
2378
|
});
|
2379
2379
|
const sizeNotFull = size !== "full";
|
2380
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsxRuntime.jsx(react.Drawer.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { ...handlers, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(react.Drawer.Content, { ref, ...rest, children: [
|
2380
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsxRuntime.jsx(react.Drawer.Positioner, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { ...handlers, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(react.Drawer.Content, { ref, ...rest, children: [
|
2381
2381
|
sizeNotFull && placement === "bottom" && /* @__PURE__ */ jsxRuntime.jsx(CloseDrawerLine, {}),
|
2382
2382
|
children,
|
2383
2383
|
sizeNotFull && placement === "top" && /* @__PURE__ */ jsxRuntime.jsx(CloseDrawerLine, {})
|
@@ -2454,7 +2454,7 @@ var AttachedInputs = React27.forwardRef(
|
|
2454
2454
|
const recipe = react.useRecipe({ key: "attachedInputs" });
|
2455
2455
|
const [recipeProps, restProps] = recipe.splitVariantProps(props);
|
2456
2456
|
const styles = recipe(recipeProps);
|
2457
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.Group, { ref, css: styles, attached: true, ...restProps });
|
2457
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.Group, { ref, css: styles, attached: true, isolation: "auto", ...restProps });
|
2458
2458
|
}
|
2459
2459
|
);
|
2460
2460
|
AttachedInputs.displayName = "AttachedInputs";
|
@@ -3427,12 +3427,6 @@ var texts16 = createTexts({
|
|
3427
3427
|
nn: "Telefonnummer (valgfritt)",
|
3428
3428
|
en: "Phone number (optional)",
|
3429
3429
|
sv: "Telefonnummer (valfritt)"
|
3430
|
-
},
|
3431
|
-
countryCodeLabel: {
|
3432
|
-
nb: "Landskode",
|
3433
|
-
nn: "Landskode",
|
3434
|
-
en: "Country code",
|
3435
|
-
sv: "Landskod"
|
3436
3430
|
}
|
3437
3431
|
});
|
3438
3432
|
var Radio = React27.forwardRef((props, ref) => {
|
@@ -3686,24 +3680,47 @@ var useLabelHeight = (label) => {
|
|
3686
3680
|
};
|
3687
3681
|
var Textarea = React27.forwardRef(
|
3688
3682
|
(props, ref) => {
|
3689
|
-
const {
|
3683
|
+
const {
|
3684
|
+
label,
|
3685
|
+
variant = "core",
|
3686
|
+
invalid,
|
3687
|
+
required,
|
3688
|
+
errorText,
|
3689
|
+
readOnly,
|
3690
|
+
helperText,
|
3691
|
+
floatingLabel,
|
3692
|
+
...restProps
|
3693
|
+
} = props;
|
3690
3694
|
const recipe = react.useRecipe({ key: "textarea" });
|
3691
3695
|
const styles = recipe({ variant });
|
3692
3696
|
const { labelRef, labelHeight } = useLabelHeight(label);
|
3693
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
3694
|
-
|
3695
|
-
|
3696
|
-
|
3697
|
-
|
3698
|
-
|
3699
|
-
|
3700
|
-
|
3701
|
-
|
3702
|
-
|
3703
|
-
|
3704
|
-
|
3705
|
-
|
3706
|
-
|
3697
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
3698
|
+
Field3,
|
3699
|
+
{
|
3700
|
+
label,
|
3701
|
+
errorText,
|
3702
|
+
helperText,
|
3703
|
+
invalid,
|
3704
|
+
required,
|
3705
|
+
readOnly,
|
3706
|
+
floatingLabel,
|
3707
|
+
position: "relative",
|
3708
|
+
children: [
|
3709
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
3710
|
+
react.Textarea,
|
3711
|
+
{
|
3712
|
+
...restProps,
|
3713
|
+
css: styles,
|
3714
|
+
className: "peer",
|
3715
|
+
ref,
|
3716
|
+
style: { "--label-height": `${labelHeight}px` },
|
3717
|
+
placeholder: " "
|
3718
|
+
}
|
3719
|
+
),
|
3720
|
+
/* @__PURE__ */ jsxRuntime.jsx(FloatingLabel, { ref: labelRef, children: label })
|
3721
|
+
]
|
3722
|
+
}
|
3723
|
+
);
|
3707
3724
|
}
|
3708
3725
|
);
|
3709
3726
|
Textarea.displayName = "Textarea";
|