spell-ui 0.8.9 → 0.8.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-components.md +9 -3
- package/README-frameworks.md +5 -5
- package/README-migrating.md +2 -2
- package/README.md +5 -5
- package/dist/{CodeEngine-GL9EzwF1.js → CodeEngine-B684vKxR.js} +39 -100
- package/dist/{CodeEngine-GL9EzwF1.js.map → CodeEngine-B684vKxR.js.map} +1 -1
- package/dist/{Dragging-CMZoLEWQ.js → Dragging-B93hbRxF.js} +17 -15
- package/dist/Dragging-B93hbRxF.js.map +1 -0
- package/dist/{MarkdownEngine-CW1WGqNp.js → MarkdownEngine-D1jqcFeU.js} +11 -72
- package/dist/{MarkdownEngine-CW1WGqNp.js.map → MarkdownEngine-D1jqcFeU.js.map} +1 -1
- package/dist/MarkdownSanitizer-CqsWivYJ.js +866 -0
- package/dist/MarkdownSanitizer-CqsWivYJ.js.map +1 -0
- package/dist/{PrefStore-Qv0e5y04.js → PrefStore-Di83C0bY.js} +13 -9
- package/dist/PrefStore-Di83C0bY.js.map +1 -0
- package/dist/ScrollingRow-DkOtx2QK.js +89 -0
- package/dist/ScrollingRow-DkOtx2QK.js.map +1 -0
- package/dist/{SitePages-CciwREek.js → SitePages-B3zd5Zgu.js} +37 -10
- package/dist/SitePages-B3zd5Zgu.js.map +1 -0
- package/dist/SlottedItems-DWfAZYqM.js +88 -0
- package/dist/SlottedItems-DWfAZYqM.js.map +1 -0
- package/dist/{TemporalPolyfill-D9mr7_wA.js → TemporalPolyfill-Bv_c_xa0.js} +7 -12
- package/dist/{TemporalPolyfill-D9mr7_wA.js.map → TemporalPolyfill-Bv_c_xa0.js.map} +1 -1
- package/dist/{ThemeDraft-B7NPif4d.js → ThemeDraft-CyX3YA_L.js} +41 -43
- package/dist/{ThemeDraft-B7NPif4d.js.map → ThemeDraft-CyX3YA_L.js.map} +1 -1
- package/dist/{TreeMeasure-BVJeGb1L.js → TreeMeasure-BK74uexu.js} +3 -4
- package/dist/{TreeMeasure-BVJeGb1L.js.map → TreeMeasure-BK74uexu.js.map} +1 -1
- package/dist/UIButton-BmIiXYDC.js +5 -0
- package/dist/UIButton-BmIiXYDC.js.map +1 -0
- package/dist/UIGrid-2ZUA1YEc.js +200 -0
- package/dist/UIGrid-2ZUA1YEc.js.map +1 -0
- package/dist/{UIInput-BodVbUoQ.js → UIInput-B3K0w4ow.js} +2 -3
- package/dist/UIInput-B3K0w4ow.js.map +1 -0
- package/dist/{UIKeys-Rh_gUZjP.js → UIKeys-DmXvyJuU.js} +12 -12
- package/dist/UIKeys-DmXvyJuU.js.map +1 -0
- package/dist/{UILabel-DgJUBzB_.js → UILabel-pCjKxQlQ.js} +2 -3
- package/dist/UILabel-pCjKxQlQ.js.map +1 -0
- package/dist/UIMenu-CqURPocK.js +42 -0
- package/dist/UIMenu-CqURPocK.js.map +1 -0
- package/dist/{UIRuntime-KH309p5B.js → UIRuntime-BXutHphM.js} +253 -239
- package/dist/UIRuntime-BXutHphM.js.map +1 -0
- package/dist/{UISegment-CMMIW7cZ.js → UISegment-BF4Tgy2D.js} +2 -3
- package/dist/UISegment-BF4Tgy2D.js.map +1 -0
- package/dist/_spell-element/UIComponent.d.ts +8 -0
- package/dist/_spell-element/vocabulary.types.d.ts +20 -2
- package/dist/_util/Dragging.d.ts +14 -2
- package/dist/_util/dom.d.ts +12 -8
- package/dist/_util/measures/Dimension.d.ts +1 -1
- package/dist/_util/persist/PrefStore.d.ts +7 -2
- package/dist/_util/persist/persist.types.d.ts +6 -0
- package/dist/_util/platform.d.ts +54 -0
- package/dist/_util/string.d.ts +32 -0
- package/dist/api.js +2 -3
- package/dist/api.js.map +1 -1
- package/dist/{apple.palette-B4ivrNlM.js → apple.palette-YLjENwUt.js} +2 -3
- package/dist/apple.palette-YLjENwUt.js.map +1 -0
- package/dist/{classic-DCTQrteU.js → classic-BHyJFvQa.js} +2 -3
- package/dist/classic-BHyJFvQa.js.map +1 -0
- package/dist/components/ComponentDefinitions.d.ts +55 -8
- package/dist/components/components.es.d.ts +2 -1
- package/dist/components/components.planned.d.ts +1 -1
- package/dist/components/components.types.d.ts +22 -0
- package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
- package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
- package/dist/components/ui-action/UIAction.d.ts +38 -1
- package/dist/components/ui-action/UIAction.en.d.ts +17 -8
- package/dist/components/ui-action/UIAction.es.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
- package/dist/components/ui-app-menu/UIAppMenu.d.ts +41 -0
- package/dist/components/ui-app-menu/UIAppMenu.en.d.ts +294 -0
- package/dist/components/ui-app-menu/UIAppMenu.es.d.ts +35 -0
- package/dist/components/ui-app-menu/index.d.ts +2 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
- package/dist/components/ui-button/UIButton.d.ts +5 -4
- package/dist/components/ui-button/UIButton.en.d.ts +4 -3
- package/dist/components/ui-button/UIButton.fallback.d.ts +4 -3
- package/dist/components/ui-button/UIButton.types.d.ts +1 -1
- package/dist/components/ui-button/UIButtons.d.ts +7 -5
- package/dist/components/ui-button/UIButtons.en.d.ts +5 -3
- package/dist/components/ui-button/UIButtons.es.d.ts +1 -0
- package/dist/components/ui-button/UIOr.d.ts +1 -0
- package/dist/components/ui-button/UIOr.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +1 -0
- package/dist/components/ui-card/UICard.d.ts +1 -0
- package/dist/components/ui-card/UICard.en.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +1 -0
- package/dist/components/ui-card/UICards.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +1 -0
- package/dist/components/ui-code/CodeHighlighter.d.ts +7 -3
- package/dist/components/ui-code/UICode.d.ts +12 -1
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-code/UICode.types.d.ts +9 -0
- package/dist/components/ui-comment/UIComment.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +54 -1
- package/dist/components/ui-container/UIContainer.en.d.ts +40 -1
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-device/UIDevice.d.ts +234 -0
- package/dist/components/ui-device/UIDevice.en.d.ts +126 -0
- package/dist/components/ui-device/UIDevice.es.d.ts +52 -0
- package/dist/components/ui-device/index.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +1 -0
- package/dist/components/ui-dropdown/SlottedItems.d.ts +9 -1
- package/dist/components/ui-dropdown/UIDropdown.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
- package/dist/components/ui-example/UIExample.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
- package/dist/components/ui-form/UIField.d.ts +11 -4
- package/dist/components/ui-form/UIField.en.d.ts +3 -2
- package/dist/components/ui-form/UIFields.d.ts +1 -0
- package/dist/components/ui-form/UIFields.en.d.ts +1 -0
- package/dist/components/ui-form/UIForm.d.ts +1 -0
- package/dist/components/ui-form/UIForm.en.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.d.ts +4 -3
- package/dist/components/ui-grid/UIColumn.en.d.ts +4 -3
- package/dist/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +5 -1
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +1 -0
- package/dist/components/ui-image/UIImage.d.ts +1 -0
- package/dist/components/ui-image/UIImage.en.d.ts +1 -0
- package/dist/components/ui-image/UIImages.d.ts +1 -0
- package/dist/components/ui-image/UIImages.en.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.d.ts +1 -0
- package/dist/components/ui-input/UIInput.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +1 -0
- package/dist/components/ui-item/UIItem.d.ts +19 -8
- package/dist/components/ui-item/UIItem.en.d.ts +2 -1
- package/dist/components/ui-items/UIItems.d.ts +1 -0
- package/dist/components/ui-items/UIItems.en.d.ts +1 -0
- package/dist/components/ui-json/UIJson.d.ts +1 -0
- package/dist/components/ui-json/UIJson.en.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
- package/dist/components/ui-label/UILabel.d.ts +3 -2
- package/dist/components/ui-label/UILabel.en.d.ts +3 -2
- package/dist/components/ui-label/UILabels.d.ts +1 -0
- package/dist/components/ui-label/UILabels.en.d.ts +1 -0
- package/dist/components/ui-list/UIList.d.ts +1 -0
- package/dist/components/ui-list/UIList.en.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
- package/dist/components/ui-markdown/MarkdownBox.d.ts +7 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +9 -4
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +5 -0
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +1 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +19 -1
- package/dist/components/ui-menu/SegmentedThumb.d.ts +8 -1
- package/dist/components/ui-menu/SubMenuAim.d.ts +115 -0
- package/dist/components/ui-menu/TitleFit.d.ts +16 -1
- package/dist/components/ui-menu/UIMenu.d.ts +112 -9
- package/dist/components/ui-menu/UIMenu.en.d.ts +3 -2
- package/dist/components/ui-menu/UISubmenu.d.ts +261 -0
- package/dist/components/ui-menu/UISubmenu.en.d.ts +102 -0
- package/dist/components/ui-menu/UISubmenu.es.d.ts +21 -0
- package/dist/components/ui-menu/index.d.ts +3 -1
- package/dist/components/ui-message/UIMessage.d.ts +3 -2
- package/dist/components/ui-message/UIMessage.en.d.ts +4 -3
- package/dist/components/ui-modal/ModalDialogs.d.ts +35 -3
- package/dist/components/ui-modal/UIModal.d.ts +6 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +6 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +1 -0
- package/dist/components/ui-page/UIPage.en.d.ts +1 -0
- package/dist/components/ui-page-layout/UIPageLayout.d.ts +311 -0
- package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +99 -0
- package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +38 -0
- package/dist/components/ui-page-layout/index.d.ts +1 -0
- package/dist/components/ui-panel/ScrollShades.d.ts +38 -0
- package/dist/components/ui-panel/UIPanel.d.ts +21 -2
- package/dist/components/ui-panel/UIPanel.en.d.ts +68 -61
- package/dist/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +11 -2
- package/dist/components/ui-parts/UIAvatar.en.d.ts +3 -2
- package/dist/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
- package/dist/components/ui-parts/UIHeader.d.ts +4 -3
- package/dist/components/ui-parts/UIHeader.en.d.ts +4 -3
- package/dist/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +18 -5
- package/dist/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
- package/dist/components/ui-popup/UIPopup.d.ts +21 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +3 -2
- package/dist/components/ui-progress/UIProgress.en.d.ts +4 -3
- package/dist/components/ui-property-editor/UIProperty.d.ts +47 -13
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +14 -1
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +7 -1
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +15 -6
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.d.ts +4 -3
- package/dist/components/ui-rail/UIRail.en.d.ts +4 -3
- package/dist/components/ui-rating/UIRating.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
- package/dist/components/ui-root/UIRoot.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +1 -0
- package/dist/components/ui-search/UISearch.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +1 -0
- package/dist/components/ui-section/UISection.d.ts +3 -2
- package/dist/components/ui-section/UISection.en.d.ts +3 -2
- package/dist/components/ui-section/UISections.d.ts +1 -0
- package/dist/components/ui-section/UISections.en.d.ts +1 -0
- package/dist/components/ui-segment/UISegment.d.ts +9 -10
- package/dist/components/ui-segment/UISegment.en.d.ts +10 -11
- package/dist/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.d.ts +1 -0
- package/dist/components/ui-select/UISelect.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.en.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +1 -0
- package/dist/components/ui-shape/UISide.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.d.ts +1 -0
- package/dist/components/ui-sides/UISides.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +1 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.d.ts +118 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.en.d.ts +49 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.es.d.ts +22 -0
- package/dist/components/ui-site-breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +26 -3
- package/dist/components/ui-site-nav/UISiteNav.d.ts +43 -5
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +10 -1
- package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +63 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +173 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +20 -0
- package/dist/components/ui-site-nav-button/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +21 -6
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +1 -0
- package/dist/components/ui-space/UISpace.d.ts +1 -0
- package/dist/components/ui-space/UISpace.en.d.ts +1 -0
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +43 -7
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +2 -1
- package/dist/components/ui-stack/UIStack.d.ts +1 -0
- package/dist/components/ui-stack/UIStack.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
- package/dist/components/ui-step/UIStep.d.ts +1 -0
- package/dist/components/ui-step/UIStep.en.d.ts +1 -0
- package/dist/components/ui-step/UISteps.d.ts +3 -2
- package/dist/components/ui-step/UISteps.en.d.ts +3 -2
- package/dist/components/ui-sticky/UISticky.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +3 -2
- package/dist/components/ui-tab/UITab.en.d.ts +4 -3
- package/dist/components/ui-tab/UITabs.d.ts +5 -4
- package/dist/components/ui-tab/UITabs.en.d.ts +4 -3
- package/dist/components/ui-table/TableGrammar.d.ts +2 -2
- package/dist/components/ui-table/UICell.d.ts +1 -0
- package/dist/components/ui-table/UICell.en.d.ts +1 -0
- package/dist/components/ui-table/UITable.d.ts +7 -6
- package/dist/components/ui-table/UITable.en.d.ts +7 -6
- package/dist/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
- package/dist/components/ui-text/UILink.d.ts +1 -0
- package/dist/components/ui-text/UILink.en.d.ts +1 -0
- package/dist/components/ui-text/UIText.d.ts +2 -1
- package/dist/components/ui-text/UIText.en.d.ts +2 -1
- package/dist/components/ui-theme-editor/BenchAddress.d.ts +9 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +37 -15
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +3 -2
- package/dist/components/ui-toast/ToastStack.d.ts +9 -0
- package/dist/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +134 -1
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -0
- package/dist/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
- package/dist/components/ui-tree/UITree.d.ts +102 -2
- package/dist/components/ui-tree/UITree.en.d.ts +14 -1
- package/dist/components/ui-tree/UITree.es.d.ts +3 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
- package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
- package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
- package/dist/{components.es-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
- package/dist/components.es-DEa8Ep42.js.map +1 -0
- package/dist/core.js +795 -702
- package/dist/core.js.map +1 -1
- package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
- package/dist/crisp-DIpY320U.js.map +1 -0
- package/dist/crisp.theme-Ir9p4BDC.js +5 -0
- package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
- package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
- package/dist/dark-B5s4QbmU.js.map +1 -0
- package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
- package/dist/dist-BQT4KajA.js.map +1 -0
- package/dist/docs-components/docs-components.types.d.ts +6 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
- package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
- package/dist/elements/PartComponent.d.ts +5 -0
- package/dist/elements/PopoverPanel.d.ts +12 -1
- package/dist/elements/Validator.d.ts +1 -1
- package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
- package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
- package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
- package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
- package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
- package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
- package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
- package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
- package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
- package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
- package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
- package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
- package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
- package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
- package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
- package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
- package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
- package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
- package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
- package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
- package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
- package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
- package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
- package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
- package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
- package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
- package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
- package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
- package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
- package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
- package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
- package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
- package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
- package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
- package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
- package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
- package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
- package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
- package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
- package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
- package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
- package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
- package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
- package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
- package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
- package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
- package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
- package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
- package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
- package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
- package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
- package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
- package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
- package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
- package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
- package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
- package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
- package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
- package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
- package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
- package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
- package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
- package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
- package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
- package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
- package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
- package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
- package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
- package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
- package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
- package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
- package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
- package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
- package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
- package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
- package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
- package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
- package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
- package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
- package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
- package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
- package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
- package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
- package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
- package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
- package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
- package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
- package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
- package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
- package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
- package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
- package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
- package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
- package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
- package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
- package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
- package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
- package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
- package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
- package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
- package/dist/forms.js +65 -75
- package/dist/forms.js.map +1 -1
- package/dist/fruity-CsfZNeXb.js +5 -0
- package/dist/fruity-CsfZNeXb.js.map +1 -0
- package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
- package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
- package/dist/glass-BCK30hpe.js +5 -0
- package/dist/glass-BCK30hpe.js.map +1 -0
- package/dist/glass.theme-C7QSRB7b.js +5 -0
- package/dist/glass.theme-C7QSRB7b.js.map +1 -0
- package/dist/hot.js +18 -32
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +96 -91
- package/dist/jsx.d.ts +3875 -711
- package/dist/matrix-DEnqBfwC.js +5 -0
- package/dist/matrix-DEnqBfwC.js.map +1 -0
- package/dist/matrix.theme-YV6_nvXv.js +5 -0
- package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
- package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
- package/dist/merlot-DFa6kDbA.js.map +1 -0
- package/dist/merlot.theme-B1K8nn2u.js +5 -0
- package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
- package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
- package/dist/midnight-q0-3-V6U.js.map +1 -0
- package/dist/midnight.theme-C7M02wTD.js +5 -0
- package/dist/midnight.theme-C7M02wTD.js.map +1 -0
- package/dist/mockup-D0vovNO7.js +5 -0
- package/dist/mockup-D0vovNO7.js.map +1 -0
- package/dist/mockup.theme-C92r9NI0.js +5 -0
- package/dist/mockup.theme-C92r9NI0.js.map +1 -0
- package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
- package/dist/paper-DPxolmdy.js.map +1 -0
- package/dist/paper.theme-BAKk3DY1.js +5 -0
- package/dist/paper.theme-BAKk3DY1.js.map +1 -0
- package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
- package/dist/persist.types-D7N7GewC.js.map +1 -0
- package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
- package/dist/pop-Dw_6k177.js.map +1 -0
- package/dist/pop.theme-Cw-yD0MO.js +5 -0
- package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
- package/dist/property/PropertyEditorPages.d.ts +1 -1
- package/dist/property/PropertyLayouts.d.ts +119 -0
- package/dist/property/PropertySchemas.d.ts +5 -1
- package/dist/property/index.d.ts +2 -0
- package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
- package/dist/runtime/Browser.d.ts +7 -0
- package/dist/runtime/DataTooltips.d.ts +2 -0
- package/dist/runtime/Keyboard.d.ts +4 -1
- package/dist/runtime/Toasts.d.ts +10 -0
- package/dist/runtime/runtime.types.d.ts +52 -0
- package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
- package/dist/search-C2Rq9HF1.js.map +1 -0
- package/dist/spell-CB-MivSX.js +5 -0
- package/dist/spell-CB-MivSX.js.map +1 -0
- package/dist/spell.theme-CUoc5rTq.js +5 -0
- package/dist/spell.theme-CUoc5rTq.js.map +1 -0
- package/dist/styles/StyleGenerator.d.ts +7 -0
- package/dist/styles/styles.en.d.ts +27 -18
- package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
- package/dist/styles.en-DZlSJiOR.js.map +1 -0
- package/dist/styles.js +9 -10
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
- package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
- package/dist/ui-accordion.js +59 -60
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
- package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
- package/dist/ui-action.js +73 -45
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
- package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
- package/dist/ui-ad.editor-BHTDuSii.js +5 -0
- package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
- package/dist/ui-ad.js +8 -9
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
- package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
- package/dist/ui-app-menu.js +89 -0
- package/dist/ui-app-menu.js.map +1 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
- package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
- package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
- package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
- package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
- package/dist/ui-breadcrumbs.js +18 -17
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
- package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
- package/dist/ui-button.js +157 -156
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
- package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
- package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
- package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
- package/dist/ui-calendar.js +148 -157
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.editor-BBZj9e03.js +5 -0
- package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
- package/dist/ui-card.js +70 -70
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
- package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
- package/dist/ui-checkbox.js +49 -48
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.editor-Drr_FVB6.js +5 -0
- package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
- package/dist/ui-code.js +116 -79
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
- package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
- package/dist/ui-column.editor-hdUb-qwT.js +5 -0
- package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
- package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
- package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
- package/dist/ui-comment.js +15 -14
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
- package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
- package/dist/ui-components.editor-BKFXnARt.js +5 -0
- package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
- package/dist/ui-components.js +12 -13
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.editor-CBNhNkRm.js +5 -0
- package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
- package/dist/ui-container.js +106 -21
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-content.editor-B78lxK3P.js +5 -0
- package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
- package/dist/ui-date.editor-PHEnU7QX.js +5 -0
- package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
- package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
- package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
- package/dist/ui-detail.editor-wliuVbx3.js +5 -0
- package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
- package/dist/ui-device.editor-kl48NVma.js +5 -0
- package/dist/ui-device.editor-kl48NVma.js.map +1 -0
- package/dist/ui-device.js +436 -0
- package/dist/ui-device.js.map +1 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
- package/dist/ui-diagram.js +128 -129
- package/dist/ui-diagram.js.map +1 -1
- package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
- package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
- package/dist/ui-dimension.js +111 -12
- package/dist/ui-dimension.js.map +1 -1
- package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
- package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
- package/dist/ui-dimmer.js +29 -30
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
- package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
- package/dist/ui-divider.js +9 -10
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
- package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
- package/dist/ui-dropdown.js +155 -156
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
- package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
- package/dist/ui-embed.js +23 -24
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
- package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
- package/dist/ui-emoji.js +63 -64
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-event.editor-Bk17y7wW.js +5 -0
- package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
- package/dist/ui-example.editor-D46Vnctp.js +5 -0
- package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
- package/dist/ui-example.js +67 -74
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
- package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
- package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
- package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
- package/dist/ui-feed.js +26 -25
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
- package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
- package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
- package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
- package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
- package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
- package/dist/ui-flag.js +13 -14
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
- package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
- package/dist/ui-flyout.js +10 -11
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.editor-BJC3WhNf.js +5 -0
- package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
- package/dist/ui-form.js +199 -195
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
- package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
- package/dist/ui-grid.js +43 -234
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-header.editor-meOjCASK.js +5 -0
- package/dist/ui-header.editor-meOjCASK.js.map +1 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
- package/dist/ui-icon-picker.js +64 -69
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.editor-DoKK49PD.js +5 -0
- package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
- package/dist/ui-icon.js +15 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
- package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
- package/dist/ui-image.js +26 -26
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
- package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
- package/dist/ui-include.editor-CZcsVJbH.js +5 -0
- package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
- package/dist/ui-include.js +21 -22
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.editor-budoNoB0.js +5 -0
- package/dist/ui-input.editor-budoNoB0.js.map +1 -0
- package/dist/ui-input.js +131 -130
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.editor-BlWp1HXu.js +5 -0
- package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
- package/dist/ui-item.js +127 -113
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.editor-GOul3Xss.js +5 -0
- package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
- package/dist/ui-items.js +11 -12
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.editor-BgZbrB_W.js +5 -0
- package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
- package/dist/ui-json.js +18 -19
- package/dist/ui-json.js.map +1 -1
- package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
- package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
- package/dist/ui-keys.js +2 -3
- package/dist/ui-label.editor-BVUYLSUs.js +5 -0
- package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
- package/dist/ui-label.js +22 -22
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-labels.editor-BWJth86p.js +5 -0
- package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
- package/dist/ui-link.editor-CpI53scP.js +5 -0
- package/dist/ui-link.editor-CpI53scP.js.map +1 -0
- package/dist/ui-list.editor-DhBZIkAa.js +5 -0
- package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
- package/dist/ui-list.js +9 -10
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
- package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
- package/dist/ui-loader.js +10 -11
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
- package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
- package/dist/ui-markdown.js +208 -154
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
- package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
- package/dist/ui-menu.js +815 -223
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.editor-vfT0pyu5.js +5 -0
- package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
- package/dist/ui-message.js +32 -33
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
- package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
- package/dist/ui-modal.editor-B6gmmGsR.js +5 -0
- package/dist/ui-modal.editor-B6gmmGsR.js.map +1 -0
- package/dist/ui-modal.js +128 -99
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
- package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
- package/dist/ui-nag.js +23 -24
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-or.editor-BfBLNVgm.js +5 -0
- package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
- package/dist/ui-page-layout.js +363 -0
- package/dist/ui-page-layout.js.map +1 -0
- package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
- package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
- package/dist/ui-page.js +11 -12
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
- package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
- package/dist/ui-panel.js +105 -27
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +83 -68
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
- package/dist/ui-placeholder.js +23 -19
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
- package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
- package/dist/ui-popup.js +107 -100
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
- package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
- package/dist/ui-progress.js +23 -24
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
- package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
- package/dist/ui-property-editor.js +649 -277
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
- package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
- package/dist/ui-property.editor-BC-jtjjt.js +5 -0
- package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
- package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
- package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
- package/dist/ui-quote.js +8 -9
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-radio.editor-DPzActfO.js +5 -0
- package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
- package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
- package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
- package/dist/ui-rail.js +11 -12
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.editor-C19syymj.js +5 -0
- package/dist/ui-rating.editor-C19syymj.js.map +1 -0
- package/dist/ui-rating.js +40 -49
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
- package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
- package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
- package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
- package/dist/ui-reveal.js +10 -11
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.editor-CAokPDVa.js +5 -0
- package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
- package/dist/ui-root.js +206 -102
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
- package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
- package/dist/ui-search.editor-CtzfYgNu.js +5 -0
- package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
- package/dist/ui-search.js +143 -146
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.editor-DmNICxCs.js +5 -0
- package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
- package/dist/ui-section.js +74 -73
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-sections.editor-BxXECGv9.js +5 -0
- package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
- package/dist/ui-segment.editor-CebyLPFn.js +5 -0
- package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
- package/dist/ui-segment.js +43 -43
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-segments.editor-CSumzMa5.js +5 -0
- package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
- package/dist/ui-select.editor-wAcZzvU7.js +5 -0
- package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
- package/dist/ui-select.js +86 -87
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.editor-By9-8aD2.js +5 -0
- package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
- package/dist/ui-shape.js +39 -38
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-side.editor-CFSqGHGH.js +5 -0
- package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
- package/dist/ui-sidebar.js +79 -77
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
- package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
- package/dist/ui-sides.js +25 -26
- package/dist/ui-sides.js.map +1 -1
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
- package/dist/ui-site-breadcrumbs.js +143 -0
- package/dist/ui-site-breadcrumbs.js.map +1 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
- package/dist/ui-site-nav-button.js +113 -0
- package/dist/ui-site-nav-button.js.map +1 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
- package/dist/ui-site-nav.js +133 -97
- package/dist/ui-site-nav.js.map +1 -1
- package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
- package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
- package/dist/ui-site-tabs.js +53 -48
- package/dist/ui-site-tabs.js.map +1 -1
- package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
- package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
- package/dist/ui-slider.js +37 -38
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.editor-s-XVWFBN.js +5 -0
- package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
- package/dist/ui-space.js +9 -10
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
- package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
- package/dist/ui-split-panel.js +107 -68
- package/dist/ui-split-panel.js.map +1 -1
- package/dist/ui-stack.editor-D69Fky6H.js +5 -0
- package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
- package/dist/ui-stack.js +12 -13
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
- package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
- package/dist/ui-statistic.js +28 -27
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
- package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
- package/dist/ui-step.editor-CYmNXrk_.js +5 -0
- package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
- package/dist/ui-step.js +62 -61
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
- package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
- package/dist/ui-sticky.js +10 -11
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
- package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
- package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
- package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
- package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
- package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
- package/dist/ui-tab.js +115 -117
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.editor-DJvfg9oG.js +5 -0
- package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
- package/dist/ui-table.js +272 -272
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
- package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
- package/dist/ui-term.editor-BMCF3jBM.js +5 -0
- package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
- package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
- package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
- package/dist/ui-terms.js +13 -12
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.editor-B6AENK13.js +5 -0
- package/dist/ui-text.editor-B6AENK13.js.map +1 -0
- package/dist/ui-text.js +37 -36
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
- package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
- package/dist/ui-theme-editor.js +448 -461
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
- package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
- package/dist/ui-title.editor-40PZSOpn.js +5 -0
- package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
- package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
- package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
- package/dist/ui-toast.js +141 -139
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
- package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
- package/dist/ui-toc.js +52 -53
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
- package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
- package/dist/ui-toolbar.js +254 -50
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
- package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
- package/dist/ui-transition.js +13 -14
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
- package/dist/ui-tree-diagram.js +128 -127
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
- package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
- package/dist/ui-tree.editor-BoQztwdz.js +5 -0
- package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
- package/dist/ui-tree.js +393 -134
- package/dist/ui-tree.js.map +1 -1
- package/dist/ui-value.editor-CYak24cr.js +5 -0
- package/dist/ui-value.editor-CYak24cr.js.map +1 -0
- package/dist/ui-video.editor-CuWtFVjR.js +5 -0
- package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
- package/dist/ui-video.js +15 -14
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
- package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
- package/dist/ui-visibility.js +25 -26
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
- package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
- package/dist/ui-zoom.js +82 -83
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +11 -2
- package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
- package/dist/vocabulary/help.generated.d.ts +11 -0
- package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
- package/package.json +3 -3
- package/dist/Dragging-CMZoLEWQ.js.map +0 -1
- package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
- package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
- package/dist/PrefStore-Qv0e5y04.js.map +0 -1
- package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
- package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
- package/dist/SitePages-CciwREek.js.map +0 -1
- package/dist/SlottedItems-Du3aJwG1.js +0 -80
- package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
- package/dist/UIButton-DFEds67r.js +0 -6
- package/dist/UIButton-DFEds67r.js.map +0 -1
- package/dist/UIInput-BodVbUoQ.js.map +0 -1
- package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
- package/dist/UILabel-DgJUBzB_.js.map +0 -1
- package/dist/UIMenu-zdcAtwTa.js +0 -42
- package/dist/UIMenu-zdcAtwTa.js.map +0 -1
- package/dist/UIRuntime-KH309p5B.js.map +0 -1
- package/dist/UISegment-CMMIW7cZ.js.map +0 -1
- package/dist/apple.palette-B4ivrNlM.js.map +0 -1
- package/dist/classic-DCTQrteU.js.map +0 -1
- package/dist/components.es-BOa_7gFF.js.map +0 -1
- package/dist/crisp-VfYZlTph.js.map +0 -1
- package/dist/crisp.theme-DRiePRdf.js +0 -6
- package/dist/crisp.theme-DRiePRdf.js.map +0 -1
- package/dist/dark-CbUdPe0a.js.map +0 -1
- package/dist/dist-BLYIGZVK.js.map +0 -1
- package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
- package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
- package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
- package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
- package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
- package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
- package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
- package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
- package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
- package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
- package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
- package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
- package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
- package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
- package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
- package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
- package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
- package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
- package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
- package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
- package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
- package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
- package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
- package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
- package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
- package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
- package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
- package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
- package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
- package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
- package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
- package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
- package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
- package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
- package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
- package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
- package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
- package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
- package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
- package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
- package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
- package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
- package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
- package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
- package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
- package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
- package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
- package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
- package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
- package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
- package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
- package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
- package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
- package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
- package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
- package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
- package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
- package/dist/fruity-BRVlgJZd.js +0 -6
- package/dist/fruity-BRVlgJZd.js.map +0 -1
- package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
- package/dist/glass-x9tbbwVq.js +0 -6
- package/dist/glass-x9tbbwVq.js.map +0 -1
- package/dist/glass.theme-24wY2wH9.js +0 -6
- package/dist/glass.theme-24wY2wH9.js.map +0 -1
- package/dist/matrix-QY2gWbJ0.js +0 -6
- package/dist/matrix-QY2gWbJ0.js.map +0 -1
- package/dist/matrix.theme-_8xtwhDq.js +0 -6
- package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
- package/dist/merlot-DOXLuUaU.js.map +0 -1
- package/dist/merlot.theme-S-QnNGsw.js +0 -6
- package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
- package/dist/midnight-BxlTQSfw.js.map +0 -1
- package/dist/midnight.theme-wXbqRYLy.js +0 -6
- package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
- package/dist/mockup-83ELBuVr.js +0 -6
- package/dist/mockup-83ELBuVr.js.map +0 -1
- package/dist/mockup.theme-DmpBgGBl.js +0 -6
- package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
- package/dist/paper-M61nUilz.js.map +0 -1
- package/dist/paper.theme-B8R5Jn5H.js +0 -6
- package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
- package/dist/persist.types-D2m6wD-S.js.map +0 -1
- package/dist/pop-CxXfytjk.js.map +0 -1
- package/dist/pop.theme-CXzv8B9x.js +0 -6
- package/dist/pop.theme-CXzv8B9x.js.map +0 -1
- package/dist/search-CzSzx7bX.js.map +0 -1
- package/dist/spell-By5Y3jKP.js +0 -6
- package/dist/spell-By5Y3jKP.js.map +0 -1
- package/dist/spell.theme-DxGj7qHx.js +0 -6
- package/dist/spell.theme-DxGj7qHx.js.map +0 -1
- package/dist/styles.en-CUUxNwHo.js.map +0 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-page-layout.js","names":["<Show when={this.has(\"drawer\")}>\n <div\n class={DRAWER}\n part={this.partForName(\"drawer\")}\n ref={(element) => this.drawerColumnDrawn(element)}\n onPointerEnter={(event) => this.onDrawerEnter(event)}\n onPointerLeave={() => this.onDrawerLeave()}\n onFocusIn={() => this.onDrawerFocusIn()}\n onFocusOut={(event) => this.onDrawerFocusOut(event)}\n >\n <div class={DRAWER_BOX} part={this.partForName(\"drawer-box\")}>\n <slot name={this.slotForName(\"drawer\")} ref={(slot) => this.drawerSlot = slot} />\n </div>\n </div>\n </Show>","this","ref={(element) => this.drawerColumnDrawn(element)}","ref={(slot) => this.drawerSlot = slot}","part={this.partForName(\"drawer\")}","class={DRAWER_BOX}","part={this.partForName(\"drawer-box\")}","name={this.slotForName(\"drawer\")}","<div\n class={DRAWER}\n part={this.partForName(\"drawer\")}\n ref={(element) => this.drawerColumnDrawn(element)}\n onPointerEnter={(event) => this.onDrawerEnter(event)}\n onPointerLeave={() => this.onDrawerLeave()}\n onFocusIn={() => this.onDrawerFocusIn()}\n onFocusOut={(event) => this.onDrawerFocusOut(event)}\n >\n <div class={DRAWER_BOX} part={this.partForName(\"drawer-box\")}>\n <slot name={this.slotForName(\"drawer\")} ref={(slot) => this.drawerSlot = slot} />\n </div>\n </div>","<div class={LAYOUT} part={this.partForName(\"layout\")} style={this.layoutStyle}>\n <Show when={this.has(\"drawer\")}>\n <div\n class={DRAWER}\n part={this.partForName(\"drawer\")}\n ref={(element) => this.drawerColumnDrawn(element)}\n onPointerEnter={(event) => this.onDrawerEnter(event)}\n onPointerLeave={() => this.onDrawerLeave()}\n onFocusIn={() => this.onDrawerFocusIn()}\n onFocusOut={(event) => this.onDrawerFocusOut(event)}\n >\n <div class={DRAWER_BOX} part={this.partForName(\"drawer-box\")}>\n <slot name={this.slotForName(\"drawer\")} ref={(slot) => this.drawerSlot = slot} />\n </div>\n </div>\n </Show>\n <div class={BODY}>\n <Show when={this.drawsMenuButton}>\n <ui-button\n class={MENU_BUTTON}\n part={this.partForName(\"menu-button\")}\n icon={BARS}\n appearance={BASIC}\n size={SMALL}\n aria-label={this.translationForKey(\"menu\")}\n title={this.translationForKey(\"menu\")}\n aria-expanded={this.isOpen ? \"true\" : \"false\"}\n onClick={() => this.toggleDrawer()}\n />\n </Show>\n {this.region(\"menu\")}\n <div class={UNDER_MENU}>\n {this.region(\"page-menu\")}\n <div class={ROW}>\n {this.region(\"left\")}\n <div class={PAGE} part={this.partForName(\"page\")}>\n <slot />\n </div>\n {this.region(\"right\")}\n </div>\n {this.region(\"footer\")}\n </div>\n </div>\n </div>","<Show when={this.drawsMenuButton}>\n <ui-button\n class={MENU_BUTTON}\n part={this.partForName(\"menu-button\")}\n icon={BARS}\n appearance={BASIC}\n size={SMALL}\n aria-label={this.translationForKey(\"menu\")}\n title={this.translationForKey(\"menu\")}\n aria-expanded={this.isOpen ? \"true\" : \"false\"}\n onClick={() => this.toggleDrawer()}\n />\n </Show>","part={this.partForName(\"menu-button\")}","aria-label={this.translationForKey(\"menu\")}","title={this.translationForKey(\"menu\")}","aria-expanded={this.isOpen ? \"true\" : \"false\"}","<ui-button\n class={MENU_BUTTON}\n part={this.partForName(\"menu-button\")}\n icon={BARS}\n appearance={BASIC}\n size={SMALL}\n aria-label={this.translationForKey(\"menu\")}\n title={this.translationForKey(\"menu\")}\n aria-expanded={this.isOpen ? \"true\" : \"false\"}\n onClick={() => this.toggleDrawer()}\n />","<div class={BODY}>\n <Show when={this.drawsMenuButton}>\n <ui-button\n class={MENU_BUTTON}\n part={this.partForName(\"menu-button\")}\n icon={BARS}\n appearance={BASIC}\n size={SMALL}\n aria-label={this.translationForKey(\"menu\")}\n title={this.translationForKey(\"menu\")}\n aria-expanded={this.isOpen ? \"true\" : \"false\"}\n onClick={() => this.toggleDrawer()}\n />\n </Show>\n {this.region(\"menu\")}\n <div class={UNDER_MENU}>\n {this.region(\"page-menu\")}\n <div class={ROW}>\n {this.region(\"left\")}\n <div class={PAGE} part={this.partForName(\"page\")}>\n <slot />\n </div>\n {this.region(\"right\")}\n </div>\n {this.region(\"footer\")}\n </div>\n </div>","<div class={UNDER_MENU}>\n {this.region(\"page-menu\")}\n <div class={ROW}>\n {this.region(\"left\")}\n <div class={PAGE} part={this.partForName(\"page\")}>\n <slot />\n </div>\n {this.region(\"right\")}\n </div>\n {this.region(\"footer\")}\n </div>","<div class={ROW}>\n {this.region(\"left\")}\n <div class={PAGE} part={this.partForName(\"page\")}>\n <slot />\n </div>\n {this.region(\"right\")}\n </div>","part={this.partForName(\"layout\")}","style={this.layoutStyle}","class={BODY}","class={UNDER_MENU}","class={ROW}","class={PAGE}","part={this.partForName(\"page\")}","<Show when={this.has(name)}>\n <div\n class={name}\n part={this.partForName(name)}\n ref={(box) => name === MENU ? this.menuDrawn(box) : void 0}\n >\n <slot name={this.slotForName(name)} />\n </div>\n </Show>","ref={(box) => name === MENU ? this.menuDrawn(box) : void 0}","part={this.partForName(name)}","name={this.slotForName(name)}","<div\n class={name}\n part={this.partForName(name)}\n ref={(box) => name === MENU ? this.menuDrawn(box) : void 0}\n >\n <slot name={this.slotForName(name)} />\n </div>","E.DOMElement","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.state","E.watches","E.isSameList","E.onChange","E.on","E.whileConnected","E.SlotContent","E.beforeNextPaint","E.after","_$getOwner","_$readShallow","_$setAttribute","__name","pageLayoutCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","getOwner$1","pageLayoutVocabulary","UIPageLayout_default","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_drawsMenuButton_dec","_onNarrowChanged_dec","_menuHeight_dec","_watchWidth_dec","_isWidening_dec","_compactWidth_dec","_isMoving_dec","_onNavigating_dec","_onKeyDown_dec","_onIconsOnlyChanged_dec","_drawerNavs_dec","_isNarrow_dec","_isOpen_dec","_isCompact_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_isOpen","_isNarrow","_isMoving","_compactWidth","_isWidening","_menuHeight","LIGHT_DOM_CHANGES","DOMElement","_UIPageLayout","UIComponent","proto","protoMerged","cssState","state","watches","isSameList","onChange","on","whileConnected","SlotContent","name","COMPACT","element","SITE_NAV","nav","navs","COLLAPSED","showsIconsOnly","oldState","FULL","newState","beforeNextPaint","column","now","width","move","event","run","moves","box","after","OPEN_DELAY","CLOSE_DELAY","menuHeight","COMPACT_WIDTH","NAV_BAR_HEIGHT","isServer","resized","ABSOLUTE","NAV_BUTTON","child","target","node","_self$","_el$","_el$5","_el$7","_el$8","_el$9","_el$10","_el$11","_el$12","_el$13","insert","createComponent","Show","_el$2","_el$3","_el$4","ref","slot","effect","readShallow","DRAWER","DRAWER_BOX","className","_p$","t","setAttribute","i","_el$6","BARS","BASIC","SMALL","MENU_BUTTON","a","o","LAYOUT","BODY","UNDER_MENU","ROW","PAGE","style","n","s","h","_self$2","_el$14","_el$15","MENU","UIPageLayout","delegateEvents"],"sources":["../src/components/ui-page-layout/UIPageLayout.en.ts","../src/components/ui-page-layout/UIPageLayout.tsx","../src/components/ui-page-layout/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-page-layout>`: every name the tag uses.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `pageLayoutVocabulary`\n * The names of `<ui-page-layout>`: what stays on screen around a site's pages -- its menu, its drawer (the side\n * navigation), two side bars and a footer -- in its own box.\n ****************/\nexport const pageLayoutVocabulary = {\n tag: \"ui-page-layout\",\n icon: \"columns\",\n topics: [\"layout\", \"containers\", \"navigation\"],\n aka: [\"app layout\", \"app shell\", \"site layout\", \"page frame\", \"drawer layout\", \"navigation drawer\", \"holy grail\"],\n noun: \"page layout\",\n partOfSpeech: \"structure\",\n description:\n \"A page layout puts what stays on screen around a page: a menu across the top, a drawer of side navigation \" +\n \"down the start, side bars either side of the page, and a footer. An empty one takes no room. Its own box, \" +\n \"not the window: below 40em of it, the drawer slides over the page.\",\n skeleton: \"24 wide: 4 line paragraph\",\n attributes: [\n {\n name: \"drawer\",\n group: \"appearance\",\n kind: \"valueOnly\",\n values: [\"compact\"],\n description:\n \"`compact`: the drawer shows only its icons (its `<ui-site-nav>`s `collapsed`), and opens over the page \" +\n \"while the pointer rests on it. None: the whole drawer. `toggleDrawer()` switches it, and says so with \" +\n \"`ui-toggle`.\"\n }\n ],\n events: [\n {\n name: \"ui-toggle\",\n detail: '{ newState: \"compact\" | \"full\", oldState: \"compact\" | \"full\" }',\n description:\n \"The drawer switched between its icons only (`compact`) and all of it (`full`), from `toggleDrawer()` \" +\n \"(a `<ui-site-nav-button>`'s click): a site keeps each person's choice, and sets `drawer` again next time.\"\n }\n ],\n slots: [\n { name: \"\", description: \"The page.\" },\n { name: \"menu\", description: \"The app's top bar, across the top beside the drawer: usually a `<ui-app-menu>`.\" },\n {\n name: \"page-menu\",\n description: \"A row of its own under the menu, over the page and its side bars: usually `<ui-site-tabs>`.\"\n },\n {\n name: \"drawer\",\n description: \"The side navigation, a column the whole height at the start: usually a `<ui-site-nav>`.\"\n },\n { name: \"left\", description: \"A side bar between the drawer and the page.\" },\n { name: \"right\", description: \"A side bar at the page's end.\" },\n { name: \"footer\", description: \"Across the bottom, under the page and its side bars.\" }\n ],\n parts: [\n { name: \"layout\", description: \"The grid of regions: the drawer's column, then the rest.\" },\n { name: \"drawer\", description: \"The drawer's column, on its own fill with a line at its end.\" },\n { name: \"drawer-box\", description: \"The drawer's box inside its column: what scrolls, and what slides out.\" },\n { name: \"menu\", description: \"The menu's row.\" },\n { name: \"page-menu\", description: \"The page menu's row.\" },\n { name: \"left\", description: \"The start side bar's box.\" },\n { name: \"page\", description: \"The page's box.\" },\n { name: \"right\", description: \"The end side bar's box.\" },\n { name: \"footer\", description: \"The footer's row.\" },\n {\n name: \"menu-button\",\n description:\n \"Its own button to show the drawer, at a narrow width, when nothing inside it is a `<ui-site-nav-button>`.\"\n }\n ],\n states: [\n { name: \"compact\", description: '`drawer=\"compact\"`: the drawer shows only its icons.' },\n {\n name: \"open\",\n description:\n \"The drawer is open over the page: slid in at a narrow width, or opened from its icons while the pointer \" +\n \"rests on it.\"\n },\n { name: \"narrow\", description: \"Below 40em of its own box: one column, the drawer slid out of the way.\" }\n ],\n texts: [{ key: \"menu\", text: \"Pages\", description: \"Its own button to show the drawer, at a narrow width.\" }]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { pageLayoutVocabulary } from \"./UIPageLayout.en\"\n\nimport pageLayoutCSS from \"./UIPageLayout.css?inline\"\n\n// Above the class: `@E.watches` reads them while the class is defined\n\n/** What a change to its light DOM may move: an element in or out, or a `slot` changed. */\nconst LIGHT_DOM_CHANGES = { childList: true, subtree: true, attributes: true, attributeFilter: [\"slot\"] }\n\n/****************\n * ### `DOMPageLayoutElement`\n * The DOM element of `<ui-page-layout>`: its script API, `toggleDrawer()`.\n * Its component (`UIPageLayout`) carries it out.\n ****************/\nexport class DOMPageLayoutElement extends E.DOMElement<UIPageLayout> {\n /**\n * Show or hide the drawer, as its button does: narrow, slide it over the page or away; wide, switch it between\n * its icons only and all of it (`drawer`), and say so (`ui-toggle`).\n */\n toggleDrawer() {\n this.component?.toggleDrawer()\n }\n}\n\n/****************\n * ### `<ui-page-layout>`\n * The component behind `<ui-page-layout>`: what stays on screen around a site's pages (epic `mockup` T39).\n * A site draws it once and puts each page in it, so going between pages redraws only the page.\n *\n * <div class=\"layout\" part=\"layout\"> (a grid: the drawer's column, then the rest)\n * <div class=\"drawer\" part=\"drawer\"> (the whole height, at the start)\n * <div class=\"drawer-box\" part=\"drawer-box\"> <slot name=\"drawer\"> </div>\n * </div>\n * <div class=\"body\">\n * <ui-button part=\"menu-button\"> (narrow, with no `<ui-site-nav-button>`)\n * <div part=\"menu\"> <slot name=\"menu\"> </div> (flush against the drawer)\n * <div class=\"under-menu\"> (the drawer's line at its start)\n * <div part=\"page-menu\"> <slot name=\"page-menu\"> </div>\n * <div class=\"row\"> left | page (the default slot) | right </div>\n * <div part=\"footer\"> <slot name=\"footer\"> </div>\n * </div>\n * </div>\n * </div>\n *\n * - Its OWN box, not the window and not a root: Run draws a Spell site inside the editor's page.\n * - So plain boxes, no landmarks: a second `<main>` or banner inside the editor's page would be wrong;\n * what's slotted brings its own (the navigation's `<nav>`).\n * - At least as tall as the box it's in (`min-height: 100%`), the drawer running from top to bottom.\n * - A slot with nothing in it isn't drawn: no column, no row, no gap.\n * - The page is a font size in from the drawer; the menu's row is flush against it, on the drawer's fill:\n * - so the drawer and the menu read as one surface, the bar beside the drawer's top with no line between them\n * - the drawer's line starts under the menu, the menu's own line turning into it (epic `mockup` I25)\n * - `drawer=\"compact\"`: the drawer shows only its icons, as the layout sets `collapsed` on each `<ui-site-nav>` in it.\n * - The pointer resting on it half a second, or the keyboard's focus coming into it, opens it over the page,\n * all of it, the whole height of its column, without pushing the page: its column keeps its width.\n * Leaving it closes it, a moment later (0.15s).\n * - Its icons stay where they are as it opens and closes: the navigation keeps their room at the start the same\n * either way (`UISiteNav.css`, epic `mockup` C1 on J161).\n * - It grows out from the column's edge and shrinks back into it; switched to all of it and back, the column\n * widens and narrows (`UIPageLayout.css`, \"Motion\").\n * - Below 40em of its own box (a container query): one column, and the drawer slides over the page from the start\n * (`:state(open)`), from a `<ui-site-nav-button>` inside it, or its own menu button when it has none.\n * - Escape closes it; so does going to a page from it (`ui-navigating` from inside the drawer).\n * - `toggleDrawer()` (the `<ui-site-nav-button>`'s click): narrow, slides the drawer in or out; wide, switches\n * `drawer` and sends `ui-toggle`. Remembering the choice is the site's: the layout keeps nothing.\n * - It finds its navigations and buttons by their English tags (`ui-site-nav`, `ui-site-nav-button`).\n ****************/\nexport class UIPageLayout extends E.UIComponent<typeof pageLayoutVocabulary> {\n @E.proto static vocabulary = pageLayoutVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { \"page-layout\": pageLayoutCSS },\n DOMElement: DOMPageLayoutElement,\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n ////////////////\n // ## Regions\n ////////////////\n\n /** Which named slots have content. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** Has region `name` content? An empty one isn't drawn. */\n has(name: Region): boolean {\n return this.slots.hasContent(this.slotForName(name))\n }\n\n ////////////////\n // ## The drawer: compact, open\n ////////////////\n\n /** `drawer=\"compact\"`: the drawer shows only its icons. */\n @E.cssState(\"compact\")\n get isCompact(): boolean {\n return this.drawer === COMPACT\n }\n\n /**\n * The drawer is open over the page: slid in at a narrow width, or opened from its icons (`compact`).\n * - Wide and not compact, it changes nothing: the drawer is all there.\n */\n @E.cssState(\"open\") @E.state accessor isOpen = false\n\n /**\n * Below 40em of its own box: one column, the drawer slid out of the way.\n * - Read from its style, where the width is decided (a container query in `UIPageLayout.css`):\n * so the sheet stays the one truth.\n */\n @E.cssState(\"narrow\") @E.state accessor isNarrow = false\n\n /** Does the drawer show all of it: wide and not compact, or open over the page? A drawer button's `aria-expanded`. */\n get isDrawerShown(): boolean {\n return this.isNarrow ? this.isOpen : !this.isCompact || this.isOpen\n }\n\n /**\n * The `<ui-site-nav>`s in the drawer: slotted into it, or inside what is.\n * - English tags only, as `<ui-site-tabs>` finds its navigation.\n */\n @E.watches({ ...LIGHT_DOM_CHANGES, equals: E.isSameList })\n get drawerNavs(): readonly Element[] {\n return this.drawerElements().flatMap((element) =>\n element.localName === SITE_NAV ? [element] : [...element.querySelectorAll(SITE_NAV)]\n )\n }\n\n /**\n * The navigations show only their icons: compact, not open over the page, and not moving.\n * - While the column narrows, or the open box shrinks back, they keep all of it, clipped (`isMoving`):\n * they switch to their icons once it's narrow (epic `mockup` I32, Owen: \"the illusion of collapse is wonky\").\n */\n get showsIconsOnly(): boolean {\n return this.isCompact && !this.isOpen && !this.isMoving\n }\n\n /** SIDE EFFECT: each navigation in the drawer is `collapsed` while it shows only its icons. */\n @E.onChange(\"drawerNavs\", \"showsIconsOnly\", { writesDOMElement: true })\n protected onIconsOnlyChanged(navs: readonly Element[], showsIconsOnly: boolean) {\n for (const nav of navs) nav.toggleAttribute(COLLAPSED, showsIconsOnly)\n }\n\n /**\n * Show or hide the drawer: narrow, slide it in or out (`:state(open)`); wide, switch `drawer` between its icons\n * only and all of it, and send `ui-toggle`. Script API, on the DOM element too.\n * - From its icons to all of it, the switch waits a frame:\n * the column first holds the width it has, so it has a width to widen from (`isWidening`).\n * - From all of it to its icons, the column narrows to the width its icons will take (`narrowToIcons()`).\n */\n toggleDrawer() {\n if (this.isNarrow) {\n this.isOpen = !this.isOpen\n return\n }\n const oldState: DrawerState = this.isCompact ? COMPACT : FULL\n const newState: DrawerState = oldState === COMPACT ? FULL : COMPACT\n this.peekTimer?.cancel()\n this.cancelWidening?.()\n this.isWidening = false\n this.isOpen = false\n if (newState === FULL) {\n this.compactWidth = this.drawerColumn?.getBoundingClientRect().width\n this.isWidening = true\n this.cancelWidening = E.beforeNextPaint(() => this.switchDrawer(newState, oldState))\n } else {\n this.narrowToIcons(oldState)\n }\n }\n\n /**\n * Switch to its icons only: the column narrows to the width they take, all of it still drawn in it, clipped;\n * the navigations switch to their icons once it's there (`whileDrawerMoves()`).\n * - The width is measured first, just before the next paint:\n * each navigation shows its icons till then, the column's own width read at `fit-content`,\n * and all of it is back before anything is painted.\n */\n private narrowToIcons(oldState: DrawerState) {\n const navs = this.drawerNavs\n for (const nav of navs) nav.toggleAttribute(COLLAPSED, true)\n this.cancelWidening = E.beforeNextPaint(() => {\n this.compactWidth = this.iconsWidth()\n this.whileDrawerMoves()\n this.switchDrawer(COMPACT, oldState)\n for (const nav of navs) nav.toggleAttribute(COLLAPSED, this.showsIconsOnly)\n })\n }\n\n /**\n * The drawer's column's width at `fit-content`, read at once with no move: what its icons take, while they're shown.\n * - SIDE EFFECT: the column stops where it is, if it was moving, so it narrows from there.\n */\n private iconsWidth(): number | undefined {\n const column = this.drawerColumn\n if (!column) return undefined\n const now = column.getBoundingClientRect().width\n column.style.transition = \"none\"\n column.style.inlineSize = \"fit-content\"\n const width = column.getBoundingClientRect().width\n column.style.inlineSize = `${now}px`\n void getComputedStyle(column).inlineSize\n column.style.transition = \"\"\n // ... its own width again once the switch reaches its style: so it moves from `now`\n column.style.inlineSize = \"\"\n return width\n }\n\n /** Switch `drawer` to `newState`, and say so (`ui-toggle`). */\n private switchDrawer(newState: DrawerState, oldState: DrawerState) {\n // The column at its held width at once (holding it starts a move of its own), so it's what it widens from\n if (this.isWidening && this.drawerColumn) {\n for (const move of this.drawerColumn.getAnimations()) move.finish()\n void getComputedStyle(this.drawerColumn).inlineSize\n }\n this.drawer = newState === COMPACT ? COMPACT : undefined\n if (newState === FULL) this.whileDrawerMoves()\n this.send(\"ui-toggle\", { newState, oldState })\n // ... held till it's no longer compact everywhere (`:state(compact)` follows a moment later)\n if (this.isWidening) this.cancelWidening = E.beforeNextPaint(() => (this.isWidening = false))\n }\n\n /** Escape closes the drawer open over the page. */\n @E.on(\"keydown\")\n protected onKeyDown(event: KeyboardEvent) {\n if (event.key === \"Escape\") this.close()\n }\n\n /** Going to a page from the drawer closes it. */\n @E.on(\"ui-navigating\")\n protected onNavigating(event: Event) {\n if (this.isInDrawer(event.target)) this.close()\n }\n\n /**\n * Close the drawer open over the page, if it is.\n * - Compact and wide, its box shrinks back into the column with all of it still in it, clipped (`whileDrawerMoves()`).\n */\n private close() {\n if (!this.isOpen) return\n if (this.isCompact && !this.isNarrow) this.whileDrawerMoves()\n this.isOpen = false\n }\n\n ////////////////\n // ## Moving\n ////////////////\n\n /**\n * The drawer is moving between its icons and all of it: its column narrowing or widening, or its open box growing\n * or shrinking back.\n * - Meanwhile what's in it is drawn as all of it, at its full width, clipped (`:state(moving)`, `UIPageLayout.css`).\n */\n @E.cssState(\"moving\") @E.state accessor isMoving = false\n\n /** Stop waiting for the drawer's moves to finish, while it waits. */\n private cancelMoving: (() => void) | undefined\n\n /** Each run of `whileDrawerMoves()`: only the latest ends the move. */\n private moveRun = 0\n\n /**\n * Hold `isMoving` till the drawer's column and box finish the moves the change about to be made starts.\n * - Its moves are read just before the next paint, once the change has reached the style.\n * - None (reduced motion, `animation=\"none\"`): it ends there, before anything's painted.\n */\n private whileDrawerMoves() {\n const run = ++this.moveRun\n this.isMoving = true\n this.cancelMoving?.()\n this.cancelMoving = E.beforeNextPaint(() => {\n const boxes = [this.drawerColumn, this.drawerColumn?.firstElementChild]\n const moves = boxes.flatMap((box) => box?.getAnimations() ?? [])\n void Promise.allSettled(moves.map((move) => move.finished)).then(() => {\n if (run === this.moveRun) this.isMoving = false\n })\n })\n }\n\n ////////////////\n // ## Opening the compact drawer\n ////////////////\n\n /** The wait before the pointer on the compact drawer opens it, or off it closes it, while one runs. */\n private peekTimer: ReturnType<typeof E.after> | undefined\n\n /** The compact drawer's column width, kept while it's open over the page: so the page doesn't move. */\n @E.state accessor compactWidth: number | undefined = undefined\n\n /** Switching from its icons to all of it, for a frame: the compact column holds its width, to widen from. */\n @E.state accessor isWidening = false\n\n /** Stop waiting the frame `toggleDrawer()` waits before widening, while one runs. */\n private cancelWidening: (() => void) | undefined\n\n /**\n * The pointer came onto the compact drawer: open it after half a second (`OPEN_DELAY`), or stay open.\n * - Not the page's hover delay (`--ui-hover-delay`, 800ms) for pop-ups: the drawer is where the pointer goes on\n * purpose, and waiting that long for it read as broken (epic `mockup` I26).\n * - Nor at once (0.1s, J161): passing over it on the way to the page opened it (Owen, C1: \"a 1/2 second hover\").\n */\n private onDrawerEnter(event: PointerEvent) {\n if (!this.isCompact || this.isNarrow || event.pointerType === \"touch\") return\n this.peekTimer?.cancel()\n if (!this.isOpen) this.peekTimer = E.after(OPEN_DELAY, () => this.peek())\n }\n\n /** The pointer left the drawer: stop waiting to open it, or close it after a moment (`CLOSE_DELAY`). */\n private onDrawerLeave() {\n this.peekTimer?.cancel()\n if (this.isCompact && !this.isNarrow && this.isOpen) this.peekTimer = E.after(CLOSE_DELAY, () => this.unpeek())\n }\n\n /** Close the compact drawer opened over the page. */\n private unpeek() {\n if (this.isCompact && !this.isNarrow) this.close()\n }\n\n /** The keyboard's focus came into the compact drawer: open it at once. */\n private onDrawerFocusIn() {\n this.peekTimer?.cancel()\n if (this.isCompact && !this.isNarrow && !this.isOpen) this.peek()\n }\n\n /** The keyboard's focus left the compact drawer: close it. */\n private onDrawerFocusOut(event: FocusEvent) {\n if (this.isCompact && !this.isNarrow && !this.isInDrawer(event.relatedTarget)) this.close()\n }\n\n /** Open the compact drawer over the page, its column kept at the width it has now. */\n private peek() {\n this.compactWidth = this.drawerColumn?.getBoundingClientRect().width\n this.whileDrawerMoves()\n this.isOpen = true\n }\n\n /**\n * Its inline style:\n * - the compact column's kept width, while it's open over the page, moving, or about to widen\n * - the menu's height, for the navigations in the drawer to line their first row up with it (`menuHeight`)\n */\n get layoutStyle(): Record<string, string | undefined> {\n const isHeld = (this.isCompact && !this.isNarrow && (this.isOpen || this.isMoving)) || this.isWidening\n const width = isHeld ? this.compactWidth : undefined\n const menuHeight = this.has(\"menu\") ? this.menuHeight : undefined\n return {\n [COMPACT_WIDTH]: width === undefined ? undefined : `${width}px`,\n [NAV_BAR_HEIGHT]: menuHeight ? `${menuHeight}px` : undefined\n }\n }\n\n ////////////////\n // ## Narrow\n ////////////////\n\n /** While connected: read whether it's narrow, again each time its box changes size. */\n @E.whileConnected\n protected watchWidth() {\n if (isServer) return\n const resized = new ResizeObserver(() => {\n this.isNarrow = this.isSlidOver()\n this.measureMenu()\n })\n resized.observe(this.domElement)\n if (this.drawerColumn) resized.observe(this.drawerColumn)\n if (this.menuBox) resized.observe(this.menuBox)\n this.resized = resized\n return () => {\n resized.disconnect()\n this.resized = undefined\n }\n }\n\n /** What watches its box, the drawer's column and the menu for a new size, while connected. */\n private resized: ResizeObserver | undefined\n\n /** The drawer's column was drawn: watch it too, as it's what goes narrow. */\n private drawerColumnDrawn(column: HTMLElement) {\n this.drawerColumn = column\n this.resized?.observe(column)\n }\n\n ////////////////\n // ## The menu beside the drawer's top\n ////////////////\n\n /**\n * The menu's height, in pixels, while it's drawn: the navigations in the drawer line their first row up with it,\n * its icon on the menu's middle, beside the drawer's button (epic `mockup` I35, `--ui-site-nav-bar-height`).\n */\n @E.state accessor menuHeight: number | undefined = undefined\n\n /** The menu's box, while drawn. */\n private menuBox: HTMLElement | undefined\n\n /** The menu's box was drawn: watch it for a new height. */\n private menuDrawn(box: HTMLElement) {\n this.menuBox = box\n this.resized?.observe(box)\n this.measureMenu()\n }\n\n /** Read the menu's height again: none while it isn't on the page. */\n private measureMenu() {\n const box = this.menuBox\n this.menuHeight = box?.isConnected ? box.getBoundingClientRect().height || undefined : undefined\n }\n\n /** Is the drawer slid over the page, rather than beside it? Its style says (`UIPageLayout.css`). */\n private isSlidOver(): boolean {\n return !!this.drawerColumn && getComputedStyle(this.drawerColumn).position === ABSOLUTE\n }\n\n /** Narrow, it closes as it widens: wide, the open drawer would sit over the page. */\n @E.onChange(\"isNarrow\", { defer: true })\n protected onNarrowChanged() {\n this.isOpen = false\n }\n\n /**\n * Does it draw its own menu button: a drawer, and no `<ui-site-nav-button>` anywhere in its light DOM?\n * - Shown only at a narrow width (`UIPageLayout.css`).\n */\n @E.watches(LIGHT_DOM_CHANGES)\n get drawsMenuButton(): boolean {\n return this.has(\"drawer\") && !this.domElement.querySelector(NAV_BUTTON)\n }\n\n ////////////////\n // ## The drawer's boxes\n ////////////////\n\n /** The drawer's column, while drawn. */\n private drawerColumn: HTMLElement | undefined\n\n /** The drawer's slot, while drawn. */\n private drawerSlot: HTMLSlotElement | undefined\n\n /** The elements slotted into the drawer: its light-DOM children with its slot's name. */\n private drawerElements(): Element[] {\n const name = this.slotForName(\"drawer\")\n return [...this.domElement.children].filter((child) => child.getAttribute(\"slot\") === name)\n }\n\n /** Is `target` in the drawer: its own boxes, or what's slotted into it? */\n private isInDrawer(target: EventTarget | null): boolean {\n if (!target || typeof (target as Node).nodeType !== \"number\") return false\n const node = target as Node\n if (this.drawerColumn?.contains(node)) return true\n const slotted = this.drawerSlot?.assignedElements({ flatten: true }) ?? this.drawerElements()\n return slotted.some((element) => element === node || element.contains(node))\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n return (\n <div class={LAYOUT} part={this.partForName(\"layout\")} style={this.layoutStyle}>\n <Show when={this.has(\"drawer\")}>\n <div\n class={DRAWER}\n part={this.partForName(\"drawer\")}\n ref={(element: HTMLElement) => this.drawerColumnDrawn(element)}\n onPointerEnter={(event: PointerEvent) => this.onDrawerEnter(event)}\n onPointerLeave={() => this.onDrawerLeave()}\n onFocusIn={() => this.onDrawerFocusIn()}\n onFocusOut={(event: FocusEvent) => this.onDrawerFocusOut(event)}\n >\n <div class={DRAWER_BOX} part={this.partForName(\"drawer-box\")}>\n <slot name={this.slotForName(\"drawer\")} ref={(slot: HTMLSlotElement) => (this.drawerSlot = slot)} />\n </div>\n </div>\n </Show>\n <div class={BODY}>\n <Show when={this.drawsMenuButton}>\n <ui-button\n class={MENU_BUTTON}\n part={this.partForName(\"menu-button\")}\n icon={BARS}\n appearance={BASIC}\n size={SMALL}\n aria-label={this.translationForKey(\"menu\")}\n title={this.translationForKey(\"menu\")}\n aria-expanded={this.isOpen ? \"true\" : \"false\"}\n onClick={() => this.toggleDrawer()}\n />\n </Show>\n {this.region(\"menu\")}\n <div class={UNDER_MENU}>\n {this.region(\"page-menu\")}\n <div class={ROW}>\n {this.region(\"left\")}\n <div class={PAGE} part={this.partForName(\"page\")}>\n <slot />\n </div>\n {this.region(\"right\")}\n </div>\n {this.region(\"footer\")}\n </div>\n </div>\n </div>\n )\n }\n\n /** Region `name`'s box around its slot, while it has content. */\n private region(name: Exclude<Region, \"drawer\">): JSX.Element {\n return (\n <Show when={this.has(name)}>\n <div\n class={name}\n part={this.partForName(name)}\n ref={(box: HTMLElement) => (name === MENU ? this.menuDrawn(box) : undefined)}\n >\n <slot name={this.slotForName(name)} />\n </div>\n </Show>\n )\n }\n}\n\n/** The vocabulary getters, typed (`UIComponent`'s doc). */\nexport interface UIPageLayout extends E.AttributeValues<typeof pageLayoutVocabulary> {}\n\n/** A named region, each its slot's name. */\ntype Region = \"menu\" | \"page-menu\" | \"drawer\" | \"left\" | \"right\" | \"footer\"\n\n/** What `ui-toggle` says the drawer was and is: its icons only, or all of it. */\ntype DrawerState = typeof COMPACT | typeof FULL\n\n/** `drawer=\"compact\"`, and `ui-toggle`'s word for it. */\nconst COMPACT = \"compact\"\n\n/** `ui-toggle`'s word for the whole drawer: no `drawer`. */\nconst FULL = \"full\"\n\n/** The navigation's tag, and its attribute for icons only. */\nconst SITE_NAV = \"ui-site-nav\"\nconst COLLAPSED = \"collapsed\"\n\n/** The drawer's button's tag: with one inside, the layout draws no menu button of its own. */\nconst NAV_BUTTON = \"ui-site-nav-button\"\n\n/** The private custom property holding the compact column's kept width (`UIPageLayout.css`). */\nconst COMPACT_WIDTH = \"--_page-layout-compact-width\"\n\n/** The menu's region, whose height the navigations in the drawer line their first row up with. */\nconst MENU = \"menu\"\n\n/** `<ui-site-nav>`'s token for the height of the bar beside its top: the menu's, set on the layout's box. */\nconst NAV_BAR_HEIGHT = \"--ui-site-nav-bar-height\"\n\n/**\n * How long, in seconds, the pointer rests on the compact drawer before it opens: long enough that passing over it\n * on the way somewhere else doesn't open it (Owen, epic `mockup` C1 on J161: \"Change to a 1/2 second hover\").\n * - The keyboard's focus opens it at once (`onDrawerFocusIn()`).\n */\nconst OPEN_DELAY = 0.5\n\n/** How long, in seconds, the pointer is off the open compact drawer before it closes: a slip off its edge doesn't. */\nconst CLOSE_DELAY = 0.15\n\n/** The drawer's column's `position` while it's slid over a narrow page. */\nconst ABSOLUTE = \"absolute\"\n\n/** The class words of its boxes (`UIPageLayout.css`). */\nconst LAYOUT = \"layout\"\nconst DRAWER = \"drawer\"\nconst DRAWER_BOX = \"drawer-box\"\nconst BODY = \"body\"\nconst UNDER_MENU = \"under-menu\"\nconst ROW = \"row\"\nconst PAGE = \"page\"\nconst MENU_BUTTON = \"menu-button\"\n\n/** Its own menu button's look: today's site's. */\nconst BARS = \"bars\"\nconst BASIC = \"basic\"\nconst SMALL = \"small\"\n","/**\n * The page layout family: defines `<ui-page-layout>`, and exports its component.\n * - SIDE EFFECT: importing it defines the tag, and the button it draws to show its drawer at a narrow width.\n * - Also the library's `spell/ui/ui-page-layout` entry.\n */\n\nimport { UIPageLayout } from \"./UIPageLayout\"\n\nimport \"spell/ui/components/ui-button\"\n\nUIPageLayout.define()\n\nexport { UIPageLayout, DOMPageLayoutElement } from \"./UIPageLayout\"\n"],"mappings":";;;;;;AAYA,IAAa0D,KAAuB;CAClC,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAU;EAAc;CAAY;CAC7C,KAAK;EAAC;EAAc;EAAa;EAAe;EAAc;EAAiB;EAAqB;CAAY;CAChH,MAAM;CACN,cAAc;CACd,aACE;CAGF,UAAU;CACV,YAAY,CACV;EACE,MAAM;EACN,OAAO;EACP,MAAM;EACN,QAAQ,CAAC,SAAS;EAClB,aACE;CAGJ,CACF;CACA,QAAQ,CACN;EACE,MAAM;EACN,QAAQ;EACR,aACE;CAEJ,CACF;CACA,OAAO;EACL;GAAE,MAAM;GAAI,aAAa;EAAY;EACrC;GAAE,MAAM;GAAQ,aAAa;EAAmF;EAChH;GACE,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAQ,aAAa;EAA8C;EAC3E;GAAE,MAAM;GAAS,aAAa;EAA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editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-page>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-page\" data-omit=\"\">\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"icons\"></ui-property>\n <ui-property name=\"emoji\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"display\"></ui-property>\n <ui-property name=\"theme\"></ui-property>\n <ui-property name=\"size\"></ui-property>\n <ui-property name=\"defaults\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"stack-with\"></ui-property>\n <ui-property name=\"width\"></ui-property>\n <ui-property name=\"height\"></ui-property>\n <ui-property name=\"fixed\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"States\" data-group=\"states\">\n <ui-property name=\"loading\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Link\" data-group=\"link\">\n <ui-property name=\"assets\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Behaviour\" data-group=\"behaviour\">\n <ui-property name=\"timeout\"></ui-property>\n <ui-property name=\"app\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Advanced\" data-group=\"advanced\">\n <ui-property name=\"pure\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-page.editor-Bd5mzlj7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-page.editor-Bd5mzlj7.js","names":["ui_page_editor_default"],"sources":[],"mappings":""}
|
package/dist/ui-page.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./rolldown-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import "./rolldown-runtime-c6e9CmGy.js";
|
|
2
|
+
import { Gt as e, Jt as t, Kt as n, SlotContent as r, UI as i, Ut as a, Warnings as o, Wt as s, Yt as c, proto as l, protoMerged as u, whileConnected as d } from "./core.js";
|
|
3
3
|
import { UIRoot as f, t as p } from "./ui-root.js";
|
|
4
4
|
import { Show as m } from "solid-js";
|
|
5
5
|
import { claimElement as h, className as g, createComponent as _, delegateEvents as v, effect as y, getOwner as b, insert as x, isServer as S, memo as C, readShallow as w, ref as T, setAttribute as E, style as D, template as O } from "@solidjs/web";
|
|
6
|
-
|
|
6
|
+
// src/components/ui-page/UIPage.en.ts
|
|
7
7
|
var k = {
|
|
8
8
|
tag: "ui-page",
|
|
9
9
|
icon: "file outline",
|
|
@@ -22,6 +22,7 @@ var k = {
|
|
|
22
22
|
"holy grail layout"
|
|
23
23
|
],
|
|
24
24
|
noun: "page",
|
|
25
|
+
partOfSpeech: "structure",
|
|
25
26
|
description: "A page frames a whole window: a header, navigation, the main content, a side column and a footer, each a landmark screen readers jump between. It's a root too: it loads the components inside it.",
|
|
26
27
|
slots: [
|
|
27
28
|
{
|
|
@@ -86,9 +87,9 @@ var k = {
|
|
|
86
87
|
slots: k.slots,
|
|
87
88
|
parts: [...p.parts, ...k.parts],
|
|
88
89
|
texts: [...p.texts, ...k.texts]
|
|
89
|
-
}, j = "@layer ui.components.page.types{:host{min-block-size:var(--ui-page-min-height,100dvh);background:var(--ui-background);color:var(--ui-text-color);display:block;container-type:inline-size}:host(:not(:state(light),:state(dark))){color-scheme:light dark}.ui.page{--_ui-page-gap:var(--ui-page-gap,var(--ui-space-l));--_ui-page-padding:var(--ui-page-padding,var(--ui-space-l));--_ui-page-nav-width:var(--ui-page-nav-width,16em);--_ui-page-aside-width:var(--ui-page-aside-width,16em);--_ui-page-max-width:var(--ui-page-max-width,none);box-sizing:border-box;gap:var(--_ui-page-gap);min-block-size:var(--ui-page-min-height,100dvh);max-inline-size:var(--_ui-page-max-width);padding:var(--_ui-page-padding);grid-template:\"header header header\"\"nav main aside\"1fr\"footer footer footer\"/auto minmax(0,1fr) auto;margin-inline:auto;display:grid;position:relative}.ui.page>header{grid-area:header}.ui.page>nav{inline-size:var(--_ui-page-nav-width);grid-area:nav}.ui.page>main{grid-area:main;min-inline-size:0}.ui.page>main:focus{outline:none}.ui.page>aside{inline-size:var(--_ui-page-aside-width);grid-area:aside}.ui.page>footer{grid-area:footer}.skip:not(:focus-visible){clip-path:inset(50%);white-space:nowrap;block-size:1px;inline-size:1px;position:absolute;overflow:hidden}.skip{z-index:var(--ui-z-sticky,10);padding:var(--ui-space-xs) var(--ui-space-s);border-radius:var(--ui-radius);background:var(--ui-surface);color:var(--ui-link);box-shadow:var(--ui-shadow-floating);position:absolute;inset-block-start:var(--ui-space-xs);inset-inline-start:var(--ui-space-xs)}@container (width<768px){.ui.page{grid-template:\"header\"\"nav\"\"main\"1fr\"aside\"\"footer\"/minmax(0,1fr)}.ui.page>:is(nav,aside){inline-size:auto}}}", M = "@layer ui.components.page.types{body:has(>ui-page){margin:0}}", N = /* @__PURE__ */ O("<header><slot>"), P = /* @__PURE__ */ O("<nav><slot>"), F = /* @__PURE__ */ O("<aside><slot>"), I = /* @__PURE__ */ O("<footer><slot>"), L = /* @__PURE__ */ O("<div><a href=#></a><!><main tabindex=-1><slot></slot></main><!><!>"), R, z, B, V, H, U = class _UIPage extends (V = f, B = [
|
|
90
|
+
}, j = "@layer ui.components.page.types{:host{min-block-size:var(--ui-page-min-height,100dvh);background:var(--ui-background);color:var(--ui-text-color);display:block;container-type:inline-size}:host(:not(:state(light),:state(dark))){color-scheme:light dark}.ui.page{--_ui-page-gap:var(--ui-page-gap,var(--ui-space-l));--_ui-page-padding:var(--ui-page-padding,var(--ui-space-l));--_ui-page-nav-width:var(--ui-page-nav-width,16em);--_ui-page-aside-width:var(--ui-page-aside-width,16em);--_ui-page-max-width:var(--ui-page-max-width,none);box-sizing:border-box;gap:var(--_ui-page-gap);min-block-size:var(--ui-page-min-height,100dvh);max-inline-size:var(--_ui-page-max-width);padding:var(--_ui-page-padding);grid-template:\"header header header\"\"nav main aside\"1fr\"footer footer footer\"/auto minmax(0,1fr) auto;margin-inline:auto;display:grid;position:relative}.ui.page>header{grid-area:header}.ui.page>nav{inline-size:var(--_ui-page-nav-width);grid-area:nav}.ui.page>main{grid-area:main;min-inline-size:0}.ui.page>main:focus{outline:none}.ui.page>aside{inline-size:var(--_ui-page-aside-width);grid-area:aside}.ui.page>footer{grid-area:footer}.skip:not(:focus-visible){clip-path:inset(50%);white-space:nowrap;block-size:1px;inline-size:1px;position:absolute;overflow:hidden}.skip{z-index:var(--ui-z-sticky,10);padding:var(--ui-space-xs) var(--ui-space-s);border-radius:var(--ui-radius);background:var(--ui-surface);color:var(--ui-link);box-shadow:var(--ui-shadow-floating);position:absolute;inset-block-start:var(--ui-space-xs);inset-inline-start:var(--ui-space-xs)}@container (width<768px){.ui.page{grid-template:\"header\"\"nav\"\"main\"1fr\"aside\"\"footer\"/minmax(0,1fr)}.ui.page>:is(nav,aside){inline-size:auto}}}", M = "@layer ui.components.page.types{body:has(>ui-page){margin:0}}", N = /* @__PURE__ */ O("<header><slot>"), P = /* @__PURE__ */ O("<nav><slot>"), F = /* @__PURE__ */ O("<aside><slot>"), I = /* @__PURE__ */ O("<footer><slot>"), L = /* @__PURE__ */ O("<div><a href=#></a><!><main tabindex=-1><slot></slot></main><!><!>"), R, z, B, V, H, U = class _UIPage extends (V = f, B = [l], z = [u], R = [d], V) {
|
|
90
91
|
constructor() {
|
|
91
|
-
super(...arguments),
|
|
92
|
+
super(...arguments), c(H, 5, this), t(this, "slots", new r(this.domElement)), t(this, "main");
|
|
92
93
|
}
|
|
93
94
|
has(e) {
|
|
94
95
|
return this.slots.hasContent(this.slotForName(e));
|
|
@@ -167,23 +168,21 @@ var k = {
|
|
|
167
168
|
}
|
|
168
169
|
watchPage() {
|
|
169
170
|
if (S) return;
|
|
170
|
-
|
|
171
|
+
i.load().then(() => i.styles.register(K, M, { page: !0 })).catch((e) => o.warn("<ui-page>", "can't add its page sheet:", e));
|
|
171
172
|
let e = _UIPage.connected;
|
|
172
|
-
return e.size &&
|
|
173
|
+
return e.size && o.warn("<ui-page>", "a second page frame on this page; one <ui-page> frames a window"), e.add(this), () => e.delete(this);
|
|
173
174
|
}
|
|
174
175
|
static reset() {
|
|
175
176
|
_UIPage.connected.clear();
|
|
176
177
|
}
|
|
177
178
|
};
|
|
178
|
-
H =
|
|
179
|
+
H = e(V), a(H, 1, "watchPage", R, U), a(H, 13, "vocabulary", B, U), a(H, 13, "elementSetup", z, U), s(H, U), n(U, "UIPage"), t(U, "vocabulary", c(H, 8, U, A)), c(H, 11, U), t(U, "elementSetup", c(H, 12, U, { styleSheets: {
|
|
179
180
|
...f.prototype.elementSetup.styleSheets,
|
|
180
181
|
page: j
|
|
181
|
-
} })),
|
|
182
|
+
} })), c(H, 15, U), t(U, "connected", /* @__PURE__ */ new Set());
|
|
182
183
|
var W = U, G = "skip", K = "page-frame";
|
|
183
|
-
|
|
184
|
-
//#region src/components/ui-page/index.ts
|
|
184
|
+
// src/components/ui-page/index.ts
|
|
185
185
|
v(["click"]), W.define();
|
|
186
|
-
//#endregion
|
|
187
186
|
export { W as UIPage };
|
|
188
187
|
|
|
189
188
|
//# sourceMappingURL=ui-page.js.map
|
package/dist/ui-page.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-page.js","names":["this","<Show when={this.has(\"header\")}>\n <header part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"header\")} />\n </header>\n </Show>","name={this.slotForName(\"header\")}","<header part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"header\")} />\n </header>","<div class={this.rootClass} part={this.partForName(\"page\")} style={this.contentStyle}>\n <a class={SKIP} part={this.partForName(\"skip\")} href=\"#\" onClick={(event) => this.skipToContent(event)}>\n {this.isReady ? this.translationForKey(\"skip\") : \"\"}\n </a>\n <Show when={this.has(\"header\")}>\n <header part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"header\")} />\n </header>\n </Show>\n <Show when={this.has(\"nav\")}>\n <nav part={this.partForName(\"nav\")}>\n <slot name={this.slotForName(\"nav\")} />\n </nav>\n </Show>\n <main ref={(main) => this.main = main} part={this.partForName(\"main\")} tabindex=\"-1\">\n <slot />\n </main>\n <Show when={this.has(\"aside\")}>\n <aside part={this.partForName(\"aside\")}>\n <slot name={this.slotForName(\"aside\")} />\n </aside>\n </Show>\n <Show when={this.has(\"footer\")}>\n <footer part={this.partForName(\"footer\")}>\n <slot name={this.slotForName(\"footer\")} />\n </footer>\n </Show>\n </div>","<Show when={this.has(\"nav\")}>\n <nav part={this.partForName(\"nav\")}>\n <slot name={this.slotForName(\"nav\")} />\n </nav>\n </Show>","name={this.slotForName(\"nav\")}","<nav part={this.partForName(\"nav\")}>\n <slot name={this.slotForName(\"nav\")} />\n </nav>","ref={(main) => this.main = main}","<Show when={this.has(\"aside\")}>\n <aside part={this.partForName(\"aside\")}>\n <slot name={this.slotForName(\"aside\")} />\n </aside>\n </Show>","name={this.slotForName(\"aside\")}","<aside part={this.partForName(\"aside\")}>\n <slot name={this.slotForName(\"aside\")} />\n </aside>","<Show when={this.has(\"footer\")}>\n <footer part={this.partForName(\"footer\")}>\n <slot name={this.slotForName(\"footer\")} />\n </footer>\n </Show>","name={this.slotForName(\"footer\")}","<footer part={this.partForName(\"footer\")}>\n <slot name={this.slotForName(\"footer\")} />\n </footer>","part={this.partForName(\"page\")}","style={this.contentStyle}","class={SKIP}","part={this.partForName(\"skip\")}","part={this.partForName(\"main\")}","E.proto","E.protoMerged","E.whileConnected","E.SlotContent","_$getOwner","_$memo","_$createComponent","_$setAttribute","_$readShallow","pagePageCSS","__name","pageCSS","_$delegateEvents","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__decoratorStart","rootVocabulary","getOwner$1","pageOwnVocabulary","pageVocabulary","UIPage_default","UIPage_page_default","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_watchPage_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIPage","UIRoot","proto","protoMerged","whileConnected","SlotContent","name","_self$","_el$","_el$2","_el$5","_el$8","_el$9","_el$12","_el$15","_o$","event","insert","_c$","memo","createComponent","Show","_el$3","_el$4","effect","_p$","setAttribute","t","_el$6","_el$7","ref","main","_el$10","_el$11","_el$13","_el$14","readShallow","SKIP","className","style","i","n","claimElement","isServer","UI","PAGE_SHEET","Warnings","error","pages","UIPage","delegateEvents"],"sources":["../src/components/ui-page/UIPage.en.ts","../src/components/ui-page/UIPage.css?inline","../src/components/ui-page/UIPage.page.css?inline","../src/components/ui-page/UIPage.tsx","../src/components/ui-page/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-page>`: every name the tag uses.\n * - A page is a ROOT (`UIRoot`): its whole vocabulary is `<ui-root>`'s names, then these.\n * - The page frame (epic `ui-gaps` P10): header, nav, main content, aside and footer, each the landmark screen\n * readers jump between, for a drawing, which holds no native HTML.\n * - Pure data: node reads it (`yarn site:data`, `yarn gen:root`).\n */\n\nimport type { E } from \"spell/ui/core\"\nimport { rootVocabulary } from \"spell/ui/components/ui-root/UIRoot.en\"\n\n/****************\n * ### `pageOwnVocabulary`\n * The names `<ui-page>` adds to a root's.\n ****************/\nconst pageOwnVocabulary = {\n tag: \"ui-page\",\n icon: \"file outline\",\n topics: [\"layout\", \"containers\", \"navigation\"],\n aka: [\"page\", \"app shell\", \"body\", \"layout\", \"frame\", \"landmarks\", \"holy grail layout\"],\n noun: \"page\",\n description:\n \"A page frames a whole window: a header, navigation, the main content, a side column and a footer, each a \" +\n \"landmark screen readers jump between. It's a root too: it loads the components inside it.\",\n slots: [\n { name: \"\", description: \"The main content (`<main>`).\" },\n { name: \"header\", description: \"The page's header, across the top (`<header>`): a title, a logo, a search.\" },\n { name: \"nav\", description: \"The site's navigation (`<nav>`): a column beside the content, on the start side.\" },\n { name: \"aside\", description: \"Related content (`<aside>`): a column on the end side.\" },\n { name: \"footer\", description: \"The page's footer, across the bottom (`<footer>`).\" }\n ],\n parts: [\n { name: \"page\", description: \"The grid of regions.\" },\n { name: \"skip\", description: 'The \"Skip to content\" link, shown only while it has the keyboard\\'s focus.' },\n { name: \"header\", description: \"The header region.\" },\n { name: \"nav\", description: \"The navigation region.\" },\n { name: \"main\", description: \"The main content region.\" },\n { name: \"aside\", description: \"The side region.\" },\n { name: \"footer\", description: \"The footer region.\" }\n ],\n texts: [{ key: \"skip\", text: \"Skip to content\", description: \"The first link of the page, for keyboards.\" }]\n} as const\n\n/****************\n * ### `pageVocabulary`\n * `<ui-page>`'s whole vocabulary: a root's names, then its own.\n ****************/\nexport const pageVocabulary = {\n ...rootVocabulary,\n ...pageOwnVocabulary,\n slots: pageOwnVocabulary.slots,\n parts: [...rootVocabulary.parts, ...pageOwnVocabulary.parts],\n texts: [...rootVocabulary.texts, ...pageOwnVocabulary.texts]\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-page>`: the page frame, on top of `<ui-root>`'s sheet.\n * - Shadow markup: `<div class=\"ui page\" part=\"page\">` around\n * `<a class=\"skip\" part=\"skip\">`, then `<header>`, `<nav>`, `<main>`, `<aside>`, `<footer>`, each round its slot;\n * a region with nothing slotted into it isn't drawn.\n * - A CSS grid: the header and footer across, the nav, main content and aside in a row between;\n * at a phone's width (the page's own, a container query), every region stacked in reading order.\n * - The whole window: at least the viewport's height (`--ui-page-min-height`), the page's background and text\n * colour.\n * With no `theme`, it follows the system's light or dark setting.\n * - Public tokens (`--ui-page-*`) are NEVER declared here: each is read through its private alias.\n * - The body's margin is cleared by the page sheet the component registers (`UIPage.page.css`).\n */\n\n@layer ui.components.page.types {\n :host {\n display: block;\n /* its own width decides the phone layout: a page in a narrow box stacks too */\n container-type: inline-size;\n min-block-size: var(--ui-page-min-height, 100dvh);\n background: var(--ui-background);\n color: var(--ui-text-color);\n }\n /* no `theme`: the system's light or dark */\n :host(:not(:state(light), :state(dark))) {\n color-scheme: light dark;\n }\n .ui.page {\n --_ui-page-gap: var(--ui-page-gap, var(--ui-space-l));\n --_ui-page-padding: var(--ui-page-padding, var(--ui-space-l));\n --_ui-page-nav-width: var(--ui-page-nav-width, 16em);\n --_ui-page-aside-width: var(--ui-page-aside-width, 16em);\n --_ui-page-max-width: var(--ui-page-max-width, none);\n position: relative;\n box-sizing: border-box;\n display: grid;\n grid-template:\n \"header header header\" auto\n \"nav main aside\" 1fr\n \"footer footer footer\" auto\n / auto minmax(0, 1fr) auto;\n gap: var(--_ui-page-gap);\n min-block-size: var(--ui-page-min-height, 100dvh);\n max-inline-size: var(--_ui-page-max-width);\n margin-inline: auto;\n padding: var(--_ui-page-padding);\n }\n .ui.page > header {\n grid-area: header;\n }\n .ui.page > nav {\n grid-area: nav;\n inline-size: var(--_ui-page-nav-width);\n }\n .ui.page > main {\n grid-area: main;\n min-inline-size: 0;\n }\n .ui.page > main:focus {\n outline: none;\n }\n .ui.page > aside {\n grid-area: aside;\n inline-size: var(--_ui-page-aside-width);\n }\n .ui.page > footer {\n grid-area: footer;\n }\n\n /* Skip to content: hidden until the keyboard reaches it, then over the page's top-left corner. */\n .skip:not(:focus-visible) {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n .skip {\n position: absolute;\n inset-block-start: var(--ui-space-xs);\n inset-inline-start: var(--ui-space-xs);\n z-index: var(--ui-z-sticky, 10);\n padding: var(--ui-space-xs) var(--ui-space-s);\n border-radius: var(--ui-radius);\n background: var(--ui-surface);\n color: var(--ui-link);\n box-shadow: var(--ui-shadow-floating);\n }\n\n /* A phone's width (the page's own): every region stacked, in reading order. */\n @container (width < 768px) {\n .ui.page {\n grid-template: \"header\" auto \"nav\" auto \"main\" 1fr \"aside\" auto \"footer\" auto / minmax(0, 1fr);\n }\n .ui.page > :is(nav, aside) {\n inline-size: auto;\n }\n }\n}\n","/*\n * `<ui-page>`'s PAGE sheet: registered into the document by the component (`UI.styles.register(..., { page: true })`).\n * - A page frame is the whole window: the body round it loses its margin.\n */\n\n@layer ui.components.page.types {\n body:has(> ui-page) {\n margin: 0;\n }\n}\n","import { Show } from \"solid-js\"\nimport { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UI } from \"spell/ui/core\"\nimport { UIRoot } from \"spell/ui/components/ui-root\"\nimport { pageVocabulary } from \"./UIPage.en\"\n\nimport pageCSS from \"./UIPage.css?inline\"\nimport pagePageCSS from \"./UIPage.page.css?inline\"\n\n/****************\n * ### `<ui-page>`\n * The component behind `<ui-page>`: a whole window's frame, and a root (epic `ui-gaps` P10).\n *\n * - Its regions are the HTML landmarks screen readers jump between:\n * `<header>`, `<nav>`, `<main>` (the unnamed slot), `<aside>` and `<footer>`, laid out in a CSS grid.\n * - A region with nothing slotted into it isn't drawn.\n * - \"Skip to content\" comes first, hidden until the keyboard reaches it: it moves focus to the main content.\n * - The whole window: the page's background, the body's margin cleared (a page sheet), the system's light or dark\n * when no `theme` is set.\n * - A root too, as `<ui-root>`: it loads the components inside it, and shows them once they're ready.\n * - ONE per page: a second still draws, and says so in the console.\n ****************/\nexport class UIPage extends UIRoot<typeof pageVocabulary> {\n @E.proto static vocabulary = pageVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { ...UIRoot.prototype.elementSetup.styleSheets, page: pageCSS }\n } satisfies Partial<E.ElementSetup>\n\n /** Which named slots have content. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** The main region, once drawn. */\n private main: HTMLElement | undefined\n\n /** Has slot `name` content? */\n private has(name: \"header\" | \"nav\" | \"aside\" | \"footer\"): boolean {\n return this.slots.hasContent(this.slotForName(name))\n }\n\n protected override content(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"page\")} style={this.contentStyle}>\n <a class={SKIP} part={this.partForName(\"skip\")} href=\"#\" onClick={(event) => this.skipToContent(event)}>\n {this.isReady ? this.translationForKey(\"skip\") : \"\"}\n </a>\n <Show when={this.has(\"header\")}>\n <header part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"header\")} />\n </header>\n </Show>\n <Show when={this.has(\"nav\")}>\n <nav part={this.partForName(\"nav\")}>\n <slot name={this.slotForName(\"nav\")} />\n </nav>\n </Show>\n <main ref={(main: HTMLElement) => (this.main = main)} part={this.partForName(\"main\")} tabindex=\"-1\">\n <slot />\n </main>\n <Show when={this.has(\"aside\")}>\n <aside part={this.partForName(\"aside\")}>\n <slot name={this.slotForName(\"aside\")} />\n </aside>\n </Show>\n <Show when={this.has(\"footer\")}>\n <footer part={this.partForName(\"footer\")}>\n <slot name={this.slotForName(\"footer\")} />\n </footer>\n </Show>\n </div>\n )\n }\n\n /** \"Skip to content\": focus the main region (a link's `#id` can't reach into a shadow root). */\n private skipToContent(event: MouseEvent) {\n event.preventDefault()\n this.main?.focus()\n }\n\n /**\n * While connected: its page sheet in the document, and one page per document.\n * - SIDE EFFECT: a console warning when another page is already there; this one still draws.\n */\n @E.whileConnected\n protected watchPage() {\n if (isServer) return undefined\n // the runtime loads as the root connects: register once it's there\n void UI.load()\n .then(() => UI.styles.register(PAGE_SHEET, pagePageCSS, { page: true }))\n .catch((error: unknown) => E.Warnings.warn(\"<ui-page>\", \"can't add its page sheet:\", error))\n const pages = UIPage.connected\n if (pages.size) E.Warnings.warn(\"<ui-page>\", \"a second page frame on this page; one <ui-page> frames a window\")\n pages.add(this)\n return () => pages.delete(this)\n }\n\n /** The pages in the document now. */\n private static readonly connected = new Set<UIPage>()\n\n /** Forget the connected pages, for tests. */\n static reset() {\n UIPage.connected.clear()\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIPage extends E.AttributeValues<typeof pageVocabulary> {}\n\n/** The skip link's class. */\nconst SKIP = \"skip\"\n\n/** The page sheet's name in `UI.styles`. */\nconst PAGE_SHEET = \"page-frame\"\n","/**\n * The page family: defines `<ui-page>` and exports its component, `UIPage`.\n * - SIDE EFFECT: importing it defines the tag (and `<ui-root>`'s family, which a page is built on).\n * - Also the library's `spell/ui/ui-page` entry (its size is in `notes/report.md`).\n */\n\nim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AAA,IAAO,cAAhBF,GADWG,CAAA,GAEIpB,EAAAmB,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAANnB,EAAAkB,GAAMC,CAAA,GAA6CzB,EAAAyB,GAAA,QAAA,GAC/CrB,EADEqB,GACK,cAAalB,EAApBiB,GAAA,GADEC,GACkBb,CAAA,CAAA,GAApBL,EAAAiB,GAAA,IADEC,CAAA,GAEIrB,EAFJqB,GAEW,gBAAelB,EAAtBiB,GAAA,IAFJC,GAE0B,EACnC,aAAa;CAAE,GAAGC,EAAO,UAAU,aAAa;CAAa,MAAMzB;AAAQ,EAC7E,CAAA,CAAA,GAFeM,EAAAiB,GAAA,IAFJC,CAAA,GA0EXrB,EA1EWqB,GA0Ea,6BAAY,IAAI,IAAY,CAAA;AA1E/C,IAAMiD,IAANjD,GAsFDqC,IAAO,QAGPQ,IAAa;;;cCxGnBI,EAAO,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-page.js","names":["this","<Show when={this.has(\"header\")}>\n <header part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"header\")} />\n </header>\n </Show>","name={this.slotForName(\"header\")}","<header part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"header\")} />\n </header>","<div class={this.rootClass} part={this.partForName(\"page\")} style={this.contentStyle}>\n <a class={SKIP} part={this.partForName(\"skip\")} href=\"#\" onClick={(event) => this.skipToContent(event)}>\n {this.isReady ? this.translationForKey(\"skip\") : \"\"}\n </a>\n <Show when={this.has(\"header\")}>\n <header part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"header\")} />\n </header>\n </Show>\n <Show when={this.has(\"nav\")}>\n <nav part={this.partForName(\"nav\")}>\n <slot name={this.slotForName(\"nav\")} />\n </nav>\n </Show>\n <main ref={(main) => this.main = main} part={this.partForName(\"main\")} tabindex=\"-1\">\n <slot />\n </main>\n <Show when={this.has(\"aside\")}>\n <aside part={this.partForName(\"aside\")}>\n <slot name={this.slotForName(\"aside\")} />\n </aside>\n </Show>\n <Show when={this.has(\"footer\")}>\n <footer part={this.partForName(\"footer\")}>\n <slot name={this.slotForName(\"footer\")} />\n </footer>\n </Show>\n </div>","<Show when={this.has(\"nav\")}>\n <nav part={this.partForName(\"nav\")}>\n <slot name={this.slotForName(\"nav\")} />\n </nav>\n </Show>","name={this.slotForName(\"nav\")}","<nav part={this.partForName(\"nav\")}>\n <slot name={this.slotForName(\"nav\")} />\n </nav>","ref={(main) => this.main = main}","<Show when={this.has(\"aside\")}>\n <aside part={this.partForName(\"aside\")}>\n <slot name={this.slotForName(\"aside\")} />\n </aside>\n </Show>","name={this.slotForName(\"aside\")}","<aside part={this.partForName(\"aside\")}>\n <slot name={this.slotForName(\"aside\")} />\n </aside>","<Show when={this.has(\"footer\")}>\n <footer part={this.partForName(\"footer\")}>\n <slot name={this.slotForName(\"footer\")} />\n </footer>\n </Show>","name={this.slotForName(\"footer\")}","<footer part={this.partForName(\"footer\")}>\n <slot name={this.slotForName(\"footer\")} />\n </footer>","part={this.partForName(\"page\")}","style={this.contentStyle}","class={SKIP}","part={this.partForName(\"skip\")}","part={this.partForName(\"main\")}","E.proto","E.protoMerged","E.whileConnected","E.SlotContent","_$getOwner","_$setAttribute","pagePageCSS","__name","pageCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","rootVocabulary","getOwner$1","pageOwnVocabulary","pageVocabulary","UIPage_default","UIPage_page_default","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_watchPage_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIPage","UIRoot","proto","protoMerged","whileConnected","SlotContent","name","_self$","_el$","_el$2","_el$5","_el$8","_el$9","_el$12","_el$15","_o$","event","insert","_c$","memo","createComponent","Show","_el$3","_el$4","effect","_p$","setAttribute","t","_el$6","_el$7","ref","main","_el$10","_el$11","_el$13","_el$14","readShallow","SKIP","className","style","i","n","claimElement","isServer","UI","PAGE_SHEET","Warnings","error","pages","UIPage","delegateEvents"],"sources":["../src/components/ui-page/UIPage.en.ts","../src/components/ui-page/UIPage.tsx","../src/components/ui-page/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-page>`: every name the tag uses.\n * - A page is a ROOT (`UIRoot`): its whole vocabulary is `<ui-root>`'s names, then these.\n * - The page frame (epic `ui-gaps` P10): header, nav, main content, aside and footer, each the landmark screen\n * readers jump between, for a drawing, which holds no native HTML.\n * - Pure data: node reads it (`yarn site:data`, `yarn gen:root`).\n */\n\nimport type { E } from \"spell/ui/core\"\nimport { rootVocabulary } from \"spell/ui/components/ui-root/UIRoot.en\"\n\n/****************\n * ### `pageOwnVocabulary`\n * The names `<ui-page>` adds to a root's.\n ****************/\nconst pageOwnVocabulary = {\n tag: \"ui-page\",\n icon: \"file outline\",\n topics: [\"layout\", \"containers\", \"navigation\"],\n aka: [\"page\", \"app shell\", \"body\", \"layout\", \"frame\", \"landmarks\", \"holy grail layout\"],\n noun: \"page\",\n partOfSpeech: \"structure\",\n description:\n \"A page frames a whole window: a header, navigation, the main content, a side column and a footer, each a \" +\n \"landmark screen readers jump between. It's a root too: it loads the components inside it.\",\n slots: [\n { name: \"\", description: \"The main content (`<main>`).\" },\n { name: \"header\", description: \"The page's header, across the top (`<header>`): a title, a logo, a search.\" },\n { name: \"nav\", description: \"The site's navigation (`<nav>`): a column beside the content, on the start side.\" },\n { name: \"aside\", description: \"Related content (`<aside>`): a column on the end side.\" },\n { name: \"footer\", description: \"The page's footer, across the bottom (`<footer>`).\" }\n ],\n parts: [\n { name: \"page\", description: \"The grid of regions.\" },\n { name: \"skip\", description: 'The \"Skip to content\" link, shown only while it has the keyboard\\'s focus.' },\n { name: \"header\", description: \"The header region.\" },\n { name: \"nav\", description: \"The navigation region.\" },\n { name: \"main\", description: \"The main content region.\" },\n { name: \"aside\", description: \"The side region.\" },\n { name: \"footer\", description: \"The footer region.\" }\n ],\n texts: [{ key: \"skip\", text: \"Skip to content\", description: \"The first link of the page, for keyboards.\" }]\n} as const\n\n/****************\n * ### `pageVocabulary`\n * `<ui-page>`'s whole vocabulary: a root's names, then its own.\n ****************/\nexport const pageVocabulary = {\n ...rootVocabulary,\n ...pageOwnVocabulary,\n slots: pageOwnVocabulary.slots,\n parts: [...rootVocabulary.parts, ...pageOwnVocabulary.parts],\n texts: [...rootVocabulary.texts, ...pageOwnVocabulary.texts]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UI } from \"spell/ui/core\"\nimport { UIRoot } from \"spell/ui/components/ui-root\"\nimport { pageVocabulary } from \"./UIPage.en\"\n\nimport pageCSS from \"./UIPage.css?inline\"\nimport pagePageCSS from \"./UIPage.page.css?inline\"\n\n/****************\n * ### `<ui-page>`\n * The component behind `<ui-page>`: a whole window's frame, and a root (epic `ui-gaps` P10).\n *\n * - Its regions are the HTML landmarks screen readers jump between:\n * `<header>`, `<nav>`, `<main>` (the unnamed slot), `<aside>` and `<footer>`, laid out in a CSS grid.\n * - A region with nothing slotted into it isn't drawn.\n * - \"Skip to content\" comes first, hidden until the keyboard reaches it: it moves focus to the main content.\n * - The whole window: the page's background, the body's margin cleared (a page sheet), the system's light or dark\n * when no `theme` is set.\n * - A root too, as `<ui-root>`: it loads the components inside it, and shows them once they're ready.\n * - ONE per page: a second still draws, and says so in the console.\n ****************/\nexport class UIPage extends UIRoot<typeof pageVocabulary> {\n @E.proto static vocabulary = pageVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { ...UIRoot.prototype.elementSetup.styleSheets, page: pageCSS }\n } satisfies Partial<E.ElementSetup>\n\n /** Which named slots have content. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** The main region, once drawn. */\n private main: HTMLElement | undefined\n\n /** Has slot `name` content? */\n private has(name: \"header\" | \"nav\" | \"aside\" | \"footer\"): boolean {\n return this.slots.hasContent(this.slotForName(name))\n }\n\n protected override content(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"page\")} style={this.contentStyle}>\n <a class={SKIP} part={this.partForName(\"skip\")} href=\"#\" onClick={(event) => this.skipToContent(event)}>\n {this.isReady ? this.translationForKey(\"skip\") : \"\"}\n </a>\n <Show when={this.has(\"header\")}>\n <header part={this.partForName(\"header\")}>\n <slot name={this.slotForName(\"header\")} />\n </header>\n </Show>\n <Show when={this.has(\"nav\")}>\n <nav part={this.partForName(\"nav\")}>\n <slot name={this.slotForName(\"nav\")} />\n </nav>\n </Show>\n <main ref={(main: HTMLElement) => (this.main = main)} part={this.partForName(\"main\")} tabindex=\"-1\">\n <slot />\n </main>\n <Show when={this.has(\"aside\")}>\n <aside part={this.partForName(\"aside\")}>\n <slot name={this.slotForName(\"aside\")} />\n </aside>\n </Show>\n <Show when={this.has(\"footer\")}>\n <footer part={this.partForName(\"footer\")}>\n <slot name={this.slotForName(\"footer\")} />\n </footer>\n </Show>\n </div>\n )\n }\n\n /** \"Skip to content\": focus the main region (a link's `#id` can't reach into a shadow root). */\n private skipToContent(event: MouseEvent) {\n event.preventDefault()\n this.main?.focus()\n }\n\n /**\n * While connected: its page sheet in the document, and one page per document.\n * - SIDE EFFECT: a console warning when another page is already there; this one still draws.\n */\n @E.whileConnected\n protected watchPage() {\n if (isServer) return undefined\n // the runtime loads as the root connects: register once it's there\n void UI.load()\n .then(() => UI.styles.register(PAGE_SHEET, pagePageCSS, { page: true }))\n .catch((error: unknown) => E.Warnings.warn(\"<ui-page>\", \"can't add its page sheet:\", error))\n const pages = UIPage.connected\n if (pages.size) E.Warnings.warn(\"<ui-page>\", \"a second page frame on this page; one <ui-page> frames a window\")\n pages.add(this)\n return () => pages.delete(this)\n }\n\n /** The pages in the document now. */\n private static readonly connected = new Set<UIPage>()\n\n /** Forget the connected pages, for tests. */\n static reset() {\n UIPage.connected.clear()\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIPage extends E.AttributeValues<typeof pageVocabulary> {}\n\n/** The skip link's class. */\nconst SKIP = \"skip\"\n\n/** The page sheet's name in `UI.styles`. */\nconst PAGE_SHEET = \"page-frame\"\n","/**\n * The page family: defines `<ui-page>` and exports its component, `UIPage`.\n * - SIDE EFFECT: importing it defines the tag (and `<ui-root>`'s family, which a page is built on).\n * - Also the library's `spell/ui/ui-page` entry (its size is in `notes/report.md`).\n */\n\nimport { UIPage } from \"./UIPage\"\n\nUIPage.define()\n\nexport { UIPage }\n"],"mappings":";;;;;;AAeA,IAAMqC,IAAoB;CACxB,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAU;EAAc;CAAY;CAC7C,KAAK;EAAC;EAAQ;EAAa;EAAQ;EAAU;EAAS;EAAa;CAAmB;CACtF,MAAM;CACN,cAAc;CACd,aACE;CAEF,OAAO;EACL;GAAE,MAAM;GAAI,aAAa;EAA+B;EACxD;GAAE,MAAM;GAAU,aAAa;EAA8E;EAC7G;GAAE,MAAM;GAAO,aAAa;EAAoF;EAChH;GAAE,MAAM;GAAS,aAAa;EAA0D;EACxF;GAAE,MAAM;GAAU,aAAa;EAAqD;CACtF;CACA,OAAO;EACL;GAAE,MAAM;GAAQ,aAAa;EAAuB;EACpD;GAAE,MAAM;GAAQ,aAAa;EAA6E;EAC1G;GAAE,MAAM;GAAU,aAAa;EAAqB;EACpD;GAAE,MAAM;GAAO,aAAa;EAAyB;EACrD;GAAE,MAAM;GAAQ,aAAa;EAA2B;EACxD;GAAE,MAAM;GAAS,aAAa;EAAmB;EACjD;GAAE,MAAM;GAAU,aAAa;EAAqB;CACtD;CACA,OAAO,CAAC;EAAE,KAAK;EAAQ,MAAM;EAAmB,aAAa;CAA6C,CAAC;AAC7G,GAMaC,IAAiB;CAC5B,GAAGH;CACH,GAAGE;CACH,OAAOA,EAAkB;CACzB,OAAO,CAAC,GAAGF,EAAe,OAAO,GAAGE,EAAkB,KAAK;CAC3D,OAAO,CAAC,GAAGF,EAAe,OAAO,GAAGE,EAAkB,KAAK;AAC7D,G,0/DCtDAS,GAAAC,GAAAC,GAAAC,GAAAC,GAuBaC,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MF,EAAW,KAAK,aAAa,kEAAkE,GAC/GE,EAAM,IAAI,IAAI,SACDA,EAAM,OAAO,IAAI;CAChC;CAMA,OAAO,QAAQ;EACb,QAAO,UAAU,MAAM;CACzB;AACF;AAhFO,IAAAtE,EAAAoB,CAAA,GA6DLjB,EAAAkB,GAAA,GAAU,aADVJ,GA5DWK,CAAA,GACFnB,EAAAkB,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEInB,EAAAkB,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAANlB,EAAAiB,GAAMC,CAAA,GAA6CxB,EAAAwB,GAAA,QAAA,GAC/CrB,EADEqB,GACK,cAAajB,EAApBgB,GAAA,GADEC,GACkBb,CAAA,CAAA,GAApBJ,EAAAgB,GAAA,IADEC,CAAA,GAEIrB,EAFJqB,GAEW,gBAAejB,EAAtBgB,GAAA,IAFJC,GAE0B,EACnC,aAAa;CAAE,GAAGC,EAAO,UAAU,aAAa;CAAa,MAAMxB;AAAQ,EAC7E,CAAA,CAAA,GAFeM,EAAAgB,GAAA,IAFJC,CAAA,GA0EXrB,EA1EWqB,GA0Ea,6BAAY,IAAI,IAAY,CAAA;AA1E/C,IAAMiD,IAANjD,GAsFDqC,IAAO,QAGPQ,IAAa;;A,cCxGnBI,EAAO,OAAO"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-panel/ui-panel.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-panel>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-panel\" data-omit=\"\">\n <ui-property-group label=\"Name\" data-group=\"name\">\n <ui-property name=\"label\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"icon\"></ui-property>\n <ui-property name=\"badge\"></ui-property>\n <ui-property name=\"description\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"level\"></ui-property>\n <ui-property name=\"fold-icon\"></ui-property>\n <ui-property name=\"color\"></ui-property>\n <ui-property name=\"inverted\"></ui-property>\n <ui-property name=\"size\"></ui-property>\n <ui-property name=\"dividing\"></ui-property>\n <ui-property name=\"appearance\"></ui-property>\n <ui-property name=\"source\"></ui-property>\n <ui-property name=\"selector\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"parent\"></ui-property>\n <ui-property name=\"offset\"></ui-property>\n <ui-property name=\"block\"></ui-property>\n <ui-property name=\"padding\"></ui-property>\n <ui-property name=\"attach-to\"></ui-property>\n <ui-property name=\"scrolling\"></ui-property>\n <ui-property name=\"height\"></ui-property>\n <ui-property name=\"align\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"States\" data-group=\"states\">\n <ui-property name=\"open\"></ui-property>\n <ui-property name=\"loading\"></ui-property>\n <ui-property name=\"disabled\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Form\" data-group=\"form\">\n <ui-property name=\"hint\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Behaviour\" data-group=\"behaviour\">\n <ui-property name=\"hide-empty\"></ui-property>\n <ui-property name=\"collapsible\"></ui-property>\n <ui-property name=\"sticky\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-panel.editor-BCUkdr4S.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-panel.editor-BCUkdr4S.js","names":["ui_panel_editor_default"],"sources":[],"mappings":""}
|
package/dist/ui-panel.js
CHANGED
|
@@ -1,10 +1,57 @@
|
|
|
1
|
-
import "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import { UISection as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import "./rolldown-runtime-c6e9CmGy.js";
|
|
2
|
+
import { Gt as e, Jt as t, Kt as n, Ut as r, Wt as i, Yt as a, cssState as o, onChange as s, proto as c, protoMerged as l, qt as u, scrollEnds as d, state as f, watches as p } from "./core.js";
|
|
3
|
+
import { UISection as m, n as h, t as g } from "./ui-section.js";
|
|
4
|
+
import { Show as _ } from "solid-js";
|
|
5
|
+
import { className as v, createComponent as y, effect as b, readShallow as x, template as S } from "@solidjs/web";
|
|
6
|
+
// src/components/ui-panel/ScrollShades.ts
|
|
7
|
+
var C = class ScrollShades {
|
|
8
|
+
domElement;
|
|
9
|
+
onChange;
|
|
10
|
+
body;
|
|
11
|
+
listening;
|
|
12
|
+
resizes;
|
|
13
|
+
constructor(e, t) {
|
|
14
|
+
this.domElement = e, this.onChange = t;
|
|
15
|
+
}
|
|
16
|
+
refresh() {
|
|
17
|
+
let e = ScrollShades.bodyOf(this.domElement);
|
|
18
|
+
e !== this.body && (this.listening?.abort(), this.listening = void 0, this.body = e, e && (this.listening = new AbortController(), e.addEventListener("scroll", () => this.measure(), {
|
|
19
|
+
passive: !0,
|
|
20
|
+
signal: this.listening.signal
|
|
21
|
+
})));
|
|
22
|
+
let t = this.resizes ??= new ResizeObserver(() => this.measure());
|
|
23
|
+
if (t.disconnect(), e) {
|
|
24
|
+
t.observe(e);
|
|
25
|
+
for (let n of e.children) t.observe(n);
|
|
26
|
+
}
|
|
27
|
+
this.measure();
|
|
28
|
+
}
|
|
29
|
+
stop() {
|
|
30
|
+
this.listening?.abort(), this.listening = void 0, this.resizes?.disconnect(), this.body = void 0, this.onChange(w);
|
|
31
|
+
}
|
|
32
|
+
measure() {
|
|
33
|
+
this.onChange(this.body ? d(this.body, "block") : w);
|
|
34
|
+
}
|
|
35
|
+
static bodyOf(e) {
|
|
36
|
+
for (let t of e.children) {
|
|
37
|
+
if (t.slot) continue;
|
|
38
|
+
let { overflowY: e } = getComputedStyle(t);
|
|
39
|
+
if (e === "auto" || e === "scroll") return t;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, w = {
|
|
43
|
+
start: !1,
|
|
44
|
+
end: !1
|
|
45
|
+
}, T = "pane", E = "Hue of the whole panel: the header band, the box, the border and the sub-head bands (sub-panels follow it). None: `primary`. Any hue, including one a theme adds (`spell-brand`'s `accent`, Polished Ivory).", D = "Where each band's open / close chevron sits: `end`, at the far end of the band after any actions (the panel's default), or `start`, before the title.", O = "The look: `pane`, a whole pane under one flat bar, with no box or padding of its own: its title is the bar and its content fills what's left, so it can scroll by itself. Put a toolbar in its `slot=\"actions\"`, and the bar's chevron, the toolbar's items and its actions read as one row. Closed, only the bar is left. The section's words too: `bordered`, `styled`, `raised`, `basic`, `drawer`.", k = [{
|
|
46
|
+
name: "more-above",
|
|
47
|
+
description: "A pane whose body is scrolled down from its top: a shade shows under its bar."
|
|
48
|
+
}, {
|
|
49
|
+
name: "more-below",
|
|
50
|
+
description: "A pane whose body has more below: a shade shows at its bottom."
|
|
51
|
+
}], A = {
|
|
52
|
+
...h,
|
|
7
53
|
tag: "ui-panel",
|
|
54
|
+
partOfSpeech: "structure",
|
|
8
55
|
icon: "window maximize outline",
|
|
9
56
|
topics: ["layout", "containers"],
|
|
10
57
|
aka: [
|
|
@@ -16,42 +63,73 @@ var f = "pane", p = "Hue of the whole panel: the header band, the box, the bord
|
|
|
16
63
|
"property sheet"
|
|
17
64
|
],
|
|
18
65
|
description: "A panel is an inspector: a tinted box of fields under a header band, with sub-head bands that open and close. It takes every `<ui-section>` attribute.",
|
|
19
|
-
attributes:
|
|
66
|
+
attributes: h.attributes.map((e) => e.name === "color" ? {
|
|
20
67
|
...e,
|
|
21
|
-
description:
|
|
68
|
+
description: E
|
|
22
69
|
} : e.name === "fold-icon" ? {
|
|
23
70
|
...e,
|
|
24
|
-
description:
|
|
71
|
+
description: D
|
|
25
72
|
} : e.name === "appearance" ? {
|
|
26
73
|
...e,
|
|
27
|
-
values: [...e.values,
|
|
28
|
-
description:
|
|
29
|
-
} : e)
|
|
30
|
-
|
|
74
|
+
values: [...e.values, T],
|
|
75
|
+
description: O
|
|
76
|
+
} : e),
|
|
77
|
+
states: [...h.states, ...k]
|
|
78
|
+
}, j = "@layer ui.components.panel.types{.ui.section.panel:is(:not(.sub),.loose):not(:is(.primary,.secondary,.red,.orange,.yellow,.olive,.green,.teal,.blue,.violet,.purple,.pink,.brown,.grey,.black,.accent)){--_ui-panel-hue-box:color-mix(in oklab, var(--ui-primary-background) 35%, var(--ui-surface));--_ui-panel-hue-border:color-mix(in oklab, var(--ui-primary) 28%, var(--ui-surface));--_ui-panel-hue-header:var(--ui-primary-background);--_ui-panel-hue-header-color:var(--ui-primary-header);--_ui-panel-hue-subhead:color-mix(in oklab, var(--ui-primary-background) 65%, var(--ui-surface));--_ui-panel-hue-subhead-color:var(--ui-primary-text)}.ui.section.panel:is(.primary,.secondary,.red,.orange,.yellow,.olive,.green,.teal,.blue,.violet,.purple,.pink,.brown,.grey,.black,.accent){--_ui-panel-hue-box:color-mix(in oklab, var(--ui-color-background) 35%, var(--ui-surface));--_ui-panel-hue-border:color-mix(in oklab, var(--ui-color) 28%, var(--ui-surface));--_ui-panel-hue-header:var(--ui-color-background);--_ui-panel-hue-header-color:var(--ui-color-header);--_ui-panel-hue-subhead:color-mix(in oklab, var(--ui-color-background) 65%, var(--ui-surface));--_ui-panel-hue-subhead-color:var(--ui-color-text)}.ui.section.panel{--_ui-panel-background:var(--ui-panel-background,var(--_ui-panel-hue-box,light-dark(var(--spell-accent-25,var(--ui-surface)),var(--ui-surface))));--_ui-panel-border-color:var(--ui-panel-border-color,var(--_ui-panel-hue-border,light-dark(var(--spell-accent-150,var(--ui-border-color)),var(--ui-border-color))));--_ui-panel-header-background:var(--ui-panel-header-background,var(--_ui-panel-hue-header,light-dark(var(--spell-accent-100,var(--ui-surface-strong)),var(--ui-surface-strong))));--_ui-panel-header-color:var(--ui-panel-header-color,var(--_ui-panel-hue-header-color,var(--spell-text-strong,var(--ui-text-dark))));--_ui-panel-subhead-background:var(--ui-panel-subhead-background,var(--_ui-panel-hue-subhead,light-dark(var(--spell-accent-75,var(--ui-surface-muted)),var(--ui-surface-muted))));--_ui-panel-subhead-color:var(--ui-panel-subhead-color,var(--_ui-panel-hue-subhead-color,light-dark(var(--spell-accent-800,var(--ui-text-muted)),var(--ui-text-muted))));--_ui-panel-radius:var(--ui-panel-radius,var(--ui-radius-l,16px));--_ui-panel-padding:var(--ui-panel-padding,var(--ui-font-size,16px));--_ui-panel-gap:var(--ui-panel-gap,8px);--_ui-panel-band-space:var(--ui-panel-band-space,20px);--_ui-panel-shadow:var(--ui-panel-shadow,var(--spell-shadow-sm,var(--ui-shadow-raised)))}.ui.section.panel:not(.sub){padding:var(--_ui-panel-padding);border:1px solid var(--_ui-panel-border-color);border-radius:var(--_ui-panel-radius);background:var(--_ui-panel-background);box-shadow:var(--_ui-panel-shadow);font-family:var(--ui-font-family);margin-block:0}.ui.section.panel.sub{margin-block:0;margin-inline:calc(-1 * var(--_ui-panel-padding));box-shadow:none;background:0 0;border:none;padding:0}}@layer ui.components.panel.content{.ui.section.panel>.title{border-bottom:none}.ui.section.panel:not(.sub)>.title{margin:calc(-1 * var(--_ui-panel-padding));padding:var(--ui-space-s) var(--_ui-panel-padding);border-radius:calc(var(--_ui-panel-radius) - 1px) calc(var(--_ui-panel-radius) - 1px) 0 0;background:var(--_ui-panel-header-background);color:var(--_ui-panel-header-color);margin-block-end:0}.ui.section.panel:not(.sub)>.title>.heading{font-family:var(--ui-font-family);letter-spacing:-.01em;font-size:1.0625em;font-weight:700;line-height:1}.ui.section.panel.sub>.title{padding:var(--ui-space-2xs) var(--_ui-panel-padding);border-top:1px solid var(--_ui-panel-border-color);background:var(--_ui-panel-subhead-background);color:var(--_ui-panel-subhead-color);border-radius:0;margin:0}.ui.section.panel.sub>.title>.heading,.ui.section.panel.sub>.title>.heading>.toggle{font-family:var(--ui-font-family);letter-spacing:.06em;text-transform:uppercase;font-weight:700;line-height:1.5}.ui.section.panel.sub>.title>.heading{font-size:.75em}.ui.section.panel>.title>.fold.icon,.ui.section.panel>.title>.heading>.toggle>.fold.icon{opacity:.55;width:.6875em;height:.6875em;transition:rotate var(--_ui-section-duration) var(--ui-ease), opacity var(--ui-duration-fast) var(--ui-ease)}.ui.section.panel>.title:has(>.heading:hover)>.fold.icon,.ui.section.panel>.title>.fold.icon:hover,.ui.section.panel>.title>.heading>.toggle:hover>.fold.icon{opacity:1}.ui.section.panel.sub>.title>.heading>.toggle>.fold.icon{width:.9166em;height:.9166em}.ui.section.panel>.subhead{padding:var(--ui-space-xs) 0 0;font-size:.8125em}.ui.section.panel.sub>.subhead{padding-inline:var(--_ui-panel-padding)}.ui.section.panel>.content{--_ui-panel-outer-gap:var(--_ui-panel-gap);gap:var(--_ui-panel-gap);flex-direction:column;font-size:.875em;display:flex}.ui.section.panel>.content:not([hidden]){padding:var(--ui-space-s) 0 0}.ui.section.panel.sub>.content:not([hidden]){padding:var(--ui-space-s) var(--_ui-panel-padding) var(--ui-space-2xs)}:host(:state(pane)){flex-direction:column;min-width:0;height:100%;min-height:0;display:flex}.ui.pane.section.panel:not(.sub){min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex-direction:column;flex:auto;padding:0;display:flex}.ui.pane.section.panel>.sentinel{display:none}.ui.pane.section.panel:not(.sub)>.title{box-sizing:border-box;height:var(--ui-panel-pane-bar-height,max(40px, calc(var(--ui-control-height,0px) + 12px)));padding-block:0;padding-inline:var(--ui-panel-pane-bar-padding,6px 8px);box-shadow:inset 0 -1px 0 var(--ui-border-color);background:var(--ui-panel-pane-bar-background,none);color:var(--ui-text-color);border-radius:0;flex:none;align-items:center;gap:0;margin:0}.ui.pane.section.panel>.title>.heading{flex:none;margin:0;font-size:13px}.ui.pane.section.panel:not(:has(>.title>.heading>button.toggle))>.title{padding-inline:var(--ui-panel-pane-bar-padding,8px 16px)}.ui.pane.section.panel:not(:has(>.title>.heading>button.toggle))>.title>.heading{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.ui.pane.section.panel>.title>.heading>.toggle{border-radius:var(--ui-radius-pill,9999px);width:14px;min-width:14px;height:16px;color:var(--ui-text-muted);grid-auto-flow:column;justify-content:center;place-items:center;gap:0;padding:0;display:inline-grid}.ui.pane.section.panel>.title>.heading>.toggle:hover{background:oklch(from var(--ui-ink) l c h / .08);color:var(--ui-text-color)}.ui.pane.section.panel>.title>.heading>.toggle>.fold.icon{opacity:1;width:10px;height:10px;margin:0}.ui.pane.section.panel>.title>.heading>.toggle>.header{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.ui.pane.section.panel>.title>.actions{flex:auto;align-items:center;min-width:0;margin-inline-start:2px;display:flex}.ui.pane.section.panel>.title>.actions ::slotted(*){flex:auto;min-width:0}.ui.pane.section.panel>.content{flex-direction:column;flex:auto;min-height:0;font-size:1em;display:flex;position:relative}.ui.pane.section.panel>.content:not([hidden]){padding:0}:host(:state(pane):state(collapsed))>.ui.pane.section.panel:not(.sub)>.title{box-shadow:none;border-radius:0}.ui.pane.section.panel{--_ui-panel-scroll-shade:var(--ui-panel-scroll-shade,light-dark(#0000001a,#0000004d));--_ui-panel-scroll-shade-size:var(--ui-panel-scroll-shade-size,16px);--_ui-panel-scroll-shade-top:var(--ui-panel-scroll-shade-top,0px)}.ui.pane.section.panel>.content>.scroll.shade{z-index:3;height:var(--_ui-panel-scroll-shade-size);pointer-events:none;opacity:0;transition:opacity var(--ui-duration-fast,.15s) var(--ui-ease,ease);position:absolute;inset-inline:0}.ui.pane.section.panel>.content>.top.scroll.shade{top:var(--_ui-panel-scroll-shade-top);background:linear-gradient(to bottom, var(--_ui-panel-scroll-shade), transparent)}.ui.pane.section.panel>.content>.bottom.scroll.shade{background:linear-gradient(to top, var(--_ui-panel-scroll-shade), transparent);bottom:0}:host(:state(more-above))>.ui.pane.section.panel>.content>.top.scroll.shade,:host(:state(more-below))>.ui.pane.section.panel>.content>.bottom.scroll.shade{opacity:1}}@layer ui.components.panel.states{:host(:state(collapsed))>.ui.section.panel:not(.sub){padding-block-end:0}:host(:state(collapsed))>.ui.section.panel:not(.sub)>.title{border-radius:calc(var(--_ui-panel-radius) - 1px);margin-block-end:0}:host(:not(:first-child))>.ui.section.panel.sub{margin-block-start:calc(var(--_ui-panel-band-space) - var(--_ui-panel-outer-gap,0px))}:host(:state(collapsed):not(:last-child))>.ui.section.panel.sub{margin-block-end:calc(-1 * var(--_ui-panel-band-space))}:host(:last-child:state(collapsed))>.ui.section.panel.sub{margin-block-end:calc(-1 * var(--_ui-panel-padding))}@media (prefers-reduced-motion:no-preference){:host(:state(animated))>.ui.section.panel:not(.sub):not(.scrolling)>.content{overflow-clip-margin:var(--_ui-panel-padding);overflow:clip}}:host(:last-child:state(collapsed))>.ui.section.panel.sub>.title{border-radius:0 0 calc(var(--_ui-panel-radius) - 1px) calc(var(--_ui-panel-radius) - 1px)}}", M = /* @__PURE__ */ S("<div aria-hidden=true>"), N, P, F, I, L, R, z, B, V, H, U, W, G = class _UIPanel extends (V = m, B = [c], z = [l], R = [c], L = [o("pane")], I = [o("more-above"), f], F = [o("more-below"), f], P = [s("isReady", "isConnected", "isPane")], N = [p({
|
|
79
|
+
childList: !0,
|
|
80
|
+
subtree: !0
|
|
81
|
+
})], V) {
|
|
31
82
|
constructor() {
|
|
32
|
-
super(...arguments),
|
|
83
|
+
super(...arguments), a(H, 5, this), u(this, U, a(H, 8, this, !1)), a(H, 11, this), u(this, W, a(H, 12, this, !1)), a(H, 15, this), t(this, "scrollShades", new C(this.domElement, ({ start: e, end: t }) => {
|
|
84
|
+
this.hasMoreAbove = e, this.hasMoreBelow = t;
|
|
85
|
+
}));
|
|
33
86
|
}
|
|
34
87
|
get isPane() {
|
|
35
|
-
return String(this.appearance ?? "").split(/\s+/).includes(
|
|
88
|
+
return String(this.appearance ?? "").split(/\s+/).includes(T);
|
|
89
|
+
}
|
|
90
|
+
onScrollShadesChanged(e, t, n) {
|
|
91
|
+
if (e && t && n) return this.scrollShades.refresh(), () => this.scrollShades.stop();
|
|
92
|
+
}
|
|
93
|
+
onBodyChanged() {
|
|
94
|
+
this.isReady && this.domElement.isConnected && this.isPane && this.scrollShades.refresh();
|
|
95
|
+
}
|
|
96
|
+
contentStart() {
|
|
97
|
+
let e = this;
|
|
98
|
+
return y(_, {
|
|
99
|
+
get when() {
|
|
100
|
+
return e.isPane;
|
|
101
|
+
},
|
|
102
|
+
get children() {
|
|
103
|
+
return [(() => {
|
|
104
|
+
var e = M();
|
|
105
|
+
return b(() => x(Y), (t, n) => {
|
|
106
|
+
v(e, t, n);
|
|
107
|
+
}), e;
|
|
108
|
+
})(), (() => {
|
|
109
|
+
var e = M();
|
|
110
|
+
return b(() => x(X), (t, n) => {
|
|
111
|
+
v(e, t, n);
|
|
112
|
+
}), e;
|
|
113
|
+
})()];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
36
116
|
}
|
|
37
117
|
get extraClass() {
|
|
38
|
-
let e = this.enclosingSection instanceof _UIPanel ?
|
|
118
|
+
let e = this.enclosingSection instanceof _UIPanel ? J : void 0;
|
|
39
119
|
return [
|
|
40
120
|
super.extraClass,
|
|
41
|
-
|
|
121
|
+
q,
|
|
42
122
|
e
|
|
43
123
|
].filter(Boolean).join(" ");
|
|
44
124
|
}
|
|
45
125
|
};
|
|
46
|
-
|
|
47
|
-
...
|
|
48
|
-
panel:
|
|
49
|
-
} })),
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
//#endregion
|
|
55
|
-
export { T as UIPanel };
|
|
126
|
+
H = e(V), U = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), r(H, 2, "isPane", L, G), r(H, 4, "hasMoreAbove", I, G, U), r(H, 4, "hasMoreBelow", F, G, W), r(H, 1, "onScrollShadesChanged", P, G), r(H, 1, "onBodyChanged", N, G), r(H, 13, "vocabulary", B, G), r(H, 13, "elementSetup", z, G), r(H, 13, "defaultFoldIcon", R, G), i(H, G), n(G, "UIPanel"), t(G, "vocabulary", a(H, 16, G, A)), a(H, 19, G), t(G, "elementSetup", a(H, 20, G, { styleSheets: {
|
|
127
|
+
...m.prototype.elementSetup.styleSheets,
|
|
128
|
+
panel: j
|
|
129
|
+
} })), a(H, 23, G), t(G, "defaultFoldIcon", a(H, 24, G, g.end)), a(H, 27, G);
|
|
130
|
+
var K = G, q = "panel", J = "sub", Y = "top scroll shade", X = "bottom scroll shade";
|
|
131
|
+
// src/components/ui-panel/index.ts
|
|
132
|
+
K.define();
|
|
133
|
+
export { K as UIPanel };
|
|
56
134
|
|
|
57
135
|
//# sourceMappingURL=ui-panel.js.map
|