spell-ui 0.8.9 → 0.8.10
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 +9 -3
- package/README-frameworks.md +5 -5
- package/README-migrating.md +2 -2
- package/README.md +5 -5
- package/dist/{CodeEngine-GL9EzwF1.js → CodeEngine-B684vKxR.js} +39 -100
- package/dist/{CodeEngine-GL9EzwF1.js.map → CodeEngine-B684vKxR.js.map} +1 -1
- package/dist/{Dragging-CMZoLEWQ.js → Dragging-B93hbRxF.js} +17 -15
- package/dist/Dragging-B93hbRxF.js.map +1 -0
- package/dist/{MarkdownEngine-CW1WGqNp.js → MarkdownEngine-D1jqcFeU.js} +11 -72
- package/dist/{MarkdownEngine-CW1WGqNp.js.map → MarkdownEngine-D1jqcFeU.js.map} +1 -1
- package/dist/MarkdownSanitizer-CqsWivYJ.js +866 -0
- package/dist/MarkdownSanitizer-CqsWivYJ.js.map +1 -0
- package/dist/{PrefStore-Qv0e5y04.js → PrefStore-Di83C0bY.js} +13 -9
- package/dist/PrefStore-Di83C0bY.js.map +1 -0
- package/dist/ScrollingRow-DkOtx2QK.js +89 -0
- package/dist/ScrollingRow-DkOtx2QK.js.map +1 -0
- package/dist/{SitePages-CciwREek.js → SitePages-B3zd5Zgu.js} +37 -10
- package/dist/SitePages-B3zd5Zgu.js.map +1 -0
- package/dist/SlottedItems-DWfAZYqM.js +88 -0
- package/dist/SlottedItems-DWfAZYqM.js.map +1 -0
- package/dist/{TemporalPolyfill-D9mr7_wA.js → TemporalPolyfill-Bv_c_xa0.js} +7 -12
- package/dist/{TemporalPolyfill-D9mr7_wA.js.map → TemporalPolyfill-Bv_c_xa0.js.map} +1 -1
- package/dist/{ThemeDraft-B7NPif4d.js → ThemeDraft-CyX3YA_L.js} +41 -43
- package/dist/{ThemeDraft-B7NPif4d.js.map → ThemeDraft-CyX3YA_L.js.map} +1 -1
- package/dist/{TreeMeasure-BVJeGb1L.js → TreeMeasure-BK74uexu.js} +3 -4
- package/dist/{TreeMeasure-BVJeGb1L.js.map → TreeMeasure-BK74uexu.js.map} +1 -1
- package/dist/UIButton-BmIiXYDC.js +5 -0
- package/dist/UIButton-BmIiXYDC.js.map +1 -0
- package/dist/UIGrid-2ZUA1YEc.js +200 -0
- package/dist/UIGrid-2ZUA1YEc.js.map +1 -0
- package/dist/{UIInput-BodVbUoQ.js → UIInput-B3K0w4ow.js} +2 -3
- package/dist/UIInput-B3K0w4ow.js.map +1 -0
- package/dist/{UIKeys-Rh_gUZjP.js → UIKeys-DmXvyJuU.js} +12 -12
- package/dist/UIKeys-DmXvyJuU.js.map +1 -0
- package/dist/{UILabel-DgJUBzB_.js → UILabel-pCjKxQlQ.js} +2 -3
- package/dist/UILabel-pCjKxQlQ.js.map +1 -0
- package/dist/UIMenu-CqURPocK.js +42 -0
- package/dist/UIMenu-CqURPocK.js.map +1 -0
- package/dist/{UIRuntime-KH309p5B.js → UIRuntime-BXutHphM.js} +253 -239
- package/dist/UIRuntime-BXutHphM.js.map +1 -0
- package/dist/{UISegment-CMMIW7cZ.js → UISegment-BF4Tgy2D.js} +2 -3
- package/dist/UISegment-BF4Tgy2D.js.map +1 -0
- package/dist/_spell-element/UIComponent.d.ts +8 -0
- package/dist/_spell-element/vocabulary.types.d.ts +20 -2
- package/dist/_util/Dragging.d.ts +14 -2
- package/dist/_util/dom.d.ts +12 -8
- package/dist/_util/measures/Dimension.d.ts +1 -1
- package/dist/_util/persist/PrefStore.d.ts +7 -2
- package/dist/_util/persist/persist.types.d.ts +6 -0
- package/dist/_util/platform.d.ts +54 -0
- package/dist/_util/string.d.ts +25 -0
- package/dist/api.js +2 -3
- package/dist/api.js.map +1 -1
- package/dist/{apple.palette-B4ivrNlM.js → apple.palette-YLjENwUt.js} +2 -3
- package/dist/apple.palette-YLjENwUt.js.map +1 -0
- package/dist/{classic-DCTQrteU.js → classic-BHyJFvQa.js} +2 -3
- package/dist/classic-BHyJFvQa.js.map +1 -0
- package/dist/components/ComponentDefinitions.d.ts +55 -8
- package/dist/components/components.es.d.ts +2 -1
- package/dist/components/components.planned.d.ts +1 -1
- package/dist/components/components.types.d.ts +22 -0
- 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.d.ts +38 -1
- package/dist/components/ui-action/UIAction.en.d.ts +17 -8
- package/dist/components/ui-action/UIAction.es.d.ts +1 -0
- 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-app-menu/UIAppMenu.d.ts +41 -0
- package/dist/components/ui-app-menu/UIAppMenu.en.d.ts +294 -0
- package/dist/components/ui-app-menu/UIAppMenu.es.d.ts +35 -0
- package/dist/components/ui-app-menu/index.d.ts +2 -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 +5 -4
- package/dist/components/ui-button/UIButton.en.d.ts +4 -3
- package/dist/components/ui-button/UIButton.fallback.d.ts +4 -3
- package/dist/components/ui-button/UIButton.types.d.ts +1 -1
- package/dist/components/ui-button/UIButtons.d.ts +7 -5
- package/dist/components/ui-button/UIButtons.en.d.ts +5 -3
- package/dist/components/ui-button/UIButtons.es.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 +1 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +1 -0
- package/dist/components/ui-card/UICard.d.ts +1 -0
- package/dist/components/ui-card/UICard.en.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +1 -0
- package/dist/components/ui-card/UICards.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +1 -0
- package/dist/components/ui-code/CodeHighlighter.d.ts +7 -3
- package/dist/components/ui-code/UICode.d.ts +12 -1
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-code/UICode.types.d.ts +9 -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/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +54 -1
- package/dist/components/ui-container/UIContainer.en.d.ts +40 -1
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-device/UIDevice.d.ts +234 -0
- package/dist/components/ui-device/UIDevice.en.d.ts +126 -0
- package/dist/components/ui-device/UIDevice.es.d.ts +52 -0
- package/dist/components/ui-device/index.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +1 -0
- package/dist/components/ui-dropdown/SlottedItems.d.ts +9 -1
- package/dist/components/ui-dropdown/UIDropdown.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +1 -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 +1 -0
- 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/UIField.d.ts +11 -4
- package/dist/components/ui-form/UIField.en.d.ts +3 -2
- 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 +1 -0
- package/dist/components/ui-form/UIForm.en.d.ts +1 -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-grid/UIColumn.d.ts +4 -3
- package/dist/components/ui-grid/UIColumn.en.d.ts +4 -3
- 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 +1 -0
- package/dist/components/ui-icon/UIIcon.en.d.ts +1 -0
- 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 +5 -1
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +1 -0
- package/dist/components/ui-image/UIImage.d.ts +1 -0
- package/dist/components/ui-image/UIImage.en.d.ts +1 -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/UIInput.d.ts +1 -0
- package/dist/components/ui-input/UIInput.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +1 -0
- package/dist/components/ui-item/UIItem.d.ts +19 -8
- package/dist/components/ui-item/UIItem.en.d.ts +2 -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/UIJson.d.ts +1 -0
- package/dist/components/ui-json/UIJson.en.d.ts +1 -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 +3 -2
- package/dist/components/ui-label/UILabel.en.d.ts +3 -2
- 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 +1 -0
- package/dist/components/ui-list/UIList.en.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 +7 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +9 -4
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +5 -0
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +1 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +19 -1
- package/dist/components/ui-menu/SegmentedThumb.d.ts +8 -1
- package/dist/components/ui-menu/SubMenuAim.d.ts +115 -0
- package/dist/components/ui-menu/TitleFit.d.ts +16 -1
- package/dist/components/ui-menu/UIMenu.d.ts +112 -9
- package/dist/components/ui-menu/UIMenu.en.d.ts +3 -2
- package/dist/components/ui-menu/UISubmenu.d.ts +261 -0
- package/dist/components/ui-menu/UISubmenu.en.d.ts +102 -0
- package/dist/components/ui-menu/UISubmenu.es.d.ts +21 -0
- package/dist/components/ui-menu/index.d.ts +3 -1
- package/dist/components/ui-message/UIMessage.d.ts +3 -2
- package/dist/components/ui-message/UIMessage.en.d.ts +4 -3
- package/dist/components/ui-modal/ModalDialogs.d.ts +36 -2
- 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 +1 -0
- package/dist/components/ui-page/UIPage.en.d.ts +1 -0
- package/dist/components/ui-page-layout/UIPageLayout.d.ts +311 -0
- package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +99 -0
- package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +38 -0
- package/dist/components/ui-page-layout/index.d.ts +1 -0
- package/dist/components/ui-panel/ScrollShades.d.ts +38 -0
- package/dist/components/ui-panel/UIPanel.d.ts +21 -2
- package/dist/components/ui-panel/UIPanel.en.d.ts +68 -61
- 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 +11 -2
- package/dist/components/ui-parts/UIAvatar.en.d.ts +3 -2
- 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 +4 -3
- package/dist/components/ui-parts/UIHeader.en.d.ts +4 -3
- 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 +18 -5
- 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 +21 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +3 -2
- package/dist/components/ui-progress/UIProgress.en.d.ts +4 -3
- package/dist/components/ui-property-editor/UIProperty.d.ts +47 -13
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +14 -1
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +7 -1
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +15 -6
- package/dist/components/ui-property-editor/UIPropertyGroup.en.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 +4 -3
- package/dist/components/ui-rail/UIRail.en.d.ts +4 -3
- package/dist/components/ui-rating/UIRating.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +1 -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.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +1 -0
- package/dist/components/ui-search/UISearch.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +1 -0
- package/dist/components/ui-section/UISection.d.ts +3 -2
- package/dist/components/ui-section/UISection.en.d.ts +3 -2
- 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 +9 -10
- package/dist/components/ui-segment/UISegment.en.d.ts +10 -11
- 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 +1 -0
- package/dist/components/ui-select/UISelect.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.en.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +1 -0
- package/dist/components/ui-shape/UISide.en.d.ts +1 -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 +1 -0
- package/dist/components/ui-sides/UISides.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +1 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.d.ts +118 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.en.d.ts +49 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.es.d.ts +22 -0
- package/dist/components/ui-site-breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +26 -3
- package/dist/components/ui-site-nav/UISiteNav.d.ts +43 -5
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +10 -1
- package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +63 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +173 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +20 -0
- package/dist/components/ui-site-nav-button/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +21 -6
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +1 -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 +43 -7
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +2 -1
- package/dist/components/ui-stack/UIStack.d.ts +1 -0
- package/dist/components/ui-stack/UIStack.en.d.ts +1 -0
- 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 +3 -2
- package/dist/components/ui-step/UISteps.en.d.ts +3 -2
- package/dist/components/ui-sticky/UISticky.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +3 -2
- package/dist/components/ui-tab/UITab.en.d.ts +4 -3
- package/dist/components/ui-tab/UITabs.d.ts +5 -4
- package/dist/components/ui-tab/UITabs.en.d.ts +4 -3
- package/dist/components/ui-table/TableGrammar.d.ts +2 -2
- 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 +7 -6
- package/dist/components/ui-table/UITable.en.d.ts +7 -6
- 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 +1 -0
- package/dist/components/ui-text/UILink.en.d.ts +1 -0
- package/dist/components/ui-text/UIText.d.ts +2 -1
- package/dist/components/ui-text/UIText.en.d.ts +2 -1
- package/dist/components/ui-theme-editor/BenchAddress.d.ts +9 -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 +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +1 -0
- 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/UIThemeMenu.d.ts +37 -15
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +3 -2
- 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 +134 -1
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -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 +102 -2
- package/dist/components/ui-tree/UITree.en.d.ts +14 -1
- package/dist/components/ui-tree/UITree.es.d.ts +3 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
- package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
- package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
- 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-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
- package/dist/components.es-DEa8Ep42.js.map +1 -0
- package/dist/core.js +884 -806
- package/dist/core.js.map +1 -1
- package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
- package/dist/crisp-DIpY320U.js.map +1 -0
- package/dist/crisp.theme-Ir9p4BDC.js +5 -0
- package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
- package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
- package/dist/dark-B5s4QbmU.js.map +1 -0
- package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
- package/dist/dist-BQT4KajA.js.map +1 -0
- package/dist/docs-components/docs-components.types.d.ts +6 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
- package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
- package/dist/elements/PartComponent.d.ts +5 -0
- package/dist/elements/PopoverPanel.d.ts +12 -1
- package/dist/elements/Validator.d.ts +1 -1
- package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
- package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
- package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
- package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
- package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
- package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
- package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
- package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
- package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
- package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
- package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
- package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
- package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
- package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
- package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
- package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
- package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
- package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
- package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
- package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
- package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
- package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
- package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
- package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
- package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
- package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
- package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
- package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
- package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
- package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
- package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
- package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
- package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
- package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
- package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
- package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
- package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
- package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
- package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
- package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
- package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
- package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
- package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
- package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
- package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
- package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
- package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
- package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
- package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
- package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
- package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
- package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
- package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
- package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
- package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
- package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
- package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
- package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
- package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
- package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
- package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
- package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
- package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
- package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
- package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
- package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
- package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
- package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
- package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
- package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
- package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
- package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
- package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
- package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
- package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
- package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
- package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
- package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
- package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
- package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
- package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
- package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
- package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
- package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
- package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
- package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
- package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
- package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
- package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
- package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
- package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
- package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
- package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
- package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
- package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
- package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
- package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
- package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
- package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
- package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
- package/dist/forms.js +65 -75
- package/dist/forms.js.map +1 -1
- package/dist/fruity-CsfZNeXb.js +5 -0
- package/dist/fruity-CsfZNeXb.js.map +1 -0
- package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
- package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
- package/dist/glass-BCK30hpe.js +5 -0
- package/dist/glass-BCK30hpe.js.map +1 -0
- package/dist/glass.theme-C7QSRB7b.js +5 -0
- package/dist/glass.theme-C7QSRB7b.js.map +1 -0
- package/dist/hot.js +18 -32
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +95 -90
- package/dist/jsx.d.ts +3865 -711
- package/dist/matrix-DEnqBfwC.js +5 -0
- package/dist/matrix-DEnqBfwC.js.map +1 -0
- package/dist/matrix.theme-YV6_nvXv.js +5 -0
- package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
- package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
- package/dist/merlot-DFa6kDbA.js.map +1 -0
- package/dist/merlot.theme-B1K8nn2u.js +5 -0
- package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
- package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
- package/dist/midnight-q0-3-V6U.js.map +1 -0
- package/dist/midnight.theme-C7M02wTD.js +5 -0
- package/dist/midnight.theme-C7M02wTD.js.map +1 -0
- package/dist/mockup-D0vovNO7.js +5 -0
- package/dist/mockup-D0vovNO7.js.map +1 -0
- package/dist/mockup.theme-C92r9NI0.js +5 -0
- package/dist/mockup.theme-C92r9NI0.js.map +1 -0
- package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
- package/dist/paper-DPxolmdy.js.map +1 -0
- package/dist/paper.theme-BAKk3DY1.js +5 -0
- package/dist/paper.theme-BAKk3DY1.js.map +1 -0
- package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
- package/dist/persist.types-D7N7GewC.js.map +1 -0
- package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
- package/dist/pop-Dw_6k177.js.map +1 -0
- package/dist/pop.theme-Cw-yD0MO.js +5 -0
- package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
- package/dist/property/PropertyEditorPages.d.ts +1 -1
- package/dist/property/PropertyLayouts.d.ts +119 -0
- package/dist/property/PropertySchemas.d.ts +5 -1
- package/dist/property/index.d.ts +2 -0
- package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
- package/dist/runtime/Browser.d.ts +7 -0
- package/dist/runtime/DataTooltips.d.ts +2 -0
- package/dist/runtime/Keyboard.d.ts +4 -1
- package/dist/runtime/Toasts.d.ts +10 -0
- package/dist/runtime/runtime.types.d.ts +47 -0
- package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
- package/dist/search-C2Rq9HF1.js.map +1 -0
- package/dist/spell-CB-MivSX.js +5 -0
- package/dist/spell-CB-MivSX.js.map +1 -0
- package/dist/spell.theme-CUoc5rTq.js +5 -0
- package/dist/spell.theme-CUoc5rTq.js.map +1 -0
- package/dist/styles/StyleGenerator.d.ts +7 -0
- package/dist/styles/styles.en.d.ts +27 -18
- package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
- package/dist/styles.en-DZlSJiOR.js.map +1 -0
- package/dist/styles.js +9 -10
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
- package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
- package/dist/ui-accordion.js +59 -60
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
- package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
- package/dist/ui-action.js +73 -45
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
- package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
- package/dist/ui-ad.editor-BHTDuSii.js +5 -0
- package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
- package/dist/ui-ad.js +8 -9
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
- package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
- package/dist/ui-app-menu.js +89 -0
- package/dist/ui-app-menu.js.map +1 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
- package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
- package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
- package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
- package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
- package/dist/ui-breadcrumbs.js +18 -17
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
- package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
- package/dist/ui-button.js +157 -156
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
- package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
- package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
- package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
- package/dist/ui-calendar.js +148 -157
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.editor-BBZj9e03.js +5 -0
- package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
- package/dist/ui-card.js +70 -70
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
- package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
- package/dist/ui-checkbox.js +49 -48
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.editor-Drr_FVB6.js +5 -0
- package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
- package/dist/ui-code.js +116 -79
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
- package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
- package/dist/ui-column.editor-hdUb-qwT.js +5 -0
- package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
- package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
- package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
- package/dist/ui-comment.js +15 -14
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
- package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
- package/dist/ui-components.editor-BKFXnARt.js +5 -0
- package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
- package/dist/ui-components.js +12 -13
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.editor-CBNhNkRm.js +5 -0
- package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
- package/dist/ui-container.js +106 -21
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-content.editor-B78lxK3P.js +5 -0
- package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
- package/dist/ui-date.editor-PHEnU7QX.js +5 -0
- package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
- package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
- package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
- package/dist/ui-detail.editor-wliuVbx3.js +5 -0
- package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
- package/dist/ui-device.editor-kl48NVma.js +5 -0
- package/dist/ui-device.editor-kl48NVma.js.map +1 -0
- package/dist/ui-device.js +436 -0
- package/dist/ui-device.js.map +1 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
- package/dist/ui-diagram.js +128 -129
- package/dist/ui-diagram.js.map +1 -1
- package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
- package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
- package/dist/ui-dimension.js +111 -12
- package/dist/ui-dimension.js.map +1 -1
- package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
- package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
- package/dist/ui-dimmer.js +29 -30
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
- package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
- package/dist/ui-divider.js +9 -10
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
- package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
- package/dist/ui-dropdown.js +155 -156
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
- package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
- package/dist/ui-embed.js +23 -24
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
- package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
- package/dist/ui-emoji.js +63 -64
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-event.editor-Bk17y7wW.js +5 -0
- package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
- package/dist/ui-example.editor-D46Vnctp.js +5 -0
- package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
- package/dist/ui-example.js +67 -74
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
- package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
- package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
- package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
- package/dist/ui-feed.js +26 -25
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
- package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
- package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
- package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
- package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
- package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
- package/dist/ui-flag.js +13 -14
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
- package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
- package/dist/ui-flyout.js +10 -11
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.editor-BJC3WhNf.js +5 -0
- package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
- package/dist/ui-form.js +199 -195
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
- package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
- package/dist/ui-grid.js +43 -234
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-header.editor-meOjCASK.js +5 -0
- package/dist/ui-header.editor-meOjCASK.js.map +1 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
- package/dist/ui-icon-picker.js +64 -69
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.editor-DoKK49PD.js +5 -0
- package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
- package/dist/ui-icon.js +15 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
- package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
- package/dist/ui-image.js +26 -26
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
- package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
- package/dist/ui-include.editor-CZcsVJbH.js +5 -0
- package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
- package/dist/ui-include.js +21 -22
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.editor-budoNoB0.js +5 -0
- package/dist/ui-input.editor-budoNoB0.js.map +1 -0
- package/dist/ui-input.js +131 -130
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.editor-BlWp1HXu.js +5 -0
- package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
- package/dist/ui-item.js +127 -113
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.editor-GOul3Xss.js +5 -0
- package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
- package/dist/ui-items.js +11 -12
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.editor-BgZbrB_W.js +5 -0
- package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
- package/dist/ui-json.js +18 -19
- package/dist/ui-json.js.map +1 -1
- package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
- package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
- package/dist/ui-keys.js +2 -3
- package/dist/ui-label.editor-BVUYLSUs.js +5 -0
- package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
- package/dist/ui-label.js +22 -22
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-labels.editor-BWJth86p.js +5 -0
- package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
- package/dist/ui-link.editor-CpI53scP.js +5 -0
- package/dist/ui-link.editor-CpI53scP.js.map +1 -0
- package/dist/ui-list.editor-DhBZIkAa.js +5 -0
- package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
- package/dist/ui-list.js +9 -10
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
- package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
- package/dist/ui-loader.js +10 -11
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
- package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
- package/dist/ui-markdown.js +208 -154
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
- package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
- package/dist/ui-menu.js +815 -223
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.editor-vfT0pyu5.js +5 -0
- package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
- package/dist/ui-message.js +32 -33
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
- package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
- package/dist/ui-modal.editor-CkkJRgab.js +5 -0
- package/dist/ui-modal.editor-CkkJRgab.js.map +1 -0
- package/dist/ui-modal.js +132 -96
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
- package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
- package/dist/ui-nag.js +23 -24
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-or.editor-BfBLNVgm.js +5 -0
- package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
- package/dist/ui-page-layout.js +363 -0
- package/dist/ui-page-layout.js.map +1 -0
- package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
- package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
- package/dist/ui-page.js +11 -12
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
- package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
- package/dist/ui-panel.js +105 -27
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +83 -68
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
- package/dist/ui-placeholder.js +23 -19
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
- package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
- package/dist/ui-popup.js +107 -100
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
- package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
- package/dist/ui-progress.js +23 -24
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
- package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
- package/dist/ui-property-editor.js +649 -277
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
- package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
- package/dist/ui-property.editor-BC-jtjjt.js +5 -0
- package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
- package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
- package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
- package/dist/ui-quote.js +8 -9
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-radio.editor-DPzActfO.js +5 -0
- package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
- package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
- package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
- package/dist/ui-rail.js +11 -12
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.editor-C19syymj.js +5 -0
- package/dist/ui-rating.editor-C19syymj.js.map +1 -0
- package/dist/ui-rating.js +40 -49
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
- package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
- package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
- package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
- package/dist/ui-reveal.js +10 -11
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.editor-CAokPDVa.js +5 -0
- package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
- package/dist/ui-root.js +205 -102
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
- package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
- package/dist/ui-search.editor-CtzfYgNu.js +5 -0
- package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
- package/dist/ui-search.js +143 -146
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.editor-DmNICxCs.js +5 -0
- package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
- package/dist/ui-section.js +74 -73
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-sections.editor-BxXECGv9.js +5 -0
- package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
- package/dist/ui-segment.editor-CebyLPFn.js +5 -0
- package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
- package/dist/ui-segment.js +43 -43
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-segments.editor-CSumzMa5.js +5 -0
- package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
- package/dist/ui-select.editor-wAcZzvU7.js +5 -0
- package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
- package/dist/ui-select.js +86 -87
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.editor-By9-8aD2.js +5 -0
- package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
- package/dist/ui-shape.js +39 -38
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-side.editor-CFSqGHGH.js +5 -0
- package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
- package/dist/ui-sidebar.js +79 -77
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
- package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
- package/dist/ui-sides.js +25 -26
- package/dist/ui-sides.js.map +1 -1
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
- package/dist/ui-site-breadcrumbs.js +143 -0
- package/dist/ui-site-breadcrumbs.js.map +1 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
- package/dist/ui-site-nav-button.js +113 -0
- package/dist/ui-site-nav-button.js.map +1 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
- package/dist/ui-site-nav.js +133 -97
- package/dist/ui-site-nav.js.map +1 -1
- package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
- package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
- package/dist/ui-site-tabs.js +53 -48
- package/dist/ui-site-tabs.js.map +1 -1
- package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
- package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
- package/dist/ui-slider.js +37 -38
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.editor-s-XVWFBN.js +5 -0
- package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
- package/dist/ui-space.js +9 -10
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
- package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
- package/dist/ui-split-panel.js +107 -68
- package/dist/ui-split-panel.js.map +1 -1
- package/dist/ui-stack.editor-D69Fky6H.js +5 -0
- package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
- package/dist/ui-stack.js +12 -13
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
- package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
- package/dist/ui-statistic.js +28 -27
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
- package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
- package/dist/ui-step.editor-CYmNXrk_.js +5 -0
- package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
- package/dist/ui-step.js +62 -61
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
- package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
- package/dist/ui-sticky.js +10 -11
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
- package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
- package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
- package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
- package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
- package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
- package/dist/ui-tab.js +115 -117
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.editor-DJvfg9oG.js +5 -0
- package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
- package/dist/ui-table.js +272 -272
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
- package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
- package/dist/ui-term.editor-BMCF3jBM.js +5 -0
- package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
- package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
- package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
- package/dist/ui-terms.js +13 -12
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.editor-B6AENK13.js +5 -0
- package/dist/ui-text.editor-B6AENK13.js.map +1 -0
- package/dist/ui-text.js +37 -36
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
- package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
- package/dist/ui-theme-editor.js +448 -461
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
- package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
- package/dist/ui-title.editor-40PZSOpn.js +5 -0
- package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
- package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
- package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
- package/dist/ui-toast.js +125 -128
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
- package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
- package/dist/ui-toc.js +52 -53
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
- package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
- package/dist/ui-toolbar.js +254 -50
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
- package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
- package/dist/ui-transition.js +13 -14
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
- package/dist/ui-tree-diagram.js +128 -127
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
- package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
- package/dist/ui-tree.editor-BoQztwdz.js +5 -0
- package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
- package/dist/ui-tree.js +393 -134
- package/dist/ui-tree.js.map +1 -1
- package/dist/ui-value.editor-CYak24cr.js +5 -0
- package/dist/ui-value.editor-CYak24cr.js.map +1 -0
- package/dist/ui-video.editor-CuWtFVjR.js +5 -0
- package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
- package/dist/ui-video.js +15 -14
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
- package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
- package/dist/ui-visibility.js +25 -26
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
- package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
- package/dist/ui-zoom.js +82 -83
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +11 -2
- package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
- package/dist/vocabulary/help.generated.d.ts +11 -0
- package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
- package/package.json +3 -3
- package/dist/Dragging-CMZoLEWQ.js.map +0 -1
- package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
- package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
- package/dist/PrefStore-Qv0e5y04.js.map +0 -1
- package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
- package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
- package/dist/SitePages-CciwREek.js.map +0 -1
- package/dist/SlottedItems-Du3aJwG1.js +0 -80
- package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
- package/dist/UIButton-DFEds67r.js +0 -6
- package/dist/UIButton-DFEds67r.js.map +0 -1
- package/dist/UIInput-BodVbUoQ.js.map +0 -1
- package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
- package/dist/UILabel-DgJUBzB_.js.map +0 -1
- package/dist/UIMenu-zdcAtwTa.js +0 -42
- package/dist/UIMenu-zdcAtwTa.js.map +0 -1
- package/dist/UIRuntime-KH309p5B.js.map +0 -1
- package/dist/UISegment-CMMIW7cZ.js.map +0 -1
- package/dist/apple.palette-B4ivrNlM.js.map +0 -1
- package/dist/classic-DCTQrteU.js.map +0 -1
- package/dist/components.es-BOa_7gFF.js.map +0 -1
- package/dist/crisp-VfYZlTph.js.map +0 -1
- package/dist/crisp.theme-DRiePRdf.js +0 -6
- package/dist/crisp.theme-DRiePRdf.js.map +0 -1
- package/dist/dark-CbUdPe0a.js.map +0 -1
- package/dist/dist-BLYIGZVK.js.map +0 -1
- package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
- package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
- package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
- package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
- package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
- package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
- package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
- package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
- package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
- package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
- package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
- package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
- package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
- package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
- package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
- package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
- package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
- package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
- package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
- package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
- package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
- package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
- package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
- package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
- package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
- package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
- package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
- package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
- package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
- package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
- package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
- package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
- package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
- package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
- package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
- package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
- package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
- package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
- package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
- package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
- package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
- package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
- package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
- package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
- package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
- package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
- package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
- package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
- package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
- package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
- package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
- package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
- package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
- package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
- package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
- package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
- package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
- package/dist/fruity-BRVlgJZd.js +0 -6
- package/dist/fruity-BRVlgJZd.js.map +0 -1
- package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
- package/dist/glass-x9tbbwVq.js +0 -6
- package/dist/glass-x9tbbwVq.js.map +0 -1
- package/dist/glass.theme-24wY2wH9.js +0 -6
- package/dist/glass.theme-24wY2wH9.js.map +0 -1
- package/dist/matrix-QY2gWbJ0.js +0 -6
- package/dist/matrix-QY2gWbJ0.js.map +0 -1
- package/dist/matrix.theme-_8xtwhDq.js +0 -6
- package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
- package/dist/merlot-DOXLuUaU.js.map +0 -1
- package/dist/merlot.theme-S-QnNGsw.js +0 -6
- package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
- package/dist/midnight-BxlTQSfw.js.map +0 -1
- package/dist/midnight.theme-wXbqRYLy.js +0 -6
- package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
- package/dist/mockup-83ELBuVr.js +0 -6
- package/dist/mockup-83ELBuVr.js.map +0 -1
- package/dist/mockup.theme-DmpBgGBl.js +0 -6
- package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
- package/dist/paper-M61nUilz.js.map +0 -1
- package/dist/paper.theme-B8R5Jn5H.js +0 -6
- package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
- package/dist/persist.types-D2m6wD-S.js.map +0 -1
- package/dist/pop-CxXfytjk.js.map +0 -1
- package/dist/pop.theme-CXzv8B9x.js +0 -6
- package/dist/pop.theme-CXzv8B9x.js.map +0 -1
- package/dist/search-CzSzx7bX.js.map +0 -1
- package/dist/spell-By5Y3jKP.js +0 -6
- package/dist/spell-By5Y3jKP.js.map +0 -1
- package/dist/spell.theme-DxGj7qHx.js +0 -6
- package/dist/spell.theme-DxGj7qHx.js.map +0 -1
- package/dist/styles.en-CUUxNwHo.js.map +0 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
package/dist/ui-theme-editor.js
CHANGED
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
import { i as e } from "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./ui-
|
|
6
|
-
import "./ui-
|
|
7
|
-
import "./ui-label.js";
|
|
8
|
-
import "./ui-parts.js";
|
|
9
|
-
import { t as w } from "./PrefStore-Qv0e5y04.js";
|
|
10
|
-
import "./ui-message.js";
|
|
1
|
+
import { i as e } from "./rolldown-runtime-c6e9CmGy.js";
|
|
2
|
+
import { At as t, ClipboardCopy as n, DOMElement as r, Dt as i, Et as a, Gt as o, Jt as s, Kt as c, Ot as l, UI as u, UIComponent as d, Ut as f, Warnings as p, Wt as m, Yt as h, after as g, afterSolidUpdate as ee, cssState as _, derived as v, jt as y, kt as te, lazy as ne, onChange as b, once as re, proto as ie, protoMerged as ae, qt as x, soon as oe, state as S, untracked as C, whileConnected as se } from "./core.js";
|
|
3
|
+
import { t as w } from "./PrefStore-Di83C0bY.js";
|
|
4
|
+
import { i as ce, r as T, t as E } from "./ThemeDraft-CyX3YA_L.js";
|
|
5
|
+
import { a as le, c as ue, d as de, f as fe, i as pe, l as me, o as he, s as D, u as ge } from "./ui-theme-menu-BZYUMrHe.js";
|
|
6
|
+
import "./ui-property-editor.js";
|
|
11
7
|
import "./ui-input.js";
|
|
12
|
-
import "./ui-
|
|
8
|
+
import "./ui-select.js";
|
|
9
|
+
import "./ui-dropdown.js";
|
|
10
|
+
import "./ui-item.js";
|
|
11
|
+
import "./ui-slider.js";
|
|
13
12
|
import "./ui-menu.js";
|
|
13
|
+
import "./ui-button.js";
|
|
14
14
|
import "./ui-card.js";
|
|
15
|
-
import "./ui-
|
|
15
|
+
import "./ui-parts.js";
|
|
16
|
+
import "./ui-checkbox.js";
|
|
17
|
+
import "./ui-label.js";
|
|
18
|
+
import "./ui-message.js";
|
|
16
19
|
import "./ui-progress.js";
|
|
17
|
-
import "./ui-
|
|
20
|
+
import "./ui-icon.js";
|
|
18
21
|
import "./ui-section.js";
|
|
19
|
-
import "./ui-property-editor.js";
|
|
20
22
|
import "./ui-code.js";
|
|
21
|
-
import { i as ce, r as T, t as E } from "./ThemeDraft-B7NPif4d.js";
|
|
22
|
-
import { a as le, c as ue, d as de, f as fe, i as pe, l as me, o as he, s as D, u as ge } from "./ui-theme-menu-CuIjr8Ou.js";
|
|
23
23
|
import { For as O, Show as k } from "solid-js";
|
|
24
24
|
import { claimElement as _e, className as A, createComponent as j, delegateEvents as ve, effect as M, getOwner as N, insert as P, isServer as F, memo as I, readShallow as L, ref as R, setAttribute as z, style as ye, template as B } from "@solidjs/web";
|
|
25
|
-
|
|
25
|
+
// src/components/ui-theme-editor/PageBridge.ts
|
|
26
26
|
var be = class PageBridge {
|
|
27
27
|
static applyCss(e, t) {
|
|
28
28
|
let n = e.getElementById(Se);
|
|
29
|
-
|
|
30
|
-
n?.remove();
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
n || (n = e.createElement("style"), n.id = Se), n !== e.head.lastElementChild && e.head.append(n), n.textContent !== t && (n.textContent = t);
|
|
29
|
+
t ? (n || (n = e.createElement("style"), n.id = Se), n !== e.head.lastElementChild && e.head.append(n), n.textContent !== t && (n.textContent = t)) : n?.remove();
|
|
34
30
|
}
|
|
35
31
|
static pinScheme(e, t) {
|
|
36
32
|
let n = e.defaultView;
|
|
37
33
|
if (!n) return;
|
|
38
34
|
let r = !xe.has(n);
|
|
39
|
-
xe.set(n, t), PageBridge.showScheme(e, t), r && n.addEventListener("storage", () =>
|
|
35
|
+
xe.set(n, t), PageBridge.showScheme(e, t), r && n.addEventListener("storage", () => oe(() => PageBridge.showScheme(e, xe.get(n))));
|
|
40
36
|
}
|
|
41
37
|
static showScheme(e, t) {
|
|
42
38
|
let n = e.documentElement;
|
|
@@ -127,8 +123,7 @@ function isStyleRule(e) {
|
|
|
127
123
|
return "selectorText" in e && "style" in e;
|
|
128
124
|
}
|
|
129
125
|
var Te = /^https?:\/\/(?:localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/;
|
|
130
|
-
|
|
131
|
-
//#region ../src/util/color.ts
|
|
126
|
+
// ../src/util/color.ts
|
|
132
127
|
function rgbToHex({ r: e, g: t, b: n, alpha: r }) {
|
|
133
128
|
let i = r === void 0 || r >= 1 ? "" : byte(r);
|
|
134
129
|
return `#${byte(e)}${byte(t)}${byte(n)}${i}`;
|
|
@@ -139,8 +134,7 @@ function unit(e) {
|
|
|
139
134
|
function byte(e) {
|
|
140
135
|
return Math.round(unit(e) * 255).toString(16).padStart(2, "0");
|
|
141
136
|
}
|
|
142
|
-
|
|
143
|
-
//#region src/components/ui-theme-editor/TokenColor.ts
|
|
137
|
+
// src/components/ui-theme-editor/TokenColor.ts
|
|
144
138
|
var V = class TokenColor {
|
|
145
139
|
static isColor(e) {
|
|
146
140
|
return !!e && !e.includes("var(") && CSS.supports("color", e);
|
|
@@ -258,6 +252,7 @@ var V = class TokenColor {
|
|
|
258
252
|
],
|
|
259
253
|
skeleton: "30 tall",
|
|
260
254
|
noun: "theme editor",
|
|
255
|
+
partOfSpeech: "action",
|
|
261
256
|
description: "A theme editor makes a theme from an existing one: pick its colours, fonts and shapes, or set any token by hand, watch real pages follow in light and dark, then copy the theme file or keep it in the browser.",
|
|
262
257
|
attributes: [
|
|
263
258
|
{
|
|
@@ -1285,7 +1280,7 @@ var V = class TokenColor {
|
|
|
1285
1280
|
]
|
|
1286
1281
|
}, ke = "@layer ui.components.theme-editor.types{:host{--_ui-theme-editor-side-width:var(--ui-theme-editor-side-width,440px);--_ui-theme-editor-gap:var(--ui-theme-editor-gap,12px);display:block;container-type:inline-size}.theme-editor{gap:var(--_ui-theme-editor-gap);box-sizing:border-box;height:100%;color:var(--ui-text-color);font-family:var(--ui-font-family);grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);display:grid}.theme-editor.paged{min-height:640px}.body{grid-template-columns:minmax(0, 1fr) var(--_ui-theme-editor-side-width);gap:var(--_ui-theme-editor-gap);min-height:0;display:grid}@container (width<960px){.body{grid-template-columns:minmax(0,1fr)}}}@layer ui.components.theme-editor.content{.bar{border-radius:var(--ui-radius-l,12px);background:var(--ui-bar-background,var(--ui-surface));min-width:0;backdrop-filter:var(--ui-bar-filter,none);box-shadow:var(--ui-shadow-subtle,none);align-items:center;gap:14px;padding:8px 12px;display:flex}.title{flex:none;align-items:center;gap:10px;display:flex}.title ui-icon{color:var(--ui-primary);font-size:1.4em}.title h1{font-family:var(--ui-font-family-heading,inherit);white-space:nowrap;margin:0;font-size:1.1em;line-height:1.2}.tools-wrap{flex:auto;min-width:0;display:flex;position:relative}.tools{--_fade-start:0px;--_fade-end:0px;mask-image:linear-gradient(to right, transparent, #000 var(--_fade-start), #000 calc(100% - var(--_fade-end)), transparent);scrollbar-width:none;--ui-menu-margin:0;flex:auto;align-items:center;gap:10px;min-width:0;display:flex;overflow-x:auto}.page-toggles{margin-inline-start:auto}.bar{--_pressed-background:var(--ui-menu-segmented-active-background,var(--ui-surface-strong));--_pressed-shadow:inset 0 1px 3px #00000047, inset 0 0 0 1px color-mix(in oklab, var(--ui-text-color) 12%, transparent)}.toggle::part(item){color:var(--ui-text-muted)}.toggle.on::part(item){color:var(--ui-menu-segmented-active-color,var(--ui-text-color));background:var(--_pressed-background);box-shadow:var(--_pressed-shadow)}.more-start .tools{--_fade-start:40px}.more-end .tools{--_fade-end:40px}.edge{z-index:1;width:26px;color:var(--ui-text-muted);cursor:var(--ui-control-cursor);background:0 0;border:0;place-items:center;padding:0;display:inline-grid;position:absolute;inset-block:0}.edge.start{inset-inline-start:0}.edge.end{inset-inline-end:0}.edge[hidden]{display:none}.edge:hover{color:var(--ui-link,var(--ui-primary))}.edge ui-icon{--ui-icon-width:auto;margin:0}.bar-toggle{--ui-button-radius:9999px;--ui-button-background:transparent}.bar-toggle[aria-pressed=true]{--ui-button-background:var(--_pressed-background)}.bar-toggle[aria-pressed=true]::part(button){box-shadow:var(--_pressed-shadow)}.pages{gap:var(--_ui-theme-editor-gap);grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);min-height:0;display:grid}.pages.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pages.grid>.page.wide{grid-column:1/-1}.page{border-radius:var(--ui-radius-l,12px);background:var(--ui-surface);border:1px solid var(--ui-border-color);min-height:0;box-shadow:var(--ui-shadow-raised,none);grid-template-rows:auto minmax(0,1fr);gap:6px;margin:0;padding:6px;display:grid}.page[hidden]{display:none}@container (width<960px){.pages,.pages.grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:70vh}.page-path{display:none}}.page-head{border-radius:calc(var(--ui-radius-l,12px) - 6px);cursor:grab;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;min-width:0;padding:2px 6px;display:flex}.page-head:focus-visible{outline:2px solid var(--ui-focus-color,var(--ui-primary));outline-offset:1px}.pages.dragging iframe{pointer-events:none}.page{position:relative}.page.drop-before:after,.page.drop-after:after{content:\"\";background:var(--ui-primary);pointer-events:none;border-radius:2px;width:4px;position:absolute;inset-block:0}.page.drop-before:after{inset-inline-start:calc(-1 * var(--_ui-theme-editor-gap) / 2 - 2px)}.page.drop-after:after{inset-inline-end:calc(-1 * var(--_ui-theme-editor-gap) / 2 - 2px)}.page-icon{--ui-icon-width:auto;color:var(--ui-primary-text,var(--ui-primary));margin:0}.page-title{white-space:nowrap;font-weight:600}.page-path{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-text-muted);margin-inline-end:auto;font-size:.8em;overflow:hidden}.page-tool{color:var(--ui-text-muted);display:inline-flex}.frames{grid-template-columns:minmax(0,1fr);gap:6px;min-height:0;display:grid}.frames.both{grid-template-columns:repeat(2,minmax(0,1fr))}.frames.dark-first .frame.dark{order:-1}.frame{grid-template-rows:minmax(0,1fr);min-height:0;display:grid}.viewport{border-radius:calc(var(--ui-radius-l,12px) - 6px);background:var(--ui-background);min-height:0;position:relative;overflow:hidden}.viewport.phone{background:var(--ui-surface-muted,var(--ui-background))}.viewport iframe{transform-origin:0 0;background:var(--ui-background);border:0;position:absolute;inset:0 auto auto 0}.viewport:not(.loaded) iframe{visibility:hidden}.viewport .note{margin:1.5em}.previews{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-content:start;gap:1em;display:grid}.sample{border-radius:var(--ui-radius-l,14px);color:var(--ui-text-color);font-family:var(--ui-font-family);background-color:var(--ui-background);background-image:var(--ui-bar-wallpaper,none);box-shadow:0 0 0 1px var(--ui-border-color);--ui-card-margin-block:0;--ui-progress-margin:0;--ui-message-margin:0;--ui-message-icon-size:1.25em;flex-direction:column;gap:.9em;padding:1.1em;display:flex}.sample[hidden]{display:none}.sample-head{justify-content:space-between;align-items:center;gap:.75em;display:flex}.sample-scheme{font:600 .7em/1 var(--ui-font-family-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ui-text-muted)}.sample-title{font:700 1.45em/1.15 var(--ui-font-family-heading);color:var(--ui-text-dark);margin-block-start:.2em}.sample-badge{border-radius:var(--ui-radius-m,10px);background:var(--ui-primary-background);block-size:2.4em;inline-size:2.4em;color:var(--ui-primary-text);place-items:center;display:grid}.habits{flex-direction:column;gap:.6em;margin-block:.6em .9em;display:flex}.add{gap:.5em;display:flex}.add>ui-input{flex:1;min-inline-size:0}.sample-row{--ui-button-margin-inline:0;flex-wrap:wrap;align-items:center;gap:.5em;display:flex}.side{overscroll-behavior:contain;border-radius:var(--ui-radius-l,12px);background:var(--ui-surface);border:1px solid var(--ui-border-color);min-height:0;box-shadow:var(--ui-shadow-raised,none);flex-direction:column;gap:10px;padding:12px;display:flex;overflow-y:auto}.actions{--ui-button-margin-inline:0;flex-wrap:wrap;gap:.5em;display:flex}.note{color:var(--ui-text-muted);margin:.5em 0}.properties{padding:4px 8px 8px;display:block}.file{min-width:0;font-family:var(--ui-font-family-mono);color:var(--ui-text-muted);white-space:nowrap;text-overflow:ellipsis;flex:auto;font-size:.8em;overflow:hidden}.group::part(heading){white-space:nowrap}.changes ui-code{--ui-code-font-size:.8em;--ui-code-line-height:1.55}.changes .note{padding-inline:8px}.properties ui-item{white-space:nowrap}.basics,.tokens{flex-direction:column;gap:10px;display:flex}.group{--ui-section-margin:0;--ui-section-content-padding:0;border-radius:calc(var(--ui-radius-l,12px) - 4px);border:1px solid var(--ui-border-color-internal,var(--ui-border-color));background:color-mix(in oklab, var(--ui-surface) 55%, transparent);display:block;overflow:clip}.group::part(title){background:linear-gradient(var(--ui-section-title-background,var(--ui-surface-strong)), var(--ui-section-title-background,var(--ui-surface-strong))), linear-gradient(var(--ui-surface), var(--ui-surface)), var(--ui-background);border-block-end:1px solid var(--ui-border-color-internal,var(--ui-border-color));padding:6px 8px}.group::part(heading){font-size:1em}.branch{--ui-section-margin:0;--ui-section-content-padding:0;border-inline-start:1px solid var(--ui-border-color-internal,var(--ui-border-color));margin-inline-start:12px;display:block}.branch::part(title){background:linear-gradient(var(--ui-surface), var(--ui-surface)), var(--ui-background);padding:4px 8px}.branch::part(heading){font-size:.85em;font-weight:600;font-family:var(--ui-font-family-mono,monospace)}.mark{text-align:center;flex:none;width:1em;font-size:.8em;line-height:1}.mark.set{color:var(--ui-primary-text,var(--ui-primary))}.mark.from{color:var(--ui-text-muted)}.group-count{color:var(--ui-text-muted);white-space:nowrap;font-size:.75em}.chip{--ui-button-radius:9999px;flex:none}.chip[aria-pressed=true]{--ui-button-background:var(--ui-primary-background,var(--ui-surface-strong))}.marks-legend{color:var(--ui-text-muted);margin:0;padding-inline:8px;font-size:.75em}.marks-legend .mark{display:inline-block}.side-head{z-index:calc(var(--ui-z-sticky,10) + 10);background:linear-gradient(var(--ui-surface), var(--ui-surface)), var(--ui-background);border-block-end:1px solid var(--ui-border-color-internal,var(--ui-border-color));gap:8px;margin:0 -12px;padding:12px 12px 6px;display:grid;position:sticky;top:-12px;container-type:scroll-state}@container scroll-state(stuck:top){.side-head:after{content:\"\";pointer-events:none;background:linear-gradient(#0000001f,#0000);height:10px;position:absolute;inset:100% 0 auto}}.tokens-bar{align-items:center;gap:2px;display:flex}.tokens-bar .tokens-title{margin-inline-end:auto}.head-tool{--ui-button-background:transparent;--ui-button-radius:.45em}.head-tool[aria-pressed=true]{--ui-button-background:var(--ui-menu-segmented-active-background,var(--ui-surface-strong))}.info-pane{gap:4px;display:grid}.half-dot{box-sizing:border-box;border:1.5px solid var(--ui-warning-text,#b45309);background:linear-gradient(90deg, var(--ui-warning-text,#b45309) 50%, var(--ui-surface) 50%);border-radius:50%;width:9px;height:9px;display:inline-block}.tokens-title{font-family:var(--ui-font-family-heading,inherit);margin:0;font-size:1em}.find-row{align-items:center;gap:6px;display:flex}.find-row .find{flex:auto;min-width:0}.toggle-all{width:1.9em;height:1.9em;color:var(--ui-text-muted);cursor:var(--ui-control-cursor);background:0 0;border:none;border-radius:.45em;flex:none;place-items:center;padding:0;display:inline-grid}.toggle-all:hover{color:var(--ui-link,var(--ui-primary));background:color-mix(in oklab, currentColor 10%, transparent)}.toggle-all:focus-visible{outline:2px solid var(--ui-focus-color,var(--ui-link));outline-offset:1px}.chevrons{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:1em;height:1em;display:block}.legend{color:var(--ui-text-muted);flex-wrap:wrap;align-items:center;gap:4px 10px;padding-inline:8px;font-size:.75em;display:flex}.legend-label{font-weight:600}.legend-item{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}.legend-item.overrides{flex-basis:100%}.legend-item ui-icon{--ui-icon-width:auto;color:var(--ui-primary-text,var(--ui-primary));margin:0}.probe{width:0;height:0;position:absolute;overflow:hidden}.probe.ui-light{color-scheme:light}.probe.ui-dark{color-scheme:dark}}", Ae = /* @__PURE__ */ B("<div class=pages>"), je = /* @__PURE__ */ B("<div class=\"ui theme-editor\"><div class=body><!><!></div><div class=\"probe ui-light\"aria-hidden=true></div><div class=\"probe ui-dark\"aria-hidden=true>"), Me = /* @__PURE__ */ B("<ui-button class=\"bar-toggle phone\"size=small icon=\"mobile alternate\">", 1), Ne = /* @__PURE__ */ B("<header class=bar><div class=title><ui-icon name=swatchbook aria-hidden=true></ui-icon><h1></h1></div><div class=tools-wrap><div class=tools><!><!><!></div><!>", 1), Pe = /* @__PURE__ */ B("<ui-item class=toggle icon=\"exchange alternate\">", 1), Fe = /* @__PURE__ */ B("<ui-menu class=schemes-group appearance=\"segmented link header\"size=small><!><!>", 1), H = /* @__PURE__ */ B("<ui-item>", 1), Ie = /* @__PURE__ */ B("<ui-menu class=page-toggles appearance=\"segmented link header\"choose=many size=small>", 1), Le = /* @__PURE__ */ B("<button type=button><ui-icon aria-hidden=true>", 1), Re = /* @__PURE__ */ B("<ui-menu appearance=\"segmented link\"size=small>", 1), ze = /* @__PURE__ */ B("<a class=page-tool target=_blank><ui-icon name=\"external alternate\"appearance=link aria-hidden=true>", 1), Be = /* @__PURE__ */ B("<figure class=page><figcaption class=page-head draggable=true tabindex=0><ui-icon class=page-icon aria-hidden=true></ui-icon><span class=page-title></span><code class=page-path></code><ui-icon class=page-tool name=redo link appearance=link></ui-icon></figcaption><div>", 1), Ve = /* @__PURE__ */ B("<iframe>"), He = /* @__PURE__ */ B("<p class=\"note loading\">"), Ue = /* @__PURE__ */ B("<div><div class=viewport>"), U = /* @__PURE__ */ B("<p class=note>"), We = /* @__PURE__ */ B("<div class=previews><!><!>"), Ge = /* @__PURE__ */ B("<div><div class=sample-head><div><div class=sample-scheme></div><div class=sample-title></div></div><span class=sample-badge><ui-icon name=seedling aria-hidden=true></ui-icon></span></div><ui-card fluid><ui-content><ui-header></ui-header><div class=habits><ui-checkbox selected></ui-checkbox><ui-checkbox></ui-checkbox><ui-checkbox></ui-checkbox></div><div class=add><ui-input></ui-input><ui-button icon=plus color=primary></ui-button></div></ui-content></ui-card><div class=sample-row><ui-button size=small color=secondary></ui-button><ui-button size=small appearance=basic></ui-button><ui-label size=small color=primary></ui-label><ui-checkbox appearance=toggle selected></ui-checkbox></div><ui-message color=primary><ui-icon slot=icon name=bolt></ui-icon><b></b> </ui-message><ui-progress value=66>", 1), Ke = /* @__PURE__ */ B("<aside class=side><!><!><!><!>"), qe = /* @__PURE__ */ B("<ui-button size=small icon=\"trash alternate outline\"appearance=basic>", 1), Je = /* @__PURE__ */ B("<ui-select size=small>", 1), Ye = /* @__PURE__ */ B("<ui-button size=small icon=upload appearance=basic>", 1), Xe = /* @__PURE__ */ B("<div class=actions><ui-button size=small appearance=basic></ui-button><ui-button size=small icon=save color=primary></ui-button><ui-button size=small icon=\"copy outline\"appearance=basic></ui-button><ui-button size=small icon=download appearance=basic></ui-button><ui-button size=small icon=upload appearance=basic></ui-button><input type=file class=import-file accept=.json5,.json hidden><!><!><!><!><!>", 1), Ze = /* @__PURE__ */ B("<p class=\"note error\">"), Qe = /* @__PURE__ */ B("<section class=basics><div class=side-head><header class=tokens-bar><h2 class=tokens-title></h2></header></div><!><!><!><!>"), $e = /* @__PURE__ */ B("<ui-property name=name width=1/2><ui-input size=small fluid>", 1), et = /* @__PURE__ */ B("<ui-item kind=header>", 1), tt = /* @__PURE__ */ B("<ui-property name=base width=1/2><ui-select size=small fluid><!><!>", 1), nt = /* @__PURE__ */ B("<ui-section class=group collapsible level=3 sticky><ui-property-editor class=properties compact show-defaults>", 1), rt = /* @__PURE__ */ B("<ui-property>", 1), it = /* @__PURE__ */ B("<ui-property width=1/2><ui-select size=small fluid><ui-item>", 1), at = /* @__PURE__ */ B("<ui-property name=textSize><ui-slider>", 1), ot = /* @__PURE__ */ B("<ui-property><ui-menu appearance=\"segmented link\"align=fluid size=small>", 1), st = /* @__PURE__ */ B("<ui-button slot=actions size=mini appearance=\"circular basic\">", 1), ct = /* @__PURE__ */ B("<div class=find-row><ui-input class=find size=small icon=search fluid></ui-input><ui-button class=chip size=mini appearance=basic> <!>", 1), lt = /* @__PURE__ */ B("<div class=info-pane><p class=marks-legend> <b></b> · <span class=\"mark set\"></span> <!> <span class=\"mark from\"></span> <!> <span class=source-mark></span> <!> <span class=source-mark></span> <!>"), ut = /* @__PURE__ */ B("<section class=tokens><div class=\"side-head tokens-head\"><header class=tokens-bar><h2 class=tokens-title></h2><!><!><!></header><!><!>"), dt = /* @__PURE__ */ B("<span slot=actions class=group-count>"), ft = /* @__PURE__ */ B("<ui-section collapsible sticky><!><!>", 1), pt = /* @__PURE__ */ B("<ui-theme-token>", 1), mt = /* @__PURE__ */ B("<ui-button class=head-tool size=mini>", 1), ht = /* @__PURE__ */ B("<button type=button class=toggle-all><svg class=chevrons viewBox=\"0 0 16 16\"aria-hidden=true><path>"), gt = /* @__PURE__ */ B("<div class=legend aria-hidden=true><span class=legend-label></span><span class=\"legend-item overrides\"><span class=half-dot>"), _t = /* @__PURE__ */ B("<span class=legend-item><ui-icon>", 1), vt = /* @__PURE__ */ B("<ui-code language=javascript wrap>", 1), yt = /* @__PURE__ */ B("<ui-section class=\"group changes\"collapsible level=2 sticky><span slot=actions class=file></span><ui-button slot=actions class=copy size=mini>", 1), bt, xt, St, Ct, W, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, Ft, It, Lt, Rt, zt, Bt, Vt, Ht, Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, Zt, Qt, $t, en, tn, nn, rn, an, on, sn, cn, ln, un, dn, fn, pn, mn, hn, gn, _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Nn, Pn, Fn, In, Ln, Rn, zn, Bn, Vn, Hn, G, Un, Wn, Gn, Kn, qn, Jn, Yn, Xn, Zn, Qn, $n, er, tr, nr, rr, ir, ar, or, sr, cr, lr, ur, dr, fr, pr, mr, hr, K = class _DOMThemeEditorElement extends (Ct = r, St = [C], xt = [C], bt = [C], Ct) {
|
|
1287
1282
|
constructor() {
|
|
1288
|
-
super(...arguments),
|
|
1283
|
+
super(...arguments), h(W, 5, this);
|
|
1289
1284
|
}
|
|
1290
1285
|
get theme() {
|
|
1291
1286
|
return this.component?.theme;
|
|
@@ -1297,30 +1292,30 @@ var V = class TokenColor {
|
|
|
1297
1292
|
return this.component?.draft.changes;
|
|
1298
1293
|
}
|
|
1299
1294
|
};
|
|
1300
|
-
W =
|
|
1301
|
-
var gr = K, q = class _UIThemeEditor extends (Hn =
|
|
1295
|
+
W = o(Ct), f(W, 2, "theme", St, K), f(W, 2, "css", xt, K), f(W, 2, "changes", bt, K), m(W, K), c(K, "DOMThemeEditorElement");
|
|
1296
|
+
var gr = K, q = class _UIThemeEditor extends (Hn = d, Vn = [ie], Bn = [ae], zn = [S], Rn = [S], Ln = [S], In = [re], Fn = [v], Pn = [_("changed")], Nn = [C], Mn = [C], jn = [C], An = [C], kn = [C], On = [b("isConnected", "isReady", "hasPages")], Dn = [b("draft", "isConnected", "isReady", "hasPages")], En = [b("baseTheme", "scheme", { defer: !0 })], Tn = [S], wn = [S], Cn = [C], Sn = [C], xn = [C], bn = [C], yn = [C], vn = [v], _n = [S], gn = [C], hn = [S], mn = [S], pn = [se], fn = [C], dn = [C], un = [se], ln = [S], cn = [S], sn = [S], on = [C], an = [C], rn = [S], nn = [C], tn = [S], en = [S], $t = [C], Qt = [b("hasPages", "isConnected", "baseTheme", "schemes", "isSwapped", "shownPageIds", "device")], Zt = [S], Xt = [S], Yt = [S], Jt = [v], qt = [C], Kt = [C], Gt = [C], Wt = [S], Ut = [ne], Ht = [S], Vt = [v], Bt = [S], zt = [S], Rt = [C], Lt = [S], It = [v], Ft = [v], Pt = [C], Nt = [C], Mt = [S], jt = [S], At = [S], kt = [S], Ot = [C], Dt = [C], Et = [S], Tt = [C], wt = [C], Hn) {
|
|
1302
1297
|
constructor() {
|
|
1303
|
-
super(...arguments),
|
|
1298
|
+
super(...arguments), h(G, 5, this), s(this, "addressed", F ? {} : pe.read()), x(this, Un, h(G, 8, this)), h(G, 11, this), s(this, "keptAtStart", F ? void 0 : w.getAt(xr)), x(this, Wn, h(G, 12, this)), h(G, 15, this), x(this, Gn, h(G, 16, this)), h(G, 19, this), x(this, Kn, h(G, 20, this, F ? [] : D.list)), h(G, 23, this), x(this, qn, h(G, 24, this, F ? void 0 : w.getAt(Sr))), h(G, 27, this), s(this, "exportUrl"), x(this, Jn, h(G, 28, this)), h(G, 31, this), x(this, Yn, h(G, 32, this, !1)), h(G, 35, this), x(this, Xn, h(G, 36, this)), h(G, 39, this), s(this, "clipboard", new n({ seconds: ui })), x(this, Zn, h(G, 40, this, F ? [] : w.getAt(Tr) ?? [])), h(G, 43, this), x(this, Qn, h(G, 44, this, F ? [] : w.getAt(Er) ?? [])), h(G, 47, this), x(this, $n, h(G, 48, this, this.addressed.pages)), h(G, 51, this), x(this, er, h(G, 52, this, F ? "both" : this.addressed.schemes ?? w.getAt(jr) ?? "both")), h(G, 55, this), x(this, tr, h(G, 56, this, this.addressed.device ?? "desk")), h(G, 59, this), x(this, nr, h(G, 60, this, F ? !1 : this.addressed.isSwapped ?? w.getAt(Or) === !0)), h(G, 63, this), x(this, rr, h(G, 64, this, {})), h(G, 67, this), x(this, ir, h(G, 68, this, {})), h(G, 71, this), x(this, ar, h(G, 72, this, {})), h(G, 75, this), s(this, "frames", /* @__PURE__ */ new Map()), s(this, "begun", /* @__PURE__ */ new Set()), s(this, "asked", 0), x(this, or, h(G, 76, this, {
|
|
1304
1299
|
basics: 0,
|
|
1305
1300
|
tokens: 0,
|
|
1306
1301
|
top: 0
|
|
1307
|
-
})),
|
|
1302
|
+
})), h(G, 79, this), s(this, "heads", /* @__PURE__ */ new Map()), x(this, sr, h(G, 80, this, "")), h(G, 83, this), x(this, cr, h(G, 84, this, F ? {} : w.getAt(wr) ?? {})), h(G, 87, this), s(this, "branchSections", /* @__PURE__ */ new Map()), x(this, lr, h(G, 88, this, !1)), h(G, 91, this), x(this, ur, h(G, 92, this, !1)), h(G, 95, this), s(this, "probes", {}), s(this, "text", /* @__PURE__ */ c((e, t) => this.isReady ? this.translationForKey(e, t) : "", "text")), x(this, dr, h(G, 96, this, {
|
|
1308
1303
|
start: !1,
|
|
1309
1304
|
end: !1
|
|
1310
|
-
})),
|
|
1305
|
+
})), h(G, 99, this), s(this, "toolsBox"), x(this, fr, h(G, 100, this)), h(G, 103, this), x(this, pr, h(G, 104, this)), h(G, 107, this), x(this, mr, h(G, 108, this, F ? {
|
|
1311
1306
|
search: !1,
|
|
1312
1307
|
info: !1
|
|
1313
1308
|
} : {
|
|
1314
1309
|
search: !1,
|
|
1315
1310
|
info: !1,
|
|
1316
1311
|
...w.getAt(ti)
|
|
1317
|
-
})),
|
|
1312
|
+
})), h(G, 111, this), s(this, "findInput"), x(this, hr, h(G, 112, this)), h(G, 115, this);
|
|
1318
1313
|
}
|
|
1319
1314
|
get theme() {
|
|
1320
1315
|
return this.edited ?? this.startingTheme;
|
|
1321
1316
|
}
|
|
1322
1317
|
get startingTheme() {
|
|
1323
|
-
let e = this.value, t = this.addressed.theme, n = t ?? this.base ?? (this.isReady ?
|
|
1318
|
+
let e = this.value, t = this.addressed.theme, n = t ?? this.base ?? (this.isReady ? u.themes.current : void 0) ?? "fruity";
|
|
1324
1319
|
if (e && typeof e == "object") return {
|
|
1325
1320
|
...e,
|
|
1326
1321
|
name: e.name ?? this.text("defaultName"),
|
|
@@ -1411,22 +1406,19 @@ var gr = K, q = class _UIThemeEditor extends (Hn = f, Vn = [ne], Bn = [re], zn =
|
|
|
1411
1406
|
onShown(e, t, n) {
|
|
1412
1407
|
if (!e || !t) return;
|
|
1413
1408
|
if (this.loadFiles(), n) return he.wear(br), () => void he.wear(void 0);
|
|
1414
|
-
let r =
|
|
1409
|
+
let r = u.themes.current, i = u.styles.sheet(me), a = i ? [...i.cssRules].map((e) => e.cssText).join("\n") : "";
|
|
1415
1410
|
return () => {
|
|
1416
|
-
D.putOnPage(a),
|
|
1417
|
-
|
|
1411
|
+
D.putOnPage(a), u.themes.current !== r && u.themes.apply(r).catch((e) => {
|
|
1412
|
+
p.warn("<ui-theme-editor>", `can't put the page's theme \`${r}\` back`, e);
|
|
1418
1413
|
});
|
|
1419
1414
|
};
|
|
1420
1415
|
}
|
|
1421
1416
|
onDraftChanged(e, t, n, r) {
|
|
1422
1417
|
if (t && n) {
|
|
1423
|
-
if (!r) {
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
return;
|
|
1428
|
-
}
|
|
1429
|
-
for (let e of this.frameKeys) this.dress(e, {
|
|
1418
|
+
if (!r) D.wear(e.choices.base, e.css).catch((t) => {
|
|
1419
|
+
p.warn("<ui-theme-editor>", `can't apply the theme on \`${e.choices.base}\``, t);
|
|
1420
|
+
});
|
|
1421
|
+
else for (let e of this.frameKeys) this.dress(e, {
|
|
1430
1422
|
css: !0,
|
|
1431
1423
|
look: !0
|
|
1432
1424
|
});
|
|
@@ -1471,7 +1463,7 @@ var gr = K, q = class _UIThemeEditor extends (Hn = f, Vn = [ne], Bn = [re], zn =
|
|
|
1471
1463
|
}
|
|
1472
1464
|
async remove() {
|
|
1473
1465
|
let e = this.editing;
|
|
1474
|
-
e && await
|
|
1466
|
+
e && await u.modals.confirm(this.text("removeAsk", { name: e.name })) && (D.remove(e.id), this.myThemes = D.list, this.setEditing(void 0), this.send("ui-saved", { css: "" }));
|
|
1475
1467
|
}
|
|
1476
1468
|
open(e) {
|
|
1477
1469
|
let t = D.get(e);
|
|
@@ -1501,23 +1493,23 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1501
1493
|
async importFile(t) {
|
|
1502
1494
|
this.importError = void 0;
|
|
1503
1495
|
try {
|
|
1504
|
-
let n = this.files ?? await T.load(), { default: r } = await import("./dist-
|
|
1496
|
+
let n = this.files ?? await T.load(), { default: r } = await import("./dist-BQT4KajA.js").then((t) => /* @__PURE__ */ e(t.default, 1)), i = r.parse(await t.text()), a = t.name.replace(/\.theme\.json5$|\.json5?$/, ""), o = new ce({
|
|
1505
1497
|
name: a,
|
|
1506
1498
|
data: i,
|
|
1507
1499
|
themes: n.themes,
|
|
1508
1500
|
palettes: n.palettes
|
|
1509
|
-
}).declarations(), s = typeof i.extends == "string" &&
|
|
1501
|
+
}).declarations(), s = typeof i.extends == "string" && u.themes.own.includes(i.extends) ? i.extends : ue, c = D.freeName(typeof i.title == "string" && i.title ? i.title : a), l = {
|
|
1510
1502
|
name: c,
|
|
1511
1503
|
base: s,
|
|
1512
1504
|
tokens: Object.fromEntries(o.map(([e, t]) => [e, { both: t }]))
|
|
1513
|
-
},
|
|
1505
|
+
}, d = new E({
|
|
1514
1506
|
choices: l,
|
|
1515
1507
|
files: n,
|
|
1516
1508
|
text: this.text
|
|
1517
1509
|
}).css, f = this.keep(D.save({
|
|
1518
1510
|
name: c,
|
|
1519
1511
|
choices: l,
|
|
1520
|
-
css:
|
|
1512
|
+
css: d
|
|
1521
1513
|
}));
|
|
1522
1514
|
this.keepDraft(f.choices);
|
|
1523
1515
|
} catch (e) {
|
|
@@ -1555,7 +1547,7 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1555
1547
|
headers: { "content-type": "application/json" },
|
|
1556
1548
|
body: JSON.stringify(t)
|
|
1557
1549
|
}), r = await n.json().catch(() => ({}));
|
|
1558
|
-
if (n.status === 409 && !e) return await
|
|
1550
|
+
if (n.status === 409 && !e) return await u.modals.confirm(this.text("intoSpellUiAsk", { name: this.draft.slug })) ? this.saveIntoSpellUi(!0) : void 0;
|
|
1559
1551
|
this.spellUiNote = n.ok ? this.text("intoSpellUiDone", { file: r.file ?? this.draft.fileName }) : r.error ?? `${n.status} ${n.statusText}`;
|
|
1560
1552
|
} catch (e) {
|
|
1561
1553
|
this.spellUiNote = String(e);
|
|
@@ -1563,11 +1555,7 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1563
1555
|
}
|
|
1564
1556
|
async copy() {
|
|
1565
1557
|
let e = this.draft.changes;
|
|
1566
|
-
|
|
1567
|
-
h.warn("<ui-theme-editor>", "the clipboard refused the theme file");
|
|
1568
|
-
return;
|
|
1569
|
-
}
|
|
1570
|
-
this.send("ui-copied", { text: e });
|
|
1558
|
+
await this.clipboard.copy(e) ? this.send("ui-copied", { text: e }) : p.warn("<ui-theme-editor>", "the clipboard refused the theme file");
|
|
1571
1559
|
}
|
|
1572
1560
|
get pageList() {
|
|
1573
1561
|
let e = this.pages;
|
|
@@ -1586,7 +1574,7 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1586
1574
|
return [...new Set(this.pageList.flatMap((e) => e.ownPrefix ? [e.ownPrefix] : []))];
|
|
1587
1575
|
}
|
|
1588
1576
|
listenToPages() {
|
|
1589
|
-
let e = /* @__PURE__ */
|
|
1577
|
+
let e = /* @__PURE__ */ c((e) => this.onPageMessage(e), "onMessage");
|
|
1590
1578
|
return window.addEventListener("message", e), () => window.removeEventListener("message", e);
|
|
1591
1579
|
}
|
|
1592
1580
|
get shownSchemes() {
|
|
@@ -1596,7 +1584,7 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1596
1584
|
return this.schemes === "dark" ? "dark" : "light";
|
|
1597
1585
|
}
|
|
1598
1586
|
get orderedPageIds() {
|
|
1599
|
-
let e = /* @__PURE__ */
|
|
1587
|
+
let e = /* @__PURE__ */ c((e) => e.filter((e) => this.pageIds.includes(e)), "known");
|
|
1600
1588
|
return [.../* @__PURE__ */ new Set([
|
|
1601
1589
|
...e(this.addressedPages ?? []),
|
|
1602
1590
|
...e(this.pageOrder),
|
|
@@ -1604,8 +1592,8 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1604
1592
|
])];
|
|
1605
1593
|
}
|
|
1606
1594
|
get shownPageIds() {
|
|
1607
|
-
let e = this.addressedPages,
|
|
1608
|
-
return
|
|
1595
|
+
let e = this.addressedPages, t = /* @__PURE__ */ c((t) => e ? e.includes(t) : !this.hiddenPages.includes(t), "isShown"), n = this.orderedPageIds.filter(t);
|
|
1596
|
+
return n.length ? n : this.orderedPageIds;
|
|
1609
1597
|
}
|
|
1610
1598
|
showPages(e, t) {
|
|
1611
1599
|
let n = e.filter((e) => !t.includes(e));
|
|
@@ -1707,7 +1695,7 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1707
1695
|
if (s?.documentElement) try {
|
|
1708
1696
|
t.theme && await (await _UIThemeEditor.runtimeOf(o))?.themes.apply(this.baseTheme), t.scheme && be.pinScheme(s, this.schemeOf(r)), t.css && be.applyCss(s, this.draft.frameCss), t.look && this.took(e, be.look(s, this.tokenList));
|
|
1709
1697
|
} catch (t) {
|
|
1710
|
-
|
|
1698
|
+
p.warn("<ui-theme-editor>", `can't dress the ${e} page`, t);
|
|
1711
1699
|
}
|
|
1712
1700
|
}
|
|
1713
1701
|
post(e, t, n, r) {
|
|
@@ -1740,7 +1728,7 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1740
1728
|
F || (t.dataset.frame = e, this.resizer.observe(t));
|
|
1741
1729
|
}
|
|
1742
1730
|
watchHead(e, t) {
|
|
1743
|
-
this.heads.set(e, t),
|
|
1731
|
+
this.heads.set(e, t), F || (t.dataset.head = e, this.resizer.observe(t));
|
|
1744
1732
|
}
|
|
1745
1733
|
measureHeads() {
|
|
1746
1734
|
let e = { ...this.headBottom };
|
|
@@ -1786,23 +1774,23 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1786
1774
|
return e;
|
|
1787
1775
|
}
|
|
1788
1776
|
get groups() {
|
|
1789
|
-
let e = this.files,
|
|
1777
|
+
let e = this.files, t = e?.groupsFor(this.baseTheme, this.pageTokens) ?? [], n = this.filter.trim().toLowerCase(), r = this.isSetHereOnly ? t.map((e) => ({
|
|
1790
1778
|
...e,
|
|
1791
1779
|
tokens: e.tokens.filter((e) => this.isSetHere(e))
|
|
1792
|
-
})).filter((e) => e.tokens.length) :
|
|
1793
|
-
if (!
|
|
1794
|
-
let
|
|
1795
|
-
return
|
|
1780
|
+
})).filter((e) => e.tokens.length) : t;
|
|
1781
|
+
if (!n || !e) return r;
|
|
1782
|
+
let i = /* @__PURE__ */ c((t, r) => t.includes(n) || [r, ...e.pathOf(t, r)].join(" ").includes(n), "matches");
|
|
1783
|
+
return r.map((e) => ({
|
|
1796
1784
|
...e,
|
|
1797
|
-
tokens: e.tokens.filter((t) =>
|
|
1785
|
+
tokens: e.tokens.filter((t) => i(t, e.place))
|
|
1798
1786
|
})).filter((e) => e.tokens.length);
|
|
1799
1787
|
}
|
|
1800
1788
|
get tree() {
|
|
1801
1789
|
let e = this.files;
|
|
1802
1790
|
return new De({
|
|
1803
1791
|
groups: this.groups,
|
|
1804
|
-
pathOf: /* @__PURE__ */
|
|
1805
|
-
labelOf: /* @__PURE__ */
|
|
1792
|
+
pathOf: /* @__PURE__ */ c((t, n) => e?.pathOf(t, n) ?? [t], "pathOf"),
|
|
1793
|
+
labelOf: /* @__PURE__ */ c((e) => this.groupLabel(e), "labelOf")
|
|
1806
1794
|
});
|
|
1807
1795
|
}
|
|
1808
1796
|
groupLabel(e) {
|
|
@@ -1812,13 +1800,13 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1812
1800
|
return this.filter.trim() ? !this.isFilterFolded : this.folds[e] ?? e === Fr;
|
|
1813
1801
|
}
|
|
1814
1802
|
get branchIds() {
|
|
1815
|
-
let e = [],
|
|
1816
|
-
if (r ||
|
|
1817
|
-
e.push(
|
|
1818
|
-
for (let e of
|
|
1803
|
+
let e = [], t = /* @__PURE__ */ c((n, r) => {
|
|
1804
|
+
if (r || n.children.length) {
|
|
1805
|
+
e.push(n.id);
|
|
1806
|
+
for (let e of n.children) t(e, !1);
|
|
1819
1807
|
}
|
|
1820
1808
|
}, "walk");
|
|
1821
|
-
for (let e of this.tree.roots)
|
|
1809
|
+
for (let e of this.tree.roots) t(e, !0);
|
|
1822
1810
|
return e;
|
|
1823
1811
|
}
|
|
1824
1812
|
get isAllOpen() {
|
|
@@ -1867,12 +1855,12 @@ ${JSON.stringify(e, void 0, 2)}
|
|
|
1867
1855
|
${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
1868
1856
|
}
|
|
1869
1857
|
setHere(e) {
|
|
1870
|
-
let
|
|
1858
|
+
let t = /* @__PURE__ */ c((t) => this.kindOf(e, t) === "color" || this.sourceOf(e).kind !== "plain" ? V.join(this.colorOf(e, t).hex, this.colorOf(e, t).opacity) : this.valueOf(e, t), "now"), [n, r] = [t("light"), t("dark")];
|
|
1871
1859
|
this.choose({ tokens: {
|
|
1872
1860
|
...this.tokenEdits,
|
|
1873
|
-
[e]:
|
|
1874
|
-
light:
|
|
1875
|
-
dark:
|
|
1861
|
+
[e]: n === r ? { both: n } : {
|
|
1862
|
+
light: n,
|
|
1863
|
+
dark: r
|
|
1876
1864
|
}
|
|
1877
1865
|
} });
|
|
1878
1866
|
}
|
|
@@ -1954,109 +1942,109 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
1954
1942
|
}), t;
|
|
1955
1943
|
}
|
|
1956
1944
|
bar() {
|
|
1957
|
-
let e = this.text,
|
|
1958
|
-
var
|
|
1959
|
-
return
|
|
1945
|
+
let e = this.text, t = this;
|
|
1946
|
+
var n = Ne(), r = n.firstChild, i = r.firstChild, a = i.nextSibling, o = r.nextSibling, s = o.firstChild, l = s.firstChild, u = l.nextSibling, d = u.nextSibling, f = s.nextSibling;
|
|
1947
|
+
return i._$owner = N(), P(a, () => e("label")), P(o, () => t.edgeButton("start"), s), s.addEventListener("scroll", () => t.measureTools()), R(() => (e) => t.watchTools(e), s), P(s, () => t.menu("theme", t.bases, t.baseTheme, (e) => t.choose({ base: e }), {
|
|
1960
1948
|
labelOf: y.titleOf,
|
|
1961
|
-
tipOf: /* @__PURE__ */
|
|
1962
|
-
}), l), P(
|
|
1949
|
+
tipOf: /* @__PURE__ */ c((t) => e("themeTip", { theme: y.titleOf(t) }), "tipOf")
|
|
1950
|
+
}), l), P(s, () => t.schemesGroup(), u), P(s, j(k, {
|
|
1963
1951
|
get when() {
|
|
1964
|
-
return
|
|
1952
|
+
return t.hasPages;
|
|
1965
1953
|
},
|
|
1966
1954
|
get children() {
|
|
1967
|
-
return [I(() =>
|
|
1968
|
-
var
|
|
1969
|
-
return
|
|
1970
|
-
e:
|
|
1955
|
+
return [I(() => t.pageToggles()), (() => {
|
|
1956
|
+
var n = Me();
|
|
1957
|
+
return n._$$click = () => t.device = t.device === "phone" ? "desk" : "phone", n._$owner = N(), M(() => ({
|
|
1958
|
+
e: t.device === "phone" ? "true" : "false",
|
|
1971
1959
|
t: e("phone"),
|
|
1972
1960
|
a: e("phoneTip")
|
|
1973
|
-
}), ({ e, t
|
|
1974
|
-
e !== i?.e && z(
|
|
1975
|
-
}),
|
|
1961
|
+
}), ({ e, t, a: r }, i) => {
|
|
1962
|
+
e !== i?.e && z(n, "aria-pressed", e), t !== i?.t && z(n, "aria-label", t), r !== i?.a && z(n, "title", r);
|
|
1963
|
+
}), n;
|
|
1976
1964
|
})()];
|
|
1977
1965
|
}
|
|
1978
|
-
}), d), P(
|
|
1979
|
-
e:
|
|
1966
|
+
}), d), P(o, () => t.edgeButton("end"), f), M(() => ({
|
|
1967
|
+
e: t.partForName("bar"),
|
|
1980
1968
|
t: e("lede"),
|
|
1981
|
-
a: !!
|
|
1982
|
-
o: !!
|
|
1983
|
-
}), ({ e, t, a:
|
|
1984
|
-
e !==
|
|
1985
|
-
}),
|
|
1969
|
+
a: !!t.barMore.start,
|
|
1970
|
+
o: !!t.barMore.end
|
|
1971
|
+
}), ({ e, t, a: i, o: a }, s) => {
|
|
1972
|
+
e !== s?.e && z(n, "part", e), t !== s?.t && z(r, "title", t), i !== s?.a && o.classList.toggle("more-start", i), a !== s?.o && o.classList.toggle("more-end", a);
|
|
1973
|
+
}), n;
|
|
1986
1974
|
}
|
|
1987
1975
|
schemesGroup() {
|
|
1988
|
-
let e = this.text,
|
|
1976
|
+
let e = this.text, t = /* @__PURE__ */ c((e) => {
|
|
1989
1977
|
let { value: t } = e.detail;
|
|
1990
1978
|
if (t !== Dr) return this.showSchemes(t);
|
|
1991
1979
|
e.preventDefault(), this.swap();
|
|
1992
|
-
}, "onChoosing"),
|
|
1993
|
-
var
|
|
1994
|
-
return z(
|
|
1980
|
+
}, "onChoosing"), n = this;
|
|
1981
|
+
var r = Fe(), i = r.firstChild, a = i.nextSibling;
|
|
1982
|
+
return z(r, "on-ui-choosing", t), r._$owner = N(), P(r, j(O, {
|
|
1995
1983
|
each: kr,
|
|
1996
1984
|
children: (t) => (() => {
|
|
1997
|
-
var
|
|
1998
|
-
return z(
|
|
1999
|
-
e:
|
|
1985
|
+
var r = H();
|
|
1986
|
+
return z(r, "value", t), r._$owner = N(), P(r, () => e(t)), M(() => ({
|
|
1987
|
+
e: n.schemes === t ? "" : void 0,
|
|
2000
1988
|
t: e(`${t}Tip`)
|
|
2001
|
-
}), ({ e, t },
|
|
2002
|
-
e !==
|
|
2003
|
-
}),
|
|
1989
|
+
}), ({ e, t }, n) => {
|
|
1990
|
+
e !== n?.e && z(r, "selected", e), t !== n?.t && z(r, "title", t);
|
|
1991
|
+
}), r;
|
|
2004
1992
|
})()
|
|
2005
|
-
}),
|
|
1993
|
+
}), i), P(r, j(k, {
|
|
2006
1994
|
get when() {
|
|
2007
|
-
return I(() => !!
|
|
1995
|
+
return I(() => !!n.hasPages)() ? n.schemes === "both" : n.hasPages;
|
|
2008
1996
|
},
|
|
2009
1997
|
get children() {
|
|
2010
1998
|
var t = Pe();
|
|
2011
1999
|
return z(t, "value", Dr), t._$owner = N(), M(() => ({
|
|
2012
|
-
e: !!
|
|
2000
|
+
e: !!n.isSwapped,
|
|
2013
2001
|
t: e("swap"),
|
|
2014
|
-
a:
|
|
2015
|
-
o: e(
|
|
2002
|
+
a: n.isSwapped ? "true" : "false",
|
|
2003
|
+
o: e(n.isSwapped ? "swappedTip" : "swapTip")
|
|
2016
2004
|
}), ({ e, t: n, a: r, o: i }, a) => {
|
|
2017
2005
|
e !== a?.e && t.classList.toggle("on", e), n !== a?.t && z(t, "aria-label", n), r !== a?.a && z(t, "aria-pressed", r), i !== a?.o && z(t, "title", i);
|
|
2018
2006
|
}), t;
|
|
2019
2007
|
}
|
|
2020
|
-
}),
|
|
2021
|
-
z(
|
|
2022
|
-
}),
|
|
2008
|
+
}), a), M(() => e("schemes"), (e) => {
|
|
2009
|
+
z(r, "aria-label", e);
|
|
2010
|
+
}), r;
|
|
2023
2011
|
}
|
|
2024
2012
|
pageToggles() {
|
|
2025
|
-
let e = this.text,
|
|
2026
|
-
var
|
|
2027
|
-
return z(
|
|
2013
|
+
let e = this.text, t = this;
|
|
2014
|
+
var n = Ie();
|
|
2015
|
+
return z(n, "on-ui-changed", (e) => t.showPages(t.orderedPageIds, e.detail.values ?? [])), n._$owner = N(), P(n, j(O, {
|
|
2028
2016
|
get each() {
|
|
2029
|
-
return
|
|
2017
|
+
return t.orderedPageIds;
|
|
2030
2018
|
},
|
|
2031
|
-
children: (
|
|
2032
|
-
let
|
|
2033
|
-
var
|
|
2034
|
-
return z(
|
|
2035
|
-
e:
|
|
2036
|
-
t:
|
|
2037
|
-
a: e(
|
|
2019
|
+
children: (n) => {
|
|
2020
|
+
let r = /* @__PURE__ */ c(() => t.pageOf(n)?.label ?? n, "label"), i = /* @__PURE__ */ c(() => t.isPageShown(n), "isShown");
|
|
2021
|
+
var a = H();
|
|
2022
|
+
return z(a, "value", n), a._$owner = N(), P(a, r), M(() => ({
|
|
2023
|
+
e: t.pageOf(n)?.icon ?? "file",
|
|
2024
|
+
t: i() ? "" : void 0,
|
|
2025
|
+
a: e(i() ? "hidePageTip" : "showPageTip", { page: r() })
|
|
2038
2026
|
}), ({ e, t, a: n }, r) => {
|
|
2039
|
-
e !== r?.e && z(
|
|
2040
|
-
}),
|
|
2027
|
+
e !== r?.e && z(a, "icon", e), t !== r?.t && z(a, "selected", t), n !== r?.a && z(a, "title", n);
|
|
2028
|
+
}), a;
|
|
2041
2029
|
}
|
|
2042
2030
|
})), M(() => e("pages"), (e) => {
|
|
2043
|
-
z(
|
|
2044
|
-
}),
|
|
2031
|
+
z(n, "aria-label", e);
|
|
2032
|
+
}), n;
|
|
2045
2033
|
}
|
|
2046
2034
|
edgeButton(e) {
|
|
2047
|
-
let
|
|
2048
|
-
var
|
|
2049
|
-
return
|
|
2035
|
+
let t = /* @__PURE__ */ c(() => this.text(e === "start" ? "scrollBack" : "scrollOn"), "label"), n = this;
|
|
2036
|
+
var r = Le(), i = r.firstChild;
|
|
2037
|
+
return r._$$click = () => n.toolsBox?.scrollBy({
|
|
2050
2038
|
left: (e === "start" ? -1 : 1) * ri,
|
|
2051
2039
|
behavior: "smooth"
|
|
2052
|
-
}), z(
|
|
2040
|
+
}), z(i, "name", e === "start" ? "chevron left" : "chevron right"), i._$owner = N(), M(() => ({
|
|
2053
2041
|
e: L(["edge", e]),
|
|
2054
|
-
t: !
|
|
2055
|
-
a:
|
|
2056
|
-
o:
|
|
2057
|
-
}), ({ e, t, a: n, o:
|
|
2058
|
-
A(
|
|
2059
|
-
}),
|
|
2042
|
+
t: !n.barMore[e],
|
|
2043
|
+
a: t(),
|
|
2044
|
+
o: t()
|
|
2045
|
+
}), ({ e, t, a: n, o: i }, a) => {
|
|
2046
|
+
A(r, e, a?.e), t !== a?.t && z(r, "hidden", t), n !== a?.a && z(r, "aria-label", n), i !== a?.o && z(r, "title", i);
|
|
2047
|
+
}), r;
|
|
2060
2048
|
}
|
|
2061
2049
|
watchTools(e) {
|
|
2062
2050
|
this.toolsBox = e, F || this.resizer.observe(e);
|
|
@@ -2070,77 +2058,77 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2070
2058
|
end: n
|
|
2071
2059
|
});
|
|
2072
2060
|
}
|
|
2073
|
-
menu(e, n, r,
|
|
2074
|
-
let
|
|
2075
|
-
var
|
|
2076
|
-
return z(
|
|
2077
|
-
each:
|
|
2061
|
+
menu(e, t, n, r, { labelOf: i = /* @__PURE__ */ c((e) => this.text(e), "labelOf"), tipOf: a }) {
|
|
2062
|
+
let o = this;
|
|
2063
|
+
var s = Re();
|
|
2064
|
+
return z(s, "on-ui-choosing", (e) => r(e.detail.value)), s._$owner = N(), P(s, j(O, {
|
|
2065
|
+
each: t,
|
|
2078
2066
|
children: (e) => (() => {
|
|
2079
2067
|
var t = H();
|
|
2080
|
-
return z(t, "value", e), z(t, "selected",
|
|
2068
|
+
return z(t, "value", e), z(t, "selected", n === e ? "" : void 0), t._$owner = N(), P(t, () => i(e)), M(() => a(e), (e) => {
|
|
2081
2069
|
z(t, "title", e);
|
|
2082
2070
|
}), t;
|
|
2083
2071
|
})()
|
|
2084
|
-
})), M(() =>
|
|
2085
|
-
z(
|
|
2086
|
-
}),
|
|
2072
|
+
})), M(() => o.text(e), (e) => {
|
|
2073
|
+
z(s, "aria-label", e);
|
|
2074
|
+
}), s;
|
|
2087
2075
|
}
|
|
2088
2076
|
get bases() {
|
|
2089
2077
|
if (!this.isReady) return [this.baseTheme];
|
|
2090
|
-
let e = [...
|
|
2078
|
+
let e = [...u.themes.own];
|
|
2091
2079
|
return e.includes(this.baseTheme) ? e : [...e, this.baseTheme];
|
|
2092
2080
|
}
|
|
2093
2081
|
page(e) {
|
|
2094
|
-
let
|
|
2095
|
-
let e =
|
|
2082
|
+
let t = this.text, n = /* @__PURE__ */ c(() => this.pageOf(e), "page"), r = /* @__PURE__ */ c(() => this.schemes === "both" ? this.isDarkFirst(e) ? "dark" : "light" : this.shownSchemes[0], "firstScheme"), i = /* @__PURE__ */ c(() => this.urlOf(frameKey(e, r())), "url"), a = /* @__PURE__ */ c(() => {
|
|
2083
|
+
let e = i();
|
|
2096
2084
|
return e ? he.addressWith(e, {
|
|
2097
2085
|
theme: this.baseTheme,
|
|
2098
|
-
scheme:
|
|
2086
|
+
scheme: r()
|
|
2099
2087
|
}) : "";
|
|
2100
|
-
}, "popout"),
|
|
2101
|
-
var
|
|
2102
|
-
return
|
|
2103
|
-
var e = I(() => !!
|
|
2104
|
-
return () => e() ? new URL(
|
|
2105
|
-
})()), p._$$click = () =>
|
|
2088
|
+
}, "popout"), o = this;
|
|
2089
|
+
var s = Be(), l = s.firstChild, u = l.firstChild, d = u.nextSibling, f = d.nextSibling, p = f.nextSibling, m = l.nextSibling;
|
|
2090
|
+
return s.addEventListener("drop", (t) => o.onPageDrop(t, e)), s.addEventListener("dragover", (t) => o.onPageDragOver(t, e)), l._$$keydown = (t) => o.onPageHeadKey(t, e), l.addEventListener("dragend", () => o.endDrag()), l.addEventListener("dragstart", (t) => o.onPageDragStart(t, e)), u._$owner = N(), P(d, () => n()?.label), P(f, (() => {
|
|
2091
|
+
var e = I(() => !!i());
|
|
2092
|
+
return () => e() ? new URL(i(), F ? "http://localhost" : location.href).pathname : "";
|
|
2093
|
+
})()), p._$$click = () => o.reload(e), p._$owner = N(), P(l, j(k, {
|
|
2106
2094
|
get when() {
|
|
2107
|
-
return
|
|
2095
|
+
return i();
|
|
2108
2096
|
},
|
|
2109
2097
|
get children() {
|
|
2110
|
-
var e = ze(),
|
|
2111
|
-
return
|
|
2112
|
-
e:
|
|
2113
|
-
t:
|
|
2114
|
-
a:
|
|
2098
|
+
var e = ze(), n = e.firstChild, r = N();
|
|
2099
|
+
return n._$owner = N(), M(() => ({
|
|
2100
|
+
e: a(),
|
|
2101
|
+
t: t("openTip"),
|
|
2102
|
+
a: t("open")
|
|
2115
2103
|
}), ({ e: t, t: n, a: i }, a) => {
|
|
2116
2104
|
t !== a?.e && z(e, "href", t), n !== a?.t && z(e, "title", n), i !== a?.a && z(e, "aria-label", i), _e(e, r);
|
|
2117
2105
|
}), e;
|
|
2118
2106
|
}
|
|
2119
2107
|
}), null), P(m, j(O, {
|
|
2120
2108
|
get each() {
|
|
2121
|
-
return
|
|
2109
|
+
return o.slots;
|
|
2122
2110
|
},
|
|
2123
|
-
children: (t) =>
|
|
2111
|
+
children: (t) => o.frame(frameKey(e, t))
|
|
2124
2112
|
})), M(() => ({
|
|
2125
|
-
e: !!
|
|
2126
|
-
t:
|
|
2127
|
-
a:
|
|
2128
|
-
o:
|
|
2129
|
-
i: !
|
|
2130
|
-
n: `order: ${
|
|
2131
|
-
s:
|
|
2132
|
-
h:
|
|
2133
|
-
r:
|
|
2134
|
-
d:
|
|
2135
|
-
l:
|
|
2113
|
+
e: !!o.isPageWide(e),
|
|
2114
|
+
t: o.dropAt?.id === e && o.dropAt.side === "before",
|
|
2115
|
+
a: o.dropAt?.id === e && o.dropAt.side === "after",
|
|
2116
|
+
o: o.partForName("page"),
|
|
2117
|
+
i: !o.isPageShown(e),
|
|
2118
|
+
n: `order: ${o.shownPageIds.indexOf(e)}`,
|
|
2119
|
+
s: t("moveTip"),
|
|
2120
|
+
h: n()?.icon ?? "file",
|
|
2121
|
+
r: i() ?? "",
|
|
2122
|
+
d: t("reload"),
|
|
2123
|
+
l: t("reloadTip"),
|
|
2136
2124
|
u: L([
|
|
2137
2125
|
"frames",
|
|
2138
|
-
|
|
2139
|
-
{ "dark-first":
|
|
2126
|
+
o.schemes,
|
|
2127
|
+
{ "dark-first": o.schemes === "both" && o.isDarkFirst(e) }
|
|
2140
2128
|
])
|
|
2141
|
-
}), ({ e, t, a: n, o: r, i, n: a, s: o, h:
|
|
2142
|
-
e !== _?.e &&
|
|
2143
|
-
}),
|
|
2129
|
+
}), ({ e, t, a: n, o: r, i, n: a, s: o, h: c, r: d, d: h, l: g, u: ee }, _) => {
|
|
2130
|
+
e !== _?.e && s.classList.toggle("wide", e), t !== _?.t && s.classList.toggle("drop-before", t), n !== _?.a && s.classList.toggle("drop-after", n), r !== _?.o && z(s, "part", r), i !== _?.i && z(s, "hidden", i), ye(s, a, _?.n), o !== _?.s && z(l, "title", o), c !== _?.h && z(u, "name", c), d !== _?.r && z(f, "title", d), h !== _?.d && z(p, "label", h), g !== _?.l && z(p, "title", g), A(m, ee, _?.u);
|
|
2131
|
+
}), s;
|
|
2144
2132
|
}
|
|
2145
2133
|
onPageDragStart(e, t) {
|
|
2146
2134
|
this.draggedPage = t, e.dataTransfer?.setData("text/plain", t), e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
|
|
@@ -2166,42 +2154,42 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2166
2154
|
!e.altKey || e.key !== "ArrowLeft" && e.key !== "ArrowRight" || (e.preventDefault(), this.movePageBy(t, e.key === "ArrowLeft" ? -1 : 1));
|
|
2167
2155
|
}
|
|
2168
2156
|
frame(e) {
|
|
2169
|
-
let
|
|
2157
|
+
let t = this.text, [n, r] = splitKey(e), i = /* @__PURE__ */ c(() => this.isTurnOf(e) ? this.urlOf(e) : void 0, "url"), a = /* @__PURE__ */ c(() => this.pageOf(n)?.label ?? n, "label"), o = /* @__PURE__ */ c(() => this.urlOf(e) === "" ? this.pageOf(n)?.note ?? t("unreachable") : t("loadingPage"), "note"), s = this;
|
|
2170
2158
|
var l = Ue(), u = l.firstChild;
|
|
2171
|
-
return R(() => (t) =>
|
|
2159
|
+
return R(() => (t) => s.watchCell(e, t), u), P(u, j(k, {
|
|
2172
2160
|
get when() {
|
|
2173
|
-
return
|
|
2161
|
+
return i();
|
|
2174
2162
|
},
|
|
2175
2163
|
get fallback() {
|
|
2176
2164
|
var e = U();
|
|
2177
|
-
return P(e,
|
|
2165
|
+
return P(e, o), e;
|
|
2178
2166
|
},
|
|
2179
2167
|
get children() {
|
|
2180
2168
|
return [(() => {
|
|
2181
|
-
var
|
|
2182
|
-
return
|
|
2183
|
-
|
|
2184
|
-
},
|
|
2185
|
-
e:
|
|
2186
|
-
t: `${
|
|
2187
|
-
a: L(
|
|
2188
|
-
}), ({ e, t
|
|
2189
|
-
e !== i?.e && z(
|
|
2190
|
-
}),
|
|
2169
|
+
var n = Ve();
|
|
2170
|
+
return n.addEventListener("load", () => s.onPageLoaded(e)), R(() => (t) => {
|
|
2171
|
+
s.frames.set(e, t), s.begun.add(e);
|
|
2172
|
+
}, n), M(() => ({
|
|
2173
|
+
e: i(),
|
|
2174
|
+
t: `${a()}, ${t(r)}`,
|
|
2175
|
+
a: L(s.frameStyle(e))
|
|
2176
|
+
}), ({ e, t, a: r }, i) => {
|
|
2177
|
+
e !== i?.e && z(n, "src", e), t !== i?.t && z(n, "title", t), ye(n, r, i?.a);
|
|
2178
|
+
}), n;
|
|
2191
2179
|
})(), j(k, {
|
|
2192
2180
|
get when() {
|
|
2193
|
-
return !
|
|
2181
|
+
return !s.loaded[e];
|
|
2194
2182
|
},
|
|
2195
2183
|
get children() {
|
|
2196
2184
|
var e = He();
|
|
2197
|
-
return P(e, () =>
|
|
2185
|
+
return P(e, () => t("loadingPage")), e;
|
|
2198
2186
|
}
|
|
2199
2187
|
})];
|
|
2200
2188
|
}
|
|
2201
2189
|
})), M(() => ({
|
|
2202
|
-
e: L(["frame",
|
|
2203
|
-
t: !!
|
|
2204
|
-
a:
|
|
2190
|
+
e: L(["frame", r]),
|
|
2191
|
+
t: !!s.loaded[e],
|
|
2192
|
+
a: s.device === "phone"
|
|
2205
2193
|
}), ({ e, t, a: n }, r) => {
|
|
2206
2194
|
A(l, e, r?.e), t !== r?.t && u.classList.toggle("loaded", t), n !== r?.a && u.classList.toggle("phone", n);
|
|
2207
2195
|
}), l;
|
|
@@ -2215,17 +2203,17 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2215
2203
|
}
|
|
2216
2204
|
sampleApp(e) {
|
|
2217
2205
|
let t = this.text, n = this;
|
|
2218
|
-
var r = Ge(), i = r.firstChild, a = i.firstChild, o = a.firstChild, s = o.nextSibling, c = a.nextSibling.firstChild, l = i.nextSibling, u = l.firstChild, d = u.firstChild, f = d.nextSibling, p = f.firstChild, m = p.nextSibling, h = m.nextSibling, g = f.nextSibling.firstChild, ee = g.nextSibling, _ = l.nextSibling, v = _.firstChild, y = v.nextSibling, te = y.nextSibling,
|
|
2219
|
-
|
|
2220
|
-
var
|
|
2221
|
-
return P(o, () => t(e)), P(s, () => t("appTitle")), c._$owner = N(), l._$owner = N(), u._$owner = N(), d._$owner = N(), P(d, () => t("today")), p._$owner = N(), P(p, () => t("habitWater")), m._$owner = N(), P(m, () => t("habitRead")), h._$owner = N(), P(h, () => t("habitMove")), g._$owner = N(), ee._$owner = N(), P(ee, () => t("add")), v._$owner = N(), P(v, () => t("secondary")), y._$owner = N(), P(y, () => t("basicButton")), te._$owner = N(), P(te, () => t("live")),
|
|
2206
|
+
var r = Ge(), i = r.firstChild, a = i.firstChild, o = a.firstChild, s = o.nextSibling, c = a.nextSibling.firstChild, l = i.nextSibling, u = l.firstChild, d = u.firstChild, f = d.nextSibling, p = f.firstChild, m = p.nextSibling, h = m.nextSibling, g = f.nextSibling.firstChild, ee = g.nextSibling, _ = l.nextSibling, v = _.firstChild, y = v.nextSibling, te = y.nextSibling, ne = te.nextSibling, b = _.nextSibling, re = b.firstChild, ie = re.nextSibling;
|
|
2207
|
+
ie.nextSibling;
|
|
2208
|
+
var ae = b.nextSibling;
|
|
2209
|
+
return P(o, () => t(e)), P(s, () => t("appTitle")), c._$owner = N(), l._$owner = N(), u._$owner = N(), d._$owner = N(), P(d, () => t("today")), p._$owner = N(), P(p, () => t("habitWater")), m._$owner = N(), P(m, () => t("habitRead")), h._$owner = N(), P(h, () => t("habitMove")), g._$owner = N(), ee._$owner = N(), P(ee, () => t("add")), v._$owner = N(), P(v, () => t("secondary")), y._$owner = N(), P(y, () => t("basicButton")), te._$owner = N(), P(te, () => t("live")), ne._$owner = N(), P(ne, () => t("remind")), b._$owner = N(), re._$owner = N(), P(ie, () => t("streak")), P(b, () => t("streakMore"), null), ae._$owner = N(), M(() => ({
|
|
2222
2210
|
e: ["sample", `ui-${e}`],
|
|
2223
2211
|
t: !n.shownSchemes.includes(e),
|
|
2224
2212
|
a: t("newHabit"),
|
|
2225
2213
|
o: t("newHabit"),
|
|
2226
2214
|
i: t("progress")
|
|
2227
2215
|
}), ({ e, t, a: n, o: i, i: a }, o) => {
|
|
2228
|
-
A(r, e, o?.e), t !== o?.t && z(r, "hidden", t), n !== o?.a && z(g, "placeholder", n), i !== o?.o && z(g, "aria-label", i), a !== o?.i && z(
|
|
2216
|
+
A(r, e, o?.e), t !== o?.t && z(r, "hidden", t), n !== o?.a && z(g, "placeholder", n), i !== o?.o && z(g, "aria-label", i), a !== o?.i && z(ae, "aria-label", a);
|
|
2229
2217
|
}), r;
|
|
2230
2218
|
}
|
|
2231
2219
|
side() {
|
|
@@ -2325,8 +2313,8 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2325
2313
|
}
|
|
2326
2314
|
basics() {
|
|
2327
2315
|
let e = this.text, t = this;
|
|
2328
|
-
var n = Qe(), r = n.firstChild,
|
|
2329
|
-
return R(() => (e) => t.watchHead("basics", e), r), P(
|
|
2316
|
+
var n = Qe(), r = n.firstChild, o = r.firstChild.firstChild, s = r.nextSibling, c = s.nextSibling, l = c.nextSibling, u = l.nextSibling;
|
|
2317
|
+
return R(() => (e) => t.watchHead("basics", e), r), P(o, () => e("basics")), P(n, () => t.basicsGroup("theme", e("theme"), [(() => {
|
|
2330
2318
|
var n = $e(), r = n.firstChild;
|
|
2331
2319
|
return n._$owner = N(), z(r, "on-ui-typed", (e) => t.choose({ name: e.detail.value })), r._$owner = N(), M(() => ({
|
|
2332
2320
|
e: e("name"),
|
|
@@ -2378,47 +2366,47 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2378
2366
|
}), ({ e, t, a: i, o: a }, o) => {
|
|
2379
2367
|
e !== o?.e && z(n, "label", e), t !== o?.t && z(n, "description", t), i !== o?.a && z(r, "value", i), a !== o?.o && z(r, "aria-label", a);
|
|
2380
2368
|
}), n;
|
|
2381
|
-
})()]),
|
|
2369
|
+
})()]), s), P(n, () => t.basicsGroup("color", e("color"), [
|
|
2382
2370
|
I(() => t.hueProperty("primary")),
|
|
2383
2371
|
I(() => t.hueProperty("secondary")),
|
|
2384
2372
|
I(() => t.hueProperty("background"))
|
|
2385
|
-
]),
|
|
2373
|
+
]), c), P(n, () => t.basicsGroup("type", e("type"), [
|
|
2386
2374
|
I(() => t.fontProperty("headingFont")),
|
|
2387
2375
|
I(() => t.fontProperty("bodyFont")),
|
|
2388
2376
|
I(() => t.sizeProperty())
|
|
2389
|
-
]),
|
|
2390
|
-
I(() => t.segmentedProperty("corners",
|
|
2391
|
-
I(() => t.segmentedProperty("depth",
|
|
2377
|
+
]), l), P(n, () => t.basicsGroup("shape", e("shape"), [
|
|
2378
|
+
I(() => t.segmentedProperty("corners", a)),
|
|
2379
|
+
I(() => t.segmentedProperty("depth", i)),
|
|
2392
2380
|
j(k, {
|
|
2393
2381
|
get when() {
|
|
2394
2382
|
return t.hasGlass;
|
|
2395
2383
|
},
|
|
2396
2384
|
get children() {
|
|
2397
|
-
return t.segmentedProperty("glass",
|
|
2385
|
+
return t.segmentedProperty("glass", te);
|
|
2398
2386
|
}
|
|
2399
2387
|
})
|
|
2400
|
-
]),
|
|
2388
|
+
]), u), M(() => ({
|
|
2401
2389
|
e: t.partForName("basics"),
|
|
2402
2390
|
t: e("basics"),
|
|
2403
2391
|
a: e("basicsTip")
|
|
2404
2392
|
}), ({ e, t, a: r }, i) => {
|
|
2405
|
-
e !== i?.e && z(n, "part", e), t !== i?.t && z(n, "aria-label", t), r !== i?.a && z(
|
|
2393
|
+
e !== i?.e && z(n, "part", e), t !== i?.t && z(n, "aria-label", t), r !== i?.a && z(o, "title", r);
|
|
2406
2394
|
}), n;
|
|
2407
2395
|
}
|
|
2408
|
-
basicsGroup(e,
|
|
2409
|
-
let
|
|
2410
|
-
e.detail.section === this.branchSections.get(
|
|
2396
|
+
basicsGroup(e, t, n) {
|
|
2397
|
+
let r = `${Qr}${e}`, i = /* @__PURE__ */ c((e) => {
|
|
2398
|
+
e.detail.section === this.branchSections.get(r) && this.folds[r] !== e.detail.open && (this.folds = {
|
|
2411
2399
|
...this.folds,
|
|
2412
|
-
[
|
|
2400
|
+
[r]: e.detail.open
|
|
2413
2401
|
}, w.setAt(wr, this.folds));
|
|
2414
|
-
}, "onFolded"),
|
|
2415
|
-
var
|
|
2416
|
-
return z(
|
|
2417
|
-
e:
|
|
2418
|
-
t:
|
|
2402
|
+
}, "onFolded"), a = this;
|
|
2403
|
+
var o = nt(), s = o.firstChild;
|
|
2404
|
+
return z(o, "label", t), z(o, "on-ui-opened", i), z(o, "on-ui-closed", i), R(() => (e) => a.branchSections.set(r, e), o), o._$owner = N(), s._$owner = N(), P(s, n), M(() => ({
|
|
2405
|
+
e: a.headBottom.basics,
|
|
2406
|
+
t: a.folds[r] ?? !0 ? "" : "false"
|
|
2419
2407
|
}), ({ e, t }, n) => {
|
|
2420
|
-
e !== n?.e && z(
|
|
2421
|
-
}),
|
|
2408
|
+
e !== n?.e && z(o, "offset", e), t !== n?.t && z(o, "open", t);
|
|
2409
|
+
}), o;
|
|
2422
2410
|
}
|
|
2423
2411
|
get hasGlass() {
|
|
2424
2412
|
return ge.includes(this.baseTheme);
|
|
@@ -2439,7 +2427,7 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2439
2427
|
});
|
|
2440
2428
|
}
|
|
2441
2429
|
ownFont(e) {
|
|
2442
|
-
let t = this.ownValue(e, this.scheme), n =
|
|
2430
|
+
let t = this.ownValue(e, this.scheme), n = l.find((e) => E.fontStack(e).replace(Rr, (e, t) => this.ownValue(t, "light") || e).replace(/\s+/g, "") === t.replace(/\s+/g, "")), r = t.split(",")[0]?.trim().replace(/["']/g, "") ?? "";
|
|
2443
2431
|
return {
|
|
2444
2432
|
stack: t,
|
|
2445
2433
|
name: n ? this.text(n) : $r.test(r) ? this.text("system") : r
|
|
@@ -2449,30 +2437,30 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2449
2437
|
return e ? `${this.text("own")} \xB7 ${e}` : this.text("own");
|
|
2450
2438
|
}
|
|
2451
2439
|
ownShape(e) {
|
|
2452
|
-
let
|
|
2453
|
-
if (!
|
|
2454
|
-
let
|
|
2440
|
+
let t = this.files;
|
|
2441
|
+
if (!t) return;
|
|
2442
|
+
let n = /* @__PURE__ */ c((e) => t.valueIn(this.baseTheme, e), "raw");
|
|
2455
2443
|
return e === "corners" ? E.cornersOf({
|
|
2456
|
-
s:
|
|
2457
|
-
m:
|
|
2458
|
-
l:
|
|
2459
|
-
}) : e === "depth" ? E.depthOf(
|
|
2444
|
+
s: n("--ui-radius-s"),
|
|
2445
|
+
m: n("--ui-radius-m"),
|
|
2446
|
+
l: n("--ui-radius-l")
|
|
2447
|
+
}) : e === "depth" ? E.depthOf(n("--ui-shadow-raised"), n("--ui-shadow-floating")) : E.glassOf(n("--glass-surface"), n("--glass-surface-strong"), n("--glass-blur"));
|
|
2460
2448
|
}
|
|
2461
2449
|
ownShapeText(e) {
|
|
2462
2450
|
return e === "corners" ? this.ownValue("--ui-radius", this.scheme) : "";
|
|
2463
2451
|
}
|
|
2464
2452
|
hueProperty(e) {
|
|
2465
|
-
let n = this.text, r = /* @__PURE__ */
|
|
2453
|
+
let n = this.text, r = /* @__PURE__ */ c(() => this.theme[e], "chosen"), i = /* @__PURE__ */ c(() => this.ownColors(Xr[e]), "own"), a = /* @__PURE__ */ c(() => i().map((e) => e.hex).join(" / "), "ownText"), o = this;
|
|
2466
2454
|
var s = rt();
|
|
2467
2455
|
return z(s, "name", e), s._$owner = N(), P(s, () => le.draw({
|
|
2468
2456
|
size: si,
|
|
2469
2457
|
value: r,
|
|
2470
|
-
hues: /* @__PURE__ */
|
|
2471
|
-
nameFor: /* @__PURE__ */
|
|
2472
|
-
noneLabel: /* @__PURE__ */
|
|
2473
|
-
noneColors: /* @__PURE__ */
|
|
2474
|
-
label: /* @__PURE__ */
|
|
2475
|
-
onPick: /* @__PURE__ */
|
|
2458
|
+
hues: /* @__PURE__ */ c(() => t, "hues"),
|
|
2459
|
+
nameFor: /* @__PURE__ */ c((e) => n(e), "nameFor"),
|
|
2460
|
+
noneLabel: /* @__PURE__ */ c(() => o.ownLabel(a()), "noneLabel"),
|
|
2461
|
+
noneColors: /* @__PURE__ */ c(() => i().map((e) => e.hex), "noneColors"),
|
|
2462
|
+
label: /* @__PURE__ */ c(() => n(e), "label"),
|
|
2463
|
+
onPick: /* @__PURE__ */ c((t) => o.choose({ [e]: t }), "onPick")
|
|
2476
2464
|
})), M(() => ({
|
|
2477
2465
|
e: n(e),
|
|
2478
2466
|
t: n(`${e}Tip`),
|
|
@@ -2482,65 +2470,65 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2482
2470
|
}), s;
|
|
2483
2471
|
}
|
|
2484
2472
|
fontProperty(e) {
|
|
2485
|
-
let
|
|
2486
|
-
var
|
|
2487
|
-
return z(
|
|
2473
|
+
let t = this.text, n = /* @__PURE__ */ c(() => this.theme[e], "chosen"), r = /* @__PURE__ */ c(() => this.ownFont(Zr[e]), "own"), i = this;
|
|
2474
|
+
var a = it(), o = a.firstChild, s = o.firstChild;
|
|
2475
|
+
return z(a, "name", e), z(a, "default", J), a._$owner = N(), z(o, "on-ui-changed", (t) => {
|
|
2488
2476
|
let n = String(t.detail.value);
|
|
2489
|
-
|
|
2490
|
-
}),
|
|
2477
|
+
i.choose({ [e]: n === J ? void 0 : n });
|
|
2478
|
+
}), o._$owner = N(), z(s, "value", J), s._$owner = N(), P(s, () => i.ownLabel(r().name)), P(o, j(O, {
|
|
2491
2479
|
get each() {
|
|
2492
|
-
return
|
|
2480
|
+
return l;
|
|
2493
2481
|
},
|
|
2494
2482
|
children: (e) => (() => {
|
|
2495
|
-
var
|
|
2496
|
-
return z(
|
|
2497
|
-
ye(
|
|
2498
|
-
}),
|
|
2483
|
+
var n = H();
|
|
2484
|
+
return z(n, "value", e), n._$owner = N(), P(n, () => t(e)), M(() => `font-family: ${E.fontStack(e)}`, (e, t) => {
|
|
2485
|
+
ye(n, e, t);
|
|
2486
|
+
}), n;
|
|
2499
2487
|
})()
|
|
2500
2488
|
}), null), M(() => ({
|
|
2501
|
-
e:
|
|
2502
|
-
t:
|
|
2503
|
-
a:
|
|
2504
|
-
o:
|
|
2505
|
-
i: L(
|
|
2506
|
-
}), ({ e, t, a: n, o: r, i },
|
|
2507
|
-
e !==
|
|
2508
|
-
}),
|
|
2489
|
+
e: t(e),
|
|
2490
|
+
t: t(`${e}Tip`),
|
|
2491
|
+
a: n() ?? J,
|
|
2492
|
+
o: t(e),
|
|
2493
|
+
i: L(r().stack ? `font-family: ${r().stack}` : void 0)
|
|
2494
|
+
}), ({ e, t, a: n, o: r, i }, c) => {
|
|
2495
|
+
e !== c?.e && z(a, "label", e), t !== c?.t && z(a, "description", t), n !== c?.a && z(o, "value", n), r !== c?.o && z(o, "aria-label", r), ye(s, i, c?.i);
|
|
2496
|
+
}), a;
|
|
2509
2497
|
}
|
|
2510
2498
|
sizeProperty() {
|
|
2511
|
-
let e = this.text,
|
|
2512
|
-
var
|
|
2513
|
-
return
|
|
2499
|
+
let e = this.text, t = /* @__PURE__ */ c(() => this.theme.textSize ?? this.baseTextSize, "size"), n = this;
|
|
2500
|
+
var r = at(), i = r.firstChild;
|
|
2501
|
+
return r._$owner = N(), P(r, j(k, {
|
|
2514
2502
|
get when() {
|
|
2515
|
-
return
|
|
2503
|
+
return n.theme.textSize !== void 0;
|
|
2516
2504
|
},
|
|
2517
2505
|
get children() {
|
|
2518
|
-
return
|
|
2506
|
+
return n.resetButton(() => n.choose({ textSize: void 0 }));
|
|
2519
2507
|
}
|
|
2520
|
-
}),
|
|
2508
|
+
}), i), z(i, "on-ui-moved", (e) => n.choose({ textSize: e.detail.value })), i._$owner = N(), M(() => ({
|
|
2521
2509
|
e: e("textSize"),
|
|
2522
2510
|
t: e("textSizeTip"),
|
|
2523
|
-
a: String(
|
|
2524
|
-
o:
|
|
2511
|
+
a: String(n.baseTextSize),
|
|
2512
|
+
o: n.theme.textSize === void 0 ? n.ownLabel(`${t()}px`) : `${t()}px`,
|
|
2525
2513
|
i: fe.min,
|
|
2526
2514
|
n: fe.max,
|
|
2527
2515
|
s: fe.step,
|
|
2528
|
-
h:
|
|
2516
|
+
h: t(),
|
|
2529
2517
|
r: e("textSize")
|
|
2530
|
-
}), ({ e, t, a: n, o:
|
|
2531
|
-
e !== d?.e && z(
|
|
2532
|
-
}),
|
|
2518
|
+
}), ({ e, t, a: n, o: a, i: o, n: s, s: c, h: l, r: u }, d) => {
|
|
2519
|
+
e !== d?.e && z(r, "label", e), t !== d?.t && z(r, "description", t), n !== d?.a && z(r, "default", n), a !== d?.o && z(r, "output", a), o !== d?.i && z(i, "min", o), s !== d?.n && z(i, "max", s), c !== d?.s && z(i, "step", c), l !== d?.h && z(i, "value", l), u !== d?.r && z(i, "aria-label", u);
|
|
2520
|
+
}), r;
|
|
2533
2521
|
}
|
|
2534
2522
|
get baseTextSize() {
|
|
2535
2523
|
let e = parseFloat(this.files?.valueIn(this.baseTheme, ci) ?? "");
|
|
2536
2524
|
return Number.isFinite(e) ? Math.round(e) : li;
|
|
2537
2525
|
}
|
|
2538
|
-
segmentedProperty(e,
|
|
2539
|
-
let
|
|
2526
|
+
segmentedProperty(e, t) {
|
|
2527
|
+
let n = this.text, r = /* @__PURE__ */ c(() => this.theme[e], "chosen"), i = /* @__PURE__ */ c(() => this.ownShape(e), "own"), a = /* @__PURE__ */ c(() => i() ? [...t] : [J, ...t], "shown"), o = /* @__PURE__ */ c(() => r() ?? i() ?? J, "picked"), s = /* @__PURE__ */ c((t) => t === J ? this.ownLabel(this.ownShapeText(e)) : n(t), "labelOf"), l = this;
|
|
2540
2528
|
var u = ot(), d = u.firstChild;
|
|
2541
2529
|
return z(u, "name", e), u._$owner = N(), P(u, j(k, {
|
|
2542
2530
|
get when() {
|
|
2543
|
-
return
|
|
2531
|
+
return r() !== void 0;
|
|
2544
2532
|
},
|
|
2545
2533
|
get children() {
|
|
2546
2534
|
return l.resetButton(() => l.choose({ [e]: void 0 }));
|
|
@@ -2550,22 +2538,22 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2550
2538
|
l.choose({ [e]: n === J ? void 0 : n });
|
|
2551
2539
|
}), d._$owner = N(), P(d, j(O, {
|
|
2552
2540
|
get each() {
|
|
2553
|
-
return
|
|
2541
|
+
return a();
|
|
2554
2542
|
},
|
|
2555
2543
|
children: (e) => (() => {
|
|
2556
2544
|
var t = H();
|
|
2557
|
-
return z(t, "value", e), t._$owner = N(), P(t, () =>
|
|
2545
|
+
return z(t, "value", e), t._$owner = N(), P(t, () => s(e)), M(() => o() === e ? "" : void 0, (e) => {
|
|
2558
2546
|
z(t, "selected", e);
|
|
2559
2547
|
}), t;
|
|
2560
2548
|
})()
|
|
2561
2549
|
})), M(() => ({
|
|
2562
|
-
e:
|
|
2563
|
-
t:
|
|
2564
|
-
a:
|
|
2565
|
-
o:
|
|
2566
|
-
i:
|
|
2567
|
-
n:
|
|
2568
|
-
s:
|
|
2550
|
+
e: n(e),
|
|
2551
|
+
t: n(`${e}Tip`),
|
|
2552
|
+
a: i() ?? J,
|
|
2553
|
+
o: r() ? n(r()) : i() ? l.ownLabel(n(i())) : void 0,
|
|
2554
|
+
i: o(),
|
|
2555
|
+
n: i() ? "" : void 0,
|
|
2556
|
+
s: n(e)
|
|
2569
2557
|
}), ({ e, t, a: n, o: r, i, n: a, s: o }, s) => {
|
|
2570
2558
|
e !== s?.e && z(u, "label", e), t !== s?.t && z(u, "description", t), n !== s?.a && z(u, "default", n), r !== s?.o && z(u, "output", r), i !== s?.i && z(d, "value", i), a !== s?.n && z(d, "equal", a), o !== s?.s && z(d, "aria-label", o);
|
|
2571
2559
|
}), u;
|
|
@@ -2643,44 +2631,44 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2643
2631
|
e !== i?.e && z(n, "part", e), t !== i?.t && z(n, "aria-label", t), r !== i?.a && z(a, "title", r);
|
|
2644
2632
|
}), n;
|
|
2645
2633
|
}
|
|
2646
|
-
branch(e,
|
|
2647
|
-
let
|
|
2648
|
-
var
|
|
2649
|
-
return z(
|
|
2634
|
+
branch(e, t = !1) {
|
|
2635
|
+
let n = /* @__PURE__ */ c(() => this.tree.nodes.get(e), "node"), r = /* @__PURE__ */ c(() => this.isBranchOpen(e), "isOpen"), i = /* @__PURE__ */ c((t) => this.onBranchFolded(t, e), "onFolded"), a = this;
|
|
2636
|
+
var o = ft(), s = o.firstChild, l = s.nextSibling;
|
|
2637
|
+
return z(o, "level", t ? "3" : "4"), z(o, "on-ui-opened", i), z(o, "on-ui-closed", i), R(() => (t) => a.branchSections.set(e, t), o), o._$owner = N(), P(o, j(k, {
|
|
2650
2638
|
get when() {
|
|
2651
|
-
return
|
|
2639
|
+
return t && !e.startsWith(Ir);
|
|
2652
2640
|
},
|
|
2653
2641
|
get children() {
|
|
2654
2642
|
var t = dt();
|
|
2655
|
-
return z(t, "title", e), P(t, () =>
|
|
2643
|
+
return z(t, "title", e), P(t, () => a.groupCount(e)), t;
|
|
2656
2644
|
}
|
|
2657
|
-
}),
|
|
2645
|
+
}), s), P(o, j(k, {
|
|
2658
2646
|
get when() {
|
|
2659
|
-
return
|
|
2647
|
+
return r();
|
|
2660
2648
|
},
|
|
2661
2649
|
get children() {
|
|
2662
2650
|
return [j(k, {
|
|
2663
2651
|
get when() {
|
|
2664
|
-
return
|
|
2652
|
+
return n()?.token;
|
|
2665
2653
|
},
|
|
2666
2654
|
get children() {
|
|
2667
|
-
return
|
|
2655
|
+
return a.leaf(e);
|
|
2668
2656
|
}
|
|
2669
2657
|
}), j(O, {
|
|
2670
2658
|
get each() {
|
|
2671
|
-
return
|
|
2659
|
+
return n()?.children.map((e) => e.id) ?? [];
|
|
2672
2660
|
},
|
|
2673
|
-
children: (e) =>
|
|
2661
|
+
children: (e) => a.tree.nodes.get(e)?.children.length ? a.branch(e) : a.leaf(e)
|
|
2674
2662
|
})];
|
|
2675
2663
|
}
|
|
2676
2664
|
}), l), M(() => ({
|
|
2677
|
-
e: L(
|
|
2678
|
-
t:
|
|
2679
|
-
a:
|
|
2680
|
-
o:
|
|
2665
|
+
e: L(t ? "group" : "branch"),
|
|
2666
|
+
t: n()?.name ?? "",
|
|
2667
|
+
a: t ? a.headBottom.tokens : void 0,
|
|
2668
|
+
o: r() ? "" : "false"
|
|
2681
2669
|
}), ({ e, t, a: n, o: r }, i) => {
|
|
2682
|
-
A(
|
|
2683
|
-
}),
|
|
2670
|
+
A(o, e, i?.e), t !== i?.t && z(o, "label", t), n !== i?.a && z(o, "offset", n), r !== i?.o && z(o, "open", r);
|
|
2671
|
+
}), o;
|
|
2684
2672
|
}
|
|
2685
2673
|
groupCount(e) {
|
|
2686
2674
|
let t = this.groups.find((t) => t.place === e)?.tokens ?? [], n = t.filter((e) => this.isSetHere(e)).length;
|
|
@@ -2691,13 +2679,13 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2691
2679
|
});
|
|
2692
2680
|
}
|
|
2693
2681
|
leaf(e) {
|
|
2694
|
-
let
|
|
2695
|
-
if (!
|
|
2696
|
-
let
|
|
2697
|
-
var
|
|
2698
|
-
return z(
|
|
2699
|
-
z(
|
|
2700
|
-
}),
|
|
2682
|
+
let t = /* @__PURE__ */ c(() => this.tree.nodes.get(e), "node"), n = t()?.token;
|
|
2683
|
+
if (!n) return;
|
|
2684
|
+
let r = this;
|
|
2685
|
+
var i = pt();
|
|
2686
|
+
return z(i, "on-ui-changed", (e) => r.onRowChanged(e)), z(i, "on-ui-command", (e) => r.onRowCommand(e)), i._$owner = N(), M(() => r.rowOf(n, t()?.name ?? n), (e) => {
|
|
2687
|
+
z(i, "row", e);
|
|
2688
|
+
}), i;
|
|
2701
2689
|
}
|
|
2702
2690
|
headButton(e, t, n) {
|
|
2703
2691
|
let r = this;
|
|
@@ -2713,22 +2701,22 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2713
2701
|
}, w.setAt(ti, this.openRows), e === "search" && (t ? ee(() => this.findInput?.focus()) : (this.filter = "", this.isSetHereOnly = !1)));
|
|
2714
2702
|
}
|
|
2715
2703
|
toggleAllButton() {
|
|
2716
|
-
let e = /* @__PURE__ */
|
|
2717
|
-
var
|
|
2718
|
-
return
|
|
2704
|
+
let e = /* @__PURE__ */ c(() => this.text(this.isAllOpen ? "collapseAll" : "expandAll"), "label"), t = this;
|
|
2705
|
+
var n = ht(), r = n.firstChild.firstChild;
|
|
2706
|
+
return n._$$click = () => t.toggleAll(), M(() => ({
|
|
2719
2707
|
e: e(),
|
|
2720
2708
|
t: e(),
|
|
2721
|
-
a:
|
|
2722
|
-
o:
|
|
2723
|
-
}), ({ e, t, a:
|
|
2724
|
-
e !== o?.e && z(
|
|
2725
|
-
}),
|
|
2709
|
+
a: t.isAllOpen ? "true" : "false",
|
|
2710
|
+
o: t.isAllOpen ? Br : zr
|
|
2711
|
+
}), ({ e, t, a: i, o: a }, o) => {
|
|
2712
|
+
e !== o?.e && z(n, "aria-label", e), t !== o?.t && z(n, "title", t), i !== o?.a && z(n, "aria-pressed", i), a !== o?.o && z(r, "d", a);
|
|
2713
|
+
}), n;
|
|
2726
2714
|
}
|
|
2727
2715
|
showOnly(e) {
|
|
2728
2716
|
this.filter = e, this.isFilterFolded = !1, this.isSetHereOnly = !1, this.openRow("search", !0);
|
|
2729
2717
|
}
|
|
2730
|
-
rowOf(e,
|
|
2731
|
-
let
|
|
2718
|
+
rowOf(e, t) {
|
|
2719
|
+
let n = this.text, r = this.tokenEdits[e] !== void 0, i = this.isSetHere(e), a = !r && this.sourceOf(e).setBy === this.baseTheme && !this.draft.sets(e), o = Jr.exec(this.writtenNow(e, this.scheme))?.[1], s = this.openToken === e, l = /* @__PURE__ */ c((t) => {
|
|
2732
2720
|
let n = this.kindOf(e, t), r = n === "color" ? this.colorOf(e, t) : void 0;
|
|
2733
2721
|
return {
|
|
2734
2722
|
text: this.valueOf(e, t),
|
|
@@ -2739,57 +2727,57 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2739
2727
|
}, "valueIn");
|
|
2740
2728
|
return {
|
|
2741
2729
|
token: e,
|
|
2742
|
-
label:
|
|
2730
|
+
label: t,
|
|
2743
2731
|
nameTip: this.nameTip(e),
|
|
2744
2732
|
schemes: this.shownSchemes,
|
|
2745
2733
|
values: {
|
|
2746
2734
|
light: l("light"),
|
|
2747
2735
|
dark: l("dark")
|
|
2748
2736
|
},
|
|
2749
|
-
isHere:
|
|
2750
|
-
isTuned:
|
|
2737
|
+
isHere: i,
|
|
2738
|
+
isTuned: r,
|
|
2751
2739
|
isSplit: this.isSplit(e),
|
|
2752
|
-
isOpen:
|
|
2753
|
-
markTip:
|
|
2754
|
-
resetLabel:
|
|
2755
|
-
pointer:
|
|
2756
|
-
place:
|
|
2757
|
-
token: this.files?.tokenAt(
|
|
2740
|
+
isOpen: s,
|
|
2741
|
+
markTip: i ? n("setHereMark") : n("fromMark", { base: this.parentTitle }),
|
|
2742
|
+
resetLabel: r ? n("reset") : a && this.parentTheme ? n("backToBase", { base: this.parentTitle }) : void 0,
|
|
2743
|
+
pointer: o ? {
|
|
2744
|
+
place: o,
|
|
2745
|
+
token: this.files?.tokenAt(o)
|
|
2758
2746
|
} : void 0,
|
|
2759
2747
|
readers: this.pageIds.filter((t) => this.readers[t]?.reads.has(e)).map((t) => {
|
|
2760
|
-
let
|
|
2748
|
+
let r = !!this.readers[t]?.overrides.has(e), i = n(r ? "overridesTip" : "readsTip", { place: this.pageOf(t)?.label ?? t });
|
|
2761
2749
|
return {
|
|
2762
2750
|
id: t,
|
|
2763
2751
|
icon: this.pageOf(t)?.icon ?? "file",
|
|
2764
2752
|
tip: i,
|
|
2765
|
-
overrides:
|
|
2753
|
+
overrides: r
|
|
2766
2754
|
};
|
|
2767
2755
|
}),
|
|
2768
|
-
options:
|
|
2756
|
+
options: s ? this.colorPlaces : void 0
|
|
2769
2757
|
};
|
|
2770
2758
|
}
|
|
2771
2759
|
writtenNow(e, t) {
|
|
2772
2760
|
let n = this.tokenEdits[e];
|
|
2773
2761
|
return n ? ("both" in n ? n.both : n[t]) ?? "" : this.draft.sets(e) ? "" : (t === this.scheme ? this.sourceOf(e) : this.files?.sourceOf(this.baseTheme, e, t))?.written ?? "";
|
|
2774
2762
|
}
|
|
2775
|
-
mixOf(e,
|
|
2776
|
-
let
|
|
2777
|
-
if (!
|
|
2778
|
-
let [, i, a
|
|
2763
|
+
mixOf(e, t) {
|
|
2764
|
+
let n = qr.exec(this.writtenNow(e, t));
|
|
2765
|
+
if (!n) return;
|
|
2766
|
+
let [, r, i, a] = n, o = /* @__PURE__ */ c((e) => {
|
|
2779
2767
|
let t = e.trim(), n = Jr.exec(t)?.[1];
|
|
2780
2768
|
if (n) return n;
|
|
2781
2769
|
let r = Yr.exec(t)?.[1];
|
|
2782
2770
|
return r ? this.files?.placeOf(r) ?? t : t;
|
|
2783
|
-
}, "placeOf"),
|
|
2784
|
-
let
|
|
2785
|
-
return
|
|
2786
|
-
}, "colorAt"), [l, u] = [
|
|
2771
|
+
}, "placeOf"), s = /* @__PURE__ */ c((e) => {
|
|
2772
|
+
let n = this.files?.tokenAt(e);
|
|
2773
|
+
return n ? this.valueOf(n, t) : e;
|
|
2774
|
+
}, "colorAt"), [l, u] = [o(r), o(a)];
|
|
2787
2775
|
return {
|
|
2788
2776
|
mixin: l,
|
|
2789
|
-
mixinColor:
|
|
2777
|
+
mixinColor: s(l),
|
|
2790
2778
|
base: u,
|
|
2791
|
-
baseColor:
|
|
2792
|
-
amount:
|
|
2779
|
+
baseColor: s(u),
|
|
2780
|
+
amount: i === void 0 ? ni : Number(i)
|
|
2793
2781
|
};
|
|
2794
2782
|
}
|
|
2795
2783
|
get colorPlaces() {
|
|
@@ -2858,14 +2846,14 @@ ${this.text("usedBy", { tokens: n.join(", ") })}` : ""}`;
|
|
|
2858
2846
|
}), n;
|
|
2859
2847
|
}
|
|
2860
2848
|
};
|
|
2861
|
-
G =
|
|
2849
|
+
G = o(Hn), Un = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), Gn = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), f(G, 4, "edited", zn, q, Un), f(G, 4, "files", Rn, q, Wn), f(G, 4, "filesError", Ln, q, Gn), f(G, 1, "loadFiles", In, q), f(G, 2, "draft", Fn, q), f(G, 2, "isChanged", Pn, q), f(G, 1, "choose", Nn, q), f(G, 1, "startOver", Mn, q), f(G, 1, "tune", jn, q), f(G, 1, "split", An, q), f(G, 1, "reset", kn, q), f(G, 1, "onShown", On, q), f(G, 1, "onDraftChanged", Dn, q), f(G, 1, "onBaseChanged", En, q), f(G, 4, "myThemes", Tn, q, Kn), f(G, 4, "editingId", wn, q, qn), f(G, 1, "save", Cn, q), f(G, 1, "saveAsNew", Sn, q), f(G, 1, "remove", xn, q), f(G, 1, "open", bn, q), f(G, 1, "startFrom", yn, q), f(G, 2, "exportHref", vn, q), f(G, 4, "importError", _n, q, Jn), f(G, 1, "importFile", gn, q), f(G, 4, "canSaveIntoSpellUi", hn, q, Yn), f(G, 4, "spellUiNote", mn, q, Xn), f(G, 1, "askSpellUi", pn, q), f(G, 1, "saveIntoSpellUi", fn, q), f(G, 1, "copy", dn, q), f(G, 1, "listenToPages", un, q), f(G, 4, "hiddenPages", ln, q, Zn), f(G, 4, "pageOrder", cn, q, Qn), f(G, 4, "addressedPages", sn, q, $n), f(G, 1, "movePage", on, q), f(G, 1, "movePageBy", an, q), f(G, 4, "schemes", rn, q, er), f(G, 1, "showSchemes", nn, q), f(G, 4, "device", tn, q, tr), f(G, 4, "isSwapped", en, q, nr), f(G, 1, "swap", $t, q), f(G, 1, "onViewChanged", Qt, q), f(G, 4, "looks", Zt, q, rr), f(G, 4, "loaded", Xt, q, ir), f(G, 4, "cells", Yt, q, ar), f(G, 2, "readers", Jt, q), f(G, 1, "onPageLoaded", qt, q), f(G, 1, "onPageMessage", Kt, q), f(G, 1, "reload", Gt, q), f(G, 4, "headBottom", Wt, q, or), f(G, 2, "resizer", Ut, q), f(G, 4, "filter", Ht, q, sr), f(G, 2, "tree", Vt, q), f(G, 4, "folds", Bt, q, cr), f(G, 4, "isFilterFolded", zt, q, lr), f(G, 1, "toggleAll", Rt, q), f(G, 4, "isSetHereOnly", Lt, q, ur), f(G, 2, "sources", It, q), f(G, 2, "pointedAt", Ft, q), f(G, 1, "setHere", Pt, q), f(G, 1, "backToParent", Nt, q), f(G, 4, "barMore", Mt, q, dr), f(G, 4, "draggedPage", jt, q, fr), f(G, 4, "dropAt", At, q, pr), f(G, 4, "openRows", kt, q, mr), f(G, 1, "openRow", Ot, q), f(G, 1, "showOnly", Dt, q), f(G, 4, "openToken", Et, q, hr), f(G, 1, "onRowCommand", Tt, q), f(G, 1, "onRowChanged", wt, q), f(G, 13, "vocabulary", Vn, q), f(G, 13, "elementSetup", Bn, q), m(G, q), c(q, "UIThemeEditor"), s(q, "vocabulary", h(G, 116, q, Oe)), h(G, 119, q), s(q, "elementSetup", h(G, 120, q, {
|
|
2862
2850
|
styleSheets: {
|
|
2863
2851
|
"theme-editor": ke,
|
|
2864
2852
|
"hue-dropdown": le.css
|
|
2865
2853
|
},
|
|
2866
2854
|
DOMElement: gr,
|
|
2867
2855
|
delegatesFocus: !1
|
|
2868
|
-
})),
|
|
2856
|
+
})), h(G, 123, q);
|
|
2869
2857
|
var _r = q, vr = "spell/ui/core", yr = {
|
|
2870
2858
|
theme: !0,
|
|
2871
2859
|
scheme: !0,
|
|
@@ -2880,17 +2868,17 @@ var _r = q, vr = "spell/ui/core", yr = {
|
|
|
2880
2868
|
function frameKey(e, t) {
|
|
2881
2869
|
return `${e}:${t}`;
|
|
2882
2870
|
}
|
|
2883
|
-
|
|
2871
|
+
c(frameKey, "frameKey");
|
|
2884
2872
|
function splitKey(e) {
|
|
2885
2873
|
let t = e.lastIndexOf(":");
|
|
2886
2874
|
return [e.slice(0, t), e.slice(t + 1)];
|
|
2887
2875
|
}
|
|
2888
|
-
|
|
2876
|
+
c(splitKey, "splitKey");
|
|
2889
2877
|
function otherLoopback(e) {
|
|
2890
2878
|
let t = new URL(e, location.href);
|
|
2891
2879
|
return t.hostname = t.hostname === Nr ? Pr : Nr, t.href;
|
|
2892
2880
|
}
|
|
2893
|
-
|
|
2881
|
+
c(otherLoopback, "otherLoopback");
|
|
2894
2882
|
var Mr = "about:blank", Nr = "localhost", Pr = "127.0.0.1", Fr = "own", Ir = "page.", Lr = {
|
|
2895
2883
|
own: "groupOwn",
|
|
2896
2884
|
typography: "groupTypography",
|
|
@@ -2929,9 +2917,8 @@ var Mr = "about:blank", Nr = "localhost", Pr = "127.0.0.1", Fr = "own", Ir = "pa
|
|
|
2929
2917
|
function stopInner(e) {
|
|
2930
2918
|
for (let t of _i) e.addEventListener(t, (e) => e.stopPropagation());
|
|
2931
2919
|
}
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
//#region src/components/ui-theme-editor/UIThemeToken.en.ts
|
|
2920
|
+
c(stopInner, "stopInner"), ve(["click", "keydown"]);
|
|
2921
|
+
// src/components/ui-theme-editor/UIThemeToken.en.ts
|
|
2935
2922
|
var vi = {
|
|
2936
2923
|
tag: "ui-theme-token",
|
|
2937
2924
|
icon: "tint",
|
|
@@ -2945,6 +2932,7 @@ var vi = {
|
|
|
2945
2932
|
],
|
|
2946
2933
|
skeleton: "2 tall",
|
|
2947
2934
|
noun: "theme token",
|
|
2935
|
+
partOfSpeech: "action",
|
|
2948
2936
|
description: "A theme token is one token of a theme being made: where its value comes from, its value as colour chips in light and dark, and, under its name, a drawer to change it.",
|
|
2949
2937
|
attributes: [{
|
|
2950
2938
|
name: "row",
|
|
@@ -3054,9 +3042,9 @@ var vi = {
|
|
|
3054
3042
|
description: "`transparent`, as a mix's base."
|
|
3055
3043
|
}
|
|
3056
3044
|
]
|
|
3057
|
-
}, yi = "@layer ui.components.theme-token.types{:host{--_ui-theme-token-gap:var(--ui-theme-token-gap,20px);display:block}}@layer ui.components.theme-token.content{.theme-token{gap:4px;padding:6px 8px;display:grid}:host(:not(:state(here))) .theme-token:not(:hover) :is(.name,.values,.pointer){opacity:.6}.head{align-items:center;gap:6px;min-height:24px;display:flex}.mark{text-align:center;flex:none;width:1em;font-size:.8em;line-height:1}.mark.set{color:var(--ui-primary-text,var(--ui-primary))}.mark.from{color:var(--ui-text-muted)}.name{min-width:0;font:inherit;font-family:var(--ui-font-family-mono,monospace);color:inherit;text-align:start;text-overflow:ellipsis;white-space:nowrap;cursor:var(--ui-control-cursor);background:0 0;border:0;margin-inline-end:auto;padding:0;font-size:.85em;overflow:hidden}.name:hover,.open .name{color:var(--ui-link,var(--ui-primary))}.name:focus-visible,.link:focus-visible{outline:2px solid var(--ui-focus-color,var(--ui-link));outline-offset:1px}.readers{flex:none;gap:2px;display:inline-flex}.reader{width:22px;height:22px;color:var(--ui-primary-text,var(--ui-primary));background:var(--ui-primary-background,transparent);border-radius:6px;justify-content:center;align-items:center;display:inline-flex;position:relative}.reader ui-icon{--ui-icon-width:auto;margin:0;font-size:.8em}.reader.overrides:after{content:\"\";box-sizing:border-box;border:1.5px solid var(--ui-warning-text,#b45309);background:linear-gradient(90deg, var(--ui-warning-text,#b45309) 50%, var(--ui-surface) 50%);border-radius:50%;width:9px;height:9px;position:absolute;inset:auto -2px -2px auto}.tool{opacity:.55;flex:none}.theme-token:hover .tool,.tool:focus-within{opacity:1}.values{align-items:center;gap:4px var(--_ui-theme-token-gap);flex-wrap:wrap;padding-inline-start:1.1em;display:flex}.value{align-items:center;gap:5px;min-width:0;display:inline-flex}.mix{color:var(--ui-text-muted);align-items:center;gap:5px;font-size:.85em;display:inline-flex}.amount{font-variant-numeric:tabular-nums;color:var(--ui-text-muted);font-size:.85em}.text{text-overflow:ellipsis;white-space:nowrap;font-size:.8em;overflow:hidden}.pointer{color:var(--ui-text-muted);align-items:baseline;gap:6px;padding-inline-start:1.1em;font-size:.8em;display:flex}.link{font:inherit;font-family:var(--ui-font-family-mono,monospace);color:var(--ui-link,var(--ui-primary));cursor:var(--ui-control-cursor);background:0 0;border:0;padding:0}.link:hover{text-decoration:underline}.drawer{background:var(--ui-surface-muted,transparent);border:1px solid var(--ui-border-color-internal,var(--ui-border-color));border-radius:8px;gap:8px;margin:0 8px 8px 1.6em;padding:10px;display:grid}.mix-editor,.pointer-editor{gap:8px;display:grid}.field{grid-template-columns:6em minmax(0,1fr);align-items:center;gap:8px;display:grid}.amount-field{grid-template-columns:6em minmax(0,1fr) 3em}.amount-field .amount{text-align:end}.field-label{color:var(--ui-text-muted);font-size:.8em;font-weight:600}.value-editor{grid-template-columns:minmax(0,1fr);align-items:center;gap:6px;display:grid}.value-editor.color{grid-template-columns:32px calc(8ch + 1.6em) minmax(0,1fr) 3.2em;gap:8px}.value-editor.apart{grid-template-columns:auto minmax(0,1fr)}.value-editor.color.apart{grid-template-columns:auto 32px calc(8ch + 1.6em) minmax(0,1fr) 3.2em}.value-editor.length.apart{grid-template-columns:auto 7em minmax(0,1fr)}.scheme{--ui-icon-width:1em;color:var(--ui-text-muted);margin:0}.value-editor.length{grid-template-columns:7em minmax(0,1fr)}.picker::part(control){block-size:28px;inline-size:32px}.hex::part(control){font-family:var(--ui-font-family-mono,monospace);padding-inline:.5em}.value-editor.length ui-input::part(control){text-align:end;font-variant-numeric:tabular-nums}.percent{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ui-text-muted);font-size:.85em}}", bi = /* @__PURE__ */ B("<div class=pointer><span class=pointer-mark aria-hidden=true>"), xi = /* @__PURE__ */ B("<div class=\"ui theme-token\"><div class=values></div><!>"), Si = /* @__PURE__ */ B("<ui-button class=tool size=mini appearance=basic>", 1), Ci = /* @__PURE__ */ B("<ui-button class=tool size=mini appearance=\"basic circular\"icon=columns>", 1), wi = /* @__PURE__ */ B("<ui-button class=tool size=mini appearance=\"basic circular\"icon=undo>", 1), Ti = /* @__PURE__ */ B("<div class=head><span></span><button type=button class=name></button><!><!><span class=readers role=list>"), Ei = /* @__PURE__ */ B("<span class=reader role=listitem><ui-icon aria-hidden=true>", 1), Di = /* @__PURE__ */ B("<ui-color-chip>", 1), Oi = /* @__PURE__ */ B("<span class=mix><span aria-hidden=true>=</span><ui-color-chip></ui-color-chip><span aria-hidden=true>+</span><ui-color-chip></ui-color-chip><span class=amount>%", 1), ki = /* @__PURE__ */ B("<span>"), Ai = /* @__PURE__ */ B("<code class=text>"), ji = /* @__PURE__ */ B("<button type=button class=link>"), Mi = /* @__PURE__ */ B("<div class=drawer>"), Ni = /* @__PURE__ */ B("<div class=mix-editor><label class=\"field amount-field\"><span class=field-label></span><ui-slider min=0 step=1></ui-slider><span class=amount>%</span></label><!><!>", 1), Pi = /* @__PURE__ */ B("<div class=pointer-editor><ui-button size=mini appearance=basic>", 1), Fi = /* @__PURE__ */ B("<label class=field><span class=field-label></span><ui-select size=small fluid><ui-item>", 1), Ii = /* @__PURE__ */ B("<ui-item>", 1), Li = /* @__PURE__ */ B("<ui-icon class=scheme>", 1), Ri = /* @__PURE__ */ B("<ui-input class=picker type=color size=small>", 1), zi = /* @__PURE__ */ B("<ui-input class=hex size=small>", 1), Bi = /* @__PURE__ */ B("<ui-slider class=opacity min=0 step=1>", 1), Vi = /* @__PURE__ */ B("<span class=percent>%"), Hi = /* @__PURE__ */ B("<div><!><!>"), Ui = /* @__PURE__ */ B("<ui-input size=small fluid>", 1), Wi = /* @__PURE__ */ B("<ui-slider min=0 step=1>", 1), Gi, Ki, qi, Ji, Yi, Xi, Zi, Y, X = class _UIThemeToken extends (Zi =
|
|
3045
|
+
}, yi = "@layer ui.components.theme-token.types{:host{--_ui-theme-token-gap:var(--ui-theme-token-gap,20px);display:block}}@layer ui.components.theme-token.content{.theme-token{gap:4px;padding:6px 8px;display:grid}:host(:not(:state(here))) .theme-token:not(:hover) :is(.name,.values,.pointer){opacity:.6}.head{align-items:center;gap:6px;min-height:24px;display:flex}.mark{text-align:center;flex:none;width:1em;font-size:.8em;line-height:1}.mark.set{color:var(--ui-primary-text,var(--ui-primary))}.mark.from{color:var(--ui-text-muted)}.name{min-width:0;font:inherit;font-family:var(--ui-font-family-mono,monospace);color:inherit;text-align:start;text-overflow:ellipsis;white-space:nowrap;cursor:var(--ui-control-cursor);background:0 0;border:0;margin-inline-end:auto;padding:0;font-size:.85em;overflow:hidden}.name:hover,.open .name{color:var(--ui-link,var(--ui-primary))}.name:focus-visible,.link:focus-visible{outline:2px solid var(--ui-focus-color,var(--ui-link));outline-offset:1px}.readers{flex:none;gap:2px;display:inline-flex}.reader{width:22px;height:22px;color:var(--ui-primary-text,var(--ui-primary));background:var(--ui-primary-background,transparent);border-radius:6px;justify-content:center;align-items:center;display:inline-flex;position:relative}.reader ui-icon{--ui-icon-width:auto;margin:0;font-size:.8em}.reader.overrides:after{content:\"\";box-sizing:border-box;border:1.5px solid var(--ui-warning-text,#b45309);background:linear-gradient(90deg, var(--ui-warning-text,#b45309) 50%, var(--ui-surface) 50%);border-radius:50%;width:9px;height:9px;position:absolute;inset:auto -2px -2px auto}.tool{opacity:.55;flex:none}.theme-token:hover .tool,.tool:focus-within{opacity:1}.values{align-items:center;gap:4px var(--_ui-theme-token-gap);flex-wrap:wrap;padding-inline-start:1.1em;display:flex}.value{align-items:center;gap:5px;min-width:0;display:inline-flex}.mix{color:var(--ui-text-muted);align-items:center;gap:5px;font-size:.85em;display:inline-flex}.amount{font-variant-numeric:tabular-nums;color:var(--ui-text-muted);font-size:.85em}.text{text-overflow:ellipsis;white-space:nowrap;font-size:.8em;overflow:hidden}.pointer{color:var(--ui-text-muted);align-items:baseline;gap:6px;padding-inline-start:1.1em;font-size:.8em;display:flex}.link{font:inherit;font-family:var(--ui-font-family-mono,monospace);color:var(--ui-link,var(--ui-primary));cursor:var(--ui-control-cursor);background:0 0;border:0;padding:0}.link:hover{text-decoration:underline}.drawer{background:var(--ui-surface-muted,transparent);border:1px solid var(--ui-border-color-internal,var(--ui-border-color));border-radius:8px;gap:8px;margin:0 8px 8px 1.6em;padding:10px;display:grid}.mix-editor,.pointer-editor{gap:8px;display:grid}.field{grid-template-columns:6em minmax(0,1fr);align-items:center;gap:8px;display:grid}.amount-field{grid-template-columns:6em minmax(0,1fr) 3em}.amount-field .amount{text-align:end}.field-label{color:var(--ui-text-muted);font-size:.8em;font-weight:600}.value-editor{grid-template-columns:minmax(0,1fr);align-items:center;gap:6px;display:grid}.value-editor.color{grid-template-columns:32px calc(8ch + 1.6em) minmax(0,1fr) 3.2em;gap:8px}.value-editor.apart{grid-template-columns:auto minmax(0,1fr)}.value-editor.color.apart{grid-template-columns:auto 32px calc(8ch + 1.6em) minmax(0,1fr) 3.2em}.value-editor.length.apart{grid-template-columns:auto 7em minmax(0,1fr)}.scheme{--ui-icon-width:1em;color:var(--ui-text-muted);margin:0}.value-editor.length{grid-template-columns:7em minmax(0,1fr)}.picker::part(control){block-size:28px;inline-size:32px}.hex::part(control){font-family:var(--ui-font-family-mono,monospace);padding-inline:.5em}.value-editor.length ui-input::part(control){text-align:end;font-variant-numeric:tabular-nums}.percent{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ui-text-muted);font-size:.85em}}", bi = /* @__PURE__ */ B("<div class=pointer><span class=pointer-mark aria-hidden=true>"), xi = /* @__PURE__ */ B("<div class=\"ui theme-token\"><div class=values></div><!>"), Si = /* @__PURE__ */ B("<ui-button class=tool size=mini appearance=basic>", 1), Ci = /* @__PURE__ */ B("<ui-button class=tool size=mini appearance=\"basic circular\"icon=columns>", 1), wi = /* @__PURE__ */ B("<ui-button class=tool size=mini appearance=\"basic circular\"icon=undo>", 1), Ti = /* @__PURE__ */ B("<div class=head><span></span><button type=button class=name></button><!><!><span class=readers role=list>"), Ei = /* @__PURE__ */ B("<span class=reader role=listitem><ui-icon aria-hidden=true>", 1), Di = /* @__PURE__ */ B("<ui-color-chip>", 1), Oi = /* @__PURE__ */ B("<span class=mix><span aria-hidden=true>=</span><ui-color-chip></ui-color-chip><span aria-hidden=true>+</span><ui-color-chip></ui-color-chip><span class=amount>%", 1), ki = /* @__PURE__ */ B("<span>"), Ai = /* @__PURE__ */ B("<code class=text>"), ji = /* @__PURE__ */ B("<button type=button class=link>"), Mi = /* @__PURE__ */ B("<div class=drawer>"), Ni = /* @__PURE__ */ B("<div class=mix-editor><label class=\"field amount-field\"><span class=field-label></span><ui-slider min=0 step=1></ui-slider><span class=amount>%</span></label><!><!>", 1), Pi = /* @__PURE__ */ B("<div class=pointer-editor><ui-button size=mini appearance=basic>", 1), Fi = /* @__PURE__ */ B("<label class=field><span class=field-label></span><ui-select size=small fluid><ui-item>", 1), Ii = /* @__PURE__ */ B("<ui-item>", 1), Li = /* @__PURE__ */ B("<ui-icon class=scheme>", 1), Ri = /* @__PURE__ */ B("<ui-input class=picker type=color size=small>", 1), zi = /* @__PURE__ */ B("<ui-input class=hex size=small>", 1), Bi = /* @__PURE__ */ B("<ui-slider class=opacity min=0 step=1>", 1), Vi = /* @__PURE__ */ B("<span class=percent>%"), Hi = /* @__PURE__ */ B("<div><!><!>"), Ui = /* @__PURE__ */ B("<ui-input size=small fluid>", 1), Wi = /* @__PURE__ */ B("<ui-slider min=0 step=1>", 1), Gi, Ki, qi, Ji, Yi, Xi, Zi, Y, X = class _UIThemeToken extends (Zi = d, Xi = [ie], Yi = [ae], Ji = [_("here")], qi = [_("open")], Ki = [C], Gi = [C], Zi) {
|
|
3058
3046
|
constructor() {
|
|
3059
|
-
super(...arguments),
|
|
3047
|
+
super(...arguments), h(Y, 5, this);
|
|
3060
3048
|
}
|
|
3061
3049
|
get data() {
|
|
3062
3050
|
let e = this.row;
|
|
@@ -3135,38 +3123,38 @@ var vi = {
|
|
|
3135
3123
|
});
|
|
3136
3124
|
}
|
|
3137
3125
|
head() {
|
|
3138
|
-
let e = /* @__PURE__ */
|
|
3139
|
-
var
|
|
3140
|
-
return P(
|
|
3126
|
+
let e = /* @__PURE__ */ c(() => this.data, "row"), t = /* @__PURE__ */ c((e, t) => this.text(e, t), "t"), n = this;
|
|
3127
|
+
var r = Ti(), i = r.firstChild, a = i.nextSibling, o = a.nextSibling, s = o.nextSibling, l = s.nextSibling;
|
|
3128
|
+
return P(i, () => e().isHere ? $i : ea), a._$$click = () => n.command("open"), P(a, () => e().label), P(r, j(k, {
|
|
3141
3129
|
get when() {
|
|
3142
3130
|
return !e().isHere;
|
|
3143
3131
|
},
|
|
3144
3132
|
get children() {
|
|
3145
3133
|
var e = Si();
|
|
3146
|
-
return e._$$click = () =>
|
|
3134
|
+
return e._$$click = () => n.command("set here"), e._$owner = N(), P(e, () => t("setHere")), M(() => t("setHereTip"), (t) => {
|
|
3147
3135
|
z(e, "title", t);
|
|
3148
3136
|
}), e;
|
|
3149
3137
|
}
|
|
3150
|
-
}),
|
|
3138
|
+
}), o), P(r, j(k, {
|
|
3151
3139
|
get when() {
|
|
3152
3140
|
return I(() => !e().isSplit)() && !e().values.light.mix;
|
|
3153
3141
|
},
|
|
3154
3142
|
get children() {
|
|
3155
3143
|
var e = Ci();
|
|
3156
|
-
return e._$$click = () =>
|
|
3157
|
-
e:
|
|
3158
|
-
t:
|
|
3144
|
+
return e._$$click = () => n.command("split"), e._$owner = N(), M(() => ({
|
|
3145
|
+
e: t("split"),
|
|
3146
|
+
t: t("split")
|
|
3159
3147
|
}), ({ e: t, t: n }, r) => {
|
|
3160
3148
|
t !== r?.e && z(e, "aria-label", t), n !== r?.t && z(e, "title", n);
|
|
3161
3149
|
}), e;
|
|
3162
3150
|
}
|
|
3163
|
-
}),
|
|
3151
|
+
}), s), P(r, j(k, {
|
|
3164
3152
|
get when() {
|
|
3165
3153
|
return e().resetLabel;
|
|
3166
3154
|
},
|
|
3167
3155
|
get children() {
|
|
3168
3156
|
var t = wi();
|
|
3169
|
-
return t._$$click = () =>
|
|
3157
|
+
return t._$$click = () => n.command("reset"), t._$owner = N(), M(() => ({
|
|
3170
3158
|
e: e().resetLabel,
|
|
3171
3159
|
t: e().resetLabel
|
|
3172
3160
|
}), ({ e, t: n }, r) => {
|
|
@@ -3192,56 +3180,56 @@ var vi = {
|
|
|
3192
3180
|
t: e().markTip,
|
|
3193
3181
|
a: e().markTip,
|
|
3194
3182
|
o: e().nameTip,
|
|
3195
|
-
i:
|
|
3183
|
+
i: t("edit", { token: e().token }),
|
|
3196
3184
|
n: e().isOpen ? "true" : "false",
|
|
3197
|
-
s:
|
|
3198
|
-
}), ({ e, t, a: n, o: r, i, n: s, s: c }, u) => {
|
|
3199
|
-
A(
|
|
3200
|
-
}),
|
|
3185
|
+
s: t("readBy")
|
|
3186
|
+
}), ({ e, t, a: n, o: r, i: o, n: s, s: c }, u) => {
|
|
3187
|
+
A(i, e, u?.e), t !== u?.t && z(i, "title", t), n !== u?.a && z(i, "aria-label", n), r !== u?.o && z(a, "title", r), o !== u?.i && z(a, "aria-label", o), s !== u?.n && z(a, "aria-expanded", s), c !== u?.s && z(l, "aria-label", c);
|
|
3188
|
+
}), r;
|
|
3201
3189
|
}
|
|
3202
3190
|
value(e) {
|
|
3203
|
-
let
|
|
3204
|
-
var
|
|
3205
|
-
return P(
|
|
3191
|
+
let t = /* @__PURE__ */ c(() => this.data.values[e], "value"), n = this;
|
|
3192
|
+
var r = ki();
|
|
3193
|
+
return P(r, j(k, {
|
|
3206
3194
|
get when() {
|
|
3207
|
-
return
|
|
3195
|
+
return t().kind === "color";
|
|
3208
3196
|
},
|
|
3209
3197
|
get fallback() {
|
|
3210
3198
|
var e = Ai();
|
|
3211
|
-
return P(e, () =>
|
|
3199
|
+
return P(e, () => t().text), e;
|
|
3212
3200
|
},
|
|
3213
3201
|
get children() {
|
|
3214
3202
|
return [(() => {
|
|
3215
|
-
var
|
|
3216
|
-
return z(
|
|
3217
|
-
e:
|
|
3218
|
-
t:
|
|
3219
|
-
}), ({ e, t
|
|
3220
|
-
e !==
|
|
3221
|
-
}),
|
|
3203
|
+
var r = Di();
|
|
3204
|
+
return z(r, "scheme", e), r._$owner = N(), M(() => ({
|
|
3205
|
+
e: t().text,
|
|
3206
|
+
t: n.text(e)
|
|
3207
|
+
}), ({ e, t }, n) => {
|
|
3208
|
+
e !== n?.e && z(r, "color", e), t !== n?.t && z(r, "label", t);
|
|
3209
|
+
}), r;
|
|
3222
3210
|
})(), j(k, {
|
|
3223
3211
|
get when() {
|
|
3224
|
-
return
|
|
3212
|
+
return t().mix;
|
|
3225
3213
|
},
|
|
3226
3214
|
get children() {
|
|
3227
|
-
var
|
|
3228
|
-
return z(i, "scheme", e), i._$owner = N(), z(a, "scheme", e), a._$owner = N(), P(o, () =>
|
|
3229
|
-
e:
|
|
3230
|
-
t:
|
|
3231
|
-
a:
|
|
3232
|
-
o:
|
|
3215
|
+
var r = Oi(), i = r.firstChild.nextSibling, a = i.nextSibling.nextSibling, o = a.nextSibling, s = o.firstChild;
|
|
3216
|
+
return z(i, "scheme", e), i._$owner = N(), z(a, "scheme", e), a._$owner = N(), P(o, () => t().mix.amount, s), M(() => ({
|
|
3217
|
+
e: t().mix.baseColor,
|
|
3218
|
+
t: n.colorName(t().mix.base),
|
|
3219
|
+
a: t().mix.mixinColor,
|
|
3220
|
+
o: n.colorName(t().mix.mixin)
|
|
3233
3221
|
}), ({ e, t, a: n, o: r }, o) => {
|
|
3234
3222
|
e !== o?.e && z(i, "color", e), t !== o?.t && z(i, "label", t), n !== o?.a && z(a, "color", n), r !== o?.o && z(a, "label", r);
|
|
3235
|
-
}),
|
|
3223
|
+
}), r;
|
|
3236
3224
|
}
|
|
3237
3225
|
})];
|
|
3238
3226
|
}
|
|
3239
3227
|
})), M(() => ({
|
|
3240
3228
|
e: L(["value", e]),
|
|
3241
|
-
t:
|
|
3229
|
+
t: n.text(e)
|
|
3242
3230
|
}), ({ e, t }, n) => {
|
|
3243
|
-
A(
|
|
3244
|
-
}),
|
|
3231
|
+
A(r, e, n?.e), t !== n?.t && z(r, "title", t);
|
|
3232
|
+
}), r;
|
|
3245
3233
|
}
|
|
3246
3234
|
colorName(e) {
|
|
3247
3235
|
return e === na ? this.text("clear") : e;
|
|
@@ -3252,11 +3240,11 @@ var vi = {
|
|
|
3252
3240
|
return n._$$click = () => t.command("show", e), P(n, e), n;
|
|
3253
3241
|
}
|
|
3254
3242
|
drawer() {
|
|
3255
|
-
let e = /* @__PURE__ */
|
|
3256
|
-
var
|
|
3257
|
-
return P(
|
|
3243
|
+
let e = /* @__PURE__ */ c(() => this.data, "row"), t = /* @__PURE__ */ c(() => e().values[e().schemes[0] ?? "light"].mix, "mix"), n = this;
|
|
3244
|
+
var r = Mi();
|
|
3245
|
+
return P(r, j(k, {
|
|
3258
3246
|
get when() {
|
|
3259
|
-
return
|
|
3247
|
+
return t();
|
|
3260
3248
|
},
|
|
3261
3249
|
get fallback() {
|
|
3262
3250
|
return j(k, {
|
|
@@ -3266,45 +3254,45 @@ var vi = {
|
|
|
3266
3254
|
get fallback() {
|
|
3267
3255
|
return j(O, {
|
|
3268
3256
|
get each() {
|
|
3269
|
-
return
|
|
3257
|
+
return n.shownSchemes;
|
|
3270
3258
|
},
|
|
3271
|
-
children: (e) =>
|
|
3259
|
+
children: (e) => n.valueEditor(e)
|
|
3272
3260
|
});
|
|
3273
3261
|
},
|
|
3274
3262
|
get children() {
|
|
3275
|
-
return
|
|
3263
|
+
return n.pointerEditor();
|
|
3276
3264
|
}
|
|
3277
3265
|
});
|
|
3278
3266
|
},
|
|
3279
3267
|
get children() {
|
|
3280
|
-
return
|
|
3268
|
+
return n.mixEditor();
|
|
3281
3269
|
}
|
|
3282
|
-
})), M(() =>
|
|
3283
|
-
z(
|
|
3284
|
-
}),
|
|
3270
|
+
})), M(() => n.partForName("drawer"), (e) => {
|
|
3271
|
+
z(r, "part", e);
|
|
3272
|
+
}), r;
|
|
3285
3273
|
}
|
|
3286
3274
|
mixEditor() {
|
|
3287
|
-
let e = /* @__PURE__ */
|
|
3288
|
-
let { base:
|
|
3289
|
-
...
|
|
3275
|
+
let e = /* @__PURE__ */ c((e) => this.text(e), "t"), t = /* @__PURE__ */ c(() => this.data.values[this.data.schemes[0] ?? "light"].mix, "mix"), n = /* @__PURE__ */ c((e) => {
|
|
3276
|
+
let { base: n, mixin: r, amount: i } = {
|
|
3277
|
+
...t(),
|
|
3290
3278
|
...e
|
|
3291
3279
|
};
|
|
3292
|
-
this.change(`color-mix(in oklab, ${asWritten(r)} ${i}%, ${asWritten(
|
|
3293
|
-
}, "write"),
|
|
3294
|
-
var
|
|
3295
|
-
return P(
|
|
3296
|
-
e:
|
|
3280
|
+
this.change(`color-mix(in oklab, ${asWritten(r)} ${i}%, ${asWritten(n)})`);
|
|
3281
|
+
}, "write"), r = this;
|
|
3282
|
+
var i = Ni(), a = i.firstChild, o = a.firstChild, s = o.nextSibling, l = s.nextSibling, u = l.firstChild, d = a.nextSibling, f = d.nextSibling;
|
|
3283
|
+
return P(o, () => e("amount")), z(s, "max", Z), z(s, "on-ui-moved", (e) => n({ amount: e.detail.value })), s._$owner = N(), P(l, () => t().amount, u), P(i, () => r.colorSelect(e("mixIn"), t().mixin, (e) => n({ mixin: e })), d), P(i, () => r.colorSelect(e("base"), t().base, (e) => n({ base: e })), f), M(() => ({
|
|
3284
|
+
e: t().amount,
|
|
3297
3285
|
t: e("amount")
|
|
3298
3286
|
}), ({ e, t }, n) => {
|
|
3299
|
-
e !== n?.e && z(
|
|
3300
|
-
}),
|
|
3287
|
+
e !== n?.e && z(s, "value", e), t !== n?.t && z(s, "aria-label", t);
|
|
3288
|
+
}), i;
|
|
3301
3289
|
}
|
|
3302
3290
|
pointerEditor() {
|
|
3303
|
-
let e = /* @__PURE__ */
|
|
3304
|
-
var
|
|
3305
|
-
return P(
|
|
3306
|
-
z(
|
|
3307
|
-
}),
|
|
3291
|
+
let e = /* @__PURE__ */ c((e) => this.text(e), "t"), t = this;
|
|
3292
|
+
var n = Pi(), r = n.firstChild;
|
|
3293
|
+
return P(n, () => t.colorSelect(e("pointsAt"), t.data.pointer.place, (e) => t.change(asWritten(e))), r), r._$$click = () => t.command("set here"), r._$owner = N(), P(r, () => e("setHere")), M(() => e("pointsAtTip"), (e) => {
|
|
3294
|
+
z(n, "title", e);
|
|
3295
|
+
}), n;
|
|
3308
3296
|
}
|
|
3309
3297
|
colorSelect(e, t, n) {
|
|
3310
3298
|
let r = this;
|
|
@@ -3322,41 +3310,41 @@ var vi = {
|
|
|
3322
3310
|
}), null), i;
|
|
3323
3311
|
}
|
|
3324
3312
|
valueEditor(e) {
|
|
3325
|
-
let
|
|
3326
|
-
var
|
|
3327
|
-
return P(
|
|
3313
|
+
let t = /* @__PURE__ */ c(() => this.data.values[e], "value"), n = /* @__PURE__ */ c(() => this.data.isSplit ? e : void 0, "forScheme"), r = /* @__PURE__ */ c(() => `${this.data.token}, ${this.text(e)}`, "name"), i = this;
|
|
3314
|
+
var a = Hi(), o = a.firstChild, s = o.nextSibling;
|
|
3315
|
+
return P(a, j(k, {
|
|
3328
3316
|
get when() {
|
|
3329
|
-
return
|
|
3317
|
+
return i.isApart;
|
|
3330
3318
|
},
|
|
3331
3319
|
get children() {
|
|
3332
3320
|
var t = Li();
|
|
3333
|
-
return z(t, "name", e === "dark" ? "moon" : "sun"), t._$owner = N(), M(() =>
|
|
3321
|
+
return z(t, "name", e === "dark" ? "moon" : "sun"), t._$owner = N(), M(() => i.text(e), (e) => {
|
|
3334
3322
|
z(t, "aria-label", e);
|
|
3335
3323
|
}), t;
|
|
3336
3324
|
}
|
|
3337
|
-
}),
|
|
3325
|
+
}), o), P(a, j(k, {
|
|
3338
3326
|
get when() {
|
|
3339
|
-
return
|
|
3327
|
+
return t().kind === "color";
|
|
3340
3328
|
},
|
|
3341
3329
|
get fallback() {
|
|
3342
3330
|
return [(() => {
|
|
3343
3331
|
var e = Ui();
|
|
3344
|
-
return z(e, "on-ui-changed", (e) =>
|
|
3345
|
-
e:
|
|
3346
|
-
t: `${
|
|
3332
|
+
return z(e, "on-ui-changed", (e) => i.change(e.detail.value.trim(), n())), e._$owner = N(), M(() => ({
|
|
3333
|
+
e: t().text,
|
|
3334
|
+
t: `${r()}: ${i.text("value")}`
|
|
3347
3335
|
}), ({ e: t, t: n }, r) => {
|
|
3348
3336
|
t !== r?.e && z(e, "value", t), n !== r?.t && z(e, "aria-label", n);
|
|
3349
3337
|
}), e;
|
|
3350
3338
|
})(), j(k, {
|
|
3351
3339
|
get when() {
|
|
3352
|
-
return
|
|
3340
|
+
return t().kind === "length";
|
|
3353
3341
|
},
|
|
3354
3342
|
get children() {
|
|
3355
3343
|
var e = Wi();
|
|
3356
|
-
return z(e, "on-ui-moved", (e) =>
|
|
3357
|
-
e: Math.max(ra, Math.ceil((parseFloat(
|
|
3358
|
-
t: parseFloat(
|
|
3359
|
-
a:
|
|
3344
|
+
return z(e, "on-ui-moved", (e) => i.change(`${e.detail.value}px`, n())), e._$owner = N(), M(() => ({
|
|
3345
|
+
e: Math.max(ra, Math.ceil((parseFloat(t().text) || 0) * 2)),
|
|
3346
|
+
t: parseFloat(t().text) || 0,
|
|
3347
|
+
a: r()
|
|
3360
3348
|
}), ({ e: t, t: n, a: r }, i) => {
|
|
3361
3349
|
t !== i?.e && z(e, "max", t), n !== i?.t && z(e, "value", n), r !== i?.a && z(e, "aria-label", r);
|
|
3362
3350
|
}), e;
|
|
@@ -3367,66 +3355,65 @@ var vi = {
|
|
|
3367
3355
|
return [
|
|
3368
3356
|
(() => {
|
|
3369
3357
|
var e = Ri();
|
|
3370
|
-
return z(e, "on-ui-typed", (e) =>
|
|
3371
|
-
e:
|
|
3372
|
-
t:
|
|
3358
|
+
return z(e, "on-ui-typed", (e) => i.change(V.join(e.detail.value, t().opacity ?? Z), n())), e._$owner = N(), M(() => ({
|
|
3359
|
+
e: t().hex ?? ia,
|
|
3360
|
+
t: r()
|
|
3373
3361
|
}), ({ e: t, t: n }, r) => {
|
|
3374
3362
|
t !== r?.e && z(e, "value", t), n !== r?.t && z(e, "aria-label", n);
|
|
3375
3363
|
}), e;
|
|
3376
3364
|
})(),
|
|
3377
3365
|
(() => {
|
|
3378
3366
|
var e = zi();
|
|
3379
|
-
return z(e, "on-ui-changed", (e) =>
|
|
3380
|
-
e:
|
|
3381
|
-
t: `${
|
|
3367
|
+
return z(e, "on-ui-changed", (e) => i.change(V.join(e.detail.value.trim(), t().opacity ?? Z), n())), e._$owner = N(), M(() => ({
|
|
3368
|
+
e: t().hex ?? "",
|
|
3369
|
+
t: `${r()}: ${i.text("value")}`
|
|
3382
3370
|
}), ({ e: t, t: n }, r) => {
|
|
3383
3371
|
t !== r?.e && z(e, "value", t), n !== r?.t && z(e, "aria-label", n);
|
|
3384
3372
|
}), e;
|
|
3385
3373
|
})(),
|
|
3386
3374
|
(() => {
|
|
3387
3375
|
var e = Bi();
|
|
3388
|
-
return z(e, "max", Z), z(e, "on-ui-moved", (e) =>
|
|
3389
|
-
e:
|
|
3390
|
-
t: `${
|
|
3376
|
+
return z(e, "max", Z), z(e, "on-ui-moved", (e) => i.change(V.join(t().hex ?? ia, e.detail.value), n())), e._$owner = N(), M(() => ({
|
|
3377
|
+
e: t().opacity ?? Z,
|
|
3378
|
+
t: `${r()}: ${i.text("alpha")}`
|
|
3391
3379
|
}), ({ e: t, t: n }, r) => {
|
|
3392
3380
|
t !== r?.e && z(e, "value", t), n !== r?.t && z(e, "aria-label", n);
|
|
3393
3381
|
}), e;
|
|
3394
3382
|
})(),
|
|
3395
3383
|
(() => {
|
|
3396
|
-
var e = Vi(),
|
|
3397
|
-
return P(e, () =>
|
|
3384
|
+
var e = Vi(), n = e.firstChild;
|
|
3385
|
+
return P(e, () => t().opacity ?? Z, n), e;
|
|
3398
3386
|
})()
|
|
3399
3387
|
];
|
|
3400
3388
|
}
|
|
3401
|
-
}),
|
|
3389
|
+
}), s), M(() => ({
|
|
3402
3390
|
e: L([
|
|
3403
3391
|
"value-editor",
|
|
3404
|
-
|
|
3405
|
-
{ apart:
|
|
3392
|
+
t().kind,
|
|
3393
|
+
{ apart: i.isApart }
|
|
3406
3394
|
]),
|
|
3407
|
-
t:
|
|
3395
|
+
t: i.text(e)
|
|
3408
3396
|
}), ({ e, t }, n) => {
|
|
3409
|
-
A(
|
|
3410
|
-
}),
|
|
3397
|
+
A(a, e, n?.e), t !== n?.t && z(a, "title", t);
|
|
3398
|
+
}), a;
|
|
3411
3399
|
}
|
|
3412
3400
|
};
|
|
3413
|
-
Y =
|
|
3401
|
+
Y = o(Zi), f(Y, 2, "isHere", Ji, X), f(Y, 2, "isOpen", qi, X), f(Y, 1, "change", Ki, X), f(Y, 1, "command", Gi, X), f(Y, 13, "vocabulary", Xi, X), f(Y, 13, "elementSetup", Yi, X), m(Y, X), c(X, "UIThemeToken"), s(X, "vocabulary", h(Y, 8, X, vi)), h(Y, 11, X), s(X, "elementSetup", h(Y, 12, X, {
|
|
3414
3402
|
styleSheets: { "theme-token": yi },
|
|
3415
3403
|
delegatesFocus: !1
|
|
3416
|
-
})),
|
|
3404
|
+
})), h(Y, 15, X);
|
|
3417
3405
|
var Qi = X;
|
|
3418
3406
|
function sameValue(e, t) {
|
|
3419
3407
|
return e.text === t.text && e.hex === t.hex && e.opacity === t.opacity && JSON.stringify(e.mix) === JSON.stringify(t.mix);
|
|
3420
3408
|
}
|
|
3421
|
-
|
|
3409
|
+
c(sameValue, "sameValue");
|
|
3422
3410
|
function asWritten(e) {
|
|
3423
3411
|
return e === na || !/^[\w-]+(?:\.[\w-]+)+$/.test(e) ? e : `{${e}}`;
|
|
3424
3412
|
}
|
|
3425
|
-
|
|
3413
|
+
c(asWritten, "asWritten");
|
|
3426
3414
|
var $i = "●", ea = "○", ta = "↳", na = "transparent", Z = 100, ra = 48, ia = "#000000";
|
|
3427
3415
|
ve(["click"]);
|
|
3428
|
-
|
|
3429
|
-
//#region src/components/ui-theme-editor/UIColorChip.en.ts
|
|
3416
|
+
// src/components/ui-theme-editor/UIColorChip.en.ts
|
|
3430
3417
|
var aa = {
|
|
3431
3418
|
tag: "ui-color-chip",
|
|
3432
3419
|
icon: "tint",
|
|
@@ -3440,6 +3427,7 @@ var aa = {
|
|
|
3440
3427
|
],
|
|
3441
3428
|
skeleton: "inline 1.4 x 1.4",
|
|
3442
3429
|
noun: "colour chip",
|
|
3430
|
+
partOfSpeech: "property",
|
|
3443
3431
|
description: "A colour chip shows one colour, as a small rounded square: read-only, its value in its tooltip.",
|
|
3444
3432
|
attributes: [
|
|
3445
3433
|
{
|
|
@@ -3475,7 +3463,7 @@ var aa = {
|
|
|
3475
3463
|
}],
|
|
3476
3464
|
states: [],
|
|
3477
3465
|
texts: []
|
|
3478
|
-
}, oa = "@layer ui.components.color-chip.types{:host{vertical-align:middle;--_ui-color-chip-size:var(--ui-color-chip-size,1.4em);--_ui-color-chip-radius:var(--ui-color-chip-radius,.35em);line-height:0;display:inline-block}.color-chip{inline-size:var(--_ui-color-chip-size);block-size:var(--_ui-color-chip-size);border-radius:var(--_ui-color-chip-radius);background:linear-gradient(var(--_ui-color-chip-color), var(--_ui-color-chip-color)), repeating-conic-gradient(#c8c8c8 0 25%, #fff 0 50%) 0 0 / .6em .6em;display:inline-block;box-shadow:inset 0 0 0 1px light-dark(#00000024,#ffffff3d)}.color-chip.light{color-scheme:light}.color-chip.dark{color-scheme:dark}}", sa = /* @__PURE__ */ B("<span role=img>"), ca, la, ua, Q, $ = class _UIColorChip extends (ua =
|
|
3466
|
+
}, oa = "@layer ui.components.color-chip.types{:host{vertical-align:middle;--_ui-color-chip-size:var(--ui-color-chip-size,1.4em);--_ui-color-chip-radius:var(--ui-color-chip-radius,.35em);line-height:0;display:inline-block}.color-chip{inline-size:var(--_ui-color-chip-size);block-size:var(--_ui-color-chip-size);border-radius:var(--_ui-color-chip-radius);background:linear-gradient(var(--_ui-color-chip-color), var(--_ui-color-chip-color)), repeating-conic-gradient(#c8c8c8 0 25%, #fff 0 50%) 0 0 / .6em .6em;display:inline-block;box-shadow:inset 0 0 0 1px light-dark(#00000024,#ffffff3d)}.color-chip.light{color-scheme:light}.color-chip.dark{color-scheme:dark}}", sa = /* @__PURE__ */ B("<span role=img>"), ca, la, ua, Q, $ = class _UIColorChip extends (ua = d, la = [ie], ca = [ae], ua) {
|
|
3479
3467
|
get chipName() {
|
|
3480
3468
|
return this.label || this.color || "";
|
|
3481
3469
|
}
|
|
@@ -3493,13 +3481,12 @@ var aa = {
|
|
|
3493
3481
|
}), t;
|
|
3494
3482
|
}
|
|
3495
3483
|
};
|
|
3496
|
-
Q =
|
|
3484
|
+
Q = o(ua), f(Q, 13, "vocabulary", la, $), f(Q, 13, "elementSetup", ca, $), m(Q, $), c($, "UIColorChip"), s($, "vocabulary", h(Q, 8, $, aa)), h(Q, 11, $), s($, "elementSetup", h(Q, 12, $, {
|
|
3497
3485
|
styleSheets: { "color-chip": oa },
|
|
3498
3486
|
delegatesFocus: !1
|
|
3499
|
-
})),
|
|
3487
|
+
})), h(Q, 15, $);
|
|
3500
3488
|
var da = $;
|
|
3501
3489
|
_r.define(), Qi.define(), da.define();
|
|
3502
|
-
//#endregion
|
|
3503
3490
|
export { gr as DOMThemeEditorElement, be as PageBridge, D as SavedTheme, E as ThemeDraft, T as ThemeTokens, V as TokenColor, De as TokenTree, _r as UIThemeEditor };
|
|
3504
3491
|
|
|
3505
3492
|
//# sourceMappingURL=ui-theme-editor.js.map
|