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-image.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { Bt as e,
|
|
3
|
-
import { Show as
|
|
4
|
-
import { addEvent as
|
|
2
|
+
import { Bt as e, Ht as t, Lt as n, Rt as r, SlotContent as i, UIComponent as a, Ut as o, Warnings as s, cssState as c, proto as l, protoMerged as u, untracked as d, zt as f } from "./core.js";
|
|
3
|
+
import { Show as p } from "solid-js";
|
|
4
|
+
import { addEvent as m, claimElement as h, className as g, createComponent as _, delegateEvents as v, effect as y, getOwner as b, insert as x, readShallow as S, setAttribute as C, style as w, template as T } from "@solidjs/web";
|
|
5
5
|
//#region src/components/ui-image/UIImage.en.ts
|
|
6
|
-
var
|
|
6
|
+
var E = {
|
|
7
7
|
tag: "ui-image",
|
|
8
|
+
icon: "image outline",
|
|
8
9
|
topics: [
|
|
9
10
|
"images",
|
|
10
11
|
"media",
|
|
@@ -61,6 +62,13 @@ var C = {
|
|
|
61
62
|
],
|
|
62
63
|
description: "The look, several words at once: `bordered` (a hairline border, for images with white edges), `circular` (cropped to a circle; a pill when not square), `rounded` (softly rounded corners). Old names: `bordered`, `circular`, `rounded` written alone."
|
|
63
64
|
},
|
|
65
|
+
{
|
|
66
|
+
name: "background",
|
|
67
|
+
group: "appearance",
|
|
68
|
+
kind: "valueAndKey",
|
|
69
|
+
values: "hues",
|
|
70
|
+
description: "A hue behind the picture, drawn soft (its light tint), with room round the picture: `background=\"yellow\"`. With `circular` it's a circle. A transparent drawing on a coloured disc, so it has no hairline round it: the theme's hairline is for photos with white edges, which `bordered` names."
|
|
71
|
+
},
|
|
64
72
|
{
|
|
65
73
|
name: "align",
|
|
66
74
|
group: "layout",
|
|
@@ -155,6 +163,20 @@ var C = {
|
|
|
155
163
|
kind: "number",
|
|
156
164
|
description: "Intrinsic height in px, as the native `<img height>`: reserves space before load."
|
|
157
165
|
},
|
|
166
|
+
{
|
|
167
|
+
name: "aspect-ratio",
|
|
168
|
+
group: "appearance",
|
|
169
|
+
kind: "string",
|
|
170
|
+
description: "Its shape, width to height: `2:3` (a book's cover), `16:9`, `1` (a square); `2/3` too. The whole picture shows inside that shape, unless `crop`. So a row of cards lines up, whatever shape each picture is."
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "crop",
|
|
174
|
+
group: "appearance",
|
|
175
|
+
kind: "keyOrValueAndKey",
|
|
176
|
+
key: "cropped",
|
|
177
|
+
values: "attachments",
|
|
178
|
+
description: "Fills its shape (`aspect-ratio`, or its `size` and `height`), cutting off what doesn't fit, rather than showing the whole picture. `crop` alone keeps the middle; `crop=\"top\"` keeps the top (a face), `bottom`, `left`, `right`, `top left` ..."
|
|
179
|
+
},
|
|
158
180
|
{
|
|
159
181
|
name: "loading",
|
|
160
182
|
group: "states",
|
|
@@ -202,6 +224,9 @@ var C = {
|
|
|
202
224
|
states: [{
|
|
203
225
|
name: "disabled",
|
|
204
226
|
description: "Faded: shown as unavailable."
|
|
227
|
+
}, {
|
|
228
|
+
name: "shaped",
|
|
229
|
+
description: "`aspect-ratio` gives it a shape."
|
|
205
230
|
}],
|
|
206
231
|
texts: [{
|
|
207
232
|
key: "zoom",
|
|
@@ -212,20 +237,20 @@ var C = {
|
|
|
212
237
|
text: "Show the image full size",
|
|
213
238
|
description: "With `zoom`, and no `alt`: its name."
|
|
214
239
|
}]
|
|
215
|
-
},
|
|
240
|
+
}, D = "@layer ui.components.image.types{:host{display:var(--_ui-image-owner-display,contents);vertical-align:var(--_ui-image-owner-align,baseline)}.ui.image,.ui.images{--_ui-image-placeholder-color:var(--ui-image-placeholder-color,transparent);--_ui-image-rounded-radius:var(--ui-image-rounded-radius,var(--ui-radius));--_ui-image-circular-radius:var(--ui-image-circular-radius,var(--ui-radius-pill));--_ui-image-border:var(--ui-image-border,var(--ui-border-width) solid var(--ui-border-color));--_ui-image-group-margin-x:var(--ui-image-group-margin-x,var(--ui-space-2xs));--_ui-image-group-margin-y:var(--ui-image-group-margin-y,var(--ui-space-xs));--_ui-image-avatar-size:var(--ui-image-avatar-size,2em);--_ui-image-avatar-margin:var(--ui-image-avatar-margin,var(--ui-space-2xs));--_ui-image-spaced-distance:var(--ui-image-spaced-distance,var(--ui-space-xs));--_ui-image-floated-margin-x:var(--ui-image-floated-margin-x,var(--ui-space-m));--_ui-image-floated-margin-y:var(--ui-image-floated-margin-y,var(--ui-space-m));--_ui-image-disabled-opacity:var(--ui-image-disabled-opacity,var(--ui-disabled-opacity));--_ui-image-focus-width:var(--ui-image-focus-width,var(--ui-focus-width,2px));--_ui-image-background:var(--ui-image-background,oklch(from var(--ui-color) .96 calc(c * .5) h));--_ui-image-background-padding:var(--ui-image-background-padding,.75em);--_ui-image-width-mini:var(--ui-image-width-mini,calc(var(--ui-font-size) * 2.1875));--_ui-image-width-tiny:var(--ui-image-width-tiny,calc(var(--ui-font-size) * 5));--_ui-image-width-small:var(--ui-image-width-small,calc(var(--ui-font-size) * 9.375));--_ui-image-width-medium:var(--ui-image-width-medium,calc(var(--ui-font-size) * 18.75));--_ui-image-width-large:var(--ui-image-width-large,calc(var(--ui-font-size) * 28.125));--_ui-image-width-big:var(--ui-image-width-big,calc(var(--ui-font-size) * 37.5));--_ui-image-width-huge:var(--ui-image-width-huge,calc(var(--ui-font-size) * 50));--_ui-image-width-massive:var(--ui-image-width-massive,calc(var(--ui-font-size) * 60))}.ui.image,.ui.images>:is(img,svg),.ui.images>::slotted(:is(img,svg)){box-sizing:border-box;display:var(--_image-display,inline-block);align-self:var(--_image-align,var(--_ui-images-align,var(--_ui-image-owner-align-self,auto)));vertical-align:var(--_image-valign,middle);width:var(--_ui-image-owner-width,var(--_image-width,var(--_ui-images-width,auto)));max-width:var(--_ui-image-owner-max-width,100%);max-height:var(--_ui-image-owner-max-height,none);height:var(--_image-height,var(--_ui-images-height,auto));margin:var(--_image-margin,var(--_ui-images-margin,0));border:var(--_image-border,var(--_ui-images-border,none));border-radius:var(--_image-radius,var(--_ui-images-radius,0));background-color:var(--_ui-image-placeholder-color);object-fit:var(--_image-fit,fill);position:relative}img.ui.image{--_image-display:block}a.ui.image{color:inherit;line-height:0;text-decoration:none}a.ui.image:focus-visible{outline:var(--_ui-image-focus-width) solid var(--ui-focus-color);outline-offset:var(--_ui-image-focus-width)}.ui.image img,.ui.image svg{width:var(--_image-inner-width,auto);max-width:100%;height:var(--_image-inner-height,auto);border-radius:inherit;object-fit:inherit;display:block}.ui.image>*{--_ui-images-width:initial;--_ui-images-height:initial;--_ui-images-margin:initial;--_ui-images-border:initial;--_ui-images-radius:initial;--_ui-images-align:initial;--_image-size:initial;--_image-display:initial;--_image-align:initial;--_image-valign:initial;--_image-width:initial;--_image-height:initial;--_image-margin:initial;--_image-border:initial;--_image-radius:initial;--_image-fit:initial;--_image-floated-bottom:initial}.ui.images{box-sizing:border-box;margin:0 calc(var(--_ui-image-group-margin-x) * -1);flex-wrap:wrap;align-items:center;display:flex}.ui.images>*,.ui.images>::slotted(*){--_ui-images-margin:0 var(--_ui-image-group-margin-x) var(--_ui-image-group-margin-y);--_ui-images-width:var(--_image-size)}}@layer ui.components.image.content{.figure{margin:0 0 1em;display:table}:host(:last-child)>.figure{margin-block-end:0}.figure>figcaption{caption-side:bottom;color:var(--ui-text-muted);font-size:.875em;line-height:var(--ui-line-height);padding-block-start:var(--ui-space-xs);display:table-caption}}@layer ui.components.image.variations{.ui.inline.image{--_image-display:inline-block}.ui.inline.image>:is(img,svg){display:inline-block}.ui:is([class*=top\\ aligned],[class*=middle\\ aligned],[class*=bottom\\ aligned]).image{--_image-display:inline-block}.ui[class*=top\\ aligned].image{--_image-valign:top;--_image-align:flex-start}.ui[class*=middle\\ aligned].image{--_image-valign:middle;--_image-align:center}.ui[class*=bottom\\ aligned].image{--_image-valign:bottom;--_image-align:flex-end}.ui[class*=top\\ aligned].images{align-items:flex-start}.ui[class*=bottom\\ aligned].images{align-items:flex-end}.ui.rounded.image{--_image-radius:var(--_ui-image-rounded-radius)}.ui.rounded.images>*,.ui.rounded.images>::slotted(*){--_ui-images-radius:var(--_ui-image-rounded-radius)}.ui.bordered.image:is(img,svg){--_image-border:var(--_ui-image-border)}.ui.bordered.image>:is(img,svg){border:var(--_ui-image-border)}.ui.bordered.images>*,.ui.bordered.images>::slotted(*){--_ui-images-border:var(--_ui-image-border)}.ui.background.image{padding:var(--_ui-image-background-padding);background-color:var(--_ui-image-background)}.ui.circular.image{--_image-radius:var(--_ui-image-circular-radius);overflow:hidden}.ui.circular.background.image{--_image-radius:0;background:radial-gradient(circle closest-side, var(--_ui-image-background) 99%, transparent 100%) content-box;overflow:visible}.ui.circular.images>*,.ui.circular.images>::slotted(*){--_ui-images-radius:var(--_ui-image-circular-radius)}.ui.fluid.image{--_image-display:block;--_image-width:100%;--_image-inner-width:100%}.ui.fluid.images{width:100%}.ui.fluid.images>*,.ui.fluid.images>::slotted(*){--_ui-images-width:100%}.ui.avatar.image{--_image-display:inline-block;--_image-width:var(--_ui-image-avatar-size);--_image-height:var(--_ui-image-avatar-size);--_image-inner-width:100%;--_image-inner-height:100%;--_image-margin:0 var(--_ui-image-avatar-margin) 0 0;--_image-radius:var(--_ui-image-circular-radius);--_image-fit:cover}.ui.avatar.images>*,.ui.avatar.images>::slotted(*){--_ui-images-width:var(--_ui-image-avatar-size);--_ui-images-height:var(--_ui-image-avatar-size);--_ui-images-radius:var(--_ui-image-circular-radius)}:host(:state(shaped)) .ui.image{--_image-inner-width:100%;--_image-inner-height:100%;aspect-ratio:var(--_image-ratio);object-fit:var(--_image-fit,contain)}.ui.cropped.image,.ui.cropped.image img{--_image-fit:cover;object-position:var(--_image-crop,center)}.ui[class*=top\\ cropped].image{--_image-crop:top}.ui[class*=bottom\\ cropped].image{--_image-crop:bottom}.ui[class*=left\\ cropped].image{--_image-crop:left}.ui[class*=right\\ cropped].image{--_image-crop:right}.ui[class*=\"top left cropped\"].image{--_image-crop:top left}.ui[class*=\"top right cropped\"].image{--_image-crop:top right}.ui[class*=\"bottom left cropped\"].image{--_image-crop:bottom left}.ui[class*=\"bottom right cropped\"].image{--_image-crop:bottom right}.ui.spaced.image,.ui:is([class*=left\\ spaced],[class*=right\\ spaced]).image{--_image-display:inline-block;--_image-margin:0 var(--_ui-image-spaced-distance)}.ui[class*=left\\ spaced].image{--_image-margin:0 0 0 var(--_ui-image-spaced-distance)}.ui[class*=right\\ spaced].image{--_image-margin:0 var(--_ui-image-spaced-distance) 0 0}.ui:is(.floated,[class*=left\\ floated]):is(.image,.images){--_image-floated-bottom:var(--_ui-image-floated-margin-y);float:left}.ui[class*=right\\ floated]:is(.image,.images){float:right}.ui.floated:is(.image,.images):last-child{--_image-floated-bottom:0px}:host(:not(:last-child))>.ui.floated:is(.image,.images){--_image-floated-bottom:var(--_ui-image-floated-margin-y)}.ui.floated.image{--_image-margin:0 var(--_ui-image-floated-margin-x) var(--_image-floated-bottom) 0}.ui[class*=right\\ floated].image{--_image-margin:0 0 var(--_image-floated-bottom) var(--_ui-image-floated-margin-x)}.ui.floated.images{margin:0 var(--_ui-image-floated-margin-x) var(--_image-floated-bottom) 0}.ui[class*=right\\ floated].images{margin:0 0 var(--_image-floated-bottom) var(--_ui-image-floated-margin-x)}.ui.centered.image{--_image-display:block;--_image-margin:0 auto}.ui.centered.images{justify-content:center}.ui.mini:is(.image,.images){--_image-size:var(--_ui-image-width-mini)}.ui.tiny:is(.image,.images){--_image-size:var(--_ui-image-width-tiny)}.ui.small:is(.image,.images){--_image-size:var(--_ui-image-width-small)}.ui.medium:is(.image,.images){--_image-size:var(--_ui-image-width-medium)}.ui.large:is(.image,.images){--_image-size:var(--_ui-image-width-large)}.ui.big:is(.image,.images){--_image-size:var(--_ui-image-width-big)}.ui.huge:is(.image,.images){--_image-size:var(--_ui-image-width-huge)}.ui.massive:is(.image,.images){--_image-size:var(--_ui-image-width-massive)}.ui:is(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive):is(.image,.images){font-size:calc(var(--ui-font-size) * var(--ui-scale,1))}.ui:is(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive).image{--_image-width:var(--_image-size);--_image-height:auto;--_image-inner-width:100%}}@layer ui.components.image.states{.ui.hidden:is(.image,.images){display:none}.ui.disabled:is(.image,.images){cursor:default;opacity:var(--_ui-image-disabled-opacity)}:host([zoom]:not([disabled])) img{cursor:zoom-in}:host([zoom]) img:focus-visible{outline:2px solid var(--ui-focus-color,Highlight);outline-offset:2px}}", O = /* @__PURE__ */ T("<figure><figcaption><slot>"), k = /* @__PURE__ */ T("<a>"), A = /* @__PURE__ */ T("<img>", 1), j, M, N, P, F, I, L, R = class _UIImage extends (I = a, F = [l], P = [u], N = [c("shaped")], M = [d], j = [d], I) {
|
|
216
241
|
constructor() {
|
|
217
|
-
super(...arguments),
|
|
242
|
+
super(...arguments), o(L, 5, this), t(this, "slots", new i(this.domElement)), t(this, "onZoomClick", o(L, 16, this, /* @__PURE__ */ e((e) => {
|
|
218
243
|
this.zoom && !this.disabled && e.button === 0 && (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), this.showFullSize()));
|
|
219
|
-
}, "onZoomClick"))),
|
|
244
|
+
}, "onZoomClick"))), o(L, 19, this), t(this, "onZoomKey", o(L, 20, this, /* @__PURE__ */ e((e) => {
|
|
220
245
|
!this.isZoomButton || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), this.showFullSize());
|
|
221
|
-
}, "onZoomKey"))),
|
|
246
|
+
}, "onZoomKey"))), o(L, 23, this);
|
|
222
247
|
}
|
|
223
248
|
get hasCaption() {
|
|
224
249
|
return !!this.caption || this.slots.hasContent(this.slotForName("caption"));
|
|
225
250
|
}
|
|
226
251
|
render() {
|
|
227
252
|
let e = this;
|
|
228
|
-
return
|
|
253
|
+
return _(p, {
|
|
229
254
|
get when() {
|
|
230
255
|
return e.hasCaption;
|
|
231
256
|
},
|
|
@@ -233,21 +258,21 @@ var C = {
|
|
|
233
258
|
return e.picture();
|
|
234
259
|
},
|
|
235
260
|
get children() {
|
|
236
|
-
var t =
|
|
237
|
-
return
|
|
238
|
-
e:
|
|
261
|
+
var t = O(), n = t.firstChild, r = n.firstChild;
|
|
262
|
+
return x(t, () => e.picture(), n), r._$owner = b(), x(r, () => e.caption), y(() => ({
|
|
263
|
+
e: S(B),
|
|
239
264
|
t: e.partForName("figure"),
|
|
240
265
|
a: e.partForName("caption"),
|
|
241
266
|
o: e.slotForName("caption")
|
|
242
267
|
}), ({ e, t: i, a, o }, s) => {
|
|
243
|
-
|
|
268
|
+
g(t, e, s?.e), i !== s?.t && C(t, "part", i), a !== s?.a && C(n, "part", a), o !== s?.o && C(r, "name", o);
|
|
244
269
|
}), t;
|
|
245
270
|
}
|
|
246
271
|
});
|
|
247
272
|
}
|
|
248
273
|
picture() {
|
|
249
274
|
let e = this;
|
|
250
|
-
return
|
|
275
|
+
return _(p, {
|
|
251
276
|
get when() {
|
|
252
277
|
return e.link;
|
|
253
278
|
},
|
|
@@ -255,37 +280,49 @@ var C = {
|
|
|
255
280
|
return e.image("image");
|
|
256
281
|
},
|
|
257
282
|
get children() {
|
|
258
|
-
var t =
|
|
259
|
-
return
|
|
260
|
-
e:
|
|
283
|
+
var t = k(), n = b();
|
|
284
|
+
return m(t, "click", e.onZoomClick, !0), x(t, () => e.image("img")), y(() => ({
|
|
285
|
+
e: S(e.rootClass),
|
|
261
286
|
t: e.partForName("image"),
|
|
262
287
|
a: e.linkTo,
|
|
263
288
|
o: e.linkTarget,
|
|
264
|
-
i: e.disabled ? "true" : void 0
|
|
265
|
-
|
|
266
|
-
|
|
289
|
+
i: e.disabled ? "true" : void 0,
|
|
290
|
+
n: S(e.shapeTokens)
|
|
291
|
+
}), ({ e, t: r, a: i, o: a, i: o, n: s }, c) => {
|
|
292
|
+
g(t, e, c?.e), r !== c?.t && C(t, "part", r), i !== c?.a && C(t, "href", i), a !== c?.o && C(t, "target", a), o !== c?.i && C(t, "aria-disabled", o), w(t, s, c?.n), h(t, n);
|
|
267
293
|
}), t;
|
|
268
294
|
}
|
|
269
295
|
});
|
|
270
296
|
}
|
|
271
|
-
image(
|
|
272
|
-
let
|
|
273
|
-
var
|
|
274
|
-
return
|
|
275
|
-
e:
|
|
276
|
-
t:
|
|
277
|
-
a:
|
|
278
|
-
o:
|
|
279
|
-
i:
|
|
280
|
-
n:
|
|
281
|
-
s:
|
|
282
|
-
h: t
|
|
283
|
-
r:
|
|
284
|
-
d:
|
|
285
|
-
l:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
297
|
+
image(t) {
|
|
298
|
+
let n = /* @__PURE__ */ e(() => t === "image" && this.isZoomButton, "isButton"), r = this;
|
|
299
|
+
var i = A();
|
|
300
|
+
return m(i, "keydown", t === "image" ? r.onZoomKey : void 0, !0), m(i, "click", t === "image" ? r.onZoomClick : void 0, !0), y(() => ({
|
|
301
|
+
e: S(t === "image" ? r.rootClass : void 0),
|
|
302
|
+
t: r.partForName(t),
|
|
303
|
+
a: r.src,
|
|
304
|
+
o: r.alt,
|
|
305
|
+
i: r.width,
|
|
306
|
+
n: r.height,
|
|
307
|
+
s: r.loading,
|
|
308
|
+
h: S(t === "image" ? r.shapeTokens : void 0),
|
|
309
|
+
r: n() ? "button" : void 0,
|
|
310
|
+
d: n() ? 0 : void 0,
|
|
311
|
+
l: n() ? r.zoomLabel : void 0,
|
|
312
|
+
u: n() ? "dialog" : void 0
|
|
313
|
+
}), ({ e, t, a: n, o: r, i: a, n: o, s, h: c, r: l, d: u, l: d, u: f }, p) => {
|
|
314
|
+
g(i, e, p?.e), t !== p?.t && C(i, "part", t), n !== p?.a && C(i, "src", n), r !== p?.o && C(i, "alt", r), a !== p?.i && C(i, "width", a), o !== p?.n && C(i, "height", o), s !== p?.s && C(i, "loading", s), w(i, c, p?.h), l !== p?.r && C(i, "role", l), u !== p?.d && C(i, "tabindex", u), d !== p?.l && C(i, "aria-label", d), f !== p?.u && C(i, "aria-haspopup", f);
|
|
315
|
+
}), i;
|
|
316
|
+
}
|
|
317
|
+
get ratio() {
|
|
318
|
+
let e = this.aspectRatio?.trim();
|
|
319
|
+
if (!e) return;
|
|
320
|
+
let t = V.exec(e);
|
|
321
|
+
if (t) return t[2] ? `${t[1]} / ${t[2]}` : t[1];
|
|
322
|
+
s.devWarn("<ui-image>", `aspect-ratio="${e}" isn't a ratio: write \`2:3\`, \`16/9\` or \`1\``);
|
|
323
|
+
}
|
|
324
|
+
get shapeTokens() {
|
|
325
|
+
return this.ratio ? { "--_image-ratio": this.ratio } : void 0;
|
|
289
326
|
}
|
|
290
327
|
get isZoomButton() {
|
|
291
328
|
return !!this.zoom && !this.link && !this.disabled;
|
|
@@ -298,16 +335,17 @@ var C = {
|
|
|
298
335
|
e && import("./ui-zoom.js").then(({ ImageZoom: t }) => t.show(e)).catch((e) => console.error(e));
|
|
299
336
|
}
|
|
300
337
|
};
|
|
301
|
-
|
|
302
|
-
styleSheets: { image:
|
|
338
|
+
L = f(I), n(L, 2, "ratio", N, R), n(L, 13, "vocabulary", F, R), n(L, 13, "elementSetup", P, R), n(L, 5, "onZoomClick", M, R), n(L, 5, "onZoomKey", j, R), r(L, R), e(R, "UIImage"), t(R, "vocabulary", o(L, 8, R, E)), o(L, 11, R), t(R, "elementSetup", o(L, 12, R, {
|
|
339
|
+
styleSheets: { image: D },
|
|
303
340
|
loading: "its own"
|
|
304
|
-
})),
|
|
305
|
-
var
|
|
306
|
-
|
|
341
|
+
})), o(L, 15, R);
|
|
342
|
+
var z = R, B = "figure", V = /^(\d+(?:\.\d+)?)\s*(?:[:/]\s*(\d+(?:\.\d+)?))?$/;
|
|
343
|
+
v(["click", "keydown"]);
|
|
307
344
|
//#endregion
|
|
308
345
|
//#region src/components/ui-image/UIImages.en.ts
|
|
309
|
-
var
|
|
346
|
+
var H = {
|
|
310
347
|
tag: "ui-images",
|
|
348
|
+
icon: "images outline",
|
|
311
349
|
topics: [
|
|
312
350
|
"images",
|
|
313
351
|
"media",
|
|
@@ -407,25 +445,25 @@ var L = {
|
|
|
407
445
|
}],
|
|
408
446
|
states: [],
|
|
409
447
|
texts: []
|
|
410
|
-
},
|
|
448
|
+
}, U = /* @__PURE__ */ T("<div><slot>"), W, G, K, q, J = class _UIImages extends (K = a, G = [l], W = [u], K) {
|
|
411
449
|
render() {
|
|
412
450
|
let e = this;
|
|
413
|
-
var t =
|
|
414
|
-
return n._$owner =
|
|
415
|
-
e:
|
|
451
|
+
var t = U(), n = t.firstChild;
|
|
452
|
+
return n._$owner = b(), y(() => ({
|
|
453
|
+
e: S(e.rootClass),
|
|
416
454
|
t: e.partForName("group")
|
|
417
455
|
}), ({ e, t: n }, r) => {
|
|
418
|
-
|
|
456
|
+
g(t, e, r?.e), n !== r?.t && C(t, "part", n);
|
|
419
457
|
}), t;
|
|
420
458
|
}
|
|
421
459
|
};
|
|
422
|
-
|
|
423
|
-
styleSheets: { image:
|
|
460
|
+
q = f(K), n(q, 13, "vocabulary", G, J), n(q, 13, "elementSetup", W, J), r(q, J), e(J, "UIImages"), t(J, "vocabulary", o(q, 8, J, H)), o(q, 11, J), t(J, "elementSetup", o(q, 12, J, {
|
|
461
|
+
styleSheets: { image: D },
|
|
424
462
|
delegatesFocus: !1
|
|
425
|
-
})),
|
|
426
|
-
var
|
|
427
|
-
|
|
463
|
+
})), o(q, 15, J);
|
|
464
|
+
var Y = J;
|
|
465
|
+
z.define(), Y.define();
|
|
428
466
|
//#endregion
|
|
429
|
-
export {
|
|
467
|
+
export { z as UIImage, Y as UIImages };
|
|
430
468
|
|
|
431
469
|
//# sourceMappingURL=ui-image.js.map
|
package/dist/ui-image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-image.js","names":["<Show when={this.hasCaption} fallback={this.picture()}>\n <figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>\n </Show>","this","<figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>","part={this.partForName(\"figure\")}","part={this.partForName(\"caption\")}","name={this.slotForName(\"caption\")}","<Show when={this.link} fallback={this.image(\"image\")}>\n <a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : void 0}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>\n </Show>","part={this.partForName(\"image\")}","href={this.linkTo}","target={this.linkTarget}","aria-disabled={this.disabled ? \"true\" : void 0}","<a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : void 0}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>","part={this.partForName(part)}","src={this.src}","alt={this.alt}","width={this.width}","height={this.height}","loading={this.loading}","role={isButton() ? \"button\" : void 0}","tabindex={isButton() ? 0 : void 0}","aria-label={isButton() ? this.zoomLabel : void 0}","aria-haspopup={isButton() ? \"dialog\" : void 0}","<img\n class={part === \"image\" ? this.rootClass : void 0}\n part={this.partForName(part)}\n src={this.src}\n alt={this.alt}\n width={this.width}\n height={this.height}\n loading={this.loading}\n role={isButton() ? \"button\" : void 0}\n tabindex={isButton() ? 0 : void 0}\n aria-label={isButton() ? this.zoomLabel : void 0}\n aria-haspopup={isButton() ? \"dialog\" : void 0}\n onClick={part === \"image\" ? this.onZoomClick : void 0}\n onKeyDown={part === \"image\" ? this.onZoomKey : void 0}\n />","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.untracked","E.SlotContent","_$createComponent","_$getOwner","_$readShallow","_$setAttribute","__name","imageCSS","_$delegateEvents","this","part={this.partForName(\"group\")}","<div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>","E.UIComponent","E.proto","E.protoMerged","_$getOwner","_$readShallow","_$setAttribute","__name","imageCSS","__publicField","__decorateElement","__decoratorMetadata","__decoratorStart","__name$1","__runInitializers","getOwner$1","imageVocabulary","UIImage_default","_tmpl$$1","_tmpl$2","_tmpl$3","_onZoomKey_dec","_onZoomClick_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UIImage","UIComponent","proto","protoMerged","untracked","SlotContent","event","_self$","createComponent","Show","_el$","_el$2","_el$3","insert","effect","readShallow","FIGURE","className","_p$","t","setAttribute","_self$2","_el$4","_o$","addEvent","a","o","i","claimElement","isButton","part","_self$3","_el$5","n","h","r","d","l","image","ImageZoom","error","UIImage","delegateEvents","imagesVocabulary","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIImages","UIImages"],"sources":["../src/components/ui-image/UIImage.en.ts","../src/components/ui-image/UIImage.css?inline","../src/components/ui-image/UIImage.tsx","../src/components/ui-image/UIImages.en.ts","../src/components/ui-image/UIImages.tsx","../src/components/ui-image/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-image>`: 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-image size=\"small\" appearance=\"rounded\" floated=\"right\" vertical-align=\"top\">` =>\n * `ui small rounded right floated top aligned image`.\n * - `size` is a WIDTH here (Fomantic's 35px … 960px ladder), not a text scale.\n * `medium` stays the no-op default (the natural size), so the component never writes Fomantic's 300px `.medium`.\n * See `UIImage.css`.\n * - `src`, `alt`, `width`, `height`, `loading` pass straight through to the shadow `<img>`.\n * - `zoom` opens it full size, in the page's `<ui-zoom>` (epic `ui-gaps` P14).\n * - NOT the generic content part `<ui-image>` of cards / items (`plan.md`): those land with their owners.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `imageVocabulary`\n * The names of `<ui-image>`, an image: `<img class=\"ui … image\" part=\"image\">`,\n * or `<a class=\"ui … image\" part=\"image\">` around `<img part=\"img\">` with `link`.\n ****************/\nexport const imageVocabulary = {\n tag: \"ui-image\",\n topics: [\"images\", \"media\", \"basic\", \"elements\"],\n aka: [\"picture\", \"img\", \"photo\", \"avatar\", \"thumbnail\"],\n skeleton: \"10 wide: square image\",\n noun: \"image\",\n plural: \"images\",\n description: \"An image is a graphic representation of something.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Width, `mini` (35px) ... `massive` (960px) at 16px; `medium` is the natural size.\"\n },\n { name: \"avatar\", group: \"content\", kind: \"keyOnly\", description: \"A small circle sitting in a line of text.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n // the words are the classes: no key after them (`ClassBuilder`)\n classes: {},\n values: [\"bordered\", \"circular\", \"rounded\"],\n replaces: [\n { from: \"bordered\", value: \"bordered\" },\n { from: \"circular\", value: \"circular\" },\n { from: \"rounded\", value: \"rounded\" }\n ],\n description:\n \"The look, several words at once: `bordered` (a hairline border, for images with white edges), \" +\n \"`circular` (cropped to a circle; a pill when not square), `rounded` (softly rounded corners). \" +\n \"Old names: `bordered`, `circular`, `rounded` written alone.\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"center\"],\n classes: { center: \"centered\" },\n replaces: [{ from: \"centered\", value: \"center\" }],\n description: \"`center`: a block centred in its container. Its old name was `centered`.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded: shown as unavailable.\" },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Fills its container's width.\" },\n {\n name: \"inline\",\n group: \"layout\",\n kind: \"keyOnly\",\n description: \"Sits inline in running text instead of as a block.\"\n },\n {\n name: \"floated\",\n group: \"layout\",\n kind: \"valueAndKey\",\n values: \"floats\",\n description: \"Floats `left` or `right` of the text.\"\n },\n {\n name: \"spacing\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"md\", \"left\", \"right\"],\n classes: { md: \"spaced\", left: \"left spaced\", right: \"right spaced\" },\n replaces: [{ from: \"spaced\", value: \"md\" }],\n description:\n \"Room from the text around it: `md` on both sides, or `left` / `right` only. Its old name was `spaced`.\"\n },\n {\n name: \"vertical-align\",\n group: \"layout\",\n kind: \"verticalAlign\",\n values: \"verticalAlignments\",\n description: \"Aligns `top`, `middle` or `bottom` against the text (or, in a group, the row).\"\n },\n { name: \"src\", group: \"link\", kind: \"string\", description: \"Image URL, as the native `<img src>`.\" },\n {\n name: \"caption\",\n group: \"content\",\n kind: \"string\",\n description:\n \"A caption under the picture: the image becomes a figure (`<figure>` and `<figcaption>`). The `caption` \" +\n \"slot is its rich version.\"\n },\n {\n name: \"alt\",\n group: \"content\",\n kind: \"string\",\n description: 'Text alternative, as the native `<img alt>`; `alt=\"\"` marks the image decorative.'\n },\n {\n name: \"width\",\n group: \"layout\",\n kind: \"number\",\n description:\n \"Intrinsic width in px, as the native `<img width>`: reserves space before load. NOT the column \" +\n \"`width` grammar; size variations still set the rendered width.\"\n },\n {\n name: \"height\",\n group: \"layout\",\n kind: \"number\",\n description: \"Intrinsic height in px, as the native `<img height>`: reserves space before load.\"\n },\n {\n name: \"loading\",\n group: \"states\",\n kind: \"enum\",\n values: [\"eager\", \"lazy\"],\n description: \"When to load, as the native `<img loading>`.\"\n },\n {\n name: \"zoom\",\n group: \"behaviour\",\n kind: \"boolean\",\n description:\n \"A click (or Enter) shows it full size, over the page, in the page's `<ui-zoom>`; with `link`, a click with \" +\n \"a modifier key still follows the link.\"\n },\n {\n name: \"link\",\n group: \"link\",\n kind: \"string\",\n replaces: [\"href\"],\n description: \"Renders a link (`<a>`) around the image. Its old name was `href`.\"\n }\n ],\n events: [],\n slots: [{ name: \"caption\", description: \"The rich version of `caption`: links, emphasis.\" }],\n parts: [\n { name: \"figure\", description: \"The `<figure>` round the picture and its caption, with `caption`.\" },\n { name: \"caption\", description: \"The `<figcaption>` under the picture.\" },\n { name: \"image\", description: \"The image box: the `<img>`, or the `<a>` with `link`.\" },\n { name: \"img\", description: \"With `link`: the `<img>` inside the link.\" }\n ],\n states: [{ name: \"disabled\", description: \"Faded: shown as unavailable.\" }],\n texts: [\n { key: \"zoom\", text: \"{alt}: show full size\", description: \"With `zoom`: the image's name, as a button.\" },\n { key: \"zoomUntitled\", text: \"Show the image full size\", description: \"With `zoom`, and no `alt`: its name.\" }\n ]\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-image>` and `<ui-images>`: a port of Fomantic's `image.less` + `image.variables`.\n * - ONE sheet for both components; each adopts it after the foundation.\n *\n * - It styles the components' shadow DOM, in Fomantic's class names on semantic elements:\n * - `<ui-image>`: `<img class=\"ui [size] [keyOnly ...] [valueAndKey ...] [vertical-align] image\" part=\"image\"\n * src alt width height loading>`\n * - `<ui-image link>`: `<a class=\"ui … image\" part=\"image\" href><img part=\"img\" src alt …></a>`,\n * Fomantic's wrapper form (`.ui.image img`), so the inner `<img>` fills and follows the link's box\n * - `<ui-images>`: `<div class=\"ui [size] [keyOnly ...] [valueAndKey ...] [vertical-align] images\"\n * part=\"group\"><slot></slot></div>`\n *\n * - The DOM elements are `display: contents` (`:host`): the inner box IS the image.\n * So it floats, centres and sits inline in running text, exactly where Fomantic's `<img class=\"ui image\">` did.\n * - A bare `<img class=\"ui image\">` is a BLOCK (Fomantic's `img.ui.image`);\n * the `<a>` wrapper is `inline-block` (Fomantic's `div.ui.image`).\n * `inline`, `avatar`, `spaced` and `aligned` make either inline.\n * - Every inner box is its shadow root's only child,\n * so the ELEMENT's position decides a floated image's `:last-child` spacing (`:host(:not(:last-child))`);\n * static markup keeps Fomantic's selectors.\n *\n * - Sizes are WIDTHS (`--ui-image-width-<size>`, Fomantic's px ladder as multiples of `--ui-font-size`),\n * NOT the `--ui-scale` text ratio: a sized image also takes the scaled font size, for its em-based spacing only.\n * - `medium`: the grammar makes `size=\"medium\"` a no-op (the natural size),\n * whereas Fomantic's `.ui.medium.image` is 300px wide.\n * The `.medium` rule is ported for STATIC markup; the component never writes it.\n *\n * - Group looks are driven by TOKENS: a `display: contents` element takes no box styles from `::slotted()`,\n * so `.ui.images` sets `--_ui-images-*` on each child (light DOM `> *`, shadow `::slotted(*)`):\n * width, height, margin, border, radius, alignment. An image's box reads them first, after its own variation.\n * - Each image's box resets them for its OWN children (the wrapped `<img>`).\n * - Static `<img>`s without `ui image` inside a group read them too, as in Fomantic's docs.\n * - NEVER set `--_image-*` or `--_ui-images-*` from outside: theme with `--ui-image-*`.\n *\n * - The public tokens (`--ui-image-*`) are NEVER declared here.\n * The token block gives each a private alias, `--_ui-image-border: var(--ui-image-border, …)`,\n * and every rule reads the alias. So a value set on `:root`, an ancestor, the element,\n * `::part(image)` or in the app's style sheet reaches the box (`notes/theming.md`, \"Component tokens\").\n *\n * - `:state(disabled)`, set by the component, is for the PAGE's styles only; this sheet keys on classes.\n * - `hidden` is the element's global attribute, hidden by `reset.css` as on every element;\n * `.ui.hidden.image` stays for static markup.\n *\n * - Left out, on purpose:\n * - images decorated with labels (`.ui.image > .label`, corner and ribbon labels): `UILabel.css` owns those looks\n * - the `hidden transition` rules: `animations.css` / `UI.transitions` own visibility during transitions\n * - `.ui.circular.images { overflow: hidden }`: each child's radius already clips it\n * - `spaced`'s `display: inline-block !important`: the variation's private display token wins by layer\n * - the plan's generic content part `<ui-image>` in cards and items is NOT this component;\n * card and item image parts come with those components\n */\n\n@layer ui.components.image.types, ui.components.image.content, ui.components.image.variations, ui.components.image.states;\n\n/*******************************\n Image\n*******************************/\n\n@layer ui.components.image.types {\n /*\n * The DOM elements: no box of their own; the inner box is the image.\n * - Owner token `--_ui-image-owner-display` (a list item: `table-cell`): the ELEMENT takes that box,\n * so the image is a cell beside its owner's content.\n * The inner `<img>` can't be one (a replaced element is never a table cell),\n * so the element is the cell, and the image fills it.\n * `--_ui-image-owner-max-width: none` there:\n * a percentage maximum inside a shrink-to-fit cell would collapse the image to nothing.\n * - `--_ui-image-owner-width` (stacked Items: `auto`) beats the image's own size,\n * as Fomantic's mobile `.ui.items > .item > .image { width: auto !important }` does;\n * `--_ui-image-owner-max-height` (stacked Items: 250px) caps that natural size,\n * as its `.image > img { max-height: 250px !important }` does,\n * and `--_ui-image-owner-align-self` (stacked Items: `center`) centres it instead of stretching it to the column.\n */\n :host {\n display: var(--_ui-image-owner-display, contents);\n vertical-align: var(--_ui-image-owner-align, baseline);\n }\n\n /* Tokens: one per `image.variables` entry that still matters, each the private alias of its public token. */\n .ui.image,\n .ui.images {\n --_ui-image-placeholder-color: var(--ui-image-placeholder-color, transparent);\n --_ui-image-rounded-radius: var(--ui-image-rounded-radius, var(--ui-radius));\n --_ui-image-circular-radius: var(--ui-image-circular-radius, var(--ui-radius-pill));\n --_ui-image-border: var(--ui-image-border, var(--ui-border-width) solid var(--ui-border-color));\n --_ui-image-group-margin-x: var(--ui-image-group-margin-x, var(--ui-space-2xs));\n --_ui-image-group-margin-y: var(--ui-image-group-margin-y, var(--ui-space-xs));\n --_ui-image-avatar-size: var(--ui-image-avatar-size, 2em);\n --_ui-image-avatar-margin: var(--ui-image-avatar-margin, var(--ui-space-2xs));\n --_ui-image-spaced-distance: var(--ui-image-spaced-distance, var(--ui-space-xs));\n --_ui-image-floated-margin-x: var(--ui-image-floated-margin-x, var(--ui-space-m));\n --_ui-image-floated-margin-y: var(--ui-image-floated-margin-y, var(--ui-space-m));\n --_ui-image-disabled-opacity: var(--ui-image-disabled-opacity, var(--ui-disabled-opacity));\n --_ui-image-focus-width: var(--ui-image-focus-width, var(--ui-focus-width, 2px));\n /* Fomantic's width ladder (35px ... 960px at 16px), following `--ui-font-size`. */\n --_ui-image-width-mini: var(--ui-image-width-mini, calc(var(--ui-font-size) * 2.1875));\n --_ui-image-width-tiny: var(--ui-image-width-tiny, calc(var(--ui-font-size) * 5));\n --_ui-image-width-small: var(--ui-image-width-small, calc(var(--ui-font-size) * 9.375));\n --_ui-image-width-medium: var(--ui-image-width-medium, calc(var(--ui-font-size) * 18.75));\n --_ui-image-width-large: var(--ui-image-width-large, calc(var(--ui-font-size) * 28.125));\n --_ui-image-width-big: var(--ui-image-width-big, calc(var(--ui-font-size) * 37.5));\n --_ui-image-width-huge: var(--ui-image-width-huge, calc(var(--ui-font-size) * 50));\n --_ui-image-width-massive: var(--ui-image-width-massive, calc(var(--ui-font-size) * 60));\n }\n\n /* Image: its natural size, never wider than its container. */\n .ui.image,\n .ui.images > :is(img, svg),\n .ui.images > ::slotted(:is(img, svg)) {\n position: relative;\n box-sizing: border-box;\n display: var(--_image-display, inline-block);\n align-self: var(--_image-align, var(--_ui-images-align, var(--_ui-image-owner-align-self, auto)));\n vertical-align: var(--_image-valign, middle);\n width: var(--_ui-image-owner-width, var(--_image-width, var(--_ui-images-width, auto)));\n max-width: var(--_ui-image-owner-max-width, 100%);\n max-height: var(--_ui-image-owner-max-height, none);\n height: var(--_image-height, var(--_ui-images-height, auto));\n margin: var(--_image-margin, var(--_ui-images-margin, 0));\n border: var(--_image-border, var(--_ui-images-border, none));\n border-radius: var(--_image-radius, var(--_ui-images-radius, 0));\n background-color: var(--_ui-image-placeholder-color);\n object-fit: var(--_image-fit, fill);\n }\n img.ui.image {\n --_image-display: block;\n }\n\n /* Link wrapper: the `<a>` is the box, the wrapped `<img>` / `<svg>` fills it. */\n a.ui.image {\n color: inherit;\n text-decoration: none;\n line-height: 0;\n }\n a.ui.image:focus-visible {\n outline: var(--_ui-image-focus-width) solid var(--ui-focus-color);\n outline-offset: var(--_ui-image-focus-width);\n }\n .ui.image img,\n .ui.image svg {\n display: block;\n width: var(--_image-inner-width, auto);\n max-width: 100%;\n height: var(--_image-inner-height, auto);\n border-radius: inherit;\n object-fit: inherit;\n }\n\n /* What the image hands its wrapped content: none of its own or its group's layout tokens. */\n .ui.image > * {\n --_ui-images-width: initial;\n --_ui-images-height: initial;\n --_ui-images-margin: initial;\n --_ui-images-border: initial;\n --_ui-images-radius: initial;\n --_ui-images-align: initial;\n --_image-size: initial;\n --_image-display: initial;\n --_image-align: initial;\n --_image-valign: initial;\n --_image-width: initial;\n --_image-height: initial;\n --_image-margin: initial;\n --_image-border: initial;\n --_image-radius: initial;\n --_image-fit: initial;\n --_image-floated-bottom: initial;\n }\n\n /*******************************\n Groups\n *******************************/\n\n /* A wrapping row of images, middle aligned like Fomantic's inline-block children. */\n .ui.images {\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n margin: 0 calc(var(--_ui-image-group-margin-x) * -1);\n }\n .ui.images > *,\n .ui.images > ::slotted(*) {\n --_ui-images-margin: 0 var(--_ui-image-group-margin-x) var(--_ui-image-group-margin-y);\n --_ui-images-width: var(--_image-size);\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.image.variations {\n /* Inline: sits in running text. */\n .ui.inline.image {\n --_image-display: inline-block;\n }\n .ui.inline.image > :is(img, svg) {\n display: inline-block;\n }\n\n /* Vertically aligned: inline, against the text (or, in a group, the row). */\n .ui:is([class*=\"top aligned\"], [class*=\"middle aligned\"], [class*=\"bottom aligned\"]).image {\n --_image-display: inline-block;\n }\n .ui[class*=\"top aligned\"].image {\n --_image-valign: top;\n --_image-align: flex-start;\n }\n .ui[class*=\"middle aligned\"].image {\n --_image-valign: middle;\n --_image-align: center;\n }\n .ui[class*=\"bottom aligned\"].image {\n --_image-valign: bottom;\n --_image-align: flex-end;\n }\n .ui[class*=\"top aligned\"].images {\n align-items: flex-start;\n }\n .ui[class*=\"bottom aligned\"].images {\n align-items: flex-end;\n }\n\n /* Rounded */\n .ui.rounded.image {\n --_image-radius: var(--_ui-image-rounded-radius);\n }\n .ui.rounded.images > *,\n .ui.rounded.images > ::slotted(*) {\n --_ui-images-radius: var(--_ui-image-rounded-radius);\n }\n\n /* Bordered: a hairline on the picture itself (the wrapped `<img>` for a link). */\n .ui.bordered.image:is(img, svg) {\n --_image-border: var(--_ui-image-border);\n }\n .ui.bordered.image > :is(img, svg) {\n border: var(--_ui-image-border);\n }\n .ui.bordered.images > *,\n .ui.bordered.images > ::slotted(*) {\n --_ui-images-border: var(--_ui-image-border);\n }\n\n /* Circular */\n .ui.circular.image {\n --_image-radius: var(--_ui-image-circular-radius);\n overflow: hidden;\n }\n .ui.circular.images > *,\n .ui.circular.images > ::slotted(*) {\n --_ui-images-radius: var(--_ui-image-circular-radius);\n }\n\n /* Fluid: fills its container. */\n .ui.fluid.image {\n --_image-display: block;\n --_image-width: 100%;\n --_image-inner-width: 100%;\n }\n .ui.fluid.images {\n width: 100%;\n }\n .ui.fluid.images > *,\n .ui.fluid.images > ::slotted(*) {\n --_ui-images-width: 100%;\n }\n\n /* Avatar: a small circle sitting in a line of text. */\n .ui.avatar.image {\n --_image-display: inline-block;\n --_image-width: var(--_ui-image-avatar-size);\n --_image-height: var(--_ui-image-avatar-size);\n --_image-inner-width: 100%;\n --_image-inner-height: 100%;\n --_image-margin: 0 var(--_ui-image-avatar-margin) 0 0;\n --_image-radius: var(--_ui-image-circular-radius);\n --_image-fit: cover;\n }\n .ui.avatar.images > *,\n .ui.avatar.images > ::slotted(*) {\n --_ui-images-width: var(--_ui-image-avatar-size);\n --_ui-images-height: var(--_ui-image-avatar-size);\n --_ui-images-radius: var(--_ui-image-circular-radius);\n }\n\n /* Spaced: room on both sides (or one) from the text around it. */\n .ui.spaced.image,\n .ui:is([class*=\"left spaced\"], [class*=\"right spaced\"]).image {\n --_image-display: inline-block;\n --_image-margin: 0 var(--_ui-image-spaced-distance);\n }\n .ui[class*=\"left spaced\"].image {\n --_image-margin: 0 0 0 var(--_ui-image-spaced-distance);\n }\n .ui[class*=\"right spaced\"].image {\n --_image-margin: 0 var(--_ui-image-spaced-distance) 0 0;\n }\n\n /* Floated: text wraps around it; none below the last one. Bare `floated` (static markup) floats left. */\n .ui:is(.floated, [class*=\"left floated\"]):is(.image, .images) {\n --_image-floated-bottom: var(--_ui-image-floated-margin-y);\n float: left;\n }\n .ui[class*=\"right floated\"]:is(.image, .images) {\n float: right;\n }\n .ui.floated:is(.image, .images):last-child {\n --_image-floated-bottom: 0px;\n }\n /* Shadow DOM: the inner box is always an only child, so the ELEMENT's position decides. */\n :host(:not(:last-child)) > .ui.floated:is(.image, .images) {\n --_image-floated-bottom: var(--_ui-image-floated-margin-y);\n }\n .ui.floated.image {\n --_image-margin: 0 var(--_ui-image-floated-margin-x) var(--_image-floated-bottom) 0;\n }\n .ui[class*=\"right floated\"].image {\n --_image-margin: 0 0 var(--_image-floated-bottom) var(--_ui-image-floated-margin-x);\n }\n /* A group's own margin is plain: its private tokens would leak into its children. */\n .ui.floated.images {\n margin: 0 var(--_ui-image-floated-margin-x) var(--_image-floated-bottom) 0;\n }\n .ui[class*=\"right floated\"].images {\n margin: 0 0 var(--_image-floated-bottom) var(--_ui-image-floated-margin-x);\n }\n\n /* Centered: a block with equal space either side; a group centres its rows. */\n .ui.centered.image {\n --_image-display: block;\n --_image-margin: 0 auto;\n }\n .ui.centered.images {\n justify-content: center;\n }\n\n /*\n * Sizes: Fomantic's widths. The size class names a width once, for the image or the group;\n * the image takes it as its own, a group hands it to its children (`--_ui-images-width`).\n */\n .ui.mini:is(.image, .images) {\n --_image-size: var(--_ui-image-width-mini);\n }\n .ui.tiny:is(.image, .images) {\n --_image-size: var(--_ui-image-width-tiny);\n }\n .ui.small:is(.image, .images) {\n --_image-size: var(--_ui-image-width-small);\n }\n .ui.medium:is(.image, .images) {\n --_image-size: var(--_ui-image-width-medium);\n }\n .ui.large:is(.image, .images) {\n --_image-size: var(--_ui-image-width-large);\n }\n .ui.big:is(.image, .images) {\n --_image-size: var(--_ui-image-width-big);\n }\n .ui.huge:is(.image, .images) {\n --_image-size: var(--_ui-image-width-huge);\n }\n .ui.massive:is(.image, .images) {\n --_image-size: var(--_ui-image-width-massive);\n }\n .ui:is(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive):is(.image, .images) {\n font-size: calc(var(--ui-font-size) * var(--ui-scale, 1));\n }\n .ui:is(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive).image {\n --_image-width: var(--_image-size);\n --_image-height: auto;\n --_image-inner-width: 100%;\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.image.states {\n /* Hidden (static markup; elements use the `hidden` attribute). */\n .ui.hidden:is(.image, .images) {\n display: none;\n }\n\n /* Disabled: faded. */\n .ui.disabled:is(.image, .images) {\n cursor: default;\n opacity: var(--_ui-image-disabled-opacity);\n }\n\n /* `zoom` (epic `ui-gaps` P14): a click shows it full size, so the zoom-in cursor; a focus ring, as a button's */\n :host([zoom]:not([disabled])) img {\n cursor: zoom-in;\n }\n :host([zoom]) img:focus-visible {\n outline: 2px solid var(--ui-focus-color, Highlight);\n outline-offset: 2px;\n }\n}\n\n/*******************************\n Figure\n*******************************/\n\n/*\n * `caption` (epic `ui-gaps` P12): a `<figure>` round the image and a `<figcaption>` under it.\n * - `display: table`, the caption a `table-caption` under it: the caption wraps at the picture's width.\n */\n@layer ui.components.image.content {\n .figure {\n display: table;\n margin: 0 0 1em;\n }\n :host(:last-child) > .figure {\n margin-block-end: 0;\n }\n .figure > figcaption {\n display: table-caption;\n caption-side: bottom;\n padding-block-start: var(--ui-space-xs);\n color: var(--ui-text-muted);\n font-size: 0.875em;\n line-height: var(--ui-line-height);\n }\n}\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { imageVocabulary } from \"./UIImage.en\"\n\nimport imageCSS from \"./UIImage.css?inline\"\n\n/****************\n * ### `UIImage`\n * The component behind `<ui-image>`: an image, optionally a link.\n *\n * - Its shadow DOM is `<img class=\"ui … image\" part=\"image\" src alt width height loading>`;\n * with `link`, Fomantic's wrapper form, `<a class=\"ui … image\" part=\"image\" href><img part=\"img\" …></a>`,\n * the link carrying the classes.\n * The element is `display: contents`: the inner box IS the image, so it floats and sits in text as Fomantic's did.\n *\n * - `alt` passes straight through:\n * - `alt=\"\"` is a decorative image (assistive tech skips it)\n * - a MISSING `alt` stays missing: a bug to fix in the page, which axe reports,\n * not one to hide with an empty default\n * - a linked image's `alt` names the link\n * - `width` / `height` are the native intrinsic size (they reserve space before it loads);\n * `size` sets the drawn width.\n * - `caption` (or the `caption` slot) makes it a FIGURE (epic `ui-gaps` P12):\n * `<figure part=\"figure\">` round the image (or its link), then `<figcaption part=\"caption\">` under it,\n * no wider than the picture.\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * faded, the image (or its link) inert, `aria-disabled`; a link also loses its link.\n * - `zoom` (epic `ui-gaps` P14): a plain click, or Enter / Space, shows it full size in the page's `<ui-zoom>`\n * (`ImageZoom.show()`, loaded on the first one).\n * - without `link`, the image is a button for it: focusable, named \"<alt>: show full size\"\n * - with `link`, a click with a modifier key still follows the link\n ****************/\nexport class UIImage extends E.UIComponent<typeof imageVocabulary> {\n @E.proto static vocabulary = imageVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { image: imageCSS },\n // `loading`: Fomantic's placeholder look\n loading: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n /** Which named slots have content (the `caption` slot). */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** A figure: `caption`, or something in the `caption` slot. */\n get hasCaption(): boolean {\n return !!this.caption || this.slots.hasContent(this.slotForName(\"caption\"))\n }\n\n render(): JSX.Element {\n return (\n <Show when={this.hasCaption} fallback={this.picture()}>\n <figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>\n </Show>\n )\n }\n\n /** The image, or its link round it. */\n private picture(): JSX.Element {\n return (\n <Show when={this.link} fallback={this.image(\"image\")}>\n <a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : undefined}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>\n </Show>\n )\n }\n\n /** The `<img>`: the root (part `image`, with the classes), or the link's child (part `img`). */\n private image(part: \"image\" | \"img\"): JSX.Element {\n const isButton = () => part === \"image\" && this.isZoomButton\n return (\n <img\n class={part === \"image\" ? this.rootClass : undefined}\n part={this.partForName(part)}\n src={this.src}\n alt={this.alt}\n width={this.width}\n height={this.height}\n loading={this.loading as \"eager\" | \"lazy\" | undefined}\n role={isButton() ? \"button\" : undefined}\n tabindex={isButton() ? 0 : undefined}\n aria-label={isButton() ? this.zoomLabel : undefined}\n aria-haspopup={isButton() ? \"dialog\" : undefined}\n onClick={part === \"image\" ? this.onZoomClick : undefined}\n onKeyDown={part === \"image\" ? this.onZoomKey : undefined}\n />\n )\n }\n\n ////////////////\n // ## Zoom\n ////////////////\n\n /** `zoom`, with no link: the image itself is the button that shows it full size. */\n get isZoomButton(): boolean {\n return !!this.zoom && !this.link && !this.disabled\n }\n\n /** The zoom button's name: its alt text, then what it does. */\n get zoomLabel(): string {\n return this.alt ? this.translationForKey(\"zoom\", { alt: this.alt }) : this.translationForKey(\"zoomUntitled\")\n }\n\n /** A plain click on it (or its link), with `zoom`: shown full size, the link not followed. */\n @E.untracked\n private readonly onZoomClick = (event: MouseEvent) => {\n if (!this.zoom || this.disabled || event.button !== 0) return\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return\n event.preventDefault()\n this.showFullSize()\n }\n\n /** Enter or Space on the zoom button. */\n @E.untracked\n private readonly onZoomKey = (event: KeyboardEvent) => {\n if (!this.isZoomButton || (event.key !== \"Enter\" && event.key !== \" \")) return\n event.preventDefault()\n this.showFullSize()\n }\n\n /** In the page's `<ui-zoom>`: its family (and `ImageZoom`) loaded on the first one, so an image without `zoom` never pays for it. */\n private showFullSize() {\n const image = this.domElement.shadowRoot?.querySelector(\"img\")\n if (!image) return\n void import(\"spell/ui/components/ui-zoom\")\n .then(({ ImageZoom }) => ImageZoom.show(image))\n .catch((error) => console.error(error))\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIImage extends E.AttributeValues<typeof imageVocabulary> {}\n\n/** The figure's class. */\nconst FIGURE = \"figure\"\n","/**\n * The English vocabulary of `<ui-images>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots and parts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - How the family's attributes become class words: `UIImage.en.ts`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `imagesVocabulary`\n * The names of `<ui-images>`, a group of images in one wrapping row: `<div class=\"ui … images\" part=\"group\">`.\n ****************/\nexport const imagesVocabulary = {\n tag: \"ui-images\",\n topics: [\"images\", \"media\", \"layout\", \"elements\"],\n aka: [\"image group\", \"gallery\", \"avatars\"],\n noun: \"images\",\n description: \"A group of images can be formatted together.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Width of every image in the group, `mini` ... `massive`.\"\n },\n { name: \"avatar\", group: \"content\", kind: \"keyOnly\", description: \"Every image a small circle.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n // the words are the classes: no key after them (`ClassBuilder`)\n classes: {},\n values: [\"bordered\", \"circular\", \"rounded\"],\n replaces: [\n { from: \"bordered\", value: \"bordered\" },\n { from: \"circular\", value: \"circular\" },\n { from: \"rounded\", value: \"rounded\" }\n ],\n description:\n \"Every image's look, several words at once: `bordered` (a hairline border), `circular` (cropped to a \" +\n \"circle), `rounded` (softly rounded corners). Old names: `bordered`, `circular`, `rounded` written alone.\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"center\"],\n classes: { center: \"centered\" },\n replaces: [{ from: \"centered\", value: \"center\" }],\n description: \"`center`: rows centred in the container. Its old name was `centered`.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"The whole group faded.\" },\n {\n name: \"fluid\",\n group: \"layout\",\n kind: \"keyOnly\",\n description: \"Every image fills the group's width, one per row.\"\n },\n {\n name: \"vertical-align\",\n group: \"layout\",\n kind: \"verticalAlign\",\n values: [\"top\", \"middle\", \"bottom\"],\n description: \"Aligns the images of a row `top`, `middle` (default) or `bottom`.\"\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-image>`s (or plain `<img>`s).\" }],\n parts: [{ name: \"group\", description: \"The group box.\" }],\n states: [],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { imagesVocabulary } from \"./UIImages.en\"\n\nimport imageCSS from \"./UIImage.css?inline\"\n\n/****************\n * ### `UIImages`\n * The component behind `<ui-images>`: a group of images in one wrapping row.\n *\n * - Its shadow DOM is one box, `<div class=\"ui … images\" part=\"group\">`, around a slot for the images.\n * - `UIImage.css` hands the group's look (size, border, radius, spacing) to each child,\n * through `--_ui-images-*` tokens: a `display: contents` `<ui-image>` takes no box styles from `::slotted()`.\n ****************/\nexport class UIImages extends E.UIComponent<typeof imagesVocabulary> {\n @E.proto static vocabulary = imagesVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { image: imageCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIImages extends E.AttributeValues<typeof imagesVocabulary> {}\n","/**\n * The image family: defines `<ui-image>` and `<ui-images>`, and exports their components, `UIImage` and `UIImages`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-image` entry (its size is in `notes/report.md`).\n * - NOT the generic content part `<ui-image>` of cards and items (`plan.md`): those come with their owners.\n */\n\nimport { UIImage } from \"./UIImage\"\nimport { UIImages } from \"./UIImages\"\n\nUIImage.define()\nUIImages.define()\n\nexport { UIImage, UIImages }\n"],"mappings":";;;;;AAsBA,IAAa0D,IAAkB;CAC7B,KAAK;CACL,QAAQ;EAAC;EAAU;EAAS;EAAS;CAAU;CAC/C,KAAK;EAAC;EAAW;EAAO;EAAS;EAAU;CAAW;CACtD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A,IAAO,cAAhBF,GADWG,CAAA,GAEIlE,EAAAiE,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAANjE,EAAAgE,GAAMC,CAAA,GAAwDrE,EAAAqE,GAAA,UAAA,GAC1DnE,EADEmE,GACK,cAAa9D,EAApB6D,GAAA,GADEC,GACkBN,CAAA,CAAA,GAApBxD,EAAA6D,GAAA,IADEC,CAAA,GAEInE,EAFJmE,GAEW,gBAAe9D,EAAtB6D,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,OAAOpE,EAAS;CAC/B,gBAAgB;AAClB,CAAA,CAAA,GAHeM,EAAA6D,GAAA,IAFJC,CAAA;AAAN,IAAMC,IAAND;ACLPR,EAAQ,OAAO,GACfS,EAAS,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-image.js","names":["<Show when={this.hasCaption} fallback={this.picture()}>\n <figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>\n </Show>","this","<figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>","part={this.partForName(\"figure\")}","part={this.partForName(\"caption\")}","name={this.slotForName(\"caption\")}","<Show when={this.link} fallback={this.image(\"image\")}>\n <a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : void 0}\n style={this.shapeTokens}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>\n </Show>","part={this.partForName(\"image\")}","href={this.linkTo}","target={this.linkTarget}","aria-disabled={this.disabled ? \"true\" : void 0}","style={this.shapeTokens}","<a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : void 0}\n style={this.shapeTokens}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>","part={this.partForName(part)}","src={this.src}","alt={this.alt}","width={this.width}","height={this.height}","loading={this.loading}","style={part === \"image\" ? this.shapeTokens : void 0}","role={isButton() ? \"button\" : void 0}","tabindex={isButton() ? 0 : void 0}","aria-label={isButton() ? this.zoomLabel : void 0}","aria-haspopup={isButton() ? \"dialog\" : void 0}","<img\n class={part === \"image\" ? this.rootClass : void 0}\n part={this.partForName(part)}\n src={this.src}\n alt={this.alt}\n width={this.width}\n height={this.height}\n loading={this.loading}\n style={part === \"image\" ? this.shapeTokens : void 0}\n role={isButton() ? \"button\" : void 0}\n tabindex={isButton() ? 0 : void 0}\n aria-label={isButton() ? this.zoomLabel : void 0}\n aria-haspopup={isButton() ? \"dialog\" : void 0}\n onClick={part === \"image\" ? this.onZoomClick : void 0}\n onKeyDown={part === \"image\" ? this.onZoomKey : void 0}\n />","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.untracked","E.SlotContent","_$createComponent","_$getOwner","_$readShallow","_$setAttribute","__name","imageCSS","_$delegateEvents","this","part={this.partForName(\"group\")}","<div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>","E.UIComponent","E.proto","E.protoMerged","_$getOwner","_$readShallow","_$setAttribute","__name","imageCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__decoratorStart","getOwner$1","imageVocabulary","UIImage_default","_tmpl$$1","_tmpl$2","_tmpl$3","_onZoomKey_dec","_onZoomClick_dec","_ratio_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UIImage","UIComponent","proto","protoMerged","cssState","untracked","SlotContent","event","_self$","createComponent","Show","_el$","_el$2","_el$3","insert","effect","readShallow","FIGURE","className","_p$","t","setAttribute","_self$2","_el$4","_o$","addEvent","a","o","i","style","n","claimElement","isButton","part","_self$3","_el$5","h","r","d","l","u","written","match","RATIO","image","ImageZoom","error","UIImage","delegateEvents","imagesVocabulary","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIImages","UIImages"],"sources":["../src/components/ui-image/UIImage.en.ts","../src/components/ui-image/UIImage.css?inline","../src/components/ui-image/UIImage.tsx","../src/components/ui-image/UIImages.en.ts","../src/components/ui-image/UIImages.tsx","../src/components/ui-image/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-image>`: 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-image size=\"small\" appearance=\"rounded\" floated=\"right\" vertical-align=\"top\">` =>\n * `ui small rounded right floated top aligned image`.\n * - `size` is a WIDTH here (Fomantic's 35px … 960px ladder), not a text scale.\n * `medium` stays the no-op default (the natural size), so the component never writes Fomantic's 300px `.medium`.\n * See `UIImage.css`.\n * - `src`, `alt`, `width`, `height`, `loading` pass straight through to the shadow `<img>`.\n * - `zoom` opens it full size, in the page's `<ui-zoom>` (epic `ui-gaps` P14).\n * - `aspect-ratio` gives it a shape, and `crop` fills that shape (epic `language` I18).\n * - NOT the generic content part `<ui-image>` of cards / items (`plan.md`): those land with their owners.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `imageVocabulary`\n * The names of `<ui-image>`, an image: `<img class=\"ui … image\" part=\"image\">`,\n * or `<a class=\"ui … image\" part=\"image\">` around `<img part=\"img\">` with `link`.\n ****************/\nexport const imageVocabulary = {\n tag: \"ui-image\",\n icon: \"image outline\",\n topics: [\"images\", \"media\", \"basic\", \"elements\"],\n aka: [\"picture\", \"img\", \"photo\", \"avatar\", \"thumbnail\"],\n skeleton: \"10 wide: square image\",\n noun: \"image\",\n plural: \"images\",\n description: \"An image is a graphic representation of something.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Width, `mini` (35px) ... `massive` (960px) at 16px; `medium` is the natural size.\"\n },\n { name: \"avatar\", group: \"content\", kind: \"keyOnly\", description: \"A small circle sitting in a line of text.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n // the words are the classes: no key after them (`ClassBuilder`)\n classes: {},\n values: [\"bordered\", \"circular\", \"rounded\"],\n replaces: [\n { from: \"bordered\", value: \"bordered\" },\n { from: \"circular\", value: \"circular\" },\n { from: \"rounded\", value: \"rounded\" }\n ],\n description:\n \"The look, several words at once: `bordered` (a hairline border, for images with white edges), \" +\n \"`circular` (cropped to a circle; a pill when not square), `rounded` (softly rounded corners). \" +\n \"Old names: `bordered`, `circular`, `rounded` written alone.\"\n },\n {\n name: \"background\",\n group: \"appearance\",\n kind: \"valueAndKey\",\n values: \"hues\",\n description:\n 'A hue behind the picture, drawn soft (its light tint), with room round the picture: `background=\"yellow\"`. ' +\n \"With `circular` it's a circle. A transparent drawing on a coloured disc, so it has no hairline round it: \" +\n \"the theme's hairline is for photos with white edges, which `bordered` names.\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"center\"],\n classes: { center: \"centered\" },\n replaces: [{ from: \"centered\", value: \"center\" }],\n description: \"`center`: a block centred in its container. Its old name was `centered`.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Faded: shown as unavailable.\" },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Fills its container's width.\" },\n {\n name: \"inline\",\n group: \"layout\",\n kind: \"keyOnly\",\n description: \"Sits inline in running text instead of as a block.\"\n },\n {\n name: \"floated\",\n group: \"layout\",\n kind: \"valueAndKey\",\n values: \"floats\",\n description: \"Floats `left` or `right` of the text.\"\n },\n {\n name: \"spacing\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"md\", \"left\", \"right\"],\n classes: { md: \"spaced\", left: \"left spaced\", right: \"right spaced\" },\n replaces: [{ from: \"spaced\", value: \"md\" }],\n description:\n \"Room from the text around it: `md` on both sides, or `left` / `right` only. Its old name was `spaced`.\"\n },\n {\n name: \"vertical-align\",\n group: \"layout\",\n kind: \"verticalAlign\",\n values: \"verticalAlignments\",\n description: \"Aligns `top`, `middle` or `bottom` against the text (or, in a group, the row).\"\n },\n { name: \"src\", group: \"link\", kind: \"string\", description: \"Image URL, as the native `<img src>`.\" },\n {\n name: \"caption\",\n group: \"content\",\n kind: \"string\",\n description:\n \"A caption under the picture: the image becomes a figure (`<figure>` and `<figcaption>`). The `caption` \" +\n \"slot is its rich version.\"\n },\n {\n name: \"alt\",\n group: \"content\",\n kind: \"string\",\n description: 'Text alternative, as the native `<img alt>`; `alt=\"\"` marks the image decorative.'\n },\n {\n name: \"width\",\n group: \"layout\",\n kind: \"number\",\n description:\n \"Intrinsic width in px, as the native `<img width>`: reserves space before load. NOT the column \" +\n \"`width` grammar; size variations still set the rendered width.\"\n },\n {\n name: \"height\",\n group: \"layout\",\n kind: \"number\",\n description: \"Intrinsic height in px, as the native `<img height>`: reserves space before load.\"\n },\n {\n name: \"aspect-ratio\",\n group: \"appearance\",\n kind: \"string\",\n description:\n \"Its shape, width to height: `2:3` (a book's cover), `16:9`, `1` (a square); `2/3` too. The whole \" +\n \"picture shows inside that shape, unless `crop`. So a row of cards lines up, whatever shape each picture is.\"\n },\n {\n name: \"crop\",\n group: \"appearance\",\n kind: \"keyOrValueAndKey\",\n key: \"cropped\",\n values: \"attachments\",\n description:\n \"Fills its shape (`aspect-ratio`, or its `size` and `height`), cutting off what doesn't fit, rather than \" +\n 'showing the whole picture. `crop` alone keeps the middle; `crop=\"top\"` keeps the top (a face), ' +\n \"`bottom`, `left`, `right`, `top left` ...\"\n },\n {\n name: \"loading\",\n group: \"states\",\n kind: \"enum\",\n values: [\"eager\", \"lazy\"],\n description: \"When to load, as the native `<img loading>`.\"\n },\n {\n name: \"zoom\",\n group: \"behaviour\",\n kind: \"boolean\",\n description:\n \"A click (or Enter) shows it full size, over the page, in the page's `<ui-zoom>`; with `link`, a click with \" +\n \"a modifier key still follows the link.\"\n },\n {\n name: \"link\",\n group: \"link\",\n kind: \"string\",\n replaces: [\"href\"],\n description: \"Renders a link (`<a>`) around the image. Its old name was `href`.\"\n }\n ],\n events: [],\n slots: [{ name: \"caption\", description: \"The rich version of `caption`: links, emphasis.\" }],\n parts: [\n { name: \"figure\", description: \"The `<figure>` round the picture and its caption, with `caption`.\" },\n { name: \"caption\", description: \"The `<figcaption>` under the picture.\" },\n { name: \"image\", description: \"The image box: the `<img>`, or the `<a>` with `link`.\" },\n { name: \"img\", description: \"With `link`: the `<img>` inside the link.\" }\n ],\n states: [\n { name: \"disabled\", description: \"Faded: shown as unavailable.\" },\n { name: \"shaped\", description: \"`aspect-ratio` gives it a shape.\" }\n ],\n texts: [\n { key: \"zoom\", text: \"{alt}: show full size\", description: \"With `zoom`: the image's name, as a button.\" },\n { key: \"zoomUntitled\", text: \"Show the image full size\", description: \"With `zoom`, and no `alt`: its name.\" }\n ]\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-image>` and `<ui-images>`: a port of Fomantic's `image.less` + `image.variables`.\n * - ONE sheet for both components; each adopts it after the foundation.\n *\n * - It styles the components' shadow DOM, in Fomantic's class names on semantic elements:\n * - `<ui-image>`: `<img class=\"ui [size] [keyOnly ...] [valueAndKey ...] [vertical-align] image\" part=\"image\"\n * src alt width height loading>`\n * - `<ui-image link>`: `<a class=\"ui … image\" part=\"image\" href><img part=\"img\" src alt …></a>`,\n * Fomantic's wrapper form (`.ui.image img`), so the inner `<img>` fills and follows the link's box\n * - `<ui-images>`: `<div class=\"ui [size] [keyOnly ...] [valueAndKey ...] [vertical-align] images\"\n * part=\"group\"><slot></slot></div>`\n *\n * - The DOM elements are `display: contents` (`:host`): the inner box IS the image.\n * So it floats, centres and sits inline in running text, exactly where Fomantic's `<img class=\"ui image\">` did.\n * - A bare `<img class=\"ui image\">` is a BLOCK (Fomantic's `img.ui.image`);\n * the `<a>` wrapper is `inline-block` (Fomantic's `div.ui.image`).\n * `inline`, `avatar`, `spaced` and `aligned` make either inline.\n * - Every inner box is its shadow root's only child,\n * so the ELEMENT's position decides a floated image's `:last-child` spacing (`:host(:not(:last-child))`);\n * static markup keeps Fomantic's selectors.\n *\n * - Sizes are WIDTHS (`--ui-image-width-<size>`, Fomantic's px ladder as multiples of `--ui-font-size`),\n * NOT the `--ui-scale` text ratio: a sized image also takes the scaled font size, for its em-based spacing only.\n * - `medium`: the grammar makes `size=\"medium\"` a no-op (the natural size),\n * whereas Fomantic's `.ui.medium.image` is 300px wide.\n * The `.medium` rule is ported for STATIC markup; the component never writes it.\n *\n * - Group looks are driven by TOKENS: a `display: contents` element takes no box styles from `::slotted()`,\n * so `.ui.images` sets `--_ui-images-*` on each child (light DOM `> *`, shadow `::slotted(*)`):\n * width, height, margin, border, radius, alignment. An image's box reads them first, after its own variation.\n * - Each image's box resets them for its OWN children (the wrapped `<img>`).\n * - Static `<img>`s without `ui image` inside a group read them too, as in Fomantic's docs.\n * - NEVER set `--_image-*` or `--_ui-images-*` from outside: theme with `--ui-image-*`.\n *\n * - The public tokens (`--ui-image-*`) are NEVER declared here.\n * The token block gives each a private alias, `--_ui-image-border: var(--ui-image-border, …)`,\n * and every rule reads the alias. So a value set on `:root`, an ancestor, the element,\n * `::part(image)` or in the app's style sheet reaches the box (`notes/theming.md`, \"Component tokens\").\n *\n * - `:state(disabled)`, set by the component, is for the PAGE's styles only; this sheet keys on classes.\n * - `hidden` is the element's global attribute, hidden by `reset.css` as on every element;\n * `.ui.hidden.image` stays for static markup.\n *\n * - Left out, on purpose:\n * - images decorated with labels (`.ui.image > .label`, corner and ribbon labels): `UILabel.css` owns those looks\n * - the `hidden transition` rules: `animations.css` / `UI.transitions` own visibility during transitions\n * - `.ui.circular.images { overflow: hidden }`: each child's radius already clips it\n * - `spaced`'s `display: inline-block !important`: the variation's private display token wins by layer\n * - the plan's generic content part `<ui-image>` in cards and items is NOT this component;\n * card and item image parts come with those components\n */\n\n@layer ui.components.image.types, ui.components.image.content, ui.components.image.variations, ui.components.image.states;\n\n/*******************************\n Image\n*******************************/\n\n@layer ui.components.image.types {\n /*\n * The DOM elements: no box of their own; the inner box is the image.\n * - Owner token `--_ui-image-owner-display` (a list item: `table-cell`): the ELEMENT takes that box,\n * so the image is a cell beside its owner's content.\n * The inner `<img>` can't be one (a replaced element is never a table cell),\n * so the element is the cell, and the image fills it.\n * `--_ui-image-owner-max-width: none` there:\n * a percentage maximum inside a shrink-to-fit cell would collapse the image to nothing.\n * - `--_ui-image-owner-width` (stacked Items: `auto`) beats the image's own size,\n * as Fomantic's mobile `.ui.items > .item > .image { width: auto !important }` does;\n * `--_ui-image-owner-max-height` (stacked Items: 250px) caps that natural size,\n * as its `.image > img { max-height: 250px !important }` does,\n * and `--_ui-image-owner-align-self` (stacked Items: `center`) centres it instead of stretching it to the column.\n */\n :host {\n display: var(--_ui-image-owner-display, contents);\n vertical-align: var(--_ui-image-owner-align, baseline);\n }\n\n /* Tokens: one per `image.variables` entry that still matters, each the private alias of its public token. */\n .ui.image,\n .ui.images {\n --_ui-image-placeholder-color: var(--ui-image-placeholder-color, transparent);\n --_ui-image-rounded-radius: var(--ui-image-rounded-radius, var(--ui-radius));\n --_ui-image-circular-radius: var(--ui-image-circular-radius, var(--ui-radius-pill));\n --_ui-image-border: var(--ui-image-border, var(--ui-border-width) solid var(--ui-border-color));\n --_ui-image-group-margin-x: var(--ui-image-group-margin-x, var(--ui-space-2xs));\n --_ui-image-group-margin-y: var(--ui-image-group-margin-y, var(--ui-space-xs));\n --_ui-image-avatar-size: var(--ui-image-avatar-size, 2em);\n --_ui-image-avatar-margin: var(--ui-image-avatar-margin, var(--ui-space-2xs));\n --_ui-image-spaced-distance: var(--ui-image-spaced-distance, var(--ui-space-xs));\n --_ui-image-floated-margin-x: var(--ui-image-floated-margin-x, var(--ui-space-m));\n --_ui-image-floated-margin-y: var(--ui-image-floated-margin-y, var(--ui-space-m));\n --_ui-image-disabled-opacity: var(--ui-image-disabled-opacity, var(--ui-disabled-opacity));\n --_ui-image-focus-width: var(--ui-image-focus-width, var(--ui-focus-width, 2px));\n /* `background`: the hue's light tint (the hue from its class, `colors.css`), and the room round the picture */\n --_ui-image-background: var(--ui-image-background, oklch(from var(--ui-color) 0.96 calc(c * 0.5) h));\n --_ui-image-background-padding: var(--ui-image-background-padding, 0.75em);\n /* Fomantic's width ladder (35px ... 960px at 16px), following `--ui-font-size`. */\n --_ui-image-width-mini: var(--ui-image-width-mini, calc(var(--ui-font-size) * 2.1875));\n --_ui-image-width-tiny: var(--ui-image-width-tiny, calc(var(--ui-font-size) * 5));\n --_ui-image-width-small: var(--ui-image-width-small, calc(var(--ui-font-size) * 9.375));\n --_ui-image-width-medium: var(--ui-image-width-medium, calc(var(--ui-font-size) * 18.75));\n --_ui-image-width-large: var(--ui-image-width-large, calc(var(--ui-font-size) * 28.125));\n --_ui-image-width-big: var(--ui-image-width-big, calc(var(--ui-font-size) * 37.5));\n --_ui-image-width-huge: var(--ui-image-width-huge, calc(var(--ui-font-size) * 50));\n --_ui-image-width-massive: var(--ui-image-width-massive, calc(var(--ui-font-size) * 60));\n }\n\n /* Image: its natural size, never wider than its container. */\n .ui.image,\n .ui.images > :is(img, svg),\n .ui.images > ::slotted(:is(img, svg)) {\n position: relative;\n box-sizing: border-box;\n display: var(--_image-display, inline-block);\n align-self: var(--_image-align, var(--_ui-images-align, var(--_ui-image-owner-align-self, auto)));\n vertical-align: var(--_image-valign, middle);\n width: var(--_ui-image-owner-width, var(--_image-width, var(--_ui-images-width, auto)));\n max-width: var(--_ui-image-owner-max-width, 100%);\n max-height: var(--_ui-image-owner-max-height, none);\n height: var(--_image-height, var(--_ui-images-height, auto));\n margin: var(--_image-margin, var(--_ui-images-margin, 0));\n border: var(--_image-border, var(--_ui-images-border, none));\n border-radius: var(--_image-radius, var(--_ui-images-radius, 0));\n background-color: var(--_ui-image-placeholder-color);\n object-fit: var(--_image-fit, fill);\n }\n img.ui.image {\n --_image-display: block;\n }\n\n /* Link wrapper: the `<a>` is the box, the wrapped `<img>` / `<svg>` fills it. */\n a.ui.image {\n color: inherit;\n text-decoration: none;\n line-height: 0;\n }\n a.ui.image:focus-visible {\n outline: var(--_ui-image-focus-width) solid var(--ui-focus-color);\n outline-offset: var(--_ui-image-focus-width);\n }\n .ui.image img,\n .ui.image svg {\n display: block;\n width: var(--_image-inner-width, auto);\n max-width: 100%;\n height: var(--_image-inner-height, auto);\n border-radius: inherit;\n object-fit: inherit;\n }\n\n /* What the image hands its wrapped content: none of its own or its group's layout tokens. */\n .ui.image > * {\n --_ui-images-width: initial;\n --_ui-images-height: initial;\n --_ui-images-margin: initial;\n --_ui-images-border: initial;\n --_ui-images-radius: initial;\n --_ui-images-align: initial;\n --_image-size: initial;\n --_image-display: initial;\n --_image-align: initial;\n --_image-valign: initial;\n --_image-width: initial;\n --_image-height: initial;\n --_image-margin: initial;\n --_image-border: initial;\n --_image-radius: initial;\n --_image-fit: initial;\n --_image-floated-bottom: initial;\n }\n\n /*******************************\n Groups\n *******************************/\n\n /* A wrapping row of images, middle aligned like Fomantic's inline-block children. */\n .ui.images {\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n margin: 0 calc(var(--_ui-image-group-margin-x) * -1);\n }\n .ui.images > *,\n .ui.images > ::slotted(*) {\n --_ui-images-margin: 0 var(--_ui-image-group-margin-x) var(--_ui-image-group-margin-y);\n --_ui-images-width: var(--_image-size);\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.image.variations {\n /* Inline: sits in running text. */\n .ui.inline.image {\n --_image-display: inline-block;\n }\n .ui.inline.image > :is(img, svg) {\n display: inline-block;\n }\n\n /* Vertically aligned: inline, against the text (or, in a group, the row). */\n .ui:is([class*=\"top aligned\"], [class*=\"middle aligned\"], [class*=\"bottom aligned\"]).image {\n --_image-display: inline-block;\n }\n .ui[class*=\"top aligned\"].image {\n --_image-valign: top;\n --_image-align: flex-start;\n }\n .ui[class*=\"middle aligned\"].image {\n --_image-valign: middle;\n --_image-align: center;\n }\n .ui[class*=\"bottom aligned\"].image {\n --_image-valign: bottom;\n --_image-align: flex-end;\n }\n .ui[class*=\"top aligned\"].images {\n align-items: flex-start;\n }\n .ui[class*=\"bottom aligned\"].images {\n align-items: flex-end;\n }\n\n /* Rounded */\n .ui.rounded.image {\n --_image-radius: var(--_ui-image-rounded-radius);\n }\n .ui.rounded.images > *,\n .ui.rounded.images > ::slotted(*) {\n --_ui-images-radius: var(--_ui-image-rounded-radius);\n }\n\n /* Bordered: a hairline on the picture itself (the wrapped `<img>` for a link). */\n .ui.bordered.image:is(img, svg) {\n --_image-border: var(--_ui-image-border);\n }\n .ui.bordered.image > :is(img, svg) {\n border: var(--_ui-image-border);\n }\n .ui.bordered.images > *,\n .ui.bordered.images > ::slotted(*) {\n --_ui-images-border: var(--_ui-image-border);\n }\n\n /* Background (`background=\"yellow\"`, `ui yellow background image`): the hue's light tint behind the picture,\n with room round it; a circle with `circular` (below). No hairline: the theme's (`rules/modern.css`) leaves it out. */\n .ui.background.image {\n padding: var(--_ui-image-background-padding);\n background-color: var(--_ui-image-background);\n }\n\n /* Circular */\n .ui.circular.image {\n --_image-radius: var(--_ui-image-circular-radius);\n overflow: hidden;\n }\n /* Circular with a background: the background is a disc inside the room round the picture, the picture whole on\n it, never cropped (a drawing's tail or wing reaches past the disc) */\n .ui.circular.background.image {\n --_image-radius: 0;\n overflow: visible;\n background: radial-gradient(circle closest-side, var(--_ui-image-background) 99%, transparent 100%) content-box;\n }\n .ui.circular.images > *,\n .ui.circular.images > ::slotted(*) {\n --_ui-images-radius: var(--_ui-image-circular-radius);\n }\n\n /* Fluid: fills its container. */\n .ui.fluid.image {\n --_image-display: block;\n --_image-width: 100%;\n --_image-inner-width: 100%;\n }\n .ui.fluid.images {\n width: 100%;\n }\n .ui.fluid.images > *,\n .ui.fluid.images > ::slotted(*) {\n --_ui-images-width: 100%;\n }\n\n /* Avatar: a small circle sitting in a line of text. */\n .ui.avatar.image {\n --_image-display: inline-block;\n --_image-width: var(--_ui-image-avatar-size);\n --_image-height: var(--_ui-image-avatar-size);\n --_image-inner-width: 100%;\n --_image-inner-height: 100%;\n --_image-margin: 0 var(--_ui-image-avatar-margin) 0 0;\n --_image-radius: var(--_ui-image-circular-radius);\n --_image-fit: cover;\n }\n .ui.avatar.images > *,\n .ui.avatar.images > ::slotted(*) {\n --_ui-images-width: var(--_ui-image-avatar-size);\n --_ui-images-height: var(--_ui-image-avatar-size);\n --_ui-images-radius: var(--_ui-image-circular-radius);\n }\n\n /* Shaped (`aspect-ratio`, `:state(shaped)`): that shape, the whole picture inside it;\n cropped (`crop`, `ui [top] cropped image`): it fills the shape, keeping the part `crop` names.\n - The component writes the ratio as the image box's token; the part kept is `crop`'s class words.\n - The shape applies only while it's set: otherwise the `<img>`'s `width` / `height` give its shape. */\n :host(:state(shaped)) .ui.image {\n --_image-inner-width: 100%;\n --_image-inner-height: 100%;\n aspect-ratio: var(--_image-ratio);\n object-fit: var(--_image-fit, contain);\n }\n .ui.cropped.image,\n .ui.cropped.image img {\n --_image-fit: cover;\n object-position: var(--_image-crop, center);\n }\n .ui[class*=\"top cropped\"].image {\n --_image-crop: top;\n }\n .ui[class*=\"bottom cropped\"].image {\n --_image-crop: bottom;\n }\n .ui[class*=\"left cropped\"].image {\n --_image-crop: left;\n }\n .ui[class*=\"right cropped\"].image {\n --_image-crop: right;\n }\n .ui[class*=\"top left cropped\"].image {\n --_image-crop: top left;\n }\n .ui[class*=\"top right cropped\"].image {\n --_image-crop: top right;\n }\n .ui[class*=\"bottom left cropped\"].image {\n --_image-crop: bottom left;\n }\n .ui[class*=\"bottom right cropped\"].image {\n --_image-crop: bottom right;\n }\n\n /* Spaced: room on both sides (or one) from the text around it. */\n .ui.spaced.image,\n .ui:is([class*=\"left spaced\"], [class*=\"right spaced\"]).image {\n --_image-display: inline-block;\n --_image-margin: 0 var(--_ui-image-spaced-distance);\n }\n .ui[class*=\"left spaced\"].image {\n --_image-margin: 0 0 0 var(--_ui-image-spaced-distance);\n }\n .ui[class*=\"right spaced\"].image {\n --_image-margin: 0 var(--_ui-image-spaced-distance) 0 0;\n }\n\n /* Floated: text wraps around it; none below the last one. Bare `floated` (static markup) floats left. */\n .ui:is(.floated, [class*=\"left floated\"]):is(.image, .images) {\n --_image-floated-bottom: var(--_ui-image-floated-margin-y);\n float: left;\n }\n .ui[class*=\"right floated\"]:is(.image, .images) {\n float: right;\n }\n .ui.floated:is(.image, .images):last-child {\n --_image-floated-bottom: 0px;\n }\n /* Shadow DOM: the inner box is always an only child, so the ELEMENT's position decides. */\n :host(:not(:last-child)) > .ui.floated:is(.image, .images) {\n --_image-floated-bottom: var(--_ui-image-floated-margin-y);\n }\n .ui.floated.image {\n --_image-margin: 0 var(--_ui-image-floated-margin-x) var(--_image-floated-bottom) 0;\n }\n .ui[class*=\"right floated\"].image {\n --_image-margin: 0 0 var(--_image-floated-bottom) var(--_ui-image-floated-margin-x);\n }\n /* A group's own margin is plain: its private tokens would leak into its children. */\n .ui.floated.images {\n margin: 0 var(--_ui-image-floated-margin-x) var(--_image-floated-bottom) 0;\n }\n .ui[class*=\"right floated\"].images {\n margin: 0 0 var(--_image-floated-bottom) var(--_ui-image-floated-margin-x);\n }\n\n /* Centered: a block with equal space either side; a group centres its rows. */\n .ui.centered.image {\n --_image-display: block;\n --_image-margin: 0 auto;\n }\n .ui.centered.images {\n justify-content: center;\n }\n\n /*\n * Sizes: Fomantic's widths. The size class names a width once, for the image or the group;\n * the image takes it as its own, a group hands it to its children (`--_ui-images-width`).\n */\n .ui.mini:is(.image, .images) {\n --_image-size: var(--_ui-image-width-mini);\n }\n .ui.tiny:is(.image, .images) {\n --_image-size: var(--_ui-image-width-tiny);\n }\n .ui.small:is(.image, .images) {\n --_image-size: var(--_ui-image-width-small);\n }\n .ui.medium:is(.image, .images) {\n --_image-size: var(--_ui-image-width-medium);\n }\n .ui.large:is(.image, .images) {\n --_image-size: var(--_ui-image-width-large);\n }\n .ui.big:is(.image, .images) {\n --_image-size: var(--_ui-image-width-big);\n }\n .ui.huge:is(.image, .images) {\n --_image-size: var(--_ui-image-width-huge);\n }\n .ui.massive:is(.image, .images) {\n --_image-size: var(--_ui-image-width-massive);\n }\n .ui:is(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive):is(.image, .images) {\n font-size: calc(var(--ui-font-size) * var(--ui-scale, 1));\n }\n .ui:is(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive).image {\n --_image-width: var(--_image-size);\n --_image-height: auto;\n --_image-inner-width: 100%;\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.image.states {\n /* Hidden (static markup; elements use the `hidden` attribute). */\n .ui.hidden:is(.image, .images) {\n display: none;\n }\n\n /* Disabled: faded. */\n .ui.disabled:is(.image, .images) {\n cursor: default;\n opacity: var(--_ui-image-disabled-opacity);\n }\n\n /* `zoom` (epic `ui-gaps` P14): a click shows it full size, so the zoom-in cursor; a focus ring, as a button's */\n :host([zoom]:not([disabled])) img {\n cursor: zoom-in;\n }\n :host([zoom]) img:focus-visible {\n outline: 2px solid var(--ui-focus-color, Highlight);\n outline-offset: 2px;\n }\n}\n\n/*******************************\n Figure\n*******************************/\n\n/*\n * `caption` (epic `ui-gaps` P12): a `<figure>` round the image and a `<figcaption>` under it.\n * - `display: table`, the caption a `table-caption` under it: the caption wraps at the picture's width.\n */\n@layer ui.components.image.content {\n .figure {\n display: table;\n margin: 0 0 1em;\n }\n :host(:last-child) > .figure {\n margin-block-end: 0;\n }\n .figure > figcaption {\n display: table-caption;\n caption-side: bottom;\n padding-block-start: var(--ui-space-xs);\n color: var(--ui-text-muted);\n font-size: 0.875em;\n line-height: var(--ui-line-height);\n }\n}\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { imageVocabulary } from \"./UIImage.en\"\n\nimport imageCSS from \"./UIImage.css?inline\"\n\n/****************\n * ### `UIImage`\n * The component behind `<ui-image>`: an image, optionally a link.\n *\n * - Its shadow DOM is `<img class=\"ui … image\" part=\"image\" src alt width height loading>`;\n * with `link`, Fomantic's wrapper form, `<a class=\"ui … image\" part=\"image\" href><img part=\"img\" …></a>`,\n * the link carrying the classes.\n * The element is `display: contents`: the inner box IS the image, so it floats and sits in text as Fomantic's did.\n *\n * - `alt` passes straight through:\n * - `alt=\"\"` is a decorative image (assistive tech skips it)\n * - a MISSING `alt` stays missing: a bug to fix in the page, which axe reports,\n * not one to hide with an empty default\n * - a linked image's `alt` names the link\n * - `width` / `height` are the native intrinsic size (they reserve space before it loads);\n * `size` sets the drawn width.\n * - `caption` (or the `caption` slot) makes it a FIGURE (epic `ui-gaps` P12):\n * `<figure part=\"figure\">` round the image (or its link), then `<figcaption part=\"caption\">` under it,\n * no wider than the picture.\n * - `disabled`: unusable, the base class's way (`elementSetup.disabled`):\n * faded, the image (or its link) inert, `aria-disabled`; a link also loses its link.\n * - `aspect-ratio` and `crop` (epic `language` I18): its shape, and whether it fills it.\n * - `:state(shaped)`, with the ratio as the image box's private token (`--_image-ratio`),\n * so `UIImage.css` draws it and a page's `::part(image)` still wins\n * - `crop` is class words, as Fomantic writes a variation: `ui top cropped image`\n * - only while set: with neither, the `<img>`'s own `width` / `height` keep reserving its space before it loads\n * - `zoom` (epic `ui-gaps` P14): a plain click, or Enter / Space, shows it full size in the page's `<ui-zoom>`\n * (`ImageZoom.show()`, loaded on the first one).\n * - without `link`, the image is a button for it: focusable, named \"<alt>: show full size\"\n * - with `link`, a click with a modifier key still follows the link\n ****************/\nexport class UIImage extends E.UIComponent<typeof imageVocabulary> {\n @E.proto static vocabulary = imageVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { image: imageCSS },\n // `loading`: Fomantic's placeholder look\n loading: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n /** Which named slots have content (the `caption` slot). */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** A figure: `caption`, or something in the `caption` slot. */\n get hasCaption(): boolean {\n return !!this.caption || this.slots.hasContent(this.slotForName(\"caption\"))\n }\n\n render(): JSX.Element {\n return (\n <Show when={this.hasCaption} fallback={this.picture()}>\n <figure class={FIGURE} part={this.partForName(\"figure\")}>\n {this.picture()}\n <figcaption part={this.partForName(\"caption\")}>\n <slot name={this.slotForName(\"caption\")}>{this.caption}</slot>\n </figcaption>\n </figure>\n </Show>\n )\n }\n\n /** The image, or its link round it. */\n private picture(): JSX.Element {\n return (\n <Show when={this.link} fallback={this.image(\"image\")}>\n <a\n class={this.rootClass}\n part={this.partForName(\"image\")}\n href={this.linkTo}\n target={this.linkTarget}\n aria-disabled={this.disabled ? \"true\" : undefined}\n style={this.shapeTokens}\n onClick={this.onZoomClick}\n >\n {this.image(\"img\")}\n </a>\n </Show>\n )\n }\n\n /** The `<img>`: the root (part `image`, with the classes), or the link's child (part `img`). */\n private image(part: \"image\" | \"img\"): JSX.Element {\n const isButton = () => part === \"image\" && this.isZoomButton\n return (\n <img\n class={part === \"image\" ? this.rootClass : undefined}\n part={this.partForName(part)}\n src={this.src}\n alt={this.alt}\n width={this.width}\n height={this.height}\n loading={this.loading as \"eager\" | \"lazy\" | undefined}\n style={part === \"image\" ? this.shapeTokens : undefined}\n role={isButton() ? \"button\" : undefined}\n tabindex={isButton() ? 0 : undefined}\n aria-label={isButton() ? this.zoomLabel : undefined}\n aria-haspopup={isButton() ? \"dialog\" : undefined}\n onClick={part === \"image\" ? this.onZoomClick : undefined}\n onKeyDown={part === \"image\" ? this.onZoomKey : undefined}\n />\n )\n }\n\n ////////////////\n // ## Shape and crop\n ////////////////\n\n /**\n * `aspect-ratio`, as CSS writes it: `2:3`, `2/3` => `2 / 3`; `1.5` as is.\n * - `undefined` without one, or with one that isn't a ratio (a dev warning says so).\n */\n @E.cssState(\"shaped\")\n get ratio(): string | undefined {\n const written = this.aspectRatio?.trim()\n if (!written) return undefined\n const match = RATIO.exec(written)\n if (match) return match[2] ? `${match[1]} / ${match[2]}` : match[1]\n E.Warnings.devWarn(\"<ui-image>\", `aspect-ratio=\"${written}\" isn't a ratio: write \\`2:3\\`, \\`16/9\\` or \\`1\\``)\n return undefined\n }\n\n /** The image box's private token for its shape (the `<img>`, or its link), read by `UIImage.css`. */\n get shapeTokens(): Record<string, string> | undefined {\n return this.ratio ? { \"--_image-ratio\": this.ratio } : undefined\n }\n\n ////////////////\n // ## Zoom\n ////////////////\n\n /** `zoom`, with no link: the image itself is the button that shows it full size. */\n get isZoomButton(): boolean {\n return !!this.zoom && !this.link && !this.disabled\n }\n\n /** The zoom button's name: its alt text, then what it does. */\n get zoomLabel(): string {\n return this.alt ? this.translationForKey(\"zoom\", { alt: this.alt }) : this.translationForKey(\"zoomUntitled\")\n }\n\n /** A plain click on it (or its link), with `zoom`: shown full size, the link not followed. */\n @E.untracked\n private readonly onZoomClick = (event: MouseEvent) => {\n if (!this.zoom || this.disabled || event.button !== 0) return\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return\n event.preventDefault()\n this.showFullSize()\n }\n\n /** Enter or Space on the zoom button. */\n @E.untracked\n private readonly onZoomKey = (event: KeyboardEvent) => {\n if (!this.isZoomButton || (event.key !== \"Enter\" && event.key !== \" \")) return\n event.preventDefault()\n this.showFullSize()\n }\n\n /** In the page's `<ui-zoom>`: its family (and `ImageZoom`) loaded on the first one, so an image without `zoom` never pays for it. */\n private showFullSize() {\n const image = this.domElement.shadowRoot?.querySelector(\"img\")\n if (!image) return\n void import(\"spell/ui/components/ui-zoom\")\n .then(({ ImageZoom }) => ImageZoom.show(image))\n .catch((error) => console.error(error))\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIImage extends E.AttributeValues<typeof imageVocabulary> {}\n\n/** The figure's class. */\nconst FIGURE = \"figure\"\n\n/** An `aspect-ratio`: `2:3`, `2/3`, `2 / 3`, or one number, `1.5`. */\nconst RATIO = /^(\\d+(?:\\.\\d+)?)\\s*(?:[:/]\\s*(\\d+(?:\\.\\d+)?))?$/\n","/**\n * The English vocabulary of `<ui-images>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots and parts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - How the family's attributes become class words: `UIImage.en.ts`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `imagesVocabulary`\n * The names of `<ui-images>`, a group of images in one wrapping row: `<div class=\"ui … images\" part=\"group\">`.\n ****************/\nexport const imagesVocabulary = {\n tag: \"ui-images\",\n icon: \"images outline\",\n topics: [\"images\", \"media\", \"layout\", \"elements\"],\n aka: [\"image group\", \"gallery\", \"avatars\"],\n noun: \"images\",\n description: \"A group of images can be formatted together.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Width of every image in the group, `mini` ... `massive`.\"\n },\n { name: \"avatar\", group: \"content\", kind: \"keyOnly\", description: \"Every image a small circle.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n // the words are the classes: no key after them (`ClassBuilder`)\n classes: {},\n values: [\"bordered\", \"circular\", \"rounded\"],\n replaces: [\n { from: \"bordered\", value: \"bordered\" },\n { from: \"circular\", value: \"circular\" },\n { from: \"rounded\", value: \"rounded\" }\n ],\n description:\n \"Every image's look, several words at once: `bordered` (a hairline border), `circular` (cropped to a \" +\n \"circle), `rounded` (softly rounded corners). Old names: `bordered`, `circular`, `rounded` written alone.\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"center\"],\n classes: { center: \"centered\" },\n replaces: [{ from: \"centered\", value: \"center\" }],\n description: \"`center`: rows centred in the container. Its old name was `centered`.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"The whole group faded.\" },\n {\n name: \"fluid\",\n group: \"layout\",\n kind: \"keyOnly\",\n description: \"Every image fills the group's width, one per row.\"\n },\n {\n name: \"vertical-align\",\n group: \"layout\",\n kind: \"verticalAlign\",\n values: [\"top\", \"middle\", \"bottom\"],\n description: \"Aligns the images of a row `top`, `middle` (default) or `bottom`.\"\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-image>`s (or plain `<img>`s).\" }],\n parts: [{ name: \"group\", description: \"The group box.\" }],\n states: [],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { imagesVocabulary } from \"./UIImages.en\"\n\nimport imageCSS from \"./UIImage.css?inline\"\n\n/****************\n * ### `UIImages`\n * The component behind `<ui-images>`: a group of images in one wrapping row.\n *\n * - Its shadow DOM is one box, `<div class=\"ui … images\" part=\"group\">`, around a slot for the images.\n * - `UIImage.css` hands the group's look (size, border, radius, spacing) to each child,\n * through `--_ui-images-*` tokens: a `display: contents` `<ui-image>` takes no box styles from `::slotted()`.\n ****************/\nexport class UIImages extends E.UIComponent<typeof imagesVocabulary> {\n @E.proto static vocabulary = imagesVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { image: imageCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIImages extends E.AttributeValues<typeof imagesVocabulary> {}\n","/**\n * The image family: defines `<ui-image>` and `<ui-images>`, and exports their components, `UIImage` and `UIImages`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-image` entry (its size is in `notes/report.md`).\n * - NOT the generic content part `<ui-image>` of cards and items (`plan.md`): those come with their owners.\n */\n\nimport { UIImage } from \"./UIImage\"\nimport { UIImages } from \"./UIImages\"\n\nUIImage.define()\nUIImages.define()\n\nexport { UIImage, UIImages }\n"],"mappings":";;;;;AAuBA,IAAa6D,IAAkB;CAC7B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAU;EAAS;EAAS;CAAU;CAC/C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