@alfadocs/ui-kit 1.149.1 → 1.150.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-summary-panel-Cdsve-XN.js → ai-summary-panel-D-RNe-_n.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-QCv6zW-J.js → anamnesis-summary-rows-CE-i9j-s.js} +2 -2
- package/dist/_chunks/{appointment-card-HOZrABrQ.js → appointment-card-BPZggqck.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.history-BxNqcA-r.js → appointment-details-panel.history-BO31ZFQp.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.identity--_j07UG1.js → appointment-details-panel.identity-C9kWtC6m.js} +90 -78
- package/dist/_chunks/appointment-peek-CGJ6kUvM.js +213 -0
- package/dist/_chunks/{appointment-timeline-CuZW-CGT.js → appointment-timeline-ynFqcw0S.js} +3 -3
- package/dist/_chunks/{appointment-tray-CFCxukwq.js → appointment-tray-Dx5VDREk.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-BPz9bQAB.js → balance-badge-cell-DiyJQcmA.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-fQleWmJE.js → calendar-appointment-editor-dialog-BfoEpFVx.js} +360 -356
- package/dist/_chunks/{calendar-editor-discard-host-DWS_kM-a.js → calendar-editor-discard-host-DO506cJu.js} +4 -4
- package/dist/_chunks/{calendar-waiting-list-panel-BKBHfBpn.js → calendar-waiting-list-panel-CyMTv2y3.js} +7 -7
- package/dist/_chunks/{calendar-workspace.model-4zmA3BFE.js → calendar-workspace.model-X3aXbDTo.js} +2 -2
- package/dist/_chunks/{calendar.sheets-lgAqJB34.js → calendar.sheets-C8x8kPb4.js} +10 -10
- package/dist/_chunks/{calls-panel-BTTfHnPD.js → calls-panel-Bpemmnpd.js} +4 -4
- package/dist/_chunks/{care-plan-card-2U2LuIJD.js → care-plan-card-DJXNWjKB.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CUAlQv1c.js → care-plan-entry-card-W5QvNv8m.js} +2 -2
- package/dist/_chunks/{communications-panel-DDzUyoHi.js → communications-panel-Cd0TBEhL.js} +2 -2
- package/dist/_chunks/{control-room-rail-BQvaYowi.js → control-room-rail-4W1MFY-g.js} +3 -3
- package/dist/_chunks/{document-preview-oSuJsJ3k.js → document-preview-Zws6CHhK.js} +3 -3
- package/dist/_chunks/{editable-description-BsSjLnSx.js → editable-description-B2F54K4T.js} +34 -33
- package/dist/_chunks/{entity-summary-CZmGcWi2.js → entity-summary-BNnTP1F6.js} +62 -50
- package/dist/_chunks/feature-preview-switch-PKeLaFry.js +75 -0
- package/dist/_chunks/{file-manager-Cp3Z4VvM.js → file-manager-DzOCQBAO.js} +163 -178
- package/dist/_chunks/folder-CH9PJHou.js +36 -0
- package/dist/_chunks/{help-me-write-templates-DlA54nu5.js → help-me-write-templates-B_wMJ82X.js} +2 -2
- package/dist/_chunks/message-square-warning-DsGGfd0K.js +22 -0
- package/dist/_chunks/{notes-panel-Cw06dLDm.js → notes-panel-BguRX8VC.js} +374 -341
- package/dist/_chunks/{optical-prescription-DZvauMiM.js → optical-prescription-BzGnlIjq.js} +2 -2
- package/dist/_chunks/{panel-header-CbtlTe85.js → panel-header-DTc5OFUg.js} +78 -66
- package/dist/_chunks/{panel-subview-DjBwNV16.js → panel-subview-Om_yZvFG.js} +2 -2
- package/dist/_chunks/{patient-account-settings-Do0QbDJe.js → patient-account-settings-YKnBzmwE.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-Bxy1_Pfo.js → patient-check-in-resume-DERfQbp5.js} +5 -5
- package/dist/_chunks/{patient-details-Cj3dp9GB.js → patient-details-BUD0UbmT.js} +3 -3
- package/dist/_chunks/{patient-field-row-DDjsUsc_.js → patient-field-row-DytaHdGw.js} +201 -200
- package/dist/_chunks/{patient-summary-card-roM9Esfb.js → patient-summary-card-7Werxl48.js} +126 -139
- package/dist/_chunks/{payment-request-card-C9VglWsV.js → payment-request-card-BF3rakTQ.js} +2 -2
- package/dist/_chunks/{portal-details-CKF4yFHs.js → portal-details-C1QQGPQf.js} +3 -3
- package/dist/_chunks/{portal-documents-DvpAwmSI.js → portal-documents-CzEuCaqv.js} +3 -3
- package/dist/_chunks/{portal-parts-Cvu4PfIY.js → portal-parts-BMW4t57s.js} +2 -2
- package/dist/_chunks/{privacy-mask-zVh0ntm0.js → privacy-mask-CrjD5PYW.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-BUZPsuSP.js → radiograph-panel.agent-Kl1M0dtT.js} +3 -3
- package/dist/_chunks/{registry-connection-panel-ACOsXu3F.js → registry-connection-panel-kdKbGQE6.js} +3 -3
- package/dist/_chunks/{reserved.agent-DjvapRF1.js → reserved.agent-CW0frsMv.js} +2 -2
- package/dist/_chunks/{reviews-panel-Cw5ygAxs.js → reviews-panel-54AFY6uy.js} +2 -2
- package/dist/_chunks/{rich-text-editor-eGdYDPK2.js → rich-text-editor-DCQEpaIv.js} +1398 -1280
- package/dist/_chunks/{task-editor-C-4I2sBa.js → task-editor-CIHQQRtP.js} +5 -5
- package/dist/_chunks/{tasks-panel-BDPQPOP6.js → tasks-panel-Bc_odkQN.js} +2 -2
- package/dist/_chunks/text-area-DbxGkpzE.js +269 -0
- package/dist/_chunks/{tool-rail-DjPEiBa2.js → tool-rail-CJBtqzMs.js} +337 -320
- package/dist/_chunks/{transaction-chip-CkYd-3ky.js → transaction-chip-6jToArJn.js} +45 -43
- package/dist/_chunks/{transcript-panel-Wr8e4Zgi.js → transcript-panel-Dc0fK4WO.js} +2 -2
- package/dist/_chunks/{treatment-receipt-BZzwvsnY.js → treatment-receipt-B6m47Jie.js} +44 -46
- package/dist/_chunks/{use-appointment-details-read-Bl1DHXQ2.js → use-appointment-details-read-HVHbR0Zl.js} +769 -745
- package/dist/agent-catalog.json +15 -1
- package/dist/appointment-editor-panel/index.js +4 -4
- package/dist/booking-tools-data/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/appointment-format.d.ts +4 -0
- package/dist/components/_shared/patient-field-row.d.ts +5 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +5 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +3 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +3 -0
- package/dist/components/appointment-details-panel/index.js +2 -2
- package/dist/components/appointment-peek/appointment-peek.d.ts +45 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/index.js +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/communications-panel/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/editable-description/editable-description.d.ts +7 -0
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/feature-preview-switch/feature-preview-switch.d.ts +55 -0
- package/dist/components/feature-preview-switch/index.d.ts +2 -0
- package/dist/components/feature-preview-switch/index.js +5 -0
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +20 -0
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-header/index.js +1 -1
- package/dist/components/panel-header/panel-header.d.ts +8 -0
- package/dist/components/panel-subview/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 +9 -0
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/registry-connection-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +4 -1
- package/dist/components/rich-text-editor/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/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.d.ts +15 -0
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +12 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-legacy.css +51 -4
- package/dist/i18n/locales/ar.d.ts +9 -0
- package/dist/i18n/locales/ar.js +8 -2
- package/dist/i18n/locales/de.d.ts +9 -0
- package/dist/i18n/locales/de.js +8 -2
- package/dist/i18n/locales/el.d.ts +9 -0
- package/dist/i18n/locales/el.js +10 -1
- package/dist/i18n/locales/en.d.ts +9 -0
- package/dist/i18n/locales/en.js +11 -2
- package/dist/i18n/locales/es.d.ts +9 -0
- package/dist/i18n/locales/es.js +10 -1
- package/dist/i18n/locales/fr.d.ts +9 -0
- package/dist/i18n/locales/fr.js +10 -1
- package/dist/i18n/locales/hi.d.ts +9 -0
- package/dist/i18n/locales/hi.js +8 -2
- package/dist/i18n/locales/it.d.ts +19 -10
- package/dist/i18n/locales/it.js +20 -11
- package/dist/i18n/locales/ja.d.ts +9 -0
- package/dist/i18n/locales/ja.js +8 -2
- package/dist/i18n/locales/nl.d.ts +9 -0
- package/dist/i18n/locales/nl.js +8 -2
- package/dist/i18n/locales/pl.d.ts +9 -0
- package/dist/i18n/locales/pl.js +10 -1
- package/dist/i18n/locales/pt.d.ts +9 -0
- package/dist/i18n/locales/pt.js +10 -1
- package/dist/i18n/locales/ro.d.ts +9 -0
- package/dist/i18n/locales/ro.js +10 -1
- package/dist/i18n/locales/ru.d.ts +9 -0
- package/dist/i18n/locales/ru.js +8 -2
- package/dist/i18n/locales/sq.d.ts +9 -0
- package/dist/i18n/locales/sq.js +10 -1
- package/dist/i18n/locales/sv.d.ts +9 -0
- package/dist/i18n/locales/sv.js +8 -2
- package/dist/i18n/locales/tr.d.ts +9 -0
- package/dist/i18n/locales/tr.js +8 -2
- package/dist/i18n/locales/zh.d.ts +9 -0
- package/dist/i18n/locales/zh.js +8 -2
- package/dist/index.js +775 -773
- package/dist/locales/ar.json +10 -1
- package/dist/locales/de.json +10 -1
- package/dist/locales/el.json +10 -1
- package/dist/locales/en.json +11 -2
- package/dist/locales/es.json +10 -1
- package/dist/locales/fr.json +10 -1
- package/dist/locales/hi.json +10 -1
- package/dist/locales/it.json +20 -11
- package/dist/locales/ja.json +10 -1
- package/dist/locales/nl.json +10 -1
- package/dist/locales/pl.json +10 -1
- package/dist/locales/pt.json +10 -1
- package/dist/locales/ro.json +10 -1
- package/dist/locales/ru.json +10 -1
- package/dist/locales/sq.json +10 -1
- package/dist/locales/sv.json +10 -1
- package/dist/locales/tr.json +10 -1
- package/dist/locales/zh.json +10 -1
- package/dist/online-bookings-panel/index.js +2 -2
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +4 -4
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +3 -3
- package/package.json +5 -1
- package/dist/_chunks/appointment-peek-B3raO90X.js +0 -123
- package/dist/_chunks/contact-round-DiSvB3LP.js +0 -18
- package/dist/_chunks/folder-BghC8_S2.js +0 -20
- package/dist/_chunks/text-area-COMVJ1yE.js +0 -258
|
@@ -4,9 +4,9 @@ import { useTranslation as K } from "react-i18next";
|
|
|
4
4
|
import { d as s, b as L } from "../_chunks/toast-Cgmh1cvj.js";
|
|
5
5
|
import { a as M } from "../_chunks/tooltip-uEBdD1-5.js";
|
|
6
6
|
import { C as Q } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
|
|
7
|
-
import { S as V } from "../_chunks/calendar.sheets-
|
|
8
|
-
import { W as X } from "../_chunks/calendar-waiting-list-panel-
|
|
9
|
-
import { P as Y } from "../_chunks/privacy-mask-
|
|
7
|
+
import { S as V } from "../_chunks/calendar.sheets-C8x8kPb4.js";
|
|
8
|
+
import { W as X } from "../_chunks/calendar-waiting-list-panel-CyMTv2y3.js";
|
|
9
|
+
import { P as Y } from "../_chunks/privacy-mask-CrjD5PYW.js";
|
|
10
10
|
import { H as Z } from "../_chunks/hourglass-BEAzW1wE.js";
|
|
11
11
|
const q = { open: () => {
|
|
12
12
|
}, close: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.150.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",
|
|
@@ -421,6 +421,10 @@
|
|
|
421
421
|
"types": "./dist/components/error-summary/index.d.ts",
|
|
422
422
|
"import": "./dist/components/error-summary/index.js"
|
|
423
423
|
},
|
|
424
|
+
"./feature-preview-switch": {
|
|
425
|
+
"types": "./dist/components/feature-preview-switch/index.d.ts",
|
|
426
|
+
"import": "./dist/components/feature-preview-switch/index.js"
|
|
427
|
+
},
|
|
424
428
|
"./file-manager": {
|
|
425
429
|
"types": "./dist/components/file-manager/index.d.ts",
|
|
426
430
|
"import": "./dist/components/file-manager/index.js"
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as P, isValidElement as D } from "react";
|
|
3
|
-
import { c as V } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as y } from "react-i18next";
|
|
5
|
-
import { A as z } from "./avatar-Dp5apm1d.js";
|
|
6
|
-
import { D as l } from "./description-list-DA4TgL_I.js";
|
|
7
|
-
import { H as E } from "./hover-card-CS8ulBf9.js";
|
|
8
|
-
import { a as H } from "./workflow-status-Cg7yjnye.js";
|
|
9
|
-
import { C as I } from "./clock-Drd4Wtis.js";
|
|
10
|
-
import { V as S } from "./video-BheNGvsu.js";
|
|
11
|
-
import { A as W } from "./armchair-BaLDW6Hz.js";
|
|
12
|
-
import { E as j } from "./eye-off-C_4xkbRP.js";
|
|
13
|
-
import { a as L } from "./entity-card-p-LANpYt.js";
|
|
14
|
-
const R = V(
|
|
15
|
-
"ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]"
|
|
16
|
-
), T = P(
|
|
17
|
-
({
|
|
18
|
-
name: t,
|
|
19
|
-
avatarSrc: h,
|
|
20
|
-
time: u,
|
|
21
|
-
location: m,
|
|
22
|
-
telehealth: x = !1,
|
|
23
|
-
status: s,
|
|
24
|
-
statusLabel: k,
|
|
25
|
-
details: d,
|
|
26
|
-
treatment: p,
|
|
27
|
-
flags: f,
|
|
28
|
-
privacy: r = !1,
|
|
29
|
-
className: N,
|
|
30
|
-
...g
|
|
31
|
-
}, w) => {
|
|
32
|
-
const { t: i } = y("ui"), n = s ? L(s) : null, v = n == null ? void 0 : n.Icon, b = x ? S : W, c = !r, A = [
|
|
33
|
-
{ icon: /* @__PURE__ */ e(I, {}), label: i("appointmentPeek.time"), value: u },
|
|
34
|
-
...m ? [
|
|
35
|
-
{
|
|
36
|
-
icon: /* @__PURE__ */ e(b, {}),
|
|
37
|
-
label: i("appointmentPeek.location"),
|
|
38
|
-
value: m
|
|
39
|
-
}
|
|
40
|
-
] : [],
|
|
41
|
-
...c && p ? [
|
|
42
|
-
{
|
|
43
|
-
icon: null,
|
|
44
|
-
label: i("calendarWorkspace.details.care"),
|
|
45
|
-
value: p
|
|
46
|
-
}
|
|
47
|
-
] : [],
|
|
48
|
-
...c && d ? d.map((a) => ({
|
|
49
|
-
icon: D(a.icon) ? a.icon : null,
|
|
50
|
-
label: a.label,
|
|
51
|
-
value: a.value
|
|
52
|
-
})) : []
|
|
53
|
-
];
|
|
54
|
-
return /* @__PURE__ */ o(
|
|
55
|
-
"div",
|
|
56
|
-
{
|
|
57
|
-
ref: w,
|
|
58
|
-
"data-component": "appointment-peek",
|
|
59
|
-
"data-status": s,
|
|
60
|
-
className: R({ className: N }),
|
|
61
|
-
...g,
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ o("div", { className: "ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
64
|
-
r ? null : /* @__PURE__ */ e(
|
|
65
|
-
z,
|
|
66
|
-
{
|
|
67
|
-
size: "sm",
|
|
68
|
-
name: t,
|
|
69
|
-
src: h,
|
|
70
|
-
"aria-hidden": "true",
|
|
71
|
-
className: "ds:shrink-0"
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ o("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
75
|
-
/* @__PURE__ */ e(E.Heading, { className: "ds:min-w-0", children: r ? /* @__PURE__ */ o("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
76
|
-
/* @__PURE__ */ e(
|
|
77
|
-
j,
|
|
78
|
-
{
|
|
79
|
-
"aria-hidden": "true",
|
|
80
|
-
className: "ds:size-4 ds:shrink-0"
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
i("appointmentPeek.hiddenName")
|
|
84
|
-
] }) : t }),
|
|
85
|
-
c && f ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: f }) : null
|
|
86
|
-
] })
|
|
87
|
-
] }),
|
|
88
|
-
/* @__PURE__ */ e(
|
|
89
|
-
l,
|
|
90
|
-
{
|
|
91
|
-
layout: "inline",
|
|
92
|
-
density: "compact",
|
|
93
|
-
divider: "none",
|
|
94
|
-
className: "ds:[--description-list-icon-color:var(--accent)]",
|
|
95
|
-
children: A.map((a, C) => /* @__PURE__ */ o(l.Row, { icon: a.icon, children: [
|
|
96
|
-
/* @__PURE__ */ e(l.Term, { children: a.label }),
|
|
97
|
-
/* @__PURE__ */ e(l.Detail, { children: a.value })
|
|
98
|
-
] }, C))
|
|
99
|
-
}
|
|
100
|
-
),
|
|
101
|
-
s && n && v ? /* @__PURE__ */ e("div", { "data-slot": "workflow", children: /* @__PURE__ */ e(
|
|
102
|
-
H,
|
|
103
|
-
{
|
|
104
|
-
size: "sm",
|
|
105
|
-
value: s,
|
|
106
|
-
option: {
|
|
107
|
-
value: s,
|
|
108
|
-
label: k ?? i(`appointmentCard.state.${s}`),
|
|
109
|
-
icon: /* @__PURE__ */ e(v, { "aria-hidden": "true" }),
|
|
110
|
-
tone: n.tone
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
) }) : null
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
T.displayName = "AppointmentPeek";
|
|
120
|
-
export {
|
|
121
|
-
T as A
|
|
122
|
-
};
|
|
123
|
-
//# sourceMappingURL=appointment-peek-B3raO90X.js.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { c } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v1.22.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const e = [
|
|
9
|
-
["path", { d: "M16 2v2", key: "scm5qe" }],
|
|
10
|
-
["path", { d: "M17.915 22a6 6 0 0 0-12 0", key: "suqz9p" }],
|
|
11
|
-
["path", { d: "M8 2v2", key: "pbkmx" }],
|
|
12
|
-
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
13
|
-
["rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", key: "12vinp" }]
|
|
14
|
-
], o = c("contact-round", e);
|
|
15
|
-
export {
|
|
16
|
-
o as C
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=contact-round-DiSvB3LP.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { c as o } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v1.22.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const a = [
|
|
9
|
-
[
|
|
10
|
-
"path",
|
|
11
|
-
{
|
|
12
|
-
d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
|
|
13
|
-
key: "1kt360"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
], c = o("folder", a);
|
|
17
|
-
export {
|
|
18
|
-
c as F
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=folder-BghC8_S2.js.map
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
import { jsxs as N, jsx as P } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as le, useRef as k, useCallback as E, useState as _, useMemo as fe, useEffect as pe } from "react";
|
|
3
|
-
import { c as me } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as ve } from "react-i18next";
|
|
5
|
-
import { u as ge, a as be } from "./form-field-context-DtiROUJV.js";
|
|
6
|
-
import { u as q } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
7
|
-
import { u as he } from "./use-dom-value-DTxHhQAN.js";
|
|
8
|
-
import { u as ye } from "./registry-DvAUVLHh.js";
|
|
9
|
-
const xe = {
|
|
10
|
-
id: "text-area",
|
|
11
|
-
capabilities: ["set_value", "edit_inline"],
|
|
12
|
-
state: {
|
|
13
|
-
value: {
|
|
14
|
-
type: "string",
|
|
15
|
-
descriptionKey: "ui.agent.textArea.state.value",
|
|
16
|
-
description: "Current value of the textarea.",
|
|
17
|
-
read: (t) => t.getValue()
|
|
18
|
-
},
|
|
19
|
-
isEmpty: {
|
|
20
|
-
type: "boolean",
|
|
21
|
-
descriptionKey: "ui.agent.textArea.state.isEmpty",
|
|
22
|
-
description: "Whether the textarea has no value.",
|
|
23
|
-
read: (t) => t.getValue() === ""
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
actions: {
|
|
27
|
-
set_value: {
|
|
28
|
-
safety: "write",
|
|
29
|
-
argsType: "{ value: string }",
|
|
30
|
-
argsSchema: {
|
|
31
|
-
type: "object",
|
|
32
|
-
properties: { value: { type: "string" } },
|
|
33
|
-
required: ["value"]
|
|
34
|
-
},
|
|
35
|
-
idempotent: !0,
|
|
36
|
-
descriptionKey: "ui.agent.textArea.actions.setValue",
|
|
37
|
-
description: "Replace the textarea value.",
|
|
38
|
-
invoke: (t, v) => {
|
|
39
|
-
t.setValue(v.value);
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
clear: {
|
|
43
|
-
safety: "destructive",
|
|
44
|
-
idempotent: !0,
|
|
45
|
-
descriptionKey: "ui.agent.textArea.actions.clear",
|
|
46
|
-
description: "Empty the textarea. Loses any typed value.",
|
|
47
|
-
invoke: (t) => {
|
|
48
|
-
t.clear();
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
focus: {
|
|
52
|
-
safety: "read",
|
|
53
|
-
descriptionKey: "ui.agent.textArea.actions.focus",
|
|
54
|
-
description: "Move keyboard focus to the textarea.",
|
|
55
|
-
invoke: (t) => {
|
|
56
|
-
t.focus();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
domHooks: {
|
|
61
|
-
root: {
|
|
62
|
-
attr: "data-component",
|
|
63
|
-
value: "text-area",
|
|
64
|
-
description: "Marks the TextArea wrapper."
|
|
65
|
-
},
|
|
66
|
-
instanceId: {
|
|
67
|
-
attr: "data-component-id",
|
|
68
|
-
sourceProp: "id",
|
|
69
|
-
description: "Sourced from the id prop."
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}, Te = me(
|
|
73
|
-
[
|
|
74
|
-
"ds:block ds:w-full ds:border ds:rounded-[var(--radius-sm)] ds:bg-input ds:text-foreground",
|
|
75
|
-
"ds:shadow-[var(--shadow-input)]",
|
|
76
|
-
"ds:leading-[var(--line-height-base)]",
|
|
77
|
-
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
78
|
-
"ds:focus:outline-none",
|
|
79
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
80
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
81
|
-
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
82
|
-
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
83
|
-
"ds:read-only:bg-muted ds:read-only:cursor-default ds:read-only:shadow-none",
|
|
84
|
-
"ds:transition-[height,color,background-color,border-color,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
85
|
-
"ds:placeholder:text-muted-foreground"
|
|
86
|
-
].join(" "),
|
|
87
|
-
{
|
|
88
|
-
variants: {
|
|
89
|
-
size: {
|
|
90
|
-
sm: "ds:min-h-8 ds:text-[length:var(--font-size-sm)]",
|
|
91
|
-
md: "ds:min-h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)]",
|
|
92
|
-
lg: "ds:min-h-[calc(var(--min-target-size)*1.5)] ds:text-[length:var(--font-size-lg)]"
|
|
93
|
-
},
|
|
94
|
-
tone: {
|
|
95
|
-
default: "ds:border-[color:var(--control-border)]",
|
|
96
|
-
error: "ds:border-destructive"
|
|
97
|
-
},
|
|
98
|
-
resize: {
|
|
99
|
-
auto: "ds:resize-none",
|
|
100
|
-
manual: "ds:resize-y"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
defaultVariants: { size: "md", tone: "default", resize: "manual" }
|
|
104
|
-
}
|
|
105
|
-
), we = (t) => t >= 1 ? "ds:text-destructive" : t >= 0.9 ? "ds:text-warning" : "ds:text-muted-foreground", Ae = (t) => [...t].length, Ve = le(
|
|
106
|
-
({
|
|
107
|
-
size: t = "md",
|
|
108
|
-
tone: v = "default",
|
|
109
|
-
autoResize: n = !1,
|
|
110
|
-
minRows: g = 2,
|
|
111
|
-
maxRows: b,
|
|
112
|
-
showCounter: D,
|
|
113
|
-
className: W,
|
|
114
|
-
id: h,
|
|
115
|
-
disabled: $,
|
|
116
|
-
value: j,
|
|
117
|
-
defaultValue: y,
|
|
118
|
-
maxLength: o,
|
|
119
|
-
rows: Y,
|
|
120
|
-
onChange: i,
|
|
121
|
-
onCompositionStart: x,
|
|
122
|
-
onCompositionEnd: T,
|
|
123
|
-
onInput: G,
|
|
124
|
-
...J
|
|
125
|
-
}, l) => {
|
|
126
|
-
const { t: z } = ve("ui"), d = ge(), B = be(d, h), Q = d.disabled || $, U = d.invalid ? "error" : v, a = k(null), X = E(
|
|
127
|
-
(e) => {
|
|
128
|
-
a.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
|
|
129
|
-
},
|
|
130
|
-
[l]
|
|
131
|
-
), s = j !== void 0, [Z, w] = _(
|
|
132
|
-
String(y ?? "")
|
|
133
|
-
), A = s ? String(j) : Z, f = k(!1), H = he(
|
|
134
|
-
a,
|
|
135
|
-
s ? A : void 0,
|
|
136
|
-
f
|
|
137
|
-
), M = k(s);
|
|
138
|
-
q(() => {
|
|
139
|
-
if (M.current === s || (M.current = s, s)) return;
|
|
140
|
-
const e = String(y ?? "");
|
|
141
|
-
a.current && (a.current.value = e), w(e);
|
|
142
|
-
});
|
|
143
|
-
const V = E(() => {
|
|
144
|
-
const e = a.current;
|
|
145
|
-
if (!e || !n) return;
|
|
146
|
-
const r = window.getComputedStyle(e), u = parseFloat(r.lineHeight), p = parseFloat(r.paddingTop), m = parseFloat(r.paddingBottom), oe = parseFloat(r.borderTopWidth), ie = parseFloat(r.borderBottomWidth), O = p + m + oe + ie, de = (Number.isFinite(u) ? u : 24) * g + O, ce = typeof b == "number" ? (Number.isFinite(u) ? u : 24) * b + O : Number.POSITIVE_INFINITY;
|
|
147
|
-
e.style.height = "auto";
|
|
148
|
-
const ue = Math.max(de, Math.min(e.scrollHeight, ce));
|
|
149
|
-
e.style.height = `${ue}px`;
|
|
150
|
-
}, [n, g, b]);
|
|
151
|
-
q(() => {
|
|
152
|
-
n && V();
|
|
153
|
-
}, [n, V, A]);
|
|
154
|
-
const R = (e) => {
|
|
155
|
-
s || w(e.target.value), !f.current && (i == null || i(e), s && H());
|
|
156
|
-
}, C = (e) => {
|
|
157
|
-
f.current = !0, x == null || x(e);
|
|
158
|
-
}, L = (e) => {
|
|
159
|
-
f.current = !1, T == null || T(e);
|
|
160
|
-
const r = e.currentTarget;
|
|
161
|
-
s || w(r.value), i == null || i({
|
|
162
|
-
...e,
|
|
163
|
-
target: r,
|
|
164
|
-
currentTarget: r
|
|
165
|
-
}), s && H(), n && V();
|
|
166
|
-
}, F = E((e) => {
|
|
167
|
-
var m;
|
|
168
|
-
const r = a.current;
|
|
169
|
-
if (!r) return;
|
|
170
|
-
const u = Object.getPrototypeOf(r), p = (m = Object.getOwnPropertyDescriptor(u, "value")) == null ? void 0 : m.set;
|
|
171
|
-
p == null || p.call(r, e), r.dispatchEvent(new Event("input", { bubbles: !0 })), r.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
172
|
-
}, []), ee = fe(
|
|
173
|
-
() => ({
|
|
174
|
-
getValue: () => {
|
|
175
|
-
var e;
|
|
176
|
-
return ((e = a.current) == null ? void 0 : e.value) ?? "";
|
|
177
|
-
},
|
|
178
|
-
setValue: (e) => F(e),
|
|
179
|
-
clear: () => F(""),
|
|
180
|
-
focus: () => {
|
|
181
|
-
var e;
|
|
182
|
-
return (e = a.current) == null ? void 0 : e.focus();
|
|
183
|
-
}
|
|
184
|
-
}),
|
|
185
|
-
[F]
|
|
186
|
-
);
|
|
187
|
-
ye(xe, ee, h);
|
|
188
|
-
const c = typeof o == "number" && (D ?? !0) && o > 0, I = Ae(A), S = c ? Math.max(0, o - I) : 0, te = c ? I / o : 0, [re, se] = _("");
|
|
189
|
-
pe(() => {
|
|
190
|
-
if (!c) return;
|
|
191
|
-
const e = window.setTimeout(() => {
|
|
192
|
-
f.current || se(
|
|
193
|
-
z("inputs.textarea.charactersRemaining", {
|
|
194
|
-
count: S,
|
|
195
|
-
defaultValue: "{{count}} characters remaining"
|
|
196
|
-
})
|
|
197
|
-
);
|
|
198
|
-
}, 500);
|
|
199
|
-
return () => window.clearTimeout(e);
|
|
200
|
-
}, [c, S, z]);
|
|
201
|
-
const K = c ? `${B}-counter` : void 0, ae = [d.describedBy || void 0, K].filter(Boolean).join(" ") || void 0, ne = n ? "auto" : "manual";
|
|
202
|
-
return /* @__PURE__ */ N(
|
|
203
|
-
"div",
|
|
204
|
-
{
|
|
205
|
-
"data-component": "text-area",
|
|
206
|
-
"data-component-id": h,
|
|
207
|
-
className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
208
|
-
children: [
|
|
209
|
-
/* @__PURE__ */ P(
|
|
210
|
-
"textarea",
|
|
211
|
-
{
|
|
212
|
-
ref: X,
|
|
213
|
-
id: B,
|
|
214
|
-
defaultValue: s ? void 0 : y,
|
|
215
|
-
disabled: Q,
|
|
216
|
-
"aria-describedby": ae,
|
|
217
|
-
"aria-invalid": d.invalid || void 0,
|
|
218
|
-
"aria-required": d.required || void 0,
|
|
219
|
-
maxLength: o,
|
|
220
|
-
rows: n ? g : Y,
|
|
221
|
-
onChange: R,
|
|
222
|
-
onCompositionStart: C,
|
|
223
|
-
onCompositionEnd: L,
|
|
224
|
-
onInput: G,
|
|
225
|
-
className: Te({
|
|
226
|
-
size: t,
|
|
227
|
-
tone: U,
|
|
228
|
-
resize: ne,
|
|
229
|
-
className: W
|
|
230
|
-
}),
|
|
231
|
-
...J
|
|
232
|
-
}
|
|
233
|
-
),
|
|
234
|
-
c ? /* @__PURE__ */ N(
|
|
235
|
-
"div",
|
|
236
|
-
{
|
|
237
|
-
id: K,
|
|
238
|
-
className: "ds:flex ds:justify-end type-meta ds:tabular-nums",
|
|
239
|
-
children: [
|
|
240
|
-
/* @__PURE__ */ N("span", { "aria-hidden": "true", className: we(te), children: [
|
|
241
|
-
I,
|
|
242
|
-
" / ",
|
|
243
|
-
o
|
|
244
|
-
] }),
|
|
245
|
-
/* @__PURE__ */ P("span", { className: "ds:sr-only", "aria-live": "polite", children: re })
|
|
246
|
-
]
|
|
247
|
-
}
|
|
248
|
-
) : null
|
|
249
|
-
]
|
|
250
|
-
}
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
);
|
|
254
|
-
Ve.displayName = "TextArea";
|
|
255
|
-
export {
|
|
256
|
-
Ve as T
|
|
257
|
-
};
|
|
258
|
-
//# sourceMappingURL=text-area-COMVJ1yE.js.map
|