stp-ui-kit 0.0.1
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 +93 -0
- package/dist/App.d.ts +1 -0
- package/dist/banners/Sat.svg +3 -0
- package/dist/banners/SatFinished.svg +3 -0
- package/dist/components/Banner/Banner.d.ts +11 -0
- package/dist/components/Banner/Banner.stories.d.ts +6 -0
- package/dist/components/Banner/utils/utils.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +10 -0
- package/dist/components/Button/Button.stories.d.ts +11 -0
- package/dist/components/Collapse/Collapse.d.ts +12 -0
- package/dist/components/CourseCollapse/CourseCollapse.d.ts +13 -0
- package/dist/components/Empty/Empty.d.ts +26 -0
- package/dist/components/Empty/Empty.stories.d.ts +6 -0
- package/dist/components/Empty/index.d.ts +10 -0
- package/dist/components/FormItem/FormItem.d.ts +26 -0
- package/dist/components/FormItem/FormItemContext.d.ts +6 -0
- package/dist/components/IconButton/IconButton.d.ts +11 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +8 -0
- package/dist/components/Modal/Modal.d.ts +22 -0
- package/dist/components/NavigationItem/NavigationItem.d.ts +12 -0
- package/dist/components/PageHeader/PageHeader.d.ts +2 -0
- package/dist/components/ProgressLine/ProgressLine.d.ts +4 -0
- package/dist/components/SectionHeader/SectionHeader.d.ts +6 -0
- package/dist/components/TopBar/TopBar.d.ts +14 -0
- package/dist/components/Typography/Typography.d.ts +7 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/icons/ArrowLine.svg +3 -0
- package/dist/icons/ParentLine.svg +3 -0
- package/dist/icons/SideLine.svg +3 -0
- package/dist/icons/decorativeIcons/Alert.svg +11 -0
- package/dist/icons/decorativeIcons/Error.svg +11 -0
- package/dist/icons/decorativeIcons/Locked.svg +10 -0
- package/dist/icons/decorativeIcons/Success.svg +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/main.d.ts +0 -0
- package/dist/shared/i18n/config.d.ts +2 -0
- package/dist/shared/i18n/locales/en/index.d.ts +1 -0
- package/dist/shared/i18n/locales/index.d.ts +5 -0
- package/dist/shared/i18n/locales/kz/index.d.ts +1 -0
- package/dist/shared/i18n/locales/ru/index.d.ts +1 -0
- package/dist/shared/i18n/locales/uz/index.d.ts +1 -0
- package/dist/shared/i18n/types.d.ts +2 -0
- package/dist/stp-ui-kit.cjs.js +71 -0
- package/dist/stp-ui-kit.es.js +961 -0
- package/dist/style.css +1 -0
- package/dist/tokens.d.ts +515 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/vite.svg +1 -0
- package/package.json +87 -0
- package/src/styles/_variables.scss +431 -0
|
@@ -0,0 +1,961 @@
|
|
|
1
|
+
import De, { useState as le, useEffect as Ie, forwardRef as ve, createElement as pe, createContext as Pe, useContext as Re } from "react";
|
|
2
|
+
var ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
+
function ke(t) {
|
|
4
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
|
+
}
|
|
6
|
+
var ge = { exports: {} }, ee = {};
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react-jsx-runtime.production.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
var $e;
|
|
17
|
+
function Le() {
|
|
18
|
+
if ($e) return ee;
|
|
19
|
+
$e = 1;
|
|
20
|
+
var t = Symbol.for("react.transitional.element"), i = Symbol.for("react.fragment");
|
|
21
|
+
function s(d, u, l) {
|
|
22
|
+
var p = null;
|
|
23
|
+
if (l !== void 0 && (p = "" + l), u.key !== void 0 && (p = "" + u.key), "key" in u) {
|
|
24
|
+
l = {};
|
|
25
|
+
for (var g in u)
|
|
26
|
+
g !== "key" && (l[g] = u[g]);
|
|
27
|
+
} else l = u;
|
|
28
|
+
return u = l.ref, {
|
|
29
|
+
$$typeof: t,
|
|
30
|
+
type: d,
|
|
31
|
+
key: p,
|
|
32
|
+
ref: u !== void 0 ? u : null,
|
|
33
|
+
props: l
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return ee.Fragment = i, ee.jsx = s, ee.jsxs = s, ee;
|
|
37
|
+
}
|
|
38
|
+
var te = {};
|
|
39
|
+
/**
|
|
40
|
+
* @license React
|
|
41
|
+
* react-jsx-runtime.development.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/
|
|
48
|
+
var be;
|
|
49
|
+
function qe() {
|
|
50
|
+
return be || (be = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
|
+
function t(e) {
|
|
52
|
+
if (e == null) return null;
|
|
53
|
+
if (typeof e == "function")
|
|
54
|
+
return e.$$typeof === C ? null : e.displayName || e.name || null;
|
|
55
|
+
if (typeof e == "string") return e;
|
|
56
|
+
switch (e) {
|
|
57
|
+
case F:
|
|
58
|
+
return "Fragment";
|
|
59
|
+
case U:
|
|
60
|
+
return "Profiler";
|
|
61
|
+
case P:
|
|
62
|
+
return "StrictMode";
|
|
63
|
+
case W:
|
|
64
|
+
return "Suspense";
|
|
65
|
+
case q:
|
|
66
|
+
return "SuspenseList";
|
|
67
|
+
case J:
|
|
68
|
+
return "Activity";
|
|
69
|
+
}
|
|
70
|
+
if (typeof e == "object")
|
|
71
|
+
switch (typeof e.tag == "number" && console.error(
|
|
72
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
73
|
+
), e.$$typeof) {
|
|
74
|
+
case D:
|
|
75
|
+
return "Portal";
|
|
76
|
+
case Q:
|
|
77
|
+
return (e.displayName || "Context") + ".Provider";
|
|
78
|
+
case ue:
|
|
79
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
80
|
+
case _e:
|
|
81
|
+
var c = e.render;
|
|
82
|
+
return e = e.displayName, e || (e = c.displayName || c.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
83
|
+
case se:
|
|
84
|
+
return c = e.displayName || null, c !== null ? c : t(e.type) || "Memo";
|
|
85
|
+
case V:
|
|
86
|
+
c = e._payload, e = e._init;
|
|
87
|
+
try {
|
|
88
|
+
return t(e(c));
|
|
89
|
+
} catch {
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
function i(e) {
|
|
95
|
+
return "" + e;
|
|
96
|
+
}
|
|
97
|
+
function s(e) {
|
|
98
|
+
try {
|
|
99
|
+
i(e);
|
|
100
|
+
var c = !1;
|
|
101
|
+
} catch {
|
|
102
|
+
c = !0;
|
|
103
|
+
}
|
|
104
|
+
if (c) {
|
|
105
|
+
c = console;
|
|
106
|
+
var h = c.error, y = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
107
|
+
return h.call(
|
|
108
|
+
c,
|
|
109
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
110
|
+
y
|
|
111
|
+
), i(e);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function d(e) {
|
|
115
|
+
if (e === F) return "<>";
|
|
116
|
+
if (typeof e == "object" && e !== null && e.$$typeof === V)
|
|
117
|
+
return "<...>";
|
|
118
|
+
try {
|
|
119
|
+
var c = t(e);
|
|
120
|
+
return c ? "<" + c + ">" : "<...>";
|
|
121
|
+
} catch {
|
|
122
|
+
return "<...>";
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
function u() {
|
|
126
|
+
var e = w.A;
|
|
127
|
+
return e === null ? null : e.getOwner();
|
|
128
|
+
}
|
|
129
|
+
function l() {
|
|
130
|
+
return Error("react-stack-top-frame");
|
|
131
|
+
}
|
|
132
|
+
function p(e) {
|
|
133
|
+
if (B.call(e, "key")) {
|
|
134
|
+
var c = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
135
|
+
if (c && c.isReactWarning) return !1;
|
|
136
|
+
}
|
|
137
|
+
return e.key !== void 0;
|
|
138
|
+
}
|
|
139
|
+
function g(e, c) {
|
|
140
|
+
function h() {
|
|
141
|
+
o || (o = !0, console.error(
|
|
142
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
143
|
+
c
|
|
144
|
+
));
|
|
145
|
+
}
|
|
146
|
+
h.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
147
|
+
get: h,
|
|
148
|
+
configurable: !0
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function b() {
|
|
152
|
+
var e = t(this.type);
|
|
153
|
+
return n[e] || (n[e] = !0, console.error(
|
|
154
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
155
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
156
|
+
}
|
|
157
|
+
function v(e, c, h, y, x, $, R, I) {
|
|
158
|
+
return h = $.ref, e = {
|
|
159
|
+
$$typeof: S,
|
|
160
|
+
type: e,
|
|
161
|
+
key: c,
|
|
162
|
+
props: $,
|
|
163
|
+
_owner: x
|
|
164
|
+
}, (h !== void 0 ? h : null) !== null ? Object.defineProperty(e, "ref", {
|
|
165
|
+
enumerable: !1,
|
|
166
|
+
get: b
|
|
167
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
168
|
+
configurable: !1,
|
|
169
|
+
enumerable: !1,
|
|
170
|
+
writable: !0,
|
|
171
|
+
value: 0
|
|
172
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
173
|
+
configurable: !1,
|
|
174
|
+
enumerable: !1,
|
|
175
|
+
writable: !0,
|
|
176
|
+
value: null
|
|
177
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
178
|
+
configurable: !1,
|
|
179
|
+
enumerable: !1,
|
|
180
|
+
writable: !0,
|
|
181
|
+
value: R
|
|
182
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
183
|
+
configurable: !1,
|
|
184
|
+
enumerable: !1,
|
|
185
|
+
writable: !0,
|
|
186
|
+
value: I
|
|
187
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
188
|
+
}
|
|
189
|
+
function N(e, c, h, y, x, $, R, I) {
|
|
190
|
+
var j = c.children;
|
|
191
|
+
if (j !== void 0)
|
|
192
|
+
if (y)
|
|
193
|
+
if (ae(j)) {
|
|
194
|
+
for (y = 0; y < j.length; y++)
|
|
195
|
+
k(j[y]);
|
|
196
|
+
Object.freeze && Object.freeze(j);
|
|
197
|
+
} else
|
|
198
|
+
console.error(
|
|
199
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
|
+
);
|
|
201
|
+
else k(j);
|
|
202
|
+
if (B.call(c, "key")) {
|
|
203
|
+
j = t(e);
|
|
204
|
+
var E = Object.keys(c).filter(function(z) {
|
|
205
|
+
return z !== "key";
|
|
206
|
+
});
|
|
207
|
+
y = 0 < E.length ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}", m[j + y] || (E = 0 < E.length ? "{" + E.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
209
|
+
let props = %s;
|
|
210
|
+
<%s {...props} />
|
|
211
|
+
React keys must be passed directly to JSX without using spread:
|
|
212
|
+
let props = %s;
|
|
213
|
+
<%s key={someKey} {...props} />`,
|
|
214
|
+
y,
|
|
215
|
+
j,
|
|
216
|
+
E,
|
|
217
|
+
j
|
|
218
|
+
), m[j + y] = !0);
|
|
219
|
+
}
|
|
220
|
+
if (j = null, h !== void 0 && (s(h), j = "" + h), p(c) && (s(c.key), j = "" + c.key), "key" in c) {
|
|
221
|
+
h = {};
|
|
222
|
+
for (var O in c)
|
|
223
|
+
O !== "key" && (h[O] = c[O]);
|
|
224
|
+
} else h = c;
|
|
225
|
+
return j && g(
|
|
226
|
+
h,
|
|
227
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
228
|
+
), v(
|
|
229
|
+
e,
|
|
230
|
+
j,
|
|
231
|
+
$,
|
|
232
|
+
x,
|
|
233
|
+
u(),
|
|
234
|
+
h,
|
|
235
|
+
R,
|
|
236
|
+
I
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
function k(e) {
|
|
240
|
+
typeof e == "object" && e !== null && e.$$typeof === S && e._store && (e._store.validated = 1);
|
|
241
|
+
}
|
|
242
|
+
var A = De, S = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), F = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), ue = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), _e = Symbol.for("react.forward_ref"), W = Symbol.for("react.suspense"), q = Symbol.for("react.suspense_list"), se = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), J = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), w = A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, ae = Array.isArray, f = console.createTask ? console.createTask : function() {
|
|
243
|
+
return null;
|
|
244
|
+
};
|
|
245
|
+
A = {
|
|
246
|
+
"react-stack-bottom-frame": function(e) {
|
|
247
|
+
return e();
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
var o, n = {}, _ = A["react-stack-bottom-frame"].bind(
|
|
251
|
+
A,
|
|
252
|
+
l
|
|
253
|
+
)(), a = f(d(l)), m = {};
|
|
254
|
+
te.Fragment = F, te.jsx = function(e, c, h, y, x) {
|
|
255
|
+
var $ = 1e4 > w.recentlyCreatedOwnerStacks++;
|
|
256
|
+
return N(
|
|
257
|
+
e,
|
|
258
|
+
c,
|
|
259
|
+
h,
|
|
260
|
+
!1,
|
|
261
|
+
y,
|
|
262
|
+
x,
|
|
263
|
+
$ ? Error("react-stack-top-frame") : _,
|
|
264
|
+
$ ? f(d(e)) : a
|
|
265
|
+
);
|
|
266
|
+
}, te.jsxs = function(e, c, h, y, x) {
|
|
267
|
+
var $ = 1e4 > w.recentlyCreatedOwnerStacks++;
|
|
268
|
+
return N(
|
|
269
|
+
e,
|
|
270
|
+
c,
|
|
271
|
+
h,
|
|
272
|
+
!0,
|
|
273
|
+
y,
|
|
274
|
+
x,
|
|
275
|
+
$ ? Error("react-stack-top-frame") : _,
|
|
276
|
+
$ ? f(d(e)) : a
|
|
277
|
+
);
|
|
278
|
+
};
|
|
279
|
+
}()), te;
|
|
280
|
+
}
|
|
281
|
+
process.env.NODE_ENV === "production" ? ge.exports = Le() : ge.exports = qe();
|
|
282
|
+
var r = ge.exports, Ne = { exports: {} };
|
|
283
|
+
/*!
|
|
284
|
+
Copyright (c) 2018 Jed Watson.
|
|
285
|
+
Licensed under the MIT License (MIT), see
|
|
286
|
+
http://jedwatson.github.io/classnames
|
|
287
|
+
*/
|
|
288
|
+
(function(t) {
|
|
289
|
+
(function() {
|
|
290
|
+
var i = {}.hasOwnProperty;
|
|
291
|
+
function s() {
|
|
292
|
+
for (var l = "", p = 0; p < arguments.length; p++) {
|
|
293
|
+
var g = arguments[p];
|
|
294
|
+
g && (l = u(l, d(g)));
|
|
295
|
+
}
|
|
296
|
+
return l;
|
|
297
|
+
}
|
|
298
|
+
function d(l) {
|
|
299
|
+
if (typeof l == "string" || typeof l == "number")
|
|
300
|
+
return l;
|
|
301
|
+
if (typeof l != "object")
|
|
302
|
+
return "";
|
|
303
|
+
if (Array.isArray(l))
|
|
304
|
+
return s.apply(null, l);
|
|
305
|
+
if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]"))
|
|
306
|
+
return l.toString();
|
|
307
|
+
var p = "";
|
|
308
|
+
for (var g in l)
|
|
309
|
+
i.call(l, g) && l[g] && (p = u(p, g));
|
|
310
|
+
return p;
|
|
311
|
+
}
|
|
312
|
+
function u(l, p) {
|
|
313
|
+
return p ? l ? l + " " + p : l + p : l;
|
|
314
|
+
}
|
|
315
|
+
t.exports ? (s.default = s, t.exports = s) : window.classNames = s;
|
|
316
|
+
})();
|
|
317
|
+
})(Ne);
|
|
318
|
+
var Ye = Ne.exports;
|
|
319
|
+
const M = /* @__PURE__ */ ke(Ye), Fe = "_typography_18a99_29", je = {
|
|
320
|
+
"shadow-0": "_shadow-0_18a99_1",
|
|
321
|
+
"shadow-100": "_shadow-100_18a99_5",
|
|
322
|
+
"shadow-200": "_shadow-200_18a99_9",
|
|
323
|
+
"shadow-300": "_shadow-300_18a99_13",
|
|
324
|
+
"shadow-400": "_shadow-400_18a99_17",
|
|
325
|
+
"shadow-500": "_shadow-500_18a99_21",
|
|
326
|
+
"shadow-600": "_shadow-600_18a99_25",
|
|
327
|
+
typography: Fe,
|
|
328
|
+
"heading-xl": "_heading-xl_18a99_34",
|
|
329
|
+
"heading-lg": "_heading-lg_18a99_43",
|
|
330
|
+
"heading-md": "_heading-md_18a99_52",
|
|
331
|
+
"heading-sm": "_heading-sm_18a99_61",
|
|
332
|
+
"heading-xs": "_heading-xs_18a99_70",
|
|
333
|
+
"body-lg": "_body-lg_18a99_79",
|
|
334
|
+
"body-md": "_body-md_18a99_88",
|
|
335
|
+
"body-sm": "_body-sm_18a99_97"
|
|
336
|
+
}, T = ({ variant: t = "body-md", className: i = "", children: s }) => {
|
|
337
|
+
const d = je[t] || "";
|
|
338
|
+
return r.jsx("div", { className: M(je.typography, d, i), children: s });
|
|
339
|
+
}, He = "_container_cgftc_29", We = "_content_cgftc_40", Be = "_title_cgftc_57", Ue = "_timer_cgftc_68", Ve = "_timerCell_cgftc_80", Je = "_timerCount_cgftc_87", Ze = "_pattern_cgftc_102", Ge = "_button_cgftc_129", H = {
|
|
340
|
+
container: He,
|
|
341
|
+
content: We,
|
|
342
|
+
title: Be,
|
|
343
|
+
timer: Ue,
|
|
344
|
+
timerCell: Ve,
|
|
345
|
+
timerCount: Je,
|
|
346
|
+
pattern: Ze,
|
|
347
|
+
button: Ge
|
|
348
|
+
};
|
|
349
|
+
var Oe = { exports: {} };
|
|
350
|
+
(function(t, i) {
|
|
351
|
+
(function(s, d) {
|
|
352
|
+
t.exports = d();
|
|
353
|
+
})(ze, function() {
|
|
354
|
+
var s = 1e3, d = 6e4, u = 36e5, l = "millisecond", p = "second", g = "minute", b = "hour", v = "day", N = "week", k = "month", A = "quarter", S = "year", D = "date", F = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ue = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(f) {
|
|
355
|
+
var o = ["th", "st", "nd", "rd"], n = f % 100;
|
|
356
|
+
return "[" + f + (o[(n - 20) % 10] || o[n] || o[0]) + "]";
|
|
357
|
+
} }, Q = function(f, o, n) {
|
|
358
|
+
var _ = String(f);
|
|
359
|
+
return !_ || _.length >= o ? f : "" + Array(o + 1 - _.length).join(n) + f;
|
|
360
|
+
}, _e = { s: Q, z: function(f) {
|
|
361
|
+
var o = -f.utcOffset(), n = Math.abs(o), _ = Math.floor(n / 60), a = n % 60;
|
|
362
|
+
return (o <= 0 ? "+" : "-") + Q(_, 2, "0") + ":" + Q(a, 2, "0");
|
|
363
|
+
}, m: function f(o, n) {
|
|
364
|
+
if (o.date() < n.date()) return -f(n, o);
|
|
365
|
+
var _ = 12 * (n.year() - o.year()) + (n.month() - o.month()), a = o.clone().add(_, k), m = n - a < 0, e = o.clone().add(_ + (m ? -1 : 1), k);
|
|
366
|
+
return +(-(_ + (n - a) / (m ? a - e : e - a)) || 0);
|
|
367
|
+
}, a: function(f) {
|
|
368
|
+
return f < 0 ? Math.ceil(f) || 0 : Math.floor(f);
|
|
369
|
+
}, p: function(f) {
|
|
370
|
+
return { M: k, y: S, w: N, d: v, D, h: b, m: g, s: p, ms: l, Q: A }[f] || String(f || "").toLowerCase().replace(/s$/, "");
|
|
371
|
+
}, u: function(f) {
|
|
372
|
+
return f === void 0;
|
|
373
|
+
} }, W = "en", q = {};
|
|
374
|
+
q[W] = ue;
|
|
375
|
+
var se = "$isDayjsObject", V = function(f) {
|
|
376
|
+
return f instanceof B || !(!f || !f[se]);
|
|
377
|
+
}, J = function f(o, n, _) {
|
|
378
|
+
var a;
|
|
379
|
+
if (!o) return W;
|
|
380
|
+
if (typeof o == "string") {
|
|
381
|
+
var m = o.toLowerCase();
|
|
382
|
+
q[m] && (a = m), n && (q[m] = n, a = m);
|
|
383
|
+
var e = o.split("-");
|
|
384
|
+
if (!a && e.length > 1) return f(e[0]);
|
|
385
|
+
} else {
|
|
386
|
+
var c = o.name;
|
|
387
|
+
q[c] = o, a = c;
|
|
388
|
+
}
|
|
389
|
+
return !_ && a && (W = a), a || !_ && W;
|
|
390
|
+
}, C = function(f, o) {
|
|
391
|
+
if (V(f)) return f.clone();
|
|
392
|
+
var n = typeof o == "object" ? o : {};
|
|
393
|
+
return n.date = f, n.args = arguments, new B(n);
|
|
394
|
+
}, w = _e;
|
|
395
|
+
w.l = J, w.i = V, w.w = function(f, o) {
|
|
396
|
+
return C(f, { locale: o.$L, utc: o.$u, x: o.$x, $offset: o.$offset });
|
|
397
|
+
};
|
|
398
|
+
var B = function() {
|
|
399
|
+
function f(n) {
|
|
400
|
+
this.$L = J(n.locale, null, !0), this.parse(n), this.$x = this.$x || n.x || {}, this[se] = !0;
|
|
401
|
+
}
|
|
402
|
+
var o = f.prototype;
|
|
403
|
+
return o.parse = function(n) {
|
|
404
|
+
this.$d = function(_) {
|
|
405
|
+
var a = _.date, m = _.utc;
|
|
406
|
+
if (a === null) return /* @__PURE__ */ new Date(NaN);
|
|
407
|
+
if (w.u(a)) return /* @__PURE__ */ new Date();
|
|
408
|
+
if (a instanceof Date) return new Date(a);
|
|
409
|
+
if (typeof a == "string" && !/Z$/i.test(a)) {
|
|
410
|
+
var e = a.match(P);
|
|
411
|
+
if (e) {
|
|
412
|
+
var c = e[2] - 1 || 0, h = (e[7] || "0").substring(0, 3);
|
|
413
|
+
return m ? new Date(Date.UTC(e[1], c, e[3] || 1, e[4] || 0, e[5] || 0, e[6] || 0, h)) : new Date(e[1], c, e[3] || 1, e[4] || 0, e[5] || 0, e[6] || 0, h);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return new Date(a);
|
|
417
|
+
}(n), this.init();
|
|
418
|
+
}, o.init = function() {
|
|
419
|
+
var n = this.$d;
|
|
420
|
+
this.$y = n.getFullYear(), this.$M = n.getMonth(), this.$D = n.getDate(), this.$W = n.getDay(), this.$H = n.getHours(), this.$m = n.getMinutes(), this.$s = n.getSeconds(), this.$ms = n.getMilliseconds();
|
|
421
|
+
}, o.$utils = function() {
|
|
422
|
+
return w;
|
|
423
|
+
}, o.isValid = function() {
|
|
424
|
+
return this.$d.toString() !== F;
|
|
425
|
+
}, o.isSame = function(n, _) {
|
|
426
|
+
var a = C(n);
|
|
427
|
+
return this.startOf(_) <= a && a <= this.endOf(_);
|
|
428
|
+
}, o.isAfter = function(n, _) {
|
|
429
|
+
return C(n) < this.startOf(_);
|
|
430
|
+
}, o.isBefore = function(n, _) {
|
|
431
|
+
return this.endOf(_) < C(n);
|
|
432
|
+
}, o.$g = function(n, _, a) {
|
|
433
|
+
return w.u(n) ? this[_] : this.set(a, n);
|
|
434
|
+
}, o.unix = function() {
|
|
435
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
436
|
+
}, o.valueOf = function() {
|
|
437
|
+
return this.$d.getTime();
|
|
438
|
+
}, o.startOf = function(n, _) {
|
|
439
|
+
var a = this, m = !!w.u(_) || _, e = w.p(n), c = function(E, O) {
|
|
440
|
+
var z = w.w(a.$u ? Date.UTC(a.$y, O, E) : new Date(a.$y, O, E), a);
|
|
441
|
+
return m ? z : z.endOf(v);
|
|
442
|
+
}, h = function(E, O) {
|
|
443
|
+
return w.w(a.toDate()[E].apply(a.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(O)), a);
|
|
444
|
+
}, y = this.$W, x = this.$M, $ = this.$D, R = "set" + (this.$u ? "UTC" : "");
|
|
445
|
+
switch (e) {
|
|
446
|
+
case S:
|
|
447
|
+
return m ? c(1, 0) : c(31, 11);
|
|
448
|
+
case k:
|
|
449
|
+
return m ? c(1, x) : c(0, x + 1);
|
|
450
|
+
case N:
|
|
451
|
+
var I = this.$locale().weekStart || 0, j = (y < I ? y + 7 : y) - I;
|
|
452
|
+
return c(m ? $ - j : $ + (6 - j), x);
|
|
453
|
+
case v:
|
|
454
|
+
case D:
|
|
455
|
+
return h(R + "Hours", 0);
|
|
456
|
+
case b:
|
|
457
|
+
return h(R + "Minutes", 1);
|
|
458
|
+
case g:
|
|
459
|
+
return h(R + "Seconds", 2);
|
|
460
|
+
case p:
|
|
461
|
+
return h(R + "Milliseconds", 3);
|
|
462
|
+
default:
|
|
463
|
+
return this.clone();
|
|
464
|
+
}
|
|
465
|
+
}, o.endOf = function(n) {
|
|
466
|
+
return this.startOf(n, !1);
|
|
467
|
+
}, o.$set = function(n, _) {
|
|
468
|
+
var a, m = w.p(n), e = "set" + (this.$u ? "UTC" : ""), c = (a = {}, a[v] = e + "Date", a[D] = e + "Date", a[k] = e + "Month", a[S] = e + "FullYear", a[b] = e + "Hours", a[g] = e + "Minutes", a[p] = e + "Seconds", a[l] = e + "Milliseconds", a)[m], h = m === v ? this.$D + (_ - this.$W) : _;
|
|
469
|
+
if (m === k || m === S) {
|
|
470
|
+
var y = this.clone().set(D, 1);
|
|
471
|
+
y.$d[c](h), y.init(), this.$d = y.set(D, Math.min(this.$D, y.daysInMonth())).$d;
|
|
472
|
+
} else c && this.$d[c](h);
|
|
473
|
+
return this.init(), this;
|
|
474
|
+
}, o.set = function(n, _) {
|
|
475
|
+
return this.clone().$set(n, _);
|
|
476
|
+
}, o.get = function(n) {
|
|
477
|
+
return this[w.p(n)]();
|
|
478
|
+
}, o.add = function(n, _) {
|
|
479
|
+
var a, m = this;
|
|
480
|
+
n = Number(n);
|
|
481
|
+
var e = w.p(_), c = function(x) {
|
|
482
|
+
var $ = C(m);
|
|
483
|
+
return w.w($.date($.date() + Math.round(x * n)), m);
|
|
484
|
+
};
|
|
485
|
+
if (e === k) return this.set(k, this.$M + n);
|
|
486
|
+
if (e === S) return this.set(S, this.$y + n);
|
|
487
|
+
if (e === v) return c(1);
|
|
488
|
+
if (e === N) return c(7);
|
|
489
|
+
var h = (a = {}, a[g] = d, a[b] = u, a[p] = s, a)[e] || 1, y = this.$d.getTime() + n * h;
|
|
490
|
+
return w.w(y, this);
|
|
491
|
+
}, o.subtract = function(n, _) {
|
|
492
|
+
return this.add(-1 * n, _);
|
|
493
|
+
}, o.format = function(n) {
|
|
494
|
+
var _ = this, a = this.$locale();
|
|
495
|
+
if (!this.isValid()) return a.invalidDate || F;
|
|
496
|
+
var m = n || "YYYY-MM-DDTHH:mm:ssZ", e = w.z(this), c = this.$H, h = this.$m, y = this.$M, x = a.weekdays, $ = a.months, R = a.meridiem, I = function(O, z, K, oe) {
|
|
497
|
+
return O && (O[z] || O(_, m)) || K[z].slice(0, oe);
|
|
498
|
+
}, j = function(O) {
|
|
499
|
+
return w.s(c % 12 || 12, O, "0");
|
|
500
|
+
}, E = R || function(O, z, K) {
|
|
501
|
+
var oe = O < 12 ? "AM" : "PM";
|
|
502
|
+
return K ? oe.toLowerCase() : oe;
|
|
503
|
+
};
|
|
504
|
+
return m.replace(U, function(O, z) {
|
|
505
|
+
return z || function(K) {
|
|
506
|
+
switch (K) {
|
|
507
|
+
case "YY":
|
|
508
|
+
return String(_.$y).slice(-2);
|
|
509
|
+
case "YYYY":
|
|
510
|
+
return w.s(_.$y, 4, "0");
|
|
511
|
+
case "M":
|
|
512
|
+
return y + 1;
|
|
513
|
+
case "MM":
|
|
514
|
+
return w.s(y + 1, 2, "0");
|
|
515
|
+
case "MMM":
|
|
516
|
+
return I(a.monthsShort, y, $, 3);
|
|
517
|
+
case "MMMM":
|
|
518
|
+
return I($, y);
|
|
519
|
+
case "D":
|
|
520
|
+
return _.$D;
|
|
521
|
+
case "DD":
|
|
522
|
+
return w.s(_.$D, 2, "0");
|
|
523
|
+
case "d":
|
|
524
|
+
return String(_.$W);
|
|
525
|
+
case "dd":
|
|
526
|
+
return I(a.weekdaysMin, _.$W, x, 2);
|
|
527
|
+
case "ddd":
|
|
528
|
+
return I(a.weekdaysShort, _.$W, x, 3);
|
|
529
|
+
case "dddd":
|
|
530
|
+
return x[_.$W];
|
|
531
|
+
case "H":
|
|
532
|
+
return String(c);
|
|
533
|
+
case "HH":
|
|
534
|
+
return w.s(c, 2, "0");
|
|
535
|
+
case "h":
|
|
536
|
+
return j(1);
|
|
537
|
+
case "hh":
|
|
538
|
+
return j(2);
|
|
539
|
+
case "a":
|
|
540
|
+
return E(c, h, !0);
|
|
541
|
+
case "A":
|
|
542
|
+
return E(c, h, !1);
|
|
543
|
+
case "m":
|
|
544
|
+
return String(h);
|
|
545
|
+
case "mm":
|
|
546
|
+
return w.s(h, 2, "0");
|
|
547
|
+
case "s":
|
|
548
|
+
return String(_.$s);
|
|
549
|
+
case "ss":
|
|
550
|
+
return w.s(_.$s, 2, "0");
|
|
551
|
+
case "SSS":
|
|
552
|
+
return w.s(_.$ms, 3, "0");
|
|
553
|
+
case "Z":
|
|
554
|
+
return e;
|
|
555
|
+
}
|
|
556
|
+
return null;
|
|
557
|
+
}(O) || e.replace(":", "");
|
|
558
|
+
});
|
|
559
|
+
}, o.utcOffset = function() {
|
|
560
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
561
|
+
}, o.diff = function(n, _, a) {
|
|
562
|
+
var m, e = this, c = w.p(_), h = C(n), y = (h.utcOffset() - this.utcOffset()) * d, x = this - h, $ = function() {
|
|
563
|
+
return w.m(e, h);
|
|
564
|
+
};
|
|
565
|
+
switch (c) {
|
|
566
|
+
case S:
|
|
567
|
+
m = $() / 12;
|
|
568
|
+
break;
|
|
569
|
+
case k:
|
|
570
|
+
m = $();
|
|
571
|
+
break;
|
|
572
|
+
case A:
|
|
573
|
+
m = $() / 3;
|
|
574
|
+
break;
|
|
575
|
+
case N:
|
|
576
|
+
m = (x - y) / 6048e5;
|
|
577
|
+
break;
|
|
578
|
+
case v:
|
|
579
|
+
m = (x - y) / 864e5;
|
|
580
|
+
break;
|
|
581
|
+
case b:
|
|
582
|
+
m = x / u;
|
|
583
|
+
break;
|
|
584
|
+
case g:
|
|
585
|
+
m = x / d;
|
|
586
|
+
break;
|
|
587
|
+
case p:
|
|
588
|
+
m = x / s;
|
|
589
|
+
break;
|
|
590
|
+
default:
|
|
591
|
+
m = x;
|
|
592
|
+
}
|
|
593
|
+
return a ? m : w.a(m);
|
|
594
|
+
}, o.daysInMonth = function() {
|
|
595
|
+
return this.endOf(k).$D;
|
|
596
|
+
}, o.$locale = function() {
|
|
597
|
+
return q[this.$L];
|
|
598
|
+
}, o.locale = function(n, _) {
|
|
599
|
+
if (!n) return this.$L;
|
|
600
|
+
var a = this.clone(), m = J(n, _, !0);
|
|
601
|
+
return m && (a.$L = m), a;
|
|
602
|
+
}, o.clone = function() {
|
|
603
|
+
return w.w(this.$d, this);
|
|
604
|
+
}, o.toDate = function() {
|
|
605
|
+
return new Date(this.valueOf());
|
|
606
|
+
}, o.toJSON = function() {
|
|
607
|
+
return this.isValid() ? this.toISOString() : null;
|
|
608
|
+
}, o.toISOString = function() {
|
|
609
|
+
return this.$d.toISOString();
|
|
610
|
+
}, o.toString = function() {
|
|
611
|
+
return this.$d.toUTCString();
|
|
612
|
+
}, f;
|
|
613
|
+
}(), ae = B.prototype;
|
|
614
|
+
return C.prototype = ae, [["$ms", l], ["$s", p], ["$m", g], ["$H", b], ["$W", v], ["$M", k], ["$y", S], ["$D", D]].forEach(function(f) {
|
|
615
|
+
ae[f[1]] = function(o) {
|
|
616
|
+
return this.$g(o, f[0], f[1]);
|
|
617
|
+
};
|
|
618
|
+
}), C.extend = function(f, o) {
|
|
619
|
+
return f.$i || (f(o, B, C), f.$i = !0), C;
|
|
620
|
+
}, C.locale = J, C.isDayjs = V, C.unix = function(f) {
|
|
621
|
+
return C(1e3 * f);
|
|
622
|
+
}, C.en = q[W], C.Ls = q, C.p = {}, C;
|
|
623
|
+
});
|
|
624
|
+
})(Oe);
|
|
625
|
+
var Xe = Oe.exports;
|
|
626
|
+
const Qe = /* @__PURE__ */ ke(Xe), Ke = (t) => {
|
|
627
|
+
const i = Qe(t), s = i.date(), d = s === 1 || s === 21 || s === 31 ? "st" : s === 2 || s === 22 ? "nd" : s === 3 || s === 23 ? "rd" : "th";
|
|
628
|
+
return `${i.format("MMMM D, HH:mm").replace(s.toString(), `${s}${d}`)} (UTC +5)`;
|
|
629
|
+
}, Sn = ({ color: t, title: i, bgPattern: s, deadline: d, bgPatternFinished: u, buttonColor: l, onClick: p }) => {
|
|
630
|
+
const [g, b] = le(!1), [v, N] = le({
|
|
631
|
+
days: 0,
|
|
632
|
+
hours: 0,
|
|
633
|
+
minutes: 0,
|
|
634
|
+
seconds: 0
|
|
635
|
+
});
|
|
636
|
+
Ie(() => {
|
|
637
|
+
const A = new Date(d), S = (P) => ({
|
|
638
|
+
days: Math.floor(P / (1e3 * 60 * 60 * 24)),
|
|
639
|
+
hours: Math.floor(P / (1e3 * 60 * 60) % 24),
|
|
640
|
+
minutes: Math.floor(P / (1e3 * 60) % 60),
|
|
641
|
+
seconds: Math.floor(P / 1e3 % 60)
|
|
642
|
+
}), D = () => {
|
|
643
|
+
const P = Date.now(), U = A.getTime() - P;
|
|
644
|
+
U <= 0 ? (b(!0), N({ days: 0, hours: 0, minutes: 0, seconds: 0 })) : N(S(U));
|
|
645
|
+
};
|
|
646
|
+
D();
|
|
647
|
+
const F = setInterval(D, 1e3);
|
|
648
|
+
return () => clearInterval(F);
|
|
649
|
+
}, [d]);
|
|
650
|
+
const k = (A, S) => r.jsxs("div", { className: H.timerCell, children: [r.jsx(T, { variant: "heading-lg", className: H.timerCount, children: A }), S] });
|
|
651
|
+
return r.jsxs("div", { className: H.container, style: { backgroundColor: t }, children: [r.jsxs("div", { className: H.content, children: [r.jsxs("div", { className: H.title, children: [r.jsx(T, { variant: "heading-md", children: i }), r.jsx(T, { variant: "body-md", children: Ke(d) })] }), r.jsxs("div", { className: H.timer, children: [k(v.days, "Days"), k(v.hours, "Hours"), k(v.minutes, "Minutes"), k(v.seconds, "Seconds")] })] }), r.jsx("div", { className: H.pattern, style: {
|
|
652
|
+
"--pattern-color": t,
|
|
653
|
+
"--pattern-url": `url(${g ? u ?? s : s})`
|
|
654
|
+
}, children: g && r.jsx("button", { className: H.button, style: { backgroundColor: l }, onClick: p, children: r.jsx(T, { variant: "heading-md", children: "Start" }) }) })] });
|
|
655
|
+
}, et = "_btn_12gio_29", tt = "_small_12gio_44", nt = "_medium_12gio_47", rt = "_large_12gio_50", st = "_primary_12gio_71", at = "_tertiary_12gio_87", ot = "_plain_12gio_102", ie = {
|
|
656
|
+
"shadow-0": "_shadow-0_12gio_1",
|
|
657
|
+
"shadow-100": "_shadow-100_12gio_5",
|
|
658
|
+
"shadow-200": "_shadow-200_12gio_9",
|
|
659
|
+
"shadow-300": "_shadow-300_12gio_13",
|
|
660
|
+
"shadow-400": "_shadow-400_12gio_17",
|
|
661
|
+
"shadow-500": "_shadow-500_12gio_21",
|
|
662
|
+
"shadow-600": "_shadow-600_12gio_25",
|
|
663
|
+
btn: et,
|
|
664
|
+
small: tt,
|
|
665
|
+
medium: nt,
|
|
666
|
+
large: rt,
|
|
667
|
+
default: "_default_12gio_53",
|
|
668
|
+
"default-selected": "_default-selected_12gio_64",
|
|
669
|
+
primary: st,
|
|
670
|
+
"primary-selected": "_primary-selected_12gio_81",
|
|
671
|
+
tertiary: at,
|
|
672
|
+
"tertiary-selected": "_tertiary-selected_12gio_96",
|
|
673
|
+
plain: ot,
|
|
674
|
+
"plain-selected": "_plain-selected_12gio_113"
|
|
675
|
+
}, En = ({ state: t = "default", size: i = "medium", selected: s = !1, disabled: d = !1, children: u, onClick: l = () => {
|
|
676
|
+
}, className: p = "", ...g }) => {
|
|
677
|
+
const b = M(ie.btn, ie[t], ie[i], {
|
|
678
|
+
[ie[`${t}-selected`]]: s
|
|
679
|
+
}, p);
|
|
680
|
+
return r.jsx("button", { className: b, onClick: l, disabled: d, ...g, children: u });
|
|
681
|
+
};
|
|
682
|
+
/**
|
|
683
|
+
* @license lucide-react v0.511.0 - ISC
|
|
684
|
+
*
|
|
685
|
+
* This source code is licensed under the ISC license.
|
|
686
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
687
|
+
*/
|
|
688
|
+
const it = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ct = (t) => t.replace(
|
|
689
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
690
|
+
(i, s, d) => d ? d.toUpperCase() : s.toLowerCase()
|
|
691
|
+
), Ce = (t) => {
|
|
692
|
+
const i = ct(t);
|
|
693
|
+
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
694
|
+
}, Se = (...t) => t.filter((i, s, d) => !!i && i.trim() !== "" && d.indexOf(i) === s).join(" ").trim(), lt = (t) => {
|
|
695
|
+
for (const i in t)
|
|
696
|
+
if (i.startsWith("aria-") || i === "role" || i === "title")
|
|
697
|
+
return !0;
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* @license lucide-react v0.511.0 - ISC
|
|
701
|
+
*
|
|
702
|
+
* This source code is licensed under the ISC license.
|
|
703
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
704
|
+
*/
|
|
705
|
+
var dt = {
|
|
706
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
707
|
+
width: 24,
|
|
708
|
+
height: 24,
|
|
709
|
+
viewBox: "0 0 24 24",
|
|
710
|
+
fill: "none",
|
|
711
|
+
stroke: "currentColor",
|
|
712
|
+
strokeWidth: 2,
|
|
713
|
+
strokeLinecap: "round",
|
|
714
|
+
strokeLinejoin: "round"
|
|
715
|
+
};
|
|
716
|
+
/**
|
|
717
|
+
* @license lucide-react v0.511.0 - ISC
|
|
718
|
+
*
|
|
719
|
+
* This source code is licensed under the ISC license.
|
|
720
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
721
|
+
*/
|
|
722
|
+
const ut = ve(
|
|
723
|
+
({
|
|
724
|
+
color: t = "currentColor",
|
|
725
|
+
size: i = 24,
|
|
726
|
+
strokeWidth: s = 2,
|
|
727
|
+
absoluteStrokeWidth: d,
|
|
728
|
+
className: u = "",
|
|
729
|
+
children: l,
|
|
730
|
+
iconNode: p,
|
|
731
|
+
...g
|
|
732
|
+
}, b) => pe(
|
|
733
|
+
"svg",
|
|
734
|
+
{
|
|
735
|
+
ref: b,
|
|
736
|
+
...dt,
|
|
737
|
+
width: i,
|
|
738
|
+
height: i,
|
|
739
|
+
stroke: t,
|
|
740
|
+
strokeWidth: d ? Number(s) * 24 / Number(i) : s,
|
|
741
|
+
className: Se("lucide", u),
|
|
742
|
+
...!l && !lt(g) && { "aria-hidden": "true" },
|
|
743
|
+
...g
|
|
744
|
+
},
|
|
745
|
+
[
|
|
746
|
+
...p.map(([v, N]) => pe(v, N)),
|
|
747
|
+
...Array.isArray(l) ? l : [l]
|
|
748
|
+
]
|
|
749
|
+
)
|
|
750
|
+
);
|
|
751
|
+
/**
|
|
752
|
+
* @license lucide-react v0.511.0 - ISC
|
|
753
|
+
*
|
|
754
|
+
* This source code is licensed under the ISC license.
|
|
755
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
756
|
+
*/
|
|
757
|
+
const re = (t, i) => {
|
|
758
|
+
const s = ve(
|
|
759
|
+
({ className: d, ...u }, l) => pe(ut, {
|
|
760
|
+
ref: l,
|
|
761
|
+
iconNode: i,
|
|
762
|
+
className: Se(
|
|
763
|
+
`lucide-${it(Ce(t))}`,
|
|
764
|
+
`lucide-${t}`,
|
|
765
|
+
d
|
|
766
|
+
),
|
|
767
|
+
...u
|
|
768
|
+
})
|
|
769
|
+
);
|
|
770
|
+
return s.displayName = Ce(t), s;
|
|
771
|
+
};
|
|
772
|
+
/**
|
|
773
|
+
* @license lucide-react v0.511.0 - ISC
|
|
774
|
+
*
|
|
775
|
+
* This source code is licensed under the ISC license.
|
|
776
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
777
|
+
*/
|
|
778
|
+
const _t = [
|
|
779
|
+
["path", { d: "M18 6 7 17l-5-5", key: "116fxf" }],
|
|
780
|
+
["path", { d: "m22 10-7.5 7.5L13 16", key: "ke71qq" }]
|
|
781
|
+
], ft = re("check-check", _t);
|
|
782
|
+
/**
|
|
783
|
+
* @license lucide-react v0.511.0 - ISC
|
|
784
|
+
*
|
|
785
|
+
* This source code is licensed under the ISC license.
|
|
786
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
787
|
+
*/
|
|
788
|
+
const ht = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ee = re("chevron-down", ht);
|
|
789
|
+
/**
|
|
790
|
+
* @license lucide-react v0.511.0 - ISC
|
|
791
|
+
*
|
|
792
|
+
* This source code is licensed under the ISC license.
|
|
793
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
794
|
+
*/
|
|
795
|
+
const mt = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Te = re("chevron-up", mt);
|
|
796
|
+
/**
|
|
797
|
+
* @license lucide-react v0.511.0 - ISC
|
|
798
|
+
*
|
|
799
|
+
* This source code is licensed under the ISC license.
|
|
800
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
801
|
+
*/
|
|
802
|
+
const pt = [
|
|
803
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
804
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
805
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
806
|
+
], gt = re("circle-alert", pt);
|
|
807
|
+
/**
|
|
808
|
+
* @license lucide-react v0.511.0 - ISC
|
|
809
|
+
*
|
|
810
|
+
* This source code is licensed under the ISC license.
|
|
811
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
812
|
+
*/
|
|
813
|
+
const vt = [
|
|
814
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
815
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
816
|
+
], yt = re("x", vt), wt = "_navigationItem_1uz1o_29", xt = "_container_1uz1o_45", $t = "_IconContainer_1uz1o_51", bt = "_ParentLine_1uz1o_57", jt = "_secondaryIcon_1uz1o_69", Ct = "_active_1uz1o_80", kt = "_collapsed_1uz1o_88", Nt = "_label_1uz1o_92", Y = {
|
|
817
|
+
navigationItem: wt,
|
|
818
|
+
container: xt,
|
|
819
|
+
IconContainer: $t,
|
|
820
|
+
ParentLine: bt,
|
|
821
|
+
secondaryIcon: jt,
|
|
822
|
+
active: Ct,
|
|
823
|
+
collapsed: kt,
|
|
824
|
+
label: Nt
|
|
825
|
+
}, de = ({ icon: t, label: i, secondaryIcon: s, collapsed: d = !1, active: u = !1, isParentNode: l = !1, onClick: p, className: g }) => r.jsxs("div", { className: M(Y.navigationItem, u && Y.active, g), onClick: p, children: [r.jsxs("div", { className: Y.container, children: [r.jsxs("div", { className: Y.IconContainer, children: [t, l && r.jsx("img", { src: "/assets/icons/ParentLine.svg", alt: "Arrow Indicator", className: Y.ParentLine })] }), r.jsx(T, { variant: "body-md", className: M(d && Y.collapsed, Y.label), children: i })] }), s && r.jsx("div", { className: M(Y.secondaryIcon, d && Y.collapsed), children: s })] }), Ot = "_ArrowContainer_i9cnp_29", St = "_active_i9cnp_44", Et = "_arrowBlock_i9cnp_54", Tt = "_isOpen_i9cnp_58", ne = {
|
|
826
|
+
ArrowContainer: Ot,
|
|
827
|
+
active: St,
|
|
828
|
+
arrowBlock: Et,
|
|
829
|
+
isOpen: Tt
|
|
830
|
+
}, Tn = ({ activeItemId: t, onChange: i, item: s }) => {
|
|
831
|
+
var g, b;
|
|
832
|
+
const d = (g = s.children) == null ? void 0 : g.findIndex((v) => v.id === t), [u, l] = le(d !== -1), p = () => {
|
|
833
|
+
s.children && l(!u), i(s);
|
|
834
|
+
};
|
|
835
|
+
return r.jsxs("div", { children: [r.jsx(de, { icon: s.icon, label: s.name, secondaryIcon: u ? r.jsx(Te, { size: 20 }) : r.jsx(Ee, { size: 20 }), onClick: p, isParentNode: u && d !== -1, active: d !== -1 && !u, className: M(u && d === -1 && ne.isOpen) }), r.jsx("div", { className: ne.childContainer, children: u && ((b = s.children) == null ? void 0 : b.map((v, N) => r.jsxs("div", { className: M(ne.ArrowContainer, t === v.id ? ne.active : ""), onClick: () => i(v), children: [r.jsxs("div", { className: ne.arrowBlock, children: [d === N && r.jsx("img", { src: "/assets/icons/ArrowLine.svg", alt: "Arrow Indicator" }), N < (d ?? -1) && r.jsx("img", { src: "/assets/icons/SideLine.svg", alt: "Side Indicator" })] }), r.jsx(de, { icon: v.icon, label: v.name, active: v.id === t })] }, v.id))) })] });
|
|
836
|
+
}, Mt = "_ArrowContainer_17ds0_29", At = "_iconCheck_17ds0_37", Dt = "_active_17ds0_47", It = "_arrowBlock_17ds0_57", Pt = "_isOpen_17ds0_61", Z = {
|
|
837
|
+
ArrowContainer: Mt,
|
|
838
|
+
iconCheck: At,
|
|
839
|
+
active: Dt,
|
|
840
|
+
arrowBlock: It,
|
|
841
|
+
isOpen: Pt
|
|
842
|
+
}, Mn = ({ activeItemId: t, onChange: i, item: s }) => {
|
|
843
|
+
var g, b;
|
|
844
|
+
const d = (g = s.children) == null ? void 0 : g.findIndex((v) => v.id === t), [u, l] = le(d !== -1), p = () => {
|
|
845
|
+
s.children && l(!u), i(s);
|
|
846
|
+
};
|
|
847
|
+
return r.jsxs("div", { children: [r.jsx(de, { icon: s.icon, label: s.name, secondaryIcon: u ? r.jsx(Te, { size: 20 }) : r.jsx(Ee, { size: 20 }), onClick: p, isParentNode: u && d !== -1, active: d !== -1 && !u, className: M(u && d === -1 && Z.isOpen) }), r.jsx("div", { className: Z.childContainer, children: u && ((b = s.children) == null ? void 0 : b.map((v, N) => r.jsxs("div", { className: M(Z.ArrowContainer, t === v.id ? Z.active : ""), onClick: () => i(v), children: [r.jsxs("div", { className: Z.arrowBlock, children: [d === N && r.jsx("img", { src: "/assets/icons/ArrowLine.svg", alt: "Arrow Indicator" }), N < (d ?? -1) && r.jsx("img", { src: "/assets/icons/SideLine.svg", alt: "Side Indicator" })] }), r.jsx(de, { icon: v.icon, label: v.name, active: v.id === t, secondaryIcon: v.completed && r.jsx(ft, { size: 20, className: Z.iconCheck }) }, v.id)] }, v.id))) })] });
|
|
848
|
+
}, Rt = "_emptyContainer_tmvlz_29", zt = {
|
|
849
|
+
emptyContainer: Rt
|
|
850
|
+
}, An = ({ children: t, className: i = "" }) => r.jsx("div", { className: `${zt.emptyContainer} ${i}`, children: t }), Lt = "_formItem_96xeh_29", qt = "_critical_96xeh_36", Yt = "_message_96xeh_40", Ft = "_error_96xeh_46", Ht = "_label_96xeh_50", Wt = "_disabled_96xeh_53", Bt = "_readOnly_96xeh_56", Ut = "_input_96xeh_60", L = {
|
|
851
|
+
"shadow-0": "_shadow-0_96xeh_1",
|
|
852
|
+
"shadow-100": "_shadow-100_96xeh_5",
|
|
853
|
+
"shadow-200": "_shadow-200_96xeh_9",
|
|
854
|
+
"shadow-300": "_shadow-300_96xeh_13",
|
|
855
|
+
"shadow-400": "_shadow-400_96xeh_17",
|
|
856
|
+
"shadow-500": "_shadow-500_96xeh_21",
|
|
857
|
+
"shadow-600": "_shadow-600_96xeh_25",
|
|
858
|
+
formItem: Lt,
|
|
859
|
+
critical: qt,
|
|
860
|
+
message: Yt,
|
|
861
|
+
error: Ft,
|
|
862
|
+
label: Ht,
|
|
863
|
+
disabled: Wt,
|
|
864
|
+
readOnly: Bt,
|
|
865
|
+
input: Ut
|
|
866
|
+
}, Me = Pe({
|
|
867
|
+
state: "default"
|
|
868
|
+
}), ye = () => Re(Me), we = ({ children: t, error: i, disabled: s, readOnly: d }) => {
|
|
869
|
+
let u = "default";
|
|
870
|
+
return i ? u = "error" : s ? u = "disabled" : d && (u = "readOnly"), r.jsx(Me.Provider, { value: { state: u }, children: r.jsx("div", { className: L.formItem, children: t }) });
|
|
871
|
+
}, Vt = ({ children: t }) => {
|
|
872
|
+
const { state: i } = ye();
|
|
873
|
+
return r.jsx("label", { className: M(L.label, i === "disabled" && L.disabled, i === "readOnly" && L.readOnly), children: t });
|
|
874
|
+
}, Ae = ve(({ as: t = "input", className: i, ...s }, d) => {
|
|
875
|
+
const { state: u } = ye();
|
|
876
|
+
return r.jsx(t, { ref: d, className: M(L.input, L[u], i), disabled: u === "disabled", readOnly: u === "readOnly", ...s });
|
|
877
|
+
});
|
|
878
|
+
Ae.displayName = "FormItem.Input";
|
|
879
|
+
const Jt = ({ children: t }) => {
|
|
880
|
+
const { state: i } = ye();
|
|
881
|
+
return t ? r.jsxs("div", { className: M(L.message, i === "error" ? L.error : L.default), children: [i === "error" && r.jsx(gt, { className: L.critical }), t] }) : null;
|
|
882
|
+
};
|
|
883
|
+
we.Label = Vt;
|
|
884
|
+
we.Input = Ae;
|
|
885
|
+
we.Message = Jt;
|
|
886
|
+
const Zt = "_btn_z8qng_29", Gt = "_small_z8qng_42", Xt = "_medium_z8qng_45", Qt = "_large_z8qng_48", Kt = "_primary_z8qng_69", en = "_tertiary_z8qng_85", tn = "_plain_z8qng_100", ce = {
|
|
887
|
+
"shadow-0": "_shadow-0_z8qng_1",
|
|
888
|
+
"shadow-100": "_shadow-100_z8qng_5",
|
|
889
|
+
"shadow-200": "_shadow-200_z8qng_9",
|
|
890
|
+
"shadow-300": "_shadow-300_z8qng_13",
|
|
891
|
+
"shadow-400": "_shadow-400_z8qng_17",
|
|
892
|
+
"shadow-500": "_shadow-500_z8qng_21",
|
|
893
|
+
"shadow-600": "_shadow-600_z8qng_25",
|
|
894
|
+
btn: Zt,
|
|
895
|
+
small: Gt,
|
|
896
|
+
medium: Xt,
|
|
897
|
+
large: Qt,
|
|
898
|
+
default: "_default_z8qng_51",
|
|
899
|
+
"default-selected": "_default-selected_z8qng_62",
|
|
900
|
+
primary: Kt,
|
|
901
|
+
"primary-selected": "_primary-selected_z8qng_79",
|
|
902
|
+
tertiary: en,
|
|
903
|
+
"tertiary-selected": "_tertiary-selected_z8qng_94",
|
|
904
|
+
plain: tn,
|
|
905
|
+
"plain-selected": "_plain-selected_z8qng_111"
|
|
906
|
+
}, nn = ({ state: t = "default", size: i = "medium", selected: s = !1, disabled: d = !1, children: u, onClick: l = () => {
|
|
907
|
+
}, className: p = "", ...g }) => {
|
|
908
|
+
const b = M(ce.btn, ce[t], ce[i], {
|
|
909
|
+
[ce[`${t}-selected`]]: s
|
|
910
|
+
}, p);
|
|
911
|
+
return r.jsx("button", { className: b, onClick: l, disabled: d, ...g, children: u });
|
|
912
|
+
}, rn = "_modalLayout_1jmpu_29", sn = "_modalContainer_1jmpu_40", an = "_header_1jmpu_64", on = "_close_1jmpu_73", cn = "_content_1jmpu_83", ln = "_footer_1jmpu_91", X = {
|
|
913
|
+
modalLayout: rn,
|
|
914
|
+
modalContainer: sn,
|
|
915
|
+
header: an,
|
|
916
|
+
close: on,
|
|
917
|
+
content: cn,
|
|
918
|
+
footer: ln
|
|
919
|
+
}, xe = ({ open: t, onClose: i, children: s }) => t ? r.jsx("div", { className: X.modalLayout, onClick: i, children: r.jsx("div", { className: X.modalContainer, onClick: (d) => d.stopPropagation(), children: s }) }) : null, dn = ({ children: t, onClose: i }) => r.jsxs("div", { className: X.header, children: [r.jsx(T, { variant: "heading-sm", children: t }), r.jsx(nn, { size: "small", state: "default", className: X.close, onClick: i, children: r.jsx(yt, {}) })] }), un = ({ children: t }) => r.jsx(T, { variant: "body-md", className: X.content, children: t }), _n = ({ children: t }) => r.jsx("div", { className: X.footer, children: t });
|
|
920
|
+
xe.Header = dn;
|
|
921
|
+
xe.Content = un;
|
|
922
|
+
xe.Footer = _n;
|
|
923
|
+
const fn = "_pageHeader_1lrq1_29", hn = "_mg_1lrq1_38", mn = "_lg_1lrq1_39", fe = {
|
|
924
|
+
pageHeader: fn,
|
|
925
|
+
mg: hn,
|
|
926
|
+
lg: mn
|
|
927
|
+
}, Dn = ({ children: t }) => r.jsxs("header", { className: fe.pageHeader, children: [r.jsx(T, { variant: "heading-xl", className: fe.lg, children: t }), r.jsx(T, { variant: "heading-md", className: fe.mg, children: t })] }), pn = "_container_1g19z_29", gn = "_line_1g19z_35", vn = "_progress_1g19z_41", he = {
|
|
928
|
+
container: pn,
|
|
929
|
+
line: gn,
|
|
930
|
+
progress: vn
|
|
931
|
+
}, In = ({ percent: t }) => r.jsx("div", { className: he.container, children: r.jsx("div", { className: he.line, children: r.jsx("div", { className: he.progress, style: { width: `${t}%` } }) }) }), yn = "_container_1gn8d_29", wn = "_notMobile_1gn8d_38", xn = "_mobile_1gn8d_47", me = {
|
|
932
|
+
container: yn,
|
|
933
|
+
notMobile: wn,
|
|
934
|
+
mobile: xn
|
|
935
|
+
}, Pn = ({ title: t, extra: i }) => r.jsxs("div", { className: me.container, children: [r.jsx(T, { variant: "heading-md", className: me.notMobile, children: t }), r.jsx(T, { variant: "heading-sm", className: me.mobile, children: t }), i] }), $n = "_topBar_xnlee_29", bn = "_section_xnlee_66", jn = "_scretched_xnlee_73", Cn = "_active_xnlee_90", kn = "_sm_xnlee_99", Nn = "_md_xnlee_100", G = {
|
|
936
|
+
topBar: $n,
|
|
937
|
+
section: bn,
|
|
938
|
+
scretched: jn,
|
|
939
|
+
active: Cn,
|
|
940
|
+
sm: kn,
|
|
941
|
+
md: Nn
|
|
942
|
+
}, Rn = ({ sections: t, activeTab: i, onTabSelect: s, isStretched: d = !0 }) => {
|
|
943
|
+
var u;
|
|
944
|
+
return r.jsxs("div", { children: [r.jsx("div", { className: G.topBar, children: t.map((l) => r.jsxs("div", { className: M(G.section, d && G.scretched, i === l.id && G.active), onClick: () => s(l.id), children: [r.jsx(T, { variant: "heading-xs", className: G.sm, children: l.title }), r.jsx(T, { variant: "heading-md", className: G.md, children: l.title })] }, l.id)) }), ((u = t.find((l) => l.id === i)) == null ? void 0 : u.component) ?? r.jsx(T, { variant: "body-lg", children: "Not Found" })] });
|
|
945
|
+
};
|
|
946
|
+
export {
|
|
947
|
+
Sn as Banner,
|
|
948
|
+
En as Button,
|
|
949
|
+
Tn as Collapse,
|
|
950
|
+
Mn as CourseCollapse,
|
|
951
|
+
An as Empty,
|
|
952
|
+
we as FormItem,
|
|
953
|
+
nn as IconButton,
|
|
954
|
+
xe as Modal,
|
|
955
|
+
de as NavigationItem,
|
|
956
|
+
Dn as PageHeader,
|
|
957
|
+
In as ProgressLine,
|
|
958
|
+
Pn as SectionHeader,
|
|
959
|
+
Rn as TopBar,
|
|
960
|
+
T as Typography
|
|
961
|
+
};
|