@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,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 react0 from "react";
3
+ import * as react5 from "react";
4
4
  import { PropsWithChildren } from "react";
5
5
 
6
6
  //#region src/components/accordion/anatomy/item-content.d.ts
7
7
  interface AccordionItemContentProps extends PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
8
- declare function ItemContent(props: AccordionItemContentProps): react0.JSX.Element;
8
+ declare function ItemContent(props: AccordionItemContentProps): react5.JSX.Element;
9
9
  //#endregion
10
10
  export { AccordionItemContentProps, ItemContent };
11
11
  //# sourceMappingURL=item-content.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 react0 from "react";
3
+ import * as react6 from "react";
4
4
  import { PropsWithChildren } from "react";
5
5
 
6
6
  //#region src/components/accordion/anatomy/item-indicator.d.ts
7
7
  interface AccordionItemIndicatorProps extends PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
8
- declare function ItemIndicator(props: AccordionItemIndicatorProps): react0.JSX.Element;
8
+ declare function ItemIndicator(props: AccordionItemIndicatorProps): react6.JSX.Element;
9
9
  //#endregion
10
10
  export { AccordionItemIndicatorProps, ItemIndicator };
11
11
  //# sourceMappingURL=item-indicator.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 react1 from "react";
3
+ import * as react7 from "react";
4
4
  import { PropsWithChildren } from "react";
5
5
 
6
6
  //#region src/components/accordion/anatomy/item-trigger.d.ts
7
7
  interface AccordionItemTriggerProps extends PropsWithChildren, PropsWithElement<'button'>, HTMLAttributes<'button'> {}
8
- declare function ItemTrigger(props: AccordionItemTriggerProps): react1.JSX.Element;
8
+ declare function ItemTrigger(props: AccordionItemTriggerProps): react7.JSX.Element;
9
9
  //#endregion
10
10
  export { AccordionItemTriggerProps, ItemTrigger };
11
11
  //# sourceMappingURL=item-trigger.d.ts.map
@@ -2,11 +2,11 @@ import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
3
  import { PropsWithChildren } from "react";
4
4
  import { ItemProps } from "@zag-js/accordion";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/accordion/anatomy/item.d.ts
8
8
  interface AccordionItemProps extends ItemProps, PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
9
- declare function Item(props: AccordionItemProps): react_jsx_runtime0.JSX.Element;
9
+ declare function Item(props: AccordionItemProps): react_jsx_runtime2.JSX.Element;
10
10
  //#endregion
11
11
  export { AccordionItemProps, Item };
12
12
  //# sourceMappingURL=item.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
3
  import { Props } from "@zag-js/accordion";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/accordion/anatomy/root.d.ts
7
7
  interface AccordionRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
8
- declare function Root(props: AccordionRootProps): react_jsx_runtime0.JSX.Element;
8
+ declare function Root(props: AccordionRootProps): react_jsx_runtime3.JSX.Element;
9
9
  //#endregion
10
10
  export { AccordionRootProps, Root };
11
11
  //# sourceMappingURL=root.d.ts.map
@@ -4,11 +4,10 @@ import { normalizeProps, useMachine } from "@zag-js/react";
4
4
 
5
5
  //#region src/components/accordion/modules/provider.ts
6
6
  function useAccordion(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 react5 from "react";
3
+ import * as react0 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): react5.JSX.Element;
7
+ declare function AppBarHeadline(props: AppBarHeadlineProps): react0.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 react4 from "react";
3
+ import * as react11 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): react4.JSX.Element;
7
+ declare function AppBarLead(props: AppBarLeadProps): react11.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 react2 from "react";
3
+ import * as react0 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): react2.JSX.Element;
7
+ declare function AppBarRoot(props: AppBarRootProps): react0.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 react3 from "react";
3
+ import * as react4 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): react3.JSX.Element;
7
+ declare function AppBarToolbar(props: AppBarToolbarProps): react4.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 react6 from "react";
3
+ import * as react1 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): react6.JSX.Element;
7
+ declare function AppBarTrail(props: AppBarTrailProps): react1.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 react7 from "react";
3
+ import * as react2 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): react7.JSX.Element;
7
+ declare function Fallback(props: AvatarFallbackProps): react2.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 react8 from "react";
3
+ import * as react3 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): react8.JSX.Element;
7
+ declare function Image(props: AvatarImageProps): react3.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_runtime3 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime0 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_runtime3.JSX.Element;
10
+ declare function AvatarRootProvider(props: AvatarRootProviderProps): react_jsx_runtime0.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_runtime2 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime0 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_runtime2.JSX.Element;
8
+ declare function AvatarRoot(props: AvatarRootProps): react_jsx_runtime0.JSX.Element;
9
9
  //#endregion
10
10
  export { AvatarRoot, AvatarRootProps };
11
11
  //# sourceMappingURL=root.d.ts.map
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/avatar";
4
4
 
5
5
  //#region src/components/avatar/modules/provider.ts
6
6
  function useAvatar(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 react11 from "react";
3
+ import * as react10 from "react";
4
4
 
5
5
  //#region src/components/collapsible/anatomy/indicator.d.ts
6
6
  interface CollapsibleIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Indicator(props: CollapsibleIndicatorProps): react11.JSX.Element;
7
+ declare function Indicator(props: CollapsibleIndicatorProps): react10.JSX.Element;
8
8
  //#endregion
9
9
  export { CollapsibleIndicatorProps, Indicator };
10
10
  //# sourceMappingURL=indicator.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 { useCollapsible } from "../modules/provider.js";
4
- import * as react_jsx_runtime5 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/collapsible/anatomy/root-provider.d.ts
7
7
  interface CollapsibleRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
8
8
  value: ReturnType<typeof useCollapsible>;
9
9
  }
10
- declare function CollapsibleRootProvider(props: CollapsibleRootProviderProps): react_jsx_runtime5.JSX.Element;
10
+ declare function CollapsibleRootProvider(props: CollapsibleRootProviderProps): react_jsx_runtime4.JSX.Element;
11
11
  //#endregion
12
12
  export { CollapsibleRootProvider, CollapsibleRootProviderProps };
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_runtime4 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
4
4
  import { Props } from "@zag-js/collapsible";
5
5
 
6
6
  //#region src/components/collapsible/anatomy/root.d.ts
7
7
  interface CollapsibleRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
8
- declare function CollapsibleRoot(props: CollapsibleRootProps): react_jsx_runtime4.JSX.Element;
8
+ declare function CollapsibleRoot(props: CollapsibleRootProps): react_jsx_runtime5.JSX.Element;
9
9
  //#endregion
10
10
  export { CollapsibleRoot, CollapsibleRootProps };
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 react10 from "react";
3
+ import * as react8 from "react";
4
4
 
5
5
  //#region src/components/collapsible/anatomy/trigger.d.ts
6
6
  interface CollapsibleTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function Trigger(props: CollapsibleTriggerProps): react10.JSX.Element;
7
+ declare function Trigger(props: CollapsibleTriggerProps): react8.JSX.Element;
8
8
  //#endregion
9
9
  export { CollapsibleTriggerProps, Trigger };
10
10
  //# sourceMappingURL=trigger.d.ts.map
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/collapsible";
4
4
 
5
5
  //#region src/components/collapsible/modules/provider.ts
6
6
  function useCollapsible(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
@@ -9,9 +9,8 @@ import { splitItemGroupLabelProps } from "@zag-js/combobox";
9
9
  //#region src/components/combobox/anatomy/item-group-label.tsx
10
10
  function ItemGroupLabel(props) {
11
11
  const combobox = 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;
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/combobox";
4
4
 
5
5
  //#region src/components/combobox/modules/provider.ts
6
6
  function useCombobox(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,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 { useDatePicker } from "../modules/provider.js";
4
- import * as react_jsx_runtime11 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/date-picker/anatomy/root-provider.d.ts
7
7
  interface DatePickerRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
8
8
  value: ReturnType<typeof useDatePicker>;
9
9
  }
10
- declare function RootProvider(props: DatePickerRootProviderProps): react_jsx_runtime11.JSX.Element;
10
+ declare function RootProvider(props: DatePickerRootProviderProps): react_jsx_runtime12.JSX.Element;
11
11
  //#endregion
12
12
  export { DatePickerRootProviderProps, RootProvider };
13
13
  //# sourceMappingURL=root-provider.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 react34 from "react";
4
4
 
5
5
  //#region src/components/date-picker/anatomy/table-cell-trigger.d.ts
6
6
  interface DatePickerTableCellTriggerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function TableCellTrigger(props: DatePickerTableCellTriggerProps): react33.JSX.Element;
7
+ declare function TableCellTrigger(props: DatePickerTableCellTriggerProps): react34.JSX.Element;
8
8
  //#endregion
9
9
  export { DatePickerTableCellTriggerProps, TableCellTrigger };
10
10
  //# sourceMappingURL=table-cell-trigger.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
3
  import { Union } from "../../../internal/union.js";
4
- import * as react_jsx_runtime12 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
5
5
  import { DayTableCellProps, TableCellProps } from "@zag-js/date-picker";
6
6
 
7
7
  //#region src/components/date-picker/anatomy/table-cell.d.ts
8
8
  interface DatePickerTableCellProps extends Union<TableCellProps, DayTableCellProps>, PropsWithElement<'td'>, HTMLAttributes<'td'> {}
9
- declare function TableCell(props: DatePickerTableCellProps): react_jsx_runtime12.JSX.Element;
9
+ declare function TableCell(props: DatePickerTableCellProps): react_jsx_runtime11.JSX.Element;
10
10
  //#endregion
11
11
  export { DatePickerTableCellProps, TableCell };
12
12
  //# sourceMappingURL=table-cell.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 react34 from "react";
3
+ import * as react35 from "react";
4
4
 
5
5
  //#region src/components/date-picker/anatomy/table-head.d.ts
6
6
  interface DatePickerTableHeadProps extends PropsWithElement<'thead'>, HTMLAttributes<'thead'> {}
7
- declare function TableHead(props: DatePickerTableHeadProps): react34.JSX.Element;
7
+ declare function TableHead(props: DatePickerTableHeadProps): react35.JSX.Element;
8
8
  //#endregion
9
9
  export { DatePickerTableHeadProps, TableHead };
10
10
  //# sourceMappingURL=table-head.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react35 from "react";
3
+ import * as react33 from "react";
4
4
 
5
5
  //#region src/components/date-picker/anatomy/table-header.d.ts
6
6
  interface DatePickerTableHeaderProps extends PropsWithElement<'th'>, HTMLAttributes<'th'> {}
7
- declare function TableHeader(props: DatePickerTableHeaderProps): react35.JSX.Element;
7
+ declare function TableHeader(props: DatePickerTableHeaderProps): react33.JSX.Element;
8
8
  //#endregion
9
9
  export { DatePickerTableHeaderProps, TableHeader };
10
10
  //# sourceMappingURL=table-header.d.ts.map
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/date-picker";
4
4
 
5
5
  //#region src/components/date-picker/modules/provider.ts
6
6
  function useDatePicker(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 react41 from "react";
3
+ import * as react42 from "react";
4
4
 
5
5
  //#region src/components/dialog/anatomy/backdrop.d.ts
6
6
  interface DialogBackdropProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
7
- declare function Backdrop(props: DialogBackdropProps): react41.JSX.Element;
7
+ declare function Backdrop(props: DialogBackdropProps): react42.JSX.Element;
8
8
  //#endregion
9
9
  export { Backdrop, DialogBackdropProps };
10
10
  //# sourceMappingURL=backdrop.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react42 from "react";
3
+ import * as react43 from "react";
4
4
 
5
5
  //#region src/components/dialog/anatomy/close-trigger.d.ts
6
6
  interface DialogCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function CloseTrigger(props: DialogCloseTriggerProps): react42.JSX.Element;
7
+ declare function CloseTrigger(props: DialogCloseTriggerProps): react43.JSX.Element;
8
8
  //#endregion
9
9
  export { CloseTrigger, DialogCloseTriggerProps };
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 react43 from "react";
3
+ import * as react44 from "react";
4
4
 
5
5
  //#region src/components/dialog/anatomy/content.d.ts
6
6
  interface DialogContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Content(props: DialogContentProps): react43.JSX.Element;
7
+ declare function Content(props: DialogContentProps): react44.JSX.Element;
8
8
  //#endregion
9
9
  export { Content, DialogContentProps };
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 react44 from "react";
3
+ import * as react45 from "react";
4
4
 
5
5
  //#region src/components/dialog/anatomy/description.d.ts
6
6
  interface DialogDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Description(props: DialogDescriptionProps): react44.JSX.Element;
7
+ declare function Description(props: DialogDescriptionProps): react45.JSX.Element;
8
8
  //#endregion
9
9
  export { Description, DialogDescriptionProps };
10
10
  //# sourceMappingURL=description.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react45 from "react";
3
+ import * as react41 from "react";
4
4
 
5
5
  //#region src/components/dialog/anatomy/positioner.d.ts
6
6
  interface DialogPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Positioner(props: DialogPositionerProps): react45.JSX.Element;
7
+ declare function Positioner(props: DialogPositionerProps): react41.JSX.Element;
8
8
  //#endregion
9
9
  export { DialogPositionerProps, Positioner };
10
10
  //# sourceMappingURL=positioner.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { useDialog } from "../modules/provider.js";
2
2
  import { PropsWithChildren } from "react";
3
- import * as react_jsx_runtime15 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/dialog/anatomy/root-provider.d.ts
6
6
  interface DialogRootProviderProps extends PropsWithChildren {
7
7
  value: ReturnType<typeof useDialog>;
8
8
  }
9
- declare function RootProvider(props: DialogRootProviderProps): react_jsx_runtime15.JSX.Element;
9
+ declare function RootProvider(props: DialogRootProviderProps): react_jsx_runtime18.JSX.Element;
10
10
  //#endregion
11
11
  export { DialogRootProviderProps, RootProvider };
12
12
  //# sourceMappingURL=root-provider.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 react46 from "react";
3
+ import * as react54 from "react";
4
4
 
5
5
  //#region src/components/dialog/anatomy/title.d.ts
6
6
  interface DialogTitleProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Title(props: DialogTitleProps): react46.JSX.Element;
7
+ declare function Title(props: DialogTitleProps): react54.JSX.Element;
8
8
  //#endregion
9
9
  export { DialogTitleProps, Title };
10
10
  //# sourceMappingURL=title.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 react47 from "react";
3
+ import * as react55 from "react";
4
4
 
5
5
  //#region src/components/dialog/anatomy/trigger.d.ts
6
6
  interface DialogTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function Trigger(props: DialogTriggerProps): react47.JSX.Element;
7
+ declare function Trigger(props: DialogTriggerProps): react55.JSX.Element;
8
8
  //#endregion
9
9
  export { DialogTriggerProps, Trigger };
10
10
  //# sourceMappingURL=trigger.d.ts.map
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/dialog";
4
4
 
5
5
  //#region src/components/dialog/modules/provider.ts
6
6
  function useDialog(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 react48 from "react";
3
+ import * as react46 from "react";
4
4
 
5
5
  //#region src/components/file-upload/anatomy/dropzone.d.ts
6
6
  interface FileUploadDropzoneProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
7
- declare function Dropzone(props: FileUploadDropzoneProps): react48.JSX.Element;
7
+ declare function Dropzone(props: FileUploadDropzoneProps): react46.JSX.Element;
8
8
  //#endregion
9
9
  export { Dropzone, FileUploadDropzoneProps };
10
10
  //# sourceMappingURL=dropzone.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 react49 from "react";
3
+ import * as react47 from "react";
4
4
 
5
5
  //#region src/components/file-upload/anatomy/hidden-input.d.ts
6
6
  interface FileUploadHiddenInputProps extends PropsWithElement<'input'>, Omit<HTMLAttributes<'input'>, 'children'> {}
7
- declare function HiddenInput(props: FileUploadHiddenInputProps): react49.JSX.Element;
7
+ declare function HiddenInput(props: FileUploadHiddenInputProps): react47.JSX.Element;
8
8
  //#endregion
9
9
  export { FileUploadHiddenInputProps, HiddenInput };
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 react50 from "react";
3
+ import * as react48 from "react";
4
4
 
5
5
  //#region src/components/file-upload/anatomy/item-delete-trigger.d.ts
6
6
  interface FileUploadItemDeleteTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
7
- declare function ItemDeleteTrigger(props: FileUploadItemDeleteTriggerProps): react50.JSX.Element;
7
+ declare function ItemDeleteTrigger(props: FileUploadItemDeleteTriggerProps): react48.JSX.Element;
8
8
  //#endregion
9
9
  export { FileUploadItemDeleteTriggerProps, ItemDeleteTrigger };
10
10
  //# sourceMappingURL=item-delete-trigger.d.ts.map