@clicktap/ui 0.9.0 → 0.12.2
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/Accordion.d.ts +1 -1
- package/Avatar/Avatar.d.ts +1 -1
- package/Avatar/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/Avatar/AvatarGroup/types.d.ts +3 -1
- package/Badge/Badge.d.ts +1 -1
- package/Breadcrumbs/BreadcrumbItem.d.ts +1 -1
- package/Breadcrumbs/BreadcrumbLink.d.ts +1 -1
- package/Breadcrumbs/BreadcrumbSeparator.d.ts +1 -1
- package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/Button/Button.d.ts +1 -1
- package/Card/Card.d.ts +3 -2
- package/Checkbox/Checkbox.d.ts +4 -1
- package/Collapsible/Collapsible.d.ts +1 -1
- package/Collapsible/CollapsibleTrigger.d.ts +1 -1
- package/Collapsible/types.d.ts +3 -2
- package/Container/Container.d.ts +2 -3
- package/ContextMenu/ContextMenu.d.ts +8 -2
- package/CreditCardExpirationInput/CreditCardExpirationInput.d.ts +4 -1
- package/CreditCardInput/CreditCardInput.d.ts +4 -1
- package/DateInput/DateInput.d.ts +4 -1
- package/Dialog/Dialog.d.ts +1 -1
- package/Divider/Divider.d.ts +1 -1
- package/Drawer/Drawer.d.ts +1 -1
- package/Input/Input.d.ts +6 -2
- package/Link/Link.d.ts +1 -1
- package/Loader/CircularEasing/CircularEasing.d.ts +1 -1
- package/Loader/Pulse/Pulse.d.ts +10 -1
- package/Meter/Meter.d.ts +15 -2
- package/Modal/Modal.d.ts +1 -1
- package/ModalOverlay/ModalOverlay.d.ts +1 -1
- package/NumberInput/NumberInput.d.ts +4 -1
- package/PinInput/PinInput.d.ts +4 -1
- package/Progressbar/CircularProgressbar/CircularProgressbar.d.ts +1 -1
- package/Progressbar/CircularProgressbar/types.d.ts +2 -0
- package/Progressbar/LinearProgressbar/LinearProgressbar.d.ts +1 -1
- package/Progressbar/LinearProgressbar/types.d.ts +2 -0
- package/Radio/Radio.d.ts +4 -1
- package/Select/Option.d.ts +1 -1
- package/Select/Select.d.ts +8 -1
- package/Slider/Slider.d.ts +7 -4
- package/Switch/Switch.d.ts +10 -2
- package/Tabs/Tab.d.ts +13 -1
- package/Tabs/TabList.d.ts +1 -1
- package/Tabs/TabPanel.d.ts +1 -1
- package/Tabs/Tabs.d.ts +1 -1
- package/TimeInput/TimeInput.d.ts +2 -1
- package/TimeInput/types.d.ts +2 -0
- package/ToggleButton/ToggleButton.d.ts +1 -1
- package/index.d.ts +1 -1
- package/index.js +12 -2392
- package/index.mjs +10545 -12128
- package/package.json +7 -7
- package/style.css +1 -0
- package/types.d.ts +4 -0
- package/utils.d.ts +3 -0
- package/Breadcrumbs/styles.d.ts +0 -5
- package/Button/styles.d.ts +0 -4
- package/Card/styles.d.ts +0 -6
- package/Checkbox/styles.d.ts +0 -5
- package/Collapsible/styles.d.ts +0 -268
- package/Container/styles.d.ts +0 -4
- package/Container/types.d.ts +0 -8
- package/ContextMenu/styles.d.ts +0 -3
- package/CreditCardExpirationInput/styles.d.ts +0 -6
- package/CreditCardInput/styles.d.ts +0 -6
- package/DateInput/styles.d.ts +0 -8
- package/Dialog/styles.d.ts +0 -3
- package/Divider/styles.d.ts +0 -6
- package/Drawer/styles.d.ts +0 -3
- package/Input/styles.d.ts +0 -6
- package/Link/styles.d.ts +0 -4
- package/Loader/CircularEasing/styles.d.ts +0 -7
- package/Loader/Pulse/styles.d.ts +0 -6
- package/Meter/styles.d.ts +0 -272
- package/Meter/types.d.ts +0 -5
- package/Modal/styles.d.ts +0 -6
- package/ModalOverlay/styles.d.ts +0 -6
- package/NavigationMenu/styles.d.ts +0 -19
- package/NumberInput/styles.d.ts +0 -3
- package/PinInput/styles.d.ts +0 -8
- package/Progressbar/CircularProgressbar/styles.d.ts +0 -7
- package/Progressbar/LinearProgressbar/styles.d.ts +0 -13
- package/Radio/styles.d.ts +0 -4
- package/Select/styles.d.ts +0 -20
- package/Slider/styles.d.ts +0 -6
- package/Switch/styles.d.ts +0 -3
- package/Tabs/styles.d.ts +0 -541
- package/TimeInput/styles.d.ts +0 -8
- package/ToggleButton/styles.d.ts +0 -4
- package/defaultTheme.d.ts +0 -501
package/Accordion/Accordion.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AccordionProps } from '@nextui-org/accordion';
|
|
2
|
-
export declare function Accordion({ children, ...props }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Accordion({ children, variant, isCompact, className, itemClasses, ...props }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Accordion;
|
package/Avatar/Avatar.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AvatarProps } from './types';
|
|
2
|
-
export declare function Avatar({ icon, ...props }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Avatar({ icon, className, isDisabled, size, classNames, isBordered, radius, ...props }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Avatar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { AvatarGroupProps } from './types';
|
|
3
|
-
export declare function AvatarGroup({ children, isGrid, renderCount, }: PropsWithChildren<AvatarGroupProps>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function AvatarGroup({ children, isGrid, renderCount, className, }: PropsWithChildren<AvatarGroupProps>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default AvatarGroup;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { AvatarGroupProps as NextAvatarGroupProps } from '@nextui-org/avatar';
|
|
2
|
-
export type AvatarGroupProps = Pick<NextAvatarGroupProps, 'isGrid' | 'renderCount'
|
|
2
|
+
export type AvatarGroupProps = Pick<NextAvatarGroupProps, 'isGrid' | 'renderCount'> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
package/Badge/Badge.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BadgeProps } from './types';
|
|
2
|
-
export declare function Badge({ children, isInvisible, disableAnimation, placement, shape, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Badge({ children, isInvisible, disableAnimation, placement, shape, className, classNames, showOutline, content, isDot, isOneChar, size, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Badge;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BreadcrumbProps } from 'react-aria-components';
|
|
2
|
-
export declare function BreadcrumbItem({ children, ...props }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function BreadcrumbItem({ children, className, ...props }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BreadcrumbItem;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LinkProps } from 'react-aria-components';
|
|
2
|
-
export declare function BreadcrumbLink(props: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function BreadcrumbLink({ children, className, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BreadcrumbLink;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BreadcrumbItemProps } from './types';
|
|
2
|
-
export declare function BreadcrumbSeparator({ children, ...props }: BreadcrumbItemProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function BreadcrumbSeparator({ children, className, ...props }: BreadcrumbItemProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BreadcrumbSeparator;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BreadcrumbsProps } from './types';
|
|
2
|
-
export declare function Breadcrumbs({ children, ...props }: BreadcrumbsProps<object>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Breadcrumbs({ children, className, ...props }: BreadcrumbsProps<object>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Breadcrumbs;
|
package/Button/Button.d.ts
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
export declare const Button: import("react").ForwardRefExoticComponent<import("react-aria-components").ButtonProps & {
|
|
3
3
|
isLoading?: boolean | undefined;
|
|
4
4
|
variant?: "solid" | "outline" | "ghost" | undefined;
|
|
5
|
-
size?: "sm" | "
|
|
5
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
6
6
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
export default Button;
|
package/Card/Card.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
|
|
1
|
+
import { PropsWithChildren, HTMLAttributes } from 'react';
|
|
2
|
+
type CardProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
export declare function Card({ children, className, ...props }: PropsWithChildren<CardProps>): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default Card;
|
package/Checkbox/Checkbox.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { CheckboxProps as UiCheckboxProps, CheckboxRenderProps } from 'react-aria-components';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import type { SlotsToClasses } from '../types';
|
|
3
4
|
interface CheckboxSlots {
|
|
4
5
|
control?: ReactNode | ((values: CheckboxRenderProps) => ReactNode);
|
|
5
6
|
}
|
|
6
7
|
export interface CheckboxProps extends UiCheckboxProps {
|
|
7
8
|
slots?: CheckboxSlots;
|
|
9
|
+
classNames?: SlotsToClasses<'control'>;
|
|
8
10
|
}
|
|
9
|
-
export declare function Checkbox({ children, slots, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function Checkbox({ children, slots, className, classNames, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export declare namespace Checkbox {
|
|
11
13
|
var defaultProps: {
|
|
12
14
|
slots: {
|
|
13
15
|
control: undefined;
|
|
14
16
|
};
|
|
17
|
+
classNames: undefined;
|
|
15
18
|
};
|
|
16
19
|
}
|
|
17
20
|
export default Checkbox;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CollapsibleContentProps } from './types';
|
|
2
|
-
export declare function Collapsible({ children }: CollapsibleContentProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Collapsible({ children, className }: CollapsibleContentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Collapsible;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CollapsibleTriggerProps, CollapsibleTriggerState } from './types';
|
|
3
3
|
export declare const CollapsibleTriggerStateContext: import("react").Context<CollapsibleTriggerState>;
|
|
4
|
-
export declare function CollapsibleTrigger({ children, ...props }: CollapsibleTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function CollapsibleTrigger({ children, className, ...props }: CollapsibleTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default CollapsibleTrigger;
|
package/Collapsible/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { PropsWithChildren, HTMLAttributes } from 'react';
|
|
2
2
|
export type CollapsibleTriggerState = {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
id: string;
|
|
@@ -8,5 +8,6 @@ export type CollapsibleTriggerProps = PropsWithChildren<{
|
|
|
8
8
|
isOpen?: boolean;
|
|
9
9
|
defaultOpen?: boolean;
|
|
10
10
|
onOpenChange?: (isOpen: boolean) => void;
|
|
11
|
+
className?: string | undefined;
|
|
11
12
|
}>;
|
|
12
|
-
export type CollapsibleContentProps = PropsWithChildren<
|
|
13
|
+
export type CollapsibleContentProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
package/Container/Container.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const Container: import("react").ForwardRefExoticComponent<ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const Container: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
3
|
export default Container;
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { PopoverProps as AriaPopoverProps } from 'react-aria-components';
|
|
2
2
|
import { Dispatch, Key, SetStateAction, ReactNode } from 'react';
|
|
3
|
+
import { MotionStyle } from 'framer-motion';
|
|
4
|
+
import type { SlotsToClasses } from '../types';
|
|
3
5
|
export type ContextMenuAnimationState = 'unmounted' | 'hidden' | 'visible';
|
|
4
|
-
interface PopoverProps extends Omit<AriaPopoverProps, 'children'> {
|
|
6
|
+
interface PopoverProps extends Omit<AriaPopoverProps, 'children' | 'style'> {
|
|
5
7
|
animation: ContextMenuAnimationState;
|
|
6
8
|
children: ReactNode;
|
|
7
9
|
onAction?: (key: Key) => void;
|
|
8
10
|
setAnimation: Dispatch<SetStateAction<ContextMenuAnimationState>>;
|
|
9
11
|
key?: Key | null;
|
|
12
|
+
classNames?: SlotsToClasses<'menu'>;
|
|
13
|
+
style?: MotionStyle;
|
|
10
14
|
}
|
|
11
|
-
export declare function ContextMenu({ children, key, onAction, setAnimation, animation, ...props }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function ContextMenu({ children, key, onAction, setAnimation, animation, className, classNames, ...props }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
12
16
|
export declare namespace ContextMenu {
|
|
13
17
|
var defaultProps: {
|
|
14
18
|
key: undefined;
|
|
15
19
|
onAction: undefined;
|
|
20
|
+
classNames: undefined;
|
|
21
|
+
style: undefined;
|
|
16
22
|
};
|
|
17
23
|
}
|
|
18
24
|
export default ContextMenu;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { TextFieldProps, ValidationResult } from 'react-aria-components';
|
|
2
|
+
import type { SlotsToClasses } from '../types';
|
|
2
3
|
interface CreditCardExpirationInputProps extends TextFieldProps {
|
|
3
4
|
label?: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
6
7
|
placeholder?: string;
|
|
8
|
+
classNames?: SlotsToClasses<'label' | 'input' | 'description' | 'error'>;
|
|
7
9
|
}
|
|
8
|
-
export declare function CreditCardExpirationInput({ label, description, errorMessage, placeholder, value, ...props }: CreditCardExpirationInputProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function CreditCardExpirationInput({ label, description, errorMessage, placeholder, value, className, classNames, ...props }: CreditCardExpirationInputProps): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export declare namespace CreditCardExpirationInput {
|
|
10
12
|
var defaultProps: {
|
|
11
13
|
label: undefined;
|
|
12
14
|
description: undefined;
|
|
13
15
|
errorMessage: undefined;
|
|
14
16
|
placeholder: undefined;
|
|
17
|
+
classNames: undefined;
|
|
15
18
|
};
|
|
16
19
|
}
|
|
17
20
|
export default CreditCardExpirationInput;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TextFieldProps, ValidationResult } from 'react-aria-components';
|
|
2
|
+
import type { SlotsToClasses } from '../types';
|
|
2
3
|
interface CreditCardInputProps extends TextFieldProps {
|
|
3
4
|
label?: string;
|
|
4
5
|
description?: string;
|
|
@@ -6,14 +7,16 @@ interface CreditCardInputProps extends TextFieldProps {
|
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
value?: string;
|
|
8
9
|
onChange?: (value: string) => void;
|
|
10
|
+
classNames?: SlotsToClasses<'label' | 'input' | 'description' | 'error'>;
|
|
9
11
|
}
|
|
10
|
-
export declare function CreditCardInput({ label, description, errorMessage, placeholder, value, onChange, ...props }: CreditCardInputProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function CreditCardInput({ label, description, errorMessage, placeholder, value, onChange, className, classNames, ...props }: CreditCardInputProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export declare namespace CreditCardInput {
|
|
12
14
|
var defaultProps: {
|
|
13
15
|
label: undefined;
|
|
14
16
|
description: undefined;
|
|
15
17
|
errorMessage: undefined;
|
|
16
18
|
placeholder: undefined;
|
|
19
|
+
classNames: undefined;
|
|
17
20
|
value: undefined;
|
|
18
21
|
onChange: () => void;
|
|
19
22
|
};
|
package/DateInput/DateInput.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import type { DateFieldProps, DateValue, ValidationResult } from 'react-aria-components';
|
|
2
|
+
import type { SlotsToClasses } from '../types';
|
|
2
3
|
interface DateInputProps extends DateFieldProps<DateValue> {
|
|
3
4
|
label?: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
7
|
+
classNames?: SlotsToClasses<'label' | 'input' | 'description' | 'error' | 'segment'>;
|
|
6
8
|
}
|
|
7
|
-
export declare function DateInput({ label, description, errorMessage, ...props }: DateInputProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function DateInput({ label, description, errorMessage, className, classNames, ...props }: DateInputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export declare namespace DateInput {
|
|
9
11
|
var defaultProps: {
|
|
10
12
|
label: undefined;
|
|
11
13
|
description: undefined;
|
|
12
14
|
errorMessage: undefined;
|
|
15
|
+
classNames: undefined;
|
|
13
16
|
};
|
|
14
17
|
}
|
|
15
18
|
export default DateInput;
|
package/Dialog/Dialog.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DialogProps } from 'react-aria-components';
|
|
2
|
-
export declare function Dialog(props: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Dialog({ className, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Dialog;
|
package/Divider/Divider.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DividerProps } from './types';
|
|
2
|
-
export declare function Divider({ orientation, ...props }: DividerProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Divider({ orientation, className, ...props }: DividerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Divider;
|
package/Drawer/Drawer.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DialogProps } from 'react-aria-components';
|
|
|
2
2
|
export type DrawerProps = DialogProps & {
|
|
3
3
|
direction?: 'top' | 'right' | 'bottom' | 'left';
|
|
4
4
|
};
|
|
5
|
-
export declare function Drawer({ direction, ...props }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function Drawer({ direction, className, ...props }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare namespace Drawer {
|
|
7
7
|
var defaultProps: {
|
|
8
8
|
direction: string;
|
package/Input/Input.d.ts
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { TextFieldProps, ValidationResult } from 'react-aria-components';
|
|
2
|
-
|
|
2
|
+
import type { SlotsToClasses } from '../types';
|
|
3
|
+
export interface MyTextFieldProps extends TextFieldProps {
|
|
3
4
|
label?: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
6
7
|
placeholder?: string;
|
|
8
|
+
classNames?: SlotsToClasses<'label' | 'input' | 'description' | 'error'>;
|
|
7
9
|
}
|
|
8
|
-
export declare
|
|
10
|
+
export declare const InputSharedClasses: string[];
|
|
11
|
+
export declare function Input({ label, description, errorMessage, placeholder, className, classNames, ...props }: MyTextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export declare namespace Input {
|
|
10
13
|
var defaultProps: {
|
|
11
14
|
label: undefined;
|
|
12
15
|
description: undefined;
|
|
13
16
|
errorMessage: undefined;
|
|
14
17
|
placeholder: undefined;
|
|
18
|
+
classNames: undefined;
|
|
15
19
|
};
|
|
16
20
|
}
|
|
17
21
|
export default Input;
|
package/Link/Link.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LinkProps } from 'react-aria-components';
|
|
2
|
-
export declare function Link({ children, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Link({ children, isDisabled, className, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Link;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CircularEasingProps } from './types';
|
|
2
|
-
export declare function CircularEasing({ width, stroke, strokeLinecap, strokeWidth, ...props }: CircularEasingProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function CircularEasing({ width, stroke, strokeLinecap, strokeWidth, className, style, ...props }: CircularEasingProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default CircularEasing;
|
package/Loader/Pulse/Pulse.d.ts
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SlotsToClasses } from '../../types';
|
|
2
|
+
export interface PulseProps {
|
|
3
|
+
classNames?: SlotsToClasses<'base' | 'dot'>;
|
|
4
|
+
}
|
|
5
|
+
export declare function Pulse({ classNames }: PulseProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare namespace Pulse {
|
|
7
|
+
var defaultProps: {
|
|
8
|
+
classNames: undefined;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
2
11
|
export default Pulse;
|
package/Meter/Meter.d.ts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
import { MeterProps } from '
|
|
2
|
-
|
|
1
|
+
import { MeterProps as AriaMeterProps } from 'react-aria-components';
|
|
2
|
+
import type { SlotsToClasses } from '../types';
|
|
3
|
+
export type MeterProps = AriaMeterProps & {
|
|
4
|
+
label?: string;
|
|
5
|
+
showValue?: boolean;
|
|
6
|
+
classNames?: SlotsToClasses<'label' | 'value' | 'labelWrapper' | 'track' | 'trackWrapepr'>;
|
|
7
|
+
};
|
|
8
|
+
export declare function Meter({ label, showValue, value, minValue, maxValue, formatOptions, className, classNames, ...props }: MeterProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare namespace Meter {
|
|
10
|
+
var defaultProps: {
|
|
11
|
+
showValue: undefined;
|
|
12
|
+
label: undefined;
|
|
13
|
+
classNames: undefined;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
3
16
|
export default Meter;
|
package/Modal/Modal.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { ModalOverlayProps } from 'react-aria-components';
|
|
|
3
3
|
interface ModalProps extends Omit<ModalOverlayProps, 'children'> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare function Modal({ children, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function Modal({ children, className, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default Modal;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ModalOverlayProps } from 'react-aria-components';
|
|
2
|
-
export declare function ModalOverlay(props: ModalOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function ModalOverlay({ className, ...props }: ModalOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ModalOverlay;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { NumberFieldProps, ValidationResult } from 'react-aria-components';
|
|
3
|
+
import type { SlotsToClasses } from '../types';
|
|
3
4
|
interface NumberInputProps extends NumberFieldProps {
|
|
4
5
|
label?: string;
|
|
5
6
|
description?: string;
|
|
@@ -8,13 +9,15 @@ interface NumberInputProps extends NumberFieldProps {
|
|
|
8
9
|
decrementIcon?: ReactNode;
|
|
9
10
|
incrementIcon?: ReactNode;
|
|
10
11
|
};
|
|
12
|
+
classNames?: SlotsToClasses<'label' | 'input' | 'description' | 'error' | 'incrementBtn' | 'decrementBtn' | 'group'>;
|
|
11
13
|
}
|
|
12
|
-
export declare function NumberInput({ label, description, errorMessage, isInvalid, isReadOnly, slots, ...props }: NumberInputProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function NumberInput({ label, description, errorMessage, isInvalid, isReadOnly, slots, className, classNames, ...props }: NumberInputProps): import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export declare namespace NumberInput {
|
|
14
16
|
var defaultProps: {
|
|
15
17
|
label: undefined;
|
|
16
18
|
description: undefined;
|
|
17
19
|
errorMessage: undefined;
|
|
20
|
+
classNames: undefined;
|
|
18
21
|
slots: {
|
|
19
22
|
decrementIcon: import("react/jsx-runtime").JSX.Element;
|
|
20
23
|
incrementIcon: import("react/jsx-runtime").JSX.Element;
|
package/PinInput/PinInput.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GroupProps, ValidationResult } from 'react-aria-components';
|
|
2
|
+
import type { SlotsToClasses } from '../types';
|
|
2
3
|
/** @todo extend certain textfield props like name, validationBehavior and isRequired */
|
|
3
4
|
interface PinInputProps extends GroupProps {
|
|
4
5
|
description?: string;
|
|
@@ -12,9 +13,10 @@ interface PinInputProps extends GroupProps {
|
|
|
12
13
|
isRequired?: boolean;
|
|
13
14
|
type?: 'alpha' | 'alphanumeric' | 'numeric';
|
|
14
15
|
validationBehavior?: 'native' | 'aria';
|
|
16
|
+
classNames?: SlotsToClasses<'label' | 'input' | 'description' | 'error' | 'inputWrap' | 'textWrap'>;
|
|
15
17
|
}
|
|
16
18
|
/** based on https://github.com/chakra-ui/chakra-ui/blob/main/packages/components/src/pin-input/use-pin-input.ts */
|
|
17
|
-
export declare function PinInput({ description, errorMessage, isDisabled, isInvalid, isMasked, isRequired, label, length, name, onChange: controlledOnChange, value, type, validationBehavior, ...props }: PinInputProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function PinInput({ description, errorMessage, isDisabled, isInvalid, isMasked, isRequired, label, length, name, onChange: controlledOnChange, value, type, validationBehavior, className, classNames, ...props }: PinInputProps): import("react/jsx-runtime").JSX.Element;
|
|
18
20
|
export declare namespace PinInput {
|
|
19
21
|
var defaultProps: {
|
|
20
22
|
description: undefined;
|
|
@@ -22,6 +24,7 @@ export declare namespace PinInput {
|
|
|
22
24
|
isMasked: boolean;
|
|
23
25
|
isRequired: boolean;
|
|
24
26
|
label: undefined;
|
|
27
|
+
classNames: undefined;
|
|
25
28
|
length: number;
|
|
26
29
|
name: string;
|
|
27
30
|
onChange: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CircularProgressbarProps } from './types';
|
|
2
|
-
export declare function CircularProgressbar({ label, value, showValue, size, strokeWidth, ...props }: CircularProgressbarProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function CircularProgressbar({ label, value, showValue, size, strokeWidth, className, classNames, ...props }: CircularProgressbarProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default CircularProgressbar;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ProgressBarProps } from 'react-aria-components';
|
|
2
|
+
import type { SlotsToClasses } from '../../types';
|
|
2
3
|
export interface CircularProgressbarProps extends ProgressBarProps {
|
|
3
4
|
label?: string;
|
|
4
5
|
showValue?: boolean;
|
|
5
6
|
size?: number;
|
|
6
7
|
strokeWidth?: number;
|
|
8
|
+
classNames?: SlotsToClasses<'label' | 'base' | 'value'>;
|
|
7
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { LinearProgressbarProps } from './types';
|
|
2
|
-
export declare function LinearProgressbar({ label, isIndeterminate, showValue, width, ...props }: LinearProgressbarProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function LinearProgressbar({ label, isIndeterminate, showValue, width, className, classNames, ...props }: LinearProgressbarProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default LinearProgressbar;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ProgressBarProps } from 'react-aria-components';
|
|
2
|
+
import type { SlotsToClasses } from '../../types';
|
|
2
3
|
export interface LinearProgressbarProps extends ProgressBarProps {
|
|
3
4
|
label?: string;
|
|
4
5
|
width?: string;
|
|
5
6
|
showValue?: boolean;
|
|
7
|
+
classNames?: SlotsToClasses<'label' | 'value' | 'labelWrapper' | 'track' | 'trackWrapper'>;
|
|
6
8
|
}
|
package/Radio/Radio.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { RadioRenderProps, RadioProps as UiRadioProps } from 'react-aria-components';
|
|
3
|
+
import type { SlotsToClasses } from '../types';
|
|
3
4
|
interface RadioSlots {
|
|
4
5
|
control?: ReactNode | ((values: RadioRenderProps) => ReactNode);
|
|
5
6
|
}
|
|
6
7
|
export interface RadioProps extends UiRadioProps {
|
|
7
8
|
children?: ReactNode | ((values: RadioRenderProps) => ReactNode);
|
|
8
9
|
slots?: RadioSlots;
|
|
10
|
+
classNames?: SlotsToClasses<'control'>;
|
|
9
11
|
}
|
|
10
|
-
export declare function Radio({ children, slots, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function Radio({ children, slots, className, classNames, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export declare namespace Radio {
|
|
12
14
|
var defaultProps: {
|
|
13
15
|
children: undefined;
|
|
14
16
|
slots: undefined;
|
|
17
|
+
classNames: undefined;
|
|
15
18
|
};
|
|
16
19
|
}
|
|
17
20
|
export default Radio;
|
package/Select/Option.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ListBoxItemProps } from 'react-aria-components';
|
|
2
|
-
export declare function Option(props: ListBoxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Option({ className, ...props }: ListBoxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Option;
|
package/Select/Select.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComboBoxRenderProps, type ComboBoxProps as AriaComboBoxProps, type ValidationResult } from 'react-aria-components';
|
|
2
2
|
import { Key, ReactNode } from 'react';
|
|
3
|
+
import type { SlotsToClasses } from '../types';
|
|
3
4
|
export type ComboBoxPopoverAnimationState = 'unmounted' | 'hidden' | 'visible';
|
|
4
5
|
type CustomSelectSlots = {
|
|
5
6
|
buttonIcon?: ReactNode | ((values: ComboBoxRenderProps) => ReactNode);
|
|
@@ -14,8 +15,11 @@ export interface SelectProps<T extends object> extends Omit<AriaComboBoxProps<T>
|
|
|
14
15
|
isLoading?: boolean;
|
|
15
16
|
children: ReactNode | ((item: T) => ReactNode);
|
|
16
17
|
slots?: CustomSelectSlots;
|
|
18
|
+
popoverOffset?: number;
|
|
19
|
+
popoverPortalContainer?: Element;
|
|
20
|
+
classNames?: SlotsToClasses<'label' | 'name' | 'comboBoxContainer' | 'input' | 'loader' | 'arrowButton' | 'description' | 'errorMessage' | 'listContainer' | 'list'>;
|
|
17
21
|
}
|
|
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;
|
|
22
|
+
export declare function Select<T extends object>({ label, description, errorMessage, children, placeholder, key, isLoading, slots, popoverPortalContainer, popoverOffset, selectedKey, className, classNames, ...props }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
19
23
|
export declare namespace Select {
|
|
20
24
|
var defaultProps: {
|
|
21
25
|
label: undefined;
|
|
@@ -28,6 +32,9 @@ export declare namespace Select {
|
|
|
28
32
|
loadingIcon: undefined;
|
|
29
33
|
buttonIcon: undefined;
|
|
30
34
|
};
|
|
35
|
+
popoverOffset: undefined;
|
|
36
|
+
popoverPortalContainer: undefined;
|
|
37
|
+
classNames: undefined;
|
|
31
38
|
};
|
|
32
39
|
}
|
|
33
40
|
export default Select;
|
package/Slider/Slider.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { SliderProps as AriaSliderProps } from 'react-aria-components';
|
|
2
|
+
import type { SlotsToClasses } from '../types';
|
|
3
|
+
export type SliderProps = AriaSliderProps & {
|
|
3
4
|
label?: string;
|
|
4
5
|
showOutput?: boolean;
|
|
5
6
|
thumbLabels?: string[];
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
classNames?: SlotsToClasses<'base' | 'label' | 'output' | 'outputWrapper' | 'track' | 'thumb'>;
|
|
8
|
+
};
|
|
9
|
+
export declare function Slider({ label, showOutput, thumbLabels, classNames, orientation, isDisabled, children, ...props }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export declare namespace Slider {
|
|
9
11
|
var defaultProps: {
|
|
10
12
|
label: undefined;
|
|
11
13
|
showOutput: boolean;
|
|
12
14
|
thumbLabels: undefined;
|
|
15
|
+
classNames: undefined;
|
|
13
16
|
};
|
|
14
17
|
}
|
|
15
18
|
export default Slider;
|
package/Switch/Switch.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import { SwitchProps
|
|
2
|
-
|
|
1
|
+
import { SwitchProps } from 'react-aria-components';
|
|
2
|
+
import type { SlotsToClasses } from '../types';
|
|
3
|
+
export declare function Switch({ children, className, classNames, ...props }: SwitchProps & {
|
|
4
|
+
classNames?: SlotsToClasses<'indicator'>;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare namespace Switch {
|
|
7
|
+
var defaultProps: {
|
|
8
|
+
classNames: undefined;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
3
11
|
export default Switch;
|
package/Tabs/Tab.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import { TabsProps } from 'react-aria-components';
|
|
1
2
|
import { TabProps } from './types';
|
|
2
|
-
|
|
3
|
+
import type { SlotsToClasses } from '../types';
|
|
4
|
+
export declare function UiTab({ orientation, variant, className, children, ...props }: TabProps & {
|
|
5
|
+
orientation: TabsProps['orientation'];
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function Tab({ variant, children, className, classNames, ...props }: TabProps & {
|
|
8
|
+
classNames?: SlotsToClasses<'overflow'>;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare namespace Tab {
|
|
11
|
+
var defaultProps: {
|
|
12
|
+
classNames: undefined;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
3
15
|
export default Tab;
|
package/Tabs/TabList.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TabListProps } from './types';
|
|
2
|
-
export declare function TabList({ items, children, variant, ...props }: TabListProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function TabList({ items, children, variant, className, ...props }: TabListProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default TabList;
|
package/Tabs/TabPanel.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TabPanelProps } from 'react-aria-components';
|
|
2
|
-
export declare function TabPanel({ children, ...props }: TabPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function TabPanel({ children, className, ...props }: TabPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default TabPanel;
|
package/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TabsProps } from 'react-aria-components';
|
|
3
3
|
export declare const TabsOrientationContext: import("react").Context<import("react-aria").Orientation | undefined>;
|
|
4
|
-
export declare function Tabs({ children, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function Tabs({ children, className, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default Tabs;
|
package/TimeInput/TimeInput.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { TimeInputProps } from './types';
|
|
2
|
-
export declare function TimeInput({ label, description, errorMessage, ...props }: TimeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function TimeInput({ label, description, errorMessage, className, classNames, ...props }: TimeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare namespace TimeInput {
|
|
4
4
|
var defaultProps: {
|
|
5
5
|
label: undefined;
|
|
6
6
|
description: undefined;
|
|
7
7
|
errorMessage: undefined;
|
|
8
|
+
classNames: undefined;
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
11
|
export default TimeInput;
|
package/TimeInput/types.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { TimeFieldProps, TimeValue, ValidationResult } from 'react-aria-components';
|
|
2
|
+
import type { SlotsToClasses } from '../types';
|
|
2
3
|
export interface TimeInputProps extends TimeFieldProps<TimeValue> {
|
|
3
4
|
label?: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
7
|
+
classNames?: SlotsToClasses<'label' | 'input' | 'description' | 'error' | 'segment'>;
|
|
6
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ToggleButtonProps } from './types';
|
|
2
|
-
export declare function ToggleButton({ children, size, variant, ...props }: ToggleButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function ToggleButton({ children, size, variant, className, ...props }: ToggleButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ToggleButton;
|
package/index.d.ts
CHANGED
|
@@ -39,9 +39,9 @@ export * from './Tabs/Tab';
|
|
|
39
39
|
export * from './Tabs/TabList';
|
|
40
40
|
export * from './Tabs/TabPanel';
|
|
41
41
|
export * from './Tabs/Tabs';
|
|
42
|
-
export * from './defaultTheme';
|
|
43
42
|
export * from './TimeInput/TimeInput';
|
|
44
43
|
export * from './ToggleButton/ToggleButton';
|
|
45
44
|
export * from './Tooltip/Tooltip';
|
|
46
45
|
export * from './Loader';
|
|
47
46
|
export * from './NavigationMenu/NavigationMenu';
|
|
47
|
+
export * from './utils';
|