@toteat-eng/ds-react 2026.7.13 → 2026.7.17
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.es.js
CHANGED
|
@@ -644,19 +644,19 @@ var qn = {
|
|
|
644
644
|
};
|
|
645
645
|
//#endregion
|
|
646
646
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
647
|
-
function Jn({ label: e, className: t, id: n, ref: r, "data-testid": i, ...
|
|
648
|
-
let
|
|
647
|
+
function Jn({ label: e, className: t, id: n, ref: r, "data-testid": i, ...o }) {
|
|
648
|
+
let s = a(), c = String(e ?? ""), l = n ?? (c === "" ? `checkbox-${s}` : `checkbox-${c.toLowerCase().replace(/\s+/g, "-")}`);
|
|
649
649
|
return /* @__PURE__ */ f("label", {
|
|
650
650
|
className: [qn.wrapper, t].filter(Boolean).join(" "),
|
|
651
|
-
htmlFor:
|
|
651
|
+
htmlFor: l,
|
|
652
652
|
"data-testid": i,
|
|
653
653
|
children: [
|
|
654
654
|
/* @__PURE__ */ d("input", {
|
|
655
655
|
ref: r,
|
|
656
656
|
type: "checkbox",
|
|
657
|
-
id:
|
|
657
|
+
id: l,
|
|
658
658
|
className: qn.input,
|
|
659
|
-
...
|
|
659
|
+
...o
|
|
660
660
|
}),
|
|
661
661
|
/* @__PURE__ */ d("span", {
|
|
662
662
|
className: qn.checkmark,
|