@skeletonlabs/skeleton-react 2.0.0-next.6 → 2.0.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/anatomy/item-content.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-content.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-heading.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-heading.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-indicator.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-trigger.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-trigger.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item.d.ts +2 -2
- package/dist/components/accordion/anatomy/item.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/root-provider.d.ts +2 -2
- package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/root.d.ts +2 -2
- package/dist/components/accordion/anatomy/root.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/fallback.d.ts +3 -3
- package/dist/components/avatar/anatomy/image.d.ts +3 -3
- package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
- package/dist/components/avatar/anatomy/root.d.ts +2 -2
- package/dist/components/dialog/anatomy/backdrop.d.ts +11 -0
- package/dist/components/dialog/anatomy/backdrop.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/backdrop.js +17 -0
- package/dist/components/dialog/anatomy/backdrop.js.map +1 -0
- package/dist/components/dialog/anatomy/close-trigger.d.ts +11 -0
- package/dist/components/dialog/anatomy/close-trigger.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/close-trigger.js +20 -0
- package/dist/components/dialog/anatomy/close-trigger.js.map +1 -0
- package/dist/components/dialog/anatomy/content.d.ts +11 -0
- package/dist/components/dialog/anatomy/content.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/content.js +20 -0
- package/dist/components/dialog/anatomy/content.js.map +1 -0
- package/dist/components/dialog/anatomy/description.d.ts +11 -0
- package/dist/components/dialog/anatomy/description.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/description.js +20 -0
- package/dist/components/dialog/anatomy/description.js.map +1 -0
- package/dist/components/dialog/anatomy/positioner.d.ts +11 -0
- package/dist/components/dialog/anatomy/positioner.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/positioner.js +20 -0
- package/dist/components/dialog/anatomy/positioner.js.map +1 -0
- package/dist/components/dialog/anatomy/root-context.d.ts +11 -0
- package/dist/components/dialog/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/root-context.js +13 -0
- package/dist/components/dialog/anatomy/root-context.js.map +1 -0
- package/dist/components/dialog/anatomy/root-provider.d.ts +12 -0
- package/dist/components/dialog/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/root-provider.js +15 -0
- package/dist/components/dialog/anatomy/root-provider.js.map +1 -0
- package/dist/components/dialog/anatomy/root.d.ts +10 -0
- package/dist/components/dialog/anatomy/root.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/root.js +20 -0
- package/dist/components/dialog/anatomy/root.js.map +1 -0
- package/dist/components/dialog/anatomy/title.d.ts +11 -0
- package/dist/components/dialog/anatomy/title.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/title.js +20 -0
- package/dist/components/dialog/anatomy/title.js.map +1 -0
- package/dist/components/dialog/anatomy/trigger.d.ts +11 -0
- package/dist/components/dialog/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/dialog/anatomy/trigger.js +20 -0
- package/dist/components/dialog/anatomy/trigger.js.map +1 -0
- package/dist/components/dialog/index.js +4 -0
- package/dist/components/dialog/modules/anatomy.d.ts +26 -0
- package/dist/components/dialog/modules/anatomy.d.ts.map +1 -0
- package/dist/components/dialog/modules/anatomy.js +27 -0
- package/dist/components/dialog/modules/anatomy.js.map +1 -0
- package/dist/components/dialog/modules/root-context.js +8 -0
- package/dist/components/dialog/modules/root-context.js.map +1 -0
- package/dist/components/dialog/modules/use-dialog.d.ts +8 -0
- package/dist/components/dialog/modules/use-dialog.d.ts.map +1 -0
- package/dist/components/dialog/modules/use-dialog.js +16 -0
- package/dist/components/dialog/modules/use-dialog.js.map +1 -0
- package/dist/components/file-upload/anatomy/dropzone.d.ts +3 -3
- package/dist/components/file-upload/anatomy/dropzone.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/file-upload/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-group.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-group.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-name.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-name.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-size-text.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root.d.ts +2 -2
- package/dist/components/file-upload/anatomy/trigger.d.ts +3 -3
- package/dist/components/file-upload/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/popover/anatomy/arrow-tip.d.ts +3 -3
- package/dist/components/popover/anatomy/arrow.d.ts +3 -3
- package/dist/components/popover/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/popover/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/popover/anatomy/content.d.ts +3 -3
- package/dist/components/popover/anatomy/description.d.ts +3 -3
- package/dist/components/popover/anatomy/positioner.d.ts +2 -2
- package/dist/components/popover/anatomy/root-provider.d.ts +2 -2
- package/dist/components/popover/anatomy/root.d.ts +2 -2
- package/dist/components/popover/anatomy/title.d.ts +3 -3
- package/dist/components/popover/anatomy/trigger.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/label.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/label.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/range.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/range.d.ts.map +1 -1
- package/dist/components/progress-linear/anatomy/root-provider.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/root.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/track.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/track.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/control.d.ts +3 -3
- package/dist/components/rating-group/anatomy/control.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/rating-group/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/item.d.ts +3 -3
- package/dist/components/rating-group/anatomy/item.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/label.d.ts +3 -3
- package/dist/components/rating-group/anatomy/label.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/root-provider.d.ts +2 -2
- package/dist/components/rating-group/anatomy/root.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/indicator.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/indicator.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/indicator.js +17 -0
- package/dist/components/segmented-control/anatomy/indicator.js.map +1 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.js +19 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.js.map +1 -0
- package/dist/components/segmented-control/anatomy/item-text.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/item-text.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item-text.js +22 -0
- package/dist/components/segmented-control/anatomy/item-text.js.map +1 -0
- package/dist/components/segmented-control/anatomy/item.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/item.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item.js +26 -0
- package/dist/components/segmented-control/anatomy/item.js.map +1 -0
- package/dist/components/segmented-control/anatomy/root-context.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root-context.js +13 -0
- package/dist/components/segmented-control/anatomy/root-context.js.map +1 -0
- package/dist/components/segmented-control/anatomy/root-provider.d.ts +13 -0
- package/dist/components/segmented-control/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root-provider.js +21 -0
- package/dist/components/segmented-control/anatomy/root-provider.js.map +1 -0
- package/dist/components/segmented-control/anatomy/root.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/root.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root.js +25 -0
- package/dist/components/segmented-control/anatomy/root.js.map +1 -0
- package/dist/components/segmented-control/index.js +4 -0
- package/dist/components/segmented-control/modules/anatomy.d.ts +20 -0
- package/dist/components/segmented-control/modules/anatomy.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/anatomy.js +21 -0
- package/dist/components/segmented-control/modules/anatomy.js.map +1 -0
- package/dist/components/segmented-control/modules/item-context.js +8 -0
- package/dist/components/segmented-control/modules/item-context.js.map +1 -0
- package/dist/components/segmented-control/modules/root-context.js +8 -0
- package/dist/components/segmented-control/modules/root-context.js.map +1 -0
- package/dist/components/segmented-control/modules/use-segmented-control.d.ts +8 -0
- package/dist/components/segmented-control/modules/use-segmented-control.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/use-segmented-control.js +17 -0
- package/dist/components/segmented-control/modules/use-segmented-control.js.map +1 -0
- package/dist/components/switch/anatomy/control.d.ts +3 -3
- package/dist/components/switch/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/switch/anatomy/label.d.ts +3 -3
- package/dist/components/switch/anatomy/root-provider.d.ts +2 -2
- package/dist/components/switch/anatomy/root.d.ts +2 -2
- package/dist/components/switch/anatomy/thumb.d.ts +3 -3
- package/dist/components/tabs/anatomy/content.d.ts +3 -3
- package/dist/components/tabs/anatomy/content.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/indicator.d.ts +3 -3
- package/dist/components/tabs/anatomy/indicator.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/list.d.ts +3 -3
- package/dist/components/tabs/anatomy/list.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tabs/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/root.d.ts +2 -2
- package/dist/components/tabs/anatomy/root.d.ts.map +1 -1
- package/dist/components/tabs/anatomy/trigger.d.ts +3 -3
- package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts +3 -3
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/control.d.ts +3 -3
- package/dist/components/tags-input/anatomy/control.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-preview.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-preview.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-text.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-text.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item.d.ts +2 -2
- package/dist/components/tags-input/anatomy/label.d.ts +3 -3
- package/dist/components/tags-input/anatomy/label.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tags-input/anatomy/root.d.ts +2 -2
- package/dist/components/toast/anatomy/action-trigger.d.ts +3 -3
- package/dist/components/toast/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/toast/anatomy/description.d.ts +3 -3
- package/dist/components/toast/anatomy/group.d.ts +2 -2
- package/dist/components/toast/anatomy/message.d.ts +3 -3
- package/dist/components/toast/anatomy/root.d.ts +2 -2
- package/dist/components/toast/anatomy/title.d.ts +3 -3
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts +2 -2
- package/dist/components/tooltip/anatomy/arrow.d.ts +2 -2
- package/dist/components/tooltip/anatomy/content.d.ts +2 -2
- package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/trigger.d.ts +2 -2
- package/dist/index.d.ts +22 -1
- package/dist/index.js +7 -1
- package/dist/node_modules/.pnpm/@zag-js_anatomy@1.24.1/node_modules/@zag-js/anatomy/dist/index.js +24 -0
- package/dist/node_modules/.pnpm/@zag-js_anatomy@1.24.1/node_modules/@zag-js/anatomy/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_core@1.24.1/node_modules/@zag-js/core/dist/index.js +27 -0
- package/dist/node_modules/.pnpm/@zag-js_core@1.24.1/node_modules/@zag-js/core/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_dom-query@1.24.1/node_modules/@zag-js/dom-query/dist/index.js +143 -0
- package/dist/node_modules/.pnpm/@zag-js_dom-query@1.24.1/node_modules/@zag-js/dom-query/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_focus-visible@1.24.1/node_modules/@zag-js/focus-visible/dist/index.js +150 -0
- package/dist/node_modules/.pnpm/@zag-js_focus-visible@1.24.1/node_modules/@zag-js/focus-visible/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_radio-group@1.24.1/node_modules/@zag-js/radio-group/dist/index.js +421 -0
- package/dist/node_modules/.pnpm/@zag-js_radio-group@1.24.1/node_modules/@zag-js/radio-group/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_types@1.24.1/node_modules/@zag-js/types/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@zag-js_types@1.24.1/node_modules/@zag-js/types/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_utils@1.24.1/node_modules/@zag-js/utils/dist/index.js +22 -0
- package/dist/node_modules/.pnpm/@zag-js_utils@1.24.1/node_modules/@zag-js/utils/dist/index.js.map +1 -0
- package/package.json +4 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react172 from "react";
|
|
4
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/close-trigger.d.ts
|
|
7
7
|
interface ToastCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function CloseTrigger(props: ToastCloseTriggerProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function CloseTrigger(props: ToastCloseTriggerProps): string | number | bigint | boolean | Iterable<react172.ReactNode> | Promise<string | number | bigint | boolean | react172.ReactPortal | react172.ReactElement<unknown, string | react172.JSXElementConstructor<any>> | Iterable<react172.ReactNode> | null | undefined> | react_jsx_runtime52.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { CloseTrigger, ToastCloseTriggerProps };
|
|
11
11
|
//# sourceMappingURL=close-trigger.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react177 from "react";
|
|
4
|
+
import * as react_jsx_runtime53 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/description.d.ts
|
|
7
7
|
interface ToastDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Description(props: ToastDescriptionProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Description(props: ToastDescriptionProps): string | number | bigint | boolean | Iterable<react177.ReactNode> | Promise<string | number | bigint | boolean | react177.ReactPortal | react177.ReactElement<unknown, string | react177.JSXElementConstructor<any>> | Iterable<react177.ReactNode> | null | undefined> | react_jsx_runtime53.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Description, ToastDescriptionProps };
|
|
11
11
|
//# sourceMappingURL=description.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { JSX } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime54 from "react/jsx-runtime";
|
|
5
5
|
import { Props, Store } from "@zag-js/toast";
|
|
6
6
|
|
|
7
7
|
//#region src/components/toast/anatomy/group.d.ts
|
|
@@ -9,7 +9,7 @@ interface ToastGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div',
|
|
|
9
9
|
toaster: Store;
|
|
10
10
|
children?: (toast: Props) => JSX.Element | null;
|
|
11
11
|
}
|
|
12
|
-
declare function Group(props: ToastGroupProps):
|
|
12
|
+
declare function Group(props: ToastGroupProps): react_jsx_runtime54.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Group, ToastGroupProps };
|
|
15
15
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react182 from "react";
|
|
4
|
+
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/message.d.ts
|
|
7
7
|
interface ToastMessageProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Message(props: ToastMessageProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Message(props: ToastMessageProps): string | number | bigint | boolean | Iterable<react182.ReactNode> | Promise<string | number | bigint | boolean | react182.ReactPortal | react182.ReactElement<unknown, string | react182.JSXElementConstructor<any>> | Iterable<react182.ReactNode> | null | undefined> | react_jsx_runtime55.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Message, ToastMessageProps };
|
|
11
11
|
//# sourceMappingURL=message.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
4
4
|
import { Options } from "@zag-js/toast";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/root.d.ts
|
|
7
7
|
interface ToastRootProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
8
8
|
toast: Omit<Options, 'id' | 'parent'>;
|
|
9
9
|
}
|
|
10
|
-
declare function Root(props: ToastRootProps):
|
|
10
|
+
declare function Root(props: ToastRootProps): react_jsx_runtime56.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Root, ToastRootProps };
|
|
13
13
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react187 from "react";
|
|
4
|
+
import * as react_jsx_runtime57 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/title.d.ts
|
|
7
7
|
interface ToastTitleProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Title(props: ToastTitleProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Title(props: ToastTitleProps): string | number | bigint | boolean | Iterable<react187.ReactNode> | Promise<string | number | bigint | boolean | react187.ReactPortal | react187.ReactElement<unknown, string | react187.JSXElementConstructor<any>> | Iterable<react187.ReactNode> | null | undefined> | react_jsx_runtime57.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Title, ToastTitleProps };
|
|
11
11
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import * as react24 from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tooltip/anatomy/arrow-tip.d.ts
|
|
7
7
|
interface TooltipArrowTipProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function ArrowTip(props: TooltipArrowTipProps): string | number | bigint | boolean | Iterable<react24.ReactNode> | Promise<string | number | bigint | boolean | react24.ReactPortal | react24.ReactElement<unknown, string | react24.JSXElementConstructor<any>> | Iterable<react24.ReactNode> | null | undefined> |
|
|
8
|
+
declare function ArrowTip(props: TooltipArrowTipProps): string | number | bigint | boolean | Iterable<react24.ReactNode> | Promise<string | number | bigint | boolean | react24.ReactPortal | react24.ReactElement<unknown, string | react24.JSXElementConstructor<any>> | Iterable<react24.ReactNode> | null | undefined> | react_jsx_runtime7.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ArrowTip, TooltipArrowTipProps };
|
|
11
11
|
//# sourceMappingURL=arrow-tip.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import * as react19 from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tooltip/anatomy/arrow.d.ts
|
|
7
7
|
interface TooltipArrowProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Arrow(props: TooltipArrowProps): string | number | bigint | boolean | Iterable<react19.ReactNode> | Promise<string | number | bigint | boolean | react19.ReactPortal | react19.ReactElement<unknown, string | react19.JSXElementConstructor<any>> | Iterable<react19.ReactNode> | null | undefined> |
|
|
8
|
+
declare function Arrow(props: TooltipArrowProps): string | number | bigint | boolean | Iterable<react19.ReactNode> | Promise<string | number | bigint | boolean | react19.ReactPortal | react19.ReactElement<unknown, string | react19.JSXElementConstructor<any>> | Iterable<react19.ReactNode> | null | undefined> | react_jsx_runtime6.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Arrow, TooltipArrowProps };
|
|
11
11
|
//# sourceMappingURL=arrow.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import * as react29 from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tooltip/anatomy/content.d.ts
|
|
7
7
|
interface TooltipContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Content(props: TooltipContentProps): string | number | bigint | boolean | Iterable<react29.ReactNode> | Promise<string | number | bigint | boolean | react29.ReactPortal | react29.ReactElement<unknown, string | react29.JSXElementConstructor<any>> | Iterable<react29.ReactNode> | null | undefined> |
|
|
8
|
+
declare function Content(props: TooltipContentProps): string | number | bigint | boolean | Iterable<react29.ReactNode> | Promise<string | number | bigint | boolean | react29.ReactPortal | react29.ReactElement<unknown, string | react29.JSXElementConstructor<any>> | Iterable<react29.ReactNode> | null | undefined> | react_jsx_runtime8.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Content, TooltipContentProps };
|
|
11
11
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/positioner.d.ts
|
|
6
6
|
interface TooltipPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Positioner(props: TooltipPositionerProps):
|
|
7
|
+
declare function Positioner(props: TooltipPositionerProps): react_jsx_runtime9.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Positioner, TooltipPositionerProps };
|
|
10
10
|
//# sourceMappingURL=positioner.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useTooltip } from "../modules/use-tooltip.js";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/root-provider.d.ts
|
|
6
6
|
interface TooltipRootProviderProps extends PropsWithChildren {
|
|
7
7
|
value: ReturnType<typeof useTooltip>;
|
|
8
8
|
}
|
|
9
|
-
declare function RootProvider(props: TooltipRootProviderProps):
|
|
9
|
+
declare function RootProvider(props: TooltipRootProviderProps): react_jsx_runtime11.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { RootProvider, TooltipRootProviderProps };
|
|
12
12
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
import { Props } from "@zag-js/tooltip";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/root.d.ts
|
|
6
6
|
interface TooltipRootProps extends PropsWithChildren, Omit<Props, 'id'> {}
|
|
7
|
-
declare function Root(props: TooltipRootProps):
|
|
7
|
+
declare function Root(props: TooltipRootProps): react_jsx_runtime10.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Root, TooltipRootProps };
|
|
10
10
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/tooltip/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;UAKiB,gBAAA,SAAyB,mBAAmB,KAAK;iBAE1C,IAAA,QAAY,mBAAgB,
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/tooltip/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;UAKiB,gBAAA,SAAyB,mBAAmB,KAAK;iBAE1C,IAAA,QAAY,mBAAgB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import * as react34 from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tooltip/anatomy/trigger.d.ts
|
|
7
7
|
interface TooltipTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function Trigger(props: TooltipTriggerProps): string | number | bigint | boolean | Iterable<react34.ReactNode> | Promise<string | number | bigint | boolean | react34.ReactPortal | react34.ReactElement<unknown, string | react34.JSXElementConstructor<any>> | Iterable<react34.ReactNode> | null | undefined> |
|
|
8
|
+
declare function Trigger(props: TooltipTriggerProps): string | number | bigint | boolean | Iterable<react34.ReactNode> | Promise<string | number | bigint | boolean | react34.ReactPortal | react34.ReactElement<unknown, string | react34.JSXElementConstructor<any>> | Iterable<react34.ReactNode> | null | undefined> | react_jsx_runtime12.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { TooltipTriggerProps, Trigger };
|
|
11
11
|
//# sourceMappingURL=trigger.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,18 @@ import { useAvatar } from "./components/avatar/modules/use-avatar.js";
|
|
|
15
15
|
import { AvatarRootContextProps } from "./components/avatar/anatomy/root-context.js";
|
|
16
16
|
import { AvatarRootProviderProps } from "./components/avatar/anatomy/root-provider.js";
|
|
17
17
|
import { Avatar } from "./components/avatar/modules/anatomy.js";
|
|
18
|
+
import { DialogBackdropProps } from "./components/dialog/anatomy/backdrop.js";
|
|
19
|
+
import { DialogCloseTriggerProps } from "./components/dialog/anatomy/close-trigger.js";
|
|
20
|
+
import { DialogContentProps } from "./components/dialog/anatomy/content.js";
|
|
21
|
+
import { DialogDescriptionProps } from "./components/dialog/anatomy/description.js";
|
|
22
|
+
import { DialogPositionerProps } from "./components/dialog/anatomy/positioner.js";
|
|
23
|
+
import { DialogRootProps } from "./components/dialog/anatomy/root.js";
|
|
24
|
+
import { useDialog } from "./components/dialog/modules/use-dialog.js";
|
|
25
|
+
import { DialogRootContextProps } from "./components/dialog/anatomy/root-context.js";
|
|
26
|
+
import { DialogRootProviderProps } from "./components/dialog/anatomy/root-provider.js";
|
|
27
|
+
import { DialogTitleProps } from "./components/dialog/anatomy/title.js";
|
|
28
|
+
import { DialogTriggerProps } from "./components/dialog/anatomy/trigger.js";
|
|
29
|
+
import { Dialog } from "./components/dialog/modules/anatomy.js";
|
|
18
30
|
import { FileUploadDropzoneProps } from "./components/file-upload/anatomy/dropzone.js";
|
|
19
31
|
import { FileUploadHiddenInputProps } from "./components/file-upload/anatomy/hidden-input.js";
|
|
20
32
|
import { FileUploadItemProps } from "./components/file-upload/anatomy/item.js";
|
|
@@ -56,6 +68,15 @@ import { useRatingGroup } from "./components/rating-group/modules/use-rating-gro
|
|
|
56
68
|
import { RatingGroupRootContextProps } from "./components/rating-group/anatomy/root-context.js";
|
|
57
69
|
import { RatingGroupRootProviderProps } from "./components/rating-group/anatomy/root-provider.js";
|
|
58
70
|
import { RatingGroup } from "./components/rating-group/modules/anatomy.js";
|
|
71
|
+
import { SegmentedControlIndicatorProps } from "./components/segmented-control/anatomy/indicator.js";
|
|
72
|
+
import { SegmentedControlItemProps } from "./components/segmented-control/anatomy/item.js";
|
|
73
|
+
import { SegmentedControlItemHiddenInputProps } from "./components/segmented-control/anatomy/item-hidden-input.js";
|
|
74
|
+
import { SegmentedControlItemTextProps } from "./components/segmented-control/anatomy/item-text.js";
|
|
75
|
+
import { SegmentedControlRootProps } from "./components/segmented-control/anatomy/root.js";
|
|
76
|
+
import { useSegmentedControl } from "./components/segmented-control/modules/use-segmented-control.js";
|
|
77
|
+
import { SegmentedControlRootContextProps } from "./components/segmented-control/anatomy/root-context.js";
|
|
78
|
+
import { SegmentedControlRootProviderProps } from "./components/segmented-control/anatomy/root-provider.js";
|
|
79
|
+
import { SegmentedControl } from "./components/segmented-control/modules/anatomy.js";
|
|
59
80
|
import { SwitchControlProps } from "./components/switch/anatomy/control.js";
|
|
60
81
|
import { SwitchHiddenInputProps } from "./components/switch/anatomy/hidden-input.js";
|
|
61
82
|
import { SwitchLabelProps } from "./components/switch/anatomy/label.js";
|
|
@@ -107,4 +128,4 @@ import { TooltipRootContextProps } from "./components/tooltip/anatomy/root-conte
|
|
|
107
128
|
import { TooltipRootProviderProps } from "./components/tooltip/anatomy/root-provider.js";
|
|
108
129
|
import { TooltipTriggerProps } from "./components/tooltip/anatomy/trigger.js";
|
|
109
130
|
import { Tooltip } from "./components/tooltip/modules/anatomy.js";
|
|
110
|
-
export { Accordion, AccordionItemContentProps, AccordionItemHeadingProps, AccordionItemIndicatorProps, AccordionItemProps, AccordionItemTriggerProps, AccordionRootContextProps, AccordionRootProps, AccordionRootProviderProps, Avatar, AvatarFallbackProps, AvatarImageProps, AvatarRootContextProps, AvatarRootProps, AvatarRootProviderProps, FileUpload, FileUploadDropzoneProps, FileUploadHiddenInputProps, FileUploadItemDeleteTriggerProps, FileUploadItemGroupProps, FileUploadItemNameProps, FileUploadItemProps, FileUploadItemSizeTextProps, FileUploadRootContextProps, FileUploadRootProps, FileUploadRootProviderProps, FileUploadTriggerProps, Popover, PopoverCloseTriggerProps, PopoverContentProps, PopoverDescriptionProps, PopoverPositionerProps, PopoverRootContextProps, PopoverRootProps, PopoverRootProviderProps, PopoverTitleProps, PopoverTriggerProps, ProgressLinear, ProgressLinearLabelProps, ProgressLinearRangeProps, ProgressLinearRootContextProps, ProgressLinearRootProps, ProgressLinearRootProviderProps, ProgressLinearTrackProps, RatingGroup, RatingGroupControlProps, RatingGroupHiddenInputProps, RatingGroupItemProps, RatingGroupLabelProps, RatingGroupRootContextProps, RatingGroupRootProps, RatingGroupRootProviderProps, Switch, SwitchControlProps, SwitchHiddenInputProps, SwitchLabelProps, SwitchRootContextProps, SwitchRootProviderProps, SwitchThumbProps, Tabs, TabsContentProps, TabsIndicatorProps, TabsListProps, TabsRootContextProps, TabsRootProps, TabsRootProviderProps, TabsTriggerProps, TagsInput, TagsInputClearTriggerProps, TagsInputControlProps, TagsInputHiddenInputProps, TagsInputInputProps, TagsInputItemDeleteTriggerProps, TagsInputItemInputProps, TagsInputItemPreviewProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputLabelProps, TagsInputRootContextProps, TagsInputRootProps, TagsInputRootProviderProps, Toast, ToastCloseTriggerProps, ToastDescriptionProps, ToastGroupProps, ToastMessageProps, ToastRootContextProps, ToastRootProps, ToastTitleProps, Tooltip, TooltipArrowProps, TooltipArrowTipProps, TooltipContentProps, TooltipPositionerProps, TooltipRootContextProps, TooltipRootProps, TooltipRootProviderProps, TooltipTriggerProps, createToaster, useAccordion, useAvatar, useFileUpload, usePopover, useProgressLinear, useRatingGroup, useSwitch, useTabs, useTagsInput, useTooltip };
|
|
131
|
+
export { Accordion, AccordionItemContentProps, AccordionItemHeadingProps, AccordionItemIndicatorProps, AccordionItemProps, AccordionItemTriggerProps, AccordionRootContextProps, AccordionRootProps, AccordionRootProviderProps, Avatar, AvatarFallbackProps, AvatarImageProps, AvatarRootContextProps, AvatarRootProps, AvatarRootProviderProps, Dialog, DialogBackdropProps, DialogCloseTriggerProps, DialogContentProps, DialogDescriptionProps, DialogPositionerProps, DialogRootContextProps, DialogRootProps, DialogRootProviderProps, DialogTitleProps, DialogTriggerProps, FileUpload, FileUploadDropzoneProps, FileUploadHiddenInputProps, FileUploadItemDeleteTriggerProps, FileUploadItemGroupProps, FileUploadItemNameProps, FileUploadItemProps, FileUploadItemSizeTextProps, FileUploadRootContextProps, FileUploadRootProps, FileUploadRootProviderProps, FileUploadTriggerProps, Popover, PopoverCloseTriggerProps, PopoverContentProps, PopoverDescriptionProps, PopoverPositionerProps, PopoverRootContextProps, PopoverRootProps, PopoverRootProviderProps, PopoverTitleProps, PopoverTriggerProps, ProgressLinear, ProgressLinearLabelProps, ProgressLinearRangeProps, ProgressLinearRootContextProps, ProgressLinearRootProps, ProgressLinearRootProviderProps, ProgressLinearTrackProps, RatingGroup, RatingGroupControlProps, RatingGroupHiddenInputProps, RatingGroupItemProps, RatingGroupLabelProps, RatingGroupRootContextProps, RatingGroupRootProps, RatingGroupRootProviderProps, SegmentedControl, SegmentedControlIndicatorProps, SegmentedControlItemHiddenInputProps, SegmentedControlItemProps, SegmentedControlItemTextProps, SegmentedControlRootContextProps, SegmentedControlRootProps, SegmentedControlRootProviderProps, Switch, SwitchControlProps, SwitchHiddenInputProps, SwitchLabelProps, SwitchRootContextProps, SwitchRootProviderProps, SwitchThumbProps, Tabs, TabsContentProps, TabsIndicatorProps, TabsListProps, TabsRootContextProps, TabsRootProps, TabsRootProviderProps, TabsTriggerProps, TagsInput, TagsInputClearTriggerProps, TagsInputControlProps, TagsInputHiddenInputProps, TagsInputInputProps, TagsInputItemDeleteTriggerProps, TagsInputItemInputProps, TagsInputItemPreviewProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputLabelProps, TagsInputRootContextProps, TagsInputRootProps, TagsInputRootProviderProps, Toast, ToastCloseTriggerProps, ToastDescriptionProps, ToastGroupProps, ToastMessageProps, ToastRootContextProps, ToastRootProps, ToastTitleProps, Tooltip, TooltipArrowProps, TooltipArrowTipProps, TooltipContentProps, TooltipPositionerProps, TooltipRootContextProps, TooltipRootProps, TooltipRootProviderProps, TooltipTriggerProps, createToaster, useAccordion, useAvatar, useDialog, useFileUpload, usePopover, useProgressLinear, useRatingGroup, useSegmentedControl, useSwitch, useTabs, useTagsInput, useTooltip };
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,9 @@ import "./components/accordion/index.js";
|
|
|
4
4
|
import { useAvatar } from "./components/avatar/modules/use-avatar.js";
|
|
5
5
|
import { Avatar } from "./components/avatar/modules/anatomy.js";
|
|
6
6
|
import "./components/avatar/index.js";
|
|
7
|
+
import { useDialog } from "./components/dialog/modules/use-dialog.js";
|
|
8
|
+
import { Dialog } from "./components/dialog/modules/anatomy.js";
|
|
9
|
+
import "./components/dialog/index.js";
|
|
7
10
|
import { useFileUpload } from "./components/file-upload/modules/use-file-upload.js";
|
|
8
11
|
import { FileUpload } from "./components/file-upload/modules/anatomy.js";
|
|
9
12
|
import "./components/file-upload/index.js";
|
|
@@ -16,6 +19,9 @@ import "./components/progress-linear/index.js";
|
|
|
16
19
|
import { useRatingGroup } from "./components/rating-group/modules/use-rating-group.js";
|
|
17
20
|
import { RatingGroup } from "./components/rating-group/modules/anatomy.js";
|
|
18
21
|
import "./components/rating-group/index.js";
|
|
22
|
+
import { useSegmentedControl } from "./components/segmented-control/modules/use-segmented-control.js";
|
|
23
|
+
import { SegmentedControl } from "./components/segmented-control/modules/anatomy.js";
|
|
24
|
+
import "./components/segmented-control/index.js";
|
|
19
25
|
import { useSwitch } from "./components/switch/modules/use-switch.js";
|
|
20
26
|
import { Switch } from "./components/switch/modules/anatomy.js";
|
|
21
27
|
import "./components/switch/index.js";
|
|
@@ -31,4 +37,4 @@ import { useTooltip } from "./components/tooltip/modules/use-tooltip.js";
|
|
|
31
37
|
import { Tooltip } from "./components/tooltip/modules/anatomy.js";
|
|
32
38
|
import "./components/tooltip/index.js";
|
|
33
39
|
|
|
34
|
-
export { Accordion, Avatar, FileUpload, Popover, ProgressLinear, RatingGroup, Switch, Tabs, TagsInput, Toast, Tooltip, createToaster, useAccordion, useAvatar, useFileUpload, usePopover, useProgressLinear, useRatingGroup, useSwitch, useTabs, useTagsInput, useTooltip };
|
|
40
|
+
export { Accordion, Avatar, Dialog, FileUpload, Popover, ProgressLinear, RatingGroup, SegmentedControl, Switch, Tabs, TagsInput, Toast, Tooltip, createToaster, useAccordion, useAvatar, useDialog, useFileUpload, usePopover, useProgressLinear, useRatingGroup, useSegmentedControl, useSwitch, useTabs, useTagsInput, useTooltip };
|
package/dist/node_modules/.pnpm/@zag-js_anatomy@1.24.1/node_modules/@zag-js/anatomy/dist/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@zag-js+anatomy@1.24.1/node_modules/@zag-js/anatomy/dist/index.mjs
|
|
2
|
+
var createAnatomy = (name, parts = []) => ({
|
|
3
|
+
parts: (...values) => {
|
|
4
|
+
if (isEmpty(parts)) return createAnatomy(name, values);
|
|
5
|
+
throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?");
|
|
6
|
+
},
|
|
7
|
+
extendWith: (...values) => createAnatomy(name, [...parts, ...values]),
|
|
8
|
+
omit: (...values) => createAnatomy(name, parts.filter((part) => !values.includes(part))),
|
|
9
|
+
rename: (newName) => createAnatomy(newName, parts),
|
|
10
|
+
keys: () => parts,
|
|
11
|
+
build: () => [...new Set(parts)].reduce((prev, part) => Object.assign(prev, { [part]: {
|
|
12
|
+
selector: [`&[data-scope="${toKebabCase(name)}"][data-part="${toKebabCase(part)}"]`, `& [data-scope="${toKebabCase(name)}"][data-part="${toKebabCase(part)}"]`].join(", "),
|
|
13
|
+
attrs: {
|
|
14
|
+
"data-scope": toKebabCase(name),
|
|
15
|
+
"data-part": toKebabCase(part)
|
|
16
|
+
}
|
|
17
|
+
} }), {})
|
|
18
|
+
});
|
|
19
|
+
var toKebabCase = (value) => value.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
|
|
20
|
+
var isEmpty = (v) => v.length === 0;
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { createAnatomy };
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@zag-js+anatomy@1.24.1/node_modules/@zag-js/anatomy/dist/index.mjs"],"sourcesContent":["// src/create-anatomy.ts\nvar createAnatomy = (name, parts = []) => ({\n parts: (...values) => {\n if (isEmpty(parts)) {\n return createAnatomy(name, values);\n }\n throw new Error(\"createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?\");\n },\n extendWith: (...values) => createAnatomy(name, [...parts, ...values]),\n omit: (...values) => createAnatomy(name, parts.filter((part) => !values.includes(part))),\n rename: (newName) => createAnatomy(newName, parts),\n keys: () => parts,\n build: () => [...new Set(parts)].reduce(\n (prev, part) => Object.assign(prev, {\n [part]: {\n selector: [\n `&[data-scope=\"${toKebabCase(name)}\"][data-part=\"${toKebabCase(part)}\"]`,\n `& [data-scope=\"${toKebabCase(name)}\"][data-part=\"${toKebabCase(part)}\"]`\n ].join(\", \"),\n attrs: { \"data-scope\": toKebabCase(name), \"data-part\": toKebabCase(part) }\n }\n }),\n {}\n )\n});\nvar toKebabCase = (value) => value.replace(/([A-Z])([A-Z])/g, \"$1-$2\").replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/[\\s_]+/g, \"-\").toLowerCase();\nvar isEmpty = (v) => v.length === 0;\n\nexport { createAnatomy };\n"],"x_google_ignoreList":[0],"mappings":";AACA,IAAI,iBAAiB,MAAM,QAAQ,EAAE,MAAM;CACzC,QAAQ,GAAG,WAAW;AACpB,MAAI,QAAQ,MAAM,CAChB,QAAO,cAAc,MAAM,OAAO;AAEpC,QAAM,IAAI,MAAM,gGAAgG;;CAElH,aAAa,GAAG,WAAW,cAAc,MAAM,CAAC,GAAG,OAAO,GAAG,OAAO,CAAC;CACrE,OAAO,GAAG,WAAW,cAAc,MAAM,MAAM,QAAQ,SAAS,CAAC,OAAO,SAAS,KAAK,CAAC,CAAC;CACxF,SAAS,YAAY,cAAc,SAAS,MAAM;CAClD,YAAY;CACZ,aAAa,CAAC,GAAG,IAAI,IAAI,MAAM,CAAC,CAAC,QAC9B,MAAM,SAAS,OAAO,OAAO,MAAM,GACjC,OAAO;EACN,UAAU,CACR,iBAAiB,YAAY,KAAK,CAAC,gBAAgB,YAAY,KAAK,CAAC,KACrE,kBAAkB,YAAY,KAAK,CAAC,gBAAgB,YAAY,KAAK,CAAC,IACvE,CAAC,KAAK,KAAK;EACZ,OAAO;GAAE,cAAc,YAAY,KAAK;GAAE,aAAa,YAAY,KAAK;GAAE;EAC3E,EACF,CAAC,EACF,EAAE,CACH;CACF;AACD,IAAI,eAAe,UAAU,MAAM,QAAQ,mBAAmB,QAAQ,CAAC,QAAQ,mBAAmB,QAAQ,CAAC,QAAQ,WAAW,IAAI,CAAC,aAAa;AAChJ,IAAI,WAAW,MAAM,EAAE,WAAW"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@zag-js+core@1.24.1/node_modules/@zag-js/core/dist/index.mjs
|
|
2
|
+
function createGuards() {
|
|
3
|
+
return {
|
|
4
|
+
and: (...guards) => {
|
|
5
|
+
return function andGuard(params) {
|
|
6
|
+
return guards.every((str) => params.guard(str));
|
|
7
|
+
};
|
|
8
|
+
},
|
|
9
|
+
or: (...guards) => {
|
|
10
|
+
return function orGuard(params) {
|
|
11
|
+
return guards.some((str) => params.guard(str));
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
not: (guard) => {
|
|
15
|
+
return function notGuard(params) {
|
|
16
|
+
return !params.guard(guard);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function createMachine(config) {
|
|
22
|
+
return config;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { createGuards, createMachine };
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
package/dist/node_modules/.pnpm/@zag-js_core@1.24.1/node_modules/@zag-js/core/dist/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@zag-js+core@1.24.1/node_modules/@zag-js/core/dist/index.mjs"],"sourcesContent":["import { callAll, isEqual, isString } from '@zag-js/utils';\nimport { isActiveElement, getActiveElement, getDocument } from '@zag-js/dom-query';\n\n// src/merge-props.ts\nvar clsx = (...args) => args.map((str) => str?.trim?.()).filter(Boolean).join(\" \");\nvar CSS_REGEX = /((?:--)?(?:\\w+-?)+)\\s*:\\s*([^;]*)/g;\nvar serialize = (style) => {\n const res = {};\n let match;\n while (match = CSS_REGEX.exec(style)) {\n res[match[1]] = match[2];\n }\n return res;\n};\nvar css = (a, b) => {\n if (isString(a)) {\n if (isString(b)) return `${a};${b}`;\n a = serialize(a);\n } else if (isString(b)) {\n b = serialize(b);\n }\n return Object.assign({}, a ?? {}, b ?? {});\n};\nfunction mergeProps(...args) {\n let result = {};\n for (let props of args) {\n if (!props) continue;\n for (let key in result) {\n if (key.startsWith(\"on\") && typeof result[key] === \"function\" && typeof props[key] === \"function\") {\n result[key] = callAll(props[key], result[key]);\n continue;\n }\n if (key === \"className\" || key === \"class\") {\n result[key] = clsx(result[key], props[key]);\n continue;\n }\n if (key === \"style\") {\n result[key] = css(result[key], props[key]);\n continue;\n }\n result[key] = props[key] !== void 0 ? props[key] : result[key];\n }\n for (let key in props) {\n if (result[key] === void 0) {\n result[key] = props[key];\n }\n }\n const symbols = Object.getOwnPropertySymbols(props);\n for (let symbol of symbols) {\n result[symbol] = props[symbol];\n }\n }\n return result;\n}\nfunction memo(getDeps, fn, opts) {\n let deps = [];\n let result;\n return (depArgs) => {\n const newDeps = getDeps(depArgs);\n const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => !isEqual(deps[index], dep));\n if (!depsChanged) return result;\n deps = newDeps;\n result = fn(newDeps, depArgs);\n opts?.onChange?.(result);\n return result;\n };\n}\n\n// src/create-machine.ts\nfunction createGuards() {\n return {\n and: (...guards) => {\n return function andGuard(params) {\n return guards.every((str) => params.guard(str));\n };\n },\n or: (...guards) => {\n return function orGuard(params) {\n return guards.some((str) => params.guard(str));\n };\n },\n not: (guard) => {\n return function notGuard(params) {\n return !params.guard(guard);\n };\n }\n };\n}\nfunction createMachine(config) {\n return config;\n}\nfunction setup() {\n return {\n guards: createGuards(),\n createMachine: (config) => {\n return createMachine(config);\n },\n choose: (transitions) => {\n return function chooseFn({ choose }) {\n return choose(transitions)?.actions;\n };\n }\n };\n}\n\n// src/types.ts\nvar MachineStatus = /* @__PURE__ */ ((MachineStatus2) => {\n MachineStatus2[\"NotStarted\"] = \"Not Started\";\n MachineStatus2[\"Started\"] = \"Started\";\n MachineStatus2[\"Stopped\"] = \"Stopped\";\n return MachineStatus2;\n})(MachineStatus || {});\nvar INIT_STATE = \"__init__\";\nfunction createScope(props) {\n const getRootNode = () => props.getRootNode?.() ?? document;\n const getDoc = () => getDocument(getRootNode());\n const getWin = () => getDoc().defaultView ?? window;\n const getActiveElementFn = () => getActiveElement(getRootNode());\n const getById = (id) => getRootNode().getElementById(id);\n return {\n ...props,\n getRootNode,\n getDoc,\n getWin,\n getActiveElement: getActiveElementFn,\n isActiveElement,\n getById\n };\n}\n\nexport { INIT_STATE, MachineStatus, createGuards, createMachine, createScope, memo, mergeProps, setup };\n"],"x_google_ignoreList":[0],"mappings":";AAqEA,SAAS,eAAe;AACtB,QAAO;EACL,MAAM,GAAG,WAAW;AAClB,UAAO,SAAS,SAAS,QAAQ;AAC/B,WAAO,OAAO,OAAO,QAAQ,OAAO,MAAM,IAAI,CAAC;;;EAGnD,KAAK,GAAG,WAAW;AACjB,UAAO,SAAS,QAAQ,QAAQ;AAC9B,WAAO,OAAO,MAAM,QAAQ,OAAO,MAAM,IAAI,CAAC;;;EAGlD,MAAM,UAAU;AACd,UAAO,SAAS,SAAS,QAAQ;AAC/B,WAAO,CAAC,OAAO,MAAM,MAAM;;;EAGhC;;AAEH,SAAS,cAAc,QAAQ;AAC7B,QAAO"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@zag-js+dom-query@1.24.1/node_modules/@zag-js/dom-query/dist/index.mjs
|
|
2
|
+
var isObject = (v) => typeof v === "object" && v !== null;
|
|
3
|
+
var dataAttr = (guard) => guard ? "" : void 0;
|
|
4
|
+
var ELEMENT_NODE = 1;
|
|
5
|
+
var DOCUMENT_NODE = 9;
|
|
6
|
+
var DOCUMENT_FRAGMENT_NODE = 11;
|
|
7
|
+
var isHTMLElement = (el) => isObject(el) && el.nodeType === ELEMENT_NODE && typeof el.nodeName === "string";
|
|
8
|
+
var isDocument = (el) => isObject(el) && el.nodeType === DOCUMENT_NODE;
|
|
9
|
+
var isWindow = (el) => isObject(el) && el === el.window;
|
|
10
|
+
var isNode = (el) => isObject(el) && el.nodeType !== void 0;
|
|
11
|
+
var isShadowRoot = (el) => isNode(el) && el.nodeType === DOCUMENT_FRAGMENT_NODE && "host" in el;
|
|
12
|
+
function getDocument(el) {
|
|
13
|
+
if (isDocument(el)) return el;
|
|
14
|
+
if (isWindow(el)) return el.document;
|
|
15
|
+
return el?.ownerDocument ?? document;
|
|
16
|
+
}
|
|
17
|
+
function getWindow(el) {
|
|
18
|
+
if (isShadowRoot(el)) return getWindow(el.host);
|
|
19
|
+
if (isDocument(el)) return el.defaultView ?? window;
|
|
20
|
+
if (isHTMLElement(el)) return el.ownerDocument?.defaultView ?? window;
|
|
21
|
+
return window;
|
|
22
|
+
}
|
|
23
|
+
var isDom = () => typeof document !== "undefined";
|
|
24
|
+
function getPlatform() {
|
|
25
|
+
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
26
|
+
}
|
|
27
|
+
function getUserAgent() {
|
|
28
|
+
const ua2 = navigator.userAgentData;
|
|
29
|
+
if (ua2 && Array.isArray(ua2.brands)) return ua2.brands.map(({ brand, version }) => `${brand}/${version}`).join(" ");
|
|
30
|
+
return navigator.userAgent;
|
|
31
|
+
}
|
|
32
|
+
var pt = (v) => isDom() && v.test(getPlatform());
|
|
33
|
+
var ua = (v) => isDom() && v.test(getUserAgent());
|
|
34
|
+
var vn = (v) => isDom() && v.test(navigator.vendor);
|
|
35
|
+
var isIPhone = () => pt(/^iPhone/i);
|
|
36
|
+
var isIPad = () => pt(/^iPad/i) || isMac() && navigator.maxTouchPoints > 1;
|
|
37
|
+
var isIos = () => isIPhone() || isIPad();
|
|
38
|
+
var isApple = () => isMac() || isIos();
|
|
39
|
+
var isMac = () => pt(/^Mac/i);
|
|
40
|
+
var isSafari = () => isApple() && vn(/apple/i);
|
|
41
|
+
var isAndroid = () => ua(/Android/i);
|
|
42
|
+
function getComposedPath(event) {
|
|
43
|
+
return event.composedPath?.() ?? event.nativeEvent?.composedPath?.();
|
|
44
|
+
}
|
|
45
|
+
function getEventTarget(event) {
|
|
46
|
+
return getComposedPath(event)?.[0] ?? event.target;
|
|
47
|
+
}
|
|
48
|
+
function isVirtualClick(e) {
|
|
49
|
+
if (e.pointerType === "" && e.isTrusted) return true;
|
|
50
|
+
if (isAndroid() && e.pointerType) return e.type === "click" && e.buttons === 1;
|
|
51
|
+
return e.detail === 0 && !e.pointerType;
|
|
52
|
+
}
|
|
53
|
+
var isLeftClick = (e) => e.button === 0;
|
|
54
|
+
function getDescriptor(el, options) {
|
|
55
|
+
const { type = "HTMLInputElement", property = "value" } = options;
|
|
56
|
+
const proto = getWindow(el)[type].prototype;
|
|
57
|
+
return Object.getOwnPropertyDescriptor(proto, property) ?? {};
|
|
58
|
+
}
|
|
59
|
+
function setElementChecked(el, checked) {
|
|
60
|
+
if (!el) return;
|
|
61
|
+
getDescriptor(el, {
|
|
62
|
+
type: "HTMLInputElement",
|
|
63
|
+
property: "checked"
|
|
64
|
+
}).set?.call(el, checked);
|
|
65
|
+
if (checked) el.setAttribute("checked", "");
|
|
66
|
+
else el.removeAttribute("checked");
|
|
67
|
+
}
|
|
68
|
+
function dispatchInputCheckedEvent(el, options) {
|
|
69
|
+
const { checked, bubbles = true } = options;
|
|
70
|
+
if (!el) return;
|
|
71
|
+
const win = getWindow(el);
|
|
72
|
+
if (!(el instanceof win.HTMLInputElement)) return;
|
|
73
|
+
setElementChecked(el, checked);
|
|
74
|
+
el.dispatchEvent(new win.Event("click", { bubbles }));
|
|
75
|
+
}
|
|
76
|
+
function getClosestForm(el) {
|
|
77
|
+
return isFormElement(el) ? el.form : el.closest("form");
|
|
78
|
+
}
|
|
79
|
+
function isFormElement(el) {
|
|
80
|
+
return el.matches("textarea, input, select, button");
|
|
81
|
+
}
|
|
82
|
+
function trackFormReset(el, callback) {
|
|
83
|
+
if (!el) return;
|
|
84
|
+
const form = getClosestForm(el);
|
|
85
|
+
const onReset = (e) => {
|
|
86
|
+
if (e.defaultPrevented) return;
|
|
87
|
+
callback();
|
|
88
|
+
};
|
|
89
|
+
form?.addEventListener("reset", onReset, { passive: true });
|
|
90
|
+
return () => form?.removeEventListener("reset", onReset);
|
|
91
|
+
}
|
|
92
|
+
function trackFieldsetDisabled(el, callback) {
|
|
93
|
+
const fieldset = el?.closest("fieldset");
|
|
94
|
+
if (!fieldset) return;
|
|
95
|
+
callback(fieldset.disabled);
|
|
96
|
+
const obs = new (getWindow(fieldset)).MutationObserver(() => callback(fieldset.disabled));
|
|
97
|
+
obs.observe(fieldset, {
|
|
98
|
+
attributes: true,
|
|
99
|
+
attributeFilter: ["disabled"]
|
|
100
|
+
});
|
|
101
|
+
return () => obs.disconnect();
|
|
102
|
+
}
|
|
103
|
+
function trackFormControl(el, options) {
|
|
104
|
+
if (!el) return;
|
|
105
|
+
const { onFieldsetDisabledChange, onFormReset } = options;
|
|
106
|
+
const cleanups = [trackFormReset(el, onFormReset), trackFieldsetDisabled(el, onFieldsetDisabledChange)];
|
|
107
|
+
return () => cleanups.forEach((cleanup) => cleanup?.());
|
|
108
|
+
}
|
|
109
|
+
function queryAll(root, selector) {
|
|
110
|
+
return Array.from(root?.querySelectorAll(selector) ?? []);
|
|
111
|
+
}
|
|
112
|
+
function trackElementRect(elements, options) {
|
|
113
|
+
const { onEntry, measure, box = "border-box" } = options;
|
|
114
|
+
const elems = (Array.isArray(elements) ? elements : [elements]).filter(isHTMLElement);
|
|
115
|
+
const win = getWindow(elems[0]);
|
|
116
|
+
const trigger = (entries) => {
|
|
117
|
+
const rects = elems.map((el) => measure(el));
|
|
118
|
+
onEntry({
|
|
119
|
+
rects,
|
|
120
|
+
entries
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
trigger([]);
|
|
124
|
+
const obs = new win.ResizeObserver(trigger);
|
|
125
|
+
elems.forEach((el) => obs.observe(el, { box }));
|
|
126
|
+
return () => obs.disconnect();
|
|
127
|
+
}
|
|
128
|
+
var visuallyHiddenStyle = {
|
|
129
|
+
border: "0",
|
|
130
|
+
clip: "rect(0 0 0 0)",
|
|
131
|
+
height: "1px",
|
|
132
|
+
margin: "-1px",
|
|
133
|
+
overflow: "hidden",
|
|
134
|
+
padding: "0",
|
|
135
|
+
position: "absolute",
|
|
136
|
+
width: "1px",
|
|
137
|
+
whiteSpace: "nowrap",
|
|
138
|
+
wordWrap: "normal"
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
//#endregion
|
|
142
|
+
export { dataAttr, dispatchInputCheckedEvent, getDocument, getEventTarget, getWindow, isLeftClick, isMac, isSafari, isVirtualClick, queryAll, trackElementRect, trackFormControl, visuallyHiddenStyle };
|
|
143
|
+
//# sourceMappingURL=index.js.map
|