wacomm 2.32.0 → 2.32.2

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/wacomm.es.js CHANGED
@@ -15257,12 +15257,16 @@ function Qa({ items: e, itemRenderer: t, className: n = "", fallback: r = void 0
15257
15257
  //#endregion
15258
15258
  //#region src/html/ClickableDiv.tsx
15259
15259
  var $a = "appearance-none bg-transparent p-0 m-0 text-left cursor-pointer focus:outline-none";
15260
- function eo({ children: e, className: t = "", onClick: n = Yt, disabled: r = !1 }) {
15261
- return /* @__PURE__ */ C("button", {
15260
+ function eo({ children: e, className: t = "", onClick: n = Yt, disabled: r = !1, ...i }) {
15261
+ return n === Yt ? /* @__PURE__ */ C("div", {
15262
+ className: G("ClickableDiv", t),
15263
+ children: e
15264
+ }) : /* @__PURE__ */ C("button", {
15262
15265
  type: "button",
15263
15266
  disabled: r,
15264
15267
  className: G("ClickableDiv", $a, r ? "cursor-not-allowed opacity-40" : "", t),
15265
15268
  onClick: n,
15269
+ ...i,
15266
15270
  children: e
15267
15271
  });
15268
15272
  }
@@ -15511,7 +15515,7 @@ function Eo({ icon: e, onClick: t, className: n = "", disabled: r = !1, isLoadin
15511
15515
  className: wo(o, r, n),
15512
15516
  type: "button",
15513
15517
  onClick: t,
15514
- children: [/* @__PURE__ */ w(uo, {
15518
+ children: [/* @__PURE__ */ w(mo, {
15515
15519
  isVertical: a,
15516
15520
  className: "items-center gap-0",
15517
15521
  children: [l && /* @__PURE__ */ C(l, {
@@ -16118,8 +16122,8 @@ function Xo({ children: e, className: t = "", buttonsClassName: n = "", onSubmit
16118
16122
  }
16119
16123
  //#endregion
16120
16124
  //#region src/html/img/Img.tsx
16121
- function Zo({ src: e, alt: t, ref: n = null, className: r = "", containerClassName: i = "", onClick: a = Yt, style: o = void 0, onLoad: s = void 0 }) {
16122
- return /* @__PURE__ */ C(eo, {
16125
+ function Zo({ src: e, alt: t, ref: n = null, className: r = "", containerClassName: i = "", onClick: a = void 0, style: o = void 0, onLoad: s = void 0 }) {
16126
+ return /* @__PURE__ */ C("div", {
16123
16127
  className: i,
16124
16128
  children: /* @__PURE__ */ C("img", {
16125
16129
  ref: n,
@@ -21478,16 +21482,11 @@ function xh({ title: e, isExpandable: t = !0, className: n = "", children: r = v
21478
21482
  function Sh({ title: e, children: t = void 0, isOpen: n, onToggle: r, disabled: i = !1, className: a = "", titleClassName: o = "", contentClassName: s = "" }) {
21479
21483
  return /* @__PURE__ */ w(po, {
21480
21484
  className: G("AccordionItem gap-0 w-full items-stretch", a),
21481
- children: [/* @__PURE__ */ w("div", {
21482
- role: "button",
21483
- tabIndex: i ? -1 : 0,
21484
- "aria-disabled": i,
21485
+ children: [/* @__PURE__ */ w(eo, {
21485
21486
  "aria-expanded": n,
21486
- onClick: i ? void 0 : r,
21487
- onKeyDown: (e) => {
21488
- i || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), r());
21489
- },
21490
- className: G("w-full flex flex-row items-center justify-between gap-2 px-3 py-2.5 bg-white cursor-pointer focus:outline-none", i ? "cursor-not-allowed opacity-40" : "", n ? "sticky top-0 z-10" : "", o),
21487
+ onClick: r,
21488
+ disabled: i,
21489
+ className: G("w-full flex flex-row items-center justify-between gap-2 px-3 py-2.5 bg-white", n ? "sticky top-0 z-10" : "", o),
21491
21490
  children: [/* @__PURE__ */ C("span", { children: e }), C(n ? fa : ea, {
21492
21491
  size: K.sm,
21493
21492
  className: "fill-gray-888 shrink-0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wacomm",
3
- "version": "2.32.0",
3
+ "version": "2.32.2",
4
4
  "main": "dist/wacomm.cjs.js",
5
5
  "module": "dist/wacomm.es.js",
6
6
  "types": "dist/index.d.ts",