@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
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { OptionShape } from '../_shared/option';
|
|
2
|
+
export interface CityLoaderContext {
|
|
3
|
+
signal: AbortSignal;
|
|
4
|
+
locale: string;
|
|
5
|
+
/** Selected country (lowercase alpha-2), passed through to bias results. */
|
|
6
|
+
country?: string;
|
|
7
|
+
/** Selected province/region code, passed through to bias results. */
|
|
8
|
+
province?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CityInputProps {
|
|
11
|
+
/** City / town name (free text). */
|
|
12
|
+
value?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
onValueChange?: (city: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Optional async suggestion source. Omit → the field is a plain text
|
|
17
|
+
* input with no suggestions. The kit never imports a geocoder; wire your
|
|
18
|
+
* own here.
|
|
19
|
+
*/
|
|
20
|
+
loadCities?: (query: string, ctx: CityLoaderContext) => Promise<OptionShape[]>;
|
|
21
|
+
/** Fires when a suggestion is picked, with the full option. */
|
|
22
|
+
onCitySelect?: (option: OptionShape) => void;
|
|
23
|
+
/** Passed through to `loadCities` to bias suggestions. */
|
|
24
|
+
country?: string;
|
|
25
|
+
/** Passed through to `loadCities` to bias suggestions. */
|
|
26
|
+
province?: string;
|
|
27
|
+
/** Frequently-picked cities surfaced before the user types. */
|
|
28
|
+
recents?: OptionShape[];
|
|
29
|
+
debounceMs?: number;
|
|
30
|
+
/** Snap the value back to the last picked suggestion on blur. */
|
|
31
|
+
snapOnBlur?: boolean;
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
/** Clear button — text-fallback mode only. */
|
|
34
|
+
clearable?: boolean;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
readOnly?: boolean;
|
|
37
|
+
required?: boolean;
|
|
38
|
+
name?: string;
|
|
39
|
+
id?: string;
|
|
40
|
+
size?: 'sm' | 'md' | 'lg';
|
|
41
|
+
tone?: 'default' | 'error';
|
|
42
|
+
/**
|
|
43
|
+
* Accessible name. In **suggestion mode** (`loadCities` set) this becomes
|
|
44
|
+
* the input's computed name — set it to the visible label text when used
|
|
45
|
+
* inside a `<FormField>`, otherwise the name falls back to a generic
|
|
46
|
+
* "Search". In **text-fallback mode** the FormField label associates
|
|
47
|
+
* natively, so this is optional.
|
|
48
|
+
*/
|
|
49
|
+
'aria-label'?: string;
|
|
50
|
+
/** Invalid-state fallback for use outside a `<FormField>` (inline editors). */
|
|
51
|
+
'aria-invalid'?: boolean;
|
|
52
|
+
/** Error-message id fallback for use outside a `<FormField>`. */
|
|
53
|
+
'aria-describedby'?: string;
|
|
54
|
+
className?: string;
|
|
55
|
+
}
|
|
56
|
+
export declare const CityInput: import("react").ForwardRefExoticComponent<CityInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
57
|
+
//# sourceMappingURL=city-input.d.ts.map
|
|
@@ -32,6 +32,23 @@ export interface ComboboxProps<T extends string = string> {
|
|
|
32
32
|
onOpenChange?: (open: boolean) => void;
|
|
33
33
|
emptyMessage?: ReactNode;
|
|
34
34
|
'aria-label'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Invalid-state fallback for use OUTSIDE a `<FormField>` (e.g. an inline
|
|
37
|
+
* editor). Inside a FormField the context wins. Drives the error border and
|
|
38
|
+
* the input's `aria-invalid`.
|
|
39
|
+
*/
|
|
40
|
+
'aria-invalid'?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Error-message id fallback for use OUTSIDE a `<FormField>`. Inside a
|
|
43
|
+
* FormField the context's `describedBy` wins.
|
|
44
|
+
*/
|
|
45
|
+
'aria-describedby'?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Forwarded to the underlying input as the HTML `autocomplete` token
|
|
48
|
+
* (e.g. `country`, `address-level1`) — WCAG 2.1 §1.3.5. cmdk passes it
|
|
49
|
+
* through to its `Command.Input`.
|
|
50
|
+
*/
|
|
51
|
+
autoComplete?: string;
|
|
35
52
|
className?: string;
|
|
36
53
|
}
|
|
37
54
|
declare const comboboxInputVariants: (props?: ({
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type ConnectionStatusValue = 'connected' | 'disconnected' | 'pending' | 'error';
|
|
2
|
+
/** One read-only account row, shown under a connected service. */
|
|
3
|
+
export interface ConnectionStatusSummaryRow {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
/** Agent-readiness curated handle for ConnectionStatus. */
|
|
8
|
+
export interface ConnectionStatusHandle {
|
|
9
|
+
getStatus: () => ConnectionStatusValue;
|
|
10
|
+
connect: () => void;
|
|
11
|
+
disconnect: () => void;
|
|
12
|
+
}
|
|
13
|
+
export interface ConnectionStatusProps {
|
|
14
|
+
/** Service name — consumer-domain text (e.g. `"Stripe"`). */
|
|
15
|
+
service: string;
|
|
16
|
+
/** External-service connection state. */
|
|
17
|
+
status: ConnectionStatusValue;
|
|
18
|
+
/** Short explanatory line — consumer-domain text. */
|
|
19
|
+
description?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Read-only account rows rendered via the kit DescriptionList. Consumer-domain
|
|
22
|
+
* text. Shown only when `status === 'connected'`.
|
|
23
|
+
*/
|
|
24
|
+
summary?: ConnectionStatusSummaryRow[];
|
|
25
|
+
/** Called by the Connect action (disconnected / error states). */
|
|
26
|
+
onConnect?: () => void;
|
|
27
|
+
/** Called by the Disconnect action (connected state). */
|
|
28
|
+
onDisconnect?: () => void;
|
|
29
|
+
/** Disable the connect / disconnect action. */
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
id?: string;
|
|
32
|
+
className?: string;
|
|
33
|
+
'aria-label'?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const ConnectionStatus: import("react").ForwardRefExoticComponent<ConnectionStatusProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
36
|
+
//# sourceMappingURL=connection-status.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ConnectionStatus } from './connection-status';
|
|
2
|
+
export type { ConnectionStatusProps, ConnectionStatusHandle, ConnectionStatusValue, ConnectionStatusSummaryRow, } from './connection-status';
|
|
3
|
+
export { connectionStatusAgent } from './connection-status.agent';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ToolRailHandle, ToolRailTool } from '../tool-rail';
|
|
3
3
|
export interface ControlRoomProviderProps {
|
|
4
4
|
/**
|
|
5
5
|
* Tools valid in every context (Alia, Inbox). Set once at the app shell —
|
|
6
6
|
* they pin to the rail's far end and persist across navigation. Memoise
|
|
7
7
|
* this array so it doesn't re-register every render.
|
|
8
8
|
*/
|
|
9
|
-
globalTools?:
|
|
9
|
+
globalTools?: ToolRailTool[];
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -25,7 +25,7 @@ export declare function ControlRoomProvider({ globalTools, children, }: ControlR
|
|
|
25
25
|
*
|
|
26
26
|
* No-op when rendered outside a `<ControlRoomProvider>`.
|
|
27
27
|
*/
|
|
28
|
-
export declare function useControlRoomTools(tools:
|
|
28
|
+
export declare function useControlRoomTools(tools: ToolRailTool[]): void;
|
|
29
29
|
/**
|
|
30
30
|
* The merged tool set the rail consumes: contextual tools (auto-tagged
|
|
31
31
|
* `scope: 'contextual'`) then globals (`scope: 'global'`). Scope is assigned
|
|
@@ -34,7 +34,7 @@ export declare function useControlRoomTools(tools: AiToolsRailTool[]): void;
|
|
|
34
34
|
* `ControlRoomRail` re-groups by favourite membership for the final order.
|
|
35
35
|
* Returns `[]` outside a provider.
|
|
36
36
|
*/
|
|
37
|
-
export declare function useControlRoomMergedTools():
|
|
37
|
+
export declare function useControlRoomMergedTools(): ToolRailTool[];
|
|
38
38
|
/**
|
|
39
39
|
* Imperative actions to drive the rail from a page: open a tool's panel (e.g.
|
|
40
40
|
* the X-ray viewer when a tooth is clicked) or collapse it. No-ops outside a
|
|
@@ -49,5 +49,5 @@ export declare function useControlRoomActions(): {
|
|
|
49
49
|
* `useControlRoomActions().openTool` can drive it. Returns the stable
|
|
50
50
|
* `registerRail` callback (or a no-op outside a provider).
|
|
51
51
|
*/
|
|
52
|
-
export declare function useControlRoomRailRegister(): (handle:
|
|
52
|
+
export declare function useControlRoomRailRegister(): (handle: ToolRailHandle | null) => void;
|
|
53
53
|
//# sourceMappingURL=control-room-context.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ToolRailHandle, type ToolRailProps, type ToolRailTool } from '../tool-rail';
|
|
2
2
|
/** A Control Room tool — the rail tool descriptor, `scope`-aware. */
|
|
3
|
-
export type ControlRoomTool =
|
|
3
|
+
export type ControlRoomTool = ToolRailTool;
|
|
4
4
|
/** Imperative handle — open / collapse a tool panel without the DOM. */
|
|
5
|
-
export type ControlRoomRailHandle =
|
|
6
|
-
export interface ControlRoomRailProps extends Omit<
|
|
5
|
+
export type ControlRoomRailHandle = ToolRailHandle;
|
|
6
|
+
export interface ControlRoomRailProps extends Omit<ToolRailProps, 'tools' | 'onReorder' | 'formatReorderAnnouncement' | 'renderToolAffordance' | 'renderPanelHeader'> {
|
|
7
7
|
/**
|
|
8
8
|
* Explicit tool set. Omit to read the merged global + contextual tools from
|
|
9
9
|
* the nearest `<ControlRoomProvider>` (+ `useControlRoomTools`).
|
|
@@ -31,5 +31,5 @@ export interface ControlRoomRailProps extends Omit<AiToolsRailProps, 'tools' | '
|
|
|
31
31
|
/** localStorage key for the uncontrolled favourites. */
|
|
32
32
|
persistFavoritesKey?: string;
|
|
33
33
|
}
|
|
34
|
-
export declare const ControlRoomRail: import("react").ForwardRefExoticComponent<ControlRoomRailProps & import("react").RefAttributes<
|
|
34
|
+
export declare const ControlRoomRail: import("react").ForwardRefExoticComponent<ControlRoomRailProps & import("react").RefAttributes<ToolRailHandle>>;
|
|
35
35
|
//# sourceMappingURL=control-room-rail.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ControlRoomRail } from './control-room-rail';
|
|
2
2
|
export type { ControlRoomRailProps, ControlRoomRailHandle, ControlRoomTool, } from './control-room-rail';
|
|
3
|
+
export { controlRoomRailAgent } from './control-room-rail.agent';
|
|
3
4
|
export { ControlRoomProvider, useControlRoomTools, useControlRoomMergedTools, useControlRoomActions, } from './control-room-context';
|
|
4
5
|
export type { ControlRoomProviderProps } from './control-room-context';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { C as r, a as l,
|
|
1
|
+
import { C as r, a as l, c as a, u as t, b as e, d as n } from "../../_chunks/control-room-rail-FAQZrGVL.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ControlRoomProvider,
|
|
4
4
|
l as ControlRoomRail,
|
|
5
|
-
a as
|
|
5
|
+
a as controlRoomRailAgent,
|
|
6
|
+
t as useControlRoomActions,
|
|
6
7
|
e as useControlRoomMergedTools,
|
|
7
|
-
|
|
8
|
+
n as useControlRoomTools
|
|
8
9
|
};
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const counterVariants: (props?: ({
|
|
4
|
-
variant?: "outline" | "neutral" | "
|
|
4
|
+
variant?: "outline" | "neutral" | "solid" | "notification" | null | undefined;
|
|
5
5
|
size?: "sm" | "md" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface CounterProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'>, VariantProps<typeof counterVariants> {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AgentAdapter } from '../../agent/types';
|
|
2
|
+
export interface CountrySelectHandle {
|
|
3
|
+
getValue: () => string | null;
|
|
4
|
+
setValue: (value: string | null) => void;
|
|
5
|
+
clear: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const countrySelectAgent: AgentAdapter<CountrySelectHandle>;
|
|
8
|
+
//# sourceMappingURL=country-select.agent.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface CountrySelectProps {
|
|
2
|
+
/** Selected country — ISO 3166-1 alpha-2, lowercased (e.g. `'it'`). */
|
|
3
|
+
value?: string;
|
|
4
|
+
/** Uncontrolled initial value. Ignored once `value` is set. */
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
/** Fires with the new lowercased alpha-2 code (or `''` when cleared). */
|
|
7
|
+
onValueChange?: (code: string) => void;
|
|
8
|
+
/**
|
|
9
|
+
* Restrict the list to these codes (lowercase alpha-2). Default: every
|
|
10
|
+
* ISO 3166-1 alpha-2 country.
|
|
11
|
+
*/
|
|
12
|
+
countries?: string[];
|
|
13
|
+
/**
|
|
14
|
+
* Float these countries to the top under a "Popular" heading, in the
|
|
15
|
+
* given order (lowercase alpha-2). They are removed from their region
|
|
16
|
+
* group so they never appear twice.
|
|
17
|
+
*/
|
|
18
|
+
popularCountries?: string[];
|
|
19
|
+
/** Group the remaining countries by world region. Default `true`. */
|
|
20
|
+
grouped?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Override the localized display name for specific codes — e.g. to pin
|
|
23
|
+
* politically-sensitive wording. Keyed by lowercase alpha-2.
|
|
24
|
+
*/
|
|
25
|
+
nameOverrides?: Record<string, string>;
|
|
26
|
+
/** Show a flag before each country name. Default `true`. */
|
|
27
|
+
showFlag?: boolean;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
clearable?: boolean;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
readOnly?: boolean;
|
|
32
|
+
required?: boolean;
|
|
33
|
+
name?: string;
|
|
34
|
+
id?: string;
|
|
35
|
+
size?: 'sm' | 'md' | 'lg';
|
|
36
|
+
tone?: 'default' | 'error';
|
|
37
|
+
/**
|
|
38
|
+
* Accessible name. REQUIRED when used inside a `<FormField>`: cmdk labels
|
|
39
|
+
* the input through its own hidden element, so the visible FormField label
|
|
40
|
+
* is not the computed accessible name unless this is passed. Set it to the
|
|
41
|
+
* visible label text (e.g. `"Country"`).
|
|
42
|
+
*/
|
|
43
|
+
'aria-label'?: string;
|
|
44
|
+
/** Invalid-state fallback for use outside a `<FormField>` (inline editors). */
|
|
45
|
+
'aria-invalid'?: boolean;
|
|
46
|
+
/** Error-message id fallback for use outside a `<FormField>`. */
|
|
47
|
+
'aria-describedby'?: string;
|
|
48
|
+
className?: string;
|
|
49
|
+
}
|
|
50
|
+
export declare const CountrySelect: import("react").ForwardRefExoticComponent<CountrySelectProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
51
|
+
//# sourceMappingURL=country-select.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { CountrySelect } from './country-select';
|
|
2
|
+
export type { CountrySelectProps } from './country-select';
|
|
3
|
+
export { countrySelectAgent } from './country-select.agent';
|
|
4
|
+
export type { CountrySelectHandle } from './country-select.agent';
|
|
5
|
+
export { ISO_3166_ALPHA2, ISO_3166_REGIONS, regionForCountry, type CountryRegion, } from './iso-3166';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { C as o, I as t, a, c as n, r as s } from "../../_chunks/country-select-BwUZQvTa.js";
|
|
2
|
+
export {
|
|
3
|
+
o as CountrySelect,
|
|
4
|
+
t as ISO_3166_ALPHA2,
|
|
5
|
+
a as ISO_3166_REGIONS,
|
|
6
|
+
n as countrySelectAgent,
|
|
7
|
+
s as regionForCountry
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bundled closed dataset for CountrySelect — ISO 3166-1 alpha-2 codes mapped to
|
|
3
|
+
* UN geoscheme continental region. Localised country *names* are resolved at render
|
|
4
|
+
* via Intl.DisplayNames and are never bundled here.
|
|
5
|
+
*
|
|
6
|
+
* Source: ISO 3166-1 (249 entries, current as of 2025).
|
|
7
|
+
* Region assignment follows the UN M.49 geoscheme with the following project-level
|
|
8
|
+
* overrides: Russia → 'Europe'; Turkey and Cyprus → 'Asia'; Greenland → 'Americas';
|
|
9
|
+
* Antarctica territories (aq, bv, gs, hm, tf) → 'Antarctica'.
|
|
10
|
+
*/
|
|
11
|
+
export type CountryRegion = 'Africa' | 'Americas' | 'Asia' | 'Europe' | 'Oceania' | 'Antarctica';
|
|
12
|
+
export declare const ISO_3166_REGIONS: Record<string, CountryRegion>;
|
|
13
|
+
export declare const ISO_3166_ALPHA2: readonly string[];
|
|
14
|
+
export declare function regionForCountry(code: string): CountryRegion | undefined;
|
|
15
|
+
//# sourceMappingURL=iso-3166.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CustomCellRendererProps } from 'ag-grid-react';
|
|
2
|
+
/**
|
|
3
|
+
* Keyboard-accessible row-reorder cell. AG Grid's native row dragging is
|
|
4
|
+
* mouse/touch only; this renderer adds move-up / move-down buttons so the order
|
|
5
|
+
* is reachable by keyboard too (the missing accessible half of the
|
|
6
|
+
* "drag-sortable column" primitive). The consumer owns `rowData` order and
|
|
7
|
+
* reorders it in `onMove` — the same controlled contract as the editable cells.
|
|
8
|
+
*/
|
|
9
|
+
export interface ReorderCellRendererParams<TData = unknown> {
|
|
10
|
+
/** Move the row one step in the given direction (consumer reorders rowData). */
|
|
11
|
+
onMove: (data: TData, direction: 'up' | 'down') => void;
|
|
12
|
+
/** Accessible name for the move-up button (defaults to a kit string). */
|
|
13
|
+
moveUpLabel?: string;
|
|
14
|
+
/** Accessible name for the move-down button (defaults to a kit string). */
|
|
15
|
+
moveDownLabel?: string;
|
|
16
|
+
/** Button intent (default `ghost`). */
|
|
17
|
+
intent?: 'ghost' | 'outline';
|
|
18
|
+
/** Render the two buttons as a connected `IconButtonGroup` (default true). */
|
|
19
|
+
group?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Disable move-up on the first displayed row and move-down on the last
|
|
22
|
+
* (default true). Turn off when the grid is filtered/sorted and the ends are
|
|
23
|
+
* not meaningful.
|
|
24
|
+
*/
|
|
25
|
+
disableAtEnds?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Pixel width a reorder column needs for the two `sm` IconButtons (32px each)
|
|
29
|
+
* plus the data-table cell's inline padding so the controls never clip. Mirrors
|
|
30
|
+
* {@link actionsColumnWidth}.
|
|
31
|
+
*/
|
|
32
|
+
export declare function reorderColumnWidth(): number;
|
|
33
|
+
export declare function ReorderCellRenderer<TData = unknown>(props: CustomCellRendererProps<TData> & ReorderCellRendererParams<TData>): import("react/jsx-runtime").JSX.Element | null;
|
|
34
|
+
//# sourceMappingURL=reorder-cell-renderer.d.ts.map
|
|
@@ -30,6 +30,8 @@ export { CurrencyCellRenderer } from './cell-renderers/currency-cell-renderer';
|
|
|
30
30
|
export type { CurrencyCellRendererParams } from './cell-renderers/currency-cell-renderer';
|
|
31
31
|
export { ActionsCellRenderer, actionsColumnWidth, } from './cell-renderers/actions-cell-renderer';
|
|
32
32
|
export type { ActionDef, ActionsCellRendererParams, } from './cell-renderers/actions-cell-renderer';
|
|
33
|
+
export { ReorderCellRenderer, reorderColumnWidth, } from './cell-renderers/reorder-cell-renderer';
|
|
34
|
+
export type { ReorderCellRendererParams } from './cell-renderers/reorder-cell-renderer';
|
|
33
35
|
export { LinkCellRenderer } from './cell-renderers/link-cell-renderer';
|
|
34
36
|
export type { LinkCellRendererParams } from './cell-renderers/link-cell-renderer';
|
|
35
37
|
export { ToggleCellRenderer } from './cell-renderers/toggle-cell-renderer';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { B as A, C as L, E as N, a as k,
|
|
1
|
+
import { A as r, C as l, D as t, a as s, b as n, c as o, I as d, L as i, N as C, d as R, S as F, e as T, f as g, T as b, g as u, h as c, i as m, j as h, k as x, l as D, U as f, m as p, n as y, o as E } from "../../_chunks/link-cell-renderer-De_SLjSq.js";
|
|
2
|
+
import { B as A, C as L, E as N, a as k, R as B, T as I, b as P, r as U, u as W } from "../../_chunks/editable-currency-cell-renderer-CGELrkIj.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
r as ActionsCellRenderer,
|
|
5
5
|
A as BalanceCellRenderer,
|
|
6
6
|
L as ColorDotCellRenderer,
|
|
7
|
-
|
|
7
|
+
l as CurrencyCellRenderer,
|
|
8
8
|
t as DataTable,
|
|
9
9
|
s as DateCellRenderer,
|
|
10
10
|
n as DateRangeFilter,
|
|
@@ -15,22 +15,24 @@ export {
|
|
|
15
15
|
i as LinkCellRenderer,
|
|
16
16
|
C as NumberFilter,
|
|
17
17
|
R as NumberFloatingFilter,
|
|
18
|
+
B as ReorderCellRenderer,
|
|
18
19
|
F as SelectFilter,
|
|
19
20
|
T as SelectFloatingFilter,
|
|
20
21
|
g as StatusCellRenderer,
|
|
21
22
|
b as TagListCellRenderer,
|
|
22
23
|
u as TextFilter,
|
|
23
24
|
c as TextFloatingFilter,
|
|
24
|
-
|
|
25
|
+
I as ToggleCellRenderer,
|
|
25
26
|
m as Toolbar,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
h as ToolbarProvider,
|
|
28
|
+
P as ToothCellRenderer,
|
|
29
|
+
x as TypeaheadFilter,
|
|
30
|
+
D as TypeaheadFloatingFilter,
|
|
31
|
+
f as UserCellRenderer,
|
|
31
32
|
p as actionsColumnWidth,
|
|
32
33
|
y as dataTableAgent,
|
|
33
34
|
E as defaultExportPdf,
|
|
34
|
-
|
|
35
|
+
U as reorderColumnWidth,
|
|
36
|
+
W as useTotalRow
|
|
35
37
|
};
|
|
36
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,21 +8,65 @@ export interface EntitySummaryStat {
|
|
|
8
8
|
export interface EntitySummarySection {
|
|
9
9
|
id: string;
|
|
10
10
|
heading: string;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Leading glyph for the section. On default sections it's the scannability
|
|
13
|
+
* anchor shown in a `--primary`-tinted medallion beside the heading (e.g. a
|
|
14
|
+
* calendar for "Scheduled", a wallet for "Financial"); omit it to render no
|
|
15
|
+
* medallion. On `attention` sections it overrides the warning Alert's icon
|
|
16
|
+
* (which defaults to an alert triangle).
|
|
17
|
+
*/
|
|
18
|
+
icon?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* `attention` renders the section as the kit's warning `Alert` — the
|
|
21
|
+
* standard risk-flag treatment (border, warning surface, alert glyph,
|
|
22
|
+
* `--warning-foreground` text) — for clinically important callouts.
|
|
23
|
+
*/
|
|
12
24
|
tone?: 'default' | 'attention';
|
|
13
25
|
/** Bullet items — `ReactNode` so consumers compose inline entity links. */
|
|
14
26
|
items: ReactNode[];
|
|
15
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Curated agent handle for EntitySummary. Exposes structural state only —
|
|
30
|
+
* never the entity name or the section items (both PHI). See
|
|
31
|
+
* `entity-summary.agent.ts`.
|
|
32
|
+
*/
|
|
33
|
+
export interface EntitySummaryHandle {
|
|
34
|
+
/** Structural snapshot — generated-at + section ids/headings/tone/count. No PHI. */
|
|
35
|
+
getState: () => {
|
|
36
|
+
generatedAtIso?: string;
|
|
37
|
+
sections: Array<{
|
|
38
|
+
id: string;
|
|
39
|
+
heading: string;
|
|
40
|
+
tone: 'default' | 'attention';
|
|
41
|
+
itemCount: number;
|
|
42
|
+
}>;
|
|
43
|
+
};
|
|
44
|
+
/** Whether the regenerate affordance is available. */
|
|
45
|
+
canRegenerate: () => boolean;
|
|
46
|
+
/** Request the host to regenerate the brief (mirrors onRegenerate). */
|
|
47
|
+
regenerate: () => void;
|
|
48
|
+
/** Whether the close affordance is available. */
|
|
49
|
+
canClose: () => boolean;
|
|
50
|
+
/** Dismiss the panel (mirrors onClose). */
|
|
51
|
+
close: () => void;
|
|
52
|
+
}
|
|
16
53
|
export interface EntitySummaryProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'children'> {
|
|
54
|
+
/**
|
|
55
|
+
* Stable instance id. Surfaced on the root as `data-component-id` so an
|
|
56
|
+
* agent / MCP UI bridge can address this specific summary panel.
|
|
57
|
+
*/
|
|
58
|
+
id?: string;
|
|
17
59
|
/** Panel title. Defaults to the localised "AI summary". */
|
|
18
60
|
title?: string;
|
|
19
|
-
/** Entity name shown
|
|
61
|
+
/** Entity name shown beside its avatar in the header (links when `entityHref` is set). */
|
|
20
62
|
entityName?: string;
|
|
21
63
|
/** Entity href for the name link. */
|
|
22
64
|
entityHref?: string;
|
|
65
|
+
/** Avatar image URL for the entity. Falls back to initials derived from `entityName`. */
|
|
66
|
+
entityAvatarSrc?: string;
|
|
23
67
|
/** ISO-8601 instant the brief was generated. */
|
|
24
68
|
generatedAtIso?: string;
|
|
25
|
-
/** Corpus the brief was built from, shown as a
|
|
69
|
+
/** Corpus the brief was built from, shown as a compact KPI card. */
|
|
26
70
|
stats?: EntitySummaryStat[];
|
|
27
71
|
/** The narrative sections, in order. */
|
|
28
72
|
sections: EntitySummarySection[];
|
|
@@ -30,7 +74,12 @@ export interface EntitySummaryProps extends Omit<HTMLAttributes<HTMLElement>, 't
|
|
|
30
74
|
onRegenerate?: () => void;
|
|
31
75
|
/** Regenerate-button label. */
|
|
32
76
|
regenerateLabel?: string;
|
|
33
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* Dismiss the panel. Renders a close button in the panel header for
|
|
79
|
+
* STANDALONE use (outside the rail). When docked in `ControlRoomRail`, omit
|
|
80
|
+
* this — the rail injects its own close via `PanelHeaderActionsProvider`
|
|
81
|
+
* (passing it while docked would render a duplicate close control).
|
|
82
|
+
*/
|
|
34
83
|
onClose?: () => void;
|
|
35
84
|
/** Footer disclaimer. Defaults to the BETA clinical-judgement note. */
|
|
36
85
|
disclaimer?: ReactNode;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Agent-readiness curated handle for FieldArray. Non-generic on purpose — the
|
|
4
|
+
* adapter is typed `AgentAdapter<FieldArrayHandle>` and never sees `T`, so the
|
|
5
|
+
* handle exposes only the structural surface (row count + add/remove).
|
|
6
|
+
*/
|
|
7
|
+
export interface FieldArrayHandle {
|
|
8
|
+
getCount: () => number;
|
|
9
|
+
add: () => void;
|
|
10
|
+
remove: (index: number) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface FieldArrayProps<T> {
|
|
13
|
+
/** The current rows. The consumer owns this array. */
|
|
14
|
+
items: T[];
|
|
15
|
+
/** Renders one row's fields. Called once per item. */
|
|
16
|
+
renderItem: (item: T, index: number) => ReactNode;
|
|
17
|
+
/** Append a new (consumer-shaped) row. */
|
|
18
|
+
onAdd: () => void;
|
|
19
|
+
/** Remove the row at `index`. */
|
|
20
|
+
onRemove: (index: number) => void;
|
|
21
|
+
/** Visible text on the add control. Consumer supplies localised text. */
|
|
22
|
+
addLabel: string;
|
|
23
|
+
/**
|
|
24
|
+
* Per-row accessible name for the remove control, e.g.
|
|
25
|
+
* `(i) => \`Remove rule ${i + 1}\``. Defaults to the kit's localised
|
|
26
|
+
* `Remove` string so the control always has an accessible name.
|
|
27
|
+
*/
|
|
28
|
+
removeItemLabel?: (index: number) => string;
|
|
29
|
+
/** Group accessible name, rendered as a visible `<legend>` when provided. */
|
|
30
|
+
legend?: string;
|
|
31
|
+
/** Minimum rows — remove is disabled once `items.length <= min`. */
|
|
32
|
+
min?: number;
|
|
33
|
+
/** Maximum rows — add is disabled once `items.length >= max`. */
|
|
34
|
+
max?: number;
|
|
35
|
+
/** Stable id, used to address this instance from the agent runtime. */
|
|
36
|
+
id?: string;
|
|
37
|
+
className?: string;
|
|
38
|
+
/** Accessible name used when no `legend` is supplied. */
|
|
39
|
+
'aria-label'?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function FieldArray<T>({ items, renderItem, onAdd, onRemove, addLabel, removeItemLabel, legend, min, max, id, className, 'aria-label': ariaLabel, }: FieldArrayProps<T>): ReactElement;
|
|
42
|
+
export declare namespace FieldArray {
|
|
43
|
+
var displayName: string;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=field-array.d.ts.map
|
|
@@ -15,7 +15,7 @@ export interface FreemiumPlan {
|
|
|
15
15
|
}
|
|
16
16
|
declare const contentVariants: (props?: ({
|
|
17
17
|
layout?: "sheet" | "centered" | null | undefined;
|
|
18
|
-
density?: "
|
|
18
|
+
density?: "full" | "compact" | null | undefined;
|
|
19
19
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
20
20
|
/** Curated imperative handle for agent / external automation. */
|
|
21
21
|
export interface FreemiumPaywallHandle {
|