@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
|
@@ -82,103 +82,103 @@
|
|
|
82
82
|
"part": "root",
|
|
83
83
|
"element": "div",
|
|
84
84
|
"required": true,
|
|
85
|
-
"purpose": "
|
|
85
|
+
"purpose": "The frame: the sunken background, the edge and the radius that prose already draws on a fence. Carries data-ui=\"code-block\", data-language, data-wrap, data-revealed, data-line-numbers, data-loading, data-marks and the four runtime values."
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"part": "header",
|
|
89
89
|
"element": "div",
|
|
90
90
|
"required": false,
|
|
91
|
-
"purpose": "
|
|
91
|
+
"purpose": "The file name, the language at the end and the controls. Exists when there is a title, a language, copy or consumer actions. Keeps the page direction."
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"part": "icon",
|
|
95
95
|
"element": "span",
|
|
96
96
|
"required": false,
|
|
97
|
-
"purpose": "
|
|
97
|
+
"purpose": "The glyph of the file kind next to the title, chosen by fileKind from the name."
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"part": "title",
|
|
101
101
|
"element": "span",
|
|
102
102
|
"required": false,
|
|
103
|
-
"purpose": "
|
|
103
|
+
"purpose": "The file name, in mono, truncated with an ellipsis. It is the name of the scroll region."
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"part": "language",
|
|
107
107
|
"element": "span",
|
|
108
108
|
"required": false,
|
|
109
|
-
"purpose": "
|
|
109
|
+
"purpose": "The language in small caps, at the end of the header."
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"part": "actions",
|
|
113
113
|
"element": "div",
|
|
114
114
|
"required": false,
|
|
115
|
-
"purpose": "
|
|
115
|
+
"purpose": "The controls: the consumer’s, wrap and copy. Without a header it floats over the first line, at the end of the block."
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"part": "wrap",
|
|
119
119
|
"element": "button",
|
|
120
120
|
"required": false,
|
|
121
|
-
"purpose": "aria-pressed:
|
|
121
|
+
"purpose": "aria-pressed: wraps the lines in the box. Drawn only while a line overflows, or while it is already wrapped."
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
"part": "copy",
|
|
125
125
|
"element": "button",
|
|
126
126
|
"required": false,
|
|
127
|
-
"purpose": "
|
|
127
|
+
"purpose": "The copy control: writes the code, not the DOM, without the removed lines; data-complete for two seconds with the check in place of the sheets."
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
"part": "body",
|
|
131
131
|
"element": "div",
|
|
132
132
|
"required": true,
|
|
133
|
-
"purpose": "
|
|
133
|
+
"purpose": "A scroll-area dressed as data-ui: the named region and tab stop only while the code overflows, the platform scrollbar, the veil at the end."
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
"part": "pre",
|
|
137
137
|
"element": "pre",
|
|
138
138
|
"required": true,
|
|
139
|
-
"purpose": "white-space: pre, direction: ltr
|
|
139
|
+
"purpose": "white-space: pre, direction: ltr whatever the page, pre-wrap under data-wrap."
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"part": "code",
|
|
143
143
|
"element": "code",
|
|
144
144
|
"required": true,
|
|
145
|
-
"purpose": "class=\"language-<x>\",
|
|
145
|
+
"purpose": "class=\"language-<x>\", the convention of the HTML specification; a grid of lines."
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"part": "line",
|
|
149
149
|
"element": "span",
|
|
150
150
|
"required": true,
|
|
151
|
-
"purpose": "
|
|
151
|
+
"purpose": "A row of the grid: number, marker, text. data-line, data-mark and data-dim; --slotted-code-block-indent under wrap."
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"part": "number",
|
|
155
155
|
"element": "span",
|
|
156
156
|
"required": true,
|
|
157
|
-
"purpose": "
|
|
157
|
+
"purpose": "The number, aria-hidden and not selectable; hidden without lineNumbers, but in the DOM, so nothing moves when it is turned on."
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
"part": "marker",
|
|
161
161
|
"element": "span",
|
|
162
162
|
"required": true,
|
|
163
|
-
"purpose": "
|
|
163
|
+
"purpose": "The sign column: + and − on diff lines, written by CSS and outside any selection."
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"part": "text",
|
|
167
167
|
"element": "span",
|
|
168
168
|
"required": true,
|
|
169
|
-
"purpose": "
|
|
169
|
+
"purpose": "The token run of the line, the third column. It is what renderLine replaces."
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
"part": "token",
|
|
173
173
|
"element": "span",
|
|
174
174
|
"required": false,
|
|
175
|
-
"purpose": "
|
|
175
|
+
"purpose": "A scoped token, data-token among the twelve; a token without a scope is plain text."
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
"part": "reveal",
|
|
179
179
|
"element": "button",
|
|
180
180
|
"required": false,
|
|
181
|
-
"purpose": "\"Show n more lines\"
|
|
181
|
+
"purpose": "\"Show n more lines\" when collapseAfter hides lines; \"Show less\" when they are revealed. Escape in the revealed block folds it."
|
|
182
182
|
}
|
|
183
183
|
],
|
|
184
184
|
"api": [
|
|
@@ -187,168 +187,168 @@
|
|
|
187
187
|
"type": "string",
|
|
188
188
|
"defaultValue": "—",
|
|
189
189
|
"appliesTo": "CodeBlock",
|
|
190
|
-
"description": "
|
|
190
|
+
"description": "The source, as text. Never HTML"
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"name": "language",
|
|
194
194
|
"type": "string",
|
|
195
195
|
"defaultValue": "text",
|
|
196
196
|
"appliesTo": "CodeBlock",
|
|
197
|
-
"description": "data-language
|
|
197
|
+
"description": "data-language and class=\"language-<x>\""
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
"name": "highlight",
|
|
201
201
|
"type": "CodeHighlighter | null",
|
|
202
202
|
"defaultValue": "—",
|
|
203
203
|
"appliesTo": "CodeBlock",
|
|
204
|
-
"description": "
|
|
204
|
+
"description": "The engine; null refuses the provider’s"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"name": "tokens",
|
|
208
208
|
"type": "CodeLine[]",
|
|
209
209
|
"defaultValue": "—",
|
|
210
210
|
"appliesTo": "CodeBlock",
|
|
211
|
-
"description": "
|
|
211
|
+
"description": "Lines the consumer already tokenized"
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
"name": "title",
|
|
215
215
|
"type": "ReactNode",
|
|
216
216
|
"defaultValue": "—",
|
|
217
217
|
"appliesTo": "CodeBlock",
|
|
218
|
-
"description": "
|
|
218
|
+
"description": "The file name in the header, and the region name"
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
"name": "fileName",
|
|
222
222
|
"type": "string",
|
|
223
223
|
"defaultValue": "—",
|
|
224
224
|
"appliesTo": "CodeBlock",
|
|
225
|
-
"description": "
|
|
225
|
+
"description": "The name for the glyph, when title is not a string"
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"name": "lineNumbers",
|
|
229
229
|
"type": "boolean",
|
|
230
230
|
"defaultValue": "false",
|
|
231
231
|
"appliesTo": "CodeBlock",
|
|
232
|
-
"description": "
|
|
232
|
+
"description": "The counter in the gutter"
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
"name": "start",
|
|
236
236
|
"type": "number",
|
|
237
237
|
"defaultValue": "1",
|
|
238
238
|
"appliesTo": "CodeBlock",
|
|
239
|
-
"description": "
|
|
239
|
+
"description": "The number of the first line"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"name": "marks",
|
|
243
243
|
"type": "CodeMarks",
|
|
244
244
|
"defaultValue": "—",
|
|
245
245
|
"appliesTo": "CodeBlock",
|
|
246
|
-
"description": "highlight, add, remove, focus, error, warning —
|
|
246
|
+
"description": "highlight, add, remove, focus, error, warning — ranges \"1,4-6\" or lists"
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
"name": "wrap",
|
|
250
250
|
"type": "boolean",
|
|
251
251
|
"defaultValue": "—",
|
|
252
252
|
"appliesTo": "CodeBlock",
|
|
253
|
-
"description": "
|
|
253
|
+
"description": "Present means controlled"
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
"name": "defaultWrap",
|
|
257
257
|
"type": "boolean",
|
|
258
258
|
"defaultValue": "false",
|
|
259
259
|
"appliesTo": "CodeBlock",
|
|
260
|
-
"description": "
|
|
260
|
+
"description": "Where it starts, read once"
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"name": "collapseAfter",
|
|
264
264
|
"type": "number",
|
|
265
265
|
"defaultValue": "—",
|
|
266
266
|
"appliesTo": "CodeBlock",
|
|
267
|
-
"description": "
|
|
267
|
+
"description": "Visible lines before the reveal control"
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
"name": "revealed",
|
|
271
271
|
"type": "boolean",
|
|
272
272
|
"defaultValue": "—",
|
|
273
273
|
"appliesTo": "CodeBlock",
|
|
274
|
-
"description": "
|
|
274
|
+
"description": "Present means controlled"
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
277
|
"name": "defaultRevealed",
|
|
278
278
|
"type": "boolean",
|
|
279
279
|
"defaultValue": "false",
|
|
280
280
|
"appliesTo": "CodeBlock",
|
|
281
|
-
"description": "
|
|
281
|
+
"description": "Where it starts, read once"
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
"name": "maxLines",
|
|
285
285
|
"type": "number",
|
|
286
286
|
"defaultValue": "—",
|
|
287
287
|
"appliesTo": "CodeBlock",
|
|
288
|
-
"description": "
|
|
288
|
+
"description": "Lines before the body scrolls"
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
291
|
"name": "copy",
|
|
292
292
|
"type": "boolean",
|
|
293
293
|
"defaultValue": "true",
|
|
294
294
|
"appliesTo": "CodeBlock",
|
|
295
|
-
"description": "
|
|
295
|
+
"description": "The copy control"
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
"name": "copyRemoved",
|
|
299
299
|
"type": "boolean",
|
|
300
300
|
"defaultValue": "false",
|
|
301
301
|
"appliesTo": "CodeBlock",
|
|
302
|
-
"description": "
|
|
302
|
+
"description": "Keeps the removed lines in the copy"
|
|
303
303
|
},
|
|
304
304
|
{
|
|
305
305
|
"name": "loading",
|
|
306
306
|
"type": "boolean",
|
|
307
307
|
"defaultValue": "false",
|
|
308
308
|
"appliesTo": "CodeBlock",
|
|
309
|
-
"description": "Skeletons
|
|
309
|
+
"description": "Skeletons at the height of six lines, aria-busy, no copy"
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
"name": "tabSize",
|
|
313
313
|
"type": "number",
|
|
314
314
|
"defaultValue": "2",
|
|
315
315
|
"appliesTo": "CodeBlock",
|
|
316
|
-
"description": "
|
|
316
|
+
"description": "Width of a tab, for the continuation indent"
|
|
317
317
|
},
|
|
318
318
|
{
|
|
319
319
|
"name": "messages",
|
|
320
320
|
"type": "PartialMessages<CodeBlockMessages>",
|
|
321
321
|
"defaultValue": "—",
|
|
322
322
|
"appliesTo": "CodeBlock",
|
|
323
|
-
"description": "
|
|
323
|
+
"description": "The family’s words over the current locale, key by key"
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
"name": "renderLine",
|
|
327
327
|
"type": "(props) => ReactNode",
|
|
328
328
|
"defaultValue": "—",
|
|
329
329
|
"appliesTo": "CodeBlock",
|
|
330
|
-
"description": "
|
|
330
|
+
"description": "Replaces the token run of one line"
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
"name": "renderToken",
|
|
334
334
|
"type": "(token, index, line) => ReactNode",
|
|
335
335
|
"defaultValue": "—",
|
|
336
336
|
"appliesTo": "CodeBlock",
|
|
337
|
-
"description": "
|
|
337
|
+
"description": "Replaces one token"
|
|
338
338
|
},
|
|
339
339
|
{
|
|
340
340
|
"name": "actions",
|
|
341
341
|
"type": "ReactNode",
|
|
342
342
|
"defaultValue": "—",
|
|
343
343
|
"appliesTo": "CodeBlock",
|
|
344
|
-
"description": "
|
|
344
|
+
"description": "Consumer controls next to copy and wrap"
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
347
|
"name": "preProps",
|
|
348
348
|
"type": "ComponentProps<'pre'>",
|
|
349
349
|
"defaultValue": "—",
|
|
350
350
|
"appliesTo": "CodeBlock",
|
|
351
|
-
"description": "
|
|
351
|
+
"description": "Reach the pre"
|
|
352
352
|
}
|
|
353
353
|
],
|
|
354
354
|
"composition": [
|
|
@@ -361,68 +361,68 @@
|
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
"name": "renderLine, renderToken",
|
|
364
|
-
"type": "
|
|
364
|
+
"type": "functions",
|
|
365
365
|
"defaultValue": "—",
|
|
366
366
|
"appliesTo": "CodeBlock",
|
|
367
|
-
"description": "
|
|
367
|
+
"description": "The line or the token the application’s way; the gutter stays the family’s"
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
370
|
"name": "actions",
|
|
371
371
|
"type": "ReactNode",
|
|
372
372
|
"defaultValue": "—",
|
|
373
373
|
"appliesTo": "CodeBlock",
|
|
374
|
-
"description": "
|
|
374
|
+
"description": "A \"Run\" or an \"Open in editor\" next to the controls"
|
|
375
375
|
},
|
|
376
376
|
{
|
|
377
377
|
"name": "CodeBlockDefaultsProvider",
|
|
378
378
|
"type": "highlight | lineNumbers | copy",
|
|
379
379
|
"defaultValue": "—",
|
|
380
|
-
"appliesTo": "
|
|
381
|
-
"description": "
|
|
380
|
+
"appliesTo": "Application",
|
|
381
|
+
"description": "The engine loaded once, for every block below; a prop on the block wins"
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
"name": "Tabs",
|
|
385
|
-
"type": "
|
|
385
|
+
"type": "composition",
|
|
386
386
|
"defaultValue": "—",
|
|
387
|
-
"appliesTo": "
|
|
388
|
-
"description": "
|
|
387
|
+
"appliesTo": "around",
|
|
388
|
+
"description": "Several files: one CodeBlock per Tabs.Panel"
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
391
|
"name": "onKeyDown, id, aria-*, data-*",
|
|
392
|
-
"type": "props
|
|
392
|
+
"type": "native props",
|
|
393
393
|
"defaultValue": "—",
|
|
394
394
|
"appliesTo": "CodeBlock",
|
|
395
|
-
"description": "
|
|
395
|
+
"description": "Reach the root; the consumer’s handler runs first"
|
|
396
396
|
}
|
|
397
397
|
],
|
|
398
398
|
"events": [
|
|
399
399
|
{
|
|
400
400
|
"name": "onWrapChange",
|
|
401
401
|
"payload": "(wrap: boolean, request)",
|
|
402
|
-
"when": "
|
|
402
|
+
"when": "Before the lines wrap or unwrap: pointer, keyboard or programmatic; cancelling moves nothing."
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
405
|
"name": "onRevealedChange",
|
|
406
406
|
"payload": "(revealed: boolean, request)",
|
|
407
|
-
"when": "
|
|
407
|
+
"when": "Before the block reveals or folds the hidden lines: pointer, keyboard, escape or programmatic."
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
"name": "onCopy",
|
|
411
411
|
"payload": "({ value, copied, reason, source })",
|
|
412
|
-
"when": "
|
|
412
|
+
"when": "After the control, or the handle, writes to the clipboard. copied is false when the platform refused."
|
|
413
413
|
},
|
|
414
414
|
{
|
|
415
415
|
"name": "onHighlightError",
|
|
416
416
|
"payload": "(error: unknown)",
|
|
417
|
-
"when": "
|
|
417
|
+
"when": "When the engine rejects. The plain text stays."
|
|
418
418
|
}
|
|
419
419
|
],
|
|
420
420
|
"accessibility": [
|
|
421
|
-
"
|
|
422
|
-
"
|
|
423
|
-
"
|
|
424
|
-
"
|
|
425
|
-
"
|
|
421
|
+
"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.",
|
|
422
|
+
"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.",
|
|
423
|
+
"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.",
|
|
424
|
+
"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.",
|
|
425
|
+
"Engine HTML never enters: the tokens are text in spans, and a <script> in a sample is the six characters it is."
|
|
426
426
|
]
|
|
427
427
|
}
|
|
428
428
|
},
|
|
@@ -499,129 +499,129 @@
|
|
|
499
499
|
{
|
|
500
500
|
"id": "playground",
|
|
501
501
|
"title": "Playground",
|
|
502
|
-
"note": "
|
|
502
|
+
"note": "A TypeScript file with a title, line numbers and a highlighted range, moved by the controls below the stage.",
|
|
503
503
|
"language": "tsx",
|
|
504
504
|
"source": "<CodeBlock code={source} language=\"ts\" lineNumbers marks={{ highlight: '5-6' }} title=\"group.ts\" />;\n",
|
|
505
505
|
"verdict": "excerpt"
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
508
|
"id": "highlight",
|
|
509
|
-
"title": "
|
|
510
|
-
"note": "
|
|
509
|
+
"title": "Text first, tokens when they arrive",
|
|
510
|
+
"note": "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.",
|
|
511
511
|
"language": "tsx",
|
|
512
512
|
"source": "<CodeBlock\n code={source}\n highlight={async (code, language) => tokenise(code, language)}\n language=\"ts\"\n/>;\n",
|
|
513
513
|
"verdict": "excerpt"
|
|
514
514
|
},
|
|
515
515
|
{
|
|
516
516
|
"id": "engines",
|
|
517
|
-
"title": "Prism
|
|
518
|
-
"note": "
|
|
517
|
+
"title": "Prism and Shiki come in through the mappings",
|
|
518
|
+
"note": "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.",
|
|
519
519
|
"language": "tsx",
|
|
520
520
|
"source": "const prism = (code, lang) => fromPrismTokens(Prism.tokenize(code, Prism.languages[lang]));\nconst shiki = async (code, lang) =>\n fromShikiTokens(\n await codeToTokens(code, { includeExplanation: 'scopeName', lang, theme: 'none' }),\n );\n",
|
|
521
521
|
"verdict": "excerpt"
|
|
522
522
|
},
|
|
523
523
|
{
|
|
524
524
|
"id": "lineNumbers",
|
|
525
|
-
"title": "
|
|
526
|
-
"note": "lineNumbers
|
|
525
|
+
"title": "Line numbers",
|
|
526
|
+
"note": "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.",
|
|
527
527
|
"language": "tsx",
|
|
528
528
|
"source": "<CodeBlock code={source} language=\"ts\" lineNumbers start={98} />;\n",
|
|
529
529
|
"verdict": "excerpt"
|
|
530
530
|
},
|
|
531
531
|
{
|
|
532
532
|
"id": "marks",
|
|
533
|
-
"title": "
|
|
534
|
-
"note": "marks
|
|
533
|
+
"title": "Marked lines",
|
|
534
|
+
"note": "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.",
|
|
535
535
|
"language": "tsx",
|
|
536
536
|
"source": "<CodeBlock code={source} language=\"sh\" marks={{ error: '3', highlight: '1', warning: [4] }} />;\n",
|
|
537
537
|
"verdict": "excerpt"
|
|
538
538
|
},
|
|
539
539
|
{
|
|
540
540
|
"id": "diff",
|
|
541
|
-
"title": "
|
|
542
|
-
"note": "add
|
|
541
|
+
"title": "A diff",
|
|
542
|
+
"note": "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.",
|
|
543
543
|
"language": "tsx",
|
|
544
544
|
"source": "<CodeBlock code={source} language=\"css\" lineNumbers marks={{ add: '4-6', remove: '2-3' }} />;\n",
|
|
545
545
|
"verdict": "excerpt"
|
|
546
546
|
},
|
|
547
547
|
{
|
|
548
548
|
"id": "focus",
|
|
549
|
-
"title": "
|
|
550
|
-
"note": "focus
|
|
549
|
+
"title": "Focus on one part of the block",
|
|
550
|
+
"note": "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.",
|
|
551
551
|
"language": "tsx",
|
|
552
552
|
"source": "<CodeBlock code={source} language=\"json\" marks={{ focus: '3-6' }} />;\n",
|
|
553
553
|
"verdict": "excerpt"
|
|
554
554
|
},
|
|
555
555
|
{
|
|
556
556
|
"id": "wrap",
|
|
557
|
-
"title": "
|
|
558
|
-
"note": "
|
|
557
|
+
"title": "Wrapping long lines",
|
|
558
|
+
"note": "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.",
|
|
559
559
|
"language": "tsx",
|
|
560
560
|
"source": "<CodeBlock\n code={command}\n defaultWrap\n language=\"sh\"\n onWrapChange={(wrap, request) => log(request.reason)}\n/>;\n",
|
|
561
561
|
"verdict": "excerpt"
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
564
|
"id": "title",
|
|
565
|
-
"title": "
|
|
566
|
-
"note": "title
|
|
565
|
+
"title": "A named file",
|
|
566
|
+
"note": "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.",
|
|
567
567
|
"language": "tsx",
|
|
568
568
|
"source": "<CodeBlock code={rows} language=\"csv\" title=\"orders-2026-09.csv\" />;\n",
|
|
569
569
|
"verdict": "excerpt"
|
|
570
570
|
},
|
|
571
571
|
{
|
|
572
572
|
"id": "collapse",
|
|
573
|
-
"title": "
|
|
574
|
-
"note": "collapseAfter
|
|
573
|
+
"title": "Folded behind \"Show more\"",
|
|
574
|
+
"note": "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.",
|
|
575
575
|
"language": "tsx",
|
|
576
576
|
"source": "<CodeBlock\n code={source}\n collapseAfter={6}\n language=\"json\"\n onRevealedChange={(revealed) => track(revealed)}\n/>;\n",
|
|
577
577
|
"verdict": "excerpt"
|
|
578
578
|
},
|
|
579
579
|
{
|
|
580
580
|
"id": "maxLines",
|
|
581
|
-
"title": "
|
|
582
|
-
"note": "maxLines
|
|
581
|
+
"title": "Scrolling past a maximum",
|
|
582
|
+
"note": "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.",
|
|
583
583
|
"language": "tsx",
|
|
584
584
|
"source": "<CodeBlock code={log} language=\"text\" lineNumbers maxLines={12} />;\n",
|
|
585
585
|
"verdict": "excerpt"
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
588
|
"id": "copy",
|
|
589
|
-
"title": "
|
|
590
|
-
"note": "
|
|
589
|
+
"title": "Copying",
|
|
590
|
+
"note": "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.",
|
|
591
591
|
"language": "tsx",
|
|
592
|
-
"source": "<CodeBlock code={source} onCopy={(request) => request.copied && toast('
|
|
592
|
+
"source": "<CodeBlock code={source} onCopy={(request) => request.copied && toast('Copied')} />;\n",
|
|
593
593
|
"verdict": "excerpt"
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
596
|
"id": "loading",
|
|
597
|
-
"title": "
|
|
598
|
-
"note": "loading
|
|
597
|
+
"title": "Code on the way, and no code",
|
|
598
|
+
"note": "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.",
|
|
599
599
|
"language": "tsx",
|
|
600
600
|
"source": "<CodeBlock code=\"\" loading title=\"deploy.log\" />;\n",
|
|
601
601
|
"verdict": "excerpt"
|
|
602
602
|
},
|
|
603
603
|
{
|
|
604
604
|
"id": "content",
|
|
605
|
-
"title": "
|
|
606
|
-
"note": "
|
|
605
|
+
"title": "Content the family did not choose",
|
|
606
|
+
"note": "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.",
|
|
607
607
|
"language": "tsx",
|
|
608
608
|
"source": "<CodeBlock code={'<script>alert(1)</script>'} language=\"html\" />;\n",
|
|
609
609
|
"verdict": "excerpt"
|
|
610
610
|
},
|
|
611
611
|
{
|
|
612
612
|
"id": "composition",
|
|
613
|
-
"title": "
|
|
614
|
-
"note": "
|
|
613
|
+
"title": "Composition",
|
|
614
|
+
"note": "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.",
|
|
615
615
|
"language": "tsx",
|
|
616
616
|
"source": "<CodeBlockDefaultsProvider highlight={shiki} lineNumbers>\n <CodeBlock code={a} language=\"ts\" title=\"a.ts\" />\n <CodeBlock code={b} language=\"css\" title=\"a.css\" />\n</CodeBlockDefaultsProvider>;\n",
|
|
617
617
|
"verdict": "excerpt"
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
620
|
"id": "keyboard",
|
|
621
|
-
"title": "
|
|
622
|
-
"note": "Tab: copy, wrap, reveal,
|
|
621
|
+
"title": "Keyboard",
|
|
622
|
+
"note": "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.",
|
|
623
623
|
"language": "tsx",
|
|
624
|
-
"source": "// \"group.ts, region\" —
|
|
624
|
+
"source": "// \"group.ts, region\" — the title, because the body is a named region only\n// while the code overflows.\n<CodeBlock code={wide} language=\"ts\" title=\"group.ts\" />;\n",
|
|
625
625
|
"verdict": "excerpt"
|
|
626
626
|
}
|
|
627
627
|
]
|