kku-ui 0.9.93 → 0.9.95

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.
@@ -1,2 +1,5 @@
1
+ export * from './input/KInput';
1
2
  export * from './textfield/KTextField';
2
3
  export * from './select/KSelect';
4
+ export * from './textarea/KTextarea';
5
+ export * from './input-group/KInputGroup';
@@ -0,0 +1,2 @@
1
+ declare const KInput: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
2
+ export { KInput };
@@ -0,0 +1,16 @@
1
+ import { ComponentProps } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { KButton } from '../../..';
4
+ declare function KInputGroup({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
5
+ declare const inputGroupAddonVariants: (props?: ({
6
+ align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
7
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
8
+ declare function InputGroupAddon({ className, align, ...props }: ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
9
+ declare const inputGroupButtonVariants: (props?: ({
10
+ size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
11
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
12
+ declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<ComponentProps<typeof KButton>, "size"> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
13
+ declare function InputGroupText({ className, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
14
+ declare function InputGroupInput({ className, ...props }: ComponentProps<'input'>): import("react/jsx-runtime").JSX.Element;
15
+ declare function InputGroupTextarea({ className, ...props }: ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
16
+ export { KInputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
@@ -2,7 +2,7 @@ import { ComponentPropsWithoutRef } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as SelectPrimitive from '@radix-ui/react-select';
4
4
  declare const selectVariants: (props?: ({
5
- size?: "default" | "sm" | "lg" | null | undefined;
5
+ size?: "sm" | "md" | "lg" | null | undefined;
6
6
  width?: "sm" | "md" | "lg" | "full" | "auto" | "xs" | null | undefined;
7
7
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
8
8
  export type KSelectValue = string;
@@ -11,28 +11,16 @@ export type KSelectOption = {
11
11
  value: KSelectValue;
12
12
  disabled?: boolean;
13
13
  };
14
- export type KSelectRule<T = KSelectValue> = (value: T) => boolean | string | Promise<boolean | string>;
15
14
  export interface KSelectProps extends Omit<ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, 'onValueChange'>, VariantProps<typeof selectVariants> {
16
- label?: string;
17
15
  options: KSelectOption[];
18
- helperText?: string;
19
- rules?: KSelectRule<KSelectValue>[];
20
16
  placeholder?: string;
21
17
  className?: string;
22
18
  id?: string;
23
- required?: boolean;
24
19
  onChange?: (value: KSelectValue) => void;
20
+ error?: boolean;
25
21
  }
26
22
  export interface KSelectRefs {
27
- validate: () => Promise<boolean>;
28
- reset: () => void;
29
23
  value: KSelectValue | undefined;
30
24
  }
31
- export interface KSelectTriggerProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {
32
- }
33
- export interface KSelectContentProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Content> {
34
- }
35
- export interface KSelectItemProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {
36
- }
37
25
  declare const KSelect: import('react').ForwardRefExoticComponent<KSelectProps & import('react').RefAttributes<KSelectRefs>>;
38
26
  export { KSelect };
@@ -0,0 +1,2 @@
1
+ declare const KTextarea: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & import('react').RefAttributes<HTMLTextAreaElement>>;
2
+ export { KTextarea };
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  declare const inputVariants: (props?: ({
4
- size?: "default" | "sm" | "lg" | null | undefined;
4
+ size?: "sm" | "md" | "lg" | null | undefined;
5
5
  width?: "sm" | "md" | "lg" | "full" | "auto" | "xs" | null | undefined;
6
6
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
7
7
  export type KValidationRule = (value: string) => boolean | string | Promise<boolean | string>;