@alfadocs/ui-kit 1.114.0 → 1.115.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/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-BZ36ULQk.js} +4 -4
- package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +519 -531
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
- package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
- package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
- package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
- package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
- package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
- package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
- package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-C68V9rdH.js} +5 -5
- package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
- package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
- package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
- package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
- package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
- package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
- package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
- package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
- package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
- package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-C1UA5jpS.js} +6 -6
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
- package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
- package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
- package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
- package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-DkoxiDCh.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
- package/dist/_chunks/format-ql5WTsYT.js +846 -0
- package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
- package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
- package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
- package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
- package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-CC-dbKE8.js} +6 -5
- package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-eXdtmEoU.js} +4 -4
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
- package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
- package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
- package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
- package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
- package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-CzG0RmhQ.js} +4 -4
- package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
- package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CcEHJgDd.js} +2 -2
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
- package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
- package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-BVYG_MJE.js} +2 -2
- package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
- package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
- package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
- package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-DlT-vpSe.js} +2 -2
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
- package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-Dy9-CzON.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
- package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
- package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
- package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-qZpw3zj8.js} +7 -7
- package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
- package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
- package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
- package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
- package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-6p3Hm4oH.js} +9 -9
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
- package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
- package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
- package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
- package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
- package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
- package/dist/_chunks/subDays-Bsoy023P.js +8 -0
- package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
- package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
- package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
- package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-CSa6vQ9r.js} +377 -391
- package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-CVjY1d7Q.js} +2 -2
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
- package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-BMAiQYo6.js} +4 -4
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DNSe65yd.js} +2 -2
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +717 -6
- package/dist/agent-i18n/en.json +50 -2
- package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
- package/dist/components/_shared/privacy-mask.d.ts +2 -4
- package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
- package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
- package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
- package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
- package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
- package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
- package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
- package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
- package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
- package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
- package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
- package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +66 -6
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-grid/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +95 -0
- package/dist/components/data-grid/columns.d.ts +96 -0
- package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
- package/dist/components/data-grid/data-grid.d.ts +11 -27
- package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
- package/dist/components/data-grid/editors.d.ts +8 -0
- package/dist/components/data-grid/export-snapshot.d.ts +3 -0
- package/dist/components/data-grid/features.d.ts +56 -0
- package/dist/components/data-grid/filter-fns.d.ts +23 -0
- package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
- package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
- package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
- package/dist/components/data-grid/footer.d.ts +10 -0
- package/dist/components/data-grid/grid-context.d.ts +18 -0
- package/dist/components/data-grid/handle.d.ts +60 -0
- package/dist/components/data-grid/header.d.ts +12 -0
- package/dist/components/data-grid/index.d.ts +3 -0
- package/dist/components/data-grid/index.js +10 -3
- package/dist/components/data-grid/keyboard.d.ts +76 -0
- package/dist/components/data-grid/pager.d.ts +18 -0
- package/dist/components/data-grid/persistence.d.ts +60 -0
- package/dist/components/data-grid/print.d.ts +10 -0
- package/dist/components/data-grid/responsive.d.ts +36 -0
- package/dist/components/data-grid/selection.d.ts +58 -0
- package/dist/components/data-grid/state.d.ts +119 -0
- package/dist/components/data-grid/states.d.ts +34 -0
- package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
- package/dist/components/data-grid/toolbar.d.ts +41 -0
- package/dist/components/data-grid/types.d.ts +1346 -0
- package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
- package/dist/components/data-grid/virtual-rows.d.ts +43 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
- package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
- package/dist/components/data-grid-tabs/index.d.ts +5 -0
- package/dist/components/data-grid-tabs/index.js +8 -0
- package/dist/components/data-grid-tabs/types.d.ts +220 -0
- package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
- package/dist/components/data-table/calendar-day.d.ts +4 -21
- package/dist/components/data-table/data-table.d.ts +10 -6
- package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
- package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
- package/dist/components/data-table/filters/number-filter.d.ts +6 -10
- package/dist/components/data-table/filters/select-filter.d.ts +2 -4
- package/dist/components/data-table/filters/text-filter.d.ts +2 -5
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table/toolbar.d.ts +25 -21
- package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
- 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/due-date-calculator/index.js +2 -2
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
- package/dist/components/icon-button-group/index.d.ts +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +33 -2
- package/dist/i18n/locales/ar.d.ts +94 -0
- package/dist/i18n/locales/ar.js +96 -2
- package/dist/i18n/locales/de.d.ts +94 -0
- package/dist/i18n/locales/de.js +96 -2
- package/dist/i18n/locales/el.d.ts +94 -0
- package/dist/i18n/locales/el.js +96 -2
- package/dist/i18n/locales/en.d.ts +94 -0
- package/dist/i18n/locales/en.js +97 -2
- package/dist/i18n/locales/es.d.ts +94 -0
- package/dist/i18n/locales/es.js +96 -2
- package/dist/i18n/locales/fr.d.ts +94 -0
- package/dist/i18n/locales/fr.js +96 -2
- package/dist/i18n/locales/hi.d.ts +94 -0
- package/dist/i18n/locales/hi.js +96 -2
- package/dist/i18n/locales/it.d.ts +94 -0
- package/dist/i18n/locales/it.js +96 -2
- package/dist/i18n/locales/ja.d.ts +94 -0
- package/dist/i18n/locales/ja.js +96 -2
- package/dist/i18n/locales/nl.d.ts +94 -0
- package/dist/i18n/locales/nl.js +96 -2
- package/dist/i18n/locales/pl.d.ts +94 -0
- package/dist/i18n/locales/pl.js +96 -2
- package/dist/i18n/locales/pt.d.ts +94 -0
- package/dist/i18n/locales/pt.js +96 -2
- package/dist/i18n/locales/ro.d.ts +94 -0
- package/dist/i18n/locales/ro.js +96 -2
- package/dist/i18n/locales/ru.d.ts +94 -0
- package/dist/i18n/locales/ru.js +96 -2
- package/dist/i18n/locales/sq.d.ts +94 -0
- package/dist/i18n/locales/sq.js +96 -2
- package/dist/i18n/locales/sv.d.ts +94 -0
- package/dist/i18n/locales/sv.js +96 -2
- package/dist/i18n/locales/tr.d.ts +94 -0
- package/dist/i18n/locales/tr.js +96 -2
- package/dist/i18n/locales/zh.d.ts +94 -0
- package/dist/i18n/locales/zh.js +96 -2
- package/dist/index.js +1044 -1032
- package/dist/locales/ar.json +96 -2
- package/dist/locales/de.json +96 -2
- package/dist/locales/el.json +96 -2
- package/dist/locales/en.json +96 -2
- package/dist/locales/es.json +96 -2
- package/dist/locales/fr.json +96 -2
- package/dist/locales/hi.json +96 -2
- package/dist/locales/it.json +96 -2
- package/dist/locales/ja.json +96 -2
- package/dist/locales/nl.json +96 -2
- package/dist/locales/pl.json +96 -2
- package/dist/locales/pt.json +96 -2
- package/dist/locales/ro.json +96 -2
- package/dist/locales/ru.json +96 -2
- package/dist/locales/sq.json +96 -2
- package/dist/locales/sv.json +96 -2
- package/dist/locales/tr.json +96 -2
- package/dist/locales/zh.json +96 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
- package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
- package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
- package/dist/_chunks/format--x5jypvH.js +0 -1319
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.115.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -295,6 +295,10 @@
|
|
|
295
295
|
"types": "./dist/components/data-table-tabs/index.d.ts",
|
|
296
296
|
"import": "./dist/components/data-table-tabs/index.js"
|
|
297
297
|
},
|
|
298
|
+
"./data-grid-tabs": {
|
|
299
|
+
"types": "./dist/components/data-grid-tabs/index.d.ts",
|
|
300
|
+
"import": "./dist/components/data-grid-tabs/index.js"
|
|
301
|
+
},
|
|
298
302
|
"./dashboard-grid": {
|
|
299
303
|
"types": "./dist/components/dashboard-grid/index.d.ts",
|
|
300
304
|
"import": "./dist/components/dashboard-grid/index.js"
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import { jsxs as S, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as T, useContext as _, forwardRef as M, useId as G, useRef as K, useMemo as V } from "react";
|
|
3
|
-
import * as g from "@radix-ui/react-checkbox";
|
|
4
|
-
import { c as A } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { u as B } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
|
-
import { T as F } from "./tooltip-uEBdD1-5.js";
|
|
7
|
-
import { u as H } from "./registry-DvAUVLHh.js";
|
|
8
|
-
const W = T(null);
|
|
9
|
-
function q() {
|
|
10
|
-
return _(W);
|
|
11
|
-
}
|
|
12
|
-
const D = {
|
|
13
|
-
id: "checkbox",
|
|
14
|
-
// A checkbox is a boolean toggle, not a one-of-N picker — `set_value`,
|
|
15
|
-
// not `select_single` (which is reserved for choosing one item among many).
|
|
16
|
-
capabilities: ["set_value"],
|
|
17
|
-
state: {
|
|
18
|
-
checked: {
|
|
19
|
-
type: 'boolean | "indeterminate"',
|
|
20
|
-
descriptionKey: "ui.agent.checkbox.state.checked",
|
|
21
|
-
description: "Current checked state.",
|
|
22
|
-
read: (t) => t.getChecked()
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
actions: {
|
|
26
|
-
set_checked: {
|
|
27
|
-
safety: "write",
|
|
28
|
-
argsType: '{ checked: boolean | "indeterminate" }',
|
|
29
|
-
argsSchema: {
|
|
30
|
-
type: "object",
|
|
31
|
-
properties: {
|
|
32
|
-
checked: {
|
|
33
|
-
oneOf: [{ type: "boolean" }, { const: "indeterminate" }],
|
|
34
|
-
description: 'Target state: true, false, or the tri-state "indeterminate".'
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
required: ["checked"]
|
|
38
|
-
},
|
|
39
|
-
idempotent: !0,
|
|
40
|
-
descriptionKey: "ui.agent.checkbox.actions.setChecked",
|
|
41
|
-
description: "Set the checked state to a specific value.",
|
|
42
|
-
examples: [{ args: { checked: !0 }, note: "Tick the box." }],
|
|
43
|
-
invoke: (t, l) => {
|
|
44
|
-
t.setChecked(l.checked);
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
toggle: {
|
|
48
|
-
safety: "write",
|
|
49
|
-
descriptionKey: "ui.agent.checkbox.actions.toggle",
|
|
50
|
-
description: "Flip the checked state between checked and unchecked.",
|
|
51
|
-
invoke: (t) => {
|
|
52
|
-
t.toggle();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
domHooks: {
|
|
57
|
-
root: {
|
|
58
|
-
attr: "data-component",
|
|
59
|
-
value: "checkbox",
|
|
60
|
-
description: "Marks the Checkbox wrapper."
|
|
61
|
-
},
|
|
62
|
-
instanceId: {
|
|
63
|
-
attr: "data-component-id",
|
|
64
|
-
sourceProp: "id",
|
|
65
|
-
description: "Sourced from the id prop."
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}, b = [
|
|
69
|
-
"ds:[stroke-dasharray:1] ds:[stroke-dashoffset:1]",
|
|
70
|
-
"ds:animate-[checkbox-indicator-draw_var(--animation-duration)_ease-out_forwards]"
|
|
71
|
-
].join(" ");
|
|
72
|
-
function P({ className: t }) {
|
|
73
|
-
return /* @__PURE__ */ s(
|
|
74
|
-
"svg",
|
|
75
|
-
{
|
|
76
|
-
viewBox: "0 0 24 24",
|
|
77
|
-
fill: "none",
|
|
78
|
-
stroke: "currentColor",
|
|
79
|
-
strokeWidth: "3",
|
|
80
|
-
strokeLinecap: "round",
|
|
81
|
-
strokeLinejoin: "round",
|
|
82
|
-
"aria-hidden": "true",
|
|
83
|
-
"data-slot": "checkbox-check-icon",
|
|
84
|
-
className: t,
|
|
85
|
-
children: /* @__PURE__ */ s("path", { pathLength: "1", d: "M5 12l5 5L20 7", className: b })
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
function E({ className: t }) {
|
|
90
|
-
return /* @__PURE__ */ s(
|
|
91
|
-
"svg",
|
|
92
|
-
{
|
|
93
|
-
viewBox: "0 0 24 24",
|
|
94
|
-
fill: "none",
|
|
95
|
-
stroke: "currentColor",
|
|
96
|
-
strokeWidth: "3",
|
|
97
|
-
strokeLinecap: "round",
|
|
98
|
-
"aria-hidden": "true",
|
|
99
|
-
"data-slot": "checkbox-indeterminate-icon",
|
|
100
|
-
className: t,
|
|
101
|
-
children: /* @__PURE__ */ s("path", { pathLength: "1", d: "M5 12h14", className: b })
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
const J = A(
|
|
106
|
-
[
|
|
107
|
-
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
108
|
-
"ds:min-w-[var(--spacing-lg)] ds:min-h-[var(--spacing-lg)] ds:p-[var(--spacing-2xs)]",
|
|
109
|
-
// The off-state edge is all that marks the box, so `--border` is
|
|
110
|
-
// re-pointed at the 3:1 `--control-border` here. A host still on an
|
|
111
|
-
// older token sheet lacks this class and keeps the soft edge.
|
|
112
|
-
"ds:[--border:var(--control-border)]",
|
|
113
|
-
"ds:border ds:border-border ds:rounded-[var(--radius-sm)] ds:bg-background",
|
|
114
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
115
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
116
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
117
|
-
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
118
|
-
"ds:data-[state=checked]:bg-primary ds:data-[state=checked]:border-primary",
|
|
119
|
-
"ds:data-[state=indeterminate]:bg-primary ds:data-[state=indeterminate]:border-primary",
|
|
120
|
-
'ds:relative ds:before:absolute ds:before:inset-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""]'
|
|
121
|
-
].join(" "),
|
|
122
|
-
{
|
|
123
|
-
variants: {
|
|
124
|
-
// Per-size `mt` centers the box optically on the first line of the
|
|
125
|
-
// label using the type-label line-box height — important when the
|
|
126
|
-
// label wraps, because the wrapper uses `items-start` so children
|
|
127
|
-
// align to the top edge rather than the multi-line block's centre.
|
|
128
|
-
size: {
|
|
129
|
-
sm: "ds:size-3.5 ds:mt-[calc((var(--type-label-size)*var(--type-label-line-height)-var(--spacing-lg))/2)]",
|
|
130
|
-
md: "ds:size-4 ds:mt-[calc((var(--type-label-size)*var(--type-label-line-height)-var(--spacing-lg))/2)]",
|
|
131
|
-
lg: "ds:size-5 ds:mt-[calc((var(--type-label-size)*var(--type-label-line-height)-var(--spacing-lg))/2)]"
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
defaultVariants: {
|
|
135
|
-
size: "md"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
), Q = M(
|
|
139
|
-
({
|
|
140
|
-
label: t,
|
|
141
|
-
checked: l,
|
|
142
|
-
onCheckedChange: v,
|
|
143
|
-
size: h = "md",
|
|
144
|
-
disabled: x,
|
|
145
|
-
disabledReason: m,
|
|
146
|
-
name: C,
|
|
147
|
-
value: n,
|
|
148
|
-
id: u,
|
|
149
|
-
className: y,
|
|
150
|
-
...w
|
|
151
|
-
}, z) => {
|
|
152
|
-
const j = G(), p = u ?? j, e = q(), r = e !== null && n !== void 0, [N, i] = B({
|
|
153
|
-
value: l,
|
|
154
|
-
defaultValue: !1,
|
|
155
|
-
onChange: v
|
|
156
|
-
}), c = r ? e.value.has(n) : N ?? !1, I = r ? () => e.toggle(n) : (o) => {
|
|
157
|
-
i(o);
|
|
158
|
-
}, L = (e == null ? void 0 : e.name) ?? C, d = (e == null ? void 0 : e.disabled) || x, a = K(
|
|
159
|
-
c ?? !1
|
|
160
|
-
);
|
|
161
|
-
a.current = c ?? !1;
|
|
162
|
-
const R = V(
|
|
163
|
-
() => ({
|
|
164
|
-
getChecked: () => a.current,
|
|
165
|
-
setChecked: (o) => {
|
|
166
|
-
if (r) {
|
|
167
|
-
(a.current === !0 || a.current === "indeterminate") !== (o === !0 || o === "indeterminate") && e.toggle(n);
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
i(o);
|
|
171
|
-
},
|
|
172
|
-
toggle: () => {
|
|
173
|
-
if (r) {
|
|
174
|
-
e.toggle(n);
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
const o = !(a.current === !0 || a.current === "indeterminate");
|
|
178
|
-
i(o);
|
|
179
|
-
}
|
|
180
|
-
}),
|
|
181
|
-
[r, e, n, i]
|
|
182
|
-
);
|
|
183
|
-
H(D, R, u);
|
|
184
|
-
const k = [
|
|
185
|
-
"ds:text-primary-foreground",
|
|
186
|
-
h === "sm" ? "ds:size-3" : h === "lg" ? "ds:size-4" : "ds:size-3.5"
|
|
187
|
-
].join(" "), O = [
|
|
188
|
-
"type-label ds:text-foreground ds:select-none",
|
|
189
|
-
d ? "ds:cursor-not-allowed ds:opacity-50" : "ds:cursor-pointer"
|
|
190
|
-
].join(" "), f = /* @__PURE__ */ S(
|
|
191
|
-
"div",
|
|
192
|
-
{
|
|
193
|
-
"data-component": "checkbox",
|
|
194
|
-
"data-component-id": u,
|
|
195
|
-
"data-option-id": n,
|
|
196
|
-
className: "ds:inline-flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
197
|
-
children: [
|
|
198
|
-
/* @__PURE__ */ s(
|
|
199
|
-
g.Root,
|
|
200
|
-
{
|
|
201
|
-
ref: z,
|
|
202
|
-
id: p,
|
|
203
|
-
checked: c,
|
|
204
|
-
onCheckedChange: I,
|
|
205
|
-
disabled: d,
|
|
206
|
-
"aria-disabled": d || void 0,
|
|
207
|
-
name: L,
|
|
208
|
-
value: n,
|
|
209
|
-
className: J({ size: h, className: y }),
|
|
210
|
-
...w,
|
|
211
|
-
children: /* @__PURE__ */ s(g.Indicator, { children: c === "indeterminate" ? /* @__PURE__ */ s(E, { className: k }) : /* @__PURE__ */ s(P, { className: k }) })
|
|
212
|
-
}
|
|
213
|
-
),
|
|
214
|
-
/* @__PURE__ */ s("label", { htmlFor: p, className: O, children: t })
|
|
215
|
-
]
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
return d && m ? /* @__PURE__ */ s(F, { label: m, children: f }) : f;
|
|
219
|
-
}
|
|
220
|
-
);
|
|
221
|
-
Q.displayName = "Checkbox";
|
|
222
|
-
export {
|
|
223
|
-
Q as C,
|
|
224
|
-
W as a,
|
|
225
|
-
q as u
|
|
226
|
-
};
|
|
227
|
-
//# sourceMappingURL=checkbox-a7Sh-dXb.js.map
|