@enyxs/wikex-components 0.11.49 → 0.11.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/assets/partner-assets/21447-29585-imgGlobal.webp +0 -0
- package/assets/partner-assets/21447-29585-imgHinhAnhSanPhamGiaoDich2.webp +0 -0
- package/assets/partner-assets/21447-29585-imgImage1.webp +0 -0
- package/assets/partner-assets/21447-29585-imgImage3.webp +0 -0
- package/assets/partner-assets/21447-29585-imgImage5.webp +0 -0
- package/assets/partner-assets/21447-29585-imgImage7.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D1.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D2.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D3.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D4.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D5.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D6.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D7.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D8.webp +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective23D.webp +0 -0
- package/assets/partner-assets/21447-29644-imgImage.webp +0 -0
- package/assets/partner-assets/21447-29644-imgMap.webp +0 -0
- package/assets/partner-assets/21447-29794-imgImage12.webp +0 -0
- package/assets/partner-assets/21447-29794-imgRectangle34624392.webp +0 -0
- package/assets/partner-assets/21691-46223-imgGlobal.webp +0 -0
- package/assets/partner-assets/21691-46223-imgHinhAnhSanPhamGiaoDich2.webp +0 -0
- package/assets/partner-assets/21691-46223-imgImage1.webp +0 -0
- package/assets/partner-assets/21691-46223-imgImage3.webp +0 -0
- package/assets/partner-assets/21691-46223-imgImage5.webp +0 -0
- package/assets/partner-assets/21691-46223-imgImage7.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D1.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D2.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D3.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D4.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D5.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D6.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D7.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D8.webp +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective23D.webp +0 -0
- package/dist/chrome-model.js +27 -2
- package/dist/chrome-model.mjs +27 -2
- package/dist/consultation-model.d.mts +2 -1
- package/dist/consultation-model.d.ts +2 -1
- package/dist/consultation-model.js +12 -2
- package/dist/consultation-model.mjs +10 -1
- package/dist/consultations.d.mts +1 -0
- package/dist/consultations.d.ts +1 -0
- package/dist/consultations.js +9 -10
- package/dist/consultations.mjs +9 -10
- package/dist/fees-model.js +5 -2
- package/dist/fees-model.mjs +5 -2
- package/dist/fees.js +44 -29
- package/dist/fees.mjs +44 -29
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2009 -2369
- package/dist/index.mjs +1484 -1849
- package/dist/manifest.json +63 -63
- package/dist/partner.js +177 -134
- package/dist/partner.mjs +178 -135
- package/dist/products.js +58 -44
- package/dist/products.mjs +58 -44
- package/dist/ui.d.mts +2 -1
- package/dist/ui.d.ts +2 -1
- package/dist/ui.js +26 -12
- package/dist/ui.mjs +26 -12
- package/package.json +151 -46
- package/assets/partner-assets/21447-29491-imgTangTruongVangTrongMangLuoiToanCau5.png +0 -0
- package/assets/partner-assets/21447-29585-imgGlobal.png +0 -0
- package/assets/partner-assets/21447-29585-imgHinhAnhSanPhamGiaoDich2.png +0 -0
- package/assets/partner-assets/21447-29585-imgImage1.png +0 -0
- package/assets/partner-assets/21447-29585-imgImage3.png +0 -0
- package/assets/partner-assets/21447-29585-imgImage5.png +0 -0
- package/assets/partner-assets/21447-29585-imgImage7.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D1.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D2.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D3.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D4.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D5.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D6.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D7.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective13D8.png +0 -0
- package/assets/partner-assets/21447-29585-imgPerspective23D.png +0 -0
- package/assets/partner-assets/21447-29644-imgImage.png +0 -0
- package/assets/partner-assets/21447-29644-imgMap.png +0 -0
- package/assets/partner-assets/21447-29794-imgImage12.png +0 -0
- package/assets/partner-assets/21447-29794-imgRectangle34624392.png +0 -0
- package/assets/partner-assets/21691-46108-imgTangTruongVangTrongMangLuoiToanCau5.png +0 -0
- package/assets/partner-assets/21691-46223-imgGlobal.png +0 -0
- package/assets/partner-assets/21691-46223-imgHinhAnhSanPhamGiaoDich2.png +0 -0
- package/assets/partner-assets/21691-46223-imgImage1.png +0 -0
- package/assets/partner-assets/21691-46223-imgImage3.png +0 -0
- package/assets/partner-assets/21691-46223-imgImage5.png +0 -0
- package/assets/partner-assets/21691-46223-imgImage7.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D1.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D2.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D3.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D4.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D5.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D6.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D7.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective13D8.png +0 -0
- package/assets/partner-assets/21691-46223-imgPerspective23D.png +0 -0
package/dist/ui.d.mts
CHANGED
|
@@ -16,6 +16,7 @@ type PaginationProps = {
|
|
|
16
16
|
page: number;
|
|
17
17
|
pageCount: number;
|
|
18
18
|
onPageChange: (page: number) => void;
|
|
19
|
+
getPageHref?: (page: number) => string;
|
|
19
20
|
siblingCount?: number;
|
|
20
21
|
ariaLabel?: string;
|
|
21
22
|
labels?: {
|
|
@@ -26,7 +27,7 @@ type PaginationProps = {
|
|
|
26
27
|
};
|
|
27
28
|
className?: string;
|
|
28
29
|
};
|
|
29
|
-
declare function Pagination({ page, pageCount, onPageChange, siblingCount, ariaLabel, labels, className, }: PaginationProps): react.JSX.Element;
|
|
30
|
+
declare function Pagination({ page, pageCount, onPageChange, getPageHref, siblingCount, ariaLabel, labels, className, }: PaginationProps): react.JSX.Element;
|
|
30
31
|
|
|
31
32
|
type BreadcrumbItemData = {
|
|
32
33
|
label: string;
|
package/dist/ui.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ type PaginationProps = {
|
|
|
16
16
|
page: number;
|
|
17
17
|
pageCount: number;
|
|
18
18
|
onPageChange: (page: number) => void;
|
|
19
|
+
getPageHref?: (page: number) => string;
|
|
19
20
|
siblingCount?: number;
|
|
20
21
|
ariaLabel?: string;
|
|
21
22
|
labels?: {
|
|
@@ -26,7 +27,7 @@ type PaginationProps = {
|
|
|
26
27
|
};
|
|
27
28
|
className?: string;
|
|
28
29
|
};
|
|
29
|
-
declare function Pagination({ page, pageCount, onPageChange, siblingCount, ariaLabel, labels, className, }: PaginationProps): react.JSX.Element;
|
|
30
|
+
declare function Pagination({ page, pageCount, onPageChange, getPageHref, siblingCount, ariaLabel, labels, className, }: PaginationProps): react.JSX.Element;
|
|
30
31
|
|
|
31
32
|
type BreadcrumbItemData = {
|
|
32
33
|
label: string;
|
package/dist/ui.js
CHANGED
|
@@ -171,24 +171,24 @@ var chevron_right_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL
|
|
|
171
171
|
// src/commodity-original/components/Pagination/style.ts
|
|
172
172
|
var import_styled_components2 = require("styled-components");
|
|
173
173
|
var PaginationNav = import_styled_components2.styled.nav.withConfig({
|
|
174
|
-
componentId: "sc-
|
|
174
|
+
componentId: "sc-e6c46071-0"
|
|
175
175
|
})([
|
|
176
176
|
`display:flex;justify-content:center;`
|
|
177
177
|
]);
|
|
178
178
|
var PaginationList = import_styled_components2.styled.ul.withConfig({
|
|
179
|
-
componentId: "sc-
|
|
179
|
+
componentId: "sc-e6c46071-1"
|
|
180
180
|
})([
|
|
181
181
|
`display:flex;margin:0;padding:0;align-items:center;gap:8px;list-style:none;`
|
|
182
182
|
]);
|
|
183
183
|
var PaginationItem = import_styled_components2.styled.li.withConfig({
|
|
184
|
-
componentId: "sc-
|
|
184
|
+
componentId: "sc-e6c46071-2"
|
|
185
185
|
})([
|
|
186
186
|
`display:flex;`
|
|
187
187
|
]);
|
|
188
188
|
var PaginationButton = import_styled_components2.styled.button.withConfig({
|
|
189
|
-
componentId: "sc-
|
|
189
|
+
componentId: "sc-e6c46071-3"
|
|
190
190
|
})([
|
|
191
|
-
`display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
191
|
+
`box-sizing:border-box;text-decoration:none;display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
192
192
|
`;border-radius:4px;padding:4px;color:`,
|
|
193
193
|
`;background:`,
|
|
194
194
|
`;font-family:var(--font-manrope),Arial,Helvetica,sans-serif;font-size:14px;font-weight:500;line-height:18px;cursor:pointer;transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease;&[data-control]{border-color:transparent;background:transparent;}&[data-active]{border-color:`,
|
|
@@ -201,7 +201,7 @@ var PaginationButton = import_styled_components2.styled.button.withConfig({
|
|
|
201
201
|
`;outline-offset:2px;}`
|
|
202
202
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.background.canvas, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.foreground, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.primary);
|
|
203
203
|
var PaginationArrow = import_styled_components2.styled.span.withConfig({
|
|
204
|
-
componentId: "sc-
|
|
204
|
+
componentId: "sc-e6c46071-4"
|
|
205
205
|
})([
|
|
206
206
|
`width:16px;height:16px;background:currentColor;mask:url("`,
|
|
207
207
|
`") center / contain no-repeat;-webkit-mask:url("`,
|
|
@@ -234,6 +234,7 @@ function Pagination({
|
|
|
234
234
|
page,
|
|
235
235
|
pageCount,
|
|
236
236
|
onPageChange,
|
|
237
|
+
getPageHref,
|
|
237
238
|
siblingCount = 1,
|
|
238
239
|
ariaLabel,
|
|
239
240
|
labels,
|
|
@@ -245,6 +246,13 @@ function Pagination({
|
|
|
245
246
|
const items = getPaginationItems(currentPage, safePageCount, siblingCount);
|
|
246
247
|
const hasPreviousPage = currentPage > 1;
|
|
247
248
|
const hasNextPage = currentPage < safePageCount;
|
|
249
|
+
const pageClick = (page2) => (event) => {
|
|
250
|
+
if (getPageHref) {
|
|
251
|
+
if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;
|
|
252
|
+
event.preventDefault();
|
|
253
|
+
}
|
|
254
|
+
onPageChange(page2);
|
|
255
|
+
};
|
|
248
256
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
249
257
|
PaginationNav,
|
|
250
258
|
{
|
|
@@ -254,33 +262,39 @@ function Pagination({
|
|
|
254
262
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
255
263
|
PaginationButton,
|
|
256
264
|
{
|
|
265
|
+
as: getPageHref && hasPreviousPage ? "a" : "button",
|
|
266
|
+
href: getPageHref && hasPreviousPage ? getPageHref(currentPage - 1) : void 0,
|
|
257
267
|
"aria-label": labels?.previous ?? t("pagination.previous"),
|
|
258
268
|
"data-control": "previous",
|
|
259
269
|
disabled: !hasPreviousPage,
|
|
260
|
-
onClick: (
|
|
261
|
-
type: "button",
|
|
270
|
+
onClick: pageClick(currentPage - 1),
|
|
271
|
+
type: getPageHref && hasPreviousPage ? void 0 : "button",
|
|
262
272
|
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationArrow, { "data-direction": "previous" })
|
|
263
273
|
}
|
|
264
274
|
) }),
|
|
265
275
|
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationItem, { children: item === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationButton, { "aria-hidden": "true", disabled: true, tabIndex: -1, type: "button", children: "\u2026" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
266
276
|
PaginationButton,
|
|
267
277
|
{
|
|
278
|
+
as: getPageHref ? "a" : "button",
|
|
279
|
+
href: getPageHref?.(item),
|
|
268
280
|
"aria-current": item === currentPage ? "page" : void 0,
|
|
269
281
|
"aria-label": item === currentPage ? labels?.current(item) ?? t("pagination.current", { page: item }) : labels?.page(item) ?? t("pagination.page", { page: item }),
|
|
270
282
|
"data-active": item === currentPage || void 0,
|
|
271
|
-
onClick: (
|
|
272
|
-
type: "button",
|
|
283
|
+
onClick: pageClick(item),
|
|
284
|
+
type: getPageHref ? void 0 : "button",
|
|
273
285
|
children: item
|
|
274
286
|
}
|
|
275
287
|
) }, `${item}-${index}`)),
|
|
276
288
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
277
289
|
PaginationButton,
|
|
278
290
|
{
|
|
291
|
+
as: getPageHref && hasNextPage ? "a" : "button",
|
|
292
|
+
href: getPageHref && hasNextPage ? getPageHref(currentPage + 1) : void 0,
|
|
279
293
|
"aria-label": labels?.next ?? t("pagination.next"),
|
|
280
294
|
"data-control": "next",
|
|
281
295
|
disabled: !hasNextPage,
|
|
282
|
-
onClick: (
|
|
283
|
-
type: "button",
|
|
296
|
+
onClick: pageClick(currentPage + 1),
|
|
297
|
+
type: getPageHref && hasNextPage ? void 0 : "button",
|
|
284
298
|
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationArrow, { "data-direction": "next" })
|
|
285
299
|
}
|
|
286
300
|
) })
|
package/dist/ui.mjs
CHANGED
|
@@ -134,24 +134,24 @@ var chevron_right_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL
|
|
|
134
134
|
// src/commodity-original/components/Pagination/style.ts
|
|
135
135
|
import { styled as styled2 } from "styled-components";
|
|
136
136
|
var PaginationNav = styled2.nav.withConfig({
|
|
137
|
-
componentId: "sc-
|
|
137
|
+
componentId: "sc-e6c46071-0"
|
|
138
138
|
})([
|
|
139
139
|
`display:flex;justify-content:center;`
|
|
140
140
|
]);
|
|
141
141
|
var PaginationList = styled2.ul.withConfig({
|
|
142
|
-
componentId: "sc-
|
|
142
|
+
componentId: "sc-e6c46071-1"
|
|
143
143
|
})([
|
|
144
144
|
`display:flex;margin:0;padding:0;align-items:center;gap:8px;list-style:none;`
|
|
145
145
|
]);
|
|
146
146
|
var PaginationItem = styled2.li.withConfig({
|
|
147
|
-
componentId: "sc-
|
|
147
|
+
componentId: "sc-e6c46071-2"
|
|
148
148
|
})([
|
|
149
149
|
`display:flex;`
|
|
150
150
|
]);
|
|
151
151
|
var PaginationButton = styled2.button.withConfig({
|
|
152
|
-
componentId: "sc-
|
|
152
|
+
componentId: "sc-e6c46071-3"
|
|
153
153
|
})([
|
|
154
|
-
`display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
154
|
+
`box-sizing:border-box;text-decoration:none;display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
155
155
|
`;border-radius:4px;padding:4px;color:`,
|
|
156
156
|
`;background:`,
|
|
157
157
|
`;font-family:var(--font-manrope),Arial,Helvetica,sans-serif;font-size:14px;font-weight:500;line-height:18px;cursor:pointer;transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease;&[data-control]{border-color:transparent;background:transparent;}&[data-active]{border-color:`,
|
|
@@ -164,7 +164,7 @@ var PaginationButton = styled2.button.withConfig({
|
|
|
164
164
|
`;outline-offset:2px;}`
|
|
165
165
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.background.canvas, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.foreground, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.primary);
|
|
166
166
|
var PaginationArrow = styled2.span.withConfig({
|
|
167
|
-
componentId: "sc-
|
|
167
|
+
componentId: "sc-e6c46071-4"
|
|
168
168
|
})([
|
|
169
169
|
`width:16px;height:16px;background:currentColor;mask:url("`,
|
|
170
170
|
`") center / contain no-repeat;-webkit-mask:url("`,
|
|
@@ -197,6 +197,7 @@ function Pagination({
|
|
|
197
197
|
page,
|
|
198
198
|
pageCount,
|
|
199
199
|
onPageChange,
|
|
200
|
+
getPageHref,
|
|
200
201
|
siblingCount = 1,
|
|
201
202
|
ariaLabel,
|
|
202
203
|
labels,
|
|
@@ -208,6 +209,13 @@ function Pagination({
|
|
|
208
209
|
const items = getPaginationItems(currentPage, safePageCount, siblingCount);
|
|
209
210
|
const hasPreviousPage = currentPage > 1;
|
|
210
211
|
const hasNextPage = currentPage < safePageCount;
|
|
212
|
+
const pageClick = (page2) => (event) => {
|
|
213
|
+
if (getPageHref) {
|
|
214
|
+
if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;
|
|
215
|
+
event.preventDefault();
|
|
216
|
+
}
|
|
217
|
+
onPageChange(page2);
|
|
218
|
+
};
|
|
211
219
|
return /* @__PURE__ */ jsx2(
|
|
212
220
|
PaginationNav,
|
|
213
221
|
{
|
|
@@ -217,33 +225,39 @@ function Pagination({
|
|
|
217
225
|
/* @__PURE__ */ jsx2(PaginationItem, { children: /* @__PURE__ */ jsx2(
|
|
218
226
|
PaginationButton,
|
|
219
227
|
{
|
|
228
|
+
as: getPageHref && hasPreviousPage ? "a" : "button",
|
|
229
|
+
href: getPageHref && hasPreviousPage ? getPageHref(currentPage - 1) : void 0,
|
|
220
230
|
"aria-label": labels?.previous ?? t("pagination.previous"),
|
|
221
231
|
"data-control": "previous",
|
|
222
232
|
disabled: !hasPreviousPage,
|
|
223
|
-
onClick: (
|
|
224
|
-
type: "button",
|
|
233
|
+
onClick: pageClick(currentPage - 1),
|
|
234
|
+
type: getPageHref && hasPreviousPage ? void 0 : "button",
|
|
225
235
|
children: /* @__PURE__ */ jsx2(PaginationArrow, { "data-direction": "previous" })
|
|
226
236
|
}
|
|
227
237
|
) }),
|
|
228
238
|
items.map((item, index) => /* @__PURE__ */ jsx2(PaginationItem, { children: item === "ellipsis" ? /* @__PURE__ */ jsx2(PaginationButton, { "aria-hidden": "true", disabled: true, tabIndex: -1, type: "button", children: "\u2026" }) : /* @__PURE__ */ jsx2(
|
|
229
239
|
PaginationButton,
|
|
230
240
|
{
|
|
241
|
+
as: getPageHref ? "a" : "button",
|
|
242
|
+
href: getPageHref?.(item),
|
|
231
243
|
"aria-current": item === currentPage ? "page" : void 0,
|
|
232
244
|
"aria-label": item === currentPage ? labels?.current(item) ?? t("pagination.current", { page: item }) : labels?.page(item) ?? t("pagination.page", { page: item }),
|
|
233
245
|
"data-active": item === currentPage || void 0,
|
|
234
|
-
onClick: (
|
|
235
|
-
type: "button",
|
|
246
|
+
onClick: pageClick(item),
|
|
247
|
+
type: getPageHref ? void 0 : "button",
|
|
236
248
|
children: item
|
|
237
249
|
}
|
|
238
250
|
) }, `${item}-${index}`)),
|
|
239
251
|
/* @__PURE__ */ jsx2(PaginationItem, { children: /* @__PURE__ */ jsx2(
|
|
240
252
|
PaginationButton,
|
|
241
253
|
{
|
|
254
|
+
as: getPageHref && hasNextPage ? "a" : "button",
|
|
255
|
+
href: getPageHref && hasNextPage ? getPageHref(currentPage + 1) : void 0,
|
|
242
256
|
"aria-label": labels?.next ?? t("pagination.next"),
|
|
243
257
|
"data-control": "next",
|
|
244
258
|
disabled: !hasNextPage,
|
|
245
|
-
onClick: (
|
|
246
|
-
type: "button",
|
|
259
|
+
onClick: pageClick(currentPage + 1),
|
|
260
|
+
type: getPageHref && hasNextPage ? void 0 : "button",
|
|
247
261
|
children: /* @__PURE__ */ jsx2(PaginationArrow, { "data-direction": "next" })
|
|
248
262
|
}
|
|
249
263
|
) })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enyxs/wikex-components",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.51",
|
|
4
4
|
"description": "Reusable CMS blocks, including the original Wikex Commodity UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
@@ -15,63 +15,120 @@
|
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./dist/index.d.mts",
|
|
20
|
+
"default": "./dist/index.mjs"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
}
|
|
21
26
|
},
|
|
22
27
|
"./page-templates": {
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./dist/page-templates.d.mts",
|
|
30
|
+
"default": "./dist/page-templates.mjs"
|
|
31
|
+
},
|
|
32
|
+
"require": {
|
|
33
|
+
"types": "./dist/page-templates.d.ts",
|
|
34
|
+
"default": "./dist/page-templates.js"
|
|
35
|
+
}
|
|
26
36
|
},
|
|
27
37
|
"./manifest.json": "./dist/manifest.json",
|
|
28
38
|
"./styles.css": "./dist/index.css",
|
|
29
39
|
"./products": {
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
"import": {
|
|
41
|
+
"types": "./dist/products.d.mts",
|
|
42
|
+
"default": "./dist/products.mjs"
|
|
43
|
+
},
|
|
44
|
+
"require": {
|
|
45
|
+
"types": "./dist/products.d.ts",
|
|
46
|
+
"default": "./dist/products.js"
|
|
47
|
+
}
|
|
33
48
|
},
|
|
34
49
|
"./ui": {
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
50
|
+
"import": {
|
|
51
|
+
"types": "./dist/ui.d.mts",
|
|
52
|
+
"default": "./dist/ui.mjs"
|
|
53
|
+
},
|
|
54
|
+
"require": {
|
|
55
|
+
"types": "./dist/ui.d.ts",
|
|
56
|
+
"default": "./dist/ui.js"
|
|
57
|
+
}
|
|
38
58
|
},
|
|
39
59
|
"./fees/model": {
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
60
|
+
"import": {
|
|
61
|
+
"types": "./dist/fees-model.d.mts",
|
|
62
|
+
"default": "./dist/fees-model.mjs"
|
|
63
|
+
},
|
|
64
|
+
"require": {
|
|
65
|
+
"types": "./dist/fees-model.d.ts",
|
|
66
|
+
"default": "./dist/fees-model.js"
|
|
67
|
+
}
|
|
43
68
|
},
|
|
44
69
|
"./fees": {
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
70
|
+
"import": {
|
|
71
|
+
"types": "./dist/fees.d.mts",
|
|
72
|
+
"default": "./dist/fees.mjs"
|
|
73
|
+
},
|
|
74
|
+
"require": {
|
|
75
|
+
"types": "./dist/fees.d.ts",
|
|
76
|
+
"default": "./dist/fees.js"
|
|
77
|
+
}
|
|
48
78
|
},
|
|
49
79
|
"./consultations": {
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
80
|
+
"import": {
|
|
81
|
+
"types": "./dist/consultations.d.mts",
|
|
82
|
+
"default": "./dist/consultations.mjs"
|
|
83
|
+
},
|
|
84
|
+
"require": {
|
|
85
|
+
"types": "./dist/consultations.d.ts",
|
|
86
|
+
"default": "./dist/consultations.js"
|
|
87
|
+
}
|
|
53
88
|
},
|
|
54
89
|
"./consultations/model": {
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
90
|
+
"import": {
|
|
91
|
+
"types": "./dist/consultation-model.d.mts",
|
|
92
|
+
"default": "./dist/consultation-model.mjs"
|
|
93
|
+
},
|
|
94
|
+
"require": {
|
|
95
|
+
"types": "./dist/consultation-model.d.ts",
|
|
96
|
+
"default": "./dist/consultation-model.js"
|
|
97
|
+
}
|
|
58
98
|
},
|
|
59
99
|
"./chrome/model": {
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
100
|
+
"import": {
|
|
101
|
+
"types": "./dist/chrome-model.d.mts",
|
|
102
|
+
"default": "./dist/chrome-model.mjs"
|
|
103
|
+
},
|
|
104
|
+
"require": {
|
|
105
|
+
"types": "./dist/chrome-model.d.ts",
|
|
106
|
+
"default": "./dist/chrome-model.js"
|
|
107
|
+
}
|
|
63
108
|
},
|
|
109
|
+
"./chrome/model/styles.css": "./dist/chrome-model.css",
|
|
64
110
|
"./partner": {
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
111
|
+
"import": {
|
|
112
|
+
"types": "./dist/partner.d.mts",
|
|
113
|
+
"default": "./dist/partner.mjs"
|
|
114
|
+
},
|
|
115
|
+
"require": {
|
|
116
|
+
"types": "./dist/partner.d.ts",
|
|
117
|
+
"default": "./dist/partner.js"
|
|
118
|
+
}
|
|
68
119
|
},
|
|
69
120
|
"./partner/styles.css": "./dist/partner.css",
|
|
70
121
|
"./layout/model": {
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
122
|
+
"import": {
|
|
123
|
+
"types": "./dist/layout-model.d.mts",
|
|
124
|
+
"default": "./dist/layout-model.mjs"
|
|
125
|
+
},
|
|
126
|
+
"require": {
|
|
127
|
+
"types": "./dist/layout-model.d.ts",
|
|
128
|
+
"default": "./dist/layout-model.js"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"./package.json": "./package.json"
|
|
75
132
|
},
|
|
76
133
|
"scripts": {
|
|
77
134
|
"build": "tsup && node scripts/validate-styled-components.mjs && node scripts/build-manifest.mjs",
|
|
@@ -89,17 +146,60 @@
|
|
|
89
146
|
"@emotion/react": "^11.0.0",
|
|
90
147
|
"@emotion/styled": "^11.0.0",
|
|
91
148
|
"@mui/material": "^7.0.0",
|
|
149
|
+
"@mui/x-date-pickers": "^8.22.0",
|
|
150
|
+
"dayjs": "^1.11.19",
|
|
92
151
|
"gsap": "^3.15.0",
|
|
93
|
-
"
|
|
94
|
-
"
|
|
152
|
+
"i18next": "^26.0.0",
|
|
153
|
+
"lucide": "^1.34.0",
|
|
154
|
+
"morphicons": "^1.7.0",
|
|
155
|
+
"next": ">=16.0.0 <17",
|
|
156
|
+
"radix-ui": "^1.6.7",
|
|
95
157
|
"react": "^19.0.0",
|
|
96
158
|
"react-dom": "^19.0.0",
|
|
97
159
|
"react-i18next": "^17.0.0",
|
|
98
160
|
"react-responsive": "^10.0.0",
|
|
99
|
-
"styled-components": "^6.0.0"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
161
|
+
"styled-components": "^6.0.0"
|
|
162
|
+
},
|
|
163
|
+
"peerDependenciesMeta": {
|
|
164
|
+
"@emotion/react": {
|
|
165
|
+
"optional": true
|
|
166
|
+
},
|
|
167
|
+
"@emotion/styled": {
|
|
168
|
+
"optional": true
|
|
169
|
+
},
|
|
170
|
+
"@mui/material": {
|
|
171
|
+
"optional": true
|
|
172
|
+
},
|
|
173
|
+
"@mui/x-date-pickers": {
|
|
174
|
+
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"dayjs": {
|
|
177
|
+
"optional": true
|
|
178
|
+
},
|
|
179
|
+
"gsap": {
|
|
180
|
+
"optional": true
|
|
181
|
+
},
|
|
182
|
+
"i18next": {
|
|
183
|
+
"optional": true
|
|
184
|
+
},
|
|
185
|
+
"lucide": {
|
|
186
|
+
"optional": true
|
|
187
|
+
},
|
|
188
|
+
"morphicons": {
|
|
189
|
+
"optional": true
|
|
190
|
+
},
|
|
191
|
+
"radix-ui": {
|
|
192
|
+
"optional": true
|
|
193
|
+
},
|
|
194
|
+
"react-i18next": {
|
|
195
|
+
"optional": true
|
|
196
|
+
},
|
|
197
|
+
"react-responsive": {
|
|
198
|
+
"optional": true
|
|
199
|
+
},
|
|
200
|
+
"styled-components": {
|
|
201
|
+
"optional": true
|
|
202
|
+
}
|
|
103
203
|
},
|
|
104
204
|
"devDependencies": {
|
|
105
205
|
"@emotion/react": "^11.0.0",
|
|
@@ -109,16 +209,21 @@
|
|
|
109
209
|
"@types/react": "^19.0.0",
|
|
110
210
|
"@types/react-dom": "^19.0.0",
|
|
111
211
|
"dayjs": "1.11.23",
|
|
212
|
+
"gsap": "^3.15.0",
|
|
213
|
+
"i18next": "^26.0.0",
|
|
214
|
+
"lucide": "^1.46.0",
|
|
215
|
+
"morphicons": "^1.7.1",
|
|
216
|
+
"next": "16.4.6",
|
|
217
|
+
"radix-ui": "^1.6.7",
|
|
112
218
|
"react": "^19.0.0",
|
|
113
219
|
"react-dom": "^19.0.0",
|
|
220
|
+
"react-i18next": "^17.0.0",
|
|
221
|
+
"react-responsive": "^10.0.0",
|
|
222
|
+
"styled-components": "^6.0.0",
|
|
114
223
|
"tsup": "^8.0.0",
|
|
115
224
|
"typescript": "^5.0.0"
|
|
116
225
|
},
|
|
117
226
|
"dependencies": {
|
|
118
|
-
"
|
|
119
|
-
"lucide": "^1.46.0",
|
|
120
|
-
"morphicons": "^1.7.1",
|
|
121
|
-
"ogl": "^1.0.11",
|
|
122
|
-
"radix-ui": "^1.6.7"
|
|
227
|
+
"ogl": "^1.0.11"
|
|
123
228
|
}
|
|
124
229
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|