@alfadocs/ui-kit 0.6.1 → 0.7.1

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 (28) hide show
  1. package/dist/_chunks/{alert-B1sj8Ss0.js → alert-34A3K8y-.js} +79 -69
  2. package/dist/_chunks/{audio-recorder-BdBbU-UK.js → audio-recorder-B60FLnUO.js} +2 -2
  3. package/dist/_chunks/{freemium-paywall-CrVefV0M.js → freemium-paywall-BA02zIOx.js} +2 -2
  4. package/dist/_chunks/{payment-form-B_BdHwjb.js → payment-form-BIk2K3i3.js} +2 -2
  5. package/dist/_chunks/{pdf-viewer-CZIfY08H.js → pdf-viewer-DuPrR5Ty.js} +2 -2
  6. package/dist/_chunks/use-locale-C5rS3Xon.js +71 -0
  7. package/dist/_chunks/{warning-stack-VygGHSqC.js → warning-stack-CskQPAQ2.js} +2 -2
  8. package/dist/_chunks/{workflow-map-Bi5liGzo.js → workflow-map-D6Vsc2nY.js} +2 -2
  9. package/dist/agent-catalog.json +1 -1
  10. package/dist/components/alert/index.js +1 -1
  11. package/dist/components/audio-recorder/index.js +1 -1
  12. package/dist/components/freemium-paywall/index.js +1 -1
  13. package/dist/components/index.d.ts +2 -2
  14. package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
  15. package/dist/components/payment-form/index.js +1 -1
  16. package/dist/components/pdf-viewer/index.js +1 -1
  17. package/dist/components/sheet/sheet.d.ts +1 -1
  18. package/dist/components/stat/stat.d.ts +1 -1
  19. package/dist/components/theme-toggle/theme-toggle.d.ts +1 -1
  20. package/dist/components/warning-stack/index.js +1 -1
  21. package/dist/components/workflow/index.js +1 -1
  22. package/dist/hooks/index.d.ts +2 -0
  23. package/dist/hooks/index.js +8 -7
  24. package/dist/hooks/use-scroll-to-first-error.d.ts +64 -0
  25. package/dist/index.js +474 -473
  26. package/dist/tokens.css +1 -1
  27. package/package.json +1 -1
  28. package/dist/_chunks/use-locale-BuXR_Zl9.js +0 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "0.6.1",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",
@@ -1,32 +0,0 @@
1
- import { useState as c, useEffect as s, useCallback as u } from "react";
2
- import "../i18n/config.js";
3
- import a from "i18next";
4
- function l(n) {
5
- const [o, i] = c(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(n).matches);
6
- return s(() => {
7
- if (typeof window > "u" || typeof window.matchMedia != "function")
8
- return;
9
- const t = window.matchMedia(n);
10
- i(t.matches);
11
- const e = (r) => i(r.matches);
12
- return typeof t.addEventListener == "function" ? (t.addEventListener("change", e), () => t.removeEventListener("change", e)) : (t.addListener(e), () => t.removeListener(e));
13
- }, [n]), o;
14
- }
15
- function h() {
16
- const [n, o] = c(() => a.language);
17
- s(() => {
18
- const e = (r) => o(r);
19
- return a.on("languageChanged", e), a.language !== n && o(a.language), () => {
20
- a.off("languageChanged", e);
21
- };
22
- }, [n]);
23
- const i = u(async (e) => {
24
- await a.changeLanguage(e);
25
- }, []), t = a.dir(n) === "rtl" ? "rtl" : "ltr";
26
- return { locale: n, dir: t, setLocale: i };
27
- }
28
- export {
29
- l as a,
30
- h as u
31
- };
32
- //# sourceMappingURL=use-locale-BuXR_Zl9.js.map