kku-ui 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -34
- package/lib/es/common/hooks/index.d.ts +7 -0
- package/lib/es/common/hooks/useCleanId.d.ts +1 -0
- package/lib/es/common/hooks/useDropdownPosition.d.ts +16 -0
- package/lib/es/common/hooks/useDynamicRefs.d.ts +4 -0
- package/lib/es/common/hooks/useEscapeKey.d.ts +2 -0
- package/lib/es/common/hooks/useSafePortalContainer.d.ts +1 -0
- package/lib/es/common/util/keyboard.d.ts +2 -0
- package/lib/es/components/{button → actions/button}/KButton.d.ts +1 -1
- package/lib/es/components/actions/button/KButton.interface.d.ts +18 -0
- package/lib/es/components/actions/button-group/KButtonGroup.d.ts +3 -0
- package/lib/es/components/actions/button-group/KButtonGroup.interface.d.ts +6 -0
- package/lib/es/components/actions/button-group/index.d.ts +2 -0
- package/lib/es/components/actions/index.d.ts +3 -0
- package/lib/es/components/actions/switch/KSwitch.interface.d.ts +8 -0
- package/lib/es/components/{accordion → data-display/accordion}/KAccordion.d.ts +1 -1
- package/lib/es/components/data-display/accordion/KAccordion.interface.d.ts +9 -0
- package/lib/es/components/data-display/dropdown/KDropdown.context.d.ts +3 -0
- package/lib/es/components/data-display/dropdown/KDropdown.d.ts +10 -0
- package/lib/es/components/data-display/dropdown/KDropdown.interface.d.ts +43 -0
- package/lib/es/components/data-display/dropdown/KDropdownContent.d.ts +3 -0
- package/lib/es/components/data-display/dropdown/KDropdownTrigger.d.ts +3 -0
- package/lib/es/components/data-display/dropdown/index.d.ts +2 -0
- package/lib/es/components/data-display/index.d.ts +4 -0
- package/lib/es/components/data-display/menu/KMenu.d.ts +12 -0
- package/lib/es/components/data-display/menu/KMenu.interface.d.ts +19 -0
- package/lib/es/components/data-display/menu/KMenuItem.d.ts +3 -0
- package/lib/es/components/data-display/menu/KMenuItemDivider.d.ts +3 -0
- package/lib/es/components/data-display/menu/KMenuItemSelectable.d.ts +3 -0
- package/lib/es/components/data-display/menu/index.d.ts +2 -0
- package/lib/es/components/data-display/skeleton/KSkeleton.d.ts +6 -0
- package/lib/es/components/data-display/skeleton/KSkeleton.interface.d.ts +8 -0
- package/lib/es/components/data-display/skeleton/index.d.ts +2 -0
- package/lib/es/components/feedback/backdrop/KBackdrop.d.ts +6 -0
- package/lib/es/components/feedback/backdrop/KBackdrop.motion.d.ts +3 -0
- package/lib/es/components/feedback/backdrop/index.d.ts +2 -0
- package/lib/es/components/feedback/index.d.ts +3 -0
- package/lib/es/components/feedback/modal/KModal.context.d.ts +3 -0
- package/lib/es/components/feedback/modal/KModal.d.ts +12 -0
- package/lib/es/components/feedback/modal/KModal.interface.d.ts +34 -0
- package/lib/es/components/feedback/modal/KModal.motion.d.ts +2 -0
- package/lib/es/components/feedback/modal/KModalContent.d.ts +3 -0
- package/lib/es/components/feedback/modal/KModalFooter.d.ts +3 -0
- package/lib/es/components/feedback/modal/KModalHeader.d.ts +3 -0
- package/lib/es/components/feedback/spinner/KSpinner.d.ts +3 -0
- package/lib/es/components/feedback/spinner/index.d.ts +2 -0
- package/lib/es/components/{icon → foundations/icon}/KIcon.interface.d.ts +4 -8
- package/lib/es/components/foundations/index.d.ts +1 -0
- package/lib/es/components/index.d.ts +5 -9
- package/lib/es/components/input/index.d.ts +2 -0
- package/lib/es/components/input/select/KSelect.interface.d.ts +16 -8
- package/lib/es/components/input/textfield/KTextField.d.ts +2 -2
- package/lib/es/components/input/textfield/KTextField.interface.d.ts +14 -18
- package/lib/es/core/accordion/Accordion.context.d.ts +3 -0
- package/lib/es/core/accordion/Accordion.d.ts +10 -0
- package/lib/es/core/accordion/Accordion.interface.d.ts +21 -0
- package/lib/es/core/accordion/AccordionContent.d.ts +6 -0
- package/lib/es/core/accordion/AccordionSummary.d.ts +6 -0
- package/lib/es/core/accordion/index.d.ts +2 -0
- package/lib/es/core/button/Button.d.ts +3 -0
- package/lib/es/core/button/index.d.ts +2 -0
- package/lib/es/core/index.d.ts +7 -0
- package/lib/es/core/menu/Menu.d.ts +3 -0
- package/lib/es/core/menu/Menu.interface.d.ts +11 -0
- package/lib/es/core/menu/index.d.ts +2 -0
- package/lib/es/core/menu-item/MenuItem.d.ts +3 -0
- package/lib/es/core/menu-item/MenuItem.interface.d.ts +12 -0
- package/lib/es/core/menu-item/index.d.ts +2 -0
- package/lib/es/core/switch/Switch.d.ts +3 -0
- package/lib/es/core/switch/index.d.ts +2 -0
- package/lib/es/core/text-field/TextField.d.ts +3 -0
- package/lib/es/core/text-field/index.d.ts +2 -0
- package/lib/es/core/transition/Transition.d.ts +6 -0
- package/lib/es/core/transition/index.d.ts +2 -0
- package/lib/es/hooks.js +22 -0
- package/lib/es/index.d.ts +1 -1
- package/lib/es/index.js +6449 -6127
- package/lib/es/index.js.br +0 -0
- package/lib/es/index.js.gz +0 -0
- package/lib/index.css +1 -1
- package/package.json +29 -22
- package/lib/cjs/index.js +0 -32
- package/lib/cjs/index.js.gz +0 -0
- package/lib/cjs/index.js.map +0 -1
- package/lib/es/common/hook/useCleanId.d.ts +0 -1
- package/lib/es/common/util/variation.d.ts +0 -4
- package/lib/es/components/accordion/KAccordion.interface.d.ts +0 -17
- package/lib/es/components/button/KButton.interface.d.ts +0 -26
- package/lib/es/components/card/KCard.d.ts +0 -6
- package/lib/es/components/card/KCard.interface.d.ts +0 -13
- package/lib/es/components/card/index.d.ts +0 -2
- package/lib/es/components/drop-holder/KDropHolder.d.ts +0 -3
- package/lib/es/components/drop-holder/KDropHolder.interface.d.ts +0 -25
- package/lib/es/components/drop-holder/KDropHolder.motion.d.ts +0 -3
- package/lib/es/components/drop-holder/index.d.ts +0 -2
- package/lib/es/components/input/select/KSelect.motion.d.ts +0 -3
- package/lib/es/components/input/select/KSelectList.d.ts +0 -3
- package/lib/es/components/input/switch/KSwitch.interface.d.ts +0 -10
- package/lib/es/components/modal/KModal.d.ts +0 -6
- package/lib/es/components/modal/KModal.interface.d.ts +0 -26
- package/lib/es/components/modal/KModal.motion.d.ts +0 -2
- package/lib/es/index.js.map +0 -1
- /package/lib/es/common/{hook → hooks}/useClickOutside.d.ts +0 -0
- /package/lib/es/common/{hook → hooks/useRipple}/useRipple.d.ts +0 -0
- /package/lib/es/components/{button → actions/button}/index.d.ts +0 -0
- /package/lib/es/components/{input → actions}/switch/KSwitch.d.ts +0 -0
- /package/lib/es/components/{input → actions}/switch/index.d.ts +0 -0
- /package/lib/es/components/{accordion → data-display/accordion}/index.d.ts +0 -0
- /package/lib/es/components/{modal → feedback/modal}/index.d.ts +0 -0
- /package/lib/es/components/{icon → foundations/icon}/KIcon.d.ts +0 -0
- /package/lib/es/components/{icon → foundations/icon}/index.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useCleanId(text: string): string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { KBaseProp, SizeType } from '../../common/base/base.interface';
|
|
3
|
-
export declare const KAccordionSizes: {
|
|
4
|
-
readonly large: "large";
|
|
5
|
-
readonly medium: "medium";
|
|
6
|
-
readonly small: "small";
|
|
7
|
-
};
|
|
8
|
-
export type KAccordionSizeType = (typeof KAccordionSizes)[keyof typeof KAccordionSizes];
|
|
9
|
-
export interface KAccordionProps extends KBaseProp {
|
|
10
|
-
summary: string | ReactNode;
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
size?: KAccordionSizeType;
|
|
13
|
-
summaryIcon?: string | ReactNode;
|
|
14
|
-
summaryIconSize?: SizeType | number;
|
|
15
|
-
open?: boolean;
|
|
16
|
-
width?: number;
|
|
17
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { KBaseProp, SizeType } from '../../common/base/base.interface';
|
|
3
|
-
export declare const BUTTON_VARIANTS: {
|
|
4
|
-
readonly default: "default";
|
|
5
|
-
readonly outlined: "outlined";
|
|
6
|
-
readonly primary: "primary";
|
|
7
|
-
readonly success: "success";
|
|
8
|
-
readonly warning: "warning";
|
|
9
|
-
readonly error: "error";
|
|
10
|
-
};
|
|
11
|
-
export type KButtonVariantType = keyof typeof BUTTON_VARIANTS;
|
|
12
|
-
export declare const KButtonVariantList: ("default" | "outlined" | "primary" | "success" | "warning" | "error")[];
|
|
13
|
-
export interface KButtonProps extends KBaseProp {
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
label?: string;
|
|
16
|
-
size?: SizeType;
|
|
17
|
-
variant?: KButtonVariantType;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
color?: string;
|
|
20
|
-
fontColor?: string;
|
|
21
|
-
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
22
|
-
}
|
|
23
|
-
export interface KButtonRefs {
|
|
24
|
-
focus: () => void;
|
|
25
|
-
click: () => void;
|
|
26
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { KBaseProp } from '../../common/base/base.interface';
|
|
3
|
-
export interface KCardProps extends KBaseProp {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
title?: string;
|
|
6
|
-
subTitle?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
clickable?: boolean;
|
|
9
|
-
width?: number;
|
|
10
|
-
height?: number;
|
|
11
|
-
aspectRatio?: string;
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { KBaseProp, MotionType } from '../../common/base/base.interface';
|
|
3
|
-
export type KDropHolderPositionType = 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end';
|
|
4
|
-
export type KDropHolderTriggerType = 'hover' | 'click';
|
|
5
|
-
export interface KDropHolderOffsetType {
|
|
6
|
-
x?: number;
|
|
7
|
-
y?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface KDropHolderProps extends KBaseProp, MotionType {
|
|
10
|
-
trigger?: KDropHolderTriggerType;
|
|
11
|
-
position?: KDropHolderPositionType;
|
|
12
|
-
offset?: KDropHolderOffsetType;
|
|
13
|
-
contentWidth?: number;
|
|
14
|
-
openDelay?: number;
|
|
15
|
-
closeDelay?: number;
|
|
16
|
-
autoClose?: boolean;
|
|
17
|
-
children: ReactNode;
|
|
18
|
-
content: ReactNode;
|
|
19
|
-
onClick?: () => void;
|
|
20
|
-
onHover?: () => void;
|
|
21
|
-
}
|
|
22
|
-
export interface KDropHolderRefs {
|
|
23
|
-
open: () => void;
|
|
24
|
-
close: () => void;
|
|
25
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { KBaseProp, KSizeProp } from '../../../common/base/base.interface';
|
|
2
|
-
export interface KSwitchProps extends KBaseProp, KSizeProp {
|
|
3
|
-
value: boolean;
|
|
4
|
-
onChange: (value: boolean) => void;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface KSwitchRefs {
|
|
9
|
-
toggle: () => void;
|
|
10
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
-
import { KBaseProp } from '../../common/base/base.interface';
|
|
3
|
-
export declare const KModalSizes: {
|
|
4
|
-
readonly medium: "medium";
|
|
5
|
-
readonly small: "small";
|
|
6
|
-
readonly large: "large";
|
|
7
|
-
};
|
|
8
|
-
export type KModalSizeType = (typeof KModalSizes)[keyof typeof KModalSizes];
|
|
9
|
-
export interface KModalProps extends KBaseProp {
|
|
10
|
-
isOpen: boolean;
|
|
11
|
-
setIsOpen?: Dispatch<SetStateAction<boolean>>;
|
|
12
|
-
onClose?: () => void;
|
|
13
|
-
size?: KModalSizeType;
|
|
14
|
-
animation?: 'slide' | 'fade';
|
|
15
|
-
title?: string;
|
|
16
|
-
content: ReactNode;
|
|
17
|
-
footer?: ReactNode;
|
|
18
|
-
width?: number;
|
|
19
|
-
isOverlay?: boolean;
|
|
20
|
-
overlayOpacity?: number;
|
|
21
|
-
overlayClosable?: boolean;
|
|
22
|
-
escClosable?: boolean;
|
|
23
|
-
headerClass?: string;
|
|
24
|
-
contentClass?: string;
|
|
25
|
-
footerClass?: string;
|
|
26
|
-
}
|