@vygruppen/spor-react 12.10.5 → 12.11.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.10.5 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.11.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,17 +11,17 @@ 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.20 KB
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 629.75 KB
22
16
  ESM dist/icons/index.mjs.map 157.00 B
23
- ESM ⚡️ Build success in 2507ms
24
- DTS ⚡️ Build success in 18032ms
17
+ ESM dist/index.mjs.map 630.12 KB
18
+ ESM ⚡️ Build success in 2549ms
19
+ CJS dist/index.cjs 315.45 KB
20
+ CJS dist/icons/index.cjs 381.00 B
21
+ CJS dist/index.cjs.map 630.12 KB
22
+ CJS dist/icons/index.cjs.map 157.00 B
23
+ CJS ⚡️ Build success in 2550ms
24
+ DTS ⚡️ Build success in 18729ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
26
  DTS dist/index.d.ts 156.18 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.10.5 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.11.0 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,19 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c095719: Drawer: Change title in DrawerFullScreenHeader from being type string, to being child.
8
+
9
+ ## 12.10.6
10
+
11
+ ### Patch Changes
12
+
13
+ - a11fd6a: attached-input: Fix errorLabel so it properly overlaps other elements
14
+ textarea: Prevent missing props warning in console
15
+ drawer: Ensure start and end drawers have full height
16
+
3
17
  ## 12.10.5
4
18
 
5
19
  ### 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, {})
@@ -2413,10 +2413,10 @@ var DrawerBackTrigger = React27.forwardRef((props, ref) => {
2413
2413
  });
2414
2414
  DrawerBackTrigger.displayName = "DrawerBackTrigger";
2415
2415
  var DrawerFullScreenHeader = React27.forwardRef((props, ref) => {
2416
- const { backTrigger = true, closeTrigger = true, title } = props;
2416
+ const { backTrigger = true, closeTrigger = true, children } = props;
2417
2417
  return /* @__PURE__ */ jsxRuntime.jsx(react.Drawer.Header, { ...props, ref, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(react.Grid, { templateColumns: "1fr auto 1fr", height: "auto", paddingX: "8", children: [
2418
2418
  /* @__PURE__ */ jsxRuntime.jsx(react.GridItem, { width: "full", alignSelf: "center", children: backTrigger && /* @__PURE__ */ jsxRuntime.jsx(DrawerBackTrigger, {}) }),
2419
- /* @__PURE__ */ jsxRuntime.jsx(react.GridItem, { width: "full", alignSelf: "end", asChild: true, children: title && /* @__PURE__ */ jsxRuntime.jsx(DrawerTitle, { children: title }) }),
2419
+ /* @__PURE__ */ jsxRuntime.jsx(react.GridItem, { width: "full", alignSelf: "end", asChild: true, children: children && /* @__PURE__ */ jsxRuntime.jsx(DrawerTitle, { children }) }),
2420
2420
  closeTrigger && /* @__PURE__ */ jsxRuntime.jsx(react.GridItem, { width: "full", alignSelf: "end", children: /* @__PURE__ */ jsxRuntime.jsx(DrawerCloseTrigger, { justifySelf: "end", top: "0" }) })
2421
2421
  ] }) });
2422
2422
  });
@@ -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";