kku-ui 0.9.95 → 0.9.952
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/ui/input/select/KSelect.d.ts +3 -1
- package/lib/es/components/ui/input/textfield/KTextField.d.ts +3 -1
- package/lib/es/components/ui/layout/index.d.ts +1 -0
- package/lib/es/components/ui/layout/list-row/KListRow.d.ts +25 -0
- package/lib/es/index.js +2920 -2827
- 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 +19 -11
|
@@ -11,13 +11,15 @@ export type KSelectOption = {
|
|
|
11
11
|
value: KSelectValue;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
};
|
|
14
|
-
export interface KSelectProps extends Omit<ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, 'onValueChange'>, VariantProps<typeof selectVariants> {
|
|
14
|
+
export interface KSelectProps extends Omit<ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, 'onValueChange'>, Omit<VariantProps<typeof selectVariants>, 'width'> {
|
|
15
15
|
options: KSelectOption[];
|
|
16
|
+
selectLabel?: string;
|
|
16
17
|
placeholder?: string;
|
|
17
18
|
className?: string;
|
|
18
19
|
id?: string;
|
|
19
20
|
onChange?: (value: KSelectValue) => void;
|
|
20
21
|
error?: boolean;
|
|
22
|
+
width?: VariantProps<typeof selectVariants>['width'] | number;
|
|
21
23
|
}
|
|
22
24
|
export interface KSelectRefs {
|
|
23
25
|
value: KSelectValue | undefined;
|
|
@@ -5,10 +5,12 @@ declare const inputVariants: (props?: ({
|
|
|
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>;
|
|
8
|
-
|
|
8
|
+
type InputVariantsProps = VariantProps<typeof inputVariants>;
|
|
9
|
+
export interface KTextFieldProps extends Omit<ComponentProps<'input'>, 'size' | 'width'>, Omit<InputVariantsProps, 'width'> {
|
|
9
10
|
label?: string;
|
|
10
11
|
helperText?: string;
|
|
11
12
|
rules?: KValidationRule[];
|
|
13
|
+
width?: InputVariantsProps['width'] | number;
|
|
12
14
|
}
|
|
13
15
|
export interface KTextFieldRefs {
|
|
14
16
|
validate: () => Promise<boolean>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ListGroupWidth = "sm" | "md" | "lg" | "auto" | "full";
|
|
3
|
+
export interface KListGroupProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
header?: string;
|
|
6
|
+
footer?: string;
|
|
7
|
+
width?: ListGroupWidth;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface KListRowProps {
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
label: string;
|
|
13
|
+
rightElement?: ReactNode;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const KListRow: {
|
|
18
|
+
({ icon, label, rightElement, onClick, className, }: KListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
declare const KListGroup: {
|
|
22
|
+
({ children, header, footer, width, className }: KListGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
export { KListRow, KListGroup };
|