@alfadocs/ui-kit 0.70.0 → 0.71.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-fields-CPbFJ8e8.js +246 -0
- package/dist/_chunks/{ai-prompt-input-CuhTo9mh.js → ai-prompt-input-V4DdOeqv.js} +2 -2
- package/dist/_chunks/{alia-sidebar-B47qRQb5.js → alia-sidebar-DvIUzIX9.js} +107 -106
- package/dist/_chunks/{anatomy-scheme-CJB6dI6p.js → anatomy-scheme-CXSk11UJ.js} +2 -2
- package/dist/_chunks/{app-frame-BYx1gcV7.js → app-frame-DIEMIC5V.js} +67 -56
- package/dist/_chunks/{appointment-card-C06aZqA7.js → appointment-card-DVaeJNVB.js} +82 -98
- package/dist/_chunks/{appointment-timeline-BJM0S_Fg.js → appointment-timeline-PJgnrjFb.js} +159 -157
- package/dist/_chunks/{appointment-tray-DRRw5ROi.js → appointment-tray-B16QPGbm.js} +2 -2
- package/dist/_chunks/{audio-recorder-Cpdk5qpQ.js → audio-recorder-DNDsOLqO.js} +2 -2
- package/dist/_chunks/{autocomplete-DOeGouCL.js → autocomplete-BrONKN8l.js} +168 -146
- package/dist/_chunks/{bishop-score-DnYWtZa_.js → bishop-score-Cym_TeQY.js} +2 -2
- package/dist/_chunks/{booking-DUBI0oqt.js → booking-C7do4vaR.js} +4 -4
- package/dist/_chunks/{button-group-Ciq6J4IW.js → button-group-CvEnVzY7.js} +32 -35
- package/dist/_chunks/{care-plan-card-C5sTfY9G.js → care-plan-card-DzPDYgtK.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CXnxGCWA.js → care-plan-entry-card-CEnQy7YP.js} +3 -3
- package/dist/_chunks/care-plan-header-DcXFXWit.js +198 -0
- package/dist/_chunks/{chat-message-3V54YipB.js → chat-message-DzpcJR-q.js} +25 -23
- package/dist/_chunks/city-input-Dkgaak7I.js +169 -0
- package/dist/_chunks/clipboard-list-S7s-MXQq.js +25 -0
- package/dist/_chunks/{combobox-Clum7gJ1.js → combobox-DnqSF0IH.js} +131 -114
- package/dist/_chunks/connection-status-CY1HV8Wg.js +108 -0
- package/dist/_chunks/control-room-rail-FAQZrGVL.js +333 -0
- package/dist/_chunks/country-select-BwUZQvTa.js +709 -0
- package/dist/_chunks/editable-currency-cell-renderer-CGELrkIj.js +410 -0
- package/dist/_chunks/{entity-card-9_62gY7l.js → entity-card-DmrgYSEX.js} +4 -4
- package/dist/_chunks/entity-summary-CaM1Y-xE.js +291 -0
- package/dist/_chunks/field-array-siUZzfYe.js +146 -0
- package/dist/_chunks/{field-value-NXYczdpO.js → field-value-3jMM0uDx.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CF2ISaYQ.js → gestational-age-calculator-DKzEV5Qi.js} +2 -2
- package/dist/_chunks/iban-input-B0TWzR1R.js +436 -0
- package/dist/_chunks/icon-picker-0B7KhrF1.js +272 -0
- package/dist/_chunks/image-cropper-D9jqJy19.js +367 -0
- package/dist/_chunks/{link-cell-renderer-CTXqtXV-.js → link-cell-renderer-De_SLjSq.js} +262 -261
- package/dist/_chunks/list-checks-BUs75d_o.js +18 -0
- package/dist/_chunks/{marketplace-app-shell-Skhfp6vK.js → marketplace-app-shell-BGqkywsi.js} +3 -3
- package/dist/_chunks/message-card-DsHFFiL1.js +319 -0
- package/dist/_chunks/{message-tray-DwrBLJlf.js → message-tray-C0a6CL1_.js} +172 -135
- package/dist/_chunks/{multi-select-BdHHDrRN.js → multi-select-WE4S9FIF.js} +75 -63
- package/dist/_chunks/nav-grid-9xphY3FM.js +169 -0
- package/dist/_chunks/notes-panel-DXiMfuvp.js +320 -0
- package/dist/_chunks/notification-card-BMqNzCIt.js +290 -0
- package/dist/_chunks/{notification-tray-AEun6DN2.js → notification-tray-BmUlCx3g.js} +201 -166
- package/dist/_chunks/{operator-hero-CR0Rqh4-.js → operator-hero-BO8TqzX2.js} +2 -2
- package/dist/_chunks/panel-header-D313n_9-.js +105 -0
- package/dist/_chunks/{patient-details-Dlhqb5ig.js → patient-details-DgfTJimE.js} +280 -196
- package/dist/_chunks/{patient-search-Be6cLrHR.js → patient-search-CSWQKOSP.js} +2 -2
- package/dist/_chunks/{patient-shell-DV3XEtIB.js → patient-shell-BMwsIKlW.js} +3 -3
- package/dist/_chunks/{patient-summary-card-WySCMwwA.js → patient-summary-card-D4NdgYJB.js} +27 -12
- package/dist/_chunks/{patient-table-CHxf3Oqk.js → patient-table-CERknpd8.js} +3 -3
- package/dist/_chunks/{payment-request-card-BcZJwu9z.js → payment-request-card-Blf-MFNY.js} +2 -2
- package/dist/_chunks/permission-matrix-Bw5oexUt.js +174 -0
- package/dist/_chunks/position-grid-CcvqHaKN.js +169 -0
- package/dist/_chunks/postal-code-input-UCOYuRY2.js +192 -0
- package/dist/_chunks/{practice-results-C6qDfxos.js → practice-results-El5Z-oVp.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-CRVWswD-.js → pregnancy-dating-CunHrOpO.js} +2 -2
- package/dist/_chunks/{product-hub-panel-e6pW220e.js → product-hub-panel-DtU7KXxm.js} +257 -217
- package/dist/_chunks/province-select-D_TZvix3.js +261 -0
- package/dist/_chunks/{public-header.agent-DqkqA-ca.js → public-header.agent-TxmC_x1I.js} +2 -2
- package/dist/_chunks/radiograph-panel.agent-tWjN2nHX.js +553 -0
- package/dist/_chunks/reviews-panel-DxkSrgMl.js +559 -0
- package/dist/_chunks/rich-text-editor-C8tyGjfb.js +2621 -0
- package/dist/_chunks/{scroll-area-5wNK0Cyz.js → scroll-area-BZOvUhwQ.js} +2 -2
- package/dist/_chunks/{select-DMLG44F5.js → select-KsyRr8WH.js} +114 -102
- package/dist/_chunks/{sheet-BxsE7eQm.js → sheet-umkfZjF6.js} +53 -42
- package/dist/_chunks/{sidebar-DY9jGjgt.js → sidebar-QCp9wHNP.js} +125 -113
- package/dist/_chunks/{tabs-BxcOziCo.js → tabs-CYZVKKDl.js} +2 -2
- package/dist/_chunks/task-card-DCdsI0ZT.js +189 -0
- package/dist/_chunks/{task-tray-qOEQflu4.js → task-tray-DNVejijD.js} +2 -2
- package/dist/_chunks/tasks-panel-C9odmawT.js +757 -0
- package/dist/_chunks/token-insert-menu-CFQqTe_n.js +147 -0
- package/dist/_chunks/{ai-tools-rail-B5NEghsp.js → tool-rail-BZx0-yIr.js} +152 -139
- package/dist/_chunks/{tooth-scheme-BhQoPNBD.js → tooth-scheme-DJZtzfeY.js} +470 -468
- package/dist/_chunks/{transcript-panel-3THQX6nJ.js → transcript-panel-CHGHHHdT.js} +95 -83
- package/dist/_chunks/{unit-converter-YEpD9evj.js → unit-converter-CwlZbfdn.js} +2 -2
- package/dist/_chunks/{workflow-map-Dy8mLCqF.js → workflow-map-M8MBBHQm.js} +106 -118
- package/dist/agent-catalog.json +2062 -226
- package/dist/agent-i18n/en.json +206 -8
- package/dist/components/_shared/option.d.ts +2 -0
- package/dist/components/_shared/patient-fields.d.ts +1 -1
- package/dist/components/address-fields/address-fields.agent.d.ts +9 -0
- package/dist/components/address-fields/address-fields.d.ts +29 -0
- package/dist/components/address-fields/index.d.ts +5 -0
- package/dist/components/address-fields/index.js +6 -0
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anatomy-scheme/index.js +1 -1
- package/dist/components/app-frame/app-frame.d.ts +2 -2
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/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/care-plan-header/care-plan-header.d.ts +16 -5
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/city-input/city-input.agent.d.ts +8 -0
- package/dist/components/city-input/city-input.d.ts +57 -0
- package/dist/components/city-input/index.d.ts +5 -0
- package/dist/components/city-input/index.js +6 -0
- package/dist/components/combobox/combobox.d.ts +17 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/connection-status/connection-status.agent.d.ts +4 -0
- package/dist/components/connection-status/connection-status.d.ts +36 -0
- package/dist/components/connection-status/index.d.ts +4 -0
- package/dist/components/connection-status/index.js +6 -0
- package/dist/components/control-room-rail/control-room-context.d.ts +5 -5
- package/dist/components/control-room-rail/control-room-rail.agent.d.ts +4 -0
- package/dist/components/control-room-rail/control-room-rail.d.ts +5 -5
- package/dist/components/control-room-rail/index.d.ts +1 -0
- package/dist/components/control-room-rail/index.js +4 -3
- package/dist/components/counter/counter.d.ts +1 -1
- package/dist/components/country-select/country-select.agent.d.ts +8 -0
- package/dist/components/country-select/country-select.d.ts +51 -0
- package/dist/components/country-select/index.d.ts +6 -0
- package/dist/components/country-select/index.js +9 -0
- package/dist/components/country-select/iso-3166.d.ts +15 -0
- package/dist/components/data-table/cell-renderers/reorder-cell-renderer.d.ts +34 -0
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/data-table/index.js +13 -11
- package/dist/components/entity-summary/entity-summary.agent.d.ts +4 -0
- package/dist/components/entity-summary/entity-summary.d.ts +53 -4
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/field-array/field-array.agent.d.ts +4 -0
- package/dist/components/field-array/field-array.d.ts +45 -0
- package/dist/components/field-array/index.d.ts +4 -0
- package/dist/components/field-array/index.js +6 -0
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/iban-input/iban-input.agent.d.ts +4 -0
- package/dist/components/iban-input/iban-input.d.ts +51 -0
- package/dist/components/iban-input/index.d.ts +5 -0
- package/dist/components/iban-input/index.js +13 -0
- package/dist/components/iban-input/is-valid-iban.d.ts +31 -0
- package/dist/components/icon-picker/icon-picker.agent.d.ts +4 -0
- package/dist/components/icon-picker/icon-picker.d.ts +41 -0
- package/dist/components/icon-picker/index.d.ts +4 -0
- package/dist/components/icon-picker/index.js +6 -0
- package/dist/components/image-cropper/crop-geometry.d.ts +30 -0
- package/dist/components/image-cropper/image-cropper.agent.d.ts +4 -0
- package/dist/components/image-cropper/image-cropper.d.ts +32 -0
- package/dist/components/image-cropper/index.d.ts +5 -0
- package/dist/components/image-cropper/index.js +11 -0
- package/dist/components/index.d.ts +16 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-card/message-card.d.ts +14 -0
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts +4 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/nav-grid/index.d.ts +4 -0
- package/dist/components/nav-grid/index.js +7 -0
- package/dist/components/nav-grid/nav-grid.agent.d.ts +4 -0
- package/dist/components/nav-grid/nav-grid.d.ts +41 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.agent.d.ts +4 -0
- package/dist/components/notes-panel/notes-panel.d.ts +30 -0
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +15 -0
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts +4 -0
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/panel-header/index.d.ts +3 -0
- package/dist/components/panel-header/index.js +7 -0
- package/dist/components/panel-header/panel-header.d.ts +41 -0
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/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-card/index.js +1 -1
- package/dist/components/permission-matrix/index.d.ts +4 -0
- package/dist/components/permission-matrix/index.js +7 -0
- package/dist/components/permission-matrix/permission-matrix.agent.d.ts +4 -0
- package/dist/components/permission-matrix/permission-matrix.d.ts +47 -0
- package/dist/components/position-grid/index.d.ts +4 -0
- package/dist/components/position-grid/index.js +7 -0
- package/dist/components/position-grid/position-grid.agent.d.ts +4 -0
- package/dist/components/position-grid/position-grid.d.ts +39 -0
- package/dist/components/postal-code-input/index.d.ts +5 -0
- package/dist/components/postal-code-input/index.js +6 -0
- package/dist/components/postal-code-input/postal-code-input.agent.d.ts +8 -0
- package/dist/components/postal-code-input/postal-code-input.d.ts +27 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +13 -1
- package/dist/components/province-select/index.d.ts +6 -0
- package/dist/components/province-select/index.js +7 -0
- package/dist/components/province-select/it-provinces.d.ts +8 -0
- package/dist/components/province-select/province-select.agent.d.ts +8 -0
- package/dist/components/province-select/province-select.d.ts +38 -0
- package/dist/components/public-footer/public-footer.d.ts +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +17 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +14 -6
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.d.ts +4 -0
- package/dist/components/tasks-panel/index.js +6 -0
- package/dist/components/tasks-panel/tasks-panel.agent.d.ts +4 -0
- package/dist/components/tasks-panel/tasks-panel.d.ts +152 -0
- package/dist/components/token-insert-menu/index.d.ts +4 -0
- package/dist/components/token-insert-menu/index.js +6 -0
- package/dist/components/token-insert-menu/token-insert-menu.agent.d.ts +4 -0
- package/dist/components/token-insert-menu/token-insert-menu.d.ts +33 -0
- package/dist/components/tool-rail/index.d.ts +4 -0
- package/dist/components/tool-rail/index.js +6 -0
- package/dist/components/tool-rail/tool-rail.agent.d.ts +4 -0
- package/dist/components/{ai-tools-rail/ai-tools-rail.d.ts → tool-rail/tool-rail.d.ts} +29 -12
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +9 -0
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/transcript-panel/transcript-panel.d.ts +2 -2
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/use-edge-resize.d.ts +2 -2
- package/dist/i18n/locales/ar.d.ts +167 -2
- package/dist/i18n/locales/ar.js +157 -5
- package/dist/i18n/locales/de.d.ts +167 -2
- package/dist/i18n/locales/de.js +159 -5
- package/dist/i18n/locales/el.d.ts +167 -2
- package/dist/i18n/locales/el.js +164 -5
- package/dist/i18n/locales/en.d.ts +167 -2
- package/dist/i18n/locales/en.js +170 -5
- package/dist/i18n/locales/es.d.ts +167 -2
- package/dist/i18n/locales/es.js +156 -5
- package/dist/i18n/locales/fr.d.ts +167 -2
- package/dist/i18n/locales/fr.js +159 -5
- package/dist/i18n/locales/hi.d.ts +167 -2
- package/dist/i18n/locales/hi.js +155 -5
- package/dist/i18n/locales/it.d.ts +167 -2
- package/dist/i18n/locales/it.js +159 -5
- package/dist/i18n/locales/ja.d.ts +167 -2
- package/dist/i18n/locales/ja.js +160 -5
- package/dist/i18n/locales/nl.d.ts +167 -2
- package/dist/i18n/locales/nl.js +152 -5
- package/dist/i18n/locales/pl.d.ts +167 -2
- package/dist/i18n/locales/pl.js +160 -5
- package/dist/i18n/locales/pt.d.ts +167 -2
- package/dist/i18n/locales/pt.js +164 -5
- package/dist/i18n/locales/ro.d.ts +167 -2
- package/dist/i18n/locales/ro.js +164 -5
- package/dist/i18n/locales/ru.d.ts +167 -2
- package/dist/i18n/locales/ru.js +157 -5
- package/dist/i18n/locales/sq.d.ts +167 -2
- package/dist/i18n/locales/sq.js +161 -5
- package/dist/i18n/locales/sv.d.ts +167 -2
- package/dist/i18n/locales/sv.js +159 -5
- package/dist/i18n/locales/tr.d.ts +167 -2
- package/dist/i18n/locales/tr.js +157 -5
- package/dist/i18n/locales/zh.d.ts +167 -2
- package/dist/i18n/locales/zh.js +152 -5
- package/dist/index.js +823 -755
- package/dist/locales/ar.json +170 -5
- package/dist/locales/de.json +170 -5
- package/dist/locales/el.json +170 -5
- package/dist/locales/en.json +170 -5
- package/dist/locales/es.json +170 -5
- package/dist/locales/fr.json +170 -5
- package/dist/locales/hi.json +170 -5
- package/dist/locales/it.json +170 -5
- package/dist/locales/ja.json +170 -5
- package/dist/locales/nl.json +170 -5
- package/dist/locales/pl.json +170 -5
- package/dist/locales/pt.json +170 -5
- package/dist/locales/ro.json +170 -5
- package/dist/locales/ru.json +170 -5
- package/dist/locales/sq.json +170 -5
- package/dist/locales/sv.json +170 -5
- package/dist/locales/tr.json +170 -5
- package/dist/locales/zh.json +170 -5
- package/dist/patterns/alia-assistant/alia-types.d.ts +9 -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 +9 -1
- package/package.json +65 -5
- package/dist/_chunks/care-plan-header-BUwqDTtz.js +0 -206
- package/dist/_chunks/control-room-rail-Y8ryLYsP.js +0 -229
- package/dist/_chunks/editable-currency-cell-renderer-C9twtALM.js +0 -328
- package/dist/_chunks/entity-summary-BxRjFh_4.js +0 -138
- package/dist/_chunks/message-card-Bx4GmLvf.js +0 -277
- package/dist/_chunks/notes-panel-ay8_lPrA.js +0 -158
- package/dist/_chunks/notification-card-D2jiKSJJ.js +0 -259
- package/dist/_chunks/radiograph-panel.agent-CAX-C3g3.js +0 -558
- package/dist/_chunks/reviews-panel-Dq7LMDcH.js +0 -555
- package/dist/_chunks/rich-text-editor-DlCqPixb.js +0 -2158
- package/dist/_chunks/task-card-BwY9jaV1.js +0 -124
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +0 -4
- package/dist/components/ai-tools-rail/index.d.ts +0 -4
- package/dist/components/ai-tools-rail/index.js +0 -6
|
@@ -48,54 +48,51 @@ const M = N(
|
|
|
48
48
|
className: x,
|
|
49
49
|
orientation: a = "horizontal",
|
|
50
50
|
separator: k = !1,
|
|
51
|
-
toolbar:
|
|
51
|
+
toolbar: f = !1,
|
|
52
52
|
intent: v = "outline",
|
|
53
53
|
label: A,
|
|
54
54
|
children: z,
|
|
55
55
|
...E
|
|
56
56
|
}, l) => {
|
|
57
|
-
const { t:
|
|
57
|
+
const { t: L } = S(), j = A ?? L("buttonGroup.label", "Button group"), p = f, c = R([]), [d, h] = g(0), w = R(null), [m, B] = g(!1);
|
|
58
58
|
H(() => {
|
|
59
59
|
if (typeof window > "u") return;
|
|
60
60
|
const t = w.current;
|
|
61
|
-
t &&
|
|
61
|
+
t && B(window.getComputedStyle(t).direction === "rtl");
|
|
62
62
|
}, []);
|
|
63
|
-
const
|
|
63
|
+
const I = T(
|
|
64
64
|
(t) => {
|
|
65
65
|
var y;
|
|
66
|
-
if (!
|
|
67
|
-
const e =
|
|
66
|
+
if (!p) return;
|
|
67
|
+
const e = c.current.filter(Boolean).length;
|
|
68
68
|
if (e === 0) return;
|
|
69
|
-
const
|
|
70
|
-
let
|
|
71
|
-
if (t.key ===
|
|
72
|
-
const
|
|
73
|
-
let o = 0,
|
|
74
|
-
for (; o <
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
69
|
+
const i = a === "vertical" ? "ArrowDown" : m ? "ArrowLeft" : "ArrowRight", u = a === "vertical" ? "ArrowUp" : m ? "ArrowRight" : "ArrowLeft";
|
|
70
|
+
let r = null;
|
|
71
|
+
if (t.key === i ? r = (d + 1) % e : t.key === u ? r = (d - 1 + e) % e : t.key === "Home" ? r = 0 : t.key === "End" && (r = e - 1), r === null) return;
|
|
72
|
+
const s = e;
|
|
73
|
+
let o = 0, n = r;
|
|
74
|
+
for (; o < s; ) {
|
|
75
|
+
const b = c.current[n];
|
|
76
|
+
if (b && b.getAttribute("aria-disabled") !== "true" && !b.disabled)
|
|
77
77
|
break;
|
|
78
|
-
|
|
78
|
+
n = t.key === u || t.key === "End" ? (n - 1 + e) % e : (n + 1) % e, o += 1;
|
|
79
79
|
}
|
|
80
|
-
t.preventDefault(), h(
|
|
80
|
+
t.preventDefault(), h(n), (y = c.current[n]) == null || y.focus();
|
|
81
81
|
},
|
|
82
|
-
[
|
|
82
|
+
[p, a, m, d]
|
|
83
83
|
), D = V.map(z, (t, e) => {
|
|
84
84
|
if (!C(t)) return t;
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
const o =
|
|
88
|
-
typeof o == "function" ? o(
|
|
89
|
-
},
|
|
90
|
-
intent:
|
|
91
|
-
tabIndex: c ? e === u ? 0 : -1 : s.props.tabIndex,
|
|
92
|
-
onFocus: (i) => {
|
|
93
|
-
var o, r;
|
|
94
|
-
c && h(e), (r = (o = s.props).onFocus) == null || r.call(o, i);
|
|
95
|
-
},
|
|
96
|
-
ref: f
|
|
85
|
+
const i = t, u = (s) => {
|
|
86
|
+
c.current[e] = s;
|
|
87
|
+
const o = i.ref;
|
|
88
|
+
typeof o == "function" ? o(s) : o != null && typeof o == "object" && (o.current = s);
|
|
89
|
+
}, r = {
|
|
90
|
+
intent: i.props.intent ?? v
|
|
97
91
|
};
|
|
98
|
-
return
|
|
92
|
+
return p && (r.tabIndex = e === d ? 0 : -1, r.onFocus = (s) => {
|
|
93
|
+
var o, n;
|
|
94
|
+
h(e), (n = (o = i.props).onFocus) == null || n.call(o, s);
|
|
95
|
+
}, r.ref = u), F(i, r);
|
|
99
96
|
});
|
|
100
97
|
return /* @__PURE__ */ G(
|
|
101
98
|
"div",
|
|
@@ -103,11 +100,11 @@ const M = N(
|
|
|
103
100
|
ref: (t) => {
|
|
104
101
|
w.current = t, typeof l == "function" ? l(t) : l && typeof l == "object" && (l.current = t);
|
|
105
102
|
},
|
|
106
|
-
role:
|
|
107
|
-
"aria-label":
|
|
108
|
-
"aria-orientation":
|
|
103
|
+
role: f ? "toolbar" : "group",
|
|
104
|
+
"aria-label": j,
|
|
105
|
+
"aria-orientation": f ? a ?? "horizontal" : void 0,
|
|
109
106
|
"data-component": "button-group",
|
|
110
|
-
onKeyDown:
|
|
107
|
+
onKeyDown: I,
|
|
111
108
|
className: M({ orientation: a, separator: k, className: x }),
|
|
112
109
|
...E,
|
|
113
110
|
children: D
|
|
@@ -119,4 +116,4 @@ U.displayName = "ButtonGroup";
|
|
|
119
116
|
export {
|
|
120
117
|
U as B
|
|
121
118
|
};
|
|
122
|
-
//# sourceMappingURL=button-group-
|
|
119
|
+
//# sourceMappingURL=button-group-CvEnVzY7.js.map
|
|
@@ -7,9 +7,9 @@ import { P as A } from "./progress-DA413-zn.js";
|
|
|
7
7
|
import { T as C } from "./timestamp-BV2lC-wV.js";
|
|
8
8
|
import { T as L } from "./transaction-chip-CscoQbxF.js";
|
|
9
9
|
import { A as O, b as G, c as Y, a as $ } from "./accordion-DnIa7OHX.js";
|
|
10
|
-
import { C as q } from "./care-plan-entry-card-
|
|
10
|
+
import { C as q } from "./care-plan-entry-card-CEnQy7YP.js";
|
|
11
11
|
import { u as J } from "./registry-DvAUVLHh.js";
|
|
12
|
-
import { C as Q, e as W } from "./entity-card-
|
|
12
|
+
import { C as Q, e as W } from "./entity-card-DmrgYSEX.js";
|
|
13
13
|
import { i as X } from "./is-safe-url-DkETxeHz.js";
|
|
14
14
|
const Z = {
|
|
15
15
|
id: "care-plan-card",
|
|
@@ -253,4 +253,4 @@ export {
|
|
|
253
253
|
de as C,
|
|
254
254
|
Z as c
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=care-plan-card-
|
|
256
|
+
//# sourceMappingURL=care-plan-card-DzPDYgtK.js.map
|
|
@@ -6,11 +6,11 @@ import { P as O } from "./progress-DA413-zn.js";
|
|
|
6
6
|
import { T as q } from "./tag-BQXwuJq1.js";
|
|
7
7
|
import { T as b } from "./timestamp-BV2lC-wV.js";
|
|
8
8
|
import { T as G } from "./transaction-chip-CscoQbxF.js";
|
|
9
|
-
import { T as J } from "./tooth-scheme-
|
|
9
|
+
import { T as J } from "./tooth-scheme-DJZtzfeY.js";
|
|
10
10
|
import { C as Q, b as X, a as Z } from "./collapsible-BrnRiCC6.js";
|
|
11
11
|
import { u as ee } from "./registry-DvAUVLHh.js";
|
|
12
12
|
import { C as ae } from "./chevron-down-BX_NP2Yh.js";
|
|
13
|
-
import { e as te } from "./entity-card-
|
|
13
|
+
import { e as te } from "./entity-card-DmrgYSEX.js";
|
|
14
14
|
const re = {
|
|
15
15
|
id: "care-plan-entry-card",
|
|
16
16
|
// `expand` is host-delegated: the per-phase breakdown is an in-component
|
|
@@ -319,4 +319,4 @@ export {
|
|
|
319
319
|
le as C,
|
|
320
320
|
re as c
|
|
321
321
|
};
|
|
322
|
-
//# sourceMappingURL=care-plan-entry-card-
|
|
322
|
+
//# sourceMappingURL=care-plan-entry-card-CEnQy7YP.js.map
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { jsx as r, jsxs as n, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as F, useId as M } from "react";
|
|
3
|
+
import { useTranslation as U } from "react-i18next";
|
|
4
|
+
import { B as P } from "./badge-DCOqV9mI.js";
|
|
5
|
+
import { a as G } from "./key-value-pair-BrgbMfbF.js";
|
|
6
|
+
import { L as O } from "./link-DrD_cRUg.js";
|
|
7
|
+
import { S as $ } from "./separator-CYU_bGFn.js";
|
|
8
|
+
import { T as A } from "./timestamp-BV2lC-wV.js";
|
|
9
|
+
import { u as q } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { C as J, e as Q } from "./entity-card-DmrgYSEX.js";
|
|
11
|
+
import { i as W } from "./is-safe-url-DkETxeHz.js";
|
|
12
|
+
const X = {
|
|
13
|
+
id: "care-plan-header",
|
|
14
|
+
capabilities: [],
|
|
15
|
+
state: {
|
|
16
|
+
state: {
|
|
17
|
+
type: "'estimate' | 'accepted' | 'discarded' | 'closed'",
|
|
18
|
+
descriptionKey: "ui.agent.carePlanHeader.state.state",
|
|
19
|
+
description: "The plan lifecycle state. Enum value only — never the localised label or any PHI.",
|
|
20
|
+
read: (o) => o.getState()
|
|
21
|
+
},
|
|
22
|
+
alertCount: {
|
|
23
|
+
type: "number",
|
|
24
|
+
descriptionKey: "ui.agent.carePlanHeader.state.alertCount",
|
|
25
|
+
description: "How many attention alerts (e.g. missing signature) are showing. Count only — never the alert labels.",
|
|
26
|
+
read: (o) => o.getAlertCount()
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
actions: {},
|
|
30
|
+
domHooks: {
|
|
31
|
+
root: {
|
|
32
|
+
attr: "data-component",
|
|
33
|
+
value: "care-plan-header",
|
|
34
|
+
description: "Marks the CarePlanHeader root region."
|
|
35
|
+
},
|
|
36
|
+
instanceId: {
|
|
37
|
+
attr: "data-component-id",
|
|
38
|
+
sourceProp: "id",
|
|
39
|
+
description: "Sourced from the id prop. Addresses a specific plan header."
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, Y = {
|
|
43
|
+
estimate: "Estimate",
|
|
44
|
+
accepted: "Accepted",
|
|
45
|
+
discarded: "Discarded",
|
|
46
|
+
closed: "Closed"
|
|
47
|
+
}, Z = {
|
|
48
|
+
warning: "warning",
|
|
49
|
+
error: "error",
|
|
50
|
+
info: "info"
|
|
51
|
+
}, ee = F(
|
|
52
|
+
function({
|
|
53
|
+
id: c,
|
|
54
|
+
number: I,
|
|
55
|
+
numberLabel: w,
|
|
56
|
+
name: t,
|
|
57
|
+
state: s,
|
|
58
|
+
url: p,
|
|
59
|
+
alerts: d,
|
|
60
|
+
meta: m,
|
|
61
|
+
dates: e,
|
|
62
|
+
actions: f,
|
|
63
|
+
headingTag: H = "h3",
|
|
64
|
+
surface: L = "elevated",
|
|
65
|
+
density: T = "comfortable",
|
|
66
|
+
locale: E,
|
|
67
|
+
onActivate: g,
|
|
68
|
+
"aria-label": u,
|
|
69
|
+
className: S,
|
|
70
|
+
...k
|
|
71
|
+
}, D) {
|
|
72
|
+
const { t: l, i18n: K } = U(), h = M(), v = E ?? K.language ?? "en";
|
|
73
|
+
q(
|
|
74
|
+
X,
|
|
75
|
+
{
|
|
76
|
+
getState: () => s,
|
|
77
|
+
getAlertCount: () => (d == null ? void 0 : d.length) ?? 0
|
|
78
|
+
},
|
|
79
|
+
c
|
|
80
|
+
);
|
|
81
|
+
const _ = w ?? l("carePlanCard.number", {
|
|
82
|
+
number: I,
|
|
83
|
+
defaultValue: "Care plan {{number}}"
|
|
84
|
+
}), B = l(`carePlanCard.state.${s}`, {
|
|
85
|
+
defaultValue: Y[s]
|
|
86
|
+
}), R = t != null && t !== "", V = !!p && W(p), z = !!d && d.length > 0, x = !!m && m.length > 0, y = s === "accepted" ? e == null ? void 0 : e.acceptedIso : s === "closed" ? e == null ? void 0 : e.closedIso : s === "discarded" ? e == null ? void 0 : e.discardedIso : void 0, i = [];
|
|
87
|
+
e != null && e.acceptedIso && s !== "accepted" && i.push({
|
|
88
|
+
key: "accepted",
|
|
89
|
+
label: l("carePlanCard.date.accepted", "Accepted on"),
|
|
90
|
+
iso: e.acceptedIso
|
|
91
|
+
}), e != null && e.closedIso && s !== "closed" && i.push({
|
|
92
|
+
key: "closed",
|
|
93
|
+
label: l("carePlanCard.date.closed", "Closed on"),
|
|
94
|
+
iso: e.closedIso
|
|
95
|
+
}), e != null && e.discardedIso && s !== "discarded" && i.push({
|
|
96
|
+
key: "discarded",
|
|
97
|
+
label: l("carePlanCard.date.discarded", "Discarded on"),
|
|
98
|
+
iso: e.discardedIso
|
|
99
|
+
});
|
|
100
|
+
const b = i.length > 0, C = /* @__PURE__ */ r(
|
|
101
|
+
H,
|
|
102
|
+
{
|
|
103
|
+
id: h,
|
|
104
|
+
className: "type-title-card ds:m-0 ds:text-[color:var(--foreground)]",
|
|
105
|
+
children: R ? t : _
|
|
106
|
+
}
|
|
107
|
+
), j = b ? /* @__PURE__ */ r("div", { className: "type-body-sm ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-2xs)] ds:text-[color:var(--muted-foreground)]", children: i.map((a) => /* @__PURE__ */ n(
|
|
108
|
+
"span",
|
|
109
|
+
{
|
|
110
|
+
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ r("span", { children: a.label }),
|
|
113
|
+
/* @__PURE__ */ r(A, { value: a.iso, format: "absolute", locale: v })
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
a.key
|
|
117
|
+
)) }) : null;
|
|
118
|
+
return /* @__PURE__ */ r(
|
|
119
|
+
"section",
|
|
120
|
+
{
|
|
121
|
+
ref: D,
|
|
122
|
+
"aria-label": u,
|
|
123
|
+
"aria-labelledby": u ? void 0 : h,
|
|
124
|
+
"data-component": "care-plan-header",
|
|
125
|
+
"data-component-id": c,
|
|
126
|
+
"data-state": s,
|
|
127
|
+
id: c,
|
|
128
|
+
className: Q({ surface: L, density: T, className: S }),
|
|
129
|
+
...k,
|
|
130
|
+
children: /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
131
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
132
|
+
/* @__PURE__ */ r("div", { className: "ds:min-w-0 ds:flex-1", children: V ? /* @__PURE__ */ r(
|
|
133
|
+
O,
|
|
134
|
+
{
|
|
135
|
+
href: p,
|
|
136
|
+
weight: "strong",
|
|
137
|
+
onClick: (a) => {
|
|
138
|
+
a.defaultPrevented || a.metaKey || a.ctrlKey || a.shiftKey || g == null || g();
|
|
139
|
+
},
|
|
140
|
+
children: C
|
|
141
|
+
}
|
|
142
|
+
) : C }),
|
|
143
|
+
f ? /* @__PURE__ */ r("div", { className: "ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: f }) : null
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
146
|
+
/* @__PURE__ */ n(P, { variant: J[s], size: "md", withDot: !0, children: [
|
|
147
|
+
B,
|
|
148
|
+
y ? /* @__PURE__ */ n(N, { children: [
|
|
149
|
+
" · ",
|
|
150
|
+
/* @__PURE__ */ r(
|
|
151
|
+
A,
|
|
152
|
+
{
|
|
153
|
+
value: y,
|
|
154
|
+
format: "absolute",
|
|
155
|
+
locale: v,
|
|
156
|
+
shape: "bare"
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
] }) : null
|
|
160
|
+
] }),
|
|
161
|
+
z ? d.map((a) => /* @__PURE__ */ r(
|
|
162
|
+
P,
|
|
163
|
+
{
|
|
164
|
+
variant: Z[a.tone ?? "warning"],
|
|
165
|
+
size: "md",
|
|
166
|
+
leading: a.icon,
|
|
167
|
+
children: a.label
|
|
168
|
+
},
|
|
169
|
+
a.id
|
|
170
|
+
)) : null
|
|
171
|
+
] }),
|
|
172
|
+
x || b ? /* @__PURE__ */ n(N, { children: [
|
|
173
|
+
/* @__PURE__ */ r($, { orientation: "horizontal" }),
|
|
174
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
175
|
+
x ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:gap-x-[var(--spacing-lg)] ds:gap-y-[var(--spacing-xs)]", children: m.map((a) => /* @__PURE__ */ r(
|
|
176
|
+
G,
|
|
177
|
+
{
|
|
178
|
+
label: a.label,
|
|
179
|
+
value: a.value,
|
|
180
|
+
icon: a.icon ?? void 0,
|
|
181
|
+
"data-field-id": a.id
|
|
182
|
+
},
|
|
183
|
+
a.id
|
|
184
|
+
)) }) : null,
|
|
185
|
+
j
|
|
186
|
+
] })
|
|
187
|
+
] }) : null
|
|
188
|
+
] })
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
ee.displayName = "CarePlanHeader";
|
|
194
|
+
export {
|
|
195
|
+
ee as C,
|
|
196
|
+
X as c
|
|
197
|
+
};
|
|
198
|
+
//# sourceMappingURL=care-plan-header-DcXFXWit.js.map
|
|
@@ -48,28 +48,28 @@ const _ = h(
|
|
|
48
48
|
), k = /^(https?:|mailto:)/i;
|
|
49
49
|
function H(n) {
|
|
50
50
|
const e = [];
|
|
51
|
-
let
|
|
51
|
+
let r = n;
|
|
52
52
|
const t = /\*\*([^*]+)\*\*|`([^`]+)`|\[([^\]]+)\]\(([^)]+)\)|\n/;
|
|
53
|
-
for (;
|
|
54
|
-
const
|
|
55
|
-
if (!
|
|
56
|
-
e.push({ type: "text", value:
|
|
53
|
+
for (; r.length > 0; ) {
|
|
54
|
+
const s = t.exec(r);
|
|
55
|
+
if (!s) {
|
|
56
|
+
e.push({ type: "text", value: r });
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
s.index > 0 && e.push({ type: "text", value: r.slice(0, s.index) }), s[1] !== void 0 ? e.push({ type: "bold", value: s[1] }) : s[2] !== void 0 ? e.push({ type: "code", value: s[2] }) : s[3] !== void 0 && s[4] !== void 0 ? e.push({ type: "link", label: s[3], href: s[4] }) : e.push({ type: "br" }), r = r.slice(s.index + s[0].length);
|
|
60
60
|
}
|
|
61
61
|
return e;
|
|
62
62
|
}
|
|
63
63
|
function q(n) {
|
|
64
|
-
return H(n).map((e,
|
|
64
|
+
return H(n).map((e, r) => e.type === "bold" ? /* @__PURE__ */ a("strong", { children: e.value }, r) : e.type === "code" ? /* @__PURE__ */ a(
|
|
65
65
|
"code",
|
|
66
66
|
{
|
|
67
67
|
dir: "ltr",
|
|
68
68
|
className: "ds:rounded-[var(--radius-sm)] ds:bg-muted/30 ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:font-[family-name:var(--font-mono)]",
|
|
69
69
|
children: e.value
|
|
70
70
|
},
|
|
71
|
-
|
|
72
|
-
) : e.type === "br" ? /* @__PURE__ */ a("br", {},
|
|
71
|
+
r
|
|
72
|
+
) : e.type === "br" ? /* @__PURE__ */ a("br", {}, r) : e.type === "link" ? k.test(e.href) ? /* @__PURE__ */ a(
|
|
73
73
|
"a",
|
|
74
74
|
{
|
|
75
75
|
href: e.href,
|
|
@@ -78,19 +78,19 @@ function q(n) {
|
|
|
78
78
|
className: "ds:underline ds:underline-offset-2 ds:hover:opacity-80",
|
|
79
79
|
children: e.label
|
|
80
80
|
},
|
|
81
|
-
|
|
82
|
-
) : /* @__PURE__ */ a(l, { children: e.label },
|
|
81
|
+
r
|
|
82
|
+
) : /* @__PURE__ */ a(l, { children: e.label }, r) : /* @__PURE__ */ a(l, { children: e.value }, r));
|
|
83
83
|
}
|
|
84
84
|
function G(n) {
|
|
85
|
-
return M(n).map((e,
|
|
85
|
+
return M(n).map((e, r) => e.type === "code" ? /* @__PURE__ */ a(S, { code: e.value, language: e.lang }, r) : /* @__PURE__ */ a(l, { children: q(e.value) }, r));
|
|
86
86
|
}
|
|
87
87
|
const J = T(
|
|
88
88
|
({
|
|
89
89
|
role: n,
|
|
90
90
|
content: e,
|
|
91
|
-
avatar:
|
|
91
|
+
avatar: r,
|
|
92
92
|
timestamp: t,
|
|
93
|
-
status:
|
|
93
|
+
status: s,
|
|
94
94
|
renderMarkdown: x = !1,
|
|
95
95
|
onRetry: m,
|
|
96
96
|
actions: c,
|
|
@@ -105,19 +105,21 @@ const J = T(
|
|
|
105
105
|
hour: "2-digit",
|
|
106
106
|
minute: "2-digit"
|
|
107
107
|
}).format(v);
|
|
108
|
-
}, [t, u.language]), f = i(`chat.message.role.${n}`), C = o ? i("chat.message.label", { role: f, time: o }) : i("chat.message.labelNoTime", { role: f }), j = b ?? (x ? G(e) : e), p = !
|
|
108
|
+
}, [t, u.language]), f = i(`chat.message.role.${n}`), C = o ? i("chat.message.label", { role: f, time: o }) : i("chat.message.labelNoTime", { role: f }), j = b ?? (x ? G(e) : e), p = !s || s === "edited" ? null : s === "sending" ? /* @__PURE__ */ a(E, { "aria-hidden": "true", className: "ds:size-3.5" }) : s === "sent" ? /* @__PURE__ */ a(L, { "aria-hidden": "true", className: "ds:size-3.5" }) : /* @__PURE__ */ a(
|
|
109
109
|
R,
|
|
110
110
|
{
|
|
111
111
|
"aria-hidden": "true",
|
|
112
112
|
className: "ds:size-3.5 ds:text-[color:var(--destructive)]"
|
|
113
113
|
}
|
|
114
|
-
), g =
|
|
114
|
+
), g = s ? i(`chat.message.status.${s}`) : null;
|
|
115
115
|
return /* @__PURE__ */ d(
|
|
116
116
|
"article",
|
|
117
117
|
{
|
|
118
118
|
ref: w,
|
|
119
119
|
"aria-label": C,
|
|
120
120
|
"data-component": "chat-message",
|
|
121
|
+
"data-role": n,
|
|
122
|
+
"data-status": s,
|
|
121
123
|
className: [
|
|
122
124
|
_({ role: n, className: y }),
|
|
123
125
|
// Entrance: fade + slide up on mount. `--animation-duration` is 0ms
|
|
@@ -128,9 +130,9 @@ const J = T(
|
|
|
128
130
|
].join(" "),
|
|
129
131
|
...N,
|
|
130
132
|
children: [
|
|
131
|
-
n !== "system" &&
|
|
133
|
+
n !== "system" && r ? r.slot ? (
|
|
132
134
|
// Consumer-supplied avatar node (e.g. Alia's Sparkles tile).
|
|
133
|
-
|
|
135
|
+
r.slot
|
|
134
136
|
) : (
|
|
135
137
|
// Allow-list the src: LLM-supplied values can carry
|
|
136
138
|
// `javascript:` / `data:text/html` / `data:image/svg+xml` and so
|
|
@@ -138,8 +140,8 @@ const J = T(
|
|
|
138
140
|
/* @__PURE__ */ a(
|
|
139
141
|
I,
|
|
140
142
|
{
|
|
141
|
-
name:
|
|
142
|
-
src: V(
|
|
143
|
+
name: r.name,
|
|
144
|
+
src: V(r.src),
|
|
143
145
|
size: "sm"
|
|
144
146
|
}
|
|
145
147
|
)
|
|
@@ -205,10 +207,10 @@ const J = T(
|
|
|
205
207
|
/* @__PURE__ */ a("span", { className: "ds:sr-only", children: g })
|
|
206
208
|
]
|
|
207
209
|
},
|
|
208
|
-
|
|
210
|
+
s
|
|
209
211
|
)
|
|
210
212
|
) : null,
|
|
211
|
-
|
|
213
|
+
s === "error" && m ? /* @__PURE__ */ a(
|
|
212
214
|
F,
|
|
213
215
|
{
|
|
214
216
|
intent: "ghost",
|
|
@@ -234,4 +236,4 @@ J.displayName = "ChatMessage";
|
|
|
234
236
|
export {
|
|
235
237
|
J as C
|
|
236
238
|
};
|
|
237
|
-
//# sourceMappingURL=chat-message-
|
|
239
|
+
//# sourceMappingURL=chat-message-DzpcJR-q.js.map
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as H, useRef as N, useEffect as _, useMemo as W, useCallback as q } from "react";
|
|
3
|
+
import { useTranslation as B } from "react-i18next";
|
|
4
|
+
import { A as F } from "./autocomplete-BrONKN8l.js";
|
|
5
|
+
import { T as G } from "./text-input-B-OWQ1Je.js";
|
|
6
|
+
import { u as J } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
|
+
import { u as L } from "./registry-DvAUVLHh.js";
|
|
8
|
+
const O = {
|
|
9
|
+
id: "city-input",
|
|
10
|
+
capabilities: ["set_value"],
|
|
11
|
+
state: {
|
|
12
|
+
value: {
|
|
13
|
+
type: "string",
|
|
14
|
+
descriptionKey: "ui.agent.cityInput.state.value",
|
|
15
|
+
description: "Current city / town value.",
|
|
16
|
+
read: (e) => e.getValue()
|
|
17
|
+
},
|
|
18
|
+
isEmpty: {
|
|
19
|
+
type: "boolean",
|
|
20
|
+
descriptionKey: "ui.agent.cityInput.state.isEmpty",
|
|
21
|
+
description: "Whether the field has no value.",
|
|
22
|
+
read: (e) => e.getValue() === ""
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
actions: {
|
|
26
|
+
set_value: {
|
|
27
|
+
safety: "write",
|
|
28
|
+
argsType: "{ value: string }",
|
|
29
|
+
argsSchema: {
|
|
30
|
+
type: "object",
|
|
31
|
+
properties: { value: { type: "string" } },
|
|
32
|
+
required: ["value"]
|
|
33
|
+
},
|
|
34
|
+
idempotent: !0,
|
|
35
|
+
descriptionKey: "ui.agent.cityInput.actions.setValue",
|
|
36
|
+
description: "Replace the city value.",
|
|
37
|
+
examples: [
|
|
38
|
+
{ args: { value: "Milano" }, note: "Set the city to Milano." }
|
|
39
|
+
],
|
|
40
|
+
invoke: (e, r) => {
|
|
41
|
+
e.setValue(r.value);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
clear: {
|
|
45
|
+
safety: "destructive",
|
|
46
|
+
idempotent: !0,
|
|
47
|
+
descriptionKey: "ui.agent.cityInput.actions.clear",
|
|
48
|
+
description: "Empty the field. Loses any typed value.",
|
|
49
|
+
invoke: (e) => {
|
|
50
|
+
e.clear();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
domHooks: {
|
|
55
|
+
root: { attr: "data-component", value: "city-input" },
|
|
56
|
+
instanceId: {
|
|
57
|
+
attr: "data-component-id",
|
|
58
|
+
sourceProp: "id",
|
|
59
|
+
description: "Sourced from the id prop."
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, Q = H(
|
|
63
|
+
function({
|
|
64
|
+
value: r,
|
|
65
|
+
defaultValue: V,
|
|
66
|
+
onValueChange: R,
|
|
67
|
+
loadCities: i,
|
|
68
|
+
onCitySelect: S,
|
|
69
|
+
country: s,
|
|
70
|
+
province: u,
|
|
71
|
+
recents: k,
|
|
72
|
+
debounceMs: w,
|
|
73
|
+
snapOnBlur: x,
|
|
74
|
+
placeholder: A,
|
|
75
|
+
clearable: E,
|
|
76
|
+
disabled: c,
|
|
77
|
+
readOnly: p,
|
|
78
|
+
required: d,
|
|
79
|
+
name: m,
|
|
80
|
+
id: n,
|
|
81
|
+
size: y = "md",
|
|
82
|
+
tone: v = "default",
|
|
83
|
+
"aria-label": f,
|
|
84
|
+
"aria-invalid": g,
|
|
85
|
+
"aria-describedby": h,
|
|
86
|
+
className: K
|
|
87
|
+
}, b) {
|
|
88
|
+
const { t: T } = B(), [a, t] = J({
|
|
89
|
+
value: r,
|
|
90
|
+
defaultValue: V,
|
|
91
|
+
onChange: R
|
|
92
|
+
}), C = N(a);
|
|
93
|
+
_(() => {
|
|
94
|
+
C.current = a;
|
|
95
|
+
}, [a]);
|
|
96
|
+
const j = W(
|
|
97
|
+
() => ({
|
|
98
|
+
getValue: () => C.current ?? "",
|
|
99
|
+
setValue: (o) => t(o),
|
|
100
|
+
clear: () => t("")
|
|
101
|
+
}),
|
|
102
|
+
[t]
|
|
103
|
+
);
|
|
104
|
+
L(O, j, n);
|
|
105
|
+
const M = q(
|
|
106
|
+
(o, P) => i ? i(o, { ...P, country: s, province: u }) : Promise.resolve([]),
|
|
107
|
+
[i, s, u]
|
|
108
|
+
), I = A ?? T("inputs.cityInput.placeholder", "City");
|
|
109
|
+
return /* @__PURE__ */ l(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
"data-component": "city-input",
|
|
113
|
+
"data-component-id": n,
|
|
114
|
+
className: ["ds:w-full", K].filter(Boolean).join(" "),
|
|
115
|
+
children: i ? /* @__PURE__ */ l(
|
|
116
|
+
F,
|
|
117
|
+
{
|
|
118
|
+
ref: b,
|
|
119
|
+
loadOptions: M,
|
|
120
|
+
value: a ?? "",
|
|
121
|
+
onChange: t,
|
|
122
|
+
onSelect: S,
|
|
123
|
+
recents: k,
|
|
124
|
+
debounceMs: w,
|
|
125
|
+
snapOnBlur: x,
|
|
126
|
+
placeholder: I,
|
|
127
|
+
disabled: c,
|
|
128
|
+
readOnly: p,
|
|
129
|
+
required: d,
|
|
130
|
+
name: m,
|
|
131
|
+
id: n,
|
|
132
|
+
size: y,
|
|
133
|
+
tone: v,
|
|
134
|
+
"aria-label": f,
|
|
135
|
+
"aria-invalid": g,
|
|
136
|
+
"aria-describedby": h
|
|
137
|
+
}
|
|
138
|
+
) : /* @__PURE__ */ l(
|
|
139
|
+
G,
|
|
140
|
+
{
|
|
141
|
+
ref: b,
|
|
142
|
+
value: a ?? "",
|
|
143
|
+
onChange: (o) => t(o.target.value),
|
|
144
|
+
onClear: () => t(""),
|
|
145
|
+
autoComplete: "address-level2",
|
|
146
|
+
placeholder: I,
|
|
147
|
+
clearable: E,
|
|
148
|
+
disabled: c,
|
|
149
|
+
readOnly: p,
|
|
150
|
+
required: d,
|
|
151
|
+
name: m,
|
|
152
|
+
id: n,
|
|
153
|
+
size: y,
|
|
154
|
+
tone: v,
|
|
155
|
+
"aria-label": f,
|
|
156
|
+
"aria-invalid": g,
|
|
157
|
+
"aria-describedby": h
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
Q.displayName = "CityInput";
|
|
165
|
+
export {
|
|
166
|
+
Q as C,
|
|
167
|
+
O as c
|
|
168
|
+
};
|
|
169
|
+
//# sourceMappingURL=city-input-Dkgaak7I.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { c as t } from "./createLucideIcon-CrFbzy84.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.8.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const a = [
|
|
9
|
+
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
10
|
+
[
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",
|
|
14
|
+
key: "116196"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
["path", { d: "M12 11h4", key: "1jrz19" }],
|
|
18
|
+
["path", { d: "M12 16h4", key: "n85exb" }],
|
|
19
|
+
["path", { d: "M8 11h.01", key: "1dfujw" }],
|
|
20
|
+
["path", { d: "M8 16h.01", key: "18s6g9" }]
|
|
21
|
+
], h = t("clipboard-list", a);
|
|
22
|
+
export {
|
|
23
|
+
h as C
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=clipboard-list-S7s-MXQq.js.map
|