@pzerelles/headlessui-svelte 2.1.2-next.33 → 2.1.2-next.35

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 (122) hide show
  1. package/dist/button/Button.svelte +9 -11
  2. package/dist/button/Button.svelte.d.ts +4 -3
  3. package/dist/button/index.d.ts +1 -1
  4. package/dist/button/index.js +1 -1
  5. package/dist/checkbox/Checkbox.svelte +16 -14
  6. package/dist/checkbox/Checkbox.svelte.d.ts +4 -3
  7. package/dist/checkbox/index.d.ts +1 -1
  8. package/dist/checkbox/index.js +1 -1
  9. package/dist/close-button/index.d.ts +1 -0
  10. package/dist/close-button/index.js +1 -0
  11. package/dist/data-interactive/DataInteractive.svelte +1 -1
  12. package/dist/data-interactive/DataInteractive.svelte.d.ts +1 -1
  13. package/dist/data-interactive/index.d.ts +1 -1
  14. package/dist/data-interactive/index.js +1 -1
  15. package/dist/description/Description.svelte +6 -8
  16. package/dist/description/Description.svelte.d.ts +3 -2
  17. package/dist/description/index.d.ts +1 -1
  18. package/dist/dialog/Dialog.svelte +13 -16
  19. package/dist/dialog/Dialog.svelte.d.ts +3 -2
  20. package/dist/dialog/DialogBackdrop.svelte +4 -7
  21. package/dist/dialog/DialogBackdrop.svelte.d.ts +4 -3
  22. package/dist/dialog/DialogPanel.svelte +8 -11
  23. package/dist/dialog/DialogPanel.svelte.d.ts +4 -3
  24. package/dist/dialog/DialogTitle.svelte +4 -7
  25. package/dist/dialog/DialogTitle.svelte.d.ts +4 -3
  26. package/dist/dialog/context.svelte.js +1 -1
  27. package/dist/dialog/index.d.ts +4 -4
  28. package/dist/dialog/index.js +4 -4
  29. package/dist/field/Field.svelte +6 -10
  30. package/dist/field/Field.svelte.d.ts +3 -3
  31. package/dist/field/index.d.ts +1 -1
  32. package/dist/fieldset/Fieldset.svelte +6 -9
  33. package/dist/fieldset/Fieldset.svelte.d.ts +3 -3
  34. package/dist/fieldset/index.d.ts +1 -1
  35. package/dist/focus-trap/FocusTrap.svelte +12 -15
  36. package/dist/focus-trap/FocusTrap.svelte.d.ts +3 -3
  37. package/dist/input/Input.svelte +11 -13
  38. package/dist/input/Input.svelte.d.ts +4 -3
  39. package/dist/input/index.d.ts +1 -1
  40. package/dist/input/index.js +1 -1
  41. package/dist/internal/Hidden.svelte +1 -1
  42. package/dist/internal/Hidden.svelte.d.ts +1 -1
  43. package/dist/label/Label.svelte +8 -10
  44. package/dist/label/Label.svelte.d.ts +3 -2
  45. package/dist/label/index.d.ts +1 -1
  46. package/dist/legend/Legend.svelte +6 -8
  47. package/dist/legend/Legend.svelte.d.ts +3 -2
  48. package/dist/listbox/Listbox.svelte +17 -16
  49. package/dist/listbox/Listbox.svelte.d.ts +4 -3
  50. package/dist/listbox/ListboxButton.svelte +9 -12
  51. package/dist/listbox/ListboxButton.svelte.d.ts +4 -3
  52. package/dist/listbox/ListboxOption.svelte +9 -7
  53. package/dist/listbox/ListboxOption.svelte.d.ts +4 -3
  54. package/dist/listbox/ListboxOptions.svelte +11 -14
  55. package/dist/listbox/ListboxOptions.svelte.d.ts +4 -3
  56. package/dist/listbox/ListboxSelectedOption.svelte +8 -6
  57. package/dist/listbox/ListboxSelectedOption.svelte.d.ts +4 -3
  58. package/dist/listbox/index.d.ts +5 -5
  59. package/dist/listbox/index.js +5 -5
  60. package/dist/menu/Menu.svelte +6 -7
  61. package/dist/menu/Menu.svelte.d.ts +4 -3
  62. package/dist/menu/MenuButton.svelte +10 -12
  63. package/dist/menu/MenuButton.svelte.d.ts +4 -3
  64. package/dist/menu/MenuHeading.svelte +7 -10
  65. package/dist/menu/MenuHeading.svelte.d.ts +3 -3
  66. package/dist/menu/MenuItem.svelte +8 -10
  67. package/dist/menu/MenuItem.svelte.d.ts +4 -3
  68. package/dist/menu/MenuItems.svelte +11 -13
  69. package/dist/menu/MenuItems.svelte.d.ts +4 -3
  70. package/dist/menu/MenuSection.svelte +6 -8
  71. package/dist/menu/MenuSection.svelte.d.ts +3 -3
  72. package/dist/menu/MenuSeparator.svelte +6 -8
  73. package/dist/menu/MenuSeparator.svelte.d.ts +3 -3
  74. package/dist/menu/index.d.ts +7 -7
  75. package/dist/menu/index.js +3 -3
  76. package/dist/popover/Popover.svelte +7 -9
  77. package/dist/popover/Popover.svelte.d.ts +4 -3
  78. package/dist/popover/PopoverBackdrop.svelte +8 -10
  79. package/dist/popover/PopoverBackdrop.svelte.d.ts +4 -3
  80. package/dist/popover/PopoverButton.svelte +8 -10
  81. package/dist/popover/PopoverButton.svelte.d.ts +3 -2
  82. package/dist/popover/PopoverGroup.svelte +6 -11
  83. package/dist/popover/PopoverGroup.svelte.d.ts +3 -3
  84. package/dist/popover/PopoverPanel.svelte +16 -18
  85. package/dist/popover/PopoverPanel.svelte.d.ts +4 -3
  86. package/dist/popover/index.d.ts +5 -5
  87. package/dist/popover/index.js +3 -3
  88. package/dist/portal/InternalPortal.svelte +1 -2
  89. package/dist/portal/InternalPortal.svelte.d.ts +1 -1
  90. package/dist/portal/PortalGroup.svelte +1 -1
  91. package/dist/portal/PortalGroup.svelte.d.ts +1 -1
  92. package/dist/select/Select.svelte +10 -12
  93. package/dist/select/Select.svelte.d.ts +4 -3
  94. package/dist/select/index.d.ts +1 -1
  95. package/dist/select/index.js +1 -1
  96. package/dist/switch/Switch.svelte +16 -18
  97. package/dist/switch/Switch.svelte.d.ts +4 -3
  98. package/dist/switch/index.d.ts +1 -1
  99. package/dist/switch/index.js +1 -1
  100. package/dist/tabs/Tab.svelte +9 -11
  101. package/dist/tabs/Tab.svelte.d.ts +4 -3
  102. package/dist/tabs/TabGroup.svelte +11 -13
  103. package/dist/tabs/TabGroup.svelte.d.ts +4 -3
  104. package/dist/tabs/TabList.svelte +6 -8
  105. package/dist/tabs/TabList.svelte.d.ts +4 -3
  106. package/dist/tabs/TabPanel.svelte +8 -7
  107. package/dist/tabs/TabPanel.svelte.d.ts +4 -3
  108. package/dist/tabs/TabPanels.svelte +4 -2
  109. package/dist/tabs/TabPanels.svelte.d.ts +4 -3
  110. package/dist/tabs/index.d.ts +5 -5
  111. package/dist/tabs/index.js +4 -4
  112. package/dist/textarea/Textarea.svelte +11 -10
  113. package/dist/textarea/Textarea.svelte.d.ts +4 -3
  114. package/dist/textarea/index.d.ts +1 -1
  115. package/dist/textarea/index.js +1 -1
  116. package/dist/transition/Transition.svelte +10 -1
  117. package/dist/transition/Transition.svelte.d.ts +5 -1
  118. package/dist/transition/TransitionChild.svelte +5 -3
  119. package/dist/transition/TransitionChild.svelte.d.ts +3 -2
  120. package/dist/transition/index.d.ts +2 -2
  121. package/dist/transition/index.js +2 -2
  122. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare const DEFAULT_SWITCH_TAG: "button";
3
- type SwitchRenderPropArg = {
3
+ export type SwitchRenderPropArg = {
4
4
  checked: boolean;
5
5
  hover: boolean;
6
6
  focus: boolean;
@@ -9,7 +9,7 @@ type SwitchRenderPropArg = {
9
9
  changing: boolean;
10
10
  disabled: boolean;
11
11
  };
12
- export type SwitchProps = Props<typeof DEFAULT_SWITCH_TAG, SwitchRenderPropArg, {
12
+ export type SwitchOwnProps = {
13
13
  element?: HTMLElement;
14
14
  id?: string;
15
15
  checked?: boolean;
@@ -21,6 +21,7 @@ export type SwitchProps = Props<typeof DEFAULT_SWITCH_TAG, SwitchRenderPropArg,
21
21
  autofocus?: boolean;
22
22
  disabled?: boolean;
23
23
  tabIndex?: number;
24
- }>;
24
+ };
25
+ export type SwitchProps = Props<typeof DEFAULT_SWITCH_TAG, SwitchRenderPropArg, SwitchOwnProps>;
25
26
  declare const Switch: import("svelte").Component<SwitchProps, {}, "element" | "checked">;
26
27
  export default Switch;
@@ -1,2 +1,2 @@
1
- export { default as Switch, type SwitchProps } from "./Switch.svelte";
1
+ export { default as Switch, type SwitchProps, type SwitchRenderPropArg as SwitchSlot, type SwitchOwnProps, } from "./Switch.svelte";
2
2
  export { default as SwitchGroup, type SwitchGroupProps } from "./SwitchGroup.svelte";
@@ -1,2 +1,2 @@
1
- export { default as Switch } from "./Switch.svelte";
1
+ export { default as Switch, } from "./Switch.svelte";
2
2
  export { default as SwitchGroup } from "./SwitchGroup.svelte";
@@ -2,7 +2,7 @@
2
2
  import type { Props } from "../utils/types.js"
3
3
 
4
4
  const DEFAULT_TAB_TAG = "button" as const
5
- type TabRenderPropArg = {
5
+ export type TabRenderPropArg = {
6
6
  hover: boolean
7
7
  focus: boolean
8
8
  active: boolean
@@ -12,16 +12,14 @@
12
12
  }
13
13
  type TabPropsWeControl = "aria-controls" | "aria-selected" | "role" | "tabIndex"
14
14
 
15
- export type TabProps = Props<
16
- typeof DEFAULT_TAB_TAG,
17
- TabRenderPropArg,
18
- {
19
- element?: HTMLElement
20
- id?: string
21
- autofocus?: boolean
22
- disabled?: boolean
23
- }
24
- >
15
+ export type TabOwnProps = {
16
+ element?: HTMLElement
17
+ id?: string
18
+ autofocus?: boolean
19
+ disabled?: boolean
20
+ }
21
+
22
+ export type TabProps = Props<typeof DEFAULT_TAB_TAG, TabRenderPropArg, TabOwnProps>
25
23
  </script>
26
24
 
27
25
  <script lang="ts">
@@ -1,6 +1,6 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare const DEFAULT_TAB_TAG: "button";
3
- type TabRenderPropArg = {
3
+ export type TabRenderPropArg = {
4
4
  hover: boolean;
5
5
  focus: boolean;
6
6
  active: boolean;
@@ -8,11 +8,12 @@ type TabRenderPropArg = {
8
8
  selected: boolean;
9
9
  disabled: boolean;
10
10
  };
11
- export type TabProps = Props<typeof DEFAULT_TAB_TAG, TabRenderPropArg, {
11
+ export type TabOwnProps = {
12
12
  element?: HTMLElement;
13
13
  id?: string;
14
14
  autofocus?: boolean;
15
15
  disabled?: boolean;
16
- }>;
16
+ };
17
+ export type TabProps = Props<typeof DEFAULT_TAB_TAG, TabRenderPropArg, TabOwnProps>;
17
18
  declare const Tab: import("svelte").Component<TabProps, {}, "element">;
18
19
  export default Tab;
@@ -4,23 +4,21 @@
4
4
  import FocusSentinel from "../internal/FocusSentinel.svelte"
5
5
 
6
6
  const DEFAULT_TABS_TAG = "div" as const
7
- type TabsRenderPropArg = {
7
+ export type TabsRenderPropArg = {
8
8
  selectedIndex: number
9
9
  }
10
10
  type TabsPropsWeControl = never
11
11
 
12
- export type TabGroupProps = Props<
13
- typeof DEFAULT_TABS_TAG,
14
- TabsRenderPropArg,
15
- {
16
- element?: HTMLElement
17
- defaultIndex?: number
18
- onchange?: (index: number) => void
19
- selectedIndex?: number
20
- vertical?: boolean
21
- manual?: boolean
22
- }
23
- >
12
+ export type TabGroupOwnProps = {
13
+ element?: HTMLElement
14
+ defaultIndex?: number
15
+ onchange?: (index: number) => void
16
+ selectedIndex?: number
17
+ vertical?: boolean
18
+ manual?: boolean
19
+ }
20
+
21
+ export type TabGroupProps = Props<typeof DEFAULT_TABS_TAG, TabsRenderPropArg, TabGroupOwnProps>
24
22
  </script>
25
23
 
26
24
  <script lang="ts">
@@ -1,15 +1,16 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare const DEFAULT_TABS_TAG: "div";
3
- type TabsRenderPropArg = {
3
+ export type TabsRenderPropArg = {
4
4
  selectedIndex: number;
5
5
  };
6
- export type TabGroupProps = Props<typeof DEFAULT_TABS_TAG, TabsRenderPropArg, {
6
+ export type TabGroupOwnProps = {
7
7
  element?: HTMLElement;
8
8
  defaultIndex?: number;
9
9
  onchange?: (index: number) => void;
10
10
  selectedIndex?: number;
11
11
  vertical?: boolean;
12
12
  manual?: boolean;
13
- }>;
13
+ };
14
+ export type TabGroupProps = Props<typeof DEFAULT_TABS_TAG, TabsRenderPropArg, TabGroupOwnProps>;
14
15
  declare const TabGroup: import("svelte").Component<TabGroupProps, {}, "element">;
15
16
  export default TabGroup;
@@ -2,18 +2,16 @@
2
2
  import type { Props } from "../utils/types.js"
3
3
 
4
4
  const DEFAULT_LIST_TAG = "div" as const
5
- type ListRenderPropArg = {
5
+ export type ListRenderPropArg = {
6
6
  selectedIndex: number
7
7
  }
8
8
  type ListPropsWeControl = "aria-orientation" | "role"
9
9
 
10
- export type TabListProps = Props<
11
- typeof DEFAULT_LIST_TAG,
12
- ListRenderPropArg,
13
- {
14
- element?: HTMLElement
15
- }
16
- >
10
+ export type TabListOwnProps = {
11
+ element?: HTMLElement
12
+ }
13
+
14
+ export type TabListProps = Props<typeof DEFAULT_LIST_TAG, ListRenderPropArg, TabListOwnProps>
17
15
  </script>
18
16
 
19
17
  <script lang="ts">
@@ -1,10 +1,11 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare const DEFAULT_LIST_TAG: "div";
3
- type ListRenderPropArg = {
3
+ export type ListRenderPropArg = {
4
4
  selectedIndex: number;
5
5
  };
6
- export type TabListProps = Props<typeof DEFAULT_LIST_TAG, ListRenderPropArg, {
6
+ export type TabListOwnProps = {
7
7
  element?: HTMLElement;
8
- }>;
8
+ };
9
+ export type TabListProps = Props<typeof DEFAULT_LIST_TAG, ListRenderPropArg, TabListOwnProps>;
9
10
  declare const TabList: import("svelte").Component<TabListProps, {}, "element">;
10
11
  export default TabList;
@@ -1,20 +1,21 @@
1
1
  <script lang="ts" module>
2
2
  import type { Props } from "../utils/types.js"
3
- import type { SvelteHTMLElements } from "svelte/elements"
4
3
 
5
4
  const DEFAULT_PANEL_TAG = "div" as const
6
- type PanelRenderPropArg = {
5
+ export type PanelRenderPropArg = {
7
6
  selected: boolean
8
7
  focus: boolean
9
8
  }
10
9
  type PanelPropsWeControl = "role" | "aria-labelledby"
11
10
  const PanelRenderFeatures = RenderFeatures.RenderStrategy | RenderFeatures.Static
12
11
 
13
- export type TabPanelProps = Props<
14
- typeof DEFAULT_PANEL_TAG,
15
- PanelRenderPropArg,
16
- PropsForFeatures<typeof PanelRenderFeatures> & { element?: HTMLElement; id?: string; tabIndex?: number }
17
- >
12
+ export type TabPanelOwnProps = PropsForFeatures<typeof PanelRenderFeatures> & {
13
+ element?: HTMLElement
14
+ id?: string
15
+ tabIndex?: number
16
+ }
17
+
18
+ export type TabPanelProps = Props<typeof DEFAULT_PANEL_TAG, PanelRenderPropArg, TabPanelOwnProps>
18
19
  </script>
19
20
 
20
21
  <script lang="ts">
@@ -1,15 +1,16 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare const DEFAULT_PANEL_TAG: "div";
3
- type PanelRenderPropArg = {
3
+ export type PanelRenderPropArg = {
4
4
  selected: boolean;
5
5
  focus: boolean;
6
6
  };
7
7
  declare const PanelRenderFeatures: number;
8
- export type TabPanelProps = Props<typeof DEFAULT_PANEL_TAG, PanelRenderPropArg, PropsForFeatures<typeof PanelRenderFeatures> & {
8
+ export type TabPanelOwnProps = PropsForFeatures<typeof PanelRenderFeatures> & {
9
9
  element?: HTMLElement;
10
10
  id?: string;
11
11
  tabIndex?: number;
12
- }>;
12
+ };
13
+ export type TabPanelProps = Props<typeof DEFAULT_PANEL_TAG, PanelRenderPropArg, TabPanelOwnProps>;
13
14
  import { type PropsForFeatures } from "../utils/render.js";
14
15
  declare const TabPanel: import("svelte").Component<TabPanelProps, {}, "element">;
15
16
  export default TabPanel;
@@ -4,11 +4,13 @@
4
4
  import { useTabs } from "./context.svelte.js"
5
5
 
6
6
  let DEFAULT_PANELS_TAG = "div" as const
7
- type PanelsRenderPropArg = {
7
+ export type PanelsRenderPropArg = {
8
8
  selectedIndex: number
9
9
  }
10
10
 
11
- export type TabPanelsProps = Props<typeof DEFAULT_PANELS_TAG, PanelsRenderPropArg, { element?: HTMLElement }>
11
+ export type TabPanelsOwnProps = { element?: HTMLElement }
12
+
13
+ export type TabPanelsProps = Props<typeof DEFAULT_PANELS_TAG, PanelsRenderPropArg, TabPanelsOwnProps>
12
14
  </script>
13
15
 
14
16
  <script lang="ts">
@@ -1,10 +1,11 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare let DEFAULT_PANELS_TAG: "div";
3
- type PanelsRenderPropArg = {
3
+ export type PanelsRenderPropArg = {
4
4
  selectedIndex: number;
5
5
  };
6
- export type TabPanelsProps = Props<typeof DEFAULT_PANELS_TAG, PanelsRenderPropArg, {
6
+ export type TabPanelsOwnProps = {
7
7
  element?: HTMLElement;
8
- }>;
8
+ };
9
+ export type TabPanelsProps = Props<typeof DEFAULT_PANELS_TAG, PanelsRenderPropArg, TabPanelsOwnProps>;
9
10
  declare const TabPanels: import("svelte").Component<TabPanelsProps, {}, "element">;
10
11
  export default TabPanels;
@@ -1,5 +1,5 @@
1
- export { default as Tab, type TabProps } from "./Tab.svelte";
2
- export { default as TabGroup, type TabGroupProps } from "./TabGroup.svelte";
3
- export { default as TabList, type TabListProps } from "./TabList.svelte";
4
- export { default as TabPanel, type TabPanelProps } from "./TabPanel.svelte";
5
- export { default as TabPanels, type TabPanelsProps } from "./TabPanels.svelte";
1
+ export { default as Tab, type TabProps, type TabRenderPropArg as TabSlot, type TabOwnProps } from "./Tab.svelte";
2
+ export { default as TabGroup, type TabGroupProps, type TabsRenderPropArg as TabGroupSlot, type TabGroupOwnProps, } from "./TabGroup.svelte";
3
+ export { default as TabList, type TabListProps, type ListRenderPropArg as TabListSlot, type TabListOwnProps, } from "./TabList.svelte";
4
+ export { default as TabPanel, type TabPanelProps, type PanelRenderPropArg as TabPanelSlot, type TabPanelOwnProps, } from "./TabPanel.svelte";
5
+ export { default as TabPanels, type TabPanelsProps, type PanelsRenderPropArg as TabPanelsSlot, } from "./TabPanels.svelte";
@@ -1,5 +1,5 @@
1
1
  export { default as Tab } from "./Tab.svelte";
2
- export { default as TabGroup } from "./TabGroup.svelte";
3
- export { default as TabList } from "./TabList.svelte";
4
- export { default as TabPanel } from "./TabPanel.svelte";
5
- export { default as TabPanels } from "./TabPanels.svelte";
2
+ export { default as TabGroup, } from "./TabGroup.svelte";
3
+ export { default as TabList, } from "./TabList.svelte";
4
+ export { default as TabPanel, } from "./TabPanel.svelte";
5
+ export { default as TabPanels, } from "./TabPanels.svelte";
@@ -1,10 +1,9 @@
1
1
  <script lang="ts" module>
2
2
  import type { Props } from "../utils/types.js"
3
- import type { SvelteHTMLElements } from "svelte/elements"
4
3
 
5
4
  const DEFAULT_TEXTAREA_TAG = "textarea" as const
6
5
 
7
- type TextareaRenderPropArg = {
6
+ export type TextareaRenderPropArg = {
8
7
  disabled: boolean
9
8
  hover: boolean
10
9
  focus: boolean
@@ -13,17 +12,19 @@
13
12
  }
14
13
  type TextareaPropsWeControl = "aria-labelledby" | "aria-describedby"
15
14
 
15
+ export type TextareaOwnProps<TValue = string> = {
16
+ element?: HTMLElement
17
+ id?: string
18
+ value?: TValue
19
+ disabled?: boolean
20
+ invalid?: boolean
21
+ autofocus?: boolean
22
+ }
23
+
16
24
  export type TextareaProps<TValue = string> = Props<
17
25
  typeof DEFAULT_TEXTAREA_TAG,
18
26
  TextareaRenderPropArg,
19
- {
20
- element?: HTMLElement
21
- id?: string
22
- value?: TValue
23
- disabled?: boolean
24
- invalid?: boolean
25
- autofocus?: boolean
26
- }
27
+ TextareaOwnProps<TValue>
27
28
  >
28
29
  </script>
29
30
 
@@ -1,20 +1,21 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare const DEFAULT_TEXTAREA_TAG: "textarea";
3
- type TextareaRenderPropArg = {
3
+ export type TextareaRenderPropArg = {
4
4
  disabled: boolean;
5
5
  hover: boolean;
6
6
  focus: boolean;
7
7
  autofocus: boolean;
8
8
  invalid: boolean;
9
9
  };
10
- export type TextareaProps<TValue = string> = Props<typeof DEFAULT_TEXTAREA_TAG, TextareaRenderPropArg, {
10
+ export type TextareaOwnProps<TValue = string> = {
11
11
  element?: HTMLElement;
12
12
  id?: string;
13
13
  value?: TValue;
14
14
  disabled?: boolean;
15
15
  invalid?: boolean;
16
16
  autofocus?: boolean;
17
- }>;
17
+ };
18
+ export type TextareaProps<TValue = string> = Props<typeof DEFAULT_TEXTAREA_TAG, TextareaRenderPropArg, TextareaOwnProps<TValue>>;
18
19
  declare class __sveltets_Render<TValue = string> {
19
20
  props(): TextareaProps<TValue>;
20
21
  events(): {};
@@ -1 +1 @@
1
- export { default as Textarea, type TextareaProps } from "./Textarea.svelte";
1
+ export { default as Textarea, type TextareaProps, type TextareaRenderPropArg as TextareaSlot, type TextareaOwnProps, } from "./Textarea.svelte";
@@ -1 +1 @@
1
- export { default as Textarea } from "./Textarea.svelte";
1
+ export { default as Textarea, } from "./Textarea.svelte";
@@ -1,7 +1,16 @@
1
1
  <script lang="ts" module>
2
2
  import { State, useOpenClosed } from "../internal/open-closed.js"
3
3
  import { setContext, untrack } from "svelte"
4
- import { type TransitionChildProps, TransitionChildRenderFeatures } from "./TransitionChild.svelte"
4
+ import {
5
+ type TransitionChildOwnProps,
6
+ type TransitionChildProps,
7
+ TransitionChildRenderFeatures,
8
+ } from "./TransitionChild.svelte"
9
+
10
+ export type TransitionRootOwnProps = TransitionChildOwnProps & {
11
+ show?: boolean
12
+ appear?: boolean
13
+ }
5
14
 
6
15
  export type TransitionRootProps = TransitionChildProps & {
7
16
  show?: boolean
@@ -1,4 +1,8 @@
1
- import { type TransitionChildProps } from "./TransitionChild.svelte";
1
+ import { type TransitionChildOwnProps, type TransitionChildProps } from "./TransitionChild.svelte";
2
+ export type TransitionRootOwnProps = TransitionChildOwnProps & {
3
+ show?: boolean;
4
+ appear?: boolean;
5
+ };
2
6
  export type TransitionRootProps = TransitionChildProps & {
3
7
  show?: boolean;
4
8
  appear?: boolean;
@@ -5,12 +5,14 @@
5
5
 
6
6
  type TransitionChildPropsWeControl = never
7
7
 
8
+ export type TransitionChildOwnProps = PropsForFeatures<typeof TransitionChildRenderFeatures> &
9
+ TransitionClasses &
10
+ TransitionEvents & { transition?: boolean; appear?: boolean; element?: HTMLElement }
11
+
8
12
  export type TransitionChildProps = Props<
9
13
  typeof DEFAULT_TRANSITION_CHILD_TAG,
10
14
  TransitionChildRenderPropArg,
11
- PropsForFeatures<typeof TransitionChildRenderFeatures> &
12
- TransitionClasses &
13
- TransitionEvents & { transition?: boolean; appear?: boolean; element?: HTMLElement }
15
+ TransitionChildOwnProps
14
16
  >
15
17
 
16
18
  export const DEFAULT_TRANSITION_CHILD_TAG = "div"
@@ -1,11 +1,12 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  import { RenderFeatures, type PropsForFeatures } from "../utils/render.js";
3
3
  import type { TransitionEvents, TransitionClasses } from "./context.svelte.js";
4
- export type TransitionChildProps = Props<typeof DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderPropArg, PropsForFeatures<typeof TransitionChildRenderFeatures> & TransitionClasses & TransitionEvents & {
4
+ export type TransitionChildOwnProps = PropsForFeatures<typeof TransitionChildRenderFeatures> & TransitionClasses & TransitionEvents & {
5
5
  transition?: boolean;
6
6
  appear?: boolean;
7
7
  element?: HTMLElement;
8
- }>;
8
+ };
9
+ export type TransitionChildProps = Props<typeof DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderPropArg, TransitionChildOwnProps>;
9
10
  export declare const DEFAULT_TRANSITION_CHILD_TAG = "div";
10
11
  export type TransitionChildRenderPropArg = {
11
12
  element?: HTMLElement;
@@ -1,2 +1,2 @@
1
- export { default as Transition, type TransitionRootProps } from "./Transition.svelte";
2
- export { default as TransitionChild, type TransitionChildProps } from "./TransitionChild.svelte";
1
+ export { default as Transition, type TransitionRootProps as TransitionProps, type TransitionRootOwnProps as TransitionOwnProps, } from "./Transition.svelte";
2
+ export { default as TransitionChild, type TransitionChildProps, type TransitionChildRenderPropArg as TransitionChildSlot, type TransitionChildRenderPropArg as TransitionSlot, type TransitionChildOwnProps, } from "./TransitionChild.svelte";
@@ -1,2 +1,2 @@
1
- export { default as Transition } from "./Transition.svelte";
2
- export { default as TransitionChild } from "./TransitionChild.svelte";
1
+ export { default as Transition, } from "./Transition.svelte";
2
+ export { default as TransitionChild, } from "./TransitionChild.svelte";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pzerelles/headlessui-svelte",
3
- "version": "2.1.2-next.33",
3
+ "version": "2.1.2-next.35",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",