@konstructio/ui 0.0.10 → 0.0.12-alpha.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/components/Button/Button.variants.d.ts +2 -2
- package/dist/components/Button/Button.variants.js +142 -8
- package/dist/components/Sidebar/Sidebar.d.ts +5 -0
- package/dist/components/Sidebar/Sidebar.js +27 -0
- package/dist/components/Sidebar/Sidebar.types.d.ts +18 -0
- package/dist/components/Sidebar/Sidebar.types.js +1 -0
- package/dist/components/Sidebar/Sidebar.variants.d.ts +6 -0
- package/dist/components/Sidebar/Sidebar.variants.js +57 -0
- package/dist/components/Sidebar/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Sidebar/components/Footer/Footer.js +22 -0
- package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +6 -0
- package/dist/components/Sidebar/components/Footer/Footer.types.js +1 -0
- package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +19 -0
- package/dist/components/Sidebar/components/Logo/Logo.d.ts +3 -0
- package/dist/components/Sidebar/components/Logo/Logo.js +20 -0
- package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +6 -0
- package/dist/components/Sidebar/components/Logo/Logo.types.js +1 -0
- package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +45 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +4 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.js +34 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +16 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.types.js +1 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +19 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +41 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +8 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +16 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +35 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +17 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +4 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +52 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +24 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +5 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +19 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +27 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +8 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +23 -0
- package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +85 -0
- package/dist/components/Sidebar/components/index.d.ts +15 -0
- package/dist/components/Sidebar/components/index.js +18 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +44 -30
- package/dist/index.js +46 -32
- package/dist/package.json +31 -16
- package/dist/plugins/utils/colors.d.ts +5 -0
- package/dist/plugins/utils/colors.js +6 -1
- package/dist/styles.css +1 -1
- package/dist/utils/index.js +747 -530
- package/package.json +31 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const buttonVariants: (props?: ({
|
|
2
|
-
variant?: "primary" | "secondary" | "danger" | "text" | null | undefined;
|
|
2
|
+
variant?: "primary" | "secondary" | "danger" | "text" | "circle" | null | undefined;
|
|
3
3
|
version?: "default" | "alternate" | null | undefined;
|
|
4
4
|
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
5
|
-
size?: "default" | null | undefined;
|
|
6
5
|
disabled?: boolean | null | undefined;
|
|
6
|
+
size?: "medium" | "large" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
2
|
+
const a = e(
|
|
3
3
|
[
|
|
4
4
|
"border",
|
|
5
5
|
"cursor-pointer",
|
|
@@ -15,7 +15,10 @@ const t = e(
|
|
|
15
15
|
"justify-center",
|
|
16
16
|
"rounded",
|
|
17
17
|
"transition-colors",
|
|
18
|
-
"whitespace-nowrap"
|
|
18
|
+
"whitespace-nowrap",
|
|
19
|
+
"h-10",
|
|
20
|
+
"p-4",
|
|
21
|
+
"text-sm"
|
|
19
22
|
],
|
|
20
23
|
{
|
|
21
24
|
variants: {
|
|
@@ -29,7 +32,8 @@ const t = e(
|
|
|
29
32
|
"hover:bg-red-700",
|
|
30
33
|
"hover:border-red-700"
|
|
31
34
|
],
|
|
32
|
-
text: ["bg-transparent", "border-transparent", "text-slate-500"]
|
|
35
|
+
text: ["bg-transparent", "border-transparent", "text-slate-500"],
|
|
36
|
+
circle: ["rounded-full", "p-1"]
|
|
33
37
|
},
|
|
34
38
|
version: {
|
|
35
39
|
default: "",
|
|
@@ -40,12 +44,13 @@ const t = e(
|
|
|
40
44
|
colony: "",
|
|
41
45
|
kubefirst: ""
|
|
42
46
|
},
|
|
43
|
-
size: {
|
|
44
|
-
default: "h-10 p-4 text-sm"
|
|
45
|
-
},
|
|
46
47
|
disabled: {
|
|
47
48
|
true: ["text-zinc-500", "border-zinc-200", "bg-zinc-200"],
|
|
48
49
|
false: ""
|
|
50
|
+
},
|
|
51
|
+
size: {
|
|
52
|
+
medium: "",
|
|
53
|
+
large: ""
|
|
49
54
|
}
|
|
50
55
|
},
|
|
51
56
|
compoundVariants: [
|
|
@@ -185,17 +190,146 @@ const t = e(
|
|
|
185
190
|
variant: "text",
|
|
186
191
|
disabled: !0,
|
|
187
192
|
class: ["bg-transparent", "border-transparent", "text-zinc-400"]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
variant: "circle",
|
|
196
|
+
size: "medium",
|
|
197
|
+
theme: "kubefirst",
|
|
198
|
+
disabled: !1,
|
|
199
|
+
class: [
|
|
200
|
+
"text-slate-400",
|
|
201
|
+
"bg-transparent",
|
|
202
|
+
"border-transparent",
|
|
203
|
+
"hover:bg-kubefirst-primary/5",
|
|
204
|
+
"hover:text-kubefirst-primary",
|
|
205
|
+
"w-8",
|
|
206
|
+
"h-8",
|
|
207
|
+
"[&>svg]:w-5",
|
|
208
|
+
"[&>svg]:h-5"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
variant: "circle",
|
|
213
|
+
size: "large",
|
|
214
|
+
theme: "kubefirst",
|
|
215
|
+
disabled: !1,
|
|
216
|
+
class: [
|
|
217
|
+
"text-slate-400",
|
|
218
|
+
"bg-transparent",
|
|
219
|
+
"border-transparent",
|
|
220
|
+
"hover:bg-kubefirst-primary/5",
|
|
221
|
+
"hover:text-kubefirst-primary",
|
|
222
|
+
"w-11",
|
|
223
|
+
"h-11",
|
|
224
|
+
"[&>svg]:w-6",
|
|
225
|
+
"[&>svg]:h-6"
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
variant: "circle",
|
|
230
|
+
size: "medium",
|
|
231
|
+
theme: "colony",
|
|
232
|
+
disabled: !1,
|
|
233
|
+
class: [
|
|
234
|
+
"text-slate-400",
|
|
235
|
+
"bg-transparent",
|
|
236
|
+
"border-transparent",
|
|
237
|
+
"hover:bg-colony-primary/5",
|
|
238
|
+
"hover:text-colony-primary",
|
|
239
|
+
"w-8",
|
|
240
|
+
"h-8",
|
|
241
|
+
"[&>svg]:w-5",
|
|
242
|
+
"[&>svg]:h-5"
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
variant: "circle",
|
|
247
|
+
size: "large",
|
|
248
|
+
theme: "colony",
|
|
249
|
+
disabled: !1,
|
|
250
|
+
class: [
|
|
251
|
+
"text-slate-400",
|
|
252
|
+
"bg-transparent",
|
|
253
|
+
"border-transparent",
|
|
254
|
+
"hover:bg-colony-primary/5",
|
|
255
|
+
"hover:text-colony-primary",
|
|
256
|
+
"w-11",
|
|
257
|
+
"h-11",
|
|
258
|
+
"[&>svg]:w-6",
|
|
259
|
+
"[&>svg]:h-6"
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
variant: "circle",
|
|
264
|
+
size: "medium",
|
|
265
|
+
theme: "civo",
|
|
266
|
+
disabled: !1,
|
|
267
|
+
class: [
|
|
268
|
+
"text-slate-400",
|
|
269
|
+
"bg-transparent",
|
|
270
|
+
"border-transparent",
|
|
271
|
+
"hover:bg-civo-primary/5",
|
|
272
|
+
"hover:text-civo-primary",
|
|
273
|
+
"w-8",
|
|
274
|
+
"h-8",
|
|
275
|
+
"[&>svg]:w-5",
|
|
276
|
+
"[&>svg]:h-5"
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
variant: "circle",
|
|
281
|
+
size: "large",
|
|
282
|
+
theme: "civo",
|
|
283
|
+
disabled: !1,
|
|
284
|
+
class: [
|
|
285
|
+
"text-slate-400",
|
|
286
|
+
"bg-transparent",
|
|
287
|
+
"border-transparent",
|
|
288
|
+
"hover:bg-civo-primary/5",
|
|
289
|
+
"hover:text-civo-primary",
|
|
290
|
+
"w-11",
|
|
291
|
+
"h-11",
|
|
292
|
+
"[&>svg]:w-6",
|
|
293
|
+
"[&>svg]:h-6"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
variant: "circle",
|
|
298
|
+
size: "medium",
|
|
299
|
+
disabled: !0,
|
|
300
|
+
class: [
|
|
301
|
+
"text-slate-300",
|
|
302
|
+
"bg-transparent",
|
|
303
|
+
"border-transparent",
|
|
304
|
+
"w-8",
|
|
305
|
+
"h-8",
|
|
306
|
+
"[&>svg]:w-5",
|
|
307
|
+
"[&>svg]:h-5"
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
variant: "circle",
|
|
312
|
+
size: "large",
|
|
313
|
+
disabled: !0,
|
|
314
|
+
class: [
|
|
315
|
+
"text-slate-300",
|
|
316
|
+
"bg-transparent",
|
|
317
|
+
"border-transparent",
|
|
318
|
+
"w-11",
|
|
319
|
+
"h-11",
|
|
320
|
+
"[&>svg]:w-6",
|
|
321
|
+
"[&>svg]:h-6"
|
|
322
|
+
]
|
|
188
323
|
}
|
|
189
324
|
],
|
|
190
325
|
defaultVariants: {
|
|
191
326
|
variant: "primary",
|
|
192
327
|
theme: "kubefirst",
|
|
193
328
|
version: "default",
|
|
194
|
-
size: "default",
|
|
195
329
|
disabled: !1
|
|
196
330
|
}
|
|
197
331
|
}
|
|
198
332
|
);
|
|
199
333
|
export {
|
|
200
|
-
|
|
334
|
+
a as buttonVariants
|
|
201
335
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Footer, Logo, Navigation, NavigationGroup, NavigationOption, NavigationSeparator } from './components';
|
|
3
|
+
import { SidebarChildrenProps, SidebarProps } from './Sidebar.types';
|
|
4
|
+
declare const Sidebar: FC<SidebarProps> & SidebarChildrenProps;
|
|
5
|
+
export { Footer, Logo, Navigation, NavigationGroup, NavigationOption, NavigationSeparator, Sidebar, };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "../../contexts/theme.context.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { ThemeProvider as t } from "../../contexts/theme.provider.js";
|
|
5
|
+
import { Footer as a } from "./components/Footer/Footer.js";
|
|
6
|
+
import { Logo as m } from "./components/Logo/Logo.js";
|
|
7
|
+
import { Navigation as p } from "./components/Navigation/Navigation.js";
|
|
8
|
+
import { NavigationGroup as n } from "./components/NavigationGroup/NavigationGroup.js";
|
|
9
|
+
import { NavigationOption as e } from "./components/NavigationOption/NavigationOption.js";
|
|
10
|
+
import { NavigationSeparator as g } from "./components/NavigationSeparator/NavigationSeparator.js";
|
|
11
|
+
import { Wrapper as f } from "./components/Wrapper/Wrapper.js";
|
|
12
|
+
const o = (i) => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(f, { ...i }) });
|
|
13
|
+
o.Footer = a;
|
|
14
|
+
o.Logo = m;
|
|
15
|
+
o.Navigation = p;
|
|
16
|
+
o.NavigationGroup = n;
|
|
17
|
+
o.NavigationOption = e;
|
|
18
|
+
o.NavigationSeparator = g;
|
|
19
|
+
export {
|
|
20
|
+
a as Footer,
|
|
21
|
+
m as Logo,
|
|
22
|
+
p as Navigation,
|
|
23
|
+
n as NavigationGroup,
|
|
24
|
+
e as NavigationOption,
|
|
25
|
+
g as NavigationSeparator,
|
|
26
|
+
o as Sidebar
|
|
27
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { FC, PropsWithChildren } from 'react';
|
|
3
|
+
import { wrapperSiderbarVariants } from './Sidebar.variants';
|
|
4
|
+
import { FooterProps, LogoProps, NavigationGroupProps, NavigationOptionProps, NavigationProps, NavigationSeparatorProps } from './components';
|
|
5
|
+
export interface SidebarProps extends VariantProps<typeof wrapperSiderbarVariants>, PropsWithChildren {
|
|
6
|
+
wrapperClassName?: string;
|
|
7
|
+
minWith?: number;
|
|
8
|
+
maxWith?: number;
|
|
9
|
+
canResize?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type SidebarChildrenProps = {
|
|
12
|
+
Footer: FC<FooterProps>;
|
|
13
|
+
Logo: FC<LogoProps>;
|
|
14
|
+
Navigation: FC<NavigationProps>;
|
|
15
|
+
NavigationGroup: FC<NavigationGroupProps>;
|
|
16
|
+
NavigationOption: FC<NavigationOptionProps>;
|
|
17
|
+
NavigationSeparator: FC<NavigationSeparatorProps>;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const wrapperSiderbarVariants: (props?: ({
|
|
2
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
+
export declare const dragVariants: (props?: ({
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { c as a } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const r = a(
|
|
3
|
+
[
|
|
4
|
+
"duration-200",
|
|
5
|
+
"ease-linear",
|
|
6
|
+
"flex",
|
|
7
|
+
"flex-col",
|
|
8
|
+
"flex-shrink-0",
|
|
9
|
+
"group/sidebar",
|
|
10
|
+
"h-full",
|
|
11
|
+
"px-4",
|
|
12
|
+
"relative",
|
|
13
|
+
"transition-all",
|
|
14
|
+
"w-[256px]"
|
|
15
|
+
],
|
|
16
|
+
{
|
|
17
|
+
variants: {
|
|
18
|
+
theme: {
|
|
19
|
+
colony: "",
|
|
20
|
+
kubefirst: ["bg-kubefirst-dark-blue-900"],
|
|
21
|
+
civo: ""
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
theme: "kubefirst"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
), t = a(
|
|
29
|
+
[
|
|
30
|
+
"absolute",
|
|
31
|
+
"top-0",
|
|
32
|
+
"right-0",
|
|
33
|
+
"h-full",
|
|
34
|
+
"opacity-0",
|
|
35
|
+
"group-hover/sidebar:opacity-100",
|
|
36
|
+
"cursor-col-resize",
|
|
37
|
+
"w-[2px]",
|
|
38
|
+
"shadow",
|
|
39
|
+
"shadow-slate-200"
|
|
40
|
+
],
|
|
41
|
+
{
|
|
42
|
+
variants: {
|
|
43
|
+
theme: {
|
|
44
|
+
colony: "",
|
|
45
|
+
kubefirst: ["bg-slate-200"],
|
|
46
|
+
civo: ""
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
defaultVariants: {
|
|
50
|
+
theme: "kubefirst"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
export {
|
|
55
|
+
t as dragVariants,
|
|
56
|
+
r as wrapperSiderbarVariants
|
|
57
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import "../../../../contexts/theme.context.js";
|
|
3
|
+
import { useTheme as i } from "../../../../contexts/theme.hook.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../../../js.cookie-OLEfuq_g.js";
|
|
6
|
+
import { cn as p } from "../../../../utils/index.js";
|
|
7
|
+
import { footerVariants as s } from "./Footer.variants.js";
|
|
8
|
+
const T = ({ theme: o, className: t, children: r }) => {
|
|
9
|
+
const { theme: e } = i();
|
|
10
|
+
return /* @__PURE__ */ m(
|
|
11
|
+
"footer",
|
|
12
|
+
{
|
|
13
|
+
className: p(
|
|
14
|
+
s({ theme: o ?? e, className: t })
|
|
15
|
+
),
|
|
16
|
+
children: r
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
T as Footer
|
|
22
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { footerVariants } from './Footer.variants';
|
|
4
|
+
export interface FooterProps extends PropsWithChildren, VariantProps<typeof footerVariants> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { c as t } from "../../../../index-BNmRGtA6.js";
|
|
2
|
+
const a = t(
|
|
3
|
+
["p-2", "pb-5", "text-white", "flex", "flex-col", "gap-2"],
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
theme: {
|
|
7
|
+
colony: "",
|
|
8
|
+
kubefirst: "",
|
|
9
|
+
civo: ""
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
defaultVariants: {
|
|
13
|
+
theme: "kubefirst"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
a as footerVariants
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "../../../../contexts/theme.context.js";
|
|
3
|
+
import { useTheme as i } from "../../../../contexts/theme.hook.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../../../js.cookie-OLEfuq_g.js";
|
|
6
|
+
import { cn as p } from "../../../../utils/index.js";
|
|
7
|
+
import { logoVariants as s } from "./Logo.variants.js";
|
|
8
|
+
const l = ({ children: o, theme: m, className: r }) => {
|
|
9
|
+
const { theme: t } = i();
|
|
10
|
+
return /* @__PURE__ */ e(
|
|
11
|
+
"header",
|
|
12
|
+
{
|
|
13
|
+
className: p(s({ theme: m ?? t, className: r })),
|
|
14
|
+
children: o
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
l as Logo
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { c as t } from "../../../../index-BNmRGtA6.js";
|
|
2
|
+
const s = t(
|
|
3
|
+
[
|
|
4
|
+
"px-4",
|
|
5
|
+
"py-5",
|
|
6
|
+
"flex",
|
|
7
|
+
"flex-col",
|
|
8
|
+
"items-center",
|
|
9
|
+
"items-center",
|
|
10
|
+
"justify-center",
|
|
11
|
+
"gap-1",
|
|
12
|
+
"group",
|
|
13
|
+
"relative",
|
|
14
|
+
"mb-8",
|
|
15
|
+
"[&>span]:text-gray-100",
|
|
16
|
+
"[&>span]:text-xs",
|
|
17
|
+
"[&>span]:font-semibold",
|
|
18
|
+
"[&>span]:pl-14",
|
|
19
|
+
"[&>span]:-mt-2",
|
|
20
|
+
"[&>img]:pt-3",
|
|
21
|
+
"[&>*>span]:text-gray-100",
|
|
22
|
+
"[&>*>span]:text-xs",
|
|
23
|
+
"[&>*>span]:font-semibold",
|
|
24
|
+
"[&>*>span]:absolute",
|
|
25
|
+
"[&>*>span]:bottom-0",
|
|
26
|
+
"[&>*>span]:-mt-2",
|
|
27
|
+
"[&>*>img]:pt-3",
|
|
28
|
+
"cursor-pointer"
|
|
29
|
+
],
|
|
30
|
+
{
|
|
31
|
+
variants: {
|
|
32
|
+
theme: {
|
|
33
|
+
colony: "",
|
|
34
|
+
kubefirst: "",
|
|
35
|
+
civo: ""
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
theme: "kubefirst"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
export {
|
|
44
|
+
s as logoVariants
|
|
45
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import "../../../../contexts/theme.context.js";
|
|
3
|
+
import { useTheme as n } from "../../../../contexts/theme.hook.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../../../js.cookie-OLEfuq_g.js";
|
|
6
|
+
import { cn as p } from "../../../../utils/index.js";
|
|
7
|
+
import { NavigationGroup as e } from "../NavigationGroup/NavigationGroup.js";
|
|
8
|
+
import { NavigationOption as v } from "../NavigationOption/NavigationOption.js";
|
|
9
|
+
import { NavigationSeparator as g } from "../NavigationSeparator/NavigationSeparator.js";
|
|
10
|
+
import { NavigationTitle as N } from "../NavigationTitle/NavigationTitle.js";
|
|
11
|
+
import { navigationVariants as f } from "./Navigation.variants.js";
|
|
12
|
+
const o = ({
|
|
13
|
+
className: i,
|
|
14
|
+
theme: t,
|
|
15
|
+
children: a
|
|
16
|
+
}) => {
|
|
17
|
+
const { theme: r } = n();
|
|
18
|
+
return /* @__PURE__ */ m(
|
|
19
|
+
"nav",
|
|
20
|
+
{
|
|
21
|
+
className: p(
|
|
22
|
+
f({ theme: t ?? r, className: i })
|
|
23
|
+
),
|
|
24
|
+
children: a
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
o.NavigationGroup = e;
|
|
29
|
+
o.NavigationOption = v;
|
|
30
|
+
o.NavigationSeparator = g;
|
|
31
|
+
o.NavigationTitle = N;
|
|
32
|
+
export {
|
|
33
|
+
o as Navigation
|
|
34
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { FC, PropsWithChildren } from 'react';
|
|
3
|
+
import { NavigationGroupProps } from '../NavigationGroup/NavigationGroup.types';
|
|
4
|
+
import { NavigationOptionProps } from '../NavigationOption/NavigationOption.types';
|
|
5
|
+
import { NavigationSeparatorProps } from '../NavigationSeparator/NavigationSeparator.types';
|
|
6
|
+
import { NavigationTitleProps } from '../NavigationTitle/NavigationTitle.types';
|
|
7
|
+
import { navigationVariants } from './Navigation.variants';
|
|
8
|
+
export interface NavigationProps extends PropsWithChildren, VariantProps<typeof navigationVariants> {
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export type NavigationChildrenProps = {
|
|
12
|
+
NavigationGroup: FC<NavigationGroupProps>;
|
|
13
|
+
NavigationOption: FC<NavigationOptionProps>;
|
|
14
|
+
NavigationSeparator: FC<NavigationSeparatorProps>;
|
|
15
|
+
NavigationTitle: FC<NavigationTitleProps>;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { c as t } from "../../../../index-BNmRGtA6.js";
|
|
2
|
+
const e = t(
|
|
3
|
+
["flex", "flex-1", "w-full", "flex-col"],
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
theme: {
|
|
7
|
+
colony: "",
|
|
8
|
+
kubefirst: "",
|
|
9
|
+
civo: ""
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
defaultVariants: {
|
|
13
|
+
theme: "kubefirst"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
e as navigationVariants
|
|
19
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs as p, Fragment as u, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "../../../../utils/index.js";
|
|
3
|
+
import { NavigationTitle as c } from "../NavigationTitle/NavigationTitle.js";
|
|
4
|
+
import { navigationGroupsVariants as f } from "./NavigationGroup.variants.js";
|
|
5
|
+
import "../../../../contexts/theme.context.js";
|
|
6
|
+
import { useTheme as h } from "../../../../contexts/theme.hook.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import "../../../../js.cookie-OLEfuq_g.js";
|
|
9
|
+
const F = ({
|
|
10
|
+
children: t,
|
|
11
|
+
title: r,
|
|
12
|
+
className: m,
|
|
13
|
+
theme: e,
|
|
14
|
+
titleClassName: i,
|
|
15
|
+
isVisible: n = !0,
|
|
16
|
+
...a
|
|
17
|
+
}) => {
|
|
18
|
+
const { theme: s } = h();
|
|
19
|
+
return n ? /* @__PURE__ */ p(u, { children: [
|
|
20
|
+
r ? /* @__PURE__ */ o(
|
|
21
|
+
c,
|
|
22
|
+
{
|
|
23
|
+
title: r,
|
|
24
|
+
className: i,
|
|
25
|
+
...a
|
|
26
|
+
}
|
|
27
|
+
) : null,
|
|
28
|
+
/* @__PURE__ */ o(
|
|
29
|
+
"ul",
|
|
30
|
+
{
|
|
31
|
+
className: l(
|
|
32
|
+
f({ theme: e ?? s, className: m })
|
|
33
|
+
),
|
|
34
|
+
children: t
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] }) : null;
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
F as NavigationGroup
|
|
41
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { HtmlHTMLAttributes, PropsWithChildren } from 'react';
|
|
3
|
+
import { navigationGroupsVariants } from './NavigationGroup.variants';
|
|
4
|
+
export interface NavigationGroupProps extends PropsWithChildren, VariantProps<typeof navigationGroupsVariants>, Pick<HtmlHTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
5
|
+
title?: string;
|
|
6
|
+
titleClassName?: string;
|
|
7
|
+
isVisible?: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { c as t } from "../../../../index-BNmRGtA6.js";
|
|
2
|
+
const e = t(["flex", "flex-col"], {
|
|
3
|
+
variants: {
|
|
4
|
+
theme: {
|
|
5
|
+
colony: "",
|
|
6
|
+
kubefirst: "",
|
|
7
|
+
civo: ""
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
defaultVariants: {
|
|
11
|
+
theme: "kubefirst"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
e as navigationGroupsVariants
|
|
16
|
+
};
|