@petnow/ui 0.0.6 → 0.0.7

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
@@ -18,14 +18,14 @@ function pn() {
18
18
  Jt = 1;
19
19
  var e = k, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
20
20
  function a(s, u, y) {
21
- var c, p = {}, O = null, C = null;
22
- y !== void 0 && (O = "" + y), u.key !== void 0 && (O = "" + u.key), u.ref !== void 0 && (C = u.ref);
21
+ var c, p = {}, P = null, C = null;
22
+ y !== void 0 && (P = "" + y), u.key !== void 0 && (P = "" + u.key), u.ref !== void 0 && (C = u.ref);
23
23
  for (c in u)
24
24
  n.call(u, c) && !l.hasOwnProperty(c) && (p[c] = u[c]);
25
25
  if (s && s.defaultProps)
26
26
  for (c in u = s.defaultProps, u)
27
27
  p[c] === void 0 && (p[c] = u[c]);
28
- return { $$typeof: t, type: s, key: O, ref: C, props: p, _owner: o.current };
28
+ return { $$typeof: t, type: s, key: P, ref: C, props: p, _owner: o.current };
29
29
  }
30
30
  return We.Fragment = r, We.jsx = a, We.jsxs = a, We;
31
31
  }
@@ -42,7 +42,7 @@ var Be = {};
42
42
  var Xt;
43
43
  function mn() {
44
44
  return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
45
- var e = k, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), b = Symbol.iterator, g = "@@iterator";
45
+ var e = k, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), b = Symbol.iterator, g = "@@iterator";
46
46
  function x(i) {
47
47
  if (i === null || typeof i != "object")
48
48
  return null;
@@ -70,7 +70,7 @@ function mn() {
70
70
  var z = !1, G = !1, q = !1, ae = !1, Z = !1, V;
71
71
  V = Symbol.for("react.module.reference");
72
72
  function te(i) {
73
- return !!(typeof i == "string" || typeof i == "function" || i === n || i === l || Z || i === o || i === y || i === c || ae || i === C || z || G || q || typeof i == "object" && i !== null && (i.$$typeof === O || i.$$typeof === p || i.$$typeof === a || i.$$typeof === s || i.$$typeof === u || // This needs to include all possible module reference object
73
+ return !!(typeof i == "string" || typeof i == "function" || i === n || i === l || Z || i === o || i === y || i === c || ae || i === C || z || G || q || typeof i == "object" && i !== null && (i.$$typeof === P || i.$$typeof === p || i.$$typeof === a || i.$$typeof === s || i.$$typeof === u || // This needs to include all possible module reference object
74
74
  // types supported by any Flight configuration anywhere since
75
75
  // we don't know which Flight build this will end up being used
76
76
  // with.
@@ -120,7 +120,7 @@ function mn() {
120
120
  case p:
121
121
  var S = i.displayName || null;
122
122
  return S !== null ? S : w(i.type) || "Memo";
123
- case O: {
123
+ case P: {
124
124
  var A = i, M = A._payload, N = A._init;
125
125
  try {
126
126
  return w(N(M));
@@ -309,7 +309,7 @@ function mn() {
309
309
  return X(i.render);
310
310
  case p:
311
311
  return Ze(i.type, d, h);
312
- case O: {
312
+ case P: {
313
313
  var S = i, A = S._payload, M = S._init;
314
314
  try {
315
315
  return Ze(M(A), d, h);
@@ -627,7 +627,7 @@ Check the top-level render call using <` + h + ">.");
627
627
  }()), Be;
628
628
  }
629
629
  process.env.NODE_ENV === "production" ? Pt.exports = pn() : Pt.exports = mn();
630
- var P = Pt.exports;
630
+ var O = Pt.exports;
631
631
  function ar(e) {
632
632
  var t, r, n = "";
633
633
  if (typeof e == "string" || typeof e == "number")
@@ -786,10 +786,10 @@ function En(e) {
786
786
  }
787
787
  x === "[" ? u++ : x === "]" && u--;
788
788
  }
789
- const p = s.length === 0 ? a : a.substring(y), O = p.startsWith(sr), C = O ? p.substring(1) : p, b = c && c > y ? c - y : void 0;
789
+ const p = s.length === 0 ? a : a.substring(y), P = p.startsWith(sr), C = P ? p.substring(1) : p, b = c && c > y ? c - y : void 0;
790
790
  return {
791
791
  modifiers: s,
792
- hasImportantModifier: O,
792
+ hasImportantModifier: P,
793
793
  baseClassName: C,
794
794
  maybePostfixModifierPosition: b
795
795
  };
@@ -825,7 +825,7 @@ function jn(e, t) {
825
825
  baseClassName: y,
826
826
  maybePostfixModifierPosition: c
827
827
  } = r(a);
828
- let p = n(c ? y.substring(0, c) : y), O = !!c;
828
+ let p = n(c ? y.substring(0, c) : y), P = !!c;
829
829
  if (!p) {
830
830
  if (!c)
831
831
  return {
@@ -837,7 +837,7 @@ function jn(e, t) {
837
837
  isTailwindClass: !1,
838
838
  originalClassName: a
839
839
  };
840
- O = !1;
840
+ P = !1;
841
841
  }
842
842
  const C = On(s).join(":");
843
843
  return {
@@ -845,7 +845,7 @@ function jn(e, t) {
845
845
  modifierId: u ? C + sr : C,
846
846
  classGroupId: p,
847
847
  originalClassName: a,
848
- hasPostfixModifier: O
848
+ hasPostfixModifier: P
849
849
  };
850
850
  }).reverse().filter((a) => {
851
851
  if (!a.isTailwindClass)
@@ -952,7 +952,7 @@ function Gn(e) {
952
952
  return Dn.test(e);
953
953
  }
954
954
  function Vn() {
955
- const e = F("colors"), t = F("spacing"), r = F("blur"), n = F("brightness"), o = F("borderColor"), l = F("borderRadius"), a = F("borderSpacing"), s = F("borderWidth"), u = F("contrast"), y = F("grayscale"), c = F("hueRotate"), p = F("invert"), O = F("gap"), C = F("gradientColorStops"), b = F("gradientColorStopPositions"), g = F("inset"), x = F("margin"), E = F("opacity"), j = F("padding"), $ = F("saturate"), z = F("scale"), G = F("sepia"), q = F("skew"), ae = F("space"), Z = F("translate"), V = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], m = () => ["auto", T, t], f = () => [T, t], w = () => ["", de, he], v = () => ["auto", Se, T], _ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], L = () => ["", "0", T], ue = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ee = () => [Se, rt], re = () => [Se, T];
955
+ const e = F("colors"), t = F("spacing"), r = F("blur"), n = F("brightness"), o = F("borderColor"), l = F("borderRadius"), a = F("borderSpacing"), s = F("borderWidth"), u = F("contrast"), y = F("grayscale"), c = F("hueRotate"), p = F("invert"), P = F("gap"), C = F("gradientColorStops"), b = F("gradientColorStopPositions"), g = F("inset"), x = F("margin"), E = F("opacity"), j = F("padding"), $ = F("saturate"), z = F("scale"), G = F("sepia"), q = F("skew"), ae = F("space"), Z = F("translate"), V = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], m = () => ["auto", T, t], f = () => [T, t], w = () => ["", de, he], v = () => ["auto", Se, T], _ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], L = () => ["", "0", T], ue = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ee = () => [Se, rt], re = () => [Se, T];
956
956
  return {
957
957
  cacheSize: 500,
958
958
  separator: ":",
@@ -1335,21 +1335,21 @@ function Vn() {
1335
1335
  * @see https://tailwindcss.com/docs/gap
1336
1336
  */
1337
1337
  gap: [{
1338
- gap: [O]
1338
+ gap: [P]
1339
1339
  }],
1340
1340
  /**
1341
1341
  * Gap X
1342
1342
  * @see https://tailwindcss.com/docs/gap
1343
1343
  */
1344
1344
  "gap-x": [{
1345
- "gap-x": [O]
1345
+ "gap-x": [P]
1346
1346
  }],
1347
1347
  /**
1348
1348
  * Gap Y
1349
1349
  * @see https://tailwindcss.com/docs/gap
1350
1350
  */
1351
1351
  "gap-y": [{
1352
- "gap-y": [O]
1352
+ "gap-y": [P]
1353
1353
  }],
1354
1354
  /**
1355
1355
  * Justify Content
@@ -2971,13 +2971,13 @@ const Yn = /* @__PURE__ */ Tn(Vn);
2971
2971
  function qn(...e) {
2972
2972
  return Yn(gn(e));
2973
2973
  }
2974
- const Kn = ({ className: e, text: t, onClick: r, disabled: n }) => /* @__PURE__ */ P.jsx(
2974
+ const Kn = ({ className: e, text: t, onClick: r, disabled: n }) => /* @__PURE__ */ O.jsx(
2975
2975
  "button",
2976
2976
  {
2977
2977
  disabled: n,
2978
2978
  onClick: r,
2979
2979
  className: qn(
2980
- "w-full bg-petnowOrange hover:bg-[#DF592C] transition-colors duration-200 text-white py-5 rounded-xl font-bold text-2xl disabled:bg-lightGray disabled:hover:bg-lightGray",
2980
+ "w-full rounded-xl bg-petnowOrange py-5 text-2xl font-bold text-white transition-colors duration-200 hover:bg-[#DF592C] disabled:bg-lightGray disabled:hover:bg-lightGray",
2981
2981
  e
2982
2982
  ),
2983
2983
  children: t
@@ -3279,7 +3279,7 @@ function it(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] }
3279
3279
  if (t & 8)
3280
3280
  return a.length - 1;
3281
3281
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
3282
- })(), y = t & 32 ? { preventScroll: !0 } : {}, c = 0, p = a.length, O;
3282
+ })(), y = t & 32 ? { preventScroll: !0 } : {}, c = 0, p = a.length, P;
3283
3283
  do {
3284
3284
  if (c >= p || c + p <= 0)
3285
3285
  return 0;
@@ -3292,9 +3292,9 @@ function it(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] }
3292
3292
  if (C >= p)
3293
3293
  return 1;
3294
3294
  }
3295
- O = a[C], O == null || O.focus(y), c += s;
3296
- } while (O !== l.activeElement);
3297
- return t & 6 && go(O) && O.select(), 2;
3295
+ P = a[C], P == null || P.focus(y), c += s;
3296
+ } while (P !== l.activeElement);
3297
+ return t & 6 && go(P) && P.select(), 2;
3298
3298
  }
3299
3299
  function yr() {
3300
3300
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
@@ -3418,10 +3418,10 @@ function ot(e, t = {}, r, n, o) {
3418
3418
  "className" in u && u.className && typeof u.className == "function" && (u.className = u.className(t));
3419
3419
  let p = {};
3420
3420
  if (t) {
3421
- let O = !1, C = [];
3421
+ let P = !1, C = [];
3422
3422
  for (let [b, g] of Object.entries(t))
3423
- typeof g == "boolean" && (O = !0), g === !0 && C.push(b);
3424
- O && (p["data-headlessui-state"] = C.join(" "));
3423
+ typeof g == "boolean" && (P = !0), g === !0 && C.push(b);
3424
+ P && (p["data-headlessui-state"] = C.join(" "));
3425
3425
  }
3426
3426
  if (l === Ke && Object.keys(or(u)).length > 0) {
3427
3427
  if (!ln(c) || Array.isArray(c) && c.length > 1)
@@ -3429,7 +3429,7 @@ function ot(e, t = {}, r, n, o) {
3429
3429
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((g) => ` - ${g}`).join(`
3430
3430
  `)].join(`
3431
3431
  `));
3432
- let O = c.props, C = typeof (O == null ? void 0 : O.className) == "function" ? (...g) => nr(O == null ? void 0 : O.className(...g), u.className) : nr(O == null ? void 0 : O.className, u.className), b = C ? { className: C } : {};
3432
+ let P = c.props, C = typeof (P == null ? void 0 : P.className) == "function" ? (...g) => nr(P == null ? void 0 : P.className(...g), u.className) : nr(P == null ? void 0 : P.className, u.className), b = C ? { className: C } : {};
3433
3433
  return sn(c, Object.assign({}, Er(c.props, or(xt(u, ["ref"]))), p, y, { ref: o(c.ref, y.ref) }, b));
3434
3434
  }
3435
3435
  return un(l, Object.assign({}, xt(u, ["ref"]), l !== Ke && y, l !== Ke && p), c);
@@ -3582,8 +3582,8 @@ function ko(e, t) {
3582
3582
  it(x, je.Last, { skipElements: [g.relatedTarget] });
3583
3583
  } });
3584
3584
  });
3585
- }), O = lo(), C = H(!1), b = { ref: n, onKeyDown(g) {
3586
- g.key == "Tab" && (C.current = !0, O.requestAnimationFrame(() => {
3585
+ }), P = lo(), C = H(!1), b = { ref: n, onKeyDown(g) {
3586
+ g.key == "Tab" && (C.current = !0, P.requestAnimationFrame(() => {
3587
3587
  C.current = !1;
3588
3588
  }));
3589
3589
  }, onBlur(g) {
@@ -3890,7 +3890,7 @@ function di({ defaultContainers: e = [], portals: t, mainTreeNodeRef: r } = {})
3890
3890
  for (let p of t.current)
3891
3891
  c.push(p);
3892
3892
  for (let p of (s = l == null ? void 0 : l.querySelectorAll("html > *, body > *")) != null ? s : [])
3893
- p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(o.current) || p.contains((y = (u = o.current) == null ? void 0 : u.getRootNode()) == null ? void 0 : y.host) || c.some((O) => p.contains(O)) || c.push(p));
3893
+ p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(o.current) || p.contains((y = (u = o.current) == null ? void 0 : u.getRootNode()) == null ? void 0 : y.host) || c.some((P) => p.contains(P)) || c.push(p));
3894
3894
  return c;
3895
3895
  });
3896
3896
  return { resolveContainers: a, contains: Y((s) => a().some((u) => u.contains(s))), mainTreeNodeRef: o, MainTreeNode: ie(() => function() {
@@ -3966,9 +3966,9 @@ function Oi(e, t) {
3966
3966
  }
3967
3967
  let Pi = "div", Ci = St.RenderStrategy | St.Static;
3968
3968
  function ji(e, t) {
3969
- let r = Fe(), { id: n = `headlessui-dialog-${r}`, open: o, onClose: l, initialFocus: a, role: s = "dialog", __demoMode: u = !1, ...y } = e, [c, p] = Re(0), O = H(!1);
3969
+ let r = Fe(), { id: n = `headlessui-dialog-${r}`, open: o, onClose: l, initialFocus: a, role: s = "dialog", __demoMode: u = !1, ...y } = e, [c, p] = Re(0), P = H(!1);
3970
3970
  s = function() {
3971
- return s === "dialog" || s === "alertdialog" ? s : (O.current || (O.current = !0, console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
3971
+ return s === "dialog" || s === "alertdialog" ? s : (P.current || (P.current = !0, console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
3972
3972
  }();
3973
3973
  let C = Co();
3974
3974
  o === void 0 && C !== null && (o = (C & Ye.Open) === Ye.Open);
@@ -4055,15 +4055,15 @@ function Ai(e, t) {
4055
4055
  let Di = se(ji), Mi = se(Ri), Fi = se($i), Li = se(Ti), Ii = se(Ai), we = Object.assign(Di, { Backdrop: Mi, Panel: Fi, Overlay: Li, Title: Ii, Description: vi });
4056
4056
  const Gi = ({ checked: e, label: t, onChange: r, termImageUrl: n }) => {
4057
4057
  const [o, l] = Re(!1);
4058
- return /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
4059
- /* @__PURE__ */ P.jsx(zi, { isOpen: o, setIsOpen: l, termImageUrl: n }),
4060
- /* @__PURE__ */ P.jsxs("div", { className: "inline-flex items-center", children: [
4061
- /* @__PURE__ */ P.jsxs("label", { className: "relative flex items-center p-3 rounded-full cursor-pointer", htmlFor: "check", children: [
4062
- /* @__PURE__ */ P.jsx(
4058
+ return /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
4059
+ /* @__PURE__ */ O.jsx(zi, { isOpen: o, setIsOpen: l, termImageUrl: n }),
4060
+ /* @__PURE__ */ O.jsxs("div", { className: "inline-flex items-center", children: [
4061
+ /* @__PURE__ */ O.jsxs("label", { className: "relative flex cursor-pointer items-center rounded-full p-3", htmlFor: "check", children: [
4062
+ /* @__PURE__ */ O.jsx(
4063
4063
  "input",
4064
4064
  {
4065
4065
  type: "checkbox",
4066
- className: "before:content[''] peer bg-[#C5C8CD] relative size-6 cursor-pointer appearance-none rounded-xl border border-blue-gray-200 transition-all before:absolute before:top-2/4 before:left-2/4 before:block before:h-12 before:w-12 before:-translate-y-2/4 before:-translate-x-2/4 before:rounded-full before:bg-blue-gray-500 before:opacity-0 before:transition-opacity checked:border-petnowOrange checked:bg-petnowOrange checked:before:bg-petnowOrange",
4066
+ className: "before:content[''] border-blue-gray-200 before:bg-blue-gray-500 peer relative size-6 cursor-pointer appearance-none rounded-xl border bg-[#C5C8CD] transition-all before:absolute before:left-2/4 before:top-2/4 before:block before:h-12 before:w-12 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity checked:border-petnowOrange checked:bg-petnowOrange checked:before:bg-petnowOrange",
4067
4067
  id: t,
4068
4068
  checked: e,
4069
4069
  onChange: (a) => {
@@ -4071,7 +4071,7 @@ const Gi = ({ checked: e, label: t, onChange: r, termImageUrl: n }) => {
4071
4071
  }
4072
4072
  }
4073
4073
  ),
4074
- /* @__PURE__ */ P.jsx("span", { className: "absolute transition text-[#8B919A] pointer-events-none top-2/4 left-2/4 -translate-y-2/4 -translate-x-2/4 peer-checked:text-white", children: /* @__PURE__ */ P.jsx(
4074
+ /* @__PURE__ */ O.jsx("span", { className: "pointer-events-none absolute left-2/4 top-2/4 -translate-x-2/4 -translate-y-2/4 text-[#8B919A] transition peer-checked:text-white", children: /* @__PURE__ */ O.jsx(
4075
4075
  "svg",
4076
4076
  {
4077
4077
  xmlns: "http://www.w3.org/2000/svg",
@@ -4080,7 +4080,7 @@ const Gi = ({ checked: e, label: t, onChange: r, termImageUrl: n }) => {
4080
4080
  fill: "currentColor",
4081
4081
  stroke: "currentColor",
4082
4082
  strokeWidth: "1",
4083
- children: /* @__PURE__ */ P.jsx(
4083
+ children: /* @__PURE__ */ O.jsx(
4084
4084
  "path",
4085
4085
  {
4086
4086
  fillRule: "evenodd",
@@ -4091,31 +4091,31 @@ const Gi = ({ checked: e, label: t, onChange: r, termImageUrl: n }) => {
4091
4091
  }
4092
4092
  ) })
4093
4093
  ] }),
4094
- t && /* @__PURE__ */ P.jsxs("div", { className: "flex items-center", children: [
4095
- /* @__PURE__ */ P.jsx("label", { className: "cursor-pointer font-medium", htmlFor: t, children: t }),
4096
- /* @__PURE__ */ P.jsx(
4094
+ t && /* @__PURE__ */ O.jsxs("div", { className: "flex items-center", children: [
4095
+ /* @__PURE__ */ O.jsx("label", { className: "cursor-pointer font-medium", htmlFor: t, children: t }),
4096
+ /* @__PURE__ */ O.jsx(
4097
4097
  no,
4098
4098
  {
4099
4099
  onClick: () => {
4100
4100
  l(!0);
4101
4101
  },
4102
- className: "text-deepGray ml-2 mt-[2.5px] cursor-pointer",
4102
+ className: "ml-2 mt-[2.5px] cursor-pointer text-deepGray",
4103
4103
  size: 24
4104
4104
  }
4105
4105
  )
4106
4106
  ] })
4107
4107
  ] })
4108
4108
  ] });
4109
- }, zi = ({ isOpen: e, setIsOpen: t, termImageUrl: r }) => /* @__PURE__ */ P.jsxs(we, { open: e, onClose: () => t(!1), className: "relative z-50", children: [
4110
- /* @__PURE__ */ P.jsx("div", { className: "fixed inset-0 bg-black/30", "aria-hidden": "true" }),
4111
- /* @__PURE__ */ P.jsx("div", { className: "fixed inset-0 w-screen overflow-y-auto", children: /* @__PURE__ */ P.jsx("div", { className: "flex min-h-full items-center justify-center p-4", children: /* @__PURE__ */ P.jsxs(we.Panel, { className: "mx-auto max-w-sm rounded bg-white flex flex-col gap-8 items-center", children: [
4112
- /* @__PURE__ */ P.jsx("div", { className: "flex flex-row-reverse w-full h-[36px] bg-[#F0F1F2] items-center", children: /* @__PURE__ */ P.jsx(gr, { size: 20, className: "mr-2", onClick: () => t(!1) }) }),
4113
- /* @__PURE__ */ P.jsx("img", { src: r, alt: "약관동의 이미지" }),
4114
- /* @__PURE__ */ P.jsx(
4109
+ }, zi = ({ isOpen: e, setIsOpen: t, termImageUrl: r }) => /* @__PURE__ */ O.jsxs(we, { open: e, onClose: () => t(!1), className: "relative z-50", children: [
4110
+ /* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 bg-black/30", "aria-hidden": "true" }),
4111
+ /* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 w-screen overflow-y-auto", children: /* @__PURE__ */ O.jsx("div", { className: "flex min-h-full items-center justify-center p-4", children: /* @__PURE__ */ O.jsxs(we.Panel, { className: "mx-auto flex max-w-sm flex-col items-center gap-8 rounded bg-white", children: [
4112
+ /* @__PURE__ */ O.jsx("div", { className: "flex h-[36px] w-full flex-row-reverse items-center bg-[#F0F1F2]", children: /* @__PURE__ */ O.jsx(gr, { size: 20, className: "mr-2", onClick: () => t(!1) }) }),
4113
+ /* @__PURE__ */ O.jsx("img", { src: r, alt: "약관동의 이미지" }),
4114
+ /* @__PURE__ */ O.jsx(
4115
4115
  Kn,
4116
4116
  {
4117
4117
  text: "닫기",
4118
- className: "focus:outline-none text-base w-[90%] mb-4",
4118
+ className: "mb-4 w-[90%] text-base focus:outline-none",
4119
4119
  onClick: () => t(!1)
4120
4120
  }
4121
4121
  )
@@ -4220,12 +4220,12 @@ var Dr = {}, Mr = {}, mt = {};
4220
4220
  if (!(m instanceof f))
4221
4221
  throw new TypeError("Cannot call a class as a function");
4222
4222
  }
4223
- function O(m, f) {
4223
+ function P(m, f) {
4224
4224
  for (var w, v = 0; v < f.length; v++)
4225
4225
  w = f[v], w.enumerable = w.enumerable || !1, w.configurable = !0, "value" in w && (w.writable = !0), Object.defineProperty(m, w.key, w);
4226
4226
  }
4227
4227
  function C(m, f, w) {
4228
- return f && O(m.prototype, f), w && O(m, w), m;
4228
+ return f && P(m.prototype, f), w && P(m, w), m;
4229
4229
  }
4230
4230
  function b(m, f) {
4231
4231
  if (typeof f != "function" && f !== null)
@@ -4389,7 +4389,7 @@ var Fr = {};
4389
4389
  x = $[E], 0 <= g.indexOf(x) || (j[x] = b[x]);
4390
4390
  return j;
4391
4391
  }
4392
- function O() {
4392
+ function P() {
4393
4393
  var b = 0 < arguments.length && arguments[0] !== void 0 ? arguments[0] : n.postcodeScriptUrl;
4394
4394
  (0, r.useEffect)(function() {
4395
4395
  (0, n.default)(b);
@@ -4403,7 +4403,7 @@ var Fr = {};
4403
4403
  }, [b]);
4404
4404
  return g;
4405
4405
  }
4406
- var C = O;
4406
+ var C = P;
4407
4407
  e.default = C;
4408
4408
  })(Fr);
4409
4409
  (function(e) {
@@ -4423,25 +4423,25 @@ var Fr = {};
4423
4423
  })(Dr);
4424
4424
  const Vi = ({ label: e, value: t, onFrontChange: r, onBackChange: n, onPostalCodeChange: o, disabled: l }) => {
4425
4425
  const [a, s] = Re(!1), u = (p) => {
4426
- let O = p.address, C = "";
4427
- p.addressType === "R" && (p.bname !== "" && (C += p.bname), p.buildingName !== "" && (C += C !== "" ? `, ${p.buildingName}` : p.buildingName), O += C !== "" ? ` (${C})` : ""), r(O), o && o(p.zonecode), s(!1);
4426
+ let P = p.address, C = "";
4427
+ p.addressType === "R" && (p.bname !== "" && (C += p.bname), p.buildingName !== "" && (C += C !== "" ? `, ${p.buildingName}` : p.buildingName), P += C !== "" ? ` (${C})` : ""), r(P), o && o(p.zonecode), s(!1);
4428
4428
  }, y = () => {
4429
4429
  s(!0);
4430
- }, c = () => t.front ? t.front : /* @__PURE__ */ P.jsx("p", { className: "text-[#C5C8CD]", children: "주소를 입력해주세요." });
4431
- return /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
4432
- /* @__PURE__ */ P.jsx(Wi, { isOpen: a, setIsOpen: s, handleComplete: u }),
4433
- /* @__PURE__ */ P.jsxs("div", { className: "text-deepGray", children: [
4434
- /* @__PURE__ */ P.jsx("label", { htmlFor: e, className: "text-lightBlack text-sm font-bold", children: e }),
4435
- /* @__PURE__ */ P.jsxs("div", { className: "flex flex-col relative", children: [
4436
- /* @__PURE__ */ P.jsx(
4430
+ }, c = () => t.front ? t.front : /* @__PURE__ */ O.jsx("p", { className: "text-[#C5C8CD]", children: "주소를 입력해주세요." });
4431
+ return /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
4432
+ /* @__PURE__ */ O.jsx(Wi, { isOpen: a, setIsOpen: s, handleComplete: u }),
4433
+ /* @__PURE__ */ O.jsxs("div", { className: "text-deepGray", children: [
4434
+ /* @__PURE__ */ O.jsx("label", { htmlFor: e, className: "text-sm font-bold text-lightBlack", children: e }),
4435
+ /* @__PURE__ */ O.jsxs("div", { className: "relative flex flex-col", children: [
4436
+ /* @__PURE__ */ O.jsx(
4437
4437
  "div",
4438
4438
  {
4439
- className: `whitespace-nowrap overflow-hidden w-full text-base rounded-xl p-4 mt-4 h-[60px] bg-[#F8F8F9] placeholder:text-[#C5C8CD] focus:outline-none ${l && "opacity-50"}`,
4439
+ className: `mt-4 h-[60px] w-full overflow-hidden whitespace-nowrap rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none ${l && "opacity-50"}`,
4440
4440
  onClick: y,
4441
4441
  children: c()
4442
4442
  }
4443
4443
  ),
4444
- /* @__PURE__ */ P.jsx(
4444
+ /* @__PURE__ */ O.jsx(
4445
4445
  "input",
4446
4446
  {
4447
4447
  disabled: !t.front || l,
@@ -4450,7 +4450,7 @@ const Vi = ({ label: e, value: t, onFrontChange: r, onBackChange: n, onPostalCod
4450
4450
  name: e,
4451
4451
  id: e,
4452
4452
  placeholder: "상세 주소를 입력해주세요.",
4453
- className: "w-full text-base rounded-xl p-4 mt-4 h-[60px] bg-[#F8F8F9] placeholder:text-[#C5C8CD] disabled:opacity-50 focus:outline-none",
4453
+ className: "mt-4 h-[60px] w-full rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",
4454
4454
  autoComplete: "off",
4455
4455
  onChange: (p) => n(p.target.value)
4456
4456
  }
@@ -4460,11 +4460,11 @@ const Vi = ({ label: e, value: t, onFrontChange: r, onBackChange: n, onPostalCod
4460
4460
  ] });
4461
4461
  }, Wi = (e) => {
4462
4462
  const { isOpen: t, setIsOpen: r, handleComplete: n } = e;
4463
- return /* @__PURE__ */ P.jsxs(we, { open: t, onClose: () => r(!1), className: "relateive z-50", children: [
4464
- /* @__PURE__ */ P.jsx("div", { className: "fixed inset-0 bg-black/40", "aria-hidden": "true" }),
4465
- /* @__PURE__ */ P.jsx("div", { className: "fixed inset-0 flex w-screen items-center justify-center", children: /* @__PURE__ */ P.jsx(we.Panel, { children: /* @__PURE__ */ P.jsxs("div", { children: [
4466
- /* @__PURE__ */ P.jsx("div", { className: "flex flex-row-reverse w-[90vw] h-[36px] bg-[#F0F1F2] items-center", children: /* @__PURE__ */ P.jsx(gr, { size: 20, className: "mr-2", onClick: () => r(!1) }) }),
4467
- /* @__PURE__ */ P.jsx(
4463
+ return /* @__PURE__ */ O.jsxs(we, { open: t, onClose: () => r(!1), className: "relateive z-50", children: [
4464
+ /* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 bg-black/40", "aria-hidden": "true" }),
4465
+ /* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 flex w-screen items-center justify-center", children: /* @__PURE__ */ O.jsx(we.Panel, { children: /* @__PURE__ */ O.jsxs("div", { children: [
4466
+ /* @__PURE__ */ O.jsx("div", { className: "flex h-[36px] w-[90vw] flex-row-reverse items-center bg-[#F0F1F2]", children: /* @__PURE__ */ O.jsx(gr, { size: 20, className: "mr-2", onClick: () => r(!1) }) }),
4467
+ /* @__PURE__ */ O.jsx(
4468
4468
  Dr.DaumPostcodeEmbed,
4469
4469
  {
4470
4470
  onComplete: n,
@@ -4475,27 +4475,28 @@ const Vi = ({ label: e, value: t, onFrontChange: r, onBackChange: n, onPostalCod
4475
4475
  ] });
4476
4476
  }, Yi = (e) => {
4477
4477
  const { isOpen: t, setIsOpen: r } = e;
4478
- return /* @__PURE__ */ P.jsxs(we, { open: t, onClose: () => r(!1), className: "relative z-50", children: [
4479
- /* @__PURE__ */ P.jsx("div", { className: "fixed inset-0 bg-black/40", "aria-hidden": "true" }),
4480
- /* @__PURE__ */ P.jsx("div", { className: "fixed inset-0 flex w-screen items-center justify-center p-4", children: /* @__PURE__ */ P.jsxs(we.Panel, { className: "flex flex-col gap-[16px] w-[260px] p-[20px] bg-white rounded-[16px]", children: [
4481
- /* @__PURE__ */ P.jsxs("div", { className: "flex flex-col gap-[8px]", children: [
4482
- /* @__PURE__ */ P.jsx(we.Title, { className: "text-[18px] leading-[26px] text-[#2C2F34] font-bold whitespace-pre-wrap", children: e.title }),
4483
- e.description && e.description !== "" && /* @__PURE__ */ P.jsx(we.Description, { className: "text-[16px] leading-[24px] text-[#585E67] break-all", children: e.description })
4478
+ return /* @__PURE__ */ O.jsxs(we, { open: t, onClose: () => r(!1), className: "relative z-50", children: [
4479
+ /* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 bg-black/40", "aria-hidden": "true" }),
4480
+ /* @__PURE__ */ O.jsx("div", { className: "fixed inset-0 flex w-screen items-center justify-center p-4", children: /* @__PURE__ */ O.jsxs(we.Panel, { className: "flex w-[260px] flex-col gap-[16px] rounded-[16px] bg-white p-[20px]", children: [
4481
+ /* @__PURE__ */ O.jsxs("div", { className: "flex flex-col gap-[8px]", children: [
4482
+ e.title && /* @__PURE__ */ O.jsx(we.Title, { className: "whitespace-pre-wrap text-[18px] font-bold leading-[26px] text-[#2C2F34]", children: e.title }),
4483
+ e.image && /* @__PURE__ */ O.jsx("img", { src: e.image.url, alt: e.image.alt }),
4484
+ e.description && e.description !== "" && /* @__PURE__ */ O.jsx(we.Description, { className: "break-all text-[16px] leading-[24px] text-[#585E67]", children: e.description })
4484
4485
  ] }),
4485
- /* @__PURE__ */ P.jsxs("div", { className: "flex flex-col gap-[4px]", children: [
4486
- /* @__PURE__ */ P.jsx(
4486
+ /* @__PURE__ */ O.jsxs("div", { className: "flex flex-col gap-[4px]", children: [
4487
+ /* @__PURE__ */ O.jsx(
4487
4488
  "button",
4488
4489
  {
4489
- className: "w-full px-[12px] py-[14px] bg-[#FF592C] rounded-[12px] text-[14px] leading-[22px] text-white font-bold",
4490
+ className: "w-full rounded-[12px] bg-[#FF592C] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-white",
4490
4491
  onClick: e.confirm.onClick,
4491
4492
  children: e.confirm.text
4492
4493
  }
4493
4494
  ),
4494
- e.cancel && /* @__PURE__ */ P.jsx(
4495
+ e.cancel && /* @__PURE__ */ O.jsx(
4495
4496
  "button",
4496
4497
  {
4497
4498
  onClick: () => r(!1),
4498
- className: "w-full px-[12px] py-[14px] bg-[#F0F1F2] rounded-[12px] text-[14px] leading-[22px] text-[#585E67] font-bold",
4499
+ className: "w-full rounded-[12px] bg-[#F0F1F2] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-[#585E67]",
4499
4500
  children: e.cancel.text
4500
4501
  }
4501
4502
  )