@slotted/react 0.1.0-beta.1 → 0.1.0-beta.11
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/README.md +23 -2
- package/dist/accordion-n5D6mcmS.js +144 -0
- package/dist/accordion.js +1 -1
- package/dist/action-bar-z2DPc1Wy.js +285 -0
- package/dist/action-bar.js +1 -1
- package/dist/action-sheet-BnedGewu.js +360 -0
- package/dist/action-sheet.js +1 -1
- package/dist/alert-BTAXJ69M.js +163 -0
- package/dist/alert.js +1 -1
- package/dist/app-shell-Cb_kDBeV.js +904 -0
- package/dist/app-shell.js +1 -1
- package/dist/aspect-ratio-CLxOFJVH.js +41 -0
- package/dist/aspect-ratio.js +1 -1
- package/dist/attachment-D1O4qS8H.js +305 -0
- package/dist/attachment.js +1 -1
- package/dist/avatar-C1mYlU05.js +104 -0
- package/dist/avatar-group-DhbHJlMx.js +50 -0
- package/dist/avatar-group.js +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge-pgYVOnZO.js +98 -0
- package/dist/badge.js +1 -1
- package/dist/bin/slotted-agent-docs.mjs +297 -0
- package/dist/breadcrumb-CnFjxxI2.js +222 -0
- package/dist/breadcrumb.js +1 -1
- package/dist/button-D31perSu.js +100 -0
- package/dist/button-group-C-m4aSqu.js +51 -0
- package/dist/button-group.js +1 -1
- package/dist/button.js +2 -2
- package/dist/calendar-DZyC1gAT.js +457 -0
- package/dist/calendar.js +1 -1
- package/dist/card-DRmq8_5e.js +103 -0
- package/dist/card.js +1 -1
- package/dist/carousel-Dso3gcYd.js +499 -0
- package/dist/carousel.js +1 -1
- package/dist/cascader-BbajBwsX.js +1157 -0
- package/dist/cascader.js +1 -1
- package/dist/{chart-BNzfIfQe.js → chart-Bb6ctahn.js} +333 -271
- package/dist/chart.js +1 -1
- package/dist/checkbox-C_8GVtjD.js +144 -0
- package/dist/checkbox-group-DXCcusol.js +109 -0
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/code-block-C4mtsROE.js +282 -0
- package/dist/code-block.js +1 -1
- package/dist/collapsible-B_UjYE2f.js +222 -0
- package/dist/collapsible.js +1 -1
- package/dist/color-picker-JZPnPb7s.js +506 -0
- package/dist/color-picker.js +1 -1
- package/dist/column-manager-BDUj-WIs.js +586 -0
- package/dist/column-manager.js +1 -1
- package/dist/combobox-Dn69QwGX.js +904 -0
- package/dist/combobox.js +1 -1
- package/dist/command-palette-Dh1HKz_F.js +744 -0
- package/dist/command-palette.js +1 -1
- package/dist/container-WoYiHo50.js +47 -0
- package/dist/container.js +1 -1
- package/dist/context-menu-uJjEmAN3.js +151 -0
- package/dist/context-menu.js +1 -1
- package/dist/currency-field-lHcrNJ7X.js +469 -0
- package/dist/currency-field.js +1 -1
- package/dist/dashboard-grid-z-SOm9H0.js +1048 -0
- package/dist/dashboard-grid.js +1 -1
- package/dist/data-grid-DQCvXMJA.js +3856 -0
- package/dist/data-grid.js +1 -1
- package/dist/data-list-BgdkA3bD.js +587 -0
- package/dist/data-list.js +1 -1
- package/dist/date-field-B2lQzE3p.js +299 -0
- package/dist/date-field.js +1 -1
- package/dist/date-picker-DpTRb-Y1.js +316 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-CBUPJep5.js +501 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/datetime-field-BZ44uJ_B.js +424 -0
- package/dist/datetime-field.js +1 -1
- package/dist/datetime-picker-BK_bV3Yr.js +662 -0
- package/dist/datetime-picker.js +1 -1
- package/dist/datetime-range-picker-ChdbRgzQ.js +1029 -0
- package/dist/datetime-range-picker.js +1 -1
- package/dist/description-list-CYlfHDwx.js +240 -0
- package/dist/description-list.js +1 -1
- package/dist/{detail-panel-qOJiNuzr.js → detail-panel-DimjnPI8.js} +121 -113
- package/dist/detail-panel.js +1 -1
- package/dist/dialog-BB5MdJex.js +537 -0
- package/dist/dialog.js +1 -1
- package/dist/divider-ryFeK0Pi.js +35 -0
- package/dist/divider.js +1 -1
- package/dist/docs/AGENTS.snippet.md +12 -0
- package/dist/docs/action-bar.json +4 -4
- package/dist/docs/action-bar.md +3 -3
- package/dist/docs/alert.json +7 -1
- package/dist/docs/alert.md +3 -3
- package/dist/docs/app-shell.examples.md +1 -1
- package/dist/docs/app-shell.json +5 -5
- package/dist/docs/app-shell.md +2 -2
- package/dist/docs/avatar.json +22 -1
- package/dist/docs/avatar.md +5 -3
- package/dist/docs/badge.json +7 -1
- package/dist/docs/badge.md +3 -3
- package/dist/docs/button-group.json +2 -0
- package/dist/docs/button-group.md +1 -1
- package/dist/docs/button.json +51 -11
- package/dist/docs/button.md +10 -6
- package/dist/docs/calendar.json +8 -1
- package/dist/docs/calendar.md +3 -2
- package/dist/docs/cascader.json +1 -0
- package/dist/docs/cascader.md +1 -1
- package/dist/docs/chart.examples.md +1 -1
- package/dist/docs/chart.json +10 -1
- package/dist/docs/chart.md +3 -2
- package/dist/docs/code-block.json +93 -93
- package/dist/docs/code-block.md +71 -71
- package/dist/docs/collapsible.json +1 -1
- package/dist/docs/collapsible.md +1 -1
- package/dist/docs/combobox.json +1 -0
- package/dist/docs/combobox.md +1 -1
- package/dist/docs/command-palette.json +1 -0
- package/dist/docs/command-palette.md +1 -1
- package/dist/docs/currency-field.json +40 -1
- package/dist/docs/currency-field.md +5 -1
- package/dist/docs/data-grid.examples.md +10 -4
- package/dist/docs/data-grid.json +48 -9
- package/dist/docs/data-grid.md +4 -1
- package/dist/docs/data-grid.props.md +7 -4
- package/dist/docs/data-list.json +2 -1
- package/dist/docs/data-list.md +1 -1
- package/dist/docs/date-field.json +9 -1
- package/dist/docs/date-field.md +3 -2
- package/dist/docs/date-picker.examples.md +29 -0
- package/dist/docs/date-picker.json +16 -1
- package/dist/docs/date-picker.md +2 -1
- package/dist/docs/datetime-field.json +1 -0
- package/dist/docs/datetime-field.md +1 -1
- package/dist/docs/detail-panel.json +4 -2
- package/dist/docs/detail-panel.md +15 -5
- package/dist/docs/dialog.examples.md +144 -116
- package/dist/docs/dialog.json +36 -11
- package/dist/docs/dialog.md +5 -3
- package/dist/docs/drawer.json +11 -4
- package/dist/docs/drawer.md +4 -3
- package/dist/docs/entity-picker.json +18 -3
- package/dist/docs/entity-picker.md +11 -4
- package/dist/docs/event-calendar.json +7 -0
- package/dist/docs/event-calendar.md +3 -2
- package/dist/docs/filter-bar.json +115 -115
- package/dist/docs/filter-bar.md +78 -78
- package/dist/docs/form.json +2 -1
- package/dist/docs/form.md +1 -1
- package/dist/docs/guidelines/README.md +27 -0
- package/dist/docs/guidelines/async-feedback.md +129 -0
- package/dist/docs/guidelines/browsing.md +74 -0
- package/dist/docs/guidelines/builders.md +97 -0
- package/dist/docs/guidelines/composition.md +143 -0
- package/dist/docs/guidelines/conversations.md +59 -0
- package/dist/docs/guidelines/errors-and-conflicts.md +71 -0
- package/dist/docs/guidelines/forms.md +202 -0
- package/dist/docs/guidelines/index.md +130 -0
- package/dist/docs/guidelines/layout-alignment.md +105 -0
- package/dist/docs/guidelines/ledgers.md +45 -0
- package/dist/docs/guidelines/list-pages.md +206 -0
- package/dist/docs/guidelines/overviews.md +76 -0
- package/dist/docs/guidelines/own-elements.md +115 -0
- package/dist/docs/guidelines/reading-permissions.md +55 -0
- package/dist/docs/guidelines/record-pages.md +178 -0
- package/dist/docs/guidelines/reports.md +123 -0
- package/dist/docs/guidelines/shell-composition.md +94 -0
- package/dist/docs/guidelines/workspaces.md +46 -0
- package/dist/docs/icon.json +3 -1
- package/dist/docs/icon.md +3 -3
- package/dist/docs/index.md +12 -0
- package/dist/docs/inline-message.json +15 -3
- package/dist/docs/inline-message.md +5 -3
- package/dist/docs/list-item.json +9 -1
- package/dist/docs/list-item.md +3 -3
- package/dist/docs/list.json +26 -1
- package/dist/docs/list.md +4 -1
- package/dist/docs/markdown.json +75 -75
- package/dist/docs/markdown.md +63 -63
- package/dist/docs/menu.json +12 -0
- package/dist/docs/menu.md +2 -0
- package/dist/docs/message.json +7 -1
- package/dist/docs/message.md +3 -3
- package/dist/docs/multi-select.json +1 -0
- package/dist/docs/multi-select.md +1 -1
- package/dist/docs/notification-center.json +4 -0
- package/dist/docs/notification-center.md +2 -2
- package/dist/docs/number-field.json +1 -0
- package/dist/docs/number-field.md +1 -1
- package/dist/docs/otp-input.json +1 -0
- package/dist/docs/otp-input.md +1 -1
- package/dist/docs/page-header.json +21 -4
- package/dist/docs/page-header.md +6 -4
- package/dist/docs/page.json +2 -0
- package/dist/docs/page.md +2 -1
- package/dist/docs/popover.json +1 -1
- package/dist/docs/progress-indicator.json +4 -3
- package/dist/docs/progress-indicator.md +4 -4
- package/dist/docs/prompt-composer.json +41 -1
- package/dist/docs/prompt-composer.md +5 -1
- package/dist/docs/rating.json +5 -3
- package/dist/docs/rating.md +6 -6
- package/dist/docs/section.json +27 -15
- package/dist/docs/section.md +15 -9
- package/dist/docs/segmented-control.json +36 -12
- package/dist/docs/segmented-control.md +17 -1
- package/dist/docs/select.json +2 -1
- package/dist/docs/select.md +2 -2
- package/dist/docs/side-navigation.json +3 -2
- package/dist/docs/side-navigation.md +20 -5
- package/dist/docs/skills/build-own-element/SKILL.md +90 -0
- package/dist/docs/skills/compose-screen/SKILL.md +103 -0
- package/dist/docs/skills/index.md +9 -0
- package/dist/docs/skills/review-screen/SKILL.md +79 -0
- package/dist/docs/skills/theme-app/SKILL.md +98 -0
- package/dist/docs/skills/waiting-states/SKILL.md +143 -0
- package/dist/docs/sparkline.json +5 -2
- package/dist/docs/sparkline.md +4 -4
- package/dist/docs/split-button.json +4 -1
- package/dist/docs/split-button.md +3 -3
- package/dist/docs/stat-card.json +5 -1
- package/dist/docs/stat-card.md +3 -3
- package/dist/docs/table.examples.md +14 -18
- package/dist/docs/table.json +94 -5
- package/dist/docs/table.md +14 -1
- package/dist/docs/tabs.examples.md +1 -1
- package/dist/docs/tabs.json +27 -9
- package/dist/docs/tabs.md +6 -3
- package/dist/docs/tag.json +14 -4
- package/dist/docs/tag.md +6 -6
- package/dist/docs/tags-input.json +29 -2
- package/dist/docs/tags-input.md +4 -1
- package/dist/docs/text-field.json +2 -1
- package/dist/docs/text-field.md +2 -2
- package/dist/docs/textarea.examples.md +504 -0
- package/dist/docs/textarea.json +1 -0
- package/dist/docs/textarea.md +2 -498
- package/dist/docs/time-field.json +1 -0
- package/dist/docs/time-field.md +1 -1
- package/dist/docs/timeline.json +136 -130
- package/dist/docs/timeline.md +122 -122
- package/dist/docs/toast.json +8 -1
- package/dist/docs/toast.md +3 -3
- package/dist/docs/toggle-group.json +14 -3
- package/dist/docs/toggle-group.md +3 -3
- package/dist/docs/toggle.json +12 -3
- package/dist/docs/toggle.md +3 -3
- package/dist/docs/tokens.md +467 -0
- package/dist/docs/toolbar.json +1 -1
- package/dist/docs/toolbar.md +1 -1
- package/dist/docs/top-navigation.examples.md +23 -5
- package/dist/docs/top-navigation.json +2 -2
- package/dist/docs/tour.json +1 -1
- package/dist/docs/typography.json +4 -2
- package/dist/docs/typography.md +5 -5
- package/dist/drawer-fyPyxnYQ.js +782 -0
- package/dist/drawer.js +1 -1
- package/dist/entity-picker-ClyhBTyK.js +1283 -0
- package/dist/entity-picker.js +2 -2
- package/dist/{event-calendar-BFdeGfC-.js → event-calendar-COgC24UG.js} +479 -409
- package/dist/event-calendar.js +1 -1
- package/dist/field-group-Bj-EbPIU.js +138 -0
- package/dist/field-group.js +1 -1
- package/dist/field-tnEZiRLg.js +367 -0
- package/dist/field.js +1 -1
- package/dist/filter-bar-BRuCz79-.js +1342 -0
- package/dist/filter-bar.js +1 -1
- package/dist/{form-vTCQhZM-.js → form-DEcJ7tHf.js} +97 -88
- package/dist/form.js +1 -1
- package/dist/fullscreen-BwweNj3-.js +190 -0
- package/dist/fullscreen.js +1 -1
- package/dist/grid-l7xi6DUg.js +26 -0
- package/dist/grid.js +1 -1
- package/dist/highlight-9lRPIZ9O.js +59 -0
- package/dist/highlight.js +1 -1
- package/dist/hover-card-BWcU37Yp.js +215 -0
- package/dist/hover-card.js +1 -1
- package/dist/{i18n-DpW8lqJ1.js → i18n-D7xXDd8-.js} +11 -4
- package/dist/i18n.js +1 -1
- package/dist/icon-DjqSEQ-o.js +75 -0
- package/dist/icon-button-DbSZKGT4.js +224 -0
- package/dist/icon.js +1 -1
- package/dist/{image-DpDFrrXL.js → image-Ajqo38Uz.js} +24 -20
- package/dist/image.js +1 -1
- package/dist/import-export-center-CYf0Qxl_.js +867 -0
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +128 -127
- package/dist/inline-CqF8iT4m.js +17 -0
- package/dist/inline-message-DM7mf2cM.js +119 -0
- package/dist/inline-message.js +2 -2
- package/dist/inline.js +1 -1
- package/dist/kbd-dNz8QHfL.js +105 -0
- package/dist/kbd.js +1 -1
- package/dist/link-DLPyg54C.js +91 -0
- package/dist/link.js +1 -1
- package/dist/list-B7gaPH1U.js +95 -0
- package/dist/list-item-DMeNfokY.js +125 -0
- package/dist/list-item.js +1 -1
- package/dist/list.js +1 -1
- package/dist/listbox-BSqx_ARf.js +626 -0
- package/dist/listbox.js +1 -1
- package/dist/loading-overlay-BLIrcaoj.js +218 -0
- package/dist/loading-overlay.js +1 -1
- package/dist/markdown-DccRb1xf.js +306 -0
- package/dist/markdown.js +1 -1
- package/dist/menu-parts-CNNHRduK.js +805 -0
- package/dist/menu.js +1 -1
- package/dist/menubar-Bdr6zigi.js +157 -0
- package/dist/menubar.js +1 -1
- package/dist/message-BkTiWsUp.js +436 -0
- package/dist/message-scroller-akQEtQLn.js +218 -0
- package/dist/message-scroller.js +1 -1
- package/dist/message.js +1 -1
- package/dist/multi-select-BvlJIEtz.js +1259 -0
- package/dist/multi-select.js +1 -1
- package/dist/navigation-menu-parts-CEW4fgCo.js +492 -0
- package/dist/navigation-menu.js +1 -1
- package/dist/notification-center-BQO0Ey3h.js +516 -0
- package/dist/notification-center.js +1 -1
- package/dist/number-field-D1MqT8_A.js +345 -0
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-Bf8JUiVR.js → otp-input-Cub9H9Di.js} +75 -72
- package/dist/otp-input.js +1 -1
- package/dist/page-CwYmBoZQ.js +179 -0
- package/dist/page-header-CMxCQqu_.js +372 -0
- package/dist/page-header.js +1 -1
- package/dist/page.js +1 -1
- package/dist/pagination-IEuos7H1.js +299 -0
- package/dist/pagination.js +1 -1
- package/dist/popover-C7NpEzq6.js +500 -0
- package/dist/popover.js +1 -1
- package/dist/press-selection-DjOllE2B.js +29 -0
- package/dist/press-selection.js +2 -0
- package/dist/progress-indicator-D0acshNn.js +292 -0
- package/dist/progress-indicator.js +1 -1
- package/dist/prompt-composer-Cu8bj1Vb.js +276 -0
- package/dist/prompt-composer.js +1 -1
- package/dist/prose-CQN4Bqqh.js +92 -0
- package/dist/prose.js +1 -1
- package/dist/radio-group-BHlDgCLk.js +143 -0
- package/dist/radio-group.js +1 -1
- package/dist/rating-Cr0lXaAV.js +501 -0
- package/dist/rating.js +1 -1
- package/dist/result-state-BMYhelu1.js +128 -0
- package/dist/result-state.js +1 -1
- package/dist/saved-views-CyLSn8a2.js +456 -0
- package/dist/saved-views.js +1 -1
- package/dist/scroll-area-Fr0PmnRS.js +112 -0
- package/dist/scroll-area.js +1 -1
- package/dist/section-DY8yPm11.js +177 -0
- package/dist/section.js +2 -2
- package/dist/segmented-control-uPnQYklX.js +156 -0
- package/dist/segmented-control.js +1 -1
- package/dist/select-C0JYHwBy.js +1020 -0
- package/dist/{select-tags-CQMcHIQN.js → select-tags-CMe5rzql.js} +11 -1
- package/dist/select.js +1 -1
- package/dist/side-navigation-D8lRpHwj.js +747 -0
- package/dist/side-navigation.js +1 -1
- package/dist/skeleton-DeEOmm1y.js +149 -0
- package/dist/skeleton.js +1 -1
- package/dist/slider-BSI1xvjw.js +264 -0
- package/dist/slider.js +1 -1
- package/dist/sparkline-CYU4_lCD.js +152 -0
- package/dist/sparkline.js +1 -1
- package/dist/spinner-ring-DyfaYloA.js +19 -0
- package/dist/split-button-CkbylOMN.js +136 -0
- package/dist/split-button.js +1 -1
- package/dist/splitter-CspZHJz4.js +293 -0
- package/dist/splitter.js +1 -1
- package/dist/stack-BbgvuQ7m.js +16 -0
- package/dist/stack.js +1 -1
- package/dist/stat-card-CAh4SdeY.js +247 -0
- package/dist/stat-card.js +1 -1
- package/dist/status-indicator-BVMnpcm8.js +78 -0
- package/dist/status-indicator.js +1 -1
- package/dist/stepper-BLfvMz04.js +261 -0
- package/dist/stepper.js +1 -1
- package/dist/styles/accordion.css +2 -0
- package/dist/styles/action-bar.css +8 -0
- package/dist/styles/action-sheet.css +8 -0
- package/dist/styles/alert.css +4 -0
- package/dist/styles/app-shell.css +8 -0
- package/dist/styles/aspect-ratio.css +2 -0
- package/dist/styles/attachment.css +8 -0
- package/dist/styles/avatar-group.css +6 -0
- package/dist/styles/avatar.css +4 -0
- package/dist/styles/badge.css +2 -0
- package/dist/styles/breadcrumb.css +4 -0
- package/dist/styles/button-group.css +2 -0
- package/dist/styles/button.css +4 -0
- package/dist/styles/calendar.css +4 -0
- package/dist/styles/card.css +2 -0
- package/dist/styles/carousel.css +4 -0
- package/dist/styles/cascader.css +20 -0
- package/dist/styles/chart.css +10 -0
- package/dist/styles/checkbox-group.css +12 -0
- package/dist/styles/checkbox.css +14 -0
- package/dist/styles/code-block.css +10 -0
- package/dist/styles/collapsible.css +6 -0
- package/dist/styles/color-picker.css +18 -0
- package/dist/styles/column-manager.css +32 -0
- package/dist/styles/combobox.css +12 -0
- package/dist/styles/command-palette.css +14 -0
- package/dist/styles/container.css +2 -0
- package/dist/styles/context-menu.css +8 -0
- package/dist/styles/currency-field.css +10 -0
- package/dist/styles/dashboard-grid.css +20 -0
- package/dist/styles/data-grid.css +64 -0
- package/dist/styles/data-list.css +34 -0
- package/dist/styles/date-field.css +10 -0
- package/dist/styles/date-picker.css +14 -0
- package/dist/styles/date-range-picker.css +14 -0
- package/dist/styles/datetime-field.css +10 -0
- package/dist/styles/datetime-picker.css +14 -0
- package/dist/styles/datetime-range-picker.css +14 -0
- package/dist/styles/description-list.css +6 -0
- package/dist/styles/detail-panel.css +24 -0
- package/dist/styles/dialog.css +4 -0
- package/dist/styles/divider.css +2 -0
- package/dist/styles/drawer.css +4 -0
- package/dist/styles/entity-picker.css +22 -0
- package/dist/styles/event-calendar.css +28 -0
- package/dist/styles/field-group.css +10 -0
- package/dist/styles/field.css +8 -0
- package/dist/styles/filter-bar.css +54 -0
- package/dist/styles/form.css +2 -0
- package/dist/styles/fullscreen.css +4 -0
- package/dist/styles/grid.css +2 -0
- package/dist/styles/highlight.css +2 -0
- package/dist/styles/hover-card.css +6 -0
- package/dist/styles/i18n.css +1 -0
- package/dist/styles/icon.css +2 -0
- package/dist/styles/image.css +6 -0
- package/dist/styles/import-export-center.css +70 -0
- package/dist/styles/index.css +248 -0
- package/dist/styles/inline-message.css +4 -0
- package/dist/styles/inline.css +2 -0
- package/dist/styles/kbd.css +2 -0
- package/dist/styles/link.css +6 -0
- package/dist/styles/list-item.css +6 -0
- package/dist/styles/list.css +2 -0
- package/dist/styles/listbox.css +10 -0
- package/dist/styles/loading-overlay.css +6 -0
- package/dist/styles/markdown.css +34 -0
- package/dist/styles/menu.css +6 -0
- package/dist/styles/menubar.css +8 -0
- package/dist/styles/message-scroller.css +4 -0
- package/dist/styles/message.css +4 -0
- package/dist/styles/multi-select.css +18 -0
- package/dist/styles/navigation-menu.css +4 -0
- package/dist/styles/notification-center.css +16 -0
- package/dist/styles/number-field.css +10 -0
- package/dist/styles/otp-input.css +10 -0
- package/dist/styles/page-header.css +16 -0
- package/dist/styles/page.css +6 -0
- package/dist/styles/pagination.css +4 -0
- package/dist/styles/popover.css +4 -0
- package/dist/styles/press-selection.css +1 -0
- package/dist/styles/progress-indicator.css +4 -0
- package/dist/styles/prompt-composer.css +12 -0
- package/dist/styles/prose.css +2 -0
- package/dist/styles/radio-group.css +12 -0
- package/dist/styles/rating.css +10 -0
- package/dist/styles/result-state.css +2 -0
- package/dist/styles/saved-views.css +20 -0
- package/dist/styles/scroll-area.css +2 -0
- package/dist/styles/section.css +4 -0
- package/dist/styles/segmented-control.css +12 -0
- package/dist/styles/select.css +14 -0
- package/dist/styles/side-navigation.css +14 -0
- package/dist/styles/skeleton.css +4 -0
- package/dist/styles/slider.css +10 -0
- package/dist/styles/sparkline.css +2 -0
- package/dist/styles/split-button.css +12 -0
- package/dist/styles/splitter.css +2 -0
- package/dist/styles/stack.css +2 -0
- package/dist/styles/stat-card.css +8 -0
- package/dist/styles/status-indicator.css +6 -0
- package/dist/styles/stepper.css +6 -0
- package/dist/styles/switch.css +12 -0
- package/dist/styles/table-of-contents.css +8 -0
- package/dist/styles/table.css +60 -0
- package/dist/styles/tabs.css +4 -0
- package/dist/styles/tag.css +4 -0
- package/dist/styles/tags-input.css +12 -0
- package/dist/styles/text-field.css +10 -0
- package/dist/styles/textarea.css +10 -0
- package/dist/styles/theme.css +1 -0
- package/dist/styles/time-field.css +10 -0
- package/dist/styles/time-picker.css +12 -0
- package/dist/styles/time-range-picker.css +12 -0
- package/dist/styles/timeline.css +8 -0
- package/dist/styles/toast.css +8 -0
- package/dist/styles/toggle-group.css +10 -0
- package/dist/styles/toggle.css +2 -0
- package/dist/styles/toolbar.css +8 -0
- package/dist/styles/tooltip.css +2 -0
- package/dist/styles/top-navigation.css +14 -0
- package/dist/styles/tour.css +8 -0
- package/dist/styles/transfer.css +26 -0
- package/dist/styles/tree.css +6 -0
- package/dist/styles/typography.css +2 -0
- package/dist/styles/upload.css +16 -0
- package/dist/styles/visually-hidden.css +2 -0
- package/dist/styles/wizard.css +22 -0
- package/dist/styles.css +1 -1
- package/dist/switch-BHyKHqeI.js +144 -0
- package/dist/switch.js +1 -1
- package/dist/table-C8zOHDcY.js +1019 -0
- package/dist/table-of-contents-BAIuPCdy.js +471 -0
- package/dist/table-of-contents.js +1 -1
- package/dist/table.js +2 -2
- package/dist/tabs-DjEpS9uq.js +361 -0
- package/dist/tabs.js +1 -1
- package/dist/tag-XYGEPUHR.js +374 -0
- package/dist/tag.js +1 -1
- package/dist/tags-input-ClYSd-No.js +729 -0
- package/dist/tags-input.js +1 -1
- package/dist/text-field-Cguj75tn.js +205 -0
- package/dist/text-field.js +1 -1
- package/dist/textarea-BKsh_jAo.js +100 -0
- package/dist/textarea.js +1 -1
- package/dist/time-field-BIE4WMpS.js +366 -0
- package/dist/time-field.js +1 -1
- package/dist/time-picker-CNfafRDF.js +415 -0
- package/dist/time-picker.js +1 -1
- package/dist/time-range-picker-D7gM_Wno.js +779 -0
- package/dist/time-range-picker.js +1 -1
- package/dist/timeline-BLadNUkS.js +449 -0
- package/dist/timeline.js +1 -1
- package/dist/{toast-wI8BtPY5.js → toast-CjbiXiza.js} +114 -112
- package/dist/toast.js +1 -1
- package/dist/toggle-group-BZmghKac.js +145 -0
- package/dist/toggle-group.js +1 -1
- package/dist/toggle-zDTD5G3H.js +67 -0
- package/dist/toggle.js +1 -1
- package/dist/toolbar-BI4ZepBs.js +243 -0
- package/dist/toolbar.js +1 -1
- package/dist/tooltip-DrFiRlH8.js +411 -0
- package/dist/tooltip.js +1 -1
- package/dist/top-navigation-BTZpx5VA.js +744 -0
- package/dist/top-navigation.js +1 -1
- package/dist/tour-_CQ1kYov.js +809 -0
- package/dist/tour.js +1 -1
- package/dist/transfer-BVhBdIGp.js +606 -0
- package/dist/transfer.js +1 -1
- package/dist/tree-DfI9UWLA.js +794 -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-bar/action-bar.types.d.ts +2 -2
- 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/alert/alert.types.d.ts +1 -1
- package/dist/types/alert/alert.types.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts +6 -4
- 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/app-shell/app-shell.types.d.ts +21 -14
- package/dist/types/app-shell/app-shell.types.d.ts.map +1 -1
- package/dist/types/app-shell/index.d.ts +1 -1
- package/dist/types/app-shell/index.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 +1 -1
- package/dist/types/avatar/avatar.d.ts.map +1 -1
- package/dist/types/avatar/avatar.types.d.ts +10 -1
- package/dist/types/avatar/avatar.types.d.ts.map +1 -1
- package/dist/types/avatar/index.d.ts +1 -1
- package/dist/types/avatar/index.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/badge/badge.types.d.ts +1 -1
- package/dist/types/badge/badge.types.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/breadcrumb/breadcrumb.types.d.ts +2 -1
- package/dist/types/breadcrumb/breadcrumb.types.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 +1 -1
- package/dist/types/button/button-link.d.ts.map +1 -1
- package/dist/types/button/button-root.d.ts +7 -5
- package/dist/types/button/button-root.d.ts.map +1 -1
- package/dist/types/button/button.constants.d.ts +2 -1
- package/dist/types/button/button.constants.d.ts.map +1 -1
- package/dist/types/button/button.d.ts +1 -1
- package/dist/types/button/button.d.ts.map +1 -1
- package/dist/types/button/button.types.d.ts +11 -3
- package/dist/types/button/button.types.d.ts.map +1 -1
- package/dist/types/button/icon-button.d.ts.map +1 -1
- package/dist/types/button/index.d.ts +1 -1
- package/dist/types/button/index.d.ts.map +1 -1
- package/dist/types/button/spinner-ring.d.ts +8 -0
- package/dist/types/button/spinner-ring.d.ts.map +1 -0
- package/dist/types/button/toggle-button.d.ts +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 +1 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/calendar/calendar.types.d.ts +9 -0
- package/dist/types/calendar/calendar.types.d.ts.map +1 -1
- package/dist/types/calendar/index.d.ts +1 -1
- package/dist/types/calendar/index.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/card/card.types.d.ts +2 -1
- package/dist/types/card/card.types.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-collection.d.ts +1 -0
- package/dist/types/combobox/combobox-collection.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/combobox/combobox.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 +28 -5
- package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
- package/dist/types/currency-field/index.d.ts +1 -1
- package/dist/types/currency-field/index.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 +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-body.d.ts +7 -2
- package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-context.d.ts +31 -1
- 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 +36 -1
- 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 +1 -1
- package/dist/types/date-field/date-field.d.ts.map +1 -1
- package/dist/types/date-field/date-field.types.d.ts +7 -0
- package/dist/types/date-field/date-field.types.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.d.ts +5 -1
- package/dist/types/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.types.d.ts +20 -2
- package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
- package/dist/types/date-picker/index.d.ts +1 -1
- package/dist/types/date-picker/index.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 +2 -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-demo.d.ts +8 -0
- package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
- package/dist/types/dialog/dialog-parts.d.ts.map +1 -1
- package/dist/types/dialog/dialog.d.ts.map +1 -1
- package/dist/types/dialog/dialog.types.d.ts +12 -2
- 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/drawer/drawer.d.ts +1 -1
- package/dist/types/drawer/drawer.d.ts.map +1 -1
- package/dist/types/drawer/drawer.types.d.ts +6 -0
- package/dist/types/drawer/drawer.types.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-option-parts.d.ts +13 -0
- package/dist/types/entity-picker/entity-picker-option-parts.d.ts.map +1 -0
- package/dist/types/entity-picker/entity-picker-popup.d.ts +0 -7
- package/dist/types/entity-picker/entity-picker-popup.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker.types.d.ts +8 -0
- package/dist/types/entity-picker/entity-picker.types.d.ts.map +1 -1
- package/dist/types/entity-picker/index.d.ts +1 -0
- package/dist/types/entity-picker/index.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 +1 -1
- package/dist/types/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar.types.d.ts +6 -0
- package/dist/types/event-calendar/event-calendar.types.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/i18n/slotted-provider.d.ts +6 -0
- package/dist/types/i18n/slotted-provider.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/icon/icon.types.d.ts +1 -1
- package/dist/types/icon/icon.types.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/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/inline/inline.d.ts.map +1 -1
- package/dist/types/inline-message/index.d.ts +2 -2
- package/dist/types/inline-message/index.d.ts.map +1 -1
- package/dist/types/inline-message/inline-message-defaults.d.ts +1 -1
- package/dist/types/inline-message/inline-message-defaults.d.ts.map +1 -1
- package/dist/types/inline-message/inline-message.d.ts +11 -3
- package/dist/types/inline-message/inline-message.d.ts.map +1 -1
- package/dist/types/inline-message/inline-message.types.d.ts +3 -1
- package/dist/types/inline-message/inline-message.types.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/link/link.types.d.ts +2 -1
- package/dist/types/link/link.types.d.ts.map +1 -1
- package/dist/types/list/index.d.ts +1 -1
- package/dist/types/list/index.d.ts.map +1 -1
- package/dist/types/list/list-parts.d.ts +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/list.types.d.ts +12 -0
- package/dist/types/list/list.types.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/list-item/list-item.types.d.ts +3 -2
- package/dist/types/list-item/list-item.types.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/index.d.ts +1 -1
- package/dist/types/menu/index.d.ts.map +1 -1
- package/dist/types/menu/menu-defaults.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/menu/menu.d.ts +1 -1
- package/dist/types/menu/menu.d.ts.map +1 -1
- package/dist/types/menu/menu.types.d.ts +13 -1
- package/dist/types/menu/menu.types.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/message.types.d.ts +1 -1
- package/dist/types/message/message.types.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-collection.d.ts +0 -2
- package/dist/types/multi-select/multi-select-collection.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/multi-select/multi-select.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/navigation-menu/navigation-menu.types.d.ts +2 -1
- package/dist/types/navigation-menu/navigation-menu.types.d.ts.map +1 -1
- package/dist/types/notification-center/notification-center.d.ts.map +1 -1
- package/dist/types/notification-center/notification-center.types.d.ts +1 -1
- package/dist/types/notification-center/notification-center.types.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-defaults.d.ts +1 -1
- package/dist/types/page-header/page-header-defaults.d.ts.map +1 -1
- package/dist/types/page-header/page-header-parts.d.ts +3 -3
- package/dist/types/page-header/page-header-parts.d.ts.map +1 -1
- package/dist/types/page-header/page-header.d.ts +1 -1
- package/dist/types/page-header/page-header.d.ts.map +1 -1
- package/dist/types/page-header/page-header.types.d.ts +11 -1
- package/dist/types/page-header/page-header.types.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/press-selection/index.d.ts +3 -0
- package/dist/types/press-selection/index.d.ts.map +1 -0
- package/dist/types/press-selection/press-selection.d.ts +23 -0
- package/dist/types/press-selection/press-selection.d.ts.map +1 -0
- 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-indicator.types.d.ts +1 -1
- package/dist/types/progress-indicator/progress-indicator.types.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 +6 -0
- package/dist/types/progress-indicator/use-progress-indicator.d.ts.map +1 -1
- package/dist/types/prompt-composer/index.d.ts +1 -1
- package/dist/types/prompt-composer/index.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer-defaults.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer.d.ts +1 -1
- package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer.types.d.ts +9 -0
- package/dist/types/prompt-composer/prompt-composer.types.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/rating/rating.types.d.ts +1 -1
- package/dist/types/rating/rating.types.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/index.d.ts +1 -1
- package/dist/types/section/index.d.ts.map +1 -1
- package/dist/types/section/section-parts.d.ts +9 -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/index.d.ts +1 -1
- package/dist/types/segmented-control/index.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control-defaults.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 +1 -1
- package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
- package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
- package/dist/types/select/select-collection.d.ts +0 -2
- package/dist/types/select/select-collection.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/select/select.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/side-navigation/side-navigation.types.d.ts +2 -1
- package/dist/types/side-navigation/side-navigation.types.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/sparkline/sparkline.types.d.ts +3 -1
- package/dist/types/sparkline/sparkline.types.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/stat-card/stat-card.types.d.ts +3 -3
- package/dist/types/stat-card/stat-card.types.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/index.d.ts +2 -2
- package/dist/types/table/index.d.ts.map +1 -1
- package/dist/types/table/table-content.d.ts.map +1 -1
- package/dist/types/table/table-defaults.d.ts.map +1 -1
- package/dist/types/table/table-filter.d.ts.map +1 -1
- package/dist/types/table/table-parts.d.ts +12 -2
- package/dist/types/table/table-parts.d.ts.map +1 -1
- package/dist/types/table/table.d.ts +1 -1
- package/dist/types/table/table.d.ts.map +1 -1
- package/dist/types/table/table.types.d.ts +43 -1
- package/dist/types/table/table.types.d.ts.map +1 -1
- package/dist/types/table-of-contents/table-of-contents-demo.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/table-of-contents/table-of-contents.types.d.ts +2 -1
- package/dist/types/table-of-contents/table-of-contents.types.d.ts.map +1 -1
- package/dist/types/tabs/tabs-parts.d.ts +2 -4
- package/dist/types/tabs/tabs-parts.d.ts.map +1 -1
- package/dist/types/tabs/tabs.d.ts +1 -1
- package/dist/types/tabs/tabs.d.ts.map +1 -1
- package/dist/types/tabs/tabs.types.d.ts +18 -0
- package/dist/types/tabs/tabs.types.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/tag/tag.types.d.ts +3 -2
- package/dist/types/tag/tag.types.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/timeline/timeline.types.d.ts +1 -1
- package/dist/types/timeline/timeline.types.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/toast/toast.types.d.ts +1 -1
- package/dist/types/toast/toast.types.d.ts.map +1 -1
- package/dist/types/toggle/toggle.d.ts.map +1 -1
- package/dist/types/toggle/toggle.types.d.ts +1 -1
- package/dist/types/toggle/toggle.types.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/toggle-group/toggle-group.types.d.ts +6 -1
- package/dist/types/toggle-group/toggle-group.types.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/toolbar/toolbar.types.d.ts +2 -2
- 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/top-navigation/top-navigation.types.d.ts +8 -7
- package/dist/types/top-navigation/top-navigation.types.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/typography/typography.types.d.ts +1 -1
- package/dist/types/typography/typography.types.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-BESqb4C0.js +93 -0
- package/dist/typography.js +1 -1
- package/dist/upload-N2-nyO8x.js +648 -0
- package/dist/upload.js +1 -1
- package/dist/visually-hidden-BUSrFZ1_.js +15 -0
- package/dist/visually-hidden.js +1 -1
- package/dist/wizard-CK1x2fs3.js +838 -0
- package/dist/wizard.js +1 -1
- package/package.json +24 -11
- package/dist/accordion-D-YuMJzk.js +0 -143
- package/dist/action-bar-C7cGnEyJ.js +0 -282
- package/dist/action-sheet-D8Glxl7l.js +0 -347
- package/dist/alert-CP62p9Ul.js +0 -159
- package/dist/app-shell-CXwma4XA.js +0 -836
- 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-DakQ-7Tm.js +0 -97
- package/dist/button-group-Det_nYor.js +0 -50
- package/dist/calendar-B3mio8iQ.js +0 -387
- package/dist/card-CpVu8PyZ.js +0 -102
- package/dist/carousel-BPi-Y5yF.js +0 -498
- package/dist/cascader-CARCYdHh.js +0 -1097
- package/dist/checkbox-CwUOc-3u.js +0 -139
- package/dist/checkbox-group-BYTjgAcX.js +0 -108
- package/dist/code-block-CFHf8uTm.js +0 -269
- package/dist/collapsible-CGo49NNW.js +0 -217
- package/dist/color-picker-BlPR4g4H.js +0 -504
- package/dist/column-manager-CNZ7Xk5_.js +0 -585
- package/dist/combobox-C46GRqAA.js +0 -852
- package/dist/command-palette-BqRyNR9Y.js +0 -707
- package/dist/container-CjxY6rYv.js +0 -46
- package/dist/context-menu-DMiHdggw.js +0 -150
- package/dist/currency-field-B7OZ0hk7.js +0 -436
- package/dist/dashboard-grid-nfhEewA4.js +0 -1005
- package/dist/data-grid-BUgOJuGp.js +0 -3648
- package/dist/data-list-2xfDpHVC.js +0 -561
- package/dist/date-field-D_kLLTfL.js +0 -279
- package/dist/date-picker-DQ5SIhdA.js +0 -264
- package/dist/date-range-picker-lpB08hK_.js +0 -471
- package/dist/datetime-field-T1gNdJ7t.js +0 -411
- package/dist/datetime-picker-0F0kDW-8.js +0 -629
- package/dist/datetime-range-picker-ClnEleth.js +0 -994
- package/dist/description-list-IYLnFgHT.js +0 -232
- package/dist/dialog-Dmy-m_pe.js +0 -499
- package/dist/divider-D36Jqo0J.js +0 -33
- package/dist/drawer-Ci3wuCVa.js +0 -758
- package/dist/entity-picker-UGhbVwkC.js +0 -1111
- package/dist/field-BJh5HI7w.js +0 -365
- package/dist/field-group-BDaspQPh.js +0 -138
- package/dist/filter-bar-b2Q9BZHf.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-CSDbA6zd.js +0 -214
- package/dist/icon-T9Yt4tnm.js +0 -73
- package/dist/icon-button-TnvMhK4o.js +0 -211
- package/dist/import-export-center-D8xbCLWs.js +0 -813
- 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-C1Y8MWp2.js +0 -87
- package/dist/list-item-DN_mcouU.js +0 -123
- package/dist/listbox-4WvqR0JF.js +0 -615
- package/dist/loading-overlay-B83XFctM.js +0 -208
- package/dist/markdown-CpfDn1LF.js +0 -295
- package/dist/menu-parts-BQej6eU9.js +0 -787
- package/dist/menubar-CtGavUTO.js +0 -156
- package/dist/message-Cp0rLCyW.js +0 -430
- package/dist/message-scroller-UZjFpflz.js +0 -214
- package/dist/multi-select-CfzsvAeI.js +0 -1193
- package/dist/navigation-menu-parts-D8qFAwHX.js +0 -492
- package/dist/notification-center-C4pEHJ3h.js +0 -485
- package/dist/number-field-J_koud1r.js +0 -342
- package/dist/page-header-CWEBfMGq.js +0 -367
- package/dist/page-kQgLctsA.js +0 -167
- package/dist/pagination-DWJc521r.js +0 -292
- package/dist/popover-DE22lSpV.js +0 -476
- package/dist/progress-indicator-DwvUSFFs.js +0 -269
- package/dist/prompt-composer-B7MMcER0.js +0 -259
- package/dist/prose-CkeNYS0X.js +0 -91
- package/dist/radio-group-BFpjhDkV.js +0 -140
- package/dist/rating-D1EsADFM.js +0 -459
- package/dist/react-dom-DzrKNxo6.js +0 -273
- package/dist/result-state-CZsQfdN4.js +0 -126
- package/dist/saved-views-BueW-Lyb.js +0 -446
- package/dist/scroll-area-BriwmvYY.js +0 -111
- package/dist/section-Be7dX9MC.js +0 -176
- package/dist/segmented-control-Cy_5D3Nj.js +0 -149
- package/dist/select-UTwKjheK.js +0 -957
- package/dist/side-navigation-YUiJRpng.js +0 -729
- package/dist/skeleton-2LSpg84Z.js +0 -143
- package/dist/slider-B432T6nD.js +0 -256
- package/dist/sparkline-rY7HIFE4.js +0 -131
- package/dist/split-button-DHF3v3PJ.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-4MHwKmkz.js +0 -138
- package/dist/table-CzBIw9ng.js +0 -970
- package/dist/table-of-contents-DfAeYtFJ.js +0 -461
- package/dist/tabs-DQ36APY-.js +0 -343
- package/dist/tag-DjtW53xN.js +0 -365
- package/dist/tags-input-DLdHLWrH.js +0 -625
- package/dist/text-field-BktZbmzD.js +0 -195
- package/dist/textarea-JAK2RJl0.js +0 -99
- package/dist/time-field-DCG_VtGO.js +0 -355
- package/dist/time-picker-DuT1tf5-.js +0 -396
- package/dist/time-range-picker-HwBvrrXN.js +0 -745
- package/dist/timeline-DH_02ysz.js +0 -421
- package/dist/toggle-CBFhM4Jh.js +0 -64
- package/dist/toggle-group-DQBlI1TV.js +0 -140
- package/dist/toolbar-CDQTydDx.js +0 -240
- package/dist/tooltip-BggqPDcW.js +0 -393
- package/dist/top-navigation-COQZsNqW.js +0 -740
- package/dist/tour-C11DmYTC.js +0 -799
- package/dist/transfer-JA9TWjAw.js +0 -596
- package/dist/tree-C6fYJqT9.js +0 -783
- package/dist/typography-B2iaigEC.js +0 -92
- package/dist/upload-Bq_UiyMr.js +0 -613
- package/dist/visually-hidden-CE6u5JLW.js +0 -14
- package/dist/wizard-B4GrlEqh.js +0 -815
package/dist/detail-panel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./detail-panel-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./detail-panel-DimjnPI8.js";
|
|
2
2
|
export { t as DetailPanel, o as DetailPanelBody, r as DetailPanelDefaultsProvider, n as DetailPanelSection, i as DetailPanelTabs, e as useDetailPanel, a as useDetailPanelDefaults };
|
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n as t, t as n } from "./icon-DjqSEQ-o.js";
|
|
3
|
+
import { keyedProps as r } from "@slotted/core/selector-key";
|
|
4
|
+
import { createFocusScope as i } from "@slotted/core/focus";
|
|
5
|
+
import { createControllable as a } from "@slotted/core/state";
|
|
6
|
+
import { createContext as o, useCallback as s, useContext as c, useEffect as l, useId as u, useImperativeHandle as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h } from "react";
|
|
7
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
8
|
+
import { createPresence as ee } from "@slotted/core/presence";
|
|
9
|
+
import { dialogMessages as y } from "@slotted/core/i18n";
|
|
10
|
+
import { createPortalRoot as b } from "@slotted/core/portal";
|
|
11
|
+
import { createDismissableLayer as te } from "@slotted/core/dismissable-layer";
|
|
12
|
+
import { createPortal as x } from "react-dom";
|
|
13
|
+
import { observeKeyboardInset as S } from "@slotted/core/measure";
|
|
14
|
+
//#region src/dialog/dialog-defaults.tsx
|
|
15
|
+
var C = o({
|
|
16
|
+
back: "close",
|
|
17
|
+
escape: "close",
|
|
18
|
+
fullScreen: "narrow",
|
|
19
|
+
modal: !0,
|
|
20
|
+
mount: "active",
|
|
21
|
+
outsidePress: "close",
|
|
22
|
+
placement: "center",
|
|
23
|
+
scroll: "content",
|
|
24
|
+
size: "md",
|
|
25
|
+
surface: "panel"
|
|
26
|
+
});
|
|
27
|
+
function w() {
|
|
28
|
+
return c(C);
|
|
29
|
+
}
|
|
30
|
+
function T({ children: e, ...t }) {
|
|
31
|
+
let n = w();
|
|
32
|
+
return /* @__PURE__ */ _(C.Provider, {
|
|
33
|
+
value: {
|
|
34
|
+
back: t.back ?? n.back,
|
|
35
|
+
escape: t.escape ?? n.escape,
|
|
36
|
+
fullScreen: t.fullScreen ?? n.fullScreen,
|
|
37
|
+
modal: t.modal ?? n.modal,
|
|
38
|
+
mount: t.mount ?? n.mount,
|
|
39
|
+
outsidePress: t.outsidePress ?? n.outsidePress,
|
|
40
|
+
placement: t.placement ?? n.placement,
|
|
41
|
+
scroll: t.scroll ?? n.scroll,
|
|
42
|
+
size: t.size ?? n.size,
|
|
43
|
+
surface: t.surface ?? n.surface
|
|
44
|
+
},
|
|
45
|
+
children: e
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/dialog/dialog.tsx
|
|
50
|
+
var E = o(void 0);
|
|
51
|
+
function D() {
|
|
52
|
+
let e = c(E);
|
|
53
|
+
if (e === void 0) throw Error("Every dialog part must be rendered inside Dialog or AlertDialog.");
|
|
54
|
+
return e;
|
|
55
|
+
}
|
|
56
|
+
function O({ back: t, children: n, container: r, defaultFullscreen: i, defaultOpen: o, escape: c, finalFocus: f, fullscreen: g, fullScreen: v, fullscreenToggle: b, initialFocus: te, loading: x, member: S, messages: C, modal: T, mount: D, onFullscreenChange: O, onOpenChange: k, onOpenChangeComplete: A, open: j, outsidePress: M, placement: ne, ref: N, scroll: re, size: ie, surface: ae, tone: P }) {
|
|
57
|
+
let F = w(), I = e(y, C), L = u(), [R, oe] = h(o ?? !1), z = j ?? R, B = S === "alertDialog", [V, H] = h(i ?? !1), U = !B && (g ?? V), W = !B && b === !0, G = B ? !0 : T ?? F.modal, K = B ? "none" : M ?? F.outsidePress, q = D ?? F.mount, se = ie ?? (B ? "sm" : F.size), ce = v ?? (B ? "never" : F.fullScreen), le = te ?? (B ? "cancel" : "first"), ue = c ?? F.escape, de = t ?? F.back, fe = ne ?? F.placement, pe = re ?? F.scroll, me = ae ?? F.surface, [J, he] = h(z ? "entering" : "unmounted"), Y = m(null), X = m(A);
|
|
58
|
+
X.current = A, Y.current === null && (Y.current = ee({
|
|
59
|
+
onEnterComplete: () => X.current?.(!0),
|
|
60
|
+
onExitComplete: () => X.current?.(!1),
|
|
61
|
+
onStatusChange: he,
|
|
62
|
+
present: z,
|
|
63
|
+
skipInitialAnimation: !1
|
|
64
|
+
})), l(() => {
|
|
65
|
+
Y.current?.sync(z);
|
|
66
|
+
}, [z]), l(() => {
|
|
67
|
+
let e = Y.current;
|
|
68
|
+
return () => e?.stop();
|
|
69
|
+
}, []);
|
|
70
|
+
let ge = m(z);
|
|
71
|
+
z && (ge.current = !0);
|
|
72
|
+
let _e = q === "eager" ? !0 : q === "lazy" ? ge.current : J !== "unmounted", Z = m({
|
|
73
|
+
cancel: null,
|
|
74
|
+
content: null,
|
|
75
|
+
trigger: null
|
|
76
|
+
}), [Q, ve] = h(!1), [ye, be] = h(!1), xe = s((e, t) => (e === "cancel" && (Z.current.cancel = t), e === "title" && ve(!0), e === "description" && be(!0), () => {
|
|
77
|
+
e === "cancel" && (Z.current.cancel = null), e === "title" && ve(!1), e === "description" && be(!1);
|
|
78
|
+
}), []), $ = s((e, t, n, r) => {
|
|
79
|
+
if (e === z) return;
|
|
80
|
+
let i = !1, o = a({
|
|
81
|
+
controlled: j,
|
|
82
|
+
initial: z,
|
|
83
|
+
onRequest: (e) => {
|
|
84
|
+
i = e.cancelled, k?.(e.value, {
|
|
85
|
+
get cancelled() {
|
|
86
|
+
return e.cancelled;
|
|
87
|
+
},
|
|
88
|
+
cancel: () => e.cancel(),
|
|
89
|
+
previous: e.previous,
|
|
90
|
+
reason: t,
|
|
91
|
+
result: n,
|
|
92
|
+
source: e.source,
|
|
93
|
+
value: e.value
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}).request(e, t, r);
|
|
97
|
+
i || o && oe(e);
|
|
98
|
+
}, [
|
|
99
|
+
z,
|
|
100
|
+
k,
|
|
101
|
+
j
|
|
102
|
+
]), Se = s((e, t, n) => {
|
|
103
|
+
e !== U && a({
|
|
104
|
+
controlled: g,
|
|
105
|
+
initial: U,
|
|
106
|
+
onRequest: (e) => {
|
|
107
|
+
O?.(e.value, {
|
|
108
|
+
get cancelled() {
|
|
109
|
+
return e.cancelled;
|
|
110
|
+
},
|
|
111
|
+
cancel: () => e.cancel(),
|
|
112
|
+
previous: e.previous,
|
|
113
|
+
reason: t,
|
|
114
|
+
source: e.source,
|
|
115
|
+
value: e.value
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}).request(e, t, n) && H(e);
|
|
119
|
+
}, [
|
|
120
|
+
U,
|
|
121
|
+
g,
|
|
122
|
+
O
|
|
123
|
+
]);
|
|
124
|
+
d(N, () => ({
|
|
125
|
+
open: () => $(!0, "programmatic", void 0, void 0),
|
|
126
|
+
close: (e) => $(!1, "programmatic", e, void 0),
|
|
127
|
+
focus: () => Z.current.content?.focus(),
|
|
128
|
+
get content() {
|
|
129
|
+
return Z.current.content;
|
|
130
|
+
}
|
|
131
|
+
}), [$]);
|
|
132
|
+
let Ce = p(() => ({
|
|
133
|
+
announce: xe,
|
|
134
|
+
close: (e, t, n) => $(!1, e, t, n),
|
|
135
|
+
container: r,
|
|
136
|
+
descriptionId: ye ? `${L}description` : "",
|
|
137
|
+
back: de,
|
|
138
|
+
escape: ue,
|
|
139
|
+
finalFocus: f,
|
|
140
|
+
fullScreen: ce,
|
|
141
|
+
fullscreen: U,
|
|
142
|
+
fullscreenToggle: W,
|
|
143
|
+
initialFocus: le,
|
|
144
|
+
setFullscreen: Se,
|
|
145
|
+
loading: x === !0,
|
|
146
|
+
member: S,
|
|
147
|
+
modal: G,
|
|
148
|
+
mount: q,
|
|
149
|
+
mounted: _e,
|
|
150
|
+
nodes: Z.current,
|
|
151
|
+
open: z,
|
|
152
|
+
openWith: (e, t) => $(!0, e, void 0, t),
|
|
153
|
+
outsidePress: K,
|
|
154
|
+
placement: fe,
|
|
155
|
+
registerContent: (e) => {
|
|
156
|
+
Z.current.content = e;
|
|
157
|
+
},
|
|
158
|
+
registerLayer: (e) => Y.current?.setNode(e),
|
|
159
|
+
registerTrigger: (e) => {
|
|
160
|
+
Z.current.trigger = e;
|
|
161
|
+
},
|
|
162
|
+
scroll: pe,
|
|
163
|
+
size: se,
|
|
164
|
+
surface: me,
|
|
165
|
+
t: I,
|
|
166
|
+
titleId: Q ? `${L}title` : "",
|
|
167
|
+
tone: B ? P ?? "danger" : void 0,
|
|
168
|
+
triggerId: `${L}trigger`,
|
|
169
|
+
visible: J === "open",
|
|
170
|
+
interactive: J === "entering" || J === "open"
|
|
171
|
+
}), [
|
|
172
|
+
xe,
|
|
173
|
+
L,
|
|
174
|
+
r,
|
|
175
|
+
z,
|
|
176
|
+
U,
|
|
177
|
+
ye,
|
|
178
|
+
f,
|
|
179
|
+
B,
|
|
180
|
+
x,
|
|
181
|
+
S,
|
|
182
|
+
_e,
|
|
183
|
+
$,
|
|
184
|
+
de,
|
|
185
|
+
ue,
|
|
186
|
+
ce,
|
|
187
|
+
W,
|
|
188
|
+
le,
|
|
189
|
+
G,
|
|
190
|
+
q,
|
|
191
|
+
K,
|
|
192
|
+
fe,
|
|
193
|
+
pe,
|
|
194
|
+
se,
|
|
195
|
+
Se,
|
|
196
|
+
me,
|
|
197
|
+
J,
|
|
198
|
+
I,
|
|
199
|
+
Q,
|
|
200
|
+
P
|
|
201
|
+
]);
|
|
202
|
+
return /* @__PURE__ */ _(E.Provider, {
|
|
203
|
+
value: Ce,
|
|
204
|
+
children: n
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function k(e) {
|
|
208
|
+
return /* @__PURE__ */ _(O, {
|
|
209
|
+
...e,
|
|
210
|
+
member: "dialog"
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function A(e) {
|
|
214
|
+
return /* @__PURE__ */ _(O, {
|
|
215
|
+
...e,
|
|
216
|
+
member: "alertDialog"
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region src/dialog/dialog-parts.tsx
|
|
221
|
+
function j(e) {
|
|
222
|
+
return e.detail === 0 ? "keyboard" : "pointer";
|
|
223
|
+
}
|
|
224
|
+
var M = typeof document > "u" ? l : f;
|
|
225
|
+
function ne({ children: e, className: t, onClick: n, ref: i, render: a, style: o, ...s }) {
|
|
226
|
+
let c = D(), l = r({
|
|
227
|
+
...s,
|
|
228
|
+
"aria-controls": c.mounted ? `${c.triggerId}-content` : void 0,
|
|
229
|
+
"aria-expanded": c.open,
|
|
230
|
+
"aria-haspopup": "dialog",
|
|
231
|
+
children: e,
|
|
232
|
+
className: t,
|
|
233
|
+
"data-part": "trigger",
|
|
234
|
+
...c.open ? { "data-open": "" } : {},
|
|
235
|
+
id: c.triggerId,
|
|
236
|
+
onClick: (e) => {
|
|
237
|
+
n?.(e), !e.defaultPrevented && c.openWith(j(e), e);
|
|
238
|
+
},
|
|
239
|
+
ref: (e) => {
|
|
240
|
+
c.registerTrigger(e), typeof i == "function" ? i(e) : i && (i.current = e);
|
|
241
|
+
},
|
|
242
|
+
style: o,
|
|
243
|
+
type: "button"
|
|
244
|
+
});
|
|
245
|
+
return a === void 0 ? /* @__PURE__ */ _("button", { ...l }) : a(l);
|
|
246
|
+
}
|
|
247
|
+
function N(e) {
|
|
248
|
+
let [t, n] = h(null);
|
|
249
|
+
return M(() => {
|
|
250
|
+
if (!e.mounted) return;
|
|
251
|
+
let t = b({
|
|
252
|
+
origin: e.nodes.trigger,
|
|
253
|
+
...e.container === void 0 ? {} : { container: e.container }
|
|
254
|
+
});
|
|
255
|
+
return n(t.container), () => {
|
|
256
|
+
n(null), t.release();
|
|
257
|
+
};
|
|
258
|
+
}, [
|
|
259
|
+
e.container,
|
|
260
|
+
e.mounted,
|
|
261
|
+
e.nodes
|
|
262
|
+
]), t;
|
|
263
|
+
}
|
|
264
|
+
function re({ children: e, className: t, ref: n, render: a, style: o, ...s }) {
|
|
265
|
+
let c = D(), u = N(c), [d, f] = h(null), p = `${c.triggerId}-content`, g = c.titleId !== "" && s["aria-label"] === void 0, ee = c.descriptionId !== "";
|
|
266
|
+
l(() => {
|
|
267
|
+
if (c.member === "alertDialog" && d !== null && d.querySelector("[data-part=\"description\"]") === null) throw Error("AlertDialog requires a DialogDescription: the alertdialog pattern makes aria-describedby mandatory.");
|
|
268
|
+
}, [d, c.member]);
|
|
269
|
+
let y = m(c);
|
|
270
|
+
y.current = c;
|
|
271
|
+
let { back: b, escape: C, modal: w, open: T, outsidePress: E } = c, O = c.nodes.trigger;
|
|
272
|
+
l(() => {
|
|
273
|
+
if (d === null || !T) return;
|
|
274
|
+
let e = d.closest("[data-ui=\"dialog\"]");
|
|
275
|
+
if (e === null) return;
|
|
276
|
+
let t = te(e, {
|
|
277
|
+
back: w && b === "close",
|
|
278
|
+
branches: O === null ? [] : [O],
|
|
279
|
+
content: d,
|
|
280
|
+
escape: C === "close",
|
|
281
|
+
modal: w,
|
|
282
|
+
onDismiss: (e) => {
|
|
283
|
+
if (e.reason === "outsidePress" && E === "none") return e.cancel();
|
|
284
|
+
y.current.close(e.reason, void 0, e.source);
|
|
285
|
+
},
|
|
286
|
+
outsidePress: E === "close",
|
|
287
|
+
outsidePressEvent: "click"
|
|
288
|
+
}), n = y.current.initialFocus, r = y.current.finalFocus, a = i(d, {
|
|
289
|
+
contain: w,
|
|
290
|
+
initial: n === "cancel" ? () => y.current.nodes.cancel : typeof n == "object" && n ? () => n.current : n,
|
|
291
|
+
...r === void 0 ? {} : { restore: r === !1 ? !1 : () => r.current }
|
|
292
|
+
});
|
|
293
|
+
return a.enter(), () => {
|
|
294
|
+
t.destroy(), a.destroy();
|
|
295
|
+
};
|
|
296
|
+
}, [
|
|
297
|
+
b,
|
|
298
|
+
d,
|
|
299
|
+
C,
|
|
300
|
+
w,
|
|
301
|
+
T,
|
|
302
|
+
E,
|
|
303
|
+
O
|
|
304
|
+
]);
|
|
305
|
+
let k = c.fullScreen !== "never" || c.fullscreen;
|
|
306
|
+
if (l(() => {
|
|
307
|
+
if (d === null || !c.open || !k) return;
|
|
308
|
+
let e = d.closest("[data-ui=\"dialog\"]");
|
|
309
|
+
if (e === null) return;
|
|
310
|
+
let t = S(e.ownerDocument.defaultView, (t) => {
|
|
311
|
+
t === 0 ? e.style.removeProperty("--slotted-keyboard-inset") : e.style.setProperty("--slotted-keyboard-inset", `${t}px`);
|
|
312
|
+
});
|
|
313
|
+
return () => {
|
|
314
|
+
t(), e.style.removeProperty("--slotted-keyboard-inset");
|
|
315
|
+
};
|
|
316
|
+
}, [
|
|
317
|
+
d,
|
|
318
|
+
k,
|
|
319
|
+
c.open
|
|
320
|
+
]), !c.mounted || u === null) return null;
|
|
321
|
+
let A = r({
|
|
322
|
+
"data-full-screen": c.fullScreen,
|
|
323
|
+
...c.fullscreen ? { "data-fullscreen": "" } : {},
|
|
324
|
+
...c.loading ? { "data-loading": "" } : {},
|
|
325
|
+
...c.modal ? { "data-modal": "" } : {},
|
|
326
|
+
"data-mount": c.mount,
|
|
327
|
+
...c.visible ? { "data-open": "" } : {},
|
|
328
|
+
"data-outside-press": c.outsidePress,
|
|
329
|
+
"data-part": "root",
|
|
330
|
+
"data-placement": c.placement,
|
|
331
|
+
"data-scroll": c.scroll,
|
|
332
|
+
"data-size": c.size,
|
|
333
|
+
"data-surface": c.surface,
|
|
334
|
+
...c.tone === void 0 ? {} : { "data-tone": c.tone },
|
|
335
|
+
"data-ui": "dialog"
|
|
336
|
+
}), j = r({
|
|
337
|
+
...s,
|
|
338
|
+
...ee ? { "aria-describedby": c.descriptionId } : {},
|
|
339
|
+
...g ? { "aria-labelledby": c.titleId } : {},
|
|
340
|
+
...c.modal ? { "aria-modal": !0 } : {},
|
|
341
|
+
children: e,
|
|
342
|
+
className: t,
|
|
343
|
+
"data-part": "content",
|
|
344
|
+
id: p,
|
|
345
|
+
ref: (e) => {
|
|
346
|
+
f(e), c.registerContent(e), typeof n == "function" ? n(e) : n && (n.current = e);
|
|
347
|
+
},
|
|
348
|
+
role: c.member === "alertDialog" ? "alertdialog" : "dialog",
|
|
349
|
+
style: o
|
|
350
|
+
}), M = a === void 0 ? /* @__PURE__ */ _("div", { ...j }) : a(j);
|
|
351
|
+
return x(/* @__PURE__ */ v("div", {
|
|
352
|
+
...A,
|
|
353
|
+
...c.interactive ? {} : { inert: !0 },
|
|
354
|
+
ref: c.registerLayer,
|
|
355
|
+
children: [/* @__PURE__ */ _("div", {
|
|
356
|
+
"data-part": "backdrop",
|
|
357
|
+
"data-part-backdrop": ""
|
|
358
|
+
}), /* @__PURE__ */ _("div", {
|
|
359
|
+
"data-part": "viewport",
|
|
360
|
+
"data-part-viewport": "",
|
|
361
|
+
children: M
|
|
362
|
+
})]
|
|
363
|
+
}), u);
|
|
364
|
+
}
|
|
365
|
+
function ie({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
366
|
+
let s = D(), c = r({
|
|
367
|
+
...o,
|
|
368
|
+
children: /* @__PURE__ */ v(g, { children: [e, s.fullscreenToggle ? /* @__PURE__ */ _(ae, {}) : null] }),
|
|
369
|
+
className: t,
|
|
370
|
+
"data-part": "header",
|
|
371
|
+
style: a
|
|
372
|
+
});
|
|
373
|
+
return i === void 0 ? /* @__PURE__ */ _("header", {
|
|
374
|
+
...c,
|
|
375
|
+
ref: n
|
|
376
|
+
}) : i(c);
|
|
377
|
+
}
|
|
378
|
+
function ae() {
|
|
379
|
+
let e = D();
|
|
380
|
+
return /* @__PURE__ */ _("button", {
|
|
381
|
+
"aria-label": e.t("fullScreen"),
|
|
382
|
+
"aria-pressed": e.fullscreen,
|
|
383
|
+
"data-part": "fullscreen",
|
|
384
|
+
"data-part-fullscreen": "",
|
|
385
|
+
onClick: (t) => {
|
|
386
|
+
t.defaultPrevented || e.setFullscreen(!e.fullscreen, t.detail === 0 ? "keyboard" : "pointer", t);
|
|
387
|
+
},
|
|
388
|
+
type: "button",
|
|
389
|
+
children: /* @__PURE__ */ _(n, { children: /* @__PURE__ */ _(t, { name: e.fullscreen ? "minimize" : "maximize" }) })
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
function P({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
393
|
+
let s = D();
|
|
394
|
+
l(() => s.announce("title", null), [s]);
|
|
395
|
+
let c = r({
|
|
396
|
+
...o,
|
|
397
|
+
children: e,
|
|
398
|
+
className: t,
|
|
399
|
+
"data-part": "title",
|
|
400
|
+
id: s.titleId === "" ? void 0 : s.titleId,
|
|
401
|
+
style: a
|
|
402
|
+
});
|
|
403
|
+
return i === void 0 ? /* @__PURE__ */ _("h2", {
|
|
404
|
+
...c,
|
|
405
|
+
ref: n
|
|
406
|
+
}) : i(c);
|
|
407
|
+
}
|
|
408
|
+
function F({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
409
|
+
let s = D();
|
|
410
|
+
l(() => s.announce("description", null), [s]);
|
|
411
|
+
let c = r({
|
|
412
|
+
...o,
|
|
413
|
+
children: e,
|
|
414
|
+
className: t,
|
|
415
|
+
"data-part": "description",
|
|
416
|
+
id: s.descriptionId === "" ? void 0 : s.descriptionId,
|
|
417
|
+
style: a
|
|
418
|
+
});
|
|
419
|
+
return i === void 0 ? /* @__PURE__ */ _("p", {
|
|
420
|
+
...c,
|
|
421
|
+
ref: n
|
|
422
|
+
}) : i(c);
|
|
423
|
+
}
|
|
424
|
+
function I({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
425
|
+
let s = D(), c = r({
|
|
426
|
+
...o,
|
|
427
|
+
...s.loading ? { "aria-busy": !0 } : {},
|
|
428
|
+
children: e,
|
|
429
|
+
className: t,
|
|
430
|
+
"data-part": "body",
|
|
431
|
+
style: a
|
|
432
|
+
});
|
|
433
|
+
return i === void 0 ? /* @__PURE__ */ _("div", {
|
|
434
|
+
...c,
|
|
435
|
+
ref: n
|
|
436
|
+
}) : i(c);
|
|
437
|
+
}
|
|
438
|
+
function L({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
|
|
439
|
+
let s = r({
|
|
440
|
+
...o,
|
|
441
|
+
children: e,
|
|
442
|
+
className: t,
|
|
443
|
+
"data-part": "footer",
|
|
444
|
+
style: a
|
|
445
|
+
});
|
|
446
|
+
return i === void 0 ? /* @__PURE__ */ _("footer", {
|
|
447
|
+
...s,
|
|
448
|
+
ref: n
|
|
449
|
+
}) : i(s);
|
|
450
|
+
}
|
|
451
|
+
function R(e, t, n, r) {
|
|
452
|
+
let i = D();
|
|
453
|
+
return {
|
|
454
|
+
dialog: i,
|
|
455
|
+
handleClick: (e) => {
|
|
456
|
+
n?.(e), !e.defaultPrevented && i.close(t, r, e);
|
|
457
|
+
},
|
|
458
|
+
part: e
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
function oe({ children: e, className: i, onClick: a, ref: o, render: s, style: c, value: l, ...u }) {
|
|
462
|
+
let { dialog: d, handleClick: f } = R("close", "dismiss", a, l);
|
|
463
|
+
if (d.member === "alertDialog") throw Error("AlertDialog has no close part: a confirmation is answered with AlertDialogCancel or AlertDialogAction, not dismissed by an ✕.");
|
|
464
|
+
let p = r({
|
|
465
|
+
"aria-label": d.t("close"),
|
|
466
|
+
...u,
|
|
467
|
+
children: e ?? /* @__PURE__ */ _(n, { children: /* @__PURE__ */ _(t, { name: "x" }) }),
|
|
468
|
+
className: i,
|
|
469
|
+
"data-part": "close",
|
|
470
|
+
onClick: f,
|
|
471
|
+
style: c,
|
|
472
|
+
type: "button"
|
|
473
|
+
});
|
|
474
|
+
return s === void 0 ? /* @__PURE__ */ _("button", {
|
|
475
|
+
...p,
|
|
476
|
+
ref: o
|
|
477
|
+
}) : s(p);
|
|
478
|
+
}
|
|
479
|
+
var z = {
|
|
480
|
+
accent: "circle-info",
|
|
481
|
+
secondary: "circle-info",
|
|
482
|
+
info: "circle-info",
|
|
483
|
+
success: "circle-check",
|
|
484
|
+
warning: "triangle-alert",
|
|
485
|
+
danger: "circle-alert"
|
|
486
|
+
};
|
|
487
|
+
function B({ children: e, className: i, ref: a, render: o, style: s, ...c }) {
|
|
488
|
+
let l = D(), u = r({
|
|
489
|
+
"aria-hidden": !0,
|
|
490
|
+
...c,
|
|
491
|
+
children: e ?? /* @__PURE__ */ _(n, { children: /* @__PURE__ */ _(t, { name: l.tone === void 0 ? "triangle-alert" : z[l.tone] }) }),
|
|
492
|
+
className: i,
|
|
493
|
+
"data-part": "icon",
|
|
494
|
+
style: s
|
|
495
|
+
});
|
|
496
|
+
return o === void 0 ? /* @__PURE__ */ _("span", {
|
|
497
|
+
...u,
|
|
498
|
+
ref: a
|
|
499
|
+
}) : o(u);
|
|
500
|
+
}
|
|
501
|
+
function V({ children: e, className: t, onClick: n, ref: i, render: a, style: o, value: s, ...c }) {
|
|
502
|
+
let { dialog: l, handleClick: u } = R("cancel", "dismiss", n, s ?? "cancel"), d = r({
|
|
503
|
+
...c,
|
|
504
|
+
children: e,
|
|
505
|
+
className: t,
|
|
506
|
+
"data-part": "cancel",
|
|
507
|
+
onClick: u,
|
|
508
|
+
style: o,
|
|
509
|
+
type: "button"
|
|
510
|
+
}), f = (e) => {
|
|
511
|
+
l.announce("cancel", e), typeof i == "function" ? i(e) : i && (i.current = e);
|
|
512
|
+
};
|
|
513
|
+
return a === void 0 ? /* @__PURE__ */ _("button", {
|
|
514
|
+
...d,
|
|
515
|
+
ref: f
|
|
516
|
+
}) : a({
|
|
517
|
+
...d,
|
|
518
|
+
ref: f
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
function H({ children: e, className: t, onClick: n, ref: i, render: a, style: o, value: s, ...c }) {
|
|
522
|
+
let { handleClick: l } = R("action", "submit", n, s ?? "confirm"), u = r({
|
|
523
|
+
...c,
|
|
524
|
+
children: e,
|
|
525
|
+
className: t,
|
|
526
|
+
"data-part": "action",
|
|
527
|
+
onClick: l,
|
|
528
|
+
style: o,
|
|
529
|
+
type: "button"
|
|
530
|
+
});
|
|
531
|
+
return a === void 0 ? /* @__PURE__ */ _("button", {
|
|
532
|
+
...u,
|
|
533
|
+
ref: i
|
|
534
|
+
}) : a(u);
|
|
535
|
+
}
|
|
536
|
+
//#endregion
|
|
537
|
+
export { oe as a, L as c, ne as d, A as f, w as g, T as h, I as i, ie as l, D as m, V as n, re as o, k as p, B as r, F as s, H as t, P as u };
|
package/dist/dialog.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./dialog-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./dialog-BB5MdJex.js";
|
|
2
2
|
export { r as AlertDialog, m as AlertDialogAction, l as AlertDialogCancel, f as AlertDialogIcon, d as Dialog, o as DialogBody, e as DialogClose, u as DialogContent, a as DialogDefaultsProvider, p as DialogDescription, t as DialogFooter, s as DialogHeader, h as DialogTitle, n as DialogTrigger, c as useDialog, i as useDialogDefaults };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { keyedProps as e } from "@slotted/core/selector-key";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/divider/divider.tsx
|
|
4
|
+
function n({ align: n = "center", decorative: i = !1, inset: a = !1, label: o, orientation: s = "horizontal", render: c, role: l, ...u }) {
|
|
5
|
+
let d = o !== void 0, f = c === void 0 && !d, p = e({
|
|
6
|
+
...u,
|
|
7
|
+
...d && !i ? { "aria-label": o } : {},
|
|
8
|
+
...s === "vertical" && !i ? { "aria-orientation": "vertical" } : {},
|
|
9
|
+
...d ? {
|
|
10
|
+
"data-align": n,
|
|
11
|
+
"data-labelled": ""
|
|
12
|
+
} : {},
|
|
13
|
+
...a ? { "data-inset": "" } : {},
|
|
14
|
+
"data-orientation": s,
|
|
15
|
+
"data-part": "root",
|
|
16
|
+
"data-ui": "divider",
|
|
17
|
+
role: l ?? (i ? "none" : f ? void 0 : "separator")
|
|
18
|
+
});
|
|
19
|
+
return c === void 0 ? d ? /* @__PURE__ */ t("div", {
|
|
20
|
+
...p,
|
|
21
|
+
children: r(o)
|
|
22
|
+
}) : /* @__PURE__ */ t("hr", { ...p }) : c(d ? {
|
|
23
|
+
...p,
|
|
24
|
+
children: r(o)
|
|
25
|
+
} : p);
|
|
26
|
+
}
|
|
27
|
+
function r(e) {
|
|
28
|
+
return /* @__PURE__ */ t("span", {
|
|
29
|
+
"data-part": "label",
|
|
30
|
+
"data-part-label": "",
|
|
31
|
+
children: e
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { n as t };
|
package/dist/divider.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./divider-
|
|
1
|
+
import { t as e } from "./divider-ryFeK0Pi.js";
|
|
2
2
|
export { e as Divider };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
## Slotted UI (@slotted/react)
|
|
2
2
|
|
|
3
|
+
Paths below are relative to the directory that holds node_modules.
|
|
4
|
+
|
|
3
5
|
Before writing or changing UI, read `node_modules/@slotted/react/dist/docs/index.md`, then the file of each family you use. These files match the installed version: prefer them over prior knowledge of the library.
|
|
4
6
|
|
|
5
7
|
- Import components from `@slotted/react` or the family subpath that each file's Import section shows.
|
|
@@ -9,3 +11,13 @@ Before writing or changing UI, read `node_modules/@slotted/react/dist/docs/index
|
|
|
9
11
|
- Application CSS uses `var(--slotted-*)` tokens for color, spacing and radius, inside a layer declared after the library's: `@layer slotted, app;`.
|
|
10
12
|
- To render a family as another element, such as a router link or a trigger, pass `render`.
|
|
11
13
|
- In CSS and tests, select a family by `[data-ui="<family>"]` and its parts by `[data-part="<part>"]`.
|
|
14
|
+
|
|
15
|
+
### Tasks
|
|
16
|
+
|
|
17
|
+
Read the skill before the task:
|
|
18
|
+
|
|
19
|
+
- Compose or change a screen — a list, a record, a form, an overview: `node_modules/@slotted/react/dist/docs/skills/compose-screen/SKILL.md`
|
|
20
|
+
- Show what a screen draws while it waits, and its empty and error states: `node_modules/@slotted/react/dist/docs/skills/waiting-states/SKILL.md`
|
|
21
|
+
- Review a screen against the guidelines, or fix what a review found: `node_modules/@slotted/react/dist/docs/skills/review-screen/SKILL.md`
|
|
22
|
+
- Write a component or element that no family draws: `node_modules/@slotted/react/dist/docs/skills/build-own-element/SKILL.md`
|
|
23
|
+
- Change the brand colour, the scheme, the density or a control's shape: `node_modules/@slotted/react/dist/docs/skills/theme-app/SKILL.md`
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"part": "actions",
|
|
82
82
|
"element": "div",
|
|
83
83
|
"required": true,
|
|
84
|
-
"purpose": "The run that gives way, and the box the collapse measures. It carries margin-inline-start: auto, which anchors it to the bar’s end edge; below 24rem of container it becomes a full-width column with the action that confirms on top."
|
|
84
|
+
"purpose": "The run that gives way, and the box the collapse measures. It carries margin-inline-start: auto, which anchors it to the bar’s end edge; below 24rem of container, with no overflow control in the bar, it becomes a full-width column with the action that confirms on top."
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"part": "action",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"type": "string | ((hidden: number) => string)",
|
|
165
165
|
"defaultValue": "counted",
|
|
166
166
|
"appliesTo": "ActionBarOverflow",
|
|
167
|
-
"description": "The accessible name of the control that holds what did not fit. The default counts — \"3 more actions\" — because three dots say nothing about how much is behind them"
|
|
167
|
+
"description": "The accessible name of the control that holds what did not fit. The default counts — \"3 more actions\" — because three dots say nothing about how much is behind them, in the language in force, with its plural"
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
"name": "align, side, size",
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
"There is no APG pattern for a bar of actions, and the closest official guidance is the Toolbar pattern (w3.org/WAI/ARIA/apg/patterns/toolbar/). This family departs from it deliberately: there is no roving focus, so Tab reaches every action in the order the author wrote it. The controls here are the page’s own form actions, and a reader walking a form expects to arrive at Cancel and then at Save; a composite would make the whole bar one tab stop and put Save behind an arrow key that announces nothing. The cost is written down — a bar of ten icon-only actions is ten tab stops, and that bar is the Toolbar family.",
|
|
245
245
|
"The role follows the departure. ARIA 1.2 makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management to declare; without it, group is what is true. The bar names itself with the consumer’s aria-label or aria-labelledby, because only the page knows which task it finishes — and a role the consumer wrote on the element survives the family’s own.",
|
|
246
246
|
"The only keyboard this family owns is the overflow trigger’s, and it is the Menu family’s: Enter, Space and ArrowDown open the surface, Escape closes it and returns focus to the trigger. Focus is moved onto the trigger before the action holding it is hidden, so a reader who was on the fifth button lands on the control that now holds it rather than on the document body.",
|
|
247
|
-
"The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots
|
|
247
|
+
"The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural (“Mais 3 ações” in pt-BR). The count in the DOM, data-collapsed, is the same fact for a stylesheet or a test.",
|
|
248
248
|
"A bar out of action is a fieldset around it: the platform disables every control inside and takes them out of the tab order with it. The family writes no data-disabled and declares no disabled state, because it does not own the capability — a container that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent.",
|
|
249
249
|
"A bar that is not present leaves the document once it has left the view, rather than staying mounted and hidden. Carbon’s batch bar writes aria-hidden on its root and leaves the buttons inside reachable by Tab, which puts focus in a region the screen reader announces as absent. Appearing never moves focus either: the bar is not a dialog, and taking focus from a reader who is ticking boxes is exactly the jump a selection bar must not make.",
|
|
250
250
|
"Under forced colours the rule between two runs keeps its own paint, because a background flattens to Canvas and would take the boundary between a destructive action and a frequent one with it. Everything else the reader sees belongs to the controls the consumer placed, and each keeps its own states, its own focus ring and its own contrast."
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
{
|
|
394
394
|
"id": "stacked",
|
|
395
395
|
"title": "The bar on a phone",
|
|
396
|
-
"note": "Below 24rem of container
|
|
396
|
+
"note": "Below 24rem of container a bar with no overflow control becomes a full-width column with the action that confirms on top, and the collapse stops running — a column has room for everything, so there is no menu. A bar with an overflow control keeps one row: the actions without a counterpart stay and the rest fold into the menu. The DOM order does not change, so Tab still reads the form’s order.",
|
|
397
397
|
"language": "tsx",
|
|
398
398
|
"source": "// The breakpoint lives in the stylesheet's container query, and the\n// binding reads back the property that query raises rather than holding\n// a copy of the number.\n<ActionBar aria-label=\"Ações do pedido\" variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\">Descartar alterações</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Guardar alterações</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
|
|
399
399
|
"verdict": "excerpt"
|
package/dist/docs/action-bar.md
CHANGED
|
@@ -52,7 +52,7 @@ Excerpt — not a complete module
|
|
|
52
52
|
| `onOverflowChange` | `(hidden: number) => void` | — | ActionBar | How many actions gave way, once per change. There is no controlled pair over the collapsed set: it is a measurement, and a consumer who owned it could assert that a bar fits when the layout says it does not |
|
|
53
53
|
| `priority` | `'pinned' \| 'high' \| 'low' \| 'hide' \| 'always'` | low with a counterpart, pinned without | ActionBarAction | Where the action stands in the order of giving way. pinned never goes; high goes after low and hide; low is the first into the surface; hide goes first and is not offered in the surface at all; always is never in the bar. A rank that needs a counterpart and has none behaves as pinned, so a consumer error leaves the control on the bar |
|
|
54
54
|
| `counterpart` | `ReactNode` | — | ActionBarAction | What the action becomes in the surface. An action that declares none is pinned — pinning is the absence of a counterpart rather than a second prop, so the two can never disagree. It is not called overflow, because that word names what a container does with more content than it has room for |
|
|
55
|
-
| `label` | `string \| ((hidden: number) => string)` | counted | ActionBarOverflow | The accessible name of the control that holds what did not fit. The default counts — "3 more actions" — because three dots say nothing about how much is behind them |
|
|
55
|
+
| `label` | `string \| ((hidden: number) => string)` | counted | ActionBarOverflow | The accessible name of the control that holds what did not fit. The default counts — "3 more actions" — because three dots say nothing about how much is behind them, in the language in force, with its plural |
|
|
56
56
|
| `align, side, size` | `MenuAlign \| MenuSide \| MenuSize` | from the Menu defaults | ActionBarOverflow | Where the surface sits against the trigger, and its own measure. Everything else about the layer an application sets once with MenuDefaultsProvider |
|
|
57
57
|
| `aria-label` | `string` | — | ActionBar | The name of the bar. The family writes none: only the page knows which task the bar finishes. aria-labelledby works the same way |
|
|
58
58
|
| `role` | `string` | group | ActionBar | group, because there is no roving focus to declare — ARIA makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management. A consumer with ten icon-only actions may write toolbar themselves and keeps it, but that consumer wants the Toolbar family |
|
|
@@ -78,7 +78,7 @@ Excerpt — not a complete module
|
|
|
78
78
|
- There is no APG pattern for a bar of actions, and the closest official guidance is the Toolbar pattern (w3.org/WAI/ARIA/apg/patterns/toolbar/). This family departs from it deliberately: there is no roving focus, so Tab reaches every action in the order the author wrote it. The controls here are the page’s own form actions, and a reader walking a form expects to arrive at Cancel and then at Save; a composite would make the whole bar one tab stop and put Save behind an arrow key that announces nothing. The cost is written down — a bar of ten icon-only actions is ten tab stops, and that bar is the Toolbar family.
|
|
79
79
|
- The role follows the departure. ARIA 1.2 makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management to declare; without it, group is what is true. The bar names itself with the consumer’s aria-label or aria-labelledby, because only the page knows which task it finishes — and a role the consumer wrote on the element survives the family’s own.
|
|
80
80
|
- The only keyboard this family owns is the overflow trigger’s, and it is the Menu family’s: Enter, Space and ArrowDown open the surface, Escape closes it and returns focus to the trigger. Focus is moved onto the trigger before the action holding it is hidden, so a reader who was on the fifth button lands on the control that now holds it rather than on the document body.
|
|
81
|
-
- The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots
|
|
81
|
+
- The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural (“Mais 3 ações” in pt-BR). The count in the DOM, data-collapsed, is the same fact for a stylesheet or a test.
|
|
82
82
|
- A bar out of action is a fieldset around it: the platform disables every control inside and takes them out of the tab order with it. The family writes no data-disabled and declares no disabled state, because it does not own the capability — a container that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent.
|
|
83
83
|
- A bar that is not present leaves the document once it has left the view, rather than staying mounted and hidden. Carbon’s batch bar writes aria-hidden on its root and leaves the buttons inside reachable by Tab, which puts focus in a region the screen reader announces as absent. Appearing never moves focus either: the bar is not a dialog, and taking focus from a reader who is ticking boxes is exactly the jump a selection bar must not make.
|
|
84
84
|
- Under forced colours the rule between two runs keeps its own paint, because a background flattens to Canvas and would take the boundary between a destructive action and a frequent one with it. Everything else the reader sees belongs to the controls the consumer placed, and each keeps its own states, its own focus ring and its own contrast.
|
|
@@ -280,7 +280,7 @@ Excerpt — not a complete module
|
|
|
280
280
|
|
|
281
281
|
### The bar on a phone
|
|
282
282
|
|
|
283
|
-
Below 24rem of container
|
|
283
|
+
Below 24rem of container a bar with no overflow control becomes a full-width column with the action that confirms on top, and the collapse stops running — a column has room for everything, so there is no menu. A bar with an overflow control keeps one row: the actions without a counterpart stay and the rest fold into the menu. The DOM order does not change, so Tab still reads the form’s order.
|
|
284
284
|
|
|
285
285
|
Excerpt — not a complete module
|
|
286
286
|
|