@konstructio/ui 0.0.12-alpha.1 → 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.
- package/dist/{index-BVppSRDQ.js → AlertDialogTrigger-D4Tm_9M0.js} +21 -19
- package/dist/{Combination-BQYb0Gw7.js → Combination-Cmu9JRkv.js} +72 -72
- package/dist/{Modal-W2GbkC_F.js → Modal-L73dmnHv.js} +246 -238
- package/dist/{chevron-up-DgLBQCKD.js → chevron-up-CvquEaNg.js} +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +3 -0
- package/dist/components/AlertDialog/AlertDialog.js +23 -20
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +18 -0
- package/dist/components/AlertDialog/AlertDialog.types.js +1 -0
- package/dist/components/AlertDialog/AlertDialog.variants.d.ts +3 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +3 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +6 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +6 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +1 -0
- package/dist/components/AlertDialog/components/index.d.ts +1 -0
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/index.d.ts +1 -0
- package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +7 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +3 -0
- package/dist/components/Autocomplete/Autocomplete.js +17 -15
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +18 -0
- package/dist/components/Autocomplete/Autocomplete.types.js +1 -0
- package/dist/components/Autocomplete/Autocomplete.variants.d.ts +8 -0
- package/dist/components/Autocomplete/components/List/List.d.ts +3 -0
- package/dist/components/Autocomplete/components/List/List.js +7 -7
- package/dist/components/Autocomplete/components/List/List.types.d.ts +13 -0
- package/dist/components/Autocomplete/components/List/List.types.js +1 -0
- package/dist/components/Autocomplete/components/List/List.variants.d.ts +16 -0
- package/dist/components/Autocomplete/components/index.d.ts +1 -0
- package/dist/components/Autocomplete/hooks/index.d.ts +2 -0
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +17 -0
- package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +10 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +69 -68
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +11 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +12 -0
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +17 -16
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +3 -2
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.js +16 -14
- package/dist/components/Button/Button.types.d.ts +7 -0
- package/dist/components/Button/Button.types.js +1 -0
- package/dist/components/Button/Button.variants.d.ts +7 -0
- package/dist/components/Card/Card.d.ts +4 -0
- package/dist/components/Card/Card.js +12 -10
- package/dist/components/Card/Card.types.d.ts +8 -0
- package/dist/components/Card/Card.types.js +1 -0
- package/dist/components/Card/Card.variants.d.ts +10 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.js +15 -13
- package/dist/components/Checkbox/Checkbox.types.d.ts +14 -0
- package/dist/components/Checkbox/Checkbox.types.js +1 -0
- package/dist/components/Checkbox/Checkbox.variants.d.ts +9 -0
- package/dist/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.js +6 -4
- package/dist/components/Dropdown/Dropdown.types.d.ts +16 -0
- package/dist/components/Dropdown/Dropdown.types.js +1 -0
- package/dist/components/Dropdown/Dropdown.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/EmptyList.d.ts +2 -0
- package/dist/components/Dropdown/components/List/List.d.ts +3 -0
- package/dist/components/Dropdown/components/List/List.js +10 -9
- package/dist/components/Dropdown/components/List/List.types.d.ts +6 -0
- package/dist/components/Dropdown/components/List/List.types.js +1 -0
- package/dist/components/Dropdown/components/List/List.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +3 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.js +21 -20
- package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +4 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.types.js +1 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/Wrapper.d.ts +3 -0
- package/dist/components/Dropdown/components/Wrapper.js +34 -31
- package/dist/components/Dropdown/components/index.d.ts +3 -0
- package/dist/components/Dropdown/contexts/dropdown.context.d.ts +8 -0
- package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +2 -0
- package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +5 -0
- package/dist/components/Dropdown/contexts/dropdown.provider.js +4 -4
- package/dist/components/Dropdown/contexts/index.d.ts +2 -0
- package/dist/components/Dropdown/hooks/useDropdown.d.ts +11 -0
- package/dist/components/Dropdown/hooks/useDropdown.js +14 -12
- package/dist/components/Dropdown/hooks/useNavigationList.d.ts +8 -0
- package/dist/components/Dropdown/hooks/useNavigationList.js +10 -8
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.js +14 -12
- package/dist/components/Input/Input.types.d.ts +9 -0
- package/dist/components/Input/Input.types.js +1 -0
- package/dist/components/Input/Input.variants.d.ts +4 -0
- package/dist/components/Modal/Modal.d.ts +8 -0
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/Modal/Modal.types.d.ts +12 -0
- package/dist/components/Modal/Modal.types.js +1 -0
- package/dist/components/Modal/components/Body/Body.d.ts +3 -0
- package/dist/components/Modal/components/Body/Body.types.d.ts +5 -0
- package/dist/components/Modal/components/Body/Body.types.js +1 -0
- package/dist/components/Modal/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Modal/components/Footer/Footer.types.d.ts +5 -0
- package/dist/components/Modal/components/Footer/Footer.types.js +1 -0
- package/dist/components/Modal/components/Header/Header.d.ts +3 -0
- package/dist/components/Modal/components/Header/Header.types.d.ts +5 -0
- package/dist/components/Modal/components/Header/Header.types.js +1 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.js +9 -7
- package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +7 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.types.js +1 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +6 -0
- package/dist/components/Modal/components/index.d.ts +4 -0
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.context.d.ts +2 -0
- package/dist/components/Modal/contexts/Modal.provider.d.ts +4 -0
- package/dist/components/Modal/contexts/Modal.provider.js +4 -4
- package/dist/components/Modal/contexts/Modal.types.d.ts +9 -0
- package/dist/components/Modal/contexts/Modal.types.js +1 -0
- package/dist/components/Modal/contexts/index.d.ts +1 -0
- package/dist/components/Modal/hooks/index.d.ts +1 -0
- package/dist/components/Modal/hooks/useModal.d.ts +9 -0
- package/dist/components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/components/NumberInput/NumberInput.js +11 -9
- package/dist/components/NumberInput/NumberInput.types.d.ts +11 -0
- package/dist/components/NumberInput/NumberInput.types.js +1 -0
- package/dist/components/NumberInput/NumberInput.variants.d.ts +11 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/ProgressBar/ProgressBar.js +16 -13
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +8 -0
- package/dist/components/ProgressBar/ProgressBar.types.js +1 -0
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +7 -0
- package/dist/components/Radio/Radio.d.ts +3 -0
- package/dist/components/Radio/Radio.js +37 -55
- package/dist/components/Radio/Radio.types.d.ts +12 -0
- package/dist/components/Radio/Radio.types.js +1 -0
- package/dist/components/Radio/Radio.variants.d.ts +3 -0
- package/dist/components/Radio/Radio.variants.js +16 -69
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroup.js +27 -37
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +12 -0
- package/dist/components/RadioGroup/RadioGroup.types.js +1 -0
- package/dist/components/Range/Range.d.ts +3 -0
- package/dist/components/Range/Range.js +22 -20
- package/dist/components/Range/Range.types.d.ts +13 -0
- package/dist/components/Range/Range.types.js +1 -0
- package/dist/components/Range/Range.variants.d.ts +14 -0
- package/dist/components/Sidebar/Sidebar.d.ts +5 -0
- package/dist/components/Sidebar/Sidebar.js +22 -20
- 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/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Sidebar/components/Footer/Footer.js +12 -9
- 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/Logo/Logo.d.ts +3 -0
- package/dist/components/Sidebar/components/Logo/Logo.js +12 -9
- 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/Navigation/Navigation.d.ts +4 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.js +15 -12
- 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/NavigationGroup/NavigationGroup.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +26 -24
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +7 -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/NavigationOption/NavigationOption.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +20 -17
- 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/NavigationSeparator/NavigationSeparator.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +11 -8
- 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/NavigationTitle/NavigationTitle.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +13 -10
- 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/Wrapper/Wrapper.d.ts +3 -0
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +27 -29
- package/dist/components/Sidebar/components/index.d.ts +15 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Slider/Slider.js +20 -18
- package/dist/components/Slider/Slider.types.d.ts +13 -0
- package/dist/components/Slider/Slider.types.js +1 -0
- package/dist/components/Slider/Slider.variants.d.ts +11 -0
- package/dist/components/Switch/Switch.d.ts +3 -0
- package/dist/components/Switch/Switch.js +21 -19
- package/dist/components/Switch/Switch.types.d.ts +10 -0
- package/dist/components/Switch/Switch.types.js +1 -0
- package/dist/components/Switch/Switch.variants.d.ts +6 -0
- package/dist/components/Tag/Tag.d.ts +3 -0
- package/dist/components/Tag/Tag.types.d.ts +4 -0
- package/dist/components/Tag/Tag.types.js +1 -0
- package/dist/components/Tag/Tag.variants.d.ts +3 -0
- package/dist/components/TagSelect/TagSelect.d.ts +3 -0
- package/dist/components/TagSelect/TagSelect.js +21 -19
- package/dist/components/TagSelect/TagSelect.types.d.ts +9 -0
- package/dist/components/TagSelect/TagSelect.types.js +1 -0
- package/dist/components/TagSelect/TagSelect.variants.d.ts +9 -0
- package/dist/components/TagSelect/hooks/useTagSelect.d.ts +9 -0
- package/dist/components/TextArea/TextArea.d.ts +3 -0
- package/dist/components/TextArea/TextArea.js +19 -17
- package/dist/components/TextArea/TextArea.types.d.ts +10 -0
- package/dist/components/TextArea/TextArea.types.js +1 -0
- package/dist/components/TextArea/TextArea.variants.d.ts +3 -0
- package/dist/components/Toast/Toast.d.ts +3 -0
- package/dist/components/Toast/Toast.js +54 -52
- package/dist/components/Toast/Toast.types.d.ts +12 -0
- package/dist/components/Toast/Toast.types.js +1 -0
- package/dist/components/Toast/Toast.variants.d.ts +9 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.js +12 -10
- package/dist/components/Tooltip/Tooltip.types.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.types.js +1 -0
- package/dist/components/Tooltip/Tooltip.variants.d.ts +8 -0
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +4 -0
- package/dist/components/index.d.ts +21 -0
- package/dist/components/index.js +44 -50
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts/theme.context.d.ts +6 -0
- package/dist/contexts/theme.hook.d.ts +7 -0
- package/dist/contexts/theme.provider.d.ts +6 -0
- package/dist/contexts/theme.provider.js +14 -84
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useToggle.d.ts +1 -0
- package/dist/{index-1GLoikpT.js → index-BaNV0qac.js} +6585 -6555
- package/dist/{index-CoqDsznq.js → index-BedjZUuB.js} +1 -1
- package/dist/{index-KEdwcThH.js → index-BtibbG81.js} +1 -1
- package/dist/{index-C5psggHV.js → index-D68N8v8R.js} +17 -17
- package/dist/{index-CJsYodgi.js → index-z-AJyzdv.js} +10 -10
- package/dist/index.d.ts +4 -522
- package/dist/index.js +53 -59
- package/dist/js.cookie-OLEfuq_g.js +74 -0
- package/dist/package.json +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/konstruct.d.ts +4 -0
- package/dist/plugins/konstruct.js +3 -3
- package/dist/plugins/utils/colors.d.ts +328 -0
- package/dist/styles.css +1 -1
- package/dist/styles.d.ts +0 -0
- package/dist/styles.js +1 -1
- package/dist/useBreadcrumb-DxYsZvj_.js +1398 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/{x-DU-Zw-L_.js → x-CRBgmX1Q.js} +1 -1
- package/package.json +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +0 -61
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +0 -90
- package/dist/components/Breadcrumb/components/index.js +0 -4
- package/dist/components/RadioCard/RadioCard.js +0 -41
- package/dist/components/RadioCard/RadioCard.variants.js +0 -19
- package/dist/components/RadioCardGroup/RadioCardGroup.js +0 -47
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +0 -21
- package/dist/components/RadioGroup/RadioGroup.variants.js +0 -21
- package/dist/useBreadcrumb-CojbXFVD.js +0 -1279
|
@@ -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, };
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "../../contexts/theme.context.js";
|
|
3
|
+
import "react";
|
|
2
4
|
import { ThemeProvider as t } from "../../contexts/theme.provider.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
const o = (i) => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(
|
|
11
|
-
o.Footer =
|
|
12
|
-
o.Logo =
|
|
13
|
-
o.Navigation =
|
|
14
|
-
o.NavigationGroup =
|
|
15
|
-
o.NavigationOption =
|
|
16
|
-
o.NavigationSeparator =
|
|
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;
|
|
17
19
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
a as Footer,
|
|
21
|
+
m as Logo,
|
|
22
|
+
p as Navigation,
|
|
23
|
+
n as NavigationGroup,
|
|
24
|
+
e as NavigationOption,
|
|
25
|
+
g as NavigationSeparator,
|
|
24
26
|
o as Sidebar
|
|
25
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;
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
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();
|
|
7
10
|
return /* @__PURE__ */ m(
|
|
8
11
|
"footer",
|
|
9
12
|
{
|
|
10
|
-
className:
|
|
11
|
-
|
|
13
|
+
className: p(
|
|
14
|
+
s({ theme: o ?? e, className: t })
|
|
12
15
|
),
|
|
13
|
-
children:
|
|
16
|
+
children: r
|
|
14
17
|
}
|
|
15
18
|
);
|
|
16
19
|
};
|
|
17
20
|
export {
|
|
18
|
-
|
|
21
|
+
T as Footer
|
|
19
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
|
+
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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(
|
|
8
11
|
"header",
|
|
9
12
|
{
|
|
10
|
-
className: s(
|
|
13
|
+
className: p(s({ theme: m ?? t, className: r })),
|
|
11
14
|
children: o
|
|
12
15
|
}
|
|
13
16
|
);
|
|
14
17
|
};
|
|
15
18
|
export {
|
|
16
|
-
|
|
19
|
+
l as Logo
|
|
17
20
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
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";
|
|
3
7
|
import { NavigationGroup as e } from "../NavigationGroup/NavigationGroup.js";
|
|
4
|
-
import { NavigationOption as
|
|
5
|
-
import { NavigationSeparator as
|
|
6
|
-
import { NavigationTitle as
|
|
7
|
-
import { navigationVariants as
|
|
8
|
-
import { useTheme as f } from "../../../../contexts/theme.hook.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";
|
|
9
12
|
const o = ({
|
|
10
13
|
className: i,
|
|
11
14
|
theme: t,
|
|
12
15
|
children: a
|
|
13
16
|
}) => {
|
|
14
|
-
const { theme: r } =
|
|
17
|
+
const { theme: r } = n();
|
|
15
18
|
return /* @__PURE__ */ m(
|
|
16
19
|
"nav",
|
|
17
20
|
{
|
|
18
|
-
className:
|
|
19
|
-
|
|
21
|
+
className: p(
|
|
22
|
+
f({ theme: t ?? r, className: i })
|
|
20
23
|
),
|
|
21
24
|
children: a
|
|
22
25
|
}
|
|
23
26
|
);
|
|
24
27
|
};
|
|
25
28
|
o.NavigationGroup = e;
|
|
26
|
-
o.NavigationOption =
|
|
27
|
-
o.NavigationSeparator =
|
|
28
|
-
o.NavigationTitle =
|
|
29
|
+
o.NavigationOption = v;
|
|
30
|
+
o.NavigationSeparator = g;
|
|
31
|
+
o.NavigationTitle = N;
|
|
29
32
|
export {
|
|
30
33
|
o as Navigation
|
|
31
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
|
+
|
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { NavigationTitle as
|
|
4
|
-
import { navigationGroupsVariants as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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,
|
|
13
15
|
...a
|
|
14
16
|
}) => {
|
|
15
|
-
const { theme:
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const { theme: n } = f();
|
|
18
|
+
return /* @__PURE__ */ s(p, { children: [
|
|
19
|
+
o ? /* @__PURE__ */ r(
|
|
20
|
+
l,
|
|
19
21
|
{
|
|
20
|
-
title:
|
|
21
|
-
className:
|
|
22
|
+
title: o,
|
|
23
|
+
className: i,
|
|
22
24
|
...a
|
|
23
25
|
}
|
|
24
26
|
) : null,
|
|
25
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ r(
|
|
26
28
|
"ul",
|
|
27
29
|
{
|
|
28
|
-
className:
|
|
29
|
-
|
|
30
|
+
className: c(
|
|
31
|
+
u({ theme: e ?? n, className: t })
|
|
30
32
|
),
|
|
31
|
-
children:
|
|
33
|
+
children: m
|
|
32
34
|
}
|
|
33
35
|
)
|
|
34
|
-
] })
|
|
36
|
+
] });
|
|
35
37
|
};
|
|
36
38
|
export {
|
|
37
|
-
|
|
39
|
+
d as NavigationGroup
|
|
38
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 @@
|
|
|
1
|
+
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import "../../../../contexts/theme.context.js";
|
|
3
|
+
import { useTheme as a } from "../../../../contexts/theme.hook.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../../../js.cookie-OLEfuq_g.js";
|
|
6
|
+
import { cn as s } from "../../../../utils/index.js";
|
|
7
|
+
import { navigationOptionVariants as c } from "./NavigationOption.variants.js";
|
|
8
|
+
const N = ({
|
|
6
9
|
children: t,
|
|
7
10
|
className: o,
|
|
8
|
-
theme:
|
|
9
|
-
isVisible:
|
|
10
|
-
isActive:
|
|
11
|
-
...
|
|
11
|
+
theme: r,
|
|
12
|
+
isVisible: i = !0,
|
|
13
|
+
isActive: e,
|
|
14
|
+
...m
|
|
12
15
|
}) => {
|
|
13
|
-
const { theme:
|
|
14
|
-
return
|
|
16
|
+
const { theme: n } = a();
|
|
17
|
+
return i ? /* @__PURE__ */ p(
|
|
15
18
|
"li",
|
|
16
19
|
{
|
|
17
|
-
...
|
|
20
|
+
...m,
|
|
18
21
|
role: "option",
|
|
19
|
-
className:
|
|
20
|
-
|
|
21
|
-
theme:
|
|
22
|
+
className: s(
|
|
23
|
+
c({
|
|
24
|
+
theme: r ?? n,
|
|
22
25
|
className: o,
|
|
23
|
-
isActive:
|
|
26
|
+
isActive: e
|
|
24
27
|
})
|
|
25
28
|
),
|
|
26
29
|
children: t
|
|
@@ -28,5 +31,5 @@ const x = ({
|
|
|
28
31
|
) : null;
|
|
29
32
|
};
|
|
30
33
|
export {
|
|
31
|
-
|
|
34
|
+
N as NavigationOption
|
|
32
35
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
isVisible?: boolean;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type NavigationOptionProps = NavigationOption & ({
|
|
10
|
+
role: 'button';
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
onClick: VoidFunction;
|
|
13
|
+
} | {
|
|
14
|
+
role?: never;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
});
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
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";
|
|
3
7
|
import { navigationSeparatorVariant as a } from "./NavigationSeparator.variants.js";
|
|
4
|
-
|
|
5
|
-
const f = ({
|
|
8
|
+
const x = ({
|
|
6
9
|
className: t,
|
|
7
10
|
theme: o
|
|
8
11
|
}) => {
|
|
9
|
-
const { theme: r } =
|
|
10
|
-
return /* @__PURE__ */
|
|
12
|
+
const { theme: r } = e();
|
|
13
|
+
return /* @__PURE__ */ m(
|
|
11
14
|
"div",
|
|
12
15
|
{
|
|
13
|
-
className:
|
|
16
|
+
className: i(
|
|
14
17
|
a({ className: t, theme: o ?? r })
|
|
15
18
|
)
|
|
16
19
|
}
|
|
17
20
|
);
|
|
18
21
|
};
|
|
19
22
|
export {
|
|
20
|
-
|
|
23
|
+
x as NavigationSeparator
|
|
21
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 @@
|
|
|
1
|
+
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
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 a } from "../../../../utils/index.js";
|
|
7
|
+
import { navigationTitleVariants as p } from "./NavigationTitle.variants.js";
|
|
8
|
+
const x = ({
|
|
6
9
|
title: t,
|
|
7
|
-
className:
|
|
8
|
-
theme:
|
|
10
|
+
className: r,
|
|
11
|
+
theme: e,
|
|
9
12
|
isVisible: o = !0
|
|
10
13
|
}) => {
|
|
11
|
-
const { theme: i } =
|
|
14
|
+
const { theme: i } = n();
|
|
12
15
|
return o ? /* @__PURE__ */ m(
|
|
13
16
|
"h2",
|
|
14
17
|
{
|
|
15
|
-
className:
|
|
16
|
-
|
|
18
|
+
className: a(
|
|
19
|
+
p({ theme: e ?? i, className: r })
|
|
17
20
|
),
|
|
18
21
|
children: t
|
|
19
22
|
}
|
|
20
23
|
) : null;
|
|
21
24
|
};
|
|
22
25
|
export {
|
|
23
|
-
|
|
26
|
+
x as NavigationTitle
|
|
24
27
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
isVisible?: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|