@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.
Files changed (204) hide show
  1. package/dist/components/accordion/anatomy/item-content.d.ts +2 -2
  2. package/dist/components/accordion/anatomy/item-content.d.ts.map +1 -1
  3. package/dist/components/accordion/anatomy/item-indicator.d.ts +2 -2
  4. package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -1
  5. package/dist/components/accordion/anatomy/item-trigger.d.ts +2 -2
  6. package/dist/components/accordion/anatomy/item-trigger.d.ts.map +1 -1
  7. package/dist/components/accordion/anatomy/item.d.ts +2 -2
  8. package/dist/components/accordion/anatomy/item.d.ts.map +1 -1
  9. package/dist/components/accordion/anatomy/root-provider.d.ts +2 -2
  10. package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -1
  11. package/dist/components/accordion/anatomy/root.d.ts +2 -2
  12. package/dist/components/accordion/anatomy/root.d.ts.map +1 -1
  13. package/dist/components/app-bar/anatomy/headline.d.ts +2 -2
  14. package/dist/components/app-bar/anatomy/lead.d.ts +2 -2
  15. package/dist/components/app-bar/anatomy/root.d.ts +2 -2
  16. package/dist/components/app-bar/anatomy/toolbar.d.ts +2 -2
  17. package/dist/components/app-bar/anatomy/trail.d.ts +2 -2
  18. package/dist/components/avatar/anatomy/fallback.d.ts +2 -2
  19. package/dist/components/avatar/anatomy/image.d.ts +2 -2
  20. package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
  21. package/dist/components/avatar/anatomy/root.d.ts +2 -2
  22. package/dist/components/combobox/anatomy/content.d.ts +2 -2
  23. package/dist/components/combobox/anatomy/control.d.ts +2 -2
  24. package/dist/components/combobox/anatomy/control.d.ts.map +1 -1
  25. package/dist/components/combobox/anatomy/input.d.ts +2 -2
  26. package/dist/components/combobox/anatomy/input.d.ts.map +1 -1
  27. package/dist/components/combobox/anatomy/item-group-label.d.ts +2 -2
  28. package/dist/components/combobox/anatomy/item-group-label.d.ts.map +1 -1
  29. package/dist/components/combobox/anatomy/item-group.d.ts +2 -2
  30. package/dist/components/combobox/anatomy/item-indicator.d.ts +2 -2
  31. package/dist/components/combobox/anatomy/item-text.d.ts +2 -2
  32. package/dist/components/combobox/anatomy/item.d.ts +2 -2
  33. package/dist/components/combobox/anatomy/label.d.ts +2 -2
  34. package/dist/components/combobox/anatomy/positioner.d.ts +2 -2
  35. package/dist/components/combobox/anatomy/root-provider.d.ts +2 -2
  36. package/dist/components/combobox/anatomy/root.d.ts +2 -2
  37. package/dist/components/combobox/anatomy/trigger.d.ts +2 -2
  38. package/dist/components/dialog/anatomy/backdrop.d.ts +2 -2
  39. package/dist/components/dialog/anatomy/close-trigger.d.ts +2 -2
  40. package/dist/components/dialog/anatomy/content.d.ts +2 -2
  41. package/dist/components/dialog/anatomy/description.d.ts +2 -2
  42. package/dist/components/dialog/anatomy/positioner.d.ts +2 -2
  43. package/dist/components/dialog/anatomy/root-provider.d.ts +2 -2
  44. package/dist/components/dialog/anatomy/root.d.ts +2 -2
  45. package/dist/components/dialog/anatomy/title.d.ts +2 -2
  46. package/dist/components/dialog/anatomy/trigger.d.ts +2 -2
  47. package/dist/components/file-upload/anatomy/dropzone.d.ts +2 -2
  48. package/dist/components/file-upload/anatomy/hidden-input.d.ts +2 -2
  49. package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +2 -2
  50. package/dist/components/file-upload/anatomy/item-group.d.ts +2 -2
  51. package/dist/components/file-upload/anatomy/item-name.d.ts +2 -2
  52. package/dist/components/file-upload/anatomy/item-size-text.d.ts +2 -2
  53. package/dist/components/file-upload/anatomy/item.d.ts +2 -2
  54. package/dist/components/file-upload/anatomy/item.d.ts.map +1 -1
  55. package/dist/components/file-upload/anatomy/label.d.ts +10 -0
  56. package/dist/components/file-upload/anatomy/label.d.ts.map +1 -0
  57. package/dist/components/file-upload/anatomy/label.js +20 -0
  58. package/dist/components/file-upload/anatomy/label.js.map +1 -0
  59. package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
  60. package/dist/components/file-upload/anatomy/root-provider.d.ts.map +1 -1
  61. package/dist/components/file-upload/anatomy/root.d.ts +2 -2
  62. package/dist/components/file-upload/anatomy/root.d.ts.map +1 -1
  63. package/dist/components/file-upload/anatomy/trigger.d.ts +2 -2
  64. package/dist/components/file-upload/modules/anatomy.d.ts +2 -0
  65. package/dist/components/file-upload/modules/anatomy.d.ts.map +1 -1
  66. package/dist/components/file-upload/modules/anatomy.js +2 -0
  67. package/dist/components/file-upload/modules/anatomy.js.map +1 -1
  68. package/dist/components/navigation/anatomy/content.d.ts +2 -2
  69. package/dist/components/navigation/anatomy/footer.d.ts +2 -2
  70. package/dist/components/navigation/anatomy/group.d.ts +2 -2
  71. package/dist/components/navigation/anatomy/header.d.ts +2 -2
  72. package/dist/components/navigation/anatomy/label.d.ts +2 -2
  73. package/dist/components/navigation/anatomy/menu.d.ts +2 -2
  74. package/dist/components/navigation/anatomy/root.d.ts +2 -2
  75. package/dist/components/pagination/anatomy/ellipsis.d.ts +11 -0
  76. package/dist/components/pagination/anatomy/ellipsis.d.ts.map +1 -0
  77. package/dist/components/pagination/anatomy/ellipsis.js +22 -0
  78. package/dist/components/pagination/anatomy/ellipsis.js.map +1 -0
  79. package/dist/components/pagination/anatomy/item.d.ts +11 -0
  80. package/dist/components/pagination/anatomy/item.d.ts.map +1 -0
  81. package/dist/components/pagination/anatomy/item.js +22 -0
  82. package/dist/components/pagination/anatomy/item.js.map +1 -0
  83. package/dist/components/pagination/anatomy/next-trigger.d.ts +10 -0
  84. package/dist/components/pagination/anatomy/next-trigger.d.ts.map +1 -0
  85. package/dist/components/pagination/anatomy/next-trigger.js +20 -0
  86. package/dist/components/pagination/anatomy/next-trigger.js.map +1 -0
  87. package/dist/components/pagination/anatomy/prev-trigger.d.ts +10 -0
  88. package/dist/components/pagination/anatomy/prev-trigger.d.ts.map +1 -0
  89. package/dist/components/pagination/anatomy/prev-trigger.js +20 -0
  90. package/dist/components/pagination/anatomy/prev-trigger.js.map +1 -0
  91. package/dist/components/pagination/anatomy/root-context.d.ts +11 -0
  92. package/dist/components/pagination/anatomy/root-context.d.ts.map +1 -0
  93. package/dist/components/pagination/anatomy/root-context.js +13 -0
  94. package/dist/components/pagination/anatomy/root-context.js.map +1 -0
  95. package/dist/components/pagination/anatomy/root-provider.d.ts +13 -0
  96. package/dist/components/pagination/anatomy/root-provider.d.ts.map +1 -0
  97. package/dist/components/pagination/anatomy/root-provider.js +21 -0
  98. package/dist/components/pagination/anatomy/root-provider.js.map +1 -0
  99. package/dist/components/pagination/anatomy/root.d.ts +11 -0
  100. package/dist/components/pagination/anatomy/root.d.ts.map +1 -0
  101. package/dist/components/pagination/anatomy/root.js +25 -0
  102. package/dist/components/pagination/anatomy/root.js.map +1 -0
  103. package/dist/components/pagination/modules/anatomy.d.ts +20 -0
  104. package/dist/components/pagination/modules/anatomy.d.ts.map +1 -0
  105. package/dist/components/pagination/modules/anatomy.js +21 -0
  106. package/dist/components/pagination/modules/anatomy.js.map +1 -0
  107. package/dist/components/pagination/modules/provider.d.ts +8 -0
  108. package/dist/components/pagination/modules/provider.d.ts.map +1 -0
  109. package/dist/components/pagination/modules/provider.js +16 -0
  110. package/dist/components/pagination/modules/provider.js.map +1 -0
  111. package/dist/components/pagination/modules/root-context.js +8 -0
  112. package/dist/components/pagination/modules/root-context.js.map +1 -0
  113. package/dist/components/popover/anatomy/arrow-tip.d.ts +2 -2
  114. package/dist/components/popover/anatomy/arrow.d.ts +2 -2
  115. package/dist/components/popover/anatomy/close-trigger.d.ts +2 -2
  116. package/dist/components/popover/anatomy/content.d.ts +2 -2
  117. package/dist/components/popover/anatomy/description.d.ts +2 -2
  118. package/dist/components/popover/anatomy/positioner.d.ts +2 -2
  119. package/dist/components/popover/anatomy/root-provider.d.ts +2 -2
  120. package/dist/components/popover/anatomy/root.d.ts +2 -2
  121. package/dist/components/popover/anatomy/title.d.ts +2 -2
  122. package/dist/components/popover/anatomy/trigger.d.ts +2 -2
  123. package/dist/components/portal/anatomy/root.d.ts +2 -2
  124. package/dist/components/progress-linear/anatomy/label.d.ts +2 -2
  125. package/dist/components/progress-linear/anatomy/range.d.ts +2 -2
  126. package/dist/components/progress-linear/anatomy/root-provider.d.ts +2 -2
  127. package/dist/components/progress-linear/anatomy/root.d.ts +2 -2
  128. package/dist/components/progress-linear/anatomy/track.d.ts +2 -2
  129. package/dist/components/rating-group/anatomy/control.d.ts +2 -2
  130. package/dist/components/rating-group/anatomy/hidden-input.d.ts +2 -2
  131. package/dist/components/rating-group/anatomy/item.d.ts +2 -2
  132. package/dist/components/rating-group/anatomy/label.d.ts +2 -2
  133. package/dist/components/rating-group/anatomy/root-provider.d.ts +2 -2
  134. package/dist/components/rating-group/anatomy/root.d.ts +2 -2
  135. package/dist/components/segmented-control/anatomy/control.d.ts +10 -0
  136. package/dist/components/segmented-control/anatomy/control.d.ts.map +1 -0
  137. package/dist/components/segmented-control/anatomy/control.js +17 -0
  138. package/dist/components/segmented-control/anatomy/control.js.map +1 -0
  139. package/dist/components/segmented-control/anatomy/indicator.d.ts +2 -2
  140. package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +2 -2
  141. package/dist/components/segmented-control/anatomy/item-text.d.ts +2 -2
  142. package/dist/components/segmented-control/anatomy/item.d.ts +2 -2
  143. package/dist/components/segmented-control/anatomy/label.d.ts +10 -0
  144. package/dist/components/segmented-control/anatomy/label.d.ts.map +1 -0
  145. package/dist/components/segmented-control/anatomy/label.js +20 -0
  146. package/dist/components/segmented-control/anatomy/label.js.map +1 -0
  147. package/dist/components/segmented-control/anatomy/root-provider.d.ts +2 -2
  148. package/dist/components/segmented-control/anatomy/root.d.ts +2 -2
  149. package/dist/components/segmented-control/modules/anatomy.d.ts +4 -0
  150. package/dist/components/segmented-control/modules/anatomy.d.ts.map +1 -1
  151. package/dist/components/segmented-control/modules/anatomy.js +4 -0
  152. package/dist/components/segmented-control/modules/anatomy.js.map +1 -1
  153. package/dist/components/slider/anatomy/control.d.ts +2 -2
  154. package/dist/components/slider/anatomy/hidden-input.d.ts +2 -2
  155. package/dist/components/slider/anatomy/label.d.ts +2 -2
  156. package/dist/components/slider/anatomy/marker-group.d.ts +2 -2
  157. package/dist/components/slider/anatomy/marker.d.ts +2 -2
  158. package/dist/components/slider/anatomy/range.d.ts +2 -2
  159. package/dist/components/slider/anatomy/root-provider.d.ts +2 -2
  160. package/dist/components/slider/anatomy/root.d.ts +2 -2
  161. package/dist/components/slider/anatomy/thumb.d.ts +2 -2
  162. package/dist/components/slider/anatomy/track.d.ts +2 -2
  163. package/dist/components/slider/anatomy/value-text.d.ts +2 -2
  164. package/dist/components/switch/anatomy/control.d.ts +2 -2
  165. package/dist/components/switch/anatomy/hidden-input.d.ts +2 -2
  166. package/dist/components/switch/anatomy/label.d.ts +2 -2
  167. package/dist/components/switch/anatomy/root-provider.d.ts +2 -2
  168. package/dist/components/switch/anatomy/root.d.ts +2 -2
  169. package/dist/components/switch/anatomy/thumb.d.ts +2 -2
  170. package/dist/components/tabs/anatomy/content.d.ts +2 -2
  171. package/dist/components/tabs/anatomy/indicator.d.ts +2 -2
  172. package/dist/components/tabs/anatomy/list.d.ts +2 -2
  173. package/dist/components/tabs/anatomy/root-provider.d.ts +2 -2
  174. package/dist/components/tabs/anatomy/root.d.ts +2 -2
  175. package/dist/components/tabs/anatomy/trigger.d.ts +2 -2
  176. package/dist/components/tags-input/anatomy/clear-trigger.d.ts +2 -2
  177. package/dist/components/tags-input/anatomy/control.d.ts +2 -2
  178. package/dist/components/tags-input/anatomy/hidden-input.d.ts +2 -2
  179. package/dist/components/tags-input/anatomy/input.d.ts +2 -2
  180. package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +2 -2
  181. package/dist/components/tags-input/anatomy/item-input.d.ts +2 -2
  182. package/dist/components/tags-input/anatomy/item-preview.d.ts +2 -2
  183. package/dist/components/tags-input/anatomy/item-text.d.ts +2 -2
  184. package/dist/components/tags-input/anatomy/item.d.ts +2 -2
  185. package/dist/components/tags-input/anatomy/label.d.ts +2 -2
  186. package/dist/components/tags-input/anatomy/root-provider.d.ts +2 -2
  187. package/dist/components/tags-input/anatomy/root.d.ts +2 -2
  188. package/dist/components/toast/anatomy/action-trigger.d.ts +2 -2
  189. package/dist/components/toast/anatomy/close-trigger.d.ts +2 -2
  190. package/dist/components/toast/anatomy/description.d.ts +2 -2
  191. package/dist/components/toast/anatomy/group.d.ts +2 -2
  192. package/dist/components/toast/anatomy/message.d.ts +2 -2
  193. package/dist/components/toast/anatomy/root.d.ts +2 -2
  194. package/dist/components/toast/anatomy/title.d.ts +2 -2
  195. package/dist/components/tooltip/anatomy/arrow-tip.d.ts +2 -2
  196. package/dist/components/tooltip/anatomy/arrow.d.ts +2 -2
  197. package/dist/components/tooltip/anatomy/content.d.ts +2 -2
  198. package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
  199. package/dist/components/tooltip/anatomy/root-provider.d.ts +2 -2
  200. package/dist/components/tooltip/anatomy/root.d.ts +2 -2
  201. package/dist/components/tooltip/anatomy/trigger.d.ts +2 -2
  202. package/dist/index.d.ts +13 -1
  203. package/dist/index.js +3 -1
  204. 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,8 @@
1
+ import { createContext } from "../../../internal/create-context.js";
2
+
3
+ //#region src/components/pagination/modules/root-context.ts
4
+ const RootContext = createContext();
5
+
6
+ //#endregion
7
+ export { RootContext };
8
+ //# sourceMappingURL=root-context.js.map
@@ -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 react83 from "react";
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): react83.JSX.Element;
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 react84 from "react";
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): react84.JSX.Element;
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 react35 from "react";
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): react35.JSX.Element;
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 react36 from "react";
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): react36.JSX.Element;
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 react37 from "react";
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): react37.JSX.Element;
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 react38 from "react";
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): react38.JSX.Element;
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 react_jsx_runtime12 from "react/jsx-runtime";
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): react_jsx_runtime12.JSX.Element;
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 react_jsx_runtime11 from "react/jsx-runtime";
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): react_jsx_runtime11.JSX.Element;
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 react39 from "react";
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): react39.JSX.Element;
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 react40 from "react";
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): react40.JSX.Element;
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 react_jsx_runtime13 from "react/jsx-runtime";
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): react_jsx_runtime13.JSX.Element;
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 react41 from "react";
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): react41.JSX.Element;
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 react42 from "react";
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): react42.JSX.Element;
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 react_jsx_runtime15 from "react/jsx-runtime";
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): react_jsx_runtime15.JSX.Element;
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 react_jsx_runtime14 from "react/jsx-runtime";
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): react_jsx_runtime14.JSX.Element;
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 react43 from "react";
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): react43.JSX.Element;
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 react85 from "react";
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): react85.JSX.Element;
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 react86 from "react";
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): react86.JSX.Element;
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 react87 from "react";
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): react87.JSX.Element;
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 react88 from "react";
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): react88.JSX.Element;
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 react_jsx_runtime37 from "react/jsx-runtime";
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): react_jsx_runtime37.JSX.Element;
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 react_jsx_runtime36 from "react/jsx-runtime";
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): react_jsx_runtime36.JSX.Element;
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 react64 from "react";
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): react64.JSX.Element;
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 react45 from "react";
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): react45.JSX.Element;
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 react65 from "react";
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): react65.JSX.Element;
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 react_jsx_runtime27 from "react/jsx-runtime";
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): react_jsx_runtime27.JSX.Element;
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