@webiny/admin-ui 6.4.5 → 6.6.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/Accordion/Accordion.d.ts +7 -6
  2. package/Accordion/components/AccordionItem.d.ts +7 -6
  3. package/Accordion/components/AccordionItemAction.d.ts +7 -6
  4. package/Accordion/components/AccordionItemIcon.d.ts +7 -6
  5. package/Accordion/components/AccordionItemSeparator.d.ts +7 -6
  6. package/Alert/Alert.d.ts +21 -19
  7. package/AutoComplete/AutoComplete.d.ts +7 -6
  8. package/AutoComplete/primitives/AutoCompletePrimitive.d.ts +7 -6
  9. package/Avatar/Avatar.d.ts +9 -8
  10. package/Avatar/components/AvatarFallback.d.ts +7 -6
  11. package/Avatar/components/AvatarImage.d.ts +7 -6
  12. package/Button/Button.d.ts +10 -9
  13. package/Button/CopyButton.d.ts +7 -6
  14. package/Button/IconButton.d.ts +10 -9
  15. package/Calendar/Calendar.d.ts +7 -6
  16. package/Card/Card.d.ts +8 -22
  17. package/Card/components/CancelAction.d.ts +8 -6
  18. package/Card/components/CardContent.d.ts +6 -6
  19. package/Card/components/CardTitle.d.ts +2 -2
  20. package/Card/components/ConfirmAction.d.ts +8 -6
  21. package/Card/components/Icon.d.ts +7 -6
  22. package/Checkbox/Checkbox.d.ts +7 -6
  23. package/Checkbox/primitives/CheckboxPrimitive.d.ts +17 -12
  24. package/CheckboxGroup/CheckboxGroup.d.ts +7 -6
  25. package/CheckboxGroup/primitives/CheckboxGroupPrimitive.d.ts +20 -12
  26. package/CodeEditor/CodeEditor.d.ts +7 -6
  27. package/CodeEditor/CodeEditorPrimitive.d.ts +7 -6
  28. package/ColorPicker/ColorPicker.d.ts +7 -6
  29. package/ColorPicker/primitives/ColorPickerPrimitive.d.ts +7 -6
  30. package/Command/Command.d.ts +10 -8
  31. package/DataList/DataListModal.d.ts +6 -3
  32. package/DataTable/DataTable.d.ts +7 -6
  33. package/DatePicker/DatePicker.d.ts +7 -6
  34. package/DatePicker/primitives/DatePickerPrimitive.d.ts +7 -6
  35. package/Dialog/Dialog.d.ts +8 -22
  36. package/Dialog/components/CancelAction.d.ts +8 -6
  37. package/Dialog/components/ConfirmAction.d.ts +8 -6
  38. package/Dialog/components/DialogContent.d.ts +1 -1
  39. package/Dialog/components/DialogFooter.d.ts +1 -1
  40. package/Dialog/components/DialogTitle.d.ts +1 -1
  41. package/Dialog/components/Icon.d.ts +7 -6
  42. package/Drawer/Drawer.d.ts +8 -22
  43. package/Drawer/Drawer.stories.js +1 -0
  44. package/Drawer/Drawer.stories.js.map +1 -1
  45. package/Drawer/components/CancelButton.d.ts +8 -6
  46. package/Drawer/components/ConfirmButton.d.ts +8 -6
  47. package/Drawer/components/DrawerContent.d.ts +1 -1
  48. package/Drawer/components/Icon.d.ts +7 -6
  49. package/DropdownMenu/components/DropdownMenuItem.d.ts +3 -2
  50. package/DropdownMenu/components/DropdownMenuItem.js +9 -2
  51. package/DropdownMenu/components/DropdownMenuItem.js.map +1 -1
  52. package/DropdownMenu/components/DropdownMenuLink.d.ts +9 -8
  53. package/DropdownMenu/components/DropdownMenuSeparator.d.ts +7 -6
  54. package/EditableTitle/EditableTitle.d.ts +7 -6
  55. package/EmptyState/EmptyState.d.ts +43 -0
  56. package/EmptyState/EmptyState.js +93 -0
  57. package/EmptyState/EmptyState.js.map +1 -0
  58. package/EmptyState/EmptyState.stories.d.ts +13 -0
  59. package/EmptyState/EmptyState.stories.js +136 -0
  60. package/EmptyState/EmptyState.stories.js.map +1 -0
  61. package/EmptyState/illustrations/ContentIllustration.d.ts +2 -0
  62. package/EmptyState/illustrations/ContentIllustration.js +100 -0
  63. package/EmptyState/illustrations/ContentIllustration.js.map +1 -0
  64. package/EmptyState/illustrations/LayoutIllustration.d.ts +2 -0
  65. package/EmptyState/illustrations/LayoutIllustration.js +93 -0
  66. package/EmptyState/illustrations/LayoutIllustration.js.map +1 -0
  67. package/EmptyState/illustrations/ListingIllustration.d.ts +2 -0
  68. package/EmptyState/illustrations/ListingIllustration.js +92 -0
  69. package/EmptyState/illustrations/ListingIllustration.js.map +1 -0
  70. package/EmptyState/illustrations/SelectIllustration.d.ts +2 -0
  71. package/EmptyState/illustrations/SelectIllustration.js +100 -0
  72. package/EmptyState/illustrations/SelectIllustration.js.map +1 -0
  73. package/EmptyState/illustrations/TableIllustration.d.ts +2 -0
  74. package/EmptyState/illustrations/TableIllustration.js +233 -0
  75. package/EmptyState/illustrations/TableIllustration.js.map +1 -0
  76. package/EmptyState/illustrations/UploadIllustration.d.ts +2 -0
  77. package/EmptyState/illustrations/UploadIllustration.js +77 -0
  78. package/EmptyState/illustrations/UploadIllustration.js.map +1 -0
  79. package/EmptyState/illustrations/index.d.ts +6 -0
  80. package/EmptyState/illustrations/index.js +6 -0
  81. package/EmptyState/index.d.ts +1 -0
  82. package/EmptyState/index.js +1 -0
  83. package/FilePicker/FilePicker.d.ts +7 -6
  84. package/FilePicker/primitives/FilePickerPrimitive.d.ts +8 -7
  85. package/FilePicker/primitives/components/Trigger.d.ts +1 -1
  86. package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.d.ts +7 -6
  87. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.d.ts +7 -6
  88. package/FilePicker/primitives/components/previews/TextOnlyPreview/TextOnlyPreview.d.ts +7 -6
  89. package/FilePicker/primitives/components/previews/variants.d.ts +1 -1
  90. package/FillViewport/FillViewport.d.ts +21 -18
  91. package/FormComponent/Description.d.ts +7 -6
  92. package/FormComponent/ErrorMessage.d.ts +7 -6
  93. package/FormComponent/Label.d.ts +7 -6
  94. package/FormComponent/Note.d.ts +7 -6
  95. package/Grid/Grid.d.ts +24 -22
  96. package/HeaderBar/HeaderBar.d.ts +7 -6
  97. package/Heading/Heading.d.ts +8 -7
  98. package/Icon/Icon.d.ts +9 -8
  99. package/IconPicker/IconPicker.d.ts +7 -6
  100. package/IconPicker/primitives/IconPickerPrimitive.d.ts +1 -1
  101. package/IconPicker/primitives/components/IconPickerTrigger.d.ts +1 -1
  102. package/Input/Input.d.ts +7 -6
  103. package/Input/InputPrimitive.d.ts +9 -8
  104. package/Label/Label.d.ts +8 -7
  105. package/Label/components/LabelValue.d.ts +1 -1
  106. package/Link/Link.d.ts +2 -2
  107. package/List/List.d.ts +8 -7
  108. package/List/components/ListItem.d.ts +7 -6
  109. package/List/components/ListItemAction.d.ts +7 -6
  110. package/List/components/ListItemHandle.d.ts +7 -6
  111. package/List/components/ListItemIcon.d.ts +7 -6
  112. package/List/components/ListItemSeparator.d.ts +7 -6
  113. package/Loader/Loader.d.ts +9 -8
  114. package/Loader/OverlayLoader.d.ts +7 -6
  115. package/MultiAutoComplete/MultiAutoComplete.d.ts +7 -6
  116. package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.d.ts +7 -6
  117. package/MultiAutoComplete/primitives/presenters/MultiAutoCompletePresenterWithFreeInput.d.ts +3 -3
  118. package/MultiAutoComplete/primitives/useMultiAutoComplete.d.ts +3 -3
  119. package/MultiFilePicker/MultiFilePicker.d.ts +7 -6
  120. package/MultiFilePicker/primitives/MultiFilePickerPrimitive.d.ts +7 -6
  121. package/MultiSelect/MultiSelect.d.ts +7 -6
  122. package/MultiSelect/primitives/MultiSelectPrimitive.d.ts +10 -6
  123. package/Popover/Popover.d.ts +7 -6
  124. package/Popover/primitives/PopoverPrimitive.d.ts +7 -7
  125. package/ProgressBar/ProgressBar.d.ts +7 -6
  126. package/RadioGroup/RadioGroup.d.ts +7 -6
  127. package/RadioGroup/primitives/Radio.d.ts +7 -6
  128. package/RadioGroup/primitives/RadioGroupPrimitive.d.ts +5 -1
  129. package/RangeSlider/RangeSlider.d.ts +7 -6
  130. package/SegmentedControl/SegmentedControl.d.ts +8 -7
  131. package/SegmentedControl/SegmentedControlTabs.d.ts +5 -2
  132. package/SegmentedControl/primitives/SegmentedControlPrimitive.d.ts +1 -1
  133. package/Select/Select.d.ts +7 -6
  134. package/Select/primitives/components/SelectTrigger.d.ts +2 -2
  135. package/Separator/Separator.d.ts +9 -8
  136. package/Sidebar/Sidebar.d.ts +7 -6
  137. package/Sidebar/components/SidebarIcon.d.ts +7 -6
  138. package/Sidebar/components/SidebarProvider.d.ts +4 -4
  139. package/Sidebar/components/items/SidebarMenuGroup.d.ts +9 -8
  140. package/Sidebar/components/items/SidebarMenuItem.d.ts +11 -10
  141. package/Sidebar/components/items/SidebarMenuItemIcon.d.ts +7 -6
  142. package/Sidebar/components/items/SidebarMenuLink.d.ts +11 -10
  143. package/Sidebar/components/items/SidebarMenuProvider.d.ts +4 -4
  144. package/Sidebar/components/items/SidebarMenuRootItem.d.ts +9 -7
  145. package/Skeleton/Skeleton.d.ts +9 -7
  146. package/Skeleton/Skeleton.js +10 -4
  147. package/Skeleton/Skeleton.js.map +1 -1
  148. package/Skeleton/Skeleton.stories.d.ts +2 -0
  149. package/Skeleton/Skeleton.stories.js +28 -2
  150. package/Skeleton/Skeleton.stories.js.map +1 -1
  151. package/Slider/Slider.d.ts +7 -6
  152. package/SteppedProgress/SteppedProgress.d.ts +7 -6
  153. package/SteppedProgress/SteppedProgressItem.d.ts +7 -6
  154. package/Switch/Switch.d.ts +7 -6
  155. package/Switch/primitives/SwitchPrimitive.d.ts +10 -6
  156. package/Table/Table.d.ts +12 -10
  157. package/Table/components/Direction.d.ts +1 -1
  158. package/Tabs/Tabs.d.ts +8 -6
  159. package/Tabs/Tabs.js +5 -2
  160. package/Tabs/Tabs.js.map +1 -1
  161. package/Tabs/components/Content.d.ts +1 -1
  162. package/Tabs/components/List.d.ts +2 -2
  163. package/Tabs/components/Tab.d.ts +7 -6
  164. package/Tabs/components/Trigger.d.ts +3 -2
  165. package/Tabs/components/Trigger.js +8 -3
  166. package/Tabs/components/Trigger.js.map +1 -1
  167. package/Tag/Tag.d.ts +8 -7
  168. package/Tags/Tags.d.ts +7 -6
  169. package/Tags/primitives/TagsPrimitive.d.ts +7 -6
  170. package/Text/Text.d.ts +8 -7
  171. package/Textarea/Textarea.d.ts +7 -6
  172. package/Textarea/TextareaPrimitive.d.ts +9 -8
  173. package/Toast/Toast.d.ts +7 -6
  174. package/Toast/components/ToastActions.d.ts +7 -6
  175. package/Toast/components/ToastDescription.d.ts +7 -6
  176. package/Toast/components/ToastTitle.d.ts +7 -6
  177. package/Toggle/Toggle.d.ts +7 -6
  178. package/Toggle/primitives/TogglePrimitive.d.ts +13 -9
  179. package/ToggleGroup/ToggleGroup.d.ts +7 -6
  180. package/ToggleGroup/primitives/ToggleGroupPrimitive.d.ts +13 -9
  181. package/Tooltip/Tooltip.d.ts +7 -6
  182. package/Tree/Tree.d.ts +7 -6
  183. package/Tree/components/Item.d.ts +7 -6
  184. package/Tree/components/ItemCollapseTrigger.d.ts +7 -6
  185. package/Tree/components/ItemContent.d.ts +8 -6
  186. package/Tree/components/ItemDragHandle.d.ts +7 -6
  187. package/Tree/components/ItemIcon.d.ts +7 -6
  188. package/Tree/components/ItemPlaceholder.d.ts +7 -6
  189. package/Tree/components/ItemSubIndentation.d.ts +7 -6
  190. package/Widget/Widget.d.ts +8 -22
  191. package/Widget/components/Icon.d.ts +7 -6
  192. package/Widget/components/WidgetAction.d.ts +8 -6
  193. package/Widget/components/WidgetContent.d.ts +5 -5
  194. package/exports/admin/ui.d.ts +1 -0
  195. package/exports/admin/ui.js +1 -0
  196. package/index.d.ts +1 -0
  197. package/index.js +1 -0
  198. package/package.json +24 -24
  199. package/theme.css +13 -1
  200. package/utils.js +52 -34
  201. package/utils.js.map +1 -1
@@ -3,21 +3,22 @@ import { type ProgressRootProps } from "./components/index.js";
3
3
  interface ProgressBarProps extends ProgressRootProps {
4
4
  valuePosition?: "start" | "end" | "both";
5
5
  }
6
- declare const ProgressBar: (({ valuePosition, className, ...props }: ProgressBarProps) => React.JSX.Element) & {
7
- original: ({ valuePosition, className, ...props }: ProgressBarProps) => React.JSX.Element;
6
+ declare const DecoratableProgressBar: ({ valuePosition, className, ...props }: ProgressBarProps) => React.JSX.Element;
7
+ declare const ProgressBar: typeof DecoratableProgressBar & {
8
+ original: typeof DecoratableProgressBar;
8
9
  originalName: string;
9
10
  displayName: string;
10
11
  } & {
11
- original: (({ valuePosition, className, ...props }: ProgressBarProps) => React.JSX.Element) & {
12
- original: ({ valuePosition, className, ...props }: ProgressBarProps) => React.JSX.Element;
12
+ original: typeof DecoratableProgressBar & {
13
+ original: typeof DecoratableProgressBar;
13
14
  originalName: string;
14
15
  displayName: string;
15
16
  };
16
17
  originalName: string;
17
18
  displayName: string;
18
19
  } & {
19
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ valuePosition, className, ...props }: ProgressBarProps) => React.JSX.Element) & {
20
- original: ({ valuePosition, className, ...props }: ProgressBarProps) => React.JSX.Element;
20
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableProgressBar & {
21
+ original: typeof DecoratableProgressBar;
21
22
  originalName: string;
22
23
  displayName: string;
23
24
  }>) => (props: unknown) => React.JSX.Element;
@@ -2,21 +2,22 @@ import React from "react";
2
2
  import type { RadioGroupPrimitiveProps } from "./primitives/index.js";
3
3
  import type { FormComponentProps } from "../FormComponent/index.js";
4
4
  type RadioGroupProps = RadioGroupPrimitiveProps & FormComponentProps;
5
- declare const RadioGroup: (({ label, description, note, hint, required, disabled, validation, ...props }: RadioGroupProps) => React.JSX.Element) & {
6
- original: ({ label, description, note, hint, required, disabled, validation, ...props }: RadioGroupProps) => React.JSX.Element;
5
+ declare const DecoratableRadioGroup: ({ label, description, note, hint, required, disabled, validation, ...props }: RadioGroupProps) => React.JSX.Element;
6
+ declare const RadioGroup: typeof DecoratableRadioGroup & {
7
+ original: typeof DecoratableRadioGroup;
7
8
  originalName: string;
8
9
  displayName: string;
9
10
  } & {
10
- original: (({ label, description, note, hint, required, disabled, validation, ...props }: RadioGroupProps) => React.JSX.Element) & {
11
- original: ({ label, description, note, hint, required, disabled, validation, ...props }: RadioGroupProps) => React.JSX.Element;
11
+ original: typeof DecoratableRadioGroup & {
12
+ original: typeof DecoratableRadioGroup;
12
13
  originalName: string;
13
14
  displayName: string;
14
15
  };
15
16
  originalName: string;
16
17
  displayName: string;
17
18
  } & {
18
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ label, description, note, hint, required, disabled, validation, ...props }: RadioGroupProps) => React.JSX.Element) & {
19
- original: ({ label, description, note, hint, required, disabled, validation, ...props }: RadioGroupProps) => React.JSX.Element;
19
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableRadioGroup & {
20
+ original: typeof DecoratableRadioGroup;
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  }>) => (props: unknown) => React.JSX.Element;
@@ -7,21 +7,22 @@ interface RadioProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPri
7
7
  label: string | React.ReactNode;
8
8
  id: string;
9
9
  }
10
- declare const Radio: (({ className, label, id, ...props }: RadioProps) => React.JSX.Element) & {
11
- original: ({ className, label, id, ...props }: RadioProps) => React.JSX.Element;
10
+ declare const DecoratableRadio: ({ className, label, id, ...props }: RadioProps) => React.JSX.Element;
11
+ declare const Radio: typeof DecoratableRadio & {
12
+ original: typeof DecoratableRadio;
12
13
  originalName: string;
13
14
  displayName: string;
14
15
  } & {
15
- original: (({ className, label, id, ...props }: RadioProps) => React.JSX.Element) & {
16
- original: ({ className, label, id, ...props }: RadioProps) => React.JSX.Element;
16
+ original: typeof DecoratableRadio & {
17
+ original: typeof DecoratableRadio;
17
18
  originalName: string;
18
19
  displayName: string;
19
20
  };
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  } & {
23
- createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<(({ className, label, id, ...props }: RadioProps) => React.JSX.Element) & {
24
- original: ({ className, label, id, ...props }: RadioProps) => React.JSX.Element;
24
+ createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof DecoratableRadio & {
25
+ original: typeof DecoratableRadio;
25
26
  originalName: string;
26
27
  displayName: string;
27
28
  }>) => (props: unknown) => React.JSX.Element;
@@ -1,6 +1,10 @@
1
1
  import * as React from "react";
2
2
  import { RadioGroup as RadioGroupPrimitives } from "radix-ui";
3
3
  import type { RadioItemParams, RadioItemFormatted } from "../domains/index.js";
4
+ /**
5
+ * Radio Group Root
6
+ */
7
+ declare const RadioGroupRoot: ({ className, ...props }: RadioGroupPrimitives.RadioGroupProps) => React.JSX.Element;
4
8
  /**
5
9
  * Radio Group Renderer
6
10
  */
@@ -33,5 +37,5 @@ declare const RadioGroupPrimitive: (props: RadioGroupPrimitiveProps) => React.JS
33
37
  * It is marked as deprecated because nesting `Radio` components inside `RadioGroup` is no longer the recommended approach.
34
38
  * Instead, we now pass an array of `RadioItemDto` directly to `RadioGroup` for better maintainability.
35
39
  */
36
- declare const DeprecatedRadioGroup: ({ className, ...props }: RadioGroupPrimitives.RadioGroupProps) => React.JSX.Element;
40
+ declare const DeprecatedRadioGroup: typeof RadioGroupRoot;
37
41
  export { RadioGroupPrimitive, RadioGroupRenderer, DeprecatedRadioGroup, type RadioGroupPrimitiveProps, type RadioGroupVm };
@@ -5,21 +5,22 @@ type RangeSliderProps = RangeSliderPrimitiveProps & FormComponentProps & {
5
5
  label: React.ReactNode;
6
6
  valueConverter?: (value: number) => string;
7
7
  };
8
- declare const RangeSlider: (({ description, note, hint, validation, ...props }: RangeSliderProps) => React.JSX.Element) & {
9
- original: ({ description, note, hint, validation, ...props }: RangeSliderProps) => React.JSX.Element;
8
+ declare const DecoratableRangeSlider: ({ description, note, hint, validation, ...props }: RangeSliderProps) => React.JSX.Element;
9
+ declare const RangeSlider: typeof DecoratableRangeSlider & {
10
+ original: typeof DecoratableRangeSlider;
10
11
  originalName: string;
11
12
  displayName: string;
12
13
  } & {
13
- original: (({ description, note, hint, validation, ...props }: RangeSliderProps) => React.JSX.Element) & {
14
- original: ({ description, note, hint, validation, ...props }: RangeSliderProps) => React.JSX.Element;
14
+ original: typeof DecoratableRangeSlider & {
15
+ original: typeof DecoratableRangeSlider;
15
16
  originalName: string;
16
17
  displayName: string;
17
18
  };
18
19
  originalName: string;
19
20
  displayName: string;
20
21
  } & {
21
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ description, note, hint, validation, ...props }: RangeSliderProps) => React.JSX.Element) & {
22
- original: ({ description, note, hint, validation, ...props }: RangeSliderProps) => React.JSX.Element;
22
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableRangeSlider & {
23
+ original: typeof DecoratableRangeSlider;
23
24
  originalName: string;
24
25
  displayName: string;
25
26
  }>) => (props: unknown) => React.JSX.Element;
@@ -2,27 +2,28 @@ import React from "react";
2
2
  import type { SegmentedControlPrimitiveProps } from "./primitives/index.js";
3
3
  import type { FormComponentProps } from "../FormComponent/index.js";
4
4
  type SegmentedControlProps = SegmentedControlPrimitiveProps & FormComponentProps;
5
- declare const SegmentedControl: (({ label, description, note, hint, required, disabled, validation, ...props }: SegmentedControlProps) => React.JSX.Element) & {
6
- original: ({ label, description, note, hint, required, disabled, validation, ...props }: SegmentedControlProps) => React.JSX.Element;
5
+ declare const DecoratableSegmentedControl: ({ label, description, note, hint, required, disabled, validation, ...props }: SegmentedControlProps) => React.JSX.Element;
6
+ declare const SegmentedControl: typeof DecoratableSegmentedControl & {
7
+ original: typeof DecoratableSegmentedControl;
7
8
  originalName: string;
8
9
  displayName: string;
9
10
  } & {
10
- original: (({ label, description, note, hint, required, disabled, validation, ...props }: SegmentedControlProps) => React.JSX.Element) & {
11
- original: ({ label, description, note, hint, required, disabled, validation, ...props }: SegmentedControlProps) => React.JSX.Element;
11
+ original: typeof DecoratableSegmentedControl & {
12
+ original: typeof DecoratableSegmentedControl;
12
13
  originalName: string;
13
14
  displayName: string;
14
15
  };
15
16
  originalName: string;
16
17
  displayName: string;
17
18
  } & {
18
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ label, description, note, hint, required, disabled, validation, ...props }: SegmentedControlProps) => React.JSX.Element) & {
19
- original: ({ label, description, note, hint, required, disabled, validation, ...props }: SegmentedControlProps) => React.JSX.Element;
19
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableSegmentedControl & {
20
+ original: typeof DecoratableSegmentedControl;
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  }>) => (props: unknown) => React.JSX.Element;
23
24
  } & {
24
25
  Tabs: (({ children, variant, defaultValue, className }: import("./SegmentedControlTabs.js").SegmentedControlTabsProps) => React.JSX.Element) & {
25
- Tab: (props: import("./SegmentedControlTab.js").SegmentedControlTabProps) => null;
26
+ Tab: typeof import("./SegmentedControlTab.js").SegmentedControlTab;
26
27
  };
27
28
  };
28
29
  export { SegmentedControl, type SegmentedControlProps };
@@ -1,11 +1,14 @@
1
1
  import React from "react";
2
2
  import type { SegmentedControlPrimitiveProps } from "./primitives/index.js";
3
+ import { SegmentedControlTab } from "./SegmentedControlTab.js";
3
4
  export interface SegmentedControlTabsProps {
4
5
  children: React.ReactNode;
5
6
  variant?: SegmentedControlPrimitiveProps["variant"];
6
7
  defaultValue?: string;
7
8
  className?: string;
8
9
  }
9
- export declare const SegmentedControlTabs: (({ children, variant, defaultValue, className }: SegmentedControlTabsProps) => React.JSX.Element) & {
10
- Tab: (props: import("./SegmentedControlTab.js").SegmentedControlTabProps) => null;
10
+ declare const BaseSegmentedControlTabs: ({ children, variant, defaultValue, className }: SegmentedControlTabsProps) => React.JSX.Element;
11
+ export declare const SegmentedControlTabs: typeof BaseSegmentedControlTabs & {
12
+ Tab: typeof SegmentedControlTab;
11
13
  };
14
+ export {};
@@ -5,7 +5,7 @@ import type { SegmentedControlItemParams, SegmentedControlItemFormatted } from "
5
5
  * Segmented Control Item Button
6
6
  */
7
7
  declare const segmentedControlItemVariants: (props?: ({
8
- variant?: "ghost" | "dimmed" | "light" | null | undefined;
8
+ variant?: "dimmed" | "ghost" | "light" | null | undefined;
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  /**
11
11
  * Segmented Control Primitive
@@ -2,21 +2,22 @@ import React from "react";
2
2
  import type { SelectPrimitiveProps } from "./primitives/index.js";
3
3
  import type { FormComponentProps } from "../FormComponent/index.js";
4
4
  type SelectProps = SelectPrimitiveProps & FormComponentProps;
5
- declare const Select: (({ label, description, note, hint, required, disabled, validation, ...props }: SelectProps) => React.JSX.Element) & {
6
- original: ({ label, description, note, hint, required, disabled, validation, ...props }: SelectProps) => React.JSX.Element;
5
+ declare const DecoratableSelect: ({ label, description, note, hint, required, disabled, validation, ...props }: SelectProps) => React.JSX.Element;
6
+ declare const Select: typeof DecoratableSelect & {
7
+ original: typeof DecoratableSelect;
7
8
  originalName: string;
8
9
  displayName: string;
9
10
  } & {
10
- original: (({ label, description, note, hint, required, disabled, validation, ...props }: SelectProps) => React.JSX.Element) & {
11
- original: ({ label, description, note, hint, required, disabled, validation, ...props }: SelectProps) => React.JSX.Element;
11
+ original: typeof DecoratableSelect & {
12
+ original: typeof DecoratableSelect;
12
13
  originalName: string;
13
14
  displayName: string;
14
15
  };
15
16
  originalName: string;
16
17
  displayName: string;
17
18
  } & {
18
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ label, description, note, hint, required, disabled, validation, ...props }: SelectProps) => React.JSX.Element) & {
19
- original: ({ label, description, note, hint, required, disabled, validation, ...props }: SelectProps) => React.JSX.Element;
19
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableSelect & {
20
+ original: typeof DecoratableSelect;
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  }>) => (props: unknown) => React.JSX.Element;
@@ -2,8 +2,8 @@ import * as React from "react";
2
2
  import { Select as SelectPrimitives } from "radix-ui";
3
3
  import { type VariantProps } from "../../../utils.js";
4
4
  declare const selectTriggerVariants: (props?: ({
5
- variant?: "primary" | "secondary" | "ghost" | "ghost-negative" | null | undefined;
6
- size?: "md" | "lg" | "xl" | null | undefined;
5
+ variant?: "ghost" | "ghost-negative" | "primary" | "secondary" | null | undefined;
6
+ size?: "lg" | "md" | "xl" | null | undefined;
7
7
  invalid?: boolean | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  interface SelectTriggerProps extends SelectPrimitives.SelectTriggerProps, VariantProps<typeof selectTriggerVariants> {
@@ -2,30 +2,31 @@ import * as React from "react";
2
2
  import { Separator as SeparatorPrimitive } from "radix-ui";
3
3
  import { type VariantProps } from "../utils.js";
4
4
  declare const separatorVariants: (props?: ({
5
- margin?: "sm" | "md" | "none" | "lg" | "xl" | "xs" | null | undefined;
5
+ margin?: "lg" | "md" | "none" | "sm" | "xl" | "xs" | null | undefined;
6
6
  orientation?: "horizontal" | "vertical" | null | undefined;
7
- variant?: "accent" | "base" | "strong" | "transparent" | "dimmed" | "muted" | null | undefined;
7
+ variant?: "accent" | "base" | "dimmed" | "muted" | "strong" | "transparent" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  type SeparatorPosition = "start" | "middle" | "end";
10
10
  type SeparatorProps = Omit<SeparatorPrimitive.SeparatorProps, "children"> & VariantProps<typeof separatorVariants> & {
11
11
  children?: React.ReactNode;
12
12
  labelPosition?: SeparatorPosition;
13
13
  };
14
- declare const Separator: (({ className, orientation, margin, variant, decorative, children, labelPosition, ...props }: SeparatorProps) => React.JSX.Element) & {
15
- original: ({ className, orientation, margin, variant, decorative, children, labelPosition, ...props }: SeparatorProps) => React.JSX.Element;
14
+ declare const SeparatorBase: ({ className, orientation, margin, variant, decorative, children, labelPosition, ...props }: SeparatorProps) => React.JSX.Element;
15
+ declare const Separator: typeof SeparatorBase & {
16
+ original: typeof SeparatorBase;
16
17
  originalName: string;
17
18
  displayName: string;
18
19
  } & {
19
- original: (({ className, orientation, margin, variant, decorative, children, labelPosition, ...props }: SeparatorProps) => React.JSX.Element) & {
20
- original: ({ className, orientation, margin, variant, decorative, children, labelPosition, ...props }: SeparatorProps) => React.JSX.Element;
20
+ original: typeof SeparatorBase & {
21
+ original: typeof SeparatorBase;
21
22
  originalName: string;
22
23
  displayName: string;
23
24
  };
24
25
  originalName: string;
25
26
  displayName: string;
26
27
  } & {
27
- createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<(({ className, orientation, margin, variant, decorative, children, labelPosition, ...props }: SeparatorProps) => React.JSX.Element) & {
28
- original: ({ className, orientation, margin, variant, decorative, children, labelPosition, ...props }: SeparatorProps) => React.JSX.Element;
28
+ createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof SeparatorBase & {
29
+ original: typeof SeparatorBase;
29
30
  originalName: string;
30
31
  displayName: string;
31
32
  }>) => (props: unknown) => React.JSX.Element;
@@ -7,21 +7,22 @@ interface SidebarProps extends Omit<React.ComponentPropsWithoutRef<typeof Sideba
7
7
  children: React.ReactNode;
8
8
  footer?: React.ReactNode;
9
9
  }
10
- declare const Sidebar: ((props: SidebarProps) => React.JSX.Element) & {
11
- original: (props: SidebarProps) => React.JSX.Element;
10
+ declare const SidebarBase: (props: SidebarProps) => React.JSX.Element;
11
+ declare const Sidebar: typeof SidebarBase & {
12
+ original: typeof SidebarBase;
12
13
  originalName: string;
13
14
  displayName: string;
14
15
  } & {
15
- original: ((props: SidebarProps) => React.JSX.Element) & {
16
- original: (props: SidebarProps) => React.JSX.Element;
16
+ original: typeof SidebarBase & {
17
+ original: typeof SidebarBase;
17
18
  originalName: string;
18
19
  displayName: string;
19
20
  };
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  } & {
23
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: SidebarProps) => React.JSX.Element) & {
24
- original: (props: SidebarProps) => React.JSX.Element;
24
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof SidebarBase & {
25
+ original: typeof SidebarBase;
25
26
  originalName: string;
26
27
  displayName: string;
27
28
  }>) => (props: unknown) => React.JSX.Element;
@@ -3,21 +3,22 @@ import { type IconProps } from "../../Icon/index.js";
3
3
  interface SidebarIconProps extends Omit<IconProps, "icon"> {
4
4
  element?: React.ReactNode;
5
5
  }
6
- declare const SidebarIcon: (({ element, ...props }: SidebarIconProps) => React.JSX.Element) & {
7
- original: ({ element, ...props }: SidebarIconProps) => React.JSX.Element;
6
+ declare const SidebarIconBase: ({ element, ...props }: SidebarIconProps) => React.JSX.Element;
7
+ declare const SidebarIcon: typeof SidebarIconBase & {
8
+ original: typeof SidebarIconBase;
8
9
  originalName: string;
9
10
  displayName: string;
10
11
  } & {
11
- original: (({ element, ...props }: SidebarIconProps) => React.JSX.Element) & {
12
- original: ({ element, ...props }: SidebarIconProps) => React.JSX.Element;
12
+ original: typeof SidebarIconBase & {
13
+ original: typeof SidebarIconBase;
13
14
  originalName: string;
14
15
  displayName: string;
15
16
  };
16
17
  originalName: string;
17
18
  displayName: string;
18
19
  } & {
19
- createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ element, ...props }: SidebarIconProps) => React.JSX.Element) & {
20
- original: ({ element, ...props }: SidebarIconProps) => React.JSX.Element;
20
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<typeof SidebarIconBase & {
21
+ original: typeof SidebarIconBase;
21
22
  originalName: string;
22
23
  displayName: string;
23
24
  }>) => (props: unknown) => React.JSX.Element;
@@ -36,8 +36,8 @@ type SidebarProviderProps = React.HTMLAttributes<HTMLDivElement> & {
36
36
  state?: SidebarCachedState;
37
37
  onChangeState?: (state: SidebarCachedState) => void;
38
38
  };
39
- declare const SidebarProvider: {
40
- ({ className, children, state: cachedState, onChangeState, ...props }: SidebarProviderProps): React.JSX.Element;
41
- displayName: string;
42
- };
39
+ declare function SidebarProvider({ className, children, state: cachedState, onChangeState, ...props }: SidebarProviderProps): React.JSX.Element;
40
+ declare namespace SidebarProvider {
41
+ var displayName: string;
42
+ }
43
43
  export { SidebarProvider, useSidebar, type PinnedItemData };
@@ -1,22 +1,23 @@
1
1
  import React from "react";
2
2
  import { type SidebarMenuItemGroupProps } from "./SidebarMenuItem.js";
3
3
  import { type SidebarMenuItemIconProps } from "../../../Sidebar/components/items/SidebarMenuItemIcon.js";
4
- import { type SidebarMenuItemActionProps } from "../../../Sidebar/components/items/SidebarMenuItemAction.js";
5
- declare const SidebarMenuGroup: ((props: SidebarMenuItemGroupProps) => React.JSX.Element) & {
6
- original: (props: SidebarMenuItemGroupProps) => React.JSX.Element;
4
+ import { SidebarMenuItemAction, type SidebarMenuItemActionProps } from "../../../Sidebar/components/items/SidebarMenuItemAction.js";
5
+ declare const SidebarMenuGroupBase: (props: SidebarMenuItemGroupProps) => React.JSX.Element;
6
+ declare const SidebarMenuGroup: typeof SidebarMenuGroupBase & {
7
+ original: typeof SidebarMenuGroupBase;
7
8
  originalName: string;
8
9
  displayName: string;
9
10
  } & {
10
- original: ((props: SidebarMenuItemGroupProps) => React.JSX.Element) & {
11
- original: (props: SidebarMenuItemGroupProps) => React.JSX.Element;
11
+ original: typeof SidebarMenuGroupBase & {
12
+ original: typeof SidebarMenuGroupBase;
12
13
  originalName: string;
13
14
  displayName: string;
14
15
  };
15
16
  originalName: string;
16
17
  displayName: string;
17
18
  } & {
18
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: SidebarMenuItemGroupProps) => React.JSX.Element) & {
19
- original: (props: SidebarMenuItemGroupProps) => React.JSX.Element;
19
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof SidebarMenuGroupBase & {
20
+ original: typeof SidebarMenuGroupBase;
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  }>) => (props: unknown) => React.JSX.Element;
@@ -40,6 +41,6 @@ declare const SidebarMenuGroup: ((props: SidebarMenuItemGroupProps) => React.JSX
40
41
  displayName: string;
41
42
  }>) => (props: unknown) => React.JSX.Element;
42
43
  };
43
- Action: ({ element, showOnHover, className, ...props }: SidebarMenuItemActionProps) => React.JSX.Element | null;
44
+ Action: typeof SidebarMenuItemAction;
44
45
  };
45
46
  export { SidebarMenuGroup, type SidebarMenuItemGroupProps, type SidebarMenuItemIconProps, type SidebarMenuItemActionProps };
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { type SidebarMenuItemIconProps } from "./SidebarMenuItemIcon.js";
3
- import { type SidebarMenuItemActionProps } from "./SidebarMenuItemAction.js";
4
- import { type SidebarMenuItemBadgeProps } from "./SidebarMenuItemBadge.js";
3
+ import { SidebarMenuItemAction, type SidebarMenuItemActionProps } from "./SidebarMenuItemAction.js";
4
+ import { SidebarMenuItemBadge, type SidebarMenuItemBadgeProps } from "./SidebarMenuItemBadge.js";
5
5
  import { LinkProps } from "../../../index.js";
6
6
  export interface SidebarMenuItemBaseProps {
7
7
  text: React.ReactNode;
@@ -26,21 +26,22 @@ type SidebarMenuItemButtonProps = SidebarMenuItemBaseProps & {
26
26
  type SidebarMenuItemGroupProps = SidebarMenuItemButtonProps;
27
27
  type SidebarMenuItemLinkProps = SidebarMenuItemBaseProps & LinkProps;
28
28
  type SidebarMenuItemProps = SidebarMenuItemButtonProps | SidebarMenuItemLinkProps;
29
- declare const SidebarMenuItem: ((props: SidebarMenuItemProps) => React.JSX.Element) & {
30
- original: (props: SidebarMenuItemProps) => React.JSX.Element;
29
+ declare const SidebarMenuItemBase: (props: SidebarMenuItemProps) => React.JSX.Element;
30
+ declare const SidebarMenuItem: typeof SidebarMenuItemBase & {
31
+ original: typeof SidebarMenuItemBase;
31
32
  originalName: string;
32
33
  displayName: string;
33
34
  } & {
34
- original: ((props: SidebarMenuItemProps) => React.JSX.Element) & {
35
- original: (props: SidebarMenuItemProps) => React.JSX.Element;
35
+ original: typeof SidebarMenuItemBase & {
36
+ original: typeof SidebarMenuItemBase;
36
37
  originalName: string;
37
38
  displayName: string;
38
39
  };
39
40
  originalName: string;
40
41
  displayName: string;
41
42
  } & {
42
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: SidebarMenuItemProps) => React.JSX.Element) & {
43
- original: (props: SidebarMenuItemProps) => React.JSX.Element;
43
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof SidebarMenuItemBase & {
44
+ original: typeof SidebarMenuItemBase;
44
45
  originalName: string;
45
46
  displayName: string;
46
47
  }>) => (props: unknown) => React.JSX.Element;
@@ -64,7 +65,7 @@ declare const SidebarMenuItem: ((props: SidebarMenuItemProps) => React.JSX.Eleme
64
65
  displayName: string;
65
66
  }>) => (props: unknown) => React.JSX.Element;
66
67
  };
67
- Action: ({ element, showOnHover, className, ...props }: SidebarMenuItemActionProps) => React.JSX.Element | null;
68
- Badge: ({ text }: SidebarMenuItemBadgeProps) => React.JSX.Element;
68
+ Action: typeof SidebarMenuItemAction;
69
+ Badge: typeof SidebarMenuItemBadge;
69
70
  };
70
71
  export { SidebarMenuItem, type SidebarMenuItemProps, type SidebarMenuItemButtonProps, type SidebarMenuItemLinkProps, type SidebarMenuItemGroupProps, type SidebarMenuItemIconProps, type SidebarMenuItemActionProps, type SidebarMenuItemBadgeProps };
@@ -3,21 +3,22 @@ import { type IconProps } from "../../../Icon/index.js";
3
3
  interface SidebarMenuItemIconProps extends Omit<IconProps, "icon"> {
4
4
  element?: React.ReactNode;
5
5
  }
6
- declare const SidebarMenuItemIcon: (({ element, ...props }: SidebarMenuItemIconProps) => React.JSX.Element | null) & {
7
- original: ({ element, ...props }: SidebarMenuItemIconProps) => React.JSX.Element | null;
6
+ declare const SidebarMenuItemIconBase: ({ element, ...props }: SidebarMenuItemIconProps) => React.JSX.Element | null;
7
+ declare const SidebarMenuItemIcon: typeof SidebarMenuItemIconBase & {
8
+ original: typeof SidebarMenuItemIconBase;
8
9
  originalName: string;
9
10
  displayName: string;
10
11
  } & {
11
- original: (({ element, ...props }: SidebarMenuItemIconProps) => React.JSX.Element | null) & {
12
- original: ({ element, ...props }: SidebarMenuItemIconProps) => React.JSX.Element | null;
12
+ original: typeof SidebarMenuItemIconBase & {
13
+ original: typeof SidebarMenuItemIconBase;
13
14
  originalName: string;
14
15
  displayName: string;
15
16
  };
16
17
  originalName: string;
17
18
  displayName: string;
18
19
  } & {
19
- createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ element, ...props }: SidebarMenuItemIconProps) => React.JSX.Element | null) & {
20
- original: ({ element, ...props }: SidebarMenuItemIconProps) => React.JSX.Element | null;
20
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<typeof SidebarMenuItemIconBase & {
21
+ original: typeof SidebarMenuItemIconBase;
21
22
  originalName: string;
22
23
  displayName: string;
23
24
  }>) => (props: unknown) => React.JSX.Element;
@@ -1,23 +1,24 @@
1
1
  import React from "react";
2
2
  import { type SidebarMenuItemLinkProps } from "./SidebarMenuItem.js";
3
3
  import { type SidebarMenuItemIconProps } from "../../../Sidebar/components/items/SidebarMenuItemIcon.js";
4
- import { type SidebarMenuItemActionProps } from "../../../Sidebar/components/items/SidebarMenuItemAction.js";
5
- import { type SidebarMenuItemBadgeProps } from "../../../Sidebar/components/items/SidebarMenuItemBadge.js";
6
- declare const SidebarMenuLink: ((props: SidebarMenuItemLinkProps) => React.JSX.Element) & {
7
- original: (props: SidebarMenuItemLinkProps) => React.JSX.Element;
4
+ import { SidebarMenuItemAction, type SidebarMenuItemActionProps } from "../../../Sidebar/components/items/SidebarMenuItemAction.js";
5
+ import { SidebarMenuItemBadge, type SidebarMenuItemBadgeProps } from "../../../Sidebar/components/items/SidebarMenuItemBadge.js";
6
+ declare const SidebarMenuLinkBase: (props: SidebarMenuItemLinkProps) => React.JSX.Element;
7
+ declare const SidebarMenuLink: typeof SidebarMenuLinkBase & {
8
+ original: typeof SidebarMenuLinkBase;
8
9
  originalName: string;
9
10
  displayName: string;
10
11
  } & {
11
- original: ((props: SidebarMenuItemLinkProps) => React.JSX.Element) & {
12
- original: (props: SidebarMenuItemLinkProps) => React.JSX.Element;
12
+ original: typeof SidebarMenuLinkBase & {
13
+ original: typeof SidebarMenuLinkBase;
13
14
  originalName: string;
14
15
  displayName: string;
15
16
  };
16
17
  originalName: string;
17
18
  displayName: string;
18
19
  } & {
19
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: SidebarMenuItemLinkProps) => React.JSX.Element) & {
20
- original: (props: SidebarMenuItemLinkProps) => React.JSX.Element;
20
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof SidebarMenuLinkBase & {
21
+ original: typeof SidebarMenuLinkBase;
21
22
  originalName: string;
22
23
  displayName: string;
23
24
  }>) => (props: unknown) => React.JSX.Element;
@@ -41,7 +42,7 @@ declare const SidebarMenuLink: ((props: SidebarMenuItemLinkProps) => React.JSX.E
41
42
  displayName: string;
42
43
  }>) => (props: unknown) => React.JSX.Element;
43
44
  };
44
- Action: ({ element, showOnHover, className, ...props }: SidebarMenuItemActionProps) => React.JSX.Element | null;
45
- Badge: ({ text }: SidebarMenuItemBadgeProps) => React.JSX.Element;
45
+ Action: typeof SidebarMenuItemAction;
46
+ Badge: typeof SidebarMenuItemBadge;
46
47
  };
47
48
  export { SidebarMenuLink, type SidebarMenuItemLinkProps, type SidebarMenuItemIconProps, type SidebarMenuItemActionProps, type SidebarMenuItemBadgeProps };
@@ -11,8 +11,8 @@ interface SidebarMenuProviderProps {
11
11
  }
12
12
  declare const SidebarMenuContext: React.Context<SidebarMenuContext>;
13
13
  declare function useSidebarMenu(): SidebarMenuContext;
14
- declare const SidebarMenuProvider: {
15
- ({ level, parentIcon, children }: SidebarMenuProviderProps): React.JSX.Element;
16
- displayName: string;
17
- };
14
+ declare function SidebarMenuProvider({ level, parentIcon, children }: SidebarMenuProviderProps): React.JSX.Element;
15
+ declare namespace SidebarMenuProvider {
16
+ var displayName: string;
17
+ }
18
18
  export { SidebarMenuProvider, useSidebarMenu };
@@ -1,20 +1,22 @@
1
1
  import React from "react";
2
+ import { SidebarMenuItemAction } from "./SidebarMenuItemAction.js";
2
3
  import { type SidebarMenuItemProps } from "./SidebarMenuItem.js";
3
- declare const SidebarMenuRootItem: (({ children, className, pinnable, action, ...buttonProps }: SidebarMenuItemProps) => React.JSX.Element) & {
4
- original: ({ children, className, pinnable, action, ...buttonProps }: SidebarMenuItemProps) => React.JSX.Element;
4
+ declare const SidebarMenuItemBase: ({ children, className, pinnable, action, ...buttonProps }: SidebarMenuItemProps) => React.JSX.Element;
5
+ declare const SidebarMenuRootItem: typeof SidebarMenuItemBase & {
6
+ original: typeof SidebarMenuItemBase;
5
7
  originalName: string;
6
8
  displayName: string;
7
9
  } & {
8
- original: (({ children, className, pinnable, action, ...buttonProps }: SidebarMenuItemProps) => React.JSX.Element) & {
9
- original: ({ children, className, pinnable, action, ...buttonProps }: SidebarMenuItemProps) => React.JSX.Element;
10
+ original: typeof SidebarMenuItemBase & {
11
+ original: typeof SidebarMenuItemBase;
10
12
  originalName: string;
11
13
  displayName: string;
12
14
  };
13
15
  originalName: string;
14
16
  displayName: string;
15
17
  } & {
16
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ children, className, pinnable, action, ...buttonProps }: SidebarMenuItemProps) => React.JSX.Element) & {
17
- original: ({ children, className, pinnable, action, ...buttonProps }: SidebarMenuItemProps) => React.JSX.Element;
18
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof SidebarMenuItemBase & {
19
+ original: typeof SidebarMenuItemBase;
18
20
  originalName: string;
19
21
  displayName: string;
20
22
  }>) => (props: unknown) => React.JSX.Element;
@@ -38,6 +40,6 @@ declare const SidebarMenuRootItem: (({ children, className, pinnable, action, ..
38
40
  displayName: string;
39
41
  }>) => (props: unknown) => React.JSX.Element;
40
42
  };
41
- Action: ({ element, showOnHover, className, ...props }: import("./SidebarMenuItemAction.js").SidebarMenuItemActionProps) => React.JSX.Element | null;
43
+ Action: typeof SidebarMenuItemAction;
42
44
  };
43
45
  export { SidebarMenuRootItem, type SidebarMenuItemProps };