spell-ui 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-components.md +14 -6
- package/README-frameworks.md +22 -12
- package/README-migrating.md +7 -6
- package/README-runtime.md +14 -13
- package/README-site.md +11 -11
- package/README-themes.md +38 -11
- package/README.md +61 -73
- package/dist/Dragging-CMZoLEWQ.js +169 -0
- package/dist/Dragging-CMZoLEWQ.js.map +1 -0
- package/dist/{MarkdownEngine-CbuT9Mjc.js → MarkdownEngine-CW1WGqNp.js} +122 -100
- package/dist/MarkdownEngine-CW1WGqNp.js.map +1 -0
- package/dist/{PrefStore-CeaTtjTz.js → PrefStore-Qv0e5y04.js} +22 -22
- package/dist/PrefStore-Qv0e5y04.js.map +1 -0
- package/dist/ScrollingRow-7n7Z-HIE.js +88 -0
- package/dist/ScrollingRow-7n7Z-HIE.js.map +1 -0
- package/dist/SitePages-CciwREek.js +51 -0
- package/dist/SitePages-CciwREek.js.map +1 -0
- package/dist/{SlottedItems-Ch0tzzlL.js → SlottedItems-Du3aJwG1.js} +22 -22
- package/dist/{SlottedItems-Ch0tzzlL.js.map → SlottedItems-Du3aJwG1.js.map} +1 -1
- package/dist/ThemeDraft-B7NPif4d.js +805 -0
- package/dist/ThemeDraft-B7NPif4d.js.map +1 -0
- package/dist/TreeMeasure-BVJeGb1L.js +42 -0
- package/dist/TreeMeasure-BVJeGb1L.js.map +1 -0
- package/dist/UIButton-DFEds67r.js +6 -0
- package/dist/UIButton-DFEds67r.js.map +1 -0
- package/dist/UIInput-BodVbUoQ.js +6 -0
- package/dist/UIInput-BodVbUoQ.js.map +1 -0
- package/dist/{UIKeys-DJF2TIKE.js → UIKeys-Rh_gUZjP.js} +10 -9
- package/dist/UIKeys-Rh_gUZjP.js.map +1 -0
- package/dist/UILabel-DgJUBzB_.js +6 -0
- package/dist/UILabel-DgJUBzB_.js.map +1 -0
- package/dist/UIMenu-zdcAtwTa.js +42 -0
- package/dist/UIMenu-zdcAtwTa.js.map +1 -0
- package/dist/{UIRuntime-BBuehGly.js → UIRuntime-KH309p5B.js} +398 -207
- package/dist/UIRuntime-KH309p5B.js.map +1 -0
- package/dist/_spell-element/DOMElement.d.ts +62 -5
- package/dist/_spell-element/MoveAndResize.d.ts +75 -0
- package/dist/_spell-element/UIComponent.d.ts +42 -0
- package/dist/_spell-element/elements.types.d.ts +47 -0
- package/dist/_spell-element/index.d.ts +1 -0
- package/dist/_spell-element/vocabulary.types.d.ts +34 -2
- package/dist/{runtime → _util}/Api.d.ts +14 -4
- package/dist/_util/Dragging.d.ts +148 -0
- package/dist/_util/ListSelection.d.ts +46 -0
- package/dist/{util → _util}/LoadOnce.d.ts +9 -1
- package/dist/_util/ReconnectingSocket.d.ts +51 -0
- package/dist/_util/diagram/DiagramColumns.d.ts +14 -0
- package/dist/_util/diagram/DiagramLayout.d.ts +119 -0
- package/dist/_util/diagram/DiagramSVG.d.ts +17 -0
- package/dist/_util/dom.d.ts +10 -0
- package/dist/_util/fetching.d.ts +92 -0
- package/dist/_util/measures/Dimension.d.ts +63 -0
- package/dist/_util/measures/MeasureSystem.d.ts +66 -0
- package/dist/_util/measures/dimensions.generated.d.ts +16 -0
- package/dist/_util/persist/ColorScheme.d.ts +6 -0
- package/dist/_util/persist/ServerPlace.d.ts +42 -0
- package/dist/_util/persist/WaitedOnPlace.d.ts +27 -0
- package/dist/_util/persist/persist.types.d.ts +21 -2
- package/dist/_util/timing.d.ts +10 -1
- package/dist/api.js +8 -7
- package/dist/api.js.map +1 -1
- package/dist/components/ComponentDefinitions.d.ts +29 -0
- package/dist/components/components.es.d.ts +13 -0
- package/dist/components/components.types.d.ts +113 -8
- package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
- package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
- package/dist/components/ui-action/UIAction.en.d.ts +5 -1
- package/dist/components/ui-ad/UIAd.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
- package/dist/components/ui-button/UIButton.d.ts +8 -3
- package/dist/components/ui-button/UIButton.en.d.ts +9 -4
- package/dist/components/ui-button/UIButton.es.d.ts +6 -0
- package/dist/components/ui-button/UIButton.fallback.d.ts +8 -3
- package/dist/components/ui-button/UIButtons.d.ts +1 -0
- package/dist/components/ui-button/UIButtons.en.d.ts +1 -0
- package/dist/components/ui-button/UIOr.d.ts +1 -0
- package/dist/components/ui-button/UIOr.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.d.ts +6 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +6 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +6 -0
- package/dist/components/ui-card/CardClicks.d.ts +40 -0
- package/dist/components/ui-card/UICard.d.ts +41 -0
- package/dist/components/ui-card/UICard.en.d.ts +49 -0
- package/dist/components/ui-card/UICard.es.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +31 -0
- package/dist/components/ui-card/UICards.en.d.ts +31 -0
- package/dist/components/ui-card/UICards.es.d.ts +8 -0
- package/dist/components/ui-checkbox/CheckControl.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.es.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +7 -0
- package/dist/components/ui-checkbox/UICheckbox.types.d.ts +5 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +8 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +6 -0
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
- package/dist/components/ui-components/PackHotSwap.d.ts +13 -3
- package/dist/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +11 -0
- package/dist/components/ui-container/UIContainer.en.d.ts +7 -0
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +268 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +106 -0
- package/dist/components/ui-diagram/UIDiagram.es.d.ts +37 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +98 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +38 -0
- package/dist/components/ui-diagram/UIDiagramNode.es.d.ts +16 -0
- package/dist/components/ui-diagram/index.d.ts +8 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +81 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +54 -0
- package/dist/components/ui-dimension/UIDimension.es.d.ts +22 -0
- package/dist/components/ui-dimension/index.d.ts +2 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +6 -1
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.es.d.ts +1 -1
- package/dist/components/ui-divider/UIDivider.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.es.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +6 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
- package/dist/components/ui-example/UIExample.en.d.ts +4 -2
- package/dist/components/ui-example/UIExample.es.d.ts +3 -2
- package/dist/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
- package/dist/components/ui-form/FormBinding.d.ts +13 -1
- package/dist/components/ui-form/FormFields.d.ts +4 -4
- package/dist/components/ui-form/UIField.d.ts +30 -3
- package/dist/components/ui-form/UIField.en.d.ts +9 -0
- package/dist/components/ui-form/UIField.es.d.ts +6 -0
- package/dist/components/ui-form/UIFields.d.ts +1 -0
- package/dist/components/ui-form/UIFields.en.d.ts +1 -0
- package/dist/components/ui-form/UIForm.d.ts +15 -0
- package/dist/components/ui-form/UIForm.en.d.ts +6 -0
- package/dist/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
- package/dist/components/ui-form/index.d.ts +2 -1
- package/dist/components/ui-grid/UIColumn.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.en.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.d.ts +3 -2
- package/dist/components/ui-icon/UIIcon.en.d.ts +3 -2
- package/dist/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +6 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
- package/dist/components/ui-image/UIImage.d.ts +34 -0
- package/dist/components/ui-image/UIImage.en.d.ts +23 -0
- package/dist/components/ui-image/UIImage.es.d.ts +2 -0
- package/dist/components/ui-image/UIImages.d.ts +1 -0
- package/dist/components/ui-image/UIImages.en.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
- package/dist/components/ui-input/TextControl.d.ts +7 -0
- package/dist/components/ui-input/UIInput.d.ts +22 -3
- package/dist/components/ui-input/UIInput.en.d.ts +9 -2
- package/dist/components/ui-input/UIInput.es.d.ts +2 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +9 -2
- package/dist/components/ui-input/UITextarea.d.ts +20 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +15 -0
- package/dist/components/ui-input/UITextarea.es.d.ts +4 -0
- package/dist/components/ui-item/UIItem.d.ts +27 -4
- package/dist/components/ui-item/UIItem.en.d.ts +5 -1
- package/dist/components/ui-items/UIItems.d.ts +1 -0
- package/dist/components/ui-items/UIItems.en.d.ts +1 -0
- package/dist/components/ui-json/JsonChild.d.ts +30 -0
- package/dist/components/ui-json/UIJson.d.ts +128 -0
- package/dist/components/ui-json/UIJson.en.d.ts +71 -0
- package/dist/components/ui-json/UIJson.es.d.ts +12 -0
- package/dist/components/ui-json/index.d.ts +3 -0
- package/dist/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
- package/dist/components/ui-label/UILabel.d.ts +2 -0
- package/dist/components/ui-label/UILabel.en.d.ts +2 -0
- package/dist/components/ui-label/UILabel.es.d.ts +1 -0
- package/dist/components/ui-label/UILabels.d.ts +1 -0
- package/dist/components/ui-label/UILabels.en.d.ts +1 -0
- package/dist/components/ui-list/UIList.d.ts +2 -0
- package/dist/components/ui-list/UIList.en.d.ts +2 -0
- package/dist/components/ui-list/UIList.es.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
- package/dist/components/ui-markdown/MarkdownBox.d.ts +143 -0
- package/dist/components/ui-markdown/MarkdownEngine.d.ts +14 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +95 -0
- package/dist/components/ui-markdown/MarkdownSource.d.ts +57 -0
- package/dist/components/ui-markdown/UIMarkdown.d.ts +126 -6
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +111 -8
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +29 -1
- package/dist/components/ui-markdown/UIMarkdown.types.d.ts +26 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +79 -0
- package/dist/components/ui-menu/TitleFit.d.ts +3 -0
- package/dist/components/ui-menu/UIMenu.d.ts +97 -4
- package/dist/components/ui-menu/UIMenu.en.d.ts +50 -1
- package/dist/components/ui-menu/UIMenu.es.d.ts +4 -0
- package/dist/components/ui-message/UIMessage.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.en.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.es.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +1 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +15 -0
- package/dist/components/ui-page/UIPage.en.d.ts +15 -0
- package/dist/components/ui-page/UIPage.es.d.ts +1 -0
- package/dist/components/ui-panel/UIPanel.d.ts +6 -0
- package/dist/components/ui-panel/UIPanel.en.d.ts +33 -20
- package/dist/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.en.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
- package/dist/components/ui-parts/UIHeader.d.ts +3 -1
- package/dist/components/ui-parts/UIHeader.en.d.ts +3 -1
- package/dist/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +15 -1
- package/dist/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
- package/dist/components/ui-popup/UIPopup.d.ts +30 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +7 -0
- package/dist/components/ui-popup/UIPopup.es.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.en.d.ts +2 -0
- package/dist/components/ui-progress/UIProgress.es.d.ts +1 -0
- package/dist/components/ui-property-editor/UIProperty.d.ts +132 -5
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +11 -44
- package/dist/components/ui-property-editor/UIProperty.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +38 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.es.d.ts +4 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +33 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +12 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +2 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.es.d.ts +9 -0
- package/dist/components/ui-property-editor/index.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +6 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +6 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
- package/dist/components/ui-root/UIRoot.d.ts +18 -3
- package/dist/components/ui-root/UIRoot.en.d.ts +15 -0
- package/dist/components/ui-root/UIRoot.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +48 -7
- package/dist/components/ui-search/UISearch.en.d.ts +13 -1
- package/dist/components/ui-search/UISearch.es.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +13 -1
- package/dist/components/ui-section/UISection.d.ts +22 -1
- package/dist/components/ui-section/UISection.en.d.ts +10 -0
- package/dist/components/ui-section/UISection.es.d.ts +1 -0
- package/dist/components/ui-section/UISections.d.ts +1 -0
- package/dist/components/ui-section/UISections.en.d.ts +1 -0
- package/dist/components/ui-segment/UISegment.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.en.d.ts +2 -0
- package/dist/components/ui-segment/UISegment.es.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.d.ts +6 -0
- package/dist/components/ui-select/UISelect.en.d.ts +6 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +6 -0
- package/dist/components/ui-shape/UIShape.d.ts +23 -2
- package/dist/components/ui-shape/UIShape.en.d.ts +8 -0
- package/dist/components/ui-shape/UIShape.es.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +4 -0
- package/dist/components/ui-shape/UISide.en.d.ts +4 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.d.ts +209 -0
- package/dist/components/ui-sides/UISides.en.d.ts +122 -0
- package/dist/components/ui-sides/UISides.es.d.ts +30 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +134 -0
- package/dist/components/ui-sides/index.d.ts +2 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +53 -0
- package/dist/components/ui-site-nav/UISiteNav.d.ts +207 -0
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +87 -0
- package/dist/components/ui-site-nav/UISiteNav.es.d.ts +29 -0
- package/dist/components/ui-site-nav/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +126 -0
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +49 -0
- package/dist/components/ui-site-tabs/UISiteTabs.es.d.ts +18 -0
- package/dist/components/ui-site-tabs/index.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +7 -0
- package/dist/components/ui-slider/UISlider.es.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +7 -0
- package/dist/components/ui-space/UISpace.d.ts +1 -0
- package/dist/components/ui-space/UISpace.en.d.ts +1 -0
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +175 -0
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +74 -0
- package/dist/components/ui-split-panel/UISplitPanel.es.d.ts +25 -0
- package/dist/components/ui-split-panel/index.d.ts +2 -0
- package/dist/components/ui-stack/UIStack.d.ts +31 -5
- package/dist/components/ui-stack/UIStack.en.d.ts +15 -3
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
- package/dist/components/ui-step/UIStep.d.ts +1 -0
- package/dist/components/ui-step/UIStep.en.d.ts +1 -0
- package/dist/components/ui-step/UISteps.d.ts +1 -0
- package/dist/components/ui-step/UISteps.en.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.d.ts +4 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +8 -0
- package/dist/components/ui-tab/UITab.en.d.ts +1 -0
- package/dist/components/ui-tab/UITabs.d.ts +107 -16
- package/dist/components/ui-tab/UITabs.en.d.ts +40 -1
- package/dist/components/ui-tab/UITabs.es.d.ts +4 -0
- package/dist/components/ui-table/TableEditing.d.ts +77 -0
- package/dist/components/ui-table/UICell.d.ts +1 -0
- package/dist/components/ui-table/UICell.en.d.ts +1 -0
- package/dist/components/ui-table/UITable.d.ts +145 -5
- package/dist/components/ui-table/UITable.en.d.ts +19 -0
- package/dist/components/ui-table/UITable.es.d.ts +3 -0
- package/dist/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
- package/dist/components/ui-text/UILink.d.ts +11 -0
- package/dist/components/ui-text/UILink.en.d.ts +4 -0
- package/dist/components/ui-text/UIText.d.ts +7 -0
- package/dist/components/ui-text/UIText.en.d.ts +7 -0
- package/dist/components/ui-text/UIText.es.d.ts +2 -0
- package/dist/components/ui-theme-editor/SavedTheme.d.ts +55 -43
- package/dist/components/ui-theme-editor/ThemeDraft.d.ts +15 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +157 -26
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +79 -6
- package/dist/components/ui-theme-editor/UIThemeEditor.es.d.ts +20 -2
- package/dist/components/ui-theme-editor/UIThemeEditor.types.d.ts +0 -2
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
- package/dist/components/ui-theme-menu/HueDropdown.d.ts +47 -0
- package/dist/components/ui-theme-menu/ThemeMenu.d.ts +18 -7
- package/dist/components/ui-theme-menu/ThemePreference.d.ts +145 -36
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +118 -7
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +82 -2
- package/dist/components/ui-theme-menu/UIThemeMenu.es.d.ts +21 -1
- package/dist/components/ui-theme-menu/UIThemeMenu.types.d.ts +36 -8
- package/dist/components/ui-theme-menu/index.d.ts +2 -1
- package/dist/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +13 -10
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +138 -84
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +2 -0
- package/dist/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
- package/dist/components/ui-tree/UITree.d.ts +162 -0
- package/dist/components/ui-tree/UITree.en.d.ts +88 -0
- package/dist/components/ui-tree/UITree.es.d.ts +35 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +204 -0
- package/dist/components/ui-tree/UITreeItem.en.d.ts +142 -0
- package/dist/components/ui-tree/UITreeItem.es.d.ts +32 -0
- package/dist/components/ui-tree/index.d.ts +3 -0
- package/dist/components/ui-tree-diagram/TreeData.d.ts +3 -12
- package/dist/components/ui-tree-diagram/TreeLayout.d.ts +54 -21
- package/dist/components/ui-tree-diagram/TreeMeasure.d.ts +36 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +152 -27
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +47 -7
- package/dist/components/ui-tree-diagram/UITreeDiagram.es.d.ts +12 -1
- package/dist/components/ui-tree-diagram/UITreeDiagram.types.d.ts +66 -21
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +148 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +69 -0
- package/dist/components/ui-tree-diagram/UITreeNode.es.d.ts +21 -0
- package/dist/components/ui-tree-diagram/index.d.ts +4 -2
- package/dist/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
- package/dist/{components.es-DmLzT-Bq.js → components.es-BOa_7gFF.js} +498 -109
- package/dist/components.es-BOa_7gFF.js.map +1 -0
- package/dist/core.d.ts +3 -1
- package/dist/core.js +1082 -511
- package/dist/core.js.map +1 -1
- package/dist/crisp-VfYZlTph.js +6 -0
- package/dist/{crisp-CoZRRDuQ.js.map → crisp-VfYZlTph.js.map} +1 -1
- package/dist/docs-components/index.d.ts +1 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.d.ts +89 -0
- package/dist/docs-components/ui-docs-index/UIDocsIndex.en.d.ts +43 -0
- package/dist/docs-components/ui-docs-index/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-nav/UIDocsNav.d.ts +54 -87
- package/dist/docs-components/ui-docs-nav/UIDocsNav.types.d.ts +2 -29
- package/dist/docs-components/ui-docs-search/SearchIndex.d.ts +8 -2
- package/dist/docs-components/ui-docs-search/UIDocsSearch.d.ts +10 -0
- package/dist/docs-components/ui-docs-search/UIDocsSearch.en.d.ts +5 -0
- package/dist/elements/AddressParameter.d.ts +87 -0
- package/dist/elements/DOMFormControl.d.ts +5 -0
- package/dist/elements/FormComponent.d.ts +32 -0
- package/dist/elements/LoadableBody.d.ts +6 -1
- package/dist/elements/LoadableComponent.d.ts +10 -1
- package/dist/elements/RootSettings.d.ts +43 -6
- package/dist/elements/SpellUISettings.d.ts +1 -0
- package/dist/elements/StickyWatch.d.ts +20 -0
- package/dist/elements/elements.types.d.ts +15 -0
- package/dist/elements/index.d.ts +2 -0
- package/dist/forms.js +93 -63
- package/dist/forms.js.map +1 -1
- package/dist/fruity-BRVlgJZd.js +6 -0
- package/dist/fruity-BRVlgJZd.js.map +1 -0
- package/dist/{fruity.theme-BJcMiPl1.js → fruity.theme-CbC7Jyvk.js} +2 -2
- package/dist/fruity.theme-CbC7Jyvk.js.map +1 -0
- package/dist/glass-x9tbbwVq.js +6 -0
- package/dist/glass-x9tbbwVq.js.map +1 -0
- package/dist/glass.theme-24wY2wH9.js +6 -0
- package/dist/glass.theme-24wY2wH9.js.map +1 -0
- package/dist/hot.js +530 -24
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +91 -81
- package/dist/jsx.d.ts +21149 -10377
- package/dist/matrix-QY2gWbJ0.js +6 -0
- package/dist/{matrix-CqA59hiF.js.map → matrix-QY2gWbJ0.js.map} +1 -1
- package/dist/{matrix.theme-jqQZjcq3.js → matrix.theme-_8xtwhDq.js} +2 -2
- package/dist/matrix.theme-_8xtwhDq.js.map +1 -0
- package/dist/midnight-BxlTQSfw.js +6 -0
- package/dist/{midnight-BnoVOrhC.js.map → midnight-BxlTQSfw.js.map} +1 -1
- package/dist/mockup-83ELBuVr.js +6 -0
- package/dist/mockup-83ELBuVr.js.map +1 -0
- package/dist/mockup.theme-DmpBgGBl.js +6 -0
- package/dist/mockup.theme-DmpBgGBl.js.map +1 -0
- package/dist/paper-M61nUilz.js +6 -0
- package/dist/{paper-CynH8ZuT.js.map → paper-M61nUilz.js.map} +1 -1
- package/dist/persist.types-D2m6wD-S.js +9 -0
- package/dist/persist.types-D2m6wD-S.js.map +1 -0
- package/dist/pop-CxXfytjk.js +6 -0
- package/dist/{pop-D2i9V_rG.js.map → pop-CxXfytjk.js.map} +1 -1
- package/dist/runtime/DataTooltips.d.ts +75 -0
- package/dist/runtime/PropertyControls.d.ts +15 -1
- package/dist/runtime/Sources.d.ts +16 -4
- package/dist/runtime/Styles.d.ts +11 -0
- package/dist/runtime/Themes.d.ts +10 -4
- package/dist/runtime/UIRuntime.d.ts +4 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/runtime.types.d.ts +18 -85
- package/dist/spell-By5Y3jKP.js +6 -0
- package/dist/{spell-BFtLICm7.js.map → spell-By5Y3jKP.js.map} +1 -1
- package/dist/{spell.theme-B7AU7SQX.js → spell.theme-DxGj7qHx.js} +2 -2
- package/dist/spell.theme-DxGj7qHx.js.map +1 -0
- package/dist/styles/CodeThemeFile.d.ts +73 -0
- package/dist/styles/StyleGenerator.d.ts +6 -0
- package/dist/styles/styles.en.d.ts +141 -3
- package/dist/styles/styles.types.d.ts +2 -0
- package/dist/{styles.en-RLpYiO5_.js → styles.en-CUUxNwHo.js} +71 -14
- package/dist/styles.en-CUUxNwHo.js.map +1 -0
- package/dist/styles.js +13 -13
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.js +54 -53
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.js +20 -19
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-ad.js +5 -4
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-breadcrumbs.js +15 -13
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.js +132 -125
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-calendar.js +208 -206
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.js +260 -98
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-checkbox.js +95 -81
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.js +25 -24
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-comment.js +14 -12
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-components.js +7 -6
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.js +24 -12
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-diagram.js +1328 -0
- package/dist/ui-diagram.js.map +1 -0
- package/dist/ui-dimension.js +779 -0
- package/dist/ui-dimension.js.map +1 -0
- package/dist/ui-dimmer.js +36 -34
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.js +7 -5
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.js +107 -105
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.js +36 -35
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.js +10 -9
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-example.js +63 -61
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-feed.js +12 -10
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-flag.js +10 -9
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.js +7 -6
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.js +244 -162
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.js +21 -18
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-icon-picker.js +46 -44
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.js +17 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-image.js +93 -55
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-include.js +18 -17
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.js +154 -112
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.js +152 -102
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.js +9 -8
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.js +115 -0
- package/dist/ui-json.js.map +1 -0
- package/dist/ui-keys.js +1 -1
- package/dist/ui-label.js +18 -15
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-list.js +7 -5
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.js +7 -6
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.js +975 -83
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.js +329 -196
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.js +20 -18
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-modal.js +46 -45
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.js +19 -18
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-page.js +8 -7
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.js +28 -17
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +66 -52
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder.js +21 -16
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.js +113 -84
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.js +9 -7
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.js +706 -203
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-quote.js +5 -4
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-rail.js +5 -4
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.js +31 -29
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-reveal.js +7 -6
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.js +324 -158
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-search.js +210 -168
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.js +124 -92
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-segment.js +15 -12
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-select.js +83 -81
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.js +86 -58
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-sidebar.js +59 -56
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.js +325 -0
- package/dist/ui-sides.js.map +1 -0
- package/dist/ui-site-nav.js +329 -0
- package/dist/ui-site-nav.js.map +1 -0
- package/dist/ui-site-tabs.js +177 -0
- package/dist/ui-site-tabs.js.map +1 -0
- package/dist/ui-slider.js +84 -81
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.js +7 -6
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.js +298 -0
- package/dist/ui-split-panel.js.map +1 -0
- package/dist/ui-stack.js +47 -23
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.js +15 -13
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-step.js +31 -29
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-sticky.js +7 -6
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-tab.js +230 -138
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.js +724 -162
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-terms.js +12 -10
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.js +53 -28
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-theme-editor.js +1018 -1545
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js +1493 -0
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +1 -0
- package/dist/ui-toast.js +45 -44
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.js +75 -74
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.js +51 -73
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.js +12 -11
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.js +676 -197
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree.js +625 -0
- package/dist/ui-tree.js.map +1 -0
- package/dist/ui-video.js +13 -11
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.js +26 -25
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.js +79 -78
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +28 -0
- package/dist/util/index.d.ts +5 -2
- package/dist/vocabulary/DefaultValues.d.ts +34 -0
- package/dist/vocabulary/SharedVocabulary.d.ts +4 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +7 -0
- package/dist/vocabulary/ValueSets.d.ts +18 -0
- package/dist/vocabulary/Vocabulary.d.ts +1 -0
- package/dist/vocabulary/defaults.generated.d.ts +6 -0
- package/dist/vocabulary/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/MarkdownEngine-CbuT9Mjc.js.map +0 -1
- package/dist/PrefStore-CeaTtjTz.js.map +0 -1
- package/dist/UIButton-XkfGqgh6.js +0 -6
- package/dist/UIButton-XkfGqgh6.js.map +0 -1
- package/dist/UIInput-BUudZstW.js +0 -6
- package/dist/UIInput-BUudZstW.js.map +0 -1
- package/dist/UIKeys-DJF2TIKE.js.map +0 -1
- package/dist/UILabel-C1jy3Yl8.js +0 -6
- package/dist/UILabel-C1jy3Yl8.js.map +0 -1
- package/dist/UIMenu-Btd-8V3A.js +0 -42
- package/dist/UIMenu-Btd-8V3A.js.map +0 -1
- package/dist/UIRuntime-BBuehGly.js.map +0 -1
- package/dist/components.es-DmLzT-Bq.js.map +0 -1
- package/dist/crisp-CoZRRDuQ.js +0 -6
- package/dist/fruity-CQFYeRlh.js +0 -6
- package/dist/fruity-CQFYeRlh.js.map +0 -1
- package/dist/fruity.theme-BJcMiPl1.js.map +0 -1
- package/dist/glass-CAfW11kL.js +0 -6
- package/dist/glass-CAfW11kL.js.map +0 -1
- package/dist/glass.theme-DQcBbtCW.js +0 -6
- package/dist/glass.theme-DQcBbtCW.js.map +0 -1
- package/dist/matrix-CqA59hiF.js +0 -6
- package/dist/matrix.theme-jqQZjcq3.js.map +0 -1
- package/dist/midnight-BnoVOrhC.js +0 -6
- package/dist/paper-CynH8ZuT.js +0 -6
- package/dist/persist.types-CsZxS8TG.js +0 -9
- package/dist/persist.types-CsZxS8TG.js.map +0 -1
- package/dist/pop-D2i9V_rG.js +0 -6
- package/dist/spell-BFtLICm7.js +0 -6
- package/dist/spell.theme-B7AU7SQX.js.map +0 -1
- package/dist/styles.en-RLpYiO5_.js.map +0 -1
- package/dist/ui-theme-menu-DyKZygpV.js +0 -921
- package/dist/ui-theme-menu-DyKZygpV.js.map +0 -1
package/dist/ui-panel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-panel.js","names":["E.proto","E.protoMerged","__name","panelCSS","__publicField","__decorateElement","__decoratorMetadata","__decoratorStart","__name$1","__runInitializers","sectionVocabulary","FoldIconPlace","COLOR_DESCRIPTION","FOLD_ICON_DESCRIPTION","panelVocabulary","spec","UIPanel_default","_defaultFoldIcon_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIPanel","UISection","proto","protoMerged","sub","SUB_PANEL","PANEL","UIPanel"],"sources":["../src/components/ui-panel/UIPanel.en.ts","../src/components/ui-panel/UIPanel.css?inline","../src/components/ui-panel/UIPanel.tsx","../src/components/ui-panel/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-panel>`: `<ui-section>`'s, under the panel's own tag, description and other names.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Built ON the section's: the same attributes, slots, parts, events, states and texts,\n * so it can't drift from what the component does,\n * and an attribute the section gains reaches the panel with no change here.\n * - Only `color` and `fold-icon` are described again, as the panel uses them.\n * - `color` keeps the section's value set (`hues`), so a hue a theme adds is accepted\n * (`spell-brand`'s `accent`, named by `packages/brand/src/hues.ts`).\n * - The same noun (`section`) and `ownsParts`: a panel nests in a section, and a section in a panel.\n * - The class words are the section's, then `panel` (and `sub` inside another panel):\n * `<ui-panel color=\"violet\">` => `ui violet panel section`.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport { sectionVocabulary } from \"spell/ui/components/ui-section/UISection.en\"\n\n// NOTE: above the vocabulary, which reads them as it's built\n\n/** `color`'s description, as the panel uses it. */\nconst COLOR_DESCRIPTION =\n \"Hue of the whole panel: the header band, the box, the border and the sub-head bands (sub-panels follow it). \" +\n \"None: `primary`. Any hue, including one a theme adds (`spell-brand`'s `accent`, Polished Ivory).\"\n\n/** `fold-icon`'s description, as the panel uses it: its default is `end`. */\nconst FOLD_ICON_DESCRIPTION =\n \"Where each band's open / close chevron sits: `end`, at the far end of the band after any actions (the panel's \" +\n \"default), or `start`, before the title.\"\n\n/****************\n * ### `panelVocabulary`\n * The names of `<ui-panel>`, a property panel: a tinted box with a full-width header band;\n * a panel inside it is a sub-head band. Every band can fold.\n ****************/\nexport const panelVocabulary = {\n ...sectionVocabulary,\n tag: \"ui-panel\",\n topics: [\"layout\", \"containers\"],\n aka: [\"inspector\", \"property panel\", \"properties\", \"settings panel\", \"fieldset\", \"property sheet\"],\n description:\n \"A panel is an inspector: a tinted box of fields under a header band, with sub-head bands that open and close. \" +\n \"It takes every `<ui-section>` attribute.\",\n attributes: sectionVocabulary.attributes.map((spec) =>\n spec.name === \"color\"\n ? { ...spec, description: COLOR_DESCRIPTION }\n : spec.name === \"fold-icon\"\n ? { ...spec, description: FOLD_ICON_DESCRIPTION }\n : spec\n )\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-panel>`: an inspector panel (the brand's Color Set Chooser and Theme Creator look),\n * drawn over `<ui-section>`'s shadow DOM. `UISection.css` comes first: the component adopts both, in that order.\n * - Markup (the section's): `section.ui.section.panel` > `.title` > `hN.heading` > `.toggle` (fold icon, icon,\n * header), then `.subhead`, then `.content`.\n * - No theme needed: every `--spell-*` brand role it reads has a plain `--ui-*` fallback, so under any theme it is a\n * primary-tinted box; `spell-brand` only refines the shadow and the ivory fallbacks.\n * - Top-level panel: a tinted box (16px padding, 16px radius, hairline, soft shadow); its title is a full-width\n * HEADER BAND across the top (bold sans 17px, chevron at the far end: the section's `fold-icon=\"end\"`,\n * the panel's default). `info`: the section's tip, under the band.\n * - `.sub` (a panel inside a panel): no box; its title is a full-width SUB-HEAD BAND (bold 12px capitals,\n * a hairline above), its content the fields under it. Bands sit `--ui-panel-band-space` (20px) under what's above\n * them, flush under a folded band.\n * - Layers: `ui.components.panel.*` are declared after the section's, so these rules win without\n * `!important`.\n * - Public tokens (`--ui-panel-*`) are never declared here: read through private aliases, so a value set on\n * `:root`, an ancestor or the DOM element reaches the box. Defaults: the panel's HUE (`color`, else `primary`).\n * - `color`: any hue (`violet`, `teal` ...), and `accent` (Polished Ivory: the `spell-brand` theme adds it,\n * and `packages/brand/src/hues.ts` the name; the hue lists below name it, as the one theme hue so far); none:\n * `primary` (Owen, 2026-10-04). The hue's remap (`--ui-color*`) paints the box: the header band its `background`,\n * the box and sub-head bands lighter mixes of it with the surface, the border and the text its own colours.\n * - Handed to sub-panels as `--_ui-panel-hue-*`: the section resets `--ui-color*` at its `<slot>` (so a field\n * inside isn't tinted), so a sub-panel without a `color` of its own takes its outer panel's this way.\n * - A hue the page has no tokens for (`accent` outside `spell-brand`) makes the `-hue-*` values invalid:\n * the last fallbacks (the brand's ivory roles, else plain surfaces) show.\n */\n\n@layer ui.components.panel.types, ui.components.panel.content, ui.components.panel.states;\n\n@layer ui.components.panel.types {\n /* No `color` on a top-level panel, or on a band with no panel around it (`loose`: a `<ui-property-group>` in a\n bare editor): `primary`'s mixes (a sub-panel without one follows its panel instead) */\n .ui.section.panel:is(:not(.sub), .loose):not(\n :is(\n .primary,\n .secondary,\n .red,\n .orange,\n .yellow,\n .olive,\n .green,\n .teal,\n .blue,\n .violet,\n .purple,\n .pink,\n .brown,\n .grey,\n .black,\n .accent\n )\n ) {\n --_ui-panel-hue-box: color-mix(in oklab, var(--ui-primary-background) 35%, var(--ui-surface));\n --_ui-panel-hue-border: color-mix(in oklab, var(--ui-primary) 28%, var(--ui-surface));\n --_ui-panel-hue-header: var(--ui-primary-background);\n --_ui-panel-hue-header-color: var(--ui-primary-header);\n --_ui-panel-hue-subhead: color-mix(in oklab, var(--ui-primary-background) 65%, var(--ui-surface));\n --_ui-panel-hue-subhead-color: var(--ui-primary-text);\n }\n\n /* A coloured panel hands its hue's mixes down (sub-panels inherit them; their own `color` overrides). */\n .ui.section.panel:is(\n .primary,\n .secondary,\n .red,\n .orange,\n .yellow,\n .olive,\n .green,\n .teal,\n .blue,\n .violet,\n .purple,\n .pink,\n .brown,\n .grey,\n .black,\n .accent\n ) {\n --_ui-panel-hue-box: color-mix(in oklab, var(--ui-color-background) 35%, var(--ui-surface));\n --_ui-panel-hue-border: color-mix(in oklab, var(--ui-color) 28%, var(--ui-surface));\n --_ui-panel-hue-header: var(--ui-color-background);\n --_ui-panel-hue-header-color: var(--ui-color-header);\n --_ui-panel-hue-subhead: color-mix(in oklab, var(--ui-color-background) 65%, var(--ui-surface));\n --_ui-panel-hue-subhead-color: var(--ui-color-text);\n }\n\n .ui.section.panel {\n /* the box (default: a light mix of the hue with the surface) */\n --_ui-panel-background: var(\n --ui-panel-background,\n var(--_ui-panel-hue-box, light-dark(var(--spell-accent-25, var(--ui-surface)), var(--ui-surface)))\n );\n /* the box edge and the hairline above each sub-head band */\n --_ui-panel-border-color: var(\n --ui-panel-border-color,\n var(--_ui-panel-hue-border, light-dark(var(--spell-accent-150, var(--ui-border-color)), var(--ui-border-color)))\n );\n /* the header band (default: the hue tint) */\n --_ui-panel-header-background: var(\n --ui-panel-header-background,\n var(\n --_ui-panel-hue-header,\n light-dark(var(--spell-accent-100, var(--ui-surface-strong)), var(--ui-surface-strong))\n )\n );\n /* the header band's text */\n --_ui-panel-header-color: var(\n --ui-panel-header-color,\n var(--_ui-panel-hue-header-color, var(--spell-text-strong, var(--ui-text-dark)))\n );\n /* each sub-head band (default: a mix of the hue tint with the surface) */\n --_ui-panel-subhead-background: var(\n --ui-panel-subhead-background,\n var(--_ui-panel-hue-subhead, light-dark(var(--spell-accent-75, var(--ui-surface-muted)), var(--ui-surface-muted)))\n );\n /* each sub-head band's text */\n --_ui-panel-subhead-color: var(\n --ui-panel-subhead-color,\n var(\n --_ui-panel-hue-subhead-color,\n light-dark(var(--spell-accent-800, var(--ui-text-muted)), var(--ui-text-muted))\n )\n );\n /* the box corners */\n --_ui-panel-radius: var(--ui-panel-radius, var(--ui-radius-l, 16px));\n /* the box padding, also the bands' side padding: the page's base size, never `1em`\n (a sub-panel's 14px content would shrink it; design-system I46) */\n --_ui-panel-padding: var(--ui-panel-padding, var(--ui-font-size, 16px));\n /* space between the fields: px, as `0.5em` was 7px at the content's 14px and 8px in a sub-panel */\n --_ui-panel-gap: var(--ui-panel-gap, 8px);\n /* space above each sub-head band (none under a folded one) */\n --_ui-panel-band-space: var(--ui-panel-band-space, 20px);\n /* the box shadow */\n --_ui-panel-shadow: var(--ui-panel-shadow, var(--spell-shadow-sm, var(--ui-shadow-raised)));\n }\n\n /* The box: the band's colours reach to its edges, so the band's corners follow the box's. */\n .ui.section.panel:not(.sub) {\n margin-block: 0;\n padding: var(--_ui-panel-padding);\n border: 1px solid var(--_ui-panel-border-color);\n border-radius: var(--_ui-panel-radius);\n background: var(--_ui-panel-background);\n box-shadow: var(--_ui-panel-shadow);\n font-family: var(--ui-font-family);\n }\n\n /* A sub-panel: no box of its own; it reaches the outer panel's edges (out through its padding). */\n .ui.section.panel.sub {\n margin-block: 0;\n margin-inline: calc(-1 * var(--_ui-panel-padding));\n padding: 0;\n border: none;\n background: none;\n box-shadow: none;\n }\n}\n\n@layer ui.components.panel.content {\n /* No rule under a band: a `dividing` section AROUND the panel hands its private `--_section-title-border` down\n (custom properties inherit through the slot), which would draw one in the hue */\n .ui.section.panel > .title {\n border-bottom: none;\n }\n\n /* ## Header band: across the top of the box, out through its padding */\n .ui.section.panel:not(.sub) > .title {\n margin: calc(-1 * var(--_ui-panel-padding));\n margin-block-end: 0;\n padding: 0.75em var(--_ui-panel-padding);\n border-radius: calc(var(--_ui-panel-radius) - 1px) calc(var(--_ui-panel-radius) - 1px) 0 0;\n background: var(--_ui-panel-header-background);\n color: var(--_ui-panel-header-color);\n }\n .ui.section.panel:not(.sub) > .title > .heading {\n font-family: var(--ui-font-family);\n font-size: 1.0625em;\n font-weight: 700;\n letter-spacing: -0.01em;\n line-height: 1;\n }\n\n /* ## Sub-head band: small capitals, a hairline above */\n .ui.section.panel.sub > .title {\n margin: 0;\n padding: 0.25em var(--_ui-panel-padding);\n border-top: 1px solid var(--_ui-panel-border-color);\n border-radius: 0;\n background: var(--_ui-panel-subhead-background);\n color: var(--_ui-panel-subhead-color);\n }\n .ui.section.panel.sub > .title > .heading,\n .ui.section.panel.sub > .title > .heading > .toggle {\n font-family: var(--ui-font-family);\n font-weight: 700;\n letter-spacing: 0.06em;\n line-height: 1.5;\n /* a `<button>` resets `text-transform`: set on the toggle too */\n text-transform: uppercase;\n }\n .ui.section.panel.sub > .title > .heading {\n font-size: 0.75em;\n }\n\n /* ## The chevron: small, quiet, at the far end of the band (the panel's default `fold-icon=\"end\"`, after any\n actions); `fold-icon=\"start\"` puts it back in the toggle, same size */\n .ui.section.panel > .title > .fold.icon,\n .ui.section.panel > .title > .heading > .toggle > .fold.icon {\n width: 0.6875em;\n height: 0.6875em;\n opacity: 0.55;\n transition:\n rotate var(--_ui-section-duration) var(--ui-ease),\n opacity var(--ui-duration-fast) var(--ui-ease);\n }\n .ui.section.panel > .title:has(> .heading:hover) > .fold.icon,\n .ui.section.panel > .title > .fold.icon:hover,\n .ui.section.panel > .title > .heading > .toggle:hover > .fold.icon {\n opacity: 1;\n }\n /* the sub-head band's heading text is 12px: its start chevron (in the toggle) stays the header band's size */\n .ui.section.panel.sub > .title > .heading > .toggle > .fold.icon {\n width: 0.9166em;\n height: 0.9166em;\n }\n\n /* ## Subhead text (`subhead`): small, muted, under the band */\n .ui.section.panel > .subhead {\n padding: 0.5em 0 0;\n font-size: 0.8125em;\n }\n .ui.section.panel.sub > .subhead {\n padding-inline: var(--_ui-panel-padding);\n }\n\n /* ## Content: fields in a column, 8px apart */\n .ui.section.panel > .content {\n /* handed to the sub-panels inside, for their band spacing (states, below) */\n --_ui-panel-outer-gap: var(--_ui-panel-gap);\n display: flex;\n flex-direction: column;\n gap: var(--_ui-panel-gap);\n font-size: 0.875em;\n }\n /* padding only while unfolded: the section's `.content[hidden]` rule (no padding) must keep winning */\n .ui.section.panel > .content:not([hidden]) {\n padding: 0.75em 0 0;\n }\n /* NOTE: no compounding of the 14px: every section root resets to `--ui-font-size` */\n .ui.section.panel.sub > .content:not([hidden]) {\n padding: 0.75em var(--_ui-panel-padding) 0.25em;\n }\n}\n\n@layer ui.components.panel.states {\n /* Folded: only the band shows; the box closes up under it */\n :host(:state(collapsed)) > .ui.section.panel:not(.sub) {\n padding-block-end: 0;\n }\n :host(:state(collapsed)) > .ui.section.panel:not(.sub) > .title {\n margin-block-end: 0;\n border-radius: calc(var(--_ui-panel-radius) - 1px);\n }\n\n /* A sub-panel's band: `--ui-panel-band-space` (20px) under whatever is above it, the outer panel's gap included;\n flush under a folded band (that one pulls the next up by the same space). On the inner root, as below. */\n :host(:not(:first-child)) > .ui.section.panel.sub {\n margin-block-start: calc(var(--_ui-panel-band-space) - var(--_ui-panel-outer-gap, 0px));\n }\n :host(:state(collapsed):not(:last-child)) > .ui.section.panel.sub {\n margin-block-end: calc(-1 * var(--_ui-panel-band-space));\n }\n\n /* A folded LAST sub-panel: its band closes the outer box, out through the outer padding, rounded to its corners.\n - on the inner root, not the DOM element: the outer panel's `::slotted(:last-child)` zeroes the DOM element's\n margin, and an outer rule beats a `:host` one.\n The DOM element is a flex item (its own formatting context), so the root's negative margin shortens it. */\n :host(:last-child:state(collapsed)) > .ui.section.panel.sub {\n margin-block-end: calc(-1 * var(--_ui-panel-padding));\n }\n /* ... and the outer content, which clips while the section animates (`overflow-y: clip`, for the fold), lets it\n show in its padding.\n - BOTH axes clip: Chrome honours `overflow-clip-margin` only then; the margin also covers the sub-panels'\n bands, which reach out sideways through the same padding\n - only where the section clips (`:state(animated)`, motion allowed, not `scrolling`): WebKit has no\n `overflow-clip-margin`, and no `interpolate-size` either, so there the content never clips and the bands\n reach the box's edges\n - the box's alias, inherited: already px (`--ui-font-size`), so it stays the box padding at the content's\n 14px */\n @media (prefers-reduced-motion: no-preference) {\n :host(:state(animated)) > .ui.section.panel:not(.sub):not(.scrolling) > .content {\n overflow: clip;\n overflow-clip-margin: var(--_ui-panel-padding);\n }\n }\n :host(:last-child:state(collapsed)) > .ui.section.panel.sub > .title {\n border-radius: 0 0 calc(var(--_ui-panel-radius) - 1px) calc(var(--_ui-panel-radius) - 1px);\n }\n}\n","import { E } from \"spell/ui/core\"\n// the family barrel, not the leaf:\n// the lib build then imports `ui-section.js` instead of splitting a shared chunk\n// (SIDE EFFECT: defines `<ui-section>` / `<ui-sections>`, which panels nest in and hold)\nimport { UISection } from \"spell/ui/components/ui-section\"\nimport { FoldIconPlace, type SectionVocabulary } from \"spell/ui/components/ui-section/UISection.types\"\nimport { panelVocabulary } from \"./UIPanel.en\"\n\nimport panelCSS from \"./UIPanel.css?inline\"\n\n/****************\n * ### `UIPanel`\n * The component behind `<ui-panel>`: a property panel, as in the brand's inspector\n * (the Color Set Chooser's left column).\n *\n * - A tinted box whose title is a full-width HEADER BAND, over its fields.\n * - A panel inside a panel is a SUB-HEAD BAND (small capitals) over its own fields.\n * - Every band can fold.\n * - It IS a `<ui-section>` (it extends `UISection`): the same attributes, slots, parts,\n * events and folding (`collapsible`, `open`, `ui-opening` / `ui-closing`, find-in-page, `source`).\n * - Its vocabulary is built on the section's (`UIPanel.en.ts`),\n * so an attribute the section gains reaches the panel too.\n * - Only the look differs: `UIPanel.css`, adopted after the section's sheet.\n * - Classes: `ui … panel section`, plus `sub` (before the noun too) when the section around it is a panel.\n * - The chevron sits at the far end of each band, after any actions:\n * the section's `fold-icon=\"end\"` is the panel's default (`defaultFoldIcon`).\n * `info` puts the section's tip under a band.\n * - `color`: any hue, a theme's too (`spell-brand`'s `accent`); no `color`: `primary`.\n * The sheet paints the box, bands, border and text from it,\n * and hands it to the sub-panels that have no `color` of their own.\n * - Tokens (`--ui-panel-*`, read through private aliases):\n * background, border colour, header and sub-head bands, radius, padding, gap, band space, shadow.\n * Their defaults come from the panel's hue, with a plain `--ui-*` value under every `spell-brand` role,\n * so it needs no brand theme.\n * - A folded LAST sub-panel closes the outer box: its band reaches the bottom edge (`:host(:last-child)`).\n ****************/\nexport class UIPanel extends UISection {\n // the section's names under the panel's tag: same shape, but TypeScript only knows the section's literals\n @E.proto static vocabulary = panelVocabulary as unknown as SectionVocabulary\n // a base class too (`<ui-property-group>` is a panel band): typed as one, so a subclass may state other keys\n @E.protoMerged static elementSetup: Partial<E.ElementSetup> = {\n styleSheets: { ...UISection.prototype.elementSetup.styleSheets, panel: panelCSS }\n }\n // the band's chevron at its far end, after any actions (`fold-icon=\"start\"` moves it back)\n @E.proto static defaultFoldIcon = FoldIconPlace.end\n\n /** `panel`, and `sub` inside another panel. */\n protected get extraClass(): string | undefined {\n const sub = this.enclosingSection instanceof UIPanel ? SUB_PANEL : undefined\n return [super.extraClass, PANEL, sub].filter(Boolean).join(\" \")\n }\n}\n\n/** Class word added before the section's noun: `ui ... panel section`. */\nconst PANEL = \"panel\"\n\n/** Class word of a panel inside a panel: drawn as a sub-head band. */\nconst SUB_PANEL = \"sub\"\n","/**\n * The panel family: defines `<ui-panel>` and exports its component, `UIPanel`.\n * - SIDE EFFECT: importing it defines the tag.\n * `UIPanel` imports the section family first, which defines `<ui-sections>` and `<ui-section>`:\n * a panel extends the section, and nests in one.\n * - Also the library's `spell/ui/ui-panel` entry (its size is in `notes/report.md`).\n */\n\nimport { UIPanel } from \"./UIPanel\"\n\nUIPanel.define()\n\nexport { UIPanel }\n"],"mappings":";;;;AAoBA,IAAMY,IACJ,oNAIIC,IACJ,0JAQWC,IAAkB;CAC7B,GAAGJ;CACH,KAAK;CACL,QAAQ,CAAC,UAAU,YAAY;CAC/B,KAAK;EAAC;EAAa;EAAkB;EAAc;EAAkB;EAAY;CAAgB;CACjG,aACE;CAEF,YAAYA,EAAkB,WAAW,KAAK,MAC5CK,EAAK,SAAS,UACV;EAAE,GAAGA;EAAM,aAAaH;CAAkB,IAC1CG,EAAK,SAAS,cACZ;EAAE,GAAGA;EAAM,aAAaF;CAAsB,IAC9CE,CACR;AACF,uqLEjDAE,GAAAC,GAAAC,GAAAC,GAAAC,GAoCaC,IAAN,MAAM,kBAAgB,IAAAC,GAE3B,IAAA,CAACvB,CAAE,GAEH,IAAA,CAACC,CAAE,GAIH,IAAA,CAACD,CAAE,GARwBoB,EAAA,CAAU;CAWrC,IAAc,aAAiC;EAC7C,IAAMM,IAAM,KAAK,4BAA4B,WAAUC,IAAY,KAAA;EACnE,OAAO;GAAC,MAAM;GAAYC;GAAOF;EAAG,CAAA,CAAE,OAAO,OAAO,CAAA,CAAE,KAAK,GAAG;CAChE;AACF;AAfO,IAAAnB,EAAAa,CAAA,GAEIf,EAAAgB,GAAA,IAAO,cAAhBF,GAFWG,CAAA,GAIIjB,EAAAgB,GAAA,IAAO,gBAAtBH,GAJWI,CAAA,GAQFjB,EAAAgB,GAAA,IAAO,mBAAhBJ,GARWK,CAAA,GAANhB,EAAAe,GAAMC,CAAA,GAA0BpB,EAAAoB,GAAA,SAAA,GAE5BlB,EAFEkB,GAEK,cAAab,EAApBY,GAAA,GAFEC,GAEkBR,CAAA,CAAA,GAApBL,EAAAY,GAAA,IAFEC,CAAA,GAIIlB,EAJJkB,GAIW,gBAAwCb,EAA/CY,GAAA,IAJJC,GAImD,EAC5D,aAAa;CAAE,GAAGC,EAAU,UAAU,aAAa;CAAa,OAAOpB;AAAS,EAClF,CAAA,CAAA,GAFeM,EAAAY,GAAA,IAJJC,CAAA,GAQFlB,EAREkB,GAQK,mBAAkBb,EAAzBY,GAAA,IAREC,GAQuBX,EAAc,GAAA,CAAA,GAAvCF,EAAAY,GAAA,IAREC,CAAA;AAAN,IAAMO,IAANP,GAkBDM,IAAQ,SAGRD,IAAY;;;AC/ClBE,EAAQ,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-panel.js","names":["E.proto","E.protoMerged","E.cssState","__name","panelCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__decoratorStart","sectionVocabulary","FoldIconPlace","PANE_APPEARANCE","COLOR_DESCRIPTION","FOLD_ICON_DESCRIPTION","APPEARANCE_DESCRIPTION","panelVocabulary","spec","UIPanel_default","_isPane_dec","_defaultFoldIcon_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIPanel","UISection","proto","protoMerged","cssState","sub","SUB_PANEL","PANEL","UIPanel"],"sources":["../src/components/ui-panel/UIPanel.en.ts","../src/components/ui-panel/UIPanel.css?inline","../src/components/ui-panel/UIPanel.tsx","../src/components/ui-panel/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-panel>`: `<ui-section>`'s, under the panel's own tag, description and other names.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Built ON the section's: the same attributes, slots, parts, events, states and texts,\n * so it can't drift from what the component does,\n * and an attribute the section gains reaches the panel with no change here.\n * - Only `color` and `fold-icon` are described again, as the panel uses them.\n * - `color` keeps the section's value set (`hues`), so a hue a theme adds is accepted\n * (`spell-brand`'s `accent`, named by `packages/brand/src/hues.ts`).\n * - The same noun (`section`) and `ownsParts`: a panel nests in a section, and a section in a panel.\n * - The class words are the section's, then `panel` (and `sub` inside another panel):\n * `<ui-panel color=\"violet\">` => `ui violet panel section`.\n * - `appearance` gains `pane`, which only the panel draws.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport { sectionVocabulary } from \"spell/ui/components/ui-section/UISection.en\"\n\n// NOTE: above the vocabulary, which reads them as it's built\n\n/** The `appearance` word for a whole pane under one bar. */\nexport const PANE_APPEARANCE = \"pane\"\n\n/** `color`'s description, as the panel uses it. */\nconst COLOR_DESCRIPTION =\n \"Hue of the whole panel: the header band, the box, the border and the sub-head bands (sub-panels follow it). \" +\n \"None: `primary`. Any hue, including one a theme adds (`spell-brand`'s `accent`, Polished Ivory).\"\n\n/** `fold-icon`'s description, as the panel uses it: its default is `end`. */\nconst FOLD_ICON_DESCRIPTION =\n \"Where each band's open / close chevron sits: `end`, at the far end of the band after any actions (the panel's \" +\n \"default), or `start`, before the title.\"\n\n/** `appearance`'s description, as the panel uses it: the section's words, and `pane`. */\nconst APPEARANCE_DESCRIPTION =\n \"The look: `pane`, a whole pane under one flat bar, with no box or padding of its own: its title is the bar \" +\n \"and its content fills what's left, so it can scroll by itself. \" +\n \"Put a toolbar in its `slot=\\\"actions\\\"`, and the bar's chevron, the toolbar's items and its actions read as one row. \" +\n \"Closed, only the bar is left. The section's words too: `bordered`, `styled`, `raised`, `basic`, `drawer`.\"\n\n/****************\n * ### `panelVocabulary`\n * The names of `<ui-panel>`, a property panel: a tinted box with a full-width header band;\n * a panel inside it is a sub-head band. Every band can fold.\n ****************/\nexport const panelVocabulary = {\n ...sectionVocabulary,\n tag: \"ui-panel\",\n icon: \"window maximize outline\",\n topics: [\"layout\", \"containers\"],\n aka: [\"inspector\", \"property panel\", \"properties\", \"settings panel\", \"fieldset\", \"property sheet\"],\n description:\n \"A panel is an inspector: a tinted box of fields under a header band, with sub-head bands that open and close. \" +\n \"It takes every `<ui-section>` attribute.\",\n attributes: sectionVocabulary.attributes.map((spec) =>\n spec.name === \"color\"\n ? { ...spec, description: COLOR_DESCRIPTION }\n : spec.name === \"fold-icon\"\n ? { ...spec, description: FOLD_ICON_DESCRIPTION }\n : spec.name === \"appearance\"\n ? { ...spec, values: [...spec.values, PANE_APPEARANCE], description: APPEARANCE_DESCRIPTION }\n : spec\n )\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-panel>`: an inspector panel (the brand's Color Set Chooser and Theme Creator look),\n * drawn over `<ui-section>`'s shadow DOM. `UISection.css` comes first: the component adopts both, in that order.\n * - Markup (the section's): `section.ui.section.panel` > `.title` > `hN.heading` > `.toggle` (fold icon, icon,\n * header), then `.subhead`, then `.content`.\n * - No theme needed: every `--spell-*` brand role it reads has a plain `--ui-*` fallback, so under any theme it is a\n * primary-tinted box; `spell-brand` only refines the shadow and the ivory fallbacks.\n * - Top-level panel: a tinted box (16px padding, 16px radius, hairline, soft shadow); its title is a full-width\n * HEADER BAND across the top (bold sans 17px, chevron at the far end: the section's `fold-icon=\"end\"`,\n * the panel's default). `info`: the section's tip, under the band.\n * - `.sub` (a panel inside a panel): no box; its title is a full-width SUB-HEAD BAND (bold 12px capitals,\n * a hairline above), its content the fields under it. Bands sit `--ui-panel-band-space` (20px) under what's above\n * them, flush under a folded band.\n * - `appearance=\"pane\"` (`:state(pane)`): a whole pane under one flat bar, no box. `--ui-panel-pane-bar-height`\n * (default: the theme's control height and 6px round it, at least 40px),\n * `--ui-panel-pane-bar-background`, `--ui-panel-pane-bar-padding`.\n * - `--ui-panel-pane-window-room`, `-window-radius`: how a window's panes meet its edges, for a theme: the room left there and\n * the corners there, so `0` and `0` attach them; read by the page that lays the panes out (the editor: `EditorTheme.css`),\n * floating by default.\n * - `--ui-panel-pane-background`, `-border-color`, `-filter`, `-header-background`: a theme's glass for a window's pane.\n * An app's own panes read them, and so Glass and Fruity need nothing in the app (the editor's `EditorTheme.css`).\n * - Layers: `ui.components.panel.*` are declared after the section's, so these rules win without\n * `!important`.\n * - Public tokens (`--ui-panel-*`) are never declared here: read through private aliases, so a value set on\n * `:root`, an ancestor or the DOM element reaches the box. Defaults: the panel's HUE (`color`, else `primary`).\n * - `color`: any hue (`violet`, `teal` ...), and `accent` (Polished Ivory: the `spell-brand` theme adds it,\n * and `packages/brand/src/hues.ts` the name; the hue lists below name it, as the one theme hue so far); none:\n * `primary` (Owen, 2026-10-04). The hue's remap (`--ui-color*`) paints the box: the header band its `background`,\n * the box and sub-head bands lighter mixes of it with the surface, the border and the text its own colours.\n * - Handed to sub-panels as `--_ui-panel-hue-*`: the section resets `--ui-color*` at its `<slot>` (so a field\n * inside isn't tinted), so a sub-panel without a `color` of its own takes its outer panel's this way.\n * - A hue the page has no tokens for (`accent` outside `spell-brand`) makes the `-hue-*` values invalid:\n * the last fallbacks (the brand's ivory roles, else plain surfaces) show.\n */\n\n@layer ui.components.panel.types, ui.components.panel.content, ui.components.panel.states;\n\n@layer ui.components.panel.types {\n /* No `color` on a top-level panel, or on a band with no panel around it (`loose`: a `<ui-property-group>` in a\n bare editor): `primary`'s mixes (a sub-panel without one follows its panel instead) */\n .ui.section.panel:is(:not(.sub), .loose):not(\n :is(\n .primary,\n .secondary,\n .red,\n .orange,\n .yellow,\n .olive,\n .green,\n .teal,\n .blue,\n .violet,\n .purple,\n .pink,\n .brown,\n .grey,\n .black,\n .accent\n )\n ) {\n --_ui-panel-hue-box: color-mix(in oklab, var(--ui-primary-background) 35%, var(--ui-surface));\n --_ui-panel-hue-border: color-mix(in oklab, var(--ui-primary) 28%, var(--ui-surface));\n --_ui-panel-hue-header: var(--ui-primary-background);\n --_ui-panel-hue-header-color: var(--ui-primary-header);\n --_ui-panel-hue-subhead: color-mix(in oklab, var(--ui-primary-background) 65%, var(--ui-surface));\n --_ui-panel-hue-subhead-color: var(--ui-primary-text);\n }\n\n /* A coloured panel hands its hue's mixes down (sub-panels inherit them; their own `color` overrides). */\n .ui.section.panel:is(\n .primary,\n .secondary,\n .red,\n .orange,\n .yellow,\n .olive,\n .green,\n .teal,\n .blue,\n .violet,\n .purple,\n .pink,\n .brown,\n .grey,\n .black,\n .accent\n ) {\n --_ui-panel-hue-box: color-mix(in oklab, var(--ui-color-background) 35%, var(--ui-surface));\n --_ui-panel-hue-border: color-mix(in oklab, var(--ui-color) 28%, var(--ui-surface));\n --_ui-panel-hue-header: var(--ui-color-background);\n --_ui-panel-hue-header-color: var(--ui-color-header);\n --_ui-panel-hue-subhead: color-mix(in oklab, var(--ui-color-background) 65%, var(--ui-surface));\n --_ui-panel-hue-subhead-color: var(--ui-color-text);\n }\n\n .ui.section.panel {\n /* the box (default: a light mix of the hue with the surface) */\n --_ui-panel-background: var(\n --ui-panel-background,\n var(--_ui-panel-hue-box, light-dark(var(--spell-accent-25, var(--ui-surface)), var(--ui-surface)))\n );\n /* the box edge and the hairline above each sub-head band */\n --_ui-panel-border-color: var(\n --ui-panel-border-color,\n var(--_ui-panel-hue-border, light-dark(var(--spell-accent-150, var(--ui-border-color)), var(--ui-border-color)))\n );\n /* the header band (default: the hue tint) */\n --_ui-panel-header-background: var(\n --ui-panel-header-background,\n var(\n --_ui-panel-hue-header,\n light-dark(var(--spell-accent-100, var(--ui-surface-strong)), var(--ui-surface-strong))\n )\n );\n /* the header band's text */\n --_ui-panel-header-color: var(\n --ui-panel-header-color,\n var(--_ui-panel-hue-header-color, var(--spell-text-strong, var(--ui-text-dark)))\n );\n /* each sub-head band (default: a mix of the hue tint with the surface) */\n --_ui-panel-subhead-background: var(\n --ui-panel-subhead-background,\n var(--_ui-panel-hue-subhead, light-dark(var(--spell-accent-75, var(--ui-surface-muted)), var(--ui-surface-muted)))\n );\n /* each sub-head band's text */\n --_ui-panel-subhead-color: var(\n --ui-panel-subhead-color,\n var(\n --_ui-panel-hue-subhead-color,\n light-dark(var(--spell-accent-800, var(--ui-text-muted)), var(--ui-text-muted))\n )\n );\n /* the box corners */\n --_ui-panel-radius: var(--ui-panel-radius, var(--ui-radius-l, 16px));\n /* the box padding, also the bands' side padding: the page's base size, never `1em`\n (a sub-panel's 14px content would shrink it; design-system I46) */\n --_ui-panel-padding: var(--ui-panel-padding, var(--ui-font-size, 16px));\n /* space between the fields: px, as `0.5em` was 7px at the content's 14px and 8px in a sub-panel */\n --_ui-panel-gap: var(--ui-panel-gap, 8px);\n /* space above each sub-head band (none under a folded one) */\n --_ui-panel-band-space: var(--ui-panel-band-space, 20px);\n /* the box shadow */\n --_ui-panel-shadow: var(--ui-panel-shadow, var(--spell-shadow-sm, var(--ui-shadow-raised)));\n }\n\n /* The box: the band's colours reach to its edges, so the band's corners follow the box's. */\n .ui.section.panel:not(.sub) {\n margin-block: 0;\n padding: var(--_ui-panel-padding);\n border: 1px solid var(--_ui-panel-border-color);\n border-radius: var(--_ui-panel-radius);\n background: var(--_ui-panel-background);\n box-shadow: var(--_ui-panel-shadow);\n font-family: var(--ui-font-family);\n }\n\n /* A sub-panel: no box of its own; it reaches the outer panel's edges (out through its padding). */\n .ui.section.panel.sub {\n margin-block: 0;\n margin-inline: calc(-1 * var(--_ui-panel-padding));\n padding: 0;\n border: none;\n background: none;\n box-shadow: none;\n }\n}\n\n@layer ui.components.panel.content {\n /* No rule under a band: a `dividing` section AROUND the panel hands its private `--_section-title-border` down\n (custom properties inherit through the slot), which would draw one in the hue */\n .ui.section.panel > .title {\n border-bottom: none;\n }\n\n /* ## Header band: across the top of the box, out through its padding */\n .ui.section.panel:not(.sub) > .title {\n margin: calc(-1 * var(--_ui-panel-padding));\n margin-block-end: 0;\n padding: 0.75em var(--_ui-panel-padding);\n border-radius: calc(var(--_ui-panel-radius) - 1px) calc(var(--_ui-panel-radius) - 1px) 0 0;\n background: var(--_ui-panel-header-background);\n color: var(--_ui-panel-header-color);\n }\n .ui.section.panel:not(.sub) > .title > .heading {\n font-family: var(--ui-font-family);\n font-size: 1.0625em;\n font-weight: 700;\n letter-spacing: -0.01em;\n line-height: 1;\n }\n\n /* ## Sub-head band: small capitals, a hairline above */\n .ui.section.panel.sub > .title {\n margin: 0;\n padding: 0.25em var(--_ui-panel-padding);\n border-top: 1px solid var(--_ui-panel-border-color);\n border-radius: 0;\n background: var(--_ui-panel-subhead-background);\n color: var(--_ui-panel-subhead-color);\n }\n .ui.section.panel.sub > .title > .heading,\n .ui.section.panel.sub > .title > .heading > .toggle {\n font-family: var(--ui-font-family);\n font-weight: 700;\n letter-spacing: 0.06em;\n line-height: 1.5;\n /* a `<button>` resets `text-transform`: set on the toggle too */\n text-transform: uppercase;\n }\n .ui.section.panel.sub > .title > .heading {\n font-size: 0.75em;\n }\n\n /* ## The chevron: small, quiet, at the far end of the band (the panel's default `fold-icon=\"end\"`, after any\n actions); `fold-icon=\"start\"` puts it back in the toggle, same size */\n .ui.section.panel > .title > .fold.icon,\n .ui.section.panel > .title > .heading > .toggle > .fold.icon {\n width: 0.6875em;\n height: 0.6875em;\n opacity: 0.55;\n transition:\n rotate var(--_ui-section-duration) var(--ui-ease),\n opacity var(--ui-duration-fast) var(--ui-ease);\n }\n .ui.section.panel > .title:has(> .heading:hover) > .fold.icon,\n .ui.section.panel > .title > .fold.icon:hover,\n .ui.section.panel > .title > .heading > .toggle:hover > .fold.icon {\n opacity: 1;\n }\n /* the sub-head band's heading text is 12px: its start chevron (in the toggle) stays the header band's size */\n .ui.section.panel.sub > .title > .heading > .toggle > .fold.icon {\n width: 0.9166em;\n height: 0.9166em;\n }\n\n /* ## Subhead text (`subhead`): small, muted, under the band */\n .ui.section.panel > .subhead {\n padding: 0.5em 0 0;\n font-size: 0.8125em;\n }\n .ui.section.panel.sub > .subhead {\n padding-inline: var(--_ui-panel-padding);\n }\n\n /* ## Content: fields in a column, 8px apart */\n .ui.section.panel > .content {\n /* handed to the sub-panels inside, for their band spacing (states, below) */\n --_ui-panel-outer-gap: var(--_ui-panel-gap);\n display: flex;\n flex-direction: column;\n gap: var(--_ui-panel-gap);\n font-size: 0.875em;\n }\n /* padding only while unfolded: the section's `.content[hidden]` rule (no padding) must keep winning */\n .ui.section.panel > .content:not([hidden]) {\n padding: 0.75em 0 0;\n }\n /* NOTE: no compounding of the 14px: every section root resets to `--ui-font-size` */\n .ui.section.panel.sub > .content:not([hidden]) {\n padding: 0.75em var(--_ui-panel-padding) 0.25em;\n }\n}\n\n/*\n * ## A pane (`appearance=\"pane\"`): one flat bar over the rest of the box\n * - The chevron, whatever's in `slot=\"actions\"` and any toolbar's actions share the bar's one centre line.\n * - The bar is the same height closed as open: only its hairline goes.\n */\n@layer ui.components.panel.content {\n :host(:state(pane)) {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n height: 100%;\n }\n .ui.pane.section.panel:not(.sub) {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n border: 0;\n border-radius: 0;\n background: none;\n box-shadow: none;\n }\n /* a pane's bar never sticks: the sticky title's marker would pull the bar up a pixel out of its row */\n .ui.pane.section.panel > .sentinel {\n display: none;\n }\n .ui.pane.section.panel:not(.sub) > .title {\n flex: none;\n box-sizing: border-box;\n align-items: center;\n gap: 0;\n height: var(--ui-panel-pane-bar-height, max(40px, calc(var(--ui-control-height, 0px) + 12px)));\n margin: 0;\n padding-block: 0;\n padding-inline: var(--ui-panel-pane-bar-padding, 6px 8px);\n border-bottom: 1px solid var(--ui-border-color);\n border-radius: 0;\n background: var(--ui-panel-pane-bar-background, none);\n color: var(--ui-text-color);\n }\n .ui.pane.section.panel > .title > .heading {\n flex: none;\n margin: 0;\n font-size: 13px;\n }\n /* no way to fold it: the bar starts with what's in it, and its label is for screen readers (epic `editor` P2) */\n .ui.pane.section.panel:not(:has(> .title > .heading > button.toggle)) > .title {\n padding-inline: var(--ui-panel-pane-bar-padding, 8px);\n }\n .ui.pane.section.panel:not(:has(> .title > .heading > button.toggle)) > .title > .heading {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n /* the chevron's button: as little room round it as a press can take (Owen: \"Less padding around the disclosure\n triangle\"); round when hovered, as what's beside it */\n .ui.pane.section.panel > .title > .heading > .toggle {\n display: inline-grid;\n place-items: center;\n justify-content: center;\n grid-auto-flow: column;\n gap: 0;\n width: 14px;\n min-width: 14px;\n height: 16px;\n padding: 0;\n border-radius: var(--ui-radius-pill, 9999px);\n color: var(--ui-text-muted);\n }\n .ui.pane.section.panel > .title > .heading > .toggle:hover {\n background: oklch(from var(--ui-ink) l c h / 0.08);\n color: var(--ui-text-color);\n }\n .ui.pane.section.panel > .title > .heading > .toggle > .fold.icon {\n width: 10px;\n height: 10px;\n margin: 0;\n opacity: 1;\n }\n /* the label's for screen readers: what the bar says is in its actions */\n .ui.pane.section.panel > .title > .heading > .toggle > .header {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n /* what's in the actions slot takes the rest of the bar */\n .ui.pane.section.panel > .title > .actions {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n min-width: 0;\n margin-inline-start: 2px;\n }\n .ui.pane.section.panel > .title > .actions ::slotted(*) {\n flex: 1 1 auto;\n min-width: 0;\n }\n .ui.pane.section.panel > .content {\n flex: 1 1 auto;\n display: flex;\n flex-direction: column;\n min-height: 0;\n font-size: 1em;\n }\n .ui.pane.section.panel > .content:not([hidden]) {\n padding: 0;\n }\n :host(:state(pane):state(collapsed)) > .ui.pane.section.panel:not(.sub) > .title {\n border-bottom: 0;\n border-radius: 0;\n }\n}\n\n@layer ui.components.panel.states {\n /* Folded: only the band shows; the box closes up under it */\n :host(:state(collapsed)) > .ui.section.panel:not(.sub) {\n padding-block-end: 0;\n }\n :host(:state(collapsed)) > .ui.section.panel:not(.sub) > .title {\n margin-block-end: 0;\n border-radius: calc(var(--_ui-panel-radius) - 1px);\n }\n\n /* A sub-panel's band: `--ui-panel-band-space` (20px) under whatever is above it, the outer panel's gap included;\n flush under a folded band (that one pulls the next up by the same space). On the inner root, as below. */\n :host(:not(:first-child)) > .ui.section.panel.sub {\n margin-block-start: calc(var(--_ui-panel-band-space) - var(--_ui-panel-outer-gap, 0px));\n }\n :host(:state(collapsed):not(:last-child)) > .ui.section.panel.sub {\n margin-block-end: calc(-1 * var(--_ui-panel-band-space));\n }\n\n /* A folded LAST sub-panel: its band closes the outer box, out through the outer padding, rounded to its corners.\n - on the inner root, not the DOM element: the outer panel's `::slotted(:last-child)` zeroes the DOM element's\n margin, and an outer rule beats a `:host` one.\n The DOM element is a flex item (its own formatting context), so the root's negative margin shortens it. */\n :host(:last-child:state(collapsed)) > .ui.section.panel.sub {\n margin-block-end: calc(-1 * var(--_ui-panel-padding));\n }\n /* ... and the outer content, which clips while the section animates (`overflow-y: clip`, for the fold), lets it\n show in its padding.\n - BOTH axes clip: Chrome honours `overflow-clip-margin` only then; the margin also covers the sub-panels'\n bands, which reach out sideways through the same padding\n - only where the section clips (`:state(animated)`, motion allowed, not `scrolling`): WebKit has no\n `overflow-clip-margin`, and no `interpolate-size` either, so there the content never clips and the bands\n reach the box's edges\n - the box's alias, inherited: already px (`--ui-font-size`), so it stays the box padding at the content's\n 14px */\n @media (prefers-reduced-motion: no-preference) {\n :host(:state(animated)) > .ui.section.panel:not(.sub):not(.scrolling) > .content {\n overflow: clip;\n overflow-clip-margin: var(--_ui-panel-padding);\n }\n }\n :host(:last-child:state(collapsed)) > .ui.section.panel.sub > .title {\n border-radius: 0 0 calc(var(--_ui-panel-radius) - 1px) calc(var(--_ui-panel-radius) - 1px);\n }\n}\n","import { E } from \"spell/ui/core\"\n// the family barrel, not the leaf:\n// the lib build then imports `ui-section.js` instead of splitting a shared chunk\n// (SIDE EFFECT: defines `<ui-section>` / `<ui-sections>`, which panels nest in and hold)\nimport { UISection } from \"spell/ui/components/ui-section\"\nimport { FoldIconPlace, type SectionVocabulary } from \"spell/ui/components/ui-section/UISection.types\"\nimport { PANE_APPEARANCE, panelVocabulary } from \"./UIPanel.en\"\n\nimport panelCSS from \"./UIPanel.css?inline\"\n\n/****************\n * ### `UIPanel`\n * The component behind `<ui-panel>`: a property panel, as in the brand's inspector\n * (the Color Set Chooser's left column).\n *\n * - A tinted box whose title is a full-width HEADER BAND, over its fields.\n * - A panel inside a panel is a SUB-HEAD BAND (small capitals) over its own fields.\n * - Every band can fold.\n * - It IS a `<ui-section>` (it extends `UISection`): the same attributes, slots, parts,\n * events and folding (`collapsible`, `open`, `ui-opening` / `ui-closing`, find-in-page, `source`).\n * - Its vocabulary is built on the section's (`UIPanel.en.ts`),\n * so an attribute the section gains reaches the panel too.\n * - Only the look differs: `UIPanel.css`, adopted after the section's sheet.\n * - Classes: `ui … panel section`, plus `sub` (before the noun too) when the section around it is a panel.\n * - The chevron sits at the far end of each band, after any actions:\n * the section's `fold-icon=\"end\"` is the panel's default (`defaultFoldIcon`).\n * `info` puts the section's tip under a band.\n * - `color`: any hue, a theme's too (`spell-brand`'s `accent`); no `color`: `primary`.\n * The sheet paints the box, bands, border and text from it,\n * and hands it to the sub-panels that have no `color` of their own.\n * - Tokens (`--ui-panel-*`, read through private aliases):\n * background, border colour, header and sub-head bands, radius, padding, gap, band space, shadow.\n * Their defaults come from the panel's hue, with a plain `--ui-*` value under every `spell-brand` role,\n * so it needs no brand theme.\n * - A folded LAST sub-panel closes the outer box: its band reaches the bottom edge (`:host(:last-child)`).\n * - `appearance=\"pane\"` (`:state(pane)`): a whole pane under one flat bar, rather than a box:\n * the title is the bar, 40px with a hairline; the content fills what's left, so it can scroll by itself.\n * - A `<ui-toolbar appearance=\"segmented header\">` in `slot=\"actions\"` takes the rest of the bar.\n * - So the same widget is a pane's header wherever one's needed, folding or not.\n ****************/\nexport class UIPanel extends UISection {\n // the section's names under the panel's tag: same shape, but TypeScript only knows the section's literals\n @E.proto static vocabulary = panelVocabulary as unknown as SectionVocabulary\n // a base class too (`<ui-property-group>` is a panel band): typed as one, so a subclass may state other keys\n @E.protoMerged static elementSetup: Partial<E.ElementSetup> = {\n styleSheets: { ...UISection.prototype.elementSetup.styleSheets, panel: panelCSS }\n }\n // the band's chevron at its far end, after any actions (`fold-icon=\"start\"` moves it back)\n @E.proto static defaultFoldIcon = FoldIconPlace.end\n\n /** A whole pane under one flat bar: `appearance` holds `pane`. */\n @E.cssState(\"pane\")\n get isPane(): boolean {\n return String(this.appearance ?? \"\")\n .split(/\\s+/)\n .includes(PANE_APPEARANCE)\n }\n\n /** `panel`, and `sub` inside another panel. */\n protected get extraClass(): string | undefined {\n const sub = this.enclosingSection instanceof UIPanel ? SUB_PANEL : undefined\n return [super.extraClass, PANEL, sub].filter(Boolean).join(\" \")\n }\n}\n\n/** Class word added before the section's noun: `ui ... panel section`. */\nconst PANEL = \"panel\"\n\n/** Class word of a panel inside a panel: drawn as a sub-head band. */\nconst SUB_PANEL = \"sub\"\n","/**\n * The panel family: defines `<ui-panel>` and exports its component, `UIPanel`.\n * - SIDE EFFECT: importing it defines the tag.\n * `UIPanel` imports the section family first, which defines `<ui-sections>` and `<ui-section>`:\n * a panel extends the section, and nests in one.\n * - Also the library's `spell/ui/ui-panel` entry (its size is in `notes/report.md`).\n */\n\nimport { UIPanel } from \"./UIPanel\"\n\nUIPanel.define()\n\nexport { UIPanel }\n"],"mappings":";;;;AAqBA,IAAaa,IAAkB,QAGzBC,IACJ,oNAIIC,IACJ,0JAIIC,IACJ,kZAUWC,IAAkB;CAC7B,GAAGN;CACH,KAAK;CACL,MAAM;CACN,QAAQ,CAAC,UAAU,YAAY;CAC/B,KAAK;EAAC;EAAa;EAAkB;EAAc;EAAkB;EAAY;CAAgB;CACjG,aACE;CAEF,YAAYA,EAAkB,WAAW,KAAK,MAC5CO,EAAK,SAAS,UACV;EAAE,GAAGA;EAAM,aAAaJ;CAAkB,IAC1CI,EAAK,SAAS,cACZ;EAAE,GAAGA;EAAM,aAAaH;CAAsB,IAC9CG,EAAK,SAAS,eACZ;EAAE,GAAGA;EAAM,QAAQ,CAAC,GAAGA,EAAK,QAAQL,CAAe;EAAG,aAAaG;CAAuB,IAC1FE,CACV;AACF,qyPE/DAE,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAwCaC,IAAN,MAAM,kBAAgB,IAAAC,GAE3B,IAAA,CAAC3B,CAAE,GAEH,IAAA,CAACC,CAAE,GAIH,IAAA,CAACD,CAAE,GAGH,IAAA,CAACE,EAAW,MAAM,CAAA,GAXSsB,EAAA,CAAU;CAAhC,cAAA;EAAA,AAAA,MAAA,GAAA,SAAA,GAAAf,EAAAgB,GAAA,GAAA,IAAA;CAAA;CAYL,IAAI,SAAkB;EACpB,OAAO,OAAO,KAAK,cAAc,EAAE,CAAA,CAChC,MAAM,KAAK,CAAA,CACX,SAASZ,CAAe;CAC7B;CAGA,IAAc,aAAiC;EAC7C,IAAMkB,IAAM,KAAK,4BAA4B,WAAUC,IAAY,KAAA;EACnE,OAAO;GAAC,MAAM;GAAYC;GAAOF;EAAG,CAAA,CAAE,OAAO,OAAO,CAAA,CAAE,KAAK,GAAG;CAChE;AACF;AAvBO,IAAArB,EAAAc,CAAA,GAYLjB,EAAAkB,GAAA,GAAI,UADJL,GAXWM,CAAA,GAEFnB,EAAAkB,GAAA,IAAO,cAAhBF,GAFWG,CAAA,GAIInB,EAAAkB,GAAA,IAAO,gBAAtBH,GAJWI,CAAA,GAQFnB,EAAAkB,GAAA,IAAO,mBAAhBJ,GARWK,CAAA,GAANlB,EAAAiB,GAAMC,CAAA,GAA0BvB,EAAAuB,GAAA,SAAA,GAE5BpB,EAFEoB,GAEK,cAAajB,EAApBgB,GAAA,GAFEC,GAEkBT,CAAA,CAAA,GAApBR,EAAAgB,GAAA,IAFEC,CAAA,GAIIpB,EAJJoB,GAIW,gBAAwCjB,EAA/CgB,GAAA,IAJJC,GAImD,EAC5D,aAAa;CAAE,GAAGC,EAAU,UAAU,aAAa;CAAa,OAAOvB;AAAS,EAClF,CAAA,CAAA,GAFeK,EAAAgB,GAAA,IAJJC,CAAA,GAQFpB,EAREoB,GAQK,mBAAkBjB,EAAzBgB,GAAA,IAREC,GAQuBd,EAAc,GAAA,CAAA,GAAvCH,EAAAgB,GAAA,IAREC,CAAA;AAAN,IAAMQ,IAANR,GA0BDO,IAAQ,SAGRD,IAAY;;;AC3DlBE,EAAQ,OAAO"}
|
package/dist/ui-parts.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "./rolldown-runtime-CYGlBXrH.js";
|
|
2
|
-
import { Bt as e,
|
|
3
|
-
import { Show as
|
|
4
|
-
import { Dynamic as
|
|
2
|
+
import { Bt as e, Ht as t, Lt as n, PartComponent as r, Rt as i, Ut as a, proto as o, protoMerged as ee, q as te, zt as s } from "./core.js";
|
|
3
|
+
import { Show as ne } from "solid-js";
|
|
4
|
+
import { Dynamic as re, createComponent as ie, effect as ae, getOwner as oe, memo as se, setAttribute as c, template as l } from "@solidjs/web";
|
|
5
5
|
//#region src/components/ui-parts/UIContent.en.ts
|
|
6
|
-
var
|
|
6
|
+
var ce = {
|
|
7
7
|
tag: "ui-content",
|
|
8
|
+
icon: "align left",
|
|
8
9
|
topics: [
|
|
9
10
|
"content parts",
|
|
10
11
|
"containers",
|
|
@@ -115,14 +116,15 @@ var se = {
|
|
|
115
116
|
}
|
|
116
117
|
],
|
|
117
118
|
texts: []
|
|
118
|
-
},
|
|
119
|
+
}, u, d, f, p = class _UIContent extends (d = r, u = [o], d) {
|
|
119
120
|
get rootTabIndex() {
|
|
120
121
|
return this.scrolling ? 0 : void 0;
|
|
121
122
|
}
|
|
122
123
|
};
|
|
123
|
-
|
|
124
|
-
var le =
|
|
124
|
+
f = s(d), n(f, 13, "vocabulary", u, p), i(f, p), e(p, "UIContent"), t(p, "vocabulary", a(f, 8, p, ce)), a(f, 11, p);
|
|
125
|
+
var le = p, ue = {
|
|
125
126
|
tag: "ui-header",
|
|
127
|
+
icon: "heading",
|
|
126
128
|
topics: [
|
|
127
129
|
"content parts",
|
|
128
130
|
"typography",
|
|
@@ -159,7 +161,8 @@ var le = f, ue = {
|
|
|
159
161
|
name: "size",
|
|
160
162
|
group: "appearance",
|
|
161
163
|
kind: "size",
|
|
162
|
-
|
|
164
|
+
values: te,
|
|
165
|
+
description: "Content header size relative to the surrounding text, `mini` ... `massive`; `medium` is the default. `poster` is bigger still, for a page's title: it grows with the window, from 2.4 to 4 times the text."
|
|
163
166
|
},
|
|
164
167
|
{
|
|
165
168
|
name: "color",
|
|
@@ -310,10 +313,10 @@ var le = f, ue = {
|
|
|
310
313
|
],
|
|
311
314
|
texts: [],
|
|
312
315
|
ownsParts: ["header", "content"]
|
|
313
|
-
}, de = /* @__PURE__ */ l("<slot>"),
|
|
316
|
+
}, de = /* @__PURE__ */ l("<slot>"), m, fe, h, g, _ = class _UIHeader extends (h = r, fe = [o], m = [ee], h) {
|
|
314
317
|
render() {
|
|
315
318
|
let e = this;
|
|
316
|
-
return re
|
|
319
|
+
return ie(re, {
|
|
317
320
|
get component() {
|
|
318
321
|
return e.rootTag;
|
|
319
322
|
},
|
|
@@ -333,11 +336,11 @@ var le = f, ue = {
|
|
|
333
336
|
return e.link && e.level ? "heading" : void 0;
|
|
334
337
|
},
|
|
335
338
|
get "aria-level"() {
|
|
336
|
-
return
|
|
339
|
+
return se(() => !!e.link)() ? e.level : void 0;
|
|
337
340
|
},
|
|
338
341
|
get children() {
|
|
339
342
|
var e = de();
|
|
340
|
-
return e._$owner =
|
|
343
|
+
return e._$owner = oe(), e;
|
|
341
344
|
}
|
|
342
345
|
});
|
|
343
346
|
}
|
|
@@ -350,9 +353,10 @@ var le = f, ue = {
|
|
|
350
353
|
return this.context.ownerNoun ? this.vocabulary.noun : super.rootClass;
|
|
351
354
|
}
|
|
352
355
|
};
|
|
353
|
-
|
|
354
|
-
var pe =
|
|
356
|
+
g = s(h), n(g, 13, "vocabulary", fe, _), n(g, 13, "elementSetup", m, _), i(g, _), e(_, "UIHeader"), t(_, "vocabulary", a(g, 8, _, ue)), a(g, 11, _), t(_, "elementSetup", a(g, 12, _, { disabled: "its own" })), a(g, 15, _);
|
|
357
|
+
var pe = _, me = {
|
|
355
358
|
tag: "ui-description",
|
|
359
|
+
icon: "align left",
|
|
356
360
|
topics: ["content parts", "text"],
|
|
357
361
|
aka: [
|
|
358
362
|
"body text",
|
|
@@ -407,10 +411,11 @@ var pe = g, me = {
|
|
|
407
411
|
}
|
|
408
412
|
],
|
|
409
413
|
texts: []
|
|
410
|
-
},
|
|
411
|
-
y =
|
|
412
|
-
var
|
|
414
|
+
}, he, v, y, b = class _UIDescription extends (v = r, he = [o], v) {};
|
|
415
|
+
y = s(v), n(y, 13, "vocabulary", he, b), i(y, b), e(b, "UIDescription"), t(b, "vocabulary", a(y, 8, b, me)), a(y, 11, b);
|
|
416
|
+
var ge = b, _e = {
|
|
413
417
|
tag: "ui-meta",
|
|
418
|
+
icon: "info",
|
|
414
419
|
topics: ["content parts", "text"],
|
|
415
420
|
aka: [
|
|
416
421
|
"metadata",
|
|
@@ -450,10 +455,11 @@ var he = b, ge = {
|
|
|
450
455
|
}
|
|
451
456
|
],
|
|
452
457
|
texts: []
|
|
453
|
-
},
|
|
454
|
-
S =
|
|
455
|
-
var
|
|
458
|
+
}, ve, x, S, C = class _UIMeta extends (x = r, ve = [o], x) {};
|
|
459
|
+
S = s(x), n(S, 13, "vocabulary", ve, C), i(S, C), e(C, "UIMeta"), t(C, "vocabulary", a(S, 8, C, _e)), a(S, 11, C);
|
|
460
|
+
var ye = C, be = {
|
|
456
461
|
tag: "ui-extra",
|
|
462
|
+
icon: "ellipsis horizontal",
|
|
457
463
|
topics: ["content parts", "cards"],
|
|
458
464
|
aka: [
|
|
459
465
|
"footer",
|
|
@@ -493,10 +499,11 @@ var ve = C, ye = {
|
|
|
493
499
|
}
|
|
494
500
|
],
|
|
495
501
|
texts: []
|
|
496
|
-
},
|
|
497
|
-
T =
|
|
498
|
-
var
|
|
502
|
+
}, xe, w, T, E = class _UIExtra extends (w = r, xe = [o], w) {};
|
|
503
|
+
T = s(w), n(T, 13, "vocabulary", xe, E), i(T, E), e(E, "UIExtra"), t(E, "vocabulary", a(T, 8, E, be)), a(T, 11, E);
|
|
504
|
+
var Se = E, Ce = {
|
|
499
505
|
tag: "ui-actions",
|
|
506
|
+
icon: "hand point up outline",
|
|
500
507
|
topics: [
|
|
501
508
|
"content parts",
|
|
502
509
|
"buttons",
|
|
@@ -539,10 +546,11 @@ var xe = E, Se = {
|
|
|
539
546
|
}
|
|
540
547
|
],
|
|
541
548
|
texts: []
|
|
542
|
-
},
|
|
543
|
-
|
|
544
|
-
var
|
|
549
|
+
}, D, O, k, A = class _UIActions extends (O = r, D = [o], O) {};
|
|
550
|
+
k = s(O), n(k, 13, "vocabulary", D, A), i(k, A), e(A, "UIActions"), t(A, "vocabulary", a(k, 8, A, Ce)), a(k, 11, A);
|
|
551
|
+
var j = A, we = {
|
|
545
552
|
tag: "ui-title",
|
|
553
|
+
icon: "heading",
|
|
546
554
|
topics: [
|
|
547
555
|
"content parts",
|
|
548
556
|
"typography",
|
|
@@ -587,14 +595,15 @@ var A = k, we = {
|
|
|
587
595
|
}
|
|
588
596
|
],
|
|
589
597
|
texts: []
|
|
590
|
-
},
|
|
598
|
+
}, M, N, P, F = class _UITitle extends (N = r, M = [o], N) {
|
|
591
599
|
get rootTag() {
|
|
592
600
|
return this.link ? "a" : "div";
|
|
593
601
|
}
|
|
594
602
|
};
|
|
595
|
-
|
|
596
|
-
var Te =
|
|
603
|
+
P = s(N), n(P, 13, "vocabulary", M, F), i(P, F), e(F, "UITitle"), t(F, "vocabulary", a(P, 8, F, we)), a(P, 11, F);
|
|
604
|
+
var Te = F, Ee = {
|
|
597
605
|
tag: "ui-summary",
|
|
606
|
+
icon: "align justify",
|
|
598
607
|
topics: ["content parts", "social"],
|
|
599
608
|
aka: ["event summary", "headline"],
|
|
600
609
|
noun: "summary",
|
|
@@ -615,10 +624,11 @@ var Te = P, Ee = {
|
|
|
615
624
|
description: "Owned by a feed."
|
|
616
625
|
}],
|
|
617
626
|
texts: []
|
|
618
|
-
}, De,
|
|
619
|
-
|
|
620
|
-
var Oe =
|
|
627
|
+
}, De, I, L, R = class _UISummary extends (I = r, De = [o], I) {};
|
|
628
|
+
L = s(I), n(L, 13, "vocabulary", De, R), i(L, R), e(R, "UISummary"), t(R, "vocabulary", a(L, 8, R, Ee)), a(L, 11, R);
|
|
629
|
+
var Oe = R, ke = {
|
|
621
630
|
tag: "ui-date",
|
|
631
|
+
icon: "calendar outline",
|
|
622
632
|
topics: [
|
|
623
633
|
"content parts",
|
|
624
634
|
"date & time",
|
|
@@ -653,7 +663,7 @@ var Oe = L, ke = {
|
|
|
653
663
|
description: "Owned by a feed."
|
|
654
664
|
}],
|
|
655
665
|
texts: []
|
|
656
|
-
}, Ae,
|
|
666
|
+
}, Ae, z, B, V = class _UIDate extends (z = r, Ae = [o], z) {
|
|
657
667
|
get rootTag() {
|
|
658
668
|
return "time";
|
|
659
669
|
}
|
|
@@ -661,9 +671,10 @@ var Oe = L, ke = {
|
|
|
661
671
|
return this.datetime;
|
|
662
672
|
}
|
|
663
673
|
};
|
|
664
|
-
|
|
665
|
-
var je =
|
|
674
|
+
B = s(z), n(B, 13, "vocabulary", Ae, V), i(B, V), e(V, "UIDate"), t(V, "vocabulary", a(B, 8, V, ke)), a(B, 11, V);
|
|
675
|
+
var je = V, Me = {
|
|
666
676
|
tag: "ui-author",
|
|
677
|
+
icon: "user",
|
|
667
678
|
topics: ["content parts", "social"],
|
|
668
679
|
aka: [
|
|
669
680
|
"user name",
|
|
@@ -702,14 +713,15 @@ var je = B, Me = {
|
|
|
702
713
|
description: "Owned by a feed."
|
|
703
714
|
}],
|
|
704
715
|
texts: []
|
|
705
|
-
}, Ne,
|
|
716
|
+
}, Ne, H, U, W = class _UIAuthor extends (H = r, Ne = [o], H) {
|
|
706
717
|
get rootTag() {
|
|
707
718
|
return this.link ? "a" : "span";
|
|
708
719
|
}
|
|
709
720
|
};
|
|
710
|
-
|
|
711
|
-
var Pe =
|
|
721
|
+
U = s(H), n(U, 13, "vocabulary", Ne, W), i(U, W), e(W, "UIAuthor"), t(W, "vocabulary", a(U, 8, W, Me)), a(U, 11, W);
|
|
722
|
+
var Pe = W, Fe = {
|
|
712
723
|
tag: "ui-avatar",
|
|
724
|
+
icon: "user circle",
|
|
713
725
|
topics: [
|
|
714
726
|
"content parts",
|
|
715
727
|
"images",
|
|
@@ -762,23 +774,23 @@ var Pe = U, Fe = {
|
|
|
762
774
|
}
|
|
763
775
|
],
|
|
764
776
|
texts: []
|
|
765
|
-
}, Ie = /* @__PURE__ */ l("<img>"), Le = /* @__PURE__ */ l("<slot>"), Re,
|
|
777
|
+
}, Ie = /* @__PURE__ */ l("<img>"), Le = /* @__PURE__ */ l("<slot>"), Re, G, K, q = class _UIAvatar extends (G = r, Re = [o], G) {
|
|
766
778
|
get rootTag() {
|
|
767
779
|
return "span";
|
|
768
780
|
}
|
|
769
781
|
content() {
|
|
770
782
|
let e = this;
|
|
771
|
-
return
|
|
783
|
+
return ie(ne, {
|
|
772
784
|
get when() {
|
|
773
785
|
return e.src;
|
|
774
786
|
},
|
|
775
787
|
get fallback() {
|
|
776
788
|
var e = Le();
|
|
777
|
-
return e._$owner =
|
|
789
|
+
return e._$owner = oe(), e;
|
|
778
790
|
},
|
|
779
791
|
get children() {
|
|
780
792
|
var t = Ie();
|
|
781
|
-
return
|
|
793
|
+
return ae(() => ({
|
|
782
794
|
e: e.src,
|
|
783
795
|
t: e.tooltip ?? "",
|
|
784
796
|
a: e.tooltip,
|
|
@@ -790,9 +802,10 @@ var Pe = U, Fe = {
|
|
|
790
802
|
});
|
|
791
803
|
}
|
|
792
804
|
};
|
|
793
|
-
|
|
794
|
-
var
|
|
805
|
+
K = s(G), n(K, 13, "vocabulary", Re, q), i(K, q), e(q, "UIAvatar"), t(q, "vocabulary", a(K, 8, q, Fe)), a(K, 11, q);
|
|
806
|
+
var ze = q, Be = {
|
|
795
807
|
tag: "ui-detail",
|
|
808
|
+
icon: "info circle",
|
|
796
809
|
topics: ["content parts", "text"],
|
|
797
810
|
aka: ["secondary text", "note"],
|
|
798
811
|
noun: "detail",
|
|
@@ -819,14 +832,15 @@ var q = K, ze = {
|
|
|
819
832
|
description: "Owned by a label."
|
|
820
833
|
}],
|
|
821
834
|
texts: []
|
|
822
|
-
},
|
|
835
|
+
}, Ve, J, Y, X = class _UIDetail extends (J = r, Ve = [o], J) {
|
|
823
836
|
get rootTag() {
|
|
824
837
|
return this.link ? "a" : "span";
|
|
825
838
|
}
|
|
826
839
|
};
|
|
827
|
-
Y =
|
|
828
|
-
var
|
|
840
|
+
Y = s(J), n(Y, 13, "vocabulary", Ve, X), i(Y, X), e(X, "UIDetail"), t(X, "vocabulary", a(Y, 8, X, Be)), a(Y, 11, X);
|
|
841
|
+
var He = X, Ue = {
|
|
829
842
|
tag: "ui-value",
|
|
843
|
+
icon: "hashtag",
|
|
830
844
|
topics: ["content parts", "data display"],
|
|
831
845
|
aka: [
|
|
832
846
|
"statistic value",
|
|
@@ -859,11 +873,11 @@ var Ve = X, He = {
|
|
|
859
873
|
description: "Owned by a search."
|
|
860
874
|
}],
|
|
861
875
|
texts: []
|
|
862
|
-
},
|
|
863
|
-
Q =
|
|
864
|
-
var
|
|
865
|
-
le.define(), pe.define(),
|
|
876
|
+
}, We, Z, Q, $ = class _UIValue extends (Z = r, We = [o], Z) {};
|
|
877
|
+
Q = s(Z), n(Q, 13, "vocabulary", We, $), i(Q, $), e($, "UIValue"), t($, "vocabulary", a(Q, 8, $, Ue)), a(Q, 11, $);
|
|
878
|
+
var Ge = $;
|
|
879
|
+
le.define(), pe.define(), ge.define(), ye.define(), Se.define(), j.define(), Te.define(), Oe.define(), je.define(), Pe.define(), ze.define(), He.define(), Ge.define();
|
|
866
880
|
//#endregion
|
|
867
|
-
export {
|
|
881
|
+
export { j as UIActions, Pe as UIAuthor, ze as UIAvatar, le as UIContent, je as UIDate, ge as UIDescription, He as UIDetail, Se as UIExtra, pe as UIHeader, ye as UIMeta, Oe as UISummary, Te as UITitle, Ge as UIValue };
|
|
868
882
|
|
|
869
883
|
//# sourceMappingURL=ui-parts.js.map
|