@krosoft/react 0.0.238 → 0.0.240
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/AppActions-C_0YI75w.js +60 -0
- package/dist/AppSubTitle-tqqV9nuT.js +19 -0
- package/dist/AppTitle-BR4JFZfp.js +19 -0
- package/dist/ErrorAlert-BDqDHUUc.js +27 -0
- package/dist/GenericForm-CWXT5wiv.js +310 -0
- package/dist/ImageInput-CN2ozjpc.js +80 -0
- package/dist/MultiSelect-BF0zL0B0.js +134 -0
- package/dist/SearchInput-BJPT0SbB.js +255 -0
- package/dist/alert-REQGK9bR.js +32 -0
- package/dist/behavior-BR_V9Rpe.js +76 -0
- package/dist/cards-Cta6x49J.js +126 -0
- package/dist/chart-Dq3AIrue.js +166 -0
- package/dist/charts-CXhVUqLH.js +328 -0
- package/dist/components/core/cards/index.js +2 -10
- package/dist/components/core/charts/index.js +2 -11
- package/dist/components/core/dialogs/index.js +4 -19
- package/dist/components/core/filters/index.js +426 -7
- package/dist/components/core/forms/index.js +2 -4
- package/dist/components/core/index.js +24 -97
- package/dist/components/core/inputs/index.js +4 -11
- package/dist/components/core/language/index.js +2 -4
- package/dist/components/core/layouts/index.js +50 -11
- package/dist/components/core/navbar/index.js +2 -9
- package/dist/components/core/states/index.js +3 -8
- package/dist/components/core/table/index.js +2 -15
- package/dist/components/core/tabs/index.js +188 -6
- package/dist/components/core/theme/index.js +2 -4
- package/dist/components/index.js +28 -322
- package/dist/components/ui/index.js +8 -240
- package/dist/contexts/index.js +2 -5
- package/dist/dialogs-BGHSClsq.js +208 -0
- package/dist/helpers/index.js +39 -46
- package/dist/hooks/behavior/index.js +2 -10
- package/dist/hooks/index.js +11 -30
- package/dist/hooks/ui/index.js +10 -22
- package/dist/i18n/index.js +2 -10
- package/dist/i18n-Dw99bRmg.js +190 -0
- package/dist/language-DxHhlpgN.js +58 -0
- package/dist/navbar-Bc5OQWRI.js +385 -0
- package/dist/providers/index.js +42 -49
- package/dist/pwa/index.js +32 -34
- package/dist/select-ULiTPOr5.js +81 -0
- package/dist/sheet-CRrYTZrl.js +226 -0
- package/dist/sidebar.context-BahtU6hE.js +5 -0
- package/dist/skeleton-D6Ga4BLw.js +11 -0
- package/dist/states-N8-LjFng.js +26 -0
- package/dist/table-muUyiaK6.js +571 -0
- package/dist/tailwind/index.js +126 -156
- package/dist/tailwind.helper-CJaRYBmL.js +8 -0
- package/dist/theme-B_n0F6R4.js +57 -0
- package/dist/tokens/index.js +37 -46
- package/dist/tooltip-B2dzyfs9.js +50 -0
- package/dist/types/forms/index.js +0 -1
- package/dist/types/index.js +1 -1
- package/dist/ui-CiX0E_bn.js +1165 -0
- package/dist/ui-DSVBO3iM.js +46 -0
- package/dist/useDocumentTitle-D7MywIeB.js +19 -0
- package/dist/useFixedColumns-DfAX30tT.js +147 -0
- package/dist/useLanguage-DN3CuBv5.js +19 -0
- package/dist/useMobile-pTQ8lWvt.js +16 -0
- package/dist/useNotifications-CyhTruIG.js +20 -0
- package/dist/useScrollFade-D9kqJBDh.js +27 -0
- package/dist/useTheme-DVfcJ-Qd.js +25 -0
- package/dist/useToast-UeDRLovh.js +103 -0
- package/package.json +3 -3
- package/dist/AppActions-BFwztl-1.js +0 -76
- package/dist/AppSubTitle-BTN0YAc7.js +0 -13
- package/dist/AppTitle-D15YXeMx.js +0 -13
- package/dist/AppVerticalTabs-B7XXtAVj.js +0 -103
- package/dist/ConfirmationDialog-Dj4WdnHg.js +0 -188
- package/dist/DataTable-CjrR27Di.js +0 -638
- package/dist/ErrorAlert-B99Xb_Hg.js +0 -23
- package/dist/ErrorState-CkeS_IBT.js +0 -14
- package/dist/GenericForm-CydibLHU.js +0 -343
- package/dist/ImageInput-DoOOvvth.js +0 -70
- package/dist/KpiCardsLayout-Bq4xQ3i8.js +0 -43
- package/dist/LanguageSelector-C7E51rCQ.js +0 -47
- package/dist/LoadingState-BN0YaPSs.js +0 -9
- package/dist/MetricCard-B0xnFyim.js +0 -53
- package/dist/MultiSelect-DbH7LrsD.js +0 -149
- package/dist/PieChart-uozNJtEx.js +0 -295
- package/dist/SearchInput-DIZ5Yt6L.js +0 -246
- package/dist/SkeletonCards-B9C4cNMr.js +0 -75
- package/dist/TableFilter-CmEVF5Bo.js +0 -422
- package/dist/ThemeSelector-CLi4_epH.js +0 -52
- package/dist/Topbar-Clby5_uj.js +0 -431
- package/dist/alert-B9F1N9Qk.js +0 -30
- package/dist/chart-DntJZGxB.js +0 -181
- package/dist/select-BpjFWqAY.js +0 -96
- package/dist/sheet-XYI-ezvY.js +0 -292
- package/dist/sidebar.context-D5nywlmP.js +0 -6
- package/dist/skeleton-BX4RcsiK.js +0 -8
- package/dist/tailwind.helper-B6yFEsav.js +0 -8
- package/dist/toaster-CyzB1m5z.js +0 -75
- package/dist/toggle-group-iZqnrTj7.js +0 -1276
- package/dist/tooltip-DVeqVwqV.js +0 -61
- package/dist/useDateFnsLocale-D6VExZ8U.js +0 -11
- package/dist/useDocumentTitle-WNwdPz-I.js +0 -14
- package/dist/useFixedColumns-CKZyu4PD.js +0 -161
- package/dist/useKrosoftTranslation-BTp46G94.js +0 -47
- package/dist/useLanguage-C9jI2nwn.js +0 -19
- package/dist/useMobile-DN1_OMDB.js +0 -16
- package/dist/useNotifications-zbUhCvF_.js +0 -12
- package/dist/usePage-BQm6tdJD.js +0 -84
- package/dist/useScrollFade-BA4KqJYp.js +0 -23
- package/dist/useServerTable-UvTY6L1N.js +0 -38
- package/dist/useSidebar-BJuALHqQ.js +0 -11
- package/dist/useTheme-DS6ZjdzM.js +0 -27
- package/dist/useToast-BFTk4lWz.js +0 -100
package/dist/select-BpjFWqAY.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as s } from "./tailwind.helper-B6yFEsav.js";
|
|
3
|
-
import * as e from "@radix-ui/react-select";
|
|
4
|
-
import { XIcon as u, ChevronDownIcon as m, ChevronUpIcon as h, CheckIcon as N } from "lucide-react";
|
|
5
|
-
import * as l from "react";
|
|
6
|
-
import { f as g } from "./tooltip-DVeqVwqV.js";
|
|
7
|
-
const C = e.Root, B = e.Group, D = e.Value, y = l.forwardRef(
|
|
8
|
-
({ className: o, children: r, onClear: a, ...d }, i) => /* @__PURE__ */ n(e.Trigger, { ref: i, className: s(g, "w-full placeholder:text-muted-foreground", o), ...d, children: [
|
|
9
|
-
r,
|
|
10
|
-
/* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
|
|
11
|
-
a && /* @__PURE__ */ t(
|
|
12
|
-
"span",
|
|
13
|
-
{
|
|
14
|
-
role: "button",
|
|
15
|
-
tabIndex: -1,
|
|
16
|
-
onPointerDown: (c) => {
|
|
17
|
-
c.preventDefault(), c.stopPropagation(), a(c);
|
|
18
|
-
},
|
|
19
|
-
className: "text-muted-foreground hover:text-foreground",
|
|
20
|
-
children: /* @__PURE__ */ t(u, { className: "size-4" })
|
|
21
|
-
}
|
|
22
|
-
),
|
|
23
|
-
/* @__PURE__ */ t(e.Icon, { asChild: !0, children: /* @__PURE__ */ t(m, { className: "size-4 opacity-50" }) })
|
|
24
|
-
] })
|
|
25
|
-
] })
|
|
26
|
-
);
|
|
27
|
-
y.displayName = e.Trigger.displayName;
|
|
28
|
-
const p = l.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(e.ScrollUpButton, { ref: a, className: s("flex cursor-default items-center justify-center py-1", o), ...r, children: /* @__PURE__ */ t(h, { className: "size-4" }) }));
|
|
29
|
-
p.displayName = e.ScrollUpButton.displayName;
|
|
30
|
-
const f = l.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(e.ScrollDownButton, { ref: a, className: s("flex cursor-default items-center justify-center py-1", o), ...r, children: /* @__PURE__ */ t(m, { className: "size-4" }) }));
|
|
31
|
-
f.displayName = e.ScrollDownButton.displayName;
|
|
32
|
-
const x = l.forwardRef(
|
|
33
|
-
({ className: o, children: r, position: a = "popper", ...d }, i) => /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ n(
|
|
34
|
-
e.Content,
|
|
35
|
-
{
|
|
36
|
-
ref: i,
|
|
37
|
-
className: s(
|
|
38
|
-
"relative z-[100] max-h-96 min-w-[8rem] overflow-hidden rounded-surface border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
39
|
-
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
40
|
-
o
|
|
41
|
-
),
|
|
42
|
-
position: a,
|
|
43
|
-
...d,
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ t(p, {}),
|
|
46
|
-
/* @__PURE__ */ t(
|
|
47
|
-
e.Viewport,
|
|
48
|
-
{
|
|
49
|
-
className: s("p-1", a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
50
|
-
children: r
|
|
51
|
-
}
|
|
52
|
-
),
|
|
53
|
-
/* @__PURE__ */ t(f, {})
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
) })
|
|
57
|
-
);
|
|
58
|
-
x.displayName = e.Content.displayName;
|
|
59
|
-
const w = l.forwardRef(
|
|
60
|
-
({ className: o, ...r }, a) => /* @__PURE__ */ t(e.Label, { ref: a, className: s("py-1.5 pl-8 pr-2 text-sm font-semibold", o), ...r })
|
|
61
|
-
);
|
|
62
|
-
w.displayName = e.Label.displayName;
|
|
63
|
-
const S = l.forwardRef(
|
|
64
|
-
({ className: o, children: r, ...a }, d) => /* @__PURE__ */ n(
|
|
65
|
-
e.Item,
|
|
66
|
-
{
|
|
67
|
-
ref: d,
|
|
68
|
-
className: s(
|
|
69
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
70
|
-
o
|
|
71
|
-
),
|
|
72
|
-
...a,
|
|
73
|
-
children: [
|
|
74
|
-
/* @__PURE__ */ t("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t(e.ItemIndicator, { children: /* @__PURE__ */ t(N, { className: "size-4" }) }) }),
|
|
75
|
-
/* @__PURE__ */ t(e.ItemText, { children: r })
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
);
|
|
80
|
-
S.displayName = e.Item.displayName;
|
|
81
|
-
const b = l.forwardRef(
|
|
82
|
-
({ className: o, ...r }, a) => /* @__PURE__ */ t(e.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-muted", o), ...r })
|
|
83
|
-
);
|
|
84
|
-
b.displayName = e.Separator.displayName;
|
|
85
|
-
export {
|
|
86
|
-
C as S,
|
|
87
|
-
x as a,
|
|
88
|
-
B as b,
|
|
89
|
-
S as c,
|
|
90
|
-
w as d,
|
|
91
|
-
f as e,
|
|
92
|
-
p as f,
|
|
93
|
-
b as g,
|
|
94
|
-
y as h,
|
|
95
|
-
D as i
|
|
96
|
-
};
|
package/dist/sheet-XYI-ezvY.js
DELETED
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import "date-fns/locale";
|
|
3
|
-
import "react-i18next";
|
|
4
|
-
import { u as C } from "./useKrosoftTranslation-BTp46G94.js";
|
|
5
|
-
import { c as r } from "./tailwind.helper-B6yFEsav.js";
|
|
6
|
-
import { Command as n } from "cmdk";
|
|
7
|
-
import { X as u, SearchIcon as k } from "lucide-react";
|
|
8
|
-
import * as d from "react";
|
|
9
|
-
import * as s from "@radix-ui/react-dialog";
|
|
10
|
-
import { e as S } from "./tooltip-DVeqVwqV.js";
|
|
11
|
-
import * as p from "@radix-ui/react-popover";
|
|
12
|
-
import * as m from "@radix-ui/react-scroll-area";
|
|
13
|
-
import { cva as R } from "class-variance-authority";
|
|
14
|
-
const D = s.Root, se = s.Trigger, _ = s.Portal, re = s.Close, g = d.forwardRef(
|
|
15
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
16
|
-
s.Overlay,
|
|
17
|
-
{
|
|
18
|
-
ref: t,
|
|
19
|
-
className: r(
|
|
20
|
-
"fixed inset-0 z-[70] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
21
|
-
a
|
|
22
|
-
),
|
|
23
|
-
...e
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
);
|
|
27
|
-
g.displayName = s.Overlay.displayName;
|
|
28
|
-
const z = "w-full max-w-none h-[100dvh] max-h-[100dvh] content-start rounded-none sm:h-auto sm:max-h-[95vh] sm:max-w-lg sm:rounded-surface", h = d.forwardRef(
|
|
29
|
-
({ className: a, children: e, ...t }, l) => /* @__PURE__ */ i(_, { children: [
|
|
30
|
-
/* @__PURE__ */ o(g, {}),
|
|
31
|
-
/* @__PURE__ */ i(
|
|
32
|
-
s.Content,
|
|
33
|
-
{
|
|
34
|
-
ref: l,
|
|
35
|
-
className: r(
|
|
36
|
-
"fixed left-[50%] top-[50%] z-[70] grid overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
37
|
-
z,
|
|
38
|
-
a
|
|
39
|
-
),
|
|
40
|
-
...t,
|
|
41
|
-
children: [
|
|
42
|
-
e,
|
|
43
|
-
/* @__PURE__ */ i(s.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
44
|
-
/* @__PURE__ */ o(u, { className: "size-4" }),
|
|
45
|
-
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
46
|
-
] })
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
] })
|
|
51
|
-
);
|
|
52
|
-
h.displayName = s.Content.displayName;
|
|
53
|
-
const T = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col space-y-1.5 text-center sm:text-left", a), ...e });
|
|
54
|
-
T.displayName = "DialogHeader";
|
|
55
|
-
const P = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
|
|
56
|
-
P.displayName = "DialogFooter";
|
|
57
|
-
const x = d.forwardRef(
|
|
58
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o(s.Title, { ref: t, className: r("text-lg font-semibold leading-none tracking-tight", a), ...e })
|
|
59
|
-
);
|
|
60
|
-
x.displayName = s.Title.displayName;
|
|
61
|
-
const y = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(s.Description, { ref: t, className: r("text-sm text-muted-foreground", a), ...e }));
|
|
62
|
-
y.displayName = s.Description.displayName;
|
|
63
|
-
const N = d.forwardRef(
|
|
64
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
65
|
-
n,
|
|
66
|
-
{
|
|
67
|
-
ref: t,
|
|
68
|
-
className: r("flex h-full w-full flex-col overflow-hidden rounded-surface bg-popover text-popover-foreground", a),
|
|
69
|
-
...e
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
);
|
|
73
|
-
N.displayName = n.displayName;
|
|
74
|
-
const de = ({ title: a, description: e, shouldFilter: t, className: l, children: c, ...w }) => {
|
|
75
|
-
const { t: f } = C();
|
|
76
|
-
return /* @__PURE__ */ o(D, { ...w, children: /* @__PURE__ */ i(h, { className: "flex flex-col overflow-hidden p-0 shadow-lg", children: [
|
|
77
|
-
/* @__PURE__ */ o(x, { className: "sr-only", children: a ?? f("search.commandTitle") }),
|
|
78
|
-
/* @__PURE__ */ o(y, { className: "sr-only", children: e ?? f("search.commandDescription") }),
|
|
79
|
-
/* @__PURE__ */ o(
|
|
80
|
-
N,
|
|
81
|
-
{
|
|
82
|
-
shouldFilter: t,
|
|
83
|
-
className: r(
|
|
84
|
-
"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3",
|
|
85
|
-
"[&_[cmdk-list]]:max-h-none [&_[cmdk-list]]:min-h-0 [&_[cmdk-list]]:flex-1 sm:[&_[cmdk-list]]:max-h-[300px] sm:[&_[cmdk-list]]:flex-none",
|
|
86
|
-
l
|
|
87
|
-
),
|
|
88
|
-
children: c
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
] }) });
|
|
92
|
-
}, I = d.forwardRef(
|
|
93
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ i("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
94
|
-
/* @__PURE__ */ o(k, { className: "mr-2 size-4 shrink-0 opacity-50" }),
|
|
95
|
-
/* @__PURE__ */ o(
|
|
96
|
-
n.Input,
|
|
97
|
-
{
|
|
98
|
-
ref: t,
|
|
99
|
-
className: r(
|
|
100
|
-
"flex h-11 w-full rounded-control bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
101
|
-
a
|
|
102
|
-
),
|
|
103
|
-
...e
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
] })
|
|
107
|
-
);
|
|
108
|
-
I.displayName = n.Input.displayName;
|
|
109
|
-
const A = d.forwardRef(
|
|
110
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o(n.List, { ref: t, className: r("max-h-[300px] overflow-y-auto overflow-x-hidden", a), ...e })
|
|
111
|
-
);
|
|
112
|
-
A.displayName = n.List.displayName;
|
|
113
|
-
const O = d.forwardRef(
|
|
114
|
-
(a, e) => /* @__PURE__ */ o(n.Empty, { ref: e, className: "py-6 text-center text-sm", ...a })
|
|
115
|
-
);
|
|
116
|
-
O.displayName = n.Empty.displayName;
|
|
117
|
-
const j = d.forwardRef(
|
|
118
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
119
|
-
n.Group,
|
|
120
|
-
{
|
|
121
|
-
ref: t,
|
|
122
|
-
className: r(
|
|
123
|
-
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
124
|
-
a
|
|
125
|
-
),
|
|
126
|
-
...e
|
|
127
|
-
}
|
|
128
|
-
)
|
|
129
|
-
);
|
|
130
|
-
j.displayName = n.Group.displayName;
|
|
131
|
-
const F = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(n.Separator, { ref: t, className: r("-mx-1 h-px bg-border", a), ...e }));
|
|
132
|
-
F.displayName = n.Separator.displayName;
|
|
133
|
-
const E = d.forwardRef(
|
|
134
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
135
|
-
n.Item,
|
|
136
|
-
{
|
|
137
|
-
ref: t,
|
|
138
|
-
className: r(
|
|
139
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
|
|
140
|
-
a
|
|
141
|
-
),
|
|
142
|
-
...e
|
|
143
|
-
}
|
|
144
|
-
)
|
|
145
|
-
);
|
|
146
|
-
E.displayName = n.Item.displayName;
|
|
147
|
-
const H = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", a), ...e });
|
|
148
|
-
H.displayName = "CommandShortcut";
|
|
149
|
-
const B = d.forwardRef(({ className: a, type: e, ...t }, l) => /* @__PURE__ */ o(
|
|
150
|
-
"input",
|
|
151
|
-
{
|
|
152
|
-
type: e,
|
|
153
|
-
className: r(
|
|
154
|
-
S,
|
|
155
|
-
// text-base sur mobile : évite le zoom automatique d'iOS à la prise de focus.
|
|
156
|
-
"flex w-full text-base file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 md:text-sm",
|
|
157
|
-
a
|
|
158
|
-
),
|
|
159
|
-
ref: l,
|
|
160
|
-
...t
|
|
161
|
-
}
|
|
162
|
-
));
|
|
163
|
-
B.displayName = "Input";
|
|
164
|
-
const ne = p.Root, le = p.Trigger, G = d.forwardRef(
|
|
165
|
-
({ className: a, align: e = "center", sideOffset: t = 4, ...l }, c) => /* @__PURE__ */ o(p.Portal, { children: /* @__PURE__ */ o(
|
|
166
|
-
p.Content,
|
|
167
|
-
{
|
|
168
|
-
ref: c,
|
|
169
|
-
align: e,
|
|
170
|
-
sideOffset: t,
|
|
171
|
-
className: r(
|
|
172
|
-
"z-[100] w-72 rounded-surface border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
173
|
-
a
|
|
174
|
-
),
|
|
175
|
-
...l
|
|
176
|
-
}
|
|
177
|
-
) })
|
|
178
|
-
);
|
|
179
|
-
G.displayName = p.Content.displayName;
|
|
180
|
-
const L = d.forwardRef(
|
|
181
|
-
({ className: a, children: e, ...t }, l) => /* @__PURE__ */ i(m.Root, { ref: l, className: r("relative overflow-hidden", a), ...t, children: [
|
|
182
|
-
/* @__PURE__ */ o(m.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
|
|
183
|
-
/* @__PURE__ */ o(b, {}),
|
|
184
|
-
/* @__PURE__ */ o(m.Corner, {})
|
|
185
|
-
] })
|
|
186
|
-
);
|
|
187
|
-
L.displayName = m.Root.displayName;
|
|
188
|
-
const b = d.forwardRef(({ className: a, orientation: e = "vertical", ...t }, l) => /* @__PURE__ */ o(
|
|
189
|
-
m.ScrollAreaScrollbar,
|
|
190
|
-
{
|
|
191
|
-
ref: l,
|
|
192
|
-
orientation: e,
|
|
193
|
-
className: r(
|
|
194
|
-
"flex touch-none select-none transition-colors",
|
|
195
|
-
e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
196
|
-
e === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
197
|
-
a
|
|
198
|
-
),
|
|
199
|
-
...t,
|
|
200
|
-
children: /* @__PURE__ */ o(m.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
201
|
-
}
|
|
202
|
-
));
|
|
203
|
-
b.displayName = m.ScrollAreaScrollbar.displayName;
|
|
204
|
-
const ie = s.Root, me = s.Trigger, ce = s.Close, V = s.Portal, v = d.forwardRef(
|
|
205
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
206
|
-
s.Overlay,
|
|
207
|
-
{
|
|
208
|
-
className: r(
|
|
209
|
-
"fixed inset-0 z-[70] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
210
|
-
a
|
|
211
|
-
),
|
|
212
|
-
...e,
|
|
213
|
-
ref: t
|
|
214
|
-
}
|
|
215
|
-
)
|
|
216
|
-
);
|
|
217
|
-
v.displayName = s.Overlay.displayName;
|
|
218
|
-
const q = R(
|
|
219
|
-
"fixed z-[70] gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
220
|
-
{
|
|
221
|
-
variants: {
|
|
222
|
-
side: {
|
|
223
|
-
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
224
|
-
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
225
|
-
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
226
|
-
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
defaultVariants: {
|
|
230
|
-
side: "right"
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
), K = d.forwardRef(
|
|
234
|
-
({ side: a = "right", className: e, children: t, ...l }, c) => /* @__PURE__ */ i(V, { children: [
|
|
235
|
-
/* @__PURE__ */ o(v, {}),
|
|
236
|
-
/* @__PURE__ */ i(s.Content, { ref: c, className: r(q({ side: a }), e), ...l, children: [
|
|
237
|
-
t,
|
|
238
|
-
/* @__PURE__ */ i(s.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
239
|
-
/* @__PURE__ */ o(u, { className: "size-4" }),
|
|
240
|
-
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
241
|
-
] })
|
|
242
|
-
] })
|
|
243
|
-
] })
|
|
244
|
-
);
|
|
245
|
-
K.displayName = s.Content.displayName;
|
|
246
|
-
const X = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
|
|
247
|
-
X.displayName = "SheetHeader";
|
|
248
|
-
const $ = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
|
|
249
|
-
$.displayName = "SheetFooter";
|
|
250
|
-
const J = d.forwardRef(
|
|
251
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o(s.Title, { ref: t, className: r("text-lg font-semibold text-foreground", a), ...e })
|
|
252
|
-
);
|
|
253
|
-
J.displayName = s.Title.displayName;
|
|
254
|
-
const M = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(s.Description, { ref: t, className: r("text-sm text-muted-foreground", a), ...e }));
|
|
255
|
-
M.displayName = s.Description.displayName;
|
|
256
|
-
export {
|
|
257
|
-
v as A,
|
|
258
|
-
V as B,
|
|
259
|
-
N as C,
|
|
260
|
-
D,
|
|
261
|
-
J as E,
|
|
262
|
-
me as F,
|
|
263
|
-
B as I,
|
|
264
|
-
ne as P,
|
|
265
|
-
L as S,
|
|
266
|
-
re as a,
|
|
267
|
-
h as b,
|
|
268
|
-
y as c,
|
|
269
|
-
P as d,
|
|
270
|
-
T as e,
|
|
271
|
-
g as f,
|
|
272
|
-
_ as g,
|
|
273
|
-
x as h,
|
|
274
|
-
se as i,
|
|
275
|
-
de as j,
|
|
276
|
-
O as k,
|
|
277
|
-
j as l,
|
|
278
|
-
I as m,
|
|
279
|
-
E as n,
|
|
280
|
-
A as o,
|
|
281
|
-
F as p,
|
|
282
|
-
H as q,
|
|
283
|
-
G as r,
|
|
284
|
-
le as s,
|
|
285
|
-
b as t,
|
|
286
|
-
ie as u,
|
|
287
|
-
ce as v,
|
|
288
|
-
K as w,
|
|
289
|
-
M as x,
|
|
290
|
-
$ as y,
|
|
291
|
-
X as z
|
|
292
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "./tailwind.helper-B6yFEsav.js";
|
|
3
|
-
function a({ className: o, ...e }) {
|
|
4
|
-
return /* @__PURE__ */ r("div", { className: t("animate-pulse rounded-control bg-muted", o), ...e });
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
a as S
|
|
8
|
-
};
|
package/dist/toaster-CyzB1m5z.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import * as m from "@radix-ui/react-aspect-ratio";
|
|
2
|
-
import * as s from "@radix-ui/react-collapsible";
|
|
3
|
-
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
4
|
-
import { GripVertical as f, XIcon as p } from "lucide-react";
|
|
5
|
-
import * as i from "react-resizable-panels";
|
|
6
|
-
import { c as l } from "./tailwind.helper-B6yFEsav.js";
|
|
7
|
-
import { useTheme as g } from "next-themes";
|
|
8
|
-
import { Toaster as b } from "sonner";
|
|
9
|
-
import { u as d } from "./useToast-BFTk4lWz.js";
|
|
10
|
-
import { bm as h, bi as v, bn as T, bl as x, bk as z, bo as C } from "./toggle-group-iZqnrTj7.js";
|
|
11
|
-
const B = m.Root, G = s.Root, k = s.CollapsibleTrigger, V = s.CollapsibleContent, $ = ({ className: t, ...r }) => /* @__PURE__ */ o(i.Group, { className: l(t), ...r }), D = i.Panel, H = ({
|
|
12
|
-
withHandle: t,
|
|
13
|
-
className: r,
|
|
14
|
-
...e
|
|
15
|
-
}) => /* @__PURE__ */ o(
|
|
16
|
-
i.Separator,
|
|
17
|
-
{
|
|
18
|
-
className: l(
|
|
19
|
-
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90",
|
|
20
|
-
r
|
|
21
|
-
),
|
|
22
|
-
...e,
|
|
23
|
-
children: t && /* @__PURE__ */ o("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ o(f, { className: "h-2.5 w-2.5" }) })
|
|
24
|
-
}
|
|
25
|
-
), I = ({ ...t }) => {
|
|
26
|
-
const { theme: r = "system" } = g();
|
|
27
|
-
return /* @__PURE__ */ o(
|
|
28
|
-
b,
|
|
29
|
-
{
|
|
30
|
-
theme: r,
|
|
31
|
-
className: "toaster group",
|
|
32
|
-
icons: { close: /* @__PURE__ */ o(p, { className: "size-4" }) },
|
|
33
|
-
toastOptions: {
|
|
34
|
-
classNames: {
|
|
35
|
-
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
36
|
-
description: "group-[.toast]:text-muted-foreground",
|
|
37
|
-
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
38
|
-
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
|
|
39
|
-
// Sonner colle par défaut une pastille cerclée en absolu au coin du toast. On la
|
|
40
|
-
// remet dans le flux (`order-last`) pour qu'elle se pose après le bouton d'action.
|
|
41
|
-
// Le `!` est indispensable : les règles de sonner sont plus spécifiques que ces classes.
|
|
42
|
-
closeButton: "!static !order-last !size-6 !transform-none !rounded-control !border-0 !bg-transparent !text-foreground/60 !opacity-100 hover:!bg-muted hover:!text-foreground focus-visible:!ring-2 focus-visible:!ring-ring"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
...t
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
function O() {
|
|
50
|
-
const { toasts: t } = d();
|
|
51
|
-
return /* @__PURE__ */ a(h, { children: [
|
|
52
|
-
t.map(function({ id: r, title: e, description: n, action: c, ...u }) {
|
|
53
|
-
return /* @__PURE__ */ a(v, { ...u, children: [
|
|
54
|
-
/* @__PURE__ */ a("div", { className: "grid gap-1", children: [
|
|
55
|
-
e && /* @__PURE__ */ o(T, { children: e }),
|
|
56
|
-
n && /* @__PURE__ */ o(x, { children: n })
|
|
57
|
-
] }),
|
|
58
|
-
c,
|
|
59
|
-
/* @__PURE__ */ o(z, {})
|
|
60
|
-
] }, r);
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ o(C, {})
|
|
63
|
-
] });
|
|
64
|
-
}
|
|
65
|
-
export {
|
|
66
|
-
B as A,
|
|
67
|
-
G as C,
|
|
68
|
-
H as R,
|
|
69
|
-
I as T,
|
|
70
|
-
V as a,
|
|
71
|
-
k as b,
|
|
72
|
-
D as c,
|
|
73
|
-
$ as d,
|
|
74
|
-
O as e
|
|
75
|
-
};
|