@alfadocs/ui-kit 1.104.0 → 1.105.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{ai-credits-exhausted-notice-CwZnSACy.js → ai-credits-exhausted-notice-Lws3113e.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-VNh3W57L.js → ai-permission-notice-BkgcGmu8.js} +2 -2
- package/dist/_chunks/{alert-9kEwDza3.js → alert-C4WKViaS.js} +59 -50
- package/dist/_chunks/{anamnesis-summary-rows-B9HqOGd7.js → anamnesis-summary-rows-QhbDdY7b.js} +4 -4
- package/dist/_chunks/{audio-recorder-BOm2FgEu.js → audio-recorder-BlDozxdU.js} +2 -2
- package/dist/_chunks/{auth-form-parts-B3GWChvG.js → auth-form-parts-DVHfqnp6.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DGFm2jfP.js → balance-badge-cell-wJ6cTD_h.js} +3 -3
- package/dist/_chunks/{calendar-appointment-editor-dialog-DqyATSh3.js → calendar-appointment-editor-dialog-D8DblVjW.js} +8 -8
- package/dist/_chunks/{care-plan-card-YWKV8Kjq.js → care-plan-card-DMjlYlFc.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-CApivtMW.js → care-plan-entry-card-3hguBW45.js} +2 -2
- package/dist/_chunks/{contact-profile-card-uExd3pKC.js → contact-profile-card-CAL66GaH.js} +120 -111
- package/dist/_chunks/{data-table-C5uN4ato.js → data-table-zXBxFYpJ.js} +761 -715
- package/dist/_chunks/{date-range-picker-B_j4VQlV.js → date-range-picker-DCADIR8o.js} +2 -2
- package/dist/_chunks/{date-time-picker-cwsWiB4q.js → date-time-picker-CT2bC7-A.js} +2 -2
- package/dist/_chunks/{document-preview-U8H6tnDJ.js → document-preview-BalyZqnn.js} +2 -2
- package/dist/_chunks/{document-scanner-Bf3VUp00.js → document-scanner-5p-Uu8dy.js} +2 -2
- package/dist/_chunks/{entity-summary-BKfR4Vws.js → entity-summary-BbqqYqF1.js} +2 -2
- package/dist/_chunks/{error-summary-mGxIyDAY.js → error-summary-DxNhwf_G.js} +2 -2
- package/dist/_chunks/{face-scheme-DdVLQ5dP.js → face-scheme-e2M2HJGz.js} +2 -2
- package/dist/_chunks/{file-manager-CnGBVX_q.js → file-manager-BDKe59sg.js} +2 -2
- package/dist/_chunks/{forgot-password-form-CeTb5p-x.js → forgot-password-form-vfCO2-Tt.js} +4 -4
- package/dist/_chunks/{freemium-paywall-CM0zQSDE.js → freemium-paywall-BDeq9QWR.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CXcDKQqC.js → gestational-age-calculator-AnaH00nk.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BJFR3onB.js → hcg-doubling-DdyUt4gz.js} +2 -2
- package/dist/_chunks/{heatmap-Cz0Krieg.js → heatmap-D4qqpCEj.js} +1550 -1547
- package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js → help-me-write-templates-YmceSxf5.js} +3 -3
- package/dist/_chunks/info-tip-C-MPkShR.js +266 -0
- package/dist/_chunks/{kit-extensions-C4o_tFN4.js → kit-extensions-BOnTM4Yf.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-BRek9kz7.js → link-cell-renderer-C8vfCOEp.js} +2 -2
- package/dist/_chunks/{login-dev-card-D5BV5j1i.js → login-dev-card-Cz1Clugq.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-BsctSegT.js → marketplace-app-shell-C-4QF6mp.js} +2 -2
- package/dist/_chunks/{notes-panel-BjTpaz8d.js → notes-panel-SlzUL8in.js} +4 -4
- package/dist/_chunks/{notice-group-DkYzKyAZ.js → notice-group-B-trhof8.js} +3 -3
- package/dist/_chunks/{patient-details-BXM3dRKb.js → patient-details-wMgTFtpp.js} +2 -2
- package/dist/_chunks/{patient-field-row--dCDO5oB.js → patient-field-row-Bhm2Ig1P.js} +2 -2
- package/dist/_chunks/{patient-summary-card-DB7fv-Tr.js → patient-summary-card-DMdPPG3n.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js → payment-automation-upsell-u5EuFyCY.js} +2 -2
- package/dist/_chunks/{payment-form-PBuh8PIa.js → payment-form-C-s1x-bU.js} +2 -2
- package/dist/_chunks/{pdf-viewer-DlceXkfW.js → pdf-viewer-BnBKdx0y.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-BAvGdQmt.js → practice-profile-hero-Bb4YyxHA.js} +31 -29
- package/dist/_chunks/{practice-results-ChBP9x2r.js → practice-results-BXz01sti.js} +485 -445
- package/dist/_chunks/{pregnancy-dating-D0Kf9s7s.js → pregnancy-dating-D6dLkMpl.js} +2 -2
- package/dist/_chunks/{progress-notice-DiHWZ8Ms.js → progress-notice-F7ao70ZP.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-BQ95uFCd.js → radiograph-panel.agent-0ngF2sGS.js} +2 -2
- package/dist/_chunks/{registration-form-JzzTomhd.js → registration-form-CEJRUS9G.js} +3 -3
- package/dist/_chunks/{reserved.agent-BxD0gnbt.js → reserved.agent-C-C9cvO5.js} +2 -2
- package/dist/_chunks/{reset-password-form-DDdGEoIL.js → reset-password-form-B0acanDD.js} +4 -4
- package/dist/_chunks/{rich-text-editor-F04przIt.js → rich-text-editor-C3nANKZt.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-DHCQpA4C.js → send-registration-link-form-Nn0jf65G.js} +3 -3
- package/dist/_chunks/{sign-document-B5qZhthO.js → sign-document-CQZVzfpk.js} +2 -2
- package/dist/_chunks/{signature-request-DB6kePIm.js → signature-request-DtLph5Z4.js} +3 -3
- package/dist/_chunks/{switch-D--x7n6h.js → switch-DO6uC4HJ.js} +40 -36
- package/dist/_chunks/{task-editor-BiPGFXtB.js → task-editor-CmXcj6cC.js} +4 -4
- package/dist/_chunks/{tasks-panel-iVeuu9a8.js → tasks-panel-CFo5uIHx.js} +3 -3
- package/dist/_chunks/{theme-toggle-jZRbAidE.js → theme-toggle-Czq3K9jB.js} +2 -2
- package/dist/_chunks/{time-picker-DSt-ns5F.js → time-picker-DDr5vhwQ.js} +344 -332
- package/dist/_chunks/{tooth-scheme-Bd7xECuj.js → tooth-scheme-C-ALCHaV.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-CmqGGYCy.js → use-appointment-details-read-VI26Z-pc.js} +3 -3
- package/dist/_chunks/{voice-control-panel-BGJjUwnY.js → voice-control-panel-B0TUZAiP.js} +3 -3
- package/dist/_chunks/{warning-stack-3S7e2q07.js → warning-stack-Dx7cpj10.js} +2 -2
- package/dist/_chunks/week-availability-CsTiwtYj.js +318 -0
- package/dist/_chunks/weekly-hours-editor-BsVsgeOc.js +252 -0
- package/dist/_chunks/{workflow-map-B1jf6QaB.js → workflow-map-DWk-rZse.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-B_52rH7O.js → workflow-webhook-action-DILFqAVd.js} +2 -2
- package/dist/ag-grid.css +5 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/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/contact-profile-card/contact-profile-card.d.ts +8 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +6 -0
- package/dist/components/data-table/header-min-width.d.ts +21 -0
- package/dist/components/data-table/index.js +2 -2
- 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/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/heatmap/heatmap.d.ts +5 -0
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/info-tip/info-tip.d.ts +10 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notice-group/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/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-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +7 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +13 -0
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/progress-notice/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.d.ts +2 -0
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/week-availability/index.d.ts +3 -0
- package/dist/components/week-availability/index.js +10 -0
- package/dist/components/week-availability/week-availability.d.ts +68 -0
- package/dist/components/weekly-hours-editor/index.d.ts +3 -0
- package/dist/components/weekly-hours-editor/index.js +9 -0
- package/dist/components/weekly-hours-editor/weekly-hours-editor.d.ts +42 -0
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/i18n/locales/ar.d.ts +34 -0
- package/dist/i18n/locales/ar.js +34 -0
- package/dist/i18n/locales/de.d.ts +34 -0
- package/dist/i18n/locales/de.js +34 -0
- package/dist/i18n/locales/el.d.ts +34 -0
- package/dist/i18n/locales/el.js +34 -0
- package/dist/i18n/locales/en.d.ts +34 -0
- package/dist/i18n/locales/en.js +34 -0
- package/dist/i18n/locales/es.d.ts +34 -0
- package/dist/i18n/locales/es.js +34 -0
- package/dist/i18n/locales/fr.d.ts +34 -0
- package/dist/i18n/locales/fr.js +34 -0
- package/dist/i18n/locales/hi.d.ts +34 -0
- package/dist/i18n/locales/hi.js +34 -0
- package/dist/i18n/locales/it.d.ts +34 -0
- package/dist/i18n/locales/it.js +34 -0
- package/dist/i18n/locales/ja.d.ts +34 -0
- package/dist/i18n/locales/ja.js +34 -0
- package/dist/i18n/locales/nl.d.ts +34 -0
- package/dist/i18n/locales/nl.js +34 -0
- package/dist/i18n/locales/pl.d.ts +34 -0
- package/dist/i18n/locales/pl.js +34 -0
- package/dist/i18n/locales/pt.d.ts +34 -0
- package/dist/i18n/locales/pt.js +34 -0
- package/dist/i18n/locales/ro.d.ts +34 -0
- package/dist/i18n/locales/ro.js +34 -0
- package/dist/i18n/locales/ru.d.ts +34 -0
- package/dist/i18n/locales/ru.js +34 -0
- package/dist/i18n/locales/sq.d.ts +34 -0
- package/dist/i18n/locales/sq.js +34 -0
- package/dist/i18n/locales/sv.d.ts +34 -0
- package/dist/i18n/locales/sv.js +34 -0
- package/dist/i18n/locales/tr.d.ts +34 -0
- package/dist/i18n/locales/tr.js +34 -0
- package/dist/i18n/locales/zh.d.ts +34 -0
- package/dist/i18n/locales/zh.js +34 -0
- package/dist/index.js +879 -866
- package/dist/locales/ar.json +34 -0
- package/dist/locales/de.json +34 -0
- package/dist/locales/el.json +34 -0
- package/dist/locales/en.json +34 -0
- package/dist/locales/es.json +34 -0
- package/dist/locales/fr.json +34 -0
- package/dist/locales/hi.json +34 -0
- package/dist/locales/it.json +34 -0
- package/dist/locales/ja.json +34 -0
- package/dist/locales/nl.json +34 -0
- package/dist/locales/pl.json +34 -0
- package/dist/locales/pt.json +34 -0
- package/dist/locales/ro.json +34 -0
- package/dist/locales/ru.json +34 -0
- package/dist/locales/sq.json +34 -0
- package/dist/locales/sv.json +34 -0
- package/dist/locales/tr.json +34 -0
- package/dist/locales/zh.json +34 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +2 -2
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +3 -1
- package/package.json +9 -1
- package/dist/_chunks/info-tip-1Xsq9GLi.js +0 -230
package/dist/_chunks/{help-me-write-templates-ra5a__Yy.js → help-me-write-templates-YmceSxf5.js}
RENAMED
|
@@ -2,8 +2,8 @@ import { jsxs as g, Fragment as _, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as h, useEffect as j, useId as ee, useRef as q, useCallback as P, useMemo as K } from "react";
|
|
3
3
|
import { useTranslation as U } from "react-i18next";
|
|
4
4
|
import { c as ce } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { A as Z } from "./alert-
|
|
6
|
-
import { A as de } from "./ai-credits-exhausted-notice-
|
|
5
|
+
import { A as Z } from "./alert-C4WKViaS.js";
|
|
6
|
+
import { A as de } from "./ai-credits-exhausted-notice-Lws3113e.js";
|
|
7
7
|
import { B as I } from "./button-DohK_Ak_.js";
|
|
8
8
|
import { I as L } from "./icon-button-S8_weU3g.js";
|
|
9
9
|
import { D as W } from "./dialog-C7RWaH08.js";
|
|
@@ -684,4 +684,4 @@ export {
|
|
|
684
684
|
Ie as b,
|
|
685
685
|
nr as u
|
|
686
686
|
};
|
|
687
|
-
//# sourceMappingURL=help-me-write-templates-
|
|
687
|
+
//# sourceMappingURL=help-me-write-templates-YmceSxf5.js.map
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as E, useState as F, useRef as i, useEffect as M, useMemo as D } from "react";
|
|
3
|
+
import { c as _ } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as H } from "react-i18next";
|
|
5
|
+
import { P as f } from "./popover-CN5IsOeS.js";
|
|
6
|
+
import { L as V } from "./link-DtCfnLnF.js";
|
|
7
|
+
import { S as q } from "./scroll-area-CY5SLYNw.js";
|
|
8
|
+
import { c as $ } from "./compose-refs-C0k0tdqF.js";
|
|
9
|
+
import { u as G } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { I as J } from "./info-CGn22peZ.js";
|
|
11
|
+
const Q = {
|
|
12
|
+
id: "info-tip",
|
|
13
|
+
capabilities: ["open", "close"],
|
|
14
|
+
state: {
|
|
15
|
+
isOpen: {
|
|
16
|
+
type: "boolean",
|
|
17
|
+
descriptionKey: "ui.agent.infoTip.state.isOpen",
|
|
18
|
+
description: "True when the info tip card is currently open.",
|
|
19
|
+
read: (s) => s.getIsOpen()
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
actions: {
|
|
23
|
+
open: {
|
|
24
|
+
safety: "read",
|
|
25
|
+
idempotent: !0,
|
|
26
|
+
descriptionKey: "ui.agent.infoTip.actions.open",
|
|
27
|
+
description: "Open the info tip card (including its formula and Learn more link, when set).",
|
|
28
|
+
invoke: (s) => {
|
|
29
|
+
s.open();
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
close: {
|
|
33
|
+
safety: "read",
|
|
34
|
+
idempotent: !0,
|
|
35
|
+
descriptionKey: "ui.agent.infoTip.actions.close",
|
|
36
|
+
description: "Close the info tip card.",
|
|
37
|
+
invoke: (s) => {
|
|
38
|
+
s.close();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
domHooks: {
|
|
43
|
+
root: {
|
|
44
|
+
attr: "data-component",
|
|
45
|
+
value: "info-tip",
|
|
46
|
+
description: "Marks the InfoTip trigger button."
|
|
47
|
+
},
|
|
48
|
+
instanceId: {
|
|
49
|
+
attr: "data-component-id",
|
|
50
|
+
sourceProp: "id",
|
|
51
|
+
description: "Sourced from the id prop on InfoTip."
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}, U = _(
|
|
55
|
+
[
|
|
56
|
+
"ds:relative ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
57
|
+
"ds:rounded-[var(--radius-full)]",
|
|
58
|
+
"ds:bg-[var(--card)]",
|
|
59
|
+
"ds:text-[var(--accent)]",
|
|
60
|
+
// Single ring: the Lucide Info glyph draws its own accent circle, so the
|
|
61
|
+
// trigger carries NO CSS border of its own (a border would read as a
|
|
62
|
+
// second, concentric ring). The white circle comes from `bg-card` showing
|
|
63
|
+
// through the glyph, lifted by the drop shadow.
|
|
64
|
+
"ds:shadow-[var(--shadow-sm)]",
|
|
65
|
+
"ds:cursor-pointer",
|
|
66
|
+
"ds:transition-[color,box-shadow] ds:motion-reduce:transition-none",
|
|
67
|
+
"ds:hover:text-[var(--accent-hover)] ds:hover:shadow-[var(--shadow-md)]",
|
|
68
|
+
"ds:data-[state=open]:text-[var(--accent-hover)] ds:data-[state=open]:shadow-[var(--shadow-md)]",
|
|
69
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
70
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
71
|
+
].join(" "),
|
|
72
|
+
{
|
|
73
|
+
variants: {
|
|
74
|
+
size: {
|
|
75
|
+
// Both diameters sit below `--min-target-size` (44/48px), so each
|
|
76
|
+
// re-uses IconButton's invisible `::before` hit-area expansion to a
|
|
77
|
+
// full touch target on touch / small screens. From the `sm:`
|
|
78
|
+
// breakpoint up the pointer is precise, so the expansion relaxes —
|
|
79
|
+
// but the interactive target must never fall below WCAG 2.5.8's 24px:
|
|
80
|
+
// • md (24px visual) already meets the 24px floor, so its `::before`
|
|
81
|
+
// is hidden on desktop and the 24px circle IS the target.
|
|
82
|
+
// • sm (20px visual) would fall to 20px if hidden — below the floor
|
|
83
|
+
// — so instead of hiding, its `::before` shrinks to a persistent
|
|
84
|
+
// `--spacing-lg` (24px) minimum that holds on desktop too.
|
|
85
|
+
sm: 'ds:w-5 ds:h-5 ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""] ds:sm:before:inset-x-[calc((var(--spacing-lg)-100%)/-2)] ds:sm:before:inset-y-[calc((var(--spacing-lg)-100%)/-2)]',
|
|
86
|
+
md: 'ds:w-6 ds:h-6 ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""] ds:sm:before:hidden'
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
defaultVariants: {
|
|
90
|
+
size: "md"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
), W = 'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
94
|
+
function X(s) {
|
|
95
|
+
if (!s) return null;
|
|
96
|
+
const n = s.querySelectorAll(W);
|
|
97
|
+
for (const t of n) {
|
|
98
|
+
const u = getComputedStyle(t);
|
|
99
|
+
if (!t.hidden && u.display !== "none" && u.visibility !== "hidden")
|
|
100
|
+
return t;
|
|
101
|
+
}
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
function Y({
|
|
105
|
+
interactive: s,
|
|
106
|
+
className: n,
|
|
107
|
+
children: t
|
|
108
|
+
}) {
|
|
109
|
+
return s ? /* @__PURE__ */ r(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
className: `ds:text-[var(--muted-foreground)] type-body-sm ds:mt-[var(--spacing-xs)] ${n}`,
|
|
113
|
+
children: t
|
|
114
|
+
}
|
|
115
|
+
) : /* @__PURE__ */ r(f.Description, { className: n, children: t });
|
|
116
|
+
}
|
|
117
|
+
const Z = E(
|
|
118
|
+
({
|
|
119
|
+
content: s,
|
|
120
|
+
heading: n,
|
|
121
|
+
size: t = "md",
|
|
122
|
+
cardSize: u,
|
|
123
|
+
side: S = "top",
|
|
124
|
+
align: z = "center",
|
|
125
|
+
"aria-label": C,
|
|
126
|
+
id: x,
|
|
127
|
+
className: L,
|
|
128
|
+
formula: T,
|
|
129
|
+
interactive: p = !1,
|
|
130
|
+
learnMoreHref: w,
|
|
131
|
+
learnMoreLabel: j,
|
|
132
|
+
onLearnMore: K
|
|
133
|
+
}, k) => {
|
|
134
|
+
const { t: b } = H("ui"), [m, v] = F(!1), a = i(m);
|
|
135
|
+
M(() => {
|
|
136
|
+
a.current = m;
|
|
137
|
+
}, [m]);
|
|
138
|
+
const P = D(
|
|
139
|
+
() => ({
|
|
140
|
+
getIsOpen: () => a.current,
|
|
141
|
+
open: () => v(!0),
|
|
142
|
+
close: () => v(!1)
|
|
143
|
+
}),
|
|
144
|
+
[]
|
|
145
|
+
);
|
|
146
|
+
G(Q, P, x);
|
|
147
|
+
const g = i(null), R = () => {
|
|
148
|
+
g.current = a.current;
|
|
149
|
+
}, I = w != null, N = i(null), B = D(
|
|
150
|
+
() => $(k, N),
|
|
151
|
+
[k]
|
|
152
|
+
), O = i(null), h = i(null), A = i(null), y = C ?? b("infoTip.triggerLabel", "More information");
|
|
153
|
+
return /* @__PURE__ */ c(f, { openOn: "hover-or-click", open: m, onOpenChange: v, children: [
|
|
154
|
+
/* @__PURE__ */ r(
|
|
155
|
+
f.Trigger,
|
|
156
|
+
{
|
|
157
|
+
ref: B,
|
|
158
|
+
"aria-label": y,
|
|
159
|
+
className: U({ size: t, className: L }),
|
|
160
|
+
"data-component": "info-tip",
|
|
161
|
+
"data-component-id": x,
|
|
162
|
+
onPointerDown: R,
|
|
163
|
+
onKeyDown: (e) => {
|
|
164
|
+
(e.key === "Enter" || e.key === " ") && R();
|
|
165
|
+
const o = A.current, d = (o == null ? void 0 : o.tabIndex) === 0, l = d ? o : p ? X(h.current) : O.current;
|
|
166
|
+
(I || d || p) && e.key === "Tab" && !e.shiftKey && a.current && l && (e.preventDefault(), l.focus());
|
|
167
|
+
},
|
|
168
|
+
onClick: (e) => {
|
|
169
|
+
const o = g.current;
|
|
170
|
+
g.current = null, o === !1 && a.current && e.preventDefault();
|
|
171
|
+
},
|
|
172
|
+
children: /* @__PURE__ */ r(
|
|
173
|
+
J,
|
|
174
|
+
{
|
|
175
|
+
"aria-hidden": "true",
|
|
176
|
+
className: t === "sm" ? "ds:size-5" : "ds:size-6"
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
}
|
|
180
|
+
),
|
|
181
|
+
/* @__PURE__ */ c(
|
|
182
|
+
f.Content,
|
|
183
|
+
{
|
|
184
|
+
ref: h,
|
|
185
|
+
side: S,
|
|
186
|
+
align: z,
|
|
187
|
+
size: u ?? (t === "sm" ? "sm" : "md"),
|
|
188
|
+
className: [
|
|
189
|
+
"ds:flex ds:flex-col ds:max-h-[var(--radix-popover-content-available-height)]",
|
|
190
|
+
// Links and buttons reach the touch target on small screens.
|
|
191
|
+
p && "ds:max-sm:[&_a]:inline-flex ds:max-sm:[&_a]:items-center ds:max-sm:[&_a]:min-block-[var(--min-target-size)]"
|
|
192
|
+
].filter(Boolean).join(" "),
|
|
193
|
+
"aria-label": n == null ? y : void 0,
|
|
194
|
+
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
195
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
196
|
+
onEscapeKeyDown: (e) => {
|
|
197
|
+
var d, l;
|
|
198
|
+
const o = document.activeElement;
|
|
199
|
+
o && ((d = h.current) != null && d.contains(o)) && (e.preventDefault(), (l = N.current) == null || l.focus(), v(!1));
|
|
200
|
+
},
|
|
201
|
+
children: [
|
|
202
|
+
n != null && /* @__PURE__ */ r(f.Heading, { children: n }),
|
|
203
|
+
/* @__PURE__ */ r(
|
|
204
|
+
Y,
|
|
205
|
+
{
|
|
206
|
+
interactive: p,
|
|
207
|
+
className: "ds:flex ds:min-h-0 ds:flex-col",
|
|
208
|
+
children: /* @__PURE__ */ c(
|
|
209
|
+
q,
|
|
210
|
+
{
|
|
211
|
+
ref: A,
|
|
212
|
+
type: "native",
|
|
213
|
+
"aria-label": typeof n == "string" ? n : y,
|
|
214
|
+
className: "ds:min-h-[3lh]",
|
|
215
|
+
children: [
|
|
216
|
+
s,
|
|
217
|
+
T != null && /* @__PURE__ */ c(
|
|
218
|
+
"div",
|
|
219
|
+
{
|
|
220
|
+
"data-slot": "formula",
|
|
221
|
+
className: "type-body-sm ds:mt-[var(--spacing-sm)] ds:rounded-[var(--radius-sm)] ds:bg-[var(--muted)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[var(--foreground)] ds:tabular-nums",
|
|
222
|
+
children: [
|
|
223
|
+
/* @__PURE__ */ c("span", { className: "ds:sr-only", children: [
|
|
224
|
+
b("infoTip.formula", "Formula"),
|
|
225
|
+
":",
|
|
226
|
+
" "
|
|
227
|
+
] }),
|
|
228
|
+
T
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
)
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
}
|
|
236
|
+
),
|
|
237
|
+
I && /* @__PURE__ */ r(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
"data-slot": "footer",
|
|
241
|
+
className: "ds:mt-[var(--spacing-sm)] ds:flex ds:justify-end",
|
|
242
|
+
children: /* @__PURE__ */ r(
|
|
243
|
+
V,
|
|
244
|
+
{
|
|
245
|
+
ref: O,
|
|
246
|
+
href: w,
|
|
247
|
+
onClick: K,
|
|
248
|
+
weight: "strong",
|
|
249
|
+
className: "type-body-sm",
|
|
250
|
+
children: j ?? b("infoTip.learnMore", "Learn more")
|
|
251
|
+
}
|
|
252
|
+
)
|
|
253
|
+
}
|
|
254
|
+
)
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
)
|
|
258
|
+
] });
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
Z.displayName = "InfoTip";
|
|
262
|
+
export {
|
|
263
|
+
Z as I,
|
|
264
|
+
Q as i
|
|
265
|
+
};
|
|
266
|
+
//# sourceMappingURL=info-tip-C-MPkShR.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElement as e } from "react";
|
|
2
|
-
import { P as i } from "./pregnancy-dating-
|
|
2
|
+
import { P as i } from "./pregnancy-dating-D6dLkMpl.js";
|
|
3
3
|
import { P as o } from "./pregnancy-weight-gain-B_Zldlzq.js";
|
|
4
|
-
import { G as r } from "./gestational-age-calculator-
|
|
4
|
+
import { G as r } from "./gestational-age-calculator-AnaH00nk.js";
|
|
5
5
|
import { C as c } from "./cycle-calculator-ZMDvToIm.js";
|
|
6
6
|
import { F as s } from "./fetal-weight-CkIwJgiH.js";
|
|
7
7
|
import { c as a } from "./createLucideIcon-DhHxpK9K.js";
|
|
@@ -91,4 +91,4 @@ const k = [
|
|
|
91
91
|
export {
|
|
92
92
|
I as k
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=kit-extensions-
|
|
94
|
+
//# sourceMappingURL=kit-extensions-BOnTM4Yf.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as u, jsxs as R } from "react/jsx-runtime";
|
|
2
2
|
import { useState as x, useEffect as w, useCallback as W, useMemo as E, useRef as ee } from "react";
|
|
3
3
|
import { useGridFilter as V } from "ag-grid-react";
|
|
4
|
-
import { D as te } from "./date-range-picker-
|
|
4
|
+
import { D as te } from "./date-range-picker-DCADIR8o.js";
|
|
5
5
|
import { useTranslation as M } from "react-i18next";
|
|
6
6
|
import { C as le } from "./checkbox-a7Sh-dXb.js";
|
|
7
7
|
import { B as j } from "./button-DohK_Ak_.js";
|
|
@@ -864,4 +864,4 @@ export {
|
|
|
864
864
|
Ke as g,
|
|
865
865
|
k as h
|
|
866
866
|
};
|
|
867
|
-
//# sourceMappingURL=link-cell-renderer-
|
|
867
|
+
//# sourceMappingURL=link-cell-renderer-C8vfCOEp.js.map
|
|
@@ -7,13 +7,13 @@ import { B as he } from "./button-DohK_Ak_.js";
|
|
|
7
7
|
import { C as je } from "./checkbox-a7Sh-dXb.js";
|
|
8
8
|
import { C as b } from "./card-C85_Ndhb.js";
|
|
9
9
|
import { T as De } from "./text-input-B6iAgCr3.js";
|
|
10
|
-
import { E as He } from "./error-summary-
|
|
10
|
+
import { E as He } from "./error-summary-DxNhwf_G.js";
|
|
11
11
|
import { F as ue } from "./form-field-CyHfOVKF.js";
|
|
12
12
|
import { P as Oe } from "./password-input-SJGHFdOO.js";
|
|
13
13
|
import { i as $e } from "./is-development-CLUAnsU7.js";
|
|
14
14
|
import { i as ve } from "./safe-href-5dbsfbQn.js";
|
|
15
15
|
import { u as _e, w as Ge } from "./use-state-backed-input-DhRQo6gM.js";
|
|
16
|
-
import { u as We, a as Je, A as Ke, b as Qe, d as _, E as Ue, c as Xe } from "./auth-form-parts-
|
|
16
|
+
import { u as We, a as Je, A as Ke, b as Qe, d as _, E as Ue, c as Xe } from "./auth-form-parts-DVHfqnp6.js";
|
|
17
17
|
import { u as Ye, b as Ze, a as Ve } from "./use-registration-submit-CLGHxwoT.js";
|
|
18
18
|
import { M as es } from "./matrix-rain-sDOUUwZp.js";
|
|
19
19
|
import { a as ss } from "./error-page-illustration-BdJLuMdV.js";
|
|
@@ -382,4 +382,4 @@ export {
|
|
|
382
382
|
is as a,
|
|
383
383
|
ns as b
|
|
384
384
|
};
|
|
385
|
-
//# sourceMappingURL=login-dev-card-
|
|
385
|
+
//# sourceMappingURL=login-dev-card-Cz1Clugq.js.map
|
package/dist/_chunks/{marketplace-app-shell-BsctSegT.js → marketplace-app-shell-C-4QF6mp.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { useTranslation as B, Trans as xe } from "react-i18next";
|
|
|
4
4
|
import { c as p } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { A as q } from "./app-frame-DUPEwu4E.js";
|
|
6
6
|
import { A as F } from "./avatar-Dp5apm1d.js";
|
|
7
|
-
import { A as be } from "./alert-
|
|
7
|
+
import { A as be } from "./alert-C4WKViaS.js";
|
|
8
8
|
import { C as U } from "./card-C85_Ndhb.js";
|
|
9
9
|
import { D as u } from "./dropdown-menu-CqxBthww.js";
|
|
10
10
|
import { T as ke } from "./tab-bar-C_pggqVr.js";
|
|
@@ -656,4 +656,4 @@ export {
|
|
|
656
656
|
na as M,
|
|
657
657
|
y as P
|
|
658
658
|
};
|
|
659
|
-
//# sourceMappingURL=marketplace-app-shell-
|
|
659
|
+
//# sourceMappingURL=marketplace-app-shell-C-4QF6mp.js.map
|
|
@@ -5,12 +5,12 @@ import { useTranslation as kn } from "react-i18next";
|
|
|
5
5
|
import { g as mt, h as Rt } from "./handled-rejection-6gqCf5vt.js";
|
|
6
6
|
import { u as zn } from "./registry-DvAUVLHh.js";
|
|
7
7
|
import { C as Hn } from "./clinical-note-card-BVkxGiGl.js";
|
|
8
|
-
import { R as Mn } from "./rich-text-editor-
|
|
8
|
+
import { R as Mn } from "./rich-text-editor-C3nANKZt.js";
|
|
9
9
|
import { T as Wn } from "./text-area-COMVJ1yE.js";
|
|
10
|
-
import { A as j } from "./alert-
|
|
10
|
+
import { A as j } from "./alert-C4WKViaS.js";
|
|
11
11
|
import { B as te } from "./button-DohK_Ak_.js";
|
|
12
12
|
import { I as vt } from "./icon-button-S8_weU3g.js";
|
|
13
|
-
import { S as $n } from "./switch-
|
|
13
|
+
import { S as $n } from "./switch-DO6uC4HJ.js";
|
|
14
14
|
import { T as Bn } from "./tooltip-uEBdD1-5.js";
|
|
15
15
|
import { C as yt } from "./card-C85_Ndhb.js";
|
|
16
16
|
import { C as Kn, S as ve } from "./skeleton-tTWJpvAq.js";
|
|
@@ -1109,4 +1109,4 @@ const jr = qn(
|
|
|
1109
1109
|
export {
|
|
1110
1110
|
jr as N
|
|
1111
1111
|
};
|
|
1112
|
-
//# sourceMappingURL=notes-panel-
|
|
1112
|
+
//# sourceMappingURL=notes-panel-SlzUL8in.js.map
|
|
@@ -6,9 +6,9 @@ import { u as we } from "./use-controllable-state-BiY4xTzM.js";
|
|
|
6
6
|
import { c as J, d as be } from "./use-dismissed-CTOWqA0e.js";
|
|
7
7
|
import { i as xe } from "./is-development-CLUAnsU7.js";
|
|
8
8
|
import { u as Ce } from "./registry-DvAUVLHh.js";
|
|
9
|
-
import { A as U } from "./alert-
|
|
9
|
+
import { A as U } from "./alert-C4WKViaS.js";
|
|
10
10
|
import { C as ke, b as Se, a as Ge } from "./collapsible-DVPM46bq.js";
|
|
11
|
-
import { P as Ne } from "./progress-notice-
|
|
11
|
+
import { P as Ne } from "./progress-notice-F7ao70ZP.js";
|
|
12
12
|
import { C as Te } from "./chevron-down-DWE7GSq9.js";
|
|
13
13
|
const Oe = {
|
|
14
14
|
id: "notice-group",
|
|
@@ -288,4 +288,4 @@ export {
|
|
|
288
288
|
je as N,
|
|
289
289
|
Oe as n
|
|
290
290
|
};
|
|
291
|
-
//# sourceMappingURL=notice-group-
|
|
291
|
+
//# sourceMappingURL=notice-group-B-trhof8.js.map
|
|
@@ -8,7 +8,7 @@ import { C as ie, b as te, a as se } from "./collapsible-DVPM46bq.js";
|
|
|
8
8
|
import { D as ae } from "./description-list-BxzDN9o2.js";
|
|
9
9
|
import { P as de } from "./panel-header-CbtlTe85.js";
|
|
10
10
|
import { u as re } from "./registry-DvAUVLHh.js";
|
|
11
|
-
import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row
|
|
11
|
+
import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-Bhm2Ig1P.js";
|
|
12
12
|
import { C as pe } from "./clipboard-list-rSzfIYZB.js";
|
|
13
13
|
const me = {
|
|
14
14
|
id: "patient-details",
|
|
@@ -368,4 +368,4 @@ export {
|
|
|
368
368
|
ue as P,
|
|
369
369
|
me as p
|
|
370
370
|
};
|
|
371
|
-
//# sourceMappingURL=patient-details-
|
|
371
|
+
//# sourceMappingURL=patient-details-wMgTFtpp.js.map
|
|
@@ -28,7 +28,7 @@ import { P as he } from "./phone-input-BL8Sj6OG.js";
|
|
|
28
28
|
import { P as ye } from "./postal-code-input-dJdSAVkP.js";
|
|
29
29
|
import { P as be } from "./province-select-cVOlwEc5.js";
|
|
30
30
|
import { S as ve } from "./select-BBDRYxJl.js";
|
|
31
|
-
import { S as xe } from "./switch-
|
|
31
|
+
import { S as xe } from "./switch-DO6uC4HJ.js";
|
|
32
32
|
import { T as Ce } from "./text-area-COMVJ1yE.js";
|
|
33
33
|
import { T as ke } from "./text-input-B6iAgCr3.js";
|
|
34
34
|
import { u as Ve } from "./use-state-backed-input-DhRQo6gM.js";
|
|
@@ -805,4 +805,4 @@ export {
|
|
|
805
805
|
Dt as r,
|
|
806
806
|
St as u
|
|
807
807
|
};
|
|
808
|
-
//# sourceMappingURL=patient-field-row
|
|
808
|
+
//# sourceMappingURL=patient-field-row-Bhm2Ig1P.js.map
|
|
@@ -14,7 +14,7 @@ import { T as Ke } from "./transaction-chip-CohY6sTA.js";
|
|
|
14
14
|
import { T as je } from "./tooltip-uEBdD1-5.js";
|
|
15
15
|
import { H as G } from "./hover-card-CuRIA4wN.js";
|
|
16
16
|
import { i as de } from "./is-safe-url-DkETxeHz.js";
|
|
17
|
-
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row
|
|
17
|
+
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-Bhm2Ig1P.js";
|
|
18
18
|
import { u as Oe } from "./registry-DvAUVLHh.js";
|
|
19
19
|
import { M as ea } from "./mail-BqXVF2zH.js";
|
|
20
20
|
import { P as aa } from "./phone-FceYcIFQ.js";
|
|
@@ -548,4 +548,4 @@ export {
|
|
|
548
548
|
Ca as P,
|
|
549
549
|
ma as p
|
|
550
550
|
};
|
|
551
|
-
//# sourceMappingURL=patient-summary-card-
|
|
551
|
+
//# sourceMappingURL=patient-summary-card-DMdPPG3n.js.map
|
package/dist/_chunks/{payment-automation-upsell-BPF0c-5D.js → payment-automation-upsell-u5EuFyCY.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as M, useId as r } from "react";
|
|
3
|
-
import { A as p } from "./alert-
|
|
3
|
+
import { A as p } from "./alert-C4WKViaS.js";
|
|
4
4
|
import { B as P } from "./badge-BUk4RjTS.js";
|
|
5
5
|
import { B as y } from "./benefit-card-BcPtRHgM.js";
|
|
6
6
|
import { B as C } from "./button-DohK_Ak_.js";
|
|
@@ -283,4 +283,4 @@ Y.displayName = "PaymentAutomationUpsell";
|
|
|
283
283
|
export {
|
|
284
284
|
Y as P
|
|
285
285
|
};
|
|
286
|
-
//# sourceMappingURL=payment-automation-upsell-
|
|
286
|
+
//# sourceMappingURL=payment-automation-upsell-u5EuFyCY.js.map
|
|
@@ -4,7 +4,7 @@ import { c as ne } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as Ie } from "react-i18next";
|
|
5
5
|
import { S as Ke } from "./spinner-CoflYlEx.js";
|
|
6
6
|
import { n as qe } from "./intl-locale-FWh-Y5_3.js";
|
|
7
|
-
import { A as Ne } from "./alert-
|
|
7
|
+
import { A as Ne } from "./alert-C4WKViaS.js";
|
|
8
8
|
import { loadStripe as Pe } from "@stripe/stripe-js/pure";
|
|
9
9
|
import { Elements as Ge, useStripe as He, useElements as We, AddressElement as Fe, PaymentElement as Oe } from "@stripe/react-stripe-js";
|
|
10
10
|
import { u as Xe } from "./registry-DvAUVLHh.js";
|
|
@@ -914,4 +914,4 @@ export {
|
|
|
914
914
|
Je as p,
|
|
915
915
|
Re as s
|
|
916
916
|
};
|
|
917
|
-
//# sourceMappingURL=payment-form-
|
|
917
|
+
//# sourceMappingURL=payment-form-C-s1x-bU.js.map
|
|
@@ -7,7 +7,7 @@ import * as ne from "@radix-ui/react-popover";
|
|
|
7
7
|
import { u as Le, f as qe } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
8
8
|
import Re from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
|
|
9
9
|
import { S as Be } from "./spinner-CoflYlEx.js";
|
|
10
|
-
import { A as Se } from "./alert-
|
|
10
|
+
import { A as Se } from "./alert-C4WKViaS.js";
|
|
11
11
|
import { u as He } from "./registry-DvAUVLHh.js";
|
|
12
12
|
import { X as We } from "./x-B5YnXwCz.js";
|
|
13
13
|
import { C as Qe } from "./chevron-left-B8cOyH-V.js";
|
|
@@ -1048,4 +1048,4 @@ export {
|
|
|
1048
1048
|
it as P,
|
|
1049
1049
|
Ye as p
|
|
1050
1050
|
};
|
|
1051
|
-
//# sourceMappingURL=pdf-viewer-
|
|
1051
|
+
//# sourceMappingURL=pdf-viewer-BnBKdx0y.js.map
|
package/dist/_chunks/{practice-profile-hero-BAvGdQmt.js → practice-profile-hero-Bb4YyxHA.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as i, jsx as e, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
1
|
+
import { jsxs as i, jsx as e, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as A, useId as E, useState as K, useEffect as M, useMemo as V, useRef as F } from "react";
|
|
3
|
+
import { c as L } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { A as b } from "./avatar-Dp5apm1d.js";
|
|
5
|
-
import { B as
|
|
5
|
+
import { B as W } from "./badge-BUk4RjTS.js";
|
|
6
6
|
import { C } from "./card-C85_Ndhb.js";
|
|
7
|
-
import { R as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
const
|
|
7
|
+
import { R as $ } from "./rating-CGYpg5dj.js";
|
|
8
|
+
import { u as q } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
9
|
+
import { u as D } from "./registry-DvAUVLHh.js";
|
|
10
|
+
const G = {
|
|
11
11
|
id: "practice-profile-hero",
|
|
12
12
|
// Purely observable hero region — no interactive affordances and no
|
|
13
13
|
// imperative actions on the handle (getName / getHasCover are read-only
|
|
@@ -40,7 +40,7 @@ const D = {
|
|
|
40
40
|
description: "Sourced from the id prop."
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
},
|
|
43
|
+
}, J = L("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
44
44
|
variants: {
|
|
45
45
|
// Matches the kit's other `surface` props (Booking, ReviewsPanel,
|
|
46
46
|
// OperatorHero). `'elevated'` wraps in `<Card>`.
|
|
@@ -52,10 +52,11 @@ const D = {
|
|
|
52
52
|
defaultVariants: {
|
|
53
53
|
surface: "elevated"
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), O = A(
|
|
56
56
|
({
|
|
57
57
|
name: a,
|
|
58
58
|
tagline: f,
|
|
59
|
+
contentLang: k,
|
|
59
60
|
imageUrl: n,
|
|
60
61
|
imageAlt: l,
|
|
61
62
|
coverImageUrl: r,
|
|
@@ -65,11 +66,11 @@ const D = {
|
|
|
65
66
|
surface: h = "elevated",
|
|
66
67
|
"aria-label": v,
|
|
67
68
|
id: u,
|
|
68
|
-
className:
|
|
69
|
-
...
|
|
70
|
-
},
|
|
71
|
-
const g =
|
|
72
|
-
|
|
69
|
+
className: R,
|
|
70
|
+
...j
|
|
71
|
+
}, B) => {
|
|
72
|
+
const g = E(), [d, x] = K(null), y = r && (d == null ? void 0 : d.url) === r ? d.status : "loading";
|
|
73
|
+
M(() => {
|
|
73
74
|
if (!r || typeof Image > "u") return;
|
|
74
75
|
let s = !0;
|
|
75
76
|
const o = new Image();
|
|
@@ -81,13 +82,13 @@ const D = {
|
|
|
81
82
|
s = !1, o.onload = null, o.onerror = null;
|
|
82
83
|
};
|
|
83
84
|
}, [r]);
|
|
84
|
-
const t = !!r && y !== "error",
|
|
85
|
+
const t = !!r && y !== "error", z = V(
|
|
85
86
|
() => ({ getName: () => a, getHasCover: () => t }),
|
|
86
87
|
[a, t]
|
|
87
88
|
);
|
|
88
|
-
|
|
89
|
-
const N =
|
|
90
|
-
|
|
89
|
+
D(G, z, u);
|
|
90
|
+
const N = F(null);
|
|
91
|
+
q(() => {
|
|
91
92
|
const s = N.current;
|
|
92
93
|
s && (r ? s.style.setProperty(
|
|
93
94
|
"--practice-profile-hero-cover",
|
|
@@ -173,6 +174,7 @@ const D = {
|
|
|
173
174
|
f ? /* @__PURE__ */ e(
|
|
174
175
|
"p",
|
|
175
176
|
{
|
|
177
|
+
lang: k,
|
|
176
178
|
dir: "auto",
|
|
177
179
|
className: "type-body ds:m-0 ds:text-[color:var(--foreground)]",
|
|
178
180
|
children: f
|
|
@@ -182,7 +184,7 @@ const D = {
|
|
|
182
184
|
// Rating owns the whole line: locale-formatted value, plural-
|
|
183
185
|
// aware review count, and a single role="img" announcement.
|
|
184
186
|
/* @__PURE__ */ e(
|
|
185
|
-
|
|
187
|
+
$,
|
|
186
188
|
{
|
|
187
189
|
value: c.value,
|
|
188
190
|
max: 5,
|
|
@@ -197,7 +199,7 @@ const D = {
|
|
|
197
199
|
role: "list",
|
|
198
200
|
className: "ds:mt-[var(--spacing-2xs)] ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
199
201
|
children: p.map((s) => /* @__PURE__ */ e(
|
|
200
|
-
|
|
202
|
+
W,
|
|
201
203
|
{
|
|
202
204
|
variant: s.variant ?? "neutral",
|
|
203
205
|
role: "listitem",
|
|
@@ -214,7 +216,7 @@ const D = {
|
|
|
214
216
|
return /* @__PURE__ */ e(
|
|
215
217
|
"div",
|
|
216
218
|
{
|
|
217
|
-
ref:
|
|
219
|
+
ref: B,
|
|
218
220
|
role: "region",
|
|
219
221
|
"aria-label": v,
|
|
220
222
|
"aria-labelledby": v ? void 0 : g,
|
|
@@ -222,12 +224,12 @@ const D = {
|
|
|
222
224
|
"data-component-id": u,
|
|
223
225
|
"data-has-cover": t ? "true" : "false",
|
|
224
226
|
id: u,
|
|
225
|
-
className:
|
|
226
|
-
...
|
|
227
|
+
className: J({ surface: h, className: R }),
|
|
228
|
+
...j,
|
|
227
229
|
children: h === "elevated" ? /* @__PURE__ */ i(C, { variant: "elevated", children: [
|
|
228
230
|
P,
|
|
229
231
|
/* @__PURE__ */ e(C.Body, { children: H })
|
|
230
|
-
] }) : /* @__PURE__ */ i(
|
|
232
|
+
] }) : /* @__PURE__ */ i(S, { children: [
|
|
231
233
|
P,
|
|
232
234
|
/* @__PURE__ */ e("div", { className: "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]", children: H })
|
|
233
235
|
] })
|
|
@@ -235,9 +237,9 @@ const D = {
|
|
|
235
237
|
);
|
|
236
238
|
}
|
|
237
239
|
);
|
|
238
|
-
|
|
240
|
+
O.displayName = "PracticeProfileHero";
|
|
239
241
|
export {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
+
O as P,
|
|
243
|
+
G as p
|
|
242
244
|
};
|
|
243
|
-
//# sourceMappingURL=practice-profile-hero-
|
|
245
|
+
//# sourceMappingURL=practice-profile-hero-Bb4YyxHA.js.map
|