@plitzi/sdk-elements 0.38.11 → 0.38.12
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 +112 -0
- package/dist/Element/ElementWords.d.ts +6 -2
- package/dist/Element/ElementWords.mjs +18 -11
- package/dist/Element/JsxManager.mjs +8 -8
- package/dist/Element/PluginManager.mjs +4 -4
- package/dist/Element/ReplicaProvider.mjs +9 -9
- package/dist/Element/RootElement.mjs +60 -60
- package/dist/Element/helpers/declaredAttributes.d.ts +10 -0
- package/dist/Element/helpers/declaredAttributes.mjs +22 -0
- package/dist/Element/hocs/withElement.mjs +101 -100
- package/dist/Element/hooks/useEditableContent.d.ts +12 -0
- package/dist/Element/hooks/useEditableContent.mjs +21 -0
- package/dist/Element/hooks/useElementDataSource.mjs +9 -9
- package/dist/Element/hooks/useElementVisible.mjs +1 -1
- package/dist/Element/hooks/useInternalItems.mjs +22 -23
- package/dist/Element/hooks/useIntervalTriggers.d.ts +2 -3
- package/dist/Element/hooks/useKeyTriggers.d.ts +2 -3
- package/dist/Element/hooks/usePluginTrigger.d.ts +21 -0
- package/dist/Element/hooks/usePluginTrigger.mjs +18 -0
- package/dist/Element/hooks/useRootElementInteractions.d.ts +2 -4
- package/dist/Element/hooks/useRootElementInteractions.mjs +79 -76
- package/dist/Element/hooks/useScrollInteractions.d.ts +2 -3
- package/dist/canvas/useAnimationFrame.mjs +1 -1
- package/dist/dataSource/GlobalSources.mjs +1 -1
- package/dist/dataSource/pathFields.mjs +1 -1
- package/dist/dataSource/sourceStore.d.ts +7 -0
- package/dist/dataSource/sourceStore.mjs +5 -0
- package/dist/elements/advanced/BlockHtml/BlockHtml.mjs +1 -1
- package/dist/elements/advanced/BlockHtml/declaration.d.ts +2 -27
- package/dist/elements/advanced/BlockHtml/declaration.mjs +2 -25
- package/dist/elements/advanced/BlockHtml/index.d.ts +2 -25
- package/dist/elements/advanced/BlockJsx/Settings.mjs +37 -37
- package/dist/elements/advanced/BlockJsx/declaration.d.ts +2 -27
- package/dist/elements/advanced/BlockJsx/declaration.mjs +2 -25
- package/dist/elements/advanced/BlockJsx/index.d.ts +2 -25
- package/dist/elements/advanced/Custom/Custom.mjs +52 -42
- package/dist/elements/advanced/Custom/Settings.mjs +41 -40
- package/dist/elements/advanced/Custom/declaration.d.ts +2 -26
- package/dist/elements/advanced/Custom/declaration.mjs +2 -22
- package/dist/elements/advanced/Custom/index.d.ts +2 -24
- package/dist/elements/advanced/NodeHtml/Settings.mjs +3 -3
- package/dist/elements/advanced/NodeHtml/declaration.d.ts +19 -44
- package/dist/elements/advanced/NodeHtml/declaration.mjs +2 -23
- package/dist/elements/advanced/NodeHtml/index.d.ts +19 -42
- package/dist/elements/advanced/PlitziSdk/Settings.mjs +4 -4
- package/dist/elements/advanced/Reference/Reference.mjs +1 -1
- package/dist/elements/advanced/Reference/declaration.d.ts +3 -27
- package/dist/elements/advanced/Reference/declaration.mjs +2 -22
- package/dist/elements/advanced/Reference/index.d.ts +3 -25
- package/dist/elements/basic/Button/Button.mjs +24 -31
- package/dist/elements/basic/Button/declaration.d.ts +4 -27
- package/dist/elements/basic/Button/declaration.mjs +2 -25
- package/dist/elements/basic/Button/index.d.ts +4 -25
- package/dist/elements/basic/Dropdown/Dropdown.mjs +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +3 -19
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +2 -16
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +3 -17
- package/dist/elements/basic/Dropdown/declaration.d.ts +3 -26
- package/dist/elements/basic/Dropdown/declaration.mjs +16 -41
- package/dist/elements/basic/Dropdown/index.d.ts +5 -42
- package/dist/elements/basic/Dropdown/useDropdown.mjs +23 -29
- package/dist/elements/basic/Heading/Heading.mjs +15 -17
- package/dist/elements/basic/Heading/Settings.mjs +4 -4
- package/dist/elements/basic/Heading/declaration.d.ts +2 -27
- package/dist/elements/basic/Heading/declaration.mjs +2 -23
- package/dist/elements/basic/Heading/index.d.ts +2 -25
- package/dist/elements/basic/Link/Link.mjs +52 -59
- package/dist/elements/basic/Link/Settings.mjs +52 -51
- package/dist/elements/basic/Link/declaration.d.ts +6 -26
- package/dist/elements/basic/Link/declaration.mjs +8 -32
- package/dist/elements/basic/Link/index.d.ts +6 -24
- package/dist/elements/basic/Markdown/Markdown.mjs +1 -1
- package/dist/elements/basic/Markdown/declaration.d.ts +2 -25
- package/dist/elements/basic/Markdown/declaration.mjs +2 -25
- package/dist/elements/basic/Markdown/index.d.ts +2 -23
- package/dist/elements/basic/Paragraph/Paragraph.mjs +15 -17
- package/dist/elements/basic/Paragraph/declaration.d.ts +2 -27
- package/dist/elements/basic/Paragraph/declaration.mjs +5 -28
- package/dist/elements/basic/Paragraph/index.d.ts +2 -25
- package/dist/elements/basic/RichText/RichText.mjs +1 -1
- package/dist/elements/basic/RichText/Settings.mjs +4 -4
- package/dist/elements/basic/RichText/declaration.d.ts +4 -27
- package/dist/elements/basic/RichText/declaration.mjs +2 -23
- package/dist/elements/basic/RichText/index.d.ts +4 -25
- package/dist/elements/basic/Text/Text.mjs +16 -18
- package/dist/elements/basic/Text/declaration.d.ts +3 -28
- package/dist/elements/basic/Text/declaration.mjs +2 -25
- package/dist/elements/basic/Text/index.d.ts +3 -26
- package/dist/elements/basic/ThemeToggle/Settings.d.ts +6 -0
- package/dist/elements/basic/ThemeToggle/Settings.mjs +49 -0
- package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +40 -39
- package/dist/elements/basic/ThemeToggle/declaration.d.ts +3 -26
- package/dist/elements/basic/ThemeToggle/declaration.mjs +2 -23
- package/dist/elements/basic/ThemeToggle/index.d.ts +3 -24
- package/dist/elements/declarations/index.d.ts +139 -1061
- package/dist/elements/form/Form/Form.mjs +65 -64
- package/dist/elements/form/Form/declaration.d.ts +3 -28
- package/dist/elements/form/Form/declaration.mjs +2 -25
- package/dist/elements/form/Form/index.d.ts +17 -25
- package/dist/elements/form/FormControl/FormControl.mjs +106 -105
- package/dist/elements/form/FormControl/declaration.d.ts +2 -22
- package/dist/elements/form/FormControl/declaration.mjs +4 -23
- package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +1 -1
- package/dist/elements/form/FormControl/index.d.ts +16 -20
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +1 -1
- package/dist/elements/internal/LayoutContainer/declaration.d.ts +3 -25
- package/dist/elements/internal/LayoutContainer/declaration.mjs +3 -23
- package/dist/elements/internal/LayoutContainer/index.d.ts +3 -23
- package/dist/elements/internal/Loading/Settings.d.ts +2 -0
- package/dist/elements/internal/Loading/Settings.mjs +5 -0
- package/dist/elements/internal/Loading/declaration.d.ts +2 -24
- package/dist/elements/internal/Loading/declaration.mjs +3 -25
- package/dist/elements/internal/Loading/index.d.ts +2 -22
- package/dist/elements/internal/NotFound/NotFound.mjs +1 -1
- package/dist/elements/internal/NotFound/Settings.d.ts +2 -0
- package/dist/elements/internal/NotFound/Settings.mjs +5 -0
- package/dist/elements/internal/NotFound/declaration.d.ts +2 -24
- package/dist/elements/internal/NotFound/declaration.mjs +7 -29
- package/dist/elements/internal/NotFound/index.d.ts +2 -22
- package/dist/elements/internal/Page/Page.mjs +17 -16
- package/dist/elements/internal/Page/Settings.mjs +102 -101
- package/dist/elements/internal/Page/declaration.d.ts +3 -23
- package/dist/elements/internal/Page/declaration.mjs +14 -32
- package/dist/elements/internal/Page/index.d.ts +3 -21
- package/dist/elements/media/Embed/Embed.mjs +1 -1
- package/dist/elements/media/Embed/Settings.mjs +7 -7
- package/dist/elements/media/Embed/declaration.d.ts +2 -27
- package/dist/elements/media/Embed/declaration.mjs +10 -33
- package/dist/elements/media/Embed/index.d.ts +2 -25
- package/dist/elements/media/FontAwesome/Settings.mjs +8 -8
- package/dist/elements/media/FontAwesome/declaration.d.ts +2 -27
- package/dist/elements/media/FontAwesome/declaration.mjs +5 -28
- package/dist/elements/media/FontAwesome/index.d.ts +2 -25
- package/dist/elements/media/Image/Image.mjs +1 -1
- package/dist/elements/media/Image/Settings.mjs +47 -46
- package/dist/elements/media/Image/declaration.d.ts +2 -27
- package/dist/elements/media/Image/declaration.mjs +7 -30
- package/dist/elements/media/Image/index.d.ts +2 -25
- package/dist/elements/media/Svg/Settings.mjs +4 -4
- package/dist/elements/media/Svg/Svg.mjs +1 -1
- package/dist/elements/media/Svg/declaration.d.ts +3 -27
- package/dist/elements/media/Svg/declaration.mjs +2 -22
- package/dist/elements/media/Svg/index.d.ts +3 -25
- package/dist/elements/media/Video/Settings.mjs +7 -7
- package/dist/elements/media/Video/Video.mjs +1 -1
- package/dist/elements/media/Video/declaration.d.ts +2 -27
- package/dist/elements/media/Video/declaration.mjs +6 -29
- package/dist/elements/media/Video/index.d.ts +2 -25
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +151 -150
- package/dist/elements/provider/ApiContainer/Settings.mjs +135 -134
- package/dist/elements/provider/ApiContainer/declaration.d.ts +3 -28
- package/dist/elements/provider/ApiContainer/declaration.mjs +2 -23
- package/dist/elements/provider/ApiContainer/index.d.ts +3 -26
- package/dist/elements/provider/Channel/Channel.mjs +40 -39
- package/dist/elements/provider/Channel/declaration.d.ts +3 -28
- package/dist/elements/provider/Channel/declaration.mjs +3 -24
- package/dist/elements/provider/Channel/index.d.ts +3 -26
- package/dist/elements/settings.mjs +70 -62
- package/dist/elements/structure/Carousel/Carousel.mjs +36 -35
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.d.ts +3 -25
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs +6 -28
- package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +3 -23
- package/dist/elements/structure/Carousel/Settings.mjs +40 -39
- package/dist/elements/structure/Carousel/declaration.d.ts +4 -29
- package/dist/elements/structure/Carousel/declaration.mjs +2 -25
- package/dist/elements/structure/Carousel/index.d.ts +6 -51
- package/dist/elements/structure/Container/Settings.mjs +40 -39
- package/dist/elements/structure/Container/declaration.d.ts +3 -28
- package/dist/elements/structure/Container/declaration.mjs +2 -23
- package/dist/elements/structure/Container/index.d.ts +3 -26
- package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +8 -8
- package/dist/elements/structure/DialogContainer/DialogContainer.mjs +54 -173
- package/dist/elements/structure/DialogContainer/Settings.mjs +24 -23
- package/dist/elements/structure/DialogContainer/declaration.d.ts +8 -31
- package/dist/elements/structure/DialogContainer/declaration.mjs +2 -23
- package/dist/elements/structure/DialogContainer/index.d.ts +8 -29
- package/dist/elements/structure/List/ListItem/declaration.d.ts +4 -26
- package/dist/elements/structure/List/ListItem/declaration.mjs +3 -25
- package/dist/elements/structure/List/ListItem/index.d.ts +4 -24
- package/dist/elements/structure/List/Settings.mjs +6 -6
- package/dist/elements/structure/List/declaration.d.ts +3 -28
- package/dist/elements/structure/List/declaration.mjs +2 -23
- package/dist/elements/structure/List/index.d.ts +6 -51
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +13 -12
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +6 -6
- package/dist/elements/structure/ModalContainer/ModalContainer.mjs +27 -121
- package/dist/elements/structure/ModalContainer/Settings.mjs +15 -14
- package/dist/elements/structure/ModalContainer/declaration.d.ts +3 -26
- package/dist/elements/structure/ModalContainer/declaration.mjs +2 -23
- package/dist/elements/structure/ModalContainer/index.d.ts +3 -24
- package/dist/elements/structure/Overlay/OverlayShell.d.ts +24 -0
- package/dist/elements/structure/Overlay/OverlayShell.mjs +64 -0
- package/dist/elements/structure/Overlay/metadataOf.d.ts +8 -0
- package/dist/elements/structure/{ModalContainer/metadataFromText.mjs → Overlay/metadataOf.mjs} +5 -2
- package/dist/elements/structure/{ModalContainer → Overlay}/useModalDialog.mjs +1 -1
- package/dist/elements/structure/Overlay/useOverlay.d.ts +40 -0
- package/dist/elements/structure/Overlay/useOverlay.mjs +83 -0
- package/dist/elements/structure/Pagination/Pagination.mjs +28 -27
- package/dist/elements/structure/Pagination/Settings.mjs +10 -10
- package/dist/elements/structure/Pagination/declaration.d.ts +3 -26
- package/dist/elements/structure/Pagination/declaration.mjs +2 -23
- package/dist/elements/structure/Pagination/index.d.ts +3 -24
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +3 -3
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.mjs +10 -32
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.d.ts +4 -22
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs +3 -17
- package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +4 -20
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +3 -3
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.mjs +10 -34
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.d.ts +4 -22
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs +3 -17
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +4 -20
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +4 -26
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +7 -27
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +4 -24
- package/dist/elements/structure/TabContainer/declaration.d.ts +4 -26
- package/dist/elements/structure/TabContainer/declaration.mjs +3 -23
- package/dist/elements/structure/TabContainer/index.d.ts +15 -89
- package/dist/elements/structure/TabContainer/useTabItems.d.ts +7 -0
- package/dist/elements/structure/TabContainer/useTabItems.mjs +35 -0
- package/dist/elements/useSettingsUpdate.d.ts +12 -0
- package/dist/elements/useSettingsUpdate.mjs +8 -0
- package/dist/index.d.ts +163 -984
- package/package.json +57 -13
- package/dist/elements/structure/ModalContainer/metadataFromText.d.ts +0 -7
- /package/dist/elements/structure/{ModalContainer → Overlay}/useModalDialog.d.ts +0 -0
|
@@ -2,45 +2,28 @@ import { TabContainerHeaderProps } from './TabContainerHeader';
|
|
|
2
2
|
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type TabContainerHeaderAttributes = AuthorableAttributes<TabContainerHeaderProps>;
|
|
5
|
-
declare const declaration: {
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
|
|
6
6
|
readonly type: "tabContainerHeader";
|
|
7
7
|
readonly ancestorType: "tabContainer";
|
|
8
8
|
readonly content: {
|
|
9
9
|
readonly attributes: {};
|
|
10
10
|
readonly definition: {
|
|
11
11
|
readonly label: "Tab Container Header";
|
|
12
|
-
readonly type: "tabContainerHeader";
|
|
13
12
|
readonly description: "The row of tab triggers inside a tabContainer.";
|
|
14
|
-
readonly items:
|
|
15
|
-
readonly bindings: {};
|
|
16
|
-
readonly styleSelectors: {
|
|
17
|
-
readonly base: "";
|
|
18
|
-
};
|
|
19
|
-
readonly initialState: {
|
|
20
|
-
readonly visibility: true;
|
|
21
|
-
};
|
|
13
|
+
readonly items: [];
|
|
22
14
|
};
|
|
23
15
|
readonly builder: {
|
|
24
16
|
readonly canDelete: false;
|
|
25
|
-
readonly canSelect: true;
|
|
26
17
|
readonly canDragDrop: false;
|
|
27
18
|
readonly canMove: false;
|
|
28
19
|
readonly canSnippet: false;
|
|
29
|
-
readonly itemsAllowed:
|
|
30
|
-
readonly itemsNotAllowed: readonly [];
|
|
20
|
+
readonly itemsAllowed: ["tabContainerItem"];
|
|
31
21
|
};
|
|
32
22
|
readonly market: {
|
|
33
23
|
readonly category: "structure";
|
|
34
|
-
readonly owner: "Plitzi";
|
|
35
|
-
readonly verified: true;
|
|
36
|
-
readonly license: "MIT";
|
|
37
|
-
readonly website: "https://plitzi.com";
|
|
38
|
-
readonly backgroundColor: "#4422ee";
|
|
39
24
|
readonly icon: "fa-solid fa-table-columns";
|
|
40
25
|
};
|
|
41
26
|
readonly defaultStyle: {
|
|
42
|
-
readonly name: "Tab Container Header";
|
|
43
|
-
readonly displayMode: "desktop";
|
|
44
27
|
readonly style: {
|
|
45
28
|
readonly base: {
|
|
46
29
|
readonly default: {};
|
|
@@ -48,8 +31,7 @@ declare const declaration: {
|
|
|
48
31
|
};
|
|
49
32
|
readonly subTypes: {};
|
|
50
33
|
};
|
|
51
|
-
readonly settings: {};
|
|
52
34
|
};
|
|
53
35
|
readonly initialItems: readonly ["tabContainerItem", "tabContainerItem", "tabContainerItem"];
|
|
54
|
-
}
|
|
36
|
+
}, unknown>;
|
|
55
37
|
export default declaration;
|
|
@@ -7,38 +7,24 @@ var t = e()({
|
|
|
7
7
|
attributes: {},
|
|
8
8
|
definition: {
|
|
9
9
|
label: "Tab Container Header",
|
|
10
|
-
type: "tabContainerHeader",
|
|
11
10
|
description: "The row of tab triggers inside a tabContainer.",
|
|
12
|
-
items: []
|
|
13
|
-
bindings: {},
|
|
14
|
-
styleSelectors: { base: "" },
|
|
15
|
-
initialState: { visibility: !0 }
|
|
11
|
+
items: []
|
|
16
12
|
},
|
|
17
13
|
builder: {
|
|
18
14
|
canDelete: !1,
|
|
19
|
-
canSelect: !0,
|
|
20
15
|
canDragDrop: !1,
|
|
21
16
|
canMove: !1,
|
|
22
17
|
canSnippet: !1,
|
|
23
|
-
itemsAllowed: ["tabContainerItem"]
|
|
24
|
-
itemsNotAllowed: []
|
|
18
|
+
itemsAllowed: ["tabContainerItem"]
|
|
25
19
|
},
|
|
26
20
|
market: {
|
|
27
21
|
category: "structure",
|
|
28
|
-
owner: "Plitzi",
|
|
29
|
-
verified: !0,
|
|
30
|
-
license: "MIT",
|
|
31
|
-
website: "https://plitzi.com",
|
|
32
|
-
backgroundColor: "#4422ee",
|
|
33
22
|
icon: "fa-solid fa-table-columns"
|
|
34
23
|
},
|
|
35
24
|
defaultStyle: {
|
|
36
|
-
name: "Tab Container Header",
|
|
37
|
-
displayMode: "desktop",
|
|
38
25
|
style: { base: { default: {} } },
|
|
39
26
|
subTypes: {}
|
|
40
|
-
}
|
|
41
|
-
settings: {}
|
|
27
|
+
}
|
|
42
28
|
},
|
|
43
29
|
initialItems: [
|
|
44
30
|
"tabContainerItem",
|
|
@@ -8,38 +8,21 @@ declare const TabContainerHeader: {
|
|
|
8
8
|
readonly attributes: {};
|
|
9
9
|
readonly definition: {
|
|
10
10
|
readonly label: "Tab Container Header";
|
|
11
|
-
readonly type: "tabContainerHeader";
|
|
12
11
|
readonly description: "The row of tab triggers inside a tabContainer.";
|
|
13
|
-
readonly items:
|
|
14
|
-
readonly bindings: {};
|
|
15
|
-
readonly styleSelectors: {
|
|
16
|
-
readonly base: "";
|
|
17
|
-
};
|
|
18
|
-
readonly initialState: {
|
|
19
|
-
readonly visibility: true;
|
|
20
|
-
};
|
|
12
|
+
readonly items: [];
|
|
21
13
|
};
|
|
22
14
|
readonly builder: {
|
|
23
15
|
readonly canDelete: false;
|
|
24
|
-
readonly canSelect: true;
|
|
25
16
|
readonly canDragDrop: false;
|
|
26
17
|
readonly canMove: false;
|
|
27
18
|
readonly canSnippet: false;
|
|
28
|
-
readonly itemsAllowed:
|
|
29
|
-
readonly itemsNotAllowed: readonly [];
|
|
19
|
+
readonly itemsAllowed: ["tabContainerItem"];
|
|
30
20
|
};
|
|
31
21
|
readonly market: {
|
|
32
22
|
readonly category: "structure";
|
|
33
|
-
readonly owner: "Plitzi";
|
|
34
|
-
readonly verified: true;
|
|
35
|
-
readonly license: "MIT";
|
|
36
|
-
readonly website: "https://plitzi.com";
|
|
37
|
-
readonly backgroundColor: "#4422ee";
|
|
38
23
|
readonly icon: "fa-solid fa-table-columns";
|
|
39
24
|
};
|
|
40
25
|
readonly defaultStyle: {
|
|
41
|
-
readonly name: "Tab Container Header";
|
|
42
|
-
readonly displayMode: "desktop";
|
|
43
26
|
readonly style: {
|
|
44
27
|
readonly base: {
|
|
45
28
|
readonly default: {};
|
|
@@ -47,8 +30,9 @@ declare const TabContainerHeader: {
|
|
|
47
30
|
};
|
|
48
31
|
readonly subTypes: {};
|
|
49
32
|
};
|
|
50
|
-
readonly settings: {};
|
|
51
33
|
};
|
|
52
34
|
readonly initialItems: readonly ["tabContainerItem", "tabContainerItem", "tabContainerItem"];
|
|
35
|
+
} & {
|
|
36
|
+
content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
|
|
53
37
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
|
|
54
38
|
export default TabContainerHeader;
|
|
@@ -2,44 +2,23 @@ import { TabContainerItemProps } from './TabContainerItem';
|
|
|
2
2
|
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type TabContainerItemAttributes = AuthorableAttributes<TabContainerItemProps, 'baseId' | 'tabSelected' | 'tabIndex' | 'tabCount' | 'isHeader' | 'onSelect'>;
|
|
5
|
-
declare const declaration: {
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
|
|
6
6
|
readonly type: "tabContainerItem";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {};
|
|
9
9
|
readonly definition: {
|
|
10
10
|
readonly label: "Tab Container Item";
|
|
11
|
-
readonly type: "tabContainerItem";
|
|
12
11
|
readonly description: "One selectable tab (trigger + panel) inside a tabContainer.";
|
|
13
|
-
readonly items:
|
|
14
|
-
readonly bindings: {};
|
|
15
|
-
readonly styleSelectors: {
|
|
16
|
-
readonly base: "";
|
|
17
|
-
};
|
|
18
|
-
readonly initialState: {
|
|
19
|
-
readonly visibility: true;
|
|
20
|
-
};
|
|
12
|
+
readonly items: [];
|
|
21
13
|
};
|
|
22
14
|
readonly builder: {
|
|
23
|
-
readonly
|
|
24
|
-
readonly canSelect: true;
|
|
25
|
-
readonly canDragDrop: true;
|
|
26
|
-
readonly canMove: true;
|
|
27
|
-
readonly canSnippet: true;
|
|
28
|
-
readonly itemsAllowed: readonly [];
|
|
29
|
-
readonly itemsNotAllowed: readonly ["tabContainerItem", "tabContainerHeader", "tabContainerBody"];
|
|
15
|
+
readonly itemsNotAllowed: ["tabContainerItem", "tabContainerHeader", "tabContainerBody"];
|
|
30
16
|
};
|
|
31
17
|
readonly market: {
|
|
32
18
|
readonly category: "structure";
|
|
33
|
-
readonly owner: "Plitzi";
|
|
34
|
-
readonly verified: true;
|
|
35
|
-
readonly license: "MIT";
|
|
36
|
-
readonly website: "https://plitzi.com";
|
|
37
|
-
readonly backgroundColor: "#4422ee";
|
|
38
19
|
readonly icon: "fa-regular fa-folder";
|
|
39
20
|
};
|
|
40
21
|
readonly defaultStyle: {
|
|
41
|
-
readonly name: "Tab Container Item";
|
|
42
|
-
readonly displayMode: "desktop";
|
|
43
22
|
readonly style: {
|
|
44
23
|
readonly base: {
|
|
45
24
|
readonly default: {};
|
|
@@ -47,7 +26,6 @@ declare const declaration: {
|
|
|
47
26
|
};
|
|
48
27
|
readonly subTypes: {};
|
|
49
28
|
};
|
|
50
|
-
readonly settings: {};
|
|
51
29
|
};
|
|
52
|
-
}
|
|
30
|
+
}, unknown>;
|
|
53
31
|
export default declaration;
|
|
@@ -6,42 +6,22 @@ var t = e()({
|
|
|
6
6
|
attributes: {},
|
|
7
7
|
definition: {
|
|
8
8
|
label: "Tab Container Item",
|
|
9
|
-
type: "tabContainerItem",
|
|
10
9
|
description: "One selectable tab (trigger + panel) inside a tabContainer.",
|
|
11
|
-
items: []
|
|
12
|
-
bindings: {},
|
|
13
|
-
styleSelectors: { base: "" },
|
|
14
|
-
initialState: { visibility: !0 }
|
|
15
|
-
},
|
|
16
|
-
builder: {
|
|
17
|
-
canDelete: !0,
|
|
18
|
-
canSelect: !0,
|
|
19
|
-
canDragDrop: !0,
|
|
20
|
-
canMove: !0,
|
|
21
|
-
canSnippet: !0,
|
|
22
|
-
itemsAllowed: [],
|
|
23
|
-
itemsNotAllowed: [
|
|
24
|
-
"tabContainerItem",
|
|
25
|
-
"tabContainerHeader",
|
|
26
|
-
"tabContainerBody"
|
|
27
|
-
]
|
|
10
|
+
items: []
|
|
28
11
|
},
|
|
12
|
+
builder: { itemsNotAllowed: [
|
|
13
|
+
"tabContainerItem",
|
|
14
|
+
"tabContainerHeader",
|
|
15
|
+
"tabContainerBody"
|
|
16
|
+
] },
|
|
29
17
|
market: {
|
|
30
18
|
category: "structure",
|
|
31
|
-
owner: "Plitzi",
|
|
32
|
-
verified: !0,
|
|
33
|
-
license: "MIT",
|
|
34
|
-
website: "https://plitzi.com",
|
|
35
|
-
backgroundColor: "#4422ee",
|
|
36
19
|
icon: "fa-regular fa-folder"
|
|
37
20
|
},
|
|
38
21
|
defaultStyle: {
|
|
39
|
-
name: "Tab Container Item",
|
|
40
|
-
displayMode: "desktop",
|
|
41
22
|
style: { base: { default: {} } },
|
|
42
23
|
subTypes: {}
|
|
43
|
-
}
|
|
44
|
-
settings: {}
|
|
24
|
+
}
|
|
45
25
|
}
|
|
46
26
|
});
|
|
47
27
|
//#endregion
|
|
@@ -7,38 +7,17 @@ declare const TabContainerItem: {
|
|
|
7
7
|
readonly attributes: {};
|
|
8
8
|
readonly definition: {
|
|
9
9
|
readonly label: "Tab Container Item";
|
|
10
|
-
readonly type: "tabContainerItem";
|
|
11
10
|
readonly description: "One selectable tab (trigger + panel) inside a tabContainer.";
|
|
12
|
-
readonly items:
|
|
13
|
-
readonly bindings: {};
|
|
14
|
-
readonly styleSelectors: {
|
|
15
|
-
readonly base: "";
|
|
16
|
-
};
|
|
17
|
-
readonly initialState: {
|
|
18
|
-
readonly visibility: true;
|
|
19
|
-
};
|
|
11
|
+
readonly items: [];
|
|
20
12
|
};
|
|
21
13
|
readonly builder: {
|
|
22
|
-
readonly
|
|
23
|
-
readonly canSelect: true;
|
|
24
|
-
readonly canDragDrop: true;
|
|
25
|
-
readonly canMove: true;
|
|
26
|
-
readonly canSnippet: true;
|
|
27
|
-
readonly itemsAllowed: readonly [];
|
|
28
|
-
readonly itemsNotAllowed: readonly ["tabContainerItem", "tabContainerHeader", "tabContainerBody"];
|
|
14
|
+
readonly itemsNotAllowed: ["tabContainerItem", "tabContainerHeader", "tabContainerBody"];
|
|
29
15
|
};
|
|
30
16
|
readonly market: {
|
|
31
17
|
readonly category: "structure";
|
|
32
|
-
readonly owner: "Plitzi";
|
|
33
|
-
readonly verified: true;
|
|
34
|
-
readonly license: "MIT";
|
|
35
|
-
readonly website: "https://plitzi.com";
|
|
36
|
-
readonly backgroundColor: "#4422ee";
|
|
37
18
|
readonly icon: "fa-regular fa-folder";
|
|
38
19
|
};
|
|
39
20
|
readonly defaultStyle: {
|
|
40
|
-
readonly name: "Tab Container Item";
|
|
41
|
-
readonly displayMode: "desktop";
|
|
42
21
|
readonly style: {
|
|
43
22
|
readonly base: {
|
|
44
23
|
readonly default: {};
|
|
@@ -46,7 +25,8 @@ declare const TabContainerItem: {
|
|
|
46
25
|
};
|
|
47
26
|
readonly subTypes: {};
|
|
48
27
|
};
|
|
49
|
-
readonly settings: {};
|
|
50
28
|
};
|
|
29
|
+
} & {
|
|
30
|
+
content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
|
|
51
31
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
|
|
52
32
|
export default TabContainerItem;
|
|
@@ -2,44 +2,23 @@ import { TabContainerProps } from './TabContainer';
|
|
|
2
2
|
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type TabContainerAttributes = AuthorableAttributes<TabContainerProps>;
|
|
5
|
-
declare const declaration: {
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
|
|
6
6
|
readonly type: "tabContainer";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {};
|
|
9
9
|
readonly definition: {
|
|
10
10
|
readonly label: "Tab Container";
|
|
11
|
-
readonly type: "tabContainer";
|
|
12
11
|
readonly description: "A tabbed container that switches between panels; composed of header/body/item parts.";
|
|
13
|
-
readonly items:
|
|
14
|
-
readonly bindings: {};
|
|
15
|
-
readonly styleSelectors: {
|
|
16
|
-
readonly base: "";
|
|
17
|
-
};
|
|
18
|
-
readonly initialState: {
|
|
19
|
-
readonly visibility: true;
|
|
20
|
-
};
|
|
12
|
+
readonly items: [];
|
|
21
13
|
};
|
|
22
14
|
readonly builder: {
|
|
23
|
-
readonly
|
|
24
|
-
readonly canSelect: true;
|
|
25
|
-
readonly canDragDrop: true;
|
|
26
|
-
readonly canMove: true;
|
|
27
|
-
readonly canSnippet: true;
|
|
28
|
-
readonly itemsAllowed: readonly ["tabContainerHeader", "tabContainerBody"];
|
|
29
|
-
readonly itemsNotAllowed: readonly [];
|
|
15
|
+
readonly itemsAllowed: ["tabContainerHeader", "tabContainerBody"];
|
|
30
16
|
};
|
|
31
17
|
readonly market: {
|
|
32
18
|
readonly category: "structure";
|
|
33
|
-
readonly owner: "Plitzi";
|
|
34
|
-
readonly verified: true;
|
|
35
|
-
readonly license: "MIT";
|
|
36
|
-
readonly website: "https://plitzi.com";
|
|
37
|
-
readonly backgroundColor: "#4422ee";
|
|
38
19
|
readonly icon: "fa-solid fa-table-columns";
|
|
39
20
|
};
|
|
40
21
|
readonly defaultStyle: {
|
|
41
|
-
readonly name: "Tab Container";
|
|
42
|
-
readonly displayMode: "desktop";
|
|
43
22
|
readonly style: {
|
|
44
23
|
readonly base: {
|
|
45
24
|
readonly default: {};
|
|
@@ -47,8 +26,7 @@ declare const declaration: {
|
|
|
47
26
|
};
|
|
48
27
|
readonly subTypes: {};
|
|
49
28
|
};
|
|
50
|
-
readonly settings: {};
|
|
51
29
|
};
|
|
52
30
|
readonly initialItems: readonly ["tabContainerHeader", "tabContainerBody"];
|
|
53
|
-
}
|
|
31
|
+
}, unknown>;
|
|
54
32
|
export default declaration;
|
|
@@ -6,38 +6,18 @@ var t = e()({
|
|
|
6
6
|
attributes: {},
|
|
7
7
|
definition: {
|
|
8
8
|
label: "Tab Container",
|
|
9
|
-
type: "tabContainer",
|
|
10
9
|
description: "A tabbed container that switches between panels; composed of header/body/item parts.",
|
|
11
|
-
items: []
|
|
12
|
-
bindings: {},
|
|
13
|
-
styleSelectors: { base: "" },
|
|
14
|
-
initialState: { visibility: !0 }
|
|
15
|
-
},
|
|
16
|
-
builder: {
|
|
17
|
-
canDelete: !0,
|
|
18
|
-
canSelect: !0,
|
|
19
|
-
canDragDrop: !0,
|
|
20
|
-
canMove: !0,
|
|
21
|
-
canSnippet: !0,
|
|
22
|
-
itemsAllowed: ["tabContainerHeader", "tabContainerBody"],
|
|
23
|
-
itemsNotAllowed: []
|
|
10
|
+
items: []
|
|
24
11
|
},
|
|
12
|
+
builder: { itemsAllowed: ["tabContainerHeader", "tabContainerBody"] },
|
|
25
13
|
market: {
|
|
26
14
|
category: "structure",
|
|
27
|
-
owner: "Plitzi",
|
|
28
|
-
verified: !0,
|
|
29
|
-
license: "MIT",
|
|
30
|
-
website: "https://plitzi.com",
|
|
31
|
-
backgroundColor: "#4422ee",
|
|
32
15
|
icon: "fa-solid fa-table-columns"
|
|
33
16
|
},
|
|
34
17
|
defaultStyle: {
|
|
35
|
-
name: "Tab Container",
|
|
36
|
-
displayMode: "desktop",
|
|
37
18
|
style: { base: { default: {} } },
|
|
38
19
|
subTypes: {}
|
|
39
|
-
}
|
|
40
|
-
settings: {}
|
|
20
|
+
}
|
|
41
21
|
},
|
|
42
22
|
initialItems: ["tabContainerHeader", "tabContainerBody"]
|
|
43
23
|
});
|
|
@@ -13,38 +13,21 @@ declare const TabContainer: {
|
|
|
13
13
|
readonly attributes: {};
|
|
14
14
|
readonly definition: {
|
|
15
15
|
readonly label: "Tab Container Header";
|
|
16
|
-
readonly type: "tabContainerHeader";
|
|
17
16
|
readonly description: "The row of tab triggers inside a tabContainer.";
|
|
18
|
-
readonly items:
|
|
19
|
-
readonly bindings: {};
|
|
20
|
-
readonly styleSelectors: {
|
|
21
|
-
readonly base: "";
|
|
22
|
-
};
|
|
23
|
-
readonly initialState: {
|
|
24
|
-
readonly visibility: true;
|
|
25
|
-
};
|
|
17
|
+
readonly items: [];
|
|
26
18
|
};
|
|
27
19
|
readonly builder: {
|
|
28
20
|
readonly canDelete: false;
|
|
29
|
-
readonly canSelect: true;
|
|
30
21
|
readonly canDragDrop: false;
|
|
31
22
|
readonly canMove: false;
|
|
32
23
|
readonly canSnippet: false;
|
|
33
|
-
readonly itemsAllowed:
|
|
34
|
-
readonly itemsNotAllowed: readonly [];
|
|
24
|
+
readonly itemsAllowed: ["tabContainerItem"];
|
|
35
25
|
};
|
|
36
26
|
readonly market: {
|
|
37
27
|
readonly category: "structure";
|
|
38
|
-
readonly owner: "Plitzi";
|
|
39
|
-
readonly verified: true;
|
|
40
|
-
readonly license: "MIT";
|
|
41
|
-
readonly website: "https://plitzi.com";
|
|
42
|
-
readonly backgroundColor: "#4422ee";
|
|
43
28
|
readonly icon: "fa-solid fa-table-columns";
|
|
44
29
|
};
|
|
45
30
|
readonly defaultStyle: {
|
|
46
|
-
readonly name: "Tab Container Header";
|
|
47
|
-
readonly displayMode: "desktop";
|
|
48
31
|
readonly style: {
|
|
49
32
|
readonly base: {
|
|
50
33
|
readonly default: {};
|
|
@@ -52,9 +35,10 @@ declare const TabContainer: {
|
|
|
52
35
|
};
|
|
53
36
|
readonly subTypes: {};
|
|
54
37
|
};
|
|
55
|
-
readonly settings: {};
|
|
56
38
|
};
|
|
57
39
|
readonly initialItems: readonly ["tabContainerItem", "tabContainerItem", "tabContainerItem"];
|
|
40
|
+
} & {
|
|
41
|
+
content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
|
|
58
42
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
|
|
59
43
|
tabContainerBody: {
|
|
60
44
|
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./TabContainerBody/TabContainerBody').TabContainerBodyProps>): import('react').JSX.Element;
|
|
@@ -66,38 +50,21 @@ declare const TabContainer: {
|
|
|
66
50
|
readonly attributes: {};
|
|
67
51
|
readonly definition: {
|
|
68
52
|
readonly label: "Tab Container Body";
|
|
69
|
-
readonly type: "tabContainerBody";
|
|
70
53
|
readonly description: "The panel area inside a tabContainer that shows the active tab item.";
|
|
71
|
-
readonly items:
|
|
72
|
-
readonly bindings: {};
|
|
73
|
-
readonly styleSelectors: {
|
|
74
|
-
readonly base: "";
|
|
75
|
-
};
|
|
76
|
-
readonly initialState: {
|
|
77
|
-
readonly visibility: true;
|
|
78
|
-
};
|
|
54
|
+
readonly items: [];
|
|
79
55
|
};
|
|
80
56
|
readonly builder: {
|
|
81
57
|
readonly canDelete: false;
|
|
82
|
-
readonly canSelect: true;
|
|
83
58
|
readonly canDragDrop: false;
|
|
84
59
|
readonly canMove: false;
|
|
85
60
|
readonly canSnippet: false;
|
|
86
|
-
readonly itemsAllowed:
|
|
87
|
-
readonly itemsNotAllowed: readonly [];
|
|
61
|
+
readonly itemsAllowed: ["tabContainerItem"];
|
|
88
62
|
};
|
|
89
63
|
readonly market: {
|
|
90
64
|
readonly category: "structure";
|
|
91
|
-
readonly owner: "Plitzi";
|
|
92
|
-
readonly verified: true;
|
|
93
|
-
readonly license: "MIT";
|
|
94
|
-
readonly website: "https://plitzi.com";
|
|
95
|
-
readonly backgroundColor: "#4422ee";
|
|
96
65
|
readonly icon: "fa-solid fa-table-columns";
|
|
97
66
|
};
|
|
98
67
|
readonly defaultStyle: {
|
|
99
|
-
readonly name: "Tab Container Body";
|
|
100
|
-
readonly displayMode: "desktop";
|
|
101
68
|
readonly style: {
|
|
102
69
|
readonly base: {
|
|
103
70
|
readonly default: {};
|
|
@@ -105,9 +72,10 @@ declare const TabContainer: {
|
|
|
105
72
|
};
|
|
106
73
|
readonly subTypes: {};
|
|
107
74
|
};
|
|
108
|
-
readonly settings: {};
|
|
109
75
|
};
|
|
110
76
|
readonly initialItems: readonly ["tabContainerItem", "tabContainerItem", "tabContainerItem"];
|
|
77
|
+
} & {
|
|
78
|
+
content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
|
|
111
79
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
|
|
112
80
|
tabContainerItem: {
|
|
113
81
|
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./TabContainerItem/TabContainerItem').TabContainerItemProps>): import('react').JSX.Element;
|
|
@@ -118,38 +86,17 @@ declare const TabContainer: {
|
|
|
118
86
|
readonly attributes: {};
|
|
119
87
|
readonly definition: {
|
|
120
88
|
readonly label: "Tab Container Item";
|
|
121
|
-
readonly type: "tabContainerItem";
|
|
122
89
|
readonly description: "One selectable tab (trigger + panel) inside a tabContainer.";
|
|
123
|
-
readonly items:
|
|
124
|
-
readonly bindings: {};
|
|
125
|
-
readonly styleSelectors: {
|
|
126
|
-
readonly base: "";
|
|
127
|
-
};
|
|
128
|
-
readonly initialState: {
|
|
129
|
-
readonly visibility: true;
|
|
130
|
-
};
|
|
90
|
+
readonly items: [];
|
|
131
91
|
};
|
|
132
92
|
readonly builder: {
|
|
133
|
-
readonly
|
|
134
|
-
readonly canSelect: true;
|
|
135
|
-
readonly canDragDrop: true;
|
|
136
|
-
readonly canMove: true;
|
|
137
|
-
readonly canSnippet: true;
|
|
138
|
-
readonly itemsAllowed: readonly [];
|
|
139
|
-
readonly itemsNotAllowed: readonly ["tabContainerItem", "tabContainerHeader", "tabContainerBody"];
|
|
93
|
+
readonly itemsNotAllowed: ["tabContainerItem", "tabContainerHeader", "tabContainerBody"];
|
|
140
94
|
};
|
|
141
95
|
readonly market: {
|
|
142
96
|
readonly category: "structure";
|
|
143
|
-
readonly owner: "Plitzi";
|
|
144
|
-
readonly verified: true;
|
|
145
|
-
readonly license: "MIT";
|
|
146
|
-
readonly website: "https://plitzi.com";
|
|
147
|
-
readonly backgroundColor: "#4422ee";
|
|
148
97
|
readonly icon: "fa-regular fa-folder";
|
|
149
98
|
};
|
|
150
99
|
readonly defaultStyle: {
|
|
151
|
-
readonly name: "Tab Container Item";
|
|
152
|
-
readonly displayMode: "desktop";
|
|
153
100
|
readonly style: {
|
|
154
101
|
readonly base: {
|
|
155
102
|
readonly default: {};
|
|
@@ -157,8 +104,9 @@ declare const TabContainer: {
|
|
|
157
104
|
};
|
|
158
105
|
readonly subTypes: {};
|
|
159
106
|
};
|
|
160
|
-
readonly settings: {};
|
|
161
107
|
};
|
|
108
|
+
} & {
|
|
109
|
+
content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
|
|
162
110
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
|
|
163
111
|
};
|
|
164
112
|
type: "tabContainer";
|
|
@@ -166,38 +114,17 @@ declare const TabContainer: {
|
|
|
166
114
|
readonly attributes: {};
|
|
167
115
|
readonly definition: {
|
|
168
116
|
readonly label: "Tab Container";
|
|
169
|
-
readonly type: "tabContainer";
|
|
170
117
|
readonly description: "A tabbed container that switches between panels; composed of header/body/item parts.";
|
|
171
|
-
readonly items:
|
|
172
|
-
readonly bindings: {};
|
|
173
|
-
readonly styleSelectors: {
|
|
174
|
-
readonly base: "";
|
|
175
|
-
};
|
|
176
|
-
readonly initialState: {
|
|
177
|
-
readonly visibility: true;
|
|
178
|
-
};
|
|
118
|
+
readonly items: [];
|
|
179
119
|
};
|
|
180
120
|
readonly builder: {
|
|
181
|
-
readonly
|
|
182
|
-
readonly canSelect: true;
|
|
183
|
-
readonly canDragDrop: true;
|
|
184
|
-
readonly canMove: true;
|
|
185
|
-
readonly canSnippet: true;
|
|
186
|
-
readonly itemsAllowed: readonly ["tabContainerHeader", "tabContainerBody"];
|
|
187
|
-
readonly itemsNotAllowed: readonly [];
|
|
121
|
+
readonly itemsAllowed: ["tabContainerHeader", "tabContainerBody"];
|
|
188
122
|
};
|
|
189
123
|
readonly market: {
|
|
190
124
|
readonly category: "structure";
|
|
191
|
-
readonly owner: "Plitzi";
|
|
192
|
-
readonly verified: true;
|
|
193
|
-
readonly license: "MIT";
|
|
194
|
-
readonly website: "https://plitzi.com";
|
|
195
|
-
readonly backgroundColor: "#4422ee";
|
|
196
125
|
readonly icon: "fa-solid fa-table-columns";
|
|
197
126
|
};
|
|
198
127
|
readonly defaultStyle: {
|
|
199
|
-
readonly name: "Tab Container";
|
|
200
|
-
readonly displayMode: "desktop";
|
|
201
128
|
readonly style: {
|
|
202
129
|
readonly base: {
|
|
203
130
|
readonly default: {};
|
|
@@ -205,8 +132,7 @@ declare const TabContainer: {
|
|
|
205
132
|
};
|
|
206
133
|
readonly subTypes: {};
|
|
207
134
|
};
|
|
208
|
-
|
|
209
|
-
};
|
|
135
|
+
} & import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
|
|
210
136
|
initialItems: readonly ["tabContainerHeader", "tabContainerBody"];
|
|
211
137
|
__attributes: unknown;
|
|
212
138
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The tabs of a header or a body, each handed what it needs of the container around it: which tab is selected, how to
|
|
4
|
+
* select one, and its own place. A header's also learn they are its, and how many there are, for their `tab` roles.
|
|
5
|
+
*/
|
|
6
|
+
declare const useTabItems: (children: ReactNode, isHeader: boolean) => ReactNode[];
|
|
7
|
+
export default useTabItems;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import e from "./TabContainerContext.mjs";
|
|
2
|
+
import { Children as t, cloneElement as n, isValidElement as r, use as i, useMemo as a } from "react";
|
|
3
|
+
//#region src/elements/structure/TabContainer/useTabItems.ts
|
|
4
|
+
var o = (o, s) => {
|
|
5
|
+
let { baseId: c, tabSelected: l, onSelect: u } = i(e);
|
|
6
|
+
return a(() => {
|
|
7
|
+
let e = [], i = t.toArray(o).filter(r).length;
|
|
8
|
+
return t.forEach(o, (t, a) => {
|
|
9
|
+
if (!r(t)) return;
|
|
10
|
+
let o = t.props;
|
|
11
|
+
e.push(n(t, {
|
|
12
|
+
...o,
|
|
13
|
+
internalProps: {
|
|
14
|
+
...o.internalProps,
|
|
15
|
+
...s ? {
|
|
16
|
+
isHeader: !0,
|
|
17
|
+
tabCount: i
|
|
18
|
+
} : {},
|
|
19
|
+
baseId: c,
|
|
20
|
+
onSelect: u,
|
|
21
|
+
tabSelected: l,
|
|
22
|
+
tabIndex: a
|
|
23
|
+
}
|
|
24
|
+
}));
|
|
25
|
+
}), e;
|
|
26
|
+
}, [
|
|
27
|
+
c,
|
|
28
|
+
o,
|
|
29
|
+
s,
|
|
30
|
+
u,
|
|
31
|
+
l
|
|
32
|
+
]);
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { o as default };
|