spell-ui 0.8.5 → 0.8.7
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 +14 -6
- package/README-frameworks.md +22 -12
- package/README-migrating.md +7 -6
- package/README-runtime.md +14 -13
- package/README-site.md +11 -11
- package/README-themes.md +38 -11
- package/README.md +61 -73
- package/dist/Dragging-CMZoLEWQ.js +169 -0
- package/dist/Dragging-CMZoLEWQ.js.map +1 -0
- package/dist/{MarkdownEngine-CbuT9Mjc.js → MarkdownEngine-CW1WGqNp.js} +122 -100
- package/dist/MarkdownEngine-CW1WGqNp.js.map +1 -0
- package/dist/{PrefStore-CeaTtjTz.js → PrefStore-Qv0e5y04.js} +22 -22
- package/dist/PrefStore-Qv0e5y04.js.map +1 -0
- package/dist/ScrollingRow-7n7Z-HIE.js +88 -0
- package/dist/ScrollingRow-7n7Z-HIE.js.map +1 -0
- package/dist/SitePages-CciwREek.js +51 -0
- package/dist/SitePages-CciwREek.js.map +1 -0
- package/dist/{SlottedItems-Ch0tzzlL.js → SlottedItems-Du3aJwG1.js} +22 -22
- package/dist/{SlottedItems-Ch0tzzlL.js.map → SlottedItems-Du3aJwG1.js.map} +1 -1
- package/dist/ThemeDraft-B7NPif4d.js +805 -0
- package/dist/ThemeDraft-B7NPif4d.js.map +1 -0
- package/dist/TreeMeasure-BVJeGb1L.js +42 -0
- package/dist/TreeMeasure-BVJeGb1L.js.map +1 -0
- package/dist/UIButton-DFEds67r.js +6 -0
- package/dist/UIButton-DFEds67r.js.map +1 -0
- package/dist/UIInput-BodVbUoQ.js +6 -0
- package/dist/UIInput-BodVbUoQ.js.map +1 -0
- package/dist/{UIKeys-DJF2TIKE.js → UIKeys-Rh_gUZjP.js} +10 -9
- package/dist/UIKeys-Rh_gUZjP.js.map +1 -0
- package/dist/UILabel-DgJUBzB_.js +6 -0
- package/dist/UILabel-DgJUBzB_.js.map +1 -0
- package/dist/UIMenu-zdcAtwTa.js +42 -0
- package/dist/UIMenu-zdcAtwTa.js.map +1 -0
- package/dist/{UIRuntime-BBuehGly.js → UIRuntime-KH309p5B.js} +398 -207
- package/dist/UIRuntime-KH309p5B.js.map +1 -0
- package/dist/_spell-element/DOMElement.d.ts +62 -5
- package/dist/_spell-element/MoveAndResize.d.ts +75 -0
- package/dist/_spell-element/UIComponent.d.ts +42 -0
- package/dist/_spell-element/elements.types.d.ts +47 -0
- package/dist/_spell-element/index.d.ts +1 -0
- package/dist/_spell-element/vocabulary.types.d.ts +34 -2
- package/dist/{runtime → _util}/Api.d.ts +14 -4
- package/dist/_util/Dragging.d.ts +148 -0
- package/dist/_util/ListSelection.d.ts +46 -0
- package/dist/{util → _util}/LoadOnce.d.ts +9 -1
- package/dist/_util/ReconnectingSocket.d.ts +51 -0
- package/dist/_util/diagram/DiagramColumns.d.ts +14 -0
- package/dist/_util/diagram/DiagramLayout.d.ts +119 -0
- package/dist/_util/diagram/DiagramSVG.d.ts +17 -0
- package/dist/_util/dom.d.ts +10 -0
- package/dist/_util/fetching.d.ts +92 -0
- package/dist/_util/measures/Dimension.d.ts +63 -0
- package/dist/_util/measures/MeasureSystem.d.ts +66 -0
- package/dist/_util/measures/dimensions.generated.d.ts +16 -0
- package/dist/_util/persist/ColorScheme.d.ts +6 -0
- package/dist/_util/persist/ServerPlace.d.ts +42 -0
- package/dist/_util/persist/WaitedOnPlace.d.ts +27 -0
- package/dist/_util/persist/persist.types.d.ts +21 -2
- package/dist/_util/timing.d.ts +10 -1
- package/dist/api.js +8 -7
- package/dist/api.js.map +1 -1
- package/dist/components/ComponentDefinitions.d.ts +29 -0
- package/dist/components/components.es.d.ts +13 -0
- package/dist/components/components.types.d.ts +113 -8
- 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.en.d.ts +5 -1
- 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-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 +8 -3
- package/dist/components/ui-button/UIButton.en.d.ts +9 -4
- package/dist/components/ui-button/UIButton.es.d.ts +6 -0
- package/dist/components/ui-button/UIButton.fallback.d.ts +8 -3
- package/dist/components/ui-button/UIButtons.d.ts +1 -0
- package/dist/components/ui-button/UIButtons.en.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 +6 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +6 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +6 -0
- package/dist/components/ui-card/CardClicks.d.ts +40 -0
- package/dist/components/ui-card/UICard.d.ts +41 -0
- package/dist/components/ui-card/UICard.en.d.ts +49 -0
- package/dist/components/ui-card/UICard.es.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +31 -0
- package/dist/components/ui-card/UICards.en.d.ts +31 -0
- package/dist/components/ui-card/UICards.es.d.ts +8 -0
- package/dist/components/ui-checkbox/CheckControl.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.es.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.types.d.ts +5 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +8 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +6 -0
- package/dist/components/ui-code/UICode.en.d.ts +1 -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/PackHotSwap.d.ts +17 -1
- 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 +11 -0
- package/dist/components/ui-container/UIContainer.en.d.ts +7 -0
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +268 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +106 -0
- package/dist/components/ui-diagram/UIDiagram.es.d.ts +37 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +98 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +38 -0
- package/dist/components/ui-diagram/UIDiagramNode.es.d.ts +16 -0
- package/dist/components/ui-diagram/index.d.ts +8 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +81 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +54 -0
- package/dist/components/ui-dimension/UIDimension.es.d.ts +22 -0
- package/dist/components/ui-dimension/index.d.ts +2 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +6 -1
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.es.d.ts +1 -1
- package/dist/components/ui-divider/UIDivider.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.es.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -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 +4 -2
- package/dist/components/ui-example/UIExample.es.d.ts +3 -2
- 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/FormBinding.d.ts +13 -1
- package/dist/components/ui-form/FormFields.d.ts +4 -4
- package/dist/components/ui-form/UIField.d.ts +30 -3
- package/dist/components/ui-form/UIField.en.d.ts +9 -0
- package/dist/components/ui-form/UIField.es.d.ts +6 -0
- 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 +15 -0
- package/dist/components/ui-form/UIForm.en.d.ts +6 -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-form/index.d.ts +2 -1
- package/dist/components/ui-grid/UIColumn.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.en.d.ts +1 -0
- 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 +3 -2
- package/dist/components/ui-icon/UIIcon.en.d.ts +3 -2
- 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 +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
- package/dist/components/ui-image/UIImage.d.ts +34 -0
- package/dist/components/ui-image/UIImage.en.d.ts +23 -0
- package/dist/components/ui-image/UIImage.es.d.ts +2 -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/TextControl.d.ts +7 -0
- package/dist/components/ui-input/UIInput.d.ts +22 -3
- package/dist/components/ui-input/UIInput.en.d.ts +9 -2
- package/dist/components/ui-input/UIInput.es.d.ts +2 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +9 -2
- package/dist/components/ui-input/UITextarea.d.ts +20 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +15 -0
- package/dist/components/ui-input/UITextarea.es.d.ts +4 -0
- package/dist/components/ui-item/UIItem.d.ts +27 -4
- package/dist/components/ui-item/UIItem.en.d.ts +5 -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/JsonChild.d.ts +30 -0
- package/dist/components/ui-json/UIJson.d.ts +128 -0
- package/dist/components/ui-json/UIJson.en.d.ts +71 -0
- package/dist/components/ui-json/UIJson.es.d.ts +12 -0
- package/dist/components/ui-json/index.d.ts +3 -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 +2 -0
- package/dist/components/ui-label/UILabel.en.d.ts +2 -0
- package/dist/components/ui-label/UILabel.es.d.ts +1 -0
- 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 +2 -0
- package/dist/components/ui-list/UIList.en.d.ts +2 -0
- package/dist/components/ui-list/UIList.es.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 +143 -0
- package/dist/components/ui-markdown/MarkdownEngine.d.ts +14 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +95 -0
- package/dist/components/ui-markdown/MarkdownSource.d.ts +57 -0
- package/dist/components/ui-markdown/UIMarkdown.d.ts +126 -6
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +111 -8
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +29 -1
- package/dist/components/ui-markdown/UIMarkdown.types.d.ts +26 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +79 -0
- package/dist/components/ui-menu/TitleFit.d.ts +3 -0
- package/dist/components/ui-menu/UIMenu.d.ts +97 -4
- package/dist/components/ui-menu/UIMenu.en.d.ts +50 -1
- package/dist/components/ui-menu/UIMenu.es.d.ts +4 -0
- package/dist/components/ui-message/UIMessage.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.en.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.es.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +1 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +15 -0
- package/dist/components/ui-page/UIPage.en.d.ts +15 -0
- package/dist/components/ui-page/UIPage.es.d.ts +1 -0
- package/dist/components/ui-panel/UIPanel.d.ts +6 -0
- package/dist/components/ui-panel/UIPanel.en.d.ts +33 -20
- 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 +1 -0
- package/dist/components/ui-parts/UIAvatar.en.d.ts +1 -0
- 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 +3 -1
- package/dist/components/ui-parts/UIHeader.en.d.ts +3 -1
- 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 +15 -1
- 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 +30 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +7 -0
- package/dist/components/ui-popup/UIPopup.es.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.en.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.es.d.ts +1 -0
- package/dist/components/ui-property-editor/UIProperty.d.ts +132 -5
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +11 -44
- package/dist/components/ui-property-editor/UIProperty.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +38 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +33 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +12 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +2 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.es.d.ts +9 -0
- package/dist/components/ui-property-editor/index.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 +1 -0
- package/dist/components/ui-rail/UIRail.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +6 -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.d.ts +18 -3
- package/dist/components/ui-root/UIRoot.en.d.ts +15 -0
- package/dist/components/ui-root/UIRoot.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +48 -7
- package/dist/components/ui-search/UISearch.en.d.ts +13 -1
- package/dist/components/ui-search/UISearch.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +13 -1
- package/dist/components/ui-section/UISection.d.ts +30 -1
- package/dist/components/ui-section/UISection.en.d.ts +10 -0
- package/dist/components/ui-section/UISection.es.d.ts +1 -0
- 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 +2 -0
- package/dist/components/ui-segment/UISegment.en.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.es.d.ts +1 -0
- 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 +6 -0
- package/dist/components/ui-select/UISelect.en.d.ts +6 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +6 -0
- package/dist/components/ui-shape/UIShape.d.ts +23 -2
- package/dist/components/ui-shape/UIShape.en.d.ts +8 -0
- package/dist/components/ui-shape/UIShape.es.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +4 -0
- package/dist/components/ui-shape/UISide.en.d.ts +4 -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 +209 -0
- package/dist/components/ui-sides/UISides.en.d.ts +122 -0
- package/dist/components/ui-sides/UISides.es.d.ts +30 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +134 -0
- package/dist/components/ui-sides/index.d.ts +2 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +53 -0
- package/dist/components/ui-site-nav/UISiteNav.d.ts +207 -0
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +87 -0
- package/dist/components/ui-site-nav/UISiteNav.es.d.ts +29 -0
- package/dist/components/ui-site-nav/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +126 -0
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +49 -0
- package/dist/components/ui-site-tabs/UISiteTabs.es.d.ts +18 -0
- package/dist/components/ui-site-tabs/index.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.es.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +7 -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 +175 -0
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +74 -0
- package/dist/components/ui-split-panel/UISplitPanel.es.d.ts +25 -0
- package/dist/components/ui-split-panel/index.d.ts +2 -0
- package/dist/components/ui-stack/UIStack.d.ts +31 -5
- package/dist/components/ui-stack/UIStack.en.d.ts +15 -3
- 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 +1 -0
- package/dist/components/ui-step/UISteps.en.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.d.ts +4 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +8 -0
- package/dist/components/ui-tab/UITab.en.d.ts +1 -0
- package/dist/components/ui-tab/UITabs.d.ts +107 -16
- package/dist/components/ui-tab/UITabs.en.d.ts +40 -1
- package/dist/components/ui-tab/UITabs.es.d.ts +4 -0
- package/dist/components/ui-table/TableEditing.d.ts +77 -0
- 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 +145 -5
- package/dist/components/ui-table/UITable.en.d.ts +19 -0
- package/dist/components/ui-table/UITable.es.d.ts +3 -0
- 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 +11 -0
- package/dist/components/ui-text/UILink.en.d.ts +4 -0
- package/dist/components/ui-text/UIText.d.ts +7 -0
- package/dist/components/ui-text/UIText.en.d.ts +7 -0
- package/dist/components/ui-text/UIText.es.d.ts +2 -0
- package/dist/components/ui-theme-editor/SavedTheme.d.ts +55 -43
- package/dist/components/ui-theme-editor/ThemeDraft.d.ts +15 -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 +157 -26
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +79 -6
- package/dist/components/ui-theme-editor/UIThemeEditor.es.d.ts +20 -2
- package/dist/components/ui-theme-editor/UIThemeEditor.types.d.ts +0 -2
- 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/HueDropdown.d.ts +47 -0
- package/dist/components/ui-theme-menu/ThemeMenu.d.ts +18 -7
- package/dist/components/ui-theme-menu/ThemePreference.d.ts +145 -36
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +118 -7
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +82 -2
- package/dist/components/ui-theme-menu/UIThemeMenu.es.d.ts +21 -1
- package/dist/components/ui-theme-menu/UIThemeMenu.types.d.ts +36 -8
- package/dist/components/ui-theme-menu/index.d.ts +2 -1
- 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 +13 -10
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +138 -84
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +2 -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 +162 -0
- package/dist/components/ui-tree/UITree.en.d.ts +88 -0
- package/dist/components/ui-tree/UITree.es.d.ts +35 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +204 -0
- package/dist/components/ui-tree/UITreeItem.en.d.ts +142 -0
- package/dist/components/ui-tree/UITreeItem.es.d.ts +32 -0
- package/dist/components/ui-tree/index.d.ts +3 -0
- package/dist/components/ui-tree-diagram/TreeData.d.ts +3 -12
- package/dist/components/ui-tree-diagram/TreeLayout.d.ts +54 -21
- package/dist/components/ui-tree-diagram/TreeMeasure.d.ts +36 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +152 -27
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +47 -7
- package/dist/components/ui-tree-diagram/UITreeDiagram.es.d.ts +12 -1
- package/dist/components/ui-tree-diagram/UITreeDiagram.types.d.ts +66 -21
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +148 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +69 -0
- package/dist/components/ui-tree-diagram/UITreeNode.es.d.ts +21 -0
- package/dist/components/ui-tree-diagram/index.d.ts +4 -2
- 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-DmLzT-Bq.js → components.es-BOa_7gFF.js} +498 -109
- package/dist/components.es-BOa_7gFF.js.map +1 -0
- package/dist/core.d.ts +3 -1
- package/dist/core.js +1082 -511
- package/dist/core.js.map +1 -1
- package/dist/crisp-VfYZlTph.js +6 -0
- package/dist/{crisp-CoZRRDuQ.js.map → crisp-VfYZlTph.js.map} +1 -1
- package/dist/docs-components/index.d.ts +1 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.d.ts +89 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.en.d.ts +43 -0
- package/dist/docs-components/ui-docs-index/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-nav/UIDocsNav.d.ts +54 -87
- package/dist/docs-components/ui-docs-nav/UIDocsNav.types.d.ts +2 -29
- package/dist/docs-components/ui-docs-search/SearchIndex.d.ts +8 -2
- package/dist/docs-components/ui-docs-search/UIDocsSearch.d.ts +10 -0
- package/dist/docs-components/ui-docs-search/UIDocsSearch.en.d.ts +5 -0
- package/dist/elements/AddressParameter.d.ts +87 -0
- package/dist/elements/DOMFormControl.d.ts +5 -0
- package/dist/elements/FormComponent.d.ts +32 -0
- package/dist/elements/LoadableBody.d.ts +6 -1
- package/dist/elements/LoadableComponent.d.ts +10 -1
- package/dist/elements/RootSettings.d.ts +43 -6
- package/dist/elements/SpellUISettings.d.ts +1 -0
- package/dist/elements/StickyWatch.d.ts +20 -0
- package/dist/elements/elements.types.d.ts +15 -0
- package/dist/elements/index.d.ts +2 -0
- package/dist/forms.js +93 -63
- package/dist/forms.js.map +1 -1
- package/dist/fruity-BRVlgJZd.js +6 -0
- package/dist/fruity-BRVlgJZd.js.map +1 -0
- package/dist/{fruity.theme-BJcMiPl1.js → fruity.theme-CbC7Jyvk.js} +2 -2
- package/dist/fruity.theme-CbC7Jyvk.js.map +1 -0
- package/dist/glass-x9tbbwVq.js +6 -0
- package/dist/glass-x9tbbwVq.js.map +1 -0
- package/dist/glass.theme-24wY2wH9.js +6 -0
- package/dist/glass.theme-24wY2wH9.js.map +1 -0
- package/dist/hot.js +536 -26
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +91 -81
- package/dist/jsx.d.ts +21149 -10377
- package/dist/matrix-QY2gWbJ0.js +6 -0
- package/dist/{matrix-CqA59hiF.js.map → matrix-QY2gWbJ0.js.map} +1 -1
- package/dist/{matrix.theme-jqQZjcq3.js → matrix.theme-_8xtwhDq.js} +2 -2
- package/dist/matrix.theme-_8xtwhDq.js.map +1 -0
- package/dist/midnight-BxlTQSfw.js +6 -0
- package/dist/{midnight-BnoVOrhC.js.map → midnight-BxlTQSfw.js.map} +1 -1
- package/dist/mockup-83ELBuVr.js +6 -0
- package/dist/mockup-83ELBuVr.js.map +1 -0
- package/dist/mockup.theme-DmpBgGBl.js +6 -0
- package/dist/mockup.theme-DmpBgGBl.js.map +1 -0
- package/dist/paper-M61nUilz.js +6 -0
- package/dist/{paper-CynH8ZuT.js.map → paper-M61nUilz.js.map} +1 -1
- package/dist/persist.types-D2m6wD-S.js +9 -0
- package/dist/persist.types-D2m6wD-S.js.map +1 -0
- package/dist/pop-CxXfytjk.js +6 -0
- package/dist/{pop-D2i9V_rG.js.map → pop-CxXfytjk.js.map} +1 -1
- package/dist/runtime/DataTooltips.d.ts +75 -0
- package/dist/runtime/PropertyControls.d.ts +15 -1
- package/dist/runtime/Sources.d.ts +16 -4
- package/dist/runtime/Styles.d.ts +11 -0
- package/dist/runtime/Themes.d.ts +10 -4
- package/dist/runtime/UIRuntime.d.ts +4 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/runtime.types.d.ts +18 -85
- package/dist/spell-By5Y3jKP.js +6 -0
- package/dist/{spell-BFtLICm7.js.map → spell-By5Y3jKP.js.map} +1 -1
- package/dist/{spell.theme-B7AU7SQX.js → spell.theme-DxGj7qHx.js} +2 -2
- package/dist/spell.theme-DxGj7qHx.js.map +1 -0
- package/dist/styles/CodeThemeFile.d.ts +73 -0
- package/dist/styles/StyleGenerator.d.ts +6 -0
- package/dist/styles/styles.en.d.ts +141 -3
- package/dist/styles/styles.types.d.ts +2 -0
- package/dist/{styles.en-RLpYiO5_.js → styles.en-CUUxNwHo.js} +71 -14
- package/dist/styles.en-CUUxNwHo.js.map +1 -0
- package/dist/styles.js +13 -13
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.js +54 -53
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.js +20 -19
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-ad.js +5 -4
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-breadcrumbs.js +15 -13
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.js +132 -125
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-calendar.js +208 -206
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.js +260 -98
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-checkbox.js +95 -81
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.js +25 -24
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-comment.js +14 -12
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-components.js +7 -6
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.js +24 -12
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-diagram.js +1328 -0
- package/dist/ui-diagram.js.map +1 -0
- package/dist/ui-dimension.js +779 -0
- package/dist/ui-dimension.js.map +1 -0
- package/dist/ui-dimmer.js +36 -34
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.js +7 -5
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.js +107 -105
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.js +36 -35
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.js +10 -9
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-example.js +63 -61
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-feed.js +12 -10
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-flag.js +10 -9
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.js +7 -6
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.js +244 -162
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.js +21 -18
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-icon-picker.js +46 -44
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.js +17 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-image.js +93 -55
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-include.js +18 -17
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.js +154 -112
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.js +152 -102
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.js +9 -8
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.js +115 -0
- package/dist/ui-json.js.map +1 -0
- package/dist/ui-keys.js +1 -1
- package/dist/ui-label.js +18 -15
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-list.js +7 -5
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.js +7 -6
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.js +975 -83
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.js +329 -196
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.js +20 -18
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-modal.js +46 -45
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.js +19 -18
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-page.js +8 -7
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.js +28 -17
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +66 -52
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder.js +21 -16
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.js +113 -84
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.js +9 -7
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.js +706 -203
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-quote.js +5 -4
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-rail.js +5 -4
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.js +31 -29
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-reveal.js +7 -6
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.js +324 -158
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-search.js +210 -168
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.js +167 -130
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-segment.js +15 -12
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-select.js +83 -81
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.js +86 -58
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-sidebar.js +59 -56
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.js +325 -0
- package/dist/ui-sides.js.map +1 -0
- package/dist/ui-site-nav.js +329 -0
- package/dist/ui-site-nav.js.map +1 -0
- package/dist/ui-site-tabs.js +177 -0
- package/dist/ui-site-tabs.js.map +1 -0
- package/dist/ui-slider.js +84 -81
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.js +7 -6
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.js +298 -0
- package/dist/ui-split-panel.js.map +1 -0
- package/dist/ui-stack.js +47 -23
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.js +15 -13
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-step.js +31 -29
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-sticky.js +7 -6
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-tab.js +230 -138
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.js +724 -162
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-terms.js +12 -10
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.js +53 -28
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-theme-editor.js +1018 -1545
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js +1493 -0
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +1 -0
- package/dist/ui-toast.js +45 -44
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.js +75 -74
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.js +51 -73
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.js +12 -11
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.js +676 -197
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree.js +625 -0
- package/dist/ui-tree.js.map +1 -0
- package/dist/ui-video.js +13 -11
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.js +26 -25
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.js +79 -78
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +28 -0
- package/dist/util/index.d.ts +5 -2
- package/dist/vocabulary/DefaultValues.d.ts +34 -0
- package/dist/vocabulary/SharedVocabulary.d.ts +4 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +7 -0
- package/dist/vocabulary/ValueSets.d.ts +18 -0
- package/dist/vocabulary/Vocabulary.d.ts +1 -0
- package/dist/vocabulary/defaults.generated.d.ts +6 -0
- package/dist/vocabulary/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/MarkdownEngine-CbuT9Mjc.js.map +0 -1
- package/dist/PrefStore-CeaTtjTz.js.map +0 -1
- package/dist/UIButton-XkfGqgh6.js +0 -6
- package/dist/UIButton-XkfGqgh6.js.map +0 -1
- package/dist/UIInput-BUudZstW.js +0 -6
- package/dist/UIInput-BUudZstW.js.map +0 -1
- package/dist/UIKeys-DJF2TIKE.js.map +0 -1
- package/dist/UILabel-C1jy3Yl8.js +0 -6
- package/dist/UILabel-C1jy3Yl8.js.map +0 -1
- package/dist/UIMenu-Btd-8V3A.js +0 -42
- package/dist/UIMenu-Btd-8V3A.js.map +0 -1
- package/dist/UIRuntime-BBuehGly.js.map +0 -1
- package/dist/components.es-DmLzT-Bq.js.map +0 -1
- package/dist/crisp-CoZRRDuQ.js +0 -6
- package/dist/fruity-CQFYeRlh.js +0 -6
- package/dist/fruity-CQFYeRlh.js.map +0 -1
- package/dist/fruity.theme-BJcMiPl1.js.map +0 -1
- package/dist/glass-CAfW11kL.js +0 -6
- package/dist/glass-CAfW11kL.js.map +0 -1
- package/dist/glass.theme-DQcBbtCW.js +0 -6
- package/dist/glass.theme-DQcBbtCW.js.map +0 -1
- package/dist/matrix-CqA59hiF.js +0 -6
- package/dist/matrix.theme-jqQZjcq3.js.map +0 -1
- package/dist/midnight-BnoVOrhC.js +0 -6
- package/dist/paper-CynH8ZuT.js +0 -6
- package/dist/persist.types-CsZxS8TG.js +0 -9
- package/dist/persist.types-CsZxS8TG.js.map +0 -1
- package/dist/pop-D2i9V_rG.js +0 -6
- package/dist/spell-BFtLICm7.js +0 -6
- package/dist/spell.theme-B7AU7SQX.js.map +0 -1
- package/dist/styles.en-RLpYiO5_.js.map +0 -1
- package/dist/ui-theme-menu-DyKZygpV.js +0 -921
- package/dist/ui-theme-menu-DyKZygpV.js.map +0 -1
package/dist/ui-terms.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { Bt as e,
|
|
2
|
+
import { Bt as e, Ht as t, Lt as n, PartContext as r, Rt as i, UIComponent as a, Ut as o, cssState as s, proto as c, protoMerged as l, zt 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
|
//#region src/components/ui-terms/UITerms.en.ts
|
|
5
5
|
var v = {
|
|
6
6
|
tag: "ui-terms",
|
|
7
|
+
icon: "book open",
|
|
7
8
|
topics: [
|
|
8
9
|
"text",
|
|
9
10
|
"data display",
|
|
@@ -50,9 +51,9 @@ var v = {
|
|
|
50
51
|
}],
|
|
51
52
|
texts: [],
|
|
52
53
|
ownsParts: ["term"]
|
|
53
|
-
}, 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 =
|
|
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 = a, C = [c], S = [l], x = [s("horizontal")], w) {
|
|
54
55
|
constructor() {
|
|
55
|
-
super(...arguments),
|
|
56
|
+
super(...arguments), o(T, 5, this);
|
|
56
57
|
}
|
|
57
58
|
get isHorizontal() {
|
|
58
59
|
return this.direction === O;
|
|
@@ -66,16 +67,17 @@ var v = {
|
|
|
66
67
|
return e._$owner = p(), e;
|
|
67
68
|
}
|
|
68
69
|
};
|
|
69
|
-
T =
|
|
70
|
+
T = u(w), n(T, 2, "isHorizontal", x, E), n(T, 13, "vocabulary", C, E), n(T, 13, "elementSetup", S, E), i(T, E), e(E, "UITerms"), t(E, "vocabulary", o(T, 8, E, v)), o(T, 11, E), t(E, "elementSetup", o(T, 12, E, {
|
|
70
71
|
styleSheets: { terms: y },
|
|
71
72
|
delegatesFocus: !1
|
|
72
|
-
})),
|
|
73
|
+
})), o(T, 15, E);
|
|
73
74
|
var D = E, O = "horizontal", k = {
|
|
74
75
|
sm: "var(--ui-space-2xs)",
|
|
75
76
|
md: "var(--ui-space-xs)",
|
|
76
77
|
lg: "var(--ui-space-m)"
|
|
77
78
|
}, A = {
|
|
78
79
|
tag: "ui-term",
|
|
80
|
+
icon: "book",
|
|
79
81
|
topics: ["text", "data display"],
|
|
80
82
|
aka: [
|
|
81
83
|
"dt",
|
|
@@ -121,15 +123,15 @@ var D = E, O = "horizontal", k = {
|
|
|
121
123
|
description: "Set while its `<ui-terms>` is `direction=\"horizontal\"`."
|
|
122
124
|
}],
|
|
123
125
|
texts: []
|
|
124
|
-
}, 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 =
|
|
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 = a, I = [c], F = [l], P = [s("in-row")], L) {
|
|
125
127
|
constructor() {
|
|
126
|
-
super(...arguments),
|
|
128
|
+
super(...arguments), o(R, 5, this), t(this, "context", new r({
|
|
127
129
|
domElement: this.domElement,
|
|
128
130
|
noun: this.vocabulary.noun
|
|
129
131
|
}));
|
|
130
132
|
}
|
|
131
133
|
get isInRow() {
|
|
132
|
-
return !!
|
|
134
|
+
return !!r.componentFor(this.context.owner)?.isHorizontal;
|
|
133
135
|
}
|
|
134
136
|
render() {
|
|
135
137
|
let e = this;
|
|
@@ -153,11 +155,11 @@ var D = E, O = "horizontal", k = {
|
|
|
153
155
|
})()];
|
|
154
156
|
}
|
|
155
157
|
};
|
|
156
|
-
R =
|
|
158
|
+
R = u(L), n(R, 2, "isInRow", P, z), n(R, 13, "vocabulary", I, z), n(R, 13, "elementSetup", F, z), i(R, z), e(z, "UITerm"), t(z, "vocabulary", o(R, 8, z, A)), o(R, 11, z), t(z, "elementSetup", o(R, 12, z, {
|
|
157
159
|
styleSheets: { term: j },
|
|
158
160
|
delegatesFocus: !1,
|
|
159
161
|
isAPart: !0
|
|
160
|
-
})),
|
|
162
|
+
})), o(R, 15, z);
|
|
161
163
|
var B = z, V = "label", H = "value";
|
|
162
164
|
D.define(), B.define();
|
|
163
165
|
//#endregion
|
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","__publicField","__decorateElement","__decoratorMetadata","__decoratorStart","__name$1","__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.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 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 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,QAAQ;EAAC;EAAQ;EAAgB;CAAa;CAC9C,KAAK;EAAC;EAAM;EAAmB;EAAoB;EAAkB;EAAc;CAAS;CAC5F,MAAM;CACN,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;G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AAtB4B,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,MAAMnC,EAAQ;CAC7B,gBAAgB;CAChB,SAAS;AACX,CAAA,CAAA,GAJeM,EAAA4B,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","__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,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,+SE/CAG,GAAAlC,GAAAC,GAAAC,GAAAC,GAiBaoC,IAAN,MAAM,kBAAgB,IAAAnC,GAC3B,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAMH,IAAA,CAACC,EAAW,YAAY,CAAA,GARGL,EAAAA,CAAsC;CAA5D,cAAA;EAAA,AAAA,MAAA,GAAA,SAAA,GAAA2B,EAAA1B,GAAA,GAAA,IAAA;CAAA;CASL,IAAI,eAAwB;EAC1B,OAAO,KAAK,cAAcyC;CAC5B;CAGA,IAAc,aAAqB;EACjC,IAAMC,IAAMC,EAAQ,KAAK,YAAoCA,EAAQ;EACrE,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AA;IAAO5D,GAAMH,EAAK,YAAY,OAAO;GAArC,KAAP,EAAA,GAAA,QAAA,MAAA;IAAc,AAAPwD,EAAAK,GAAA,GAAAJ,GAAA,CAAA,GAAOC,MAAAD,GAAA,KAAA9C,EAAAkD,GAAA,QAAAH,CAA8B;GAArC,CAAA,GAAbG;EAAC,EAAA,CAAA,CAJD;CASN;AACF;AA7BO,IAAA1C,EAAA2B,CAAA,GAaL9B,EAAA+B,GAAA,GAAI,WADJJ,GAZWK,CAAA,GACFhC,EAAA+B,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEIhC,EAAA+B,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAAN/B,EAAA8B,GAAMC,CAAA,GAAoDpC,EAAAoC,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"}
|
package/dist/ui-text.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { Bt as e,
|
|
2
|
+
import { Bt as e, Ht as t, Lt as n, NodeType as r, Rt as i, S as a, UIComponent as o, Ut as s, Vt as ee, b as c, cssState as l, onChange as te, proto as u, protoMerged as d, state as f, watches as p, x as ne, zt as m } from "./core.js";
|
|
3
3
|
import { Show as h } from "solid-js";
|
|
4
|
-
import { Dynamic as g, claimElement as _, className as
|
|
4
|
+
import { Dynamic as g, claimElement as _, className as re, createComponent as v, effect as y, getOwner as b, insert as x, readShallow as S, setAttribute as C, template as w } from "@solidjs/web";
|
|
5
5
|
//#region src/components/ui-text/UIText.en.ts
|
|
6
6
|
var T = {
|
|
7
7
|
tag: "ui-text",
|
|
8
|
+
icon: "font",
|
|
9
|
+
snippet: "<ui-text>Some words</ui-text>",
|
|
8
10
|
topics: [
|
|
9
11
|
"text",
|
|
10
12
|
"typography",
|
|
@@ -69,6 +71,12 @@ var T = {
|
|
|
69
71
|
kind: "boolean",
|
|
70
72
|
description: "Bold letters (`<strong>`)."
|
|
71
73
|
},
|
|
74
|
+
{
|
|
75
|
+
name: "heavy",
|
|
76
|
+
group: "appearance",
|
|
77
|
+
kind: "boolean",
|
|
78
|
+
description: "Heavier letters than `bold` (`<strong>`): a poster's title, a logo."
|
|
79
|
+
},
|
|
72
80
|
{
|
|
73
81
|
name: "italic",
|
|
74
82
|
group: "appearance",
|
|
@@ -177,13 +185,13 @@ var T = {
|
|
|
177
185
|
description: "Set while it's a paragraph (`paragraph`)."
|
|
178
186
|
}],
|
|
179
187
|
texts: []
|
|
180
|
-
}, E = "@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))}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)}}",
|
|
188
|
+
}, E = "@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)}}", ie = /* @__PURE__ */ w("<a>"), D = /* @__PURE__ */ w("<p>"), O = /* @__PURE__ */ w("<slot>"), k, A, j, M, N, P, F, I, L = class _UIText extends (P = o, N = [u], M = [d], j = [l("lines"), f], A = [te("paragraph", "isConnected")], k = [p({
|
|
181
189
|
childList: !0,
|
|
182
190
|
subtree: !0,
|
|
183
191
|
characterData: !0
|
|
184
|
-
})],
|
|
192
|
+
})], P) {
|
|
185
193
|
constructor() {
|
|
186
|
-
super(...arguments),
|
|
194
|
+
super(...arguments), s(F, 5, this), ee(this, I, s(F, 8, this, !1)), s(F, 11, this);
|
|
187
195
|
}
|
|
188
196
|
render() {
|
|
189
197
|
let e = this;
|
|
@@ -195,7 +203,7 @@ var T = {
|
|
|
195
203
|
return _UIText.inlineBox(e);
|
|
196
204
|
},
|
|
197
205
|
get children() {
|
|
198
|
-
var t =
|
|
206
|
+
var t = D();
|
|
199
207
|
return x(t, v(h, {
|
|
200
208
|
get when() {
|
|
201
209
|
return e.linkTo;
|
|
@@ -204,7 +212,7 @@ var T = {
|
|
|
204
212
|
return _UIText.styled(e.fontStates);
|
|
205
213
|
},
|
|
206
214
|
get children() {
|
|
207
|
-
var t =
|
|
215
|
+
var t = ie(), n = b();
|
|
208
216
|
return x(t, () => _UIText.styled(e.fontStates)), y(() => ({
|
|
209
217
|
e: e.linkTo,
|
|
210
218
|
t: e.linkTarget
|
|
@@ -216,7 +224,7 @@ var T = {
|
|
|
216
224
|
e: S(e.rootClass),
|
|
217
225
|
t: e.partForName("text")
|
|
218
226
|
}), ({ e, t: n }, r) => {
|
|
219
|
-
|
|
227
|
+
re(t, e, r?.e), n !== r?.t && C(t, "part", n);
|
|
220
228
|
}), t;
|
|
221
229
|
}
|
|
222
230
|
});
|
|
@@ -224,6 +232,7 @@ var T = {
|
|
|
224
232
|
get fontStates() {
|
|
225
233
|
let e = {
|
|
226
234
|
bold: this.bold,
|
|
235
|
+
heavy: this.heavy,
|
|
227
236
|
italic: this.italic,
|
|
228
237
|
underline: this.underline,
|
|
229
238
|
strikethrough: this.strikethrough,
|
|
@@ -234,9 +243,9 @@ var T = {
|
|
|
234
243
|
"all-caps": this.allCaps,
|
|
235
244
|
"title-caps": this.titleCaps
|
|
236
245
|
}, t = super.fontStates;
|
|
237
|
-
for (let n of
|
|
246
|
+
for (let n of c) e[n] && (t[`font-${n}`] = !0);
|
|
238
247
|
let { family: n } = this;
|
|
239
|
-
for (let e of
|
|
248
|
+
for (let e of W) t[`font-${e}`] = e === n;
|
|
240
249
|
return t;
|
|
241
250
|
}
|
|
242
251
|
get family() {
|
|
@@ -248,7 +257,7 @@ var T = {
|
|
|
248
257
|
"sans-serif": this.sansSerif,
|
|
249
258
|
typewriter: this.typewriter
|
|
250
259
|
};
|
|
251
|
-
return
|
|
260
|
+
return W.find((n) => t[n] || e[`font-${n}`]);
|
|
252
261
|
}
|
|
253
262
|
onParagraphChanged(e, t) {
|
|
254
263
|
e && t && this.breakLines();
|
|
@@ -259,9 +268,9 @@ var T = {
|
|
|
259
268
|
breakLines() {
|
|
260
269
|
let e = document.createTreeWalker(this.domElement, NodeFilter.SHOW_TEXT);
|
|
261
270
|
for (let t = e.nextNode(); t; t = e.nextNode()) {
|
|
262
|
-
if (
|
|
263
|
-
let e = t.data.replace(
|
|
264
|
-
e !== t.data && (t.data = e),
|
|
271
|
+
if (z.get(t) === t.data || U.has(t.parentElement?.localName ?? "")) continue;
|
|
272
|
+
let e = t.data.replace(B, H).replace(V, " ").replaceAll(H, "\n");
|
|
273
|
+
e !== t.data && (t.data = e), z.set(t, e);
|
|
265
274
|
}
|
|
266
275
|
this.hasLineBreaks = !0;
|
|
267
276
|
}
|
|
@@ -288,11 +297,11 @@ var T = {
|
|
|
288
297
|
});
|
|
289
298
|
}
|
|
290
299
|
static styled(e) {
|
|
291
|
-
var t =
|
|
300
|
+
var t = O();
|
|
292
301
|
t._$owner = b();
|
|
293
302
|
let n = t;
|
|
294
|
-
for (let t of [...
|
|
295
|
-
let r =
|
|
303
|
+
for (let t of [...a].reverse()) {
|
|
304
|
+
let r = G[t];
|
|
296
305
|
r && e[`font-${t}`] && (n = v(g, {
|
|
297
306
|
component: r,
|
|
298
307
|
children: n
|
|
@@ -301,23 +310,25 @@ var T = {
|
|
|
301
310
|
return n;
|
|
302
311
|
}
|
|
303
312
|
};
|
|
304
|
-
|
|
313
|
+
F = m(P), I = /* @__PURE__ */ new WeakMap(), n(F, 4, "hasLineBreaks", j, L, I), n(F, 1, "onParagraphChanged", A, L), n(F, 1, "onTextChanged", k, L), n(F, 13, "vocabulary", N, L), n(F, 13, "elementSetup", M, L), i(F, L), e(L, "UIText"), t(L, "vocabulary", s(F, 12, L, T)), s(F, 15, L), t(L, "elementSetup", s(F, 16, L, {
|
|
305
314
|
styleSheets: { text: E },
|
|
306
315
|
delegatesFocus: !1,
|
|
307
316
|
disabled: "its own",
|
|
308
317
|
link: "its own",
|
|
309
318
|
cssStates: ["paragraph"]
|
|
310
|
-
})),
|
|
311
|
-
var
|
|
319
|
+
})), s(F, 19, L);
|
|
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", ...ne], G = {
|
|
312
321
|
bold: "strong",
|
|
322
|
+
heavy: "strong",
|
|
313
323
|
italic: "em",
|
|
314
324
|
strikethrough: "s",
|
|
315
325
|
code: "code",
|
|
316
326
|
highlight: "mark",
|
|
317
327
|
subscript: "sub",
|
|
318
328
|
superscript: "sup"
|
|
319
|
-
},
|
|
329
|
+
}, K = {
|
|
320
330
|
tag: "ui-link",
|
|
331
|
+
icon: "linkify",
|
|
321
332
|
topics: [
|
|
322
333
|
"text",
|
|
323
334
|
"navigation",
|
|
@@ -369,22 +380,36 @@ var z = R, B = /* @__PURE__ */ new WeakMap(), V = /[ \t]*\n(?:[ \t]*\n)+[ \t]*/g
|
|
|
369
380
|
states: [{
|
|
370
381
|
name: "disabled",
|
|
371
382
|
description: "Faded, and no longer a link."
|
|
383
|
+
}, {
|
|
384
|
+
name: "icon-only",
|
|
385
|
+
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."
|
|
372
386
|
}],
|
|
373
387
|
texts: []
|
|
374
|
-
}, J, Y, X, Z, Q = class _UILink extends (X =
|
|
388
|
+
}, q, J, Y, X, Z, Q = class _UILink extends (X = o, Y = [u], J = [d], q = [l("icon-only"), p({
|
|
389
|
+
childList: !0,
|
|
390
|
+
characterData: !0,
|
|
391
|
+
subtree: !0
|
|
392
|
+
})], X) {
|
|
393
|
+
constructor() {
|
|
394
|
+
super(...arguments), s(Z, 5, this);
|
|
395
|
+
}
|
|
396
|
+
get isIconOnly() {
|
|
397
|
+
let t = [...this.domElement.childNodes], n = /* @__PURE__ */ e((e) => e.nodeType === r.element && o.registry.definitions.get(e.localName)?.vocabulary.noun === ae, "isIcon"), i = /* @__PURE__ */ e((e) => e.nodeType === r.text && !e.textContent?.trim(), "isBlank");
|
|
398
|
+
return t.some(n) && t.every((e) => n(e) || i(e));
|
|
399
|
+
}
|
|
375
400
|
render() {
|
|
376
|
-
return
|
|
401
|
+
return R.inlineBox(this);
|
|
377
402
|
}
|
|
378
403
|
};
|
|
379
|
-
Z =
|
|
404
|
+
Z = m(X), n(Z, 2, "isIconOnly", q, Q), n(Z, 13, "vocabulary", Y, Q), n(Z, 13, "elementSetup", J, Q), i(Z, Q), e(Q, "UILink"), t(Q, "vocabulary", s(Z, 8, Q, K)), s(Z, 11, Q), t(Q, "elementSetup", s(Z, 12, Q, {
|
|
380
405
|
styleSheets: { text: E },
|
|
381
406
|
delegatesFocus: !1,
|
|
382
407
|
disabled: "its own",
|
|
383
408
|
link: "its own"
|
|
384
|
-
})),
|
|
385
|
-
var $ = Q;
|
|
386
|
-
|
|
409
|
+
})), s(Z, 15, Q);
|
|
410
|
+
var $ = Q, ae = "icon";
|
|
411
|
+
R.define(), $.define();
|
|
387
412
|
//#endregion
|
|
388
|
-
export { $ as UILink,
|
|
413
|
+
export { $ as UILink, R as UIText };
|
|
389
414
|
|
|
390
415
|
//# 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","__name","textCSS","__publicField","__decorateElement","__decoratorMetadata","__decoratorStart","__name$1","FontWords","__runInitializers","FontFaces","FontFamilies","__privateAdd","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","_elementSetup_dec","_vocabulary_dec","_a","_init","_UILink","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 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 { 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 /* 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 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 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 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: [{ name: \"disabled\", description: \"Faded, and no longer a link.\" }],\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 ****************/\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 render(): JSX.Element {\n return UIText.inlineBox(this)\n }\n}\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,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;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;EAC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EAAA4E,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEI7E,EAAA4E,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAAN5E,EAAA2E,GAAMC,CAAA,GAAoDhF,EAAAgF,GAAA,QAAA,GACtD9E,EADE8E,GACK,cAAaxE,EAApBuE,GAAA,GADEC,GACkBL,CAAA,CAAA,GAApBnE,EAAAuE,GAAA,IADEC,CAAA,GAEI9E,EAFJ8E,GAEW,gBAAexE,EAAtBuE,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,MAAM/E,EAAQ;CAC7B,gBAAgB;CAEhB,UAAU;CAEV,MAAM;AACR,CAAA,CAAA,GAPeO,EAAAuE,GAAA,IAFJC,CAAA;AAAN,IAAMC,IAAND;ACXPN,EAAO,OAAO,GACdO,EAAO,OAAO"}
|
|
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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