@skeletonlabs/skeleton-react 2.0.0-next.15 → 2.0.0-next.17
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 +2 -2
- package/dist/components/accordion/anatomy/item-content.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-indicator.d.ts +2 -2
- package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-trigger.d.ts +2 -2
- 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/app-bar/anatomy/headline.d.ts +2 -2
- package/dist/components/app-bar/anatomy/lead.d.ts +2 -2
- package/dist/components/app-bar/anatomy/root.d.ts +2 -2
- package/dist/components/app-bar/anatomy/toolbar.d.ts +2 -2
- package/dist/components/app-bar/anatomy/trail.d.ts +2 -2
- package/dist/components/avatar/anatomy/fallback.d.ts +2 -2
- package/dist/components/avatar/anatomy/image.d.ts +2 -2
- package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
- package/dist/components/avatar/anatomy/root.d.ts +2 -2
- package/dist/components/combobox/anatomy/content.d.ts +2 -2
- package/dist/components/combobox/anatomy/control.d.ts +2 -2
- package/dist/components/combobox/anatomy/control.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/input.d.ts +2 -2
- package/dist/components/combobox/anatomy/input.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/item-group-label.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-group-label.d.ts.map +1 -1
- package/dist/components/combobox/anatomy/item-group.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-indicator.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-text.d.ts +2 -2
- package/dist/components/combobox/anatomy/item.d.ts +2 -2
- package/dist/components/combobox/anatomy/label.d.ts +2 -2
- package/dist/components/combobox/anatomy/positioner.d.ts +2 -2
- package/dist/components/combobox/anatomy/root-provider.d.ts +2 -2
- package/dist/components/combobox/anatomy/root.d.ts +2 -2
- package/dist/components/combobox/anatomy/trigger.d.ts +2 -2
- package/dist/components/dialog/anatomy/backdrop.d.ts +2 -2
- package/dist/components/dialog/anatomy/close-trigger.d.ts +2 -2
- package/dist/components/dialog/anatomy/content.d.ts +2 -2
- package/dist/components/dialog/anatomy/description.d.ts +2 -2
- package/dist/components/dialog/anatomy/positioner.d.ts +2 -2
- package/dist/components/dialog/anatomy/root-provider.d.ts +2 -2
- package/dist/components/dialog/anatomy/root.d.ts +2 -2
- package/dist/components/dialog/anatomy/title.d.ts +2 -2
- package/dist/components/dialog/anatomy/trigger.d.ts +2 -2
- package/dist/components/file-upload/anatomy/dropzone.d.ts +2 -2
- package/dist/components/file-upload/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-group.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-name.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/label.d.ts +10 -0
- package/dist/components/file-upload/anatomy/label.d.ts.map +1 -0
- package/dist/components/file-upload/anatomy/label.js +20 -0
- package/dist/components/file-upload/anatomy/label.js.map +1 -0
- package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/root.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/trigger.d.ts +2 -2
- package/dist/components/file-upload/modules/anatomy.d.ts +2 -0
- package/dist/components/file-upload/modules/anatomy.d.ts.map +1 -1
- package/dist/components/file-upload/modules/anatomy.js +2 -0
- package/dist/components/file-upload/modules/anatomy.js.map +1 -1
- package/dist/components/navigation/anatomy/content.d.ts +2 -2
- package/dist/components/navigation/anatomy/footer.d.ts +2 -2
- package/dist/components/navigation/anatomy/group.d.ts +2 -2
- package/dist/components/navigation/anatomy/header.d.ts +2 -2
- package/dist/components/navigation/anatomy/label.d.ts +2 -2
- package/dist/components/navigation/anatomy/menu.d.ts +2 -2
- package/dist/components/navigation/anatomy/root.d.ts +2 -2
- package/dist/components/pagination/anatomy/ellipsis.d.ts +11 -0
- package/dist/components/pagination/anatomy/ellipsis.d.ts.map +1 -0
- package/dist/components/pagination/anatomy/ellipsis.js +22 -0
- package/dist/components/pagination/anatomy/ellipsis.js.map +1 -0
- package/dist/components/pagination/anatomy/item.d.ts +11 -0
- package/dist/components/pagination/anatomy/item.d.ts.map +1 -0
- package/dist/components/pagination/anatomy/item.js +22 -0
- package/dist/components/pagination/anatomy/item.js.map +1 -0
- package/dist/components/pagination/anatomy/next-trigger.d.ts +10 -0
- package/dist/components/pagination/anatomy/next-trigger.d.ts.map +1 -0
- package/dist/components/pagination/anatomy/next-trigger.js +20 -0
- package/dist/components/pagination/anatomy/next-trigger.js.map +1 -0
- package/dist/components/pagination/anatomy/prev-trigger.d.ts +10 -0
- package/dist/components/pagination/anatomy/prev-trigger.d.ts.map +1 -0
- package/dist/components/pagination/anatomy/prev-trigger.js +20 -0
- package/dist/components/pagination/anatomy/prev-trigger.js.map +1 -0
- package/dist/components/pagination/anatomy/root-context.d.ts +11 -0
- package/dist/components/pagination/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/pagination/anatomy/root-context.js +13 -0
- package/dist/components/pagination/anatomy/root-context.js.map +1 -0
- package/dist/components/pagination/anatomy/root-provider.d.ts +13 -0
- package/dist/components/pagination/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/pagination/anatomy/root-provider.js +21 -0
- package/dist/components/pagination/anatomy/root-provider.js.map +1 -0
- package/dist/components/pagination/anatomy/root.d.ts +11 -0
- package/dist/components/pagination/anatomy/root.d.ts.map +1 -0
- package/dist/components/pagination/anatomy/root.js +25 -0
- package/dist/components/pagination/anatomy/root.js.map +1 -0
- package/dist/components/pagination/modules/anatomy.d.ts +20 -0
- package/dist/components/pagination/modules/anatomy.d.ts.map +1 -0
- package/dist/components/pagination/modules/anatomy.js +21 -0
- package/dist/components/pagination/modules/anatomy.js.map +1 -0
- package/dist/components/pagination/modules/provider.d.ts +8 -0
- package/dist/components/pagination/modules/provider.d.ts.map +1 -0
- package/dist/components/pagination/modules/provider.js +16 -0
- package/dist/components/pagination/modules/provider.js.map +1 -0
- package/dist/components/pagination/modules/root-context.js +8 -0
- package/dist/components/pagination/modules/root-context.js.map +1 -0
- package/dist/components/popover/anatomy/arrow-tip.d.ts +2 -2
- package/dist/components/popover/anatomy/arrow.d.ts +2 -2
- package/dist/components/popover/anatomy/close-trigger.d.ts +2 -2
- package/dist/components/popover/anatomy/content.d.ts +2 -2
- package/dist/components/popover/anatomy/description.d.ts +2 -2
- 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 +2 -2
- package/dist/components/popover/anatomy/trigger.d.ts +2 -2
- package/dist/components/portal/anatomy/root.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/label.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/range.d.ts +2 -2
- 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 +2 -2
- package/dist/components/rating-group/anatomy/control.d.ts +2 -2
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/rating-group/anatomy/item.d.ts +2 -2
- package/dist/components/rating-group/anatomy/label.d.ts +2 -2
- 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/control.d.ts +10 -0
- package/dist/components/segmented-control/anatomy/control.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/control.js +17 -0
- package/dist/components/segmented-control/anatomy/control.js.map +1 -0
- package/dist/components/segmented-control/anatomy/indicator.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item-text.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/label.d.ts +10 -0
- package/dist/components/segmented-control/anatomy/label.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/label.js +20 -0
- package/dist/components/segmented-control/anatomy/label.js.map +1 -0
- package/dist/components/segmented-control/anatomy/root-provider.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/root.d.ts +2 -2
- package/dist/components/segmented-control/modules/anatomy.d.ts +4 -0
- package/dist/components/segmented-control/modules/anatomy.d.ts.map +1 -1
- package/dist/components/segmented-control/modules/anatomy.js +4 -0
- package/dist/components/segmented-control/modules/anatomy.js.map +1 -1
- package/dist/components/slider/anatomy/control.d.ts +2 -2
- package/dist/components/slider/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/slider/anatomy/label.d.ts +2 -2
- package/dist/components/slider/anatomy/marker-group.d.ts +2 -2
- package/dist/components/slider/anatomy/marker.d.ts +2 -2
- package/dist/components/slider/anatomy/range.d.ts +2 -2
- package/dist/components/slider/anatomy/root-provider.d.ts +2 -2
- package/dist/components/slider/anatomy/root.d.ts +2 -2
- package/dist/components/slider/anatomy/thumb.d.ts +2 -2
- package/dist/components/slider/anatomy/track.d.ts +2 -2
- package/dist/components/slider/anatomy/value-text.d.ts +2 -2
- package/dist/components/switch/anatomy/control.d.ts +2 -2
- package/dist/components/switch/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/switch/anatomy/label.d.ts +2 -2
- 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 +2 -2
- package/dist/components/tabs/anatomy/content.d.ts +2 -2
- package/dist/components/tabs/anatomy/indicator.d.ts +2 -2
- package/dist/components/tabs/anatomy/list.d.ts +2 -2
- package/dist/components/tabs/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tabs/anatomy/root.d.ts +2 -2
- package/dist/components/tabs/anatomy/trigger.d.ts +2 -2
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts +2 -2
- package/dist/components/tags-input/anatomy/control.d.ts +2 -2
- package/dist/components/tags-input/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/tags-input/anatomy/input.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-input.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-preview.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-text.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item.d.ts +2 -2
- package/dist/components/tags-input/anatomy/label.d.ts +2 -2
- 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 +2 -2
- package/dist/components/toast/anatomy/close-trigger.d.ts +2 -2
- package/dist/components/toast/anatomy/description.d.ts +2 -2
- package/dist/components/toast/anatomy/group.d.ts +2 -2
- package/dist/components/toast/anatomy/message.d.ts +2 -2
- package/dist/components/toast/anatomy/root.d.ts +2 -2
- package/dist/components/toast/anatomy/title.d.ts +2 -2
- 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/trigger.d.ts +2 -2
- package/dist/index.d.ts +13 -1
- package/dist/index.js +3 -1
- package/package.json +3 -2
|
@@ -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 react25 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/file-upload/anatomy/dropzone.d.ts
|
|
6
6
|
interface FileUploadDropzoneProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Dropzone(props: FileUploadDropzoneProps):
|
|
7
|
+
declare function Dropzone(props: FileUploadDropzoneProps): react25.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Dropzone, FileUploadDropzoneProps };
|
|
10
10
|
//# sourceMappingURL=dropzone.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 react26 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/file-upload/anatomy/hidden-input.d.ts
|
|
6
6
|
interface FileUploadHiddenInputProps extends PropsWithElement<'input'>, Omit<HTMLAttributes<'input'>, 'children'> {}
|
|
7
|
-
declare function HiddenInput(props: FileUploadHiddenInputProps):
|
|
7
|
+
declare function HiddenInput(props: FileUploadHiddenInputProps): react26.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { FileUploadHiddenInputProps, HiddenInput };
|
|
10
10
|
//# sourceMappingURL=hidden-input.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 react27 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/file-upload/anatomy/item-delete-trigger.d.ts
|
|
6
6
|
interface FileUploadItemDeleteTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
-
declare function ItemDeleteTrigger(props: FileUploadItemDeleteTriggerProps):
|
|
7
|
+
declare function ItemDeleteTrigger(props: FileUploadItemDeleteTriggerProps): react27.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { FileUploadItemDeleteTriggerProps, ItemDeleteTrigger };
|
|
10
10
|
//# sourceMappingURL=item-delete-trigger.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 react28 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/file-upload/anatomy/item-group.d.ts
|
|
6
6
|
interface FileUploadItemGroupProps extends PropsWithElement<'ul'>, HTMLAttributes<'ul'> {}
|
|
7
|
-
declare function ItemGroup(props: FileUploadItemGroupProps):
|
|
7
|
+
declare function ItemGroup(props: FileUploadItemGroupProps): react28.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { FileUploadItemGroupProps, ItemGroup };
|
|
10
10
|
//# sourceMappingURL=item-group.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 react29 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/file-upload/anatomy/item-name.d.ts
|
|
6
6
|
interface FileUploadItemNameProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function ItemName(props: FileUploadItemNameProps):
|
|
7
|
+
declare function ItemName(props: FileUploadItemNameProps): react29.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { FileUploadItemNameProps, ItemName };
|
|
10
10
|
//# sourceMappingURL=item-name.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 react30 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/file-upload/anatomy/item-size-text.d.ts
|
|
6
6
|
interface FileUploadItemSizeTextProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function ItemSizeText(props: FileUploadItemSizeTextProps):
|
|
7
|
+
declare function ItemSizeText(props: FileUploadItemSizeTextProps): react30.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { FileUploadItemSizeTextProps, ItemSizeText };
|
|
10
10
|
//# sourceMappingURL=item-size-text.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
|
|
3
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
4
4
|
import { ItemProps } from "@zag-js/file-upload";
|
|
5
5
|
|
|
6
6
|
//#region src/components/file-upload/anatomy/item.d.ts
|
|
7
7
|
interface FileUploadItemProps extends ItemProps, PropsWithElement<'li'>, HTMLAttributes<'li'> {}
|
|
8
|
-
declare function Item(props: FileUploadItemProps):
|
|
8
|
+
declare function Item(props: FileUploadItemProps): react_jsx_runtime10.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { FileUploadItemProps, Item };
|
|
11
11
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;;UAUiB,mBAAA,SAA4B,WAAW,wBAAwB;iBAExD,IAAA,QAAY,sBAAmB,
|
|
1
|
+
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;;UAUiB,mBAAA,SAA4B,WAAW,wBAAwB;iBAExD,IAAA,QAAY,sBAAmB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react31 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/file-upload/anatomy/label.d.ts
|
|
6
|
+
interface FileUploadLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
|
|
7
|
+
declare function Label(props: FileUploadLabelProps): react31.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { FileUploadLabelProps, Label };
|
|
10
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/label.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,oBAAA,SAA6B,2BAA2B;iBAEjD,KAAA,QAAa,uBAAoB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesFileUpload } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/file-upload/anatomy/label.tsx
|
|
8
|
+
function Label(props) {
|
|
9
|
+
const fileUpload = use(RootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(fileUpload.getLabelProps(), { className: classesFileUpload.label }, rest);
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Label as default };
|
|
20
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/file-upload/anatomy/label.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesFileUpload } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface FileUploadLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}\n\nexport default function Label(props: FileUploadLabelProps) {\n\tconst fileUpload = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tfileUpload.getLabelProps(),\n\t\t{\n\t\t\tclassName: classesFileUpload.label,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <label {...attributes}>{children}</label>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAA6B;CAC1D,MAAM,aAAa,IAAI,YAAY;CAEnC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,WAAW,eAAe,EAC1B,EACC,WAAW,kBAAkB,OAC7B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAM,GAAI;EAAa;GAAiB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { useFileUpload } from "../modules/provider.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/file-upload/anatomy/root-provider.d.ts
|
|
7
7
|
interface FileUploadRootProviderProps extends PropsWithElement<'div'>, Omit<HTMLAttributes<'div'>, 'id' | 'dir'> {
|
|
8
8
|
value: ReturnType<typeof useFileUpload>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: FileUploadRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: FileUploadRootProviderProps): react_jsx_runtime12.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { FileUploadRootProviderProps, RootProvider };
|
|
13
13
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,2BAAA,SAAoC,yBAAyB,KAAK;SAC3E,kBAAkB;;AADT,iBAIO,YAAA,CAJqB,KAAA,EAID,2BAJC,CAAA,EAI0B,
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,2BAAA,SAAoC,yBAAyB,KAAK;SAC3E,kBAAkB;;AADT,iBAIO,YAAA,CAJqB,KAAA,EAID,2BAJC,CAAA,EAI0B,mBAAA,CAAA,GAAA,CAAA,OAJ1B"}
|
|
@@ -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
|
|
3
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/file-upload";
|
|
5
5
|
|
|
6
6
|
//#region src/components/file-upload/anatomy/root.d.ts
|
|
7
7
|
interface FileUploadRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, Omit<HTMLAttributes<'div'>, 'id' | 'dir'> {}
|
|
8
|
-
declare function Root(props: FileUploadRootProps):
|
|
8
|
+
declare function Root(props: FileUploadRootProps): react_jsx_runtime11.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { FileUploadRootProps, Root };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,mBAAA,SAA4B,KAAK,cAAc,yBAAyB,KAAK;iBAEtE,IAAA,QAAY,sBAAmB,
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/file-upload/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,mBAAA,SAA4B,KAAK,cAAc,yBAAyB,KAAK;iBAEtE,IAAA,QAAY,sBAAmB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -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 react32 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/file-upload/anatomy/trigger.d.ts
|
|
6
6
|
interface FileUploadTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
-
declare function Trigger(props: FileUploadTriggerProps):
|
|
7
|
+
declare function Trigger(props: FileUploadTriggerProps): react32.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { FileUploadTriggerProps, Trigger };
|
|
10
10
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -5,6 +5,7 @@ import { ItemDeleteTrigger } from "../anatomy/item-delete-trigger.js";
|
|
|
5
5
|
import { ItemGroup } from "../anatomy/item-group.js";
|
|
6
6
|
import { ItemName } from "../anatomy/item-name.js";
|
|
7
7
|
import { ItemSizeText } from "../anatomy/item-size-text.js";
|
|
8
|
+
import { Label } from "../anatomy/label.js";
|
|
8
9
|
import { Root } from "../anatomy/root.js";
|
|
9
10
|
import { RootContext } from "../anatomy/root-context.js";
|
|
10
11
|
import { RootProvider } from "../anatomy/root-provider.js";
|
|
@@ -14,6 +15,7 @@ import { Trigger } from "../anatomy/trigger.js";
|
|
|
14
15
|
declare const FileUpload: typeof Root & {
|
|
15
16
|
Provider: typeof RootProvider;
|
|
16
17
|
Context: typeof RootContext;
|
|
18
|
+
Label: typeof Label;
|
|
17
19
|
Dropzone: typeof Dropzone;
|
|
18
20
|
Trigger: typeof Trigger;
|
|
19
21
|
HiddenInput: typeof HiddenInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/file-upload/modules/anatomy.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/file-upload/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;cAaa,mBAAU;;EAAV,OAAA,EAAA,kBAYX;EAAA,KAAA,EAAA,YAAA;UAZqB,EAAA,eAAA"}
|
|
@@ -5,6 +5,7 @@ import ItemDeleteTrigger from "../anatomy/item-delete-trigger.js";
|
|
|
5
5
|
import ItemGroup from "../anatomy/item-group.js";
|
|
6
6
|
import ItemName from "../anatomy/item-name.js";
|
|
7
7
|
import ItemSizeText from "../anatomy/item-size-text.js";
|
|
8
|
+
import Label from "../anatomy/label.js";
|
|
8
9
|
import Root from "../anatomy/root.js";
|
|
9
10
|
import RootContext from "../anatomy/root-context.js";
|
|
10
11
|
import RootProvider from "../anatomy/root-provider.js";
|
|
@@ -14,6 +15,7 @@ import Trigger from "../anatomy/trigger.js";
|
|
|
14
15
|
const FileUpload = Object.assign(Root, {
|
|
15
16
|
Provider: RootProvider,
|
|
16
17
|
Context: RootContext,
|
|
18
|
+
Label,
|
|
17
19
|
Dropzone,
|
|
18
20
|
Trigger,
|
|
19
21
|
HiddenInput,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anatomy.js","names":[],"sources":["../../../../src/components/file-upload/modules/anatomy.ts"],"sourcesContent":["import Dropzone from '../anatomy/dropzone';\nimport HiddenInput from '../anatomy/hidden-input';\nimport Item from '../anatomy/item';\nimport ItemDeleteTrigger from '../anatomy/item-delete-trigger';\nimport ItemGroup from '../anatomy/item-group';\nimport ItemName from '../anatomy/item-name';\nimport ItemSizeText from '../anatomy/item-size-text';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\nimport Trigger from '../anatomy/trigger';\n\nexport const FileUpload = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tDropzone: Dropzone,\n\tTrigger: Trigger,\n\tHiddenInput: HiddenInput,\n\tItemGroup: ItemGroup,\n\tItem: Item,\n\tItemName: ItemName,\n\tItemSizeText: ItemSizeText,\n\tItemDeleteTrigger: ItemDeleteTrigger,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":[],"sources":["../../../../src/components/file-upload/modules/anatomy.ts"],"sourcesContent":["import Dropzone from '../anatomy/dropzone';\nimport HiddenInput from '../anatomy/hidden-input';\nimport Item from '../anatomy/item';\nimport ItemDeleteTrigger from '../anatomy/item-delete-trigger';\nimport ItemGroup from '../anatomy/item-group';\nimport ItemName from '../anatomy/item-name';\nimport ItemSizeText from '../anatomy/item-size-text';\nimport Label from '../anatomy/label';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\nimport Trigger from '../anatomy/trigger';\n\nexport const FileUpload = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tLabel: Label,\n\tDropzone: Dropzone,\n\tTrigger: Trigger,\n\tHiddenInput: HiddenInput,\n\tItemGroup: ItemGroup,\n\tItem: Item,\n\tItemName: ItemName,\n\tItemSizeText: ItemSizeText,\n\tItemDeleteTrigger: ItemDeleteTrigger,\n});\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,aAAa,OAAO,OAAO,MAAM;CAC7C,UAAU;CACV,SAAS;CACF;CACG;CACD;CACI;CACF;CACL;CACI;CACI;CACK;CACnB,CAAC"}
|
|
@@ -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 react35 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/navigation/anatomy/content.d.ts
|
|
6
6
|
interface NavigationContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function NavigationContent(props: NavigationContentProps):
|
|
7
|
+
declare function NavigationContent(props: NavigationContentProps): react35.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { NavigationContent, NavigationContentProps };
|
|
10
10
|
//# 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 react36 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/navigation/anatomy/footer.d.ts
|
|
6
6
|
interface NavigationFooterProps extends PropsWithElement<'footer'>, HTMLAttributes<'footer'> {}
|
|
7
|
-
declare function NavigationFooter(props: NavigationFooterProps):
|
|
7
|
+
declare function NavigationFooter(props: NavigationFooterProps): react36.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { NavigationFooter, NavigationFooterProps };
|
|
10
10
|
//# sourceMappingURL=footer.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 react37 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/navigation/anatomy/group.d.ts
|
|
6
6
|
interface NavigationGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function NavigationGroup(props: NavigationGroupProps):
|
|
7
|
+
declare function NavigationGroup(props: NavigationGroupProps): react37.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { NavigationGroup, NavigationGroupProps };
|
|
10
10
|
//# sourceMappingURL=group.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 react34 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/navigation/anatomy/header.d.ts
|
|
6
6
|
interface NavigationHeaderProps extends PropsWithElement<'header'>, HTMLAttributes<'header'> {}
|
|
7
|
-
declare function NavigationHeader(props: NavigationHeaderProps):
|
|
7
|
+
declare function NavigationHeader(props: NavigationHeaderProps): react34.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { NavigationHeader, NavigationHeaderProps };
|
|
10
10
|
//# sourceMappingURL=header.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 react38 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/navigation/anatomy/label.d.ts
|
|
6
6
|
interface NavigationLabelProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function NavigationLabel(props: NavigationLabelProps):
|
|
7
|
+
declare function NavigationLabel(props: NavigationLabelProps): react38.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { NavigationLabel, NavigationLabelProps };
|
|
10
10
|
//# sourceMappingURL=label.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 react33 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/navigation/anatomy/menu.d.ts
|
|
6
6
|
interface NavigationMenuProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function NavigationMenu(props: NavigationMenuProps):
|
|
7
|
+
declare function NavigationMenu(props: NavigationMenuProps): react33.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { NavigationMenu, NavigationMenuProps };
|
|
10
10
|
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
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_runtime13 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/navigation/anatomy/root.d.ts
|
|
6
6
|
interface NavigationRootProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {
|
|
@@ -11,7 +11,7 @@ interface NavigationRootProps extends PropsWithElement<'div'>, HTMLAttributes<'d
|
|
|
11
11
|
* */
|
|
12
12
|
layout?: 'bar' | 'rail' | 'sidebar';
|
|
13
13
|
}
|
|
14
|
-
declare function NavigationRoot(props: NavigationRootProps):
|
|
14
|
+
declare function NavigationRoot(props: NavigationRootProps): react_jsx_runtime13.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { NavigationRoot, NavigationRootProps };
|
|
17
17
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react39 from "react";
|
|
4
|
+
import { EllipsisProps } from "@zag-js/pagination";
|
|
5
|
+
|
|
6
|
+
//#region src/components/pagination/anatomy/ellipsis.d.ts
|
|
7
|
+
interface PaginationEllipsisProps extends EllipsisProps, PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
+
declare function Ellipsis(props: PaginationEllipsisProps): react39.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Ellipsis, PaginationEllipsisProps };
|
|
11
|
+
//# sourceMappingURL=ellipsis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipsis.d.ts","names":[],"sources":["../../../../src/components/pagination/anatomy/ellipsis.tsx"],"sourcesContent":[],"mappings":";;;;;;UAQiB,uBAAA,SAAgC,eAAe,0BAA0B;iBAElE,QAAA,QAAgB,0BAAuB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesPagination } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { splitEllipsisProps } from "@zag-js/pagination";
|
|
7
|
+
|
|
8
|
+
//#region src/components/pagination/anatomy/ellipsis.tsx
|
|
9
|
+
function Ellipsis(props) {
|
|
10
|
+
const pagination = use(RootContext);
|
|
11
|
+
const [ellipsisProps, componentProps] = splitEllipsisProps(props);
|
|
12
|
+
const { element, children,...rest } = componentProps;
|
|
13
|
+
const attributes = mergeProps(pagination.getEllipsisProps(ellipsisProps), { className: classesPagination.ellipsis }, rest);
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Ellipsis as default };
|
|
22
|
+
//# sourceMappingURL=ellipsis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipsis.js","names":[],"sources":["../../../../src/components/pagination/anatomy/ellipsis.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesPagination } from '@skeletonlabs/skeleton-common';\nimport { splitEllipsisProps, type EllipsisProps } from '@zag-js/pagination';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface PaginationEllipsisProps extends EllipsisProps, PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function Ellipsis(props: PaginationEllipsisProps) {\n\tconst pagination = use(RootContext);\n\n\tconst [ellipsisProps, componentProps] = splitEllipsisProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(\n\t\tpagination.getEllipsisProps(ellipsisProps),\n\t\t{\n\t\t\tclassName: classesPagination.ellipsis,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,SAAS,OAAgC;CAChE,MAAM,aAAa,IAAI,YAAY;CAEnC,MAAM,CAAC,eAAe,kBAAkB,mBAAmB,MAAM;CACjE,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,WAAW,iBAAiB,cAAc,EAC1C,EACC,WAAW,kBAAkB,UAC7B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react42 from "react";
|
|
4
|
+
import { ItemProps } from "@zag-js/pagination";
|
|
5
|
+
|
|
6
|
+
//#region src/components/pagination/anatomy/item.d.ts
|
|
7
|
+
interface PaginationItemProps extends ItemProps, PropsWithElement<'a'>, HTMLAttributes<'a', 'type'> {}
|
|
8
|
+
declare function Item(props: PaginationItemProps): react42.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Item, PaginationItemProps };
|
|
11
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/pagination/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;;UAQiB,mBAAA,SAA4B,WAAW,uBAAuB;iBAEvD,IAAA,QAAY,sBAAmB,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesPagination } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { splitItemProps } from "@zag-js/pagination";
|
|
7
|
+
|
|
8
|
+
//#region src/components/pagination/anatomy/item.tsx
|
|
9
|
+
function Item(props) {
|
|
10
|
+
const pagination = use(RootContext);
|
|
11
|
+
const [itemProps, componentProps] = splitItemProps(props);
|
|
12
|
+
const { element, children,...rest } = componentProps;
|
|
13
|
+
const attributes = mergeProps(pagination.getItemProps(itemProps), { className: classesPagination.item }, rest);
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Item as default };
|
|
22
|
+
//# sourceMappingURL=item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.js","names":[],"sources":["../../../../src/components/pagination/anatomy/item.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesPagination } from '@skeletonlabs/skeleton-common';\nimport { splitItemProps, type ItemProps } from '@zag-js/pagination';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface PaginationItemProps extends ItemProps, PropsWithElement<'a'>, HTMLAttributes<'a', 'type'> {}\n\nexport default function Item(props: PaginationItemProps) {\n\tconst pagination = use(RootContext);\n\n\tconst [itemProps, componentProps] = splitItemProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(\n\t\tpagination.getItemProps(itemProps),\n\t\t{\n\t\t\tclassName: classesPagination.item,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <a {...attributes}>{children}</a>;\n}\n"],"mappings":";;;;;;;;AAUA,SAAwB,KAAK,OAA4B;CACxD,MAAM,aAAa,IAAI,YAAY;CAEnC,MAAM,CAAC,WAAW,kBAAkB,eAAe,MAAM;CACzD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,WAAW,aAAa,UAAU,EAClC,EACC,WAAW,kBAAkB,MAC7B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAE,GAAI;EAAa;GAAa"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react41 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/pagination/anatomy/next-trigger.d.ts
|
|
6
|
+
interface PaginationNextTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
+
declare function NextTrigger(props: PaginationNextTriggerProps): react41.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { NextTrigger, PaginationNextTriggerProps };
|
|
10
|
+
//# sourceMappingURL=next-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-trigger.d.ts","names":[],"sources":["../../../../src/components/pagination/anatomy/next-trigger.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,0BAAA,SAAmC,4BAA4B;iBAExD,WAAA,QAAmB,6BAA0B,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesPagination } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/pagination/anatomy/next-trigger.tsx
|
|
8
|
+
function NextTrigger(props) {
|
|
9
|
+
const pagination = use(RootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(pagination.getNextTriggerProps(), { className: classesPagination.nextTrigger }, rest);
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { NextTrigger as default };
|
|
20
|
+
//# sourceMappingURL=next-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-trigger.js","names":[],"sources":["../../../../src/components/pagination/anatomy/next-trigger.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesPagination } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface PaginationNextTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}\n\nexport default function NextTrigger(props: PaginationNextTriggerProps) {\n\tconst pagination = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tpagination.getNextTriggerProps(),\n\t\t{\n\t\t\tclassName: classesPagination.nextTrigger,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,YAAY,OAAmC;CACtE,MAAM,aAAa,IAAI,YAAY;CAEnC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,WAAW,qBAAqB,EAChC,EACC,WAAW,kBAAkB,aAC7B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react40 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/pagination/anatomy/prev-trigger.d.ts
|
|
6
|
+
interface PaginationPrevTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
+
declare function PrevTrigger(props: PaginationPrevTriggerProps): react40.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { PaginationPrevTriggerProps, PrevTrigger };
|
|
10
|
+
//# sourceMappingURL=prev-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prev-trigger.d.ts","names":[],"sources":["../../../../src/components/pagination/anatomy/prev-trigger.tsx"],"sourcesContent":[],"mappings":";;;;;UAOiB,0BAAA,SAAmC,4BAA4B;iBAExD,WAAA,QAAmB,6BAA0B,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesPagination } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/pagination/anatomy/prev-trigger.tsx
|
|
8
|
+
function PrevTrigger(props) {
|
|
9
|
+
const pagination = use(RootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(pagination.getPrevTriggerProps(), { className: classesPagination.prevTrigger }, rest);
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { PrevTrigger as default };
|
|
20
|
+
//# sourceMappingURL=prev-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prev-trigger.js","names":[],"sources":["../../../../src/components/pagination/anatomy/prev-trigger.tsx"],"sourcesContent":["import { RootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesPagination } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface PaginationPrevTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}\n\nexport default function PrevTrigger(props: PaginationPrevTriggerProps) {\n\tconst pagination = use(RootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tpagination.getPrevTriggerProps(),\n\t\t{\n\t\t\tclassName: classesPagination.prevTrigger,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <button {...attributes}>{children}</button>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,YAAY,OAAmC;CACtE,MAAM,aAAa,IAAI,YAAY;CAEnC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,WAAW,qBAAqB,EAChC,EACC,WAAW,kBAAkB,aAC7B,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAO,GAAI;EAAa;GAAkB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { usePagination } from "../modules/provider.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/pagination/anatomy/root-context.d.ts
|
|
5
|
+
interface PaginationRootContextProps {
|
|
6
|
+
children: (pagination: ReturnType<typeof usePagination>) => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function RootContext(props: PaginationRootContextProps): ReactNode;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { PaginationRootContextProps, RootContext };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/pagination/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,0BAAA;yBACO,kBAAkB,mBAAmB;AAD7D;AAA2C,iBAInB,WAAA,CAJmB,KAAA,EAIA,0BAJA,CAAA,EAI0B,SAJ1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/pagination/anatomy/root-context.tsx
|
|
5
|
+
function RootContext$1(props) {
|
|
6
|
+
const pagination = use(RootContext);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
return children(pagination);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootContext$1 as default };
|
|
13
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":["RootContext","RootContext_"],"sources":["../../../../src/components/pagination/anatomy/root-context.tsx"],"sourcesContent":["import type { usePagination } from '../modules/provider';\nimport { RootContext as RootContext_ } from '../modules/root-context';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface PaginationRootContextProps {\n\tchildren: (pagination: ReturnType<typeof usePagination>) => ReactNode;\n}\n\nexport default function RootContext(props: PaginationRootContextProps) {\n\tconst pagination = use(RootContext_);\n\n\tconst { children } = props;\n\n\treturn children(pagination);\n}\n"],"mappings":";;;;AASA,SAAwBA,cAAY,OAAmC;CACtE,MAAM,aAAa,IAAIC,YAAa;CAEpC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,WAAW"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { usePagination } from "../modules/provider.js";
|
|
4
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/pagination/anatomy/root-provider.d.ts
|
|
7
|
+
interface PaginationRootProviderProps extends PropsWithElement<'nav'>, HTMLAttributes<'nav', 'id' | 'dir'> {
|
|
8
|
+
value: ReturnType<typeof usePagination>;
|
|
9
|
+
}
|
|
10
|
+
declare function PaginationRootProvider(props: PaginationRootProviderProps): react_jsx_runtime14.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { PaginationRootProvider, PaginationRootProviderProps };
|
|
13
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/pagination/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,2BAAA,SAAoC,yBAAyB;SACtE,kBAAkB;;AADT,iBAIO,sBAAA,CAJqB,KAAA,EAIS,2BAJT,CAAA,EAIoC,mBAAA,CAAA,GAAA,CAAA,OAJpC"}
|