@alfadocs/ui-kit 0.41.2 → 0.43.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/address-autocomplete-CSjMrBvu.js +358 -0
- package/dist/_chunks/{alia-sidebar-DXsYPinm.js → alia-sidebar-BpX4z_af.js} +2 -2
- package/dist/_chunks/{ar-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
- package/dist/_chunks/bmi-calculator-DuVSFDuw.js +259 -0
- package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
- package/dist/_chunks/{breadcrumb-CLlhx7qo.js → breadcrumb-OTbaY70e.js} +4 -4
- package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-DdexHrTP.js} +2 -2
- package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
- package/dist/_chunks/cycle-calculator-Dln-y1k_.js +192 -0
- package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
- package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
- package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
- package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
- package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
- package/dist/_chunks/{dialog-Cee13rHU.js → dialog-DOYgd75U.js} +46 -37
- package/dist/_chunks/{document-scanner-CqS_klIr.js → document-scanner-BqLsGs4Y.js} +7 -7
- package/dist/_chunks/{dropdown-menu-BC5ZdOMo.js → dropdown-menu-CUEXqKis.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CUspKSTw.js → due-date-calculator-Cc4dRqTI.js} +62 -41
- package/dist/_chunks/{editable-currency-cell-renderer-DgkCIIcO.js → editable-currency-cell-renderer-9jqwDv5x.js} +3 -3
- package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
- package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
- package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
- package/dist/_chunks/{freemium-paywall-BAk3a6er.js → freemium-paywall-BLXESpH4.js} +2 -2
- package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-CsQ05qDy.js → gestational-age-calculator-ZMSrzkRW.js} +59 -45
- package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
- package/dist/_chunks/{header-settings-CBLwUK6t.js → header-settings-Bx0Biimh.js} +2 -2
- package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
- package/dist/_chunks/index.modern-D2LGACWg.js +1529 -0
- package/dist/_chunks/insert-result-DisOY2G-.js +243 -0
- package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
- package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
- package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
- package/dist/_chunks/{kbd-Cglkd7CY.js → kbd-D855ZXIW.js} +2 -2
- package/dist/_chunks/map-view-Tb5VfK9Y.js +333 -0
- package/dist/_chunks/marketplace-app-shell-Dc5cTIt8.js +428 -0
- package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
- package/dist/_chunks/{patient-search-CBq62kmL.js → patient-search-DPe2ZYEL.js} +2 -2
- package/dist/_chunks/{patient-shell-DF81lALv.js → patient-shell-CnT4L8gn.js} +3 -3
- package/dist/_chunks/{payment-form-Dy3WIIsC.js → payment-form-BzVsG6Ks.js} +5 -5
- package/dist/_chunks/{pdf-viewer-Cy6Ul3hZ.js → pdf-viewer-B6MC6VTx.js} +139 -126
- package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
- package/dist/_chunks/{practice-results-C0d4IL5E.js → practice-results-CrLpEiiW.js} +4 -4
- package/dist/_chunks/pregnancy-weight-gain-zZL5Ir2-.js +224 -0
- package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
- package/dist/_chunks/{public-header.agent-B2dDg2_d.js → public-header.agent-BY6FH71R.js} +2 -2
- package/dist/_chunks/radio-group-CLjK-SlK.js +167 -0
- package/dist/_chunks/{rich-text-editor-DLbg2852.js → rich-text-editor-DhGIBd4a.js} +10 -10
- package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
- package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
- package/dist/_chunks/{sheet-BV-yuLE2.js → sheet-xbzu4YiY.js} +7 -7
- package/dist/_chunks/sign-document-B-3k_0LO.js +344 -0
- package/dist/_chunks/{signature-capture-DoiBd6i3.js → signature-capture-CpMBhqQ9.js} +6 -6
- package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
- package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
- package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
- package/dist/_chunks/tab-bar-Xetknddo.js +105 -0
- package/dist/_chunks/{theme-toggle-DpC28kt5.js → theme-toggle-ClATnY4Q.js} +2 -2
- package/dist/_chunks/{toast.agent-WHHfw5VX.js → toast.agent-B0MCsvdZ.js} +2 -2
- package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
- package/dist/_chunks/{unit-converter-EUwO6QYq.js → unit-converter-CuXCXJhK.js} +46 -40
- package/dist/_chunks/{workflow-map-C3gB0FvB.js → workflow-map-BFNpzTiw.js} +2 -2
- package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/brand/product-lockup/product-lockup.d.ts +16 -0
- package/dist/components/_shared/calendar-class-names.d.ts +8 -0
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/insert-result.d.ts +78 -6
- package/dist/components/address-autocomplete/address-autocomplete.d.ts +77 -0
- package/dist/components/address-autocomplete/index.d.ts +4 -0
- package/dist/components/address-autocomplete/index.js +6 -0
- package/dist/components/address-autocomplete/parse-address.d.ts +52 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +11 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +10 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +12 -2
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts +0 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +11 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +12 -2
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header/header.d.ts +8 -0
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +12 -2
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-document/sign-document.d.ts +12 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/tab-bar/index.d.ts +3 -0
- package/dist/components/tab-bar/index.js +5 -0
- package/dist/components/tab-bar/tab-bar.d.ts +104 -0
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/unit-converter/unit-converter.d.ts +11 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +17 -0
- package/dist/i18n/locales/ar.js +18 -1
- package/dist/i18n/locales/de.d.ts +17 -0
- package/dist/i18n/locales/de.js +18 -1
- package/dist/i18n/locales/el.d.ts +17 -0
- package/dist/i18n/locales/el.js +18 -1
- package/dist/i18n/locales/en.d.ts +17 -0
- package/dist/i18n/locales/en.js +18 -1
- package/dist/i18n/locales/es.d.ts +17 -0
- package/dist/i18n/locales/es.js +18 -1
- package/dist/i18n/locales/fr.d.ts +17 -0
- package/dist/i18n/locales/fr.js +18 -1
- package/dist/i18n/locales/hi.d.ts +17 -0
- package/dist/i18n/locales/hi.js +18 -1
- package/dist/i18n/locales/it.d.ts +17 -0
- package/dist/i18n/locales/it.js +18 -1
- package/dist/i18n/locales/ja.d.ts +17 -0
- package/dist/i18n/locales/ja.js +18 -1
- package/dist/i18n/locales/nl.d.ts +17 -0
- package/dist/i18n/locales/nl.js +18 -1
- package/dist/i18n/locales/pl.d.ts +17 -0
- package/dist/i18n/locales/pl.js +18 -1
- package/dist/i18n/locales/pt.d.ts +17 -0
- package/dist/i18n/locales/pt.js +18 -1
- package/dist/i18n/locales/ro.d.ts +17 -0
- package/dist/i18n/locales/ro.js +18 -1
- package/dist/i18n/locales/ru.d.ts +17 -0
- package/dist/i18n/locales/ru.js +18 -1
- package/dist/i18n/locales/sq.d.ts +17 -0
- package/dist/i18n/locales/sq.js +18 -1
- package/dist/i18n/locales/sv.d.ts +17 -0
- package/dist/i18n/locales/sv.js +18 -1
- package/dist/i18n/locales/tr.d.ts +17 -0
- package/dist/i18n/locales/tr.js +18 -1
- package/dist/i18n/locales/zh.d.ts +17 -0
- package/dist/i18n/locales/zh.js +18 -1
- package/dist/index.js +605 -599
- package/dist/locales/ar.json +18 -1
- package/dist/locales/de.json +18 -1
- package/dist/locales/el.json +18 -1
- package/dist/locales/en.json +18 -1
- package/dist/locales/es.json +18 -1
- package/dist/locales/fr.json +18 -1
- package/dist/locales/hi.json +18 -1
- package/dist/locales/it.json +18 -1
- package/dist/locales/ja.json +18 -1
- package/dist/locales/nl.json +18 -1
- package/dist/locales/pl.json +18 -1
- package/dist/locales/pt.json +18 -1
- package/dist/locales/ro.json +18 -1
- package/dist/locales/ru.json +18 -1
- package/dist/locales/sq.json +18 -1
- package/dist/locales/sv.json +18 -1
- package/dist/locales/tr.json +18 -1
- package/dist/locales/zh.json +18 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +87 -4
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1411 -2
- package/package.json +16 -1
- package/dist/_chunks/bmi-calculator-DnEr513I.js +0 -213
- package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +0 -185
- package/dist/_chunks/insert-result-yJ0QavoN.js +0 -133
- package/dist/_chunks/map-view-qJLybrmN.js +0 -1850
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +0 -296
- package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +0 -209
- package/dist/_chunks/radio-group-BcF92GEF.js +0 -152
- package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
- package/dist/_chunks/sign-document-CpLDZ6Db.js +0 -316
- package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as A, useState as f, useMemo as $, useEffect as F } from "react";
|
|
3
|
+
import { c as _ } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as R } from "react-i18next";
|
|
5
|
+
import { F as y } from "./form-field-BOm9hK35.js";
|
|
6
|
+
import { N as x } from "./number-input-Dj5L3pXK.js";
|
|
7
|
+
import { C as w } from "./card-DPmk26CL.js";
|
|
8
|
+
import { B as k } from "./badge-zsf5i5bH.js";
|
|
9
|
+
import { I as C } from "./insert-result-DisOY2G-.js";
|
|
10
|
+
import { b as M, e as j } from "./bmi-BxD-tFzU.js";
|
|
11
|
+
const z = {
|
|
12
|
+
underweight: { min: 12.5, max: 18 },
|
|
13
|
+
normal: { min: 11.5, max: 16 },
|
|
14
|
+
overweight: { min: 7, max: 11.5 },
|
|
15
|
+
obese: { min: 5, max: 9 }
|
|
16
|
+
}, H = {
|
|
17
|
+
underweight: { min: 0.44, max: 0.58 },
|
|
18
|
+
normal: { min: 0.35, max: 0.5 },
|
|
19
|
+
overweight: { min: 0.23, max: 0.33 },
|
|
20
|
+
obese: { min: 0.17, max: 0.27 }
|
|
21
|
+
}, G = { min: 0.5, max: 2 }, v = 13;
|
|
22
|
+
function L(t, i) {
|
|
23
|
+
if (i <= 0) return { min: 0, max: 0 };
|
|
24
|
+
if (i <= v) {
|
|
25
|
+
const l = i / v;
|
|
26
|
+
return {
|
|
27
|
+
min: G.min * l,
|
|
28
|
+
max: G.max * l
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const c = Math.min(i, 40) - v, r = H[t];
|
|
32
|
+
return {
|
|
33
|
+
min: G.min + r.min * c,
|
|
34
|
+
max: G.max + r.max * c
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function O(t) {
|
|
38
|
+
const i = M(t.prePregnancyBmi), c = z[i], r = L(
|
|
39
|
+
i,
|
|
40
|
+
t.gestationalWeeks
|
|
41
|
+
), l = t.currentWeightKg - t.prePregnancyWeightKg, W = l < r.min ? "below" : l > r.max ? "above" : "within";
|
|
42
|
+
return { category: i, totalRange: c, recommendedToDate: r, actualGainKg: l, status: W };
|
|
43
|
+
}
|
|
44
|
+
const U = _("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
45
|
+
variants: {
|
|
46
|
+
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
47
|
+
},
|
|
48
|
+
defaultVariants: { width: "full" }
|
|
49
|
+
}), V = {
|
|
50
|
+
below: "warning",
|
|
51
|
+
within: "success",
|
|
52
|
+
above: "warning"
|
|
53
|
+
}, q = A(
|
|
54
|
+
({
|
|
55
|
+
onResultChange: t,
|
|
56
|
+
onInsert: i,
|
|
57
|
+
insertVariant: c = "insert",
|
|
58
|
+
onCopy: r,
|
|
59
|
+
onError: l,
|
|
60
|
+
id: W,
|
|
61
|
+
width: K,
|
|
62
|
+
className: P
|
|
63
|
+
}, B) => {
|
|
64
|
+
const { t: e, i18n: N } = R(), [b, D] = f(null), [o, S] = f(null), [g, E] = f(null), [u, I] = f(null), p = j(o, b), n = $(() => p === null || o === null || g === null || u === null ? null : O({
|
|
65
|
+
prePregnancyBmi: p,
|
|
66
|
+
prePregnancyWeightKg: o,
|
|
67
|
+
currentWeightKg: g,
|
|
68
|
+
gestationalWeeks: u
|
|
69
|
+
}), [p, o, g, u]), d = $(
|
|
70
|
+
() => new Intl.NumberFormat(N.language, {
|
|
71
|
+
minimumFractionDigits: 1,
|
|
72
|
+
maximumFractionDigits: 1
|
|
73
|
+
}),
|
|
74
|
+
[N.language]
|
|
75
|
+
);
|
|
76
|
+
F(() => {
|
|
77
|
+
t == null || t(n);
|
|
78
|
+
}, [n, t]);
|
|
79
|
+
const m = e("pregnancyWeightGain.units.kg"), h = (T) => `${d.format(T.min)} – ${d.format(T.max)} ${m}`;
|
|
80
|
+
return /* @__PURE__ */ s(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
ref: B,
|
|
84
|
+
"data-component": "pregnancy-weight-gain",
|
|
85
|
+
"data-component-id": W,
|
|
86
|
+
className: U({ width: K, className: P }),
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
89
|
+
/* @__PURE__ */ a(
|
|
90
|
+
y,
|
|
91
|
+
{
|
|
92
|
+
label: `${e("pregnancyWeightGain.height")} (${e("pregnancyWeightGain.units.cm")})`,
|
|
93
|
+
children: /* @__PURE__ */ a(
|
|
94
|
+
x,
|
|
95
|
+
{
|
|
96
|
+
mode: "decimal",
|
|
97
|
+
min: 0,
|
|
98
|
+
step: 0.5,
|
|
99
|
+
value: b,
|
|
100
|
+
onChange: D
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ a(
|
|
106
|
+
y,
|
|
107
|
+
{
|
|
108
|
+
label: `${e("pregnancyWeightGain.prePregnancyWeight")} (${m})`,
|
|
109
|
+
children: /* @__PURE__ */ a(
|
|
110
|
+
x,
|
|
111
|
+
{
|
|
112
|
+
mode: "decimal",
|
|
113
|
+
min: 0,
|
|
114
|
+
step: 0.1,
|
|
115
|
+
value: o,
|
|
116
|
+
onChange: S
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ a(
|
|
122
|
+
y,
|
|
123
|
+
{
|
|
124
|
+
label: `${e("pregnancyWeightGain.currentWeight")} (${m})`,
|
|
125
|
+
children: /* @__PURE__ */ a(
|
|
126
|
+
x,
|
|
127
|
+
{
|
|
128
|
+
mode: "decimal",
|
|
129
|
+
min: 0,
|
|
130
|
+
step: 0.1,
|
|
131
|
+
value: g,
|
|
132
|
+
onChange: E
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ a(y, { label: e("pregnancyWeightGain.gestationalWeeks"), children: /* @__PURE__ */ a(
|
|
138
|
+
x,
|
|
139
|
+
{
|
|
140
|
+
mode: "integer",
|
|
141
|
+
min: 0,
|
|
142
|
+
max: 42,
|
|
143
|
+
value: u,
|
|
144
|
+
onChange: I
|
|
145
|
+
}
|
|
146
|
+
) })
|
|
147
|
+
] }),
|
|
148
|
+
/* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: n ? `${e("pregnancyWeightGain.actualGain")}: ${d.format(
|
|
149
|
+
n.actualGainKg
|
|
150
|
+
)} ${m}. ${e(`pregnancyWeightGain.status.${n.status}`)}.` : "" }),
|
|
151
|
+
n ? /* @__PURE__ */ a(w, { variant: "elevated", children: /* @__PURE__ */ s(w.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
152
|
+
/* @__PURE__ */ s("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
153
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
154
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.prePregnancyBmi") }),
|
|
155
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:text-foreground", children: [
|
|
156
|
+
d.format(p ?? 0),
|
|
157
|
+
" ·",
|
|
158
|
+
" ",
|
|
159
|
+
e(`pregnancyWeightGain.category.${n.category}`)
|
|
160
|
+
] })
|
|
161
|
+
] }),
|
|
162
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
163
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.actualGain") }),
|
|
164
|
+
/* @__PURE__ */ s("dd", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
165
|
+
/* @__PURE__ */ s("span", { className: "type-metric ds:text-foreground", children: [
|
|
166
|
+
d.format(n.actualGainKg),
|
|
167
|
+
" ",
|
|
168
|
+
m
|
|
169
|
+
] }),
|
|
170
|
+
/* @__PURE__ */ a(k, { variant: V[n.status], size: "lg", children: e(`pregnancyWeightGain.status.${n.status}`) })
|
|
171
|
+
] })
|
|
172
|
+
] }),
|
|
173
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
174
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.recommendedToDate") }),
|
|
175
|
+
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: h(n.recommendedToDate) })
|
|
176
|
+
] }),
|
|
177
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
178
|
+
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.recommendedTotal") }),
|
|
179
|
+
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: h(n.totalRange) })
|
|
180
|
+
] })
|
|
181
|
+
] }),
|
|
182
|
+
/* @__PURE__ */ a("p", { className: "type-body-sm ds:text-muted-foreground", children: e("pregnancyWeightGain.disclaimer") }),
|
|
183
|
+
c === "copy" || i ? /* @__PURE__ */ a(
|
|
184
|
+
C,
|
|
185
|
+
{
|
|
186
|
+
onInsert: i,
|
|
187
|
+
variant: c,
|
|
188
|
+
onCopy: r,
|
|
189
|
+
onError: l,
|
|
190
|
+
card: {
|
|
191
|
+
title: e("insert.title.weightGain"),
|
|
192
|
+
highlight: e(`pregnancyWeightGain.status.${n.status}`),
|
|
193
|
+
fields: [
|
|
194
|
+
{
|
|
195
|
+
label: e("pregnancyWeightGain.actualGain"),
|
|
196
|
+
value: `${d.format(n.actualGainKg)} ${m}`
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: e("pregnancyWeightGain.recommendedToDate"),
|
|
200
|
+
value: h(n.recommendedToDate)
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
label: e("pregnancyWeightGain.recommendedTotal"),
|
|
204
|
+
value: h(n.totalRange)
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
) : null
|
|
210
|
+
] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("pregnancyWeightGain.empty") })
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
q.displayName = "PregnancyWeightGain";
|
|
217
|
+
export {
|
|
218
|
+
q as P,
|
|
219
|
+
H as R,
|
|
220
|
+
z as T,
|
|
221
|
+
O as a,
|
|
222
|
+
L as r
|
|
223
|
+
};
|
|
224
|
+
//# sourceMappingURL=pregnancy-weight-gain-zZL5Ir2-.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as s, r as i, v as r, w as d } from "./date-picker-variants-DLi1Va_e.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "menos de um segundo",
|
|
@@ -144,7 +144,7 @@ const m = {
|
|
|
144
144
|
"novembro",
|
|
145
145
|
"dezembro"
|
|
146
146
|
]
|
|
147
|
-
},
|
|
147
|
+
}, w = {
|
|
148
148
|
narrow: ["d", "s", "t", "q", "q", "s", "s"],
|
|
149
149
|
short: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"],
|
|
150
150
|
abbreviated: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"],
|
|
@@ -157,7 +157,7 @@ const m = {
|
|
|
157
157
|
"sexta-feira",
|
|
158
158
|
"sábado"
|
|
159
159
|
]
|
|
160
|
-
},
|
|
160
|
+
}, v = {
|
|
161
161
|
narrow: {
|
|
162
162
|
am: "AM",
|
|
163
163
|
pm: "PM",
|
|
@@ -235,11 +235,11 @@ const m = {
|
|
|
235
235
|
defaultWidth: "wide"
|
|
236
236
|
}),
|
|
237
237
|
day: i({
|
|
238
|
-
values:
|
|
238
|
+
values: w,
|
|
239
239
|
defaultWidth: "wide"
|
|
240
240
|
}),
|
|
241
241
|
dayPeriod: i({
|
|
242
|
-
values:
|
|
242
|
+
values: v,
|
|
243
243
|
defaultWidth: "wide",
|
|
244
244
|
formattingValues: y,
|
|
245
245
|
defaultFormattingWidth: "wide"
|
|
@@ -367,4 +367,4 @@ const m = {
|
|
|
367
367
|
export {
|
|
368
368
|
N as pt
|
|
369
369
|
};
|
|
370
|
-
//# sourceMappingURL=pt-
|
|
370
|
+
//# sourceMappingURL=pt-D3J-1c_7.js.map
|
|
@@ -4,7 +4,7 @@ import { c as C } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as ss } from "react-i18next";
|
|
5
5
|
import * as m from "@radix-ui/react-navigation-menu";
|
|
6
6
|
import { I as es } from "./icon-button-CKEOrN37.js";
|
|
7
|
-
import { S as f } from "./sheet-
|
|
7
|
+
import { S as f } from "./sheet-xbzu4YiY.js";
|
|
8
8
|
import { C as I } from "./chevron-down-BX_NP2Yh.js";
|
|
9
9
|
import { X as ds } from "./x-CCcI3eJp.js";
|
|
10
10
|
import { M as as } from "./menu-XRhW3_99.js";
|
|
@@ -564,4 +564,4 @@ export {
|
|
|
564
564
|
Cs as P,
|
|
565
565
|
js as p
|
|
566
566
|
};
|
|
567
|
-
//# sourceMappingURL=public-header.agent-
|
|
567
|
+
//# sourceMappingURL=public-header.agent-BY6FH71R.js.map
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as q, useId as E, useMemo as k, useRef as z, useState as F } from "react";
|
|
3
|
+
import * as J from "@radix-ui/react-radio-group";
|
|
4
|
+
import { c as L } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { a as B } from "./radio-TWf9Q-mp.js";
|
|
6
|
+
import { c as O } from "./compose-refs-C0k0tdqF.js";
|
|
7
|
+
import { u as Q } from "./use-direction-Dp8h70PP.js";
|
|
8
|
+
import { u as U } from "./registry-nPAVE19X.js";
|
|
9
|
+
import { C as W } from "./circle-alert-ChA9opNA.js";
|
|
10
|
+
const X = {
|
|
11
|
+
id: "radio-group",
|
|
12
|
+
capabilities: ["select_single"],
|
|
13
|
+
state: {
|
|
14
|
+
value: {
|
|
15
|
+
type: "string",
|
|
16
|
+
descriptionKey: "ui.agent.radioGroup.state.value",
|
|
17
|
+
description: "Currently selected radio value, or empty string when none.",
|
|
18
|
+
read: (t) => t.getValue()
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
actions: {
|
|
22
|
+
set_value: {
|
|
23
|
+
safety: "write",
|
|
24
|
+
argsType: "{ value: string }",
|
|
25
|
+
descriptionKey: "ui.agent.radioGroup.actions.setValue",
|
|
26
|
+
description: "Select the radio with the given value.",
|
|
27
|
+
invoke: (t, o) => {
|
|
28
|
+
t.setValue(o.value);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
domHooks: {
|
|
33
|
+
root: {
|
|
34
|
+
attr: "data-component",
|
|
35
|
+
value: "radio-group",
|
|
36
|
+
description: "Marks the RadioGroup root."
|
|
37
|
+
},
|
|
38
|
+
instanceId: {
|
|
39
|
+
attr: "data-component-id",
|
|
40
|
+
sourceProp: "id",
|
|
41
|
+
description: "Sourced from the id prop."
|
|
42
|
+
},
|
|
43
|
+
item: {
|
|
44
|
+
attr: "data-option-id",
|
|
45
|
+
description: "Stable opaque value emitted on each rendered Radio child."
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, Y = L("ds:flex", {
|
|
49
|
+
variants: {
|
|
50
|
+
variant: {
|
|
51
|
+
vertical: "ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
52
|
+
horizontal: "ds:flex-row ds:flex-wrap ds:gap-[var(--spacing-md)]",
|
|
53
|
+
card: "ds:flex-col ds:gap-[var(--spacing-md)]"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
variant: "vertical"
|
|
58
|
+
}
|
|
59
|
+
}), Z = q(
|
|
60
|
+
({
|
|
61
|
+
children: t,
|
|
62
|
+
variant: o = "vertical",
|
|
63
|
+
label: n,
|
|
64
|
+
description: l,
|
|
65
|
+
error: a,
|
|
66
|
+
required: c,
|
|
67
|
+
disabled: S,
|
|
68
|
+
className: $,
|
|
69
|
+
id: p,
|
|
70
|
+
value: u,
|
|
71
|
+
defaultValue: v,
|
|
72
|
+
onValueChange: s,
|
|
73
|
+
...j
|
|
74
|
+
}, A) => {
|
|
75
|
+
const m = E(), f = `${m}-legend`, g = `${m}-description`, h = `${m}-error`, C = [l ? g : null, a ? h : null].filter(Boolean).join(" ") || void 0, P = n ? f : void 0, H = o === "horizontal" ? "horizontal" : "vertical", x = k(
|
|
76
|
+
() => ({ variant: o }),
|
|
77
|
+
[o]
|
|
78
|
+
), y = l ? /* @__PURE__ */ e("p", { id: g, className: "type-body-sm ds:text-muted-foreground", children: l }) : null, R = a ? /* @__PURE__ */ d(
|
|
79
|
+
"p",
|
|
80
|
+
{
|
|
81
|
+
id: h,
|
|
82
|
+
role: "alert",
|
|
83
|
+
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ e(W, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
|
|
86
|
+
/* @__PURE__ */ e("span", { children: a })
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
) : null, b = z(null), K = O(A, b), M = Q(b), r = u !== void 0, [_, D] = F(
|
|
90
|
+
v ?? ""
|
|
91
|
+
), N = r ? u ?? "" : _, G = z(N);
|
|
92
|
+
G.current = N;
|
|
93
|
+
const V = (i) => {
|
|
94
|
+
r || D(i), s == null || s(i);
|
|
95
|
+
}, T = k(
|
|
96
|
+
() => ({
|
|
97
|
+
getValue: () => G.current,
|
|
98
|
+
setValue: (i) => V(i)
|
|
99
|
+
}),
|
|
100
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
101
|
+
[r, s]
|
|
102
|
+
);
|
|
103
|
+
U(X, T, p);
|
|
104
|
+
const I = /* @__PURE__ */ e(
|
|
105
|
+
J.Root,
|
|
106
|
+
{
|
|
107
|
+
ref: K,
|
|
108
|
+
id: p,
|
|
109
|
+
orientation: H,
|
|
110
|
+
dir: M,
|
|
111
|
+
disabled: S,
|
|
112
|
+
required: c,
|
|
113
|
+
value: r ? u : void 0,
|
|
114
|
+
defaultValue: r ? void 0 : v,
|
|
115
|
+
onValueChange: V,
|
|
116
|
+
"aria-labelledby": P,
|
|
117
|
+
"aria-describedby": C,
|
|
118
|
+
"aria-invalid": !!a || void 0,
|
|
119
|
+
"aria-required": c || void 0,
|
|
120
|
+
className: Y({ variant: o, className: $ }),
|
|
121
|
+
"data-component": "radio-group",
|
|
122
|
+
"data-component-id": p,
|
|
123
|
+
...j,
|
|
124
|
+
children: t
|
|
125
|
+
}
|
|
126
|
+
), w = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0";
|
|
127
|
+
return n ? /* @__PURE__ */ e(B.Provider, { value: x, children: /* @__PURE__ */ d(
|
|
128
|
+
"fieldset",
|
|
129
|
+
{
|
|
130
|
+
role: "presentation",
|
|
131
|
+
className: `${w} ds:border-0 ds:p-0 ds:m-0`,
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ d(
|
|
134
|
+
"legend",
|
|
135
|
+
{
|
|
136
|
+
id: f,
|
|
137
|
+
className: "type-label ds:text-foreground ds:p-0",
|
|
138
|
+
children: [
|
|
139
|
+
n,
|
|
140
|
+
c ? /* @__PURE__ */ e(
|
|
141
|
+
"span",
|
|
142
|
+
{
|
|
143
|
+
"aria-hidden": "true",
|
|
144
|
+
className: "ds:text-destructive ds:ms-[var(--spacing-xs)]",
|
|
145
|
+
children: "*"
|
|
146
|
+
}
|
|
147
|
+
) : null
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
y,
|
|
152
|
+
I,
|
|
153
|
+
R
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
) }) : /* @__PURE__ */ e(B.Provider, { value: x, children: /* @__PURE__ */ d("div", { className: w, children: [
|
|
157
|
+
y,
|
|
158
|
+
I,
|
|
159
|
+
R
|
|
160
|
+
] }) });
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
Z.displayName = "RadioGroup";
|
|
164
|
+
export {
|
|
165
|
+
Z as R
|
|
166
|
+
};
|
|
167
|
+
//# sourceMappingURL=radio-group-CLjK-SlK.js.map
|
|
@@ -241,8 +241,8 @@ const Ze = S(
|
|
|
241
241
|
), G = S(
|
|
242
242
|
[
|
|
243
243
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
244
|
-
"ds:min-block-size
|
|
245
|
-
"ds:min-inline-size
|
|
244
|
+
"ds:[min-block-size:var(--min-target-size)]",
|
|
245
|
+
"ds:[min-inline-size:var(--min-target-size)]",
|
|
246
246
|
"ds:gap-[var(--spacing-xs)]",
|
|
247
247
|
"ds:rounded-[var(--radius-sm)] ds:bg-transparent ds:text-[var(--foreground)]",
|
|
248
248
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
@@ -365,7 +365,7 @@ function Xe({
|
|
|
365
365
|
"aria-label": M,
|
|
366
366
|
className: [
|
|
367
367
|
"ds:absolute ds:top-full ds:mt-[var(--spacing-xs)] ds:start-0 ds:z-[var(--z-dropdown)]",
|
|
368
|
-
"ds:min-inline-size
|
|
368
|
+
"ds:[min-inline-size:8rem] ds:rounded-[var(--radius-md)]",
|
|
369
369
|
"ds:border ds:border-[color:var(--border)] ds:bg-[var(--background)]",
|
|
370
370
|
"ds:shadow-[var(--shadow-lg)] ds:p-[var(--spacing-xs)]"
|
|
371
371
|
].join(" "),
|
|
@@ -379,7 +379,7 @@ function Xe({
|
|
|
379
379
|
className: [
|
|
380
380
|
"ds:flex ds:w-full ds:items-center",
|
|
381
381
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
382
|
-
"ds:min-block-size
|
|
382
|
+
"ds:[min-block-size:var(--min-target-size)]",
|
|
383
383
|
"ds:rounded-[var(--radius-sm)] ds:text-start",
|
|
384
384
|
"ds:hover:bg-[var(--muted)]",
|
|
385
385
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
@@ -432,8 +432,8 @@ function Ye({
|
|
|
432
432
|
"aria-label": l("editor.shortcuts.close"),
|
|
433
433
|
className: [
|
|
434
434
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
435
|
-
"ds:min-block-size
|
|
436
|
-
"ds:min-inline-size
|
|
435
|
+
"ds:[min-block-size:var(--min-target-size)]",
|
|
436
|
+
"ds:[min-inline-size:var(--min-target-size)]",
|
|
437
437
|
"ds:rounded-[var(--radius-sm)]",
|
|
438
438
|
"ds:hover:bg-[var(--muted)]",
|
|
439
439
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
@@ -869,11 +869,11 @@ const Je = se(
|
|
|
869
869
|
const te = (() => {
|
|
870
870
|
switch (y) {
|
|
871
871
|
case "sm":
|
|
872
|
-
return "min-block-size
|
|
872
|
+
return "ds:[min-block-size:8rem]";
|
|
873
873
|
case "md":
|
|
874
|
-
return "min-block-size
|
|
874
|
+
return "ds:[min-block-size:16rem]";
|
|
875
875
|
case "lg":
|
|
876
|
-
return "min-block-size
|
|
876
|
+
return "ds:[min-block-size:24rem]";
|
|
877
877
|
default:
|
|
878
878
|
return;
|
|
879
879
|
}
|
|
@@ -918,4 +918,4 @@ export {
|
|
|
918
918
|
G as t,
|
|
919
919
|
Ze as w
|
|
920
920
|
};
|
|
921
|
-
//# sourceMappingURL=rich-text-editor-
|
|
921
|
+
//# sourceMappingURL=rich-text-editor-DhGIBd4a.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as m, r as t, v as n, w as s } from "./date-picker-variants-DLi1Va_e.js";
|
|
2
2
|
const d = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "mai puțin de o secundă",
|
|
@@ -358,4 +358,4 @@ const d = {
|
|
|
358
358
|
export {
|
|
359
359
|
N as ro
|
|
360
360
|
};
|
|
361
|
-
//# sourceMappingURL=ro-
|
|
361
|
+
//# sourceMappingURL=ro-BKAbbEA3.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as d } from "./isSameWeek-
|
|
1
|
+
import { q as s, r as u, v as o, w as g } from "./date-picker-variants-DLi1Va_e.js";
|
|
2
|
+
import { i as d } from "./isSameWeek-HfxKk6Lz.js";
|
|
3
3
|
function l(e, t) {
|
|
4
4
|
if (e.one !== void 0 && t === 1)
|
|
5
5
|
return e.one;
|
|
@@ -558,4 +558,4 @@ const P = {
|
|
|
558
558
|
export {
|
|
559
559
|
B as ru
|
|
560
560
|
};
|
|
561
|
-
//# sourceMappingURL=ru-
|
|
561
|
+
//# sourceMappingURL=ru-BeG8f0Ep.js.map
|
|
@@ -98,13 +98,13 @@ const P = {
|
|
|
98
98
|
);
|
|
99
99
|
function Y(e, t) {
|
|
100
100
|
return e === "start" || e === "end" ? {
|
|
101
|
-
sm: "[inline-size:360px]",
|
|
102
|
-
md: "[inline-size:480px]",
|
|
103
|
-
lg: "[inline-size:640px]"
|
|
101
|
+
sm: "ds:[inline-size:360px]",
|
|
102
|
+
md: "ds:[inline-size:480px]",
|
|
103
|
+
lg: "ds:[inline-size:640px]"
|
|
104
104
|
}[t] : {
|
|
105
|
-
sm: "[block-size:40dvh]",
|
|
106
|
-
md: "[block-size:60dvh]",
|
|
107
|
-
lg: "[block-size:80dvh]"
|
|
105
|
+
sm: "ds:[block-size:40dvh]",
|
|
106
|
+
md: "ds:[block-size:60dvh]",
|
|
107
|
+
lg: "ds:[block-size:80dvh]"
|
|
108
108
|
}[t];
|
|
109
109
|
}
|
|
110
110
|
const b = A(void 0), m = ({
|
|
@@ -268,4 +268,4 @@ export {
|
|
|
268
268
|
W as S,
|
|
269
269
|
P as s
|
|
270
270
|
};
|
|
271
|
-
//# sourceMappingURL=sheet-
|
|
271
|
+
//# sourceMappingURL=sheet-xbzu4YiY.js.map
|