@alfadocs/ui-kit 0.47.0 → 0.49.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 → address-autocomplete-CT-9AOli.js} +2 -2
- package/dist/_chunks/{agenda-card-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
- package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
- package/dist/_chunks/ai-consent-banner-F2md5JD3.js +169 -0
- package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +280 -0
- package/dist/_chunks/{alert-ywPR59NE.js → alert-CUTxnym2.js} +56 -35
- package/dist/_chunks/{alia-sidebar-CVIPrdc9.js → alia-sidebar-DlvyXgVC.js} +3 -2
- package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
- package/dist/_chunks/antenatal-schedule-timeline-Dg0m0yFl.js +412 -0
- package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
- package/dist/_chunks/{ar-DEz65ZJW.js → ar-C68WKG5a.js} +2 -2
- package/dist/_chunks/{audio-recorder-DC-v9YFW.js → audio-recorder-DVJXV7_k.js} +2 -2
- package/dist/_chunks/bishop-score-2MzAz8NE.js +185 -0
- package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
- package/dist/_chunks/{booking-DlDVuWMd.js → booking-DljH0JkS.js} +294 -306
- package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
- package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
- package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
- package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
- package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
- package/dist/_chunks/{chat-message-B5JpFj0F.js → chat-message-Dm8U2RY1.js} +36 -35
- package/dist/_chunks/circle-arrow-up-CC_85SuH.js +16 -0
- package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
- package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
- package/dist/_chunks/cycle-calculator-oOkj5wlB.js +252 -0
- package/dist/_chunks/{date-picker-Bq7xhMA-.js → date-picker-BfHblqwA.js} +2 -2
- package/dist/_chunks/{date-picker-variants-DLi1Va_e.js → date-picker-variants-CXEAx3O_.js} +22 -22
- package/dist/_chunks/{date-range-picker-DcXuI9y7.js → date-range-picker-hcAMs1wO.js} +3 -3
- package/dist/_chunks/{date-time-picker-RimumeLR.js → date-time-picker-H-3Pwqlb.js} +9 -9
- package/dist/_chunks/{de-bTBGdjPS.js → de-DK4A9_a8.js} +2 -2
- package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
- package/dist/_chunks/{document-scanner-BqLsGs4Y.js → document-scanner-Cxqvq7GR.js} +2 -2
- package/dist/_chunks/due-date-calculator-tDqZXPWO.js +256 -0
- package/dist/_chunks/{editable-currency-cell-renderer-CLil9B29.js → editable-currency-cell-renderer-Bh48OHRv.js} +2 -2
- package/dist/_chunks/{el-BWG5RXxa.js → el-B29HXhG5.js} +2 -2
- package/dist/_chunks/entity-card-COhmqHly.js +69 -0
- package/dist/_chunks/{es-DfO_G435.js → es-BOwPVwWn.js} +2 -2
- package/dist/_chunks/fetal-weight-Da-B4P4k.js +122 -0
- package/dist/_chunks/{fr-BTn24bs8.js → fr-DoDBtn0T.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DzpD63WY.js → freemium-paywall-BWaLWje-.js} +2 -2
- package/dist/_chunks/gestational-age-calculator-DbDfTJU2.js +311 -0
- package/dist/_chunks/hcg-doubling-DAnpbale.js +170 -0
- package/dist/_chunks/{hi-Dj3oYd84.js → hi-DGByrKby.js} +2 -2
- package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
- package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
- package/dist/_chunks/{isSameWeek-HfxKk6Lz.js → isSameWeek-B1odL2vR.js} +2 -2
- package/dist/_chunks/{it-Y85ofIQQ.js → it-B16rEecm.js} +3 -3
- package/dist/_chunks/{ja-CQ7J6YoA.js → ja-B0viOgft.js} +2 -2
- package/dist/_chunks/languages-DsVf_WzT.js +19 -0
- package/dist/_chunks/layers-pzGcbLPj.js +34 -0
- package/dist/_chunks/{marketplace-app-shell-Gfsf78ge.js → marketplace-app-shell-UKSLx9K_.js} +3 -3
- package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
- package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
- package/dist/_chunks/{nl-D9kHCmp3.js → nl-cBxEX2QU.js} +2 -2
- package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
- package/dist/_chunks/{patient-search-CocVcGJ3.js → patient-search-BJOmTmDA.js} +2 -2
- package/dist/_chunks/{patient-shell-CnT4L8gn.js → patient-shell-DUmhXnFq.js} +2 -2
- package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
- package/dist/_chunks/{payment-form-BNTx4876.js → payment-form-xmeCkxas.js} +2 -2
- package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
- package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-q1D3Uion.js} +4 -4
- package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
- package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
- package/dist/_chunks/{pl-B3Smqpkr.js → pl-DtS08ioY.js} +3 -3
- package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-Cq1y8JFD.js} +4 -3
- package/dist/_chunks/pregnancy-weight-gain-CCGrvarh.js +322 -0
- package/dist/_chunks/product-hub-panel-CkfZBA3t.js +620 -0
- package/dist/_chunks/{pt-D3J-1c_7.js → pt-yFXs1VvH.js} +2 -2
- package/dist/_chunks/{ro-BKAbbEA3.js → ro-DsCzSrzR.js} +2 -2
- package/dist/_chunks/{ru-BeG8f0Ep.js → ru-DgDxL0pc.js} +3 -3
- package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
- package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
- package/dist/_chunks/{sidebar-_vJXI9rB.js → sidebar-h78cTNLh.js} +440 -338
- package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-CZkAf28g.js} +2 -2
- package/dist/_chunks/{sq-_hRPaeUy.js → sq-DHlCYN67.js} +2 -2
- package/dist/_chunks/subDays-Bs00akhK.js +8 -0
- package/dist/_chunks/{sv-g009fSpe.js → sv-O0QaQs_s.js} +2 -2
- package/dist/_chunks/{tr-OKUOuhMW.js → tr-BmNDRuio.js} +2 -2
- package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
- package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
- package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
- package/dist/_chunks/video-BAeICxCT.js +21 -0
- package/dist/_chunks/warning-stack-CXfoAT-_.js +220 -0
- package/dist/_chunks/{workflow-map-Djn1QMJc.js → workflow-map-DzX_LI4y.js} +139 -157
- package/dist/_chunks/{zh-CN-De4zwEhx.js → zh-CN-CgVJZEzz.js} +3 -3
- package/dist/agent-catalog.json +367 -1
- package/dist/components/_shared/antenatal-schedule-timeline.d.ts +18 -0
- package/dist/components/_shared/antenatal-schedule.d.ts +68 -0
- package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
- package/dist/components/_shared/entity-card/index.d.ts +3 -0
- package/dist/components/_shared/index.d.ts +5 -0
- package/dist/components/_shared/is-safe-url.d.ts +13 -0
- package/dist/components/_shared/obstetrics.d.ts +138 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/agenda-card/agenda-card.d.ts +1 -2
- package/dist/components/agenda-card/index.d.ts +2 -1
- package/dist/components/agenda-card/index.js +6 -5
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
- package/dist/components/ai-consent-banner/index.d.ts +4 -0
- package/dist/components/ai-consent-banner/index.js +6 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
- package/dist/components/ai-tools-rail/index.d.ts +4 -0
- package/dist/components/ai-tools-rail/index.js +6 -0
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
- package/dist/components/anamnesis-card/index.d.ts +3 -0
- package/dist/components/anamnesis-card/index.js +5 -0
- package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
- package/dist/components/appointment-card/appointment-card.d.ts +93 -0
- package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
- package/dist/components/appointment-card/index.d.ts +8 -0
- package/dist/components/appointment-card/index.js +10 -0
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bishop-score/bishop-score.d.ts +27 -0
- package/dist/components/bishop-score/bishop.d.ts +30 -0
- package/dist/components/bishop-score/index.d.ts +4 -0
- package/dist/components/bishop-score/index.js +10 -0
- 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/calendar/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
- package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
- package/dist/components/care-plan-card/index.d.ts +4 -0
- package/dist/components/care-plan-card/index.js +6 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
- package/dist/components/care-plan-entry-card/index.d.ts +4 -0
- package/dist/components/care-plan-entry-card/index.js +6 -0
- package/dist/components/chat-message/chat-message.d.ts +7 -0
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
- package/dist/components/clinical-note-card/index.d.ts +4 -0
- package/dist/components/clinical-note-card/index.js +6 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/cycle.d.ts +5 -0
- 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/dialog/dialog.d.ts +7 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +13 -1
- package/dist/components/due-date-calculator/gestation.d.ts +1 -59
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.js +16 -10
- package/dist/components/fetal-weight/efw.d.ts +25 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +27 -0
- package/dist/components/fetal-weight/index.d.ts +4 -0
- package/dist/components/fetal-weight/index.js +6 -0
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +25 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +31 -0
- package/dist/components/hcg-doubling/hcg.d.ts +33 -0
- package/dist/components/hcg-doubling/index.d.ts +4 -0
- package/dist/components/hcg-doubling/index.js +7 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/message-card/index.js +5 -4
- package/dist/components/message-card/message-card.d.ts +1 -2
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +9 -0
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.d.ts +4 -0
- package/dist/components/patient-summary-card/index.js +6 -0
- package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
- package/dist/components/payment-card/index.d.ts +7 -0
- package/dist/components/payment-card/index.js +8 -0
- package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-card.d.ts +71 -0
- package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-request-card.d.ts +43 -0
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.d.ts +4 -0
- package/dist/components/periodontal-chart-card/index.js +7 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
- 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 +7 -0
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +33 -8
- package/dist/components/product-hub-tray/index.d.ts +8 -0
- package/dist/components/product-hub-tray/index.js +10 -0
- package/dist/components/product-hub-tray/product-hub-panel.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-panel.d.ts +54 -0
- package/dist/components/product-hub-tray/product-hub-tray.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +115 -0
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sidebar/index.d.ts +2 -2
- package/dist/components/sidebar/index.js +12 -11
- package/dist/components/sidebar/sidebar.d.ts +14 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +561 -1
- package/dist/i18n/locales/ar.js +560 -2
- package/dist/i18n/locales/de.d.ts +561 -1
- package/dist/i18n/locales/de.js +560 -2
- package/dist/i18n/locales/el.d.ts +561 -1
- package/dist/i18n/locales/el.js +560 -2
- package/dist/i18n/locales/en.d.ts +561 -1
- package/dist/i18n/locales/en.js +560 -2
- package/dist/i18n/locales/es.d.ts +561 -1
- package/dist/i18n/locales/es.js +560 -2
- package/dist/i18n/locales/fr.d.ts +561 -1
- package/dist/i18n/locales/fr.js +560 -2
- package/dist/i18n/locales/hi.d.ts +561 -1
- package/dist/i18n/locales/hi.js +560 -2
- package/dist/i18n/locales/it.d.ts +561 -1
- package/dist/i18n/locales/it.js +560 -2
- package/dist/i18n/locales/ja.d.ts +561 -1
- package/dist/i18n/locales/ja.js +560 -2
- package/dist/i18n/locales/nl.d.ts +561 -1
- package/dist/i18n/locales/nl.js +560 -2
- package/dist/i18n/locales/pl.d.ts +561 -1
- package/dist/i18n/locales/pl.js +560 -2
- package/dist/i18n/locales/pt.d.ts +561 -1
- package/dist/i18n/locales/pt.js +560 -2
- package/dist/i18n/locales/ro.d.ts +561 -1
- package/dist/i18n/locales/ro.js +560 -2
- package/dist/i18n/locales/ru.d.ts +561 -1
- package/dist/i18n/locales/ru.js +560 -2
- package/dist/i18n/locales/sq.d.ts +561 -1
- package/dist/i18n/locales/sq.js +560 -2
- package/dist/i18n/locales/sv.d.ts +561 -1
- package/dist/i18n/locales/sv.js +560 -2
- package/dist/i18n/locales/tr.d.ts +561 -1
- package/dist/i18n/locales/tr.js +560 -2
- package/dist/i18n/locales/zh.d.ts +561 -1
- package/dist/i18n/locales/zh.js +560 -2
- package/dist/index.js +663 -600
- package/dist/locales/ar.json +562 -2
- package/dist/locales/de.json +562 -2
- package/dist/locales/el.json +562 -2
- package/dist/locales/en.json +562 -2
- package/dist/locales/es.json +562 -2
- package/dist/locales/fr.json +562 -2
- package/dist/locales/hi.json +562 -2
- package/dist/locales/it.json +562 -2
- package/dist/locales/ja.json +562 -2
- package/dist/locales/nl.json +562 -2
- package/dist/locales/pl.json +562 -2
- package/dist/locales/pt.json +562 -2
- package/dist/locales/ro.json +562 -2
- package/dist/locales/ru.json +562 -2
- package/dist/locales/sq.json +562 -2
- package/dist/locales/sv.json +562 -2
- package/dist/locales/tr.json +562 -2
- package/dist/locales/zh.json +562 -2
- package/dist/patterns/alia-assistant/alia-types.d.ts +15 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +58 -1
- package/dist/_chunks/cycle-calculator-KxA8dqDf.js +0 -211
- package/dist/_chunks/due-date-calculator-mFxpHLml.js +0 -216
- package/dist/_chunks/gestation-mWF4AXea.js +0 -50
- package/dist/_chunks/gestational-age-calculator-gWI_uRA1.js +0 -203
- package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
- package/dist/_chunks/pregnancy-weight-gain-BtEHaSqy.js +0 -246
- package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
- package/dist/_chunks/subDays-Dv7q9S7u.js +0 -8
- package/dist/_chunks/warning-stack-DNR3-IbP.js +0 -180
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as M, useId as N, useState as O, useRef as y, useEffect as V, useMemo as _, useCallback as j } from "react";
|
|
3
|
-
import { c as W } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as q } from "react-i18next";
|
|
5
|
-
import { A as u } from "./alert-ywPR59NE.js";
|
|
6
|
-
import { B as F } from "./button-DD_0Xdmr.js";
|
|
7
|
-
import { C as H } from "./chevron-down-BX_NP2Yh.js";
|
|
8
|
-
const L = W(
|
|
9
|
-
[
|
|
10
|
-
"ds:flex ds:flex-col",
|
|
11
|
-
"ds:rounded-[var(--radius-lg)]",
|
|
12
|
-
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
13
|
-
"ds:shadow-[var(--shadow-card)]",
|
|
14
|
-
"ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
|
|
15
|
-
"ds:p-[var(--spacing-md)]"
|
|
16
|
-
].join(" "),
|
|
17
|
-
{
|
|
18
|
-
variants: {
|
|
19
|
-
size: {
|
|
20
|
-
sm: "ds:gap-[var(--spacing-sm)]",
|
|
21
|
-
md: "ds:gap-[var(--spacing-md)]"
|
|
22
|
-
},
|
|
23
|
-
// `stretch: true` fills the parent layout cell — mirrors the `stretch`
|
|
24
|
-
// prop on `Card` so a WarningStack rendered next to a Card in a grid
|
|
25
|
-
// row ends up at matching height.
|
|
26
|
-
stretch: {
|
|
27
|
-
true: "ds:h-full ds:self-stretch",
|
|
28
|
-
false: ""
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
defaultVariants: {
|
|
32
|
-
size: "md",
|
|
33
|
-
stretch: !1
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
), J = W("ds:flex ds:flex-col", {
|
|
37
|
-
variants: {
|
|
38
|
-
size: {
|
|
39
|
-
sm: "ds:gap-[var(--spacing-sm)]",
|
|
40
|
-
md: "ds:gap-[var(--spacing-md)]"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
defaultVariants: { size: "md" }
|
|
44
|
-
}), K = [
|
|
45
|
-
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:self-start"
|
|
46
|
-
].join(" "), P = M(
|
|
47
|
-
({
|
|
48
|
-
items: r,
|
|
49
|
-
title: h,
|
|
50
|
-
description: p,
|
|
51
|
-
maxVisible: t,
|
|
52
|
-
defaultCollapsed: z = !0,
|
|
53
|
-
onDismiss: d,
|
|
54
|
-
size: f = "md",
|
|
55
|
-
stretch: v = !1,
|
|
56
|
-
ariaLabel: A,
|
|
57
|
-
emptyState: m,
|
|
58
|
-
className: w,
|
|
59
|
-
...b
|
|
60
|
-
}, x) => {
|
|
61
|
-
const { t: e } = q(), c = N(), k = N(), i = t !== void 0 && r.length > t, [o, B] = O(z), g = y(null), S = y(r.length);
|
|
62
|
-
V(() => {
|
|
63
|
-
if (!g.current) return;
|
|
64
|
-
const n = S.current, s = r.length;
|
|
65
|
-
n !== s && (g.current.textContent = e("warningStack.countChanged", {
|
|
66
|
-
count: s,
|
|
67
|
-
defaultValue: "{{count}} warnings to review"
|
|
68
|
-
})), S.current = s;
|
|
69
|
-
}, [r.length, e]);
|
|
70
|
-
const R = _(() => !i || !o ? r : r.slice(0, t), [r, i, o, t]), E = i ? r.length - (t ?? 0) : 0, I = j(
|
|
71
|
-
(n) => (s) => {
|
|
72
|
-
s || d == null || d(n);
|
|
73
|
-
},
|
|
74
|
-
[d]
|
|
75
|
-
), T = j(() => B((n) => !n), []), G = A ?? e("warningStack.regionLabel", "Warnings"), C = h ? /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-3xs)]", children: [
|
|
76
|
-
/* @__PURE__ */ a(
|
|
77
|
-
"h2",
|
|
78
|
-
{
|
|
79
|
-
id: c,
|
|
80
|
-
className: "ds:text-start type-title-section ds:text-[var(--foreground)]",
|
|
81
|
-
children: h
|
|
82
|
-
}
|
|
83
|
-
),
|
|
84
|
-
p ? /* @__PURE__ */ a("p", { className: "ds:text-start type-body-sm ds:text-[var(--muted-foreground)]", children: p }) : null
|
|
85
|
-
] }) : /* @__PURE__ */ a("h2", { id: c, className: "ds:sr-only", children: G });
|
|
86
|
-
return r.length === 0 ? m ? /* @__PURE__ */ l(
|
|
87
|
-
"section",
|
|
88
|
-
{
|
|
89
|
-
ref: x,
|
|
90
|
-
"aria-labelledby": c,
|
|
91
|
-
"data-component": "warning-stack",
|
|
92
|
-
className: [L({ size: f, stretch: v }), w].filter(Boolean).join(" "),
|
|
93
|
-
...b,
|
|
94
|
-
children: [
|
|
95
|
-
C,
|
|
96
|
-
m
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
) : null : /* @__PURE__ */ l(
|
|
100
|
-
"section",
|
|
101
|
-
{
|
|
102
|
-
ref: x,
|
|
103
|
-
"aria-labelledby": c,
|
|
104
|
-
"data-component": "warning-stack",
|
|
105
|
-
className: [L({ size: f, stretch: v }), w].filter(Boolean).join(" "),
|
|
106
|
-
...b,
|
|
107
|
-
children: [
|
|
108
|
-
C,
|
|
109
|
-
/* @__PURE__ */ a(
|
|
110
|
-
"div",
|
|
111
|
-
{
|
|
112
|
-
ref: g,
|
|
113
|
-
"aria-live": "polite",
|
|
114
|
-
"aria-atomic": "true",
|
|
115
|
-
className: "ds:sr-only"
|
|
116
|
-
}
|
|
117
|
-
),
|
|
118
|
-
/* @__PURE__ */ a(
|
|
119
|
-
"ul",
|
|
120
|
-
{
|
|
121
|
-
id: k,
|
|
122
|
-
className: J({ size: f }),
|
|
123
|
-
"aria-label": e("warningStack.listLabel", "Warning list"),
|
|
124
|
-
children: R.map((n) => {
|
|
125
|
-
const s = n.variant ?? "warning";
|
|
126
|
-
return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ l(
|
|
127
|
-
u,
|
|
128
|
-
{
|
|
129
|
-
variant: s,
|
|
130
|
-
dismissible: n.dismissible,
|
|
131
|
-
icon: n.icon,
|
|
132
|
-
onOpenChange: I(n),
|
|
133
|
-
children: [
|
|
134
|
-
/* @__PURE__ */ a(u.Title, { as: "h3", children: n.title }),
|
|
135
|
-
n.description ? /* @__PURE__ */ a(u.Description, { children: n.description }) : null,
|
|
136
|
-
n.actions ? /* @__PURE__ */ a(u.Action, { children: n.actions }) : null
|
|
137
|
-
]
|
|
138
|
-
}
|
|
139
|
-
) }, n.id);
|
|
140
|
-
})
|
|
141
|
-
}
|
|
142
|
-
),
|
|
143
|
-
i ? /* @__PURE__ */ l(
|
|
144
|
-
F,
|
|
145
|
-
{
|
|
146
|
-
type: "button",
|
|
147
|
-
intent: "link",
|
|
148
|
-
size: "sm",
|
|
149
|
-
"aria-expanded": !o,
|
|
150
|
-
"aria-controls": k,
|
|
151
|
-
onClick: T,
|
|
152
|
-
className: K,
|
|
153
|
-
children: [
|
|
154
|
-
/* @__PURE__ */ a(
|
|
155
|
-
H,
|
|
156
|
-
{
|
|
157
|
-
"aria-hidden": "true",
|
|
158
|
-
className: [
|
|
159
|
-
"ds:size-4 ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
160
|
-
o ? "" : "ds:rotate-180"
|
|
161
|
-
].join(" ")
|
|
162
|
-
}
|
|
163
|
-
),
|
|
164
|
-
o ? e("warningStack.showMore", {
|
|
165
|
-
count: E,
|
|
166
|
-
defaultValue: "Show {{count}} more warnings"
|
|
167
|
-
}) : e("warningStack.showLess", "Show less")
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
) : null
|
|
171
|
-
]
|
|
172
|
-
}
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
P.displayName = "WarningStack";
|
|
177
|
-
export {
|
|
178
|
-
P as W
|
|
179
|
-
};
|
|
180
|
-
//# sourceMappingURL=warning-stack-DNR3-IbP.js.map
|