boottent-design 0.1.93 → 0.1.95
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/dist/components.cjs.js +1 -1
- package/dist/components.es.js +50 -55
- package/package.json +1 -1
package/dist/components.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as x, jsxs as H, Fragment as pr } from "react/jsx-runtime";
|
|
2
2
|
import { c as Ne } from "./index-BFsbj9HY.js";
|
|
3
|
-
import { a as mr, i as _e, j as hr, P as Se, d as ye, e as cn, u as Nt, q as ka, m as Na, c as
|
|
3
|
+
import { a as mr, i as _e, j as hr, P as Se, d as ye, e as cn, u as Nt, q as ka, m as Na, c as J, I as yt, B as je, D as La, l as Da, s as _a } from "./Combination-BlGcaOgO.js";
|
|
4
4
|
import * as O from "react";
|
|
5
5
|
import V, { forwardRef as un, useState as Le, useRef as le, useEffect as xt, useLayoutEffect as Fa, createContext as fn } from "react";
|
|
6
6
|
import { l as pn, F as at, T as gr, B as tt, S as xe, m as Ye, e as Fe, f as ge, g as Ve, c as ve, a as mn, L as vr, h as ze, j as Va, d as za, R as Ra, i as Ba, n as hn, I as wr, k as Wa, C as Ga, o as gn, A as $a, p as ja, q as Ha, r as Ya, s as vn, v as qa, w as Ua } from "./index-MtAsMouO.js";
|
|
@@ -320,13 +320,13 @@ function Ln(r) {
|
|
|
320
320
|
return r ? "open" : "closed";
|
|
321
321
|
}
|
|
322
322
|
var us = Sn, fs = Mn, ps = In, Dn = An, _n = Nn;
|
|
323
|
-
const _u = us, ms = O.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ x(fs, { ref: t, className:
|
|
323
|
+
const _u = us, ms = O.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ x(fs, { ref: t, className: J("w-full border-b", r), ...e }));
|
|
324
324
|
ms.displayName = "AccordionItem";
|
|
325
325
|
const hs = O.forwardRef(({ className: r, children: e, ...t }, n) => /* @__PURE__ */ x(ps, { className: "flex", children: /* @__PURE__ */ H(
|
|
326
326
|
Dn,
|
|
327
327
|
{
|
|
328
328
|
ref: n,
|
|
329
|
-
className:
|
|
329
|
+
className: J(
|
|
330
330
|
"flex flex-1 items-center justify-between py-4 text-start font-medium transition-all [&[data-state=open]>svg]:rotate-180",
|
|
331
331
|
r
|
|
332
332
|
),
|
|
@@ -344,7 +344,7 @@ const gs = O.forwardRef(({ className: r, children: e, ...t }, n) => /* @__PURE__
|
|
|
344
344
|
ref: n,
|
|
345
345
|
className: "overflow-hidden pb-4 text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
346
346
|
...t,
|
|
347
|
-
children: /* @__PURE__ */ x("div", { className:
|
|
347
|
+
children: /* @__PURE__ */ x("div", { className: J(r), children: e })
|
|
348
348
|
}
|
|
349
349
|
));
|
|
350
350
|
gs.displayName = _n.displayName;
|
|
@@ -376,7 +376,7 @@ const Fn = ({
|
|
|
376
376
|
src: r,
|
|
377
377
|
alt: e ? `${e} 이미지` : "이미지",
|
|
378
378
|
loading: n ? "lazy" : "eager",
|
|
379
|
-
className:
|
|
379
|
+
className: J(l[t], c, a),
|
|
380
380
|
style: d,
|
|
381
381
|
...o
|
|
382
382
|
}
|
|
@@ -1777,7 +1777,7 @@ function Ro() {
|
|
|
1777
1777
|
background: rt.event.background,
|
|
1778
1778
|
color: rt.event.color
|
|
1779
1779
|
},
|
|
1780
|
-
className:
|
|
1780
|
+
className: J("h-7 w-20 animate-pulse"),
|
|
1781
1781
|
children: ""
|
|
1782
1782
|
}
|
|
1783
1783
|
),
|
|
@@ -1835,7 +1835,7 @@ function Vu({
|
|
|
1835
1835
|
backgroundColor: l ? void 0 : n
|
|
1836
1836
|
},
|
|
1837
1837
|
type: l ? "background" : void 0,
|
|
1838
|
-
className:
|
|
1838
|
+
className: J(
|
|
1839
1839
|
"relative flex h-40 w-full items-start justify-center overflow-hidden pb-6 pt-0 md:h-[200px] md:pb-0 md:pt-10 lg:pt-6",
|
|
1840
1840
|
!l && "border-y border-y-grey-200"
|
|
1841
1841
|
),
|
|
@@ -1954,7 +1954,7 @@ Object.defineProperty(I, "__esModule", { value: !0 });
|
|
|
1954
1954
|
function qo(r) {
|
|
1955
1955
|
return r && typeof r == "object" && "default" in r ? r.default : r;
|
|
1956
1956
|
}
|
|
1957
|
-
var
|
|
1957
|
+
var Z = V, U = qo(Z), qn = Yo, Oe = new qn(), ee = Oe.getBrowser(), Uo = Oe.getCPU(), ie = Oe.getDevice(), Pr = Oe.getEngine(), Ie = Oe.getOS(), lt = Oe.getUA(), Un = function(e) {
|
|
1958
1958
|
return Oe.setUA(e);
|
|
1959
1959
|
}, dt = function(e) {
|
|
1960
1960
|
if (!e) {
|
|
@@ -2137,7 +2137,7 @@ function ol() {
|
|
|
2137
2137
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2138
2138
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2139
2139
|
}
|
|
2140
|
-
var
|
|
2140
|
+
var K = {
|
|
2141
2141
|
Mobile: "mobile",
|
|
2142
2142
|
Tablet: "tablet",
|
|
2143
2143
|
SmartTv: "smarttv",
|
|
@@ -2174,31 +2174,31 @@ var Z = {
|
|
|
2174
2174
|
isWearable: !1
|
|
2175
2175
|
}, dl = function(e) {
|
|
2176
2176
|
switch (e) {
|
|
2177
|
-
case
|
|
2177
|
+
case K.Mobile:
|
|
2178
2178
|
return {
|
|
2179
2179
|
isMobile: !0
|
|
2180
2180
|
};
|
|
2181
|
-
case
|
|
2181
|
+
case K.Tablet:
|
|
2182
2182
|
return {
|
|
2183
2183
|
isTablet: !0
|
|
2184
2184
|
};
|
|
2185
|
-
case
|
|
2185
|
+
case K.SmartTv:
|
|
2186
2186
|
return {
|
|
2187
2187
|
isSmartTV: !0
|
|
2188
2188
|
};
|
|
2189
|
-
case
|
|
2189
|
+
case K.Console:
|
|
2190
2190
|
return {
|
|
2191
2191
|
isConsole: !0
|
|
2192
2192
|
};
|
|
2193
|
-
case
|
|
2193
|
+
case K.Wearable:
|
|
2194
2194
|
return {
|
|
2195
2195
|
isWearable: !0
|
|
2196
2196
|
};
|
|
2197
|
-
case
|
|
2197
|
+
case K.Browser:
|
|
2198
2198
|
return {
|
|
2199
2199
|
isBrowser: !0
|
|
2200
2200
|
};
|
|
2201
|
-
case
|
|
2201
|
+
case K.Embedded:
|
|
2202
2202
|
return {
|
|
2203
2203
|
isEmbedded: !0
|
|
2204
2204
|
};
|
|
@@ -2291,28 +2291,28 @@ function gl(r) {
|
|
|
2291
2291
|
}
|
|
2292
2292
|
var Qn = function(e) {
|
|
2293
2293
|
var t = e.type;
|
|
2294
|
-
return t ===
|
|
2294
|
+
return t === K.Mobile;
|
|
2295
2295
|
}, Kn = function(e) {
|
|
2296
2296
|
var t = e.type;
|
|
2297
|
-
return t ===
|
|
2297
|
+
return t === K.Tablet;
|
|
2298
2298
|
}, Zn = function(e) {
|
|
2299
2299
|
var t = e.type;
|
|
2300
|
-
return t ===
|
|
2300
|
+
return t === K.Mobile || t === K.Tablet;
|
|
2301
2301
|
}, Jn = function(e) {
|
|
2302
2302
|
var t = e.type;
|
|
2303
|
-
return t ===
|
|
2303
|
+
return t === K.SmartTv;
|
|
2304
2304
|
}, Et = function(e) {
|
|
2305
2305
|
var t = e.type;
|
|
2306
|
-
return t ===
|
|
2306
|
+
return t === K.Browser;
|
|
2307
2307
|
}, ei = function(e) {
|
|
2308
2308
|
var t = e.type;
|
|
2309
|
-
return t ===
|
|
2309
|
+
return t === K.Wearable;
|
|
2310
2310
|
}, ti = function(e) {
|
|
2311
2311
|
var t = e.type;
|
|
2312
|
-
return t ===
|
|
2312
|
+
return t === K.Console;
|
|
2313
2313
|
}, ri = function(e) {
|
|
2314
2314
|
var t = e.type;
|
|
2315
|
-
return t ===
|
|
2315
|
+
return t === K.Embedded;
|
|
2316
2316
|
}, ni = function(e) {
|
|
2317
2317
|
var t = e.vendor;
|
|
2318
2318
|
return L(t);
|
|
@@ -2471,44 +2471,44 @@ var Di = Jn(ie), _i = ti(ie), Fi = ei(ie), vl = ri(ie), wl = wi(ee) || me(), bl
|
|
|
2471
2471
|
});
|
|
2472
2472
|
}, Ql = function(e) {
|
|
2473
2473
|
var t = e.renderWithFragment, n = e.children, i = se(e, ["renderWithFragment", "children"]);
|
|
2474
|
-
return Bi ? t ? U.createElement(
|
|
2474
|
+
return Bi ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2475
2475
|
}, Kl = function(e) {
|
|
2476
2476
|
var t = e.renderWithFragment, n = e.children, i = se(e, ["renderWithFragment", "children"]);
|
|
2477
|
-
return Ri ? t ? U.createElement(
|
|
2477
|
+
return Ri ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2478
2478
|
}, Zl = function(e) {
|
|
2479
2479
|
var t = e.renderWithFragment, n = e.children, i = se(e, ["renderWithFragment", "children"]);
|
|
2480
|
-
return $i ? t ? U.createElement(
|
|
2480
|
+
return $i ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2481
2481
|
}, Jl = function(e) {
|
|
2482
2482
|
var t = e.renderWithFragment, n = e.children, i = se(e, ["renderWithFragment", "children"]);
|
|
2483
|
-
return Gi ? t ? U.createElement(
|
|
2483
|
+
return Gi ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2484
2484
|
}, ed = function(e) {
|
|
2485
2485
|
var t = e.renderWithFragment, n = e.children, i = se(e, ["renderWithFragment", "children"]);
|
|
2486
|
-
return Ft ? t ? U.createElement(
|
|
2486
|
+
return Ft ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2487
2487
|
}, td = function(e) {
|
|
2488
2488
|
var t = e.renderWithFragment, n = e.children, i = se(e, ["renderWithFragment", "children"]);
|
|
2489
|
-
return zi ? t ? U.createElement(
|
|
2489
|
+
return zi ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2490
2490
|
}, rd = function(e) {
|
|
2491
2491
|
var t = e.renderWithFragment, n = e.children, i = se(e, ["renderWithFragment", "children"]);
|
|
2492
|
-
return Wi ? t ? U.createElement(
|
|
2492
|
+
return Wi ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2493
2493
|
}, nd = function(e) {
|
|
2494
2494
|
var t = e.renderWithFragment, n = e.children;
|
|
2495
2495
|
e.viewClassName, e.style;
|
|
2496
2496
|
var i = se(e, ["renderWithFragment", "children", "viewClassName", "style"]);
|
|
2497
|
-
return Vi ? t ? U.createElement(
|
|
2497
|
+
return Vi ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2498
2498
|
}, id = function(e) {
|
|
2499
2499
|
var t = e.renderWithFragment, n = e.children, i = se(e, ["renderWithFragment", "children"]);
|
|
2500
|
-
return Di ? t ? U.createElement(
|
|
2500
|
+
return Di ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2501
2501
|
}, ad = function(e) {
|
|
2502
2502
|
var t = e.renderWithFragment, n = e.children, i = se(e, ["renderWithFragment", "children"]);
|
|
2503
|
-
return _i ? t ? U.createElement(
|
|
2503
|
+
return _i ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2504
2504
|
}, sd = function(e) {
|
|
2505
2505
|
var t = e.renderWithFragment, n = e.children, i = se(e, ["renderWithFragment", "children"]);
|
|
2506
|
-
return Fi ? t ? U.createElement(
|
|
2506
|
+
return Fi ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", i, n) : null;
|
|
2507
2507
|
}, od = function(e) {
|
|
2508
2508
|
var t = e.renderWithFragment, n = e.children;
|
|
2509
2509
|
e.viewClassName, e.style;
|
|
2510
2510
|
var i = e.condition, a = se(e, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
|
|
2511
|
-
return i ? t ? U.createElement(
|
|
2511
|
+
return i ? t ? U.createElement(Z.Fragment, null, n) : U.createElement("div", a, n) : null;
|
|
2512
2512
|
};
|
|
2513
2513
|
function ld(r) {
|
|
2514
2514
|
return /* @__PURE__ */ function(e) {
|
|
@@ -2562,14 +2562,14 @@ function ld(r) {
|
|
|
2562
2562
|
}(U.Component);
|
|
2563
2563
|
}
|
|
2564
2564
|
function dd() {
|
|
2565
|
-
var r =
|
|
2565
|
+
var r = Z.useState(function() {
|
|
2566
2566
|
var a = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
2567
2567
|
return {
|
|
2568
2568
|
isPortrait: a === 0,
|
|
2569
2569
|
isLandscape: a === 90,
|
|
2570
2570
|
orientation: a === 0 ? "portrait" : "landscape"
|
|
2571
2571
|
};
|
|
2572
|
-
}), e = nl(r, 2), t = e[0], n = e[1], i =
|
|
2572
|
+
}), e = nl(r, 2), t = e[0], n = e[1], i = Z.useCallback(function() {
|
|
2573
2573
|
var a = window.innerWidth > window.innerHeight ? 90 : 0, o = {
|
|
2574
2574
|
isPortrait: a === 0,
|
|
2575
2575
|
isLandscape: a === 90,
|
|
@@ -2577,7 +2577,7 @@ function dd() {
|
|
|
2577
2577
|
};
|
|
2578
2578
|
t.orientation !== o.orientation && n(o);
|
|
2579
2579
|
}, [t.orientation]);
|
|
2580
|
-
return
|
|
2580
|
+
return Z.useEffect(function() {
|
|
2581
2581
|
return (typeof window > "u" ? "undefined" : nt(window)) !== void 0 && Ft && (i(), window.addEventListener("load", i, !1), window.addEventListener("resize", i, !1)), function() {
|
|
2582
2582
|
window.removeEventListener("resize", i, !1), window.removeEventListener("load", i, !1);
|
|
2583
2583
|
};
|
|
@@ -6055,17 +6055,12 @@ const zu = ({
|
|
|
6055
6055
|
autoplay: t === !0 ? { delay: 3e3 } : t,
|
|
6056
6056
|
spaceBetween: n,
|
|
6057
6057
|
slidesPerView: i,
|
|
6058
|
-
pagination: a
|
|
6059
|
-
|
|
6060
|
-
renderBullet: (p, w) => `<span class="${K(w, "w-3 h-3 rounded-md bg-white opacity-30 transition-all", {
|
|
6061
|
-
"opacity-90 scale-125": w.includes("swiper-pagination-bullet-active")
|
|
6062
|
-
})}"></span>`
|
|
6063
|
-
} : void 0,
|
|
6064
|
-
className: K("relative", l),
|
|
6058
|
+
pagination: a,
|
|
6059
|
+
className: J("relative", l),
|
|
6065
6060
|
style: d,
|
|
6066
6061
|
onSlideChange: m,
|
|
6067
6062
|
children: [
|
|
6068
|
-
r.map((p, w) => /* @__PURE__ */ x(la, { style: { height: "auto" }, className:
|
|
6063
|
+
r.map((p, w) => /* @__PURE__ */ x(la, { style: { height: "auto" }, className: J(s), children: p }, w)),
|
|
6069
6064
|
o && ud && /* @__PURE__ */ H(pr, { children: [
|
|
6070
6065
|
/* @__PURE__ */ x(
|
|
6071
6066
|
je,
|
|
@@ -6259,7 +6254,7 @@ const zu = ({
|
|
|
6259
6254
|
name: r,
|
|
6260
6255
|
render: () => /* @__PURE__ */ H(ge, { className: "relative", children: [
|
|
6261
6256
|
f && /* @__PURE__ */ x(Ve, { required: o, heading: t, label: n, description: i }),
|
|
6262
|
-
/* @__PURE__ */ x(ve, { children: /* @__PURE__ */ H("div", { className:
|
|
6257
|
+
/* @__PURE__ */ x(ve, { children: /* @__PURE__ */ H("div", { className: J("flex max-w-screen-sm items-center gap-2", l), children: [
|
|
6263
6258
|
/* @__PURE__ */ x(
|
|
6264
6259
|
Ra,
|
|
6265
6260
|
{
|
|
@@ -6267,7 +6262,7 @@ const zu = ({
|
|
|
6267
6262
|
u.onChange(p), d && d();
|
|
6268
6263
|
},
|
|
6269
6264
|
value: u.value,
|
|
6270
|
-
className:
|
|
6265
|
+
className: J(
|
|
6271
6266
|
c === "vertical" && "flex flex-col gap-4",
|
|
6272
6267
|
c === "horizontal" && "flex flex-wrap gap-8",
|
|
6273
6268
|
c === "grid" && "grid w-full grid-cols-2 gap-x-8 gap-y-4"
|
|
@@ -6323,7 +6318,7 @@ const zu = ({
|
|
|
6323
6318
|
render: () => /* @__PURE__ */ H(ge, { children: [
|
|
6324
6319
|
v && /* @__PURE__ */ x(Ve, { required: r, heading: e, label: n, description: i }),
|
|
6325
6320
|
/* @__PURE__ */ x(ve, { children: /* @__PURE__ */ H("div", { className: "flex flex-col gap-2", children: [
|
|
6326
|
-
u.value && u.value.length > 0 && /* @__PURE__ */ x("ul", { className:
|
|
6321
|
+
u.value && u.value.length > 0 && /* @__PURE__ */ x("ul", { className: J("flex flex-col flex-wrap gap-1", l), children: u.value.map((y, T) => /* @__PURE__ */ x("li", { children: /* @__PURE__ */ x(
|
|
6327
6322
|
gr,
|
|
6328
6323
|
{
|
|
6329
6324
|
size: s,
|
|
@@ -6401,7 +6396,7 @@ const zu = ({
|
|
|
6401
6396
|
name: r,
|
|
6402
6397
|
render: () => /* @__PURE__ */ H(ge, { children: [
|
|
6403
6398
|
T && /* @__PURE__ */ x(Ve, { required: o, heading: t, label: n, description: i }),
|
|
6404
|
-
/* @__PURE__ */ x(ve, { children: /* @__PURE__ */ H("div", { className:
|
|
6399
|
+
/* @__PURE__ */ x(ve, { children: /* @__PURE__ */ H("div", { className: J("flex w-full max-w-screen-sm items-center gap-2", h), children: [
|
|
6405
6400
|
c && /* @__PURE__ */ x("div", { className: "whitespace-nowrap", children: c }),
|
|
6406
6401
|
l ? /* @__PURE__ */ x(
|
|
6407
6402
|
Wa,
|
|
@@ -6929,7 +6924,7 @@ const ln = {
|
|
|
6929
6924
|
children: /* @__PURE__ */ H(
|
|
6930
6925
|
"div",
|
|
6931
6926
|
{
|
|
6932
|
-
className:
|
|
6927
|
+
className: J(
|
|
6933
6928
|
"relative z-50 rounded",
|
|
6934
6929
|
s && "m-1",
|
|
6935
6930
|
e === "white" && "border-border border",
|
|
@@ -6942,7 +6937,7 @@ const ln = {
|
|
|
6942
6937
|
/* @__PURE__ */ H(
|
|
6943
6938
|
"div",
|
|
6944
6939
|
{
|
|
6945
|
-
className:
|
|
6940
|
+
className: J(
|
|
6946
6941
|
"relative z-40 flex max-w-sm items-center font-normal",
|
|
6947
6942
|
e !== "white" && "bg-opacity-90",
|
|
6948
6943
|
ln[e],
|
|
@@ -7250,7 +7245,7 @@ const Eu = _a(
|
|
|
7250
7245
|
shape: "square"
|
|
7251
7246
|
});
|
|
7252
7247
|
Lr.displayName = "ToggleGroupContext";
|
|
7253
|
-
const Dr = O.forwardRef(({ className: r, variant: e, theme: t, size: n, shape: i, children: a, ...o }, l) => /* @__PURE__ */ x(Lr.Provider, { value: { theme: t, size: n, shape: i }, children: /* @__PURE__ */ x(Pa, { ref: l, className:
|
|
7248
|
+
const Dr = O.forwardRef(({ className: r, variant: e, theme: t, size: n, shape: i, children: a, ...o }, l) => /* @__PURE__ */ x(Lr.Provider, { value: { theme: t, size: n, shape: i }, children: /* @__PURE__ */ x(Pa, { ref: l, className: J("flex items-center justify-center gap-1", r), ...o, children: a }) }));
|
|
7254
7249
|
Dr.displayName = Pa.displayName;
|
|
7255
7250
|
const ot = O.forwardRef(({ className: r, checked: e = !1, children: t, ...n }, i) => {
|
|
7256
7251
|
const a = O.useContext(Lr);
|
|
@@ -7258,7 +7253,7 @@ const ot = O.forwardRef(({ className: r, checked: e = !1, children: t, ...n }, i
|
|
|
7258
7253
|
Ma,
|
|
7259
7254
|
{
|
|
7260
7255
|
ref: i,
|
|
7261
|
-
className:
|
|
7256
|
+
className: J(
|
|
7262
7257
|
Eu({
|
|
7263
7258
|
theme: n.theme || a.theme || "primary",
|
|
7264
7259
|
size: n.size || a.size || "md",
|