@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,322 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as n, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as U, useState as y, useMemo as K, useEffect as V } from "react";
|
|
3
|
-
import { c as q } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as J } from "react-i18next";
|
|
5
|
-
import { R as I } from "./radio-TWf9Q-mp.js";
|
|
6
|
-
import { R as Q } from "./radio-group-CI-6SmSw.js";
|
|
7
|
-
import { F as $ } from "./form-field-M5UpX65Z.js";
|
|
8
|
-
import { N as R } from "./number-input-DrozbZAU.js";
|
|
9
|
-
import { C as P } from "./card-DPmk26CL.js";
|
|
10
|
-
import { B as k } from "./badge-DCOqV9mI.js";
|
|
11
|
-
import { I as X } from "./insert-result-D074GtHX.js";
|
|
12
|
-
import { b as Y, e as Z } from "./bmi-BxD-tFzU.js";
|
|
13
|
-
const ee = {
|
|
14
|
-
underweight: { min: 12.5, max: 18 },
|
|
15
|
-
normal: { min: 11.5, max: 16 },
|
|
16
|
-
overweight: { min: 7, max: 11.5 },
|
|
17
|
-
obese: { min: 5, max: 9 }
|
|
18
|
-
}, ae = {
|
|
19
|
-
normal: { min: 16.8, max: 24.5 },
|
|
20
|
-
overweight: { min: 14.1, max: 22.7 },
|
|
21
|
-
obese: { min: 11.3, max: 19.1 }
|
|
22
|
-
};
|
|
23
|
-
function A(t, i = "singleton") {
|
|
24
|
-
return i === "triplet" ? null : i === "twin" ? ae[t] ?? null : ee[t];
|
|
25
|
-
}
|
|
26
|
-
const E = {
|
|
27
|
-
underweight: { min: 0.44, max: 0.58 },
|
|
28
|
-
normal: { min: 0.35, max: 0.5 },
|
|
29
|
-
overweight: { min: 0.23, max: 0.33 },
|
|
30
|
-
obese: { min: 0.17, max: 0.27 }
|
|
31
|
-
}, p = { min: 0.5, max: 2 }, f = 13, ne = (p.min + p.max) / 2;
|
|
32
|
-
function te(t, i, c = "singleton") {
|
|
33
|
-
if (c !== "singleton") {
|
|
34
|
-
const r = A(t, c);
|
|
35
|
-
if (!r) return null;
|
|
36
|
-
if (i <= 0) return { min: 0, max: 0 };
|
|
37
|
-
const g = Math.min(i, 40) / 40;
|
|
38
|
-
return { min: r.min * g, max: r.max * g };
|
|
39
|
-
}
|
|
40
|
-
if (i <= 0) return { min: 0, max: 0 };
|
|
41
|
-
if (i <= f) {
|
|
42
|
-
const r = i / f;
|
|
43
|
-
return {
|
|
44
|
-
min: p.min * r,
|
|
45
|
-
max: p.max * r
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
const s = Math.min(i, 40) - f, o = E[t];
|
|
49
|
-
return {
|
|
50
|
-
min: p.min + o.min * s,
|
|
51
|
-
max: p.max + o.max * s
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function ie(t) {
|
|
55
|
-
const i = Y(t.prePregnancyBmi), c = t.plurality ?? "singleton", s = A(i, c), o = s ? te(i, t.gestationalWeeks, c) : null, r = t.currentWeightKg - t.prePregnancyWeightKg, g = o ? r < o.min ? "below" : r > o.max ? "above" : "within" : null;
|
|
56
|
-
let m = null, x = null;
|
|
57
|
-
if (c === "singleton" && t.gestationalWeeks > f) {
|
|
58
|
-
const S = t.gestationalWeeks - f;
|
|
59
|
-
m = (r - ne) / S;
|
|
60
|
-
const G = E[i];
|
|
61
|
-
x = m < G.min ? "below" : m > G.max ? "above" : "within";
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
category: i,
|
|
65
|
-
plurality: c,
|
|
66
|
-
totalRange: s,
|
|
67
|
-
recommendedToDate: o,
|
|
68
|
-
actualGainKg: r,
|
|
69
|
-
status: g,
|
|
70
|
-
weeklyRate: m,
|
|
71
|
-
rateStatus: x
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
const re = q("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
75
|
-
variants: {
|
|
76
|
-
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
77
|
-
},
|
|
78
|
-
defaultVariants: { width: "full" }
|
|
79
|
-
}), B = {
|
|
80
|
-
below: "warning",
|
|
81
|
-
within: "success",
|
|
82
|
-
above: "warning"
|
|
83
|
-
}, le = {
|
|
84
|
-
below: "--warning-readable",
|
|
85
|
-
within: "--success",
|
|
86
|
-
above: "--warning-readable"
|
|
87
|
-
};
|
|
88
|
-
function se(t) {
|
|
89
|
-
return le[t];
|
|
90
|
-
}
|
|
91
|
-
const oe = U(
|
|
92
|
-
({
|
|
93
|
-
defaultPlurality: t = "singleton",
|
|
94
|
-
defaultHeightCm: i,
|
|
95
|
-
defaultPrePregnancyKg: c,
|
|
96
|
-
onResultChange: s,
|
|
97
|
-
onInsert: o,
|
|
98
|
-
insertVariant: r = "insert",
|
|
99
|
-
onCopy: g,
|
|
100
|
-
onError: m,
|
|
101
|
-
insertBrand: x,
|
|
102
|
-
id: S,
|
|
103
|
-
width: G,
|
|
104
|
-
className: F
|
|
105
|
-
}, M) => {
|
|
106
|
-
const { t: e, i18n: D } = J(), [_, C] = y(
|
|
107
|
-
i ?? null
|
|
108
|
-
), [h, H] = y(
|
|
109
|
-
c ?? null
|
|
110
|
-
), [W, O] = y(null), [b, L] = y(null), [v, j] = y(t), N = Z(h, _), a = K(() => N === null || h === null || W === null || b === null ? null : ie({
|
|
111
|
-
prePregnancyBmi: N,
|
|
112
|
-
prePregnancyWeightKg: h,
|
|
113
|
-
currentWeightKg: W,
|
|
114
|
-
gestationalWeeks: b,
|
|
115
|
-
plurality: v
|
|
116
|
-
}), [N, h, W, b, v]), d = K(
|
|
117
|
-
() => new Intl.NumberFormat(D.language, {
|
|
118
|
-
minimumFractionDigits: 1,
|
|
119
|
-
maximumFractionDigits: 1
|
|
120
|
-
}),
|
|
121
|
-
[D.language]
|
|
122
|
-
);
|
|
123
|
-
V(() => {
|
|
124
|
-
s == null || s(a);
|
|
125
|
-
}, [a, s]);
|
|
126
|
-
const u = e("pregnancyWeightGain.units.kg"), T = (w) => `${d.format(w.min)} – ${d.format(w.max)} ${u}`;
|
|
127
|
-
return /* @__PURE__ */ l(
|
|
128
|
-
"div",
|
|
129
|
-
{
|
|
130
|
-
ref: M,
|
|
131
|
-
"data-component": "pregnancy-weight-gain",
|
|
132
|
-
"data-component-id": S,
|
|
133
|
-
className: re({ width: G, className: F }),
|
|
134
|
-
children: [
|
|
135
|
-
/* @__PURE__ */ l("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
136
|
-
/* @__PURE__ */ n(
|
|
137
|
-
$,
|
|
138
|
-
{
|
|
139
|
-
label: `${e("pregnancyWeightGain.height")} (${e("pregnancyWeightGain.units.cm")})`,
|
|
140
|
-
children: /* @__PURE__ */ n(
|
|
141
|
-
R,
|
|
142
|
-
{
|
|
143
|
-
mode: "decimal",
|
|
144
|
-
min: 0,
|
|
145
|
-
step: 0.5,
|
|
146
|
-
value: _,
|
|
147
|
-
onChange: C
|
|
148
|
-
}
|
|
149
|
-
)
|
|
150
|
-
}
|
|
151
|
-
),
|
|
152
|
-
/* @__PURE__ */ n(
|
|
153
|
-
$,
|
|
154
|
-
{
|
|
155
|
-
label: `${e("pregnancyWeightGain.prePregnancyWeight")} (${u})`,
|
|
156
|
-
children: /* @__PURE__ */ n(
|
|
157
|
-
R,
|
|
158
|
-
{
|
|
159
|
-
mode: "decimal",
|
|
160
|
-
min: 0,
|
|
161
|
-
step: 0.1,
|
|
162
|
-
value: h,
|
|
163
|
-
onChange: H
|
|
164
|
-
}
|
|
165
|
-
)
|
|
166
|
-
}
|
|
167
|
-
),
|
|
168
|
-
/* @__PURE__ */ n(
|
|
169
|
-
$,
|
|
170
|
-
{
|
|
171
|
-
label: `${e("pregnancyWeightGain.currentWeight")} (${u})`,
|
|
172
|
-
children: /* @__PURE__ */ n(
|
|
173
|
-
R,
|
|
174
|
-
{
|
|
175
|
-
mode: "decimal",
|
|
176
|
-
min: 0,
|
|
177
|
-
step: 0.1,
|
|
178
|
-
value: W,
|
|
179
|
-
onChange: O
|
|
180
|
-
}
|
|
181
|
-
)
|
|
182
|
-
}
|
|
183
|
-
),
|
|
184
|
-
/* @__PURE__ */ n($, { label: e("pregnancyWeightGain.gestationalWeeks"), children: /* @__PURE__ */ n(
|
|
185
|
-
R,
|
|
186
|
-
{
|
|
187
|
-
mode: "integer",
|
|
188
|
-
min: 0,
|
|
189
|
-
max: 42,
|
|
190
|
-
value: b,
|
|
191
|
-
onChange: L
|
|
192
|
-
}
|
|
193
|
-
) })
|
|
194
|
-
] }),
|
|
195
|
-
/* @__PURE__ */ l(
|
|
196
|
-
Q,
|
|
197
|
-
{
|
|
198
|
-
label: e("pregnancyWeightGain.plurality.label"),
|
|
199
|
-
variant: "horizontal",
|
|
200
|
-
value: v,
|
|
201
|
-
onValueChange: (w) => j(w),
|
|
202
|
-
children: [
|
|
203
|
-
/* @__PURE__ */ n(
|
|
204
|
-
I,
|
|
205
|
-
{
|
|
206
|
-
label: e("pregnancyWeightGain.plurality.singleton"),
|
|
207
|
-
value: "singleton"
|
|
208
|
-
}
|
|
209
|
-
),
|
|
210
|
-
/* @__PURE__ */ n(I, { label: e("pregnancyWeightGain.plurality.twin"), value: "twin" }),
|
|
211
|
-
/* @__PURE__ */ n(
|
|
212
|
-
I,
|
|
213
|
-
{
|
|
214
|
-
label: e("pregnancyWeightGain.plurality.triplet"),
|
|
215
|
-
value: "triplet"
|
|
216
|
-
}
|
|
217
|
-
)
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
),
|
|
221
|
-
/* @__PURE__ */ n("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: a ? `${e("pregnancyWeightGain.actualGain")}: ${d.format(
|
|
222
|
-
a.actualGainKg
|
|
223
|
-
)} ${u}.${a.status ? ` ${e(`pregnancyWeightGain.status.${a.status}`)}.` : ` ${e("pregnancyWeightGain.noGuideline")}`}` : "" }),
|
|
224
|
-
a ? /* @__PURE__ */ n(P, { variant: "elevated", children: /* @__PURE__ */ l(P.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
225
|
-
/* @__PURE__ */ l("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
226
|
-
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
227
|
-
/* @__PURE__ */ n("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.prePregnancyBmi") }),
|
|
228
|
-
/* @__PURE__ */ l("dd", { className: "type-body ds:text-foreground", children: [
|
|
229
|
-
d.format(N ?? 0),
|
|
230
|
-
" ·",
|
|
231
|
-
" ",
|
|
232
|
-
e(`pregnancyWeightGain.category.${a.category}`)
|
|
233
|
-
] })
|
|
234
|
-
] }),
|
|
235
|
-
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
236
|
-
/* @__PURE__ */ n("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.actualGain") }),
|
|
237
|
-
/* @__PURE__ */ l("dd", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
238
|
-
/* @__PURE__ */ l("span", { className: "type-metric ds:text-foreground", children: [
|
|
239
|
-
d.format(a.actualGainKg),
|
|
240
|
-
" ",
|
|
241
|
-
u
|
|
242
|
-
] }),
|
|
243
|
-
a.status ? /* @__PURE__ */ n(k, { variant: B[a.status], size: "lg", children: e(`pregnancyWeightGain.status.${a.status}`) }) : null
|
|
244
|
-
] })
|
|
245
|
-
] }),
|
|
246
|
-
a.recommendedToDate && a.totalRange ? /* @__PURE__ */ l(z, { children: [
|
|
247
|
-
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
248
|
-
/* @__PURE__ */ n("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.recommendedToDate") }),
|
|
249
|
-
/* @__PURE__ */ n("dd", { className: "type-body ds:text-foreground", children: T(a.recommendedToDate) })
|
|
250
|
-
] }),
|
|
251
|
-
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
252
|
-
/* @__PURE__ */ n("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.recommendedTotal") }),
|
|
253
|
-
/* @__PURE__ */ n("dd", { className: "type-body ds:text-foreground", children: T(a.totalRange) })
|
|
254
|
-
] })
|
|
255
|
-
] }) : null
|
|
256
|
-
] }),
|
|
257
|
-
a.totalRange ? null : /* @__PURE__ */ n("p", { className: "type-body ds:text-foreground", children: e("pregnancyWeightGain.noGuideline") }),
|
|
258
|
-
a.weeklyRate !== null && a.rateStatus ? /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
259
|
-
/* @__PURE__ */ n("span", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.weeklyRate") }),
|
|
260
|
-
/* @__PURE__ */ n("span", { className: "type-body ds:text-foreground", children: e("pregnancyWeightGain.perWeek", {
|
|
261
|
-
value: d.format(a.weeklyRate)
|
|
262
|
-
}) }),
|
|
263
|
-
/* @__PURE__ */ n(k, { variant: B[a.rateStatus], children: e(`pregnancyWeightGain.status.${a.rateStatus}`) })
|
|
264
|
-
] }) : null,
|
|
265
|
-
/* @__PURE__ */ n("p", { className: "type-body-sm ds:text-muted-foreground", children: e(
|
|
266
|
-
v === "singleton" ? "pregnancyWeightGain.disclaimer" : "pregnancyWeightGain.disclaimerMultiple"
|
|
267
|
-
) }),
|
|
268
|
-
a.status && a.recommendedToDate && a.totalRange && (r === "copy" || o) ? /* @__PURE__ */ n(
|
|
269
|
-
X,
|
|
270
|
-
{
|
|
271
|
-
onInsert: o,
|
|
272
|
-
variant: r,
|
|
273
|
-
onCopy: g,
|
|
274
|
-
onError: m,
|
|
275
|
-
card: {
|
|
276
|
-
title: e("insert.title.weightGain"),
|
|
277
|
-
icon: "baby",
|
|
278
|
-
highlight: e(`pregnancyWeightGain.status.${a.status}`),
|
|
279
|
-
// Chip shares the gain-status semantic token so the
|
|
280
|
-
// inserted PNG chip matches the on-screen status badge —
|
|
281
|
-
// with the contrast-safe orange override for the
|
|
282
|
-
// `--warning` below/above statuses.
|
|
283
|
-
highlightToken: se(a.status),
|
|
284
|
-
brand: x,
|
|
285
|
-
fields: [
|
|
286
|
-
{
|
|
287
|
-
// Actual gain is the headline trend → trending-up glyph.
|
|
288
|
-
icon: "trending-up",
|
|
289
|
-
label: e("pregnancyWeightGain.actualGain"),
|
|
290
|
-
value: `${d.format(a.actualGainKg)} ${u}`
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
// Recommended weight band → scale glyph.
|
|
294
|
-
icon: "scale",
|
|
295
|
-
label: e("pregnancyWeightGain.recommendedToDate"),
|
|
296
|
-
value: T(a.recommendedToDate)
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
// Recommended total weight band → scale glyph.
|
|
300
|
-
icon: "scale",
|
|
301
|
-
label: e("pregnancyWeightGain.recommendedTotal"),
|
|
302
|
-
value: T(a.totalRange)
|
|
303
|
-
}
|
|
304
|
-
]
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
) : null
|
|
308
|
-
] }) }) : /* @__PURE__ */ n("p", { className: "type-body ds:text-muted-foreground", children: e("pregnancyWeightGain.empty") })
|
|
309
|
-
]
|
|
310
|
-
}
|
|
311
|
-
);
|
|
312
|
-
}
|
|
313
|
-
);
|
|
314
|
-
oe.displayName = "PregnancyWeightGain";
|
|
315
|
-
export {
|
|
316
|
-
oe as P,
|
|
317
|
-
E as R,
|
|
318
|
-
ee as T,
|
|
319
|
-
ie as a,
|
|
320
|
-
te as r
|
|
321
|
-
};
|
|
322
|
-
//# sourceMappingURL=pregnancy-weight-gain-O6J0sUIi.js.map
|
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
import { jsx as d, jsxs as N } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as R, useId as fe, useRef as p, useState as pe, useEffect as ge, useMemo as ve, useImperativeHandle as be, createContext as ye, useContext as he } from "react";
|
|
3
|
-
import { c as U } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as C } from "react-i18next";
|
|
5
|
-
import { u as xe } from "./registry-DvAUVLHh.js";
|
|
6
|
-
import { u as K } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
7
|
-
const ke = {
|
|
8
|
-
id: "progress",
|
|
9
|
-
capabilities: [],
|
|
10
|
-
state: {},
|
|
11
|
-
actions: {
|
|
12
|
-
set_value: {
|
|
13
|
-
safety: "read",
|
|
14
|
-
argsType: "{ value: number }",
|
|
15
|
-
description: "Set the displayed progress value (0–100).",
|
|
16
|
-
invoke: (a, i) => {
|
|
17
|
-
a.setValue(i.value);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
domHooks: {
|
|
22
|
-
root: { attr: "data-component", value: "progress" },
|
|
23
|
-
instanceId: {
|
|
24
|
-
attr: "data-component-id",
|
|
25
|
-
sourceProp: "id",
|
|
26
|
-
description: "Sourced from the id prop."
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}, j = ye(null);
|
|
30
|
-
function W() {
|
|
31
|
-
const a = he(j);
|
|
32
|
-
if (!a)
|
|
33
|
-
throw new Error("Progress sub-components must be used within <Progress>");
|
|
34
|
-
return a;
|
|
35
|
-
}
|
|
36
|
-
const M = {
|
|
37
|
-
sm: { viewBox: "0 0 24 24", cx: 12, cy: 12, r: 10 },
|
|
38
|
-
md: { viewBox: "0 0 40 40", cx: 20, cy: 20, r: 18 },
|
|
39
|
-
lg: { viewBox: "0 0 56 56", cx: 28, cy: 28, r: 26 }
|
|
40
|
-
}, Pe = U(
|
|
41
|
-
"ds:relative ds:w-full ds:overflow-hidden ds:rounded-[var(--radius-full)] ds:bg-[var(--progress-track)]",
|
|
42
|
-
{
|
|
43
|
-
variants: {
|
|
44
|
-
size: { sm: "ds:h-1", md: "ds:h-2", lg: "ds:h-3" }
|
|
45
|
-
},
|
|
46
|
-
defaultVariants: { size: "md" }
|
|
47
|
-
}
|
|
48
|
-
), Q = U("", {
|
|
49
|
-
variants: {
|
|
50
|
-
size: {
|
|
51
|
-
sm: "ds:w-6 ds:h-6",
|
|
52
|
-
md: "ds:w-10 ds:h-10",
|
|
53
|
-
lg: "ds:w-14 ds:h-14"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
defaultVariants: { size: "md" }
|
|
57
|
-
}), Y = R(({ children: a, className: i, ...e }, t) => {
|
|
58
|
-
const r = W(), { t: u, i18n: m } = C(), f = r.isIndeterminate ? u("common.loading", "Loading...") : u("common.progress_label", {
|
|
59
|
-
percent: new Intl.NumberFormat(m.language, {
|
|
60
|
-
style: "percent",
|
|
61
|
-
maximumFractionDigits: 0
|
|
62
|
-
}).format((r.value ?? 0) / r.max)
|
|
63
|
-
});
|
|
64
|
-
return /* @__PURE__ */ d(
|
|
65
|
-
"span",
|
|
66
|
-
{
|
|
67
|
-
ref: t,
|
|
68
|
-
id: r.labelId,
|
|
69
|
-
className: ["type-label ds:text-foreground", i].filter(Boolean).join(" "),
|
|
70
|
-
...e,
|
|
71
|
-
children: a ?? f
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
});
|
|
75
|
-
Y.displayName = "Progress.Label";
|
|
76
|
-
const Z = R(({ className: a, ...i }, e) => {
|
|
77
|
-
const t = W(), { t: r, i18n: u } = C(), m = t.isIndeterminate ? r("common.loading", "Loading...") : new Intl.NumberFormat(u.language, {
|
|
78
|
-
style: "percent",
|
|
79
|
-
maximumFractionDigits: 0
|
|
80
|
-
}).format((t.value ?? 0) / t.max);
|
|
81
|
-
return /* @__PURE__ */ d(
|
|
82
|
-
"span",
|
|
83
|
-
{
|
|
84
|
-
ref: e,
|
|
85
|
-
className: [
|
|
86
|
-
"type-body-sm ds:tabular-nums ds:text-muted-foreground",
|
|
87
|
-
a
|
|
88
|
-
].filter(Boolean).join(" "),
|
|
89
|
-
...i,
|
|
90
|
-
children: m
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
});
|
|
94
|
-
Z.displayName = "Progress.Value";
|
|
95
|
-
const $ = R(
|
|
96
|
-
({
|
|
97
|
-
id: a,
|
|
98
|
-
value: i,
|
|
99
|
-
max: e = 100,
|
|
100
|
-
shape: t = "bar",
|
|
101
|
-
size: r = "md",
|
|
102
|
-
ariaLabel: u,
|
|
103
|
-
ariaValueText: m,
|
|
104
|
-
debouncePercent: f = 1,
|
|
105
|
-
disabled: S = !1,
|
|
106
|
-
className: z,
|
|
107
|
-
children: V,
|
|
108
|
-
...L
|
|
109
|
-
}, ee) => {
|
|
110
|
-
const B = fe(), { t: D, i18n: re } = C(), x = p(null), k = p(null), P = p(null), w = p(null), g = p(null), s = i === void 0, c = s ? void 0 : Math.min(e, Math.max(0, i)), te = c !== void 0 ? c / e * 100 : void 0, [se, ae] = pe(!1);
|
|
111
|
-
ge(() => {
|
|
112
|
-
ae(!0);
|
|
113
|
-
}, []);
|
|
114
|
-
const v = se || s ? te : 0;
|
|
115
|
-
K(() => {
|
|
116
|
-
var n, l;
|
|
117
|
-
if (!(s || v === void 0))
|
|
118
|
-
if (t === "bar")
|
|
119
|
-
(n = k.current) == null || n.style.setProperty(
|
|
120
|
-
"--progress-value",
|
|
121
|
-
String(v)
|
|
122
|
-
);
|
|
123
|
-
else {
|
|
124
|
-
const { r: o } = M[r], h = 2 * Math.PI * o * (1 - v / 100);
|
|
125
|
-
(l = w.current) == null || l.style.setProperty(
|
|
126
|
-
"stroke-dashoffset",
|
|
127
|
-
String(h)
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
}, [s, v, t, r]), K(() => {
|
|
131
|
-
const n = t === "bar" ? x.current : P.current;
|
|
132
|
-
if (!n) return;
|
|
133
|
-
if (s) {
|
|
134
|
-
n.removeAttribute("aria-valuenow"), g.current = null;
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
if (c === void 0) return;
|
|
138
|
-
const l = c / e * 100, o = g.current;
|
|
139
|
-
(o === null ? 1 / 0 : Math.abs(l - o)) >= f && (n.setAttribute("aria-valuenow", String(c)), g.current = l);
|
|
140
|
-
}, [s, c, e, f, t]);
|
|
141
|
-
const F = p(null), I = ve(
|
|
142
|
-
() => ({
|
|
143
|
-
setValue: (n) => {
|
|
144
|
-
var G, J;
|
|
145
|
-
const l = Math.min(e, Math.max(0, n)), o = l / e * 100;
|
|
146
|
-
if (t === "bar")
|
|
147
|
-
(G = k.current) == null || G.style.setProperty(
|
|
148
|
-
"--progress-value",
|
|
149
|
-
String(o)
|
|
150
|
-
);
|
|
151
|
-
else {
|
|
152
|
-
const { r: ue } = M[r], me = 2 * Math.PI * ue * (1 - o / 100);
|
|
153
|
-
(J = w.current) == null || J.style.setProperty(
|
|
154
|
-
"stroke-dashoffset",
|
|
155
|
-
String(me)
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
const y = t === "bar" ? x.current : P.current, h = g.current;
|
|
159
|
-
(h === null ? 1 / 0 : Math.abs(o - h)) >= f && y && (y.setAttribute("aria-valuenow", String(l)), g.current = o);
|
|
160
|
-
}
|
|
161
|
-
}),
|
|
162
|
-
[e, t, r, f]
|
|
163
|
-
);
|
|
164
|
-
be(ee, () => I, [I]), xe(ke, I, a);
|
|
165
|
-
const ne = s ? D("common.loading", "Loading...") : D("common.progress_label", {
|
|
166
|
-
percent: new Intl.NumberFormat(re.language, {
|
|
167
|
-
style: "percent",
|
|
168
|
-
maximumFractionDigits: 0
|
|
169
|
-
}).format((c ?? 0) / e)
|
|
170
|
-
}), A = u ? { "aria-label": u } : { "aria-labelledby": B, "aria-label": ne }, E = s ? { "aria-busy": !0, "aria-valuemin": 0, "aria-valuemax": e } : {
|
|
171
|
-
"aria-valuemin": 0,
|
|
172
|
-
"aria-valuemax": e,
|
|
173
|
-
...m ? { "aria-valuetext": m } : {}
|
|
174
|
-
}, T = S ? { "aria-disabled": !0 } : {}, H = [
|
|
175
|
-
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
176
|
-
S && "ds:opacity-50",
|
|
177
|
-
z
|
|
178
|
-
].filter(Boolean).join(" "), O = {
|
|
179
|
-
labelId: B,
|
|
180
|
-
isIndeterminate: s,
|
|
181
|
-
value: c,
|
|
182
|
-
max: e
|
|
183
|
-
};
|
|
184
|
-
if (t === "bar") {
|
|
185
|
-
const n = s ? [
|
|
186
|
-
"ds:absolute ds:[inset-block:0] ds:bg-primary ds:rounded-[var(--radius-full)]",
|
|
187
|
-
"ds:[@media(prefers-reduced-motion:no-preference)]:animate-[progress-bar-indeterminate_1200ms_ease-in-out_infinite]",
|
|
188
|
-
"ds:[.theme-accessible_&]:animate-none",
|
|
189
|
-
"ds:motion-reduce:animate-[progress-indeterminate-pulse_var(--animation-duration)_ease-in-out_infinite]"
|
|
190
|
-
].join(" ") : [
|
|
191
|
-
"ds:absolute ds:[inset-block:0] ds:start-0",
|
|
192
|
-
"ds:[inline-size:calc(var(--progress-value,0)*1%)]",
|
|
193
|
-
"ds:bg-primary ds:rounded-[var(--radius-full)]",
|
|
194
|
-
"ds:transition-[inline-size] ds:duration-[var(--animation-duration)]",
|
|
195
|
-
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
196
|
-
].join(" ");
|
|
197
|
-
return /* @__PURE__ */ d(j.Provider, { value: O, children: /* @__PURE__ */ N(
|
|
198
|
-
"div",
|
|
199
|
-
{
|
|
200
|
-
ref: F,
|
|
201
|
-
className: H,
|
|
202
|
-
"data-component": "progress",
|
|
203
|
-
"data-component-id": a,
|
|
204
|
-
...L,
|
|
205
|
-
children: [
|
|
206
|
-
V,
|
|
207
|
-
/* @__PURE__ */ d(
|
|
208
|
-
"div",
|
|
209
|
-
{
|
|
210
|
-
ref: x,
|
|
211
|
-
role: "progressbar",
|
|
212
|
-
...A,
|
|
213
|
-
...E,
|
|
214
|
-
...T,
|
|
215
|
-
className: Pe({ size: r }),
|
|
216
|
-
children: /* @__PURE__ */ d("div", { ref: k, className: n })
|
|
217
|
-
}
|
|
218
|
-
)
|
|
219
|
-
]
|
|
220
|
-
}
|
|
221
|
-
) });
|
|
222
|
-
}
|
|
223
|
-
const { viewBox: oe, cx: X, cy: q, r: _ } = M[r], b = 2 * Math.PI * _, ie = b * 0.25, ce = s ? ie : b, le = s ? [
|
|
224
|
-
Q({ size: r }),
|
|
225
|
-
"ds:[transform:rotate(-90deg)]",
|
|
226
|
-
"ds:[@media(prefers-reduced-motion:no-preference)]:animate-[progress-circular-spin_1200ms_linear_infinite]",
|
|
227
|
-
"ds:[.theme-accessible_&]:animate-none",
|
|
228
|
-
"ds:motion-reduce:animate-[progress-indeterminate-pulse_var(--animation-duration)_ease-in-out_infinite]"
|
|
229
|
-
].join(" ") : [
|
|
230
|
-
Q({ size: r }),
|
|
231
|
-
"ds:[transform:rotate(-90deg)]",
|
|
232
|
-
"ds:rtl:[transform:rotate(-90deg)_scaleX(-1)]"
|
|
233
|
-
].join(" "), de = [
|
|
234
|
-
"ds:stroke-primary ds:[stroke-width:var(--spacing-xs)]",
|
|
235
|
-
!s && "ds:transition-[stroke-dashoffset] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
236
|
-
].filter(Boolean).join(" ");
|
|
237
|
-
return /* @__PURE__ */ d(j.Provider, { value: O, children: /* @__PURE__ */ N(
|
|
238
|
-
"div",
|
|
239
|
-
{
|
|
240
|
-
ref: F,
|
|
241
|
-
className: H,
|
|
242
|
-
"data-component": "progress",
|
|
243
|
-
...L,
|
|
244
|
-
children: [
|
|
245
|
-
V,
|
|
246
|
-
/* @__PURE__ */ N(
|
|
247
|
-
"svg",
|
|
248
|
-
{
|
|
249
|
-
ref: P,
|
|
250
|
-
role: "progressbar",
|
|
251
|
-
...A,
|
|
252
|
-
...E,
|
|
253
|
-
...T,
|
|
254
|
-
viewBox: oe,
|
|
255
|
-
className: le,
|
|
256
|
-
children: [
|
|
257
|
-
/* @__PURE__ */ d(
|
|
258
|
-
"circle",
|
|
259
|
-
{
|
|
260
|
-
cx: X,
|
|
261
|
-
cy: q,
|
|
262
|
-
r: _,
|
|
263
|
-
fill: "none",
|
|
264
|
-
strokeDasharray: b,
|
|
265
|
-
className: "ds:[stroke:var(--progress-track)] ds:[stroke-width:var(--spacing-xs)]"
|
|
266
|
-
}
|
|
267
|
-
),
|
|
268
|
-
/* @__PURE__ */ d(
|
|
269
|
-
"circle",
|
|
270
|
-
{
|
|
271
|
-
ref: w,
|
|
272
|
-
cx: X,
|
|
273
|
-
cy: q,
|
|
274
|
-
r: _,
|
|
275
|
-
fill: "none",
|
|
276
|
-
strokeLinecap: "round",
|
|
277
|
-
strokeDasharray: b,
|
|
278
|
-
strokeDashoffset: ce,
|
|
279
|
-
className: de
|
|
280
|
-
}
|
|
281
|
-
)
|
|
282
|
-
]
|
|
283
|
-
}
|
|
284
|
-
)
|
|
285
|
-
]
|
|
286
|
-
}
|
|
287
|
-
) });
|
|
288
|
-
}
|
|
289
|
-
);
|
|
290
|
-
$.displayName = "Progress";
|
|
291
|
-
const Se = Object.assign($, {
|
|
292
|
-
Label: Y,
|
|
293
|
-
Value: Z
|
|
294
|
-
});
|
|
295
|
-
export {
|
|
296
|
-
Se as P,
|
|
297
|
-
ke as p
|
|
298
|
-
};
|
|
299
|
-
//# sourceMappingURL=progress-DA413-zn.js.map
|