@alfadocs/ui-kit 0.35.0 → 0.37.0

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 (109) hide show
  1. package/dist/_chunks/{ar-CEpIJtcO.js → ar-D1RwVZFj.js} +2 -2
  2. package/dist/_chunks/bmi-calculator-DQD5_nE-.js +214 -0
  3. package/dist/_chunks/{booking-eM0y0NIR.js → booking-DqXsd1Mv.js} +4 -4
  4. package/dist/_chunks/chart-DnHvmiDX.js +312 -0
  5. package/dist/_chunks/{date-picker-B94HAV4A.js → date-picker-CXFpu-qY.js} +2 -2
  6. package/dist/_chunks/{date-range-picker-D8CHNYQT.js → date-range-picker-I-q5rifj.js} +3 -3
  7. package/dist/_chunks/{date-time-picker-D1GEzf8p.js → date-time-picker-CqpGPlcH.js} +2 -2
  8. package/dist/_chunks/{de-Dfbeau59.js → de-HTQ4b4-J.js} +2 -2
  9. package/dist/_chunks/due-date-calculator-kf9U_g7O.js +173 -0
  10. package/dist/_chunks/{editable-currency-cell-renderer-CZcVWBPo.js → editable-currency-cell-renderer-DnjwZNZP.js} +2 -2
  11. package/dist/_chunks/{el-Dro3J7CP.js → el-Dr1pjuDq.js} +2 -2
  12. package/dist/_chunks/{es-Dvg8u70B.js → es-CvyTjLS0.js} +2 -2
  13. package/dist/_chunks/{fr-VOGjBSPP.js → fr-CS7aqaFR.js} +2 -2
  14. package/dist/_chunks/{hi-BSDxWU_y.js → hi-3uy8KpsH.js} +2 -2
  15. package/dist/_chunks/{isSameWeek-Dfzu29cW.js → isSameWeek-DRpMibi9.js} +2 -2
  16. package/dist/_chunks/{it-CuonvcI_.js → it-B_RF5VSw.js} +3 -3
  17. package/dist/_chunks/{ja-DO57gIOT.js → ja-C1mEYy35.js} +2 -2
  18. package/dist/_chunks/marketplace-app-shell-DXHxy9dj.js +295 -0
  19. package/dist/_chunks/{nl-DjPaaWaW.js → nl-Dl7lO2t3.js} +2 -2
  20. package/dist/_chunks/{pl-Cl4lOx2N.js → pl-Dgsogljx.js} +3 -3
  21. package/dist/_chunks/{pt-D7qO5CzD.js → pt-Dm2JF4bc.js} +2 -2
  22. package/dist/_chunks/{react-day-picker-DsjfS7uI.js → react-day-picker-DYDdR8Vv.js} +22 -22
  23. package/dist/_chunks/{ro-CP2-VJ_O.js → ro-BXFZ_xIX.js} +2 -2
  24. package/dist/_chunks/{ru-RPn9_Lpq.js → ru-BPQkNRRV.js} +3 -3
  25. package/dist/_chunks/{sq-AQvefouo.js → sq-ChTlGFcJ.js} +2 -2
  26. package/dist/_chunks/subDays-D-WYRpdW.js +8 -0
  27. package/dist/_chunks/{sv-zkx9eBtD.js → sv-Do_gs6ir.js} +2 -2
  28. package/dist/_chunks/{tr-Dmr412Ac.js → tr-da_UnkYH.js} +2 -2
  29. package/dist/_chunks/{zh-CN-DxVt64Zk.js → zh-CN-C9qi5oak.js} +3 -3
  30. package/dist/agent-catalog.json +1 -1
  31. package/dist/components/bmi-calculator/bmi-calculator.d.ts +24 -0
  32. package/dist/components/bmi-calculator/bmi.d.ts +37 -0
  33. package/dist/components/bmi-calculator/index.d.ts +4 -0
  34. package/dist/components/bmi-calculator/index.js +14 -0
  35. package/dist/components/booking/index.js +1 -1
  36. package/dist/components/chart/chart.d.ts +7 -0
  37. package/dist/components/chart/index.js +1 -1
  38. package/dist/components/data-table/index.js +1 -1
  39. package/dist/components/date-picker/index.js +1 -1
  40. package/dist/components/date-range-picker/index.js +1 -1
  41. package/dist/components/date-time-picker/index.js +1 -1
  42. package/dist/components/due-date-calculator/due-date-calculator.d.ts +18 -0
  43. package/dist/components/due-date-calculator/gestation.d.ts +44 -0
  44. package/dist/components/due-date-calculator/index.d.ts +4 -0
  45. package/dist/components/due-date-calculator/index.js +10 -0
  46. package/dist/components/index.d.ts +3 -0
  47. package/dist/components/skeleton/skeleton.d.ts +1 -1
  48. package/dist/i18n/locales/ar.d.ts +64 -0
  49. package/dist/i18n/locales/ar.js +58 -0
  50. package/dist/i18n/locales/de.d.ts +64 -0
  51. package/dist/i18n/locales/de.js +58 -0
  52. package/dist/i18n/locales/el.d.ts +64 -0
  53. package/dist/i18n/locales/el.js +58 -0
  54. package/dist/i18n/locales/en.d.ts +64 -0
  55. package/dist/i18n/locales/en.js +58 -0
  56. package/dist/i18n/locales/es.d.ts +64 -0
  57. package/dist/i18n/locales/es.js +58 -0
  58. package/dist/i18n/locales/fr.d.ts +64 -0
  59. package/dist/i18n/locales/fr.js +58 -0
  60. package/dist/i18n/locales/hi.d.ts +64 -0
  61. package/dist/i18n/locales/hi.js +58 -0
  62. package/dist/i18n/locales/it.d.ts +64 -0
  63. package/dist/i18n/locales/it.js +58 -0
  64. package/dist/i18n/locales/ja.d.ts +64 -0
  65. package/dist/i18n/locales/ja.js +58 -0
  66. package/dist/i18n/locales/nl.d.ts +64 -0
  67. package/dist/i18n/locales/nl.js +58 -0
  68. package/dist/i18n/locales/pl.d.ts +64 -0
  69. package/dist/i18n/locales/pl.js +58 -0
  70. package/dist/i18n/locales/pt.d.ts +64 -0
  71. package/dist/i18n/locales/pt.js +58 -0
  72. package/dist/i18n/locales/ro.d.ts +64 -0
  73. package/dist/i18n/locales/ro.js +58 -0
  74. package/dist/i18n/locales/ru.d.ts +64 -0
  75. package/dist/i18n/locales/ru.js +58 -0
  76. package/dist/i18n/locales/sq.d.ts +64 -0
  77. package/dist/i18n/locales/sq.js +58 -0
  78. package/dist/i18n/locales/sv.d.ts +64 -0
  79. package/dist/i18n/locales/sv.js +58 -0
  80. package/dist/i18n/locales/tr.d.ts +64 -0
  81. package/dist/i18n/locales/tr.js +58 -0
  82. package/dist/i18n/locales/zh.d.ts +64 -0
  83. package/dist/i18n/locales/zh.js +58 -0
  84. package/dist/index.js +543 -600
  85. package/dist/locales/ar.json +64 -0
  86. package/dist/locales/de.json +64 -0
  87. package/dist/locales/el.json +64 -0
  88. package/dist/locales/en.json +64 -0
  89. package/dist/locales/es.json +64 -0
  90. package/dist/locales/fr.json +64 -0
  91. package/dist/locales/hi.json +64 -0
  92. package/dist/locales/it.json +64 -0
  93. package/dist/locales/ja.json +64 -0
  94. package/dist/locales/nl.json +64 -0
  95. package/dist/locales/pl.json +64 -0
  96. package/dist/locales/pt.json +64 -0
  97. package/dist/locales/ro.json +64 -0
  98. package/dist/locales/ru.json +64 -0
  99. package/dist/locales/sq.json +64 -0
  100. package/dist/locales/sv.json +64 -0
  101. package/dist/locales/tr.json +64 -0
  102. package/dist/locales/zh.json +64 -0
  103. package/dist/patterns/marketplace-app-shell/index.d.ts +3 -0
  104. package/dist/patterns/marketplace-app-shell/index.js +6 -0
  105. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +111 -0
  106. package/dist/tokens.css +1 -1
  107. package/package.json +19 -7
  108. package/dist/_chunks/chart-DLkVn_ex.js +0 -292
  109. package/dist/_chunks/subDays-CANHP9hz.js +0 -8
@@ -0,0 +1,173 @@
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as I, useState as g, useMemo as C, useEffect as M } from "react";
3
+ import { c as O } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as k } from "react-i18next";
5
+ import { R as i } from "./radio-TWf9Q-mp.js";
6
+ import { R as A } from "./radio-group-BcF92GEF.js";
7
+ import { F as E } from "./form-field-BOm9hK35.js";
8
+ import { D as $ } from "./date-picker-CXFpu-qY.js";
9
+ import { N as G } from "./number-input-Dj5L3pXK.js";
10
+ import { B as R } from "./badge-zsf5i5bH.js";
11
+ import { a as b, d as Y } from "./react-day-picker-DYDdR8Vv.js";
12
+ import { s as x } from "./subDays-D-WYRpdW.js";
13
+ const B = 280, L = 14, T = 266, D = 28;
14
+ function V(s) {
15
+ if (s < 0) return "preconception";
16
+ const l = Math.floor(s / 7);
17
+ return l < 14 ? "first" : l < 28 ? "second" : l < 42 ? "third" : "postterm";
18
+ }
19
+ function z(s, l) {
20
+ const { method: u, date: d } = s;
21
+ let c, n;
22
+ if (u === "lmp") {
23
+ const r = s.cycleLength ?? D;
24
+ c = d, n = b(d, B + (r - D));
25
+ } else if (u === "conception")
26
+ c = x(d, L), n = b(d, T);
27
+ else {
28
+ const r = s.embryoAge ?? 5, f = x(d, r);
29
+ c = x(f, L), n = b(f, T);
30
+ }
31
+ const e = Y(l, c), m = e < 0 ? null : {
32
+ weeks: Math.floor(e / 7),
33
+ days: e % 7,
34
+ totalDays: e
35
+ };
36
+ return {
37
+ dueDate: n,
38
+ gestationalStart: c,
39
+ gestationalAge: m,
40
+ trimester: V(e)
41
+ };
42
+ }
43
+ const P = O("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
44
+ variants: {
45
+ width: { full: "ds:w-full", auto: "ds:inline-flex" }
46
+ },
47
+ defaultVariants: { width: "full" }
48
+ }), j = {
49
+ preconception: "neutral",
50
+ first: "info",
51
+ second: "success",
52
+ third: "warning",
53
+ postterm: "error"
54
+ }, H = {
55
+ lmp: "dueDateCalculator.lmpDate",
56
+ conception: "dueDateCalculator.conceptionDate",
57
+ ivf: "dueDateCalculator.transferDate"
58
+ }, K = I(({ defaultMethod: s = "lmp", onResultChange: l, id: u, width: d, className: c }, n) => {
59
+ const { t: e, i18n: m } = k(), [r, f] = g(s), [p, w] = g(void 0), [h, _] = g(
60
+ D
61
+ ), [y, F] = g(5), a = C(() => p ? z(
62
+ {
63
+ method: r,
64
+ date: p,
65
+ cycleLength: h ?? D,
66
+ embryoAge: y
67
+ },
68
+ /* @__PURE__ */ new Date()
69
+ ) : null, [r, p, h, y]), N = C(
70
+ () => new Intl.DateTimeFormat(m.language, { dateStyle: "long" }),
71
+ [m.language]
72
+ );
73
+ M(() => {
74
+ l == null || l(a);
75
+ }, [a, l]);
76
+ const S = C(() => /* @__PURE__ */ new Date(), []);
77
+ return /* @__PURE__ */ o(
78
+ "div",
79
+ {
80
+ ref: n,
81
+ "data-component": "due-date-calculator",
82
+ "data-component-id": u,
83
+ className: P({ width: d, className: c }),
84
+ children: [
85
+ /* @__PURE__ */ o(
86
+ A,
87
+ {
88
+ label: e("dueDateCalculator.method.label"),
89
+ variant: "horizontal",
90
+ value: r,
91
+ onValueChange: (v) => f(v),
92
+ children: [
93
+ /* @__PURE__ */ t(i, { label: e("dueDateCalculator.method.lmp"), value: "lmp" }),
94
+ /* @__PURE__ */ t(
95
+ i,
96
+ {
97
+ label: e("dueDateCalculator.method.conception"),
98
+ value: "conception"
99
+ }
100
+ ),
101
+ /* @__PURE__ */ t(i, { label: e("dueDateCalculator.method.ivf"), value: "ivf" })
102
+ ]
103
+ }
104
+ ),
105
+ /* @__PURE__ */ o("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
106
+ /* @__PURE__ */ t(E, { label: e(H[r]), children: /* @__PURE__ */ t($, { value: p, onChange: w, maxDate: S }) }),
107
+ r === "lmp" && /* @__PURE__ */ t(
108
+ E,
109
+ {
110
+ label: e("dueDateCalculator.cycleLength"),
111
+ description: e("dueDateCalculator.cycleLengthHint"),
112
+ children: /* @__PURE__ */ t(
113
+ G,
114
+ {
115
+ mode: "integer",
116
+ min: 20,
117
+ max: 45,
118
+ value: h,
119
+ onChange: _
120
+ }
121
+ )
122
+ }
123
+ ),
124
+ r === "ivf" && /* @__PURE__ */ o(
125
+ A,
126
+ {
127
+ label: e("dueDateCalculator.embryoAge"),
128
+ variant: "horizontal",
129
+ value: String(y),
130
+ onValueChange: (v) => F(Number(v)),
131
+ children: [
132
+ /* @__PURE__ */ t(i, { label: e("dueDateCalculator.day3"), value: "3" }),
133
+ /* @__PURE__ */ t(i, { label: e("dueDateCalculator.day5"), value: "5" })
134
+ ]
135
+ }
136
+ )
137
+ ] }),
138
+ /* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: a ? `${e("dueDateCalculator.result.dueDateLabel")}: ${N.format(
139
+ a.dueDate
140
+ )}. ${e("dueDateCalculator.result.trimesterLabel")}: ${e(
141
+ `dueDateCalculator.trimester.${a.trimester}`
142
+ )}.` : "" }),
143
+ a ? /* @__PURE__ */ o("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-3", children: [
144
+ /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
145
+ /* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.dueDateLabel") }),
146
+ /* @__PURE__ */ t("dd", { className: "type-metric ds:text-foreground", children: N.format(a.dueDate) })
147
+ ] }),
148
+ /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
149
+ /* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.gestationLabel") }),
150
+ /* @__PURE__ */ t("dd", { className: "type-body ds:text-foreground", children: a.gestationalAge ? e("dueDateCalculator.result.gestation", {
151
+ weeks: a.gestationalAge.weeks,
152
+ days: a.gestationalAge.days
153
+ }) : "—" })
154
+ ] }),
155
+ /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
156
+ /* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.trimesterLabel") }),
157
+ /* @__PURE__ */ t("dd", { children: /* @__PURE__ */ t(R, { variant: j[a.trimester], size: "lg", children: e(`dueDateCalculator.trimester.${a.trimester}`) }) })
158
+ ] })
159
+ ] }) : /* @__PURE__ */ t("p", { className: "type-body ds:text-muted-foreground", children: e("dueDateCalculator.empty") })
160
+ ]
161
+ }
162
+ );
163
+ });
164
+ K.displayName = "DueDateCalculator";
165
+ export {
166
+ D,
167
+ B as G,
168
+ T,
169
+ K as a,
170
+ z as c,
171
+ V as t
172
+ };
173
+ //# sourceMappingURL=due-date-calculator-kf9U_g7O.js.map
@@ -26,7 +26,7 @@ import { S as Ie } from "./select-hsCaJSX3.js";
26
26
  import { u as zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
27
27
  import { u as At } from "./use-theme-C2dHKUAN.js";
28
28
  import { u as Pt } from "./registry-nPAVE19X.js";
29
- import { D as ze } from "./date-range-picker-D8CHNYQT.js";
29
+ import { D as ze } from "./date-range-picker-I-q5rifj.js";
30
30
  import { M as Ot } from "./multi-select-DOLO3K_z.js";
31
31
  import { A as Ae } from "./autocomplete-DIgdhCGJ.js";
32
32
  import { N as ee } from "./number-input-Dj5L3pXK.js";
@@ -2332,4 +2332,4 @@ export {
2332
2332
  Be as q,
2333
2333
  xn as u
2334
2334
  };
2335
- //# sourceMappingURL=editable-currency-cell-renderer-CZcVWBPo.js.map
2335
+ //# sourceMappingURL=editable-currency-cell-renderer-DnjwZNZP.js.map
@@ -1,4 +1,4 @@
1
- import { o as s, q as i, r as o, v as d } from "./react-day-picker-DsjfS7uI.js";
1
+ import { o as s, q as i, r as o, v as d } from "./react-day-picker-DYDdR8Vv.js";
2
2
  const u = {
3
3
  lessThanXSeconds: {
4
4
  one: "λιγότερο από ένα δευτερόλεπτο",
@@ -370,4 +370,4 @@ const u = {
370
370
  export {
371
371
  O as el
372
372
  };
373
- //# sourceMappingURL=el-Dro3J7CP.js.map
373
+ //# sourceMappingURL=el-Dr1pjuDq.js.map
@@ -1,4 +1,4 @@
1
- import { o as d, q as o, r, v as s } from "./react-day-picker-DsjfS7uI.js";
1
+ import { o as d, q as o, r, v as s } from "./react-day-picker-DYDdR8Vv.js";
2
2
  const m = {
3
3
  lessThanXSeconds: {
4
4
  one: "menos de un segundo",
@@ -370,4 +370,4 @@ const m = {
370
370
  export {
371
371
  q as es
372
372
  };
373
- //# sourceMappingURL=es-Dvg8u70B.js.map
373
+ //# sourceMappingURL=es-CvyTjLS0.js.map
@@ -1,4 +1,4 @@
1
- import { o as m, q as r, r as o, v as d } from "./react-day-picker-DsjfS7uI.js";
1
+ import { o as m, q as r, r as o, v as d } from "./react-day-picker-DYDdR8Vv.js";
2
2
  const u = {
3
3
  lessThanXSeconds: {
4
4
  one: "moins d’une seconde",
@@ -335,4 +335,4 @@ const u = {
335
335
  export {
336
336
  q as fr
337
337
  };
338
- //# sourceMappingURL=fr-VOGjBSPP.js.map
338
+ //# sourceMappingURL=fr-CS7aqaFR.js.map
@@ -1,4 +1,4 @@
1
- import { q as o, o as s, r, v as u } from "./react-day-picker-DsjfS7uI.js";
1
+ import { q as o, o as s, r, v as u } from "./react-day-picker-DYDdR8Vv.js";
2
2
  const d = {
3
3
  locale: {
4
4
  1: "१",
@@ -430,4 +430,4 @@ const y = {
430
430
  export {
431
431
  H as hi
432
432
  };
433
- //# sourceMappingURL=hi-BSDxWU_y.js.map
433
+ //# sourceMappingURL=hi-3uy8KpsH.js.map
@@ -1,5 +1,5 @@
1
1
  import { n as l } from "./isSameDay-DUEiAT0G.js";
2
- import { s as r } from "./react-day-picker-DsjfS7uI.js";
2
+ import { s as r } from "./react-day-picker-DYDdR8Vv.js";
3
3
  function i(a, m, e) {
4
4
  const [t, f] = l(
5
5
  e == null ? void 0 : e.in,
@@ -11,4 +11,4 @@ function i(a, m, e) {
11
11
  export {
12
12
  i
13
13
  };
14
- //# sourceMappingURL=isSameWeek-Dfzu29cW.js.map
14
+ //# sourceMappingURL=isSameWeek-DRpMibi9.js.map
@@ -1,5 +1,5 @@
1
- import { o as s, q as i, r, v as l } from "./react-day-picker-DsjfS7uI.js";
2
- import { i as d } from "./isSameWeek-Dfzu29cW.js";
1
+ import { o as s, q as i, r, v as l } from "./react-day-picker-DYDdR8Vv.js";
2
+ import { i as d } from "./isSameWeek-DRpMibi9.js";
3
3
  const c = {
4
4
  lessThanXSeconds: {
5
5
  one: "meno di un secondo",
@@ -398,4 +398,4 @@ const P = {
398
398
  export {
399
399
  I as it
400
400
  };
401
- //# sourceMappingURL=it-CuonvcI_.js.map
401
+ //# sourceMappingURL=it-B_RF5VSw.js.map
@@ -1,4 +1,4 @@
1
- import { o as s, q as o, r as i, v as d } from "./react-day-picker-DsjfS7uI.js";
1
+ import { o as s, q as o, r as i, v as d } from "./react-day-picker-DYDdR8Vv.js";
2
2
  const u = {
3
3
  lessThanXSeconds: {
4
4
  one: "1秒未満",
@@ -363,4 +363,4 @@ const u = {
363
363
  export {
364
364
  L as ja
365
365
  };
366
- //# sourceMappingURL=ja-DO57gIOT.js.map
366
+ //# sourceMappingURL=ja-C1mEYy35.js.map
@@ -0,0 +1,295 @@
1
+ import { jsxs as s, jsx as e, Fragment as M } from "react/jsx-runtime";
2
+ import { forwardRef as h, useState as H } from "react";
3
+ import { useTranslation as I } from "react-i18next";
4
+ import { A as T } from "./app-frame-BYx1gcV7.js";
5
+ import { A as L } from "./avatar-BNQNhoyL.js";
6
+ import { A as O } from "./alert-ywPR59NE.js";
7
+ import { B as k } from "./button-DD_0Xdmr.js";
8
+ import { C as b } from "./card-DPmk26CL.js";
9
+ import { D as d } from "./dropdown-menu-BC5ZdOMo.js";
10
+ import { H as P, g as j, f as W, e as R, a as $, c as D, d as E } from "./header-CTZWX-tm.js";
11
+ import { S as F, a as V, h as q, j as G, k as J, i as K } from "./sidebar-BbR8f6oe.js";
12
+ import { T as Q } from "./theme-root-BOO73p5t.js";
13
+ import { a as U } from "./tooltip-DvmfrNvB.js";
14
+ import { u as X } from "./use-theme-C2dHKUAN.js";
15
+ import { c as N } from "./index-D2ZczOXr.js";
16
+ import { L as Y } from "./logo-_Z-jLq80.js";
17
+ const Z = N("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), _ = N(
18
+ [
19
+ "ds:[font-family:var(--font-serif)]",
20
+ "ds:font-semibold",
21
+ "ds:leading-none",
22
+ "ds:tracking-[0.01em]",
23
+ "ds:whitespace-nowrap",
24
+ // Forced-colors: drop the transparent text-fill and paint the label
25
+ // as solid CanvasText so it never disappears under Windows HCM —
26
+ // a gradient/transparent fill has no meaning there.
27
+ "ds:forced-colors:text-[CanvasText]",
28
+ "ds:forced-colors:[-webkit-text-fill-color:CanvasText]"
29
+ ],
30
+ {
31
+ variants: {
32
+ size: {
33
+ sm: "ds:text-[calc(var(--logo-size-sm)*0.95)]",
34
+ md: "ds:text-[calc(var(--logo-size-md)*0.95)]",
35
+ lg: "ds:text-[calc(var(--logo-size-lg)*0.95)]",
36
+ xl: "ds:text-[calc(var(--logo-size-xl)*0.95)]"
37
+ },
38
+ tone: {
39
+ // Brand gradient filled into the glyphs via background-clip:text.
40
+ // `--gradient-wordmark` rides the theme aliases, so it stays
41
+ // AA-safe and adapts per theme on its own (and flattens to a solid
42
+ // ink in the accessible / forced-colors blocks — see tokens).
43
+ gradient: [
44
+ "ds:italic",
45
+ "ds:bg-[image:var(--gradient-wordmark)]",
46
+ "ds:bg-clip-text",
47
+ "ds:text-transparent",
48
+ "ds:[-webkit-text-fill-color:transparent]"
49
+ ],
50
+ // Monochrome: solid `--foreground` ink, upright, no gradient — for
51
+ // print, single-colour reproductions, and constrained contexts.
52
+ solid: "ds:text-[color:var(--foreground)]"
53
+ }
54
+ },
55
+ defaultVariants: { size: "md", tone: "gradient" }
56
+ }
57
+ ), f = h(
58
+ ({ name: t, monochrome: a = !1, size: r = "md", className: n, ...l }, o) => /* @__PURE__ */ s(
59
+ "span",
60
+ {
61
+ ref: o,
62
+ role: "img",
63
+ "aria-label": `Alfadocs ${t}`.trim(),
64
+ className: Z({ className: n }),
65
+ "data-component": "product-lockup",
66
+ ...l,
67
+ children: [
68
+ /* @__PURE__ */ e(
69
+ Y,
70
+ {
71
+ variant: a ? "monochrome" : "wordmark",
72
+ size: r,
73
+ decorative: !0
74
+ }
75
+ ),
76
+ /* @__PURE__ */ e(
77
+ "span",
78
+ {
79
+ "aria-hidden": !0,
80
+ className: _({
81
+ size: r,
82
+ tone: a ? "solid" : "gradient"
83
+ }),
84
+ children: t
85
+ }
86
+ )
87
+ ]
88
+ }
89
+ )
90
+ );
91
+ f.displayName = "ProductLockup";
92
+ function ee(t) {
93
+ return t > 99 ? "99+" : String(t);
94
+ }
95
+ function ae({
96
+ user: t,
97
+ labels: a,
98
+ onSignOut: r,
99
+ onToggleFullscreen: n
100
+ }) {
101
+ return (
102
+ // Non-modal: an account menu shouldn't inert/aria-hide the whole shell
103
+ // behind it (which leaves the still-focusable chrome inside an
104
+ // aria-hidden region — an `aria-hidden-focus` violation).
105
+ /* @__PURE__ */ s(d.Root, { modal: !1, children: [
106
+ /* @__PURE__ */ e(d.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
107
+ k,
108
+ {
109
+ intent: "ghost",
110
+ "aria-label": a.accountMenu,
111
+ startIcon: /* @__PURE__ */ e(
112
+ L,
113
+ {
114
+ name: t.name,
115
+ src: t.avatarSrc,
116
+ size: "sm",
117
+ "aria-hidden": "true"
118
+ }
119
+ ),
120
+ "data-testid": "marketplace-account-trigger",
121
+ children: /* @__PURE__ */ e("span", { className: "ds:hidden ds:sm:inline", children: t.name })
122
+ }
123
+ ) }),
124
+ /* @__PURE__ */ s(d.Content, { align: "end", children: [
125
+ /* @__PURE__ */ e(d.Label, { children: /* @__PURE__ */ s("span", { className: "ds:flex ds:flex-col", children: [
126
+ /* @__PURE__ */ e("span", { className: "ds:font-medium", children: t.name }),
127
+ t.email ? /* @__PURE__ */ e("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", children: t.email }) : null
128
+ ] }) }),
129
+ n && a.fullscreen ? /* @__PURE__ */ s(M, { children: [
130
+ /* @__PURE__ */ e(d.Separator, {}),
131
+ /* @__PURE__ */ e(
132
+ d.Item,
133
+ {
134
+ onSelect: n,
135
+ "data-testid": "marketplace-fullscreen",
136
+ children: a.fullscreen
137
+ }
138
+ )
139
+ ] }) : null,
140
+ /* @__PURE__ */ e(d.Separator, {}),
141
+ /* @__PURE__ */ e(
142
+ d.Item,
143
+ {
144
+ onSelect: r,
145
+ "data-testid": "marketplace-sign-out",
146
+ children: a.signOut
147
+ }
148
+ )
149
+ ] })
150
+ ] })
151
+ );
152
+ }
153
+ function te({ nav: t }) {
154
+ return /* @__PURE__ */ e(V, { children: t.map((a) => {
155
+ const r = typeof a.badgeCount == "number" && a.badgeCount > 0 ? a.badgeCount : void 0;
156
+ return /* @__PURE__ */ s(
157
+ q,
158
+ {
159
+ href: a.href,
160
+ "aria-label": a.label,
161
+ isActive: a.isActive,
162
+ children: [
163
+ a.icon ? /* @__PURE__ */ e(G, { children: a.icon }) : null,
164
+ /* @__PURE__ */ e(J, { children: a.label }),
165
+ r !== void 0 ? /* @__PURE__ */ e(K, { children: ee(r) }) : null
166
+ ]
167
+ },
168
+ a.id
169
+ );
170
+ }) });
171
+ }
172
+ const re = h(
173
+ ({
174
+ productName: t,
175
+ productHref: a = "/",
176
+ nav: r,
177
+ user: n,
178
+ labels: l,
179
+ onSignOut: o,
180
+ onToggleFullscreen: c,
181
+ sidebarState: i,
182
+ mainAriaLabel: m,
183
+ children: p
184
+ }, u) => {
185
+ const { t: S } = I(), { theme: y, accessibility: A, resolvedTheme: g } = X(), C = y !== "system" || A !== "system", w = g.startsWith("dark") ? "dark" : "light", z = g.endsWith("-accessible"), [B, v] = H(!1), x = /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(
186
+ T,
187
+ {
188
+ mainAriaLabel: m,
189
+ header: /* @__PURE__ */ s(P, { children: [
190
+ /* @__PURE__ */ s(j, { children: [
191
+ /* @__PURE__ */ e(W, { href: "#main-content" }),
192
+ /* @__PURE__ */ e(R, { onMenuOpen: () => v(!0) }),
193
+ /* @__PURE__ */ e(
194
+ $,
195
+ {
196
+ logo: /* @__PURE__ */ e(f, { name: t, size: "md" }),
197
+ href: a,
198
+ "aria-label": `Alfadocs ${t}`
199
+ }
200
+ )
201
+ ] }),
202
+ /* @__PURE__ */ e(D, {}),
203
+ /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
204
+ ae,
205
+ {
206
+ user: n,
207
+ labels: l,
208
+ onSignOut: o,
209
+ onToggleFullscreen: c
210
+ }
211
+ ) })
212
+ ] }),
213
+ sidebar: /* @__PURE__ */ e(
214
+ F,
215
+ {
216
+ ...i !== void 0 ? { state: i } : { defaultState: "expanded" },
217
+ open: B,
218
+ onOpenChange: v,
219
+ "aria-label": S("navigation.sidebar.label"),
220
+ "data-testid": "marketplace-app-shell-sidebar",
221
+ children: /* @__PURE__ */ e(te, { nav: r })
222
+ }
223
+ ),
224
+ children: p
225
+ }
226
+ ) });
227
+ return C ? /* @__PURE__ */ e(
228
+ Q,
229
+ {
230
+ ref: u,
231
+ theme: w,
232
+ accessible: z,
233
+ className: "ds:contents",
234
+ "data-component": "marketplace-app-shell",
235
+ children: x
236
+ }
237
+ ) : /* @__PURE__ */ e(
238
+ "div",
239
+ {
240
+ ref: u,
241
+ className: "ds:contents",
242
+ "data-component": "marketplace-app-shell",
243
+ children: x
244
+ }
245
+ );
246
+ }
247
+ );
248
+ re.displayName = "MarketplaceAppShell";
249
+ const se = h(
250
+ ({
251
+ productName: t,
252
+ title: a,
253
+ description: r,
254
+ connectLabel: n,
255
+ status: l = "idle",
256
+ error: o,
257
+ onConnect: c,
258
+ footer: i,
259
+ className: m
260
+ }, p) => /* @__PURE__ */ e(
261
+ "div",
262
+ {
263
+ ref: p,
264
+ "data-component": "connect-with-alfadocs",
265
+ className: `ds:flex ds:min-h-dvh ds:items-center ds:justify-center ds:bg-[color:var(--background)] ds:p-[var(--spacing-lg)] ${m ?? ""}`,
266
+ children: /* @__PURE__ */ e(b, { className: "ds:w-full ds:max-w-[400px]", children: /* @__PURE__ */ s(b.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center", children: [
267
+ /* @__PURE__ */ e(f, { name: t, size: "lg" }),
268
+ /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
269
+ /* @__PURE__ */ e("h1", { className: "type-title-card", children: a }),
270
+ /* @__PURE__ */ e("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: r })
271
+ ] }),
272
+ l === "error" && o ? /* @__PURE__ */ e(O, { variant: "error", className: "ds:w-full ds:text-start", children: o }) : null,
273
+ /* @__PURE__ */ e(
274
+ k,
275
+ {
276
+ intent: "primary",
277
+ className: "ds:w-full",
278
+ loading: l === "connecting",
279
+ onClick: c,
280
+ "data-testid": "connect-with-alfadocs-button",
281
+ children: n
282
+ }
283
+ ),
284
+ i ? /* @__PURE__ */ e("div", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: i }) : null
285
+ ] }) })
286
+ }
287
+ )
288
+ );
289
+ se.displayName = "ConnectWithAlfadocs";
290
+ export {
291
+ se as C,
292
+ re as M,
293
+ f as P
294
+ };
295
+ //# sourceMappingURL=marketplace-app-shell-DXHxy9dj.js.map
@@ -1,4 +1,4 @@
1
- import { o as d, q as n, r, v as s } from "./react-day-picker-DsjfS7uI.js";
1
+ import { o as d, q as n, r, v as s } from "./react-day-picker-DYDdR8Vv.js";
2
2
  const m = {
3
3
  lessThanXSeconds: {
4
4
  one: "minder dan een seconde",
@@ -323,4 +323,4 @@ const m = {
323
323
  export {
324
324
  S as nl
325
325
  };
326
- //# sourceMappingURL=nl-DjPaaWaW.js.map
326
+ //# sourceMappingURL=nl-Dl7lO2t3.js.map
@@ -1,5 +1,5 @@
1
- import { o as s, q as a, r, v as l } from "./react-day-picker-DsjfS7uI.js";
2
- import { i as p } from "./isSameWeek-Dfzu29cW.js";
1
+ import { o as s, q as a, r, v as l } from "./react-day-picker-DYDdR8Vv.js";
2
+ import { i as p } from "./isSameWeek-DRpMibi9.js";
3
3
  const w = {
4
4
  lessThanXSeconds: {
5
5
  one: {
@@ -511,4 +511,4 @@ const I = {
511
511
  export {
512
512
  Z as pl
513
513
  };
514
- //# sourceMappingURL=pl-Cl4lOx2N.js.map
514
+ //# sourceMappingURL=pl-Dgsogljx.js.map
@@ -1,4 +1,4 @@
1
- import { o as s, q as i, r, v as d } from "./react-day-picker-DsjfS7uI.js";
1
+ import { o as s, q as i, r, v as d } from "./react-day-picker-DYDdR8Vv.js";
2
2
  const m = {
3
3
  lessThanXSeconds: {
4
4
  one: "menos de um segundo",
@@ -367,4 +367,4 @@ const m = {
367
367
  export {
368
368
  N as pt
369
369
  };
370
- //# sourceMappingURL=pt-D7qO5CzD.js.map
370
+ //# sourceMappingURL=pt-Dm2JF4bc.js.map
@@ -3000,23 +3000,23 @@ function qo(e) {
3000
3000
  }
3001
3001
  const Ot = {
3002
3002
  en: () => Promise.resolve().then(() => Pr).then((e) => e.enUS),
3003
- it: () => import("./it-CuonvcI_.js").then((e) => e.it),
3004
- de: () => import("./de-Dfbeau59.js").then((e) => e.de),
3005
- es: () => import("./es-Dvg8u70B.js").then((e) => e.es),
3006
- fr: () => import("./fr-VOGjBSPP.js").then((e) => e.fr),
3007
- pt: () => import("./pt-D7qO5CzD.js").then((e) => e.pt),
3008
- nl: () => import("./nl-DjPaaWaW.js").then((e) => e.nl),
3009
- pl: () => import("./pl-Cl4lOx2N.js").then((e) => e.pl),
3010
- ro: () => import("./ro-CP2-VJ_O.js").then((e) => e.ro),
3011
- ru: () => import("./ru-RPn9_Lpq.js").then((e) => e.ru),
3012
- sv: () => import("./sv-zkx9eBtD.js").then((e) => e.sv),
3013
- el: () => import("./el-Dro3J7CP.js").then((e) => e.el),
3014
- ja: () => import("./ja-DO57gIOT.js").then((e) => e.ja),
3015
- zh: () => import("./zh-CN-DxVt64Zk.js").then((e) => e.zhCN),
3016
- hi: () => import("./hi-BSDxWU_y.js").then((e) => e.hi),
3017
- ar: () => import("./ar-CEpIJtcO.js").then((e) => e.ar),
3018
- tr: () => import("./tr-Dmr412Ac.js").then((e) => e.tr),
3019
- sq: () => import("./sq-AQvefouo.js").then((e) => e.sq)
3003
+ it: () => import("./it-B_RF5VSw.js").then((e) => e.it),
3004
+ de: () => import("./de-HTQ4b4-J.js").then((e) => e.de),
3005
+ es: () => import("./es-CvyTjLS0.js").then((e) => e.es),
3006
+ fr: () => import("./fr-CS7aqaFR.js").then((e) => e.fr),
3007
+ pt: () => import("./pt-Dm2JF4bc.js").then((e) => e.pt),
3008
+ nl: () => import("./nl-Dl7lO2t3.js").then((e) => e.nl),
3009
+ pl: () => import("./pl-Dgsogljx.js").then((e) => e.pl),
3010
+ ro: () => import("./ro-BXFZ_xIX.js").then((e) => e.ro),
3011
+ ru: () => import("./ru-BPQkNRRV.js").then((e) => e.ru),
3012
+ sv: () => import("./sv-Do_gs6ir.js").then((e) => e.sv),
3013
+ el: () => import("./el-Dr1pjuDq.js").then((e) => e.el),
3014
+ ja: () => import("./ja-C1mEYy35.js").then((e) => e.ja),
3015
+ zh: () => import("./zh-CN-C9qi5oak.js").then((e) => e.zhCN),
3016
+ hi: () => import("./hi-3uy8KpsH.js").then((e) => e.hi),
3017
+ ar: () => import("./ar-D1RwVZFj.js").then((e) => e.ar),
3018
+ tr: () => import("./tr-da_UnkYH.js").then((e) => e.tr),
3019
+ sq: () => import("./sq-ChTlGFcJ.js").then((e) => e.sq)
3020
3020
  };
3021
3021
  async function To(e) {
3022
3022
  const t = e.toLowerCase().split("-")[0];
@@ -3147,12 +3147,12 @@ export {
3147
3147
  Ct as a,
3148
3148
  Gn as b,
3149
3149
  Go as c,
3150
- Qn as d,
3150
+ Ke as d,
3151
3151
  _t as e,
3152
- Kn as f,
3152
+ Qn as f,
3153
3153
  zo as g,
3154
- Me as h,
3155
- Ke as i,
3154
+ Kn as h,
3155
+ Me as i,
3156
3156
  Vo as j,
3157
3157
  $o as k,
3158
3158
  Uo as l,
@@ -3171,4 +3171,4 @@ export {
3171
3171
  ke as y,
3172
3172
  Ft as z
3173
3173
  };
3174
- //# sourceMappingURL=react-day-picker-DsjfS7uI.js.map
3174
+ //# sourceMappingURL=react-day-picker-DYDdR8Vv.js.map