spell-ui 0.8.9 → 0.8.10
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 +25 -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 +36 -2
- package/dist/components/ui-modal/UIModal.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +1 -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/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 +884 -806
- 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 +95 -90
- package/dist/jsx.d.ts +3865 -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 +47 -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-CkkJRgab.js +5 -0
- package/dist/ui-modal.editor-CkkJRgab.js.map +1 -0
- package/dist/ui-modal.js +132 -96
- 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 +205 -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 +125 -128
- 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
package/dist/ui-sidebar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-sidebar.js","names":["ref={(element) => this.root = element}","part={this.partForName(\"pushable\")}","this","<div ref={(element) => this.root = element} class={PUSHABLE} part={this.partForName(\"pushable\")}>\n <slot />\n </div>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.state","E.untracked","E.onChange","UIT.SIDEBAR_HOST_STATE","UIT.VISIBLE","_$getOwner","_$readShallow","_$setAttribute","__name","sidebarCSS","part={this.partForName(\"pusher\")}","this","<div class={PUSHER} part={this.partForName(\"pusher\")}>\n <slot />\n </div>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","_$getOwner","_$readShallow","_$setAttribute","__name","sidebarCSS","<Show\n when={this.isModal}\n fallback={<aside\n ref={(element) => this.box = element}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n >\n <slot />\n </aside>}\n >\n <dialog\n ref={(element) => this.box = element}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n aria-modal={this.isVisible ? \"true\" : void 0}\n onCancel={this.onCancel}\n >\n <slot />\n </dialog>\n </Show>","this","ref={(element) => this.box = element}","part={this.partForName(\"sidebar\")}","aria-label={label()}","<aside\n ref={(element) => this.box = element}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n >\n <slot />\n </aside>","aria-modal={this.isVisible ? \"true\" : void 0}","<dialog\n ref={(element) => this.box = element}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n aria-modal={this.isVisible ? \"true\" : void 0}\n onCancel={this.onCancel}\n >\n <slot />\n </dialog>","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.on","E.onChange","E.untracked","E.Disclosure","UIT.CLOSE","E.beforeNextPaint","_$createComponent","_$getOwner","_$readShallow","_$setAttribute","__name","sidebarCSS","UIT.BOTTOM","__name$1","__publicField","WordWidthClasses","PusherTokens","__decorateElement","VISIBLE","__decoratorMetadata","__runInitializers","__privateAdd","SIDEBAR_HOST_STATE","ToggleCommands","BOTTOM","CLOSE","__decoratorStart","getOwner$1","pushableVocabulary","CENTER","UISidebar_default","_tmpl$$2","_onSidebarLayoutsChanged_dec","_report_dec","_sidebarLayouts_dec","_isPushable_dec","_elementSetup_dec$2","_vocabulary_dec$2","_a$2","_init$2","_sidebarLayouts","_UIPushable","UIComponent","proto","protoMerged","cssState","state","untracked","onChange","next","layout","sidebar","layouts","root","visible","pushing","push","modal","ON","OFF","keep","child","inert","isServer","afterSolidUpdate","_self$","_el$","_el$2","ref","element","effect","readShallow","PUSHABLE","className","_p$","t","setAttribute","UIPushable","pusherVocabulary","_tmpl$$1","_isPusher_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UIPusher","PUSHER","UIPusher","sidebarVocabulary","_tmpl$","_tmpl$2","_layout_dec","_reportLayout_dec","_onLayoutChanged_dec","_show_dec","_onShowingChanged_dec","_onCommand_dec","_isSidebar_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UISidebar","on","Disclosure","reason","originalEvent","action","event","isReady","isConnected","isVisible","isModal","box","closedBy","UI","beforeNextPaint","resolve","animation","generation","animations","then","VERTICAL","OVERLAY","UNCOVER","name","pushable","parent","position","transition","blurring","SCALE_DOWN","SCALE","SCALE_ORIGINS","size","offset","label","createComponent","Show","_el$3","_el$4","e","a","addEvent","o","UISidebar"],"sources":["../src/components/ui-sidebar/UIPushable.en.ts","../src/components/ui-sidebar/UISidebar.types.ts","../src/components/ui-sidebar/UISidebar.css?inline","../src/components/ui-sidebar/UIPushable.tsx","../src/components/ui-sidebar/UIPusher.en.ts","../src/components/ui-sidebar/UIPusher.tsx","../src/components/ui-sidebar/UISidebar.en.ts","../src/components/ui-sidebar/UISidebar.tsx","../src/components/ui-sidebar/index.ts"],"sourcesContent":["/**\n * Every name `<ui-sidebar>`, `<ui-pushable>` and `<ui-pusher>` use:\n * tags, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-sidebar position=\"right\" width=\"thin\" transition=\"scale down\" visible>` =>\n * `ui right thin scale down visible sidebar`.\n * Without `transition`, the element adds Fomantic's default for its side\n * (`uncover` left / right, `overlay` top / bottom).\n * - `position` and `transition` are `kind: \"valueOnly\"`: each emits its value alone.\n * - `width` (`kind: \"width\"`, as `<ui-flyout>`'s) takes Fomantic's sidebar words (`very thin` ... `very wide`),\n * which the element adds before the noun (`ui left thin sidebar`),\n * AND columns of the viewport (`4`, `1/4`, `25%` => `four wide`).\n * - `pushable` / `pusher` have no `ui` (Fomantic's `.pushable`, `.pusher`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-pushable>`\n * The box a sidebar slides in:\n * `<div class=\"pushable\" part=\"pushable\"><slot>`, holding `<ui-sidebar>`s and a `<ui-pusher>`.\n ****************/\nexport const pushableVocabulary = {\n tag: \"ui-pushable\",\n icon: \"arrows alternate horizontal\",\n topics: [\"layout\", \"navigation\", \"modules\"],\n aka: [\"sidebar container\", \"pushable area\"],\n noun: \"pushable\",\n ui: false,\n description: \"The context a sidebar appears in: it clips them and moves its pusher.\",\n attributes: [],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-sidebar>`s and one `<ui-pusher>`.\" }],\n parts: [{ name: \"pushable\", description: \"The clipping box.\" }],\n states: [{ name: \"pushable\", description: \"Always: its sidebars find it by this.\" }],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/**\n * The constants and types the `ui-sidebar` family's components share:\n * `<ui-sidebar>` reports a `UIT.SidebarLayout`, which its `<ui-pushable>` turns into the pusher's tokens.\n * - Pure data, at the bottom of the folder's imports: `import type` only, so node can load it (`yarn site:data`).\n * - A constant only one class reads sits below that class.\n * - The word widths are `UIT.WordWidths` (`<ui-flyout>`'s too).\n */\n\nimport type { pushableVocabulary } from \"./UIPushable.en\"\nimport type { sidebarVocabulary } from \"./UISidebar.en\"\n\n/** `<ui-sidebar>`'s vocabulary type, for brevity. */\nexport type SidebarVocabulary = typeof sidebarVocabulary\n\n/** `<ui-pushable>`'s vocabulary type, for brevity. */\nexport type PushableVocabulary = typeof pushableVocabulary\n\n////////////////\n// ## Pusher layout\n////////////////\n\n/** The pusher's `transform-origin` unless a `scale down` sidebar moves it: its centre. */\nexport const CENTER = \"50% 50%\"\n","/*\n * `<ui-sidebar>`, `<ui-pushable>`, `<ui-pusher>`: port of Fomantic's `sidebar.less` + `sidebar.variables`.\n * One sheet for the three elements (each adopts it), as Fomantic's one definition styles the three classes.\n * - Shadow markup contracts:\n * - `<ui-pushable>`: `<div class=\"pushable\" part=\"pushable\"><slot>` -- positioned, clipping;\n * carries the pusher tokens (`PusherTokens`) INLINE, set by the element from its visible sidebar\n * - `<ui-pusher>`: `<div class=\"pusher\" part=\"pusher\"><slot>` -- moved by `--_ui-pusher-transform` /\n * `--_ui-pusher-origin`; its `::after` is the dimmer, shown by `--_ui-pusher-dimmed: 1` (a style query) and\n * blurred by `--_ui-pusher-blurring: 1` (the private `PusherTokens` the pushable sets)\n * - `<ui-sidebar>`: `<dialog class=\"ui [position] [width] [transition] [keyOnly ...] sidebar\" part=\"sidebar\">`\n * (modal, opened with `show()` so it stays IN the pushable) or `<aside ...>` (`persistent`), around the slot\n * - Hidden sidebars are laid out but `visibility: hidden` (out of the tab order and the accessibility tree) and\n * moved off their edge (`--_sidebar-hidden`); `visible` slides them in. The `visibility` transition holds them\n * visible until the pusher has slid back (`uncover`).\n * - Layers inside the pushable, Fomantic's: sidebars over the pusher (102) for `overlay` / `push` / `scale down`,\n * under it (1) for `uncover` / `slide along` / `slide out`; the pusher 2, its dimmer 1000.\n * - Static markup keeps Fomantic's sibling rules (`.ui.visible.left.sidebar ~ .pusher`); the elements can't use\n * them (the pusher is another element's shadow box), hence the tokens.\n * - Tokens: `--ui-sidebar-duration`, `--ui-sidebar-width`,\n * `--ui-sidebar-background` (`--ui-sidebar-inverted-background` when `inverted`),\n * `--ui-sidebar-dimmer-background` (Fomantic's lighter 0.4 dimmer), `--ui-pusher-background`;\n * `blurring` uses the shared `--ui-dimmer-blurred-background` / `--ui-dimmer-blur` (`UIDimmer.css`).\n * - Public tokens are NEVER declared here: the ones a variation swaps (the width words,\n * `inverted`) are read through a private alias on the sidebar box\n * (`--_ui-sidebar-width: var(--ui-sidebar-width, 260px)`), the rest where they paint (read on several boxes,\n * varied by nothing). So a value set on `:root`, an ancestor, the DOM element or `::part(sidebar)` reaches the box\n * (`notes/theming.md` \"Component tokens\").\n * - NOTE: left out, on purpose: `body.pushable` (a whole-page pushable is a `<ui-pushable>` of viewport height),\n * `.fixed` children moving with the pusher, iOS scrolling fixes, `.ui.sidebar.menu .item` corners (the menu is its\n * own element inside the sidebar).\n */\n\n@layer ui.components.sidebar.types, ui.components.sidebar.content, ui.components.sidebar.variations, ui.components.sidebar.states;\n\n/*******************************\n Sidebar\n*******************************/\n\n@layer ui.components.sidebar.types {\n /* DOM elements: no boxes of their own, but the pushable's (so a page can size it: `height: 100dvh`). */\n :host {\n display: contents;\n }\n :host(:state(pushable)) {\n display: block;\n }\n\n /* ## Pushable: positioned and clipping, so sidebars slide inside it. */\n .pushable {\n /*\n * The pusher switches' defaults (`PusherTokens`): the element's inline values beat them, and they reset a\n * nested pushable. Private: switches, not theming.\n */\n --_ui-pusher-transform: none;\n --_ui-pusher-origin: 50% 50%;\n --_ui-pusher-dimmed: 0;\n --_ui-pusher-blurring: 0;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n margin: 0;\n padding: 0;\n overflow: hidden;\n transform: translate3d(0, 0, 0);\n }\n /* Static markup on `<body>`: Fomantic's whole-page context. */\n body.pushable {\n overflow-x: hidden;\n overflow-y: auto;\n transform: none;\n background: var(--ui-pushable-canvas, oklch(0.2 0 0));\n }\n\n /* ## Pusher: the page content, above uncovered sidebars. */\n .pusher {\n position: relative;\n z-index: 2;\n box-sizing: border-box;\n min-height: 100%;\n overflow: hidden;\n /* The pusher's own background. */\n background: var(--ui-pusher-background, var(--ui-surface));\n transform: var(--_ui-pusher-transform, none);\n transform-origin: var(--_ui-pusher-origin, 50% 50%);\n backface-visibility: hidden;\n /* The slide, and the pusher moving with it. */\n transition: transform var(--ui-sidebar-duration, var(--ui-duration-slower)) var(--ui-ease);\n }\n .pushable > .pusher.overflowing {\n overflow: visible;\n }\n\n /* The dimmer: collapsed and transparent until dimmed; it fades out before collapsing. */\n .pusher::after {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1000;\n width: 0;\n height: 0;\n overflow: hidden;\n /* The dimmer over the pusher while a modal sidebar is open. */\n background: var(--ui-sidebar-dimmer-background, oklch(0 0 0 / 0.4));\n opacity: 0;\n will-change: opacity;\n transition:\n opacity var(--ui-sidebar-duration, var(--ui-duration-slower)),\n width 0s var(--ui-sidebar-duration, var(--ui-duration-slower)),\n height 0s var(--ui-sidebar-duration, var(--ui-duration-slower));\n }\n\n /* ## Sidebar: the panel, off its edge until visible. */\n .ui.sidebar {\n /* ## Tokens: private aliases; the width words and `inverted` swap them. */\n /* Width of a left or right sidebar; the width words set it. */\n --_ui-sidebar-width: var(--ui-sidebar-width, 260px);\n /* The panel; `inverted` sets a dark one. */\n --_ui-sidebar-background: var(--ui-sidebar-background, transparent);\n --_sidebar-hidden: translate3d(-100%, 0, 0);\n --ui-inverted: 0;\n position: fixed;\n top: 0;\n left: 0;\n z-index: 102;\n box-sizing: border-box;\n display: block;\n width: var(--_ui-sidebar-width);\n height: 100%;\n max-width: none;\n max-height: 100%;\n margin: 0;\n padding: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n border: none;\n border-radius: 0;\n outline: none;\n background: var(--_ui-sidebar-background);\n color: inherit;\n visibility: hidden;\n transform: var(--_sidebar-hidden);\n backface-visibility: hidden;\n will-change: transform;\n transition:\n transform var(--ui-sidebar-duration, var(--ui-duration-slower)) var(--ui-ease),\n visibility var(--ui-sidebar-duration, var(--ui-duration-slower)) allow-discrete,\n box-shadow var(--ui-sidebar-duration, var(--ui-duration-slower));\n }\n /* In a pushable (the elements always are): absolute, inside it. */\n .pushable:not(body) > .ui.sidebar,\n .pushable:not(body) > .fixed,\n .pushable:not(body) > .pusher::after,\n :is(dialog, aside).ui.sidebar {\n position: absolute;\n }\n .ui.sidebar > * {\n backface-visibility: hidden;\n }\n}\n\n/*******************************\n Content\n*******************************/\n\n@layer ui.components.sidebar.content {\n /* Coupling: a static sidebar menu's items are square. */\n .ui.sidebar.menu .item {\n border-radius: 0;\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.sidebar.variations {\n /* ## Position */\n .ui.left.sidebar {\n --_sidebar-hidden: translate3d(-100%, 0, 0);\n right: auto;\n left: 0;\n }\n .ui.right.sidebar {\n --_sidebar-hidden: translate3d(100%, 0, 0);\n right: 0;\n left: auto;\n }\n .ui.top.sidebar,\n .ui.bottom.sidebar {\n width: 100%;\n height: auto;\n }\n .ui.top.sidebar {\n --_sidebar-hidden: translate3d(0, -100%, 0);\n top: 0;\n bottom: auto;\n }\n .ui.bottom.sidebar {\n --_sidebar-hidden: translate3d(0, 100%, 0);\n top: auto;\n bottom: 0;\n }\n\n /* ## Width (left / right) */\n .ui[class*=\"very thin\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: 60px;\n }\n .ui.thin:is(.left, .right).sidebar:not([class*=\"very thin\"]) {\n --_ui-sidebar-width: 150px;\n }\n .ui.wide:is(.left, .right).sidebar:not([class*=\"very wide\"]) {\n --_ui-sidebar-width: 350px;\n }\n .ui[class*=\"very wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: 475px;\n }\n\n /*\n * Columns of the viewport (`four wide` = 4 / 16): a column width also has the class `wide`,\n * so these come AFTER the word rules at the same specificity and win.\n */\n .ui.wide[class*=\"one wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(100% / 16);\n }\n .ui.wide[class*=\"two wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(200% / 16);\n }\n .ui.wide[class*=\"three wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(300% / 16);\n }\n .ui.wide[class*=\"four wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(400% / 16);\n }\n .ui.wide[class*=\"five wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(500% / 16);\n }\n .ui.wide[class*=\"six wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(600% / 16);\n }\n .ui.wide[class*=\"seven wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(700% / 16);\n }\n .ui.wide[class*=\"eight wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(800% / 16);\n }\n .ui.wide[class*=\"nine wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(900% / 16);\n }\n .ui.wide[class*=\"ten wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(1000% / 16);\n }\n .ui.wide[class*=\"eleven wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(1100% / 16);\n }\n .ui.wide[class*=\"twelve wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(1200% / 16);\n }\n .ui.wide[class*=\"thirteen wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(1300% / 16);\n }\n .ui.wide[class*=\"fourteen wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(1400% / 16);\n }\n .ui.wide[class*=\"fifteen wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(1500% / 16);\n }\n .ui.wide[class*=\"sixteen wide\"]:is(.left, .right).sidebar {\n --_ui-sidebar-width: calc(1600% / 16);\n }\n\n /* ## Inverted: a dark panel. */\n .ui.inverted.sidebar {\n --ui-inverted: 1;\n --ui-scheme: dark;\n --_ui-sidebar-inverted-background: var(--ui-sidebar-inverted-background, oklch(0.22 0.005 260));\n --_ui-sidebar-background: var(--_ui-sidebar-inverted-background);\n color-scheme: dark;\n }\n\n /* ## Transitions: where the panel starts, and its layer. */\n .ui.overlay.sidebar,\n .ui.push.sidebar,\n .ui.scale.down.sidebar {\n z-index: 102;\n }\n .ui.uncover.sidebar {\n --_sidebar-hidden: translate3d(0, 0, 0);\n z-index: 1;\n }\n .ui.slide.along.sidebar,\n .ui.slide.out.sidebar {\n z-index: 1;\n }\n .ui.left.slide.along.sidebar {\n --_sidebar-hidden: translate3d(-50%, 0, 0);\n }\n .ui.right.slide.along.sidebar {\n --_sidebar-hidden: translate3d(50%, 0, 0);\n }\n .ui.top.slide.along.sidebar {\n --_sidebar-hidden: translate3d(0, -50%, 0);\n }\n .ui.bottom.slide.along.sidebar {\n --_sidebar-hidden: translate3d(0, 50%, 0);\n }\n .ui.left.slide.out.sidebar {\n --_sidebar-hidden: translate3d(50%, 0, 0);\n }\n .ui.right.slide.out.sidebar {\n --_sidebar-hidden: translate3d(-50%, 0, 0);\n }\n .ui.top.slide.out.sidebar {\n --_sidebar-hidden: translate3d(0, 50%, 0);\n }\n .ui.bottom.slide.out.sidebar {\n --_sidebar-hidden: translate3d(0, -50%, 0);\n }\n\n /* ## Dimmed pusher (the element's tokens); blurring on top. */\n @container style(--_ui-pusher-dimmed: 1) {\n .pusher::after {\n width: 100%;\n height: 100%;\n opacity: 1;\n transition: opacity var(--ui-sidebar-duration, var(--ui-duration-slower));\n }\n }\n @container style(--_ui-pusher-dimmed: 1) and style(--_ui-pusher-blurring: 1) {\n .pusher::after {\n background: var(--ui-dimmer-blurred-background, oklch(0 0 0 / 0.6));\n backdrop-filter: var(--ui-dimmer-blur, blur(5px) grayscale(0.7));\n }\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.sidebar.states {\n /* ## Visible */\n .ui.visible.sidebar,\n .ui.animating.sidebar {\n visibility: visible;\n }\n /* Visible at once when showing (focus moves in straight away); held visible while hiding (the base rule). */\n .ui.visible.sidebar {\n transform: translate3d(0, 0, 0);\n transition:\n transform var(--ui-sidebar-duration, var(--ui-duration-slower)) var(--ui-ease),\n visibility 0s,\n box-shadow var(--ui-sidebar-duration, var(--ui-duration-slower));\n }\n .ui.visible:is(.left, .right, .top, .bottom).sidebar {\n box-shadow: 0 0 20px var(--ui-border-color);\n }\n\n /* ## Dimmed pusher (static markup) */\n .pushable > .pusher.dimmed::after {\n width: 100%;\n height: 100%;\n opacity: 1;\n transition: opacity var(--ui-sidebar-duration, var(--ui-duration-slower));\n }\n .pushable > .pusher.dimmed.blurring:not(.closing)::after {\n background: var(--ui-dimmer-blurred-background, oklch(0 0 0 / 0.6));\n backdrop-filter: var(--ui-dimmer-blur, blur(5px) grayscale(0.7));\n }\n .pushable > .pusher.closing.dimmed::after {\n opacity: 0;\n }\n\n /* ## Visible on load (static markup): the pusher beside a visible sidebar. */\n .ui.visible.left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(260px, 0, 0);\n }\n .ui.visible.right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(-260px, 0, 0);\n }\n .ui.visible.top.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(0, 36px, 0);\n }\n .ui.visible.bottom.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(0, -36px, 0);\n }\n .ui.visible.thin.left.sidebar:not([class*=\"very thin\"]) ~ :is(.fixed, .pusher) {\n transform: translate3d(150px, 0, 0);\n }\n .ui.visible[class*=\"very thin\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(60px, 0, 0);\n }\n .ui.visible.wide.left.sidebar:not([class*=\"very wide\"]) ~ :is(.fixed, .pusher) {\n transform: translate3d(350px, 0, 0);\n }\n .ui.visible[class*=\"very wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(475px, 0, 0);\n }\n .ui.visible.thin.right.sidebar:not([class*=\"very thin\"]) ~ :is(.fixed, .pusher) {\n transform: translate3d(-150px, 0, 0);\n }\n .ui.visible[class*=\"very thin\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(-60px, 0, 0);\n }\n .ui.visible.wide.right.sidebar:not([class*=\"very wide\"]) ~ :is(.fixed, .pusher) {\n transform: translate3d(-350px, 0, 0);\n }\n .ui.visible[class*=\"very wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(-475px, 0, 0);\n }\n /* Column widths (`four wide`) move the pusher by that share of the viewport. */\n .ui.visible.wide[class*=\"one wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(100vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"two wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(200vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"three wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(300vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"four wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(400vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"five wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(500vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"six wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(600vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"seven wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(700vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"eight wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(800vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"nine wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(900vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"ten wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(1000vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"eleven wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(1100vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"twelve wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(1200vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"thirteen wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(1300vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"fourteen wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(1400vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"fifteen wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(1500vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"sixteen wide\"].left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(1600vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"one wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-100vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"two wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-200vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"three wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-300vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"four wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-400vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"five wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-500vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"six wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-600vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"seven wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-700vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"eight wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-800vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"nine wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-900vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"ten wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-1000vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"eleven wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-1100vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"twelve wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-1200vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"thirteen wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-1300vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"fourteen wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-1400vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"fifteen wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-1500vw / 16), 0, 0);\n }\n .ui.visible.wide[class*=\"sixteen wide\"].right.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(calc(-1600vw / 16), 0, 0);\n }\n /* Opposite sides visible: the content stays put. */\n .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ :is(.fixed, .pusher),\n .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ :is(.fixed, .pusher) {\n transform: translate3d(0, 0, 0);\n }\n /*\n * Overlay: never moves it; scale down shrinks it towards the far side.\n * Repeated `.ui`s beat the width rules above (Fomantic used `!important`).\n */\n .ui.ui.ui.visible.overlay.sidebar ~ :is(.fixed, .pusher) {\n transform: none;\n }\n .ui.scale.down.left.sidebar ~ .pusher {\n transform-origin: 75% 50%;\n }\n .ui.scale.down.right.sidebar ~ .pusher {\n transform-origin: 25% 50%;\n }\n .ui.scale.down.top.sidebar ~ .pusher {\n transform-origin: 50% 75%;\n }\n .ui.scale.down.bottom.sidebar ~ .pusher {\n transform-origin: 50% 25%;\n }\n .ui.ui.ui.visible.scale.down.sidebar ~ .pusher {\n transform: scale(0.75);\n }\n}\n","import { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { pushableVocabulary } from \"./UIPushable.en\"\nimport { CENTER, type PushableVocabulary } from \"./UISidebar.types\"\n\nimport sidebarCSS from \"./UISidebar.css?inline\"\n\n/****************\n * ### `UIPushable`\n * The component behind `<ui-pushable>`: the box sidebars slide in (Fomantic's `.pushable`),\n * `<div class=\"pushable\" part=\"pushable\"><slot>`,\n * a clipping, positioned box holding `<ui-sidebar>`s and a `<ui-pusher>`.\n *\n * - Its visible sidebars REPORT what they need (`report()`, a `UIT.SidebarLayout`).\n * It turns that into inherited tokens on its root, which `UISidebar.css` reads in each `<ui-pusher>`\n * (`UIT.PusherTokens`: where the pusher moves, dimmed, blurred).\n * - One pushing sidebar moves the pusher; two at once (opposite sides) leave it in place, as Fomantic's do.\n * - SIDE EFFECT on the light DOM: while a MODAL sidebar is visible,\n * every other child (the pusher, other sidebars) gets `inert`; removed again when it hides\n * (only the `inert`s it added).\n ****************/\nexport class UIPushable extends E.UIComponent<PushableVocabulary> {\n @E.proto static vocabulary = pushableVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { sidebar: sidebarCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Always: its sidebars find it by `:state(pushable)`. */\n @E.cssState(\"pushable\")\n get isPushable(): boolean {\n return true\n }\n\n ////////////////\n // ## Sidebar layouts\n ////////////////\n\n /** What each visible sidebar asks for. */\n @E.state accessor sidebarLayouts: ReadonlyMap<Element, UIT.SidebarLayout> = new Map()\n\n /** The root, which carries the tokens. */\n private root?: HTMLDivElement\n\n /** Children it made `inert`. */\n private readonly childrenMadeInert = new Set<Element>()\n\n /**\n * A sidebar's layout while it's visible, `undefined` once hidden (or gone).\n * - Called from the sidebar's effects and handlers, never from an owned scope.\n */\n @E.untracked\n report(sidebar: Element, layout: UIT.SidebarLayout | undefined) {\n const next = new Map(this.sidebarLayouts)\n if (layout) next.set(sidebar, layout)\n else if (!next.delete(sidebar)) return\n this.sidebarLayouts = next\n // at once too: a sidebar hiding restores focus into the pusher right after, which must not be `inert` then\n this.apply(next)\n }\n\n /** The layouts changed: apply them. */\n @E.onChange(\"sidebarLayouts\")\n protected onSidebarLayoutsChanged(layouts: ReadonlyMap<Element, UIT.SidebarLayout>) {\n this.apply(layouts)\n }\n\n /** Tokens on the root; `inert` on every child beside a modal sidebar. */\n private apply(layouts: ReadonlyMap<Element, UIT.SidebarLayout>) {\n const root = this.root\n if (!root) return\n const visible = [...layouts.values()]\n const pushing = visible.filter((layout) => layout.transform !== \"none\")\n const push = pushing.length === 1 ? pushing[0] : undefined\n const modal = visible.find((layout) => layout.modal)\n root.style.setProperty(UIT.PusherTokens.transform, push?.transform ?? \"none\")\n root.style.setProperty(UIT.PusherTokens.origin, push?.origin ?? CENTER)\n root.style.setProperty(UIT.PusherTokens.dimmed, modal ? ON : OFF)\n root.style.setProperty(UIT.PusherTokens.blurring, modal?.blurring ? ON : OFF)\n const keep = new Set([...layouts].filter(([, layout]) => layout.modal).map(([sidebar]) => sidebar))\n for (const child of this.domElement.children) {\n const inert = !!modal && !keep.has(child) && !this.isHiddenSidebar(child)\n if (inert && !child.hasAttribute(\"inert\")) {\n child.setAttribute(\"inert\", \"\")\n this.childrenMadeInert.add(child)\n } else if (!inert && this.childrenMadeInert.delete(child)) child.removeAttribute(\"inert\")\n }\n for (const child of this.childrenMadeInert) {\n if (child.parentElement === this.domElement) continue\n child.removeAttribute(\"inert\")\n this.childrenMadeInert.delete(child)\n }\n }\n\n /** A sidebar that isn't showing: already out of reach, no `inert` needed. */\n private isHiddenSidebar(child: Element): boolean {\n return child.matches(`:state(${UIT.SIDEBAR_HOST_STATE}):not(:state(${UIT.VISIBLE}))`)\n }\n\n /** The sidebars that drew (and reported) before this element had a component: ask them again. */\n private askSidebars() {\n for (const child of this.domElement.children) {\n const sidebar = (child as E.DOMElement).component as { reportLayout?: () => void } | undefined\n sidebar?.reportLayout?.()\n }\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n // never on a server: nothing reports there, and a late report would write a member after the render\n if (!isServer) E.afterSolidUpdate(() => this.askSidebars())\n return (\n <div ref={(element) => (this.root = element)} class={PUSHABLE} part={this.partForName(\"pushable\")}>\n <slot />\n </div>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIPushable extends E.AttributeValues<PushableVocabulary> {}\n\n/** Class word of the root (`UISidebar.css`). */\nconst PUSHABLE = \"pushable\"\n\n/** A `PusherTokens` switch on: dimmed, blurring. */\nconst ON = \"1\"\n\n/** A `PusherTokens` switch off. */\nconst OFF = \"0\"\n","/**\n * Every name `<ui-sidebar>`, `<ui-pushable>` and `<ui-pusher>` use:\n * tags, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-sidebar position=\"right\" width=\"thin\" transition=\"scale down\" visible>` =>\n * `ui right thin scale down visible sidebar`.\n * Without `transition`, the element adds Fomantic's default for its side\n * (`uncover` left / right, `overlay` top / bottom).\n * - `position` and `transition` are `kind: \"valueOnly\"`: each emits its value alone.\n * - `width` (`kind: \"width\"`, as `<ui-flyout>`'s) takes Fomantic's sidebar words (`very thin` ... `very wide`),\n * which the element adds before the noun (`ui left thin sidebar`),\n * AND columns of the viewport (`4`, `1/4`, `25%` => `four wide`).\n * - `pushable` / `pusher` have no `ui` (Fomantic's `.pushable`, `.pusher`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-pusher>`\n * The page content beside a sidebar:\n * `<div class=\"pusher\" part=\"pusher\"><slot>`, moved, dimmed and made `inert` by its `<ui-pushable>`.\n ****************/\nexport const pusherVocabulary = {\n tag: \"ui-pusher\",\n icon: \"arrows alternate horizontal\",\n topics: [\"layout\", \"navigation\", \"modules\"],\n aka: [\"page content\", \"pushed content\"],\n noun: \"pusher\",\n ui: false,\n description: \"The content a sidebar pushes (and dims) when it appears.\",\n attributes: [],\n events: [],\n slots: [{ name: \"\", description: \"The page content.\" }],\n parts: [{ name: \"pusher\", description: \"The content box; its `::after` is the dimmer.\" }],\n states: [{ name: \"pusher\", description: \"Always: its `<ui-pushable>` finds it by this.\" }],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { pusherVocabulary } from \"./UIPusher.en\"\n\nimport sidebarCSS from \"./UISidebar.css?inline\"\n\n/****************\n * ### `UIPusher`\n * The component behind `<ui-pusher>`:\n * the page content beside a sidebar (Fomantic's `.pusher`), `<div class=\"pusher\" part=\"pusher\"><slot>`.\n *\n * - Passive:\n * `UISidebar.css` moves and dims it from the tokens its `<ui-pushable>` sets (`UIT.PusherTokens`),\n * and the pushable makes the DOM element `inert` beside a modal sidebar.\n * - Its `::after` is the dimmer.\n ****************/\nexport class UIPusher extends E.UIComponent<typeof pusherVocabulary> {\n @E.proto static vocabulary = pusherVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { sidebar: sidebarCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Always: `:state(pusher)`. */\n @E.cssState(\"pusher\")\n get isPusher(): boolean {\n return true\n }\n\n render(): JSX.Element {\n return (\n <div class={PUSHER} part={this.partForName(\"pusher\")}>\n <slot />\n </div>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIPusher extends E.AttributeValues<typeof pusherVocabulary> {}\n\n/** Class word of the root (`UISidebar.css`). */\nconst PUSHER = \"pusher\"\n","/**\n * Every name `<ui-sidebar>`, `<ui-pushable>` and `<ui-pusher>` use:\n * tags, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-sidebar position=\"right\" width=\"thin\" transition=\"scale down\" visible>` =>\n * `ui right thin scale down visible sidebar`.\n * Without `transition`, the element adds Fomantic's default for its side\n * (`uncover` left / right, `overlay` top / bottom).\n * - `visible` / `hidden` are every element's (`SharedVocabulary`): a sidebar starts hidden (`elementSetup.visible`).\n * - The element adds the `visible` class word while it shows.\n * - `ui-opening` / `ui-closing` can veto a person's changes.\n * - `position` and `transition` are `kind: \"valueOnly\"`: each emits its value alone.\n * - `width` (`kind: \"width\"`, as `<ui-flyout>`'s) takes Fomantic's sidebar words (`very thin` ... `very wide`),\n * which the element adds before the noun (`ui left thin sidebar`),\n * AND columns of the viewport (`4`, `1/4`, `25%` => `four wide`).\n * - `pushable` / `pusher` have no `ui` (Fomantic's `.pushable`, `.pusher`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-sidebar>`\n * A panel along one edge of a `<ui-pushable>`:\n * a `<dialog class=\"ui ... sidebar\" part=\"sidebar\">` (modal, the default) or an `<aside>` (`persistent`).\n ****************/\nexport const sidebarVocabulary = {\n tag: \"ui-sidebar\",\n icon: \"columns\",\n topics: [\"navigation\", \"overlays\", \"layout\", \"menus\", \"modules\"],\n aka: [\"drawer\", \"off canvas\", \"side menu\", \"nav drawer\", \"hamburger menu\"],\n noun: \"sidebar\",\n description: \"A sidebar hides additional content beside a page.\",\n attributes: [\n {\n name: \"position\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"left\", \"right\", \"top\", \"bottom\"],\n default: \"left\",\n description: \"Edge it sits on: `left` (default), `right`, `top`, `bottom`.\"\n },\n {\n name: \"width\",\n group: \"layout\",\n kind: \"width\",\n description:\n \"Width of a `left` / `right` sidebar: Fomantic's words -- `very thin` (60px), `thin` (150px), 260px by \" +\n \"default, `wide` (350px), `very wide` (475px) -- or columns of the viewport (`4`, `1/4`, `25%` => \" +\n \"`four wide`).\"\n },\n {\n name: \"transition\",\n group: \"states\",\n kind: \"valueOnly\",\n values: [\"overlay\", \"push\", \"scale down\", \"uncover\", \"slide along\", \"slide out\"],\n description:\n \"How it appears (Fomantic's animations): over the page, pushing it, shrinking it, from under it ... \" +\n \"Default: `uncover` on the left / right, `overlay` at the top / bottom.\"\n },\n {\n name: \"inverted\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"A dark panel (put an `inverted` menu in it).\"\n },\n { name: \"blurring\", group: \"appearance\", kind: \"keyOnly\", description: \"Blurs the dimmed page beside it.\" },\n {\n name: \"persistent\",\n group: \"advanced\",\n kind: \"boolean\",\n description:\n \"Part of the page, not a modal: an `<aside>` landmark; the page beside it is neither dimmed nor inert, \" +\n \"focus doesn't move, and nothing but `visible` hides it.\"\n },\n {\n name: \"closedby\",\n group: \"behaviour\",\n kind: \"enum\",\n values: [\"any\", \"closerequest\", \"none\"],\n default: \"any\",\n property: \"closedBy\",\n description:\n \"What hides a modal sidebar, as `<dialog closedby>`: `any` -- Escape or a click on the page beside it \" +\n \"(default); `closerequest` -- Escape only; `none` -- only `visible`. Read when it shows.\"\n }\n ],\n events: [\n {\n name: \"ui-opening\",\n detail: \"{ visible: true, originalEvent?: Event }\",\n cancelable: true,\n description: \"About to show for a person's action (an invoker command); `preventDefault()` keeps it hidden.\"\n },\n {\n name: \"ui-opened\",\n detail: \"{ visible: true }\",\n description: \"Shown, its transition finished (Fomantic's `onVisible`).\"\n },\n {\n name: \"ui-closing\",\n detail: \"{ visible: false, reason: SidebarCloseReason, originalEvent?: Event }\",\n cancelable: true,\n description: \"About to hide: Escape, a click beside it, a command. `preventDefault()` keeps it shown.\"\n },\n {\n name: \"ui-closed\",\n detail: \"{ visible: false }\",\n description: \"Hidden, its transition finished (Fomantic's `onHidden`).\"\n }\n ],\n slots: [{ name: \"\", description: \"The content: usually a `<ui-menu vertical fluid>`.\" }],\n parts: [{ name: \"sidebar\", description: \"The panel: a `<dialog>`, or an `<aside>` when `persistent`.\" }],\n states: [{ name: \"sidebar\", description: \"Always: its `<ui-pushable>` finds it by this.\" }],\n texts: [{ key: \"sidebar\", text: \"Sidebar\", description: \"Accessible name of an unnamed sidebar.\" }]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\nimport { sidebarVocabulary } from \"./UISidebar.en\"\nimport type { UIPushable } from \"./UIPushable\"\nimport { CENTER, type SidebarVocabulary } from \"./UISidebar.types\"\n\nimport sidebarCSS from \"./UISidebar.css?inline\"\n\n/****************\n * ### `UISidebar`\n * The component behind `<ui-sidebar>`: a panel along one edge of its `<ui-pushable>` (Fomantic's `.ui.sidebar`),\n * shown by `visible` with one of Fomantic's six transitions.\n * Its pushable moves and dims the `<ui-pusher>` beside it.\n *\n * - Two kinds, as the APG has them:\n * - MODAL (the default): a drawer, `<dialog class=\"ui … sidebar\" aria-modal=\"true\">` opened with `show()`,\n * NOT `showModal()`: the top layer would lift it out of its pushable\n * (a sidebar in a segment would cover the page). Instead:\n * - focus moves inside (the dialog's own focusing steps), and Tab stays inside (`UI.focus.trap`)\n * - the pushable makes the pusher `inert` and dims it\n * - Escape and a click beside it close it (`UI.overlays`, kind `sidebar`):\n * keyboard scope and focus restore, no scroll lock, as Fomantic's `scrollLock: false`\n * - named by the DOM element's `aria-label`, else \"Sidebar\".\n * - `persistent`: part of the page, an `<aside>`\n * (a complementary landmark; a `<ui-menu>` inside is the `<nav>`).\n * Nothing is dimmed, inert or trapped, and focus stays put.\n *\n * - A hidden sidebar is `hidden`, as every element (it starts hidden: `elementSetup.visible`);\n * while it slides out, `:state(hiding)` keeps it on screen (`onVisibleChange()`).\n *\n * - `visible` / `hidden` are controlled:\n * the cancelable `ui-opening` / `ui-closing` come first for a person's actions\n * (invoker commands, `UIT.ToggleCommands`; Escape; a click beside it).\n * - `ui-opened` / `ui-closed` follow once the transition has ended.\n * - Writing `visible` or `hidden` fires no `ui-opening` / `ui-closing`.\n ****************/\nexport class UISidebar extends E.UIComponent<SidebarVocabulary> {\n @E.proto static vocabulary = sidebarVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { sidebar: sidebarCSS },\n // a click on the panel's padding must not jump focus to its first link\n delegatesFocus: false,\n // `visible` shows it\n visible: \"hidden\"\n } satisfies Partial<E.ElementSetup>\n\n /** Always: its `<ui-pushable>` finds it by `:state(sidebar)`. */\n @E.cssState(\"sidebar\")\n get isSidebar(): boolean {\n return true\n }\n\n ////////////////\n // ## Visible\n ////////////////\n\n /** Modal (the default), or `persistent`. */\n get isModal(): boolean {\n return !this.persistent\n }\n\n /**\n * Shown or hidden, as `visible` (`isVisible`): `ui-opening` / `ui-closing` first, `ui-opened` / `ui-closed` once\n * it has slid in or out (`show()`, `hide()`).\n */\n readonly disclosure = new E.Disclosure({\n component: this,\n member: \"isVisible\",\n detail: (visible, originalEvent): UIT.SidebarOpenDetail | UIT.SidebarCloseDetail =>\n visible ? { visible, originalEvent } : { visible, reason: this.closeReason, originalEvent },\n afterDetail: (visible): UIT.SidebarOpenDetail => ({ visible })\n })\n\n /** Why the latest close was asked for: `ui-closing`'s `reason`. */\n private closeReason: UIT.SidebarCloseReason = UIT.CLOSE\n\n /** Show for a person's action, dispatching the cancelable `ui-opening` first; true when applied. */\n requestOpen(originalEvent?: Event): boolean {\n return this.disclosure.open(originalEvent)\n }\n\n /** Hide for `reason`, dispatching the cancelable `ui-closing` first; true when applied. */\n requestClose(reason: UIT.SidebarCloseReason, originalEvent?: Event): boolean {\n this.closeReason = reason\n return this.disclosure.close(originalEvent)\n }\n\n /** An invoker command aimed at the DOM element (`ToggleCommands`). */\n @E.on(\"command\")\n protected onCommand(event: Event) {\n const action = UIT.ToggleCommands.action(event, this.isVisible)\n if (action === \"show\") this.requestOpen(event)\n else if (action === \"close\") this.requestClose(UIT.CLOSE, event)\n }\n\n ////////////////\n // ## Showing and hiding\n ////////////////\n\n /** The panel: a `<dialog>`, or an `<aside>` when `persistent`. */\n private box?: HTMLElement\n\n /** Undoes the focus trap of a modal sidebar. */\n private releaseFocusTrap?: E.Disposer\n\n /** Bumped on every show / hide, so a late `ui-opened` / `ui-closed` of an earlier one is dropped. */\n private generation = 0\n\n /** A modal sidebar's `UI.overlays` entry; its options follow `closedby` when it shows. */\n private readonly overlay: E.OverlayEntry = {\n element: this.domElement,\n kind: \"sidebar\",\n modal: false,\n onDismiss: (reason: E.DismissReason) => void this.requestClose(reason)\n }\n\n /**\n * Shown while visible AND connected, once the runtime is loaded (`isReady`, as the render waits for):\n * it acts on the rendered panel; hidden by the cleanup.\n */\n @E.onChange(\"isReady\", \"isConnected\", \"isVisible\", \"isModal\")\n protected onShowingChanged(isReady: boolean, isConnected: boolean, isVisible: boolean, isModal: boolean) {\n if (!(isReady && isConnected && isVisible)) return\n this.show(isModal)\n return () => this.hide(isModal)\n }\n\n /**\n * A modal sidebar: `show()` (focus moves in), the focus trap, `UI.overlays`;\n * then `ui-opened` once its transition ends.\n */\n @E.untracked\n private show(modal: boolean) {\n const box = this.box\n this.reportLayout()\n if (modal && box instanceof HTMLDialogElement) {\n const closedBy = this.closedby ?? \"any\"\n this.overlay.closeOnEscape = closedBy !== \"none\"\n this.overlay.closeOnOutsideClick = closedBy === \"any\"\n // MUST `show()` BEFORE `UI.overlays.open()`:\n // - `show()` gives the dialog its own close watcher, disabled (`closedby` computes to `none`)\n // - opened by a click, it's the newest close-watcher group, and Chromium processes only that group,\n // so a watcher made before it never hears Escape\n // - focus still returns: `close()` refocuses what had focus before `show()`\n if (!box.open) {\n box.show()\n UI.focus.enter(box)\n }\n UI.overlays.open(this.overlay)\n this.releaseFocusTrap = UI.focus.trap(this.domElement)\n }\n this.after(() => {\n if (this.isVisible) this.disclosure.sendAfter(true)\n })\n }\n\n /**\n * Undo `show()`: `close()`, the trap, the pusher back (not `inert`), THEN leave `UI.overlays`,\n * whose focus restore may aim at a button in the pusher.\n */\n private hide(modal: boolean) {\n const box = this.box\n this.releaseFocusTrap?.()\n this.releaseFocusTrap = undefined\n this.pushable?.report(this.domElement, undefined)\n if (modal) {\n if (box instanceof HTMLDialogElement && box.open) box.close()\n UI.overlays.close(this.overlay)\n }\n this.after(() => {\n if (!this.isVisible && this.domElement.isConnected) this.disclosure.sendAfter(false)\n })\n }\n\n /**\n * The panel slides by its own CSS transitions (`transition`, its `visible` class word):\n * a hide resolves once they end, so the element stays on screen till then (`:state(hiding)`).\n * - Waits for the next paint first: the class word changes in the same update, and its transitions start with it.\n * - Motion off (`--ui-motion: none`, reduced motion) shortens them to nothing (`reset.css`).\n */\n protected async onVisibleChange(visible: boolean, _animation: UIT.Animation): Promise<void> {\n if (visible || !this.box) return\n await new Promise((resolve) => E.beforeNextPaint(() => resolve(undefined)))\n if (this.isVisible) return\n await Promise.allSettled((this.box.getAnimations() ?? []).map((animation) => animation.finished))\n }\n\n /** Run `then` once the panel's transitions end, unless another show / hide started meanwhile. */\n private after(then: () => void) {\n const generation = ++this.generation\n const animations = this.box?.getAnimations() ?? []\n void Promise.allSettled(animations.map((animation) => animation.finished)).then(() => {\n if (generation === this.generation) then()\n })\n }\n\n /** A non-modal dialog gets no `cancel` from Escape; a `CloseWatcher` request might: always prevented. */\n private readonly onCancel = (event: Event) => {\n event.preventDefault()\n }\n\n ////////////////\n // ## Layout\n ////////////////\n\n /** `transition`, else Fomantic's default for the side: `uncover` left / right, `overlay` top / bottom. */\n get transitionName(): string {\n return this.transition ?? (VERTICAL.has(this.position ?? UIT.LEFT) ? OVERLAY : UNCOVER)\n }\n\n /** A word width (`thin`) goes before the noun (`UIT.WordWidthClasses`), then `visible` while it shows. */\n protected get extraClass(): string | undefined {\n const words = [UIT.WordWidthClasses.classFor(this.width), this.isVisible ? UIT.VISIBLE : undefined]\n return words.filter(Boolean).join(\" \") || undefined\n }\n\n protected classValue(name: E.AttributeName<SidebarVocabulary>): unknown {\n if (name === \"width\" && UIT.WordWidthClasses.classFor(this.width)) return undefined\n if (name === \"transition\") return this.transitionName\n return super.classValue(name)\n }\n\n /** What the pushable lays out changed: report it, once the runtime is loaded (the panel is measured). */\n @E.onChange(\"isReady\", \"isConnected\", \"isVisible\", \"isModal\", \"position\", \"width\", \"transitionName\", \"blurring\")\n protected onLayoutChanged(isReady: boolean) {\n if (isReady) this.reportLayout()\n }\n\n /** Tell the pushable (if any) what this sidebar needs now; called by it too, once it renders. */\n @E.untracked\n reportLayout() {\n const pushable = this.pushable\n if (!pushable) return\n const visible = this.isConnected && this.isVisible\n pushable.report(this.domElement, visible ? this.layout() : undefined)\n }\n\n /** The parent `<ui-pushable>`'s component, if that's where it is. */\n private get pushable(): UIPushable | undefined {\n const parent = this.domElement.parentElement\n if (!parent?.matches(`:state(${UIT.PUSHABLE_HOST_STATE})`)) return undefined\n return (parent as E.DOMElement).component as UIPushable | undefined\n }\n\n /**\n * What the pusher does beside this sidebar (Fomantic's `sidebar.less` \"Animations\"):\n * - `overlay`: stays\n * - `scale down`: shrinks to 0.75 towards the far side\n * - `push`, `uncover`, `slide along`, `slide out`:\n * moves by the panel's measured width (height at the top / bottom), as Fomantic's script measured it\n * - A method, not a getter: it MEASURES the panel.\n */\n @E.untracked\n private layout(): UIT.SidebarLayout {\n const position = this.position ?? UIT.LEFT\n const transition = this.transitionName\n const modal = this.isModal\n const blurring = !!this.blurring\n if (transition === OVERLAY) return { transform: \"none\", origin: CENTER, modal, blurring }\n if (transition === SCALE_DOWN) return { transform: SCALE, origin: SCALE_ORIGINS[position]!, modal, blurring }\n const box = this.box\n const size = VERTICAL.has(position) ? (box?.offsetHeight ?? 0) : (box?.offsetWidth ?? 0)\n const sign = position === UIT.LEFT || position === UIT.TOP ? 1 : -1\n const offset = `${sign * size}px`\n const transform = VERTICAL.has(position) ? `translate3d(0, ${offset}, 0)` : `translate3d(${offset}, 0, 0)`\n return { transform, origin: CENTER, modal, blurring }\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n const label = () => this.attributes[\"aria-label\"] ?? this.translationForKey(\"sidebar\")\n return (\n <Show\n when={this.isModal}\n fallback={\n <aside\n ref={(element) => (this.box = element)}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n >\n <slot />\n </aside>\n }\n >\n <dialog\n ref={(element) => (this.box = element)}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n aria-modal={this.isVisible ? \"true\" : undefined}\n onCancel={this.onCancel}\n >\n <slot />\n </dialog>\n </Show>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UISidebar extends E.AttributeValues<SidebarVocabulary> {}\n\n/** Top / bottom sidebars: full width, move the pusher vertically. */\nconst VERTICAL: ReadonlySet<string> = new Set([UIT.TOP, UIT.BOTTOM])\n\n/** Transition that leaves the pusher where it is; Fomantic's default at the top / bottom. */\nconst OVERLAY = \"overlay\"\n\n/** Fomantic's default transition on the left / right. */\nconst UNCOVER = \"uncover\"\n\n/** Transition that shrinks the pusher instead of moving it. */\nconst SCALE_DOWN = \"scale down\"\n\n/** The pusher's transform under `scale down`. */\nconst SCALE = \"scale(0.75)\"\n\n/** Where a scaled-down pusher shrinks towards, by the sidebar's side (Fomantic's `transform-origin`s). */\nconst SCALE_ORIGINS: Readonly<Record<string, string>> = {\n left: \"75% 50%\",\n right: \"25% 50%\",\n top: \"50% 75%\",\n bottom: \"50% 25%\"\n}\n","/**\n * The sidebar family: defines `<ui-pushable>`, `<ui-pusher>` and `<ui-sidebar>`,\n * and exports their components, `UIPushable`, `UIPusher` and `UISidebar`.\n * - SIDE EFFECT: importing it defines the tags.\n * - NOTE: a sidebar's content (usually a `<ui-menu direction=\"vertical\">`) is the page's to import.\n * - Also the library's `spell/ui/ui-sidebar` entry (its size is in `notes/report.md`).\n */\n\nimport { UIPushable } from \"./UIPushable\"\nimport { UIPusher } from \"./UIPusher\"\nimport { UISidebar } from \"./UISidebar\"\n\nUIPushable.define()\nUIPusher.define()\nUISidebar.define()\n\nexport { UIPushable, UIPusher, UISidebar }\n"],"mappings":";;;;;AAuBA,IAAagF,KAAqB;CAChC,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAU;EAAc;CAAS;CAC1C,KAAK,CAAC,qBAAqB,eAAe;CAC1C,MAAM;CACN,IAAI;CACJ,aAAa;CACb,YAAY,CAAC;CACb,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,MAAM;EAAI,aAAa;CAAyC,CAAC;CAC3E,OAAO,CAAC;EAAE,MAAM;EAAY,aAAa;CAAoB,CAAC;CAC9D,QAAQ,CAAC;EAAE,MAAM;EAAY,aAAa;CAAyC,CAAC;CACpF,OAAO,CAAC;AACV,GCfaC,IAAS,6vWEtBtBG,GAAAC,GAAAC,GAAAC,GAAAlF,GAAAC,GAAAC,GAAAC,GAAAoF,GAsBaC,IAAN,MAAM,qBAAmB,IAAApF,GAC9B,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAMH,IAAA,CAACC,EAAW,UAAU,CAAA,GAUtB,IAAA,CAACC,EAAE,GAYH,IAAA,CAACC,CAAE,GAWH,IAAA,CAACC,EAAW,gBAAgB,CAAA,GAzCER,EAAAA,CAAkC;CAA3D,cAAA;EAwBL,AAxBK,MAAA,GAAA,SAAA,GAAAiE,EAAAhE,GAAA,GAAA,IAAA,GAkBIiE,GAAA,MAASmB,GAA0DpB,EAAnEhE,GAAA,GAAA,sBAAmE,IAAI,IAAI,CAAA,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CAAC,GAG7D+G,KAAU,WAGVC,KAAU,WAGVO,KAAa,cAGbC,KAAQ,eAGRC,KAAkD;CACtD,MAAM;CACN,OAAO;CACP,KAAK;CACL,QAAQ;AACV;AC7TAxD,EAAW,OAAO,GAClBU,EAAS,OAAO,GAChB0D,GAAU,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-sidebar.js","names":["ref={(element) => this.root = element}","part={this.partForName(\"pushable\")}","this","<div ref={(element) => this.root = element} class={PUSHABLE} part={this.partForName(\"pushable\")}>\n <slot />\n </div>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.state","E.untracked","E.onChange","UIT.SIDEBAR_HOST_STATE","UIT.VISIBLE","_$getOwner","_$readShallow","_$setAttribute","__name","sidebarCSS","part={this.partForName(\"pusher\")}","this","<div class={PUSHER} part={this.partForName(\"pusher\")}>\n <slot />\n </div>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","_$getOwner","_$readShallow","_$setAttribute","__name","sidebarCSS","<Show\n when={this.isModal}\n fallback={<aside\n ref={(element) => this.box = element}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n >\n <slot />\n </aside>}\n >\n <dialog\n ref={(element) => this.box = element}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n aria-modal={this.isVisible ? \"true\" : void 0}\n onCancel={this.onCancel}\n >\n <slot />\n </dialog>\n </Show>","this","ref={(element) => this.box = element}","part={this.partForName(\"sidebar\")}","aria-label={label()}","<aside\n ref={(element) => this.box = element}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n >\n <slot />\n </aside>","aria-modal={this.isVisible ? \"true\" : void 0}","<dialog\n ref={(element) => this.box = element}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n aria-modal={this.isVisible ? \"true\" : void 0}\n onCancel={this.onCancel}\n >\n <slot />\n </dialog>","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.on","E.onChange","E.untracked","E.Disclosure","UIT.CLOSE","E.beforeNextPaint","_$getOwner","_$setAttribute","__name","sidebarCSS","UIT.BOTTOM","VISIBLE","__decoratorStart","__publicField","__name$1","ToggleCommands","SIDEBAR_HOST_STATE","WordWidthClasses","__decorateElement","__decoratorMetadata","PusherTokens","__runInitializers","__privateAdd","BOTTOM","CLOSE","getOwner$1","pushableVocabulary","CENTER","UISidebar_default","_tmpl$$2","_onSidebarLayoutsChanged_dec","_report_dec","_sidebarLayouts_dec","_isPushable_dec","_elementSetup_dec$2","_vocabulary_dec$2","_a$2","_init$2","_sidebarLayouts","_UIPushable","UIComponent","proto","protoMerged","cssState","state","untracked","onChange","next","layout","sidebar","layouts","root","visible","pushing","push","modal","ON","OFF","keep","child","inert","isServer","afterSolidUpdate","_self$","_el$","_el$2","ref","element","effect","readShallow","PUSHABLE","className","_p$","t","setAttribute","UIPushable","pusherVocabulary","_tmpl$$1","_isPusher_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UIPusher","PUSHER","UIPusher","sidebarVocabulary","_tmpl$","_tmpl$2","_layout_dec","_reportLayout_dec","_onLayoutChanged_dec","_show_dec","_onShowingChanged_dec","_onCommand_dec","_isSidebar_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UISidebar","on","Disclosure","reason","originalEvent","action","event","isReady","isConnected","isVisible","isModal","box","closedBy","UI","beforeNextPaint","resolve","animation","generation","animations","then","VERTICAL","OVERLAY","UNCOVER","name","pushable","parent","position","transition","blurring","SCALE_DOWN","SCALE","SCALE_ORIGINS","size","offset","label","createComponent","Show","_el$3","_el$4","a","addEvent","o","UISidebar"],"sources":["../src/components/ui-sidebar/UIPushable.en.ts","../src/components/ui-sidebar/UISidebar.types.ts","../src/components/ui-sidebar/UIPushable.tsx","../src/components/ui-sidebar/UIPusher.en.ts","../src/components/ui-sidebar/UIPusher.tsx","../src/components/ui-sidebar/UISidebar.en.ts","../src/components/ui-sidebar/UISidebar.tsx","../src/components/ui-sidebar/index.ts"],"sourcesContent":["/**\n * Every name `<ui-sidebar>`, `<ui-pushable>` and `<ui-pusher>` use:\n * tags, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-sidebar position=\"right\" width=\"thin\" transition=\"scale down\" visible>` =>\n * `ui right thin scale down visible sidebar`.\n * Without `transition`, the element adds Fomantic's default for its side\n * (`uncover` left / right, `overlay` top / bottom).\n * - `position` and `transition` are `kind: \"valueOnly\"`: each emits its value alone.\n * - `width` (`kind: \"width\"`, as `<ui-flyout>`'s) takes Fomantic's sidebar words (`very thin` ... `very wide`),\n * which the element adds before the noun (`ui left thin sidebar`),\n * AND columns of the viewport (`4`, `1/4`, `25%` => `four wide`).\n * - `pushable` / `pusher` have no `ui` (Fomantic's `.pushable`, `.pusher`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-pushable>`\n * The box a sidebar slides in:\n * `<div class=\"pushable\" part=\"pushable\"><slot>`, holding `<ui-sidebar>`s and a `<ui-pusher>`.\n ****************/\nexport const pushableVocabulary = {\n tag: \"ui-pushable\",\n icon: \"arrows alternate horizontal\",\n topics: [\"layout\", \"navigation\", \"modules\"],\n aka: [\"sidebar container\", \"pushable area\"],\n noun: \"pushable\",\n partOfSpeech: \"structure\",\n ui: false,\n description: \"The context a sidebar appears in: it clips them and moves its pusher.\",\n attributes: [],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-sidebar>`s and one `<ui-pusher>`.\" }],\n parts: [{ name: \"pushable\", description: \"The clipping box.\" }],\n states: [{ name: \"pushable\", description: \"Always: its sidebars find it by this.\" }],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/**\n * The constants and types the `ui-sidebar` family's components share:\n * `<ui-sidebar>` reports a `UIT.SidebarLayout`, which its `<ui-pushable>` turns into the pusher's tokens.\n * - Pure data, at the bottom of the folder's imports: `import type` only, so node can load it (`yarn site:data`).\n * - A constant only one class reads sits below that class.\n * - The word widths are `UIT.WordWidths` (`<ui-flyout>`'s too).\n */\n\nimport type { pushableVocabulary } from \"./UIPushable.en\"\nimport type { sidebarVocabulary } from \"./UISidebar.en\"\n\n/** `<ui-sidebar>`'s vocabulary type, for brevity. */\nexport type SidebarVocabulary = typeof sidebarVocabulary\n\n/** `<ui-pushable>`'s vocabulary type, for brevity. */\nexport type PushableVocabulary = typeof pushableVocabulary\n\n////////////////\n// ## Pusher layout\n////////////////\n\n/** The pusher's `transform-origin` unless a `scale down` sidebar moves it: its centre. */\nexport const CENTER = \"50% 50%\"\n","import { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { pushableVocabulary } from \"./UIPushable.en\"\nimport { CENTER, type PushableVocabulary } from \"./UISidebar.types\"\n\nimport sidebarCSS from \"./UISidebar.css?inline\"\n\n/****************\n * ### `UIPushable`\n * The component behind `<ui-pushable>`: the box sidebars slide in (Fomantic's `.pushable`),\n * `<div class=\"pushable\" part=\"pushable\"><slot>`,\n * a clipping, positioned box holding `<ui-sidebar>`s and a `<ui-pusher>`.\n *\n * - Its visible sidebars REPORT what they need (`report()`, a `UIT.SidebarLayout`).\n * It turns that into inherited tokens on its root, which `UISidebar.css` reads in each `<ui-pusher>`\n * (`UIT.PusherTokens`: where the pusher moves, dimmed, blurred).\n * - One pushing sidebar moves the pusher; two at once (opposite sides) leave it in place, as Fomantic's do.\n * - SIDE EFFECT on the light DOM: while a MODAL sidebar is visible,\n * every other child (the pusher, other sidebars) gets `inert`; removed again when it hides\n * (only the `inert`s it added).\n ****************/\nexport class UIPushable extends E.UIComponent<PushableVocabulary> {\n @E.proto static vocabulary = pushableVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { sidebar: sidebarCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Always: its sidebars find it by `:state(pushable)`. */\n @E.cssState(\"pushable\")\n get isPushable(): boolean {\n return true\n }\n\n ////////////////\n // ## Sidebar layouts\n ////////////////\n\n /** What each visible sidebar asks for. */\n @E.state accessor sidebarLayouts: ReadonlyMap<Element, UIT.SidebarLayout> = new Map()\n\n /** The root, which carries the tokens. */\n private root?: HTMLDivElement\n\n /** Children it made `inert`. */\n private readonly childrenMadeInert = new Set<Element>()\n\n /**\n * A sidebar's layout while it's visible, `undefined` once hidden (or gone).\n * - Called from the sidebar's effects and handlers, never from an owned scope.\n */\n @E.untracked\n report(sidebar: Element, layout: UIT.SidebarLayout | undefined) {\n const next = new Map(this.sidebarLayouts)\n if (layout) next.set(sidebar, layout)\n else if (!next.delete(sidebar)) return\n this.sidebarLayouts = next\n // at once too: a sidebar hiding restores focus into the pusher right after, which must not be `inert` then\n this.apply(next)\n }\n\n /** The layouts changed: apply them. */\n @E.onChange(\"sidebarLayouts\")\n protected onSidebarLayoutsChanged(layouts: ReadonlyMap<Element, UIT.SidebarLayout>) {\n this.apply(layouts)\n }\n\n /** Tokens on the root; `inert` on every child beside a modal sidebar. */\n private apply(layouts: ReadonlyMap<Element, UIT.SidebarLayout>) {\n const root = this.root\n if (!root) return\n const visible = [...layouts.values()]\n const pushing = visible.filter((layout) => layout.transform !== \"none\")\n const push = pushing.length === 1 ? pushing[0] : undefined\n const modal = visible.find((layout) => layout.modal)\n root.style.setProperty(UIT.PusherTokens.transform, push?.transform ?? \"none\")\n root.style.setProperty(UIT.PusherTokens.origin, push?.origin ?? CENTER)\n root.style.setProperty(UIT.PusherTokens.dimmed, modal ? ON : OFF)\n root.style.setProperty(UIT.PusherTokens.blurring, modal?.blurring ? ON : OFF)\n const keep = new Set([...layouts].filter(([, layout]) => layout.modal).map(([sidebar]) => sidebar))\n for (const child of this.domElement.children) {\n const inert = !!modal && !keep.has(child) && !this.isHiddenSidebar(child)\n if (inert && !child.hasAttribute(\"inert\")) {\n child.setAttribute(\"inert\", \"\")\n this.childrenMadeInert.add(child)\n } else if (!inert && this.childrenMadeInert.delete(child)) child.removeAttribute(\"inert\")\n }\n for (const child of this.childrenMadeInert) {\n if (child.parentElement === this.domElement) continue\n child.removeAttribute(\"inert\")\n this.childrenMadeInert.delete(child)\n }\n }\n\n /** A sidebar that isn't showing: already out of reach, no `inert` needed. */\n private isHiddenSidebar(child: Element): boolean {\n return child.matches(`:state(${UIT.SIDEBAR_HOST_STATE}):not(:state(${UIT.VISIBLE}))`)\n }\n\n /** The sidebars that drew (and reported) before this element had a component: ask them again. */\n private askSidebars() {\n for (const child of this.domElement.children) {\n const sidebar = (child as E.DOMElement).component as { reportLayout?: () => void } | undefined\n sidebar?.reportLayout?.()\n }\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n // never on a server: nothing reports there, and a late report would write a member after the render\n if (!isServer) E.afterSolidUpdate(() => this.askSidebars())\n return (\n <div ref={(element) => (this.root = element)} class={PUSHABLE} part={this.partForName(\"pushable\")}>\n <slot />\n </div>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIPushable extends E.AttributeValues<PushableVocabulary> {}\n\n/** Class word of the root (`UISidebar.css`). */\nconst PUSHABLE = \"pushable\"\n\n/** A `PusherTokens` switch on: dimmed, blurring. */\nconst ON = \"1\"\n\n/** A `PusherTokens` switch off. */\nconst OFF = \"0\"\n","/**\n * Every name `<ui-sidebar>`, `<ui-pushable>` and `<ui-pusher>` use:\n * tags, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-sidebar position=\"right\" width=\"thin\" transition=\"scale down\" visible>` =>\n * `ui right thin scale down visible sidebar`.\n * Without `transition`, the element adds Fomantic's default for its side\n * (`uncover` left / right, `overlay` top / bottom).\n * - `position` and `transition` are `kind: \"valueOnly\"`: each emits its value alone.\n * - `width` (`kind: \"width\"`, as `<ui-flyout>`'s) takes Fomantic's sidebar words (`very thin` ... `very wide`),\n * which the element adds before the noun (`ui left thin sidebar`),\n * AND columns of the viewport (`4`, `1/4`, `25%` => `four wide`).\n * - `pushable` / `pusher` have no `ui` (Fomantic's `.pushable`, `.pusher`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-pusher>`\n * The page content beside a sidebar:\n * `<div class=\"pusher\" part=\"pusher\"><slot>`, moved, dimmed and made `inert` by its `<ui-pushable>`.\n ****************/\nexport const pusherVocabulary = {\n tag: \"ui-pusher\",\n icon: \"arrows alternate horizontal\",\n topics: [\"layout\", \"navigation\", \"modules\"],\n aka: [\"page content\", \"pushed content\"],\n noun: \"pusher\",\n partOfSpeech: \"structure\",\n ui: false,\n description: \"The content a sidebar pushes (and dims) when it appears.\",\n attributes: [],\n events: [],\n slots: [{ name: \"\", description: \"The page content.\" }],\n parts: [{ name: \"pusher\", description: \"The content box; its `::after` is the dimmer.\" }],\n states: [{ name: \"pusher\", description: \"Always: its `<ui-pushable>` finds it by this.\" }],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { pusherVocabulary } from \"./UIPusher.en\"\n\nimport sidebarCSS from \"./UISidebar.css?inline\"\n\n/****************\n * ### `UIPusher`\n * The component behind `<ui-pusher>`:\n * the page content beside a sidebar (Fomantic's `.pusher`), `<div class=\"pusher\" part=\"pusher\"><slot>`.\n *\n * - Passive:\n * `UISidebar.css` moves and dims it from the tokens its `<ui-pushable>` sets (`UIT.PusherTokens`),\n * and the pushable makes the DOM element `inert` beside a modal sidebar.\n * - Its `::after` is the dimmer.\n ****************/\nexport class UIPusher extends E.UIComponent<typeof pusherVocabulary> {\n @E.proto static vocabulary = pusherVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { sidebar: sidebarCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Always: `:state(pusher)`. */\n @E.cssState(\"pusher\")\n get isPusher(): boolean {\n return true\n }\n\n render(): JSX.Element {\n return (\n <div class={PUSHER} part={this.partForName(\"pusher\")}>\n <slot />\n </div>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIPusher extends E.AttributeValues<typeof pusherVocabulary> {}\n\n/** Class word of the root (`UISidebar.css`). */\nconst PUSHER = \"pusher\"\n","/**\n * Every name `<ui-sidebar>`, `<ui-pushable>` and `<ui-pusher>` use:\n * tags, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-sidebar position=\"right\" width=\"thin\" transition=\"scale down\" visible>` =>\n * `ui right thin scale down visible sidebar`.\n * Without `transition`, the element adds Fomantic's default for its side\n * (`uncover` left / right, `overlay` top / bottom).\n * - `visible` / `hidden` are every element's (`SharedVocabulary`): a sidebar starts hidden (`elementSetup.visible`).\n * - The element adds the `visible` class word while it shows.\n * - `ui-opening` / `ui-closing` can veto a person's changes.\n * - `position` and `transition` are `kind: \"valueOnly\"`: each emits its value alone.\n * - `width` (`kind: \"width\"`, as `<ui-flyout>`'s) takes Fomantic's sidebar words (`very thin` ... `very wide`),\n * which the element adds before the noun (`ui left thin sidebar`),\n * AND columns of the viewport (`4`, `1/4`, `25%` => `four wide`).\n * - `pushable` / `pusher` have no `ui` (Fomantic's `.pushable`, `.pusher`).\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-sidebar>`\n * A panel along one edge of a `<ui-pushable>`:\n * a `<dialog class=\"ui ... sidebar\" part=\"sidebar\">` (modal, the default) or an `<aside>` (`persistent`).\n ****************/\nexport const sidebarVocabulary = {\n tag: \"ui-sidebar\",\n icon: \"columns\",\n topics: [\"navigation\", \"overlays\", \"layout\", \"menus\", \"modules\"],\n aka: [\"drawer\", \"off canvas\", \"side menu\", \"nav drawer\", \"hamburger menu\"],\n noun: \"sidebar\",\n partOfSpeech: \"structure\",\n description: \"A sidebar hides additional content beside a page.\",\n attributes: [\n {\n name: \"position\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"left\", \"right\", \"top\", \"bottom\"],\n default: \"left\",\n description: \"Edge it sits on: `left` (default), `right`, `top`, `bottom`.\"\n },\n {\n name: \"width\",\n group: \"layout\",\n kind: \"width\",\n description:\n \"Width of a `left` / `right` sidebar: Fomantic's words -- `very thin` (60px), `thin` (150px), 260px by \" +\n \"default, `wide` (350px), `very wide` (475px) -- or columns of the viewport (`4`, `1/4`, `25%` => \" +\n \"`four wide`).\"\n },\n {\n name: \"transition\",\n group: \"states\",\n kind: \"valueOnly\",\n values: [\"overlay\", \"push\", \"scale down\", \"uncover\", \"slide along\", \"slide out\"],\n description:\n \"How it appears (Fomantic's animations): over the page, pushing it, shrinking it, from under it ... \" +\n \"Default: `uncover` on the left / right, `overlay` at the top / bottom.\"\n },\n {\n name: \"inverted\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"A dark panel (put an `inverted` menu in it).\"\n },\n { name: \"blurring\", group: \"appearance\", kind: \"keyOnly\", description: \"Blurs the dimmed page beside it.\" },\n {\n name: \"persistent\",\n group: \"advanced\",\n kind: \"boolean\",\n description:\n \"Part of the page, not a modal: an `<aside>` landmark; the page beside it is neither dimmed nor inert, \" +\n \"focus doesn't move, and nothing but `visible` hides it.\"\n },\n {\n name: \"closedby\",\n group: \"behaviour\",\n kind: \"enum\",\n values: [\"any\", \"closerequest\", \"none\"],\n default: \"any\",\n property: \"closedBy\",\n description:\n \"What hides a modal sidebar, as `<dialog closedby>`: `any` -- Escape or a click on the page beside it \" +\n \"(default); `closerequest` -- Escape only; `none` -- only `visible`. Read when it shows.\"\n }\n ],\n events: [\n {\n name: \"ui-opening\",\n detail: \"{ visible: true, originalEvent?: Event }\",\n cancelable: true,\n description: \"About to show for a person's action (an invoker command); `preventDefault()` keeps it hidden.\"\n },\n {\n name: \"ui-opened\",\n detail: \"{ visible: true }\",\n description: \"Shown, its transition finished (Fomantic's `onVisible`).\"\n },\n {\n name: \"ui-closing\",\n detail: \"{ visible: false, reason: SidebarCloseReason, originalEvent?: Event }\",\n cancelable: true,\n description: \"About to hide: Escape, a click beside it, a command. `preventDefault()` keeps it shown.\"\n },\n {\n name: \"ui-closed\",\n detail: \"{ visible: false }\",\n description: \"Hidden, its transition finished (Fomantic's `onHidden`).\"\n }\n ],\n slots: [{ name: \"\", description: \"The content: usually a `<ui-menu vertical fluid>`.\" }],\n parts: [{ name: \"sidebar\", description: \"The panel: a `<dialog>`, or an `<aside>` when `persistent`.\" }],\n states: [{ name: \"sidebar\", description: \"Always: its `<ui-pushable>` finds it by this.\" }],\n texts: [{ key: \"sidebar\", text: \"Sidebar\", description: \"Accessible name of an unnamed sidebar.\" }]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\nimport { sidebarVocabulary } from \"./UISidebar.en\"\nimport type { UIPushable } from \"./UIPushable\"\nimport { CENTER, type SidebarVocabulary } from \"./UISidebar.types\"\n\nimport sidebarCSS from \"./UISidebar.css?inline\"\n\n/****************\n * ### `UISidebar`\n * The component behind `<ui-sidebar>`: a panel along one edge of its `<ui-pushable>` (Fomantic's `.ui.sidebar`),\n * shown by `visible` with one of Fomantic's six transitions.\n * Its pushable moves and dims the `<ui-pusher>` beside it.\n *\n * - Two kinds, as the APG has them:\n * - MODAL (the default): a drawer, `<dialog class=\"ui … sidebar\" aria-modal=\"true\">` opened with `show()`,\n * NOT `showModal()`: the top layer would lift it out of its pushable\n * (a sidebar in a segment would cover the page). Instead:\n * - focus moves inside (the dialog's own focusing steps), and Tab stays inside (`UI.focus.trap`)\n * - the pushable makes the pusher `inert` and dims it\n * - Escape and a click beside it close it (`UI.overlays`, kind `sidebar`):\n * keyboard scope and focus restore, no scroll lock, as Fomantic's `scrollLock: false`\n * - named by the DOM element's `aria-label`, else \"Sidebar\".\n * - `persistent`: part of the page, an `<aside>`\n * (a complementary landmark; a `<ui-menu>` inside is the `<nav>`).\n * Nothing is dimmed, inert or trapped, and focus stays put.\n *\n * - A hidden sidebar is `hidden`, as every element (it starts hidden: `elementSetup.visible`);\n * while it slides out, `:state(hiding)` keeps it on screen (`onVisibleChange()`).\n *\n * - `visible` / `hidden` are controlled:\n * the cancelable `ui-opening` / `ui-closing` come first for a person's actions\n * (invoker commands, `UIT.ToggleCommands`; Escape; a click beside it).\n * - `ui-opened` / `ui-closed` follow once the transition has ended.\n * - Writing `visible` or `hidden` fires no `ui-opening` / `ui-closing`.\n ****************/\nexport class UISidebar extends E.UIComponent<SidebarVocabulary> {\n @E.proto static vocabulary = sidebarVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { sidebar: sidebarCSS },\n // a click on the panel's padding must not jump focus to its first link\n delegatesFocus: false,\n // `visible` shows it\n visible: \"hidden\"\n } satisfies Partial<E.ElementSetup>\n\n /** Always: its `<ui-pushable>` finds it by `:state(sidebar)`. */\n @E.cssState(\"sidebar\")\n get isSidebar(): boolean {\n return true\n }\n\n ////////////////\n // ## Visible\n ////////////////\n\n /** Modal (the default), or `persistent`. */\n get isModal(): boolean {\n return !this.persistent\n }\n\n /**\n * Shown or hidden, as `visible` (`isVisible`): `ui-opening` / `ui-closing` first, `ui-opened` / `ui-closed` once\n * it has slid in or out (`show()`, `hide()`).\n */\n readonly disclosure = new E.Disclosure({\n component: this,\n member: \"isVisible\",\n detail: (visible, originalEvent): UIT.SidebarOpenDetail | UIT.SidebarCloseDetail =>\n visible ? { visible, originalEvent } : { visible, reason: this.closeReason, originalEvent },\n afterDetail: (visible): UIT.SidebarOpenDetail => ({ visible })\n })\n\n /** Why the latest close was asked for: `ui-closing`'s `reason`. */\n private closeReason: UIT.SidebarCloseReason = UIT.CLOSE\n\n /** Show for a person's action, dispatching the cancelable `ui-opening` first; true when applied. */\n requestOpen(originalEvent?: Event): boolean {\n return this.disclosure.open(originalEvent)\n }\n\n /** Hide for `reason`, dispatching the cancelable `ui-closing` first; true when applied. */\n requestClose(reason: UIT.SidebarCloseReason, originalEvent?: Event): boolean {\n this.closeReason = reason\n return this.disclosure.close(originalEvent)\n }\n\n /** An invoker command aimed at the DOM element (`ToggleCommands`). */\n @E.on(\"command\")\n protected onCommand(event: Event) {\n const action = UIT.ToggleCommands.action(event, this.isVisible)\n if (action === \"show\") this.requestOpen(event)\n else if (action === \"close\") this.requestClose(UIT.CLOSE, event)\n }\n\n ////////////////\n // ## Showing and hiding\n ////////////////\n\n /** The panel: a `<dialog>`, or an `<aside>` when `persistent`. */\n private box?: HTMLElement\n\n /** Undoes the focus trap of a modal sidebar. */\n private releaseFocusTrap?: E.Disposer\n\n /** Bumped on every show / hide, so a late `ui-opened` / `ui-closed` of an earlier one is dropped. */\n private generation = 0\n\n /** A modal sidebar's `UI.overlays` entry; its options follow `closedby` when it shows. */\n private readonly overlay: E.OverlayEntry = {\n element: this.domElement,\n kind: \"sidebar\",\n modal: false,\n onDismiss: (reason: E.DismissReason) => void this.requestClose(reason)\n }\n\n /**\n * Shown while visible AND connected, once the runtime is loaded (`isReady`, as the render waits for):\n * it acts on the rendered panel; hidden by the cleanup.\n */\n @E.onChange(\"isReady\", \"isConnected\", \"isVisible\", \"isModal\")\n protected onShowingChanged(isReady: boolean, isConnected: boolean, isVisible: boolean, isModal: boolean) {\n if (!(isReady && isConnected && isVisible)) return\n this.show(isModal)\n return () => this.hide(isModal)\n }\n\n /**\n * A modal sidebar: `show()` (focus moves in), the focus trap, `UI.overlays`;\n * then `ui-opened` once its transition ends.\n */\n @E.untracked\n private show(modal: boolean) {\n const box = this.box\n this.reportLayout()\n if (modal && box instanceof HTMLDialogElement) {\n const closedBy = this.closedby ?? \"any\"\n this.overlay.closeOnEscape = closedBy !== \"none\"\n this.overlay.closeOnOutsideClick = closedBy === \"any\"\n // MUST `show()` BEFORE `UI.overlays.open()`:\n // - `show()` gives the dialog its own close watcher, disabled (`closedby` computes to `none`)\n // - opened by a click, it's the newest close-watcher group, and Chromium processes only that group,\n // so a watcher made before it never hears Escape\n // - focus still returns: `close()` refocuses what had focus before `show()`\n if (!box.open) {\n box.show()\n UI.focus.enter(box)\n }\n UI.overlays.open(this.overlay)\n this.releaseFocusTrap = UI.focus.trap(this.domElement)\n }\n this.after(() => {\n if (this.isVisible) this.disclosure.sendAfter(true)\n })\n }\n\n /**\n * Undo `show()`: `close()`, the trap, the pusher back (not `inert`), THEN leave `UI.overlays`,\n * whose focus restore may aim at a button in the pusher.\n */\n private hide(modal: boolean) {\n const box = this.box\n this.releaseFocusTrap?.()\n this.releaseFocusTrap = undefined\n this.pushable?.report(this.domElement, undefined)\n if (modal) {\n if (box instanceof HTMLDialogElement && box.open) box.close()\n UI.overlays.close(this.overlay)\n }\n this.after(() => {\n if (!this.isVisible && this.domElement.isConnected) this.disclosure.sendAfter(false)\n })\n }\n\n /**\n * The panel slides by its own CSS transitions (`transition`, its `visible` class word):\n * a hide resolves once they end, so the element stays on screen till then (`:state(hiding)`).\n * - Waits for the next paint first: the class word changes in the same update, and its transitions start with it.\n * - Motion off (`--ui-motion: none`, reduced motion) shortens them to nothing (`reset.css`).\n */\n protected async onVisibleChange(visible: boolean, _animation: UIT.Animation): Promise<void> {\n if (visible || !this.box) return\n await new Promise((resolve) => E.beforeNextPaint(() => resolve(undefined)))\n if (this.isVisible) return\n await Promise.allSettled((this.box.getAnimations() ?? []).map((animation) => animation.finished))\n }\n\n /** Run `then` once the panel's transitions end, unless another show / hide started meanwhile. */\n private after(then: () => void) {\n const generation = ++this.generation\n const animations = this.box?.getAnimations() ?? []\n void Promise.allSettled(animations.map((animation) => animation.finished)).then(() => {\n if (generation === this.generation) then()\n })\n }\n\n /** A non-modal dialog gets no `cancel` from Escape; a `CloseWatcher` request might: always prevented. */\n private readonly onCancel = (event: Event) => {\n event.preventDefault()\n }\n\n ////////////////\n // ## Layout\n ////////////////\n\n /** `transition`, else Fomantic's default for the side: `uncover` left / right, `overlay` top / bottom. */\n get transitionName(): string {\n return this.transition ?? (VERTICAL.has(this.position ?? UIT.LEFT) ? OVERLAY : UNCOVER)\n }\n\n /** A word width (`thin`) goes before the noun (`UIT.WordWidthClasses`), then `visible` while it shows. */\n protected get extraClass(): string | undefined {\n const words = [UIT.WordWidthClasses.classFor(this.width), this.isVisible ? UIT.VISIBLE : undefined]\n return words.filter(Boolean).join(\" \") || undefined\n }\n\n protected classValue(name: E.AttributeName<SidebarVocabulary>): unknown {\n if (name === \"width\" && UIT.WordWidthClasses.classFor(this.width)) return undefined\n if (name === \"transition\") return this.transitionName\n return super.classValue(name)\n }\n\n /** What the pushable lays out changed: report it, once the runtime is loaded (the panel is measured). */\n @E.onChange(\"isReady\", \"isConnected\", \"isVisible\", \"isModal\", \"position\", \"width\", \"transitionName\", \"blurring\")\n protected onLayoutChanged(isReady: boolean) {\n if (isReady) this.reportLayout()\n }\n\n /** Tell the pushable (if any) what this sidebar needs now; called by it too, once it renders. */\n @E.untracked\n reportLayout() {\n const pushable = this.pushable\n if (!pushable) return\n const visible = this.isConnected && this.isVisible\n pushable.report(this.domElement, visible ? this.layout() : undefined)\n }\n\n /** The parent `<ui-pushable>`'s component, if that's where it is. */\n private get pushable(): UIPushable | undefined {\n const parent = this.domElement.parentElement\n if (!parent?.matches(`:state(${UIT.PUSHABLE_HOST_STATE})`)) return undefined\n return (parent as E.DOMElement).component as UIPushable | undefined\n }\n\n /**\n * What the pusher does beside this sidebar (Fomantic's `sidebar.less` \"Animations\"):\n * - `overlay`: stays\n * - `scale down`: shrinks to 0.75 towards the far side\n * - `push`, `uncover`, `slide along`, `slide out`:\n * moves by the panel's measured width (height at the top / bottom), as Fomantic's script measured it\n * - A method, not a getter: it MEASURES the panel.\n */\n @E.untracked\n private layout(): UIT.SidebarLayout {\n const position = this.position ?? UIT.LEFT\n const transition = this.transitionName\n const modal = this.isModal\n const blurring = !!this.blurring\n if (transition === OVERLAY) return { transform: \"none\", origin: CENTER, modal, blurring }\n if (transition === SCALE_DOWN) return { transform: SCALE, origin: SCALE_ORIGINS[position]!, modal, blurring }\n const box = this.box\n const size = VERTICAL.has(position) ? (box?.offsetHeight ?? 0) : (box?.offsetWidth ?? 0)\n const sign = position === UIT.LEFT || position === UIT.TOP ? 1 : -1\n const offset = `${sign * size}px`\n const transform = VERTICAL.has(position) ? `translate3d(0, ${offset}, 0)` : `translate3d(${offset}, 0, 0)`\n return { transform, origin: CENTER, modal, blurring }\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n const label = () => this.attributes[\"aria-label\"] ?? this.translationForKey(\"sidebar\")\n return (\n <Show\n when={this.isModal}\n fallback={\n <aside\n ref={(element) => (this.box = element)}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n >\n <slot />\n </aside>\n }\n >\n <dialog\n ref={(element) => (this.box = element)}\n class={this.rootClass}\n part={this.partForName(\"sidebar\")}\n aria-label={label()}\n aria-modal={this.isVisible ? \"true\" : undefined}\n onCancel={this.onCancel}\n >\n <slot />\n </dialog>\n </Show>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UISidebar extends E.AttributeValues<SidebarVocabulary> {}\n\n/** Top / bottom sidebars: full width, move the pusher vertically. */\nconst VERTICAL: ReadonlySet<string> = new Set([UIT.TOP, UIT.BOTTOM])\n\n/** Transition that leaves the pusher where it is; Fomantic's default at the top / bottom. */\nconst OVERLAY = \"overlay\"\n\n/** Fomantic's default transition on the left / right. */\nconst UNCOVER = \"uncover\"\n\n/** Transition that shrinks the pusher instead of moving it. */\nconst SCALE_DOWN = \"scale down\"\n\n/** The pusher's transform under `scale down`. */\nconst SCALE = \"scale(0.75)\"\n\n/** Where a scaled-down pusher shrinks towards, by the sidebar's side (Fomantic's `transform-origin`s). */\nconst SCALE_ORIGINS: Readonly<Record<string, string>> = {\n left: \"75% 50%\",\n right: \"25% 50%\",\n top: \"50% 75%\",\n bottom: \"50% 25%\"\n}\n","/**\n * The sidebar family: defines `<ui-pushable>`, `<ui-pusher>` and `<ui-sidebar>`,\n * and exports their components, `UIPushable`, `UIPusher` and `UISidebar`.\n * - SIDE EFFECT: importing it defines the tags.\n * - NOTE: a sidebar's content (usually a `<ui-menu direction=\"vertical\">`) is the page's to import.\n * - Also the library's `spell/ui/ui-sidebar` entry (its size is in `notes/report.md`).\n */\n\nimport { UIPushable } from \"./UIPushable\"\nimport { UIPusher } from \"./UIPusher\"\nimport { UISidebar } from \"./UISidebar\"\n\nUIPushable.define()\nUIPusher.define()\nUISidebar.define()\n\nexport { UIPushable, UIPusher, UISidebar }\n"],"mappings":";;;;;AAuBA,IAAa8E,KAAqB;CAChC,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAU;EAAc;CAAS;CAC1C,KAAK,CAAC,qBAAqB,eAAe;CAC1C,MAAM;CACN,cAAc;CACd,IAAI;CACJ,aAAa;CACb,YAAY,CAAC;CACb,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,MAAM;EAAI,aAAa;CAAyC,CAAC;CAC3E,OAAO,CAAC;EAAE,MAAM;EAAY,aAAa;CAAoB,CAAC;CAC9D,QAAQ,CAAC;EAAE,MAAM;EAAY,aAAa;CAAyC,CAAC;CACpF,OAAO,CAAC;AACV,GChBaC,KAAS,W,kvWCtBtBG,GAAAC,GAAAC,GAAAC,GAAAhF,GAAAC,GAAAC,GAAAC,GAAAkF,GAsBaC,IAAN,MAAM,qBAAmB,IAAAlF,GAC9B,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAMH,IAAA,CAACC,EAAW,UAAU,CAAA,GAUtB,IAAA,CAACC,EAAE,GAYH,IAAA,CAACC,CAAE,GAWH,IAAA,CAACC,EAAW,gBAAgB,CAAA,GAzCER,EAAAA,CAAkC;CAA3D,cAAA;EAwBL,AAxBK,MAAA,GAAA,SAAA,GAAAkE,EAAAjE,G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S;AACX,CAAA,CAAA,GANeY,EAAA8E,GAAA,IAFJC,CAAA;AAAN,IAAM0C,KAAN1C,GA+QDoB,oBAAgC,IAAI,IAAI,CAAC,OAAS9G,EAAU,CAAC,GAG7D+G,IAAU,WAGVC,KAAU,WAGVO,KAAa,cAGbC,KAAQ,eAGRC,KAAkD;CACtD,MAAM;CACN,OAAO;CACP,KAAK;CACL,QAAQ;AACV;AC7TAxD,EAAW,OAAO,GAClBU,EAAS,OAAO,GAChByD,GAAU,OAAO"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-sides/ui-sides.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-sides>'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-sides\" data-omit=\"\">\n <ui-property-group label=\"Name\" data-group=\"name\">\n <ui-property name=\"name\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"size\"></ui-property>\n <ui-property name=\"sides\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"States\" data-group=\"states\">\n <ui-property name=\"disabled\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Form\" data-group=\"form\">\n <ui-property name=\"value\"></ui-property>\n <ui-property name=\"readonly\"></ui-property>\n <ui-property name=\"parameter\"></ui-property>\n <ui-property name=\"required\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-sides.editor-CONIJ1r3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-sides.editor-CONIJ1r3.js","names":["ui_sides_editor_default"],"sources":[],"mappings":""}
|
package/dist/ui-sides.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./rolldown-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import "./rolldown-runtime-c6e9CmGy.js";
|
|
2
|
+
import { C as e, Converters as t, Gt as n, Jt as r, Kt as i, NativeFallback as a, Ut as o, Wt as s, Yt as c, controlled as l, proto as u, protoMerged as d, qt as f, untracked as p, w as m } from "./core.js";
|
|
3
3
|
import { DOMFormControl as h, FormComponent as g } from "./forms.js";
|
|
4
4
|
import { For as _ } from "solid-js";
|
|
5
5
|
import { className as v, createComponent as y, effect as b, insert as x, readShallow as S, ref as C, setAttribute as w, template as T } from "@solidjs/web";
|
|
6
|
-
|
|
6
|
+
// src/components/ui-sides/UISides.en.ts
|
|
7
7
|
var E = {
|
|
8
8
|
tag: "ui-sides",
|
|
9
9
|
icon: "cubes",
|
|
@@ -23,6 +23,7 @@ var E = {
|
|
|
23
23
|
],
|
|
24
24
|
skeleton: "inline 8 x 4.5",
|
|
25
25
|
noun: "sides",
|
|
26
|
+
partOfSpeech: "structure",
|
|
26
27
|
description: "Sides edit four lengths at once, top, left, right and bottom, as a margin or a padding: a number box per side.",
|
|
27
28
|
attributes: [
|
|
28
29
|
{
|
|
@@ -51,13 +52,13 @@ var E = {
|
|
|
51
52
|
description: "Can't be used: left out of the form, not focusable."
|
|
52
53
|
},
|
|
53
54
|
{
|
|
54
|
-
...
|
|
55
|
+
...e.readonly,
|
|
55
56
|
description: "Shows its lengths but they can't be changed."
|
|
56
57
|
},
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
e.name,
|
|
59
|
+
e.parameter,
|
|
59
60
|
{
|
|
60
|
-
...
|
|
61
|
+
...e.required,
|
|
61
62
|
description: "Form validation: every side shown must have a length."
|
|
62
63
|
}
|
|
63
64
|
],
|
|
@@ -88,7 +89,7 @@ var E = {
|
|
|
88
89
|
states: [{
|
|
89
90
|
name: "disabled",
|
|
90
91
|
description: "Can't be used."
|
|
91
|
-
},
|
|
92
|
+
}, m.invalid],
|
|
92
93
|
texts: [
|
|
93
94
|
{
|
|
94
95
|
key: "top",
|
|
@@ -174,11 +175,11 @@ var E = {
|
|
|
174
175
|
].map((e) => e ?? "");
|
|
175
176
|
}
|
|
176
177
|
};
|
|
177
|
-
A =
|
|
178
|
+
A = n(k), o(A, 13, "vocabulary", O, j), o(A, 13, "degraded", D, j), s(A, j), i(j, "SidesFallback"), r(j, "vocabulary", c(A, 8, j, E)), c(A, 11, j), r(j, "degraded", c(A, 12, j, [
|
|
178
179
|
"the side letters and the cross layout",
|
|
179
180
|
"`sides`",
|
|
180
181
|
"the form the value was given in"
|
|
181
|
-
])),
|
|
182
|
+
])), c(A, 15, j);
|
|
182
183
|
var M = j, N = [
|
|
183
184
|
"top",
|
|
184
185
|
"right",
|
|
@@ -186,11 +187,11 @@ var M = j, N = [
|
|
|
186
187
|
"left"
|
|
187
188
|
], P = "@layer ui.components.sides.types{:host{max-width:100%;display:inline-block}.ui.sides{--_ui-sides-box-width:var(--ui-sides-box-width,5em);--_ui-sides-gap:var(--ui-sides-gap,4px);--_ui-sides-letter-color:var(--ui-sides-letter-color,var(--ui-text-muted));box-sizing:border-box;grid-template-areas:\".top top.\"\"left left right right\"\".bottom bottom.\";grid-template-columns:repeat(4, minmax(0, calc(var(--_ui-sides-box-width) / 2)));gap:var(--_ui-sides-gap);font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));display:grid}.ui.row.sides{grid-template-areas:none;grid-template-columns:repeat(2, minmax(0, var(--_ui-sides-box-width)))}}@layer ui.components.sides.content{.side{min-width:0;display:block;position:relative}.ui.sides:not(.row)>.side{grid-area:var(--_sides-area)}.top.side{--_sides-area:top}.left.side{--_sides-area:left}.right.side{--_sides-area:right}.bottom.side{--_sides-area:bottom}.side>.letter{color:var(--_ui-sides-letter-color);pointer-events:none;align-items:center;font-size:.85em;display:flex;position:absolute;inset-block:0;inset-inline-start:.5em}.side>input{box-sizing:border-box;width:100%;padding:var(--ui-input-padding-block,.35em) var(--ui-input-padding-inline,.6em) var(--ui-input-padding-block,.35em) 1.75em;border:var(--ui-border-width,1px) solid var(--ui-border-color);border-radius:var(--ui-input-radius,var(--ui-radius-s,4px));background:var(--ui-surface);color:var(--ui-text-color);font:inherit;font-weight:var(--_ui-input-owner-weight,var(--ui-font-weight-normal));font-variant-numeric:tabular-nums;text-align:end;appearance:textfield;margin:0}.side>input::-webkit-inner-spin-button{appearance:none}.side>input:focus-visible{outline:var(--ui-focus-width,2px) solid var(--ui-focus-color);outline-offset:1px}}@layer ui.components.sides.states{.side>input:disabled{opacity:var(--ui-disabled-opacity,.45)}.ui.sides[aria-invalid=true]>.side>input{border-color:var(--ui-negative-border,var(--ui-negative-text))}}", F = /* @__PURE__ */ T("<div role=group>"), I = /* @__PURE__ */ T("<label><span aria-hidden=true></span><input type=number>"), L, R, z, B, V, H, U, W, DOMSidesElement = class extends h {
|
|
188
189
|
static {
|
|
189
|
-
|
|
190
|
+
i(this, "DOMSidesElement");
|
|
190
191
|
}
|
|
191
|
-
}, G = class _UISides extends (H = g, V = [u], B = [d], z = [u], R = [l("value")], L = [
|
|
192
|
+
}, G = class _UISides extends (H = g, V = [u], B = [d], z = [u], R = [l("value")], L = [p], H) {
|
|
192
193
|
constructor() {
|
|
193
|
-
super(...arguments),
|
|
194
|
+
super(...arguments), c(U, 5, this), f(this, W, c(U, 8, this)), c(U, 11, this), r(this, "inputs", []);
|
|
194
195
|
}
|
|
195
196
|
onFormStateRestore(e) {
|
|
196
197
|
typeof e == "string" && (this.value = e);
|
|
@@ -199,7 +200,7 @@ var M = j, N = [
|
|
|
199
200
|
return _UISides.lengthsOf(this.value);
|
|
200
201
|
}
|
|
201
202
|
get shownSides() {
|
|
202
|
-
let e =
|
|
203
|
+
let e = t.list(this.sides ?? "").filter((e) => q.includes(e));
|
|
203
204
|
return e.length ? q.filter((t) => e.includes(t)) : q;
|
|
204
205
|
}
|
|
205
206
|
get isRow() {
|
|
@@ -217,7 +218,7 @@ var M = j, N = [
|
|
|
217
218
|
return _UISides.textOf(this.lengths);
|
|
218
219
|
}
|
|
219
220
|
onFormReset() {
|
|
220
|
-
this.value =
|
|
221
|
+
this.value = t.json(this.attributes.value);
|
|
221
222
|
}
|
|
222
223
|
get validationLabel() {
|
|
223
224
|
return this.labels.accessibleName ?? this.name;
|
|
@@ -267,16 +268,16 @@ var M = j, N = [
|
|
|
267
268
|
this.inputs[0]?.focus();
|
|
268
269
|
}
|
|
269
270
|
static lengthsOf(e) {
|
|
270
|
-
let
|
|
271
|
-
if (
|
|
271
|
+
let n = typeof e == "string" ? t.json(e) : e;
|
|
272
|
+
if (n && typeof n == "object") {
|
|
272
273
|
let e = {};
|
|
273
|
-
for (let
|
|
274
|
-
let r = Number(t
|
|
275
|
-
t
|
|
274
|
+
for (let t of q) {
|
|
275
|
+
let r = Number(n[t]);
|
|
276
|
+
n[t] != null && Number.isFinite(r) && (e[t] = r);
|
|
276
277
|
}
|
|
277
278
|
return e;
|
|
278
279
|
}
|
|
279
|
-
let r = (
|
|
280
|
+
let r = (n ?? "").trim().split(/\s+/).filter(Boolean).map(Number);
|
|
280
281
|
if (!r.length || r.some((e) => !Number.isFinite(e))) return {};
|
|
281
282
|
let [i, a = i, o = i, s = a] = r;
|
|
282
283
|
return {
|
|
@@ -300,11 +301,11 @@ var M = j, N = [
|
|
|
300
301
|
return J.every((t) => e[t] === void 0) ? null : J.map((t) => e[t] ?? 0).join(" ");
|
|
301
302
|
}
|
|
302
303
|
};
|
|
303
|
-
U =
|
|
304
|
+
U = n(H), W = /* @__PURE__ */ new WeakMap(), o(U, 4, "value", R, G, W), o(U, 1, "edit", L, G), o(U, 13, "vocabulary", V, G), o(U, 13, "elementSetup", B, G), o(U, 13, "invalidShows", z, G), s(U, G), i(G, "UISides"), r(G, "vocabulary", c(U, 12, G, E)), c(U, 15, G), r(G, "elementSetup", c(U, 16, G, {
|
|
304
305
|
styleSheets: { sides: P },
|
|
305
306
|
Fallback: M,
|
|
306
307
|
DOMElement: DOMSidesElement
|
|
307
|
-
})),
|
|
308
|
+
})), c(U, 19, G), r(G, "invalidShows", c(U, 20, G, "once touched")), c(U, 23, G);
|
|
308
309
|
var K = G, q = [
|
|
309
310
|
"top",
|
|
310
311
|
"left",
|
|
@@ -316,10 +317,8 @@ var K = G, q = [
|
|
|
316
317
|
"bottom",
|
|
317
318
|
"left"
|
|
318
319
|
], Y = "row", X = "letter";
|
|
319
|
-
|
|
320
|
-
//#region src/components/ui-sides/index.ts
|
|
320
|
+
// src/components/ui-sides/index.ts
|
|
321
321
|
K.define();
|
|
322
|
-
//#endregion
|
|
323
322
|
export { DOMSidesElement, K as UISides };
|
|
324
323
|
|
|
325
324
|
//# sourceMappingURL=ui-sides.js.map
|