@ark-ui/react 5.14.1 → 5.15.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/dist/components/checkbox/checkbox-indicator.d.cts +1 -1
- package/dist/components/checkbox/checkbox-indicator.d.ts +1 -1
- package/dist/components/checkbox/use-checkbox-group.d.cts +7 -7
- package/dist/components/checkbox/use-checkbox-group.d.ts +7 -7
- package/dist/components/clipboard/clipboard-indicator.d.cts +1 -1
- package/dist/components/clipboard/clipboard-indicator.d.ts +1 -1
- package/dist/components/collapsible/use-collapsible.d.cts +1 -1
- package/dist/components/collapsible/use-collapsible.d.ts +1 -1
- package/dist/components/color-picker/color-picker-value-text.d.cts +1 -1
- package/dist/components/color-picker/color-picker-value-text.d.ts +1 -1
- package/dist/components/dialog/dialog-root-provider.d.cts +1 -1
- package/dist/components/dialog/dialog-root-provider.d.ts +1 -1
- package/dist/components/dialog/dialog-root.d.cts +1 -1
- package/dist/components/dialog/dialog-root.d.ts +1 -1
- package/dist/components/factory.d.cts +1 -1
- package/dist/components/factory.d.ts +1 -1
- package/dist/components/field/field-required-indicator.d.cts +1 -1
- package/dist/components/field/field-required-indicator.d.ts +1 -1
- package/dist/components/field/field-textarea.d.cts +1 -1
- package/dist/components/field/field-textarea.d.ts +1 -1
- package/dist/components/field/use-field.d.cts +11 -11
- package/dist/components/field/use-field.d.ts +11 -11
- package/dist/components/fieldset/use-fieldset.d.cts +3 -3
- package/dist/components/fieldset/use-fieldset.d.ts +3 -3
- package/dist/components/file-upload/file-upload-item-preview.d.cts +1 -1
- package/dist/components/file-upload/file-upload-item-preview.d.ts +1 -1
- package/dist/components/floating-panel/floating-panel-root-provider.d.cts +1 -1
- package/dist/components/floating-panel/floating-panel-root-provider.d.ts +1 -1
- package/dist/components/floating-panel/floating-panel-root.d.cts +1 -1
- package/dist/components/floating-panel/floating-panel-root.d.ts +1 -1
- package/dist/components/focus-trap/focus-trap.d.cts +1 -1
- package/dist/components/focus-trap/focus-trap.d.ts +1 -1
- package/dist/components/format/format-byte.d.cts +2 -2
- package/dist/components/format/format-byte.d.ts +2 -2
- package/dist/components/frame/frame-content.d.cts +3 -3
- package/dist/components/frame/frame-content.d.ts +3 -3
- package/dist/components/frame/frame.d.cts +3 -3
- package/dist/components/frame/frame.d.ts +3 -3
- package/dist/components/hover-card/hover-card-root-provider.d.cts +1 -1
- package/dist/components/hover-card/hover-card-root-provider.d.ts +1 -1
- package/dist/components/hover-card/hover-card-root.d.cts +1 -1
- package/dist/components/hover-card/hover-card-root.d.ts +1 -1
- package/dist/components/index.cjs +4 -0
- package/dist/components/index.js +2 -0
- package/dist/components/listbox/listbox-value-text.d.cts +1 -1
- package/dist/components/listbox/listbox-value-text.d.ts +1 -1
- package/dist/components/menu/menu-item.d.cts +1 -1
- package/dist/components/menu/menu-item.d.ts +1 -1
- package/dist/components/menu/menu-root-provider.d.cts +1 -1
- package/dist/components/menu/menu-root-provider.d.ts +1 -1
- package/dist/components/menu/menu-root.d.cts +1 -1
- package/dist/components/menu/menu-root.d.ts +1 -1
- package/dist/components/menu/use-menu-item-group-context.d.cts +2 -2
- package/dist/components/menu/use-menu-item-group-context.d.ts +2 -2
- package/dist/components/popover/popover-root-provider.d.cts +1 -1
- package/dist/components/popover/popover-root-provider.d.ts +1 -1
- package/dist/components/popover/popover-root.d.cts +1 -1
- package/dist/components/popover/popover-root.d.ts +1 -1
- package/dist/components/portal/portal.d.cts +2 -2
- package/dist/components/portal/portal.d.ts +2 -2
- package/dist/components/presence/use-presence.d.cts +1 -1
- package/dist/components/presence/use-presence.d.ts +1 -1
- package/dist/components/select/select-value-text.d.cts +1 -1
- package/dist/components/select/select-value-text.d.ts +1 -1
- package/dist/components/toggle/toggle-indicator.d.cts +1 -1
- package/dist/components/toggle/toggle-indicator.d.ts +1 -1
- package/dist/components/tooltip/tooltip-root-provider.d.cts +1 -1
- package/dist/components/tooltip/tooltip-root-provider.d.ts +1 -1
- package/dist/components/tooltip/tooltip-root.d.cts +1 -1
- package/dist/components/tooltip/tooltip-root.d.ts +1 -1
- package/dist/components/tour/tour-root.d.cts +1 -1
- package/dist/components/tour/tour-root.d.ts +1 -1
- package/dist/components/tree-view/index.cjs +4 -0
- package/dist/components/tree-view/index.d.cts +3 -1
- package/dist/components/tree-view/index.d.ts +3 -1
- package/dist/components/tree-view/index.js +2 -0
- package/dist/components/tree-view/tree-view-node-checkbox-indicator.cjs +23 -0
- package/dist/components/tree-view/tree-view-node-checkbox-indicator.d.cts +12 -0
- package/dist/components/tree-view/tree-view-node-checkbox-indicator.d.ts +12 -0
- package/dist/components/tree-view/tree-view-node-checkbox-indicator.js +19 -0
- package/dist/components/tree-view/tree-view-node-checkbox.cjs +21 -0
- package/dist/components/tree-view/tree-view-node-checkbox.d.cts +7 -0
- package/dist/components/tree-view/tree-view-node-checkbox.d.ts +7 -0
- package/dist/components/tree-view/tree-view-node-checkbox.js +17 -0
- package/dist/components/tree-view/tree-view-node-provider.d.cts +1 -1
- package/dist/components/tree-view/tree-view-node-provider.d.ts +1 -1
- package/dist/components/tree-view/tree-view-root.cjs +8 -3
- package/dist/components/tree-view/tree-view-root.js +8 -3
- package/dist/components/tree-view/tree-view.cjs +4 -0
- package/dist/components/tree-view/tree-view.d.cts +3 -1
- package/dist/components/tree-view/tree-view.d.ts +3 -1
- package/dist/components/tree-view/tree-view.js +2 -0
- package/dist/index.cjs +4 -0
- package/dist/index.js +2 -0
- package/dist/providers/environment/environment-provider.d.cts +2 -2
- package/dist/providers/environment/environment-provider.d.ts +2 -2
- package/dist/utils/create-context.d.cts +6 -6
- package/dist/utils/create-context.d.ts +6 -6
- package/dist/utils/render-strategy.d.cts +2 -2
- package/dist/utils/render-strategy.d.ts +2 -2
- package/dist/utils/use-controllable-state.d.cts +3 -3
- package/dist/utils/use-controllable-state.d.ts +3 -3
- package/dist/utils/use-event.d.cts +1 -1
- package/dist/utils/use-event.d.ts +1 -1
- package/package.json +59 -59
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface CheckboxIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
-
indeterminate?: boolean;
|
|
4
|
+
indeterminate?: boolean | undefined;
|
|
5
5
|
}
|
|
6
6
|
export interface CheckboxIndicatorProps extends HTMLProps<'div'>, CheckboxIndicatorBaseProps {
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface CheckboxIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
-
indeterminate?: boolean;
|
|
4
|
+
indeterminate?: boolean | undefined;
|
|
5
5
|
}
|
|
6
6
|
export interface CheckboxIndicatorProps extends HTMLProps<'div'>, CheckboxIndicatorBaseProps {
|
|
7
7
|
}
|
|
@@ -2,32 +2,32 @@ export interface UseCheckboxGroupProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* The initial value of `value` when uncontrolled
|
|
4
4
|
*/
|
|
5
|
-
defaultValue?: string[];
|
|
5
|
+
defaultValue?: string[] | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* The controlled value of the checkbox group
|
|
8
8
|
*/
|
|
9
|
-
value?: string[];
|
|
9
|
+
value?: string[] | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* The name of the input fields in the checkbox group
|
|
12
12
|
* (Useful for form submission).
|
|
13
13
|
*/
|
|
14
|
-
name?: string;
|
|
14
|
+
name?: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The callback to call when the value changes
|
|
17
17
|
*/
|
|
18
|
-
onValueChange?: (value: string[]) => void;
|
|
18
|
+
onValueChange?: ((value: string[]) => void) | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* If `true`, the checkbox group is disabled
|
|
21
21
|
*/
|
|
22
|
-
disabled?: boolean;
|
|
22
|
+
disabled?: boolean | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* If `true`, the checkbox group is read-only
|
|
25
25
|
*/
|
|
26
|
-
readOnly?: boolean;
|
|
26
|
+
readOnly?: boolean | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* If `true`, the checkbox group is invalid
|
|
29
29
|
*/
|
|
30
|
-
invalid?: boolean;
|
|
30
|
+
invalid?: boolean | undefined;
|
|
31
31
|
}
|
|
32
32
|
export interface CheckboxGroupItemProps {
|
|
33
33
|
value: string | undefined;
|
|
@@ -2,32 +2,32 @@ export interface UseCheckboxGroupProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* The initial value of `value` when uncontrolled
|
|
4
4
|
*/
|
|
5
|
-
defaultValue?: string[];
|
|
5
|
+
defaultValue?: string[] | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* The controlled value of the checkbox group
|
|
8
8
|
*/
|
|
9
|
-
value?: string[];
|
|
9
|
+
value?: string[] | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* The name of the input fields in the checkbox group
|
|
12
12
|
* (Useful for form submission).
|
|
13
13
|
*/
|
|
14
|
-
name?: string;
|
|
14
|
+
name?: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The callback to call when the value changes
|
|
17
17
|
*/
|
|
18
|
-
onValueChange?: (value: string[]) => void;
|
|
18
|
+
onValueChange?: ((value: string[]) => void) | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* If `true`, the checkbox group is disabled
|
|
21
21
|
*/
|
|
22
|
-
disabled?: boolean;
|
|
22
|
+
disabled?: boolean | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* If `true`, the checkbox group is read-only
|
|
25
25
|
*/
|
|
26
|
-
readOnly?: boolean;
|
|
26
|
+
readOnly?: boolean | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* If `true`, the checkbox group is invalid
|
|
29
29
|
*/
|
|
30
|
-
invalid?: boolean;
|
|
30
|
+
invalid?: boolean | undefined;
|
|
31
31
|
}
|
|
32
32
|
export interface CheckboxGroupItemProps {
|
|
33
33
|
value: string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
3
|
export interface ClipboardIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
-
copied?: ReactNode;
|
|
4
|
+
copied?: ReactNode | undefined;
|
|
5
5
|
}
|
|
6
6
|
export interface ClipboardIndicatorProps extends HTMLProps<'div'>, ClipboardIndicatorBaseProps {
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
3
|
export interface ClipboardIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
-
copied?: ReactNode;
|
|
4
|
+
copied?: ReactNode | undefined;
|
|
5
5
|
}
|
|
6
6
|
export interface ClipboardIndicatorProps extends HTMLProps<'div'>, ClipboardIndicatorBaseProps {
|
|
7
7
|
}
|
|
@@ -8,6 +8,6 @@ export interface UseCollapsibleReturn extends collapsible.Api<PropTypes> {
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether the content is unmounted
|
|
10
10
|
*/
|
|
11
|
-
isUnmounted?: boolean;
|
|
11
|
+
isUnmounted?: boolean | undefined;
|
|
12
12
|
}
|
|
13
13
|
export declare const useCollapsible: (props?: UseCollapsibleProps) => UseCollapsibleReturn;
|
|
@@ -8,6 +8,6 @@ export interface UseCollapsibleReturn extends collapsible.Api<PropTypes> {
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether the content is unmounted
|
|
10
10
|
*/
|
|
11
|
-
isUnmounted?: boolean;
|
|
11
|
+
isUnmounted?: boolean | undefined;
|
|
12
12
|
}
|
|
13
13
|
export declare const useCollapsible: (props?: UseCollapsibleProps) => UseCollapsibleReturn;
|
|
@@ -2,7 +2,7 @@ import { ColorStringFormat } from '@zag-js/color-utils';
|
|
|
2
2
|
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
3
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
4
|
export interface ColorPickerValueTextBaseProps extends PolymorphicProps {
|
|
5
|
-
format?: ColorStringFormat;
|
|
5
|
+
format?: ColorStringFormat | undefined;
|
|
6
6
|
}
|
|
7
7
|
export interface ColorPickerValueTextProps extends HTMLProps<'span'>, ColorPickerValueTextBaseProps {
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import { ColorStringFormat } from '@zag-js/color-utils';
|
|
|
2
2
|
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
3
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
4
|
export interface ColorPickerValueTextBaseProps extends PolymorphicProps {
|
|
5
|
-
format?: ColorStringFormat;
|
|
5
|
+
format?: ColorStringFormat | undefined;
|
|
6
6
|
}
|
|
7
7
|
export interface ColorPickerValueTextProps extends HTMLProps<'span'>, ColorPickerValueTextBaseProps {
|
|
8
8
|
}
|
|
@@ -8,7 +8,7 @@ interface RootProviderProps {
|
|
|
8
8
|
export interface DialogRootProviderBaseProps extends RootProviderProps, UsePresenceProps, PolymorphicProps {
|
|
9
9
|
}
|
|
10
10
|
export interface DialogRootProviderProps extends DialogRootProviderBaseProps {
|
|
11
|
-
children?: ReactNode;
|
|
11
|
+
children?: ReactNode | undefined;
|
|
12
12
|
}
|
|
13
13
|
export declare const DialogRootProvider: (props: DialogRootProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -8,7 +8,7 @@ interface RootProviderProps {
|
|
|
8
8
|
export interface DialogRootProviderBaseProps extends RootProviderProps, UsePresenceProps, PolymorphicProps {
|
|
9
9
|
}
|
|
10
10
|
export interface DialogRootProviderProps extends DialogRootProviderBaseProps {
|
|
11
|
-
children?: ReactNode;
|
|
11
|
+
children?: ReactNode | undefined;
|
|
12
12
|
}
|
|
13
13
|
export declare const DialogRootProvider: (props: DialogRootProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -4,6 +4,6 @@ import { UseDialogProps } from './use-dialog';
|
|
|
4
4
|
export interface DialogRootBaseProps extends UseDialogProps, UsePresenceProps {
|
|
5
5
|
}
|
|
6
6
|
export interface DialogRootProps extends DialogRootBaseProps {
|
|
7
|
-
children?: ReactNode;
|
|
7
|
+
children?: ReactNode | undefined;
|
|
8
8
|
}
|
|
9
9
|
export declare const DialogRoot: (props: DialogRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,6 @@ import { UseDialogProps } from './use-dialog';
|
|
|
4
4
|
export interface DialogRootBaseProps extends UseDialogProps, UsePresenceProps {
|
|
5
5
|
}
|
|
6
6
|
export interface DialogRootProps extends DialogRootBaseProps {
|
|
7
|
-
children?: ReactNode;
|
|
7
|
+
children?: ReactNode | undefined;
|
|
8
8
|
}
|
|
9
9
|
export declare const DialogRoot: (props: DialogRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ export interface PolymorphicProps {
|
|
|
3
3
|
/**
|
|
4
4
|
* Use the provided child element as the default rendered element, combining their props and behavior.
|
|
5
5
|
*/
|
|
6
|
-
asChild?: boolean;
|
|
6
|
+
asChild?: boolean | undefined;
|
|
7
7
|
}
|
|
8
8
|
type JsxElements = {
|
|
9
9
|
[E in keyof JSX.IntrinsicElements]: ArkForwardRefComponent<E>;
|
|
@@ -3,7 +3,7 @@ export interface PolymorphicProps {
|
|
|
3
3
|
/**
|
|
4
4
|
* Use the provided child element as the default rendered element, combining their props and behavior.
|
|
5
5
|
*/
|
|
6
|
-
asChild?: boolean;
|
|
6
|
+
asChild?: boolean | undefined;
|
|
7
7
|
}
|
|
8
8
|
type JsxElements = {
|
|
9
9
|
[E in keyof JSX.IntrinsicElements]: ArkForwardRefComponent<E>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface FieldRequiredIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
-
fallback?: React.ReactNode;
|
|
4
|
+
fallback?: React.ReactNode | undefined;
|
|
5
5
|
}
|
|
6
6
|
export interface FieldRequiredIndicatorProps extends HTMLProps<'span'>, FieldRequiredIndicatorBaseProps {
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface FieldRequiredIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
-
fallback?: React.ReactNode;
|
|
4
|
+
fallback?: React.ReactNode | undefined;
|
|
5
5
|
}
|
|
6
6
|
export interface FieldRequiredIndicatorProps extends HTMLProps<'span'>, FieldRequiredIndicatorBaseProps {
|
|
7
7
|
}
|
|
@@ -5,7 +5,7 @@ export interface FieldTextareaBaseProps extends PolymorphicProps {
|
|
|
5
5
|
* Whether the textarea should autoresize
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
|
-
autoresize?: boolean;
|
|
8
|
+
autoresize?: boolean | undefined;
|
|
9
9
|
}
|
|
10
10
|
export interface FieldTextareaProps extends HTMLProps<'textarea'>, FieldTextareaBaseProps {
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ export interface FieldTextareaBaseProps extends PolymorphicProps {
|
|
|
5
5
|
* Whether the textarea should autoresize
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
|
-
autoresize?: boolean;
|
|
8
|
+
autoresize?: boolean | undefined;
|
|
9
9
|
}
|
|
10
10
|
export interface FieldTextareaProps extends HTMLProps<'textarea'>, FieldTextareaBaseProps {
|
|
11
11
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { HTMLProps } from '../factory';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
3
|
export interface ElementIds {
|
|
4
|
-
root?: string;
|
|
5
|
-
control?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
errorText?: string;
|
|
8
|
-
helperText?: string;
|
|
4
|
+
root?: string | undefined;
|
|
5
|
+
control?: string | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
errorText?: string | undefined;
|
|
8
|
+
helperText?: string | undefined;
|
|
9
9
|
}
|
|
10
10
|
export interface UseFieldProps {
|
|
11
11
|
/**
|
|
12
12
|
* The id of the field.
|
|
13
13
|
*/
|
|
14
|
-
id?: string;
|
|
14
|
+
id?: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The ids of the field parts.
|
|
17
17
|
*/
|
|
18
|
-
ids?: ElementIds;
|
|
18
|
+
ids?: ElementIds | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Indicates whether the field is required.
|
|
21
21
|
*/
|
|
22
|
-
required?: boolean;
|
|
22
|
+
required?: boolean | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* Indicates whether the field is disabled.
|
|
25
25
|
*/
|
|
26
|
-
disabled?: boolean;
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* Indicates whether the field is invalid.
|
|
29
29
|
*/
|
|
30
|
-
invalid?: boolean;
|
|
30
|
+
invalid?: boolean | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Indicates whether the field is read-only.
|
|
33
33
|
*/
|
|
34
|
-
readOnly?: boolean;
|
|
34
|
+
readOnly?: boolean | undefined;
|
|
35
35
|
}
|
|
36
36
|
export type UseFieldReturn = ReturnType<typeof useField>;
|
|
37
37
|
export declare const useField: (props?: UseFieldProps) => {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { HTMLProps } from '../factory';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
3
|
export interface ElementIds {
|
|
4
|
-
root?: string;
|
|
5
|
-
control?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
errorText?: string;
|
|
8
|
-
helperText?: string;
|
|
4
|
+
root?: string | undefined;
|
|
5
|
+
control?: string | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
errorText?: string | undefined;
|
|
8
|
+
helperText?: string | undefined;
|
|
9
9
|
}
|
|
10
10
|
export interface UseFieldProps {
|
|
11
11
|
/**
|
|
12
12
|
* The id of the field.
|
|
13
13
|
*/
|
|
14
|
-
id?: string;
|
|
14
|
+
id?: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The ids of the field parts.
|
|
17
17
|
*/
|
|
18
|
-
ids?: ElementIds;
|
|
18
|
+
ids?: ElementIds | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Indicates whether the field is required.
|
|
21
21
|
*/
|
|
22
|
-
required?: boolean;
|
|
22
|
+
required?: boolean | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* Indicates whether the field is disabled.
|
|
25
25
|
*/
|
|
26
|
-
disabled?: boolean;
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* Indicates whether the field is invalid.
|
|
29
29
|
*/
|
|
30
|
-
invalid?: boolean;
|
|
30
|
+
invalid?: boolean | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Indicates whether the field is read-only.
|
|
33
33
|
*/
|
|
34
|
-
readOnly?: boolean;
|
|
34
|
+
readOnly?: boolean | undefined;
|
|
35
35
|
}
|
|
36
36
|
export type UseFieldReturn = ReturnType<typeof useField>;
|
|
37
37
|
export declare const useField: (props?: UseFieldProps) => {
|
|
@@ -4,15 +4,15 @@ export interface UseFieldsetProps {
|
|
|
4
4
|
/**
|
|
5
5
|
* The id of the fieldset.
|
|
6
6
|
*/
|
|
7
|
-
id?: string;
|
|
7
|
+
id?: string | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* Indicates whether the fieldset is disabled.
|
|
10
10
|
*/
|
|
11
|
-
disabled?: boolean;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
12
|
/**
|
|
13
13
|
* Indicates whether the fieldset is invalid.
|
|
14
14
|
*/
|
|
15
|
-
invalid?: boolean;
|
|
15
|
+
invalid?: boolean | undefined;
|
|
16
16
|
}
|
|
17
17
|
export type UseFieldsetReturn = ReturnType<typeof useFieldset>;
|
|
18
18
|
export declare const useFieldset: (props?: UseFieldsetProps) => {
|
|
@@ -4,15 +4,15 @@ export interface UseFieldsetProps {
|
|
|
4
4
|
/**
|
|
5
5
|
* The id of the fieldset.
|
|
6
6
|
*/
|
|
7
|
-
id?: string;
|
|
7
|
+
id?: string | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* Indicates whether the fieldset is disabled.
|
|
10
10
|
*/
|
|
11
|
-
disabled?: boolean;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
12
|
/**
|
|
13
13
|
* Indicates whether the fieldset is invalid.
|
|
14
14
|
*/
|
|
15
|
-
invalid?: boolean;
|
|
15
|
+
invalid?: boolean | undefined;
|
|
16
16
|
}
|
|
17
17
|
export type UseFieldsetReturn = ReturnType<typeof useFieldset>;
|
|
18
18
|
export declare const useFieldset: (props?: UseFieldsetProps) => {
|
|
@@ -5,7 +5,7 @@ export interface FileUploadItemPreviewBaseProps extends PolymorphicProps {
|
|
|
5
5
|
* The file type to match against. Matches all file types by default.
|
|
6
6
|
* @default '.*'
|
|
7
7
|
*/
|
|
8
|
-
type?: string;
|
|
8
|
+
type?: string | undefined;
|
|
9
9
|
}
|
|
10
10
|
export interface FileUploadItemPreviewProps extends HTMLProps<'div'>, FileUploadItemPreviewBaseProps {
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ export interface FileUploadItemPreviewBaseProps extends PolymorphicProps {
|
|
|
5
5
|
* The file type to match against. Matches all file types by default.
|
|
6
6
|
* @default '.*'
|
|
7
7
|
*/
|
|
8
|
-
type?: string;
|
|
8
|
+
type?: string | undefined;
|
|
9
9
|
}
|
|
10
10
|
export interface FileUploadItemPreviewProps extends HTMLProps<'div'>, FileUploadItemPreviewBaseProps {
|
|
11
11
|
}
|
|
@@ -7,7 +7,7 @@ interface RootProviderProps {
|
|
|
7
7
|
export interface FloatingPanelRootProviderBaseProps extends RootProviderProps, Omit<UsePresenceProps, 'present'> {
|
|
8
8
|
}
|
|
9
9
|
export interface FloatingPanelRootProviderProps extends FloatingPanelRootProviderBaseProps {
|
|
10
|
-
children?: ReactNode;
|
|
10
|
+
children?: ReactNode | undefined;
|
|
11
11
|
}
|
|
12
12
|
export declare const FloatingPanelRootProvider: (props: FloatingPanelRootProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -7,7 +7,7 @@ interface RootProviderProps {
|
|
|
7
7
|
export interface FloatingPanelRootProviderBaseProps extends RootProviderProps, Omit<UsePresenceProps, 'present'> {
|
|
8
8
|
}
|
|
9
9
|
export interface FloatingPanelRootProviderProps extends FloatingPanelRootProviderBaseProps {
|
|
10
|
-
children?: ReactNode;
|
|
10
|
+
children?: ReactNode | undefined;
|
|
11
11
|
}
|
|
12
12
|
export declare const FloatingPanelRootProvider: (props: FloatingPanelRootProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -4,6 +4,6 @@ import { UseFloatingPanelProps } from './use-floating-panel';
|
|
|
4
4
|
export interface FloatingPanelRootBaseProps extends UseFloatingPanelProps, UsePresenceProps {
|
|
5
5
|
}
|
|
6
6
|
export interface FloatingPanelRootProps extends FloatingPanelRootBaseProps {
|
|
7
|
-
children?: ReactNode;
|
|
7
|
+
children?: ReactNode | undefined;
|
|
8
8
|
}
|
|
9
9
|
export declare const FloatingPanelRoot: (props: FloatingPanelRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,6 @@ import { UseFloatingPanelProps } from './use-floating-panel';
|
|
|
4
4
|
export interface FloatingPanelRootBaseProps extends UseFloatingPanelProps, UsePresenceProps {
|
|
5
5
|
}
|
|
6
6
|
export interface FloatingPanelRootProps extends FloatingPanelRootBaseProps {
|
|
7
|
-
children?: ReactNode;
|
|
7
|
+
children?: ReactNode | undefined;
|
|
8
8
|
}
|
|
9
9
|
export declare const FloatingPanelRoot: (props: FloatingPanelRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ export interface TrapOptions extends Pick<FocusTrapOptions, 'onActivate' | 'onDe
|
|
|
6
6
|
/**
|
|
7
7
|
* Whether the focus trap is disabled.
|
|
8
8
|
*/
|
|
9
|
-
disabled?: boolean;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
10
|
}
|
|
11
11
|
export interface FocusTrapBaseProps extends PolymorphicProps, TrapOptions {
|
|
12
12
|
}
|
|
@@ -6,7 +6,7 @@ export interface TrapOptions extends Pick<FocusTrapOptions, 'onActivate' | 'onDe
|
|
|
6
6
|
/**
|
|
7
7
|
* Whether the focus trap is disabled.
|
|
8
8
|
*/
|
|
9
|
-
disabled?: boolean;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
10
|
}
|
|
11
11
|
export interface FocusTrapBaseProps extends PolymorphicProps, TrapOptions {
|
|
12
12
|
}
|
|
@@ -2,11 +2,11 @@ export interface FormatByteProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* The unit granularity to display
|
|
4
4
|
*/
|
|
5
|
-
unit?: 'bit' | 'byte';
|
|
5
|
+
unit?: 'bit' | 'byte' | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* The unit display
|
|
8
8
|
*/
|
|
9
|
-
unitDisplay?: 'long' | 'short' | 'narrow';
|
|
9
|
+
unitDisplay?: 'long' | 'short' | 'narrow' | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* The byte size to format
|
|
12
12
|
*/
|
|
@@ -2,11 +2,11 @@ export interface FormatByteProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* The unit granularity to display
|
|
4
4
|
*/
|
|
5
|
-
unit?: 'bit' | 'byte';
|
|
5
|
+
unit?: 'bit' | 'byte' | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* The unit display
|
|
8
8
|
*/
|
|
9
|
-
unitDisplay?: 'long' | 'short' | 'narrow';
|
|
9
|
+
unitDisplay?: 'long' | 'short' | 'narrow' | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* The byte size to format
|
|
12
12
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
interface FrameContentProps {
|
|
3
|
-
onMount
|
|
4
|
-
onUnmount
|
|
5
|
-
children?: React.ReactNode;
|
|
3
|
+
onMount?: VoidFunction | undefined;
|
|
4
|
+
onUnmount?: VoidFunction | undefined;
|
|
5
|
+
children?: React.ReactNode | undefined;
|
|
6
6
|
}
|
|
7
7
|
export declare const FrameContent: (props: FrameContentProps) => ReactNode;
|
|
8
8
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
interface FrameContentProps {
|
|
3
|
-
onMount
|
|
4
|
-
onUnmount
|
|
5
|
-
children?: React.ReactNode;
|
|
3
|
+
onMount?: VoidFunction | undefined;
|
|
4
|
+
onUnmount?: VoidFunction | undefined;
|
|
5
|
+
children?: React.ReactNode | undefined;
|
|
6
6
|
}
|
|
7
7
|
export declare const FrameContent: (props: FrameContentProps) => ReactNode;
|
|
8
8
|
export {};
|
|
@@ -2,11 +2,11 @@ import { Assign } from '../../types';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface FrameBaseProps {
|
|
4
4
|
/** Additional content to be inserted into the frame's <head> */
|
|
5
|
-
head?: React.ReactNode;
|
|
5
|
+
head?: React.ReactNode | undefined;
|
|
6
6
|
/** Callback function to be executed when the frame is mounted */
|
|
7
|
-
onMount?: () => void;
|
|
7
|
+
onMount?: (() => void) | undefined;
|
|
8
8
|
/** Callback function to be executed when the frame is unmounted */
|
|
9
|
-
onUnmount?: () => void;
|
|
9
|
+
onUnmount?: (() => void) | undefined;
|
|
10
10
|
}
|
|
11
11
|
export interface FrameProps extends Assign<React.IframeHTMLAttributes<HTMLIFrameElement>, FrameBaseProps> {
|
|
12
12
|
}
|
|
@@ -2,11 +2,11 @@ import { Assign } from '../../types';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface FrameBaseProps {
|
|
4
4
|
/** Additional content to be inserted into the frame's <head> */
|
|
5
|
-
head?: React.ReactNode;
|
|
5
|
+
head?: React.ReactNode | undefined;
|
|
6
6
|
/** Callback function to be executed when the frame is mounted */
|
|
7
|
-
onMount?: () => void;
|
|
7
|
+
onMount?: (() => void) | undefined;
|
|
8
8
|
/** Callback function to be executed when the frame is unmounted */
|
|
9
|
-
onUnmount?: () => void;
|
|
9
|
+
onUnmount?: (() => void) | undefined;
|
|
10
10
|
}
|
|
11
11
|
export interface FrameProps extends Assign<React.IframeHTMLAttributes<HTMLIFrameElement>, FrameBaseProps> {
|
|
12
12
|
}
|
|
@@ -7,7 +7,7 @@ interface RootProviderProps {
|
|
|
7
7
|
export interface HoverCardRootProviderBaseProps extends RootProviderProps, UsePresenceProps {
|
|
8
8
|
}
|
|
9
9
|
export interface HoverCardRootProviderProps extends HoverCardRootProviderBaseProps {
|
|
10
|
-
children?: ReactNode;
|
|
10
|
+
children?: ReactNode | undefined;
|
|
11
11
|
}
|
|
12
12
|
export declare const HoverCardRootProvider: (props: HoverCardRootProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -7,7 +7,7 @@ interface RootProviderProps {
|
|
|
7
7
|
export interface HoverCardRootProviderBaseProps extends RootProviderProps, UsePresenceProps {
|
|
8
8
|
}
|
|
9
9
|
export interface HoverCardRootProviderProps extends HoverCardRootProviderBaseProps {
|
|
10
|
-
children?: ReactNode;
|
|
10
|
+
children?: ReactNode | undefined;
|
|
11
11
|
}
|
|
12
12
|
export declare const HoverCardRootProvider: (props: HoverCardRootProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -4,6 +4,6 @@ import { UseHoverCardProps } from './use-hover-card';
|
|
|
4
4
|
export interface HoverCardRootBaseProps extends UseHoverCardProps, UsePresenceProps {
|
|
5
5
|
}
|
|
6
6
|
export interface HoverCardRootProps extends HoverCardRootBaseProps {
|
|
7
|
-
children?: ReactNode;
|
|
7
|
+
children?: ReactNode | undefined;
|
|
8
8
|
}
|
|
9
9
|
export declare const HoverCardRoot: (props: HoverCardRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,6 @@ import { UseHoverCardProps } from './use-hover-card';
|
|
|
4
4
|
export interface HoverCardRootBaseProps extends UseHoverCardProps, UsePresenceProps {
|
|
5
5
|
}
|
|
6
6
|
export interface HoverCardRootProps extends HoverCardRootBaseProps {
|
|
7
|
-
children?: ReactNode;
|
|
7
|
+
children?: ReactNode | undefined;
|
|
8
8
|
}
|
|
9
9
|
export declare const HoverCardRoot: (props: HoverCardRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -666,6 +666,8 @@ const treeViewNodeProvider = require('./tree-view/tree-view-node-provider.cjs');
|
|
|
666
666
|
const treeViewRoot = require('./tree-view/tree-view-root.cjs');
|
|
667
667
|
const treeViewRootProvider = require('./tree-view/tree-view-root-provider.cjs');
|
|
668
668
|
const treeViewTree = require('./tree-view/tree-view-tree.cjs');
|
|
669
|
+
const treeViewNodeCheckbox = require('./tree-view/tree-view-node-checkbox.cjs');
|
|
670
|
+
const treeViewNodeCheckboxIndicator = require('./tree-view/tree-view-node-checkbox-indicator.cjs');
|
|
669
671
|
const useTreeView = require('./tree-view/use-tree-view.cjs');
|
|
670
672
|
const useTreeViewContext = require('./tree-view/use-tree-view-context.cjs');
|
|
671
673
|
const useTreeViewNodeContext = require('./tree-view/use-tree-view-node-context.cjs');
|
|
@@ -1386,6 +1388,8 @@ exports.TreeViewNodeProvider = treeViewNodeProvider.TreeViewNodeProvider;
|
|
|
1386
1388
|
exports.TreeViewRoot = treeViewRoot.TreeViewRoot;
|
|
1387
1389
|
exports.TreeViewRootProvider = treeViewRootProvider.TreeViewRootProvider;
|
|
1388
1390
|
exports.TreeViewTree = treeViewTree.TreeViewTree;
|
|
1391
|
+
exports.TreeViewNodeCheckbox = treeViewNodeCheckbox.TreeViewNodeCheckbox;
|
|
1392
|
+
exports.TreeViewNodeCheckboxIndicator = treeViewNodeCheckboxIndicator.TreeViewNodeCheckboxIndicator;
|
|
1389
1393
|
exports.useTreeView = useTreeView.useTreeView;
|
|
1390
1394
|
exports.useTreeViewContext = useTreeViewContext.useTreeViewContext;
|
|
1391
1395
|
exports.useTreeViewNodeContext = useTreeViewNodeContext.useTreeViewNodeContext;
|
package/dist/components/index.js
CHANGED
|
@@ -707,6 +707,8 @@ export { TreeViewNodeProvider } from './tree-view/tree-view-node-provider.js';
|
|
|
707
707
|
export { TreeViewRoot } from './tree-view/tree-view-root.js';
|
|
708
708
|
export { TreeViewRootProvider } from './tree-view/tree-view-root-provider.js';
|
|
709
709
|
export { TreeViewTree } from './tree-view/tree-view-tree.js';
|
|
710
|
+
export { TreeViewNodeCheckbox } from './tree-view/tree-view-node-checkbox.js';
|
|
711
|
+
export { TreeViewNodeCheckboxIndicator } from './tree-view/tree-view-node-checkbox-indicator.js';
|
|
710
712
|
export { useTreeView } from './tree-view/use-tree-view.js';
|
|
711
713
|
export { useTreeViewContext } from './tree-view/use-tree-view-context.js';
|
|
712
714
|
export { useTreeViewNodeContext } from './tree-view/use-tree-view-node-context.js';
|