@plitzi/sdk-elements 0.38.6 → 0.38.7
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 +205 -0
- package/dist/Element/hooks/useRscData.d.ts +1 -1
- package/dist/components/MarkdownDocument/MarkdownDocument.d.ts +32 -0
- package/dist/components/MarkdownDocument/MarkdownDocument.mjs +32 -0
- package/dist/components/MarkdownDocument/components/CodeBlock/CodeBlock.d.ts +14 -0
- package/dist/components/MarkdownDocument/components/CodeBlock/CodeBlock.mjs +34 -0
- package/dist/components/MarkdownDocument/components/CodeBlock/index.d.ts +3 -0
- package/dist/components/MarkdownDocument/components/CodeBlock/index.mjs +5 -0
- package/dist/components/MarkdownDocument/helpers/hastText.d.ts +10 -0
- package/dist/components/MarkdownDocument/helpers/hastText.mjs +4 -0
- package/dist/components/MarkdownDocument/helpers/markdownComponents.d.ts +10 -0
- package/dist/components/MarkdownDocument/helpers/markdownComponents.mjs +89 -0
- package/dist/components/MarkdownDocument/helpers/markdownParts.d.ts +16 -0
- package/dist/components/MarkdownDocument/helpers/markdownParts.mjs +4 -0
- package/dist/components/MarkdownDocument/helpers/rehypeHeadingAnchors.d.ts +8 -0
- package/dist/components/MarkdownDocument/helpers/rehypeHeadingAnchors.mjs +20 -0
- package/dist/components/MarkdownDocument/helpers/syntaxHighlighter.d.ts +3 -0
- package/dist/components/MarkdownDocument/helpers/syntaxHighlighter.mjs +24 -0
- package/dist/components/MarkdownDocument/index.d.ts +5 -0
- package/dist/components/MarkdownDocument/index.mjs +6 -0
- package/dist/dataSource/GlobalSources.mjs +101 -113
- package/dist/elements/advanced/Custom/declaration.d.ts +5 -1
- package/dist/elements/advanced/Custom/declaration.mjs +5 -1
- package/dist/elements/advanced/Custom/index.d.ts +5 -1
- package/dist/elements/basic/Button/declaration.d.ts +46 -34
- package/dist/elements/basic/Button/declaration.mjs +18 -42
- package/dist/elements/basic/Button/index.d.ts +46 -34
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +2 -0
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +2 -0
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +2 -0
- package/dist/elements/basic/Dropdown/index.d.ts +2 -0
- package/dist/elements/basic/Heading/declaration.d.ts +5 -1
- package/dist/elements/basic/Heading/declaration.mjs +5 -1
- package/dist/elements/basic/Heading/index.d.ts +5 -1
- package/dist/elements/basic/Link/Link.d.ts +7 -1
- package/dist/elements/basic/Link/Link.mjs +27 -27
- package/dist/elements/basic/Link/Settings.d.ts +2 -1
- package/dist/elements/basic/Link/Settings.mjs +42 -29
- package/dist/elements/basic/Link/ariaCurrent.d.ts +12 -0
- package/dist/elements/basic/Link/ariaCurrent.mjs +11 -0
- package/dist/elements/basic/Link/declaration.d.ts +5 -1
- package/dist/elements/basic/Link/declaration.mjs +7 -4
- package/dist/elements/basic/Link/index.d.ts +5 -1
- package/dist/elements/basic/Markdown/Markdown.d.ts +6 -1
- package/dist/elements/basic/Markdown/Markdown.mjs +19 -15
- package/dist/elements/basic/Markdown/Settings.d.ts +2 -1
- package/dist/elements/basic/Markdown/Settings.mjs +16 -10
- package/dist/elements/basic/Markdown/declaration.d.ts +32 -5
- package/dist/elements/basic/Markdown/declaration.mjs +37 -7
- package/dist/elements/basic/Markdown/hooks/useMarkdownClassNames.d.ts +7 -0
- package/dist/elements/basic/Markdown/hooks/useMarkdownClassNames.mjs +13 -0
- package/dist/elements/basic/Markdown/index.d.ts +32 -5
- package/dist/elements/basic/RichText/RichText.mjs +27 -20
- package/dist/elements/basic/RichText/classHtmlParts.d.ts +14 -0
- package/dist/elements/basic/RichText/classHtmlParts.mjs +48 -0
- package/dist/elements/basic/RichText/declaration.d.ts +28 -1
- package/dist/elements/basic/RichText/declaration.mjs +31 -2
- package/dist/elements/basic/RichText/index.d.ts +28 -1
- package/dist/elements/basic/Text/declaration.d.ts +0 -2
- package/dist/elements/basic/Text/declaration.mjs +1 -5
- package/dist/elements/basic/Text/index.d.ts +0 -2
- package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +20 -18
- package/dist/elements/basic/ThemeToggle/declaration.d.ts +48 -4
- package/dist/elements/basic/ThemeToggle/declaration.mjs +32 -8
- package/dist/elements/basic/ThemeToggle/index.d.ts +48 -4
- package/dist/elements/declarations/index.d.ts +781 -318
- package/dist/elements/form/FormControl/FormControl.mjs +51 -53
- package/dist/elements/form/FormControl/Settings.mjs +4 -0
- package/dist/elements/form/FormControl/components/Label.d.ts +3 -1
- package/dist/elements/form/FormControl/components/Label.mjs +5 -5
- package/dist/elements/form/FormControl/declaration.d.ts +479 -233
- package/dist/elements/form/FormControl/declaration.mjs +142 -76
- package/dist/elements/form/FormControl/helpers/isChecked.d.ts +8 -0
- package/dist/elements/form/FormControl/helpers/isChecked.mjs +4 -0
- package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +2 -6
- package/dist/elements/form/FormControl/index.d.ts +479 -233
- package/dist/elements/form/FormControl/inputs/Checkbox.d.ts +7 -3
- package/dist/elements/form/FormControl/inputs/Checkbox.mjs +7 -6
- package/dist/elements/form/FormControl/inputs/Input.d.ts +6 -1
- package/dist/elements/form/FormControl/inputs/Input.mjs +29 -29
- package/dist/elements/form/FormControl/inputs/Select.d.ts +4 -1
- package/dist/elements/form/FormControl/inputs/Select.mjs +15 -15
- package/dist/elements/internal/NotFound/declaration.d.ts +5 -1
- package/dist/elements/internal/NotFound/declaration.mjs +5 -1
- package/dist/elements/internal/NotFound/index.d.ts +5 -1
- package/dist/elements/internal/Page/declaration.d.ts +1 -2
- package/dist/elements/internal/Page/declaration.mjs +2 -3
- package/dist/elements/internal/Page/index.d.ts +1 -2
- package/dist/elements/media/Image/declaration.d.ts +3 -2
- package/dist/elements/media/Image/declaration.mjs +3 -2
- package/dist/elements/media/Image/index.d.ts +3 -2
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +89 -80
- package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +23 -23
- package/dist/elements/provider/ApiContainer/hooks/useProviderWrite.mjs +5 -5
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.d.ts +4 -1
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs +4 -1
- package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +4 -1
- package/dist/elements/structure/Carousel/index.d.ts +4 -1
- package/dist/elements/structure/DialogContainer/DialogContainer.mjs +2 -2
- package/dist/elements/structure/DialogContainer/declaration.d.ts +72 -12
- package/dist/elements/structure/DialogContainer/declaration.mjs +58 -17
- package/dist/elements/structure/DialogContainer/index.d.ts +72 -12
- package/dist/elements/structure/List/declaration.d.ts +5 -1
- package/dist/elements/structure/List/declaration.mjs +5 -1
- package/dist/elements/structure/List/index.d.ts +5 -1
- package/dist/elements/structure/ModalContainer/declaration.d.ts +36 -16
- package/dist/elements/structure/ModalContainer/declaration.mjs +42 -24
- package/dist/elements/structure/ModalContainer/index.d.ts +36 -16
- package/dist/elements/structure/Pagination/Pagination.mjs +23 -23
- package/dist/elements/structure/Pagination/declaration.d.ts +5 -1
- package/dist/elements/structure/Pagination/declaration.mjs +8 -2
- package/dist/elements/structure/Pagination/index.d.ts +5 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.mjs +2 -1
- package/dist/index.d.ts +781 -318
- package/package.json +77 -13
- package/dist/elements/basic/Link/isCurrentPage.d.ts +0 -5
- package/dist/elements/basic/Link/isCurrentPage.mjs +0 -12
|
@@ -105,11 +105,12 @@ declare const declaration: {
|
|
|
105
105
|
readonly style: {
|
|
106
106
|
readonly base: {
|
|
107
107
|
readonly default: {
|
|
108
|
-
readonly position: "
|
|
108
|
+
readonly position: "fixed";
|
|
109
109
|
readonly top: "0";
|
|
110
110
|
readonly bottom: "0";
|
|
111
111
|
readonly left: "0";
|
|
112
112
|
readonly right: "0";
|
|
113
|
+
readonly 'z-index': "200";
|
|
113
114
|
};
|
|
114
115
|
};
|
|
115
116
|
readonly backgroundContainer: {
|
|
@@ -119,6 +120,7 @@ declare const declaration: {
|
|
|
119
120
|
readonly left: "0";
|
|
120
121
|
readonly top: "0";
|
|
121
122
|
readonly position: "absolute";
|
|
123
|
+
readonly 'z-index': "210";
|
|
122
124
|
readonly 'background-color': "black";
|
|
123
125
|
readonly opacity: "0.5";
|
|
124
126
|
};
|
|
@@ -130,8 +132,11 @@ declare const declaration: {
|
|
|
130
132
|
readonly position: "absolute";
|
|
131
133
|
readonly top: "50%";
|
|
132
134
|
readonly left: "50%";
|
|
135
|
+
readonly 'z-index': "250";
|
|
133
136
|
readonly width: "500px";
|
|
134
|
-
readonly
|
|
137
|
+
readonly 'max-width': "calc(100vw - 32px)";
|
|
138
|
+
readonly 'max-height': "calc(100dvh - 32px)";
|
|
139
|
+
readonly overflow: "auto";
|
|
135
140
|
readonly 'background-color': "light-dark(white, oklch(0.21 0.006 285.885))";
|
|
136
141
|
readonly transform: "translate3d(-50%, -50%, 0px)";
|
|
137
142
|
readonly 'border-top-left-radius': "8px";
|
|
@@ -163,25 +168,40 @@ declare const declaration: {
|
|
|
163
168
|
};
|
|
164
169
|
readonly headerCloseButton: {
|
|
165
170
|
readonly default: {
|
|
166
|
-
readonly height: "
|
|
167
|
-
readonly width: "
|
|
168
|
-
readonly padding: "4px";
|
|
171
|
+
readonly height: "28px";
|
|
172
|
+
readonly width: "28px";
|
|
173
|
+
readonly 'padding-top': "4px";
|
|
174
|
+
readonly 'padding-bottom': "4px";
|
|
175
|
+
readonly 'padding-left': "4px";
|
|
176
|
+
readonly 'padding-right': "4px";
|
|
169
177
|
readonly display: "flex";
|
|
170
178
|
readonly 'justify-content': "center";
|
|
171
179
|
readonly 'align-items': "center";
|
|
180
|
+
readonly 'flex-shrink': "0";
|
|
181
|
+
readonly 'border-top-left-radius': "4px";
|
|
182
|
+
readonly 'border-top-right-radius': "4px";
|
|
183
|
+
readonly 'border-bottom-left-radius': "4px";
|
|
184
|
+
readonly 'border-bottom-right-radius': "4px";
|
|
185
|
+
readonly 'background-color': "transparent";
|
|
186
|
+
readonly color: "inherit";
|
|
187
|
+
readonly 'font-style': "inherit";
|
|
188
|
+
readonly 'font-weight': "inherit";
|
|
189
|
+
readonly 'line-height': "inherit";
|
|
190
|
+
readonly 'font-family': "inherit";
|
|
191
|
+
readonly 'font-size': "inherit";
|
|
172
192
|
readonly cursor: "pointer";
|
|
173
193
|
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
194
|
+
};
|
|
195
|
+
readonly bodyContainer: {
|
|
196
|
+
readonly default: {
|
|
197
|
+
readonly display: "flex";
|
|
198
|
+
readonly 'flex-direction': "column";
|
|
199
|
+
readonly 'flex-grow': "1";
|
|
200
|
+
readonly 'flex-basis': "auto";
|
|
201
|
+
readonly 'padding-top': "20px";
|
|
202
|
+
readonly 'padding-bottom': "20px";
|
|
203
|
+
readonly 'padding-left': "20px";
|
|
204
|
+
readonly 'padding-right': "20px";
|
|
185
205
|
};
|
|
186
206
|
};
|
|
187
207
|
};
|
|
@@ -87,11 +87,12 @@ var t = e()({
|
|
|
87
87
|
displayMode: "desktop",
|
|
88
88
|
style: {
|
|
89
89
|
base: { default: {
|
|
90
|
-
position: "
|
|
90
|
+
position: "fixed",
|
|
91
91
|
top: "0",
|
|
92
92
|
bottom: "0",
|
|
93
93
|
left: "0",
|
|
94
|
-
right: "0"
|
|
94
|
+
right: "0",
|
|
95
|
+
"z-index": "200"
|
|
95
96
|
} },
|
|
96
97
|
backgroundContainer: { default: {
|
|
97
98
|
height: "100%",
|
|
@@ -99,6 +100,7 @@ var t = e()({
|
|
|
99
100
|
left: "0",
|
|
100
101
|
top: "0",
|
|
101
102
|
position: "absolute",
|
|
103
|
+
"z-index": "210",
|
|
102
104
|
"background-color": "black",
|
|
103
105
|
opacity: "0.5"
|
|
104
106
|
} },
|
|
@@ -108,8 +110,11 @@ var t = e()({
|
|
|
108
110
|
position: "absolute",
|
|
109
111
|
top: "50%",
|
|
110
112
|
left: "50%",
|
|
113
|
+
"z-index": "250",
|
|
111
114
|
width: "500px",
|
|
112
|
-
|
|
115
|
+
"max-width": "calc(100vw - 32px)",
|
|
116
|
+
"max-height": "calc(100dvh - 32px)",
|
|
117
|
+
overflow: "auto",
|
|
113
118
|
"background-color": "light-dark(white, oklch(0.21 0.006 285.885))",
|
|
114
119
|
transform: "translate3d(-50%, -50%, 0px)",
|
|
115
120
|
"border-top-left-radius": "8px",
|
|
@@ -134,27 +139,40 @@ var t = e()({
|
|
|
134
139
|
"font-weight": "500",
|
|
135
140
|
"line-height": "1.2"
|
|
136
141
|
} },
|
|
137
|
-
headerCloseButton: {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
142
|
+
headerCloseButton: { default: {
|
|
143
|
+
height: "28px",
|
|
144
|
+
width: "28px",
|
|
145
|
+
"padding-top": "4px",
|
|
146
|
+
"padding-bottom": "4px",
|
|
147
|
+
"padding-left": "4px",
|
|
148
|
+
"padding-right": "4px",
|
|
149
|
+
display: "flex",
|
|
150
|
+
"justify-content": "center",
|
|
151
|
+
"align-items": "center",
|
|
152
|
+
"flex-shrink": "0",
|
|
153
|
+
"border-top-left-radius": "4px",
|
|
154
|
+
"border-top-right-radius": "4px",
|
|
155
|
+
"border-bottom-left-radius": "4px",
|
|
156
|
+
"border-bottom-right-radius": "4px",
|
|
157
|
+
"background-color": "transparent",
|
|
158
|
+
color: "inherit",
|
|
159
|
+
"font-style": "inherit",
|
|
160
|
+
"font-weight": "inherit",
|
|
161
|
+
"line-height": "inherit",
|
|
162
|
+
"font-family": "inherit",
|
|
163
|
+
"font-size": "inherit",
|
|
164
|
+
cursor: "pointer"
|
|
165
|
+
} },
|
|
166
|
+
bodyContainer: { default: {
|
|
167
|
+
display: "flex",
|
|
168
|
+
"flex-direction": "column",
|
|
169
|
+
"flex-grow": "1",
|
|
170
|
+
"flex-basis": "auto",
|
|
171
|
+
"padding-top": "20px",
|
|
172
|
+
"padding-bottom": "20px",
|
|
173
|
+
"padding-left": "20px",
|
|
174
|
+
"padding-right": "20px"
|
|
175
|
+
} }
|
|
158
176
|
},
|
|
159
177
|
subTypes: {}
|
|
160
178
|
},
|
|
@@ -99,11 +99,12 @@ declare const ModalContainer: {
|
|
|
99
99
|
readonly style: {
|
|
100
100
|
readonly base: {
|
|
101
101
|
readonly default: {
|
|
102
|
-
readonly position: "
|
|
102
|
+
readonly position: "fixed";
|
|
103
103
|
readonly top: "0";
|
|
104
104
|
readonly bottom: "0";
|
|
105
105
|
readonly left: "0";
|
|
106
106
|
readonly right: "0";
|
|
107
|
+
readonly 'z-index': "200";
|
|
107
108
|
};
|
|
108
109
|
};
|
|
109
110
|
readonly backgroundContainer: {
|
|
@@ -113,6 +114,7 @@ declare const ModalContainer: {
|
|
|
113
114
|
readonly left: "0";
|
|
114
115
|
readonly top: "0";
|
|
115
116
|
readonly position: "absolute";
|
|
117
|
+
readonly 'z-index': "210";
|
|
116
118
|
readonly 'background-color': "black";
|
|
117
119
|
readonly opacity: "0.5";
|
|
118
120
|
};
|
|
@@ -124,8 +126,11 @@ declare const ModalContainer: {
|
|
|
124
126
|
readonly position: "absolute";
|
|
125
127
|
readonly top: "50%";
|
|
126
128
|
readonly left: "50%";
|
|
129
|
+
readonly 'z-index': "250";
|
|
127
130
|
readonly width: "500px";
|
|
128
|
-
readonly
|
|
131
|
+
readonly 'max-width': "calc(100vw - 32px)";
|
|
132
|
+
readonly 'max-height': "calc(100dvh - 32px)";
|
|
133
|
+
readonly overflow: "auto";
|
|
129
134
|
readonly 'background-color': "light-dark(white, oklch(0.21 0.006 285.885))";
|
|
130
135
|
readonly transform: "translate3d(-50%, -50%, 0px)";
|
|
131
136
|
readonly 'border-top-left-radius': "8px";
|
|
@@ -157,25 +162,40 @@ declare const ModalContainer: {
|
|
|
157
162
|
};
|
|
158
163
|
readonly headerCloseButton: {
|
|
159
164
|
readonly default: {
|
|
160
|
-
readonly height: "
|
|
161
|
-
readonly width: "
|
|
162
|
-
readonly padding: "4px";
|
|
165
|
+
readonly height: "28px";
|
|
166
|
+
readonly width: "28px";
|
|
167
|
+
readonly 'padding-top': "4px";
|
|
168
|
+
readonly 'padding-bottom': "4px";
|
|
169
|
+
readonly 'padding-left': "4px";
|
|
170
|
+
readonly 'padding-right': "4px";
|
|
163
171
|
readonly display: "flex";
|
|
164
172
|
readonly 'justify-content': "center";
|
|
165
173
|
readonly 'align-items': "center";
|
|
174
|
+
readonly 'flex-shrink': "0";
|
|
175
|
+
readonly 'border-top-left-radius': "4px";
|
|
176
|
+
readonly 'border-top-right-radius': "4px";
|
|
177
|
+
readonly 'border-bottom-left-radius': "4px";
|
|
178
|
+
readonly 'border-bottom-right-radius': "4px";
|
|
179
|
+
readonly 'background-color': "transparent";
|
|
180
|
+
readonly color: "inherit";
|
|
181
|
+
readonly 'font-style': "inherit";
|
|
182
|
+
readonly 'font-weight': "inherit";
|
|
183
|
+
readonly 'line-height': "inherit";
|
|
184
|
+
readonly 'font-family': "inherit";
|
|
185
|
+
readonly 'font-size': "inherit";
|
|
166
186
|
readonly cursor: "pointer";
|
|
167
187
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
188
|
+
};
|
|
189
|
+
readonly bodyContainer: {
|
|
190
|
+
readonly default: {
|
|
191
|
+
readonly display: "flex";
|
|
192
|
+
readonly 'flex-direction': "column";
|
|
193
|
+
readonly 'flex-grow': "1";
|
|
194
|
+
readonly 'flex-basis': "auto";
|
|
195
|
+
readonly 'padding-top': "20px";
|
|
196
|
+
readonly 'padding-bottom': "20px";
|
|
197
|
+
readonly 'padding-left': "20px";
|
|
198
|
+
readonly 'padding-right': "20px";
|
|
179
199
|
};
|
|
180
200
|
};
|
|
181
201
|
};
|
|
@@ -15,22 +15,22 @@ var h = (e, t) => {
|
|
|
15
15
|
let n = new URL(window.location.href);
|
|
16
16
|
return t <= 1 ? n.searchParams.delete(e) : n.searchParams.set(e, String(t)), `${n.pathname}${n.search}`;
|
|
17
17
|
}, g = ({ ref: e, className: g = "", children: _, pageInfo: v = u, mode: y = "pages", pageParam: b = "page", target: x = "url", windowSize: S = 5, previousLabel: C = "Previous", nextLabel: w = "Next", loadMoreLabel: T = "Load more", label: E = "Pagination" }) => {
|
|
18
|
-
let { id: D } = t(), { settings: { previewMode:
|
|
19
|
-
M,
|
|
18
|
+
let { id: D, definition: { styleSelectors: O } } = t(), { settings: { previewMode: k }, contexts: { InteractionsContext: A } } = c(), { interactionsManager: j } = a(A), [M] = l("navigation.navigate"), N = v.page ?? 1, P = v.pageCount ?? 0, F = v.hasPrevPage ?? N > 1, I = v.hasNextPage ?? !1, L = s(() => i(N, P, S), [
|
|
20
19
|
N,
|
|
20
|
+
P,
|
|
21
21
|
S
|
|
22
|
-
]),
|
|
22
|
+
]), R = o((e) => {
|
|
23
23
|
let t = Math.max(e, 1);
|
|
24
|
-
D &&
|
|
24
|
+
D && j.interactionTrigger(D, "onPageChange", { page: t }), x === "url" && M(h(b, t));
|
|
25
25
|
}, [
|
|
26
26
|
D,
|
|
27
|
-
A,
|
|
28
|
-
x,
|
|
29
27
|
j,
|
|
28
|
+
x,
|
|
29
|
+
M,
|
|
30
30
|
b
|
|
31
|
-
]),
|
|
32
|
-
t.preventDefault(),
|
|
33
|
-
}, [
|
|
31
|
+
]), z = o((e) => (t) => {
|
|
32
|
+
t.preventDefault(), R(e);
|
|
33
|
+
}, [R]), B = P === 0 && !I && !F;
|
|
34
34
|
return /* @__PURE__ */ p(n, {
|
|
35
35
|
ref: e,
|
|
36
36
|
tag: "nav",
|
|
@@ -40,35 +40,35 @@ var h = (e, t) => {
|
|
|
40
40
|
children: [
|
|
41
41
|
y === "loadMore" && /* @__PURE__ */ f("button", {
|
|
42
42
|
type: "button",
|
|
43
|
-
className: "plitzi-component__pagination-more",
|
|
44
|
-
disabled: !
|
|
45
|
-
onClick:
|
|
43
|
+
className: m("plitzi-component__pagination-more", O.loadMore),
|
|
44
|
+
disabled: !I && k,
|
|
45
|
+
onClick: z(N + 1),
|
|
46
46
|
children: T
|
|
47
47
|
}),
|
|
48
48
|
y === "pages" && /* @__PURE__ */ p(d, { children: [
|
|
49
49
|
/* @__PURE__ */ f("button", {
|
|
50
50
|
type: "button",
|
|
51
|
-
className: "plitzi-component__pagination-prev",
|
|
52
|
-
disabled: !
|
|
53
|
-
onClick:
|
|
51
|
+
className: m("plitzi-component__pagination-prev", O.previous),
|
|
52
|
+
disabled: !F && k,
|
|
53
|
+
onClick: z(N - 1),
|
|
54
54
|
children: C
|
|
55
55
|
}),
|
|
56
|
-
|
|
56
|
+
L.map((e) => /* @__PURE__ */ f("button", {
|
|
57
57
|
type: "button",
|
|
58
|
-
className: m("plitzi-component__pagination-page", { "plitzi-component__pagination-page--current": e ===
|
|
59
|
-
"aria-current": e ===
|
|
60
|
-
onClick:
|
|
58
|
+
className: m("plitzi-component__pagination-page", { "plitzi-component__pagination-page--current": e === N }, O.page),
|
|
59
|
+
"aria-current": e === N ? "page" : void 0,
|
|
60
|
+
onClick: z(e),
|
|
61
61
|
children: e
|
|
62
62
|
}, e)),
|
|
63
63
|
/* @__PURE__ */ f("button", {
|
|
64
64
|
type: "button",
|
|
65
|
-
className: "plitzi-component__pagination-next",
|
|
66
|
-
disabled: !
|
|
67
|
-
onClick:
|
|
65
|
+
className: m("plitzi-component__pagination-next", O.next),
|
|
66
|
+
disabled: !I && k,
|
|
67
|
+
onClick: z(N + 1),
|
|
68
68
|
children: w
|
|
69
69
|
})
|
|
70
70
|
] }),
|
|
71
|
-
!
|
|
71
|
+
!k && B && /* @__PURE__ */ f("span", {
|
|
72
72
|
className: "plitzi-component__pagination-hint",
|
|
73
73
|
children: "Bind pageInfo"
|
|
74
74
|
}),
|
|
@@ -33,11 +33,15 @@ declare const declaration: {
|
|
|
33
33
|
readonly definition: {
|
|
34
34
|
readonly label: "Pagination";
|
|
35
35
|
readonly type: "pagination";
|
|
36
|
-
readonly description:
|
|
36
|
+
readonly description: string;
|
|
37
37
|
readonly items: readonly [];
|
|
38
38
|
readonly bindings: {};
|
|
39
39
|
readonly styleSelectors: {
|
|
40
40
|
readonly base: "";
|
|
41
|
+
readonly previous: "";
|
|
42
|
+
readonly page: "";
|
|
43
|
+
readonly next: "";
|
|
44
|
+
readonly loadMore: "";
|
|
41
45
|
};
|
|
42
46
|
readonly initialState: {
|
|
43
47
|
readonly visibility: true;
|
|
@@ -27,10 +27,16 @@ var n = e()({
|
|
|
27
27
|
definition: {
|
|
28
28
|
label: "Pagination",
|
|
29
29
|
type: "pagination",
|
|
30
|
-
description: "Pages through a list. Bind it to a provider page info: in URL mode it writes the page into the address bar so the result stays shareable and indexable, and in load-more mode it announces the next page for the provider to append.",
|
|
30
|
+
description: "Pages through a list. Bind it to a provider page info: in URL mode it writes the page into the address bar so the result stays shareable and indexable, and in load-more mode it announces the next page for the provider to append. Its buttons take a class through their slots: `previous`, `page` (each numbered one — the page shown carries `aria-current=\"page\"`, so the class's `current` state dresses it), `next` and `loadMore`; one with nowhere to go is disabled, the `disabled` state.",
|
|
31
31
|
items: [],
|
|
32
32
|
bindings: {},
|
|
33
|
-
styleSelectors: {
|
|
33
|
+
styleSelectors: {
|
|
34
|
+
base: "",
|
|
35
|
+
previous: "",
|
|
36
|
+
page: "",
|
|
37
|
+
next: "",
|
|
38
|
+
loadMore: ""
|
|
39
|
+
},
|
|
34
40
|
initialState: { visibility: !0 }
|
|
35
41
|
},
|
|
36
42
|
builder: {
|
|
@@ -32,11 +32,15 @@ declare const Pagination: {
|
|
|
32
32
|
readonly definition: {
|
|
33
33
|
readonly label: "Pagination";
|
|
34
34
|
readonly type: "pagination";
|
|
35
|
-
readonly description:
|
|
35
|
+
readonly description: string;
|
|
36
36
|
readonly items: readonly [];
|
|
37
37
|
readonly bindings: {};
|
|
38
38
|
readonly styleSelectors: {
|
|
39
39
|
readonly base: "";
|
|
40
|
+
readonly previous: "";
|
|
41
|
+
readonly page: "";
|
|
42
|
+
readonly next: "";
|
|
43
|
+
readonly loadMore: "";
|
|
40
44
|
};
|
|
41
45
|
readonly initialState: {
|
|
42
46
|
readonly visibility: true;
|