@enyxs/wikex-components 0.11.3 → 0.11.8
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 +29 -0
- package/dist/index.js +124 -101
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +267 -96
- package/dist/index.mjs.map +1 -1
- package/dist/page-templates.mjs +152 -4
- package/dist/page-templates.mjs.map +1 -1
- package/dist/products.d.mts +65 -0
- package/dist/products.d.ts +65 -0
- package/dist/products.js +1326 -0
- package/dist/products.js.map +1 -0
- package/dist/products.mjs +1287 -0
- package/dist/products.mjs.map +1 -0
- package/dist/ui.d.mts +42 -0
- package/dist/ui.d.ts +42 -0
- package/dist/ui.js +368 -0
- package/dist/ui.js.map +1 -0
- package/dist/ui.mjs +330 -0
- package/dist/ui.mjs.map +1 -0
- package/package.json +14 -3
- package/dist/chunk-DLYDTRRJ.mjs +0 -158
- package/dist/chunk-DLYDTRRJ.mjs.map +0 -1
package/dist/ui.mjs
ADDED
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wikex/assets/products/related-products-arrow.svg
|
|
4
|
+
var related_products_arrow_default = "data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGlkPSJJY29uIC8gYXJyb3ciPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTIuNjY2NyA4TDMuMzMzMzMgOE04IDEyLjY2NjdMMTIuNjY2NyA4TDggMy4zMzMzMyIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8L3N2Zz4K";
|
|
5
|
+
|
|
6
|
+
// src/wikex/assets/products/product-card-arrow.svg
|
|
7
|
+
var product_card_arrow_default = "data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xNSA4TDEgOE04IDE1TDE1IDhMOCAxIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==";
|
|
8
|
+
|
|
9
|
+
// src/commodity-original/components/ProductCard/style.ts
|
|
10
|
+
import Link from "next/link.js";
|
|
11
|
+
import Image from "next/image.js";
|
|
12
|
+
import { css, styled } from "styled-components";
|
|
13
|
+
var cardSurface = css([
|
|
14
|
+
`display:flex;width:100%;height:100%;max-width:329px;flex-direction:column;color:`,
|
|
15
|
+
`;transition:transform 160ms ease;&:hover{transform:translateY(-2px);}@media (max-width:599px){max-width:100%;}`
|
|
16
|
+
], ({ theme }) => theme.colors.text.primary);
|
|
17
|
+
var ProductCardArticle = styled.article.withConfig({
|
|
18
|
+
componentId: "sc-232625b5-0"
|
|
19
|
+
})([
|
|
20
|
+
``,
|
|
21
|
+
``
|
|
22
|
+
], cardSurface);
|
|
23
|
+
var ProductCardLink = styled(Link).withConfig({
|
|
24
|
+
componentId: "sc-232625b5-1"
|
|
25
|
+
})([
|
|
26
|
+
``,
|
|
27
|
+
` text-decoration:none;&:focus-visible{outline:2px solid `,
|
|
28
|
+
`;outline-offset:3px;}`
|
|
29
|
+
], cardSurface, ({ theme }) => theme.colors.accent.primary);
|
|
30
|
+
var ProductCardImagePanel = styled.div.withConfig({
|
|
31
|
+
componentId: "sc-232625b5-2"
|
|
32
|
+
})([
|
|
33
|
+
`position:relative;width:100%;aspect-ratio:1;border-radius:8px 8px 0 0;&::before{position:absolute;z-index:1;inset:41.2879% 0 0;border-radius:8px 8px 0 0;background:rgb(249 187 58 / 40%);box-shadow:-4px 4px 10px rgb(0 0 0 / 10%);content:"";}@media (max-width:599px){&::before{inset:43.2727% 0 -14.5833%;}}`
|
|
34
|
+
]);
|
|
35
|
+
var ProductCardImage = styled(Image).withConfig({
|
|
36
|
+
componentId: "sc-232625b5-3"
|
|
37
|
+
})([
|
|
38
|
+
`z-index:2;object-fit:cover;pointer-events:none;`
|
|
39
|
+
]);
|
|
40
|
+
var ProductCardCopy = styled.div.withConfig({
|
|
41
|
+
componentId: "sc-232625b5-4"
|
|
42
|
+
})([
|
|
43
|
+
`display:flex;width:100%;flex:1 0 auto;flex-direction:column;gap:4px;padding:12px 16px 24px;border-radius:0 0 8px 8px;background:`,
|
|
44
|
+
`;box-shadow:-4px 4px 10px rgb(0 0 0 / 10%);@media (max-width:599px){padding:12px 16px 24px;align-items:center;z-index:2;}`
|
|
45
|
+
], ({ theme }) => theme.colors.background.card);
|
|
46
|
+
var ProductCardTitleRow = styled.div.withConfig({
|
|
47
|
+
componentId: "sc-232625b5-5"
|
|
48
|
+
})([
|
|
49
|
+
`display:flex;width:100%;align-items:center;gap:8px;`
|
|
50
|
+
]);
|
|
51
|
+
var ProductCardTitle = styled.h3.withConfig({
|
|
52
|
+
componentId: "sc-232625b5-6"
|
|
53
|
+
})([
|
|
54
|
+
`flex:1 1 0;min-width:0;margin:0;overflow:hidden;color:`,
|
|
55
|
+
`;font-size:20px;font-weight:700;line-height:30px;text-overflow:ellipsis;white-space:nowrap;@media (max-width:599px){font-size:14px;line-height:18px;}`
|
|
56
|
+
], ({ theme }) => theme.colors.text.primary);
|
|
57
|
+
var ProductCardArrow = styled.span.withConfig({
|
|
58
|
+
componentId: "sc-232625b5-7"
|
|
59
|
+
})([
|
|
60
|
+
`width:24px;height:24px;flex:0 0 24px;color:`,
|
|
61
|
+
`;background:currentColor;mask:url("`,
|
|
62
|
+
`") center / 16px 16px no-repeat;-webkit-mask:url("`,
|
|
63
|
+
`") center / 16px 16px no-repeat;@media (max-width:599px){width:18px;height:18px;flex-basis:18px;mask-image:url("`,
|
|
64
|
+
`");mask-size:contain;-webkit-mask-image:url("`,
|
|
65
|
+
`");-webkit-mask-size:contain;}`
|
|
66
|
+
], ({ theme }) => theme.colors.accent.primary, product_card_arrow_default, product_card_arrow_default, related_products_arrow_default, related_products_arrow_default);
|
|
67
|
+
var ProductCardDescription = styled.p.withConfig({
|
|
68
|
+
componentId: "sc-232625b5-8"
|
|
69
|
+
})([
|
|
70
|
+
`display:-webkit-box;width:100%;overflow:hidden;margin:0;color:`,
|
|
71
|
+
`;font-size:16px;font-weight:500;line-height:22px;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:3;@media (max-width:599px){font-size:12px;line-height:16px;}`
|
|
72
|
+
], ({ theme }) => theme.colors.text.content);
|
|
73
|
+
|
|
74
|
+
// src/commodity-original/components/ProductCard/index.tsx
|
|
75
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
76
|
+
function ProductCardContent({
|
|
77
|
+
description,
|
|
78
|
+
image,
|
|
79
|
+
imageAlt = "",
|
|
80
|
+
imageFit = "cover",
|
|
81
|
+
title
|
|
82
|
+
}) {
|
|
83
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
84
|
+
/* @__PURE__ */ jsx(ProductCardImagePanel, { children: /* @__PURE__ */ jsx(
|
|
85
|
+
ProductCardImage,
|
|
86
|
+
{
|
|
87
|
+
alt: imageAlt,
|
|
88
|
+
fill: true,
|
|
89
|
+
sizes: "(max-width: 767px) calc(100vw - 48px), 329px",
|
|
90
|
+
src: image,
|
|
91
|
+
style: imageFit === "contain" ? { objectFit: "contain", padding: 24 } : void 0
|
|
92
|
+
}
|
|
93
|
+
) }),
|
|
94
|
+
/* @__PURE__ */ jsxs(ProductCardCopy, { children: [
|
|
95
|
+
/* @__PURE__ */ jsxs(ProductCardTitleRow, { children: [
|
|
96
|
+
/* @__PURE__ */ jsx(ProductCardTitle, { children: title }),
|
|
97
|
+
/* @__PURE__ */ jsx(ProductCardArrow, { "aria-hidden": "true" })
|
|
98
|
+
] }),
|
|
99
|
+
/* @__PURE__ */ jsx(ProductCardDescription, { children: description })
|
|
100
|
+
] })
|
|
101
|
+
] });
|
|
102
|
+
}
|
|
103
|
+
function ProductCard({
|
|
104
|
+
className,
|
|
105
|
+
description,
|
|
106
|
+
href,
|
|
107
|
+
image,
|
|
108
|
+
imageAlt,
|
|
109
|
+
imageFit,
|
|
110
|
+
title
|
|
111
|
+
}) {
|
|
112
|
+
const content = /* @__PURE__ */ jsx(
|
|
113
|
+
ProductCardContent,
|
|
114
|
+
{
|
|
115
|
+
description,
|
|
116
|
+
image,
|
|
117
|
+
imageAlt,
|
|
118
|
+
imageFit,
|
|
119
|
+
title
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
if (href) {
|
|
123
|
+
return /* @__PURE__ */ jsx(ProductCardLink, { "aria-label": title, className, href, children: content });
|
|
124
|
+
}
|
|
125
|
+
return /* @__PURE__ */ jsx(ProductCardArticle, { className, children: content });
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// src/commodity-original/components/Pagination/index.tsx
|
|
129
|
+
import { useTranslation } from "react-i18next";
|
|
130
|
+
|
|
131
|
+
// src/wikex/assets/products/chevron-right.svg
|
|
132
|
+
var chevron_right_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDE0IDE0IiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNNS4yNSAzLjVMOC43NSA3TDUuMjUgMTAuNSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS4xNjY2NyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=";
|
|
133
|
+
|
|
134
|
+
// src/commodity-original/components/Pagination/style.ts
|
|
135
|
+
import { styled as styled2 } from "styled-components";
|
|
136
|
+
var PaginationNav = styled2.nav.withConfig({
|
|
137
|
+
componentId: "sc-522a1750-0"
|
|
138
|
+
})([
|
|
139
|
+
`display:flex;justify-content:center;`
|
|
140
|
+
]);
|
|
141
|
+
var PaginationList = styled2.ul.withConfig({
|
|
142
|
+
componentId: "sc-522a1750-1"
|
|
143
|
+
})([
|
|
144
|
+
`display:flex;margin:0;padding:0;align-items:center;gap:8px;list-style:none;`
|
|
145
|
+
]);
|
|
146
|
+
var PaginationItem = styled2.li.withConfig({
|
|
147
|
+
componentId: "sc-522a1750-2"
|
|
148
|
+
})([
|
|
149
|
+
`display:flex;`
|
|
150
|
+
]);
|
|
151
|
+
var PaginationButton = styled2.button.withConfig({
|
|
152
|
+
componentId: "sc-522a1750-3"
|
|
153
|
+
})([
|
|
154
|
+
`display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
155
|
+
`;border-radius:4px;padding:4px;color:`,
|
|
156
|
+
`;background:`,
|
|
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:`,
|
|
158
|
+
`;color:`,
|
|
159
|
+
`;background:`,
|
|
160
|
+
`;}&:not(:disabled):hover{color:`,
|
|
161
|
+
`;background:`,
|
|
162
|
+
`;}&[data-active]:not(:disabled):hover{background:`,
|
|
163
|
+
`;}&:disabled{cursor:not-allowed;}&:focus-visible{outline:2px solid `,
|
|
164
|
+
`;outline-offset:2px;}`
|
|
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
|
+
var PaginationArrow = styled2.span.withConfig({
|
|
167
|
+
componentId: "sc-522a1750-4"
|
|
168
|
+
})([
|
|
169
|
+
`width:16px;height:16px;background:currentColor;mask:url("`,
|
|
170
|
+
`") center / contain no-repeat;-webkit-mask:url("`,
|
|
171
|
+
`") center / contain no-repeat;&[data-direction="previous"]{transform:scaleX(-1);}`
|
|
172
|
+
], chevron_right_default, chevron_right_default);
|
|
173
|
+
|
|
174
|
+
// src/commodity-original/components/Pagination/index.tsx
|
|
175
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
176
|
+
function getPaginationItems(page, pageCount, siblingCount) {
|
|
177
|
+
const maxVisibleItems = siblingCount * 2 + 5;
|
|
178
|
+
if (pageCount <= maxVisibleItems) {
|
|
179
|
+
return Array.from({ length: pageCount }, (_, index) => index + 1);
|
|
180
|
+
}
|
|
181
|
+
const leftSibling = Math.max(page - siblingCount, 2);
|
|
182
|
+
const rightSibling = Math.min(page + siblingCount, pageCount - 1);
|
|
183
|
+
const items = [1];
|
|
184
|
+
if (leftSibling > 2) {
|
|
185
|
+
items.push("ellipsis");
|
|
186
|
+
}
|
|
187
|
+
for (let value = leftSibling; value <= rightSibling; value += 1) {
|
|
188
|
+
items.push(value);
|
|
189
|
+
}
|
|
190
|
+
if (rightSibling < pageCount - 1) {
|
|
191
|
+
items.push("ellipsis");
|
|
192
|
+
}
|
|
193
|
+
items.push(pageCount);
|
|
194
|
+
return items;
|
|
195
|
+
}
|
|
196
|
+
function Pagination({
|
|
197
|
+
page,
|
|
198
|
+
pageCount,
|
|
199
|
+
onPageChange,
|
|
200
|
+
siblingCount = 1,
|
|
201
|
+
ariaLabel,
|
|
202
|
+
labels,
|
|
203
|
+
className
|
|
204
|
+
}) {
|
|
205
|
+
const { t } = useTranslation();
|
|
206
|
+
const safePageCount = Math.max(1, Math.floor(pageCount));
|
|
207
|
+
const currentPage = Math.min(Math.max(1, Math.floor(page)), safePageCount);
|
|
208
|
+
const items = getPaginationItems(currentPage, safePageCount, siblingCount);
|
|
209
|
+
const hasPreviousPage = currentPage > 1;
|
|
210
|
+
const hasNextPage = currentPage < safePageCount;
|
|
211
|
+
return /* @__PURE__ */ jsx2(
|
|
212
|
+
PaginationNav,
|
|
213
|
+
{
|
|
214
|
+
"aria-label": ariaLabel ?? t("pagination.navigation"),
|
|
215
|
+
className,
|
|
216
|
+
children: /* @__PURE__ */ jsxs2(PaginationList, { children: [
|
|
217
|
+
/* @__PURE__ */ jsx2(PaginationItem, { children: /* @__PURE__ */ jsx2(
|
|
218
|
+
PaginationButton,
|
|
219
|
+
{
|
|
220
|
+
"aria-label": labels?.previous ?? t("pagination.previous"),
|
|
221
|
+
"data-control": "previous",
|
|
222
|
+
disabled: !hasPreviousPage,
|
|
223
|
+
onClick: () => onPageChange(currentPage - 1),
|
|
224
|
+
type: "button",
|
|
225
|
+
children: /* @__PURE__ */ jsx2(PaginationArrow, { "data-direction": "previous" })
|
|
226
|
+
}
|
|
227
|
+
) }),
|
|
228
|
+
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
|
+
PaginationButton,
|
|
230
|
+
{
|
|
231
|
+
"aria-current": item === currentPage ? "page" : void 0,
|
|
232
|
+
"aria-label": item === currentPage ? labels?.current(item) ?? t("pagination.current", { page: item }) : labels?.page(item) ?? t("pagination.page", { page: item }),
|
|
233
|
+
"data-active": item === currentPage || void 0,
|
|
234
|
+
onClick: () => onPageChange(item),
|
|
235
|
+
type: "button",
|
|
236
|
+
children: item
|
|
237
|
+
}
|
|
238
|
+
) }, `${item}-${index}`)),
|
|
239
|
+
/* @__PURE__ */ jsx2(PaginationItem, { children: /* @__PURE__ */ jsx2(
|
|
240
|
+
PaginationButton,
|
|
241
|
+
{
|
|
242
|
+
"aria-label": labels?.next ?? t("pagination.next"),
|
|
243
|
+
"data-control": "next",
|
|
244
|
+
disabled: !hasNextPage,
|
|
245
|
+
onClick: () => onPageChange(currentPage + 1),
|
|
246
|
+
type: "button",
|
|
247
|
+
children: /* @__PURE__ */ jsx2(PaginationArrow, { "data-direction": "next" })
|
|
248
|
+
}
|
|
249
|
+
) })
|
|
250
|
+
] })
|
|
251
|
+
}
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// src/commodity-original/components/Breadcrumb/index.tsx
|
|
256
|
+
import Link2 from "next/link.js";
|
|
257
|
+
|
|
258
|
+
// src/commodity-original/components/Breadcrumb/style.ts
|
|
259
|
+
import { styled as styled3 } from "styled-components";
|
|
260
|
+
var breadcrumbText = `
|
|
261
|
+
font-family: var(--font-manrope), Arial, Helvetica, sans-serif;
|
|
262
|
+
font-size: 12px;
|
|
263
|
+
font-weight: 500;
|
|
264
|
+
line-height: 16px;
|
|
265
|
+
white-space: nowrap;
|
|
266
|
+
@media (max-width: 767px) {
|
|
267
|
+
font-size: 10px;
|
|
268
|
+
line-height: 14px;
|
|
269
|
+
}
|
|
270
|
+
`;
|
|
271
|
+
var BreadcrumbNav = styled3.nav.withConfig({
|
|
272
|
+
componentId: "sc-9c96c0b1-0"
|
|
273
|
+
})([
|
|
274
|
+
`display:flex;max-width:100%;align-items:center;@media (max-width:767px){overflow-x:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}}`
|
|
275
|
+
]);
|
|
276
|
+
var BreadcrumbList = styled3.ol.withConfig({
|
|
277
|
+
componentId: "sc-9c96c0b1-1"
|
|
278
|
+
})([
|
|
279
|
+
`display:flex;margin:0;padding:0;align-items:center;gap:4px;list-style:none;`
|
|
280
|
+
]);
|
|
281
|
+
var BreadcrumbItem = styled3.li.withConfig({
|
|
282
|
+
componentId: "sc-9c96c0b1-2"
|
|
283
|
+
})([
|
|
284
|
+
`display:flex;align-items:center;gap:4px;`
|
|
285
|
+
]);
|
|
286
|
+
var BreadcrumbLink = styled3.a.withConfig({
|
|
287
|
+
componentId: "sc-9c96c0b1-3"
|
|
288
|
+
})([
|
|
289
|
+
``,
|
|
290
|
+
` color:`,
|
|
291
|
+
`;&:hover,&:focus-visible{color:`,
|
|
292
|
+
`;}&:focus-visible{outline:2px solid #f9bb3a;outline-offset:2px;}`
|
|
293
|
+
], breadcrumbText, ({ theme }) => theme.colors.text.placeholder, ({ theme }) => theme.colors.text.primary);
|
|
294
|
+
var BreadcrumbCurrent = styled3.span.withConfig({
|
|
295
|
+
componentId: "sc-9c96c0b1-4"
|
|
296
|
+
})([
|
|
297
|
+
``,
|
|
298
|
+
` color:`,
|
|
299
|
+
`;`
|
|
300
|
+
], breadcrumbText, ({ theme }) => theme.colors.text.primary);
|
|
301
|
+
var BreadcrumbSeparator = styled3.span.withConfig({
|
|
302
|
+
componentId: "sc-9c96c0b1-5"
|
|
303
|
+
})([
|
|
304
|
+
`display:inline-flex;width:14px;height:14px;align-items:center;justify-content:center;color:`,
|
|
305
|
+
`;background:currentColor;mask:url("`,
|
|
306
|
+
`") center / contain no-repeat;-webkit-mask:url("`,
|
|
307
|
+
`") center / contain no-repeat;`
|
|
308
|
+
], ({ theme }) => theme.colors.text.placeholder, chevron_right_default, chevron_right_default);
|
|
309
|
+
|
|
310
|
+
// src/commodity-original/components/Breadcrumb/index.tsx
|
|
311
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
312
|
+
function Breadcrumb({
|
|
313
|
+
items,
|
|
314
|
+
ariaLabel = "Breadcrumb",
|
|
315
|
+
className
|
|
316
|
+
}) {
|
|
317
|
+
return /* @__PURE__ */ jsx3(BreadcrumbNav, { "aria-label": ariaLabel, className, children: /* @__PURE__ */ jsx3(BreadcrumbList, { children: items.map((item, index) => {
|
|
318
|
+
const isCurrent = index === items.length - 1;
|
|
319
|
+
return /* @__PURE__ */ jsxs3(BreadcrumbItem, { children: [
|
|
320
|
+
isCurrent ? /* @__PURE__ */ jsx3(BreadcrumbCurrent, { "aria-current": "page", children: item.label }) : item.href ? /* @__PURE__ */ jsx3(BreadcrumbLink, { as: Link2, href: item.href, children: item.label }) : /* @__PURE__ */ jsx3(BreadcrumbCurrent, { children: item.label }),
|
|
321
|
+
!isCurrent && /* @__PURE__ */ jsx3(BreadcrumbSeparator, { "aria-hidden": "true" })
|
|
322
|
+
] }, `${item.label}-${index}`);
|
|
323
|
+
}) }) });
|
|
324
|
+
}
|
|
325
|
+
export {
|
|
326
|
+
Breadcrumb,
|
|
327
|
+
Pagination,
|
|
328
|
+
ProductCard
|
|
329
|
+
};
|
|
330
|
+
//# sourceMappingURL=ui.mjs.map
|
package/dist/ui.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/wikex/assets/products/related-products-arrow.svg","../src/wikex/assets/products/product-card-arrow.svg","../src/commodity-original/components/ProductCard/style.ts","../src/commodity-original/components/ProductCard/index.tsx","../src/commodity-original/components/Pagination/index.tsx","../src/wikex/assets/products/chevron-right.svg","../src/commodity-original/components/Pagination/style.ts","../src/commodity-original/components/Breadcrumb/index.tsx","../src/commodity-original/components/Breadcrumb/style.ts"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGlkPSJJY29uIC8gYXJyb3ciPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTIuNjY2NyA4TDMuMzMzMzMgOE04IDEyLjY2NjdMMTIuNjY2NyA4TDggMy4zMzMzMyIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8L3N2Zz4K\";","export default \"data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xNSA4TDEgOE04IDE1TDE1IDhMOCAxIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==\";","import relatedProductsArrowIcon from \"../../../wikex/assets/products/related-products-arrow.svg\";\nimport productCardArrowIcon from \"../../../wikex/assets/products/product-card-arrow.svg\";\nimport Link from \"next/link.js\";\nimport Image from \"next/image.js\";\nimport { css, styled } from \"styled-components\";\nconst cardSurface = css([\n `display:flex;width:100%;height:100%;max-width:329px;flex-direction:column;color:`,\n `;transition:transform 160ms ease;&:hover{transform:translateY(-2px);}@media (max-width:599px){max-width:100%;}`\n], ({ theme })=>theme.colors.text.primary);\nexport const ProductCardArticle = styled.article.withConfig({\n componentId: \"sc-232625b5-0\"\n})([\n ``,\n ``\n], cardSurface);\nexport const ProductCardLink = styled(Link).withConfig({\n componentId: \"sc-232625b5-1\"\n})([\n ``,\n ` text-decoration:none;&:focus-visible{outline:2px solid `,\n `;outline-offset:3px;}`\n], cardSurface, ({ theme })=>theme.colors.accent.primary);\nexport const ProductCardImagePanel = styled.div.withConfig({\n componentId: \"sc-232625b5-2\"\n})([\n `position:relative;width:100%;aspect-ratio:1;border-radius:8px 8px 0 0;&::before{position:absolute;z-index:1;inset:41.2879% 0 0;border-radius:8px 8px 0 0;background:rgb(249 187 58 / 40%);box-shadow:-4px 4px 10px rgb(0 0 0 / 10%);content:\"\";}@media (max-width:599px){&::before{inset:43.2727% 0 -14.5833%;}}`\n]);\nexport const ProductCardImage = styled(Image).withConfig({\n componentId: \"sc-232625b5-3\"\n})([\n `z-index:2;object-fit:cover;pointer-events:none;`\n]);\nexport const ProductCardCopy = styled.div.withConfig({\n componentId: \"sc-232625b5-4\"\n})([\n `display:flex;width:100%;flex:1 0 auto;flex-direction:column;gap:4px;padding:12px 16px 24px;border-radius:0 0 8px 8px;background:`,\n `;box-shadow:-4px 4px 10px rgb(0 0 0 / 10%);@media (max-width:599px){padding:12px 16px 24px;align-items:center;z-index:2;}`\n], ({ theme })=>theme.colors.background.card);\nexport const ProductCardTitleRow = styled.div.withConfig({\n componentId: \"sc-232625b5-5\"\n})([\n `display:flex;width:100%;align-items:center;gap:8px;`\n]);\nexport const ProductCardTitle = styled.h3.withConfig({\n componentId: \"sc-232625b5-6\"\n})([\n `flex:1 1 0;min-width:0;margin:0;overflow:hidden;color:`,\n `;font-size:20px;font-weight:700;line-height:30px;text-overflow:ellipsis;white-space:nowrap;@media (max-width:599px){font-size:14px;line-height:18px;}`\n], ({ theme })=>theme.colors.text.primary);\nexport const ProductCardArrow = styled.span.withConfig({\n componentId: \"sc-232625b5-7\"\n})([\n `width:24px;height:24px;flex:0 0 24px;color:`,\n `;background:currentColor;mask:url(\"`,\n `\") center / 16px 16px no-repeat;-webkit-mask:url(\"`,\n `\") center / 16px 16px no-repeat;@media (max-width:599px){width:18px;height:18px;flex-basis:18px;mask-image:url(\"`,\n `\");mask-size:contain;-webkit-mask-image:url(\"`,\n `\");-webkit-mask-size:contain;}`\n], ({ theme })=>theme.colors.accent.primary, productCardArrowIcon, productCardArrowIcon, relatedProductsArrowIcon, relatedProductsArrowIcon);\nexport const ProductCardDescription = styled.p.withConfig({\n componentId: \"sc-232625b5-8\"\n})([\n `display:-webkit-box;width:100%;overflow:hidden;margin:0;color:`,\n `;font-size:16px;font-weight:500;line-height:22px;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:3;@media (max-width:599px){font-size:12px;line-height:16px;}`\n], ({ theme })=>theme.colors.text.content);\n","\"use client\";\n\nimport type { ImageProps } from \"next/image.js\";\nimport {\n ProductCardArrow,\n ProductCardArticle,\n ProductCardCopy,\n ProductCardDescription,\n ProductCardImage,\n ProductCardImagePanel,\n ProductCardLink,\n ProductCardTitle,\n ProductCardTitleRow,\n} from \"./style\";\n\nexport type ProductCardProps = {\n image: ImageProps[\"src\"];\n imageAlt?: string;\n imageFit?: 'cover' | 'contain';\n title: string;\n description: string;\n href?: string;\n className?: string;\n};\n\ntype ProductCardContentProps = Pick<\n ProductCardProps,\n \"description\" | \"image\" | \"imageAlt\" | \"imageFit\" | \"title\"\n>;\n\nfunction ProductCardContent({\n description,\n image,\n imageAlt = \"\",\n imageFit = \"cover\",\n title,\n}: ProductCardContentProps) {\n return (\n <>\n <ProductCardImagePanel>\n <ProductCardImage\n alt={imageAlt}\n fill\n sizes=\"(max-width: 767px) calc(100vw - 48px), 329px\"\n src={image}\n style={imageFit === 'contain' ? { objectFit: 'contain', padding: 24 } : undefined}\n />\n </ProductCardImagePanel>\n <ProductCardCopy>\n <ProductCardTitleRow>\n <ProductCardTitle>{title}</ProductCardTitle>\n <ProductCardArrow aria-hidden=\"true\" />\n </ProductCardTitleRow>\n <ProductCardDescription>{description}</ProductCardDescription>\n </ProductCardCopy>\n </>\n );\n}\n\nexport default function ProductCard({\n className,\n description,\n href,\n image,\n imageAlt,\n imageFit,\n title,\n}: ProductCardProps) {\n const content = (\n <ProductCardContent\n description={description}\n image={image}\n imageAlt={imageAlt}\n imageFit={imageFit}\n title={title}\n />\n );\n\n if (href) {\n return (\n <ProductCardLink aria-label={title} className={className} href={href}>\n {content}\n </ProductCardLink>\n );\n }\n\n return <ProductCardArticle className={className}>{content}</ProductCardArticle>;\n}\n","\"use client\";\n\nimport { useTranslation } from \"react-i18next\";\nimport {\n PaginationArrow,\n PaginationButton,\n PaginationItem,\n PaginationList,\n PaginationNav,\n} from \"./style\";\n\ntype PaginationItemValue = number | \"ellipsis\";\n\nexport type PaginationProps = {\n page: number;\n pageCount: number;\n onPageChange: (page: number) => void;\n siblingCount?: number;\n ariaLabel?: string;\n labels?: { previous: string; next: string; page: (page: number) => string; current: (page: number) => string };\n className?: string;\n};\n\nfunction getPaginationItems(\n page: number,\n pageCount: number,\n siblingCount: number,\n): PaginationItemValue[] {\n const maxVisibleItems = siblingCount * 2 + 5;\n\n if (pageCount <= maxVisibleItems) {\n return Array.from({ length: pageCount }, (_, index) => index + 1);\n }\n\n const leftSibling = Math.max(page - siblingCount, 2);\n const rightSibling = Math.min(page + siblingCount, pageCount - 1);\n const items: PaginationItemValue[] = [1];\n\n if (leftSibling > 2) {\n items.push(\"ellipsis\");\n }\n\n for (let value = leftSibling; value <= rightSibling; value += 1) {\n items.push(value);\n }\n\n if (rightSibling < pageCount - 1) {\n items.push(\"ellipsis\");\n }\n\n items.push(pageCount);\n\n return items;\n}\n\nexport default function Pagination({\n page,\n pageCount,\n onPageChange,\n siblingCount = 1,\n ariaLabel,\n labels,\n className,\n}: PaginationProps) {\n const { t } = useTranslation();\n const safePageCount = Math.max(1, Math.floor(pageCount));\n const currentPage = Math.min(Math.max(1, Math.floor(page)), safePageCount);\n const items = getPaginationItems(currentPage, safePageCount, siblingCount);\n const hasPreviousPage = currentPage > 1;\n const hasNextPage = currentPage < safePageCount;\n\n return (\n <PaginationNav\n aria-label={ariaLabel ?? t(\"pagination.navigation\")}\n className={className}\n >\n <PaginationList>\n <PaginationItem>\n <PaginationButton\n aria-label={labels?.previous ?? t(\"pagination.previous\")}\n data-control=\"previous\"\n disabled={!hasPreviousPage}\n onClick={() => onPageChange(currentPage - 1)}\n type=\"button\"\n >\n <PaginationArrow data-direction=\"previous\" />\n </PaginationButton>\n </PaginationItem>\n {items.map((item, index) => (\n <PaginationItem key={`${item}-${index}`}>\n {item === \"ellipsis\" ? (\n <PaginationButton aria-hidden=\"true\" disabled tabIndex={-1} type=\"button\">\n …\n </PaginationButton>\n ) : (\n <PaginationButton\n aria-current={item === currentPage ? \"page\" : undefined}\n aria-label={\n item === currentPage\n ? (labels?.current(item) ?? t(\"pagination.current\", { page: item }))\n : (labels?.page(item) ?? t(\"pagination.page\", { page: item }))\n }\n data-active={item === currentPage || undefined}\n onClick={() => onPageChange(item)}\n type=\"button\"\n >\n {item}\n </PaginationButton>\n )}\n </PaginationItem>\n ))}\n <PaginationItem>\n <PaginationButton\n aria-label={labels?.next ?? t(\"pagination.next\")}\n data-control=\"next\"\n disabled={!hasNextPage}\n onClick={() => onPageChange(currentPage + 1)}\n type=\"button\"\n >\n <PaginationArrow data-direction=\"next\" />\n </PaginationButton>\n </PaginationItem>\n </PaginationList>\n </PaginationNav>\n );\n}\n","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDE0IDE0IiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNNS4yNSAzLjVMOC43NSA3TDUuMjUgMTAuNSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS4xNjY2NyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=\";","import chevronRightIcon from \"../../../wikex/assets/products/chevron-right.svg\";\nimport { styled } from \"styled-components\";\nexport const PaginationNav = styled.nav.withConfig({\n componentId: \"sc-522a1750-0\"\n})([\n `display:flex;justify-content:center;`\n]);\nexport const PaginationList = styled.ul.withConfig({\n componentId: \"sc-522a1750-1\"\n})([\n `display:flex;margin:0;padding:0;align-items:center;gap:8px;list-style:none;`\n]);\nexport const PaginationItem = styled.li.withConfig({\n componentId: \"sc-522a1750-2\"\n})([\n `display:flex;`\n]);\nexport const PaginationButton = styled.button.withConfig({\n componentId: \"sc-522a1750-3\"\n})([\n `display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,\n `;border-radius:4px;padding:4px;color:`,\n `;background:`,\n `;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:`,\n `;color:`,\n `;background:`,\n `;}&:not(:disabled):hover{color:`,\n `;background:`,\n `;}&[data-active]:not(:disabled):hover{background:`,\n `;}&:disabled{cursor:not-allowed;}&:focus-visible{outline:2px solid `,\n `;outline-offset:2px;}`\n], ({ 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);\nexport const PaginationArrow = styled.span.withConfig({\n componentId: \"sc-522a1750-4\"\n})([\n `width:16px;height:16px;background:currentColor;mask:url(\"`,\n `\") center / contain no-repeat;-webkit-mask:url(\"`,\n `\") center / contain no-repeat;&[data-direction=\"previous\"]{transform:scaleX(-1);}`\n], chevronRightIcon, chevronRightIcon);\n","\"use client\";\n\nimport Link from \"next/link.js\";\nimport {\n BreadcrumbCurrent,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbNav,\n BreadcrumbSeparator,\n} from \"./style\";\n\nexport type BreadcrumbItemData = {\n label: string;\n href?: string;\n};\n\nexport type BreadcrumbProps = {\n items: readonly BreadcrumbItemData[];\n ariaLabel?: string;\n className?: string;\n};\n\nexport default function Breadcrumb({\n items,\n ariaLabel = \"Breadcrumb\",\n className,\n}: BreadcrumbProps) {\n return (\n <BreadcrumbNav aria-label={ariaLabel} className={className}>\n <BreadcrumbList>\n {items.map((item, index) => {\n const isCurrent = index === items.length - 1;\n\n return (\n <BreadcrumbItem key={`${item.label}-${index}`}>\n {isCurrent ? (\n <BreadcrumbCurrent aria-current=\"page\">\n {item.label}\n </BreadcrumbCurrent>\n ) : item.href ? (\n <BreadcrumbLink as={Link} href={item.href}>\n {item.label}\n </BreadcrumbLink>\n ) : (\n <BreadcrumbCurrent>{item.label}</BreadcrumbCurrent>\n )}\n {!isCurrent && (\n <BreadcrumbSeparator aria-hidden=\"true\" />\n )}\n </BreadcrumbItem>\n );\n })}\n </BreadcrumbList>\n </BreadcrumbNav>\n );\n}\n","import chevronRightIcon from \"../../../wikex/assets/products/chevron-right.svg\";\nimport { styled } from \"styled-components\";\nconst breadcrumbText = `\n font-family: var(--font-manrope), Arial, Helvetica, sans-serif;\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n white-space: nowrap;\n @media (max-width: 767px) {\n font-size: 10px;\n line-height: 14px;\n }\n`;\nexport const BreadcrumbNav = styled.nav.withConfig({\n componentId: \"sc-9c96c0b1-0\"\n})([\n `display:flex;max-width:100%;align-items:center;@media (max-width:767px){overflow-x:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}}`\n]);\nexport const BreadcrumbList = styled.ol.withConfig({\n componentId: \"sc-9c96c0b1-1\"\n})([\n `display:flex;margin:0;padding:0;align-items:center;gap:4px;list-style:none;`\n]);\nexport const BreadcrumbItem = styled.li.withConfig({\n componentId: \"sc-9c96c0b1-2\"\n})([\n `display:flex;align-items:center;gap:4px;`\n]);\nexport const BreadcrumbLink = styled.a.withConfig({\n componentId: \"sc-9c96c0b1-3\"\n})([\n ``,\n ` color:`,\n `;&:hover,&:focus-visible{color:`,\n `;}&:focus-visible{outline:2px solid #f9bb3a;outline-offset:2px;}`\n], breadcrumbText, ({ theme })=>theme.colors.text.placeholder, ({ theme })=>theme.colors.text.primary);\nexport const BreadcrumbCurrent = styled.span.withConfig({\n componentId: \"sc-9c96c0b1-4\"\n})([\n ``,\n ` color:`,\n `;`\n], breadcrumbText, ({ theme })=>theme.colors.text.primary);\nexport const BreadcrumbSeparator = styled.span.withConfig({\n componentId: \"sc-9c96c0b1-5\"\n})([\n `display:inline-flex;width:14px;height:14px;align-items:center;justify-content:center;color:`,\n `;background:currentColor;mask:url(\"`,\n `\") center / contain no-repeat;-webkit-mask:url(\"`,\n `\") center / contain no-repeat;`\n], ({ theme })=>theme.colors.text.placeholder, chevronRightIcon, chevronRightIcon);\n"],"mappings":";;;AAAA,IAAO,iCAAQ;;;ACAf,IAAO,6BAAQ;;;ACEf,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,SAAS,KAAK,cAAc;AAC5B,IAAM,cAAc,IAAI;AAAA,EACpB;AAAA,EACA;AACJ,GAAG,CAAC,EAAE,MAAM,MAAI,MAAM,OAAO,KAAK,OAAO;AAClC,IAAM,qBAAqB,OAAO,QAAQ,WAAW;AAAA,EACxD,aAAa;AACjB,CAAC,EAAE;AAAA,EACC;AAAA,EACA;AACJ,GAAG,WAAW;AACP,IAAM,kBAAkB,OAAO,IAAI,EAAE,WAAW;AAAA,EACnD,aAAa;AACjB,CAAC,EAAE;AAAA,EACC;AAAA,EACA;AAAA,EACA;AACJ,GAAG,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EACA;AAAA,EACA;AACJ,GAAG,gBAAgB,CAAC,EAAE,MAAM,MAAI,MAAM,OAAO,KAAK,OAAO;AAClD,IAAM,sBAAsBA,QAAO,KAAK,WAAW;AAAA,EACtD,aAAa;AACjB,CAAC,EAAE;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GAAG,CAAC,EAAE,MAAM,MAAI,MAAM,OAAO,KAAK,aAAa,uBAAkB,qBAAgB;;;ADfrE,SAEI,OAAAC,MAFJ,QAAAC,aAAA;AAZG,SAAR,WAA4B;AAAA,EACjC;AAAA,EACA,YAAY;AAAA,EACZ;AACF,GAAoB;AAClB,SACE,gBAAAD,KAAC,iBAAc,cAAY,WAAW,WACpC,0BAAAA,KAAC,kBACE,gBAAM,IAAI,CAAC,MAAM,UAAU;AAC1B,UAAM,YAAY,UAAU,MAAM,SAAS;AAE3C,WACE,gBAAAC,MAAC,kBACE;AAAA,kBACC,gBAAAD,KAAC,qBAAkB,gBAAa,QAC7B,eAAK,OACR,IACE,KAAK,OACP,gBAAAA,KAAC,kBAAe,IAAIE,OAAM,MAAM,KAAK,MAClC,eAAK,OACR,IAEA,gBAAAF,KAAC,qBAAmB,eAAK,OAAM;AAAA,MAEhC,CAAC,aACA,gBAAAA,KAAC,uBAAoB,eAAY,QAAO;AAAA,SAbvB,GAAG,KAAK,KAAK,IAAI,KAAK,EAe3C;AAAA,EAEJ,CAAC,GACH,GACF;AAEJ;","names":["styled","jsx","jsxs","Link","styled","jsx","jsxs","Link"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enyxs/wikex-components",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.8",
|
|
4
4
|
"description": "Reusable CMS blocks, including the original Wikex Commodity UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
@@ -24,13 +24,24 @@
|
|
|
24
24
|
"require": "./dist/page-templates.js"
|
|
25
25
|
},
|
|
26
26
|
"./manifest.json": "./dist/manifest.json",
|
|
27
|
-
"./styles.css": "./dist/index.css"
|
|
27
|
+
"./styles.css": "./dist/index.css",
|
|
28
|
+
"./products": {
|
|
29
|
+
"types": "./dist/products.d.ts",
|
|
30
|
+
"import": "./dist/products.mjs",
|
|
31
|
+
"require": "./dist/products.js"
|
|
32
|
+
},
|
|
33
|
+
"./ui": {
|
|
34
|
+
"types": "./dist/ui.d.ts",
|
|
35
|
+
"import": "./dist/ui.mjs",
|
|
36
|
+
"require": "./dist/ui.js"
|
|
37
|
+
}
|
|
28
38
|
},
|
|
29
39
|
"scripts": {
|
|
30
40
|
"build": "tsup && node scripts/validate-styled-components.mjs && node scripts/build-manifest.mjs",
|
|
31
41
|
"check": "tsc --noEmit",
|
|
32
42
|
"test:fees": "node scripts/check-fees-table.cjs",
|
|
33
|
-
"prepare": "npm run build"
|
|
43
|
+
"prepare": "npm run build",
|
|
44
|
+
"test:products": "node scripts/check-product-ui.cjs"
|
|
34
45
|
},
|
|
35
46
|
"peerDependencies": {
|
|
36
47
|
"@emotion/react": "^11.0.0",
|
package/dist/chunk-DLYDTRRJ.mjs
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
// src/wikex/page-templates.ts
|
|
2
|
-
var chrome = (components) => [
|
|
3
|
-
{ type: "commodity-header" },
|
|
4
|
-
...components,
|
|
5
|
-
{ type: "commodity-footer" }
|
|
6
|
-
];
|
|
7
|
-
var wikexCommodityPageTemplates = [
|
|
8
|
-
{
|
|
9
|
-
kind: "cms-page",
|
|
10
|
-
key: "commodity-home",
|
|
11
|
-
name: "Wikex Commodity \u2014 Trang ch\u1EE7",
|
|
12
|
-
description: "T\u1EA5t c\u1EA3 section c\u1EE7a landing page Wikex Commodity.",
|
|
13
|
-
route: "/",
|
|
14
|
-
slug: "trang-chu",
|
|
15
|
-
components: chrome([
|
|
16
|
-
{ type: "commodity-hero" },
|
|
17
|
-
{ type: "commodity-benefits" },
|
|
18
|
-
{ type: "commodity-position" },
|
|
19
|
-
{ type: "commodity-audience" },
|
|
20
|
-
{ type: "download-section" },
|
|
21
|
-
{ type: "commodity-steps" },
|
|
22
|
-
{ type: "commodity-markets" },
|
|
23
|
-
{ type: "commodity-faq" },
|
|
24
|
-
{ type: "commodity-registration" }
|
|
25
|
-
])
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
kind: "cms-page",
|
|
29
|
-
key: "commodity-about-us",
|
|
30
|
-
name: "Wikex Commodity \u2014 V\u1EC1 ch\xFAng t\xF4i",
|
|
31
|
-
description: "C\xE1c section c\u1EE7a route /about-us.",
|
|
32
|
-
route: "/about-us",
|
|
33
|
-
slug: "about-us",
|
|
34
|
-
seo: {
|
|
35
|
-
title: "Wikex - Giao D\u1ECBch H\xE0ng H\xF3a | S\xE0n giao d\u1ECBch h\xE0ng h\xF3a uy t\xEDn cho nh\xE0 \u0111\u1EA7u t\u01B0 Vi\u1EC7t",
|
|
36
|
-
description: "Th\xE0nh vi\xEAn Kinh doanh 090 c\u1EE7a S\u1EDF Giao d\u1ECBch H\xE0ng h\xF3a Vi\u1EC7t Nam (MXV). Th\xF4ng tin t\u1ED5ng quan, t\u1EA7m nh\xECn, s\u1EE9 m\u1EC7nh v\xE0 gi\xE1 tr\u1ECB c\u1ED1t l\xF5i c\u1EE7a Wikex."
|
|
37
|
-
},
|
|
38
|
-
components: chrome([
|
|
39
|
-
{ type: "commodity-about-hero" },
|
|
40
|
-
{ type: "commodity-about-intro" },
|
|
41
|
-
{ type: "commodity-about-vision-mission" },
|
|
42
|
-
{ type: "commodity-about-core-values" },
|
|
43
|
-
{ type: "commodity-about-gallery" },
|
|
44
|
-
{ type: "commodity-about-registration" }
|
|
45
|
-
])
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
kind: "cms-page",
|
|
49
|
-
key: "commodity-fees",
|
|
50
|
-
name: "Wikex Commodity \u2014 Bi\u1EC3u ph\xED & k\xFD qu\u1EF9",
|
|
51
|
-
description: "C\xE1c section c\u1EE7a route /bang-phi-ky-quy.",
|
|
52
|
-
route: "/bang-phi-ky-quy",
|
|
53
|
-
slug: "bang-phi-ky-quy",
|
|
54
|
-
seo: {
|
|
55
|
-
title: "B\u1EA3ng ph\xED giao d\u1ECBch & K\xFD qu\u1EF9 h\xE0ng h\xF3a Wikex | C\u1EADp nh\u1EADt m\u1EDBi nh\u1EA5t",
|
|
56
|
-
description: "C\u1EADp nh\u1EADt chi ti\u1EBFt b\u1EA3ng ph\xED giao d\u1ECBch, m\u1EE9c k\xFD qu\u1EF9 v\xE0 khung gi\u1EDD giao d\u1ECBch c\xE1c s\u1EA3n ph\u1EA9m h\xE0ng h\xF3a ph\xE1i sinh t\u1EA1i Wikex."
|
|
57
|
-
},
|
|
58
|
-
redirect: { target: "/comming-soon", permanent: false },
|
|
59
|
-
components: chrome([{ type: "commodity-fees" }])
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
kind: "cms-page",
|
|
63
|
-
key: "commodity-policy",
|
|
64
|
-
name: "Wikex Commodity \u2014 Ch\xEDnh s\xE1ch",
|
|
65
|
-
description: "C\xE1c section c\u1EE7a route /chinh-sach.",
|
|
66
|
-
route: "/chinh-sach",
|
|
67
|
-
slug: "chinh-sach",
|
|
68
|
-
components: chrome([{ type: "commodity-policy" }])
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
kind: "cms-page",
|
|
72
|
-
key: "commodity-coming-soon",
|
|
73
|
-
name: "Wikex Commodity \u2014 Coming soon",
|
|
74
|
-
description: "C\xE1c section c\u1EE7a route /comming-soon.",
|
|
75
|
-
route: "/comming-soon",
|
|
76
|
-
slug: "comming-soon",
|
|
77
|
-
components: chrome([{ type: "commodity-coming-soon" }])
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
kind: "cms-page",
|
|
81
|
-
key: "commodity-complaints",
|
|
82
|
-
name: "Wikex Commodity \u2014 Khi\u1EBFu n\u1EA1i",
|
|
83
|
-
description: "C\xE1c section c\u1EE7a route /khieu-nai.",
|
|
84
|
-
route: "/khieu-nai",
|
|
85
|
-
slug: "khieu-nai",
|
|
86
|
-
seo: {
|
|
87
|
-
title: "Gi\u1EA3i quy\u1EBFt khi\u1EBFu n\u1EA1i | Wikex - Giao d\u1ECBch h\xE0ng h\xF3a",
|
|
88
|
-
description: "Quy tr\xECnh ti\u1EBFp nh\u1EADn, x\u1EED l\xFD v\xE0 gi\u1EA3i quy\u1EBFt c\xE1c y\xEAu c\u1EA7u, ph\u1EA3n \xE1nh v\xE0 khi\u1EBFu n\u1EA1i c\u1EE7a kh\xE1ch h\xE0ng t\u1EA1i Wikex."
|
|
89
|
-
},
|
|
90
|
-
components: chrome([{ type: "commodity-complaints" }])
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
kind: "cms-page",
|
|
94
|
-
key: "commodity-notifications",
|
|
95
|
-
name: "Wikex Commodity \u2014 Th\xF4ng b\xE1o MXV",
|
|
96
|
-
description: "C\xE1c section c\u1EE7a route /noti-mxv.",
|
|
97
|
-
route: "/noti-mxv",
|
|
98
|
-
slug: "noti-mxv",
|
|
99
|
-
seo: {
|
|
100
|
-
title: "Th\xF4ng b\xE1o | Wikex - Giao D\u1ECBch H\xE0ng H\xF3a",
|
|
101
|
-
description: "Th\xF4ng b\xE1o t\u1EEB MXV v\u1EC1 th\u1ECB tr\u01B0\u1EDDng giao d\u1ECBch h\xE0ng h\xF3a. C\xE1c c\u1EADp nh\u1EADt v\u1EC1 s\u1EA3n ph\u1EA9m, d\u1ECBch v\u1EE5, s\u1EF1 ki\u1EC7n v\xE0 ho\u1EA1t \u0111\u1ED9ng c\u1EE7a Wikex."
|
|
102
|
-
},
|
|
103
|
-
redirect: { target: "/comming-soon", permanent: false },
|
|
104
|
-
components: chrome([{ type: "commodity-notification-list" }])
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
kind: "cms-page",
|
|
108
|
-
key: "commodity-products",
|
|
109
|
-
name: "Wikex Commodity \u2014 S\u1EA3n ph\u1EA9m",
|
|
110
|
-
description: "C\xE1c section c\u1EE7a route /products.",
|
|
111
|
-
route: "/products",
|
|
112
|
-
slug: "products",
|
|
113
|
-
seo: {
|
|
114
|
-
title: "Danh m\u1EE5c s\u1EA3n ph\u1EA9m giao d\u1ECBch h\xE0ng h\xF3a Wikex",
|
|
115
|
-
description: "Kh\xE1m ph\xE1 danh m\u1EE5c s\u1EA3n ph\u1EA9m \u0111a d\u1EA1ng t\u1EEB N\xF4ng s\u1EA3n, N\u0103ng l\u01B0\u1EE3ng, Kim lo\u1EA1i \u0111\u1EBFn Nguy\xEAn li\u1EC7u c\xF4ng nghi\u1EC7p\u2026 v\xE0 c\xE1c h\u1EE3p \u0111\u1ED3ng h\xE0ng h\xF3a ph\xE1i sinh t\u1EA1i Wikex."
|
|
116
|
-
},
|
|
117
|
-
redirect: { target: "/comming-soon", permanent: false },
|
|
118
|
-
components: chrome([{ type: "commodity-products" }])
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
kind: "cms-page",
|
|
122
|
-
key: "commodity-product-detail",
|
|
123
|
-
name: "Wikex Commodity \u2014 Chi ti\u1EBFt s\u1EA3n ph\u1EA9m",
|
|
124
|
-
description: "M\u1EABu cho route \u0111\u1ED9ng /products/[slug].",
|
|
125
|
-
route: "/products/[slug]",
|
|
126
|
-
slug: "products-product-detail",
|
|
127
|
-
components: chrome([{ type: "commodity-product-detail" }])
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
kind: "cms-page",
|
|
131
|
-
key: "commodity-information",
|
|
132
|
-
name: "Wikex Commodity \u2014 Th\xF4ng tin Wikex",
|
|
133
|
-
description: "C\xE1c section c\u1EE7a route /thong-tin-wikex.",
|
|
134
|
-
route: "/thong-tin-wikex",
|
|
135
|
-
slug: "thong-tin-wikex",
|
|
136
|
-
seo: {
|
|
137
|
-
title: "Ki\u1EBFn Th\u1EE9c & Tin T\u1EE9c Th\u1ECB Tr\u01B0\u1EDDng Giao D\u1ECBch H\xE0ng H\xF3a",
|
|
138
|
-
description: "Cung c\u1EA5p ki\u1EBFn th\u1EE9c giao d\u1ECBch h\xE0ng h\xF3a t\u1EEB c\u01A1 b\u1EA3n \u0111\u1EBFn n\xE2ng cao cho nh\xE0 \u0111\u1EA7u t\u01B0. C\u1EADp nh\u1EADt tin t\u1EE9c th\u1ECB tr\u01B0\u1EDDng h\xE0ng h\xF3a to\xE0n c\u1EA7u."
|
|
139
|
-
},
|
|
140
|
-
redirect: { target: "/comming-soon", permanent: false },
|
|
141
|
-
components: chrome([
|
|
142
|
-
{ type: "commodity-information-hero" },
|
|
143
|
-
{ type: "commodity-information-featured" },
|
|
144
|
-
{ type: "commodity-article-list" }
|
|
145
|
-
])
|
|
146
|
-
}
|
|
147
|
-
];
|
|
148
|
-
var wikexCommodityRoutes = wikexCommodityPageTemplates.map(({ route, slug, key }) => ({
|
|
149
|
-
route,
|
|
150
|
-
slug,
|
|
151
|
-
template: key
|
|
152
|
-
}));
|
|
153
|
-
|
|
154
|
-
export {
|
|
155
|
-
wikexCommodityPageTemplates,
|
|
156
|
-
wikexCommodityRoutes
|
|
157
|
-
};
|
|
158
|
-
//# sourceMappingURL=chunk-DLYDTRRJ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/wikex/page-templates.ts"],"sourcesContent":["export type WikexCommodityPageTemplate = {\n kind: \"cms-page\";\n key: string;\n name: string;\n description: string;\n route: string;\n slug: string;\n redirect?: { target: string; permanent?: boolean };\n seo?: { title: string; description: string };\n components: Array<{ type: string; content?: Record<string, string | number> }>;\n};\n\nconst chrome = (components: WikexCommodityPageTemplate[\"components\"]) => [\n { type: \"commodity-header\" },\n ...components,\n { type: \"commodity-footer\" },\n];\n\nexport const wikexCommodityPageTemplates: WikexCommodityPageTemplate[] = [\n {\n kind: \"cms-page\",\n key: \"commodity-home\",\n name: \"Wikex Commodity — Trang chủ\",\n description: \"Tất cả section của landing page Wikex Commodity.\",\n route: \"/\",\n slug: \"trang-chu\",\n components: chrome([\n { type: \"commodity-hero\" },\n { type: \"commodity-benefits\" },\n { type: \"commodity-position\" },\n { type: \"commodity-audience\" },\n { type: \"download-section\" },\n { type: \"commodity-steps\" },\n { type: \"commodity-markets\" },\n { type: \"commodity-faq\" },\n { type: \"commodity-registration\" },\n ]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-about-us\",\n name: \"Wikex Commodity — Về chúng tôi\",\n description: \"Các section của route /about-us.\",\n route: \"/about-us\",\n slug: \"about-us\",\n seo: {\n title: \"Wikex - Giao Dịch Hàng Hóa | Sàn giao dịch hàng hóa uy tín cho nhà đầu tư Việt\",\n description:\n \"Thành viên Kinh doanh 090 của Sở Giao dịch Hàng hóa Việt Nam (MXV). Thông tin tổng quan, tầm nhìn, sứ mệnh và giá trị cốt lõi của Wikex.\",\n },\n components: chrome([\n { type: \"commodity-about-hero\" },\n { type: \"commodity-about-intro\" },\n { type: \"commodity-about-vision-mission\" },\n { type: \"commodity-about-core-values\" },\n { type: \"commodity-about-gallery\" },\n { type: \"commodity-about-registration\" },\n ]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-fees\",\n name: \"Wikex Commodity — Biểu phí & ký quỹ\",\n description: \"Các section của route /bang-phi-ky-quy.\",\n route: \"/bang-phi-ky-quy\",\n slug: \"bang-phi-ky-quy\",\n seo: {\n title: \"Bảng phí giao dịch & Ký quỹ hàng hóa Wikex | Cập nhật mới nhất\",\n description:\n \"Cập nhật chi tiết bảng phí giao dịch, mức ký quỹ và khung giờ giao dịch các sản phẩm hàng hóa phái sinh tại Wikex.\",\n },\n redirect: { target: \"/comming-soon\", permanent: false },\n components: chrome([{ type: \"commodity-fees\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-policy\",\n name: \"Wikex Commodity — Chính sách\",\n description: \"Các section của route /chinh-sach.\",\n route: \"/chinh-sach\",\n slug: \"chinh-sach\",\n components: chrome([{ type: \"commodity-policy\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-coming-soon\",\n name: \"Wikex Commodity — Coming soon\",\n description: \"Các section của route /comming-soon.\",\n route: \"/comming-soon\",\n slug: \"comming-soon\",\n components: chrome([{ type: \"commodity-coming-soon\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-complaints\",\n name: \"Wikex Commodity — Khiếu nại\",\n description: \"Các section của route /khieu-nai.\",\n route: \"/khieu-nai\",\n slug: \"khieu-nai\",\n seo: {\n title: \"Giải quyết khiếu nại | Wikex - Giao dịch hàng hóa\",\n description:\n \"Quy trình tiếp nhận, xử lý và giải quyết các yêu cầu, phản ánh và khiếu nại của khách hàng tại Wikex.\",\n },\n components: chrome([{ type: \"commodity-complaints\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-notifications\",\n name: \"Wikex Commodity — Thông báo MXV\",\n description: \"Các section của route /noti-mxv.\",\n route: \"/noti-mxv\",\n slug: \"noti-mxv\",\n seo: {\n title: \"Thông báo | Wikex - Giao Dịch Hàng Hóa\",\n description:\n \"Thông báo từ MXV về thị trường giao dịch hàng hóa. Các cập nhật về sản phẩm, dịch vụ, sự kiện và hoạt động của Wikex.\",\n },\n redirect: { target: \"/comming-soon\", permanent: false },\n components: chrome([{ type: \"commodity-notification-list\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-products\",\n name: \"Wikex Commodity — Sản phẩm\",\n description: \"Các section của route /products.\",\n route: \"/products\",\n slug: \"products\",\n seo: {\n title: \"Danh mục sản phẩm giao dịch hàng hóa Wikex\",\n description:\n \"Khám phá danh mục sản phẩm đa dạng từ Nông sản, Năng lượng, Kim loại đến Nguyên liệu công nghiệp… và các hợp đồng hàng hóa phái sinh tại Wikex.\",\n },\n redirect: { target: \"/comming-soon\", permanent: false },\n components: chrome([{ type: \"commodity-products\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-product-detail\",\n name: \"Wikex Commodity — Chi tiết sản phẩm\",\n description: \"Mẫu cho route động /products/[slug].\",\n route: \"/products/[slug]\",\n slug: \"products-product-detail\",\n components: chrome([{ type: \"commodity-product-detail\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-information\",\n name: \"Wikex Commodity — Thông tin Wikex\",\n description: \"Các section của route /thong-tin-wikex.\",\n route: \"/thong-tin-wikex\",\n slug: \"thong-tin-wikex\",\n seo: {\n title: \"Kiến Thức & Tin Tức Thị Trường Giao Dịch Hàng Hóa\",\n description:\n \"Cung cấp kiến thức giao dịch hàng hóa từ cơ bản đến nâng cao cho nhà đầu tư. Cập nhật tin tức thị trường hàng hóa toàn cầu.\",\n },\n redirect: { target: \"/comming-soon\", permanent: false },\n components: chrome([\n { type: \"commodity-information-hero\" },\n { type: \"commodity-information-featured\" },\n { type: \"commodity-article-list\" },\n ]),\n },\n];\n\nexport const wikexCommodityRoutes = wikexCommodityPageTemplates.map(({ route, slug, key }) => ({\n route,\n slug,\n template: key,\n}));\n"],"mappings":";AAYA,IAAM,SAAS,CAAC,eAAyD;AAAA,EACvE,EAAE,MAAM,mBAAmB;AAAA,EAC3B,GAAG;AAAA,EACH,EAAE,MAAM,mBAAmB;AAC7B;AAEO,IAAM,8BAA4D;AAAA,EACvE;AAAA,IACE,MAAM;AAAA,IACN,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,IACP,MAAM;AAAA,IACN,YAAY,OAAO;AAAA,MACjB,EAAE,MAAM,iBAAiB;AAAA,MACzB,EAAE,MAAM,qBAAqB;AAAA,MAC7B,EAAE,MAAM,qBAAqB;AAAA,MAC7B,EAAE,MAAM,qBAAqB;AAAA,MAC7B,EAAE,MAAM,mBAAmB;AAAA,MAC3B,EAAE,MAAM,kBAAkB;AAAA,MAC1B,EAAE,MAAM,oBAAoB;AAAA,MAC5B,EAAE,MAAM,gBAAgB;AAAA,MACxB,EAAE,MAAM,yBAAyB;AAAA,IACnC,CAAC;AAAA,EACH;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,KAAK;AAAA,IACL,MAAM;A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