@fileverse/ui 4.0.6 → 4.0.7
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/index.css +19 -0
- package/dist/index.es.d.ts +1 -1
- package/dist/index.es.js +54 -60
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2133,6 +2133,25 @@ video {
|
|
|
2133
2133
|
padding: 0 !important;
|
|
2134
2134
|
}
|
|
2135
2135
|
|
|
2136
|
+
input:is(:-webkit-autofill, :-webkit-autofill), textarea:is(:-webkit-autofill, :-webkit-autofill) {
|
|
2137
|
+
-webkit-transition:
|
|
2138
|
+
background-color 0s 600000s,
|
|
2139
|
+
color 0s 600000s !important;
|
|
2140
|
+
transition:
|
|
2141
|
+
background-color 0s 600000s,
|
|
2142
|
+
color 0s 600000s !important;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
input:is(:-webkit-autofill, :autofill),
|
|
2146
|
+
textarea:is(:-webkit-autofill, :autofill) {
|
|
2147
|
+
-webkit-transition:
|
|
2148
|
+
background-color 0s 600000s,
|
|
2149
|
+
color 0s 600000s !important;
|
|
2150
|
+
transition:
|
|
2151
|
+
background-color 0s 600000s,
|
|
2152
|
+
color 0s 600000s !important;
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2136
2155
|
.file\:text-body-sm::file-selector-button {
|
|
2137
2156
|
font-family: system-ui;
|
|
2138
2157
|
font-size: 14px;
|
package/dist/index.es.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export declare interface DynamicAlertProps {
|
|
|
211
211
|
className?: string;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
export declare const DynamicContentController:
|
|
214
|
+
export declare const DynamicContentController: ForwardRefExoticComponent<DynamicContentControllerProps & RefAttributes<HTMLDivElement>>;
|
|
215
215
|
|
|
216
216
|
export declare interface DynamicContentControllerProps {
|
|
217
217
|
label: string;
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as y from "react";
|
|
2
|
-
import R, { forwardRef as
|
|
2
|
+
import R, { forwardRef as Le, createElement as me, useLayoutEffect as Ia, useEffect as Se, createContext as Et, useContext as ze, useRef as fe, useInsertionEffect as r0, useCallback as Ge, useMemo as Ct, Fragment as Un, useId as fo, Component as z4, useState as Ze, cloneElement as Yn, Children as Yt, isValidElement as Ta, useReducer as E4 } from "react";
|
|
3
3
|
import * as Oa from "react-dom";
|
|
4
4
|
import o0, { flushSync as i0 } from "react-dom";
|
|
5
5
|
var hn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -3114,7 +3114,7 @@ const My = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
|
3114
3114
|
* See the LICENSE file in the root directory of this source tree.
|
|
3115
3115
|
*/
|
|
3116
3116
|
const o = (e, t) => {
|
|
3117
|
-
const a =
|
|
3117
|
+
const a = Le(
|
|
3118
3118
|
({
|
|
3119
3119
|
color: n = "currentColor",
|
|
3120
3120
|
size: r = 24,
|
|
@@ -25055,7 +25055,7 @@ const sE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
25055
25055
|
defaultVariants: {
|
|
25056
25056
|
size: "md"
|
|
25057
25057
|
}
|
|
25058
|
-
}),
|
|
25058
|
+
}), Ee = Le(
|
|
25059
25059
|
({ name: e, className: t, size: a, strokeWidth: n, fill: r, stroke: i, ...s }, c) => {
|
|
25060
25060
|
const l = lE[e];
|
|
25061
25061
|
return l ? /* @__PURE__ */ h.jsx(
|
|
@@ -25072,7 +25072,7 @@ const sE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
25072
25072
|
) : null;
|
|
25073
25073
|
}
|
|
25074
25074
|
);
|
|
25075
|
-
|
|
25075
|
+
Ee.displayName = "LucideIcon";
|
|
25076
25076
|
const hE = kt(
|
|
25077
25077
|
"inline-flex items-center justify-center whitespace-nowrap rounded ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:color-button-disabled",
|
|
25078
25078
|
{
|
|
@@ -25120,7 +25120,7 @@ const hE = kt(
|
|
|
25120
25120
|
onClick: c,
|
|
25121
25121
|
...u,
|
|
25122
25122
|
children: l ? /* @__PURE__ */ h.jsx(
|
|
25123
|
-
|
|
25123
|
+
Ee,
|
|
25124
25124
|
{
|
|
25125
25125
|
name: "LoaderCircle",
|
|
25126
25126
|
size: a === "sm" ? "sm" : "md",
|
|
@@ -25130,7 +25130,7 @@ const hE = kt(
|
|
|
25130
25130
|
}
|
|
25131
25131
|
) : /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
25132
25132
|
n && /* @__PURE__ */ h.jsx("span", { className: "start-adornment", children: /* @__PURE__ */ h.jsx(
|
|
25133
|
-
|
|
25133
|
+
Ee,
|
|
25134
25134
|
{
|
|
25135
25135
|
size: a === "sm" ? "sm" : "md",
|
|
25136
25136
|
name: i,
|
|
@@ -25141,7 +25141,7 @@ const hE = kt(
|
|
|
25141
25141
|
) }),
|
|
25142
25142
|
u.children,
|
|
25143
25143
|
r && /* @__PURE__ */ h.jsx("span", { className: "end-adornment", children: /* @__PURE__ */ h.jsx(
|
|
25144
|
-
|
|
25144
|
+
Ee,
|
|
25145
25145
|
{
|
|
25146
25146
|
size: a === "sm" ? "sm" : "md",
|
|
25147
25147
|
name: s,
|
|
@@ -25158,7 +25158,7 @@ x1.displayName = "Button";
|
|
|
25158
25158
|
const dU = ({ children: e, className: t }) => {
|
|
25159
25159
|
const a = z("flex space-x-2", t);
|
|
25160
25160
|
return /* @__PURE__ */ h.jsx("div", { className: a, children: e });
|
|
25161
|
-
}, vo =
|
|
25161
|
+
}, vo = Le(
|
|
25162
25162
|
({
|
|
25163
25163
|
icon: e,
|
|
25164
25164
|
variant: t,
|
|
@@ -25198,7 +25198,7 @@ const dU = ({ children: e, className: t }) => {
|
|
|
25198
25198
|
size: a,
|
|
25199
25199
|
...c,
|
|
25200
25200
|
children: /* @__PURE__ */ h.jsx(
|
|
25201
|
-
|
|
25201
|
+
Ee,
|
|
25202
25202
|
{
|
|
25203
25203
|
"data-testid": "icon",
|
|
25204
25204
|
"data-role": "icon",
|
|
@@ -27792,7 +27792,7 @@ function O1(e) {
|
|
|
27792
27792
|
const il = Et({});
|
|
27793
27793
|
let hs = !1;
|
|
27794
27794
|
function MD(e, t, a, n, r) {
|
|
27795
|
-
const { visualElement: i } =
|
|
27795
|
+
const { visualElement: i } = ze(or), s = ze(nl), c = ze(ir), l = ze(zo).reducedMotion, d = fe();
|
|
27796
27796
|
n = n || s.renderer, !d.current && n && (d.current = n(e, {
|
|
27797
27797
|
visualState: t,
|
|
27798
27798
|
parent: i,
|
|
@@ -27801,7 +27801,7 @@ function MD(e, t, a, n, r) {
|
|
|
27801
27801
|
blockInitialAnimation: c ? c.initial === !1 : !1,
|
|
27802
27802
|
reducedMotionConfig: l
|
|
27803
27803
|
}));
|
|
27804
|
-
const u = d.current, p =
|
|
27804
|
+
const u = d.current, p = ze(il);
|
|
27805
27805
|
u && !u.projection && r && (u.type === "html" || u.type === "svg") && CD(d.current, a, r, p), r0(() => {
|
|
27806
27806
|
u && u.update(a, c);
|
|
27807
27807
|
});
|
|
@@ -27884,7 +27884,7 @@ function AD(e, t) {
|
|
|
27884
27884
|
return e.inherit !== !1 ? t : {};
|
|
27885
27885
|
}
|
|
27886
27886
|
function jD(e) {
|
|
27887
|
-
const { initial: t, animate: a } = AD(e,
|
|
27887
|
+
const { initial: t, animate: a } = AD(e, ze(or));
|
|
27888
27888
|
return Ct(() => ({ initial: t, animate: a }), [us(t), us(a)]);
|
|
27889
27889
|
}
|
|
27890
27890
|
function us(e) {
|
|
@@ -27934,7 +27934,7 @@ function TD({ preloadedFeatures: e, createVisualElement: t, useRender: a, useVis
|
|
|
27934
27934
|
function i(c, l) {
|
|
27935
27935
|
let d;
|
|
27936
27936
|
const u = {
|
|
27937
|
-
...
|
|
27937
|
+
...ze(zo),
|
|
27938
27938
|
...c,
|
|
27939
27939
|
layoutId: HD(c)
|
|
27940
27940
|
}, { isStatic: p } = u, f = jD(c), k = n(c, p);
|
|
@@ -27945,15 +27945,15 @@ function TD({ preloadedFeatures: e, createVisualElement: t, useRender: a, useVis
|
|
|
27945
27945
|
}
|
|
27946
27946
|
return h.jsxs(or.Provider, { value: f, children: [d && f.visualElement ? h.jsx(d, { visualElement: f.visualElement, ...u }) : null, a(r, c, bD(k, f.visualElement, l), k, p, f.visualElement)] });
|
|
27947
27947
|
}
|
|
27948
|
-
const s =
|
|
27948
|
+
const s = Le(i);
|
|
27949
27949
|
return s[PD] = r, s;
|
|
27950
27950
|
}
|
|
27951
27951
|
function HD({ layoutId: e }) {
|
|
27952
|
-
const t =
|
|
27952
|
+
const t = ze(Oo).id;
|
|
27953
27953
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
27954
27954
|
}
|
|
27955
27955
|
function RD(e, t) {
|
|
27956
|
-
const a =
|
|
27956
|
+
const a = ze(nl).strict;
|
|
27957
27957
|
if (process.env.NODE_ENV !== "production" && t && a) {
|
|
27958
27958
|
const n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
27959
27959
|
e.ignoreStrict ? ra(!1, n) : Nt(!1, n);
|
|
@@ -28441,7 +28441,7 @@ function sN({ applyWillChange: e = !1, scrapeMotionValuesFromProps: t, createRen
|
|
|
28441
28441
|
return n && (l.mount = (d) => n(r, d, l)), l;
|
|
28442
28442
|
}
|
|
28443
28443
|
const Cl = (e) => (t, a) => {
|
|
28444
|
-
const n =
|
|
28444
|
+
const n = ze(or), r = ze(ir), i = () => sN(e, t, n, r, a);
|
|
28445
28445
|
return a ? i() : xl(i);
|
|
28446
28446
|
};
|
|
28447
28447
|
function cN(e, t) {
|
|
@@ -31064,7 +31064,7 @@ class IO extends r1 {
|
|
|
31064
31064
|
}
|
|
31065
31065
|
}
|
|
31066
31066
|
function OO() {
|
|
31067
|
-
const e =
|
|
31067
|
+
const e = ze(ir);
|
|
31068
31068
|
if (e === null)
|
|
31069
31069
|
return [!0, null];
|
|
31070
31070
|
const { isPresent: t, onExitComplete: a, register: n } = e, r = fo();
|
|
@@ -31151,8 +31151,8 @@ class FO extends z4 {
|
|
|
31151
31151
|
}
|
|
31152
31152
|
}
|
|
31153
31153
|
function md(e) {
|
|
31154
|
-
const [t, a] = OO(), n =
|
|
31155
|
-
return h.jsx(FO, { ...e, layoutGroup: n, switchLayoutGroup:
|
|
31154
|
+
const [t, a] = OO(), n = ze(Oo);
|
|
31155
|
+
return h.jsx(FO, { ...e, layoutGroup: n, switchLayoutGroup: ze(il), isPresent: t, safeToRemove: a });
|
|
31156
31156
|
}
|
|
31157
31157
|
const ZO = {
|
|
31158
31158
|
borderRadius: {
|
|
@@ -32304,7 +32304,7 @@ function IB({ children: e, isPresent: t }) {
|
|
|
32304
32304
|
height: 0,
|
|
32305
32305
|
top: 0,
|
|
32306
32306
|
left: 0
|
|
32307
|
-
}), { nonce: i } =
|
|
32307
|
+
}), { nonce: i } = ze(zo);
|
|
32308
32308
|
return r0(() => {
|
|
32309
32309
|
const { width: s, height: c, top: l, left: d } = r.current;
|
|
32310
32310
|
if (t || !n.current || !s || !c)
|
|
@@ -32374,7 +32374,7 @@ function ZB(e) {
|
|
|
32374
32374
|
}
|
|
32375
32375
|
const WB = ({ children: e, custom: t, initial: a = !0, onExitComplete: n, exitBeforeEnter: r, presenceAffectsLayout: i = !0, mode: s = "sync" }) => {
|
|
32376
32376
|
Nt(!r, "Replace exitBeforeEnter with mode='wait'");
|
|
32377
|
-
const c =
|
|
32377
|
+
const c = ze(Oo).forceRender || DB()[0], l = Td(), d = ZB(e);
|
|
32378
32378
|
let u = d;
|
|
32379
32379
|
const p = fe(/* @__PURE__ */ new Map()).current, f = fe(u), k = fe(/* @__PURE__ */ new Map()).current, m = fe(!0);
|
|
32380
32380
|
if (Vo(() => {
|
|
@@ -32482,7 +32482,7 @@ const WB = ({ children: e, custom: t, initial: a = !0, onExitComplete: n, exitBe
|
|
|
32482
32482
|
duration: 0.1,
|
|
32483
32483
|
ease: "easeInOut"
|
|
32484
32484
|
},
|
|
32485
|
-
className: z("z-[999]", {
|
|
32485
|
+
className: z("z-[999] absolute", {
|
|
32486
32486
|
hidden: !a
|
|
32487
32487
|
}),
|
|
32488
32488
|
children: /* @__PURE__ */ h.jsxs(
|
|
@@ -32534,7 +32534,7 @@ const _B = kt(
|
|
|
32534
32534
|
ref: n,
|
|
32535
32535
|
children: [
|
|
32536
32536
|
a.icon && /* @__PURE__ */ h.jsx(
|
|
32537
|
-
|
|
32537
|
+
Ee,
|
|
32538
32538
|
{
|
|
32539
32539
|
name: a.icon,
|
|
32540
32540
|
size: "sm",
|
|
@@ -33834,7 +33834,7 @@ const eF = {
|
|
|
33834
33834
|
defaultVariants: {
|
|
33835
33835
|
size: "md"
|
|
33836
33836
|
}
|
|
33837
|
-
}), yr =
|
|
33837
|
+
}), yr = Le(
|
|
33838
33838
|
({
|
|
33839
33839
|
name: e,
|
|
33840
33840
|
size: t = "md",
|
|
@@ -36872,9 +36872,9 @@ function JW(e, t) {
|
|
|
36872
36872
|
var QW = uu, Bu = yu, $W = ku, _W = vu, eK = mu, Fu = gu, tK = Cu, aK = Au, Zu = Su, Wu = Tu, nK = Hu, rK = qu, Ku = Lu, Gu = zu, Xu = Vu;
|
|
36873
36873
|
const oK = R.forwardRef(({ children: e, size: t, liked: a, onLike: n, onClick: r, ...i }, s) => {
|
|
36874
36874
|
const c = [
|
|
36875
|
-
/* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
|
|
36875
|
+
/* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(Ee, { name: "Share", size: "md" }) }),
|
|
36876
36876
|
/* @__PURE__ */ h.jsx("div", { onClick: n, children: /* @__PURE__ */ h.jsx(
|
|
36877
|
-
|
|
36877
|
+
Ee,
|
|
36878
36878
|
{
|
|
36879
36879
|
name: "Heart",
|
|
36880
36880
|
size: "md",
|
|
@@ -36959,9 +36959,9 @@ const wn = {
|
|
|
36959
36959
|
(k) => wn[k] === e
|
|
36960
36960
|
)
|
|
36961
36961
|
), f = [
|
|
36962
|
-
/* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
|
|
36963
|
-
/* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
|
|
36964
|
-
/* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
|
|
36962
|
+
/* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(Ee, { fill: "none", name: "Square", size: "sm" }) }),
|
|
36963
|
+
/* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(Ee, { fill: "none", name: "RectangleHorizontal" }) }),
|
|
36964
|
+
/* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(Ee, { fill: "none", name: "Square", size: "md" }) })
|
|
36965
36965
|
];
|
|
36966
36966
|
return Se(() => {
|
|
36967
36967
|
d(wn[u]), r == null || r(wn[u]);
|
|
@@ -37177,7 +37177,7 @@ const jU = (e) => /* @__PURE__ */ h.jsx(Vh, { children: /* @__PURE__ */ h.jsx(Oh
|
|
|
37177
37177
|
{
|
|
37178
37178
|
onClick: () => r(yo.LIST),
|
|
37179
37179
|
"data-testid": "list-mode-button",
|
|
37180
|
-
children: /* @__PURE__ */ h.jsx(
|
|
37180
|
+
children: /* @__PURE__ */ h.jsx(Ee, { fill: "none", name: "List" })
|
|
37181
37181
|
}
|
|
37182
37182
|
),
|
|
37183
37183
|
/* @__PURE__ */ h.jsx(
|
|
@@ -37185,7 +37185,7 @@ const jU = (e) => /* @__PURE__ */ h.jsx(Vh, { children: /* @__PURE__ */ h.jsx(Oh
|
|
|
37185
37185
|
{
|
|
37186
37186
|
onClick: () => r(yo.CARD),
|
|
37187
37187
|
"data-testid": "card-mode-button",
|
|
37188
|
-
children: /* @__PURE__ */ h.jsx(
|
|
37188
|
+
children: /* @__PURE__ */ h.jsx(Ee, { fill: "none", name: "LayoutGrid" })
|
|
37189
37189
|
}
|
|
37190
37190
|
)
|
|
37191
37191
|
], { onMouseEnter: p, onMouseLeave: f, isActive: k } = iU({});
|
|
@@ -39030,7 +39030,7 @@ const gG = ({
|
|
|
39030
39030
|
),
|
|
39031
39031
|
/* @__PURE__ */ h.jsx(WB, { initial: !1, children: i && n === r && /* @__PURE__ */ h.jsx(xG, { content: i }) })
|
|
39032
39032
|
] });
|
|
39033
|
-
}, LU =
|
|
39033
|
+
}, LU = Le(
|
|
39034
39034
|
({ items: e, className: t, size: a = "lg", content: n, selectedValue: r, setSelectedValue: i }, s) => !e || e.length === 0 ? null : /* @__PURE__ */ h.jsx(
|
|
39035
39035
|
Dp,
|
|
39036
39036
|
{
|
|
@@ -39068,13 +39068,7 @@ const gG = ({
|
|
|
39068
39068
|
children: /* @__PURE__ */ h.jsx("div", { className: "p-4 flex flex-col gap-4", children: e })
|
|
39069
39069
|
}
|
|
39070
39070
|
);
|
|
39071
|
-
}, zU = ({
|
|
39072
|
-
label: e,
|
|
39073
|
-
description: t,
|
|
39074
|
-
checked: a,
|
|
39075
|
-
onChange: n,
|
|
39076
|
-
size: r = "lg"
|
|
39077
|
-
}) => /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
39071
|
+
}, zU = Le(({ label: e, description: t, checked: a, onChange: n, size: r = "lg" }, i) => /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col gap-2 w-full", ref: i, children: [
|
|
39078
39072
|
/* @__PURE__ */ h.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
39079
39073
|
/* @__PURE__ */ h.jsx(
|
|
39080
39074
|
H1,
|
|
@@ -39106,7 +39100,7 @@ const gG = ({
|
|
|
39106
39100
|
children: t
|
|
39107
39101
|
}
|
|
39108
39102
|
)
|
|
39109
|
-
] }), EU = R.forwardRef(
|
|
39103
|
+
] })), EU = R.forwardRef(
|
|
39110
39104
|
({
|
|
39111
39105
|
isActive: e,
|
|
39112
39106
|
isCompleted: t,
|
|
@@ -39195,7 +39189,7 @@ const gG = ({
|
|
|
39195
39189
|
/* @__PURE__ */ h.jsxs("span", { className: "inline-flex gap-2 items-center", children: [
|
|
39196
39190
|
i,
|
|
39197
39191
|
u && /* @__PURE__ */ h.jsx(
|
|
39198
|
-
|
|
39192
|
+
Ee,
|
|
39199
39193
|
{
|
|
39200
39194
|
name: "LoaderCircle",
|
|
39201
39195
|
size: "sm",
|
|
@@ -39382,7 +39376,7 @@ const NU = ({
|
|
|
39382
39376
|
dismissible: u,
|
|
39383
39377
|
children: [
|
|
39384
39378
|
/* @__PURE__ */ h.jsx(Bp, { className: s, children: /* @__PURE__ */ h.jsxs(Fp, { className: "text-body-sm-bold inline-flex gap-2 items-center", children: [
|
|
39385
|
-
n && (n !== "X" ? /* @__PURE__ */ h.jsx(
|
|
39379
|
+
n && (n !== "X" ? /* @__PURE__ */ h.jsx(Ee, { name: n, size: "md" }) : /* @__PURE__ */ h.jsx(wG, { className: "rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default", children: /* @__PURE__ */ h.jsx(Ee, { name: n, size: "md" }) })),
|
|
39386
39380
|
a
|
|
39387
39381
|
] }) }),
|
|
39388
39382
|
r
|
|
@@ -39545,7 +39539,7 @@ const RG = ({
|
|
|
39545
39539
|
children: /* @__PURE__ */ h.jsxs(PG, { children: [
|
|
39546
39540
|
t && /* @__PURE__ */ h.jsx(Yp, { children: t }),
|
|
39547
39541
|
d.map((f) => /* @__PURE__ */ h.jsx(Jp, { value: f.value, children: /* @__PURE__ */ h.jsxs("div", { className: "flex gap-4 items-center", children: [
|
|
39548
|
-
/* @__PURE__ */ h.jsx(
|
|
39542
|
+
/* @__PURE__ */ h.jsx(Ee, { size: "sm", name: f.icon, className: "min-w-fit" }),
|
|
39549
39543
|
/* @__PURE__ */ h.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
39550
39544
|
/* @__PURE__ */ h.jsxs("span", { className: ue("flex items-center gap-2"), children: [
|
|
39551
39545
|
/* @__PURE__ */ h.jsx(H1, { className: "text-body-sm", children: f.label }),
|
|
@@ -39624,7 +39618,7 @@ function FG(e, t = []) {
|
|
|
39624
39618
|
}, k);
|
|
39625
39619
|
}
|
|
39626
39620
|
function u(p, f) {
|
|
39627
|
-
const k = (f == null ? void 0 : f[e][l]) || c, m =
|
|
39621
|
+
const k = (f == null ? void 0 : f[e][l]) || c, m = ze(k);
|
|
39628
39622
|
if (m) return m;
|
|
39629
39623
|
if (s !== void 0) return s;
|
|
39630
39624
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
@@ -39744,7 +39738,7 @@ function XG({ defaultProp: e, onChange: t }) {
|
|
|
39744
39738
|
i
|
|
39745
39739
|
]), a;
|
|
39746
39740
|
}
|
|
39747
|
-
const Oi = /* @__PURE__ */
|
|
39741
|
+
const Oi = /* @__PURE__ */ Le((e, t) => {
|
|
39748
39742
|
const { children: a, ...n } = e, r = Yt.toArray(a), i = r.find(YG);
|
|
39749
39743
|
if (i) {
|
|
39750
39744
|
const s = i.props.children, c = r.map((l) => l === i ? Yt.count(s) > 1 ? Yt.only(null) : /* @__PURE__ */ Ta(s) ? s.props.children : null : l);
|
|
@@ -39757,7 +39751,7 @@ const Oi = /* @__PURE__ */ Ee((e, t) => {
|
|
|
39757
39751
|
}), a);
|
|
39758
39752
|
});
|
|
39759
39753
|
Oi.displayName = "Slot";
|
|
39760
|
-
const so = /* @__PURE__ */
|
|
39754
|
+
const so = /* @__PURE__ */ Le((e, t) => {
|
|
39761
39755
|
const { children: a, ...n } = e;
|
|
39762
39756
|
return /* @__PURE__ */ Ta(a) ? /* @__PURE__ */ Yn(a, {
|
|
39763
39757
|
...JG(n, a.props),
|
|
@@ -39808,7 +39802,7 @@ const QG = [
|
|
|
39808
39802
|
"svg",
|
|
39809
39803
|
"ul"
|
|
39810
39804
|
], ut = QG.reduce((e, t) => {
|
|
39811
|
-
const a = /* @__PURE__ */
|
|
39805
|
+
const a = /* @__PURE__ */ Le((n, r) => {
|
|
39812
39806
|
const { asChild: i, ...s } = n, c = i ? Oi : t;
|
|
39813
39807
|
return Se(() => {
|
|
39814
39808
|
window[Symbol.for("radix-ui")] = !0;
|
|
@@ -39844,9 +39838,9 @@ const aX = /* @__PURE__ */ Et({
|
|
|
39844
39838
|
layers: /* @__PURE__ */ new Set(),
|
|
39845
39839
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
39846
39840
|
branches: /* @__PURE__ */ new Set()
|
|
39847
|
-
}), nX = /* @__PURE__ */
|
|
39841
|
+
}), nX = /* @__PURE__ */ Le((e, t) => {
|
|
39848
39842
|
var a;
|
|
39849
|
-
const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...d } = e, u =
|
|
39843
|
+
const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...d } = e, u = ze(aX), [p, f] = Ze(null), k = (a = p == null ? void 0 : p.ownerDocument) !== null && a !== void 0 ? a : globalThis == null ? void 0 : globalThis.document, [, m] = Ze({}), v = an(
|
|
39850
39844
|
t,
|
|
39851
39845
|
(S) => f(S)
|
|
39852
39846
|
), g = Array.from(u.layers), [M] = [
|
|
@@ -39967,7 +39961,7 @@ function _p(e, t, a, { discrete: n }) {
|
|
|
39967
39961
|
const g2 = "focusScope.autoFocusOnMount", x2 = "focusScope.autoFocusOnUnmount", Yc = {
|
|
39968
39962
|
bubbles: !1,
|
|
39969
39963
|
cancelable: !0
|
|
39970
|
-
}, iX = /* @__PURE__ */
|
|
39964
|
+
}, iX = /* @__PURE__ */ Le((e, t) => {
|
|
39971
39965
|
const { loop: a = !1, trapped: n = !1, onMountAutoFocus: r, onUnmountAutoFocus: i, ...s } = e, [c, l] = Ze(null), d = S1(r), u = S1(i), p = fe(null), f = an(
|
|
39972
39966
|
t,
|
|
39973
39967
|
(v) => l(v)
|
|
@@ -40134,7 +40128,7 @@ function uX(e) {
|
|
|
40134
40128
|
(t) => t.tagName !== "A"
|
|
40135
40129
|
);
|
|
40136
40130
|
}
|
|
40137
|
-
const pX = /* @__PURE__ */
|
|
40131
|
+
const pX = /* @__PURE__ */ Le((e, t) => {
|
|
40138
40132
|
var a;
|
|
40139
40133
|
const { container: n = globalThis == null || (a = globalThis.document) === null || a === void 0 ? void 0 : a.body, ...r } = e;
|
|
40140
40134
|
return n ? /* @__PURE__ */ o0.createPortal(/* @__PURE__ */ me(ut.div, Xe({}, r, {
|
|
@@ -40467,14 +40461,14 @@ const i4 = "Dialog", [s4, BU] = FG(i4), [TX, R1] = s4(i4), HX = (e) => {
|
|
|
40467
40461
|
container: r
|
|
40468
40462
|
}, s))
|
|
40469
40463
|
));
|
|
40470
|
-
}, ho = "DialogOverlay", LX = /* @__PURE__ */
|
|
40464
|
+
}, ho = "DialogOverlay", LX = /* @__PURE__ */ Le((e, t) => {
|
|
40471
40465
|
const a = l4(ho, e.__scopeDialog), { forceMount: n = a.forceMount, ...r } = e, i = R1(ho, e.__scopeDialog);
|
|
40472
40466
|
return i.modal ? /* @__PURE__ */ me(Hr, {
|
|
40473
40467
|
present: n || i.open
|
|
40474
40468
|
}, /* @__PURE__ */ me(zX, Xe({}, r, {
|
|
40475
40469
|
ref: t
|
|
40476
40470
|
}))) : null;
|
|
40477
|
-
}), zX = /* @__PURE__ */
|
|
40471
|
+
}), zX = /* @__PURE__ */ Le((e, t) => {
|
|
40478
40472
|
const { __scopeDialog: a, ...n } = e, r = R1(ho, a);
|
|
40479
40473
|
return (
|
|
40480
40474
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
@@ -40495,7 +40489,7 @@ const i4 = "Dialog", [s4, BU] = FG(i4), [TX, R1] = s4(i4), HX = (e) => {
|
|
|
40495
40489
|
}
|
|
40496
40490
|
})))
|
|
40497
40491
|
);
|
|
40498
|
-
}), Da = "DialogContent", EX = /* @__PURE__ */
|
|
40492
|
+
}), Da = "DialogContent", EX = /* @__PURE__ */ Le((e, t) => {
|
|
40499
40493
|
const a = l4(Da, e.__scopeDialog), { forceMount: n = a.forceMount, ...r } = e, i = R1(Da, e.__scopeDialog);
|
|
40500
40494
|
return /* @__PURE__ */ me(Hr, {
|
|
40501
40495
|
present: n || i.open
|
|
@@ -40504,7 +40498,7 @@ const i4 = "Dialog", [s4, BU] = FG(i4), [TX, R1] = s4(i4), HX = (e) => {
|
|
|
40504
40498
|
})) : /* @__PURE__ */ me(DX, Xe({}, r, {
|
|
40505
40499
|
ref: t
|
|
40506
40500
|
})));
|
|
40507
|
-
}), VX = /* @__PURE__ */
|
|
40501
|
+
}), VX = /* @__PURE__ */ Le((e, t) => {
|
|
40508
40502
|
const a = R1(Da, e.__scopeDialog), n = fe(null), r = an(t, a.contentRef, n);
|
|
40509
40503
|
return Se(() => {
|
|
40510
40504
|
const i = n.current;
|
|
@@ -40526,7 +40520,7 @@ const i4 = "Dialog", [s4, BU] = FG(i4), [TX, R1] = s4(i4), HX = (e) => {
|
|
|
40526
40520
|
(i) => i.preventDefault()
|
|
40527
40521
|
)
|
|
40528
40522
|
}));
|
|
40529
|
-
}), DX = /* @__PURE__ */
|
|
40523
|
+
}), DX = /* @__PURE__ */ Le((e, t) => {
|
|
40530
40524
|
const a = R1(Da, e.__scopeDialog), n = fe(!1), r = fe(!1);
|
|
40531
40525
|
return /* @__PURE__ */ me(d4, Xe({}, e, {
|
|
40532
40526
|
ref: t,
|
|
@@ -40547,7 +40541,7 @@ const i4 = "Dialog", [s4, BU] = FG(i4), [TX, R1] = s4(i4), HX = (e) => {
|
|
|
40547
40541
|
((c = a.triggerRef.current) === null || c === void 0 ? void 0 : c.contains(l)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && r.current && i.preventDefault();
|
|
40548
40542
|
}
|
|
40549
40543
|
}));
|
|
40550
|
-
}), d4 = /* @__PURE__ */
|
|
40544
|
+
}), d4 = /* @__PURE__ */ Le((e, t) => {
|
|
40551
40545
|
const { __scopeDialog: a, trapFocus: n, onOpenAutoFocus: r, onCloseAutoFocus: i, ...s } = e, c = R1(Da, a), l = fe(null), d = an(t, l);
|
|
40552
40546
|
return kX(), /* @__PURE__ */ me(Un, null, /* @__PURE__ */ me(iX, {
|
|
40553
40547
|
asChild: !0,
|
|
@@ -41189,7 +41183,7 @@ const FU = ({
|
|
|
41189
41183
|
...i
|
|
41190
41184
|
}) => /* @__PURE__ */ h.jsxs(w4, { variant: a, className: r, ...i, children: [
|
|
41191
41185
|
/* @__PURE__ */ h.jsx(
|
|
41192
|
-
|
|
41186
|
+
Ee,
|
|
41193
41187
|
{
|
|
41194
41188
|
size: "md",
|
|
41195
41189
|
name: n,
|
|
@@ -41317,7 +41311,7 @@ export {
|
|
|
41317
41311
|
vo as IconButton,
|
|
41318
41312
|
H1 as Label,
|
|
41319
41313
|
yo as LayoutModes,
|
|
41320
|
-
|
|
41314
|
+
Ee as LucideIcon,
|
|
41321
41315
|
rU as MultiSelect,
|
|
41322
41316
|
Zp as Popover,
|
|
41323
41317
|
IU as PopoverAnchor,
|