@webiny/admin-ui 6.4.12-beta.5 → 6.5.0-beta.1

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 (316) hide show
  1. package/Accordion/Accordion.d.ts +7 -6
  2. package/Accordion/components/AccordionContent.js +4 -1
  3. package/Accordion/components/AccordionContent.js.map +1 -1
  4. package/Accordion/components/AccordionItem.d.ts +8 -6
  5. package/Accordion/components/AccordionItem.js.map +1 -1
  6. package/Accordion/components/AccordionItemAction.d.ts +7 -6
  7. package/Accordion/components/AccordionItemDragHandle.d.ts +2 -1
  8. package/Accordion/components/AccordionItemDragHandle.js +2 -1
  9. package/Accordion/components/AccordionItemDragHandle.js.map +1 -1
  10. package/Accordion/components/AccordionItemIcon.d.ts +7 -6
  11. package/Accordion/components/AccordionItemSeparator.d.ts +7 -6
  12. package/Accordion/components/AccordionTrigger.js +4 -2
  13. package/Accordion/components/AccordionTrigger.js.map +1 -1
  14. package/Alert/Alert.d.ts +21 -19
  15. package/AutoComplete/AutoComplete.d.ts +7 -6
  16. package/AutoComplete/primitives/AutoCompletePrimitive.d.ts +7 -6
  17. package/Avatar/Avatar.d.ts +9 -8
  18. package/Avatar/components/AvatarFallback.d.ts +7 -6
  19. package/Avatar/components/AvatarImage.d.ts +7 -6
  20. package/BetaBadge/BetaBadge.d.ts +6 -0
  21. package/BetaBadge/BetaBadge.js +7 -0
  22. package/BetaBadge/BetaBadge.js.map +1 -0
  23. package/Button/Button.d.ts +10 -9
  24. package/Button/CopyButton.d.ts +7 -6
  25. package/Button/IconButton.d.ts +10 -9
  26. package/Calendar/Calendar.d.ts +7 -6
  27. package/Calendar/calendarClassNames.js +1 -1
  28. package/Calendar/calendarClassNames.js.map +1 -1
  29. package/Card/Card.d.ts +8 -22
  30. package/Card/components/CancelAction.d.ts +8 -6
  31. package/Card/components/CardContent.d.ts +6 -6
  32. package/Card/components/CardTitle.d.ts +2 -2
  33. package/Card/components/ConfirmAction.d.ts +8 -6
  34. package/Card/components/Icon.d.ts +7 -6
  35. package/Checkbox/Checkbox.d.ts +7 -6
  36. package/Checkbox/primitives/CheckboxPrimitive.d.ts +17 -12
  37. package/CheckboxGroup/CheckboxGroup.d.ts +7 -6
  38. package/CheckboxGroup/primitives/CheckboxGroupPrimitive.d.ts +20 -12
  39. package/CodeEditor/CodeEditor.d.ts +7 -6
  40. package/CodeEditor/CodeEditorPrimitive.d.ts +7 -6
  41. package/CodeEditor/CodeEditorPrimitive.js +3 -1
  42. package/CodeEditor/CodeEditorPrimitive.js.map +1 -1
  43. package/ColorPicker/ColorPicker.d.ts +7 -6
  44. package/ColorPicker/primitives/ColorPickerPrimitive.d.ts +7 -6
  45. package/Command/Command.d.ts +10 -8
  46. package/Command/components/List.d.ts +1 -1
  47. package/Command/components/List.js +9 -5
  48. package/Command/components/List.js.map +1 -1
  49. package/DataList/DataListModal.d.ts +6 -3
  50. package/DataTable/DataTable.d.ts +13 -22
  51. package/DataTable/DataTable.js +6 -14
  52. package/DataTable/DataTable.js.map +1 -1
  53. package/DataTable/components/ColumnsVisibility.d.ts +4 -5
  54. package/DataTable/components/ColumnsVisibility.js +3 -6
  55. package/DataTable/components/ColumnsVisibility.js.map +1 -1
  56. package/DatePicker/DatePicker.d.ts +11 -7
  57. package/DatePicker/DatePicker.js +10 -2
  58. package/DatePicker/DatePicker.js.map +1 -1
  59. package/DatePicker/primitives/DatePickerPrimitive.d.ts +7 -6
  60. package/DatePicker/primitives/DateTimePicker.d.ts +1 -1
  61. package/DatePicker/primitives/DateTimePicker.js +23 -16
  62. package/DatePicker/primitives/DateTimePicker.js.map +1 -1
  63. package/DatePicker/primitives/components/DatePickerTrigger.js +1 -1
  64. package/DatePicker/primitives/components/DatePickerTrigger.js.map +1 -1
  65. package/DatePicker/utils/dateHelpers.d.ts +1 -1
  66. package/DatePicker/utils/dateHelpers.js +2 -1
  67. package/DatePicker/utils/dateHelpers.js.map +1 -1
  68. package/DatePicker/utils/timezoneHelpers.d.ts +3 -0
  69. package/DatePicker/utils/timezoneHelpers.js +32 -0
  70. package/DatePicker/utils/timezoneHelpers.js.map +1 -0
  71. package/DatePicker/utils/types.d.ts +2 -0
  72. package/Dialog/Dialog.d.ts +8 -22
  73. package/Dialog/components/CancelAction.d.ts +8 -6
  74. package/Dialog/components/ConfirmAction.d.ts +8 -6
  75. package/Dialog/components/DialogContent.d.ts +1 -1
  76. package/Dialog/components/DialogFooter.d.ts +1 -1
  77. package/Dialog/components/DialogTitle.d.ts +1 -1
  78. package/Dialog/components/Icon.d.ts +7 -6
  79. package/Drawer/Drawer.d.ts +8 -22
  80. package/Drawer/Drawer.stories.js +1 -0
  81. package/Drawer/Drawer.stories.js.map +1 -1
  82. package/Drawer/components/CancelButton.d.ts +8 -6
  83. package/Drawer/components/ConfirmButton.d.ts +8 -6
  84. package/Drawer/components/DrawerContent.d.ts +1 -1
  85. package/Drawer/components/Icon.d.ts +7 -6
  86. package/DropdownMenu/components/DropdownMenuItem.d.ts +3 -2
  87. package/DropdownMenu/components/DropdownMenuItem.js +9 -2
  88. package/DropdownMenu/components/DropdownMenuItem.js.map +1 -1
  89. package/DropdownMenu/components/DropdownMenuLink.d.ts +9 -8
  90. package/DropdownMenu/components/DropdownMenuSeparator.d.ts +7 -6
  91. package/EditableTitle/EditableTitle.d.ts +7 -6
  92. package/EmptyState/EmptyState.d.ts +43 -0
  93. package/EmptyState/EmptyState.js +93 -0
  94. package/EmptyState/EmptyState.js.map +1 -0
  95. package/EmptyState/EmptyState.stories.d.ts +13 -0
  96. package/EmptyState/EmptyState.stories.js +136 -0
  97. package/EmptyState/EmptyState.stories.js.map +1 -0
  98. package/EmptyState/illustrations/ContentIllustration.d.ts +2 -0
  99. package/EmptyState/illustrations/ContentIllustration.js +100 -0
  100. package/EmptyState/illustrations/ContentIllustration.js.map +1 -0
  101. package/EmptyState/illustrations/LayoutIllustration.d.ts +2 -0
  102. package/EmptyState/illustrations/LayoutIllustration.js +93 -0
  103. package/EmptyState/illustrations/LayoutIllustration.js.map +1 -0
  104. package/EmptyState/illustrations/ListingIllustration.d.ts +2 -0
  105. package/EmptyState/illustrations/ListingIllustration.js +92 -0
  106. package/EmptyState/illustrations/ListingIllustration.js.map +1 -0
  107. package/EmptyState/illustrations/SelectIllustration.d.ts +2 -0
  108. package/EmptyState/illustrations/SelectIllustration.js +100 -0
  109. package/EmptyState/illustrations/SelectIllustration.js.map +1 -0
  110. package/EmptyState/illustrations/TableIllustration.d.ts +2 -0
  111. package/EmptyState/illustrations/TableIllustration.js +233 -0
  112. package/EmptyState/illustrations/TableIllustration.js.map +1 -0
  113. package/EmptyState/illustrations/UploadIllustration.d.ts +2 -0
  114. package/EmptyState/illustrations/UploadIllustration.js +77 -0
  115. package/EmptyState/illustrations/UploadIllustration.js.map +1 -0
  116. package/EmptyState/illustrations/index.d.ts +6 -0
  117. package/EmptyState/illustrations/index.js +6 -0
  118. package/EmptyState/index.d.ts +1 -0
  119. package/EmptyState/index.js +1 -0
  120. package/FilePicker/FilePicker.d.ts +19 -18
  121. package/FilePicker/FilePicker.stories.d.ts +0 -6
  122. package/FilePicker/FilePicker.stories.js +1 -24
  123. package/FilePicker/FilePicker.stories.js.map +1 -1
  124. package/FilePicker/primitives/FilePickerPrimitive.d.ts +20 -19
  125. package/FilePicker/primitives/components/Trigger.d.ts +1 -1
  126. package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.d.ts +19 -7
  127. package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.js +15 -6
  128. package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.js.map +1 -1
  129. package/FilePicker/primitives/components/previews/ItemActions.js.map +1 -1
  130. package/FilePicker/primitives/components/previews/ItemDescription.js +1 -1
  131. package/FilePicker/primitives/components/previews/ItemDescription.js.map +1 -1
  132. package/FilePicker/primitives/components/previews/RichItemPreview/FileType.d.ts +0 -4
  133. package/FilePicker/primitives/components/previews/RichItemPreview/FileType.js.map +1 -1
  134. package/FilePicker/primitives/components/previews/RichItemPreview/Placeholder.d.ts +0 -3
  135. package/FilePicker/primitives/components/previews/RichItemPreview/Placeholder.js.map +1 -1
  136. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.d.ts +12 -6
  137. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.js +6 -4
  138. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.js.map +1 -1
  139. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemThumbnail.d.ts +6 -1
  140. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemThumbnail.js +3 -2
  141. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemThumbnail.js.map +1 -1
  142. package/FilePicker/primitives/components/previews/RichItemPreview/Thumbnail.d.ts +5 -5
  143. package/FilePicker/primitives/components/previews/RichItemPreview/Thumbnail.js +7 -3
  144. package/FilePicker/primitives/components/previews/RichItemPreview/Thumbnail.js.map +1 -1
  145. package/FilePicker/primitives/components/previews/RichItemPreview/ThumbnailActions.d.ts +0 -5
  146. package/FilePicker/primitives/components/previews/RichItemPreview/ThumbnailActions.js.map +1 -1
  147. package/FilePicker/primitives/components/previews/TextOnlyPreview/TextOnlyPreview.d.ts +7 -6
  148. package/FilePicker/primitives/components/previews/TruncatedFileName.d.ts +0 -4
  149. package/FilePicker/primitives/components/previews/TruncatedFileName.js.map +1 -1
  150. package/FilePicker/primitives/components/previews/fileName.d.ts +0 -8
  151. package/FilePicker/primitives/components/previews/fileName.js.map +1 -1
  152. package/FilePicker/primitives/components/previews/variants.d.ts +1 -1
  153. package/FillViewport/FillViewport.d.ts +21 -18
  154. package/FormComponent/Description.d.ts +7 -6
  155. package/FormComponent/ErrorMessage.d.ts +7 -6
  156. package/FormComponent/Label.d.ts +7 -6
  157. package/FormComponent/Note.d.ts +7 -6
  158. package/Grid/Grid.d.ts +24 -22
  159. package/HeaderBar/HeaderBar.d.ts +7 -6
  160. package/Heading/Heading.d.ts +8 -7
  161. package/Icon/Icon.d.ts +9 -8
  162. package/IconPicker/IconPicker.d.ts +7 -6
  163. package/IconPicker/domains/IconPickerIcon.js +1 -1
  164. package/IconPicker/domains/IconPickerIcon.js.map +1 -1
  165. package/IconPicker/primitives/IconPickerPrimitive.d.ts +1 -1
  166. package/IconPicker/primitives/IconPickerPrimitive.js +1 -2
  167. package/IconPicker/primitives/IconPickerPrimitive.js.map +1 -1
  168. package/IconPicker/primitives/components/IconPickerTrigger.d.ts +1 -1
  169. package/ImageEditor/AspectRatioPreview.d.ts +16 -0
  170. package/ImageEditor/AspectRatioPreview.js +26 -0
  171. package/ImageEditor/AspectRatioPreview.js.map +1 -0
  172. package/ImageEditor/CropHotspotEditor.d.ts +22 -0
  173. package/ImageEditor/CropHotspotEditor.js +402 -0
  174. package/ImageEditor/CropHotspotEditor.js.map +1 -0
  175. package/ImageEditor/ImageEditor.d.ts +18 -0
  176. package/ImageEditor/ImageEditor.js +151 -0
  177. package/ImageEditor/ImageEditor.js.map +1 -0
  178. package/ImageEditor/ImageEditor.stories.d.ts +6 -0
  179. package/ImageEditor/ImageEditor.stories.js +42 -0
  180. package/ImageEditor/ImageEditor.stories.js.map +1 -0
  181. package/ImageEditor/MetaFields.d.ts +12 -0
  182. package/ImageEditor/MetaFields.js +20 -0
  183. package/ImageEditor/MetaFields.js.map +1 -0
  184. package/ImageEditor/SectionLabel.d.ts +8 -0
  185. package/ImageEditor/SectionLabel.js +7 -0
  186. package/ImageEditor/SectionLabel.js.map +1 -0
  187. package/ImageEditor/geometry.d.ts +46 -0
  188. package/ImageEditor/geometry.js +126 -0
  189. package/ImageEditor/geometry.js.map +1 -0
  190. package/ImageEditor/index.d.ts +3 -0
  191. package/ImageEditor/index.js +3 -0
  192. package/ImageEditor/types.d.ts +52 -0
  193. package/ImageEditor/types.js +35 -0
  194. package/ImageEditor/types.js.map +1 -0
  195. package/Input/Input.d.ts +7 -6
  196. package/Input/InputPrimitive.d.ts +9 -8
  197. package/Label/Label.d.ts +8 -7
  198. package/Label/components/LabelValue.d.ts +1 -1
  199. package/Link/Link.d.ts +2 -2
  200. package/List/List.d.ts +8 -7
  201. package/List/components/ListItem.d.ts +7 -6
  202. package/List/components/ListItemAction.d.ts +7 -6
  203. package/List/components/ListItemHandle.d.ts +7 -6
  204. package/List/components/ListItemIcon.d.ts +7 -6
  205. package/List/components/ListItemSeparator.d.ts +7 -6
  206. package/Loader/Loader.d.ts +9 -8
  207. package/Loader/OverlayLoader.d.ts +7 -6
  208. package/MultiAutoComplete/MultiAutoComplete.d.ts +7 -6
  209. package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.d.ts +7 -6
  210. package/MultiAutoComplete/primitives/presenters/MultiAutoCompletePresenter.test.js +1 -1
  211. package/MultiAutoComplete/primitives/presenters/MultiAutoCompletePresenter.test.js.map +1 -1
  212. package/MultiAutoComplete/primitives/presenters/MultiAutoCompletePresenterWithFreeInput.d.ts +3 -3
  213. package/MultiAutoComplete/primitives/useMultiAutoComplete.d.ts +3 -3
  214. package/MultiAutoComplete/primitives/useMultiAutoComplete.js +2 -3
  215. package/MultiAutoComplete/primitives/useMultiAutoComplete.js.map +1 -1
  216. package/MultiFilePicker/MultiFilePicker.d.ts +19 -18
  217. package/MultiFilePicker/primitives/MultiFilePickerPrimitive.d.ts +19 -18
  218. package/MultiSelect/MultiSelect.d.ts +7 -6
  219. package/MultiSelect/primitives/MultiSelectPrimitive.d.ts +10 -6
  220. package/MultiSelect/primitives/MultiSelectPrimitive.js +12 -5
  221. package/MultiSelect/primitives/MultiSelectPrimitive.js.map +1 -1
  222. package/Popover/Popover.d.ts +7 -6
  223. package/Popover/Popover.stories.d.ts +7 -0
  224. package/Popover/Popover.stories.js +24 -1
  225. package/Popover/Popover.stories.js.map +1 -1
  226. package/Popover/primitives/PopoverPrimitive.d.ts +7 -7
  227. package/Popover/primitives/components/PopoverContent.js +6 -1
  228. package/Popover/primitives/components/PopoverContent.js.map +1 -1
  229. package/ProgressBar/ProgressBar.d.ts +7 -6
  230. package/RadioGroup/RadioGroup.d.ts +7 -6
  231. package/RadioGroup/primitives/Radio.d.ts +7 -6
  232. package/RadioGroup/primitives/RadioGroupPrimitive.d.ts +5 -1
  233. package/RangeSlider/RangeSlider.d.ts +7 -6
  234. package/ScrollArea/ScrollArea.d.ts +12 -2
  235. package/ScrollArea/ScrollArea.js +11 -4
  236. package/ScrollArea/ScrollArea.js.map +1 -1
  237. package/SegmentedControl/SegmentedControl.d.ts +8 -7
  238. package/SegmentedControl/SegmentedControlTabs.d.ts +5 -2
  239. package/SegmentedControl/primitives/SegmentedControlPrimitive.d.ts +1 -1
  240. package/Select/Select.d.ts +7 -6
  241. package/Select/primitives/components/SelectContent.js +4 -6
  242. package/Select/primitives/components/SelectContent.js.map +1 -1
  243. package/Select/primitives/components/SelectTrigger.d.ts +2 -2
  244. package/Separator/Separator.d.ts +9 -8
  245. package/Sidebar/Sidebar.d.ts +7 -6
  246. package/Sidebar/components/SidebarIcon.d.ts +7 -6
  247. package/Sidebar/components/SidebarProvider.d.ts +4 -4
  248. package/Sidebar/components/items/SidebarMenuGroup.d.ts +9 -8
  249. package/Sidebar/components/items/SidebarMenuItem.d.ts +11 -10
  250. package/Sidebar/components/items/SidebarMenuItemIcon.d.ts +7 -6
  251. package/Sidebar/components/items/SidebarMenuLink.d.ts +11 -10
  252. package/Sidebar/components/items/SidebarMenuProvider.d.ts +4 -4
  253. package/Sidebar/components/items/SidebarMenuRootItem.d.ts +9 -7
  254. package/Skeleton/Skeleton.d.ts +9 -7
  255. package/Skeleton/Skeleton.js +10 -4
  256. package/Skeleton/Skeleton.js.map +1 -1
  257. package/Skeleton/Skeleton.stories.d.ts +2 -0
  258. package/Skeleton/Skeleton.stories.js +28 -2
  259. package/Skeleton/Skeleton.stories.js.map +1 -1
  260. package/Slider/Slider.d.ts +7 -6
  261. package/SteppedProgress/SteppedProgress.d.ts +7 -6
  262. package/SteppedProgress/SteppedProgressItem.d.ts +7 -6
  263. package/Switch/Switch.d.ts +7 -6
  264. package/Switch/primitives/SwitchPrimitive.d.ts +10 -6
  265. package/Table/Table.d.ts +12 -10
  266. package/Table/components/Direction.d.ts +1 -1
  267. package/Tabs/Tabs.d.ts +8 -6
  268. package/Tabs/Tabs.js +5 -2
  269. package/Tabs/Tabs.js.map +1 -1
  270. package/Tabs/components/Content.d.ts +1 -1
  271. package/Tabs/components/List.d.ts +2 -2
  272. package/Tabs/components/Tab.d.ts +7 -6
  273. package/Tabs/components/Trigger.d.ts +3 -2
  274. package/Tabs/components/Trigger.js +8 -3
  275. package/Tabs/components/Trigger.js.map +1 -1
  276. package/Tag/Tag.d.ts +8 -7
  277. package/Tags/Tags.d.ts +7 -6
  278. package/Tags/primitives/TagsPrimitive.d.ts +7 -6
  279. package/Text/Text.d.ts +8 -7
  280. package/Textarea/Textarea.d.ts +7 -6
  281. package/Textarea/TextareaPrimitive.d.ts +9 -8
  282. package/Toast/Toast.d.ts +7 -6
  283. package/Toast/components/ToastActions.d.ts +7 -6
  284. package/Toast/components/ToastDescription.d.ts +7 -6
  285. package/Toast/components/ToastTitle.d.ts +7 -6
  286. package/Toast/useToast.stories.js.map +1 -1
  287. package/Toggle/Toggle.d.ts +7 -6
  288. package/Toggle/primitives/TogglePrimitive.d.ts +13 -9
  289. package/ToggleGroup/ToggleGroup.d.ts +7 -6
  290. package/ToggleGroup/primitives/ToggleGroupPrimitive.d.ts +13 -9
  291. package/Tooltip/Tooltip.d.ts +7 -6
  292. package/Tree/Tree.d.ts +7 -6
  293. package/Tree/components/Item.d.ts +7 -6
  294. package/Tree/components/ItemCollapseTrigger.d.ts +7 -6
  295. package/Tree/components/ItemContent.d.ts +8 -6
  296. package/Tree/components/ItemDragHandle.d.ts +7 -6
  297. package/Tree/components/ItemIcon.d.ts +7 -6
  298. package/Tree/components/ItemPlaceholder.d.ts +7 -6
  299. package/Tree/components/ItemSubIndentation.d.ts +7 -6
  300. package/Widget/Widget.d.ts +8 -22
  301. package/Widget/components/Icon.d.ts +7 -6
  302. package/Widget/components/WidgetAction.d.ts +8 -6
  303. package/Widget/components/WidgetContent.d.ts +5 -5
  304. package/exports/admin/ui.d.ts +2 -0
  305. package/exports/admin/ui.js +2 -0
  306. package/hooks/index.d.ts +1 -0
  307. package/hooks/index.js +1 -0
  308. package/hooks/useEscapeScrollLock.d.ts +13 -0
  309. package/hooks/useEscapeScrollLock.js +21 -0
  310. package/hooks/useEscapeScrollLock.js.map +1 -0
  311. package/index.d.ts +3 -0
  312. package/index.js +3 -0
  313. package/package.json +25 -25
  314. package/theme.css +41 -1
  315. package/utils.js +52 -34
  316. 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;
@@ -13,7 +13,17 @@ export interface ScrollPosition {
13
13
  interface ScrollAreaProps extends Omit<React.ComponentProps<typeof ScrollAreaPrimitive.Root>, "onScroll"> {
14
14
  onScrollPositionChange?: (position: ScrollPosition) => void;
15
15
  onScroll?: (position: ScrollPosition) => void;
16
+ /**
17
+ * Classes for the scrolling element itself. Put the height limit here when the area has to grow
18
+ * with its content up to a maximum, instead of filling a parent of a known height.
19
+ */
20
+ viewportClassName?: string;
21
+ /**
22
+ * Native scroll handler for the scrolling element, for callers that need the event itself.
23
+ * `onScroll` reports positions instead.
24
+ */
25
+ onViewportScroll?: React.UIEventHandler<HTMLDivElement>;
16
26
  }
17
- declare function ScrollArea({ className, children, onScrollPositionChange, onScroll, ...props }: ScrollAreaProps): React.JSX.Element;
18
- declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): React.JSX.Element;
27
+ declare function ScrollArea({ className, children, onScrollPositionChange, onScroll, viewportClassName, onViewportScroll, type, ...props }: ScrollAreaProps): React.JSX.Element;
28
+ declare function ScrollBar({ className, orientation, onMouseDown, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): React.JSX.Element;
19
29
  export { ScrollArea, ScrollBar };
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../utils.js";
2
2
  import * as __rspack_external_react from "react";
3
3
  import * as __rspack_external__radix_ui_react_scroll_area_bdec1136 from "@radix-ui/react-scroll-area";
4
- function ScrollArea({ className, children, onScrollPositionChange, onScroll, ...props }) {
4
+ function ScrollArea({ className, children, onScrollPositionChange, onScroll, viewportClassName, onViewportScroll, type = "auto", ...props }) {
5
5
  const viewportRef = __rspack_external_react.useRef(null);
6
6
  __rspack_external_react.useEffect(()=>{
7
7
  const viewport = viewportRef.current;
@@ -30,19 +30,26 @@ function ScrollArea({ className, children, onScrollPositionChange, onScroll, ...
30
30
  ]);
31
31
  return /*#__PURE__*/ __rspack_external_react.createElement(__rspack_external__radix_ui_react_scroll_area_bdec1136.Root, {
32
32
  "data-slot": "scroll-area",
33
+ type: type,
33
34
  className: cn("relative", className),
34
35
  ...props
35
36
  }, /*#__PURE__*/ __rspack_external_react.createElement(__rspack_external__radix_ui_react_scroll_area_bdec1136.Viewport, {
36
37
  ref: viewportRef,
37
38
  "data-slot": "scroll-area-viewport",
38
- className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"
39
+ onScroll: onViewportScroll,
40
+ className: cn("focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1", viewportClassName)
39
41
  }, children), /*#__PURE__*/ __rspack_external_react.createElement(ScrollBar, null), /*#__PURE__*/ __rspack_external_react.createElement(__rspack_external__radix_ui_react_scroll_area_bdec1136.Corner, null));
40
42
  }
41
- function ScrollBar({ className, orientation = "vertical", ...props }) {
43
+ function ScrollBar({ className, orientation = "vertical", onMouseDown, ...props }) {
44
+ const handleMouseDown = (event)=>{
45
+ onMouseDown?.(event);
46
+ event.preventDefault();
47
+ };
42
48
  return /*#__PURE__*/ __rspack_external_react.createElement(__rspack_external__radix_ui_react_scroll_area_bdec1136.ScrollAreaScrollbar, {
43
49
  "data-slot": "scroll-area-scrollbar",
44
50
  orientation: orientation,
45
- className: cn("flex touch-none transition-colors select-none", "vertical" === orientation && "h-full w-[8px] border-l border-l-transparent", "horizontal" === orientation && "h-[8px] flex-col border-t border-t-transparent", className),
51
+ onMouseDown: handleMouseDown,
52
+ className: cn("flex touch-none transition-colors select-none", "vertical" === orientation && "h-full w-[10px] p-[2px]", "horizontal" === orientation && "h-[10px] flex-col p-[2px]", className),
46
53
  ...props
47
54
  }, /*#__PURE__*/ __rspack_external_react.createElement(__rspack_external__radix_ui_react_scroll_area_bdec1136.ScrollAreaThumb, {
48
55
  "data-slot": "scroll-area-thumb",
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollArea/ScrollArea.js","sources":["../../src/ScrollArea/ScrollArea.tsx"],"sourcesContent":["import * as React from \"react\";\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\nimport { cn } from \"~/utils.js\";\n\nexport interface ScrollPosition {\n top: number;\n left: number;\n scrollTop: number;\n scrollLeft: number;\n scrollHeight: number;\n scrollWidth: number;\n clientHeight: number;\n clientWidth: number;\n}\n\ninterface ScrollAreaProps extends Omit<\n React.ComponentProps<typeof ScrollAreaPrimitive.Root>,\n \"onScroll\"\n> {\n onScrollPositionChange?: (position: ScrollPosition) => void;\n onScroll?: (position: ScrollPosition) => void;\n}\n\nfunction ScrollArea({\n className,\n children,\n onScrollPositionChange,\n onScroll,\n ...props\n}: ScrollAreaProps) {\n const viewportRef = React.useRef<HTMLDivElement>(null);\n\n React.useEffect(() => {\n const viewport = viewportRef.current;\n if (!viewport || (!onScrollPositionChange && !onScroll)) {\n return;\n }\n\n // The Viewport component itself is the scrollable element.\n const handleScroll = () => {\n const { scrollTop, scrollLeft, scrollHeight, scrollWidth, clientHeight, clientWidth } =\n viewport;\n\n const position: ScrollPosition = {\n top: scrollHeight > clientHeight ? scrollTop / (scrollHeight - clientHeight) : 0,\n left: scrollWidth > clientWidth ? scrollLeft / (scrollWidth - clientWidth) : 0,\n scrollTop,\n scrollLeft,\n scrollHeight,\n scrollWidth,\n clientHeight,\n clientWidth\n };\n\n onScrollPositionChange?.(position);\n onScroll?.(position);\n };\n\n // Call handleScroll initially to provide initial position.\n handleScroll();\n\n viewport.addEventListener(\"scroll\", handleScroll);\n return () => viewport.removeEventListener(\"scroll\", handleScroll);\n }, [onScrollPositionChange, onScroll]);\n\n return (\n <ScrollAreaPrimitive.Root\n data-slot=\"scroll-area\"\n className={cn(\"relative\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n ref={viewportRef}\n data-slot=\"scroll-area-viewport\"\n className=\"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\nfunction ScrollBar({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n return (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n className={cn(\n \"flex touch-none transition-colors select-none\",\n orientation === \"vertical\" && \"h-full w-[8px] border-l border-l-transparent\",\n orientation === \"horizontal\" && \"h-[8px] flex-col border-t border-t-transparent\",\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb\n data-slot=\"scroll-area-thumb\"\n className=\"bg-neutral-strong/70 relative flex-1 rounded-full\"\n />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n );\n}\n\nexport { ScrollArea, ScrollBar };\n"],"names":["ScrollArea","className","children","onScrollPositionChange","onScroll","props","viewportRef","React","viewport","handleScroll","scrollTop","scrollLeft","scrollHeight","scrollWidth","clientHeight","clientWidth","position","ScrollAreaPrimitive","cn","ScrollBar","orientation"],"mappings":";;;AAuBA,SAASA,WAAW,EAChBC,SAAS,EACTC,QAAQ,EACRC,sBAAsB,EACtBC,QAAQ,EACR,GAAGC,OACW;IACd,MAAMC,cAAcC,wBAAAA,MAAY,CAAiB;IAEjDA,wBAAAA,SAAe,CAAC;QACZ,MAAMC,WAAWF,YAAY,OAAO;QACpC,IAAI,CAACE,YAAa,CAACL,0BAA0B,CAACC,UAC1C;QAIJ,MAAMK,eAAe;YACjB,MAAM,EAAEC,SAAS,EAAEC,UAAU,EAAEC,YAAY,EAAEC,WAAW,EAAEC,YAAY,EAAEC,WAAW,EAAE,GACjFP;YAEJ,MAAMQ,WAA2B;gBAC7B,KAAKJ,eAAeE,eAAeJ,YAAaE,CAAAA,eAAeE,YAAW,IAAK;gBAC/E,MAAMD,cAAcE,cAAcJ,aAAcE,CAAAA,cAAcE,WAAU,IAAK;gBAC7EL;gBACAC;gBACAC;gBACAC;gBACAC;gBACAC;YACJ;YAEAZ,yBAAyBa;YACzBZ,WAAWY;QACf;QAGAP;QAEAD,SAAS,gBAAgB,CAAC,UAAUC;QACpC,OAAO,IAAMD,SAAS,mBAAmB,CAAC,UAAUC;IACxD,GAAG;QAACN;QAAwBC;KAAS;IAErC,OAAO,WAAP,GACI,sCAACa,uDAAAA,IAAwB;QACrB,aAAU;QACV,WAAWC,GAAG,YAAYjB;QACzB,GAAGI,KAAK;qBAET,sCAACY,uDAAAA,QAA4B;QACzB,KAAKX;QACL,aAAU;QACV,WAAU;OAETJ,WAAAA,WAAAA,GAEL,sCAACiB,WAASA,OAAAA,WAAAA,GACV,sCAACF,uDAAAA,MAA0B;AAGvC;AAEA,SAASE,UAAU,EACflB,SAAS,EACTmB,cAAc,UAAU,EACxB,GAAGf,OACgE;IACnE,OAAO,WAAP,GACI,sCAACY,uDAAAA,mBAAuC;QACpC,aAAU;QACV,aAAaG;QACb,WAAWF,GACP,iDACAE,AAAgB,eAAhBA,eAA8B,gDAC9BA,AAAgB,iBAAhBA,eAAgC,kDAChCnB;QAEH,GAAGI,KAAK;qBAET,sCAACY,uDAAAA,eAAmC;QAChC,aAAU;QACV,WAAU;;AAI1B"}
1
+ {"version":3,"file":"ScrollArea/ScrollArea.js","sources":["../../src/ScrollArea/ScrollArea.tsx"],"sourcesContent":["import * as React from \"react\";\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\nimport { cn } from \"~/utils.js\";\n\nexport interface ScrollPosition {\n top: number;\n left: number;\n scrollTop: number;\n scrollLeft: number;\n scrollHeight: number;\n scrollWidth: number;\n clientHeight: number;\n clientWidth: number;\n}\n\ninterface ScrollAreaProps extends Omit<\n React.ComponentProps<typeof ScrollAreaPrimitive.Root>,\n \"onScroll\"\n> {\n onScrollPositionChange?: (position: ScrollPosition) => void;\n onScroll?: (position: ScrollPosition) => void;\n /**\n * Classes for the scrolling element itself. Put the height limit here when the area has to grow\n * with its content up to a maximum, instead of filling a parent of a known height.\n */\n viewportClassName?: string;\n /**\n * Native scroll handler for the scrolling element, for callers that need the event itself.\n * `onScroll` reports positions instead.\n */\n onViewportScroll?: React.UIEventHandler<HTMLDivElement>;\n}\n\nfunction ScrollArea({\n className,\n children,\n onScrollPositionChange,\n onScroll,\n viewportClassName,\n onViewportScroll,\n /*\n * Radix would only show the scrollbar once the pointer is inside. Showing it whenever there is\n * more content is the same rule the rest of the admin follows, a Select included.\n */\n type = \"auto\",\n ...props\n}: ScrollAreaProps) {\n const viewportRef = React.useRef<HTMLDivElement>(null);\n\n React.useEffect(() => {\n const viewport = viewportRef.current;\n if (!viewport || (!onScrollPositionChange && !onScroll)) {\n return;\n }\n\n // The Viewport component itself is the scrollable element.\n const handleScroll = () => {\n const { scrollTop, scrollLeft, scrollHeight, scrollWidth, clientHeight, clientWidth } =\n viewport;\n\n const position: ScrollPosition = {\n top: scrollHeight > clientHeight ? scrollTop / (scrollHeight - clientHeight) : 0,\n left: scrollWidth > clientWidth ? scrollLeft / (scrollWidth - clientWidth) : 0,\n scrollTop,\n scrollLeft,\n scrollHeight,\n scrollWidth,\n clientHeight,\n clientWidth\n };\n\n onScrollPositionChange?.(position);\n onScroll?.(position);\n };\n\n // Call handleScroll initially to provide initial position.\n handleScroll();\n\n viewport.addEventListener(\"scroll\", handleScroll);\n return () => viewport.removeEventListener(\"scroll\", handleScroll);\n }, [onScrollPositionChange, onScroll]);\n\n return (\n <ScrollAreaPrimitive.Root\n data-slot=\"scroll-area\"\n type={type}\n className={cn(\"relative\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n ref={viewportRef}\n data-slot=\"scroll-area-viewport\"\n onScroll={onViewportScroll}\n className={cn(\n \"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1\",\n viewportClassName\n )}\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\nfunction ScrollBar({\n className,\n orientation = \"vertical\",\n onMouseDown,\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n const handleMouseDown = (event: React.MouseEvent<HTMLDivElement>) => {\n onMouseDown?.(event);\n\n /*\n * Grabbing a scrollbar must not move focus. An autocomplete closes its list the moment its\n * input blurs, so without this, dragging the thumb dismisses the list under the pointer.\n */\n event.preventDefault();\n };\n\n return (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n onMouseDown={handleMouseDown}\n className={cn(\n \"flex touch-none transition-colors select-none\",\n orientation === \"vertical\" && \"h-full w-[10px] p-[2px]\",\n orientation === \"horizontal\" && \"h-[10px] flex-col p-[2px]\",\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb\n data-slot=\"scroll-area-thumb\"\n className=\"bg-neutral-strong/70 relative flex-1 rounded-full\"\n />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n );\n}\n\nexport { ScrollArea, ScrollBar };\n"],"names":["ScrollArea","className","children","onScrollPositionChange","onScroll","viewportClassName","onViewportScroll","type","props","viewportRef","React","viewport","handleScroll","scrollTop","scrollLeft","scrollHeight","scrollWidth","clientHeight","clientWidth","position","ScrollAreaPrimitive","cn","ScrollBar","orientation","onMouseDown","handleMouseDown","event"],"mappings":";;;AAiCA,SAASA,WAAW,EAChBC,SAAS,EACTC,QAAQ,EACRC,sBAAsB,EACtBC,QAAQ,EACRC,iBAAiB,EACjBC,gBAAgB,EAKhBC,OAAO,MAAM,EACb,GAAGC,OACW;IACd,MAAMC,cAAcC,wBAAAA,MAAY,CAAiB;IAEjDA,wBAAAA,SAAe,CAAC;QACZ,MAAMC,WAAWF,YAAY,OAAO;QACpC,IAAI,CAACE,YAAa,CAACR,0BAA0B,CAACC,UAC1C;QAIJ,MAAMQ,eAAe;YACjB,MAAM,EAAEC,SAAS,EAAEC,UAAU,EAAEC,YAAY,EAAEC,WAAW,EAAEC,YAAY,EAAEC,WAAW,EAAE,GACjFP;YAEJ,MAAMQ,WAA2B;gBAC7B,KAAKJ,eAAeE,eAAeJ,YAAaE,CAAAA,eAAeE,YAAW,IAAK;gBAC/E,MAAMD,cAAcE,cAAcJ,aAAcE,CAAAA,cAAcE,WAAU,IAAK;gBAC7EL;gBACAC;gBACAC;gBACAC;gBACAC;gBACAC;YACJ;YAEAf,yBAAyBgB;YACzBf,WAAWe;QACf;QAGAP;QAEAD,SAAS,gBAAgB,CAAC,UAAUC;QACpC,OAAO,IAAMD,SAAS,mBAAmB,CAAC,UAAUC;IACxD,GAAG;QAACT;QAAwBC;KAAS;IAErC,OAAO,WAAP,GACI,sCAACgB,uDAAAA,IAAwB;QACrB,aAAU;QACV,MAAMb;QACN,WAAWc,GAAG,YAAYpB;QACzB,GAAGO,KAAK;qBAET,sCAACY,uDAAAA,QAA4B;QACzB,KAAKX;QACL,aAAU;QACV,UAAUH;QACV,WAAWe,GACP,sJACAhB;OAGHH,WAAAA,WAAAA,GAEL,sCAACoB,WAASA,OAAAA,WAAAA,GACV,sCAACF,uDAAAA,MAA0B;AAGvC;AAEA,SAASE,UAAU,EACfrB,SAAS,EACTsB,cAAc,UAAU,EACxBC,WAAW,EACX,GAAGhB,OACgE;IACnE,MAAMiB,kBAAkB,CAACC;QACrBF,cAAcE;QAMdA,MAAM,cAAc;IACxB;IAEA,OAAO,WAAP,GACI,sCAACN,uDAAAA,mBAAuC;QACpC,aAAU;QACV,aAAaG;QACb,aAAaE;QACb,WAAWJ,GACP,iDACAE,AAAgB,eAAhBA,eAA8B,2BAC9BA,AAAgB,iBAAhBA,eAAgC,6BAChCtB;QAEH,GAAGO,KAAK;qBAET,sCAACY,uDAAAA,eAAmC;QAChC,aAAU;QACV,WAAU;;AAI1B"}
@@ -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;
@@ -1,22 +1,20 @@
1
1
  import { Select } from "radix-ui";
2
2
  import { cn } from "../../../utils.js";
3
- import { SelectScrollUpButton } from "./SelectScrollUpButton.js";
4
- import { SelectScrollDownButton } from "./SelectScrollDownButton.js";
5
3
  import * as __rspack_external_react from "react";
6
4
  const SelectContent = ({ className, children, ...props })=>/*#__PURE__*/ __rspack_external_react.createElement(Select.Portal, null, /*#__PURE__*/ __rspack_external_react.createElement(Select.Content, {
7
5
  className: cn([
8
- "relative z-popover max-h-96 min-w-56 shadow-lg py-sm overflow-hidden rounded-sm border-sm border-neutral-muted bg-neutral-base text-neutral-strong",
6
+ "relative z-popover max-h-[250px] min-w-56 shadow-lg overflow-hidden rounded-sm border-sm border-neutral-muted bg-neutral-base text-neutral-strong",
9
7
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
10
8
  "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1"
11
9
  ], className),
12
10
  position: "popper",
13
11
  ...props
14
- }, /*#__PURE__*/ __rspack_external_react.createElement(SelectScrollUpButton, null), /*#__PURE__*/ __rspack_external_react.createElement(Select.Viewport, {
12
+ }, /*#__PURE__*/ __rspack_external_react.createElement(Select.Viewport, {
15
13
  className: cn([
16
- "py-xs",
14
+ "py-sm",
17
15
  "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"
18
16
  ])
19
- }, children), /*#__PURE__*/ __rspack_external_react.createElement(SelectScrollDownButton, null)));
17
+ }, children)));
20
18
  export { SelectContent };
21
19
 
22
20
  //# sourceMappingURL=SelectContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select/primitives/components/SelectContent.js","sources":["../../../../src/Select/primitives/components/SelectContent.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Select as SelectPrimitives } from \"radix-ui\";\nimport { cn } from \"~/utils.js\";\nimport { SelectScrollUpButton } from \"./SelectScrollUpButton.js\";\nimport { SelectScrollDownButton } from \"./SelectScrollDownButton.js\";\n\ntype SelectContentProps = SelectPrimitives.SelectContentProps;\n\nconst SelectContent = ({ className, children, ...props }: SelectContentProps) => (\n <SelectPrimitives.Portal>\n <SelectPrimitives.Content\n className={cn(\n [\n \"relative z-popover max-h-96 min-w-56 shadow-lg py-sm overflow-hidden rounded-sm border-sm border-neutral-muted bg-neutral-base text-neutral-strong\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\"\n ],\n className\n )}\n position={\"popper\"}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitives.Viewport\n className={cn([\n \"py-xs\",\n \"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)\"\n ])}\n >\n {children}\n </SelectPrimitives.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitives.Content>\n </SelectPrimitives.Portal>\n);\n\nexport { SelectContent, type SelectContentProps };\n"],"names":["SelectContent","className","children","props","SelectPrimitives","cn","SelectScrollUpButton","SelectScrollDownButton"],"mappings":";;;;;AAQA,MAAMA,gBAAgB,CAAC,EAAEC,SAAS,EAAEC,QAAQ,EAAE,GAAGC,OAA2B,iBACxE,sCAACC,OAAAA,MAAuB,sBACpB,sCAACA,OAAAA,OAAwB;QACrB,WAAWC,GACP;YACI;YACA;YACA;SACH,EACDJ;QAEJ,UAAU;QACT,GAAGE,KAAK;qBAET,sCAACG,sBAAoBA,OAAAA,WAAAA,GACrB,sCAACF,OAAAA,QAAyB;QACtB,WAAWC,GAAG;YACV;YACA;SACH;OAEAH,WAAAA,WAAAA,GAEL,sCAACK,wBAAsBA"}
1
+ {"version":3,"file":"Select/primitives/components/SelectContent.js","sources":["../../../../src/Select/primitives/components/SelectContent.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Select as SelectPrimitives } from \"radix-ui\";\nimport { cn } from \"~/utils.js\";\n\ntype SelectContentProps = SelectPrimitives.SelectContentProps;\n\nconst SelectContent = ({ className, children, ...props }: SelectContentProps) => (\n <SelectPrimitives.Portal>\n <SelectPrimitives.Content\n className={cn(\n [\n \"relative z-popover max-h-[250px] min-w-56 shadow-lg overflow-hidden rounded-sm border-sm border-neutral-muted bg-neutral-base text-neutral-strong\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\"\n ],\n className\n )}\n position={\"popper\"}\n {...props}\n >\n {/* Two things keep this scrollbar in line with the one in the autocomplete popovers.\n No scroll buttons, because they come and go with the scroll position, taking the\n viewport height and the size of the thumb with them. And the padding on the\n viewport rather than around it, so the scrollbar runs the full height of the list. */}\n <SelectPrimitives.Viewport\n className={cn([\n \"py-sm\",\n \"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)\"\n ])}\n >\n {children}\n </SelectPrimitives.Viewport>\n </SelectPrimitives.Content>\n </SelectPrimitives.Portal>\n);\n\nexport { SelectContent, type SelectContentProps };\n"],"names":["SelectContent","className","children","props","SelectPrimitives","cn"],"mappings":";;;AAMA,MAAMA,gBAAgB,CAAC,EAAEC,SAAS,EAAEC,QAAQ,EAAE,GAAGC,OAA2B,iBACxE,sCAACC,OAAAA,MAAuB,sBACpB,sCAACA,OAAAA,OAAwB;QACrB,WAAWC,GACP;YACI;YACA;YACA;SACH,EACDJ;QAEJ,UAAU;QACT,GAAGE,KAAK;qBAMT,sCAACC,OAAAA,QAAyB;QACtB,WAAWC,GAAG;YACV;YACA;SACH;OAEAH"}
@@ -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 };