@pfct/purple 1.16.2 → 1.17.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/dist/chunks/Accordion.DYya7dTN.js +1 -0
- package/dist/chunks/Accordion.DgWTtf1u.js +716 -0
- package/dist/chunks/Divider.CptJ_x2Y.js +1 -0
- package/dist/chunks/{Divider.DBtnaPqJ.js → Divider.DR-c4z_i.js} +16 -13
- package/dist/chunks/DotLottie.BQNTv0XO.js +5 -0
- package/dist/chunks/DotLottie.qOfU0HjI.js +1993 -0
- package/dist/chunks/Switch.D7T_jbtK.js +207 -0
- package/dist/chunks/Switch.DUWZASi8.js +1 -0
- package/dist/chunks/Toast.Bnm65xmy.js +1 -0
- package/dist/chunks/Toast.C7OnkFjA.js +698 -0
- package/dist/chunks/{bottomSheet.BGKwHjuP.js → bottomSheet.DCURoJ3z.js} +1 -1
- package/dist/chunks/{bottomSheet.C99fAuQK.js → bottomSheet.DqOEMG09.js} +1 -1
- package/dist/chunks/checkbox.DjQsU_Pk.js +1 -0
- package/dist/chunks/{checkbox.DNdnhspb.js → checkbox.Dl8nNqLc.js} +100 -92
- package/dist/chunks/dist.AclwPuO5.js +1 -0
- package/dist/chunks/{dist.BskID78S.js → dist.B0edyUiC.js} +176 -178
- package/dist/chunks/dist.B4GZ3aX4.js +111 -0
- package/dist/chunks/dist.BE2xxxwt.js +96 -0
- package/dist/chunks/dist.Ba6P-3sU.js +1 -0
- package/dist/chunks/dist.BaV_5zx8.js +186 -0
- package/dist/chunks/{dist.CDZCWPu4.js → dist.BnLwXMBJ.js} +8 -4
- package/dist/chunks/dist.BpQ7SpeW.js +227 -0
- package/dist/chunks/dist.Bui5aGSB.js +197 -0
- package/dist/chunks/dist.CBOTGT1c.js +1 -0
- package/dist/chunks/dist.CIvT5XE_.js +1 -0
- package/dist/chunks/dist.CKG-hzoQ.js +1 -0
- package/dist/chunks/{dist.QtpYoD01.js → dist.CVClT59R.js} +8 -3
- package/dist/chunks/dist.CcSbgqVt.js +1 -0
- package/dist/chunks/dist.Cf8FjzvS.js +1 -0
- package/dist/chunks/{dist.DIjdcvlQ.js → dist.Cx1JFVV3.js} +48 -59
- package/dist/chunks/dist.D7s7BenH.js +1 -0
- package/dist/chunks/dist.DQ5uOc4y.js +1 -0
- package/dist/chunks/dist.DWzqVshx.js +16 -0
- package/dist/chunks/dist.DfLaHIBc.js +1 -0
- package/dist/chunks/dist.DomaJxrX.js +1 -0
- package/dist/chunks/dist.e7n2cf43.js +144 -0
- package/dist/chunks/dist.gUJz6qTg.js +185 -0
- package/dist/chunks/dist.zJ3rbM0i.js +1 -0
- package/dist/chunks/drawer.Cots0_ea.js +7 -0
- package/dist/chunks/drawer.ftfBm36h.js +1836 -0
- package/dist/chunks/es2015.CfvYaoE5.js +41 -0
- package/dist/chunks/{es2015.ByVyszJo.js → es2015.DCKfm2VN.js} +168 -187
- package/dist/chunks/{src.D-VoFbup.js → src.BAhu5d2_.js} +1 -1
- package/dist/chunks/{src.CmgILXZE.js → src.DlM6Ki-I.js} +5 -5
- package/dist/chunks/tooltip.8vKL7w2a.js +1 -0
- package/dist/chunks/tooltip.D9PoXwtV.js +448 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.esm.js +1 -1
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.esm.js +1 -1
- package/dist/components/Control/index.cjs.js +1 -1
- package/dist/components/Control/index.esm.js +2 -2
- package/dist/components/Divider/index.cjs.js +1 -1
- package/dist/components/Divider/index.esm.js +1 -1
- package/dist/components/LegacyModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/index.esm.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.esm.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.esm.js +1 -1
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.esm.js +1 -1
- package/dist/components/Pagination/index.cjs.js +1 -1
- package/dist/components/Pagination/index.esm.js +1 -1
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.esm.js +1 -1
- package/dist/components/Tabs/index.cjs.js +1 -1
- package/dist/components/Tabs/index.esm.js +1 -1
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.esm.js +1 -1
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.esm.js +3 -3
- package/dist/components/Toast/index.cjs.js +1 -1
- package/dist/components/Toast/index.esm.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.esm.js +8 -8
- package/dist/components/ui/bottomSheet.cjs.js +1 -1
- package/dist/components/ui/bottomSheet.esm.js +1 -1
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.esm.js +1 -1
- package/dist/components/ui/checkbox.cjs.js +1 -1
- package/dist/components/ui/checkbox.esm.js +1 -1
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.esm.js +1 -1
- package/dist/components/ui/drawer.cjs.js +1 -1
- package/dist/components/ui/drawer.esm.js +1 -1
- package/dist/components/ui/impact-tooltip.cjs.js +1 -1
- package/dist/components/ui/impact-tooltip.esm.js +1 -1
- package/dist/components/ui/select.cjs.js +1 -1
- package/dist/components/ui/select.esm.js +3 -3
- package/dist/components/ui/tooltip.cjs.js +1 -1
- package/dist/components/ui/tooltip.esm.js +1 -1
- package/dist/components/ui/typography.cjs.js +1 -1
- package/dist/components/ui/typography.esm.js +1 -1
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +1 -1
- package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
- package/dist/icons/src/aliases/aliases.esm.js +3 -3
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.esm.js +3 -3
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +9 -9
- package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/prefixed.esm.js +3 -3
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +10 -10
- package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/suffixed.esm.js +3 -3
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.esm.js +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +12 -12
- package/dist/library/DotLottie/index.cjs.js +1 -1
- package/dist/library/DotLottie/index.d.ts +13 -0
- package/dist/library/DotLottie/index.d.ts.map +1 -1
- package/dist/library/DotLottie/index.esm.js +1 -1
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.d.ts +13 -0
- package/dist/library/Lottie/index.d.ts.map +1 -1
- package/dist/library/Lottie/index.esm.js +25 -25
- package/dist/library/index.cjs.js +1 -1
- package/dist/library/index.esm.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/Accordion.Cs1f4aQZ.js +0 -373
- package/dist/chunks/Accordion.ZIp0NsA0.js +0 -1
- package/dist/chunks/Divider.BIS4pXEy.js +0 -1
- package/dist/chunks/DotLottie.CaDygpsw.js +0 -73962
- package/dist/chunks/DotLottie.Cf-SL2bJ.js +0 -5
- package/dist/chunks/Switch.C6xwIjJR.js +0 -1
- package/dist/chunks/Switch.D_myxCrS.js +0 -200
- package/dist/chunks/Toast.Cjdk4za6.js +0 -1
- package/dist/chunks/Toast.D1-VfeA2.js +0 -685
- package/dist/chunks/checkbox.CfWB_nqn.js +0 -1
- package/dist/chunks/dist.B2wZmrK1.js +0 -98
- package/dist/chunks/dist.B8tpQk-4.js +0 -1
- package/dist/chunks/dist.BC0-iqKU.js +0 -1
- package/dist/chunks/dist.BGATFz6w.js +0 -1
- package/dist/chunks/dist.BQIeYu70.js +0 -1
- package/dist/chunks/dist.BWsA5f1f.js +0 -1
- package/dist/chunks/dist.BixLWWwb.js +0 -71
- package/dist/chunks/dist.Bxqi8VAi.js +0 -1
- package/dist/chunks/dist.C8FJXTu6.js +0 -10
- package/dist/chunks/dist.C8NniehT.js +0 -1
- package/dist/chunks/dist.C8k7jQIp.js +0 -87
- package/dist/chunks/dist.CEJ-WCY_.js +0 -44
- package/dist/chunks/dist.CIQdvun-.js +0 -1
- package/dist/chunks/dist.Cff8LOoN.js +0 -67
- package/dist/chunks/dist.CmRTDXGG.js +0 -1
- package/dist/chunks/dist.CwMFqhEQ.js +0 -146
- package/dist/chunks/dist.CwWM0zXK.js +0 -25
- package/dist/chunks/dist.CyhalHxz.js +0 -1
- package/dist/chunks/dist.Czpint58.js +0 -1
- package/dist/chunks/dist.D3cPoDZ_.js +0 -194
- package/dist/chunks/dist.D4mQo5QB.js +0 -1
- package/dist/chunks/dist.D5ataprQ.js +0 -1
- package/dist/chunks/dist.D6A3yc_d.js +0 -11
- package/dist/chunks/dist.DKOi9kq6.js +0 -1
- package/dist/chunks/dist.DhCw5vjE.js +0 -1
- package/dist/chunks/dist.DrfVZqiO.js +0 -186
- package/dist/chunks/dist.SHmlpKFY.js +0 -1
- package/dist/chunks/dist.kg7EEYPp.js +0 -12
- package/dist/chunks/drawer.Cji5AtcU.js +0 -1720
- package/dist/chunks/drawer.Gt1AjdVH.js +0 -7
- package/dist/chunks/es2015.D2emqwtq.js +0 -41
- package/dist/chunks/tooltip.DGgNTZ5B.js +0 -444
- package/dist/chunks/tooltip.vEwTtt8v.js +0 -1
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./dist.Cff8LOoN.js";
|
|
2
|
-
import { t as n } from "./dist.CwWM0zXK.js";
|
|
3
|
-
import { n as r } from "./dist.BixLWWwb.js";
|
|
4
|
-
import { n as i, t as a } from "./dist.CEJ-WCY_.js";
|
|
5
|
-
import { t as o } from "./dist.CDZCWPu4.js";
|
|
6
|
-
import { t as s } from "./dist.C8k7jQIp.js";
|
|
7
|
-
import { t as c } from "./dist.kg7EEYPp.js";
|
|
8
|
-
import l from "../icons/src/icons/Chevron_down.esm.js";
|
|
9
|
-
import "../icons/src/aliases/index.esm.js";
|
|
10
|
-
import { t as u } from "./utils.UNiIm9Bz.js";
|
|
11
|
-
import * as d from "react";
|
|
12
|
-
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
13
|
-
//#region node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
14
|
-
function m(t) {
|
|
15
|
-
let i = t + "CollectionProvider", [a, o] = e(i), [s, c] = a(i, {
|
|
16
|
-
collectionRef: { current: null },
|
|
17
|
-
itemMap: /* @__PURE__ */ new Map()
|
|
18
|
-
}), l = (e) => {
|
|
19
|
-
let { scope: t, children: n } = e, r = d.useRef(null), i = d.useRef(/* @__PURE__ */ new Map()).current;
|
|
20
|
-
return /* @__PURE__ */ f(s, {
|
|
21
|
-
scope: t,
|
|
22
|
-
itemMap: i,
|
|
23
|
-
collectionRef: r,
|
|
24
|
-
children: n
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
l.displayName = i;
|
|
28
|
-
let u = t + "CollectionSlot", p = r(u), m = d.forwardRef((e, t) => {
|
|
29
|
-
let { scope: r, children: i } = e, a = n(t, c(u, r).collectionRef);
|
|
30
|
-
return /* @__PURE__ */ f(p, {
|
|
31
|
-
ref: a,
|
|
32
|
-
children: i
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
m.displayName = u;
|
|
36
|
-
let h = t + "CollectionItemSlot", g = "data-radix-collection-item", _ = r(h), v = d.forwardRef((e, t) => {
|
|
37
|
-
let { scope: r, children: i, ...a } = e, o = d.useRef(null), s = n(t, o), l = c(h, r);
|
|
38
|
-
return d.useEffect(() => (l.itemMap.set(o, {
|
|
39
|
-
ref: o,
|
|
40
|
-
...a
|
|
41
|
-
}), () => void l.itemMap.delete(o))), /* @__PURE__ */ f(_, {
|
|
42
|
-
[g]: "",
|
|
43
|
-
ref: s,
|
|
44
|
-
children: i
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
v.displayName = h;
|
|
48
|
-
function y(e) {
|
|
49
|
-
let n = c(t + "CollectionConsumer", e);
|
|
50
|
-
return d.useCallback(() => {
|
|
51
|
-
let e = n.collectionRef.current;
|
|
52
|
-
if (!e) return [];
|
|
53
|
-
let t = Array.from(e.querySelectorAll(`[${g}]`));
|
|
54
|
-
return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
|
|
55
|
-
}, [n.collectionRef, n.itemMap]);
|
|
56
|
-
}
|
|
57
|
-
return [
|
|
58
|
-
{
|
|
59
|
-
Provider: l,
|
|
60
|
-
Slot: m,
|
|
61
|
-
ItemSlot: v
|
|
62
|
-
},
|
|
63
|
-
y,
|
|
64
|
-
o
|
|
65
|
-
];
|
|
66
|
-
}
|
|
67
|
-
//#endregion
|
|
68
|
-
//#region node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
69
|
-
var h = "Collapsible", [g, _] = e(h), [v, y] = g(h), b = d.forwardRef((e, t) => {
|
|
70
|
-
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: s, onOpenChange: l, ...u } = e, [p, m] = a({
|
|
71
|
-
prop: r,
|
|
72
|
-
defaultProp: i ?? !1,
|
|
73
|
-
onChange: l,
|
|
74
|
-
caller: h
|
|
75
|
-
});
|
|
76
|
-
return /* @__PURE__ */ f(v, {
|
|
77
|
-
scope: n,
|
|
78
|
-
disabled: s,
|
|
79
|
-
contentId: c(),
|
|
80
|
-
open: p,
|
|
81
|
-
onOpenToggle: d.useCallback(() => m((e) => !e), [m]),
|
|
82
|
-
children: /* @__PURE__ */ f(o.div, {
|
|
83
|
-
"data-state": E(p),
|
|
84
|
-
"data-disabled": s ? "" : void 0,
|
|
85
|
-
...u,
|
|
86
|
-
ref: t
|
|
87
|
-
})
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
b.displayName = h;
|
|
91
|
-
var x = "CollapsibleTrigger", S = d.forwardRef((e, n) => {
|
|
92
|
-
let { __scopeCollapsible: r, ...i } = e, a = y(x, r);
|
|
93
|
-
return /* @__PURE__ */ f(o.button, {
|
|
94
|
-
type: "button",
|
|
95
|
-
"aria-controls": a.open ? a.contentId : void 0,
|
|
96
|
-
"aria-expanded": a.open || !1,
|
|
97
|
-
"data-state": E(a.open),
|
|
98
|
-
"data-disabled": a.disabled ? "" : void 0,
|
|
99
|
-
disabled: a.disabled,
|
|
100
|
-
...i,
|
|
101
|
-
ref: n,
|
|
102
|
-
onClick: t(e.onClick, a.onOpenToggle)
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
S.displayName = x;
|
|
106
|
-
var C = "CollapsibleContent", w = d.forwardRef((e, t) => {
|
|
107
|
-
let { forceMount: n, ...r } = e, i = y(C, e.__scopeCollapsible);
|
|
108
|
-
return /* @__PURE__ */ f(s, {
|
|
109
|
-
present: n || i.open,
|
|
110
|
-
children: ({ present: e }) => /* @__PURE__ */ f(T, {
|
|
111
|
-
...r,
|
|
112
|
-
ref: t,
|
|
113
|
-
present: e
|
|
114
|
-
})
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
w.displayName = C;
|
|
118
|
-
var T = d.forwardRef((e, t) => {
|
|
119
|
-
let { __scopeCollapsible: r, present: a, children: s, ...c } = e, l = y(C, r), [u, p] = d.useState(a), m = d.useRef(null), h = n(t, m), g = d.useRef(0), _ = g.current, v = d.useRef(0), b = v.current, x = l.open || u, S = d.useRef(x), w = d.useRef(void 0);
|
|
120
|
-
return d.useEffect(() => {
|
|
121
|
-
let e = requestAnimationFrame(() => S.current = !1);
|
|
122
|
-
return () => cancelAnimationFrame(e);
|
|
123
|
-
}, []), i(() => {
|
|
124
|
-
let e = m.current;
|
|
125
|
-
if (e) {
|
|
126
|
-
w.current = w.current || {
|
|
127
|
-
transitionDuration: e.style.transitionDuration,
|
|
128
|
-
animationName: e.style.animationName
|
|
129
|
-
}, e.style.transitionDuration = "0s", e.style.animationName = "none";
|
|
130
|
-
let t = e.getBoundingClientRect();
|
|
131
|
-
g.current = t.height, v.current = t.width, S.current || (e.style.transitionDuration = w.current.transitionDuration, e.style.animationName = w.current.animationName), p(a);
|
|
132
|
-
}
|
|
133
|
-
}, [l.open, a]), /* @__PURE__ */ f(o.div, {
|
|
134
|
-
"data-state": E(l.open),
|
|
135
|
-
"data-disabled": l.disabled ? "" : void 0,
|
|
136
|
-
id: l.contentId,
|
|
137
|
-
hidden: !x,
|
|
138
|
-
...c,
|
|
139
|
-
ref: h,
|
|
140
|
-
style: {
|
|
141
|
-
"--radix-collapsible-content-height": _ ? `${_}px` : void 0,
|
|
142
|
-
"--radix-collapsible-content-width": b ? `${b}px` : void 0,
|
|
143
|
-
...e.style
|
|
144
|
-
},
|
|
145
|
-
children: x && s
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
function E(e) {
|
|
149
|
-
return e ? "open" : "closed";
|
|
150
|
-
}
|
|
151
|
-
var D = b, O = S, ee = w, k = d.createContext(void 0);
|
|
152
|
-
function A(e) {
|
|
153
|
-
let t = d.useContext(k);
|
|
154
|
-
return e || t || "ltr";
|
|
155
|
-
}
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
158
|
-
var j = "Accordion", M = [
|
|
159
|
-
"Home",
|
|
160
|
-
"End",
|
|
161
|
-
"ArrowDown",
|
|
162
|
-
"ArrowUp",
|
|
163
|
-
"ArrowLeft",
|
|
164
|
-
"ArrowRight"
|
|
165
|
-
], [N, te, ne] = m(j), [P, re] = e(j, [ne, _]), F = _(), I = d.forwardRef((e, t) => {
|
|
166
|
-
let { type: n, ...r } = e, i = r, a = r;
|
|
167
|
-
return /* @__PURE__ */ f(N.Provider, {
|
|
168
|
-
scope: e.__scopeAccordion,
|
|
169
|
-
children: n === "multiple" ? /* @__PURE__ */ f(se, {
|
|
170
|
-
...a,
|
|
171
|
-
ref: t
|
|
172
|
-
}) : /* @__PURE__ */ f(oe, {
|
|
173
|
-
...i,
|
|
174
|
-
ref: t
|
|
175
|
-
})
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
I.displayName = j;
|
|
179
|
-
var [L, ie] = P(j), [R, ae] = P(j, { collapsible: !1 }), oe = d.forwardRef((e, t) => {
|
|
180
|
-
let { value: n, defaultValue: r, onValueChange: i = () => {}, collapsible: o = !1, ...s } = e, [c, l] = a({
|
|
181
|
-
prop: n,
|
|
182
|
-
defaultProp: r ?? "",
|
|
183
|
-
onChange: i,
|
|
184
|
-
caller: j
|
|
185
|
-
});
|
|
186
|
-
return /* @__PURE__ */ f(L, {
|
|
187
|
-
scope: e.__scopeAccordion,
|
|
188
|
-
value: d.useMemo(() => c ? [c] : [], [c]),
|
|
189
|
-
onItemOpen: l,
|
|
190
|
-
onItemClose: d.useCallback(() => o && l(""), [o, l]),
|
|
191
|
-
children: /* @__PURE__ */ f(R, {
|
|
192
|
-
scope: e.__scopeAccordion,
|
|
193
|
-
collapsible: o,
|
|
194
|
-
children: /* @__PURE__ */ f(B, {
|
|
195
|
-
...s,
|
|
196
|
-
ref: t
|
|
197
|
-
})
|
|
198
|
-
})
|
|
199
|
-
});
|
|
200
|
-
}), se = d.forwardRef((e, t) => {
|
|
201
|
-
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...o } = e, [s, c] = a({
|
|
202
|
-
prop: n,
|
|
203
|
-
defaultProp: r ?? [],
|
|
204
|
-
onChange: i,
|
|
205
|
-
caller: j
|
|
206
|
-
}), l = d.useCallback((e) => c((t = []) => [...t, e]), [c]), u = d.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
207
|
-
return /* @__PURE__ */ f(L, {
|
|
208
|
-
scope: e.__scopeAccordion,
|
|
209
|
-
value: s,
|
|
210
|
-
onItemOpen: l,
|
|
211
|
-
onItemClose: u,
|
|
212
|
-
children: /* @__PURE__ */ f(R, {
|
|
213
|
-
scope: e.__scopeAccordion,
|
|
214
|
-
collapsible: !0,
|
|
215
|
-
children: /* @__PURE__ */ f(B, {
|
|
216
|
-
...o,
|
|
217
|
-
ref: t
|
|
218
|
-
})
|
|
219
|
-
})
|
|
220
|
-
});
|
|
221
|
-
}), [ce, z] = P(j), B = d.forwardRef((e, r) => {
|
|
222
|
-
let { __scopeAccordion: i, disabled: a, dir: s, orientation: c = "vertical", ...l } = e, u = n(d.useRef(null), r), p = te(i), m = A(s) === "ltr", h = t(e.onKeyDown, (e) => {
|
|
223
|
-
if (!M.includes(e.key)) return;
|
|
224
|
-
let t = e.target, n = p().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
225
|
-
if (r === -1) return;
|
|
226
|
-
e.preventDefault();
|
|
227
|
-
let a = r, o = i - 1, s = () => {
|
|
228
|
-
a = r + 1, a > o && (a = 0);
|
|
229
|
-
}, l = () => {
|
|
230
|
-
a = r - 1, a < 0 && (a = o);
|
|
231
|
-
};
|
|
232
|
-
switch (e.key) {
|
|
233
|
-
case "Home":
|
|
234
|
-
a = 0;
|
|
235
|
-
break;
|
|
236
|
-
case "End":
|
|
237
|
-
a = o;
|
|
238
|
-
break;
|
|
239
|
-
case "ArrowRight":
|
|
240
|
-
c === "horizontal" && (m ? s() : l());
|
|
241
|
-
break;
|
|
242
|
-
case "ArrowDown":
|
|
243
|
-
c === "vertical" && s();
|
|
244
|
-
break;
|
|
245
|
-
case "ArrowLeft":
|
|
246
|
-
c === "horizontal" && (m ? l() : s());
|
|
247
|
-
break;
|
|
248
|
-
case "ArrowUp":
|
|
249
|
-
c === "vertical" && l();
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
n[a % i].ref.current?.focus();
|
|
253
|
-
});
|
|
254
|
-
return /* @__PURE__ */ f(ce, {
|
|
255
|
-
scope: i,
|
|
256
|
-
disabled: a,
|
|
257
|
-
direction: s,
|
|
258
|
-
orientation: c,
|
|
259
|
-
children: /* @__PURE__ */ f(N.Slot, {
|
|
260
|
-
scope: i,
|
|
261
|
-
children: /* @__PURE__ */ f(o.div, {
|
|
262
|
-
...l,
|
|
263
|
-
"data-orientation": c,
|
|
264
|
-
ref: u,
|
|
265
|
-
onKeyDown: a ? void 0 : h
|
|
266
|
-
})
|
|
267
|
-
})
|
|
268
|
-
});
|
|
269
|
-
}), V = "AccordionItem", [H, U] = P(V), W = d.forwardRef((e, t) => {
|
|
270
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = z(V, n), o = ie(V, n), s = F(n), l = c(), u = r && o.value.includes(r) || !1, d = a.disabled || e.disabled;
|
|
271
|
-
return /* @__PURE__ */ f(H, {
|
|
272
|
-
scope: n,
|
|
273
|
-
open: u,
|
|
274
|
-
disabled: d,
|
|
275
|
-
triggerId: l,
|
|
276
|
-
children: /* @__PURE__ */ f(D, {
|
|
277
|
-
"data-orientation": a.orientation,
|
|
278
|
-
"data-state": Z(u),
|
|
279
|
-
...s,
|
|
280
|
-
...i,
|
|
281
|
-
ref: t,
|
|
282
|
-
disabled: d,
|
|
283
|
-
open: u,
|
|
284
|
-
onOpenChange: (e) => {
|
|
285
|
-
e ? o.onItemOpen(r) : o.onItemClose(r);
|
|
286
|
-
}
|
|
287
|
-
})
|
|
288
|
-
});
|
|
289
|
-
});
|
|
290
|
-
W.displayName = V;
|
|
291
|
-
var G = "AccordionHeader", K = d.forwardRef((e, t) => {
|
|
292
|
-
let { __scopeAccordion: n, ...r } = e, i = z(j, n), a = U(G, n);
|
|
293
|
-
return /* @__PURE__ */ f(o.h3, {
|
|
294
|
-
"data-orientation": i.orientation,
|
|
295
|
-
"data-state": Z(a.open),
|
|
296
|
-
"data-disabled": a.disabled ? "" : void 0,
|
|
297
|
-
...r,
|
|
298
|
-
ref: t
|
|
299
|
-
});
|
|
300
|
-
});
|
|
301
|
-
K.displayName = G;
|
|
302
|
-
var q = "AccordionTrigger", J = d.forwardRef((e, t) => {
|
|
303
|
-
let { __scopeAccordion: n, ...r } = e, i = z(j, n), a = U(q, n), o = ae(q, n), s = F(n);
|
|
304
|
-
return /* @__PURE__ */ f(N.ItemSlot, {
|
|
305
|
-
scope: n,
|
|
306
|
-
children: /* @__PURE__ */ f(O, {
|
|
307
|
-
"aria-disabled": a.open && !o.collapsible || void 0,
|
|
308
|
-
"data-orientation": i.orientation,
|
|
309
|
-
id: a.triggerId,
|
|
310
|
-
...s,
|
|
311
|
-
...r,
|
|
312
|
-
ref: t
|
|
313
|
-
})
|
|
314
|
-
});
|
|
315
|
-
});
|
|
316
|
-
J.displayName = q;
|
|
317
|
-
var Y = "AccordionContent", X = d.forwardRef((e, t) => {
|
|
318
|
-
let { __scopeAccordion: n, ...r } = e, i = z(j, n), a = U(Y, n), o = F(n);
|
|
319
|
-
return /* @__PURE__ */ f(ee, {
|
|
320
|
-
role: "region",
|
|
321
|
-
"aria-labelledby": a.triggerId,
|
|
322
|
-
"data-orientation": i.orientation,
|
|
323
|
-
...o,
|
|
324
|
-
...r,
|
|
325
|
-
ref: t,
|
|
326
|
-
style: {
|
|
327
|
-
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
328
|
-
"--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
|
|
329
|
-
...e.style
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
});
|
|
333
|
-
X.displayName = Y;
|
|
334
|
-
function Z(e) {
|
|
335
|
-
return e ? "open" : "closed";
|
|
336
|
-
}
|
|
337
|
-
var le = I, ue = W, de = K, Q = J, fe = X, $ = ({ ref: e, ...t }) => /* @__PURE__ */ f(le, {
|
|
338
|
-
"data-slot": "accordion",
|
|
339
|
-
ref: e,
|
|
340
|
-
...t
|
|
341
|
-
});
|
|
342
|
-
$.displayName = "Accordion";
|
|
343
|
-
function pe({ className: e, ...t }) {
|
|
344
|
-
return /* @__PURE__ */ f(ue, {
|
|
345
|
-
className: e,
|
|
346
|
-
"data-slot": "accordion-item",
|
|
347
|
-
...t
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
function me({ className: e, children: t, customIcon: n, ...r }) {
|
|
351
|
-
return /* @__PURE__ */ f(de, {
|
|
352
|
-
className: "flex w-full",
|
|
353
|
-
children: /* @__PURE__ */ p(Q, {
|
|
354
|
-
className: u("flex flex-1 items-center justify-between gap-[3px] py-[15px] text-left outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none [&[data-state=open]>svg]:-rotate-180", e),
|
|
355
|
-
"data-slot": "accordion-trigger",
|
|
356
|
-
...r,
|
|
357
|
-
children: [t, n ?? /* @__PURE__ */ f(l, { className: u("pointer-events-none shrink-0 text-gray-200 transition-transform duration-300", "h-3.75 pc:h-5 pc:w-5 w-3.75") })]
|
|
358
|
-
})
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
function he({ className: e, children: t, ...n }) {
|
|
362
|
-
return /* @__PURE__ */ f(fe, {
|
|
363
|
-
className: "overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
364
|
-
"data-slot": "accordion-content",
|
|
365
|
-
...n,
|
|
366
|
-
children: /* @__PURE__ */ f("div", {
|
|
367
|
-
className: u("rounded-[10px] bg-gray-25 px-[20px] py-[15px]", e),
|
|
368
|
-
children: t
|
|
369
|
-
})
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
//#endregion
|
|
373
|
-
export { me as i, he as n, pe as r, $ as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.B8tpQk-4.js"),n=require("./dist.BWsA5f1f.js"),r=require("./dist.DKOi9kq6.js"),i=require("./dist.CIQdvun-.js"),a=require("./dist.CmRTDXGG.js"),o=require("./dist.D4mQo5QB.js"),s=require("./dist.BQIeYu70.js"),c=require("../icons/src/icons/Chevron_down.cjs.js");require("../icons/src/aliases/index.cjs.js");const l=require("./utils.DxA7tdMJ.js");let u=require("react");u=e.r(u,1);let d=require("react/jsx-runtime");function f(e){let i=e+`CollectionProvider`,[a,o]=t.n(i),[s,c]=a(i,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,r=u.useRef(null),i=u.useRef(new Map).current;return(0,d.jsx)(s,{scope:t,itemMap:i,collectionRef:r,children:n})};l.displayName=i;let f=e+`CollectionSlot`,p=r.n(f),m=u.forwardRef((e,t)=>{let{scope:r,children:i}=e,a=n.t(t,c(f,r).collectionRef);return(0,d.jsx)(p,{ref:a,children:i})});m.displayName=f;let h=e+`CollectionItemSlot`,g=`data-radix-collection-item`,_=r.n(h),v=u.forwardRef((e,t)=>{let{scope:r,children:i,...a}=e,o=u.useRef(null),s=n.t(t,o),l=c(h,r);return u.useEffect(()=>(l.itemMap.set(o,{ref:o,...a}),()=>void l.itemMap.delete(o))),(0,d.jsx)(_,{[g]:``,ref:s,children:i})});v.displayName=h;function y(t){let n=c(e+`CollectionConsumer`,t);return u.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:l,Slot:m,ItemSlot:v},y,o]}var p=`Collapsible`,[m,h]=t.n(p),[g,_]=m(p),v=u.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:c,onOpenChange:l,...f}=e,[m,h]=i.t({prop:r,defaultProp:o??!1,onChange:l,caller:p});return(0,d.jsx)(g,{scope:n,disabled:c,contentId:s.t(),open:m,onOpenToggle:u.useCallback(()=>h(e=>!e),[h]),children:(0,d.jsx)(a.t.div,{"data-state":w(m),"data-disabled":c?``:void 0,...f,ref:t})})});v.displayName=p;var y=`CollapsibleTrigger`,b=u.forwardRef((e,n)=>{let{__scopeCollapsible:r,...i}=e,o=_(y,r);return(0,d.jsx)(a.t.button,{type:`button`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":w(o.open),"data-disabled":o.disabled?``:void 0,disabled:o.disabled,...i,ref:n,onClick:t.t(e.onClick,o.onOpenToggle)})});b.displayName=y;var x=`CollapsibleContent`,S=u.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=_(x,e.__scopeCollapsible);return(0,d.jsx)(o.t,{present:n||i.open,children:({present:e})=>(0,d.jsx)(C,{...r,ref:t,present:e})})});S.displayName=x;var C=u.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:o,children:s,...c}=e,l=_(x,r),[f,p]=u.useState(o),m=u.useRef(null),h=n.t(t,m),g=u.useRef(0),v=g.current,y=u.useRef(0),b=y.current,S=l.open||f,C=u.useRef(S),T=u.useRef(void 0);return u.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),i.n(()=>{let e=m.current;if(e){T.current=T.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,C.current||(e.style.transitionDuration=T.current.transitionDuration,e.style.animationName=T.current.animationName),p(o)}},[l.open,o]),(0,d.jsx)(a.t.div,{"data-state":w(l.open),"data-disabled":l.disabled?``:void 0,id:l.contentId,hidden:!S,...c,ref:h,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:S&&s})});function w(e){return e?`open`:`closed`}var T=v,ee=b,E=S,te=u.createContext(void 0);function D(e){let t=u.useContext(te);return e||t||`ltr`}var O=`Accordion`,ne=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[k,A,j]=f(O),[M,re]=t.n(O,[j,h]),N=h(),P=u.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,d.jsx)(k.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,d.jsx)(ae,{...a,ref:t}):(0,d.jsx)(ie,{...i,ref:t})})});P.displayName=O;var[F,I]=M(O),[L,R]=M(O,{collapsible:!1}),ie=u.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:a=()=>{},collapsible:o=!1,...s}=e,[c,l]=i.t({prop:n,defaultProp:r??``,onChange:a,caller:O});return(0,d.jsx)(F,{scope:e.__scopeAccordion,value:u.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:u.useCallback(()=>o&&l(``),[o,l]),children:(0,d.jsx)(L,{scope:e.__scopeAccordion,collapsible:o,children:(0,d.jsx)(B,{...s,ref:t})})})}),ae=u.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:a=()=>{},...o}=e,[s,c]=i.t({prop:n,defaultProp:r??[],onChange:a,caller:O}),l=u.useCallback(e=>c((t=[])=>[...t,e]),[c]),f=u.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,d.jsx)(F,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:f,children:(0,d.jsx)(L,{scope:e.__scopeAccordion,collapsible:!0,children:(0,d.jsx)(B,{...o,ref:t})})})}),[oe,z]=M(O),B=u.forwardRef((e,r)=>{let{__scopeAccordion:i,disabled:o,dir:s,orientation:c=`vertical`,...l}=e,f=n.t(u.useRef(null),r),p=A(i),m=D(s)===`ltr`,h=t.t(e.onKeyDown,e=>{if(!ne.includes(e.key))return;let t=e.target,n=p().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let a=r,o=i-1,s=()=>{a=r+1,a>o&&(a=0)},l=()=>{a=r-1,a<0&&(a=o)};switch(e.key){case`Home`:a=0;break;case`End`:a=o;break;case`ArrowRight`:c===`horizontal`&&(m?s():l());break;case`ArrowDown`:c===`vertical`&&s();break;case`ArrowLeft`:c===`horizontal`&&(m?l():s());break;case`ArrowUp`:c===`vertical`&&l();break}n[a%i].ref.current?.focus()});return(0,d.jsx)(oe,{scope:i,disabled:o,direction:s,orientation:c,children:(0,d.jsx)(k.Slot,{scope:i,children:(0,d.jsx)(a.t.div,{...l,"data-orientation":c,ref:f,onKeyDown:o?void 0:h})})})}),V=`AccordionItem`,[H,U]=M(V),W=u.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=z(V,n),o=I(V,n),c=N(n),l=s.t(),u=r&&o.value.includes(r)||!1,f=a.disabled||e.disabled;return(0,d.jsx)(H,{scope:n,open:u,disabled:f,triggerId:l,children:(0,d.jsx)(T,{"data-orientation":a.orientation,"data-state":Z(u),...c,...i,ref:t,disabled:f,open:u,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});W.displayName=V;var G=`AccordionHeader`,K=u.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=z(O,n),o=U(G,n);return(0,d.jsx)(a.t.h3,{"data-orientation":i.orientation,"data-state":Z(o.open),"data-disabled":o.disabled?``:void 0,...r,ref:t})});K.displayName=G;var q=`AccordionTrigger`,J=u.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=z(O,n),a=U(q,n),o=R(q,n),s=N(n);return(0,d.jsx)(k.ItemSlot,{scope:n,children:(0,d.jsx)(ee,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});J.displayName=q;var Y=`AccordionContent`,X=u.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=z(O,n),a=U(Y,n),o=N(n);return(0,d.jsx)(E,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});X.displayName=Y;function Z(e){return e?`open`:`closed`}var se=P,ce=W,le=K,ue=J,Q=X,$=({ref:e,...t})=>(0,d.jsx)(se,{"data-slot":`accordion`,ref:e,...t});$.displayName=`Accordion`;function de({className:e,...t}){return(0,d.jsx)(ce,{className:e,"data-slot":`accordion-item`,...t})}function fe({className:e,children:t,customIcon:n,...r}){return(0,d.jsx)(le,{className:`flex w-full`,children:(0,d.jsxs)(ue,{className:l.t(`flex flex-1 items-center justify-between gap-[3px] py-[15px] text-left outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none [&[data-state=open]>svg]:-rotate-180`,e),"data-slot":`accordion-trigger`,...r,children:[t,n??(0,d.jsx)(c.default,{className:l.t(`pointer-events-none shrink-0 text-gray-200 transition-transform duration-300`,`h-3.75 pc:h-5 pc:w-5 w-3.75`)})]})})}function pe({className:e,children:t,...n}){return(0,d.jsx)(Q,{className:`overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,"data-slot":`accordion-content`,...n,children:(0,d.jsx)(`div`,{className:l.t(`rounded-[10px] bg-gray-25 px-[20px] py-[15px]`,e),children:t})})}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return $}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.CmRTDXGG.js"),n=require("./utils.DxA7tdMJ.js");let r=require("react");r=e.r(r,1);let i=require("react/jsx-runtime");var a=`Separator`,o=`horizontal`,s=[`horizontal`,`vertical`],c=r.forwardRef((e,n)=>{let{decorative:r,orientation:a=o,...s}=e,c=l(a)?a:o,u=r?{role:`none`}:{"aria-orientation":c===`vertical`?c:void 0,role:`separator`};return(0,i.jsx)(t.t.div,{"data-orientation":c,...u,...s,ref:n})});c.displayName=a;function l(e){return s.includes(e)}var u=c;function d({className:e,orientation:t=`horizontal`,size:r=`s`,decorative:a=!0,...o}){return(0,i.jsx)(u,{className:n.t(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px`,r===`s`?`bg-gray-50 data-[orientation=horizontal]:h-0.25`:`bg-gray-25 data-[orientation=horizontal]:h-3.75`,e),"data-slot":`separator`,decorative:a,orientation:t,...o})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|