@incognia/cosmik 1.0.11 → 1.1.1
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/Tabs/index.d.ts +5 -1
- package/dist/Tabs/index.d.ts.map +1 -1
- package/dist/cosmik.css +3 -1
- package/dist/index.cjs +1 -2
- package/dist/index.js +36 -179
- package/dist/index10.cjs +2 -2
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +70 -193
- package/dist/index10.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +97 -139
- package/dist/index11.js.map +1 -1
- package/dist/index12.cjs +2 -2
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +57 -229
- package/dist/index12.js.map +1 -1
- package/dist/index13.cjs +2 -2
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +22 -119
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +2 -2
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +89 -25
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +2 -2
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +89 -26
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +2 -2
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +125 -23
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +2 -2
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +37 -60
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +2 -2
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +75 -22
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +2 -2
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +68 -108
- package/dist/index19.js.map +1 -1
- package/dist/index2.cjs +1 -0
- package/dist/index20.cjs +2 -2
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +28 -45
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +2 -2
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +15 -31
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +2 -2
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +16 -46
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +2 -2
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +51 -186
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +2 -2
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +9 -28
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +2 -2
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +24 -132
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +2 -2
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +68 -17
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +2 -2
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +22 -36
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +2 -2
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +29 -33
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +2 -2
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +89 -127
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +16 -85
- package/dist/index3.js.map +1 -1
- package/dist/index30.cjs +2 -2
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +18 -65
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +2 -2
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +82 -87
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +2 -2
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +12 -23
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +2 -2
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +44 -94
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +2 -2
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +20 -72
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +2 -2
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +66 -62
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +2 -2
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +59 -161
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +2 -2
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +73 -6
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +2 -2
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +15 -36
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +2 -2
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +86 -15
- package/dist/index39.js.map +1 -1
- package/dist/index4.cjs +2 -2
- package/dist/index4.cjs.map +1 -1
- package/dist/index4.js +34 -159
- package/dist/index4.js.map +1 -1
- package/dist/index40.cjs +2 -2
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +51 -119
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +2 -2
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +48 -16
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +2 -2
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +84 -11
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +2 -2
- package/dist/index43.cjs.map +1 -1
- package/dist/index5.cjs +2 -2
- package/dist/index5.cjs.map +1 -1
- package/dist/index5.js +1586 -79
- package/dist/index5.js.map +1 -1
- package/dist/index6.cjs +2 -2
- package/dist/index6.cjs.map +1 -1
- package/dist/index6.js +15 -164
- package/dist/index6.js.map +1 -1
- package/dist/index7.cjs +2 -2
- package/dist/index7.cjs.map +1 -1
- package/dist/index7.js +60 -196
- package/dist/index7.js.map +1 -1
- package/dist/index8.cjs +2 -2
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +156 -90
- package/dist/index8.js.map +1 -1
- package/dist/index9.cjs +2 -2
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +92 -40
- package/dist/index9.js.map +1 -1
- package/package.json +22 -20
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index3.cjs +0 -2
- package/dist/index3.cjs.map +0 -1
- package/dist/index43.js +0 -5
- package/dist/index43.js.map +0 -1
- package/dist/index44.cjs +0 -2
- package/dist/index44.cjs.map +0 -1
- package/dist/index44.js +0 -27
- package/dist/index44.js.map +0 -1
- package/dist/index45.cjs +0 -7
- package/dist/index45.cjs.map +0 -1
- package/dist/index45.js +0 -239
- package/dist/index45.js.map +0 -1
- package/dist/index46.cjs +0 -2
- package/dist/index46.cjs.map +0 -1
- package/dist/index46.js +0 -17
- package/dist/index46.js.map +0 -1
- package/dist/index47.cjs +0 -2
- package/dist/index47.cjs.map +0 -1
- package/dist/index47.js +0 -2732
- package/dist/index47.js.map +0 -1
- package/dist/index48.cjs +0 -2
- package/dist/index48.cjs.map +0 -1
- package/dist/index48.js +0 -5
- package/dist/index48.js.map +0 -1
- package/dist/index49.cjs +0 -2
- package/dist/index49.cjs.map +0 -1
- package/dist/index49.js +0 -5
- package/dist/index49.js.map +0 -1
- /package/dist/{cosmik-theme.css → src/cosmik-theme.css} +0 -0
package/dist/index23.js
CHANGED
|
@@ -1,186 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
position: o = "popper",
|
|
53
|
-
...n
|
|
54
|
-
}) {
|
|
55
|
-
return /* @__PURE__ */ e.jsx(a.Portal, { children: /* @__PURE__ */ e.jsxs(
|
|
56
|
-
a.Content,
|
|
57
|
-
{
|
|
58
|
-
"data-slot": "select-content",
|
|
59
|
-
className: l(
|
|
60
|
-
"bg-white",
|
|
61
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
62
|
-
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2",
|
|
63
|
-
"data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
64
|
-
"relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded border shadow-200",
|
|
65
|
-
o === "popper" && "data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4",
|
|
66
|
-
t
|
|
67
|
-
),
|
|
68
|
-
position: o,
|
|
69
|
-
...n,
|
|
70
|
-
children: [
|
|
71
|
-
/* @__PURE__ */ e.jsx(d, {}),
|
|
72
|
-
/* @__PURE__ */ e.jsx(
|
|
73
|
-
a.Viewport,
|
|
74
|
-
{
|
|
75
|
-
className: l(
|
|
76
|
-
o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-4"
|
|
77
|
-
),
|
|
78
|
-
children: s
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
/* @__PURE__ */ e.jsx(p, {})
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
) });
|
|
85
|
-
}
|
|
86
|
-
function j({
|
|
87
|
-
className: t,
|
|
88
|
-
...s
|
|
89
|
-
}) {
|
|
90
|
-
return /* @__PURE__ */ e.jsx(
|
|
91
|
-
a.Label,
|
|
92
|
-
{
|
|
93
|
-
"data-slot": "select-label",
|
|
94
|
-
className: l("px-16 py-8 pr-8 font-semibold", t),
|
|
95
|
-
...s
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
function w({
|
|
100
|
-
className: t,
|
|
101
|
-
children: s,
|
|
102
|
-
...o
|
|
103
|
-
}) {
|
|
104
|
-
return /* @__PURE__ */ e.jsxs(
|
|
105
|
-
a.Item,
|
|
106
|
-
{
|
|
107
|
-
"data-slot": "select-item",
|
|
108
|
-
className: l(
|
|
109
|
-
"relative flex w-full cursor-default items-center gap-8 py-8 pl-16 pr-32 outline-none select-none",
|
|
110
|
-
"hover:bg-gray-200",
|
|
111
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
112
|
-
"data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800",
|
|
113
|
-
"[&_svg:not([class*='size-'])]:size-16 *:[span]:last:flex *:[span]:last:flex-col *:[span]:last:gap-8",
|
|
114
|
-
t
|
|
115
|
-
),
|
|
116
|
-
...o,
|
|
117
|
-
children: [
|
|
118
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute right-8 top-8 flex size-16 items-center justify-center", children: /* @__PURE__ */ e.jsx(a.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-16" }) }) }),
|
|
119
|
-
/* @__PURE__ */ e.jsx(a.ItemText, { children: s })
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
function y({
|
|
125
|
-
className: t,
|
|
126
|
-
...s
|
|
127
|
-
}) {
|
|
128
|
-
return /* @__PURE__ */ e.jsx(
|
|
129
|
-
a.Separator,
|
|
130
|
-
{
|
|
131
|
-
"data-slot": "select-separator",
|
|
132
|
-
className: l(
|
|
133
|
-
"bg-gray-900/24 pointer-events-none -mx-4 my-4 h-px",
|
|
134
|
-
t
|
|
135
|
-
),
|
|
136
|
-
...s
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
function d({
|
|
141
|
-
className: t,
|
|
142
|
-
...s
|
|
143
|
-
}) {
|
|
144
|
-
return /* @__PURE__ */ e.jsx(
|
|
145
|
-
a.ScrollUpButton,
|
|
146
|
-
{
|
|
147
|
-
"data-slot": "select-scroll-up-button",
|
|
148
|
-
className: l(
|
|
149
|
-
"flex cursor-default items-center justify-center py-4",
|
|
150
|
-
t
|
|
151
|
-
),
|
|
152
|
-
...s,
|
|
153
|
-
children: /* @__PURE__ */ e.jsx(c, { className: "size-16" })
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
function p({
|
|
158
|
-
className: t,
|
|
159
|
-
...s
|
|
160
|
-
}) {
|
|
161
|
-
return /* @__PURE__ */ e.jsx(
|
|
162
|
-
a.ScrollDownButton,
|
|
163
|
-
{
|
|
164
|
-
"data-slot": "select-scroll-down-button",
|
|
165
|
-
className: l(
|
|
166
|
-
"flex cursor-default items-center justify-center py-4",
|
|
167
|
-
t
|
|
168
|
-
),
|
|
169
|
-
...s,
|
|
170
|
-
children: /* @__PURE__ */ e.jsx(r, { className: "size-16" })
|
|
171
|
-
}
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
export {
|
|
175
|
-
x as Select,
|
|
176
|
-
b as SelectContent,
|
|
177
|
-
h as SelectGroup,
|
|
178
|
-
w as SelectItem,
|
|
179
|
-
j as SelectLabel,
|
|
180
|
-
p as SelectScrollDownButton,
|
|
181
|
-
d as SelectScrollUpButton,
|
|
182
|
-
y as SelectSeparator,
|
|
183
|
-
v as SelectTrigger,
|
|
184
|
-
g as SelectValue
|
|
185
|
-
};
|
|
186
|
-
//# sourceMappingURL=index23.js.map
|
|
1
|
+
import { cn as e } from "./index6.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/Layout/index.tsx
|
|
5
|
+
function r({ children: r, className: a, isLoading: o, ...s }) {
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
7
|
+
className: e("flex h-full", a),
|
|
8
|
+
...s,
|
|
9
|
+
children: [o && /* @__PURE__ */ t(i, {}), r]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function i() {
|
|
13
|
+
return /* @__PURE__ */ t("div", {
|
|
14
|
+
className: "fixed inset-0 bg-gray-400 z-60 h-4",
|
|
15
|
+
children: /* @__PURE__ */ t("div", { className: "bg-chart-purple h-4 rounded-r animate-page-loader" })
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function a({ className: n, ...r }) {
|
|
19
|
+
return /* @__PURE__ */ t("aside", {
|
|
20
|
+
className: e("bg-white flex flex-col shrink-0 border-r border-gray-900/16 sticky h-screen", n),
|
|
21
|
+
...r
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function o({ className: n, ...r }) {
|
|
25
|
+
return /* @__PURE__ */ t("div", {
|
|
26
|
+
className: e("shrink-0", n),
|
|
27
|
+
...r
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function s({ className: n, ...r }) {
|
|
31
|
+
return /* @__PURE__ */ t("div", {
|
|
32
|
+
className: e("grow overflow-auto", n),
|
|
33
|
+
...r
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function c({ className: n, ...r }) {
|
|
37
|
+
return /* @__PURE__ */ t("main", {
|
|
38
|
+
className: e("flex flex-col grow justify-start bg-gray-50 sticky h-screen overflow-hidden", n),
|
|
39
|
+
...r
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function l({ className: n, ...r }) {
|
|
43
|
+
return /* @__PURE__ */ t("div", {
|
|
44
|
+
className: e("shrink-0 bg-white border-b border-gray-900/16", n),
|
|
45
|
+
...r
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { r as Layout, o as LayoutContent, c as LayoutMain, s as LayoutScrollableContent, a as LayoutSidebar, l as LayoutTopbar };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=index23.js.map
|
package/dist/index23.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index23.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index23.js","names":[],"sources":["../src/Layout/index.tsx"],"sourcesContent":["import React from 'react'\nimport { cn } from '../lib/utils'\n\ntype LayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode\n className?: string\n}\n\nexport function Layout({\n children,\n className,\n isLoading,\n ...props\n}: LayoutProps & {\n isLoading?: boolean\n}) {\n return (\n <div className={cn('flex h-full', className)} {...props}>\n {isLoading && <LayoutPageLoader />}\n {children}\n </div>\n )\n}\n\nfunction LayoutPageLoader() {\n return (\n <div className=\"fixed inset-0 bg-gray-400 z-60 h-4\">\n <div className=\"bg-chart-purple h-4 rounded-r animate-page-loader\"></div>\n </div>\n )\n}\n\nexport function LayoutSidebar({ className, ...props }: LayoutProps) {\n return (\n <aside\n className={cn(\n 'bg-white flex flex-col shrink-0 border-r border-gray-900/16 sticky h-screen',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutContent({ className, ...props }: LayoutProps) {\n return <div className={cn('shrink-0', className)} {...props} />\n}\n\nexport function LayoutScrollableContent({ className, ...props }: LayoutProps) {\n return <div className={cn('grow overflow-auto', className)} {...props} />\n}\n\nexport function LayoutMain({ className, ...props }: LayoutProps) {\n return (\n <main\n className={cn(\n 'flex flex-col grow justify-start bg-gray-50 sticky h-screen overflow-hidden',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutTopbar({ className, ...props }: LayoutProps) {\n return (\n <div\n className={cn('shrink-0 bg-white border-b border-gray-900/16', className)}\n {...props}\n />\n )\n}\n"],"mappings":";;;;AAQA,SAAgB,EAAO,EACrB,aACA,cACA,cACA,GAAG,KAGF;CACD,OACE,kBAAC,OAAD;EAAK,WAAW,EAAG,eAAe,CAAS;EAAG,GAAI;YAAlD,CACG,KAAa,kBAAC,GAAD,CAAmB,CAAA,GAChC,CACE;;AAET;AAEA,SAAS,IAAmB;CAC1B,OACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,OAAD,EAAK,WAAU,oDAAyD,CAAA;CACrE,CAAA;AAET;AAEA,SAAgB,EAAc,EAAE,cAAW,GAAG,KAAsB;CAClE,OACE,kBAAC,SAAD;EACE,WAAW,EACT,+EACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAgB,EAAc,EAAE,cAAW,GAAG,KAAsB;CAClE,OAAO,kBAAC,OAAD;EAAK,WAAW,EAAG,YAAY,CAAS;EAAG,GAAI;CAAQ,CAAA;AAChE;AAEA,SAAgB,EAAwB,EAAE,cAAW,GAAG,KAAsB;CAC5E,OAAO,kBAAC,OAAD;EAAK,WAAW,EAAG,sBAAsB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC1E;AAEA,SAAgB,EAAW,EAAE,cAAW,GAAG,KAAsB;CAC/D,OACE,kBAAC,QAAD;EACE,WAAW,EACT,+EACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAgB,EAAa,EAAE,cAAW,GAAG,KAAsB;CACjE,OACE,kBAAC,OAAD;EACE,WAAW,EAAG,iDAAiD,CAAS;EACxE,GAAI;CACL,CAAA;AAEL"}
|
package/dist/index24.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index24.cjs.map
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index7.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");function i({children:e,className:n,isLoading:i,...o}){return(0,r.jsxs)(`div`,{className:t.cn(`flex h-full`,n),...o,children:[i&&(0,r.jsx)(a,{}),e]})}function a(){return(0,r.jsx)(`div`,{className:`fixed inset-0 bg-gray-400 z-60 h-4`,children:(0,r.jsx)(`div`,{className:`bg-chart-purple h-4 rounded-r animate-page-loader`})})}function o({className:e,...n}){return(0,r.jsx)(`aside`,{className:t.cn(`bg-white flex flex-col shrink-0 border-r border-gray-900/16 sticky h-screen`,e),...n})}function s({className:e,...n}){return(0,r.jsx)(`div`,{className:t.cn(`shrink-0`,e),...n})}function c({className:e,...n}){return(0,r.jsx)(`div`,{className:t.cn(`grow overflow-auto`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`main`,{className:t.cn(`flex flex-col grow justify-start bg-gray-50 sticky h-screen overflow-hidden`,e),...n})}function u({className:e,...n}){return(0,r.jsx)(`div`,{className:t.cn(`shrink-0 bg-white border-b border-gray-900/16`,e),...n})}exports.Layout=i,exports.LayoutContent=s,exports.LayoutMain=l,exports.LayoutScrollableContent=c,exports.LayoutSidebar=o,exports.LayoutTopbar=u;
|
|
2
|
+
//# sourceMappingURL=index24.cjs.map
|
package/dist/index24.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index24.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index24.cjs","names":[],"sources":["../src/Layout/index.tsx"],"sourcesContent":["import React from 'react'\nimport { cn } from '../lib/utils'\n\ntype LayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode\n className?: string\n}\n\nexport function Layout({\n children,\n className,\n isLoading,\n ...props\n}: LayoutProps & {\n isLoading?: boolean\n}) {\n return (\n <div className={cn('flex h-full', className)} {...props}>\n {isLoading && <LayoutPageLoader />}\n {children}\n </div>\n )\n}\n\nfunction LayoutPageLoader() {\n return (\n <div className=\"fixed inset-0 bg-gray-400 z-60 h-4\">\n <div className=\"bg-chart-purple h-4 rounded-r animate-page-loader\"></div>\n </div>\n )\n}\n\nexport function LayoutSidebar({ className, ...props }: LayoutProps) {\n return (\n <aside\n className={cn(\n 'bg-white flex flex-col shrink-0 border-r border-gray-900/16 sticky h-screen',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutContent({ className, ...props }: LayoutProps) {\n return <div className={cn('shrink-0', className)} {...props} />\n}\n\nexport function LayoutScrollableContent({ className, ...props }: LayoutProps) {\n return <div className={cn('grow overflow-auto', className)} {...props} />\n}\n\nexport function LayoutMain({ className, ...props }: LayoutProps) {\n return (\n <main\n className={cn(\n 'flex flex-col grow justify-start bg-gray-50 sticky h-screen overflow-hidden',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutTopbar({ className, ...props }: LayoutProps) {\n return (\n <div\n className={cn('shrink-0 bg-white border-b border-gray-900/16', className)}\n {...props}\n />\n )\n}\n"],"mappings":"qIAQA,SAAgB,EAAO,CACrB,WACA,YACA,YACA,GAAG,GAGF,CACD,OACE,EAAA,EAAA,MAAC,MAAD,CAAK,UAAW,EAAA,GAAG,cAAe,CAAS,EAAG,GAAI,WAAlD,CACG,IAAa,EAAA,EAAA,KAAC,EAAD,CAAmB,CAAA,EAChC,CACE,GAET,CAEA,SAAS,GAAmB,CAC1B,OACE,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,+CACb,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,mDAAyD,CAAA,CACrE,CAAA,CAET,CAEA,SAAgB,EAAc,CAAE,YAAW,GAAG,GAAsB,CAClE,OACE,EAAA,EAAA,KAAC,QAAD,CACE,UAAW,EAAA,GACT,8EACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAEA,SAAgB,EAAc,CAAE,YAAW,GAAG,GAAsB,CAClE,OAAO,EAAA,EAAA,KAAC,MAAD,CAAK,UAAW,EAAA,GAAG,WAAY,CAAS,EAAG,GAAI,CAAQ,CAAA,CAChE,CAEA,SAAgB,EAAwB,CAAE,YAAW,GAAG,GAAsB,CAC5E,OAAO,EAAA,EAAA,KAAC,MAAD,CAAK,UAAW,EAAA,GAAG,qBAAsB,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC1E,CAEA,SAAgB,EAAW,CAAE,YAAW,GAAG,GAAsB,CAC/D,OACE,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,8EACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAEA,SAAgB,EAAa,CAAE,YAAW,GAAG,GAAsB,CACjE,OACE,EAAA,EAAA,KAAC,MAAD,CACE,UAAW,EAAA,GAAG,gDAAiD,CAAS,EACxE,GAAI,CACL,CAAA,CAEL"}
|
package/dist/index24.js
CHANGED
|
@@ -1,29 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
orientation: a = "horizontal",
|
|
7
|
-
decorative: o = !0,
|
|
8
|
-
...r
|
|
9
|
-
}) {
|
|
10
|
-
return /* @__PURE__ */ i.jsx(
|
|
11
|
-
n.Root,
|
|
12
|
-
{
|
|
13
|
-
"data-slot": "separator",
|
|
14
|
-
decorative: o,
|
|
15
|
-
orientation: a,
|
|
16
|
-
className: e(
|
|
17
|
-
"bg-gray-900/16 shrink-0",
|
|
18
|
-
"data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-auto",
|
|
19
|
-
"data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-px",
|
|
20
|
-
t
|
|
21
|
-
),
|
|
22
|
-
...r
|
|
23
|
-
}
|
|
24
|
-
);
|
|
1
|
+
import { cn as e } from "./index6.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/Loading/LoadingDot.tsx
|
|
4
|
+
function n({ className: n }) {
|
|
5
|
+
return /* @__PURE__ */ t("div", { className: e("absolute top-[18px] w-12 h-12 rounded-full bg-purple-700", n) });
|
|
25
6
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=index24.js.map
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as default };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=index24.js.map
|
package/dist/index24.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index24.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index24.js","names":[],"sources":["../src/Loading/LoadingDot.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\n\ntype Props = {\n className?: string\n}\n\nexport default function LoadingDot({ className }: Props) {\n return (\n <div\n className={cn(\n 'absolute top-[18px] w-12 h-12 rounded-full bg-purple-700',\n className\n )}\n ></div>\n )\n}\n"],"mappings":";;;AAMA,SAAwB,EAAW,EAAE,gBAAoB;CACvD,OACE,kBAAC,OAAD,EACE,WAAW,EACT,4DACA,CACF,EACI,CAAA;AAEV"}
|
package/dist/index25.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index25.cjs.map
|
|
1
|
+
const e=require("./index7.cjs");let t=require("react/jsx-runtime");function n({className:n}){return(0,t.jsx)(`div`,{className:e.cn(`absolute top-[18px] w-12 h-12 rounded-full bg-purple-700`,n)})}exports.default=n;
|
|
2
|
+
//# sourceMappingURL=index25.cjs.map
|
package/dist/index25.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index25.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index25.cjs","names":[],"sources":["../src/Loading/LoadingDot.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\n\ntype Props = {\n className?: string\n}\n\nexport default function LoadingDot({ className }: Props) {\n return (\n <div\n className={cn(\n 'absolute top-[18px] w-12 h-12 rounded-full bg-purple-700',\n className\n )}\n ></div>\n )\n}\n"],"mappings":"mEAMA,SAAwB,EAAW,CAAE,aAAoB,CACvD,OACE,EAAA,EAAA,KAAC,MAAD,CACE,UAAW,EAAA,GACT,2DACA,CACF,CACI,CAAA,CAEV"}
|
package/dist/index25.js
CHANGED
|
@@ -1,132 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
...a
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ e.jsx(
|
|
28
|
-
o.Overlay,
|
|
29
|
-
{
|
|
30
|
-
"data-slot": "sheet-overlay",
|
|
31
|
-
className: s(
|
|
32
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-gray-900/24 ",
|
|
33
|
-
t
|
|
34
|
-
),
|
|
35
|
-
...a
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
function p({
|
|
40
|
-
className: t,
|
|
41
|
-
children: a,
|
|
42
|
-
side: r = "right",
|
|
43
|
-
...n
|
|
44
|
-
}) {
|
|
45
|
-
return /* @__PURE__ */ e.jsxs(l, { children: [
|
|
46
|
-
/* @__PURE__ */ e.jsx(d, {}),
|
|
47
|
-
/* @__PURE__ */ e.jsxs(
|
|
48
|
-
o.Content,
|
|
49
|
-
{
|
|
50
|
-
"data-slot": "sheet-content",
|
|
51
|
-
className: s(
|
|
52
|
-
" bg-white data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-16 border-gray-900/16 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
53
|
-
r === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
54
|
-
r === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
55
|
-
r === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
56
|
-
r === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
57
|
-
t
|
|
58
|
-
),
|
|
59
|
-
...n,
|
|
60
|
-
children: [
|
|
61
|
-
a,
|
|
62
|
-
/* @__PURE__ */ e.jsxs(o.Close, { className: "absolute right-16 top-16 rounded opacity-64 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none", children: [
|
|
63
|
-
/* @__PURE__ */ e.jsx(i, { className: "size-16" }),
|
|
64
|
-
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" })
|
|
65
|
-
] })
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
] });
|
|
70
|
-
}
|
|
71
|
-
function g({ className: t, ...a }) {
|
|
72
|
-
return /* @__PURE__ */ e.jsx(
|
|
73
|
-
"div",
|
|
74
|
-
{
|
|
75
|
-
"data-slot": "sheet-header",
|
|
76
|
-
className: s("flex flex-col gap-8", t),
|
|
77
|
-
...a
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
function j({ className: t, ...a }) {
|
|
82
|
-
return /* @__PURE__ */ e.jsx(
|
|
83
|
-
"div",
|
|
84
|
-
{
|
|
85
|
-
"data-slot": "sheet-footer",
|
|
86
|
-
className: s(
|
|
87
|
-
"flex flex-col-reverse sm:flex-row sm:justify-end gap-8",
|
|
88
|
-
t
|
|
89
|
-
),
|
|
90
|
-
...a
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
function b({
|
|
95
|
-
className: t,
|
|
96
|
-
...a
|
|
97
|
-
}) {
|
|
98
|
-
return /* @__PURE__ */ e.jsx(
|
|
99
|
-
o.Title,
|
|
100
|
-
{
|
|
101
|
-
"data-slot": "sheet-title",
|
|
102
|
-
className: s("text-gray-800 font-semibold", t),
|
|
103
|
-
...a
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
function y({
|
|
108
|
-
className: t,
|
|
109
|
-
...a
|
|
110
|
-
}) {
|
|
111
|
-
return /* @__PURE__ */ e.jsx(
|
|
112
|
-
o.Description,
|
|
113
|
-
{
|
|
114
|
-
"data-slot": "sheet-description",
|
|
115
|
-
className: s("text-gray-900 text-base", t),
|
|
116
|
-
...a
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
export {
|
|
121
|
-
f as Sheet,
|
|
122
|
-
x as SheetClose,
|
|
123
|
-
p as SheetContent,
|
|
124
|
-
y as SheetDescription,
|
|
125
|
-
j as SheetFooter,
|
|
126
|
-
g as SheetHeader,
|
|
127
|
-
d as SheetOverlay,
|
|
128
|
-
l as SheetPortal,
|
|
129
|
-
b as SheetTitle,
|
|
130
|
-
h as SheetTrigger
|
|
131
|
-
};
|
|
132
|
-
//# sourceMappingURL=index25.js.map
|
|
1
|
+
import { cn as e } from "./index6.js";
|
|
2
|
+
import t from "./index24.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/Loading/index.tsx
|
|
5
|
+
function i({ className: i }) {
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
7
|
+
role: "alert",
|
|
8
|
+
"aria-busy": !0,
|
|
9
|
+
className: e("flex items-center justify-center", i),
|
|
10
|
+
children: /* @__PURE__ */ r("div", {
|
|
11
|
+
className: "inline-block relative w-[76px] h-48",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ n(t, { className: "left-8 animate-loading-ellipsis1" }),
|
|
14
|
+
/* @__PURE__ */ n(t, { className: "left-8 animate-loading-ellipsis2" }),
|
|
15
|
+
/* @__PURE__ */ n(t, { className: "left-32 animate-loading-ellipsis2" }),
|
|
16
|
+
/* @__PURE__ */ n(t, { className: "left-[56px] animate-loading-ellipsis3" })
|
|
17
|
+
]
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { i as Loading };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=index25.js.map
|
package/dist/index25.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index25.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index25.js","names":[],"sources":["../src/Loading/index.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\nimport LoadingDot from './LoadingDot'\n\ntype Props = {\n className?: string\n}\n\nexport function Loading({ className }: Props) {\n return (\n <div\n role=\"alert\"\n aria-busy={true}\n className={cn('flex items-center justify-center', className)}\n >\n <div className=\"inline-block relative w-[76px] h-48\">\n <LoadingDot className=\"left-8 animate-loading-ellipsis1\" />\n <LoadingDot className=\"left-8 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-32 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-[56px] animate-loading-ellipsis3\" />\n </div>\n </div>\n )\n}\n"],"mappings":";;;;AAOA,SAAgB,EAAQ,EAAE,gBAAoB;CAC5C,OACE,kBAAC,OAAD;EACE,MAAK;EACL,aAAW;EACX,WAAW,EAAG,oCAAoC,CAAS;YAE3D,kBAAC,OAAD;GAAK,WAAU;aAAf;IACE,kBAAC,GAAD,EAAY,WAAU,mCAAoC,CAAA;IAC1D,kBAAC,GAAD,EAAY,WAAU,mCAAoC,CAAA;IAC1D,kBAAC,GAAD,EAAY,WAAU,oCAAqC,CAAA;IAC3D,kBAAC,GAAD,EAAY,WAAU,wCAAyC,CAAA;GAC5D;;CACF,CAAA;AAET"}
|
package/dist/index26.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index26.cjs.map
|
|
1
|
+
const e=require("./index7.cjs"),t=require("./index25.cjs");let n=require("react/jsx-runtime");function r({className:r}){return(0,n.jsx)(`div`,{role:`alert`,"aria-busy":!0,className:e.cn(`flex items-center justify-center`,r),children:(0,n.jsxs)(`div`,{className:`inline-block relative w-[76px] h-48`,children:[(0,n.jsx)(t.default,{className:`left-8 animate-loading-ellipsis1`}),(0,n.jsx)(t.default,{className:`left-8 animate-loading-ellipsis2`}),(0,n.jsx)(t.default,{className:`left-32 animate-loading-ellipsis2`}),(0,n.jsx)(t.default,{className:`left-[56px] animate-loading-ellipsis3`})]})})}exports.Loading=r;
|
|
2
|
+
//# sourceMappingURL=index26.cjs.map
|
package/dist/index26.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index26.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index26.cjs","names":[],"sources":["../src/Loading/index.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\nimport LoadingDot from './LoadingDot'\n\ntype Props = {\n className?: string\n}\n\nexport function Loading({ className }: Props) {\n return (\n <div\n role=\"alert\"\n aria-busy={true}\n className={cn('flex items-center justify-center', className)}\n >\n <div className=\"inline-block relative w-[76px] h-48\">\n <LoadingDot className=\"left-8 animate-loading-ellipsis1\" />\n <LoadingDot className=\"left-8 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-32 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-[56px] animate-loading-ellipsis3\" />\n </div>\n </div>\n )\n}\n"],"mappings":"8FAOA,SAAgB,EAAQ,CAAE,aAAoB,CAC5C,OACE,EAAA,EAAA,KAAC,MAAD,CACE,KAAK,QACL,YAAW,GACX,UAAW,EAAA,GAAG,mCAAoC,CAAS,YAE3D,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,+CAAf,EACE,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,kCAAoC,CAAA,GAC1D,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,kCAAoC,CAAA,GAC1D,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,mCAAqC,CAAA,GAC3D,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,uCAAyC,CAAA,CAC5D,GACF,CAAA,CAET"}
|