@1d1s/design-system 0.2.4 → 0.2.5

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
@@ -7610,12 +7610,12 @@ function qb({
7610
7610
  children: e.map((c, d) => {
7611
7611
  const u = t.includes(c.id), f = a || c.disabled, p = !f && o, g = f || p, b = `${i}-${c.id}`;
7612
7612
  return /* @__PURE__ */ S(
7613
- "div",
7613
+ "label",
7614
7614
  {
7615
- role: "group",
7615
+ htmlFor: b,
7616
7616
  "aria-disabled": g,
7617
- onClick: () => {
7618
- g || s(c.id, !u);
7617
+ onClick: (h) => {
7618
+ g && h.preventDefault();
7619
7619
  },
7620
7620
  className: E(
7621
7621
  "flex w-full items-center gap-4 px-4 py-4 text-left transition-colors",
@@ -7631,9 +7631,6 @@ function qb({
7631
7631
  id: b,
7632
7632
  checked: u,
7633
7633
  disabled: f,
7634
- onClick: (h) => {
7635
- h.stopPropagation();
7636
- },
7637
7634
  onCheckedChange: (h) => {
7638
7635
  g || h === "indeterminate" || s(c.id, h === !0);
7639
7636
  },
@@ -7650,13 +7647,23 @@ function qb({
7650
7647
  size: "body1",
7651
7648
  weight: "medium",
7652
7649
  className: E(
7653
- "transition-colors",
7654
- u ? "text-gray-900" : "text-gray-500",
7650
+ "flex-1 transition-colors",
7651
+ u ? "text-gray-900" : "text-gray-600",
7655
7652
  f && "text-gray-400"
7656
7653
  ),
7657
7654
  children: c.label
7658
7655
  }
7659
- ) : /* @__PURE__ */ l("span", { className: E(!u && "text-gray-500", f && "opacity-60"), children: c.label })
7656
+ ) : /* @__PURE__ */ l(
7657
+ "span",
7658
+ {
7659
+ className: E(
7660
+ "flex-1",
7661
+ !u && "text-gray-600",
7662
+ f && "opacity-60"
7663
+ ),
7664
+ children: c.label
7665
+ }
7666
+ )
7660
7667
  ]
7661
7668
  },
7662
7669
  c.id
@@ -10758,7 +10765,7 @@ function Kv({
10758
10765
  onClick: (u) => {
10759
10766
  u.stopPropagation(), i();
10760
10767
  },
10761
- className: "inline-flex items-center gap-1 rounded-full bg-main-800 px-3 py-1.5 text-white shadow-[0_4px_10px_rgba(34,34,34,0.25)] transition-colors hover:bg-main-900",
10768
+ className: "inline-flex cursor-pointer items-center gap-1 rounded-full bg-main-800 px-3 py-1.5 text-white shadow-[0_4px_10px_rgba(34,34,34,0.25)] transition-colors hover:bg-main-900",
10762
10769
  children: [
10763
10770
  o ? /* @__PURE__ */ l(mi, { width: 14, height: 14, className: "text-white" }) : /* @__PURE__ */ l(fi, { width: 14, height: 14, className: "text-white" }),
10764
10771
  /* @__PURE__ */ l(F, { size: "body2", weight: "bold", className: "text-white", children: a })
@@ -10794,7 +10801,7 @@ function Qv({
10794
10801
  i.stopPropagation(), o?.();
10795
10802
  },
10796
10803
  className: E(
10797
- "block w-full rounded-1 px-1 py-0.5 text-left transition-colors",
10804
+ "block w-full cursor-pointer rounded-1 px-1 py-0.5 text-left transition-colors",
10798
10805
  "hover:bg-gray-100"
10799
10806
  ),
10800
10807
  children: /* @__PURE__ */ l(