@plitzi/sdk-elements 0.39.0 → 0.39.2
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/CHANGELOG.md +28 -0
- package/dist/Component/ComponentHelper.mjs +1 -2
- package/dist/Component/ComponentProvider.mjs +21 -22
- package/dist/Element/ElementContext.mjs +2 -3
- package/dist/Element/ElementParentContext.mjs +2 -3
- package/dist/Element/ElementWords.mjs +1 -2
- package/dist/Element/JsxManager.mjs +4 -5
- package/dist/Element/LayoutBody.d.ts +0 -1
- package/dist/Element/LayoutBody.mjs +6 -4
- package/dist/Element/PluginManager.mjs +0 -2
- package/dist/Element/PluginRemote.mjs +1 -2
- package/dist/Element/ReplicaProvider.mjs +1 -2
- package/dist/Element/RootElement.mjs +14 -14
- package/dist/Element/RowAnchor.mjs +1 -2
- package/dist/Element/ServerStaticShell.mjs +16 -16
- package/dist/Element/helpers/declaredAttributes.mjs +1 -2
- package/dist/Element/helpers/elementChildren.mjs +1 -2
- package/dist/Element/helpers/elementConstants.mjs +1 -2
- package/dist/Element/helpers/elementUtils.mjs +1 -2
- package/dist/Element/helpers/getInteractions.mjs +1 -2
- package/dist/Element/helpers/isVisible.mjs +1 -2
- package/dist/Element/helpers/keptByText.d.ts +10 -0
- package/dist/Element/helpers/keptByText.mjs +20 -0
- package/dist/Element/helpers/loadComponent.mjs +1 -2
- package/dist/Element/helpers/omitKeys.mjs +4 -5
- package/dist/Element/helpers/parseStyle.mjs +1 -2
- package/dist/Element/helpers/parseStyleSelectors.mjs +13 -13
- package/dist/Element/helpers/pluginSelector.d.ts +7 -4
- package/dist/Element/helpers/pluginSelector.mjs +16 -20
- package/dist/Element/helpers/renderStaticTag.mjs +1 -2
- package/dist/Element/hocs/withElement.d.ts +1 -4
- package/dist/Element/hocs/withElement.mjs +136 -83
- package/dist/Element/hooks/drawnMemo.d.ts +12 -0
- package/dist/Element/hooks/drawnMemo.mjs +4 -0
- package/dist/Element/hooks/storeValues.d.ts +12 -0
- package/dist/Element/hooks/storeValues.mjs +10 -0
- package/dist/Element/hooks/useEditableContent.mjs +1 -2
- package/dist/Element/hooks/useElement.mjs +1 -2
- package/dist/Element/hooks/useElementDataSource.d.ts +17 -1
- package/dist/Element/hooks/useElementDataSource.mjs +19 -20
- package/dist/Element/hooks/useElementInteractions.mjs +1 -2
- package/dist/Element/hooks/useElementInternal.d.ts +10 -37
- package/dist/Element/hooks/useElementInternal.mjs +165 -115
- package/dist/Element/hooks/useElementState.d.ts +15 -5
- package/dist/Element/hooks/useElementState.mjs +25 -23
- package/dist/Element/hooks/useElementVisible.mjs +1 -2
- package/dist/Element/hooks/useFocusInteractions.mjs +1 -2
- package/dist/Element/hooks/useInternalClassName.mjs +6 -7
- package/dist/Element/hooks/useInternalItems.d.ts +18 -5
- package/dist/Element/hooks/useInternalItems.mjs +118 -52
- package/dist/Element/hooks/useIntervalTriggers.mjs +1 -2
- package/dist/Element/hooks/useKeyTriggers.mjs +1 -2
- package/dist/Element/hooks/useLayoutChain.mjs +5 -6
- package/dist/Element/hooks/usePluginTrigger.mjs +1 -2
- package/dist/Element/hooks/useRootElementInteractions.d.ts +10 -2
- package/dist/Element/hooks/useRootElementInteractions.mjs +59 -45
- package/dist/Element/hooks/useRscData.mjs +5 -6
- package/dist/Element/hooks/useScrollInteractions.mjs +1 -2
- package/dist/Element/security/authorHtml.d.ts +1 -0
- package/dist/Element/security/authorHtml.mjs +17 -0
- package/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/canvas/index.mjs +4 -4
- package/dist/canvas/shaders.mjs +1 -2
- package/dist/canvas/useAnimationFrame.mjs +1 -2
- package/dist/canvas/useCanvas.mjs +5 -6
- package/dist/canvas/useReducedMotion.mjs +1 -2
- package/dist/components/ElementAdvancedEditor.mjs +3 -4
- package/dist/components/IconField/IconField.mjs +1 -2
- package/dist/components/IconPicker/IconPicker.mjs +1 -2
- package/dist/components/MarkdownDocument/MarkdownDocument.mjs +42 -26
- package/dist/components/MarkdownDocument/components/CodeBlock/CodeBlock.mjs +1 -2
- package/dist/components/MarkdownDocument/components/CodeBlock/index.mjs +1 -2
- package/dist/components/MarkdownDocument/helpers/hastText.mjs +1 -2
- package/dist/components/MarkdownDocument/helpers/markdownComponents.mjs +42 -46
- package/dist/components/MarkdownDocument/helpers/markdownParts.mjs +1 -2
- package/dist/components/MarkdownDocument/helpers/rehypeHeadingAnchors.mjs +1 -2
- package/dist/components/MarkdownDocument/helpers/syntaxHighlighter.d.ts +9 -1
- package/dist/components/MarkdownDocument/helpers/syntaxHighlighter.mjs +37 -23
- package/dist/components/MarkdownDocument/index.mjs +1 -2
- package/dist/dataSource/GlobalSources.mjs +26 -27
- package/dist/dataSource/PluginSource.mjs +8 -9
- package/dist/dataSource/getSourcesByElementId.mjs +1 -2
- package/dist/dataSource/index.mjs +7 -7
- package/dist/dataSource/pathFields.mjs +1 -2
- package/dist/dataSource/sourceStore.mjs +1 -2
- package/dist/dataSource/useFlag.mjs +1 -2
- package/dist/dataSource/useRegisterSource.mjs +4 -5
- package/dist/dataSource/useResolvedVariables.mjs +1 -2
- package/dist/elements/advanced/BlockHtml/BlockHtml.d.ts +1 -4
- package/dist/elements/advanced/BlockHtml/BlockHtml.mjs +20 -20
- package/dist/elements/advanced/BlockHtml/Settings.mjs +1 -2
- package/dist/elements/advanced/BlockHtml/declaration.mjs +1 -2
- package/dist/elements/advanced/BlockHtml/index.d.ts +1 -4
- package/dist/elements/advanced/BlockHtml/index.mjs +4 -5
- package/dist/elements/advanced/BlockJsx/BlockJsx.d.ts +1 -4
- package/dist/elements/advanced/BlockJsx/BlockJsx.mjs +1 -2
- package/dist/elements/advanced/BlockJsx/Settings.mjs +3 -4
- package/dist/elements/advanced/BlockJsx/declaration.mjs +1 -2
- package/dist/elements/advanced/BlockJsx/index.d.ts +1 -4
- package/dist/elements/advanced/BlockJsx/index.mjs +4 -5
- package/dist/elements/advanced/Custom/Custom.d.ts +1 -4
- package/dist/elements/advanced/Custom/Custom.mjs +12 -13
- package/dist/elements/advanced/Custom/Settings.mjs +2 -3
- package/dist/elements/advanced/Custom/declaration.mjs +1 -2
- package/dist/elements/advanced/Custom/index.d.ts +1 -4
- package/dist/elements/advanced/Custom/index.mjs +4 -5
- package/dist/elements/advanced/NodeHtml/NodeHtml.d.ts +1 -4
- package/dist/elements/advanced/NodeHtml/NodeHtml.mjs +1 -2
- package/dist/elements/advanced/NodeHtml/Settings.mjs +1 -2
- package/dist/elements/advanced/NodeHtml/declaration.mjs +1 -2
- package/dist/elements/advanced/NodeHtml/index.d.ts +1 -4
- package/dist/elements/advanced/NodeHtml/index.mjs +1 -2
- package/dist/elements/advanced/PlitziSdk/Settings.mjs +1 -2
- package/dist/elements/advanced/PlitziSdk/declaration.mjs +1 -2
- package/dist/elements/advanced/Reference/PropField.mjs +1 -2
- package/dist/elements/advanced/Reference/Reference.d.ts +2 -5
- package/dist/elements/advanced/Reference/Reference.mjs +63 -62
- package/dist/elements/advanced/Reference/Settings.mjs +1 -2
- package/dist/elements/advanced/Reference/declaration.mjs +1 -2
- package/dist/elements/advanced/Reference/index.d.ts +1 -4
- package/dist/elements/advanced/Reference/index.mjs +1 -2
- package/dist/elements/basic/Button/Button.d.ts +1 -4
- package/dist/elements/basic/Button/Button.mjs +13 -14
- package/dist/elements/basic/Button/Settings.mjs +1 -2
- package/dist/elements/basic/Button/declaration.mjs +1 -2
- package/dist/elements/basic/Button/index.d.ts +1 -4
- package/dist/elements/basic/Button/index.mjs +4 -5
- package/dist/elements/basic/Dropdown/Dropdown.d.ts +1 -4
- package/dist/elements/basic/Dropdown/Dropdown.mjs +14 -15
- package/dist/elements/basic/Dropdown/DropdownContext.mjs +1 -2
- package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.d.ts +1 -4
- package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.mjs +1 -2
- package/dist/elements/basic/Dropdown/DropdownPopup/Settings.mjs +1 -2
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +1 -2
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +1 -4
- package/dist/elements/basic/Dropdown/DropdownPopup/index.mjs +1 -2
- package/dist/elements/basic/Dropdown/Settings.mjs +1 -2
- package/dist/elements/basic/Dropdown/declaration.mjs +1 -2
- package/dist/elements/basic/Dropdown/index.d.ts +2 -8
- package/dist/elements/basic/Dropdown/index.mjs +1 -2
- package/dist/elements/basic/Dropdown/useDropdown.mjs +1 -2
- package/dist/elements/basic/Dropdown/useDropdownTrigger.mjs +1 -2
- package/dist/elements/basic/Heading/Heading.d.ts +1 -4
- package/dist/elements/basic/Heading/Heading.mjs +5 -6
- package/dist/elements/basic/Heading/Settings.mjs +1 -2
- package/dist/elements/basic/Heading/declaration.mjs +1 -2
- package/dist/elements/basic/Heading/index.d.ts +1 -4
- package/dist/elements/basic/Heading/index.mjs +1 -2
- package/dist/elements/basic/Link/Link.d.ts +1 -4
- package/dist/elements/basic/Link/Link.mjs +17 -18
- package/dist/elements/basic/Link/Settings.mjs +2 -3
- package/dist/elements/basic/Link/ariaCurrent.mjs +17 -7
- package/dist/elements/basic/Link/declaration.mjs +1 -2
- package/dist/elements/basic/Link/index.d.ts +1 -4
- package/dist/elements/basic/Link/index.mjs +1 -2
- package/dist/elements/basic/Markdown/Markdown.d.ts +1 -4
- package/dist/elements/basic/Markdown/Markdown.mjs +12 -13
- package/dist/elements/basic/Markdown/Settings.mjs +1 -2
- package/dist/elements/basic/Markdown/declaration.mjs +1 -2
- package/dist/elements/basic/Markdown/hooks/useMarkdownClassNames.mjs +1 -2
- package/dist/elements/basic/Markdown/index.d.ts +1 -4
- package/dist/elements/basic/Markdown/index.mjs +1 -2
- package/dist/elements/basic/Paragraph/Paragraph.d.ts +1 -4
- package/dist/elements/basic/Paragraph/Paragraph.mjs +5 -6
- package/dist/elements/basic/Paragraph/Settings.mjs +1 -2
- package/dist/elements/basic/Paragraph/declaration.mjs +1 -2
- package/dist/elements/basic/Paragraph/index.d.ts +1 -4
- package/dist/elements/basic/Paragraph/index.mjs +1 -2
- package/dist/elements/basic/RichText/RichText.d.ts +1 -4
- package/dist/elements/basic/RichText/RichText.mjs +27 -27
- package/dist/elements/basic/RichText/Settings.mjs +1 -2
- package/dist/elements/basic/RichText/classHtmlParts.mjs +1 -2
- package/dist/elements/basic/RichText/declaration.mjs +1 -2
- package/dist/elements/basic/RichText/index.d.ts +1 -4
- package/dist/elements/basic/RichText/index.mjs +1 -2
- package/dist/elements/basic/RichText/sanitizeHtml.mjs +1 -2
- package/dist/elements/basic/Text/Settings.mjs +1 -2
- package/dist/elements/basic/Text/Text.d.ts +1 -4
- package/dist/elements/basic/Text/Text.mjs +5 -6
- package/dist/elements/basic/Text/declaration.mjs +1 -2
- package/dist/elements/basic/Text/index.d.ts +1 -4
- package/dist/elements/basic/Text/index.mjs +1 -2
- package/dist/elements/basic/ThemeToggle/Settings.mjs +1 -2
- package/dist/elements/basic/ThemeToggle/ThemeToggle.d.ts +2 -5
- package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +2 -3
- package/dist/elements/basic/ThemeToggle/declaration.mjs +1 -2
- package/dist/elements/basic/ThemeToggle/index.d.ts +1 -4
- package/dist/elements/basic/ThemeToggle/index.mjs +1 -2
- package/dist/elements/declarations/index.d.ts +92 -9
- package/dist/elements/declarations/index.mjs +25 -24
- package/dist/elements/form/Form/Form.d.ts +3 -5
- package/dist/elements/form/Form/Form.mjs +21 -22
- package/dist/elements/form/Form/Settings.mjs +1 -2
- package/dist/elements/form/Form/declaration.mjs +1 -2
- package/dist/elements/form/Form/index.d.ts +1 -4
- package/dist/elements/form/Form/index.mjs +1 -2
- package/dist/elements/form/FormControl/FormControl.d.ts +8 -13
- package/dist/elements/form/FormControl/FormControl.mjs +110 -105
- package/dist/elements/form/FormControl/Settings.d.ts +5 -3
- package/dist/elements/form/FormControl/Settings.mjs +115 -174
- package/dist/elements/form/FormControl/components/Label.mjs +1 -2
- package/dist/elements/form/FormControl/components/visuallyHidden.mjs +1 -2
- package/dist/elements/form/FormControl/declaration.d.ts +47 -2
- package/dist/elements/form/FormControl/declaration.mjs +8 -22
- package/dist/elements/form/FormControl/helpers/fieldText.d.ts +5 -0
- package/dist/elements/form/FormControl/helpers/fieldText.mjs +3 -0
- package/dist/elements/form/FormControl/helpers/isBlankValue.d.ts +2 -0
- package/dist/elements/form/FormControl/helpers/isBlankValue.mjs +3 -0
- package/dist/elements/form/FormControl/helpers/isChecked.mjs +1 -2
- package/dist/elements/form/FormControl/helpers/useBlurValidation.mjs +1 -2
- package/dist/elements/form/FormControl/helpers/validateField.mjs +19 -18
- package/dist/elements/form/FormControl/hocs/withFieldValue.d.ts +4 -2
- package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +80 -77
- package/dist/elements/form/FormControl/index.d.ts +46 -5
- package/dist/elements/form/FormControl/index.mjs +1 -2
- package/dist/elements/form/FormControl/inputs/Checkbox.mjs +1 -2
- package/dist/elements/form/FormControl/inputs/FileInput.d.ts +21 -0
- package/dist/elements/form/FormControl/inputs/FileInput.mjs +28 -0
- package/dist/elements/form/FormControl/inputs/Hidden.mjs +1 -2
- package/dist/elements/form/FormControl/inputs/Input.mjs +5 -6
- package/dist/elements/form/FormControl/inputs/Select.mjs +5 -6
- package/dist/elements/form/FormControl/inputs/Textarea.mjs +5 -6
- package/dist/elements/form/FormControl/inputs/useFocusWhenShown.mjs +1 -2
- package/dist/elements/form/FormControl/subTypes.d.ts +17 -0
- package/dist/elements/form/FormControl/subTypes.mjs +57 -0
- package/dist/elements/index.d.ts +3 -1
- package/dist/elements/index.mjs +13 -12
- package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +1 -4
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +32 -33
- package/dist/elements/internal/LayoutContainer/Settings.mjs +1 -2
- package/dist/elements/internal/LayoutContainer/declaration.mjs +1 -2
- package/dist/elements/internal/LayoutContainer/index.d.ts +1 -4
- package/dist/elements/internal/LayoutContainer/index.mjs +1 -2
- package/dist/elements/internal/LayoutContainer/mask.mjs +1 -2
- package/dist/elements/internal/LayoutPicker/LayoutPicker.mjs +4 -5
- package/dist/elements/internal/LayoutPicker/index.mjs +1 -2
- package/dist/elements/internal/Loading/Loading.d.ts +1 -4
- package/dist/elements/internal/Loading/Loading.mjs +1 -2
- package/dist/elements/internal/Loading/Settings.mjs +1 -2
- package/dist/elements/internal/Loading/declaration.mjs +1 -2
- package/dist/elements/internal/Loading/index.d.ts +1 -4
- package/dist/elements/internal/Loading/index.mjs +1 -2
- package/dist/elements/internal/NotFound/NotFound.d.ts +1 -4
- package/dist/elements/internal/NotFound/NotFound.mjs +13 -13
- package/dist/elements/internal/NotFound/Settings.mjs +1 -2
- package/dist/elements/internal/NotFound/declaration.mjs +1 -2
- package/dist/elements/internal/NotFound/index.d.ts +1 -4
- package/dist/elements/internal/NotFound/index.mjs +1 -2
- package/dist/elements/internal/Page/Page.d.ts +1 -4
- package/dist/elements/internal/Page/Page.mjs +15 -16
- package/dist/elements/internal/Page/PageHead.mjs +5 -6
- package/dist/elements/internal/Page/PageWithheld.mjs +29 -29
- package/dist/elements/internal/Page/Settings.d.ts +1 -1
- package/dist/elements/internal/Page/Settings.mjs +23 -12
- package/dist/elements/internal/Page/SharePreview.mjs +1 -2
- package/dist/elements/internal/Page/declaration.mjs +1 -2
- package/dist/elements/internal/Page/index.d.ts +1 -4
- package/dist/elements/internal/Page/index.mjs +1 -2
- package/dist/elements/media/Chart/Chart.d.ts +19 -5
- package/dist/elements/media/Chart/Chart.mjs +410 -103
- package/dist/elements/media/Chart/Settings.d.ts +4 -2
- package/dist/elements/media/Chart/Settings.mjs +22 -17
- package/dist/elements/media/Chart/chartGeometry.d.ts +57 -1
- package/dist/elements/media/Chart/chartGeometry.mjs +71 -16
- package/dist/elements/media/Chart/declaration.d.ts +10 -3
- package/dist/elements/media/Chart/declaration.mjs +8 -5
- package/dist/elements/media/Chart/index.d.ts +11 -7
- package/dist/elements/media/Chart/index.mjs +4 -5
- package/dist/elements/media/Embed/Embed.d.ts +1 -4
- package/dist/elements/media/Embed/Embed.mjs +13 -14
- package/dist/elements/media/Embed/Settings.mjs +1 -2
- package/dist/elements/media/Embed/declaration.d.ts +1 -1
- package/dist/elements/media/Embed/declaration.mjs +1 -2
- package/dist/elements/media/Embed/embeddableSrc.mjs +1 -2
- package/dist/elements/media/Embed/index.d.ts +2 -5
- package/dist/elements/media/Embed/index.mjs +1 -2
- package/dist/elements/media/FontAwesome/FontAwesome.d.ts +1 -4
- package/dist/elements/media/FontAwesome/FontAwesome.mjs +1 -2
- package/dist/elements/media/FontAwesome/Settings.mjs +1 -2
- package/dist/elements/media/FontAwesome/declaration.mjs +1 -2
- package/dist/elements/media/FontAwesome/index.d.ts +1 -4
- package/dist/elements/media/FontAwesome/index.mjs +1 -2
- package/dist/elements/media/Image/Image.d.ts +1 -4
- package/dist/elements/media/Image/Image.mjs +15 -16
- package/dist/elements/media/Image/ImageHelper.mjs +1 -2
- package/dist/elements/media/Image/Settings.mjs +1 -2
- package/dist/elements/media/Image/declaration.d.ts +1 -1
- package/dist/elements/media/Image/declaration.mjs +1 -2
- package/dist/elements/media/Image/index.d.ts +2 -5
- package/dist/elements/media/Image/index.mjs +1 -2
- package/dist/elements/media/Svg/Settings.mjs +1 -2
- package/dist/elements/media/Svg/Svg.d.ts +1 -4
- package/dist/elements/media/Svg/Svg.mjs +17 -17
- package/dist/elements/media/Svg/declaration.mjs +1 -2
- package/dist/elements/media/Svg/index.d.ts +1 -4
- package/dist/elements/media/Svg/index.mjs +1 -2
- package/dist/elements/media/Svg/sanitizeSvg.mjs +1 -2
- package/dist/elements/media/Video/Settings.mjs +1 -2
- package/dist/elements/media/Video/Video.d.ts +1 -4
- package/dist/elements/media/Video/Video.mjs +1 -2
- package/dist/elements/media/Video/declaration.mjs +1 -2
- package/dist/elements/media/Video/index.d.ts +1 -4
- package/dist/elements/media/Video/index.mjs +1 -2
- package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +1 -4
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +223 -209
- package/dist/elements/provider/ApiContainer/Settings.mjs +6 -7
- package/dist/elements/provider/ApiContainer/components/FiltersInput/FiltersInput.mjs +1 -2
- package/dist/elements/provider/ApiContainer/components/FiltersInput/index.mjs +1 -2
- package/dist/elements/provider/ApiContainer/declaration.d.ts +2 -2
- package/dist/elements/provider/ApiContainer/declaration.mjs +1 -2
- package/dist/elements/provider/ApiContainer/helpers/loadingSlot.mjs +1 -2
- package/dist/elements/provider/ApiContainer/helpers/providerOutcome.mjs +1 -2
- package/dist/elements/provider/ApiContainer/helpers/queryInput.mjs +1 -2
- package/dist/elements/provider/ApiContainer/helpers/serverMock.mjs +1 -2
- package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +1 -2
- package/dist/elements/provider/ApiContainer/hooks/useAutoRefresh.mjs +1 -2
- package/dist/elements/provider/ApiContainer/hooks/useInputRefresh.mjs +1 -2
- package/dist/elements/provider/ApiContainer/hooks/useProviderPagination.mjs +1 -2
- package/dist/elements/provider/ApiContainer/hooks/useProviderWrite.d.ts +4 -2
- package/dist/elements/provider/ApiContainer/hooks/useProviderWrite.mjs +38 -34
- package/dist/elements/provider/ApiContainer/index.d.ts +3 -6
- package/dist/elements/provider/ApiContainer/index.mjs +4 -5
- package/dist/elements/provider/Channel/Channel.d.ts +1 -4
- package/dist/elements/provider/Channel/Channel.mjs +18 -19
- package/dist/elements/provider/Channel/Settings.mjs +1 -2
- package/dist/elements/provider/Channel/declaration.mjs +1 -2
- package/dist/elements/provider/Channel/index.d.ts +1 -4
- package/dist/elements/provider/Channel/index.mjs +4 -5
- package/dist/elements/settings.mjs +21 -20
- package/dist/elements/structure/Carousel/Carousel.d.ts +1 -4
- package/dist/elements/structure/Carousel/Carousel.mjs +60 -61
- package/dist/elements/structure/Carousel/CarouselContext.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.d.ts +1 -4
- package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/Settings.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/CarouselSlide.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/MarqueeTrack.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +1 -4
- package/dist/elements/structure/Carousel/CarouselTrack/index.mjs +4 -5
- package/dist/elements/structure/Carousel/Settings.mjs +1 -2
- package/dist/elements/structure/Carousel/carouselIndex.mjs +1 -2
- package/dist/elements/structure/Carousel/declaration.mjs +1 -2
- package/dist/elements/structure/Carousel/index.d.ts +2 -8
- package/dist/elements/structure/Carousel/index.mjs +7 -8
- package/dist/elements/structure/Carousel/useAutoplay.mjs +2 -3
- package/dist/elements/structure/Container/Container.d.ts +1 -4
- package/dist/elements/structure/Container/Container.mjs +1 -2
- package/dist/elements/structure/Container/Settings.mjs +1 -2
- package/dist/elements/structure/Container/declaration.mjs +1 -2
- package/dist/elements/structure/Container/index.d.ts +1 -4
- package/dist/elements/structure/Container/index.mjs +4 -5
- package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +1 -4
- package/dist/elements/structure/DialogContainer/DialogContainer.mjs +1 -2
- package/dist/elements/structure/DialogContainer/Settings.mjs +1 -2
- package/dist/elements/structure/DialogContainer/declaration.mjs +1 -2
- package/dist/elements/structure/DialogContainer/index.d.ts +1 -4
- package/dist/elements/structure/DialogContainer/index.mjs +1 -2
- package/dist/elements/structure/FocusGroup/FocusGroup.d.ts +21 -0
- package/dist/elements/structure/FocusGroup/FocusGroup.mjs +26 -0
- package/dist/elements/structure/FocusGroup/Settings.d.ts +8 -0
- package/dist/elements/structure/FocusGroup/Settings.mjs +38 -0
- package/dist/elements/structure/FocusGroup/arrowFocus.d.ts +12 -0
- package/dist/elements/structure/FocusGroup/arrowFocus.mjs +29 -0
- package/dist/elements/structure/FocusGroup/declaration.d.ts +36 -0
- package/dist/elements/structure/FocusGroup/declaration.mjs +27 -0
- package/dist/elements/structure/FocusGroup/index.d.ts +34 -0
- package/dist/elements/structure/FocusGroup/index.mjs +5 -0
- package/dist/elements/structure/List/List.d.ts +1 -4
- package/dist/elements/structure/List/List.mjs +10 -11
- package/dist/elements/structure/List/ListItem/ListItem.d.ts +1 -4
- package/dist/elements/structure/List/ListItem/ListItem.mjs +1 -2
- package/dist/elements/structure/List/ListItem/Settings.mjs +1 -2
- package/dist/elements/structure/List/ListItem/declaration.mjs +1 -2
- package/dist/elements/structure/List/ListItem/index.d.ts +1 -4
- package/dist/elements/structure/List/ListItem/index.mjs +1 -2
- package/dist/elements/structure/List/Settings.mjs +1 -2
- package/dist/elements/structure/List/declaration.mjs +1 -2
- package/dist/elements/structure/List/index.d.ts +2 -8
- package/dist/elements/structure/List/index.mjs +1 -2
- package/dist/elements/structure/List/modes/ListBasic.mjs +1 -2
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +48 -45
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +8 -9
- package/dist/elements/structure/List/modes/ListControlled/index.mjs +1 -2
- package/dist/elements/structure/List/modes/ListControlled/rowKeys.mjs +1 -2
- package/dist/elements/structure/ModalContainer/ModalContainer.d.ts +1 -4
- package/dist/elements/structure/ModalContainer/ModalContainer.mjs +1 -2
- package/dist/elements/structure/ModalContainer/Settings.mjs +1 -2
- package/dist/elements/structure/ModalContainer/declaration.mjs +1 -2
- package/dist/elements/structure/ModalContainer/index.d.ts +1 -4
- package/dist/elements/structure/ModalContainer/index.mjs +1 -2
- package/dist/elements/structure/Overlay/OverlayShell.mjs +5 -6
- package/dist/elements/structure/Overlay/metadataOf.mjs +1 -2
- package/dist/elements/structure/Overlay/useModalDialog.mjs +2 -3
- package/dist/elements/structure/Overlay/useOverlay.mjs +12 -13
- package/dist/elements/structure/Pagination/Pagination.d.ts +1 -4
- package/dist/elements/structure/Pagination/Pagination.mjs +14 -15
- package/dist/elements/structure/Pagination/Settings.mjs +1 -2
- package/dist/elements/structure/Pagination/buildPageWindow.mjs +1 -2
- package/dist/elements/structure/Pagination/declaration.mjs +1 -2
- package/dist/elements/structure/Pagination/index.d.ts +1 -4
- package/dist/elements/structure/Pagination/index.mjs +1 -2
- package/dist/elements/structure/TabContainer/Settings.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainer.d.ts +1 -4
- package/dist/elements/structure/TabContainer/TabContainer.mjs +11 -12
- package/dist/elements/structure/TabContainer/TabContainerBody/Settings.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +1 -4
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +1 -4
- package/dist/elements/structure/TabContainer/TabContainerBody/index.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerContext.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerHeader/Settings.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +1 -4
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +1 -4
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerItem/Settings.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +1 -4
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +1 -2
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +1 -4
- package/dist/elements/structure/TabContainer/TabContainerItem/index.mjs +1 -2
- package/dist/elements/structure/TabContainer/declaration.mjs +1 -2
- package/dist/elements/structure/TabContainer/index.d.ts +4 -16
- package/dist/elements/structure/TabContainer/index.mjs +1 -2
- package/dist/elements/structure/TabContainer/useTabItems.mjs +1 -2
- package/dist/elements/useSettingsUpdate.mjs +1 -2
- package/dist/index.d.ts +268 -163
- package/dist/index.mjs +28 -26
- package/dist/realtime/useChannel.mjs +1 -2
- package/dist/realtime/useJob.mjs +1 -2
- package/package.json +18 -15
|
@@ -2,7 +2,7 @@ import { useCallback as e } from "react";
|
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import r from "@plitzi/plitzi-ui/Checkbox";
|
|
4
4
|
import i from "@plitzi/plitzi-ui/TextArea";
|
|
5
|
-
|
|
5
|
+
// src/elements/basic/Text/Settings.tsx
|
|
6
6
|
var a = ({ content: a = "", decorative: o = !1, onUpdate: s }) => {
|
|
7
7
|
let c = e((e) => s?.("content", e), [s]), l = e((e) => s?.("decorative", e.target.checked), [s]);
|
|
8
8
|
return /* @__PURE__ */ n("div", {
|
|
@@ -21,5 +21,4 @@ var a = ({ content: a = "", decorative: o = !1, onUpdate: s }) => {
|
|
|
21
21
|
})]
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { a as default };
|
|
@@ -12,9 +12,6 @@ export type TextProps = {
|
|
|
12
12
|
decorative?: boolean;
|
|
13
13
|
};
|
|
14
14
|
declare const Text: ({ ref, content, className, title, decorative }: TextProps) => import('react').JSX.Element;
|
|
15
|
-
declare const _default:
|
|
16
|
-
(props: import('../../..').WithElementProps<TextProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
15
|
+
declare const _default: import('react').FC<import('../../..').WithElementProps<TextProps>>;
|
|
19
16
|
export default _default;
|
|
20
17
|
export { Text };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import e from "../../../Element/hocs/withElement.mjs";
|
|
2
|
-
import
|
|
3
|
-
import n from "../../../Element/
|
|
2
|
+
import t from "../../../Element/hooks/useEditableContent.mjs";
|
|
3
|
+
import { RootElement as n } from "../../../Element/RootElement.mjs";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
import a from "clsx";
|
|
6
6
|
import o from "@plitzi/plitzi-ui/ContentEditable";
|
|
7
|
-
|
|
7
|
+
// src/elements/basic/Text/Text.tsx
|
|
8
8
|
var s = ({ ref: e, content: s, className: c = "", title: l = "", decorative: u = !1 }) => {
|
|
9
|
-
let { previewMode: d, text: f, handleChange: p, emptyMark: m } =
|
|
10
|
-
return /* @__PURE__ */ i(
|
|
9
|
+
let { previewMode: d, text: f, handleChange: p, emptyMark: m } = t(s);
|
|
10
|
+
return /* @__PURE__ */ i(n, {
|
|
11
11
|
ref: e,
|
|
12
12
|
className: a("plitzi-component__text", c),
|
|
13
13
|
title: l || void 0,
|
|
@@ -21,5 +21,4 @@ var s = ({ ref: e, content: s, className: c = "", title: l = "", decorative: u =
|
|
|
21
21
|
})]
|
|
22
22
|
});
|
|
23
23
|
}, c = e(s);
|
|
24
|
-
//#endregion
|
|
25
24
|
export { s as Text, c as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring";
|
|
2
|
-
|
|
2
|
+
// src/elements/basic/Text/declaration.ts
|
|
3
3
|
var t = e()({
|
|
4
4
|
type: "text",
|
|
5
5
|
contentAttributes: ["content"],
|
|
@@ -17,5 +17,4 @@ var t = e()({
|
|
|
17
17
|
defaultStyle: { style: { base: { default: { display: "inline" } } } }
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
//#endregion
|
|
21
20
|
export { t as default };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
declare const Text: {
|
|
2
|
-
(props: import('../../..').WithElementProps<import('./Text').TextProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
3
|
-
displayName: string;
|
|
4
|
-
} & {
|
|
1
|
+
declare const Text: import('react').FC<import('../../..').WithElementProps<import('./Text').TextProps>> & {
|
|
5
2
|
readonly type: "text";
|
|
6
3
|
readonly contentAttributes: readonly ["content"];
|
|
7
4
|
readonly content: {
|
|
@@ -3,7 +3,7 @@ import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
|
3
3
|
import r from "@plitzi/plitzi-ui/Checkbox";
|
|
4
4
|
import i from "@plitzi/plitzi-ui/Input";
|
|
5
5
|
import a from "@plitzi/plitzi-ui/Select";
|
|
6
|
-
|
|
6
|
+
// src/elements/basic/ThemeToggle/Settings.tsx
|
|
7
7
|
var o = ({ subType: o = "switch", lightLabel: s = "Light", darkLabel: c = "Dark", systemLabel: l = "System", showSystem: u = !1, onUpdate: d }) => {
|
|
8
8
|
let f = e(d);
|
|
9
9
|
return /* @__PURE__ */ n("div", {
|
|
@@ -45,5 +45,4 @@ var o = ({ subType: o = "switch", lightLabel: s = "Light", darkLabel: c = "Dark"
|
|
|
45
45
|
]
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
-
//#endregion
|
|
49
48
|
export { o as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
2
|
export type ThemeToggleProps = {
|
|
3
3
|
ref?: RefObject<HTMLElement>;
|
|
4
4
|
className?: string;
|
|
@@ -23,9 +23,6 @@ export type ThemeToggleProps = {
|
|
|
23
23
|
* would either flash the wrong icon on every load or force the page to wait for storage before painting.
|
|
24
24
|
*/
|
|
25
25
|
declare const ThemeToggle: ({ ref, className, subType, lightLabel, darkLabel, systemLabel, showSystem }: ThemeToggleProps) => import('react').JSX.Element;
|
|
26
|
-
declare const _default:
|
|
27
|
-
(props: import('../../..').WithElementProps<ThemeToggleProps>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
28
|
-
displayName: string;
|
|
29
|
-
};
|
|
26
|
+
declare const _default: import('react').FC<import('../../..').WithElementProps<ThemeToggleProps>>;
|
|
30
27
|
export default _default;
|
|
31
28
|
export { ThemeToggle };
|
|
@@ -7,8 +7,8 @@ import { usePlitzi as u } from "@plitzi/sdk-shared/hooks";
|
|
|
7
7
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
8
|
import p from "clsx";
|
|
9
9
|
import { InteractionsContext as m } from "@plitzi/sdk-interactions";
|
|
10
|
-
import { useTheme as h } from "@plitzi/sdk-shared/theme";
|
|
11
|
-
|
|
10
|
+
import { useTheme as h } from "@plitzi/sdk-shared/theme/react";
|
|
11
|
+
// src/elements/basic/ThemeToggle/ThemeToggle.tsx
|
|
12
12
|
var g = () => () => {}, _ = () => !0, v = () => !1, y = () => /* @__PURE__ */ f("svg", {
|
|
13
13
|
viewBox: "0 0 24 24",
|
|
14
14
|
width: "1em",
|
|
@@ -109,5 +109,4 @@ var g = () => () => {}, _ = () => !0, v = () => !1, y = () => /* @__PURE__ */ f(
|
|
|
109
109
|
})]
|
|
110
110
|
});
|
|
111
111
|
}, S = t(x);
|
|
112
|
-
//#endregion
|
|
113
112
|
export { x as ThemeToggle, S as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring";
|
|
2
|
-
|
|
2
|
+
// src/elements/basic/ThemeToggle/declaration.ts
|
|
3
3
|
var n = {
|
|
4
4
|
"margin-top": "0px",
|
|
5
5
|
"margin-right": "0px",
|
|
@@ -70,5 +70,4 @@ var n = {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
//#endregion
|
|
74
73
|
export { r as default };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
declare const ThemeToggle: {
|
|
2
|
-
(props: import('../../..').WithElementProps<import('./ThemeToggle').ThemeToggleProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
3
|
-
displayName: string;
|
|
4
|
-
} & {
|
|
1
|
+
declare const ThemeToggle: import('react').FC<import('../../..').WithElementProps<import('./ThemeToggle').ThemeToggleProps>> & {
|
|
5
2
|
readonly type: "themeToggle";
|
|
6
3
|
readonly contentAttributes: readonly ["lightLabel", "darkLabel", "systemLabel"];
|
|
7
4
|
readonly attributeValues: {
|
|
@@ -32,6 +32,7 @@ import { default as CarouselTrackDeclaration } from '../structure/Carousel/Carou
|
|
|
32
32
|
import { default as CarouselDeclaration } from '../structure/Carousel/declaration';
|
|
33
33
|
import { default as ContainerDeclaration } from '../structure/Container/declaration';
|
|
34
34
|
import { default as DialogContainerDeclaration } from '../structure/DialogContainer/declaration';
|
|
35
|
+
import { default as FocusGroupDeclaration } from '../structure/FocusGroup/declaration';
|
|
35
36
|
import { default as ListDeclaration } from '../structure/List/declaration';
|
|
36
37
|
import { default as ListItemDeclaration } from '../structure/List/ListItem/declaration';
|
|
37
38
|
import { default as ModalContainerDeclaration } from '../structure/ModalContainer/declaration';
|
|
@@ -188,11 +189,11 @@ export declare const elementDeclarations: {
|
|
|
188
189
|
};
|
|
189
190
|
};
|
|
190
191
|
}, Partial<{
|
|
191
|
-
when?: import('@plitzi/
|
|
192
|
-
action?: string | undefined;
|
|
192
|
+
when?: import('@plitzi/plitzi-ui/components/QueryBuilder').RuleGroup | undefined;
|
|
193
193
|
cache?: boolean | undefined;
|
|
194
194
|
endpoint?: string | undefined;
|
|
195
195
|
input?: (Record<string, unknown> | string) | undefined;
|
|
196
|
+
action?: string | undefined;
|
|
196
197
|
method?: "get" | "post" | "put" | "delete" | "patch" | undefined;
|
|
197
198
|
resource?: string | undefined;
|
|
198
199
|
headers?: Record<string, string> | undefined;
|
|
@@ -1038,6 +1039,37 @@ export declare const elementDeclarations: {
|
|
|
1038
1039
|
acceptButtonLabelLoading?: string | undefined;
|
|
1039
1040
|
rejectButtonLabel?: string | undefined;
|
|
1040
1041
|
}>>;
|
|
1042
|
+
readonly FocusGroup: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
1043
|
+
readonly type: "focusGroup";
|
|
1044
|
+
readonly attributeValues: {
|
|
1045
|
+
readonly subType: readonly string[];
|
|
1046
|
+
};
|
|
1047
|
+
readonly content: {
|
|
1048
|
+
readonly attributes: {
|
|
1049
|
+
readonly subType: "div";
|
|
1050
|
+
};
|
|
1051
|
+
readonly definition: {
|
|
1052
|
+
readonly label: "Focus Group";
|
|
1053
|
+
readonly description: string;
|
|
1054
|
+
readonly items: [];
|
|
1055
|
+
};
|
|
1056
|
+
readonly market: {
|
|
1057
|
+
readonly category: "structure";
|
|
1058
|
+
readonly icon: "fa-solid fa-arrows-up-down";
|
|
1059
|
+
};
|
|
1060
|
+
readonly defaultStyle: {
|
|
1061
|
+
readonly style: {
|
|
1062
|
+
readonly base: {
|
|
1063
|
+
readonly default: {};
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
readonly subTypes: {};
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
1069
|
+
}, Partial<{
|
|
1070
|
+
label?: string | undefined;
|
|
1071
|
+
subType?: "div" | "nav" | "section" | undefined;
|
|
1072
|
+
}>>;
|
|
1041
1073
|
readonly Dropdown: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
1042
1074
|
readonly type: "dropdown";
|
|
1043
1075
|
readonly attributeValues: {
|
|
@@ -1214,10 +1246,10 @@ export declare const elementDeclarations: {
|
|
|
1214
1246
|
};
|
|
1215
1247
|
}, Partial<{
|
|
1216
1248
|
title?: string | undefined;
|
|
1217
|
-
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
1218
1249
|
src?: string | undefined;
|
|
1219
1250
|
allow?: string | undefined;
|
|
1220
1251
|
loading?: "lazy" | "eager" | undefined;
|
|
1252
|
+
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
1221
1253
|
sandbox?: string | undefined;
|
|
1222
1254
|
}>>;
|
|
1223
1255
|
readonly FontAwesome: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
@@ -1369,7 +1401,7 @@ export declare const elementDeclarations: {
|
|
|
1369
1401
|
readonly type: "formControl";
|
|
1370
1402
|
readonly contentAttributes: readonly ["label", "placeholder", "options", "requiredMessage", "minLengthMessage", "maxLengthMessage", "minMessage", "maxMessage", "formatMessage", "patternMessage", "matchesMessage"];
|
|
1371
1403
|
readonly attributeValues: {
|
|
1372
|
-
readonly subType: readonly
|
|
1404
|
+
readonly subType: readonly ["text", "number", "email", "password", "search", "url", "tel", "date", "time", "checkbox", "switch", "select", "textarea", "hidden", "color", "file"];
|
|
1373
1405
|
};
|
|
1374
1406
|
readonly triggers: {
|
|
1375
1407
|
readonly onChange: {
|
|
@@ -1391,6 +1423,7 @@ export declare const elementDeclarations: {
|
|
|
1391
1423
|
readonly label: "Label";
|
|
1392
1424
|
readonly hideLabel: false;
|
|
1393
1425
|
readonly placeholder: "";
|
|
1426
|
+
readonly accept: "";
|
|
1394
1427
|
readonly defaultValue: "";
|
|
1395
1428
|
readonly autoComplete: true;
|
|
1396
1429
|
readonly autoFocus: false;
|
|
@@ -1913,6 +1946,49 @@ export declare const elementDeclarations: {
|
|
|
1913
1946
|
};
|
|
1914
1947
|
};
|
|
1915
1948
|
};
|
|
1949
|
+
readonly file: {
|
|
1950
|
+
name: string;
|
|
1951
|
+
displayMode: "desktop";
|
|
1952
|
+
style: {
|
|
1953
|
+
label: {
|
|
1954
|
+
default: {
|
|
1955
|
+
'margin-bottom': string;
|
|
1956
|
+
display: string;
|
|
1957
|
+
cursor: string;
|
|
1958
|
+
'font-weight': string;
|
|
1959
|
+
'font-size': string;
|
|
1960
|
+
'line-height': string;
|
|
1961
|
+
color: string;
|
|
1962
|
+
'user-select': string;
|
|
1963
|
+
};
|
|
1964
|
+
};
|
|
1965
|
+
requiredMark: {
|
|
1966
|
+
default: {
|
|
1967
|
+
color: string;
|
|
1968
|
+
'margin-left': string;
|
|
1969
|
+
};
|
|
1970
|
+
};
|
|
1971
|
+
error: {
|
|
1972
|
+
default: {
|
|
1973
|
+
display: string;
|
|
1974
|
+
color: string;
|
|
1975
|
+
'margin-top': string;
|
|
1976
|
+
};
|
|
1977
|
+
};
|
|
1978
|
+
icon?: {
|
|
1979
|
+
default: Record<string, string>;
|
|
1980
|
+
} | undefined;
|
|
1981
|
+
field?: {
|
|
1982
|
+
default: Record<string, string>;
|
|
1983
|
+
} | undefined;
|
|
1984
|
+
base: {
|
|
1985
|
+
default: {};
|
|
1986
|
+
};
|
|
1987
|
+
input: {
|
|
1988
|
+
default: Record<string, string>;
|
|
1989
|
+
};
|
|
1990
|
+
};
|
|
1991
|
+
};
|
|
1916
1992
|
readonly textarea: {
|
|
1917
1993
|
name: string;
|
|
1918
1994
|
displayMode: "desktop";
|
|
@@ -2278,10 +2354,10 @@ export declare const elementDeclarations: {
|
|
|
2278
2354
|
width?: number | undefined;
|
|
2279
2355
|
resize?: boolean | undefined;
|
|
2280
2356
|
height?: number | undefined;
|
|
2281
|
-
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
2282
2357
|
sizes?: string | undefined;
|
|
2283
2358
|
src?: string | undefined;
|
|
2284
2359
|
alt?: string | undefined;
|
|
2360
|
+
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
2285
2361
|
decorative?: boolean | undefined;
|
|
2286
2362
|
loadMode?: "auto" | "eager" | "lazy" | undefined;
|
|
2287
2363
|
}>>;
|
|
@@ -3405,6 +3481,9 @@ export declare const elementDeclarations: {
|
|
|
3405
3481
|
readonly kind: "bar";
|
|
3406
3482
|
readonly labelField: "label";
|
|
3407
3483
|
readonly valueField: "value";
|
|
3484
|
+
readonly series: "";
|
|
3485
|
+
readonly titleField: "";
|
|
3486
|
+
readonly sync: "";
|
|
3408
3487
|
readonly label: "";
|
|
3409
3488
|
readonly format: "number";
|
|
3410
3489
|
readonly showValues: false;
|
|
@@ -3426,6 +3505,7 @@ export declare const elementDeclarations: {
|
|
|
3426
3505
|
readonly axisLabel: "";
|
|
3427
3506
|
readonly valueLabel: "";
|
|
3428
3507
|
readonly legend: "";
|
|
3508
|
+
readonly tooltip: "";
|
|
3429
3509
|
readonly empty: "";
|
|
3430
3510
|
};
|
|
3431
3511
|
};
|
|
@@ -3507,8 +3587,8 @@ export declare const elementDeclarations: {
|
|
|
3507
3587
|
readonly 'row-gap': "4px";
|
|
3508
3588
|
readonly 'list-style-type': "none";
|
|
3509
3589
|
readonly 'padding-left': "0px";
|
|
3510
|
-
readonly 'margin-top': "
|
|
3511
|
-
readonly 'font-size': "
|
|
3590
|
+
readonly 'margin-top': "8px";
|
|
3591
|
+
readonly 'font-size': "12px";
|
|
3512
3592
|
};
|
|
3513
3593
|
};
|
|
3514
3594
|
readonly empty: {
|
|
@@ -3521,14 +3601,17 @@ export declare const elementDeclarations: {
|
|
|
3521
3601
|
};
|
|
3522
3602
|
};
|
|
3523
3603
|
}, Partial<{
|
|
3524
|
-
format?: "number" | "percent" | "compact" | undefined;
|
|
3525
3604
|
kind?: "bar" | "line" | "area" | "donut" | undefined;
|
|
3605
|
+
format?: "number" | "percent" | "compact" | undefined;
|
|
3606
|
+
sync?: string | undefined;
|
|
3526
3607
|
label?: string | undefined;
|
|
3527
3608
|
max?: number | undefined;
|
|
3528
3609
|
items?: unknown;
|
|
3529
3610
|
height?: number | undefined;
|
|
3530
3611
|
labelField?: string | undefined;
|
|
3531
3612
|
valueField?: string | undefined;
|
|
3613
|
+
titleField?: string | undefined;
|
|
3614
|
+
series?: unknown;
|
|
3532
3615
|
showValues?: boolean | undefined;
|
|
3533
3616
|
emptyText?: string | undefined;
|
|
3534
3617
|
}>>;
|
|
@@ -3861,7 +3944,7 @@ export declare const elementDeclarations: {
|
|
|
3861
3944
|
}>>;
|
|
3862
3945
|
};
|
|
3863
3946
|
export type ElementDeclarationName = keyof typeof elementDeclarations;
|
|
3864
|
-
export { ApiContainerDeclaration, BlockHtmlDeclaration, BlockJsxDeclaration, ButtonDeclaration, CarouselDeclaration, CarouselTrackDeclaration, ChannelDeclaration, ContainerDeclaration, CustomDeclaration, DialogContainerDeclaration, DropdownDeclaration, DropdownPopupDeclaration, EmbedDeclaration, FontAwesomeDeclaration, FormControlDeclaration, FormDeclaration, HeadingDeclaration, ImageDeclaration, LayoutContainerDeclaration, LinkDeclaration, ListDeclaration, ListItemDeclaration, LoadingDeclaration, MarkdownDeclaration, ModalContainerDeclaration, NodeHtmlDeclaration, NotFoundDeclaration, PageDeclaration, PaginationDeclaration, ParagraphDeclaration, PlitziSdkDeclaration, ReferenceDeclaration, RichTextDeclaration, ChartDeclaration, SvgDeclaration, TabContainerBodyDeclaration, TabContainerDeclaration, TabContainerHeaderDeclaration, TabContainerItemDeclaration, TextDeclaration, ThemeToggleDeclaration, VideoDeclaration };
|
|
3947
|
+
export { ApiContainerDeclaration, BlockHtmlDeclaration, BlockJsxDeclaration, ButtonDeclaration, CarouselDeclaration, CarouselTrackDeclaration, ChannelDeclaration, ContainerDeclaration, CustomDeclaration, DialogContainerDeclaration, FocusGroupDeclaration, DropdownDeclaration, DropdownPopupDeclaration, EmbedDeclaration, FontAwesomeDeclaration, FormControlDeclaration, FormDeclaration, HeadingDeclaration, ImageDeclaration, LayoutContainerDeclaration, LinkDeclaration, ListDeclaration, ListItemDeclaration, LoadingDeclaration, MarkdownDeclaration, ModalContainerDeclaration, NodeHtmlDeclaration, NotFoundDeclaration, PageDeclaration, PaginationDeclaration, ParagraphDeclaration, PlitziSdkDeclaration, ReferenceDeclaration, RichTextDeclaration, ChartDeclaration, SvgDeclaration, TabContainerBodyDeclaration, TabContainerDeclaration, TabContainerHeaderDeclaration, TabContainerItemDeclaration, TextDeclaration, ThemeToggleDeclaration, VideoDeclaration };
|
|
3865
3948
|
/**
|
|
3866
3949
|
* Each type's `serverTemplates`, by the type a document names: the attributes the page server evaluates against a
|
|
3867
3950
|
* context of its own, which the element runtime leaves as written and the authoring lint holds to that context.
|
|
@@ -32,19 +32,20 @@ import M from "../structure/Carousel/CarouselTrack/declaration.mjs";
|
|
|
32
32
|
import N from "../structure/Carousel/declaration.mjs";
|
|
33
33
|
import P, { NAMEABLE_CONTAINER_TAGS as F } from "../structure/Container/declaration.mjs";
|
|
34
34
|
import I from "../structure/DialogContainer/declaration.mjs";
|
|
35
|
-
import L from "../structure/
|
|
36
|
-
import R from "../structure/List/
|
|
37
|
-
import z from "../structure/
|
|
38
|
-
import B from "../structure/
|
|
39
|
-
import V from "../structure/
|
|
40
|
-
import H from "../structure/TabContainer/
|
|
41
|
-
import U from "../structure/TabContainer/
|
|
42
|
-
import W from "../structure/TabContainer/
|
|
43
|
-
import
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
import L from "../structure/FocusGroup/declaration.mjs";
|
|
36
|
+
import R from "../structure/List/declaration.mjs";
|
|
37
|
+
import z from "../structure/List/ListItem/declaration.mjs";
|
|
38
|
+
import B from "../structure/ModalContainer/declaration.mjs";
|
|
39
|
+
import V from "../structure/Pagination/declaration.mjs";
|
|
40
|
+
import H from "../structure/TabContainer/declaration.mjs";
|
|
41
|
+
import U from "../structure/TabContainer/TabContainerBody/declaration.mjs";
|
|
42
|
+
import W from "../structure/TabContainer/TabContainerHeader/declaration.mjs";
|
|
43
|
+
import G from "../structure/TabContainer/TabContainerItem/declaration.mjs";
|
|
44
|
+
import { interactionBasicTriggers as K } from "../../Element/helpers/elementConstants.mjs";
|
|
45
|
+
import { HTML_TAG_PARTS as q } from "../basic/RichText/classHtmlParts.mjs";
|
|
46
|
+
import { isSvgMarkup as J } from "../media/Svg/sanitizeSvg.mjs";
|
|
47
|
+
// src/elements/declarations/index.ts
|
|
48
|
+
var Y = {
|
|
48
49
|
ApiContainer: A,
|
|
49
50
|
BlockHtml: e,
|
|
50
51
|
BlockJsx: t,
|
|
@@ -55,6 +56,7 @@ var J = {
|
|
|
55
56
|
Container: P,
|
|
56
57
|
Custom: n,
|
|
57
58
|
DialogContainer: I,
|
|
59
|
+
FocusGroup: L,
|
|
58
60
|
Dropdown: s,
|
|
59
61
|
DropdownPopup: c,
|
|
60
62
|
Embed: T,
|
|
@@ -65,28 +67,27 @@ var J = {
|
|
|
65
67
|
Image: D,
|
|
66
68
|
LayoutContainer: v,
|
|
67
69
|
Link: u,
|
|
68
|
-
List:
|
|
69
|
-
ListItem:
|
|
70
|
+
List: R,
|
|
71
|
+
ListItem: z,
|
|
70
72
|
Loading: y,
|
|
71
73
|
Markdown: d,
|
|
72
|
-
ModalContainer:
|
|
74
|
+
ModalContainer: B,
|
|
73
75
|
NodeHtml: r,
|
|
74
76
|
NotFound: b,
|
|
75
77
|
Page: x,
|
|
76
|
-
Pagination:
|
|
78
|
+
Pagination: V,
|
|
77
79
|
Paragraph: f,
|
|
78
80
|
PlitziSdk: i,
|
|
79
81
|
Reference: a,
|
|
80
82
|
RichText: p,
|
|
81
83
|
Chart: w,
|
|
82
84
|
Svg: O,
|
|
83
|
-
TabContainer:
|
|
84
|
-
TabContainerBody:
|
|
85
|
-
TabContainerHeader:
|
|
86
|
-
TabContainerItem:
|
|
85
|
+
TabContainer: H,
|
|
86
|
+
TabContainerBody: U,
|
|
87
|
+
TabContainerHeader: W,
|
|
88
|
+
TabContainerItem: G,
|
|
87
89
|
Text: m,
|
|
88
90
|
ThemeToggle: h,
|
|
89
91
|
Video: k
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
export { A as ApiContainerDeclaration, e as BlockHtmlDeclaration, t as BlockJsxDeclaration, o as ButtonDeclaration, N as CarouselDeclaration, M as CarouselTrackDeclaration, j as ChannelDeclaration, w as ChartDeclaration, P as ContainerDeclaration, n as CustomDeclaration, S as DOCUMENT_SCROLLS, I as DialogContainerDeclaration, s as DropdownDeclaration, c as DropdownPopupDeclaration, T as EmbedDeclaration, E as FontAwesomeDeclaration, _ as FormControlDeclaration, g as FormDeclaration, K as HTML_TAG_PARTS, l as HeadingDeclaration, D as ImageDeclaration, v as LayoutContainerDeclaration, u as LinkDeclaration, L as ListDeclaration, R as ListItemDeclaration, y as LoadingDeclaration, d as MarkdownDeclaration, z as ModalContainerDeclaration, F as NAMEABLE_CONTAINER_TAGS, r as NodeHtmlDeclaration, b as NotFoundDeclaration, x as PageDeclaration, B as PaginationDeclaration, f as ParagraphDeclaration, i as PlitziSdkDeclaration, a as ReferenceDeclaration, p as RichTextDeclaration, O as SvgDeclaration, H as TabContainerBodyDeclaration, V as TabContainerDeclaration, U as TabContainerHeaderDeclaration, W as TabContainerItemDeclaration, m as TextDeclaration, h as ThemeToggleDeclaration, k as VideoDeclaration, X as contentAttributesByType, Z as contentAttributesOf, J as elementDeclarations, G as interactionBasicTriggers, C as isDocumentScroll, q as isSvgMarkup, Y as serverTemplatesByType };
|
|
92
|
+
}, X = Object.fromEntries(Object.values(Y).flatMap((e) => "serverTemplates" in e ? [[e.type, e.serverTemplates]] : [])), Z = Object.fromEntries(Object.values(Y).flatMap((e) => "contentAttributes" in e ? [[e.type, e.contentAttributes]] : [])), Q = (e) => Z[e] ?? [];
|
|
93
|
+
export { A as ApiContainerDeclaration, e as BlockHtmlDeclaration, t as BlockJsxDeclaration, o as ButtonDeclaration, N as CarouselDeclaration, M as CarouselTrackDeclaration, j as ChannelDeclaration, w as ChartDeclaration, P as ContainerDeclaration, n as CustomDeclaration, S as DOCUMENT_SCROLLS, I as DialogContainerDeclaration, s as DropdownDeclaration, c as DropdownPopupDeclaration, T as EmbedDeclaration, L as FocusGroupDeclaration, E as FontAwesomeDeclaration, _ as FormControlDeclaration, g as FormDeclaration, q as HTML_TAG_PARTS, l as HeadingDeclaration, D as ImageDeclaration, v as LayoutContainerDeclaration, u as LinkDeclaration, R as ListDeclaration, z as ListItemDeclaration, y as LoadingDeclaration, d as MarkdownDeclaration, B as ModalContainerDeclaration, F as NAMEABLE_CONTAINER_TAGS, r as NodeHtmlDeclaration, b as NotFoundDeclaration, x as PageDeclaration, V as PaginationDeclaration, f as ParagraphDeclaration, i as PlitziSdkDeclaration, a as ReferenceDeclaration, p as RichTextDeclaration, O as SvgDeclaration, U as TabContainerBodyDeclaration, H as TabContainerDeclaration, W as TabContainerHeaderDeclaration, G as TabContainerItemDeclaration, m as TextDeclaration, h as ThemeToggleDeclaration, k as VideoDeclaration, Z as contentAttributesByType, Q as contentAttributesOf, Y as elementDeclarations, K as interactionBasicTriggers, C as isDocumentScroll, J as isSvgMarkup, X as serverTemplatesByType };
|
|
@@ -28,7 +28,8 @@ export type Field = {
|
|
|
28
28
|
id: string;
|
|
29
29
|
name: string;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
/** A `file` control holds the `File` picked; every other control text, a number or a checkbox's state. */
|
|
32
|
+
export type FieldValue = string | boolean | number | File;
|
|
32
33
|
/** What a control says about the form's values as they stand: the sentence to show under it, or `''`. */
|
|
33
34
|
export type FieldValidator = (values: Record<string, unknown>) => string;
|
|
34
35
|
export type FormContextValue = {
|
|
@@ -42,9 +43,6 @@ export type FormContextValue = {
|
|
|
42
43
|
setFieldError: (name: string, error: string) => void;
|
|
43
44
|
};
|
|
44
45
|
declare const Form: ({ ref, className, children, method, actionUrl, managedByInteractions, noValidate, errors, values, submitted }: FormProps) => import('react').JSX.Element;
|
|
45
|
-
declare const _default:
|
|
46
|
-
(props: import('../../..').WithElementProps<FormProps>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
47
|
-
displayName: string;
|
|
48
|
-
};
|
|
46
|
+
declare const _default: import('react').FC<import('../../..').WithElementProps<FormProps>>;
|
|
49
47
|
export default _default;
|
|
50
48
|
export { Form };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import e from "./declaration.mjs";
|
|
2
|
-
import t from "../../../
|
|
3
|
-
import n from "../../../Element/
|
|
4
|
-
import
|
|
5
|
-
import i from "../../../
|
|
2
|
+
import t from "../../../dataSource/useRegisterSource.mjs";
|
|
3
|
+
import n from "../../../Element/hocs/withElement.mjs";
|
|
4
|
+
import r from "../../../Element/hooks/useElement.mjs";
|
|
5
|
+
import { RootElement as i } from "../../../Element/RootElement.mjs";
|
|
6
6
|
import { use as a, useCallback as o, useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { StoreProvider as d } from "@plitzi/nexus/react";
|
|
8
|
+
import { usePlitzi as f } from "@plitzi/sdk-shared/hooks";
|
|
9
|
+
import { emptyObject as p } from "@plitzi/sdk-shared/helpers";
|
|
10
|
+
import { get as m, omit as h } from "@plitzi/plitzi-ui/helpers";
|
|
11
11
|
import { jsx as g } from "react/jsx-runtime";
|
|
12
12
|
import _ from "clsx";
|
|
13
13
|
import { InteractionsContext as v } from "@plitzi/sdk-interactions";
|
|
14
14
|
import { produce as y } from "immer";
|
|
15
15
|
import { getSourceName as b } from "@plitzi/sdk-shared/dataSource/helpers";
|
|
16
|
-
|
|
17
|
-
var x = ({ ref:
|
|
18
|
-
let [A, j] = u({}), M = l(/* @__PURE__ */ new Map()), N = l(!1), { id: P, definition: { label: F = "Form" }, setElementState: I } =
|
|
16
|
+
// src/elements/form/Form/Form.tsx
|
|
17
|
+
var x = ({ ref: n, className: x = "", children: S, method: C = "get", actionUrl: w = "", managedByInteractions: T = !1, noValidate: E = !1, errors: D = p, values: O = p, submitted: k = !1 }) => {
|
|
18
|
+
let [A, j] = u({}), M = l(/* @__PURE__ */ new Map()), N = l(!1), { id: P, definition: { label: F = "Form" }, setElementState: I } = r(), L = b(e.sourceType, P), { settings: { previewMode: R } } = f(), { interactionsManager: z } = a(v), B = o((e) => j((t) => ({
|
|
19
19
|
...t,
|
|
20
20
|
[e.name]: e
|
|
21
21
|
})), [j]);
|
|
@@ -27,8 +27,8 @@ var x = ({ ref: t, className: x = "", children: S, method: C = "get", actionUrl:
|
|
|
27
27
|
t[e] && delete t[e];
|
|
28
28
|
})), e && I((t) => ({
|
|
29
29
|
...t,
|
|
30
|
-
values:
|
|
31
|
-
errors:
|
|
30
|
+
values: h(t, `values.${e}`),
|
|
31
|
+
errors: h(t, `errors.${e}`)
|
|
32
32
|
})));
|
|
33
33
|
}, [I]), H = o((e, t) => {
|
|
34
34
|
M.current.set(e, t);
|
|
@@ -41,7 +41,7 @@ var x = ({ ref: t, className: x = "", children: S, method: C = "get", actionUrl:
|
|
|
41
41
|
...n.values,
|
|
42
42
|
[e]: t
|
|
43
43
|
},
|
|
44
|
-
errors:
|
|
44
|
+
errors: h(n.errors, [e])
|
|
45
45
|
} : {
|
|
46
46
|
...n,
|
|
47
47
|
values: {
|
|
@@ -50,9 +50,9 @@ var x = ({ ref: t, className: x = "", children: S, method: C = "get", actionUrl:
|
|
|
50
50
|
}
|
|
51
51
|
}));
|
|
52
52
|
}, [I]), G = o((e, t) => {
|
|
53
|
-
e && I((n) => !t && !
|
|
53
|
+
e && I((n) => !t && !m(n, `errors.${e}`) ? n : !t && n.errors && n.errors[e] ? {
|
|
54
54
|
...n,
|
|
55
|
-
errors:
|
|
55
|
+
errors: h(n, [`errors.${e}`])
|
|
56
56
|
} : {
|
|
57
57
|
...n,
|
|
58
58
|
errors: {
|
|
@@ -105,7 +105,7 @@ var x = ({ ref: t, className: x = "", children: S, method: C = "get", actionUrl:
|
|
|
105
105
|
W,
|
|
106
106
|
G
|
|
107
107
|
]);
|
|
108
|
-
|
|
108
|
+
t({
|
|
109
109
|
id: P,
|
|
110
110
|
source: L,
|
|
111
111
|
name: F || `Form - ${P}`,
|
|
@@ -228,9 +228,9 @@ var x = ({ ref: t, className: x = "", children: S, method: C = "get", actionUrl:
|
|
|
228
228
|
A,
|
|
229
229
|
Q
|
|
230
230
|
]);
|
|
231
|
-
return /* @__PURE__ */ g(
|
|
231
|
+
return /* @__PURE__ */ g(i, {
|
|
232
232
|
tag: "form",
|
|
233
|
-
ref:
|
|
233
|
+
ref: n,
|
|
234
234
|
noValidate: E,
|
|
235
235
|
method: C,
|
|
236
236
|
className: _("plitzi-component__form", x),
|
|
@@ -239,13 +239,12 @@ var x = ({ ref: t, className: x = "", children: S, method: C = "get", actionUrl:
|
|
|
239
239
|
onSubmit: Y,
|
|
240
240
|
onReset: X,
|
|
241
241
|
action: w,
|
|
242
|
-
children: /* @__PURE__ */ g(
|
|
242
|
+
children: /* @__PURE__ */ g(d, {
|
|
243
243
|
inherit: "live",
|
|
244
244
|
name: `Form:${P}`,
|
|
245
245
|
value: q,
|
|
246
246
|
children: S
|
|
247
247
|
})
|
|
248
248
|
});
|
|
249
|
-
}, S =
|
|
250
|
-
//#endregion
|
|
249
|
+
}, S = n(x);
|
|
251
250
|
export { x as Form, S as default };
|
|
@@ -3,7 +3,7 @@ import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
|
3
3
|
import r from "@plitzi/plitzi-ui/Checkbox";
|
|
4
4
|
import i from "@plitzi/plitzi-ui/Input";
|
|
5
5
|
import a from "@plitzi/plitzi-ui/Select";
|
|
6
|
-
|
|
6
|
+
// src/elements/form/Form/Settings.tsx
|
|
7
7
|
var o = ({ method: o = "get", managedByInteractions: s = !1, noValidate: c = !1, actionUrl: l = "", onUpdate: u }) => {
|
|
8
8
|
let d = e((e) => u?.("actionUrl", e), [u]), f = e((e) => u?.("method", e), [u]), p = e((e) => u?.("managedByInteractions", e.target.checked), [u]), m = e((e) => u?.("noValidate", e.target.checked), [u]);
|
|
9
9
|
return /* @__PURE__ */ n("div", {
|
|
@@ -43,5 +43,4 @@ var o = ({ method: o = "get", managedByInteractions: s = !1, noValidate: c = !1,
|
|
|
43
43
|
]
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
//#endregion
|
|
47
46
|
export { o as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring";
|
|
2
|
-
|
|
2
|
+
// src/elements/form/Form/declaration.ts
|
|
3
3
|
var n = e()({
|
|
4
4
|
type: "form",
|
|
5
5
|
attributeValues: { method: t()(["get", "post"]) },
|
|
@@ -97,5 +97,4 @@ var n = e()({
|
|
|
97
97
|
defaultStyle: { style: { base: { default: {} } } }
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
//#endregion
|
|
101
100
|
export { n as default };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
declare const Form: {
|
|
2
|
-
(props: import('../../..').WithElementProps<import('./Form').FormProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
3
|
-
displayName: string;
|
|
4
|
-
} & {
|
|
1
|
+
declare const Form: import('react').FC<import('../../..').WithElementProps<import('./Form').FormProps>> & {
|
|
5
2
|
content: {
|
|
6
3
|
market: {
|
|
7
4
|
icon: import('react').JSX.Element;
|