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-emoji.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-emoji.js","names":["E.LoadOnce","this","part={this.partForName(\"emoji\")}","role={this.isLabelled ? \"img\" : void 0}","aria-label={this.isLabelled ? this.label : void 0}","aria-hidden={this.label === \"\" ? \"true\" : void 0}","<span\n class={this.rootClass}\n part={this.partForName(\"emoji\")}\n role={this.isLabelled ? \"img\" : void 0}\n aria-label={this.isLabelled ? this.label : void 0}\n aria-hidden={this.label === \"\" ? \"true\" : void 0}\n >\n {this.emoji}\n </span>","E.UIComponent","E.proto","E.protoMerged","E.state","E.onChange","E.untracked","_$readShallow","_$setAttribute","__name","emojiCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","__decoratorStart","first","name","LETTER","DIGIT_CHUNK","DEFAULT_SET","EmojiData","names","set","RootSettings","element","COLONS","CAMEL","SPACES","SEPARATORS","key","known","chunk","SETS","list","loads","sets","emoji","LoadOnce","data","loose","cache","looseCache","id","own","LOADERS","path","emojiVocabulary","UIEmoji_default","_tmpl$","_load_dec","_onNameChanged_dec","_emoji_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_emoji","_UIEmoji","UIComponent","proto","protoMerged","state","onChange","untracked","isConnected","attributes","html","tag","match","NAME_ATTRIBUTE","_self$","_el$","insert","effect","readShallow","className","_p$","t","setAttribute","a","o","i","request","UIEmoji"],"sources":["../src/components/ui-emoji/UIEmoji.types.ts","../src/components/ui-emoji/EmojiData.ts","../src/components/ui-emoji/UIEmoji.en.ts","../src/components/ui-emoji/UIEmoji.css?inline","../src/components/ui-emoji/UIEmoji.tsx","../src/components/ui-emoji/index.ts"],"sourcesContent":["/**\n * What `<ui-emoji>`'s data and the script that writes it share.\n * - Plain data and pure functions, no imports: node loads it (`scripts/gen-emoji.ts`), and so does the page\n * (`EmojiData`).\n */\n\n/**\n * Chunk key of a NORMALIZED emoji name (`EmojiData.normalize()`): its first letter, else `0`.\n * - ONE rule for both sides: `yarn gen:emoji` writes each chunk, `data/<set>/<key>.json`, and `EmojiData` loads the\n * chunk a name is in.\n * - e.g. `smile` => `s`, `100` => `0`, `8ball` => `0`\n */\nexport function emojiChunkFor(name: string): string {\n const first = name[0] ?? \"\"\n return LETTER.test(first) ? first : DIGIT_CHUNK\n}\n\n/** A chunk letter. */\nconst LETTER = /^[a-z]$/\n\n/** Chunk of names starting with anything but a letter. */\nconst DIGIT_CHUNK = \"0\"\n","import { E } from \"spell/ui/core\"\nimport { emojiChunkFor } from \"./UIEmoji.types\"\n\n// Above the class: the static `set` reads it while the class is defined\n/** The name set used until told otherwise. */\nconst DEFAULT_SET = \"cldr\"\n\n/****************\n * ### `EmojiData`\n * Emoji names => native Unicode emoji, loaded lazily in chunks, per NAME SET.\n * - Name sets (never merged): `cldr`, the default (CLDR shortcodes, every emoji `emojibase-data` names:\n * `thumbs_up`), and `fomantic` (Fomantic's own names with Fomantic's meanings: `thumbsup`, `smile`, `dog` = 🐶).\n * A translated set is another value of `names` (`es`, from emojibase's `es` data; see `notes/translation.md`).\n * - Which set: per `<ui-root emoji=\"fomantic\">` for its subtree (`setFor(element)`, through `RootSettings`:\n * the nearest root that sets one), else the PAGE's: `EmojiData.use(\"fomantic\")` from JS, `cldr` by default.\n * Each set keeps its own loaded names, so two roots on one page can use different sets. A page switch affects LATER\n * lookups only: an emoji already drawn keeps its glyph (a root's change redraws its own, `RootSettings.generation`).\n * - Data: `./data/<set>/<chunk>.json`, one per first letter of the name (`0` for a digit),\n * generated by `scripts/gen-emoji.ts` from `emojibase-data` (a dev-only dependency) and Fomantic's `@emoji-map`;\n * a chunk is at most ~5 KB gzip.\n * - Loaded with `import()` on first use of a name in that chunk: nothing is in `core` or in the emoji family's\n * own chunk, and a page drawing `smile` fetches `s.json` only. The module system is the cache;\n * a failed load is a miss until the next `get()` (no retry storm: one import per chunk at a time).\n * - STATIC throughout: ONE emoji cache per page, shared by every `<ui-emoji>` and the static server render,\n * so each chunk loads once, whoever asks.\n * - Import graph: library-neutral apart from `E.RootSettings` (core), and no rendering.\n * The family barrel exports it, for pages that pick a set or register names.\n ****************/\nexport class EmojiData {\n /**\n * Where a chunk's names come from instead of this module's own lazy `import()`s: `(set, chunk) => names`.\n * - For a build that can't load ES modules lazily, e.g. the docs' single-file bundle on `file://`,\n * which loads each chunk as a classic `<script>` (`epic/src/tools/bundle-spell-ui.js`).\n * Set it before the first lookup.\n */\n static chunkLoader?: (set: string, chunk: string) => Promise<Record<string, string>>\n\n ////////////////\n // ## The page's name set\n ////////////////\n\n /** The page's name set: `cldr` unless `use()` says otherwise. */\n static get names(): string {\n return EmojiData.set\n }\n\n /** The PAGE's name set: `use()`'s, else the default. */\n private static set: string = DEFAULT_SET\n\n /**\n * Use name set `names` (`cldr` or `fomantic`; an unknown one means the default) for every LATER lookup on the page\n * (outside a `<ui-root emoji>`). Loaded names of every set stay; `register()`ed names apply to all.\n */\n static use(names: string | undefined) {\n EmojiData.set = EmojiData.validSet(names)\n }\n\n /** Back to the default set, every loaded name forgotten. For tests and hot reload. */\n static reset() {\n EmojiData.set = DEFAULT_SET\n EmojiData.sets.clear()\n EmojiData.loads.forget()\n }\n\n /** The set `element` draws from: its nearest `<ui-root emoji>`'s (`RootSettings`), else the page's. */\n static setFor(element: Element): string {\n const set = E.RootSettings.nearest(element, \"emoji\")\n return set === undefined ? EmojiData.set : EmojiData.validSet(set)\n }\n\n ////////////////\n // ## Names\n ////////////////\n\n /**\n * Canonical form of a name as authors write it: trimmed, Fomantic's `:colons:` stripped,\n * camelCase split (`thumbsUp`, from JS), lower case, runs of spaces => `_` (`Thumbs Up` ~== `thumbs_up`).\n * Dashes stay: some names have them (`blond-haired_woman`); `loose()` drops them for the fallback.\n */\n static normalize(name: string): string {\n return name.trim().replace(COLONS, \"\").trim().replace(CAMEL, \"$1_$2\").toLowerCase().replace(SPACES, \"_\")\n }\n\n /**\n * A NORMALIZED name with no separators at all (`thumbsup`, `thumbs-up` => `thumbsup`): the fallback key,\n * so a name works however its words are joined. In the data, names that differ only in separators mean the same\n * emoji, except Fomantic's `icecream` (see `EmojiSetData.looseCache`).\n */\n static loose(name: string): string {\n return name.replace(SEPARATORS, \"\")\n }\n\n ////////////////\n // ## Lookups\n ////////////////\n\n /** The emoji for `name` in `set` (default the page's) if it's already known (loaded or registered). Synchronous. */\n static peek(name: string | undefined, set: string = EmojiData.set): string | undefined {\n return name ? EmojiData.emojiFor(EmojiData.normalize(name), set) : undefined\n }\n\n /**\n * The emoji for `name` in `set` (default the page's), loading its chunk if needed; `undefined` for an unknown name.\n * - NEVER rejects.\n * - SIDE EFFECT: caches the whole chunk.\n */\n static async get(name: string | undefined, set: string = EmojiData.set): Promise<string | undefined> {\n if (!name) return undefined\n const key = EmojiData.normalize(name)\n const known = EmojiData.emojiFor(key, set)\n if (known !== undefined || !key) return known\n const chunk = emojiChunkFor(key)\n if (!EmojiData.dataFor(set).loaded.has(chunk)) await EmojiData.load(set, chunk)\n return EmojiData.emojiFor(key, set)\n }\n\n /**\n * Load the chunks of every name in `names`, in each of `sets` (default: every set that ships),\n * so later `peek()`s find them synchronously.\n * - NEVER rejects.\n * - For the static server render (`spell/ui/static`), which is synchronous: see `UIEmoji.preload()`.\n */\n static async preload(names: Iterable<string>, sets: Iterable<string> = SETS): Promise<void> {\n const list = [...new Set(names)]\n const loads: Promise<unknown>[] = []\n for (const set of sets) for (const name of list) loads.push(EmojiData.get(name, set))\n await Promise.all(loads)\n }\n\n /** Add (or override) one emoji without a request, e.g. an app's own name for a sequence. Applies to any set. */\n static register(name: string, emoji: string) {\n const key = EmojiData.normalize(name)\n EmojiData.registered.set(key, emoji)\n EmojiData.registeredLoose.set(EmojiData.loose(key), emoji)\n }\n\n ////////////////\n // ## Internal\n ////////////////\n\n /** Set => its loaded names (`EmojiSetData`). */\n private static readonly sets = new Map<string, EmojiSetData>()\n\n /** `register()`ed names: they survive a switch and apply to any set, ahead of its own names. */\n private static readonly registered = new Map<string, string>()\n\n /** The same, keyed by `loose()`. */\n private static readonly registeredLoose = new Map<string, string>()\n\n /** `<set>/<chunk>` => its load, so each chunk is requested once; a failure is forgotten. */\n private static readonly loads = new E.LoadOnce<string, void>({ failures: \"forgotten\" })\n\n /** `set`'s loaded names, created on first use. */\n private static dataFor(set: string): EmojiSetData {\n let data = EmojiData.sets.get(set)\n if (!data) {\n data = { cache: new Map(), looseCache: new Map(), loaded: new Set() }\n EmojiData.sets.set(set, data)\n }\n return data\n }\n\n /** A NORMALIZED name's emoji in `set`: registered first, then the exact name, else the same words joined any way. */\n private static emojiFor(key: string, set: string): string | undefined {\n const { cache, looseCache } = EmojiData.dataFor(set)\n const loose = EmojiData.loose(key)\n return (\n EmojiData.registered.get(key) ?? cache.get(key) ?? EmojiData.registeredLoose.get(loose) ?? looseCache.get(loose)\n )\n }\n\n /** `names` if it is a set we ship data for, else the default. */\n private static validSet(names: string | undefined): string {\n const set = names?.trim().toLowerCase()\n return set && SETS.has(set) ? set : DEFAULT_SET\n }\n\n /**\n * Load chunk `chunk` of `set` once.\n * - NEVER rejects: a failure is forgotten, so a later `get()` tries again.\n */\n private static load(set: string, chunk: string): Promise<void> {\n const id = `${set}/${chunk}`\n const own = LOADERS[`./data/${id}.json`]\n if (!own) return Promise.resolve()\n const load = EmojiData.loads.get(id, async () => {\n const names = EmojiData.chunkLoader ? await EmojiData.chunkLoader(set, chunk) : (await own()).default\n const { cache, looseCache, loaded } = EmojiData.dataFor(set)\n for (const [name, emoji] of Object.entries(names)) {\n if (!cache.has(name)) cache.set(name, emoji)\n const loose = EmojiData.loose(name)\n if (!looseCache.has(loose)) looseCache.set(loose, emoji)\n }\n loaded.add(chunk)\n })\n return load.catch(() => undefined)\n }\n}\n\n/**\n * One name set's loaded names.\n * - `looseCache` is the fallback when the exact name misses; first name in wins -- chunks list names sorted,\n * and `_` sorts before letters, so the underscored spelling wins a clash. In `cldr` there is none; in `fomantic`,\n * `ice-cream` / `IceCream` ~== `ice_cream` 🍨, while an exact `icecream` stays 🍦.\n */\ntype EmojiSetData = {\n /** name => emoji */\n readonly cache: Map<string, string>\n /** `loose()` name => emoji: the fallback when the exact name misses */\n readonly looseCache: Map<string, string>\n /** chunks loaded */\n readonly loaded: Set<string>\n}\n\n/**\n * One loader per data chunk (`./data/cldr/a.json` ...), from `import.meta.glob`.\n * - Why not ``import(`./data/${set}/${chunk}.json`)``: a variable path makes Rolldown add its dynamic-import helper\n * to this family's chunk (`yarn measure`'s `coreOutsideCore` check); the glob compiles to one static `import()`\n * per file, with no helper.\n */\nconst LOADERS = import.meta.glob<{ default: Record<string, string> }>(\"./data/*/*.json\")\n\n/** The name sets that ship, from the data folders. */\nconst SETS = new Set(Object.keys(LOADERS).map((path) => path.split(\"/\")[2]!))\n\n/** Fomantic's `:name:` colons. */\nconst COLONS = /^:+|:+$/g\n\n/** Runs of whitespace inside a name. */\nconst SPACES = /\\s+/g\n\n/** A camelCase word boundary: a lower-case letter or digit, then a capital. */\nconst CAMEL = /([a-z0-9])([A-Z])/g\n\n/** Every way a name's words may be joined. */\nconst SEPARATORS = /[_-]/g\n","/**\n * The English vocabulary of `<ui-emoji>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become class words (`ClassBuilder`):\n * `<ui-emoji name=\"smile\" size=\"large\" link>` => `ui large link emoji`.\n * Fomantic's own markup is `<em data-emoji=\":smile:\" class=\"large link\">` (no `ui`, no noun),\n * drawing a Twemoji SVG from a CDN; here the glyph is the NATIVE Unicode character,\n * so the grammar gets its noun back.\n * - `name`: a name from the page's NAME SET, one at a time: CLDR shortcodes (`thumbs_up`, the default) or Fomantic's\n * names (Discord / JoyPixels shortcodes: `smile`, `thumbsup`, `flag_us`), picked per subtree with\n * `<ui-root emoji>` (or `EmojiData.use()`). With or without `:colons:`, any case, spaces ~== `_`.\n * Resolved by `EmojiData` from lazily loaded chunks, generated by `scripts/gen-emoji.ts`.\n * - Accessible name, decided:\n * - default: the character is plain TEXT, so assistive tech reads its Unicode (CLDR) name in the READER's\n * language (\"grinning face with smiling eyes\") -- better than an English shortcode, and free\n * - `label=\"...\"`: `role=img` + `aria-label`, for an emoji that means something else in context (\"Approved\")\n * - `label=\"\"` (bare): decorative, `aria-hidden`\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `emojiVocabulary`\n * The names of `<ui-emoji>`, an emoji: `<span class=\"ui [size] [keyOnly ...] emoji\" part=\"emoji\">😄</span>`.\n ****************/\nexport const emojiVocabulary = {\n tag: \"ui-emoji\",\n icon: \"smile outline\",\n topics: [\"icons\", \"text\", \"media\", \"elements\"],\n aka: [\"emoticon\", \"smiley\", \"unicode emoji\"],\n skeleton: \"inline 1 x 1\",\n noun: \"emoji\",\n description: \"An emoji is a glyph used to represent something else.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n values: [\"small\", \"medium\", \"large\", \"big\"],\n description:\n \"Fomantic's emoji sizes against the surrounding text: `small` (1.5em), `large` (6em), `big` (7.5em); \" +\n \"`medium` is the unsized default (1em), NOT Fomantic's 3em.\"\n },\n {\n name: \"name\",\n group: \"name\",\n kind: \"string\",\n description:\n \"The emoji's name in the page's name set: by default its CLDR shortcode (Unicode's name, `thumbs_up`, \" +\n '`grinning_face_with_smiling_eyes`, `flag_united_states`); with `<ui-root emoji=\"fomantic\">`, ' +\n \"Fomantic's name (`thumbsup`, `smile`, `flag_us`). The words may be joined any way: `thumbs up`, \" +\n \"`thumbs-up`, `thumbsUp`, `thumbsup` (and `:smile:`, any case).\"\n },\n {\n name: \"label\",\n group: \"name\",\n kind: \"string\",\n description:\n \"Accessible name (`role=img`), when the emoji stands for something else; bare `label` hides it \" +\n \"(decorative). Default: the character's own Unicode name, read by assistive tech.\"\n },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n // the words are the classes: no key after them (`ClassBuilder`)\n classes: {},\n values: [\"link\"],\n description:\n \"The look: `link` (clickable look: the cursor controls have; the page adds the control). It was the `link` \" +\n \"switch, which can't stay an old name: `link` is where a click goes now, on every tag.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Dimmed.\" },\n { name: \"loading\", group: \"states\", kind: \"keyOnly\", description: \"Spins (a still glyph under reduced motion).\" }\n ],\n events: [],\n slots: [],\n parts: [{ name: \"emoji\", description: \"The emoji glyph box.\" }],\n states: [\n { name: \"disabled\", description: \"Dimmed.\" },\n { name: \"loading\", description: \"Spinning.\" }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-emoji>`: a port of Fomantic's `emoji.less` + `emoji.variables`\n * (the box, size and state rules).\n * - It styles the component's shadow DOM, in Fomantic's class names on a semantic element:\n * `<span class=\"ui [size] [keyOnly ...] emoji\" part=\"emoji\" [role=img aria-label | aria-hidden]>😄</span>`\n * - the glyph is the Unicode emoji `EmojiData` resolves from `name`;\n * an unknown name draws an EMPTY box, which keeps its line box\n * - a `<span>`, where Fomantic used `<em>`: an emoji isn't stress emphasis\n * - The DOM element is `display: contents` (`:host`): the span IS the inline box.\n *\n * - The drawing depends on the platform's EMOJI FONT (as with `<ui-flag>`):\n * `--ui-emoji-font-family` puts the colour emoji fonts first,\n * and `font-variant-emoji: emoji` asks for emoji presentation even without U+FE0F.\n *\n * - Sizes are relative to the SURROUNDING text (em), with Fomantic's emoji ladder\n * (`1.5em * n`: `small` 1.5em, `large` 6em, `big` 7.5em):\n * the box points `--ui-size-*` at `--ui-emoji-size-*`, so the generic `.ui.large { --ui-scale }` remap\n * picks the emoji ratio. The element resets `--ui-scale`, so an emoji in a large button isn't scaled twice.\n * - `medium`: the grammar makes `size=\"medium\"` a no-op (the unsized 1em emoji),\n * whereas Fomantic's medium emoji is 3em.\n * The `.medium` rule is ported for STATIC markup; the component never writes it.\n *\n * - The public tokens (`--ui-emoji-*`) are NEVER declared here.\n * The token block gives each a private alias, `--_ui-emoji-opacity: var(--ui-emoji-opacity, 1)`,\n * and every rule reads the alias. So a value set on `:root`, an ancestor, the element,\n * `::part(emoji)` or in the app's style sheet reaches the box (`notes/theming.md`, \"Component tokens\").\n *\n * - `loading` spins the glyph; under `prefers-reduced-motion`, the foundation (`reset.css`) stops it.\n *\n * - Left out, on purpose:\n * - Fomantic's 3,800 per-emoji `background-image` rules and the Twemoji CDN:\n * the glyph is text, so there's no request and no per-emoji CSS.\n * (An SVG set, the same everywhere, could come back as an opt-in registry.)\n * - `em[data-emoji]` selectors: Fomantic's markup draws nothing without its sprites, so it isn't supported\n * - `speak: none`: obsolete; the component decides what assistive tech hears (see the vocabulary)\n */\n\n@layer ui.components.emoji.types, ui.components.emoji.content, ui.components.emoji.variations, ui.components.emoji.states;\n\n@keyframes ui-emoji-spin {\n to {\n rotate: 1turn;\n }\n}\n\n/*******************************\n Emoji\n*******************************/\n\n@layer ui.components.emoji.types {\n /* The DOM element: no box of its own; the inner span is the inline box. */\n :host {\n display: contents;\n /* Don't inherit a parent component's scale: emoji follow the surrounding TEXT. */\n --ui-scale: initial;\n }\n\n /* Tokens: one per `emoji.variables` entry that still matters, each the private alias of its public token. */\n .ui.emoji {\n --_ui-emoji-font-family: var(--ui-emoji-font-family, var(--ui-font-family-emoji), var(--ui-font-family));\n --_ui-emoji-opacity: var(--ui-emoji-opacity, 1);\n --_ui-emoji-line-height: var(--ui-emoji-line-height, 1);\n --_ui-emoji-loading-duration: var(--ui-emoji-loading-duration, 2s);\n --_ui-emoji-disabled-opacity: var(--ui-emoji-disabled-opacity, var(--ui-disabled-opacity));\n /* Fomantic's emoji ladder (`1.5em * n`), relative to the surrounding text. */\n --_ui-emoji-size-small: var(--ui-emoji-size-small, 1.5);\n /* Private on purpose: the element never emits `medium` (the default size), only static class grammar reads it. */\n --_ui-emoji-size-medium: 3;\n --_ui-emoji-size-large: var(--ui-emoji-size-large, 6);\n --_ui-emoji-size-big: var(--ui-emoji-size-big, 7.5);\n /* The generic size remap (`sizes.css`) resolves `--ui-size-<size>` HERE, so it picks the emoji ladder. */\n --ui-size-small: var(--_ui-emoji-size-small);\n --ui-size-large: var(--_ui-emoji-size-large);\n --ui-size-big: var(--_ui-emoji-size-big);\n }\n\n /* Emoji: one glyph, one line tall. */\n .ui.emoji {\n display: inline-block;\n font-family: var(--_ui-emoji-font-family);\n font-size: calc(1em * var(--ui-scale, 1));\n font-style: normal;\n font-weight: var(--ui-font-weight-normal);\n font-variant-emoji: emoji;\n line-height: var(--_ui-emoji-line-height);\n text-decoration: none;\n white-space: nowrap;\n opacity: var(--_ui-emoji-opacity);\n backface-visibility: hidden;\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.emoji.variations {\n /* Sizes: a sized emoji centres on the text. */\n .ui:is(.small, .medium, .large, .big).emoji {\n vertical-align: middle;\n }\n /* Static markup only: `sizes.css` makes `.medium` a no-op; Fomantic's medium emoji is 3em. */\n .ui.medium.emoji {\n --ui-scale: var(--_ui-emoji-size-medium);\n }\n\n /* Link: a clickable look, unless disabled. */\n .ui.link.emoji:not(.disabled) {\n cursor: var(--ui-control-cursor);\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.emoji.states {\n .ui.disabled.emoji {\n opacity: var(--_ui-emoji-disabled-opacity);\n }\n .ui.loading.emoji {\n animation: ui-emoji-spin var(--_ui-emoji-loading-duration) linear infinite;\n }\n}\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { EmojiData } from \"./EmojiData\"\nimport { emojiVocabulary } from \"./UIEmoji.en\"\n\nimport emojiCSS from \"./UIEmoji.css?inline\"\n\n/****************\n * ### `UIEmoji`\n * The component behind `<ui-emoji>`: an emoji, drawn as the native Unicode character.\n *\n * - Its shadow DOM is one span, `<span class=\"ui [size] [keyOnly ...] emoji\" part=\"emoji\">😄</span>`.\n *\n * - The glyph is the Unicode emoji `EmojiData` resolves from `name`,\n * loading that name's data chunk on first use.\n * - A name already loaded (or `EmojiData.register()`ed) draws in the first frame.\n * - A later `name` wins over an earlier, slower load.\n * - An unknown name: an empty box with no role (an unnamed `role=img` fails axe).\n *\n * - The accessible name (see the vocabulary): the character, as text, by default;\n * `label=\"…\"` => `role=img` + `aria-label`; a bare `label` => `aria-hidden`.\n * - `link` is only a LOOK: the emoji takes no focus and sends nothing of its own;\n * wrap it in a `<button>` or `<a>`.\n ****************/\nexport class UIEmoji extends E.UIComponent<typeof emojiVocabulary> {\n @E.proto static vocabulary = emojiVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { emoji: emojiCSS },\n delegatesFocus: false,\n // `disabled`: only a look\n disabled: \"its own\",\n // `loading`: it spins\n loading: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n /** The glyph, `undefined` while loading or for an unknown name. */\n @E.state accessor emoji: string | undefined = EmojiData.peek(this.name, EmojiData.setFor(this.domElement))\n\n /** Request counter, so a slower earlier load can't win. */\n private latestRequest = 0\n\n /**\n * Loads the emoji for `name`, and again when connected (it may have moved under another root)\n * and when any root's settings change (`rootSettingsGeneration`).\n */\n @E.onChange(\"name\", \"isConnected\", \"rootSettingsGeneration\")\n protected onNameChanged(name: string | undefined, isConnected: boolean) {\n if (isConnected || !this.latestRequest) void this.load(name)\n }\n\n /**\n * Bumped whenever any `<ui-root>`'s settings change (page-wide): a member, so `@E.onChange` can follow it.\n * - `protected`, not `private`: only `@E.onChange` reads it, by name, and TypeScript calls a private one unused.\n */\n protected get rootSettingsGeneration(): number {\n return E.RootSettings.generation\n }\n\n /**\n * Load every emoji `html` names (`<ui-emoji name=\"...\">`), so a static server render of it draws them.\n * - MUST be awaited before `StaticRender.fragment(html)` / `page(html)` (`spell/ui/static`):\n * that render is synchronous and draws only names already loaded (`EmojiData.peek()`);\n * a browser loads them after first paint instead.\n * - In every name set that ships: which one an element uses depends on its `<ui-root emoji>`, unknown in markup.\n * - `tag`: the tag the family is defined under, if not its own.\n * - STATIC: the server render calls it before any element exists.\n */\n static preload(html: string, tag: string = emojiVocabulary.tag): Promise<void> {\n const names: string[] = []\n for (const [, attributes = \"\"] of html.matchAll(new RegExp(`<${tag}(\\\\s[^>]*)?>`, \"gi\"))) {\n const match = NAME_ATTRIBUTE.exec(attributes)\n const name = match && (match[1] ?? match[2] ?? match[3])\n if (name) names.push(name)\n }\n return EmojiData.preload(names)\n }\n\n render(): JSX.Element {\n return (\n <span\n class={this.rootClass}\n part={this.partForName(\"emoji\")}\n role={this.isLabelled ? \"img\" : undefined}\n aria-label={this.isLabelled ? this.label : undefined}\n aria-hidden={this.label === \"\" ? \"true\" : undefined}\n >\n {this.emoji}\n </span>\n )\n }\n\n /** Named by `label` (and there's a glyph to name)? */\n private get isLabelled(): boolean {\n return !!this.label && !!this.emoji\n }\n\n /** Resolve `name` in the set this element sees; writes only if it is still the latest request. */\n @E.untracked\n private async load(name: string | undefined) {\n const request = ++this.latestRequest\n const emoji = await EmojiData.get(name, EmojiData.setFor(this.domElement))\n if (this.latestRequest === request && this.emoji !== emoji) this.emoji = emoji\n }\n}\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIEmoji extends E.AttributeValues<typeof emojiVocabulary> {}\n\n/**\n * A start tag's `name=\"...\"` attribute, any quoting: `UIEmoji.preload()` reads the names a page uses from its markup.\n * - Groups 1-3: the value in double, single or no quotes.\n */\nconst NAME_ATTRIBUTE = /(?:^|\\s)name\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\\s\"'=<>`]+))/i\n","/**\n * The emoji family: defines `<ui-emoji>` and exports its component, `UIEmoji`.\n * - SIDE EFFECT: importing it defines the tag.\n * - Also the library's `spell/ui/ui-emoji` entry (its size is in `notes/report.md`).\n * - It exports `EmojiData` too, for apps that pick the page's name set\n * (`EmojiData.use(\"fomantic\")`; for a subtree, `<ui-root emoji=\"fomantic\">`),\n * register their own names or preload a name (`EmojiData.get(\"smile\")`).\n * Its data chunks (`data/<set>/*.json`) load lazily, one per first letter of a name.\n */\n\nimport { UIEmoji } from \"./UIEmoji\"\nimport { EmojiData } from \"./EmojiData\"\n\nUIEmoji.define()\n\nexport { UIEmoji, EmojiData }\n"],"mappings":";;;;AAYA,SAAgB,cAAc,GAAsB;CAClD,IAAMwB,IAAQC,EAAK,MAAM;CACzB,OAAOC,EAAO,KAAKF,CAAK,IAAIA,IAAQG;AACtC;AAGA,IAAMD,IAAS,WAGTC,IAAc,KChBdC,IAAc,QAuBPC,IAAb,MAAa,UAAU;CAOrB,OAAO;CAOP,WAAW,QAAgB;EACzB,OAAO,UAAU;CACnB;CAGA,OAAe,MAAcD;CAM7B,OAAO,IAAI,GAA2B;EACpC,UAAU,MAAM,UAAU,SAASE,CAAK;CAC1C;CAGA,OAAO,QAAQ;EAGb,AAFA,UAAU,MAAMF,GAChB,UAAU,KAAK,MAAM,GACrB,UAAU,MAAM,OAAO;CACzB;CAGA,OAAO,OAAO,GAA0B;EACtC,IAAMG,IAAAC,EAAqB,QAAQC,GAAS,OAAO;EACnD,OAAOF,MAAQ,KAAA,IAAY,UAAU,MAAM,UAAU,SAASA,CAAG;CACnE;CAWA,OAAO,UAAU,GAAsB;EACrC,OAAON,EAAK,KAAK,CAAC,CAAC,QAAQS,GAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQC,GAAO,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQC,GAAQ,GAAG;CACzG;CAOA,OAAO,MAAM,GAAsB;EACjC,OAAOX,EAAK,QAAQY,GAAY,EAAE;CACpC;CAOA,OAAO,KAAK,GAA0B,IAAc,UAAU,KAAyB;EACrF,OAAOZ,IAAO,UAAU,SAAS,UA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;CAIA,MAAc,KAAK,GAA0B;EAC3C,IAAMqF,IAAU,EAAE,KAAK,eACjB9C,IAAQ,MAAMhB,EAAU,IAAIJ,GAAMI,EAAU,OAAO,KAAK,UAAU,CAAC;EACzE,AAAI,KAAK,kBAAkB8D,KAAW,KAAK,UAAU9C,MAAO,KAAK,QAAQA;CAC3E;AACF;AA/EO,IAAAtB,EAAAwC,CAAA,GAYa,oBAAA,IAAA,QAAA,GAAT5C,EAAA6C,GAAA,GAAS,SAAlBJ,GAZWM,GAYOD,CAAA,GAUlB9C,EAAA6C,GAAA,GAAU,iBADVL,GArBWO,CAAA,GA0EX/C,EAAA6C,GAAA,GAAc,QADdN,GAzEWQ,CAAA,GACF/C,EAAA6C,GAAA,IAAO,cAAhBF,GADWI,CAAA,GAEI/C,EAAA6C,GAAA,IAAO,gBAAtBH,GAFWK,CAAA,GAAN9C,EAAA4C,GAAME,CAAA,GAAsDnD,EAAAmD,GAAA,SAAA,GACxDhD,EADEgD,GACK,cAAa7C,EAApB2C,GAAA,IADEE,GACkBX,CAAA,CAAA,GAApBlC,EAAA2C,GAAA,IADEE,CAAA,GAEIhD,EAFJgD,GAEW,gBAAe7C,EAAtB2C,GAAA,IAFJE,GAE0B;CACnC,aAAa,EAAE,OAAOlD,EAAS;CAC/B,gBAAgB;CAEhB,UAAU;CAEV,SAAS;AACX,CAAA,CAAA,GAPeK,EAAA2C,GAAA,IAFJE,CAAA;AAAN,IAAM0B,IAAN1B,GAuFDY,IAAiB;;;ACnGvBc,EAAQ,OAAO"}
|
|
1
|
+
{"version":3,"file":"ui-emoji.js","names":["E.LoadOnce","this","part={this.partForName(\"emoji\")}","role={this.isLabelled ? \"img\" : void 0}","aria-label={this.isLabelled ? this.label : void 0}","aria-hidden={this.label === \"\" ? \"true\" : void 0}","<span\n class={this.rootClass}\n part={this.partForName(\"emoji\")}\n role={this.isLabelled ? \"img\" : void 0}\n aria-label={this.isLabelled ? this.label : void 0}\n aria-hidden={this.label === \"\" ? \"true\" : void 0}\n >\n {this.emoji}\n </span>","E.UIComponent","E.proto","E.protoMerged","E.state","E.onChange","E.untracked","_$setAttribute","__name","emojiCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","first","name","LETTER","DIGIT_CHUNK","DEFAULT_SET","EmojiData","names","set","RootSettings","element","COLONS","CAMEL","SPACES","SEPARATORS","key","known","chunk","SETS","list","loads","sets","emoji","LoadOnce","data","loose","cache","looseCache","id","own","LOADERS","path","emojiVocabulary","UIEmoji_default","_tmpl$","_load_dec","_onNameChanged_dec","_emoji_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_emoji","_UIEmoji","UIComponent","proto","protoMerged","state","onChange","untracked","isConnected","attributes","html","tag","match","NAME_ATTRIBUTE","_self$","_el$","insert","effect","readShallow","className","_p$","t","setAttribute","a","o","i","request","UIEmoji"],"sources":["../src/components/ui-emoji/UIEmoji.types.ts","../src/components/ui-emoji/EmojiData.ts","../src/components/ui-emoji/UIEmoji.en.ts","../src/components/ui-emoji/UIEmoji.tsx","../src/components/ui-emoji/index.ts"],"sourcesContent":["/**\n * What `<ui-emoji>`'s data and the script that writes it share.\n * - Plain data and pure functions, no imports: node loads it (`scripts/gen-emoji.ts`), and so does the page\n * (`EmojiData`).\n */\n\n/**\n * Chunk key of a NORMALIZED emoji name (`EmojiData.normalize()`): its first letter, else `0`.\n * - ONE rule for both sides: `yarn gen:emoji` writes each chunk, `data/<set>/<key>.json`, and `EmojiData` loads the\n * chunk a name is in.\n * - e.g. `smile` => `s`, `100` => `0`, `8ball` => `0`\n */\nexport function emojiChunkFor(name: string): string {\n const first = name[0] ?? \"\"\n return LETTER.test(first) ? first : DIGIT_CHUNK\n}\n\n/** A chunk letter. */\nconst LETTER = /^[a-z]$/\n\n/** Chunk of names starting with anything but a letter. */\nconst DIGIT_CHUNK = \"0\"\n","import { E } from \"spell/ui/core\"\nimport { emojiChunkFor } from \"./UIEmoji.types\"\n\n// Above the class: the static `set` reads it while the class is defined\n/** The name set used until told otherwise. */\nconst DEFAULT_SET = \"cldr\"\n\n/****************\n * ### `EmojiData`\n * Emoji names => native Unicode emoji, loaded lazily in chunks, per NAME SET.\n * - Name sets (never merged): `cldr`, the default (CLDR shortcodes, every emoji `emojibase-data` names:\n * `thumbs_up`), and `fomantic` (Fomantic's own names with Fomantic's meanings: `thumbsup`, `smile`, `dog` = 🐶).\n * A translated set is another value of `names` (`es`, from emojibase's `es` data; see `notes/translation.md`).\n * - Which set: per `<ui-root emoji=\"fomantic\">` for its subtree (`setFor(element)`, through `RootSettings`:\n * the nearest root that sets one), else the PAGE's: `EmojiData.use(\"fomantic\")` from JS, `cldr` by default.\n * Each set keeps its own loaded names, so two roots on one page can use different sets. A page switch affects LATER\n * lookups only: an emoji already drawn keeps its glyph (a root's change redraws its own, `RootSettings.generation`).\n * - Data: `./data/<set>/<chunk>.json`, one per first letter of the name (`0` for a digit),\n * generated by `scripts/gen-emoji.ts` from `emojibase-data` (a dev-only dependency) and Fomantic's `@emoji-map`;\n * a chunk is at most ~5 KB gzip.\n * - Loaded with `import()` on first use of a name in that chunk: nothing is in `core` or in the emoji family's\n * own chunk, and a page drawing `smile` fetches `s.json` only. The module system is the cache;\n * a failed load is a miss until the next `get()` (no retry storm: one import per chunk at a time).\n * - STATIC throughout: ONE emoji cache per page, shared by every `<ui-emoji>` and the static server render,\n * so each chunk loads once, whoever asks.\n * - Import graph: library-neutral apart from `E.RootSettings` (core), and no rendering.\n * The family barrel exports it, for pages that pick a set or register names.\n ****************/\nexport class EmojiData {\n /**\n * Where a chunk's names come from instead of this module's own lazy `import()`s: `(set, chunk) => names`.\n * - For a build that can't load ES modules lazily, e.g. the docs' single-file bundle on `file://`,\n * which loads each chunk as a classic `<script>` (`epic/src/tools/bundle-spell-ui.js`).\n * Set it before the first lookup.\n */\n static chunkLoader?: (set: string, chunk: string) => Promise<Record<string, string>>\n\n ////////////////\n // ## The page's name set\n ////////////////\n\n /** The page's name set: `cldr` unless `use()` says otherwise. */\n static get names(): string {\n return EmojiData.set\n }\n\n /** The PAGE's name set: `use()`'s, else the default. */\n private static set: string = DEFAULT_SET\n\n /**\n * Use name set `names` (`cldr` or `fomantic`; an unknown one means the default) for every LATER lookup on the page\n * (outside a `<ui-root emoji>`). Loaded names of every set stay; `register()`ed names apply to all.\n */\n static use(names: string | undefined) {\n EmojiData.set = EmojiData.validSet(names)\n }\n\n /** Back to the default set, every loaded name forgotten. For tests and hot reload. */\n static reset() {\n EmojiData.set = DEFAULT_SET\n EmojiData.sets.clear()\n EmojiData.loads.forget()\n }\n\n /** The set `element` draws from: its nearest `<ui-root emoji>`'s (`RootSettings`), else the page's. */\n static setFor(element: Element): string {\n const set = E.RootSettings.nearest(element, \"emoji\")\n return set === undefined ? EmojiData.set : EmojiData.validSet(set)\n }\n\n ////////////////\n // ## Names\n ////////////////\n\n /**\n * Canonical form of a name as authors write it: trimmed, Fomantic's `:colons:` stripped,\n * camelCase split (`thumbsUp`, from JS), lower case, runs of spaces => `_` (`Thumbs Up` ~== `thumbs_up`).\n * Dashes stay: some names have them (`blond-haired_woman`); `loose()` drops them for the fallback.\n */\n static normalize(name: string): string {\n return name.trim().replace(COLONS, \"\").trim().replace(CAMEL, \"$1_$2\").toLowerCase().replace(SPACES, \"_\")\n }\n\n /**\n * A NORMALIZED name with no separators at all (`thumbsup`, `thumbs-up` => `thumbsup`): the fallback key,\n * so a name works however its words are joined. In the data, names that differ only in separators mean the same\n * emoji, except Fomantic's `icecream` (see `EmojiSetData.looseCache`).\n */\n static loose(name: string): string {\n return name.replace(SEPARATORS, \"\")\n }\n\n ////////////////\n // ## Lookups\n ////////////////\n\n /** The emoji for `name` in `set` (default the page's) if it's already known (loaded or registered). Synchronous. */\n static peek(name: string | undefined, set: string = EmojiData.set): string | undefined {\n return name ? EmojiData.emojiFor(EmojiData.normalize(name), set) : undefined\n }\n\n /**\n * The emoji for `name` in `set` (default the page's), loading its chunk if needed; `undefined` for an unknown name.\n * - NEVER rejects.\n * - SIDE EFFECT: caches the whole chunk.\n */\n static async get(name: string | undefined, set: string = EmojiData.set): Promise<string | undefined> {\n if (!name) return undefined\n const key = EmojiData.normalize(name)\n const known = EmojiData.emojiFor(key, set)\n if (known !== undefined || !key) return known\n const chunk = emojiChunkFor(key)\n if (!EmojiData.dataFor(set).loaded.has(chunk)) await EmojiData.load(set, chunk)\n return EmojiData.emojiFor(key, set)\n }\n\n /**\n * Load the chunks of every name in `names`, in each of `sets` (default: every set that ships),\n * so later `peek()`s find them synchronously.\n * - NEVER rejects.\n * - For the static server render (`spell/ui/static`), which is synchronous: see `UIEmoji.preload()`.\n */\n static async preload(names: Iterable<string>, sets: Iterable<string> = SETS): Promise<void> {\n const list = [...new Set(names)]\n const loads: Promise<unknown>[] = []\n for (const set of sets) for (const name of list) loads.push(EmojiData.get(name, set))\n await Promise.all(loads)\n }\n\n /** Add (or override) one emoji without a request, e.g. an app's own name for a sequence. Applies to any set. */\n static register(name: string, emoji: string) {\n const key = EmojiData.normalize(name)\n EmojiData.registered.set(key, emoji)\n EmojiData.registeredLoose.set(EmojiData.loose(key), emoji)\n }\n\n ////////////////\n // ## Internal\n ////////////////\n\n /** Set => its loaded names (`EmojiSetData`). */\n private static readonly sets = new Map<string, EmojiSetData>()\n\n /** `register()`ed names: they survive a switch and apply to any set, ahead of its own names. */\n private static readonly registered = new Map<string, string>()\n\n /** The same, keyed by `loose()`. */\n private static readonly registeredLoose = new Map<string, string>()\n\n /** `<set>/<chunk>` => its load, so each chunk is requested once; a failure is forgotten. */\n private static readonly loads = new E.LoadOnce<string, void>({ failures: \"forgotten\" })\n\n /** `set`'s loaded names, created on first use. */\n private static dataFor(set: string): EmojiSetData {\n let data = EmojiData.sets.get(set)\n if (!data) {\n data = { cache: new Map(), looseCache: new Map(), loaded: new Set() }\n EmojiData.sets.set(set, data)\n }\n return data\n }\n\n /** A NORMALIZED name's emoji in `set`: registered first, then the exact name, else the same words joined any way. */\n private static emojiFor(key: string, set: string): string | undefined {\n const { cache, looseCache } = EmojiData.dataFor(set)\n const loose = EmojiData.loose(key)\n return (\n EmojiData.registered.get(key) ?? cache.get(key) ?? EmojiData.registeredLoose.get(loose) ?? looseCache.get(loose)\n )\n }\n\n /** `names` if it is a set we ship data for, else the default. */\n private static validSet(names: string | undefined): string {\n const set = names?.trim().toLowerCase()\n return set && SETS.has(set) ? set : DEFAULT_SET\n }\n\n /**\n * Load chunk `chunk` of `set` once.\n * - NEVER rejects: a failure is forgotten, so a later `get()` tries again.\n */\n private static load(set: string, chunk: string): Promise<void> {\n const id = `${set}/${chunk}`\n const own = LOADERS[`./data/${id}.json`]\n if (!own) return Promise.resolve()\n const load = EmojiData.loads.get(id, async () => {\n const names = EmojiData.chunkLoader ? await EmojiData.chunkLoader(set, chunk) : (await own()).default\n const { cache, looseCache, loaded } = EmojiData.dataFor(set)\n for (const [name, emoji] of Object.entries(names)) {\n if (!cache.has(name)) cache.set(name, emoji)\n const loose = EmojiData.loose(name)\n if (!looseCache.has(loose)) looseCache.set(loose, emoji)\n }\n loaded.add(chunk)\n })\n return load.catch(() => undefined)\n }\n}\n\n/**\n * One name set's loaded names.\n * - `looseCache` is the fallback when the exact name misses; first name in wins -- chunks list names sorted,\n * and `_` sorts before letters, so the underscored spelling wins a clash. In `cldr` there is none; in `fomantic`,\n * `ice-cream` / `IceCream` ~== `ice_cream` 🍨, while an exact `icecream` stays 🍦.\n */\ntype EmojiSetData = {\n /** name => emoji */\n readonly cache: Map<string, string>\n /** `loose()` name => emoji: the fallback when the exact name misses */\n readonly looseCache: Map<string, string>\n /** chunks loaded */\n readonly loaded: Set<string>\n}\n\n/**\n * One loader per data chunk (`./data/cldr/a.json` ...), from `import.meta.glob`.\n * - Why not ``import(`./data/${set}/${chunk}.json`)``: a variable path makes Rolldown add its dynamic-import helper\n * to this family's chunk (`yarn measure`'s `coreOutsideCore` check); the glob compiles to one static `import()`\n * per file, with no helper.\n */\nconst LOADERS = import.meta.glob<{ default: Record<string, string> }>(\"./data/*/*.json\")\n\n/** The name sets that ship, from the data folders. */\nconst SETS = new Set(Object.keys(LOADERS).map((path) => path.split(\"/\")[2]!))\n\n/** Fomantic's `:name:` colons. */\nconst COLONS = /^:+|:+$/g\n\n/** Runs of whitespace inside a name. */\nconst SPACES = /\\s+/g\n\n/** A camelCase word boundary: a lower-case letter or digit, then a capital. */\nconst CAMEL = /([a-z0-9])([A-Z])/g\n\n/** Every way a name's words may be joined. */\nconst SEPARATORS = /[_-]/g\n","/**\n * The English vocabulary of `<ui-emoji>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), parts and states.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become class words (`ClassBuilder`):\n * `<ui-emoji name=\"smile\" size=\"large\" link>` => `ui large link emoji`.\n * Fomantic's own markup is `<em data-emoji=\":smile:\" class=\"large link\">` (no `ui`, no noun),\n * drawing a Twemoji SVG from a CDN; here the glyph is the NATIVE Unicode character,\n * so the grammar gets its noun back.\n * - `name`: a name from the page's NAME SET, one at a time: CLDR shortcodes (`thumbs_up`, the default) or Fomantic's\n * names (Discord / JoyPixels shortcodes: `smile`, `thumbsup`, `flag_us`), picked per subtree with\n * `<ui-root emoji>` (or `EmojiData.use()`). With or without `:colons:`, any case, spaces ~== `_`.\n * Resolved by `EmojiData` from lazily loaded chunks, generated by `scripts/gen-emoji.ts`.\n * - Accessible name, decided:\n * - default: the character is plain TEXT, so assistive tech reads its Unicode (CLDR) name in the READER's\n * language (\"grinning face with smiling eyes\") -- better than an English shortcode, and free\n * - `label=\"...\"`: `role=img` + `aria-label`, for an emoji that means something else in context (\"Approved\")\n * - `label=\"\"` (bare): decorative, `aria-hidden`\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `emojiVocabulary`\n * The names of `<ui-emoji>`, an emoji: `<span class=\"ui [size] [keyOnly ...] emoji\" part=\"emoji\">😄</span>`.\n ****************/\nexport const emojiVocabulary = {\n tag: \"ui-emoji\",\n icon: \"smile outline\",\n topics: [\"icons\", \"text\", \"media\", \"elements\"],\n aka: [\"emoticon\", \"smiley\", \"unicode emoji\"],\n skeleton: \"inline 1 x 1\",\n noun: \"emoji\",\n partOfSpeech: \"property\",\n description: \"An emoji is a glyph used to represent something else.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n values: [\"small\", \"medium\", \"large\", \"big\"],\n description:\n \"Fomantic's emoji sizes against the surrounding text: `small` (1.5em), `large` (6em), `big` (7.5em); \" +\n \"`medium` is the unsized default (1em), NOT Fomantic's 3em.\"\n },\n {\n name: \"name\",\n group: \"name\",\n kind: \"string\",\n description:\n \"The emoji's name in the page's name set: by default its CLDR shortcode (Unicode's name, `thumbs_up`, \" +\n '`grinning_face_with_smiling_eyes`, `flag_united_states`); with `<ui-root emoji=\"fomantic\">`, ' +\n \"Fomantic's name (`thumbsup`, `smile`, `flag_us`). The words may be joined any way: `thumbs up`, \" +\n \"`thumbs-up`, `thumbsUp`, `thumbsup` (and `:smile:`, any case).\"\n },\n {\n name: \"label\",\n group: \"name\",\n kind: \"string\",\n description:\n \"Accessible name (`role=img`), when the emoji stands for something else; bare `label` hides it \" +\n \"(decorative). Default: the character's own Unicode name, read by assistive tech.\"\n },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n // the words are the classes: no key after them (`ClassBuilder`)\n classes: {},\n values: [\"link\"],\n description:\n \"The look: `link` (clickable look: the cursor controls have; the page adds the control). It was the `link` \" +\n \"switch, which can't stay an old name: `link` is where a click goes now, on every tag.\"\n },\n { name: \"disabled\", group: \"states\", kind: \"keyOnly\", description: \"Dimmed.\" },\n { name: \"loading\", group: \"states\", kind: \"keyOnly\", description: \"Spins (a still glyph under reduced motion).\" }\n ],\n events: [],\n slots: [],\n parts: [{ name: \"emoji\", description: \"The emoji glyph box.\" }],\n states: [\n { name: \"disabled\", description: \"Dimmed.\" },\n { name: \"loading\", description: \"Spinning.\" }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { EmojiData } from \"./EmojiData\"\nimport { emojiVocabulary } from \"./UIEmoji.en\"\n\nimport emojiCSS from \"./UIEmoji.css?inline\"\n\n/****************\n * ### `UIEmoji`\n * The component behind `<ui-emoji>`: an emoji, drawn as the native Unicode character.\n *\n * - Its shadow DOM is one span, `<span class=\"ui [size] [keyOnly ...] emoji\" part=\"emoji\">😄</span>`.\n *\n * - The glyph is the Unicode emoji `EmojiData` resolves from `name`,\n * loading that name's data chunk on first use.\n * - A name already loaded (or `EmojiData.register()`ed) draws in the first frame.\n * - A later `name` wins over an earlier, slower load.\n * - An unknown name: an empty box with no role (an unnamed `role=img` fails axe).\n *\n * - The accessible name (see the vocabulary): the character, as text, by default;\n * `label=\"…\"` => `role=img` + `aria-label`; a bare `label` => `aria-hidden`.\n * - `link` is only a LOOK: the emoji takes no focus and sends nothing of its own;\n * wrap it in a `<button>` or `<a>`.\n ****************/\nexport class UIEmoji extends E.UIComponent<typeof emojiVocabulary> {\n @E.proto static vocabulary = emojiVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { emoji: emojiCSS },\n delegatesFocus: false,\n // `disabled`: only a look\n disabled: \"its own\",\n // `loading`: it spins\n loading: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n /** The glyph, `undefined` while loading or for an unknown name. */\n @E.state accessor emoji: string | undefined = EmojiData.peek(this.name, EmojiData.setFor(this.domElement))\n\n /** Request counter, so a slower earlier load can't win. */\n private latestRequest = 0\n\n /**\n * Loads the emoji for `name`, and again when connected (it may have moved under another root)\n * and when any root's settings change (`rootSettingsGeneration`).\n */\n @E.onChange(\"name\", \"isConnected\", \"rootSettingsGeneration\")\n protected onNameChanged(name: string | undefined, isConnected: boolean) {\n if (isConnected || !this.latestRequest) void this.load(name)\n }\n\n /**\n * Bumped whenever any `<ui-root>`'s settings change (page-wide): a member, so `@E.onChange` can follow it.\n * - `protected`, not `private`: only `@E.onChange` reads it, by name, and TypeScript calls a private one unused.\n */\n protected get rootSettingsGeneration(): number {\n return E.RootSettings.generation\n }\n\n /**\n * Load every emoji `html` names (`<ui-emoji name=\"...\">`), so a static server render of it draws them.\n * - MUST be awaited before `StaticRender.fragment(html)` / `page(html)` (`spell/ui/static`):\n * that render is synchronous and draws only names already loaded (`EmojiData.peek()`);\n * a browser loads them after first paint instead.\n * - In every name set that ships: which one an element uses depends on its `<ui-root emoji>`, unknown in markup.\n * - `tag`: the tag the family is defined under, if not its own.\n * - STATIC: the server render calls it before any element exists.\n */\n static preload(html: string, tag: string = emojiVocabulary.tag): Promise<void> {\n const names: string[] = []\n for (const [, attributes = \"\"] of html.matchAll(new RegExp(`<${tag}(\\\\s[^>]*)?>`, \"gi\"))) {\n const match = NAME_ATTRIBUTE.exec(attributes)\n const name = match && (match[1] ?? match[2] ?? match[3])\n if (name) names.push(name)\n }\n return EmojiData.preload(names)\n }\n\n render(): JSX.Element {\n return (\n <span\n class={this.rootClass}\n part={this.partForName(\"emoji\")}\n role={this.isLabelled ? \"img\" : undefined}\n aria-label={this.isLabelled ? this.label : undefined}\n aria-hidden={this.label === \"\" ? \"true\" : undefined}\n >\n {this.emoji}\n </span>\n )\n }\n\n /** Named by `label` (and there's a glyph to name)? */\n private get isLabelled(): boolean {\n return !!this.label && !!this.emoji\n }\n\n /** Resolve `name` in the set this element sees; writes only if it is still the latest request. */\n @E.untracked\n private async load(name: string | undefined) {\n const request = ++this.latestRequest\n const emoji = await EmojiData.get(name, EmojiData.setFor(this.domElement))\n if (this.latestRequest === request && this.emoji !== emoji) this.emoji = emoji\n }\n}\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIEmoji extends E.AttributeValues<typeof emojiVocabulary> {}\n\n/**\n * A start tag's `name=\"...\"` attribute, any quoting: `UIEmoji.preload()` reads the names a page uses from its markup.\n * - Groups 1-3: the value in double, single or no quotes.\n */\nconst NAME_ATTRIBUTE = /(?:^|\\s)name\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\\s\"'=<>`]+))/i\n","/**\n * The emoji family: defines `<ui-emoji>` and exports its component, `UIEmoji`.\n * - SIDE EFFECT: importing it defines the tag.\n * - Also the library's `spell/ui/ui-emoji` entry (its size is in `notes/report.md`).\n * - It exports `EmojiData` too, for apps that pick the page's name set\n * (`EmojiData.use(\"fomantic\")`; for a subtree, `<ui-root emoji=\"fomantic\">`),\n * register their own names or preload a name (`EmojiData.get(\"smile\")`).\n * Its data chunks (`data/<set>/*.json`) load lazily, one per first letter of a name.\n */\n\nimport { UIEmoji } from \"./UIEmoji\"\nimport { EmojiData } from \"./EmojiData\"\n\nUIEmoji.define()\n\nexport { UIEmoji, EmojiData }\n"],"mappings":";;;;AAYA,SAAgB,cAAc,GAAsB;CAClD,IAAMuB,IAAQC,EAAK,MAAM;CACzB,OAAOC,EAAO,KAAKF,CAAK,IAAIA,IAAQG;AACtC;AAGA,IAAMD,IAAS,WAGTC,IAAc,KChBdC,IAAc,QAuBPC,IAAb,MAAa,UAAU;CAOrB,OAAO;CAOP,WAAW,QAAgB;EACzB,OAAO,UAAU;CACnB;CAGA,OAAe,MAAcD;CAM7B,OAAO,IAAI,GAA2B;EACpC,UAAU,MAAM,UAAU,SAASE,CAAK;CAC1C;CAGA,OAAO,QAAQ;EAGb,AAFA,UAAU,MAAMF,GAChB,UAAU,KAAK,MAAM,GACrB,UAAU,MAAM,OAAO;CACzB;CAGA,OAAO,OAAO,GAA0B;EACtC,IAAMG,IAAAC,EAAqB,QAAQC,GAAS,OAAO;EACnD,OAAOF,MAAQ,KAAA,IAAY,UAAU,MAAM,UAAU,SAASA,CAAG;CACnE;CAWA,OAAO,UAAU,GAAsB;EACrC,OAAON,EAAK,KAAK,CAAC,CAAC,QAAQS,GAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQC,GAAO,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQC,GAAQ,GAAG;CACzG;CAOA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ave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-event\" data-omit=\"\">\n <ui-property-group label=\"Name\" data-group=\"name\">\n <ui-property name=\"label\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"icon\"></ui-property>\n <ui-property name=\"image\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"color\"></ui-property>\n <ui-property name=\"appearance\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"States\" data-group=\"states\">\n <ui-property name=\"disabled\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-event.editor-Bk17y7wW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-event.editor-Bk17y7wW.js","names":["ui_event_editor_default"],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/components/ui-example/ui-example.editor.html?raw
|
|
2
|
+
var e = "<!-- <ui-example>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-example\" data-omit=\"\">\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"heading\"></ui-property>\n <ui-property name=\"description\"></ui-property>\n <ui-property name=\"level\"></ui-property>\n <ui-property name=\"code\"></ui-property>\n <ui-property name=\"language\"></ui-property>\n <ui-property name=\"bare\"></ui-property>\n <ui-property name=\"variation\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
|
|
3
|
+
export { e as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ui-example.editor-D46Vnctp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-example.editor-D46Vnctp.js","names":["ui_example_editor_default"],"sources":[],"mappings":""}
|
package/dist/ui-example.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import "./ui-button.js";
|
|
4
|
-
import "./ui-parts.js";
|
|
1
|
+
import "./rolldown-runtime-c6e9CmGy.js";
|
|
2
|
+
import { DOMElement as e, Disclosure as t, Gt as n, Jt as r, Kt as i, ORIGINAL_PREFIX as a, SlotContent as o, UIComponent as s, Ut as c, Wt as l, Yt as u, after as d, afterSolidUpdate as f, controlled as p, cssState as m, d as h, k as g, onChange as _, p as v, proto as y, protoMerged as b, qt as x, s as ee, state as S } from "./core.js";
|
|
5
3
|
import "./ui-segment.js";
|
|
4
|
+
import "./ui-parts.js";
|
|
5
|
+
import "./ui-button.js";
|
|
6
6
|
import "./ui-code.js";
|
|
7
|
-
import { Show as
|
|
8
|
-
import { claimElement as
|
|
9
|
-
|
|
10
|
-
var
|
|
7
|
+
import { Show as C } from "solid-js";
|
|
8
|
+
import { claimElement as te, className as w, createComponent as T, effect as E, getOwner as D, insert as O, isServer as k, readShallow as A, ref as ne, setAttribute as j, template as M } from "@solidjs/web";
|
|
9
|
+
// src/components/ui-example/HtmlFormatter.ts
|
|
10
|
+
var N = class HtmlFormatter {
|
|
11
11
|
width;
|
|
12
12
|
indent;
|
|
13
13
|
constructor({ width: e = 100, indent: t = " " } = {}) {
|
|
@@ -24,13 +24,13 @@ var M = class HtmlFormatter {
|
|
|
24
24
|
open: "",
|
|
25
25
|
children: []
|
|
26
26
|
}, n = [t], r = 0;
|
|
27
|
-
|
|
28
|
-
for (let t =
|
|
27
|
+
P.lastIndex = 0;
|
|
28
|
+
for (let t = P.exec(e); t; t = P.exec(e)) {
|
|
29
29
|
let i = n.at(-1);
|
|
30
30
|
t.index > r && i.children.push({
|
|
31
31
|
kind: "text",
|
|
32
32
|
text: e.slice(r, t.index)
|
|
33
|
-
}), r =
|
|
33
|
+
}), r = P.lastIndex;
|
|
34
34
|
let [a, o, s, c] = t;
|
|
35
35
|
if (o !== void 0) i.children.push({
|
|
36
36
|
kind: "comment",
|
|
@@ -46,12 +46,12 @@ var M = class HtmlFormatter {
|
|
|
46
46
|
open: HtmlFormatter.cleanOpenTag(a),
|
|
47
47
|
children: []
|
|
48
48
|
};
|
|
49
|
-
if (i.children.push(o),
|
|
49
|
+
if (i.children.push(o), ie.has(t)) {
|
|
50
50
|
let n = e.toLowerCase().indexOf(`</${t}`, r), i = n === -1 ? e.length : n;
|
|
51
51
|
o.raw = e.slice(r, i);
|
|
52
52
|
let a = e.indexOf(">", i);
|
|
53
|
-
r = a === -1 ? e.length : a + 1,
|
|
54
|
-
} else !
|
|
53
|
+
r = a === -1 ? e.length : a + 1, P.lastIndex = r;
|
|
54
|
+
} else !F.has(t) && !a.endsWith("/>") && n.push(o);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
return r < e.length && n.at(-1).children.push({
|
|
@@ -61,13 +61,7 @@ var M = class HtmlFormatter {
|
|
|
61
61
|
}
|
|
62
62
|
printChildren(e, t) {
|
|
63
63
|
let n = [], r = this.indent.repeat(t), i = "";
|
|
64
|
-
for (let a of e)
|
|
65
|
-
if (this.isInline(a)) {
|
|
66
|
-
i += this.inline(a);
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
flushRun(), a.kind === "comment" ? n.push(r + a.text.trim()) : a.kind === "element" && n.push(...this.printElement(a, t));
|
|
70
|
-
}
|
|
64
|
+
for (let a of e) this.isInline(a) ? i += this.inline(a) : (flushRun(), a.kind === "comment" ? n.push(r + a.text.trim()) : a.kind === "element" && n.push(...this.printElement(a, t)));
|
|
71
65
|
return flushRun(), n;
|
|
72
66
|
function flushRun() {
|
|
73
67
|
let e = i.replace(/\s+/g, " ").trim();
|
|
@@ -75,9 +69,9 @@ var M = class HtmlFormatter {
|
|
|
75
69
|
}
|
|
76
70
|
}
|
|
77
71
|
printElement(e, t) {
|
|
78
|
-
let n = this.indent.repeat(t), r =
|
|
72
|
+
let n = this.indent.repeat(t), r = F.has(e.tag) ? "" : `</${e.tag}>`;
|
|
79
73
|
if (e.raw !== void 0) {
|
|
80
|
-
if (
|
|
74
|
+
if (ae.has(e.tag)) return [n + e.open + e.raw + r];
|
|
81
75
|
let t = e.raw.replace(/^\n+|\s+$/g, "");
|
|
82
76
|
return t.includes("\n") ? [
|
|
83
77
|
n + e.open,
|
|
@@ -101,11 +95,11 @@ var M = class HtmlFormatter {
|
|
|
101
95
|
return n.map((e) => e.trim() ? t + e.slice(r) : "");
|
|
102
96
|
}
|
|
103
97
|
isInline(e) {
|
|
104
|
-
return e.kind === "text" || e.kind !== "comment" &&
|
|
98
|
+
return e.kind === "text" || e.kind !== "comment" && oe.has(e.tag) && e.children.every((e) => this.isInline(e));
|
|
105
99
|
}
|
|
106
100
|
inline(e) {
|
|
107
101
|
if (e.kind !== "element") return e.text;
|
|
108
|
-
let t =
|
|
102
|
+
let t = F.has(e.tag) ? "" : `</${e.tag}>`;
|
|
109
103
|
return e.open + (e.raw ?? this.inlineChildren(e)) + t;
|
|
110
104
|
}
|
|
111
105
|
inlineChildren(e) {
|
|
@@ -115,15 +109,15 @@ var M = class HtmlFormatter {
|
|
|
115
109
|
return new HtmlFormatter().format(e);
|
|
116
110
|
}
|
|
117
111
|
static cleanOpenTag(e) {
|
|
118
|
-
return e.replace(/("[^"]*"|'[^']*')|\s+/g, (e, t) => t ?? " ").replace(/ (\/?>)$/, "$1").replace(/(\s)([\w:-]+)=""/g, "$1$2").replace(/(\s)([\w:-]+)="true"/g, (e, t, n) => n.startsWith("aria-") ||
|
|
112
|
+
return e.replace(/("[^"]*"|'[^']*')|\s+/g, (e, t) => t ?? " ").replace(/ (\/?>)$/, "$1").replace(/(\s)([\w:-]+)=""/g, "$1$2").replace(/(\s)([\w:-]+)="true"/g, (e, t, n) => n.startsWith("aria-") || re.has(n) ? e : t + n);
|
|
119
113
|
}
|
|
120
|
-
},
|
|
114
|
+
}, re = /* @__PURE__ */ new Set([
|
|
121
115
|
"contenteditable",
|
|
122
116
|
"draggable",
|
|
123
117
|
"spellcheck",
|
|
124
118
|
"translate",
|
|
125
119
|
"autocapitalize"
|
|
126
|
-
]),
|
|
120
|
+
]), P = /(<!--[\s\S]*?-->)|<(\/?)([a-zA-Z][\w:-]*)(?:\s+[^\s"'>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*\s*\/?>/g, F = /* @__PURE__ */ new Set([
|
|
127
121
|
"area",
|
|
128
122
|
"base",
|
|
129
123
|
"br",
|
|
@@ -137,27 +131,27 @@ var M = class HtmlFormatter {
|
|
|
137
131
|
"source",
|
|
138
132
|
"track",
|
|
139
133
|
"wbr"
|
|
140
|
-
]),
|
|
134
|
+
]), ie = /* @__PURE__ */ new Set([
|
|
141
135
|
"pre",
|
|
142
136
|
"textarea",
|
|
143
137
|
"script",
|
|
144
138
|
"style",
|
|
145
139
|
"ui-code",
|
|
146
140
|
"ui-markdown"
|
|
147
|
-
]),
|
|
141
|
+
]), ae = /* @__PURE__ */ new Set([
|
|
148
142
|
"pre",
|
|
149
143
|
"textarea",
|
|
150
144
|
"ui-code",
|
|
151
145
|
"ui-markdown"
|
|
152
|
-
]),
|
|
153
|
-
static snapshot(
|
|
146
|
+
]), oe = /* @__PURE__ */ new Set(/* @__PURE__ */ "a.abbr.b.bdi.bdo.br.cite.code.data.dfn.em.i.kbd.mark.q.s.samp.small.span.strong.sub.sup.time.u.var.wbr".split(".")), I = class ExampleSource {
|
|
147
|
+
static snapshot(t = document) {
|
|
154
148
|
let n = 0;
|
|
155
|
-
for (let r of
|
|
149
|
+
for (let r of t.querySelectorAll(`${L}${e.notAttached}`)) ExampleSource.snapshots.has(r) || (ExampleSource.snapshots.set(r, r.innerHTML), n++);
|
|
156
150
|
return n;
|
|
157
151
|
}
|
|
158
152
|
static keep(e) {
|
|
159
153
|
let t = 0;
|
|
160
|
-
for (let n of e.querySelectorAll(
|
|
154
|
+
for (let n of e.querySelectorAll(L)) ExampleSource.snapshots.has(n) || (ExampleSource.snapshots.set(n, ExampleSource.authored(n)), t++);
|
|
161
155
|
return t;
|
|
162
156
|
}
|
|
163
157
|
static of(e) {
|
|
@@ -172,12 +166,12 @@ var M = class HtmlFormatter {
|
|
|
172
166
|
static format(e, t) {
|
|
173
167
|
let n = document.createElement("template");
|
|
174
168
|
n.innerHTML = e;
|
|
175
|
-
for (let e of [...n.content.children])
|
|
176
|
-
if (t === "live") for (let e of n.content.querySelectorAll("*")) for (let t of
|
|
177
|
-
return
|
|
169
|
+
for (let e of [...n.content.children]) ce.includes(e.slot) && e.remove();
|
|
170
|
+
if (t === "live") for (let e of n.content.querySelectorAll("*")) for (let t of le) e.removeAttribute(t);
|
|
171
|
+
return N.format(n.innerHTML);
|
|
178
172
|
}
|
|
179
173
|
static get snapshots() {
|
|
180
|
-
return globalThis[
|
|
174
|
+
return globalThis[se] ??= /* @__PURE__ */ new WeakMap();
|
|
181
175
|
}
|
|
182
176
|
static authored(e) {
|
|
183
177
|
let t = document.createElement("template");
|
|
@@ -185,7 +179,7 @@ var M = class HtmlFormatter {
|
|
|
185
179
|
for (let e of t.content.querySelectorAll("*")) for (let t of [...e.attributes]) t.name.startsWith("data-ui-include-") && (e.setAttribute(t.name.slice(a.length), t.value), e.removeAttribute(t.name));
|
|
186
180
|
return t.innerHTML;
|
|
187
181
|
}
|
|
188
|
-
},
|
|
182
|
+
}, L = "ui-example", se = Symbol.for("spell-ui:example-sources"), ce = ["description"], le = ["data-ui-animation", "data-ui-hidden-by-animation"], ue = {
|
|
189
183
|
tag: "ui-example",
|
|
190
184
|
icon: "lightbulb outline",
|
|
191
185
|
snippet: "<ui-example heading=\"An example\">\n <ui-button>Try me</ui-button>\n</ui-example>",
|
|
@@ -200,6 +194,7 @@ var M = class HtmlFormatter {
|
|
|
200
194
|
],
|
|
201
195
|
skeleton: "header, 2 line paragraph",
|
|
202
196
|
noun: "example",
|
|
197
|
+
partOfSpeech: "structure",
|
|
203
198
|
description: "An example shows its own markup live, under a heading and description, with the same markup as code a button shows and hides.",
|
|
204
199
|
attributes: [
|
|
205
200
|
{
|
|
@@ -325,12 +320,12 @@ var M = class HtmlFormatter {
|
|
|
325
320
|
text: "Hide code",
|
|
326
321
|
description: "The code button's label while the code shows."
|
|
327
322
|
}]
|
|
328
|
-
},
|
|
323
|
+
}, de = "@layer ui.components.example.types{:host{display:block}.ui.example{--_ui-example-margin:var(--ui-example-margin,1.25em 0);--_ui-example-description-width:var(--ui-example-description-width,50em);--_ui-example-description-color:var(--ui-example-description-color,var(--ui-text-color));--_ui-example-toggle-opacity:var(--ui-example-toggle-opacity,1);--_ui-example-toggle-background:var(--ui-example-toggle-background,light-dark(oklch(100% 0 0/.95),color-mix(in oklab, var(--ui-surface-strong) 90%, transparent)));--_ui-example-toggle-inset:var(--ui-example-toggle-inset,.8em);--_ui-example-toggle-corner:var(--ui-example-toggle-corner,6px);--_ui-example-toggle-size:var(--ui-example-toggle-size,28px);--_ui-example-tools-gap:var(--ui-example-tools-gap,4px);--_ui-example-gap:var(--ui-example-gap,.5em);--_ui-example-frame-background:var(--ui-example-frame-background,color-mix(in oklab, var(--ui-surface) 45%, transparent));--_ui-example-frame-border:var(--ui-example-frame-border,var(--ui-border-width,1px) solid var(--ui-border-color));--_ui-example-frame-radius:var(--ui-example-frame-radius,var(--ui-radius-l,.75em));--_ui-example-frame-padding:var(--ui-example-frame-padding,.75em 1em);--_ui-example-frame-shadow:var(--ui-example-frame-shadow,var(--ui-shadow-subtle,none));--_ui-example-frame-filter:var(--ui-example-frame-filter,none);--_ui-example-demo-background:var(--ui-example-demo-background,color-mix(in oklab, var(--ui-surface) 60%, transparent));margin:var(--_ui-example-margin);display:block;position:relative}:host(:first-child)>.ui.example{margin-top:0}:host(:last-child)>.ui.example{margin-bottom:0}}@layer ui.components.example.content{.heading{align-items:center;gap:var(--_ui-example-gap);margin-bottom:var(--_ui-example-gap);display:flex}.heading>[part~=header]{--ui-header-margin-top:0;--ui-header-margin-bottom:0;flex:auto}.frame{--_example-toggle-radius:max(4px, calc(var(--_ui-example-frame-radius) - var(--_ui-example-toggle-corner)));--_example-inner-radius:max(var(--ui-radius-s), calc(var(--_ui-example-frame-radius) - 16px));--ui-segment-radius:var(--_example-inner-radius);--ui-card-radius:var(--_example-inner-radius);--ui-message-radius:var(--_example-inner-radius);position:relative}.frame>[part~=toggle]{z-index:2;opacity:var(--_ui-example-toggle-opacity);margin:0;transition:opacity .3s ease-out;position:absolute;inset-block-start:min(calc(50% - .675em), var(--_ui-example-toggle-inset));inset-inline-end:var(--_ui-example-toggle-inset)}.frame>[part~=toggle]::part(button){box-sizing:border-box;width:var(--_ui-example-toggle-size);min-height:var(--_ui-example-toggle-size);border-radius:var(--_example-toggle-radius);background:var(--_ui-example-toggle-background);min-width:0;box-shadow:0 0 0 1px var(--ui-border-color), var(--ui-shadow-subtle,0 0 #0000);justify-content:center;margin:0;padding-inline:0}.ui.example:not(.bare)>.frame>[part~=toggle]{inset-block-start:var(--_ui-example-toggle-corner);inset-inline-end:var(--_ui-example-toggle-corner)}.frame>[part~=toggle]:hover,.frame>[part~=toggle]:focus-within,:host(:state(open)) .frame>[part~=toggle]{opacity:1}.frame>[part~=tools]{--ui-example-tool-size:var(--_ui-example-toggle-size);--ui-example-tool-radius:var(--_example-toggle-radius);--ui-example-tool-background:var(--_ui-example-toggle-background);z-index:2;align-items:center;gap:var(--_ui-example-tools-gap);display:flex;position:absolute;inset-block-start:min(calc(50% - .675em), var(--_ui-example-toggle-inset));inset-inline-end:calc(var(--_ui-example-toggle-inset) + var(--_ui-example-toggle-size) + var(--_ui-example-tools-gap))}.ui.example:not(.bare)>.frame>[part~=tools]{inset-block-start:var(--_ui-example-toggle-corner);inset-inline-end:calc(var(--_ui-example-toggle-corner) + var(--_ui-example-toggle-size) + var(--_ui-example-tools-gap))}.description{max-width:var(--_ui-example-description-width);margin:0 0 var(--_ui-example-gap);color:var(--_ui-example-description-color);line-height:1.4285em}.description code{font-family:var(--ui-font-family-mono,monospace);font-size:.9em}.description a{color:var(--ui-link)}:host([description]) .description ::slotted(*){margin-block-start:.5em}[part~=demo],[part~=code]{display:block}:host(:not(:state(code-shown))) [part~=demo]::part(segment),.ui.bare.example [part~=demo]::part(segment){padding:0}[part~=demo]::part(segment){display:flow-root}.ui.example:not(.bare)>.frame{padding:var(--_ui-example-frame-padding);border:var(--_ui-example-frame-border);border-radius:var(--_ui-example-frame-radius);background:var(--_ui-example-frame-background);box-shadow:var(--_ui-example-frame-shadow);backdrop-filter:var(--_ui-example-frame-filter)}.ui.example:not(.bare) [part~=demo]::part(segment){margin:0}.ui.example:not(.bare) :is([part~=demo],[part~=code])::part(segment){backdrop-filter:none}:host(:state(code-shown)) .ui.example:not(.bare)>.frame{padding:0}:host(:state(code-shown)) .ui.example:not(.bare) [part~=demo]::part(segment){z-index:1;padding:var(--_ui-example-frame-padding);border-radius:calc(var(--_ui-example-frame-radius) - 1px) calc(var(--_ui-example-frame-radius) - 1px) var(--_ui-example-frame-radius) var(--_ui-example-frame-radius);background:var(--_ui-example-demo-background);box-shadow:0 1px 0 var(--ui-border-color), 0 6px 12px -8px oklch(0% 0 0/.25);border:none;margin:0;position:relative}.ui.example:not(.bare) [part~=code]::part(segment){box-sizing:border-box;height:auto;padding:.5em var(--_ui-example-code-inline) .125em;border-radius:0 0 calc(var(--_ui-example-frame-radius) - 1px) calc(var(--_ui-example-frame-radius) - 1px);background:color-mix(in oklab, var(--ui-text-color) 3%, transparent);box-shadow:none;interpolate-size:allow-keywords;transition:height .26s var(--ui-ease-out,ease-out), padding-block .26s var(--ui-ease-out,ease-out);border:none;margin:0;overflow:auto hidden}.ui.example{--_ui-example-code-inline:1em}@starting-style{.ui.example:not(.bare) [part~=code]::part(segment){height:0}}:host(:state(open-at-start)) .ui.example:not(.bare) [part~=code]::part(segment){transition:none}:host(:not(:state(open))) .ui.example:not(.bare) [part~=code]::part(segment){height:0;padding-block:0}:host(:state(open)) .frame>[part~=toggle]::part(button){background:color-mix(in oklab, var(--ui-text-color) 18%, var(--_ui-example-toggle-background));box-shadow:inset 0 1px 2px oklch(0% 0 0/.18), 0 0 0 1px var(--ui-border-color)}.ui.example:not(.bare) [part~=source]{--ui-code-border:none;--ui-code-background:transparent;--ui-code-padding:.5em 2.5em .5em 0}[part~=source]::part(copy){width:28px;height:28px;color:var(--ui-text-muted);border-radius:6px;font-size:15px;inset-block-start:0;inset-inline-end:-1px}@media (width<768px){[part~=demo]::part(segment){overflow-x:auto}:host(:not(:state(code-shown))) .ui.example:not(.bare) [part~=demo]::part(segment){margin-inline:-8px;padding-inline:8px}}}@layer ui.components.example.variations{.ui.variation.example{--_ui-example-margin:var(--ui-example-margin,1em 0);--_ui-example-gap:var(--ui-example-gap,.5em)}.ui.bare.example [part~=code]{margin-top:var(--_ui-example-gap)}}@layer ui.components.example.states;", fe = /* @__PURE__ */ M("<code>"), pe = /* @__PURE__ */ M("<a>"), me = /* @__PURE__ */ M("<div><ui-header>", 1), R = /* @__PURE__ */ M("<div><slot>"), he = /* @__PURE__ */ M("<ui-segment appearance=secondary><slot><ui-code copy>", 1), ge = /* @__PURE__ */ M("<section><!><div><div><slot></slot></div><ui-button appearance=\"circular basic\"></ui-button><ui-segment><slot>", 1), z, B, V, H, U, W, G, K, q, J, Y, X = class _UIExample extends (G = s, W = [y], U = [b], H = [m("open"), p("code")], V = [m("code-shown"), S], B = [m("open-at-start"), S], z = [_("isCodeOpen")], G) {
|
|
329
324
|
constructor(...e) {
|
|
330
|
-
super(...e),
|
|
325
|
+
super(...e), u(K, 5, this), r(this, "sourceMarkup", k ? "" : I.of(this.domElement)), r(this, "slots", new o(this.domElement)), x(this, q, u(K, 8, this, !1)), u(K, 11, this), x(this, J, u(K, 12, this, !1)), u(K, 15, this), x(this, Y, u(K, 16, this, this.isCodeOpen)), u(K, 19, this), r(this, "closingTimer"), r(this, "disclosure", new t({
|
|
331
326
|
component: this,
|
|
332
327
|
member: "isCodeOpen"
|
|
333
|
-
})),
|
|
328
|
+
})), k || this.stamp();
|
|
334
329
|
}
|
|
335
330
|
onCodeOpenChanged(e) {
|
|
336
331
|
this.closingTimer?.cancel(), e ? this.isCodeShown = !0 : this.isCodeShown && (this.closingTimer = d(ve, () => this.isCodeShown = !1));
|
|
@@ -347,77 +342,77 @@ var M = class HtmlFormatter {
|
|
|
347
342
|
get descriptionWithCode() {
|
|
348
343
|
return (this.description ?? "").split(h).flatMap((e, t) => {
|
|
349
344
|
if (t % 2) return [(() => {
|
|
350
|
-
var t =
|
|
351
|
-
return
|
|
345
|
+
var t = fe();
|
|
346
|
+
return O(t, e), t;
|
|
352
347
|
})()];
|
|
353
348
|
let n = e.split(Se), r = [];
|
|
354
349
|
for (let e = 0; e < n.length; e += 3) n[e] && r.push(n[e]), e + 2 < n.length && r.push((() => {
|
|
355
|
-
var t =
|
|
356
|
-
return
|
|
357
|
-
|
|
350
|
+
var t = pe(), r = D();
|
|
351
|
+
return O(t, () => n[e + 1]), E(() => n[e + 2], (e) => {
|
|
352
|
+
j(t, "href", e), te(t, r);
|
|
358
353
|
}), t;
|
|
359
354
|
})());
|
|
360
355
|
return r;
|
|
361
356
|
});
|
|
362
357
|
}
|
|
363
358
|
stamp() {
|
|
364
|
-
let e =
|
|
359
|
+
let e = I.template(this.domElement);
|
|
365
360
|
e && f(() => e.after(e.content.cloneNode(!0)));
|
|
366
361
|
}
|
|
367
362
|
render() {
|
|
368
363
|
let e = this;
|
|
369
364
|
var t = ge(), n = t.firstChild, r = n.nextSibling, i = r.firstChild, a = i.firstChild, o = i.nextSibling, s = o.nextSibling, c = s.firstChild;
|
|
370
|
-
return
|
|
365
|
+
return O(t, T(C, {
|
|
371
366
|
get when() {
|
|
372
367
|
return e.heading;
|
|
373
368
|
},
|
|
374
369
|
get children() {
|
|
375
|
-
var t =
|
|
376
|
-
return n._$owner =
|
|
377
|
-
e:
|
|
370
|
+
var t = me(), n = t.firstChild;
|
|
371
|
+
return n._$owner = D(), O(n, () => e.heading), E(() => ({
|
|
372
|
+
e: A(_e),
|
|
378
373
|
t: e.partForName("header"),
|
|
379
374
|
a: g.attributeFor(g.levelFor(e.level, Ce)),
|
|
380
375
|
o: e.variation ? "small" : void 0
|
|
381
376
|
}), ({ e, t: r, a: i, o: a }, o) => {
|
|
382
|
-
|
|
377
|
+
w(t, e, o?.e), r !== o?.t && j(n, "part", r), i !== o?.a && j(n, "level", i), a !== o?.o && j(n, "size", a);
|
|
383
378
|
}), t;
|
|
384
379
|
}
|
|
385
|
-
}), n),
|
|
380
|
+
}), n), O(t, T(C, {
|
|
386
381
|
get when() {
|
|
387
382
|
return e.description || e.slots.hasContent(e.slotForName("description"));
|
|
388
383
|
},
|
|
389
384
|
get children() {
|
|
390
385
|
var t = R(), n = t.firstChild;
|
|
391
|
-
return
|
|
392
|
-
e:
|
|
386
|
+
return O(t, () => e.descriptionWithCode, n), n._$owner = D(), E(() => ({
|
|
387
|
+
e: A(v),
|
|
393
388
|
t: e.partForName("description"),
|
|
394
389
|
a: e.slotForName("description")
|
|
395
390
|
}), ({ e, t: r, a: i }, a) => {
|
|
396
|
-
|
|
391
|
+
w(t, e, a?.e), r !== a?.t && j(t, "part", r), i !== a?.a && j(n, "name", i);
|
|
397
392
|
}), t;
|
|
398
393
|
}
|
|
399
|
-
}), r), a._$owner =
|
|
394
|
+
}), r), a._$owner = D(), j(o, "icon", Q), j(o, "aria-controls", $), ne(() => (t) => t.addEventListener("click", (t) => e.toggle(t)), o), o._$owner = D(), s._$owner = D(), c._$owner = D(), O(r, T(C, {
|
|
400
395
|
get when() {
|
|
401
396
|
return e.isCodeShown;
|
|
402
397
|
},
|
|
403
398
|
get children() {
|
|
404
399
|
var t = he(), n = t.firstChild, r = n.firstChild;
|
|
405
|
-
return
|
|
400
|
+
return j(t, "id", $), t._$owner = D(), n._$owner = D(), r._$owner = D(), E(() => ({
|
|
406
401
|
e: e.partForName("code"),
|
|
407
402
|
t: e.bare ? void 0 : ee,
|
|
408
403
|
a: e.slotForName("source"),
|
|
409
404
|
o: e.partForName("source"),
|
|
410
|
-
i: e.language ||
|
|
405
|
+
i: e.language || xe,
|
|
411
406
|
n: e.sourceMarkup
|
|
412
407
|
}), ({ e, t: i, a, o, i: s, n: c }, l) => {
|
|
413
|
-
e !== l?.e &&
|
|
408
|
+
e !== l?.e && j(t, "part", e), i !== l?.t && j(t, "attach-to", i), a !== l?.a && j(n, "name", a), o !== l?.o && j(r, "part", o), s !== l?.i && j(r, "language", s), c !== l?.n && j(r, "content", c);
|
|
414
409
|
}), t;
|
|
415
410
|
}
|
|
416
|
-
}), null),
|
|
417
|
-
e:
|
|
411
|
+
}), null), E(() => ({
|
|
412
|
+
e: A(e.rootClass),
|
|
418
413
|
t: e.partForName("example"),
|
|
419
|
-
a:
|
|
420
|
-
o:
|
|
414
|
+
a: A(ye),
|
|
415
|
+
o: A(be),
|
|
421
416
|
i: e.partForName("tools"),
|
|
422
417
|
n: e.slotForName("tools"),
|
|
423
418
|
s: e.partForName("toggle"),
|
|
@@ -429,23 +424,21 @@ var M = class HtmlFormatter {
|
|
|
429
424
|
c: e.demoIsFramed ? void 0 : "basic",
|
|
430
425
|
w: e.demoIsFramed ? "top" : void 0
|
|
431
426
|
}), ({ e, t: n, a: c, o: l, i: u, n: d, s: f, h: p, r: m, d: h, l: g, u: _, c: v, w: y }, b) => {
|
|
432
|
-
|
|
427
|
+
w(t, e, b?.e), n !== b?.t && j(t, "part", n), w(r, c, b?.a), w(i, l, b?.o), u !== b?.i && j(i, "part", u), d !== b?.n && j(a, "name", d), f !== b?.s && j(o, "part", f), p !== b?.h && j(o, "size", p), m !== b?.r && j(o, "aria-label", m), h !== b?.d && j(o, "title", h), g !== b?.l && j(o, "aria-expanded", g), _ !== b?.u && j(s, "part", _), v !== b?.c && j(s, "appearance", v), y !== b?.w && j(s, "attach-to", y);
|
|
433
428
|
}), t;
|
|
434
429
|
}
|
|
435
430
|
};
|
|
436
|
-
K =
|
|
437
|
-
styleSheets: { example:
|
|
431
|
+
K = n(G), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), c(K, 4, "isCodeOpen", H, X, q), c(K, 4, "isCodeShown", V, X, J), c(K, 4, "isOpenAtStart", B, X, Y), c(K, 1, "onCodeOpenChanged", z, X), c(K, 13, "vocabulary", W, X), c(K, 13, "elementSetup", U, X), l(K, X), i(X, "UIExample"), r(X, "vocabulary", u(K, 20, X, ue)), u(K, 23, X), r(X, "elementSetup", u(K, 24, X, {
|
|
432
|
+
styleSheets: { example: de },
|
|
438
433
|
delegatesFocus: !1
|
|
439
|
-
})),
|
|
440
|
-
var Z = X, _e = "heading", ve = .3, ye = "frame", be = "tools",
|
|
434
|
+
})), u(K, 27, X);
|
|
435
|
+
var Z = X, _e = "heading", ve = .3, ye = "frame", be = "tools", Q = "code", xe = "html", Se = /\[([^\]]+)\]\(([^)\s]+)\)/, $ = "code", Ce = {
|
|
441
436
|
min: 1,
|
|
442
437
|
max: 6,
|
|
443
438
|
fallback: 4
|
|
444
439
|
};
|
|
445
|
-
|
|
446
|
-
//#region src/components/ui-example/index.ts
|
|
440
|
+
// src/components/ui-example/index.ts
|
|
447
441
|
Z.define();
|
|
448
|
-
|
|
449
|
-
export { F as ExampleSource, M as HtmlFormatter, Z as UIExample };
|
|
442
|
+
export { I as ExampleSource, N as HtmlFormatter, Z as UIExample };
|
|
450
443
|
|
|
451
444
|
//# sourceMappingURL=ui-example.js.map
|