@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.
@@ -1,4 +1,4 @@
1
- import type { InputHTMLAttributes } from "react";
1
+ import { type InputHTMLAttributes } from "react";
2
2
  export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
3
3
  label?: string;
4
4
  ref?: React.Ref<HTMLInputElement>;
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, ...a }) {
648
- let o = n ?? `checkbox-${String(e ?? "").toLowerCase().replace(/\s+/g, "-")}`;
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: o,
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: o,
657
+ id: l,
658
658
  className: qn.input,
659
- ...a
659
+ ...o
660
660
  }),
661
661
  /* @__PURE__ */ d("span", {
662
662
  className: qn.checkmark,