@ark-ui/react 5.27.1 → 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 +35 -7
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +16 -1
- package/dist/components/listbox/listbox.anatomy.d.cts +1 -1
- package/dist/components/listbox/listbox.anatomy.d.ts +1 -1
- 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 +35 -7
- package/dist/index.js +16 -1
- package/package.json +71 -70
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { OpenChangeDetails as HoverCardOpenChangeDetails } from '@zag-js/hover-card';
|
|
1
|
+
export type { FocusOutsideEvent as HoverCardFocusOutsideEvent, InteractOutsideEvent as HoverCardInteractOutsideEvent, OpenChangeDetails as HoverCardOpenChangeDetails, PointerDownOutsideEvent as HoverCardPointerDownOutsideEvent, } from '@zag-js/hover-card';
|
|
2
2
|
export { HoverCardArrow, type HoverCardArrowBaseProps, type HoverCardArrowProps } from './hover-card-arrow';
|
|
3
3
|
export { HoverCardArrowTip, type HoverCardArrowTipBaseProps, type HoverCardArrowTipProps } from './hover-card-arrow-tip';
|
|
4
4
|
export { HoverCardContent, type HoverCardContentBaseProps, type HoverCardContentProps } from './hover-card-content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { OpenChangeDetails as HoverCardOpenChangeDetails } from '@zag-js/hover-card';
|
|
1
|
+
export type { FocusOutsideEvent as HoverCardFocusOutsideEvent, InteractOutsideEvent as HoverCardInteractOutsideEvent, OpenChangeDetails as HoverCardOpenChangeDetails, PointerDownOutsideEvent as HoverCardPointerDownOutsideEvent, } from '@zag-js/hover-card';
|
|
2
2
|
export { HoverCardArrow, type HoverCardArrowBaseProps, type HoverCardArrowProps } from './hover-card-arrow';
|
|
3
3
|
export { HoverCardArrowTip, type HoverCardArrowTipBaseProps, type HoverCardArrowTipProps } from './hover-card-arrow-tip';
|
|
4
4
|
export { HoverCardContent, type HoverCardContentBaseProps, type HoverCardContentProps } from './hover-card-content';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const useImageCropperContext = require('./use-image-cropper-context.cjs');
|
|
7
|
+
|
|
8
|
+
const ImageCropperContext = (props) => props.children(useImageCropperContext.useImageCropperContext());
|
|
9
|
+
|
|
10
|
+
exports.ImageCropperContext = ImageCropperContext;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { UseImageCropperContext } from './use-image-cropper-context';
|
|
3
|
+
export interface ImageCropperContextProps {
|
|
4
|
+
children: (context: UseImageCropperContext) => ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const ImageCropperContext: (props: ImageCropperContextProps) => ReactNode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { UseImageCropperContext } from './use-image-cropper-context';
|
|
3
|
+
export interface ImageCropperContextProps {
|
|
4
|
+
children: (context: UseImageCropperContext) => ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const ImageCropperContext: (props: ImageCropperContextProps) => ReactNode;
|
|
@@ -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$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const useImageCropperContext = require('./use-image-cropper-context.cjs');
|
|
11
|
+
|
|
12
|
+
const ImageCropperGrid = react.forwardRef((props, ref) => {
|
|
13
|
+
const { axis, ...localProps } = props;
|
|
14
|
+
const imageCropper = useImageCropperContext.useImageCropperContext();
|
|
15
|
+
const mergedProps = react$1.mergeProps(imageCropper.getGridProps({ axis }), localProps);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
17
|
+
});
|
|
18
|
+
ImageCropperGrid.displayName = "ImageCropperGrid";
|
|
19
|
+
|
|
20
|
+
exports.ImageCropperGrid = ImageCropperGrid;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GridProps } from '@zag-js/image-cropper';
|
|
2
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export interface ImageCropperGridBaseProps extends PolymorphicProps, GridProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ImageCropperGridProps extends HTMLProps<'div'>, ImageCropperGridBaseProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const ImageCropperGrid: ForwardRefExoticComponent<ImageCropperGridProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GridProps } from '@zag-js/image-cropper';
|
|
2
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export interface ImageCropperGridBaseProps extends PolymorphicProps, GridProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ImageCropperGridProps extends HTMLProps<'div'>, ImageCropperGridBaseProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const ImageCropperGrid: ForwardRefExoticComponent<ImageCropperGridProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.js';
|
|
6
|
+
import { useImageCropperContext } from './use-image-cropper-context.js';
|
|
7
|
+
|
|
8
|
+
const ImageCropperGrid = forwardRef((props, ref) => {
|
|
9
|
+
const { axis, ...localProps } = props;
|
|
10
|
+
const imageCropper = useImageCropperContext();
|
|
11
|
+
const mergedProps = mergeProps(imageCropper.getGridProps({ axis }), localProps);
|
|
12
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
13
|
+
});
|
|
14
|
+
ImageCropperGrid.displayName = "ImageCropperGrid";
|
|
15
|
+
|
|
16
|
+
export { ImageCropperGrid };
|
|
@@ -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$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const useImageCropperContext = require('./use-image-cropper-context.cjs');
|
|
11
|
+
|
|
12
|
+
const ImageCropperHandle = react.forwardRef((props, ref) => {
|
|
13
|
+
const { position, ...localProps } = props;
|
|
14
|
+
const imageCropper = useImageCropperContext.useImageCropperContext();
|
|
15
|
+
const mergedProps = react$1.mergeProps(imageCropper.getHandleProps({ position }), localProps);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
17
|
+
});
|
|
18
|
+
ImageCropperHandle.displayName = "ImageCropperHandle";
|
|
19
|
+
|
|
20
|
+
exports.ImageCropperHandle = ImageCropperHandle;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HandleProps } from '@zag-js/image-cropper';
|
|
2
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export interface ImageCropperHandleBaseProps extends PolymorphicProps, HandleProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ImageCropperHandleProps extends HTMLProps<'div'>, ImageCropperHandleBaseProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const ImageCropperHandle: ForwardRefExoticComponent<ImageCropperHandleProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HandleProps } from '@zag-js/image-cropper';
|
|
2
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export interface ImageCropperHandleBaseProps extends PolymorphicProps, HandleProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ImageCropperHandleProps extends HTMLProps<'div'>, ImageCropperHandleBaseProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const ImageCropperHandle: ForwardRefExoticComponent<ImageCropperHandleProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.js';
|
|
6
|
+
import { useImageCropperContext } from './use-image-cropper-context.js';
|
|
7
|
+
|
|
8
|
+
const ImageCropperHandle = forwardRef((props, ref) => {
|
|
9
|
+
const { position, ...localProps } = props;
|
|
10
|
+
const imageCropper = useImageCropperContext();
|
|
11
|
+
const mergedProps = mergeProps(imageCropper.getHandleProps({ position }), localProps);
|
|
12
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
13
|
+
});
|
|
14
|
+
ImageCropperHandle.displayName = "ImageCropperHandle";
|
|
15
|
+
|
|
16
|
+
export { ImageCropperHandle };
|
|
@@ -0,0 +1,19 @@
|
|
|
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$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const useImageCropperContext = require('./use-image-cropper-context.cjs');
|
|
11
|
+
|
|
12
|
+
const ImageCropperImage = react.forwardRef((props, ref) => {
|
|
13
|
+
const imageCropper = useImageCropperContext.useImageCropperContext();
|
|
14
|
+
const mergedProps = react$1.mergeProps(imageCropper.getImageProps(), props);
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.img, { ...mergedProps, ref });
|
|
16
|
+
});
|
|
17
|
+
ImageCropperImage.displayName = "ImageCropperImage";
|
|
18
|
+
|
|
19
|
+
exports.ImageCropperImage = ImageCropperImage;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ImageCropperImageBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ImageCropperImageProps extends HTMLProps<'img'>, ImageCropperImageBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ImageCropperImage: ForwardRefExoticComponent<ImageCropperImageProps & RefAttributes<HTMLImageElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ImageCropperImageBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ImageCropperImageProps extends HTMLProps<'img'>, ImageCropperImageBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ImageCropperImage: ForwardRefExoticComponent<ImageCropperImageProps & RefAttributes<HTMLImageElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.js';
|
|
6
|
+
import { useImageCropperContext } from './use-image-cropper-context.js';
|
|
7
|
+
|
|
8
|
+
const ImageCropperImage = forwardRef((props, ref) => {
|
|
9
|
+
const imageCropper = useImageCropperContext();
|
|
10
|
+
const mergedProps = mergeProps(imageCropper.getImageProps(), props);
|
|
11
|
+
return /* @__PURE__ */ jsx(ark.img, { ...mergedProps, ref });
|
|
12
|
+
});
|
|
13
|
+
ImageCropperImage.displayName = "ImageCropperImage";
|
|
14
|
+
|
|
15
|
+
export { ImageCropperImage };
|
|
@@ -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$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
10
|
+
const factory = require('../factory.cjs');
|
|
11
|
+
const useImageCropperContext = require('./use-image-cropper-context.cjs');
|
|
12
|
+
|
|
13
|
+
const ImageCropperRootProvider = react.forwardRef((props, ref) => {
|
|
14
|
+
const [{ value: imageCropper }, localProps] = createSplitProps.createSplitProps()(props, ["value"]);
|
|
15
|
+
const mergedProps = react$1.mergeProps(imageCropper.getRootProps(), localProps);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(useImageCropperContext.ImageCropperProvider, { value: imageCropper, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
17
|
+
});
|
|
18
|
+
ImageCropperRootProvider.displayName = "ImageCropperRootProvider";
|
|
19
|
+
|
|
20
|
+
exports.ImageCropperRootProvider = ImageCropperRootProvider;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { UseImageCropperReturn } from './use-image-cropper';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
interface RootProviderProps {
|
|
5
|
+
value: UseImageCropperReturn;
|
|
6
|
+
}
|
|
7
|
+
export interface ImageCropperRootProviderBaseProps extends RootProviderProps, PolymorphicProps {
|
|
8
|
+
}
|
|
9
|
+
export interface ImageCropperRootProviderProps extends HTMLProps<'div'>, ImageCropperRootProviderBaseProps {
|
|
10
|
+
}
|
|
11
|
+
export declare const ImageCropperRootProvider: ForwardRefExoticComponent<ImageCropperRootProviderProps & RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { UseImageCropperReturn } from './use-image-cropper';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
interface RootProviderProps {
|
|
5
|
+
value: UseImageCropperReturn;
|
|
6
|
+
}
|
|
7
|
+
export interface ImageCropperRootProviderBaseProps extends RootProviderProps, PolymorphicProps {
|
|
8
|
+
}
|
|
9
|
+
export interface ImageCropperRootProviderProps extends HTMLProps<'div'>, ImageCropperRootProviderBaseProps {
|
|
10
|
+
}
|
|
11
|
+
export declare const ImageCropperRootProvider: ForwardRefExoticComponent<ImageCropperRootProviderProps & RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { createSplitProps } from '../../utils/create-split-props.js';
|
|
6
|
+
import { ark } from '../factory.js';
|
|
7
|
+
import { ImageCropperProvider } from './use-image-cropper-context.js';
|
|
8
|
+
|
|
9
|
+
const ImageCropperRootProvider = forwardRef((props, ref) => {
|
|
10
|
+
const [{ value: imageCropper }, localProps] = createSplitProps()(props, ["value"]);
|
|
11
|
+
const mergedProps = mergeProps(imageCropper.getRootProps(), localProps);
|
|
12
|
+
return /* @__PURE__ */ jsx(ImageCropperProvider, { value: imageCropper, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });
|
|
13
|
+
});
|
|
14
|
+
ImageCropperRootProvider.displayName = "ImageCropperRootProvider";
|
|
15
|
+
|
|
16
|
+
export { ImageCropperRootProvider };
|
|
@@ -0,0 +1,51 @@
|
|
|
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$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
10
|
+
const factory = require('../factory.cjs');
|
|
11
|
+
const useImageCropper = require('./use-image-cropper.cjs');
|
|
12
|
+
const useImageCropperContext = require('./use-image-cropper-context.cjs');
|
|
13
|
+
|
|
14
|
+
const ImageCropperRoot = react.forwardRef((props, ref) => {
|
|
15
|
+
const [useImageCropperProps, localProps] = createSplitProps.createSplitProps()(props, [
|
|
16
|
+
"aspectRatio",
|
|
17
|
+
"cropShape",
|
|
18
|
+
"defaultFlip",
|
|
19
|
+
"defaultRotation",
|
|
20
|
+
"defaultZoom",
|
|
21
|
+
"fixedCropArea",
|
|
22
|
+
"flip",
|
|
23
|
+
"id",
|
|
24
|
+
"ids",
|
|
25
|
+
"initialCrop",
|
|
26
|
+
"maxHeight",
|
|
27
|
+
"maxWidth",
|
|
28
|
+
"maxZoom",
|
|
29
|
+
"minHeight",
|
|
30
|
+
"minWidth",
|
|
31
|
+
"minZoom",
|
|
32
|
+
"nudgeStep",
|
|
33
|
+
"nudgeStepCtrl",
|
|
34
|
+
"nudgeStepShift",
|
|
35
|
+
"onCropChange",
|
|
36
|
+
"onFlipChange",
|
|
37
|
+
"onRotationChange",
|
|
38
|
+
"onZoomChange",
|
|
39
|
+
"rotation",
|
|
40
|
+
"translations",
|
|
41
|
+
"zoom",
|
|
42
|
+
"zoomSensitivity",
|
|
43
|
+
"zoomStep"
|
|
44
|
+
]);
|
|
45
|
+
const imageCropper = useImageCropper.useImageCropper(useImageCropperProps);
|
|
46
|
+
const mergedProps = react$1.mergeProps(imageCropper.getRootProps(), localProps);
|
|
47
|
+
return /* @__PURE__ */ jsxRuntime.jsx(useImageCropperContext.ImageCropperProvider, { value: imageCropper, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
48
|
+
});
|
|
49
|
+
ImageCropperRoot.displayName = "ImageCropperRoot";
|
|
50
|
+
|
|
51
|
+
exports.ImageCropperRoot = ImageCropperRoot;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { UseImageCropperProps } from './use-image-cropper';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export interface ImageCropperRootBaseProps extends UseImageCropperProps, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ImageCropperRootProps extends HTMLProps<'div'>, ImageCropperRootBaseProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const ImageCropperRoot: ForwardRefExoticComponent<ImageCropperRootProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { UseImageCropperProps } from './use-image-cropper';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export interface ImageCropperRootBaseProps extends UseImageCropperProps, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ImageCropperRootProps extends HTMLProps<'div'>, ImageCropperRootBaseProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const ImageCropperRoot: ForwardRefExoticComponent<ImageCropperRootProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { createSplitProps } from '../../utils/create-split-props.js';
|
|
6
|
+
import { ark } from '../factory.js';
|
|
7
|
+
import { useImageCropper } from './use-image-cropper.js';
|
|
8
|
+
import { ImageCropperProvider } from './use-image-cropper-context.js';
|
|
9
|
+
|
|
10
|
+
const ImageCropperRoot = forwardRef((props, ref) => {
|
|
11
|
+
const [useImageCropperProps, localProps] = createSplitProps()(props, [
|
|
12
|
+
"aspectRatio",
|
|
13
|
+
"cropShape",
|
|
14
|
+
"defaultFlip",
|
|
15
|
+
"defaultRotation",
|
|
16
|
+
"defaultZoom",
|
|
17
|
+
"fixedCropArea",
|
|
18
|
+
"flip",
|
|
19
|
+
"id",
|
|
20
|
+
"ids",
|
|
21
|
+
"initialCrop",
|
|
22
|
+
"maxHeight",
|
|
23
|
+
"maxWidth",
|
|
24
|
+
"maxZoom",
|
|
25
|
+
"minHeight",
|
|
26
|
+
"minWidth",
|
|
27
|
+
"minZoom",
|
|
28
|
+
"nudgeStep",
|
|
29
|
+
"nudgeStepCtrl",
|
|
30
|
+
"nudgeStepShift",
|
|
31
|
+
"onCropChange",
|
|
32
|
+
"onFlipChange",
|
|
33
|
+
"onRotationChange",
|
|
34
|
+
"onZoomChange",
|
|
35
|
+
"rotation",
|
|
36
|
+
"translations",
|
|
37
|
+
"zoom",
|
|
38
|
+
"zoomSensitivity",
|
|
39
|
+
"zoomStep"
|
|
40
|
+
]);
|
|
41
|
+
const imageCropper = useImageCropper(useImageCropperProps);
|
|
42
|
+
const mergedProps = mergeProps(imageCropper.getRootProps(), localProps);
|
|
43
|
+
return /* @__PURE__ */ jsx(ImageCropperProvider, { value: imageCropper, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });
|
|
44
|
+
});
|
|
45
|
+
ImageCropperRoot.displayName = "ImageCropperRoot";
|
|
46
|
+
|
|
47
|
+
export { ImageCropperRoot };
|
|
@@ -0,0 +1,19 @@
|
|
|
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$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const useImageCropperContext = require('./use-image-cropper-context.cjs');
|
|
11
|
+
|
|
12
|
+
const ImageCropperSelection = react.forwardRef((props, ref) => {
|
|
13
|
+
const imageCropper = useImageCropperContext.useImageCropperContext();
|
|
14
|
+
const mergedProps = react$1.mergeProps(imageCropper.getSelectionProps(), props);
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
16
|
+
});
|
|
17
|
+
ImageCropperSelection.displayName = "ImageCropperSelection";
|
|
18
|
+
|
|
19
|
+
exports.ImageCropperSelection = ImageCropperSelection;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ImageCropperSelectionBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ImageCropperSelectionProps extends HTMLProps<'div'>, ImageCropperSelectionBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ImageCropperSelection: ForwardRefExoticComponent<ImageCropperSelectionProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ImageCropperSelectionBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ImageCropperSelectionProps extends HTMLProps<'div'>, ImageCropperSelectionBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ImageCropperSelection: ForwardRefExoticComponent<ImageCropperSelectionProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.js';
|
|
6
|
+
import { useImageCropperContext } from './use-image-cropper-context.js';
|
|
7
|
+
|
|
8
|
+
const ImageCropperSelection = forwardRef((props, ref) => {
|
|
9
|
+
const imageCropper = useImageCropperContext();
|
|
10
|
+
const mergedProps = mergeProps(imageCropper.getSelectionProps(), props);
|
|
11
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
12
|
+
});
|
|
13
|
+
ImageCropperSelection.displayName = "ImageCropperSelection";
|
|
14
|
+
|
|
15
|
+
export { ImageCropperSelection };
|
|
@@ -0,0 +1,19 @@
|
|
|
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$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const useImageCropperContext = require('./use-image-cropper-context.cjs');
|
|
11
|
+
|
|
12
|
+
const ImageCropperViewport = react.forwardRef((props, ref) => {
|
|
13
|
+
const imageCropper = useImageCropperContext.useImageCropperContext();
|
|
14
|
+
const mergedProps = react$1.mergeProps(imageCropper.getViewportProps(), props);
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
16
|
+
});
|
|
17
|
+
ImageCropperViewport.displayName = "ImageCropperViewport";
|
|
18
|
+
|
|
19
|
+
exports.ImageCropperViewport = ImageCropperViewport;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ImageCropperViewportBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ImageCropperViewportProps extends HTMLProps<'div'>, ImageCropperViewportBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ImageCropperViewport: ForwardRefExoticComponent<ImageCropperViewportProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ImageCropperViewportBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ImageCropperViewportProps extends HTMLProps<'div'>, ImageCropperViewportBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ImageCropperViewport: ForwardRefExoticComponent<ImageCropperViewportProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.js';
|
|
6
|
+
import { useImageCropperContext } from './use-image-cropper-context.js';
|
|
7
|
+
|
|
8
|
+
const ImageCropperViewport = forwardRef((props, ref) => {
|
|
9
|
+
const imageCropper = useImageCropperContext();
|
|
10
|
+
const mergedProps = mergeProps(imageCropper.getViewportProps(), props);
|
|
11
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
12
|
+
});
|
|
13
|
+
ImageCropperViewport.displayName = "ImageCropperViewport";
|
|
14
|
+
|
|
15
|
+
export { ImageCropperViewport };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { anatomy as imageCropperAnatomy } from '@zag-js/image-cropper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { anatomy as imageCropperAnatomy } from '@zag-js/image-cropper';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const imageCropper = require('@zag-js/image-cropper');
|
|
6
|
+
const imageCropperContext = require('./image-cropper-context.cjs');
|
|
7
|
+
const imageCropperGrid = require('./image-cropper-grid.cjs');
|
|
8
|
+
const imageCropperHandle = require('./image-cropper-handle.cjs');
|
|
9
|
+
const imageCropperImage = require('./image-cropper-image.cjs');
|
|
10
|
+
const imageCropperRoot = require('./image-cropper-root.cjs');
|
|
11
|
+
const imageCropperRootProvider = require('./image-cropper-root-provider.cjs');
|
|
12
|
+
const imageCropperSelection = require('./image-cropper-selection.cjs');
|
|
13
|
+
const imageCropperViewport = require('./image-cropper-viewport.cjs');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
Object.defineProperty(exports, "handles", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: () => imageCropper.handles
|
|
20
|
+
});
|
|
21
|
+
exports.Context = imageCropperContext.ImageCropperContext;
|
|
22
|
+
exports.Grid = imageCropperGrid.ImageCropperGrid;
|
|
23
|
+
exports.Handle = imageCropperHandle.ImageCropperHandle;
|
|
24
|
+
exports.Image = imageCropperImage.ImageCropperImage;
|
|
25
|
+
exports.Root = imageCropperRoot.ImageCropperRoot;
|
|
26
|
+
exports.RootProvider = imageCropperRootProvider.ImageCropperRootProvider;
|
|
27
|
+
exports.Selection = imageCropperSelection.ImageCropperSelection;
|
|
28
|
+
exports.Viewport = imageCropperViewport.ImageCropperViewport;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { CropChangeDetails, FlipChangeDetails, FlipState, HandlePosition, RotationChangeDetails, ZoomChangeDetails, SelectionLabelDetails, PreviewDescriptionDetails, SelectionValueTextDetails, } from '@zag-js/image-cropper';
|
|
2
|
+
export { handles } from '@zag-js/image-cropper';
|
|
3
|
+
export { ImageCropperContext as Context, type ImageCropperContextProps as ContextProps } from './image-cropper-context';
|
|
4
|
+
export { ImageCropperGrid as Grid, type ImageCropperGridBaseProps as GridBaseProps, type ImageCropperGridProps as GridProps, } from './image-cropper-grid';
|
|
5
|
+
export { ImageCropperHandle as Handle, type ImageCropperHandleBaseProps as HandleBaseProps, type ImageCropperHandleProps as HandleProps, } from './image-cropper-handle';
|
|
6
|
+
export { ImageCropperImage as Image, type ImageCropperImageBaseProps as ImageBaseProps, type ImageCropperImageProps as ImageProps, } from './image-cropper-image';
|
|
7
|
+
export { ImageCropperRoot as Root, type ImageCropperRootBaseProps as RootBaseProps, type ImageCropperRootProps as RootProps, } from './image-cropper-root';
|
|
8
|
+
export { ImageCropperRootProvider as RootProvider, type ImageCropperRootProviderBaseProps as RootProviderBaseProps, type ImageCropperRootProviderProps as RootProviderProps, } from './image-cropper-root-provider';
|
|
9
|
+
export { ImageCropperSelection as Selection, type ImageCropperSelectionBaseProps as SelectionBaseProps, type ImageCropperSelectionProps as SelectionProps, } from './image-cropper-selection';
|
|
10
|
+
export { ImageCropperViewport as Viewport, type ImageCropperViewportBaseProps as ViewportBaseProps, type ImageCropperViewportProps as ViewportProps, } from './image-cropper-viewport';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { CropChangeDetails, FlipChangeDetails, FlipState, HandlePosition, RotationChangeDetails, ZoomChangeDetails, SelectionLabelDetails, PreviewDescriptionDetails, SelectionValueTextDetails, } from '@zag-js/image-cropper';
|
|
2
|
+
export { handles } from '@zag-js/image-cropper';
|
|
3
|
+
export { ImageCropperContext as Context, type ImageCropperContextProps as ContextProps } from './image-cropper-context';
|
|
4
|
+
export { ImageCropperGrid as Grid, type ImageCropperGridBaseProps as GridBaseProps, type ImageCropperGridProps as GridProps, } from './image-cropper-grid';
|
|
5
|
+
export { ImageCropperHandle as Handle, type ImageCropperHandleBaseProps as HandleBaseProps, type ImageCropperHandleProps as HandleProps, } from './image-cropper-handle';
|
|
6
|
+
export { ImageCropperImage as Image, type ImageCropperImageBaseProps as ImageBaseProps, type ImageCropperImageProps as ImageProps, } from './image-cropper-image';
|
|
7
|
+
export { ImageCropperRoot as Root, type ImageCropperRootBaseProps as RootBaseProps, type ImageCropperRootProps as RootProps, } from './image-cropper-root';
|
|
8
|
+
export { ImageCropperRootProvider as RootProvider, type ImageCropperRootProviderBaseProps as RootProviderBaseProps, type ImageCropperRootProviderProps as RootProviderProps, } from './image-cropper-root-provider';
|
|
9
|
+
export { ImageCropperSelection as Selection, type ImageCropperSelectionBaseProps as SelectionBaseProps, type ImageCropperSelectionProps as SelectionProps, } from './image-cropper-selection';
|
|
10
|
+
export { ImageCropperViewport as Viewport, type ImageCropperViewportBaseProps as ViewportBaseProps, type ImageCropperViewportProps as ViewportProps, } from './image-cropper-viewport';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { handles } from '@zag-js/image-cropper';
|
|
2
|
+
export { ImageCropperContext as Context } from './image-cropper-context.js';
|
|
3
|
+
export { ImageCropperGrid as Grid } from './image-cropper-grid.js';
|
|
4
|
+
export { ImageCropperHandle as Handle } from './image-cropper-handle.js';
|
|
5
|
+
export { ImageCropperImage as Image } from './image-cropper-image.js';
|
|
6
|
+
export { ImageCropperRoot as Root } from './image-cropper-root.js';
|
|
7
|
+
export { ImageCropperRootProvider as RootProvider } from './image-cropper-root-provider.js';
|
|
8
|
+
export { ImageCropperSelection as Selection } from './image-cropper-selection.js';
|
|
9
|
+
export { ImageCropperViewport as Viewport } from './image-cropper-viewport.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const imageCropperContext = require('./image-cropper-context.cjs');
|
|
6
|
+
const imageCropperGrid = require('./image-cropper-grid.cjs');
|
|
7
|
+
const imageCropperHandle = require('./image-cropper-handle.cjs');
|
|
8
|
+
const imageCropperImage = require('./image-cropper-image.cjs');
|
|
9
|
+
const imageCropperRoot = require('./image-cropper-root.cjs');
|
|
10
|
+
const imageCropperRootProvider = require('./image-cropper-root-provider.cjs');
|
|
11
|
+
const imageCropperSelection = require('./image-cropper-selection.cjs');
|
|
12
|
+
const imageCropperViewport = require('./image-cropper-viewport.cjs');
|
|
13
|
+
const useImageCropper = require('./use-image-cropper.cjs');
|
|
14
|
+
const useImageCropperContext = require('./use-image-cropper-context.cjs');
|
|
15
|
+
const imageCropper$1 = require('./image-cropper.cjs');
|
|
16
|
+
const imageCropper = require('@zag-js/image-cropper');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.ImageCropperContext = imageCropperContext.ImageCropperContext;
|
|
21
|
+
exports.ImageCropperGrid = imageCropperGrid.ImageCropperGrid;
|
|
22
|
+
exports.ImageCropperHandle = imageCropperHandle.ImageCropperHandle;
|
|
23
|
+
exports.ImageCropperImage = imageCropperImage.ImageCropperImage;
|
|
24
|
+
exports.ImageCropperRoot = imageCropperRoot.ImageCropperRoot;
|
|
25
|
+
exports.ImageCropperRootProvider = imageCropperRootProvider.ImageCropperRootProvider;
|
|
26
|
+
exports.ImageCropperSelection = imageCropperSelection.ImageCropperSelection;
|
|
27
|
+
exports.ImageCropperViewport = imageCropperViewport.ImageCropperViewport;
|
|
28
|
+
exports.useImageCropper = useImageCropper.useImageCropper;
|
|
29
|
+
exports.useImageCropperContext = useImageCropperContext.useImageCropperContext;
|
|
30
|
+
exports.ImageCropper = imageCropper$1;
|
|
31
|
+
Object.defineProperty(exports, "imageCropperAnatomy", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: () => imageCropper.anatomy
|
|
34
|
+
});
|