@alfadocs/ui-kit 0.52.0 → 0.53.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 (80) hide show
  1. package/dist/_chunks/{otp-input-CMphfBxZ.js → otp-input-Chb9r5vf.js} +89 -87
  2. package/dist/_chunks/{public-header.agent-BY6FH71R.js → public-header.agent-DyVpPwmv.js} +72 -62
  3. package/dist/_chunks/{sign-document-Bzld9jVM.js → sign-document-BzHTjMVC.js} +2 -2
  4. package/dist/_chunks/{signature-capture-CpMBhqQ9.js → signature-capture-CHbrKoA_.js} +163 -152
  5. package/dist/_chunks/signature-field-DhscKdgk.js +152 -0
  6. package/dist/_chunks/use-signing-session-C5evzYmo.js +108 -0
  7. package/dist/agent-catalog.json +1 -1
  8. package/dist/components/index.d.ts +3 -2
  9. package/dist/components/otp-input/index.js +1 -1
  10. package/dist/components/otp-input/otp-input.d.ts +6 -0
  11. package/dist/components/pdf-viewer/index.d.ts +1 -1
  12. package/dist/components/public-header/index.js +1 -1
  13. package/dist/components/public-header/public-header.d.ts +1 -1
  14. package/dist/components/sign-document/index.js +1 -1
  15. package/dist/components/signature-capture/index.js +1 -1
  16. package/dist/components/signature-capture/signature-capture.d.ts +7 -0
  17. package/dist/components/signature-field/index.d.ts +3 -0
  18. package/dist/components/signature-field/index.js +6 -0
  19. package/dist/components/signature-field/signature-field.d.ts +35 -0
  20. package/dist/hooks/index.d.ts +1 -0
  21. package/dist/hooks/index.js +42 -41
  22. package/dist/hooks/use-signing-session.d.ts +36 -0
  23. package/dist/i18n/locales/ar.d.ts +8 -0
  24. package/dist/i18n/locales/ar.js +8 -0
  25. package/dist/i18n/locales/de.d.ts +8 -0
  26. package/dist/i18n/locales/de.js +8 -0
  27. package/dist/i18n/locales/el.d.ts +8 -0
  28. package/dist/i18n/locales/el.js +8 -0
  29. package/dist/i18n/locales/en.d.ts +8 -0
  30. package/dist/i18n/locales/en.js +8 -0
  31. package/dist/i18n/locales/es.d.ts +8 -0
  32. package/dist/i18n/locales/es.js +8 -0
  33. package/dist/i18n/locales/fr.d.ts +8 -0
  34. package/dist/i18n/locales/fr.js +8 -0
  35. package/dist/i18n/locales/hi.d.ts +8 -0
  36. package/dist/i18n/locales/hi.js +8 -0
  37. package/dist/i18n/locales/it.d.ts +8 -0
  38. package/dist/i18n/locales/it.js +8 -0
  39. package/dist/i18n/locales/ja.d.ts +8 -0
  40. package/dist/i18n/locales/ja.js +8 -0
  41. package/dist/i18n/locales/nl.d.ts +8 -0
  42. package/dist/i18n/locales/nl.js +8 -0
  43. package/dist/i18n/locales/pl.d.ts +8 -0
  44. package/dist/i18n/locales/pl.js +8 -0
  45. package/dist/i18n/locales/pt.d.ts +8 -0
  46. package/dist/i18n/locales/pt.js +8 -0
  47. package/dist/i18n/locales/ro.d.ts +8 -0
  48. package/dist/i18n/locales/ro.js +8 -0
  49. package/dist/i18n/locales/ru.d.ts +8 -0
  50. package/dist/i18n/locales/ru.js +8 -0
  51. package/dist/i18n/locales/sq.d.ts +8 -0
  52. package/dist/i18n/locales/sq.js +8 -0
  53. package/dist/i18n/locales/sv.d.ts +8 -0
  54. package/dist/i18n/locales/sv.js +8 -0
  55. package/dist/i18n/locales/tr.d.ts +8 -0
  56. package/dist/i18n/locales/tr.js +8 -0
  57. package/dist/i18n/locales/zh.d.ts +8 -0
  58. package/dist/i18n/locales/zh.js +8 -0
  59. package/dist/index.js +701 -697
  60. package/dist/locales/ar.json +8 -0
  61. package/dist/locales/de.json +8 -0
  62. package/dist/locales/el.json +8 -0
  63. package/dist/locales/en.json +8 -0
  64. package/dist/locales/es.json +8 -0
  65. package/dist/locales/fr.json +8 -0
  66. package/dist/locales/hi.json +8 -0
  67. package/dist/locales/it.json +8 -0
  68. package/dist/locales/ja.json +8 -0
  69. package/dist/locales/nl.json +8 -0
  70. package/dist/locales/pl.json +8 -0
  71. package/dist/locales/pt.json +8 -0
  72. package/dist/locales/ro.json +8 -0
  73. package/dist/locales/ru.json +8 -0
  74. package/dist/locales/sq.json +8 -0
  75. package/dist/locales/sv.json +8 -0
  76. package/dist/locales/tr.json +8 -0
  77. package/dist/locales/zh.json +8 -0
  78. package/dist/tokens.css +1 -1
  79. package/package.json +5 -1
  80. package/dist/_chunks/use-scroll-to-first-error-4Za-u5Nw.js +0 -43
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
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",
@@ -491,6 +491,10 @@
491
491
  "types": "./dist/components/signature-capture/index.d.ts",
492
492
  "import": "./dist/components/signature-capture/index.js"
493
493
  },
494
+ "./signature-field": {
495
+ "types": "./dist/components/signature-field/index.d.ts",
496
+ "import": "./dist/components/signature-field/index.js"
497
+ },
494
498
  "./skeleton": {
495
499
  "types": "./dist/components/skeleton/index.d.ts",
496
500
  "import": "./dist/components/skeleton/index.js"
@@ -1,43 +0,0 @@
1
- import { useRef as m, useEffect as S } from "react";
2
- function p(e) {
3
- return e != null && e.current ? e.current : typeof document > "u" ? null : document;
4
- }
5
- function w(e, u) {
6
- const n = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : (
7
- // SSR / jsdom fallback — drop every character that's
8
- // significant in a CSS attribute selector. Conservative but
9
- // robust enough for the test environment.
10
- e.replace(/["'\\[\]]/g, "")
11
- ), c = `[data-error-anchor="${n}"], [name="${n}"], [name$="[${n}]"]`, t = Array.from(u.querySelectorAll(c));
12
- return t.length === 0 ? null : t.find((i) => i.offsetParent !== null) ?? t[0];
13
- }
14
- function y(e, u, n = {}) {
15
- const {
16
- scope: c,
17
- scrollOptions: t = { behavior: "smooth", block: "center" },
18
- focus: s = !0,
19
- skipInitialMount: i = !0
20
- } = n, a = m(!1), o = m(null), r = u.find((l) => !!e[l]) ?? null;
21
- S(() => {
22
- if (i && !a.current) {
23
- a.current = !0, o.current = r;
24
- return;
25
- }
26
- if (!r) {
27
- o.current = null;
28
- return;
29
- }
30
- if (r === o.current || typeof window > "u") return;
31
- const l = window.requestAnimationFrame(() => {
32
- const d = p(c);
33
- if (!d) return;
34
- const f = w(r, d);
35
- f && (f.scrollIntoView(t), s && f.focus({ preventScroll: !0 }), o.current = r);
36
- });
37
- return () => window.cancelAnimationFrame(l);
38
- }, [r]);
39
- }
40
- export {
41
- y as u
42
- };
43
- //# sourceMappingURL=use-scroll-to-first-error-4Za-u5Nw.js.map