@alfadocs/ui-kit 0.14.1 → 0.15.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 (36) hide show
  1. package/dist/_chunks/carousel.agent-2dXpQoqp.js +1661 -0
  2. package/dist/_chunks/{header-D0ULgQl3.js → header-DqmKROIY.js} +42 -52
  3. package/dist/_chunks/{map-view-Dd48BxVB.js → map-view-DVP-Kp9l.js} +445 -444
  4. package/dist/_chunks/menu-XRhW3_99.js +16 -0
  5. package/dist/_chunks/{patient-shell-CL20JnVJ.js → patient-shell-BE0CdPOJ.js} +2 -2
  6. package/dist/_chunks/public-header.agent-AzJSINlU.js +237 -0
  7. package/dist/_chunks/stat-DEkZx0Mx.js +318 -0
  8. package/dist/_chunks/use-count-up-BLLetaZ8.js +109 -0
  9. package/dist/agent-catalog.json +92 -1
  10. package/dist/components/carousel/carousel.agent.d.ts +4 -0
  11. package/dist/components/carousel/carousel.d.ts +45 -0
  12. package/dist/components/carousel/index.d.ts +3 -0
  13. package/dist/components/carousel/index.js +6 -0
  14. package/dist/components/header/index.js +1 -1
  15. package/dist/components/index.d.ts +2 -0
  16. package/dist/components/map-view/index.js +1 -1
  17. package/dist/components/map-view/map-view.d.ts +8 -0
  18. package/dist/components/public-header/index.d.ts +3 -0
  19. package/dist/components/public-header/index.js +6 -0
  20. package/dist/components/public-header/public-header.agent.d.ts +4 -0
  21. package/dist/components/public-header/public-header.d.ts +43 -0
  22. package/dist/components/stat/index.js +1 -1
  23. package/dist/components/stat/stat.d.ts +31 -0
  24. package/dist/hooks/index.d.ts +2 -0
  25. package/dist/hooks/index.js +10 -8
  26. package/dist/hooks/use-count-up.d.ts +88 -0
  27. package/dist/i18n/config.js +51 -0
  28. package/dist/i18n/resources.d.ts +51 -0
  29. package/dist/index.js +367 -361
  30. package/dist/locales/de.json +17 -0
  31. package/dist/locales/en.json +17 -0
  32. package/dist/locales/it.json +17 -0
  33. package/dist/patterns/patient-shell/index.js +1 -1
  34. package/dist/tokens.css +1 -1
  35. package/package.json +10 -1
  36. package/dist/_chunks/stat-CDQ_a0vk.js +0 -228
@@ -3,18 +3,8 @@ import { forwardRef as t, useRef as k, useState as N, useEffect as j } from "rea
3
3
  import { c as o } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as l } from "react-i18next";
5
5
  import { I as H } from "./icon-button-C4CGcYuz.js";
6
- import { c as w } from "./createLucideIcon-CrFbzy84.js";
7
- /**
8
- * @license lucide-react v1.8.0 - ISC
9
- *
10
- * This source code is licensed under the ISC license.
11
- * See the LICENSE file in the root directory of this source tree.
12
- */
13
- const B = [
14
- ["path", { d: "M4 5h16", key: "1tepv9" }],
15
- ["path", { d: "M4 12h16", key: "1lakjw" }],
16
- ["path", { d: "M4 19h16", key: "1djgab" }]
17
- ], C = w("menu", B), V = o(
6
+ import { M as w } from "./menu-XRhW3_99.js";
7
+ const B = o(
18
8
  [
19
9
  "ds:w-full",
20
10
  // Fixed height — a Header is always the `lg` token (64px). Using `h-*`
@@ -106,19 +96,19 @@ const B = [
106
96
  variant: "brand"
107
97
  }
108
98
  }
109
- ), S = o(
99
+ ), C = o(
110
100
  [
111
101
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
112
102
  "ds:w-full ds:h-full",
113
103
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
114
104
  ].join(" ")
115
- ), z = o(
105
+ ), V = o(
116
106
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]"
117
- ), I = o(
107
+ ), S = o(
118
108
  "ds:hidden ds:md:flex ds:flex-1 ds:min-w-0 ds:items-center ds:justify-center ds:gap-[var(--spacing-sm)]"
119
- ), M = o(
109
+ ), z = o(
120
110
  "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]"
121
- ), T = o(
111
+ ), I = o(
122
112
  [
123
113
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
124
114
  "ds:text-[length:var(--font-size-base)] ds:font-[var(--font-weight-semibold)]",
@@ -138,13 +128,13 @@ const B = [
138
128
  "ds:forced-colors:focus-visible:outline-[CanvasText]",
139
129
  "ds:min-h-[var(--min-target-size)]"
140
130
  ].join(" ")
141
- ), O = o(
131
+ ), T = o(
142
132
  [
143
133
  "ds:hidden ds:md:inline-block",
144
134
  "ds:border-inline-start ds:border-[color:var(--border)]",
145
135
  "ds:self-stretch ds:my-[var(--spacing-xs)]"
146
136
  ].join(" ")
147
- ), R = o(
137
+ ), M = o(
148
138
  [
149
139
  "ds:sr-only ds:focus:not-sr-only",
150
140
  "ds:focus:absolute ds:focus:inset-inline-start-[var(--spacing-sm)] ds:focus:inset-block-start-[var(--spacing-sm)]",
@@ -156,7 +146,7 @@ const B = [
156
146
  "ds:focus:outline-[length:var(--focus-ring-width)] ds:focus:outline-solid ds:focus:outline-[color:var(--ring)]",
157
147
  "ds:forced-colors:focus:outline-[CanvasText]"
158
148
  ].join(" ")
159
- ), D = t(
149
+ ), O = t(
160
150
  ({
161
151
  variant: e = "brand",
162
152
  className: r,
@@ -195,52 +185,52 @@ const B = [
195
185
  "aria-label": g,
196
186
  "data-component": "header",
197
187
  "data-scrolled": b ? "true" : void 0,
198
- className: V({ variant: e, className: r }),
188
+ className: B({ variant: e, className: r }),
199
189
  ...i,
200
- children: /* @__PURE__ */ s("div", { className: S(), children: a })
190
+ children: /* @__PURE__ */ s("div", { className: C(), children: a })
201
191
  }
202
192
  )
203
193
  ] });
204
194
  }
205
195
  );
206
- D.displayName = "Header";
207
- const E = t(({ className: e, ...r }, a) => /* @__PURE__ */ s(
196
+ O.displayName = "Header";
197
+ const R = t(({ className: e, ...r }, a) => /* @__PURE__ */ s(
208
198
  "div",
209
199
  {
210
200
  ref: a,
211
201
  "data-header-slot": "start",
212
- className: [z(), e].filter(Boolean).join(" "),
202
+ className: [V(), e].filter(Boolean).join(" "),
213
203
  ...r
214
204
  }
215
205
  ));
216
- E.displayName = "HeaderStart";
217
- const L = t(({ className: e, ...r }, a) => /* @__PURE__ */ s(
206
+ R.displayName = "HeaderStart";
207
+ const D = t(({ className: e, ...r }, a) => /* @__PURE__ */ s(
218
208
  "div",
219
209
  {
220
210
  ref: a,
221
211
  "data-header-slot": "center",
222
- className: [I(), e].filter(Boolean).join(" "),
212
+ className: [S(), e].filter(Boolean).join(" "),
223
213
  ...r
224
214
  }
225
215
  ));
226
- L.displayName = "HeaderCenter";
227
- const F = t(({ className: e, ...r }, a) => /* @__PURE__ */ s(
216
+ D.displayName = "HeaderCenter";
217
+ const E = t(({ className: e, ...r }, a) => /* @__PURE__ */ s(
228
218
  "div",
229
219
  {
230
220
  ref: a,
231
221
  "data-header-slot": "end",
232
- className: [M(), e].filter(Boolean).join(" "),
222
+ className: [z(), e].filter(Boolean).join(" "),
233
223
  ...r
234
224
  }
235
225
  ));
236
- F.displayName = "HeaderEnd";
237
- const P = t(
226
+ E.displayName = "HeaderEnd";
227
+ const F = t(
238
228
  ({ logo: e, children: r, href: a = "/", className: d, ...n }, i) => /* @__PURE__ */ m(
239
229
  "a",
240
230
  {
241
231
  ref: i,
242
232
  href: a,
243
- className: [T(), d].filter(Boolean).join(" "),
233
+ className: [I(), d].filter(Boolean).join(" "),
244
234
  ...n,
245
235
  children: [
246
236
  e ? /* @__PURE__ */ s(
@@ -256,8 +246,8 @@ const P = t(
256
246
  }
257
247
  )
258
248
  );
259
- P.displayName = "HeaderBrand";
260
- function X({
249
+ F.displayName = "HeaderBrand";
250
+ function U({
261
251
  className: e,
262
252
  ...r
263
253
  }) {
@@ -266,47 +256,47 @@ function X({
266
256
  {
267
257
  role: "presentation",
268
258
  "aria-hidden": "true",
269
- className: [O(), e].filter(Boolean).join(" "),
259
+ className: [T(), e].filter(Boolean).join(" "),
270
260
  ...r
271
261
  }
272
262
  );
273
263
  }
274
- const q = t(({ onMenuOpen: e, "aria-label": r, className: a }, d) => {
264
+ const L = t(({ onMenuOpen: e, "aria-label": r, className: a }, d) => {
275
265
  const { t: n } = l();
276
266
  return /* @__PURE__ */ s(
277
267
  H,
278
268
  {
279
269
  ref: d,
280
270
  className: ["ds:md:hidden", a].filter(Boolean).join(" "),
281
- icon: /* @__PURE__ */ s(C, { "aria-hidden": !0 }),
271
+ icon: /* @__PURE__ */ s(w, { "aria-hidden": !0 }),
282
272
  "aria-label": r ?? n("navigation.sidebar.open", "Open menu"),
283
273
  onClick: e
284
274
  }
285
275
  );
286
276
  });
287
- q.displayName = "HeaderMenuButton";
288
- const A = t(({ href: e, children: r, className: a, ...d }, n) => {
277
+ L.displayName = "HeaderMenuButton";
278
+ const P = t(({ href: e, children: r, className: a, ...d }, n) => {
289
279
  const { t: i } = l();
290
280
  return /* @__PURE__ */ s(
291
281
  "a",
292
282
  {
293
283
  ref: n,
294
284
  href: e,
295
- className: [R(), a].filter(Boolean).join(" "),
285
+ className: [M(), a].filter(Boolean).join(" "),
296
286
  ...d,
297
287
  children: r ?? i("navigation.nav.skipToContent", "Skip to content")
298
288
  }
299
289
  );
300
290
  });
301
- A.displayName = "HeaderSkipLink";
291
+ P.displayName = "HeaderSkipLink";
302
292
  export {
303
- D as H,
304
- P as a,
305
- X as b,
306
- L as c,
307
- F as d,
308
- q as e,
309
- A as f,
310
- E as g
293
+ O as H,
294
+ F as a,
295
+ U as b,
296
+ D as c,
297
+ E as d,
298
+ L as e,
299
+ P as f,
300
+ R as g
311
301
  };
312
- //# sourceMappingURL=header-D0ULgQl3.js.map
302
+ //# sourceMappingURL=header-DqmKROIY.js.map