@konstructio/ui 0.0.12-alpha.0 → 0.0.12
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.
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { NavigationTitle as
|
|
4
|
-
import { navigationGroupsVariants as
|
|
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
5
|
import "../../../../contexts/theme.context.js";
|
|
6
|
-
import { useTheme as
|
|
6
|
+
import { useTheme as f } from "../../../../contexts/theme.hook.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../../../../js.cookie-OLEfuq_g.js";
|
|
9
|
-
const
|
|
10
|
-
children:
|
|
11
|
-
title:
|
|
12
|
-
className:
|
|
9
|
+
const d = ({
|
|
10
|
+
children: m,
|
|
11
|
+
title: o,
|
|
12
|
+
className: t,
|
|
13
13
|
theme: e,
|
|
14
14
|
titleClassName: i,
|
|
15
|
-
isVisible: n = !0,
|
|
16
15
|
...a
|
|
17
16
|
}) => {
|
|
18
|
-
const { theme:
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
const { theme: n } = f();
|
|
18
|
+
return /* @__PURE__ */ s(p, { children: [
|
|
19
|
+
o ? /* @__PURE__ */ r(
|
|
20
|
+
l,
|
|
22
21
|
{
|
|
23
|
-
title:
|
|
22
|
+
title: o,
|
|
24
23
|
className: i,
|
|
25
24
|
...a
|
|
26
25
|
}
|
|
27
26
|
) : null,
|
|
28
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ r(
|
|
29
28
|
"ul",
|
|
30
29
|
{
|
|
31
|
-
className:
|
|
32
|
-
|
|
30
|
+
className: c(
|
|
31
|
+
u({ theme: e ?? n, className: t })
|
|
33
32
|
),
|
|
34
|
-
children:
|
|
33
|
+
children: m
|
|
35
34
|
}
|
|
36
35
|
)
|
|
37
|
-
] })
|
|
36
|
+
] });
|
|
38
37
|
};
|
|
39
38
|
export {
|
|
40
|
-
|
|
39
|
+
d as NavigationGroup
|
|
41
40
|
};
|
|
@@ -4,5 +4,4 @@ import { navigationGroupsVariants } from './NavigationGroup.variants';
|
|
|
4
4
|
export interface NavigationGroupProps extends PropsWithChildren, VariantProps<typeof navigationGroupsVariants>, Pick<HtmlHTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
|
|
5
5
|
title?: string;
|
|
6
6
|
titleClassName?: string;
|
|
7
|
-
isVisible?: boolean;
|
|
8
7
|
}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED