kku-ui 0.2.3 → 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.
package/README.md CHANGED
@@ -65,7 +65,7 @@ pnpm add kku-ui
65
65
  ```typescript
66
66
  // Entry Point 🏃🏻‍♂️
67
67
 
68
- import 'kku-ui/lib/styles/index.css'
68
+ import 'kku-ui/lib/index.css'
69
69
  ```
70
70
 
71
71
  ## 🧑🏻‍💻 Use Examples
@@ -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/lib/es/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './components';
2
+ export * from './core';
package/lib/es/index.js CHANGED
@@ -7241,7 +7241,9 @@ const la = Z((t, e) => {
7241
7241
  la.displayName = "KTextField";
7242
7242
  const P2 = I(la);
7243
7243
  export {
7244
+ $t as Accordion,
7244
7245
  b2 as BUTTON_VARIANTS,
7246
+ Ji as Button,
7245
7247
  g2 as ICON_SIZES,
7246
7248
  l2 as KAccordion,
7247
7249
  ia as KBackdrop,
@@ -7259,5 +7261,10 @@ export {
7259
7261
  a2 as KSwitch,
7260
7262
  P2 as KTextField,
7261
7263
  L2 as KToggleButton,
7262
- T2 as K_DROPDOWN_POSITIONS
7264
+ T2 as K_DROPDOWN_POSITIONS,
7265
+ Vn as Menu,
7266
+ to as MenuItem,
7267
+ no as Switch,
7268
+ io as TextField,
7269
+ Fe as Transition
7263
7270
  };
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kku-ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {