@konstructio/ui 0.0.9 → 0.0.11

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.
Files changed (100) hide show
  1. package/dist/{Modal-Ca3bkvvt.js → Modal-L73dmnHv.js} +240 -235
  2. package/dist/components/AlertDialog/AlertDialog.js +37 -30
  3. package/dist/components/AlertDialog/AlertDialog.types.d.ts +7 -2
  4. package/dist/components/Autocomplete/Autocomplete.js +42 -37
  5. package/dist/components/Autocomplete/components/List/List.js +60 -0
  6. package/dist/components/Autocomplete/components/{List.types.d.ts → List/List.types.d.ts} +3 -3
  7. package/dist/components/Autocomplete/components/{List.variants.js → List/List.variants.js} +1 -1
  8. package/dist/components/Autocomplete/components/index.d.ts +1 -0
  9. package/dist/components/Autocomplete/components/index.js +4 -0
  10. package/dist/components/Breadcrumb/Breadcrumb.js +44 -39
  11. package/dist/components/Button/Button.variants.d.ts +2 -2
  12. package/dist/components/Button/Button.variants.js +142 -8
  13. package/dist/components/Card/Card.js +30 -25
  14. package/dist/components/Checkbox/Checkbox.js +56 -51
  15. package/dist/components/Dropdown/components/ListItem/ListItem.js +18 -17
  16. package/dist/components/Dropdown/components/Wrapper.js +15 -15
  17. package/dist/components/Input/Input.js +4 -4
  18. package/dist/components/Modal/Modal.js +1 -1
  19. package/dist/components/Modal/components/Footer/Footer.js +5 -4
  20. package/dist/components/Modal/components/Header/Header.js +4 -3
  21. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -3
  22. package/dist/components/Modal/components/index.js +1 -1
  23. package/dist/components/NumberInput/NumberInput.js +78 -69
  24. package/dist/components/ProgressBar/ProgressBar.js +6 -6
  25. package/dist/components/Radio/Radio.js +21 -18
  26. package/dist/components/RadioGroup/RadioGroup.js +26 -22
  27. package/dist/components/RadioGroup/RadioGroup.types.d.ts +4 -3
  28. package/dist/components/Range/Range.js +40 -40
  29. package/dist/components/Sidebar/Sidebar.d.ts +5 -0
  30. package/dist/components/Sidebar/Sidebar.js +27 -0
  31. package/dist/components/Sidebar/Sidebar.types.d.ts +17 -0
  32. package/dist/components/Sidebar/Sidebar.types.js +1 -0
  33. package/dist/components/Sidebar/Sidebar.variants.d.ts +6 -0
  34. package/dist/components/Sidebar/Sidebar.variants.js +56 -0
  35. package/dist/components/Sidebar/components/Footer/Footer.d.ts +3 -0
  36. package/dist/components/Sidebar/components/Footer/Footer.js +22 -0
  37. package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +6 -0
  38. package/dist/components/Sidebar/components/Footer/Footer.types.js +1 -0
  39. package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +3 -0
  40. package/dist/components/Sidebar/components/Footer/Footer.variants.js +19 -0
  41. package/dist/components/Sidebar/components/Logo/Logo.d.ts +3 -0
  42. package/dist/components/Sidebar/components/Logo/Logo.js +20 -0
  43. package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +6 -0
  44. package/dist/components/Sidebar/components/Logo/Logo.types.js +1 -0
  45. package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -0
  46. package/dist/components/Sidebar/components/Logo/Logo.variants.js +45 -0
  47. package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +4 -0
  48. package/dist/components/Sidebar/components/Navigation/Navigation.js +34 -0
  49. package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +16 -0
  50. package/dist/components/Sidebar/components/Navigation/Navigation.types.js +1 -0
  51. package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +3 -0
  52. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +19 -0
  53. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +3 -0
  54. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +40 -0
  55. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +7 -0
  56. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +1 -0
  57. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +3 -0
  58. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +16 -0
  59. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +3 -0
  60. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +29 -0
  61. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +15 -0
  62. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +1 -0
  63. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +3 -0
  64. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +39 -0
  65. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +3 -0
  66. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +24 -0
  67. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +5 -0
  68. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +1 -0
  69. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +3 -0
  70. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +19 -0
  71. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +3 -0
  72. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +26 -0
  73. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +7 -0
  74. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +1 -0
  75. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +3 -0
  76. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +23 -0
  77. package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +3 -0
  78. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +84 -0
  79. package/dist/components/Sidebar/components/index.d.ts +15 -0
  80. package/dist/components/Sidebar/components/index.js +18 -0
  81. package/dist/components/Slider/Slider.js +25 -25
  82. package/dist/components/Switch/Switch.js +30 -30
  83. package/dist/components/Tag/Tag.js +5 -4
  84. package/dist/components/TagSelect/TagSelect.js +24 -24
  85. package/dist/components/TextArea/TextArea.js +17 -16
  86. package/dist/components/Toast/Toast.js +103 -97
  87. package/dist/components/Tooltip/Tooltip.js +12 -12
  88. package/dist/components/index.d.ts +1 -0
  89. package/dist/components/index.js +44 -30
  90. package/dist/index.js +47 -33
  91. package/dist/package.json +31 -16
  92. package/dist/plugins/utils/colors.d.ts +5 -0
  93. package/dist/plugins/utils/colors.js +6 -1
  94. package/dist/styles.css +1 -1
  95. package/dist/utils/index.js +747 -530
  96. package/package.json +31 -16
  97. package/dist/components/Autocomplete/components/List.js +0 -57
  98. /package/dist/components/Autocomplete/components/{List.d.ts → List/List.d.ts} +0 -0
  99. /package/dist/components/Autocomplete/components/{List.types.js → List/List.types.js} +0 -0
  100. /package/dist/components/Autocomplete/components/{List.variants.d.ts → List/List.variants.d.ts} +0 -0
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { FooterProps } from './Footer.types';
3
+ export declare const Footer: FC<FooterProps>;
@@ -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,3 @@
1
+ export declare const footerVariants: (props?: ({
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -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,3 @@
1
+ import { FC } from 'react';
2
+ import { LogoProps } from './Logo.types';
3
+ export declare const Logo: FC<LogoProps>;
@@ -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,6 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { PropsWithChildren } from 'react';
3
+ import { logoVariants } from './Logo.variants';
4
+ export interface LogoProps extends PropsWithChildren, VariantProps<typeof logoVariants> {
5
+ className?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ export declare const logoVariants: (props?: ({
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -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,4 @@
1
+ import { FC } from 'react';
2
+ import { NavigationChildrenProps, NavigationProps } from './Navigation.types';
3
+ declare const Navigation: FC<NavigationProps> & NavigationChildrenProps;
4
+ export { Navigation };
@@ -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,3 @@
1
+ export declare const navigationVariants: (props?: ({
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -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,3 @@
1
+ import { FC } from 'react';
2
+ import { NavigationGroupProps } from './NavigationGroup.types';
3
+ export declare const NavigationGroup: FC<NavigationGroupProps>;
@@ -0,0 +1,40 @@
1
+ import { jsxs as s, Fragment as p, jsx as r } from "react/jsx-runtime";
2
+ import { cn as c } from "../../../../utils/index.js";
3
+ import { NavigationTitle as l } from "../NavigationTitle/NavigationTitle.js";
4
+ import { navigationGroupsVariants as u } from "./NavigationGroup.variants.js";
5
+ import "../../../../contexts/theme.context.js";
6
+ import { useTheme as f } from "../../../../contexts/theme.hook.js";
7
+ import "react";
8
+ import "../../../../js.cookie-OLEfuq_g.js";
9
+ const d = ({
10
+ children: m,
11
+ title: o,
12
+ className: t,
13
+ theme: e,
14
+ titleClassName: i,
15
+ ...a
16
+ }) => {
17
+ const { theme: n } = f();
18
+ return /* @__PURE__ */ s(p, { children: [
19
+ o ? /* @__PURE__ */ r(
20
+ l,
21
+ {
22
+ title: o,
23
+ className: i,
24
+ ...a
25
+ }
26
+ ) : null,
27
+ /* @__PURE__ */ r(
28
+ "ul",
29
+ {
30
+ className: c(
31
+ u({ theme: e ?? n, className: t })
32
+ ),
33
+ children: m
34
+ }
35
+ )
36
+ ] });
37
+ };
38
+ export {
39
+ d as NavigationGroup
40
+ };
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ export declare const navigationGroupsVariants: (props?: ({
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { NavigationOptionProps } from './NavigationOption.types';
3
+ export declare const NavigationOption: FC<NavigationOptionProps>;
@@ -0,0 +1,29 @@
1
+ import { jsx as e } 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 { navigationOptionVariants as a } from "./NavigationOption.variants.js";
8
+ const u = ({
9
+ children: o,
10
+ className: t,
11
+ theme: i,
12
+ ...m
13
+ }) => {
14
+ const { theme: r } = n();
15
+ return /* @__PURE__ */ e(
16
+ "li",
17
+ {
18
+ ...m,
19
+ role: "option",
20
+ className: p(
21
+ a({ theme: i ?? r, className: t })
22
+ ),
23
+ children: o
24
+ }
25
+ );
26
+ };
27
+ export {
28
+ u as NavigationOption
29
+ };
@@ -0,0 +1,15 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { ReactNode } from 'react';
3
+ import { navigationOptionVariants } from './NavigationOption.variants';
4
+ type NavigationOption = VariantProps<typeof navigationOptionVariants> & {
5
+ className?: string;
6
+ };
7
+ export type NavigationOptionProps = NavigationOption & ({
8
+ role: 'button';
9
+ children: ReactNode;
10
+ onClick: VoidFunction;
11
+ } | {
12
+ role?: never;
13
+ children: ReactNode;
14
+ });
15
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const navigationOptionVariants: (props?: ({
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,39 @@
1
+ import { c as t } from "../../../../index-BNmRGtA6.js";
2
+ const o = t(
3
+ [
4
+ "font-normal",
5
+ "flex",
6
+ "gap-2",
7
+ "w-full",
8
+ "[&>a]:w-full",
9
+ "[&>a]:flex",
10
+ "[&>a]:gap-2",
11
+ "px-4",
12
+ "py-2.5",
13
+ "cursor-pointer",
14
+ "hover:rounded-xl",
15
+ "font-normal",
16
+ "text-black"
17
+ ],
18
+ {
19
+ variants: {
20
+ theme: {
21
+ colony: "",
22
+ kubefirst: [
23
+ "text-[#9ea2c6]",
24
+ "hover:text-white",
25
+ "hover:bg-[#252a41]",
26
+ "selection:bg-powder-500",
27
+ "selection:text-white"
28
+ ],
29
+ civo: ""
30
+ }
31
+ },
32
+ defaultVariants: {
33
+ theme: "kubefirst"
34
+ }
35
+ }
36
+ );
37
+ export {
38
+ o as navigationOptionVariants
39
+ };
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { NavigationSeparatorProps } from './NavigationSeparator.types';
3
+ export declare const NavigationSeparator: FC<NavigationSeparatorProps>;
@@ -0,0 +1,24 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import "../../../../contexts/theme.context.js";
3
+ import { useTheme as e } from "../../../../contexts/theme.hook.js";
4
+ import "react";
5
+ import "../../../../js.cookie-OLEfuq_g.js";
6
+ import { cn as i } from "../../../../utils/index.js";
7
+ import { navigationSeparatorVariant as a } from "./NavigationSeparator.variants.js";
8
+ const x = ({
9
+ className: t,
10
+ theme: o
11
+ }) => {
12
+ const { theme: r } = e();
13
+ return /* @__PURE__ */ m(
14
+ "div",
15
+ {
16
+ className: i(
17
+ a({ className: t, theme: o ?? r })
18
+ )
19
+ }
20
+ );
21
+ };
22
+ export {
23
+ x as NavigationSeparator
24
+ };
@@ -0,0 +1,5 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { HTMLAttributes } from 'react';
3
+ import { navigationSeparatorVariant } from './NavigationSeparator.variants';
4
+ export interface NavigationSeparatorProps extends Pick<HTMLAttributes<HTMLDivElement>, 'className' | 'style'>, VariantProps<typeof navigationSeparatorVariant> {
5
+ }
@@ -0,0 +1,3 @@
1
+ export declare const navigationSeparatorVariant: (props?: ({
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,19 @@
1
+ import { c as r } from "../../../../index-BNmRGtA6.js";
2
+ const a = r(
3
+ ["border-t", "rounded-full", "my-1.5"],
4
+ {
5
+ variants: {
6
+ theme: {
7
+ colony: "",
8
+ kubefirst: "border-t-[#9ea2c6]/30",
9
+ civo: ""
10
+ }
11
+ },
12
+ defaultVariants: {
13
+ theme: "kubefirst"
14
+ }
15
+ }
16
+ );
17
+ export {
18
+ a as navigationSeparatorVariant
19
+ };
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { NavigationTitleProps } from './NavigationTitle.types';
3
+ export declare const NavigationTitle: FC<NavigationTitleProps>;
@@ -0,0 +1,26 @@
1
+ import { jsx as r } 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 n } from "../../../../utils/index.js";
7
+ import { navigationTitleVariants as a } from "./NavigationTitle.variants.js";
8
+ const x = ({
9
+ title: t,
10
+ className: o,
11
+ theme: e
12
+ }) => {
13
+ const { theme: m } = i();
14
+ return /* @__PURE__ */ r(
15
+ "h2",
16
+ {
17
+ className: n(
18
+ a({ theme: e ?? m, className: o })
19
+ ),
20
+ children: t
21
+ }
22
+ );
23
+ };
24
+ export {
25
+ x as NavigationTitle
26
+ };
@@ -0,0 +1,7 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { HtmlHTMLAttributes } from 'react';
3
+ import { navigationTitleVariants } from './NavigationTitle.variants';
4
+ export interface NavigationTitleProps extends VariantProps<typeof navigationTitleVariants>, Pick<HtmlHTMLAttributes<HTMLHeadingElement>, 'className'> {
5
+ title: string;
6
+ className?: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ export declare const navigationTitleVariants: (props?: ({
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,23 @@
1
+ import { c as t } from "../../../../index-BNmRGtA6.js";
2
+ const i = t(
3
+ ["text-sm", "font-bold", "px-4", "mt-3", "mb-2"],
4
+ {
5
+ variants: {
6
+ theme: {
7
+ colony: "",
8
+ kubefirst: [
9
+ "text-white",
10
+ "selection:bg-powder-500",
11
+ "selection:text-white"
12
+ ],
13
+ civo: ""
14
+ }
15
+ },
16
+ defaultVariants: {
17
+ theme: "kubefirst"
18
+ }
19
+ }
20
+ );
21
+ export {
22
+ i as navigationTitleVariants
23
+ };
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { SidebarProps } from '../../Sidebar.types';
3
+ export declare const Wrapper: FC<SidebarProps>;
@@ -0,0 +1,84 @@
1
+ import { jsxs as N, jsx as x } from "react/jsx-runtime";
2
+ import { useRef as d, useCallback as l, useMemo as s, Children as a, isValidElement as v, useEffect as C } from "react";
3
+ import "../../../../contexts/theme.context.js";
4
+ import { useTheme as D } from "../../../../contexts/theme.hook.js";
5
+ import "../../../../js.cookie-OLEfuq_g.js";
6
+ import { cn as E } from "../../../../utils/index.js";
7
+ import { wrapperSiderbarVariants as T, dragVariants as V } from "../../Sidebar.variants.js";
8
+ import { Footer as b } from "../Footer/Footer.js";
9
+ import { Logo as j } from "../Logo/Logo.js";
10
+ import { Navigation as z } from "../Navigation/Navigation.js";
11
+ const H = ({
12
+ wrapperClassName: M,
13
+ theme: i,
14
+ children: y,
15
+ minWith: m = 240,
16
+ maxWith: c = 300
17
+ }) => {
18
+ const r = d(null), u = d(null), f = d(!1), { theme: g, setTheme: L } = D(), n = l(
19
+ (e) => {
20
+ if (!f.current) {
21
+ r.current && (r.current.style.opacity = "0");
22
+ return;
23
+ }
24
+ let o = e.clientX;
25
+ o < m && (o = m), o > c && (o = c), u.current && r.current && (u.current.style.width = `${o}px`, r.current.classList.add("opacity-100"));
26
+ },
27
+ [c, m]
28
+ ), p = l(() => {
29
+ f.current = !1, r.current && r.current.classList.remove("opacity-100"), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", p);
30
+ }, [n]), w = l(
31
+ (e) => {
32
+ e.preventDefault(), e.stopPropagation(), f.current = !0, document.addEventListener("mousemove", n), document.addEventListener("mouseup", p);
33
+ },
34
+ [n, p]
35
+ ), t = s(
36
+ () => a.toArray(y),
37
+ [y]
38
+ ), R = s(
39
+ () => a.toArray(t).find(
40
+ (e) => v(e) && e.type === j
41
+ ),
42
+ [t]
43
+ ), h = s(
44
+ () => a.toArray(t).find(
45
+ (e) => v(e) && e.type === z
46
+ ),
47
+ [t]
48
+ ), A = s(
49
+ () => a.toArray(t).find(
50
+ (e) => v(e) && e.type === b
51
+ ),
52
+ [t]
53
+ );
54
+ return C(() => {
55
+ i && L(i);
56
+ }, [L, i]), /* @__PURE__ */ N(
57
+ "aside",
58
+ {
59
+ ref: u,
60
+ className: E(
61
+ T({
62
+ className: M,
63
+ theme: g
64
+ })
65
+ ),
66
+ children: [
67
+ R,
68
+ h,
69
+ A,
70
+ /* @__PURE__ */ x(
71
+ "div",
72
+ {
73
+ ref: r,
74
+ className: E(V({ theme: g })),
75
+ onMouseDown: w
76
+ }
77
+ )
78
+ ]
79
+ }
80
+ );
81
+ };
82
+ export {
83
+ H as Wrapper
84
+ };