@grapadigital/shared-app-modules 0.0.136 → 0.0.138
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/chuncks/{format.util.C9QktZwF.js → format.util.B54bEnt8.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.8XVxXL6P.js → youtube-icon.component.CQod02PV.js} +371 -343
- package/dist/components.d.ts +10 -0
- package/dist/components.js +28 -27
- package/dist/constants.js +1 -1
- package/dist/events.js +1 -1
- package/dist/utils.js +2 -2
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -266,6 +266,16 @@ declare interface FieldCalendarProps extends ControllerFieldState {
|
|
|
266
266
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
export declare const FieldCheckbox: ForwardRefExoticComponent<Omit<FieldCheckboxProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
270
|
+
|
|
271
|
+
declare type FieldCheckboxProps = Omit<React.ComponentProps<typeof Switch>, "value"> & ControllerFieldState & {
|
|
272
|
+
label?: string;
|
|
273
|
+
description?: string;
|
|
274
|
+
asterisk?: boolean;
|
|
275
|
+
value?: boolean;
|
|
276
|
+
onChange?(checked: boolean): void;
|
|
277
|
+
};
|
|
278
|
+
|
|
269
279
|
export declare const FieldClientSelectInput: ForwardRefExoticComponent<Omit<FieldClientSelectInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
270
280
|
|
|
271
281
|
declare type FieldClientSelectInputProps = React.ComponentProps<typeof ClientSelectInput> & ControllerFieldState & {
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as b, y as N, c, H as v, B as
|
|
2
|
-
import { k as ge, l as xe, p as be,
|
|
1
|
+
import { a as b, y as N, c, H as v, B as S, aw as C, ax as I, ay as z, Y as T, Z as H, a1 as y, a0 as _, _ as j, a2 as A } from "./chuncks/switch.q7qsNhmq.js";
|
|
2
|
+
import { k as ge, l as xe, p as be, x as me, q as he, r as fe, F as ue, s as pe, t as ye, u as we, v as ke, w as Ne, I as ve, m as Ce, y as Ie, L as ze, P as Fe, f as Me, g as Se, h as Te, j as He, z as _e, n as je, o as Ae, T as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.CQod02PV.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import { parseISO as w, differenceInCalendarDays as P, format as $ } from "date-fns";
|
|
@@ -56,7 +56,7 @@ function te({
|
|
|
56
56
|
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(a, { "aria-hidden": "true", className: "text-destructive/60 size-16" }) }),
|
|
57
57
|
/* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: t }),
|
|
58
58
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: l }),
|
|
59
|
-
n && /* @__PURE__ */ o(
|
|
59
|
+
n && /* @__PURE__ */ o(S, { onClick: n, variant: "outline", className: "mt-6", children: [
|
|
60
60
|
/* @__PURE__ */ e(E, {}),
|
|
61
61
|
"Tentar novamente"
|
|
62
62
|
] }),
|
|
@@ -158,12 +158,12 @@ function ne({
|
|
|
158
158
|
isText: x = !1,
|
|
159
159
|
isInvoiced: u = !1,
|
|
160
160
|
hasCopyButton: m = !1,
|
|
161
|
-
enableHoverableContent:
|
|
161
|
+
enableHoverableContent: F = !1,
|
|
162
162
|
handleCopy: p
|
|
163
163
|
}) {
|
|
164
164
|
let g = "";
|
|
165
165
|
if (d && typeof t == "string" && !u && n) {
|
|
166
|
-
const
|
|
166
|
+
const M = w(t), h = P(M, /* @__PURE__ */ new Date());
|
|
167
167
|
h > 15 ? g = "bg-yellow-100 font-bold" : h > 7 ? g = "bg-yellow-300 font-bold" : h >= 0 ? g = "bg-red-300 font-bold" : g = "bg-red-500 text-white font-bold";
|
|
168
168
|
} else n && (g = "bg-[#ffe0b2] font-bold");
|
|
169
169
|
return /* @__PURE__ */ e("div", { className: c("px-2 py-1 text-sm", g), children: /* @__PURE__ */ o(C, { openDelay: 0, closeDelay: 0, children: [
|
|
@@ -200,7 +200,7 @@ function ne({
|
|
|
200
200
|
z,
|
|
201
201
|
{
|
|
202
202
|
align: "start",
|
|
203
|
-
className: c(!
|
|
203
|
+
className: c(!F && "pointer-events-none"),
|
|
204
204
|
children: /* @__PURE__ */ o("div", { className: "space-y-0.5", children: [
|
|
205
205
|
/* @__PURE__ */ e("div", { className: "font-medium", children: a }),
|
|
206
206
|
/* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: l })
|
|
@@ -287,34 +287,35 @@ export {
|
|
|
287
287
|
xe as ClientSelectInput,
|
|
288
288
|
te as ErrorCard,
|
|
289
289
|
be as FieldCalendar,
|
|
290
|
-
me as
|
|
291
|
-
he as
|
|
292
|
-
fe as
|
|
293
|
-
ue as
|
|
294
|
-
pe as
|
|
295
|
-
ye as
|
|
296
|
-
we as
|
|
297
|
-
ke as
|
|
290
|
+
me as FieldCheckbox,
|
|
291
|
+
he as FieldClientSelectInput,
|
|
292
|
+
fe as FieldInput,
|
|
293
|
+
ue as FieldLabelWithAsterisk,
|
|
294
|
+
pe as FieldProfileSelectInput,
|
|
295
|
+
ye as FieldSaleSelectInput,
|
|
296
|
+
we as FieldSelect,
|
|
297
|
+
ke as FieldSwitch,
|
|
298
|
+
Ne as FieldTextarea,
|
|
298
299
|
ae as HoverContent,
|
|
299
300
|
re as IconBadge,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
301
|
+
ve as Image,
|
|
302
|
+
Ce as InfluencerSelectInput,
|
|
303
|
+
Ie as InstagramIcon,
|
|
304
|
+
ze as LinkedInIcon,
|
|
304
305
|
le as List,
|
|
305
306
|
ne as ListRow,
|
|
306
307
|
ie as NotFoundCard,
|
|
307
|
-
|
|
308
|
+
Fe as PageHeader,
|
|
308
309
|
Me as PageHeaderActions,
|
|
309
310
|
Se as PageHeaderContent,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
311
|
+
Te as PageHeaderDescription,
|
|
312
|
+
He as PageHeaderTitle,
|
|
313
|
+
_e as PinterestIcon,
|
|
314
|
+
je as ProfileSelectInput,
|
|
315
|
+
Ae as SaleSelectInput,
|
|
315
316
|
se as TableSkeleton,
|
|
316
|
-
|
|
317
|
+
Le as TikTokIcon,
|
|
317
318
|
oe as TwitterIcon,
|
|
318
|
-
|
|
319
|
-
|
|
319
|
+
Pe as XIcon,
|
|
320
|
+
$e as YoutubeIcon
|
|
320
321
|
};
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, B as n, C as s, S as A, e as S, d as O } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { A as r, B as n, C as s, S as A, e as S, d as O } from "./chuncks/youtube-icon.component.CQod02PV.js";
|
|
2
2
|
const o = "Não há dados para atualizar.", a = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", e = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", t = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.";
|
|
3
3
|
export {
|
|
4
4
|
r as ACTION_TYPE_VALUES,
|
package/dist/events.js
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.
|
|
2
|
-
import { i as k, a as P, b, c as N } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.B54bEnt8.js";
|
|
2
|
+
import { i as k, a as P, b, c as N } from "./chuncks/youtube-icon.component.CQod02PV.js";
|
|
3
3
|
export {
|
|
4
4
|
e as formatCompactNumber,
|
|
5
5
|
r as formatCompactPercent,
|