@clicktap/ui 0.3.3 → 0.3.6
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/Accordion/index.d.ts +2 -0
- package/Button/Button.d.ts +1 -1
- package/Select/Select.d.ts +12 -3
- package/index.d.ts +1 -1
- package/index.js +280 -228
- package/index.mjs +2428 -2280
- package/package.json +1 -1
package/Button/Button.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Button: import("react").ForwardRefExoticComponent<import("react-aria-components").ButtonProps & {
|
|
3
3
|
isLoading?: boolean | undefined;
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "solid" | "outline" | "ghost" | undefined;
|
|
5
5
|
size?: "sm" | "lg" | "md" | undefined;
|
|
6
6
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
export default Button;
|
package/Select/Select.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { type ComboBoxProps as AriaComboBoxProps, type ValidationResult } from 'react-aria-components';
|
|
1
|
+
import { ComboBoxRenderProps, type ComboBoxProps as AriaComboBoxProps, type ValidationResult } from 'react-aria-components';
|
|
2
2
|
import { Key, ReactNode } from 'react';
|
|
3
3
|
export type ComboBoxPopoverAnimationState = 'unmounted' | 'hidden' | 'visible';
|
|
4
|
-
|
|
4
|
+
type CustomSelectSlots = {
|
|
5
|
+
buttonIcon?: ReactNode | ((values: ComboBoxRenderProps) => ReactNode);
|
|
6
|
+
loadingIcon?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export interface SelectProps<T extends object> extends Omit<AriaComboBoxProps<T>, 'children'> {
|
|
5
9
|
label?: string;
|
|
6
10
|
description?: string | null;
|
|
7
11
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
@@ -9,8 +13,9 @@ interface ComboBoxProps<T extends object> extends Omit<AriaComboBoxProps<T>, 'ch
|
|
|
9
13
|
key?: Key | null;
|
|
10
14
|
isLoading?: boolean;
|
|
11
15
|
children: ReactNode | ((item: T) => ReactNode);
|
|
16
|
+
slots?: CustomSelectSlots;
|
|
12
17
|
}
|
|
13
|
-
export declare function Select<T extends object>({ label, description, errorMessage, children, placeholder, key, isLoading, ...props }:
|
|
18
|
+
export declare function Select<T extends object>({ label, description, errorMessage, children, placeholder, key, isLoading, slots, ...props }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
14
19
|
export declare namespace Select {
|
|
15
20
|
var defaultProps: {
|
|
16
21
|
label: undefined;
|
|
@@ -19,6 +24,10 @@ export declare namespace Select {
|
|
|
19
24
|
placeholder: string;
|
|
20
25
|
key: undefined;
|
|
21
26
|
isLoading: boolean;
|
|
27
|
+
slots: {
|
|
28
|
+
loadingIcon: undefined;
|
|
29
|
+
buttonIcon: undefined;
|
|
30
|
+
};
|
|
22
31
|
};
|
|
23
32
|
}
|
|
24
33
|
export default Select;
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './Avatar/Avatar';
|
|
2
2
|
export * from './Avatar/AvatarGroup/AvatarGroup';
|
|
3
|
-
export * from './Accordion
|
|
3
|
+
export * from './Accordion';
|
|
4
4
|
export * from './Badge/Badge';
|
|
5
5
|
export * from './Breadcrumbs/BreadcrumbEllipsis';
|
|
6
6
|
export * from './Breadcrumbs/BreadcrumbItem';
|