@g4rcez/components 0.0.54 → 0.0.55

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.mjs CHANGED
@@ -3259,8 +3259,8 @@ const s1 = /* @__PURE__ */ jx(i1), Qm = (...e) => (t) => {
3259
3259
  }, Zc = (e) => {
3260
3260
  const t = () => e.setAttribute("data-initialized", "true");
3261
3261
  return e.addEventListener("focus", t), () => e.removeEventListener("focus", t);
3262
- }, Mi = qe(function({ as: t, ...n }, r) {
3263
- return /* @__PURE__ */ T(t || "span", { ...n, ref: r });
3262
+ }, Mi = qe(function({ as: t, children: n, ...r }, o) {
3263
+ return /* @__PURE__ */ T(t || "span", { ref: o, ...r, children: n });
3264
3264
  }), l1 = xo(
3265
3265
  "relative overflow-hidden inline-flex duration-500 enabled:hover:bg-opacity-70 data-[loading=true]:opacity-30 data-[loading=true]:animate-pulse gap-1.5 items-center justify-center align-middle cursor-pointer whitespace-nowrap font-medium transition-colors ease-in disabled:cursor-not-allowed disabled:bg-opacity-40 disabled:text-opacity-80 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-ring ease-normal",
3266
3266
  {
@@ -3309,10 +3309,11 @@ const s1 = /* @__PURE__ */ jx(i1), Qm = (...e) => (t) => {
3309
3309
  ref: l,
3310
3310
  type: i,
3311
3311
  "data-theme": o,
3312
- "data-loading": r,
3313
3312
  disabled: u,
3314
- "aria-busy": u || r,
3313
+ "data-loading": r,
3314
+ "aria-disabled": u,
3315
3315
  as: c.as ?? "button",
3316
+ "aria-busy": u || r,
3316
3317
  onClick: u ? void 0 : c.onClick,
3317
3318
  className: $e(l1({ size: s, rounded: a, theme: o }), t),
3318
3319
  children: [
@@ -18161,16 +18162,17 @@ const ji = (e) => {
18161
18162
  children: /* @__PURE__ */ T(Bi, { visuallyHiddenDismiss: !0, modal: !0, closeOnFocusOut: !0, context: m, children: /* @__PURE__ */ K(
18162
18163
  wt.div,
18163
18164
  {
18164
- animate: "enter",
18165
- "aria-describedby": a,
18166
- "aria-labelledby": s,
18167
- className: EM({ position: u, type: f }),
18168
18165
  exit: "exit",
18169
- layoutId: i.layoutId,
18166
+ animate: "enter",
18170
18167
  initial: "initial",
18168
+ variants: h,
18171
18169
  ref: p.setFloating,
18170
+ "aria-modal": i.open,
18171
+ layoutId: i.layoutId,
18172
+ "aria-labelledby": s,
18173
+ "aria-describedby": a,
18174
+ className: EM({ position: u, type: f }),
18172
18175
  style: f === "drawer" ? { width: S } : { height: S },
18173
- variants: h,
18174
18176
  ...w(),
18175
18177
  children: [
18176
18178
  i.title ? /* @__PURE__ */ T("header", { className: "relative w-full", children: i.title ? /* @__PURE__ */ T("h2", { className: "border-b border-floating-border px-8 pb-2 text-3xl font-medium leading-relaxed", children: i.title }) : null }) : null,
@@ -18408,6 +18410,7 @@ const IM = ({ reportStatus: e, hideLeft: t = !1, className: n, info: r, children
18408
18410
  "button",
18409
18411
  {
18410
18412
  type: "button",
18413
+ "aria-busy": r.disabled,
18411
18414
  "aria-checked": t,
18412
18415
  "aria-current": t,
18413
18416
  "aria-selected": t,
@@ -18422,7 +18425,7 @@ const IM = ({ reportStatus: e, hideLeft: t = !1, className: n, info: r, children
18422
18425
  ) });
18423
18426
  }), MM = {
18424
18427
  duration: 300,
18425
- initial: { transform: "scaleY(0)", opacity: 0.4 },
18428
+ initial: { transform: "scaleY(0)", opacity: 0.2 },
18426
18429
  open: { transform: "scaleY(1)", opacity: 1 },
18427
18430
  close: { transform: "scaleY(0)", opacity: 0 }
18428
18431
  }, kM = { caseSensitive: !1, sort: !1 }, FM = [], B_ = qe(
@@ -18476,7 +18479,7 @@ const IM = ({ reportStatus: e, hideLeft: t = !1, className: n, info: r, children
18476
18479
  width: `${W}px`,
18477
18480
  maxWidth: `${W}px`,
18478
18481
  minWidth: "max-content",
18479
- maxHeight: `${Math.min(480, $.availableHeight)}px`
18482
+ maxHeight: `${Math.min(250, $.availableHeight)}px`
18480
18483
  });
18481
18484
  }
18482
18485
  })
@@ -18734,11 +18737,14 @@ const IM = ({ reportStatus: e, hideLeft: t = !1, className: n, info: r, children
18734
18737
  fv,
18735
18738
  {
18736
18739
  ...f,
18740
+ id: m,
18741
+ name: m,
18737
18742
  type: e,
18738
18743
  "data-next": o,
18744
+ "aria-busy": f.disabled,
18745
+ "aria-disabled": f.disabled,
18746
+ "aria-readonly": f.readOnly,
18739
18747
  ref: Qm(p, g),
18740
- id: m,
18741
- name: m,
18742
18748
  className: $e(
18743
18749
  "input placeholder-input-mask group h-input-height w-full flex-1",
18744
18750
  "rounded-md bg-transparent px-input-x py-input-y text-foreground",
@@ -20718,8 +20724,8 @@ const Hk = {
20718
20724
  };
20719
20725
  }
20720
20726
  n({ url: "", type: e.file.type, size: Ap(e.file.size) });
20721
- }, [e.file]), t.type === "img" ? /* @__PURE__ */ K("div", { className: "flex flex-row gap-jade-200 items-center justify-between w-full", children: [
20722
- /* @__PURE__ */ K("header", { className: "flex flex-row gap-jade-200 items-center", children: [
20727
+ }, [e.file]), t.type === "img" ? /* @__PURE__ */ K("div", { className: "gap-jade-200 flex w-full flex-row items-center justify-between", children: [
20728
+ /* @__PURE__ */ K("header", { className: "gap-jade-200 flex flex-row items-center", children: [
20723
20729
  /* @__PURE__ */ T("img", { src: t.url, className: "size-jade-500 rounded-jade-xsmall", alt: `Miniatura do arquivo ${e.file.name}` }),
20724
20730
  /* @__PURE__ */ K("div", { className: "flex flex-col", children: [
20725
20731
  /* @__PURE__ */ T("span", { children: e.file.name }),
@@ -20739,10 +20745,10 @@ const Hk = {
20739
20745
  children: /* @__PURE__ */ T(io, {})
20740
20746
  }
20741
20747
  )
20742
- ] }) : /* @__PURE__ */ K("div", { className: "flex flex-row gap-jade-200 items-center justify-between w-full", children: [
20743
- /* @__PURE__ */ K("header", { className: "flex flex-row gap-4 items-center", children: [
20748
+ ] }) : /* @__PURE__ */ K("div", { className: "gap-jade-200 flex w-full flex-row items-center justify-between", children: [
20749
+ /* @__PURE__ */ K("header", { className: "flex flex-row items-center gap-4", children: [
20744
20750
  /* @__PURE__ */ T(xP, { size: 48 }),
20745
- /* @__PURE__ */ K("div", { className: "flex flex-col text-left justify-start items-start", children: [
20751
+ /* @__PURE__ */ K("div", { className: "flex flex-col items-start justify-start text-left", children: [
20746
20752
  /* @__PURE__ */ T("span", { children: e.file.name }),
20747
20753
  /* @__PURE__ */ T("span", { children: t.size })
20748
20754
  ] })
@@ -20761,7 +20767,7 @@ const Hk = {
20761
20767
  }
20762
20768
  )
20763
20769
  ] });
20764
- }, Uk = (e) => /* @__PURE__ */ T("ul", { className: "w-full space-y-jade-200", children: e.files.map((t) => /* @__PURE__ */ T(zk, { onDeleteFile: e.onDeleteFile, file: t }, t.name)) }), Gk = (e) => e.isDragActive ? /* @__PURE__ */ T("p", { children: "Solte os arquivos selecionados" }) : e.files.length > 0 ? /* @__PURE__ */ T(Uk, { onDeleteFile: e.onDeleteFile, files: e.files }) : /* @__PURE__ */ T(Ye, { children: e.idle }), Yk = /* @__PURE__ */ K("div", { className: "flex flex-col gap-4 justify-center items-center", children: [
20770
+ }, Uk = (e) => /* @__PURE__ */ T("ul", { className: "space-y-jade-200 w-full", children: e.files.map((t) => /* @__PURE__ */ T(zk, { onDeleteFile: e.onDeleteFile, file: t }, t.name)) }), Gk = (e) => e.isDragActive ? /* @__PURE__ */ T("p", { children: "Solte os arquivos selecionados" }) : e.files.length > 0 ? /* @__PURE__ */ T(Uk, { onDeleteFile: e.onDeleteFile, files: e.files }) : /* @__PURE__ */ T(Ye, { children: e.idle }), Yk = /* @__PURE__ */ K("div", { className: "flex flex-col items-center justify-center gap-4", children: [
20765
20771
  /* @__PURE__ */ T(AP, { size: 64 }),
20766
20772
  /* @__PURE__ */ K("p", { children: [
20767
20773
  "You can drag your files or",
@@ -20778,7 +20784,7 @@ const Hk = {
20778
20784
  {
20779
20785
  ...a(),
20780
20786
  "data-active": (u = r.files) != null && u.length ? r.files.length > 0 : !1,
20781
- className: "flex text-foreground flex-col items-center justify-center border-2 rounded-lg p-6 border-card-border data-[active=true]:bg-card-background data-[active=true]:border-solid data-[active=false]:border-dashed",
20787
+ className: "flex flex-col items-center justify-center rounded-lg border-2 border-card-border p-6 text-foreground data-[active=true]:border-solid data-[active=false]:border-dashed data-[active=true]:bg-card-background",
20782
20788
  children: [
20783
20789
  /* @__PURE__ */ T("input", { ...c(r), name: r.name, id: r.name }),
20784
20790
  /* @__PURE__ */ T(Gk, { onDeleteFile: t, isDragActive: l, idle: e, files: r.files ?? o })