@skeletonlabs/skeleton-react 4.0.0 → 4.0.2

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 (103) 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.d.ts +2 -2
  6. package/dist/components/accordion/modules/provider.js +2 -3
  7. package/dist/components/app-bar/anatomy/headline.d.ts +2 -2
  8. package/dist/components/app-bar/anatomy/lead.d.ts +2 -2
  9. package/dist/components/app-bar/anatomy/root.d.ts +2 -2
  10. package/dist/components/app-bar/anatomy/toolbar.d.ts +2 -2
  11. package/dist/components/app-bar/anatomy/trail.d.ts +2 -2
  12. package/dist/components/avatar/anatomy/fallback.d.ts +2 -2
  13. package/dist/components/avatar/anatomy/image.d.ts +2 -2
  14. package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
  15. package/dist/components/avatar/anatomy/root.d.ts +2 -2
  16. package/dist/components/avatar/modules/provider.js +2 -3
  17. package/dist/components/collapsible/anatomy/indicator.d.ts +2 -2
  18. package/dist/components/collapsible/anatomy/root-provider.d.ts +2 -2
  19. package/dist/components/collapsible/anatomy/root.d.ts +2 -2
  20. package/dist/components/collapsible/anatomy/trigger.d.ts +2 -2
  21. package/dist/components/collapsible/modules/provider.js +2 -3
  22. package/dist/components/combobox/anatomy/item-group-label.js +1 -2
  23. package/dist/components/combobox/modules/provider.js +2 -3
  24. package/dist/components/date-picker/anatomy/root-provider.d.ts +2 -2
  25. package/dist/components/date-picker/anatomy/table-cell-trigger.d.ts +2 -2
  26. package/dist/components/date-picker/anatomy/table-cell.d.ts +2 -2
  27. package/dist/components/date-picker/anatomy/table-head.d.ts +2 -2
  28. package/dist/components/date-picker/anatomy/table-header.d.ts +2 -2
  29. package/dist/components/date-picker/modules/provider.js +2 -3
  30. package/dist/components/dialog/anatomy/backdrop.d.ts +2 -2
  31. package/dist/components/dialog/anatomy/close-trigger.d.ts +2 -2
  32. package/dist/components/dialog/anatomy/content.d.ts +2 -2
  33. package/dist/components/dialog/anatomy/description.d.ts +2 -2
  34. package/dist/components/dialog/anatomy/positioner.d.ts +2 -2
  35. package/dist/components/dialog/anatomy/root-provider.d.ts +2 -2
  36. package/dist/components/dialog/anatomy/title.d.ts +2 -2
  37. package/dist/components/dialog/anatomy/trigger.d.ts +2 -2
  38. package/dist/components/dialog/modules/provider.js +2 -3
  39. package/dist/components/file-upload/anatomy/dropzone.d.ts +2 -2
  40. package/dist/components/file-upload/anatomy/hidden-input.d.ts +2 -2
  41. package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +2 -2
  42. package/dist/components/file-upload/anatomy/item-group.d.ts +2 -2
  43. package/dist/components/file-upload/anatomy/item-name.d.ts +2 -2
  44. package/dist/components/file-upload/anatomy/item-size-text.d.ts +2 -2
  45. package/dist/components/file-upload/anatomy/item.d.ts +2 -2
  46. package/dist/components/file-upload/anatomy/label.d.ts +2 -2
  47. package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
  48. package/dist/components/file-upload/anatomy/root.d.ts +2 -2
  49. package/dist/components/file-upload/anatomy/trigger.d.ts +2 -2
  50. package/dist/components/file-upload/modules/provider.js +2 -3
  51. package/dist/components/listbox/anatomy/content.d.ts +2 -2
  52. package/dist/components/listbox/anatomy/input.d.ts +2 -2
  53. package/dist/components/listbox/anatomy/item-group-label.d.ts +2 -2
  54. package/dist/components/listbox/anatomy/item-group-label.js +1 -2
  55. package/dist/components/listbox/anatomy/item-group.d.ts +2 -2
  56. package/dist/components/listbox/anatomy/item-indicator.d.ts +2 -2
  57. package/dist/components/listbox/anatomy/item-text.d.ts +2 -2
  58. package/dist/components/listbox/anatomy/label.d.ts +2 -2
  59. package/dist/components/listbox/anatomy/root.d.ts +2 -2
  60. package/dist/components/listbox/modules/provider.js +2 -3
  61. package/dist/components/pagination/modules/provider.js +2 -3
  62. package/dist/components/popover/modules/provider.js +2 -3
  63. package/dist/components/progress/modules/provider.js +2 -3
  64. package/dist/components/rating-group/modules/provider.js +2 -3
  65. package/dist/components/segmented-control/modules/provider.js +2 -3
  66. package/dist/components/slider/anatomy/hidden-input.d.ts +2 -2
  67. package/dist/components/slider/anatomy/label.d.ts +2 -2
  68. package/dist/components/slider/anatomy/marker.d.ts +2 -2
  69. package/dist/components/slider/anatomy/range.d.ts +2 -2
  70. package/dist/components/slider/anatomy/value-text.d.ts +2 -2
  71. package/dist/components/slider/modules/provider.js +2 -3
  72. package/dist/components/switch/anatomy/hidden-input.d.ts +2 -2
  73. package/dist/components/switch/anatomy/label.d.ts +2 -2
  74. package/dist/components/switch/modules/provider.js +2 -3
  75. package/dist/components/tabs/modules/provider.js +2 -3
  76. package/dist/components/tags-input/modules/provider.js +2 -3
  77. package/dist/components/toast/anatomy/action-trigger.d.ts +2 -2
  78. package/dist/components/toast/anatomy/close-trigger.d.ts +2 -2
  79. package/dist/components/toast/anatomy/description.d.ts +2 -2
  80. package/dist/components/toast/anatomy/group.d.ts +2 -2
  81. package/dist/components/toast/anatomy/message.d.ts +2 -2
  82. package/dist/components/toast/anatomy/root.d.ts +2 -2
  83. package/dist/components/toast/anatomy/root.js +2 -3
  84. package/dist/components/toast/anatomy/title.d.ts +2 -2
  85. package/dist/components/tooltip/anatomy/arrow-tip.d.ts +2 -2
  86. package/dist/components/tooltip/anatomy/arrow.d.ts +2 -2
  87. package/dist/components/tooltip/anatomy/content.d.ts +2 -2
  88. package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
  89. package/dist/components/tooltip/anatomy/root-provider.d.ts +2 -2
  90. package/dist/components/tooltip/anatomy/root.d.ts +2 -2
  91. package/dist/components/tooltip/anatomy/trigger.d.ts +2 -2
  92. package/dist/components/tooltip/modules/provider.js +2 -3
  93. package/dist/components/tree-view/modules/provider.js +2 -3
  94. package/dist/internal/components/calendar.js +11 -12
  95. package/dist/internal/components/check.js +11 -12
  96. package/dist/internal/components/chevron-down.js +11 -12
  97. package/dist/internal/components/chevron-left.js +11 -12
  98. package/dist/internal/components/chevron-right.js +11 -12
  99. package/dist/internal/components/star-empty.js +9 -10
  100. package/dist/internal/components/star-full.js +7 -8
  101. package/dist/internal/components/star-half.js +9 -10
  102. package/dist/internal/components/x.js +11 -12
  103. package/package.json +25 -25
@@ -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 react51 from "react";
3
+ import * as react49 from "react";
4
4
 
5
5
  //#region src/components/file-upload/anatomy/item-group.d.ts
6
6
  interface FileUploadItemGroupProps extends PropsWithElement<'ul'>, HTMLAttributes<'ul'> {}
7
- declare function ItemGroup(props: FileUploadItemGroupProps): react51.JSX.Element;
7
+ declare function ItemGroup(props: FileUploadItemGroupProps): react49.JSX.Element;
8
8
  //#endregion
9
9
  export { FileUploadItemGroupProps, ItemGroup };
10
10
  //# sourceMappingURL=item-group.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react52 from "react";
3
+ import * as react50 from "react";
4
4
 
5
5
  //#region src/components/file-upload/anatomy/item-name.d.ts
6
6
  interface FileUploadItemNameProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function ItemName(props: FileUploadItemNameProps): react52.JSX.Element;
7
+ declare function ItemName(props: FileUploadItemNameProps): react50.JSX.Element;
8
8
  //#endregion
9
9
  export { FileUploadItemNameProps, ItemName };
10
10
  //# sourceMappingURL=item-name.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react53 from "react";
3
+ import * as react51 from "react";
4
4
 
5
5
  //#region src/components/file-upload/anatomy/item-size-text.d.ts
6
6
  interface FileUploadItemSizeTextProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function ItemSizeText(props: FileUploadItemSizeTextProps): react53.JSX.Element;
7
+ declare function ItemSizeText(props: FileUploadItemSizeTextProps): react51.JSX.Element;
8
8
  //#endregion
9
9
  export { FileUploadItemSizeTextProps, ItemSizeText };
10
10
  //# sourceMappingURL=item-size-text.d.ts.map
@@ -1,11 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react_jsx_runtime16 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
4
4
  import { ItemProps } from "@zag-js/file-upload";
5
5
 
6
6
  //#region src/components/file-upload/anatomy/item.d.ts
7
7
  interface FileUploadItemProps extends ItemProps, PropsWithElement<'li'>, HTMLAttributes<'li'> {}
8
- declare function Item(props: FileUploadItemProps): react_jsx_runtime16.JSX.Element;
8
+ declare function Item(props: FileUploadItemProps): react_jsx_runtime15.JSX.Element;
9
9
  //#endregion
10
10
  export { FileUploadItemProps, 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 react54 from "react";
3
+ import * as react52 from "react";
4
4
 
5
5
  //#region src/components/file-upload/anatomy/label.d.ts
6
6
  interface FileUploadLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
7
- declare function Label(props: FileUploadLabelProps): react54.JSX.Element;
7
+ declare function Label(props: FileUploadLabelProps): react52.JSX.Element;
8
8
  //#endregion
9
9
  export { FileUploadLabelProps, Label };
10
10
  //# sourceMappingURL=label.d.ts.map
@@ -1,13 +1,13 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
3
  import { useFileUpload } from "../modules/provider.js";
4
- import * as react_jsx_runtime18 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/file-upload/anatomy/root-provider.d.ts
7
7
  interface FileUploadRootProviderProps extends PropsWithElement<'div'>, Omit<HTMLAttributes<'div'>, 'id' | 'dir'> {
8
8
  value: ReturnType<typeof useFileUpload>;
9
9
  }
10
- declare function RootProvider(props: FileUploadRootProviderProps): react_jsx_runtime18.JSX.Element;
10
+ declare function RootProvider(props: FileUploadRootProviderProps): react_jsx_runtime17.JSX.Element;
11
11
  //#endregion
12
12
  export { FileUploadRootProviderProps, 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_runtime17 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
4
4
  import { Props } from "@zag-js/file-upload";
5
5
 
6
6
  //#region src/components/file-upload/anatomy/root.d.ts
7
7
  interface FileUploadRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, Omit<HTMLAttributes<'div'>, 'id' | 'dir'> {}
8
- declare function Root(props: FileUploadRootProps): react_jsx_runtime17.JSX.Element;
8
+ declare function Root(props: FileUploadRootProps): react_jsx_runtime16.JSX.Element;
9
9
  //#endregion
10
10
  export { FileUploadRootProps, 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 react55 from "react";
3
+ import * as react53 from "react";
4
4
 
5
5
  //#region src/components/file-upload/anatomy/trigger.d.ts
6
6
  interface FileUploadTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function Trigger(props: FileUploadTriggerProps): react55.JSX.Element;
7
+ declare function Trigger(props: FileUploadTriggerProps): react53.JSX.Element;
8
8
  //#endregion
9
9
  export { FileUploadTriggerProps, Trigger };
10
10
  //# sourceMappingURL=trigger.d.ts.map
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/file-upload";
4
4
 
5
5
  //#region src/components/file-upload/modules/provider.ts
6
6
  function useFileUpload(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 react61 from "react";
3
+ import * as react59 from "react";
4
4
 
5
5
  //#region src/components/listbox/anatomy/content.d.ts
6
6
  interface ListboxContentProps extends PropsWithElement<'ul'>, HTMLAttributes<'ul'> {}
7
- declare function Content(props: ListboxContentProps): react61.JSX.Element;
7
+ declare function Content(props: ListboxContentProps): react59.JSX.Element;
8
8
  //#endregion
9
9
  export { Content, ListboxContentProps };
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 react57 from "react";
3
+ import * as react58 from "react";
4
4
 
5
5
  //#region src/components/listbox/anatomy/input.d.ts
6
6
  interface ListboxInputProps extends PropsWithElement<'input'>, Omit<HTMLAttributes<'input'>, 'children'> {}
7
- declare function Input(props: ListboxInputProps): react57.JSX.Element;
7
+ declare function Input(props: ListboxInputProps): react58.JSX.Element;
8
8
  //#endregion
9
9
  export { Input, ListboxInputProps };
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 react56 from "react";
3
+ import * as react57 from "react";
4
4
  import { ItemGroupLabelProps } from "@zag-js/listbox";
5
5
 
6
6
  //#region src/components/listbox/anatomy/item-group-label.d.ts
7
7
  interface ListboxItemGroupLabelProps extends Omit<ItemGroupLabelProps, 'htmlFor'>, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
8
- declare function ItemGroupLabel(props: ListboxItemGroupLabelProps): react56.JSX.Element;
8
+ declare function ItemGroupLabel(props: ListboxItemGroupLabelProps): react57.JSX.Element;
9
9
  //#endregion
10
10
  export { ItemGroupLabel, ListboxItemGroupLabelProps };
11
11
  //# sourceMappingURL=item-group-label.d.ts.map
@@ -9,9 +9,8 @@ import { splitItemGroupLabelProps } from "@zag-js/listbox";
9
9
  //#region src/components/listbox/anatomy/item-group-label.tsx
10
10
  function ItemGroupLabel(props) {
11
11
  const listbox = use(RootContext);
12
- const itemGroupProps = use(ItemGroupContext);
13
12
  const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps({
14
- htmlFor: itemGroupProps.id,
13
+ htmlFor: use(ItemGroupContext).id,
15
14
  ...props
16
15
  });
17
16
  const { element, children,...rest } = componentProps;
@@ -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_runtime20 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
4
4
  import { ItemGroupProps } from "@zag-js/listbox";
5
5
 
6
6
  //#region src/components/listbox/anatomy/item-group.d.ts
7
7
  interface ListboxItemGroupProps extends Omit<ItemGroupProps, 'id'>, PropsWithElement<'div'>, Omit<HTMLAttributes<'div'>, 'id'> {}
8
- declare function ItemGroup(props: ListboxItemGroupProps): react_jsx_runtime20.JSX.Element;
8
+ declare function ItemGroup(props: ListboxItemGroupProps): react_jsx_runtime19.JSX.Element;
9
9
  //#endregion
10
10
  export { ItemGroup, ListboxItemGroupProps };
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 react58 from "react";
3
+ import * as react56 from "react";
4
4
 
5
5
  //#region src/components/listbox/anatomy/item-indicator.d.ts
6
6
  interface ListboxItemIndicatorProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
7
- declare function ItemIndicator(props: ListboxItemIndicatorProps): react58.JSX.Element;
7
+ declare function ItemIndicator(props: ListboxItemIndicatorProps): react56.JSX.Element;
8
8
  //#endregion
9
9
  export { ItemIndicator, ListboxItemIndicatorProps };
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 react59 from "react";
3
+ import * as react60 from "react";
4
4
 
5
5
  //#region src/components/listbox/anatomy/item-text.d.ts
6
6
  interface ListboxItemTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
7
- declare function ItemText(props: ListboxItemTextProps): react59.JSX.Element;
7
+ declare function ItemText(props: ListboxItemTextProps): react60.JSX.Element;
8
8
  //#endregion
9
9
  export { ItemText, ListboxItemTextProps };
10
10
  //# sourceMappingURL=item-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 react60 from "react";
3
+ import * as react61 from "react";
4
4
 
5
5
  //#region src/components/listbox/anatomy/label.d.ts
6
6
  interface ListboxLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
7
- declare function Label(props: ListboxLabelProps): react60.JSX.Element;
7
+ declare function Label(props: ListboxLabelProps): react61.JSX.Element;
8
8
  //#endregion
9
9
  export { Label, ListboxLabelProps };
10
10
  //# sourceMappingURL=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_runtime19 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
4
4
  import { Props } from "@zag-js/listbox";
5
5
 
6
6
  //#region src/components/listbox/anatomy/root.d.ts
7
7
  interface ListboxRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue' | 'onSelect'> {}
8
- declare function Root(props: ListboxRootProps): react_jsx_runtime19.JSX.Element;
8
+ declare function Root(props: ListboxRootProps): react_jsx_runtime20.JSX.Element;
9
9
  //#endregion
10
10
  export { ListboxRootProps, Root };
11
11
  //# sourceMappingURL=root.d.ts.map
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/listbox";
4
4
 
5
5
  //#region src/components/listbox/modules/provider.ts
6
6
  function useListbox(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
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/pagination";
4
4
 
5
5
  //#region src/components/pagination/modules/provider.ts
6
6
  function usePagination(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
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/popover";
4
4
 
5
5
  //#region src/components/popover/modules/provider.ts
6
6
  function usePopover(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
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/progress";
4
4
 
5
5
  //#region src/components/progress/modules/provider.ts
6
6
  function useProgress(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
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/rating-group";
4
4
 
5
5
  //#region src/components/rating-group/modules/provider.ts
6
6
  function useRatingGroup(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
@@ -4,12 +4,11 @@ import { connect, machine } from "@zag-js/radio-group";
4
4
 
5
5
  //#region src/components/segmented-control/modules/provider.ts
6
6
  function useSegmentedControl(props = {}) {
7
- const service = useMachine(machine, {
7
+ return connect(useMachine(machine, {
8
8
  id: useId(),
9
9
  orientation: "horizontal",
10
10
  ...props
11
- });
12
- return connect(service, normalizeProps);
11
+ }), normalizeProps);
13
12
  }
14
13
 
15
14
  //#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 react97 from "react";
3
+ import * as react98 from "react";
4
4
 
5
5
  //#region src/components/slider/anatomy/hidden-input.d.ts
6
6
  interface SliderHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
7
- declare function HiddenInput(props: SliderHiddenInputProps): react97.JSX.Element;
7
+ declare function HiddenInput(props: SliderHiddenInputProps): react98.JSX.Element;
8
8
  //#endregion
9
9
  export { HiddenInput, SliderHiddenInputProps };
10
10
  //# sourceMappingURL=hidden-input.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react99 from "react";
3
+ import * as react100 from "react";
4
4
 
5
5
  //#region src/components/slider/anatomy/label.d.ts
6
6
  interface SliderLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
7
- declare function Label(props: SliderLabelProps): react99.JSX.Element;
7
+ declare function Label(props: SliderLabelProps): react100.JSX.Element;
8
8
  //#endregion
9
9
  export { Label, SliderLabelProps };
10
10
  //# sourceMappingURL=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 react103 from "react";
3
+ import * as react97 from "react";
4
4
  import { MarkerProps } from "@zag-js/slider";
5
5
 
6
6
  //#region src/components/slider/anatomy/marker.d.ts
7
7
  interface SliderMarkerProps extends MarkerProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
8
- declare function Marker(props: SliderMarkerProps): react103.JSX.Element;
8
+ declare function Marker(props: SliderMarkerProps): react97.JSX.Element;
9
9
  //#endregion
10
10
  export { Marker, SliderMarkerProps };
11
11
  //# sourceMappingURL=marker.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 react98 from "react";
3
+ import * as react99 from "react";
4
4
 
5
5
  //#region src/components/slider/anatomy/range.d.ts
6
6
  interface SliderRangeProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Range(props: SliderRangeProps): react98.JSX.Element;
7
+ declare function Range(props: SliderRangeProps): react99.JSX.Element;
8
8
  //#endregion
9
9
  export { Range, SliderRangeProps };
10
10
  //# sourceMappingURL=range.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 react100 from "react";
3
+ import * as react103 from "react";
4
4
 
5
5
  //#region src/components/slider/anatomy/value-text.d.ts
6
6
  interface SliderValueTextProps extends PropsWithElement<'output'>, HTMLAttributes<'output'> {}
7
- declare function ValueText(props: SliderValueTextProps): react100.JSX.Element;
7
+ declare function ValueText(props: SliderValueTextProps): react103.JSX.Element;
8
8
  //#endregion
9
9
  export { SliderValueTextProps, ValueText };
10
10
  //# sourceMappingURL=value-text.d.ts.map
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/slider";
4
4
 
5
5
  //#region src/components/slider/modules/provider.ts
6
6
  function useSlider(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 react105 from "react";
3
+ import * as react106 from "react";
4
4
 
5
5
  //#region src/components/switch/anatomy/hidden-input.d.ts
6
6
  interface SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
7
- declare function HiddenInput(props: SwitchHiddenInputProps): react105.JSX.Element;
7
+ declare function HiddenInput(props: SwitchHiddenInputProps): react106.JSX.Element;
8
8
  //#endregion
9
9
  export { HiddenInput, SwitchHiddenInputProps };
10
10
  //# sourceMappingURL=hidden-input.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react106 from "react";
3
+ import * as react105 from "react";
4
4
 
5
5
  //#region src/components/switch/anatomy/label.d.ts
6
6
  interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
7
- declare function Label(props: SwitchLabelProps): react106.JSX.Element;
7
+ declare function Label(props: SwitchLabelProps): react105.JSX.Element;
8
8
  //#endregion
9
9
  export { Label, SwitchLabelProps };
10
10
  //# sourceMappingURL=label.d.ts.map
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/switch";
4
4
 
5
5
  //#region src/components/switch/modules/provider.ts
6
6
  function useSwitch(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
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/tabs";
4
4
 
5
5
  //#region src/components/tabs/modules/provider.ts
6
6
  function useTabs(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
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/tags-input";
4
4
 
5
5
  //#region src/components/tags-input/modules/provider.ts
6
6
  function useTagsInput(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 react129 from "react";
3
+ import * as react125 from "react";
4
4
 
5
5
  //#region src/components/toast/anatomy/action-trigger.d.ts
6
6
  interface ToastActionTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function ActionTrigger(props: ToastActionTriggerProps): react129.JSX.Element;
7
+ declare function ActionTrigger(props: ToastActionTriggerProps): react125.JSX.Element;
8
8
  //#endregion
9
9
  export { ActionTrigger, ToastActionTriggerProps };
10
10
  //# sourceMappingURL=action-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 react125 from "react";
3
+ import * as react121 from "react";
4
4
 
5
5
  //#region src/components/toast/anatomy/close-trigger.d.ts
6
6
  interface ToastCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function CloseTrigger(props: ToastCloseTriggerProps): react125.JSX.Element;
7
+ declare function CloseTrigger(props: ToastCloseTriggerProps): react121.JSX.Element;
8
8
  //#endregion
9
9
  export { CloseTrigger, ToastCloseTriggerProps };
10
10
  //# sourceMappingURL=close-trigger.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react126 from "react";
3
+ import * as react122 from "react";
4
4
 
5
5
  //#region src/components/toast/anatomy/description.d.ts
6
6
  interface ToastDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Description(props: ToastDescriptionProps): react126.JSX.Element;
7
+ declare function Description(props: ToastDescriptionProps): react122.JSX.Element;
8
8
  //#endregion
9
9
  export { Description, ToastDescriptionProps };
10
10
  //# sourceMappingURL=description.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
3
  import { JSX } from "react";
4
- import * as react_jsx_runtime49 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime46 from "react/jsx-runtime";
5
5
  import { Props, Store } from "@zag-js/toast";
6
6
 
7
7
  //#region src/components/toast/anatomy/group.d.ts
@@ -9,7 +9,7 @@ interface ToastGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div',
9
9
  toaster: Store;
10
10
  children?: (toast: Props) => JSX.Element | null;
11
11
  }
12
- declare function Group(props: ToastGroupProps): react_jsx_runtime49.JSX.Element;
12
+ declare function Group(props: ToastGroupProps): react_jsx_runtime46.JSX.Element;
13
13
  //#endregion
14
14
  export { Group, ToastGroupProps };
15
15
  //# sourceMappingURL=group.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react127 from "react";
3
+ import * as react123 from "react";
4
4
 
5
5
  //#region src/components/toast/anatomy/message.d.ts
6
6
  interface ToastMessageProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Message(props: ToastMessageProps): react127.JSX.Element;
7
+ declare function Message(props: ToastMessageProps): react123.JSX.Element;
8
8
  //#endregion
9
9
  export { Message, ToastMessageProps };
10
10
  //# sourceMappingURL=message.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
- import * as react_jsx_runtime50 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime47 from "react/jsx-runtime";
4
4
  import { Options } from "@zag-js/toast";
5
5
 
6
6
  //#region src/components/toast/anatomy/root.d.ts
7
7
  interface ToastRootProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
8
8
  toast: Omit<Options, 'id' | 'parent'>;
9
9
  }
10
- declare function Root(props: ToastRootProps): react_jsx_runtime50.JSX.Element;
10
+ declare function Root(props: ToastRootProps): react_jsx_runtime47.JSX.Element;
11
11
  //#endregion
12
12
  export { Root, ToastRootProps };
13
13
  //# sourceMappingURL=root.d.ts.map
@@ -10,12 +10,11 @@ import { connect, machine } from "@zag-js/toast";
10
10
  function Root(props) {
11
11
  const group$1 = use(GroupContext);
12
12
  const { element, children, toast: toastProps,...rest } = props;
13
- const service = useMachine(machine, {
13
+ const toast = connect(useMachine(machine, {
14
14
  ...toastProps,
15
15
  id: useId(),
16
16
  parent: group$1
17
- });
18
- const toast = connect(service, normalizeProps);
17
+ }), normalizeProps);
19
18
  const attributes = mergeProps(toast.getRootProps(), { className: classesToast.root }, rest);
20
19
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(RootContext.Provider, {
21
20
  value: toast,