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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeDraft-B7NPif4d.js","names":["COMPONENTS","OWN","TREE_PLACES","POINTER","__toESM","__exportAll","ThemeGlasses","ThemeDepths","ThemeCorners","themeTree","WALLPAPER_THEME","GLASS_THEMES","ThemeFile","name","data","kind","themes","palettes","PALETTES","declarations","imports","path","token","value","head","comments","mark","important","base","up","palette","rules","RULES","rule","out","key","META_KEYS","COMPONENTS$1","OWN$1","seen","values","inherited","file","node","tree","text","leaf","family","tokens","families","place","TREE_PLACES$1","owners","owner","rgb","PLAIN_RGB","POINTER$1","pointer","rest","channels","r","g","b","alpha","bytes","byte","where","names","group","problem","files","places","ThemeTokens","JSON5","m","loaders","load","THEME_FILES","PALETTE_FILES","scheme","OWN","theme","COMPONENTS","pageTokens","id","PAGE","TREE_PLACES","half","PAIR_PLACES","PLAIN_VAR","whole","written","POINTER_ALONE","FORMULA","TOKENS_AT","chain","hops","MAX_DEPTH","a","own","child","at","LIGHT_DARK","open","light","dark","end","depth","comma","index","char","\"default\"","ThemeDraft_exports","ThemeDraft","choices","ownPrefixes","edit","pairPlace","page","error","Warnings","lines","prefix","tuned","primary","PRIMARY_TEXT","PRIMARY_HEADER","PRIMARY_BACKGROUND","LINK_HOVER","PRIMARY_FOCUS_BORDER","secondary","background","bodyFont","FONT_STACKS","headingFont","textSize","corners","s","l","modal","label","RADII","size","RADIUS_FAMILIES","raised","floating","SHADOWS","glass","surface","strong","blur","GLASS","corner","radii","c","font","POINTER","RGB","match","red","green","blue","fraction","exec","hex","hue","GRADIENT_ENDS","draft","turn","role","keys","from","into"],"sources":["../src/styles/ThemeFile.ts","../src/components/ui-theme-editor/ThemeTokens.ts","../src/components/ui-theme-editor/ThemeDraft.ts"],"sourcesContent":["import { themeTree } from \"./styles.en\"\nimport type {\n GeneratedDeclaration,\n ThemeData,\n ThemeLeaf,\n ThemeTokenPair,\n ThemeTree,\n ThemeValuePair\n} from \"./styles.types\"\n\n/****************\n * ### `ThemeFile`\n * One theme file, `<name>.theme.json5` (or a palette, `palettes/<name>.palette.json5`), turned into its sheet\n * (epic `debut` P18).\n * - A theme file holds a theme's VALUES, in `themeTree`'s nested groups, and names what it builds on:\n * - `extends`: the theme it builds on (Fruity: `\"glass\"`), whose sheet its own imports first\n * - `palette`: the hues it borrows (`\"apple\"`)\n * - `rules`: its rules sheets, `themes/rules/<name>.css`: what values can't say (selectors, the glass blur, motion)\n * - two open groups: `components` (a family's own tokens, by its name) and `own` (the theme's private ones)\n * - The sheet: a first line saying it's generated, the imports (what it extends, its palette, its rules sheets),\n * then its values on `:root`, in `@layer ui.theme`.\n * - Its values in the FILE's order; each `{ light, dark }` pair as `light-dark()`, or as the two tokens of a pair leaf.\n * - So nothing that loads a theme changes: `UI.themes` reads the folder's sheets, as before.\n * - Checks every name against `themeTree`, and throws a `TypeError` naming the file, the name and where it belongs:\n * a name not in the tree, a family token that is a tree leaf, an `own` name that isn't the theme's,\n * a theme it extends or a palette that doesn't exist.\n * - Colours are hex, `#rrggbb` or `#rrggbbaa`, never `rgb()`: a plain `rgb(r g b / a)` is refused, naming the hex\n * to write (Owen, epic `debut` P20: \"can you do colors as `#rrggbbaa`\"). Relative colours (`oklch(from ...)`),\n * `color-mix()` and `var()` are fine.\n * - PURE: data in, text out, no file system and no JSON5 reader (the caller parses the file), so it runs in node\n * (`yarn gen:styles`, the committed sheets) and in the browser (the test that keeps them current, the theme\n * editor rewriting its sheet live, saved themes).\n * - Imports only its own folder's vocabulary and types: never the element layer, nor the `spell/ui/styles` barrel\n * with its `?inline` sheets (as `StyleGenerator`).\n ****************/\nexport class ThemeFile {\n /** its name: `glass`, `apple` */\n readonly name: string\n\n /** a theme, in the themes folder, or a palette, in its `palettes/` */\n readonly kind: ThemeFileKind\n\n /** the file, parsed */\n readonly data: ThemeData\n\n /** every theme file by name, for what this one extends */\n private readonly themes: Readonly<Record<string, ThemeData>>\n\n /** every palette file by name, for the palette this one borrows */\n private readonly palettes: Readonly<Record<string, ThemeData>>\n\n constructor({ name, data, kind = \"theme\", themes = {}, palettes = {} }: ThemeFileProps) {\n this.name = name\n this.data = data\n this.kind = kind\n this.themes = themes\n this.palettes = palettes\n }\n\n /** The file's own name: `glass.theme.json5`, `apple.palette.json5`. */\n get fileName(): string {\n return `${this.name}.${this.kind}.json5`\n }\n\n /** Where its sheet goes, from the themes folder: `glass.css`, `palettes/apple.css`. */\n get sheetPath(): string {\n return this.kind === \"palette\" ? `${PALETTES}/${this.name}.css` : `${this.name}.css`\n }\n\n ////////////////\n // ## The sheet\n ////////////////\n\n /**\n * The theme's sheet, as CSS text.\n * - throws a `TypeError` on a mistake in the file (see the class docs)\n */\n css(): string {\n const declarations = this.declarations()\n const imports = this.imports().map((path) => `@import \"${path}\";`)\n return [\n `/* GENERATED by \\`yarn gen:styles\\` from \\`${this.fileName}\\`: edit that file, never this sheet. */`,\n \"\",\n ...(imports.length ? [...imports, \"\"] : []),\n \"@layer ui.theme {\",\n \" :root {\",\n ...declarations.map(([token, value]) => ` ${token}: ${value};`),\n \" }\",\n \"}\",\n \"\"\n ].join(\"\\n\")\n }\n\n /**\n * The theme as a sheet WORN OVER what it extends, already on the page: its own values on `:root`, in\n * `@layer ui.app`, and no imports.\n * - What the theme editor makes (`<ui-theme-editor>`, epic `debut` P24): the page applies the base theme\n * (`UI.themes.apply()`), then this.\n * - `ui.app`, not `ui.theme`: a later layer wins however the sheets arrive (the base's may load after it).\n * - `important`: every value `!important`, for a page whose own sheets set tokens outside any layer\n * (the theme editor's framed pages, the editor app).\n * - `comments`: lines for the comment at its top (the theme's name, its base).\n * - Nothing of its own: `comments` alone, no rule.\n * - throws a `TypeError` on a mistake in the file (see the class docs)\n */\n overlayCss({ important = false, comments = [] }: { important?: boolean; comments?: readonly string[] } = {}): string {\n const declarations = this.declarations()\n const head = comments.length ? `/* ${comments.join(\"\\n \")} */\\n` : \"\"\n if (!declarations.length) return head\n const mark = important ? \" !important\" : \"\"\n const body = declarations.map(([token, value]) => ` ${token}: ${value}${mark};`).join(\"\\n\")\n return `${head}@layer ui.app {\\n :root {\\n${body}\\n }\\n}\\n`\n }\n\n /**\n * Its sheet's `@import`s, relative to the sheet, in order: what it extends, its palette, its rules sheets.\n * - throws a `TypeError` when the theme it extends or its palette has no file\n */\n imports(): string[] {\n const { extends: base, palette, rules = [] } = this.data\n const up = this.kind === \"palette\" ? \"../\" : \"./\"\n if (this.kind === \"palette\" && (base || palette))\n this.fail(\"a palette builds on nothing: no `extends`, no `palette`\")\n if (base) this.themeData(base)\n if (palette) this.paletteData(palette)\n return [\n ...(base ? [`./${base}.css`] : []),\n ...(palette ? [`./${PALETTES}/${palette}.css`] : []),\n ...rules.map((rule) => `${up}${RULES}/${rule}.css`)\n ]\n }\n\n /**\n * Its OWN values, as declarations, in the file's order: not what it extends, nor its palette.\n * - throws a `TypeError` on a mistake in the file (see the class docs)\n */\n declarations(): GeneratedDeclaration[] {\n const out: GeneratedDeclaration[] = []\n for (const [key, value] of Object.entries(this.data)) {\n if (META_KEYS.has(key)) continue\n if (key === COMPONENTS) this.componentDeclarations(value, out)\n else if (key === OWN) this.ownDeclarations(value, out)\n else this.groupDeclarations(value, themeTree, [key], out)\n }\n return out\n }\n\n /**\n * Every value the theme ends with, token => CSS text: what it extends, its palette, then its own, later ones winning.\n * - What its rules sheets set is left out: they're CSS.\n * - throws a `TypeError` on a mistake in any of the files, or a theme that extends itself\n */\n values(seen: ReadonlySet<string> = new Set()): Map<string, string> {\n if (seen.has(this.name)) this.fail(`it extends itself, through ${[...seen].join(\" > \")}`)\n const values = new Map<string, string>()\n const { extends: base, palette } = this.data\n const inherited = [\n ...(base ? [this.sibling(base, \"theme\", this.themeData(base))] : []),\n ...(palette ? [this.sibling(palette, \"palette\", this.paletteData(palette))] : [])\n ]\n for (const file of inherited)\n for (const [token, value] of file.values(new Set([...seen, this.name]))) values.set(token, value)\n for (const [token, value] of this.declarations()) values.set(token, value)\n return values\n }\n\n ////////////////\n // ## The groups\n ////////////////\n\n /** Declarations of `values`, a theme file's group at `path`, against `tree`, the tree's group there. */\n private groupDeclarations(values: unknown, tree: ThemeTree, path: string[], out: GeneratedDeclaration[]) {\n const node = tree[path.at(-1)!]\n if (node === undefined) {\n this.fail(`\\`${path.join(\".\")}\\` is no name in the theme tree; ${this.holds(tree, path.slice(0, -1))}`)\n }\n if (ThemeFile.isLeaf(node)) {\n out.push(...this.leafDeclarations(node, values, path))\n return\n }\n if (!ThemeFile.isGroup(values)) {\n this.fail(`\\`${path.join(\".\")}\\` is a group, not a value; ${this.holds(node, path)}`)\n }\n for (const [key, value] of Object.entries(values)) this.groupDeclarations(value, node, [...path, key], out)\n }\n\n /** Declarations of `value`, set at `path`, a tree leaf whose token(s) are `leaf`. */\n private leafDeclarations(leaf: ThemeLeaf, value: unknown, path: string[]): GeneratedDeclaration[] {\n const text = this.valueText(value, path)\n if (typeof leaf === \"string\") {\n return [[leaf, typeof text === \"string\" ? text : `light-dark(${text.light}, ${text.dark})`]]\n }\n return [\n [leaf.light, typeof text === \"string\" ? text : text.light],\n [leaf.dark, typeof text === \"string\" ? text : text.dark]\n ]\n }\n\n /** `components`: each family's tokens, `--ui-<family>-<name>`; a tree leaf's token is refused, naming its place. */\n private componentDeclarations(families: unknown, out: GeneratedDeclaration[]) {\n for (const [family, tokens] of this.entriesOf(families, [COMPONENTS])) {\n for (const [name, value] of this.entriesOf(tokens, [COMPONENTS, family])) {\n const token = `--ui-${family}-${name}`\n const place = TREE_PLACES.get(token)\n if (place) this.fail(`\\`${COMPONENTS}.${family}.${name}\\` sets ${token}, which belongs in \\`${place}\\``)\n out.push(...this.leafDeclarations(token, value, [COMPONENTS, family, name]))\n }\n }\n }\n\n /** `own`: the theme's private tokens, `--<name>`, each named for the theme or one it builds on (`glass-blur`). */\n private ownDeclarations(tokens: unknown, out: GeneratedDeclaration[]) {\n const owners = this.owners()\n for (const [name, value] of this.entriesOf(tokens, [OWN])) {\n if (!owners.some((owner) => name.startsWith(`${owner}-`))) {\n this.fail(\n `\\`${OWN}.${name}\\` isn't the theme's: its name starts with ${owners.map((owner) => `\\`${owner}-\\``).join(\" or \")}`\n )\n }\n out.push(...this.leafDeclarations(`--${name}`, value, [OWN, name]))\n }\n }\n\n /** The names an `own` token may start with: this theme's, and those of the themes it builds on. */\n private owners(): string[] {\n const owners = [this.name]\n for (let base = this.data.extends; base && !owners.includes(base); base = this.themes[base]?.extends)\n owners.push(base)\n return owners\n }\n\n ////////////////\n // ## Values\n ////////////////\n\n /** `value`, set at `path`, as CSS text: one string, or one per scheme. */\n private valueText(value: unknown, path: string[]): string | { light: string; dark: string } {\n if (ThemeFile.isPair(value)) return { light: this.text(value.light, path), dark: this.text(value.dark, path) }\n return this.text(value, path)\n }\n\n /** One value as CSS text, each `{a.b}` pointer written as `var(<its token>)`. */\n private text(value: unknown, path: string[]): string {\n if (typeof value === \"number\") return String(value)\n if (typeof value !== \"string\") {\n this.fail(`\\`${path.join(\".\")}\\` is a value: CSS text, a number, or \\`{ \"light\": ..., \"dark\": ... }\\``)\n }\n const rgb = PLAIN_RGB.exec(value)\n if (rgb) this.fail(`\\`${path.join(\".\")}\\` writes \\`${rgb[0]}\\`: write it as hex, \\`${ThemeFile.hexOf(rgb)}\\``)\n return value.replace(POINTER, (_, pointer: string) => `var(${this.tokenAt(pointer, path)})`)\n }\n\n /** The token `pointer` (`surfaces.panel`, `components.menu.radius`, `own.glass-blur`) names, set at `path`. */\n private tokenAt(pointer: string, path: string[]): string {\n const [head, ...rest] = pointer.split(\".\")\n if (head === OWN && rest.length === 1) return `--${rest[0]}`\n if (head === COMPONENTS && rest.length === 2) return `--ui-${rest[0]}-${rest[1]}`\n let node: ThemeLeaf | ThemeTree | undefined = themeTree\n for (const key of pointer.split(\".\")) node = ThemeFile.isGroup(node) ? (node as ThemeTree)[key] : undefined\n if (typeof node === \"string\") return node\n this.fail(\n `\\`${path.join(\".\")}\\` points at \\`{${pointer}}\\`, ` +\n (node ? \"a pair or a group, not one token\" : \"which is no name in the theme tree\")\n )\n }\n\n ////////////////\n // ## Helpers\n ////////////////\n\n /** The hex of a plain `rgb()` colour `PLAIN_RGB` matched: `rgb(0 0 0 / 0.3)` => `#0000004d` (its alpha `round(a × 255)`). */\n static hexOf([, ...channels]: RegExpExecArray): string {\n const [r, g, b, alpha] = channels\n const bytes = [r, g, b].map(Number)\n if (alpha !== undefined) bytes.push(Math.round(Number(alpha) * 255))\n return `#${bytes.map((byte) => byte.toString(16).padStart(2, \"0\")).join(\"\")}`\n }\n\n /** Theme `name`'s data; throws when there's no such theme file. */\n private themeData(name: string): ThemeData {\n const data = this.themes[name]\n if (!data) this.fail(`it extends \\`${name}\\`, but no \\`${name}.theme.json5\\` exists`)\n return data\n }\n\n /** Palette `name`'s data; throws when there's no such palette file. */\n private paletteData(name: string): ThemeData {\n const data = this.palettes[name]\n if (!data) this.fail(`its palette is \\`${name}\\`, but no \\`${PALETTES}/${name}.palette.json5\\` exists`)\n return data\n }\n\n /** Another file of the same set: what this one extends, or its palette. */\n private sibling(name: string, kind: ThemeFileKind, data: ThemeData): ThemeFile {\n return new ThemeFile({ name, kind, data, themes: this.themes, palettes: this.palettes })\n }\n\n /** `value`'s entries, a group of the file at `path`; throws when it isn't one. */\n private entriesOf(value: unknown, path: string[]): Array<[string, unknown]> {\n if (!ThemeFile.isGroup(value)) this.fail(`\\`${path.join(\".\")}\\` is a group: names and their values`)\n return Object.entries(value)\n }\n\n /** What tree group `group` (at `path`) holds, for an error. */\n private holds(group: ThemeTree, path: string[]): string {\n const where = path.length ? `\\`${path.join(\".\")}\\`` : \"the top level\"\n const names = Object.keys(group)\n if (!path.length) names.push(COMPONENTS, OWN)\n return `${where} holds: ${names.join(\", \")}`\n }\n\n /** Throw the `TypeError` for a mistake in this file. */\n private fail(problem: string): never {\n throw new TypeError(`ThemeFile: ${this.fileName}: ${problem}`)\n }\n\n /** Whether `node`, of `themeTree`, is a leaf: a token, or a pair of them. */\n static isLeaf(node: ThemeLeaf | ThemeTree): node is ThemeLeaf {\n return typeof node === \"string\" || ThemeFile.isTokenPair(node)\n }\n\n /** Whether `node` is a `{ light, dark }` pair of tokens. */\n static isTokenPair(node: unknown): node is ThemeTokenPair {\n return ThemeFile.isPair(node)\n }\n\n /** Whether `value` is a `{ light, dark }` pair: exactly those two keys. */\n static isPair(value: unknown): value is ThemeValuePair {\n if (!ThemeFile.isGroup(value)) return false\n const keys = Object.keys(value)\n return keys.length === 2 && \"light\" in value && \"dark\" in value\n }\n\n /** Whether `value` is a plain object, as a group is. */\n static isGroup(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value)\n }\n\n ////////////////\n // ## The schema\n ////////////////\n\n /**\n * `theme.schema.json`'s JSON Schema, from `themeTree`: VS Code completes a theme file's names and flags a wrong one.\n * - `yarn gen:styles` writes it beside the themes; each file names it (`\"$schema\": \"./theme.schema.json\"`).\n */\n static schema(): Record<string, unknown> {\n const value = { $ref: \"#/definitions/value\" }\n const group = (tree: ThemeTree): Record<string, unknown> => ({\n type: \"object\",\n additionalProperties: false,\n properties: Object.fromEntries(\n Object.entries(tree).map(([key, node]) => [key, ThemeFile.isLeaf(node) ? value : group(node)])\n )\n })\n const tree = group(themeTree)\n return {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n title: \"Spell UI theme\",\n description: \"A theme's values in nested groups (spell-ui's themeTree); `yarn gen:styles` writes its sheet.\",\n type: \"object\",\n additionalProperties: false,\n properties: {\n $schema: { type: \"string\" },\n title: { type: \"string\", description: \"its name, for a theme a person names\" },\n extends: { type: \"string\", description: \"the theme it builds on\" },\n palette: { type: \"string\", description: \"the palette whose hues it borrows\" },\n rules: { type: \"array\", items: { type: \"string\" }, description: \"its rules sheets, in themes/rules/\" },\n ...(tree.properties as object),\n components: {\n type: \"object\",\n description: \"a family's own tokens, under its name: menu > radius is --ui-menu-radius\",\n additionalProperties: { type: \"object\", additionalProperties: value }\n },\n own: {\n type: \"object\",\n description: \"the theme's private tokens: glass-blur is --glass-blur\",\n additionalProperties: value\n }\n },\n definitions: {\n value: {\n description: 'CSS text (a \"{group.name}\" points at another value), a number, or one per scheme',\n oneOf: [\n { type: \"string\" },\n { type: \"number\" },\n {\n type: \"object\",\n additionalProperties: false,\n required: [\"light\", \"dark\"],\n properties: { light: { type: [\"string\", \"number\"] }, dark: { type: [\"string\", \"number\"] } }\n }\n ]\n }\n }\n }\n }\n\n ////////////////\n // ## A set of files\n ////////////////\n\n /**\n * Every sheet of a set of theme and palette files: its path from the themes folder (`glass.css`) => its CSS.\n * - throws a `TypeError` on a mistake in any of them\n */\n static sheets({ themes, palettes }: ThemeFileSet): Record<string, string> {\n const files = [\n ...Object.entries(palettes).map(\n ([name, data]) => new ThemeFile({ name, data, kind: \"palette\", themes, palettes })\n ),\n ...Object.entries(themes).map(([name, data]) => new ThemeFile({ name, data, themes, palettes }))\n ]\n return Object.fromEntries(files.map((file) => [file.sheetPath, file.css()]))\n }\n}\n\n/** A theme file's kind: its file's middle word (`glass.theme.json5`, `apple.palette.json5`). */\nexport type ThemeFileKind = \"theme\" | \"palette\"\n\n/** What `new ThemeFile()` takes. */\nexport type ThemeFileProps = {\n /** its name: `glass` */\n name: string\n /** the file, parsed */\n data: ThemeData\n /** a theme (the default) or a palette */\n kind?: ThemeFileKind\n /** every theme file by name: what it may extend */\n themes?: Readonly<Record<string, ThemeData>>\n /** every palette file by name: what it may borrow */\n palettes?: Readonly<Record<string, ThemeData>>\n}\n\n/** A set of theme files, parsed, by name: `ThemeFile.sheets()`. */\nexport type ThemeFileSet = {\n /** `<name>.theme.json5` files */\n themes: Readonly<Record<string, ThemeData>>\n /** `palettes/<name>.palette.json5` files */\n palettes: Readonly<Record<string, ThemeData>>\n}\n\n/** The open group of a family's own tokens. */\nconst COMPONENTS = \"components\"\n\n/** The open group of the theme's private tokens. */\nconst OWN = \"own\"\n\n/** The palettes' folder, in the themes folder. */\nconst PALETTES = \"palettes\"\n\n/** The rules sheets' folder, in the themes folder. */\nconst RULES = \"rules\"\n\n/** Top-level keys that say what a theme builds on, not values. */\nconst META_KEYS = new Set([\"$schema\", \"title\", \"extends\", \"palette\", \"rules\"])\n\n/** A plain `rgb()` colour, `rgb(r g b)` or `rgb(r g b / a)`: refused, as hex is the theme files' one spelling. */\nconst PLAIN_RGB = /rgba?\\(\\s*(\\d+)\\s+(\\d+)\\s+(\\d+)\\s*(?:\\/\\s*([\\d.]+)\\s*)?\\)/\n\n/** A pointer at another leaf: `{surfaces.panel}`. */\nconst POINTER = /\\{([\\w.-]+)\\}/g\n\n/** Every token of `themeTree` => its place (`--ui-bar-background` => `surfaces.bar`): so `components` can't set one. */\nconst TREE_PLACES: ReadonlyMap<string, string> = (() => {\n const places = new Map<string, string>()\n const walk = (tree: ThemeTree, path: string[]) => {\n for (const [key, node] of Object.entries(tree)) {\n if (typeof node === \"string\") places.set(node, [...path, key].join(\".\"))\n else if (ThemeFile.isTokenPair(node))\n for (const token of [node.light, node.dark]) places.set(token, [...path, key].join(\".\"))\n else walk(node, [...path, key])\n }\n }\n walk(themeTree, [])\n return places\n})()\n","// Import directly: the `spell/ui/styles` barrel carries every foundation sheet as text, which the editor never needs\nimport { ThemeFile } from \"spell/ui/styles/ThemeFile\"\nimport { themeTree } from \"spell/ui/styles/styles.en\"\nimport type { ThemeData, ThemeLeaf, ThemeTree } from \"spell/ui/styles/styles.types\"\n\n/****************\n * ### `ThemeTokens`\n * Every token a theme sets, and every theme's value for each, from Spell's theme files:\n * what `<ui-theme-editor>`'s token tree shows, and how it writes a token back into a theme file.\n * - The files: `<name>.theme.json5` and `palettes/<name>.palette.json5` in Spell UI's themes folder, read as they\n * are built into the bundle (a lazy chunk each), parsed with json5, and worked out by `ThemeFile`, as\n * `yarn gen:styles` does: so a value here is the value the theme's sheet sets.\n * - The tokens, in groups, the theme itself first (Owen: \"the themes own\" should be at the top):\n * - `own`: the theme's private tokens (its glass), those of the theme shown and what it builds on\n * - then every top group of the theme tree, in its order (`themeTree`: typography ... motion)\n * - `components`: every family's own tokens that ANY theme sets (the bars, page tabs, section titles ...)\n * - and, for each previewed page with tokens of its own (`ownPrefix`), those it declares: `page.<id>`\n * - A pair leaf of the tree (`text > ink`, a hue's `base`) is two tokens, each at its half: `text.ink.light`.\n * - Data, no DOM: `ThemeDraft` turns a theme being made into its file and sheets.\n ****************/\nexport class ThemeTokens {\n /** Every theme file, parsed, by name. */\n readonly themes: Readonly<Record<string, ThemeData>>\n\n /** Every palette file, parsed, by name. */\n readonly palettes: Readonly<Record<string, ThemeData>>\n\n constructor({ themes, palettes }: { themes: Record<string, ThemeData>; palettes: Record<string, ThemeData> }) {\n this.themes = themes\n this.palettes = palettes\n }\n\n /**\n * The theme files as the bundle holds them, parsed.\n * - Rejects with json5's `SyntaxError` on a file that won't read.\n */\n static async load(): Promise<ThemeTokens> {\n const { default: JSON5 } = await import(\"json5\")\n const parse = async (loaders: Record<string, () => Promise<string>>) =>\n Object.fromEntries(\n await Promise.all(\n Object.entries(loaders).map(async ([path, load]) => [nameOf(path), JSON5.parse(await load()) as ThemeData])\n )\n ) as Record<string, ThemeData>\n const [themes, palettes] = await Promise.all([parse(THEME_FILES), parse(PALETTE_FILES)])\n return new ThemeTokens({ themes, palettes })\n }\n\n /** `value` with every `light-dark(a, b)` in it replaced by its half for `scheme`: what that scheme shows. */\n static forScheme(value: string, scheme: \"light\" | \"dark\"): string {\n return pickScheme(value, scheme)\n }\n\n /** The themes with a file, A-Z. */\n get names(): string[] {\n return Object.keys(this.themes).sort()\n }\n\n ////////////////\n // ## The groups\n ////////////////\n\n /**\n * The groups shown for `theme`, in order, each its tokens.\n * - `pageTokens`: each previewed page's own tokens, as it declared them, by its id; its group is `page.<id>`.\n * - A group with no token is left out.\n */\n groupsFor(theme: string, pageTokens: Readonly<Record<string, readonly string[]>> = {}): TokenGroup[] {\n const groups: TokenGroup[] = [\n // first: what makes each theme itself (Owen: \"the themes own\" should be at the top)\n { place: OWN, tokens: this.ownTokens(theme) },\n ...Object.entries(themeTree as ThemeTree).map(([place, node]) => ({ place, tokens: tokensUnder(node) })),\n { place: COMPONENTS, tokens: this.componentTokens() },\n ...Object.entries(pageTokens).map(([id, tokens]) => ({\n place: `${PAGE}.${id}`,\n tokens: [...tokens].sort(byName)\n }))\n ]\n return groups.filter((group) => group.tokens.length)\n }\n\n /**\n * `token`'s path in its group `place`, by its place's parts: the tree the editor shows (`TokenTree`).\n * - `--ui-menu-segmented-background` in `components`: `[\"menu\", \"segmented\", \"background\"]`\n * - `--glass-blur` in `own`: `[\"glass\", \"blur\"]`; `--ui-ink-on-light` in `text`: `[\"ink\", \"light\"]`\n * - a page's own (`page.editor`, `--spell-`): `--spell-accent-x` => `[\"accent\", \"x\"]`\n */\n pathOf(token: string, place: string): string[] {\n if (place.startsWith(`${PAGE}.`)) return token.replace(/^--[a-z]+-/, \"\").split(\"-\")\n const where = this.placeOf(token)\n const rest = where.startsWith(`${place}.`) ? where.slice(place.length + 1) : where.slice(where.lastIndexOf(\".\") + 1)\n return rest.split(/[.-]/).filter(Boolean)\n }\n\n /**\n * Where `token` lives in a theme file: `surfaces.panel`, `text.ink.light` (a pair's half),\n * `components.menu.radius`, `own.glass-blur`.\n * - A token no theme file places (a page's own) is `own.<its name>`: `ThemeDraft` keeps those apart first.\n */\n placeOf(token: string): string {\n const place = TREE_PLACES.get(token)\n if (place) return place\n const family = this.families.find((name) => token.startsWith(`--ui-${name}-`))\n if (family) return `${COMPONENTS}.${family}.${token.slice(`--ui-${family}-`.length)}`\n return `${OWN}.${token.slice(2)}`\n }\n\n /** Whether `token` is one half of a pair leaf of the tree: its place ends in `.light` / `.dark`. */\n static halfOf(place: string): \"light\" | \"dark\" | undefined {\n const half = place.slice(place.lastIndexOf(\".\") + 1)\n return PAIR_PLACES.has(place.slice(0, place.lastIndexOf(\".\"))) && (half === \"light\" || half === \"dark\")\n ? half\n : undefined\n }\n\n ////////////////\n // ## Values\n ////////////////\n\n /**\n * `theme`'s value for `token`, as its sheet sets it (what it extends and its palette included):\n * CSS text, a pointer written as `var()`; `undefined`: the theme leaves it to the base theme (`classic`).\n * - throws a `TypeError` on a mistake in the theme's files (`ThemeFile`)\n */\n valueIn(theme: string, token: string): string | undefined {\n return this.valuesOf(theme).get(token)\n }\n\n /**\n * CSS text as a theme file writes it: each `var(--x)` of a token in a theme file's groups as its pointer,\n * `{surfaces.panel}`; any other `var()` as it is (a pair's half has no pointer: `{text.ink}` is both).\n */\n asWritten(text: string): string {\n return text.replace(PLAIN_VAR, (whole, token: string) => {\n const place = TREE_PLACES.get(token)\n if (place) return ThemeTokens.halfOf(place) ? whole : `{${place}}`\n const family = this.families.find((name) => token.startsWith(`--ui-${name}-`))\n return family ? `{${this.placeOf(token)}}` : whole\n })\n }\n\n /**\n * `theme`'s value at `place` as its OWN file writes it: a value, a `{group.name}` pointer, or a `{ light, dark }`\n * pair; `undefined` when its file doesn't set it (what it extends may).\n */\n writtenIn(theme: string, place: string): unknown {\n let node: unknown = this.themes[theme]\n for (const key of place.split(\".\")) node = ThemeFile.isGroup(node) ? node[key] : undefined\n return node\n }\n\n ////////////////\n // ## Where a value comes from\n ////////////////\n\n /**\n * Where `theme`'s value of `token` comes from, and what it is, as the files write it (Owen's marks, epic `debut`\n * P24):\n * - `setBy`: the file that sets it, nearest first: the theme's own, its palette, then what it extends, in turn;\n * `undefined`: none does, Spell UI's own foundation gives it\n * - `written`: the value as that file writes it, for `scheme` (a pair's half)\n * - `kind`: `pointer` (`{group.name}` alone: the same value as that token), `derived` (a formula over others:\n * `color-mix()`, `oklch(from ...)`, `calc()`), or `plain`\n * - `pointer`: a pointer's place (`own.matrix-page`)\n */\n sourceOf(theme: string, token: string, scheme: \"light\" | \"dark\"): TokenSource {\n const place = this.placeOf(token)\n const half = ThemeTokens.halfOf(place)\n for (const file of this.chainOf(theme)) {\n let written: unknown = this.writtenAt(file.data, half ? place.slice(0, place.lastIndexOf(\".\")) : place)\n if (written === undefined) continue\n if (ThemeFile.isPair(written)) written = written[half ?? scheme]\n if (typeof written !== \"string\" && typeof written !== \"number\") continue\n const text = String(written)\n const pointer = POINTER_ALONE.exec(text)?.[1]\n const kind: TokenSource[\"kind\"] = pointer ? \"pointer\" : FORMULA.test(text) ? \"derived\" : \"plain\"\n return { setBy: file.name, written: text, kind, pointer }\n }\n return { kind: \"plain\" }\n }\n\n /** The token at a theme file's place (`surfaces.panel` => `--ui-surface`, `own.x` => `--x`); `undefined`: none. */\n tokenAt(place: string): string | undefined {\n const [head, ...rest] = place.split(\".\")\n if (head === OWN && rest.length === 1) return `--${rest[0]}`\n if (head === COMPONENTS && rest.length === 2) return `--ui-${rest[0]}-${rest[1]}`\n return TOKENS_AT.get(place)\n }\n\n /** The files that give `theme` its values, nearest first: itself, its palette, then what it extends, in turn. */\n private chainOf(theme: string): { name: string; data: ThemeData }[] {\n const chain: { name: string; data: ThemeData }[] = []\n for (let name: string | undefined = theme, hops = 0; name && hops <= MAX_DEPTH; hops++) {\n const data: ThemeData | undefined = this.themes[name]\n if (!data) break\n chain.push({ name, data })\n if (data.palette && this.palettes[data.palette])\n chain.push({ name: data.palette, data: this.palettes[data.palette]! })\n name = data.extends\n }\n return chain\n }\n\n /** What `data` writes at `place`; `undefined` when it doesn't. */\n private writtenAt(data: ThemeData, place: string): unknown {\n let node: unknown = data\n for (const key of place.split(\".\")) node = ThemeFile.isGroup(node) ? node[key] : undefined\n return node\n }\n\n /** Every token `theme` ends with, and its value: worked out once per theme. */\n private valuesOf(theme: string): Map<string, string> {\n let values = this.cache.get(theme)\n if (!values) {\n const data = this.themes[theme]\n values = data\n ? new ThemeFile({ name: theme, data, themes: this.themes, palettes: this.palettes }).values()\n : new Map<string, string>()\n this.cache.set(theme, values)\n }\n return values\n }\n\n /** Each theme's values, as worked out. */\n private readonly cache = new Map<string, Map<string, string>>()\n\n ////////////////\n // ## Tokens of a group\n ////////////////\n\n /** Every family any theme sets tokens of, longest name first (so `docs-nav` wins over `docs`). */\n private get families(): string[] {\n this.familyNames ??= [\n ...new Set(Object.values(this.themes).flatMap((data) => Object.keys(data.components ?? {})))\n ].sort((a, b) => b.length - a.length)\n return this.familyNames\n }\n\n /** `families`, once worked out. */\n private familyNames: string[] | undefined\n\n /** Every token any theme sets for any family, in name order (`byName()`). */\n private componentTokens(): string[] {\n const names = new Set<string>()\n for (const data of Object.values(this.themes)) {\n for (const [family, tokens] of Object.entries(data.components ?? {})) {\n for (const name of Object.keys(tokens ?? {})) names.add(`--ui-${family}-${name}`)\n }\n }\n return [...names].sort(byName)\n }\n\n /** The private tokens of `theme` and the themes it builds on, in name order (`byName()`). */\n private ownTokens(theme: string): string[] {\n const names = new Set<string>()\n for (let name: string | undefined = theme, hops = 0; name && hops <= MAX_DEPTH; hops++) {\n const data: ThemeData | undefined = this.themes[name]\n for (const own of Object.keys(data?.own ?? {})) names.add(`--${own}`)\n name = data?.extends\n }\n return [...names].sort(byName)\n }\n}\n\n/** Where a theme's value of a token comes from (`ThemeTokens.sourceOf()`). */\nexport type TokenSource = {\n /** the file that sets it: a theme's or a palette's name; `undefined`: Spell UI's own foundation */\n setBy?: string\n /** the value as that file writes it */\n written?: string\n /** a pointer (`{group.name}` alone), a formula over other tokens, or a plain value */\n kind: \"plain\" | \"pointer\" | \"derived\"\n /** a pointer's place: `own.matrix-page` */\n pointer?: string\n}\n\n/** A group of tokens the editor shows: its place in a theme file (`surfaces`, `own`, `page.editor`), its tokens. */\nexport type TokenGroup = {\n place: string\n tokens: readonly string[]\n}\n\n////////////////\n// ## Helpers\n////////////////\n\n/** A theme file's name from its path: `../../styles/themes/glass.theme.json5` => `glass`. */\nfunction nameOf(path: string): string {\n return path.replace(/^.*\\//, \"\").replace(/\\.(?:theme|palette)\\.json5$/, \"\")\n}\n\n/** Every token under `node` of the theme tree, in the tree's order: a pair leaf's two, light first. */\nfunction tokensUnder(node: ThemeLeaf | ThemeTree): string[] {\n if (typeof node === \"string\") return [node]\n if (ThemeFile.isTokenPair(node)) return [node.light, node.dark]\n return Object.values(node).flatMap((child) => tokensUnder(child as ThemeLeaf | ThemeTree))\n}\n\n/** `text` with every `light-dark(a, b)` replaced by its half for `scheme`; nested ones too. */\nfunction pickScheme(text: string, scheme: \"light\" | \"dark\"): string {\n let out = text\n for (let at = out.indexOf(LIGHT_DARK); at >= 0; at = out.indexOf(LIGHT_DARK)) {\n const open = at + LIGHT_DARK.length\n const [light, dark, end] = splitPair(out, open)\n if (end < 0) break\n out = out.slice(0, at) + (scheme === \"light\" ? light : dark).trim() + out.slice(end + 1)\n }\n return out\n}\n\n/**\n * The two arguments of the function call whose `(` is just before `open`, split at its top-level comma,\n * and the index of its `)`; -1 for one that never closes.\n */\nfunction splitPair(text: string, open: number): [string, string, number] {\n let depth = 0\n let comma = -1\n for (let index = open; index < text.length; index++) {\n const char = text[index]\n if (char === \"(\") depth++\n else if (char === \")\") {\n if (depth === 0) {\n if (comma < 0) return [text.slice(open, index), text.slice(open, index), index]\n return [text.slice(open, comma), text.slice(comma + 1, index), index]\n }\n depth--\n } else if (char === \",\" && depth === 0 && comma < 0) comma = index\n }\n return [\"\", \"\", -1]\n}\n\n/**\n * Names in order, their numbers as numbers (Owen: \"these should sort as numbers\"):\n * `--spell-brand-25` before `--spell-brand-100`.\n */\nfunction byName(a: string, b: string): number {\n return a.localeCompare(b, \"en\", { numeric: true })\n}\n\n/** The tree's pair leaves, by place (`text.ink`). */\nconst PAIR_PLACES = new Set<string>()\n\n/** Token => its place in the theme tree: `--ui-surface` => `surfaces.panel`; a pair's half, `text.ink.light`. */\nconst TREE_PLACES: ReadonlyMap<string, string> = (() => {\n const places = new Map<string, string>()\n const walk = (tree: ThemeTree, path: string[]) => {\n for (const [key, node] of Object.entries(tree)) {\n const place = [...path, key].join(\".\")\n if (typeof node === \"string\") places.set(node, place)\n else if (ThemeFile.isTokenPair(node)) {\n PAIR_PLACES.add(place)\n places.set(node.light, `${place}.light`)\n places.set(node.dark, `${place}.dark`)\n } else walk(node as ThemeTree, [...path, key])\n }\n }\n walk(themeTree as ThemeTree, [])\n return places\n})()\n\n/** Place => its token: `surfaces.panel` => `--ui-surface` (a pair's half too: `text.ink.light`). */\nconst TOKENS_AT: ReadonlyMap<string, string> = new Map([...TREE_PLACES].map(([token, place]) => [place, token]))\n\n/** A value that's a pointer alone: `{own.matrix-page}`; its place. */\nconst POINTER_ALONE = /^\\{([\\w.-]+)\\}$/\n\n/** A value worked out from other tokens. */\nconst FORMULA = /\\{[\\w.-]+\\}|var\\(|color-mix\\(|\\bfrom\\b|calc\\(/\n\n/** The open group of a family's own tokens. */\nconst COMPONENTS = \"components\"\n\n/** The open group of a theme's private tokens. */\nconst OWN = \"own\"\n\n/** The groups of a previewed page's own tokens: `page.<id>`. */\nconst PAGE = \"page\"\n\n/** How deep `extends` is followed. */\nconst MAX_DEPTH = 12\n\n/** A `var()` with no fallback: its token. */\nconst PLAIN_VAR = /var\\(\\s*(--[\\w-]+)\\s*\\)/g\n\n/** `light-dark(`, as it starts. */\nconst LIGHT_DARK = \"light-dark(\"\n\n/**\n * Every theme file and palette file, as text, each loaded the first time it's read.\n * - NOTE: `import.meta.glob()` MUST stay a literal call: Vite rewrites it at build time.\n * - Relative, as `Themes`' glob is: a glob takes no package name.\n */\nconst THEME_FILES: Record<string, () => Promise<string>> = import.meta.glob<string>(\n \"../../styles/themes/*.theme.json5\",\n { query: \"?raw\", import: \"default\" }\n)\nconst PALETTE_FILES: Record<string, () => Promise<string>> = import.meta.glob<string>(\n \"../../styles/themes/palettes/*.palette.json5\",\n { query: \"?raw\", import: \"default\" }\n)\n","// Import directly: the `spell/ui/styles` barrel carries every foundation sheet as text, which the editor never needs\nimport { ThemeFile } from \"spell/ui/styles/ThemeFile\"\nimport type { ThemeData } from \"spell/ui/styles/styles.types\"\nimport { E, UIT } from \"spell/ui/core\"\nimport { ThemeTokens } from \"./ThemeTokens\"\nimport {\n GLASS_THEMES,\n WALLPAPER_THEME,\n type ThemeEditorText,\n type TokenEdit,\n type TokenEdits\n} from \"./UIThemeEditor.types\"\n\n/****************\n * ### `ThemeDraft`\n * The theme `<ui-theme-editor>` is making, as a THEME FILE (epic `debut` P24):\n * its base as `extends`, the values its Basics set, then the tokens set by hand, which win.\n * - ONE writer: `ThemeFile` writes every sheet from it (Owen: \"ThemeFile is the ONLY writer\"), so the preview,\n * the copied file and the theme kept in the browser are one text, and say the same thing.\n * - `css`: the sheet worn over the base on a page (`ThemeFile.overlayCss()`), what `SavedTheme` keeps\n * - `frameCss`: the same, `!important`, for the framed pages, whose own sheets set tokens outside any layer;\n * and a rule of their own for a page's own tokens (`--spell-*`), which no theme file holds\n * - `changes`: the theme file's JSON5, colours in hex, to copy\n * - The Basics as theme-file values (`basicsData`): a role pointed at a hue, the primary's worked-out shades, fonts,\n * the text size, corners, depth, the glass of a glass theme.\n * - Needs the theme files (`ThemeTokens`) to place a token and to check the file: without them, no sheet (`\"\"`).\n * - NEVER throws: a value `ThemeFile` refuses (a mistyped token) warns, and the sheet is `\"\"`.\n * - Pure: data in, text out.\n ****************/\nexport class ThemeDraft {\n /** The choices it's made from. */\n readonly choices: UIT.ThemeChoices\n\n /** The theme files, once loaded: where each token goes. */\n private readonly files: ThemeTokens | undefined\n\n /** Its comments' words: the editor's texts, in its language. */\n private readonly text: ThemeEditorText\n\n /** The start of each previewed page's own tokens (`--spell-`): those are no theme file's. */\n private readonly ownPrefixes: readonly string[]\n\n constructor({ choices, files, text, ownPrefixes = [] }: ThemeDraftProps) {\n this.choices = choices\n this.files = files\n this.text = text\n this.ownPrefixes = ownPrefixes\n }\n\n ////////////////\n // ## The file\n ////////////////\n\n /** Its name as a file's: lower case, runs of anything else a dash; `theme` when nothing's left. */\n get slug(): string {\n return (\n this.choices.name\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, \"-\")\n .replace(/^-|-$/g, \"\") || \"theme\"\n )\n }\n\n /** Its file: `<slug>.theme.json5`. */\n get fileName(): string {\n return `${this.slug}.theme.json5`\n }\n\n /** Something is changed: a Basic, or a token set by hand. */\n get hasChanges(): boolean {\n return Object.keys(this.basics).length > 0 || Object.keys(this.choices.tokens ?? {}).length > 0\n }\n\n /** The tokens set by hand. */\n get tokens(): TokenEdits {\n return this.choices.tokens ?? {}\n }\n\n /**\n * The theme file's data: `extends` its base, the Basics' values, then the tokens set by hand (a page's own left\n * out: `pageTokens`).\n * - A pair leaf with one half set by hand keeps the other as the base writes it.\n * - `undefined` until the theme files load.\n */\n get data(): ThemeData | undefined {\n const files = this.files\n if (!files) return undefined\n const tree: Record<string, unknown> = { title: this.choices.name, extends: this.choices.base }\n mergeInto(tree, structuredClone(this.basics))\n for (const [token, edit] of Object.entries(this.tokens)) {\n if (this.isPageToken(token)) continue\n const place = files.placeOf(token)\n const half = ThemeTokens.halfOf(place)\n if (half) {\n const pairPlace = place.slice(0, place.lastIndexOf(\".\"))\n const pair = (getAt(tree, pairPlace) as Record<string, string> | undefined) ?? this.basePair(pairPlace)\n setAt(tree, pairPlace, { ...pair, [half]: ThemeDraft.hex(valueOf(edit, half)) })\n } else setAt(tree, place, this.fileValue(token, place, edit))\n }\n return tree as ThemeData\n }\n\n /**\n * Whether the theme being made sets `token`: by hand, or through a Basic (its `basicsData`).\n * - `false` until the theme files load: they say where a token goes.\n */\n sets(token: string): boolean {\n if (this.tokens[token]) return true\n const files = this.files\n if (!files) return false\n const place = files.placeOf(token)\n const at = ThemeTokens.halfOf(place) ? place.slice(0, place.lastIndexOf(\".\")) : place\n return getAt(this.basics, at) !== undefined\n }\n\n /** `basicsData`, worked out once: a draft never changes. */\n private get basics(): Record<string, unknown> {\n this.basicsCache ??= this.basicsData\n return this.basicsCache\n }\n\n /** `basics`, once worked out. */\n private basicsCache: Record<string, unknown> | undefined\n\n ////////////////\n // ## The sheets\n ////////////////\n\n /** The sheet worn over the base on a page: its first comment names it and its base. `\"\"`: not yet. */\n get css(): string {\n return this.sheet({ important: false })\n }\n\n /** The sheet laid over a framed page: `css`'s values `!important`, then the pages' own tokens. `\"\"`: none. */\n get frameCss(): string {\n if (!this.hasChanges) return \"\"\n return [this.sheet({ important: true, comments: false }), this.pageCss].filter(Boolean).join(\"\\n\")\n }\n\n /** The theme file's text, to copy: JSON5, colours in hex; the pages' own tokens after it, as their rule. */\n get changes(): string {\n const data = this.data\n if (!data) return \"\"\n const head = [\n `// ${this.fileName}: ${this.text(\"fileMade\", { base: this.choices.base })}`,\n `// ${this.text(\"fileMerge\", { base: this.choices.base })}`\n ]\n const page = this.pageCss\n return `${head.join(\"\\n\")}\\n${JSON.stringify(data, undefined, 2)}\\n${page ? `\\n${page}` : \"\"}`\n }\n\n /** `ThemeFile`'s sheet of the draft, `important` or not; `\"\"` while the files load, or when the file is refused. */\n private sheet({ important, comments = true }: { important: boolean; comments?: boolean }): string {\n const data = this.data\n if (!data) return \"\"\n const { base } = this.choices\n try {\n return new ThemeFile({\n name: this.slug,\n data,\n themes: this.files!.themes,\n palettes: this.files!.palettes\n }).overlayCss({\n important,\n comments: comments ? [`${this.fileName} -- ${this.text(\"sheetMade\")}`, this.text(\"sheetBase\", { base })] : []\n })\n } catch (error) {\n E.Warnings.warn(\"<ui-theme-editor>\", \"the theme file was refused\", error)\n return \"\"\n }\n }\n\n /** The pages' own tokens set by hand, as a rule on `:root`, `!important`; `\"\"`: none. */\n private get pageCss(): string {\n const lines = Object.entries(this.tokens)\n .filter(([token]) => this.isPageToken(token))\n .map(([token, edit]) => {\n const value = \"both\" in edit ? edit.both : `light-dark(${valueOf(edit, \"light\")}, ${valueOf(edit, \"dark\")})`\n return ` ${token}: ${ThemeDraft.hex(value)} !important;`\n })\n return lines.length ? `/* ${this.text(\"pageOwnSheet\")} */\\n:root {\\n${lines.join(\"\\n\")}\\n}\\n` : \"\"\n }\n\n /** Whether `token` is a previewed page's own (`--spell-*`), which no theme file holds. */\n private isPageToken(token: string): boolean {\n return this.ownPrefixes.some((prefix) => token.startsWith(prefix))\n }\n\n /**\n * `token`'s edit as a value for its place in the file: one value, or a `{ light, dark }` pair whose untouched half\n * is the base's own (as its file writes it, else as what it extends sets it).\n */\n private fileValue(token: string, place: string, edit: TokenEdit): unknown {\n if (\"both\" in edit) return ThemeDraft.hex(edit.both)\n const files = this.files!\n const written = files.writtenIn(this.choices.base, place)\n const half = (scheme: \"light\" | \"dark\") => {\n const tuned = edit[scheme]\n if (tuned !== undefined) return ThemeDraft.hex(tuned)\n if (ThemeFile.isPair(written)) return written[scheme]\n if (written !== undefined) return written\n const inherited = files.valueIn(this.choices.base, token)\n if (inherited !== undefined) return files.asWritten(ThemeTokens.forScheme(inherited, scheme))\n return ThemeDraft.hex((edit.light ?? edit.dark)!)\n }\n return { light: half(\"light\"), dark: half(\"dark\") }\n }\n\n /** The base's own `{ light, dark }` at pair place `place` (`text.ink`), each half's value as it ends up. */\n private basePair(place: string): { light: string; dark: string } {\n const files = this.files!\n const written = files.writtenIn(this.choices.base, place)\n if (ThemeFile.isPair(written)) return { light: String(written.light), dark: String(written.dark) }\n const tokenOf = (half: \"light\" | \"dark\") =>\n [...Object.keys(this.tokens), ...pairTokensOf(place)].find((token) => files.placeOf(token) === `${place}.${half}`)\n const value = (half: \"light\" | \"dark\") => {\n const token = tokenOf(half)\n return (token && files.valueIn(this.choices.base, token)) || \"initial\"\n }\n return { light: value(\"light\"), dark: value(\"dark\") }\n }\n\n ////////////////\n // ## The Basics\n ////////////////\n\n /** The values the Basics set, in the theme file's groups: `{}` when none is chosen. */\n get basicsData(): Record<string, unknown> {\n const { primary, secondary, background, headingFont, bodyFont, textSize, corners, depth, glass, base } =\n this.choices\n const data: Record<string, unknown> = {}\n if (primary) {\n setAt(data, \"brand.primary\", {\n ...hueRole(primary),\n text: PRIMARY_TEXT,\n header: PRIMARY_HEADER,\n background: PRIMARY_BACKGROUND\n })\n setAt(data, \"surfaces.highlight\", \"color-mix(in oklab, {brand.primary.color} 16%, transparent)\")\n setAt(data, \"brand.focus.color\", \"{brand.primary.color}\")\n // links in it too (epic `debut` P23: a tint's primary is \"buttons, links, selection, focus\"), as `colors.css`\n // works them out, over a theme that set its own\n setAt(data, \"brand.link\", { color: \"{brand.primary.text}\", hover: LINK_HOVER })\n setAt(data, \"brand.focus.border\", PRIMARY_FOCUS_BORDER)\n setAt(data, \"components.menu.active-background\", \"color-mix(in oklab, {brand.primary.color} 14%, transparent)\")\n setAt(data, \"components.menu.active-color\", \"{brand.primary.text}\")\n }\n if (secondary) setAt(data, \"brand.secondary\", hueRole(secondary))\n if (background) {\n setAt(data, \"surfaces.page\", {\n light: `oklch(from var(--ui-${background}-on-light) 0.965 min(c, 0.025) h)`,\n dark: `oklch(from var(--ui-${background}-on-dark) 0.17 min(c, 0.03) h)`\n })\n // the page behind everything a soft gradient of the hue (epic `debut` P23); a wallpaper theme its washes\n if (base === WALLPAPER_THEME) setAt(data, \"own.glass-wallpaper\", ThemeDraft.wallpaper(background))\n else setAt(data, \"surfaces.wallpaper\", ThemeDraft.gradient(background))\n }\n if (bodyFont) setAt(data, \"typography.family.body\", FONT_STACKS[bodyFont])\n if (headingFont) setAt(data, \"typography.family.heading\", FONT_STACKS[headingFont])\n if (textSize) setAt(data, \"typography.size\", `${textSize}px`)\n if (corners) {\n const [s, m, l, modal, label] = RADII[corners]\n setAt(data, \"radii\", { default: \"{radii.m}\", s, m, l })\n setAt(data, \"components.label.radius\", label)\n setAt(data, \"components.modal.radius\", modal)\n for (const [family, size] of RADIUS_FAMILIES) setAt(data, `components.${family}.radius`, `{radii.${size}}`)\n }\n if (depth) {\n const [raised, floating] = SHADOWS[depth]\n setAt(data, \"shadows.raised\", raised)\n setAt(data, \"shadows.floating\", floating)\n setAt(data, \"shadows.floating-hover\", \"{shadows.floating}\")\n setAt(data, \"shadows.overlay\", \"{shadows.floating}\")\n setAt(data, \"components.card.shadow\", \"{shadows.raised}\")\n setAt(data, \"components.card.hover-shadow\", \"{shadows.floating}\")\n setAt(data, \"components.segment.shadow\", \"{shadows.raised}\")\n }\n if (glass && GLASS_THEMES.includes(base)) {\n const [surface, strong, blur] = GLASS[glass]\n setAt(data, \"own.glass-surface\", surface)\n setAt(data, \"own.glass-surface-strong\", strong)\n setAt(data, \"own.glass-blur\", blur)\n }\n return data\n }\n\n ////////////////\n // ## Helpers\n ////////////////\n\n /**\n * The corners choice a theme's own radii are (`s`, `m`, `l` as its files write them); `undefined`: none.\n * - So the editor marks the theme's own as one of its choices (Owen: \"Theme's own\" says what the value is).\n */\n static cornersOf(radii: { s?: string; m?: string; l?: string }): UIT.ThemeCorner | undefined {\n return UIT.ThemeCorners.find((corner) => {\n const [s, m, l] = RADII[corner]\n return same(radii.s, s) && same(radii.m, m) && same(radii.l, l)\n })\n }\n\n /** The depth choice a theme's own shadows are (raised, floating); `undefined`: none. */\n static depthOf(raised?: string, floating?: string): UIT.ThemeDepth | undefined {\n return UIT.ThemeDepths.find((depth) => same(raised, SHADOWS[depth][0]) && same(floating, SHADOWS[depth][1]))\n }\n\n /** The glass choice a theme's own glass is (its surface, strong surface, blur); `undefined`: none. */\n static glassOf(surface?: string, strong?: string, blur?: string): UIT.ThemeGlass | undefined {\n return UIT.ThemeGlasses.find((glass) => {\n const [a, b, c] = GLASS[glass]\n return same(surface, a) && same(strong, b) && same(blur, c)\n })\n }\n\n /** Font `font`'s stack, for `font-family`: the editor shows each font in itself. */\n static fontStack(font: UIT.ThemeFont): string {\n return FONT_STACKS[font].replace(POINTER, (_, place: string) => `var(--ui-font-family-${place.split(\".\").at(-1)})`)\n }\n\n /**\n * `value` with every plain `rgb()` / `rgba()` written as hex (`ThemeFile.hexOf()`):\n * `rgb(255 255 255 / 0.5)` => `#ffffff80`; anything else as it is.\n */\n static hex(value: string): string {\n return value.replace(RGB, (...match) => {\n const [whole, red, green, blue, alpha] = match as string[]\n const fraction = alpha === undefined ? undefined : alpha.endsWith(\"%\") ? parseFloat(alpha) / 100 : Number(alpha)\n const exec = Object.assign([whole, red, green, blue, fraction === undefined ? undefined : String(fraction)], {\n index: 0,\n input: whole\n }) as unknown as RegExpExecArray\n const hex = ThemeFile.hexOf(exec)\n return fraction === 1 ? hex.slice(0, 7) : hex\n })\n }\n\n /**\n * The page in `hue`, as a soft gradient, light into deep: a pale wash of the hue at the top, a deeper one at the\n * foot; in dark, deep into a little lighter (epic `debut` P23, Owen: \"how hard would it be to do the tint as a\n * gradient?\").\n * - `GRADIENT_ENDS`: each end's lightness and most chroma; the page's text is checked at both\n * (`colors.contrast.test.ts`).\n */\n static gradient(hue: UIT.ThemeHue): string {\n const end = ({ light, dark }: (typeof GRADIENT_ENDS)[number]) =>\n `light-dark(oklch(from var(--ui-${hue}-on-light) ${light[0]} min(c, ${light[1]}) h), ` +\n `oklch(from var(--ui-${hue}-on-dark) ${dark[0]} min(c, ${dark[1]}) h))`\n return `linear-gradient(${GRADIENT_ENDS.map(end).join(\", \")})`\n }\n\n /**\n * A TINT of theme `base` in `hue`, as the sheet worn over it (epic `debut` P23): the Basics' Primary and Background,\n * both `hue`, as `ThemeFile` writes a theme worn over its base (`overlayCss()`).\n * - The theme menu's tints (`ThemePreference`); a tint is a theme-editor sheet with two choices made.\n * - NEVER throws: a value `ThemeFile` refuses warns, and the sheet is `\"\"`.\n */\n static tintCss(base: string, hue: UIT.ThemeHue): string {\n const draft = new ThemeDraft({\n choices: { name: base, base, primary: hue, background: hue },\n files: undefined,\n text: () => \"\"\n })\n try {\n // a wallpaper theme's own token (`glass-wallpaper`) is the theme it builds on's: `ThemeFile` asks\n const themes = { [WALLPAPER_THEME]: { extends: GLASS_THEMES[0] } }\n return new ThemeFile({ name: base, data: { ...draft.basicsData, extends: base }, themes }).overlayCss()\n } catch (error) {\n E.Warnings.warn(\"ThemeDraft\", `can't tint ${base} ${hue}`, error)\n return \"\"\n }\n }\n\n /** A glass theme's wallpaper in `hue`: three soft washes, the hue and its two neighbours on the wheel. */\n private static wallpaper(hue: UIT.ThemeHue): string {\n const wash = (turn: number, light: number, dark: number) =>\n `light-dark(oklch(from var(--ui-${hue}-on-light) ${light} min(c, 0.09) calc(h + ${turn})), ` +\n `oklch(from var(--ui-${hue}-on-dark) ${dark} min(c, 0.11) calc(h + ${turn})))`\n return (\n `radial-gradient(at 12% 18%, ${wash(0, 0.84, 0.36)} 0, transparent 46%), ` +\n `radial-gradient(at 88% 10%, ${wash(40, 0.9, 0.33)} 0, transparent 42%), ` +\n `radial-gradient(at 72% 92%, ${wash(-40, 0.88, 0.32)} 0, transparent 46%)`\n )\n }\n}\n\n/** What `new ThemeDraft()` takes. */\nexport type ThemeDraftProps = {\n /** the choices it's made from */\n choices: UIT.ThemeChoices\n /** the theme files, once loaded */\n files: ThemeTokens | undefined\n /** its comments' words: the editor's texts */\n text: ThemeEditorText\n /** the start of each previewed page's own tokens (`--spell-`) */\n ownPrefixes?: readonly string[]\n}\n\n/** Whether CSS text `a` is `b`, but for spaces and case. */\nfunction same(a: string | undefined, b: string): boolean {\n return a !== undefined && a.replace(/\\s+/g, \"\").toLowerCase() === b.replace(/\\s+/g, \"\").toLowerCase()\n}\n\n/** `edit`'s value for `scheme`: its own, else the other half's. */\nfunction valueOf(edit: TokenEdit, scheme: \"light\" | \"dark\"): string {\n return \"both\" in edit ? edit.both : (edit[scheme] ?? edit[scheme === \"light\" ? \"dark\" : \"light\"])!\n}\n\n/** The page gradient's two ends, top then foot: each scheme's OKLCH lightness and most chroma (`gradient()`). */\nconst GRADIENT_ENDS = [\n { light: [0.975, 0.02], dark: [0.15, 0.025] },\n { light: [0.935, 0.045], dark: [0.225, 0.05] }\n] as const\n\n/** The tokens that point a role at hue `hue`: the colour, and the text on it, in both schemes. */\nfunction hueRole(hue: UIT.ThemeHue): Record<string, string> {\n return {\n color: `{hues.${hue}.color}`,\n inverted: `{hues.${hue}.inverted}`,\n on: `{hues.${hue}.on}`,\n \"inverted-on\": `{hues.${hue}.inverted-on}`\n }\n}\n\n/** The two tokens of the tree's pair leaf at `place` (`text.ink`): `--ui-ink-on-light`, `--ui-ink-on-dark`. */\nfunction pairTokensOf(place: string): string[] {\n const leaf = place.split(\".\").at(-1)!\n const role = leaf === \"ink\" ? \"ink\" : place.split(\".\").at(-2)!\n return [`--ui-${role}-on-light`, `--ui-${role}-on-dark`]\n}\n\n/** The value at dotted `path` in `tree`; `undefined` when there's none. */\nfunction getAt(tree: Record<string, unknown>, path: string): unknown {\n let node: unknown = tree\n for (const key of path.split(\".\")) node = ThemeFile.isGroup(node) ? node[key] : undefined\n return node\n}\n\n/** Set `value` at dotted `path` in `tree`, making groups on the way. */\nfunction setAt(tree: Record<string, unknown>, path: string, value: unknown): void {\n const keys = path.split(\".\")\n let node = tree\n for (const key of keys.slice(0, -1)) {\n if (!ThemeFile.isGroup(node[key])) node[key] = {}\n node = node[key] as Record<string, unknown>\n }\n node[keys.at(-1)!] = value\n}\n\n/** Merge `from` into `into`, group by group: a value in `from` replaces what's there. */\nfunction mergeInto(into: Record<string, unknown>, from: Record<string, unknown>): void {\n for (const [key, value] of Object.entries(from)) {\n if (ThemeFile.isGroup(value) && !ThemeFile.isPair(value) && ThemeFile.isGroup(into[key])) {\n mergeInto(into[key] as Record<string, unknown>, value)\n } else into[key] = ThemeFile.isGroup(value) && !ThemeFile.isPair(value) ? structuredClone(value) : value\n }\n}\n\n/** The primary colour's text: `colors.css`' recipe (a theme may have replaced it with a fixed colour). */\nconst PRIMARY_TEXT = {\n light: \"oklch(from {brand.primary.color} min(l, 0.5) c h)\",\n dark: \"oklch(from {brand.primary.color} max(l, 0.78) c h)\"\n}\n\n/** A link's hover: `colors.css`' recipe, from the link's colour. */\nconst LINK_HOVER = {\n light: \"oklch(from {brand.link.color} calc(l - 0.1) calc(c * 1.2) h)\",\n dark: \"oklch(from {brand.link.color} calc(l + 0.08) c h)\"\n}\n\n/** The primary colour's headers: `colors.css`' recipe. */\nconst PRIMARY_HEADER = {\n light: \"oklch(from {brand.primary.color} min(l, 0.45) c h)\",\n dark: \"oklch(from {brand.primary.color} max(l, 0.85) c h)\"\n}\n\n/** The primary colour's tinted background: `colors.css`' recipe. */\nconst PRIMARY_BACKGROUND = {\n light: \"oklch(from {brand.primary.color} 0.96 calc(c * 0.25) h)\",\n dark: \"oklch(from {brand.primary.color} 0.28 calc(c * 0.35) h)\"\n}\n\n/** A focused field's border: `colors.css`' recipe. */\nconst PRIMARY_FOCUS_BORDER = {\n light: \"oklch(from {brand.primary.color} calc(l + 0.18) calc(c * 0.5) h)\",\n dark: \"oklch(from {brand.primary.color} calc(l - 0.1) calc(c * 0.7) h)\"\n}\n\n/**\n * Each font's stack: the platform's own faces first, nothing to download.\n * - Rounded and Palatino are Spell UI's own stacks, the tokens every theme may read (epic `debut` P20, J77)\n */\nconst FONT_STACKS: Readonly<Record<UIT.ThemeFont, string>> = {\n system: '-apple-system, BlinkMacSystemFont, system-ui, \"Segoe UI\", \"Noto Sans\", Ubuntu, Cantarell, sans-serif',\n rounded: \"{typography.family.rounded}\",\n serif: \"{typography.family.serif}\",\n georgia: 'Georgia, \"DejaVu Serif\", \"Noto Serif\", serif',\n humanist: 'Optima, Candara, \"Noto Sans\", \"Segoe UI\", sans-serif',\n verdana: 'Verdana, \"DejaVu Sans\", \"Bitstream Vera Sans\", sans-serif',\n mono: 'ui-monospace, \"SF Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace'\n}\n\n/** Each corner choice's radii: `[small (controls), medium (fields, menus), large (cards), modal, label]`. */\nconst RADII: Readonly<Record<UIT.ThemeCorner, readonly [string, string, string, string, string]>> = {\n sharp: [\"3px\", \"4px\", \"6px\", \"8px\", \"3px\"],\n soft: [\"5px\", \"7px\", \"10px\", \"12px\", \"4px\"],\n round: [\"8px\", \"10px\", \"14px\", \"18px\", \"6px\"],\n pill: [\"9999px\", \"14px\", \"20px\", \"24px\", \"9999px\"]\n}\n\n/** The families whose radius follows the corners, each on the radius step it takes. */\nconst RADIUS_FAMILIES: readonly (readonly [string, \"s\" | \"m\" | \"l\"])[] = [\n [\"button\", \"s\"],\n [\"input\", \"m\"],\n [\"dropdown\", \"m\"],\n [\"menu\", \"m\"],\n [\"message\", \"m\"],\n [\"popup\", \"m\"],\n [\"card\", \"l\"],\n [\"segment\", \"l\"],\n [\"section\", \"l\"],\n [\"panel\", \"l\"],\n [\"toast\", \"l\"]\n]\n\n/** Each depth's shadows: `[raised (cards), floating (menus, popups)]`, both schemes in each. */\nconst SHADOWS: Readonly<Record<UIT.ThemeDepth, readonly [string, string]>> = {\n flat: [\n \"0 0 0 1px light-dark(#0000000f, #ffffff14)\",\n \"0 0 0 1px light-dark(#00000014, #ffffff1a), 0 4px 12px light-dark(#00000014, #00000059)\"\n ],\n soft: [\n \"0 1px 2px light-dark(#281e500f, #00000040), 0 8px 30px light-dark(#281e501f, #00000059)\",\n \"0 2px 4px light-dark(#281e500f, #0000004d), 0 16px 40px light-dark(#281e5029, #00000073)\"\n ],\n lifted: [\n \"0 2px 4px light-dark(#281e5014, #0000004d), 0 14px 40px light-dark(#281e5033, #00000080)\",\n \"0 4px 8px light-dark(#281e501a, #00000059), 0 28px 64px light-dark(#281e5042, #00000099)\"\n ]\n}\n\n/** Each glass choice: `[surface, strong surface, what's behind it]`; `frosted` is the glass themes' own. */\nconst GLASS: Readonly<Record<UIT.ThemeGlass, readonly [string, string, string]>> = {\n clear: [\"light-dark(#ffffff40, #26243047)\", \"light-dark(#ffffff66, #1e1c2666)\", \"blur(18px) saturate(1.8)\"],\n frosted: [\"light-dark(#ffffff73, #26243073)\", \"light-dark(#ffffff9e, #1e1c2694)\", \"blur(28px) saturate(1.7)\"],\n solid: [\"light-dark(#ffffffe6, #262430eb)\", \"light-dark(#fffffff7, #1e1c26f7)\", \"none\"]\n}\n\n/** A pointer at another leaf: `{typography.family.rounded}`. */\nconst POINTER = /\\{([\\w.-]+)\\}/g\n\n/** A plain `rgb()` / `rgba()`, its channels whole numbers: space or comma separated, the alpha a number or a %. */\nconst RGB = /rgba?\\(\\s*(\\d+)\\s*[\\s,]\\s*(\\d+)\\s*[\\s,]\\s*(\\d+)\\s*(?:[/,]\\s*([\\d.]+%?)\\s*)?\\)/g\n"],"mappings":";;;;;AAmCA,IAAaY,IAAb,MAAa,UAAU;CAErB;CAGA;CAGA;CAGA;CAGA;CAEA,YAAY,EAAE,SAAM,SAAM,UAAO,SAAS,YAAS,CAAC,GAAG,cAAW,CAAC,KAAq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CACA,MAAM,CACJ,2FACA,0FACF;CACA,QAAQ,CACN,4FACA,0FACF;AACF,GAGMK,IAA6E;CACjF,OAAO;EAAC;EAAoC;EAAoC;CAA0B;CAC1G,SAAS;EAAC;EAAoC;EAAoC;CAA0B;CAC5G,OAAO;EAAC;EAAoC;EAAoC;CAAM;AACxF,GAGMK,IAAU,kBAGVC,IAAM"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
+
//#region src/components/ui-tree-diagram/TreeMeasure.ts
|
|
3
|
+
var e = class TreeMeasure {
|
|
4
|
+
static context;
|
|
5
|
+
static sizes(e, t, n) {
|
|
6
|
+
if (!TreeMeasure.canvas) return;
|
|
7
|
+
let r = {
|
|
8
|
+
root: TreeMeasure.fontOf(t.rootLabel),
|
|
9
|
+
label: TreeMeasure.fontOf(t.label),
|
|
10
|
+
detail: TreeMeasure.fontOf(t.detail),
|
|
11
|
+
edgeLabel: TreeMeasure.fontOf(t.edgeLabel)
|
|
12
|
+
}, width = (e, t) => TreeMeasure.widthOf(e, t) ?? 0, i = /* @__PURE__ */ new Map(), visit = (e, t) => {
|
|
13
|
+
let a = n(e);
|
|
14
|
+
i.set(e, {
|
|
15
|
+
labelWidth: width(e.label, t),
|
|
16
|
+
...e.detail && { detailWidth: width(e.detail, r.detail) },
|
|
17
|
+
...e.edgeLabel && { edgeLabelWidth: width(e.edgeLabel, r.edgeLabel) },
|
|
18
|
+
...a && {
|
|
19
|
+
contentWidth: a.width,
|
|
20
|
+
contentHeight: a.height
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
for (let t of e.children ?? []) visit(t, r.label);
|
|
24
|
+
};
|
|
25
|
+
return visit(e, r.root), i;
|
|
26
|
+
}
|
|
27
|
+
static widthOf(e, t) {
|
|
28
|
+
let n = TreeMeasure.canvas;
|
|
29
|
+
if (n) return n.font = t, n.measureText(e).width;
|
|
30
|
+
}
|
|
31
|
+
static get canvas() {
|
|
32
|
+
if (typeof document < "u") return TreeMeasure.context ??= document.createElement("canvas").getContext("2d");
|
|
33
|
+
}
|
|
34
|
+
static fontOf(e) {
|
|
35
|
+
let { fontStyle: t, fontWeight: n, fontSize: r, fontFamily: i } = getComputedStyle(e);
|
|
36
|
+
return `${t} ${n} ${r} ${i}`;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { e as t };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=TreeMeasure-BVJeGb1L.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeMeasure-BVJeGb1L.js","names":["TreeMeasure","fonts","samples","text","font","sizes","content","contentOf","node","child","tree","context","element","fontStyle","fontWeight","fontSize","fontFamily"],"sources":["../src/components/ui-tree-diagram/TreeMeasure.ts"],"sourcesContent":["import type { TreeDiagramNode, TreeDiagramNodeSize } from \"./UITreeDiagram.types\"\n\n/****************\n * ### `TreeMeasure`\n * The measuring pass before a tree's layout: each label's, detail's and edge label's real width, in its real font.\n * - So `TreeLayout` needs no monospace font, and stays pure: it gets these numbers.\n * - By canvas, from each text's computed font: that works inside a closed section or a hidden tab, where the browser\n * has laid nothing out and an SVG text measures 0.\n * - STATIC, plain DOM, no Solid. Browser only: a static server render estimates (`TreeLayout`).\n * - Widths are in the font's own size, which IS user units: each text's `font-size` is an attribute in user units.\n * - `widthOf()` and `fontOf()` measure any text, for another drawing that sizes boxes to their words (`<ui-diagram>`).\n ****************/\nexport class TreeMeasure {\n /** One `<canvas>` for the page: it only ever measures. */\n private static context: CanvasRenderingContext2D | null | undefined\n\n /**\n * Every node's sizes under `tree`, folded ones included; `undefined` without a canvas (nothing is measured).\n * - `contentOf`: the size of what a node holds besides its text, in user units.\n */\n static sizes(\n tree: TreeDiagramNode,\n samples: TreeMeasureSamples,\n contentOf: (node: TreeDiagramNode) => { width: number; height: number } | undefined\n ): Map<TreeDiagramNode, TreeDiagramNodeSize> | undefined {\n if (!TreeMeasure.canvas) return undefined\n const fonts = {\n root: TreeMeasure.fontOf(samples.rootLabel),\n label: TreeMeasure.fontOf(samples.label),\n detail: TreeMeasure.fontOf(samples.detail),\n edgeLabel: TreeMeasure.fontOf(samples.edgeLabel)\n }\n const width = (text: string, font: string) => TreeMeasure.widthOf(text, font) ?? 0\n const sizes = new Map<TreeDiagramNode, TreeDiagramNodeSize>()\n const visit = (node: TreeDiagramNode, font: string) => {\n const content = contentOf(node)\n sizes.set(node, {\n labelWidth: width(node.label, font),\n ...(node.detail && { detailWidth: width(node.detail, fonts.detail) }),\n ...(node.edgeLabel && { edgeLabelWidth: width(node.edgeLabel, fonts.edgeLabel) }),\n ...(content && { contentWidth: content.width, contentHeight: content.height })\n })\n for (const child of node.children ?? []) visit(child, fonts.label)\n }\n visit(tree, fonts.root)\n return sizes\n }\n\n /** `text`'s width in `font` (a canvas's `font`, `\"600 13px Inter\"`); `undefined` without a canvas. */\n static widthOf(text: string, font: string): number | undefined {\n const context = TreeMeasure.canvas\n if (!context) return undefined\n context.font = font\n return context.measureText(text).width\n }\n\n /** The page's one measuring canvas; `undefined` where there's none (a server). */\n private static get canvas(): CanvasRenderingContext2D | null | undefined {\n if (typeof document === \"undefined\") return undefined\n return (TreeMeasure.context ??= document.createElement(\"canvas\").getContext(\"2d\"))\n }\n\n /** `element`'s computed font, as a canvas takes it. */\n static fontOf(element: Element): string {\n const { fontStyle, fontWeight, fontSize, fontFamily } = getComputedStyle(element)\n return `${fontStyle} ${fontWeight} ${fontSize} ${fontFamily}`\n }\n}\n\n/** A text of each kind, in the diagram's own sheet: what a real one's font comes to. */\nexport type TreeMeasureSamples = {\n rootLabel: Element\n label: Element\n detail: Element\n edgeLabel: Element\n}\n"],"mappings":";;AAYA,IAAaA,IAAb,MAAa,YAAY;CAEvB,OAAe;CAMf,OAAO,MACL,GACA,GACA,GACuD;EACvD,IAAI,CAAC,YAAY,QAAQ;EACzB,IAAMC,IAAQ;GACZ,MAAM,YAAY,OAAOC,EA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align:baseline;display:inline-flex}:host(:state(fluid)){display:flex}:host(:state(ellipsis)){max-width:100%}:host(:focus-visible){outline:none}.ui.button,.ui.buttons,.or{--_ui-button-padding-block:var(--ui-button-padding-block,var(--ui-space-s));--_ui-button-padding-inline:var(--ui-button-padding-inline,var(--ui-space-l));--_ui-button-margin-inline:var(--ui-button-margin-inline,var(--ui-space-2xs));--_ui-button-radius:var(--ui-button-radius,var(--ui-radius));--_ui-button-font-family:var(--ui-button-font-family,var(--ui-font-family));--_ui-button-font-size:var(--ui-button-font-size,var(--ui-font-size));--_ui-button-font-weight:var(--ui-button-font-weight,var(--ui-font-weight-semibold));--_ui-button-line-height:var(--ui-button-line-height,1);--_ui-button-poster-min:var(--ui-button-poster-min,2em);--_ui-button-poster-grow:var(--ui-button-poster-grow,6vw);--_ui-button-poster-max:var(--ui-button-poster-max,3.2em);--_ui-button-background:var(--ui-button-background,oklch(from var(--ui-ink) l c h / .08));--_ui-button-background-hover:var(--ui-button-background-hover,oklch(from var(--ui-ink) l c h / .13));--_ui-button-background-down:var(--ui-button-background-down,oklch(from var(--ui-ink) l c h / .18));--_ui-button-background-active:var(--ui-button-background-active,oklch(from var(--ui-ink) l c h / .16));--_ui-button-color:var(--ui-button-color,var(--ui-text-muted));--_ui-button-color-hover:var(--ui-button-color-hover,var(--ui-text-hovered));--_ui-button-color-down:var(--ui-button-color-down,var(--ui-text-pressed));--_ui-button-color-active:var(--ui-button-color-active,var(--ui-text-selected));--_ui-button-duration:var(--ui-button-duration,var(--ui-duration-fast));--_ui-button-icon-opacity:var(--ui-button-icon-opacity,.8);--_ui-button-icon-spacing:var(--ui-button-icon-spacing,var(--ui-space-xs));--_ui-button-basic-border-width:var(--ui-button-basic-border-width,var(--ui-border-width));--_ui-button-basic-background-hover:var(--ui-button-basic-background-hover,var(--ui-surface));--_ui-button-basic-background-down:var(--ui-button-basic-background-down,var(--ui-surface-muted));--_ui-button-basic-background-active:var(--ui-button-basic-background-active,oklch(from var(--ui-ink) l c h / .05));--_ui-button-inverted-border-width:var(--ui-button-inverted-border-width,2px);--_ui-button-tertiary-padding:var(--ui-button-tertiary-padding,var(--ui-space-xs));--_ui-button-tertiary-line:var(--ui-button-tertiary-line,.2em);--_ui-button-labeled-icon-width:var(--ui-button-labeled-icon-width,calc(1em + 2 * var(--_ui-button-padding-block)));--_ui-button-labeled-icon-background:var(--ui-button-labeled-icon-background,oklch(from var(--ui-shadow-ink) l c h / .06));--_ui-button-raised-lip:var(--ui-button-raised-lip,.25em);--_ui-button-raised-shade:var(--ui-button-raised-shade,.18);--_ui-button-compact-ratio:var(--ui-button-compact-ratio,.75);--_ui-button-circular-min-width:var(--ui-button-circular-min-width,2.5em);--_ui-button-attached-padding-inline:var(--ui-button-attached-padding-inline,var(--ui-space-s));--_ui-button-floated-margin:var(--ui-button-floated-margin,var(--ui-space-2xs));--_ui-button-spaced-margin:var(--ui-button-spaced-margin,var(--ui-space-m));--_ui-button-toggle-background:var(--ui-button-toggle-background,var(--ui-positive));--_ui-button-toggle-background-hover:var(--ui-button-toggle-background-hover,var(--ui-positive-hover));--_ui-button-toggle-color:var(--ui-button-toggle-color,var(--ui-positive-on));--_ui-button-disabled-opacity:var(--ui-button-disabled-opacity,var(--ui-disabled-opacity));--_ui-button-animation-duration:var(--ui-button-animation-duration,var(--ui-duration-slow));--_ui-button-loader-size:var(--ui-button-loader-size,1.25em);--_ui-button-loader-width:var(--ui-button-loader-width,.2em);--_ui-button-loader-speed:var(--ui-button-loader-speed,.6s);--_ui-button-or-gap:var(--ui-button-or-gap,0px);--_ui-button-or-size:var(--ui-button-or-size,calc(1em + var(--_ui-button-padding-block)));--_ui-button-or-background:var(--ui-button-or-background,var(--ui-surface));--_ui-button-or-color:var(--ui-button-or-color,var(--ui-text-light))}.ui.button{box-sizing:border-box;flex:var(--_ui-buttons-flex,0 1 auto);min-width:var(--_button-min-width,auto);min-height:1em;margin:var(--_ui-buttons-margin,var(--_button-margin,0 var(--_ui-button-margin-inline) 0 0));padding-block:max(0px, max(var(--_button-pad-block,var(--_ui-button-padding-block)), (var(--ui-control-height,0px) * var(--ui-scale,1) - 1lh) / 2) * var(--_button-density,1) - var(--_buttons-trim,0px));overflow:var(--_button-overflow,visible);background-color:var(--_button-bg,var(--ui-color,var(--_buttons-background,var(--_ui-button-background))));color:var(--_button-fg,var(--ui-color-on,var(--_ui-button-color)));box-shadow:var(--_button-edge,0 0 #0000), var(--_ui-buttons-divider,0 0 #0000);font-family:var(--_ui-button-font-family);font-size:calc(var(--_ui-button-font-size) * var(--ui-scale,1));font-style:normal;font-weight:var(--_ui-font-weight,var(--_button-weight,var(--_ui-button-font-weight)));line-height:var(--_ui-button-line-height);text-align:center;text-shadow:var(--_ui-font-shadow,none);text-transform:var(--_ui-font-case,none);white-space:nowrap;vertical-align:baseline;cursor:var(--ui-control-cursor);-webkit-user-select:none;user-select:none;appearance:none;-webkit-tap-highlight-color:transparent;transition-property:opacity,background-color,color,box-shadow;transition-duration:var(--_ui-button-duration);transition-timing-function:var(--ui-ease);background-image:none;border:none;border-start-start-radius:calc(var(--_buttons-outer-radius,var(--_button-radius,var(--_ui-button-radius))) * var(--_ui-buttons-ss,1) + var(--_buttons-joint-radius,0px) * (1 - var(--_ui-buttons-ss,1)));border-start-end-radius:calc(var(--_buttons-outer-radius,var(--_button-radius,var(--_ui-button-radius))) * var(--_ui-buttons-se,1) + var(--_buttons-joint-radius,0px) * (1 - var(--_ui-buttons-se,1)));border-end-end-radius:calc(var(--_buttons-outer-radius,var(--_button-radius,var(--_ui-button-radius))) * var(--_ui-buttons-ee,1) + var(--_buttons-joint-radius,0px) * (1 - var(--_ui-buttons-ee,1)));border-end-start-radius:calc(var(--_buttons-outer-radius,var(--_button-radius,var(--_ui-button-radius))) * var(--_ui-buttons-es,1) + var(--_buttons-joint-radius,0px) * (1 - var(--_ui-buttons-es,1)));padding-inline-start:calc(var(--_button-pad-inline,var(--_ui-button-padding-inline)) * var(--_button-density,1) + var(--_button-pad-start,0em));padding-inline-end:calc(var(--_button-pad-inline,var(--_ui-button-padding-inline)) * var(--_button-density,1) + var(--_button-pad-end,0em));text-decoration:none;display:inline-block;position:relative}.ui.basic:is(.button,.buttons){--_button-bg:transparent;--_button-bg-hover:var(--_ui-button-basic-background-hover);--_button-bg-down:var(--_ui-button-basic-background-down);--_button-bg-active:var(--_ui-button-basic-background-active);--_button-fg:var(--ui-color-text,var(--_ui-button-color));--_button-fg-hover:var(--ui-color-text,var(--_ui-button-color-hover));--_button-fg-down:var(--ui-color-text,var(--_ui-button-color-down));--_button-fg-active:var(--ui-color-text,var(--_ui-button-color-active));--_button-weight:var(--ui-font-weight-normal)}.ui.basic.button{--_button-edge:inset 0 0 0 var(--_ui-button-basic-border-width) var(--ui-color-border,var(--ui-border-color));--_button-edge-hover:inset 0 0 0 var(--_ui-button-basic-border-width) var(--ui-color-hover,var(--ui-border-color-selected));--_button-edge-down:inset 0 0 0 var(--_ui-button-basic-border-width) var(--ui-color-down,var(--ui-border-color-selected-strong));--_button-edge-active:inset 0 0 0 var(--_ui-button-basic-border-width) var(--ui-color-active,var(--ui-border-color-selected))}.ui.tertiary:is(.button,.buttons){--_button-bg:transparent;--_button-bg-hover:transparent;--_button-bg-down:transparent;--_button-bg-active:transparent;--_button-fg:var(--ui-color-text,var(--ui-text-color));--_button-fg-hover:var(--ui-color-text,var(--ui-text-hovered));--_button-fg-down:var(--ui-color-text,var(--ui-text-pressed));--_button-fg-active:var(--ui-color-text,var(--ui-text-selected));--_button-edge-hover:inset 0 calc(var(--_ui-button-tertiary-line) * -1) 0 var(--ui-color,color-mix(in oklab, currentColor 40%, transparent));--_button-edge-active:inset 0 calc(var(--_ui-button-tertiary-line) * -1) 0 var(--ui-color-active,currentColor);--_button-radius:0px;--_button-pad-block:var(--_ui-button-tertiary-padding);--_button-pad-inline:var(--_ui-button-tertiary-padding);--_button-margin:calc(var(--_ui-button-padding-block) - var(--_ui-button-tertiary-padding)) var(--_ui-button-margin-inline) calc(var(--_ui-button-padding-block) - var(--_ui-button-tertiary-padding)) 0}.ui.inverted:is(.button,.buttons){--_button-inverted:var(--ui-color-inverted,var(--ui-ink-on-dark));--_button-bg:transparent;--_button-bg-hover:var(--_button-inverted);--_button-bg-down:oklch(from var(--_button-inverted) calc(l - .08) c h);--_button-bg-active:oklch(from var(--_button-inverted) calc(l - .04) c h);--_button-fg:var(--ui-color-inverted,var(--ui-text-inverted-color));--_button-fg-hover:var(--ui-color-inverted-on,var(--ui-ink-on-light));--_button-edge:inset 0 0 0 var(--_ui-button-inverted-border-width) var(--_button-inverted)}.ui.basic.inverted:is(.button,.buttons){--_button-bg-hover:transparent;--_button-bg-down:oklch(from var(--ui-ink-on-dark) l c h / .08);--_button-bg-active:oklch(from var(--ui-ink-on-dark) l c h / .08);--_button-fg:var(--ui-text-inverted-color);--_button-fg-hover:var(--ui-color-inverted,var(--ui-text-inverted-hovered));--_button-edge:inset 0 0 0 var(--_ui-button-inverted-border-width) oklch(from var(--ui-ink-on-dark) l c h / .5);--_button-edge-hover:inset 0 0 0 var(--_ui-button-inverted-border-width) var(--_button-inverted);--_button-edge-down:inset 0 0 0 var(--_ui-button-inverted-border-width) oklch(from var(--_button-inverted) l c h / .9);--_button-edge-active:inset 0 0 0 var(--_ui-button-inverted-border-width) oklch(from var(--_button-inverted) l c h / .7)}.ui.icon:is(.button,.buttons){--_button-pad-inline:var(--_ui-button-padding-block);--_button-icon-margin:0;--_button-icon-opacity:.9;--_button-icon-align:top}.ui.icon.button:not(.labeled){--_button-pad-inline:var(--_buttons-icon-pad-inline,0px);--_button-min-width:var(--_buttons-icon-min-width,calc(var(--_ui-button-line-height) * 1em + 2 * var(--_button-pad-block,var(--_ui-button-padding-block)) * var(--_button-density,1)))}.ui.labeled.icon:is(.button,.buttons){--_button-pad-inline:var(--_ui-button-padding-inline);--_button-pad-start:var(--_ui-button-labeled-icon-width);--_button-pad-end:0em;--_button-overflow:hidden;--_button-icon-position:absolute;--_button-icon-start:0;--_button-icon-end:auto;--_button-icon-width:var(--_ui-button-labeled-icon-width);--_button-icon-height:100%;--_button-icon-pad:calc(var(--_ui-button-padding-block) * var(--_button-density,1));--_button-icon-bg:var(--_ui-button-labeled-icon-background)}.ui[class*=right\\ labeled].icon:is(.button,.buttons){--_button-pad-start:0em;--_button-pad-end:var(--_ui-button-labeled-icon-width);--_button-icon-start:auto;--_button-icon-end:0}.ui.labeled.button:not(.icon){cursor:default;flex-direction:row;padding:0;display:inline-flex}.ui.labeled.button>.button{margin:0}.ui.labeled.button:not([class*=left\\ labeled])>.button{border-start-end-radius:0;border-end-end-radius:0}.ui[class*=left\\ labeled].button>.button{border-start-start-radius:0;border-end-start-radius:0}.ui.animated.button{--_button-pad-inline:var(--_ui-button-padding-inline);vertical-align:middle;z-index:1;padding-inline-end:0;overflow:hidden}.ui.animated.button>.content{will-change:transform, opacity;display:block}.ui.animated.button>.visible.content{margin-inline-end:var(--_ui-button-padding-inline);position:relative}.ui.animated.button>.hidden.content{width:100%;position:absolute}.ui.animated.button>:is(.visible,.hidden).content{transition:right var(--_ui-button-animation-duration) var(--ui-ease) 0s}.ui.animated.button>.visible.content{left:auto;right:0}.ui.animated.button>.hidden.content{margin-top:-.5em;top:50%;left:auto;right:-100%}.ui.vertical.animated.button>:is(.visible,.hidden).content{transition:top var(--_ui-button-animation-duration) var(--ui-ease), transform var(--_ui-button-animation-duration) var(--ui-ease)}.ui.vertical.animated.button>.visible.content{right:auto;transform:translateY(0)}.ui.vertical.animated.button>.hidden.content{top:-50%;left:0;right:auto}.ui.fade.animated.button>:is(.visible,.hidden).content{transition:opacity var(--_ui-button-animation-duration) var(--ui-ease), transform var(--_ui-button-animation-duration) var(--ui-ease)}.ui.fade.animated.button>.visible.content{opacity:1;left:auto;right:auto;transform:scale(1)}.ui.fade.animated.button>.hidden.content{opacity:0;left:0;right:auto;transform:scale(1.5)}.ui.buttons{--_ui-button-group-padding:var(--ui-button-group-padding,var(--ui-space-3xs));--_buttons-radius:var(--_button-radius,var(--_ui-button-radius));--_buttons-edge-width:0px;--_buttons-inner-radius:max(0px, var(--_buttons-radius) - var(--_buttons-edge-width) - var(--_ui-button-group-padding));--_ui-button-group-item-radius:var(--ui-button-group-item-radius,var(--_buttons-inner-radius));box-sizing:border-box;margin:0 var(--_ui-button-margin-inline) 0 0;padding:var(--_ui-button-group-padding);border-radius:var(--_buttons-radius);background-color:var(--_button-bg,var(--ui-color,var(--_ui-button-background)));font-size:calc(var(--ui-font-size) * var(--ui-scale,1));vertical-align:baseline;flex-direction:row;display:inline-flex}.ui.buttons>*,.ui.buttons>::slotted(*){--_ui-buttons-margin:0;--_ui-buttons-ss:0;--_ui-buttons-se:0;--_ui-buttons-es:0;--_ui-buttons-ee:0;--_buttons-outer-radius:var(--_buttons-inner-radius);--_buttons-joint-radius:var(--_ui-button-group-item-radius);--_buttons-background:transparent;--_buttons-trim:calc(var(--_ui-button-group-padding) + var(--_buttons-edge-width));--_buttons-icon-pad-inline:var(--_ui-button-padding-block);--_buttons-icon-min-width:auto}.ui.buttons>:not(.or),.ui.buttons>::slotted(:not(:state(or))){--_ui-buttons-flex:1 0 auto;flex:1 0 auto}.ui.buttons>:first-child,.ui.buttons>::slotted(:first-child){--_ui-buttons-ss:1;--_ui-buttons-es:1}.ui.buttons>:last-child,.ui.buttons>::slotted(:last-child){--_ui-buttons-se:1;--_ui-buttons-ee:1}.or{box-sizing:border-box;width:var(--_ui-button-or-gap);height:calc(1em + 2 * max(0px, var(--_ui-button-padding-block) - var(--_buttons-trim,0px)));z-index:3;font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));flex:none;position:relative}.or:before{content:\"or\";width:var(--_ui-button-or-size);height:var(--_ui-button-or-size);margin:calc(var(--_ui-button-or-size) / -2) 0 0 calc(var(--_ui-button-or-size) / -2);border-radius:var(--ui-radius-circle);background-color:var(--_ui-button-or-background);color:var(--_ui-button-or-color);font-style:normal;font-weight:var(--ui-font-weight-bold);line-height:var(--_ui-button-or-size);text-align:center;text-shadow:none;position:absolute;top:50%;left:50%}.or[data-text]:before{content:attr(data-text)}}@layer ui.components.button.content{.ui.button>.icon:not(.button),.ui.button>.content>.icon{position:var(--_button-icon-position,static);box-sizing:border-box;width:var(--_button-icon-width,1.18em);height:var(--_button-icon-height,1em);margin-block:0;margin-inline:var(--_button-icon-margin,calc(var(--_ui-button-icon-spacing) / -2) var(--_ui-button-icon-spacing));padding-block:var(--_button-icon-pad,0);background:var(--_button-icon-bg,none);fill:currentColor;opacity:var(--_button-icon-opacity,var(--_ui-button-icon-opacity));vertical-align:var(--_button-icon-align,-.125em);transition:opacity var(--_ui-button-duration) var(--ui-ease);top:0;bottom:0;display:inline-block;inset-inline-start:var(--_button-icon-start,auto);inset-inline-end:var(--_button-icon-end,auto)}.ui.button:not(.icon)>.right.icon{margin-inline:var(--_ui-button-icon-spacing) calc(var(--_ui-button-icon-spacing) / -2)}.ui.button .icon svg,.ui.button .icon ::slotted(svg),.ui.button .icon ::slotted(ui-icon){fill:currentColor;width:100%;height:100%;display:block}.ui.animated.button>.content>.icon{vertical-align:top;margin:0;position:static}.ui.labeled.button>.label{box-sizing:border-box;padding:0 var(--ui-space-m);border:var(--ui-border-width) solid var(--ui-color-border,var(--ui-border-color));border-radius:0 var(--_ui-button-radius) var(--_ui-button-radius) 0;background-color:var(--ui-surface);color:var(--ui-color-text,var(--ui-text-color));font-size:1em;font-weight:var(--_ui-button-font-weight);align-items:center;margin:0;margin-inline-start:calc(var(--ui-border-width) * -1);line-height:1;text-decoration:none;display:flex}.ui.labeled.button>.label:not(.basic){background-color:var(--ui-color,var(--_ui-button-background));color:var(--ui-color-on,var(--_ui-button-color));border-color:#0000}.ui[class*=left\\ labeled].button>.label{margin-inline:0 calc(var(--ui-border-width) * -1);border-radius:var(--_ui-button-radius) 0 0 var(--_ui-button-radius);order:-1}}@layer ui.components.button.variations{.ui.poster.button{font-size:clamp(var(--_ui-button-poster-min), var(--_ui-button-poster-grow), var(--_ui-button-poster-max))}.ui.compact:is(.button,.buttons){--_button-density:var(--_ui-button-compact-ratio)}.ui.unpadded.button{--_button-density:0}.ui.wrapped.button{white-space:normal}.ui.ellipsis.button{--_button-overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}.ui.circular:is(.button,.buttons){--_button-radius:var(--ui-radius-pill);--_button-min-width:var(--_ui-button-circular-min-width);--_button-icon-width:1em}.ui.raised.button{border-block-end:var(--_ui-button-raised-lip) solid oklch(from var(--ui-color,var(--_ui-button-background)) calc(l - var(--_ui-button-raised-shade)) c h);background-clip:padding-box}.ui.raised.button:active{border-block-start:var(--_ui-button-raised-lip) solid transparent;border-block-end-width:0}.ui.toggle:is(.button,.buttons){--_button-bg-active:var(--_ui-button-toggle-background);--_button-bg-active-hover:var(--_ui-button-toggle-background-hover);--_button-fg-active:var(--_ui-button-toggle-color);--_button-edge-active:0 0 #0000}.ui.fluid.button{width:100%;display:block}.ui.fluid.buttons{width:100%;display:flex}.ui.fluid.buttons>.or,.ui.fluid.buttons>::slotted(:state(or)){width:0}.ui[class*=left\\ floated]:is(.button,.buttons){float:left;margin-left:0;margin-right:var(--_ui-button-floated-margin)}.ui[class*=right\\ floated]:is(.button,.buttons){float:right;margin-left:var(--_ui-button-floated-margin);margin-right:0}.ui.attached.button{--_button-edge:0 0 0 var(--ui-border-width) var(--ui-border-color);--_button-attached-radius:min(var(--_ui-button-radius), var(--ui-radius));border-radius:0;width:100%;margin:0;display:block}.ui.top.attached.button{border-start-start-radius:var(--_button-attached-radius);border-start-end-radius:var(--_button-attached-radius)}.ui.bottom.attached.button{border-end-end-radius:var(--_button-attached-radius);border-end-start-radius:var(--_button-attached-radius)}.ui.left.attached.button{text-align:end;width:auto;border-start-start-radius:var(--_button-attached-radius);border-end-start-radius:var(--_button-attached-radius);padding-inline-end:var(--_ui-button-attached-padding-inline);display:inline-block}.ui.right.attached.button{text-align:start;width:auto;border-start-end-radius:var(--_button-attached-radius);border-end-end-radius:var(--_button-attached-radius);padding-inline-start:var(--_ui-button-attached-padding-inline);display:inline-block}.ui.vertical.buttons{--_buttons-radius:min(var(--_button-radius,var(--_ui-button-radius)), var(--ui-radius));flex-direction:column;display:inline-flex}.ui.vertical.buttons>*,.ui.vertical.buttons>::slotted(*){--_buttons-trim:0px;--_ui-buttons-ss:0;--_ui-buttons-se:0;--_ui-buttons-es:0;--_ui-buttons-ee:0}.ui.vertical.buttons>:first-child,.ui.vertical.buttons>::slotted(:first-child){--_ui-buttons-ss:1;--_ui-buttons-se:1}.ui.vertical.buttons>:last-child,.ui.vertical.buttons>::slotted(:last-child){--_ui-buttons-es:1;--_ui-buttons-ee:1}.ui.vertical.buttons>.button{display:block}.ui.buttons:is(.two,.three,.four,.five,.six,.seven,.eight,.nine,.ten,.eleven,.twelve,.equal.width){width:100%}.ui.buttons:is(.two,.three,.four,.five,.six,.seven,.eight,.nine,.ten,.eleven,.twelve,.equal.width)>:not(.or),.ui.buttons:is(.two,.three,.four,.five,.six,.seven,.eight,.nine,.ten,.eleven,.twelve,.equal.width)>::slotted(:not(:state(or))){--_ui-buttons-flex:1 1 0%;flex:1}.ui.equal.buttons:not(.width,.fluid,.vertical){grid-auto-columns:1fr;grid-auto-flow:column;display:inline-grid}.ui.equal.fluid.buttons:not(.width,.vertical)>:not(.or),.ui.equal.fluid.buttons:not(.width,.vertical)>::slotted(:not(:state(or))){--_ui-buttons-flex:1 1 0%;flex:1}.ui.basic.buttons,.ui.basic.buttons>.row{--_buttons-edge-width:var(--_ui-button-basic-border-width);border:var(--_ui-button-basic-border-width) solid var(--ui-color-border,var(--ui-border-color))}.ui.basic.buttons>:not(:first-child,.row){--_ui-buttons-divider:inset var(--_ui-button-basic-border-width) 0 0 0 var(--ui-color-border,var(--ui-border-color))}.ui.basic.buttons>::slotted(:not(:first-child)){border-inline-start:var(--_ui-button-basic-border-width) solid var(--ui-color-border,var(--ui-border-color))}.ui.basic.vertical.buttons>:not(:first-child,.row){--_ui-buttons-divider:inset 0 var(--_ui-button-basic-border-width) 0 0 var(--ui-color-border,var(--ui-border-color))}.ui.basic.vertical.buttons>::slotted(:not(:first-child)){border-inline-start:none;border-block-start:var(--_ui-button-basic-border-width) solid var(--ui-color-border,var(--ui-border-color))}.ui.inverted.buttons:not(.basic),.ui.inverted.buttons:not(.basic)>.row{--_buttons-edge-width:var(--_ui-button-inverted-border-width);border:var(--_ui-button-inverted-border-width) solid var(--_button-inverted)}.ui.basic.inverted.buttons,.ui.basic.inverted.buttons>.row{border-color:oklch(from var(--ui-ink-on-dark) l c h / .5)}.ui.inverted.buttons>*,.ui.inverted.buttons>::slotted(*){--_button-edge:initial}.ui.tertiary.buttons{--_ui-button-group-padding:0px}.ui:is(.circular,.spaced).buttons{--_ui-button-group-padding:0px;background-color:#0000}.ui.circular.buttons{gap:var(--_ui-button-margin-inline)}.ui.spaced.buttons{gap:var(--_ui-button-spaced-margin)}.ui:is(.circular,.spaced).buttons>*,.ui:is(.circular,.spaced).buttons>::slotted(*){--_ui-buttons-ss:1;--_ui-buttons-se:1;--_ui-buttons-es:1;--_ui-buttons-ee:1;--_buttons-outer-radius:initial;--_buttons-background:initial;--_buttons-trim:0px}.ui.trackless.buttons{--_ui-button-group-padding:0px;background-color:#0000}.ui.trackless.buttons>*,.ui.trackless.buttons>::slotted(*){--_buttons-outer-radius:initial;--_buttons-joint-radius:initial;--_buttons-background:initial;--_buttons-trim:0px}.ui.wrapping.buttons{flex-wrap:wrap}.ui.wrapping.buttons:not(.circular,.spaced){isolation:isolate;row-gap:calc(2 * (var(--_ui-button-group-padding) + var(--_buttons-edge-width)) + var(--ui-space-2xs));position:relative}.ui.basic.wrapping.buttons>::slotted(*){border-inline-start:none}.ui.wrapping.buttons:not(.circular,.spaced):has(>.row){background-color:#0000;border-color:#0000}.ui.buttons>.row{z-index:-1;box-sizing:border-box;border-radius:var(--_buttons-radius);background-color:var(--_button-bg,var(--ui-color,var(--_ui-button-background)));pointer-events:none;position:absolute}.ui:is(.circular,.spaced,.trackless).buttons>.row{display:none}.ui.compact.wrapping.buttons>:not(.or),.ui.compact.wrapping.buttons>::slotted(:not(:state(or))){--_ui-buttons-flex:none;flex:none}.ui.attached.buttons{--_buttons-radius:min(var(--_button-radius,var(--_ui-button-radius)), var(--ui-radius));margin-inline:calc(var(--ui-border-width) * -1);border-radius:0;display:flex;position:relative}.ui[class*=top\\ attached].buttons{border-start-start-radius:var(--_buttons-radius);border-start-end-radius:var(--_buttons-radius)}.ui[class*=bottom\\ attached].buttons{border-end-end-radius:var(--_buttons-radius);border-end-start-radius:var(--_buttons-radius)}.ui[class*=left\\ attached].buttons{border-start-start-radius:var(--_buttons-radius);border-end-start-radius:var(--_buttons-radius)}.ui[class*=right\\ attached].buttons{border-start-end-radius:var(--_buttons-radius);border-end-end-radius:var(--_buttons-radius)}.ui.attached.buttons>*,.ui.attached.buttons>::slotted(*){--_ui-buttons-ss:0;--_ui-buttons-se:0;--_ui-buttons-es:0;--_ui-buttons-ee:0}.ui[class*=top\\ attached].buttons>:first-child,.ui[class*=top\\ attached].buttons>::slotted(:first-child){--_ui-buttons-ss:1}.ui[class*=top\\ attached].buttons>:last-child,.ui[class*=top\\ attached].buttons>::slotted(:last-child){--_ui-buttons-se:1}.ui[class*=bottom\\ attached].buttons{margin-top:calc(var(--ui-border-width) * -1)}.ui[class*=bottom\\ attached].buttons>:first-child,.ui[class*=bottom\\ attached].buttons>::slotted(:first-child){--_ui-buttons-es:1}.ui[class*=bottom\\ attached].buttons>:last-child,.ui[class*=bottom\\ attached].buttons>::slotted(:last-child){--_ui-buttons-ee:1}.ui[class*=left\\ attached].buttons,.ui[class*=right\\ attached].buttons{margin-inline:0;display:inline-flex}.ui[class*=left\\ attached].buttons>:first-child,.ui[class*=left\\ attached].buttons>::slotted(:first-child){--_ui-buttons-se:1}.ui[class*=left\\ attached].buttons>:last-child,.ui[class*=left\\ attached].buttons>::slotted(:last-child){--_ui-buttons-ee:1}.ui[class*=right\\ attached].buttons>:first-child,.ui[class*=right\\ attached].buttons>::slotted(:first-child){--_ui-buttons-ss:1}.ui[class*=right\\ attached].buttons>:last-child,.ui[class*=right\\ attached].buttons>::slotted(:last-child){--_ui-buttons-es:1}@media (width<768px){.ui.stackable.buttons{--_buttons-radius:min(var(--_button-radius,var(--_ui-button-radius)), var(--ui-radius));flex-direction:column}.ui.stackable.buttons>*,.ui.stackable.buttons>::slotted(*){--_ui-buttons-ss:0;--_ui-buttons-se:0;--_ui-buttons-es:0;--_ui-buttons-ee:0}.ui.stackable.buttons>:first-child,.ui.stackable.buttons>::slotted(:first-child){--_ui-buttons-ss:1;--_ui-buttons-se:1}.ui.stackable.buttons>:last-child,.ui.stackable.buttons>::slotted(:last-child){--_ui-buttons-es:1;--_ui-buttons-ee:1}}}@layer ui.components.button.states{.ui.button:hover{background-color:var(--_button-bg-hover,var(--ui-color-hover,var(--_ui-button-background-hover)));color:var(--_button-fg-hover,var(--ui-color-on,var(--_ui-button-color-hover)));box-shadow:var(--_button-edge-hover,var(--_button-edge,0 0 #0000)), var(--_ui-buttons-divider,0 0 #0000)}.ui.button:is(:hover,:focus-visible)>.icon:not(.button){opacity:var(--_button-icon-opacity,.85)}.ui.button:focus-visible{background-color:var(--_button-bg-focus,var(--_button-bg-hover,var(--ui-color-focus,var(--_ui-button-background-hover))));color:var(--_button-fg-hover,var(--ui-color-on,var(--_ui-button-color-hover)));box-shadow:var(--_button-edge-focus,var(--_button-edge-hover,var(--_button-edge,0 0 #0000))), var(--_ui-buttons-divider,0 0 #0000)}.ui.button:active{background-color:var(--_button-bg-down,var(--ui-color-down,var(--_ui-button-background-down)));color:var(--_button-fg-down,var(--_button-fg-hover,var(--ui-color-on,var(--_ui-button-color-down))));box-shadow:var(--_button-edge-down,var(--_button-edge-hover,var(--_button-edge,0 0 #0000))), var(--_ui-buttons-divider,0 0 #0000)}.ui.active.button{background-color:var(--_button-bg-active,var(--ui-color-active,var(--_ui-button-background-active)));color:var(--_button-fg-active,var(--_button-fg-hover,var(--ui-color-on,var(--_ui-button-color-active))));box-shadow:var(--_button-edge-active,var(--_button-edge,0 0 #0000)), var(--_ui-buttons-divider,0 0 #0000)}.ui.active.button:hover{background-color:var(--_button-bg-active-hover,var(--_button-bg-active,var(--ui-color-active,var(--_ui-button-background-active))))}.ui.active.button:active{background-color:var(--_button-bg-active,var(--ui-color-active,var(--_ui-button-background-active)))}.ui.animated.button:is(:hover,:focus-visible)>.visible.content{left:auto;right:200%}.ui.animated.button:is(:hover,:focus-visible)>.hidden.content{left:auto;right:0}.ui.vertical.animated.button:is(:hover,:focus-visible)>.visible.content{right:auto;transform:translateY(200%)}.ui.vertical.animated.button:is(:hover,:focus-visible)>.hidden.content{top:50%;right:auto}.ui.fade.animated.button:is(:hover,:focus-visible)>.visible.content{opacity:0;left:auto;right:auto;transform:scale(.75)}.ui.fade.animated.button:is(:hover,:focus-visible)>.hidden.content{opacity:1;left:0;right:auto;transform:scale(1)}.ui.labeled.button:not(.icon):is(*,:hover,:active,:focus-visible,.active){box-shadow:none;background-color:#0000}.ui.loading.button:is(*,:hover,:active,:focus-visible,.active){color:#0000;cursor:default;transition:all 0s linear, opacity var(--_ui-button-duration) var(--ui-ease)}.ui.loading.button:before,.ui.loading.button:after{content:\"\";box-sizing:border-box;width:var(--_ui-button-loader-size);height:var(--_ui-button-loader-size);margin:calc(var(--_ui-button-loader-size) / -2) 0 0 calc(var(--_ui-button-loader-size) / -2);border:var(--_ui-button-loader-width) solid transparent;border-radius:var(--ui-radius-circle);position:absolute;top:50%;left:50%}.ui.loading.button:before{border-color:color-mix(in oklab, var(--_button-fg,var(--ui-color-on,var(--_ui-button-color))) 20%, transparent)}.ui.loading.button:after{border-top-color:var(--_button-fg,var(--ui-color-on,var(--_ui-button-color)));animation:ui-button-spin var(--_ui-button-loader-speed) linear infinite}.ui.loading.button>:is(.icon,.label){visibility:hidden}.ui.button:is(:disabled,.disabled):is(*,:hover,:active,.active){cursor:default;opacity:var(--_ui-button-disabled-opacity);box-shadow:none;pointer-events:none;background-image:none}}@keyframes ui-button-spin{to{rotate:1turn}}";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as t };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=UIButton-DFEds67r.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UIButton-DFEds67r.js","names":["UIButton_default"],"sources":["../src/components/ui-button/UIButton.css?inline"],"sourcesContent":["/*\n * The style sheet of `<ui-button>`, `<ui-buttons>` and `<ui-or>`: a port of Fomantic's `button.less` +\n * `button.variables`.\n * - ONE sheet for all three elements, as Fomantic keeps groups and `or` in `button.less`.\n * Each adopts it after the foundation.\n * - `<ui-dropdown>` adopts it too, BEFORE `UIDropdown.css`, for its `button` variant.\n * - The shadow markup it expects (class grammar on semantic elements):\n * - `<ui-button>`: `<button class=\"ui ... button\" part=\"button\">` (`<a>` when `href`),\n * holding `<span class=\"icon\" part=\"icon\"><slot name=\"icon\">svg</slot></span>` and the default slot.\n * - NOTE: `<slot>` breaks a CHILD (`>`) selector -- fallback content sits one level DEEPER,\n * as a descendant of `.icon`, not a direct child. So the icon's sizing rule reads `.icon svg` (descendant,\n * reaches the fallback `<svg>` through the `<slot>`) plus `.icon ::slotted(svg)` /\n * `.icon ::slotted(ui-icon)` for a real slotted replacement -- NEVER `.icon > svg`.\n * `.icon` itself carries the token-driven box size (`1.18em` by default, `1em` for `circular`,\n * the labeled-icon block width ...); the inner rule just fills that box (`width/height: 100%`).\n * - `animated`: default slot in `<span class=\"visible content\">`, icon slot in `<span class=\"hidden content\">`\n * - `label`: a `<div class=\"ui labeled button\">` ROOT wrapping the `<button class=\"ui button\">` and a\n * `<span class=\"ui basic label\" part=\"label\">`; CSS orders the label first for `labeled=\"left\"`\n * - `icon` class (as `ClassBuilder` `extra`) when there's an icon and no text; `labeled` + icon =>\n * `labeled icon`\n * - `active` / `disabled` / `loading` / `toggle` are keyOnly attributes, so `ClassBuilder` emits them\n * - `<ui-buttons>`: `<div class=\"ui ... buttons\" role=\"group\" part=\"group\"><slot></slot></div>`\n * - `wrapping`: a `<span class=\"row\">` after the slot for each row, the row's track (`UIButtons.rows`)\n * - `trackless`: its buttons draw their own outline or fill, so it draws no track (`UIButtons.isTrackless`)\n * - `<ui-or>`: `<span class=\"or\" part=\"or\" data-text=\"or\">` -- `data-text` from the vocabulary text `or`\n * - The `:state()`s the components must set (the DOM element's own layout can't come from inside):\n * - `:state(fluid)` -- the DOM element is block-level: `fluid`, bare / `top` / `bottom` `attached`,\n * and groups with `width` (equal width) or `fluid`\n * - `:state(or)` on `<ui-or>` -- so a group doesn't stretch its separators\n * - `:state(active)` / `:state(disabled)` / `:state(loading)` -- for PAGE styling only;\n * this sheet keys on the root's classes\n * - Public tokens (`--ui-button-*`, the theming surface) are NEVER declared here: the token block reads each\n * through a private alias, `--_ui-button-radius: var(--ui-button-radius, var(--ui-radius))`,\n * and every rule reads the alias. So a value set on `:root`, an ancestor, the DOM element,\n * `::part(button)` or in the app stylesheet reaches the box (`notes/theming.md` \"Component tokens\").\n * - Looks are TOKEN driven, so groups need no help from the elements:\n * - a type / variation class (`basic`, `inverted`, `tertiary`, `icon`, `labeled icon`, `compact`,\n * `circular`, `toggle`) declares private `--_button-*` tokens on `.button` OR `.buttons`;\n * buttons read them in front of the alias (`var(--_button-radius, var(--_ui-button-radius))`),\n * so `<div class=\"ui basic buttons\">` makes its children basic by inheritance, through `<slot>` and into each\n * child's shadow\n * - why not write the alias: every button box re-declares `--_ui-button-*` from the public token,\n * so a group's write would never reach its members\n * - values derived from a public token (`compact`'s ratio, tertiary's margin) read its alias,\n * so the page's base value flows through\n * - colours (`--ui-color*`) and sizes (`--ui-scale`) inherit the same way\n * - `.ui.buttons` is a TRACK (the buttons' resting fill, set in by `--ui-button-group-padding`; \"Groups\" below),\n * and sets position tokens on each child (light DOM `> *`, shadow `::slotted(*)`):\n * - `--_ui-buttons-{ss,se,es,ee}`: corner factors, 1 an outer corner, 0 a joined one;\n * `UIInput.css` sets them too\n * - `--_buttons-outer-radius` / `--_buttons-joint-radius`: what an outer / a joined corner is, in a track\n * - `--_buttons-background` (see-through on the track), `--_buttons-trim` (padding given up to the inset)\n * - `--_ui-buttons-flex`, `--_ui-buttons-margin`\n * - `--_ui-buttons-divider`: a box-shadow drawing a class-grammar child's separator line;\n * a `<ui-button>`'s is its DOM element's start border instead\n * - NEVER set `--_button-*` or `--_ui-*` from outside; theme with `--ui-button-*`\n * - NOTE: left out, on purpose:\n * - social buttons (`facebook`, `twitter` ...): colour a button with `color` / `--ui-color` instead\n * - Fomantic's `wrapped` groups (a corner tweak for multi-row basic groups) and the stacked-border tricks of\n * basic / inverted groups (overlapping negative margins): a group's track draws one border, plus dividers\n * - `<ui-button wrap>` is ours: a label that may wrap, where a button's text stays on one line by default\n * - pointing / tag / corner shapes of the `labeled` button's label -- they belong to `label.less`\n * - a child's OWN colour inside a basic / inverted / tertiary GROUP: the group resolves those looks where\n * it declares them, so colour the group (Fomantic's docs only colour groups)\n * - RTL-aware animated buttons: the slide runs left-to-right as in Fomantic\n */\n\n@layer ui.components.button.types, ui.components.button.content, ui.components.button.variations, ui.components.button.states;\n\n/* Breakpoints (`@custom-media`), inlined at build time: `stackable` groups. */\n@import \"../../styles/media.css\";\n\n/* Loader spin, shared by `loading` buttons. */\n@keyframes ui-button-spin {\n to {\n rotate: 1turn;\n }\n}\n\n/*******************************\n Types\n*******************************/\n\n@layer ui.components.button.types {\n /* The DOM element: layout only; the look lives on the semantic root inside. */\n :host {\n display: inline-flex;\n vertical-align: baseline;\n }\n :host(:state(fluid)) {\n display: flex;\n }\n /* `ellipsis`: never wider than the parent, so the label has a width to cut at. */\n :host(:state(ellipsis)) {\n max-width: 100%;\n }\n /* `delegatesFocus`: the inner `<button>` draws the ring, never the DOM element. */\n :host(:focus-visible) {\n outline: none;\n }\n\n /*\n * Tokens: one per `button.variables` entry that still matters, from the global tokens --\n * each the private alias of its public `--ui-button-*` token (never declare the public one:\n * it would block inherited values).\n * - Read each line as \"X is the page's `--ui-button-X`, else the default\":\n * `--_ui-button-radius: var(--ui-button-radius, var(--ui-radius))`. The rules below read only the `--_` alias.\n */\n .ui.button,\n .ui.buttons,\n .or {\n /* ## Box */\n --_ui-button-padding-block: var(--ui-button-padding-block, var(--ui-space-s));\n --_ui-button-padding-inline: var(--ui-button-padding-inline, var(--ui-space-l));\n --_ui-button-margin-inline: var(--ui-button-margin-inline, var(--ui-space-2xs));\n --_ui-button-radius: var(--ui-button-radius, var(--ui-radius));\n /* ## Type */\n --_ui-button-font-family: var(--ui-button-font-family, var(--ui-font-family));\n --_ui-button-font-size: var(--ui-button-font-size, var(--ui-font-size));\n --_ui-button-font-weight: var(--ui-button-font-weight, var(--ui-font-weight-semibold));\n --_ui-button-line-height: var(--ui-button-line-height, 1);\n /* `size=\"poster\"`: past massive, growing with the window between a floor and a ceiling (em of the text around) */\n --_ui-button-poster-min: var(--ui-button-poster-min, 2em);\n --_ui-button-poster-grow: var(--ui-button-poster-grow, 6vw);\n --_ui-button-poster-max: var(--ui-button-poster-max, 3.2em);\n /* ## Colours: rest, hover, down (pressed), active (on) */\n --_ui-button-background: var(--ui-button-background, oklch(from var(--ui-ink) l c h / 0.08));\n --_ui-button-background-hover: var(--ui-button-background-hover, oklch(from var(--ui-ink) l c h / 0.13));\n --_ui-button-background-down: var(--ui-button-background-down, oklch(from var(--ui-ink) l c h / 0.18));\n --_ui-button-background-active: var(--ui-button-background-active, oklch(from var(--ui-ink) l c h / 0.16));\n --_ui-button-color: var(--ui-button-color, var(--ui-text-muted));\n --_ui-button-color-hover: var(--ui-button-color-hover, var(--ui-text-hovered));\n --_ui-button-color-down: var(--ui-button-color-down, var(--ui-text-pressed));\n --_ui-button-color-active: var(--ui-button-color-active, var(--ui-text-selected));\n /* ## Motion and the icon */\n --_ui-button-duration: var(--ui-button-duration, var(--ui-duration-fast));\n --_ui-button-icon-opacity: var(--ui-button-icon-opacity, 0.8);\n --_ui-button-icon-spacing: var(--ui-button-icon-spacing, var(--ui-space-xs));\n /* ## Variations */\n --_ui-button-basic-border-width: var(--ui-button-basic-border-width, var(--ui-border-width));\n --_ui-button-basic-background-hover: var(--ui-button-basic-background-hover, var(--ui-surface));\n --_ui-button-basic-background-down: var(--ui-button-basic-background-down, var(--ui-surface-muted));\n --_ui-button-basic-background-active: var(\n --ui-button-basic-background-active,\n oklch(from var(--ui-ink) l c h / 0.05)\n );\n --_ui-button-inverted-border-width: var(--ui-button-inverted-border-width, 2px);\n --_ui-button-tertiary-padding: var(--ui-button-tertiary-padding, var(--ui-space-xs));\n --_ui-button-tertiary-line: var(--ui-button-tertiary-line, 0.2em);\n --_ui-button-labeled-icon-width: var(\n --ui-button-labeled-icon-width,\n calc(1em + 2 * var(--_ui-button-padding-block))\n );\n --_ui-button-labeled-icon-background: var(\n --ui-button-labeled-icon-background,\n oklch(from var(--ui-shadow-ink) l c h / 0.06)\n );\n --_ui-button-raised-lip: var(--ui-button-raised-lip, 0.25em);\n --_ui-button-raised-shade: var(--ui-button-raised-shade, 0.18);\n --_ui-button-compact-ratio: var(--ui-button-compact-ratio, 0.75);\n --_ui-button-circular-min-width: var(--ui-button-circular-min-width, 2.5em);\n --_ui-button-attached-padding-inline: var(--ui-button-attached-padding-inline, var(--ui-space-s));\n --_ui-button-floated-margin: var(--ui-button-floated-margin, var(--ui-space-2xs));\n --_ui-button-spaced-margin: var(--ui-button-spaced-margin, var(--ui-space-m));\n --_ui-button-toggle-background: var(--ui-button-toggle-background, var(--ui-positive));\n --_ui-button-toggle-background-hover: var(--ui-button-toggle-background-hover, var(--ui-positive-hover));\n --_ui-button-toggle-color: var(--ui-button-toggle-color, var(--ui-positive-on));\n --_ui-button-disabled-opacity: var(--ui-button-disabled-opacity, var(--ui-disabled-opacity));\n --_ui-button-animation-duration: var(--ui-button-animation-duration, var(--ui-duration-slow));\n /* ## The loader (`loading`) */\n --_ui-button-loader-size: var(--ui-button-loader-size, 1.25em);\n --_ui-button-loader-width: var(--ui-button-loader-width, 0.2em);\n --_ui-button-loader-speed: var(--ui-button-loader-speed, 0.6s);\n /* ## `<ui-or>` */\n /* the gap `<ui-or>` leaves between its buttons: none, its badge overlapping both */\n --_ui-button-or-gap: var(--ui-button-or-gap, 0px);\n --_ui-button-or-size: var(--ui-button-or-size, calc(1em + var(--_ui-button-padding-block)));\n --_ui-button-or-background: var(--ui-button-or-background, var(--ui-surface));\n --_ui-button-or-color: var(--ui-button-or-color, var(--ui-text-light));\n }\n\n /* Button */\n .ui.button {\n position: relative;\n box-sizing: border-box;\n display: inline-block;\n flex: var(--_ui-buttons-flex, 0 1 auto);\n min-width: var(--_button-min-width, auto);\n min-height: 1em;\n margin: var(--_ui-buttons-margin, var(--_button-margin, 0 var(--_ui-button-margin-inline) 0 0));\n /* less the group's inset (`--_buttons-trim`), so a group stands as tall as a lone button */\n padding-block: max(\n 0px,\n max(\n var(--_button-pad-block, var(--_ui-button-padding-block)),\n (var(--ui-control-height, 0px) * var(--ui-scale, 1) - 1lh) / 2\n ) *\n var(--_button-density, 1) - var(--_buttons-trim, 0px)\n );\n padding-inline-start: calc(\n var(--_button-pad-inline, var(--_ui-button-padding-inline)) * var(--_button-density, 1) +\n var(--_button-pad-start, 0em)\n );\n padding-inline-end: calc(\n var(--_button-pad-inline, var(--_ui-button-padding-inline)) * var(--_button-density, 1) +\n var(--_button-pad-end, 0em)\n );\n overflow: var(--_button-overflow, visible);\n border: none;\n /*\n * Each corner: an OUTER one (factor 1) takes the button's radius, or in a group its track's inner radius;\n * a JOINED one (factor 0) takes the group's item radius, else none (`--_ui-buttons-ss` ... are 0 or 1).\n */\n border-start-start-radius: calc(\n var(--_buttons-outer-radius, var(--_button-radius, var(--_ui-button-radius))) * var(--_ui-buttons-ss, 1) +\n var(--_buttons-joint-radius, 0px) * (1 - var(--_ui-buttons-ss, 1))\n );\n border-start-end-radius: calc(\n var(--_buttons-outer-radius, var(--_button-radius, var(--_ui-button-radius))) * var(--_ui-buttons-se, 1) +\n var(--_buttons-joint-radius, 0px) * (1 - var(--_ui-buttons-se, 1))\n );\n border-end-start-radius: calc(\n var(--_buttons-outer-radius, var(--_button-radius, var(--_ui-button-radius))) * var(--_ui-buttons-es, 1) +\n var(--_buttons-joint-radius, 0px) * (1 - var(--_ui-buttons-es, 1))\n );\n border-end-end-radius: calc(\n var(--_buttons-outer-radius, var(--_button-radius, var(--_ui-button-radius))) * var(--_ui-buttons-ee, 1) +\n var(--_buttons-joint-radius, 0px) * (1 - var(--_ui-buttons-ee, 1))\n );\n /* in a group's track, a plain button is see-through at rest (`--_buttons-background`): the track is its fill */\n background-color: var(--_button-bg, var(--ui-color, var(--_buttons-background, var(--_ui-button-background))));\n background-image: none;\n color: var(--_button-fg, var(--ui-color-on, var(--_ui-button-color)));\n box-shadow: var(--_button-edge, 0 0 #0000), var(--_ui-buttons-divider, 0 0 #0000);\n font-family: var(--_ui-button-font-family);\n font-size: calc(var(--_ui-button-font-size) * var(--ui-scale, 1));\n font-style: normal;\n font-weight: var(--_ui-font-weight, var(--_button-weight, var(--_ui-button-font-weight)));\n line-height: var(--_ui-button-line-height);\n text-align: center;\n text-decoration: none;\n /* the shared `font`'s weight and `shadow` reach the button through these (`reset.css`) */\n text-shadow: var(--_ui-font-shadow, none);\n text-transform: var(--_ui-font-case, none);\n /* One line, unless `wrapped` */\n white-space: nowrap;\n vertical-align: baseline;\n cursor: var(--ui-control-cursor);\n user-select: none;\n appearance: none;\n -webkit-tap-highlight-color: transparent;\n transition-property: opacity, background-color, color, box-shadow;\n transition-duration: var(--_ui-button-duration);\n transition-timing-function: var(--ui-ease);\n }\n\n /* Basic: transparent, a hairline ring, normal weight. */\n .ui.basic:is(.button, .buttons) {\n --_button-bg: transparent;\n --_button-bg-hover: var(--_ui-button-basic-background-hover);\n --_button-bg-down: var(--_ui-button-basic-background-down);\n --_button-bg-active: var(--_ui-button-basic-background-active);\n --_button-fg: var(--ui-color-text, var(--_ui-button-color));\n --_button-fg-hover: var(--ui-color-text, var(--_ui-button-color-hover));\n --_button-fg-down: var(--ui-color-text, var(--_ui-button-color-down));\n --_button-fg-active: var(--ui-color-text, var(--_ui-button-color-active));\n --_button-weight: var(--ui-font-weight-normal);\n }\n .ui.basic.button {\n --_button-edge: inset 0 0 0 var(--_ui-button-basic-border-width) var(--ui-color-border, var(--ui-border-color));\n --_button-edge-hover: inset 0 0 0 var(--_ui-button-basic-border-width)\n var(--ui-color-hover, var(--ui-border-color-selected));\n --_button-edge-down: inset 0 0 0 var(--_ui-button-basic-border-width)\n var(--ui-color-down, var(--ui-border-color-selected-strong));\n --_button-edge-active: inset 0 0 0 var(--_ui-button-basic-border-width)\n var(--ui-color-active, var(--ui-border-color-selected));\n }\n\n /* Tertiary: text only, an underline on interaction. */\n .ui.tertiary:is(.button, .buttons) {\n --_button-bg: transparent;\n --_button-bg-hover: transparent;\n --_button-bg-down: transparent;\n --_button-bg-active: transparent;\n --_button-fg: var(--ui-color-text, var(--ui-text-color));\n --_button-fg-hover: var(--ui-color-text, var(--ui-text-hovered));\n --_button-fg-down: var(--ui-color-text, var(--ui-text-pressed));\n --_button-fg-active: var(--ui-color-text, var(--ui-text-selected));\n --_button-edge-hover: inset 0 calc(var(--_ui-button-tertiary-line) * -1) 0\n var(--ui-color, color-mix(in oklab, currentColor 40%, transparent));\n --_button-edge-active: inset 0 calc(var(--_ui-button-tertiary-line) * -1) 0 var(--ui-color-active, currentColor);\n --_button-radius: 0px;\n --_button-pad-block: var(--_ui-button-tertiary-padding);\n --_button-pad-inline: var(--_ui-button-tertiary-padding);\n --_button-margin: calc(var(--_ui-button-padding-block) - var(--_ui-button-tertiary-padding))\n var(--_ui-button-margin-inline) calc(var(--_ui-button-padding-block) - var(--_ui-button-tertiary-padding)) 0;\n }\n\n /* Inverted: for dark surfaces -- an outline that fills on interaction, in the `onDark` colour. */\n .ui.inverted:is(.button, .buttons) {\n --_button-inverted: var(--ui-color-inverted, var(--ui-ink-on-dark));\n --_button-bg: transparent;\n --_button-bg-hover: var(--_button-inverted);\n --_button-bg-down: oklch(from var(--_button-inverted) calc(l - 0.08) c h);\n --_button-bg-active: oklch(from var(--_button-inverted) calc(l - 0.04) c h);\n --_button-fg: var(--ui-color-inverted, var(--ui-text-inverted-color));\n --_button-fg-hover: var(--ui-color-inverted-on, var(--ui-ink-on-light));\n --_button-edge: inset 0 0 0 var(--_ui-button-inverted-border-width) var(--_button-inverted);\n }\n .ui.basic.inverted:is(.button, .buttons) {\n --_button-bg-hover: transparent;\n --_button-bg-down: oklch(from var(--ui-ink-on-dark) l c h / 0.08);\n --_button-bg-active: oklch(from var(--ui-ink-on-dark) l c h / 0.08);\n --_button-fg: var(--ui-text-inverted-color);\n --_button-fg-hover: var(--ui-color-inverted, var(--ui-text-inverted-hovered));\n --_button-edge: inset 0 0 0 var(--_ui-button-inverted-border-width) oklch(from var(--ui-ink-on-dark) l c h / 0.5);\n --_button-edge-hover: inset 0 0 0 var(--_ui-button-inverted-border-width) var(--_button-inverted);\n --_button-edge-down: inset 0 0 0 var(--_ui-button-inverted-border-width)\n oklch(from var(--_button-inverted) l c h / 0.9);\n --_button-edge-active: inset 0 0 0 var(--_ui-button-inverted-border-width)\n oklch(from var(--_button-inverted) l c h / 0.7);\n }\n\n /* Icon only: square padding. */\n .ui.icon:is(.button, .buttons) {\n --_button-pad-inline: var(--_ui-button-padding-block);\n --_button-icon-margin: 0;\n --_button-icon-opacity: 0.9;\n --_button-icon-align: top;\n }\n /*\n * A lone icon-only button is SQUARE: as wide as it is tall, the icon centred\n * (so a theme with pill-shaped buttons draws it as a circle).\n * - In a group (`--_buttons-icon-pad-inline` set), it keeps the group's square padding instead.\n * - Its height: one line of text plus its padding, top and bottom.\n */\n .ui.icon.button:not(.labeled) {\n --_button-pad-inline: var(--_buttons-icon-pad-inline, 0px);\n --_button-min-width: var(\n --_buttons-icon-min-width,\n calc(\n var(--_ui-button-line-height) * 1em + 2 * var(--_button-pad-block, var(--_ui-button-padding-block)) *\n var(--_button-density, 1)\n )\n );\n }\n\n /* Labeled icon: the icon sits in its own tinted block on the start (or `right labeled`: end) side. */\n .ui.labeled.icon:is(.button, .buttons) {\n --_button-pad-inline: var(--_ui-button-padding-inline);\n --_button-pad-start: var(--_ui-button-labeled-icon-width);\n --_button-pad-end: 0em;\n --_button-overflow: hidden;\n --_button-icon-position: absolute;\n --_button-icon-start: 0;\n --_button-icon-end: auto;\n --_button-icon-width: var(--_ui-button-labeled-icon-width);\n --_button-icon-height: 100%;\n --_button-icon-pad: calc(var(--_ui-button-padding-block) * var(--_button-density, 1));\n --_button-icon-bg: var(--_ui-button-labeled-icon-background);\n }\n .ui[class*=\"right labeled\"].icon:is(.button, .buttons) {\n --_button-pad-start: 0em;\n --_button-pad-end: var(--_ui-button-labeled-icon-width);\n --_button-icon-start: auto;\n --_button-icon-end: 0;\n }\n\n /* Labeled (with a label): the root is a transparent wrapper around a button and a label. */\n .ui.labeled.button:not(.icon) {\n display: inline-flex;\n flex-direction: row;\n padding: 0;\n cursor: default;\n }\n .ui.labeled.button > .button {\n margin: 0;\n }\n .ui.labeled.button:not([class*=\"left labeled\"]) > .button {\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n }\n .ui[class*=\"left labeled\"].button > .button {\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n }\n\n /* Animated: hidden content slides (or fades) in over the visible content on hover / focus. */\n .ui.animated.button {\n --_button-pad-inline: var(--_ui-button-padding-inline);\n overflow: hidden;\n padding-inline-end: 0;\n vertical-align: middle;\n z-index: 1;\n }\n .ui.animated.button > .content {\n display: block;\n will-change: transform, opacity;\n }\n .ui.animated.button > .visible.content {\n position: relative;\n margin-inline-end: var(--_ui-button-padding-inline);\n }\n .ui.animated.button > .hidden.content {\n position: absolute;\n width: 100%;\n }\n .ui.animated.button > :is(.visible, .hidden).content {\n transition: right var(--_ui-button-animation-duration) var(--ui-ease) 0s;\n }\n .ui.animated.button > .visible.content {\n left: auto;\n right: 0;\n }\n .ui.animated.button > .hidden.content {\n top: 50%;\n left: auto;\n right: -100%;\n margin-top: -0.5em;\n }\n .ui.vertical.animated.button > :is(.visible, .hidden).content {\n transition:\n top var(--_ui-button-animation-duration) var(--ui-ease),\n transform var(--_ui-button-animation-duration) var(--ui-ease);\n }\n .ui.vertical.animated.button > .visible.content {\n right: auto;\n transform: translateY(0);\n }\n .ui.vertical.animated.button > .hidden.content {\n top: -50%;\n left: 0;\n right: auto;\n }\n .ui.fade.animated.button > :is(.visible, .hidden).content {\n transition:\n opacity var(--_ui-button-animation-duration) var(--ui-ease),\n transform var(--_ui-button-animation-duration) var(--ui-ease);\n }\n .ui.fade.animated.button > .visible.content {\n left: auto;\n right: auto;\n opacity: 1;\n transform: scale(1);\n }\n .ui.fade.animated.button > .hidden.content {\n left: 0;\n right: auto;\n opacity: 0;\n transform: scale(1.5);\n }\n\n /*******************************\n Groups\n *******************************/\n\n /*\n * A group is a TRACK, as a segmented control is (`UIMenu.css`, \"Segmented\"):\n * it draws the buttons' resting fill (and a basic group's border), set in a little all round,\n * and its buttons are see-through on it until hovered, pressed or `selected`.\n * - So the fill a hover or a press lights is a rounded tile inside the track, never a square one.\n * - Its corners: the track's, inside its border and inset (`--_buttons-inner-radius`), as the segmented options'.\n * - Tokens, as the segmented control's:\n * - `--ui-button-group-padding`: the inset (`0.125em`)\n * - `--ui-button-group-item-radius`: the corners where its buttons meet;\n * by default the inner radius, so every tile is rounded all round\n * - Its buttons lose the inset from their own padding (`--_buttons-trim`), so it stands as tall as a lone button.\n * - Separate buttons (`circular`, `spacing=\"md\"`) and `tertiary` ones (no fill) have no track;\n * nor do buttons that draw their own outline or fill (\"Trackless group\" below).\n */\n .ui.buttons {\n /* a group's inset: how far its buttons sit in from its edge */\n --_ui-button-group-padding: var(--ui-button-group-padding, var(--ui-space-3xs));\n /* the track's corner; vertical and attached groups take the theme's, never a pill */\n --_buttons-radius: var(--_button-radius, var(--_ui-button-radius));\n /* a basic or inverted group's border */\n --_buttons-edge-width: 0px;\n --_buttons-inner-radius: max(\n 0px,\n var(--_buttons-radius) - var(--_buttons-edge-width) - var(--_ui-button-group-padding)\n );\n /* the corners where a group's buttons meet; by default its inner radius, so every tile is rounded all round */\n --_ui-button-group-item-radius: var(--ui-button-group-item-radius, var(--_buttons-inner-radius));\n box-sizing: border-box;\n display: inline-flex;\n flex-direction: row;\n margin: 0 var(--_ui-button-margin-inline) 0 0;\n padding: var(--_ui-button-group-padding);\n border-radius: var(--_buttons-radius);\n background-color: var(--_button-bg, var(--ui-color, var(--_ui-button-background)));\n font-size: calc(var(--ui-font-size) * var(--ui-scale, 1));\n vertical-align: baseline;\n }\n\n /*\n * Every child: no gap, see-through on the track, its corners the track's.\n * Light-DOM children are the buttons; slotted ones are `<ui-button>`s.\n * - Declared on the child, so each value is worked out from the GROUP's tokens, not the button's own.\n */\n .ui.buttons > *,\n .ui.buttons > ::slotted(*) {\n --_ui-buttons-margin: 0;\n --_ui-buttons-ss: 0;\n --_ui-buttons-se: 0;\n --_ui-buttons-es: 0;\n --_ui-buttons-ee: 0;\n --_buttons-outer-radius: var(--_buttons-inner-radius);\n --_buttons-joint-radius: var(--_ui-button-group-item-radius);\n --_buttons-background: transparent;\n --_buttons-trim: calc(var(--_ui-button-group-padding) + var(--_buttons-edge-width));\n --_buttons-icon-pad-inline: var(--_ui-button-padding-block);\n --_buttons-icon-min-width: auto;\n }\n /* Buttons (not `or`s) share the free space. */\n .ui.buttons > :not(.or),\n .ui.buttons > ::slotted(:not(:state(or))) {\n --_ui-buttons-flex: 1 0 auto;\n flex: 1 0 auto;\n }\n /* Outer corners stay round. */\n .ui.buttons > :first-child,\n .ui.buttons > ::slotted(:first-child) {\n --_ui-buttons-ss: 1;\n --_ui-buttons-es: 1;\n }\n .ui.buttons > :last-child,\n .ui.buttons > ::slotted(:last-child) {\n --_ui-buttons-se: 1;\n --_ui-buttons-ee: 1;\n }\n\n /* Or: a round \"or\" badge between two buttons. */\n .or {\n position: relative;\n flex: none;\n box-sizing: border-box;\n width: var(--_ui-button-or-gap);\n /* as tall as the buttons beside it, which lose the track's inset (`--_buttons-trim`) */\n height: calc(1em + 2 * max(0px, var(--_ui-button-padding-block) - var(--_buttons-trim, 0px)));\n z-index: 3;\n font-family: var(--ui-font-family);\n font-size: calc(var(--ui-font-size) * var(--ui-scale, 1));\n }\n .or::before {\n content: \"or\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: var(--_ui-button-or-size);\n height: var(--_ui-button-or-size);\n margin: calc(var(--_ui-button-or-size) / -2) 0 0 calc(var(--_ui-button-or-size) / -2);\n border-radius: var(--ui-radius-circle);\n background-color: var(--_ui-button-or-background);\n color: var(--_ui-button-or-color);\n font-style: normal;\n font-weight: var(--ui-font-weight-bold);\n line-height: var(--_ui-button-or-size);\n text-align: center;\n text-shadow: none;\n }\n .or[data-text]::before {\n content: attr(data-text);\n }\n}\n\n/*******************************\n Content\n*******************************/\n\n@layer ui.components.button.content {\n /* Icon: a glyph box; an `<svg>` (or a wrapper around one) fills it with `currentColor`. */\n .ui.button > .icon:not(.button),\n .ui.button > .content > .icon {\n position: var(--_button-icon-position, static);\n top: 0;\n bottom: 0;\n inset-inline-start: var(--_button-icon-start, auto);\n inset-inline-end: var(--_button-icon-end, auto);\n box-sizing: border-box;\n display: inline-block;\n width: var(--_button-icon-width, 1.18em);\n height: var(--_button-icon-height, 1em);\n margin-block: 0;\n margin-inline: var(--_button-icon-margin, calc(var(--_ui-button-icon-spacing) / -2) var(--_ui-button-icon-spacing));\n padding-block: var(--_button-icon-pad, 0);\n background: var(--_button-icon-bg, none);\n fill: currentColor;\n opacity: var(--_button-icon-opacity, var(--_ui-button-icon-opacity));\n vertical-align: var(--_button-icon-align, -0.125em);\n transition: opacity var(--_ui-button-duration) var(--ui-ease);\n }\n .ui.button:not(.icon) > .right.icon {\n margin-inline: var(--_ui-button-icon-spacing) calc(var(--_ui-button-icon-spacing) / -2);\n }\n .ui.button .icon svg,\n .ui.button .icon ::slotted(svg),\n .ui.button .icon ::slotted(ui-icon) {\n display: block;\n width: 100%;\n height: 100%;\n fill: currentColor;\n }\n .ui.animated.button > .content > .icon {\n position: static;\n margin: 0;\n vertical-align: top;\n }\n\n /* Label of a `labeled` button: a basic label joined to the button's edge. */\n .ui.labeled.button > .label {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n margin: 0;\n margin-inline-start: calc(var(--ui-border-width) * -1);\n padding: 0 var(--ui-space-m);\n border: var(--ui-border-width) solid var(--ui-color-border, var(--ui-border-color));\n border-radius: 0 var(--_ui-button-radius) var(--_ui-button-radius) 0;\n background-color: var(--ui-surface);\n color: var(--ui-color-text, var(--ui-text-color));\n font-size: 1em;\n font-weight: var(--_ui-button-font-weight);\n line-height: 1;\n text-decoration: none;\n }\n .ui.labeled.button > .label:not(.basic) {\n border-color: transparent;\n background-color: var(--ui-color, var(--_ui-button-background));\n color: var(--ui-color-on, var(--_ui-button-color));\n }\n .ui[class*=\"left labeled\"].button > .label {\n order: -1;\n margin-inline: 0 calc(var(--ui-border-width) * -1);\n border-radius: var(--_ui-button-radius) 0 0 var(--_ui-button-radius);\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.button.variations {\n /* A logo (`size=\"poster\"`): bigger than massive on a desktop, smaller on a phone (epic `language` P35, I63) */\n .ui.poster.button {\n font-size: clamp(var(--_ui-button-poster-min), var(--_ui-button-poster-grow), var(--_ui-button-poster-max));\n }\n\n /* Compact: three quarters of the padding. */\n .ui.compact:is(.button, .buttons) {\n --_button-density: var(--_ui-button-compact-ratio);\n }\n\n /* Unpadded: no padding at all (a `labeled icon` button keeps room for its icon block). */\n .ui.unpadded.button {\n --_button-density: 0;\n }\n\n /* Wrapped: a long label wraps onto more lines; a button stays on one line without it. */\n .ui.wrapped.button {\n white-space: normal;\n }\n\n /* Ellipsis: one line, cut off with \"…\"; the host's `:state(ellipsis)` keeps it inside its parent. */\n .ui.ellipsis.button {\n --_button-overflow: hidden;\n max-width: 100%;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n /* Circular: pill shaped, never narrower than it is tall. */\n .ui.circular:is(.button, .buttons) {\n --_button-radius: var(--ui-radius-pill);\n --_button-min-width: var(--_ui-button-circular-min-width);\n --_button-icon-width: 1em;\n }\n\n /* Raised: it stands on a lip of its own colour, darker, and sinks into it when pressed.\n - The lip is its bottom border, so it takes room of its own: a margin would go in a stack, a shadow overlap\n what comes next.\n - Pressed, the lip moves to the top, see-through: the button sinks, and nothing around it moves. */\n .ui.raised.button {\n border-block-end: var(--_ui-button-raised-lip) solid\n oklch(from var(--ui-color, var(--_ui-button-background)) calc(l - var(--_ui-button-raised-shade)) c h);\n background-clip: padding-box;\n }\n .ui.raised.button:active {\n border-block-start: var(--_ui-button-raised-lip) solid transparent;\n border-block-end-width: 0;\n }\n\n /* Toggle: `active` means \"on\", in the positive colour. */\n .ui.toggle:is(.button, .buttons) {\n --_button-bg-active: var(--_ui-button-toggle-background);\n --_button-bg-active-hover: var(--_ui-button-toggle-background-hover);\n --_button-fg-active: var(--_ui-button-toggle-color);\n --_button-edge-active: 0 0 #0000;\n }\n\n /* Fluid: full width. */\n .ui.fluid.button {\n display: block;\n width: 100%;\n }\n .ui.fluid.buttons {\n display: flex;\n width: 100%;\n }\n .ui.fluid.buttons > .or,\n .ui.fluid.buttons > ::slotted(:state(or)) {\n width: 0;\n }\n\n /* Floated */\n .ui[class*=\"left floated\"]:is(.button, .buttons) {\n float: left;\n margin-left: 0;\n margin-right: var(--_ui-button-floated-margin);\n }\n .ui[class*=\"right floated\"]:is(.button, .buttons) {\n float: right;\n margin-left: var(--_ui-button-floated-margin);\n margin-right: 0;\n }\n\n /*\n * Attached: a single button joined to the edge of a segment (or another attached element).\n * - `top`, `bottom` and both: as wide as what it's joined to, as Fomantic's.\n * - Its free corners take the theme's corner (`--ui-radius`), never a pill's: they meet a segment's square edge.\n */\n .ui.attached.button {\n --_button-edge: 0 0 0 var(--ui-border-width) var(--ui-border-color);\n --_button-attached-radius: min(var(--_ui-button-radius), var(--ui-radius));\n display: block;\n width: 100%;\n margin: 0;\n border-radius: 0;\n }\n .ui.top.attached.button {\n border-start-start-radius: var(--_button-attached-radius);\n border-start-end-radius: var(--_button-attached-radius);\n }\n .ui.bottom.attached.button {\n border-end-start-radius: var(--_button-attached-radius);\n border-end-end-radius: var(--_button-attached-radius);\n }\n .ui.left.attached.button {\n display: inline-block;\n width: auto;\n padding-inline-end: var(--_ui-button-attached-padding-inline);\n border-start-start-radius: var(--_button-attached-radius);\n border-end-start-radius: var(--_button-attached-radius);\n text-align: end;\n }\n .ui.right.attached.button {\n display: inline-block;\n width: auto;\n padding-inline-start: var(--_ui-button-attached-padding-inline);\n border-start-end-radius: var(--_button-attached-radius);\n border-end-end-radius: var(--_button-attached-radius);\n text-align: start;\n }\n\n /*\n * Vertical group: the track's corners are the theme's (`--ui-radius`), never a pill's:\n * a tall capsule reads as one long button.\n * - Its buttons keep their full padding: only a row of buttons must match a lone button's height.\n */\n .ui.vertical.buttons {\n --_buttons-radius: min(var(--_button-radius, var(--_ui-button-radius)), var(--ui-radius));\n display: inline-flex;\n flex-direction: column;\n }\n .ui.vertical.buttons > *,\n .ui.vertical.buttons > ::slotted(*) {\n --_buttons-trim: 0px;\n --_ui-buttons-ss: 0;\n --_ui-buttons-se: 0;\n --_ui-buttons-es: 0;\n --_ui-buttons-ee: 0;\n }\n .ui.vertical.buttons > :first-child,\n .ui.vertical.buttons > ::slotted(:first-child) {\n --_ui-buttons-ss: 1;\n --_ui-buttons-se: 1;\n }\n .ui.vertical.buttons > :last-child,\n .ui.vertical.buttons > ::slotted(:last-child) {\n --_ui-buttons-es: 1;\n --_ui-buttons-ee: 1;\n }\n .ui.vertical.buttons > .button {\n display: block;\n }\n\n /* Equal width: `width=\"3\"` => `three buttons`, `width=\"equal\"` => `equal width buttons`. */\n .ui.buttons:is(.two, .three, .four, .five, .six, .seven, .eight, .nine, .ten, .eleven, .twelve, .equal.width) {\n width: 100%;\n }\n .ui.buttons:is(.two, .three, .four, .five, .six, .seven, .eight, .nine, .ten, .eleven, .twelve, .equal.width)\n > :not(.or),\n .ui.buttons:is(.two, .three, .four, .five, .six, .seven, .eight, .nine, .ten, .eleven, .twelve, .equal.width)\n > ::slotted(:not(:state(or))) {\n --_ui-buttons-flex: 1 1 0%;\n flex: 1 1 0%;\n }\n\n /*\n * Equal (`equal`, no count): every child as wide as the widest -- a grid of equal columns, so the group hugs them;\n * with `fluid`, an equal share of the row each (as `width`, whose `equal width` is left out here).\n * - NOTE: a packed group's `<ui-or>` takes a column of its own: use `fluid` (or `width`) with `or`s\n */\n .ui.equal.buttons:not(.width, .fluid, .vertical) {\n display: inline-grid;\n grid-auto-columns: 1fr;\n grid-auto-flow: column;\n }\n .ui.equal.fluid.buttons:not(.width, .vertical) > :not(.or),\n .ui.equal.fluid.buttons:not(.width, .vertical) > ::slotted(:not(:state(or))) {\n --_ui-buttons-flex: 1 1 0%;\n flex: 1 1 0%;\n }\n\n /*\n * Basic group: one outer border on the track, hairline dividers between children.\n * - A `<ui-button>`'s divider is its DOM element's start border: a straight line beside its rounded tile,\n * where an inset shadow on the tile would bend round its corners.\n */\n .ui.basic.buttons,\n .ui.basic.buttons > .row {\n --_buttons-edge-width: var(--_ui-button-basic-border-width);\n border: var(--_ui-button-basic-border-width) solid var(--ui-color-border, var(--ui-border-color));\n }\n .ui.basic.buttons > :not(:first-child, .row) {\n --_ui-buttons-divider: inset var(--_ui-button-basic-border-width) 0 0 0\n var(--ui-color-border, var(--ui-border-color));\n }\n .ui.basic.buttons > ::slotted(:not(:first-child)) {\n border-inline-start: var(--_ui-button-basic-border-width) solid var(--ui-color-border, var(--ui-border-color));\n }\n .ui.basic.vertical.buttons > :not(:first-child, .row) {\n --_ui-buttons-divider: inset 0 var(--_ui-button-basic-border-width) 0 0\n var(--ui-color-border, var(--ui-border-color));\n }\n .ui.basic.vertical.buttons > ::slotted(:not(:first-child)) {\n border-inline-start: none;\n border-block-start: var(--_ui-button-basic-border-width) solid var(--ui-color-border, var(--ui-border-color));\n }\n\n /*\n * Inverted group: ONE outline, on the track, in the `onDark` colour; its buttons draw none of their own.\n * A basic inverted one keeps its buttons' outline on hover.\n */\n .ui.inverted.buttons:not(.basic),\n .ui.inverted.buttons:not(.basic) > .row {\n --_buttons-edge-width: var(--_ui-button-inverted-border-width);\n border: var(--_ui-button-inverted-border-width) solid var(--_button-inverted);\n }\n .ui.basic.inverted.buttons,\n .ui.basic.inverted.buttons > .row {\n border-color: oklch(from var(--ui-ink-on-dark) l c h / 0.5);\n }\n .ui.inverted.buttons > *,\n .ui.inverted.buttons > ::slotted(*) {\n --_button-edge: initial;\n }\n\n /* Tertiary group: text only, so no track to set its buttons in from. */\n .ui.tertiary.buttons {\n --_ui-button-group-padding: 0px;\n }\n\n /*\n * Circular / spaced groups: separate round buttons, each with its own fill and corners; no track.\n * - The room between them is the group's `gap`, so a wrapping one leaves the same room between its rows\n * as between its buttons (with margins on the buttons, a circular group's rows touched).\n */\n .ui:is(.circular, .spaced).buttons {\n --_ui-button-group-padding: 0px;\n background-color: transparent;\n }\n .ui.circular.buttons {\n gap: var(--_ui-button-margin-inline);\n }\n .ui.spaced.buttons {\n gap: var(--_ui-button-spaced-margin);\n }\n .ui:is(.circular, .spaced).buttons > *,\n .ui:is(.circular, .spaced).buttons > ::slotted(*) {\n --_ui-buttons-ss: 1;\n --_ui-buttons-se: 1;\n --_ui-buttons-es: 1;\n --_ui-buttons-ee: 1;\n --_buttons-outer-radius: initial;\n --_buttons-background: initial;\n --_buttons-trim: 0px;\n }\n\n /*\n * Trackless group: its buttons draw their own outline (`basic`) or fill (a `color`),\n * so the group draws no track for them to sit in: a ring inside a fill reads as a mistake.\n * - They sit joined, square where they meet, as before groups were tracks; a plain button among them keeps its fill.\n * - `<ui-buttons>` adds the class (`UIButtons.extraClass`); class grammar writes `ui trackless buttons`.\n */\n .ui.trackless.buttons {\n --_ui-button-group-padding: 0px;\n background-color: transparent;\n }\n .ui.trackless.buttons > *,\n .ui.trackless.buttons > ::slotted(*) {\n --_buttons-outer-radius: initial;\n --_buttons-joint-radius: initial;\n --_buttons-background: initial;\n --_buttons-trim: 0px;\n }\n\n /*\n * Wrapping: children wrap onto more rows, each row a track of its own, with a gap between rows.\n * - `<ui-buttons>` measures its rows and draws a `.row` box behind each (`UIButtons.rows`);\n * once it has, the group's own box drops its fill and border.\n * - Without its script (a static render), the whole group is one track.\n */\n .ui.wrapping.buttons {\n flex-wrap: wrap;\n }\n .ui.wrapping.buttons:not(.circular, .spaced) {\n position: relative;\n isolation: isolate;\n row-gap: calc(2 * (var(--_ui-button-group-padding) + var(--_buttons-edge-width)) + var(--ui-space-2xs));\n }\n /* a basic one draws no dividers: CSS can't tell which button starts a row, and a row's own border is its start */\n .ui.basic.wrapping.buttons > ::slotted(*) {\n border-inline-start: none;\n }\n .ui.wrapping.buttons:not(.circular, .spaced):has(> .row) {\n border-color: transparent;\n background-color: transparent;\n }\n .ui.buttons > .row {\n position: absolute;\n z-index: -1;\n box-sizing: border-box;\n border-radius: var(--_buttons-radius);\n background-color: var(--_button-bg, var(--ui-color, var(--_ui-button-background)));\n pointer-events: none;\n }\n .ui:is(.circular, .spaced, .trackless).buttons > .row {\n display: none;\n }\n .ui.compact.wrapping.buttons > :not(.or),\n .ui.compact.wrapping.buttons > ::slotted(:not(:state(or))) {\n --_ui-buttons-flex: none;\n flex: none;\n }\n\n /*\n * Attached group: full width, joined to a segment's top or bottom edge.\n * - The track's free corners take the theme's corner (`--ui-radius`), never a pill's; the joined ones are square.\n */\n .ui.attached.buttons {\n --_buttons-radius: min(var(--_button-radius, var(--_ui-button-radius)), var(--ui-radius));\n position: relative;\n display: flex;\n margin-inline: calc(var(--ui-border-width) * -1);\n border-radius: 0;\n }\n .ui[class*=\"top attached\"].buttons {\n border-start-start-radius: var(--_buttons-radius);\n border-start-end-radius: var(--_buttons-radius);\n }\n .ui[class*=\"bottom attached\"].buttons {\n border-end-start-radius: var(--_buttons-radius);\n border-end-end-radius: var(--_buttons-radius);\n }\n .ui[class*=\"left attached\"].buttons {\n border-start-start-radius: var(--_buttons-radius);\n border-end-start-radius: var(--_buttons-radius);\n }\n .ui[class*=\"right attached\"].buttons {\n border-start-end-radius: var(--_buttons-radius);\n border-end-end-radius: var(--_buttons-radius);\n }\n .ui.attached.buttons > *,\n .ui.attached.buttons > ::slotted(*) {\n --_ui-buttons-ss: 0;\n --_ui-buttons-se: 0;\n --_ui-buttons-es: 0;\n --_ui-buttons-ee: 0;\n }\n .ui[class*=\"top attached\"].buttons > :first-child,\n .ui[class*=\"top attached\"].buttons > ::slotted(:first-child) {\n --_ui-buttons-ss: 1;\n }\n .ui[class*=\"top attached\"].buttons > :last-child,\n .ui[class*=\"top attached\"].buttons > ::slotted(:last-child) {\n --_ui-buttons-se: 1;\n }\n .ui[class*=\"bottom attached\"].buttons {\n margin-top: calc(var(--ui-border-width) * -1);\n }\n .ui[class*=\"bottom attached\"].buttons > :first-child,\n .ui[class*=\"bottom attached\"].buttons > ::slotted(:first-child) {\n --_ui-buttons-es: 1;\n }\n .ui[class*=\"bottom attached\"].buttons > :last-child,\n .ui[class*=\"bottom attached\"].buttons > ::slotted(:last-child) {\n --_ui-buttons-ee: 1;\n }\n .ui[class*=\"left attached\"].buttons,\n .ui[class*=\"right attached\"].buttons {\n display: inline-flex;\n margin-inline: 0;\n }\n .ui[class*=\"left attached\"].buttons > :first-child,\n .ui[class*=\"left attached\"].buttons > ::slotted(:first-child) {\n --_ui-buttons-se: 1;\n }\n .ui[class*=\"left attached\"].buttons > :last-child,\n .ui[class*=\"left attached\"].buttons > ::slotted(:last-child) {\n --_ui-buttons-ee: 1;\n }\n .ui[class*=\"right attached\"].buttons > :first-child,\n .ui[class*=\"right attached\"].buttons > ::slotted(:first-child) {\n --_ui-buttons-ss: 1;\n }\n .ui[class*=\"right attached\"].buttons > :last-child,\n .ui[class*=\"right attached\"].buttons > ::slotted(:last-child) {\n --_ui-buttons-es: 1;\n }\n\n /* Stackable: horizontal groups stack on mobile. */\n @media (--ui-mobile) {\n .ui.stackable.buttons {\n --_buttons-radius: min(var(--_button-radius, var(--_ui-button-radius)), var(--ui-radius));\n flex-direction: column;\n }\n .ui.stackable.buttons > *,\n .ui.stackable.buttons > ::slotted(*) {\n --_ui-buttons-ss: 0;\n --_ui-buttons-se: 0;\n --_ui-buttons-es: 0;\n --_ui-buttons-ee: 0;\n }\n .ui.stackable.buttons > :first-child,\n .ui.stackable.buttons > ::slotted(:first-child) {\n --_ui-buttons-ss: 1;\n --_ui-buttons-se: 1;\n }\n .ui.stackable.buttons > :last-child,\n .ui.stackable.buttons > ::slotted(:last-child) {\n --_ui-buttons-es: 1;\n --_ui-buttons-ee: 1;\n }\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.button.states {\n /* Hover */\n .ui.button:hover {\n background-color: var(--_button-bg-hover, var(--ui-color-hover, var(--_ui-button-background-hover)));\n color: var(--_button-fg-hover, var(--ui-color-on, var(--_ui-button-color-hover)));\n box-shadow: var(--_button-edge-hover, var(--_button-edge, 0 0 #0000)), var(--_ui-buttons-divider, 0 0 #0000);\n }\n .ui.button:is(:hover, :focus-visible) > .icon:not(.button) {\n opacity: var(--_button-icon-opacity, 0.85);\n }\n\n /* Focus: the ring comes from `reset.css`; the fill mirrors hover. */\n .ui.button:focus-visible {\n background-color: var(\n --_button-bg-focus,\n var(--_button-bg-hover, var(--ui-color-focus, var(--_ui-button-background-hover)))\n );\n color: var(--_button-fg-hover, var(--ui-color-on, var(--_ui-button-color-hover)));\n box-shadow:\n var(--_button-edge-focus, var(--_button-edge-hover, var(--_button-edge, 0 0 #0000))),\n var(--_ui-buttons-divider, 0 0 #0000);\n }\n\n /* Down (pressed) */\n .ui.button:active {\n background-color: var(--_button-bg-down, var(--ui-color-down, var(--_ui-button-background-down)));\n color: var(--_button-fg-down, var(--_button-fg-hover, var(--ui-color-on, var(--_ui-button-color-down))));\n box-shadow:\n var(--_button-edge-down, var(--_button-edge-hover, var(--_button-edge, 0 0 #0000))),\n var(--_ui-buttons-divider, 0 0 #0000);\n }\n\n /* Active (on) */\n .ui.active.button {\n background-color: var(--_button-bg-active, var(--ui-color-active, var(--_ui-button-background-active)));\n color: var(--_button-fg-active, var(--_button-fg-hover, var(--ui-color-on, var(--_ui-button-color-active))));\n box-shadow: var(--_button-edge-active, var(--_button-edge, 0 0 #0000)), var(--_ui-buttons-divider, 0 0 #0000);\n }\n .ui.active.button:hover {\n background-color: var(\n --_button-bg-active-hover,\n var(--_button-bg-active, var(--ui-color-active, var(--_ui-button-background-active)))\n );\n }\n .ui.active.button:active {\n background-color: var(--_button-bg-active, var(--ui-color-active, var(--_ui-button-background-active)));\n }\n\n /* Animated: swap the contents. */\n .ui.animated.button:is(:hover, :focus-visible) > .visible.content {\n left: auto;\n right: 200%;\n }\n .ui.animated.button:is(:hover, :focus-visible) > .hidden.content {\n left: auto;\n right: 0;\n }\n .ui.vertical.animated.button:is(:hover, :focus-visible) > .visible.content {\n right: auto;\n transform: translateY(200%);\n }\n .ui.vertical.animated.button:is(:hover, :focus-visible) > .hidden.content {\n top: 50%;\n right: auto;\n }\n .ui.fade.animated.button:is(:hover, :focus-visible) > .visible.content {\n left: auto;\n right: auto;\n opacity: 0;\n transform: scale(0.75);\n }\n .ui.fade.animated.button:is(:hover, :focus-visible) > .hidden.content {\n left: 0;\n right: auto;\n opacity: 1;\n transform: scale(1);\n }\n\n /* Labeled wrapper: never paints, whatever the state -- its button and label do. */\n .ui.labeled.button:not(.icon):is(*, :hover, :active, :focus-visible, .active) {\n background-color: transparent;\n box-shadow: none;\n }\n\n /* Loading: text goes transparent, a spinner takes its place. */\n .ui.loading.button:is(*, :hover, :active, :focus-visible, .active) {\n color: transparent;\n cursor: default;\n transition:\n all 0s linear,\n opacity var(--_ui-button-duration) var(--ui-ease);\n }\n .ui.loading.button::before,\n .ui.loading.button::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n box-sizing: border-box;\n width: var(--_ui-button-loader-size);\n height: var(--_ui-button-loader-size);\n margin: calc(var(--_ui-button-loader-size) / -2) 0 0 calc(var(--_ui-button-loader-size) / -2);\n border: var(--_ui-button-loader-width) solid transparent;\n border-radius: var(--ui-radius-circle);\n }\n .ui.loading.button::before {\n border-color: color-mix(in oklab, var(--_button-fg, var(--ui-color-on, var(--_ui-button-color))) 20%, transparent);\n }\n .ui.loading.button::after {\n border-top-color: var(--_button-fg, var(--ui-color-on, var(--_ui-button-color)));\n animation: ui-button-spin var(--_ui-button-loader-speed) linear infinite;\n }\n .ui.loading.button > :is(.icon, .label) {\n visibility: hidden;\n }\n\n /* Disabled */\n .ui.button:is(:disabled, .disabled):is(*, :hover, :active, .active) {\n cursor: default;\n opacity: var(--_ui-button-disabled-opacity);\n background-image: none;\n box-shadow: none;\n pointer-events: none;\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/components/ui-input/UIInput.css?inline
|
|
2
|
+
var e = "@layer ui.components.input.types{:host{inline-size:var(--_ui-input-owner-width,auto);vertical-align:middle;max-inline-size:100%;display:inline-flex}:host(:state(fluid)){display:flex}:host(:focus-visible){outline:none}.ui.input{--_ui-input-padding-block:var(--ui-input-padding-block,.67857em);--_ui-input-padding-inline:var(--ui-input-padding-inline,1em);--_ui-input-line-height:var(--ui-input-line-height,1.21428em);--_ui-input-background:var(--ui-input-background,var(--ui-surface));--_ui-input-color:var(--ui-input-color,var(--ui-text-color));--_ui-input-numeric-align:var(--ui-input-numeric-align,end);--_ui-input-border-width:var(--ui-input-border-width,var(--ui-border-width));--_ui-input-border-color:var(--ui-input-border-color,var(--ui-border-color));--_ui-input-border-color-hover:var(--ui-input-border-color-hover,var(--ui-border-color-selected));--_ui-input-border-color-focus:var(--ui-input-border-color-focus,var(--ui-focus-border));--_ui-input-border-color-down:var(--ui-input-border-color-down,var(--ui-border-color-selected-strong));--_ui-input-background-down:var(--ui-input-background-down,var(--ui-surface-muted));--_ui-input-color-focus:var(--ui-input-color-focus,var(--ui-text-hovered));--_ui-input-radius:var(--ui-input-radius,var(--ui-radius));--_ui-input-duration:var(--ui-input-duration,var(--ui-duration-fast));--_ui-input-placeholder-color:var(--ui-input-placeholder-color,color-mix(in oklab, var(--ui-text-light) 55%, transparent));--_ui-input-placeholder-focus-color:var(--ui-input-placeholder-focus-color,color-mix(in oklab, var(--ui-text-light) 70%, transparent));--_ui-input-disabled-opacity:var(--ui-input-disabled-opacity,var(--ui-disabled-opacity));--_ui-input-icon-width:var(--ui-input-icon-width,2.67142em);--_ui-input-icon-size:var(--ui-input-icon-size,1em);--_ui-input-icon-opacity:var(--ui-input-icon-opacity,.5);--_ui-input-icon-focus-opacity:var(--ui-input-icon-focus-opacity,1);--_ui-input-transparent-icon-width:var(--ui-input-transparent-icon-width,1.18em);--_ui-input-transparent-icon-margin:var(--ui-input-transparent-icon-margin,2em);--_ui-input-labeled-margin:var(--ui-input-labeled-margin,2.5em);--_ui-input-labeled-icon-input-margin:var(--ui-input-labeled-icon-input-margin,3.25em);--_ui-input-labeled-and-icon-margin:var(--ui-input-labeled-and-icon-margin,4em);--_ui-input-labeled-icon-margin:var(--ui-input-labeled-icon-margin,1.25em);--_ui-input-corner-ratio:var(--ui-input-corner-ratio,.64285);--_ui-input-loader-size:var(--ui-input-loader-size,1.28571em);--_ui-input-loader-width:var(--ui-input-loader-width,.2em);--_ui-input-loader-fill:var(--ui-input-loader-fill,oklch(from var(--ui-ink) l c h / .1));--_ui-input-loader-line:var(--ui-input-loader-line,var(--ui-text-muted));--_ui-input-loader-speed:var(--ui-input-loader-speed,.6s);--_ui-input-file-button-background:var(--ui-input-file-button-background,color-mix(in oklab, var(--ui-ink) 12%, var(--ui-surface)));--_ui-input-file-button-background-hover:var(--ui-input-file-button-background-hover,color-mix(in oklab, var(--ui-ink) 20%, var(--ui-surface)));--_ui-input-file-button-color:var(--ui-input-file-button-color,var(--ui-text-dark));--_ui-input-file-button-margin:var(--ui-input-file-button-margin,1em);--_ui-input-textarea-height:var(--ui-input-textarea-height,12em);--_ui-input-textarea-min-height:var(--ui-input-textarea-min-height,8em);--_ui-input-textarea-max-height:var(--ui-input-textarea-max-height,24em);--_ui-input-textarea-line-height:var(--ui-input-textarea-line-height,1.2857);--_ui-input-textarea-grow-max-height:var(--ui-input-textarea-grow-max-height,33vh);--_ui-input-inverted-color:var(--ui-input-inverted-color,var(--ui-text-inverted-color));--_ui-input-inverted-placeholder-color:var(--ui-input-inverted-placeholder-color,var(--ui-text-inverted-unselected));box-sizing:border-box;min-inline-size:0;color:var(--_ui-input-color);font-family:var(--ui-font-family);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));font-style:normal;font-weight:var(--_ui-input-owner-weight,var(--ui-font-weight-normal));flex:auto;display:inline-flex;position:relative}.ui.input>:is(input,textarea){box-sizing:border-box;min-inline-size:0;max-inline-size:100%;padding-block:max(var(--_input-pad-block,var(--_ui-input-padding-block)), (var(--ui-control-height,0px) * var(--ui-scale,1) - 1lh) / 2 - var(--_ui-input-border-width));padding-inline:var(--_input-pad-start,var(--_ui-input-padding-inline)) var(--_input-pad-end,var(--_ui-input-padding-inline));border:var(--_ui-input-border-width) solid var(--_input-border,var(--_ui-field-state-border,var(--_ui-input-border-color)));border-radius:var(--_ui-input-radius);background:var(--_input-background,var(--_ui-field-state-background,var(--_ui-input-background)));box-shadow:none;color:var(--_input-color,var(--_ui-field-state-color,var(--_ui-input-color)));font:inherit;line-height:var(--_ui-input-line-height);text-align:start;appearance:none;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--_ui-input-duration) var(--ui-ease), border-color var(--_ui-input-duration) var(--ui-ease);outline:none;flex:auto;margin:0}.ui.input>input:is([type=number],[inputmode=decimal],[inputmode=numeric]){font-variant-numeric:tabular-nums;text-align:var(--_ui-input-numeric-align)}.ui.input>input[type=color]{--_input-swatch-gap:3px;padding:var(--_input-swatch-gap);block-size:calc(var(--_ui-input-line-height) + 2 * var(--_ui-input-padding-block) + 2 * var(--_ui-input-border-width));cursor:var(--ui-control-cursor)}.ui.input>input[type=color]::-webkit-color-swatch-wrapper{padding:0}.ui.input>input[type=color]::-webkit-color-swatch{border:var(--_ui-input-border-width) solid var(--_ui-input-border-color);border-radius:max(0px, calc(var(--_ui-input-radius) - var(--_ui-input-border-width) - var(--_input-swatch-gap)))}.ui.input>input[type=color]::-moz-color-swatch{border:var(--_ui-input-border-width) solid var(--_ui-input-border-color);border-radius:max(0px, calc(var(--_ui-input-radius) - var(--_ui-input-border-width) - var(--_input-swatch-gap)))}.ui.input>input::-webkit-calendar-picker-indicator{opacity:var(--_ui-input-icon-opacity);cursor:var(--ui-control-cursor);transition:opacity var(--_ui-input-duration) var(--ui-ease);padding:0}.ui.input>textarea{min-block-size:calc(2 * var(--_ui-input-padding-block) + var(--_ui-input-line-height));padding-block:calc(var(--_ui-input-padding-block) + (var(--_ui-input-line-height) - 1em) / 2);line-height:var(--_ui-input-textarea-line-height);resize:vertical}.ui.input>textarea:not([rows]){block-size:var(--_ui-input-textarea-height);min-block-size:var(--_ui-input-textarea-min-height);max-block-size:var(--_ui-input-textarea-max-height)}.ui.input>textarea.grow{--_textarea-chrome:calc(2 * (var(--_ui-input-padding-block) + (var(--_ui-input-line-height) - 1em) / 2) + 2 * var(--_ui-input-border-width));field-sizing:content;block-size:auto;min-block-size:calc(var(--_textarea-rows,1) * 1lh + var(--_textarea-chrome));max-block-size:var(--_textarea-max,var(--_ui-input-textarea-grow-max-height));resize:none;overflow-y:auto}}@layer ui.components.input.content{.ui.input>:is(input,textarea)::placeholder{color:var(--_input-placeholder,var(--_ui-input-placeholder-color));opacity:1}.ui.input>:is(input,textarea):focus::placeholder{color:var(--_input-placeholder-focus,var(--_ui-input-placeholder-focus-color))}.ui.input>.icon{z-index:1;box-sizing:border-box;inline-size:var(--_input-icon-width,var(--_ui-input-icon-width));block-size:100%;color:inherit;opacity:var(--_ui-input-icon-opacity);pointer-events:none;cursor:default;transition:opacity var(--_ui-input-duration) var(--ui-ease);--_ui-icon-owner-margin:0;--_ui-icon-owner-size:var(--_ui-input-icon-size);--_ui-icon-owner-opacity:1;--_ui-icon-owner-align:middle;justify-content:center;align-items:center;margin:0;line-height:1;display:flex;position:absolute;inset-block:0;inset-inline-end:0}.ui.input>.icon svg,.ui.input>.icon ::slotted(svg){inline-size:var(--_ui-input-icon-size);block-size:var(--_ui-input-icon-size);fill:currentColor}.ui.input>:is(input,textarea):focus~.icon{opacity:var(--_ui-input-icon-focus-opacity)}.ui.input>input:focus::-webkit-calendar-picker-indicator{opacity:var(--_ui-input-icon-focus-opacity)}.ui.input>textarea~.icon{block-size:3em}.ui.file.input>input[type=file]{--_input-pad-block:0;--_input-pad-start:0;--_input-pad-end:0;cursor:var(--ui-control-cursor)}.ui.file.input>input[type=file]::file-selector-button{margin-block:0;margin-inline:0 var(--_ui-input-file-button-margin);padding:var(--_ui-input-padding-block) var(--_ui-input-padding-inline);background:var(--ui-color,var(--_ui-input-file-button-background));color:var(--ui-color-on,var(--_ui-input-file-button-color));font:inherit;font-weight:var(--ui-font-weight-bold);line-height:var(--_ui-input-line-height);cursor:var(--ui-control-cursor);border:0}.ui.file.input>input[type=file]:is(:hover,:focus-visible)::file-selector-button{background:var(--ui-color-hover,var(--_ui-input-file-button-background-hover))}.ui.action.file.input>input[type=file]::file-selector-button{display:none}}@layer ui.components.input.variations{.ui.icon.input:not(.corner){--_input-pad-end:var(--_ui-input-icon-width)}.ui[class*=left\\ icon].input>.icon{inset-inline:0 auto}.ui[class*=left\\ icon].input:not([class*=left\\ corner]){--_input-pad-start:var(--_ui-input-icon-width)}.ui[class*=left\\ icon].input:not(.corner){--_input-pad-end:var(--_ui-input-padding-inline)}.ui.loading.input>.icon{opacity:1}.ui.loading.input>.icon>*{visibility:hidden}.ui.loading.input>.icon:before,.ui.loading.input>.icon:after{content:\"\";box-sizing:border-box;inline-size:var(--_ui-input-loader-size);block-size:var(--_ui-input-loader-size);margin:calc(var(--_ui-input-loader-size) / -2) 0 0 calc(var(--_ui-input-loader-size) / -2);border:var(--_ui-input-loader-width) solid var(--_ui-input-loader-fill);border-radius:var(--ui-radius-circle);position:absolute;inset-block-start:50%;inset-inline-start:50%}.ui.loading.input>.icon:after{border-color:var(--_ui-input-loader-line) transparent transparent;animation:ui-input-spin var(--_ui-input-loader-speed) linear infinite}.ui.transparent.input>:is(input,textarea){--_input-pad-block:0;--_input-pad-start:0;--_input-pad-end:0;box-shadow:none;background-color:#0000;border-color:#0000;border-radius:0}.ui.transparent.icon.input{--_input-icon-width:var(--_ui-input-transparent-icon-width)}.ui.transparent.icon.input>:is(input,textarea){--_input-pad-end:var(--_ui-input-transparent-icon-margin)}.ui.transparent[class*=left\\ icon].input>:is(input,textarea){--_input-pad-start:var(--_ui-input-transparent-icon-margin);--_input-pad-end:0}.ui.transparent.input>textarea~.icon{block-size:1.3em}.ui.transparent.inverted.input{color:var(--_ui-input-inverted-color)}.ui.transparent.inverted.input>:is(input,textarea){--_input-color:inherit;--_input-placeholder:var(--_ui-input-inverted-placeholder-color)}.ui.inverted.input>:is(input,textarea){border-color:#0000}.ui.labeled.input>.ui.label{font-size:calc(var(--ui-font-size) * var(--ui-scale,1));flex:none;align-items:center;margin:0;display:flex}.ui.labeled.input>.ui.label:not(.corner){padding-block:.78571em}.ui.labeled.input:not([class*=corner\\ labeled])>.ui.label:first-child{border-start-end-radius:0;border-end-end-radius:0}.ui.labeled.input:not([class*=corner\\ labeled])>.ui.label:first-child~:is(input,textarea){border-inline-start-color:#0000;border-start-start-radius:0;border-end-start-radius:0}.ui.labeled.input:not([class*=corner\\ labeled])>.ui.label:first-child~:is(input,textarea):focus{border-inline-start-color:var(--_ui-input-border-color-focus)}.ui[class*=right\\ labeled].input>:is(input,textarea){border-inline-end-color:#0000;border-start-end-radius:0;border-end-end-radius:0}.ui[class*=right\\ labeled].input>:is(input,textarea):focus{border-inline-end-color:var(--_ui-input-border-color-focus)}.ui[class*=right\\ labeled].input>.ui.label:last-child{border-start-start-radius:0;border-end-start-radius:0}.ui.labeled.input>.ui.corner.label{--_ui-label-owner-radius:var(--_ui-input-radius);top:var(--_ui-input-border-width);right:var(--_ui-input-border-width);font-size:calc(var(--ui-font-size) * var(--_ui-input-corner-ratio) * var(--ui-scale,1));border-start-end-radius:var(--_ui-input-radius);display:block}.ui.labeled.input>.ui.left.corner.label{right:auto;left:var(--_ui-input-border-width)}.ui.labeled.input>.ui.corner.label>.icon{--_ui-icon-owner-margin:0;--_ui-icon-owner-align:top}.ui[class*=corner\\ labeled]:not([class*=\"left corner labeled\"]).input{--_input-pad-end:var(--_ui-input-labeled-margin)}.ui[class*=corner\\ labeled]:not([class*=\"left corner labeled\"]).icon.input{--_input-pad-end:var(--_ui-input-labeled-icon-input-margin)}.ui[class*=corner\\ labeled]:not([class*=\"left corner labeled\"]).icon.input>.icon{margin-inline-end:var(--_ui-input-labeled-icon-margin)}.ui[class*=\"left corner labeled\"].input{--_input-pad-start:var(--_ui-input-labeled-margin)}.ui[class*=\"left corner labeled\"][class*=left\\ icon].input{--_input-pad-start:var(--_ui-input-labeled-and-icon-margin)}.ui[class*=\"left corner labeled\"].icon.input>.icon{margin-inline-start:var(--_ui-input-labeled-icon-margin)}.ui[class*=\"left corner labeled\"].icon:not([class*=left\\ icon]).input{--_input-pad-end:var(--_ui-input-labeled-margin)}.ui.action.input>::slotted(*),.ui.action.input>.ui.button{flex:none;margin:0}.ui.action.input:not([class*=left\\ action])>:is(input,textarea){border-inline-end-color:#0000;border-start-end-radius:0;border-end-end-radius:0}.ui.action.input:not([class*=left\\ action])>:is(input,textarea):focus{border-inline-end-color:var(--_ui-input-border-color-focus)}.ui.action.input:not([class*=left\\ action])>::slotted(*),.ui.action.input:not([class*=left\\ action])>.ui.button{--_ui-buttons-ss:0;--_ui-buttons-es:0;--_ui-buttons-se:0;--_ui-buttons-ee:0}.ui.action.input:not([class*=left\\ action])>::slotted(:last-child),.ui.action.input:not([class*=left\\ action])>.ui.button:last-child{--_ui-buttons-se:1;--_ui-buttons-ee:1}.ui[class*=left\\ action].input>:is(input,textarea){border-inline-start-color:#0000;border-start-start-radius:0;border-end-start-radius:0}.ui[class*=left\\ action].input>:is(input,textarea):focus{border-inline-start-color:var(--_ui-input-border-color-focus)}.ui[class*=left\\ action].input>::slotted(*),.ui[class*=left\\ action].input>.ui.button{--_ui-buttons-ss:0;--_ui-buttons-es:0;--_ui-buttons-se:0;--_ui-buttons-ee:0}.ui[class*=left\\ action].input>::slotted(:first-child),.ui[class*=left\\ action].input>.ui.button:first-child{--_ui-buttons-ss:1;--_ui-buttons-es:1}.ui.fluid.input{inline-size:100%;display:flex}.ui.fluid.input>:is(input,textarea){inline-size:0}}@layer ui.components.input.states{.ui.input>:is(input,textarea):hover:not(:focus){--_input-border:var(--ui-color-border,var(--_ui-field-state-border,var(--_ui-input-border-color-hover)))}.ui.input>:is(input,textarea):active{--_input-border:var(--ui-color-border,var(--_ui-field-state-border,var(--_ui-input-border-color-down)));--_input-background:var(--ui-color-background,var(--_ui-field-state-background,var(--_ui-input-background-down)))}.ui.input>:is(input,textarea):focus{--_input-border:var(--ui-color-border,var(--_ui-field-state-border,var(--_ui-input-border-color-focus)));--_input-background:var(--ui-color-background,var(--_ui-field-state-background,var(--_ui-input-background)));--_input-color:var(--ui-color-text,var(--_ui-field-state-color,var(--_ui-input-color-focus)))}.ui.transparent.input>:is(input,textarea):is(:hover,:active,:focus){--_input-border:transparent;--_input-background:transparent}.ui.input:is(.error,.info,.success,.warning)>:is(input,textarea){--_input-border:var(--ui-color-border);--_input-background:var(--ui-color-background);--_input-color:var(--ui-color-text);--_input-placeholder:color-mix(in oklab, var(--ui-color-text) 55%, transparent);--_input-placeholder-focus:color-mix(in oklab, var(--ui-color-text) 80%, transparent)}.ui.input:is(.error,.info,.success,.warning)>.icon{color:var(--ui-color-text)}.ui.labeled.input:is(.error,.info,.success,.warning):not([class*=corner\\ labeled])>.ui.label{border-block:var(--_ui-input-border-width) solid var(--ui-color-border)}.ui.labeled.input:is(.error,.info,.success,.warning):not(.right,[class*=corner\\ labeled])>.ui.label{border-inline-start:var(--_ui-input-border-width) solid var(--ui-color-border)}.ui.right.labeled.input:is(.error,.info,.success,.warning):not([class*=corner\\ labeled])>.ui.label{border-inline-end:var(--_ui-input-border-width) solid var(--ui-color-border)}.ui.disabled.input,.ui.input>:is(input,textarea):disabled{opacity:var(--_ui-input-disabled-opacity)}.ui.disabled.input>:is(input,textarea),.ui.disabled.input>.ui.label{pointer-events:none}.ui.disabled.input>:is(input,textarea):disabled{opacity:1}.ui.read-only.input>:is(input,textarea){cursor:default}@media (prefers-reduced-motion:reduce){.ui.loading.input>.icon:after{animation-duration:calc(var(--_ui-input-loader-speed) * 4)}}}@keyframes ui-input-spin{to{rotate:1turn}}";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as t };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=UIInput-BodVbUoQ.js.map
|