welcome-ui 10.2.0 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/Icon.js +6 -4
- package/dist/Swiper.js +159 -128
- package/dist/Text.js +11 -10
- package/dist/theme.css +1 -1
- package/dist/types/components/Text/index.d.ts +2 -2
- package/dist/types/theme/generated/variables.d.ts +63 -32
- package/package.json +1 -1
package/dist/Swiper.js
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Swiper.css';
|
|
3
3
|
import { jsx as W } from "react/jsx-runtime";
|
|
4
|
-
import { a as G, g as
|
|
5
|
-
import { useEffect as j, useLayoutEffect as uo, useState as A, useRef as Z, Children as
|
|
4
|
+
import { a as G, g as so, c as K } from "./index-PAaZGbyz.js";
|
|
5
|
+
import { useEffect as j, useLayoutEffect as uo, useState as A, useRef as Z, Children as to, cloneElement as po, createContext as mo, useContext as ko, useMemo as oo, useCallback as F } from "react";
|
|
6
6
|
import { Button as io } from "./Button.js";
|
|
7
7
|
import { Icon as lo } from "./Icon.js";
|
|
8
8
|
var Y, no;
|
|
9
9
|
function xo() {
|
|
10
10
|
if (no) return Y;
|
|
11
11
|
no = 1;
|
|
12
|
-
var r = "Expected a function", n = NaN, i = "[object Symbol]",
|
|
13
|
-
return
|
|
12
|
+
var r = "Expected a function", n = NaN, i = "[object Symbol]", c = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, b = /^0b[01]+$/i, e = /^0o[0-7]+$/i, t = parseInt, m = typeof G == "object" && G && G.Object === Object && G, d = typeof self == "object" && self && self.Object === Object && self, f = m || d || Function("return this")(), y = Object.prototype, E = y.toString, I = Math.max, $ = Math.min, h = function() {
|
|
13
|
+
return f.Date.now();
|
|
14
14
|
};
|
|
15
|
-
function C(o,
|
|
15
|
+
function C(o, s, k) {
|
|
16
16
|
var v, P, B, O, l, p, u = 0, L = !1, z = !1, S = !0;
|
|
17
17
|
if (typeof o != "function")
|
|
18
18
|
throw new TypeError(r);
|
|
19
|
-
|
|
20
|
-
function V(
|
|
19
|
+
s = N(s) || 0, w(k) && (L = !!k.leading, z = "maxWait" in k, B = z ? I(N(k.maxWait) || 0, s) : B, S = "trailing" in k ? !!k.trailing : S);
|
|
20
|
+
function V(g) {
|
|
21
21
|
var T = v, R = P;
|
|
22
|
-
return v = P = void 0, u =
|
|
22
|
+
return v = P = void 0, u = g, O = o.apply(R, T), O;
|
|
23
23
|
}
|
|
24
|
-
function J(
|
|
25
|
-
return u =
|
|
24
|
+
function J(g) {
|
|
25
|
+
return u = g, l = setTimeout(q, s), L ? V(g) : O;
|
|
26
26
|
}
|
|
27
|
-
function ro(
|
|
28
|
-
var T =
|
|
29
|
-
return z ? $(
|
|
27
|
+
function ro(g) {
|
|
28
|
+
var T = g - p, R = g - u, co = s - T;
|
|
29
|
+
return z ? $(co, B - R) : co;
|
|
30
30
|
}
|
|
31
|
-
function D(
|
|
32
|
-
var T =
|
|
33
|
-
return p === void 0 || T >=
|
|
31
|
+
function D(g) {
|
|
32
|
+
var T = g - p, R = g - u;
|
|
33
|
+
return p === void 0 || T >= s || T < 0 || z && R >= B;
|
|
34
34
|
}
|
|
35
35
|
function q() {
|
|
36
|
-
var
|
|
37
|
-
if (D(
|
|
38
|
-
return ao(
|
|
39
|
-
l = setTimeout(q, ro(
|
|
36
|
+
var g = h();
|
|
37
|
+
if (D(g))
|
|
38
|
+
return ao(g);
|
|
39
|
+
l = setTimeout(q, ro(g));
|
|
40
40
|
}
|
|
41
|
-
function ao(
|
|
42
|
-
return l = void 0, S && v ? V(
|
|
41
|
+
function ao(g) {
|
|
42
|
+
return l = void 0, S && v ? V(g) : (v = P = void 0, O);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function fo() {
|
|
45
45
|
l !== void 0 && clearTimeout(l), u = 0, v = p = P = l = void 0;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function go() {
|
|
48
48
|
return l === void 0 ? O : ao(h());
|
|
49
49
|
}
|
|
50
50
|
function Q() {
|
|
51
|
-
var
|
|
52
|
-
if (v = arguments, P = this, p =
|
|
51
|
+
var g = h(), T = D(g);
|
|
52
|
+
if (v = arguments, P = this, p = g, T) {
|
|
53
53
|
if (l === void 0)
|
|
54
54
|
return J(p);
|
|
55
55
|
if (z)
|
|
56
|
-
return l = setTimeout(q,
|
|
56
|
+
return l = setTimeout(q, s), V(p);
|
|
57
57
|
}
|
|
58
|
-
return l === void 0 && (l = setTimeout(q,
|
|
58
|
+
return l === void 0 && (l = setTimeout(q, s)), O;
|
|
59
59
|
}
|
|
60
|
-
return Q.cancel =
|
|
60
|
+
return Q.cancel = fo, Q.flush = go, Q;
|
|
61
61
|
}
|
|
62
62
|
function w(o) {
|
|
63
|
-
var
|
|
64
|
-
return !!o && (
|
|
63
|
+
var s = typeof o;
|
|
64
|
+
return !!o && (s == "object" || s == "function");
|
|
65
65
|
}
|
|
66
66
|
function _(o) {
|
|
67
67
|
return !!o && typeof o == "object";
|
|
@@ -75,27 +75,27 @@ function xo() {
|
|
|
75
75
|
if (M(o))
|
|
76
76
|
return n;
|
|
77
77
|
if (w(o)) {
|
|
78
|
-
var
|
|
79
|
-
o = w(
|
|
78
|
+
var s = typeof o.valueOf == "function" ? o.valueOf() : o;
|
|
79
|
+
o = w(s) ? s + "" : s;
|
|
80
80
|
}
|
|
81
81
|
if (typeof o != "string")
|
|
82
82
|
return o === 0 ? o : +o;
|
|
83
|
-
o = o.replace(
|
|
83
|
+
o = o.replace(c, "");
|
|
84
84
|
var k = b.test(o);
|
|
85
|
-
return k || e.test(o) ?
|
|
85
|
+
return k || e.test(o) ? t(o.slice(2), k ? 2 : 8) : a.test(o) ? n : +o;
|
|
86
86
|
}
|
|
87
87
|
return Y = C, Y;
|
|
88
88
|
}
|
|
89
89
|
var ho = xo();
|
|
90
|
-
const wo = /* @__PURE__ */
|
|
90
|
+
const wo = /* @__PURE__ */ so(ho), yo = {
|
|
91
91
|
"--accordion-padding-block-content": "16px",
|
|
92
92
|
"--accordion-padding-gap-content": "8px",
|
|
93
93
|
"--accordion-padding-gap-subtitle": "4px",
|
|
94
94
|
"--accordion-padding-gap-tags": "4px",
|
|
95
95
|
"--accordion-padding-size-icon-lg": "16px",
|
|
96
96
|
"--accordion-padding-size-icon-md": "16px",
|
|
97
|
-
"--accordion-padding-size-max-height-lg": "
|
|
98
|
-
"--accordion-padding-size-max-height-md": "
|
|
97
|
+
"--accordion-padding-size-max-height-lg": "32px",
|
|
98
|
+
"--accordion-padding-size-max-height-md": "24px",
|
|
99
99
|
"--accordion-subtitle-color-text-default": "#212121",
|
|
100
100
|
"--accordion-title-color-background": "rgba(255, 255, 255, 0)",
|
|
101
101
|
"--accordion-title-color-icon-default": "#000000",
|
|
@@ -144,7 +144,7 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
144
144
|
"--alert-padding-inline-lg": "32px",
|
|
145
145
|
"--alert-padding-inline-md": "16px",
|
|
146
146
|
"--alert-size-icon": "24px",
|
|
147
|
-
"--avatar-border-radius": "
|
|
147
|
+
"--avatar-border-radius": "calc(infinity * 1px)",
|
|
148
148
|
"--avatar-color-background-initials-blue": "#55c3e9",
|
|
149
149
|
"--avatar-color-background-initials-green": "#bade94",
|
|
150
150
|
"--avatar-color-background-initials-orange": "#ff9868",
|
|
@@ -165,7 +165,7 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
165
165
|
"--avatar-size-xs": "24px",
|
|
166
166
|
"--badge-border-radius-lg": "8px",
|
|
167
167
|
"--badge-border-radius-md": "4px",
|
|
168
|
-
"--badge-border-radius-sm": "
|
|
168
|
+
"--badge-border-radius-sm": "calc(infinity * 1px)",
|
|
169
169
|
"--badge-color-background-blue": "#27a5d0",
|
|
170
170
|
"--badge-color-background-brand": "#ffcd00",
|
|
171
171
|
"--badge-color-background-neutral": "#000000",
|
|
@@ -367,9 +367,30 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
367
367
|
"--button-size-icon-lg": "24px",
|
|
368
368
|
"--button-size-icon-md": "16px",
|
|
369
369
|
"--button-size-icon-sm": "16px",
|
|
370
|
-
"--button-size-max-height-lg": "
|
|
371
|
-
"--button-size-max-height-md": "
|
|
372
|
-
"--button-size-max-height-sm": "
|
|
370
|
+
"--button-size-max-height-lg": "42px",
|
|
371
|
+
"--button-size-max-height-md": "32px",
|
|
372
|
+
"--button-size-max-height-sm": "24px",
|
|
373
|
+
"--calendar-border-radius-cell": "8px",
|
|
374
|
+
"--calendar-border-radius-container": "12px",
|
|
375
|
+
"--calendar-border-width": "1px",
|
|
376
|
+
"--calendar-cell-height": "32px",
|
|
377
|
+
"--calendar-cell-width": "36px",
|
|
378
|
+
"--calendar-color-background-default": "#ffffff",
|
|
379
|
+
"--calendar-color-background-disabled": "#f3f3f3",
|
|
380
|
+
"--calendar-color-background-hover": "#fbf9f7",
|
|
381
|
+
"--calendar-color-background-range": "#fff1b2",
|
|
382
|
+
"--calendar-color-background-selected": "#ffcd00",
|
|
383
|
+
"--calendar-color-border-default": "#f6f3ef",
|
|
384
|
+
"--calendar-color-dot-today": "#ffcd00",
|
|
385
|
+
"--calendar-color-text-disabled": "#444444",
|
|
386
|
+
"--calendar-color-text-primary": "#000000",
|
|
387
|
+
"--calendar-color-text-secondary": "#585858",
|
|
388
|
+
"--calendar-color-text-selected": "#000000",
|
|
389
|
+
"--calendar-color-text-today": "#423500",
|
|
390
|
+
"--calendar-gap-row": "0",
|
|
391
|
+
"--calendar-gap-section": "8px",
|
|
392
|
+
"--calendar-padding-container": "12px",
|
|
393
|
+
"--calendar-weekday-cell-height": "28px",
|
|
373
394
|
"--card-action-dismiss-icon-default": "#bdbdbd",
|
|
374
395
|
"--card-action-dismiss-icon-hover": "#000000",
|
|
375
396
|
"--card-action-dismiss-padding-block-start-lg": "16px",
|
|
@@ -562,6 +583,7 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
562
583
|
"--color-border-neutral-subtle": "#bdbdbd",
|
|
563
584
|
"--color-border-neutral-subtlest": "#dedede",
|
|
564
585
|
"--color-border-neutral-tertiary": "#444444",
|
|
586
|
+
"--color-border-neutral-transparent-minimal": "rgba(0, 0, 0, 0.03)",
|
|
565
587
|
"--color-border-success-minimal": "#e7fbd3",
|
|
566
588
|
"--color-border-success-primary": "#bade94",
|
|
567
589
|
"--color-border-success-secondary": "#cfebb0",
|
|
@@ -1015,9 +1037,9 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1015
1037
|
"--input-color-text-disabled": "#605b55",
|
|
1016
1038
|
"--input-color-text-placeholder": "#989898",
|
|
1017
1039
|
"--input-gap-content": "8px",
|
|
1018
|
-
"--input-max-height-lg": "
|
|
1019
|
-
"--input-max-height-md": "
|
|
1020
|
-
"--input-max-height-sm": "
|
|
1040
|
+
"--input-max-height-lg": "42px",
|
|
1041
|
+
"--input-max-height-md": "32px",
|
|
1042
|
+
"--input-max-height-sm": "24px",
|
|
1021
1043
|
"--input-padding-block-lg": "12px",
|
|
1022
1044
|
"--input-padding-block-md": "8px",
|
|
1023
1045
|
"--input-padding-block-sm": "4px",
|
|
@@ -1103,7 +1125,6 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1103
1125
|
"--modal-size-width-lg": "800px",
|
|
1104
1126
|
"--modal-size-width-md": "600px",
|
|
1105
1127
|
"--modal-size-width-sm": "450px",
|
|
1106
|
-
"--number": "8px",
|
|
1107
1128
|
"--pagination-border-radius": "8px",
|
|
1108
1129
|
"--pagination-border-width-checked": "2px",
|
|
1109
1130
|
"--pagination-border-width-unchecked": "1px",
|
|
@@ -1165,14 +1186,7 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1165
1186
|
"--pattern-grid-color-stroke-default": "rgba(0, 0, 0, 0.03)",
|
|
1166
1187
|
"--pattern-grid-size": "16px",
|
|
1167
1188
|
"--pattern-grid-stroke": "1px",
|
|
1168
|
-
"--
|
|
1169
|
-
"--progress-bar-color-text-value": "#000000",
|
|
1170
|
-
"--progress-bar-loading-color-background-bar": "#fff1b2",
|
|
1171
|
-
"--progress-bar-loading-color-background-progress": "#e5b800",
|
|
1172
|
-
"--progressbar-gap": "48px",
|
|
1173
|
-
"--progressbar1-color-background-bar": "#fff1b2",
|
|
1174
|
-
"--progressbar1-color-background-progression": "#e5b800",
|
|
1175
|
-
"--radio-border-radius": "9999px",
|
|
1189
|
+
"--radio-border-radius": "calc(infinity * 1px)",
|
|
1176
1190
|
"--radio-border-width-checked": "2px",
|
|
1177
1191
|
"--radio-border-width-focused": "2px",
|
|
1178
1192
|
"--radio-border-width-unchecked": "1px",
|
|
@@ -1187,7 +1201,7 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1187
1201
|
"--radio-color-border-unchecked-default": "#dedede",
|
|
1188
1202
|
"--radio-color-border-unchecked-disabled": "#d2cbc3",
|
|
1189
1203
|
"--radio-color-border-unchecked-hover": "#bdbdbd",
|
|
1190
|
-
"--radio-indicator-border-radius": "
|
|
1204
|
+
"--radio-indicator-border-radius": "calc(infinity * 1px)",
|
|
1191
1205
|
"--radio-indicator-color-background-default": "#ffcd00",
|
|
1192
1206
|
"--radio-indicator-color-background-disabled": "#d2cbc3",
|
|
1193
1207
|
"--radio-indicator-color-background-hover": "#ffe166",
|
|
@@ -1210,8 +1224,8 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1210
1224
|
"--size-icon-sm": "0.75rem",
|
|
1211
1225
|
"--size-icon-xl": "2rem",
|
|
1212
1226
|
"--size-icon-xs": "0.5rem",
|
|
1213
|
-
"--slider-border-radius-bar": "
|
|
1214
|
-
"--slider-border-radius-thumb": "
|
|
1227
|
+
"--slider-border-radius-bar": "calc(infinity * 1px)",
|
|
1228
|
+
"--slider-border-radius-thumb": "calc(infinity * 1px)",
|
|
1215
1229
|
"--slider-border-width-bar": "1px",
|
|
1216
1230
|
"--slider-border-width-thumb": "2px",
|
|
1217
1231
|
"--slider-color-background-fill-default": "#f6f3ef",
|
|
@@ -1223,6 +1237,7 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1223
1237
|
"--slider-color-thumb-fill-disabled": "#eae4de",
|
|
1224
1238
|
"--slider-color-thumb-fill-hover": "#fff1b2",
|
|
1225
1239
|
"--slider-color-thumb-fill-pressed": "#ffcd00",
|
|
1240
|
+
"--slider-indicator-border-radius": "calc(infinity * 1px)",
|
|
1226
1241
|
"--spacing-12": "0.75rem",
|
|
1227
1242
|
"--spacing-16": "1rem",
|
|
1228
1243
|
"--spacing-192": "12rem",
|
|
@@ -1369,9 +1384,9 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1369
1384
|
"--swiper-padding-block-md": "12px",
|
|
1370
1385
|
"--swiper-padding-inline-lg": "16px",
|
|
1371
1386
|
"--swiper-size-icon": "16px",
|
|
1372
|
-
"--swiper-size-max-height": "
|
|
1373
|
-
"--swiper-size-max-width": "
|
|
1374
|
-
"--swiper-size-min-height": "
|
|
1387
|
+
"--swiper-size-max-height": "42px",
|
|
1388
|
+
"--swiper-size-max-width": "42px",
|
|
1389
|
+
"--swiper-size-min-height": "42px",
|
|
1375
1390
|
"--tab-border-radius": "8px",
|
|
1376
1391
|
"--tab-border-width-checked": "2px",
|
|
1377
1392
|
"--tab-border-width-unchecked": "1px",
|
|
@@ -1384,12 +1399,19 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1384
1399
|
"--tab-color-border-checked-default": "#ffcd00",
|
|
1385
1400
|
"--tab-color-border-checked-hover": "#e5b800",
|
|
1386
1401
|
"--tab-color-border-checked-pressed": "#e5b800",
|
|
1402
|
+
"--tab-color-border-dashed-default": "#eae4de",
|
|
1403
|
+
"--tab-color-border-dashed-disabled": "#d2cbc3",
|
|
1404
|
+
"--tab-color-border-dashed-hover": "#d2cbc3",
|
|
1405
|
+
"--tab-color-border-dashed-pressed": "#d2cbc3",
|
|
1387
1406
|
"--tab-color-border-unchecked-default": "#f6f3ef",
|
|
1388
1407
|
"--tab-color-border-unchecked-hover": "#eae4de",
|
|
1389
1408
|
"--tab-color-border-unchecked-pressed": "#eae4de",
|
|
1390
1409
|
"--tab-color-text-checked-default": "#000000",
|
|
1391
1410
|
"--tab-color-text-checked-hover": "#423500",
|
|
1392
1411
|
"--tab-color-text-checked-pressed": "#423500",
|
|
1412
|
+
"--tab-color-text-dashed-default": "#585858",
|
|
1413
|
+
"--tab-color-text-dashed-hover": "#585858",
|
|
1414
|
+
"--tab-color-text-dashed-pressed": "#585858",
|
|
1393
1415
|
"--tab-color-text-unchecked-default": "#000000",
|
|
1394
1416
|
"--tab-color-text-unchecked-hover": "#212121",
|
|
1395
1417
|
"--tab-color-text-unchecked-pressed": "#000000",
|
|
@@ -1432,6 +1454,7 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1432
1454
|
"--tag-border-radius": "8px",
|
|
1433
1455
|
"--tag-border-width-ai": "1px",
|
|
1434
1456
|
"--tag-border-width-default": "2px",
|
|
1457
|
+
"--tag-border-width-root": "2px",
|
|
1435
1458
|
"--tag-color-background-blue-ai-default": "#bbeaff",
|
|
1436
1459
|
"--tag-color-background-blue-ai-disabled": "#e0f5ff",
|
|
1437
1460
|
"--tag-color-background-blue-ai-hover": "#9bdef7",
|
|
@@ -1686,6 +1709,7 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1686
1709
|
"--tag-color-text-violet-default": "#26194d",
|
|
1687
1710
|
"--tag-color-text-violet-disabled": "#8068c6",
|
|
1688
1711
|
"--tag-color-text-violet-hover": "#26194d",
|
|
1712
|
+
"--tag-color-text-warm-dark-default": "#1e1c1a",
|
|
1689
1713
|
"--tag-color-text-warm-default": "#1e1c1a",
|
|
1690
1714
|
"--tag-color-text-warm-disabled": "#605b55",
|
|
1691
1715
|
"--tag-color-text-warm-hover": "#1e1c1a",
|
|
@@ -1695,8 +1719,8 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1695
1719
|
"--tag-padding-inline-lg": "12px",
|
|
1696
1720
|
"--tag-padding-inline-md": "8px",
|
|
1697
1721
|
"--tag-size-icon": "16px",
|
|
1698
|
-
"--tag-size-max-height-lg": "
|
|
1699
|
-
"--tag-size-max-height-md": "
|
|
1722
|
+
"--tag-size-max-height-lg": "32px",
|
|
1723
|
+
"--tag-size-max-height-md": "24px",
|
|
1700
1724
|
"--thickness-0-5": "0.5px",
|
|
1701
1725
|
"--thickness-1": "1px",
|
|
1702
1726
|
"--thickness-2": "2px",
|
|
@@ -1734,7 +1758,7 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1734
1758
|
"--toggle-thumb-size-lg": "20px",
|
|
1735
1759
|
"--toggle-thumb-size-md": "16px",
|
|
1736
1760
|
"--toggle-thumb-size-sm": "12px",
|
|
1737
|
-
"--toggle-track-border-radius": "
|
|
1761
|
+
"--toggle-track-border-radius": "calc(infinity * 1px)",
|
|
1738
1762
|
"--toggle-track-border-width-focused": "2px",
|
|
1739
1763
|
"--toggle-track-color-background-checked-default": "#ffcd00",
|
|
1740
1764
|
"--toggle-track-color-background-checked-hover": "#ffe166",
|
|
@@ -1823,17 +1847,21 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1823
1847
|
"--window-header-tab-color-text-active": "#423500",
|
|
1824
1848
|
"--window-header-tab-color-text-default": "#444444",
|
|
1825
1849
|
"--window-header-tab-color-text-hover": "#423500",
|
|
1826
|
-
"--wysiwyg-
|
|
1850
|
+
"--wysiwyg-border-width-divider": "1px",
|
|
1851
|
+
"--wysiwyg-color-background-divider": "#f3f3f3",
|
|
1852
|
+
"--wysiwyg-color-background-root": "#ffffff",
|
|
1827
1853
|
"--wysiwyg-color-border": "#f3f3f3",
|
|
1828
1854
|
"--wysiwyg-color-select-background-default": "#ffffff",
|
|
1829
1855
|
"--wysiwyg-color-select-background-hover": "#ffffff",
|
|
1830
1856
|
"--wysiwyg-color-select-background-pressed": "#f3f3f3",
|
|
1831
1857
|
"--wysiwyg-color-select-background-selected": "#ffe166",
|
|
1832
|
-
"--wysiwyg-color-select-border-default": "#
|
|
1833
|
-
"--wysiwyg-color-select-border-hover": "#
|
|
1834
|
-
"--wysiwyg-color-select-border-pressed": "#
|
|
1858
|
+
"--wysiwyg-color-select-border-default": "#ffffff",
|
|
1859
|
+
"--wysiwyg-color-select-border-hover": "#f3f3f3",
|
|
1860
|
+
"--wysiwyg-color-select-border-pressed": "#f3f3f3",
|
|
1835
1861
|
"--wysiwyg-color-select-border-selected": "#ffcd00",
|
|
1836
1862
|
"--wysiwyg-color-select-icon-default": "#000000",
|
|
1863
|
+
"--wysiwyg-gap-categories": "8px",
|
|
1864
|
+
"--wysiwyg-gap-content": "12px",
|
|
1837
1865
|
"--wysiwyg-main-border-radius": "4px",
|
|
1838
1866
|
"--wysiwyg-main-border-stroke": "1px",
|
|
1839
1867
|
"--wysiwyg-main-horizontal-gap-large": "8px",
|
|
@@ -1841,6 +1869,8 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1841
1869
|
"--wysiwyg-main-horizontal-padding": "8px",
|
|
1842
1870
|
"--wysiwyg-main-vertical-gap": "8px",
|
|
1843
1871
|
"--wysiwyg-main-vertical-padding": "8px",
|
|
1872
|
+
"--wysiwyg-padding-block": "8px",
|
|
1873
|
+
"--wysiwyg-padding-inline": "12px",
|
|
1844
1874
|
"--wysiwyg-select-border-radius": "8px",
|
|
1845
1875
|
"--wysiwyg-select-border-stroke": "1px",
|
|
1846
1876
|
"--wysiwyg-select-gap": "4px",
|
|
@@ -1850,6 +1880,7 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1850
1880
|
"--wysiwyg-select-icon": "16px",
|
|
1851
1881
|
"--wysiwyg-select-vertical-padding": "8px",
|
|
1852
1882
|
"--wysiwyg-select-width-max": "32px",
|
|
1883
|
+
"--wysiwyg-size-icon": "24px",
|
|
1853
1884
|
"--*": "initial",
|
|
1854
1885
|
"--spacing": "0.0625rem",
|
|
1855
1886
|
"--spacing-0": "0",
|
|
@@ -1876,8 +1907,8 @@ const wo = /* @__PURE__ */ fo(ho), yo = {
|
|
|
1876
1907
|
}, vo = Object.entries(yo).reduce(
|
|
1877
1908
|
(r, [n, i]) => {
|
|
1878
1909
|
if (n.startsWith("--breakpoint-")) {
|
|
1879
|
-
const
|
|
1880
|
-
r[
|
|
1910
|
+
const c = n.replace("--breakpoint-", "");
|
|
1911
|
+
r[c] = i;
|
|
1881
1912
|
}
|
|
1882
1913
|
return r;
|
|
1883
1914
|
},
|
|
@@ -1888,18 +1919,18 @@ function zo() {
|
|
|
1888
1919
|
}
|
|
1889
1920
|
const So = typeof window > "u" ? j : uo;
|
|
1890
1921
|
function _o() {
|
|
1891
|
-
const [r, n] = A({ height: void 0, width: void 0 }), i = ({ height:
|
|
1922
|
+
const [r, n] = A({ height: void 0, width: void 0 }), i = ({ height: c, width: a }) => {
|
|
1892
1923
|
let b;
|
|
1893
1924
|
clearTimeout(b), b = setTimeout(() => {
|
|
1894
|
-
n({ height:
|
|
1925
|
+
n({ height: c, width: a });
|
|
1895
1926
|
}, 300);
|
|
1896
1927
|
};
|
|
1897
1928
|
return So(() => {
|
|
1898
|
-
const
|
|
1929
|
+
const c = new ResizeObserver(([a]) => {
|
|
1899
1930
|
const { blockSize: b, inlineSize: e } = a.contentBoxSize[0];
|
|
1900
1931
|
i({ height: b, width: e });
|
|
1901
1932
|
});
|
|
1902
|
-
return
|
|
1933
|
+
return c.observe(document.documentElement), () => c.disconnect();
|
|
1903
1934
|
}, []), r;
|
|
1904
1935
|
}
|
|
1905
1936
|
const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77", U = {
|
|
@@ -1920,12 +1951,12 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
1920
1951
|
children: r,
|
|
1921
1952
|
className: n,
|
|
1922
1953
|
placement: i = "side",
|
|
1923
|
-
size:
|
|
1954
|
+
size: c = "md",
|
|
1924
1955
|
variant: a,
|
|
1925
1956
|
...b
|
|
1926
1957
|
}) => {
|
|
1927
1958
|
const {
|
|
1928
|
-
navigation: { desktop: e, goNext:
|
|
1959
|
+
navigation: { desktop: e, goNext: t, isNextDisabled: m, mobile: d }
|
|
1929
1960
|
} = eo();
|
|
1930
1961
|
return /* @__PURE__ */ W(
|
|
1931
1962
|
io,
|
|
@@ -1940,8 +1971,8 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
1940
1971
|
n
|
|
1941
1972
|
),
|
|
1942
1973
|
disabled: m,
|
|
1943
|
-
onClick:
|
|
1944
|
-
size:
|
|
1974
|
+
onClick: t,
|
|
1975
|
+
size: c,
|
|
1945
1976
|
variant: a ?? "secondary",
|
|
1946
1977
|
...b,
|
|
1947
1978
|
children: r ?? /* @__PURE__ */ W(lo, { name: "angle-right-b" })
|
|
@@ -1951,12 +1982,12 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
1951
1982
|
children: r,
|
|
1952
1983
|
className: n,
|
|
1953
1984
|
placement: i = "side",
|
|
1954
|
-
size:
|
|
1985
|
+
size: c = "md",
|
|
1955
1986
|
variant: a,
|
|
1956
1987
|
...b
|
|
1957
1988
|
}) => {
|
|
1958
1989
|
const {
|
|
1959
|
-
navigation: { desktop: e, goPrev:
|
|
1990
|
+
navigation: { desktop: e, goPrev: t, isPrevDisabled: m, mobile: d }
|
|
1960
1991
|
} = eo();
|
|
1961
1992
|
return /* @__PURE__ */ W(
|
|
1962
1993
|
io,
|
|
@@ -1971,8 +2002,8 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
1971
2002
|
n
|
|
1972
2003
|
),
|
|
1973
2004
|
disabled: m,
|
|
1974
|
-
onClick:
|
|
1975
|
-
size:
|
|
2005
|
+
onClick: t,
|
|
2006
|
+
size: c,
|
|
1976
2007
|
variant: a ?? "secondary",
|
|
1977
2008
|
...b,
|
|
1978
2009
|
children: r ?? /* @__PURE__ */ W(lo, { name: "angle-left-b" })
|
|
@@ -1983,40 +2014,40 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
1983
2014
|
j(() => {
|
|
1984
2015
|
i.current = r;
|
|
1985
2016
|
}, [r]), j(() => {
|
|
1986
|
-
function
|
|
2017
|
+
function c() {
|
|
1987
2018
|
i.current();
|
|
1988
2019
|
}
|
|
1989
2020
|
if (n !== null) {
|
|
1990
|
-
const a = setInterval(
|
|
2021
|
+
const a = setInterval(c, n);
|
|
1991
2022
|
return () => clearInterval(a);
|
|
1992
2023
|
}
|
|
1993
2024
|
}, [n]);
|
|
1994
2025
|
}, H = (r, n) => {
|
|
1995
2026
|
if (n === 0)
|
|
1996
2027
|
return `${100 / r}%`;
|
|
1997
|
-
const
|
|
1998
|
-
return `calc(${100 / r}% - ${
|
|
2028
|
+
const c = n * (r === 1 ? 4 : 2) / 16;
|
|
2029
|
+
return `calc(${100 / r}% - ${c}rem)`;
|
|
1999
2030
|
}, No = K(U), Wo = ({ children: r, className: n }) => {
|
|
2000
2031
|
const {
|
|
2001
2032
|
slides: {
|
|
2002
2033
|
currentPage: i,
|
|
2003
|
-
currentSlidesPerView:
|
|
2034
|
+
currentSlidesPerView: c,
|
|
2004
2035
|
expandOnLargeScreens: a,
|
|
2005
2036
|
gap: b,
|
|
2006
2037
|
handleScroll: e,
|
|
2007
|
-
id:
|
|
2038
|
+
id: t,
|
|
2008
2039
|
isLastPage: m,
|
|
2009
2040
|
length: d,
|
|
2010
|
-
perView:
|
|
2041
|
+
perView: f,
|
|
2011
2042
|
ref: y,
|
|
2012
2043
|
setLength: E
|
|
2013
2044
|
}
|
|
2014
|
-
} = eo(), I =
|
|
2045
|
+
} = eo(), I = to.toArray(r);
|
|
2015
2046
|
j(() => {
|
|
2016
2047
|
E(I.length);
|
|
2017
2048
|
}, [I.length, E]);
|
|
2018
|
-
const $ =
|
|
2019
|
-
const w = `${
|
|
2049
|
+
const $ = to.map(I, (h, C) => {
|
|
2050
|
+
const w = `${t}-${C}`, _ = C + 1, M = Math.ceil(_ / c) - 1, N = m ? d - _ >= c : M !== i;
|
|
2020
2051
|
return typeof h == "object" && h && "props" in h ? po(h, {
|
|
2021
2052
|
...h.props,
|
|
2022
2053
|
"aria-hidden": N,
|
|
@@ -2031,22 +2062,22 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
2031
2062
|
{
|
|
2032
2063
|
className: No(
|
|
2033
2064
|
"container",
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2065
|
+
f.mobile && "container-mobile",
|
|
2066
|
+
f.desktop && "container-desktop",
|
|
2067
|
+
f.tablet && "container-tablet",
|
|
2068
|
+
f.desktop && a && "container-full-width",
|
|
2038
2069
|
n
|
|
2039
2070
|
),
|
|
2040
2071
|
onScroll: e,
|
|
2041
2072
|
ref: y,
|
|
2042
2073
|
style: {
|
|
2043
|
-
"--slideDesktop":
|
|
2044
|
-
"--slideMobile":
|
|
2045
|
-
"--slideTablet":
|
|
2046
|
-
"--slideWidthDesktop": H(
|
|
2047
|
-
"--slideWidthMobile": H(
|
|
2048
|
-
"--slideWidthTablet": H(
|
|
2049
|
-
"--slideWithDesktopFullWidth": H(
|
|
2074
|
+
"--slideDesktop": f.desktop,
|
|
2075
|
+
"--slideMobile": f.mobile,
|
|
2076
|
+
"--slideTablet": f.tablet,
|
|
2077
|
+
"--slideWidthDesktop": H(f.desktop, b),
|
|
2078
|
+
"--slideWidthMobile": H(f.mobile, b),
|
|
2079
|
+
"--slideWidthTablet": H(f.tablet, b),
|
|
2080
|
+
"--slideWithDesktopFullWidth": H(f.desktop + 2, b),
|
|
2050
2081
|
"--spaceBetween": `${b / 16}rem`
|
|
2051
2082
|
},
|
|
2052
2083
|
children: $
|
|
@@ -2085,7 +2116,7 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
2085
2116
|
}
|
|
2086
2117
|
}, Ao = (r = x) => {
|
|
2087
2118
|
var y;
|
|
2088
|
-
const [n, i] = A(0),
|
|
2119
|
+
const [n, i] = A(0), c = {
|
|
2089
2120
|
autoplay: { ...x.autoplay, ...r.autoplay },
|
|
2090
2121
|
navigation: { ...x.navigation, ...r.navigation },
|
|
2091
2122
|
slides: {
|
|
@@ -2099,20 +2130,20 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
2099
2130
|
}, {
|
|
2100
2131
|
autoplay: a,
|
|
2101
2132
|
navigation: b,
|
|
2102
|
-
slides: { expandOnLargeScreens: e, perView:
|
|
2103
|
-
} =
|
|
2133
|
+
slides: { expandOnLargeScreens: e, perView: t }
|
|
2134
|
+
} = c, { width: m } = _o(), d = zo(), f = oo(() => m <= d.md ? t.mobile : m <= d.lg ? t.tablet : m >= d["4xl"] && e ? t.desktop + 2 : t.desktop, [m, d, e, t]);
|
|
2104
2135
|
return {
|
|
2105
2136
|
autoplay: a,
|
|
2106
2137
|
navigation: b,
|
|
2107
2138
|
slides: {
|
|
2108
|
-
alignment:
|
|
2139
|
+
alignment: c.slides.alignment,
|
|
2109
2140
|
currentPage: n,
|
|
2110
|
-
currentSlidesPerView:
|
|
2111
|
-
expandOnLargeScreens:
|
|
2112
|
-
gap:
|
|
2113
|
-
id:
|
|
2114
|
-
initialIndex:
|
|
2115
|
-
perView:
|
|
2141
|
+
currentSlidesPerView: f,
|
|
2142
|
+
expandOnLargeScreens: c.slides.expandOnLargeScreens,
|
|
2143
|
+
gap: c.slides.gap,
|
|
2144
|
+
id: c.slides.id,
|
|
2145
|
+
initialIndex: c.slides.initialIndex,
|
|
2146
|
+
perView: t,
|
|
2116
2147
|
setCurrentPage: i
|
|
2117
2148
|
}
|
|
2118
2149
|
};
|
|
@@ -2120,9 +2151,9 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
2120
2151
|
children: r,
|
|
2121
2152
|
className: n,
|
|
2122
2153
|
store: i = $o,
|
|
2123
|
-
...
|
|
2154
|
+
...c
|
|
2124
2155
|
}) => {
|
|
2125
|
-
const { autoplay: a, navigation: b, slides: e } = i, { currentPage:
|
|
2156
|
+
const { autoplay: a, navigation: b, slides: e } = i, { currentPage: t, setCurrentPage: m } = e, d = Z(), f = Z(!1), [y, E] = A(0), [I, $] = A(!1), [h, C] = A(!1), w = Math.ceil(y / e.currentSlidesPerView) || 1, _ = F(() => {
|
|
2126
2157
|
const l = d == null ? void 0 : d.current;
|
|
2127
2158
|
if (l && !a.enabled) {
|
|
2128
2159
|
const { offsetWidth: p, scrollLeft: u, scrollWidth: L } = l, z = !(u > e.gap), S = !(L - (u + p) > e.gap);
|
|
@@ -2134,9 +2165,9 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
2134
2165
|
const l = d == null ? void 0 : d.current;
|
|
2135
2166
|
if (l) {
|
|
2136
2167
|
const { children: L, offsetWidth: z, scrollLeft: S, scrollWidth: V } = l, J = (u = (p = L == null ? void 0 : L[0]) == null ? void 0 : p.getBoundingClientRect()) == null ? void 0 : u.width, D = !(V - (S + z) > e.gap) ? w - 1 : Math.round(S / ((J + e.gap) * e.currentSlidesPerView));
|
|
2137
|
-
D !==
|
|
2168
|
+
D !== t && m(D);
|
|
2138
2169
|
}
|
|
2139
|
-
}, [w,
|
|
2170
|
+
}, [w, t, e.currentSlidesPerView, d, m, e.gap]), N = oo(
|
|
2140
2171
|
() => wo(() => {
|
|
2141
2172
|
_(), M();
|
|
2142
2173
|
}, 100),
|
|
@@ -2153,11 +2184,11 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
2153
2184
|
});
|
|
2154
2185
|
},
|
|
2155
2186
|
[e.currentSlidesPerView, e.gap, d]
|
|
2156
|
-
),
|
|
2157
|
-
a.enabled && a.loop && k ? o(0) : o(
|
|
2158
|
-
}, [
|
|
2159
|
-
|
|
2160
|
-
}, [w,
|
|
2187
|
+
), s = t === 0, k = t === w - 1, v = F(() => {
|
|
2188
|
+
a.enabled && a.loop && k ? o(0) : o(t + 1);
|
|
2189
|
+
}, [t, o, k, a.enabled, a.loop]), P = F(() => {
|
|
2190
|
+
s && a.enabled && a.loop ? o(w - 1) : o(t - 1);
|
|
2191
|
+
}, [w, t, o, s, a.enabled, a.loop]);
|
|
2161
2192
|
Co(
|
|
2162
2193
|
() => {
|
|
2163
2194
|
a.enabled && v();
|
|
@@ -2177,12 +2208,12 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
2177
2208
|
Math.ceil(e.initialIndex / e.currentSlidesPerView) - 1
|
|
2178
2209
|
);
|
|
2179
2210
|
j(() => {
|
|
2180
|
-
y > 0 && !
|
|
2211
|
+
y > 0 && !f.current && (o(B, !0), f.current = !0);
|
|
2181
2212
|
}, [y]), j(() => {
|
|
2182
2213
|
_();
|
|
2183
2214
|
}, [_, r]), j(() => {
|
|
2184
|
-
|
|
2185
|
-
}, [
|
|
2215
|
+
f.current && o(t);
|
|
2216
|
+
}, [t, o]);
|
|
2186
2217
|
const O = oo(
|
|
2187
2218
|
() => ({
|
|
2188
2219
|
navigation: {
|
|
@@ -2194,7 +2225,7 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
2194
2225
|
},
|
|
2195
2226
|
slides: {
|
|
2196
2227
|
alignment: e.alignment,
|
|
2197
|
-
currentPage:
|
|
2228
|
+
currentPage: t,
|
|
2198
2229
|
currentSlidesPerView: e.currentSlidesPerView,
|
|
2199
2230
|
expandOnLargeScreens: e.expandOnLargeScreens,
|
|
2200
2231
|
gap: e.gap,
|
|
@@ -2214,14 +2245,14 @@ const Po = "_root_eam2c_3", Lo = "_container_eam2c_11", Io = "_arrow_eam2c_77",
|
|
|
2214
2245
|
h,
|
|
2215
2246
|
I,
|
|
2216
2247
|
b,
|
|
2217
|
-
|
|
2248
|
+
t,
|
|
2218
2249
|
N,
|
|
2219
2250
|
k,
|
|
2220
2251
|
y,
|
|
2221
2252
|
e
|
|
2222
2253
|
]
|
|
2223
2254
|
);
|
|
2224
|
-
return /* @__PURE__ */ W(bo.Provider, { value: O, children: /* @__PURE__ */ W("div", { className: Eo("root", n), ...
|
|
2255
|
+
return /* @__PURE__ */ W(bo.Provider, { value: O, children: /* @__PURE__ */ W("div", { className: Eo("root", n), ...c, children: r }) });
|
|
2225
2256
|
};
|
|
2226
2257
|
X.PrevButton = jo;
|
|
2227
2258
|
X.NextButton = Vo;
|