@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260402071330 → 0.8.1-dev.20260410111456

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.js CHANGED
@@ -974,7 +974,13 @@ module.exports = __toCommonJS(index_exports);
974
974
  // src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
975
975
  var registry = {};
976
976
  function registerWidgets(widgets) {
977
- Object.assign(registry, widgets);
977
+ Object.entries(widgets).forEach(([key, component]) => {
978
+ if (!registry[key]) {
979
+ registry[key] = component;
980
+ } else {
981
+ console.warn(`Widget "${key}" is already registered. Skipping duplicate.`);
982
+ }
983
+ });
978
984
  }
979
985
  function getWidget(code) {
980
986
  return registry[code];
@@ -1341,7 +1347,7 @@ var MultilineTextInput = (props) => {
1341
1347
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react10.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { className: "block mb-1", children: [
1342
1348
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1343
1349
  " ",
1344
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-alert", children: "*" }),
1350
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "bg-error-weak", children: "*" }),
1345
1351
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1346
1352
  "textarea",
1347
1353
  {
@@ -1388,7 +1394,7 @@ var LineTextInput = (props) => {
1388
1394
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react11.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("label", { className: "block", children: [
1389
1395
  props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
1390
1396
  " ",
1391
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-alert", children: "*" }),
1397
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "bg-error-weak", children: "*" }),
1392
1398
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1393
1399
  "input",
1394
1400
  {
@@ -1450,7 +1456,7 @@ var MoneyInput = (props) => {
1450
1456
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react12.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: "block mb-1", children: [
1451
1457
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1452
1458
  " ",
1453
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "text-alert", children: "*" }),
1459
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "bg-error-weak", children: "*" }),
1454
1460
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1455
1461
  "input",
1456
1462
  {
@@ -1562,7 +1568,8 @@ var Select = (props) => {
1562
1568
  const value = getSafeValue(props.value);
1563
1569
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "block", children: [
1564
1570
  props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
1565
- props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-alert", children: "*" }),
1571
+ " ",
1572
+ props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "bg-error-weak", children: "*" }),
1566
1573
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1567
1574
  "select",
1568
1575
  {
@@ -1622,7 +1629,7 @@ var PercentageInput = (props) => {
1622
1629
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react14.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("label", { className: "block mb-1", children: [
1623
1630
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
1624
1631
  " ",
1625
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-alert", children: "*" }),
1632
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "bg-error-weak", children: "*" }),
1626
1633
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1627
1634
  "input",
1628
1635
  {
@@ -1670,6 +1677,8 @@ var PhoneInput = (props) => {
1670
1677
  }
1671
1678
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { className: "block mb-1", children: [
1672
1679
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1680
+ " ",
1681
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "bg-error-weak", children: "*" }),
1673
1682
  /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center bg-gray-100 rounded border border-gray-300 \n focus-within:border-indigo-300 focus-within:ring focus-within:ring-indigo-200 focus-within:ring-opacity-50", children: [
1674
1683
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "px-3 text-gray-700", children: props.prefix }),
1675
1684
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
@@ -1723,7 +1732,7 @@ var NumberInput = (props) => {
1723
1732
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react16.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { className: "block", children: [
1724
1733
  props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
1725
1734
  " ",
1726
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-alert", children: "*" }),
1735
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "bg-error-weak", children: "*" }),
1727
1736
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1728
1737
  "input",
1729
1738
  {
@@ -1821,6 +1830,8 @@ var OtpInput = (props) => {
1821
1830
  }
1822
1831
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react18.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
1823
1832
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1833
+ " ",
1834
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "bg-error-weak", children: "*" }),
1824
1835
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1825
1836
  "input",
1826
1837
  {
@@ -1962,7 +1973,7 @@ var DateTimeInput = (props) => {
1962
1973
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react19.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", { className: "block mb-1", children: [
1963
1974
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1964
1975
  " ",
1965
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-alert", children: "*" }),
1976
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "bg-error-weak", children: "*" }),
1966
1977
  /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2", children: [
1967
1978
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1968
1979
  "input",
@@ -2015,7 +2026,7 @@ var ColorInput = (props) => {
2015
2026
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", { className: "block mb-1", children: [
2016
2027
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2017
2028
  " ",
2018
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-alert", children: "*" }),
2029
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "bg-error-weak", children: "*" }),
2019
2030
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2020
2031
  "input",
2021
2032
  {
@@ -2108,9 +2119,12 @@ var SelectWithSearchInput = (props) => {
2108
2119
  }
2109
2120
  }, [highlightedIndex]);
2110
2121
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "relative", children: [
2111
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("label", { children: props.attributes?.label }),
2112
- " ",
2113
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-alert", children: "*" }),
2122
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { children: [
2123
+ props.attributes?.label,
2124
+ " ",
2125
+ " ",
2126
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "bg-error-weak", children: "*" })
2127
+ ] }),
2114
2128
  /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "relative", children: [
2115
2129
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2116
2130
  "input",
@@ -2319,7 +2333,12 @@ var SelectWithSearchPanel = (props) => {
2319
2333
  return formData;
2320
2334
  }, []);
2321
2335
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "relative", children: [
2322
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("label", { className: "text-sm mb-1 font-medium", children: props.attributes?.label }),
2336
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
2337
+ props.attributes?.label,
2338
+ " ",
2339
+ " ",
2340
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "bg-error-weak", children: "*" })
2341
+ ] }),
2323
2342
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2324
2343
  "input",
2325
2344
  {
@@ -2476,7 +2495,7 @@ var BooleanSelect = (props) => {
2476
2495
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react26.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { className: "block", children: [
2477
2496
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
2478
2497
  " ",
2479
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-alert", children: "*" }),
2498
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "bg-error-weak", children: "*" }),
2480
2499
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2481
2500
  "select",
2482
2501
  {
@@ -2539,7 +2558,7 @@ var EmailInput = (props) => {
2539
2558
  return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react27.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { className: "block mb-1", children: [
2540
2559
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
2541
2560
  " ",
2542
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-alert", children: "*" }),
2561
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "bg-error-weak", children: "*" }),
2543
2562
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2544
2563
  "input",
2545
2564
  {
@@ -2578,7 +2597,8 @@ var TimeInput = (props) => {
2578
2597
  };
2579
2598
  return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("label", { className: "block mb-1", children: [
2580
2599
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2581
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-alert", children: "*" }),
2600
+ " ",
2601
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "bg-error-weak", children: "*" }),
2582
2602
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2583
2603
  "input",
2584
2604
  {
package/dist/index.mjs CHANGED
@@ -10,7 +10,13 @@ import {
10
10
  // src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
11
11
  var registry = {};
12
12
  function registerWidgets(widgets) {
13
- Object.assign(registry, widgets);
13
+ Object.entries(widgets).forEach(([key, component]) => {
14
+ if (!registry[key]) {
15
+ registry[key] = component;
16
+ } else {
17
+ console.warn(`Widget "${key}" is already registered. Skipping duplicate.`);
18
+ }
19
+ });
14
20
  }
15
21
  function getWidget(code) {
16
22
  return registry[code];
@@ -377,7 +383,7 @@ var MultilineTextInput = (props) => {
377
383
  return /* @__PURE__ */ jsx10(React10.Fragment, { children: /* @__PURE__ */ jsxs6("label", { className: "block mb-1", children: [
378
384
  /* @__PURE__ */ jsx10("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
379
385
  " ",
380
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx10("span", { className: "text-alert", children: "*" }),
386
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx10("span", { className: "bg-error-weak", children: "*" }),
381
387
  /* @__PURE__ */ jsx10(
382
388
  "textarea",
383
389
  {
@@ -424,7 +430,7 @@ var LineTextInput = (props) => {
424
430
  return /* @__PURE__ */ jsx11(React11.Fragment, { children: /* @__PURE__ */ jsxs7("label", { className: "block", children: [
425
431
  props?.attributes?.label && /* @__PURE__ */ jsx11("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
426
432
  " ",
427
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx11("span", { className: "text-alert", children: "*" }),
433
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx11("span", { className: "bg-error-weak", children: "*" }),
428
434
  /* @__PURE__ */ jsx11(
429
435
  "input",
430
436
  {
@@ -486,7 +492,7 @@ var MoneyInput = (props) => {
486
492
  return /* @__PURE__ */ jsx12(React12.Fragment, { children: /* @__PURE__ */ jsxs8("label", { className: "block mb-1", children: [
487
493
  /* @__PURE__ */ jsx12("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
488
494
  " ",
489
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx12("span", { className: "text-alert", children: "*" }),
495
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx12("span", { className: "bg-error-weak", children: "*" }),
490
496
  /* @__PURE__ */ jsx12(
491
497
  "input",
492
498
  {
@@ -598,7 +604,8 @@ var Select = (props) => {
598
604
  const value = getSafeValue(props.value);
599
605
  return /* @__PURE__ */ jsxs9("label", { className: "block", children: [
600
606
  props.attributes?.label && /* @__PURE__ */ jsx13("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
601
- props.attributes?.label && props.attributes?.required && /* @__PURE__ */ jsx13("span", { className: "text-alert", children: "*" }),
607
+ " ",
608
+ props.attributes?.label && props.attributes?.required && /* @__PURE__ */ jsx13("span", { className: "bg-error-weak", children: "*" }),
602
609
  /* @__PURE__ */ jsxs9(
603
610
  "select",
604
611
  {
@@ -658,7 +665,7 @@ var PercentageInput = (props) => {
658
665
  return /* @__PURE__ */ jsx14(React14.Fragment, { children: /* @__PURE__ */ jsxs10("label", { className: "block mb-1", children: [
659
666
  /* @__PURE__ */ jsx14("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
660
667
  " ",
661
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx14("span", { className: "text-alert", children: "*" }),
668
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx14("span", { className: "bg-error-weak", children: "*" }),
662
669
  /* @__PURE__ */ jsx14(
663
670
  "input",
664
671
  {
@@ -706,6 +713,8 @@ var PhoneInput = (props) => {
706
713
  }
707
714
  return /* @__PURE__ */ jsx15(React15.Fragment, { children: /* @__PURE__ */ jsxs11("label", { className: "block mb-1", children: [
708
715
  /* @__PURE__ */ jsx15("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
716
+ " ",
717
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx15("span", { className: "bg-error-weak", children: "*" }),
709
718
  /* @__PURE__ */ jsxs11("div", { className: "flex items-center bg-gray-100 rounded border border-gray-300 \n focus-within:border-indigo-300 focus-within:ring focus-within:ring-indigo-200 focus-within:ring-opacity-50", children: [
710
719
  /* @__PURE__ */ jsx15("span", { className: "px-3 text-gray-700", children: props.prefix }),
711
720
  /* @__PURE__ */ jsx15(
@@ -759,7 +768,7 @@ var NumberInput = (props) => {
759
768
  return /* @__PURE__ */ jsx16(React16.Fragment, { children: /* @__PURE__ */ jsxs12("label", { className: "block", children: [
760
769
  props?.attributes?.label && /* @__PURE__ */ jsx16("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
761
770
  " ",
762
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx16("span", { className: "text-alert", children: "*" }),
771
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx16("span", { className: "bg-error-weak", children: "*" }),
763
772
  /* @__PURE__ */ jsx16(
764
773
  "input",
765
774
  {
@@ -857,6 +866,8 @@ var OtpInput = (props) => {
857
866
  }
858
867
  return /* @__PURE__ */ jsx18(React18.Fragment, { children: /* @__PURE__ */ jsxs14("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
859
868
  /* @__PURE__ */ jsx18("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
869
+ " ",
870
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx18("span", { className: "bg-error-weak", children: "*" }),
860
871
  /* @__PURE__ */ jsx18(
861
872
  "input",
862
873
  {
@@ -998,7 +1009,7 @@ var DateTimeInput = (props) => {
998
1009
  return /* @__PURE__ */ jsx19(React19.Fragment, { children: /* @__PURE__ */ jsxs15("label", { className: "block mb-1", children: [
999
1010
  /* @__PURE__ */ jsx19("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1000
1011
  " ",
1001
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx19("span", { className: "text-alert", children: "*" }),
1012
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx19("span", { className: "bg-error-weak", children: "*" }),
1002
1013
  /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2", children: [
1003
1014
  /* @__PURE__ */ jsx19(
1004
1015
  "input",
@@ -1051,7 +1062,7 @@ var ColorInput = (props) => {
1051
1062
  return /* @__PURE__ */ jsxs16("label", { className: "block mb-1", children: [
1052
1063
  /* @__PURE__ */ jsx20("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
1053
1064
  " ",
1054
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx20("span", { className: "text-alert", children: "*" }),
1065
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx20("span", { className: "bg-error-weak", children: "*" }),
1055
1066
  /* @__PURE__ */ jsx20(
1056
1067
  "input",
1057
1068
  {
@@ -1144,9 +1155,12 @@ var SelectWithSearchInput = (props) => {
1144
1155
  }
1145
1156
  }, [highlightedIndex]);
1146
1157
  return /* @__PURE__ */ jsxs17("div", { className: "relative", children: [
1147
- /* @__PURE__ */ jsx21("label", { children: props.attributes?.label }),
1148
- " ",
1149
- props?.attributes?.required && /* @__PURE__ */ jsx21("span", { className: "text-alert", children: "*" }),
1158
+ /* @__PURE__ */ jsxs17("label", { children: [
1159
+ props.attributes?.label,
1160
+ " ",
1161
+ " ",
1162
+ props?.attributes?.required && /* @__PURE__ */ jsx21("span", { className: "bg-error-weak", children: "*" })
1163
+ ] }),
1150
1164
  /* @__PURE__ */ jsxs17("div", { className: "relative", children: [
1151
1165
  /* @__PURE__ */ jsx21(
1152
1166
  "input",
@@ -1359,7 +1373,12 @@ var SelectWithSearchPanel = (props) => {
1359
1373
  return formData;
1360
1374
  }, []);
1361
1375
  return /* @__PURE__ */ jsxs18("div", { className: "relative", children: [
1362
- /* @__PURE__ */ jsx22("label", { className: "text-sm mb-1 font-medium", children: props.attributes?.label }),
1376
+ /* @__PURE__ */ jsxs18("label", { className: "text-sm mb-1 font-medium", children: [
1377
+ props.attributes?.label,
1378
+ " ",
1379
+ " ",
1380
+ props?.attributes?.required && /* @__PURE__ */ jsx22("span", { className: "bg-error-weak", children: "*" })
1381
+ ] }),
1363
1382
  /* @__PURE__ */ jsx22("div", { children: /* @__PURE__ */ jsx22(
1364
1383
  "input",
1365
1384
  {
@@ -1519,7 +1538,7 @@ var BooleanSelect = (props) => {
1519
1538
  return /* @__PURE__ */ jsx23(React23.Fragment, { children: /* @__PURE__ */ jsxs19("label", { className: "block", children: [
1520
1539
  /* @__PURE__ */ jsx23("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
1521
1540
  " ",
1522
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx23("span", { className: "text-alert", children: "*" }),
1541
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx23("span", { className: "bg-error-weak", children: "*" }),
1523
1542
  /* @__PURE__ */ jsxs19(
1524
1543
  "select",
1525
1544
  {
@@ -1582,7 +1601,7 @@ var EmailInput = (props) => {
1582
1601
  return /* @__PURE__ */ jsx24(React24.Fragment, { children: /* @__PURE__ */ jsxs20("label", { className: "block mb-1", children: [
1583
1602
  /* @__PURE__ */ jsx24("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
1584
1603
  " ",
1585
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx24("span", { className: "text-alert", children: "*" }),
1604
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx24("span", { className: "bg-error-weak", children: "*" }),
1586
1605
  /* @__PURE__ */ jsx24(
1587
1606
  "input",
1588
1607
  {
@@ -1621,7 +1640,8 @@ var TimeInput = (props) => {
1621
1640
  };
1622
1641
  return /* @__PURE__ */ jsx25(React25.Fragment, { children: /* @__PURE__ */ jsxs21("label", { className: "block mb-1", children: [
1623
1642
  /* @__PURE__ */ jsx25("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
1624
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx25("span", { className: "text-alert", children: "*" }),
1643
+ " ",
1644
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx25("span", { className: "bg-error-weak", children: "*" }),
1625
1645
  /* @__PURE__ */ jsx25("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx25(
1626
1646
  "input",
1627
1647
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260402071330",
3
+ "version": "0.8.1-dev.20260410111456",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -22,7 +22,7 @@
22
22
  }
23
23
  },
24
24
  "devDependencies": {
25
- "@types/node": "^25.5.0",
25
+ "@types/node": "^25.6.0",
26
26
  "@types/react": "^19",
27
27
  "@types/react-dom": "^19",
28
28
  "tsup": "^8.5.1",
@@ -52,7 +52,7 @@
52
52
  "moment-timezone": "^0.6.1",
53
53
  "ms": "^2.1.3",
54
54
  "mz": "^2.7.0",
55
- "next": "^15.5.14",
55
+ "next": "^15.5.15",
56
56
  "object-assign": "^4.1.1",
57
57
  "pathe": "^2.0.3",
58
58
  "picocolors": "^1.1.1",