@ark-ui/react 4.9.1 → 4.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/date-picker/date-picker-input.cjs +2 -8
- package/dist/components/date-picker/date-picker-input.d.cts +1 -1
- package/dist/components/date-picker/date-picker-input.d.ts +1 -1
- package/dist/components/date-picker/date-picker-input.js +2 -8
- package/dist/components/date-picker/date-picker-root.cjs +43 -47
- package/dist/components/date-picker/date-picker-root.d.cts +1 -1
- package/dist/components/date-picker/date-picker-root.d.ts +1 -1
- package/dist/components/date-picker/date-picker-root.js +43 -47
- package/dist/components/field/use-field.cjs +3 -2
- package/dist/components/field/use-field.js +3 -2
- package/dist/components/file-upload/file-upload-dropzone.cjs +8 -11
- package/dist/components/file-upload/file-upload-dropzone.d.cts +1 -1
- package/dist/components/file-upload/file-upload-dropzone.d.ts +1 -1
- package/dist/components/file-upload/file-upload-dropzone.js +8 -11
- package/dist/components/file-upload/file-upload-item-preview-image.cjs +1 -4
- package/dist/components/file-upload/file-upload-item-preview-image.d.cts +1 -1
- package/dist/components/file-upload/file-upload-item-preview-image.d.ts +1 -1
- package/dist/components/file-upload/file-upload-item-preview-image.js +1 -4
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/select/select-hidden-select.cjs +2 -1
- package/dist/components/select/select-hidden-select.js +2 -1
- package/dist/components/tour/tour-progress-text.d.cts +1 -1
- package/dist/components/tour/tour-progress-text.d.ts +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.js +1 -0
- package/package.json +69 -69
|
@@ -11,15 +11,9 @@ const factory = require('../factory.cjs');
|
|
|
11
11
|
const useDatePickerContext = require('./use-date-picker-context.cjs');
|
|
12
12
|
|
|
13
13
|
const DatePickerInput = react.forwardRef((props, ref) => {
|
|
14
|
-
const [inputProps, localProps] = createSplitProps.createSplitProps()(props, [
|
|
15
|
-
"index",
|
|
16
|
-
"fixOnBlur"
|
|
17
|
-
]);
|
|
14
|
+
const [inputProps, localProps] = createSplitProps.createSplitProps()(props, ["index", "fixOnBlur"]);
|
|
18
15
|
const datePicker = useDatePickerContext.useDatePickerContext();
|
|
19
|
-
const mergedProps = react$1.mergeProps(
|
|
20
|
-
datePicker.getInputProps(inputProps),
|
|
21
|
-
localProps
|
|
22
|
-
);
|
|
16
|
+
const mergedProps = react$1.mergeProps(datePicker.getInputProps(inputProps), localProps);
|
|
23
17
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.input, { ...mergedProps, ref });
|
|
24
18
|
});
|
|
25
19
|
DatePickerInput.displayName = "DatePickerInput";
|
|
@@ -3,6 +3,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
3
3
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
4
|
export interface DatePickerInputBaseProps extends InputProps, PolymorphicProps {
|
|
5
5
|
}
|
|
6
|
-
export interface DatePickerInputProps extends HTMLProps<
|
|
6
|
+
export interface DatePickerInputProps extends HTMLProps<'input'>, DatePickerInputBaseProps {
|
|
7
7
|
}
|
|
8
8
|
export declare const DatePickerInput: ForwardRefExoticComponent<DatePickerInputProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -3,6 +3,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
3
3
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
4
|
export interface DatePickerInputBaseProps extends InputProps, PolymorphicProps {
|
|
5
5
|
}
|
|
6
|
-
export interface DatePickerInputProps extends HTMLProps<
|
|
6
|
+
export interface DatePickerInputProps extends HTMLProps<'input'>, DatePickerInputBaseProps {
|
|
7
7
|
}
|
|
8
8
|
export declare const DatePickerInput: ForwardRefExoticComponent<DatePickerInputProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -7,15 +7,9 @@ import { ark } from '../factory.js';
|
|
|
7
7
|
import { useDatePickerContext } from './use-date-picker-context.js';
|
|
8
8
|
|
|
9
9
|
const DatePickerInput = forwardRef((props, ref) => {
|
|
10
|
-
const [inputProps, localProps] = createSplitProps()(props, [
|
|
11
|
-
"index",
|
|
12
|
-
"fixOnBlur"
|
|
13
|
-
]);
|
|
10
|
+
const [inputProps, localProps] = createSplitProps()(props, ["index", "fixOnBlur"]);
|
|
14
11
|
const datePicker = useDatePickerContext();
|
|
15
|
-
const mergedProps = mergeProps(
|
|
16
|
-
datePicker.getInputProps(inputProps),
|
|
17
|
-
localProps
|
|
18
|
-
);
|
|
12
|
+
const mergedProps = mergeProps(datePicker.getInputProps(inputProps), localProps);
|
|
19
13
|
return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });
|
|
20
14
|
});
|
|
21
15
|
DatePickerInput.displayName = "DatePickerInput";
|
|
@@ -14,53 +14,49 @@ const usePresenceContext = require('../presence/use-presence-context.cjs');
|
|
|
14
14
|
const useDatePicker = require('./use-date-picker.cjs');
|
|
15
15
|
const useDatePickerContext = require('./use-date-picker-context.cjs');
|
|
16
16
|
|
|
17
|
-
const DatePickerRoot = react.forwardRef(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const mergedProps = react$1.mergeProps(datePicker.getRootProps(), localProps);
|
|
61
|
-
return /* @__PURE__ */ jsxRuntime.jsx(useDatePickerContext.DatePickerProvider, { value: datePicker, children: /* @__PURE__ */ jsxRuntime.jsx(usePresenceContext.PresenceProvider, { value: presence, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) }) });
|
|
62
|
-
}
|
|
63
|
-
);
|
|
17
|
+
const DatePickerRoot = react.forwardRef((props, ref) => {
|
|
18
|
+
const [presenceProps, datePickerProps] = splitPresenceProps.splitPresenceProps(props);
|
|
19
|
+
const [useDatePickerProps, localProps] = createSplitProps.createSplitProps()(datePickerProps, [
|
|
20
|
+
"closeOnSelect",
|
|
21
|
+
"defaultOpen",
|
|
22
|
+
"defaultValue",
|
|
23
|
+
"defaultView",
|
|
24
|
+
"disabled",
|
|
25
|
+
"fixedWeeks",
|
|
26
|
+
"focusedValue",
|
|
27
|
+
"format",
|
|
28
|
+
"id",
|
|
29
|
+
"ids",
|
|
30
|
+
"isDateUnavailable",
|
|
31
|
+
"isDateUnavailable",
|
|
32
|
+
"locale",
|
|
33
|
+
"max",
|
|
34
|
+
"maxView",
|
|
35
|
+
"min",
|
|
36
|
+
"minView",
|
|
37
|
+
"name",
|
|
38
|
+
"numOfMonths",
|
|
39
|
+
"onFocusChange",
|
|
40
|
+
"onOpenChange",
|
|
41
|
+
"onValueChange",
|
|
42
|
+
"onViewChange",
|
|
43
|
+
"open",
|
|
44
|
+
"parse",
|
|
45
|
+
"placeholder",
|
|
46
|
+
"positioning",
|
|
47
|
+
"readOnly",
|
|
48
|
+
"selectionMode",
|
|
49
|
+
"startOfWeek",
|
|
50
|
+
"timeZone",
|
|
51
|
+
"translations",
|
|
52
|
+
"value",
|
|
53
|
+
"view"
|
|
54
|
+
]);
|
|
55
|
+
const datePicker = useDatePicker.useDatePicker(useDatePickerProps);
|
|
56
|
+
const presence = usePresence.usePresence(react$1.mergeProps({ present: datePicker.open }, presenceProps));
|
|
57
|
+
const mergedProps = react$1.mergeProps(datePicker.getRootProps(), localProps);
|
|
58
|
+
return /* @__PURE__ */ jsxRuntime.jsx(useDatePickerContext.DatePickerProvider, { value: datePicker, children: /* @__PURE__ */ jsxRuntime.jsx(usePresenceContext.PresenceProvider, { value: presence, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) }) });
|
|
59
|
+
});
|
|
64
60
|
DatePickerRoot.displayName = "DatePickerRoot";
|
|
65
61
|
|
|
66
62
|
exports.DatePickerRoot = DatePickerRoot;
|
|
@@ -5,6 +5,6 @@ import { UseDatePickerProps } from './use-date-picker';
|
|
|
5
5
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
6
6
|
export interface DatePickerRootBaseProps extends UseDatePickerProps, UsePresenceProps, PolymorphicProps {
|
|
7
7
|
}
|
|
8
|
-
export interface DatePickerRootProps extends Assign<HTMLProps<
|
|
8
|
+
export interface DatePickerRootProps extends Assign<HTMLProps<'div'>, DatePickerRootBaseProps> {
|
|
9
9
|
}
|
|
10
10
|
export declare const DatePickerRoot: ForwardRefExoticComponent<DatePickerRootProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -5,6 +5,6 @@ import { UseDatePickerProps } from './use-date-picker';
|
|
|
5
5
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
6
6
|
export interface DatePickerRootBaseProps extends UseDatePickerProps, UsePresenceProps, PolymorphicProps {
|
|
7
7
|
}
|
|
8
|
-
export interface DatePickerRootProps extends Assign<HTMLProps<
|
|
8
|
+
export interface DatePickerRootProps extends Assign<HTMLProps<'div'>, DatePickerRootBaseProps> {
|
|
9
9
|
}
|
|
10
10
|
export declare const DatePickerRoot: ForwardRefExoticComponent<DatePickerRootProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -10,53 +10,49 @@ import { PresenceProvider } from '../presence/use-presence-context.js';
|
|
|
10
10
|
import { useDatePicker } from './use-date-picker.js';
|
|
11
11
|
import { DatePickerProvider } from './use-date-picker-context.js';
|
|
12
12
|
|
|
13
|
-
const DatePickerRoot = forwardRef(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const mergedProps = mergeProps(datePicker.getRootProps(), localProps);
|
|
57
|
-
return /* @__PURE__ */ jsx(DatePickerProvider, { value: datePicker, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) }) });
|
|
58
|
-
}
|
|
59
|
-
);
|
|
13
|
+
const DatePickerRoot = forwardRef((props, ref) => {
|
|
14
|
+
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
15
|
+
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, [
|
|
16
|
+
"closeOnSelect",
|
|
17
|
+
"defaultOpen",
|
|
18
|
+
"defaultValue",
|
|
19
|
+
"defaultView",
|
|
20
|
+
"disabled",
|
|
21
|
+
"fixedWeeks",
|
|
22
|
+
"focusedValue",
|
|
23
|
+
"format",
|
|
24
|
+
"id",
|
|
25
|
+
"ids",
|
|
26
|
+
"isDateUnavailable",
|
|
27
|
+
"isDateUnavailable",
|
|
28
|
+
"locale",
|
|
29
|
+
"max",
|
|
30
|
+
"maxView",
|
|
31
|
+
"min",
|
|
32
|
+
"minView",
|
|
33
|
+
"name",
|
|
34
|
+
"numOfMonths",
|
|
35
|
+
"onFocusChange",
|
|
36
|
+
"onOpenChange",
|
|
37
|
+
"onValueChange",
|
|
38
|
+
"onViewChange",
|
|
39
|
+
"open",
|
|
40
|
+
"parse",
|
|
41
|
+
"placeholder",
|
|
42
|
+
"positioning",
|
|
43
|
+
"readOnly",
|
|
44
|
+
"selectionMode",
|
|
45
|
+
"startOfWeek",
|
|
46
|
+
"timeZone",
|
|
47
|
+
"translations",
|
|
48
|
+
"value",
|
|
49
|
+
"view"
|
|
50
|
+
]);
|
|
51
|
+
const datePicker = useDatePicker(useDatePickerProps);
|
|
52
|
+
const presence = usePresence(mergeProps({ present: datePicker.open }, presenceProps));
|
|
53
|
+
const mergedProps = mergeProps(datePicker.getRootProps(), localProps);
|
|
54
|
+
return /* @__PURE__ */ jsx(DatePickerProvider, { value: datePicker, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) }) });
|
|
55
|
+
});
|
|
60
56
|
DatePickerRoot.displayName = "DatePickerRoot";
|
|
61
57
|
|
|
62
58
|
export { DatePickerRoot };
|
|
@@ -107,9 +107,10 @@ const useField = (props) => {
|
|
|
107
107
|
const getHelperTextProps = react.useMemo(
|
|
108
108
|
() => () => ({
|
|
109
109
|
id: helperTextId,
|
|
110
|
-
...field_anatomy.parts.helperText.attrs
|
|
110
|
+
...field_anatomy.parts.helperText.attrs,
|
|
111
|
+
"data-disabled": domQuery.dataAttr(disabled)
|
|
111
112
|
}),
|
|
112
|
-
[helperTextId]
|
|
113
|
+
[disabled, helperTextId]
|
|
113
114
|
);
|
|
114
115
|
const getErrorTextProps = react.useMemo(
|
|
115
116
|
() => () => ({
|
|
@@ -103,9 +103,10 @@ const useField = (props) => {
|
|
|
103
103
|
const getHelperTextProps = useMemo(
|
|
104
104
|
() => () => ({
|
|
105
105
|
id: helperTextId,
|
|
106
|
-
...parts.helperText.attrs
|
|
106
|
+
...parts.helperText.attrs,
|
|
107
|
+
"data-disabled": dataAttr(disabled)
|
|
107
108
|
}),
|
|
108
|
-
[helperTextId]
|
|
109
|
+
[disabled, helperTextId]
|
|
109
110
|
);
|
|
110
111
|
const getErrorTextProps = useMemo(
|
|
111
112
|
() => () => ({
|
|
@@ -10,17 +10,14 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const useFileUploadContext = require('./use-file-upload-context.cjs');
|
|
12
12
|
|
|
13
|
-
const FileUploadDropzone = react.forwardRef(
|
|
14
|
-
|
|
15
|
-
"disableClick"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
);
|
|
22
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
23
|
-
});
|
|
13
|
+
const FileUploadDropzone = react.forwardRef(
|
|
14
|
+
(props, ref) => {
|
|
15
|
+
const [dropzoneProps, localProps] = createSplitProps.createSplitProps()(props, ["disableClick"]);
|
|
16
|
+
const fileUpload = useFileUploadContext.useFileUploadContext();
|
|
17
|
+
const mergedProps = react$1.mergeProps(fileUpload.getDropzoneProps(dropzoneProps), localProps);
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
19
|
+
}
|
|
20
|
+
);
|
|
24
21
|
FileUploadDropzone.displayName = "FileUploadDropzone";
|
|
25
22
|
|
|
26
23
|
exports.FileUploadDropzone = FileUploadDropzone;
|
|
@@ -3,6 +3,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
3
3
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
4
|
export interface FileUploadDropzoneBaseProps extends PolymorphicProps, DropzoneProps {
|
|
5
5
|
}
|
|
6
|
-
export interface FileUploadDropzoneProps extends HTMLProps<
|
|
6
|
+
export interface FileUploadDropzoneProps extends HTMLProps<'div'>, FileUploadDropzoneBaseProps {
|
|
7
7
|
}
|
|
8
8
|
export declare const FileUploadDropzone: ForwardRefExoticComponent<FileUploadDropzoneProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -3,6 +3,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
3
3
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
4
|
export interface FileUploadDropzoneBaseProps extends PolymorphicProps, DropzoneProps {
|
|
5
5
|
}
|
|
6
|
-
export interface FileUploadDropzoneProps extends HTMLProps<
|
|
6
|
+
export interface FileUploadDropzoneProps extends HTMLProps<'div'>, FileUploadDropzoneBaseProps {
|
|
7
7
|
}
|
|
8
8
|
export declare const FileUploadDropzone: ForwardRefExoticComponent<FileUploadDropzoneProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -6,17 +6,14 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { useFileUploadContext } from './use-file-upload-context.js';
|
|
8
8
|
|
|
9
|
-
const FileUploadDropzone = forwardRef(
|
|
10
|
-
|
|
11
|
-
"disableClick"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
);
|
|
18
|
-
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
19
|
-
});
|
|
9
|
+
const FileUploadDropzone = forwardRef(
|
|
10
|
+
(props, ref) => {
|
|
11
|
+
const [dropzoneProps, localProps] = createSplitProps()(props, ["disableClick"]);
|
|
12
|
+
const fileUpload = useFileUploadContext();
|
|
13
|
+
const mergedProps = mergeProps(fileUpload.getDropzoneProps(dropzoneProps), localProps);
|
|
14
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
15
|
+
}
|
|
16
|
+
);
|
|
20
17
|
FileUploadDropzone.displayName = "FileUploadDropzone";
|
|
21
18
|
|
|
22
19
|
export { FileUploadDropzone };
|
|
@@ -14,10 +14,7 @@ const FileUploadItemPreviewImage = react.forwardRef((props, ref) => {
|
|
|
14
14
|
const [url, setUrl] = react.useState("");
|
|
15
15
|
const fileUpload = useFileUploadContext.useFileUploadContext();
|
|
16
16
|
const itemProps = useFileUploadItemPropsContext.useFileUploadItemPropsContext();
|
|
17
|
-
const mergedProps = react$1.mergeProps(
|
|
18
|
-
fileUpload.getItemPreviewImageProps({ ...itemProps, url }),
|
|
19
|
-
props
|
|
20
|
-
);
|
|
17
|
+
const mergedProps = react$1.mergeProps(fileUpload.getItemPreviewImageProps({ ...itemProps, url }), props);
|
|
21
18
|
react.useEffect(() => {
|
|
22
19
|
return fileUpload.createFileUrl(itemProps.file, (url2) => setUrl(url2));
|
|
23
20
|
}, [itemProps, fileUpload]);
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface FileUploadItemPreviewImageBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface FileUploadItemPreviewImageProps extends HTMLProps<
|
|
5
|
+
export interface FileUploadItemPreviewImageProps extends HTMLProps<'img'>, FileUploadItemPreviewImageBaseProps {
|
|
6
6
|
}
|
|
7
7
|
export declare const FileUploadItemPreviewImage: ForwardRefExoticComponent<FileUploadItemPreviewImageProps & RefAttributes<HTMLImageElement>>;
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface FileUploadItemPreviewImageBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface FileUploadItemPreviewImageProps extends HTMLProps<
|
|
5
|
+
export interface FileUploadItemPreviewImageProps extends HTMLProps<'img'>, FileUploadItemPreviewImageBaseProps {
|
|
6
6
|
}
|
|
7
7
|
export declare const FileUploadItemPreviewImage: ForwardRefExoticComponent<FileUploadItemPreviewImageProps & RefAttributes<HTMLImageElement>>;
|
|
@@ -10,10 +10,7 @@ const FileUploadItemPreviewImage = forwardRef((props, ref) => {
|
|
|
10
10
|
const [url, setUrl] = useState("");
|
|
11
11
|
const fileUpload = useFileUploadContext();
|
|
12
12
|
const itemProps = useFileUploadItemPropsContext();
|
|
13
|
-
const mergedProps = mergeProps(
|
|
14
|
-
fileUpload.getItemPreviewImageProps({ ...itemProps, url }),
|
|
15
|
-
props
|
|
16
|
-
);
|
|
13
|
+
const mergedProps = mergeProps(fileUpload.getItemPreviewImageProps({ ...itemProps, url }), props);
|
|
17
14
|
useEffect(() => {
|
|
18
15
|
return fileUpload.createFileUrl(itemProps.file, (url2) => setUrl(url2));
|
|
19
16
|
}, [itemProps, fileUpload]);
|
|
@@ -226,6 +226,7 @@ const fileUploadTrigger = require('./file-upload/file-upload-trigger.cjs');
|
|
|
226
226
|
const useFileUpload = require('./file-upload/use-file-upload.cjs');
|
|
227
227
|
const useFileUploadContext = require('./file-upload/use-file-upload-context.cjs');
|
|
228
228
|
const fileUpload$1 = require('./file-upload/file-upload.cjs');
|
|
229
|
+
const focusTrap = require('./focus-trap/focus-trap.cjs');
|
|
229
230
|
const formatByte = require('./format/format-byte.cjs');
|
|
230
231
|
const formatNumber = require('./format/format-number.cjs');
|
|
231
232
|
const format = require('./format/format.cjs');
|
|
@@ -872,6 +873,7 @@ exports.FileUploadTrigger = fileUploadTrigger.FileUploadTrigger;
|
|
|
872
873
|
exports.useFileUpload = useFileUpload.useFileUpload;
|
|
873
874
|
exports.useFileUploadContext = useFileUploadContext.useFileUploadContext;
|
|
874
875
|
exports.FileUpload = fileUpload$1;
|
|
876
|
+
exports.FocusTrap = focusTrap.FocusTrap;
|
|
875
877
|
exports.FormatByte = formatByte.FormatByte;
|
|
876
878
|
exports.FormatNumber = formatNumber.FormatNumber;
|
|
877
879
|
exports.Format = format;
|
package/dist/components/index.js
CHANGED
|
@@ -236,6 +236,7 @@ export { useFileUpload } from './file-upload/use-file-upload.js';
|
|
|
236
236
|
export { useFileUploadContext } from './file-upload/use-file-upload-context.js';
|
|
237
237
|
import * as fileUpload from './file-upload/file-upload.js';
|
|
238
238
|
export { fileUpload as FileUpload };
|
|
239
|
+
export { FocusTrap } from './focus-trap/focus-trap.js';
|
|
239
240
|
export { FormatByte } from './format/format-byte.js';
|
|
240
241
|
export { FormatNumber } from './format/format-number.js';
|
|
241
242
|
import * as format from './format/format.js';
|
|
@@ -22,7 +22,8 @@ const SelectHiddenSelect = react.forwardRef(
|
|
|
22
22
|
"option",
|
|
23
23
|
{
|
|
24
24
|
value: select.collection.getItemValue(item) ?? "",
|
|
25
|
-
disabled: select.collection.getItemDisabled(item)
|
|
25
|
+
disabled: select.collection.getItemDisabled(item),
|
|
26
|
+
children: select.collection.stringifyItem(item)
|
|
26
27
|
},
|
|
27
28
|
index
|
|
28
29
|
))
|
|
@@ -18,7 +18,8 @@ const SelectHiddenSelect = forwardRef(
|
|
|
18
18
|
"option",
|
|
19
19
|
{
|
|
20
20
|
value: select.collection.getItemValue(item) ?? "",
|
|
21
|
-
disabled: select.collection.getItemDisabled(item)
|
|
21
|
+
disabled: select.collection.getItemDisabled(item),
|
|
22
|
+
children: select.collection.stringifyItem(item)
|
|
22
23
|
},
|
|
23
24
|
index
|
|
24
25
|
))
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface TourProgressTextBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface TourProgressTextProps extends HTMLProps<
|
|
5
|
+
export interface TourProgressTextProps extends HTMLProps<'div'>, TourProgressTextBaseProps {
|
|
6
6
|
}
|
|
7
7
|
export declare const TourProgressText: ForwardRefExoticComponent<TourProgressTextProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface TourProgressTextBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface TourProgressTextProps extends HTMLProps<
|
|
5
|
+
export interface TourProgressTextProps extends HTMLProps<'div'>, TourProgressTextBaseProps {
|
|
6
6
|
}
|
|
7
7
|
export declare const TourProgressText: ForwardRefExoticComponent<TourProgressTextProps & RefAttributes<HTMLDivElement>>;
|
package/dist/index.cjs
CHANGED
|
@@ -226,6 +226,7 @@ const fileUploadTrigger = require('./components/file-upload/file-upload-trigger.
|
|
|
226
226
|
const useFileUpload = require('./components/file-upload/use-file-upload.cjs');
|
|
227
227
|
const useFileUploadContext = require('./components/file-upload/use-file-upload-context.cjs');
|
|
228
228
|
const fileUpload$1 = require('./components/file-upload/file-upload.cjs');
|
|
229
|
+
const focusTrap = require('./components/focus-trap/focus-trap.cjs');
|
|
229
230
|
const formatByte = require('./components/format/format-byte.cjs');
|
|
230
231
|
const formatNumber = require('./components/format/format-number.cjs');
|
|
231
232
|
const format = require('./components/format/format.cjs');
|
|
@@ -876,6 +877,7 @@ exports.FileUploadTrigger = fileUploadTrigger.FileUploadTrigger;
|
|
|
876
877
|
exports.useFileUpload = useFileUpload.useFileUpload;
|
|
877
878
|
exports.useFileUploadContext = useFileUploadContext.useFileUploadContext;
|
|
878
879
|
exports.FileUpload = fileUpload$1;
|
|
880
|
+
exports.FocusTrap = focusTrap.FocusTrap;
|
|
879
881
|
exports.FormatByte = formatByte.FormatByte;
|
|
880
882
|
exports.FormatNumber = formatNumber.FormatNumber;
|
|
881
883
|
exports.Format = format;
|
package/dist/index.js
CHANGED
|
@@ -236,6 +236,7 @@ export { useFileUpload } from './components/file-upload/use-file-upload.js';
|
|
|
236
236
|
export { useFileUploadContext } from './components/file-upload/use-file-upload-context.js';
|
|
237
237
|
import * as fileUpload from './components/file-upload/file-upload.js';
|
|
238
238
|
export { fileUpload as FileUpload };
|
|
239
|
+
export { FocusTrap } from './components/focus-trap/focus-trap.js';
|
|
239
240
|
export { FormatByte } from './components/format/format-byte.js';
|
|
240
241
|
export { FormatNumber } from './components/format/format-number.js';
|
|
241
242
|
import * as format from './components/format/format.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/react",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.2",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accordion",
|
|
@@ -161,90 +161,90 @@
|
|
|
161
161
|
"sideEffects": false,
|
|
162
162
|
"dependencies": {
|
|
163
163
|
"@internationalized/date": "3.7.0",
|
|
164
|
-
"@zag-js/accordion": "0.82.
|
|
165
|
-
"@zag-js/anatomy": "0.82.
|
|
166
|
-
"@zag-js/auto-resize": "0.82.
|
|
167
|
-
"@zag-js/avatar": "0.82.
|
|
168
|
-
"@zag-js/carousel": "0.82.
|
|
169
|
-
"@zag-js/checkbox": "0.82.
|
|
170
|
-
"@zag-js/clipboard": "0.82.
|
|
171
|
-
"@zag-js/collapsible": "0.82.
|
|
172
|
-
"@zag-js/collection": "0.82.
|
|
173
|
-
"@zag-js/color-picker": "0.82.
|
|
174
|
-
"@zag-js/color-utils": "0.82.
|
|
175
|
-
"@zag-js/combobox": "0.82.
|
|
176
|
-
"@zag-js/core": "0.82.
|
|
177
|
-
"@zag-js/date-picker": "0.82.
|
|
178
|
-
"@zag-js/date-utils": "0.82.
|
|
179
|
-
"@zag-js/dialog": "0.82.
|
|
180
|
-
"@zag-js/dom-query": "0.82.
|
|
181
|
-
"@zag-js/editable": "0.82.
|
|
182
|
-
"@zag-js/file-upload": "0.82.
|
|
183
|
-
"@zag-js/file-utils": "0.82.
|
|
184
|
-
"@zag-js/focus-trap": "0.82.
|
|
185
|
-
"@zag-js/highlight-word": "0.82.
|
|
186
|
-
"@zag-js/hover-card": "0.82.
|
|
187
|
-
"@zag-js/i18n-utils": "0.82.
|
|
188
|
-
"@zag-js/menu": "0.82.
|
|
189
|
-
"@zag-js/number-input": "0.82.
|
|
190
|
-
"@zag-js/pagination": "0.82.
|
|
191
|
-
"@zag-js/pin-input": "0.82.
|
|
192
|
-
"@zag-js/popover": "0.82.
|
|
193
|
-
"@zag-js/presence": "0.82.
|
|
194
|
-
"@zag-js/progress": "0.82.
|
|
195
|
-
"@zag-js/qr-code": "0.82.
|
|
196
|
-
"@zag-js/radio-group": "0.82.
|
|
197
|
-
"@zag-js/rating-group": "0.82.
|
|
198
|
-
"@zag-js/react": "0.82.
|
|
199
|
-
"@zag-js/select": "0.82.
|
|
200
|
-
"@zag-js/signature-pad": "0.82.
|
|
201
|
-
"@zag-js/slider": "0.82.
|
|
202
|
-
"@zag-js/splitter": "0.82.
|
|
203
|
-
"@zag-js/steps": "0.82.
|
|
204
|
-
"@zag-js/switch": "0.82.
|
|
205
|
-
"@zag-js/tabs": "0.82.
|
|
206
|
-
"@zag-js/tags-input": "0.82.
|
|
207
|
-
"@zag-js/time-picker": "0.82.
|
|
208
|
-
"@zag-js/timer": "0.82.
|
|
209
|
-
"@zag-js/toast": "0.82.
|
|
210
|
-
"@zag-js/toggle-group": "0.82.
|
|
211
|
-
"@zag-js/tooltip": "0.82.
|
|
212
|
-
"@zag-js/tour": "0.82.
|
|
213
|
-
"@zag-js/tree-view": "0.82.
|
|
214
|
-
"@zag-js/types": "0.82.
|
|
164
|
+
"@zag-js/accordion": "0.82.2",
|
|
165
|
+
"@zag-js/anatomy": "0.82.2",
|
|
166
|
+
"@zag-js/auto-resize": "0.82.2",
|
|
167
|
+
"@zag-js/avatar": "0.82.2",
|
|
168
|
+
"@zag-js/carousel": "0.82.2",
|
|
169
|
+
"@zag-js/checkbox": "0.82.2",
|
|
170
|
+
"@zag-js/clipboard": "0.82.2",
|
|
171
|
+
"@zag-js/collapsible": "0.82.2",
|
|
172
|
+
"@zag-js/collection": "0.82.2",
|
|
173
|
+
"@zag-js/color-picker": "0.82.2",
|
|
174
|
+
"@zag-js/color-utils": "0.82.2",
|
|
175
|
+
"@zag-js/combobox": "0.82.2",
|
|
176
|
+
"@zag-js/core": "0.82.2",
|
|
177
|
+
"@zag-js/date-picker": "0.82.2",
|
|
178
|
+
"@zag-js/date-utils": "0.82.2",
|
|
179
|
+
"@zag-js/dialog": "0.82.2",
|
|
180
|
+
"@zag-js/dom-query": "0.82.2",
|
|
181
|
+
"@zag-js/editable": "0.82.2",
|
|
182
|
+
"@zag-js/file-upload": "0.82.2",
|
|
183
|
+
"@zag-js/file-utils": "0.82.2",
|
|
184
|
+
"@zag-js/focus-trap": "0.82.2",
|
|
185
|
+
"@zag-js/highlight-word": "0.82.2",
|
|
186
|
+
"@zag-js/hover-card": "0.82.2",
|
|
187
|
+
"@zag-js/i18n-utils": "0.82.2",
|
|
188
|
+
"@zag-js/menu": "0.82.2",
|
|
189
|
+
"@zag-js/number-input": "0.82.2",
|
|
190
|
+
"@zag-js/pagination": "0.82.2",
|
|
191
|
+
"@zag-js/pin-input": "0.82.2",
|
|
192
|
+
"@zag-js/popover": "0.82.2",
|
|
193
|
+
"@zag-js/presence": "0.82.2",
|
|
194
|
+
"@zag-js/progress": "0.82.2",
|
|
195
|
+
"@zag-js/qr-code": "0.82.2",
|
|
196
|
+
"@zag-js/radio-group": "0.82.2",
|
|
197
|
+
"@zag-js/rating-group": "0.82.2",
|
|
198
|
+
"@zag-js/react": "0.82.2",
|
|
199
|
+
"@zag-js/select": "0.82.2",
|
|
200
|
+
"@zag-js/signature-pad": "0.82.2",
|
|
201
|
+
"@zag-js/slider": "0.82.2",
|
|
202
|
+
"@zag-js/splitter": "0.82.2",
|
|
203
|
+
"@zag-js/steps": "0.82.2",
|
|
204
|
+
"@zag-js/switch": "0.82.2",
|
|
205
|
+
"@zag-js/tabs": "0.82.2",
|
|
206
|
+
"@zag-js/tags-input": "0.82.2",
|
|
207
|
+
"@zag-js/time-picker": "0.82.2",
|
|
208
|
+
"@zag-js/timer": "0.82.2",
|
|
209
|
+
"@zag-js/toast": "0.82.2",
|
|
210
|
+
"@zag-js/toggle-group": "0.82.2",
|
|
211
|
+
"@zag-js/tooltip": "0.82.2",
|
|
212
|
+
"@zag-js/tour": "0.82.2",
|
|
213
|
+
"@zag-js/tree-view": "0.82.2",
|
|
214
|
+
"@zag-js/types": "0.82.2"
|
|
215
215
|
},
|
|
216
216
|
"devDependencies": {
|
|
217
217
|
"@biomejs/biome": "1.9.4",
|
|
218
|
-
"@release-it/keep-a-changelog": "
|
|
219
|
-
"@storybook/addon-a11y": "8.
|
|
220
|
-
"@storybook/addon-essentials": "8.
|
|
221
|
-
"@storybook/react-vite": "8.
|
|
222
|
-
"@storybook/react": "8.
|
|
218
|
+
"@release-it/keep-a-changelog": "6.0.0",
|
|
219
|
+
"@storybook/addon-a11y": "8.5.6",
|
|
220
|
+
"@storybook/addon-essentials": "8.5.6",
|
|
221
|
+
"@storybook/react-vite": "8.5.6",
|
|
222
|
+
"@storybook/react": "8.5.6",
|
|
223
223
|
"@testing-library/dom": "10.4.0",
|
|
224
224
|
"@testing-library/jest-dom": "6.6.3",
|
|
225
|
-
"@testing-library/react": "16.
|
|
226
|
-
"@testing-library/user-event": "14.
|
|
225
|
+
"@testing-library/react": "16.2.0",
|
|
226
|
+
"@testing-library/user-event": "14.6.1",
|
|
227
227
|
"@types/jsdom": "21.1.7",
|
|
228
|
-
"@types/react": "19.0.
|
|
228
|
+
"@types/react": "19.0.9",
|
|
229
229
|
"@types/react-dom": "19.0.3",
|
|
230
230
|
"@vitejs/plugin-react": "4.3.4",
|
|
231
|
-
"@zag-js/stringify-state": "0.82.
|
|
231
|
+
"@zag-js/stringify-state": "0.82.2",
|
|
232
232
|
"clean-package": "2.2.0",
|
|
233
|
-
"globby": "14.0
|
|
234
|
-
"jsdom": "
|
|
235
|
-
"lucide-react": "0.
|
|
233
|
+
"globby": "14.1.0",
|
|
234
|
+
"jsdom": "26.0.0",
|
|
235
|
+
"lucide-react": "0.475.0",
|
|
236
236
|
"react": "19.0.0",
|
|
237
237
|
"react-dom": "19.0.0",
|
|
238
238
|
"react-frame-component": "5.2.7",
|
|
239
239
|
"react-hook-form": "7.54.2",
|
|
240
|
-
"release-it": "
|
|
240
|
+
"release-it": "18.1.2",
|
|
241
241
|
"resize-observer-polyfill": "1.5.1",
|
|
242
|
-
"storybook": "8.
|
|
242
|
+
"storybook": "8.5.6",
|
|
243
243
|
"typescript": "5.7.3",
|
|
244
|
-
"vite": "5.4.
|
|
244
|
+
"vite": "5.4.14",
|
|
245
245
|
"vite-plugin-dts": "4.5.0",
|
|
246
|
-
"vitest": "
|
|
247
|
-
"vitest-axe": "1.0.0-pre.
|
|
246
|
+
"vitest": "3.0.5",
|
|
247
|
+
"vitest-axe": "1.0.0-pre.5"
|
|
248
248
|
},
|
|
249
249
|
"peerDependencies": {
|
|
250
250
|
"react": ">=18.0.0",
|