@ark-ui/react 5.28.0 → 5.29.1
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/accordion/accordion-item.cjs +3 -1
- package/dist/components/accordion/accordion-item.js +3 -1
- package/dist/components/accordion/accordion-root-provider.cjs +2 -1
- package/dist/components/accordion/accordion-root-provider.js +2 -1
- package/dist/components/accordion/accordion-root.cjs +2 -1
- package/dist/components/accordion/accordion-root.js +2 -1
- package/dist/components/angle-slider/angle-slider-marker.cjs +3 -2
- package/dist/components/angle-slider/angle-slider-marker.js +3 -2
- package/dist/components/angle-slider/angle-slider-root-provider.cjs +2 -1
- package/dist/components/angle-slider/angle-slider-root-provider.js +2 -1
- package/dist/components/angle-slider/angle-slider-root.cjs +2 -1
- package/dist/components/angle-slider/angle-slider-root.js +2 -1
- package/dist/components/avatar/avatar-root-provider.cjs +2 -1
- package/dist/components/avatar/avatar-root-provider.js +2 -1
- package/dist/components/avatar/avatar-root.cjs +2 -1
- package/dist/components/avatar/avatar-root.js +2 -1
- package/dist/components/bottom-sheet/bottom-sheet-content.cjs +2 -1
- package/dist/components/bottom-sheet/bottom-sheet-content.js +2 -1
- package/dist/components/carousel/carousel-indicator.cjs +2 -1
- package/dist/components/carousel/carousel-indicator.js +2 -1
- package/dist/components/carousel/carousel-item.cjs +2 -1
- package/dist/components/carousel/carousel-item.js +2 -1
- package/dist/components/carousel/carousel-root-provider.cjs +2 -1
- package/dist/components/carousel/carousel-root-provider.js +2 -1
- package/dist/components/carousel/carousel-root.cjs +3 -1
- package/dist/components/carousel/carousel-root.js +3 -1
- package/dist/components/checkbox/checkbox-group-provider.cjs +2 -1
- package/dist/components/checkbox/checkbox-group-provider.js +2 -1
- package/dist/components/checkbox/checkbox-group.cjs +2 -1
- package/dist/components/checkbox/checkbox-group.js +2 -1
- package/dist/components/checkbox/checkbox-root-provider.cjs +2 -1
- package/dist/components/checkbox/checkbox-root-provider.js +2 -1
- package/dist/components/checkbox/checkbox-root.cjs +2 -1
- package/dist/components/checkbox/checkbox-root.js +2 -1
- package/dist/components/clipboard/clipboard-root-provider.cjs +2 -1
- package/dist/components/clipboard/clipboard-root-provider.js +2 -1
- package/dist/components/clipboard/clipboard-root.cjs +2 -1
- package/dist/components/clipboard/clipboard-root.js +2 -1
- package/dist/components/collapsible/collapsible-root-provider.cjs +2 -1
- package/dist/components/collapsible/collapsible-root-provider.js +2 -1
- package/dist/components/color-picker/color-picker-area.cjs +2 -1
- package/dist/components/color-picker/color-picker-area.js +2 -1
- package/dist/components/color-picker/color-picker-channel-input.cjs +2 -1
- package/dist/components/color-picker/color-picker-channel-input.js +2 -1
- package/dist/components/color-picker/color-picker-channel-slider.cjs +2 -1
- package/dist/components/color-picker/color-picker-channel-slider.js +2 -1
- package/dist/components/color-picker/color-picker-root-provider.cjs +2 -1
- package/dist/components/color-picker/color-picker-root-provider.js +2 -1
- package/dist/components/color-picker/color-picker-root.cjs +2 -1
- package/dist/components/color-picker/color-picker-root.js +2 -1
- package/dist/components/color-picker/color-picker-swatch-trigger.cjs +2 -1
- package/dist/components/color-picker/color-picker-swatch-trigger.js +2 -1
- package/dist/components/color-picker/color-picker-swatch.cjs +2 -1
- package/dist/components/color-picker/color-picker-swatch.js +2 -1
- package/dist/components/color-picker/color-picker-transparency-grid.cjs +2 -1
- package/dist/components/color-picker/color-picker-transparency-grid.js +2 -1
- package/dist/components/color-picker/color-picker-value-swatch.cjs +2 -1
- package/dist/components/color-picker/color-picker-value-swatch.js +2 -1
- package/dist/components/color-picker/color-picker-view.cjs +2 -1
- package/dist/components/color-picker/color-picker-view.js +2 -1
- package/dist/components/combobox/combobox-item-group.cjs +2 -1
- package/dist/components/combobox/combobox-item-group.js +2 -1
- package/dist/components/combobox/combobox-item.cjs +2 -1
- package/dist/components/combobox/combobox-item.js +2 -1
- package/dist/components/combobox/combobox-trigger.cjs +2 -1
- package/dist/components/combobox/combobox-trigger.js +2 -1
- package/dist/components/date-picker/date-picker-input.cjs +2 -1
- package/dist/components/date-picker/date-picker-input.js +2 -1
- package/dist/components/date-picker/date-picker-preset-trigger.cjs +2 -1
- package/dist/components/date-picker/date-picker-preset-trigger.js +2 -1
- package/dist/components/date-picker/date-picker-root-provider.cjs +2 -1
- package/dist/components/date-picker/date-picker-root-provider.js +2 -1
- package/dist/components/date-picker/date-picker-root.cjs +2 -1
- package/dist/components/date-picker/date-picker-root.js +2 -1
- package/dist/components/date-picker/date-picker-table-cell.cjs +2 -6
- package/dist/components/date-picker/date-picker-table-cell.js +2 -6
- package/dist/components/date-picker/date-picker-table.cjs +2 -1
- package/dist/components/date-picker/date-picker-table.js +2 -1
- package/dist/components/date-picker/date-picker-view.cjs +2 -1
- package/dist/components/date-picker/date-picker-view.js +2 -1
- package/dist/components/editable/editable-root-provider.cjs +2 -1
- package/dist/components/editable/editable-root-provider.js +2 -1
- package/dist/components/editable/editable-root.cjs +2 -1
- package/dist/components/editable/editable-root.js +2 -1
- package/dist/components/field/field-root-provider.cjs +2 -1
- package/dist/components/field/field-root-provider.js +2 -1
- package/dist/components/field/field-root.cjs +2 -1
- package/dist/components/field/field-root.js +2 -1
- package/dist/components/fieldset/fieldset-root-provider.cjs +2 -1
- package/dist/components/fieldset/fieldset-root-provider.js +2 -1
- package/dist/components/fieldset/fieldset-root.cjs +2 -1
- package/dist/components/fieldset/fieldset-root.js +2 -1
- package/dist/components/fieldset/use-fieldset.cjs +32 -46
- package/dist/components/fieldset/use-fieldset.js +33 -47
- package/dist/components/file-upload/file-upload-dropzone.cjs +2 -1
- package/dist/components/file-upload/file-upload-dropzone.js +2 -1
- package/dist/components/file-upload/file-upload-item-group.cjs +2 -1
- package/dist/components/file-upload/file-upload-item-group.js +2 -1
- package/dist/components/file-upload/file-upload-item.cjs +2 -1
- package/dist/components/file-upload/file-upload-item.js +2 -1
- package/dist/components/file-upload/file-upload-root-provider.cjs +2 -1
- package/dist/components/file-upload/file-upload-root-provider.js +2 -1
- package/dist/components/file-upload/file-upload-root.cjs +2 -1
- package/dist/components/file-upload/file-upload-root.js +2 -1
- package/dist/components/floating-panel/floating-panel-resize-trigger.cjs +2 -1
- package/dist/components/floating-panel/floating-panel-resize-trigger.js +2 -1
- package/dist/components/floating-panel/floating-panel-root-provider.cjs +2 -1
- package/dist/components/floating-panel/floating-panel-root-provider.js +2 -1
- package/dist/components/floating-panel/floating-panel-root.cjs +2 -1
- package/dist/components/floating-panel/floating-panel-root.js +2 -1
- package/dist/components/floating-panel/floating-panel-stage-trigger.cjs +2 -1
- package/dist/components/floating-panel/floating-panel-stage-trigger.js +2 -1
- package/dist/components/focus-trap/focus-trap.cjs +2 -1
- package/dist/components/focus-trap/focus-trap.js +2 -1
- package/dist/components/highlight/highlight.cjs +2 -1
- package/dist/components/highlight/highlight.js +2 -1
- package/dist/components/image-cropper/image-cropper-root-provider.cjs +2 -1
- package/dist/components/image-cropper/image-cropper-root-provider.js +2 -1
- package/dist/components/image-cropper/image-cropper-root.cjs +2 -1
- package/dist/components/image-cropper/image-cropper-root.js +2 -1
- package/dist/components/index.cjs +11 -5
- package/dist/components/index.js +2 -1
- package/dist/components/listbox/listbox-input.cjs +2 -1
- package/dist/components/listbox/listbox-input.js +2 -1
- package/dist/components/listbox/listbox-item-group.cjs +2 -1
- package/dist/components/listbox/listbox-item-group.js +2 -1
- package/dist/components/listbox/listbox-item.cjs +2 -1
- package/dist/components/listbox/listbox-item.js +2 -1
- package/dist/components/marquee/marquee-edge.cjs +2 -1
- package/dist/components/marquee/marquee-edge.js +2 -1
- package/dist/components/marquee/marquee-root-provider.cjs +2 -1
- package/dist/components/marquee/marquee-root-provider.js +2 -1
- package/dist/components/marquee/marquee-root.cjs +2 -1
- package/dist/components/marquee/marquee-root.js +2 -1
- package/dist/components/menu/menu-checkbox-item.cjs +2 -1
- package/dist/components/menu/menu-checkbox-item.js +2 -1
- package/dist/components/menu/menu-item-group.cjs +2 -1
- package/dist/components/menu/menu-item-group.js +2 -1
- package/dist/components/menu/menu-item.cjs +2 -1
- package/dist/components/menu/menu-item.js +2 -1
- package/dist/components/menu/menu-radio-item-group.cjs +2 -5
- package/dist/components/menu/menu-radio-item-group.js +2 -5
- package/dist/components/menu/menu-radio-item.cjs +2 -1
- package/dist/components/menu/menu-radio-item.js +2 -1
- package/dist/components/menu/menu-root.cjs +2 -1
- package/dist/components/menu/menu-root.js +2 -1
- package/dist/components/number-input/number-input-root-provider.cjs +2 -1
- package/dist/components/number-input/number-input-root-provider.js +2 -1
- package/dist/components/number-input/number-input-root.cjs +2 -1
- package/dist/components/number-input/number-input-root.js +2 -1
- package/dist/components/pagination/pagination-ellipsis.cjs +2 -1
- package/dist/components/pagination/pagination-ellipsis.js +2 -1
- package/dist/components/pagination/pagination-item.cjs +2 -1
- package/dist/components/pagination/pagination-item.js +2 -1
- package/dist/components/pagination/pagination-root-provider.cjs +2 -1
- package/dist/components/pagination/pagination-root-provider.js +2 -1
- package/dist/components/pagination/pagination-root.cjs +2 -1
- package/dist/components/pagination/pagination-root.js +2 -1
- package/dist/components/password-input/password-input-root.cjs +2 -1
- package/dist/components/password-input/password-input-root.js +2 -1
- package/dist/components/pin-input/pin-input-input.cjs +2 -1
- package/dist/components/pin-input/pin-input-input.js +2 -1
- package/dist/components/pin-input/pin-input-root-provider.cjs +2 -1
- package/dist/components/pin-input/pin-input-root-provider.js +2 -1
- package/dist/components/pin-input/pin-input-root.cjs +2 -1
- package/dist/components/pin-input/pin-input-root.js +2 -1
- package/dist/components/progress/progress-root-provider.cjs +2 -1
- package/dist/components/progress/progress-root-provider.js +2 -1
- package/dist/components/progress/progress-root.cjs +2 -1
- package/dist/components/progress/progress-root.js +2 -1
- package/dist/components/progress/progress-view.cjs +2 -1
- package/dist/components/progress/progress-view.js +2 -1
- package/dist/components/qr-code/qr-code-download-trigger.cjs +2 -5
- package/dist/components/qr-code/qr-code-download-trigger.js +2 -5
- package/dist/components/qr-code/qr-code-root-provider.cjs +2 -1
- package/dist/components/qr-code/qr-code-root-provider.js +2 -1
- package/dist/components/qr-code/qr-code-root.cjs +2 -1
- package/dist/components/qr-code/qr-code-root.js +2 -1
- package/dist/components/radio-group/radio-group-item.cjs +2 -1
- package/dist/components/radio-group/radio-group-item.js +2 -1
- package/dist/components/radio-group/radio-group-root-provider.cjs +2 -1
- package/dist/components/radio-group/radio-group-root-provider.js +2 -1
- package/dist/components/radio-group/radio-group-root.cjs +2 -1
- package/dist/components/radio-group/radio-group-root.js +2 -1
- package/dist/components/rating-group/rating-group-item.cjs +2 -1
- package/dist/components/rating-group/rating-group-item.js +2 -1
- package/dist/components/rating-group/rating-group-root-provider.cjs +2 -1
- package/dist/components/rating-group/rating-group-root-provider.js +2 -1
- package/dist/components/rating-group/rating-group-root.cjs +2 -1
- package/dist/components/rating-group/rating-group-root.js +2 -1
- package/dist/components/scroll-area/scroll-area-root-provider.cjs +2 -1
- package/dist/components/scroll-area/scroll-area-root-provider.js +2 -1
- package/dist/components/scroll-area/scroll-area-root.cjs +2 -1
- package/dist/components/scroll-area/scroll-area-root.js +2 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.cjs +2 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.js +2 -1
- package/dist/components/segment-group/segment-group-item.cjs +2 -1
- package/dist/components/segment-group/segment-group-item.js +2 -1
- package/dist/components/segment-group/segment-group-root-provider.cjs +2 -1
- package/dist/components/segment-group/segment-group-root-provider.js +2 -1
- package/dist/components/segment-group/segment-group-root.cjs +2 -1
- package/dist/components/segment-group/segment-group-root.js +2 -1
- package/dist/components/select/select-item-group.cjs +2 -1
- package/dist/components/select/select-item-group.js +2 -1
- package/dist/components/select/select-item.cjs +2 -1
- package/dist/components/select/select-item.js +2 -1
- package/dist/components/signature-pad/signature-pad-hidden-input.cjs +2 -1
- package/dist/components/signature-pad/signature-pad-hidden-input.js +2 -1
- package/dist/components/signature-pad/signature-pad-root-provider.cjs +2 -1
- package/dist/components/signature-pad/signature-pad-root-provider.js +2 -1
- package/dist/components/signature-pad/signature-pad-root.cjs +2 -1
- package/dist/components/signature-pad/signature-pad-root.js +2 -1
- package/dist/components/slider/slider-marker.cjs +2 -1
- package/dist/components/slider/slider-marker.js +2 -1
- package/dist/components/slider/slider-root-provider.cjs +2 -1
- package/dist/components/slider/slider-root-provider.js +2 -1
- package/dist/components/slider/slider-root.cjs +2 -1
- package/dist/components/slider/slider-root.js +2 -1
- package/dist/components/slider/slider-thumb.cjs +2 -1
- package/dist/components/slider/slider-thumb.js +2 -1
- package/dist/components/splitter/index.cjs +11 -5
- package/dist/components/splitter/index.d.cts +2 -0
- package/dist/components/splitter/index.d.ts +2 -0
- package/dist/components/splitter/index.js +2 -1
- package/dist/components/splitter/splitter-panel.cjs +2 -1
- package/dist/components/splitter/splitter-panel.js +2 -1
- package/dist/components/splitter/splitter-resize-trigger-indicator.cjs +23 -0
- package/dist/components/splitter/splitter-resize-trigger-indicator.d.cts +7 -0
- package/dist/components/splitter/splitter-resize-trigger-indicator.d.ts +7 -0
- package/dist/components/splitter/splitter-resize-trigger-indicator.js +19 -0
- package/dist/components/splitter/splitter-resize-trigger.cjs +4 -2
- package/dist/components/splitter/splitter-resize-trigger.js +4 -2
- package/dist/components/splitter/splitter-root-provider.cjs +2 -1
- package/dist/components/splitter/splitter-root-provider.js +2 -1
- package/dist/components/splitter/splitter-root.cjs +2 -1
- package/dist/components/splitter/splitter-root.js +2 -1
- package/dist/components/splitter/splitter.cjs +7 -0
- package/dist/components/splitter/splitter.d.cts +2 -0
- package/dist/components/splitter/splitter.d.ts +2 -0
- package/dist/components/splitter/splitter.js +2 -0
- package/dist/components/splitter/use-splitter-resize-trigger-props-context.cjs +15 -0
- package/dist/components/splitter/use-splitter-resize-trigger-props-context.d.cts +3 -0
- package/dist/components/splitter/use-splitter-resize-trigger-props-context.d.ts +3 -0
- package/dist/components/splitter/use-splitter-resize-trigger-props-context.js +10 -0
- package/dist/components/steps/steps-content.cjs +2 -1
- package/dist/components/steps/steps-content.js +2 -1
- package/dist/components/steps/steps-item.cjs +2 -1
- package/dist/components/steps/steps-item.js +2 -1
- package/dist/components/steps/steps-root-provider.cjs +2 -1
- package/dist/components/steps/steps-root-provider.js +2 -1
- package/dist/components/steps/steps-root.cjs +2 -1
- package/dist/components/steps/steps-root.js +2 -1
- package/dist/components/switch/switch-root-provider.cjs +2 -1
- package/dist/components/switch/switch-root-provider.js +2 -1
- package/dist/components/switch/switch-root.cjs +3 -2
- package/dist/components/switch/switch-root.js +3 -2
- package/dist/components/tabs/tab-content.cjs +2 -1
- package/dist/components/tabs/tab-content.js +2 -1
- package/dist/components/tabs/tab-trigger.cjs +2 -1
- package/dist/components/tabs/tab-trigger.js +2 -1
- package/dist/components/tabs/tabs-root-provider.cjs +3 -2
- package/dist/components/tabs/tabs-root-provider.js +3 -2
- package/dist/components/tabs/tabs-root.cjs +3 -2
- package/dist/components/tabs/tabs-root.js +3 -2
- package/dist/components/tags-input/tags-input-item.cjs +2 -1
- package/dist/components/tags-input/tags-input-item.js +2 -1
- package/dist/components/tags-input/tags-input-root-provider.cjs +2 -1
- package/dist/components/tags-input/tags-input-root-provider.js +2 -1
- package/dist/components/tags-input/tags-input-root.cjs +2 -1
- package/dist/components/tags-input/tags-input-root.js +2 -1
- package/dist/components/timer/timer-action-trigger.cjs +2 -1
- package/dist/components/timer/timer-action-trigger.js +2 -1
- package/dist/components/timer/timer-item.cjs +2 -1
- package/dist/components/timer/timer-item.js +2 -1
- package/dist/components/timer/timer-root-provider.cjs +2 -1
- package/dist/components/timer/timer-root-provider.js +2 -1
- package/dist/components/timer/timer-root.cjs +2 -1
- package/dist/components/timer/timer-root.js +2 -1
- package/dist/components/toggle/toggle-root.cjs +2 -1
- package/dist/components/toggle/toggle-root.js +2 -1
- package/dist/components/toggle-group/toggle-group-item.cjs +2 -1
- package/dist/components/toggle-group/toggle-group-item.js +2 -1
- package/dist/components/toggle-group/toggle-group-root-provider.cjs +2 -1
- package/dist/components/toggle-group/toggle-group-root-provider.js +2 -1
- package/dist/components/toggle-group/toggle-group-root.cjs +2 -1
- package/dist/components/toggle-group/toggle-group-root.js +2 -1
- package/dist/components/tour/tour-action-trigger.cjs +2 -1
- package/dist/components/tour/tour-action-trigger.js +2 -1
- package/dist/components/tree-view/tree-view-node-provider.cjs +2 -1
- package/dist/components/tree-view/tree-view-node-provider.js +2 -1
- package/dist/index.cjs +11 -5
- package/dist/index.js +2 -1
- package/dist/utils/create-context.cjs +4 -1
- package/dist/utils/create-context.js +4 -1
- package/package.json +70 -70
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { useListboxContext } from './use-listbox-context.js';
|
|
8
8
|
|
|
9
|
+
const splitInputProps = createSplitProps();
|
|
9
10
|
const ListboxInput = forwardRef((props, ref) => {
|
|
10
|
-
const [inputProps, localProps] =
|
|
11
|
+
const [inputProps, localProps] = splitInputProps(props, ["autoHighlight"]);
|
|
11
12
|
const listbox = useListboxContext();
|
|
12
13
|
const mergedProps = mergeProps(listbox.getInputProps(inputProps), localProps);
|
|
13
14
|
return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });
|
|
@@ -11,9 +11,10 @@ const factory = require('../factory.cjs');
|
|
|
11
11
|
const useListboxContext = require('./use-listbox-context.cjs');
|
|
12
12
|
const useListboxItemGroupProps = require('./use-listbox-item-group-props.cjs');
|
|
13
13
|
|
|
14
|
+
const splitItemGroupProps = createSplitProps.createSplitProps();
|
|
14
15
|
const ListboxItemGroup = react.forwardRef((props, ref) => {
|
|
15
16
|
const id = react.useId();
|
|
16
|
-
const [_itemGroupProps, localProps] =
|
|
17
|
+
const [_itemGroupProps, localProps] = splitItemGroupProps(props, ["id"]);
|
|
17
18
|
const itemGroupProps = { id, ..._itemGroupProps };
|
|
18
19
|
const listbox = useListboxContext.useListboxContext();
|
|
19
20
|
const mergedProps = react$1.mergeProps(listbox.getItemGroupProps(itemGroupProps), localProps);
|
|
@@ -7,9 +7,10 @@ import { ark } from '../factory.js';
|
|
|
7
7
|
import { useListboxContext } from './use-listbox-context.js';
|
|
8
8
|
import { ListboxItemGroupPropsProvider } from './use-listbox-item-group-props.js';
|
|
9
9
|
|
|
10
|
+
const splitItemGroupProps = createSplitProps();
|
|
10
11
|
const ListboxItemGroup = forwardRef((props, ref) => {
|
|
11
12
|
const id = useId();
|
|
12
|
-
const [_itemGroupProps, localProps] =
|
|
13
|
+
const [_itemGroupProps, localProps] = splitItemGroupProps(props, ["id"]);
|
|
13
14
|
const itemGroupProps = { id, ..._itemGroupProps };
|
|
14
15
|
const listbox = useListboxContext();
|
|
15
16
|
const mergedProps = mergeProps(listbox.getItemGroupProps(itemGroupProps), localProps);
|
|
@@ -12,8 +12,9 @@ const useListboxContext = require('./use-listbox-context.cjs');
|
|
|
12
12
|
const useListboxItemContext = require('./use-listbox-item-context.cjs');
|
|
13
13
|
const useListboxItemPropsContext = require('./use-listbox-item-props-context.cjs');
|
|
14
14
|
|
|
15
|
+
const splitItemProps = createSplitProps.createSplitProps();
|
|
15
16
|
const ListboxItem = react.forwardRef((props, ref) => {
|
|
16
|
-
const [itemProps, localProps] =
|
|
17
|
+
const [itemProps, localProps] = splitItemProps(props, ["item", "highlightOnHover"]);
|
|
17
18
|
const listbox = useListboxContext.useListboxContext();
|
|
18
19
|
const mergedProps = react$1.mergeProps(listbox.getItemProps(itemProps), localProps);
|
|
19
20
|
const itemState = listbox.getItemState(itemProps);
|
|
@@ -8,8 +8,9 @@ import { useListboxContext } from './use-listbox-context.js';
|
|
|
8
8
|
import { ListboxItemProvider } from './use-listbox-item-context.js';
|
|
9
9
|
import { ListboxItemPropsProvider } from './use-listbox-item-props-context.js';
|
|
10
10
|
|
|
11
|
+
const splitItemProps = createSplitProps();
|
|
11
12
|
const ListboxItem = forwardRef((props, ref) => {
|
|
12
|
-
const [itemProps, localProps] =
|
|
13
|
+
const [itemProps, localProps] = splitItemProps(props, ["item", "highlightOnHover"]);
|
|
13
14
|
const listbox = useListboxContext();
|
|
14
15
|
const mergedProps = mergeProps(listbox.getItemProps(itemProps), localProps);
|
|
15
16
|
const itemState = listbox.getItemState(itemProps);
|
|
@@ -10,8 +10,9 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const useMarqueeContext = require('./use-marquee-context.cjs');
|
|
12
12
|
|
|
13
|
+
const splitEdgeProps = createSplitProps.createSplitProps();
|
|
13
14
|
const MarqueeEdge = react.forwardRef((props, ref) => {
|
|
14
|
-
const [edgeProps, localProps] =
|
|
15
|
+
const [edgeProps, localProps] = splitEdgeProps(props, ["side"]);
|
|
15
16
|
const marquee = useMarqueeContext.useMarqueeContext();
|
|
16
17
|
const mergedProps = react$1.mergeProps(marquee.getEdgeProps(edgeProps), localProps);
|
|
17
18
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { useMarqueeContext } from './use-marquee-context.js';
|
|
8
8
|
|
|
9
|
+
const splitEdgeProps = createSplitProps();
|
|
9
10
|
const MarqueeEdge = forwardRef((props, ref) => {
|
|
10
|
-
const [edgeProps, localProps] =
|
|
11
|
+
const [edgeProps, localProps] = splitEdgeProps(props, ["side"]);
|
|
11
12
|
const marquee = useMarqueeContext();
|
|
12
13
|
const mergedProps = mergeProps(marquee.getEdgeProps(edgeProps), localProps);
|
|
13
14
|
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
@@ -10,8 +10,9 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const useMarqueeContext = require('./use-marquee-context.cjs');
|
|
12
12
|
|
|
13
|
+
const splitRootProviderProps = createSplitProps.createSplitProps();
|
|
13
14
|
const MarqueeRootProvider = react.forwardRef((props, ref) => {
|
|
14
|
-
const [{ value: marquee }, localProps] =
|
|
15
|
+
const [{ value: marquee }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
15
16
|
const mergedProps = react$1.mergeProps(marquee.getRootProps(), localProps);
|
|
16
17
|
return /* @__PURE__ */ jsxRuntime.jsx(useMarqueeContext.MarqueeProvider, { value: marquee, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
17
18
|
});
|
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { MarqueeProvider } from './use-marquee-context.js';
|
|
8
8
|
|
|
9
|
+
const splitRootProviderProps = createSplitProps();
|
|
9
10
|
const MarqueeRootProvider = forwardRef((props, ref) => {
|
|
10
|
-
const [{ value: marquee }, localProps] =
|
|
11
|
+
const [{ value: marquee }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
11
12
|
const mergedProps = mergeProps(marquee.getRootProps(), localProps);
|
|
12
13
|
return /* @__PURE__ */ jsx(MarqueeProvider, { value: marquee, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });
|
|
13
14
|
});
|
|
@@ -11,8 +11,9 @@ const factory = require('../factory.cjs');
|
|
|
11
11
|
const useMarquee = require('./use-marquee.cjs');
|
|
12
12
|
const useMarqueeContext = require('./use-marquee-context.cjs');
|
|
13
13
|
|
|
14
|
+
const splitRootProps = createSplitProps.createSplitProps();
|
|
14
15
|
const MarqueeRoot = react.forwardRef((props, ref) => {
|
|
15
|
-
const [useMarqueeProps, localProps] =
|
|
16
|
+
const [useMarqueeProps, localProps] = splitRootProps(props, [
|
|
16
17
|
"autoFill",
|
|
17
18
|
"defaultPaused",
|
|
18
19
|
"delay",
|
|
@@ -7,8 +7,9 @@ import { ark } from '../factory.js';
|
|
|
7
7
|
import { useMarquee } from './use-marquee.js';
|
|
8
8
|
import { MarqueeProvider } from './use-marquee-context.js';
|
|
9
9
|
|
|
10
|
+
const splitRootProps = createSplitProps();
|
|
10
11
|
const MarqueeRoot = forwardRef((props, ref) => {
|
|
11
|
-
const [useMarqueeProps, localProps] =
|
|
12
|
+
const [useMarqueeProps, localProps] = splitRootProps(props, [
|
|
12
13
|
"autoFill",
|
|
13
14
|
"defaultPaused",
|
|
14
15
|
"delay",
|
|
@@ -12,8 +12,9 @@ const useMenuContext = require('./use-menu-context.cjs');
|
|
|
12
12
|
const useMenuItemContext = require('./use-menu-item-context.cjs');
|
|
13
13
|
const useMenuOptionItemPropsContext = require('./use-menu-option-item-props-context.cjs');
|
|
14
14
|
|
|
15
|
+
const splitOptionItemProps = createSplitProps.createSplitProps();
|
|
15
16
|
const MenuCheckboxItem = react.forwardRef((props, ref) => {
|
|
16
|
-
const [partialOptionItemProps, localProps] =
|
|
17
|
+
const [partialOptionItemProps, localProps] = splitOptionItemProps(props, [
|
|
17
18
|
"checked",
|
|
18
19
|
"closeOnSelect",
|
|
19
20
|
"disabled",
|
|
@@ -8,8 +8,9 @@ import { useMenuContext } from './use-menu-context.js';
|
|
|
8
8
|
import { MenuItemProvider } from './use-menu-item-context.js';
|
|
9
9
|
import { MenuItemPropsProvider } from './use-menu-option-item-props-context.js';
|
|
10
10
|
|
|
11
|
+
const splitOptionItemProps = createSplitProps();
|
|
11
12
|
const MenuCheckboxItem = forwardRef((props, ref) => {
|
|
12
|
-
const [partialOptionItemProps, localProps] =
|
|
13
|
+
const [partialOptionItemProps, localProps] = splitOptionItemProps(props, [
|
|
13
14
|
"checked",
|
|
14
15
|
"closeOnSelect",
|
|
15
16
|
"disabled",
|
|
@@ -11,8 +11,9 @@ const factory = require('../factory.cjs');
|
|
|
11
11
|
const useMenuContext = require('./use-menu-context.cjs');
|
|
12
12
|
const useMenuItemGroupContext = require('./use-menu-item-group-context.cjs');
|
|
13
13
|
|
|
14
|
+
const splitItemGroupProps = createSplitProps.createSplitProps();
|
|
14
15
|
const MenuItemGroup = react.forwardRef((props, ref) => {
|
|
15
|
-
const [optionalItemGroupProps, localProps] =
|
|
16
|
+
const [optionalItemGroupProps, localProps] = splitItemGroupProps(props, ["id"]);
|
|
16
17
|
const menu = useMenuContext.useMenuContext();
|
|
17
18
|
const id = react.useId();
|
|
18
19
|
const itemGroupProps = { id, ...optionalItemGroupProps };
|
|
@@ -7,8 +7,9 @@ import { ark } from '../factory.js';
|
|
|
7
7
|
import { useMenuContext } from './use-menu-context.js';
|
|
8
8
|
import { MenuItemGroupProvider } from './use-menu-item-group-context.js';
|
|
9
9
|
|
|
10
|
+
const splitItemGroupProps = createSplitProps();
|
|
10
11
|
const MenuItemGroup = forwardRef((props, ref) => {
|
|
11
|
-
const [optionalItemGroupProps, localProps] =
|
|
12
|
+
const [optionalItemGroupProps, localProps] = splitItemGroupProps(props, ["id"]);
|
|
12
13
|
const menu = useMenuContext();
|
|
13
14
|
const id = useId();
|
|
14
15
|
const itemGroupProps = { id, ...optionalItemGroupProps };
|
|
@@ -12,8 +12,9 @@ const useMenuContext = require('./use-menu-context.cjs');
|
|
|
12
12
|
const useMenuItemContext = require('./use-menu-item-context.cjs');
|
|
13
13
|
const useMenuOptionItemPropsContext = require('./use-menu-option-item-props-context.cjs');
|
|
14
14
|
|
|
15
|
+
const splitItemBaseProps = createSplitProps.createSplitProps();
|
|
15
16
|
const MenuItem = react.forwardRef((props, ref) => {
|
|
16
|
-
const [itemProps, localProps] =
|
|
17
|
+
const [itemProps, localProps] = splitItemBaseProps(props, [
|
|
17
18
|
"closeOnSelect",
|
|
18
19
|
"disabled",
|
|
19
20
|
"value",
|
|
@@ -8,8 +8,9 @@ import { useMenuContext } from './use-menu-context.js';
|
|
|
8
8
|
import { MenuItemProvider } from './use-menu-item-context.js';
|
|
9
9
|
import { MenuItemPropsProvider } from './use-menu-option-item-props-context.js';
|
|
10
10
|
|
|
11
|
+
const splitItemBaseProps = createSplitProps();
|
|
11
12
|
const MenuItem = forwardRef((props, ref) => {
|
|
12
|
-
const [itemProps, localProps] =
|
|
13
|
+
const [itemProps, localProps] = splitItemBaseProps(props, [
|
|
13
14
|
"closeOnSelect",
|
|
14
15
|
"disabled",
|
|
15
16
|
"value",
|
|
@@ -11,12 +11,9 @@ const factory = require('../factory.cjs');
|
|
|
11
11
|
const useMenuContext = require('./use-menu-context.cjs');
|
|
12
12
|
const useMenuItemGroupContext = require('./use-menu-item-group-context.cjs');
|
|
13
13
|
|
|
14
|
+
const splitItemGroupProps = createSplitProps.createSplitProps();
|
|
14
15
|
const MenuRadioItemGroup = react.forwardRef((props, ref) => {
|
|
15
|
-
const [optionalItemGroupProps, localProps] =
|
|
16
|
-
"id",
|
|
17
|
-
"onValueChange",
|
|
18
|
-
"value"
|
|
19
|
-
]);
|
|
16
|
+
const [optionalItemGroupProps, localProps] = splitItemGroupProps(props, ["id", "onValueChange", "value"]);
|
|
20
17
|
const menu = useMenuContext.useMenuContext();
|
|
21
18
|
const id = react.useId();
|
|
22
19
|
const itemGroupProps = { id, ...optionalItemGroupProps };
|
|
@@ -7,12 +7,9 @@ import { ark } from '../factory.js';
|
|
|
7
7
|
import { useMenuContext } from './use-menu-context.js';
|
|
8
8
|
import { MenuItemGroupProvider } from './use-menu-item-group-context.js';
|
|
9
9
|
|
|
10
|
+
const splitItemGroupProps = createSplitProps();
|
|
10
11
|
const MenuRadioItemGroup = forwardRef((props, ref) => {
|
|
11
|
-
const [optionalItemGroupProps, localProps] =
|
|
12
|
-
"id",
|
|
13
|
-
"onValueChange",
|
|
14
|
-
"value"
|
|
15
|
-
]);
|
|
12
|
+
const [optionalItemGroupProps, localProps] = splitItemGroupProps(props, ["id", "onValueChange", "value"]);
|
|
16
13
|
const menu = useMenuContext();
|
|
17
14
|
const id = useId();
|
|
18
15
|
const itemGroupProps = { id, ...optionalItemGroupProps };
|
|
@@ -13,8 +13,9 @@ const useMenuItemContext = require('./use-menu-item-context.cjs');
|
|
|
13
13
|
const useMenuItemGroupContext = require('./use-menu-item-group-context.cjs');
|
|
14
14
|
const useMenuOptionItemPropsContext = require('./use-menu-option-item-props-context.cjs');
|
|
15
15
|
|
|
16
|
+
const splitOptionItemProps = createSplitProps.createSplitProps();
|
|
16
17
|
const MenuRadioItem = react.forwardRef((props, ref) => {
|
|
17
|
-
const [partialItemProps, localProps] =
|
|
18
|
+
const [partialItemProps, localProps] = splitOptionItemProps(props, [
|
|
18
19
|
"closeOnSelect",
|
|
19
20
|
"disabled",
|
|
20
21
|
"value",
|
|
@@ -9,8 +9,9 @@ import { MenuItemProvider } from './use-menu-item-context.js';
|
|
|
9
9
|
import { useMenuItemGroupContext } from './use-menu-item-group-context.js';
|
|
10
10
|
import { MenuItemPropsProvider } from './use-menu-option-item-props-context.js';
|
|
11
11
|
|
|
12
|
+
const splitOptionItemProps = createSplitProps();
|
|
12
13
|
const MenuRadioItem = forwardRef((props, ref) => {
|
|
13
|
-
const [partialItemProps, localProps] =
|
|
14
|
+
const [partialItemProps, localProps] = splitOptionItemProps(props, [
|
|
14
15
|
"closeOnSelect",
|
|
15
16
|
"disabled",
|
|
16
17
|
"value",
|
|
@@ -16,9 +16,10 @@ const useMenuContext = require('./use-menu-context.cjs');
|
|
|
16
16
|
const useMenuMachineContext = require('./use-menu-machine-context.cjs');
|
|
17
17
|
const useMenuTriggerItemContext = require('./use-menu-trigger-item-context.cjs');
|
|
18
18
|
|
|
19
|
+
const splitRootProps = createSplitProps.createSplitProps();
|
|
19
20
|
const MenuRoot = (props) => {
|
|
20
21
|
const [presenceProps, menuProps] = splitPresenceProps.splitPresenceProps(props);
|
|
21
|
-
const [useMenuProps, localProps] =
|
|
22
|
+
const [useMenuProps, localProps] = splitRootProps(menuProps, [
|
|
22
23
|
"anchorPoint",
|
|
23
24
|
"aria-label",
|
|
24
25
|
"closeOnSelect",
|
|
@@ -12,9 +12,10 @@ import { useMenuContext, MenuProvider } from './use-menu-context.js';
|
|
|
12
12
|
import { useMenuMachineContext, MenuMachineProvider } from './use-menu-machine-context.js';
|
|
13
13
|
import { MenuTriggerItemProvider } from './use-menu-trigger-item-context.js';
|
|
14
14
|
|
|
15
|
+
const splitRootProps = createSplitProps();
|
|
15
16
|
const MenuRoot = (props) => {
|
|
16
17
|
const [presenceProps, menuProps] = splitPresenceProps(props);
|
|
17
|
-
const [useMenuProps, localProps] =
|
|
18
|
+
const [useMenuProps, localProps] = splitRootProps(menuProps, [
|
|
18
19
|
"anchorPoint",
|
|
19
20
|
"aria-label",
|
|
20
21
|
"closeOnSelect",
|
|
@@ -10,8 +10,9 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const useNumberInputContext = require('./use-number-input-context.cjs');
|
|
12
12
|
|
|
13
|
+
const splitRootProviderProps = createSplitProps.createSplitProps();
|
|
13
14
|
const NumberInputRootProvider = react.forwardRef((props, ref) => {
|
|
14
|
-
const [{ value: numberInput }, localProps] =
|
|
15
|
+
const [{ value: numberInput }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
15
16
|
const mergedProps = react$1.mergeProps(numberInput.getRootProps(), localProps);
|
|
16
17
|
return /* @__PURE__ */ jsxRuntime.jsx(useNumberInputContext.NumberInputProvider, { value: numberInput, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
17
18
|
});
|
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { NumberInputProvider } from './use-number-input-context.js';
|
|
8
8
|
|
|
9
|
+
const splitRootProviderProps = createSplitProps();
|
|
9
10
|
const NumberInputRootProvider = forwardRef((props, ref) => {
|
|
10
|
-
const [{ value: numberInput }, localProps] =
|
|
11
|
+
const [{ value: numberInput }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
11
12
|
const mergedProps = mergeProps(numberInput.getRootProps(), localProps);
|
|
12
13
|
return /* @__PURE__ */ jsx(NumberInputProvider, { value: numberInput, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });
|
|
13
14
|
});
|
|
@@ -11,8 +11,9 @@ const factory = require('../factory.cjs');
|
|
|
11
11
|
const useNumberInput = require('./use-number-input.cjs');
|
|
12
12
|
const useNumberInputContext = require('./use-number-input-context.cjs');
|
|
13
13
|
|
|
14
|
+
const splitRootProps = createSplitProps.createSplitProps();
|
|
14
15
|
const NumberInputRoot = react.forwardRef((props, ref) => {
|
|
15
|
-
const [useNumberInputProps, localProps] =
|
|
16
|
+
const [useNumberInputProps, localProps] = splitRootProps(props, [
|
|
16
17
|
"allowMouseWheel",
|
|
17
18
|
"allowOverflow",
|
|
18
19
|
"clampValueOnBlur",
|
|
@@ -7,8 +7,9 @@ import { ark } from '../factory.js';
|
|
|
7
7
|
import { useNumberInput } from './use-number-input.js';
|
|
8
8
|
import { NumberInputProvider } from './use-number-input-context.js';
|
|
9
9
|
|
|
10
|
+
const splitRootProps = createSplitProps();
|
|
10
11
|
const NumberInputRoot = forwardRef((props, ref) => {
|
|
11
|
-
const [useNumberInputProps, localProps] =
|
|
12
|
+
const [useNumberInputProps, localProps] = splitRootProps(props, [
|
|
12
13
|
"allowMouseWheel",
|
|
13
14
|
"allowOverflow",
|
|
14
15
|
"clampValueOnBlur",
|
|
@@ -10,8 +10,9 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const usePaginationContext = require('./use-pagination-context.cjs');
|
|
12
12
|
|
|
13
|
+
const splitEllipsisProps = createSplitProps.createSplitProps();
|
|
13
14
|
const PaginationEllipsis = react.forwardRef((props, ref) => {
|
|
14
|
-
const [ellipsisProps, localProps] =
|
|
15
|
+
const [ellipsisProps, localProps] = splitEllipsisProps(props, ["index"]);
|
|
15
16
|
const pagination = usePaginationContext.usePaginationContext();
|
|
16
17
|
const mergedProps = react$1.mergeProps(pagination.getEllipsisProps(ellipsisProps), localProps);
|
|
17
18
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { usePaginationContext } from './use-pagination-context.js';
|
|
8
8
|
|
|
9
|
+
const splitEllipsisProps = createSplitProps();
|
|
9
10
|
const PaginationEllipsis = forwardRef((props, ref) => {
|
|
10
|
-
const [ellipsisProps, localProps] =
|
|
11
|
+
const [ellipsisProps, localProps] = splitEllipsisProps(props, ["index"]);
|
|
11
12
|
const pagination = usePaginationContext();
|
|
12
13
|
const mergedProps = mergeProps(pagination.getEllipsisProps(ellipsisProps), localProps);
|
|
13
14
|
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
@@ -10,8 +10,9 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const usePaginationContext = require('./use-pagination-context.cjs');
|
|
12
12
|
|
|
13
|
+
const splitItemProps = createSplitProps.createSplitProps();
|
|
13
14
|
const PaginationItem = react.forwardRef((props, ref) => {
|
|
14
|
-
const [itemProps, localProps] =
|
|
15
|
+
const [itemProps, localProps] = splitItemProps(props, ["value", "type"]);
|
|
15
16
|
const pagination = usePaginationContext.usePaginationContext();
|
|
16
17
|
const mergedProps = react$1.mergeProps(pagination.getItemProps(itemProps), localProps);
|
|
17
18
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.button, { ...mergedProps, ref });
|
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { usePaginationContext } from './use-pagination-context.js';
|
|
8
8
|
|
|
9
|
+
const splitItemProps = createSplitProps();
|
|
9
10
|
const PaginationItem = forwardRef((props, ref) => {
|
|
10
|
-
const [itemProps, localProps] =
|
|
11
|
+
const [itemProps, localProps] = splitItemProps(props, ["value", "type"]);
|
|
11
12
|
const pagination = usePaginationContext();
|
|
12
13
|
const mergedProps = mergeProps(pagination.getItemProps(itemProps), localProps);
|
|
13
14
|
return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });
|
|
@@ -10,8 +10,9 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const usePaginationContext = require('./use-pagination-context.cjs');
|
|
12
12
|
|
|
13
|
+
const splitRootProviderProps = createSplitProps.createSplitProps();
|
|
13
14
|
const PaginationRootProvider = react.forwardRef((props, ref) => {
|
|
14
|
-
const [{ value: pagination }, localProps] =
|
|
15
|
+
const [{ value: pagination }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
15
16
|
const mergedProps = react$1.mergeProps(pagination.getRootProps(), localProps);
|
|
16
17
|
return /* @__PURE__ */ jsxRuntime.jsx(usePaginationContext.PaginationProvider, { value: pagination, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.nav, { ...mergedProps, ref }) });
|
|
17
18
|
});
|
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { PaginationProvider } from './use-pagination-context.js';
|
|
8
8
|
|
|
9
|
+
const splitRootProviderProps = createSplitProps();
|
|
9
10
|
const PaginationRootProvider = forwardRef((props, ref) => {
|
|
10
|
-
const [{ value: pagination }, localProps] =
|
|
11
|
+
const [{ value: pagination }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
11
12
|
const mergedProps = mergeProps(pagination.getRootProps(), localProps);
|
|
12
13
|
return /* @__PURE__ */ jsx(PaginationProvider, { value: pagination, children: /* @__PURE__ */ jsx(ark.nav, { ...mergedProps, ref }) });
|
|
13
14
|
});
|
|
@@ -11,8 +11,9 @@ const factory = require('../factory.cjs');
|
|
|
11
11
|
const usePagination = require('./use-pagination.cjs');
|
|
12
12
|
const usePaginationContext = require('./use-pagination-context.cjs');
|
|
13
13
|
|
|
14
|
+
const splitRootProps = createSplitProps.createSplitProps();
|
|
14
15
|
const PaginationRoot = react.forwardRef((props, ref) => {
|
|
15
|
-
const [paginationProps, localProps] =
|
|
16
|
+
const [paginationProps, localProps] = splitRootProps(props, [
|
|
16
17
|
"count",
|
|
17
18
|
"defaultPage",
|
|
18
19
|
"defaultPageSize",
|
|
@@ -7,8 +7,9 @@ import { ark } from '../factory.js';
|
|
|
7
7
|
import { usePagination } from './use-pagination.js';
|
|
8
8
|
import { PaginationProvider } from './use-pagination-context.js';
|
|
9
9
|
|
|
10
|
+
const splitRootProps = createSplitProps();
|
|
10
11
|
const PaginationRoot = forwardRef((props, ref) => {
|
|
11
|
-
const [paginationProps, localProps] =
|
|
12
|
+
const [paginationProps, localProps] = splitRootProps(props, [
|
|
12
13
|
"count",
|
|
13
14
|
"defaultPage",
|
|
14
15
|
"defaultPageSize",
|
|
@@ -11,8 +11,9 @@ const factory = require('../factory.cjs');
|
|
|
11
11
|
const usePasswordInput = require('./use-password-input.cjs');
|
|
12
12
|
const usePasswordInputContext = require('./use-password-input-context.cjs');
|
|
13
13
|
|
|
14
|
+
const splitRootProps = createSplitProps.createSplitProps();
|
|
14
15
|
const PasswordInputRoot = react.forwardRef((props, ref) => {
|
|
15
|
-
const [usePasswordInputProps, localProps] =
|
|
16
|
+
const [usePasswordInputProps, localProps] = splitRootProps(props, [
|
|
16
17
|
"autoComplete",
|
|
17
18
|
"defaultVisible",
|
|
18
19
|
"disabled",
|
|
@@ -7,8 +7,9 @@ import { ark } from '../factory.js';
|
|
|
7
7
|
import { usePasswordInput } from './use-password-input.js';
|
|
8
8
|
import { PasswordInputProvider } from './use-password-input-context.js';
|
|
9
9
|
|
|
10
|
+
const splitRootProps = createSplitProps();
|
|
10
11
|
const PasswordInputRoot = forwardRef((props, ref) => {
|
|
11
|
-
const [usePasswordInputProps, localProps] =
|
|
12
|
+
const [usePasswordInputProps, localProps] = splitRootProps(props, [
|
|
12
13
|
"autoComplete",
|
|
13
14
|
"defaultVisible",
|
|
14
15
|
"disabled",
|
|
@@ -10,8 +10,9 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const usePinInputContext = require('./use-pin-input-context.cjs');
|
|
12
12
|
|
|
13
|
+
const splitInputProps = createSplitProps.createSplitProps();
|
|
13
14
|
const PinInputInput = react.forwardRef((props, ref) => {
|
|
14
|
-
const [inputProps, localProps] =
|
|
15
|
+
const [inputProps, localProps] = splitInputProps(props, ["index"]);
|
|
15
16
|
const pinInput = usePinInputContext.usePinInputContext();
|
|
16
17
|
const mergedProps = react$1.mergeProps(pinInput.getInputProps(inputProps), localProps);
|
|
17
18
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.input, { ...mergedProps, ref });
|
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { usePinInputContext } from './use-pin-input-context.js';
|
|
8
8
|
|
|
9
|
+
const splitInputProps = createSplitProps();
|
|
9
10
|
const PinInputInput = forwardRef((props, ref) => {
|
|
10
|
-
const [inputProps, localProps] =
|
|
11
|
+
const [inputProps, localProps] = splitInputProps(props, ["index"]);
|
|
11
12
|
const pinInput = usePinInputContext();
|
|
12
13
|
const mergedProps = mergeProps(pinInput.getInputProps(inputProps), localProps);
|
|
13
14
|
return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });
|
|
@@ -10,8 +10,9 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const usePinInputContext = require('./use-pin-input-context.cjs');
|
|
12
12
|
|
|
13
|
+
const splitRootProviderProps = createSplitProps.createSplitProps();
|
|
13
14
|
const PinInputRootProvider = react.forwardRef((props, ref) => {
|
|
14
|
-
const [{ value: pinInput }, localProps] =
|
|
15
|
+
const [{ value: pinInput }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
15
16
|
const mergedProps = react$1.mergeProps(pinInput.getRootProps(), localProps);
|
|
16
17
|
return /* @__PURE__ */ jsxRuntime.jsx(usePinInputContext.PinInputProvider, { value: pinInput, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
17
18
|
});
|
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { PinInputProvider } from './use-pin-input-context.js';
|
|
8
8
|
|
|
9
|
+
const splitRootProviderProps = createSplitProps();
|
|
9
10
|
const PinInputRootProvider = forwardRef((props, ref) => {
|
|
10
|
-
const [{ value: pinInput }, localProps] =
|
|
11
|
+
const [{ value: pinInput }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
11
12
|
const mergedProps = mergeProps(pinInput.getRootProps(), localProps);
|
|
12
13
|
return /* @__PURE__ */ jsx(PinInputProvider, { value: pinInput, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });
|
|
13
14
|
});
|
|
@@ -11,8 +11,9 @@ const factory = require('../factory.cjs');
|
|
|
11
11
|
const usePinInput = require('./use-pin-input.cjs');
|
|
12
12
|
const usePinInputContext = require('./use-pin-input-context.cjs');
|
|
13
13
|
|
|
14
|
+
const splitRootProps = createSplitProps.createSplitProps();
|
|
14
15
|
const PinInputRoot = react.forwardRef((props, ref) => {
|
|
15
|
-
const [usePinInputProps, localProps] =
|
|
16
|
+
const [usePinInputProps, localProps] = splitRootProps(props, [
|
|
16
17
|
"autoFocus",
|
|
17
18
|
"blurOnComplete",
|
|
18
19
|
"count",
|
|
@@ -7,8 +7,9 @@ import { ark } from '../factory.js';
|
|
|
7
7
|
import { usePinInput } from './use-pin-input.js';
|
|
8
8
|
import { PinInputProvider } from './use-pin-input-context.js';
|
|
9
9
|
|
|
10
|
+
const splitRootProps = createSplitProps();
|
|
10
11
|
const PinInputRoot = forwardRef((props, ref) => {
|
|
11
|
-
const [usePinInputProps, localProps] =
|
|
12
|
+
const [usePinInputProps, localProps] = splitRootProps(props, [
|
|
12
13
|
"autoFocus",
|
|
13
14
|
"blurOnComplete",
|
|
14
15
|
"count",
|
|
@@ -10,8 +10,9 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const useProgressContext = require('./use-progress-context.cjs');
|
|
12
12
|
|
|
13
|
+
const splitRootProviderProps = createSplitProps.createSplitProps();
|
|
13
14
|
const ProgressRootProvider = react.forwardRef((props, ref) => {
|
|
14
|
-
const [{ value: progress }, localProps] =
|
|
15
|
+
const [{ value: progress }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
15
16
|
const mergedProps = react$1.mergeProps(progress.getRootProps(), localProps);
|
|
16
17
|
return /* @__PURE__ */ jsxRuntime.jsx(useProgressContext.ProgressProvider, { value: progress, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
17
18
|
});
|
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { ProgressProvider } from './use-progress-context.js';
|
|
8
8
|
|
|
9
|
+
const splitRootProviderProps = createSplitProps();
|
|
9
10
|
const ProgressRootProvider = forwardRef((props, ref) => {
|
|
10
|
-
const [{ value: progress }, localProps] =
|
|
11
|
+
const [{ value: progress }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
11
12
|
const mergedProps = mergeProps(progress.getRootProps(), localProps);
|
|
12
13
|
return /* @__PURE__ */ jsx(ProgressProvider, { value: progress, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });
|
|
13
14
|
});
|
|
@@ -11,8 +11,9 @@ const factory = require('../factory.cjs');
|
|
|
11
11
|
const useProgress = require('./use-progress.cjs');
|
|
12
12
|
const useProgressContext = require('./use-progress-context.cjs');
|
|
13
13
|
|
|
14
|
+
const splitRootProps = createSplitProps.createSplitProps();
|
|
14
15
|
const ProgressRoot = react.forwardRef((props, ref) => {
|
|
15
|
-
const [progressProps, localProps] =
|
|
16
|
+
const [progressProps, localProps] = splitRootProps(props, [
|
|
16
17
|
"defaultValue",
|
|
17
18
|
"formatOptions",
|
|
18
19
|
"id",
|
|
@@ -7,8 +7,9 @@ import { ark } from '../factory.js';
|
|
|
7
7
|
import { useProgress } from './use-progress.js';
|
|
8
8
|
import { ProgressProvider } from './use-progress-context.js';
|
|
9
9
|
|
|
10
|
+
const splitRootProps = createSplitProps();
|
|
10
11
|
const ProgressRoot = forwardRef((props, ref) => {
|
|
11
|
-
const [progressProps, localProps] =
|
|
12
|
+
const [progressProps, localProps] = splitRootProps(props, [
|
|
12
13
|
"defaultValue",
|
|
13
14
|
"formatOptions",
|
|
14
15
|
"id",
|
|
@@ -10,8 +10,9 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const useProgressContext = require('./use-progress-context.cjs');
|
|
12
12
|
|
|
13
|
+
const splitViewProps = createSplitProps.createSplitProps();
|
|
13
14
|
const ProgressView = react.forwardRef((props, ref) => {
|
|
14
|
-
const [viewProps, localProps] =
|
|
15
|
+
const [viewProps, localProps] = splitViewProps(props, ["state"]);
|
|
15
16
|
const progress = useProgressContext.useProgressContext();
|
|
16
17
|
const mergedProps = react$1.mergeProps(progress.getViewProps(viewProps), localProps);
|
|
17
18
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref });
|
|
@@ -6,8 +6,9 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { useProgressContext } from './use-progress-context.js';
|
|
8
8
|
|
|
9
|
+
const splitViewProps = createSplitProps();
|
|
9
10
|
const ProgressView = forwardRef((props, ref) => {
|
|
10
|
-
const [viewProps, localProps] =
|
|
11
|
+
const [viewProps, localProps] = splitViewProps(props, ["state"]);
|
|
11
12
|
const progress = useProgressContext();
|
|
12
13
|
const mergedProps = mergeProps(progress.getViewProps(viewProps), localProps);
|
|
13
14
|
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
|