@ark-ui/react 5.27.0 → 5.28.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/anatomy.cjs +7 -5
- package/dist/components/anatomy.d.cts +1 -0
- package/dist/components/anatomy.d.ts +1 -0
- package/dist/components/anatomy.js +2 -1
- package/dist/components/carousel/carousel-autoplay-indicator.cjs +20 -0
- package/dist/components/carousel/carousel-autoplay-indicator.d.cts +11 -0
- package/dist/components/carousel/carousel-autoplay-indicator.d.ts +11 -0
- package/dist/components/carousel/carousel-autoplay-indicator.js +16 -0
- package/dist/components/carousel/carousel-progress-text.cjs +24 -0
- package/dist/components/carousel/carousel-progress-text.d.cts +7 -0
- package/dist/components/carousel/carousel-progress-text.d.ts +7 -0
- package/dist/components/carousel/carousel-progress-text.js +20 -0
- package/dist/components/carousel/carousel.anatomy.cjs +10 -0
- package/dist/components/carousel/carousel.anatomy.d.cts +2 -1
- package/dist/components/carousel/carousel.anatomy.d.ts +2 -1
- package/dist/components/carousel/carousel.anatomy.js +6 -0
- package/dist/components/carousel/carousel.cjs +4 -0
- package/dist/components/carousel/carousel.d.cts +2 -0
- package/dist/components/carousel/carousel.d.ts +2 -0
- package/dist/components/carousel/carousel.js +2 -0
- package/dist/components/carousel/index.cjs +8 -7
- package/dist/components/carousel/index.d.cts +2 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/carousel/index.js +3 -1
- package/dist/components/checkbox/checkbox.anatomy.d.cts +1 -1
- package/dist/components/checkbox/checkbox.anatomy.d.ts +1 -1
- package/dist/components/collection/use-list-collection.d.cts +1 -1
- package/dist/components/collection/use-list-collection.d.ts +1 -1
- package/dist/components/color-picker/color-picker.anatomy.d.cts +1 -1
- package/dist/components/color-picker/color-picker.anatomy.d.ts +1 -1
- package/dist/components/color-picker/color-picker.d.cts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/index.d.cts +1 -1
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/combobox/combobox.anatomy.d.cts +1 -1
- package/dist/components/combobox/combobox.anatomy.d.ts +1 -1
- package/dist/components/combobox/combobox.d.cts +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/index.d.cts +1 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/date-picker/date-picker.anatomy.d.cts +1 -1
- package/dist/components/date-picker/date-picker.anatomy.d.ts +1 -1
- package/dist/components/dialog/dialog.d.cts +1 -1
- package/dist/components/dialog/dialog.d.ts +1 -1
- package/dist/components/dialog/index.d.cts +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/editable/editable.d.cts +1 -1
- package/dist/components/editable/editable.d.ts +1 -1
- package/dist/components/editable/index.d.cts +1 -1
- package/dist/components/editable/index.d.ts +1 -1
- package/dist/components/hover-card/hover-card.d.cts +1 -1
- package/dist/components/hover-card/hover-card.d.ts +1 -1
- package/dist/components/hover-card/index.d.cts +1 -1
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/image-cropper/image-cropper-context.cjs +10 -0
- package/dist/components/image-cropper/image-cropper-context.d.cts +6 -0
- package/dist/components/image-cropper/image-cropper-context.d.ts +6 -0
- package/dist/components/image-cropper/image-cropper-context.js +6 -0
- package/dist/components/image-cropper/image-cropper-grid.cjs +20 -0
- package/dist/components/image-cropper/image-cropper-grid.d.cts +8 -0
- package/dist/components/image-cropper/image-cropper-grid.d.ts +8 -0
- package/dist/components/image-cropper/image-cropper-grid.js +16 -0
- package/dist/components/image-cropper/image-cropper-handle.cjs +20 -0
- package/dist/components/image-cropper/image-cropper-handle.d.cts +8 -0
- package/dist/components/image-cropper/image-cropper-handle.d.ts +8 -0
- package/dist/components/image-cropper/image-cropper-handle.js +16 -0
- package/dist/components/image-cropper/image-cropper-image.cjs +19 -0
- package/dist/components/image-cropper/image-cropper-image.d.cts +7 -0
- package/dist/components/image-cropper/image-cropper-image.d.ts +7 -0
- package/dist/components/image-cropper/image-cropper-image.js +15 -0
- package/dist/components/image-cropper/image-cropper-root-provider.cjs +20 -0
- package/dist/components/image-cropper/image-cropper-root-provider.d.cts +12 -0
- package/dist/components/image-cropper/image-cropper-root-provider.d.ts +12 -0
- package/dist/components/image-cropper/image-cropper-root-provider.js +16 -0
- package/dist/components/image-cropper/image-cropper-root.cjs +51 -0
- package/dist/components/image-cropper/image-cropper-root.d.cts +8 -0
- package/dist/components/image-cropper/image-cropper-root.d.ts +8 -0
- package/dist/components/image-cropper/image-cropper-root.js +47 -0
- package/dist/components/image-cropper/image-cropper-selection.cjs +19 -0
- package/dist/components/image-cropper/image-cropper-selection.d.cts +7 -0
- package/dist/components/image-cropper/image-cropper-selection.d.ts +7 -0
- package/dist/components/image-cropper/image-cropper-selection.js +15 -0
- package/dist/components/image-cropper/image-cropper-viewport.cjs +19 -0
- package/dist/components/image-cropper/image-cropper-viewport.d.cts +7 -0
- package/dist/components/image-cropper/image-cropper-viewport.d.ts +7 -0
- package/dist/components/image-cropper/image-cropper-viewport.js +15 -0
- package/dist/components/image-cropper/image-cropper.anatomy.d.cts +1 -0
- package/dist/components/image-cropper/image-cropper.anatomy.d.ts +1 -0
- package/dist/components/image-cropper/image-cropper.cjs +28 -0
- package/dist/components/image-cropper/image-cropper.d.cts +10 -0
- package/dist/components/image-cropper/image-cropper.d.ts +10 -0
- package/dist/components/image-cropper/image-cropper.js +9 -0
- package/dist/components/image-cropper/index.cjs +34 -0
- package/dist/components/image-cropper/index.d.cts +13 -0
- package/dist/components/image-cropper/index.d.ts +13 -0
- package/dist/components/image-cropper/index.js +13 -0
- package/dist/components/image-cropper/use-image-cropper-context.cjs +15 -0
- package/dist/components/image-cropper/use-image-cropper-context.d.cts +5 -0
- package/dist/components/image-cropper/use-image-cropper-context.d.ts +5 -0
- package/dist/components/image-cropper/use-image-cropper-context.js +10 -0
- package/dist/components/image-cropper/use-image-cropper.cjs +45 -0
- package/dist/components/image-cropper/use-image-cropper.d.cts +8 -0
- package/dist/components/image-cropper/use-image-cropper.d.ts +8 -0
- package/dist/components/image-cropper/use-image-cropper.js +22 -0
- package/dist/components/index.cjs +37 -7
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +17 -1
- package/dist/components/listbox/listbox.anatomy.d.cts +1 -1
- package/dist/components/listbox/listbox.anatomy.d.ts +1 -1
- package/dist/components/marquee/index.cjs +2 -0
- package/dist/components/marquee/index.d.cts +1 -0
- package/dist/components/marquee/index.d.ts +1 -0
- package/dist/components/marquee/index.js +1 -0
- package/dist/components/marquee/marquee-item.cjs +19 -0
- package/dist/components/marquee/marquee-item.d.cts +7 -0
- package/dist/components/marquee/marquee-item.d.ts +7 -0
- package/dist/components/marquee/marquee-item.js +15 -0
- package/dist/components/marquee/marquee.cjs +2 -0
- package/dist/components/marquee/marquee.d.cts +1 -0
- package/dist/components/marquee/marquee.d.ts +1 -0
- package/dist/components/marquee/marquee.js +1 -0
- package/dist/components/menu/index.d.cts +1 -1
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/menu/menu.d.cts +1 -1
- package/dist/components/menu/menu.d.ts +1 -1
- package/dist/components/popover/index.d.cts +1 -1
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/popover.d.cts +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/segment-group/segment-group.anatomy.d.cts +2 -2
- package/dist/components/segment-group/segment-group.anatomy.d.ts +2 -2
- package/dist/components/select/index.d.cts +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/select.d.cts +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/tags-input/index.d.cts +1 -1
- package/dist/components/tags-input/index.d.ts +1 -1
- package/dist/components/tags-input/tags-input.d.cts +1 -1
- package/dist/components/tags-input/tags-input.d.ts +1 -1
- package/dist/components/toast/index.d.cts +2 -2
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toast/toast.d.cts +2 -0
- package/dist/components/toast/toast.d.ts +2 -0
- package/dist/components/toast/toaster.d.cts +2 -1
- package/dist/components/toast/toaster.d.ts +2 -1
- package/dist/components/tour/index.d.cts +1 -1
- package/dist/components/tour/index.d.ts +1 -1
- package/dist/components/tour/tour.anatomy.d.cts +1 -1
- package/dist/components/tour/tour.anatomy.d.ts +1 -1
- package/dist/components/tour/tour.d.cts +1 -1
- package/dist/components/tour/tour.d.ts +1 -1
- package/dist/index.cjs +37 -7
- package/dist/index.js +17 -1
- package/package.json +71 -70
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const anatomy = require('@zag-js/anatomy');
|
|
6
|
+
const carousel_anatomy = require('./carousel/carousel.anatomy.cjs');
|
|
6
7
|
const checkbox_anatomy = require('./checkbox/checkbox.anatomy.cjs');
|
|
7
8
|
const colorPicker_anatomy = require('./color-picker/color-picker.anatomy.cjs');
|
|
8
9
|
const combobox_anatomy = require('./combobox/combobox.anatomy.cjs');
|
|
@@ -17,7 +18,6 @@ const accordion = require('@zag-js/accordion');
|
|
|
17
18
|
const angleSlider = require('@zag-js/angle-slider');
|
|
18
19
|
const avatar = require('@zag-js/avatar');
|
|
19
20
|
const bottomSheet = require('@zag-js/bottom-sheet');
|
|
20
|
-
const carousel = require('@zag-js/carousel');
|
|
21
21
|
const clipboard = require('@zag-js/clipboard');
|
|
22
22
|
const collapsible = require('@zag-js/collapsible');
|
|
23
23
|
const dialog = require('@zag-js/dialog');
|
|
@@ -25,6 +25,7 @@ const editable = require('@zag-js/editable');
|
|
|
25
25
|
const fileUpload = require('@zag-js/file-upload');
|
|
26
26
|
const floatingPanel = require('@zag-js/floating-panel');
|
|
27
27
|
const hoverCard = require('@zag-js/hover-card');
|
|
28
|
+
const imageCropper = require('@zag-js/image-cropper');
|
|
28
29
|
const marquee = require('@zag-js/marquee');
|
|
29
30
|
const menu = require('@zag-js/menu');
|
|
30
31
|
const numberInput = require('@zag-js/number-input');
|
|
@@ -53,6 +54,7 @@ const treeView = require('@zag-js/tree-view');
|
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
|
|
57
|
+
exports.carouselAnatomy = carousel_anatomy.carouselAnatomy;
|
|
56
58
|
exports.checkboxAnatomy = checkbox_anatomy.checkboxAnatomy;
|
|
57
59
|
exports.colorPickerAnatomy = colorPicker_anatomy.colorPickerAnatomy;
|
|
58
60
|
exports.comboboxAnatomy = combobox_anatomy.comboboxAnatomy;
|
|
@@ -79,10 +81,6 @@ Object.defineProperty(exports, "bottomSheetAnatomy", {
|
|
|
79
81
|
enumerable: true,
|
|
80
82
|
get: () => bottomSheet.anatomy
|
|
81
83
|
});
|
|
82
|
-
Object.defineProperty(exports, "carouselAnatomy", {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: () => carousel.anatomy
|
|
85
|
-
});
|
|
86
84
|
Object.defineProperty(exports, "clipboardAnatomy", {
|
|
87
85
|
enumerable: true,
|
|
88
86
|
get: () => clipboard.anatomy
|
|
@@ -111,6 +109,10 @@ Object.defineProperty(exports, "hoverCardAnatomy", {
|
|
|
111
109
|
enumerable: true,
|
|
112
110
|
get: () => hoverCard.anatomy
|
|
113
111
|
});
|
|
112
|
+
Object.defineProperty(exports, "imageCropperAnatomy", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: () => imageCropper.anatomy
|
|
115
|
+
});
|
|
114
116
|
Object.defineProperty(exports, "marqueeAnatomy", {
|
|
115
117
|
enumerable: true,
|
|
116
118
|
get: () => marquee.anatomy
|
|
@@ -17,6 +17,7 @@ export { fieldsetAnatomy } from './fieldset/fieldset.anatomy';
|
|
|
17
17
|
export { fileUploadAnatomy } from './file-upload/file-upload.anatomy';
|
|
18
18
|
export { floatingPanelAnatomy } from './floating-panel/floating-panel.anatomy';
|
|
19
19
|
export { hoverCardAnatomy } from './hover-card/hover-card.anatomy';
|
|
20
|
+
export { imageCropperAnatomy } from './image-cropper/image-cropper.anatomy';
|
|
20
21
|
export { listboxAnatomy } from './listbox/listbox.anatomy';
|
|
21
22
|
export { marqueeAnatomy } from './marquee/marquee.anatomy';
|
|
22
23
|
export { menuAnatomy } from './menu/menu.anatomy';
|
|
@@ -17,6 +17,7 @@ export { fieldsetAnatomy } from './fieldset/fieldset.anatomy';
|
|
|
17
17
|
export { fileUploadAnatomy } from './file-upload/file-upload.anatomy';
|
|
18
18
|
export { floatingPanelAnatomy } from './floating-panel/floating-panel.anatomy';
|
|
19
19
|
export { hoverCardAnatomy } from './hover-card/hover-card.anatomy';
|
|
20
|
+
export { imageCropperAnatomy } from './image-cropper/image-cropper.anatomy';
|
|
20
21
|
export { listboxAnatomy } from './listbox/listbox.anatomy';
|
|
21
22
|
export { marqueeAnatomy } from './marquee/marquee.anatomy';
|
|
22
23
|
export { menuAnatomy } from './menu/menu.anatomy';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from '@zag-js/anatomy';
|
|
2
|
+
export { carouselAnatomy } from './carousel/carousel.anatomy.js';
|
|
2
3
|
export { checkboxAnatomy } from './checkbox/checkbox.anatomy.js';
|
|
3
4
|
export { colorPickerAnatomy } from './color-picker/color-picker.anatomy.js';
|
|
4
5
|
export { comboboxAnatomy } from './combobox/combobox.anatomy.js';
|
|
@@ -13,7 +14,6 @@ export { anatomy as accordionAnatomy } from '@zag-js/accordion';
|
|
|
13
14
|
export { anatomy as angleSliderAnatomy } from '@zag-js/angle-slider';
|
|
14
15
|
export { anatomy as avatarAnatomy } from '@zag-js/avatar';
|
|
15
16
|
export { anatomy as bottomSheetAnatomy } from '@zag-js/bottom-sheet';
|
|
16
|
-
export { anatomy as carouselAnatomy } from '@zag-js/carousel';
|
|
17
17
|
export { anatomy as clipboardAnatomy } from '@zag-js/clipboard';
|
|
18
18
|
export { anatomy as collapsibleAnatomy } from '@zag-js/collapsible';
|
|
19
19
|
export { anatomy as dialogAnatomy } from '@zag-js/dialog';
|
|
@@ -21,6 +21,7 @@ export { anatomy as editableAnatomy } from '@zag-js/editable';
|
|
|
21
21
|
export { anatomy as fileUploadAnatomy } from '@zag-js/file-upload';
|
|
22
22
|
export { anatomy as floatingPanelAnatomy } from '@zag-js/floating-panel';
|
|
23
23
|
export { anatomy as hoverCardAnatomy } from '@zag-js/hover-card';
|
|
24
|
+
export { anatomy as imageCropperAnatomy } from '@zag-js/image-cropper';
|
|
24
25
|
export { anatomy as marqueeAnatomy } from '@zag-js/marquee';
|
|
25
26
|
export { anatomy as menuAnatomy } from '@zag-js/menu';
|
|
26
27
|
export { anatomy as numberInputAnatomy } from '@zag-js/number-input';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react = require('react');
|
|
8
|
+
const factory = require('../factory.cjs');
|
|
9
|
+
const carousel_anatomy = require('./carousel.anatomy.cjs');
|
|
10
|
+
const useCarouselContext = require('./use-carousel-context.cjs');
|
|
11
|
+
|
|
12
|
+
const parts = carousel_anatomy.carouselAnatomy.build();
|
|
13
|
+
const CarouselAutoplayIndicator = react.forwardRef((props, ref) => {
|
|
14
|
+
const { children, fallback, ...restProps } = props;
|
|
15
|
+
const carousel = useCarouselContext.useCarouselContext();
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ref, ...parts.autoplayIndicator.attrs, ...restProps, children: carousel.isPlaying ? children : fallback });
|
|
17
|
+
});
|
|
18
|
+
CarouselAutoplayIndicator.displayName = "CarouselAutoplayIndicator";
|
|
19
|
+
|
|
20
|
+
exports.CarouselAutoplayIndicator = CarouselAutoplayIndicator;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface CarouselAutoplayIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
+
/**
|
|
5
|
+
* The fallback content to render when autoplay is paused.
|
|
6
|
+
*/
|
|
7
|
+
fallback?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface CarouselAutoplayIndicatorProps extends HTMLProps<'span'>, CarouselAutoplayIndicatorBaseProps {
|
|
10
|
+
}
|
|
11
|
+
export declare const CarouselAutoplayIndicator: ForwardRefExoticComponent<CarouselAutoplayIndicatorProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface CarouselAutoplayIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
+
/**
|
|
5
|
+
* The fallback content to render when autoplay is paused.
|
|
6
|
+
*/
|
|
7
|
+
fallback?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface CarouselAutoplayIndicatorProps extends HTMLProps<'span'>, CarouselAutoplayIndicatorBaseProps {
|
|
10
|
+
}
|
|
11
|
+
export declare const CarouselAutoplayIndicator: ForwardRefExoticComponent<CarouselAutoplayIndicatorProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { ark } from '../factory.js';
|
|
5
|
+
import { carouselAnatomy } from './carousel.anatomy.js';
|
|
6
|
+
import { useCarouselContext } from './use-carousel-context.js';
|
|
7
|
+
|
|
8
|
+
const parts = carouselAnatomy.build();
|
|
9
|
+
const CarouselAutoplayIndicator = forwardRef((props, ref) => {
|
|
10
|
+
const { children, fallback, ...restProps } = props;
|
|
11
|
+
const carousel = useCarouselContext();
|
|
12
|
+
return /* @__PURE__ */ jsx(ark.span, { ref, ...parts.autoplayIndicator.attrs, ...restProps, children: carousel.isPlaying ? children : fallback });
|
|
13
|
+
});
|
|
14
|
+
CarouselAutoplayIndicator.displayName = "CarouselAutoplayIndicator";
|
|
15
|
+
|
|
16
|
+
export { CarouselAutoplayIndicator };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react = require('react');
|
|
8
|
+
const factory = require('../factory.cjs');
|
|
9
|
+
const carousel_anatomy = require('./carousel.anatomy.cjs');
|
|
10
|
+
const useCarouselContext = require('./use-carousel-context.cjs');
|
|
11
|
+
|
|
12
|
+
const parts = carousel_anatomy.carouselAnatomy.build();
|
|
13
|
+
const CarouselProgressText = react.forwardRef((props, ref) => {
|
|
14
|
+
const carousel = useCarouselContext.useCarouselContext();
|
|
15
|
+
const progressText = react.useMemo(() => {
|
|
16
|
+
const currentPage = carousel.page + 1;
|
|
17
|
+
const totalPages = carousel.pageSnapPoints.length;
|
|
18
|
+
return `${currentPage} / ${totalPages}`;
|
|
19
|
+
}, [carousel.page, carousel.pageSnapPoints.length]);
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ref, ...parts.progressText.attrs, ...props, children: props.children || progressText });
|
|
21
|
+
});
|
|
22
|
+
CarouselProgressText.displayName = "CarouselProgressText";
|
|
23
|
+
|
|
24
|
+
exports.CarouselProgressText = CarouselProgressText;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface CarouselProgressTextBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface CarouselProgressTextProps extends HTMLProps<'span'>, CarouselProgressTextBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const CarouselProgressText: ForwardRefExoticComponent<CarouselProgressTextProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface CarouselProgressTextBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface CarouselProgressTextProps extends HTMLProps<'span'>, CarouselProgressTextBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const CarouselProgressText: ForwardRefExoticComponent<CarouselProgressTextProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef, useMemo } from 'react';
|
|
4
|
+
import { ark } from '../factory.js';
|
|
5
|
+
import { carouselAnatomy } from './carousel.anatomy.js';
|
|
6
|
+
import { useCarouselContext } from './use-carousel-context.js';
|
|
7
|
+
|
|
8
|
+
const parts = carouselAnatomy.build();
|
|
9
|
+
const CarouselProgressText = forwardRef((props, ref) => {
|
|
10
|
+
const carousel = useCarouselContext();
|
|
11
|
+
const progressText = useMemo(() => {
|
|
12
|
+
const currentPage = carousel.page + 1;
|
|
13
|
+
const totalPages = carousel.pageSnapPoints.length;
|
|
14
|
+
return `${currentPage} / ${totalPages}`;
|
|
15
|
+
}, [carousel.page, carousel.pageSnapPoints.length]);
|
|
16
|
+
return /* @__PURE__ */ jsx(ark.span, { ref, ...parts.progressText.attrs, ...props, children: props.children || progressText });
|
|
17
|
+
});
|
|
18
|
+
CarouselProgressText.displayName = "CarouselProgressText";
|
|
19
|
+
|
|
20
|
+
export { CarouselProgressText };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const carousel = require('@zag-js/carousel');
|
|
7
|
+
|
|
8
|
+
const carouselAnatomy = carousel.anatomy.extendWith("progressText", "autoplayIndicator");
|
|
9
|
+
|
|
10
|
+
exports.carouselAnatomy = carouselAnatomy;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
+
export declare const carouselAnatomy: AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "nextTrigger" | "prevTrigger" | "indicatorGroup" | "indicator" | "autoplayTrigger" | "progressText" | "autoplayIndicator">;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
+
export declare const carouselAnatomy: AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "nextTrigger" | "prevTrigger" | "indicatorGroup" | "indicator" | "autoplayTrigger" | "progressText" | "autoplayIndicator">;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
+
const carouselAutoplayIndicator = require('./carousel-autoplay-indicator.cjs');
|
|
6
|
+
const carouselProgressText = require('./carousel-progress-text.cjs');
|
|
5
7
|
const carouselAutoplayTrigger = require('./carousel-autoplay-trigger.cjs');
|
|
6
8
|
const carouselContext = require('./carousel-context.cjs');
|
|
7
9
|
const carouselControl = require('./carousel-control.cjs');
|
|
@@ -16,6 +18,8 @@ const carouselRootProvider = require('./carousel-root-provider.cjs');
|
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
|
|
21
|
+
exports.AutoplayIndicator = carouselAutoplayIndicator.CarouselAutoplayIndicator;
|
|
22
|
+
exports.ProgressText = carouselProgressText.CarouselProgressText;
|
|
19
23
|
exports.AutoplayTrigger = carouselAutoplayTrigger.CarouselAutoplayTrigger;
|
|
20
24
|
exports.Context = carouselContext.CarouselContext;
|
|
21
25
|
exports.Control = carouselControl.CarouselControl;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { AutoplayStatusDetails, DragStatusDetails, PageChangeDetails } from '@zag-js/carousel';
|
|
2
|
+
export { CarouselAutoplayIndicator as AutoplayIndicator, type CarouselAutoplayIndicatorBaseProps as AutoplayIndicatorBaseProps, type CarouselAutoplayIndicatorProps as AutoplayIndicatorProps, } from './carousel-autoplay-indicator';
|
|
3
|
+
export { CarouselProgressText as ProgressText, type CarouselProgressTextBaseProps as ProgressTextBaseProps, type CarouselProgressTextProps as ProgressTextProps, } from './carousel-progress-text';
|
|
2
4
|
export { CarouselAutoplayTrigger as AutoplayTrigger, type CarouselAutoplayTriggerBaseProps as AutoplayTriggerBaseProps, type CarouselAutoplayTriggerProps as AutoplayTriggerProps, } from './carousel-autoplay-trigger';
|
|
3
5
|
export { CarouselContext as Context, type CarouselContextProps as ContextProps } from './carousel-context';
|
|
4
6
|
export { CarouselControl as Control, type CarouselControlBaseProps as ControlBaseProps, type CarouselControlProps as ControlProps, } from './carousel-control';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { AutoplayStatusDetails, DragStatusDetails, PageChangeDetails } from '@zag-js/carousel';
|
|
2
|
+
export { CarouselAutoplayIndicator as AutoplayIndicator, type CarouselAutoplayIndicatorBaseProps as AutoplayIndicatorBaseProps, type CarouselAutoplayIndicatorProps as AutoplayIndicatorProps, } from './carousel-autoplay-indicator';
|
|
3
|
+
export { CarouselProgressText as ProgressText, type CarouselProgressTextBaseProps as ProgressTextBaseProps, type CarouselProgressTextProps as ProgressTextProps, } from './carousel-progress-text';
|
|
2
4
|
export { CarouselAutoplayTrigger as AutoplayTrigger, type CarouselAutoplayTriggerBaseProps as AutoplayTriggerBaseProps, type CarouselAutoplayTriggerProps as AutoplayTriggerProps, } from './carousel-autoplay-trigger';
|
|
3
5
|
export { CarouselContext as Context, type CarouselContextProps as ContextProps } from './carousel-context';
|
|
4
6
|
export { CarouselControl as Control, type CarouselControlBaseProps as ControlBaseProps, type CarouselControlProps as ControlProps, } from './carousel-control';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { CarouselAutoplayIndicator as AutoplayIndicator } from './carousel-autoplay-indicator.js';
|
|
2
|
+
export { CarouselProgressText as ProgressText } from './carousel-progress-text.js';
|
|
1
3
|
export { CarouselAutoplayTrigger as AutoplayTrigger } from './carousel-autoplay-trigger.js';
|
|
2
4
|
export { CarouselContext as Context } from './carousel-context.js';
|
|
3
5
|
export { CarouselControl as Control } from './carousel-control.js';
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
+
const carouselAutoplayIndicator = require('./carousel-autoplay-indicator.cjs');
|
|
6
|
+
const carouselProgressText = require('./carousel-progress-text.cjs');
|
|
5
7
|
const carouselAutoplayTrigger = require('./carousel-autoplay-trigger.cjs');
|
|
6
8
|
const carouselContext = require('./carousel-context.cjs');
|
|
7
9
|
const carouselControl = require('./carousel-control.cjs');
|
|
@@ -13,13 +15,15 @@ const carouselNextTrigger = require('./carousel-next-trigger.cjs');
|
|
|
13
15
|
const carouselPrevTrigger = require('./carousel-prev-trigger.cjs');
|
|
14
16
|
const carouselRoot = require('./carousel-root.cjs');
|
|
15
17
|
const carouselRootProvider = require('./carousel-root-provider.cjs');
|
|
18
|
+
const carousel_anatomy = require('./carousel.anatomy.cjs');
|
|
16
19
|
const useCarousel = require('./use-carousel.cjs');
|
|
17
20
|
const useCarouselContext = require('./use-carousel-context.cjs');
|
|
18
|
-
const carousel
|
|
19
|
-
const carousel = require('@zag-js/carousel');
|
|
21
|
+
const carousel = require('./carousel.cjs');
|
|
20
22
|
|
|
21
23
|
|
|
22
24
|
|
|
25
|
+
exports.CarouselAutoplayIndicator = carouselAutoplayIndicator.CarouselAutoplayIndicator;
|
|
26
|
+
exports.CarouselProgressText = carouselProgressText.CarouselProgressText;
|
|
23
27
|
exports.CarouselAutoplayTrigger = carouselAutoplayTrigger.CarouselAutoplayTrigger;
|
|
24
28
|
exports.CarouselContext = carouselContext.CarouselContext;
|
|
25
29
|
exports.CarouselControl = carouselControl.CarouselControl;
|
|
@@ -31,10 +35,7 @@ exports.CarouselNextTrigger = carouselNextTrigger.CarouselNextTrigger;
|
|
|
31
35
|
exports.CarouselPrevTrigger = carouselPrevTrigger.CarouselPrevTrigger;
|
|
32
36
|
exports.CarouselRoot = carouselRoot.CarouselRoot;
|
|
33
37
|
exports.CarouselRootProvider = carouselRootProvider.CarouselRootProvider;
|
|
38
|
+
exports.carouselAnatomy = carousel_anatomy.carouselAnatomy;
|
|
34
39
|
exports.useCarousel = useCarousel.useCarousel;
|
|
35
40
|
exports.useCarouselContext = useCarouselContext.useCarouselContext;
|
|
36
|
-
exports.Carousel = carousel
|
|
37
|
-
Object.defineProperty(exports, "carouselAnatomy", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: () => carousel.anatomy
|
|
40
|
-
});
|
|
41
|
+
exports.Carousel = carousel;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { AutoplayStatusDetails as CarouselAutoplayStatusDetails, DragStatusDetails as CarouselDragStatusDetails, PageChangeDetails as CarouselPageChangeDetails, } from '@zag-js/carousel';
|
|
2
|
+
export { CarouselAutoplayIndicator, type CarouselAutoplayIndicatorBaseProps, type CarouselAutoplayIndicatorProps, } from './carousel-autoplay-indicator';
|
|
3
|
+
export { CarouselProgressText, type CarouselProgressTextBaseProps, type CarouselProgressTextProps, } from './carousel-progress-text';
|
|
2
4
|
export { CarouselAutoplayTrigger, type CarouselAutoplayTriggerBaseProps, type CarouselAutoplayTriggerProps, } from './carousel-autoplay-trigger';
|
|
3
5
|
export { CarouselContext, type CarouselContextProps } from './carousel-context';
|
|
4
6
|
export { CarouselControl, type CarouselControlBaseProps, type CarouselControlProps } from './carousel-control';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { AutoplayStatusDetails as CarouselAutoplayStatusDetails, DragStatusDetails as CarouselDragStatusDetails, PageChangeDetails as CarouselPageChangeDetails, } from '@zag-js/carousel';
|
|
2
|
+
export { CarouselAutoplayIndicator, type CarouselAutoplayIndicatorBaseProps, type CarouselAutoplayIndicatorProps, } from './carousel-autoplay-indicator';
|
|
3
|
+
export { CarouselProgressText, type CarouselProgressTextBaseProps, type CarouselProgressTextProps, } from './carousel-progress-text';
|
|
2
4
|
export { CarouselAutoplayTrigger, type CarouselAutoplayTriggerBaseProps, type CarouselAutoplayTriggerProps, } from './carousel-autoplay-trigger';
|
|
3
5
|
export { CarouselContext, type CarouselContextProps } from './carousel-context';
|
|
4
6
|
export { CarouselControl, type CarouselControlBaseProps, type CarouselControlProps } from './carousel-control';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { CarouselAutoplayIndicator } from './carousel-autoplay-indicator.js';
|
|
2
|
+
export { CarouselProgressText } from './carousel-progress-text.js';
|
|
1
3
|
export { CarouselAutoplayTrigger } from './carousel-autoplay-trigger.js';
|
|
2
4
|
export { CarouselContext } from './carousel-context.js';
|
|
3
5
|
export { CarouselControl } from './carousel-control.js';
|
|
@@ -9,8 +11,8 @@ export { CarouselNextTrigger } from './carousel-next-trigger.js';
|
|
|
9
11
|
export { CarouselPrevTrigger } from './carousel-prev-trigger.js';
|
|
10
12
|
export { CarouselRoot } from './carousel-root.js';
|
|
11
13
|
export { CarouselRootProvider } from './carousel-root-provider.js';
|
|
14
|
+
export { carouselAnatomy } from './carousel.anatomy.js';
|
|
12
15
|
export { useCarousel } from './use-carousel.js';
|
|
13
16
|
export { useCarouselContext } from './use-carousel-context.js';
|
|
14
17
|
import * as carousel from './carousel.js';
|
|
15
18
|
export { carousel as Carousel };
|
|
16
|
-
export { anatomy as carouselAnatomy } from '@zag-js/carousel';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const checkboxAnatomy: AnatomyInstance<"root" | "
|
|
2
|
+
export declare const checkboxAnatomy: AnatomyInstance<"root" | "control" | "indicator" | "label" | "group">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const checkboxAnatomy: AnatomyInstance<"root" | "
|
|
2
|
+
export declare const checkboxAnatomy: AnatomyInstance<"root" | "control" | "indicator" | "label" | "group">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const colorPickerAnatomy: AnatomyInstance<"root" | "
|
|
2
|
+
export declare const colorPickerAnatomy: AnatomyInstance<"root" | "control" | "label" | "content" | "area" | "trigger" | "positioner" | "areaThumb" | "valueText" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect" | "view">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const colorPickerAnatomy: AnatomyInstance<"root" | "
|
|
2
|
+
export declare const colorPickerAnatomy: AnatomyInstance<"root" | "control" | "label" | "content" | "area" | "trigger" | "positioner" | "areaThumb" | "valueText" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect" | "view">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { Color, ColorFormat, FormatChangeDetails, OpenChangeDetails, ValueChangeDetails, } from '@zag-js/color-picker';
|
|
1
|
+
export type { Color, ColorFormat, FocusOutsideEvent, FormatChangeDetails, InteractOutsideEvent, OpenChangeDetails, PointerDownOutsideEvent, ValueChangeDetails, } from '@zag-js/color-picker';
|
|
2
2
|
export { ColorPickerArea as Area, type ColorPickerAreaBaseProps as AreaBaseProps, type ColorPickerAreaProps as AreaProps, } from './color-picker-area';
|
|
3
3
|
export { ColorPickerAreaBackground as AreaBackground, type ColorPickerAreaBackgroundBaseProps as AreaBackgroundBaseProps, type ColorPickerAreaBackgroundProps as AreaBackgroundProps, } from './color-picker-area-background';
|
|
4
4
|
export { ColorPickerAreaThumb as AreaThumb, type ColorPickerAreaThumbBaseProps as AreaThumbBaseProps, type ColorPickerAreaThumbProps as AreaThumbProps, } from './color-picker-area-thumb';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { Color, ColorFormat, FormatChangeDetails, OpenChangeDetails, ValueChangeDetails, } from '@zag-js/color-picker';
|
|
1
|
+
export type { Color, ColorFormat, FocusOutsideEvent, FormatChangeDetails, InteractOutsideEvent, OpenChangeDetails, PointerDownOutsideEvent, ValueChangeDetails, } from '@zag-js/color-picker';
|
|
2
2
|
export { ColorPickerArea as Area, type ColorPickerAreaBaseProps as AreaBaseProps, type ColorPickerAreaProps as AreaProps, } from './color-picker-area';
|
|
3
3
|
export { ColorPickerAreaBackground as AreaBackground, type ColorPickerAreaBackgroundBaseProps as AreaBackgroundBaseProps, type ColorPickerAreaBackgroundProps as AreaBackgroundProps, } from './color-picker-area-background';
|
|
4
4
|
export { ColorPickerAreaThumb as AreaThumb, type ColorPickerAreaThumbBaseProps as AreaThumbBaseProps, type ColorPickerAreaThumbProps as AreaThumbProps, } from './color-picker-area-thumb';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { parse as parseColor } from '@zag-js/color-picker';
|
|
2
|
-
export type { Color, ColorFormat as ColorPickerColorFormat, FormatChangeDetails as ColorPickerFormatChangeDetails, OpenChangeDetails as ColorPickerOpenChangeDetails, ValueChangeDetails as ColorPickerValueChangeDetails, } from '@zag-js/color-picker';
|
|
2
|
+
export type { Color, ColorFormat as ColorPickerColorFormat, FocusOutsideEvent as ColorPickerFocusOutsideEvent, FormatChangeDetails as ColorPickerFormatChangeDetails, InteractOutsideEvent as ColorPickerInteractOutsideEvent, OpenChangeDetails as ColorPickerOpenChangeDetails, PointerDownOutsideEvent as ColorPickerPointerDownOutsideEvent, ValueChangeDetails as ColorPickerValueChangeDetails, } from '@zag-js/color-picker';
|
|
3
3
|
export { ColorPickerArea, type ColorPickerAreaBaseProps, type ColorPickerAreaProps } from './color-picker-area';
|
|
4
4
|
export { ColorPickerAreaBackground, type ColorPickerAreaBackgroundBaseProps, type ColorPickerAreaBackgroundProps, } from './color-picker-area-background';
|
|
5
5
|
export { ColorPickerAreaThumb, type ColorPickerAreaThumbBaseProps, type ColorPickerAreaThumbProps, } from './color-picker-area-thumb';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { parse as parseColor } from '@zag-js/color-picker';
|
|
2
|
-
export type { Color, ColorFormat as ColorPickerColorFormat, FormatChangeDetails as ColorPickerFormatChangeDetails, OpenChangeDetails as ColorPickerOpenChangeDetails, ValueChangeDetails as ColorPickerValueChangeDetails, } from '@zag-js/color-picker';
|
|
2
|
+
export type { Color, ColorFormat as ColorPickerColorFormat, FocusOutsideEvent as ColorPickerFocusOutsideEvent, FormatChangeDetails as ColorPickerFormatChangeDetails, InteractOutsideEvent as ColorPickerInteractOutsideEvent, OpenChangeDetails as ColorPickerOpenChangeDetails, PointerDownOutsideEvent as ColorPickerPointerDownOutsideEvent, ValueChangeDetails as ColorPickerValueChangeDetails, } from '@zag-js/color-picker';
|
|
3
3
|
export { ColorPickerArea, type ColorPickerAreaBaseProps, type ColorPickerAreaProps } from './color-picker-area';
|
|
4
4
|
export { ColorPickerAreaBackground, type ColorPickerAreaBackgroundBaseProps, type ColorPickerAreaBackgroundProps, } from './color-picker-area-background';
|
|
5
5
|
export { ColorPickerAreaThumb, type ColorPickerAreaThumbBaseProps, type ColorPickerAreaThumbProps, } from './color-picker-area-thumb';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const comboboxAnatomy: AnatomyInstance<"root" | "
|
|
2
|
+
export declare const comboboxAnatomy: AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "label" | "content" | "trigger" | "positioner" | "list" | "input" | "clearTrigger" | "itemGroupLabel" | "itemIndicator" | "itemText" | "empty">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const comboboxAnatomy: AnatomyInstance<"root" | "
|
|
2
|
+
export declare const comboboxAnatomy: AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "label" | "content" | "trigger" | "positioner" | "list" | "input" | "clearTrigger" | "itemGroupLabel" | "itemIndicator" | "itemText" | "empty">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { HighlightChangeDetails, InputValueChangeDetails, OpenChangeDetails, SelectionDetails, ValueChangeDetails, } from '@zag-js/combobox';
|
|
1
|
+
export type { FocusOutsideEvent, HighlightChangeDetails, InputValueChangeDetails, InteractOutsideEvent, OpenChangeDetails, PointerDownOutsideEvent, SelectionDetails, ValueChangeDetails, } from '@zag-js/combobox';
|
|
2
2
|
export type { CollectionItem } from '../collection';
|
|
3
3
|
export { ComboboxClearTrigger as ClearTrigger, type ComboboxClearTriggerBaseProps as ClearTriggerBaseProps, type ComboboxClearTriggerProps as ClearTriggerProps, } from './combobox-clear-trigger';
|
|
4
4
|
export { ComboboxContent as Content, type ComboboxContentBaseProps as ContentBaseProps, type ComboboxContentProps as ContentProps, } from './combobox-content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { HighlightChangeDetails, InputValueChangeDetails, OpenChangeDetails, SelectionDetails, ValueChangeDetails, } from '@zag-js/combobox';
|
|
1
|
+
export type { FocusOutsideEvent, HighlightChangeDetails, InputValueChangeDetails, InteractOutsideEvent, OpenChangeDetails, PointerDownOutsideEvent, SelectionDetails, ValueChangeDetails, } from '@zag-js/combobox';
|
|
2
2
|
export type { CollectionItem } from '../collection';
|
|
3
3
|
export { ComboboxClearTrigger as ClearTrigger, type ComboboxClearTriggerBaseProps as ClearTriggerBaseProps, type ComboboxClearTriggerProps as ClearTriggerProps, } from './combobox-clear-trigger';
|
|
4
4
|
export { ComboboxContent as Content, type ComboboxContentBaseProps as ContentBaseProps, type ComboboxContentProps as ContentProps, } from './combobox-content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { HighlightChangeDetails as ComboboxHighlightChangeDetails, InputValueChangeDetails as ComboboxInputValueChangeDetails, OpenChangeDetails as ComboboxOpenChangeDetails, SelectionDetails as ComboboxSelectionDetails, ValueChangeDetails as ComboboxValueChangeDetails, } from '@zag-js/combobox';
|
|
1
|
+
export type { FocusOutsideEvent as ComboboxFocusOutsideEvent, HighlightChangeDetails as ComboboxHighlightChangeDetails, InputValueChangeDetails as ComboboxInputValueChangeDetails, InteractOutsideEvent as ComboboxInteractOutsideEvent, OpenChangeDetails as ComboboxOpenChangeDetails, PointerDownOutsideEvent as ComboboxPointerDownOutsideEvent, SelectionDetails as ComboboxSelectionDetails, ValueChangeDetails as ComboboxValueChangeDetails, } from '@zag-js/combobox';
|
|
2
2
|
export { createListCollection, useListCollection, type CollectionItem, type ListCollection, type UseListCollectionProps, } from '../collection';
|
|
3
3
|
export { ComboboxClearTrigger, type ComboboxClearTriggerBaseProps, type ComboboxClearTriggerProps, } from './combobox-clear-trigger';
|
|
4
4
|
export { ComboboxContent, type ComboboxContentBaseProps, type ComboboxContentProps } from './combobox-content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { HighlightChangeDetails as ComboboxHighlightChangeDetails, InputValueChangeDetails as ComboboxInputValueChangeDetails, OpenChangeDetails as ComboboxOpenChangeDetails, SelectionDetails as ComboboxSelectionDetails, ValueChangeDetails as ComboboxValueChangeDetails, } from '@zag-js/combobox';
|
|
1
|
+
export type { FocusOutsideEvent as ComboboxFocusOutsideEvent, HighlightChangeDetails as ComboboxHighlightChangeDetails, InputValueChangeDetails as ComboboxInputValueChangeDetails, InteractOutsideEvent as ComboboxInteractOutsideEvent, OpenChangeDetails as ComboboxOpenChangeDetails, PointerDownOutsideEvent as ComboboxPointerDownOutsideEvent, SelectionDetails as ComboboxSelectionDetails, ValueChangeDetails as ComboboxValueChangeDetails, } from '@zag-js/combobox';
|
|
2
2
|
export { createListCollection, useListCollection, type CollectionItem, type ListCollection, type UseListCollectionProps, } from '../collection';
|
|
3
3
|
export { ComboboxClearTrigger, type ComboboxClearTriggerBaseProps, type ComboboxClearTriggerProps, } from './combobox-clear-trigger';
|
|
4
4
|
export { ComboboxContent, type ComboboxContentBaseProps, type ComboboxContentProps } from './combobox-content';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const datePickerAnatomy: AnatomyInstance<"root" | "
|
|
2
|
+
export declare const datePickerAnatomy: AnatomyInstance<"root" | "control" | "nextTrigger" | "prevTrigger" | "label" | "content" | "trigger" | "positioner" | "view" | "input" | "clearTrigger" | "table" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const datePickerAnatomy: AnatomyInstance<"root" | "
|
|
2
|
+
export declare const datePickerAnatomy: AnatomyInstance<"root" | "control" | "nextTrigger" | "prevTrigger" | "label" | "content" | "trigger" | "positioner" | "view" | "input" | "clearTrigger" | "table" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { OpenChangeDetails } from '@zag-js/dialog';
|
|
1
|
+
export type { FocusOutsideEvent, InteractOutsideEvent, OpenChangeDetails, PointerDownOutsideEvent, } from '@zag-js/dialog';
|
|
2
2
|
export { DialogBackdrop as Backdrop, type DialogBackdropBaseProps as BackdropBaseProps, type DialogBackdropProps as BackdropProps, } from './dialog-backdrop';
|
|
3
3
|
export { DialogCloseTrigger as CloseTrigger, type DialogCloseTriggerBaseProps as CloseTriggerBaseProps, type DialogCloseTriggerProps as CloseTriggerProps, } from './dialog-close-trigger';
|
|
4
4
|
export { DialogContent as Content, type DialogContentBaseProps as ContentBaseProps, type DialogContentProps as ContentProps, } from './dialog-content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { OpenChangeDetails } from '@zag-js/dialog';
|
|
1
|
+
export type { FocusOutsideEvent, InteractOutsideEvent, OpenChangeDetails, PointerDownOutsideEvent, } from '@zag-js/dialog';
|
|
2
2
|
export { DialogBackdrop as Backdrop, type DialogBackdropBaseProps as BackdropBaseProps, type DialogBackdropProps as BackdropProps, } from './dialog-backdrop';
|
|
3
3
|
export { DialogCloseTrigger as CloseTrigger, type DialogCloseTriggerBaseProps as CloseTriggerBaseProps, type DialogCloseTriggerProps as CloseTriggerProps, } from './dialog-close-trigger';
|
|
4
4
|
export { DialogContent as Content, type DialogContentBaseProps as ContentBaseProps, type DialogContentProps as ContentProps, } from './dialog-content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { OpenChangeDetails as DialogOpenChangeDetails } from '@zag-js/dialog';
|
|
1
|
+
export type { FocusOutsideEvent as DialogFocusOutsideEvent, InteractOutsideEvent as DialogInteractOutsideEvent, OpenChangeDetails as DialogOpenChangeDetails, PointerDownOutsideEvent as DialogPointerDownOutsideEvent, } from '@zag-js/dialog';
|
|
2
2
|
export { DialogBackdrop, type DialogBackdropBaseProps, type DialogBackdropProps } from './dialog-backdrop';
|
|
3
3
|
export { DialogCloseTrigger, type DialogCloseTriggerBaseProps, type DialogCloseTriggerProps, } from './dialog-close-trigger';
|
|
4
4
|
export { DialogContent, type DialogContentBaseProps, type DialogContentProps } from './dialog-content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { OpenChangeDetails as DialogOpenChangeDetails } from '@zag-js/dialog';
|
|
1
|
+
export type { FocusOutsideEvent as DialogFocusOutsideEvent, InteractOutsideEvent as DialogInteractOutsideEvent, OpenChangeDetails as DialogOpenChangeDetails, PointerDownOutsideEvent as DialogPointerDownOutsideEvent, } from '@zag-js/dialog';
|
|
2
2
|
export { DialogBackdrop, type DialogBackdropBaseProps, type DialogBackdropProps } from './dialog-backdrop';
|
|
3
3
|
export { DialogCloseTrigger, type DialogCloseTriggerBaseProps, type DialogCloseTriggerProps, } from './dialog-close-trigger';
|
|
4
4
|
export { DialogContent, type DialogContentBaseProps, type DialogContentProps } from './dialog-content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { ValueChangeDetails } from '@zag-js/editable';
|
|
1
|
+
export type { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent, ValueChangeDetails, } from '@zag-js/editable';
|
|
2
2
|
export { EditableArea as Area, type EditableAreaBaseProps as AreaBaseProps, type EditableAreaProps as AreaProps, } from './editable-area';
|
|
3
3
|
export { EditableCancelTrigger as CancelTrigger, type EditableCancelTriggerBaseProps as CancelTriggerBaseProps, type EditableCancelTriggerProps as CancelTriggerProps, } from './editable-cancel-trigger';
|
|
4
4
|
export { EditableContext as Context, type EditableContextProps as ContextProps } from './editable-context';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { ValueChangeDetails } from '@zag-js/editable';
|
|
1
|
+
export type { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent, ValueChangeDetails, } from '@zag-js/editable';
|
|
2
2
|
export { EditableArea as Area, type EditableAreaBaseProps as AreaBaseProps, type EditableAreaProps as AreaProps, } from './editable-area';
|
|
3
3
|
export { EditableCancelTrigger as CancelTrigger, type EditableCancelTriggerBaseProps as CancelTriggerBaseProps, type EditableCancelTriggerProps as CancelTriggerProps, } from './editable-cancel-trigger';
|
|
4
4
|
export { EditableContext as Context, type EditableContextProps as ContextProps } from './editable-context';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { EditChangeDetails as EditableEditChangeDetails, ValueChangeDetails as EditableValueChangeDetails, } from '@zag-js/editable';
|
|
1
|
+
export type { EditChangeDetails as EditableEditChangeDetails, FocusOutsideEvent as EditableFocusOutsideEvent, InteractOutsideEvent as EditableInteractOutsideEvent, PointerDownOutsideEvent as EditablePointerDownOutsideEvent, ValueChangeDetails as EditableValueChangeDetails, } from '@zag-js/editable';
|
|
2
2
|
export { EditableArea, type EditableAreaBaseProps, type EditableAreaProps } from './editable-area';
|
|
3
3
|
export { EditableCancelTrigger, type EditableCancelTriggerBaseProps, type EditableCancelTriggerProps, } from './editable-cancel-trigger';
|
|
4
4
|
export { EditableContext, type EditableContextProps } from './editable-context';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { EditChangeDetails as EditableEditChangeDetails, ValueChangeDetails as EditableValueChangeDetails, } from '@zag-js/editable';
|
|
1
|
+
export type { EditChangeDetails as EditableEditChangeDetails, FocusOutsideEvent as EditableFocusOutsideEvent, InteractOutsideEvent as EditableInteractOutsideEvent, PointerDownOutsideEvent as EditablePointerDownOutsideEvent, ValueChangeDetails as EditableValueChangeDetails, } from '@zag-js/editable';
|
|
2
2
|
export { EditableArea, type EditableAreaBaseProps, type EditableAreaProps } from './editable-area';
|
|
3
3
|
export { EditableCancelTrigger, type EditableCancelTriggerBaseProps, type EditableCancelTriggerProps, } from './editable-cancel-trigger';
|
|
4
4
|
export { EditableContext, type EditableContextProps } from './editable-context';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { OpenChangeDetails } from '@zag-js/hover-card';
|
|
1
|
+
export type { FocusOutsideEvent, InteractOutsideEvent, OpenChangeDetails, PointerDownOutsideEvent, } from '@zag-js/hover-card';
|
|
2
2
|
export { HoverCardArrow as Arrow, type HoverCardArrowBaseProps as ArrowBaseProps, type HoverCardArrowProps as ArrowProps, } from './hover-card-arrow';
|
|
3
3
|
export { HoverCardArrowTip as ArrowTip, type HoverCardArrowTipBaseProps as ArrowTipBaseProps, type HoverCardArrowTipProps as ArrowTipProps, } from './hover-card-arrow-tip';
|
|
4
4
|
export { HoverCardContent as Content, type HoverCardContentBaseProps as ContentBaseProps, type HoverCardContentProps as ContentProps, } from './hover-card-content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { OpenChangeDetails } from '@zag-js/hover-card';
|
|
1
|
+
export type { FocusOutsideEvent, InteractOutsideEvent, OpenChangeDetails, PointerDownOutsideEvent, } from '@zag-js/hover-card';
|
|
2
2
|
export { HoverCardArrow as Arrow, type HoverCardArrowBaseProps as ArrowBaseProps, type HoverCardArrowProps as ArrowProps, } from './hover-card-arrow';
|
|
3
3
|
export { HoverCardArrowTip as ArrowTip, type HoverCardArrowTipBaseProps as ArrowTipBaseProps, type HoverCardArrowTipProps as ArrowTipProps, } from './hover-card-arrow-tip';
|
|
4
4
|
export { HoverCardContent as Content, type HoverCardContentBaseProps as ContentBaseProps, type HoverCardContentProps as ContentProps, } from './hover-card-content';
|