@toteat-eng/ds-react 2026.7.20 → 2026.7.23

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 ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
3
3
  label?: string;
4
4
  size?: "small" | "medium";
package/dist/index.es.js CHANGED
@@ -3487,22 +3487,22 @@ var Da = {
3487
3487
  };
3488
3488
  //#endregion
3489
3489
  //#region src/components/Toggle/Toggle.tsx
3490
- function Oa({ label: e, size: t = "medium", className: n, id: r, ref: i, "data-testid": a, ...o }) {
3491
- let s = r ?? `toggle-${String(e ?? "").toLowerCase().replace(/\s+/g, "-")}`;
3490
+ function Oa({ label: e, size: t = "medium", className: n, id: r, ref: i, "data-testid": o, ...s }) {
3491
+ let c = a(), l = r ?? c;
3492
3492
  return /* @__PURE__ */ p("label", {
3493
3493
  className: Da.wrapper,
3494
3494
  "data-size": t,
3495
- htmlFor: s,
3496
- "data-testid": a,
3495
+ htmlFor: l,
3496
+ "data-testid": o,
3497
3497
  children: [
3498
3498
  /* @__PURE__ */ f("input", {
3499
3499
  ref: i,
3500
3500
  type: "checkbox",
3501
3501
  role: "switch",
3502
- "aria-checked": o.checked ?? !1,
3503
- id: s,
3502
+ "aria-checked": s.checked ?? !1,
3503
+ id: l,
3504
3504
  className: Da.input,
3505
- ...o
3505
+ ...s
3506
3506
  }),
3507
3507
  /* @__PURE__ */ f("span", {
3508
3508
  className: Da.track,