@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.
- package/dist/_chunks/{otp-input-CMphfBxZ.js → otp-input-Chb9r5vf.js} +89 -87
- package/dist/_chunks/{public-header.agent-BY6FH71R.js → public-header.agent-DyVpPwmv.js} +72 -62
- package/dist/_chunks/{sign-document-Bzld9jVM.js → sign-document-BzHTjMVC.js} +2 -2
- package/dist/_chunks/{signature-capture-CpMBhqQ9.js → signature-capture-CHbrKoA_.js} +163 -152
- package/dist/_chunks/signature-field-DhscKdgk.js +152 -0
- package/dist/_chunks/use-signing-session-C5evzYmo.js +108 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/index.d.ts +3 -2
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +6 -0
- package/dist/components/pdf-viewer/index.d.ts +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-capture/signature-capture.d.ts +7 -0
- package/dist/components/signature-field/index.d.ts +3 -0
- package/dist/components/signature-field/index.js +6 -0
- package/dist/components/signature-field/signature-field.d.ts +35 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +42 -41
- package/dist/hooks/use-signing-session.d.ts +36 -0
- package/dist/i18n/locales/ar.d.ts +8 -0
- package/dist/i18n/locales/ar.js +8 -0
- package/dist/i18n/locales/de.d.ts +8 -0
- package/dist/i18n/locales/de.js +8 -0
- package/dist/i18n/locales/el.d.ts +8 -0
- package/dist/i18n/locales/el.js +8 -0
- package/dist/i18n/locales/en.d.ts +8 -0
- package/dist/i18n/locales/en.js +8 -0
- package/dist/i18n/locales/es.d.ts +8 -0
- package/dist/i18n/locales/es.js +8 -0
- package/dist/i18n/locales/fr.d.ts +8 -0
- package/dist/i18n/locales/fr.js +8 -0
- package/dist/i18n/locales/hi.d.ts +8 -0
- package/dist/i18n/locales/hi.js +8 -0
- package/dist/i18n/locales/it.d.ts +8 -0
- package/dist/i18n/locales/it.js +8 -0
- package/dist/i18n/locales/ja.d.ts +8 -0
- package/dist/i18n/locales/ja.js +8 -0
- package/dist/i18n/locales/nl.d.ts +8 -0
- package/dist/i18n/locales/nl.js +8 -0
- package/dist/i18n/locales/pl.d.ts +8 -0
- package/dist/i18n/locales/pl.js +8 -0
- package/dist/i18n/locales/pt.d.ts +8 -0
- package/dist/i18n/locales/pt.js +8 -0
- package/dist/i18n/locales/ro.d.ts +8 -0
- package/dist/i18n/locales/ro.js +8 -0
- package/dist/i18n/locales/ru.d.ts +8 -0
- package/dist/i18n/locales/ru.js +8 -0
- package/dist/i18n/locales/sq.d.ts +8 -0
- package/dist/i18n/locales/sq.js +8 -0
- package/dist/i18n/locales/sv.d.ts +8 -0
- package/dist/i18n/locales/sv.js +8 -0
- package/dist/i18n/locales/tr.d.ts +8 -0
- package/dist/i18n/locales/tr.js +8 -0
- package/dist/i18n/locales/zh.d.ts +8 -0
- package/dist/i18n/locales/zh.js +8 -0
- package/dist/index.js +701 -697
- package/dist/locales/ar.json +8 -0
- package/dist/locales/de.json +8 -0
- package/dist/locales/el.json +8 -0
- package/dist/locales/en.json +8 -0
- package/dist/locales/es.json +8 -0
- package/dist/locales/fr.json +8 -0
- package/dist/locales/hi.json +8 -0
- package/dist/locales/it.json +8 -0
- package/dist/locales/ja.json +8 -0
- package/dist/locales/nl.json +8 -0
- package/dist/locales/pl.json +8 -0
- package/dist/locales/pt.json +8 -0
- package/dist/locales/ro.json +8 -0
- package/dist/locales/ru.json +8 -0
- package/dist/locales/sq.json +8 -0
- package/dist/locales/sv.json +8 -0
- package/dist/locales/tr.json +8 -0
- package/dist/locales/zh.json +8 -0
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- 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.
|
|
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
|