@vygruppen/spor-react 12.8.8 → 12.8.9

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/dist/index.mjs CHANGED
@@ -1377,6 +1377,7 @@ var Field3 = React27.forwardRef(
1377
1377
  readOnly,
1378
1378
  required,
1379
1379
  direction,
1380
+ id,
1380
1381
  ...rest
1381
1382
  } = props;
1382
1383
  const recipe = useSlotRecipe({ key: "field" });
@@ -1391,6 +1392,7 @@ var Field3 = React27.forwardRef(
1391
1392
  required,
1392
1393
  css: styles.root,
1393
1394
  direction,
1395
+ id,
1394
1396
  children: [
1395
1397
  label && !floatingLabel && /* @__PURE__ */ jsxs(Label, { children: [
1396
1398
  label,
@@ -2813,6 +2815,7 @@ var Input = forwardRef(
2813
2815
  helperText,
2814
2816
  required,
2815
2817
  errorText,
2818
+ id: props.id,
2816
2819
  label: (
2817
2820
  // Render startElement invisibly to align label text with input content when an icon is present
2818
2821
  /* @__PURE__ */ jsxs(Flex, { children: [
@@ -2975,6 +2978,7 @@ var NativeSelect = React27.forwardRef(function NativeSelect2(props, ref) {
2975
2978
  required,
2976
2979
  helperText,
2977
2980
  errorText,
2981
+ id: rest.id,
2978
2982
  floatingLabel: true,
2979
2983
  children: /* @__PURE__ */ jsxs(
2980
2984
  NativeSelect$1.Root,
@@ -3029,7 +3033,7 @@ var NumericStepper = React27__default.forwardRef((props, ref) => {
3029
3033
  var _a5;
3030
3034
  (_a5 = addButtonRef.current) == null ? void 0 : _a5.focus();
3031
3035
  };
3032
- return /* @__PURE__ */ jsxs(Field3, { css: styles.root, width: "auto", ...rest, ref, children: [
3036
+ return /* @__PURE__ */ jsxs(Field3, { css: styles.root, width: "auto", ...rest, id: idProp, ref, children: [
3033
3037
  /* @__PURE__ */ jsx(
3034
3038
  VerySmallButton,
3035
3039
  {
@@ -3491,6 +3495,7 @@ var Select = React27.forwardRef(
3491
3495
  invalid,
3492
3496
  helperText,
3493
3497
  required: props.required,
3498
+ id: rest.id,
3494
3499
  children: /* @__PURE__ */ jsxs(
3495
3500
  Select$1.Root,
3496
3501
  {
@@ -3616,6 +3621,7 @@ var Switch = forwardRef(
3616
3621
  errorText,
3617
3622
  helperText,
3618
3623
  required: props.required,
3624
+ id: rest.id,
3619
3625
  children: /* @__PURE__ */ jsxs(
3620
3626
  Switch$1.Root,
3621
3627
  {