@grapadigital/shared-app-modules 0.0.176 → 0.0.178

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.
Files changed (2) hide show
  1. package/dist/components.js +75 -75
  2. package/package.json +1 -1
@@ -1,24 +1,24 @@
1
1
  import { l as x, V as v, c, $ as C, B as f, aI as z, aJ as I, aK as M, bf as F, ac as H, ad as _, ah as w, ag as L, ae as j, ai as A } from "./chuncks/switch.BF6I8Lqo.js";
2
- import { r as ke, s as Ne, w as ve, J as Ce, x as ze, y as Ie, F as Me, z as Te, D as Se, E as Fe, G as He, H as _e, q as Le, t as je, K as Ae, L as De, l as $e, m as Ee, n as Pe, o as Be, p as Re, M as qe, u as Ke, v as Oe, N as Ve, X as Xe, Y as Je } from "./chuncks/youtube-icon.component.DNSli53G.js";
2
+ import { r as Ne, s as ve, w as Ce, J as ze, x as Ie, y as Me, F as Te, z as Se, D as Fe, E as He, G as _e, H as Le, q as je, t as Ae, K as De, L as $e, l as Pe, m as Ee, n as Be, o as Re, p as qe, M as Ke, u as Oe, v as Ve, N as Xe, X as Je, Y as Ye } from "./chuncks/youtube-icon.component.DNSli53G.js";
3
3
  import { jsx as e, jsxs as o, Fragment as D } from "react/jsx-runtime";
4
- import { useState as $, useRef as E, useEffect as P } from "react";
4
+ import { useState as $, useRef as P, useEffect as E } from "react";
5
5
  import { parseISO as k, differenceInCalendarDays as B, format as R } from "date-fns";
6
- import { T as q, a as K, b as O, S as u } from "./chuncks/tooltip.BR6kaw4f.js";
7
- const V = [
6
+ import { c as q, T as K, a as O, b as V, S as u } from "./chuncks/tooltip.BR6kaw4f.js";
7
+ const X = [
8
8
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
9
9
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
10
10
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
11
- ], X = x("circle-alert", V);
12
- const J = [
11
+ ], J = x("circle-alert", X);
12
+ const Y = [
13
13
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
14
14
  ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
15
15
  ["path", { d: "M12 17h.01", key: "p32p05" }]
16
- ], Y = x("circle-question-mark", J);
17
- const G = [
16
+ ], G = x("circle-question-mark", Y);
17
+ const Q = [
18
18
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
19
19
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
20
- ], Q = x("copy", G);
21
- const W = [
20
+ ], W = x("copy", Q);
21
+ const U = [
22
22
  [
23
23
  "path",
24
24
  {
@@ -30,14 +30,14 @@ const W = [
30
30
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
31
31
  ["path", { d: "M16 13H8", key: "t4e002" }],
32
32
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
33
- ], U = x("file-text", W);
34
- const Z = [
33
+ ], Z = x("file-text", U);
34
+ const ee = [
35
35
  ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
36
36
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
37
37
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
38
38
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
39
- ], ee = x("refresh-cw", Z);
40
- const te = [
39
+ ], te = x("refresh-cw", ee);
40
+ const ae = [
41
41
  [
42
42
  "path",
43
43
  {
@@ -47,9 +47,9 @@ const te = [
47
47
  ],
48
48
  ["path", { d: "M12 9v4", key: "juzpu7" }],
49
49
  ["path", { d: "M12 17h.01", key: "p32p05" }]
50
- ], ae = x("triangle-alert", te);
51
- function ce({
52
- icon: r = ae,
50
+ ], re = x("triangle-alert", ae);
51
+ function ge({
52
+ icon: r = re,
53
53
  title: a,
54
54
  description: n,
55
55
  onRetry: l,
@@ -62,13 +62,13 @@ function ce({
62
62
  /* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: a }),
63
63
  /* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: n }),
64
64
  l && /* @__PURE__ */ o(f, { onClick: l, variant: "outline", className: "mt-6", children: [
65
- /* @__PURE__ */ e(ee, {}),
65
+ /* @__PURE__ */ e(te, {}),
66
66
  "Tentar novamente"
67
67
  ] }),
68
68
  s && /* @__PURE__ */ e("div", { className: "bg-destructive/5 border-destructive/20 mt-6 rounded-lg border border-dashed px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-muted-foreground text-xs", children: s }) })
69
69
  ] }) });
70
70
  }
71
- function ge({
71
+ function xe({
72
72
  content: r,
73
73
  align: a,
74
74
  asChild: n,
@@ -84,7 +84,7 @@ function ge({
84
84
  /* @__PURE__ */ e(M, { align: a, className: l, children: r })
85
85
  ] }) });
86
86
  }
87
- const re = {
87
+ const ne = {
88
88
  red: { bg: "bg-red-50", text: "text-red-600" },
89
89
  orange: { bg: "bg-orange-50", text: "text-orange-600" },
90
90
  amber: { bg: "bg-amber-50", text: "text-amber-600" },
@@ -107,7 +107,7 @@ const re = {
107
107
  zinc: { bg: "bg-zinc-200", text: "text-zinc-800" },
108
108
  neutral: { bg: "bg-neutral-200", text: "text-neutral-800" },
109
109
  stone: { bg: "bg-stone-200", text: "text-stone-800" }
110
- }, ne = {
110
+ }, le = {
111
111
  red: { bg: "bg-red-500", text: "text-white" },
112
112
  orange: { bg: "bg-orange-500", text: "text-white" },
113
113
  amber: { bg: "bg-amber-500", text: "text-white" },
@@ -138,20 +138,20 @@ const re = {
138
138
  lg: "size-6",
139
139
  xl: "size-7"
140
140
  };
141
- function xe({
141
+ function be({
142
142
  size: r,
143
143
  color: a,
144
144
  className: n,
145
145
  icon: l,
146
146
  filled: s
147
147
  }) {
148
- const t = s ? ne[a] : re[a], i = r ? N[r] : N.md;
148
+ const t = s ? le[a] : ne[a], i = r ? N[r] : N.md;
149
149
  return /* @__PURE__ */ e("div", { className: c("w-fit p-2 rounded-lg", t?.bg, n), children: /* @__PURE__ */ e(l, { className: c(i, t?.text) }) });
150
150
  }
151
- function be({ className: r, ...a }) {
151
+ function me({ className: r, ...a }) {
152
152
  return /* @__PURE__ */ e("div", { className: c("divide-y", r), ...a });
153
153
  }
154
- function me({
154
+ function he({
155
155
  label: r,
156
156
  value: a,
157
157
  tooltip: n,
@@ -183,7 +183,7 @@ function me({
183
183
  children: [
184
184
  r,
185
185
  " ",
186
- /* @__PURE__ */ e(X, { className: "size-3.5" })
186
+ /* @__PURE__ */ e(J, { className: "size-3.5" })
187
187
  ]
188
188
  }
189
189
  ),
@@ -196,7 +196,7 @@ function me({
196
196
  ),
197
197
  children: [
198
198
  i && typeof a == "number" ? `${a.toFixed(2)}%` : d && typeof a == "string" ? R(k(a), "dd/MM/yyyy") : b && typeof a == "string" ? a : `R$ ${a.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
199
- m && y && /* @__PURE__ */ e(Q, { size: 15, onClick: () => y(a) })
199
+ m && y && /* @__PURE__ */ e(W, { size: 15, onClick: () => y(a) })
200
200
  ]
201
201
  }
202
202
  )
@@ -214,8 +214,8 @@ function me({
214
214
  )
215
215
  ] }) });
216
216
  }
217
- function he({
218
- icon: r = U,
217
+ function ue({
218
+ icon: r = Z,
219
219
  title: a,
220
220
  description: n,
221
221
  tip: l,
@@ -235,12 +235,12 @@ function he({
235
235
  l && /* @__PURE__ */ e("div", { className: "mt-6 rounded-lg border border-dashed border-muted-foreground/20 bg-muted/50 px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: l }) })
236
236
  ] }) });
237
237
  }
238
- function ue({
238
+ function fe({
239
239
  actions: r,
240
- icon: a = Y
240
+ icon: a = G
241
241
  }) {
242
- const [n, l] = $(!1), s = E(null);
243
- return P(() => {
242
+ const [n, l] = $(!1), s = P(null);
243
+ return E(() => {
244
244
  if (!n) return;
245
245
  const t = (d) => {
246
246
  s.current?.contains(d.target) || l(!1);
@@ -250,7 +250,7 @@ function ue({
250
250
  return document.addEventListener("mousedown", t), document.addEventListener("keydown", i), () => {
251
251
  document.removeEventListener("mousedown", t), document.removeEventListener("keydown", i);
252
252
  };
253
- }, [n]), /* @__PURE__ */ o(
253
+ }, [n]), /* @__PURE__ */ e(q, { children: /* @__PURE__ */ o(
254
254
  "div",
255
255
  {
256
256
  ref: s,
@@ -264,8 +264,8 @@ function ue({
264
264
  n ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0"
265
265
  ),
266
266
  style: { transitionDelay: n ? `${i * 30}ms` : "0ms" },
267
- children: /* @__PURE__ */ o(q, { children: [
268
- /* @__PURE__ */ e(K, { asChild: !0, children: /* @__PURE__ */ e(
267
+ children: /* @__PURE__ */ o(K, { children: [
268
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ e(
269
269
  f,
270
270
  {
271
271
  size: "icon",
@@ -282,7 +282,7 @@ function ue({
282
282
  children: /* @__PURE__ */ e(t.icon, { className: "size-5" })
283
283
  }
284
284
  ) }),
285
- /* @__PURE__ */ e(O, { side: "left", children: t.label })
285
+ /* @__PURE__ */ e(V, { side: "left", children: t.label })
286
286
  ] })
287
287
  },
288
288
  t.label
@@ -301,9 +301,9 @@ function ue({
301
301
  )
302
302
  ]
303
303
  }
304
- );
304
+ ) });
305
305
  }
306
- function fe({
306
+ function pe({
307
307
  columns: r = 9,
308
308
  rows: a = 20,
309
309
  hasActions: n = !1,
@@ -332,7 +332,7 @@ function fe({
332
332
  }) }, t)) })
333
333
  ] });
334
334
  }
335
- function pe({
335
+ function ye({
336
336
  size: r = 24,
337
337
  color: a = "currentColor",
338
338
  ...n
@@ -356,40 +356,40 @@ function pe({
356
356
  );
357
357
  }
358
358
  export {
359
- ke as CampaignsSelectInput,
360
- Ne as ClientSelectInput,
361
- ce as ErrorCard,
362
- ve as FieldCalendar,
363
- Ce as FieldCheckbox,
364
- ze as FieldClientSelectInput,
365
- Ie as FieldInput,
366
- Me as FieldLabelWithAsterisk,
367
- Te as FieldProfileSelectInput,
368
- Se as FieldSaleSelectInput,
369
- Fe as FieldSelect,
370
- He as FieldSwitch,
371
- _e as FieldTextarea,
372
- ge as HoverContent,
373
- xe as IconBadge,
374
- Le as Image,
375
- je as InfluencerSelectInput,
376
- Ae as InstagramIcon,
377
- De as LinkedInIcon,
378
- be as List,
379
- me as ListRow,
380
- he as NotFoundCard,
381
- $e as PageHeader,
359
+ Ne as CampaignsSelectInput,
360
+ ve as ClientSelectInput,
361
+ ge as ErrorCard,
362
+ Ce as FieldCalendar,
363
+ ze as FieldCheckbox,
364
+ Ie as FieldClientSelectInput,
365
+ Me as FieldInput,
366
+ Te as FieldLabelWithAsterisk,
367
+ Se as FieldProfileSelectInput,
368
+ Fe as FieldSaleSelectInput,
369
+ He as FieldSelect,
370
+ _e as FieldSwitch,
371
+ Le as FieldTextarea,
372
+ xe as HoverContent,
373
+ be as IconBadge,
374
+ je as Image,
375
+ Ae as InfluencerSelectInput,
376
+ De as InstagramIcon,
377
+ $e as LinkedInIcon,
378
+ me as List,
379
+ he as ListRow,
380
+ ue as NotFoundCard,
381
+ Pe as PageHeader,
382
382
  Ee as PageHeaderActions,
383
- Pe as PageHeaderContent,
384
- Be as PageHeaderDescription,
385
- Re as PageHeaderTitle,
386
- qe as PinterestIcon,
387
- Ke as ProfileSelectInput,
388
- Oe as SaleSelectInput,
389
- ue as SpeedDialButton,
390
- fe as TableSkeleton,
391
- Ve as TikTokIcon,
392
- pe as TwitterIcon,
393
- Xe as XIcon,
394
- Je as YoutubeIcon
383
+ Be as PageHeaderContent,
384
+ Re as PageHeaderDescription,
385
+ qe as PageHeaderTitle,
386
+ Ke as PinterestIcon,
387
+ Oe as ProfileSelectInput,
388
+ Ve as SaleSelectInput,
389
+ fe as SpeedDialButton,
390
+ pe as TableSkeleton,
391
+ Xe as TikTokIcon,
392
+ ye as TwitterIcon,
393
+ Je as XIcon,
394
+ Ye as YoutubeIcon
395
395
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-app-modules",
3
3
  "private": false,
4
- "version": "0.0.176",
4
+ "version": "0.0.178",
5
5
  "files": [
6
6
  "dist"
7
7
  ],