@konstructio/ui 0.0.12-alpha.0 → 0.0.12-alpha.2
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/{Combination-Cmu9JRkv.js → Combination-b348x__d.js} +89 -89
- package/dist/Modal-DZUwNzSW.js +914 -0
- package/dist/{chevron-up-CvquEaNg.js → chevron-up-DgLBQCKD.js} +1 -1
- package/dist/components/Alert/Alert.js +58 -0
- package/dist/components/Alert/Alert.variants.js +77 -0
- package/dist/components/AlertDialog/AlertDialog.js +20 -23
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -6
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +15 -17
- package/dist/components/Autocomplete/components/List/List.js +7 -7
- package/dist/components/Breadcrumb/Breadcrumb.js +68 -69
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +16 -17
- package/dist/components/Breadcrumb/components/Item/Item.js +61 -0
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +90 -0
- package/dist/components/Breadcrumb/components/index.js +4 -0
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -3
- package/dist/components/Button/Button.js +15 -17
- package/dist/components/Card/Card.js +11 -13
- package/dist/components/Checkbox/Checkbox.js +16 -18
- package/dist/components/Divider/Divider.js +10 -0
- package/dist/components/Divider/Divider.variants.js +14 -0
- package/dist/components/Dropdown/Dropdown.js +4 -6
- package/dist/components/Dropdown/components/List/List.js +9 -10
- package/dist/components/Dropdown/components/ListItem/ListItem.js +20 -21
- package/dist/components/Dropdown/components/Wrapper.js +31 -34
- package/dist/components/Dropdown/contexts/dropdown.provider.js +4 -4
- package/dist/components/Dropdown/hooks/useDropdown.js +12 -14
- package/dist/components/Dropdown/hooks/useNavigationList.js +8 -10
- package/dist/components/Input/Input.js +12 -14
- package/dist/components/Loading/Loading.js +28 -0
- package/dist/components/Loading/Loading.variants.js +20 -0
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +7 -9
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +4 -4
- package/dist/components/NumberInput/NumberInput.js +9 -11
- package/dist/components/ProgressBar/ProgressBar.js +12 -15
- package/dist/components/Radio/Radio.js +55 -37
- package/dist/components/Radio/Radio.variants.js +69 -16
- package/dist/components/RadioCard/RadioCard.js +41 -0
- package/dist/components/RadioCard/RadioCard.variants.js +19 -0
- package/dist/components/RadioCardGroup/RadioCardGroup.js +47 -0
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +21 -0
- package/dist/components/RadioGroup/RadioGroup.js +37 -27
- package/dist/components/RadioGroup/RadioGroup.variants.js +21 -0
- package/dist/components/Range/Range.js +20 -22
- package/dist/components/Sidebar/Sidebar.js +20 -22
- package/dist/components/Sidebar/components/Footer/Footer.js +9 -12
- package/dist/components/Sidebar/components/Logo/Logo.js +9 -12
- package/dist/components/Sidebar/components/Navigation/Navigation.js +12 -15
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +12 -15
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +17 -20
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +8 -11
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +10 -13
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -27
- package/dist/components/Slider/Slider.js +11 -13
- package/dist/components/Switch/Switch.js +28 -30
- package/dist/components/TagSelect/TagSelect.js +18 -20
- package/dist/components/TextArea/TextArea.js +17 -19
- package/dist/components/Toast/Toast.js +56 -58
- package/dist/components/Tooltip/Tooltip.js +10 -12
- package/dist/components/Typography/Typography.js +30 -0
- package/dist/components/Typography/Typography.variants.js +36 -0
- package/dist/components/index.js +64 -50
- package/dist/contexts/theme.provider.js +84 -14
- package/dist/{AlertDialogTrigger-D4Tm_9M0.js → index-3jTPaVvh.js} +25 -27
- package/dist/{index-BxeV34ij.js → index-4ecjw_Aj.js} +1 -1
- package/dist/{index-BedjZUuB.js → index-B33at13_.js} +3 -3
- package/dist/{index-BaNV0qac.js → index-BTeAm7mx.js} +7113 -7144
- package/dist/index-B_6_jmOO.js +68 -0
- package/dist/{index-BBjak_0p.js → index-BbsJ0VIJ.js} +2 -2
- package/dist/{index-D68N8v8R.js → index-C5psggHV.js} +17 -17
- package/dist/{index-z-AJyzdv.js → index-C6WtlN_F.js} +11 -11
- package/dist/{index-8vgf-x5i.js → index-Cva-e5M4.js} +2 -2
- package/dist/{index-D4Q2rMby.js → index-Dj1pom3_.js} +2 -2
- package/dist/{index-BtibbG81.js → index-Z1voPZOH.js} +1 -1
- package/dist/index.d.ts +561 -4
- package/dist/index.js +74 -60
- package/dist/package.json +27 -28
- package/dist/plugins/konstruct.js +34 -31
- package/dist/plugins/utils/animation.styles.js +162 -0
- package/dist/plugins/utils/index.js +7 -0
- package/dist/styles.css +1 -1
- package/dist/styles.js +1 -1
- package/dist/useBreadcrumb-BsIeMoR1.js +1279 -0
- package/dist/{x-CRBgmX1Q.js → x-DU-Zw-L_.js} +1 -1
- package/package.json +27 -28
- package/dist/Modal-L73dmnHv.js +0 -914
- package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -18
- package/dist/components/AlertDialog/AlertDialog.types.js +0 -1
- package/dist/components/AlertDialog/AlertDialog.variants.d.ts +0 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +0 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +0 -6
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +0 -1
- package/dist/components/AlertDialog/components/index.d.ts +0 -1
- package/dist/components/AlertDialog/hooks/index.d.ts +0 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +0 -7
- package/dist/components/Autocomplete/Autocomplete.d.ts +0 -3
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +0 -18
- package/dist/components/Autocomplete/Autocomplete.types.js +0 -1
- package/dist/components/Autocomplete/Autocomplete.variants.d.ts +0 -8
- package/dist/components/Autocomplete/components/List/List.d.ts +0 -3
- package/dist/components/Autocomplete/components/List/List.types.d.ts +0 -13
- package/dist/components/Autocomplete/components/List/List.types.js +0 -1
- package/dist/components/Autocomplete/components/List/List.variants.d.ts +0 -16
- package/dist/components/Autocomplete/components/index.d.ts +0 -1
- package/dist/components/Autocomplete/hooks/index.d.ts +0 -2
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +0 -17
- package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +0 -10
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -3
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -11
- package/dist/components/Breadcrumb/Breadcrumb.types.js +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +0 -12
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +0 -3
- package/dist/components/Button/Button.d.ts +0 -4
- package/dist/components/Button/Button.types.d.ts +0 -7
- package/dist/components/Button/Button.types.js +0 -1
- package/dist/components/Button/Button.variants.d.ts +0 -7
- package/dist/components/Card/Card.d.ts +0 -4
- package/dist/components/Card/Card.types.d.ts +0 -8
- package/dist/components/Card/Card.types.js +0 -1
- package/dist/components/Card/Card.variants.d.ts +0 -10
- package/dist/components/Checkbox/Checkbox.d.ts +0 -3
- package/dist/components/Checkbox/Checkbox.types.d.ts +0 -14
- package/dist/components/Checkbox/Checkbox.types.js +0 -1
- package/dist/components/Checkbox/Checkbox.variants.d.ts +0 -9
- package/dist/components/Dropdown/Dropdown.d.ts +0 -3
- package/dist/components/Dropdown/Dropdown.types.d.ts +0 -16
- package/dist/components/Dropdown/Dropdown.types.js +0 -1
- package/dist/components/Dropdown/Dropdown.variants.d.ts +0 -3
- package/dist/components/Dropdown/components/EmptyList.d.ts +0 -2
- package/dist/components/Dropdown/components/List/List.d.ts +0 -3
- package/dist/components/Dropdown/components/List/List.types.d.ts +0 -6
- package/dist/components/Dropdown/components/List/List.types.js +0 -1
- package/dist/components/Dropdown/components/List/List.variants.d.ts +0 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +0 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +0 -4
- package/dist/components/Dropdown/components/ListItem/ListItem.types.js +0 -1
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +0 -3
- package/dist/components/Dropdown/components/Wrapper.d.ts +0 -3
- package/dist/components/Dropdown/components/index.d.ts +0 -3
- package/dist/components/Dropdown/contexts/dropdown.context.d.ts +0 -8
- package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +0 -2
- package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +0 -5
- package/dist/components/Dropdown/contexts/index.d.ts +0 -2
- package/dist/components/Dropdown/hooks/useDropdown.d.ts +0 -11
- package/dist/components/Dropdown/hooks/useNavigationList.d.ts +0 -8
- package/dist/components/Input/Input.d.ts +0 -3
- package/dist/components/Input/Input.types.d.ts +0 -9
- package/dist/components/Input/Input.types.js +0 -1
- package/dist/components/Input/Input.variants.d.ts +0 -4
- package/dist/components/Modal/Modal.d.ts +0 -8
- package/dist/components/Modal/Modal.types.d.ts +0 -12
- package/dist/components/Modal/Modal.types.js +0 -1
- package/dist/components/Modal/components/Body/Body.d.ts +0 -3
- package/dist/components/Modal/components/Body/Body.types.d.ts +0 -5
- package/dist/components/Modal/components/Body/Body.types.js +0 -1
- package/dist/components/Modal/components/Footer/Footer.d.ts +0 -3
- package/dist/components/Modal/components/Footer/Footer.types.d.ts +0 -5
- package/dist/components/Modal/components/Footer/Footer.types.js +0 -1
- package/dist/components/Modal/components/Header/Header.d.ts +0 -3
- package/dist/components/Modal/components/Header/Header.types.d.ts +0 -5
- package/dist/components/Modal/components/Header/Header.types.js +0 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +0 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +0 -7
- package/dist/components/Modal/components/Wrapper/Wrapper.types.js +0 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +0 -6
- package/dist/components/Modal/components/index.d.ts +0 -4
- package/dist/components/Modal/contexts/Modal.context.d.ts +0 -2
- package/dist/components/Modal/contexts/Modal.provider.d.ts +0 -4
- package/dist/components/Modal/contexts/Modal.types.d.ts +0 -9
- package/dist/components/Modal/contexts/Modal.types.js +0 -1
- package/dist/components/Modal/contexts/index.d.ts +0 -1
- package/dist/components/Modal/hooks/index.d.ts +0 -1
- package/dist/components/Modal/hooks/useModal.d.ts +0 -9
- package/dist/components/NumberInput/NumberInput.d.ts +0 -3
- package/dist/components/NumberInput/NumberInput.types.d.ts +0 -11
- package/dist/components/NumberInput/NumberInput.types.js +0 -1
- package/dist/components/NumberInput/NumberInput.variants.d.ts +0 -11
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -8
- package/dist/components/ProgressBar/ProgressBar.types.js +0 -1
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +0 -7
- package/dist/components/Radio/Radio.d.ts +0 -3
- package/dist/components/Radio/Radio.types.d.ts +0 -12
- package/dist/components/Radio/Radio.types.js +0 -1
- package/dist/components/Radio/Radio.variants.d.ts +0 -3
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -12
- package/dist/components/RadioGroup/RadioGroup.types.js +0 -1
- package/dist/components/Range/Range.d.ts +0 -3
- package/dist/components/Range/Range.types.d.ts +0 -13
- package/dist/components/Range/Range.types.js +0 -1
- package/dist/components/Range/Range.variants.d.ts +0 -14
- package/dist/components/Sidebar/Sidebar.d.ts +0 -5
- package/dist/components/Sidebar/Sidebar.types.d.ts +0 -18
- package/dist/components/Sidebar/Sidebar.types.js +0 -1
- package/dist/components/Sidebar/Sidebar.variants.d.ts +0 -6
- package/dist/components/Sidebar/components/Footer/Footer.d.ts +0 -3
- package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +0 -6
- package/dist/components/Sidebar/components/Footer/Footer.types.js +0 -1
- package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/Logo/Logo.d.ts +0 -3
- package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +0 -6
- package/dist/components/Sidebar/components/Logo/Logo.types.js +0 -1
- package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +0 -4
- package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +0 -16
- package/dist/components/Sidebar/components/Navigation/Navigation.types.js +0 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +0 -8
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +0 -17
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +0 -4
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +0 -5
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +0 -3
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +0 -8
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +0 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +0 -3
- package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +0 -3
- package/dist/components/Sidebar/components/index.d.ts +0 -15
- package/dist/components/Slider/Slider.d.ts +0 -3
- package/dist/components/Slider/Slider.types.d.ts +0 -13
- package/dist/components/Slider/Slider.types.js +0 -1
- package/dist/components/Slider/Slider.variants.d.ts +0 -11
- package/dist/components/Switch/Switch.d.ts +0 -3
- package/dist/components/Switch/Switch.types.d.ts +0 -10
- package/dist/components/Switch/Switch.types.js +0 -1
- package/dist/components/Switch/Switch.variants.d.ts +0 -6
- package/dist/components/Tag/Tag.d.ts +0 -3
- package/dist/components/Tag/Tag.types.d.ts +0 -4
- package/dist/components/Tag/Tag.types.js +0 -1
- package/dist/components/Tag/Tag.variants.d.ts +0 -3
- package/dist/components/TagSelect/TagSelect.d.ts +0 -3
- package/dist/components/TagSelect/TagSelect.types.d.ts +0 -9
- package/dist/components/TagSelect/TagSelect.types.js +0 -1
- package/dist/components/TagSelect/TagSelect.variants.d.ts +0 -9
- package/dist/components/TagSelect/hooks/useTagSelect.d.ts +0 -9
- package/dist/components/TextArea/TextArea.d.ts +0 -3
- package/dist/components/TextArea/TextArea.types.d.ts +0 -10
- package/dist/components/TextArea/TextArea.types.js +0 -1
- package/dist/components/TextArea/TextArea.variants.d.ts +0 -3
- package/dist/components/Toast/Toast.d.ts +0 -3
- package/dist/components/Toast/Toast.types.d.ts +0 -12
- package/dist/components/Toast/Toast.types.js +0 -1
- package/dist/components/Toast/Toast.variants.d.ts +0 -9
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.types.d.ts +0 -8
- package/dist/components/Tooltip/Tooltip.types.js +0 -1
- package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -8
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
- package/dist/components/index.d.ts +0 -21
- package/dist/contexts/index.d.ts +0 -3
- package/dist/contexts/theme.context.d.ts +0 -6
- package/dist/contexts/theme.hook.d.ts +0 -7
- package/dist/contexts/theme.provider.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useToggle.d.ts +0 -1
- package/dist/index-DoOsnuB6.js +0 -72
- package/dist/js.cookie-OLEfuq_g.js +0 -74
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/konstruct.d.ts +0 -4
- package/dist/plugins/utils/colors.d.ts +0 -328
- package/dist/styles.d.ts +0 -0
- package/dist/useBreadcrumb-DxYsZvj_.js +0 -1398
- package/dist/utils/index.d.ts +0 -4
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Modal.provider';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useModal';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const useModal: () => {
|
|
2
|
-
closeBtnRef: import('react').RefObject<HTMLButtonElement | null>;
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
content: string | import('react').ReactNode;
|
|
5
|
-
shouldShowClose: boolean;
|
|
6
|
-
onOpen: () => void;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
setContentAndOpen: (content: string | import('react').ReactNode, showCloseButton?: boolean) => void;
|
|
9
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { numberInputVariants } from './NumberInput.variants';
|
|
3
|
-
export interface NumberInputProps extends VariantProps<typeof numberInputVariants> {
|
|
4
|
-
className?: string;
|
|
5
|
-
init?: number;
|
|
6
|
-
label?: string;
|
|
7
|
-
max?: number;
|
|
8
|
-
min?: number;
|
|
9
|
-
name?: string;
|
|
10
|
-
onChange?: (value: number) => void;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const numberInputVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
-
export declare const buttonVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
-
button?: "left" | "rigth" | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
export declare const labelVariants: (props?: ({
|
|
9
|
-
variant?: "default" | null | undefined;
|
|
10
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
11
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { progressBarVariants } from './ProgressBar.variants';
|
|
3
|
-
export interface ProgressBarProps extends VariantProps<typeof progressBarVariants> {
|
|
4
|
-
className?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
percent: number;
|
|
7
|
-
status?: 'success' | 'progress';
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const progressBarVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
-
export declare const progressBarProgress: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
-
status?: "progress" | "error" | "success" | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { InputHTMLAttributes } from 'react';
|
|
3
|
-
import { radioVariants } from './Radio.variants';
|
|
4
|
-
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'>, VariantProps<typeof radioVariants> {
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
color?: string;
|
|
7
|
-
defaultChecked?: boolean;
|
|
8
|
-
label?: string;
|
|
9
|
-
name: string;
|
|
10
|
-
value: string;
|
|
11
|
-
onChange?: (value: string) => void;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RadioProps } from '../Radio/Radio.types';
|
|
2
|
-
export interface RadioGroupProps {
|
|
3
|
-
asChild?: boolean;
|
|
4
|
-
className?: RadioProps['className'];
|
|
5
|
-
defaultValue?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
name: string;
|
|
8
|
-
options: Omit<RadioProps, 'name'>[];
|
|
9
|
-
theme?: RadioProps['theme'];
|
|
10
|
-
wrapperClassName?: string;
|
|
11
|
-
onValueChange?: (value: string) => void;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { SliderProps as SliderPropsBase } from '@radix-ui/react-slider';
|
|
3
|
-
import { rangeVariants } from './Range.variants';
|
|
4
|
-
export interface RangeProps extends VariantProps<typeof rangeVariants> {
|
|
5
|
-
className?: string;
|
|
6
|
-
defaultValue?: SliderPropsBase['defaultValue'];
|
|
7
|
-
label?: string;
|
|
8
|
-
max?: SliderPropsBase['max'];
|
|
9
|
-
min?: SliderPropsBase['min'];
|
|
10
|
-
name?: string;
|
|
11
|
-
showValue?: boolean;
|
|
12
|
-
size?: 'sm' | 'md' | 'lg';
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const rangeVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
-
export declare const rangeOutsideVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export declare const trackVariants: (props?: ({
|
|
8
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
9
|
-
size?: "sm" | "lg" | "md" | null | undefined;
|
|
10
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
-
export declare const thumbVariants: (props?: ({
|
|
12
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
13
|
-
size?: "sm" | "lg" | "md" | null | undefined;
|
|
14
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,5 +0,0 @@
|
|
|
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,18 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,6 +0,0 @@
|
|
|
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,6 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './Footer/Footer';
|
|
2
|
-
export type * from './Footer/Footer.types';
|
|
3
|
-
export * from './Logo/Logo';
|
|
4
|
-
export type * from './Logo/Logo.types';
|
|
5
|
-
export * from './Navigation/Navigation';
|
|
6
|
-
export type * from './Navigation/Navigation.types';
|
|
7
|
-
export * from './NavigationGroup/NavigationGroup';
|
|
8
|
-
export type * from './NavigationGroup/NavigationGroup.types';
|
|
9
|
-
export * from './NavigationOption/NavigationOption';
|
|
10
|
-
export type * from './NavigationOption/NavigationOption.types';
|
|
11
|
-
export * from './NavigationSeparator/NavigationSeparator';
|
|
12
|
-
export type * from './NavigationSeparator/NavigationSeparator.types';
|
|
13
|
-
export * from './NavigationTitle/NavigationTitle';
|
|
14
|
-
export type * from './NavigationTitle/NavigationTitle.types';
|
|
15
|
-
export * from './Wrapper/Wrapper';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { SliderProps as SliderPropsBase } from '@radix-ui/react-slider';
|
|
3
|
-
import { sliderVariants } from './Slider.variants';
|
|
4
|
-
export interface SliderProps extends VariantProps<typeof sliderVariants> {
|
|
5
|
-
className?: string;
|
|
6
|
-
defaultValue?: SliderPropsBase['defaultValue'];
|
|
7
|
-
label?: string;
|
|
8
|
-
max?: SliderPropsBase['max'];
|
|
9
|
-
min?: SliderPropsBase['min'];
|
|
10
|
-
name?: string;
|
|
11
|
-
showValue?: boolean;
|
|
12
|
-
size?: 'sm' | 'md' | 'lg';
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const sliderVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
-
export declare const trackVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
-
size?: "sm" | "lg" | "md" | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
export declare const thumbVariants: (props?: ({
|
|
9
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
10
|
-
size?: "sm" | "lg" | "md" | null | undefined;
|
|
11
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { switchVariants } from './Switch.variants';
|
|
3
|
-
export interface SwitchProps extends VariantProps<typeof switchVariants> {
|
|
4
|
-
alignment?: 'horizontal' | 'vertical';
|
|
5
|
-
className?: string;
|
|
6
|
-
defaultChecked?: boolean;
|
|
7
|
-
label?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
thumbClassName?: string;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const switchVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
-
export declare const thumbVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const tagVariants: (props?: ({
|
|
2
|
-
color?: "default" | "gray" | "cyan" | "gold" | "green" | "light blue" | "lime" | "pink" | "purple" | "emerald" | "fuscia" | "indigo" | "light-orange" | "dark-sky-blue" | "mistery" | null | undefined;
|
|
3
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { TagProps } from '../Tag/Tag.types';
|
|
3
|
-
import { tagSelectVariants } from './TagSelect.variants';
|
|
4
|
-
export interface TagSelectProps extends VariantProps<typeof tagSelectVariants> {
|
|
5
|
-
label?: string;
|
|
6
|
-
options: TagProps[];
|
|
7
|
-
name?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const tagSelectVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
-
export declare const tagListVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export declare const tagItemVariants: (props?: ({
|
|
8
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TagProps } from '../../Tag/Tag.types';
|
|
2
|
-
export declare const useTagSelect: () => {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
selectedTag: TagProps | null;
|
|
5
|
-
value: string;
|
|
6
|
-
wrapperRef: import('react').RefObject<HTMLDivElement | null>;
|
|
7
|
-
handleClickTag: (tag: TagProps) => void;
|
|
8
|
-
handleOpenDropdown: () => void;
|
|
9
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { textAreaVariants } from './TextArea.variants';
|
|
4
|
-
export interface TextAreaProps extends InputHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
|
|
5
|
-
rows?: number;
|
|
6
|
-
label?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
initialValue?: string;
|
|
9
|
-
onChange?: () => void;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { toastVariants } from './Toast.variants';
|
|
4
|
-
export interface ToastProps extends PropsWithChildren, VariantProps<typeof toastVariants> {
|
|
5
|
-
className?: string;
|
|
6
|
-
description: string | ReactNode;
|
|
7
|
-
descriptionClassName?: string;
|
|
8
|
-
duration?: number;
|
|
9
|
-
showCloseButton?: boolean;
|
|
10
|
-
title: string | ReactNode;
|
|
11
|
-
titleClassName?: string;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const toastVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
-
export declare const viewportToastVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export declare const closeToastVariants: (props?: ({
|
|
8
|
-
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|