spell-ui 0.8.6 → 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 +13 -3
- 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 +22 -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 +530 -24
- 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 +124 -92
- 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-statistic.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { Bt as e,
|
|
2
|
+
import { Bt as e, Ht as t, I as n, Lt as r, PartComponent as i, Rt as a, UIComponent as o, Ut as s, _t as c, cssState as l, derived as u, proto as d, protoMerged as f, vt as p, xt as m, zt as h } from "./core.js";
|
|
3
3
|
import { Show as g } from "solid-js";
|
|
4
4
|
import { className as _, createComponent as v, effect as y, getOwner as b, insert as x, readShallow as S, setAttribute as C, template as w } from "@solidjs/web";
|
|
5
5
|
//#region src/components/ui-statistic/UIStatistic.en.ts
|
|
6
6
|
var T = {
|
|
7
7
|
tag: "ui-statistic",
|
|
8
|
+
icon: "chart bar outline",
|
|
8
9
|
topics: [
|
|
9
10
|
"data display",
|
|
10
11
|
"text",
|
|
@@ -104,9 +105,9 @@ var T = {
|
|
|
104
105
|
}],
|
|
105
106
|
texts: [],
|
|
106
107
|
ownsParts: ["value", "label"]
|
|
107
|
-
}, E = "@layer ui.components.statistic.types{:host{--ui-color:var(--_statistics-color);--ui-color-text:initial;--ui-color-header:initial;--ui-color-border:initial;--ui-color-background:initial;--ui-color-inverted:initial;--ui-color-hover:initial;--ui-color-focus:initial;--ui-color-down:initial;--ui-color-active:initial;--ui-color-on:initial;--ui-color-inverted-on:initial;display:contents}:host(:state(statistics)){display:block;container:ui-statistics/inline-size}:host(:state(spaced):not(:first-child)){margin-block-start:1em}:has(>.ui.stackable.statistics){container:ui-statistics/inline-size}.ui.statistic,.ui.statistics{--_ui-statistic-margin:var(--ui-statistic-margin,1em 0);--_ui-statistic-horizontal-spacing:var(--ui-statistic-horizontal-spacing,1.5em);--_ui-statistic-row-spacing:var(--ui-statistic-row-spacing,1em);--_ui-statistic-floated-distance:var(--ui-statistic-floated-distance,2em);--_ui-statistic-stackable-padding:var(--ui-statistic-stackable-padding,calc(var(--ui-font-size) * 1))}.ui.statistic,.ui.statistics>.statistic{--_ui-statistic-layout:var(--_statistics-layout,vertical);--_ui-statistic-value-size:var(--ui-statistic-value-size,calc(var(--ui-font-size) * var(--_statistic-value,4)));--_ui-statistic-text-value-size:var(--ui-statistic-text-value-size,calc(var(--ui-font-size) * var(--_statistic-tvalue,2)));--ui-inverted:var(--_statistics-inverted,0)}.ui.statistic{box-sizing:border-box;flex-direction:column;max-width:none;display:inline-flex}.ui.statistics{--_statistics-group:1;--_statistics-color:var(--ui-color);margin:1em calc(-1 * var(--_ui-statistic-horizontal-spacing)) calc(-1 * var(--_ui-statistic-row-spacing));flex-wrap:wrap;align-items:flex-start;display:flex}:host(:first-child)>.ui.statistics,.ui.statistics:first-child{margin-top:0}}@layer ui.components.statistic.content{@container not style(--_statistics-group:1){.ui.statistic{margin:var(--_ui-statistic-margin)}:host(:nth-child(n+2 of :state(statistic)))>.ui.statistic,.ui.statistic+.ui.statistic{margin:0 0 0 var(--_ui-statistic-horizontal-spacing)}:host(:first-child)>.ui.statistic,.ui.statistic:first-child{margin-top:0}:host(:last-child)>.ui.statistic,.ui.statistic:last-child{margin-bottom:0}:host(:not(:nth-child(n+2 of :state(statistic))))>.ui.statistic:not([data-ui]){margin:var(--_ui-statistic-margin)}:host(:first-child:not(:nth-child(n+2 of :state(statistic))))>.ui.statistic:not([data-ui]){margin-top:0}:host(:last-child:not(:nth-child(n+2 of :state(statistic))))>.ui.statistic:not([data-ui]){margin-bottom:0}}@container style(--_statistics-group:1){:host>.ui.statistic,.ui.statistics>.statistic{flex:var(--_statistics-flex,0 1 auto);min-width:var(--_statistics-min-width,0);max-width:none;margin:var(--_statistics-member-margin,0 var(--_ui-statistic-horizontal-spacing) var(--_ui-statistic-row-spacing));flex-direction:column;display:inline-flex}}}@layer ui.components.statistic.variations{.ui.mini:is(.statistic,.statistics){--_statistic-value:1.5;--_statistic-hvalue:1.5;--_statistic-tvalue:1}.ui.tiny:is(.statistic,.statistics){--_statistic-value:2;--_statistic-hvalue:2;--_statistic-tvalue:1}.ui.small:is(.statistic,.statistics){--_statistic-value:3;--_statistic-hvalue:2;--_statistic-tvalue:1}.ui.large:is(.statistic,.statistics){--_statistic-value:5;--_statistic-hvalue:4;--_statistic-tvalue:2.5}.ui.big:is(.statistic,.statistics){--_statistic-value:5.5;--_statistic-hvalue:4.5;--_statistic-tvalue:2.5}.ui.huge:is(.statistic,.statistics){--_statistic-value:6;--_statistic-hvalue:5;--_statistic-tvalue:2.5}.ui.massive:is(.statistic,.statistics){--_statistic-value:7;--_statistic-hvalue:6;--_statistic-tvalue:3}.ui.medium:is(.statistic,.statistics){--_statistic-value:4;--_statistic-hvalue:3;--_statistic-tvalue:2}.ui.horizontal.statistic{--_ui-statistic-layout:horizontal;flex-direction:row;align-items:center}.ui.horizontal.statistic,.ui.horizontal.statistics>.statistic{--_ui-statistic-value-size:calc(var(--ui-font-size) * var(--_statistic-hvalue,3))}.ui.horizontal.statistics{--_statistics-layout:horizontal;--_statistics-member-margin:1em 0;flex-direction:column;max-width:none;margin:0}@container style(--_statistics-layout:horizontal){:host>.ui.statistic,.ui.statistics>.statistic{--_ui-statistic-value-size:calc(var(--ui-font-size) * var(--_statistic-hvalue,3));flex-direction:row;align-items:center}}.ui.inverted.statistic,.ui.inverted.statistics{--ui-inverted:1;--ui-scheme:dark;color-scheme:dark}.ui.inverted.statistics{--_statistics-inverted:1}.ui.fluid.statistic{width:100%}.ui[class*=left\\ floated].statistic{float:left;margin:0 var(--_ui-statistic-floated-distance) var(--_ui-statistic-row-spacing) 0}.ui[class*=right\\ floated].statistic{float:right;margin:0 0 var(--_ui-statistic-row-spacing) var(--_ui-statistic-floated-distance)}:host(:last-child)>.ui.floated.statistic,.ui.floated.statistic:last-child{margin-bottom:0}:host(:not(:last-child))>.ui.floated.statistic:not([data-ui]){margin-bottom:var(--_ui-statistic-row-spacing)}.ui:is(.one,.two,.three,.four,.five,.six,.seven,.eight,.nine,.ten).statistics{--_statistics-member-margin:0 0 var(--_ui-statistic-row-spacing);margin:0 0 calc(-1 * var(--_ui-statistic-row-spacing))}.ui.one.statistics{--_statistics-min-width:100%}.ui.two.statistics{--_statistics-min-width:50%}.ui.three.statistics{--_statistics-min-width:33.3333%}.ui.four.statistics{--_statistics-min-width:25%}.ui.five.statistics{--_statistics-min-width:20%}.ui.six.statistics{--_statistics-min-width:16.6667%}.ui.seven.statistics{--_statistics-min-width:14.2857%}.ui.eight.statistics{--_statistics-min-width:12.5%}.ui.nine.statistics{--_statistics-min-width:11.1111%}.ui.ten.statistics{--_statistics-min-width:10%}.ui.equal.statistics:not(.horizontal){--_statistics-flex:1 1 0%;--_statistics-member-margin:0 0 var(--_ui-statistic-row-spacing);margin:0 0 calc(-1 * var(--_ui-statistic-row-spacing))}@container ui-statistics (width<768px){@container not style(--ui-stack-with:page){.ui.stackable.statistics:not(.stack-with-page){--_statistics-stacked:1;width:auto;margin-inline:0}}@container style(--ui-stack-with:page){.ui.stackable.statistics.stack-with-container{--_statistics-stacked:1;width:auto;margin-inline:0}}}@media (width<768px){@container style(--ui-stack-with:page){.ui.stackable.statistics:not(.stack-with-container){--_statistics-stacked:1;width:auto;margin-inline:0}}@container not style(--ui-stack-with:page){.ui.stackable.statistics.stack-with-page{--_statistics-stacked:1;width:auto;margin-inline:0}}}@container style(--_statistics-stacked:1){:host>.ui.statistic,.ui.statistics>.statistic{box-sizing:border-box;width:100%;padding:calc(var(--_ui-statistic-stackable-padding) / 2);flex:0 auto;margin:0}}}@layer ui.components.statistic.states;", D = /* @__PURE__ */ w("<div>"), O = /* @__PURE__ */ w("<div><slot></slot><!>"), k, A, j, M, N, P, F = class _UIStatistic extends (N =
|
|
108
|
+
}, E = "@layer ui.components.statistic.types{:host{--ui-color:var(--_statistics-color);--ui-color-text:initial;--ui-color-header:initial;--ui-color-border:initial;--ui-color-background:initial;--ui-color-inverted:initial;--ui-color-hover:initial;--ui-color-focus:initial;--ui-color-down:initial;--ui-color-active:initial;--ui-color-on:initial;--ui-color-inverted-on:initial;display:contents}:host(:state(statistics)){display:block;container:ui-statistics/inline-size}:host(:state(spaced):not(:first-child)){margin-block-start:1em}:has(>.ui.stackable.statistics){container:ui-statistics/inline-size}.ui.statistic,.ui.statistics{--_ui-statistic-margin:var(--ui-statistic-margin,1em 0);--_ui-statistic-horizontal-spacing:var(--ui-statistic-horizontal-spacing,1.5em);--_ui-statistic-row-spacing:var(--ui-statistic-row-spacing,1em);--_ui-statistic-floated-distance:var(--ui-statistic-floated-distance,2em);--_ui-statistic-stackable-padding:var(--ui-statistic-stackable-padding,calc(var(--ui-font-size) * 1))}.ui.statistic,.ui.statistics>.statistic{--_ui-statistic-layout:var(--_statistics-layout,vertical);--_ui-statistic-value-size:var(--ui-statistic-value-size,calc(var(--ui-font-size) * var(--_statistic-value,4)));--_ui-statistic-text-value-size:var(--ui-statistic-text-value-size,calc(var(--ui-font-size) * var(--_statistic-tvalue,2)));--ui-inverted:var(--_statistics-inverted,0)}.ui.statistic{box-sizing:border-box;flex-direction:column;max-width:none;display:inline-flex}.ui.statistics{--_statistics-group:1;--_statistics-color:var(--ui-color);margin:1em calc(-1 * var(--_ui-statistic-horizontal-spacing)) calc(-1 * var(--_ui-statistic-row-spacing));flex-wrap:wrap;align-items:flex-start;display:flex}:host(:first-child)>.ui.statistics,.ui.statistics:first-child{margin-top:0}}@layer ui.components.statistic.content{@container not style(--_statistics-group:1){.ui.statistic{margin:var(--_ui-statistic-margin)}:host(:nth-child(n+2 of :state(statistic)))>.ui.statistic,.ui.statistic+.ui.statistic{margin:0 0 0 var(--_ui-statistic-horizontal-spacing)}:host(:first-child)>.ui.statistic,.ui.statistic:first-child{margin-top:0}:host(:last-child)>.ui.statistic,.ui.statistic:last-child{margin-bottom:0}:host(:not(:nth-child(n+2 of :state(statistic))))>.ui.statistic:not([data-ui]){margin:var(--_ui-statistic-margin)}:host(:first-child:not(:nth-child(n+2 of :state(statistic))))>.ui.statistic:not([data-ui]){margin-top:0}:host(:last-child:not(:nth-child(n+2 of :state(statistic))))>.ui.statistic:not([data-ui]){margin-bottom:0}}@container style(--_statistics-group:1){:host>.ui.statistic,.ui.statistics>.statistic{flex:var(--_statistics-flex,0 1 auto);min-width:var(--_statistics-min-width,0);max-width:none;margin:var(--_statistics-member-margin,0 var(--_ui-statistic-horizontal-spacing) var(--_ui-statistic-row-spacing));flex-direction:column;display:inline-flex}}}@layer ui.components.statistic.variations{.ui.mini:is(.statistic,.statistics){--_statistic-value:1.5;--_statistic-hvalue:1.5;--_statistic-tvalue:1}.ui.tiny:is(.statistic,.statistics){--_statistic-value:2;--_statistic-hvalue:2;--_statistic-tvalue:1}.ui.small:is(.statistic,.statistics){--_statistic-value:3;--_statistic-hvalue:2;--_statistic-tvalue:1}.ui.large:is(.statistic,.statistics){--_statistic-value:5;--_statistic-hvalue:4;--_statistic-tvalue:2.5}.ui.big:is(.statistic,.statistics){--_statistic-value:5.5;--_statistic-hvalue:4.5;--_statistic-tvalue:2.5}.ui.huge:is(.statistic,.statistics){--_statistic-value:6;--_statistic-hvalue:5;--_statistic-tvalue:2.5}.ui.massive:is(.statistic,.statistics){--_statistic-value:7;--_statistic-hvalue:6;--_statistic-tvalue:3}.ui.medium:is(.statistic,.statistics){--_statistic-value:4;--_statistic-hvalue:3;--_statistic-tvalue:2}.ui.horizontal.statistic{--_ui-statistic-layout:horizontal;flex-direction:row;align-items:center}.ui.horizontal.statistic,.ui.horizontal.statistics>.statistic{--_ui-statistic-value-size:calc(var(--ui-font-size) * var(--_statistic-hvalue,3))}.ui.horizontal.statistics{--_statistics-layout:horizontal;--_statistics-member-margin:1em 0;flex-direction:column;max-width:none;margin:0}@container style(--_statistics-layout:horizontal){:host>.ui.statistic,.ui.statistics>.statistic{--_ui-statistic-value-size:calc(var(--ui-font-size) * var(--_statistic-hvalue,3));flex-direction:row;align-items:center}}.ui.inverted.statistic,.ui.inverted.statistics{--ui-inverted:1;--ui-scheme:dark;color-scheme:dark}.ui.inverted.statistics{--_statistics-inverted:1}.ui.fluid.statistic{width:100%}.ui[class*=left\\ floated].statistic{float:left;margin:0 var(--_ui-statistic-floated-distance) var(--_ui-statistic-row-spacing) 0}.ui[class*=right\\ floated].statistic{float:right;margin:0 0 var(--_ui-statistic-row-spacing) var(--_ui-statistic-floated-distance)}:host(:last-child)>.ui.floated.statistic,.ui.floated.statistic:last-child{margin-bottom:0}:host(:not(:last-child))>.ui.floated.statistic:not([data-ui]){margin-bottom:var(--_ui-statistic-row-spacing)}.ui:is(.one,.two,.three,.four,.five,.six,.seven,.eight,.nine,.ten).statistics{--_statistics-member-margin:0 0 var(--_ui-statistic-row-spacing);margin:0 0 calc(-1 * var(--_ui-statistic-row-spacing))}.ui.one.statistics{--_statistics-min-width:100%}.ui.two.statistics{--_statistics-min-width:50%}.ui.three.statistics{--_statistics-min-width:33.3333%}.ui.four.statistics{--_statistics-min-width:25%}.ui.five.statistics{--_statistics-min-width:20%}.ui.six.statistics{--_statistics-min-width:16.6667%}.ui.seven.statistics{--_statistics-min-width:14.2857%}.ui.eight.statistics{--_statistics-min-width:12.5%}.ui.nine.statistics{--_statistics-min-width:11.1111%}.ui.ten.statistics{--_statistics-min-width:10%}.ui.equal.statistics:not(.horizontal){--_statistics-flex:1 1 0%;--_statistics-member-margin:0 0 var(--_ui-statistic-row-spacing);margin:0 0 calc(-1 * var(--_ui-statistic-row-spacing))}@container ui-statistics (width<768px){@container not style(--ui-stack-with:page){.ui.stackable.statistics:not(.stack-with-page){--_statistics-stacked:1;width:auto;margin-inline:0}}@container style(--ui-stack-with:page){.ui.stackable.statistics.stack-with-container{--_statistics-stacked:1;width:auto;margin-inline:0}}}@media (width<768px){@container style(--ui-stack-with:page){.ui.stackable.statistics:not(.stack-with-container){--_statistics-stacked:1;width:auto;margin-inline:0}}@container not style(--ui-stack-with:page){.ui.stackable.statistics.stack-with-page{--_statistics-stacked:1;width:auto;margin-inline:0}}}@container style(--_statistics-stacked:1){:host>.ui.statistic,.ui.statistics>.statistic{box-sizing:border-box;width:100%;padding:calc(var(--_ui-statistic-stackable-padding) / 2);flex:0 auto;margin:0}}}@layer ui.components.statistic.states;", D = /* @__PURE__ */ w("<div>"), O = /* @__PURE__ */ w("<div><slot></slot><!>"), k, A, j, M, N, P, F = class _UIStatistic extends (N = o, M = [d], j = [f], A = [l("statistic")], k = [u], N) {
|
|
108
109
|
constructor() {
|
|
109
|
-
super(...arguments),
|
|
110
|
+
super(...arguments), s(P, 5, this);
|
|
110
111
|
}
|
|
111
112
|
get isStatistic() {
|
|
112
113
|
return !0;
|
|
@@ -149,22 +150,23 @@ var T = {
|
|
|
149
150
|
}
|
|
150
151
|
get valueClasses() {
|
|
151
152
|
let e = this.staticPart(L);
|
|
152
|
-
return this.text ? `${
|
|
153
|
+
return this.text ? `${m} ${e}` : e;
|
|
153
154
|
}
|
|
154
155
|
staticPart(e) {
|
|
155
156
|
return `${e} in-${this.vocabulary.noun}`;
|
|
156
157
|
}
|
|
157
158
|
};
|
|
158
|
-
P =
|
|
159
|
+
P = h(N), r(P, 2, "isStatistic", A, F), r(P, 2, "valueClasses", k, F), r(P, 13, "vocabulary", M, F), r(P, 13, "elementSetup", j, F), a(P, F), e(F, "UIStatistic"), t(F, "vocabulary", s(P, 8, F, T)), s(P, 11, F), t(F, "elementSetup", s(P, 12, F, {
|
|
159
160
|
styleSheets: {
|
|
160
161
|
statistic: E,
|
|
161
|
-
...
|
|
162
|
+
...i.prototype.elementSetup.styleSheets
|
|
162
163
|
},
|
|
163
164
|
cssStates: ["inverted"],
|
|
164
165
|
delegatesFocus: !1
|
|
165
|
-
})),
|
|
166
|
+
})), s(P, 15, F);
|
|
166
167
|
var I = F, L = "value", R = {
|
|
167
168
|
tag: "ui-statistics",
|
|
169
|
+
icon: "chart bar",
|
|
168
170
|
topics: [
|
|
169
171
|
"data display",
|
|
170
172
|
"layout",
|
|
@@ -218,7 +220,7 @@ var I = F, L = "value", R = {
|
|
|
218
220
|
name: "stack-with",
|
|
219
221
|
group: "layout",
|
|
220
222
|
kind: "enum",
|
|
221
|
-
values:
|
|
223
|
+
values: p,
|
|
222
224
|
description: "What `stackable` measures: `container` (the default) -- the group's own width; `page` -- the screen's, as in Fomantic. Unset: the page-wide `--ui-stack-with` token decides (`<ui-root stack-with>`)."
|
|
223
225
|
},
|
|
224
226
|
{
|
|
@@ -264,9 +266,9 @@ var I = F, L = "value", R = {
|
|
|
264
266
|
description: "Set unless `horizontal` or `widths`: the group keeps Fomantic's 1em top margin, which the HOST carries (so it collapses with the content above)."
|
|
265
267
|
}],
|
|
266
268
|
texts: []
|
|
267
|
-
}, z = /* @__PURE__ */ w("<div><slot>"), B, V, H, U, W, G, K = class _UIStatistics extends (W =
|
|
269
|
+
}, z = /* @__PURE__ */ w("<div><slot>"), B, V, H, U, W, G, K = class _UIStatistics extends (W = o, U = [d], H = [f], V = [l("statistics")], B = [l("spaced")], W) {
|
|
268
270
|
constructor() {
|
|
269
|
-
super(...arguments),
|
|
271
|
+
super(...arguments), s(G, 5, this);
|
|
270
272
|
}
|
|
271
273
|
get isStatistics() {
|
|
272
274
|
return !0;
|
|
@@ -275,7 +277,7 @@ var I = F, L = "value", R = {
|
|
|
275
277
|
return !this.direction && !this.widths;
|
|
276
278
|
}
|
|
277
279
|
get extraClass() {
|
|
278
|
-
return
|
|
280
|
+
return c.classFor(this.stackWith);
|
|
279
281
|
}
|
|
280
282
|
render() {
|
|
281
283
|
let e = this;
|
|
@@ -288,10 +290,10 @@ var I = F, L = "value", R = {
|
|
|
288
290
|
}), t;
|
|
289
291
|
}
|
|
290
292
|
};
|
|
291
|
-
G =
|
|
293
|
+
G = h(W), r(G, 2, "isStatistics", V, K), r(G, 2, "isSpaced", B, K), r(G, 13, "vocabulary", U, K), r(G, 13, "elementSetup", H, K), a(G, K), e(K, "UIStatistics"), t(K, "vocabulary", s(G, 8, K, R)), s(G, 11, K), t(K, "elementSetup", s(G, 12, K, {
|
|
292
294
|
styleSheets: { statistic: E },
|
|
293
295
|
delegatesFocus: !1
|
|
294
|
-
})),
|
|
296
|
+
})), s(G, 15, K);
|
|
295
297
|
var q = K;
|
|
296
298
|
I.define(), q.define();
|
|
297
299
|
//#endregion
|
package/dist/ui-statistic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-statistic.js","names":["<Show when={this.value}>\n <div class={this.valueClasses} part={this.partForName(\"value\")}>\n {this.value}\n </div>\n </Show>","this","part={this.partForName(\"value\")}","<div class={this.valueClasses} part={this.partForName(\"value\")}>\n {this.value}\n </div>","<div class={this.rootClass} part={this.partForName(\"statistic\")}>\n <Show when={this.value}>\n <div class={this.valueClasses} part={this.partForName(\"value\")}>\n {this.value}\n </div>\n </Show>\n <slot />\n <Show when={this.label}>\n <div class={this.staticPart(UIT.LABEL)} part={this.partForName(\"label\")}>\n {this.label}\n </div>\n </Show>\n </div>","<Show when={this.label}>\n <div class={this.staticPart(UIT.LABEL)} part={this.partForName(\"label\")}>\n {this.label}\n </div>\n </Show>","part={this.partForName(\"label\")}","<div class={this.staticPart(UIT.LABEL)} part={this.partForName(\"label\")}>\n {this.label}\n </div>","part={this.partForName(\"statistic\")}","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.derived","_$createComponent","_$readShallow","_$setAttribute","_$getOwner","UIT.LABEL","UIT.TEXT","__name","statisticCSS","UIT.StackWithValues","this","part={this.partForName(\"group\")}","<div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>","E.UIComponent","E.proto","E.protoMerged","E.cssState","_$getOwner","_$readShallow","_$setAttribute","__name","statisticCSS","__publicField","__decorateElement","LABEL","__decoratorMetadata","__decoratorStart","__name$1","__runInitializers","StackWithValues","TEXT","StackClasses","getOwner$1","statisticVocabulary","UIStatistic_default","_tmpl$$1","_tmpl$2","_valueClasses_dec","_isStatistic_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UIStatistic","UIComponent","proto","protoMerged","cssState","derived","_self$","_el$","_el$3","_el$5","insert","createComponent","Show","_el$2","effect","readShallow","className","_p$","t","setAttribute","_el$4","value","VALUE","noun","PartComponent","UIStatistic","statisticsVocabulary","_tmpl$","_isSpaced_dec","_isStatistics_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIStatistics","UIStatistics"],"sources":["../src/components/ui-statistic/UIStatistic.en.ts","../src/components/ui-statistic/UIStatistic.css?inline","../src/components/ui-statistic/UIStatistic.tsx","../src/components/ui-statistic/UIStatistics.en.ts","../src/components/ui-statistic/UIStatistics.tsx","../src/components/ui-statistic/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-statistic>`: 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 * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-statistic size=\"large\" color=\"red\" direction=\"horizontal\">` => `ui large red horizontal statistic`;\n * `<ui-statistics widths=\"3\" stackable>` => `ui stackable three statistics`. `UIStatistic.css` keys on those words.\n * - Content is the GENERIC parts, owned by the statistic (`ownsParts`): `<ui-value>` (Fomantic's `.value`) and\n * `<ui-label>` (Fomantic's `.label`). There is NO separate label part tag: a `<ui-label>` inside a statistic\n * already renders as that statistic's `.label` part (`UILabel`, `:state(in-statistic)`), so the one word \"label\"\n * keeps meaning one element, and a `<ui-label-part>` / `<ui-caption>` would only be a second spelling of it.\n * - Shorthand: `value` / `label` render the same two parts inside the statistic's own shadow root,\n * the value BEFORE the slot and the label AFTER it, so either pairs with a slotted part;\n * slotted parts keep their order, so a `<ui-label>` before a `<ui-value>` is Fomantic's top label.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `statisticVocabulary`\n * The names of `<ui-statistic>`, a statistic: `<div class=\"ui ... statistic\" part=\"statistic\">` holding the `value`\n * shorthand, the slot and the `label` shorthand.\n ****************/\nexport const statisticVocabulary = {\n tag: \"ui-statistic\",\n topics: [\"data display\", \"text\", \"views\"],\n aka: [\"stat\", \"kpi\", \"metric\", \"counter\", \"number display\"],\n skeleton: \"inline 6 x 4\",\n noun: \"statistic\",\n plural: \"statistics\",\n description: \"A statistic emphasizes the current value of an attribute.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size of the value, `mini` ... `massive`; `medium` is the default.\"\n },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue of the value.\" },\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"horizontal\"],\n replaces: [{ from: \"horizontal\", value: \"horizontal\" }],\n description: \"`horizontal`: value and label on one line. Its old name was `horizontal`.\"\n },\n {\n name: \"inverted\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"For dark backgrounds: the dark scheme, a white value.\"\n },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Takes the full width of its container.\" },\n {\n name: \"value\",\n group: \"form\",\n kind: \"string\",\n description: \"Shorthand for a `<ui-value>`: the number (or word) shown.\"\n },\n {\n name: \"text\",\n group: \"name\",\n kind: \"boolean\",\n description: \"The `value` shorthand is a WORD (`text value`): smaller, bold, at least two lines tall.\"\n },\n { name: \"label\", group: \"name\", kind: \"string\", description: \"Shorthand for the label below the value.\" }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-value>` and `<ui-label>` parts, in display order.\" }],\n parts: [\n { name: \"statistic\", description: \"The statistic box.\" },\n { name: \"value\", description: \"The `value` shorthand.\" },\n { name: \"label\", description: \"The `label` shorthand.\" }\n ],\n states: [\n {\n name: \"statistic\",\n description:\n \"ALWAYS set: `UIStatistic.css` spaces a statistic after another by it (a shadow root can't see its host's sibling).\"\n },\n { name: \"inverted\", description: \"For dark backgrounds.\" }\n ],\n texts: [],\n ownsParts: [\"value\", \"label\"]\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-statistic>` and `<ui-statistics>`:\n * a port of Fomantic's `statistic.less` + `statistic.variables`, the BOXES.\n * The value and label rules (`.ui.statistic > .value / .label`, sizes, horizontal, inverted, colours)\n * are the generic parts' (`UIParts.css`, `:state(in-statistic)`), which read the owner tokens this sheet declares.\n * - ONE sheet for both elements; each adopts it after the foundation\n * (the statistic also adopts `UIParts.css`, for its `value` / `label` shorthands).\n * - Shadow markup contract (class grammar on semantic elements):\n * - `<ui-statistic>`: `<div class=\"ui [size] [color] [keyOnly ...] [floated] statistic\" part=\"statistic\">`,\n * holding the shorthands, then `<slot>`:\n * `<div class=\"[text] value in-statistic\" part=\"value\">` and `<div class=\"label in-statistic\" part=\"label\">`\n * (the STATIC part classes: they are real children of this root)\n * - `<ui-statistics>`: `<div class=\"ui [size] [color] [keyOnly ...] [count] statistics\" part=\"group\">`\n * around `<slot>`\n * - DOM elements:\n * - a statistic's is `display: contents`: the root IS the flex column, where Fomantic's `.ui.statistic` sat\n * - a group's is a BLOCK, and the size container `ui-statistics`, for `stackable`\n * - The DOM element's position stands in for Fomantic's sibling selectors:\n * - `:host(:first-child)` for `:first-child`\n * - `:host(:nth-child(n + 2 of :state(statistic)))` for `.ui.statistic + .ui.statistic`:\n * a statistic AFTER another, not necessarily adjacent (a shadow root can't see its DOM element's previous sibling)\n *\n * ## Public tokens\n * `--ui-statistic-*` (the theming surface) are NEVER declared here:\n * every statistic and group root reads each through a private alias, and every rule reads the alias:\n * `--_ui-statistic-row-spacing: var(--ui-statistic-row-spacing, 1em)`.\n * So a value set on `:root`, an ancestor, the DOM element, `::part(statistic)` / `::part(group)`\n * or in the app stylesheet reaches the box (`notes/theming.md` \"Component tokens\").\n *\n * ## Owner tokens (read by `UIParts.css`)\n * Every statistic root declares them, defaults included:\n * - `--_ui-statistic-layout` -- `vertical` / `horizontal` (`horizontal`, or a horizontal group)\n * - `--_ui-statistic-value-size` / `--_ui-statistic-text-value-size` -- the aliases of the public value font sizes:\n * - defaulting to its size's (Fomantic's ladder, a multiple of `--ui-font-size`);\n * `horizontal` swaps in the horizontal ladder\n * - so a page sets them on the statistic, its group or above, not on the value part\n * - `--ui-inverted` -- `0` / `1`; `inverted` also sets `color-scheme: dark`, and every `light-dark()` token follows\n *\n * ## Group -> statistic\n * A statistic can't see its group's classes, so a group root hands its members PRIVATE inherited tokens,\n * which a statistic root reads first (never set them from outside):\n * - `--_statistics-group: 1` -- in a group: the member layout instead of the standalone margins\n * - `--_statistic-value` / `-hvalue` / `-tvalue` -- size ratios, declared by a size class on either root;\n * a member without its own size inherits the group's\n * - `--_statistics-layout: horizontal`, `--_statistics-inverted: 1` -- a horizontal / inverted group\n * - `--_statistics-min-width` / `--_statistics-member-margin` -- an evenly divided group (`three statistics`)\n * - `--_statistics-flex` -- a member's `flex`: an equal share of the row in an `equal` group\n * - `--_statistics-stacked: 1` -- a `stackable` group narrower than 768px (the GROUP's width).\n * The group root answers the size query in its own tree and hands the answer down:\n * container names are tree-scoped, so a member couldn't query its group's container itself.\n * - `--_statistics-color` -- the group's `--ui-color` (its `.ui.red` remap),\n * which a member's DOM element takes back after dropping every inherited colour token.\n * - Only its own or its group's colour paints a value, never an ancestor's (a `ui-red` wrapper).\n * - Static markup has no DOM element, so a static statistic still inherits one.\n *\n * - NOTE: left out, on purpose:\n * - Fomantic's `!important`s (stackable members, horizontal text values): sublayers and source order win\n * - the top / bottom label distances (both `0` in the default theme)\n * - a value's `<img>` (`max-height: 3rem`) and icon (`opacity`, `margin`) are the value part's (`UIParts.css`)\n * - `.ui.statistics::after` clearing: the group is a flex container, so nothing inside floats out of it\n */\n\n@layer ui.components.statistic.types, ui.components.statistic.content, ui.components.statistic.variations, ui.components.statistic.states;\n\n/* Breakpoints (`@custom-media`), inlined at build time: `stack-with=\"page\"`. */\n@import \"../../styles/media.css\";\n\n/*******************************\n Statistic\n*******************************/\n\n@layer ui.components.statistic.types {\n /* DOM elements: a statistic's root is the box; a group's DOM element is the size container for `stackable`. */\n :host {\n display: contents;\n }\n /*\n * Colour: every DOM element drops the generic colour tokens it inherits,\n * so a statistic inside a `ui-red` wrapper (or any owner that doesn't reset them) keeps its ink.\n * - A member takes back ONLY its group's `--ui-color`, handed down as `--_statistics-color`.\n * - The root's own `.ui.red` remap still wins (it sits below the DOM element).\n */\n :host {\n --ui-color: var(--_statistics-color);\n --ui-color-text: initial;\n --ui-color-header: initial;\n --ui-color-border: initial;\n --ui-color-background: initial;\n --ui-color-inverted: initial;\n --ui-color-hover: initial;\n --ui-color-focus: initial;\n --ui-color-down: initial;\n --ui-color-active: initial;\n --ui-color-on: initial;\n --ui-color-inverted-on: initial;\n }\n :host(:state(statistics)) {\n display: block;\n container: ui-statistics / inline-size;\n }\n /*\n * A group's outer top margin sits on the DOM ELEMENT:\n * a size container is its own formatting context,\n * so a margin on the root inside it never collapses with the heading above, as class grammar's does.\n * - `:state(spaced)`: the group keeps Fomantic's `1em` (not `horizontal`, no `widths`, whose roots zero it).\n * - The root's own top margin is always `0` in the shadow root\n * (`.ui.statistics:first-child` below: it is an only child there).\n */\n :host(:state(spaced):not(:first-child)) {\n margin-block-start: 1em;\n }\n /* Static markup: a stackable group's parent is the container. */\n :has(> .ui.stackable.statistics) {\n container: ui-statistics / inline-size;\n }\n\n /* Tokens: one private alias per `statistic.variables` entry that still matters, from the global tokens. */\n .ui.statistic,\n .ui.statistics {\n --_ui-statistic-margin: var(--ui-statistic-margin, 1em 0);\n --_ui-statistic-horizontal-spacing: var(--ui-statistic-horizontal-spacing, 1.5em);\n --_ui-statistic-row-spacing: var(--ui-statistic-row-spacing, 1em);\n --_ui-statistic-floated-distance: var(--ui-statistic-floated-distance, 2em);\n --_ui-statistic-stackable-padding: var(--ui-statistic-stackable-padding, calc(var(--ui-font-size) * 1));\n }\n\n /* Owner tokens every statistic root declares (see the header). */\n .ui.statistic,\n .ui.statistics > .statistic {\n --_ui-statistic-layout: var(--_statistics-layout, vertical);\n --_ui-statistic-value-size: var(--ui-statistic-value-size, calc(var(--ui-font-size) * var(--_statistic-value, 4)));\n --_ui-statistic-text-value-size: var(\n --ui-statistic-text-value-size,\n calc(var(--ui-font-size) * var(--_statistic-tvalue, 2))\n );\n --ui-inverted: var(--_statistics-inverted, 0);\n }\n\n /* Standalone: a flex column. */\n .ui.statistic {\n display: inline-flex;\n flex-direction: column;\n max-width: none;\n box-sizing: border-box;\n }\n\n /* Group: a wrapping row of statistics, pulled out by their gutters. */\n .ui.statistics {\n --_statistics-group: 1;\n --_statistics-color: var(--ui-color);\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n margin: 1em calc(-1 * var(--_ui-statistic-horizontal-spacing)) calc(-1 * var(--_ui-statistic-row-spacing));\n }\n :host(:first-child) > .ui.statistics,\n .ui.statistics:first-child {\n margin-top: 0;\n }\n}\n\n@layer ui.components.statistic.content {\n /* Standalone spacing: only outside a group. */\n @container not style(--_statistics-group: 1) {\n .ui.statistic {\n margin: var(--_ui-statistic-margin);\n }\n :host(:nth-child(n + 2 of :state(statistic))) > .ui.statistic,\n .ui.statistic + .ui.statistic {\n margin: 0 0 0 var(--_ui-statistic-horizontal-spacing);\n }\n :host(:first-child) > .ui.statistic,\n .ui.statistic:first-child {\n margin-top: 0;\n }\n :host(:last-child) > .ui.statistic,\n .ui.statistic:last-child {\n margin-bottom: 0;\n }\n /*\n * Shadow DOM: the root is always an only child,\n * so the class-grammar `:first-child` / `:last-child` above always match there.\n * The DOM element's position decides instead: the full margin back, then the edges it loses.\n * - `:not([data-ui])`: a static server render's root (`spell/ui/static`) is a real child, which the rules above\n * already space as class grammar.\n */\n :host(:not(:nth-child(n + 2 of :state(statistic)))) > .ui.statistic:not([data-ui]) {\n margin: var(--_ui-statistic-margin);\n }\n :host(:first-child:not(:nth-child(n + 2 of :state(statistic)))) > .ui.statistic:not([data-ui]) {\n margin-top: 0;\n }\n :host(:last-child:not(:nth-child(n + 2 of :state(statistic)))) > .ui.statistic:not([data-ui]) {\n margin-bottom: 0;\n }\n }\n\n /* A member of a group. */\n @container style(--_statistics-group: 1) {\n :host > .ui.statistic,\n .ui.statistics > .statistic {\n display: inline-flex;\n flex: var(--_statistics-flex, 0 1 auto);\n flex-direction: column;\n min-width: var(--_statistics-min-width, 0);\n max-width: none;\n margin: var(\n --_statistics-member-margin,\n 0 var(--_ui-statistic-horizontal-spacing) var(--_ui-statistic-row-spacing)\n );\n }\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.statistic.variations {\n /* Sizes: ratios of `--ui-font-size` for the value, the horizontal value and a text value (Fomantic's rem ladder);\n declared on either root, so a group's size reaches members without one. */\n .ui.mini:is(.statistic, .statistics) {\n --_statistic-value: 1.5;\n --_statistic-hvalue: 1.5;\n --_statistic-tvalue: 1;\n }\n .ui.tiny:is(.statistic, .statistics) {\n --_statistic-value: 2;\n --_statistic-hvalue: 2;\n --_statistic-tvalue: 1;\n }\n .ui.small:is(.statistic, .statistics) {\n --_statistic-value: 3;\n --_statistic-hvalue: 2;\n --_statistic-tvalue: 1;\n }\n .ui.large:is(.statistic, .statistics) {\n --_statistic-value: 5;\n --_statistic-hvalue: 4;\n --_statistic-tvalue: 2.5;\n }\n .ui.big:is(.statistic, .statistics) {\n --_statistic-value: 5.5;\n --_statistic-hvalue: 4.5;\n --_statistic-tvalue: 2.5;\n }\n .ui.huge:is(.statistic, .statistics) {\n --_statistic-value: 6;\n --_statistic-hvalue: 5;\n --_statistic-tvalue: 2.5;\n }\n .ui.massive:is(.statistic, .statistics) {\n --_statistic-value: 7;\n --_statistic-hvalue: 6;\n --_statistic-tvalue: 3;\n }\n /* Static markup only: `sizes.css` makes `.medium` a no-op anyway. */\n .ui.medium:is(.statistic, .statistics) {\n --_statistic-value: 4;\n --_statistic-hvalue: 3;\n --_statistic-tvalue: 2;\n }\n\n /* Horizontal: label beside the value, on the horizontal size ladder. */\n .ui.horizontal.statistic {\n --_ui-statistic-layout: horizontal;\n flex-direction: row;\n align-items: center;\n }\n .ui.horizontal.statistic,\n .ui.horizontal.statistics > .statistic {\n --_ui-statistic-value-size: calc(var(--ui-font-size) * var(--_statistic-hvalue, 3));\n }\n .ui.horizontal.statistics {\n --_statistics-layout: horizontal;\n --_statistics-member-margin: 1em 0;\n flex-direction: column;\n max-width: none;\n margin: 0;\n }\n @container style(--_statistics-layout: horizontal) {\n :host > .ui.statistic,\n .ui.statistics > .statistic {\n --_ui-statistic-value-size: calc(var(--ui-font-size) * var(--_statistic-hvalue, 3));\n flex-direction: row;\n align-items: center;\n }\n }\n\n /* Inverted: the dark scheme; parts turn the value white. */\n .ui.inverted.statistic,\n .ui.inverted.statistics {\n --ui-inverted: 1;\n --ui-scheme: dark;\n color-scheme: dark;\n }\n .ui.inverted.statistics {\n --_statistics-inverted: 1;\n }\n\n /* Fluid */\n .ui.fluid.statistic {\n width: 100%;\n }\n\n /* Floated */\n .ui[class*=\"left floated\"].statistic {\n float: left;\n margin: 0 var(--_ui-statistic-floated-distance) var(--_ui-statistic-row-spacing) 0;\n }\n .ui[class*=\"right floated\"].statistic {\n float: right;\n margin: 0 0 var(--_ui-statistic-row-spacing) var(--_ui-statistic-floated-distance);\n }\n :host(:last-child) > .ui.floated.statistic,\n .ui.floated.statistic:last-child {\n margin-bottom: 0;\n }\n /* Shadow DOM: the root is always a last child (above), so the DOM element's position decides. */\n :host(:not(:last-child)) > .ui.floated.statistic:not([data-ui]) {\n margin-bottom: var(--_ui-statistic-row-spacing);\n }\n\n /* Evenly divided: each member at least 1/N of the row. */\n .ui:is(.one, .two, .three, .four, .five, .six, .seven, .eight, .nine, .ten).statistics {\n --_statistics-member-margin: 0 0 var(--_ui-statistic-row-spacing);\n margin: 0 0 calc(-1 * var(--_ui-statistic-row-spacing));\n }\n .ui.one.statistics {\n --_statistics-min-width: 100%;\n }\n .ui.two.statistics {\n --_statistics-min-width: 50%;\n }\n .ui.three.statistics {\n --_statistics-min-width: 33.33333%;\n }\n .ui.four.statistics {\n --_statistics-min-width: 25%;\n }\n .ui.five.statistics {\n --_statistics-min-width: 20%;\n }\n .ui.six.statistics {\n --_statistics-min-width: 16.66667%;\n }\n .ui.seven.statistics {\n --_statistics-min-width: 14.28571%;\n }\n .ui.eight.statistics {\n --_statistics-min-width: 12.5%;\n }\n .ui.nine.statistics {\n --_statistics-min-width: 11.11111%;\n }\n .ui.ten.statistics {\n --_statistics-min-width: 10%;\n }\n\n /* Equal (`equal`, no count): one row, an equal share of it each (the group spans its row). */\n .ui.equal.statistics:not(.horizontal) {\n --_statistics-flex: 1 1 0%;\n --_statistics-member-margin: 0 0 var(--_ui-statistic-row-spacing);\n margin: 0 0 calc(-1 * var(--_ui-statistic-row-spacing));\n }\n\n /* Stackable: below 768px of the group, one full-width statistic per row. */\n @container ui-statistics (width < 768px) {\n @container not style(--ui-stack-with: page) {\n .ui.stackable.statistics:not(.stack-with-page) {\n --_statistics-stacked: 1;\n width: auto;\n margin-inline: 0;\n }\n }\n @container style(--ui-stack-with: page) {\n .ui.stackable.statistics.stack-with-container {\n --_statistics-stacked: 1;\n width: auto;\n margin-inline: 0;\n }\n }\n }\n @media (--ui-mobile) {\n @container style(--ui-stack-with: page) {\n .ui.stackable.statistics:not(.stack-with-container) {\n --_statistics-stacked: 1;\n width: auto;\n margin-inline: 0;\n }\n }\n @container not style(--ui-stack-with: page) {\n .ui.stackable.statistics.stack-with-page {\n --_statistics-stacked: 1;\n width: auto;\n margin-inline: 0;\n }\n }\n }\n @container style(--_statistics-stacked: 1) {\n :host > .ui.statistic,\n .ui.statistics > .statistic {\n box-sizing: border-box;\n /* an `equal` group's share would keep them in one row */\n flex: 0 1 auto;\n width: 100%;\n margin: 0;\n padding: calc(var(--_ui-statistic-stackable-padding) / 2);\n }\n }\n}\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { statisticVocabulary } from \"./UIStatistic.en\"\n\nimport statisticCSS from \"./UIStatistic.css?inline\"\n\n/****************\n * ### `UIStatistic`\n * The component behind `<ui-statistic>`: a number with a label.\n * Its shadow DOM:\n * `<div class=\"ui … statistic\" part=\"statistic\">` holding the `value` shorthand, the slot, then the `label` shorthand,\n * so either shorthand can pair with a slotted part and still read value over label.\n *\n * - It OWNS the `value` and `label` parts (`ownsParts`):\n * a slotted `<ui-value>` or `<ui-label>` finds it through `PartContext`,\n * sets `:state(in-statistic)` and styles itself from `UIParts.css`,\n * reading the owner tokens `UIStatistic.css` declares on the root (layout, value sizes, `--ui-inverted`).\n * `define()` registers it as their owner.\n *\n * - The shorthands are the SAME parts, drawn in this shadow root:\n * `<div class=\"value in-statistic\">` and `<div class=\"label in-statistic\">`,\n * the static part classes `UIParts.css` keys on (they ARE children of this root),\n * which is why this component adopts `UIParts.css` too (`E.PartComponent`'s `elementSetup.styleSheets`).\n * - `text` makes the value shorthand a word value.\n *\n * - No role: a statistic is text; the page names a group of them where it matters\n * (a heading, `aria-label` on a region).\n ****************/\nexport class UIStatistic extends E.UIComponent<typeof statisticVocabulary> {\n @E.proto static vocabulary = statisticVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { statistic: statisticCSS, ...E.PartComponent.prototype.elementSetup.styleSheets },\n cssStates: [\"inverted\"],\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Always `:state(statistic)`. */\n @E.cssState(\"statistic\")\n get isStatistic(): boolean {\n return true\n }\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"statistic\")}>\n <Show when={this.value}>\n <div class={this.valueClasses} part={this.partForName(\"value\")}>\n {this.value}\n </div>\n </Show>\n <slot />\n <Show when={this.label}>\n <div class={this.staticPart(UIT.LABEL)} part={this.partForName(\"label\")}>\n {this.label}\n </div>\n </Show>\n </div>\n )\n }\n\n /** Classes of the value shorthand: `[text] value in-statistic`. */\n @E.derived\n private get valueClasses(): string {\n const value = this.staticPart(VALUE)\n return this.text ? `${UIT.TEXT} ${value}` : value\n }\n\n /** Classes of a shorthand: the part noun and the static owner class, e.g. `label in-statistic`. */\n private staticPart(noun: string): string {\n return `${noun} ${UIT.PART_STATIC_CLASS_PREFIX}${this.vocabulary.noun}`\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIStatistic extends E.AttributeValues<typeof statisticVocabulary> {}\n\n/** The `value` shorthand: its attribute, part noun and class word. */\nconst VALUE = \"value\"\n","/**\n * The English vocabulary of `<ui-statistics>`: 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 * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-statistic size=\"large\" color=\"red\" direction=\"horizontal\">` => `ui large red horizontal statistic`;\n * `<ui-statistics widths=\"3\" stackable>` => `ui stackable three statistics`. `UIStatistic.css` keys on those words.\n * - Content is the GENERIC parts, owned by the statistic (`ownsParts`): `<ui-value>` (Fomantic's `.value`) and\n * `<ui-label>` (Fomantic's `.label`). There is NO separate label part tag: a `<ui-label>` inside a statistic\n * already renders as that statistic's `.label` part (`UILabel`, `:state(in-statistic)`), so the one word \"label\"\n * keeps meaning one element, and a `<ui-label-part>` / `<ui-caption>` would only be a second spelling of it.\n * - Shorthand: `value` / `label` render the same two parts inside the statistic's own shadow root,\n * the value BEFORE the slot and the label AFTER it, so either pairs with a slotted part;\n * slotted parts keep their order, so a `<ui-label>` before a `<ui-value>` is Fomantic's top label.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\n/****************\n * ### `statisticsVocabulary`\n * The names of `<ui-statistics>`, a group of statistics sharing one look: `<div class=\"ui ...\n * statistics\" part=\"group\">`.\n ****************/\nexport const statisticsVocabulary = {\n tag: \"ui-statistics\",\n topics: [\"data display\", \"layout\", \"views\"],\n aka: [\"stats\", \"kpis\", \"metrics\", \"dashboard numbers\"],\n noun: \"statistics\",\n description: \"A group of statistics.\",\n attributes: [\n { name: \"size\", group: \"appearance\", kind: \"size\", description: \"Size of every statistic in the group.\" },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue of every value in the group.\" },\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"horizontal\"],\n replaces: [{ from: \"horizontal\", value: \"horizontal\" }],\n description:\n \"`horizontal`: statistics stacked, each with its label beside its value. Its old name was `horizontal`.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"Every statistic for dark backgrounds.\" },\n {\n name: \"stackable\",\n group: \"layout\",\n kind: \"keyOnly\",\n description:\n \"Below 768px of the group's width (or the screen's: `stack-with`), one statistic per row, full width.\"\n },\n {\n name: \"stack-with\",\n group: \"layout\",\n kind: \"enum\",\n values: UIT.StackWithValues,\n description:\n \"What `stackable` measures: `container` (the default) -- the group's own width; `page` -- the \" +\n \"screen's, as in Fomantic. Unset: the page-wide `--ui-stack-with` token decides (`<ui-root \" +\n \"stack-with>`).\"\n },\n {\n name: \"equal\",\n group: \"layout\",\n kind: \"keyOnly\",\n description:\n \"Every statistic the same width, from the statistics themselves (no count): one row, an equal share of \" +\n \"it each (the group spans its row). Not with `horizontal` (a column).\"\n },\n {\n name: \"widths\",\n group: \"appearance\",\n kind: \"width\",\n widthClass: \"\",\n values: [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\"],\n description:\n 'Older, count-based alias of `equal`: divides each row evenly between N statistics (`widths=\"3\"` => ' +\n \"`three statistics`), wrapping after N.\"\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-statistic>`s.\" }],\n parts: [{ name: \"group\", description: \"The group box.\" }],\n states: [\n { name: \"statistics\", description: \"ALWAYS set: the group's host is a block and the `ui-statistics` container.\" },\n {\n name: \"spaced\",\n description:\n \"Set unless `horizontal` or `widths`: the group keeps Fomantic's 1em top margin, which the HOST carries (so it collapses with the content above).\"\n }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { statisticsVocabulary } from \"./UIStatistics.en\"\n\nimport statisticCSS from \"./UIStatistic.css?inline\"\n\n/****************\n * ### `UIStatistics`\n * The component behind `<ui-statistics>`:\n * a group of statistics sharing one look, `<div class=\"ui … statistics\" part=\"group\"><slot></slot></div>`.\n *\n * - `UIStatistic.css` hands the group's size, colour, layout, count and stacking to its statistics\n * through inherited private tokens.\n * - The DOM element is a block and the size container `stackable` answers to (`:state(statistics)`);\n * with `stack-with=\"page\"` (a private class before the noun), the screen is.\n ****************/\nexport class UIStatistics extends E.UIComponent<typeof statisticsVocabulary> {\n @E.proto static vocabulary = statisticsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { statistic: statisticCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Always `:state(statistics)`: the size container `stackable` answers to. */\n @E.cssState(\"statistics\")\n get isStatistics(): boolean {\n return true\n }\n\n /**\n * Spaced, unless `horizontal` or `widths`, whose roots have no top margin.\n * - Why: the DOM element is a size container (its own formatting context),\n * so the group's top margin sits on the DOM ELEMENT, to collapse with the content above\n * as class grammar's does (`UIStatistic.css`).\n */\n @E.cssState(\"spaced\")\n get isSpaced(): boolean {\n return !this.direction && !this.widths\n }\n\n /** `stack-with`'s class (`UIT.StackClasses`). */\n protected get extraClass(): string | undefined {\n return UIT.StackClasses.classFor(this.stackWith)\n }\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 UIStatistics extends E.AttributeValues<typeof statisticsVocabulary> {}\n","/**\n * The statistic family: defines `<ui-statistic>` and `<ui-statistics>`,\n * and exports their components, `UIStatistic` and `UIStatistics`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-statistic` entry (its size is in `notes/report.md`).\n * - NOTE: the value and label are the generic parts (`<ui-value>`, `<ui-label>`):\n * load `spell/ui/ui-parts` and `spell/ui/ui-label` for slotted ones; the `value` / `label` shorthands need\n * neither.\n */\n\nimport { UIStatistic } from \"./UIStatistic\"\nimport { UIStatistics } from \"./UIStatistics\"\n\nUIStatistic.define()\nUIStatistics.define()\n\nexport { UIStatistic, UIStatistics }\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"ui-statistic.js","names":["<Show when={this.value}>\n <div class={this.valueClasses} part={this.partForName(\"value\")}>\n {this.value}\n </div>\n </Show>","this","part={this.partForName(\"value\")}","<div class={this.valueClasses} part={this.partForName(\"value\")}>\n {this.value}\n </div>","<div class={this.rootClass} part={this.partForName(\"statistic\")}>\n <Show when={this.value}>\n <div class={this.valueClasses} part={this.partForName(\"value\")}>\n {this.value}\n </div>\n </Show>\n <slot />\n <Show when={this.label}>\n <div class={this.staticPart(UIT.LABEL)} part={this.partForName(\"label\")}>\n {this.label}\n </div>\n </Show>\n </div>","<Show when={this.label}>\n <div class={this.staticPart(UIT.LABEL)} part={this.partForName(\"label\")}>\n {this.label}\n </div>\n </Show>","part={this.partForName(\"label\")}","<div class={this.staticPart(UIT.LABEL)} part={this.partForName(\"label\")}>\n {this.label}\n </div>","part={this.partForName(\"statistic\")}","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.derived","_$createComponent","_$readShallow","_$setAttribute","_$getOwner","UIT.LABEL","UIT.TEXT","__name","statisticCSS","UIT.StackWithValues","this","part={this.partForName(\"group\")}","<div class={this.rootClass} part={this.partForName(\"group\")}>\n <slot />\n </div>","E.UIComponent","E.proto","E.protoMerged","E.cssState","_$getOwner","_$readShallow","_$setAttribute","__name","statisticCSS","__name$1","__publicField","LABEL","__decorateElement","__decoratorMetadata","__runInitializers","StackClasses","StackWithValues","TEXT","__decoratorStart","getOwner$1","statisticVocabulary","UIStatistic_default","_tmpl$$1","_tmpl$2","_valueClasses_dec","_isStatistic_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UIStatistic","UIComponent","proto","protoMerged","cssState","derived","_self$","_el$","_el$3","_el$5","insert","createComponent","Show","_el$2","effect","readShallow","className","_p$","t","setAttribute","_el$4","value","VALUE","noun","PartComponent","UIStatistic","statisticsVocabulary","_tmpl$","_isSpaced_dec","_isStatistics_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIStatistics","UIStatistics"],"sources":["../src/components/ui-statistic/UIStatistic.en.ts","../src/components/ui-statistic/UIStatistic.css?inline","../src/components/ui-statistic/UIStatistic.tsx","../src/components/ui-statistic/UIStatistics.en.ts","../src/components/ui-statistic/UIStatistics.tsx","../src/components/ui-statistic/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-statistic>`: 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 * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-statistic size=\"large\" color=\"red\" direction=\"horizontal\">` => `ui large red horizontal statistic`;\n * `<ui-statistics widths=\"3\" stackable>` => `ui stackable three statistics`. `UIStatistic.css` keys on those words.\n * - Content is the GENERIC parts, owned by the statistic (`ownsParts`): `<ui-value>` (Fomantic's `.value`) and\n * `<ui-label>` (Fomantic's `.label`). There is NO separate label part tag: a `<ui-label>` inside a statistic\n * already renders as that statistic's `.label` part (`UILabel`, `:state(in-statistic)`), so the one word \"label\"\n * keeps meaning one element, and a `<ui-label-part>` / `<ui-caption>` would only be a second spelling of it.\n * - Shorthand: `value` / `label` render the same two parts inside the statistic's own shadow root,\n * the value BEFORE the slot and the label AFTER it, so either pairs with a slotted part;\n * slotted parts keep their order, so a `<ui-label>` before a `<ui-value>` is Fomantic's top label.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `statisticVocabulary`\n * The names of `<ui-statistic>`, a statistic: `<div class=\"ui ... statistic\" part=\"statistic\">` holding the `value`\n * shorthand, the slot and the `label` shorthand.\n ****************/\nexport const statisticVocabulary = {\n tag: \"ui-statistic\",\n icon: \"chart bar outline\",\n topics: [\"data display\", \"text\", \"views\"],\n aka: [\"stat\", \"kpi\", \"metric\", \"counter\", \"number display\"],\n skeleton: \"inline 6 x 4\",\n noun: \"statistic\",\n plural: \"statistics\",\n description: \"A statistic emphasizes the current value of an attribute.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size of the value, `mini` ... `massive`; `medium` is the default.\"\n },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue of the value.\" },\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"horizontal\"],\n replaces: [{ from: \"horizontal\", value: \"horizontal\" }],\n description: \"`horizontal`: value and label on one line. Its old name was `horizontal`.\"\n },\n {\n name: \"inverted\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"For dark backgrounds: the dark scheme, a white value.\"\n },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Takes the full width of its container.\" },\n {\n name: \"value\",\n group: \"form\",\n kind: \"string\",\n description: \"Shorthand for a `<ui-value>`: the number (or word) shown.\"\n },\n {\n name: \"text\",\n group: \"name\",\n kind: \"boolean\",\n description: \"The `value` shorthand is a WORD (`text value`): smaller, bold, at least two lines tall.\"\n },\n { name: \"label\", group: \"name\", kind: \"string\", description: \"Shorthand for the label below the value.\" }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-value>` and `<ui-label>` parts, in display order.\" }],\n parts: [\n { name: \"statistic\", description: \"The statistic box.\" },\n { name: \"value\", description: \"The `value` shorthand.\" },\n { name: \"label\", description: \"The `label` shorthand.\" }\n ],\n states: [\n {\n name: \"statistic\",\n description:\n \"ALWAYS set: `UIStatistic.css` spaces a statistic after another by it (a shadow root can't see its host's sibling).\"\n },\n { name: \"inverted\", description: \"For dark backgrounds.\" }\n ],\n texts: [],\n ownsParts: [\"value\", \"label\"]\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-statistic>` and `<ui-statistics>`:\n * a port of Fomantic's `statistic.less` + `statistic.variables`, the BOXES.\n * The value and label rules (`.ui.statistic > .value / .label`, sizes, horizontal, inverted, colours)\n * are the generic parts' (`UIParts.css`, `:state(in-statistic)`), which read the owner tokens this sheet declares.\n * - ONE sheet for both elements; each adopts it after the foundation\n * (the statistic also adopts `UIParts.css`, for its `value` / `label` shorthands).\n * - Shadow markup contract (class grammar on semantic elements):\n * - `<ui-statistic>`: `<div class=\"ui [size] [color] [keyOnly ...] [floated] statistic\" part=\"statistic\">`,\n * holding the shorthands, then `<slot>`:\n * `<div class=\"[text] value in-statistic\" part=\"value\">` and `<div class=\"label in-statistic\" part=\"label\">`\n * (the STATIC part classes: they are real children of this root)\n * - `<ui-statistics>`: `<div class=\"ui [size] [color] [keyOnly ...] [count] statistics\" part=\"group\">`\n * around `<slot>`\n * - DOM elements:\n * - a statistic's is `display: contents`: the root IS the flex column, where Fomantic's `.ui.statistic` sat\n * - a group's is a BLOCK, and the size container `ui-statistics`, for `stackable`\n * - The DOM element's position stands in for Fomantic's sibling selectors:\n * - `:host(:first-child)` for `:first-child`\n * - `:host(:nth-child(n + 2 of :state(statistic)))` for `.ui.statistic + .ui.statistic`:\n * a statistic AFTER another, not necessarily adjacent (a shadow root can't see its DOM element's previous sibling)\n *\n * ## Public tokens\n * `--ui-statistic-*` (the theming surface) are NEVER declared here:\n * every statistic and group root reads each through a private alias, and every rule reads the alias:\n * `--_ui-statistic-row-spacing: var(--ui-statistic-row-spacing, 1em)`.\n * So a value set on `:root`, an ancestor, the DOM element, `::part(statistic)` / `::part(group)`\n * or in the app stylesheet reaches the box (`notes/theming.md` \"Component tokens\").\n *\n * ## Owner tokens (read by `UIParts.css`)\n * Every statistic root declares them, defaults included:\n * - `--_ui-statistic-layout` -- `vertical` / `horizontal` (`horizontal`, or a horizontal group)\n * - `--_ui-statistic-value-size` / `--_ui-statistic-text-value-size` -- the aliases of the public value font sizes:\n * - defaulting to its size's (Fomantic's ladder, a multiple of `--ui-font-size`);\n * `horizontal` swaps in the horizontal ladder\n * - so a page sets them on the statistic, its group or above, not on the value part\n * - `--ui-inverted` -- `0` / `1`; `inverted` also sets `color-scheme: dark`, and every `light-dark()` token follows\n *\n * ## Group -> statistic\n * A statistic can't see its group's classes, so a group root hands its members PRIVATE inherited tokens,\n * which a statistic root reads first (never set them from outside):\n * - `--_statistics-group: 1` -- in a group: the member layout instead of the standalone margins\n * - `--_statistic-value` / `-hvalue` / `-tvalue` -- size ratios, declared by a size class on either root;\n * a member without its own size inherits the group's\n * - `--_statistics-layout: horizontal`, `--_statistics-inverted: 1` -- a horizontal / inverted group\n * - `--_statistics-min-width` / `--_statistics-member-margin` -- an evenly divided group (`three statistics`)\n * - `--_statistics-flex` -- a member's `flex`: an equal share of the row in an `equal` group\n * - `--_statistics-stacked: 1` -- a `stackable` group narrower than 768px (the GROUP's width).\n * The group root answers the size query in its own tree and hands the answer down:\n * container names are tree-scoped, so a member couldn't query its group's container itself.\n * - `--_statistics-color` -- the group's `--ui-color` (its `.ui.red` remap),\n * which a member's DOM element takes back after dropping every inherited colour token.\n * - Only its own or its group's colour paints a value, never an ancestor's (a `ui-red` wrapper).\n * - Static markup has no DOM element, so a static statistic still inherits one.\n *\n * - NOTE: left out, on purpose:\n * - Fomantic's `!important`s (stackable members, horizontal text values): sublayers and source order win\n * - the top / bottom label distances (both `0` in the default theme)\n * - a value's `<img>` (`max-height: 3rem`) and icon (`opacity`, `margin`) are the value part's (`UIParts.css`)\n * - `.ui.statistics::after` clearing: the group is a flex container, so nothing inside floats out of it\n */\n\n@layer ui.components.statistic.types, ui.components.statistic.content, ui.components.statistic.variations, ui.components.statistic.states;\n\n/* Breakpoints (`@custom-media`), inlined at build time: `stack-with=\"page\"`. */\n@import \"../../styles/media.css\";\n\n/*******************************\n Statistic\n*******************************/\n\n@layer ui.components.statistic.types {\n /* DOM elements: a statistic's root is the box; a group's DOM element is the size container for `stackable`. */\n :host {\n display: contents;\n }\n /*\n * Colour: every DOM element drops the generic colour tokens it inherits,\n * so a statistic inside a `ui-red` wrapper (or any owner that doesn't reset them) keeps its ink.\n * - A member takes back ONLY its group's `--ui-color`, handed down as `--_statistics-color`.\n * - The root's own `.ui.red` remap still wins (it sits below the DOM element).\n */\n :host {\n --ui-color: var(--_statistics-color);\n --ui-color-text: initial;\n --ui-color-header: initial;\n --ui-color-border: initial;\n --ui-color-background: initial;\n --ui-color-inverted: initial;\n --ui-color-hover: initial;\n --ui-color-focus: initial;\n --ui-color-down: initial;\n --ui-color-active: initial;\n --ui-color-on: initial;\n --ui-color-inverted-on: initial;\n }\n :host(:state(statistics)) {\n display: block;\n container: ui-statistics / inline-size;\n }\n /*\n * A group's outer top margin sits on the DOM ELEMENT:\n * a size container is its own formatting context,\n * so a margin on the root inside it never collapses with the heading above, as class grammar's does.\n * - `:state(spaced)`: the group keeps Fomantic's `1em` (not `horizontal`, no `widths`, whose roots zero it).\n * - The root's own top margin is always `0` in the shadow root\n * (`.ui.statistics:first-child` below: it is an only child there).\n */\n :host(:state(spaced):not(:first-child)) {\n margin-block-start: 1em;\n }\n /* Static markup: a stackable group's parent is the container. */\n :has(> .ui.stackable.statistics) {\n container: ui-statistics / inline-size;\n }\n\n /* Tokens: one private alias per `statistic.variables` entry that still matters, from the global tokens. */\n .ui.statistic,\n .ui.statistics {\n --_ui-statistic-margin: var(--ui-statistic-margin, 1em 0);\n --_ui-statistic-horizontal-spacing: var(--ui-statistic-horizontal-spacing, 1.5em);\n --_ui-statistic-row-spacing: var(--ui-statistic-row-spacing, 1em);\n --_ui-statistic-floated-distance: var(--ui-statistic-floated-distance, 2em);\n --_ui-statistic-stackable-padding: var(--ui-statistic-stackable-padding, calc(var(--ui-font-size) * 1));\n }\n\n /* Owner tokens every statistic root declares (see the header). */\n .ui.statistic,\n .ui.statistics > .statistic {\n --_ui-statistic-layout: var(--_statistics-layout, vertical);\n --_ui-statistic-value-size: var(--ui-statistic-value-size, calc(var(--ui-font-size) * var(--_statistic-value, 4)));\n --_ui-statistic-text-value-size: var(\n --ui-statistic-text-value-size,\n calc(var(--ui-font-size) * var(--_statistic-tvalue, 2))\n );\n --ui-inverted: var(--_statistics-inverted, 0);\n }\n\n /* Standalone: a flex column. */\n .ui.statistic {\n display: inline-flex;\n flex-direction: column;\n max-width: none;\n box-sizing: border-box;\n }\n\n /* Group: a wrapping row of statistics, pulled out by their gutters. */\n .ui.statistics {\n --_statistics-group: 1;\n --_statistics-color: var(--ui-color);\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n margin: 1em calc(-1 * var(--_ui-statistic-horizontal-spacing)) calc(-1 * var(--_ui-statistic-row-spacing));\n }\n :host(:first-child) > .ui.statistics,\n .ui.statistics:first-child {\n margin-top: 0;\n }\n}\n\n@layer ui.components.statistic.content {\n /* Standalone spacing: only outside a group. */\n @container not style(--_statistics-group: 1) {\n .ui.statistic {\n margin: var(--_ui-statistic-margin);\n }\n :host(:nth-child(n + 2 of :state(statistic))) > .ui.statistic,\n .ui.statistic + .ui.statistic {\n margin: 0 0 0 var(--_ui-statistic-horizontal-spacing);\n }\n :host(:first-child) > .ui.statistic,\n .ui.statistic:first-child {\n margin-top: 0;\n }\n :host(:last-child) > .ui.statistic,\n .ui.statistic:last-child {\n margin-bottom: 0;\n }\n /*\n * Shadow DOM: the root is always an only child,\n * so the class-grammar `:first-child` / `:last-child` above always match there.\n * The DOM element's position decides instead: the full margin back, then the edges it loses.\n * - `:not([data-ui])`: a static server render's root (`spell/ui/static`) is a real child, which the rules above\n * already space as class grammar.\n */\n :host(:not(:nth-child(n + 2 of :state(statistic)))) > .ui.statistic:not([data-ui]) {\n margin: var(--_ui-statistic-margin);\n }\n :host(:first-child:not(:nth-child(n + 2 of :state(statistic)))) > .ui.statistic:not([data-ui]) {\n margin-top: 0;\n }\n :host(:last-child:not(:nth-child(n + 2 of :state(statistic)))) > .ui.statistic:not([data-ui]) {\n margin-bottom: 0;\n }\n }\n\n /* A member of a group. */\n @container style(--_statistics-group: 1) {\n :host > .ui.statistic,\n .ui.statistics > .statistic {\n display: inline-flex;\n flex: var(--_statistics-flex, 0 1 auto);\n flex-direction: column;\n min-width: var(--_statistics-min-width, 0);\n max-width: none;\n margin: var(\n --_statistics-member-margin,\n 0 var(--_ui-statistic-horizontal-spacing) var(--_ui-statistic-row-spacing)\n );\n }\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.statistic.variations {\n /* Sizes: ratios of `--ui-font-size` for the value, the horizontal value and a text value (Fomantic's rem ladder);\n declared on either root, so a group's size reaches members without one. */\n .ui.mini:is(.statistic, .statistics) {\n --_statistic-value: 1.5;\n --_statistic-hvalue: 1.5;\n --_statistic-tvalue: 1;\n }\n .ui.tiny:is(.statistic, .statistics) {\n --_statistic-value: 2;\n --_statistic-hvalue: 2;\n --_statistic-tvalue: 1;\n }\n .ui.small:is(.statistic, .statistics) {\n --_statistic-value: 3;\n --_statistic-hvalue: 2;\n --_statistic-tvalue: 1;\n }\n .ui.large:is(.statistic, .statistics) {\n --_statistic-value: 5;\n --_statistic-hvalue: 4;\n --_statistic-tvalue: 2.5;\n }\n .ui.big:is(.statistic, .statistics) {\n --_statistic-value: 5.5;\n --_statistic-hvalue: 4.5;\n --_statistic-tvalue: 2.5;\n }\n .ui.huge:is(.statistic, .statistics) {\n --_statistic-value: 6;\n --_statistic-hvalue: 5;\n --_statistic-tvalue: 2.5;\n }\n .ui.massive:is(.statistic, .statistics) {\n --_statistic-value: 7;\n --_statistic-hvalue: 6;\n --_statistic-tvalue: 3;\n }\n /* Static markup only: `sizes.css` makes `.medium` a no-op anyway. */\n .ui.medium:is(.statistic, .statistics) {\n --_statistic-value: 4;\n --_statistic-hvalue: 3;\n --_statistic-tvalue: 2;\n }\n\n /* Horizontal: label beside the value, on the horizontal size ladder. */\n .ui.horizontal.statistic {\n --_ui-statistic-layout: horizontal;\n flex-direction: row;\n align-items: center;\n }\n .ui.horizontal.statistic,\n .ui.horizontal.statistics > .statistic {\n --_ui-statistic-value-size: calc(var(--ui-font-size) * var(--_statistic-hvalue, 3));\n }\n .ui.horizontal.statistics {\n --_statistics-layout: horizontal;\n --_statistics-member-margin: 1em 0;\n flex-direction: column;\n max-width: none;\n margin: 0;\n }\n @container style(--_statistics-layout: horizontal) {\n :host > .ui.statistic,\n .ui.statistics > .statistic {\n --_ui-statistic-value-size: calc(var(--ui-font-size) * var(--_statistic-hvalue, 3));\n flex-direction: row;\n align-items: center;\n }\n }\n\n /* Inverted: the dark scheme; parts turn the value white. */\n .ui.inverted.statistic,\n .ui.inverted.statistics {\n --ui-inverted: 1;\n --ui-scheme: dark;\n color-scheme: dark;\n }\n .ui.inverted.statistics {\n --_statistics-inverted: 1;\n }\n\n /* Fluid */\n .ui.fluid.statistic {\n width: 100%;\n }\n\n /* Floated */\n .ui[class*=\"left floated\"].statistic {\n float: left;\n margin: 0 var(--_ui-statistic-floated-distance) var(--_ui-statistic-row-spacing) 0;\n }\n .ui[class*=\"right floated\"].statistic {\n float: right;\n margin: 0 0 var(--_ui-statistic-row-spacing) var(--_ui-statistic-floated-distance);\n }\n :host(:last-child) > .ui.floated.statistic,\n .ui.floated.statistic:last-child {\n margin-bottom: 0;\n }\n /* Shadow DOM: the root is always a last child (above), so the DOM element's position decides. */\n :host(:not(:last-child)) > .ui.floated.statistic:not([data-ui]) {\n margin-bottom: var(--_ui-statistic-row-spacing);\n }\n\n /* Evenly divided: each member at least 1/N of the row. */\n .ui:is(.one, .two, .three, .four, .five, .six, .seven, .eight, .nine, .ten).statistics {\n --_statistics-member-margin: 0 0 var(--_ui-statistic-row-spacing);\n margin: 0 0 calc(-1 * var(--_ui-statistic-row-spacing));\n }\n .ui.one.statistics {\n --_statistics-min-width: 100%;\n }\n .ui.two.statistics {\n --_statistics-min-width: 50%;\n }\n .ui.three.statistics {\n --_statistics-min-width: 33.33333%;\n }\n .ui.four.statistics {\n --_statistics-min-width: 25%;\n }\n .ui.five.statistics {\n --_statistics-min-width: 20%;\n }\n .ui.six.statistics {\n --_statistics-min-width: 16.66667%;\n }\n .ui.seven.statistics {\n --_statistics-min-width: 14.28571%;\n }\n .ui.eight.statistics {\n --_statistics-min-width: 12.5%;\n }\n .ui.nine.statistics {\n --_statistics-min-width: 11.11111%;\n }\n .ui.ten.statistics {\n --_statistics-min-width: 10%;\n }\n\n /* Equal (`equal`, no count): one row, an equal share of it each (the group spans its row). */\n .ui.equal.statistics:not(.horizontal) {\n --_statistics-flex: 1 1 0%;\n --_statistics-member-margin: 0 0 var(--_ui-statistic-row-spacing);\n margin: 0 0 calc(-1 * var(--_ui-statistic-row-spacing));\n }\n\n /* Stackable: below 768px of the group, one full-width statistic per row. */\n @container ui-statistics (width < 768px) {\n @container not style(--ui-stack-with: page) {\n .ui.stackable.statistics:not(.stack-with-page) {\n --_statistics-stacked: 1;\n width: auto;\n margin-inline: 0;\n }\n }\n @container style(--ui-stack-with: page) {\n .ui.stackable.statistics.stack-with-container {\n --_statistics-stacked: 1;\n width: auto;\n margin-inline: 0;\n }\n }\n }\n @media (--ui-mobile) {\n @container style(--ui-stack-with: page) {\n .ui.stackable.statistics:not(.stack-with-container) {\n --_statistics-stacked: 1;\n width: auto;\n margin-inline: 0;\n }\n }\n @container not style(--ui-stack-with: page) {\n .ui.stackable.statistics.stack-with-page {\n --_statistics-stacked: 1;\n width: auto;\n margin-inline: 0;\n }\n }\n }\n @container style(--_statistics-stacked: 1) {\n :host > .ui.statistic,\n .ui.statistics > .statistic {\n box-sizing: border-box;\n /* an `equal` group's share would keep them in one row */\n flex: 0 1 auto;\n width: 100%;\n margin: 0;\n padding: calc(var(--_ui-statistic-stackable-padding) / 2);\n }\n }\n}\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { statisticVocabulary } from \"./UIStatistic.en\"\n\nimport statisticCSS from \"./UIStatistic.css?inline\"\n\n/****************\n * ### `UIStatistic`\n * The component behind `<ui-statistic>`: a number with a label.\n * Its shadow DOM:\n * `<div class=\"ui … statistic\" part=\"statistic\">` holding the `value` shorthand, the slot, then the `label` shorthand,\n * so either shorthand can pair with a slotted part and still read value over label.\n *\n * - It OWNS the `value` and `label` parts (`ownsParts`):\n * a slotted `<ui-value>` or `<ui-label>` finds it through `PartContext`,\n * sets `:state(in-statistic)` and styles itself from `UIParts.css`,\n * reading the owner tokens `UIStatistic.css` declares on the root (layout, value sizes, `--ui-inverted`).\n * `define()` registers it as their owner.\n *\n * - The shorthands are the SAME parts, drawn in this shadow root:\n * `<div class=\"value in-statistic\">` and `<div class=\"label in-statistic\">`,\n * the static part classes `UIParts.css` keys on (they ARE children of this root),\n * which is why this component adopts `UIParts.css` too (`E.PartComponent`'s `elementSetup.styleSheets`).\n * - `text` makes the value shorthand a word value.\n *\n * - No role: a statistic is text; the page names a group of them where it matters\n * (a heading, `aria-label` on a region).\n ****************/\nexport class UIStatistic extends E.UIComponent<typeof statisticVocabulary> {\n @E.proto static vocabulary = statisticVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { statistic: statisticCSS, ...E.PartComponent.prototype.elementSetup.styleSheets },\n cssStates: [\"inverted\"],\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Always `:state(statistic)`. */\n @E.cssState(\"statistic\")\n get isStatistic(): boolean {\n return true\n }\n\n render(): JSX.Element {\n return (\n <div class={this.rootClass} part={this.partForName(\"statistic\")}>\n <Show when={this.value}>\n <div class={this.valueClasses} part={this.partForName(\"value\")}>\n {this.value}\n </div>\n </Show>\n <slot />\n <Show when={this.label}>\n <div class={this.staticPart(UIT.LABEL)} part={this.partForName(\"label\")}>\n {this.label}\n </div>\n </Show>\n </div>\n )\n }\n\n /** Classes of the value shorthand: `[text] value in-statistic`. */\n @E.derived\n private get valueClasses(): string {\n const value = this.staticPart(VALUE)\n return this.text ? `${UIT.TEXT} ${value}` : value\n }\n\n /** Classes of a shorthand: the part noun and the static owner class, e.g. `label in-statistic`. */\n private staticPart(noun: string): string {\n return `${noun} ${UIT.PART_STATIC_CLASS_PREFIX}${this.vocabulary.noun}`\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIStatistic extends E.AttributeValues<typeof statisticVocabulary> {}\n\n/** The `value` shorthand: its attribute, part noun and class word. */\nconst VALUE = \"value\"\n","/**\n * The English vocabulary of `<ui-statistics>`: 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 * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-statistic size=\"large\" color=\"red\" direction=\"horizontal\">` => `ui large red horizontal statistic`;\n * `<ui-statistics widths=\"3\" stackable>` => `ui stackable three statistics`. `UIStatistic.css` keys on those words.\n * - Content is the GENERIC parts, owned by the statistic (`ownsParts`): `<ui-value>` (Fomantic's `.value`) and\n * `<ui-label>` (Fomantic's `.label`). There is NO separate label part tag: a `<ui-label>` inside a statistic\n * already renders as that statistic's `.label` part (`UILabel`, `:state(in-statistic)`), so the one word \"label\"\n * keeps meaning one element, and a `<ui-label-part>` / `<ui-caption>` would only be a second spelling of it.\n * - Shorthand: `value` / `label` render the same two parts inside the statistic's own shadow root,\n * the value BEFORE the slot and the label AFTER it, so either pairs with a slotted part;\n * slotted parts keep their order, so a `<ui-label>` before a `<ui-value>` is Fomantic's top label.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\n/****************\n * ### `statisticsVocabulary`\n * The names of `<ui-statistics>`, a group of statistics sharing one look: `<div class=\"ui ...\n * statistics\" part=\"group\">`.\n ****************/\nexport const statisticsVocabulary = {\n tag: \"ui-statistics\",\n icon: \"chart bar\",\n topics: [\"data display\", \"layout\", \"views\"],\n aka: [\"stats\", \"kpis\", \"metrics\", \"dashboard numbers\"],\n noun: \"statistics\",\n description: \"A group of statistics.\",\n attributes: [\n { name: \"size\", group: \"appearance\", kind: \"size\", description: \"Size of every statistic in the group.\" },\n { name: \"color\", group: \"appearance\", kind: \"color\", description: \"Hue of every value in the group.\" },\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"horizontal\"],\n replaces: [{ from: \"horizontal\", value: \"horizontal\" }],\n description:\n \"`horizontal`: statistics stacked, each with its label beside its value. Its old name was `horizontal`.\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"Every statistic for dark backgrounds.\" },\n {\n name: \"stackable\",\n group: \"layout\",\n kind: \"keyOnly\",\n description:\n \"Below 768px of the group's width (or the screen's: `stack-with`), one statistic per row, full width.\"\n },\n {\n name: \"stack-with\",\n group: \"layout\",\n kind: \"enum\",\n values: UIT.StackWithValues,\n description:\n \"What `stackable` measures: `container` (the default) -- the group's own width; `page` -- the \" +\n \"screen's, as in Fomantic. Unset: the page-wide `--ui-stack-with` token decides (`<ui-root \" +\n \"stack-with>`).\"\n },\n {\n name: \"equal\",\n group: \"layout\",\n kind: \"keyOnly\",\n description:\n \"Every statistic the same width, from the statistics themselves (no count): one row, an equal share of \" +\n \"it each (the group spans its row). Not with `horizontal` (a column).\"\n },\n {\n name: \"widths\",\n group: \"appearance\",\n kind: \"width\",\n widthClass: \"\",\n values: [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\"],\n description:\n 'Older, count-based alias of `equal`: divides each row evenly between N statistics (`widths=\"3\"` => ' +\n \"`three statistics`), wrapping after N.\"\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-statistic>`s.\" }],\n parts: [{ name: \"group\", description: \"The group box.\" }],\n states: [\n { name: \"statistics\", description: \"ALWAYS set: the group's host is a block and the `ui-statistics` container.\" },\n {\n name: \"spaced\",\n description:\n \"Set unless `horizontal` or `widths`: the group keeps Fomantic's 1em top margin, which the HOST carries (so it collapses with the content above).\"\n }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { statisticsVocabulary } from \"./UIStatistics.en\"\n\nimport statisticCSS from \"./UIStatistic.css?inline\"\n\n/****************\n * ### `UIStatistics`\n * The component behind `<ui-statistics>`:\n * a group of statistics sharing one look, `<div class=\"ui … statistics\" part=\"group\"><slot></slot></div>`.\n *\n * - `UIStatistic.css` hands the group's size, colour, layout, count and stacking to its statistics\n * through inherited private tokens.\n * - The DOM element is a block and the size container `stackable` answers to (`:state(statistics)`);\n * with `stack-with=\"page\"` (a private class before the noun), the screen is.\n ****************/\nexport class UIStatistics extends E.UIComponent<typeof statisticsVocabulary> {\n @E.proto static vocabulary = statisticsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { statistic: statisticCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Always `:state(statistics)`: the size container `stackable` answers to. */\n @E.cssState(\"statistics\")\n get isStatistics(): boolean {\n return true\n }\n\n /**\n * Spaced, unless `horizontal` or `widths`, whose roots have no top margin.\n * - Why: the DOM element is a size container (its own formatting context),\n * so the group's top margin sits on the DOM ELEMENT, to collapse with the content above\n * as class grammar's does (`UIStatistic.css`).\n */\n @E.cssState(\"spaced\")\n get isSpaced(): boolean {\n return !this.direction && !this.widths\n }\n\n /** `stack-with`'s class (`UIT.StackClasses`). */\n protected get extraClass(): string | undefined {\n return UIT.StackClasses.classFor(this.stackWith)\n }\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 UIStatistics extends E.AttributeValues<typeof statisticsVocabulary> {}\n","/**\n * The statistic family: defines `<ui-statistic>` and `<ui-statistics>`,\n * and exports their components, `UIStatistic` and `UIStatistics`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-statistic` entry (its size is in `notes/report.md`).\n * - NOTE: the value and label are the generic parts (`<ui-value>`, `<ui-label>`):\n * load `spell/ui/ui-parts` and `spell/ui/ui-label` for slotted ones; the `value` / `label` shorthands need\n * neither.\n */\n\nimport { UIStatistic } from \"./UIStatistic\"\nimport { UIStatistics } from \"./UIStatistics\"\n\nUIStatistic.define()\nUIStatistics.define()\n\nexport { UIStatistic, UIStatistics }\n"],"mappings":";;;;;AAuBA,IAAamD,IAAsB;CACjC,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAgB;EAAQ;CAAO;CACxC,KAAK;EAAC;EAAQ;EAAO;EAAU;EAAW;CAAgB;CAC1D,UAAU;CACV,MAAM;CACN,QAAQ;CACR,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAS,OAAO;GAAc,MAAM;GAAS,aAAa;EAAoB;EACtF;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ,CAAC,YAAY;GACrB,UAAU,CAAC;IAAE,MAAM;IAAc,OAAO;GAAa,CAAC;GACtD,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAS,OAAO;GAAU,MAAM;GAAW,aAAa;EAAyC;EACzG;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAS,OAAO;GAAQ,MAAM;GAAU,aAAa;EAA2C;CAC1G;CACA,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,MAAM;EAAI,aAAa;CAAyD,CAAC;CAC3F,OAAO;EACL;GAAE,MAAM;GAAa,aAAa;EAAqB;EACvD;GAAE,MAAM;GAAS,aAAa;EAAyB;EACvD;GAAE,MAAM;GAAS,aAAa;EAAyB;CACzD;CACA,QAAQ,CACN;EACE,MAAM;EACN,aACE;CACJ,GACA;EAAE,MAAM;EAAY,aAAa;CAAwB,CAC3D;CACA,OAAO,CAAC;CACR,WAAW,CAAC,SAAS,OAAO;AAC9B,woNEtFAI,GAAAC,GAAA9C,GAAAC,GAAAC,GAAAC,GA8BagD,IAAN,MAAM,sBAAoB,IAAA/C,GAC/B,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAOH,IAAA,CAACC,EAAW,WAAW,CAAA,GAwBvB,IAAA,CAACC,CAAE,GAjC4BN,EAAAA,CAA0C;CAApE,cAAA;EAAA,AAAA,MAAA,GAAA,SAAA,GAAAiC,EAAAhC,GAAA,GAAA,IAAA;CAAA;CAUL,IAAI,cAAuB;EACzB,OAAO;CACT;CAEA,SAAsB;EACpB,IAAAsD,IAAA;EACE,IAAAC,IAAAd,EAAC,GAMCe,IAAAD,EAAA,YANFE,IAAAD,EAAA;EADF,OAEIrE,EAAAA,GAAAA,EAAAA,GAAAA;GAAM,IAAA,OAAA;IAAMC,OAAAA,EAAK;GAAA;GAAjB,IAAA,WAAA;IACE,IAAAyE,IAAAjE,EAAC;IADH,OACE8D,EAAAG,SACGzE,EAAK,KADP,GAAI0E;KAAO1E,GAAAA,EAAAA,EAAK,YAAA;KAAcC,GAAMD,EAAK,YAAY,OAAO;IAA5C,KAAZ,EAAA,GAAA,QAAA,MAAA;KAA0B,AAAd4E,EAAAH,GAAA,GAAAI,GAAA,CAAA,GAAcC,MAAAD,GAAA,KAAAzD,EAAAqD,GAAA,QAAAK,CAA8B;IAA5C,CAAA,GAAjB5E;GADD;EADHC,CAAAA,GAAAA,CAAC,GAMC,EAAA,UAAAkB,EAAM,GANRiD,EAAAH,GAOE/D,EAAAA,GAAAA;GAAM,IAAA,OAAA;IAAMJ,OAAAA,EAAK;GAAA;GAAjB,IAAA,WAAA;IACE,IAAAgF,IAAAxE,EAAC;IADH,OACE8D,EAAAU,SACGhF,EAAK,KADP,GAAI0E;KAAO1E,GAAAA,EAAAA,EAAK,WAAWsB,CAAS,CAAA;KAAGjB,GAAML,EAAK,YAAY,OAAO;IAAjC,KAAhC,EAAA,GAAA,QAAA,MAAA;KAAmC,AAAH4E,EAAAI,GAAA,GAAAH,GAAA,CAAA,GAAGC,MAAAD,GAAA,KAAAzD,EAAA4D,GAAA,QAAAF,CAA8B;IAAjC,CAAA,GAArCxE;GADD;EAPHH,CAAAA,GAAAA,CAAC,GAAIuE;GAAO1E,GAAAA,EAAAA,EAAK,SAAA;GAAWO,GAAMP,EAAK,YAAY,WAAW;EAA7C,KAAZ,EAAA,GAAA,QAAA,MAAA;GAAuB,AAAX4E,EAAAT,GAAA,GAAAU,GAAA,CAAA,GAAWC,MAAAD,GAAA,KAAAzD,EAAA+C,GAAA,QAAAW,CAAkC;EAA7C,CAAA,GAAjB3E;CAcJ;CAIA,IAAY,eAAuB;EACjC,IAAM8E,IAAQ,KAAK,WAAWC,CAAK;EACnC,OAAO,KAAK,OAAO,GAAG3D,EAAQ,GAAI0D,MAAUA;CAC9C;CAGQ,WAAW,GAAsB;EACvC,OAAO,GAAGE,EAAI,MAAmC,KAAK,WAAW;CACnE;AACF;AA3CO,IAAAnC,EAAArC,CAAA,GAUL+B,EAAA9B,GAAA,GAAI,eADJ2C,GATWK,CAAA,GAkCXlB,EAAA9B,GAAA,GAAY,gBADZ0C,GAjCWM,CAAA,GACFlB,EAAA9B,GAAA,IAAO,cAAhBF,GADWkD,CAAA,GAEIlB,EAAA9B,GAAA,IAAO,gBAAtBH,GAFWmD,CAAA,GAANjB,EAAA/B,GAAMgD,CAAA,GAA8DpC,EAAAoC,GAAA,aAAA,GAChEpB,EADEoB,GACK,cAAahB,EAApBhC,GAAA,GADEgD,GACkBV,CAAA,CAAA,GAApBN,EAAAhC,GAAA,IADEgD,CAAA,GAEIpB,EAFJoB,GAEW,gBAAehB,EAAtBhC,GAAA,IAFJgD,GAE0B;CACnC,aAAa;EAAE,WAAWnC;EAAc,GAAA2D,EAAmB,UAAU,aAAa;CAAY;CAC9F,WAAW,CAAC,UAAU;CACtB,gBAAgB;AAClB,CAAA,CAAA,GAJexC,EAAAhC,GAAA,IAFJgD,CAAA;AAAN,IAAMyB,IAANzB,GAiDDsB,IAAQ,SCvDDI,IAAuB;CAClC,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAgB;EAAU;CAAO;CAC1C,KAAK;EAAC;EAAS;EAAQ;EAAW;CAAmB;CACrD,MAAM;CACN,aAAa;CACb,YAAY;EACV;GAAE,MAAM;GAAQ,OAAO;GAAc,MAAM;GAAQ,aAAa;EAAwC;EACxG;GAAE,MAAM;GAAS,OAAO;GAAc,MAAM;GAAS,aAAa;EAAmC;EACrG;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ,CAAC,YAAY;GACrB,UAAU,CAAC;IAAE,MAAM;IAAc,OAAO;GAAa,CAAC;GACtD,aACE;EACJ;EACA;GAAE,MAAM;GAAY,OAAO;GAAc,MAAM;GAAW,aAAa;EAAwC;EAC/G;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aACE;EACJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ5D;GACR,aACE;EAGJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aACE;EAEJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,YAAY;GACZ,QAAQ;IAAC;IAAK;IAAK;IAAK;IAAK;IAAK;IAAK;IAAK;IAAK;IAAK;GAAI;GAC1D,aACE;EAEJ;CACF;CACA,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,MAAM;EAAI,aAAa;CAAqB,CAAC;CACvD,OAAO,CAAC;EAAE,MAAM;EAAS,aAAa;CAAiB,CAAC;CACxD,QAAQ,CACN;EAAE,MAAM;EAAc,aAAa;CAA8E,GACjH;EACE,MAAM;EACN,aACE;CACJ,CACF;CACA,OAAO,CAAC;AACV,yCC5FA8D,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAiBaC,IAAN,MAAM,uBAAqB,IAAAhE,GAChC,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAMH,IAAA,CAACC,EAAW,YAAY,CAAA,GAWxB,IAAA,CAACA,EAAW,QAAQ,CAAA,GAnBY2D,EAAA,CAA2C;CAAtE,cAAA;EAAA,AAAA,MAAA,GAAA,SAAA,GAAAhD,EAAAiD,GAAA,GAAA,IAAA;CAAA;CASL,IAAI,eAAwB;EAC1B,OAAO;CACT;CASA,IAAI,WAAoB;EACtB,OAAO,CAAC,KAAK,aAAa,CAAC,KAAK;CAClC;CAGA,IAAc,aAAiC;EAC7C,OAAAhD,EAAwB,SAAS,KAAK,SAAS;CACjD;CAEA,SAAsB;EACpB,IAAAqB,IAAA;EACE,IAAAC,IAAAoB,EAAC,GACCd,IAAAN,EAAA;EAFJ,OAEU,EAAA,UAAAjC,EAAA,GADHwC;GAAO/C,GAAAA,EAAAA,EAAK,SAAA;GAAWC,GAAMD,EAAK,YAAY,OAAO;EAAzC,KAAZ,EAAA,GAAA,QAAA,MAAA;GAAuB,AAAXiD,EAAAT,GAAA,GAAAU,GAAA,CAAA,GAAWC,MAAAD,GAAA,KAAAzC,EAAA+B,GAAA,QAAAW,CAA8B;EAAzC,CAAA,GAAjBjD;CAIJ;AACF;AApCO,IAAAmB,EAAA4C,CAAA,GASLlD,EAAAmD,GAAA,GAAI,gBADJJ,GARWK,CAAA,GAoBXpD,EAAAmD,GAAA,GAAI,YADJL,GAnBWM,CAAA,GACFpD,EAAAmD,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEIpD,EAAAmD,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAANnD,EAAAkD,GAAMC,CAAA,GAAgEzD,EAAAyD,GAAA,cAAA,GAClEtD,EADEsD,GACK,cAAalD,EAApBiD,GAAA,GADEC,GACkBR,CAAA,CAAA,GAApB1C,EAAAiD,GAAA,IADEC,CAAA,GAEItD,EAFJsD,GAEW,gBAAelD,EAAtBiD,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,WAAWxD,EAAa;CACvC,gBAAgB;AAClB,CAAA,CAAA,GAHeM,EAAAiD,GAAA,IAFJC,CAAA;AAAN,IAAMC,IAAND;ACJPT,EAAY,OAAO,GACnBU,EAAa,OAAO"}
|
package/dist/ui-step.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { A as e, Bt as t, Converters as n,
|
|
3
|
-
import { Show as
|
|
4
|
-
import { Dynamic as
|
|
2
|
+
import { A as e, Bt as t, Converters as n, Ht as r, IconGlyph as i, Lt as a, Pt as ee, Rt as o, SlotContent as s, UIComponent as c, Ut as l, _t as te, cssState as u, f as ne, p as re, proto as d, protoMerged as f, t as p, vt as ie, zt as m } from "./core.js";
|
|
3
|
+
import { Show as h } from "solid-js";
|
|
4
|
+
import { Dynamic as g, className as _, createComponent as v, effect as y, getOwner as b, insert as x, isServer as S, readShallow as C, setAttribute as w, template as T } from "@solidjs/web";
|
|
5
5
|
//#region src/components/ui-step/UISteps.en.ts
|
|
6
|
-
var
|
|
6
|
+
var E = {
|
|
7
7
|
tag: "ui-steps",
|
|
8
|
+
icon: "shoe prints",
|
|
8
9
|
topics: [
|
|
9
10
|
"navigation",
|
|
10
11
|
"progress",
|
|
@@ -120,7 +121,7 @@ var ae = {
|
|
|
120
121
|
name: "stack-with",
|
|
121
122
|
group: "layout",
|
|
122
123
|
kind: "enum",
|
|
123
|
-
values:
|
|
124
|
+
values: ie,
|
|
124
125
|
description: "What stacking (and `stackable=\"tablet\"`) measures: `container` (the default) -- the group's own width; `page` -- the screen's, as in Fomantic. Unset: the page-wide `--ui-stack-with` token decides (`<ui-root stack-with>`)."
|
|
125
126
|
},
|
|
126
127
|
{
|
|
@@ -171,9 +172,9 @@ var ae = {
|
|
|
171
172
|
}
|
|
172
173
|
],
|
|
173
174
|
texts: []
|
|
174
|
-
}, E = "@layer ui.components.step.types{:host{display:contents}:host(:state(steps)){--ui-color:initial;--ui-color-text:initial;--ui-color-header:initial;--ui-color-border:initial;--ui-color-background:initial;--ui-color-inverted:initial;--ui-color-hover:initial;--ui-color-focus:initial;--ui-color-down:initial;--ui-color-active:initial;--ui-color-on:initial;--ui-color-inverted-on:initial;display:block;container:ui-steps/inline-size}:has(>.ui.steps){container:ui-steps/inline-size}.ui.steps{--ui-inverted:0;--_ui-steps-layout:horizontal;--_ui-steps-circular:0;--_ui-steps-ordered:0;--_ui-steps-arrow:right;--_ui-steps-line:horizontal;--_ui-steps-column:0;--_ui-steps-radius:var(--ui-steps-radius,var(--ui-radius));--_ui-steps-first-radius:var(--_ui-steps-radius) 0 0 var(--_ui-steps-radius);--_ui-steps-last-radius:0 var(--_ui-steps-radius) var(--_ui-steps-radius) 0;--_ui-steps-only-radius:var(--_ui-steps-radius);--_ui-steps-step-width:auto;--_ui-steps-step-wrap:wrap;--_ui-steps-step-flex:1 0 auto;--_ui-steps-accent:var(--ui-color,var(--ui-positive));--_ui-steps-border:var(--ui-steps-border,var(--ui-border-width) solid var(--ui-border-color));--_ui-steps-accent-on:var(--ui-steps-accent-on,white);--_ui-step-background:var(--ui-step-background,var(--ui-surface));--_ui-step-inverted-background:var(--ui-step-inverted-background,color-mix(in oklab, var(--ui-surface) 70%, oklch(0% 0 0)));--_ui-step-color:var(--ui-step-color,var(--ui-text-color));--_ui-step-divider:var(--ui-step-divider,var(--ui-border-width) solid var(--ui-border-color));--_ui-step-border-color:var(--ui-step-border-color,var(--ui-border-color));--_ui-step-padding:var(--ui-step-padding,1.14285em 2em);--_ui-step-arrow-size:var(--ui-step-arrow-size,1.14285em);--_ui-step-line-height:var(--ui-step-line-height,1.14285em);--_ui-step-icon-size:var(--ui-step-icon-size,2.5em);--_ui-step-icon-distance:var(--ui-step-icon-distance,var(--ui-font-size));--_ui-step-hover-background:var(--ui-step-hover-background,color-mix(in oklab, var(--ui-ink) 2%, var(--ui-surface)));--_ui-step-hover-color:var(--ui-step-hover-color,var(--ui-text-hovered));--_ui-step-down-background:var(--ui-step-down-background,color-mix(in oklab, var(--ui-ink) 5%, var(--ui-surface)));--_ui-step-down-color:var(--ui-step-down-color,var(--ui-text-pressed));--_ui-step-active-background:var(--ui-step-active-background,color-mix(in oklab, var(--ui-ink) 5%, var(--ui-surface)));--_ui-step-active-icon-color:var(--ui-step-active-icon-color,var(--ui-text-dark));--_ui-step-active-hover-background:var(--ui-step-active-hover-background,color-mix(in oklab, var(--ui-ink) 13%, var(--ui-surface)));--_ui-step-active-hover-color:var(--ui-step-active-hover-color,var(--ui-text-color));--_ui-step-completed-color:var(--ui-step-completed-color,var(--ui-positive));--_ui-step-disabled-background:var(--ui-step-disabled-background,var(--_ui-step-background));--_ui-step-disabled-color:var(--ui-step-disabled-color,var(--ui-text-disabled));--_ui-step-transition:var(--ui-step-transition,background-color var(--ui-duration-slow) var(--ui-ease), opacity var(--ui-duration-slow) var(--ui-ease), color var(--ui-duration-slow) var(--ui-ease), box-shadow var(--ui-duration-slow) var(--ui-ease));--_ui-step-check:var(--ui-step-check,url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z'/%3E%3C/svg%3E\"));--_ui-step-ring-color:var(--ui-step-ring-color,var(--ui-border-color-strong));--_ui-step-ring-width:var(--ui-step-ring-width,2px);--_ui-step-ring-size:var(--ui-step-ring-size,2.2em);--_ui-step-dot-size:var(--ui-step-dot-size,.95em);--_ui-step-circular-disabled-opacity:var(--ui-step-circular-disabled-opacity,.5);--_ui-step-circular-title-background:var(--ui-step-circular-title-background,var(--ui-surface));box-sizing:border-box;font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));line-height:var(--_ui-step-line-height);counter-reset:ui-step;border:var(--_ui-steps-border);border-radius:var(--_ui-steps-radius);box-shadow:none;flex-flow:wrap;align-items:stretch;margin:1em 0;padding:0;list-style:none;display:inline-flex;container:none}.ui.unstackable.steps{flex-wrap:nowrap}.ui.steps>slot{--ui-scale:initial}:host(:first-child)>.ui.steps,.ui.steps:first-child{margin-top:0}:host(:last-child)>.ui.steps,.ui.steps:last-child{margin-bottom:0}:host(:not(:first-child))>.ui.steps{margin-top:1em}:host(:not(:last-child))>.ui.steps{margin-bottom:1em}:host(:state(block):not(:first-child)),:host(:state(block):state(circular)){margin-block-start:1em}:host(:state(block):not(:last-child)),:host(:state(block):state(circular)){margin-block-end:1em}:host>.step,.ui.steps>.step{--_ui-step-state:normal;--_ui-step-layout:row;--_ui-step-content-margin:var(--ui-step-content-margin,0);--_ui-step-content-padding:var(--ui-step-content-padding,0);--_ui-step-description-distance:var(--ui-step-description-distance,.25em);--_ui-step-active-title-color:var(--ui-step-active-title-color,var(--ui-link));box-sizing:border-box;width:var(--_ui-steps-step-width);color:var(--_ui-step-color);font:inherit;text-align:inherit;box-shadow:none;background:0 0;border:none;border-radius:0;margin:0;padding:0;text-decoration:none;position:relative}:host>button.step{appearance:none}:host>.step:focus-visible,.ui.steps>.step:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color,var(--ui-link));outline-offset:calc(-1 * var(--ui-focus-width));z-index:3}@container not style(--_ui-steps-circular:1){:host>.step,.ui.steps>.step{flex:var(--_ui-steps-step-flex);flex-flow:row var(--_ui-steps-step-wrap);padding:var(--_ui-step-padding);vertical-align:middle;background:var(--_ui-step-background);border-right:var(--_ui-step-divider);transition:var(--_ui-step-transition);justify-content:center;align-items:center;display:flex}:host>.step:after,.ui.steps>.step:after{content:\"\";z-index:2;width:var(--_ui-step-arrow-size);height:var(--_ui-step-arrow-size);background-color:var(--_ui-step-background);border-style:solid;border-color:var(--_ui-step-border-color);border-width:0 var(--ui-border-width) var(--ui-border-width) 0;transition:var(--_ui-step-transition);display:block;position:absolute;top:50%;right:0;transform:translateY(-50%)translate(50%)rotate(-45deg)}:host(:first-child)>.step,.ui.steps>.step:first-child{border-radius:var(--_ui-steps-first-radius)}:host(:last-child)>.step,.ui.steps>.step:last-child{border-radius:var(--_ui-steps-last-radius);border-right:none;margin-right:0}:host(:last-child)>.step:after,.ui.steps>.step:last-child:after{display:none}:host(:only-child)>.step,.ui.steps>.step:only-child{border-radius:var(--_ui-steps-only-radius)}}}@layer ui.components.step.content{:host>.step>.icon,.ui.steps>.step>.icon{width:auto;margin:0 var(--_ui-step-icon-distance) 0 0;font-size:var(--_ui-step-icon-size);flex:0 auto;align-self:center;line-height:1;display:block}:host>.step>.icon svg,.ui.steps>.step>.icon svg{width:auto;height:1em;display:block}:host>.step>.icon>slot::slotted(*){--_ui-icon-owner-margin:0}:host>:is(a,button).step,.ui.steps>:is(a,.link).step{cursor:pointer}}@layer ui.components.step.variations{.ui.medium.steps{--ui-scale:1}.ui.ordered.steps{--_ui-steps-ordered:1}@container style(--_ui-steps-ordered:1){:host>.step:before,.ui.steps>.step:before{content:counter(ui-step);counter-increment:ui-step;font-family:inherit;font-weight:var(--ui-font-weight-bold);text-align:center;align-self:center}:host>.step>:not(slot),.ui.steps>.step>*{align-self:center;display:block}}@container not style(--_ui-steps-circular:1){@container style(--_ui-steps-ordered:1){:host>.step:before,.ui.steps>.step:before{margin-right:var(--_ui-step-icon-distance);font-size:var(--_ui-step-icon-size);line-height:1;display:block;position:static}:host>.step.completed:before,.ui.steps>.step.completed:before{content:\"\";width:1em;height:1em;mask:var(--_ui-step-check) center / contain no-repeat;background-color:currentColor}}}.ui.equal.steps:not(.vertical,.circular,.fluid){grid-auto-columns:1fr;grid-auto-flow:column;display:inline-grid}.ui.equal.fluid.steps:not(.vertical,.circular){--_ui-steps-step-flex:1 1 0%}.ui.vertical.steps{--_ui-steps-layout:vertical;--_ui-steps-line:vertical;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}.ui.right.vertical.steps{--_ui-steps-arrow:left}@container ui-steps (width<768px){@container not style(--ui-stack-with:page){.ui.steps:not(.unstackable,.circular):not(.stack-with-page){--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}@container style(--ui-stack-with:page){.ui.steps:not(.unstackable,.circular).stack-with-container{--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}}@media (width<768px){@container style(--ui-stack-with:page){.ui.steps:not(.unstackable,.circular):not(.stack-with-container){--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}@container not style(--ui-stack-with:page){.ui.steps:not(.unstackable,.circular).stack-with-page{--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}}@container ui-steps (width<992px){@container not style(--ui-stack-with:page){.ui[class*=tablet\\ stackable].steps:not(.circular):not(.stack-with-page){--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}@container style(--ui-stack-with:page){.ui[class*=tablet\\ stackable].steps:not(.circular).stack-with-container{--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}}@media (width<768px),(768px<=width<992px){@container style(--ui-stack-with:page){.ui[class*=tablet\\ stackable].steps:not(.circular):not(.stack-with-container){--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}@container not style(--ui-stack-with:page){.ui[class*=tablet\\ stackable].steps:not(.circular).stack-with-page{--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}}@container not style(--_ui-steps-circular:1){@container style(--_ui-steps-column:1){:host>.step,.ui.steps>.step{border-right:none;border-bottom:var(--_ui-step-divider);justify-content:flex-start}:host(:last-child)>.step,.ui.steps>.step:last-child{border-bottom:none}}@container style(--_ui-steps-layout:vertical){:host>.step:after,.ui.steps>.step:after{display:none}:host>.step.active:after,.ui.steps>.step.active:after,:host(:last-child)>.step.active:after,.ui.steps>.step.active:last-child:after{display:block}}@container style(--_ui-steps-layout:vertical) and style(--_ui-steps-arrow:left){:host>.step:after,.ui.steps>.step:after{border-width:var(--ui-border-width) 0 0 var(--ui-border-width);left:0;right:100%;transform:translateY(-50%)translate(-50%)rotate(-45deg)}}@container style(--_ui-steps-layout:stacked){:host>.step,.ui.steps>.step{--_ui-step-layout:stacked;border-bottom:var(--_ui-steps-border);flex-direction:column;width:100%}:host(:last-child)>.step,.ui.steps>.step:last-child{border-bottom:none}:host>.step:after,.ui.steps>.step:after{top:unset;right:50%;bottom:calc(-1 * var(--_ui-step-arrow-size));transform:translateY(-50%)translate(50%)rotate(45deg)}:host(:last-child)>.step.active:after,.ui.steps>.step.active:last-child:after{display:none}:host>.step>.content,.ui.steps>.step>.content{text-align:center}:host>.step>.icon,.ui.steps>.step>.icon,:host>.step:before,.ui.steps>.step:before{margin:0 0 var(--_ui-step-icon-distance) 0}}}.ui.fluid.steps{width:100%;display:flex}.ui.attached.steps:not(.circular),.ui.top.attached.steps:not(.circular){--_ui-steps-first-radius:var(--_ui-steps-radius) 0 0 0;--_ui-steps-last-radius:0 var(--_ui-steps-radius) 0 0;--_ui-steps-only-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;width:calc(100% + 2 * var(--ui-border-width));max-width:calc(100% + 2 * var(--ui-border-width));margin:0 calc(-1 * var(--ui-border-width)) 0;border-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0}.ui.bottom.attached.steps:not(.circular){--_ui-steps-first-radius:0 0 0 var(--_ui-steps-radius);--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) 0;--_ui-steps-only-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);margin:0 calc(-1 * var(--ui-border-width)) 0;border-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius)}.ui:is(.one,.two,.three,.four,.five,.six,.seven,.eight).steps{--_ui-steps-step-wrap:nowrap;width:100%}.ui.one.steps{--_ui-steps-step-width:100%}.ui.two.steps{--_ui-steps-step-width:50%}.ui.three.steps{--_ui-steps-step-width:33.333%}.ui.four.steps{--_ui-steps-step-width:25%}.ui.five.steps{--_ui-steps-step-width:20%}.ui.six.steps{--_ui-steps-step-width:16.666%}.ui.seven.steps{--_ui-steps-step-width:14.285%}.ui.eight.steps{--_ui-steps-step-width:12.5%}.ui.inverted.steps{--ui-inverted:1;--ui-scheme:dark;color-scheme:dark;--_ui-step-background:var(--_ui-step-inverted-background);--_ui-step-active-background:color-mix(in oklab, var(--ui-ink) 13%, var(--_ui-step-background));--_ui-step-hover-background:color-mix(in oklab, var(--ui-ink) 16%, var(--_ui-step-background));--_ui-step-active-hover-background:color-mix(in oklab, var(--ui-ink) 20%, var(--_ui-step-background));--_ui-step-down-background:var(--_ui-step-active-hover-background);--_ui-step-active-icon-color:var(--ui-text-selected);--_ui-step-disabled-background:color-mix(in oklab, var(--ui-ink) 6%, var(--_ui-step-background));--_ui-step-circular-title-background:var(--_ui-step-background)}.ui.circular.steps{--_ui-steps-circular:1;box-shadow:none;border:0;border-radius:0}.ui.circular.steps:not(.vertical){background:0 0;margin:1em 0;padding:1em 0;display:flex;position:relative}.ui.circular.vertical.steps{flex-flow:column wrap;align-items:flex-start;display:inline-flex}:host(:state(block))>.ui.steps:not([data-ui]){margin-block:0}@container style(--_ui-steps-circular:1){:host>.step,.ui.steps>.step{color:inherit;cursor:default}:host>.step:before,.ui.steps>.step:before{content:\"\";box-sizing:border-box;width:var(--_ui-step-ring-size);height:var(--_ui-step-ring-size);line-height:calc(var(--_ui-step-ring-size) - 2 * var(--_ui-step-ring-width));text-align:center;border:var(--_ui-step-ring-width) solid var(--_ui-step-ring-color);border-radius:50%;position:absolute}:host>.step:after,.ui.steps>.step:after{content:\"\";width:var(--_ui-step-dot-size);height:var(--_ui-step-dot-size);background:var(--_ui-step-ring-color);border-radius:50%;display:block;position:absolute}:host>:is(a,button).step,.ui.steps>:is(a,.link).step{cursor:pointer}:host>.step:is([class~=red],[class~=orange],[class~=yellow],[class~=olive],[class~=green],[class~=teal],[class~=blue],[class~=violet],[class~=purple],[class~=pink],[class~=brown],[class~=grey],[class~=black],[class~=primary],[class~=secondary]),.ui.steps>.step:is(.red,.orange,.yellow,.olive,.green,.teal,.blue,.violet,.purple,.pink,.brown,.grey,.black,.primary,.secondary){--_ui-steps-accent:var(--ui-color);--_ui-step-ring-color:var(--ui-color)}:host>.step,.ui.steps>.step{--_ui-step-content-padding:0 .5em;--_ui-step-description-distance:.5em}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-line:horizontal){:host>.step,.ui.steps>.step{--_ui-step-content-margin:-1.5em 0 0;height:var(--_ui-step-ring-width);margin-left:var(--_ui-step-ring-size);background:var(--_ui-step-ring-color);flex-wrap:wrap;flex:1;align-items:center;display:flex}:host(:last-child)>.step,.ui.steps>.step:last-child{flex:0}:host(:last-child:state(content))>.step,.ui.steps>.step:last-child:has(>.content){flex:1}:host>.step:before,.ui.steps>.step:before{left:calc(-1 * var(--_ui-step-ring-size))}:host>.step:after,.ui.steps>.step:after{left:calc(var(--_ui-step-dot-size) - var(--_ui-step-ring-size) - .3em)}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-line:vertical){:host>.step,.ui.steps>.step{width:100%;min-height:var(--_ui-step-ring-size);display:block;position:relative}:host>.step:before,.ui.steps>.step:before{top:0;left:0}:host>.step:after,.ui.steps>.step:after{top:calc((var(--_ui-step-ring-size) - var(--_ui-step-dot-size)) / 2);left:calc((var(--_ui-step-ring-size) - var(--_ui-step-dot-size)) / 2)}:host>.step,.ui.steps>.step{padding-left:3.5em}:host(:not(:last-child))>.step,.ui.steps>.step:not(:last-child){background:linear-gradient(var(--_ui-step-ring-color), var(--_ui-step-ring-color)) no-repeat calc(var(--_ui-step-ring-size) / 2 - var(--_ui-step-ring-width) / 2) var(--_ui-step-ring-size) / var(--_ui-step-ring-width) calc(100% - var(--_ui-step-ring-size));padding-bottom:3em}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-ordered:1){:host>.step:before,.ui.steps>.step:before{content:counter(ui-step);width:var(--_ui-step-ring-size);height:var(--_ui-step-ring-size);background:var(--_ui-step-background);mask:none}:host>.step:after,.ui.steps>.step:after{background:0 0}}}@layer ui.components.step.states{@container not style(--_ui-steps-circular:1){:host>:is(a[href],button).step:hover,:host>:is(a[href],button).step:hover:after,.ui.steps>:is(a,.link).step:hover,.ui.steps>:is(a,.link).step:hover:after{color:var(--_ui-step-hover-color);background:var(--_ui-step-hover-background)}:host>:is(a[href],button).step:active,:host>:is(a[href],button).step:active:after,.ui.steps>:is(a,.link).step:active,.ui.steps>:is(a,.link).step:active:after{color:var(--_ui-step-down-color);background:var(--_ui-step-down-background)}:host>.step.active,:host>.step.active:after,.ui.steps>.step.active,.ui.steps>.step.active:after{background:var(--_ui-step-active-background)}:host>.step.active,.ui.steps>.step.active{cursor:auto}:host>:is(a[href],button).step.active:hover,:host>:is(a[href],button).step.active:hover:after,.ui.steps>:is(a,.link).step.active:hover,.ui.steps>:is(a,.link).step.active:hover:after{color:var(--_ui-step-active-hover-color);background:var(--_ui-step-active-hover-background);cursor:pointer}:host>.step.disabled,:host>.step.disabled:after,.ui.steps>.step.disabled,.ui.steps>.step.disabled:after{color:var(--_ui-step-disabled-color);background:var(--_ui-step-disabled-background)}:host>.step.disabled,.ui.steps>.step.disabled{cursor:auto;pointer-events:none}}:host>.step.active,.ui.steps>.step.active{--_ui-step-state:active}:host>.step.disabled,.ui.steps>.step.disabled{--_ui-step-state:disabled}:host>.step.active>.icon,.ui.steps>.step.active>.icon,:host>.step.active:before,.ui.steps>.step.active:before{color:var(--_ui-step-active-icon-color)}:host>.step.completed>.icon,.ui.steps>.step.completed>.icon,:host>.step.completed:before,.ui.steps>.step.completed:before{color:var(--_ui-step-completed-color)}@container style(--_ui-steps-circular:1){:host>.step.active,.ui.steps>.step.active{--_ui-step-active-title-color:var(--_ui-steps-accent)}:host>.step.active:before,.ui.steps>.step.active:before{color:var(--_ui-steps-accent);border-color:var(--_ui-steps-accent)}:host>.step.active:after,.ui.steps>.step.active:after{background:var(--_ui-steps-accent)}:host>.step.completed:before,.ui.steps>.step.completed:before{background:var(--_ui-steps-accent);border-color:var(--_ui-steps-accent)}:host>.step.completed:after,.ui.steps>.step.completed:after{background:var(--_ui-steps-accent-on);mask:var(--_ui-step-check) center / contain no-repeat}:host>.step.disabled,.ui.steps>.step.disabled{cursor:auto;opacity:var(--_ui-step-circular-disabled-opacity);pointer-events:none}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-line:horizontal){:host>.step.completed,.ui.steps>.step.completed{background:var(--_ui-steps-accent)}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-line:vertical){:host(:not(:last-child))>.step.completed,.ui.steps>.step.completed:not(:last-child){--_ui-step-ring-color:var(--_ui-steps-accent)}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-ordered:1){:host>.step.completed:before,.ui.steps>.step.completed:before{content:\"\"}:host>.step:not(.completed):after,.ui.steps>.step:not(.completed):after{background:0 0}}}", D = /* @__PURE__ */ T("<ol role=list><slot>"), O, k, A, j, M, N, P, F = class _UISteps extends (N = l, M = [p], j = [m], A = [d("steps")], k = [d("block")], O = [d("circular")], N) {
|
|
175
|
+
}, D = "@layer ui.components.step.types{:host{display:contents}:host(:state(steps)){--ui-color:initial;--ui-color-text:initial;--ui-color-header:initial;--ui-color-border:initial;--ui-color-background:initial;--ui-color-inverted:initial;--ui-color-hover:initial;--ui-color-focus:initial;--ui-color-down:initial;--ui-color-active:initial;--ui-color-on:initial;--ui-color-inverted-on:initial;display:block;container:ui-steps/inline-size}:has(>.ui.steps){container:ui-steps/inline-size}.ui.steps{--ui-inverted:0;--_ui-steps-layout:horizontal;--_ui-steps-circular:0;--_ui-steps-ordered:0;--_ui-steps-arrow:right;--_ui-steps-line:horizontal;--_ui-steps-column:0;--_ui-steps-radius:var(--ui-steps-radius,var(--ui-radius));--_ui-steps-first-radius:var(--_ui-steps-radius) 0 0 var(--_ui-steps-radius);--_ui-steps-last-radius:0 var(--_ui-steps-radius) var(--_ui-steps-radius) 0;--_ui-steps-only-radius:var(--_ui-steps-radius);--_ui-steps-step-width:auto;--_ui-steps-step-wrap:wrap;--_ui-steps-step-flex:1 0 auto;--_ui-steps-accent:var(--ui-color,var(--ui-positive));--_ui-steps-border:var(--ui-steps-border,var(--ui-border-width) solid var(--ui-border-color));--_ui-steps-accent-on:var(--ui-steps-accent-on,white);--_ui-step-background:var(--ui-step-background,var(--ui-surface));--_ui-step-inverted-background:var(--ui-step-inverted-background,color-mix(in oklab, var(--ui-surface) 70%, oklch(0% 0 0)));--_ui-step-color:var(--ui-step-color,var(--ui-text-color));--_ui-step-divider:var(--ui-step-divider,var(--ui-border-width) solid var(--ui-border-color));--_ui-step-border-color:var(--ui-step-border-color,var(--ui-border-color));--_ui-step-padding:var(--ui-step-padding,1.14285em 2em);--_ui-step-arrow-size:var(--ui-step-arrow-size,1.14285em);--_ui-step-line-height:var(--ui-step-line-height,1.14285em);--_ui-step-icon-size:var(--ui-step-icon-size,2.5em);--_ui-step-icon-distance:var(--ui-step-icon-distance,var(--ui-font-size));--_ui-step-hover-background:var(--ui-step-hover-background,color-mix(in oklab, var(--ui-ink) 2%, var(--ui-surface)));--_ui-step-hover-color:var(--ui-step-hover-color,var(--ui-text-hovered));--_ui-step-down-background:var(--ui-step-down-background,color-mix(in oklab, var(--ui-ink) 5%, var(--ui-surface)));--_ui-step-down-color:var(--ui-step-down-color,var(--ui-text-pressed));--_ui-step-active-background:var(--ui-step-active-background,color-mix(in oklab, var(--ui-ink) 5%, var(--ui-surface)));--_ui-step-active-icon-color:var(--ui-step-active-icon-color,var(--ui-text-dark));--_ui-step-active-hover-background:var(--ui-step-active-hover-background,color-mix(in oklab, var(--ui-ink) 13%, var(--ui-surface)));--_ui-step-active-hover-color:var(--ui-step-active-hover-color,var(--ui-text-color));--_ui-step-completed-color:var(--ui-step-completed-color,var(--ui-positive));--_ui-step-disabled-background:var(--ui-step-disabled-background,var(--_ui-step-background));--_ui-step-disabled-color:var(--ui-step-disabled-color,var(--ui-text-disabled));--_ui-step-transition:var(--ui-step-transition,background-color var(--ui-duration-slow) var(--ui-ease), opacity var(--ui-duration-slow) var(--ui-ease), color var(--ui-duration-slow) var(--ui-ease), box-shadow var(--ui-duration-slow) var(--ui-ease));--_ui-step-check:var(--ui-step-check,url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z'/%3E%3C/svg%3E\"));--_ui-step-ring-color:var(--ui-step-ring-color,var(--ui-border-color-strong));--_ui-step-ring-width:var(--ui-step-ring-width,2px);--_ui-step-ring-size:var(--ui-step-ring-size,2.2em);--_ui-step-dot-size:var(--ui-step-dot-size,.95em);--_ui-step-circular-disabled-opacity:var(--ui-step-circular-disabled-opacity,.5);--_ui-step-circular-title-background:var(--ui-step-circular-title-background,var(--ui-surface));box-sizing:border-box;font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));line-height:var(--_ui-step-line-height);counter-reset:ui-step;border:var(--_ui-steps-border);border-radius:var(--_ui-steps-radius);box-shadow:none;flex-flow:wrap;align-items:stretch;margin:1em 0;padding:0;list-style:none;display:inline-flex;container:none}.ui.unstackable.steps{flex-wrap:nowrap}.ui.steps>slot{--ui-scale:initial}:host(:first-child)>.ui.steps,.ui.steps:first-child{margin-top:0}:host(:last-child)>.ui.steps,.ui.steps:last-child{margin-bottom:0}:host(:not(:first-child))>.ui.steps{margin-top:1em}:host(:not(:last-child))>.ui.steps{margin-bottom:1em}:host(:state(block):not(:first-child)),:host(:state(block):state(circular)){margin-block-start:1em}:host(:state(block):not(:last-child)),:host(:state(block):state(circular)){margin-block-end:1em}:host>.step,.ui.steps>.step{--_ui-step-state:normal;--_ui-step-layout:row;--_ui-step-content-margin:var(--ui-step-content-margin,0);--_ui-step-content-padding:var(--ui-step-content-padding,0);--_ui-step-description-distance:var(--ui-step-description-distance,.25em);--_ui-step-active-title-color:var(--ui-step-active-title-color,var(--ui-link));box-sizing:border-box;width:var(--_ui-steps-step-width);color:var(--_ui-step-color);font:inherit;text-align:inherit;box-shadow:none;background:0 0;border:none;border-radius:0;margin:0;padding:0;text-decoration:none;position:relative}:host>button.step{appearance:none}:host>.step:focus-visible,.ui.steps>.step:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color,var(--ui-link));outline-offset:calc(-1 * var(--ui-focus-width));z-index:3}@container not style(--_ui-steps-circular:1){:host>.step,.ui.steps>.step{flex:var(--_ui-steps-step-flex);flex-flow:row var(--_ui-steps-step-wrap);padding:var(--_ui-step-padding);vertical-align:middle;background:var(--_ui-step-background);border-right:var(--_ui-step-divider);transition:var(--_ui-step-transition);justify-content:center;align-items:center;display:flex}:host>.step:after,.ui.steps>.step:after{content:\"\";z-index:2;width:var(--_ui-step-arrow-size);height:var(--_ui-step-arrow-size);background-color:var(--_ui-step-background);border-style:solid;border-color:var(--_ui-step-border-color);border-width:0 var(--ui-border-width) var(--ui-border-width) 0;transition:var(--_ui-step-transition);display:block;position:absolute;top:50%;right:0;transform:translateY(-50%)translate(50%)rotate(-45deg)}:host(:first-child)>.step,.ui.steps>.step:first-child{border-radius:var(--_ui-steps-first-radius)}:host(:last-child)>.step,.ui.steps>.step:last-child{border-radius:var(--_ui-steps-last-radius);border-right:none;margin-right:0}:host(:last-child)>.step:after,.ui.steps>.step:last-child:after{display:none}:host(:only-child)>.step,.ui.steps>.step:only-child{border-radius:var(--_ui-steps-only-radius)}}}@layer ui.components.step.content{:host>.step>.icon,.ui.steps>.step>.icon{width:auto;margin:0 var(--_ui-step-icon-distance) 0 0;font-size:var(--_ui-step-icon-size);flex:0 auto;align-self:center;line-height:1;display:block}:host>.step>.icon svg,.ui.steps>.step>.icon svg{width:auto;height:1em;display:block}:host>.step>.icon>slot::slotted(*){--_ui-icon-owner-margin:0}:host>:is(a,button).step,.ui.steps>:is(a,.link).step{cursor:var(--ui-control-cursor)}}@layer ui.components.step.variations{.ui.medium.steps{--ui-scale:1}.ui.ordered.steps{--_ui-steps-ordered:1}@container style(--_ui-steps-ordered:1){:host>.step:before,.ui.steps>.step:before{content:counter(ui-step);counter-increment:ui-step;font-variant-numeric:tabular-nums;font-family:inherit;font-weight:var(--ui-font-weight-bold);text-align:center;align-self:center}:host>.step>:not(slot),.ui.steps>.step>*{align-self:center;display:block}}@container not style(--_ui-steps-circular:1){@container style(--_ui-steps-ordered:1){:host>.step:before,.ui.steps>.step:before{margin-right:var(--_ui-step-icon-distance);font-size:var(--_ui-step-icon-size);line-height:1;display:block;position:static}:host>.step.completed:before,.ui.steps>.step.completed:before{content:\"\";width:1em;height:1em;mask:var(--_ui-step-check) center / contain no-repeat;background-color:currentColor}}}.ui.equal.steps:not(.vertical,.circular,.fluid){grid-auto-columns:1fr;grid-auto-flow:column;display:inline-grid}.ui.equal.fluid.steps:not(.vertical,.circular){--_ui-steps-step-flex:1 1 0%}.ui.vertical.steps{--_ui-steps-layout:vertical;--_ui-steps-line:vertical;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}.ui.right.vertical.steps{--_ui-steps-arrow:left}@container ui-steps (width<768px){@container not style(--ui-stack-with:page){.ui.steps:not(.unstackable,.circular):not(.stack-with-page){--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}@container style(--ui-stack-with:page){.ui.steps:not(.unstackable,.circular).stack-with-container{--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}}@media (width<768px){@container style(--ui-stack-with:page){.ui.steps:not(.unstackable,.circular):not(.stack-with-container){--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}@container not style(--ui-stack-with:page){.ui.steps:not(.unstackable,.circular).stack-with-page{--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}}@container ui-steps (width<992px){@container not style(--ui-stack-with:page){.ui[class*=tablet\\ stackable].steps:not(.circular):not(.stack-with-page){--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}@container style(--ui-stack-with:page){.ui[class*=tablet\\ stackable].steps:not(.circular).stack-with-container{--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}}@media (width<768px),(768px<=width<992px){@container style(--ui-stack-with:page){.ui[class*=tablet\\ stackable].steps:not(.circular):not(.stack-with-container){--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}@container not style(--ui-stack-with:page){.ui[class*=tablet\\ stackable].steps:not(.circular).stack-with-page{--_ui-steps-layout:stacked;--_ui-steps-column:1;--_ui-steps-first-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);flex-direction:column;display:inline-flex;overflow:visible}}}@container not style(--_ui-steps-circular:1){@container style(--_ui-steps-column:1){:host>.step,.ui.steps>.step{border-right:none;border-bottom:var(--_ui-step-divider);justify-content:flex-start}:host(:last-child)>.step,.ui.steps>.step:last-child{border-bottom:none}}@container style(--_ui-steps-layout:vertical){:host>.step:after,.ui.steps>.step:after{display:none}:host>.step.active:after,.ui.steps>.step.active:after,:host(:last-child)>.step.active:after,.ui.steps>.step.active:last-child:after{display:block}}@container style(--_ui-steps-layout:vertical) and style(--_ui-steps-arrow:left){:host>.step:after,.ui.steps>.step:after{border-width:var(--ui-border-width) 0 0 var(--ui-border-width);left:0;right:100%;transform:translateY(-50%)translate(-50%)rotate(-45deg)}}@container style(--_ui-steps-layout:stacked){:host>.step,.ui.steps>.step{--_ui-step-layout:stacked;border-bottom:var(--_ui-steps-border);flex-direction:column;width:100%}:host(:last-child)>.step,.ui.steps>.step:last-child{border-bottom:none}:host>.step:after,.ui.steps>.step:after{top:unset;right:50%;bottom:calc(-1 * var(--_ui-step-arrow-size));transform:translateY(-50%)translate(50%)rotate(45deg)}:host(:last-child)>.step.active:after,.ui.steps>.step.active:last-child:after{display:none}:host>.step>.content,.ui.steps>.step>.content{text-align:center}:host>.step>.icon,.ui.steps>.step>.icon,:host>.step:before,.ui.steps>.step:before{margin:0 0 var(--_ui-step-icon-distance) 0}}}.ui.fluid.steps{width:100%;display:flex}.ui.attached.steps:not(.circular),.ui.top.attached.steps:not(.circular){--_ui-steps-first-radius:var(--_ui-steps-radius) 0 0 0;--_ui-steps-last-radius:0 var(--_ui-steps-radius) 0 0;--_ui-steps-only-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;width:calc(100% + 2 * var(--ui-border-width));max-width:calc(100% + 2 * var(--ui-border-width));margin:0 calc(-1 * var(--ui-border-width)) 0;border-radius:var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0}.ui.bottom.attached.steps:not(.circular){--_ui-steps-first-radius:0 0 0 var(--_ui-steps-radius);--_ui-steps-last-radius:0 0 var(--_ui-steps-radius) 0;--_ui-steps-only-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);margin:0 calc(-1 * var(--ui-border-width)) 0;border-radius:0 0 var(--_ui-steps-radius) var(--_ui-steps-radius)}.ui:is(.one,.two,.three,.four,.five,.six,.seven,.eight).steps{--_ui-steps-step-wrap:nowrap;width:100%}.ui.one.steps{--_ui-steps-step-width:100%}.ui.two.steps{--_ui-steps-step-width:50%}.ui.three.steps{--_ui-steps-step-width:33.333%}.ui.four.steps{--_ui-steps-step-width:25%}.ui.five.steps{--_ui-steps-step-width:20%}.ui.six.steps{--_ui-steps-step-width:16.666%}.ui.seven.steps{--_ui-steps-step-width:14.285%}.ui.eight.steps{--_ui-steps-step-width:12.5%}.ui.inverted.steps{--ui-inverted:1;--ui-scheme:dark;color-scheme:dark;--_ui-step-background:var(--_ui-step-inverted-background);--_ui-step-active-background:color-mix(in oklab, var(--ui-ink) 13%, var(--_ui-step-background));--_ui-step-hover-background:color-mix(in oklab, var(--ui-ink) 16%, var(--_ui-step-background));--_ui-step-active-hover-background:color-mix(in oklab, var(--ui-ink) 20%, var(--_ui-step-background));--_ui-step-down-background:var(--_ui-step-active-hover-background);--_ui-step-active-icon-color:var(--ui-text-selected);--_ui-step-disabled-background:color-mix(in oklab, var(--ui-ink) 6%, var(--_ui-step-background));--_ui-step-circular-title-background:var(--_ui-step-background)}.ui.circular.steps{--_ui-steps-circular:1;box-shadow:none;border:0;border-radius:0}.ui.circular.steps:not(.vertical){background:0 0;margin:1em 0;padding:1em 0;display:flex;position:relative}.ui.circular.vertical.steps{flex-flow:column wrap;align-items:flex-start;display:inline-flex}:host(:state(block))>.ui.steps:not([data-ui]){margin-block:0}@container style(--_ui-steps-circular:1){:host>.step,.ui.steps>.step{color:inherit;cursor:default}:host>.step:before,.ui.steps>.step:before{content:\"\";box-sizing:border-box;width:var(--_ui-step-ring-size);height:var(--_ui-step-ring-size);line-height:calc(var(--_ui-step-ring-size) - 2 * var(--_ui-step-ring-width));text-align:center;border:var(--_ui-step-ring-width) solid var(--_ui-step-ring-color);border-radius:50%;position:absolute}:host>.step:after,.ui.steps>.step:after{content:\"\";width:var(--_ui-step-dot-size);height:var(--_ui-step-dot-size);background:var(--_ui-step-ring-color);border-radius:50%;display:block;position:absolute}:host>:is(a,button).step,.ui.steps>:is(a,.link).step{cursor:var(--ui-control-cursor)}:host>.step:is([class~=red],[class~=orange],[class~=yellow],[class~=olive],[class~=green],[class~=teal],[class~=blue],[class~=violet],[class~=purple],[class~=pink],[class~=brown],[class~=grey],[class~=black],[class~=primary],[class~=secondary]),.ui.steps>.step:is(.red,.orange,.yellow,.olive,.green,.teal,.blue,.violet,.purple,.pink,.brown,.grey,.black,.primary,.secondary){--_ui-steps-accent:var(--ui-color);--_ui-step-ring-color:var(--ui-color)}:host>.step,.ui.steps>.step{--_ui-step-content-padding:0 .5em;--_ui-step-description-distance:.5em}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-line:horizontal){:host>.step,.ui.steps>.step{--_ui-step-content-margin:-1.5em 0 0;height:var(--_ui-step-ring-width);margin-left:var(--_ui-step-ring-size);background:var(--_ui-step-ring-color);flex-wrap:wrap;flex:1;align-items:center;display:flex}:host(:last-child)>.step,.ui.steps>.step:last-child{flex:0}:host(:last-child:state(content))>.step,.ui.steps>.step:last-child:has(>.content){flex:1}:host>.step:before,.ui.steps>.step:before{left:calc(-1 * var(--_ui-step-ring-size))}:host>.step:after,.ui.steps>.step:after{left:calc(var(--_ui-step-dot-size) - var(--_ui-step-ring-size) - .3em)}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-line:vertical){:host>.step,.ui.steps>.step{width:100%;min-height:var(--_ui-step-ring-size);display:block;position:relative}:host>.step:before,.ui.steps>.step:before{top:0;left:0}:host>.step:after,.ui.steps>.step:after{top:calc((var(--_ui-step-ring-size) - var(--_ui-step-dot-size)) / 2);left:calc((var(--_ui-step-ring-size) - var(--_ui-step-dot-size)) / 2)}:host>.step,.ui.steps>.step{padding-left:3.5em}:host(:not(:last-child))>.step,.ui.steps>.step:not(:last-child){background:linear-gradient(var(--_ui-step-ring-color), var(--_ui-step-ring-color)) no-repeat calc(var(--_ui-step-ring-size) / 2 - var(--_ui-step-ring-width) / 2) var(--_ui-step-ring-size) / var(--_ui-step-ring-width) calc(100% - var(--_ui-step-ring-size));padding-bottom:3em}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-ordered:1){:host>.step:before,.ui.steps>.step:before{content:counter(ui-step);width:var(--_ui-step-ring-size);height:var(--_ui-step-ring-size);background:var(--_ui-step-background);mask:none}:host>.step:after,.ui.steps>.step:after{background:0 0}}}@layer ui.components.step.states{@container not style(--_ui-steps-circular:1){:host>:is(a[href],button).step:hover,:host>:is(a[href],button).step:hover:after,.ui.steps>:is(a,.link).step:hover,.ui.steps>:is(a,.link).step:hover:after{color:var(--_ui-step-hover-color);background:var(--_ui-step-hover-background)}:host>:is(a[href],button).step:active,:host>:is(a[href],button).step:active:after,.ui.steps>:is(a,.link).step:active,.ui.steps>:is(a,.link).step:active:after{color:var(--_ui-step-down-color);background:var(--_ui-step-down-background)}:host>.step.active,:host>.step.active:after,.ui.steps>.step.active,.ui.steps>.step.active:after{background:var(--_ui-step-active-background)}:host>.step.active,.ui.steps>.step.active{cursor:auto}:host>:is(a[href],button).step.active:hover,:host>:is(a[href],button).step.active:hover:after,.ui.steps>:is(a,.link).step.active:hover,.ui.steps>:is(a,.link).step.active:hover:after{color:var(--_ui-step-active-hover-color);background:var(--_ui-step-active-hover-background);cursor:var(--ui-control-cursor)}:host>.step.disabled,:host>.step.disabled:after,.ui.steps>.step.disabled,.ui.steps>.step.disabled:after{color:var(--_ui-step-disabled-color);background:var(--_ui-step-disabled-background)}:host>.step.disabled,.ui.steps>.step.disabled{cursor:auto;pointer-events:none}}:host>.step.active,.ui.steps>.step.active{--_ui-step-state:active}:host>.step.disabled,.ui.steps>.step.disabled{--_ui-step-state:disabled}:host>.step.active>.icon,.ui.steps>.step.active>.icon,:host>.step.active:before,.ui.steps>.step.active:before{color:var(--_ui-step-active-icon-color)}:host>.step.completed>.icon,.ui.steps>.step.completed>.icon,:host>.step.completed:before,.ui.steps>.step.completed:before{color:var(--_ui-step-completed-color)}@container style(--_ui-steps-circular:1){:host>.step.active,.ui.steps>.step.active{--_ui-step-active-title-color:var(--_ui-steps-accent)}:host>.step.active:before,.ui.steps>.step.active:before{color:var(--_ui-steps-accent);border-color:var(--_ui-steps-accent)}:host>.step.active:after,.ui.steps>.step.active:after{background:var(--_ui-steps-accent)}:host>.step.completed:before,.ui.steps>.step.completed:before{background:var(--_ui-steps-accent);border-color:var(--_ui-steps-accent)}:host>.step.completed:after,.ui.steps>.step.completed:after{background:var(--_ui-steps-accent-on);mask:var(--_ui-step-check) center / contain no-repeat}:host>.step.disabled,.ui.steps>.step.disabled{cursor:auto;opacity:var(--_ui-step-circular-disabled-opacity);pointer-events:none}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-line:horizontal){:host>.step.completed,.ui.steps>.step.completed{background:var(--_ui-steps-accent)}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-line:vertical){:host(:not(:last-child))>.step.completed,.ui.steps>.step.completed:not(:last-child){--_ui-step-ring-color:var(--_ui-steps-accent)}}@container style(--_ui-steps-circular:1) and style(--_ui-steps-ordered:1){:host>.step.completed:before,.ui.steps>.step.completed:before{content:\"\"}:host>.step:not(.completed):after,.ui.steps>.step:not(.completed):after{background:0 0}}}", ae = /* @__PURE__ */ T("<ol role=list><slot>"), O, k, A, j, M, N, P, F = class _UISteps extends (N = c, M = [d], j = [f], A = [u("steps")], k = [u("block")], O = [u("circular")], N) {
|
|
175
176
|
constructor() {
|
|
176
|
-
super(...arguments),
|
|
177
|
+
super(...arguments), l(P, 5, this);
|
|
177
178
|
}
|
|
178
179
|
get isStepGroup() {
|
|
179
180
|
return !0;
|
|
@@ -188,11 +189,11 @@ var ae = {
|
|
|
188
189
|
return String(this.direction ?? "").startsWith(R);
|
|
189
190
|
}
|
|
190
191
|
get extraClass() {
|
|
191
|
-
return
|
|
192
|
+
return te.classFor(this.stackWith);
|
|
192
193
|
}
|
|
193
194
|
render() {
|
|
194
195
|
let e = this;
|
|
195
|
-
var t =
|
|
196
|
+
var t = ae(), n = t.firstChild;
|
|
196
197
|
return n._$owner = b(), y(() => ({
|
|
197
198
|
e: C(e.rootClass),
|
|
198
199
|
t: e.partForName("steps")
|
|
@@ -201,12 +202,13 @@ var ae = {
|
|
|
201
202
|
}), t;
|
|
202
203
|
}
|
|
203
204
|
};
|
|
204
|
-
P =
|
|
205
|
-
styleSheets: { step:
|
|
205
|
+
P = m(N), a(P, 2, "isStepGroup", A, F), a(P, 2, "isBlockLevel", k, F), a(P, 2, "isCircular", O, F), a(P, 13, "vocabulary", M, F), a(P, 13, "elementSetup", j, F), o(P, F), t(F, "UISteps"), r(F, "vocabulary", l(P, 8, F, E)), l(P, 11, F), r(F, "elementSetup", l(P, 12, F, {
|
|
206
|
+
styleSheets: { step: D },
|
|
206
207
|
delegatesFocus: !1
|
|
207
|
-
})),
|
|
208
|
+
})), l(P, 15, F);
|
|
208
209
|
var I = F, L = "circular", R = "vertical", z = {
|
|
209
210
|
tag: "ui-step",
|
|
211
|
+
icon: "shoe prints",
|
|
210
212
|
topics: [
|
|
211
213
|
"navigation",
|
|
212
214
|
"progress",
|
|
@@ -352,14 +354,14 @@ var I = F, L = "circular", R = "vertical", z = {
|
|
|
352
354
|
"title",
|
|
353
355
|
"description"
|
|
354
356
|
]
|
|
355
|
-
}, B = /* @__PURE__ */ T("<slot>"), V = /* @__PURE__ */ T("<span><!><!>"), H = /* @__PURE__ */ T("<div>"), U = /* @__PURE__ */ T("<div><!><!>"), W = /* @__PURE__ */ T("<span>"), G, K, q, J, Y, X, Z, Q = class _UIStep extends (X =
|
|
357
|
+
}, B = /* @__PURE__ */ T("<slot>"), V = /* @__PURE__ */ T("<span><!><!>"), H = /* @__PURE__ */ T("<div>"), U = /* @__PURE__ */ T("<div><!><!>"), W = /* @__PURE__ */ T("<span>"), G, K, q, J, Y, X, Z, Q = class _UIStep extends (X = c, Y = [d], J = [f], q = [u("selected")], K = [u("disabled")], G = [u("content")], X) {
|
|
356
358
|
constructor() {
|
|
357
|
-
super(...arguments),
|
|
359
|
+
super(...arguments), l(Z, 5, this), r(this, "slots", new s(this.domElement)), r(this, "iconGlyph", new i({
|
|
358
360
|
owner: this,
|
|
359
|
-
name: /* @__PURE__ */
|
|
360
|
-
})),
|
|
361
|
+
name: /* @__PURE__ */ t(() => this.icon, "name")
|
|
362
|
+
})), r(this, "checkGlyph", new i({
|
|
361
363
|
owner: this,
|
|
362
|
-
name: /* @__PURE__ */
|
|
364
|
+
name: /* @__PURE__ */ t(() => this.completed && this.hasIcon ? se : void 0, "name")
|
|
363
365
|
}));
|
|
364
366
|
}
|
|
365
367
|
get isSelected() {
|
|
@@ -386,7 +388,7 @@ var I = F, L = "circular", R = "vertical", z = {
|
|
|
386
388
|
}
|
|
387
389
|
render() {
|
|
388
390
|
let t = this;
|
|
389
|
-
return v(
|
|
391
|
+
return v(g, {
|
|
390
392
|
get component() {
|
|
391
393
|
return t.rootTag;
|
|
392
394
|
},
|
|
@@ -416,13 +418,13 @@ var I = F, L = "circular", R = "vertical", z = {
|
|
|
416
418
|
},
|
|
417
419
|
get children() {
|
|
418
420
|
return [
|
|
419
|
-
v(
|
|
421
|
+
v(h, {
|
|
420
422
|
get when() {
|
|
421
423
|
return t.hasIcon;
|
|
422
424
|
},
|
|
423
425
|
get children() {
|
|
424
426
|
var n = V(), r = n.firstChild, i = r.nextSibling;
|
|
425
|
-
return x(n, v(
|
|
427
|
+
return x(n, v(h, {
|
|
426
428
|
get when() {
|
|
427
429
|
return !(S && t.completed);
|
|
428
430
|
},
|
|
@@ -443,13 +445,13 @@ var I = F, L = "circular", R = "vertical", z = {
|
|
|
443
445
|
}), n;
|
|
444
446
|
}
|
|
445
447
|
}),
|
|
446
|
-
v(
|
|
448
|
+
v(h, {
|
|
447
449
|
get when() {
|
|
448
450
|
return t.hasShorthand;
|
|
449
451
|
},
|
|
450
452
|
get children() {
|
|
451
453
|
var e = U(), n = e.firstChild, r = n.nextSibling;
|
|
452
|
-
return x(e, v(
|
|
454
|
+
return x(e, v(h, {
|
|
453
455
|
get when() {
|
|
454
456
|
return t.heading;
|
|
455
457
|
},
|
|
@@ -462,14 +464,14 @@ var I = F, L = "circular", R = "vertical", z = {
|
|
|
462
464
|
_(e, t, r?.e), n !== r?.t && w(e, "part", n);
|
|
463
465
|
}), e;
|
|
464
466
|
}
|
|
465
|
-
}), n), x(e, v(
|
|
467
|
+
}), n), x(e, v(h, {
|
|
466
468
|
get when() {
|
|
467
469
|
return t.description;
|
|
468
470
|
},
|
|
469
471
|
get children() {
|
|
470
472
|
var e = H();
|
|
471
473
|
return x(e, () => t.description), y(() => ({
|
|
472
|
-
e: C(t.staticPart(
|
|
474
|
+
e: C(t.staticPart(re)),
|
|
473
475
|
t: t.partForName("description")
|
|
474
476
|
}), ({ e: t, t: n }, r) => {
|
|
475
477
|
_(e, t, r?.e), n !== r?.t && w(e, "part", n);
|
|
@@ -487,7 +489,7 @@ var I = F, L = "circular", R = "vertical", z = {
|
|
|
487
489
|
var e = B();
|
|
488
490
|
return e._$owner = b(), e;
|
|
489
491
|
})(),
|
|
490
|
-
v(
|
|
492
|
+
v(h, {
|
|
491
493
|
get when() {
|
|
492
494
|
return t.completed;
|
|
493
495
|
},
|
|
@@ -506,15 +508,15 @@ var I = F, L = "circular", R = "vertical", z = {
|
|
|
506
508
|
return `${e} in-${this.vocabulary.noun}`;
|
|
507
509
|
}
|
|
508
510
|
};
|
|
509
|
-
Z =
|
|
511
|
+
Z = m(X), a(Z, 2, "isSelected", q, Q), a(Z, 2, "isDisabled", K, Q), a(Z, 2, "hasContent", G, Q), a(Z, 13, "vocabulary", Y, Q), a(Z, 13, "elementSetup", J, Q), o(Z, Q), t(Q, "UIStep"), r(Q, "vocabulary", l(Z, 8, Q, z)), l(Z, 11, Q), r(Q, "elementSetup", l(Z, 12, Q, {
|
|
510
512
|
styleSheets: {
|
|
511
|
-
step:
|
|
512
|
-
parts:
|
|
513
|
+
step: D,
|
|
514
|
+
parts: p
|
|
513
515
|
},
|
|
514
516
|
cssStates: ["completed"],
|
|
515
517
|
aria: { role: "listitem" },
|
|
516
518
|
disabled: "its own"
|
|
517
|
-
})),
|
|
519
|
+
})), l(Z, 15, Q);
|
|
518
520
|
var $ = Q, oe = "title", se = "check", ce = "link";
|
|
519
521
|
I.define(), $.define();
|
|
520
522
|
//#endregion
|