@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as u, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as u, jsx as e, Fragment as on } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as cn, useId as P, useState as y, useEffect as f, useMemo as U, useRef as N, useCallback as b } from "react";
|
|
3
3
|
import { c as dn } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as ln } from "react-i18next";
|
|
@@ -43,27 +43,27 @@ function xn() {
|
|
|
43
43
|
const i = window.getComputedStyle(document.documentElement).getPropertyValue("--animation-duration").trim(), l = parseFloat(i);
|
|
44
44
|
return Number.isFinite(l) ? i.endsWith("ms") ? l : l * 1e3 : 200;
|
|
45
45
|
}
|
|
46
|
-
function kn(
|
|
46
|
+
function kn(o, i) {
|
|
47
47
|
return [
|
|
48
48
|
"ds:grid ds:transition-[grid-template-rows]",
|
|
49
49
|
"ds:duration-[var(--animation-duration)]",
|
|
50
50
|
"ds:motion-reduce:transition-none",
|
|
51
|
-
|
|
51
|
+
o ? "ds:grid-rows-[0fr]" : "ds:grid-rows-[1fr]",
|
|
52
52
|
i ? "ds:h-full ds:self-stretch" : ""
|
|
53
53
|
].filter(Boolean).join(" ");
|
|
54
54
|
}
|
|
55
|
-
function yn(
|
|
55
|
+
function yn(o, i) {
|
|
56
56
|
return [
|
|
57
57
|
"ds:min-h-0",
|
|
58
58
|
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
59
59
|
"ds:motion-reduce:transition-none",
|
|
60
|
-
|
|
60
|
+
o ? "ds:opacity-0 ds:overflow-hidden" : "ds:opacity-100",
|
|
61
61
|
i ? "ds:pointer-events-none" : ""
|
|
62
62
|
].filter(Boolean).join(" ");
|
|
63
63
|
}
|
|
64
64
|
const Nn = cn(
|
|
65
65
|
({
|
|
66
|
-
items:
|
|
66
|
+
items: o,
|
|
67
67
|
title: i,
|
|
68
68
|
description: l,
|
|
69
69
|
maxVisible: m = 2,
|
|
@@ -84,13 +84,13 @@ const Nn = cn(
|
|
|
84
84
|
f(() => {
|
|
85
85
|
j((n) => {
|
|
86
86
|
if (n.size === 0) return n;
|
|
87
|
-
const t = new Set(
|
|
88
|
-
return
|
|
87
|
+
const t = new Set(o.map((c) => c.id)), a = new Set([...n].filter((c) => t.has(c)));
|
|
88
|
+
return a.size === n.size ? n : a;
|
|
89
89
|
});
|
|
90
|
-
}, [
|
|
90
|
+
}, [o]);
|
|
91
91
|
const r = U(
|
|
92
|
-
() =>
|
|
93
|
-
[
|
|
92
|
+
() => o.filter((n) => !R.has(n.id)),
|
|
93
|
+
[o, R]
|
|
94
94
|
), v = m !== void 0 && r.length > m, [h, Y] = y(V), L = N(null), z = N(r.length);
|
|
95
95
|
f(() => {
|
|
96
96
|
if (!L.current) return;
|
|
@@ -128,20 +128,20 @@ const Nn = cn(
|
|
|
128
128
|
k.current = null;
|
|
129
129
|
const t = q.current;
|
|
130
130
|
if (!t) return;
|
|
131
|
-
const
|
|
131
|
+
const a = Array.from(
|
|
132
132
|
t.querySelectorAll("[data-alert-dismiss]")
|
|
133
|
-
), c =
|
|
133
|
+
), c = a[Math.min(n, a.length - 1)];
|
|
134
134
|
c ? c.focus() : F && t.focus();
|
|
135
135
|
});
|
|
136
136
|
const tn = b(
|
|
137
|
-
(n, t) => (
|
|
138
|
-
|
|
137
|
+
(n, t) => (a) => {
|
|
138
|
+
a || (k.current = t, j((c) => new Set(c).add(n.id)), p == null || p(n));
|
|
139
139
|
},
|
|
140
140
|
[p]
|
|
141
141
|
), en = b(() => {
|
|
142
142
|
j((n) => {
|
|
143
143
|
const t = new Set(n);
|
|
144
|
-
for (const
|
|
144
|
+
for (const a of r) t.add(a.id);
|
|
145
145
|
return t;
|
|
146
146
|
}), w == null || w();
|
|
147
147
|
}, [r, w]), sn = b(() => Y((n) => !n), []), rn = J ?? d("warningStack.regionLabel", "Warnings"), G = i ? /* @__PURE__ */ u("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
@@ -154,7 +154,7 @@ const Nn = cn(
|
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
156
|
l ? /* @__PURE__ */ e("p", { className: "ds:text-start type-body-sm ds:text-[var(--muted-foreground)]", children: l }) : null
|
|
157
|
-
] }) : /* @__PURE__ */ e("h2", { id: I, className: "ds:sr-only", children: rn }),
|
|
157
|
+
] }) : /* @__PURE__ */ e("h2", { id: I, className: "ds:sr-only", children: rn }), an = X && A ? /* @__PURE__ */ u("div", { className: "ds:flex ds:items-start ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
158
158
|
G,
|
|
159
159
|
/* @__PURE__ */ e(
|
|
160
160
|
mn,
|
|
@@ -186,7 +186,7 @@ const Nn = cn(
|
|
|
186
186
|
className: [pn({ stretch: M }), K].filter(Boolean).join(" "),
|
|
187
187
|
...Q,
|
|
188
188
|
children: [
|
|
189
|
-
|
|
189
|
+
an,
|
|
190
190
|
F ? null : /* @__PURE__ */ e(
|
|
191
191
|
"div",
|
|
192
192
|
{
|
|
@@ -196,7 +196,7 @@ const Nn = cn(
|
|
|
196
196
|
className: "ds:sr-only"
|
|
197
197
|
}
|
|
198
198
|
),
|
|
199
|
-
A ? /* @__PURE__ */ u(
|
|
199
|
+
A ? /* @__PURE__ */ u(on, { children: [
|
|
200
200
|
/* @__PURE__ */ e("div", { className: "ds:@container/warning-stack", children: /* @__PURE__ */ e(
|
|
201
201
|
"ul",
|
|
202
202
|
{
|
|
@@ -204,23 +204,28 @@ const Nn = cn(
|
|
|
204
204
|
className: wn,
|
|
205
205
|
"aria-label": d("warningStack.listLabel", "Notices"),
|
|
206
206
|
children: Z.map((n, t) => {
|
|
207
|
-
const
|
|
208
|
-
return
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
207
|
+
const a = n.variant ?? "warning";
|
|
208
|
+
return (
|
|
209
|
+
// `data-warning-id` is the per-notice agent hook: it
|
|
210
|
+
// makes one warning addressable in the DOM, and its
|
|
211
|
+
// dismiss control is the nested `[data-alert-dismiss]`.
|
|
212
|
+
/* @__PURE__ */ e("li", { "data-warning-id": n.id, children: /* @__PURE__ */ u(
|
|
213
|
+
C,
|
|
214
|
+
{
|
|
215
|
+
variant: a,
|
|
216
|
+
dismissible: n.dismissible,
|
|
217
|
+
icon: n.icon,
|
|
218
|
+
onOpenChange: tn(n, t),
|
|
219
|
+
clamp: !0,
|
|
220
|
+
className: "ds:h-full",
|
|
221
|
+
children: [
|
|
222
|
+
/* @__PURE__ */ e(C.Title, { as: "h3", children: n.title }),
|
|
223
|
+
n.description ? /* @__PURE__ */ e(C.Description, { children: n.description }) : null,
|
|
224
|
+
n.actions ? /* @__PURE__ */ e(C.Action, { children: n.actions }) : null
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
) }, n.id)
|
|
228
|
+
);
|
|
224
229
|
})
|
|
225
230
|
}
|
|
226
231
|
) }),
|
|
@@ -265,4 +270,4 @@ Nn.displayName = "WarningStack";
|
|
|
265
270
|
export {
|
|
266
271
|
Nn as W
|
|
267
272
|
};
|
|
268
|
-
//# sourceMappingURL=warning-stack-
|
|
273
|
+
//# sourceMappingURL=warning-stack-B7t_8jRE.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as u } from "./isSameWeek-
|
|
1
|
+
import { g as s, h as i, j as o, k as m } from "./format-4HNwNGrN.js";
|
|
2
|
+
import { i as u } from "./isSameWeek-B73MagWB.js";
|
|
3
3
|
const c = {
|
|
4
4
|
lessThanXSeconds: {
|
|
5
5
|
one: "不到 1 秒",
|
|
@@ -229,7 +229,7 @@ const b = {
|
|
|
229
229
|
evening: "晚上",
|
|
230
230
|
night: "夜间"
|
|
231
231
|
}
|
|
232
|
-
},
|
|
232
|
+
}, S = (e, n) => {
|
|
233
233
|
const t = Number(e);
|
|
234
234
|
switch (n == null ? void 0 : n.unit) {
|
|
235
235
|
case "date":
|
|
@@ -243,8 +243,8 @@ const b = {
|
|
|
243
243
|
default:
|
|
244
244
|
return "第 " + t.toString();
|
|
245
245
|
}
|
|
246
|
-
},
|
|
247
|
-
ordinalNumber:
|
|
246
|
+
}, x = {
|
|
247
|
+
ordinalNumber: S,
|
|
248
248
|
era: i({
|
|
249
249
|
values: w,
|
|
250
250
|
defaultWidth: "wide"
|
|
@@ -268,7 +268,7 @@ const b = {
|
|
|
268
268
|
formattingValues: k,
|
|
269
269
|
defaultFormattingWidth: "wide"
|
|
270
270
|
})
|
|
271
|
-
},
|
|
271
|
+
}, z = /^(第\s*)?\d+(日|时|分|秒)?/i, F = /\d+/i, D = {
|
|
272
272
|
narrow: /^(前)/i,
|
|
273
273
|
abbreviated: /^(前)/i,
|
|
274
274
|
wide: /^(公元前|公元)/i
|
|
@@ -278,13 +278,13 @@ const b = {
|
|
|
278
278
|
narrow: /^[1234]/i,
|
|
279
279
|
abbreviated: /^第[一二三四]刻/i,
|
|
280
280
|
wide: /^第[一二三四]刻钟/i
|
|
281
|
-
}, E = {
|
|
282
|
-
any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i]
|
|
283
281
|
}, N = {
|
|
282
|
+
any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i]
|
|
283
|
+
}, C = {
|
|
284
284
|
narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
|
|
285
285
|
abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
|
|
286
286
|
wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
|
|
287
|
-
},
|
|
287
|
+
}, E = {
|
|
288
288
|
narrow: [
|
|
289
289
|
/^一/i,
|
|
290
290
|
/^二/i,
|
|
@@ -335,8 +335,8 @@ const b = {
|
|
|
335
335
|
}
|
|
336
336
|
}, O = {
|
|
337
337
|
ordinalNumber: m({
|
|
338
|
-
matchPattern:
|
|
339
|
-
parsePattern:
|
|
338
|
+
matchPattern: z,
|
|
339
|
+
parsePattern: F,
|
|
340
340
|
valueCallback: (e) => parseInt(e, 10)
|
|
341
341
|
}),
|
|
342
342
|
era: o({
|
|
@@ -348,14 +348,14 @@ const b = {
|
|
|
348
348
|
quarter: o({
|
|
349
349
|
matchPatterns: X,
|
|
350
350
|
defaultMatchWidth: "wide",
|
|
351
|
-
parsePatterns:
|
|
351
|
+
parsePatterns: N,
|
|
352
352
|
defaultParseWidth: "any",
|
|
353
353
|
valueCallback: (e) => e + 1
|
|
354
354
|
}),
|
|
355
355
|
month: o({
|
|
356
|
-
matchPatterns:
|
|
356
|
+
matchPatterns: C,
|
|
357
357
|
defaultMatchWidth: "wide",
|
|
358
|
-
parsePatterns:
|
|
358
|
+
parsePatterns: E,
|
|
359
359
|
defaultParseWidth: "any"
|
|
360
360
|
}),
|
|
361
361
|
day: o({
|
|
@@ -370,12 +370,12 @@ const b = {
|
|
|
370
370
|
parsePatterns: q,
|
|
371
371
|
defaultParseWidth: "any"
|
|
372
372
|
})
|
|
373
|
-
},
|
|
373
|
+
}, Q = {
|
|
374
374
|
code: "zh-CN",
|
|
375
375
|
formatDistance: h,
|
|
376
376
|
formatLong: P,
|
|
377
377
|
formatRelative: y,
|
|
378
|
-
localize:
|
|
378
|
+
localize: x,
|
|
379
379
|
match: O,
|
|
380
380
|
options: {
|
|
381
381
|
weekStartsOn: 1,
|
|
@@ -383,6 +383,6 @@ const b = {
|
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
export {
|
|
386
|
-
|
|
386
|
+
Q as zhCN
|
|
387
387
|
};
|
|
388
|
-
//# sourceMappingURL=zh-CN-
|
|
388
|
+
//# sourceMappingURL=zh-CN-vPkPEK6H.js.map
|