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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/Accordion/Accordion.d.ts +7 -6
  2. package/Accordion/components/AccordionItem.d.ts +7 -6
  3. package/Accordion/components/AccordionItemAction.d.ts +7 -6
  4. package/Accordion/components/AccordionItemIcon.d.ts +7 -6
  5. package/Accordion/components/AccordionItemSeparator.d.ts +7 -6
  6. package/Alert/Alert.d.ts +21 -19
  7. package/AutoComplete/AutoComplete.d.ts +7 -6
  8. package/AutoComplete/primitives/AutoCompletePrimitive.d.ts +7 -6
  9. package/Avatar/Avatar.d.ts +9 -8
  10. package/Avatar/components/AvatarFallback.d.ts +7 -6
  11. package/Avatar/components/AvatarImage.d.ts +7 -6
  12. package/Button/Button.d.ts +10 -9
  13. package/Button/CopyButton.d.ts +7 -6
  14. package/Button/IconButton.d.ts +10 -9
  15. package/Calendar/Calendar.d.ts +7 -6
  16. package/Card/Card.d.ts +8 -22
  17. package/Card/components/CancelAction.d.ts +8 -6
  18. package/Card/components/CardContent.d.ts +6 -6
  19. package/Card/components/CardTitle.d.ts +2 -2
  20. package/Card/components/ConfirmAction.d.ts +8 -6
  21. package/Card/components/Icon.d.ts +7 -6
  22. package/Checkbox/Checkbox.d.ts +7 -6
  23. package/Checkbox/primitives/CheckboxPrimitive.d.ts +17 -12
  24. package/CheckboxGroup/CheckboxGroup.d.ts +7 -6
  25. package/CheckboxGroup/primitives/CheckboxGroupPrimitive.d.ts +20 -12
  26. package/CodeEditor/CodeEditor.d.ts +7 -6
  27. package/CodeEditor/CodeEditorPrimitive.d.ts +7 -6
  28. package/ColorPicker/ColorPicker.d.ts +7 -6
  29. package/ColorPicker/primitives/ColorPickerPrimitive.d.ts +7 -6
  30. package/Command/Command.d.ts +10 -8
  31. package/DataList/DataListModal.d.ts +6 -3
  32. package/DataTable/DataTable.d.ts +7 -6
  33. package/DatePicker/DatePicker.d.ts +7 -6
  34. package/DatePicker/primitives/DatePickerPrimitive.d.ts +7 -6
  35. package/Dialog/Dialog.d.ts +8 -22
  36. package/Dialog/components/CancelAction.d.ts +8 -6
  37. package/Dialog/components/ConfirmAction.d.ts +8 -6
  38. package/Dialog/components/DialogContent.d.ts +1 -1
  39. package/Dialog/components/DialogFooter.d.ts +1 -1
  40. package/Dialog/components/DialogTitle.d.ts +1 -1
  41. package/Dialog/components/Icon.d.ts +7 -6
  42. package/Drawer/Drawer.d.ts +8 -22
  43. package/Drawer/Drawer.stories.js +1 -0
  44. package/Drawer/Drawer.stories.js.map +1 -1
  45. package/Drawer/components/CancelButton.d.ts +8 -6
  46. package/Drawer/components/ConfirmButton.d.ts +8 -6
  47. package/Drawer/components/DrawerContent.d.ts +1 -1
  48. package/Drawer/components/Icon.d.ts +7 -6
  49. package/DropdownMenu/components/DropdownMenuItem.d.ts +3 -2
  50. package/DropdownMenu/components/DropdownMenuItem.js +9 -2
  51. package/DropdownMenu/components/DropdownMenuItem.js.map +1 -1
  52. package/DropdownMenu/components/DropdownMenuLink.d.ts +9 -8
  53. package/DropdownMenu/components/DropdownMenuSeparator.d.ts +7 -6
  54. package/EditableTitle/EditableTitle.d.ts +7 -6
  55. package/EmptyState/EmptyState.d.ts +43 -0
  56. package/EmptyState/EmptyState.js +93 -0
  57. package/EmptyState/EmptyState.js.map +1 -0
  58. package/EmptyState/EmptyState.stories.d.ts +13 -0
  59. package/EmptyState/EmptyState.stories.js +136 -0
  60. package/EmptyState/EmptyState.stories.js.map +1 -0
  61. package/EmptyState/illustrations/ContentIllustration.d.ts +2 -0
  62. package/EmptyState/illustrations/ContentIllustration.js +100 -0
  63. package/EmptyState/illustrations/ContentIllustration.js.map +1 -0
  64. package/EmptyState/illustrations/LayoutIllustration.d.ts +2 -0
  65. package/EmptyState/illustrations/LayoutIllustration.js +93 -0
  66. package/EmptyState/illustrations/LayoutIllustration.js.map +1 -0
  67. package/EmptyState/illustrations/ListingIllustration.d.ts +2 -0
  68. package/EmptyState/illustrations/ListingIllustration.js +92 -0
  69. package/EmptyState/illustrations/ListingIllustration.js.map +1 -0
  70. package/EmptyState/illustrations/SelectIllustration.d.ts +2 -0
  71. package/EmptyState/illustrations/SelectIllustration.js +100 -0
  72. package/EmptyState/illustrations/SelectIllustration.js.map +1 -0
  73. package/EmptyState/illustrations/TableIllustration.d.ts +2 -0
  74. package/EmptyState/illustrations/TableIllustration.js +233 -0
  75. package/EmptyState/illustrations/TableIllustration.js.map +1 -0
  76. package/EmptyState/illustrations/UploadIllustration.d.ts +2 -0
  77. package/EmptyState/illustrations/UploadIllustration.js +77 -0
  78. package/EmptyState/illustrations/UploadIllustration.js.map +1 -0
  79. package/EmptyState/illustrations/index.d.ts +6 -0
  80. package/EmptyState/illustrations/index.js +6 -0
  81. package/EmptyState/index.d.ts +1 -0
  82. package/EmptyState/index.js +1 -0
  83. package/FilePicker/FilePicker.d.ts +7 -6
  84. package/FilePicker/primitives/FilePickerPrimitive.d.ts +8 -7
  85. package/FilePicker/primitives/components/Trigger.d.ts +1 -1
  86. package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.d.ts +7 -6
  87. package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.d.ts +7 -6
  88. package/FilePicker/primitives/components/previews/TextOnlyPreview/TextOnlyPreview.d.ts +7 -6
  89. package/FilePicker/primitives/components/previews/variants.d.ts +1 -1
  90. package/FillViewport/FillViewport.d.ts +21 -18
  91. package/FormComponent/Description.d.ts +7 -6
  92. package/FormComponent/ErrorMessage.d.ts +7 -6
  93. package/FormComponent/Label.d.ts +7 -6
  94. package/FormComponent/Note.d.ts +7 -6
  95. package/Grid/Grid.d.ts +24 -22
  96. package/HeaderBar/HeaderBar.d.ts +7 -6
  97. package/Heading/Heading.d.ts +8 -7
  98. package/Icon/Icon.d.ts +9 -8
  99. package/IconPicker/IconPicker.d.ts +7 -6
  100. package/IconPicker/primitives/IconPickerPrimitive.d.ts +1 -1
  101. package/IconPicker/primitives/components/IconPickerTrigger.d.ts +1 -1
  102. package/Input/Input.d.ts +7 -6
  103. package/Input/InputPrimitive.d.ts +9 -8
  104. package/Label/Label.d.ts +8 -7
  105. package/Label/components/LabelValue.d.ts +1 -1
  106. package/Link/Link.d.ts +2 -2
  107. package/List/List.d.ts +8 -7
  108. package/List/components/ListItem.d.ts +7 -6
  109. package/List/components/ListItemAction.d.ts +7 -6
  110. package/List/components/ListItemHandle.d.ts +7 -6
  111. package/List/components/ListItemIcon.d.ts +7 -6
  112. package/List/components/ListItemSeparator.d.ts +7 -6
  113. package/Loader/Loader.d.ts +9 -8
  114. package/Loader/OverlayLoader.d.ts +7 -6
  115. package/MultiAutoComplete/MultiAutoComplete.d.ts +7 -6
  116. package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.d.ts +7 -6
  117. package/MultiAutoComplete/primitives/presenters/MultiAutoCompletePresenterWithFreeInput.d.ts +3 -3
  118. package/MultiAutoComplete/primitives/useMultiAutoComplete.d.ts +3 -3
  119. package/MultiFilePicker/MultiFilePicker.d.ts +7 -6
  120. package/MultiFilePicker/primitives/MultiFilePickerPrimitive.d.ts +7 -6
  121. package/MultiSelect/MultiSelect.d.ts +7 -6
  122. package/MultiSelect/primitives/MultiSelectPrimitive.d.ts +10 -6
  123. package/Popover/Popover.d.ts +7 -6
  124. package/Popover/primitives/PopoverPrimitive.d.ts +7 -7
  125. package/ProgressBar/ProgressBar.d.ts +7 -6
  126. package/RadioGroup/RadioGroup.d.ts +7 -6
  127. package/RadioGroup/primitives/Radio.d.ts +7 -6
  128. package/RadioGroup/primitives/RadioGroupPrimitive.d.ts +5 -1
  129. package/RangeSlider/RangeSlider.d.ts +7 -6
  130. package/SegmentedControl/SegmentedControl.d.ts +8 -7
  131. package/SegmentedControl/SegmentedControlTabs.d.ts +5 -2
  132. package/SegmentedControl/primitives/SegmentedControlPrimitive.d.ts +1 -1
  133. package/Select/Select.d.ts +7 -6
  134. package/Select/primitives/components/SelectTrigger.d.ts +2 -2
  135. package/Separator/Separator.d.ts +9 -8
  136. package/Sidebar/Sidebar.d.ts +7 -6
  137. package/Sidebar/components/SidebarIcon.d.ts +7 -6
  138. package/Sidebar/components/SidebarProvider.d.ts +4 -4
  139. package/Sidebar/components/items/SidebarMenuGroup.d.ts +9 -8
  140. package/Sidebar/components/items/SidebarMenuItem.d.ts +11 -10
  141. package/Sidebar/components/items/SidebarMenuItemIcon.d.ts +7 -6
  142. package/Sidebar/components/items/SidebarMenuLink.d.ts +11 -10
  143. package/Sidebar/components/items/SidebarMenuProvider.d.ts +4 -4
  144. package/Sidebar/components/items/SidebarMenuRootItem.d.ts +9 -7
  145. package/Skeleton/Skeleton.d.ts +9 -7
  146. package/Skeleton/Skeleton.js +10 -4
  147. package/Skeleton/Skeleton.js.map +1 -1
  148. package/Skeleton/Skeleton.stories.d.ts +2 -0
  149. package/Skeleton/Skeleton.stories.js +28 -2
  150. package/Skeleton/Skeleton.stories.js.map +1 -1
  151. package/Slider/Slider.d.ts +7 -6
  152. package/SteppedProgress/SteppedProgress.d.ts +7 -6
  153. package/SteppedProgress/SteppedProgressItem.d.ts +7 -6
  154. package/Switch/Switch.d.ts +7 -6
  155. package/Switch/primitives/SwitchPrimitive.d.ts +10 -6
  156. package/Table/Table.d.ts +12 -10
  157. package/Table/components/Direction.d.ts +1 -1
  158. package/Tabs/Tabs.d.ts +8 -6
  159. package/Tabs/Tabs.js +5 -2
  160. package/Tabs/Tabs.js.map +1 -1
  161. package/Tabs/components/Content.d.ts +1 -1
  162. package/Tabs/components/List.d.ts +2 -2
  163. package/Tabs/components/Tab.d.ts +7 -6
  164. package/Tabs/components/Trigger.d.ts +3 -2
  165. package/Tabs/components/Trigger.js +8 -3
  166. package/Tabs/components/Trigger.js.map +1 -1
  167. package/Tag/Tag.d.ts +8 -7
  168. package/Tags/Tags.d.ts +7 -6
  169. package/Tags/primitives/TagsPrimitive.d.ts +7 -6
  170. package/Text/Text.d.ts +8 -7
  171. package/Textarea/Textarea.d.ts +7 -6
  172. package/Textarea/TextareaPrimitive.d.ts +9 -8
  173. package/Toast/Toast.d.ts +7 -6
  174. package/Toast/components/ToastActions.d.ts +7 -6
  175. package/Toast/components/ToastDescription.d.ts +7 -6
  176. package/Toast/components/ToastTitle.d.ts +7 -6
  177. package/Toggle/Toggle.d.ts +7 -6
  178. package/Toggle/primitives/TogglePrimitive.d.ts +13 -9
  179. package/ToggleGroup/ToggleGroup.d.ts +7 -6
  180. package/ToggleGroup/primitives/ToggleGroupPrimitive.d.ts +13 -9
  181. package/Tooltip/Tooltip.d.ts +7 -6
  182. package/Tree/Tree.d.ts +7 -6
  183. package/Tree/components/Item.d.ts +7 -6
  184. package/Tree/components/ItemCollapseTrigger.d.ts +7 -6
  185. package/Tree/components/ItemContent.d.ts +8 -6
  186. package/Tree/components/ItemDragHandle.d.ts +7 -6
  187. package/Tree/components/ItemIcon.d.ts +7 -6
  188. package/Tree/components/ItemPlaceholder.d.ts +7 -6
  189. package/Tree/components/ItemSubIndentation.d.ts +7 -6
  190. package/Widget/Widget.d.ts +8 -22
  191. package/Widget/components/Icon.d.ts +7 -6
  192. package/Widget/components/WidgetAction.d.ts +8 -6
  193. package/Widget/components/WidgetContent.d.ts +5 -5
  194. package/exports/admin/ui.d.ts +1 -0
  195. package/exports/admin/ui.js +1 -0
  196. package/index.d.ts +1 -0
  197. package/index.js +1 -0
  198. package/package.json +24 -24
  199. package/theme.css +13 -1
  200. package/utils.js +52 -34
  201. package/utils.js.map +1 -1
@@ -1,21 +1,23 @@
1
1
  import React from "react";
2
2
  export type ItemContentProps = React.HTMLAttributes<HTMLDivElement>;
3
- export declare const ItemContent: (({ children, className, ...props }: ItemContentProps) => React.JSX.Element) & {
4
- original: ({ children, className, ...props }: ItemContentProps) => React.JSX.Element;
3
+ declare const BaseItemContent: ({ children, className, ...props }: ItemContentProps) => React.JSX.Element;
4
+ export declare const ItemContent: typeof BaseItemContent & {
5
+ original: typeof BaseItemContent;
5
6
  originalName: string;
6
7
  displayName: string;
7
8
  } & {
8
- original: (({ children, className, ...props }: ItemContentProps) => React.JSX.Element) & {
9
- original: ({ children, className, ...props }: ItemContentProps) => React.JSX.Element;
9
+ original: typeof BaseItemContent & {
10
+ original: typeof BaseItemContent;
10
11
  originalName: string;
11
12
  displayName: string;
12
13
  };
13
14
  originalName: string;
14
15
  displayName: string;
15
16
  } & {
16
- createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<(({ children, className, ...props }: ItemContentProps) => React.JSX.Element) & {
17
- original: ({ children, className, ...props }: ItemContentProps) => React.JSX.Element;
17
+ createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof BaseItemContent & {
18
+ original: typeof BaseItemContent;
18
19
  originalName: string;
19
20
  displayName: string;
20
21
  }>) => (props: unknown) => React.JSX.Element;
21
22
  };
23
+ export {};
@@ -3,21 +3,22 @@ import React from "react";
3
3
  type ItemDragHandleProps = {
4
4
  handleRef?: RefObject<HTMLDivElement | null>;
5
5
  };
6
- declare const ItemDragHandle: (({ handleRef }: ItemDragHandleProps) => React.JSX.Element) & {
7
- original: ({ handleRef }: ItemDragHandleProps) => React.JSX.Element;
6
+ declare const BaseItemDragHandle: ({ handleRef }: ItemDragHandleProps) => React.JSX.Element;
7
+ declare const ItemDragHandle: typeof BaseItemDragHandle & {
8
+ original: typeof BaseItemDragHandle;
8
9
  originalName: string;
9
10
  displayName: string;
10
11
  } & {
11
- original: (({ handleRef }: ItemDragHandleProps) => React.JSX.Element) & {
12
- original: ({ handleRef }: ItemDragHandleProps) => React.JSX.Element;
12
+ original: typeof BaseItemDragHandle & {
13
+ original: typeof BaseItemDragHandle;
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").ComponentDecorator<(({ handleRef }: ItemDragHandleProps) => React.JSX.Element) & {
20
- original: ({ handleRef }: ItemDragHandleProps) => React.JSX.Element;
20
+ createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof BaseItemDragHandle & {
21
+ original: typeof BaseItemDragHandle;
21
22
  originalName: string;
22
23
  displayName: string;
23
24
  }>) => (props: unknown) => React.JSX.Element;
@@ -4,21 +4,22 @@ interface ItemIconProps extends Omit<IconProps, "icon"> {
4
4
  element?: React.ReactNode;
5
5
  active?: boolean;
6
6
  }
7
- declare const ItemIcon: (({ element, active, ...props }: ItemIconProps) => React.JSX.Element) & {
8
- original: ({ element, active, ...props }: ItemIconProps) => React.JSX.Element;
7
+ declare const BaseItemIcon: ({ element, active, ...props }: ItemIconProps) => React.JSX.Element;
8
+ declare const ItemIcon: typeof BaseItemIcon & {
9
+ original: typeof BaseItemIcon;
9
10
  originalName: string;
10
11
  displayName: string;
11
12
  } & {
12
- original: (({ element, active, ...props }: ItemIconProps) => React.JSX.Element) & {
13
- original: ({ element, active, ...props }: ItemIconProps) => React.JSX.Element;
13
+ original: typeof BaseItemIcon & {
14
+ original: typeof BaseItemIcon;
14
15
  originalName: string;
15
16
  displayName: string;
16
17
  };
17
18
  originalName: string;
18
19
  displayName: string;
19
20
  } & {
20
- createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<(({ element, active, ...props }: ItemIconProps) => React.JSX.Element) & {
21
- original: ({ element, active, ...props }: ItemIconProps) => React.JSX.Element;
21
+ createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof BaseItemIcon & {
22
+ original: typeof BaseItemIcon;
22
23
  originalName: string;
23
24
  displayName: string;
24
25
  }>) => (props: unknown) => React.JSX.Element;
@@ -2,21 +2,22 @@ import React from "react";
2
2
  interface ItemPlaceholderProps {
3
3
  depth: number;
4
4
  }
5
- declare const ItemPlaceholder: (({ depth }: ItemPlaceholderProps) => React.JSX.Element) & {
6
- original: ({ depth }: ItemPlaceholderProps) => React.JSX.Element;
5
+ declare const BaseItemPlaceholder: ({ depth }: ItemPlaceholderProps) => React.JSX.Element;
6
+ declare const ItemPlaceholder: typeof BaseItemPlaceholder & {
7
+ original: typeof BaseItemPlaceholder;
7
8
  originalName: string;
8
9
  displayName: string;
9
10
  } & {
10
- original: (({ depth }: ItemPlaceholderProps) => React.JSX.Element) & {
11
- original: ({ depth }: ItemPlaceholderProps) => React.JSX.Element;
11
+ original: typeof BaseItemPlaceholder & {
12
+ original: typeof BaseItemPlaceholder;
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").ComponentDecorator<(({ depth }: ItemPlaceholderProps) => React.JSX.Element) & {
19
- original: ({ depth }: ItemPlaceholderProps) => React.JSX.Element;
19
+ createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof BaseItemPlaceholder & {
20
+ original: typeof BaseItemPlaceholder;
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  }>) => (props: unknown) => React.JSX.Element;
@@ -2,21 +2,22 @@ import React from "react";
2
2
  interface ItemSubIndentationProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "content"> {
3
3
  level: number;
4
4
  }
5
- declare const ItemSubIndentation: (({ level }: ItemSubIndentationProps) => React.JSX.Element) & {
6
- original: ({ level }: ItemSubIndentationProps) => React.JSX.Element;
5
+ declare const BaseItemSubIndentation: ({ level }: ItemSubIndentationProps) => React.JSX.Element;
6
+ declare const ItemSubIndentation: typeof BaseItemSubIndentation & {
7
+ original: typeof BaseItemSubIndentation;
7
8
  originalName: string;
8
9
  displayName: string;
9
10
  } & {
10
- original: (({ level }: ItemSubIndentationProps) => React.JSX.Element) & {
11
- original: ({ level }: ItemSubIndentationProps) => React.JSX.Element;
11
+ original: typeof BaseItemSubIndentation & {
12
+ original: typeof BaseItemSubIndentation;
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").ComponentDecorator<(({ level }: ItemSubIndentationProps) => React.JSX.Element) & {
19
- original: ({ level }: ItemSubIndentationProps) => React.JSX.Element;
19
+ createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof BaseItemSubIndentation & {
20
+ original: typeof BaseItemSubIndentation;
20
21
  originalName: string;
21
22
  displayName: string;
22
23
  }>) => (props: unknown) => React.JSX.Element;
@@ -14,39 +14,25 @@ interface WidgetProps extends Omit<React.ComponentPropsWithoutRef<typeof WidgetC
14
14
  outline?: boolean;
15
15
  children: React.ReactNode;
16
16
  }
17
- declare const Widget: {
17
+ declare const WidgetBase: {
18
18
  (props: WidgetProps): React.JSX.Element;
19
19
  displayName: string;
20
- } & {
21
- original: {
22
- (props: WidgetProps): React.JSX.Element;
23
- displayName: string;
24
- };
20
+ };
21
+ declare const Widget: typeof WidgetBase & {
22
+ original: typeof WidgetBase;
25
23
  originalName: string;
26
24
  displayName: string;
27
25
  } & {
28
- original: {
29
- (props: WidgetProps): React.JSX.Element;
30
- displayName: string;
31
- } & {
32
- original: {
33
- (props: WidgetProps): React.JSX.Element;
34
- displayName: string;
35
- };
26
+ original: typeof WidgetBase & {
27
+ original: typeof WidgetBase;
36
28
  originalName: string;
37
29
  displayName: string;
38
30
  };
39
31
  originalName: string;
40
32
  displayName: string;
41
33
  } & {
42
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<{
43
- (props: WidgetProps): React.JSX.Element;
44
- displayName: string;
45
- } & {
46
- original: {
47
- (props: WidgetProps): React.JSX.Element;
48
- displayName: string;
49
- };
34
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof WidgetBase & {
35
+ original: typeof WidgetBase;
50
36
  originalName: string;
51
37
  displayName: string;
52
38
  }>) => (props: unknown) => React.JSX.Element;
@@ -1,21 +1,22 @@
1
1
  import * as React from "react";
2
2
  import type { IconProps as IconComponentProps } from "../../Icon/index.js";
3
3
  type IconProps = IconComponentProps;
4
- export declare const Icon: ((props: IconProps) => React.JSX.Element) & {
5
- original: (props: IconProps) => React.JSX.Element;
4
+ declare const IconBase: (props: IconProps) => React.JSX.Element;
5
+ export declare const Icon: typeof IconBase & {
6
+ original: typeof IconBase;
6
7
  originalName: string;
7
8
  displayName: string;
8
9
  } & {
9
- original: ((props: IconProps) => React.JSX.Element) & {
10
- original: (props: IconProps) => React.JSX.Element;
10
+ original: typeof IconBase & {
11
+ original: typeof IconBase;
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").ComponentDecorator<((props: IconProps) => React.JSX.Element) & {
18
- original: (props: IconProps) => React.JSX.Element;
18
+ createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<typeof IconBase & {
19
+ original: typeof IconBase;
19
20
  originalName: string;
20
21
  displayName: string;
21
22
  }>) => (props: unknown) => React.JSX.Element;
@@ -1,21 +1,23 @@
1
1
  import * as React from "react";
2
2
  import { ButtonProps } from "../../Button/index.js";
3
- export declare const WidgetAction: ((props: ButtonProps) => React.JSX.Element) & {
4
- original: (props: ButtonProps) => React.JSX.Element;
3
+ declare const WidgetActionBase: (props: ButtonProps) => React.JSX.Element;
4
+ export declare const WidgetAction: typeof WidgetActionBase & {
5
+ original: typeof WidgetActionBase;
5
6
  originalName: string;
6
7
  displayName: string;
7
8
  } & {
8
- original: ((props: ButtonProps) => React.JSX.Element) & {
9
- original: (props: ButtonProps) => React.JSX.Element;
9
+ original: typeof WidgetActionBase & {
10
+ original: typeof WidgetActionBase;
10
11
  originalName: string;
11
12
  displayName: string;
12
13
  };
13
14
  originalName: string;
14
15
  displayName: string;
15
16
  } & {
16
- createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: ButtonProps) => React.JSX.Element) & {
17
- original: (props: ButtonProps) => React.JSX.Element;
17
+ createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof WidgetActionBase & {
18
+ original: typeof WidgetActionBase;
18
19
  originalName: string;
19
20
  displayName: string;
20
21
  }>) => (props: unknown) => React.JSX.Element;
21
22
  };
23
+ export {};
@@ -2,15 +2,15 @@ import * as React from "react";
2
2
  import { type VariantProps } from "../../utils.js";
3
3
  declare const widgetContentVariants: (props?: ({
4
4
  variant?: "accent" | "base" | "light" | null | undefined;
5
- elevation?: "sm" | "md" | "none" | "lg" | null | undefined;
5
+ elevation?: "lg" | "md" | "none" | "sm" | null | undefined;
6
6
  outline?: boolean | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  export interface WidgetContentProps extends VariantProps<typeof widgetContentVariants> {
9
9
  className?: string;
10
10
  children: React.ReactNode;
11
11
  }
12
- declare const WidgetContent: {
13
- ({ children }: WidgetContentProps): React.JSX.Element;
14
- displayName: string;
15
- };
12
+ declare function WidgetContent({ children }: WidgetContentProps): React.JSX.Element;
13
+ declare namespace WidgetContent {
14
+ var displayName: string;
15
+ }
16
16
  export { WidgetContent };
@@ -16,6 +16,7 @@ export { Dialog } from "../../Dialog/index.js";
16
16
  export { Drawer } from "../../Drawer/index.js";
17
17
  export { DropdownMenu } from "../../DropdownMenu/index.js";
18
18
  export { DynamicFieldset } from "../../DynamicFieldset/index.js";
19
+ export { EmptyState } from "../../EmptyState/index.js";
19
20
  export { FilePicker } from "../../FilePicker/index.js";
20
21
  export { FillViewportHeight, FillViewportWidth, FillViewport } from "../../FillViewport/index.js";
21
22
  export { Grid } from "../../Grid/index.js";
@@ -16,6 +16,7 @@ export { Dialog } from "../../Dialog/index.js";
16
16
  export { Drawer } from "../../Drawer/index.js";
17
17
  export { DropdownMenu } from "../../DropdownMenu/index.js";
18
18
  export { DynamicFieldset } from "../../DynamicFieldset/index.js";
19
+ export { EmptyState } from "../../EmptyState/index.js";
19
20
  export { FilePicker } from "../../FilePicker/index.js";
20
21
  export { FillViewport, FillViewportHeight, FillViewportWidth } from "../../FillViewport/index.js";
21
22
  export { Grid } from "../../Grid/index.js";
package/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export * from "./Drawer/index.js";
19
19
  export * from "./DropdownMenu/index.js";
20
20
  export * from "./DynamicFieldset/index.js";
21
21
  export * from "./EditableTitle/index.js";
22
+ export * from "./EmptyState/index.js";
22
23
  export * from "./FilePicker/index.js";
23
24
  export * from "./FillViewport/index.js";
24
25
  export * from "./FormComponent/index.js";
package/index.js CHANGED
@@ -19,6 +19,7 @@ export * from "./Drawer/index.js";
19
19
  export * from "./DropdownMenu/index.js";
20
20
  export * from "./DynamicFieldset/index.js";
21
21
  export * from "./EditableTitle/index.js";
22
+ export * from "./EmptyState/index.js";
22
23
  export * from "./FilePicker/index.js";
23
24
  export * from "./FillViewport/index.js";
24
25
  export * from "./FormComponent/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/admin-ui",
3
- "version": "6.4.5-beta.0",
3
+ "version": "6.6.0-alpha.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -13,25 +13,25 @@
13
13
  "description": "The UI component library for Webiny's Admin app.",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@fortawesome/fontawesome-svg-core": "7.3.0",
17
- "@fortawesome/react-fontawesome": "3.4.0",
16
+ "@fortawesome/fontawesome-svg-core": "7.3.1",
17
+ "@fortawesome/react-fontawesome": "3.5.0",
18
18
  "@minoru/react-dnd-treeview": "3.5.4",
19
19
  "@monaco-editor/react": "4.7.0",
20
- "@radix-ui/react-scroll-area": "1.2.14",
20
+ "@radix-ui/react-scroll-area": "1.2.18",
21
21
  "@tanstack/react-table": "8.21.3",
22
- "@webiny/icons": "6.4.5-beta.0",
23
- "@webiny/react-composition": "6.4.5-beta.0",
24
- "@webiny/utils": "6.4.5-beta.0",
22
+ "@webiny/icons": "6.6.0-alpha.0",
23
+ "@webiny/react-composition": "6.6.0-alpha.0",
24
+ "@webiny/utils": "6.6.0-alpha.0",
25
25
  "bytes": "3.1.2",
26
26
  "class-variance-authority": "0.7.1",
27
27
  "clsx": "2.1.1",
28
28
  "cmdk": "1.1.1",
29
29
  "date-fns": "4.4.0",
30
30
  "lodash": "4.18.1",
31
- "minimatch": "10.2.5",
31
+ "minimatch": "10.2.6",
32
32
  "mobx": "6.16.1",
33
33
  "monaco-editor": "0.53.0",
34
- "radix-ui": "1.6.2",
34
+ "radix-ui": "1.6.7",
35
35
  "react": "18.3.1",
36
36
  "react-color": "2.19.3",
37
37
  "react-custom-scrollbars": "4.2.1",
@@ -39,32 +39,32 @@
39
39
  "react-dnd": "16.0.1",
40
40
  "react-virtualized": "9.22.6",
41
41
  "sonner": "2.0.7",
42
- "tailwind-merge": "2.6.1",
43
- "tailwindcss": "4.3.2",
42
+ "tailwind-merge": "3.6.0",
43
+ "tailwindcss": "4.3.3",
44
44
  "tw-animate-css": "1.4.0",
45
45
  "type-fest": "5.8.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@fortawesome/free-solid-svg-icons": "7.3.0",
49
- "@rsbuild/core": "2.1.5",
48
+ "@fortawesome/free-solid-svg-icons": "7.3.1",
49
+ "@rsbuild/core": "2.1.8",
50
50
  "@rsbuild/plugin-svgr": "2.0.5",
51
- "@storybook/addon-a11y": "10.4.6",
52
- "@storybook/addon-docs": "10.4.6",
53
- "@storybook/react": "10.4.6",
54
- "@tailwindcss/postcss": "4.3.2",
51
+ "@storybook/addon-a11y": "10.5.5",
52
+ "@storybook/addon-docs": "10.5.5",
53
+ "@storybook/react": "10.5.5",
54
+ "@tailwindcss/postcss": "4.3.3",
55
55
  "@types/react": "18.3.31",
56
56
  "@types/react-color": "3.0.13",
57
57
  "@types/react-custom-scrollbars": "4.0.13",
58
58
  "@types/react-virtualized": "9.22.3",
59
- "@webiny/build-tools": "6.4.5-beta.0",
60
- "@webiny/project": "6.4.5-beta.0",
61
- "chalk": "5.6.2",
62
- "oxfmt": "0.58.0",
59
+ "@webiny/build-tools": "6.6.0-alpha.0",
60
+ "@webiny/project": "6.6.0-alpha.0",
61
+ "chalk": "6.0.0",
62
+ "oxfmt": "0.61.0",
63
63
  "rimraf": "6.1.3",
64
- "sass": "1.101.0",
65
- "storybook": "10.4.6",
64
+ "sass": "1.102.0",
65
+ "storybook": "10.5.5",
66
66
  "storybook-react-rsbuild": "3.3.4",
67
- "typescript": "6.0.3",
67
+ "typescript": "7.0.2",
68
68
  "vitest": "4.1.10"
69
69
  },
70
70
  "publishConfig": {
package/theme.css CHANGED
@@ -86,6 +86,7 @@
86
86
  --color-primary-strong: var(--color-primary-700);
87
87
  --color-primary-subtle: var(--color-primary-100);
88
88
  --color-primary-xstrong: var(--color-primary-900);
89
+ --color-primary-light: var(--color-primary-200);
89
90
 
90
91
  --color-secondary: var(--color-success-500);
91
92
  --color-secondary-disabled: var(--color-success-400);
@@ -342,6 +343,17 @@
342
343
  background-color: var(--color-neutral-muted);
343
344
  }
344
345
  }
346
+
347
+ --animate-skeleton-pulse-light: skeleton-pulse-light 1400ms ease-in-out infinite;
348
+ @keyframes skeleton-pulse-light {
349
+ 0%,
350
+ 100% {
351
+ background-color: var(--color-neutral-subtle);
352
+ }
353
+ 50% {
354
+ background-color: var(--color-neutral-disabled);
355
+ }
356
+ }
345
357
  }
346
358
 
347
359
  @utility container {
@@ -351,7 +363,7 @@
351
363
  @utility fill-grid {
352
364
  background-image: radial-gradient(var(--color-neutral-strong) 1px, transparent 0px);
353
365
  background-size: 15px 15px;
354
- @apply bg-neutral-subtle;
366
+ @apply bg-neutral-light;
355
367
  }
356
368
 
357
369
  @layer base {
package/utils.js CHANGED
@@ -2,15 +2,13 @@ import react from "react";
2
2
  import { clsx } from "clsx";
3
3
  import { generateId } from "@webiny/utils/generateId.js";
4
4
  import { extendTailwindMerge } from "tailwind-merge";
5
+ const BORDER_WIDTHS = [
6
+ "sm",
7
+ "md",
8
+ "none"
9
+ ];
5
10
  const twMerge = extendTailwindMerge({
6
11
  override: {
7
- theme: {
8
- borderWidth: [
9
- "sm",
10
- "md",
11
- "none"
12
- ]
13
- },
14
12
  classGroups: {
15
13
  "border-color": [
16
14
  "border-transparent",
@@ -73,39 +71,59 @@ const twMerge = extendTailwindMerge({
73
71
  }
74
72
  },
75
73
  extend: {
76
- theme: {
77
- padding: [
78
- "lg",
79
- "md",
80
- "md-extra",
81
- "none",
82
- "sm",
83
- "sm-extra",
84
- "sm-plus",
85
- "xl",
86
- "xs",
87
- "xs-plus",
88
- "xxl",
89
- "xxs"
74
+ classGroups: {
75
+ "border-w": [
76
+ {
77
+ border: BORDER_WIDTHS
78
+ }
90
79
  ],
91
- margin: [
92
- "lg",
93
- "md",
94
- "md-plus",
95
- "none",
96
- "sm",
97
- "sm-extra",
98
- "sm-plus",
99
- "xl",
100
- "xs",
101
- "xs-plus",
102
- "xxl",
103
- "xxs"
80
+ "border-w-x": [
81
+ {
82
+ "border-x": BORDER_WIDTHS
83
+ }
84
+ ],
85
+ "border-w-y": [
86
+ {
87
+ "border-y": BORDER_WIDTHS
88
+ }
104
89
  ],
90
+ "border-w-t": [
91
+ {
92
+ "border-t": BORDER_WIDTHS
93
+ }
94
+ ],
95
+ "border-w-r": [
96
+ {
97
+ "border-r": BORDER_WIDTHS
98
+ }
99
+ ],
100
+ "border-w-b": [
101
+ {
102
+ "border-b": BORDER_WIDTHS
103
+ }
104
+ ],
105
+ "border-w-l": [
106
+ {
107
+ "border-l": BORDER_WIDTHS
108
+ }
109
+ ],
110
+ "border-w-s": [
111
+ {
112
+ "border-s": BORDER_WIDTHS
113
+ }
114
+ ],
115
+ "border-w-e": [
116
+ {
117
+ "border-e": BORDER_WIDTHS
118
+ }
119
+ ]
120
+ },
121
+ theme: {
105
122
  spacing: [
106
123
  "3xl",
107
124
  "lg",
108
125
  "md",
126
+ "md-extra",
109
127
  "md-plus",
110
128
  "none",
111
129
  "sm",
package/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../src/utils.tsx"],"sourcesContent":["import React from \"react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { generateId as baseGenerateId } from \"@webiny/utils/generateId.js\";\nimport { extendTailwindMerge } from \"tailwind-merge\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nexport { makeDecoratable } from \"@webiny/react-composition\";\n\nconst twMerge = extendTailwindMerge({\n override: {\n theme: {\n borderWidth: [\"sm\", \"md\", \"none\"]\n },\n classGroups: {\n \"border-color\": [\n \"border-transparent\",\n \"border-white\",\n \"border-accent\",\n \"border-accent-default\",\n \"border-accent-dimmed\",\n \"border-accent-subtle\",\n \"border-destructive\",\n \"border-destructive-default\",\n \"border-destructive-subtle\",\n \"border-neutral\",\n \"border-neutral-base\",\n \"border-neutral-black\",\n \"border-neutral-dark\",\n \"border-neutral-dimmed\",\n \"border-neutral-dimmed-darker\",\n \"border-neutral-muted\",\n \"border-neutral-strong\",\n \"border-neutral-subtle\",\n \"border-success\",\n \"border-success-default\",\n \"border-success-subtle\"\n ],\n \"border-style\": [\"border-solid\", \"border-dashed\", \"border-dotted\"],\n \"ring-color\": [\n \"ring-primary\",\n \"ring-primary-dimmed\",\n \"ring-primary-strong\",\n \"ring-primary-subtle\",\n \"ring-success\",\n \"ring-success-dimmed\",\n \"ring-success-strong\",\n \"ring-success-subtle\"\n ],\n \"ring-w\": [\"ring-sm\", \"ring-md\", \"ring-lg\"],\n \"font-size\": [\n \"text-h1\",\n \"text-h2\",\n \"text-h3\",\n \"text-h4\",\n \"text-h5\",\n \"text-h6\",\n \"text-sm\",\n \"text-md\",\n \"text-lg\",\n \"text-xl\",\n \"text-xxl\",\n \"text-3xl\",\n \"text-4xl\"\n ]\n }\n },\n extend: {\n theme: {\n padding: [\n \"lg\",\n \"md\",\n \"md-extra\",\n \"none\",\n \"sm\",\n \"sm-extra\",\n \"sm-plus\",\n \"xl\",\n \"xs\",\n \"xs-plus\",\n \"xxl\",\n \"xxs\"\n ],\n margin: [\n \"lg\",\n \"md\",\n \"md-plus\",\n \"none\",\n \"sm\",\n \"sm-extra\",\n \"sm-plus\",\n \"xl\",\n \"xs\",\n \"xs-plus\",\n \"xxl\",\n \"xxs\"\n ],\n spacing: [\n \"3xl\",\n \"lg\",\n \"md\",\n \"md-plus\",\n \"none\",\n \"sm\",\n \"sm-extra\",\n \"sm-plus\",\n \"xl\",\n \"xs\",\n \"xs-plus\",\n \"xxl\",\n \"xxs\",\n \"sidebar-collapsed\",\n \"sidebar-expanded\"\n ]\n }\n }\n});\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const generateId = (initialId?: string) => {\n if (initialId) {\n return initialId;\n }\n return \"\" + baseGenerateId(4);\n};\n\nexport const withStaticProps = <TComponent extends React.ComponentType<any>, TProps>(\n component: TComponent,\n props: TProps\n) => {\n return Object.assign(component, props) as TComponent & TProps;\n};\n\nexport function createComponentPropsProvider<TProps extends Record<string, any>>() {\n const PropsContext = React.createContext<TProps>({} as TProps);\n\n type PropsProviderProps = {\n props: TProps;\n children: React.ReactNode;\n };\n\n const PropsProvider: React.ComponentType<PropsProviderProps> = ({\n props,\n children\n }: PropsProviderProps) => {\n return <PropsContext.Provider value={props}>{children}</PropsContext.Provider>;\n };\n\n const useProps = () => {\n return React.useContext(PropsContext);\n };\n\n return [PropsProvider, useProps] as const;\n}\n\nexport function omit<T extends object, K extends keyof T>(obj: T, keys: K[]): Omit<T, K> {\n const result = { ...obj };\n keys.forEach(key => delete result[key]);\n return result;\n}\n\nexport { cva, type VariantProps };\n"],"names":["twMerge","extendTailwindMerge","cn","inputs","clsx","generateId","initialId","baseGenerateId","withStaticProps","component","props","Object","createComponentPropsProvider","PropsContext","React","PropsProvider","children","useProps","omit","obj","keys","result","key"],"mappings":";;;;AAOA,MAAMA,UAAUC,oBAAoB;IAChC,UAAU;QACN,OAAO;YACH,aAAa;gBAAC;gBAAM;gBAAM;aAAO;QACrC;QACA,aAAa;YACT,gBAAgB;gBACZ;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;YACD,gBAAgB;gBAAC;gBAAgB;gBAAiB;aAAgB;YAClE,cAAc;gBACV;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;YACD,UAAU;gBAAC;gBAAW;gBAAW;aAAU;YAC3C,aAAa;gBACT;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;QACL;IACJ;IACA,QAAQ;QACJ,OAAO;YACH,SAAS;gBACL;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;YACD,QAAQ;gBACJ;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;YACD,SAAS;gBACL;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;QACL;IACJ;AACJ;AAEO,SAASC,GAAG,GAAGC,MAAoB;IACtC,OAAOH,QAAQI,KAAKD;AACxB;AAEO,MAAME,mBAAa,CAACC;IACvB,IAAIA,WACA,OAAOA;IAEX,OAAO,KAAKC,WAAe;AAC/B;AAEO,MAAMC,kBAAkB,CAC3BC,WACAC,QAEOC,OAAO,MAAM,CAACF,WAAWC;AAG7B,SAASE;IACZ,MAAMC,eAAe,WAAfA,GAAeC,MAAAA,aAAmB,CAAS,CAAC;IAOlD,MAAMC,gBAAyD,CAAC,EAC5DL,KAAK,EACLM,QAAQ,EACS,GACV,WAAP,GAAO,oBAACH,aAAa,QAAQ;YAAC,OAAOH;WAAQM;IAGjD,MAAMC,WAAW,IACNH,MAAAA,UAAgB,CAACD;IAG5B,OAAO;QAACE;QAAeE;KAAS;AACpC;AAEO,SAASC,KAA0CC,GAAM,EAAEC,IAAS;IACvE,MAAMC,SAAS;QAAE,GAAGF,GAAG;IAAC;IACxBC,KAAK,OAAO,CAACE,CAAAA,MAAO,OAAOD,MAAM,CAACC,IAAI;IACtC,OAAOD;AACX"}
1
+ {"version":3,"file":"utils.js","sources":["../src/utils.tsx"],"sourcesContent":["import React from \"react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { generateId as baseGenerateId } from \"@webiny/utils/generateId.js\";\nimport { extendTailwindMerge } from \"tailwind-merge\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nexport { makeDecoratable } from \"@webiny/react-composition\";\n\nconst BORDER_WIDTHS = [\"sm\", \"md\", \"none\"];\n\nconst twMerge = extendTailwindMerge({\n override: {\n classGroups: {\n \"border-color\": [\n \"border-transparent\",\n \"border-white\",\n \"border-accent\",\n \"border-accent-default\",\n \"border-accent-dimmed\",\n \"border-accent-subtle\",\n \"border-destructive\",\n \"border-destructive-default\",\n \"border-destructive-subtle\",\n \"border-neutral\",\n \"border-neutral-base\",\n \"border-neutral-black\",\n \"border-neutral-dark\",\n \"border-neutral-dimmed\",\n \"border-neutral-dimmed-darker\",\n \"border-neutral-muted\",\n \"border-neutral-strong\",\n \"border-neutral-subtle\",\n \"border-success\",\n \"border-success-default\",\n \"border-success-subtle\"\n ],\n \"border-style\": [\"border-solid\", \"border-dashed\", \"border-dotted\"],\n \"ring-color\": [\n \"ring-primary\",\n \"ring-primary-dimmed\",\n \"ring-primary-strong\",\n \"ring-primary-subtle\",\n \"ring-success\",\n \"ring-success-dimmed\",\n \"ring-success-strong\",\n \"ring-success-subtle\"\n ],\n \"ring-w\": [\"ring-sm\", \"ring-md\", \"ring-lg\"],\n \"font-size\": [\n \"text-h1\",\n \"text-h2\",\n \"text-h3\",\n \"text-h4\",\n \"text-h5\",\n \"text-h6\",\n \"text-sm\",\n \"text-md\",\n \"text-lg\",\n \"text-xl\",\n \"text-xxl\",\n \"text-3xl\",\n \"text-4xl\"\n ]\n }\n },\n extend: {\n classGroups: {\n \"border-w\": [{ border: BORDER_WIDTHS }],\n \"border-w-x\": [{ \"border-x\": BORDER_WIDTHS }],\n \"border-w-y\": [{ \"border-y\": BORDER_WIDTHS }],\n \"border-w-t\": [{ \"border-t\": BORDER_WIDTHS }],\n \"border-w-r\": [{ \"border-r\": BORDER_WIDTHS }],\n \"border-w-b\": [{ \"border-b\": BORDER_WIDTHS }],\n \"border-w-l\": [{ \"border-l\": BORDER_WIDTHS }],\n \"border-w-s\": [{ \"border-s\": BORDER_WIDTHS }],\n \"border-w-e\": [{ \"border-e\": BORDER_WIDTHS }]\n },\n theme: {\n spacing: [\n \"3xl\",\n \"lg\",\n \"md\",\n \"md-extra\",\n \"md-plus\",\n \"none\",\n \"sm\",\n \"sm-extra\",\n \"sm-plus\",\n \"xl\",\n \"xs\",\n \"xs-plus\",\n \"xxl\",\n \"xxs\",\n \"sidebar-collapsed\",\n \"sidebar-expanded\"\n ]\n }\n }\n});\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const generateId = (initialId?: string) => {\n if (initialId) {\n return initialId;\n }\n return \"\" + baseGenerateId(4);\n};\n\nexport const withStaticProps = <TComponent extends React.ComponentType<any>, TProps>(\n component: TComponent,\n props: TProps\n) => {\n return Object.assign(component, props) as TComponent & TProps;\n};\n\nexport function createComponentPropsProvider<TProps extends Record<string, any>>() {\n const PropsContext = React.createContext<TProps>({} as TProps);\n\n type PropsProviderProps = {\n props: TProps;\n children: React.ReactNode;\n };\n\n const PropsProvider: React.ComponentType<PropsProviderProps> = ({\n props,\n children\n }: PropsProviderProps) => {\n return <PropsContext.Provider value={props}>{children}</PropsContext.Provider>;\n };\n\n const useProps = () => {\n return React.useContext(PropsContext);\n };\n\n return [PropsProvider, useProps] as const;\n}\n\nexport function omit<T extends object, K extends keyof T>(obj: T, keys: K[]): Omit<T, K> {\n const result = { ...obj };\n keys.forEach(key => delete result[key]);\n return result;\n}\n\nexport { cva, type VariantProps };\n"],"names":["BORDER_WIDTHS","twMerge","extendTailwindMerge","cn","inputs","clsx","generateId","initialId","baseGenerateId","withStaticProps","component","props","Object","createComponentPropsProvider","PropsContext","React","PropsProvider","children","useProps","omit","obj","keys","result","key"],"mappings":";;;;AAOA,MAAMA,gBAAgB;IAAC;IAAM;IAAM;CAAO;AAE1C,MAAMC,UAAUC,oBAAoB;IAChC,UAAU;QACN,aAAa;YACT,gBAAgB;gBACZ;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;YACD,gBAAgB;gBAAC;gBAAgB;gBAAiB;aAAgB;YAClE,cAAc;gBACV;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;YACD,UAAU;gBAAC;gBAAW;gBAAW;aAAU;YAC3C,aAAa;gBACT;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;QACL;IACJ;IACA,QAAQ;QACJ,aAAa;YACT,YAAY;gBAAC;oBAAE,QAAQF;gBAAc;aAAE;YACvC,cAAc;gBAAC;oBAAE,YAAYA;gBAAc;aAAE;YAC7C,cAAc;gBAAC;oBAAE,YAAYA;gBAAc;aAAE;YAC7C,cAAc;gBAAC;oBAAE,YAAYA;gBAAc;aAAE;YAC7C,cAAc;gBAAC;oBAAE,YAAYA;gBAAc;aAAE;YAC7C,cAAc;gBAAC;oBAAE,YAAYA;gBAAc;aAAE;YAC7C,cAAc;gBAAC;oBAAE,YAAYA;gBAAc;aAAE;YAC7C,cAAc;gBAAC;oBAAE,YAAYA;gBAAc;aAAE;YAC7C,cAAc;gBAAC;oBAAE,YAAYA;gBAAc;aAAE;QACjD;QACA,OAAO;YACH,SAAS;gBACL;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;gBACA;aACH;QACL;IACJ;AACJ;AAEO,SAASG,GAAG,GAAGC,MAAoB;IACtC,OAAOH,QAAQI,KAAKD;AACxB;AAEO,MAAME,mBAAa,CAACC;IACvB,IAAIA,WACA,OAAOA;IAEX,OAAO,KAAKC,WAAe;AAC/B;AAEO,MAAMC,kBAAkB,CAC3BC,WACAC,QAEOC,OAAO,MAAM,CAACF,WAAWC;AAG7B,SAASE;IACZ,MAAMC,eAAe,WAAfA,GAAeC,MAAAA,aAAmB,CAAS,CAAC;IAOlD,MAAMC,gBAAyD,CAAC,EAC5DL,KAAK,EACLM,QAAQ,EACS,GACV,WAAP,GAAO,oBAACH,aAAa,QAAQ;YAAC,OAAOH;WAAQM;IAGjD,MAAMC,WAAW,IACNH,MAAAA,UAAgB,CAACD;IAG5B,OAAO;QAACE;QAAeE;KAAS;AACpC;AAEO,SAASC,KAA0CC,GAAM,EAAEC,IAAS;IACvE,MAAMC,SAAS;QAAE,GAAGF,GAAG;IAAC;IACxBC,KAAK,OAAO,CAACE,CAAAA,MAAO,OAAOD,MAAM,CAACC,IAAI;IACtC,OAAOD;AACX"}