spell-ui 0.8.9 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-components.md +9 -3
- package/README-frameworks.md +5 -5
- package/README-migrating.md +2 -2
- package/README.md +5 -5
- package/dist/{CodeEngine-GL9EzwF1.js → CodeEngine-B684vKxR.js} +39 -100
- package/dist/{CodeEngine-GL9EzwF1.js.map → CodeEngine-B684vKxR.js.map} +1 -1
- package/dist/{Dragging-CMZoLEWQ.js → Dragging-B93hbRxF.js} +17 -15
- package/dist/Dragging-B93hbRxF.js.map +1 -0
- package/dist/{MarkdownEngine-CW1WGqNp.js → MarkdownEngine-D1jqcFeU.js} +11 -72
- package/dist/{MarkdownEngine-CW1WGqNp.js.map → MarkdownEngine-D1jqcFeU.js.map} +1 -1
- package/dist/MarkdownSanitizer-CqsWivYJ.js +866 -0
- package/dist/MarkdownSanitizer-CqsWivYJ.js.map +1 -0
- package/dist/{PrefStore-Qv0e5y04.js → PrefStore-Di83C0bY.js} +13 -9
- package/dist/PrefStore-Di83C0bY.js.map +1 -0
- package/dist/ScrollingRow-DkOtx2QK.js +89 -0
- package/dist/ScrollingRow-DkOtx2QK.js.map +1 -0
- package/dist/{SitePages-CciwREek.js → SitePages-B3zd5Zgu.js} +37 -10
- package/dist/SitePages-B3zd5Zgu.js.map +1 -0
- package/dist/SlottedItems-DWfAZYqM.js +88 -0
- package/dist/SlottedItems-DWfAZYqM.js.map +1 -0
- package/dist/{TemporalPolyfill-D9mr7_wA.js → TemporalPolyfill-Bv_c_xa0.js} +7 -12
- package/dist/{TemporalPolyfill-D9mr7_wA.js.map → TemporalPolyfill-Bv_c_xa0.js.map} +1 -1
- package/dist/{ThemeDraft-B7NPif4d.js → ThemeDraft-CyX3YA_L.js} +41 -43
- package/dist/{ThemeDraft-B7NPif4d.js.map → ThemeDraft-CyX3YA_L.js.map} +1 -1
- package/dist/{TreeMeasure-BVJeGb1L.js → TreeMeasure-BK74uexu.js} +3 -4
- package/dist/{TreeMeasure-BVJeGb1L.js.map → TreeMeasure-BK74uexu.js.map} +1 -1
- package/dist/UIButton-BmIiXYDC.js +5 -0
- package/dist/UIButton-BmIiXYDC.js.map +1 -0
- package/dist/UIGrid-2ZUA1YEc.js +200 -0
- package/dist/UIGrid-2ZUA1YEc.js.map +1 -0
- package/dist/{UIInput-BodVbUoQ.js → UIInput-B3K0w4ow.js} +2 -3
- package/dist/UIInput-B3K0w4ow.js.map +1 -0
- package/dist/{UIKeys-Rh_gUZjP.js → UIKeys-DmXvyJuU.js} +12 -12
- package/dist/UIKeys-DmXvyJuU.js.map +1 -0
- package/dist/{UILabel-DgJUBzB_.js → UILabel-pCjKxQlQ.js} +2 -3
- package/dist/UILabel-pCjKxQlQ.js.map +1 -0
- package/dist/UIMenu-CqURPocK.js +42 -0
- package/dist/UIMenu-CqURPocK.js.map +1 -0
- package/dist/{UIRuntime-KH309p5B.js → UIRuntime-BXutHphM.js} +253 -239
- package/dist/UIRuntime-BXutHphM.js.map +1 -0
- package/dist/{UISegment-CMMIW7cZ.js → UISegment-BF4Tgy2D.js} +2 -3
- package/dist/UISegment-BF4Tgy2D.js.map +1 -0
- package/dist/_spell-element/UIComponent.d.ts +8 -0
- package/dist/_spell-element/vocabulary.types.d.ts +20 -2
- package/dist/_util/Dragging.d.ts +14 -2
- package/dist/_util/dom.d.ts +12 -8
- package/dist/_util/measures/Dimension.d.ts +1 -1
- package/dist/_util/persist/PrefStore.d.ts +7 -2
- package/dist/_util/persist/persist.types.d.ts +6 -0
- package/dist/_util/platform.d.ts +54 -0
- package/dist/_util/string.d.ts +32 -0
- package/dist/api.js +2 -3
- package/dist/api.js.map +1 -1
- package/dist/{apple.palette-B4ivrNlM.js → apple.palette-YLjENwUt.js} +2 -3
- package/dist/apple.palette-YLjENwUt.js.map +1 -0
- package/dist/{classic-DCTQrteU.js → classic-BHyJFvQa.js} +2 -3
- package/dist/classic-BHyJFvQa.js.map +1 -0
- package/dist/components/ComponentDefinitions.d.ts +55 -8
- package/dist/components/components.es.d.ts +2 -1
- package/dist/components/components.planned.d.ts +1 -1
- package/dist/components/components.types.d.ts +22 -0
- package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
- package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
- package/dist/components/ui-action/UIAction.d.ts +38 -1
- package/dist/components/ui-action/UIAction.en.d.ts +17 -8
- package/dist/components/ui-action/UIAction.es.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
- package/dist/components/ui-app-menu/UIAppMenu.d.ts +41 -0
- package/dist/components/ui-app-menu/UIAppMenu.en.d.ts +294 -0
- package/dist/components/ui-app-menu/UIAppMenu.es.d.ts +35 -0
- package/dist/components/ui-app-menu/index.d.ts +2 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
- package/dist/components/ui-button/UIButton.d.ts +5 -4
- package/dist/components/ui-button/UIButton.en.d.ts +4 -3
- package/dist/components/ui-button/UIButton.fallback.d.ts +4 -3
- package/dist/components/ui-button/UIButton.types.d.ts +1 -1
- package/dist/components/ui-button/UIButtons.d.ts +7 -5
- package/dist/components/ui-button/UIButtons.en.d.ts +5 -3
- package/dist/components/ui-button/UIButtons.es.d.ts +1 -0
- package/dist/components/ui-button/UIOr.d.ts +1 -0
- package/dist/components/ui-button/UIOr.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +1 -0
- package/dist/components/ui-card/UICard.d.ts +1 -0
- package/dist/components/ui-card/UICard.en.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +1 -0
- package/dist/components/ui-card/UICards.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +1 -0
- package/dist/components/ui-code/CodeHighlighter.d.ts +7 -3
- package/dist/components/ui-code/UICode.d.ts +12 -1
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-code/UICode.types.d.ts +9 -0
- package/dist/components/ui-comment/UIComment.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +54 -1
- package/dist/components/ui-container/UIContainer.en.d.ts +40 -1
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-device/UIDevice.d.ts +234 -0
- package/dist/components/ui-device/UIDevice.en.d.ts +126 -0
- package/dist/components/ui-device/UIDevice.es.d.ts +52 -0
- package/dist/components/ui-device/index.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +1 -0
- package/dist/components/ui-dropdown/SlottedItems.d.ts +9 -1
- package/dist/components/ui-dropdown/UIDropdown.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
- package/dist/components/ui-example/UIExample.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
- package/dist/components/ui-form/UIField.d.ts +11 -4
- package/dist/components/ui-form/UIField.en.d.ts +3 -2
- package/dist/components/ui-form/UIFields.d.ts +1 -0
- package/dist/components/ui-form/UIFields.en.d.ts +1 -0
- package/dist/components/ui-form/UIForm.d.ts +1 -0
- package/dist/components/ui-form/UIForm.en.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.d.ts +4 -3
- package/dist/components/ui-grid/UIColumn.en.d.ts +4 -3
- package/dist/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +5 -1
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +1 -0
- package/dist/components/ui-image/UIImage.d.ts +1 -0
- package/dist/components/ui-image/UIImage.en.d.ts +1 -0
- package/dist/components/ui-image/UIImages.d.ts +1 -0
- package/dist/components/ui-image/UIImages.en.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.d.ts +1 -0
- package/dist/components/ui-input/UIInput.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +1 -0
- package/dist/components/ui-item/UIItem.d.ts +19 -8
- package/dist/components/ui-item/UIItem.en.d.ts +2 -1
- package/dist/components/ui-items/UIItems.d.ts +1 -0
- package/dist/components/ui-items/UIItems.en.d.ts +1 -0
- package/dist/components/ui-json/UIJson.d.ts +1 -0
- package/dist/components/ui-json/UIJson.en.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
- package/dist/components/ui-label/UILabel.d.ts +3 -2
- package/dist/components/ui-label/UILabel.en.d.ts +3 -2
- package/dist/components/ui-label/UILabels.d.ts +1 -0
- package/dist/components/ui-label/UILabels.en.d.ts +1 -0
- package/dist/components/ui-list/UIList.d.ts +1 -0
- package/dist/components/ui-list/UIList.en.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
- package/dist/components/ui-markdown/MarkdownBox.d.ts +7 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +9 -4
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +5 -0
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +1 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +19 -1
- package/dist/components/ui-menu/SegmentedThumb.d.ts +8 -1
- package/dist/components/ui-menu/SubMenuAim.d.ts +115 -0
- package/dist/components/ui-menu/TitleFit.d.ts +16 -1
- package/dist/components/ui-menu/UIMenu.d.ts +112 -9
- package/dist/components/ui-menu/UIMenu.en.d.ts +3 -2
- package/dist/components/ui-menu/UISubmenu.d.ts +261 -0
- package/dist/components/ui-menu/UISubmenu.en.d.ts +102 -0
- package/dist/components/ui-menu/UISubmenu.es.d.ts +21 -0
- package/dist/components/ui-menu/index.d.ts +3 -1
- package/dist/components/ui-message/UIMessage.d.ts +3 -2
- package/dist/components/ui-message/UIMessage.en.d.ts +4 -3
- package/dist/components/ui-modal/ModalDialogs.d.ts +35 -3
- package/dist/components/ui-modal/UIModal.d.ts +6 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +6 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +1 -0
- package/dist/components/ui-page/UIPage.en.d.ts +1 -0
- package/dist/components/ui-page-layout/UIPageLayout.d.ts +311 -0
- package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +99 -0
- package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +38 -0
- package/dist/components/ui-page-layout/index.d.ts +1 -0
- package/dist/components/ui-panel/ScrollShades.d.ts +38 -0
- package/dist/components/ui-panel/UIPanel.d.ts +21 -2
- package/dist/components/ui-panel/UIPanel.en.d.ts +68 -61
- package/dist/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +11 -2
- package/dist/components/ui-parts/UIAvatar.en.d.ts +3 -2
- package/dist/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
- package/dist/components/ui-parts/UIHeader.d.ts +4 -3
- package/dist/components/ui-parts/UIHeader.en.d.ts +4 -3
- package/dist/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +18 -5
- package/dist/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
- package/dist/components/ui-popup/UIPopup.d.ts +21 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +3 -2
- package/dist/components/ui-progress/UIProgress.en.d.ts +4 -3
- package/dist/components/ui-property-editor/UIProperty.d.ts +47 -13
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +14 -1
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +7 -1
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +15 -6
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.d.ts +4 -3
- package/dist/components/ui-rail/UIRail.en.d.ts +4 -3
- package/dist/components/ui-rating/UIRating.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
- package/dist/components/ui-root/UIRoot.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +1 -0
- package/dist/components/ui-search/UISearch.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +1 -0
- package/dist/components/ui-section/UISection.d.ts +3 -2
- package/dist/components/ui-section/UISection.en.d.ts +3 -2
- package/dist/components/ui-section/UISections.d.ts +1 -0
- package/dist/components/ui-section/UISections.en.d.ts +1 -0
- package/dist/components/ui-segment/UISegment.d.ts +9 -10
- package/dist/components/ui-segment/UISegment.en.d.ts +10 -11
- package/dist/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.d.ts +1 -0
- package/dist/components/ui-select/UISelect.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.en.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +1 -0
- package/dist/components/ui-shape/UISide.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.d.ts +1 -0
- package/dist/components/ui-sides/UISides.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +1 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.d.ts +118 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.en.d.ts +49 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.es.d.ts +22 -0
- package/dist/components/ui-site-breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +26 -3
- package/dist/components/ui-site-nav/UISiteNav.d.ts +43 -5
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +10 -1
- package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +63 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +173 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +20 -0
- package/dist/components/ui-site-nav-button/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +21 -6
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +1 -0
- package/dist/components/ui-space/UISpace.d.ts +1 -0
- package/dist/components/ui-space/UISpace.en.d.ts +1 -0
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +43 -7
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +2 -1
- package/dist/components/ui-stack/UIStack.d.ts +1 -0
- package/dist/components/ui-stack/UIStack.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
- package/dist/components/ui-step/UIStep.d.ts +1 -0
- package/dist/components/ui-step/UIStep.en.d.ts +1 -0
- package/dist/components/ui-step/UISteps.d.ts +3 -2
- package/dist/components/ui-step/UISteps.en.d.ts +3 -2
- package/dist/components/ui-sticky/UISticky.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +3 -2
- package/dist/components/ui-tab/UITab.en.d.ts +4 -3
- package/dist/components/ui-tab/UITabs.d.ts +5 -4
- package/dist/components/ui-tab/UITabs.en.d.ts +4 -3
- package/dist/components/ui-table/TableGrammar.d.ts +2 -2
- package/dist/components/ui-table/UICell.d.ts +1 -0
- package/dist/components/ui-table/UICell.en.d.ts +1 -0
- package/dist/components/ui-table/UITable.d.ts +7 -6
- package/dist/components/ui-table/UITable.en.d.ts +7 -6
- package/dist/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
- package/dist/components/ui-text/UILink.d.ts +1 -0
- package/dist/components/ui-text/UILink.en.d.ts +1 -0
- package/dist/components/ui-text/UIText.d.ts +2 -1
- package/dist/components/ui-text/UIText.en.d.ts +2 -1
- package/dist/components/ui-theme-editor/BenchAddress.d.ts +9 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +37 -15
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +3 -2
- package/dist/components/ui-toast/ToastStack.d.ts +9 -0
- package/dist/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +134 -1
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -0
- package/dist/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
- package/dist/components/ui-tree/UITree.d.ts +102 -2
- package/dist/components/ui-tree/UITree.en.d.ts +14 -1
- package/dist/components/ui-tree/UITree.es.d.ts +3 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
- package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
- package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
- package/dist/{components.es-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
- package/dist/components.es-DEa8Ep42.js.map +1 -0
- package/dist/core.js +795 -702
- package/dist/core.js.map +1 -1
- package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
- package/dist/crisp-DIpY320U.js.map +1 -0
- package/dist/crisp.theme-Ir9p4BDC.js +5 -0
- package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
- package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
- package/dist/dark-B5s4QbmU.js.map +1 -0
- package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
- package/dist/dist-BQT4KajA.js.map +1 -0
- package/dist/docs-components/docs-components.types.d.ts +6 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
- package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
- package/dist/elements/PartComponent.d.ts +5 -0
- package/dist/elements/PopoverPanel.d.ts +12 -1
- package/dist/elements/Validator.d.ts +1 -1
- package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
- package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
- package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
- package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
- package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
- package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
- package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
- package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
- package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
- package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
- package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
- package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
- package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
- package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
- package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
- package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
- package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
- package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
- package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
- package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
- package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
- package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
- package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
- package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
- package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
- package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
- package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
- package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
- package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
- package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
- package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
- package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
- package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
- package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
- package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
- package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
- package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
- package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
- package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
- package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
- package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
- package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
- package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
- package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
- package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
- package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
- package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
- package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
- package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
- package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
- package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
- package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
- package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
- package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
- package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
- package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
- package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
- package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
- package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
- package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
- package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
- package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
- package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
- package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
- package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
- package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
- package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
- package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
- package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
- package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
- package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
- package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
- package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
- package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
- package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
- package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
- package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
- package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
- package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
- package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
- package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
- package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
- package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
- package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
- package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
- package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
- package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
- package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
- package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
- package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
- package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
- package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
- package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
- package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
- package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
- package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
- package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
- package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
- package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
- package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
- package/dist/forms.js +65 -75
- package/dist/forms.js.map +1 -1
- package/dist/fruity-CsfZNeXb.js +5 -0
- package/dist/fruity-CsfZNeXb.js.map +1 -0
- package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
- package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
- package/dist/glass-BCK30hpe.js +5 -0
- package/dist/glass-BCK30hpe.js.map +1 -0
- package/dist/glass.theme-C7QSRB7b.js +5 -0
- package/dist/glass.theme-C7QSRB7b.js.map +1 -0
- package/dist/hot.js +18 -32
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +96 -91
- package/dist/jsx.d.ts +3875 -711
- package/dist/matrix-DEnqBfwC.js +5 -0
- package/dist/matrix-DEnqBfwC.js.map +1 -0
- package/dist/matrix.theme-YV6_nvXv.js +5 -0
- package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
- package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
- package/dist/merlot-DFa6kDbA.js.map +1 -0
- package/dist/merlot.theme-B1K8nn2u.js +5 -0
- package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
- package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
- package/dist/midnight-q0-3-V6U.js.map +1 -0
- package/dist/midnight.theme-C7M02wTD.js +5 -0
- package/dist/midnight.theme-C7M02wTD.js.map +1 -0
- package/dist/mockup-D0vovNO7.js +5 -0
- package/dist/mockup-D0vovNO7.js.map +1 -0
- package/dist/mockup.theme-C92r9NI0.js +5 -0
- package/dist/mockup.theme-C92r9NI0.js.map +1 -0
- package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
- package/dist/paper-DPxolmdy.js.map +1 -0
- package/dist/paper.theme-BAKk3DY1.js +5 -0
- package/dist/paper.theme-BAKk3DY1.js.map +1 -0
- package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
- package/dist/persist.types-D7N7GewC.js.map +1 -0
- package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
- package/dist/pop-Dw_6k177.js.map +1 -0
- package/dist/pop.theme-Cw-yD0MO.js +5 -0
- package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
- package/dist/property/PropertyEditorPages.d.ts +1 -1
- package/dist/property/PropertyLayouts.d.ts +119 -0
- package/dist/property/PropertySchemas.d.ts +5 -1
- package/dist/property/index.d.ts +2 -0
- package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
- package/dist/runtime/Browser.d.ts +7 -0
- package/dist/runtime/DataTooltips.d.ts +2 -0
- package/dist/runtime/Keyboard.d.ts +4 -1
- package/dist/runtime/Toasts.d.ts +10 -0
- package/dist/runtime/runtime.types.d.ts +52 -0
- package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
- package/dist/search-C2Rq9HF1.js.map +1 -0
- package/dist/spell-CB-MivSX.js +5 -0
- package/dist/spell-CB-MivSX.js.map +1 -0
- package/dist/spell.theme-CUoc5rTq.js +5 -0
- package/dist/spell.theme-CUoc5rTq.js.map +1 -0
- package/dist/styles/StyleGenerator.d.ts +7 -0
- package/dist/styles/styles.en.d.ts +27 -18
- package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
- package/dist/styles.en-DZlSJiOR.js.map +1 -0
- package/dist/styles.js +9 -10
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
- package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
- package/dist/ui-accordion.js +59 -60
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
- package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
- package/dist/ui-action.js +73 -45
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
- package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
- package/dist/ui-ad.editor-BHTDuSii.js +5 -0
- package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
- package/dist/ui-ad.js +8 -9
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
- package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
- package/dist/ui-app-menu.js +89 -0
- package/dist/ui-app-menu.js.map +1 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
- package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
- package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
- package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
- package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
- package/dist/ui-breadcrumbs.js +18 -17
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
- package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
- package/dist/ui-button.js +157 -156
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
- package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
- package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
- package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
- package/dist/ui-calendar.js +148 -157
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.editor-BBZj9e03.js +5 -0
- package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
- package/dist/ui-card.js +70 -70
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
- package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
- package/dist/ui-checkbox.js +49 -48
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.editor-Drr_FVB6.js +5 -0
- package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
- package/dist/ui-code.js +116 -79
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
- package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
- package/dist/ui-column.editor-hdUb-qwT.js +5 -0
- package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
- package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
- package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
- package/dist/ui-comment.js +15 -14
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
- package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
- package/dist/ui-components.editor-BKFXnARt.js +5 -0
- package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
- package/dist/ui-components.js +12 -13
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.editor-CBNhNkRm.js +5 -0
- package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
- package/dist/ui-container.js +106 -21
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-content.editor-B78lxK3P.js +5 -0
- package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
- package/dist/ui-date.editor-PHEnU7QX.js +5 -0
- package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
- package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
- package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
- package/dist/ui-detail.editor-wliuVbx3.js +5 -0
- package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
- package/dist/ui-device.editor-kl48NVma.js +5 -0
- package/dist/ui-device.editor-kl48NVma.js.map +1 -0
- package/dist/ui-device.js +436 -0
- package/dist/ui-device.js.map +1 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
- package/dist/ui-diagram.js +128 -129
- package/dist/ui-diagram.js.map +1 -1
- package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
- package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
- package/dist/ui-dimension.js +111 -12
- package/dist/ui-dimension.js.map +1 -1
- package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
- package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
- package/dist/ui-dimmer.js +29 -30
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
- package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
- package/dist/ui-divider.js +9 -10
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
- package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
- package/dist/ui-dropdown.js +155 -156
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
- package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
- package/dist/ui-embed.js +23 -24
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
- package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
- package/dist/ui-emoji.js +63 -64
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-event.editor-Bk17y7wW.js +5 -0
- package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
- package/dist/ui-example.editor-D46Vnctp.js +5 -0
- package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
- package/dist/ui-example.js +67 -74
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
- package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
- package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
- package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
- package/dist/ui-feed.js +26 -25
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
- package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
- package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
- package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
- package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
- package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
- package/dist/ui-flag.js +13 -14
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
- package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
- package/dist/ui-flyout.js +10 -11
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.editor-BJC3WhNf.js +5 -0
- package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
- package/dist/ui-form.js +199 -195
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
- package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
- package/dist/ui-grid.js +43 -234
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-header.editor-meOjCASK.js +5 -0
- package/dist/ui-header.editor-meOjCASK.js.map +1 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
- package/dist/ui-icon-picker.js +64 -69
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.editor-DoKK49PD.js +5 -0
- package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
- package/dist/ui-icon.js +15 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
- package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
- package/dist/ui-image.js +26 -26
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
- package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
- package/dist/ui-include.editor-CZcsVJbH.js +5 -0
- package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
- package/dist/ui-include.js +21 -22
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.editor-budoNoB0.js +5 -0
- package/dist/ui-input.editor-budoNoB0.js.map +1 -0
- package/dist/ui-input.js +131 -130
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.editor-BlWp1HXu.js +5 -0
- package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
- package/dist/ui-item.js +127 -113
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.editor-GOul3Xss.js +5 -0
- package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
- package/dist/ui-items.js +11 -12
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.editor-BgZbrB_W.js +5 -0
- package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
- package/dist/ui-json.js +18 -19
- package/dist/ui-json.js.map +1 -1
- package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
- package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
- package/dist/ui-keys.js +2 -3
- package/dist/ui-label.editor-BVUYLSUs.js +5 -0
- package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
- package/dist/ui-label.js +22 -22
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-labels.editor-BWJth86p.js +5 -0
- package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
- package/dist/ui-link.editor-CpI53scP.js +5 -0
- package/dist/ui-link.editor-CpI53scP.js.map +1 -0
- package/dist/ui-list.editor-DhBZIkAa.js +5 -0
- package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
- package/dist/ui-list.js +9 -10
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
- package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
- package/dist/ui-loader.js +10 -11
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
- package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
- package/dist/ui-markdown.js +208 -154
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
- package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
- package/dist/ui-menu.js +815 -223
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.editor-vfT0pyu5.js +5 -0
- package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
- package/dist/ui-message.js +32 -33
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
- package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
- package/dist/ui-modal.editor-B6gmmGsR.js +5 -0
- package/dist/ui-modal.editor-B6gmmGsR.js.map +1 -0
- package/dist/ui-modal.js +128 -99
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
- package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
- package/dist/ui-nag.js +23 -24
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-or.editor-BfBLNVgm.js +5 -0
- package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
- package/dist/ui-page-layout.js +363 -0
- package/dist/ui-page-layout.js.map +1 -0
- package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
- package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
- package/dist/ui-page.js +11 -12
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
- package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
- package/dist/ui-panel.js +105 -27
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +83 -68
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
- package/dist/ui-placeholder.js +23 -19
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
- package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
- package/dist/ui-popup.js +107 -100
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
- package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
- package/dist/ui-progress.js +23 -24
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
- package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
- package/dist/ui-property-editor.js +649 -277
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
- package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
- package/dist/ui-property.editor-BC-jtjjt.js +5 -0
- package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
- package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
- package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
- package/dist/ui-quote.js +8 -9
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-radio.editor-DPzActfO.js +5 -0
- package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
- package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
- package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
- package/dist/ui-rail.js +11 -12
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.editor-C19syymj.js +5 -0
- package/dist/ui-rating.editor-C19syymj.js.map +1 -0
- package/dist/ui-rating.js +40 -49
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
- package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
- package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
- package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
- package/dist/ui-reveal.js +10 -11
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.editor-CAokPDVa.js +5 -0
- package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
- package/dist/ui-root.js +206 -102
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
- package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
- package/dist/ui-search.editor-CtzfYgNu.js +5 -0
- package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
- package/dist/ui-search.js +143 -146
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.editor-DmNICxCs.js +5 -0
- package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
- package/dist/ui-section.js +74 -73
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-sections.editor-BxXECGv9.js +5 -0
- package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
- package/dist/ui-segment.editor-CebyLPFn.js +5 -0
- package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
- package/dist/ui-segment.js +43 -43
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-segments.editor-CSumzMa5.js +5 -0
- package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
- package/dist/ui-select.editor-wAcZzvU7.js +5 -0
- package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
- package/dist/ui-select.js +86 -87
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.editor-By9-8aD2.js +5 -0
- package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
- package/dist/ui-shape.js +39 -38
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-side.editor-CFSqGHGH.js +5 -0
- package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
- package/dist/ui-sidebar.js +79 -77
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
- package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
- package/dist/ui-sides.js +25 -26
- package/dist/ui-sides.js.map +1 -1
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
- package/dist/ui-site-breadcrumbs.js +143 -0
- package/dist/ui-site-breadcrumbs.js.map +1 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
- package/dist/ui-site-nav-button.js +113 -0
- package/dist/ui-site-nav-button.js.map +1 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
- package/dist/ui-site-nav.js +133 -97
- package/dist/ui-site-nav.js.map +1 -1
- package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
- package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
- package/dist/ui-site-tabs.js +53 -48
- package/dist/ui-site-tabs.js.map +1 -1
- package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
- package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
- package/dist/ui-slider.js +37 -38
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.editor-s-XVWFBN.js +5 -0
- package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
- package/dist/ui-space.js +9 -10
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
- package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
- package/dist/ui-split-panel.js +107 -68
- package/dist/ui-split-panel.js.map +1 -1
- package/dist/ui-stack.editor-D69Fky6H.js +5 -0
- package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
- package/dist/ui-stack.js +12 -13
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
- package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
- package/dist/ui-statistic.js +28 -27
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
- package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
- package/dist/ui-step.editor-CYmNXrk_.js +5 -0
- package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
- package/dist/ui-step.js +62 -61
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
- package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
- package/dist/ui-sticky.js +10 -11
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
- package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
- package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
- package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
- package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
- package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
- package/dist/ui-tab.js +115 -117
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.editor-DJvfg9oG.js +5 -0
- package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
- package/dist/ui-table.js +272 -272
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
- package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
- package/dist/ui-term.editor-BMCF3jBM.js +5 -0
- package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
- package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
- package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
- package/dist/ui-terms.js +13 -12
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.editor-B6AENK13.js +5 -0
- package/dist/ui-text.editor-B6AENK13.js.map +1 -0
- package/dist/ui-text.js +37 -36
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
- package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
- package/dist/ui-theme-editor.js +448 -461
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
- package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
- package/dist/ui-title.editor-40PZSOpn.js +5 -0
- package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
- package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
- package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
- package/dist/ui-toast.js +141 -139
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
- package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
- package/dist/ui-toc.js +52 -53
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
- package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
- package/dist/ui-toolbar.js +254 -50
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
- package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
- package/dist/ui-transition.js +13 -14
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
- package/dist/ui-tree-diagram.js +128 -127
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
- package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
- package/dist/ui-tree.editor-BoQztwdz.js +5 -0
- package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
- package/dist/ui-tree.js +393 -134
- package/dist/ui-tree.js.map +1 -1
- package/dist/ui-value.editor-CYak24cr.js +5 -0
- package/dist/ui-value.editor-CYak24cr.js.map +1 -0
- package/dist/ui-video.editor-CuWtFVjR.js +5 -0
- package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
- package/dist/ui-video.js +15 -14
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
- package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
- package/dist/ui-visibility.js +25 -26
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
- package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
- package/dist/ui-zoom.js +82 -83
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +11 -2
- package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
- package/dist/vocabulary/help.generated.d.ts +11 -0
- package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
- package/package.json +3 -3
- package/dist/Dragging-CMZoLEWQ.js.map +0 -1
- package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
- package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
- package/dist/PrefStore-Qv0e5y04.js.map +0 -1
- package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
- package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
- package/dist/SitePages-CciwREek.js.map +0 -1
- package/dist/SlottedItems-Du3aJwG1.js +0 -80
- package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
- package/dist/UIButton-DFEds67r.js +0 -6
- package/dist/UIButton-DFEds67r.js.map +0 -1
- package/dist/UIInput-BodVbUoQ.js.map +0 -1
- package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
- package/dist/UILabel-DgJUBzB_.js.map +0 -1
- package/dist/UIMenu-zdcAtwTa.js +0 -42
- package/dist/UIMenu-zdcAtwTa.js.map +0 -1
- package/dist/UIRuntime-KH309p5B.js.map +0 -1
- package/dist/UISegment-CMMIW7cZ.js.map +0 -1
- package/dist/apple.palette-B4ivrNlM.js.map +0 -1
- package/dist/classic-DCTQrteU.js.map +0 -1
- package/dist/components.es-BOa_7gFF.js.map +0 -1
- package/dist/crisp-VfYZlTph.js.map +0 -1
- package/dist/crisp.theme-DRiePRdf.js +0 -6
- package/dist/crisp.theme-DRiePRdf.js.map +0 -1
- package/dist/dark-CbUdPe0a.js.map +0 -1
- package/dist/dist-BLYIGZVK.js.map +0 -1
- package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
- package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
- package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
- package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
- package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
- package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
- package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
- package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
- package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
- package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
- package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
- package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
- package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
- package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
- package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
- package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
- package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
- package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
- package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
- package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
- package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
- package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
- package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
- package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
- package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
- package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
- package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
- package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
- package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
- package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
- package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
- package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
- package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
- package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
- package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
- package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
- package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
- package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
- package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
- package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
- package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
- package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
- package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
- package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
- package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
- package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
- package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
- package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
- package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
- package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
- package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
- package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
- package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
- package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
- package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
- package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
- package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
- package/dist/fruity-BRVlgJZd.js +0 -6
- package/dist/fruity-BRVlgJZd.js.map +0 -1
- package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
- package/dist/glass-x9tbbwVq.js +0 -6
- package/dist/glass-x9tbbwVq.js.map +0 -1
- package/dist/glass.theme-24wY2wH9.js +0 -6
- package/dist/glass.theme-24wY2wH9.js.map +0 -1
- package/dist/matrix-QY2gWbJ0.js +0 -6
- package/dist/matrix-QY2gWbJ0.js.map +0 -1
- package/dist/matrix.theme-_8xtwhDq.js +0 -6
- package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
- package/dist/merlot-DOXLuUaU.js.map +0 -1
- package/dist/merlot.theme-S-QnNGsw.js +0 -6
- package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
- package/dist/midnight-BxlTQSfw.js.map +0 -1
- package/dist/midnight.theme-wXbqRYLy.js +0 -6
- package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
- package/dist/mockup-83ELBuVr.js +0 -6
- package/dist/mockup-83ELBuVr.js.map +0 -1
- package/dist/mockup.theme-DmpBgGBl.js +0 -6
- package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
- package/dist/paper-M61nUilz.js.map +0 -1
- package/dist/paper.theme-B8R5Jn5H.js +0 -6
- package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
- package/dist/persist.types-D2m6wD-S.js.map +0 -1
- package/dist/pop-CxXfytjk.js.map +0 -1
- package/dist/pop.theme-CXzv8B9x.js +0 -6
- package/dist/pop.theme-CXzv8B9x.js.map +0 -1
- package/dist/search-CzSzx7bX.js.map +0 -1
- package/dist/spell-By5Y3jKP.js +0 -6
- package/dist/spell-By5Y3jKP.js.map +0 -1
- package/dist/spell.theme-DxGj7qHx.js +0 -6
- package/dist/spell.theme-DxGj7qHx.js.map +0 -1
- package/dist/styles.en-CUUxNwHo.js.map +0 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-tab/ui-tabs.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-tabs>'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-tabs\" data-omit=\"\">\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"size\"></ui-property>\n <ui-property name=\"color\"></ui-property>\n <ui-property name=\"inverted\"></ui-property>\n <ui-property name=\"appearance\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"direction\"></ui-property>\n <ui-property name=\"fluid\"></ui-property>\n <ui-property name=\"padding\"></ui-property>\n <ui-property name=\"align\"></ui-property>\n <ui-property name=\"equal\"></ui-property>\n <ui-property name=\"attach-to\"></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=\"name\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Behaviour\" data-group=\"behaviour\">\n <ui-property name=\"activation\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Advanced\" data-group=\"advanced\">\n <ui-property name=\"history\"></ui-property>\n <ui-property name=\"parameter\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-tabs.editor-waeMoFNM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-tabs.editor-waeMoFNM.js","names":["ui_tabs_editor_default"],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-terms/ui-term.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-term>'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-term\" data-omit=\"\">\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"label\"></ui-property>\n <ui-property name=\"value\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-term.editor-BMCF3jBM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-term.editor-BMCF3jBM.js","names":["ui_term_editor_default"],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-terms/ui-terms.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-terms>'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-terms\" data-omit=\"\">\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"direction\"></ui-property>\n <ui-property name=\"spacing\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-terms.editor-BLfVVsjI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-terms.editor-BLfVVsjI.js","names":["ui_terms_editor_default"],"sources":[],"mappings":""}
|
package/dist/ui-terms.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./rolldown-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import "./rolldown-runtime-c6e9CmGy.js";
|
|
2
|
+
import { Gt as e, Jt as t, Kt as n, PartContext as r, UIComponent as i, Ut as a, Wt as o, Yt as s, cssState as c, proto as l, protoMerged as u } from "./core.js";
|
|
3
3
|
import { className as d, effect as f, getOwner as p, insert as m, readShallow as h, setAttribute as g, template as _ } from "@solidjs/web";
|
|
4
|
-
|
|
4
|
+
// src/components/ui-terms/UITerms.en.ts
|
|
5
5
|
var v = {
|
|
6
6
|
tag: "ui-terms",
|
|
7
7
|
icon: "book open",
|
|
@@ -19,6 +19,7 @@ var v = {
|
|
|
19
19
|
"details"
|
|
20
20
|
],
|
|
21
21
|
noun: "terms",
|
|
22
|
+
partOfSpeech: "structure",
|
|
22
23
|
description: "Terms list facts as a label and a value each, lined up: Suit hearts, Rank queen.",
|
|
23
24
|
attributes: [{
|
|
24
25
|
name: "direction",
|
|
@@ -51,9 +52,9 @@ var v = {
|
|
|
51
52
|
}],
|
|
52
53
|
texts: [],
|
|
53
54
|
ownsParts: ["term"]
|
|
54
|
-
}, y = "@layer ui.components.terms.types{:host{column-gap:var(--ui-terms-column-gap,var(--ui-space-l));row-gap:var(--ui-space-xs);grid-template-columns:max-content minmax(0,1fr);display:grid}:host(:state(horizontal)){flex-wrap:wrap;align-items:baseline;display:flex}}", b = /* @__PURE__ */ _("<slot>"), x, S, C, w, T, E = class _UITerms extends (w =
|
|
55
|
+
}, y = "@layer ui.components.terms.types{:host{column-gap:var(--ui-terms-column-gap,var(--ui-space-l));row-gap:var(--ui-space-xs);grid-template-columns:max-content minmax(0,1fr);display:grid}:host(:state(horizontal)){flex-wrap:wrap;align-items:baseline;display:flex}}", b = /* @__PURE__ */ _("<slot>"), x, S, C, w, T, E = class _UITerms extends (w = i, C = [l], S = [u], x = [c("horizontal")], w) {
|
|
55
56
|
constructor() {
|
|
56
|
-
super(...arguments),
|
|
57
|
+
super(...arguments), s(T, 5, this);
|
|
57
58
|
}
|
|
58
59
|
get isHorizontal() {
|
|
59
60
|
return this.direction === O;
|
|
@@ -67,10 +68,10 @@ var v = {
|
|
|
67
68
|
return e._$owner = p(), e;
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
|
-
T =
|
|
71
|
+
T = e(w), a(T, 2, "isHorizontal", x, E), a(T, 13, "vocabulary", C, E), a(T, 13, "elementSetup", S, E), o(T, E), n(E, "UITerms"), t(E, "vocabulary", s(T, 8, E, v)), s(T, 11, E), t(E, "elementSetup", s(T, 12, E, {
|
|
71
72
|
styleSheets: { terms: y },
|
|
72
73
|
delegatesFocus: !1
|
|
73
|
-
})),
|
|
74
|
+
})), s(T, 15, E);
|
|
74
75
|
var D = E, O = "horizontal", k = {
|
|
75
76
|
sm: "var(--ui-space-2xs)",
|
|
76
77
|
md: "var(--ui-space-xs)",
|
|
@@ -88,6 +89,7 @@ var D = E, O = "horizontal", k = {
|
|
|
88
89
|
"name value"
|
|
89
90
|
],
|
|
90
91
|
noun: "term",
|
|
92
|
+
partOfSpeech: "property",
|
|
91
93
|
description: "A term is one fact: a label, and its value.",
|
|
92
94
|
attributes: [{
|
|
93
95
|
name: "label",
|
|
@@ -123,9 +125,9 @@ var D = E, O = "horizontal", k = {
|
|
|
123
125
|
description: "Set while its `<ui-terms>` is `direction=\"horizontal\"`."
|
|
124
126
|
}],
|
|
125
127
|
texts: []
|
|
126
|
-
}, j = "@layer ui.components.terms.types{:host{gap:var(--ui-space-xs);align-items:baseline;display:inline-flex}:host(:state(in-terms):not(:state(in-row))){grid-column:1/-1;grid-template-columns:subgrid;display:grid}.label{color:var(--ui-terms-label-color,var(--ui-text-muted));font-weight:var(--ui-terms-label-weight,500)}.value{min-inline-size:0;color:var(--ui-terms-value-color,inherit)}}", M = /* @__PURE__ */ _("<span role=term><slot>"), N = /* @__PURE__ */ _("<span role=definition><slot>"), P, F, I, L, R, z = class _UITerm extends (L =
|
|
128
|
+
}, j = "@layer ui.components.terms.types{:host{gap:var(--ui-space-xs);align-items:baseline;display:inline-flex}:host(:state(in-terms):not(:state(in-row))){grid-column:1/-1;grid-template-columns:subgrid;display:grid}.label{color:var(--ui-terms-label-color,var(--ui-text-muted));font-weight:var(--ui-terms-label-weight,500)}.value{min-inline-size:0;color:var(--ui-terms-value-color,inherit)}}", M = /* @__PURE__ */ _("<span role=term><slot>"), N = /* @__PURE__ */ _("<span role=definition><slot>"), P, F, I, L, R, z = class _UITerm extends (L = i, I = [l], F = [u], P = [c("in-row")], L) {
|
|
127
129
|
constructor() {
|
|
128
|
-
super(...arguments),
|
|
130
|
+
super(...arguments), s(R, 5, this), t(this, "context", new r({
|
|
129
131
|
domElement: this.domElement,
|
|
130
132
|
noun: this.vocabulary.noun
|
|
131
133
|
}));
|
|
@@ -155,14 +157,13 @@ var D = E, O = "horizontal", k = {
|
|
|
155
157
|
})()];
|
|
156
158
|
}
|
|
157
159
|
};
|
|
158
|
-
R =
|
|
160
|
+
R = e(L), a(R, 2, "isInRow", P, z), a(R, 13, "vocabulary", I, z), a(R, 13, "elementSetup", F, z), o(R, z), n(z, "UITerm"), t(z, "vocabulary", s(R, 8, z, A)), s(R, 11, z), t(z, "elementSetup", s(R, 12, z, {
|
|
159
161
|
styleSheets: { term: j },
|
|
160
162
|
delegatesFocus: !1,
|
|
161
163
|
isAPart: !0
|
|
162
|
-
})),
|
|
164
|
+
})), s(R, 15, z);
|
|
163
165
|
var B = z, V = "label", H = "value";
|
|
164
166
|
D.define(), B.define();
|
|
165
|
-
//#endregion
|
|
166
167
|
export { B as UITerm, D as UITerms };
|
|
167
168
|
|
|
168
169
|
//# sourceMappingURL=ui-terms.js.map
|
package/dist/ui-terms.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-terms.js","names":["<slot />","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","_$getOwner","__name","termsCSS","this","part={this.partForName(\"label\")}","name={this.slotForName(\"label\")}","part={this.partForName(\"value\")}","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.PartContext","_$getOwner","_$readShallow","_$setAttribute","__name","termCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__decoratorStart","termsVocabulary","UITerms_default","_tmpl$$1","_isHorizontal_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UITerms","UIComponent","proto","protoMerged","cssState","HORIZONTAL","gap","SPACING","_el$","getOwner","UITerms","termVocabulary","UITerm_default","_tmpl$","_tmpl$2","_isInRow_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UITerm","PartContext","_self$","_el$2","insert","effect","readShallow","LABEL","className","_p$","t","setAttribute","a","_el$3","_el$4","VALUE","UITerm"],"sources":["../src/components/ui-terms/UITerms.en.ts","../src/components/ui-terms/UITerms.css?inline","../src/components/ui-terms/UITerms.tsx","../src/components/ui-terms/UITerm.en.ts","../src/components/ui-terms/UITerm.css?inline","../src/components/ui-terms/UITerm.tsx","../src/components/ui-terms/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-terms>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - A list of terms and what they are (epic `ui-gaps` P12): `Suit: hearts`, `Rank: queen`.\n * HTML's `<dl>`, for a drawing, which holds no native HTML.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `termsVocabulary`\n * The names of `<ui-terms>`: a grid of `<ui-term>`s, their labels in one column and values in the next.\n ****************/\nexport const termsVocabulary = {\n tag: \"ui-terms\",\n icon: \"book open\",\n topics: [\"text\", \"data display\", \"collections\"],\n aka: [\"dl\", \"definition list\", \"description list\", \"key value list\", \"properties\", \"details\"],\n noun: \"terms\",\n description: \"Terms list facts as a label and a value each, lined up: Suit hearts, Rank queen.\",\n attributes: [\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"enum\",\n values: [\"vertical\", \"horizontal\"],\n default: \"vertical\",\n description:\n \"`vertical` (the default): a term a line, the labels in one column and the values in the next. \" +\n \"`horizontal`: the terms side by side, wrapping.\"\n },\n {\n name: \"spacing\",\n group: \"layout\",\n kind: \"enum\",\n values: [\"sm\", \"md\", \"lg\"],\n default: \"md\",\n description: \"The space between terms.\"\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-term>`s.\" }],\n parts: [],\n states: [{ name: \"horizontal\", description: '`direction=\"horizontal\"`.' }],\n texts: [],\n ownsParts: [\"term\"]\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-terms>`: a grid of two columns, the terms' labels then their values.\n * - Each `<ui-term>` is a subgrid row of it (`UITerm.css`), so every value starts at the same place.\n * - `direction=\"horizontal\"` (`:state(horizontal)`): the terms side by side, wrapping.\n * - The gaps (`spacing`) are a `:host` rule the component writes (`UITerms.hostLayout`).\n */\n\n@layer ui.components.terms.types {\n :host {\n display: grid;\n grid-template-columns: max-content minmax(0, 1fr);\n column-gap: var(--ui-terms-column-gap, var(--ui-space-l));\n row-gap: var(--ui-space-xs);\n }\n :host(:state(horizontal)) {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n }\n}\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { termsVocabulary } from \"./UITerms.en\"\n\nimport termsCSS from \"./UITerms.css?inline\"\n\n/****************\n * ### `<ui-terms>`\n * The component behind `<ui-terms>`: a list of facts, a label and a value each (epic `ui-gaps` P12).\n *\n * - A grid of two columns: each `<ui-term>` a row of it, so every value starts at the same place.\n * - `direction=\"horizontal\"`: the terms side by side, wrapping.\n * - It owns its terms (`ownsParts`): each knows it's in one, and whether it's a row.\n * - HTML's `<dl>`, `<dt>` and `<dd>` can't reach across each term's own shadow root, so the terms carry the ARIA\n * roles themselves (`term`, `definition`).\n ****************/\nexport class UITerms extends E.UIComponent<typeof termsVocabulary> {\n @E.proto static vocabulary = termsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { terms: termsCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Side by side, not a term a line. */\n @E.cssState(\"horizontal\")\n get isHorizontal(): boolean {\n return this.direction === HORIZONTAL\n }\n\n /** Its `:host` rule: the gaps `spacing` asks for. */\n protected get hostLayout(): string {\n const gap = SPACING[this.spacing as keyof typeof SPACING] ?? SPACING.md\n return this.isHorizontal ? `gap: ${gap} var(--ui-space-l)` : `row-gap: ${gap}`\n }\n\n render(): JSX.Element {\n return <slot />\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UITerms extends E.AttributeValues<typeof termsVocabulary> {}\n\n/** `direction`'s row. */\nconst HORIZONTAL = \"horizontal\"\n\n/** `spacing` => the gap between terms. */\nconst SPACING = { sm: \"var(--ui-space-2xs)\", md: \"var(--ui-space-xs)\", lg: \"var(--ui-space-m)\" } as const\n","/**\n * The English vocabulary of `<ui-term>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - One fact (epic `ui-gaps` P12): `<ui-term label=\"Suit\" value=\"hearts\">`, or its label and value written\n * inside it (`slot=\"label\"`, then the value), as HTML's `<dt>` and `<dd>`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `termVocabulary`\n * The names of `<ui-term>`: `<span role=\"term\" part=\"label\">` then `<span role=\"definition\" part=\"value\">`.\n ****************/\nexport const termVocabulary = {\n tag: \"ui-term\",\n icon: \"book\",\n topics: [\"text\", \"data display\"],\n aka: [\"dt\", \"dd\", \"term\", \"key value\", \"property\", \"name value\"],\n noun: \"term\",\n description: \"A term is one fact: a label, and its value.\",\n attributes: [\n { name: \"label\", group: \"content\", kind: \"string\", description: \"What it is: `Suit`.\" },\n { name: \"value\", group: \"content\", kind: \"string\", description: \"Its value: `hearts`. Or write it inside.\" }\n ],\n events: [],\n slots: [\n { name: \"\", description: \"The value, when it's more than text: an icon, a link, a label.\" },\n { name: \"label\", description: \"The label, when it's more than text.\" }\n ],\n parts: [\n { name: \"label\", description: \"The label (`role=term`).\" },\n { name: \"value\", description: \"The value (`role=definition`).\" }\n ],\n states: [\n { name: \"in-terms\", description: \"Set while it's in a `<ui-terms>`.\" },\n { name: \"in-row\", description: 'Set while its `<ui-terms>` is `direction=\"horizontal\"`.' }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-term>`: a label, then its value.\n * - Shadow markup: `<span class=\"label\" part=\"label\" role=\"term\">` then\n * `<span class=\"value\" part=\"value\" role=\"definition\">`, each round its slot.\n * - In a `<ui-terms>` (`:state(in-terms)`): a subgrid row of the group's two columns.\n * Alone, or in a horizontal group (`:state(in-row)`): the two on one line.\n * - The look: the label muted, as a field's label; the value plain.\n * - Public tokens (`--ui-terms-label-color`, `--ui-terms-label-weight`, `--ui-terms-value-color`) are NEVER declared\n * here: each is read where it's used.\n */\n\n@layer ui.components.terms.types {\n :host {\n display: inline-flex;\n gap: var(--ui-space-xs);\n align-items: baseline;\n }\n :host(:state(in-terms):not(:state(in-row))) {\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n }\n .label {\n color: var(--ui-terms-label-color, var(--ui-text-muted));\n font-weight: var(--ui-terms-label-weight, 500);\n }\n .value {\n min-inline-size: 0;\n color: var(--ui-terms-value-color, inherit);\n }\n}\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { termVocabulary } from \"./UITerm.en\"\nimport type { UITerms } from \"./UITerms\"\n\nimport termCSS from \"./UITerm.css?inline\"\n\n/****************\n * ### `<ui-term>`\n * The component behind `<ui-term>`: one fact, a label and its value (epic `ui-gaps` P12).\n *\n * - `<ui-term label=\"Suit\" value=\"hearts\">`, or written inside: `<ui-term><b slot=\"label\">Suit</b>hearts</ui-term>`.\n * - Its shadow: `<span role=\"term\" part=\"label\">` then `<span role=\"definition\" part=\"value\">`, each round its slot,\n * the attribute its slot's default.\n * - In a `<ui-terms>` (its owner, `PartContext`): a row of the group's two columns;\n * in a horizontal group, or alone: the two on one line.\n ****************/\nexport class UITerm extends E.UIComponent<typeof termVocabulary> {\n @E.proto static vocabulary = termVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { term: termCSS },\n delegatesFocus: false,\n isAPart: true\n } satisfies Partial<E.ElementSetup>\n\n /** The `<ui-terms>` it's in, if any: `:state(in-terms)` follows it. */\n readonly context = new E.PartContext({ domElement: this.domElement, noun: this.vocabulary.noun })\n\n /** In a horizontal group: on one line. */\n @E.cssState(\"in-row\")\n get isInRow(): boolean {\n return !!E.PartContext.componentFor<UITerms>(this.context.owner)?.isHorizontal\n }\n\n render(): JSX.Element {\n return (\n <>\n <span class={LABEL} part={this.partForName(\"label\")} role=\"term\">\n <slot name={this.slotForName(\"label\")}>{this.label}</slot>\n </span>\n <span class={VALUE} part={this.partForName(\"value\")} role=\"definition\">\n <slot>{this.value}</slot>\n </span>\n </>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UITerm extends E.AttributeValues<typeof termVocabulary> {}\n\n/** The label's class. */\nconst LABEL = \"label\"\n\n/** The value's class. */\nconst VALUE = \"value\"\n","/**\n * The terms family: defines `<ui-terms>` and `<ui-term>`, and exports their components, `UITerms` and `UITerm`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-terms` entry (its size is in `notes/report.md`).\n * - The group is defined FIRST: a group already in the page then has its component when its terms look it up.\n */\n\nimport { UITerms } from \"./UITerms\"\nimport { UITerm } from \"./UITerm\"\n\nUITerms.define()\nUITerm.define()\n\nexport { UITerms, UITerm }\n"],"mappings":";;;;AAcA,IAAaiC,IAAkB;CAC7B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAQ;EAAgB;CAAa;CAC9C,KAAK;EAAC;EAAM;EAAmB;EAAoB;EAAkB;EAAc;CAAS;CAC5F,MAAM;CACN,aAAa;CACb,YAAY,CACV;EACE,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AAAoC,GAAA,QAAA,GACtDjC,EADEiC,GACK,cAAa9B,EAApB6B,GAAA,GADEC,GACkBT,CAAA,CAAA,GAApBrB,EAAA6B,GAAA,IADEC,CAAA,GAEIjC,EAFJiC,GAEW,gBAAe9B,EAAtB6B,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,MAAMnC,EAAQ;CAC7B,gBAAgB;CAChB,SAAS;AACX,CAAA,CAAA,GAJeK,EAAA6B,GAAA,IAFJC,CAAA;AAAN,IAAMgB,IAANhB,GAmCDO,IAAQ,SAGRQ,IAAQ;AC9CdzB,EAAQ,OAAO,GACf0B,EAAO,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-terms.js","names":["<slot />","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","_$getOwner","__name","termsCSS","this","part={this.partForName(\"label\")}","name={this.slotForName(\"label\")}","part={this.partForName(\"value\")}","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.PartContext","_$getOwner","_$readShallow","_$setAttribute","__name","termCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","termsVocabulary","UITerms_default","_tmpl$$1","_isHorizontal_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UITerms","UIComponent","proto","protoMerged","cssState","HORIZONTAL","gap","SPACING","_el$","getOwner","UITerms","termVocabulary","UITerm_default","_tmpl$","_tmpl$2","_isInRow_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UITerm","PartContext","_self$","_el$2","insert","effect","readShallow","LABEL","className","_p$","t","setAttribute","a","_el$3","_el$4","VALUE","UITerm"],"sources":["../src/components/ui-terms/UITerms.en.ts","../src/components/ui-terms/UITerms.tsx","../src/components/ui-terms/UITerm.en.ts","../src/components/ui-terms/UITerm.tsx","../src/components/ui-terms/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-terms>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - A list of terms and what they are (epic `ui-gaps` P12): `Suit: hearts`, `Rank: queen`.\n * HTML's `<dl>`, for a drawing, which holds no native HTML.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `termsVocabulary`\n * The names of `<ui-terms>`: a grid of `<ui-term>`s, their labels in one column and values in the next.\n ****************/\nexport const termsVocabulary = {\n tag: \"ui-terms\",\n icon: \"book open\",\n topics: [\"text\", \"data display\", \"collections\"],\n aka: [\"dl\", \"definition list\", \"description list\", \"key value list\", \"properties\", \"details\"],\n noun: \"terms\",\n partOfSpeech: \"structure\",\n description: \"Terms list facts as a label and a value each, lined up: Suit hearts, Rank queen.\",\n attributes: [\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"enum\",\n values: [\"vertical\", \"horizontal\"],\n default: \"vertical\",\n description:\n \"`vertical` (the default): a term a line, the labels in one column and the values in the next. \" +\n \"`horizontal`: the terms side by side, wrapping.\"\n },\n {\n name: \"spacing\",\n group: \"layout\",\n kind: \"enum\",\n values: [\"sm\", \"md\", \"lg\"],\n default: \"md\",\n description: \"The space between terms.\"\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-term>`s.\" }],\n parts: [],\n states: [{ name: \"horizontal\", description: '`direction=\"horizontal\"`.' }],\n texts: [],\n ownsParts: [\"term\"]\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { termsVocabulary } from \"./UITerms.en\"\n\nimport termsCSS from \"./UITerms.css?inline\"\n\n/****************\n * ### `<ui-terms>`\n * The component behind `<ui-terms>`: a list of facts, a label and a value each (epic `ui-gaps` P12).\n *\n * - A grid of two columns: each `<ui-term>` a row of it, so every value starts at the same place.\n * - `direction=\"horizontal\"`: the terms side by side, wrapping.\n * - It owns its terms (`ownsParts`): each knows it's in one, and whether it's a row.\n * - HTML's `<dl>`, `<dt>` and `<dd>` can't reach across each term's own shadow root, so the terms carry the ARIA\n * roles themselves (`term`, `definition`).\n ****************/\nexport class UITerms extends E.UIComponent<typeof termsVocabulary> {\n @E.proto static vocabulary = termsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { terms: termsCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Side by side, not a term a line. */\n @E.cssState(\"horizontal\")\n get isHorizontal(): boolean {\n return this.direction === HORIZONTAL\n }\n\n /** Its `:host` rule: the gaps `spacing` asks for. */\n protected get hostLayout(): string {\n const gap = SPACING[this.spacing as keyof typeof SPACING] ?? SPACING.md\n return this.isHorizontal ? `gap: ${gap} var(--ui-space-l)` : `row-gap: ${gap}`\n }\n\n render(): JSX.Element {\n return <slot />\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UITerms extends E.AttributeValues<typeof termsVocabulary> {}\n\n/** `direction`'s row. */\nconst HORIZONTAL = \"horizontal\"\n\n/** `spacing` => the gap between terms. */\nconst SPACING = { sm: \"var(--ui-space-2xs)\", md: \"var(--ui-space-xs)\", lg: \"var(--ui-space-m)\" } as const\n","/**\n * The English vocabulary of `<ui-term>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - One fact (epic `ui-gaps` P12): `<ui-term label=\"Suit\" value=\"hearts\">`, or its label and value written\n * inside it (`slot=\"label\"`, then the value), as HTML's `<dt>` and `<dd>`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `termVocabulary`\n * The names of `<ui-term>`: `<span role=\"term\" part=\"label\">` then `<span role=\"definition\" part=\"value\">`.\n ****************/\nexport const termVocabulary = {\n tag: \"ui-term\",\n icon: \"book\",\n topics: [\"text\", \"data display\"],\n aka: [\"dt\", \"dd\", \"term\", \"key value\", \"property\", \"name value\"],\n noun: \"term\",\n partOfSpeech: \"property\",\n description: \"A term is one fact: a label, and its value.\",\n attributes: [\n { name: \"label\", group: \"content\", kind: \"string\", description: \"What it is: `Suit`.\" },\n { name: \"value\", group: \"content\", kind: \"string\", description: \"Its value: `hearts`. Or write it inside.\" }\n ],\n events: [],\n slots: [\n { name: \"\", description: \"The value, when it's more than text: an icon, a link, a label.\" },\n { name: \"label\", description: \"The label, when it's more than text.\" }\n ],\n parts: [\n { name: \"label\", description: \"The label (`role=term`).\" },\n { name: \"value\", description: \"The value (`role=definition`).\" }\n ],\n states: [\n { name: \"in-terms\", description: \"Set while it's in a `<ui-terms>`.\" },\n { name: \"in-row\", description: 'Set while its `<ui-terms>` is `direction=\"horizontal\"`.' }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { termVocabulary } from \"./UITerm.en\"\nimport type { UITerms } from \"./UITerms\"\n\nimport termCSS from \"./UITerm.css?inline\"\n\n/****************\n * ### `<ui-term>`\n * The component behind `<ui-term>`: one fact, a label and its value (epic `ui-gaps` P12).\n *\n * - `<ui-term label=\"Suit\" value=\"hearts\">`, or written inside: `<ui-term><b slot=\"label\">Suit</b>hearts</ui-term>`.\n * - Its shadow: `<span role=\"term\" part=\"label\">` then `<span role=\"definition\" part=\"value\">`, each round its slot,\n * the attribute its slot's default.\n * - In a `<ui-terms>` (its owner, `PartContext`): a row of the group's two columns;\n * in a horizontal group, or alone: the two on one line.\n ****************/\nexport class UITerm extends E.UIComponent<typeof termVocabulary> {\n @E.proto static vocabulary = termVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { term: termCSS },\n delegatesFocus: false,\n isAPart: true\n } satisfies Partial<E.ElementSetup>\n\n /** The `<ui-terms>` it's in, if any: `:state(in-terms)` follows it. */\n readonly context = new E.PartContext({ domElement: this.domElement, noun: this.vocabulary.noun })\n\n /** In a horizontal group: on one line. */\n @E.cssState(\"in-row\")\n get isInRow(): boolean {\n return !!E.PartContext.componentFor<UITerms>(this.context.owner)?.isHorizontal\n }\n\n render(): JSX.Element {\n return (\n <>\n <span class={LABEL} part={this.partForName(\"label\")} role=\"term\">\n <slot name={this.slotForName(\"label\")}>{this.label}</slot>\n </span>\n <span class={VALUE} part={this.partForName(\"value\")} role=\"definition\">\n <slot>{this.value}</slot>\n </span>\n </>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UITerm extends E.AttributeValues<typeof termVocabulary> {}\n\n/** The label's class. */\nconst LABEL = \"label\"\n\n/** The value's class. */\nconst VALUE = \"value\"\n","/**\n * The terms family: defines `<ui-terms>` and `<ui-term>`, and exports their components, `UITerms` and `UITerm`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-terms` entry (its size is in `notes/report.md`).\n * - The group is defined FIRST: a group already in the page then has its component when its terms look it up.\n */\n\nimport { UITerms } from \"./UITerms\"\nimport { UITerm } from \"./UITerm\"\n\nUITerms.define()\nUITerm.define()\n\nexport { UITerms, UITerm }\n"],"mappings":";;;;AAcA,IAAaiC,IAAkB;CAC7B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAQ;EAAgB;CAAa;CAC9C,KAAK;EAAC;EAAM;EAAmB;EAAoB;EAAkB;EAAc;CAAS;CAC5F,MAAM;CACN,cAAc;CACd,aAAa;CACb,YAAY,CACV;EACE,MAAM;EACN,OAAO;EACP,MAAM;EACN,QAAQ,CAAC,YAAY,YAAY;EACjC,SAAS;EACT,aACE;CAEJ,GACA;EACE,MAAM;EACN,OAAO;EACP,MAAM;EACN,QAAQ;GAAC;GAAM;GAAM;EAAI;EACzB,SAAS;EACT,aAAa;CACf,CACF;CACA,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,MAAM;EAAI,aAAa;CAAgB,CAAC;CAClD,OAAO,CAAC;CACR,QAAQ,CAAC;EAAE,MAAM;EAAc,aAAa;CAA4B,CAAC;CACzE,OAAO,CAAC;CACR,WAAW,CAAC,MAAM;AACpB,G,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AAO,GACf0B,EAAO,OAAO"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-text/ui-text.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-text>'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-text\" data-omit=\"\">\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"size\"></ui-property>\n <ui-property name=\"color\"></ui-property>\n <ui-property name=\"inverted\"></ui-property>\n <ui-property name=\"bold\"></ui-property>\n <ui-property name=\"heavy\"></ui-property>\n <ui-property name=\"italic\"></ui-property>\n <ui-property name=\"underline\"></ui-property>\n <ui-property name=\"strikethrough\"></ui-property>\n <ui-property name=\"highlight\"></ui-property>\n <ui-property name=\"subscript\"></ui-property>\n <ui-property name=\"superscript\"></ui-property>\n <ui-property name=\"all-caps\"></ui-property>\n <ui-property name=\"title-caps\"></ui-property>\n <ui-property name=\"headline\"></ui-property>\n <ui-property name=\"subhead\"></ui-property>\n <ui-property name=\"serif\"></ui-property>\n <ui-property name=\"sans-serif\"></ui-property>\n <ui-property name=\"typewriter\"></ui-property>\n <ui-property name=\"code\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"paragraph\"></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=\"state\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-text.editor-B6AENK13.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-text.editor-B6AENK13.js","names":["ui_text_editor_default"],"sources":[],"mappings":""}
|
package/dist/ui-text.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import { Show as
|
|
4
|
-
import { Dynamic as
|
|
5
|
-
|
|
6
|
-
var
|
|
1
|
+
import "./rolldown-runtime-c6e9CmGy.js";
|
|
2
|
+
import { Gt as e, Jt as t, Kt as n, NodeType as r, S as i, UIComponent as a, Ut as o, Wt as s, Yt as c, b as ee, cssState as l, onChange as te, proto as u, protoMerged as d, qt as f, state as p, watches as m, x as h } from "./core.js";
|
|
3
|
+
import { Show as g } from "solid-js";
|
|
4
|
+
import { Dynamic as _, claimElement as v, className as y, createComponent as b, effect as x, getOwner as S, insert as C, readShallow as w, setAttribute as T, template as E } from "@solidjs/web";
|
|
5
|
+
// src/components/ui-text/UIText.en.ts
|
|
6
|
+
var D = {
|
|
7
7
|
tag: "ui-text",
|
|
8
|
-
icon: "
|
|
8
|
+
icon: "fa7-free:t",
|
|
9
9
|
snippet: "<ui-text>Some words</ui-text>",
|
|
10
10
|
topics: [
|
|
11
11
|
"text",
|
|
@@ -27,6 +27,7 @@ var T = {
|
|
|
27
27
|
"code"
|
|
28
28
|
],
|
|
29
29
|
noun: "text",
|
|
30
|
+
partOfSpeech: "property",
|
|
30
31
|
description: "A text is used to style some inline text with a simple color, or to hold a paragraph.",
|
|
31
32
|
attributes: [
|
|
32
33
|
{
|
|
@@ -185,17 +186,17 @@ var T = {
|
|
|
185
186
|
description: "Set while it's a paragraph (`paragraph`)."
|
|
186
187
|
}],
|
|
187
188
|
texts: []
|
|
188
|
-
},
|
|
189
|
+
}, O = "@layer ui.components.text.types{:host{--ui-scale:initial;--ui-color:initial;--ui-color-text:initial;--ui-color-inverted:initial;display:contents}:is(span,a,p).ui.text{--_ui-text-line-height:var(--ui-text-line-height,1);--_ui-text-disabled-opacity:var(--ui-text-disabled-opacity,var(--ui-disabled-opacity));--_ui-text-link-color:var(--ui-text-link-color,var(--ui-link));--_ui-text-link-hover-color:var(--ui-text-link-hover-color,var(--ui-link-hover));--_ui-text-code-background:var(--ui-text-code-background,var(--ui-surface-strong));--_ui-text-highlight-background:var(--ui-text-highlight-background,light-dark(oklch(from var(--ui-yellow) .92 calc(c * .55) h),oklch(from var(--ui-yellow) .38 calc(c * .6) h)));--_ui-text-size-mini:var(--ui-text-size-mini,.4);--_ui-text-size-tiny:var(--ui-text-size-tiny,.5);--_ui-text-size-small:var(--ui-text-size-small,.75);--_ui-text-size-large:var(--ui-text-size-large,1.5);--_ui-text-size-big:var(--ui-text-size-big,2);--_ui-text-size-huge:var(--ui-text-size-huge,4);--_ui-text-size-massive:var(--ui-text-size-massive,8);--ui-size-mini:var(--_ui-text-size-mini);--ui-size-tiny:var(--_ui-text-size-tiny);--ui-size-small:var(--_ui-text-size-small);--ui-size-large:var(--_ui-text-size-large);--ui-size-big:var(--_ui-text-size-big);--ui-size-huge:var(--_ui-text-size-huge);--ui-size-massive:var(--_ui-text-size-massive);color:var(--ui-color-text,inherit);font-size:calc(1em * var(--ui-scale,1));line-height:var(--_ui-text-line-height)}p.ui.text{line-height:var(--ui-line-height);margin-block:0 1em}:host(:last-child)>p.ui.text{margin-block-end:0}:host(:state(lines))>p.ui.text{white-space:pre-line}a.ui.text,p.ui.text>a{color:var(--ui-color-text,var(--_ui-text-link-color));text-underline-offset:.15em;text-decoration-line:underline;text-decoration-thickness:.06em}a.ui.text:hover,p.ui.text>a:hover{color:var(--ui-color-text,var(--_ui-text-link-hover-color))}:host(:state(icon-only))>a.ui.text{white-space:nowrap;margin-inline-start:var(--_link-icon-gap,0)}a.ui.text{--_ui-icon-owner-size:initial;--_ui-icon-owner-margin:0;--_ui-icon-owner-display:initial;--_ui-icon-owner-align:initial}:host(:state(icon-only))>a.ui.text:before{content:\"\"}a.ui.text:focus-visible,p.ui.text>a:focus-visible{outline-offset:1px;border-radius:2px}.ui.text code{font-family:var(--ui-font-family-mono);background-color:var(--_ui-text-code-background);border-radius:var(--ui-radius-s);padding:.125em .375em;font-size:.875em}.ui.text mark{color:inherit;background-color:var(--_ui-text-highlight-background)}}@layer ui.components.text.content;@layer ui.components.text.variations{:is(span,p).ui.inverted.text{color:var(--ui-color-inverted,inherit)}}@layer ui.components.text.states{:is(span,p).ui.disabled.text{opacity:var(--_ui-text-disabled-opacity)}}", ne = /* @__PURE__ */ E("<a>"), re = /* @__PURE__ */ E("<p>"), ie = /* @__PURE__ */ E("<slot>"), k, A, j, M, N, P, F, I, L = class _UIText extends (P = a, N = [u], M = [d], j = [l("lines"), p], A = [te("paragraph", "isConnected")], k = [m({
|
|
189
190
|
childList: !0,
|
|
190
191
|
subtree: !0,
|
|
191
192
|
characterData: !0
|
|
192
193
|
})], P) {
|
|
193
194
|
constructor() {
|
|
194
|
-
super(...arguments),
|
|
195
|
+
super(...arguments), c(F, 5, this), f(this, I, c(F, 8, this, !1)), c(F, 11, this);
|
|
195
196
|
}
|
|
196
197
|
render() {
|
|
197
198
|
let e = this;
|
|
198
|
-
return
|
|
199
|
+
return b(g, {
|
|
199
200
|
get when() {
|
|
200
201
|
return e.paragraph;
|
|
201
202
|
},
|
|
@@ -203,8 +204,8 @@ var T = {
|
|
|
203
204
|
return _UIText.inlineBox(e);
|
|
204
205
|
},
|
|
205
206
|
get children() {
|
|
206
|
-
var t =
|
|
207
|
-
return
|
|
207
|
+
var t = re();
|
|
208
|
+
return C(t, b(g, {
|
|
208
209
|
get when() {
|
|
209
210
|
return e.linkTo;
|
|
210
211
|
},
|
|
@@ -212,19 +213,19 @@ var T = {
|
|
|
212
213
|
return _UIText.styled(e.fontStates);
|
|
213
214
|
},
|
|
214
215
|
get children() {
|
|
215
|
-
var t =
|
|
216
|
-
return
|
|
216
|
+
var t = ne(), n = S();
|
|
217
|
+
return C(t, () => _UIText.styled(e.fontStates)), x(() => ({
|
|
217
218
|
e: e.linkTo,
|
|
218
219
|
t: e.linkTarget
|
|
219
220
|
}), ({ e, t: r }, i) => {
|
|
220
|
-
e !== i?.e &&
|
|
221
|
+
e !== i?.e && T(t, "href", e), r !== i?.t && T(t, "target", r), v(t, n);
|
|
221
222
|
}), t;
|
|
222
223
|
}
|
|
223
|
-
})),
|
|
224
|
-
e:
|
|
224
|
+
})), x(() => ({
|
|
225
|
+
e: w(e.rootClass),
|
|
225
226
|
t: e.partForName("text")
|
|
226
227
|
}), ({ e, t: n }, r) => {
|
|
227
|
-
|
|
228
|
+
y(t, e, r?.e), n !== r?.t && T(t, "part", n);
|
|
228
229
|
}), t;
|
|
229
230
|
}
|
|
230
231
|
});
|
|
@@ -243,7 +244,7 @@ var T = {
|
|
|
243
244
|
"all-caps": this.allCaps,
|
|
244
245
|
"title-caps": this.titleCaps
|
|
245
246
|
}, t = super.fontStates;
|
|
246
|
-
for (let n of
|
|
247
|
+
for (let n of ee) e[n] && (t[`font-${n}`] = !0);
|
|
247
248
|
let { family: n } = this;
|
|
248
249
|
for (let e of W) t[`font-${e}`] = e === n;
|
|
249
250
|
return t;
|
|
@@ -275,7 +276,7 @@ var T = {
|
|
|
275
276
|
this.hasLineBreaks = !0;
|
|
276
277
|
}
|
|
277
278
|
static inlineBox(e) {
|
|
278
|
-
return
|
|
279
|
+
return b(_, {
|
|
279
280
|
get component() {
|
|
280
281
|
return e.linkTo ? "a" : "span";
|
|
281
282
|
},
|
|
@@ -297,12 +298,12 @@ var T = {
|
|
|
297
298
|
});
|
|
298
299
|
}
|
|
299
300
|
static styled(e) {
|
|
300
|
-
var t =
|
|
301
|
-
t._$owner =
|
|
301
|
+
var t = ie();
|
|
302
|
+
t._$owner = S();
|
|
302
303
|
let n = t;
|
|
303
|
-
for (let t of [...
|
|
304
|
+
for (let t of [...i].reverse()) {
|
|
304
305
|
let r = G[t];
|
|
305
|
-
r && e[`font-${t}`] && (n =
|
|
306
|
+
r && e[`font-${t}`] && (n = b(_, {
|
|
306
307
|
component: r,
|
|
307
308
|
children: n
|
|
308
309
|
}));
|
|
@@ -310,14 +311,14 @@ var T = {
|
|
|
310
311
|
return n;
|
|
311
312
|
}
|
|
312
313
|
};
|
|
313
|
-
F =
|
|
314
|
-
styleSheets: { text:
|
|
314
|
+
F = e(P), I = /* @__PURE__ */ new WeakMap(), o(F, 4, "hasLineBreaks", j, L, I), o(F, 1, "onParagraphChanged", A, L), o(F, 1, "onTextChanged", k, L), o(F, 13, "vocabulary", N, L), o(F, 13, "elementSetup", M, L), s(F, L), n(L, "UIText"), t(L, "vocabulary", c(F, 12, L, D)), c(F, 15, L), t(L, "elementSetup", c(F, 16, L, {
|
|
315
|
+
styleSheets: { text: O },
|
|
315
316
|
delegatesFocus: !1,
|
|
316
317
|
disabled: "its own",
|
|
317
318
|
link: "its own",
|
|
318
319
|
cssStates: ["paragraph"]
|
|
319
|
-
})),
|
|
320
|
-
var R = L, z = /* @__PURE__ */ new WeakMap(), B = /[ \t]*\n(?:[ \t]*\n)+[ \t]*/g, V = /[ \t]*\n[ \t]*/g, H = "\0", U = /* @__PURE__ */ new Set(["script", "style"]), W = ["code", ...
|
|
320
|
+
})), c(F, 19, L);
|
|
321
|
+
var R = L, z = /* @__PURE__ */ new WeakMap(), B = /[ \t]*\n(?:[ \t]*\n)+[ \t]*/g, V = /[ \t]*\n[ \t]*/g, H = "\0", U = /* @__PURE__ */ new Set(["script", "style"]), W = ["code", ...h], G = {
|
|
321
322
|
bold: "strong",
|
|
322
323
|
heavy: "strong",
|
|
323
324
|
italic: "em",
|
|
@@ -341,6 +342,7 @@ var R = L, z = /* @__PURE__ */ new WeakMap(), B = /[ \t]*\n(?:[ \t]*\n)+[ \t]*/g
|
|
|
341
342
|
"text link"
|
|
342
343
|
],
|
|
343
344
|
noun: "text",
|
|
345
|
+
partOfSpeech: "action",
|
|
344
346
|
description: "A link takes the reader somewhere else from inside a sentence.",
|
|
345
347
|
attributes: [
|
|
346
348
|
{
|
|
@@ -385,31 +387,30 @@ var R = L, z = /* @__PURE__ */ new WeakMap(), B = /[ \t]*\n(?:[ \t]*\n)+[ \t]*/g
|
|
|
385
387
|
description: "It holds only an icon: it never wraps alone onto a line of its own, and, in a header, keeps a small gap from the word before it."
|
|
386
388
|
}],
|
|
387
389
|
texts: []
|
|
388
|
-
}, q, J, Y, X, Z, Q = class _UILink extends (X =
|
|
390
|
+
}, q, J, Y, X, Z, Q = class _UILink extends (X = a, Y = [u], J = [d], q = [l("icon-only"), m({
|
|
389
391
|
childList: !0,
|
|
390
392
|
characterData: !0,
|
|
391
393
|
subtree: !0
|
|
392
394
|
})], X) {
|
|
393
395
|
constructor() {
|
|
394
|
-
super(...arguments),
|
|
396
|
+
super(...arguments), c(Z, 5, this);
|
|
395
397
|
}
|
|
396
398
|
get isIconOnly() {
|
|
397
|
-
let
|
|
398
|
-
return
|
|
399
|
+
let e = [...this.domElement.childNodes], t = /* @__PURE__ */ n((e) => e.nodeType === r.element && a.registry.definitions.get(e.localName)?.vocabulary.noun === ae, "isIcon"), i = /* @__PURE__ */ n((e) => e.nodeType === r.text && !e.textContent?.trim(), "isBlank");
|
|
400
|
+
return e.some(t) && e.every((e) => t(e) || i(e));
|
|
399
401
|
}
|
|
400
402
|
render() {
|
|
401
403
|
return R.inlineBox(this);
|
|
402
404
|
}
|
|
403
405
|
};
|
|
404
|
-
Z =
|
|
405
|
-
styleSheets: { text:
|
|
406
|
+
Z = e(X), o(Z, 2, "isIconOnly", q, Q), o(Z, 13, "vocabulary", Y, Q), o(Z, 13, "elementSetup", J, Q), s(Z, Q), n(Q, "UILink"), t(Q, "vocabulary", c(Z, 8, Q, K)), c(Z, 11, Q), t(Q, "elementSetup", c(Z, 12, Q, {
|
|
407
|
+
styleSheets: { text: O },
|
|
406
408
|
delegatesFocus: !1,
|
|
407
409
|
disabled: "its own",
|
|
408
410
|
link: "its own"
|
|
409
|
-
})),
|
|
411
|
+
})), c(Z, 15, Q);
|
|
410
412
|
var $ = Q, ae = "icon";
|
|
411
413
|
R.define(), $.define();
|
|
412
|
-
//#endregion
|
|
413
414
|
export { $ as UILink, R as UIText };
|
|
414
415
|
|
|
415
416
|
//# sourceMappingURL=ui-text.js.map
|
package/dist/ui-text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-text.js","names":["<Show when={this.paragraph} fallback={_UIText.inlineBox(this)}>\n <p class={this.rootClass} part={this.partForName(\"text\")}>\n <Show when={this.linkTo} fallback={_UIText.styled(this.fontStates)}>\n <a href={this.linkTo} target={this.linkTarget}>\n {_UIText.styled(this.fontStates)}\n </a>\n </Show>\n </p>\n </Show>","this","<Show when={this.linkTo} fallback={_UIText.styled(this.fontStates)}>\n <a href={this.linkTo} target={this.linkTarget}>\n {_UIText.styled(this.fontStates)}\n </a>\n </Show>","target={this.linkTarget}","<a href={this.linkTo} target={this.linkTarget}>\n {_UIText.styled(this.fontStates)}\n </a>","part={this.partForName(\"text\")}","<p class={this.rootClass} part={this.partForName(\"text\")}>\n <Show when={this.linkTo} fallback={_UIText.styled(this.fontStates)}>\n <a href={this.linkTo} target={this.linkTarget}>\n {_UIText.styled(this.fontStates)}\n </a>\n </Show>\n </p>","<Dynamic\n component={component.linkTo ? \"a\" : \"span\"}\n class={component.rootClass}\n part={component.partForName(\"text\")}\n href={component.linkTo}\n target={component.linkTarget}\n >\n {_UIText.styled(component.fontStates)}\n </Dynamic>","<slot />","<Dynamic component={tag}>{inner}</Dynamic>","component={tag}","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.state","E.onChange","E.watches","_$createComponent","_$getOwner","_$setAttribute","_$readShallow","UIT.FontFaces","UIT.FontWords","inner","__name","textCSS","UIT.FontFamilies","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.watches","__name","textCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","FontWords","__runInitializers","__privateAdd","FontFaces","FontFamilies","__decoratorStart","getOwner$1","textVocabulary","UIText_default","_tmpl$","_tmpl$2","_tmpl$3","_onTextChanged_dec","_onParagraphChanged_dec","_hasLineBreaks_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_hasLineBreaks","_UIText","UIComponent","proto","protoMerged","cssState","state","onChange","watches","_self$","createComponent","Show","_el$","insert","_el$2","_o$","effect","_p$","setAttribute","t","claimElement","readShallow","className","faces","states","face","each","TEXT_FAMILIES","family","inFont","bare","paragraph","isConnected","walker","node","BROKEN_TEXT","RAW_TEXT_PARENTS","text","BLANK_LINES","BREAK_MARK","LINE_BREAK","Dynamic","component","\"class\"","_el$3","content","word","tag","FONT_ELEMENTS","UIText","linkVocabulary","_isIconOnly_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UILink","nodes","isIcon","NodeType","ICON","isBlank","UILink"],"sources":["../src/components/ui-text/UIText.en.ts","../src/components/ui-text/UIText.css?inline","../src/components/ui-text/UIText.tsx","../src/components/ui-text/UILink.en.ts","../src/components/ui-text/UILink.tsx","../src/components/ui-text/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-text>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words, in Fomantic's order (`ClassBuilder`):\n * `<ui-text size=\"large\" color=\"red\" inverted>` => `ui large red inverted text`;\n * `<ui-text state=\"error\">` => `ui error text`.\n * - Sizes are relative to the surrounding text, on Fomantic's text ladder (`mini` 0.4em ... `massive` 8em).\n * - How its letters look are bare attributes, as styling is what a text is FOR (epic `elemental-spell` P26):\n * - faces, any together: `<ui-text bold italic>`\n * - a family from the theme, one at a time: `headline`, `subhead`, `serif`, `sans-serif`, `typewriter`, `code`\n * - every other tag takes the faces as the shared `font` (`font=\"bold italic\"`); `<ui-text font>` still works\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `textVocabulary`\n * The names of `<ui-text>`, inline text: `<span class=\"ui … text\" part=\"text\">` around a slot.\n ****************/\nexport const textVocabulary = {\n tag: \"ui-text\",\n icon: \"font\",\n snippet: \"<ui-text>Some words</ui-text>\",\n topics: [\"text\", \"typography\", \"basic\", \"elements\"],\n aka: [\n \"span\",\n \"inline text\",\n \"colored text\",\n \"label text\",\n \"paragraph\",\n \"p\",\n \"bold\",\n \"italic\",\n \"strong\",\n \"em\",\n \"code\"\n ],\n noun: \"text\",\n description: \"A text is used to style some inline text with a simple color, or to hold a paragraph.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size relative to the surrounding text, `mini` (0.4em) ... `massive` (8em); `medium` is 1em.\"\n },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue of the text.\" },\n {\n name: \"state\",\n group: \"form\",\n kind: \"valueOnly\",\n values: [\"error\", \"info\", \"success\", \"warning\"],\n description: \"Semantic colour of a status message.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"The hue as it reads on a dark surface.\" },\n {\n name: \"paragraph\",\n group: \"layout\",\n kind: \"boolean\",\n description:\n \"A paragraph: a block (`<p>`) with the body's line height and a line's space under it, not inline text.\"\n },\n { name: \"bold\", group: \"appearance\", kind: \"boolean\", description: \"Bold letters (`<strong>`).\" },\n {\n name: \"heavy\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Heavier letters than `bold` (`<strong>`): a poster's title, a logo.\"\n },\n { name: \"italic\", group: \"appearance\", kind: \"boolean\", description: \"Italic letters (`<em>`).\" },\n { name: \"underline\", group: \"appearance\", kind: \"boolean\", description: \"Underlined.\" },\n {\n name: \"strikethrough\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Struck through (`<s>`): no longer true, or no longer the price.\"\n },\n {\n name: \"highlight\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Highlighted, as with a marker pen (`<mark>`).\"\n },\n {\n name: \"subscript\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Set below the line, smaller (`<sub>`): H₂O.\"\n },\n {\n name: \"superscript\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Set above the line, smaller (`<sup>`): mc².\"\n },\n {\n name: \"all-caps\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Every letter a capital (`text-transform: uppercase`): a label, an eyebrow.\"\n },\n {\n name: \"title-caps\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Each word's first letter a capital (`text-transform: capitalize`).\"\n },\n {\n name: \"headline\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"The theme's headline family, its headings' (`--ui-font-family-heading`).\"\n },\n {\n name: \"subhead\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"The theme's subhead family, under a heading (`--ui-font-family-subhead`).\"\n },\n {\n name: \"serif\",\n group: \"appearance\",\n kind: \"boolean\",\n description:\n \"The theme's serif family (`--ui-font-family-serif`). One family at a time: written together, the \" +\n \"first of `code`, `headline`, `subhead`, `serif`, `sans-serif`, `typewriter` wins.\"\n },\n {\n name: \"sans-serif\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"The theme's sans-serif family (`--ui-font-family-sans`).\"\n },\n {\n name: \"typewriter\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"The theme's typewriter family (`--ui-font-family-typewriter`): every letter the same width.\"\n },\n {\n name: \"code\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Inline code (`<code>`): the theme's code font, on the tinted box `<code>` draws in prose.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded: shown as unavailable.\" }\n ],\n events: [],\n slots: [{ name: \"\", description: \"The text.\" }],\n parts: [{ name: \"text\", description: \"The inline text box.\" }],\n states: [\n { name: \"disabled\", description: \"Faded: shown as unavailable.\" },\n { name: \"paragraph\", description: \"Set while it's a paragraph (`paragraph`).\" }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-text>`: a port of Fomantic's `text.less` + `text.variables`.\n * - It styles the component's shadow DOM, in Fomantic's class names on a semantic element:\n * `<span class=\"ui [size] [color] [state] [keyOnly ...] text\" part=\"text\"><slot></slot></span>`\n * - `state` (`error`, `info`, `success`, `warning`) writes its word alone, like a colour:\n * `colors.css` remaps `.ui.error` … onto the same generic tokens, so ONE rule set colours hues and states alike\n * - It keys on `span.ui.text` (and `a.ui.text`, a link), as Fomantic keys on `span.ui.text`: `ui text container`,\n * `ui text menu` and `ui text loader` are other components' boxes.\n * - The DOM element is `display: contents` (`:host`): the inner span IS the inline box,\n * flowing with the text around it.\n *\n * - Colours read the generic remap: `--ui-color-text` (the hue's contrast-tuned text role, per scheme),\n * and `--ui-color-inverted` for `inverted` (the hue on dark surfaces, whatever the scheme).\n * Uncoloured text inherits its colour.\n * - Sizes are relative to the SURROUNDING text (em), with Fomantic's own ladder (`huge` === 4em):\n * the box points `--ui-size-*` at `--ui-text-size-*`, so the generic `.ui.huge { --ui-scale }` remap\n * picks the text ratio.\n * - The element resets `--ui-scale` and the `--ui-color*` a coloured parent would hand down,\n * so text in a large red button is neither scaled twice nor painted red on red.\n *\n * - The public tokens (`--ui-text-line-height`, `--ui-text-size-*`, `--ui-text-disabled-opacity`,\n * `--ui-text-link-color`, `--ui-text-link-hover-color`, `--ui-text-code-background`,\n * `--ui-text-highlight-background`)\n * are NEVER declared here.\n * - The token block gives each a private alias, and every rule reads the alias:\n * `--_ui-text-line-height: var(--ui-text-line-height, 1)`.\n * - So a value set on `:root`, an ancestor, the element, `::part(text)` or in the app's style sheet\n * reaches the box (`notes/theming.md`, \"Component tokens\").\n * - The component's tokens share the `--ui-text-` prefix with the GLOBAL neutral text colours\n * (`--ui-text-color`, `--ui-text-muted`, `--ui-text-disabled`, `--ui-text-inverted-*` …).\n * This sheet NEVER aliases (or declares) one of those; its own names don't collide.\n *\n * - `:state(disabled)`, set by the component, is for the PAGE's styles only; this sheet keys on classes.\n *\n * - Left out, on purpose:\n * - Fomantic's raw hue for coloured text: the `-text` role reads on its background (yellow text included)\n * - an `inverted` look for uncoloured text: Fomantic has none either; it inherits\n */\n\n@layer ui.components.text.types, ui.components.text.content, ui.components.text.variations, ui.components.text.states;\n\n/*******************************\n Text\n*******************************/\n\n@layer ui.components.text.types {\n /* The DOM element: no box of its own; the inner span is the inline box. */\n :host {\n display: contents;\n /* Don't inherit a parent component's scale or colour: text follows the surrounding TEXT. */\n --ui-scale: initial;\n --ui-color: initial;\n --ui-color-text: initial;\n --ui-color-inverted: initial;\n }\n\n /* Tokens: one per `text.variables` entry that still matters, each the private alias of its public token. */\n :is(span, a, p).ui.text {\n --_ui-text-line-height: var(--ui-text-line-height, 1);\n --_ui-text-disabled-opacity: var(--ui-text-disabled-opacity, var(--ui-disabled-opacity));\n /* A link (`link`), and code and highlight inside text (`font`; epic `ui-gaps` P3). */\n --_ui-text-link-color: var(--ui-text-link-color, var(--ui-link));\n --_ui-text-link-hover-color: var(--ui-text-link-hover-color, var(--ui-link-hover));\n --_ui-text-code-background: var(--ui-text-code-background, var(--ui-surface-strong));\n --_ui-text-highlight-background: var(\n --ui-text-highlight-background,\n light-dark(oklch(from var(--ui-yellow) 0.92 calc(c * 0.55) h), oklch(from var(--ui-yellow) 0.38 calc(c * 0.6) h))\n );\n /* Fomantic's text ladder, relative to the surrounding text. */\n --_ui-text-size-mini: var(--ui-text-size-mini, 0.4);\n --_ui-text-size-tiny: var(--ui-text-size-tiny, 0.5);\n --_ui-text-size-small: var(--ui-text-size-small, 0.75);\n --_ui-text-size-large: var(--ui-text-size-large, 1.5);\n --_ui-text-size-big: var(--ui-text-size-big, 2);\n --_ui-text-size-huge: var(--ui-text-size-huge, 4);\n --_ui-text-size-massive: var(--ui-text-size-massive, 8);\n /* The generic size remap (`sizes.css`) resolves `--ui-size-<size>` HERE, so it picks the text ladder. */\n --ui-size-mini: var(--_ui-text-size-mini);\n --ui-size-tiny: var(--_ui-text-size-tiny);\n --ui-size-small: var(--_ui-text-size-small);\n --ui-size-large: var(--_ui-text-size-large);\n --ui-size-big: var(--_ui-text-size-big);\n --ui-size-huge: var(--_ui-text-size-huge);\n --ui-size-massive: var(--_ui-text-size-massive);\n }\n\n /* Text: inline, coloured by its hue or state, sized against the text around it. */\n :is(span, a, p).ui.text {\n color: var(--ui-color-text, inherit);\n font-size: calc(1em * var(--ui-scale, 1));\n line-height: var(--_ui-text-line-height);\n }\n\n /* A paragraph (`paragraph`): a block, the body's line height, a line's space under it (none after the last). */\n p.ui.text {\n margin-block: 0 1em;\n line-height: var(--ui-line-height);\n }\n :host(:last-child) > p.ui.text {\n margin-block-end: 0;\n }\n /* Its text read as a paragraph's (`:state(lines)`): each blank line it held is a line break (`\\n`). */\n :host(:state(lines)) > p.ui.text {\n white-space: pre-line;\n }\n\n /* A link in running text (`link`), or in a paragraph: the page's link colour, unless it has a hue; underlined. */\n a.ui.text,\n p.ui.text > a {\n color: var(--ui-color-text, var(--_ui-text-link-color));\n text-decoration-line: underline;\n text-decoration-thickness: 0.06em;\n text-underline-offset: 0.15em;\n }\n a.ui.text:hover,\n p.ui.text > a:hover {\n color: var(--ui-color-text, var(--_ui-text-link-hover-color));\n }\n /*\n * An icon-only link (`<ui-link>`'s `:state(icon-only)`) after a word: kept on the word's line, never wrapping alone\n * (a word joiner, U+2060, before it); in a header, a small gap from the word (`--_link-icon-gap`, which a header\n * sets: `UIParts.css`), where it pressed against a name\n */\n :host(:state(icon-only)) > a.ui.text {\n margin-inline-start: var(--_link-icon-gap, 0);\n white-space: nowrap;\n }\n /*\n * A link's icons are part of its text: the link is their owner, never the header or label around it\n * (a header's icon is 1.5em with a gap after it, its lead icon's look)\n */\n a.ui.text {\n --_ui-icon-owner-size: initial;\n --_ui-icon-owner-margin: 0;\n --_ui-icon-owner-display: initial;\n --_ui-icon-owner-align: initial;\n }\n :host(:state(icon-only)) > a.ui.text::before {\n content: \"\\2060\";\n }\n /* The text's line is only as tall as its letters: a ring a little away from them, lightly rounded. */\n a.ui.text:focus-visible,\n p.ui.text > a:focus-visible {\n outline-offset: 1px;\n border-radius: 2px;\n }\n\n /* Code and a highlight inside the text (`font=\"code\"`, `font=\"highlight\"`). */\n .ui.text code {\n padding: 0.125em 0.375em;\n font-family: var(--ui-font-family-mono);\n font-size: 0.875em;\n background-color: var(--_ui-text-code-background);\n border-radius: var(--ui-radius-s);\n }\n .ui.text mark {\n color: inherit;\n background-color: var(--_ui-text-highlight-background);\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.text.variations {\n /* Inverted: the hue as it reads on a dark surface. */\n :is(span, p).ui.inverted.text {\n color: var(--ui-color-inverted, inherit);\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.text.states {\n /* Disabled: faded. */\n :is(span, p).ui.disabled.text {\n opacity: var(--_ui-text-disabled-opacity);\n }\n}\n","import { Show } from \"solid-js\"\nimport { Dynamic, type JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { textVocabulary } from \"./UIText.en\"\nimport type { UILink } from \"./UILink\"\n\nimport textCSS from \"./UIText.css?inline\"\n\n/****************\n * ### `UIText`\n * The component behind `<ui-text>`: inline text in a hue, a status colour or a size.\n *\n * - Its shadow DOM is one span, `<span class=\"ui … text\" part=\"text\">`, around a slot for the text.\n * - With a `link`, that box is a real link instead, `<a href>`: a link in running text (epic `ui-gaps` P3).\n * `disabled` drops the link: a span again (`UIComponent.linkTo`).\n * `<ui-link>` draws the same box (`inlineBox()`).\n * - With `paragraph`, a `<p>` (epic `ui-gaps` P9): a block, with the body's line height;\n * a `link` is then an `<a>` inside it.\n * - How its letters look (epic `elemental-spell` P26):\n * - faces, as bare attributes, any together: `<ui-text bold italic>`\n * - each drawn as its HTML element around the slot (`<strong>`, `<em>`, `<mark>` ...), so screen readers hear it\n * - `font=\"bold italic\"`, every tag's shared word, still says the same here: either one draws it\n * - its case: `all-caps`, `title-caps`\n * - a family from the theme, one at a time (`family`): `headline`, `subhead`, `serif`, `sans-serif`,\n * `typewriter`, by `reset.css`\n * as on every element; `code` as a `<code>`, in the look `<code>` has in prose\n * - a size in pixels, `font=\"14\"` or `font=\"10/20\"`: never bare (`UIComponent.sharedFontSize`)\n * - `UIText.css` gives code, highlight and the families their look.\n * - The element is `display: contents`: the span IS the inline box, flowing with the text around it.\n * - `:state(disabled)` is for the page's styles; `UIText.css` keys on the `disabled` class.\n ****************/\nexport class UIText extends E.UIComponent<typeof textVocabulary> {\n @E.proto static vocabulary = textVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { text: textCSS },\n delegatesFocus: false,\n // `disabled`: only a look\n disabled: \"its own\",\n // a real `<a>`\n link: \"its own\",\n cssStates: [\"paragraph\"]\n } satisfies Partial<E.ElementSetup>\n\n render(): JSX.Element {\n return (\n <Show when={this.paragraph} fallback={UIText.inlineBox(this)}>\n <p class={this.rootClass} part={this.partForName(\"text\")}>\n <Show when={this.linkTo} fallback={UIText.styled(this.fontStates)}>\n <a href={this.linkTo} target={this.linkTarget}>\n {UIText.styled(this.fontStates)}\n </a>\n </Show>\n </p>\n </Show>\n )\n }\n\n ////////////////\n // ## Letters\n ////////////////\n\n /**\n * The faces drawn: `font`'s words, and the bare attributes that say the same (`<ui-text bold>`);\n * and ONE family, `family`.\n */\n override get fontStates(): Record<string, boolean> {\n const faces: Record<UIT.FontFace, boolean | undefined> = {\n bold: this.bold,\n heavy: this.heavy,\n italic: this.italic,\n underline: this.underline,\n strikethrough: this.strikethrough,\n code: false,\n highlight: this.highlight,\n subscript: this.subscript,\n superscript: this.superscript,\n \"all-caps\": this.allCaps,\n \"title-caps\": this.titleCaps\n }\n const states = super.fontStates\n for (const face of UIT.FontFaces) if (faces[face]) states[`font-${face}`] = true\n const { family } = this\n for (const each of TEXT_FAMILIES) states[`font-${each}`] = each === family\n return states\n }\n\n /**\n * The family its letters are drawn in, the theme's: written bare (`<ui-text serif>`) or in `font`\n * (`font=\"serif\"`).\n * - One at a time: written together, the first of `code`, `headline`, `subhead`, `serif`, `sans-serif`,\n * `typewriter`.\n * - `code` is drawn as a `<code>`, in the look `<code>` has in prose; the others by `reset.css`.\n */\n get family(): TextFamily | undefined {\n const inFont = super.fontStates\n const bare: Record<TextFamily, boolean | undefined> = {\n code: this.code,\n headline: this.headline,\n subhead: this.subhead,\n serif: this.serif,\n \"sans-serif\": this.sansSerif,\n typewriter: this.typewriter\n }\n return TEXT_FAMILIES.find((family) => bare[family] || inFont[`font-${family}`])\n }\n\n ////////////////\n // ## A paragraph's line breaks\n //\n // In a paragraph, a single line break in its text is a space, and a blank line a line break, as in Markdown\n // (Owen, 2026-10-27): `<br>`'s place in a drawing, which holds none of the web's tags.\n ////////////////\n\n /** Set once its text has been read as a paragraph's (`breakLines()`): `UIText.css` then draws its breaks. */\n @E.cssState(\"lines\")\n @E.state\n accessor hasLineBreaks = false\n\n /** `paragraph`, as the element connects: read its text as a paragraph's. */\n @E.onChange(\"paragraph\", \"isConnected\")\n protected onParagraphChanged(paragraph: boolean | undefined, isConnected: boolean) {\n if (paragraph && isConnected) this.breakLines()\n }\n\n /** Its text changed, a paragraph's: read it again. */\n @E.watches({ childList: true, subtree: true, characterData: true })\n protected onTextChanged() {\n if (this.paragraph) this.breakLines()\n }\n\n /**\n * Its text as a paragraph's: each run of white space holding a blank line becomes one line break (`\\n`),\n * every other line break a space; drawn by `white-space: pre-line`.\n * - SIDE EFFECT: rewrites the text nodes in its light DOM (their `data`), but a `<script>`'s or `<style>`'s.\n * - Each node once: `BROKEN_TEXT` remembers what it wrote, so its own write (or a node already read) isn't read\n * again, and a single `\\n` it wrote stays a break.\n */\n private breakLines() {\n const walker = document.createTreeWalker(this.domElement, NodeFilter.SHOW_TEXT)\n for (let node = walker.nextNode() as Text | null; node; node = walker.nextNode() as Text | null) {\n if (BROKEN_TEXT.get(node) === node.data || RAW_TEXT_PARENTS.has(node.parentElement?.localName ?? \"\")) continue\n const text = node.data.replace(BLANK_LINES, BREAK_MARK).replace(LINE_BREAK, \" \").replaceAll(BREAK_MARK, \"\\n\")\n if (text !== node.data) node.data = text\n BROKEN_TEXT.set(node, text)\n }\n this.hasLineBreaks = true\n }\n\n ////////////////\n // ## Drawing\n ////////////////\n\n /**\n * The inline box: a real link while it links (`linkTo`, `<a href>`), else a span, around its text.\n * - Static: `<ui-link>` draws itself with it.\n */\n static inlineBox(component: UIText | UILink): JSX.Element {\n return (\n <Dynamic\n component={component.linkTo ? \"a\" : \"span\"}\n class={component.rootClass}\n part={component.partForName(\"text\")}\n href={component.linkTo}\n target={component.linkTarget}\n >\n {UIText.styled(component.fontStates)}\n </Dynamic>\n )\n }\n\n /**\n * The slot, inside the HTML element of each `font` word written, outermost first: `<strong><em><slot>`.\n * - Static: `<ui-link>` draws its text the same way.\n */\n static styled(states: Record<string, boolean>): JSX.Element {\n let content: JSX.Element = <slot />\n for (const word of [...UIT.FontWords].reverse()) {\n const tag = FONT_ELEMENTS[word]\n if (!tag || !states[`font-${word}`]) continue\n const inner = content\n content = <Dynamic component={tag}>{inner}</Dynamic>\n }\n return content\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIText extends E.AttributeValues<typeof textVocabulary> {}\n\n/** What `breakLines()` wrote in each text node it read. */\nconst BROKEN_TEXT = new WeakMap<Text, string>()\n\n/** A blank line, and the white space around it: one line break. */\nconst BLANK_LINES = /[ \\t]*\\n(?:[ \\t]*\\n)+[ \\t]*/g\n\n/** Any other line break, and the white space around it: a space. */\nconst LINE_BREAK = /[ \\t]*\\n[ \\t]*/g\n\n/** Where a blank line was, while the single line breaks become spaces. */\nconst BREAK_MARK = \"\\u0000\"\n\n/** Elements whose text is never a paragraph's. */\nconst RAW_TEXT_PARENTS = new Set([\"script\", \"style\"])\n\n/** The families `<ui-text>` takes, one at a time, the first written winning (`family`). */\nconst TEXT_FAMILIES = [\"code\", ...UIT.FontFamilies] as const\n\n/** One of them. */\ntype TextFamily = (typeof TEXT_FAMILIES)[number]\n\n/**\n * The HTML element each `font` word draws inside running text.\n * - `underline` has none that means it (`<u>` means \"misspelt\"): only the look, from `reset.css`.\n */\nconst FONT_ELEMENTS: Partial<Record<UIT.FontWord, string>> = {\n bold: \"strong\",\n heavy: \"strong\",\n italic: \"em\",\n strikethrough: \"s\",\n code: \"code\",\n highlight: \"mark\",\n subscript: \"sub\",\n superscript: \"sup\"\n}\n","/**\n * The English vocabulary of `<ui-link>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - A link inside running text (epic `ui-gaps` P9): the shared `link` and `target` every tag takes, as a tag of\n * its own, `<ui-link link=\"help.html\">help</ui-link>`, for a drawing's sentence.\n * - Its look is `<ui-text link>`'s (`UIText.css`): the same class words, `ui [size] [color] text`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `linkVocabulary`\n * The names of `<ui-link>`, a link in running text: `<a class=\"ui … text\" part=\"text\" href>` around a slot.\n ****************/\nexport const linkVocabulary = {\n tag: \"ui-link\",\n icon: \"linkify\",\n topics: [\"text\", \"navigation\", \"basic\"],\n aka: [\"a\", \"anchor\", \"hyperlink\", \"text link\"],\n noun: \"text\",\n description: \"A link takes the reader somewhere else from inside a sentence.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size relative to the surrounding text, `mini` (0.4em) ... `massive` (8em); `medium` is 1em.\"\n },\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Hue of the link; the page's link colour by default.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"The hue as it reads on a dark surface.\" },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded, and no longer a link.\" }\n ],\n events: [],\n slots: [{ name: \"\", description: \"The link's words.\" }],\n parts: [{ name: \"text\", description: \"The link (`<a>`), or a span without a `link` or while `disabled`.\" }],\n states: [\n { name: \"disabled\", description: \"Faded, and no longer a link.\" },\n {\n name: \"icon-only\",\n description:\n \"It holds only an icon: it never wraps alone onto a line of its own, and, in a header, keeps a small gap \" +\n \"from the word before it.\"\n }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { linkVocabulary } from \"./UILink.en\"\nimport { UIText } from \"./UIText\"\n\nimport textCSS from \"./UIText.css?inline\"\n\n/****************\n * ### `<ui-link>`\n * The component behind `<ui-link>`: a link inside running text (epic `ui-gaps` P9).\n *\n * - `<ui-link link=\"help.html\">help</ui-link>`: the shared `link` (and `target`) every tag takes,\n * as a tag of its own, for a drawing's sentence. `<ui-text link>` draws the same.\n * - Its shadow DOM is one `<a class=\"ui … text\" part=\"text\" href>` around a slot, in `<ui-text>`'s look:\n * `<ui-text>`'s own inline box (`UIText.inlineBox()`).\n * - Without a `link`, or while `disabled`: a span, faded when disabled.\n * - `font` words draw their elements inside it, as `<ui-text>`'s do.\n * - The element is `display: contents`: the link IS the inline box, flowing with the sentence.\n * - Holding only an icon (`:state(icon-only)`, a header's \"octocat [GitHub icon]\"): it never wraps alone onto a line\n * of its own, and, in a header, keeps a small gap from the word before it (`UIText.css`).\n ****************/\nexport class UILink extends E.UIComponent<typeof linkVocabulary> {\n @E.proto static vocabulary = linkVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { text: textCSS },\n delegatesFocus: false,\n // `disabled`: faded, and the link dropped\n disabled: \"its own\",\n // a real `<a>`\n link: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n /**\n * It holds only icons: an icon link after a word, as in a card's header.\n * - Icons are the elements defined as icons (`<ui-icon>`, or a translated tag); blank text doesn't count.\n */\n @E.cssState(\"icon-only\")\n @E.watches({ childList: true, characterData: true, subtree: true })\n get isIconOnly(): boolean {\n const nodes = [...this.domElement.childNodes]\n const isIcon = (node: Node) =>\n node.nodeType === E.NodeType.element &&\n E.UIComponent.registry.definitions.get((node as Element).localName)?.vocabulary.noun === ICON\n const isBlank = (node: Node) => node.nodeType === E.NodeType.text && !node.textContent?.trim()\n return nodes.some(isIcon) && nodes.every((node) => isIcon(node) || isBlank(node))\n }\n\n render(): JSX.Element {\n return UIText.inlineBox(this)\n }\n}\n\n/** The noun of an icon's definition (`<ui-icon>`, or its translated tag). */\nconst ICON = \"icon\"\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UILink extends E.AttributeValues<typeof linkVocabulary> {}\n","/**\n * The text family: defines `<ui-text>` and `<ui-link>`, and exports their components, `UIText` and `UILink`.\n * - SIDE EFFECT: importing it defines the tag.\n * - Also the library's `spell/ui/ui-text` entry (its size is in `notes/report.md`).\n */\n\nimport { UIText } from \"./UIText\"\nimport { UILink } from \"./UILink\"\n\nUIText.define()\nUILink.define()\n\nexport { UIText, UILink }\n"],"mappings":";;;;;AAoBA,IAAakD,IAAiB;CAC5B,KAAK;CACL,MAAM;CACN,SAAS;CACT,QAAQ;EAAC;EAAQ;EAAc;EAAS;CAAU;CAClD,KAAK;EACH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,MAAM;CACN,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAS,OAAO;GAAc,MAAM;GAAS,aAAa;EAAmB;EACrF;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ;IAAC;IAAS;IAAQ;IAAW;GAAS;GAC9C,aAAa;EACf;EACA;GAAE,MAAM;GAAY,OAAO;GAAc,MAAM;GAAW,aAAa;EAAyC;EAChH;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aACE;EACJ;EACA;GAAE,MAAM;GAAQ,OAAO;GAAc,MAAM;GAAW,aAAa;EAA6B;EAChG;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAU,OAAO;GAAc,MAAM;GAAW,aAAa;EAA2B;EAChG;GAAE,MAAM;GAAa,OAAO;GAAc,MAAM;GAAW,aAAa;EAAc;EACtF;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN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.rootClass} part={this.partForName(\"text\")}>\n <Show when={this.linkTo} fallback={_UIText.styled(this.fontStates)}>\n <a href={this.linkTo} target={this.linkTarget}>\n {_UIText.styled(this.fontStates)}\n </a>\n </Show>\n </p>\n </Show>","this","<Show when={this.linkTo} fallback={_UIText.styled(this.fontStates)}>\n <a href={this.linkTo} target={this.linkTarget}>\n {_UIText.styled(this.fontStates)}\n </a>\n </Show>","target={this.linkTarget}","<a href={this.linkTo} target={this.linkTarget}>\n {_UIText.styled(this.fontStates)}\n </a>","part={this.partForName(\"text\")}","<p class={this.rootClass} part={this.partForName(\"text\")}>\n <Show when={this.linkTo} fallback={_UIText.styled(this.fontStates)}>\n <a href={this.linkTo} target={this.linkTarget}>\n {_UIText.styled(this.fontStates)}\n </a>\n </Show>\n </p>","<Dynamic\n component={component.linkTo ? \"a\" : \"span\"}\n class={component.rootClass}\n part={component.partForName(\"text\")}\n href={component.linkTo}\n target={component.linkTarget}\n >\n {_UIText.styled(component.fontStates)}\n </Dynamic>","<slot />","<Dynamic component={tag}>{inner}</Dynamic>","component={tag}","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.state","E.onChange","E.watches","_$getOwner","_$setAttribute","UIT.FontFaces","UIT.FontWords","inner","__name","textCSS","UIT.FontFamilies","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.watches","__name","textCSS","__decoratorStart","__publicField","__name$1","FontWords","__decorateElement","__decoratorMetadata","__runInitializers","FontFaces","__privateAdd","FontFamilies","getOwner$1","textVocabulary","UIText_default","_tmpl$","_tmpl$2","_tmpl$3","_onTextChanged_dec","_onParagraphChanged_dec","_hasLineBreaks_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_hasLineBreaks","_UIText","UIComponent","proto","protoMerged","cssState","state","onChange","watches","_self$","createComponent","Show","_el$","insert","_el$2","_o$","effect","_p$","setAttribute","t","claimElement","readShallow","className","faces","states","face","each","TEXT_FAMILIES","family","inFont","bare","paragraph","isConnected","walker","node","BROKEN_TEXT","RAW_TEXT_PARENTS","text","BLANK_LINES","BREAK_MARK","LINE_BREAK","Dynamic","component","\"class\"","_el$3","content","word","tag","FONT_ELEMENTS","UIText","linkVocabulary","_isIconOnly_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UILink","nodes","isIcon","NodeType","ICON","isBlank","UILink"],"sources":["../src/components/ui-text/UIText.en.ts","../src/components/ui-text/UIText.tsx","../src/components/ui-text/UILink.en.ts","../src/components/ui-text/UILink.tsx","../src/components/ui-text/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-text>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words, in Fomantic's order (`ClassBuilder`):\n * `<ui-text size=\"large\" color=\"red\" inverted>` => `ui large red inverted text`;\n * `<ui-text state=\"error\">` => `ui error text`.\n * - Sizes are relative to the surrounding text, on Fomantic's text ladder (`mini` 0.4em ... `massive` 8em).\n * - How its letters look are bare attributes, as styling is what a text is FOR (epic `elemental-spell` P26):\n * - faces, any together: `<ui-text bold italic>`\n * - a family from the theme, one at a time: `headline`, `subhead`, `serif`, `sans-serif`, `typewriter`, `code`\n * - every other tag takes the faces as the shared `font` (`font=\"bold italic\"`); `<ui-text font>` still works\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `textVocabulary`\n * The names of `<ui-text>`, inline text: `<span class=\"ui … text\" part=\"text\">` around a slot.\n ****************/\nexport const textVocabulary = {\n tag: \"ui-text\",\n icon: \"fa7-free:t\",\n snippet: \"<ui-text>Some words</ui-text>\",\n topics: [\"text\", \"typography\", \"basic\", \"elements\"],\n aka: [\n \"span\",\n \"inline text\",\n \"colored text\",\n \"label text\",\n \"paragraph\",\n \"p\",\n \"bold\",\n \"italic\",\n \"strong\",\n \"em\",\n \"code\"\n ],\n noun: \"text\",\n partOfSpeech: \"property\",\n description: \"A text is used to style some inline text with a simple color, or to hold a paragraph.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size relative to the surrounding text, `mini` (0.4em) ... `massive` (8em); `medium` is 1em.\"\n },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue of the text.\" },\n {\n name: \"state\",\n group: \"form\",\n kind: \"valueOnly\",\n values: [\"error\", \"info\", \"success\", \"warning\"],\n description: \"Semantic colour of a status message.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"The hue as it reads on a dark surface.\" },\n {\n name: \"paragraph\",\n group: \"layout\",\n kind: \"boolean\",\n description:\n \"A paragraph: a block (`<p>`) with the body's line height and a line's space under it, not inline text.\"\n },\n { name: \"bold\", group: \"appearance\", kind: \"boolean\", description: \"Bold letters (`<strong>`).\" },\n {\n name: \"heavy\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Heavier letters than `bold` (`<strong>`): a poster's title, a logo.\"\n },\n { name: \"italic\", group: \"appearance\", kind: \"boolean\", description: \"Italic letters (`<em>`).\" },\n { name: \"underline\", group: \"appearance\", kind: \"boolean\", description: \"Underlined.\" },\n {\n name: \"strikethrough\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Struck through (`<s>`): no longer true, or no longer the price.\"\n },\n {\n name: \"highlight\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Highlighted, as with a marker pen (`<mark>`).\"\n },\n {\n name: \"subscript\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Set below the line, smaller (`<sub>`): H₂O.\"\n },\n {\n name: \"superscript\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Set above the line, smaller (`<sup>`): mc².\"\n },\n {\n name: \"all-caps\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Every letter a capital (`text-transform: uppercase`): a label, an eyebrow.\"\n },\n {\n name: \"title-caps\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Each word's first letter a capital (`text-transform: capitalize`).\"\n },\n {\n name: \"headline\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"The theme's headline family, its headings' (`--ui-font-family-heading`).\"\n },\n {\n name: \"subhead\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"The theme's subhead family, under a heading (`--ui-font-family-subhead`).\"\n },\n {\n name: \"serif\",\n group: \"appearance\",\n kind: \"boolean\",\n description:\n \"The theme's serif family (`--ui-font-family-serif`). One family at a time: written together, the \" +\n \"first of `code`, `headline`, `subhead`, `serif`, `sans-serif`, `typewriter` wins.\"\n },\n {\n name: \"sans-serif\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"The theme's sans-serif family (`--ui-font-family-sans`).\"\n },\n {\n name: \"typewriter\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"The theme's typewriter family (`--ui-font-family-typewriter`): every letter the same width.\"\n },\n {\n name: \"code\",\n group: \"appearance\",\n kind: \"boolean\",\n description: \"Inline code (`<code>`): the theme's code font, on the tinted box `<code>` draws in prose.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded: shown as unavailable.\" }\n ],\n events: [],\n slots: [{ name: \"\", description: \"The text.\" }],\n parts: [{ name: \"text\", description: \"The inline text box.\" }],\n states: [\n { name: \"disabled\", description: \"Faded: shown as unavailable.\" },\n { name: \"paragraph\", description: \"Set while it's a paragraph (`paragraph`).\" }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport { Dynamic, type JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { textVocabulary } from \"./UIText.en\"\nimport type { UILink } from \"./UILink\"\n\nimport textCSS from \"./UIText.css?inline\"\n\n/****************\n * ### `UIText`\n * The component behind `<ui-text>`: inline text in a hue, a status colour or a size.\n *\n * - Its shadow DOM is one span, `<span class=\"ui … text\" part=\"text\">`, around a slot for the text.\n * - With a `link`, that box is a real link instead, `<a href>`: a link in running text (epic `ui-gaps` P3).\n * `disabled` drops the link: a span again (`UIComponent.linkTo`).\n * `<ui-link>` draws the same box (`inlineBox()`).\n * - With `paragraph`, a `<p>` (epic `ui-gaps` P9): a block, with the body's line height;\n * a `link` is then an `<a>` inside it.\n * - How its letters look (epic `elemental-spell` P26):\n * - faces, as bare attributes, any together: `<ui-text bold italic>`\n * - each drawn as its HTML element around the slot (`<strong>`, `<em>`, `<mark>` ...), so screen readers hear it\n * - `font=\"bold italic\"`, every tag's shared word, still says the same here: either one draws it\n * - its case: `all-caps`, `title-caps`\n * - a family from the theme, one at a time (`family`): `headline`, `subhead`, `serif`, `sans-serif`,\n * `typewriter`, by `reset.css`\n * as on every element; `code` as a `<code>`, in the look `<code>` has in prose\n * - a size in pixels, `font=\"14\"` or `font=\"10/20\"`: never bare (`UIComponent.sharedFontSize`)\n * - `UIText.css` gives code, highlight and the families their look.\n * - The element is `display: contents`: the span IS the inline box, flowing with the text around it.\n * - `:state(disabled)` is for the page's styles; `UIText.css` keys on the `disabled` class.\n ****************/\nexport class UIText extends E.UIComponent<typeof textVocabulary> {\n @E.proto static vocabulary = textVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { text: textCSS },\n delegatesFocus: false,\n // `disabled`: only a look\n disabled: \"its own\",\n // a real `<a>`\n link: \"its own\",\n cssStates: [\"paragraph\"]\n } satisfies Partial<E.ElementSetup>\n\n render(): JSX.Element {\n return (\n <Show when={this.paragraph} fallback={UIText.inlineBox(this)}>\n <p class={this.rootClass} part={this.partForName(\"text\")}>\n <Show when={this.linkTo} fallback={UIText.styled(this.fontStates)}>\n <a href={this.linkTo} target={this.linkTarget}>\n {UIText.styled(this.fontStates)}\n </a>\n </Show>\n </p>\n </Show>\n )\n }\n\n ////////////////\n // ## Letters\n ////////////////\n\n /**\n * The faces drawn: `font`'s words, and the bare attributes that say the same (`<ui-text bold>`);\n * and ONE family, `family`.\n */\n override get fontStates(): Record<string, boolean> {\n const faces: Record<UIT.FontFace, boolean | undefined> = {\n bold: this.bold,\n heavy: this.heavy,\n italic: this.italic,\n underline: this.underline,\n strikethrough: this.strikethrough,\n code: false,\n highlight: this.highlight,\n subscript: this.subscript,\n superscript: this.superscript,\n \"all-caps\": this.allCaps,\n \"title-caps\": this.titleCaps\n }\n const states = super.fontStates\n for (const face of UIT.FontFaces) if (faces[face]) states[`font-${face}`] = true\n const { family } = this\n for (const each of TEXT_FAMILIES) states[`font-${each}`] = each === family\n return states\n }\n\n /**\n * The family its letters are drawn in, the theme's: written bare (`<ui-text serif>`) or in `font`\n * (`font=\"serif\"`).\n * - One at a time: written together, the first of `code`, `headline`, `subhead`, `serif`, `sans-serif`,\n * `typewriter`.\n * - `code` is drawn as a `<code>`, in the look `<code>` has in prose; the others by `reset.css`.\n */\n get family(): TextFamily | undefined {\n const inFont = super.fontStates\n const bare: Record<TextFamily, boolean | undefined> = {\n code: this.code,\n headline: this.headline,\n subhead: this.subhead,\n serif: this.serif,\n \"sans-serif\": this.sansSerif,\n typewriter: this.typewriter\n }\n return TEXT_FAMILIES.find((family) => bare[family] || inFont[`font-${family}`])\n }\n\n ////////////////\n // ## A paragraph's line breaks\n //\n // In a paragraph, a single line break in its text is a space, and a blank line a line break, as in Markdown\n // (Owen, 2026-10-27): `<br>`'s place in a drawing, which holds none of the web's tags.\n ////////////////\n\n /** Set once its text has been read as a paragraph's (`breakLines()`): `UIText.css` then draws its breaks. */\n @E.cssState(\"lines\")\n @E.state\n accessor hasLineBreaks = false\n\n /** `paragraph`, as the element connects: read its text as a paragraph's. */\n @E.onChange(\"paragraph\", \"isConnected\")\n protected onParagraphChanged(paragraph: boolean | undefined, isConnected: boolean) {\n if (paragraph && isConnected) this.breakLines()\n }\n\n /** Its text changed, a paragraph's: read it again. */\n @E.watches({ childList: true, subtree: true, characterData: true })\n protected onTextChanged() {\n if (this.paragraph) this.breakLines()\n }\n\n /**\n * Its text as a paragraph's: each run of white space holding a blank line becomes one line break (`\\n`),\n * every other line break a space; drawn by `white-space: pre-line`.\n * - SIDE EFFECT: rewrites the text nodes in its light DOM (their `data`), but a `<script>`'s or `<style>`'s.\n * - Each node once: `BROKEN_TEXT` remembers what it wrote, so its own write (or a node already read) isn't read\n * again, and a single `\\n` it wrote stays a break.\n */\n private breakLines() {\n const walker = document.createTreeWalker(this.domElement, NodeFilter.SHOW_TEXT)\n for (let node = walker.nextNode() as Text | null; node; node = walker.nextNode() as Text | null) {\n if (BROKEN_TEXT.get(node) === node.data || RAW_TEXT_PARENTS.has(node.parentElement?.localName ?? \"\")) continue\n const text = node.data.replace(BLANK_LINES, BREAK_MARK).replace(LINE_BREAK, \" \").replaceAll(BREAK_MARK, \"\\n\")\n if (text !== node.data) node.data = text\n BROKEN_TEXT.set(node, text)\n }\n this.hasLineBreaks = true\n }\n\n ////////////////\n // ## Drawing\n ////////////////\n\n /**\n * The inline box: a real link while it links (`linkTo`, `<a href>`), else a span, around its text.\n * - Static: `<ui-link>` draws itself with it.\n */\n static inlineBox(component: UIText | UILink): JSX.Element {\n return (\n <Dynamic\n component={component.linkTo ? \"a\" : \"span\"}\n class={component.rootClass}\n part={component.partForName(\"text\")}\n href={component.linkTo}\n target={component.linkTarget}\n >\n {UIText.styled(component.fontStates)}\n </Dynamic>\n )\n }\n\n /**\n * The slot, inside the HTML element of each `font` word written, outermost first: `<strong><em><slot>`.\n * - Static: `<ui-link>` draws its text the same way.\n */\n static styled(states: Record<string, boolean>): JSX.Element {\n let content: JSX.Element = <slot />\n for (const word of [...UIT.FontWords].reverse()) {\n const tag = FONT_ELEMENTS[word]\n if (!tag || !states[`font-${word}`]) continue\n const inner = content\n content = <Dynamic component={tag}>{inner}</Dynamic>\n }\n return content\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIText extends E.AttributeValues<typeof textVocabulary> {}\n\n/** What `breakLines()` wrote in each text node it read. */\nconst BROKEN_TEXT = new WeakMap<Text, string>()\n\n/** A blank line, and the white space around it: one line break. */\nconst BLANK_LINES = /[ \\t]*\\n(?:[ \\t]*\\n)+[ \\t]*/g\n\n/** Any other line break, and the white space around it: a space. */\nconst LINE_BREAK = /[ \\t]*\\n[ \\t]*/g\n\n/** Where a blank line was, while the single line breaks become spaces. */\nconst BREAK_MARK = \"\\u0000\"\n\n/** Elements whose text is never a paragraph's. */\nconst RAW_TEXT_PARENTS = new Set([\"script\", \"style\"])\n\n/** The families `<ui-text>` takes, one at a time, the first written winning (`family`). */\nconst TEXT_FAMILIES = [\"code\", ...UIT.FontFamilies] as const\n\n/** One of them. */\ntype TextFamily = (typeof TEXT_FAMILIES)[number]\n\n/**\n * The HTML element each `font` word draws inside running text.\n * - `underline` has none that means it (`<u>` means \"misspelt\"): only the look, from `reset.css`.\n */\nconst FONT_ELEMENTS: Partial<Record<UIT.FontWord, string>> = {\n bold: \"strong\",\n heavy: \"strong\",\n italic: \"em\",\n strikethrough: \"s\",\n code: \"code\",\n highlight: \"mark\",\n subscript: \"sub\",\n superscript: \"sup\"\n}\n","/**\n * The English vocabulary of `<ui-link>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - A link inside running text (epic `ui-gaps` P9): the shared `link` and `target` every tag takes, as a tag of\n * its own, `<ui-link link=\"help.html\">help</ui-link>`, for a drawing's sentence.\n * - Its look is `<ui-text link>`'s (`UIText.css`): the same class words, `ui [size] [color] text`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `linkVocabulary`\n * The names of `<ui-link>`, a link in running text: `<a class=\"ui … text\" part=\"text\" href>` around a slot.\n ****************/\nexport const linkVocabulary = {\n tag: \"ui-link\",\n icon: \"linkify\",\n topics: [\"text\", \"navigation\", \"basic\"],\n aka: [\"a\", \"anchor\", \"hyperlink\", \"text link\"],\n noun: \"text\",\n partOfSpeech: \"action\",\n description: \"A link takes the reader somewhere else from inside a sentence.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size relative to the surrounding text, `mini` (0.4em) ... `massive` (8em); `medium` is 1em.\"\n },\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Hue of the link; the page's link colour by default.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"The hue as it reads on a dark surface.\" },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded, and no longer a link.\" }\n ],\n events: [],\n slots: [{ name: \"\", description: \"The link's words.\" }],\n parts: [{ name: \"text\", description: \"The link (`<a>`), or a span without a `link` or while `disabled`.\" }],\n states: [\n { name: \"disabled\", description: \"Faded, and no longer a link.\" },\n {\n name: \"icon-only\",\n description:\n \"It holds only an icon: it never wraps alone onto a line of its own, and, in a header, keeps a small gap \" +\n \"from the word before it.\"\n }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { linkVocabulary } from \"./UILink.en\"\nimport { UIText } from \"./UIText\"\n\nimport textCSS from \"./UIText.css?inline\"\n\n/****************\n * ### `<ui-link>`\n * The component behind `<ui-link>`: a link inside running text (epic `ui-gaps` P9).\n *\n * - `<ui-link link=\"help.html\">help</ui-link>`: the shared `link` (and `target`) every tag takes,\n * as a tag of its own, for a drawing's sentence. `<ui-text link>` draws the same.\n * - Its shadow DOM is one `<a class=\"ui … text\" part=\"text\" href>` around a slot, in `<ui-text>`'s look:\n * `<ui-text>`'s own inline box (`UIText.inlineBox()`).\n * - Without a `link`, or while `disabled`: a span, faded when disabled.\n * - `font` words draw their elements inside it, as `<ui-text>`'s do.\n * - The element is `display: contents`: the link IS the inline box, flowing with the sentence.\n * - Holding only an icon (`:state(icon-only)`, a header's \"octocat [GitHub icon]\"): it never wraps alone onto a line\n * of its own, and, in a header, keeps a small gap from the word before it (`UIText.css`).\n ****************/\nexport class UILink extends E.UIComponent<typeof linkVocabulary> {\n @E.proto static vocabulary = linkVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { text: textCSS },\n delegatesFocus: false,\n // `disabled`: faded, and the link dropped\n disabled: \"its own\",\n // a real `<a>`\n link: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n /**\n * It holds only icons: an icon link after a word, as in a card's header.\n * - Icons are the elements defined as icons (`<ui-icon>`, or a translated tag); blank text doesn't count.\n */\n @E.cssState(\"icon-only\")\n @E.watches({ childList: true, characterData: true, subtree: true })\n get isIconOnly(): boolean {\n const nodes = [...this.domElement.childNodes]\n const isIcon = (node: Node) =>\n node.nodeType === E.NodeType.element &&\n E.UIComponent.registry.definitions.get((node as Element).localName)?.vocabulary.noun === ICON\n const isBlank = (node: Node) => node.nodeType === E.NodeType.text && !node.textContent?.trim()\n return nodes.some(isIcon) && nodes.every((node) => isIcon(node) || isBlank(node))\n }\n\n render(): JSX.Element {\n return UIText.inlineBox(this)\n }\n}\n\n/** The noun of an icon's definition (`<ui-icon>`, or its translated tag). */\nconst ICON = \"icon\"\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UILink extends E.AttributeValues<typeof linkVocabulary> {}\n","/**\n * The text family: defines `<ui-text>` and `<ui-link>`, and exports their components, `UIText` and `UILink`.\n * - SIDE EFFECT: importing it defines the tag.\n * - Also the library's `spell/ui/ui-text` entry (its size is in `notes/report.md`).\n */\n\nimport { UIText } from \"./UIText\"\nimport { UILink } from \"./UILink\"\n\nUIText.define()\nUILink.define()\n\nexport { UIText, UILink }\n"],"mappings":";;;;;AAoBA,IAAagD,IAAiB;CAC5B,KAAK;CACL,MAAM;CACN,SAAS;CACT,QAAQ;EAAC;EAAQ;EAAc;EAAS;CAAU;CAClD,KAAK;EACH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,MAAM;CACN,cAAc;CACd,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAS,OAAO;GAAc,MAAM;GAAS,aAAa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