@webiny/admin-ui 6.4.12-beta.4 → 6.5.0-beta.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 (298) 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/DataList/DataListModal.d.ts +6 -3
  47. package/DataTable/DataTable.d.ts +13 -22
  48. package/DataTable/DataTable.js +6 -14
  49. package/DataTable/DataTable.js.map +1 -1
  50. package/DataTable/components/ColumnsVisibility.d.ts +4 -5
  51. package/DataTable/components/ColumnsVisibility.js +3 -6
  52. package/DataTable/components/ColumnsVisibility.js.map +1 -1
  53. package/DatePicker/DatePicker.d.ts +11 -7
  54. package/DatePicker/DatePicker.js +10 -2
  55. package/DatePicker/DatePicker.js.map +1 -1
  56. package/DatePicker/primitives/DatePickerPrimitive.d.ts +7 -6
  57. package/DatePicker/primitives/DateTimePicker.d.ts +1 -1
  58. package/DatePicker/primitives/DateTimePicker.js +23 -16
  59. package/DatePicker/primitives/DateTimePicker.js.map +1 -1
  60. package/DatePicker/primitives/components/DatePickerTrigger.js +1 -1
  61. package/DatePicker/primitives/components/DatePickerTrigger.js.map +1 -1
  62. package/DatePicker/utils/dateHelpers.d.ts +1 -1
  63. package/DatePicker/utils/dateHelpers.js +2 -1
  64. package/DatePicker/utils/dateHelpers.js.map +1 -1
  65. package/DatePicker/utils/timezoneHelpers.d.ts +3 -0
  66. package/DatePicker/utils/timezoneHelpers.js +32 -0
  67. package/DatePicker/utils/timezoneHelpers.js.map +1 -0
  68. package/DatePicker/utils/types.d.ts +2 -0
  69. package/Dialog/Dialog.d.ts +8 -22
  70. package/Dialog/components/CancelAction.d.ts +8 -6
  71. package/Dialog/components/ConfirmAction.d.ts +8 -6
  72. package/Dialog/components/DialogContent.d.ts +1 -1
  73. package/Dialog/components/DialogFooter.d.ts +1 -1
  74. package/Dialog/components/DialogTitle.d.ts +1 -1
  75. package/Dialog/components/Icon.d.ts +7 -6
  76. package/Drawer/Drawer.d.ts +8 -22
  77. package/Drawer/Drawer.stories.js +1 -0
  78. package/Drawer/Drawer.stories.js.map +1 -1
  79. package/Drawer/components/CancelButton.d.ts +8 -6
  80. package/Drawer/components/ConfirmButton.d.ts +8 -6
  81. package/Drawer/components/DrawerContent.d.ts +1 -1
  82. package/Drawer/components/Icon.d.ts +7 -6
  83. package/DropdownMenu/components/DropdownMenuItem.d.ts +3 -2
  84. package/DropdownMenu/components/DropdownMenuItem.js +9 -2
  85. package/DropdownMenu/components/DropdownMenuItem.js.map +1 -1
  86. package/DropdownMenu/components/DropdownMenuLink.d.ts +9 -8
  87. package/DropdownMenu/components/DropdownMenuSeparator.d.ts +7 -6
  88. package/EditableTitle/EditableTitle.d.ts +7 -6
  89. package/EmptyState/EmptyState.d.ts +43 -0
  90. package/EmptyState/EmptyState.js +93 -0
  91. package/EmptyState/EmptyState.js.map +1 -0
  92. package/EmptyState/EmptyState.stories.d.ts +13 -0
  93. package/EmptyState/EmptyState.stories.js +136 -0
  94. package/EmptyState/EmptyState.stories.js.map +1 -0
  95. package/EmptyState/illustrations/ContentIllustration.d.ts +2 -0
  96. package/EmptyState/illustrations/ContentIllustration.js +100 -0
  97. package/EmptyState/illustrations/ContentIllustration.js.map +1 -0
  98. package/EmptyState/illustrations/LayoutIllustration.d.ts +2 -0
  99. package/EmptyState/illustrations/LayoutIllustration.js +93 -0
  100. package/EmptyState/illustrations/LayoutIllustration.js.map +1 -0
  101. package/EmptyState/illustrations/ListingIllustration.d.ts +2 -0
  102. package/EmptyState/illustrations/ListingIllustration.js +92 -0
  103. package/EmptyState/illustrations/ListingIllustration.js.map +1 -0
  104. package/EmptyState/illustrations/SelectIllustration.d.ts +2 -0
  105. package/EmptyState/illustrations/SelectIllustration.js +100 -0
  106. package/EmptyState/illustrations/SelectIllustration.js.map +1 -0
  107. package/EmptyState/illustrations/TableIllustration.d.ts +2 -0
  108. package/EmptyState/illustrations/TableIllustration.js +233 -0
  109. package/EmptyState/illustrations/TableIllustration.js.map +1 -0
  110. package/EmptyState/illustrations/UploadIllustration.d.ts +2 -0
  111. package/EmptyState/illustrations/UploadIllustration.js +77 -0
  112. package/EmptyState/illustrations/UploadIllustration.js.map +1 -0
  113. package/EmptyState/illustrations/index.d.ts +6 -0
  114. package/EmptyState/illustrations/index.js +6 -0
  115. package/EmptyState/index.d.ts +1 -0
  116. package/EmptyState/index.js +1 -0
  117. package/FilePicker/FilePicker.d.ts +19 -18
  118. package/FilePicker/FilePicker.stories.d.ts +0 -6
  119. package/FilePicker/FilePicker.stories.js +1 -24
  120. package/FilePicker/FilePicker.stories.js.map +1 -1
  121. package/FilePicker/primitives/FilePickerPrimitive.d.ts +20 -19
  122. package/FilePicker/primitives/components/Trigger.d.ts +1 -1
  123. package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.d.ts +19 -7
  124. package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.js +15 -6
  125. package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.js.map +1 -1
  126. package/FilePicker/primitives/components/previews/ItemActions.js.map +1 -1
  127. package/FilePicker/primitives/components/previews/ItemDescription.js +1 -1
  128. package/FilePicker/primitives/components/previews/ItemDescription.js.map +1 -1
  129. package/FilePicker/primitives/components/previews/RichItemPreview/FileType.d.ts +0 -4
  130. package/FilePicker/primitives/components/previews/RichItemPreview/FileType.js.map +1 -1
  131. package/FilePicker/primitives/components/previews/RichItemPreview/Placeholder.d.ts +0 -3
  132. package/FilePicker/primitives/components/previews/RichItemPreview/Placeholder.js.map +1 -1
  133. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.d.ts +12 -6
  134. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.js +6 -4
  135. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.js.map +1 -1
  136. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemThumbnail.d.ts +6 -1
  137. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemThumbnail.js +3 -2
  138. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemThumbnail.js.map +1 -1
  139. package/FilePicker/primitives/components/previews/RichItemPreview/Thumbnail.d.ts +5 -5
  140. package/FilePicker/primitives/components/previews/RichItemPreview/Thumbnail.js +7 -3
  141. package/FilePicker/primitives/components/previews/RichItemPreview/Thumbnail.js.map +1 -1
  142. package/FilePicker/primitives/components/previews/RichItemPreview/ThumbnailActions.d.ts +0 -5
  143. package/FilePicker/primitives/components/previews/RichItemPreview/ThumbnailActions.js.map +1 -1
  144. package/FilePicker/primitives/components/previews/TextOnlyPreview/TextOnlyPreview.d.ts +7 -6
  145. package/FilePicker/primitives/components/previews/TruncatedFileName.d.ts +0 -4
  146. package/FilePicker/primitives/components/previews/TruncatedFileName.js.map +1 -1
  147. package/FilePicker/primitives/components/previews/fileName.d.ts +0 -8
  148. package/FilePicker/primitives/components/previews/fileName.js.map +1 -1
  149. package/FilePicker/primitives/components/previews/variants.d.ts +1 -1
  150. package/FillViewport/FillViewport.d.ts +21 -18
  151. package/FormComponent/Description.d.ts +7 -6
  152. package/FormComponent/ErrorMessage.d.ts +7 -6
  153. package/FormComponent/Label.d.ts +7 -6
  154. package/FormComponent/Note.d.ts +7 -6
  155. package/Grid/Grid.d.ts +24 -22
  156. package/HeaderBar/HeaderBar.d.ts +7 -6
  157. package/Heading/Heading.d.ts +8 -7
  158. package/Icon/Icon.d.ts +9 -8
  159. package/IconPicker/IconPicker.d.ts +7 -6
  160. package/IconPicker/domains/IconPickerIcon.js +1 -1
  161. package/IconPicker/domains/IconPickerIcon.js.map +1 -1
  162. package/IconPicker/primitives/IconPickerPrimitive.d.ts +1 -1
  163. package/IconPicker/primitives/components/IconPickerTrigger.d.ts +1 -1
  164. package/ImageEditor/AspectRatioPreview.d.ts +16 -0
  165. package/ImageEditor/AspectRatioPreview.js +26 -0
  166. package/ImageEditor/AspectRatioPreview.js.map +1 -0
  167. package/ImageEditor/CropHotspotEditor.d.ts +22 -0
  168. package/ImageEditor/CropHotspotEditor.js +402 -0
  169. package/ImageEditor/CropHotspotEditor.js.map +1 -0
  170. package/ImageEditor/ImageEditor.d.ts +18 -0
  171. package/ImageEditor/ImageEditor.js +151 -0
  172. package/ImageEditor/ImageEditor.js.map +1 -0
  173. package/ImageEditor/ImageEditor.stories.d.ts +6 -0
  174. package/ImageEditor/ImageEditor.stories.js +42 -0
  175. package/ImageEditor/ImageEditor.stories.js.map +1 -0
  176. package/ImageEditor/MetaFields.d.ts +12 -0
  177. package/ImageEditor/MetaFields.js +20 -0
  178. package/ImageEditor/MetaFields.js.map +1 -0
  179. package/ImageEditor/SectionLabel.d.ts +8 -0
  180. package/ImageEditor/SectionLabel.js +7 -0
  181. package/ImageEditor/SectionLabel.js.map +1 -0
  182. package/ImageEditor/geometry.d.ts +46 -0
  183. package/ImageEditor/geometry.js +126 -0
  184. package/ImageEditor/geometry.js.map +1 -0
  185. package/ImageEditor/index.d.ts +3 -0
  186. package/ImageEditor/index.js +3 -0
  187. package/ImageEditor/types.d.ts +52 -0
  188. package/ImageEditor/types.js +35 -0
  189. package/ImageEditor/types.js.map +1 -0
  190. package/Input/Input.d.ts +7 -6
  191. package/Input/InputPrimitive.d.ts +9 -8
  192. package/Label/Label.d.ts +8 -7
  193. package/Label/components/LabelValue.d.ts +1 -1
  194. package/Link/Link.d.ts +2 -2
  195. package/List/List.d.ts +8 -7
  196. package/List/components/ListItem.d.ts +7 -6
  197. package/List/components/ListItemAction.d.ts +7 -6
  198. package/List/components/ListItemHandle.d.ts +7 -6
  199. package/List/components/ListItemIcon.d.ts +7 -6
  200. package/List/components/ListItemSeparator.d.ts +7 -6
  201. package/Loader/Loader.d.ts +9 -8
  202. package/Loader/OverlayLoader.d.ts +7 -6
  203. package/MultiAutoComplete/MultiAutoComplete.d.ts +7 -6
  204. package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.d.ts +7 -6
  205. package/MultiAutoComplete/primitives/presenters/MultiAutoCompletePresenter.test.js +1 -1
  206. package/MultiAutoComplete/primitives/presenters/MultiAutoCompletePresenter.test.js.map +1 -1
  207. package/MultiAutoComplete/primitives/presenters/MultiAutoCompletePresenterWithFreeInput.d.ts +3 -3
  208. package/MultiAutoComplete/primitives/useMultiAutoComplete.d.ts +3 -3
  209. package/MultiAutoComplete/primitives/useMultiAutoComplete.js +2 -3
  210. package/MultiAutoComplete/primitives/useMultiAutoComplete.js.map +1 -1
  211. package/MultiFilePicker/MultiFilePicker.d.ts +19 -18
  212. package/MultiFilePicker/primitives/MultiFilePickerPrimitive.d.ts +19 -18
  213. package/MultiSelect/MultiSelect.d.ts +7 -6
  214. package/MultiSelect/primitives/MultiSelectPrimitive.d.ts +10 -6
  215. package/MultiSelect/primitives/MultiSelectPrimitive.js +1 -1
  216. package/MultiSelect/primitives/MultiSelectPrimitive.js.map +1 -1
  217. package/Popover/Popover.d.ts +7 -6
  218. package/Popover/primitives/PopoverPrimitive.d.ts +7 -7
  219. package/ProgressBar/ProgressBar.d.ts +7 -6
  220. package/RadioGroup/RadioGroup.d.ts +7 -6
  221. package/RadioGroup/primitives/Radio.d.ts +7 -6
  222. package/RadioGroup/primitives/RadioGroupPrimitive.d.ts +5 -1
  223. package/RangeSlider/RangeSlider.d.ts +7 -6
  224. package/SegmentedControl/SegmentedControl.d.ts +8 -7
  225. package/SegmentedControl/SegmentedControlTabs.d.ts +5 -2
  226. package/SegmentedControl/primitives/SegmentedControlPrimitive.d.ts +1 -1
  227. package/Select/Select.d.ts +7 -6
  228. package/Select/primitives/components/SelectContent.js +1 -1
  229. package/Select/primitives/components/SelectContent.js.map +1 -1
  230. package/Select/primitives/components/SelectTrigger.d.ts +2 -2
  231. package/Separator/Separator.d.ts +9 -8
  232. package/Sidebar/Sidebar.d.ts +7 -6
  233. package/Sidebar/components/SidebarIcon.d.ts +7 -6
  234. package/Sidebar/components/SidebarProvider.d.ts +4 -4
  235. package/Sidebar/components/items/SidebarMenuGroup.d.ts +9 -8
  236. package/Sidebar/components/items/SidebarMenuItem.d.ts +11 -10
  237. package/Sidebar/components/items/SidebarMenuItemIcon.d.ts +7 -6
  238. package/Sidebar/components/items/SidebarMenuLink.d.ts +11 -10
  239. package/Sidebar/components/items/SidebarMenuProvider.d.ts +4 -4
  240. package/Sidebar/components/items/SidebarMenuRootItem.d.ts +9 -7
  241. package/Skeleton/Skeleton.d.ts +9 -7
  242. package/Skeleton/Skeleton.js +10 -4
  243. package/Skeleton/Skeleton.js.map +1 -1
  244. package/Skeleton/Skeleton.stories.d.ts +2 -0
  245. package/Skeleton/Skeleton.stories.js +28 -2
  246. package/Skeleton/Skeleton.stories.js.map +1 -1
  247. package/Slider/Slider.d.ts +7 -6
  248. package/SteppedProgress/SteppedProgress.d.ts +7 -6
  249. package/SteppedProgress/SteppedProgressItem.d.ts +7 -6
  250. package/Switch/Switch.d.ts +7 -6
  251. package/Switch/primitives/SwitchPrimitive.d.ts +10 -6
  252. package/Table/Table.d.ts +12 -10
  253. package/Table/components/Direction.d.ts +1 -1
  254. package/Tabs/Tabs.d.ts +8 -6
  255. package/Tabs/Tabs.js +5 -2
  256. package/Tabs/Tabs.js.map +1 -1
  257. package/Tabs/components/Content.d.ts +1 -1
  258. package/Tabs/components/List.d.ts +2 -2
  259. package/Tabs/components/Tab.d.ts +7 -6
  260. package/Tabs/components/Trigger.d.ts +3 -2
  261. package/Tabs/components/Trigger.js +8 -3
  262. package/Tabs/components/Trigger.js.map +1 -1
  263. package/Tag/Tag.d.ts +8 -7
  264. package/Tags/Tags.d.ts +7 -6
  265. package/Tags/primitives/TagsPrimitive.d.ts +7 -6
  266. package/Text/Text.d.ts +8 -7
  267. package/Textarea/Textarea.d.ts +7 -6
  268. package/Textarea/TextareaPrimitive.d.ts +9 -8
  269. package/Toast/Toast.d.ts +7 -6
  270. package/Toast/components/ToastActions.d.ts +7 -6
  271. package/Toast/components/ToastDescription.d.ts +7 -6
  272. package/Toast/components/ToastTitle.d.ts +7 -6
  273. package/Toast/useToast.stories.js.map +1 -1
  274. package/Toggle/Toggle.d.ts +7 -6
  275. package/Toggle/primitives/TogglePrimitive.d.ts +13 -9
  276. package/ToggleGroup/ToggleGroup.d.ts +7 -6
  277. package/ToggleGroup/primitives/ToggleGroupPrimitive.d.ts +13 -9
  278. package/Tooltip/Tooltip.d.ts +7 -6
  279. package/Tree/Tree.d.ts +7 -6
  280. package/Tree/components/Item.d.ts +7 -6
  281. package/Tree/components/ItemCollapseTrigger.d.ts +7 -6
  282. package/Tree/components/ItemContent.d.ts +8 -6
  283. package/Tree/components/ItemDragHandle.d.ts +7 -6
  284. package/Tree/components/ItemIcon.d.ts +7 -6
  285. package/Tree/components/ItemPlaceholder.d.ts +7 -6
  286. package/Tree/components/ItemSubIndentation.d.ts +7 -6
  287. package/Widget/Widget.d.ts +8 -22
  288. package/Widget/components/Icon.d.ts +7 -6
  289. package/Widget/components/WidgetAction.d.ts +8 -6
  290. package/Widget/components/WidgetContent.d.ts +5 -5
  291. package/exports/admin/ui.d.ts +2 -0
  292. package/exports/admin/ui.js +2 -0
  293. package/index.d.ts +3 -0
  294. package/index.js +3 -0
  295. package/package.json +25 -25
  296. package/theme.css +13 -1
  297. package/utils.js +52 -34
  298. package/utils.js.map +1 -1
@@ -7,21 +7,22 @@ import type { FormComponentProps } from "../FormComponent/index.js";
7
7
  type SliderProps = FormComponentProps & SliderPrimitiveProps & {
8
8
  labelPosition?: "top" | "side";
9
9
  };
10
- declare const Slider: (({ description, note, hint, validation, labelPosition, ...props }: SliderProps) => React.JSX.Element) & {
11
- original: ({ description, note, hint, validation, labelPosition, ...props }: SliderProps) => React.JSX.Element;
10
+ declare const DecoratableSlider: ({ description, note, hint, validation, labelPosition, ...props }: SliderProps) => React.JSX.Element;
11
+ declare const Slider: typeof DecoratableSlider & {
12
+ original: typeof DecoratableSlider;
12
13
  originalName: string;
13
14
  displayName: string;
14
15
  } & {
15
- original: (({ description, note, hint, validation, labelPosition, ...props }: SliderProps) => React.JSX.Element) & {
16
- original: ({ description, note, hint, validation, labelPosition, ...props }: SliderProps) => React.JSX.Element;
16
+ original: typeof DecoratableSlider & {
17
+ original: typeof DecoratableSlider;
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<(({ description, note, hint, validation, labelPosition, ...props }: SliderProps) => React.JSX.Element) & {
24
- original: ({ description, note, hint, validation, labelPosition, ...props }: SliderProps) => React.JSX.Element;
24
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableSlider & {
25
+ original: typeof DecoratableSlider;
25
26
  originalName: string;
26
27
  displayName: string;
27
28
  }>) => (props: unknown) => React.JSX.Element;
@@ -3,21 +3,22 @@ import type { ProgressItemParams } from "./domains/index.js";
3
3
  interface SteppedProgressProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  items: ProgressItemParams[];
5
5
  }
6
- declare const SteppedProgress: (({ items, ...props }: SteppedProgressProps) => React.JSX.Element) & {
7
- original: ({ items, ...props }: SteppedProgressProps) => React.JSX.Element;
6
+ declare const DecoratableSteppedProgress: ({ items, ...props }: SteppedProgressProps) => React.JSX.Element;
7
+ declare const SteppedProgress: typeof DecoratableSteppedProgress & {
8
+ original: typeof DecoratableSteppedProgress;
8
9
  originalName: string;
9
10
  displayName: string;
10
11
  } & {
11
- original: (({ items, ...props }: SteppedProgressProps) => React.JSX.Element) & {
12
- original: ({ items, ...props }: SteppedProgressProps) => React.JSX.Element;
12
+ original: typeof DecoratableSteppedProgress & {
13
+ original: typeof DecoratableSteppedProgress;
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<(({ items, ...props }: SteppedProgressProps) => React.JSX.Element) & {
20
- original: ({ items, ...props }: SteppedProgressProps) => React.JSX.Element;
20
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableSteppedProgress & {
21
+ original: typeof DecoratableSteppedProgress;
21
22
  originalName: string;
22
23
  displayName: string;
23
24
  }>) => (props: unknown) => React.JSX.Element;
@@ -1,21 +1,22 @@
1
1
  import React from "react";
2
2
  import { type ProgressItemFormatted } from "./domains/index.js";
3
3
  type SteppedProgressItemProps = React.HTMLAttributes<HTMLDivElement> & ProgressItemFormatted;
4
- declare const SteppedProgressItem: (({ label, state, errored, disabled, className, ...props }: SteppedProgressItemProps) => React.JSX.Element) & {
5
- original: ({ label, state, errored, disabled, className, ...props }: SteppedProgressItemProps) => React.JSX.Element;
4
+ declare const DecoratableSteppedProgressItem: ({ label, state, errored, disabled, className, ...props }: SteppedProgressItemProps) => React.JSX.Element;
5
+ declare const SteppedProgressItem: typeof DecoratableSteppedProgressItem & {
6
+ original: typeof DecoratableSteppedProgressItem;
6
7
  originalName: string;
7
8
  displayName: string;
8
9
  } & {
9
- original: (({ label, state, errored, disabled, className, ...props }: SteppedProgressItemProps) => React.JSX.Element) & {
10
- original: ({ label, state, errored, disabled, className, ...props }: SteppedProgressItemProps) => React.JSX.Element;
10
+ original: typeof DecoratableSteppedProgressItem & {
11
+ original: typeof DecoratableSteppedProgressItem;
11
12
  originalName: string;
12
13
  displayName: string;
13
14
  };
14
15
  originalName: string;
15
16
  displayName: string;
16
17
  } & {
17
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ label, state, errored, disabled, className, ...props }: SteppedProgressItemProps) => React.JSX.Element) & {
18
- original: ({ label, state, errored, disabled, className, ...props }: SteppedProgressItemProps) => React.JSX.Element;
18
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableSteppedProgressItem & {
19
+ original: typeof DecoratableSteppedProgressItem;
19
20
  originalName: string;
20
21
  displayName: string;
21
22
  }>) => (props: unknown) => React.JSX.Element;
@@ -2,21 +2,22 @@ import React from "react";
2
2
  import type { SwitchPrimitiveProps } from "./primitives/index.js";
3
3
  import type { FormComponentProps } from "../FormComponent/index.js";
4
4
  type SwitchProps = SwitchPrimitiveProps & FormComponentProps;
5
- declare const Switch: (({ note, validation, ...props }: SwitchProps) => React.JSX.Element) & {
6
- original: ({ note, validation, ...props }: SwitchProps) => React.JSX.Element;
5
+ declare const DecoratableSwitch: ({ note, validation, ...props }: SwitchProps) => React.JSX.Element;
6
+ declare const Switch: typeof DecoratableSwitch & {
7
+ original: typeof DecoratableSwitch;
7
8
  originalName: string;
8
9
  displayName: string;
9
10
  } & {
10
- original: (({ note, validation, ...props }: SwitchProps) => React.JSX.Element) & {
11
- original: ({ note, validation, ...props }: SwitchProps) => React.JSX.Element;
11
+ original: typeof DecoratableSwitch & {
12
+ original: typeof DecoratableSwitch;
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<(({ note, validation, ...props }: SwitchProps) => React.JSX.Element) & {
19
- original: ({ note, validation, ...props }: SwitchProps) => React.JSX.Element;
19
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableSwitch & {
20
+ original: typeof DecoratableSwitch;
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  }>) => (props: unknown) => React.JSX.Element;
@@ -14,21 +14,25 @@ type SwitchPrimitiveProps = Omit<SwitchPrimitives.SwitchProps, "defaultChecked"
14
14
  type SwitchPrimitivVm = {
15
15
  item?: SwitchItemFormatted;
16
16
  };
17
- declare const SwitchPrimitive: ((props: SwitchPrimitiveProps) => React.JSX.Element | null) & {
18
- original: (props: SwitchPrimitiveProps) => React.JSX.Element | null;
17
+ /**
18
+ * Switch
19
+ */
20
+ declare const DecoratableSwitchPrimitive: (props: SwitchPrimitiveProps) => React.JSX.Element | null;
21
+ declare const SwitchPrimitive: typeof DecoratableSwitchPrimitive & {
22
+ original: typeof DecoratableSwitchPrimitive;
19
23
  originalName: string;
20
24
  displayName: string;
21
25
  } & {
22
- original: ((props: SwitchPrimitiveProps) => React.JSX.Element | null) & {
23
- original: (props: SwitchPrimitiveProps) => React.JSX.Element | null;
26
+ original: typeof DecoratableSwitchPrimitive & {
27
+ original: typeof DecoratableSwitchPrimitive;
24
28
  originalName: string;
25
29
  displayName: string;
26
30
  };
27
31
  originalName: string;
28
32
  displayName: string;
29
33
  } & {
30
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: SwitchPrimitiveProps) => React.JSX.Element | null) & {
31
- original: (props: SwitchPrimitiveProps) => React.JSX.Element | null;
34
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableSwitchPrimitive & {
35
+ original: typeof DecoratableSwitchPrimitive;
32
36
  originalName: string;
33
37
  displayName: string;
34
38
  }>) => (props: unknown) => React.JSX.Element;
package/Table/Table.d.ts CHANGED
@@ -1,20 +1,22 @@
1
1
  import * as React from "react";
2
2
  import { type VariantProps } from "../utils.js";
3
+ import { Body, Caption, Cell, Direction, Footer, Head, Header, Resizer, Row } from "../Table/components/index.js";
3
4
  declare const tableVariants: (props?: ({
4
5
  bordered?: boolean | null | undefined;
5
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
7
  interface TableProps extends React.HTMLAttributes<HTMLTableElement>, VariantProps<typeof tableVariants> {
7
8
  sticky?: boolean;
8
9
  }
9
- declare const Table: (({ className, bordered, sticky, ...props }: TableProps) => React.JSX.Element) & {
10
- Body: ({ className, ...props }: React.HTMLAttributes<HTMLTableSectionElement>) => React.JSX.Element;
11
- Caption: ({ className, ...props }: React.HTMLAttributes<HTMLTableCaptionElement>) => React.JSX.Element;
12
- Cell: ({ className, truncate, ...props }: import("~/Table/components/index.js").CellProps) => React.JSX.Element;
13
- Direction: ({ className, direction }: import("~/Table/components/index.js").DirectionProps) => React.JSX.Element | null;
14
- Footer: ({ className, ...props }: React.HTMLAttributes<HTMLTableSectionElement>) => React.JSX.Element;
15
- Head: ({ className, children, truncate, ...props }: import("~/Table/components/index.js").HeadProps) => React.JSX.Element;
16
- Header: ({ className, sticky, ...props }: import("~/Table/components/index.js").HeaderProps) => React.JSX.Element;
17
- Resizer: ({ className, isResizing, ...props }: import("~/Table/components/index.js").ResizerProps) => React.JSX.Element;
18
- Row: ({ className, selected, ...props }: import("~/Table/components/index.js").RowProps) => React.JSX.Element;
10
+ declare const BaseTable: ({ className, bordered, sticky, ...props }: TableProps) => React.JSX.Element;
11
+ declare const Table: typeof BaseTable & {
12
+ Body: typeof Body;
13
+ Caption: typeof Caption;
14
+ Cell: typeof Cell;
15
+ Direction: typeof Direction;
16
+ Footer: typeof Footer;
17
+ Head: typeof Head;
18
+ Header: typeof Header;
19
+ Resizer: typeof Resizer;
20
+ Row: typeof Row;
19
21
  };
20
22
  export { Table, type TableProps };
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { type VariantProps } from "../../utils.js";
3
3
  declare const directionVariants: (props?: ({
4
- direction?: "desc" | "asc" | null | undefined;
4
+ direction?: "asc" | "desc" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  interface DirectionProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof directionVariants> {
7
7
  }
package/Tabs/Tabs.d.ts CHANGED
@@ -7,22 +7,24 @@ interface TabsProps extends Omit<TabsPrimitive.TabsProps, "children"> {
7
7
  size?: VariantProps<typeof tabListVariants>["size"];
8
8
  spacing?: VariantProps<typeof tabListVariants>["spacing"];
9
9
  separator?: VariantProps<typeof tabListVariants>["separator"];
10
+ loading?: boolean;
10
11
  }
11
- declare const Tabs: (({ defaultValue: initialValue, size, spacing, separator, tabs: tabComponents, ...props }: TabsProps) => React.JSX.Element) & {
12
- original: ({ defaultValue: initialValue, size, spacing, separator, tabs: tabComponents, ...props }: TabsProps) => React.JSX.Element;
12
+ declare const DecoratableTabs: ({ defaultValue: initialValue, size, spacing, separator, loading, tabs: tabComponents, ...props }: TabsProps) => React.JSX.Element;
13
+ declare const Tabs: typeof DecoratableTabs & {
14
+ original: typeof DecoratableTabs;
13
15
  originalName: string;
14
16
  displayName: string;
15
17
  } & {
16
- original: (({ defaultValue: initialValue, size, spacing, separator, tabs: tabComponents, ...props }: TabsProps) => React.JSX.Element) & {
17
- original: ({ defaultValue: initialValue, size, spacing, separator, tabs: tabComponents, ...props }: TabsProps) => React.JSX.Element;
18
+ original: typeof DecoratableTabs & {
19
+ original: typeof DecoratableTabs;
18
20
  originalName: string;
19
21
  displayName: string;
20
22
  };
21
23
  originalName: string;
22
24
  displayName: string;
23
25
  } & {
24
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ defaultValue: initialValue, size, spacing, separator, tabs: tabComponents, ...props }: TabsProps) => React.JSX.Element) & {
25
- original: ({ defaultValue: initialValue, size, spacing, separator, tabs: tabComponents, ...props }: TabsProps) => React.JSX.Element;
26
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableTabs & {
27
+ original: typeof DecoratableTabs;
26
28
  originalName: string;
27
29
  displayName: string;
28
30
  }>) => (props: unknown) => React.JSX.Element;
package/Tabs/Tabs.js CHANGED
@@ -3,7 +3,7 @@ import { Tabs } from "radix-ui";
3
3
  import { makeDecoratable, withStaticProps } from "../utils.js";
4
4
  import { Content, List, Tab, TabsContext, Trigger } from "./components/index.js";
5
5
  const Root = Tabs.Root;
6
- const DecoratableTabs = ({ defaultValue: initialValue, size, spacing, separator, tabs: tabComponents, ...props })=>{
6
+ const DecoratableTabs = ({ defaultValue: initialValue, size, spacing, separator, loading, tabs: tabComponents, ...props })=>{
7
7
  const [tabs, setTabs] = useState([]);
8
8
  const defaultValue = useMemo(()=>initialValue || tabComponents.find((tab)=>!tab.props.disabled && false !== tab.props.visible)?.props.value, [
9
9
  initialValue,
@@ -19,6 +19,7 @@ const DecoratableTabs = ({ defaultValue: initialValue, size, spacing, separator,
19
19
  disabled: tab.disabled,
20
20
  icon: tab.icon,
21
21
  key: tab.id,
22
+ loading: loading,
22
23
  size: size,
23
24
  text: tab.trigger,
24
25
  value: tab.value,
@@ -26,7 +27,9 @@ const DecoratableTabs = ({ defaultValue: initialValue, size, spacing, separator,
26
27
  }))), [
27
28
  tabs,
28
29
  size,
29
- spacing
30
+ spacing,
31
+ separator,
32
+ loading
30
33
  ]);
31
34
  const contents = useMemo(()=>tabs.map((tab)=>/*#__PURE__*/ react.createElement(Content, {
32
35
  key: tab.id,
package/Tabs/Tabs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs/Tabs.js","sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["import React, { useMemo, useState } from \"react\";\nimport { Tabs as TabsPrimitive } from \"radix-ui\";\nimport { makeDecoratable, type VariantProps, withStaticProps } from \"~/utils.js\";\nimport type { ITabsContext, TabItem, TabProps, tabListVariants } from \"./components/index.js\";\nimport { Content, List, Tab, TabsContext, Trigger } from \"./components/index.js\";\n\nconst Root = TabsPrimitive.Root;\n\ninterface TabsProps extends Omit<TabsPrimitive.TabsProps, \"children\"> {\n tabs: React.ReactElement<TabProps>[];\n size?: VariantProps<typeof tabListVariants>[\"size\"];\n spacing?: VariantProps<typeof tabListVariants>[\"spacing\"];\n separator?: VariantProps<typeof tabListVariants>[\"separator\"];\n}\n\nconst DecoratableTabs = ({\n defaultValue: initialValue,\n size,\n spacing,\n separator,\n tabs: tabComponents,\n ...props\n}: TabsProps) => {\n const [tabs, setTabs] = useState<TabItem[]>([]);\n\n const defaultValue = useMemo(() => {\n return (\n initialValue ||\n tabComponents.find(tab => !tab.props.disabled && tab.props.visible !== false)?.props\n .value\n );\n }, [initialValue, tabComponents]);\n\n const triggers = useMemo(\n () => (\n <List\n key={tabs.map(tab => tab.id).join(\";\")}\n size={size}\n spacing={spacing}\n separator={separator}\n >\n {tabs.map(tab => (\n <Trigger\n data-testid={tab[\"data-testid\"]}\n disabled={tab.disabled}\n icon={tab.icon}\n key={tab.id}\n size={size}\n text={tab.trigger}\n value={tab.value}\n visible={tab.visible}\n />\n ))}\n </List>\n ),\n [tabs, size, spacing]\n );\n\n const contents = useMemo(\n () =>\n tabs.map(tab => (\n <Content\n key={tab.id}\n value={tab.value}\n content={tab.content}\n spacing={tab.spacing ?? spacing}\n className={tab.className}\n />\n )),\n [tabs, spacing]\n );\n\n const context: ITabsContext = useMemo(\n () => ({\n addTab(props) {\n setTabs(tabs => {\n const existingIndex = tabs.findIndex(tab => tab.value === props.value);\n if (existingIndex > -1) {\n return [\n ...tabs.slice(0, existingIndex),\n props,\n ...tabs.slice(existingIndex + 1)\n ];\n }\n return [...tabs, props];\n });\n },\n removeTab(id) {\n setTabs(tabs => tabs.filter(tab => tab.id !== id));\n }\n }),\n [setTabs]\n );\n\n return (\n <Root {...props} defaultValue={defaultValue}>\n {triggers}\n {contents}\n <TabsContext.Provider value={context}>{tabComponents}</TabsContext.Provider>\n </Root>\n );\n};\n\nconst BaseTabs = makeDecoratable(\"Tabs\", DecoratableTabs);\n\nconst Tabs = withStaticProps(BaseTabs, {\n Tab\n});\n\nexport { Tabs, type TabsProps };\n"],"names":["Root","TabsPrimitive","DecoratableTabs","initialValue","size","spacing","separator","tabComponents","props","tabs","setTabs","useState","defaultValue","useMemo","tab","triggers","List","Trigger","contents","Content","context","existingIndex","id","TabsContext","BaseTabs","makeDecoratable","Tabs","withStaticProps","Tab"],"mappings":";;;;AAMA,MAAMA,OAAOC,KAAAA,IAAkB;AAS/B,MAAMC,kBAAkB,CAAC,EACrB,cAAcC,YAAY,EAC1BC,IAAI,EACJC,OAAO,EACPC,SAAS,EACT,MAAMC,aAAa,EACnB,GAAGC,OACK;IACR,MAAM,CAACC,MAAMC,QAAQ,GAAGC,SAAoB,EAAE;IAE9C,MAAMC,eAAeC,QAAQ,IAErBV,gBACAI,cAAc,IAAI,CAACO,CAAAA,MAAO,CAACA,IAAI,KAAK,CAAC,QAAQ,IAAIA,AAAsB,UAAtBA,IAAI,KAAK,CAAC,OAAO,GAAa,MAC1E,OAEV;QAACX;QAAcI;KAAc;IAEhC,MAAMQ,WAAWF,QACb,kBACI,oBAACG,MAAIA;YACD,KAAKP,KAAK,GAAG,CAACK,CAAAA,MAAOA,IAAI,EAAE,EAAE,IAAI,CAAC;YAClC,MAAMV;YACN,SAASC;YACT,WAAWC;WAEVG,KAAK,GAAG,CAACK,CAAAA,MAAAA,WAAAA,GACN,oBAACG,SAAOA;gBACJ,eAAaH,GAAG,CAAC,cAAc;gBAC/B,UAAUA,IAAI,QAAQ;gBACtB,MAAMA,IAAI,IAAI;gBACd,KAAKA,IAAI,EAAE;gBACX,MAAMV;gBACN,MAAMU,IAAI,OAAO;gBACjB,OAAOA,IAAI,KAAK;gBAChB,SAASA,IAAI,OAAO;kBAKpC;QAACL;QAAML;QAAMC;KAAQ;IAGzB,MAAMa,WAAWL,QACb,IACIJ,KAAK,GAAG,CAACK,CAAAA,MAAAA,WAAAA,GACL,oBAACK,SAAOA;gBACJ,KAAKL,IAAI,EAAE;gBACX,OAAOA,IAAI,KAAK;gBAChB,SAASA,IAAI,OAAO;gBACpB,SAASA,IAAI,OAAO,IAAIT;gBACxB,WAAWS,IAAI,SAAS;iBAGpC;QAACL;QAAMJ;KAAQ;IAGnB,MAAMe,UAAwBP,QAC1B,IAAO;YACH,QAAOL,KAAK;gBACRE,QAAQD,CAAAA;oBACJ,MAAMY,gBAAgBZ,KAAK,SAAS,CAACK,CAAAA,MAAOA,IAAI,KAAK,KAAKN,MAAM,KAAK;oBACrE,IAAIa,gBAAgB,IAChB,OAAO;2BACAZ,KAAK,KAAK,CAAC,GAAGY;wBACjBb;2BACGC,KAAK,KAAK,CAACY,gBAAgB;qBACjC;oBAEL,OAAO;2BAAIZ;wBAAMD;qBAAM;gBAC3B;YACJ;YACA,WAAUc,EAAE;gBACRZ,QAAQD,CAAAA,OAAQA,KAAK,MAAM,CAACK,CAAAA,MAAOA,IAAI,EAAE,KAAKQ;YAClD;QACJ,IACA;QAACZ;KAAQ;IAGb,OAAO,WAAP,GACI,oBAACV,MAAIA;QAAE,GAAGQ,KAAK;QAAE,cAAcI;OAC1BG,UACAG,UAAAA,WAAAA,GACD,oBAACK,YAAY,QAAQ;QAAC,OAAOH;OAAUb;AAGnD;AAEA,MAAMiB,WAAWC,gBAAgB,QAAQvB;AAEzC,MAAMwB,YAAOC,gBAAgBH,UAAU;IACnCI,KAAGA;AACP"}
1
+ {"version":3,"file":"Tabs/Tabs.js","sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["import React, { useMemo, useState } from \"react\";\nimport { Tabs as TabsPrimitive } from \"radix-ui\";\nimport { makeDecoratable, type VariantProps, withStaticProps } from \"~/utils.js\";\nimport type { ITabsContext, TabItem, TabProps, tabListVariants } from \"./components/index.js\";\nimport { Content, List, Tab, TabsContext, Trigger } from \"./components/index.js\";\n\nconst Root = TabsPrimitive.Root;\n\ninterface TabsProps extends Omit<TabsPrimitive.TabsProps, \"children\"> {\n tabs: React.ReactElement<TabProps>[];\n size?: VariantProps<typeof tabListVariants>[\"size\"];\n spacing?: VariantProps<typeof tabListVariants>[\"spacing\"];\n separator?: VariantProps<typeof tabListVariants>[\"separator\"];\n loading?: boolean;\n}\n\nconst DecoratableTabs = ({\n defaultValue: initialValue,\n size,\n spacing,\n separator,\n loading,\n tabs: tabComponents,\n ...props\n}: TabsProps) => {\n const [tabs, setTabs] = useState<TabItem[]>([]);\n\n const defaultValue = useMemo(() => {\n return (\n initialValue ||\n tabComponents.find(tab => !tab.props.disabled && tab.props.visible !== false)?.props\n .value\n );\n }, [initialValue, tabComponents]);\n\n const triggers = useMemo(\n () => (\n <List\n key={tabs.map(tab => tab.id).join(\";\")}\n size={size}\n spacing={spacing}\n separator={separator}\n >\n {tabs.map(tab => (\n <Trigger\n data-testid={tab[\"data-testid\"]}\n disabled={tab.disabled}\n icon={tab.icon}\n key={tab.id}\n loading={loading}\n size={size}\n text={tab.trigger}\n value={tab.value}\n visible={tab.visible}\n />\n ))}\n </List>\n ),\n [tabs, size, spacing, separator, loading]\n );\n\n const contents = useMemo(\n () =>\n tabs.map(tab => (\n <Content\n key={tab.id}\n value={tab.value}\n content={tab.content}\n spacing={tab.spacing ?? spacing}\n className={tab.className}\n />\n )),\n [tabs, spacing]\n );\n\n const context: ITabsContext = useMemo(\n () => ({\n addTab(props) {\n setTabs(tabs => {\n const existingIndex = tabs.findIndex(tab => tab.value === props.value);\n if (existingIndex > -1) {\n return [\n ...tabs.slice(0, existingIndex),\n props,\n ...tabs.slice(existingIndex + 1)\n ];\n }\n return [...tabs, props];\n });\n },\n removeTab(id) {\n setTabs(tabs => tabs.filter(tab => tab.id !== id));\n }\n }),\n [setTabs]\n );\n\n return (\n <Root {...props} defaultValue={defaultValue}>\n {triggers}\n {contents}\n <TabsContext.Provider value={context}>{tabComponents}</TabsContext.Provider>\n </Root>\n );\n};\n\nconst BaseTabs = makeDecoratable(\"Tabs\", DecoratableTabs);\n\nconst Tabs = withStaticProps(BaseTabs, {\n Tab\n});\n\nexport { Tabs, type TabsProps };\n"],"names":["Root","TabsPrimitive","DecoratableTabs","initialValue","size","spacing","separator","loading","tabComponents","props","tabs","setTabs","useState","defaultValue","useMemo","tab","triggers","List","Trigger","contents","Content","context","existingIndex","id","TabsContext","BaseTabs","makeDecoratable","Tabs","withStaticProps","Tab"],"mappings":";;;;AAMA,MAAMA,OAAOC,KAAAA,IAAkB;AAU/B,MAAMC,kBAAkB,CAAC,EACrB,cAAcC,YAAY,EAC1BC,IAAI,EACJC,OAAO,EACPC,SAAS,EACTC,OAAO,EACP,MAAMC,aAAa,EACnB,GAAGC,OACK;IACR,MAAM,CAACC,MAAMC,QAAQ,GAAGC,SAAoB,EAAE;IAE9C,MAAMC,eAAeC,QAAQ,IAErBX,gBACAK,cAAc,IAAI,CAACO,CAAAA,MAAO,CAACA,IAAI,KAAK,CAAC,QAAQ,IAAIA,AAAsB,UAAtBA,IAAI,KAAK,CAAC,OAAO,GAAa,MAC1E,OAEV;QAACZ;QAAcK;KAAc;IAEhC,MAAMQ,WAAWF,QACb,kBACI,oBAACG,MAAIA;YACD,KAAKP,KAAK,GAAG,CAACK,CAAAA,MAAOA,IAAI,EAAE,EAAE,IAAI,CAAC;YAClC,MAAMX;YACN,SAASC;YACT,WAAWC;WAEVI,KAAK,GAAG,CAACK,CAAAA,MAAAA,WAAAA,GACN,oBAACG,SAAOA;gBACJ,eAAaH,GAAG,CAAC,cAAc;gBAC/B,UAAUA,IAAI,QAAQ;gBACtB,MAAMA,IAAI,IAAI;gBACd,KAAKA,IAAI,EAAE;gBACX,SAASR;gBACT,MAAMH;gBACN,MAAMW,IAAI,OAAO;gBACjB,OAAOA,IAAI,KAAK;gBAChB,SAASA,IAAI,OAAO;kBAKpC;QAACL;QAAMN;QAAMC;QAASC;QAAWC;KAAQ;IAG7C,MAAMY,WAAWL,QACb,IACIJ,KAAK,GAAG,CAACK,CAAAA,MAAAA,WAAAA,GACL,oBAACK,SAAOA;gBACJ,KAAKL,IAAI,EAAE;gBACX,OAAOA,IAAI,KAAK;gBAChB,SAASA,IAAI,OAAO;gBACpB,SAASA,IAAI,OAAO,IAAIV;gBACxB,WAAWU,IAAI,SAAS;iBAGpC;QAACL;QAAML;KAAQ;IAGnB,MAAMgB,UAAwBP,QAC1B,IAAO;YACH,QAAOL,KAAK;gBACRE,QAAQD,CAAAA;oBACJ,MAAMY,gBAAgBZ,KAAK,SAAS,CAACK,CAAAA,MAAOA,IAAI,KAAK,KAAKN,MAAM,KAAK;oBACrE,IAAIa,gBAAgB,IAChB,OAAO;2BACAZ,KAAK,KAAK,CAAC,GAAGY;wBACjBb;2BACGC,KAAK,KAAK,CAACY,gBAAgB;qBACjC;oBAEL,OAAO;2BAAIZ;wBAAMD;qBAAM;gBAC3B;YACJ;YACA,WAAUc,EAAE;gBACRZ,QAAQD,CAAAA,OAAQA,KAAK,MAAM,CAACK,CAAAA,MAAOA,IAAI,EAAE,KAAKQ;YAClD;QACJ,IACA;QAACZ;KAAQ;IAGb,OAAO,WAAP,GACI,oBAACX,MAAIA;QAAE,GAAGS,KAAK;QAAE,cAAcI;OAC1BG,UACAG,UAAAA,WAAAA,GACD,oBAACK,YAAY,QAAQ;QAAC,OAAOH;OAAUb;AAGnD;AAEA,MAAMiB,WAAWC,gBAAgB,QAAQxB;AAEzC,MAAMyB,YAAOC,gBAAgBH,UAAU;IACnCI,KAAGA;AACP"}
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  import { Tabs as TabsPrimitive } from "radix-ui";
3
3
  import { type VariantProps } from "../../utils.js";
4
4
  declare const tabContentVariants: (props?: ({
5
- spacing?: "sm" | "md" | "lg" | "xl" | "xs" | "xxl" | null | undefined;
5
+ spacing?: "lg" | "md" | "sm" | "xl" | "xs" | "xxl" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  type ContentProps = Omit<TabsPrimitive.TabsContentProps, "children" | "content"> & VariantProps<typeof tabContentVariants> & {
8
8
  content: React.ReactNode;
@@ -2,8 +2,8 @@ import * as React from "react";
2
2
  import { Tabs as TabsPrimitive } from "radix-ui";
3
3
  import { type VariantProps } from "../../utils.js";
4
4
  declare const tabListVariants: (props?: ({
5
- size?: "sm" | "md" | "lg" | "xl" | null | undefined;
6
- spacing?: "sm" | "md" | "lg" | "xl" | "xs" | "xxl" | null | undefined;
5
+ size?: "lg" | "md" | "sm" | "xl" | null | undefined;
6
+ spacing?: "lg" | "md" | "sm" | "xl" | "xs" | "xxl" | null | undefined;
7
7
  separator?: boolean | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  type ListProps = TabsPrimitive.TabsListProps & VariantProps<typeof tabListVariants>;
@@ -14,21 +14,22 @@ interface TabProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"
14
14
  interface TabItem extends TabProps {
15
15
  id: string;
16
16
  }
17
- declare const Tab: ((props: TabProps) => null) & {
18
- original: (props: TabProps) => null;
17
+ declare const DecoratableTab: (props: TabProps) => null;
18
+ declare const Tab: typeof DecoratableTab & {
19
+ original: typeof DecoratableTab;
19
20
  originalName: string;
20
21
  displayName: string;
21
22
  } & {
22
- original: ((props: TabProps) => null) & {
23
- original: (props: TabProps) => null;
23
+ original: typeof DecoratableTab & {
24
+ original: typeof DecoratableTab;
24
25
  originalName: string;
25
26
  displayName: string;
26
27
  };
27
28
  originalName: string;
28
29
  displayName: string;
29
30
  } & {
30
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: TabProps) => null) & {
31
- original: (props: TabProps) => null;
31
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableTab & {
32
+ original: typeof DecoratableTab;
32
33
  originalName: string;
33
34
  displayName: string;
34
35
  }>) => (props: unknown) => React.JSX.Element;
@@ -2,13 +2,14 @@ import * as React from "react";
2
2
  import { Tabs as TabsPrimitive } from "radix-ui";
3
3
  import { type VariantProps } from "../../utils.js";
4
4
  declare const tabTriggerVariants: (props?: ({
5
- size?: "sm" | "md" | "lg" | "xl" | null | undefined;
5
+ size?: "lg" | "md" | "sm" | "xl" | null | undefined;
6
6
  visible?: boolean | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type TriggerProps = Omit<TabsPrimitive.TabsTriggerProps, "children"> & VariantProps<typeof tabTriggerVariants> & {
9
9
  text: React.ReactNode;
10
10
  icon?: React.ReactElement;
11
+ loading?: boolean;
11
12
  "data-testid"?: string;
12
13
  };
13
- declare const Trigger: ({ className, size, icon, text, visible, ...props }: TriggerProps) => React.JSX.Element;
14
+ declare const Trigger: ({ className, size, icon, text, visible, loading, ...props }: TriggerProps) => React.JSX.Element;
14
15
  export { Trigger, type TriggerProps };
@@ -1,6 +1,7 @@
1
1
  import { Tabs } from "radix-ui";
2
2
  import { cn, cva } from "../../utils.js";
3
3
  import { Icon } from "../../Icon/index.js";
4
+ import { Skeleton } from "../../Skeleton/index.js";
4
5
  import * as __rspack_external_react from "react";
5
6
  const tabTriggerVariants = cva([
6
7
  "group inline-flex items-center justify-center whitespace-nowrap outline-none transition-all",
@@ -41,7 +42,7 @@ const innerTabTriggerVariants = cva([
41
42
  size: "sm"
42
43
  }
43
44
  });
44
- const Trigger = ({ className, size, icon, text, visible, ...props })=>/*#__PURE__*/ __rspack_external_react.createElement(Tabs.Trigger, {
45
+ const Trigger = ({ className, size, icon, text, visible, loading, ...props })=>/*#__PURE__*/ __rspack_external_react.createElement(Tabs.Trigger, {
45
46
  className: cn(tabTriggerVariants({
46
47
  size,
47
48
  visible
@@ -51,12 +52,16 @@ const Trigger = ({ className, size, icon, text, visible, ...props })=>/*#__PURE_
51
52
  className: cn(innerTabTriggerVariants({
52
53
  size
53
54
  }))
54
- }, icon && /*#__PURE__*/ __rspack_external_react.createElement(Icon, {
55
+ }, loading ? /*#__PURE__*/ __rspack_external_react.createElement(Skeleton, {
56
+ type: "text",
57
+ size: "md",
58
+ className: "w-[64px]"
59
+ }) : /*#__PURE__*/ __rspack_external_react.createElement(__rspack_external_react.Fragment, null, icon && /*#__PURE__*/ __rspack_external_react.createElement(Icon, {
55
60
  icon: icon,
56
61
  size: "sm",
57
62
  label: String(text),
58
63
  color: "neutral-light"
59
- }), text));
64
+ }), text)));
60
65
  export { Trigger };
61
66
 
62
67
  //# sourceMappingURL=Trigger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs/components/Trigger.js","sources":["../../../src/Tabs/components/Trigger.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Tabs as TabsPrimitive } from \"radix-ui\";\nimport { cn, cva, type VariantProps } from \"~/utils.js\";\nimport { Icon } from \"~/Icon/index.js\";\n\nconst tabTriggerVariants = cva(\n [\n \"group inline-flex items-center justify-center whitespace-nowrap outline-none transition-all\",\n \"text-neutral-strong hover:text-neutral-primary\",\n \"border-b-md border-transparent border-solid\",\n \"data-[state=active]:border-accent-default data-[state=active]:text-neutral-primary\",\n \"disabled:pointer-events-none disabled:text-neutral-disabled! disabled:fill-neutral-disabled! disabled:border-transparent!\"\n ],\n {\n variants: {\n size: {\n sm: \"text-sm h-[40px]\",\n md: \"text-md h-xxl\",\n lg: \"text-lg h-[56px]\",\n xl: \"text-xl h-3xl\"\n },\n visible: {\n false: \"hidden\"\n }\n },\n defaultVariants: {\n size: \"sm\"\n }\n }\n);\n\nconst innerTabTriggerVariants = cva(\n [\n \"inline-flex items-center justify-start gap-xs\",\n \"group-hover:bg-neutral-dimmed\",\n \"group-focus-visible:ring-lg group-focus-visible:ring-primary-dimmed\"\n ],\n {\n variants: {\n size: {\n sm: \"rounded-sm p-xs\",\n md: \"rounded-sm px-xs py-xs-plus\",\n lg: \"rounded-sm px-xs-plus py-sm-plus\",\n xl: \"rounded-lg px-sm py-sm-plus\"\n }\n },\n defaultVariants: {\n size: \"sm\"\n }\n }\n);\n\ntype TriggerProps = Omit<TabsPrimitive.TabsTriggerProps, \"children\"> &\n VariantProps<typeof tabTriggerVariants> & {\n text: React.ReactNode;\n icon?: React.ReactElement;\n \"data-testid\"?: string;\n };\n\nconst Trigger = ({ className, size, icon, text, visible, ...props }: TriggerProps) => (\n <TabsPrimitive.Trigger\n className={cn(tabTriggerVariants({ size, visible }), className)}\n {...props}\n >\n <div className={cn(innerTabTriggerVariants({ size }))}>\n {icon && <Icon icon={icon} size={\"sm\"} label={String(text)} color={\"neutral-light\"} />}\n {text}\n </div>\n </TabsPrimitive.Trigger>\n);\n\nexport { Trigger, type TriggerProps };\n"],"names":["tabTriggerVariants","cva","innerTabTriggerVariants","Trigger","className","size","icon","text","visible","props","TabsPrimitive","cn","Icon","String"],"mappings":";;;;AAKA,MAAMA,qBAAqBC,IACvB;IACI;IACA;IACA;IACA;IACA;CACH,EACD;IACI,UAAU;QACN,MAAM;YACF,IAAI;YACJ,IAAI;YACJ,IAAI;YACJ,IAAI;QACR;QACA,SAAS;YACL,OAAO;QACX;IACJ;IACA,iBAAiB;QACb,MAAM;IACV;AACJ;AAGJ,MAAMC,0BAA0BD,IAC5B;IACI;IACA;IACA;CACH,EACD;IACI,UAAU;QACN,MAAM;YACF,IAAI;YACJ,IAAI;YACJ,IAAI;YACJ,IAAI;QACR;IACJ;IACA,iBAAiB;QACb,MAAM;IACV;AACJ;AAUJ,MAAME,UAAU,CAAC,EAAEC,SAAS,EAAEC,IAAI,EAAEC,IAAI,EAAEC,IAAI,EAAEC,OAAO,EAAE,GAAGC,OAAqB,iBAC7E,sCAACC,KAAAA,OAAqB;QAClB,WAAWC,GAAGX,mBAAmB;YAAEK;YAAMG;QAAQ,IAAIJ;QACpD,GAAGK,KAAK;qBAET,sCAAC;QAAI,WAAWE,GAAGT,wBAAwB;YAAEG;QAAK;OAC7CC,QAAQ,WAARA,GAAQ,sCAACM,MAAIA;QAAC,MAAMN;QAAM,MAAM;QAAM,OAAOO,OAAON;QAAO,OAAO;QAClEA"}
1
+ {"version":3,"file":"Tabs/components/Trigger.js","sources":["../../../src/Tabs/components/Trigger.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Tabs as TabsPrimitive } from \"radix-ui\";\nimport { cn, cva, type VariantProps } from \"~/utils.js\";\nimport { Icon } from \"~/Icon/index.js\";\nimport { Skeleton } from \"~/Skeleton/index.js\";\n\nconst tabTriggerVariants = cva(\n [\n \"group inline-flex items-center justify-center whitespace-nowrap outline-none transition-all\",\n \"text-neutral-strong hover:text-neutral-primary\",\n \"border-b-md border-transparent border-solid\",\n \"data-[state=active]:border-accent-default data-[state=active]:text-neutral-primary\",\n \"disabled:pointer-events-none disabled:text-neutral-disabled! disabled:fill-neutral-disabled! disabled:border-transparent!\"\n ],\n {\n variants: {\n size: {\n sm: \"text-sm h-[40px]\",\n md: \"text-md h-xxl\",\n lg: \"text-lg h-[56px]\",\n xl: \"text-xl h-3xl\"\n },\n visible: {\n false: \"hidden\"\n }\n },\n defaultVariants: {\n size: \"sm\"\n }\n }\n);\n\nconst innerTabTriggerVariants = cva(\n [\n \"inline-flex items-center justify-start gap-xs\",\n \"group-hover:bg-neutral-dimmed\",\n \"group-focus-visible:ring-lg group-focus-visible:ring-primary-dimmed\"\n ],\n {\n variants: {\n size: {\n sm: \"rounded-sm p-xs\",\n md: \"rounded-sm px-xs py-xs-plus\",\n lg: \"rounded-sm px-xs-plus py-sm-plus\",\n xl: \"rounded-lg px-sm py-sm-plus\"\n }\n },\n defaultVariants: {\n size: \"sm\"\n }\n }\n);\n\ntype TriggerProps = Omit<TabsPrimitive.TabsTriggerProps, \"children\"> &\n VariantProps<typeof tabTriggerVariants> & {\n text: React.ReactNode;\n icon?: React.ReactElement;\n loading?: boolean;\n \"data-testid\"?: string;\n };\n\nconst Trigger = ({ className, size, icon, text, visible, loading, ...props }: TriggerProps) => (\n <TabsPrimitive.Trigger\n className={cn(tabTriggerVariants({ size, visible }), className)}\n {...props}\n >\n <div className={cn(innerTabTriggerVariants({ size }))}>\n {loading ? (\n <Skeleton type={\"text\"} size={\"md\"} className={\"w-[64px]\"} />\n ) : (\n <>\n {icon && (\n <Icon\n icon={icon}\n size={\"sm\"}\n label={String(text)}\n color={\"neutral-light\"}\n />\n )}\n {text}\n </>\n )}\n </div>\n </TabsPrimitive.Trigger>\n);\n\nexport { Trigger, type TriggerProps };\n"],"names":["tabTriggerVariants","cva","innerTabTriggerVariants","Trigger","className","size","icon","text","visible","loading","props","TabsPrimitive","cn","Skeleton","Icon","String"],"mappings":";;;;;AAMA,MAAMA,qBAAqBC,IACvB;IACI;IACA;IACA;IACA;IACA;CACH,EACD;IACI,UAAU;QACN,MAAM;YACF,IAAI;YACJ,IAAI;YACJ,IAAI;YACJ,IAAI;QACR;QACA,SAAS;YACL,OAAO;QACX;IACJ;IACA,iBAAiB;QACb,MAAM;IACV;AACJ;AAGJ,MAAMC,0BAA0BD,IAC5B;IACI;IACA;IACA;CACH,EACD;IACI,UAAU;QACN,MAAM;YACF,IAAI;YACJ,IAAI;YACJ,IAAI;YACJ,IAAI;QACR;IACJ;IACA,iBAAiB;QACb,MAAM;IACV;AACJ;AAWJ,MAAME,UAAU,CAAC,EAAEC,SAAS,EAAEC,IAAI,EAAEC,IAAI,EAAEC,IAAI,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGC,OAAqB,iBACtF,sCAACC,KAAAA,OAAqB;QAClB,WAAWC,GAAGZ,mBAAmB;YAAEK;YAAMG;QAAQ,IAAIJ;QACpD,GAAGM,KAAK;qBAET,sCAAC;QAAI,WAAWE,GAAGV,wBAAwB;YAAEG;QAAK;OAC7CI,UAAU,WAAVA,GACG,sCAACI,UAAQA;QAAC,MAAM;QAAQ,MAAM;QAAM,WAAW;uBAE/C,8EACKP,QAAQ,WAARA,GACG,sCAACQ,MAAIA;QACD,MAAMR;QACN,MAAM;QACN,OAAOS,OAAOR;QACd,OAAO;QAGdA"}
package/Tag/Tag.d.ts CHANGED
@@ -4,7 +4,7 @@ declare const tagVariants: (props?: ({
4
4
  isInteractive?: boolean | null | undefined;
5
5
  isDismissible?: boolean | null | undefined;
6
6
  isDisabled?: boolean | null | undefined;
7
- variant?: "accent" | "neutral-light" | "neutral-strong" | "neutral-base" | "success" | "warning" | "neutral-base-outline" | "neutral-muted" | "neutral-xstrong" | "neutral-dark" | "accent-light" | "success-light" | "destructive" | null | undefined;
7
+ variant?: "accent" | "accent-light" | "destructive" | "neutral-base" | "neutral-base-outline" | "neutral-dark" | "neutral-light" | "neutral-muted" | "neutral-strong" | "neutral-xstrong" | "success" | "success-light" | "warning" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  export interface TagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children" | "content">, VariantProps<typeof tagVariants> {
10
10
  content: React.ReactNode;
@@ -16,21 +16,22 @@ export interface TagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "c
16
16
  icon?: React.ReactElement | null;
17
17
  disabled?: boolean;
18
18
  }
19
- declare const Tag: ((props: TagProps) => React.JSX.Element) & {
20
- original: (props: TagProps) => React.JSX.Element;
19
+ declare const DecoratableTag: (props: TagProps) => React.JSX.Element;
20
+ declare const Tag: typeof DecoratableTag & {
21
+ original: typeof DecoratableTag;
21
22
  originalName: string;
22
23
  displayName: string;
23
24
  } & {
24
- original: ((props: TagProps) => React.JSX.Element) & {
25
- original: (props: TagProps) => React.JSX.Element;
25
+ original: typeof DecoratableTag & {
26
+ original: typeof DecoratableTag;
26
27
  originalName: string;
27
28
  displayName: string;
28
29
  };
29
30
  originalName: string;
30
31
  displayName: string;
31
32
  } & {
32
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: TagProps) => React.JSX.Element) & {
33
- original: (props: TagProps) => React.JSX.Element;
33
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableTag & {
34
+ original: typeof DecoratableTag;
34
35
  originalName: string;
35
36
  displayName: string;
36
37
  }>) => (props: unknown) => React.JSX.Element;
package/Tags/Tags.d.ts CHANGED
@@ -2,21 +2,22 @@ import React from "react";
2
2
  import { type TagsPrimitiveProps } from "./primitives/index.js";
3
3
  import { type FormComponentProps } from "../FormComponent/index.js";
4
4
  type TagsProps = TagsPrimitiveProps & FormComponentProps;
5
- declare const Tags: (({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TagsProps) => React.JSX.Element) & {
6
- original: ({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TagsProps) => React.JSX.Element;
5
+ declare const DecoratableTags: ({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TagsProps) => React.JSX.Element;
6
+ declare const Tags: typeof DecoratableTags & {
7
+ original: typeof DecoratableTags;
7
8
  originalName: string;
8
9
  displayName: string;
9
10
  } & {
10
- original: (({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TagsProps) => React.JSX.Element) & {
11
- original: ({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TagsProps) => React.JSX.Element;
11
+ original: typeof DecoratableTags & {
12
+ original: typeof DecoratableTags;
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, validate, onBlur: originalOnBlur, ...props }: TagsProps) => React.JSX.Element) & {
19
- original: ({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TagsProps) => React.JSX.Element;
19
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableTags & {
20
+ original: typeof DecoratableTags;
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  }>) => (props: unknown) => React.JSX.Element;
@@ -57,21 +57,22 @@ interface TagsPrimitiveProps extends Omit<React.InputHTMLAttributes<HTMLInputEle
57
57
  */
58
58
  protectedValues?: string[];
59
59
  }
60
- declare const TagsPrimitive: ((props: TagsPrimitiveProps) => React.JSX.Element) & {
61
- original: (props: TagsPrimitiveProps) => React.JSX.Element;
60
+ declare const DecoratableTagsPrimitive: (props: TagsPrimitiveProps) => React.JSX.Element;
61
+ declare const TagsPrimitive: typeof DecoratableTagsPrimitive & {
62
+ original: typeof DecoratableTagsPrimitive;
62
63
  originalName: string;
63
64
  displayName: string;
64
65
  } & {
65
- original: ((props: TagsPrimitiveProps) => React.JSX.Element) & {
66
- original: (props: TagsPrimitiveProps) => React.JSX.Element;
66
+ original: typeof DecoratableTagsPrimitive & {
67
+ original: typeof DecoratableTagsPrimitive;
67
68
  originalName: string;
68
69
  displayName: string;
69
70
  };
70
71
  originalName: string;
71
72
  displayName: string;
72
73
  } & {
73
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: TagsPrimitiveProps) => React.JSX.Element) & {
74
- original: (props: TagsPrimitiveProps) => React.JSX.Element;
74
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableTagsPrimitive & {
75
+ original: typeof DecoratableTagsPrimitive;
75
76
  originalName: string;
76
77
  displayName: string;
77
78
  }>) => (props: unknown) => React.JSX.Element;
package/Text/Text.d.ts CHANGED
@@ -2,26 +2,27 @@ import React from "react";
2
2
  import { type VariantProps } from "../utils.js";
3
3
  type TextTags = "span" | "div";
4
4
  declare const textVariants: (props?: ({
5
- size?: "sm" | "md" | "lg" | "xl" | null | undefined;
5
+ size?: "lg" | "md" | "sm" | "xl" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  interface TextProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof textVariants> {
8
8
  as?: TextTags;
9
9
  }
10
- declare const Text: (({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element) & {
11
- original: ({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element;
10
+ declare const TextBase: ({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element;
11
+ declare const Text: typeof TextBase & {
12
+ original: typeof TextBase;
12
13
  originalName: string;
13
14
  displayName: string;
14
15
  } & {
15
- original: (({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element) & {
16
- original: ({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element;
16
+ original: typeof TextBase & {
17
+ original: typeof TextBase;
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<(({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element) & {
24
- original: ({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element;
24
+ createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof TextBase & {
25
+ original: typeof TextBase;
25
26
  originalName: string;
26
27
  displayName: string;
27
28
  }>) => (props: unknown) => React.JSX.Element;
@@ -2,21 +2,22 @@ import React from "react";
2
2
  import type { TextareaPrimitiveProps } from "./TextareaPrimitive.js";
3
3
  import type { FormComponentProps } from "../FormComponent/index.js";
4
4
  type TextareaGroupProps = Omit<TextareaPrimitiveProps, "onChange"> & FormComponentProps;
5
- declare const Textarea: (({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TextareaGroupProps) => React.JSX.Element) & {
6
- original: ({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TextareaGroupProps) => React.JSX.Element;
5
+ declare const DecoratableTextarea: ({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TextareaGroupProps) => React.JSX.Element;
6
+ declare const Textarea: typeof DecoratableTextarea & {
7
+ original: typeof DecoratableTextarea;
7
8
  originalName: string;
8
9
  displayName: string;
9
10
  } & {
10
- original: (({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TextareaGroupProps) => React.JSX.Element) & {
11
- original: ({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TextareaGroupProps) => React.JSX.Element;
11
+ original: typeof DecoratableTextarea & {
12
+ original: typeof DecoratableTextarea;
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, validate, onBlur: originalOnBlur, ...props }: TextareaGroupProps) => React.JSX.Element) & {
19
- original: ({ label, description, note, hint, required, disabled, validation, validate, onBlur: originalOnBlur, ...props }: TextareaGroupProps) => React.JSX.Element;
19
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof DecoratableTextarea & {
20
+ original: typeof DecoratableTextarea;
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  }>) => (props: unknown) => React.JSX.Element;