kku-ui 0.9.951 → 0.9.953
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/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 +2500 -2415
- 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 +2 -1
|
@@ -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 };
|