@slotted/react 0.1.0-beta.7 → 0.1.0-beta.9
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/accordion-BV8Fk_Bb.js +144 -0
- package/dist/accordion.js +1 -1
- package/dist/{action-bar-C5zaYrEW.js → action-bar-1Oim1M96.js} +87 -86
- package/dist/action-bar.js +1 -1
- package/dist/action-sheet-DDYGq59n.js +358 -0
- package/dist/action-sheet.js +1 -1
- package/dist/alert-CBOYFgV4.js +162 -0
- package/dist/alert.js +1 -1
- package/dist/app-shell-lsR7E83y.js +845 -0
- package/dist/app-shell.js +1 -1
- package/dist/aspect-ratio-4-jVcJVH.js +41 -0
- package/dist/aspect-ratio.js +1 -1
- package/dist/attachment-DRJ1Xbwf.js +305 -0
- package/dist/attachment.js +1 -1
- package/dist/avatar-XLx8XVQx.js +103 -0
- package/dist/avatar-group-C7WnrQcv.js +50 -0
- package/dist/avatar-group.js +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge-D8JWis8n.js +98 -0
- package/dist/badge.js +1 -1
- package/dist/breadcrumb-Dwhy6HNo.js +222 -0
- package/dist/breadcrumb.js +1 -1
- package/dist/button-DE4tnH90.js +100 -0
- package/dist/button-group-CNDK1041.js +51 -0
- package/dist/button-group.js +1 -1
- package/dist/button.js +2 -2
- package/dist/calendar-C5MWMBJ-.js +457 -0
- package/dist/calendar.js +1 -1
- package/dist/card-D-qJkGER.js +103 -0
- package/dist/card.js +1 -1
- package/dist/carousel-AUACHYJI.js +499 -0
- package/dist/carousel.js +1 -1
- package/dist/{cascader-Cn2Acpcv.js → cascader-DxoDZicZ.js} +374 -334
- package/dist/cascader.js +1 -1
- package/dist/chart-DlFmkiTt.js +1010 -0
- package/dist/chart.js +1 -1
- package/dist/checkbox-BiQZiZNt.js +144 -0
- package/dist/checkbox-group-DGTqyyx5.js +109 -0
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/code-block-eGJk55we.js +282 -0
- package/dist/code-block.js +1 -1
- package/dist/collapsible-BZJRc6im.js +222 -0
- package/dist/collapsible.js +1 -1
- package/dist/color-picker-BwN0Z-6T.js +506 -0
- package/dist/color-picker.js +1 -1
- package/dist/column-manager-TmTLTxbk.js +586 -0
- package/dist/column-manager.js +1 -1
- package/dist/combobox-C7ah850L.js +902 -0
- package/dist/combobox.js +1 -1
- package/dist/command-palette-DaJvrDUu.js +741 -0
- package/dist/command-palette.js +1 -1
- package/dist/container-D055iqqL.js +47 -0
- package/dist/container.js +1 -1
- package/dist/context-menu-DPVaLtM3.js +151 -0
- package/dist/context-menu.js +1 -1
- package/dist/currency-field-DaTmtosk.js +469 -0
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-DsovCuVC.js → dashboard-grid-CPkG03YJ.js} +335 -330
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-CjFQ2U6v.js → data-grid-UyqqM0QZ.js} +1329 -1180
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-UtLdop-1.js → data-list-nqUyMq3p.js} +173 -147
- package/dist/data-list.js +1 -1
- package/dist/date-field-BSxzX9I5.js +299 -0
- package/dist/date-field.js +1 -1
- package/dist/date-picker-Cw5cGND1.js +316 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-l7D9XdFz.js +501 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/datetime-field-KtkRmy6M.js +424 -0
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-STqSWMkH.js → datetime-picker-CWNTsAk5.js} +217 -200
- package/dist/datetime-picker.js +1 -1
- package/dist/datetime-range-picker-OXDQGRWg.js +1029 -0
- package/dist/datetime-range-picker.js +1 -1
- package/dist/description-list-wYFj_gz-.js +240 -0
- package/dist/description-list.js +1 -1
- package/dist/{detail-panel-ChaIgrw3.js → detail-panel-CKizcLlb.js} +101 -93
- package/dist/detail-panel.js +1 -1
- package/dist/dialog-CpdINwbD.js +533 -0
- package/dist/dialog.js +1 -1
- package/dist/divider-mlzDmInL.js +35 -0
- package/dist/divider.js +1 -1
- package/dist/docs/calendar.json +1 -1
- package/dist/docs/code-block.json +93 -93
- package/dist/docs/code-block.md +71 -71
- package/dist/docs/currency-field.json +7 -0
- package/dist/docs/currency-field.md +1 -0
- package/dist/docs/data-grid.examples.md +1 -1
- package/dist/docs/data-grid.json +21 -4
- package/dist/docs/data-grid.md +1 -1
- package/dist/docs/data-grid.props.md +5 -3
- package/dist/docs/dialog.examples.md +118 -116
- package/dist/docs/dialog.json +8 -8
- package/dist/docs/filter-bar.json +115 -115
- package/dist/docs/filter-bar.md +78 -78
- package/dist/docs/guidelines/async-feedback.md +10 -0
- package/dist/docs/guidelines/composition.md +11 -7
- package/dist/docs/guidelines/index.md +6 -1
- package/dist/docs/guidelines/list-pages.md +30 -0
- package/dist/docs/guidelines/overviews.md +10 -0
- package/dist/docs/markdown.json +75 -75
- package/dist/docs/markdown.md +63 -63
- package/dist/docs/page-header.json +1 -1
- package/dist/docs/skills/compose-screen/SKILL.md +22 -10
- package/dist/docs/skills/review-screen/SKILL.md +6 -0
- package/dist/docs/skills/waiting-states/SKILL.md +4 -1
- package/dist/docs/tags-input.json +28 -2
- package/dist/docs/tags-input.md +4 -1
- package/dist/docs/timeline.json +129 -129
- package/dist/docs/timeline.md +120 -120
- package/dist/drawer-CRaogb8b.js +769 -0
- package/dist/drawer.js +1 -1
- package/dist/{entity-picker-BdySwW8F.js → entity-picker-Z_R15jez.js} +461 -407
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-VUGigZIP.js → event-calendar-BTqvEoHB.js} +466 -397
- package/dist/event-calendar.js +1 -1
- package/dist/field-DKA-qsCV.js +367 -0
- package/dist/field-group-DFBcVPei.js +138 -0
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/filter-bar-C9QzKlR7.js +1340 -0
- package/dist/filter-bar.js +1 -1
- package/dist/{form-vTCQhZM-.js → form-C3PbJPAx.js} +96 -87
- package/dist/form.js +1 -1
- package/dist/fullscreen-DnMrOXT1.js +190 -0
- package/dist/fullscreen.js +1 -1
- package/dist/grid-Ceyh0svH.js +26 -0
- package/dist/grid.js +1 -1
- package/dist/highlight-CIcfSNwz.js +59 -0
- package/dist/highlight.js +1 -1
- package/dist/hover-card-Cw65NrY1.js +215 -0
- package/dist/hover-card.js +1 -1
- package/dist/icon-DMdotKfc.js +75 -0
- package/dist/icon-button-VOA-RY_1.js +222 -0
- package/dist/icon.js +1 -1
- package/dist/{image-DpDFrrXL.js → image-CHiNVcMX.js} +24 -20
- package/dist/image.js +1 -1
- package/dist/{import-export-center-BuEBO1CB.js → import-export-center-BZkY9DNX.js} +227 -175
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +125 -125
- package/dist/inline-BvUpHX8q.js +17 -0
- package/dist/inline-message-BgA4EOsR.js +95 -0
- package/dist/inline-message.js +1 -1
- package/dist/inline.js +1 -1
- package/dist/kbd-DQwbQOQo.js +105 -0
- package/dist/kbd.js +1 -1
- package/dist/link-2zYK7lG3.js +91 -0
- package/dist/link.js +1 -1
- package/dist/list-Bl3ittKt.js +95 -0
- package/dist/list-item-C95M_E6h.js +125 -0
- package/dist/list-item.js +1 -1
- package/dist/list.js +1 -1
- package/dist/listbox-CjCzb8wA.js +626 -0
- package/dist/listbox.js +1 -1
- package/dist/loading-overlay-B6htOo0b.js +218 -0
- package/dist/loading-overlay.js +1 -1
- package/dist/markdown-CvkdDhk0.js +306 -0
- package/dist/markdown.js +1 -1
- package/dist/menu-parts-Dsszga3r.js +805 -0
- package/dist/menu.js +1 -1
- package/dist/menubar-C6ADG3vZ.js +157 -0
- package/dist/menubar.js +1 -1
- package/dist/message-Cjx5EKXr.js +434 -0
- package/dist/message-scroller-DbsTtBDf.js +216 -0
- package/dist/message-scroller.js +1 -1
- package/dist/message.js +1 -1
- package/dist/{multi-select-B8z6ApgW.js → multi-select-BwBY-V0x.js} +468 -428
- package/dist/multi-select.js +1 -1
- package/dist/navigation-menu-parts-BH_bD_nB.js +492 -0
- package/dist/navigation-menu.js +1 -1
- package/dist/notification-center-COgvX79i.js +515 -0
- package/dist/notification-center.js +1 -1
- package/dist/number-field-DAkV-0Ds.js +345 -0
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-CI-kdNgx.js → otp-input-BhNLVojM.js} +75 -72
- package/dist/otp-input.js +1 -1
- package/dist/page-DhWDOrba.js +179 -0
- package/dist/page-header-_w0GDfzQ.js +369 -0
- package/dist/page-header.js +1 -1
- package/dist/page.js +1 -1
- package/dist/pagination-ORU3xJIl.js +299 -0
- package/dist/pagination.js +1 -1
- package/dist/popover-Dwj841Zz.js +500 -0
- package/dist/popover.js +1 -1
- package/dist/progress-indicator-BhljwFx8.js +289 -0
- package/dist/progress-indicator.js +1 -1
- package/dist/prompt-composer-DekRS1MN.js +259 -0
- package/dist/prompt-composer.js +1 -1
- package/dist/prose-vW3cGfUO.js +92 -0
- package/dist/prose.js +1 -1
- package/dist/radio-group-B90c6yUE.js +143 -0
- package/dist/radio-group.js +1 -1
- package/dist/rating-DQ8ekf4J.js +501 -0
- package/dist/rating.js +1 -1
- package/dist/result-state-_QpLl0_K.js +128 -0
- package/dist/result-state.js +1 -1
- package/dist/saved-views-CSVHsnUY.js +456 -0
- package/dist/saved-views.js +1 -1
- package/dist/scroll-area-YWtHa-AH.js +112 -0
- package/dist/scroll-area.js +1 -1
- package/dist/section-BIVN1b9I.js +177 -0
- package/dist/section.js +1 -1
- package/dist/segmented-control-BEhDuh3f.js +156 -0
- package/dist/segmented-control.js +1 -1
- package/dist/select-Dx9crduQ.js +1018 -0
- package/dist/{select-tags-CQMcHIQN.js → select-tags-O7s_VG8g.js} +11 -1
- package/dist/select.js +1 -1
- package/dist/side-navigation-Clp3d76j.js +747 -0
- package/dist/side-navigation.js +1 -1
- package/dist/skeleton-DhMVeVtn.js +149 -0
- package/dist/skeleton.js +1 -1
- package/dist/slider-Q4U838QA.js +264 -0
- package/dist/slider.js +1 -1
- package/dist/sparkline-BpEgC_sE.js +139 -0
- package/dist/sparkline.js +1 -1
- package/dist/split-button-BXTSOL1t.js +136 -0
- package/dist/split-button.js +1 -1
- package/dist/splitter-CQIAFS-U.js +293 -0
- package/dist/splitter.js +1 -1
- package/dist/stack-CcdrLuIO.js +16 -0
- package/dist/stack.js +1 -1
- package/dist/stat-card-B26PbBTG.js +247 -0
- package/dist/stat-card.js +1 -1
- package/dist/status-indicator-BcRmvlQi.js +78 -0
- package/dist/status-indicator.js +1 -1
- package/dist/stepper-DJiyt8_a.js +261 -0
- package/dist/stepper.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch-DJcPFG_K.js +144 -0
- package/dist/switch.js +1 -1
- package/dist/{table-C1kLS0-9.js → table-B_h8MWmn.js} +345 -332
- package/dist/table-of-contents-Di60gQxa.js +471 -0
- package/dist/table-of-contents.js +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs-cSln63RJ.js +361 -0
- package/dist/tabs.js +1 -1
- package/dist/tag-IJC5A6Mw.js +374 -0
- package/dist/tag.js +1 -1
- package/dist/tags-input-C1rz88eV.js +729 -0
- package/dist/tags-input.js +1 -1
- package/dist/text-field-8YqMC2pD.js +203 -0
- package/dist/text-field.js +1 -1
- package/dist/textarea-CLs-VUAu.js +100 -0
- package/dist/textarea.js +1 -1
- package/dist/time-field-8ZgiPHW6.js +366 -0
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-D6SlQWNF.js → time-picker-MmBtsFt-.js} +134 -121
- package/dist/time-picker.js +1 -1
- package/dist/time-range-picker-IKd3NKiC.js +779 -0
- package/dist/time-range-picker.js +1 -1
- package/dist/timeline-DHzS0QcQ.js +446 -0
- package/dist/timeline.js +1 -1
- package/dist/toast-BFK2kxCh.js +469 -0
- package/dist/toast.js +1 -1
- package/dist/toggle-Tce-wI5k.js +67 -0
- package/dist/toggle-group-CjtkcHal.js +145 -0
- package/dist/toggle-group.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/toolbar-f-xwEocO.js +241 -0
- package/dist/toolbar.js +1 -1
- package/dist/tooltip-Bhr8L7US.js +411 -0
- package/dist/tooltip.js +1 -1
- package/dist/top-navigation-DkklehE6.js +744 -0
- package/dist/top-navigation.js +1 -1
- package/dist/tour-BgFSHHxG.js +809 -0
- package/dist/tour.js +1 -1
- package/dist/transfer-kbdtwSnx.js +606 -0
- package/dist/transfer.js +1 -1
- package/dist/tree-CNUJWzmq.js +792 -0
- package/dist/tree.js +1 -1
- package/dist/types/accordion/accordion.d.ts.map +1 -1
- package/dist/types/action-bar/action-bar-overflow.d.ts.map +1 -1
- package/dist/types/action-bar/action-bar-parts.d.ts.map +1 -1
- package/dist/types/action-bar/action-bar.d.ts.map +1 -1
- package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
- package/dist/types/alert/alert-parts.d.ts.map +1 -1
- package/dist/types/alert/alert.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/aspect-ratio/aspect-ratio.d.ts.map +1 -1
- package/dist/types/attachment/attachment-parts.d.ts.map +1 -1
- package/dist/types/attachment/attachment.d.ts.map +1 -1
- package/dist/types/avatar/avatar.d.ts.map +1 -1
- package/dist/types/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/types/badge/badge-anchor.d.ts.map +1 -1
- package/dist/types/badge/badge.d.ts.map +1 -1
- package/dist/types/breadcrumb/breadcrumb-parts.d.ts.map +1 -1
- package/dist/types/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/types/button/button-content.d.ts.map +1 -1
- package/dist/types/button/button-indicator.d.ts.map +1 -1
- package/dist/types/button/button-link.d.ts.map +1 -1
- package/dist/types/button/button-root.d.ts +2 -2
- package/dist/types/button/button-root.d.ts.map +1 -1
- package/dist/types/button/button.d.ts.map +1 -1
- package/dist/types/button/icon-button.d.ts.map +1 -1
- package/dist/types/button/toggle-button.d.ts.map +1 -1
- package/dist/types/button-group/button-group-separator.d.ts.map +1 -1
- package/dist/types/button-group/button-group.d.ts.map +1 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/card/card-actions.d.ts.map +1 -1
- package/dist/types/card/card-body.d.ts.map +1 -1
- package/dist/types/card/card-footer.d.ts.map +1 -1
- package/dist/types/card/card-header.d.ts.map +1 -1
- package/dist/types/card/card-link.d.ts.map +1 -1
- package/dist/types/card/card-media.d.ts.map +1 -1
- package/dist/types/card/card-selection.d.ts.map +1 -1
- package/dist/types/card/card.d.ts.map +1 -1
- package/dist/types/carousel/carousel-parts.d.ts.map +1 -1
- package/dist/types/carousel/carousel.d.ts.map +1 -1
- package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
- package/dist/types/cascader/cascader.d.ts.map +1 -1
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/checkbox/checkbox.d.ts.map +1 -1
- package/dist/types/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/dist/types/code-block/code-block.d.ts.map +1 -1
- package/dist/types/collapsible/collapsible-parts.d.ts.map +1 -1
- package/dist/types/collapsible/collapsible.d.ts.map +1 -1
- package/dist/types/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/column-manager/column-manager.d.ts.map +1 -1
- package/dist/types/combobox/combobox-items.d.ts.map +1 -1
- package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
- package/dist/types/command-palette/command-palette.d.ts.map +1 -1
- package/dist/types/container/container-breakout.d.ts.map +1 -1
- package/dist/types/container/container.d.ts.map +1 -1
- package/dist/types/context-menu/context-menu.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field-defaults.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.d.ts +1 -1
- package/dist/types/currency-field/currency-field.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.types.d.ts +14 -5
- package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-context.d.ts +29 -0
- package/dist/types/data-grid/data-grid-context.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-filter.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-header.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid.d.ts +1 -1
- package/dist/types/data-grid/data-grid.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid.types.d.ts +10 -0
- package/dist/types/data-grid/data-grid.types.d.ts.map +1 -1
- package/dist/types/data-grid/index.d.ts +1 -1
- package/dist/types/data-grid/index.d.ts.map +1 -1
- package/dist/types/data-list/data-list.d.ts.map +1 -1
- package/dist/types/date-field/date-field.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/types/datetime-field/datetime-field.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
- package/dist/types/description-list/description-list-parts.d.ts.map +1 -1
- package/dist/types/description-list/description-list.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/types/dialog/dialog-parts.d.ts.map +1 -1
- package/dist/types/dialog/dialog.types.d.ts +5 -1
- package/dist/types/dialog/dialog.types.d.ts.map +1 -1
- package/dist/types/divider/divider.d.ts.map +1 -1
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-control.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-popup.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar-event.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar-list.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar-month.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar-time-grid.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/types/field/field-parts.d.ts.map +1 -1
- package/dist/types/field/field.d.ts.map +1 -1
- package/dist/types/field-group/field-group-parts.d.ts.map +1 -1
- package/dist/types/field-group/field-group.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar-rules.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
- package/dist/types/form/form-parts.d.ts.map +1 -1
- package/dist/types/form/form.d.ts.map +1 -1
- package/dist/types/fullscreen/fullscreen.d.ts.map +1 -1
- package/dist/types/grid/grid.d.ts.map +1 -1
- package/dist/types/highlight/highlight.d.ts.map +1 -1
- package/dist/types/hover-card/hover-card.d.ts.map +1 -1
- package/dist/types/icon/glyph.d.ts.map +1 -1
- package/dist/types/icon/icon.d.ts.map +1 -1
- package/dist/types/image/image.d.ts.map +1 -1
- package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
- package/dist/types/inline/inline.d.ts.map +1 -1
- package/dist/types/inline-message/inline-message.d.ts.map +1 -1
- package/dist/types/kbd/key-element.d.ts.map +1 -1
- package/dist/types/kbd/shortcut.d.ts.map +1 -1
- package/dist/types/link/link.d.ts.map +1 -1
- package/dist/types/list/list-parts.d.ts.map +1 -1
- package/dist/types/list/list.d.ts.map +1 -1
- package/dist/types/list-item/list-item-content.d.ts.map +1 -1
- package/dist/types/list-item/list-item-parts.d.ts.map +1 -1
- package/dist/types/list-item/list-item.d.ts.map +1 -1
- package/dist/types/listbox/listbox-parts.d.ts.map +1 -1
- package/dist/types/listbox/listbox.d.ts.map +1 -1
- package/dist/types/loading-overlay/loading-overlay.d.ts.map +1 -1
- package/dist/types/markdown/markdown.d.ts.map +1 -1
- package/dist/types/menu/menu-items.d.ts.map +1 -1
- package/dist/types/menu/menu-parts.d.ts.map +1 -1
- package/dist/types/menubar/menubar.d.ts.map +1 -1
- package/dist/types/message/bubble.d.ts.map +1 -1
- package/dist/types/message/message-parts.d.ts.map +1 -1
- package/dist/types/message/message.d.ts.map +1 -1
- package/dist/types/message-scroller/message-scroller.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-chips.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-items.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
- package/dist/types/navigation-menu/navigation-menu-parts.d.ts.map +1 -1
- package/dist/types/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/types/notification-center/notification-center.d.ts.map +1 -1
- package/dist/types/number-field/number-field.d.ts.map +1 -1
- package/dist/types/otp-input/otp-input.d.ts.map +1 -1
- package/dist/types/page/page.d.ts.map +1 -1
- package/dist/types/page-header/page-header-parts.d.ts.map +1 -1
- package/dist/types/page-header/page-header.d.ts.map +1 -1
- package/dist/types/pagination/pagination-parts.d.ts.map +1 -1
- package/dist/types/pagination/pagination.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/progress-indicator/progress-bar.d.ts.map +1 -1
- package/dist/types/progress-indicator/progress-circle.d.ts.map +1 -1
- package/dist/types/progress-indicator/progress-parts.d.ts.map +1 -1
- package/dist/types/progress-indicator/use-progress-indicator.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
- package/dist/types/prose/prose-parts.d.ts.map +1 -1
- package/dist/types/prose/prose-scroll.d.ts.map +1 -1
- package/dist/types/prose/prose.d.ts.map +1 -1
- package/dist/types/radio-group/radio-group-parts.d.ts.map +1 -1
- package/dist/types/radio-group/radio-group.d.ts.map +1 -1
- package/dist/types/rating/rating-display.d.ts.map +1 -1
- package/dist/types/rating/rating-summary.d.ts.map +1 -1
- package/dist/types/rating/rating.d.ts.map +1 -1
- package/dist/types/result-state/result-state-parts.d.ts.map +1 -1
- package/dist/types/result-state/result-state.d.ts.map +1 -1
- package/dist/types/saved-views/saved-views.d.ts.map +1 -1
- package/dist/types/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/types/section/section-parts.d.ts.map +1 -1
- package/dist/types/section/section.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control-parts.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/types/select/select-items.d.ts.map +1 -1
- package/dist/types/select/select-parts.d.ts.map +1 -1
- package/dist/types/select/select-tags.d.ts.map +1 -1
- package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
- package/dist/types/side-navigation/side-navigation.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-region.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-text.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton.d.ts.map +1 -1
- package/dist/types/slider/slider.d.ts.map +1 -1
- package/dist/types/sparkline/sparkline.d.ts.map +1 -1
- package/dist/types/split-button/split-button-parts.d.ts.map +1 -1
- package/dist/types/split-button/split-button.d.ts.map +1 -1
- package/dist/types/splitter/splitter.d.ts.map +1 -1
- package/dist/types/stack/stack.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-delta.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-value.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card.d.ts.map +1 -1
- package/dist/types/status-indicator/status-indicator.d.ts.map +1 -1
- package/dist/types/stepper/stepper-parts.d.ts.map +1 -1
- package/dist/types/stepper/stepper.d.ts.map +1 -1
- package/dist/types/switch/switch.d.ts.map +1 -1
- package/dist/types/table/table-content.d.ts.map +1 -1
- package/dist/types/table/table-filter.d.ts.map +1 -1
- package/dist/types/table/table-parts.d.ts.map +1 -1
- package/dist/types/table/table.d.ts.map +1 -1
- package/dist/types/table-of-contents/table-of-contents-parts.d.ts.map +1 -1
- package/dist/types/table-of-contents/table-of-contents.d.ts.map +1 -1
- package/dist/types/tabs/tabs-parts.d.ts.map +1 -1
- package/dist/types/tabs/tabs.d.ts.map +1 -1
- package/dist/types/tag/tag-button.d.ts.map +1 -1
- package/dist/types/tag/tag-chip.d.ts +2 -2
- package/dist/types/tag/tag-chip.d.ts.map +1 -1
- package/dist/types/tag/tag-group.d.ts.map +1 -1
- package/dist/types/tag/tag-link.d.ts.map +1 -1
- package/dist/types/tag/tag-toggle.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input-chips.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input.d.ts +7 -1
- package/dist/types/tags-input/tags-input.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input.types.d.ts +10 -0
- package/dist/types/tags-input/tags-input.types.d.ts.map +1 -1
- package/dist/types/text-field/text-field.d.ts.map +1 -1
- package/dist/types/textarea/textarea.d.ts.map +1 -1
- package/dist/types/time-field/time-field.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
- package/dist/types/timeline/timeline.d.ts.map +1 -1
- package/dist/types/toast/toast-parts.d.ts.map +1 -1
- package/dist/types/toast/toast.d.ts.map +1 -1
- package/dist/types/toggle/toggle.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group-parts.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar-overflow.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar-parts.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip-parts.d.ts.map +1 -1
- package/dist/types/top-navigation/top-navigation-parts.d.ts.map +1 -1
- package/dist/types/top-navigation/top-navigation.d.ts.map +1 -1
- package/dist/types/tour/tour-parts.d.ts.map +1 -1
- package/dist/types/tour/tour.d.ts.map +1 -1
- package/dist/types/transfer/transfer.d.ts.map +1 -1
- package/dist/types/tree/tree-parts.d.ts.map +1 -1
- package/dist/types/tree/tree.d.ts.map +1 -1
- package/dist/types/typography/heading.d.ts +2 -2
- package/dist/types/typography/heading.d.ts.map +1 -1
- package/dist/types/typography/text.d.ts.map +1 -1
- package/dist/types/upload/upload-viewer.d.ts.map +1 -1
- package/dist/types/upload/upload.d.ts.map +1 -1
- package/dist/types/visually-hidden/visually-hidden.d.ts.map +1 -1
- package/dist/types/wizard/wizard-parts.d.ts.map +1 -1
- package/dist/types/wizard/wizard.d.ts.map +1 -1
- package/dist/typography-DLiIuMKf.js +93 -0
- package/dist/typography.js +1 -1
- package/dist/upload-CKwUxRtB.js +648 -0
- package/dist/upload.js +1 -1
- package/dist/visually-hidden-Dlnpzic3.js +15 -0
- package/dist/visually-hidden.js +1 -1
- package/dist/wizard-gMgYFSLO.js +838 -0
- package/dist/wizard.js +1 -1
- package/package.json +11 -8
- package/dist/accordion-lCqrmQ3w.js +0 -143
- package/dist/action-sheet-CaUaP0K2.js +0 -347
- package/dist/alert-CP62p9Ul.js +0 -159
- package/dist/app-shell-DNdZ5ys0.js +0 -840
- package/dist/aspect-ratio-C76l-aoY.js +0 -40
- package/dist/attachment-DdBbQcEB.js +0 -302
- package/dist/avatar-BnlE5jjr.js +0 -100
- package/dist/avatar-group-4rBj99tz.js +0 -47
- package/dist/badge-C6rbwVpu.js +0 -94
- package/dist/breadcrumb-Bf01N4wK.js +0 -218
- package/dist/button-Db9f3Bxn.js +0 -99
- package/dist/button-group-Det_nYor.js +0 -50
- package/dist/calendar-BZ6PP7Ke.js +0 -436
- package/dist/card-CpVu8PyZ.js +0 -102
- package/dist/carousel-BPi-Y5yF.js +0 -498
- package/dist/chart-04i6NZQA.js +0 -968
- package/dist/checkbox-B4Sb1eXj.js +0 -139
- package/dist/checkbox-group-LpGMuq9w.js +0 -108
- package/dist/code-block-CTNiyt0U.js +0 -269
- package/dist/collapsible-F-K36XbF.js +0 -217
- package/dist/color-picker-amz8XfXm.js +0 -504
- package/dist/column-manager-CFtJxQWS.js +0 -585
- package/dist/combobox-C1D5doWM.js +0 -885
- package/dist/command-palette-D1C1GDWC.js +0 -707
- package/dist/container-CjxY6rYv.js +0 -46
- package/dist/context-menu-g3DMZKR3.js +0 -150
- package/dist/currency-field-Dti9JFu0.js +0 -455
- package/dist/date-field-BxEpqAPg.js +0 -290
- package/dist/date-picker-DRk9SZp1.js +0 -308
- package/dist/date-range-picker-6Yz7avTS.js +0 -483
- package/dist/datetime-field-D2f9u6im.js +0 -411
- package/dist/datetime-range-picker-DQNQwr3K.js +0 -1000
- package/dist/description-list-IYLnFgHT.js +0 -232
- package/dist/dialog-yT-x3B9s.js +0 -498
- package/dist/divider-D36Jqo0J.js +0 -33
- package/dist/drawer-B_EgvFeX.js +0 -757
- package/dist/field-BxQFpOXS.js +0 -365
- package/dist/field-group-DcN_hiZN.js +0 -138
- package/dist/filter-bar-BzSOD3ad.js +0 -1335
- package/dist/fullscreen-CF0UN4mv.js +0 -187
- package/dist/grid-CIkG_2IQ.js +0 -25
- package/dist/highlight-0Qw23QPp.js +0 -57
- package/dist/hover-card-DpVzwvDJ.js +0 -214
- package/dist/icon-T9Yt4tnm.js +0 -73
- package/dist/icon-button-CCWkCDMs.js +0 -213
- package/dist/inline-D_IjcJ1n.js +0 -16
- package/dist/inline-message-C4a-A2mw.js +0 -91
- package/dist/kbd-eFSWTKxN.js +0 -100
- package/dist/link-TjvRl2VQ.js +0 -87
- package/dist/list-WsQ6ZzCa.js +0 -91
- package/dist/list-item-DpCwZIrd.js +0 -123
- package/dist/listbox-D0MJcAMm.js +0 -615
- package/dist/loading-overlay-RRsNK1FN.js +0 -208
- package/dist/markdown-IiVoh6yi.js +0 -295
- package/dist/menu-parts-BpQu2s4z.js +0 -813
- package/dist/menubar-rpNcgIrw.js +0 -156
- package/dist/message-Cp0rLCyW.js +0 -430
- package/dist/message-scroller-UZjFpflz.js +0 -214
- package/dist/navigation-menu-parts-Cn-OAadu.js +0 -492
- package/dist/notification-center-CGEEHcRA.js +0 -485
- package/dist/number-field-DXk1TAXA.js +0 -342
- package/dist/page-QP8Zyz8-.js +0 -167
- package/dist/page-header-BP_Wt3eS.js +0 -367
- package/dist/pagination-DWJc521r.js +0 -292
- package/dist/popover-DEp8Bf3e.js +0 -495
- package/dist/progress-indicator-DwvUSFFs.js +0 -269
- package/dist/prompt-composer-DdcU3S3L.js +0 -259
- package/dist/prose-CkeNYS0X.js +0 -91
- package/dist/radio-group-D8csBZ8Z.js +0 -140
- package/dist/rating-rI3b5zII.js +0 -459
- package/dist/result-state-CZsQfdN4.js +0 -126
- package/dist/saved-views-DB2IIdhH.js +0 -446
- package/dist/scroll-area-DQ_ansLu.js +0 -112
- package/dist/section-Be7dX9MC.js +0 -176
- package/dist/segmented-control-C-PzkTtg.js +0 -153
- package/dist/select-BUylPwpb.js +0 -995
- package/dist/side-navigation-BnUKTrtd.js +0 -744
- package/dist/skeleton-2LSpg84Z.js +0 -143
- package/dist/slider-fp7kyg-6.js +0 -256
- package/dist/sparkline-rY7HIFE4.js +0 -131
- package/dist/split-button-p97Bd5wM.js +0 -135
- package/dist/splitter-Bg3UgmbV.js +0 -289
- package/dist/stack-BEFavbRs.js +0 -15
- package/dist/stat-card-BG7uLytP.js +0 -244
- package/dist/status-indicator-BOjpXkU5.js +0 -73
- package/dist/stepper-DQJuRWqR.js +0 -253
- package/dist/switch-aVoc4C2F.js +0 -138
- package/dist/table-of-contents-DfAeYtFJ.js +0 -461
- package/dist/tabs-HWmvOKM4.js +0 -355
- package/dist/tag-DjtW53xN.js +0 -365
- package/dist/tags-input-pbv6x1Pi.js +0 -625
- package/dist/text-field-CbQ6UCAP.js +0 -195
- package/dist/textarea-DJSfhrXH.js +0 -99
- package/dist/time-field-BI9n607q.js +0 -355
- package/dist/time-range-picker-CcV3_45h.js +0 -751
- package/dist/timeline-DH_02ysz.js +0 -421
- package/dist/toast-BTN_F9No.js +0 -468
- package/dist/toggle-CBFhM4Jh.js +0 -64
- package/dist/toggle-group-i7JPO8BM.js +0 -142
- package/dist/toolbar-U-CFEb1c.js +0 -240
- package/dist/tooltip-CgjIROUy.js +0 -410
- package/dist/top-navigation-BjIRQfkK.js +0 -739
- package/dist/tour-BTdt716T.js +0 -799
- package/dist/transfer--UOQVeKE.js +0 -596
- package/dist/tree-C6fYJqT9.js +0 -783
- package/dist/typography-B2iaigEC.js +0 -92
- package/dist/upload-CXDjxuS8.js +0 -613
- package/dist/visually-hidden-CE6u5JLW.js +0 -14
- package/dist/wizard-BxA08vXt.js +0 -815
package/dist/docs/code-block.md
CHANGED
|
@@ -44,45 +44,45 @@ Excerpt — not a complete module
|
|
|
44
44
|
|
|
45
45
|
| Name | Type | Default | Applies to | Description |
|
|
46
46
|
| --- | --- | --- | --- | --- |
|
|
47
|
-
| `code` | `string` | — | CodeBlock |
|
|
48
|
-
| `language` | `string` | text | CodeBlock | data-language
|
|
49
|
-
| `highlight` | `CodeHighlighter \| null` | — | CodeBlock |
|
|
50
|
-
| `tokens` | `CodeLine[]` | — | CodeBlock |
|
|
51
|
-
| `title` | `ReactNode` | — | CodeBlock |
|
|
52
|
-
| `fileName` | `string` | — | CodeBlock |
|
|
53
|
-
| `lineNumbers` | `boolean` | false | CodeBlock |
|
|
54
|
-
| `start` | `number` | 1 | CodeBlock |
|
|
55
|
-
| `marks` | `CodeMarks` | — | CodeBlock | highlight, add, remove, focus, error, warning —
|
|
56
|
-
| `wrap` | `boolean` | — | CodeBlock |
|
|
57
|
-
| `defaultWrap` | `boolean` | false | CodeBlock |
|
|
58
|
-
| `collapseAfter` | `number` | — | CodeBlock |
|
|
59
|
-
| `revealed` | `boolean` | — | CodeBlock |
|
|
60
|
-
| `defaultRevealed` | `boolean` | false | CodeBlock |
|
|
61
|
-
| `maxLines` | `number` | — | CodeBlock |
|
|
62
|
-
| `copy` | `boolean` | true | CodeBlock |
|
|
63
|
-
| `copyRemoved` | `boolean` | false | CodeBlock |
|
|
64
|
-
| `loading` | `boolean` | false | CodeBlock | Skeletons
|
|
65
|
-
| `tabSize` | `number` | 2 | CodeBlock |
|
|
66
|
-
| `messages` | `PartialMessages<CodeBlockMessages>` | — | CodeBlock |
|
|
67
|
-
| `renderLine` | `(props) => ReactNode` | — | CodeBlock |
|
|
68
|
-
| `renderToken` | `(token, index, line) => ReactNode` | — | CodeBlock |
|
|
69
|
-
| `actions` | `ReactNode` | — | CodeBlock |
|
|
70
|
-
| `preProps` | `ComponentProps<'pre'>` | — | CodeBlock |
|
|
47
|
+
| `code` | `string` | — | CodeBlock | The source, as text. Never HTML |
|
|
48
|
+
| `language` | `string` | text | CodeBlock | data-language and class="language-<x>" |
|
|
49
|
+
| `highlight` | `CodeHighlighter \| null` | — | CodeBlock | The engine; null refuses the provider’s |
|
|
50
|
+
| `tokens` | `CodeLine[]` | — | CodeBlock | Lines the consumer already tokenized |
|
|
51
|
+
| `title` | `ReactNode` | — | CodeBlock | The file name in the header, and the region name |
|
|
52
|
+
| `fileName` | `string` | — | CodeBlock | The name for the glyph, when title is not a string |
|
|
53
|
+
| `lineNumbers` | `boolean` | false | CodeBlock | The counter in the gutter |
|
|
54
|
+
| `start` | `number` | 1 | CodeBlock | The number of the first line |
|
|
55
|
+
| `marks` | `CodeMarks` | — | CodeBlock | highlight, add, remove, focus, error, warning — ranges "1,4-6" or lists |
|
|
56
|
+
| `wrap` | `boolean` | — | CodeBlock | Present means controlled |
|
|
57
|
+
| `defaultWrap` | `boolean` | false | CodeBlock | Where it starts, read once |
|
|
58
|
+
| `collapseAfter` | `number` | — | CodeBlock | Visible lines before the reveal control |
|
|
59
|
+
| `revealed` | `boolean` | — | CodeBlock | Present means controlled |
|
|
60
|
+
| `defaultRevealed` | `boolean` | false | CodeBlock | Where it starts, read once |
|
|
61
|
+
| `maxLines` | `number` | — | CodeBlock | Lines before the body scrolls |
|
|
62
|
+
| `copy` | `boolean` | true | CodeBlock | The copy control |
|
|
63
|
+
| `copyRemoved` | `boolean` | false | CodeBlock | Keeps the removed lines in the copy |
|
|
64
|
+
| `loading` | `boolean` | false | CodeBlock | Skeletons at the height of six lines, aria-busy, no copy |
|
|
65
|
+
| `tabSize` | `number` | 2 | CodeBlock | Width of a tab, for the continuation indent |
|
|
66
|
+
| `messages` | `PartialMessages<CodeBlockMessages>` | — | CodeBlock | The family’s words over the current locale, key by key |
|
|
67
|
+
| `renderLine` | `(props) => ReactNode` | — | CodeBlock | Replaces the token run of one line |
|
|
68
|
+
| `renderToken` | `(token, index, line) => ReactNode` | — | CodeBlock | Replaces one token |
|
|
69
|
+
| `actions` | `ReactNode` | — | CodeBlock | Consumer controls next to copy and wrap |
|
|
70
|
+
| `preProps` | `ComponentProps<'pre'>` | — | CodeBlock | Reach the pre |
|
|
71
71
|
| `ref` | `Ref<CodeBlockHandle>` | — | CodeBlock | copy(), scrollToLine(n), root |
|
|
72
|
-
| `renderLine, renderToken` | `
|
|
73
|
-
| `actions` | `ReactNode` | — | CodeBlock |
|
|
74
|
-
| `CodeBlockDefaultsProvider` | `highlight \| lineNumbers \| copy` | — |
|
|
75
|
-
| `Tabs` | `
|
|
76
|
-
| `onKeyDown, id, aria-*, data-*` | `props
|
|
72
|
+
| `renderLine, renderToken` | `functions` | — | CodeBlock | The line or the token the application’s way; the gutter stays the family’s |
|
|
73
|
+
| `actions` | `ReactNode` | — | CodeBlock | A "Run" or an "Open in editor" next to the controls |
|
|
74
|
+
| `CodeBlockDefaultsProvider` | `highlight \| lineNumbers \| copy` | — | Application | The engine loaded once, for every block below; a prop on the block wins |
|
|
75
|
+
| `Tabs` | `composition` | — | around | Several files: one CodeBlock per Tabs.Panel |
|
|
76
|
+
| `onKeyDown, id, aria-*, data-*` | `native props` | — | CodeBlock | Reach the root; the consumer’s handler runs first |
|
|
77
77
|
|
|
78
78
|
## Events
|
|
79
79
|
|
|
80
80
|
| Name | Payload | When |
|
|
81
81
|
| --- | --- | --- |
|
|
82
|
-
| `onWrapChange` | `(wrap: boolean, request)` |
|
|
83
|
-
| `onRevealedChange` | `(revealed: boolean, request)` |
|
|
84
|
-
| `onCopy` | `({ value, copied, reason, source })` |
|
|
85
|
-
| `onHighlightError` | `(error: unknown)` |
|
|
82
|
+
| `onWrapChange` | `(wrap: boolean, request)` | Before the lines wrap or unwrap: pointer, keyboard or programmatic; cancelling moves nothing. |
|
|
83
|
+
| `onRevealedChange` | `(revealed: boolean, request)` | Before the block reveals or folds the hidden lines: pointer, keyboard, escape or programmatic. |
|
|
84
|
+
| `onCopy` | `({ value, copied, reason, source })` | After the control, or the handle, writes to the clipboard. copied is false when the platform refused. |
|
|
85
|
+
| `onHighlightError` | `(error: unknown)` | When the engine rejects. The plain text stays. |
|
|
86
86
|
|
|
87
87
|
## Axes and defaults
|
|
88
88
|
|
|
@@ -94,11 +94,11 @@ Excerpt — not a complete module
|
|
|
94
94
|
|
|
95
95
|
## Rules
|
|
96
96
|
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
97
|
+
- The block has no role: it is text, read as text. Carbon’s role="textbox" with aria-readonly on a block nobody edits is refused in writing in the contract.
|
|
98
|
+
- The body is a scroll-area: role="region", tabindex="0" and a name — the title, then aria-label, then "Code" — only while the code overflows, which is what SC 2.1.1 and scrollable-region-focusable ask for. The scroll keys are the platform’s; the family writes none.
|
|
99
|
+
- The gutter of numbers and signs is aria-hidden and user-select: none: a screen reader hears the code and not a count, and a selection across the block copies code and nothing else.
|
|
100
|
+
- The copy control announces "Copied" or "Copy failed" through the shared live-announcer and swaps the glyph as well as the color; the wrap control is aria-pressed; the reveal control carries aria-expanded and aria-controls pointing to the body.
|
|
101
|
+
- Engine HTML never enters: the tokens are text in spans, and a <script> in a sample is the six characters it is.
|
|
102
102
|
|
|
103
103
|
## Tokens
|
|
104
104
|
|
|
@@ -106,9 +106,9 @@ Excerpt — not a complete module
|
|
|
106
106
|
|
|
107
107
|
## Examples
|
|
108
108
|
|
|
109
|
-
###
|
|
109
|
+
### Text first, tokens when they arrive
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
The block draws the plain text on the first paint and swaps in the tokens line by line when the engine answers: the height does not change, because each line is a row of the grid. The colors are the theme’s --slotted-code-* scale, and change with the scheme.
|
|
112
112
|
|
|
113
113
|
Excerpt — not a complete module
|
|
114
114
|
|
|
@@ -120,9 +120,9 @@ Excerpt — not a complete module
|
|
|
120
120
|
/>;
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
### Prism
|
|
123
|
+
### Prism and Shiki come in through the mappings
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
The family loads no grammar. fromPrismTokens folds the standard Prism names onto the twelve scopes; fromShikiTokens reads the last TextMate scope of each token. Engine HTML never enters: what arrives is text in spans.
|
|
126
126
|
|
|
127
127
|
Excerpt — not a complete module
|
|
128
128
|
|
|
@@ -134,9 +134,9 @@ const shiki = async (code, lang) =>
|
|
|
134
134
|
);
|
|
135
135
|
```
|
|
136
136
|
|
|
137
|
-
###
|
|
137
|
+
### Line numbers
|
|
138
138
|
|
|
139
|
-
lineNumbers
|
|
139
|
+
lineNumbers draws a counter in a gutter wide enough for the last number, measured in ch; start says where it begins. The gutter is aria-hidden and user-select: none, so a selection across the block copies code and nothing else.
|
|
140
140
|
|
|
141
141
|
Excerpt — not a complete module
|
|
142
142
|
|
|
@@ -144,9 +144,9 @@ Excerpt — not a complete module
|
|
|
144
144
|
<CodeBlock code={source} language="ts" lineNumbers start={98} />;
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
-
###
|
|
147
|
+
### Marked lines
|
|
148
148
|
|
|
149
|
-
marks
|
|
149
|
+
marks takes ranges "1,4-6" or lists of numbers: highlight tints with the accent and a bar at the edge; error and warning with danger and warning. The tint is the tone’s text color at 7.5%, so no scope falls below 4.5:1.
|
|
150
150
|
|
|
151
151
|
Excerpt — not a complete module
|
|
152
152
|
|
|
@@ -154,9 +154,9 @@ Excerpt — not a complete module
|
|
|
154
154
|
<CodeBlock code={source} language="sh" marks={{ error: '3', highlight: '1', warning: [4] }} />;
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
###
|
|
157
|
+
### A diff
|
|
158
158
|
|
|
159
|
-
add
|
|
159
|
+
add and remove tint with success and danger and write + and − in the gutter, by CSS. The copy control leaves the removed lines out, because the code after the change is what gets pasted; copyRemoved keeps them.
|
|
160
160
|
|
|
161
161
|
Excerpt — not a complete module
|
|
162
162
|
|
|
@@ -164,9 +164,9 @@ Excerpt — not a complete module
|
|
|
164
164
|
<CodeBlock code={source} language="css" lineNumbers marks={{ add: '4-6', remove: '2-3' }} />;
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
###
|
|
167
|
+
### Focus on one part of the block
|
|
168
168
|
|
|
169
|
-
focus
|
|
169
|
+
focus dims and blurs the lines outside the range; the block lifts the veil with the pointer over it or focus inside, so whoever wants the rest gets it. Under reduced-motion the blur goes and the dimming stays, because the dimming is the information.
|
|
170
170
|
|
|
171
171
|
Excerpt — not a complete module
|
|
172
172
|
|
|
@@ -174,9 +174,9 @@ Excerpt — not a complete module
|
|
|
174
174
|
<CodeBlock code={source} language="json" marks={{ focus: '3-6' }} />;
|
|
175
175
|
```
|
|
176
176
|
|
|
177
|
-
###
|
|
177
|
+
### Wrapping long lines
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
The wrap control appears only while a line overflows — the Docusaurus rule — and is a pressed button. The continuation of a wrapped line indents to the code’s own indent, measured once per line in ch.
|
|
180
180
|
|
|
181
181
|
Excerpt — not a complete module
|
|
182
182
|
|
|
@@ -189,9 +189,9 @@ Excerpt — not a complete module
|
|
|
189
189
|
/>;
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
###
|
|
192
|
+
### A named file
|
|
193
193
|
|
|
194
|
-
title
|
|
194
|
+
title puts up the header with the name in mono, the glyph of the file kind — a text sheet for a .ts, a table sheet for a .csv — and the language at the end. The title is also the name of the scroll region.
|
|
195
195
|
|
|
196
196
|
Excerpt — not a complete module
|
|
197
197
|
|
|
@@ -199,9 +199,9 @@ Excerpt — not a complete module
|
|
|
199
199
|
<CodeBlock code={rows} language="csv" title="orders-2026-09.csv" />;
|
|
200
200
|
```
|
|
201
201
|
|
|
202
|
-
###
|
|
202
|
+
### Folded behind "Show more"
|
|
203
203
|
|
|
204
|
-
collapseAfter
|
|
204
|
+
collapseAfter hides what goes past n lines behind a control; the last visible line fades into it. revealed is the state model; Escape inside the revealed block folds it and keeps focus. The hidden lines stay in the DOM and in a selection.
|
|
205
205
|
|
|
206
206
|
Excerpt — not a complete module
|
|
207
207
|
|
|
@@ -214,9 +214,9 @@ Excerpt — not a complete module
|
|
|
214
214
|
/>;
|
|
215
215
|
```
|
|
216
216
|
|
|
217
|
-
###
|
|
217
|
+
### Scrolling past a maximum
|
|
218
218
|
|
|
219
|
-
maxLines
|
|
219
|
+
maxLines limits the body height and the scroll-area scrolls the rest, with the region named and reachable by Tab. It composes with collapseAfter: a block folded at eight and, revealed, scrolling past forty.
|
|
220
220
|
|
|
221
221
|
Excerpt — not a complete module
|
|
222
222
|
|
|
@@ -224,19 +224,19 @@ Excerpt — not a complete module
|
|
|
224
224
|
<CodeBlock code={log} language="text" lineNumbers maxLines={12} />;
|
|
225
225
|
```
|
|
226
226
|
|
|
227
|
-
###
|
|
227
|
+
### Copying
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
The control writes the code the consumer gave, never the DOM text: no numbers, no signs, no wraps. When done, the check stays two seconds in place of the sheets and "Copied" is announced; copy={false} removes the control; the handle copies without it.
|
|
230
230
|
|
|
231
231
|
Excerpt — not a complete module
|
|
232
232
|
|
|
233
233
|
```tsx
|
|
234
|
-
<CodeBlock code={source} onCopy={(request) => request.copied && toast('
|
|
234
|
+
<CodeBlock code={source} onCopy={(request) => request.copied && toast('Copied')} />;
|
|
235
235
|
```
|
|
236
236
|
|
|
237
|
-
###
|
|
237
|
+
### Code on the way, and no code
|
|
238
238
|
|
|
239
|
-
loading
|
|
239
|
+
loading draws the frame at the height of six lines with skeletons inside and aria-busy, without a copy control — not a spinner, which is for a region that already has content. An empty string is an empty line with its number.
|
|
240
240
|
|
|
241
241
|
Excerpt — not a complete module
|
|
242
242
|
|
|
@@ -244,9 +244,9 @@ Excerpt — not a complete module
|
|
|
244
244
|
<CodeBlock code="" loading title="deploy.log" />;
|
|
245
245
|
```
|
|
246
246
|
|
|
247
|
-
###
|
|
247
|
+
### Content the family did not choose
|
|
248
248
|
|
|
249
|
-
|
|
249
|
+
A 400-character line scrolls and, under wrap, breaks inside an indivisible token instead of escaping the box; Arabic code on an RTL page reads from left to right; a <script> in the sample is six characters.
|
|
250
250
|
|
|
251
251
|
Excerpt — not a complete module
|
|
252
252
|
|
|
@@ -254,9 +254,9 @@ Excerpt — not a complete module
|
|
|
254
254
|
<CodeBlock code={'<script>alert(1)</script>'} language="html" />;
|
|
255
255
|
```
|
|
256
256
|
|
|
257
|
-
###
|
|
257
|
+
### Composition
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
Several files are tabs with one CodeBlock per panel; a consumer action goes in actions next to copy; renderToken draws a token the application’s way; CodeBlockDefaultsProvider hands the engine once to every block on the page.
|
|
260
260
|
|
|
261
261
|
Excerpt — not a complete module
|
|
262
262
|
|
|
@@ -267,14 +267,14 @@ Excerpt — not a complete module
|
|
|
267
267
|
</CodeBlockDefaultsProvider>;
|
|
268
268
|
```
|
|
269
269
|
|
|
270
|
-
###
|
|
270
|
+
### Keyboard
|
|
271
271
|
|
|
272
|
-
Tab: copy, wrap, reveal,
|
|
272
|
+
Tab: copy, wrap, reveal, and the body when it overflows. In the body the arrows, Page, Home, End and Space are the platform’s; Enter and Space on the controls; Escape in a revealed block folds it and keeps focus.
|
|
273
273
|
|
|
274
274
|
Excerpt — not a complete module
|
|
275
275
|
|
|
276
276
|
```tsx
|
|
277
|
-
// "group.ts, region" —
|
|
278
|
-
//
|
|
277
|
+
// "group.ts, region" — the title, because the body is a named region only
|
|
278
|
+
// while the code overflows.
|
|
279
279
|
<CodeBlock code={wide} language="ts" title="group.ts" />;
|
|
280
280
|
```
|
|
@@ -240,6 +240,13 @@
|
|
|
240
240
|
"appliesTo": "CurrencyField",
|
|
241
241
|
"description": "Overrides how many fraction digits the amount is written with, for a unit price quoted finer than the currency’s cent"
|
|
242
242
|
},
|
|
243
|
+
{
|
|
244
|
+
"name": "unit",
|
|
245
|
+
"type": "'major' | 'minor'",
|
|
246
|
+
"defaultValue": "major",
|
|
247
|
+
"appliesTo": "CurrencyField, CurrencyFieldDefaultsProvider",
|
|
248
|
+
"description": "The unit value, defaultValue, min, max, the steps, stepFrom, onValueChange and the submitted amount are in: major is 12.34, minor the integer 1234 of the currency’s minor unit, which fractionDigits decides when set"
|
|
249
|
+
},
|
|
243
250
|
{
|
|
244
251
|
"name": "min",
|
|
245
252
|
"type": "number",
|
|
@@ -50,6 +50,7 @@ Excerpt — not a complete module
|
|
|
50
50
|
| `locale` | `string` | the language in force | CurrencyField | BCP 47. It decides the separators, where the symbol goes and the numbering system — never the symbol itself, which is the currency’s |
|
|
51
51
|
| `format` | `Intl.NumberFormatOptions` | — | CurrencyField | Any other Intl option: currencySign for accounting parentheses, signDisplay, useGrouping, roundingMode. Every key here wins over the family’s own; style and currency are the family’s |
|
|
52
52
|
| `fractionDigits` | `number` | the currency’s minor units | CurrencyField | Overrides how many fraction digits the amount is written with, for a unit price quoted finer than the currency’s cent |
|
|
53
|
+
| `unit` | `'major' \| 'minor'` | major | CurrencyField, CurrencyFieldDefaultsProvider | The unit value, defaultValue, min, max, the steps, stepFrom, onValueChange and the submitted amount are in: major is 12.34, minor the integer 1234 of the currency’s minor unit, which fractionDigits decides when set |
|
|
53
54
|
| `min` | `number` | — | CurrencyField | The smallest amount the control holds, in major units. It disables the decrement button at the bound, gives Home somewhere to go, and is the one thing that refuses a debit: min={0} is why there is no allowNegative |
|
|
54
55
|
| `max` | `number` | — | CurrencyField | The largest amount the control holds. It disables the increment button at the bound and gives End somewhere to go |
|
|
55
56
|
| `step` | `number` | 1 | CurrencyField | What the arrows and the two buttons move by, in major units: one real, not one centavo |
|
|
@@ -2109,7 +2109,7 @@ Excerpt — not a complete module
|
|
|
2109
2109
|
|
|
2110
2110
|
### Load more
|
|
2111
2111
|
|
|
2112
|
-
With an unknown total the footer states the range without one
|
|
2112
|
+
With an unknown total the footer states the range without one. onLoadMore is called on its own as the reader nears the end, and the footer says a page is loading; it offers a control only to retry a page that failed (loadMoreFailed). loadMoreTrigger="button" asks only from a Load more control, "both" does the two.
|
|
2113
2113
|
|
|
2114
2114
|
Excerpt — not a complete module
|
|
2115
2115
|
|
package/dist/docs/data-grid.json
CHANGED
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"skeletonRows": 8,
|
|
99
99
|
"filterDebounce": 300,
|
|
100
100
|
"loadMoreThreshold": 20,
|
|
101
|
+
"loadMoreTrigger": "scroll",
|
|
101
102
|
"pageSizes": [
|
|
102
103
|
25,
|
|
103
104
|
50,
|
|
@@ -496,7 +497,7 @@
|
|
|
496
497
|
"type": "GridColumn<Row>[]",
|
|
497
498
|
"defaultValue": "—",
|
|
498
499
|
"appliesTo": "DataGrid",
|
|
499
|
-
"description": "The column model: id, label, description, kind, accessor, format, compare, width, minWidth, maxWidth, flex, priority, sortable, filterable, searchable, editable, resizable, reorderable, hideable, rowHeader, options, aggregate, validate, parse — and help, a node for the column’s help popover."
|
|
500
|
+
"description": "The column model: id, label, description, kind, accessor, format, compare, width, minWidth, maxWidth, flex, priority, sortable, filterable, searchable, editable, resizable, reorderable, hideable, rowHeader, pinned (end by default for kind actions), options, aggregate, validate, parse — and help, a node for the column’s help popover."
|
|
500
501
|
},
|
|
501
502
|
{
|
|
502
503
|
"name": "description",
|
|
@@ -552,7 +553,7 @@
|
|
|
552
553
|
"type": "boolean",
|
|
553
554
|
"defaultValue": "—",
|
|
554
555
|
"appliesTo": "DataGrid",
|
|
555
|
-
"description": "Whether a page past this one exists when the total is unknown;
|
|
556
|
+
"description": "Whether a page past this one exists when the total is unknown; loadMoreTrigger decides what asks for it."
|
|
556
557
|
},
|
|
557
558
|
{
|
|
558
559
|
"name": "loading",
|
|
@@ -904,6 +905,20 @@
|
|
|
904
905
|
"appliesTo": "DataGrid",
|
|
905
906
|
"description": "Asked for the next page when hasMore is true."
|
|
906
907
|
},
|
|
908
|
+
{
|
|
909
|
+
"name": "loadMoreTrigger",
|
|
910
|
+
"type": "'scroll' | 'button' | 'both'",
|
|
911
|
+
"defaultValue": "scroll",
|
|
912
|
+
"appliesTo": "DataGrid",
|
|
913
|
+
"description": "What asks for the next page: nearing the end, with a loading status in the footer; a Load more control; or both."
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"name": "loadMoreFailed",
|
|
917
|
+
"type": "boolean",
|
|
918
|
+
"defaultValue": "false",
|
|
919
|
+
"appliesTo": "DataGrid",
|
|
920
|
+
"description": "The last page asked for failed: the automatic request stops and the footer offers Try again."
|
|
921
|
+
},
|
|
907
922
|
{
|
|
908
923
|
"name": "onRetry",
|
|
909
924
|
"type": "() => void",
|
|
@@ -1086,7 +1101,7 @@
|
|
|
1086
1101
|
"type": "component",
|
|
1087
1102
|
"defaultValue": "—",
|
|
1088
1103
|
"appliesTo": "Application",
|
|
1089
|
-
"description": "Sets variant, striped, stickyHeader, stickyTo, selectionMode, editMode, filterRow, virtualize, rowHeight, columnOverflow, overscan, pageSizes, filterDebounce, loadMoreThreshold and skeletonRows once for a subtree. A grid that states one itself still wins. Its words and its locale come from the language in force (SlottedProvider)."
|
|
1104
|
+
"description": "Sets variant, striped, stickyHeader, stickyTo, selectionMode, editMode, filterRow, virtualize, rowHeight, columnOverflow, overscan, pageSizes, filterDebounce, loadMoreThreshold, loadMoreTrigger and skeletonRows once for a subtree. A grid that states one itself still wins. Its words and its locale come from the language in force (SlottedProvider)."
|
|
1090
1105
|
},
|
|
1091
1106
|
{
|
|
1092
1107
|
"name": "@slotted/core/grid",
|
|
@@ -1207,7 +1222,9 @@
|
|
|
1207
1222
|
"--slotted-control-font-size-md",
|
|
1208
1223
|
"--slotted-control-font-size-sm",
|
|
1209
1224
|
"--slotted-control-gap-md",
|
|
1225
|
+
"--slotted-control-height-lg",
|
|
1210
1226
|
"--slotted-control-height-md",
|
|
1227
|
+
"--slotted-control-height-sm",
|
|
1211
1228
|
"--slotted-control-icon-size-md",
|
|
1212
1229
|
"--slotted-control-inner-size-sm",
|
|
1213
1230
|
"--slotted-control-invalid-edge-width",
|
|
@@ -1526,7 +1543,7 @@
|
|
|
1526
1543
|
{
|
|
1527
1544
|
"id": "load-more",
|
|
1528
1545
|
"title": "Load more",
|
|
1529
|
-
"note": "With an unknown total the footer states the range without one
|
|
1546
|
+
"note": "With an unknown total the footer states the range without one. onLoadMore is called on its own as the reader nears the end, and the footer says a page is loading; it offers a control only to retry a page that failed (loadMoreFailed). loadMoreTrigger=\"button\" asks only from a Load more control, \"both\" does the two.",
|
|
1530
1547
|
"language": "tsx",
|
|
1531
1548
|
"source": "<DataGrid\n hasMore={hasMore}\n onLoadMore={fetchMore}\n query={{ ...emptyQuery(), page: { cursor, size: 50 } }}\n rows={rows}\n/>;\n",
|
|
1532
1549
|
"verdict": "excerpt"
|
package/dist/docs/data-grid.md
CHANGED
|
@@ -208,7 +208,7 @@ See [data-grid.props.md](./data-grid.props.md).
|
|
|
208
208
|
|
|
209
209
|
## Tokens
|
|
210
210
|
|
|
211
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-data-grid-band-surface`, `--slotted-data-grid-block-size`, `--slotted-data-grid-border-color`, `--slotted-data-grid-border-color-strong`, `--slotted-data-grid-border-width`, `--slotted-data-grid-cell-padding-block`, `--slotted-data-grid-cell-padding-inline`, `--slotted-data-grid-changed-surface`, `--slotted-data-grid-color`, `--slotted-data-grid-color-muted`, `--slotted-data-grid-control-radius`, `--slotted-data-grid-cursor-color`, `--slotted-data-grid-filter-operator-size`, `--slotted-data-grid-filter-panel-size`, `--slotted-data-grid-filter-panel-size-date`, `--slotted-data-grid-filter-panel-size-datetime`, `--slotted-data-grid-font-family`, `--slotted-data-grid-font-size`, `--slotted-data-grid-gap`, `--slotted-data-grid-head-block-size`, `--slotted-data-grid-header-surface`, `--slotted-data-grid-header-surface-hover`, `--slotted-data-grid-icon-size`, `--slotted-data-grid-indent`, `--slotted-data-grid-pin-shadow-color`, `--slotted-data-grid-pin-shadow-size`, `--slotted-data-grid-radius`, `--slotted-data-grid-range-surface`, `--slotted-data-grid-row-block-size`, `--slotted-data-grid-row-color-selected`, `--slotted-data-grid-row-max-block-size`, `--slotted-data-grid-row-surface-hover`, `--slotted-data-grid-row-surface-selected`, `--slotted-data-grid-row-surface-selected-hover`, `--slotted-data-grid-row-surface-stripe`, `--slotted-data-grid-shadow`, `--slotted-data-grid-sticky-offset`, `--slotted-data-grid-sticky-offset-end`, `--slotted-data-grid-surface`, `--slotted-disabled-foreground`, `--slotted-duration-long`, `--slotted-duration-loop`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-popover-gap`, `--slotted-popover-padding-block-sm`, `--slotted-popover-padding-inline-sm`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-surface`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
211
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-data-grid-band-surface`, `--slotted-data-grid-block-size`, `--slotted-data-grid-border-color`, `--slotted-data-grid-border-color-strong`, `--slotted-data-grid-border-width`, `--slotted-data-grid-cell-padding-block`, `--slotted-data-grid-cell-padding-inline`, `--slotted-data-grid-changed-surface`, `--slotted-data-grid-color`, `--slotted-data-grid-color-muted`, `--slotted-data-grid-control-radius`, `--slotted-data-grid-cursor-color`, `--slotted-data-grid-filter-operator-size`, `--slotted-data-grid-filter-panel-size`, `--slotted-data-grid-filter-panel-size-date`, `--slotted-data-grid-filter-panel-size-datetime`, `--slotted-data-grid-font-family`, `--slotted-data-grid-font-size`, `--slotted-data-grid-gap`, `--slotted-data-grid-head-block-size`, `--slotted-data-grid-header-surface`, `--slotted-data-grid-header-surface-hover`, `--slotted-data-grid-icon-size`, `--slotted-data-grid-indent`, `--slotted-data-grid-pin-shadow-color`, `--slotted-data-grid-pin-shadow-size`, `--slotted-data-grid-radius`, `--slotted-data-grid-range-surface`, `--slotted-data-grid-row-block-size`, `--slotted-data-grid-row-color-selected`, `--slotted-data-grid-row-max-block-size`, `--slotted-data-grid-row-surface-hover`, `--slotted-data-grid-row-surface-selected`, `--slotted-data-grid-row-surface-selected-hover`, `--slotted-data-grid-row-surface-stripe`, `--slotted-data-grid-shadow`, `--slotted-data-grid-sticky-offset`, `--slotted-data-grid-sticky-offset-end`, `--slotted-data-grid-surface`, `--slotted-disabled-foreground`, `--slotted-duration-long`, `--slotted-duration-loop`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-popover-gap`, `--slotted-popover-padding-block-sm`, `--slotted-popover-padding-inline-sm`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-surface`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
212
212
|
|
|
213
213
|
## Examples
|
|
214
214
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| --- | --- | --- | --- | --- |
|
|
10
10
|
| `rows` | `readonly Row[]` | — | DataGrid | The records; the grid never mutates them. Left out when a dataSource answers for them. |
|
|
11
11
|
| `rowKey` | `keyof Row \| (row) => string` | — | DataGrid | A field name or a function: the key every state model names a row by. |
|
|
12
|
-
| `columns` | `GridColumn<Row>[]` | — | DataGrid | The column model: id, label, description, kind, accessor, format, compare, width, minWidth, maxWidth, flex, priority, sortable, filterable, searchable, editable, resizable, reorderable, hideable, rowHeader, options, aggregate, validate, parse — and help, a node for the column’s help popover. |
|
|
12
|
+
| `columns` | `GridColumn<Row>[]` | — | DataGrid | The column model: id, label, description, kind, accessor, format, compare, width, minWidth, maxWidth, flex, priority, sortable, filterable, searchable, editable, resizable, reorderable, hideable, rowHeader, pinned (end by default for kind actions), options, aggregate, validate, parse — and help, a node for the column’s help popover. |
|
|
13
13
|
| `description` | `string` | — | DataGridColumn | What the column is: the header’s accessible description, the caption atop its menu and the first line of its help popover. |
|
|
14
14
|
| `help` | `ReactNode` | — | DataGridColumn | The column’s own help, under the description in the popover the column-help button opens. Its presence alone draws the button. |
|
|
15
15
|
| `priority` | `number` | — | DataGridColumn | The lower, the longer the column stays when the frame is too narrow. A column without one leaves before every numbered one; the identity column and an actions column never leave. |
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
| `columnGroups` | `GridColumnGroup[]` | — | DataGrid | Headings spanning columns, drawn as a row above the names. |
|
|
18
18
|
| `mode` | `'client' \| 'server'` | inferred | DataGrid | client applies the query to rows; server draws rows as given. server when totalCount or hasMore is present. |
|
|
19
19
|
| `totalCount` | `number` | — | DataGrid | The whole set’s size in server mode; aria-rowcount and the range read it. |
|
|
20
|
-
| `hasMore` | `boolean` | — | DataGrid | Whether a page past this one exists when the total is unknown;
|
|
20
|
+
| `hasMore` | `boolean` | — | DataGrid | Whether a page past this one exists when the total is unknown; loadMoreTrigger decides what asks for it. |
|
|
21
21
|
| `loading` | `boolean` | false | DataGrid | Skeleton rows with no rows to keep; aria-busy and a dimmed body over rows already shown. |
|
|
22
22
|
| `error` | `string \| null` | — | DataGrid | The message of a failed load; draws the error state with Try again when onRetry is set. |
|
|
23
23
|
| `disabledKeys` | `string[]` | — | DataGrid | Rows that are neither selectable nor editable, drawn with data-disabled. |
|
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
| `highlightChanges` | `boolean \| number` | false | DataGrid | Marks a mounted cell whose value changed between two rows, for the stated milliseconds (true is 1200). |
|
|
69
69
|
| `loadMoreThreshold` | `number` | 20 | DataGrid | Rows left below the window before onLoadMore is called. |
|
|
70
70
|
| `onLoadMore` | `() => void` | — | DataGrid | Asked for the next page when hasMore is true. |
|
|
71
|
+
| `loadMoreTrigger` | `'scroll' \| 'button' \| 'both'` | scroll | DataGrid | What asks for the next page: nearing the end, with a loading status in the footer; a Load more control; or both. |
|
|
72
|
+
| `loadMoreFailed` | `boolean` | false | DataGrid | The last page asked for failed: the automatic request stops and the footer offers Try again. |
|
|
71
73
|
| `onRetry` | `() => void` | — | DataGrid | The error state’s Try again. |
|
|
72
74
|
| `skeletonRows` | `number` | 8 | DataGrid | Rows the first load draws. |
|
|
73
75
|
| `pageSizes` | `number[]` | 25,50,100 | DataGrid | The sizes a page-size control in the footer offers, read through useDataGridDefaults. |
|
|
@@ -93,7 +95,7 @@
|
|
|
93
95
|
| `align` | `'start' \| 'center' \| 'end'` | start | GridColumn | Where the value sits; a number column sits at the end unless told otherwise. |
|
|
94
96
|
| `numeric` | `boolean` | false | GridColumn | Tabular figures and end alignment; true for kind number. |
|
|
95
97
|
| `text` | `'wrap' \| 'truncate' \| 'nowrap'` | truncate | GridColumn | What a long value does. |
|
|
96
|
-
| `DataGridDefaultsProvider` | `component` | — | Application | Sets variant, striped, stickyHeader, stickyTo, selectionMode, editMode, filterRow, virtualize, rowHeight, columnOverflow, overscan, pageSizes, filterDebounce, loadMoreThreshold and skeletonRows once for a subtree. A grid that states one itself still wins. Its words and its locale come from the language in force (SlottedProvider). |
|
|
98
|
+
| `DataGridDefaultsProvider` | `component` | — | Application | Sets variant, striped, stickyHeader, stickyTo, selectionMode, editMode, filterRow, virtualize, rowHeight, columnOverflow, overscan, pageSizes, filterDebounce, loadMoreThreshold, loadMoreTrigger and skeletonRows once for a subtree. A grid that states one itself still wins. Its words and its locale come from the language in force (SlottedProvider). |
|
|
97
99
|
| `@slotted/core/grid` | `module` | — | Application | applyQuery, emptyQuery, withSortPress, withColumnFilter, withSearch, withPageIndex, withGroup, toGridParams, fromGridParams, normalizeColumnState, serializeColumnState, parseColumnState: the engine the grid runs on, for a server mock, a URL and a saved view. |
|
|
98
100
|
| `renderCell, renderEditor, renderHeader, renderDetail, renderGroup, renderEmpty, renderFilterOperand` | `render props` | — | DataGrid | Every surface a consumer replaces, per grid or per column through cellRenderers and editorRenderers. row, cell, head and body are fixed: the layout and the roles are theirs. |
|
|
99
101
|
| `footer` | `ReactNode` | — | DataGrid | Pagination, a page-size select, a count: the consumer’s own controls in the bar the grid draws. |
|