@jfrader/ui 0.1.2 → 0.2.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 +1 -1
- package/dist/accordion-CkOZ-tvs.js +178 -0
- package/dist/accordion.js +1 -1
- package/dist/alert-Dsjx14UW.js +131 -0
- package/dist/alert.js +1 -1
- package/dist/avatar-BRGKkoSr.js +127 -0
- package/dist/avatar.js +1 -1
- package/dist/badge-DLxUMsCx.js +104 -0
- package/dist/badge.js +1 -1
- package/dist/breadcrumbs-694hF_hm.js +131 -0
- package/dist/breadcrumbs.js +1 -1
- package/dist/button-CoaIcykB.js +190 -0
- package/dist/button.js +1 -1
- package/dist/calendar-Doj7PTdG.js +379 -0
- package/dist/calendar.js +1 -1
- package/dist/card-2IM71XZj.js +134 -0
- package/dist/card.js +1 -1
- package/dist/checkbox-B7xGNFzp.js +136 -0
- package/dist/checkbox.js +1 -1
- package/dist/combobox-Bjhxv5U3.js +311 -0
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-6c158eH1.js → command-palette-BhJwm6cS.js} +144 -129
- package/dist/command-palette.js +1 -1
- package/dist/container-BhnrGPu-.js +36 -0
- package/dist/container.js +1 -1
- package/dist/date-picker-Jk8SpoiO.js +245 -0
- package/dist/date-picker.js +1 -1
- package/dist/dialog-fhS07G41.js +187 -0
- package/dist/dialog.js +1 -1
- package/dist/divider-v_78HYF5.js +79 -0
- package/dist/divider.js +1 -1
- package/dist/flex-COZzFqI8.js +22 -0
- package/dist/flex.js +1 -1
- package/dist/index.js +36 -36
- package/dist/kbd-CeP8Kfvp.js +61 -0
- package/dist/kbd.js +1 -1
- package/dist/menu-B6KCbLCr.js +196 -0
- package/dist/menu.js +1 -1
- package/dist/navigation-BDht6S2-.js +182 -0
- package/dist/navigation.js +1 -1
- package/dist/{pagination-BIKYsxK1.js → pagination-B50PCaDU.js} +58 -56
- package/dist/pagination.js +1 -1
- package/dist/pill-2_XzBdkD.js +51 -0
- package/dist/pill.js +1 -1
- package/dist/popover-DRHbeIVq.js +103 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-C8bgujFI.js → progress-CpsskKTD.js} +37 -36
- package/dist/progress.js +1 -1
- package/dist/radio-group-DPI5KUCj.js +136 -0
- package/dist/radio-group.js +1 -1
- package/dist/select-C1xGrOhT.js +266 -0
- package/dist/select.js +1 -1
- package/dist/skeleton-DitdP-yz.js +49 -0
- package/dist/skeleton.js +1 -1
- package/dist/{spinner-CSFiP0Oi.js → spinner-CFq5HPoo.js} +24 -23
- package/dist/spinner.js +1 -1
- package/dist/stack-D_g6NJzo.js +21 -0
- package/dist/stack.js +1 -1
- package/dist/switch-B5TTU-oJ.js +138 -0
- package/dist/switch.js +1 -1
- package/dist/tabs-C26PWl2c.js +183 -0
- package/dist/tabs.js +1 -1
- package/dist/text-field-8PQAqRpM.js +75 -0
- package/dist/text-field.js +1 -1
- package/dist/textarea-CcGWuntL.js +85 -0
- package/dist/textarea.js +1 -1
- package/dist/theme-root-BRLIA4eb.js +22 -0
- package/dist/theme-root.js +1 -1
- package/dist/toast-B1PXuwZ4.js +277 -0
- package/dist/toast.js +1 -1
- package/dist/toggle-group-N_owicT0.js +156 -0
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip-BJPisf60.js +98 -0
- package/dist/tooltip.js +1 -1
- package/dist/types/components/accordion/accordion.d.ts +13 -9
- package/dist/types/components/alert/alert.d.ts +6 -3
- package/dist/types/components/avatar/avatar.d.ts +6 -3
- package/dist/types/components/badge/badge.d.ts +6 -3
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +8 -5
- package/dist/types/components/button/button.d.ts +6 -3
- package/dist/types/components/calendar/calendar.d.ts +11 -7
- package/dist/types/components/card/card.d.ts +20 -13
- package/dist/types/components/checkbox/checkbox.d.ts +6 -3
- package/dist/types/components/combobox/combobox.d.ts +12 -8
- package/dist/types/components/command-palette/command-palette.d.ts +22 -15
- package/dist/types/components/container/container.d.ts +6 -3
- package/dist/types/components/date-picker/date-picker.d.ts +6 -4
- package/dist/types/components/dialog/dialog.d.ts +16 -11
- package/dist/types/components/divider/divider.d.ts +6 -3
- package/dist/types/components/flex/flex.d.ts +6 -3
- package/dist/types/components/kbd/kbd.d.ts +8 -5
- package/dist/types/components/menu/menu.d.ts +13 -9
- package/dist/types/components/navigation/navigation.d.ts +11 -7
- package/dist/types/components/pagination/pagination.d.ts +6 -3
- package/dist/types/components/pill/pill.d.ts +6 -3
- package/dist/types/components/popover/popover.d.ts +7 -5
- package/dist/types/components/progress/progress.d.ts +6 -3
- package/dist/types/components/radio-group/radio-group.d.ts +8 -5
- package/dist/types/components/select/select.d.ts +13 -9
- package/dist/types/components/skeleton/skeleton.d.ts +6 -3
- package/dist/types/components/spinner/spinner.d.ts +6 -3
- package/dist/types/components/stack/stack.d.ts +4 -1
- package/dist/types/components/switch/switch.d.ts +6 -3
- package/dist/types/components/tabs/tabs.d.ts +14 -9
- package/dist/types/components/text-field/text-field.d.ts +6 -3
- package/dist/types/components/textarea/textarea.d.ts +6 -3
- package/dist/types/components/theme-root/theme-root.d.ts +6 -3
- package/dist/types/components/toast/toast.d.ts +6 -4
- package/dist/types/components/toggle-group/toggle-group.d.ts +7 -5
- package/dist/types/components/tooltip/tooltip.d.ts +7 -5
- package/dist/types/overlay/use-native-dialog.d.ts +2 -2
- package/package.json +4 -4
- package/dist/accordion-C3YbYFBi.js +0 -169
- package/dist/alert-CA9ZlIZp.js +0 -130
- package/dist/avatar-IUW4yJl0.js +0 -125
- package/dist/badge-Bru30HEn.js +0 -103
- package/dist/breadcrumbs-CQaviWRc.js +0 -126
- package/dist/button-Cmixur4Q.js +0 -188
- package/dist/calendar-DUgS0xmp.js +0 -373
- package/dist/card-D9CHtouU.js +0 -121
- package/dist/checkbox-DKa5BCdy.js +0 -135
- package/dist/combobox-Dq3V88Zt.js +0 -302
- package/dist/container-xUEIoZzj.js +0 -35
- package/dist/date-picker-DrHJMt2p.js +0 -240
- package/dist/dialog-C2NSOOP-.js +0 -176
- package/dist/divider-yF5EmhhT.js +0 -77
- package/dist/flex-5-NI5SSy.js +0 -22
- package/dist/kbd-B03_qIwQ.js +0 -56
- package/dist/menu-bvKRJOhJ.js +0 -187
- package/dist/navigation-xPoqh_Iz.js +0 -175
- package/dist/pill-CrVqffKM.js +0 -50
- package/dist/popover-CVAZ_C1a.js +0 -98
- package/dist/radio-group-CvQ4x8ii.js +0 -131
- package/dist/select-CNNiUhKB.js +0 -257
- package/dist/skeleton-gJ4ImO5u.js +0 -48
- package/dist/stack-mEAryjKz.js +0 -21
- package/dist/switch-2hm2WnWt.js +0 -136
- package/dist/tabs-GBppQabg.js +0 -174
- package/dist/text-field-DDPqQu29.js +0 -74
- package/dist/textarea-OP8_3IUR.js +0 -84
- package/dist/theme-root-eLka0ZP1.js +0 -21
- package/dist/toast-D3Y6OAsg.js +0 -271
- package/dist/toggle-group-BxzJ-6Cp.js +0 -151
- package/dist/tooltip-CVl8HS4S.js +0 -93
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ButtonHTMLAttributes, type ReactNode, type RefCallback } from 'react';
|
|
1
|
+
import { type ButtonHTMLAttributes, type ComponentPropsWithRef, type ReactNode, type RefCallback } from 'react';
|
|
2
2
|
import { type Interpolation, type Theme } from '../../styling/css';
|
|
3
3
|
export type ButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost';
|
|
4
4
|
export type ButtonTone = 'neutral' | 'accent' | 'danger';
|
|
@@ -9,7 +9,7 @@ export interface ButtonRenderProps extends Omit<ButtonHTMLAttributes<HTMLElement
|
|
|
9
9
|
css: Interpolation<Theme>;
|
|
10
10
|
'data-ui': string;
|
|
11
11
|
}
|
|
12
|
-
export interface ButtonProps extends Omit<
|
|
12
|
+
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'color'> {
|
|
13
13
|
variant?: ButtonVariant;
|
|
14
14
|
tone?: ButtonTone;
|
|
15
15
|
size?: ButtonSize;
|
|
@@ -31,4 +31,7 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
|
|
|
31
31
|
*/
|
|
32
32
|
render?: (props: ButtonRenderProps) => ReactNode;
|
|
33
33
|
}
|
|
34
|
-
export declare
|
|
34
|
+
export declare function Button({ ref, variant, tone, size, loading, startIcon, endIcon, type, children, onClick, css: cssProp, render, ...props }: ButtonProps): string | number | bigint | boolean | import("@emotion/react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
35
|
+
export declare namespace Button {
|
|
36
|
+
var displayName: string;
|
|
37
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef } from 'react';
|
|
2
2
|
/** Day of the week as counted by `Date#getUTCDay`: 0 is Sunday, 6 is Saturday. */
|
|
3
3
|
export type CalendarWeekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
-
export interface CalendarProps extends Omit<
|
|
4
|
+
export interface CalendarProps extends Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'onChange'> {
|
|
5
5
|
/** Selected date, 'YYYY-MM-DD'. */
|
|
6
6
|
value?: string;
|
|
7
7
|
defaultValue?: string;
|
|
@@ -20,9 +20,13 @@ export interface CalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'def
|
|
|
20
20
|
firstDayOfWeek?: CalendarWeekday;
|
|
21
21
|
}
|
|
22
22
|
/** The header renders its own month buttons and label. */
|
|
23
|
-
export type CalendarHeaderProps = Omit<
|
|
24
|
-
export type CalendarGridProps =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
export type CalendarHeaderProps = Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
24
|
+
export type CalendarGridProps = ComponentPropsWithRef<'table'>;
|
|
25
|
+
declare function CalendarRoot({ ref, value: valueProp, defaultValue, onValueChange, visibleMonth: visibleMonthProp, defaultVisibleMonth, onVisibleMonthChange, min: minProp, max: maxProp, locale: localeProp, firstDayOfWeek: firstDayOfWeekProp, ...rest }: CalendarProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function CalendarHeader({ ref, ...props }: CalendarHeaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function CalendarGrid({ ref, onKeyDown, 'aria-labelledby': ariaLabelledByProp, 'aria-label': ariaLabelProp, ...rest }: CalendarGridProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const Calendar: typeof CalendarRoot & {
|
|
29
|
+
Header: typeof CalendarHeader;
|
|
30
|
+
Grid: typeof CalendarGrid;
|
|
28
31
|
};
|
|
32
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { type Interpolation, type Theme } from '../../styling/css';
|
|
3
3
|
export type CardVariant = 'flat' | 'raised';
|
|
4
4
|
export type CardHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
@@ -14,21 +14,28 @@ export interface CardSlotProps {
|
|
|
14
14
|
content?: CardPartProps;
|
|
15
15
|
footer?: CardPartProps;
|
|
16
16
|
}
|
|
17
|
-
export interface CardProps extends
|
|
17
|
+
export interface CardProps extends ComponentPropsWithRef<'div'> {
|
|
18
18
|
variant?: CardVariant;
|
|
19
19
|
slotProps?: CardSlotProps;
|
|
20
20
|
}
|
|
21
|
-
export type CardHeaderProps =
|
|
22
|
-
export interface CardTitleProps extends
|
|
21
|
+
export type CardHeaderProps = ComponentPropsWithRef<'div'>;
|
|
22
|
+
export interface CardTitleProps extends ComponentPropsWithRef<'h3'> {
|
|
23
23
|
level?: CardHeadingLevel;
|
|
24
24
|
}
|
|
25
|
-
export type CardDescriptionProps =
|
|
26
|
-
export type CardContentProps =
|
|
27
|
-
export type CardFooterProps =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
export type CardDescriptionProps = ComponentPropsWithRef<'p'>;
|
|
26
|
+
export type CardContentProps = ComponentPropsWithRef<'div'>;
|
|
27
|
+
export type CardFooterProps = ComponentPropsWithRef<'div'>;
|
|
28
|
+
declare function CardRoot({ ref, variant, slotProps, className, ...rest }: CardProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function CardHeader({ ref, className, ...rest }: CardHeaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function CardTitle({ ref, level, className, ...rest }: CardTitleProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function CardDescription({ ref, className, ...rest }: CardDescriptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function CardContent({ ref, className, ...rest }: CardContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function CardFooter({ ref, className, ...rest }: CardFooterProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const Card: typeof CardRoot & {
|
|
35
|
+
Header: typeof CardHeader;
|
|
36
|
+
Title: typeof CardTitle;
|
|
37
|
+
Description: typeof CardDescription;
|
|
38
|
+
Content: typeof CardContent;
|
|
39
|
+
Footer: typeof CardFooter;
|
|
34
40
|
};
|
|
41
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
2
|
import { type Interpolation, type Theme } from '../../styling/css';
|
|
3
3
|
export type CheckboxSize = 'sm' | 'md';
|
|
4
4
|
export interface CheckboxPartProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
css?: Interpolation<Theme>;
|
|
7
7
|
}
|
|
8
|
-
export interface CheckboxProps extends Omit<
|
|
8
|
+
export interface CheckboxProps extends Omit<ComponentPropsWithRef<'input'>, 'size' | 'type'> {
|
|
9
9
|
label?: ReactNode;
|
|
10
10
|
description?: ReactNode;
|
|
11
11
|
indeterminate?: boolean;
|
|
@@ -18,4 +18,7 @@ export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement
|
|
|
18
18
|
description?: CheckboxPartProps;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
export declare
|
|
21
|
+
export declare function Checkbox({ ref, label, description, indeterminate, size, onChange, onCheckedChange, slotProps, className, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, ...rest }: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare namespace Checkbox {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
2
|
import { type TextFieldProps } from '../text-field';
|
|
3
3
|
export interface ComboboxProps {
|
|
4
4
|
/** `null` is the controlled "nothing selected" state. */
|
|
@@ -25,20 +25,24 @@ export interface ComboboxInputProps extends Omit<TextFieldProps, 'value' | 'defa
|
|
|
25
25
|
/** Initial input text; when set, it filters the options from the first render. */
|
|
26
26
|
defaultInputValue?: string;
|
|
27
27
|
}
|
|
28
|
-
export interface ComboboxListProps extends
|
|
28
|
+
export interface ComboboxListProps extends ComponentPropsWithRef<'div'> {
|
|
29
29
|
}
|
|
30
|
-
export interface ComboboxItemProps extends
|
|
30
|
+
export interface ComboboxItemProps extends ComponentPropsWithRef<'div'> {
|
|
31
31
|
/** Unique within the combobox. */
|
|
32
32
|
value: string;
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
}
|
|
35
|
-
export interface ComboboxEmptyProps extends
|
|
35
|
+
export interface ComboboxEmptyProps extends ComponentPropsWithRef<'div'> {
|
|
36
36
|
}
|
|
37
37
|
declare function ComboboxRoot({ value: valueProp, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, name, filter, onInputChange, children, }: ComboboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
38
|
+
declare function ComboboxInput({ ref, inputValue, defaultInputValue, label, description, error, size, slotProps, className, id: idProp, onChange, onKeyDown, onBlur, disabled, ...rest }: ComboboxInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
|
+
declare function ComboboxList({ ref, id: idProp, style, onMouseDown, children, ...rest }: ComboboxListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare function ComboboxItem({ ref, value, disabled, onClick, children, ...rest }: ComboboxItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
41
|
+
declare function ComboboxEmpty({ ref, children, ...rest }: ComboboxEmptyProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
38
42
|
export declare const Combobox: typeof ComboboxRoot & {
|
|
39
|
-
Input:
|
|
40
|
-
List:
|
|
41
|
-
Item:
|
|
42
|
-
Empty:
|
|
43
|
+
Input: typeof ComboboxInput;
|
|
44
|
+
List: typeof ComboboxList;
|
|
45
|
+
Item: typeof ComboboxItem;
|
|
46
|
+
Empty: typeof ComboboxEmpty;
|
|
43
47
|
};
|
|
44
48
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
2
|
export interface CommandPaletteProps {
|
|
3
3
|
open?: boolean;
|
|
4
4
|
defaultOpen?: boolean;
|
|
@@ -13,21 +13,21 @@ export interface CommandPaletteProps {
|
|
|
13
13
|
formatResultCount?: (count: number) => string;
|
|
14
14
|
children?: ReactNode;
|
|
15
15
|
}
|
|
16
|
-
export interface CommandPaletteTriggerProps extends
|
|
16
|
+
export interface CommandPaletteTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
17
17
|
}
|
|
18
|
-
export interface CommandPaletteContentProps extends Omit<
|
|
18
|
+
export interface CommandPaletteContentProps extends Omit<ComponentPropsWithRef<'dialog'>, 'open'> {
|
|
19
19
|
}
|
|
20
|
-
export interface CommandPaletteInputProps extends Omit<
|
|
20
|
+
export interface CommandPaletteInputProps extends Omit<ComponentPropsWithRef<'input'>, 'value' | 'defaultValue' | 'type'> {
|
|
21
21
|
}
|
|
22
|
-
export interface CommandPaletteListProps extends
|
|
22
|
+
export interface CommandPaletteListProps extends ComponentPropsWithRef<'div'> {
|
|
23
23
|
}
|
|
24
|
-
export interface CommandPaletteEmptyProps extends
|
|
24
|
+
export interface CommandPaletteEmptyProps extends ComponentPropsWithRef<'div'> {
|
|
25
25
|
}
|
|
26
|
-
export interface CommandPaletteGroupProps extends Omit<
|
|
26
|
+
export interface CommandPaletteGroupProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
27
27
|
label: ReactNode;
|
|
28
28
|
children?: ReactNode;
|
|
29
29
|
}
|
|
30
|
-
export interface CommandPaletteItemProps extends Omit<
|
|
30
|
+
export interface CommandPaletteItemProps extends Omit<ComponentPropsWithRef<'div'>, 'onSelect'> {
|
|
31
31
|
/** Unique within the palette. */
|
|
32
32
|
value: string;
|
|
33
33
|
onSelect?: () => void;
|
|
@@ -35,13 +35,20 @@ export interface CommandPaletteItemProps extends Omit<HTMLAttributes<HTMLDivElem
|
|
|
35
35
|
keywords?: string;
|
|
36
36
|
}
|
|
37
37
|
declare function CommandPaletteRoot({ open: openProp, defaultOpen, onOpenChange, label, filter, emptyMessage, formatResultCount, children, }: CommandPaletteProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
38
|
+
declare function CommandPaletteTrigger({ ref, onClick, ...rest }: CommandPaletteTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
|
+
declare function CommandPaletteContent({ ref, ...props }: CommandPaletteContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare function CommandPaletteInput({ ref, onChange, onKeyDown, ...rest }: CommandPaletteInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
41
|
+
declare function CommandPaletteList({ ref, onMouseDown, children, ...rest }: CommandPaletteListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare function CommandPaletteEmpty({ ref, children, ...rest }: CommandPaletteEmptyProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
43
|
+
declare function CommandPaletteGroup({ ref, label, children, 'aria-labelledby': externalLabelledBy, ...rest }: CommandPaletteGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare function CommandPaletteItem({ ref, value, onSelect, keywords, onClick, children, ...rest }: CommandPaletteItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
38
45
|
export declare const CommandPalette: typeof CommandPaletteRoot & {
|
|
39
|
-
Trigger:
|
|
40
|
-
Content:
|
|
41
|
-
Input:
|
|
42
|
-
List:
|
|
43
|
-
Empty:
|
|
44
|
-
Group:
|
|
45
|
-
Item:
|
|
46
|
+
Trigger: typeof CommandPaletteTrigger;
|
|
47
|
+
Content: typeof CommandPaletteContent;
|
|
48
|
+
Input: typeof CommandPaletteInput;
|
|
49
|
+
List: typeof CommandPaletteList;
|
|
50
|
+
Empty: typeof CommandPaletteEmpty;
|
|
51
|
+
Group: typeof CommandPaletteGroup;
|
|
52
|
+
Item: typeof CommandPaletteItem;
|
|
46
53
|
};
|
|
47
54
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { type LayoutSpace } from '../../styling/layout-style';
|
|
3
3
|
export type ContainerSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
-
export interface ContainerProps extends
|
|
4
|
+
export interface ContainerProps extends ComponentPropsWithRef<'div'> {
|
|
5
5
|
size?: ContainerSize;
|
|
6
6
|
paddingInline?: LayoutSpace;
|
|
7
7
|
}
|
|
@@ -11,4 +11,7 @@ export declare const CONTAINER_MAX_INLINE_SIZE: {
|
|
|
11
11
|
readonly lg: '1024px';
|
|
12
12
|
readonly xl: '1280px';
|
|
13
13
|
};
|
|
14
|
-
export declare
|
|
14
|
+
export declare function Container({ ref, size, paddingInline, ...rest }: ContainerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace Container {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
2
|
import { type CalendarWeekday } from '../calendar';
|
|
3
3
|
import { type TextFieldProps } from '../text-field';
|
|
4
4
|
export interface DatePickerProps {
|
|
@@ -30,10 +30,12 @@ export interface DatePickerProps {
|
|
|
30
30
|
export interface DatePickerInputProps extends Omit<TextFieldProps, 'value' | 'defaultValue' | 'onValueChange' | 'onChange' | 'readOnly' | 'placeholder' | 'name' | 'type'> {
|
|
31
31
|
}
|
|
32
32
|
/** The popup renders its own calendar. */
|
|
33
|
-
export type DatePickerPopupProps = Omit<
|
|
33
|
+
export type DatePickerPopupProps = Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
34
34
|
declare function DatePickerRoot({ value: valueProp, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, min: minProp, max: maxProp, locale: localeProp, firstDayOfWeek, disabled: disabledProp, name, placeholder: placeholderProp, children, }: DatePickerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function DatePickerInput({ ref, label, id: idProp, disabled: disabledProp, slotProps, onKeyDown, onKeyUp, ...rest }: DatePickerInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function DatePickerPopup({ ref, style, ...rest }: DatePickerPopupProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
35
37
|
export declare const DatePicker: typeof DatePickerRoot & {
|
|
36
|
-
Input:
|
|
37
|
-
Popup:
|
|
38
|
+
Input: typeof DatePickerInput;
|
|
39
|
+
Popup: typeof DatePickerPopup;
|
|
38
40
|
};
|
|
39
41
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ButtonHTMLAttributes, type
|
|
1
|
+
import { type ButtonHTMLAttributes, type ComponentPropsWithRef, type ReactNode, type Ref } from 'react';
|
|
2
2
|
export interface DialogProps {
|
|
3
3
|
open?: boolean;
|
|
4
4
|
defaultOpen?: boolean;
|
|
@@ -10,7 +10,7 @@ export interface DialogPartRenderProps extends ButtonHTMLAttributes<HTMLButtonEl
|
|
|
10
10
|
ref: Ref<HTMLButtonElement>;
|
|
11
11
|
'data-ui': string;
|
|
12
12
|
}
|
|
13
|
-
export interface DialogTriggerProps extends
|
|
13
|
+
export interface DialogTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
14
14
|
/**
|
|
15
15
|
* Replaces the default button. Spread ALL supplied props onto the operative element and attach
|
|
16
16
|
* the supplied ref, including when composing through Button. The forwarded and callback refs
|
|
@@ -26,15 +26,15 @@ export interface DialogTriggerProps extends ButtonHTMLAttributes<HTMLButtonEleme
|
|
|
26
26
|
*/
|
|
27
27
|
render?: (props: DialogPartRenderProps) => ReactNode;
|
|
28
28
|
}
|
|
29
|
-
export interface DialogContentProps extends Omit<
|
|
29
|
+
export interface DialogContentProps extends Omit<ComponentPropsWithRef<'dialog'>, 'open'> {
|
|
30
30
|
/** Set false to keep structured content out of the dialog's accessible description. */
|
|
31
31
|
withDescription?: boolean;
|
|
32
32
|
}
|
|
33
|
-
export interface DialogTitleProps extends
|
|
33
|
+
export interface DialogTitleProps extends ComponentPropsWithRef<'h2'> {
|
|
34
34
|
}
|
|
35
|
-
export interface DialogDescriptionProps extends
|
|
35
|
+
export interface DialogDescriptionProps extends ComponentPropsWithRef<'p'> {
|
|
36
36
|
}
|
|
37
|
-
export interface DialogCloseProps extends
|
|
37
|
+
export interface DialogCloseProps extends ComponentPropsWithRef<'button'> {
|
|
38
38
|
/**
|
|
39
39
|
* Replaces the default button. Spread ALL supplied props onto the operative element and attach
|
|
40
40
|
* the supplied ref, including when composing through Button. The forwarded and callback refs
|
|
@@ -51,11 +51,16 @@ export interface DialogCloseProps extends ButtonHTMLAttributes<HTMLButtonElement
|
|
|
51
51
|
render?: (props: DialogPartRenderProps) => ReactNode;
|
|
52
52
|
}
|
|
53
53
|
declare function DialogRoot({ open: openProp, defaultOpen, onOpenChange, children }: DialogProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
54
|
+
declare function DialogTrigger({ ref, onClick, render, ...rest }: DialogTriggerProps): string | number | bigint | boolean | import("@emotion/react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
55
|
+
declare function DialogContent({ ref, ...props }: DialogContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
56
|
+
declare function DialogTitle({ ref, ...props }: DialogTitleProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
57
|
+
declare function DialogDescription({ ref, ...props }: DialogDescriptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
58
|
+
declare function DialogClose({ ref, onClick, render, ...rest }: DialogCloseProps): string | number | bigint | boolean | import("@emotion/react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
54
59
|
export declare const Dialog: typeof DialogRoot & {
|
|
55
|
-
Trigger:
|
|
56
|
-
Content:
|
|
57
|
-
Title:
|
|
58
|
-
Description:
|
|
59
|
-
Close:
|
|
60
|
+
Trigger: typeof DialogTrigger;
|
|
61
|
+
Content: typeof DialogContent;
|
|
62
|
+
Title: typeof DialogTitle;
|
|
63
|
+
Description: typeof DialogDescription;
|
|
64
|
+
Close: typeof DialogClose;
|
|
60
65
|
};
|
|
61
66
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type ReactNode, type RefAttributes } from 'react';
|
|
2
2
|
export type DividerOrientation = 'horizontal' | 'vertical';
|
|
3
|
-
type DividerBaseProps = Omit<HTMLAttributes<HTMLElement>, 'children' | 'role' | 'aria-orientation'>;
|
|
3
|
+
type DividerBaseProps = Omit<HTMLAttributes<HTMLElement>, 'children' | 'role' | 'aria-orientation'> & RefAttributes<HTMLElement>;
|
|
4
4
|
export interface DividerHorizontalProps extends DividerBaseProps {
|
|
5
5
|
orientation?: 'horizontal';
|
|
6
6
|
label?: ReactNode;
|
|
@@ -10,5 +10,8 @@ export interface DividerVerticalProps extends DividerBaseProps {
|
|
|
10
10
|
label?: never;
|
|
11
11
|
}
|
|
12
12
|
export type DividerProps = DividerHorizontalProps | DividerVerticalProps;
|
|
13
|
-
export declare
|
|
13
|
+
export declare function Divider({ ref, orientation, label, 'aria-labelledby': ariaLabelledBy, ...rest }: DividerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare namespace Divider {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
14
17
|
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { type LayoutProps } from '../../styling/layout-style';
|
|
3
|
-
export type FlexProps =
|
|
4
|
-
export declare
|
|
3
|
+
export type FlexProps = ComponentPropsWithRef<'div'> & LayoutProps;
|
|
4
|
+
export declare function Flex({ ref, direction, wrap, inline, align, justify, gap, ...rest }: FlexProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace Flex {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export type KbdProps =
|
|
3
|
-
export type KbdGroupProps =
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type ComponentPropsWithRef } from 'react';
|
|
2
|
+
export type KbdProps = ComponentPropsWithRef<'kbd'>;
|
|
3
|
+
export type KbdGroupProps = ComponentPropsWithRef<'span'>;
|
|
4
|
+
declare function KbdRoot({ ref, ...props }: KbdProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function KbdGroup({ ref, children, ...rest }: KbdGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const Kbd: typeof KbdRoot & {
|
|
7
|
+
Group: typeof KbdGroup;
|
|
6
8
|
};
|
|
9
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
2
|
import { type Placement } from '@floating-ui/react';
|
|
3
3
|
export interface MenuProps {
|
|
4
4
|
open?: boolean;
|
|
@@ -7,23 +7,27 @@ export interface MenuProps {
|
|
|
7
7
|
placement?: Placement;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export interface MenuTriggerProps extends
|
|
10
|
+
export interface MenuTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
11
11
|
}
|
|
12
|
-
export interface MenuContentProps extends
|
|
12
|
+
export interface MenuContentProps extends ComponentPropsWithRef<'div'> {
|
|
13
13
|
}
|
|
14
|
-
export interface MenuItemProps extends Omit<
|
|
14
|
+
export interface MenuItemProps extends Omit<ComponentPropsWithRef<'button'>, 'onSelect'> {
|
|
15
15
|
/** Called when the item is activated. The menu then closes unless a click handler called
|
|
16
16
|
* `event.preventDefault()`. */
|
|
17
17
|
onSelect?: () => void;
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
}
|
|
20
|
-
export interface MenuSeparatorProps extends
|
|
20
|
+
export interface MenuSeparatorProps extends ComponentPropsWithRef<'div'> {
|
|
21
21
|
}
|
|
22
22
|
declare function MenuRoot({ open: openProp, defaultOpen, onOpenChange, placement, children, }: MenuProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function MenuTrigger({ ref, ...props }: MenuTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function MenuContent({ ref, style, children, ...rest }: MenuContentProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
declare function MenuItem({ ref, onSelect, disabled, onClick, ...rest }: MenuItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function MenuSeparator({ ref, ...props }: MenuSeparatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
27
|
export declare const Menu: typeof MenuRoot & {
|
|
24
|
-
Trigger:
|
|
25
|
-
Content:
|
|
26
|
-
Item:
|
|
27
|
-
Separator:
|
|
28
|
+
Trigger: typeof MenuTrigger;
|
|
29
|
+
Content: typeof MenuContent;
|
|
30
|
+
Item: typeof MenuItem;
|
|
31
|
+
Separator: typeof MenuSeparator;
|
|
28
32
|
};
|
|
29
33
|
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { type AnchorHTMLAttributes, type
|
|
2
|
-
export interface NavigationProps extends
|
|
1
|
+
import { type AnchorHTMLAttributes, type ComponentPropsWithRef, type ReactNode, type RefAttributes } from 'react';
|
|
2
|
+
export interface NavigationProps extends ComponentPropsWithRef<'nav'> {
|
|
3
3
|
/** Accessible name of the navigation landmark. */
|
|
4
4
|
label?: string;
|
|
5
5
|
}
|
|
6
|
-
export interface NavigationGroupProps extends
|
|
6
|
+
export interface NavigationGroupProps extends ComponentPropsWithRef<'section'> {
|
|
7
7
|
label?: ReactNode;
|
|
8
8
|
/** Render as a native <details> disclosure; the label becomes its <summary>. */
|
|
9
9
|
collapsible?: boolean;
|
|
10
10
|
/** Initial `open` attribute of a collapsible group. The browser owns the state afterwards. */
|
|
11
11
|
defaultOpen?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export interface NavigationItemProps extends AnchorHTMLAttributes<HTMLElement> {
|
|
13
|
+
export interface NavigationItemProps extends AnchorHTMLAttributes<HTMLElement>, RefAttributes<HTMLElement> {
|
|
14
14
|
href?: string;
|
|
15
15
|
/** Marks the current page (aria-current="page"). */
|
|
16
16
|
active?: boolean;
|
|
@@ -18,7 +18,11 @@ export interface NavigationItemProps extends AnchorHTMLAttributes<HTMLElement> {
|
|
|
18
18
|
/** Decorative leading icon, hidden from assistive tech. */
|
|
19
19
|
icon?: ReactNode;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
declare function NavigationRoot({ ref, label, ...rest }: NavigationProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function NavigationGroup({ ref, label, collapsible, defaultOpen, children, ...rest }: NavigationGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function NavigationItem({ ref, href, active, disabled, icon, children, ...rest }: NavigationItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const Navigation: typeof NavigationRoot & {
|
|
25
|
+
Group: typeof NavigationGroup;
|
|
26
|
+
Item: typeof NavigationItem;
|
|
24
27
|
};
|
|
28
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export interface PaginationProps extends Omit<
|
|
1
|
+
import { type ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface PaginationProps extends Omit<ComponentPropsWithRef<'nav'>, 'onChange'> {
|
|
3
3
|
page: number;
|
|
4
4
|
totalPages: number;
|
|
5
5
|
onPageChange?: (page: number) => void;
|
|
@@ -11,4 +11,7 @@ export interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onCh
|
|
|
11
11
|
nextLabel?: string;
|
|
12
12
|
locale?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare
|
|
14
|
+
export declare function Pagination({ ref, page, totalPages, onPageChange, siblingCount, label, previousLabel, nextLabel, locale, ...rest }: PaginationProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace Pagination {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react';
|
|
2
2
|
export type PillTone = 'neutral' | 'accent' | 'success' | 'warning' | 'danger';
|
|
3
|
-
export interface PillProps extends
|
|
3
|
+
export interface PillProps extends ComponentPropsWithRef<'span'> {
|
|
4
4
|
tone?: PillTone;
|
|
5
5
|
}
|
|
6
|
-
export declare
|
|
6
|
+
export declare function Pill({ ref, tone, ...rest }: PillProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare namespace Pill {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
2
|
import { type Placement } from '@floating-ui/react';
|
|
3
3
|
export interface PopoverProps {
|
|
4
4
|
open?: boolean;
|
|
@@ -7,13 +7,15 @@ export interface PopoverProps {
|
|
|
7
7
|
placement?: Placement;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export interface PopoverTriggerProps extends
|
|
10
|
+
export interface PopoverTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
11
11
|
}
|
|
12
|
-
export interface PopoverContentProps extends
|
|
12
|
+
export interface PopoverContentProps extends ComponentPropsWithRef<'div'> {
|
|
13
13
|
}
|
|
14
14
|
declare function PopoverRoot({ open: openProp, defaultOpen, onOpenChange, placement, children, }: PopoverProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function PopoverTrigger({ ref, ...props }: PopoverTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function PopoverContent({ ref, style, ...rest }: PopoverContentProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
15
17
|
export declare const Popover: typeof PopoverRoot & {
|
|
16
|
-
Trigger:
|
|
17
|
-
Content:
|
|
18
|
+
Trigger: typeof PopoverTrigger;
|
|
19
|
+
Content: typeof PopoverContent;
|
|
18
20
|
};
|
|
19
21
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
2
|
import { type Interpolation, type Theme } from '../../styling/css';
|
|
3
3
|
export interface ProgressPartProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
css?: Interpolation<Theme>;
|
|
6
6
|
}
|
|
7
|
-
export interface ProgressProps extends Omit<
|
|
7
|
+
export interface ProgressProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
8
8
|
/** Current value in `0..max`; leave undefined for indeterminate progress. */
|
|
9
9
|
value?: number;
|
|
10
10
|
max?: number;
|
|
@@ -16,4 +16,7 @@ export interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chi
|
|
|
16
16
|
indicator?: ProgressPartProps;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
export declare
|
|
19
|
+
export declare function Progress({ ref, value, max, label, getValueLabel, slotProps, 'aria-labelledby': ariaLabelledByProp, ...rest }: ProgressProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare namespace Progress {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
2
|
import { type Interpolation, type Theme } from '../../styling/css';
|
|
3
3
|
export type RadioGroupOrientation = 'vertical' | 'horizontal';
|
|
4
|
-
export interface RadioGroupProps extends Omit<
|
|
4
|
+
export interface RadioGroupProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'defaultValue'> {
|
|
5
5
|
value?: string;
|
|
6
6
|
defaultValue?: string;
|
|
7
7
|
onValueChange?: (value: string) => void;
|
|
@@ -13,7 +13,7 @@ export interface RadioGroupRadioPartProps {
|
|
|
13
13
|
className?: string;
|
|
14
14
|
css?: Interpolation<Theme>;
|
|
15
15
|
}
|
|
16
|
-
export interface RadioGroupRadioProps extends Omit<
|
|
16
|
+
export interface RadioGroupRadioProps extends Omit<ComponentPropsWithRef<'input'>, 'type' | 'value' | 'name' | 'checked' | 'defaultChecked' | 'size'> {
|
|
17
17
|
value: string;
|
|
18
18
|
label?: ReactNode;
|
|
19
19
|
description?: ReactNode;
|
|
@@ -24,6 +24,9 @@ export interface RadioGroupRadioProps extends Omit<InputHTMLAttributes<HTMLInput
|
|
|
24
24
|
description?: RadioGroupRadioPartProps;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
declare function RadioGroupRoot({ ref, value: valueProp, defaultValue, onValueChange, name: nameProp, disabled, orientation, ...rest }: RadioGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function RadioGroupRadio({ ref, value, label, description, disabled: disabledProp, onChange, slotProps, className, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, ...rest }: RadioGroupRadioProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const RadioGroup: typeof RadioGroupRoot & {
|
|
30
|
+
Radio: typeof RadioGroupRadio;
|
|
29
31
|
};
|
|
32
|
+
export {};
|