@alfadocs/ui-kit 1.3.13 → 1.4.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/agenda-card.agent-Cb5tuEh3.js +28 -0
- package/dist/_chunks/{alia-sidebar-DzNz1gDf.js → alia-sidebar-DSBZMick.js} +3 -3
- package/dist/_chunks/{anamnesis-i18n-CfC0qYzy.js → anamnesis-i18n-BA631X4t.js} +2209 -2144
- package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js → antenatal-schedule-timeline-u8TsS2QJ.js} +27 -26
- package/dist/_chunks/{appointment-timeline-B630OT_J.js → appointment-timeline-Bqf1sTU5.js} +2 -2
- package/dist/_chunks/{ar-THMLfSoN.js → ar-BR1FGFP2.js} +14 -14
- package/dist/_chunks/{bmi-calculator-CM0-G2mg.js → bmi-calculator-CpyY13MV.js} +2 -2
- package/dist/_chunks/{booking-DjNbd7C1.js → booking-BjsA7j1-.js} +699 -688
- package/dist/_chunks/calculator-dialog-12d3Sxaz.js +48 -0
- package/dist/_chunks/{care-plan-card-1G_f4I5s.js → care-plan-card-BvQy366X.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js → care-plan-entry-card-apk_5B3O.js} +2 -2
- package/dist/_chunks/{chat-container-HlFnoEIl.js → chat-container-CYYego1W.js} +105 -81
- package/dist/_chunks/cycle-calculator-B7fyH-h4.js +425 -0
- package/dist/_chunks/{date-picker-ZHejTVAJ.js → date-picker-Bp64zk2p.js} +19 -19
- package/dist/_chunks/date-picker-variants-pKAJfnWr.js +2089 -0
- package/dist/_chunks/{date-range-picker-pEG3Ln3i.js → date-range-picker-CDrZ8Zh0.js} +27 -27
- package/dist/_chunks/{date-time-picker-695QvBGj.js → date-time-picker-DafkGDGO.js} +10 -10
- package/dist/_chunks/{de-DmZ-8rTN.js → de-3iM4rGqo.js} +7 -7
- package/dist/_chunks/{document-preview-D3gg4MXB.js → document-preview-DOrsqiN1.js} +2 -2
- package/dist/_chunks/due-date-calculator-CnkbbAej.js +571 -0
- package/dist/_chunks/{editor-overlay-DE3esyio.js → editor-overlay-B1tr2i7B.js} +22 -21
- package/dist/_chunks/{el-Bela9mxs.js → el-C96rGJvU.js} +2 -2
- package/dist/_chunks/{es-BNncHKex.js → es-Cxiqjx8r.js} +12 -12
- package/dist/_chunks/fetal-weight-avlj-l-S.js +223 -0
- package/dist/_chunks/format-4HNwNGrN.js +1315 -0
- package/dist/_chunks/{fr-CH8ADfhN.js → fr-Bhr6SYKj.js} +21 -21
- package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js → freemium-paywall-DRDdWuOg.js} +3 -3
- package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js +488 -0
- package/dist/_chunks/hcg-doubling-Cv_vH61p.js +312 -0
- package/dist/_chunks/header-settings-Cn5fPXCE.js +335 -0
- package/dist/_chunks/{hi-Bppfxp8l.js → hi-BxXX26d_.js} +12 -12
- package/dist/_chunks/isSameWeek-B73MagWB.js +13 -0
- package/dist/_chunks/{it-B4ySaRyK.js → it-Xmjomvyj.js} +24 -24
- package/dist/_chunks/{ja-CGF6Io9P.js → ja-mfZvt1ZV.js} +16 -16
- package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js → link-cell-renderer-CJ_gk7gl.js} +3 -3
- package/dist/_chunks/{locale-picker-BfBUdT1m.js → locale-picker-D9Kv2zrK.js} +153 -132
- package/dist/_chunks/map-view-2yZCQW2l.js +445 -0
- package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js} +49 -40
- package/dist/_chunks/{nl-DuShqwuV.js → nl-DDs-KEnD.js} +15 -15
- package/dist/_chunks/{notes-panel-DPsgB4Mv.js → notes-panel-CiFN3sLW.js} +2 -2
- package/dist/_chunks/{number-input-DrozbZAU.js → number-input-DOe5VYei.js} +64 -64
- package/dist/_chunks/{optical-prescription-BDHJr8Zz.js → optical-prescription-CRemE8fL.js} +2 -2
- package/dist/_chunks/{parse-DvA97ro9.js → parse-JqixfsU0.js} +43 -43
- package/dist/_chunks/parseISO-fOGpHKXm.js +120 -0
- package/dist/_chunks/{patient-details-DqjjwPmt.js → patient-details-CpunD0qx.js} +3 -3
- package/dist/_chunks/{patient-table-BmIDrLIS.js → patient-table-2eWx-Rrk.js} +2 -2
- package/dist/_chunks/{payment-form-h-BZ8onk.js → payment-form-Ds1I9KqB.js} +308 -231
- package/dist/_chunks/{pdf-viewer-Ddx-T053.js → pdf-viewer-DUIsV9s5.js} +429 -369
- package/dist/_chunks/{pl-CKQwX9Fk.js → pl-BYYMnEWP.js} +18 -18
- package/dist/_chunks/{practice-results-B-HPc13W.js → practice-results-SjCniMd2.js} +2 -2
- package/dist/_chunks/pregnancy-dating-BmpHScZ0.js +770 -0
- package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js +553 -0
- package/dist/_chunks/progress-CK8otcQ-.js +343 -0
- package/dist/_chunks/{pt-_njpXyOZ.js → pt-BSPnVrQ7.js} +20 -20
- package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js → radiograph-panel.agent-CtFtNMzk.js} +3 -3
- package/dist/_chunks/{rich-text-editor-CfeXPPWs.js → rich-text-editor-BedTpWzL.js} +2 -2
- package/dist/_chunks/{ro-3X6_4FcN.js → ro-BbiylGmG.js} +14 -14
- package/dist/_chunks/{ru-bAcgmnS-.js → ru-BX_qsV67.js} +14 -14
- package/dist/_chunks/{session-countdown-Bc70VXN1.js → session-countdown-BL-Psg8u.js} +2 -2
- package/dist/_chunks/{sign-document-CW_ByDUh.js → sign-document-jF4fZDJ5.js} +2 -2
- package/dist/_chunks/slot-grid-DNiUcXy2.js +640 -0
- package/dist/_chunks/{sparkline-BTY4B5tv.js → sparkline-BmGcEyZO.js} +209 -164
- package/dist/_chunks/{sq-jYFqr4Ga.js → sq-i9UOk4P7.js} +10 -10
- package/dist/_chunks/subDays-CAUv47M1.js +8 -0
- package/dist/_chunks/{sv-BSGEJ-8B.js → sv-CpTdtmDQ.js} +8 -8
- package/dist/_chunks/{tab-bar-Axhk6xzx.js → tab-bar-BYESZINM.js} +83 -77
- package/dist/_chunks/task-card.agent-CF2N_uu4.js +29 -0
- package/dist/_chunks/{tr-CTpgUtw6.js → tr-DXG2QN1K.js} +17 -17
- package/dist/_chunks/{unit-converter-COgkN7YP.js → unit-converter-CHPDuV7W.js} +2 -2
- package/dist/_chunks/{warning-stack-BtjmJChC.js → warning-stack-B7t_8jRE.js} +42 -37
- package/dist/_chunks/{zh-CN-BgM0Io2O.js → zh-CN-vPkPEK6H.js} +18 -18
- package/dist/agent-catalog.json +6426 -3382
- package/dist/agent-i18n/en.json +234 -15
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/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/chat-container/chat-container.d.ts +14 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts +4 -0
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +42 -0
- package/dist/components/cycle-calculator/index.d.ts +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts +4 -0
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +61 -1
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +7 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/fetal-weight/fetal-weight.agent.d.ts +4 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +26 -0
- package/dist/components/fetal-weight/index.d.ts +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts +4 -0
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +44 -2
- package/dist/components/gestational-age-calculator/index.d.ts +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts +4 -0
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +30 -0
- package/dist/components/hcg-doubling/index.d.ts +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/header-settings.d.ts +13 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/locale-picker/locale-picker.d.ts +9 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +22 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +2 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-form/index.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/payment-form/payment-form.d.ts +32 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +13 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.d.ts +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts +4 -0
- package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +65 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts +2 -1
- package/dist/components/pregnancy-weight-gain/index.js +6 -5
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts +4 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +35 -0
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress.d.ts +13 -0
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/slot-grid/index.d.ts +2 -1
- package/dist/components/slot-grid/index.js +5 -4
- package/dist/components/slot-grid/slot-grid.agent.d.ts +4 -0
- package/dist/components/slot-grid/slot-grid.d.ts +34 -0
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +10 -0
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +13 -0
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/index.js +630 -627
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/anamnesis-derive.d.ts +27 -8
- package/dist/patterns/anamnesis/anamnesis-format.d.ts +11 -3
- package/dist/patterns/anamnesis/anamnesis-highlight.d.ts +6 -0
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +23 -9
- package/dist/patterns/anamnesis/anamnesis-types.d.ts +7 -0
- package/dist/patterns/anamnesis/anamnesis.d.ts +16 -7
- package/dist/patterns/anamnesis/index.d.ts +3 -2
- package/dist/patterns/anamnesis/index.js +7 -6
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +6 -0
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js +0 -27
- package/dist/_chunks/calculator-dialog-DuXMQSdm.js +0 -40
- package/dist/_chunks/cycle-calculator-BwqYVPB4.js +0 -252
- package/dist/_chunks/date-picker-variants-eL6HjWvw.js +0 -3363
- package/dist/_chunks/due-date-calculator-CwfsFd3T.js +0 -256
- package/dist/_chunks/fetal-weight-ePlLjJPc.js +0 -122
- package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js +0 -311
- package/dist/_chunks/hcg-doubling-BBqD2wI2.js +0 -170
- package/dist/_chunks/header-settings--pjYOe6g.js +0 -284
- package/dist/_chunks/isSameDay-DUEiAT0G.js +0 -39
- package/dist/_chunks/isSameWeek-CK4HS9lH.js +0 -14
- package/dist/_chunks/map-view-CsaHfoo6.js +0 -378
- package/dist/_chunks/pregnancy-dating-DzYTlBkT.js +0 -421
- package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js +0 -322
- package/dist/_chunks/progress-DA413-zn.js +0 -299
- package/dist/_chunks/slot-grid-CQSULZjd.js +0 -502
- package/dist/_chunks/subDays-BcNi04uf.js +0 -8
- package/dist/_chunks/task-card.agent-Bt14CzUd.js +0 -25
package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as a, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b, useState as E } from "react";
|
|
3
3
|
import { useTranslation as B } from "react-i18next";
|
|
4
4
|
import { c as p } from "./index-D2ZczOXr.js";
|
|
@@ -7,11 +7,11 @@ import { A as S } from "./avatar-BNQNhoyL.js";
|
|
|
7
7
|
import { A as F } from "./alert-CiJT540z.js";
|
|
8
8
|
import { C as w } from "./card-DPmk26CL.js";
|
|
9
9
|
import { D as m } from "./dropdown-menu-DU-Hrf33.js";
|
|
10
|
-
import { T as q } from "./tab-bar-
|
|
10
|
+
import { T as q } from "./tab-bar-BYESZINM.js";
|
|
11
11
|
import { a as A, H as G, g as J, f as z, e as K, c as Q, d as U } from "./header-CjwasYnn.js";
|
|
12
|
-
import { H as X } from "./header-settings
|
|
12
|
+
import { H as X } from "./header-settings-Cn5fPXCE.js";
|
|
13
13
|
import { S as Y } from "./sign-in-with-alfadocs-button-UlYefZpI.js";
|
|
14
|
-
import { S as Z, g as _, b as aa, a as ea, j as sa, k as
|
|
14
|
+
import { S as Z, g as _, b as aa, a as ea, j as sa, k as ta, i as ra, h as I } from "./sidebar-C-Gr2LL-.js";
|
|
15
15
|
import { T as na } from "./theme-root-BOO73p5t.js";
|
|
16
16
|
import { a as da } from "./tooltip-DvmfrNvB.js";
|
|
17
17
|
import { u as ia } from "./use-theme-CAuo6EYT.js";
|
|
@@ -75,14 +75,14 @@ const ua = p("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), fa =
|
|
|
75
75
|
name: s,
|
|
76
76
|
variant: n = "standard",
|
|
77
77
|
monochrome: e = !1,
|
|
78
|
-
tone:
|
|
78
|
+
tone: t = "auto",
|
|
79
79
|
size: d = "md",
|
|
80
80
|
className: l,
|
|
81
81
|
...c
|
|
82
82
|
}, o) => {
|
|
83
83
|
if (n === "maker") {
|
|
84
|
-
const i =
|
|
85
|
-
return /* @__PURE__ */
|
|
84
|
+
const i = t === "inherit", u = i ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", f = i ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", h = i ? "" : "ds:text-[color:var(--muted-foreground)]", v = i ? "" : "ds:text-[color:var(--foreground)]";
|
|
85
|
+
return /* @__PURE__ */ r(
|
|
86
86
|
"span",
|
|
87
87
|
{
|
|
88
88
|
ref: o,
|
|
@@ -107,7 +107,7 @@ const ua = p("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), fa =
|
|
|
107
107
|
children: s
|
|
108
108
|
}
|
|
109
109
|
),
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ r(
|
|
111
111
|
"span",
|
|
112
112
|
{
|
|
113
113
|
"aria-hidden": !0,
|
|
@@ -129,7 +129,7 @@ const ua = p("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), fa =
|
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
131
|
}
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ r(
|
|
133
133
|
"span",
|
|
134
134
|
{
|
|
135
135
|
ref: o,
|
|
@@ -143,7 +143,7 @@ const ua = p("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), fa =
|
|
|
143
143
|
oa,
|
|
144
144
|
{
|
|
145
145
|
variant: e ? "monochrome" : "wordmark",
|
|
146
|
-
tone:
|
|
146
|
+
tone: t,
|
|
147
147
|
size: d,
|
|
148
148
|
decorative: !0
|
|
149
149
|
}
|
|
@@ -172,14 +172,14 @@ function va({
|
|
|
172
172
|
user: s,
|
|
173
173
|
labels: n,
|
|
174
174
|
onSignOut: e,
|
|
175
|
-
onToggleFullscreen:
|
|
175
|
+
onToggleFullscreen: t
|
|
176
176
|
}) {
|
|
177
177
|
const { t: d } = B(), l = n.fullscreen ?? d("marketplaceAppShell.settings.fullscreen");
|
|
178
178
|
return (
|
|
179
179
|
// Non-modal: an account menu shouldn't inert/aria-hide the whole shell
|
|
180
180
|
// behind it (which leaves the still-focusable chrome inside an
|
|
181
181
|
// aria-hidden region — an `aria-hidden-focus` violation).
|
|
182
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ r(m.Root, { modal: !1, children: [
|
|
183
183
|
/* @__PURE__ */ a(m.Trigger, { asChild: !0, children: /* @__PURE__ */ a(
|
|
184
184
|
"button",
|
|
185
185
|
{
|
|
@@ -190,21 +190,21 @@ function va({
|
|
|
190
190
|
children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children: /* @__PURE__ */ a(S, { name: s.name, src: s.avatarSrc, size: "md" }) })
|
|
191
191
|
}
|
|
192
192
|
) }),
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */ a(m.Label, { children: /* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ r(m.Content, { align: "end", collisionPadding: 16, children: [
|
|
194
|
+
/* @__PURE__ */ a(m.Label, { children: /* @__PURE__ */ r("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
195
195
|
/* @__PURE__ */ a("span", { "aria-hidden": "true", children: /* @__PURE__ */ a(S, { name: s.name, src: s.avatarSrc, size: "sm" }) }),
|
|
196
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ r("span", { className: "ds:flex ds:flex-col ds:min-w-0", children: [
|
|
197
197
|
/* @__PURE__ */ a("span", { className: "type-label ds:text-[color:var(--foreground)] ds:truncate", children: s.name }),
|
|
198
198
|
s.email ? /* @__PURE__ */ a("span", { className: "type-meta ds:truncate", children: s.email }) : null
|
|
199
199
|
] })
|
|
200
200
|
] }) }),
|
|
201
|
-
|
|
201
|
+
t ? /* @__PURE__ */ r(M, { children: [
|
|
202
202
|
/* @__PURE__ */ a(m.Separator, {}),
|
|
203
203
|
/* @__PURE__ */ a(
|
|
204
204
|
m.Item,
|
|
205
205
|
{
|
|
206
206
|
startIcon: /* @__PURE__ */ a(ma, { "aria-hidden": !0 }),
|
|
207
|
-
onSelect:
|
|
207
|
+
onSelect: t,
|
|
208
208
|
"data-testid": "marketplace-fullscreen",
|
|
209
209
|
children: l
|
|
210
210
|
}
|
|
@@ -229,10 +229,10 @@ function xa({
|
|
|
229
229
|
renderLink: n
|
|
230
230
|
}) {
|
|
231
231
|
return /* @__PURE__ */ a(ea, { children: s.map((e) => {
|
|
232
|
-
const
|
|
232
|
+
const t = typeof e.badgeCount == "number" && e.badgeCount > 0 ? e.badgeCount : void 0, d = /* @__PURE__ */ r(M, { children: [
|
|
233
233
|
e.icon ? /* @__PURE__ */ a(sa, { children: e.icon }) : null,
|
|
234
|
-
/* @__PURE__ */ a(
|
|
235
|
-
|
|
234
|
+
/* @__PURE__ */ a(ta, { children: e.label }),
|
|
235
|
+
t !== void 0 ? /* @__PURE__ */ a(ra, { children: ga(t) }) : null
|
|
236
236
|
] });
|
|
237
237
|
return n ? /* @__PURE__ */ a(I, { asChild: !0, isActive: e.isActive, children: n({
|
|
238
238
|
href: e.href,
|
|
@@ -269,18 +269,27 @@ function ba({
|
|
|
269
269
|
ariaLabel: n,
|
|
270
270
|
renderLink: e
|
|
271
271
|
}) {
|
|
272
|
-
const
|
|
272
|
+
const t = e ? ({
|
|
273
273
|
href: d,
|
|
274
274
|
className: l,
|
|
275
275
|
children: c,
|
|
276
|
-
"aria-current": o
|
|
277
|
-
|
|
276
|
+
"aria-current": o,
|
|
277
|
+
"data-tab-id": i
|
|
278
|
+
}) => e({
|
|
279
|
+
href: d,
|
|
280
|
+
className: l,
|
|
281
|
+
children: c,
|
|
282
|
+
"aria-current": o,
|
|
283
|
+
// Forward the agent DOM hook — without it a consumer-router tab is
|
|
284
|
+
// invisible to `[data-tab-id]` lookups (PRS §26 §6).
|
|
285
|
+
"data-tab-id": i
|
|
286
|
+
}) : void 0;
|
|
278
287
|
return /* @__PURE__ */ a(
|
|
279
288
|
q,
|
|
280
289
|
{
|
|
281
290
|
items: s,
|
|
282
291
|
ariaLabel: n,
|
|
283
|
-
...
|
|
292
|
+
...t ? { renderLink: t } : {}
|
|
284
293
|
}
|
|
285
294
|
);
|
|
286
295
|
}
|
|
@@ -289,7 +298,7 @@ const ka = b(
|
|
|
289
298
|
productName: s,
|
|
290
299
|
productHref: n = "/",
|
|
291
300
|
nav: e,
|
|
292
|
-
renderLink:
|
|
301
|
+
renderLink: t,
|
|
293
302
|
user: d,
|
|
294
303
|
labels: l,
|
|
295
304
|
onSignOut: c,
|
|
@@ -300,7 +309,7 @@ const ka = b(
|
|
|
300
309
|
variant: h = "standalone",
|
|
301
310
|
children: v
|
|
302
311
|
}, k) => {
|
|
303
|
-
const { t: x } = B(), H =
|
|
312
|
+
const { t: x } = B(), H = t ? /* @__PURE__ */ a(A, { asChild: !0, children: t({
|
|
304
313
|
href: n,
|
|
305
314
|
children: /* @__PURE__ */ a(
|
|
306
315
|
g,
|
|
@@ -330,14 +339,14 @@ const ka = b(
|
|
|
330
339
|
{
|
|
331
340
|
mainAriaLabel: f,
|
|
332
341
|
mainClassName: T({ variant: "standalone" }),
|
|
333
|
-
header: /* @__PURE__ */
|
|
334
|
-
/* @__PURE__ */
|
|
342
|
+
header: /* @__PURE__ */ r(G, { children: [
|
|
343
|
+
/* @__PURE__ */ r(J, { children: [
|
|
335
344
|
/* @__PURE__ */ a(z, { href: "#main-content" }),
|
|
336
345
|
/* @__PURE__ */ a(K, { onMenuOpen: () => N(!0) }),
|
|
337
346
|
H
|
|
338
347
|
] }),
|
|
339
348
|
/* @__PURE__ */ a(Q, {}),
|
|
340
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ r(U, { children: [
|
|
341
350
|
/* @__PURE__ */ a(X, { size: "sm" }),
|
|
342
351
|
/* @__PURE__ */ a(
|
|
343
352
|
va,
|
|
@@ -350,7 +359,7 @@ const ka = b(
|
|
|
350
359
|
)
|
|
351
360
|
] })
|
|
352
361
|
] }),
|
|
353
|
-
sidebar: /* @__PURE__ */
|
|
362
|
+
sidebar: /* @__PURE__ */ r(
|
|
354
363
|
Z,
|
|
355
364
|
{
|
|
356
365
|
...i !== void 0 ? { state: i } : { defaultState: "expanded" },
|
|
@@ -366,7 +375,7 @@ const ka = b(
|
|
|
366
375
|
// the icon-mode centring and offset the toggle in the rail.
|
|
367
376
|
/* @__PURE__ */ a(_, { children: /* @__PURE__ */ a(aa, {}) })
|
|
368
377
|
) : null,
|
|
369
|
-
/* @__PURE__ */ a(xa, { nav: e, renderLink:
|
|
378
|
+
/* @__PURE__ */ a(xa, { nav: e, renderLink: t })
|
|
370
379
|
]
|
|
371
380
|
}
|
|
372
381
|
),
|
|
@@ -375,14 +384,14 @@ const ka = b(
|
|
|
375
384
|
) }), P = (
|
|
376
385
|
// The shell owns the warm-grey canvas; TabBar's strip is transparent and
|
|
377
386
|
// floats its pill on it, and `<main>` continues the same surface.
|
|
378
|
-
/* @__PURE__ */
|
|
387
|
+
/* @__PURE__ */ r("div", { className: "ds:flex ds:min-h-dvh ds:flex-col ds:bg-[color:var(--app-shell-background)]", children: [
|
|
379
388
|
/* @__PURE__ */ a(z, { href: "#main-content" }),
|
|
380
389
|
/* @__PURE__ */ a(
|
|
381
390
|
ba,
|
|
382
391
|
{
|
|
383
392
|
nav: e,
|
|
384
393
|
ariaLabel: x("navigation.sidebar.label"),
|
|
385
|
-
renderLink:
|
|
394
|
+
renderLink: t
|
|
386
395
|
}
|
|
387
396
|
),
|
|
388
397
|
/* @__PURE__ */ a(
|
|
@@ -448,7 +457,7 @@ const ya = p(
|
|
|
448
457
|
productName: s,
|
|
449
458
|
title: n,
|
|
450
459
|
description: e,
|
|
451
|
-
connectLabel:
|
|
460
|
+
connectLabel: t,
|
|
452
461
|
status: d = "idle",
|
|
453
462
|
error: l,
|
|
454
463
|
onConnect: c,
|
|
@@ -456,7 +465,7 @@ const ya = p(
|
|
|
456
465
|
layout: i = "card",
|
|
457
466
|
brandPanel: u,
|
|
458
467
|
className: f
|
|
459
|
-
}, h) => /* @__PURE__ */
|
|
468
|
+
}, h) => /* @__PURE__ */ r(
|
|
460
469
|
"div",
|
|
461
470
|
{
|
|
462
471
|
ref: h,
|
|
@@ -468,7 +477,7 @@ const ya = p(
|
|
|
468
477
|
// monochrome lockup riding the `--primary-foreground` ink, plus an
|
|
469
478
|
// optional `brandPanel` slot. Decorative — the card carries the real
|
|
470
479
|
// heading + CTA, and shows its own lockup below `lg:`.
|
|
471
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ r("div", { className: "ds:hidden ds:lg:flex ds:lg:w-[55%] ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-lg)] ds:bg-[color:var(--primary)] ds:text-[color:var(--primary-foreground)] ds:ps-[var(--spacing-2xl)] ds:pe-[var(--spacing-2xl)] ds:pt-[var(--spacing-2xl)] ds:pb-[var(--spacing-2xl)] ds:text-start", children: [
|
|
472
481
|
/* @__PURE__ */ a(
|
|
473
482
|
g,
|
|
474
483
|
{
|
|
@@ -482,7 +491,7 @@ const ya = p(
|
|
|
482
491
|
u ? /* @__PURE__ */ a("div", { className: "type-body ds:max-w-[28rem] ds:text-start", children: u }) : null
|
|
483
492
|
] })
|
|
484
493
|
) : null,
|
|
485
|
-
/* @__PURE__ */ a("div", { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ a(w, { className: Na({ layout: i }), children: /* @__PURE__ */
|
|
494
|
+
/* @__PURE__ */ a("div", { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ a(w, { className: Na({ layout: i }), children: /* @__PURE__ */ r(w.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center", children: [
|
|
486
495
|
/* @__PURE__ */ a(
|
|
487
496
|
g,
|
|
488
497
|
{
|
|
@@ -492,7 +501,7 @@ const ya = p(
|
|
|
492
501
|
className: Ca({ layout: i })
|
|
493
502
|
}
|
|
494
503
|
),
|
|
495
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
496
505
|
/* @__PURE__ */ a("h1", { className: "type-title-card", children: n }),
|
|
497
506
|
/* @__PURE__ */ a("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: e })
|
|
498
507
|
] }),
|
|
@@ -504,7 +513,7 @@ const ya = p(
|
|
|
504
513
|
className: "ds:w-full",
|
|
505
514
|
loading: d === "connecting",
|
|
506
515
|
onClick: c,
|
|
507
|
-
label:
|
|
516
|
+
label: t,
|
|
508
517
|
"data-testid": "connect-with-alfadocs-button"
|
|
509
518
|
}
|
|
510
519
|
),
|
|
@@ -520,4 +529,4 @@ export {
|
|
|
520
529
|
ka as M,
|
|
521
530
|
g as P
|
|
522
531
|
};
|
|
523
|
-
//# sourceMappingURL=marketplace-app-shell-
|
|
532
|
+
//# sourceMappingURL=marketplace-app-shell-BLRvg-M0.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as d, h as n, j as r, k as s } from "./format-4HNwNGrN.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "minder dan een seconde",
|
|
@@ -205,7 +205,7 @@ const m = {
|
|
|
205
205
|
values: M,
|
|
206
206
|
defaultWidth: "wide"
|
|
207
207
|
})
|
|
208
|
-
},
|
|
208
|
+
}, k = /^(\d+)e?/i, z = /\d+/i, W = {
|
|
209
209
|
narrow: /^([vn]\.? ?C\.?)/,
|
|
210
210
|
abbreviated: /^([vn]\. ?Chr\.?)/,
|
|
211
211
|
wide: /^((voor|na) Christus)/
|
|
@@ -217,11 +217,11 @@ const m = {
|
|
|
217
217
|
wide: /^[1234]e kwartaal/i
|
|
218
218
|
}, x = {
|
|
219
219
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
220
|
-
},
|
|
220
|
+
}, H = {
|
|
221
221
|
narrow: /^[jfmasond]/i,
|
|
222
222
|
abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,
|
|
223
223
|
wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i
|
|
224
|
-
},
|
|
224
|
+
}, F = {
|
|
225
225
|
narrow: [
|
|
226
226
|
/^j/i,
|
|
227
227
|
/^f/i,
|
|
@@ -255,12 +255,12 @@ const m = {
|
|
|
255
255
|
short: /^(zo|ma|di|wo|do|vr|za)/i,
|
|
256
256
|
abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i,
|
|
257
257
|
wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i
|
|
258
|
-
},
|
|
258
|
+
}, V = {
|
|
259
259
|
narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i],
|
|
260
260
|
any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i]
|
|
261
|
-
},
|
|
261
|
+
}, A = {
|
|
262
262
|
any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i
|
|
263
|
-
},
|
|
263
|
+
}, E = {
|
|
264
264
|
any: {
|
|
265
265
|
am: /^am/i,
|
|
266
266
|
pm: /^pm/i,
|
|
@@ -273,8 +273,8 @@ const m = {
|
|
|
273
273
|
}
|
|
274
274
|
}, L = {
|
|
275
275
|
ordinalNumber: s({
|
|
276
|
-
matchPattern:
|
|
277
|
-
parsePattern:
|
|
276
|
+
matchPattern: k,
|
|
277
|
+
parsePattern: z,
|
|
278
278
|
valueCallback: (e) => parseInt(e, 10)
|
|
279
279
|
}),
|
|
280
280
|
era: r({
|
|
@@ -291,21 +291,21 @@ const m = {
|
|
|
291
291
|
valueCallback: (e) => e + 1
|
|
292
292
|
}),
|
|
293
293
|
month: r({
|
|
294
|
-
matchPatterns:
|
|
294
|
+
matchPatterns: H,
|
|
295
295
|
defaultMatchWidth: "wide",
|
|
296
|
-
parsePatterns:
|
|
296
|
+
parsePatterns: F,
|
|
297
297
|
defaultParseWidth: "any"
|
|
298
298
|
}),
|
|
299
299
|
day: r({
|
|
300
300
|
matchPatterns: X,
|
|
301
301
|
defaultMatchWidth: "wide",
|
|
302
|
-
parsePatterns:
|
|
302
|
+
parsePatterns: V,
|
|
303
303
|
defaultParseWidth: "any"
|
|
304
304
|
}),
|
|
305
305
|
dayPeriod: r({
|
|
306
|
-
matchPatterns:
|
|
306
|
+
matchPatterns: A,
|
|
307
307
|
defaultMatchWidth: "any",
|
|
308
|
-
parsePatterns:
|
|
308
|
+
parsePatterns: E,
|
|
309
309
|
defaultParseWidth: "any"
|
|
310
310
|
})
|
|
311
311
|
}, S = {
|
|
@@ -323,4 +323,4 @@ const m = {
|
|
|
323
323
|
export {
|
|
324
324
|
S as nl
|
|
325
325
|
};
|
|
326
|
-
//# sourceMappingURL=nl-
|
|
326
|
+
//# sourceMappingURL=nl-DDs-KEnD.js.map
|
|
@@ -4,7 +4,7 @@ import { c as pe } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as fe } from "react-i18next";
|
|
5
5
|
import { u as me } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { C as ge } from "./clinical-note-card-D63x_AkK.js";
|
|
7
|
-
import { R as he } from "./rich-text-editor-
|
|
7
|
+
import { R as he } from "./rich-text-editor-BedTpWzL.js";
|
|
8
8
|
import { T as be } from "./text-area-Bt3p7Pt0.js";
|
|
9
9
|
import { B as ve } from "./button-CPGiR_bH.js";
|
|
10
10
|
import { C as ye } from "./checkbox-BuZ1u__2.js";
|
|
@@ -348,4 +348,4 @@ const Se = se(
|
|
|
348
348
|
export {
|
|
349
349
|
Se as N
|
|
350
350
|
};
|
|
351
|
-
//# sourceMappingURL=notes-panel-
|
|
351
|
+
//# sourceMappingURL=notes-panel-CiFN3sLW.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMemo as Y, forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { c as
|
|
8
|
-
import { u as
|
|
9
|
-
import { C as
|
|
10
|
-
import { C as
|
|
11
|
-
const
|
|
1
|
+
import { jsxs as Ie, jsx as F } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as Y, forwardRef as De, useRef as K, useCallback as z, useState as q, useEffect as xe } from "react";
|
|
3
|
+
import { c as Ce } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Fe } from "react-i18next";
|
|
5
|
+
import { u as Se } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
|
+
import { u as Ve } from "./form-field-context-B3APVHKx.js";
|
|
7
|
+
import { c as Me } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
+
import { u as ke } from "./registry-DvAUVLHh.js";
|
|
9
|
+
import { C as Te } from "./chevron-down-DWE7GSq9.js";
|
|
10
|
+
import { C as Pe } from "./chevron-up-umRGgtJA.js";
|
|
11
|
+
const ze = {
|
|
12
12
|
id: "number-input",
|
|
13
13
|
capabilities: ["set_value"],
|
|
14
14
|
state: {
|
|
@@ -74,7 +74,7 @@ const Pe = {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
function
|
|
77
|
+
function Re(n) {
|
|
78
78
|
let s = "";
|
|
79
79
|
for (const l of n) {
|
|
80
80
|
const r = l.codePointAt(0);
|
|
@@ -82,7 +82,7 @@ function ze(n) {
|
|
|
82
82
|
}
|
|
83
83
|
return s;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Ae(n, s, l) {
|
|
86
86
|
return Y(() => {
|
|
87
87
|
var V, M;
|
|
88
88
|
const r = new Intl.NumberFormat(n).formatToParts(1234.5), u = ((V = r.find((a) => a.type === "decimal")) == null ? void 0 : V.value) ?? ".", S = ((M = r.find((a) => a.type === "group")) == null ? void 0 : M.value) ?? ",", p = s === "currency" ? new Intl.NumberFormat(n, {
|
|
@@ -93,7 +93,7 @@ function Re(n, s, l) {
|
|
|
93
93
|
maximumFractionDigits: 4
|
|
94
94
|
}) : s === "integer" ? new Intl.NumberFormat(n, { maximumFractionDigits: 0 }) : new Intl.NumberFormat(n, { maximumFractionDigits: 10 }), R = (a) => Number.isFinite(a) ? p.format(a) : "", A = (a) => {
|
|
95
95
|
if (!a) return NaN;
|
|
96
|
-
const k =
|
|
96
|
+
const k = Re(a), h = k.trim(), I = h.startsWith("-") || h.startsWith("−");
|
|
97
97
|
let d = "";
|
|
98
98
|
for (const N of k)
|
|
99
99
|
N >= "0" && N <= "9" ? d += N : N === u && (d += ".");
|
|
@@ -123,7 +123,7 @@ function Re(n, s, l) {
|
|
|
123
123
|
};
|
|
124
124
|
}, [n, s, l]);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const je = Ce(
|
|
127
127
|
[
|
|
128
128
|
"ds:flex ds:items-center ds:w-full ds:rounded-[var(--radius-sm)]",
|
|
129
129
|
"ds:border ds:bg-input ds:text-foreground",
|
|
@@ -153,18 +153,18 @@ const Ae = xe(
|
|
|
153
153
|
"ds:text-muted-foreground ds:hover:text-foreground",
|
|
154
154
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
155
155
|
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
156
|
-
].join(" "),
|
|
157
|
-
function
|
|
156
|
+
].join(" "), Be = () => typeof navigator < "u" && navigator.language ? navigator.language : "en-US", Ee = (n) => typeof n == "string" && n.trim() !== "" ? n : void 0;
|
|
157
|
+
function Ue(n) {
|
|
158
158
|
if (!Number.isFinite(n)) return 0;
|
|
159
159
|
const s = String(n), l = s.indexOf(".");
|
|
160
160
|
return l === -1 ? 0 : s.length - l - 1;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Le(n, s) {
|
|
163
163
|
if (s <= 0 || !Number.isFinite(s)) return n;
|
|
164
|
-
const r = 10 **
|
|
164
|
+
const r = 10 ** Ue(s);
|
|
165
165
|
return Math.round(n * r) / r;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const Ke = De(
|
|
168
168
|
({
|
|
169
169
|
value: n,
|
|
170
170
|
defaultValue: s,
|
|
@@ -185,16 +185,16 @@ const Ue = Ie(
|
|
|
185
185
|
onKeyDown: d,
|
|
186
186
|
...m
|
|
187
187
|
}, N) => {
|
|
188
|
-
const { t: H } =
|
|
188
|
+
const { t: H, i18n: Z } = Fe(), D = Ve(), ee = a ?? D.id, T = !!(D.disabled || k), te = A ?? Ee(Z.language) ?? Be(), j = Ae(te, p, R), {
|
|
189
189
|
decimalSeparator: P,
|
|
190
190
|
groupingSeparator: W,
|
|
191
191
|
format: B,
|
|
192
192
|
parse: O
|
|
193
|
-
} = j, _ =
|
|
193
|
+
} = j, _ = K(null), ne = Me(N, _), [re, se] = Se({
|
|
194
194
|
value: n,
|
|
195
195
|
defaultValue: s ?? null,
|
|
196
196
|
onChange: l
|
|
197
|
-
}), i =
|
|
197
|
+
}), i = re ?? null, $ = K(i);
|
|
198
198
|
$.current = i;
|
|
199
199
|
const x = z(
|
|
200
200
|
(e) => {
|
|
@@ -207,54 +207,54 @@ const Ue = Ie(
|
|
|
207
207
|
[B]
|
|
208
208
|
), [E, c] = q(
|
|
209
209
|
() => v(i)
|
|
210
|
-
), y =
|
|
210
|
+
), y = K(!1), [oe, b] = q(!1), [U, C] = q(!1), L = z(
|
|
211
211
|
(e) => {
|
|
212
212
|
if (e >= "0" && e <= "9") return !0;
|
|
213
213
|
const t = e.codePointAt(0) ?? 0;
|
|
214
214
|
return t >= 1632 && t <= 1641 || t >= 1776 && t <= 1785 ? !0 : e === P || e === W || e === "-" || e === "−";
|
|
215
215
|
},
|
|
216
216
|
[P, W]
|
|
217
|
-
),
|
|
217
|
+
), ie = z(
|
|
218
218
|
(e) => {
|
|
219
219
|
let t = "";
|
|
220
220
|
for (const o of e)
|
|
221
|
-
|
|
221
|
+
L(o) && (t += o);
|
|
222
222
|
return t;
|
|
223
223
|
},
|
|
224
|
-
[
|
|
224
|
+
[L]
|
|
225
225
|
);
|
|
226
|
-
|
|
226
|
+
xe(() => {
|
|
227
227
|
!y.current && !U && c(v(i));
|
|
228
228
|
}, [i, v, U]);
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const ae = oe || U || i !== null && (r !== void 0 && i < r || u !== void 0 && i > u), G = D.invalid || ae, ue = G ? "error" : V ?? "default", f = (e) => {
|
|
230
|
+
se(e);
|
|
231
231
|
}, w = (e) => {
|
|
232
232
|
let o = (i ?? 0) + S * e;
|
|
233
|
-
r !== void 0 && (o = Math.max(r, o)), u !== void 0 && (o = Math.min(u, o)), o =
|
|
233
|
+
r !== void 0 && (o = Math.max(r, o)), u !== void 0 && (o = Math.min(u, o)), o = Le(o, S), f(o), b(!1), c(
|
|
234
234
|
y.current ? x(o) : v(o)
|
|
235
235
|
);
|
|
236
236
|
}, J = (e) => {
|
|
237
237
|
f(e), b(!1), c(
|
|
238
238
|
y.current ? x(e) : v(e)
|
|
239
239
|
);
|
|
240
|
-
},
|
|
240
|
+
}, le = (e) => {
|
|
241
241
|
if (d == null || d(e), e.defaultPrevented || T) return;
|
|
242
242
|
const { key: t, shiftKey: o } = e;
|
|
243
243
|
t === "ArrowUp" ? (e.preventDefault(), w(o ? 10 : 1)) : t === "ArrowDown" ? (e.preventDefault(), w(o ? -10 : -1)) : t === "PageUp" ? (e.preventDefault(), w(100)) : t === "PageDown" ? (e.preventDefault(), w(-100)) : t === "Home" && r !== void 0 ? (e.preventDefault(), J(r)) : t === "End" && u !== void 0 && (e.preventDefault(), J(u));
|
|
244
|
-
},
|
|
245
|
-
const t =
|
|
244
|
+
}, de = (e) => {
|
|
245
|
+
const t = ie(e.target.value);
|
|
246
246
|
if (c(t), t.trim() === "") {
|
|
247
247
|
f(null), b(!1), C(!1);
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
250
|
const o = O(t);
|
|
251
251
|
Number.isNaN(o) || (f(o), C(!1));
|
|
252
|
-
}, de = (e) => {
|
|
253
|
-
const { data: t } = e.nativeEvent;
|
|
254
|
-
typeof t != "string" || t.length !== 1 || K(t) || e.preventDefault();
|
|
255
252
|
}, ce = (e) => {
|
|
256
|
-
|
|
253
|
+
const { data: t } = e.nativeEvent;
|
|
254
|
+
typeof t != "string" || t.length !== 1 || L(t) || e.preventDefault();
|
|
257
255
|
}, fe = (e) => {
|
|
256
|
+
h == null || h(e), y.current = !0, i != null && c(x(i));
|
|
257
|
+
}, pe = (e) => {
|
|
258
258
|
if (I == null || I(e), y.current = !1, E.trim() === "") {
|
|
259
259
|
f(null), b(!1), C(!1), c("");
|
|
260
260
|
return;
|
|
@@ -268,7 +268,7 @@ const Ue = Ie(
|
|
|
268
268
|
b(o), C(!1), f(t), c(v(t));
|
|
269
269
|
}, Q = (e) => {
|
|
270
270
|
e.preventDefault();
|
|
271
|
-
},
|
|
271
|
+
}, me = () => w(1), ve = () => w(-1), be = Y(
|
|
272
272
|
() => ({
|
|
273
273
|
getValue: () => $.current,
|
|
274
274
|
setValue: (e) => {
|
|
@@ -289,14 +289,14 @@ const Ue = Ie(
|
|
|
289
289
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
290
290
|
[x, v]
|
|
291
291
|
);
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
return /* @__PURE__ */
|
|
292
|
+
ke(ze, be, a);
|
|
293
|
+
const ge = T || r !== void 0 && i !== null && i <= r, he = T || u !== void 0 && i !== null && i >= u, Ne = i ?? void 0, ye = (p === "currency" || p === "percentage") && i !== null && i !== null ? B(i) : void 0, we = j.inputMode === "numeric" ? "[0-9]*" : void 0;
|
|
294
|
+
return /* @__PURE__ */ Ie(
|
|
295
295
|
"div",
|
|
296
296
|
{
|
|
297
|
-
className:
|
|
297
|
+
className: je({
|
|
298
298
|
size: g,
|
|
299
|
-
tone:
|
|
299
|
+
tone: ue,
|
|
300
300
|
className: M
|
|
301
301
|
}),
|
|
302
302
|
"data-component": "number-input",
|
|
@@ -309,37 +309,37 @@ const Ue = Ie(
|
|
|
309
309
|
type: "button",
|
|
310
310
|
tabIndex: -1,
|
|
311
311
|
"aria-label": H("inputs.number.decrement", "Decrement"),
|
|
312
|
-
onClick:
|
|
312
|
+
onClick: ve,
|
|
313
313
|
onMouseDown: Q,
|
|
314
|
-
disabled:
|
|
314
|
+
disabled: ge,
|
|
315
315
|
className: `${X} ds:ps-2 ds:pe-1`,
|
|
316
|
-
children: /* @__PURE__ */ F(
|
|
316
|
+
children: /* @__PURE__ */ F(Te, { "aria-hidden": "true", className: "ds:size-4" })
|
|
317
317
|
}
|
|
318
318
|
),
|
|
319
319
|
/* @__PURE__ */ F(
|
|
320
320
|
"input",
|
|
321
321
|
{
|
|
322
|
-
ref:
|
|
323
|
-
id:
|
|
322
|
+
ref: ne,
|
|
323
|
+
id: ee,
|
|
324
324
|
type: "text",
|
|
325
325
|
role: "spinbutton",
|
|
326
326
|
inputMode: j.inputMode,
|
|
327
|
-
pattern:
|
|
327
|
+
pattern: we,
|
|
328
328
|
autoComplete: "off",
|
|
329
329
|
value: E,
|
|
330
330
|
disabled: T,
|
|
331
331
|
"aria-valuemin": r,
|
|
332
332
|
"aria-valuemax": u,
|
|
333
|
-
"aria-valuenow":
|
|
334
|
-
"aria-valuetext":
|
|
333
|
+
"aria-valuenow": Ne,
|
|
334
|
+
"aria-valuetext": ye,
|
|
335
335
|
"aria-invalid": G || void 0,
|
|
336
336
|
"aria-required": D.required || void 0,
|
|
337
337
|
"aria-describedby": D.describedBy || void 0,
|
|
338
|
-
onBeforeInput:
|
|
339
|
-
onChange:
|
|
340
|
-
onFocus:
|
|
341
|
-
onBlur:
|
|
342
|
-
onKeyDown:
|
|
338
|
+
onBeforeInput: ce,
|
|
339
|
+
onChange: de,
|
|
340
|
+
onFocus: fe,
|
|
341
|
+
onBlur: pe,
|
|
342
|
+
onKeyDown: le,
|
|
343
343
|
className: "ds:flex-1 ds:w-full ds:min-w-0 ds:bg-transparent ds:outline-none ds:ps-2 ds:pe-2 ds:text-start ds:tabular-nums ds:disabled:cursor-not-allowed",
|
|
344
344
|
...m
|
|
345
345
|
}
|
|
@@ -350,11 +350,11 @@ const Ue = Ie(
|
|
|
350
350
|
type: "button",
|
|
351
351
|
tabIndex: -1,
|
|
352
352
|
"aria-label": H("inputs.number.increment", "Increment"),
|
|
353
|
-
onClick:
|
|
353
|
+
onClick: me,
|
|
354
354
|
onMouseDown: Q,
|
|
355
|
-
disabled:
|
|
355
|
+
disabled: he,
|
|
356
356
|
className: `${X} ds:ps-1 ds:pe-2`,
|
|
357
|
-
children: /* @__PURE__ */ F(
|
|
357
|
+
children: /* @__PURE__ */ F(Pe, { "aria-hidden": "true", className: "ds:size-4" })
|
|
358
358
|
}
|
|
359
359
|
)
|
|
360
360
|
]
|
|
@@ -362,9 +362,9 @@ const Ue = Ie(
|
|
|
362
362
|
);
|
|
363
363
|
}
|
|
364
364
|
);
|
|
365
|
-
|
|
365
|
+
Ke.displayName = "NumberInput";
|
|
366
366
|
export {
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
Ke as N,
|
|
368
|
+
Ae as u
|
|
369
369
|
};
|
|
370
|
-
//# sourceMappingURL=number-input-
|
|
370
|
+
//# sourceMappingURL=number-input-DOe5VYei.js.map
|