wacomm 2.32.2 → 2.32.4

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,17 +15257,17 @@ 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, ...i }) {
15261
- return n === Yt ? /* @__PURE__ */ C("div", {
15262
- className: G("ClickableDiv", t),
15263
- children: e
15264
- }) : /* @__PURE__ */ C("button", {
15260
+ function eo({ children: e, className: t = "", onClick: n, disabled: r = !1, ...i }) {
15261
+ return n ? /* @__PURE__ */ C("button", {
15265
15262
  type: "button",
15266
15263
  disabled: r,
15267
15264
  className: G("ClickableDiv", $a, r ? "cursor-not-allowed opacity-40" : "", t),
15268
15265
  onClick: n,
15269
15266
  ...i,
15270
15267
  children: e
15268
+ }) : /* @__PURE__ */ C("div", {
15269
+ className: G("ClickableDiv", t),
15270
+ children: e
15271
15271
  });
15272
15272
  }
15273
15273
  //#endregion
@@ -21462,16 +21462,16 @@ function bh({ isShown: e, onClick: t, title: n, isExpandable: r = !0 }) {
21462
21462
  }
21463
21463
  //#endregion
21464
21464
  //#region src/expandableContainer/ExpandableContainer.tsx
21465
- function xh({ title: e, isExpandable: t = !0, className: n = "", children: r = void 0 }) {
21466
- let [i, a] = x(!0);
21465
+ function xh({ title: e, isExpandable: t = !0, className: n = "", children: r = void 0, defaultIsShown: i = !0 }) {
21466
+ let [a, o] = x(i);
21467
21467
  return /* @__PURE__ */ w(po, {
21468
21468
  className: G("gap-0 bg-white rounded-lg px-2", n),
21469
21469
  children: [/* @__PURE__ */ C(bh, {
21470
21470
  isExpandable: t,
21471
- isShown: i,
21471
+ isShown: a,
21472
21472
  title: e,
21473
- onClick: () => a((e) => !e)
21474
- }), i && /* @__PURE__ */ C("div", {
21473
+ onClick: () => o((e) => !e)
21474
+ }), a && /* @__PURE__ */ C("div", {
21475
21475
  className: "border-t border-dashed",
21476
21476
  children: r
21477
21477
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wacomm",
3
- "version": "2.32.2",
3
+ "version": "2.32.4",
4
4
  "main": "dist/wacomm.cjs.js",
5
5
  "module": "dist/wacomm.es.js",
6
6
  "types": "dist/index.d.ts",