@kazee-ds/react 0.5.5 → 0.7.0
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/README.md +3 -1
- package/dist/index.js +4742 -1012
- package/dist/index.js.map +1 -1
- package/dist/types/Alert.d.ts +20 -4
- package/dist/types/Avatar.d.ts +42 -0
- package/dist/types/AvatarGroup.d.ts +18 -0
- package/dist/types/Badge.d.ts +23 -4
- package/dist/types/Breadcrumb.d.ts +24 -2
- package/dist/types/Button.d.ts +4 -3
- package/dist/types/ButtonGroup.d.ts +4 -3
- package/dist/types/Calendar.d.ts +60 -0
- package/dist/types/Card.d.ts +49 -4
- package/dist/types/Chart.d.ts +13 -2
- package/dist/types/Checkbox.d.ts +11 -2
- package/dist/types/Combobox.d.ts +13 -3
- package/dist/types/DataTable.d.ts +23 -2
- package/dist/types/DateRangePicker.d.ts +20 -2
- package/dist/types/Dialog.d.ts +20 -2
- package/dist/types/DropdownMenu.d.ts +23 -3
- package/dist/types/Empty.d.ts +12 -2
- package/dist/types/FieldComponent.d.ts +3 -2
- package/dist/types/Form.d.ts +3 -2
- package/dist/types/Input.d.ts +19 -4
- package/dist/types/Label.d.ts +4 -3
- package/dist/types/Listbox.d.ts +11 -2
- package/dist/types/NumberField.d.ts +12 -2
- package/dist/types/OverlayDirection.d.ts +1 -1
- package/dist/types/Pagination.d.ts +29 -2
- package/dist/types/Popover.d.ts +19 -2
- package/dist/types/RadioGroup.d.ts +12 -2
- package/dist/types/Select.d.ts +19 -7
- package/dist/types/SelectGroup.d.ts +3 -2
- package/dist/types/Separator.d.ts +2 -1
- package/dist/types/Sidebar.d.ts +16 -2
- package/dist/types/Skeleton.d.ts +2 -1
- package/dist/types/Spinner.d.ts +3 -2
- package/dist/types/Switch.d.ts +18 -2
- package/dist/types/Table.d.ts +16 -2
- package/dist/types/Tabs.d.ts +38 -3
- package/dist/types/TemporalField.d.ts +36 -0
- package/dist/types/TemporalPicker.d.ts +137 -0
- package/dist/types/Textarea.d.ts +13 -2
- package/dist/types/TimeControls.d.ts +14 -0
- package/dist/types/Toast.d.ts +31 -7
- package/dist/types/ToggleButton.d.ts +5 -3
- package/dist/types/ToggleButtonGroup.d.ts +4 -1
- package/dist/types/ToggleGroup.d.ts +18 -3
- package/dist/types/Tooltip.d.ts +12 -2
- package/dist/types/choice-composition.d.ts +35 -0
- package/dist/types/combobox-composition.d.ts +22 -0
- package/dist/types/control-composition.d.ts +73 -0
- package/dist/types/date-range-composition.d.ts +46 -0
- package/dist/types/date-range-model.d.ts +3 -1
- package/dist/types/field.d.ts +6 -1
- package/dist/types/index.d.ts +46 -1
- package/dist/types/input-clear.d.ts +24 -0
- package/dist/types/label-context.d.ts +8 -0
- package/dist/types/layout-parts.d.ts +44 -0
- package/dist/types/number-composition.d.ts +24 -0
- package/dist/types/structural-parts.d.ts +56 -0
- package/dist/types/styling.d.ts +8 -0
- package/dist/types/switch-visual.d.ts +21 -0
- package/dist/types/temporal-model.d.ts +44 -0
- package/dist/types/toggle-group-model.d.ts +1 -1
- package/dist/types/visual-slot.d.ts +3 -0
- package/dist/types/visual.d.ts +5 -0
- package/package.json +1 -1
package/dist/types/Textarea.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { InputRoot, type InputCompositionProps } from './control-composition.js';
|
|
2
|
+
import type { TextAreaProps as AriaTextAreaProps } from 'react-aria-components/TextField';
|
|
3
|
+
import { type StylingProps } from './styling.js';
|
|
1
4
|
/** A labeled multiline string field; validation is owned by the application. */
|
|
2
|
-
export interface TextareaProps {
|
|
5
|
+
export interface TextareaProps extends StylingProps<'root' | 'label' | 'input' | 'description' | 'error'> {
|
|
3
6
|
label: string;
|
|
4
7
|
value?: string;
|
|
5
8
|
defaultValue?: string;
|
|
@@ -21,4 +24,12 @@ export interface TextareaProps {
|
|
|
21
24
|
maxLength?: number;
|
|
22
25
|
dir?: 'ltr' | 'rtl';
|
|
23
26
|
}
|
|
24
|
-
|
|
27
|
+
declare function TextareaControl({ className, ...props }: Omit<AriaTextAreaProps, 'className'> & {
|
|
28
|
+
className?: string;
|
|
29
|
+
}): import("react").JSX.Element;
|
|
30
|
+
declare function TextareaRoot(props: TextareaProps | InputCompositionProps): import("react").JSX.Element;
|
|
31
|
+
export declare const Textarea: typeof TextareaRoot & {
|
|
32
|
+
Root: typeof InputRoot;
|
|
33
|
+
Control: typeof TextareaControl;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import { type TemporalConstraints } from './temporal-model.js';
|
|
3
|
+
export interface TimeControlProps extends Omit<TemporalConstraints, 'kind'>, Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
4
|
+
value?: string | null;
|
|
5
|
+
defaultValue?: string | null;
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
label?: string;
|
|
8
|
+
locale?: string;
|
|
9
|
+
hourCycle?: 12 | 24;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
isReadOnly?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function TimeList({ value, defaultValue, onChange, label, locale, hourCycle, isDisabled, isReadOnly, className, minTime, maxTime, hourStep, minuteStep, secondStep, granularity, isTimeUnavailable, ...props }: TimeControlProps): import("react").JSX.Element;
|
|
14
|
+
export declare function TimeClock({ value, defaultValue, onChange, label, locale, hourCycle, isDisabled, isReadOnly, className, minTime, maxTime, hourStep, minuteStep, secondStep, granularity, isTimeUnavailable, ...props }: TimeControlProps): import("react").JSX.Element;
|
package/dist/types/Toast.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type StylingProps } from './styling.js';
|
|
2
|
+
import { type ReactNode, type HTMLAttributes, type ComponentProps } from 'react';
|
|
3
|
+
import { Button, Text, UNSTABLE_ToastContent as ToastContent } from 'react-aria-components';
|
|
2
4
|
import { type ToastEntry, type ToastManager, type ToastPlacement } from './toast-model.js';
|
|
3
|
-
export interface ToastProviderProps {
|
|
5
|
+
export interface ToastProviderProps extends StylingProps<'root' | 'list'> {
|
|
4
6
|
children?: ReactNode;
|
|
5
7
|
manager?: ToastManager;
|
|
6
8
|
placement?: ToastPlacement;
|
|
@@ -16,9 +18,9 @@ export interface ToastProviderProps {
|
|
|
16
18
|
/** Customize presentation with the exported Toast component, retaining region behavior. */
|
|
17
19
|
renderToast?: (entry: ToastEntry) => ReactNode;
|
|
18
20
|
}
|
|
19
|
-
export declare function ToastProvider({ children, manager: suppliedManager, placement, label, closeLabel, hotkey, dir, showProgress, showCloseButton, swipeThreshold, renderToast, }: ToastProviderProps): import("react").JSX.Element;
|
|
21
|
+
export declare function ToastProvider({ className, classNames, style, children, manager: suppliedManager, placement, label, closeLabel, hotkey, dir, showProgress, showCloseButton, swipeThreshold, renderToast, }: ToastProviderProps): import("react").JSX.Element;
|
|
20
22
|
export declare function useToast(): ToastManager;
|
|
21
|
-
export interface ToastProps {
|
|
23
|
+
export interface ToastProps extends StylingProps<'root' | 'indicator' | 'body' | 'title' | 'description' | 'actions' | 'action' | 'close' | 'progress'> {
|
|
22
24
|
entry: ToastEntry;
|
|
23
25
|
/** Override the provider's close button visibility for this toast. */
|
|
24
26
|
showCloseButton?: boolean;
|
|
@@ -26,7 +28,29 @@ export interface ToastProps {
|
|
|
26
28
|
showProgress?: boolean;
|
|
27
29
|
indicator?: ReactNode;
|
|
28
30
|
children?: ReactNode;
|
|
29
|
-
/** Additional class appended to the shared toast class. */
|
|
30
|
-
className?: string;
|
|
31
31
|
}
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function ToastRoot(props: ToastProps): import("react").JSX.Element;
|
|
33
|
+
export declare function ToastIndicator({ className, children, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
34
|
+
export declare function ToastBody({ className, ...props }: ComponentProps<typeof ToastContent>): import("react").JSX.Element;
|
|
35
|
+
export declare function ToastTitle({ className, children, ...props }: ComponentProps<typeof Text>): import("react").JSX.Element;
|
|
36
|
+
export declare function ToastDescription({ className, children, ...props }: ComponentProps<typeof Text>): import("react").JSX.Element | null;
|
|
37
|
+
export declare function ToastActions({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
38
|
+
export declare function ToastActionButton({ className, children, cancel, onPress, ...props }: ComponentProps<typeof Button> & {
|
|
39
|
+
cancel?: boolean;
|
|
40
|
+
}): import("react").JSX.Element | null;
|
|
41
|
+
export declare function ToastCloseButton({ className, children, ...props }: ComponentProps<typeof Button>): import("react").JSX.Element;
|
|
42
|
+
export declare function ToastProgress({ className, style, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element | null;
|
|
43
|
+
declare function CompactToast(props: ToastProps): import("react").JSX.Element;
|
|
44
|
+
export declare const Toast: typeof CompactToast & {
|
|
45
|
+
Root: typeof ToastRoot;
|
|
46
|
+
Provider: typeof ToastProvider;
|
|
47
|
+
Indicator: typeof ToastIndicator;
|
|
48
|
+
Content: typeof ToastBody;
|
|
49
|
+
Title: typeof ToastTitle;
|
|
50
|
+
Description: typeof ToastDescription;
|
|
51
|
+
Actions: typeof ToastActions;
|
|
52
|
+
ActionButton: typeof ToastActionButton;
|
|
53
|
+
CloseButton: typeof ToastCloseButton;
|
|
54
|
+
Progress: typeof ToastProgress;
|
|
55
|
+
};
|
|
56
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { type StylingProps } from './styling.js';
|
|
1
2
|
import { type ReactNode } from 'react';
|
|
2
3
|
import { type ToggleButtonRenderProps as AriaRenderProps } from 'react-aria-components/ToggleButton';
|
|
3
4
|
import type { ButtonPressEvent, ButtonSize } from './Button.js';
|
|
4
|
-
export type ToggleButtonVariant = 'default' | 'ghost';
|
|
5
|
+
export type ToggleButtonVariant = 'default' | 'ghost' | 'chip';
|
|
5
6
|
export type ToggleButtonRenderProps = Omit<AriaRenderProps, 'state'>;
|
|
6
|
-
export interface ToggleButtonProps {
|
|
7
|
+
export interface ToggleButtonProps extends StylingProps {
|
|
7
8
|
id?: string;
|
|
8
9
|
children?: ReactNode | ((state: ToggleButtonRenderProps) => ReactNode);
|
|
9
10
|
variant?: ToggleButtonVariant;
|
|
@@ -20,4 +21,5 @@ export interface ToggleButtonProps {
|
|
|
20
21
|
autoFocus?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare const ToggleButtonSizeContext: import("react").Context<ButtonSize>;
|
|
23
|
-
export declare
|
|
24
|
+
export declare const ToggleButtonVariantContext: import("react").Context<ToggleButtonVariant>;
|
|
25
|
+
export declare function ToggleButton({ children, variant, size, isIconOnly, className: consumerClassName, classNames, style, ...props }: ToggleButtonProps): import("react").JSX.Element;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { type StylingProps } from './styling.js';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { ButtonSize } from './Button.js';
|
|
4
|
+
import { type ToggleButtonVariant } from './ToggleButton.js';
|
|
3
5
|
import { ButtonGroupSeparator } from './ButtonGroup.js';
|
|
4
|
-
interface Common {
|
|
6
|
+
interface Common extends StylingProps {
|
|
5
7
|
label: string;
|
|
6
8
|
children: ReactNode;
|
|
7
9
|
size?: ButtonSize;
|
|
10
|
+
variant?: ToggleButtonVariant;
|
|
8
11
|
isDisabled?: boolean;
|
|
9
12
|
isDetached?: boolean;
|
|
10
13
|
fullWidth?: boolean;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { type ToggleButtonGroupProps } from './ToggleButtonGroup.js';
|
|
2
|
+
import { ToggleButton as ComposedToggleItem } from './ToggleButton.js';
|
|
3
|
+
import { ButtonGroupSeparator } from './ButtonGroup.js';
|
|
4
|
+
import { type StylingProps } from './styling.js';
|
|
1
5
|
import { type ReactNode } from 'react';
|
|
2
6
|
import { type ToggleGroupItem, type ToggleGroupVariant } from './toggle-group-model.js';
|
|
3
7
|
import type { ButtonSize } from './Button.js';
|
|
4
8
|
export type { ToggleGroupItem, ToggleGroupMode, ToggleGroupVariant } from './toggle-group-model.js';
|
|
5
|
-
interface ToggleGroupCommonProps {
|
|
9
|
+
interface ToggleGroupCommonProps extends StylingProps<'root' | 'item' | 'icon' | 'label'> {
|
|
6
10
|
label: string;
|
|
7
11
|
items: ToggleGroupItem[];
|
|
8
12
|
isDisabled?: boolean;
|
|
@@ -25,9 +29,20 @@ export type ToggleGroupProps = ToggleGroupCommonProps & ({
|
|
|
25
29
|
defaultValue?: string[];
|
|
26
30
|
onChange?: (value: string[]) => void;
|
|
27
31
|
});
|
|
28
|
-
|
|
32
|
+
declare function ToggleGroupRoot(props: Extract<ToggleGroupProps, {
|
|
33
|
+
selectionMode: 'multiple';
|
|
34
|
+
}> | Extract<ToggleButtonGroupProps, {
|
|
29
35
|
selectionMode: 'multiple';
|
|
30
36
|
}>): ReactNode;
|
|
31
|
-
|
|
37
|
+
declare function ToggleGroupRoot(props: Exclude<ToggleGroupProps, {
|
|
38
|
+
selectionMode: 'multiple';
|
|
39
|
+
}> | Exclude<ToggleButtonGroupProps, {
|
|
32
40
|
selectionMode: 'multiple';
|
|
33
41
|
}>): ReactNode;
|
|
42
|
+
export declare const ToggleGroup: typeof ToggleGroupRoot & {
|
|
43
|
+
Root: ((props: ToggleButtonGroupProps) => import("react").JSX.Element) & {
|
|
44
|
+
Separator: typeof ButtonGroupSeparator;
|
|
45
|
+
};
|
|
46
|
+
Item: typeof ComposedToggleItem;
|
|
47
|
+
Separator: typeof ButtonGroupSeparator;
|
|
48
|
+
};
|
package/dist/types/Tooltip.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import type { TooltipRootProps } from './structural-parts.js';
|
|
2
|
+
import { TooltipRoot } from './structural-parts.js';
|
|
3
|
+
import { type StylingProps } from './styling.js';
|
|
1
4
|
import type { ReactNode } from 'react';
|
|
2
5
|
import type { ButtonVariant, ButtonSize } from './Button.js';
|
|
3
|
-
export
|
|
6
|
+
export type TooltipPart = 'root' | 'trigger' | 'panel';
|
|
7
|
+
export interface TooltipProps extends StylingProps<TooltipPart> {
|
|
4
8
|
triggerLabel: string;
|
|
5
9
|
text: string;
|
|
6
10
|
triggerContent?: ReactNode;
|
|
@@ -13,4 +17,10 @@ export interface TooltipProps {
|
|
|
13
17
|
isDisabled?: boolean;
|
|
14
18
|
dir?: 'ltr' | 'rtl';
|
|
15
19
|
}
|
|
16
|
-
|
|
20
|
+
declare function TooltipComponent(props: TooltipProps | TooltipRootProps): import("react").JSX.Element;
|
|
21
|
+
export declare const Tooltip: typeof TooltipComponent & {
|
|
22
|
+
Root: typeof TooltipRoot;
|
|
23
|
+
Trigger: ({ className, ...props }: import("react-aria-components").ButtonProps & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<import("react-aria-components").ButtonProps & import("react").RefAttributes<HTMLButtonElement>, string | import("react").JSXElementConstructor<any>>;
|
|
24
|
+
Content: ({ className, ...props }: import("react-aria-components").TooltipProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<import("react-aria-components").TooltipProps & import("react").RefAttributes<HTMLDivElement>, string | import("react").JSXElementConstructor<any>>;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import { type CheckboxProps as AriaCheckboxProps } from 'react-aria-components/Checkbox';
|
|
3
|
+
import { type SwitchFieldProps } from 'react-aria-components/Switch';
|
|
4
|
+
import { type RadioGroupProps as AriaRadioGroupProps, type RadioProps } from 'react-aria-components/RadioGroup';
|
|
5
|
+
import { type SwitchVisualProps } from './switch-visual.js';
|
|
6
|
+
type ChoiceElementProps = HTMLAttributes<HTMLSpanElement>;
|
|
7
|
+
export type CheckboxCompositionProps = Omit<AriaCheckboxProps, 'className'> & {
|
|
8
|
+
className?: string;
|
|
9
|
+
label?: never;
|
|
10
|
+
};
|
|
11
|
+
export declare function CheckboxComposition({ className, children, ...props }: CheckboxCompositionProps): import("react").JSX.Element;
|
|
12
|
+
export declare function CheckboxControl({ className, ...props }: ChoiceElementProps): import("react").JSX.Element;
|
|
13
|
+
export declare function CheckboxIndicator({ className, children, ...props }: ChoiceElementProps): import("react").JSX.Element;
|
|
14
|
+
export declare function ChoiceContent({ className, ...props }: ChoiceElementProps): import("react").JSX.Element;
|
|
15
|
+
export type SwitchCompositionProps = Omit<SwitchFieldProps, 'className' | 'children'> & SwitchVisualProps & {
|
|
16
|
+
className?: string;
|
|
17
|
+
label?: never;
|
|
18
|
+
children?: import('react').ReactNode | ((state: import('react-aria-components/Switch').SwitchFieldRenderProps & Partial<import('react-aria-components/Switch').SwitchButtonRenderProps>) => import('react').ReactNode);
|
|
19
|
+
};
|
|
20
|
+
export declare function SwitchComposition({ className, children, size, tone, variant, ...props }: SwitchCompositionProps): import("react").JSX.Element;
|
|
21
|
+
export declare function SwitchControl({ className, ...props }: ChoiceElementProps): import("react").JSX.Element;
|
|
22
|
+
export declare function SwitchThumb({ className, ...props }: ChoiceElementProps): import("react").JSX.Element;
|
|
23
|
+
export declare function SwitchIcon({ className, ...props }: ChoiceElementProps): import("react").JSX.Element;
|
|
24
|
+
export type RadioGroupCompositionProps = Omit<AriaRadioGroupProps, 'className'> & {
|
|
25
|
+
className?: string;
|
|
26
|
+
options?: never;
|
|
27
|
+
label?: never;
|
|
28
|
+
};
|
|
29
|
+
export declare function RadioGroupComposition({ className, ...props }: RadioGroupCompositionProps): import("react").JSX.Element;
|
|
30
|
+
export declare function RadioItem({ className, children, ...props }: Omit<RadioProps, 'className'> & {
|
|
31
|
+
className?: string;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
33
|
+
export declare function RadioControl({ className, ...props }: ChoiceElementProps): import("react").JSX.Element;
|
|
34
|
+
export declare function RadioIndicator({ className, ...props }: ChoiceElementProps): import("react").JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ComboBoxProps, type InputProps, type ButtonProps, type PopoverProps } from 'react-aria-components/ComboBox';
|
|
2
|
+
import { type HTMLAttributes } from 'react';
|
|
3
|
+
export type ComboboxCompositionProps = Omit<ComboBoxProps<object>, 'className' | 'onChange' | 'value' | 'defaultValue'> & {
|
|
4
|
+
className?: string;
|
|
5
|
+
options?: never;
|
|
6
|
+
label?: never;
|
|
7
|
+
value?: string | null;
|
|
8
|
+
defaultValue?: string | null;
|
|
9
|
+
onChange?: (value: string | null) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function ComboboxComposition({ className, onChange, ...props }: ComboboxCompositionProps): import("react").JSX.Element;
|
|
12
|
+
export declare function ComboboxInputGroup({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
13
|
+
export declare function ComboboxInput({ className, ...props }: Omit<InputProps, 'className'> & {
|
|
14
|
+
className?: string;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
export declare function ComboboxTrigger({ className, children, ...props }: Omit<ButtonProps, 'className'> & {
|
|
17
|
+
className?: string;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export declare function ComboboxPopover({ className, ...props }: Omit<PopoverProps, 'className'> & {
|
|
20
|
+
className?: string;
|
|
21
|
+
}): import("react").JSX.Element;
|
|
22
|
+
export declare function ComboboxClearButton({ className, children, 'aria-label': label, ...props }: Omit<HTMLAttributes<HTMLButtonElement>, 'onClick'>): import("react").JSX.Element;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type Ref, type ComponentProps, type HTMLAttributes } from 'react';
|
|
2
|
+
import { Button } from 'react-aria-components/Button';
|
|
3
|
+
import { type SelectProps as AriaSelectProps, type SelectValueProps } from 'react-aria-components/Select';
|
|
4
|
+
import { type PopoverProps } from 'react-aria-components/Popover';
|
|
5
|
+
import { type ListBoxProps, type ListBoxItemProps, type ListBoxSectionProps } from 'react-aria-components/ListBox';
|
|
6
|
+
import { type TextProps } from 'react-aria-components/Text';
|
|
7
|
+
import { Header } from 'react-aria-components/Header';
|
|
8
|
+
import { type FieldErrorProps } from 'react-aria-components/FieldError';
|
|
9
|
+
import { type TextFieldProps, type InputProps as AriaInputProps } from 'react-aria-components/TextField';
|
|
10
|
+
import { type GroupProps } from 'react-aria-components/Group';
|
|
11
|
+
import { type StylingProps } from './styling.js';
|
|
12
|
+
export type SelectPart = 'root' | 'label' | 'control' | 'trigger' | 'value' | 'indicator' | 'clearButton' | 'popover' | 'list' | 'item' | 'itemIndicator' | 'description' | 'error';
|
|
13
|
+
export type SelectCompositionProps<M extends 'single' | 'multiple' = 'single'> = Omit<AriaSelectProps<object, M>, 'className' | 'style' | 'onChange' | 'value' | 'defaultValue'> & StylingProps<SelectPart> & {
|
|
14
|
+
options?: never;
|
|
15
|
+
label?: never;
|
|
16
|
+
value?: AriaSelectProps<object, M>['value'];
|
|
17
|
+
defaultValue?: AriaSelectProps<object, M>['defaultValue'];
|
|
18
|
+
onChange?: (value: M extends 'multiple' ? string[] : string | null) => void;
|
|
19
|
+
onClear?: () => void;
|
|
20
|
+
size?: import('./Select.js').SelectSize;
|
|
21
|
+
variant?: import('./Select.js').SelectVariant;
|
|
22
|
+
fullWidth?: boolean;
|
|
23
|
+
hideLabel?: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare function SelectComposition<M extends 'single' | 'multiple' = 'single'>({ className, style, classNames, onClear, onChange, size, variant, fullWidth, hideLabel, ...props }: SelectCompositionProps<M>): import("react").JSX.Element;
|
|
26
|
+
export declare function SelectControl({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
27
|
+
export declare function SelectTrigger({ ref, className, children, onKeyDown, ...props }: Omit<ComponentProps<typeof Button>, 'className'> & {
|
|
28
|
+
className?: string;
|
|
29
|
+
}): import("react").JSX.Element;
|
|
30
|
+
export declare function SelectValuePart<T>({ className, ...props }: Omit<SelectValueProps<T>, 'className'> & {
|
|
31
|
+
className?: string;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
33
|
+
export declare function SelectIndicator({ className, children, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
34
|
+
/** Nested clear is decorative to AT; Backspace/Delete on the trigger supplies keyboard clearing. Outside Trigger it is a named native button. */
|
|
35
|
+
export declare function SelectClearButton({ className, children, 'aria-label': label, ...props }: Pick<HTMLAttributes<HTMLSpanElement>, 'className' | 'children' | 'style' | 'aria-label' | 'id'>): import("react").JSX.Element;
|
|
36
|
+
export declare function SelectPopover({ className, ...props }: Omit<PopoverProps, 'className'> & {
|
|
37
|
+
className?: string;
|
|
38
|
+
}): import("react").JSX.Element;
|
|
39
|
+
export declare function ListBoxRoot<T extends object>({ className, ...props }: Omit<ListBoxProps<T>, 'className'> & {
|
|
40
|
+
className?: string;
|
|
41
|
+
}): import("react").JSX.Element;
|
|
42
|
+
export declare function ListBoxItemPart<T extends object>({ className, children, ...props }: Omit<ListBoxItemProps<T>, 'className'> & {
|
|
43
|
+
className?: string;
|
|
44
|
+
}): import("react").JSX.Element;
|
|
45
|
+
export declare function ListBoxSectionPart<T extends object>({ className, ...props }: ListBoxSectionProps<T>): import("react").JSX.Element;
|
|
46
|
+
export declare function ListBoxItemIndicator({ className, children, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
47
|
+
export declare const ListBox: typeof ListBoxRoot & {
|
|
48
|
+
Item: typeof ListBoxItemPart;
|
|
49
|
+
Section: typeof ListBoxSectionPart;
|
|
50
|
+
ItemIndicator: typeof ListBoxItemIndicator;
|
|
51
|
+
};
|
|
52
|
+
export declare function Description({ className, ...props }: TextProps): import("react").JSX.Element;
|
|
53
|
+
export declare function FieldError({ className, ...props }: Omit<FieldErrorProps, 'className'> & {
|
|
54
|
+
className?: string;
|
|
55
|
+
}): import("react").JSX.Element;
|
|
56
|
+
export type InputCompositionProps = Omit<TextFieldProps, 'className'> & {
|
|
57
|
+
className?: string;
|
|
58
|
+
label?: never;
|
|
59
|
+
size?: import('./Input.js').InputSize;
|
|
60
|
+
variant?: import('./Input.js').InputVariant;
|
|
61
|
+
hideLabel?: boolean;
|
|
62
|
+
};
|
|
63
|
+
export declare function InputRoot({ className, size, variant, hideLabel, value, defaultValue, onChange, ...props }: Omit<InputCompositionProps, 'label'>): import("react").JSX.Element;
|
|
64
|
+
export declare const InputControlRefContext: import("react").Context<Ref<HTMLInputElement> | undefined>;
|
|
65
|
+
export declare const InputControl: import("react").ForwardRefExoticComponent<Omit<AriaInputProps, "className"> & {
|
|
66
|
+
className?: string;
|
|
67
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
68
|
+
export declare function InputGroup({ className, ...props }: Omit<GroupProps, 'className'> & {
|
|
69
|
+
className?: string;
|
|
70
|
+
}): import("react").JSX.Element;
|
|
71
|
+
export declare function InputPrefix({ className, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
72
|
+
export declare function InputSuffix({ className, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
73
|
+
export { Header };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type HTMLAttributes, type InputHTMLAttributes, type ButtonHTMLAttributes, type ReactNode, type RefObject } from 'react';
|
|
2
|
+
import { type ButtonProps } from 'react-aria-components/Button';
|
|
3
|
+
import { type PopoverProps } from 'react-aria-components/Popover';
|
|
4
|
+
import type { DateRange } from './date-range-model.js';
|
|
5
|
+
export interface DateRangeCompositionContextValue {
|
|
6
|
+
id: string;
|
|
7
|
+
text: string;
|
|
8
|
+
labels: {
|
|
9
|
+
apply: string;
|
|
10
|
+
clear: string;
|
|
11
|
+
cancel: string;
|
|
12
|
+
};
|
|
13
|
+
draft: DateRange;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
readOnly: boolean;
|
|
16
|
+
invalid: boolean;
|
|
17
|
+
feedbackId?: string;
|
|
18
|
+
min?: string;
|
|
19
|
+
max?: string;
|
|
20
|
+
dir?: 'ltr' | 'rtl';
|
|
21
|
+
trigger: RefObject<HTMLButtonElement | null>;
|
|
22
|
+
calendar: ReactNode;
|
|
23
|
+
panel: ReactNode;
|
|
24
|
+
edit: (part: 'start' | 'end', value: string) => void;
|
|
25
|
+
apply: () => void;
|
|
26
|
+
clear: () => void;
|
|
27
|
+
cancel: () => void;
|
|
28
|
+
}
|
|
29
|
+
export declare const DateRangeCompositionContext: import("react").Context<DateRangeCompositionContextValue | null>;
|
|
30
|
+
export declare function DateRangeTrigger({ className, children, ...props }: Omit<ButtonProps, 'className'> & {
|
|
31
|
+
className?: string;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
33
|
+
export declare function DateRangeValue({ className, children, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
34
|
+
export declare function DateRangeIndicator({ className, children, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
35
|
+
export declare function DateRangePopover({ className, children, ...props }: Omit<PopoverProps, 'className'> & {
|
|
36
|
+
className?: string;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
38
|
+
/** Render the standard model-bound panel, or compose a custom panel through children. */
|
|
39
|
+
export declare function DateRangeContent({ className, children, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
40
|
+
export declare function DateRangeCalendar({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
41
|
+
export declare function DateRangeInput({ part, className, onChange, ...props }: Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'defaultValue'> & {
|
|
42
|
+
part: 'start' | 'end';
|
|
43
|
+
}): import("react").JSX.Element;
|
|
44
|
+
export declare function DateRangeApplyButton({ className, onClick, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>): import("react").JSX.Element;
|
|
45
|
+
export declare function DateRangeClearButton({ className, onClick, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>): import("react").JSX.Element;
|
|
46
|
+
export declare function DateRangeCancelButton({ className, onClick, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>): import("react").JSX.Element;
|
|
@@ -27,7 +27,9 @@ export interface DateRangeOptions extends DateRangeConstraints {
|
|
|
27
27
|
dir?: 'ltr' | 'rtl';
|
|
28
28
|
visibleMonths?: 1 | 2;
|
|
29
29
|
weekStartsOn?: 0 | 1;
|
|
30
|
-
display?: 'popover' | 'inline';
|
|
30
|
+
display?: 'popover' | 'inline' | 'dialog' | 'auto';
|
|
31
|
+
commitMode?: 'apply' | 'immediate';
|
|
32
|
+
showActions?: boolean;
|
|
31
33
|
showInputs?: boolean;
|
|
32
34
|
showMonthYearPicker?: boolean;
|
|
33
35
|
triggerDisplay?: 'text' | 'icon';
|
package/dist/types/field.d.ts
CHANGED
|
@@ -3,7 +3,12 @@ export interface FieldFeedbackProps {
|
|
|
3
3
|
errorMessage?: string;
|
|
4
4
|
isInvalid?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare function useFeedback({ description, errorMessage, isInvalid }: FieldFeedbackProps
|
|
6
|
+
export declare function useFeedback({ description, errorMessage, isInvalid, classNames, }: FieldFeedbackProps & {
|
|
7
|
+
classNames?: {
|
|
8
|
+
description?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
};
|
|
11
|
+
}): {
|
|
7
12
|
describedBy: string | undefined;
|
|
8
13
|
feedback: import("react").JSX.Element;
|
|
9
14
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -36,7 +36,12 @@ export type { NumberFieldProps } from './NumberField.js';
|
|
|
36
36
|
export { Card } from './Card.js';
|
|
37
37
|
export type { CardProps } from './Card.js';
|
|
38
38
|
export { Badge } from './Badge.js';
|
|
39
|
-
export type { BadgeProps, BadgeTone } from './Badge.js';
|
|
39
|
+
export type { BadgeProps, BadgeTone, BadgeVariant } from './Badge.js';
|
|
40
|
+
export { Avatar, AvatarRoot, AvatarImage, AvatarFallback, AvatarBadge } from './Avatar.js';
|
|
41
|
+
export type { AvatarProps, AvatarImageProps, AvatarFallbackProps, AvatarBadgeProps, } from './Avatar.js';
|
|
42
|
+
export { AvatarGroup, AvatarGroupRoot, AvatarGroupCount } from './AvatarGroup.js';
|
|
43
|
+
export type { AvatarGroupProps } from './AvatarGroup.js';
|
|
44
|
+
export type { Tone, ComponentSize, IndicatorPlacement, AvatarVariant, ImageLoadingStatus, } from './visual.js';
|
|
40
45
|
export { Skeleton } from './Skeleton.js';
|
|
41
46
|
export type { SkeletonProps } from './Skeleton.js';
|
|
42
47
|
export { Separator } from './Separator.js';
|
|
@@ -85,3 +90,43 @@ export { ToastProvider, Toast, useToast } from './Toast.js';
|
|
|
85
90
|
export type { ToastProviderProps, ToastProps } from './Toast.js';
|
|
86
91
|
export { createToastManager } from './toast-model.js';
|
|
87
92
|
export type { ToastTone, ToastPlacement, ToastCloseReason, ToastAction, ToastOptions, ToastEntry, ToastManagerOptions, ToastPromiseMessages, ToastManager, } from './toast-model.js';
|
|
93
|
+
export type { StylingProps } from './styling.js';
|
|
94
|
+
export { ListBox, Description, FieldError, Header } from './control-composition.js';
|
|
95
|
+
export type { SelectCompositionProps, InputCompositionProps } from './control-composition.js';
|
|
96
|
+
export type { CheckboxCompositionProps, SwitchCompositionProps, RadioGroupCompositionProps, } from './choice-composition.js';
|
|
97
|
+
export type { NumberFieldCompositionProps } from './number-composition.js';
|
|
98
|
+
export type { ComboboxCompositionProps } from './combobox-composition.js';
|
|
99
|
+
export { CardRoot, CardHeader, CardHeading, CardTitleRow, CardTitle, CardDescription, CardActions, CardContent, CardFooter, } from './Card.js';
|
|
100
|
+
export type { CardPart } from './Card.js';
|
|
101
|
+
export { TabsRoot, TabsListContainer, TabsList, TabsTab, TabsPanel, TabsIndicator, TabsSeparator, } from './Tabs.js';
|
|
102
|
+
export type { TabsPart, TabsRootProps } from './Tabs.js';
|
|
103
|
+
export { PaginationRoot, PaginationPageButton, PaginationPrevious, PaginationNext, PaginationSummary, PaginationContent, PaginationItem, PaginationEllipsis, } from './Pagination.js';
|
|
104
|
+
export type { PaginationPart, PaginationRootProps } from './Pagination.js';
|
|
105
|
+
export { BreadcrumbRoot, BreadcrumbList, BreadcrumbItemPart, BreadcrumbLink, BreadcrumbCurrent, BreadcrumbSeparator, } from './Breadcrumb.js';
|
|
106
|
+
export type { BreadcrumbPart } from './Breadcrumb.js';
|
|
107
|
+
export { AlertTitle, AlertDescription, AlertContent, AlertActions, AlertIndicator, } from './Alert.js';
|
|
108
|
+
export type { AlertPart } from './Alert.js';
|
|
109
|
+
export type { EmptyPart } from './Empty.js';
|
|
110
|
+
export type { SidebarPart } from './Sidebar.js';
|
|
111
|
+
export type { ChartPart } from './Chart.js';
|
|
112
|
+
export type { DataTablePart } from './DataTable.js';
|
|
113
|
+
export { DialogRoot, DialogTriggerPart, DialogBackdrop as DialogBackdropPart, DialogPanel, DialogContent, OverlayHeader, OverlayBody, OverlayFooter, OverlayHeading, OverlayDescription, DialogCloseButton, PopoverTrigger, PopoverContent, PopoverDialog, PopoverCloseButton, TooltipRoot, TooltipTriggerPart, TooltipContent, DropdownRoot, DropdownTrigger, DropdownPopover, DropdownList, DropdownItem, DropdownSection, DropdownHeading, DropdownSeparator, TableRoot, TableScrollContainer, TableHeader, TableBody, TableFooter, TableRow, TableColumn, TableCell, TableCaption, } from './structural-parts.js';
|
|
114
|
+
export type { DialogRootProps, TooltipRootProps, DropdownRootProps } from './structural-parts.js';
|
|
115
|
+
export { EmptyRoot, EmptyTitle, EmptyDescription, EmptyActions, SidebarRoot, SidebarHeader, SidebarTitle, SidebarToggle, SidebarNavigation, SidebarList, SidebarItem, SidebarLink, ChartRoot, ChartTitle, ChartDescription, ChartPlot, DataTableRoot, DataTableSortButton, DataTableStatus, DataTableError, } from './layout-parts.js';
|
|
116
|
+
export type { SidebarRootProps, DataTableRootProps } from './layout-parts.js';
|
|
117
|
+
export { ToastRoot, ToastIndicator, ToastBody, ToastTitle, ToastDescription, ToastActions, ToastActionButton, ToastCloseButton, ToastProgress, } from './Toast.js';
|
|
118
|
+
export { DropdownItemIndicator, DropdownSubmenuTrigger, DropdownSubmenuIndicator, } from './structural-parts.js';
|
|
119
|
+
export { DataTableColumn as DataTableColumnPart, DataTableEmpty } from './layout-parts.js';
|
|
120
|
+
export { Calendar, RangeCalendar, MonthPicker, YearPicker, MonthYearNavigation, } from './Calendar.js';
|
|
121
|
+
export type { CalendarProps, RangeCalendarProps, MonthPickerProps, YearPickerProps, MonthYearNavigationProps, } from './Calendar.js';
|
|
122
|
+
export { DateField, TimeField, DateTimeField, DateRangeField, TimeRangeField, DateTimeRangeField, } from './TemporalField.js';
|
|
123
|
+
export type { TemporalFieldProps, TemporalRangeFieldProps } from './TemporalField.js';
|
|
124
|
+
export { TimeList, TimeClock } from './TimeControls.js';
|
|
125
|
+
export type { TimeControlProps } from './TimeControls.js';
|
|
126
|
+
export { DatePicker, TimePicker, TimeRangePicker, DateTimePicker, DateTimeRangePicker, } from './TemporalPicker.js';
|
|
127
|
+
export type { TemporalPickerProps, TemporalPickerOptions, TemporalPreset, TemporalValue, } from './TemporalPicker.js';
|
|
128
|
+
export type { TemporalConstraints, TemporalRange, TemporalKind, TemporalError, } from './temporal-model.js';
|
|
129
|
+
export { SwitchGroup } from './switch-visual.js';
|
|
130
|
+
export type { SwitchVisualProps } from './switch-visual.js';
|
|
131
|
+
export { InputClearButton } from './input-clear.js';
|
|
132
|
+
export type { CardInteractionProps } from './Card.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type RefObject, type ButtonHTMLAttributes } from 'react';
|
|
2
|
+
export declare const InputClearContext: import("react").Context<{
|
|
3
|
+
value: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
clear: () => void;
|
|
7
|
+
} | null>;
|
|
8
|
+
export declare function useClearableInput({ value, defaultValue, onChange, isDisabled, isReadOnly, }: {
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
isReadOnly?: boolean;
|
|
14
|
+
}, element: RefObject<HTMLElement | null>): {
|
|
15
|
+
value: string;
|
|
16
|
+
update: (next: string) => void;
|
|
17
|
+
context: {
|
|
18
|
+
value: string;
|
|
19
|
+
disabled: boolean | undefined;
|
|
20
|
+
readOnly: boolean | undefined;
|
|
21
|
+
clear: () => void;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare function InputClearButton({ className, children, onClick, ...props }: ButtonHTMLAttributes<HTMLButtonElement>): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Item labels use Text slots rather than introducing native label elements. */
|
|
2
|
+
export declare const ItemLabelContext: import("react").Context<boolean>;
|
|
3
|
+
/** Field feedback parts share styling without coupling labels to a specific control. */
|
|
4
|
+
export declare const FieldPartClassesContext: import("react").Context<{
|
|
5
|
+
label?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type HTMLAttributes, type AnchorHTMLAttributes, type ButtonHTMLAttributes, type SVGAttributes, type ThHTMLAttributes, type TdHTMLAttributes } from 'react';
|
|
2
|
+
import type { TableSort } from './data-table-types.js';
|
|
3
|
+
export declare function EmptyRoot({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
4
|
+
export declare function EmptyTitle({ className, headingLevel, ...props }: HTMLAttributes<HTMLHeadingElement> & {
|
|
5
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
export declare function EmptyDescription({ className, ...props }: HTMLAttributes<HTMLParagraphElement>): import("react").JSX.Element;
|
|
8
|
+
export declare function EmptyActions({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
9
|
+
export interface SidebarRootProps extends HTMLAttributes<HTMLElement> {
|
|
10
|
+
label: string;
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
onOpenChange?: (open: boolean) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function SidebarRoot({ label, open, defaultOpen, onOpenChange, id, className, ...props }: SidebarRootProps): import("react").JSX.Element;
|
|
16
|
+
export declare function SidebarHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
17
|
+
export declare function SidebarTitle({ className, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
18
|
+
export declare function SidebarToggle({ className, onClick, ...props }: ButtonHTMLAttributes<HTMLButtonElement>): import("react").JSX.Element;
|
|
19
|
+
export declare function SidebarNavigation(props: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
20
|
+
export declare function SidebarList(props: HTMLAttributes<HTMLUListElement>): import("react").JSX.Element;
|
|
21
|
+
export declare function SidebarItem(props: HTMLAttributes<HTMLLIElement>): import("react").JSX.Element;
|
|
22
|
+
export declare function SidebarLink({ className, isDisabled, href, onClick, children, ...props }: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
23
|
+
isDisabled?: boolean;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
25
|
+
export declare function ChartRoot({ className, ...props }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
26
|
+
export declare function ChartTitle({ className, ...props }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
27
|
+
export declare function ChartDescription({ className, ...props }: HTMLAttributes<HTMLParagraphElement>): import("react").JSX.Element;
|
|
28
|
+
export declare function ChartPlot({ className, ...props }: SVGAttributes<SVGSVGElement>): import("react").JSX.Element;
|
|
29
|
+
export interface DataTableRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
sort?: TableSort | null;
|
|
31
|
+
onSortChange?: (sort: TableSort) => void;
|
|
32
|
+
isLoading?: boolean;
|
|
33
|
+
isDisabled?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare function DataTableRoot({ sort, onSortChange, isLoading, isDisabled, className, ...props }: DataTableRootProps): import("react").JSX.Element;
|
|
36
|
+
export declare function DataTableSortButton({ columnId, className, onClick, disabled, ...props }: ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
37
|
+
columnId: string;
|
|
38
|
+
}): import("react").JSX.Element;
|
|
39
|
+
export declare function DataTableColumn({ columnId, scope, ...props }: ThHTMLAttributes<HTMLTableCellElement> & {
|
|
40
|
+
columnId?: string;
|
|
41
|
+
}): import("react").JSX.Element;
|
|
42
|
+
export declare function DataTableEmpty({ className, ...props }: TdHTMLAttributes<HTMLTableCellElement>): import("react").JSX.Element;
|
|
43
|
+
export declare function DataTableStatus({ className, ...props }: HTMLAttributes<HTMLParagraphElement>): import("react").JSX.Element;
|
|
44
|
+
export declare function DataTableError({ className, ...props }: HTMLAttributes<HTMLParagraphElement>): import("react").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type NumberFieldProps as AriaNumberFieldProps, type GroupProps, type InputProps, type ButtonProps } from 'react-aria-components/NumberField';
|
|
2
|
+
export type NumberFieldCompositionProps = Omit<AriaNumberFieldProps, 'className' | 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue'> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
label?: never;
|
|
5
|
+
locale?: string;
|
|
6
|
+
value?: number | null;
|
|
7
|
+
defaultValue?: number | null;
|
|
8
|
+
onChange?: (value: number | null) => void;
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function NumberFieldComposition({ className, locale, value, defaultValue, onChange, min, max, ...props }: NumberFieldCompositionProps): import("react").JSX.Element;
|
|
13
|
+
export declare function NumberFieldGroup({ className, ...props }: Omit<GroupProps, 'className'> & {
|
|
14
|
+
className?: string;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
export declare function NumberFieldInput({ className, ...props }: Omit<InputProps, 'className'> & {
|
|
17
|
+
className?: string;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export declare function NumberFieldIncrement({ className, ...props }: Omit<ButtonProps, 'className' | 'slot'> & {
|
|
20
|
+
className?: string;
|
|
21
|
+
}): import("react").JSX.Element;
|
|
22
|
+
export declare function NumberFieldDecrement({ className, ...props }: Omit<ButtonProps, 'className' | 'slot'> & {
|
|
23
|
+
className?: string;
|
|
24
|
+
}): import("react").JSX.Element;
|