@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260529114817 → 0.8.1-dev.20260603061415

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
@@ -2425,9 +2425,15 @@ var CheckboxInput = (props) => {
2425
2425
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
2426
2426
  value = true;
2427
2427
  }
2428
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react21.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { className: "inline-block mb-1", children: [
2429
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
2430
- " ",
2428
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react21.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "mb-1", children: [
2429
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2430
+ "label",
2431
+ {
2432
+ htmlFor: props.name,
2433
+ className: "inline-block text-sm font-medium",
2434
+ children: props?.attributes?.label
2435
+ }
2436
+ ),
2431
2437
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "bg-error-weak", children: "*" }),
2432
2438
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2433
2439
  "input",
@@ -2443,10 +2449,10 @@ var CheckboxInput = (props) => {
2443
2449
  pattern: props?.attributes?.pattern,
2444
2450
  disabled: props?.attributes?.readOnly,
2445
2451
  minLength: props?.attributes?.minLength,
2446
- className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2452
+ className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
2447
2453
  }
2448
2454
  ),
2449
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
2455
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
2450
2456
  ] }) });
2451
2457
  };
2452
2458
  var CheckboxInput_default = CheckboxInput;
@@ -6216,7 +6222,7 @@ var DataList = (props) => {
6216
6222
  (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
6217
6223
  "div",
6218
6224
  {
6219
- className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md border-b border-neutral-200 sticky top-0`,
6225
+ className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
6220
6226
  children: [
6221
6227
  props.title ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", {}),
6222
6228
  /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center gap-3", children: [
package/dist/index.mjs CHANGED
@@ -889,9 +889,15 @@ var CheckboxInput = (props) => {
889
889
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
890
890
  value = true;
891
891
  }
892
- return /* @__PURE__ */ jsx20(React19.Fragment, { children: /* @__PURE__ */ jsxs12("label", { className: "inline-block mb-1", children: [
893
- /* @__PURE__ */ jsx20("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
894
- " ",
892
+ return /* @__PURE__ */ jsx20(React19.Fragment, { children: /* @__PURE__ */ jsxs12("div", { className: "mb-1", children: [
893
+ /* @__PURE__ */ jsx20(
894
+ "label",
895
+ {
896
+ htmlFor: props.name,
897
+ className: "inline-block text-sm font-medium",
898
+ children: props?.attributes?.label
899
+ }
900
+ ),
895
901
  props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ jsx20("span", { className: "bg-error-weak", children: "*" }),
896
902
  /* @__PURE__ */ jsx20(
897
903
  "input",
@@ -907,10 +913,10 @@ var CheckboxInput = (props) => {
907
913
  pattern: props?.attributes?.pattern,
908
914
  disabled: props?.attributes?.readOnly,
909
915
  minLength: props?.attributes?.minLength,
910
- className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
916
+ className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
911
917
  }
912
918
  ),
913
- /* @__PURE__ */ jsx20("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
919
+ /* @__PURE__ */ jsx20("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
914
920
  ] }) });
915
921
  };
916
922
  var CheckboxInput_default = CheckboxInput;
@@ -4672,7 +4678,7 @@ var DataList = (props) => {
4672
4678
  (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs35(
4673
4679
  "div",
4674
4680
  {
4675
- className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md border-b border-neutral-200 sticky top-0`,
4681
+ className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
4676
4682
  children: [
4677
4683
  props.title ? /* @__PURE__ */ jsx65("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx65("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx65("div", {}),
4678
4684
  /* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-3", children: [
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.20260529114817",
3
+ "version": "0.8.1-dev.20260603061415",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -52,7 +52,7 @@
52
52
  "moment-timezone": "^0.6.2",
53
53
  "ms": "^2.1.3",
54
54
  "mz": "^2.7.0",
55
- "next": "^15.5.18",
55
+ "next": "^15.5.19",
56
56
  "object-assign": "^4.1.1",
57
57
  "pathe": "^2.0.3",
58
58
  "picocolors": "^1.1.1",