@alfadocs/ui-kit 0.73.0 → 0.77.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/actions-cell-renderer-DLrcSTK_.js +1546 -0
- package/dist/_chunks/{address-fields-COyjgqxA.js → address-fields-7k59FnJ6.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DFm58UjY.js → ai-prompt-input-DziJCGLe.js} +2 -2
- package/dist/_chunks/{audio-recorder-CjAY0GAc.js → audio-recorder-Cc3KuL9y.js} +2 -2
- package/dist/_chunks/{bishop-score-Bs6t6Zv1.js → bishop-score-DDW5-gb9.js} +2 -2
- package/dist/_chunks/{booking-CWnZhZ5g.js → booking-CLmeXtGv.js} +3 -3
- package/dist/_chunks/{care-plan-card-CfIP3Vc1.js → care-plan-card-BrwhyIJI.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-CRbS-G00.js → care-plan-entry-card-DWEdCQM3.js} +2 -2
- package/dist/_chunks/{country-select-DYHDLEjG.js → country-select-BN9nedAp.js} +2 -2
- package/dist/_chunks/data-table-tabs-BEUXiRlu.js +710 -0
- package/dist/_chunks/document-preview-CvHnHf6T.js +243 -0
- package/dist/_chunks/{document-scanner-BE6Jz4Ob.js → document-scanner-B6h1Ir56.js} +2 -2
- package/dist/_chunks/{field-value-DCXJXKab.js → field-value-DHG6gEKS.js} +2 -2
- package/dist/_chunks/file-Cwe9VC1A.js +40 -0
- package/dist/_chunks/file-manager-DfTG7bxx.js +1771 -0
- package/dist/_chunks/{file-upload-B2SXhRiN.js → file-upload-DENvuhfs.js} +98 -129
- package/dist/_chunks/flag-Cnmivlrl.js +641 -0
- package/dist/_chunks/{gestational-age-calculator-C9Dfis4I.js → gestational-age-calculator-BpYw-WF-.js} +2 -2
- package/dist/_chunks/{header-settings-CRQDCYgr.js → header-settings-DMfdx0Vq.js} +2 -2
- package/dist/_chunks/{icon-picker-BePK27S-.js → icon-picker-CM9ubkew.js} +2 -2
- package/dist/_chunks/link-cell-renderer-BQGUs45d.js +711 -0
- package/dist/_chunks/{locale-picker-Cbfqc0_N.js → locale-picker-EyvPrwDc.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-Dm6S-hun.js → marketplace-app-shell-Bxq1PYAj.js} +3 -3
- package/dist/_chunks/{muscle-scheme-B9MIkuj0.js → muscle-scheme-CFBE2dme.js} +6 -14
- package/dist/_chunks/{notes-panel-B_8-Mebz.js → notes-panel-Cvdp818a.js} +2 -2
- package/dist/_chunks/{optical-prescription-BQ75_kf6.js → optical-prescription-BEjYQjiO.js} +2 -2
- package/dist/_chunks/{patient-details-JkOI3Ijd.js → patient-details-zy76MRh7.js} +5 -5
- package/dist/_chunks/{patient-summary-card-CQOLMH3E.js → patient-summary-card-D6kgdTNn.js} +2 -2
- package/dist/_chunks/{patient-table-B_mOe-ZT.js → patient-table-DweKjiXg.js} +122 -118
- package/dist/_chunks/periodontal-chart-CYBhr9vc.js +1305 -0
- package/dist/_chunks/periodontal-diagnosis-cco40xTa.js +345 -0
- package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js +334 -0
- package/dist/_chunks/{phone-input-dtnrvnZf.js → phone-input-D00ZBAm-.js} +2 -2
- package/dist/_chunks/{popover-DGTKfLWh.js → popover-Cc0a69sw.js} +31 -28
- package/dist/_chunks/{pregnancy-dating-IsDVfqJX.js → pregnancy-dating-msMl_6wz.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-e488ooH8.js → radiograph-panel.agent-CxF9pVxd.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CgA2bYwi.js → rich-text-editor-CCWjNkbx.js} +186 -177
- package/dist/_chunks/{select-BmCbJMJS.js → select-BW5ecXlX.js} +13 -13
- package/dist/_chunks/{sidebar-CtU35PIX.js → sidebar-C0PbwJBc.js} +357 -320
- package/dist/_chunks/signature-request-C-mskXwi.js +318 -0
- package/dist/_chunks/{tabs-DVQ941Sj.js → tabs-CVTukWRD.js} +2 -2
- package/dist/_chunks/{tasks-panel-LCK5ZXvU.js → tasks-panel-CjGAhIN8.js} +2 -2
- package/dist/_chunks/tooth-data-BwuoKFf4.js +660 -0
- package/dist/_chunks/tooth-scheme-BzJ6rcte.js +1483 -0
- package/dist/_chunks/{unit-converter-3uL_tMCm.js → unit-converter-CSLWFDQh.js} +2 -2
- package/dist/agent-catalog.json +1430 -213
- package/dist/agent-i18n/en.json +86 -5
- package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +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/card/card.d.ts +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-table/index.js +35 -34
- package/dist/components/data-table/toolbar.d.ts +1 -1
- package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts +4 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +93 -0
- package/dist/components/data-table-tabs/index.d.ts +5 -0
- package/dist/components/data-table-tabs/index.js +8 -0
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +63 -0
- package/dist/components/document-preview/document-preview.agent.d.ts +4 -0
- package/dist/components/document-preview/document-preview.d.ts +64 -0
- package/dist/components/document-preview/index.d.ts +4 -0
- package/dist/components/document-preview/index.js +6 -0
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/file-manager/dialogs.d.ts +48 -0
- package/dist/components/file-manager/file-manager.agent.d.ts +4 -0
- package/dist/components/file-manager/file-manager.d.ts +82 -0
- package/dist/components/file-manager/folder-tree.d.ts +12 -0
- package/dist/components/file-manager/index.d.ts +5 -0
- package/dist/components/file-manager/index.js +6 -0
- package/dist/components/file-manager/list-view.d.ts +49 -0
- package/dist/components/file-manager/toolbar.d.ts +15 -0
- package/dist/components/file-manager/types.d.ts +167 -0
- package/dist/components/file-manager/utils.d.ts +34 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/flag/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/index.d.ts +7 -0
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/message-card.d.ts +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +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-summary-card/patient-summary-card.d.ts +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/payment-card.d.ts +1 -1
- package/dist/components/payment-card/payment-request-card.d.ts +1 -1
- package/dist/components/periodontal-chart/index.d.ts +6 -0
- package/dist/components/periodontal-chart/index.js +23 -0
- package/dist/components/periodontal-chart/periodontal-chart-data.d.ts +164 -0
- package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts +4 -0
- package/dist/components/periodontal-chart/periodontal-chart.d.ts +71 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +1 -1
- package/dist/components/periodontal-diagnosis/index.d.ts +6 -0
- package/dist/components/periodontal-diagnosis/index.js +13 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts +30 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts +4 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts +44 -0
- package/dist/components/periodontal-risk-chart/index.d.ts +6 -0
- package/dist/components/periodontal-risk-chart/index.js +9 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts +4 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts +28 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts +47 -0
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -0
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-panel.d.ts +1 -1
- package/dist/components/radiograph-panel/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/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +9 -0
- package/dist/components/skeleton-scheme/index.js +5 -13
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +29 -28
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +321 -0
- package/dist/i18n/locales/ar.js +321 -0
- package/dist/i18n/locales/de.d.ts +321 -0
- package/dist/i18n/locales/de.js +321 -0
- package/dist/i18n/locales/el.d.ts +321 -0
- package/dist/i18n/locales/el.js +321 -0
- package/dist/i18n/locales/en.d.ts +321 -0
- package/dist/i18n/locales/en.js +321 -0
- package/dist/i18n/locales/es.d.ts +321 -0
- package/dist/i18n/locales/es.js +321 -0
- package/dist/i18n/locales/fr.d.ts +321 -0
- package/dist/i18n/locales/fr.js +321 -0
- package/dist/i18n/locales/hi.d.ts +321 -0
- package/dist/i18n/locales/hi.js +321 -0
- package/dist/i18n/locales/it.d.ts +321 -0
- package/dist/i18n/locales/it.js +321 -0
- package/dist/i18n/locales/ja.d.ts +321 -0
- package/dist/i18n/locales/ja.js +321 -0
- package/dist/i18n/locales/nl.d.ts +321 -0
- package/dist/i18n/locales/nl.js +321 -0
- package/dist/i18n/locales/pl.d.ts +321 -0
- package/dist/i18n/locales/pl.js +321 -0
- package/dist/i18n/locales/pt.d.ts +321 -0
- package/dist/i18n/locales/pt.js +321 -0
- package/dist/i18n/locales/ro.d.ts +321 -0
- package/dist/i18n/locales/ro.js +321 -0
- package/dist/i18n/locales/ru.d.ts +321 -0
- package/dist/i18n/locales/ru.js +321 -0
- package/dist/i18n/locales/sq.d.ts +321 -0
- package/dist/i18n/locales/sq.js +321 -0
- package/dist/i18n/locales/sv.d.ts +321 -0
- package/dist/i18n/locales/sv.js +321 -0
- package/dist/i18n/locales/tr.d.ts +321 -0
- package/dist/i18n/locales/tr.js +321 -0
- package/dist/i18n/locales/zh.d.ts +321 -0
- package/dist/i18n/locales/zh.js +321 -0
- package/dist/index.js +834 -783
- package/dist/locales/ar.json +321 -0
- package/dist/locales/de.json +321 -0
- package/dist/locales/el.json +321 -0
- package/dist/locales/en.json +321 -0
- package/dist/locales/es.json +321 -0
- package/dist/locales/fr.json +321 -0
- package/dist/locales/hi.json +321 -0
- package/dist/locales/it.json +321 -0
- package/dist/locales/ja.json +321 -0
- package/dist/locales/nl.json +321 -0
- package/dist/locales/pl.json +321 -0
- package/dist/locales/pt.json +321 -0
- package/dist/locales/ro.json +321 -0
- package/dist/locales/ru.json +321 -0
- package/dist/locales/sq.json +321 -0
- package/dist/locales/sv.json +321 -0
- package/dist/locales/tr.json +321 -0
- package/dist/locales/zh.json +321 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.d.ts +3 -0
- package/dist/patterns/signature-request/index.js +5 -0
- package/dist/patterns/signature-request/signature-request.d.ts +81 -0
- package/dist/tokens.css +1 -1
- package/package.json +29 -1
- package/dist/_chunks/columns-2-8lq4-b8e.js +0 -15
- package/dist/_chunks/flag-DZ6V7-hU.js +0 -637
- package/dist/_chunks/link-cell-renderer-CLI7sBkX.js +0 -2210
- package/dist/_chunks/tooth-scheme-CX49GycY.js +0 -2133
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Z, useRef as b, useState as T, useEffect as ee } from "react";
|
|
3
|
+
import { useTranslation as se } from "react-i18next";
|
|
4
|
+
import { D as d } from "./dialog-UbKJCi1X.js";
|
|
5
|
+
import { B as f } from "./button-CPGiR_bH.js";
|
|
6
|
+
import { I as ae } from "./icon-button-C_kbcd7I.js";
|
|
7
|
+
import { C as te } from "./checkbox-BuZ1u__2.js";
|
|
8
|
+
import { a as re } from "./whatsapp-button-BIy6NaJK.js";
|
|
9
|
+
import { S as B } from "./select-BW5ecXlX.js";
|
|
10
|
+
import { S as ne } from "./switch-OILsBLWo.js";
|
|
11
|
+
import { A as p } from "./alert-KJbsPYkI.js";
|
|
12
|
+
import { S as ie } from "./separator-CYU_bGFn.js";
|
|
13
|
+
import { A as j } from "./avatar-BNQNhoyL.js";
|
|
14
|
+
import { c as S } from "./createLucideIcon-DhHxpK9K.js";
|
|
15
|
+
import { M as le } from "./mail-BqXVF2zH.js";
|
|
16
|
+
import { P as de } from "./plus-DzMQ_c6b.js";
|
|
17
|
+
import { X as ce } from "./x-B5YnXwCz.js";
|
|
18
|
+
import { P as oe } from "./pen-line-D0De5zdl.js";
|
|
19
|
+
/**
|
|
20
|
+
* @license lucide-react v1.22.0 - ISC
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the ISC license.
|
|
23
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/
|
|
25
|
+
const ue = [
|
|
26
|
+
[
|
|
27
|
+
"path",
|
|
28
|
+
{
|
|
29
|
+
d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
|
|
30
|
+
key: "18887p"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
["path", { d: "M7 11h10", key: "1twpyw" }],
|
|
34
|
+
["path", { d: "M7 15h6", key: "d9of3u" }],
|
|
35
|
+
["path", { d: "M7 7h8", key: "af5zfr" }]
|
|
36
|
+
], me = S("message-square-text", ue);
|
|
37
|
+
/**
|
|
38
|
+
* @license lucide-react v1.22.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/
|
|
43
|
+
const pe = [
|
|
44
|
+
["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", ry: "2", key: "76otgf" }],
|
|
45
|
+
["line", { x1: "12", x2: "12.01", y1: "18", y2: "18", key: "1dp563" }]
|
|
46
|
+
], he = S("tablet", pe);
|
|
47
|
+
/**
|
|
48
|
+
* @license lucide-react v1.22.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/
|
|
53
|
+
const ge = [
|
|
54
|
+
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
55
|
+
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
56
|
+
["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
|
|
57
|
+
["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
|
|
58
|
+
], ve = S("user-plus", ge), h = "__assign-later__";
|
|
59
|
+
function H(c, x) {
|
|
60
|
+
var l;
|
|
61
|
+
return ((l = c.find((o) => o.value === x)) == null ? void 0 : l.label) ?? "";
|
|
62
|
+
}
|
|
63
|
+
const fe = Z(
|
|
64
|
+
({
|
|
65
|
+
open: c,
|
|
66
|
+
onOpenChange: x,
|
|
67
|
+
operators: l,
|
|
68
|
+
signerOptions: o,
|
|
69
|
+
currentOperatorId: k,
|
|
70
|
+
allowAssignLater: q = !0,
|
|
71
|
+
initialOperatorId: C,
|
|
72
|
+
initialSigners: R,
|
|
73
|
+
maxSigners: L = 2,
|
|
74
|
+
busy: i = !1,
|
|
75
|
+
error: z,
|
|
76
|
+
title: V,
|
|
77
|
+
description: E,
|
|
78
|
+
onRequestSignature: F,
|
|
79
|
+
contentProps: W
|
|
80
|
+
}, G) => {
|
|
81
|
+
const { t: a } = se(), _ = b(0), M = b(null), P = () => {
|
|
82
|
+
var s, r;
|
|
83
|
+
return C === null ? q ? h : ((s = l[0]) == null ? void 0 : s.value) ?? h : C ?? ((r = l[0]) == null ? void 0 : r.value) ?? (q ? h : "");
|
|
84
|
+
}, A = () => (R && R.length > 0 ? R : o.length > 0 ? [
|
|
85
|
+
{
|
|
86
|
+
signerId: o[0].value,
|
|
87
|
+
channel: "on-device"
|
|
88
|
+
}
|
|
89
|
+
] : []).map((r) => ({ ...r, rowId: _.current++ })), [g, w] = T(P), [u, v] = T(A), D = b(c);
|
|
90
|
+
ee(() => {
|
|
91
|
+
c && !D.current && (w(P()), v(A())), D.current = c;
|
|
92
|
+
}, [c]);
|
|
93
|
+
const U = q ? [
|
|
94
|
+
...l,
|
|
95
|
+
{ value: h, label: a("signatureRequest.assignLater") }
|
|
96
|
+
] : l, y = g === h, $ = [
|
|
97
|
+
{
|
|
98
|
+
value: "sms",
|
|
99
|
+
label: a("signatureRequest.viaSms"),
|
|
100
|
+
icon: /* @__PURE__ */ e(me, { className: "ds:size-4", "aria-hidden": !0 })
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
value: "email",
|
|
104
|
+
label: a("signatureRequest.viaEmail"),
|
|
105
|
+
icon: /* @__PURE__ */ e(le, { className: "ds:size-4", "aria-hidden": !0 })
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
value: "whatsapp",
|
|
109
|
+
label: a("signatureRequest.viaWhatsapp"),
|
|
110
|
+
icon: /* @__PURE__ */ e(re, { className: "ds:size-4", "aria-hidden": !0 })
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
value: "on-device",
|
|
114
|
+
label: a("signatureRequest.onThisDevice"),
|
|
115
|
+
icon: /* @__PURE__ */ e(he, { className: "ds:size-4", "aria-hidden": !0 })
|
|
116
|
+
}
|
|
117
|
+
], O = u.map((s) => s.signerId), I = o.find(
|
|
118
|
+
(s) => !O.includes(s.value)
|
|
119
|
+
), X = !i && u.length < L && I !== void 0, N = (s, r) => {
|
|
120
|
+
v(
|
|
121
|
+
(m) => m.map(
|
|
122
|
+
(t) => t.rowId === s ? { ...t, ...r } : t
|
|
123
|
+
)
|
|
124
|
+
);
|
|
125
|
+
}, J = () => {
|
|
126
|
+
I && v((s) => [
|
|
127
|
+
...s,
|
|
128
|
+
{
|
|
129
|
+
signerId: I.value,
|
|
130
|
+
channel: "sms",
|
|
131
|
+
rowId: _.current++
|
|
132
|
+
}
|
|
133
|
+
]);
|
|
134
|
+
}, K = (s) => {
|
|
135
|
+
var r;
|
|
136
|
+
(r = M.current) == null || r.focus(), v(
|
|
137
|
+
(m) => m.filter((t) => t.rowId !== s)
|
|
138
|
+
);
|
|
139
|
+
}, Q = () => {
|
|
140
|
+
F({
|
|
141
|
+
operatorId: y ? null : g,
|
|
142
|
+
signers: u.map(({ rowId: s, ...r }) => r)
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
return /* @__PURE__ */ e("div", { ref: G, className: "ds:contents", "data-component": "signature-request", children: /* @__PURE__ */ e(d, { open: c, onOpenChange: x, children: /* @__PURE__ */ n(d.Content, { size: "lg", hideCloseButton: !0, ...W, children: [
|
|
146
|
+
/* @__PURE__ */ n(d.Header, { children: [
|
|
147
|
+
/* @__PURE__ */ e(d.Title, { children: V ?? a("signatureRequest.title") }),
|
|
148
|
+
/* @__PURE__ */ e(d.Description, { children: E ?? a("signatureRequest.noSignedVersions") })
|
|
149
|
+
] }),
|
|
150
|
+
/* @__PURE__ */ n(d.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
151
|
+
/* @__PURE__ */ n("section", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
152
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
153
|
+
/* @__PURE__ */ e("p", { className: "type-eyebrow ds:text-start ds:text-[color:var(--muted-foreground)]", children: a("signatureRequest.operatorSection") }),
|
|
154
|
+
k !== void 0 ? /* @__PURE__ */ e(
|
|
155
|
+
f,
|
|
156
|
+
{
|
|
157
|
+
intent: "primary",
|
|
158
|
+
size: "sm",
|
|
159
|
+
startIcon: /* @__PURE__ */ e(ve, {}),
|
|
160
|
+
disabled: i,
|
|
161
|
+
onClick: () => w(k),
|
|
162
|
+
children: a("signatureRequest.assignToMe")
|
|
163
|
+
}
|
|
164
|
+
) : null
|
|
165
|
+
] }),
|
|
166
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
167
|
+
/* @__PURE__ */ e(
|
|
168
|
+
j,
|
|
169
|
+
{
|
|
170
|
+
"aria-hidden": "true",
|
|
171
|
+
name: y ? void 0 : H(l, g),
|
|
172
|
+
size: "sm"
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
/* @__PURE__ */ e("div", { className: "ds:min-w-0 ds:flex-1 ds:text-start", children: /* @__PURE__ */ e(
|
|
176
|
+
B,
|
|
177
|
+
{
|
|
178
|
+
options: U,
|
|
179
|
+
value: g,
|
|
180
|
+
onValueChange: (s) => s && w(s),
|
|
181
|
+
required: !0,
|
|
182
|
+
disabled: i,
|
|
183
|
+
placeholder: a("signatureRequest.operatorPlaceholder"),
|
|
184
|
+
"aria-label": a("signatureRequest.operatorSection")
|
|
185
|
+
}
|
|
186
|
+
) })
|
|
187
|
+
] }),
|
|
188
|
+
y ? null : /* @__PURE__ */ e(p, { variant: "info", children: /* @__PURE__ */ e(p.Description, { children: a("signatureRequest.operatorHint") }) })
|
|
189
|
+
] }),
|
|
190
|
+
/* @__PURE__ */ e(ie, { decorative: !0 }),
|
|
191
|
+
/* @__PURE__ */ n("section", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:text-start", children: [
|
|
192
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
193
|
+
/* @__PURE__ */ e("p", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: a("signatureRequest.signersSection") }),
|
|
194
|
+
/* @__PURE__ */ e(
|
|
195
|
+
f,
|
|
196
|
+
{
|
|
197
|
+
ref: M,
|
|
198
|
+
intent: "primary",
|
|
199
|
+
size: "sm",
|
|
200
|
+
startIcon: /* @__PURE__ */ e(de, {}),
|
|
201
|
+
disabled: !X,
|
|
202
|
+
onClick: J,
|
|
203
|
+
children: a("signatureRequest.addSigner")
|
|
204
|
+
}
|
|
205
|
+
)
|
|
206
|
+
] }),
|
|
207
|
+
u.map((s) => {
|
|
208
|
+
const r = o.filter(
|
|
209
|
+
(t) => t.value === s.signerId || !O.includes(t.value)
|
|
210
|
+
), m = H(o, s.signerId);
|
|
211
|
+
return /* @__PURE__ */ n(
|
|
212
|
+
"div",
|
|
213
|
+
{
|
|
214
|
+
role: "group",
|
|
215
|
+
"aria-label": m,
|
|
216
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
217
|
+
children: [
|
|
218
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
219
|
+
/* @__PURE__ */ e(j, { "aria-hidden": "true", name: m, size: "sm" }),
|
|
220
|
+
/* @__PURE__ */ e("div", { className: "ds:min-w-0 ds:flex-1", children: /* @__PURE__ */ e(
|
|
221
|
+
B,
|
|
222
|
+
{
|
|
223
|
+
options: r,
|
|
224
|
+
value: s.signerId,
|
|
225
|
+
onValueChange: (t) => t && N(s.rowId, { signerId: t }),
|
|
226
|
+
required: !0,
|
|
227
|
+
disabled: i,
|
|
228
|
+
placeholder: a(
|
|
229
|
+
"signatureRequest.signerPlaceholder"
|
|
230
|
+
),
|
|
231
|
+
"aria-label": a("signatureRequest.signerPlaceholder")
|
|
232
|
+
}
|
|
233
|
+
) }),
|
|
234
|
+
u.length > 1 ? /* @__PURE__ */ e(
|
|
235
|
+
ae,
|
|
236
|
+
{
|
|
237
|
+
intent: "ghost",
|
|
238
|
+
size: "sm",
|
|
239
|
+
icon: /* @__PURE__ */ e(ce, {}),
|
|
240
|
+
disabled: i,
|
|
241
|
+
"aria-label": a("signatureRequest.removeSigner"),
|
|
242
|
+
onClick: () => K(s.rowId)
|
|
243
|
+
}
|
|
244
|
+
) : null
|
|
245
|
+
] }),
|
|
246
|
+
/* @__PURE__ */ e(
|
|
247
|
+
"div",
|
|
248
|
+
{
|
|
249
|
+
role: "group",
|
|
250
|
+
"aria-label": a("signatureRequest.channelLabel"),
|
|
251
|
+
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-lg)] ds:gap-y-[var(--spacing-sm)] ds:ps-[var(--spacing-xl)]",
|
|
252
|
+
children: $.map((t) => /* @__PURE__ */ e(
|
|
253
|
+
te,
|
|
254
|
+
{
|
|
255
|
+
checked: s.channel === t.value,
|
|
256
|
+
disabled: i,
|
|
257
|
+
onCheckedChange: (Y) => Y === !0 && N(s.rowId, {
|
|
258
|
+
channel: t.value,
|
|
259
|
+
skipOtp: void 0
|
|
260
|
+
}),
|
|
261
|
+
label: /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
262
|
+
/* @__PURE__ */ e(
|
|
263
|
+
"span",
|
|
264
|
+
{
|
|
265
|
+
"aria-hidden": "true",
|
|
266
|
+
className: "ds:text-[var(--accent)]",
|
|
267
|
+
children: t.icon
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
t.label
|
|
271
|
+
] })
|
|
272
|
+
},
|
|
273
|
+
t.value
|
|
274
|
+
))
|
|
275
|
+
}
|
|
276
|
+
),
|
|
277
|
+
s.channel === "on-device" ? /* @__PURE__ */ e("div", { className: "ds:ps-[var(--spacing-xl)]", children: /* @__PURE__ */ e(
|
|
278
|
+
ne,
|
|
279
|
+
{
|
|
280
|
+
label: a("signatureRequest.noOtp"),
|
|
281
|
+
checked: s.skipOtp === !0,
|
|
282
|
+
disabled: i,
|
|
283
|
+
onCheckedChange: (t) => N(s.rowId, { skipOtp: t })
|
|
284
|
+
}
|
|
285
|
+
) }) : null
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
s.rowId
|
|
289
|
+
);
|
|
290
|
+
})
|
|
291
|
+
] }),
|
|
292
|
+
u.some(
|
|
293
|
+
(s) => s.channel === "on-device" && s.skipOtp === !0
|
|
294
|
+
) ? /* @__PURE__ */ e(p, { variant: "warning", children: /* @__PURE__ */ e(p.Description, { children: a("signatureRequest.noOtpWarning") }) }) : null,
|
|
295
|
+
z ? /* @__PURE__ */ e(p, { variant: "error", children: /* @__PURE__ */ e(p.Description, { children: z }) }) : null
|
|
296
|
+
] }),
|
|
297
|
+
/* @__PURE__ */ n(d.Footer, { children: [
|
|
298
|
+
/* @__PURE__ */ e(
|
|
299
|
+
f,
|
|
300
|
+
{
|
|
301
|
+
intent: "primary",
|
|
302
|
+
startIcon: /* @__PURE__ */ e(oe, {}),
|
|
303
|
+
onClick: Q,
|
|
304
|
+
disabled: i || u.length === 0,
|
|
305
|
+
loading: i,
|
|
306
|
+
children: a("signatureRequest.requestSignature")
|
|
307
|
+
}
|
|
308
|
+
),
|
|
309
|
+
/* @__PURE__ */ e(d.Close, { asChild: !0, children: /* @__PURE__ */ e(f, { intent: "outline", disabled: i, children: a("signatureRequest.close") }) })
|
|
310
|
+
] })
|
|
311
|
+
] }) }) });
|
|
312
|
+
}
|
|
313
|
+
);
|
|
314
|
+
fe.displayName = "SignatureRequestModal";
|
|
315
|
+
export {
|
|
316
|
+
fe as S
|
|
317
|
+
};
|
|
318
|
+
//# sourceMappingURL=signature-request-C-mskXwi.js.map
|
|
@@ -5,7 +5,7 @@ import * as k from "@radix-ui/react-dropdown-menu";
|
|
|
5
5
|
import { a as N, c as M } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as Y } from "react-i18next";
|
|
7
7
|
import { c as Z } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
-
import { S as D } from "./select-
|
|
8
|
+
import { S as D } from "./select-BW5ecXlX.js";
|
|
9
9
|
import { u as ee } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { X as te } from "./x-B5YnXwCz.js";
|
|
11
11
|
import { u as se } from "./use-direction-Dp8h70PP.js";
|
|
@@ -405,4 +405,4 @@ export {
|
|
|
405
405
|
F as c,
|
|
406
406
|
re as t
|
|
407
407
|
};
|
|
408
|
-
//# sourceMappingURL=tabs-
|
|
408
|
+
//# sourceMappingURL=tabs-CVTukWRD.js.map
|
|
@@ -7,7 +7,7 @@ import { B as ae } from "./button-CPGiR_bH.js";
|
|
|
7
7
|
import { I as $ } from "./icon-button-C_kbcd7I.js";
|
|
8
8
|
import { B as he } from "./button-group-DzV5wgnx.js";
|
|
9
9
|
import { P as gt } from "./panel-header-D313n_9-.js";
|
|
10
|
-
import { S as ve } from "./select-
|
|
10
|
+
import { S as ve } from "./select-BW5ecXlX.js";
|
|
11
11
|
import { S as ht } from "./switch-OILsBLWo.js";
|
|
12
12
|
import { S as vt } from "./skeleton-CZbwyJAA.js";
|
|
13
13
|
import { E as ne } from "./empty-state-CrLsi0XI.js";
|
|
@@ -754,4 +754,4 @@ export {
|
|
|
754
754
|
Gt as T,
|
|
755
755
|
qt as t
|
|
756
756
|
};
|
|
757
|
-
//# sourceMappingURL=tasks-panel-
|
|
757
|
+
//# sourceMappingURL=tasks-panel-CjGAhIN8.js.map
|