kku-ui 0.2.4 → 0.2.5

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.
@@ -0,0 +1,4 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ label?: string;
4
+ }
@@ -1,2 +1,2 @@
1
1
  export { default as Button } from './Button';
2
- export type { ButtonProps } from './Button.interface';
2
+ export * from './Button.interface';
@@ -0,0 +1,6 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ export interface SwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange' | 'type'> {
3
+ value: boolean;
4
+ onChange?: (val: boolean) => void;
5
+ children?: ReactNode;
6
+ }
@@ -1,2 +1,2 @@
1
1
  export { default as Switch } from './Switch';
2
- export type { SwitchProps } from './Switch.interface';
2
+ export * from './Switch.interface';
@@ -0,0 +1,4 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ export interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'children'> {
3
+ label?: string;
4
+ }
@@ -1,2 +1,2 @@
1
1
  export { default as TextField } from './TextField';
2
- export type { TextFieldProps } from './TextField.interface';
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 type * from './Transition.interface';
2
+ export * from './Transition.interface';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kku-ui",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {