@pzerelles/headlessui-svelte 2.1.2-next.34 → 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 (110) hide show
  1. package/dist/button/Button.svelte +8 -10
  2. package/dist/button/Button.svelte.d.ts +3 -2
  3. package/dist/button/index.d.ts +1 -1
  4. package/dist/button/index.js +1 -1
  5. package/dist/checkbox/Checkbox.svelte +15 -13
  6. package/dist/checkbox/Checkbox.svelte.d.ts +3 -2
  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 -1
  10. package/dist/description/Description.svelte +6 -8
  11. package/dist/description/Description.svelte.d.ts +3 -2
  12. package/dist/description/index.d.ts +1 -1
  13. package/dist/dialog/Dialog.svelte +13 -16
  14. package/dist/dialog/Dialog.svelte.d.ts +3 -2
  15. package/dist/dialog/DialogBackdrop.svelte +3 -5
  16. package/dist/dialog/DialogBackdrop.svelte.d.ts +3 -2
  17. package/dist/dialog/DialogPanel.svelte +7 -9
  18. package/dist/dialog/DialogPanel.svelte.d.ts +3 -2
  19. package/dist/dialog/DialogTitle.svelte +3 -5
  20. package/dist/dialog/DialogTitle.svelte.d.ts +3 -2
  21. package/dist/dialog/index.d.ts +4 -4
  22. package/dist/dialog/index.js +1 -1
  23. package/dist/field/Field.svelte +6 -8
  24. package/dist/field/Field.svelte.d.ts +3 -2
  25. package/dist/field/index.d.ts +1 -1
  26. package/dist/fieldset/Fieldset.svelte +6 -8
  27. package/dist/fieldset/Fieldset.svelte.d.ts +3 -2
  28. package/dist/fieldset/index.d.ts +1 -1
  29. package/dist/focus-trap/FocusTrap.svelte +12 -14
  30. package/dist/focus-trap/FocusTrap.svelte.d.ts +3 -2
  31. package/dist/input/Input.svelte +10 -12
  32. package/dist/input/Input.svelte.d.ts +3 -2
  33. package/dist/input/index.d.ts +1 -1
  34. package/dist/input/index.js +1 -1
  35. package/dist/label/Label.svelte +8 -10
  36. package/dist/label/Label.svelte.d.ts +3 -2
  37. package/dist/label/index.d.ts +1 -1
  38. package/dist/legend/Legend.svelte +6 -8
  39. package/dist/legend/Legend.svelte.d.ts +3 -2
  40. package/dist/listbox/Listbox.svelte +16 -14
  41. package/dist/listbox/Listbox.svelte.d.ts +3 -2
  42. package/dist/listbox/ListboxButton.svelte +8 -10
  43. package/dist/listbox/ListboxButton.svelte.d.ts +3 -2
  44. package/dist/listbox/ListboxOption.svelte +8 -6
  45. package/dist/listbox/ListboxOption.svelte.d.ts +3 -2
  46. package/dist/listbox/ListboxOptions.svelte +10 -12
  47. package/dist/listbox/ListboxOptions.svelte.d.ts +3 -2
  48. package/dist/listbox/ListboxSelectedOption.svelte +7 -5
  49. package/dist/listbox/ListboxSelectedOption.svelte.d.ts +3 -2
  50. package/dist/listbox/index.d.ts +5 -5
  51. package/dist/listbox/index.js +1 -1
  52. package/dist/menu/Menu.svelte +5 -6
  53. package/dist/menu/Menu.svelte.d.ts +3 -2
  54. package/dist/menu/MenuButton.svelte +9 -11
  55. package/dist/menu/MenuButton.svelte.d.ts +3 -2
  56. package/dist/menu/MenuHeading.svelte +6 -9
  57. package/dist/menu/MenuHeading.svelte.d.ts +3 -2
  58. package/dist/menu/MenuItem.svelte +7 -9
  59. package/dist/menu/MenuItem.svelte.d.ts +3 -2
  60. package/dist/menu/MenuItems.svelte +10 -12
  61. package/dist/menu/MenuItems.svelte.d.ts +3 -2
  62. package/dist/menu/MenuSection.svelte +5 -7
  63. package/dist/menu/MenuSection.svelte.d.ts +3 -2
  64. package/dist/menu/MenuSeparator.svelte +5 -7
  65. package/dist/menu/MenuSeparator.svelte.d.ts +3 -2
  66. package/dist/menu/index.d.ts +7 -7
  67. package/dist/menu/index.js +2 -2
  68. package/dist/popover/Popover.svelte +6 -8
  69. package/dist/popover/Popover.svelte.d.ts +3 -2
  70. package/dist/popover/PopoverBackdrop.svelte +7 -9
  71. package/dist/popover/PopoverBackdrop.svelte.d.ts +3 -2
  72. package/dist/popover/PopoverButton.svelte +8 -10
  73. package/dist/popover/PopoverButton.svelte.d.ts +3 -2
  74. package/dist/popover/PopoverGroup.svelte +5 -7
  75. package/dist/popover/PopoverGroup.svelte.d.ts +3 -2
  76. package/dist/popover/PopoverPanel.svelte +15 -17
  77. package/dist/popover/PopoverPanel.svelte.d.ts +3 -2
  78. package/dist/popover/index.d.ts +5 -5
  79. package/dist/popover/index.js +2 -2
  80. package/dist/select/Select.svelte +9 -11
  81. package/dist/select/Select.svelte.d.ts +3 -2
  82. package/dist/select/index.d.ts +1 -1
  83. package/dist/select/index.js +1 -1
  84. package/dist/switch/Switch.svelte +15 -17
  85. package/dist/switch/Switch.svelte.d.ts +3 -2
  86. package/dist/switch/index.d.ts +1 -1
  87. package/dist/switch/index.js +1 -1
  88. package/dist/tabs/Tab.svelte +8 -10
  89. package/dist/tabs/Tab.svelte.d.ts +3 -2
  90. package/dist/tabs/TabGroup.svelte +10 -12
  91. package/dist/tabs/TabGroup.svelte.d.ts +3 -2
  92. package/dist/tabs/TabList.svelte +5 -7
  93. package/dist/tabs/TabList.svelte.d.ts +3 -2
  94. package/dist/tabs/TabPanel.svelte +7 -6
  95. package/dist/tabs/TabPanel.svelte.d.ts +3 -2
  96. package/dist/tabs/TabPanels.svelte +3 -1
  97. package/dist/tabs/TabPanels.svelte.d.ts +3 -2
  98. package/dist/tabs/index.d.ts +4 -4
  99. package/dist/tabs/index.js +3 -3
  100. package/dist/textarea/Textarea.svelte +10 -9
  101. package/dist/textarea/Textarea.svelte.d.ts +3 -2
  102. package/dist/textarea/index.d.ts +1 -1
  103. package/dist/textarea/index.js +1 -1
  104. package/dist/transition/Transition.svelte +10 -1
  105. package/dist/transition/Transition.svelte.d.ts +5 -1
  106. package/dist/transition/TransitionChild.svelte +5 -3
  107. package/dist/transition/TransitionChild.svelte.d.ts +3 -2
  108. package/dist/transition/index.d.ts +2 -2
  109. package/dist/transition/index.js +1 -1
  110. package/package.json +1 -1
@@ -11,16 +11,14 @@
11
11
  autofocus: boolean
12
12
  }
13
13
 
14
- export type ButtonProps = Props<
15
- typeof DEFAULT_BUTTON_TAG,
16
- ButtonRenderPropArg,
17
- {
18
- element?: HTMLElement
19
- disabled?: boolean
20
- autofocus?: boolean
21
- type?: "button" | "submit" | "reset"
22
- }
23
- >
14
+ export type ButtonOwnProps = {
15
+ element?: HTMLElement
16
+ disabled?: boolean
17
+ autofocus?: boolean
18
+ type?: "button" | "submit" | "reset"
19
+ }
20
+
21
+ export type ButtonProps = Props<typeof DEFAULT_BUTTON_TAG, ButtonRenderPropArg, ButtonOwnProps>
24
22
  </script>
25
23
 
26
24
  <script lang="ts">
@@ -7,11 +7,12 @@ export type ButtonRenderPropArg = {
7
7
  active: boolean;
8
8
  autofocus: boolean;
9
9
  };
10
- export type ButtonProps = Props<typeof DEFAULT_BUTTON_TAG, ButtonRenderPropArg, {
10
+ export type ButtonOwnProps = {
11
11
  element?: HTMLElement;
12
12
  disabled?: boolean;
13
13
  autofocus?: boolean;
14
14
  type?: "button" | "submit" | "reset";
15
- }>;
15
+ };
16
+ export type ButtonProps = Props<typeof DEFAULT_BUTTON_TAG, ButtonRenderPropArg, ButtonOwnProps>;
16
17
  declare const Button: import("svelte").Component<ButtonProps, {}, "element">;
17
18
  export default Button;
@@ -1 +1 @@
1
- export { default as Button, type ButtonProps, type ButtonRenderPropArg as ButtonSlot } from "./Button.svelte";
1
+ export { default as Button, type ButtonProps, type ButtonRenderPropArg as ButtonSlot, type ButtonOwnProps, } from "./Button.svelte";
@@ -1 +1 @@
1
- export { default as Button } from "./Button.svelte";
1
+ export { default as Button, } from "./Button.svelte";
@@ -22,22 +22,24 @@
22
22
  | "role"
23
23
  | "tabIndex"
24
24
 
25
+ export type CheckboxOwnProps<TType = string> = {
26
+ element?: HTMLElement
27
+ id?: string
28
+ value?: TType
29
+ disabled?: boolean
30
+ indeterminate?: boolean
31
+ checked?: boolean
32
+ defaultChecked?: boolean
33
+ autofocus?: boolean
34
+ form?: string
35
+ name?: string
36
+ onchange?: (checked: boolean) => void
37
+ }
38
+
25
39
  export type CheckboxProps<TType = string> = Props<
26
40
  typeof DEFAULT_CHECKBOX_TAG,
27
41
  CheckboxRenderPropArg,
28
- {
29
- element?: HTMLElement
30
- id?: string
31
- value?: TType
32
- disabled?: boolean
33
- indeterminate?: boolean
34
- checked?: boolean
35
- defaultChecked?: boolean
36
- autofocus?: boolean
37
- form?: string
38
- name?: string
39
- onchange?: (checked: boolean) => void
40
- }
42
+ CheckboxOwnProps<TType>
41
43
  >
42
44
  </script>
43
45
 
@@ -10,7 +10,7 @@ export type CheckboxRenderPropArg = {
10
10
  disabled: boolean;
11
11
  indeterminate: boolean;
12
12
  };
13
- export type CheckboxProps<TType = string> = Props<typeof DEFAULT_CHECKBOX_TAG, CheckboxRenderPropArg, {
13
+ export type CheckboxOwnProps<TType = string> = {
14
14
  element?: HTMLElement;
15
15
  id?: string;
16
16
  value?: TType;
@@ -22,7 +22,8 @@ export type CheckboxProps<TType = string> = Props<typeof DEFAULT_CHECKBOX_TAG, C
22
22
  form?: string;
23
23
  name?: string;
24
24
  onchange?: (checked: boolean) => void;
25
- }>;
25
+ };
26
+ export type CheckboxProps<TType = string> = Props<typeof DEFAULT_CHECKBOX_TAG, CheckboxRenderPropArg, CheckboxOwnProps<TType>>;
26
27
  declare class __sveltets_Render<TType> {
27
28
  props(): CheckboxProps<TType>;
28
29
  events(): {};
@@ -1 +1 @@
1
- export { default as Checkbox, type CheckboxProps, type CheckboxRenderPropArg as CheckboxSlot } from "./Checkbox.svelte";
1
+ export { default as Checkbox, type CheckboxProps, type CheckboxRenderPropArg as CheckboxSlot, type CheckboxOwnProps, } from "./Checkbox.svelte";
@@ -1 +1 @@
1
- export { default as Checkbox } from "./Checkbox.svelte";
1
+ export { default as Checkbox, } from "./Checkbox.svelte";
@@ -1,2 +1,2 @@
1
1
  export { default as CloseButton, type CloseButtonProps } from "./CloseButton.svelte";
2
- export { type ButtonSlot as CloseButtonSlot } from "../button/index.js";
2
+ export { type ButtonSlot as CloseButtonSlot, type ButtonOwnProps as CloseButtonOwnProps } from "../button/index.js";
@@ -3,14 +3,12 @@
3
3
 
4
4
  const DEFAULT_DESCRIPTION_TAG = "p" as const
5
5
 
6
- export type DescriptionProps = Props<
7
- typeof DEFAULT_DESCRIPTION_TAG,
8
- {},
9
- {
10
- id?: string
11
- element?: HTMLElement
12
- }
13
- >
6
+ export type DescriptionOwnProps = {
7
+ id?: string
8
+ element?: HTMLElement
9
+ }
10
+
11
+ export type DescriptionProps = Props<typeof DEFAULT_DESCRIPTION_TAG, {}, DescriptionOwnProps>
14
12
  </script>
15
13
 
16
14
  <script lang="ts">
@@ -1,8 +1,9 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare const DEFAULT_DESCRIPTION_TAG: "p";
3
- export type DescriptionProps = Props<typeof DEFAULT_DESCRIPTION_TAG, {}, {
3
+ export type DescriptionOwnProps = {
4
4
  id?: string;
5
5
  element?: HTMLElement;
6
- }>;
6
+ };
7
+ export type DescriptionProps = Props<typeof DEFAULT_DESCRIPTION_TAG, {}, DescriptionOwnProps>;
7
8
  declare const Description: import("svelte").Component<DescriptionProps, {}, "element">;
8
9
  export default Description;
@@ -1 +1 @@
1
- export { default as Description, type DescriptionProps } from "./Description.svelte";
1
+ export { default as Description, type DescriptionProps, type DescriptionOwnProps } from "./Description.svelte";
@@ -1,7 +1,6 @@
1
1
  <script lang="ts" module>
2
2
  import type { Props } from "../utils/types.js"
3
3
  import { RenderFeatures, type PropsForFeatures } from "../utils/render.js"
4
- import type { SvelteHTMLElements } from "svelte/elements"
5
4
 
6
5
  export const DEFAULT_DIALOG_TAG = "div" as const
7
6
 
@@ -12,21 +11,19 @@
12
11
 
13
12
  export const DialogRenderFeatures = RenderFeatures.RenderStrategy | RenderFeatures.Static
14
13
 
15
- export type DialogProps = Props<
16
- typeof DEFAULT_DIALOG_TAG,
17
- DialogRenderPropArg,
18
- PropsForFeatures<typeof DialogRenderFeatures> & {
19
- element?: HTMLElement
20
- id?: string
21
- open?: boolean
22
- onclose(value: boolean): void
23
- initialFocus?: HTMLElement
24
- role?: "dialog" | "alertdialog"
25
- autofocus?: boolean
26
- transition?: boolean
27
- __demoMode?: boolean
28
- }
29
- >
14
+ export type DialogOwnProps = PropsForFeatures<typeof DialogRenderFeatures> & {
15
+ element?: HTMLElement
16
+ id?: string
17
+ open?: boolean
18
+ onclose(value: boolean): void
19
+ initialFocus?: HTMLElement
20
+ role?: "dialog" | "alertdialog"
21
+ autofocus?: boolean
22
+ transition?: boolean
23
+ __demoMode?: boolean
24
+ }
25
+
26
+ export type DialogProps = Props<typeof DEFAULT_DIALOG_TAG, DialogRenderPropArg, DialogOwnProps>
30
27
  </script>
31
28
 
32
29
  <script lang="ts">
@@ -5,7 +5,7 @@ export type DialogRenderPropArg = {
5
5
  open: boolean;
6
6
  };
7
7
  export declare const DialogRenderFeatures: number;
8
- export type DialogProps = Props<typeof DEFAULT_DIALOG_TAG, DialogRenderPropArg, PropsForFeatures<typeof DialogRenderFeatures> & {
8
+ export type DialogOwnProps = PropsForFeatures<typeof DialogRenderFeatures> & {
9
9
  element?: HTMLElement;
10
10
  id?: string;
11
11
  open?: boolean;
@@ -15,6 +15,7 @@ export type DialogProps = Props<typeof DEFAULT_DIALOG_TAG, DialogRenderPropArg,
15
15
  autofocus?: boolean;
16
16
  transition?: boolean;
17
17
  __demoMode?: boolean;
18
- }>;
18
+ };
19
+ export type DialogProps = Props<typeof DEFAULT_DIALOG_TAG, DialogRenderPropArg, DialogOwnProps>;
19
20
  declare const Dialog: import("svelte").Component<DialogProps, {}, "element">;
20
21
  export default Dialog;
@@ -6,11 +6,9 @@
6
6
  open: boolean
7
7
  }
8
8
 
9
- export type DialogBackdropProps = Props<
10
- typeof DEFAULT_BACKDROP_TAG,
11
- BackdropRenderPropArg,
12
- { transition?: boolean; element?: HTMLElement }
13
- >
9
+ export type DialogBackdropOwnProps = { transition?: boolean; element?: HTMLElement }
10
+
11
+ export type DialogBackdropProps = Props<typeof DEFAULT_BACKDROP_TAG, BackdropRenderPropArg, DialogBackdropOwnProps>
14
12
  </script>
15
13
 
16
14
  <script lang="ts">
@@ -3,9 +3,10 @@ declare let DEFAULT_BACKDROP_TAG: "div";
3
3
  export type BackdropRenderPropArg = {
4
4
  open: boolean;
5
5
  };
6
- export type DialogBackdropProps = Props<typeof DEFAULT_BACKDROP_TAG, BackdropRenderPropArg, {
6
+ export type DialogBackdropOwnProps = {
7
7
  transition?: boolean;
8
8
  element?: HTMLElement;
9
- }>;
9
+ };
10
+ export type DialogBackdropProps = Props<typeof DEFAULT_BACKDROP_TAG, BackdropRenderPropArg, DialogBackdropOwnProps>;
10
11
  declare const DialogBackdrop: import("svelte").Component<DialogBackdropProps, {}, "element">;
11
12
  export default DialogBackdrop;
@@ -6,15 +6,13 @@
6
6
  open: boolean
7
7
  }
8
8
 
9
- export type DialogPanelProps = Props<
10
- typeof DEFAULT_PANEL_TAG,
11
- PanelRenderPropArg,
12
- {
13
- element?: HTMLElement
14
- id?: string
15
- transition?: boolean
16
- }
17
- >
9
+ export type DialogPanelOwnProps = {
10
+ element?: HTMLElement
11
+ id?: string
12
+ transition?: boolean
13
+ }
14
+
15
+ export type DialogPanelProps = Props<typeof DEFAULT_PANEL_TAG, PanelRenderPropArg, DialogPanelOwnProps>
18
16
  </script>
19
17
 
20
18
  <script lang="ts">
@@ -3,10 +3,11 @@ declare let DEFAULT_PANEL_TAG: "div";
3
3
  export type PanelRenderPropArg = {
4
4
  open: boolean;
5
5
  };
6
- export type DialogPanelProps = Props<typeof DEFAULT_PANEL_TAG, PanelRenderPropArg, {
6
+ export type DialogPanelOwnProps = {
7
7
  element?: HTMLElement;
8
8
  id?: string;
9
9
  transition?: boolean;
10
- }>;
10
+ };
11
+ export type DialogPanelProps = Props<typeof DEFAULT_PANEL_TAG, PanelRenderPropArg, DialogPanelOwnProps>;
11
12
  declare const DialogPanel: import("svelte").Component<DialogPanelProps, {}, "element">;
12
13
  export default DialogPanel;
@@ -6,11 +6,9 @@
6
6
  open: boolean
7
7
  }
8
8
 
9
- export type DialogTitleProps = Props<
10
- typeof DEFAULT_TITLE_TAG,
11
- TitleRenderPropArg,
12
- { id?: string; element?: HTMLElement }
13
- >
9
+ export type DialogTitleOwnProps = { id?: string; element?: HTMLElement }
10
+
11
+ export type DialogTitleProps = Props<typeof DEFAULT_TITLE_TAG, TitleRenderPropArg, DialogTitleOwnProps>
14
12
 
15
13
  //
16
14
  </script>
@@ -3,9 +3,10 @@ declare let DEFAULT_TITLE_TAG: "h2";
3
3
  export type TitleRenderPropArg = {
4
4
  open: boolean;
5
5
  };
6
- export type DialogTitleProps = Props<typeof DEFAULT_TITLE_TAG, TitleRenderPropArg, {
6
+ export type DialogTitleOwnProps = {
7
7
  id?: string;
8
8
  element?: HTMLElement;
9
- }>;
9
+ };
10
+ export type DialogTitleProps = Props<typeof DEFAULT_TITLE_TAG, TitleRenderPropArg, DialogTitleOwnProps>;
10
11
  declare const DialogTitle: import("svelte").Component<DialogTitleProps, {}, "element">;
11
12
  export default DialogTitle;
@@ -1,4 +1,4 @@
1
- export { default as Dialog, type DialogProps, type DialogRenderPropArg as DialogSlot } from "./Dialog.svelte";
2
- export { default as DialogBackdrop, type DialogBackdropProps, type BackdropRenderPropArg as DialogBackdropSlot, } from "./DialogBackdrop.svelte";
3
- export { default as DialogPanel, type DialogPanelProps, type PanelRenderPropArg as DialogPanelSlot, } from "./DialogPanel.svelte";
4
- export { default as DialogTitle, type DialogTitleProps, type TitleRenderPropArg as DialogTitleSlot, } from "./DialogTitle.svelte";
1
+ export { default as Dialog, type DialogProps, type DialogRenderPropArg as DialogSlot, type DialogOwnProps, } from "./Dialog.svelte";
2
+ export { default as DialogBackdrop, type DialogBackdropProps, type BackdropRenderPropArg as DialogBackdropSlot, type DialogBackdropOwnProps, } from "./DialogBackdrop.svelte";
3
+ export { default as DialogPanel, type DialogPanelProps, type PanelRenderPropArg as DialogPanelSlot, type DialogPanelOwnProps, } from "./DialogPanel.svelte";
4
+ export { default as DialogTitle, type DialogTitleProps, type TitleRenderPropArg as DialogTitleSlot, type DialogTitleOwnProps, } from "./DialogTitle.svelte";
@@ -1,4 +1,4 @@
1
- export { default as Dialog } from "./Dialog.svelte";
1
+ export { default as Dialog, } from "./Dialog.svelte";
2
2
  export { default as DialogBackdrop, } from "./DialogBackdrop.svelte";
3
3
  export { default as DialogPanel, } from "./DialogPanel.svelte";
4
4
  export { default as DialogTitle, } from "./DialogTitle.svelte";
@@ -3,14 +3,12 @@
3
3
 
4
4
  let DEFAULT_FIELD_TAG = "div" as const
5
5
 
6
- export type FieldProps = Props<
7
- typeof DEFAULT_FIELD_TAG,
8
- {},
9
- {
10
- element?: HTMLElement
11
- disabled?: boolean
12
- }
13
- >
6
+ export type FieldOwnProps = {
7
+ element?: HTMLElement
8
+ disabled?: boolean
9
+ }
10
+
11
+ export type FieldProps = Props<typeof DEFAULT_FIELD_TAG, {}, FieldOwnProps>
14
12
  </script>
15
13
 
16
14
  <script lang="ts">
@@ -1,8 +1,9 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare let DEFAULT_FIELD_TAG: "div";
3
- export type FieldProps = Props<typeof DEFAULT_FIELD_TAG, {}, {
3
+ export type FieldOwnProps = {
4
4
  element?: HTMLElement;
5
5
  disabled?: boolean;
6
- }>;
6
+ };
7
+ export type FieldProps = Props<typeof DEFAULT_FIELD_TAG, {}, FieldOwnProps>;
7
8
  declare const Field: import("svelte").Component<FieldProps, {}, "element">;
8
9
  export default Field;
@@ -1 +1 @@
1
- export { default as Field, type FieldProps } from "./Field.svelte";
1
+ export { default as Field, type FieldProps, type FieldOwnProps } from "./Field.svelte";
@@ -5,14 +5,12 @@
5
5
 
6
6
  type FieldsetPropsWeControl = "aria-labelledby" | "aria-disabled" | "role"
7
7
 
8
- export type FieldsetProps = Props<
9
- typeof DEFAULT_FIELDSET_TAG,
10
- {},
11
- {
12
- element?: HTMLElement
13
- disabled?: boolean
14
- }
15
- >
8
+ export type FieldsetOwnProps = {
9
+ element?: HTMLElement
10
+ disabled?: boolean
11
+ }
12
+
13
+ export type FieldsetProps = Props<typeof DEFAULT_FIELDSET_TAG, {}, FieldsetOwnProps>
16
14
  </script>
17
15
 
18
16
  <script lang="ts">
@@ -1,8 +1,9 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare const DEFAULT_FIELDSET_TAG: "fieldset";
3
- export type FieldsetProps = Props<typeof DEFAULT_FIELDSET_TAG, {}, {
3
+ export type FieldsetOwnProps = {
4
4
  element?: HTMLElement;
5
5
  disabled?: boolean;
6
- }>;
6
+ };
7
+ export type FieldsetProps = Props<typeof DEFAULT_FIELDSET_TAG, {}, FieldsetOwnProps>;
7
8
  declare const Fieldset: import("svelte").Component<FieldsetProps, {}, "element">;
8
9
  export default Fieldset;
@@ -1 +1 @@
1
- export { default as Fieldset, type FieldsetProps } from "./Fieldset.svelte";
1
+ export { default as Fieldset, type FieldsetProps, type FieldsetOwnProps } from "./Fieldset.svelte";
@@ -41,20 +41,18 @@
41
41
 
42
42
  type FocusTrapPropsWeControl = never
43
43
 
44
- export type FocusTrapProps = Props<
45
- typeof DEFAULT_FOCUS_TRAP_TAG,
46
- {},
47
- {
48
- element?: HTMLElement
49
- initialFocus?: HTMLElement
50
- // A fallback element to focus, but this element will be skipped when tabbing around. This is
51
- // only done for focusing a fallback parent container (e.g.: A `Dialog`, but you want to tab
52
- // *inside* the dialog excluding the dialog itself).
53
- initialFocusFallback?: HTMLElement
54
- features?: FocusTrapFeatures
55
- containers?: Containers
56
- }
57
- >
44
+ export type FocusTrapOwnProps = {
45
+ element?: HTMLElement
46
+ initialFocus?: HTMLElement
47
+ // A fallback element to focus, but this element will be skipped when tabbing around. This is
48
+ // only done for focusing a fallback parent container (e.g.: A `Dialog`, but you want to tab
49
+ // *inside* the dialog excluding the dialog itself).
50
+ initialFocusFallback?: HTMLElement
51
+ features?: FocusTrapFeatures
52
+ containers?: Containers
53
+ }
54
+
55
+ export type FocusTrapProps = Props<typeof DEFAULT_FOCUS_TRAP_TAG, {}, FocusTrapOwnProps>
58
56
 
59
57
  function useRestoreElement(options?: { enabled: boolean }) {
60
58
  const { enabled } = $derived(options ?? { enabled: true })
@@ -3,12 +3,13 @@ import { FocusTrapFeatures } from "./FocusTrapFeatures.js";
3
3
  type Containers = (() => Iterable<HTMLElement>) | Iterable<HTMLElement>;
4
4
  declare const DEFAULT_FOCUS_TRAP_TAG: "div";
5
5
  export * from "./FocusTrapFeatures.js";
6
- export type FocusTrapProps = Props<typeof DEFAULT_FOCUS_TRAP_TAG, {}, {
6
+ export type FocusTrapOwnProps = {
7
7
  element?: HTMLElement;
8
8
  initialFocus?: HTMLElement;
9
9
  initialFocusFallback?: HTMLElement;
10
10
  features?: FocusTrapFeatures;
11
11
  containers?: Containers;
12
- }>;
12
+ };
13
+ export type FocusTrapProps = Props<typeof DEFAULT_FOCUS_TRAP_TAG, {}, FocusTrapOwnProps>;
13
14
  declare const FocusTrap: import("svelte").Component<FocusTrapProps, {}, "element">;
14
15
  export default FocusTrap;
@@ -13,18 +13,16 @@
13
13
  }
14
14
  type InputPropsWeControl = "aria-labelledby" | "aria-describedby"
15
15
 
16
- export type InputProps<TValue = string> = Props<
17
- typeof DEFAULT_INPUT_TAG,
18
- InputRenderPropArg,
19
- {
20
- element?: HTMLElement
21
- id?: string
22
- value?: TValue
23
- disabled?: boolean
24
- invalid?: boolean
25
- autofocus?: boolean
26
- }
27
- >
16
+ export type InputOwnProps<TValue = string> = {
17
+ element?: HTMLElement
18
+ id?: string
19
+ value?: TValue
20
+ disabled?: boolean
21
+ invalid?: boolean
22
+ autofocus?: boolean
23
+ }
24
+
25
+ export type InputProps<TValue = string> = Props<typeof DEFAULT_INPUT_TAG, InputRenderPropArg, InputOwnProps<TValue>>
28
26
  </script>
29
27
 
30
28
  <script lang="ts" generics="TValue = string">
@@ -7,14 +7,15 @@ export type InputRenderPropArg = {
7
7
  autofocus: boolean;
8
8
  invalid: boolean;
9
9
  };
10
- export type InputProps<TValue = string> = Props<typeof DEFAULT_INPUT_TAG, InputRenderPropArg, {
10
+ export type InputOwnProps<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 InputProps<TValue = string> = Props<typeof DEFAULT_INPUT_TAG, InputRenderPropArg, InputOwnProps<TValue>>;
18
19
  declare class __sveltets_Render<TValue = string> {
19
20
  props(): InputProps<TValue>;
20
21
  events(): {};
@@ -1 +1 @@
1
- export { default as Input, type InputProps, type InputRenderPropArg as InputSlot } from "./Input.svelte";
1
+ export { default as Input, type InputProps, type InputRenderPropArg as InputSlot, type InputOwnProps, } from "./Input.svelte";
@@ -1 +1 @@
1
- export { default as Input } from "./Input.svelte";
1
+ export { default as Input, } from "./Input.svelte";
@@ -3,16 +3,14 @@
3
3
 
4
4
  const DEFAULT_LABEL_TAG = "label" as const
5
5
 
6
- export type LabelProps = Props<
7
- typeof DEFAULT_LABEL_TAG,
8
- {},
9
- {
10
- element?: HTMLElement
11
- id?: string
12
- passive?: boolean
13
- htmlFor?: string
14
- }
15
- >
6
+ export type LabelOwnProps = {
7
+ element?: HTMLElement
8
+ id?: string
9
+ passive?: boolean
10
+ htmlFor?: string
11
+ }
12
+
13
+ export type LabelProps = Props<typeof DEFAULT_LABEL_TAG, {}, LabelOwnProps>
16
14
  </script>
17
15
 
18
16
  <script lang="ts">
@@ -1,10 +1,11 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare const DEFAULT_LABEL_TAG: "label";
3
- export type LabelProps = Props<typeof DEFAULT_LABEL_TAG, {}, {
3
+ export type LabelOwnProps = {
4
4
  element?: HTMLElement;
5
5
  id?: string;
6
6
  passive?: boolean;
7
7
  htmlFor?: string;
8
- }>;
8
+ };
9
+ export type LabelProps = Props<typeof DEFAULT_LABEL_TAG, {}, LabelOwnProps>;
9
10
  declare const Label: import("svelte").Component<LabelProps, {}, "element">;
10
11
  export default Label;
@@ -1 +1 @@
1
- export { default as Label, type LabelProps } from "./Label.svelte";
1
+ export { default as Label, type LabelProps, type LabelOwnProps } from "./Label.svelte";
@@ -4,14 +4,12 @@
4
4
 
5
5
  const DEFAULT_LEGEND_TAG = "div" as const
6
6
 
7
- export type LegendProps = Props<
8
- typeof DEFAULT_LEGEND_TAG,
9
- {},
10
- {
11
- element?: HTMLElement
12
- class?: string
13
- }
14
- >
7
+ export type LegendOwnProps = {
8
+ element?: HTMLElement
9
+ class?: string
10
+ }
11
+
12
+ export type LegendProps = Props<typeof DEFAULT_LEGEND_TAG, {}, LegendOwnProps>
15
13
  </script>
16
14
 
17
15
  <script lang="ts">
@@ -1,8 +1,9 @@
1
1
  import type { Props } from "../utils/types.js";
2
2
  declare const DEFAULT_LEGEND_TAG: "div";
3
- export type LegendProps = Props<typeof DEFAULT_LEGEND_TAG, {}, {
3
+ export type LegendOwnProps = {
4
4
  element?: HTMLElement;
5
5
  class?: string;
6
- }>;
6
+ };
7
+ export type LegendProps = Props<typeof DEFAULT_LEGEND_TAG, {}, LegendOwnProps>;
7
8
  declare const Legend: import("svelte").Component<LegendProps, {}, "">;
8
9
  export default Legend;