@plitzi/sdk-elements 0.38.24 → 0.39.0
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 +156 -1
- package/dist/Element/RootElement.d.ts +1 -1
- package/dist/Element/RootElement.mjs +62 -61
- package/dist/Element/RowAnchor.d.ts +15 -0
- package/dist/Element/RowAnchor.mjs +8 -0
- package/dist/Element/helpers/elementConstants.mjs +12 -0
- package/dist/Element/hocs/withElement.d.ts +1 -1
- package/dist/Element/hocs/withElement.mjs +96 -88
- package/dist/Element/hooks/useEditableContent.d.ts +11 -0
- package/dist/Element/hooks/useEditableContent.mjs +11 -10
- package/dist/Element/hooks/useElement.mjs +1 -1
- package/dist/Element/hooks/useElementDataSource.mjs +11 -10
- package/dist/Element/hooks/useFocusInteractions.d.ts +12 -0
- package/dist/Element/hooks/useFocusInteractions.mjs +9 -0
- package/dist/Element/hooks/useInternalClassName.mjs +22 -21
- package/dist/Element/hooks/useRootElementInteractions.mjs +48 -42
- package/dist/Element/hooks/useScrollInteractions.d.ts +1 -1
- package/dist/Element/hooks/useScrollInteractions.mjs +61 -30
- package/dist/dataSource/PluginSource.d.ts +22 -0
- package/dist/dataSource/PluginSource.mjs +27 -0
- package/dist/dataSource/index.d.ts +2 -0
- package/dist/dataSource/index.mjs +5 -4
- package/dist/elements/advanced/BlockHtml/BlockHtml.d.ts +1 -1
- package/dist/elements/advanced/BlockHtml/index.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/BlockJsx.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/index.d.ts +1 -1
- package/dist/elements/advanced/Custom/Custom.d.ts +1 -1
- package/dist/elements/advanced/Custom/index.d.ts +1 -1
- package/dist/elements/advanced/NodeHtml/NodeHtml.d.ts +1 -1
- package/dist/elements/advanced/NodeHtml/declaration.d.ts +3 -3
- package/dist/elements/advanced/NodeHtml/index.d.ts +4 -4
- package/dist/elements/advanced/Reference/Reference.d.ts +2 -2
- package/dist/elements/advanced/Reference/Reference.mjs +1 -1
- package/dist/elements/advanced/Reference/index.d.ts +1 -1
- package/dist/elements/basic/Button/Button.d.ts +7 -2
- package/dist/elements/basic/Button/Button.mjs +27 -25
- package/dist/elements/basic/Button/Settings.mjs +1 -1
- package/dist/elements/basic/Button/declaration.d.ts +8 -1
- package/dist/elements/basic/Button/declaration.mjs +3 -0
- package/dist/elements/basic/Button/index.d.ts +9 -2
- package/dist/elements/basic/Dropdown/Dropdown.d.ts +9 -2
- package/dist/elements/basic/Dropdown/Dropdown.mjs +93 -74
- package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.d.ts +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +1 -1
- package/dist/elements/basic/Dropdown/declaration.d.ts +31 -0
- package/dist/elements/basic/Dropdown/declaration.mjs +38 -6
- package/dist/elements/basic/Dropdown/index.d.ts +33 -2
- package/dist/elements/basic/Dropdown/useDropdown.d.ts +2 -0
- package/dist/elements/basic/Heading/Heading.d.ts +1 -1
- package/dist/elements/basic/Heading/Heading.mjs +3 -2
- package/dist/elements/basic/Heading/declaration.d.ts +2 -0
- package/dist/elements/basic/Heading/declaration.mjs +2 -0
- package/dist/elements/basic/Heading/index.d.ts +3 -1
- package/dist/elements/basic/Link/Link.d.ts +1 -1
- package/dist/elements/basic/Link/Link.mjs +46 -45
- package/dist/elements/basic/Link/declaration.d.ts +1 -0
- package/dist/elements/basic/Link/declaration.mjs +5 -0
- package/dist/elements/basic/Link/index.d.ts +2 -1
- package/dist/elements/basic/Markdown/Markdown.d.ts +1 -1
- package/dist/elements/basic/Markdown/declaration.d.ts +2 -0
- package/dist/elements/basic/Markdown/declaration.mjs +2 -0
- package/dist/elements/basic/Markdown/index.d.ts +3 -1
- package/dist/elements/basic/Paragraph/Paragraph.d.ts +1 -1
- package/dist/elements/basic/Paragraph/Paragraph.mjs +3 -2
- package/dist/elements/basic/Paragraph/Settings.mjs +1 -1
- package/dist/elements/basic/Paragraph/declaration.d.ts +2 -0
- package/dist/elements/basic/Paragraph/declaration.mjs +2 -0
- package/dist/elements/basic/Paragraph/index.d.ts +3 -1
- package/dist/elements/basic/RichText/RichText.d.ts +1 -1
- package/dist/elements/basic/RichText/declaration.d.ts +1 -0
- package/dist/elements/basic/RichText/declaration.mjs +1 -0
- package/dist/elements/basic/RichText/index.d.ts +2 -1
- package/dist/elements/basic/Text/Settings.mjs +1 -1
- package/dist/elements/basic/Text/Text.d.ts +1 -1
- package/dist/elements/basic/Text/Text.mjs +3 -2
- package/dist/elements/basic/Text/declaration.d.ts +2 -0
- package/dist/elements/basic/Text/declaration.mjs +2 -0
- package/dist/elements/basic/Text/index.d.ts +3 -1
- package/dist/elements/basic/ThemeToggle/ThemeToggle.d.ts +2 -2
- package/dist/elements/basic/ThemeToggle/declaration.d.ts +1 -0
- package/dist/elements/basic/ThemeToggle/declaration.mjs +5 -0
- package/dist/elements/basic/ThemeToggle/index.d.ts +2 -1
- package/dist/elements/declarations/index.d.ts +322 -12
- package/dist/elements/declarations/index.mjs +46 -44
- package/dist/elements/form/Form/Form.d.ts +8 -2
- package/dist/elements/form/Form/Form.mjs +102 -79
- package/dist/elements/form/Form/declaration.d.ts +21 -3
- package/dist/elements/form/Form/declaration.mjs +28 -11
- package/dist/elements/form/Form/index.d.ts +17 -2
- package/dist/elements/form/FormControl/FormControl.d.ts +8 -2
- package/dist/elements/form/FormControl/FormControl.mjs +71 -66
- package/dist/elements/form/FormControl/Settings.d.ts +6 -1
- package/dist/elements/form/FormControl/Settings.mjs +130 -98
- package/dist/elements/form/FormControl/declaration.d.ts +7 -0
- package/dist/elements/form/FormControl/declaration.mjs +21 -1
- package/dist/elements/form/FormControl/helpers/useBlurValidation.d.ts +12 -0
- package/dist/elements/form/FormControl/helpers/useBlurValidation.mjs +20 -0
- package/dist/elements/form/FormControl/helpers/validateField.d.ts +8 -0
- package/dist/elements/form/FormControl/helpers/validateField.mjs +8 -2
- package/dist/elements/form/FormControl/hocs/withFieldValue.d.ts +4 -0
- package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +49 -41
- package/dist/elements/form/FormControl/index.d.ts +8 -1
- package/dist/elements/form/FormControl/inputs/Checkbox.mjs +2 -2
- package/dist/elements/form/FormControl/inputs/Input.d.ts +5 -1
- package/dist/elements/form/FormControl/inputs/Input.mjs +42 -38
- package/dist/elements/form/FormControl/inputs/Select.d.ts +5 -1
- package/dist/elements/form/FormControl/inputs/Select.mjs +33 -28
- package/dist/elements/form/FormControl/inputs/Textarea.mjs +27 -26
- package/dist/elements/form/FormControl/inputs/useFocusWhenShown.d.ts +1 -1
- package/dist/elements/index.d.ts +3 -1
- package/dist/elements/index.mjs +32 -30
- package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +30 -30
- package/dist/elements/internal/LayoutContainer/index.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/mask.d.ts +13 -0
- package/dist/elements/internal/LayoutContainer/mask.mjs +16 -1
- package/dist/elements/internal/Loading/Loading.d.ts +1 -1
- package/dist/elements/internal/Loading/index.d.ts +1 -1
- package/dist/elements/internal/NotFound/NotFound.d.ts +1 -1
- package/dist/elements/internal/NotFound/index.d.ts +1 -1
- package/dist/elements/internal/Page/Page.d.ts +17 -3
- package/dist/elements/internal/Page/Page.mjs +32 -25
- package/dist/elements/internal/Page/PageHead.d.ts +11 -4
- package/dist/elements/internal/Page/PageHead.mjs +41 -19
- package/dist/elements/internal/Page/PageWithheld.d.ts +3 -2
- package/dist/elements/internal/Page/PageWithheld.mjs +41 -18
- package/dist/elements/internal/Page/Settings.d.ts +5 -1
- package/dist/elements/internal/Page/Settings.mjs +160 -121
- package/dist/elements/internal/Page/SharePreview.d.ts +13 -0
- package/dist/elements/internal/Page/SharePreview.mjs +53 -0
- package/dist/elements/internal/Page/declaration.d.ts +9 -1
- package/dist/elements/internal/Page/declaration.mjs +11 -4
- package/dist/elements/internal/Page/index.d.ts +9 -2
- package/dist/elements/media/Chart/Chart.d.ts +33 -0
- package/dist/elements/media/Chart/Chart.mjs +195 -0
- package/dist/elements/media/Chart/Settings.d.ts +6 -0
- package/dist/elements/media/Chart/Settings.mjs +92 -0
- package/dist/elements/media/Chart/chartGeometry.d.ts +37 -0
- package/dist/elements/media/Chart/chartGeometry.mjs +47 -0
- package/dist/elements/media/Chart/declaration.d.ts +144 -0
- package/dist/elements/media/Chart/declaration.mjs +107 -0
- package/dist/elements/media/Chart/index.d.ts +145 -0
- package/dist/elements/media/Chart/index.mjs +6 -0
- package/dist/elements/media/Embed/Embed.d.ts +1 -1
- package/dist/elements/media/Embed/Embed.mjs +25 -21
- package/dist/elements/media/Embed/declaration.d.ts +1 -0
- package/dist/elements/media/Embed/declaration.mjs +1 -0
- package/dist/elements/media/Embed/index.d.ts +2 -1
- package/dist/elements/media/FontAwesome/FontAwesome.d.ts +1 -1
- package/dist/elements/media/FontAwesome/index.d.ts +1 -1
- package/dist/elements/media/Image/Image.d.ts +1 -1
- package/dist/elements/media/Image/Image.mjs +35 -34
- package/dist/elements/media/Image/declaration.d.ts +2 -1
- package/dist/elements/media/Image/declaration.mjs +1 -0
- package/dist/elements/media/Image/index.d.ts +3 -2
- package/dist/elements/media/Svg/Svg.d.ts +1 -1
- package/dist/elements/media/Svg/declaration.d.ts +1 -0
- package/dist/elements/media/Svg/declaration.mjs +1 -0
- package/dist/elements/media/Svg/index.d.ts +2 -1
- package/dist/elements/media/Video/Video.d.ts +1 -1
- package/dist/elements/media/Video/declaration.d.ts +1 -0
- package/dist/elements/media/Video/declaration.mjs +1 -0
- package/dist/elements/media/Video/index.d.ts +2 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +1 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +215 -185
- package/dist/elements/provider/ApiContainer/declaration.d.ts +9 -0
- package/dist/elements/provider/ApiContainer/declaration.mjs +10 -1
- package/dist/elements/provider/ApiContainer/hooks/useInputRefresh.d.ts +4 -4
- package/dist/elements/provider/ApiContainer/hooks/useProviderPagination.d.ts +2 -1
- package/dist/elements/provider/ApiContainer/index.d.ts +10 -1
- package/dist/elements/provider/Channel/Channel.d.ts +1 -1
- package/dist/elements/provider/Channel/declaration.d.ts +9 -0
- package/dist/elements/provider/Channel/declaration.mjs +11 -2
- package/dist/elements/provider/Channel/index.d.ts +10 -1
- package/dist/elements/settings.mjs +42 -40
- package/dist/elements/structure/Carousel/Carousel.d.ts +1 -1
- package/dist/elements/structure/Carousel/Carousel.mjs +147 -130
- package/dist/elements/structure/Carousel/CarouselContext.d.ts +3 -3
- package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.d.ts +1 -1
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.d.ts +6 -2
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.mjs +32 -20
- package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +1 -1
- package/dist/elements/structure/Carousel/carouselIndex.d.ts +17 -0
- package/dist/elements/structure/Carousel/carouselIndex.mjs +17 -5
- package/dist/elements/structure/Carousel/declaration.d.ts +49 -2
- package/dist/elements/structure/Carousel/declaration.mjs +26 -4
- package/dist/elements/structure/Carousel/index.d.ts +51 -4
- package/dist/elements/structure/Container/Container.d.ts +5 -3
- package/dist/elements/structure/Container/Container.mjs +6 -5
- package/dist/elements/structure/Container/Settings.d.ts +4 -2
- package/dist/elements/structure/Container/Settings.mjs +19 -5
- package/dist/elements/structure/Container/declaration.d.ts +3 -2
- package/dist/elements/structure/Container/declaration.mjs +3 -1
- package/dist/elements/structure/Container/index.d.ts +4 -3
- package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +1 -1
- package/dist/elements/structure/DialogContainer/declaration.d.ts +1 -0
- package/dist/elements/structure/DialogContainer/declaration.mjs +5 -0
- package/dist/elements/structure/DialogContainer/index.d.ts +2 -1
- package/dist/elements/structure/List/List.d.ts +1 -1
- package/dist/elements/structure/List/ListItem/ListItem.d.ts +1 -1
- package/dist/elements/structure/List/ListItem/index.d.ts +1 -1
- package/dist/elements/structure/List/declaration.d.ts +5 -0
- package/dist/elements/structure/List/declaration.mjs +5 -0
- package/dist/elements/structure/List/index.d.ts +7 -2
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +1 -0
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.d.ts +3 -1
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +33 -25
- package/dist/elements/structure/ModalContainer/ModalContainer.d.ts +1 -1
- package/dist/elements/structure/ModalContainer/declaration.d.ts +2 -0
- package/dist/elements/structure/ModalContainer/declaration.mjs +2 -0
- package/dist/elements/structure/ModalContainer/index.d.ts +3 -1
- package/dist/elements/structure/Pagination/Pagination.d.ts +1 -1
- package/dist/elements/structure/Pagination/declaration.d.ts +1 -0
- package/dist/elements/structure/Pagination/declaration.mjs +5 -0
- package/dist/elements/structure/Pagination/index.d.ts +2 -1
- package/dist/elements/structure/TabContainer/TabContainer.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +6 -0
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +6 -0
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +7 -1
- package/dist/elements/structure/TabContainer/index.d.ts +10 -4
- package/dist/index.d.ts +216 -51
- package/dist/index.mjs +39 -37
- package/package.json +8 -8
- package/dist/elements/provider/ApiContainer/helpers/isEmptyAnswer.d.ts +0 -16
- package/dist/elements/provider/ApiContainer/helpers/isEmptyAnswer.mjs +0 -4
|
@@ -2,6 +2,7 @@ import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring";
|
|
|
2
2
|
//#region src/elements/structure/ModalContainer/declaration.ts
|
|
3
3
|
var t = e()({
|
|
4
4
|
type: "modalContainer",
|
|
5
|
+
contentAttributes: ["title"],
|
|
5
6
|
sourceType: "modalContainer",
|
|
6
7
|
triggers: {
|
|
7
8
|
onModalOpen: {
|
|
@@ -42,6 +43,7 @@ var t = e()({
|
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
content: {
|
|
46
|
+
placeholders: ["title"],
|
|
45
47
|
attributes: {
|
|
46
48
|
title: "Modal Header",
|
|
47
49
|
autoHideAfterClick: !0
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
declare const ModalContainer: {
|
|
2
|
-
(props: import('../../..').WithElementProps<import('./ModalContainer').ModalContainerProps>): import('react').JSX.Element;
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./ModalContainer').ModalContainerProps>): 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
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "modalContainer";
|
|
6
|
+
readonly contentAttributes: readonly ["title"];
|
|
6
7
|
readonly sourceType: "modalContainer";
|
|
7
8
|
readonly triggers: {
|
|
8
9
|
readonly onModalOpen: {
|
|
@@ -51,6 +52,7 @@ declare const ModalContainer: {
|
|
|
51
52
|
};
|
|
52
53
|
};
|
|
53
54
|
readonly content: {
|
|
55
|
+
readonly placeholders: readonly ["title"];
|
|
54
56
|
readonly attributes: {
|
|
55
57
|
readonly title: "Modal Header";
|
|
56
58
|
readonly autoHideAfterClick: true;
|
|
@@ -39,7 +39,7 @@ export type PaginationProps = {
|
|
|
39
39
|
*/
|
|
40
40
|
declare const Pagination: ({ ref, className, children, pageInfo, mode, pageParam, target, windowSize, previousLabel, nextLabel, loadMoreLabel, label }: PaginationProps) => import('react').JSX.Element;
|
|
41
41
|
declare const _default: {
|
|
42
|
-
(props: import('../../..').WithElementProps<PaginationProps>): import('react').JSX.Element;
|
|
42
|
+
(props: import('../../..').WithElementProps<PaginationProps>): 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;
|
|
43
43
|
displayName: string;
|
|
44
44
|
};
|
|
45
45
|
export default _default;
|
|
@@ -4,6 +4,7 @@ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
|
4
4
|
export type PaginationAttributes = AuthorableAttributes<PaginationProps>;
|
|
5
5
|
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "pagination";
|
|
7
|
+
readonly contentAttributes: readonly ["previousLabel", "nextLabel", "loadMoreLabel"];
|
|
7
8
|
readonly attributeValues: {
|
|
8
9
|
readonly mode: readonly string[];
|
|
9
10
|
readonly target: readonly string[];
|
|
@@ -2,6 +2,11 @@ import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/autho
|
|
|
2
2
|
//#region src/elements/structure/Pagination/declaration.ts
|
|
3
3
|
var n = e()({
|
|
4
4
|
type: "pagination",
|
|
5
|
+
contentAttributes: [
|
|
6
|
+
"previousLabel",
|
|
7
|
+
"nextLabel",
|
|
8
|
+
"loadMoreLabel"
|
|
9
|
+
],
|
|
5
10
|
attributeValues: {
|
|
6
11
|
mode: t()(["pages", "loadMore"]),
|
|
7
12
|
target: t()(["url", "interaction"])
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
declare const Pagination: {
|
|
2
|
-
(props: import('../../..').WithElementProps<import('./Pagination').PaginationProps>): import('react').JSX.Element;
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Pagination').PaginationProps>): 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
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "pagination";
|
|
6
|
+
readonly contentAttributes: readonly ["previousLabel", "nextLabel", "loadMoreLabel"];
|
|
6
7
|
readonly attributeValues: {
|
|
7
8
|
readonly mode: readonly string[];
|
|
8
9
|
readonly target: readonly string[];
|
|
@@ -6,7 +6,7 @@ export type TabContainerProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const TabContainer: ({ ref, className, children }: TabContainerProps) => import('react').JSX.Element;
|
|
8
8
|
declare const _default: {
|
|
9
|
-
(props: import('../../..').WithElementProps<TabContainerProps>): import('react').JSX.Element;
|
|
9
|
+
(props: import('../../..').WithElementProps<TabContainerProps>): 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;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export type TabContainerBodyProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const TabContainerBody: ({ ref, className, children }: TabContainerBodyProps) => import('react').JSX.Element;
|
|
8
8
|
declare const _default: {
|
|
9
|
-
(props: import('../../../..').WithElementProps<TabContainerBodyProps>): import('react').JSX.Element;
|
|
9
|
+
(props: import('../../../..').WithElementProps<TabContainerBodyProps>): 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;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const TabContainerBody: {
|
|
2
|
-
(props: import('../../../..').WithElementProps<import('./TabContainerBody').TabContainerBodyProps>): import('react').JSX.Element;
|
|
2
|
+
(props: import('../../../..').WithElementProps<import('./TabContainerBody').TabContainerBodyProps>): 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
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "tabContainerBody";
|
|
@@ -6,7 +6,7 @@ export type TabContainerHeaderProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const TabContainerHeader: ({ ref, className, children }: TabContainerHeaderProps) => import('react').JSX.Element;
|
|
8
8
|
declare const _default: {
|
|
9
|
-
(props: import('../../../..').WithElementProps<TabContainerHeaderProps>): import('react').JSX.Element;
|
|
9
|
+
(props: import('../../../..').WithElementProps<TabContainerHeaderProps>): 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;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const TabContainerHeader: {
|
|
2
|
-
(props: import('../../../..').WithElementProps<import('./TabContainerHeader').TabContainerHeaderProps>): import('react').JSX.Element;
|
|
2
|
+
(props: import('../../../..').WithElementProps<import('./TabContainerHeader').TabContainerHeaderProps>): 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
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "tabContainerHeader";
|
|
@@ -14,7 +14,7 @@ export type TabContainerItemProps = {
|
|
|
14
14
|
};
|
|
15
15
|
declare const TabContainerItem: ({ className, children, ref, baseId, tabSelected, tabIndex: position, tabCount, isHeader, onSelect }: TabContainerItemProps) => import('react').JSX.Element;
|
|
16
16
|
declare const _default: {
|
|
17
|
-
(props: import('../../../..').WithElementProps<TabContainerItemProps>): import('react').JSX.Element;
|
|
17
|
+
(props: import('../../../..').WithElementProps<TabContainerItemProps>): 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;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -4,6 +4,12 @@ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
|
4
4
|
export type TabContainerItemAttributes = AuthorableAttributes<TabContainerItemProps, 'baseId' | 'tabSelected' | 'tabIndex' | 'tabCount' | 'isHeader' | 'onSelect'>;
|
|
5
5
|
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "tabContainerItem";
|
|
7
|
+
readonly marks: {
|
|
8
|
+
readonly 'role="tab"': "in the header, with `aria-controls` its panel; in the body it is `role=\"tabpanel\"`, `hidden` while not on show";
|
|
9
|
+
readonly 'aria-selected': "on the open tab — what a class’s `current` state lights (`states: { current: { … } }`); `active` is the press, never the open tab";
|
|
10
|
+
readonly '.active': "on the open tab too, the class the component adds";
|
|
11
|
+
readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
|
|
12
|
+
};
|
|
7
13
|
readonly content: {
|
|
8
14
|
readonly attributes: {};
|
|
9
15
|
readonly definition: {
|
|
@@ -2,6 +2,12 @@ import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring";
|
|
|
2
2
|
//#region src/elements/structure/TabContainer/TabContainerItem/declaration.ts
|
|
3
3
|
var t = e()({
|
|
4
4
|
type: "tabContainerItem",
|
|
5
|
+
marks: {
|
|
6
|
+
"role=\"tab\"": "in the header, with `aria-controls` its panel; in the body it is `role=\"tabpanel\"`, `hidden` while not on show",
|
|
7
|
+
"aria-selected": "on the open tab — what a class’s `current` state lights (`states: { current: { … } }`); `active` is the press, never the open tab",
|
|
8
|
+
".active": "on the open tab too, the class the component adds",
|
|
9
|
+
tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them"
|
|
10
|
+
},
|
|
5
11
|
content: {
|
|
6
12
|
attributes: {},
|
|
7
13
|
definition: {
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
declare const TabContainerItem: {
|
|
2
|
-
(props: import('../../../..').WithElementProps<import('./TabContainerItem').TabContainerItemProps>): import('react').JSX.Element;
|
|
2
|
+
(props: import('../../../..').WithElementProps<import('./TabContainerItem').TabContainerItemProps>): 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
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "tabContainerItem";
|
|
6
|
+
readonly marks: {
|
|
7
|
+
readonly 'role="tab"': "in the header, with `aria-controls` its panel; in the body it is `role=\"tabpanel\"`, `hidden` while not on show";
|
|
8
|
+
readonly 'aria-selected': "on the open tab — what a class’s `current` state lights (`states: { current: { … } }`); `active` is the press, never the open tab";
|
|
9
|
+
readonly '.active': "on the open tab too, the class the component adds";
|
|
10
|
+
readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
|
|
11
|
+
};
|
|
6
12
|
readonly content: {
|
|
7
13
|
readonly attributes: {};
|
|
8
14
|
readonly definition: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const TabContainer: {
|
|
2
|
-
(props: import('../../..').WithElementProps<import('./TabContainer').TabContainerProps>): import('react').JSX.Element;
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./TabContainer').TabContainerProps>): 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
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
plugins: {
|
|
6
6
|
tabContainerHeader: {
|
|
7
|
-
(props: import('../../..').WithElementProps<import('./TabContainerHeader/TabContainerHeader').TabContainerHeaderProps>): import('react').JSX.Element;
|
|
7
|
+
(props: import('../../..').WithElementProps<import('./TabContainerHeader/TabContainerHeader').TabContainerHeaderProps>): 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;
|
|
8
8
|
displayName: string;
|
|
9
9
|
} & {
|
|
10
10
|
readonly type: "tabContainerHeader";
|
|
@@ -41,7 +41,7 @@ declare const TabContainer: {
|
|
|
41
41
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
42
42
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
43
43
|
tabContainerBody: {
|
|
44
|
-
(props: import('../../..').WithElementProps<import('./TabContainerBody/TabContainerBody').TabContainerBodyProps>): import('react').JSX.Element;
|
|
44
|
+
(props: import('../../..').WithElementProps<import('./TabContainerBody/TabContainerBody').TabContainerBodyProps>): 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;
|
|
45
45
|
displayName: string;
|
|
46
46
|
} & {
|
|
47
47
|
readonly type: "tabContainerBody";
|
|
@@ -78,10 +78,16 @@ declare const TabContainer: {
|
|
|
78
78
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
79
79
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
80
80
|
tabContainerItem: {
|
|
81
|
-
(props: import('../../..').WithElementProps<import('./TabContainerItem/TabContainerItem').TabContainerItemProps>): import('react').JSX.Element;
|
|
81
|
+
(props: import('../../..').WithElementProps<import('./TabContainerItem/TabContainerItem').TabContainerItemProps>): 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;
|
|
82
82
|
displayName: string;
|
|
83
83
|
} & {
|
|
84
84
|
readonly type: "tabContainerItem";
|
|
85
|
+
readonly marks: {
|
|
86
|
+
readonly 'role="tab"': "in the header, with `aria-controls` its panel; in the body it is `role=\"tabpanel\"`, `hidden` while not on show";
|
|
87
|
+
readonly 'aria-selected': "on the open tab — what a class’s `current` state lights (`states: { current: { … } }`); `active` is the press, never the open tab";
|
|
88
|
+
readonly '.active': "on the open tab too, the class the component adds";
|
|
89
|
+
readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
|
|
90
|
+
};
|
|
85
91
|
readonly content: {
|
|
86
92
|
readonly attributes: {};
|
|
87
93
|
readonly definition: {
|