@petnow/ui 2.2.0 → 2.2.1

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
@@ -10234,7 +10234,7 @@ function jb(r, n) {
10234
10234
  }
10235
10235
  let Wb = Re(Mb), Ud = Re(Ib), Hb = Zo, Qd = Re($b), Gd = Re(Ab), Bb = Re(jb), Vb = Object.assign(Wb, { Button: Ud, Label: Hb, Options: Qd, Option: Gd, SelectedOption: Bb });
10236
10236
  const IE = (r) => {
10237
- const { isOpen: n, setIsOpen: e, title: t, image: o, description: a, confirm: i, cancel: s, className: l } = r;
10237
+ const { isOpen: n, setIsOpen: e, onClose: t, title: o, image: a, description: i, confirm: s, cancel: l, className: c } = r;
10238
10238
  return /* @__PURE__ */ Y.jsx(
10239
10239
  Yd,
10240
10240
  {
@@ -10245,45 +10245,45 @@ const IE = (r) => {
10245
10245
  leave: "transition-opacity ease-in duration-100",
10246
10246
  leaveFrom: "opacity-100",
10247
10247
  leaveTo: "opacity-0",
10248
- children: /* @__PURE__ */ Y.jsxs(Fn, { onClose: () => e(!1), className: "relative z-50 focus:outline-hidden", children: [
10248
+ children: /* @__PURE__ */ Y.jsxs(Fn, { onClose: t, className: "relative z-50 focus:outline-hidden", children: [
10249
10249
  /* @__PURE__ */ Y.jsx("div", { className: "fixed inset-0 bg-black/40", "aria-hidden": !n }),
10250
10250
  /* @__PURE__ */ Y.jsx("div", { className: "fixed inset-0 flex w-screen items-center justify-center p-4", children: /* @__PURE__ */ Y.jsxs(
10251
10251
  jd,
10252
10252
  {
10253
10253
  className: gt(
10254
- l == null ? void 0 : l.popup,
10254
+ c == null ? void 0 : c.popup,
10255
10255
  "ja-break-all flex w-[90vw] max-w-[300px] flex-col gap-[16px] rounded-[16px] bg-white p-[20px]"
10256
10256
  ),
10257
10257
  children: [
10258
10258
  /* @__PURE__ */ Y.jsxs("div", { className: "flex flex-col gap-[8px]", children: [
10259
- t && /* @__PURE__ */ Y.jsx(Wd, { className: gt(l == null ? void 0 : l.title, "global-break-all text-title-small font-bold text-black"), children: t }),
10260
- o && /* @__PURE__ */ Y.jsx("img", { className: l == null ? void 0 : l.image, src: o.url, alt: o.alt }),
10261
- a && a !== "" && /* @__PURE__ */ Y.jsx(
10259
+ o && /* @__PURE__ */ Y.jsx(Wd, { className: gt(c == null ? void 0 : c.title, "global-break-all text-title-small font-bold text-black"), children: o }),
10260
+ a && /* @__PURE__ */ Y.jsx("img", { className: c == null ? void 0 : c.image, src: a.url, alt: a.alt }),
10261
+ i && i !== "" && /* @__PURE__ */ Y.jsx(
10262
10262
  Iu,
10263
10263
  {
10264
10264
  className: gt(
10265
- l == null ? void 0 : l.description,
10265
+ c == null ? void 0 : c.description,
10266
10266
  "text-petnow-grey-tertiary text-body-large popup-scrollbar max-h-[314px] overflow-y-auto break-all"
10267
10267
  ),
10268
- children: a
10268
+ children: i
10269
10269
  }
10270
10270
  )
10271
10271
  ] }),
10272
10272
  /* @__PURE__ */ Y.jsxs("div", { className: "flex flex-col gap-[8px]", children: [
10273
- i && /* @__PURE__ */ Y.jsx(
10273
+ s && /* @__PURE__ */ Y.jsx(
10274
10274
  "button",
10275
10275
  {
10276
10276
  className: "bg-petnow-orange-primary sm:hover:bg-petnow-orange-40 text-label-medium w-full cursor-pointer rounded-[12px] py-[12px] font-bold text-white transition duration-200",
10277
- onClick: i.onClick,
10278
- children: i.text
10277
+ onClick: s.onClick,
10278
+ children: s.text
10279
10279
  }
10280
10280
  ),
10281
- s && /* @__PURE__ */ Y.jsx(
10281
+ l && /* @__PURE__ */ Y.jsx(
10282
10282
  "button",
10283
10283
  {
10284
10284
  onClick: () => e(!1),
10285
10285
  className: "bg-background-tertiary sm:hover:bg-petnow-grey-90 text-petnow-grey-tertiary text-label-medium w-full cursor-pointer rounded-[12px] py-[12px] font-bold transition duration-200",
10286
- children: s.text
10286
+ children: l.text
10287
10287
  }
10288
10288
  )
10289
10289
  ] })