@alfadocs/ui-kit 1.112.1 → 1.113.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/{ai-prompt-input-CG9BEggs.js → ai-prompt-input-JIPbrTF3.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BrTx7diS.js → anamnesis-summary-rows-DfDulR_c.js} +3 -3
- package/dist/_chunks/{audio-recorder-BlDozxdU.js → audio-recorder-CsnM_WDy.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-wJ6cTD_h.js → balance-badge-cell-BAZynD--.js} +4 -4
- package/dist/_chunks/{bishop-score-BhMomGcX.js → bishop-score-CnIft4eV.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-Oc3Df8O3.js → calendar-appointment-editor-dialog-CaZm5wGR.js} +5 -5
- package/dist/_chunks/{data-table-zXBxFYpJ.js → data-table-C9idMvs0.js} +2 -2
- package/dist/_chunks/{document-preview-BalyZqnn.js → document-preview-5xs64jME.js} +2 -2
- package/dist/_chunks/email-input-DxwbREpx.js +156 -0
- package/dist/_chunks/{file-manager-CVxBE4yy.js → file-manager-LG7B_UHB.js} +2 -2
- package/dist/_chunks/{forgot-password-form-vfCO2-Tt.js → forgot-password-form-YQVzSskq.js} +8 -7
- package/dist/_chunks/{gestational-age-calculator-AnaH00nk.js → gestational-age-calculator-Dv3IePb-.js} +2 -2
- package/dist/_chunks/{heatmap-D4qqpCEj.js → heatmap-BiwC7Gdx.js} +2 -2
- package/dist/_chunks/isEmail-BfVspSvV.js +248 -0
- package/dist/_chunks/{kit-extensions-VaJ-u44J.js → kit-extensions-BOsUgWnE.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-C8vfCOEp.js → link-cell-renderer-_Fv3WEmb.js} +2 -2
- package/dist/_chunks/{login-dev-card-Cz1Clugq.js → login-dev-card-B6-zCFq3.js} +47 -46
- package/dist/_chunks/{muscle-scheme-1BZd1-RE.js → muscle-scheme-BkmDUTmk.js} +2 -2
- package/dist/_chunks/{optical-prescription-BGVeDVSP.js → optical-prescription-CvbN8yD2.js} +2 -2
- package/dist/_chunks/{patient-details-wMgTFtpp.js → patient-details-RsT3SaYh.js} +2 -2
- package/dist/_chunks/{patient-field-row-Bhm2Ig1P.js → patient-field-row-D9rb-QJH.js} +3 -3
- package/dist/_chunks/{patient-summary-card-DMdPPG3n.js → patient-summary-card-BjZErlbt.js} +2 -2
- package/dist/_chunks/{practice-results-BOpaPaav.js → practice-results-BByRCIuR.js} +620 -566
- package/dist/_chunks/{pregnancy-dating-D6dLkMpl.js → pregnancy-dating-Cs8xpZA8.js} +2 -2
- package/dist/_chunks/{registration-form-CEJRUS9G.js → registration-form-Cq5_OSIL.js} +8 -7
- package/dist/_chunks/{reserved.agent-C-C9cvO5.js → reserved.agent-BMkapgom.js} +3 -3
- package/dist/_chunks/{reset-password-form-B0acanDD.js → reset-password-form-BVsL2fOJ.js} +2 -2
- package/dist/_chunks/{select-BBDRYxJl.js → select-uESzXTX6.js} +42 -39
- package/dist/_chunks/{send-registration-link-form-Nn0jf65G.js → send-registration-link-form-OgPomrZN.js} +8 -7
- package/dist/_chunks/{signature-request-DJwdPji_.js → signature-request-BnTihryS.js} +2 -2
- package/dist/_chunks/{tabs-DYHgRVSJ.js → tabs-CXYjr_8O.js} +2 -2
- package/dist/_chunks/{task-editor-jqRf2JP6.js → task-editor-gqWF1jI6.js} +2 -2
- package/dist/_chunks/{tasks-panel-CFo5uIHx.js → tasks-panel-OuIaydK5.js} +2 -2
- package/dist/_chunks/{unit-converter-C95sa5y8.js → unit-converter-D77vmlzN.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-VI26Z-pc.js → use-appointment-details-read-DvK7Looa.js} +2 -2
- package/dist/_chunks/verify-identity-types-C85EXNzy.js +707 -0
- package/dist/_chunks/{voice-control-panel-B0TUZAiP.js → voice-control-panel-BGiX4sqB.js} +2 -2
- package/dist/agent-catalog.json +106 -2
- package/dist/agent-i18n/en.json +11 -0
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +28 -0
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/i18n/locales/ar.d.ts +67 -0
- package/dist/i18n/locales/ar.js +68 -1
- package/dist/i18n/locales/de.d.ts +67 -0
- package/dist/i18n/locales/de.js +68 -1
- package/dist/i18n/locales/el.d.ts +67 -0
- package/dist/i18n/locales/el.js +68 -1
- package/dist/i18n/locales/en.d.ts +67 -0
- package/dist/i18n/locales/en.js +67 -0
- package/dist/i18n/locales/es.d.ts +67 -0
- package/dist/i18n/locales/es.js +68 -1
- package/dist/i18n/locales/fr.d.ts +67 -0
- package/dist/i18n/locales/fr.js +68 -1
- package/dist/i18n/locales/hi.d.ts +67 -0
- package/dist/i18n/locales/hi.js +68 -1
- package/dist/i18n/locales/it.d.ts +67 -0
- package/dist/i18n/locales/it.js +68 -1
- package/dist/i18n/locales/ja.d.ts +67 -0
- package/dist/i18n/locales/ja.js +68 -1
- package/dist/i18n/locales/nl.d.ts +67 -0
- package/dist/i18n/locales/nl.js +68 -1
- package/dist/i18n/locales/pl.d.ts +67 -0
- package/dist/i18n/locales/pl.js +68 -1
- package/dist/i18n/locales/pt.d.ts +67 -0
- package/dist/i18n/locales/pt.js +68 -1
- package/dist/i18n/locales/ro.d.ts +67 -0
- package/dist/i18n/locales/ro.js +68 -1
- package/dist/i18n/locales/ru.d.ts +67 -0
- package/dist/i18n/locales/ru.js +68 -1
- package/dist/i18n/locales/sq.d.ts +67 -0
- package/dist/i18n/locales/sq.js +68 -1
- package/dist/i18n/locales/sv.d.ts +67 -0
- package/dist/i18n/locales/sv.js +68 -1
- package/dist/i18n/locales/tr.d.ts +67 -0
- package/dist/i18n/locales/tr.js +68 -1
- package/dist/i18n/locales/zh.d.ts +67 -0
- package/dist/i18n/locales/zh.js +68 -1
- package/dist/index.js +352 -347
- package/dist/locales/ar.json +68 -1
- package/dist/locales/de.json +68 -1
- package/dist/locales/el.json +68 -1
- package/dist/locales/en.json +67 -0
- package/dist/locales/es.json +68 -1
- package/dist/locales/fr.json +68 -1
- package/dist/locales/hi.json +68 -1
- package/dist/locales/it.json +68 -1
- package/dist/locales/ja.json +68 -1
- package/dist/locales/nl.json +68 -1
- package/dist/locales/pl.json +68 -1
- package/dist/locales/pt.json +68 -1
- package/dist/locales/ro.json +68 -1
- package/dist/locales/ru.json +68 -1
- package/dist/locales/sq.json +68 -1
- package/dist/locales/sv.json +68 -1
- package/dist/locales/tr.json +68 -1
- package/dist/locales/zh.json +68 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/verify-identity/change-email-dialog.d.ts +26 -0
- package/dist/patterns/verify-identity/index.d.ts +7 -0
- package/dist/patterns/verify-identity/index.js +8 -0
- package/dist/patterns/verify-identity/use-countdown.d.ts +12 -0
- package/dist/patterns/verify-identity/verify-identity-steps.d.ts +21 -0
- package/dist/patterns/verify-identity/verify-identity-types.d.ts +47 -0
- package/dist/patterns/verify-identity/verify-identity.d.ts +54 -0
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/email-input-BEO3vonE.js +0 -399
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.113.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",
|
|
@@ -936,6 +936,10 @@
|
|
|
936
936
|
"types": "./dist/patterns/signed-out-frame/index.d.ts",
|
|
937
937
|
"import": "./dist/patterns/signed-out-frame/index.js"
|
|
938
938
|
},
|
|
939
|
+
"./patterns/verify-identity": {
|
|
940
|
+
"types": "./dist/patterns/verify-identity/index.d.ts",
|
|
941
|
+
"import": "./dist/patterns/verify-identity/index.js"
|
|
942
|
+
},
|
|
939
943
|
"./patterns/workflow-webhook-action": {
|
|
940
944
|
"types": "./dist/patterns/workflow-webhook-action/index.d.ts",
|
|
941
945
|
"import": "./dist/patterns/workflow-webhook-action/index.js"
|
|
@@ -1,399 +0,0 @@
|
|
|
1
|
-
import { jsxs as W, jsx as C } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as se, useRef as K, useId as oe, useState as X, useMemo as Q, useEffect as fe, useCallback as Z } from "react";
|
|
3
|
-
import { useTranslation as ce } from "react-i18next";
|
|
4
|
-
import { g as de } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
5
|
-
import { T as me } from "./text-input-B6iAgCr3.js";
|
|
6
|
-
import { u as pe } from "./form-field-context-DtiROUJV.js";
|
|
7
|
-
import { c as ve } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
-
import { u as _e } from "./registry-DvAUVLHh.js";
|
|
9
|
-
import { C as ge } from "./circle-alert-rGDZ73Wh.js";
|
|
10
|
-
var k = { exports: {} }, N = { exports: {} }, G;
|
|
11
|
-
function H() {
|
|
12
|
-
return G || (G = 1, (function(l, t) {
|
|
13
|
-
Object.defineProperty(t, "__esModule", {
|
|
14
|
-
value: !0
|
|
15
|
-
}), t.default = f;
|
|
16
|
-
function f(o) {
|
|
17
|
-
if (o == null) throw new TypeError("Expected a string but received a ".concat(o));
|
|
18
|
-
if (o.constructor.name !== "String") throw new TypeError("Expected a string but received a ".concat(o.constructor.name));
|
|
19
|
-
}
|
|
20
|
-
l.exports = t.default, l.exports.default = t.default;
|
|
21
|
-
})(N, N.exports)), N.exports;
|
|
22
|
-
}
|
|
23
|
-
var O = { exports: {} }, J;
|
|
24
|
-
function xe() {
|
|
25
|
-
return J || (J = 1, (function(l, t) {
|
|
26
|
-
Object.defineProperty(t, "__esModule", {
|
|
27
|
-
value: !0
|
|
28
|
-
}), t.default = o;
|
|
29
|
-
function f(n) {
|
|
30
|
-
return Object.prototype.toString.call(n) === "[object RegExp]";
|
|
31
|
-
}
|
|
32
|
-
function o(n, u) {
|
|
33
|
-
for (var a = 0; a < u.length; a++) {
|
|
34
|
-
var r = u[a];
|
|
35
|
-
if (n === r || f(r) && r.test(n))
|
|
36
|
-
return !0;
|
|
37
|
-
}
|
|
38
|
-
return !1;
|
|
39
|
-
}
|
|
40
|
-
l.exports = t.default, l.exports.default = t.default;
|
|
41
|
-
})(O, O.exports)), O.exports;
|
|
42
|
-
}
|
|
43
|
-
var T = { exports: {} }, Y;
|
|
44
|
-
function he() {
|
|
45
|
-
return Y || (Y = 1, (function(l, t) {
|
|
46
|
-
Object.defineProperty(t, "__esModule", {
|
|
47
|
-
value: !0
|
|
48
|
-
}), t.default = u;
|
|
49
|
-
var f = o(/* @__PURE__ */ H());
|
|
50
|
-
function o(a) {
|
|
51
|
-
return a && a.__esModule ? a : { default: a };
|
|
52
|
-
}
|
|
53
|
-
function n(a) {
|
|
54
|
-
"@babel/helpers - typeof";
|
|
55
|
-
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
56
|
-
return typeof r;
|
|
57
|
-
} : function(r) {
|
|
58
|
-
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
59
|
-
}, n(a);
|
|
60
|
-
}
|
|
61
|
-
function u(a, r) {
|
|
62
|
-
(0, f.default)(a);
|
|
63
|
-
var e, m;
|
|
64
|
-
n(r) === "object" ? (e = r.min || 0, m = r.max) : (e = arguments[1], m = arguments[2]);
|
|
65
|
-
var v = encodeURI(a).split(/%..|./).length - 1;
|
|
66
|
-
return v >= e && (typeof m > "u" || v <= m);
|
|
67
|
-
}
|
|
68
|
-
l.exports = t.default, l.exports.default = t.default;
|
|
69
|
-
})(T, T.exports)), T.exports;
|
|
70
|
-
}
|
|
71
|
-
var z = { exports: {} }, L = { exports: {} }, $;
|
|
72
|
-
function ae() {
|
|
73
|
-
return $ || ($ = 1, (function(l, t) {
|
|
74
|
-
Object.defineProperty(t, "__esModule", {
|
|
75
|
-
value: !0
|
|
76
|
-
}), t.default = o;
|
|
77
|
-
function f(n) {
|
|
78
|
-
"@babel/helpers - typeof";
|
|
79
|
-
return f = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {
|
|
80
|
-
return typeof u;
|
|
81
|
-
} : function(u) {
|
|
82
|
-
return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
|
|
83
|
-
}, f(n);
|
|
84
|
-
}
|
|
85
|
-
function o() {
|
|
86
|
-
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = arguments.length > 1 ? arguments[1] : void 0;
|
|
87
|
-
(f(n) !== "object" || n === null) && (n = {});
|
|
88
|
-
for (var a in u)
|
|
89
|
-
typeof n[a] > "u" && (n[a] = u[a]);
|
|
90
|
-
return n;
|
|
91
|
-
}
|
|
92
|
-
l.exports = t.default, l.exports.default = t.default;
|
|
93
|
-
})(L, L.exports)), L.exports;
|
|
94
|
-
}
|
|
95
|
-
var ee;
|
|
96
|
-
function ye() {
|
|
97
|
-
return ee || (ee = 1, (function(l, t) {
|
|
98
|
-
Object.defineProperty(t, "__esModule", {
|
|
99
|
-
value: !0
|
|
100
|
-
}), t.default = a;
|
|
101
|
-
var f = n(/* @__PURE__ */ H()), o = n(/* @__PURE__ */ ae());
|
|
102
|
-
function n(r) {
|
|
103
|
-
return r && r.__esModule ? r : { default: r };
|
|
104
|
-
}
|
|
105
|
-
var u = {
|
|
106
|
-
require_tld: !0,
|
|
107
|
-
allow_underscores: !1,
|
|
108
|
-
allow_trailing_dot: !1,
|
|
109
|
-
allow_numeric_tld: !1,
|
|
110
|
-
allow_wildcard: !1,
|
|
111
|
-
ignore_max_length: !1
|
|
112
|
-
};
|
|
113
|
-
function a(r, e) {
|
|
114
|
-
(0, f.default)(r), e = (0, o.default)(e, u), e.allow_trailing_dot && r[r.length - 1] === "." && (r = r.substring(0, r.length - 1)), e.allow_wildcard === !0 && r.indexOf("*.") === 0 && (r = r.substring(2));
|
|
115
|
-
var m = r.split("."), v = m[m.length - 1];
|
|
116
|
-
return e.require_tld && (m.length < 2 || !e.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(v) || /\s/.test(v)) || !e.allow_numeric_tld && /^\d+$/.test(v) ? !1 : m.every(function(s) {
|
|
117
|
-
return !(s.length > 63 && !e.ignore_max_length || !/^[a-z_\u00a1-\uffff0-9-]+$/i.test(s) || /[\uff01-\uff5e]/.test(s) || /^-|-$/.test(s) || !e.allow_underscores && /_/.test(s));
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
l.exports = t.default, l.exports.default = t.default;
|
|
121
|
-
})(z, z.exports)), z.exports;
|
|
122
|
-
}
|
|
123
|
-
var U = { exports: {} }, te;
|
|
124
|
-
function be() {
|
|
125
|
-
return te || (te = 1, (function(l, t) {
|
|
126
|
-
Object.defineProperty(t, "__esModule", {
|
|
127
|
-
value: !0
|
|
128
|
-
}), t.default = v;
|
|
129
|
-
var f = o(/* @__PURE__ */ H());
|
|
130
|
-
function o(s) {
|
|
131
|
-
return s && s.__esModule ? s : { default: s };
|
|
132
|
-
}
|
|
133
|
-
function n(s) {
|
|
134
|
-
"@babel/helpers - typeof";
|
|
135
|
-
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(_) {
|
|
136
|
-
return typeof _;
|
|
137
|
-
} : function(_) {
|
|
138
|
-
return _ && typeof Symbol == "function" && _.constructor === Symbol && _ !== Symbol.prototype ? "symbol" : typeof _;
|
|
139
|
-
}, n(s);
|
|
140
|
-
}
|
|
141
|
-
var u = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", a = "(".concat(u, "[.]){3}").concat(u), r = new RegExp("^".concat(a, "$")), e = "(?:[0-9a-fA-F]{1,4})", m = new RegExp("^(" + "(?:".concat(e, ":){7}(?:").concat(e, "|:)|") + "(?:".concat(e, ":){6}(?:").concat(a, "|:").concat(e, "|:)|") + "(?:".concat(e, ":){5}(?::").concat(a, "|(:").concat(e, "){1,2}|:)|") + "(?:".concat(e, ":){4}(?:(:").concat(e, "){0,1}:").concat(a, "|(:").concat(e, "){1,3}|:)|") + "(?:".concat(e, ":){3}(?:(:").concat(e, "){0,2}:").concat(a, "|(:").concat(e, "){1,4}|:)|") + "(?:".concat(e, ":){2}(?:(:").concat(e, "){0,3}:").concat(a, "|(:").concat(e, "){1,5}|:)|") + "(?:".concat(e, ":){1}(?:(:").concat(e, "){0,4}:").concat(a, "|(:").concat(e, "){1,6}|:)|") + "(?::((?::".concat(e, "){0,5}:").concat(a, "|(?::").concat(e, "){1,7}|:))") + ")(%[0-9a-zA-Z.]{1,})?$");
|
|
142
|
-
function v(s) {
|
|
143
|
-
var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
144
|
-
(0, f.default)(s);
|
|
145
|
-
var b = (n(_) === "object" ? _.version : arguments[1]) || "";
|
|
146
|
-
return b ? b.toString() === "4" ? r.test(s) : b.toString() === "6" ? m.test(s) : !1 : v(s, {
|
|
147
|
-
version: 4
|
|
148
|
-
}) || v(s, {
|
|
149
|
-
version: 6
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
l.exports = t.default, l.exports.default = t.default;
|
|
153
|
-
})(U, U.exports)), U.exports;
|
|
154
|
-
}
|
|
155
|
-
var re;
|
|
156
|
-
function Fe() {
|
|
157
|
-
return re || (re = 1, (function(l, t) {
|
|
158
|
-
Object.defineProperty(t, "__esModule", {
|
|
159
|
-
value: !0
|
|
160
|
-
}), t.default = F;
|
|
161
|
-
var f = e(/* @__PURE__ */ H()), o = e(/* @__PURE__ */ xe()), n = e(/* @__PURE__ */ he()), u = e(/* @__PURE__ */ ye()), a = e(/* @__PURE__ */ be()), r = e(/* @__PURE__ */ ae());
|
|
162
|
-
function e(p) {
|
|
163
|
-
return p && p.__esModule ? p : { default: p };
|
|
164
|
-
}
|
|
165
|
-
var m = {
|
|
166
|
-
allow_display_name: !1,
|
|
167
|
-
allow_underscores: !1,
|
|
168
|
-
require_display_name: !1,
|
|
169
|
-
allow_utf8_local_part: !0,
|
|
170
|
-
require_tld: !0,
|
|
171
|
-
blacklisted_chars: "",
|
|
172
|
-
ignore_max_length: !1,
|
|
173
|
-
host_blacklist: [],
|
|
174
|
-
host_whitelist: []
|
|
175
|
-
}, v = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i, s = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i, _ = /^[a-z\d]+$/, b = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i, I = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i, S = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i, V = 254;
|
|
176
|
-
function q(p) {
|
|
177
|
-
var i = p.replace(/^"(.+)"$/, "$1");
|
|
178
|
-
if (!i.trim())
|
|
179
|
-
return !1;
|
|
180
|
-
var g = /[\.";<>]/.test(i);
|
|
181
|
-
if (g) {
|
|
182
|
-
if (i === p)
|
|
183
|
-
return !1;
|
|
184
|
-
var x = i.split('"').length === i.split('\\"').length;
|
|
185
|
-
if (!x)
|
|
186
|
-
return !1;
|
|
187
|
-
}
|
|
188
|
-
return !0;
|
|
189
|
-
}
|
|
190
|
-
function F(p, i) {
|
|
191
|
-
if ((0, f.default)(p), i = (0, r.default)(i, m), i.require_display_name || i.allow_display_name) {
|
|
192
|
-
var g = p.match(v);
|
|
193
|
-
if (g) {
|
|
194
|
-
var x = g[1];
|
|
195
|
-
if (p = p.replace(x, "").replace(/(^<|>$)/g, ""), x.endsWith(" ") && (x = x.slice(0, -1)), !q(x))
|
|
196
|
-
return !1;
|
|
197
|
-
} else if (i.require_display_name)
|
|
198
|
-
return !1;
|
|
199
|
-
}
|
|
200
|
-
if (!i.ignore_max_length && p.length > V)
|
|
201
|
-
return !1;
|
|
202
|
-
var D = p.split("@"), h = D.pop(), w = h.toLowerCase();
|
|
203
|
-
if (i.host_blacklist.length > 0 && (0, o.default)(w, i.host_blacklist) || i.host_whitelist.length > 0 && !(0, o.default)(w, i.host_whitelist))
|
|
204
|
-
return !1;
|
|
205
|
-
var c = D.join("@");
|
|
206
|
-
if (i.domain_specific_validation && (w === "gmail.com" || w === "googlemail.com")) {
|
|
207
|
-
c = c.toLowerCase();
|
|
208
|
-
var P = c.split("+")[0];
|
|
209
|
-
if (!(0, n.default)(P.replace(/\./g, ""), {
|
|
210
|
-
min: 6,
|
|
211
|
-
max: 30
|
|
212
|
-
}))
|
|
213
|
-
return !1;
|
|
214
|
-
for (var j = P.split("."), R = 0; R < j.length; R++)
|
|
215
|
-
if (!_.test(j[R]))
|
|
216
|
-
return !1;
|
|
217
|
-
}
|
|
218
|
-
if (i.ignore_max_length === !1 && (!(0, n.default)(c, {
|
|
219
|
-
max: 64
|
|
220
|
-
}) || !(0, n.default)(h, {
|
|
221
|
-
max: 254
|
|
222
|
-
})))
|
|
223
|
-
return !1;
|
|
224
|
-
if (!(0, u.default)(h, {
|
|
225
|
-
require_tld: i.require_tld,
|
|
226
|
-
ignore_max_length: i.ignore_max_length,
|
|
227
|
-
allow_underscores: i.allow_underscores
|
|
228
|
-
})) {
|
|
229
|
-
if (!i.allow_ip_domain)
|
|
230
|
-
return !1;
|
|
231
|
-
if (!(0, a.default)(h)) {
|
|
232
|
-
if (!h.startsWith("[") || !h.endsWith("]"))
|
|
233
|
-
return !1;
|
|
234
|
-
var y = h.slice(1, -1);
|
|
235
|
-
if (y.length === 0 || !(0, a.default)(y))
|
|
236
|
-
return !1;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
if (i.blacklisted_chars && c.search(new RegExp("[".concat(i.blacklisted_chars, "]+"), "g")) !== -1)
|
|
240
|
-
return !1;
|
|
241
|
-
if (c[0] === '"' && c[c.length - 1] === '"')
|
|
242
|
-
return c = c.slice(1, c.length - 1), i.allow_utf8_local_part ? S.test(c) : b.test(c);
|
|
243
|
-
for (var M = i.allow_utf8_local_part ? I : s, A = c.split("."), E = 0; E < A.length; E++)
|
|
244
|
-
if (!M.test(A[E]))
|
|
245
|
-
return !1;
|
|
246
|
-
return !0;
|
|
247
|
-
}
|
|
248
|
-
l.exports = t.default, l.exports.default = t.default;
|
|
249
|
-
})(k, k.exports)), k.exports;
|
|
250
|
-
}
|
|
251
|
-
var we = /* @__PURE__ */ Fe();
|
|
252
|
-
const ne = /* @__PURE__ */ de(we), Ee = {
|
|
253
|
-
id: "email-input",
|
|
254
|
-
capabilities: [],
|
|
255
|
-
state: {
|
|
256
|
-
value: {
|
|
257
|
-
type: "string",
|
|
258
|
-
descriptionKey: "ui.agent.emailInput.state.value",
|
|
259
|
-
description: "The current email address typed into the field.",
|
|
260
|
-
read: (l) => l.getValue()
|
|
261
|
-
},
|
|
262
|
-
isValid: {
|
|
263
|
-
type: "boolean",
|
|
264
|
-
descriptionKey: "ui.agent.emailInput.state.isValid",
|
|
265
|
-
description: "True when the value is non-empty AND parses as a valid email per RFC 5322.",
|
|
266
|
-
read: (l) => l.isValid()
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
actions: {},
|
|
270
|
-
domHooks: {
|
|
271
|
-
root: {
|
|
272
|
-
attr: "data-component",
|
|
273
|
-
value: "email-input",
|
|
274
|
-
description: 'Marks the EmailInput wrapper. The inline error element carries `role="alert"` when validation fails.'
|
|
275
|
-
},
|
|
276
|
-
instanceId: {
|
|
277
|
-
attr: "data-component-id",
|
|
278
|
-
sourceProp: "id",
|
|
279
|
-
description: "Sourced from the id prop, when provided."
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
function Ie(l) {
|
|
284
|
-
return l.length === 0 ? !0 : ne(l);
|
|
285
|
-
}
|
|
286
|
-
const Se = se(
|
|
287
|
-
({
|
|
288
|
-
errorMessage: l,
|
|
289
|
-
onValidityChange: t,
|
|
290
|
-
disableBuiltInValidation: f = !1,
|
|
291
|
-
autoComplete: o = "email",
|
|
292
|
-
value: n,
|
|
293
|
-
defaultValue: u,
|
|
294
|
-
onChange: a,
|
|
295
|
-
onBlur: r,
|
|
296
|
-
id: e,
|
|
297
|
-
"aria-describedby": m,
|
|
298
|
-
"aria-invalid": v,
|
|
299
|
-
...s
|
|
300
|
-
}, _) => {
|
|
301
|
-
const { t: b } = ce("ui"), I = pe(), S = K(null), V = ve(_, S), q = oe(), F = n !== void 0, [p, i] = X(() => typeof n == "string" ? n : typeof u == "string" ? u : ""), g = F ? String(n) : p, [x, D] = X(
|
|
302
|
-
() => g.length > 0
|
|
303
|
-
), h = Q(
|
|
304
|
-
() => Ie(g),
|
|
305
|
-
[g]
|
|
306
|
-
), w = !f && x && g.length > 0 && !h, c = K(null);
|
|
307
|
-
fe(() => {
|
|
308
|
-
if (!x) return;
|
|
309
|
-
const d = g.length > 0 && h;
|
|
310
|
-
c.current !== d && (c.current = d, t == null || t(d));
|
|
311
|
-
}, [x, g, h, t]);
|
|
312
|
-
const P = Z(
|
|
313
|
-
(d) => {
|
|
314
|
-
F || i(d.target.value), a == null || a(d);
|
|
315
|
-
},
|
|
316
|
-
[F, a]
|
|
317
|
-
), j = Z(
|
|
318
|
-
(d) => {
|
|
319
|
-
D(!0), r == null || r(d);
|
|
320
|
-
},
|
|
321
|
-
[r]
|
|
322
|
-
), R = Q(
|
|
323
|
-
() => ({
|
|
324
|
-
getValue: () => {
|
|
325
|
-
var d;
|
|
326
|
-
return ((d = S.current) == null ? void 0 : d.value) ?? "";
|
|
327
|
-
},
|
|
328
|
-
isValid: () => {
|
|
329
|
-
var B;
|
|
330
|
-
const d = ((B = S.current) == null ? void 0 : B.value) ?? "";
|
|
331
|
-
return d.length > 0 && ne(d);
|
|
332
|
-
}
|
|
333
|
-
}),
|
|
334
|
-
[]
|
|
335
|
-
);
|
|
336
|
-
_e(Ee, R, e);
|
|
337
|
-
const y = w && l !== null && !I.invalid, M = I.describedBy || void 0, A = Q(() => {
|
|
338
|
-
const d = [
|
|
339
|
-
m,
|
|
340
|
-
M,
|
|
341
|
-
y ? q : null
|
|
342
|
-
].filter(Boolean);
|
|
343
|
-
return d.length > 0 ? d.join(" ") : void 0;
|
|
344
|
-
}, [
|
|
345
|
-
m,
|
|
346
|
-
M,
|
|
347
|
-
y,
|
|
348
|
-
q
|
|
349
|
-
]), E = v === !0 || v === "true", le = y || l === null && E ? "error" : "default", ie = y || I.invalid || E || void 0, ue = l !== void 0 ? l : b("inputs.email.invalid", "Enter a valid email address.");
|
|
350
|
-
return /* @__PURE__ */ W(
|
|
351
|
-
"div",
|
|
352
|
-
{
|
|
353
|
-
"data-component": "email-input",
|
|
354
|
-
"data-component-id": e,
|
|
355
|
-
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
356
|
-
children: [
|
|
357
|
-
/* @__PURE__ */ C(
|
|
358
|
-
me,
|
|
359
|
-
{
|
|
360
|
-
...s,
|
|
361
|
-
ref: V,
|
|
362
|
-
id: e,
|
|
363
|
-
type: "email",
|
|
364
|
-
inputMode: "email",
|
|
365
|
-
autoComplete: o,
|
|
366
|
-
tone: le,
|
|
367
|
-
value: F ? g : void 0,
|
|
368
|
-
defaultValue: F ? void 0 : u,
|
|
369
|
-
onChange: P,
|
|
370
|
-
onBlur: j,
|
|
371
|
-
"aria-invalid": ie,
|
|
372
|
-
"aria-describedby": A
|
|
373
|
-
}
|
|
374
|
-
),
|
|
375
|
-
y ? /* @__PURE__ */ W(
|
|
376
|
-
"p",
|
|
377
|
-
{
|
|
378
|
-
id: q,
|
|
379
|
-
role: "alert",
|
|
380
|
-
"data-slot": "email-input-error",
|
|
381
|
-
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
|
|
382
|
-
children: [
|
|
383
|
-
/* @__PURE__ */ C(ge, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
|
|
384
|
-
/* @__PURE__ */ C("span", { children: ue })
|
|
385
|
-
]
|
|
386
|
-
}
|
|
387
|
-
) : null
|
|
388
|
-
]
|
|
389
|
-
}
|
|
390
|
-
);
|
|
391
|
-
}
|
|
392
|
-
);
|
|
393
|
-
Se.displayName = "EmailInput";
|
|
394
|
-
export {
|
|
395
|
-
Se as E,
|
|
396
|
-
Ee as e,
|
|
397
|
-
ne as i
|
|
398
|
-
};
|
|
399
|
-
//# sourceMappingURL=email-input-BEO3vonE.js.map
|