@alfadocs/ui-kit 1.112.2 → 1.114.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/{anamnesis-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-DaS-j8Jd.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-DmlXxevC.js} +2 -2
- package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
- package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-FvdoKZ54.js → calendar-appointment-editor-dialog-iyh9QqNw.js} +6 -6
- package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
- package/dist/_chunks/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
- package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
- package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
- package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-Dd-XbKmZ.js} +2 -2
- package/dist/_chunks/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-Dl6SyMHO.js} +3 -3
- package/dist/_chunks/email-input-DxwbREpx.js +156 -0
- package/dist/_chunks/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
- package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DlcQaQVR.js} +2 -2
- package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
- package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
- package/dist/_chunks/{forgot-password-form-vfCO2-Tt.js → forgot-password-form-Bc_UPax6.js} +9 -8
- package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js → gestational-age-calculator-DmzYdW5e.js} +3 -3
- package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-Tr72PetS.js} +2 -2
- package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-CNxCDl0D.js} +2 -2
- package/dist/_chunks/isEmail-BfVspSvV.js +248 -0
- package/dist/_chunks/{kit-extensions-BOsUgWnE.js → kit-extensions-DZJRmDI6.js} +7 -7
- package/dist/_chunks/{login-dev-card-Cz1Clugq.js → login-dev-card-D7orCfJT.js} +48 -47
- package/dist/_chunks/map-view-Bny79cWa.js +856 -0
- package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CPNVBVLH.js} +2 -2
- package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
- package/dist/_chunks/{notes-panel-Cz621DWV.js → notes-panel-DXMTObBv.js} +3 -3
- package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
- package/dist/_chunks/{patient-details-BwkDIm4D.js → patient-details-DdtXBNjt.js} +3 -3
- package/dist/_chunks/{patient-field-row-CBba7w9V.js → patient-field-row-D9rb-QJH.js} +2 -2
- package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
- package/dist/_chunks/{patient-summary-card-DtYTo9w_.js → patient-summary-card-CGHz-Bvm.js} +3 -3
- package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
- package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
- package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-xheWfi4g.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
- package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
- package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-BvorzHrd.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.js} +2 -2
- package/dist/_chunks/{privacy-mask-DbEKI-Jv.js → privacy-mask-Dc3kdkCR.js} +2 -2
- package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
- package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
- package/dist/_chunks/{registration-form-DEyUFysm.js → registration-form-Lw9T7IXr.js} +7 -6
- package/dist/_chunks/{reserved.agent-W_Zgj564.js → reserved.agent-D2jwJPac.js} +22 -32
- package/dist/_chunks/{reset-password-form-B0acanDD.js → reset-password-form-C93SH0Tx.js} +3 -3
- package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
- package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-Nn0jf65G.js → send-registration-link-form-DfbTjrEK.js} +9 -8
- package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
- package/dist/_chunks/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
- package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-DqVoitRk.js} +2 -2
- package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-D--LwVrg.js} +2 -2
- package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-C6j8HVMv.js} +2 -2
- package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-D6PuF4MQ.js} +2 -2
- package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-DYyCYI9f.js → use-appointment-details-read-BK_Gw1GG.js} +5 -5
- package/dist/_chunks/verify-identity-types-C85EXNzy.js +707 -0
- package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-CtBn5JvO.js} +2 -2
- package/dist/agent-catalog.json +111 -7
- package/dist/agent-i18n/en.json +13 -2
- package/dist/components/_shared/motion-is-off.d.ts +7 -0
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/step-focus.d.ts +0 -6
- package/dist/components/card/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +16 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts +6 -2
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +43 -2
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +23 -0
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +7 -0
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +7 -0
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +68 -0
- package/dist/i18n/locales/ar.js +70 -2
- package/dist/i18n/locales/de.d.ts +68 -0
- package/dist/i18n/locales/de.js +70 -2
- package/dist/i18n/locales/el.d.ts +68 -0
- package/dist/i18n/locales/el.js +70 -2
- package/dist/i18n/locales/en.d.ts +68 -0
- package/dist/i18n/locales/en.js +68 -0
- package/dist/i18n/locales/es.d.ts +68 -0
- package/dist/i18n/locales/es.js +70 -2
- package/dist/i18n/locales/fr.d.ts +68 -0
- package/dist/i18n/locales/fr.js +70 -2
- package/dist/i18n/locales/hi.d.ts +68 -0
- package/dist/i18n/locales/hi.js +70 -2
- package/dist/i18n/locales/it.d.ts +68 -0
- package/dist/i18n/locales/it.js +70 -2
- package/dist/i18n/locales/ja.d.ts +68 -0
- package/dist/i18n/locales/ja.js +70 -2
- package/dist/i18n/locales/nl.d.ts +68 -0
- package/dist/i18n/locales/nl.js +70 -2
- package/dist/i18n/locales/pl.d.ts +68 -0
- package/dist/i18n/locales/pl.js +70 -2
- package/dist/i18n/locales/pt.d.ts +68 -0
- package/dist/i18n/locales/pt.js +70 -2
- package/dist/i18n/locales/ro.d.ts +68 -0
- package/dist/i18n/locales/ro.js +70 -2
- package/dist/i18n/locales/ru.d.ts +68 -0
- package/dist/i18n/locales/ru.js +70 -2
- package/dist/i18n/locales/sq.d.ts +68 -0
- package/dist/i18n/locales/sq.js +70 -2
- package/dist/i18n/locales/sv.d.ts +68 -0
- package/dist/i18n/locales/sv.js +70 -2
- package/dist/i18n/locales/tr.d.ts +68 -0
- package/dist/i18n/locales/tr.js +70 -2
- package/dist/i18n/locales/zh.d.ts +68 -0
- package/dist/i18n/locales/zh.js +70 -2
- package/dist/index.js +373 -368
- package/dist/locales/ar.json +70 -2
- package/dist/locales/de.json +70 -2
- package/dist/locales/el.json +70 -2
- package/dist/locales/en.json +68 -0
- package/dist/locales/es.json +70 -2
- package/dist/locales/fr.json +70 -2
- package/dist/locales/hi.json +70 -2
- package/dist/locales/it.json +70 -2
- package/dist/locales/ja.json +70 -2
- package/dist/locales/nl.json +70 -2
- package/dist/locales/pl.json +70 -2
- package/dist/locales/pt.json +70 -2
- package/dist/locales/ro.json +70 -2
- package/dist/locales/ru.json +70 -2
- package/dist/locales/sq.json +70 -2
- package/dist/locales/sv.json +70 -2
- package/dist/locales/tr.json +70 -2
- package/dist/locales/zh.json +70 -2
- 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/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/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/signed-out-frame/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/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/email-input-BEO3vonE.js +0 -399
- package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
- package/dist/_chunks/practice-results-BOpaPaav.js +0 -1923
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.114.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
|