@skeletonlabs/skeleton-react 4.0.0-next.31 → 4.0.0-next.32

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 (196) hide show
  1. package/dist/components/app-bar/anatomy/headline.d.ts +2 -2
  2. package/dist/components/app-bar/anatomy/lead.d.ts +2 -2
  3. package/dist/components/app-bar/anatomy/root.d.ts +2 -2
  4. package/dist/components/app-bar/anatomy/toolbar.d.ts +2 -2
  5. package/dist/components/app-bar/anatomy/trail.d.ts +2 -2
  6. package/dist/components/avatar/anatomy/fallback.d.ts +2 -2
  7. package/dist/components/avatar/anatomy/image.d.ts +2 -2
  8. package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
  9. package/dist/components/avatar/anatomy/root.d.ts +2 -2
  10. package/dist/components/collapsible/anatomy/content.d.ts +10 -0
  11. package/dist/components/collapsible/anatomy/content.js +20 -0
  12. package/dist/components/collapsible/anatomy/indicator.d.ts +10 -0
  13. package/dist/components/collapsible/anatomy/indicator.js +20 -0
  14. package/dist/components/collapsible/anatomy/root-context.d.ts +11 -0
  15. package/dist/components/collapsible/anatomy/root-context.js +13 -0
  16. package/dist/components/collapsible/anatomy/root-provider.d.ts +13 -0
  17. package/dist/components/collapsible/anatomy/root-provider.js +21 -0
  18. package/dist/components/collapsible/anatomy/root.d.ts +11 -0
  19. package/dist/components/collapsible/anatomy/root.js +25 -0
  20. package/dist/components/collapsible/anatomy/trigger.d.ts +10 -0
  21. package/dist/components/collapsible/anatomy/trigger.js +20 -0
  22. package/dist/components/collapsible/modules/anatomy.d.ts +18 -0
  23. package/dist/components/collapsible/modules/anatomy.js +19 -0
  24. package/dist/components/collapsible/modules/provider.d.ts +8 -0
  25. package/dist/components/collapsible/modules/provider.js +16 -0
  26. package/dist/components/collapsible/modules/root-context.js +8 -0
  27. package/dist/components/combobox/anatomy/content.d.ts +2 -2
  28. package/dist/components/combobox/anatomy/control.d.ts +2 -2
  29. package/dist/components/combobox/anatomy/input.d.ts +2 -2
  30. package/dist/components/combobox/anatomy/item-group-label.d.ts +2 -2
  31. package/dist/components/combobox/anatomy/item-group.d.ts +2 -2
  32. package/dist/components/combobox/anatomy/item-indicator.d.ts +2 -2
  33. package/dist/components/combobox/anatomy/item-text.d.ts +2 -2
  34. package/dist/components/combobox/anatomy/item.d.ts +2 -2
  35. package/dist/components/combobox/anatomy/label.d.ts +2 -2
  36. package/dist/components/combobox/anatomy/positioner.d.ts +2 -2
  37. package/dist/components/combobox/anatomy/root-provider.d.ts +2 -2
  38. package/dist/components/combobox/anatomy/root.d.ts +2 -2
  39. package/dist/components/combobox/anatomy/trigger.d.ts +2 -2
  40. package/dist/components/date-picker/anatomy/content.d.ts +2 -2
  41. package/dist/components/date-picker/anatomy/control.d.ts +2 -2
  42. package/dist/components/date-picker/anatomy/input.d.ts +2 -2
  43. package/dist/components/date-picker/anatomy/label.d.ts +2 -2
  44. package/dist/components/date-picker/anatomy/month-select.d.ts +2 -2
  45. package/dist/components/date-picker/anatomy/next-trigger.d.ts +2 -2
  46. package/dist/components/date-picker/anatomy/positioner.d.ts +2 -2
  47. package/dist/components/date-picker/anatomy/preset-trigger.d.ts +2 -2
  48. package/dist/components/date-picker/anatomy/prev-trigger.d.ts +2 -2
  49. package/dist/components/date-picker/anatomy/range-text.d.ts +2 -2
  50. package/dist/components/date-picker/anatomy/root-provider.d.ts +2 -2
  51. package/dist/components/date-picker/anatomy/root.d.ts +2 -2
  52. package/dist/components/date-picker/anatomy/table-body.d.ts +2 -2
  53. package/dist/components/date-picker/anatomy/table-cell-trigger.d.ts +2 -2
  54. package/dist/components/date-picker/anatomy/table-cell.d.ts +2 -2
  55. package/dist/components/date-picker/anatomy/table-head.d.ts +2 -2
  56. package/dist/components/date-picker/anatomy/table-header.d.ts +2 -2
  57. package/dist/components/date-picker/anatomy/table-row.d.ts +2 -2
  58. package/dist/components/date-picker/anatomy/table.d.ts +2 -2
  59. package/dist/components/date-picker/anatomy/trigger.d.ts +2 -2
  60. package/dist/components/date-picker/anatomy/view-control.d.ts +2 -2
  61. package/dist/components/date-picker/anatomy/view-trigger.d.ts +2 -2
  62. package/dist/components/date-picker/anatomy/view.d.ts +2 -2
  63. package/dist/components/date-picker/anatomy/year-select.d.ts +2 -2
  64. package/dist/components/dialog/anatomy/backdrop.d.ts +2 -2
  65. package/dist/components/dialog/anatomy/close-trigger.d.ts +2 -2
  66. package/dist/components/dialog/anatomy/content.d.ts +2 -2
  67. package/dist/components/dialog/anatomy/description.d.ts +2 -2
  68. package/dist/components/dialog/anatomy/positioner.d.ts +2 -2
  69. package/dist/components/dialog/anatomy/root-provider.d.ts +2 -2
  70. package/dist/components/dialog/anatomy/root.d.ts +2 -2
  71. package/dist/components/dialog/anatomy/title.d.ts +2 -2
  72. package/dist/components/dialog/anatomy/trigger.d.ts +2 -2
  73. package/dist/components/file-upload/anatomy/dropzone.d.ts +2 -2
  74. package/dist/components/file-upload/anatomy/hidden-input.d.ts +2 -2
  75. package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +2 -2
  76. package/dist/components/file-upload/anatomy/item-group.d.ts +2 -2
  77. package/dist/components/file-upload/anatomy/item-name.d.ts +2 -2
  78. package/dist/components/file-upload/anatomy/item-size-text.d.ts +2 -2
  79. package/dist/components/file-upload/anatomy/item.d.ts +2 -2
  80. package/dist/components/file-upload/anatomy/label.d.ts +2 -2
  81. package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
  82. package/dist/components/file-upload/anatomy/root.d.ts +2 -2
  83. package/dist/components/file-upload/anatomy/trigger.d.ts +2 -2
  84. package/dist/components/listbox/anatomy/content.d.ts +2 -2
  85. package/dist/components/listbox/anatomy/input.d.ts +2 -2
  86. package/dist/components/listbox/anatomy/item-group-label.d.ts +2 -2
  87. package/dist/components/listbox/anatomy/item-group.d.ts +2 -2
  88. package/dist/components/listbox/anatomy/item-indicator.d.ts +2 -2
  89. package/dist/components/listbox/anatomy/item-text.d.ts +2 -2
  90. package/dist/components/listbox/anatomy/item.d.ts +2 -2
  91. package/dist/components/listbox/anatomy/label.d.ts +2 -2
  92. package/dist/components/listbox/anatomy/root-provider.d.ts +2 -2
  93. package/dist/components/listbox/anatomy/root.d.ts +2 -2
  94. package/dist/components/navigation/anatomy/content.d.ts +2 -2
  95. package/dist/components/navigation/anatomy/footer.d.ts +2 -2
  96. package/dist/components/navigation/anatomy/group.d.ts +2 -2
  97. package/dist/components/navigation/anatomy/header.d.ts +2 -2
  98. package/dist/components/navigation/anatomy/label.d.ts +2 -2
  99. package/dist/components/navigation/anatomy/menu.d.ts +2 -2
  100. package/dist/components/navigation/anatomy/root.d.ts +2 -2
  101. package/dist/components/pagination/anatomy/ellipsis.d.ts +2 -2
  102. package/dist/components/pagination/anatomy/item.d.ts +2 -2
  103. package/dist/components/pagination/anatomy/next-trigger.d.ts +2 -2
  104. package/dist/components/pagination/anatomy/prev-trigger.d.ts +2 -2
  105. package/dist/components/pagination/anatomy/root-provider.d.ts +2 -2
  106. package/dist/components/pagination/anatomy/root.d.ts +2 -2
  107. package/dist/components/popover/anatomy/arrow-tip.d.ts +2 -2
  108. package/dist/components/popover/anatomy/arrow.d.ts +2 -2
  109. package/dist/components/popover/anatomy/close-trigger.d.ts +2 -2
  110. package/dist/components/popover/anatomy/content.d.ts +2 -2
  111. package/dist/components/popover/anatomy/description.d.ts +2 -2
  112. package/dist/components/popover/anatomy/positioner.d.ts +2 -2
  113. package/dist/components/popover/anatomy/root-provider.d.ts +2 -2
  114. package/dist/components/popover/anatomy/root.d.ts +2 -2
  115. package/dist/components/popover/anatomy/title.d.ts +2 -2
  116. package/dist/components/popover/anatomy/trigger.d.ts +2 -2
  117. package/dist/components/portal/anatomy/root.d.ts +2 -2
  118. package/dist/components/progress/anatomy/circle-range.d.ts +2 -2
  119. package/dist/components/progress/anatomy/circle-track.d.ts +2 -2
  120. package/dist/components/progress/anatomy/circle.d.ts +2 -2
  121. package/dist/components/progress/anatomy/label.d.ts +2 -2
  122. package/dist/components/progress/anatomy/range.d.ts +2 -2
  123. package/dist/components/progress/anatomy/track.d.ts +2 -2
  124. package/dist/components/progress/anatomy/value-text.d.ts +2 -2
  125. package/dist/components/rating-group/anatomy/control.d.ts +2 -2
  126. package/dist/components/rating-group/anatomy/hidden-input.d.ts +2 -2
  127. package/dist/components/rating-group/anatomy/item.d.ts +2 -2
  128. package/dist/components/rating-group/anatomy/label.d.ts +2 -2
  129. package/dist/components/segmented-control/anatomy/control.d.ts +2 -2
  130. package/dist/components/segmented-control/anatomy/indicator.d.ts +2 -2
  131. package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +2 -2
  132. package/dist/components/segmented-control/anatomy/item-text.d.ts +2 -2
  133. package/dist/components/segmented-control/anatomy/label.d.ts +2 -2
  134. package/dist/components/slider/anatomy/control.d.ts +2 -2
  135. package/dist/components/slider/anatomy/hidden-input.d.ts +2 -2
  136. package/dist/components/slider/anatomy/label.d.ts +2 -2
  137. package/dist/components/slider/anatomy/marker-group.d.ts +2 -2
  138. package/dist/components/slider/anatomy/marker.d.ts +2 -2
  139. package/dist/components/slider/anatomy/range.d.ts +2 -2
  140. package/dist/components/slider/anatomy/root-provider.d.ts +2 -2
  141. package/dist/components/slider/anatomy/root.d.ts +2 -2
  142. package/dist/components/slider/anatomy/thumb.d.ts +2 -2
  143. package/dist/components/slider/anatomy/track.d.ts +2 -2
  144. package/dist/components/slider/anatomy/value-text.d.ts +2 -2
  145. package/dist/components/switch/anatomy/control.d.ts +2 -2
  146. package/dist/components/switch/anatomy/hidden-input.d.ts +2 -2
  147. package/dist/components/switch/anatomy/label.d.ts +2 -2
  148. package/dist/components/switch/anatomy/root-provider.d.ts +2 -2
  149. package/dist/components/switch/anatomy/root.d.ts +2 -2
  150. package/dist/components/switch/anatomy/thumb.d.ts +2 -2
  151. package/dist/components/tabs/anatomy/content.d.ts +2 -2
  152. package/dist/components/tabs/anatomy/indicator.d.ts +2 -2
  153. package/dist/components/tabs/anatomy/list.d.ts +2 -2
  154. package/dist/components/tabs/anatomy/root-provider.d.ts +2 -2
  155. package/dist/components/tabs/anatomy/root.d.ts +2 -2
  156. package/dist/components/tabs/anatomy/trigger.d.ts +2 -2
  157. package/dist/components/tags-input/anatomy/clear-trigger.d.ts +2 -2
  158. package/dist/components/tags-input/anatomy/control.d.ts +2 -2
  159. package/dist/components/tags-input/anatomy/hidden-input.d.ts +2 -2
  160. package/dist/components/tags-input/anatomy/input.d.ts +2 -2
  161. package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +2 -2
  162. package/dist/components/tags-input/anatomy/item-input.d.ts +2 -2
  163. package/dist/components/tags-input/anatomy/item-preview.d.ts +2 -2
  164. package/dist/components/tags-input/anatomy/item-text.d.ts +2 -2
  165. package/dist/components/tags-input/anatomy/item.d.ts +2 -2
  166. package/dist/components/tags-input/anatomy/label.d.ts +2 -2
  167. package/dist/components/tags-input/anatomy/root-provider.d.ts +2 -2
  168. package/dist/components/tags-input/anatomy/root.d.ts +2 -2
  169. package/dist/components/toast/anatomy/action-trigger.d.ts +2 -2
  170. package/dist/components/toast/anatomy/close-trigger.d.ts +2 -2
  171. package/dist/components/toast/anatomy/description.d.ts +2 -2
  172. package/dist/components/toast/anatomy/group.d.ts +2 -2
  173. package/dist/components/toast/anatomy/message.d.ts +2 -2
  174. package/dist/components/toast/anatomy/root.d.ts +2 -2
  175. package/dist/components/toast/anatomy/title.d.ts +2 -2
  176. package/dist/components/tooltip/anatomy/arrow-tip.d.ts +2 -2
  177. package/dist/components/tooltip/anatomy/arrow.d.ts +2 -2
  178. package/dist/components/tooltip/anatomy/content.d.ts +2 -2
  179. package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
  180. package/dist/components/tooltip/anatomy/root-provider.d.ts +2 -2
  181. package/dist/components/tooltip/anatomy/root.d.ts +2 -2
  182. package/dist/components/tooltip/anatomy/trigger.d.ts +2 -2
  183. package/dist/components/tree-view/anatomy/branch-content.d.ts +2 -2
  184. package/dist/components/tree-view/anatomy/branch-control.d.ts +2 -2
  185. package/dist/components/tree-view/anatomy/branch-indent-guide.d.ts +2 -2
  186. package/dist/components/tree-view/anatomy/branch-indicator.d.ts +2 -2
  187. package/dist/components/tree-view/anatomy/branch-text.d.ts +2 -2
  188. package/dist/components/tree-view/anatomy/branch.d.ts +2 -2
  189. package/dist/components/tree-view/anatomy/item.d.ts +2 -2
  190. package/dist/components/tree-view/anatomy/node-provider.d.ts +2 -2
  191. package/dist/components/tree-view/anatomy/root-provider.d.ts +2 -2
  192. package/dist/components/tree-view/anatomy/root.d.ts +2 -2
  193. package/dist/components/tree-view/anatomy/tree.d.ts +2 -2
  194. package/dist/index.d.ts +9 -1
  195. package/dist/index.js +3 -1
  196. package/package.json +3 -2
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react13 from "react";
3
+ import * as react5 from "react";
4
4
 
5
5
  //#region src/components/app-bar/anatomy/headline.d.ts
6
6
  interface AppBarHeadlineProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function AppBarHeadline(props: AppBarHeadlineProps): react13.JSX.Element;
7
+ declare function AppBarHeadline(props: AppBarHeadlineProps): react5.JSX.Element;
8
8
  //#endregion
9
9
  export { AppBarHeadline, AppBarHeadlineProps };
10
10
  //# sourceMappingURL=headline.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 react12 from "react";
3
+ import * as react4 from "react";
4
4
 
5
5
  //#region src/components/app-bar/anatomy/lead.d.ts
6
6
  interface AppBarLeadProps extends PropsWithElement<'nav'>, HTMLAttributes<'nav'> {}
7
- declare function AppBarLead(props: AppBarLeadProps): react12.JSX.Element;
7
+ declare function AppBarLead(props: AppBarLeadProps): react4.JSX.Element;
8
8
  //#endregion
9
9
  export { AppBarLead, AppBarLeadProps };
10
10
  //# sourceMappingURL=lead.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 react10 from "react";
3
+ import * as react2 from "react";
4
4
 
5
5
  //#region src/components/app-bar/anatomy/root.d.ts
6
6
  interface AppBarRootProps extends PropsWithElement<'header'>, HTMLAttributes<'header'> {}
7
- declare function AppBarRoot(props: AppBarRootProps): react10.JSX.Element;
7
+ declare function AppBarRoot(props: AppBarRootProps): react2.JSX.Element;
8
8
  //#endregion
9
9
  export { AppBarRoot, AppBarRootProps };
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 react11 from "react";
3
+ import * as react3 from "react";
4
4
 
5
5
  //#region src/components/app-bar/anatomy/toolbar.d.ts
6
6
  interface AppBarToolbarProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function AppBarToolbar(props: AppBarToolbarProps): react11.JSX.Element;
7
+ declare function AppBarToolbar(props: AppBarToolbarProps): react3.JSX.Element;
8
8
  //#endregion
9
9
  export { AppBarToolbar, AppBarToolbarProps };
10
10
  //# sourceMappingURL=toolbar.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 react14 from "react";
3
+ import * as react6 from "react";
4
4
 
5
5
  //#region src/components/app-bar/anatomy/trail.d.ts
6
6
  interface AppBarTrailProps extends PropsWithElement<'nav'>, HTMLAttributes<'nav'> {}
7
- declare function AppBarTrail(props: AppBarTrailProps): react14.JSX.Element;
7
+ declare function AppBarTrail(props: AppBarTrailProps): react6.JSX.Element;
8
8
  //#endregion
9
9
  export { AppBarTrail, AppBarTrailProps };
10
10
  //# sourceMappingURL=trail.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 react23 from "react";
3
+ import * as react7 from "react";
4
4
 
5
5
  //#region src/components/avatar/anatomy/fallback.d.ts
6
6
  interface AvatarFallbackProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
7
- declare function Fallback(props: AvatarFallbackProps): react23.JSX.Element;
7
+ declare function Fallback(props: AvatarFallbackProps): react7.JSX.Element;
8
8
  //#endregion
9
9
  export { AvatarFallbackProps, Fallback };
10
10
  //# sourceMappingURL=fallback.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 react24 from "react";
3
+ import * as react8 from "react";
4
4
 
5
5
  //#region src/components/avatar/anatomy/image.d.ts
6
6
  interface AvatarImageProps extends PropsWithElement<'img'>, HTMLAttributes<'img', 'children'> {}
7
- declare function Image(props: AvatarImageProps): react24.JSX.Element;
7
+ declare function Image(props: AvatarImageProps): react8.JSX.Element;
8
8
  //#endregion
9
9
  export { AvatarImageProps, Image };
10
10
  //# sourceMappingURL=image.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 { useAvatar } from "../modules/provider.js";
4
- import * as react_jsx_runtime9 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/avatar/anatomy/root-provider.d.ts
7
7
  interface AvatarRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
8
8
  value: ReturnType<typeof useAvatar>;
9
9
  }
10
- declare function AvatarRootProvider(props: AvatarRootProviderProps): react_jsx_runtime9.JSX.Element;
10
+ declare function AvatarRootProvider(props: AvatarRootProviderProps): react_jsx_runtime3.JSX.Element;
11
11
  //#endregion
12
12
  export { AvatarRootProvider, AvatarRootProviderProps };
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_runtime8 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
4
4
  import { Props } from "@zag-js/avatar";
5
5
 
6
6
  //#region src/components/avatar/anatomy/root.d.ts
7
7
  interface AvatarRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
8
- declare function AvatarRoot(props: AvatarRootProps): react_jsx_runtime8.JSX.Element;
8
+ declare function AvatarRoot(props: AvatarRootProps): react_jsx_runtime2.JSX.Element;
9
9
  //#endregion
10
10
  export { AvatarRoot, AvatarRootProps };
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 react9 from "react";
4
+
5
+ //#region src/components/collapsible/anatomy/content.d.ts
6
+ interface CollapsibleContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
+ declare function Content(props: CollapsibleContentProps): react9.JSX.Element;
8
+ //#endregion
9
+ export { CollapsibleContentProps, Content };
10
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesCollapsible } from "@skeletonlabs/skeleton-common";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/components/collapsible/anatomy/content.tsx
8
+ function Content(props) {
9
+ const collapsible = use(RootContext);
10
+ const { element, children,...rest } = props;
11
+ const attributes = mergeProps(collapsible.getContentProps(), { className: classesCollapsible.content }, rest);
12
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
13
+ ...attributes,
14
+ children
15
+ });
16
+ }
17
+
18
+ //#endregion
19
+ export { Content as default };
20
+ //# sourceMappingURL=content.js.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 react11 from "react";
4
+
5
+ //#region src/components/collapsible/anatomy/indicator.d.ts
6
+ interface CollapsibleIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
+ declare function Indicator(props: CollapsibleIndicatorProps): react11.JSX.Element;
8
+ //#endregion
9
+ export { CollapsibleIndicatorProps, Indicator };
10
+ //# sourceMappingURL=indicator.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesCollapsible } from "@skeletonlabs/skeleton-common";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/components/collapsible/anatomy/indicator.tsx
8
+ function Indicator(props) {
9
+ const collapsible = use(RootContext);
10
+ const { element, children,...rest } = props;
11
+ const attributes = mergeProps(collapsible.getIndicatorProps(), { className: classesCollapsible.indicator }, rest);
12
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
13
+ ...attributes,
14
+ children
15
+ });
16
+ }
17
+
18
+ //#endregion
19
+ export { Indicator as default };
20
+ //# sourceMappingURL=indicator.js.map
@@ -0,0 +1,11 @@
1
+ import { useCollapsible } from "../modules/provider.js";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/components/collapsible/anatomy/root-context.d.ts
5
+ interface CollapsibleRootContextProps {
6
+ children: (collapsible: ReturnType<typeof useCollapsible>) => ReactNode;
7
+ }
8
+ declare function RootContext(props: CollapsibleRootContextProps): ReactNode;
9
+ //#endregion
10
+ export { CollapsibleRootContextProps, RootContext };
11
+ //# sourceMappingURL=root-context.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { use } from "react";
3
+
4
+ //#region src/components/collapsible/anatomy/root-context.tsx
5
+ function RootContext$1(props) {
6
+ const collapsible = use(RootContext);
7
+ const { children } = props;
8
+ return children(collapsible);
9
+ }
10
+
11
+ //#endregion
12
+ export { RootContext$1 as default };
13
+ //# sourceMappingURL=root-context.js.map
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import { useCollapsible } from "../modules/provider.js";
4
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
5
+
6
+ //#region src/components/collapsible/anatomy/root-provider.d.ts
7
+ interface CollapsibleRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
8
+ value: ReturnType<typeof useCollapsible>;
9
+ }
10
+ declare function CollapsibleRootProvider(props: CollapsibleRootProviderProps): react_jsx_runtime5.JSX.Element;
11
+ //#endregion
12
+ export { CollapsibleRootProvider, CollapsibleRootProviderProps };
13
+ //# sourceMappingURL=root-provider.d.ts.map
@@ -0,0 +1,21 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { mergeProps } from "@zag-js/react";
3
+ import { classesCollapsible } from "@skeletonlabs/skeleton-common";
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ //#region src/components/collapsible/anatomy/root-provider.tsx
7
+ function CollapsibleRootProvider(props) {
8
+ const { element, children, value: collapsible,...rest } = props;
9
+ const attributes = mergeProps(collapsible.getRootProps(), { className: classesCollapsible.root }, rest);
10
+ return /* @__PURE__ */ jsx(RootContext.Provider, {
11
+ value: collapsible,
12
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
13
+ ...attributes,
14
+ children
15
+ })
16
+ });
17
+ }
18
+
19
+ //#endregion
20
+ export { CollapsibleRootProvider as default };
21
+ //# sourceMappingURL=root-provider.js.map
@@ -0,0 +1,11 @@
1
+ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
+ import { PropsWithElement } from "../../../internal/props-with-element.js";
3
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
4
+ import { Props } from "@zag-js/collapsible";
5
+
6
+ //#region src/components/collapsible/anatomy/root.d.ts
7
+ interface CollapsibleRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
8
+ declare function CollapsibleRoot(props: CollapsibleRootProps): react_jsx_runtime4.JSX.Element;
9
+ //#endregion
10
+ export { CollapsibleRoot, CollapsibleRootProps };
11
+ //# sourceMappingURL=root.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { useCollapsible } from "../modules/provider.js";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesCollapsible } from "@skeletonlabs/skeleton-common";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { splitProps } from "@zag-js/collapsible";
7
+
8
+ //#region src/components/collapsible/anatomy/root.tsx
9
+ function CollapsibleRoot(props) {
10
+ const [collapsibleProps, componentProps] = splitProps(props);
11
+ const { element, children,...rest } = componentProps;
12
+ const collapsible = useCollapsible(collapsibleProps);
13
+ const attributes = mergeProps(collapsible.getRootProps(), { className: classesCollapsible.root }, rest);
14
+ return /* @__PURE__ */ jsx(RootContext.Provider, {
15
+ value: collapsible,
16
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
17
+ ...attributes,
18
+ children
19
+ })
20
+ });
21
+ }
22
+
23
+ //#endregion
24
+ export { CollapsibleRoot as default };
25
+ //# sourceMappingURL=root.js.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 react10 from "react";
4
+
5
+ //#region src/components/collapsible/anatomy/trigger.d.ts
6
+ interface CollapsibleTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
+ declare function Trigger(props: CollapsibleTriggerProps): react10.JSX.Element;
8
+ //#endregion
9
+ export { CollapsibleTriggerProps, Trigger };
10
+ //# sourceMappingURL=trigger.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesCollapsible } from "@skeletonlabs/skeleton-common";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/components/collapsible/anatomy/trigger.tsx
8
+ function Trigger(props) {
9
+ const collapsible = use(RootContext);
10
+ const { element, children,...rest } = props;
11
+ const attributes = mergeProps(collapsible.getTriggerProps(), { className: classesCollapsible.trigger }, rest);
12
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
13
+ ...attributes,
14
+ children
15
+ });
16
+ }
17
+
18
+ //#endregion
19
+ export { Trigger as default };
20
+ //# sourceMappingURL=trigger.js.map
@@ -0,0 +1,18 @@
1
+ import { Content } from "../anatomy/content.js";
2
+ import { CollapsibleRoot } from "../anatomy/root.js";
3
+ import { RootContext } from "../anatomy/root-context.js";
4
+ import { CollapsibleRootProvider } from "../anatomy/root-provider.js";
5
+ import { Trigger } from "../anatomy/trigger.js";
6
+ import { Indicator } from "../anatomy/indicator.js";
7
+
8
+ //#region src/components/collapsible/modules/anatomy.d.ts
9
+ declare const Collapsible: typeof CollapsibleRoot & {
10
+ Provider: typeof CollapsibleRootProvider;
11
+ Context: typeof RootContext;
12
+ Trigger: typeof Trigger;
13
+ Indicator: typeof Indicator;
14
+ Content: typeof Content;
15
+ };
16
+ //#endregion
17
+ export { Collapsible };
18
+ //# sourceMappingURL=anatomy.d.ts.map
@@ -0,0 +1,19 @@
1
+ import Content from "../anatomy/content.js";
2
+ import Indicator from "../anatomy/indicator.js";
3
+ import CollapsibleRoot from "../anatomy/root.js";
4
+ import RootContext from "../anatomy/root-context.js";
5
+ import CollapsibleRootProvider from "../anatomy/root-provider.js";
6
+ import Trigger from "../anatomy/trigger.js";
7
+
8
+ //#region src/components/collapsible/modules/anatomy.ts
9
+ const Collapsible = Object.assign(CollapsibleRoot, {
10
+ Provider: CollapsibleRootProvider,
11
+ Context: RootContext,
12
+ Trigger,
13
+ Indicator,
14
+ Content
15
+ });
16
+
17
+ //#endregion
18
+ export { Collapsible };
19
+ //# sourceMappingURL=anatomy.js.map
@@ -0,0 +1,8 @@
1
+ import { PropTypes } from "@zag-js/react";
2
+ import { Api, Props } from "@zag-js/collapsible";
3
+
4
+ //#region src/components/collapsible/modules/provider.d.ts
5
+ declare function useCollapsible(props?: Omit<Props, 'id'>): Api<PropTypes>;
6
+ //#endregion
7
+ export { useCollapsible };
8
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1,16 @@
1
+ import { useId } from "react";
2
+ import { normalizeProps, useMachine } from "@zag-js/react";
3
+ import { connect, machine } from "@zag-js/collapsible";
4
+
5
+ //#region src/components/collapsible/modules/provider.ts
6
+ function useCollapsible(props = {}) {
7
+ const service = useMachine(machine, {
8
+ id: useId(),
9
+ ...props
10
+ });
11
+ return connect(service, normalizeProps);
12
+ }
13
+
14
+ //#endregion
15
+ export { useCollapsible };
16
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1,8 @@
1
+ import { createContext } from "../../../internal/create-context.js";
2
+
3
+ //#region src/components/collapsible/modules/root-context.ts
4
+ const RootContext = createContext();
5
+
6
+ //#endregion
7
+ export { RootContext };
8
+ //# sourceMappingURL=root-context.js.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 react25 from "react";
3
+ import * as react12 from "react";
4
4
 
5
5
  //#region src/components/combobox/anatomy/content.d.ts
6
6
  interface ComboboxContentProps extends PropsWithElement<'ul'>, HTMLAttributes<'ul'> {}
7
- declare function Content(props: ComboboxContentProps): react25.JSX.Element;
7
+ declare function Content(props: ComboboxContentProps): react12.JSX.Element;
8
8
  //#endregion
9
9
  export { ComboboxContentProps, Content };
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 react26 from "react";
3
+ import * as react13 from "react";
4
4
 
5
5
  //#region src/components/combobox/anatomy/control.d.ts
6
6
  interface ComboboxControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Control(props: ComboboxControlProps): react26.JSX.Element;
7
+ declare function Control(props: ComboboxControlProps): react13.JSX.Element;
8
8
  //#endregion
9
9
  export { ComboboxControlProps, Control };
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 react27 from "react";
3
+ import * as react14 from "react";
4
4
 
5
5
  //#region src/components/combobox/anatomy/input.d.ts
6
6
  interface ComboboxInputProps extends PropsWithElement<'input'>, Omit<HTMLAttributes<'input'>, 'children'> {}
7
- declare function Input(props: ComboboxInputProps): react27.JSX.Element;
7
+ declare function Input(props: ComboboxInputProps): react14.JSX.Element;
8
8
  //#endregion
9
9
  export { ComboboxInputProps, Input };
10
10
  //# sourceMappingURL=input.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 react28 from "react";
3
+ import * as react15 from "react";
4
4
  import { ItemGroupLabelProps } from "@zag-js/combobox";
5
5
 
6
6
  //#region src/components/combobox/anatomy/item-group-label.d.ts
7
7
  interface ComboboxItemGroupLabelProps extends Omit<ItemGroupLabelProps, 'htmlFor'>, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
8
- declare function ItemGroupLabel(props: ComboboxItemGroupLabelProps): react28.JSX.Element;
8
+ declare function ItemGroupLabel(props: ComboboxItemGroupLabelProps): react15.JSX.Element;
9
9
  //#endregion
10
10
  export { ComboboxItemGroupLabelProps, ItemGroupLabel };
11
11
  //# sourceMappingURL=item-group-label.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_runtime11 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
4
4
  import { ItemGroupProps } from "@zag-js/combobox";
5
5
 
6
6
  //#region src/components/combobox/anatomy/item-group.d.ts
7
7
  interface ComboboxItemGroupProps extends Omit<ItemGroupProps, 'id'>, PropsWithElement<'div'>, Omit<HTMLAttributes<'div'>, 'id'> {}
8
- declare function ItemGroup(props: ComboboxItemGroupProps): react_jsx_runtime11.JSX.Element;
8
+ declare function ItemGroup(props: ComboboxItemGroupProps): react_jsx_runtime7.JSX.Element;
9
9
  //#endregion
10
10
  export { ComboboxItemGroupProps, ItemGroup };
11
11
  //# sourceMappingURL=item-group.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react29 from "react";
3
+ import * as react16 from "react";
4
4
 
5
5
  //#region src/components/combobox/anatomy/item-indicator.d.ts
6
6
  interface ComboboxItemIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function ItemIndicator(props: ComboboxItemIndicatorProps): react29.JSX.Element;
7
+ declare function ItemIndicator(props: ComboboxItemIndicatorProps): react16.JSX.Element;
8
8
  //#endregion
9
9
  export { ComboboxItemIndicatorProps, ItemIndicator };
10
10
  //# sourceMappingURL=item-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 react30 from "react";
3
+ import * as react17 from "react";
4
4
 
5
5
  //#region src/components/combobox/anatomy/item-text.d.ts
6
6
  interface ComboboxItemTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
7
- declare function ItemText(props: ComboboxItemTextProps): react30.JSX.Element;
7
+ declare function ItemText(props: ComboboxItemTextProps): react17.JSX.Element;
8
8
  //#endregion
9
9
  export { ComboboxItemTextProps, ItemText };
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_runtime10 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
4
4
  import { ItemProps } from "@zag-js/combobox";
5
5
 
6
6
  //#region src/components/combobox/anatomy/item.d.ts
7
7
  interface ComboboxItemProps extends ItemProps, PropsWithElement<'li'>, HTMLAttributes<'li'> {}
8
- declare function Item(props: ComboboxItemProps): react_jsx_runtime10.JSX.Element;
8
+ declare function Item(props: ComboboxItemProps): react_jsx_runtime6.JSX.Element;
9
9
  //#endregion
10
10
  export { ComboboxItemProps, Item };
11
11
  //# 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 react31 from "react";
3
+ import * as react18 from "react";
4
4
 
5
5
  //#region src/components/combobox/anatomy/label.d.ts
6
6
  interface ComboboxLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
7
- declare function Label(props: ComboboxLabelProps): react31.JSX.Element;
7
+ declare function Label(props: ComboboxLabelProps): react18.JSX.Element;
8
8
  //#endregion
9
9
  export { ComboboxLabelProps, Label };
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 react32 from "react";
3
+ import * as react19 from "react";
4
4
 
5
5
  //#region src/components/combobox/anatomy/positioner.d.ts
6
6
  interface ComboboxPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Positioner(props: ComboboxPositionerProps): react32.JSX.Element;
7
+ declare function Positioner(props: ComboboxPositionerProps): react19.JSX.Element;
8
8
  //#endregion
9
9
  export { ComboboxPositionerProps, Positioner };
10
10
  //# sourceMappingURL=positioner.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 { useCombobox } from "../modules/provider.js";
4
- import * as react_jsx_runtime13 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/combobox/anatomy/root-provider.d.ts
7
7
  interface ComboboxRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue' | 'onSelect'> {
8
8
  value: ReturnType<typeof useCombobox>;
9
9
  }
10
- declare function RootProvider(props: ComboboxRootProviderProps): react_jsx_runtime13.JSX.Element;
10
+ declare function RootProvider(props: ComboboxRootProviderProps): react_jsx_runtime9.JSX.Element;
11
11
  //#endregion
12
12
  export { ComboboxRootProviderProps, 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_runtime12 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
4
4
  import { Props } from "@zag-js/combobox";
5
5
 
6
6
  //#region src/components/combobox/anatomy/root.d.ts
7
7
  interface ComboboxRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue' | 'onSelect'> {}
8
- declare function Root(props: ComboboxRootProps): react_jsx_runtime12.JSX.Element;
8
+ declare function Root(props: ComboboxRootProps): react_jsx_runtime8.JSX.Element;
9
9
  //#endregion
10
10
  export { ComboboxRootProps, 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 react33 from "react";
3
+ import * as react20 from "react";
4
4
 
5
5
  //#region src/components/combobox/anatomy/trigger.d.ts
6
6
  interface ComboboxTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function Trigger(props: ComboboxTriggerProps): react33.JSX.Element;
7
+ declare function Trigger(props: ComboboxTriggerProps): react20.JSX.Element;
8
8
  //#endregion
9
9
  export { ComboboxTriggerProps, Trigger };
10
10
  //# sourceMappingURL=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 react88 from "react";
3
+ import * as react21 from "react";
4
4
 
5
5
  //#region src/components/date-picker/anatomy/content.d.ts
6
6
  interface DatePickerContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Content(props: DatePickerContentProps): react88.JSX.Element;
7
+ declare function Content(props: DatePickerContentProps): react21.JSX.Element;
8
8
  //#endregion
9
9
  export { Content, DatePickerContentProps };
10
10
  //# sourceMappingURL=content.d.ts.map