@pfct/purple 1.15.1 → 1.16.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/assets/index.css +2 -2
- package/dist/chunks/{Accordion.6fAW322P.js → Accordion.Cs1f4aQZ.js} +37 -36
- package/dist/chunks/Accordion.ZIp0NsA0.js +1 -0
- package/dist/chunks/{DotLottie.-8NWMOKQ.js → DotLottie.CaDygpsw.js} +5682 -3166
- package/dist/chunks/DotLottie.Cf-SL2bJ.js +5 -0
- package/dist/chunks/Switch.C6xwIjJR.js +1 -0
- package/dist/chunks/{Switch.DZP1mWLt.js → Switch.D_myxCrS.js} +31 -20
- package/dist/chunks/{bottomSheet.BH73fUXU.js → bottomSheet.BGKwHjuP.js} +1 -1
- package/dist/chunks/{bottomSheet.M3yxr5-0.js → bottomSheet.C99fAuQK.js} +1 -1
- package/dist/chunks/{calendar.DyOEuwp0.js → calendar.BMivAvH4.js} +449 -446
- package/dist/chunks/calendar.DRakro7x.js +1 -0
- package/dist/chunks/checkbox.CfWB_nqn.js +1 -0
- package/dist/chunks/{checkbox.DihHSceK.js → checkbox.DNdnhspb.js} +14 -13
- package/dist/chunks/{dateMatchModifiers.BP6awhUm.js → dateMatchModifiers.DteXiCog.js} +1 -1
- package/dist/chunks/{dateMatchModifiers.DWzTSPL9.js → dateMatchModifiers.T1FaMebC.js} +1 -1
- package/dist/chunks/{dist.CYRtTgUR.js → dist.B2wZmrK1.js} +26 -24
- package/dist/chunks/dist.B8tpQk-4.js +1 -0
- package/dist/chunks/{dist.DJPq2jOJ.js → dist.BC0-iqKU.js} +1 -1
- package/dist/chunks/{dist.D3epBPq9.js → dist.BGATFz6w.js} +1 -1
- package/dist/chunks/{dist.D3MzxMSH.js → dist.BQIeYu70.js} +1 -1
- package/dist/chunks/{dist.DAQtqq8Q.js → dist.BskID78S.js} +10 -9
- package/dist/chunks/{dist.Bt6mCKem.js → dist.Bxqi8VAi.js} +1 -1
- package/dist/chunks/{dist.DSx7Feoc.js → dist.C8k7jQIp.js} +15 -12
- package/dist/chunks/dist.CEJ-WCY_.js +44 -0
- package/dist/chunks/dist.CIQdvun-.js +1 -0
- package/dist/chunks/dist.Cff8LOoN.js +67 -0
- package/dist/chunks/{dist.DuawELEr.js → dist.CwMFqhEQ.js} +2 -1
- package/dist/chunks/dist.CyhalHxz.js +1 -0
- package/dist/chunks/dist.Czpint58.js +1 -0
- package/dist/chunks/{dist.DrZbhygc.js → dist.D3cPoDZ_.js} +26 -25
- package/dist/chunks/dist.D4mQo5QB.js +1 -0
- package/dist/chunks/dist.D5ataprQ.js +1 -0
- package/dist/chunks/{dist.DHqfAMUX.js → dist.DIjdcvlQ.js} +25 -24
- package/dist/chunks/dist.DhCw5vjE.js +1 -0
- package/dist/chunks/dist.DrfVZqiO.js +186 -0
- package/dist/chunks/{dist.CB-rIMVI.js → dist.QtpYoD01.js} +1 -1
- package/dist/chunks/{dist.0EAhIi1e.js → dist.kg7EEYPp.js} +1 -1
- package/dist/chunks/drawer.Cji5AtcU.js +1720 -0
- package/dist/chunks/drawer.Gt1AjdVH.js +7 -0
- package/dist/chunks/{src.ClN0uvp3.js → src.CmgILXZE.js} +4 -4
- package/dist/chunks/{src.DfmpOXyx.js → src.D-VoFbup.js} +1 -1
- package/dist/chunks/{test.DNmyFkvJ.D_-8uo_7.js → test.DNmyFkvJ.B-Ui2GEb.js} +1 -1
- package/dist/chunks/{tooltip.D_ECTwc-.js → tooltip.DGgNTZ5B.js} +22 -21
- package/dist/chunks/tooltip.vEwTtt8v.js +1 -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/DatePicker/RangeDatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/RangeDatePicker.esm.js +1 -1
- package/dist/components/DatePicker/RangeDatePicker.test.esm.js +1 -1
- package/dist/components/DatePicker/SingleDatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/SingleDatePicker.esm.js +1 -1
- package/dist/components/DatePicker/SingleDatePicker.test.esm.js +1 -1
- package/dist/components/DatePicker/hooks.cjs.js +1 -1
- package/dist/components/DatePicker/hooks.esm.js +1 -1
- package/dist/components/DatePicker/styles.cjs.js +1 -1
- package/dist/components/DatePicker/styles.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/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.esm.js +1 -1
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.d.ts.map +1 -1
- package/dist/components/SelectBox/index.esm.js +16 -53
- 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/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.esm.js +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.esm.js +7 -7
- package/dist/components/ui/bottomSheet.cjs.js +1 -1
- package/dist/components/ui/bottomSheet.esm.js +1 -1
- package/dist/components/ui/calendar.cjs.js +1 -1
- package/dist/components/ui/calendar.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.d.ts.map +1 -1
- package/dist/components/ui/select.esm.js +8 -6
- package/dist/components/ui/tooltip.cjs.js +1 -1
- package/dist/components/ui/tooltip.esm.js +1 -1
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +2 -2
- package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
- package/dist/icons/src/aliases/aliases.esm.js +6 -6
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.esm.js +6 -6
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +5 -5
- package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/prefixed.esm.js +6 -6
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +11 -11
- package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/suffixed.esm.js +6 -6
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.d.ts +2 -2
- package/dist/icons/src/icons/index.d.ts.map +1 -1
- package/dist/icons/src/icons/index.esm.js +6 -6
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +14 -14
- package/dist/library/DotLottie/index.cjs.js +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.esm.js +1 -1
- package/dist/library/index.cjs.js +1 -1
- package/dist/library/index.esm.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/Accordion.DnnZvp-k.js +0 -1
- package/dist/chunks/DotLottie.BCyB3kR7.js +0 -5
- package/dist/chunks/Switch.Cf6DiCUV.js +0 -1
- package/dist/chunks/calendar.B-KPMIgz.js +0 -1
- package/dist/chunks/checkbox.kS_54E9q.js +0 -1
- package/dist/chunks/dist.BovUpaIu.js +0 -142
- package/dist/chunks/dist.C6Y9cYZm.js +0 -1
- package/dist/chunks/dist.Cf37BjoU.js +0 -1
- package/dist/chunks/dist.DV3oUYlD.js +0 -1
- package/dist/chunks/dist.DciOZstR.js +0 -1
- package/dist/chunks/dist.cKdeuHWp.js +0 -1
- package/dist/chunks/dist.s6QukJK1.js +0 -172
- package/dist/chunks/dist.xhWLHjmj.js +0 -1
- package/dist/chunks/drawer.CtoEYCdv.js +0 -7
- package/dist/chunks/drawer.EQu-ewat.js +0 -1556
- package/dist/chunks/tooltip.BIAjX12E.js +0 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as
|
|
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";
|
|
4
5
|
import { t as o } from "./dist.CDZCWPu4.js";
|
|
5
|
-
import { t as s } from "./dist.
|
|
6
|
-
import { t as c } from "./dist.
|
|
6
|
+
import { t as s } from "./dist.C8k7jQIp.js";
|
|
7
|
+
import { t as c } from "./dist.kg7EEYPp.js";
|
|
7
8
|
import l from "../icons/src/icons/Chevron_down.esm.js";
|
|
8
9
|
import "../icons/src/aliases/index.esm.js";
|
|
9
10
|
import { t as u } from "./utils.UNiIm9Bz.js";
|
|
10
11
|
import * as d from "react";
|
|
11
12
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
12
13
|
//#region node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
13
|
-
function m(
|
|
14
|
-
let
|
|
14
|
+
function m(t) {
|
|
15
|
+
let i = t + "CollectionProvider", [a, o] = e(i), [s, c] = a(i, {
|
|
15
16
|
collectionRef: { current: null },
|
|
16
17
|
itemMap: /* @__PURE__ */ new Map()
|
|
17
18
|
}), l = (e) => {
|
|
@@ -23,29 +24,29 @@ function m(e) {
|
|
|
23
24
|
children: n
|
|
24
25
|
});
|
|
25
26
|
};
|
|
26
|
-
l.displayName =
|
|
27
|
-
let u =
|
|
28
|
-
let { scope:
|
|
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);
|
|
29
30
|
return /* @__PURE__ */ f(p, {
|
|
30
31
|
ref: a,
|
|
31
|
-
children:
|
|
32
|
+
children: i
|
|
32
33
|
});
|
|
33
34
|
});
|
|
34
35
|
m.displayName = u;
|
|
35
|
-
let h =
|
|
36
|
-
let { scope:
|
|
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);
|
|
37
38
|
return d.useEffect(() => (l.itemMap.set(o, {
|
|
38
39
|
ref: o,
|
|
39
40
|
...a
|
|
40
41
|
}), () => void l.itemMap.delete(o))), /* @__PURE__ */ f(_, {
|
|
41
42
|
[g]: "",
|
|
42
43
|
ref: s,
|
|
43
|
-
children:
|
|
44
|
+
children: i
|
|
44
45
|
});
|
|
45
46
|
});
|
|
46
47
|
v.displayName = h;
|
|
47
|
-
function y(
|
|
48
|
-
let n = c(
|
|
48
|
+
function y(e) {
|
|
49
|
+
let n = c(t + "CollectionConsumer", e);
|
|
49
50
|
return d.useCallback(() => {
|
|
50
51
|
let e = n.collectionRef.current;
|
|
51
52
|
if (!e) return [];
|
|
@@ -65,10 +66,10 @@ function m(e) {
|
|
|
65
66
|
}
|
|
66
67
|
//#endregion
|
|
67
68
|
//#region node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
68
|
-
var h = "Collapsible", [g, _] =
|
|
69
|
-
let { __scopeCollapsible: n, open:
|
|
70
|
-
prop:
|
|
71
|
-
defaultProp:
|
|
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,
|
|
72
73
|
onChange: l,
|
|
73
74
|
caller: h
|
|
74
75
|
});
|
|
@@ -87,8 +88,8 @@ var h = "Collapsible", [g, _] = t(h), [v, y] = g(h), b = d.forwardRef((e, t) =>
|
|
|
87
88
|
});
|
|
88
89
|
});
|
|
89
90
|
b.displayName = h;
|
|
90
|
-
var x = "CollapsibleTrigger", S = d.forwardRef((
|
|
91
|
-
let { __scopeCollapsible: r, ...i } =
|
|
91
|
+
var x = "CollapsibleTrigger", S = d.forwardRef((e, n) => {
|
|
92
|
+
let { __scopeCollapsible: r, ...i } = e, a = y(x, r);
|
|
92
93
|
return /* @__PURE__ */ f(o.button, {
|
|
93
94
|
type: "button",
|
|
94
95
|
"aria-controls": a.open ? a.contentId : void 0,
|
|
@@ -98,7 +99,7 @@ var x = "CollapsibleTrigger", S = d.forwardRef((t, n) => {
|
|
|
98
99
|
disabled: a.disabled,
|
|
99
100
|
...i,
|
|
100
101
|
ref: n,
|
|
101
|
-
onClick: e
|
|
102
|
+
onClick: t(e.onClick, a.onOpenToggle)
|
|
102
103
|
});
|
|
103
104
|
});
|
|
104
105
|
S.displayName = x;
|
|
@@ -115,11 +116,11 @@ var C = "CollapsibleContent", w = d.forwardRef((e, t) => {
|
|
|
115
116
|
});
|
|
116
117
|
w.displayName = C;
|
|
117
118
|
var T = d.forwardRef((e, t) => {
|
|
118
|
-
let { __scopeCollapsible: r, present: a, children: s, ...c } = e, l = y(C, r), [u, p] = d.useState(a), m = d.useRef(null), h =
|
|
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);
|
|
119
120
|
return d.useEffect(() => {
|
|
120
121
|
let e = requestAnimationFrame(() => S.current = !1);
|
|
121
122
|
return () => cancelAnimationFrame(e);
|
|
122
|
-
}, []),
|
|
123
|
+
}, []), i(() => {
|
|
123
124
|
let e = m.current;
|
|
124
125
|
if (e) {
|
|
125
126
|
w.current = w.current || {
|
|
@@ -161,7 +162,7 @@ var j = "Accordion", M = [
|
|
|
161
162
|
"ArrowUp",
|
|
162
163
|
"ArrowLeft",
|
|
163
164
|
"ArrowRight"
|
|
164
|
-
], [N, te, ne] = m(j), [P, re] =
|
|
165
|
+
], [N, te, ne] = m(j), [P, re] = e(j, [ne, _]), F = _(), I = d.forwardRef((e, t) => {
|
|
165
166
|
let { type: n, ...r } = e, i = r, a = r;
|
|
166
167
|
return /* @__PURE__ */ f(N.Provider, {
|
|
167
168
|
scope: e.__scopeAccordion,
|
|
@@ -176,10 +177,10 @@ var j = "Accordion", M = [
|
|
|
176
177
|
});
|
|
177
178
|
I.displayName = j;
|
|
178
179
|
var [L, ie] = P(j), [R, ae] = P(j, { collapsible: !1 }), oe = d.forwardRef((e, t) => {
|
|
179
|
-
let { value: n, defaultValue:
|
|
180
|
+
let { value: n, defaultValue: r, onValueChange: i = () => {}, collapsible: o = !1, ...s } = e, [c, l] = a({
|
|
180
181
|
prop: n,
|
|
181
|
-
defaultProp:
|
|
182
|
-
onChange:
|
|
182
|
+
defaultProp: r ?? "",
|
|
183
|
+
onChange: i,
|
|
183
184
|
caller: j
|
|
184
185
|
});
|
|
185
186
|
return /* @__PURE__ */ f(L, {
|
|
@@ -197,10 +198,10 @@ var [L, ie] = P(j), [R, ae] = P(j, { collapsible: !1 }), oe = d.forwardRef((e, t
|
|
|
197
198
|
})
|
|
198
199
|
});
|
|
199
200
|
}), se = d.forwardRef((e, t) => {
|
|
200
|
-
let { value: n, defaultValue:
|
|
201
|
+
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...o } = e, [s, c] = a({
|
|
201
202
|
prop: n,
|
|
202
|
-
defaultProp:
|
|
203
|
-
onChange:
|
|
203
|
+
defaultProp: r ?? [],
|
|
204
|
+
onChange: i,
|
|
204
205
|
caller: j
|
|
205
206
|
}), l = d.useCallback((e) => c((t = []) => [...t, e]), [c]), u = d.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
206
207
|
return /* @__PURE__ */ f(L, {
|
|
@@ -217,8 +218,8 @@ var [L, ie] = P(j), [R, ae] = P(j, { collapsible: !1 }), oe = d.forwardRef((e, t
|
|
|
217
218
|
})
|
|
218
219
|
})
|
|
219
220
|
});
|
|
220
|
-
}), [ce, z] = P(j), B = d.forwardRef((
|
|
221
|
-
let { __scopeAccordion:
|
|
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) => {
|
|
222
223
|
if (!M.includes(e.key)) return;
|
|
223
224
|
let t = e.target, n = p().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
224
225
|
if (r === -1) return;
|
|
@@ -251,12 +252,12 @@ var [L, ie] = P(j), [R, ae] = P(j, { collapsible: !1 }), oe = d.forwardRef((e, t
|
|
|
251
252
|
n[a % i].ref.current?.focus();
|
|
252
253
|
});
|
|
253
254
|
return /* @__PURE__ */ f(ce, {
|
|
254
|
-
scope:
|
|
255
|
+
scope: i,
|
|
255
256
|
disabled: a,
|
|
256
257
|
direction: s,
|
|
257
258
|
orientation: c,
|
|
258
259
|
children: /* @__PURE__ */ f(N.Slot, {
|
|
259
|
-
scope:
|
|
260
|
+
scope: i,
|
|
260
261
|
children: /* @__PURE__ */ f(o.div, {
|
|
261
262
|
...l,
|
|
262
263
|
"data-orientation": c,
|
|
@@ -0,0 +1 @@
|
|
|
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 $}});
|