@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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesPagination } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/pagination/anatomy/root-provider.tsx
|
|
7
|
+
function PaginationRootProvider(props) {
|
|
8
|
+
const { element, children, value: pagination,...rest } = props;
|
|
9
|
+
const attributes = mergeProps(pagination.getRootProps(), { className: classesPagination.root }, rest);
|
|
10
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, {
|
|
11
|
+
value: pagination,
|
|
12
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { PaginationRootProvider as default };
|
|
21
|
+
//# sourceMappingURL=root-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/pagination/anatomy/root-provider.tsx"],"sourcesContent":["import type { usePagination } from '../modules/provider';\nimport { 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';\n\nexport interface PaginationRootProviderProps extends PropsWithElement<'nav'>, HTMLAttributes<'nav', 'id' | 'dir'> {\n\tvalue: ReturnType<typeof usePagination>;\n}\n\nexport default function PaginationRootProvider(props: PaginationRootProviderProps) {\n\tconst { element, children, value: pagination, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\tpagination.getRootProps(),\n\t\t{\n\t\t\tclassName: classesPagination.root,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<RootContext.Provider value={pagination}>{element ? element(attributes) : <nav {...attributes}>{children}</nav>}</RootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAWA,SAAwB,uBAAuB,OAAoC;CAClF,MAAM,EAAE,SAAS,UAAU,OAAO,WAAY,GAAG,SAAS;CAE1D,MAAM,aAAa,WAClB,WAAW,cAAc,EACzB,EACC,WAAW,kBAAkB,MAC7B,EACD,KACA;AAED,QACC,oBAAC,YAAY;EAAS,OAAO;YAAa,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAAwB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
4
|
+
import { Props } from "@zag-js/pagination";
|
|
5
|
+
|
|
6
|
+
//#region src/components/pagination/anatomy/root.d.ts
|
|
7
|
+
interface PaginationRootProps extends Omit<Props, 'id'>, PropsWithElement<'nav'>, HTMLAttributes<'nav', 'id' | 'dir'> {}
|
|
8
|
+
declare function PaginationRoot(props: PaginationRootProps): react_jsx_runtime15.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { PaginationRoot, PaginationRootProps };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/pagination/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,mBAAA,SAA4B,KAAK,cAAc,yBAAyB;iBAEjE,cAAA,QAAsB,sBAAmB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { usePagination } from "../modules/provider.js";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesPagination } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { splitProps } from "@zag-js/pagination";
|
|
7
|
+
|
|
8
|
+
//#region src/components/pagination/anatomy/root.tsx
|
|
9
|
+
function PaginationRoot(props) {
|
|
10
|
+
const [paginationProps, componentProps] = splitProps(props);
|
|
11
|
+
const { element, children,...rest } = componentProps;
|
|
12
|
+
const pagination = usePagination(paginationProps);
|
|
13
|
+
const attributes = mergeProps(pagination.getRootProps(), { className: classesPagination.root }, rest);
|
|
14
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, {
|
|
15
|
+
value: pagination,
|
|
16
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
|
|
17
|
+
...attributes,
|
|
18
|
+
children
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { PaginationRoot as default };
|
|
25
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/pagination/anatomy/root.tsx"],"sourcesContent":["import { usePagination } from '../modules/provider';\nimport { 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 { splitProps } from '@zag-js/pagination';\nimport type { Props } from '@zag-js/pagination';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface PaginationRootProps extends Omit<Props, 'id'>, PropsWithElement<'nav'>, HTMLAttributes<'nav', 'id' | 'dir'> {}\n\nexport default function PaginationRoot(props: PaginationRootProps) {\n\tconst [paginationProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst pagination = usePagination(paginationProps);\n\n\tconst attributes = mergeProps(\n\t\tpagination.getRootProps(),\n\t\t{\n\t\t\tclassName: classesPagination.root,\n\t\t},\n\t\trest,\n\t);\n\n\treturn (\n\t\t<RootContext.Provider value={pagination}>{element ? element(attributes) : <nav {...attributes}>{children}</nav>}</RootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAWA,SAAwB,eAAe,OAA4B;CAClE,MAAM,CAAC,iBAAiB,kBAAkB,WAAW,MAAM;CAC3D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,cAAc,gBAAgB;CAEjD,MAAM,aAAa,WAClB,WAAW,cAAc,EACzB,EACC,WAAW,kBAAkB,MAC7B,EACD,KACA;AAED,QACC,oBAAC,YAAY;EAAS,OAAO;YAAa,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAAwB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Ellipsis } from "../anatomy/ellipsis.js";
|
|
2
|
+
import { Item } from "../anatomy/item.js";
|
|
3
|
+
import { NextTrigger } from "../anatomy/next-trigger.js";
|
|
4
|
+
import { PrevTrigger } from "../anatomy/prev-trigger.js";
|
|
5
|
+
import { PaginationRoot } from "../anatomy/root.js";
|
|
6
|
+
import { RootContext } from "../anatomy/root-context.js";
|
|
7
|
+
import { PaginationRootProvider } from "../anatomy/root-provider.js";
|
|
8
|
+
|
|
9
|
+
//#region src/components/pagination/modules/anatomy.d.ts
|
|
10
|
+
declare const Pagination: typeof PaginationRoot & {
|
|
11
|
+
Provider: typeof PaginationRootProvider;
|
|
12
|
+
Context: typeof RootContext;
|
|
13
|
+
PrevTrigger: typeof PrevTrigger;
|
|
14
|
+
Item: typeof Item;
|
|
15
|
+
Ellipsis: typeof Ellipsis;
|
|
16
|
+
NextTrigger: typeof NextTrigger;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Pagination };
|
|
20
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/pagination/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAQa,mBAAU;;EAAV,OAAA,EAAA,kBAOX;EAAA,WAAA,EAAA,kBAAA;MAPqB,EAAA,WAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Ellipsis from "../anatomy/ellipsis.js";
|
|
2
|
+
import Item from "../anatomy/item.js";
|
|
3
|
+
import NextTrigger from "../anatomy/next-trigger.js";
|
|
4
|
+
import PrevTrigger from "../anatomy/prev-trigger.js";
|
|
5
|
+
import PaginationRoot from "../anatomy/root.js";
|
|
6
|
+
import RootContext from "../anatomy/root-context.js";
|
|
7
|
+
import PaginationRootProvider from "../anatomy/root-provider.js";
|
|
8
|
+
|
|
9
|
+
//#region src/components/pagination/modules/anatomy.ts
|
|
10
|
+
const Pagination = Object.assign(PaginationRoot, {
|
|
11
|
+
Provider: PaginationRootProvider,
|
|
12
|
+
Context: RootContext,
|
|
13
|
+
PrevTrigger,
|
|
14
|
+
Item,
|
|
15
|
+
Ellipsis,
|
|
16
|
+
NextTrigger
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Pagination };
|
|
21
|
+
//# sourceMappingURL=anatomy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":["Root","RootProvider"],"sources":["../../../../src/components/pagination/modules/anatomy.ts"],"sourcesContent":["import Ellipsis from '../anatomy/ellipsis';\nimport Item from '../anatomy/item';\nimport NextTrigger from '../anatomy/next-trigger';\nimport PrevTrigger from '../anatomy/prev-trigger';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\n\nexport const Pagination = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tPrevTrigger: PrevTrigger,\n\tItem: Item,\n\tEllipsis: Ellipsis,\n\tNextTrigger: NextTrigger,\n});\n"],"mappings":";;;;;;;;;AAQA,MAAa,aAAa,OAAO,OAAOA,gBAAM;CAC7C,UAAUC;CACV,SAAS;CACI;CACP;CACI;CACG;CACb,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropTypes } from "@zag-js/react";
|
|
2
|
+
import { Api, Props } from "@zag-js/pagination";
|
|
3
|
+
|
|
4
|
+
//#region src/components/pagination/modules/provider.d.ts
|
|
5
|
+
declare function usePagination(props?: Omit<Props, 'id'>): Api<PropTypes>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { usePagination };
|
|
8
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","names":[],"sources":["../../../../src/components/pagination/modules/provider.ts"],"sourcesContent":[],"mappings":";;;;iBAKgB,aAAA,SAAqB,KAAK,eAAoB,IAAI"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useId } from "react";
|
|
2
|
+
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
3
|
+
import { connect, machine } from "@zag-js/pagination";
|
|
4
|
+
|
|
5
|
+
//#region src/components/pagination/modules/provider.ts
|
|
6
|
+
function usePagination(props = {}) {
|
|
7
|
+
const service = useMachine(machine, {
|
|
8
|
+
id: useId(),
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
return connect(service, normalizeProps);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { usePagination };
|
|
16
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","names":[],"sources":["../../../../src/components/pagination/modules/provider.ts"],"sourcesContent":["import { connect, machine } from '@zag-js/pagination';\nimport type { Api, Props } from '@zag-js/pagination';\nimport { normalizeProps, useMachine, type PropTypes } from '@zag-js/react';\nimport { useId } from 'react';\n\nexport function usePagination(props: Omit<Props, 'id'> = {}): Api<PropTypes> {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAKA,SAAgB,cAAc,QAA2B,EAAE,EAAkB;CAC5E,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/pagination/modules/root-context.ts"],"sourcesContent":["import type { usePagination } from './provider';\nimport { createContext } from '@/internal/create-context';\n\nexport const RootContext = createContext<ReturnType<typeof usePagination>>();\n"],"mappings":";;;AAGA,MAAa,cAAc,eAAiD"}
|
|
@@ -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 react94 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/anatomy/arrow-tip.d.ts
|
|
6
6
|
interface PopoverArrowTipProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function ArrowTip(props: PopoverArrowTipProps):
|
|
7
|
+
declare function ArrowTip(props: PopoverArrowTipProps): react94.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ArrowTip };
|
|
10
10
|
//# sourceMappingURL=arrow-tip.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 react95 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/anatomy/arrow.d.ts
|
|
6
6
|
interface PopoverArrowProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Arrow(props: PopoverArrowProps):
|
|
7
|
+
declare function Arrow(props: PopoverArrowProps): react95.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Arrow };
|
|
10
10
|
//# sourceMappingURL=arrow.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 react43 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/anatomy/close-trigger.d.ts
|
|
6
6
|
interface PopoverCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
-
declare function CloseTrigger(props: PopoverCloseTriggerProps):
|
|
7
|
+
declare function CloseTrigger(props: PopoverCloseTriggerProps): react43.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { CloseTrigger, PopoverCloseTriggerProps };
|
|
10
10
|
//# sourceMappingURL=close-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 react44 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/anatomy/content.d.ts
|
|
6
6
|
interface PopoverContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Content(props: PopoverContentProps):
|
|
7
|
+
declare function Content(props: PopoverContentProps): react44.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Content, PopoverContentProps };
|
|
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 react45 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/anatomy/description.d.ts
|
|
6
6
|
interface PopoverDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Description(props: PopoverDescriptionProps):
|
|
7
|
+
declare function Description(props: PopoverDescriptionProps): react45.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Description, PopoverDescriptionProps };
|
|
10
10
|
//# sourceMappingURL=description.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 react46 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/anatomy/positioner.d.ts
|
|
6
6
|
interface PopoverPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Positioner(props: PopoverPositionerProps):
|
|
7
|
+
declare function Positioner(props: PopoverPositionerProps): react46.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PopoverPositionerProps, Positioner };
|
|
10
10
|
//# sourceMappingURL=positioner.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { usePopover } from "../modules/provider.js";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/anatomy/root-provider.d.ts
|
|
6
6
|
interface PopoverRootProviderProps extends PropsWithChildren {
|
|
7
7
|
value: ReturnType<typeof usePopover>;
|
|
8
8
|
}
|
|
9
|
-
declare function RootProvider(props: PopoverRootProviderProps):
|
|
9
|
+
declare function RootProvider(props: PopoverRootProviderProps): react_jsx_runtime18.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { PopoverRootProviderProps, RootProvider };
|
|
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_runtime17 from "react/jsx-runtime";
|
|
3
3
|
import { Props } from "@zag-js/popover";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/anatomy/root.d.ts
|
|
6
6
|
interface PopoverRootProps extends PropsWithChildren, Omit<Props, 'id'> {}
|
|
7
|
-
declare function Root(props: PopoverRootProps):
|
|
7
|
+
declare function Root(props: PopoverRootProps): react_jsx_runtime17.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PopoverRootProps, Root };
|
|
10
10
|
//# sourceMappingURL=root.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 react47 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/anatomy/title.d.ts
|
|
6
6
|
interface PopoverTitleProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Title(props: PopoverTitleProps):
|
|
7
|
+
declare function Title(props: PopoverTitleProps): react47.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PopoverTitleProps, Title };
|
|
10
10
|
//# 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
|
-
import * as
|
|
3
|
+
import * as react48 from "react";
|
|
4
4
|
import { PropsWithChildren } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/popover/anatomy/trigger.d.ts
|
|
7
7
|
interface PopoverTriggerProps extends PropsWithChildren, PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function Trigger(props: PopoverTriggerProps):
|
|
8
|
+
declare function Trigger(props: PopoverTriggerProps): react48.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { PopoverTriggerProps, Trigger };
|
|
11
11
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/portal/anatomy/root.d.ts
|
|
5
5
|
interface PortalRootProps extends Required<PropsWithChildren> {
|
|
@@ -16,7 +16,7 @@ interface PortalRootProps extends Required<PropsWithChildren> {
|
|
|
16
16
|
*/
|
|
17
17
|
target?: HTMLElement;
|
|
18
18
|
}
|
|
19
|
-
declare function Root(props: PortalRootProps):
|
|
19
|
+
declare function Root(props: PortalRootProps): react_jsx_runtime16.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PortalRootProps, Root };
|
|
22
22
|
//# sourceMappingURL=root.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 react49 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/progress-linear/anatomy/label.d.ts
|
|
6
6
|
interface ProgressLinearLabelProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Label(props: ProgressLinearLabelProps):
|
|
7
|
+
declare function Label(props: ProgressLinearLabelProps): react49.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Label, ProgressLinearLabelProps };
|
|
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 react50 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/progress-linear/anatomy/range.d.ts
|
|
6
6
|
interface ProgressLinearRangeProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
7
|
-
declare function Range(props: ProgressLinearRangeProps):
|
|
7
|
+
declare function Range(props: ProgressLinearRangeProps): react50.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ProgressLinearRangeProps, Range };
|
|
10
10
|
//# sourceMappingURL=range.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
3
|
import { useProgressLinear } from "../modules/provider.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/progress-linear/anatomy/root-provider.d.ts
|
|
7
7
|
interface ProgressLinearRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
8
|
value: ReturnType<typeof useProgressLinear>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: ProgressLinearRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: ProgressLinearRootProviderProps): react_jsx_runtime20.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ProgressLinearRootProviderProps, RootProvider };
|
|
13
13
|
//# sourceMappingURL=root-provider.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_runtime19 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/progress";
|
|
5
5
|
|
|
6
6
|
//#region src/components/progress-linear/anatomy/root.d.ts
|
|
7
7
|
interface ProgressLinearRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
-
declare function Root(props: ProgressLinearRootProps):
|
|
8
|
+
declare function Root(props: ProgressLinearRootProps): react_jsx_runtime19.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ProgressLinearRootProps, Root };
|
|
11
11
|
//# sourceMappingURL=root.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 react51 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/progress-linear/anatomy/track.d.ts
|
|
6
6
|
interface ProgressLinearTrackProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Track(props: ProgressLinearTrackProps):
|
|
7
|
+
declare function Track(props: ProgressLinearTrackProps): react51.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ProgressLinearTrackProps, Track };
|
|
10
10
|
//# sourceMappingURL=track.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 react52 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/rating-group/anatomy/control.d.ts
|
|
6
6
|
interface RatingGroupControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
|
|
7
|
-
declare function Control(props: RatingGroupControlProps):
|
|
7
|
+
declare function Control(props: RatingGroupControlProps): react52.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Control, RatingGroupControlProps };
|
|
10
10
|
//# sourceMappingURL=control.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 react53 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/rating-group/anatomy/hidden-input.d.ts
|
|
6
6
|
interface RatingGroupHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'id' | 'dir' | 'children'> {}
|
|
7
|
-
declare function HiddenInput(props: RatingGroupHiddenInputProps):
|
|
7
|
+
declare function HiddenInput(props: RatingGroupHiddenInputProps): react53.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { HiddenInput, RatingGroupHiddenInputProps };
|
|
10
10
|
//# sourceMappingURL=hidden-input.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 react54 from "react";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
import { ItemProps } from "@zag-js/rating-group";
|
|
6
6
|
|
|
@@ -25,7 +25,7 @@ interface RatingGroupItemProps extends ItemProps, PropsWithElement<'span'>, HTML
|
|
|
25
25
|
*/
|
|
26
26
|
full?: ReactNode;
|
|
27
27
|
}
|
|
28
|
-
declare function Item(props: RatingGroupItemProps):
|
|
28
|
+
declare function Item(props: RatingGroupItemProps): react54.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Item, RatingGroupItemProps };
|
|
31
31
|
//# sourceMappingURL=item.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 react55 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/rating-group/anatomy/label.d.ts
|
|
6
6
|
interface RatingGroupLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}
|
|
7
|
-
declare function Label(props: RatingGroupLabelProps):
|
|
7
|
+
declare function Label(props: RatingGroupLabelProps): react55.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Label, RatingGroupLabelProps };
|
|
10
10
|
//# sourceMappingURL=label.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
3
|
import { useRatingGroup } from "../modules/provider.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/rating-group/anatomy/root-provider.d.ts
|
|
7
7
|
interface RatingGroupRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
8
|
value: ReturnType<typeof useRatingGroup>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: RatingGroupRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: RatingGroupRootProviderProps): react_jsx_runtime22.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { RatingGroupRootProviderProps, RootProvider };
|
|
13
13
|
//# sourceMappingURL=root-provider.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_runtime21 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/rating-group";
|
|
5
5
|
|
|
6
6
|
//#region src/components/rating-group/anatomy/root.d.ts
|
|
7
7
|
interface RatingGroupRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
-
declare function Root(props: RatingGroupRootProps):
|
|
8
|
+
declare function Root(props: RatingGroupRootProps): react_jsx_runtime21.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { RatingGroupRootProps, Root };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react58 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/segmented-control/anatomy/control.d.ts
|
|
6
|
+
interface SegmentedControlControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
+
declare function Control(props: SegmentedControlControlProps): react58.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Control, SegmentedControlControlProps };
|
|
10
|
+
//# sourceMappingURL=control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/control.tsx"],"sourcesContent":[],"mappings":";;;;;UAKiB,4BAAA,SAAqC,yBAAyB;iBAEvD,OAAA,QAAe,+BAA4B,OAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { mergeProps } from "@zag-js/react";
|
|
2
|
+
import { classesSegmentedControl } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/segmented-control/anatomy/control.tsx
|
|
6
|
+
function Control(props) {
|
|
7
|
+
const { element, children,...rest } = props;
|
|
8
|
+
const attributes = mergeProps({ className: classesSegmentedControl.control }, rest);
|
|
9
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
10
|
+
...attributes,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Control as default };
|
|
17
|
+
//# sourceMappingURL=control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.js","names":[],"sources":["../../../../src/components/segmented-control/anatomy/control.tsx"],"sourcesContent":["import type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSegmentedControl } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface SegmentedControlControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Control(props: SegmentedControlControlProps) {\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(\n\t\t{\n\t\t\tclassName: classesSegmentedControl.control,\n\t\t},\n\t\trest,\n\t);\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;AAOA,SAAwB,QAAQ,OAAqC;CACpE,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAClB,EACC,WAAW,wBAAwB,SACnC,EACD,KACA;AAED,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -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 react59 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/segmented-control/anatomy/indicator.d.ts
|
|
6
6
|
interface SegmentedControlIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
7
|
-
declare function Indicator(props: SegmentedControlIndicatorProps):
|
|
7
|
+
declare function Indicator(props: SegmentedControlIndicatorProps): react59.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Indicator, SegmentedControlIndicatorProps };
|
|
10
10
|
//# sourceMappingURL=indicator.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 react56 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/segmented-control/anatomy/item-hidden-input.d.ts
|
|
6
6
|
interface SegmentedControlItemHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
7
|
-
declare function ItemHiddenInput(props: SegmentedControlItemHiddenInputProps):
|
|
7
|
+
declare function ItemHiddenInput(props: SegmentedControlItemHiddenInputProps): react56.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ItemHiddenInput, SegmentedControlItemHiddenInputProps };
|
|
10
10
|
//# sourceMappingURL=item-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 react60 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/segmented-control/anatomy/item-text.d.ts
|
|
6
6
|
interface SegmentedControlItemTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
-
declare function ItemText(props: SegmentedControlItemTextProps):
|
|
7
|
+
declare function ItemText(props: SegmentedControlItemTextProps): react60.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ItemText, SegmentedControlItemTextProps };
|
|
10
10
|
//# sourceMappingURL=item-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_runtime25 from "react/jsx-runtime";
|
|
4
4
|
import { ItemProps } from "@zag-js/radio-group";
|
|
5
5
|
|
|
6
6
|
//#region src/components/segmented-control/anatomy/item.d.ts
|
|
7
7
|
interface SegmentedControlItemProps extends ItemProps, PropsWithElement<'label'>, HTMLAttributes<'label'> {}
|
|
8
|
-
declare function Item(props: SegmentedControlItemProps):
|
|
8
|
+
declare function Item(props: SegmentedControlItemProps): react_jsx_runtime25.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Item, SegmentedControlItemProps };
|
|
11
11
|
//# sourceMappingURL=item.d.ts.map
|