@skeletonlabs/skeleton-react 4.0.1 → 4.1.0

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 (242) hide show
  1. package/dist/components/accordion/anatomy/item-content.d.ts +2 -2
  2. package/dist/components/accordion/anatomy/item-indicator.d.ts +2 -2
  3. package/dist/components/accordion/anatomy/item-trigger.d.ts +2 -2
  4. package/dist/components/accordion/anatomy/item.d.ts +2 -2
  5. package/dist/components/accordion/anatomy/root-provider.d.ts +2 -2
  6. package/dist/components/accordion/anatomy/root.d.ts +2 -2
  7. package/dist/components/accordion/modules/provider.js +2 -3
  8. package/dist/components/app-bar/anatomy/headline.d.ts +2 -2
  9. package/dist/components/app-bar/anatomy/lead.d.ts +2 -2
  10. package/dist/components/app-bar/anatomy/root.d.ts +2 -2
  11. package/dist/components/app-bar/anatomy/toolbar.d.ts +2 -2
  12. package/dist/components/app-bar/anatomy/trail.d.ts +2 -2
  13. package/dist/components/avatar/anatomy/fallback.d.ts +2 -2
  14. package/dist/components/avatar/anatomy/image.d.ts +2 -2
  15. package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
  16. package/dist/components/avatar/anatomy/root.d.ts +2 -2
  17. package/dist/components/avatar/modules/provider.js +2 -3
  18. package/dist/components/collapsible/anatomy/content.d.ts +2 -2
  19. package/dist/components/collapsible/anatomy/indicator.d.ts +2 -2
  20. package/dist/components/collapsible/anatomy/root-provider.d.ts +2 -2
  21. package/dist/components/collapsible/anatomy/root.d.ts +2 -2
  22. package/dist/components/collapsible/anatomy/trigger.d.ts +2 -2
  23. package/dist/components/collapsible/modules/provider.js +2 -3
  24. package/dist/components/combobox/anatomy/content.d.ts +2 -2
  25. package/dist/components/combobox/anatomy/control.d.ts +2 -2
  26. package/dist/components/combobox/anatomy/input.d.ts +2 -2
  27. package/dist/components/combobox/anatomy/item-group-label.d.ts +2 -2
  28. package/dist/components/combobox/anatomy/item-group-label.js +1 -2
  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/combobox/modules/provider.js +2 -3
  39. package/dist/components/date-picker/anatomy/content.d.ts +2 -2
  40. package/dist/components/date-picker/anatomy/control.d.ts +2 -2
  41. package/dist/components/date-picker/anatomy/input.d.ts +2 -2
  42. package/dist/components/date-picker/anatomy/label.d.ts +2 -2
  43. package/dist/components/date-picker/anatomy/month-select.d.ts +2 -2
  44. package/dist/components/date-picker/anatomy/next-trigger.d.ts +2 -2
  45. package/dist/components/date-picker/anatomy/positioner.d.ts +2 -2
  46. package/dist/components/date-picker/anatomy/preset-trigger.d.ts +2 -2
  47. package/dist/components/date-picker/anatomy/prev-trigger.d.ts +2 -2
  48. package/dist/components/date-picker/anatomy/range-text.d.ts +2 -2
  49. package/dist/components/date-picker/anatomy/root-provider.d.ts +2 -2
  50. package/dist/components/date-picker/anatomy/root.d.ts +2 -2
  51. package/dist/components/date-picker/anatomy/table-body.d.ts +2 -2
  52. package/dist/components/date-picker/anatomy/table-cell-trigger.d.ts +2 -2
  53. package/dist/components/date-picker/anatomy/table-cell.d.ts +2 -2
  54. package/dist/components/date-picker/anatomy/table-head.d.ts +2 -2
  55. package/dist/components/date-picker/anatomy/table-header.d.ts +2 -2
  56. package/dist/components/date-picker/anatomy/table-row.d.ts +2 -2
  57. package/dist/components/date-picker/anatomy/table.d.ts +2 -2
  58. package/dist/components/date-picker/anatomy/trigger.d.ts +2 -2
  59. package/dist/components/date-picker/anatomy/view-control.d.ts +2 -2
  60. package/dist/components/date-picker/anatomy/view-trigger.d.ts +2 -2
  61. package/dist/components/date-picker/anatomy/view.d.ts +2 -2
  62. package/dist/components/date-picker/anatomy/year-select.d.ts +2 -2
  63. package/dist/components/date-picker/modules/provider.js +2 -3
  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/dialog/modules/provider.js +2 -3
  74. package/dist/components/file-upload/anatomy/dropzone.d.ts +2 -2
  75. package/dist/components/file-upload/anatomy/hidden-input.d.ts +2 -2
  76. package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +2 -2
  77. package/dist/components/file-upload/anatomy/item-group.d.ts +2 -2
  78. package/dist/components/file-upload/anatomy/item-name.d.ts +2 -2
  79. package/dist/components/file-upload/anatomy/item-size-text.d.ts +2 -2
  80. package/dist/components/file-upload/anatomy/item.d.ts +2 -2
  81. package/dist/components/file-upload/anatomy/label.d.ts +2 -2
  82. package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
  83. package/dist/components/file-upload/anatomy/root.d.ts +2 -2
  84. package/dist/components/file-upload/anatomy/trigger.d.ts +2 -2
  85. package/dist/components/file-upload/modules/provider.js +2 -3
  86. package/dist/components/listbox/anatomy/content.d.ts +2 -2
  87. package/dist/components/listbox/anatomy/input.d.ts +2 -2
  88. package/dist/components/listbox/anatomy/item-group-label.d.ts +2 -2
  89. package/dist/components/listbox/anatomy/item-group-label.js +1 -2
  90. package/dist/components/listbox/anatomy/item-group.d.ts +2 -2
  91. package/dist/components/listbox/anatomy/item-indicator.d.ts +2 -2
  92. package/dist/components/listbox/anatomy/item-text.d.ts +2 -2
  93. package/dist/components/listbox/anatomy/item.d.ts +2 -2
  94. package/dist/components/listbox/anatomy/label.d.ts +2 -2
  95. package/dist/components/listbox/anatomy/root-provider.d.ts +2 -2
  96. package/dist/components/listbox/anatomy/root.d.ts +2 -2
  97. package/dist/components/listbox/modules/provider.js +2 -3
  98. package/dist/components/navigation/anatomy/content.d.ts +2 -2
  99. package/dist/components/navigation/anatomy/footer.d.ts +2 -2
  100. package/dist/components/navigation/anatomy/group.d.ts +2 -2
  101. package/dist/components/navigation/anatomy/header.d.ts +2 -2
  102. package/dist/components/navigation/anatomy/label.d.ts +2 -2
  103. package/dist/components/navigation/anatomy/menu.d.ts +2 -2
  104. package/dist/components/navigation/anatomy/root.d.ts +2 -2
  105. package/dist/components/pagination/anatomy/ellipsis.d.ts +2 -2
  106. package/dist/components/pagination/anatomy/item.d.ts +2 -2
  107. package/dist/components/pagination/anatomy/next-trigger.d.ts +2 -2
  108. package/dist/components/pagination/anatomy/prev-trigger.d.ts +2 -2
  109. package/dist/components/pagination/anatomy/root-provider.d.ts +2 -2
  110. package/dist/components/pagination/anatomy/root.d.ts +2 -2
  111. package/dist/components/pagination/modules/provider.js +2 -3
  112. package/dist/components/popover/anatomy/arrow-tip.d.ts +2 -2
  113. package/dist/components/popover/anatomy/arrow.d.ts +2 -2
  114. package/dist/components/popover/anatomy/close-trigger.d.ts +2 -2
  115. package/dist/components/popover/anatomy/content.d.ts +2 -2
  116. package/dist/components/popover/anatomy/description.d.ts +2 -2
  117. package/dist/components/popover/anatomy/positioner.d.ts +2 -2
  118. package/dist/components/popover/anatomy/root-provider.d.ts +2 -2
  119. package/dist/components/popover/anatomy/root.d.ts +2 -2
  120. package/dist/components/popover/anatomy/title.d.ts +2 -2
  121. package/dist/components/popover/anatomy/trigger.d.ts +2 -2
  122. package/dist/components/popover/modules/provider.js +2 -3
  123. package/dist/components/portal/anatomy/root.d.ts +2 -2
  124. package/dist/components/progress/anatomy/circle-range.d.ts +2 -2
  125. package/dist/components/progress/anatomy/circle-track.d.ts +2 -2
  126. package/dist/components/progress/anatomy/circle.d.ts +2 -2
  127. package/dist/components/progress/anatomy/label.d.ts +2 -2
  128. package/dist/components/progress/anatomy/range.d.ts +2 -2
  129. package/dist/components/progress/anatomy/root-provider.d.ts +2 -2
  130. package/dist/components/progress/anatomy/root.d.ts +2 -2
  131. package/dist/components/progress/anatomy/track.d.ts +2 -2
  132. package/dist/components/progress/anatomy/value-text.d.ts +2 -2
  133. package/dist/components/progress/modules/provider.js +2 -3
  134. package/dist/components/rating-group/anatomy/control.d.ts +2 -2
  135. package/dist/components/rating-group/anatomy/hidden-input.d.ts +2 -2
  136. package/dist/components/rating-group/anatomy/item.d.ts +2 -2
  137. package/dist/components/rating-group/anatomy/label.d.ts +2 -2
  138. package/dist/components/rating-group/anatomy/root-provider.d.ts +2 -2
  139. package/dist/components/rating-group/anatomy/root.d.ts +2 -2
  140. package/dist/components/rating-group/modules/provider.js +2 -3
  141. package/dist/components/segmented-control/anatomy/control.d.ts +2 -2
  142. package/dist/components/segmented-control/anatomy/indicator.d.ts +2 -2
  143. package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +2 -2
  144. package/dist/components/segmented-control/anatomy/item-text.d.ts +2 -2
  145. package/dist/components/segmented-control/anatomy/item.d.ts +2 -2
  146. package/dist/components/segmented-control/anatomy/label.d.ts +2 -2
  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/provider.js +2 -3
  150. package/dist/components/slider/anatomy/control.d.ts +2 -2
  151. package/dist/components/slider/anatomy/hidden-input.d.ts +2 -2
  152. package/dist/components/slider/anatomy/label.d.ts +2 -2
  153. package/dist/components/slider/anatomy/marker-group.d.ts +2 -2
  154. package/dist/components/slider/anatomy/marker.d.ts +2 -2
  155. package/dist/components/slider/anatomy/range.d.ts +2 -2
  156. package/dist/components/slider/anatomy/root-provider.d.ts +2 -2
  157. package/dist/components/slider/anatomy/root.d.ts +2 -2
  158. package/dist/components/slider/anatomy/thumb.d.ts +2 -2
  159. package/dist/components/slider/anatomy/track.d.ts +2 -2
  160. package/dist/components/slider/anatomy/value-text.d.ts +2 -2
  161. package/dist/components/slider/modules/provider.js +2 -3
  162. package/dist/components/switch/anatomy/control.d.ts +2 -2
  163. package/dist/components/switch/anatomy/hidden-input.d.ts +2 -2
  164. package/dist/components/switch/anatomy/label.d.ts +2 -2
  165. package/dist/components/switch/anatomy/root-provider.d.ts +2 -2
  166. package/dist/components/switch/anatomy/root.d.ts +2 -2
  167. package/dist/components/switch/anatomy/thumb.d.ts +2 -2
  168. package/dist/components/switch/modules/provider.js +2 -3
  169. package/dist/components/tabs/anatomy/content.d.ts +2 -2
  170. package/dist/components/tabs/anatomy/indicator.d.ts +2 -2
  171. package/dist/components/tabs/anatomy/list.d.ts +2 -2
  172. package/dist/components/tabs/anatomy/root-provider.d.ts +2 -2
  173. package/dist/components/tabs/anatomy/root.d.ts +2 -2
  174. package/dist/components/tabs/anatomy/trigger.d.ts +2 -2
  175. package/dist/components/tabs/modules/provider.js +2 -3
  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/tags-input/modules/provider.js +2 -3
  189. package/dist/components/toast/anatomy/action-trigger.d.ts +2 -2
  190. package/dist/components/toast/anatomy/close-trigger.d.ts +2 -2
  191. package/dist/components/toast/anatomy/description.d.ts +2 -2
  192. package/dist/components/toast/anatomy/group.d.ts +2 -2
  193. package/dist/components/toast/anatomy/message.d.ts +2 -2
  194. package/dist/components/toast/anatomy/root.d.ts +2 -2
  195. package/dist/components/toast/anatomy/root.js +2 -3
  196. package/dist/components/toast/anatomy/title.d.ts +2 -2
  197. package/dist/components/toggle-group/anatomy/item.d.ts +11 -0
  198. package/dist/components/toggle-group/anatomy/item.js +22 -0
  199. package/dist/components/toggle-group/anatomy/root-context.d.ts +11 -0
  200. package/dist/components/toggle-group/anatomy/root-context.js +13 -0
  201. package/dist/components/toggle-group/anatomy/root-provider.d.ts +13 -0
  202. package/dist/components/toggle-group/anatomy/root-provider.js +21 -0
  203. package/dist/components/toggle-group/anatomy/root.d.ts +11 -0
  204. package/dist/components/toggle-group/anatomy/root.js +25 -0
  205. package/dist/components/toggle-group/modules/anatomy.d.ts +14 -0
  206. package/dist/components/toggle-group/modules/anatomy.js +15 -0
  207. package/dist/components/toggle-group/modules/provider.d.ts +8 -0
  208. package/dist/components/toggle-group/modules/provider.js +15 -0
  209. package/dist/components/toggle-group/modules/root-context.js +8 -0
  210. package/dist/components/tooltip/anatomy/arrow-tip.d.ts +2 -2
  211. package/dist/components/tooltip/anatomy/arrow.d.ts +2 -2
  212. package/dist/components/tooltip/anatomy/content.d.ts +2 -2
  213. package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
  214. package/dist/components/tooltip/anatomy/root-provider.d.ts +2 -2
  215. package/dist/components/tooltip/anatomy/root.d.ts +2 -2
  216. package/dist/components/tooltip/anatomy/trigger.d.ts +2 -2
  217. package/dist/components/tooltip/modules/provider.js +2 -3
  218. package/dist/components/tree-view/anatomy/branch-content.d.ts +2 -2
  219. package/dist/components/tree-view/anatomy/branch-control.d.ts +2 -2
  220. package/dist/components/tree-view/anatomy/branch-indent-guide.d.ts +2 -2
  221. package/dist/components/tree-view/anatomy/branch-indicator.d.ts +2 -2
  222. package/dist/components/tree-view/anatomy/branch-text.d.ts +2 -2
  223. package/dist/components/tree-view/anatomy/branch.d.ts +2 -2
  224. package/dist/components/tree-view/anatomy/item.d.ts +2 -2
  225. package/dist/components/tree-view/anatomy/label.d.ts +2 -2
  226. package/dist/components/tree-view/anatomy/node-provider.d.ts +2 -2
  227. package/dist/components/tree-view/anatomy/root-provider.d.ts +2 -2
  228. package/dist/components/tree-view/anatomy/root.d.ts +2 -2
  229. package/dist/components/tree-view/anatomy/tree.d.ts +2 -2
  230. package/dist/components/tree-view/modules/provider.js +2 -3
  231. package/dist/index.d.ts +7 -1
  232. package/dist/index.js +3 -1
  233. package/dist/internal/components/calendar.js +11 -12
  234. package/dist/internal/components/check.js +11 -12
  235. package/dist/internal/components/chevron-down.js +11 -12
  236. package/dist/internal/components/chevron-left.js +11 -12
  237. package/dist/internal/components/chevron-right.js +11 -12
  238. package/dist/internal/components/star-empty.js +9 -10
  239. package/dist/internal/components/star-full.js +7 -8
  240. package/dist/internal/components/star-half.js +9 -10
  241. package/dist/internal/components/x.js +11 -12
  242. package/package.json +4 -3
@@ -0,0 +1,25 @@
1
+ import { RootContext } from "../modules/root-context.js";
2
+ import { useToggleGroup } from "../modules/provider.js";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesToggleGroup } from "@skeletonlabs/skeleton-common";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { splitProps } from "@zag-js/toggle-group";
7
+
8
+ //#region src/components/toggle-group/anatomy/root.tsx
9
+ function ToggleGroupRoot(props) {
10
+ const [toggleGroupProps, componentProps] = splitProps(props);
11
+ const { element, children,...rest } = componentProps;
12
+ const toggleGroup = useToggleGroup(toggleGroupProps);
13
+ const attributes = mergeProps(toggleGroup.getRootProps(), { className: classesToggleGroup.root }, rest);
14
+ return /* @__PURE__ */ jsx(RootContext.Provider, {
15
+ value: toggleGroup,
16
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
17
+ ...attributes,
18
+ children
19
+ })
20
+ });
21
+ }
22
+
23
+ //#endregion
24
+ export { ToggleGroupRoot as default };
25
+ //# sourceMappingURL=root.js.map
@@ -0,0 +1,14 @@
1
+ import { Item } from "../anatomy/item.js";
2
+ import { ToggleGroupRoot } from "../anatomy/root.js";
3
+ import { RootContext } from "../anatomy/root-context.js";
4
+ import { ToggleGroupRootProvider } from "../anatomy/root-provider.js";
5
+
6
+ //#region src/components/toggle-group/modules/anatomy.d.ts
7
+ declare const ToggleGroup: typeof ToggleGroupRoot & {
8
+ Provider: typeof ToggleGroupRootProvider;
9
+ Context: typeof RootContext;
10
+ Item: typeof Item;
11
+ };
12
+ //#endregion
13
+ export { ToggleGroup };
14
+ //# sourceMappingURL=anatomy.d.ts.map
@@ -0,0 +1,15 @@
1
+ import Item from "../anatomy/item.js";
2
+ import ToggleGroupRoot from "../anatomy/root.js";
3
+ import RootContext from "../anatomy/root-context.js";
4
+ import ToggleGroupRootProvider from "../anatomy/root-provider.js";
5
+
6
+ //#region src/components/toggle-group/modules/anatomy.ts
7
+ const ToggleGroup = Object.assign(ToggleGroupRoot, {
8
+ Provider: ToggleGroupRootProvider,
9
+ Context: RootContext,
10
+ Item
11
+ });
12
+
13
+ //#endregion
14
+ export { ToggleGroup };
15
+ //# sourceMappingURL=anatomy.js.map
@@ -0,0 +1,8 @@
1
+ import { PropTypes } from "@zag-js/react";
2
+ import { Api, Props } from "@zag-js/toggle-group";
3
+
4
+ //#region src/components/toggle-group/modules/provider.d.ts
5
+ declare function useToggleGroup(props?: Omit<Props, 'id'>): Api<PropTypes>;
6
+ //#endregion
7
+ export { useToggleGroup };
8
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { useId } from "react";
2
+ import { normalizeProps, useMachine } from "@zag-js/react";
3
+ import { connect, machine } from "@zag-js/toggle-group";
4
+
5
+ //#region src/components/toggle-group/modules/provider.ts
6
+ function useToggleGroup(props = {}) {
7
+ return connect(useMachine(machine, {
8
+ id: useId(),
9
+ ...props
10
+ }), normalizeProps);
11
+ }
12
+
13
+ //#endregion
14
+ export { useToggleGroup };
15
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1,8 @@
1
+ import { createContext } from "../../../internal/create-context.js";
2
+
3
+ //#region src/components/toggle-group/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 react_jsx_runtime106 from "react/jsx-runtime";
3
+ import * as react128 from "react";
4
4
 
5
5
  //#region src/components/tooltip/anatomy/arrow-tip.d.ts
6
6
  interface TooltipArrowTipProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function ArrowTip(props: TooltipArrowTipProps): react_jsx_runtime106.JSX.Element;
7
+ declare function ArrowTip(props: TooltipArrowTipProps): react128.JSX.Element;
8
8
  //#endregion
9
9
  export { ArrowTip, TooltipArrowTipProps };
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 react_jsx_runtime105 from "react/jsx-runtime";
3
+ import * as react127 from "react";
4
4
 
5
5
  //#region src/components/tooltip/anatomy/arrow.d.ts
6
6
  interface TooltipArrowProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Arrow(props: TooltipArrowProps): react_jsx_runtime105.JSX.Element;
7
+ declare function Arrow(props: TooltipArrowProps): react127.JSX.Element;
8
8
  //#endregion
9
9
  export { Arrow, TooltipArrowProps };
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 react_jsx_runtime107 from "react/jsx-runtime";
3
+ import * as react129 from "react";
4
4
 
5
5
  //#region src/components/tooltip/anatomy/content.d.ts
6
6
  interface TooltipContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Content(props: TooltipContentProps): react_jsx_runtime107.JSX.Element;
7
+ declare function Content(props: TooltipContentProps): react129.JSX.Element;
8
8
  //#endregion
9
9
  export { Content, TooltipContentProps };
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 react_jsx_runtime108 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime50 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/tooltip/anatomy/positioner.d.ts
6
6
  interface TooltipPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Positioner(props: TooltipPositionerProps): react_jsx_runtime108.JSX.Element;
7
+ declare function Positioner(props: TooltipPositionerProps): react_jsx_runtime50.JSX.Element;
8
8
  //#endregion
9
9
  export { Positioner, TooltipPositionerProps };
10
10
  //# sourceMappingURL=positioner.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { useTooltip } from "../modules/provider.js";
2
2
  import { PropsWithChildren } from "react";
3
- import * as react_jsx_runtime110 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime52 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/tooltip/anatomy/root-provider.d.ts
6
6
  interface TooltipRootProviderProps extends PropsWithChildren {
7
7
  value: ReturnType<typeof useTooltip>;
8
8
  }
9
- declare function RootProvider(props: TooltipRootProviderProps): react_jsx_runtime110.JSX.Element;
9
+ declare function RootProvider(props: TooltipRootProviderProps): react_jsx_runtime52.JSX.Element;
10
10
  //#endregion
11
11
  export { RootProvider, TooltipRootProviderProps };
12
12
  //# sourceMappingURL=root-provider.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { PropsWithChildren } from "react";
2
- import * as react_jsx_runtime109 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime51 from "react/jsx-runtime";
3
3
  import { Props } from "@zag-js/tooltip";
4
4
 
5
5
  //#region src/components/tooltip/anatomy/root.d.ts
6
6
  interface TooltipRootProps extends PropsWithChildren, Omit<Props, 'id'> {}
7
- declare function Root(props: TooltipRootProps): react_jsx_runtime109.JSX.Element;
7
+ declare function Root(props: TooltipRootProps): react_jsx_runtime51.JSX.Element;
8
8
  //#endregion
9
9
  export { Root, TooltipRootProps };
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 react_jsx_runtime111 from "react/jsx-runtime";
3
+ import * as react130 from "react";
4
4
 
5
5
  //#region src/components/tooltip/anatomy/trigger.d.ts
6
6
  interface TooltipTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function Trigger(props: TooltipTriggerProps): react_jsx_runtime111.JSX.Element;
7
+ declare function Trigger(props: TooltipTriggerProps): react130.JSX.Element;
8
8
  //#endregion
9
9
  export { TooltipTriggerProps, Trigger };
10
10
  //# sourceMappingURL=trigger.d.ts.map
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/tooltip";
4
4
 
5
5
  //#region src/components/tooltip/modules/provider.ts
6
6
  function useTooltip(props = {}) {
7
- const service = useMachine(machine, {
7
+ return connect(useMachine(machine, {
8
8
  id: useId(),
9
9
  ...props
10
- });
11
- return connect(service, normalizeProps);
10
+ }), normalizeProps);
12
11
  }
13
12
 
14
13
  //#endregion
@@ -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 react_jsx_runtime191 from "react/jsx-runtime";
3
+ import * as react137 from "react";
4
4
 
5
5
  //#region src/components/tree-view/anatomy/branch-content.d.ts
6
6
  interface TreeViewBranchContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function BranchContent(props: TreeViewBranchContentProps): react_jsx_runtime191.JSX.Element;
7
+ declare function BranchContent(props: TreeViewBranchContentProps): react137.JSX.Element;
8
8
  //#endregion
9
9
  export { BranchContent, TreeViewBranchContentProps };
10
10
  //# sourceMappingURL=branch-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 react_jsx_runtime188 from "react/jsx-runtime";
3
+ import * as react134 from "react";
4
4
 
5
5
  //#region src/components/tree-view/anatomy/branch-control.d.ts
6
6
  interface TreeViewBranchControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function BranchControl(props: TreeViewBranchControlProps): react_jsx_runtime188.JSX.Element;
7
+ declare function BranchControl(props: TreeViewBranchControlProps): react134.JSX.Element;
8
8
  //#endregion
9
9
  export { BranchControl, TreeViewBranchControlProps };
10
10
  //# sourceMappingURL=branch-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 react_jsx_runtime192 from "react/jsx-runtime";
3
+ import * as react138 from "react";
4
4
 
5
5
  //#region src/components/tree-view/anatomy/branch-indent-guide.d.ts
6
6
  interface TreeViewBranchIndentGuideProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function BranchIndentGuide(props: TreeViewBranchIndentGuideProps): react_jsx_runtime192.JSX.Element;
7
+ declare function BranchIndentGuide(props: TreeViewBranchIndentGuideProps): react138.JSX.Element;
8
8
  //#endregion
9
9
  export { BranchIndentGuide, TreeViewBranchIndentGuideProps };
10
10
  //# sourceMappingURL=branch-indent-guide.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 react_jsx_runtime190 from "react/jsx-runtime";
3
+ import * as react136 from "react";
4
4
 
5
5
  //#region src/components/tree-view/anatomy/branch-indicator.d.ts
6
6
  interface TreeViewBranchIndicatorProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
7
- declare function BranchIndicator(props: TreeViewBranchIndicatorProps): react_jsx_runtime190.JSX.Element;
7
+ declare function BranchIndicator(props: TreeViewBranchIndicatorProps): react136.JSX.Element;
8
8
  //#endregion
9
9
  export { BranchIndicator, TreeViewBranchIndicatorProps };
10
10
  //# sourceMappingURL=branch-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 react_jsx_runtime189 from "react/jsx-runtime";
3
+ import * as react135 from "react";
4
4
 
5
5
  //#region src/components/tree-view/anatomy/branch-text.d.ts
6
6
  interface TreeViewBranchTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
7
- declare function BranchText(props: TreeViewBranchTextProps): react_jsx_runtime189.JSX.Element;
7
+ declare function BranchText(props: TreeViewBranchTextProps): react135.JSX.Element;
8
8
  //#endregion
9
9
  export { BranchText, TreeViewBranchTextProps };
10
10
  //# sourceMappingURL=branch-text.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 react_jsx_runtime187 from "react/jsx-runtime";
3
+ import * as react133 from "react";
4
4
 
5
5
  //#region src/components/tree-view/anatomy/branch.d.ts
6
6
  interface TreeViewBranchProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Branch(props: TreeViewBranchProps): react_jsx_runtime187.JSX.Element;
7
+ declare function Branch(props: TreeViewBranchProps): react133.JSX.Element;
8
8
  //#endregion
9
9
  export { Branch, TreeViewBranchProps };
10
10
  //# sourceMappingURL=branch.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 react_jsx_runtime186 from "react/jsx-runtime";
3
+ import * as react132 from "react";
4
4
 
5
5
  //#region src/components/tree-view/anatomy/item.d.ts
6
6
  interface TreeViewItemProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Item(props: TreeViewItemProps): react_jsx_runtime186.JSX.Element;
7
+ declare function Item(props: TreeViewItemProps): react132.JSX.Element;
8
8
  //#endregion
9
9
  export { Item, TreeViewItemProps };
10
10
  //# sourceMappingURL=item.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 react_jsx_runtime170 from "react/jsx-runtime";
3
+ import { JSX } from "react";
4
4
 
5
5
  //#region src/components/tree-view/anatomy/label.d.ts
6
6
  interface TreeViewLabelProps extends PropsWithElement<'h3'>, HTMLAttributes<'h3'> {
@@ -11,7 +11,7 @@ interface TreeViewLabelProps extends PropsWithElement<'h3'>, HTMLAttributes<'h3'
11
11
  */
12
12
  level?: 1 | 2 | 3 | 4 | 5 | 6;
13
13
  }
14
- declare function Label(props: TreeViewLabelProps): react_jsx_runtime170.JSX.Element;
14
+ declare function Label(props: TreeViewLabelProps): JSX.Element;
15
15
  //#endregion
16
16
  export { Label, TreeViewLabelProps };
17
17
  //# sourceMappingURL=label.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { PropsWithChildren } from "react";
2
- import * as react_jsx_runtime193 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime55 from "react/jsx-runtime";
3
3
  import { NodeProps } from "@zag-js/tree-view";
4
4
 
5
5
  //#region src/components/tree-view/anatomy/node-provider.d.ts
6
6
  interface TreeViewNodeProviderProps extends PropsWithChildren {
7
7
  value: NodeProps;
8
8
  }
9
- declare function NodeProvider(props: TreeViewNodeProviderProps): react_jsx_runtime193.JSX.Element;
9
+ declare function NodeProvider(props: TreeViewNodeProviderProps): react_jsx_runtime55.JSX.Element;
10
10
  //#endregion
11
11
  export { NodeProvider, TreeViewNodeProviderProps };
12
12
  //# sourceMappingURL=node-provider.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 { useTreeView } from "../modules/provider.js";
4
- import * as react_jsx_runtime184 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime54 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/tree-view/anatomy/root-provider.d.ts
7
7
  interface TreeViewRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
8
8
  value: ReturnType<typeof useTreeView>;
9
9
  }
10
- declare function RootProvider(props: TreeViewRootProviderProps): react_jsx_runtime184.JSX.Element;
10
+ declare function RootProvider(props: TreeViewRootProviderProps): react_jsx_runtime54.JSX.Element;
11
11
  //#endregion
12
12
  export { RootProvider, TreeViewRootProviderProps };
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_runtime183 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime53 from "react/jsx-runtime";
4
4
  import { Props } from "@zag-js/tree-view";
5
5
 
6
6
  //#region src/components/tree-view/anatomy/root.d.ts
7
7
  interface TreeViewRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
8
- declare function Root(props: TreeViewRootProps): react_jsx_runtime183.JSX.Element;
8
+ declare function Root(props: TreeViewRootProps): react_jsx_runtime53.JSX.Element;
9
9
  //#endregion
10
10
  export { Root, TreeViewRootProps };
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 react_jsx_runtime185 from "react/jsx-runtime";
3
+ import * as react131 from "react";
4
4
 
5
5
  //#region src/components/tree-view/anatomy/tree.d.ts
6
6
  interface TreeViewTreeProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Tree(props: TreeViewTreeProps): react_jsx_runtime185.JSX.Element;
7
+ declare function Tree(props: TreeViewTreeProps): react131.JSX.Element;
8
8
  //#endregion
9
9
  export { Tree, TreeViewTreeProps };
10
10
  //# sourceMappingURL=tree.d.ts.map
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/tree-view";
4
4
 
5
5
  //#region src/components/tree-view/modules/provider.ts
6
6
  function useTreeView(props = {}) {
7
- const service = useMachine(machine, {
7
+ return connect(useMachine(machine, {
8
8
  id: useId(),
9
9
  ...props
10
- });
11
- return connect(service, normalizeProps);
10
+ }), normalizeProps);
12
11
  }
13
12
 
14
13
  //#endregion
package/dist/index.d.ts CHANGED
@@ -232,6 +232,12 @@ import { ToastTitleProps } from "./components/toast/anatomy/title.js";
232
232
  import { ToastActionTriggerProps } from "./components/toast/anatomy/action-trigger.js";
233
233
  import { Toast } from "./components/toast/modules/anatomy.js";
234
234
  import { createToaster } from "./components/toast/index.js";
235
+ import { ToggleGroupItemProps } from "./components/toggle-group/anatomy/item.js";
236
+ import { ToggleGroupRootProps } from "./components/toggle-group/anatomy/root.js";
237
+ import { useToggleGroup } from "./components/toggle-group/modules/provider.js";
238
+ import { ToggleGroupRootContextProps } from "./components/toggle-group/anatomy/root-context.js";
239
+ import { ToggleGroupRootProviderProps } from "./components/toggle-group/anatomy/root-provider.js";
240
+ import { ToggleGroup } from "./components/toggle-group/modules/anatomy.js";
235
241
  import { TooltipArrowProps } from "./components/tooltip/anatomy/arrow.js";
236
242
  import { TooltipArrowTipProps } from "./components/tooltip/anatomy/arrow-tip.js";
237
243
  import { TooltipContentProps } from "./components/tooltip/anatomy/content.js";
@@ -259,4 +265,4 @@ import { TreeViewTreeProps } from "./components/tree-view/anatomy/tree.js";
259
265
  import { TreeView } from "./components/tree-view/modules/anatomy.js";
260
266
  import { createTreeViewCollection } from "./components/tree-view/modules/create-tree-view-collection.js";
261
267
  import { useListCollection } from "./hooks/use-list-collection.js";
262
- export { Accordion, AccordionItemContentProps, AccordionItemIndicatorProps, AccordionItemProps, AccordionItemTriggerProps, AccordionRootContextProps, AccordionRootProps, AccordionRootProviderProps, AppBar, AppBarHeadlineProps, AppBarLeadProps, AppBarRootProps, AppBarToolbarProps, AppBarTrailProps, Avatar, AvatarFallbackProps, AvatarImageProps, AvatarRootContextProps, AvatarRootProps, AvatarRootProviderProps, Collapsible, CollapsibleContentProps, CollapsibleIndicatorProps, CollapsibleRootContextProps, CollapsibleRootProps, CollapsibleRootProviderProps, CollapsibleTriggerProps, Combobox, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemIndicatorProps, ComboboxItemProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxPositionerProps, ComboboxRootContextProps, ComboboxRootProps, ComboboxRootProviderProps, ComboboxTriggerProps, DatePicker, DatePickerContentProps, DatePickerControlProps, DatePickerInputProps, DatePickerLabelProps, DatePickerMonthSelectProps, DatePickerNextTriggerProps, DatePickerPositionerProps, DatePickerPresetTriggerProps, DatePickerPrevTriggerProps, DatePickerRangeTextProps, DatePickerRootContextProps, DatePickerRootProps, DatePickerRootProviderProps, DatePickerTableBodyProps, DatePickerTableCellProps, DatePickerTableCellTriggerProps, DatePickerTableHeadProps, DatePickerTableHeaderProps, DatePickerTableProps, DatePickerTableRowProps, DatePickerTriggerProps, DatePickerViewControlProps, DatePickerViewProps, DatePickerViewTriggerProps, DatePickerYearSelectProps, DateValue, Dialog, DialogBackdropProps, DialogCloseTriggerProps, DialogContentProps, DialogDescriptionProps, DialogPositionerProps, DialogRootContextProps, DialogRootProps, DialogRootProviderProps, DialogTitleProps, DialogTriggerProps, FileUpload, FileUploadDropzoneProps, FileUploadHiddenInputProps, FileUploadItemDeleteTriggerProps, FileUploadItemGroupProps, FileUploadItemNameProps, FileUploadItemProps, FileUploadItemSizeTextProps, FileUploadLabelProps, FileUploadRootContextProps, FileUploadRootProps, FileUploadRootProviderProps, FileUploadTriggerProps, Listbox, ListboxContentProps, ListboxInputProps, ListboxItemGroupLabelProps, ListboxItemGroupProps, ListboxItemIndicatorProps, ListboxItemProps, ListboxItemTextProps, ListboxLabelProps, ListboxRootContextProps, ListboxRootProps, ListboxRootProviderProps, Navigation, NavigationContentProps, NavigationFooterProps, NavigationGroupProps, NavigationHeaderProps, NavigationLabelProps, NavigationMenuProps, NavigationRootProps, Pagination, PaginationEllipsisProps, PaginationItemProps, PaginationNextTriggerProps, PaginationPrevTriggerProps, PaginationRootContextProps, PaginationRootProps, PaginationRootProviderProps, Popover, PopoverArrowProps, PopoverArrowTipProps, PopoverCloseTriggerProps, PopoverContentProps, PopoverDescriptionProps, PopoverPositionerProps, PopoverRootContextProps, PopoverRootProps, PopoverRootProviderProps, PopoverTitleProps, PopoverTriggerProps, Portal, PortalRootProps, Progress, ProgressCircleProps, ProgressCircleRangeProps, ProgressCircleTrackProps, ProgressLabelProps, ProgressRangeProps, ProgressRootContextProps, ProgressRootProps, ProgressRootProviderProps, ProgressTrackProps, ProgressValueTextProps, RatingGroup, RatingGroupControlProps, RatingGroupHiddenInputProps, RatingGroupItemProps, RatingGroupLabelProps, RatingGroupRootContextProps, RatingGroupRootProps, RatingGroupRootProviderProps, SegmentedControl, SegmentedControlControlProps, SegmentedControlIndicatorProps, SegmentedControlItemHiddenInputProps, SegmentedControlItemProps, SegmentedControlItemTextProps, SegmentedControlLabelProps, SegmentedControlRootContextProps, SegmentedControlRootProps, SegmentedControlRootProviderProps, Slider, SliderControlProps, SliderHiddenInputProps, SliderLabelProps, SliderMarkerGroupProps, SliderMarkerProps, SliderRangeProps, SliderRootContextProps, SliderRootProps, SliderRootProviderProps, SliderThumbProps, SliderTrackProps, SliderValueTextProps, Switch, SwitchControlProps, SwitchHiddenInputProps, SwitchLabelProps, SwitchRootContextProps, SwitchRootProps, SwitchRootProviderProps, SwitchThumbProps, Tabs, TabsContentProps, TabsIndicatorProps, TabsListProps, TabsRootContextProps, TabsRootProps, TabsRootProviderProps, TabsTriggerProps, TagsInput, TagsInputClearTriggerProps, TagsInputControlProps, TagsInputHiddenInputProps, TagsInputInputProps, TagsInputItemDeleteTriggerProps, TagsInputItemInputProps, TagsInputItemPreviewProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputLabelProps, TagsInputRootContextProps, TagsInputRootProps, TagsInputRootProviderProps, Toast, ToastActionTriggerProps, ToastCloseTriggerProps, ToastDescriptionProps, ToastGroupProps, ToastMessageProps, ToastRootContextProps, ToastRootProps, ToastTitleProps, Tooltip, TooltipArrowProps, TooltipArrowTipProps, TooltipContentProps, TooltipPositionerProps, TooltipRootContextProps, TooltipRootProps, TooltipRootProviderProps, TooltipTriggerProps, TreeView, TreeViewBranchContentProps, TreeViewBranchControlProps, TreeViewBranchIndentGuideProps, TreeViewBranchIndicatorProps, TreeViewBranchProps, TreeViewBranchTextProps, TreeViewItemProps, TreeViewLabelProps, TreeViewNodeProviderProps, TreeViewRootContextProps, TreeViewRootProps, TreeViewRootProviderProps, TreeViewTreeProps, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useListCollection, useListbox, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useTooltip, useTreeView };
268
+ export { Accordion, AccordionItemContentProps, AccordionItemIndicatorProps, AccordionItemProps, AccordionItemTriggerProps, AccordionRootContextProps, AccordionRootProps, AccordionRootProviderProps, AppBar, AppBarHeadlineProps, AppBarLeadProps, AppBarRootProps, AppBarToolbarProps, AppBarTrailProps, Avatar, AvatarFallbackProps, AvatarImageProps, AvatarRootContextProps, AvatarRootProps, AvatarRootProviderProps, Collapsible, CollapsibleContentProps, CollapsibleIndicatorProps, CollapsibleRootContextProps, CollapsibleRootProps, CollapsibleRootProviderProps, CollapsibleTriggerProps, Combobox, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemIndicatorProps, ComboboxItemProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxPositionerProps, ComboboxRootContextProps, ComboboxRootProps, ComboboxRootProviderProps, ComboboxTriggerProps, DatePicker, DatePickerContentProps, DatePickerControlProps, DatePickerInputProps, DatePickerLabelProps, DatePickerMonthSelectProps, DatePickerNextTriggerProps, DatePickerPositionerProps, DatePickerPresetTriggerProps, DatePickerPrevTriggerProps, DatePickerRangeTextProps, DatePickerRootContextProps, DatePickerRootProps, DatePickerRootProviderProps, DatePickerTableBodyProps, DatePickerTableCellProps, DatePickerTableCellTriggerProps, DatePickerTableHeadProps, DatePickerTableHeaderProps, DatePickerTableProps, DatePickerTableRowProps, DatePickerTriggerProps, DatePickerViewControlProps, DatePickerViewProps, DatePickerViewTriggerProps, DatePickerYearSelectProps, DateValue, Dialog, DialogBackdropProps, DialogCloseTriggerProps, DialogContentProps, DialogDescriptionProps, DialogPositionerProps, DialogRootContextProps, DialogRootProps, DialogRootProviderProps, DialogTitleProps, DialogTriggerProps, FileUpload, FileUploadDropzoneProps, FileUploadHiddenInputProps, FileUploadItemDeleteTriggerProps, FileUploadItemGroupProps, FileUploadItemNameProps, FileUploadItemProps, FileUploadItemSizeTextProps, FileUploadLabelProps, FileUploadRootContextProps, FileUploadRootProps, FileUploadRootProviderProps, FileUploadTriggerProps, Listbox, ListboxContentProps, ListboxInputProps, ListboxItemGroupLabelProps, ListboxItemGroupProps, ListboxItemIndicatorProps, ListboxItemProps, ListboxItemTextProps, ListboxLabelProps, ListboxRootContextProps, ListboxRootProps, ListboxRootProviderProps, Navigation, NavigationContentProps, NavigationFooterProps, NavigationGroupProps, NavigationHeaderProps, NavigationLabelProps, NavigationMenuProps, NavigationRootProps, Pagination, PaginationEllipsisProps, PaginationItemProps, PaginationNextTriggerProps, PaginationPrevTriggerProps, PaginationRootContextProps, PaginationRootProps, PaginationRootProviderProps, Popover, PopoverArrowProps, PopoverArrowTipProps, PopoverCloseTriggerProps, PopoverContentProps, PopoverDescriptionProps, PopoverPositionerProps, PopoverRootContextProps, PopoverRootProps, PopoverRootProviderProps, PopoverTitleProps, PopoverTriggerProps, Portal, PortalRootProps, Progress, ProgressCircleProps, ProgressCircleRangeProps, ProgressCircleTrackProps, ProgressLabelProps, ProgressRangeProps, ProgressRootContextProps, ProgressRootProps, ProgressRootProviderProps, ProgressTrackProps, ProgressValueTextProps, RatingGroup, RatingGroupControlProps, RatingGroupHiddenInputProps, RatingGroupItemProps, RatingGroupLabelProps, RatingGroupRootContextProps, RatingGroupRootProps, RatingGroupRootProviderProps, SegmentedControl, SegmentedControlControlProps, SegmentedControlIndicatorProps, SegmentedControlItemHiddenInputProps, SegmentedControlItemProps, SegmentedControlItemTextProps, SegmentedControlLabelProps, SegmentedControlRootContextProps, SegmentedControlRootProps, SegmentedControlRootProviderProps, Slider, SliderControlProps, SliderHiddenInputProps, SliderLabelProps, SliderMarkerGroupProps, SliderMarkerProps, SliderRangeProps, SliderRootContextProps, SliderRootProps, SliderRootProviderProps, SliderThumbProps, SliderTrackProps, SliderValueTextProps, Switch, SwitchControlProps, SwitchHiddenInputProps, SwitchLabelProps, SwitchRootContextProps, SwitchRootProps, SwitchRootProviderProps, SwitchThumbProps, Tabs, TabsContentProps, TabsIndicatorProps, TabsListProps, TabsRootContextProps, TabsRootProps, TabsRootProviderProps, TabsTriggerProps, TagsInput, TagsInputClearTriggerProps, TagsInputControlProps, TagsInputHiddenInputProps, TagsInputInputProps, TagsInputItemDeleteTriggerProps, TagsInputItemInputProps, TagsInputItemPreviewProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputLabelProps, TagsInputRootContextProps, TagsInputRootProps, TagsInputRootProviderProps, Toast, ToastActionTriggerProps, ToastCloseTriggerProps, ToastDescriptionProps, ToastGroupProps, ToastMessageProps, ToastRootContextProps, ToastRootProps, ToastTitleProps, ToggleGroup, ToggleGroupItemProps, ToggleGroupRootContextProps, ToggleGroupRootProps, ToggleGroupRootProviderProps, Tooltip, TooltipArrowProps, TooltipArrowTipProps, TooltipContentProps, TooltipPositionerProps, TooltipRootContextProps, TooltipRootProps, TooltipRootProviderProps, TooltipTriggerProps, TreeView, TreeViewBranchContentProps, TreeViewBranchControlProps, TreeViewBranchIndentGuideProps, TreeViewBranchIndicatorProps, TreeViewBranchProps, TreeViewBranchTextProps, TreeViewItemProps, TreeViewLabelProps, TreeViewNodeProviderProps, TreeViewRootContextProps, TreeViewRootProps, TreeViewRootProviderProps, TreeViewTreeProps, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useListCollection, useListbox, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
package/dist/index.js CHANGED
@@ -38,6 +38,8 @@ import { useTagsInput } from "./components/tags-input/modules/provider.js";
38
38
  import { TagsInput } from "./components/tags-input/modules/anatomy.js";
39
39
  import { Toast } from "./components/toast/modules/anatomy.js";
40
40
  import { createToaster } from "./components/toast/index.js";
41
+ import { useToggleGroup } from "./components/toggle-group/modules/provider.js";
42
+ import { ToggleGroup } from "./components/toggle-group/modules/anatomy.js";
41
43
  import { useTooltip } from "./components/tooltip/modules/provider.js";
42
44
  import { Tooltip } from "./components/tooltip/modules/anatomy.js";
43
45
  import { useTreeView } from "./components/tree-view/modules/provider.js";
@@ -45,4 +47,4 @@ import { TreeView } from "./components/tree-view/modules/anatomy.js";
45
47
  import { createTreeViewCollection } from "./components/tree-view/modules/create-tree-view-collection.js";
46
48
  import { useListCollection } from "./hooks/use-list-collection.js";
47
49
 
48
- export { Accordion, AppBar, Avatar, Collapsible, Combobox, DatePicker, Dialog, FileUpload, Listbox, Navigation, Pagination, Popover, Portal, Progress, RatingGroup, SegmentedControl, Slider, Switch, Tabs, TagsInput, Toast, Tooltip, TreeView, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useListCollection, useListbox, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useTooltip, useTreeView };
50
+ export { Accordion, AppBar, Avatar, Collapsible, Combobox, DatePicker, Dialog, FileUpload, Listbox, Navigation, Pagination, Popover, Portal, Progress, RatingGroup, SegmentedControl, Slider, Switch, Tabs, TagsInput, Toast, ToggleGroup, Tooltip, TreeView, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useListCollection, useListbox, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
@@ -4,19 +4,18 @@ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/internal/components/calendar.tsx
5
5
  function Calendar(props) {
6
6
  const { ...rest } = props;
7
- const attributes = mergeProps({
8
- xmlns: "http://www.w3.org/2000/svg",
9
- width: "24",
10
- height: "24",
11
- viewBox: "0 0 24 24",
12
- fill: "none",
13
- stroke: "currentColor",
14
- strokeWidth: "2",
15
- strokeLinecap: "round",
16
- strokeLinejoin: "round"
17
- }, rest);
18
7
  return /* @__PURE__ */ jsxs("svg", {
19
- ...attributes,
8
+ ...mergeProps({
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ width: "24",
11
+ height: "24",
12
+ viewBox: "0 0 24 24",
13
+ fill: "none",
14
+ stroke: "currentColor",
15
+ strokeWidth: "2",
16
+ strokeLinecap: "round",
17
+ strokeLinejoin: "round"
18
+ }, rest),
20
19
  children: [
21
20
  /* @__PURE__ */ jsx("path", { d: "M8 2v4" }),
22
21
  /* @__PURE__ */ jsx("path", { d: "M16 2v4" }),
@@ -4,19 +4,18 @@ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/internal/components/check.tsx
5
5
  function Check(props) {
6
6
  const { ...rest } = props;
7
- const attributes = mergeProps({
8
- xmlns: "http://www.w3.org/2000/svg",
9
- width: "24",
10
- height: "24",
11
- viewBox: "0 0 24 24",
12
- fill: "none",
13
- stroke: "currentColor",
14
- strokeWidth: "2",
15
- strokeLinecap: "round",
16
- strokeLinejoin: "round"
17
- }, rest);
18
7
  return /* @__PURE__ */ jsx("svg", {
19
- ...attributes,
8
+ ...mergeProps({
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ width: "24",
11
+ height: "24",
12
+ viewBox: "0 0 24 24",
13
+ fill: "none",
14
+ stroke: "currentColor",
15
+ strokeWidth: "2",
16
+ strokeLinecap: "round",
17
+ strokeLinejoin: "round"
18
+ }, rest),
20
19
  children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
21
20
  });
22
21
  }
@@ -4,19 +4,18 @@ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/internal/components/chevron-down.tsx
5
5
  function ChevronDown(props) {
6
6
  const { ...rest } = props;
7
- const attributes = mergeProps({
8
- xmlns: "http://www.w3.org/2000/svg",
9
- width: "24",
10
- height: "24",
11
- viewBox: "0 0 24 24",
12
- fill: "none",
13
- stroke: "currentColor",
14
- strokeWidth: "2",
15
- strokeLinecap: "round",
16
- strokeLinejoin: "round"
17
- }, rest);
18
7
  return /* @__PURE__ */ jsx("svg", {
19
- ...attributes,
8
+ ...mergeProps({
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ width: "24",
11
+ height: "24",
12
+ viewBox: "0 0 24 24",
13
+ fill: "none",
14
+ stroke: "currentColor",
15
+ strokeWidth: "2",
16
+ strokeLinecap: "round",
17
+ strokeLinejoin: "round"
18
+ }, rest),
20
19
  children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" })
21
20
  });
22
21
  }
@@ -4,19 +4,18 @@ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/internal/components/chevron-left.tsx
5
5
  function ChevronLeft(props) {
6
6
  const { ...rest } = props;
7
- const attributes = mergeProps({
8
- xmlns: "http://www.w3.org/2000/svg",
9
- width: "24",
10
- height: "24",
11
- viewBox: "0 0 24 24",
12
- fill: "none",
13
- stroke: "currentColor",
14
- strokeWidth: "2",
15
- strokeLinecap: "round",
16
- strokeLinejoin: "round"
17
- }, rest);
18
7
  return /* @__PURE__ */ jsx("svg", {
19
- ...attributes,
8
+ ...mergeProps({
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ width: "24",
11
+ height: "24",
12
+ viewBox: "0 0 24 24",
13
+ fill: "none",
14
+ stroke: "currentColor",
15
+ strokeWidth: "2",
16
+ strokeLinecap: "round",
17
+ strokeLinejoin: "round"
18
+ }, rest),
20
19
  children: /* @__PURE__ */ jsx("path", { d: "m15 18-6-6 6-6" })
21
20
  });
22
21
  }
@@ -4,19 +4,18 @@ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/internal/components/chevron-right.tsx
5
5
  function ChevronRight(props) {
6
6
  const { ...rest } = props;
7
- const attributes = mergeProps({
8
- xmlns: "http://www.w3.org/2000/svg",
9
- width: "24",
10
- height: "24",
11
- viewBox: "0 0 24 24",
12
- fill: "none",
13
- stroke: "currentColor",
14
- strokeWidth: "2",
15
- strokeLinecap: "round",
16
- strokeLinejoin: "round"
17
- }, rest);
18
7
  return /* @__PURE__ */ jsx("svg", {
19
- ...attributes,
8
+ ...mergeProps({
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ width: "24",
11
+ height: "24",
12
+ viewBox: "0 0 24 24",
13
+ fill: "none",
14
+ stroke: "currentColor",
15
+ strokeWidth: "2",
16
+ strokeLinecap: "round",
17
+ strokeLinejoin: "round"
18
+ }, rest),
20
19
  children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
21
20
  });
22
21
  }