@grapadigital/shared-app-modules 0.0.49 → 0.0.51

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.
@@ -1,7 +1,7 @@
1
- import { a as b, j as e, c, B as Q, L as H, R as G, T as E, b as y, d as v, e as N } from "./chuncks/accordion.C3syX7hT.js";
1
+ import { a as b, j as e, c, B as Q, L as H, R as G, T as E, b as y, d as v, e as N } from "./chuncks/hover-card.BUI2HANt.js";
2
2
  import * as J from "react";
3
3
  import { forwardRef as g, useState as M } from "react";
4
- import { C as R, a as j } from "./chuncks/card.BZIarLnp.js";
4
+ import { C as R, a as j } from "./chuncks/card.DAFUB9do.js";
5
5
  const q = [
6
6
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
7
7
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
package/dist/pages.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as i, j as e, c as a, B as m } from "./chuncks/accordion.C3syX7hT.js";
1
+ import { a as i, j as e, c as a, B as m } from "./chuncks/hover-card.BUI2HANt.js";
2
2
  import "react";
3
3
  import { useNavigate as l } from "react-router-dom";
4
4
  const x = [
package/dist/shadcn.d.ts CHANGED
@@ -13,10 +13,12 @@ import { DialogProps } from '@radix-ui/react-dialog';
13
13
  import { DialogTitleProps } from '@radix-ui/react-dialog';
14
14
  import { DialogTriggerProps } from '@radix-ui/react-dialog';
15
15
  import { Drawer as Drawer_2 } from 'vaul';
16
+ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
16
17
  import { JSX } from 'react/jsx-runtime';
17
18
  import * as LabelPrimitive from '@radix-ui/react-label';
18
19
  import * as PopoverPrimitive from '@radix-ui/react-popover';
19
20
  import { Portal } from 'vaul';
21
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
20
22
  import * as React_2 from 'react';
21
23
  import * as SelectPrimitive from '@radix-ui/react-select';
22
24
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
@@ -257,6 +259,12 @@ declare const fieldVariants: (props?: ({
257
259
  orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
258
260
  } & ClassProp) | undefined) => string;
259
261
 
262
+ export declare const HoverCard: React_2.FC<HoverCardPrimitive.HoverCardProps>;
263
+
264
+ export declare const HoverCardContent: React_2.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
265
+
266
+ export declare const HoverCardTrigger: React_2.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React_2.RefAttributes<HTMLAnchorElement>>;
267
+
260
268
  export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
261
269
 
262
270
  export declare function InputGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
@@ -289,6 +297,8 @@ export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<Popo
289
297
 
290
298
  export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
291
299
 
300
+ export declare const Progress: React_2.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
301
+
292
302
  export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
293
303
 
294
304
  export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
package/dist/shadcn.js CHANGED
@@ -1,8 +1,8 @@
1
- import { a as yt, j as N, c as y, f as be, L as pn, S as pt, C as bn, g as nt, B as bt, I as wn, h as vn, i as kn } from "./chuncks/accordion.C3syX7hT.js";
2
- import { ar as fs, au as hs, as as ms, at as gs, k as ys, ai as ps, aj as bs, am as ws, an as vs, ak as ks, ao as Ms, al as Ds, aq as xs, ap as Os, D as Ss, v as Cs, w as Ws, x as Ns, y as Ts, z as _s, A as Ys, E as Es, F as Ps, G as Fs, a8 as Bs, ac as Is, ad as js, ah as As, af as Hs, ae as zs, aa as qs, a9 as Gs, ag as Rs, ab as $s, a4 as Vs, a7 as Ls, a6 as Qs, a5 as Xs, l as Us, p as Zs, m as Ks, r as Js, q as ei, u as ti, t as ni, s as ri, o as oi, n as ai, H as si, K as ii, M as ui, Q as ci, O as di, N as li, P as fi, J as hi, Y as mi, _ as gi, a3 as yi, a2 as pi, $ as bi, a0 as wi, Z as vi, a1 as ki, U as Mi, X as Di, V as xi, W as Oi, b as Si, e as Ci, T as Wi, d as Ni } from "./chuncks/accordion.C3syX7hT.js";
1
+ import { a as yt, j as N, c as y, f as be, L as pn, S as pt, C as bn, g as nt, B as bt, I as wn, h as vn, i as kn } from "./chuncks/hover-card.BUI2HANt.js";
2
+ import { ar as fs, au as hs, as as ms, at as gs, k as ys, ai as ps, aj as bs, am as ws, an as vs, ak as ks, ao as Ms, al as Ds, aq as xs, ap as Os, D as Ss, v as Cs, w as Ws, x as Ns, y as Ts, z as _s, A as Ys, E as Es, F as Ps, G as Fs, a8 as Bs, ac as Is, ad as js, ah as Hs, af as As, ae as zs, aa as qs, a9 as Gs, ag as Rs, ab as $s, aw as Vs, ay as Ls, ax as Qs, a4 as Xs, a7 as Us, a6 as Zs, a5 as Ks, av as Js, l as ei, p as ti, m as ni, r as ri, q as oi, u as ai, t as si, s as ii, o as ui, n as ci, H as di, K as li, M as fi, Q as hi, O as mi, N as gi, P as yi, J as pi, Y as bi, _ as wi, a3 as vi, a2 as ki, $ as Mi, a0 as Di, Z as xi, a1 as Oi, U as Si, X as Ci, V as Wi, W as Ni, b as Ti, e as _i, T as Yi, d as Ei } from "./chuncks/hover-card.BUI2HANt.js";
3
3
  import * as Se from "react";
4
4
  import f, { useMemo as ge, createContext as Mn, useContext as Dn, useCallback as R, useRef as Oe, useLayoutEffect as xn, useState as Ge, useEffect as On } from "react";
5
- import { C as _i, e as Yi, a as Ei, f as Pi, c as Fi, b as Bi, d as Ii } from "./chuncks/card.BZIarLnp.js";
5
+ import { C as Fi, e as Bi, a as Ii, f as ji, c as Hi, b as Ai, d as zi } from "./chuncks/card.DAFUB9do.js";
6
6
  function za(e) {
7
7
  const [t, n] = Se.useState(!1);
8
8
  return Se.useEffect(() => {
@@ -453,10 +453,10 @@ function In(e, t) {
453
453
  function jn(e, t, n) {
454
454
  return kt(e, t * 7, n);
455
455
  }
456
- function An(e, t, n) {
456
+ function Hn(e, t, n) {
457
457
  return Mt(e, t * 12, n);
458
458
  }
459
- function Hn(e, t) {
459
+ function An(e, t) {
460
460
  let n, r = t?.in;
461
461
  return e.forEach((o) => {
462
462
  !r && typeof o == "object" && (r = j.bind(null, o));
@@ -1685,14 +1685,14 @@ function Ir(e) {
1685
1685
  return Pr.test(e);
1686
1686
  }
1687
1687
  function jr(e, t, n) {
1688
- const r = Ar(e, t, n);
1688
+ const r = Hr(e, t, n);
1689
1689
  if (console.warn(r), Fr.includes(e)) throw new RangeError(r);
1690
1690
  }
1691
- function Ar(e, t, n) {
1691
+ function Hr(e, t, n) {
1692
1692
  const r = e[0] === "Y" ? "years" : "days of the month";
1693
1693
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1694
1694
  }
1695
- const Hr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, qr = /^'([^]*?)'?$/, Gr = /''/g, Rr = /[a-zA-Z]/;
1695
+ const Ar = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, qr = /^'([^]*?)'?$/, Gr = /''/g, Rr = /[a-zA-Z]/;
1696
1696
  function $r(e, t, n) {
1697
1697
  const r = we(), o = n?.locale ?? r.locale ?? $e, s = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, a = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = P(e, n?.in);
1698
1698
  if (!Gn(i))
@@ -1704,7 +1704,7 @@ function $r(e, t, n) {
1704
1704
  return h(l, o.formatLong);
1705
1705
  }
1706
1706
  return l;
1707
- }).join("").match(Hr).map((l) => {
1707
+ }).join("").match(Ar).map((l) => {
1708
1708
  if (l === "''")
1709
1709
  return { isToken: !1, value: "'" };
1710
1710
  const c = l[0];
@@ -1799,7 +1799,7 @@ class q {
1799
1799
  * @param overrides Custom overrides for the date library functions.
1800
1800
  */
1801
1801
  constructor(t, n) {
1802
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? te.tz(this.options.timeZone) : new this.Date(), this.newDate = (r, o, s) => this.overrides?.newDate ? this.overrides.newDate(r, o, s) : this.options.timeZone ? new te(r, o, s, this.options.timeZone) : new Date(r, o, s), this.addDays = (r, o) => this.overrides?.addDays ? this.overrides.addDays(r, o) : kt(r, o), this.addMonths = (r, o) => this.overrides?.addMonths ? this.overrides.addMonths(r, o) : Mt(r, o), this.addWeeks = (r, o) => this.overrides?.addWeeks ? this.overrides.addWeeks(r, o) : jn(r, o), this.addYears = (r, o) => this.overrides?.addYears ? this.overrides.addYears(r, o) : An(r, o), this.differenceInCalendarDays = (r, o) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, o) : xt(r, o), this.differenceInCalendarMonths = (r, o) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, o) : Rn(r, o), this.eachMonthOfInterval = (r) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : Vn(r), this.eachYearOfInterval = (r) => {
1802
+ this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? te.tz(this.options.timeZone) : new this.Date(), this.newDate = (r, o, s) => this.overrides?.newDate ? this.overrides.newDate(r, o, s) : this.options.timeZone ? new te(r, o, s, this.options.timeZone) : new Date(r, o, s), this.addDays = (r, o) => this.overrides?.addDays ? this.overrides.addDays(r, o) : kt(r, o), this.addMonths = (r, o) => this.overrides?.addMonths ? this.overrides.addMonths(r, o) : Mt(r, o), this.addWeeks = (r, o) => this.overrides?.addWeeks ? this.overrides.addWeeks(r, o) : jn(r, o), this.addYears = (r, o) => this.overrides?.addYears ? this.overrides.addYears(r, o) : Hn(r, o), this.differenceInCalendarDays = (r, o) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, o) : xt(r, o), this.differenceInCalendarMonths = (r, o) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, o) : Rn(r, o), this.eachMonthOfInterval = (r) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : Vn(r), this.eachYearOfInterval = (r) => {
1803
1803
  const o = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : Xn(r), s = new Set(o.map((i) => this.getYear(i)));
1804
1804
  if (s.size === o.length)
1805
1805
  return o;
@@ -1810,7 +1810,7 @@ class q {
1810
1810
  }, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : oo(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Un(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) : $n(r), this.endOfWeek = (r, o) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(r, o) : Wt(r, this.options), this.endOfYear = (r) => this.overrides?.endOfYear ? this.overrides.endOfYear(r) : Qn(r), this.format = (r, o, s) => {
1811
1811
  const a = this.overrides?.format ? this.overrides.format(r, o, this.options) : $r(r, o, this.options);
1812
1812
  return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(a) : a;
1813
- }, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : Nt(r), this.getMonth = (r, o) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : Qr(r, this.options), this.getYear = (r, o) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : Xr(r, this.options), this.getWeek = (r, o) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : _t(r, this.options), this.isAfter = (r, o) => this.overrides?.isAfter ? this.overrides.isAfter(r, o) : Ur(r, o), this.isBefore = (r, o) => this.overrides?.isBefore ? this.overrides.isBefore(r, o) : Zr(r, o), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : Ot(r), this.isSameDay = (r, o) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, o) : qn(r, o), this.isSameMonth = (r, o) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, o) : Kr(r, o), this.isSameYear = (r, o) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, o) : Jr(r, o), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : Hn(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : zn(r), this.setMonth = (r, o) => this.overrides?.setMonth ? this.overrides.setMonth(r, o) : eo(r, o), this.setYear = (r, o) => this.overrides?.setYear ? this.overrides.setYear(r, o) : to(r, o), this.startOfBroadcastWeek = (r, o) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : Et(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : pe(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : ye(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : Ln(r), this.startOfWeek = (r, o) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : de(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : Ct(r), this.options = { locale: $e, ...t }, this.overrides = n;
1813
+ }, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : Nt(r), this.getMonth = (r, o) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : Qr(r, this.options), this.getYear = (r, o) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : Xr(r, this.options), this.getWeek = (r, o) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : _t(r, this.options), this.isAfter = (r, o) => this.overrides?.isAfter ? this.overrides.isAfter(r, o) : Ur(r, o), this.isBefore = (r, o) => this.overrides?.isBefore ? this.overrides.isBefore(r, o) : Zr(r, o), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : Ot(r), this.isSameDay = (r, o) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, o) : qn(r, o), this.isSameMonth = (r, o) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, o) : Kr(r, o), this.isSameYear = (r, o) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, o) : Jr(r, o), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : An(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : zn(r), this.setMonth = (r, o) => this.overrides?.setMonth ? this.overrides.setMonth(r, o) : eo(r, o), this.setYear = (r, o) => this.overrides?.setYear ? this.overrides.setYear(r, o) : to(r, o), this.startOfBroadcastWeek = (r, o) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : Et(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : pe(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : ye(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : Ln(r), this.startOfWeek = (r, o) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : de(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : Ct(r), this.options = { locale: $e, ...t }, this.overrides = n;
1814
1814
  }
1815
1815
  /**
1816
1816
  * Generates a mapping of Arabic digits (0-9) to the target numbering system
@@ -2161,7 +2161,7 @@ function Fo(e, t, n, r, o) {
2161
2161
  [B.today]: []
2162
2162
  }, D = {};
2163
2163
  for (const p of e) {
2164
- const { date: m, displayMonth: S } = p, F = !!(S && !h(m, S)), A = !!(O && x(m, O)), I = !!(T && k(m, T)), Q = !!(s && re(m, s, o)), oe = !!(a && re(m, a, o)) || A || I || // Broadcast calendar will show outside days as default
2164
+ const { date: m, displayMonth: S } = p, F = !!(S && !h(m, S)), H = !!(O && x(m, O)), I = !!(T && k(m, T)), Q = !!(s && re(m, s, o)), oe = !!(a && re(m, a, o)) || H || I || // Broadcast calendar will show outside days as default
2165
2165
  !d && !u && F || d && u === !1 && F, J = c(m, l);
2166
2166
  F && v.outside.push(p), Q && v.disabled.push(p), oe && v.hidden.push(p), J && v.today.push(p), i && Object.keys(i).forEach((G) => {
2167
2167
  const ue = i?.[G];
@@ -2177,11 +2177,11 @@ function Fo(e, t, n, r, o) {
2177
2177
  [B.today]: !1
2178
2178
  }, S = {};
2179
2179
  for (const F in v) {
2180
- const A = v[F];
2181
- m[F] = A.some((I) => I === p);
2180
+ const H = v[F];
2181
+ m[F] = H.some((I) => I === p);
2182
2182
  }
2183
2183
  for (const F in D)
2184
- S[F] = D[F].some((A) => A === p);
2184
+ S[F] = D[F].some((H) => H === p);
2185
2185
  return {
2186
2186
  ...m,
2187
2187
  // custom modifiers should override all the previous ones
@@ -2226,8 +2226,8 @@ function Xe() {
2226
2226
  function jt(e, t, n) {
2227
2227
  return (n ?? new q(t)).formatMonthYear(e);
2228
2228
  }
2229
- const Ao = jt;
2230
- function Ho(e, t, n) {
2229
+ const Ho = jt;
2230
+ function Ao(e, t, n) {
2231
2231
  return (n ?? new q(t)).format(e, "d");
2232
2232
  }
2233
2233
  function zo(e, t = K) {
@@ -2242,20 +2242,20 @@ function Go(e, t = K) {
2242
2242
  function Ro() {
2243
2243
  return "";
2244
2244
  }
2245
- function At(e, t = K) {
2245
+ function Ht(e, t = K) {
2246
2246
  return t.format(e, "yyyy");
2247
2247
  }
2248
- const $o = At, Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2248
+ const $o = Ht, Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2249
2249
  __proto__: null,
2250
2250
  formatCaption: jt,
2251
- formatDay: Ho,
2252
- formatMonthCaption: Ao,
2251
+ formatDay: Ao,
2252
+ formatMonthCaption: Ho,
2253
2253
  formatMonthDropdown: zo,
2254
2254
  formatWeekNumber: Go,
2255
2255
  formatWeekNumberHeader: Ro,
2256
2256
  formatWeekdayName: qo,
2257
2257
  formatYearCaption: $o,
2258
- formatYearDropdown: At
2258
+ formatYearDropdown: Ht
2259
2259
  }, Symbol.toStringTag, { value: "Module" }));
2260
2260
  function Lo(e) {
2261
2261
  return e?.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e?.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
@@ -2303,11 +2303,11 @@ function Zo(e, t, n, r, o = !1) {
2303
2303
  };
2304
2304
  });
2305
2305
  }
2306
- function Ht(e, t, n, r) {
2306
+ function At(e, t, n, r) {
2307
2307
  let o = (r ?? new q(n)).format(e, "PPPP");
2308
2308
  return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
2309
2309
  }
2310
- const Ko = Ht;
2310
+ const Ko = At;
2311
2311
  function zt(e, t, n) {
2312
2312
  return (n ?? new q(t)).formatMonthYear(e);
2313
2313
  }
@@ -2344,7 +2344,7 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2344
2344
  __proto__: null,
2345
2345
  labelCaption: Jo,
2346
2346
  labelDay: Ko,
2347
- labelDayButton: Ht,
2347
+ labelDayButton: At,
2348
2348
  labelGrid: zt,
2349
2349
  labelGridcell: ea,
2350
2350
  labelMonthDropdown: ta,
@@ -2355,9 +2355,9 @@ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2355
2355
  labelWeekNumberHeader: ia,
2356
2356
  labelWeekday: aa,
2357
2357
  labelYearDropdown: ua
2358
- }, Symbol.toStringTag, { value: "Module" })), ke = (e) => e instanceof HTMLElement ? e : null, Ae = (e) => [
2358
+ }, Symbol.toStringTag, { value: "Module" })), ke = (e) => e instanceof HTMLElement ? e : null, He = (e) => [
2359
2359
  ...e.querySelectorAll("[data-animated-month]") ?? []
2360
- ], da = (e) => ke(e.querySelector("[data-animated-month]")), He = (e) => ke(e.querySelector("[data-animated-caption]")), ze = (e) => ke(e.querySelector("[data-animated-weeks]")), la = (e) => ke(e.querySelector("[data-animated-nav]")), fa = (e) => ke(e.querySelector("[data-animated-weekdays]"));
2360
+ ], da = (e) => ke(e.querySelector("[data-animated-month]")), Ae = (e) => ke(e.querySelector("[data-animated-caption]")), ze = (e) => ke(e.querySelector("[data-animated-weeks]")), la = (e) => ke(e.querySelector("[data-animated-nav]")), fa = (e) => ke(e.querySelector("[data-animated-weekdays]"));
2361
2361
  function ha(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
2362
2362
  const a = Oe(null), i = Oe(r), u = Oe(!1);
2363
2363
  xn(() => {
@@ -2367,19 +2367,19 @@ function ha(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
2367
2367
  r.length === 0 || d.length === 0 || r.length !== d.length)
2368
2368
  return;
2369
2369
  const l = s.isSameMonth(r[0].date, d[0].date), c = s.isAfter(r[0].date, d[0].date), h = c ? n[z.caption_after_enter] : n[z.caption_before_enter], b = c ? n[z.weeks_after_enter] : n[z.weeks_before_enter], x = a.current, W = e.current.cloneNode(!0);
2370
- if (W instanceof HTMLElement ? (Ae(W).forEach((v) => {
2370
+ if (W instanceof HTMLElement ? (He(W).forEach((v) => {
2371
2371
  if (!(v instanceof HTMLElement))
2372
2372
  return;
2373
2373
  const D = da(v);
2374
2374
  D && v.contains(D) && v.removeChild(D);
2375
- const p = He(v);
2375
+ const p = Ae(v);
2376
2376
  p && p.classList.remove(h);
2377
2377
  const m = ze(v);
2378
2378
  m && m.classList.remove(b);
2379
2379
  }), a.current = W) : a.current = null, u.current || l || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
2380
2380
  o)
2381
2381
  return;
2382
- const k = x instanceof HTMLElement ? Ae(x) : [], O = Ae(e.current);
2382
+ const k = x instanceof HTMLElement ? He(x) : [], O = He(e.current);
2383
2383
  if (O?.every((T) => T instanceof HTMLElement) && k && k.every((T) => T instanceof HTMLElement)) {
2384
2384
  u.current = !0, e.current.style.isolation = "isolate";
2385
2385
  const T = la(e.current);
@@ -2388,7 +2388,7 @@ function ha(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
2388
2388
  if (!p)
2389
2389
  return;
2390
2390
  v.style.position = "relative", v.style.overflow = "hidden";
2391
- const m = He(v);
2391
+ const m = Ae(v);
2392
2392
  m && m.classList.add(h);
2393
2393
  const S = ze(v);
2394
2394
  S && S.classList.add(b);
@@ -2396,9 +2396,9 @@ function ha(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
2396
2396
  u.current = !1, e.current && (e.current.style.isolation = ""), T && (T.style.zIndex = ""), m && m.classList.remove(h), S && S.classList.remove(b), v.style.position = "", v.style.overflow = "", v.contains(p) && v.removeChild(p);
2397
2397
  };
2398
2398
  p.style.pointerEvents = "none", p.style.position = "absolute", p.style.overflow = "hidden", p.setAttribute("aria-hidden", "true");
2399
- const A = fa(p);
2400
- A && (A.style.opacity = "0");
2401
- const I = He(p);
2399
+ const H = fa(p);
2400
+ H && (H.style.opacity = "0");
2401
+ const I = Ae(p);
2402
2402
  I && (I.classList.add(c ? n[z.caption_before_exit] : n[z.caption_after_exit]), I.addEventListener("animationend", F));
2403
2403
  const Q = ze(p);
2404
2404
  Q && Q.classList.add(c ? n[z.weeks_before_exit] : n[z.weeks_after_exit]), v.insertBefore(p, v.firstChild);
@@ -2407,12 +2407,12 @@ function ha(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
2407
2407
  });
2408
2408
  }
2409
2409
  function ma(e, t, n, r) {
2410
- const o = e[0], s = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: u } = n ?? {}, { addDays: d, differenceInCalendarDays: l, differenceInCalendarMonths: c, endOfBroadcastWeek: h, endOfISOWeek: b, endOfMonth: x, endOfWeek: W, isAfter: k, startOfBroadcastWeek: O, startOfISOWeek: T, startOfWeek: v } = r, D = u ? O(o, r) : a ? T(o) : v(o), p = u ? h(s) : a ? b(x(s)) : W(x(s)), m = t && (u ? h(t) : a ? b(t) : W(t)), S = m && k(p, m) ? m : p, F = l(S, D), A = c(s, o) + 1, I = [];
2410
+ const o = e[0], s = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: u } = n ?? {}, { addDays: d, differenceInCalendarDays: l, differenceInCalendarMonths: c, endOfBroadcastWeek: h, endOfISOWeek: b, endOfMonth: x, endOfWeek: W, isAfter: k, startOfBroadcastWeek: O, startOfISOWeek: T, startOfWeek: v } = r, D = u ? O(o, r) : a ? T(o) : v(o), p = u ? h(s) : a ? b(x(s)) : W(x(s)), m = t && (u ? h(t) : a ? b(t) : W(t)), S = m && k(p, m) ? m : p, F = l(S, D), H = c(s, o) + 1, I = [];
2411
2411
  for (let J = 0; J <= F; J++) {
2412
2412
  const G = d(D, J);
2413
2413
  I.push(G);
2414
2414
  }
2415
- const oe = (u ? 35 : 42) * A;
2415
+ const oe = (u ? 35 : 42) * H;
2416
2416
  if (i && I.length < oe) {
2417
2417
  const J = oe - I.length;
2418
2418
  for (let G = 0; G < J; G++) {
@@ -2454,14 +2454,14 @@ function pa(e, t, n, r) {
2454
2454
  const O = n.broadcastCalendar ? c(k, r) : n.ISOWeek ? h(k) : b(k), T = n.broadcastCalendar ? s(k) : n.ISOWeek ? a(i(k)) : u(i(k)), v = t.filter((S) => S >= O && S <= T), D = n.broadcastCalendar ? 35 : 42;
2455
2455
  if (n.fixedWeeks && v.length < D) {
2456
2456
  const S = t.filter((F) => {
2457
- const A = D - v.length;
2458
- return F > T && F <= o(T, A);
2457
+ const H = D - v.length;
2458
+ return F > T && F <= o(T, H);
2459
2459
  });
2460
2460
  v.push(...S);
2461
2461
  }
2462
2462
  const p = v.reduce((S, F) => {
2463
- const A = n.ISOWeek ? d(F) : l(F), I = S.find((oe) => oe.weekNumber === A), Q = new Pt(F, k, r);
2464
- return I ? I.days.push(Q) : S.push(new so(A, [Q])), S;
2463
+ const H = n.ISOWeek ? d(F) : l(F), I = S.find((oe) => oe.weekNumber === H), Q = new Pt(F, k, r);
2464
+ return I ? I.days.push(Q) : S.push(new so(H, [Q])), S;
2465
2465
  }, []), m = new ao(k, p);
2466
2466
  return W.push(m), W;
2467
2467
  }, []);
@@ -2523,12 +2523,12 @@ function Ma(e, t) {
2523
2523
  fixedWeeks: e.fixedWeeks,
2524
2524
  ISOWeek: e.ISOWeek,
2525
2525
  reverseMonths: e.reverseMonths
2526
- }, t), S = ka(m), F = ga(m), A = va(i, n, e, t), I = wa(i, r, e, t);
2526
+ }, t), S = ka(m), F = ga(m), H = va(i, n, e, t), I = wa(i, r, e, t);
2527
2527
  return {
2528
2528
  months: m,
2529
2529
  weeks: S,
2530
2530
  days: F,
2531
- previousMonth: A,
2531
+ previousMonth: H,
2532
2532
  nextMonth: I
2533
2533
  };
2534
2534
  }, [
@@ -2727,21 +2727,21 @@ function Ya(e, t) {
2727
2727
  return;
2728
2728
  }
2729
2729
  }
2730
- function H(e, t) {
2730
+ function A(e, t) {
2731
2731
  return e instanceof te && e.timeZone === t ? e : new te(e, t);
2732
2732
  }
2733
2733
  function gt(e, t) {
2734
- return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? H(e, t) : Array.isArray(e) ? e.map((n) => n instanceof Date ? H(n, t) : n) : Ce(e) ? {
2734
+ return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? A(e, t) : Array.isArray(e) ? e.map((n) => n instanceof Date ? A(n, t) : n) : Ce(e) ? {
2735
2735
  ...e,
2736
- from: e.from ? H(e.from, t) : e.from,
2737
- to: e.to ? H(e.to, t) : e.to
2736
+ from: e.from ? A(e.from, t) : e.from,
2737
+ to: e.to ? A(e.to, t) : e.to
2738
2738
  } : Ve(e) ? {
2739
- before: H(e.before, t),
2740
- after: H(e.after, t)
2739
+ before: A(e.before, t),
2740
+ after: A(e.after, t)
2741
2741
  } : Le(e) ? {
2742
- after: H(e.after, t)
2742
+ after: A(e.after, t)
2743
2743
  } : Qe(e) ? {
2744
- before: H(e.before, t)
2744
+ before: A(e.before, t)
2745
2745
  } : e;
2746
2746
  }
2747
2747
  function qe(e, t) {
@@ -2753,9 +2753,9 @@ function Ea(e) {
2753
2753
  if (n && (t = {
2754
2754
  ...e,
2755
2755
  timeZone: n
2756
- }, t.today && (t.today = H(t.today, n)), t.month && (t.month = H(t.month, n)), t.defaultMonth && (t.defaultMonth = H(t.defaultMonth, n)), t.startMonth && (t.startMonth = H(t.startMonth, n)), t.endMonth && (t.endMonth = H(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = H(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = t.selected?.map((M) => H(M, n)) : t.mode === "range" && t.selected && (t.selected = {
2757
- from: t.selected.from ? H(t.selected.from, n) : t.selected.from,
2758
- to: t.selected.to ? H(t.selected.to, n) : t.selected.to
2756
+ }, t.today && (t.today = A(t.today, n)), t.month && (t.month = A(t.month, n)), t.defaultMonth && (t.defaultMonth = A(t.defaultMonth, n)), t.startMonth && (t.startMonth = A(t.startMonth, n)), t.endMonth && (t.endMonth = A(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = A(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = t.selected?.map((M) => A(M, n)) : t.mode === "range" && t.selected && (t.selected = {
2757
+ from: t.selected.from ? A(t.selected.from, n) : t.selected.from,
2758
+ to: t.selected.to ? A(t.selected.to, n) : t.selected.to
2759
2759
  }), t.disabled !== void 0 && (t.disabled = qe(t.disabled, n)), t.hidden !== void 0 && (t.hidden = qe(t.hidden, n)), t.modifiers)) {
2760
2760
  const M = {};
2761
2761
  Object.keys(t.modifiers).forEach((E) => {
@@ -2796,7 +2796,7 @@ function Ea(e) {
2796
2796
  t.classNames
2797
2797
  ]);
2798
2798
  t.today || (t = { ...t, today: a.today() });
2799
- const { captionLayout: d, mode: l, navLayout: c, numberOfMonths: h = 1, onDayBlur: b, onDayClick: x, onDayFocus: W, onDayKeyDown: k, onDayMouseEnter: O, onDayMouseLeave: T, onNextClick: v, onPrevClick: D, showWeekNumber: p, styles: m } = t, { formatCaption: S, formatDay: F, formatMonthDropdown: A, formatWeekNumber: I, formatWeekNumberHeader: Q, formatWeekdayName: oe, formatYearDropdown: J } = o, G = Ma(t, a), { days: ue, months: Me, navStart: Ne, navEnd: Te, previousMonth: $, nextMonth: V, goToMonth: ee } = G, _e = Fo(ue, t, Ne, Te, a), { isSelected: Ye, select: Ee, selected: De } = Ya(t, a) ?? {}, { blur: Ue, focused: Ze, isFocusTarget: Gt, moveFocus: Ke, setFocused: xe } = Oa(t, G, _e, Ye ?? (() => !1), a), { labelDayButton: Rt, labelGridcell: $t, labelGrid: Vt, labelMonthDropdown: Lt, labelNav: Je, labelPrevious: Qt, labelNext: Xt, labelWeekday: Ut, labelWeekNumber: Zt, labelWeekNumberHeader: Kt, labelYearDropdown: Jt } = s, en = ge(() => Uo(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), et = l !== void 0 || x !== void 0, Pe = R(() => {
2799
+ const { captionLayout: d, mode: l, navLayout: c, numberOfMonths: h = 1, onDayBlur: b, onDayClick: x, onDayFocus: W, onDayKeyDown: k, onDayMouseEnter: O, onDayMouseLeave: T, onNextClick: v, onPrevClick: D, showWeekNumber: p, styles: m } = t, { formatCaption: S, formatDay: F, formatMonthDropdown: H, formatWeekNumber: I, formatWeekNumberHeader: Q, formatWeekdayName: oe, formatYearDropdown: J } = o, G = Ma(t, a), { days: ue, months: Me, navStart: Ne, navEnd: Te, previousMonth: $, nextMonth: V, goToMonth: ee } = G, _e = Fo(ue, t, Ne, Te, a), { isSelected: Ye, select: Ee, selected: De } = Ya(t, a) ?? {}, { blur: Ue, focused: Ze, isFocusTarget: Gt, moveFocus: Ke, setFocused: xe } = Oa(t, G, _e, Ye ?? (() => !1), a), { labelDayButton: Rt, labelGridcell: $t, labelGrid: Vt, labelMonthDropdown: Lt, labelNav: Je, labelPrevious: Qt, labelNext: Xt, labelWeekday: Ut, labelWeekNumber: Zt, labelWeekNumberHeader: Kt, labelYearDropdown: Jt } = s, en = ge(() => Uo(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), et = l !== void 0 || x !== void 0, Pe = R(() => {
2800
2800
  $ && (ee($), D?.($));
2801
2801
  }, [$, ee, D]), Fe = R(() => {
2802
2802
  V && (ee(V), v?.(V));
@@ -2895,7 +2895,7 @@ function Ea(e) {
2895
2895
  r.DropdownNav,
2896
2896
  { className: u[g.Dropdowns], style: m?.[g.Dropdowns] },
2897
2897
  (() => {
2898
- const w = d === "dropdown" || d === "dropdown-months" ? f.createElement(r.MonthsDropdown, { key: "month", className: u[g.MonthsDropdown], "aria-label": Lt(), classNames: u, components: r, disabled: !!t.disableNavigation, onChange: un(M.date), options: Qo(M.date, Ne, Te, o, a), style: m?.[g.Dropdown], value: a.getMonth(M.date) }) : f.createElement("span", { key: "month" }, A(M.date, a)), _ = d === "dropdown" || d === "dropdown-years" ? f.createElement(r.YearsDropdown, { key: "year", className: u[g.YearsDropdown], "aria-label": Jt(a.options), classNames: u, components: r, disabled: !!t.disableNavigation, onChange: cn(M.date), options: Zo(Ne, Te, o, a, !!t.reverseYears), style: m?.[g.Dropdown], value: a.getYear(M.date) }) : f.createElement("span", { key: "year" }, J(M.date, a));
2898
+ const w = d === "dropdown" || d === "dropdown-months" ? f.createElement(r.MonthsDropdown, { key: "month", className: u[g.MonthsDropdown], "aria-label": Lt(), classNames: u, components: r, disabled: !!t.disableNavigation, onChange: un(M.date), options: Qo(M.date, Ne, Te, o, a), style: m?.[g.Dropdown], value: a.getMonth(M.date) }) : f.createElement("span", { key: "month" }, H(M.date, a)), _ = d === "dropdown" || d === "dropdown-years" ? f.createElement(r.YearsDropdown, { key: "year", className: u[g.YearsDropdown], "aria-label": Jt(a.options), classNames: u, components: r, disabled: !!t.disableNavigation, onChange: cn(M.date), options: Zo(Ne, Te, o, a, !!t.reverseYears), style: m?.[g.Dropdown], value: a.getYear(M.date) }) : f.createElement("span", { key: "year" }, J(M.date, a));
2899
2899
  return a.getMonthYearOrder() === "year-first" ? [_, w] : [w, _];
2900
2900
  })(),
2901
2901
  f.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -3344,13 +3344,13 @@ export {
3344
3344
  is as ButtonGroupText,
3345
3345
  Ja as Calendar,
3346
3346
  Pa as CalendarDayButton,
3347
- _i as Card,
3348
- Yi as CardAction,
3349
- Ei as CardContent,
3350
- Pi as CardDescription,
3351
- Fi as CardFooter,
3352
- Bi as CardHeader,
3353
- Ii as CardTitle,
3347
+ Fi as Card,
3348
+ Bi as CardAction,
3349
+ Ii as CardContent,
3350
+ ji as CardDescription,
3351
+ Hi as CardFooter,
3352
+ Ai as CardHeader,
3353
+ zi as CardTitle,
3354
3354
  ys as Checkbox,
3355
3355
  ps as Command,
3356
3356
  bs as CommandDialog,
@@ -3374,8 +3374,8 @@ export {
3374
3374
  Bs as Drawer,
3375
3375
  Is as DrawerClose,
3376
3376
  js as DrawerContent,
3377
- As as DrawerDescription,
3378
- Hs as DrawerFooter,
3377
+ Hs as DrawerDescription,
3378
+ As as DrawerFooter,
3379
3379
  zs as DrawerHeader,
3380
3380
  qs as DrawerOverlay,
3381
3381
  Gs as DrawerPortal,
@@ -3391,6 +3391,9 @@ export {
3391
3391
  Za as FieldSeparator,
3392
3392
  Ga as FieldSet,
3393
3393
  Xa as FieldTitle,
3394
+ Vs as HoverCard,
3395
+ Ls as HoverCardContent,
3396
+ Qs as HoverCardTrigger,
3394
3397
  wn as Input,
3395
3398
  es as InputGroup,
3396
3399
  ts as InputGroupAddon,
@@ -3399,47 +3402,48 @@ export {
3399
3402
  rs as InputGroupText,
3400
3403
  as as InputGroupTextarea,
3401
3404
  pn as Label,
3402
- Vs as Popover,
3403
- Ls as PopoverAnchor,
3404
- Qs as PopoverContent,
3405
- Xs as PopoverTrigger,
3406
- Us as Select,
3407
- Zs as SelectContent,
3408
- Ks as SelectGroup,
3409
- Js as SelectItem,
3410
- ei as SelectLabel,
3411
- ti as SelectScrollDownButton,
3412
- ni as SelectScrollUpButton,
3413
- ri as SelectSeparator,
3414
- oi as SelectTrigger,
3415
- ai as SelectValue,
3405
+ Xs as Popover,
3406
+ Us as PopoverAnchor,
3407
+ Zs as PopoverContent,
3408
+ Ks as PopoverTrigger,
3409
+ Js as Progress,
3410
+ ei as Select,
3411
+ ti as SelectContent,
3412
+ ni as SelectGroup,
3413
+ ri as SelectItem,
3414
+ oi as SelectLabel,
3415
+ ai as SelectScrollDownButton,
3416
+ si as SelectScrollUpButton,
3417
+ ii as SelectSeparator,
3418
+ ui as SelectTrigger,
3419
+ ci as SelectValue,
3416
3420
  pt as Separator,
3417
- si as Sheet,
3418
- ii as SheetClose,
3419
- ui as SheetContent,
3420
- ci as SheetDescription,
3421
- di as SheetFooter,
3422
- li as SheetHeader,
3423
- fi as SheetTitle,
3424
- hi as SheetTrigger,
3421
+ di as Sheet,
3422
+ li as SheetClose,
3423
+ fi as SheetContent,
3424
+ hi as SheetDescription,
3425
+ mi as SheetFooter,
3426
+ gi as SheetHeader,
3427
+ yi as SheetTitle,
3428
+ pi as SheetTrigger,
3425
3429
  qa as Skeleton,
3426
- mi as Table,
3427
- gi as TableBody,
3428
- yi as TableCaption,
3429
- pi as TableCell,
3430
- bi as TableFooter,
3431
- wi as TableHead,
3432
- vi as TableHeader,
3433
- ki as TableRow,
3434
- Mi as Tabs,
3435
- Di as TabsContent,
3436
- xi as TabsList,
3437
- Oi as TabsTrigger,
3430
+ bi as Table,
3431
+ wi as TableBody,
3432
+ vi as TableCaption,
3433
+ ki as TableCell,
3434
+ Mi as TableFooter,
3435
+ Di as TableHead,
3436
+ xi as TableHeader,
3437
+ Oi as TableRow,
3438
+ Si as Tabs,
3439
+ Ci as TabsContent,
3440
+ Wi as TabsList,
3441
+ Ni as TabsTrigger,
3438
3442
  vn as Textarea,
3439
- Si as Tooltip,
3440
- Ci as TooltipContent,
3441
- Wi as TooltipProvider,
3442
- Ni as TooltipTrigger,
3443
+ Ti as Tooltip,
3444
+ _i as TooltipContent,
3445
+ Yi as TooltipProvider,
3446
+ Ei as TooltipTrigger,
3443
3447
  ja as badgeVariants,
3444
3448
  Ia as buttonGroupVariants,
3445
3449
  y as cn,
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.49",
4
+ "version": "0.0.51",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
@@ -108,8 +108,10 @@
108
108
  "@radix-ui/react-accordion": "^1.2.12",
109
109
  "@radix-ui/react-checkbox": "^1.3.3",
110
110
  "@radix-ui/react-dialog": "^1.1.15",
111
+ "@radix-ui/react-hover-card": "^1.1.15",
111
112
  "@radix-ui/react-label": "^2.1.8",
112
113
  "@radix-ui/react-popover": "^1.1.15",
114
+ "@radix-ui/react-progress": "^1.1.8",
113
115
  "@radix-ui/react-select": "^2.2.6",
114
116
  "@radix-ui/react-separator": "^1.1.8",
115
117
  "@radix-ui/react-slot": "^1.2.4",