@vygruppen/spor-react 12.10.4 → 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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.10.4 build /home/runner/work/spor/spor/packages/spor-react
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
- CJS dist/index.cjs 315.17 KB
15
- CJS dist/icons/index.cjs 381.00 B
16
- CJS dist/index.cjs.map 629.70 KB
17
- CJS dist/icons/index.cjs.map 157.00 B
18
- CJS ⚡️ Build success in 2647ms
19
- ESM dist/index.mjs 293.78 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 629.70 KB
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 2649ms
24
- DTS ⚡️ Build success in 18639ms
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.18 KB
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.18 KB
28
+ DTS dist/index.d.cts 156.20 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.10.4 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.10.6 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
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
+
11
+ ## 12.10.5
12
+
13
+ ### Patch Changes
14
+
15
+ - 2710738: Fix correct duration of toast.
16
+ - d6ab343: Add backgroundColor to travelTag
17
+
3
18
  ## 12.10.4
4
19
 
5
20
  ### 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 { label, variant = "core", ...fieldProps } = props;
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(Field3, { ...fieldProps, position: "relative", children: [
3694
- /* @__PURE__ */ jsxRuntime.jsx(
3695
- react.Textarea,
3696
- {
3697
- ...props,
3698
- css: styles,
3699
- className: "peer",
3700
- ref,
3701
- style: { "--label-height": `${labelHeight}px` },
3702
- placeholder: " "
3703
- }
3704
- ),
3705
- /* @__PURE__ */ jsxRuntime.jsx(FloatingLabel, { ref: labelRef, children: label })
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";
@@ -3948,6 +3965,7 @@ var TravelTag = React27.forwardRef(
3948
3965
  "aria-disabled": disabled,
3949
3966
  ref,
3950
3967
  className: clsx_default("light", rest.className),
3968
+ backgroundColor,
3951
3969
  ...rest,
3952
3970
  children: [
3953
3971
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5124,7 +5142,7 @@ var createToast = ({
5124
5142
  text,
5125
5143
  variant,
5126
5144
  id,
5127
- duration = 6e5
5145
+ duration = 6e3
5128
5146
  }) => toaster.create({
5129
5147
  description: text,
5130
5148
  type: variant,