kku-ui 0.2.4 → 0.2.51
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/lib/es/components/foundations/icon/KIcon.interface.d.ts +2 -3
- package/lib/es/core/button/Button.interface.d.ts +4 -0
- package/lib/es/core/button/index.d.ts +1 -1
- package/lib/es/core/switch/Switch.interface.d.ts +6 -0
- package/lib/es/core/switch/index.d.ts +1 -1
- package/lib/es/core/text-field/TextField.interface.d.ts +4 -0
- package/lib/es/core/text-field/index.d.ts +1 -1
- package/lib/es/core/transition/Transition.interface.d.ts +9 -0
- package/lib/es/core/transition/index.d.ts +1 -1
- package/lib/es/index.js +358 -347
- 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 +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { MouseEvent, KeyboardEvent } from 'react';
|
|
2
|
-
import { KBaseProp } from '../../../common/base/base.interface';
|
|
1
|
+
import { MouseEvent, KeyboardEvent, HTMLAttributes } from 'react';
|
|
3
2
|
export declare const ICON_SIZES: readonly ["xsmall", "small", "medium", "large", "xlarge"];
|
|
4
3
|
export type KIconSize = (typeof ICON_SIZES)[number];
|
|
5
4
|
export declare const KIconSizeList: ("small" | "medium" | "large" | "xsmall" | "xlarge")[];
|
|
6
|
-
export interface KIconProps extends
|
|
5
|
+
export interface KIconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
7
6
|
icon: string;
|
|
8
7
|
size?: KIconSize | number;
|
|
9
8
|
disabled?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Button } from './Button';
|
|
2
|
-
export
|
|
2
|
+
export * from './Button.interface';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Switch } from './Switch';
|
|
2
|
-
export
|
|
2
|
+
export * from './Switch.interface';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as TextField } from './TextField';
|
|
2
|
-
export
|
|
2
|
+
export * from './TextField.interface';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MotionProps } from 'motion/react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
export type MotionTag = keyof HTMLElementTagNameMap;
|
|
4
|
+
export type MotionType = Pick<MotionProps, 'initial' | 'animate' | 'exit' | 'transition'>;
|
|
5
|
+
export interface CTransitionProps<Tag extends MotionTag = 'div'> extends MotionType, HTMLAttributes<MotionTag> {
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
as?: Tag;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Transition } from './Transition';
|
|
2
|
-
export
|
|
2
|
+
export * from './Transition.interface';
|