@webiny/ui 6.0.0-alpha.5 → 6.0.0-rc.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 (254) hide show
  1. package/Accordion/Accordion.d.ts +2 -2
  2. package/Accordion/Accordion.js.map +1 -1
  3. package/Accordion/AccordionItem.d.ts +24 -24
  4. package/Accordion/AccordionItem.js +1 -1
  5. package/Accordion/AccordionItem.js.map +1 -1
  6. package/Accordion/AccordionItemActions.js +2 -2
  7. package/Accordion/AccordionItemActions.js.map +1 -1
  8. package/Accordion/index.d.ts +2 -2
  9. package/Accordion/index.js +2 -2
  10. package/Accordion/index.js.map +1 -1
  11. package/Alert/index.d.ts +1 -1
  12. package/Alert/index.js +1 -1
  13. package/Alert/index.js.map +1 -1
  14. package/AutoComplete/AutoComplete.d.ts +1 -1
  15. package/AutoComplete/AutoComplete.js.map +1 -1
  16. package/AutoComplete/MultiAutoComplete.d.ts +1 -1
  17. package/AutoComplete/MultiAutoComplete.js.map +1 -1
  18. package/AutoComplete/index.d.ts +2 -2
  19. package/AutoComplete/index.js +2 -2
  20. package/AutoComplete/index.js.map +1 -1
  21. package/AutoComplete/types.d.ts +6 -2
  22. package/AutoComplete/types.js.map +1 -1
  23. package/Avatar/index.d.ts +1 -1
  24. package/Avatar/index.js +1 -1
  25. package/Avatar/index.js.map +1 -1
  26. package/Button/Button.js +2 -2
  27. package/Button/Button.js.map +1 -1
  28. package/Button/ButtonDefault.d.ts +1 -1
  29. package/Button/ButtonDefault.js +1 -1
  30. package/Button/ButtonDefault.js.map +1 -1
  31. package/Button/ButtonFloating.d.ts +1 -1
  32. package/Button/ButtonFloating.js +1 -1
  33. package/Button/ButtonFloating.js.map +1 -1
  34. package/Button/ButtonIcon.js +1 -1
  35. package/Button/ButtonIcon.js.map +1 -1
  36. package/Button/ButtonPrimary.d.ts +1 -1
  37. package/Button/ButtonPrimary.js +1 -1
  38. package/Button/ButtonPrimary.js.map +1 -1
  39. package/Button/ButtonSecondary.d.ts +1 -1
  40. package/Button/ButtonSecondary.js +1 -1
  41. package/Button/ButtonSecondary.js.map +1 -1
  42. package/Button/IconButton.d.ts +1 -1
  43. package/Button/IconButton.js +1 -1
  44. package/Button/IconButton.js.map +1 -1
  45. package/Button/index.d.ts +8 -8
  46. package/Button/index.js +8 -8
  47. package/Button/index.js.map +1 -1
  48. package/Button/useMappedButtonProps.d.ts +3 -4
  49. package/Button/useMappedButtonProps.js +1 -1
  50. package/Button/useMappedButtonProps.js.map +1 -1
  51. package/Carousel/index.d.ts +1 -1
  52. package/Carousel/index.js +1 -1
  53. package/Carousel/index.js.map +1 -1
  54. package/Checkbox/Checkbox.d.ts +1 -1
  55. package/Checkbox/Checkbox.js.map +1 -1
  56. package/Checkbox/CheckboxGroup.d.ts +1 -1
  57. package/Checkbox/CheckboxGroup.js.map +1 -1
  58. package/Checkbox/index.d.ts +2 -2
  59. package/Checkbox/index.js +2 -2
  60. package/Checkbox/index.js.map +1 -1
  61. package/Chips/Chip.js +1 -1
  62. package/Chips/Chip.js.map +1 -1
  63. package/Chips/Chips.d.ts +1 -1
  64. package/Chips/Chips.js +1 -1
  65. package/Chips/Chips.js.map +1 -1
  66. package/Chips/index.d.ts +2 -2
  67. package/Chips/index.js +2 -2
  68. package/Chips/index.js.map +1 -1
  69. package/CodeEditor/CodeEditor.d.ts +1 -1
  70. package/CodeEditor/CodeEditor.js.map +1 -1
  71. package/CodeEditor/index.d.ts +1 -1
  72. package/CodeEditor/index.js +1 -1
  73. package/CodeEditor/index.js.map +1 -1
  74. package/ColorPicker/ColorPicker.d.ts +1 -1
  75. package/ColorPicker/ColorPicker.js.map +1 -1
  76. package/ColorPicker/index.d.ts +1 -1
  77. package/ColorPicker/index.js +1 -1
  78. package/ColorPicker/index.js.map +1 -1
  79. package/ConfirmationDialog/ConfirmationDialog.js +3 -3
  80. package/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
  81. package/ConfirmationDialog/index.d.ts +2 -2
  82. package/ConfirmationDialog/index.js +2 -2
  83. package/ConfirmationDialog/index.js.map +1 -1
  84. package/ConfirmationDialog/withConfirmation.js +1 -1
  85. package/ConfirmationDialog/withConfirmation.js.map +1 -1
  86. package/DataTable/index.d.ts +1 -1
  87. package/DataTable/index.js +1 -1
  88. package/DataTable/index.js.map +1 -1
  89. package/DateTime/index.d.ts +1 -1
  90. package/DateTime/index.js +1 -1
  91. package/DateTime/index.js.map +1 -1
  92. package/Dialog/Dialog.js +4 -4
  93. package/Dialog/Dialog.js.map +1 -1
  94. package/Dialog/index.d.ts +1 -1
  95. package/Dialog/index.js +1 -1
  96. package/Dialog/index.js.map +1 -1
  97. package/Drawer/Drawer.js +1 -1
  98. package/Drawer/Drawer.js.map +1 -1
  99. package/Drawer/index.d.ts +1 -1
  100. package/Drawer/index.js +1 -1
  101. package/Drawer/index.js.map +1 -1
  102. package/Elevation/Elevation.js +1 -1
  103. package/Elevation/Elevation.js.map +1 -1
  104. package/Elevation/index.d.ts +1 -1
  105. package/Elevation/index.js +1 -1
  106. package/Elevation/index.js.map +1 -1
  107. package/FormElementMessage/index.d.ts +1 -1
  108. package/FormElementMessage/index.js +1 -1
  109. package/FormElementMessage/index.js.map +1 -1
  110. package/FullName/index.d.ts +1 -1
  111. package/FullName/index.js +1 -1
  112. package/FullName/index.js.map +1 -1
  113. package/Grid/Grid.js +1 -1
  114. package/Grid/Grid.js.map +1 -1
  115. package/Grid/index.d.ts +1 -1
  116. package/Grid/index.js +1 -1
  117. package/Grid/index.js.map +1 -1
  118. package/Helpers/index.d.ts +1 -1
  119. package/Helpers/index.js +1 -1
  120. package/Helpers/index.js.map +1 -1
  121. package/Icon/Icon.js +1 -1
  122. package/Icon/Icon.js.map +1 -1
  123. package/Icon/index.d.ts +1 -1
  124. package/Icon/index.js +1 -1
  125. package/Icon/index.js.map +1 -1
  126. package/ImageEditor/index.d.ts +1 -1
  127. package/ImageEditor/index.js +1 -1
  128. package/ImageEditor/index.js.map +1 -1
  129. package/ImageUpload/ImageEditorDialog.d.ts +1 -1
  130. package/ImageUpload/ImageEditorDialog.js.map +1 -1
  131. package/ImageUpload/MultiImageUpload.d.ts +1 -1
  132. package/ImageUpload/MultiImageUpload.js.map +1 -1
  133. package/ImageUpload/SingleImageUpload.d.ts +1 -1
  134. package/ImageUpload/SingleImageUpload.js.map +1 -1
  135. package/ImageUpload/index.d.ts +4 -4
  136. package/ImageUpload/index.js +4 -4
  137. package/ImageUpload/index.js.map +1 -1
  138. package/Input/Input.d.ts +1 -1
  139. package/Input/Input.js +1 -1
  140. package/Input/Input.js.map +1 -1
  141. package/Input/index.d.ts +1 -1
  142. package/Input/index.js +1 -1
  143. package/Input/index.js.map +1 -1
  144. package/List/DataList/DataList.d.ts +2 -2
  145. package/List/DataList/DataList.js.map +1 -1
  146. package/List/DataList/DataListModalOverlay/index.d.ts +2 -3
  147. package/List/DataList/DataListWithSections.d.ts +3 -3
  148. package/List/DataList/DataListWithSections.js.map +1 -1
  149. package/List/DataList/icons/index.d.ts +1 -1
  150. package/List/DataList/icons/index.js +1 -1
  151. package/List/DataList/icons/index.js.map +1 -1
  152. package/List/DataList/index.d.ts +3 -3
  153. package/List/DataList/index.js +3 -3
  154. package/List/DataList/index.js.map +1 -1
  155. package/List/DataList/types.d.ts +1 -1
  156. package/List/DataList/types.js +1 -1
  157. package/List/DataList/types.js.map +1 -1
  158. package/List/List/ListItemAction.js +1 -1
  159. package/List/List/ListItemAction.js.map +1 -1
  160. package/List/List/ListItemGraphic.js +1 -1
  161. package/List/List/ListItemGraphic.js.map +1 -1
  162. package/List/List/ListItemText.js +1 -1
  163. package/List/List/ListItemText.js.map +1 -1
  164. package/List/List/index.d.ts +6 -6
  165. package/List/List/index.js +6 -6
  166. package/List/List/index.js.map +1 -1
  167. package/List/index.d.ts +4 -4
  168. package/List/index.js +4 -4
  169. package/List/index.js.map +1 -1
  170. package/Menu/Menu.js +8 -5
  171. package/Menu/Menu.js.map +1 -1
  172. package/Menu/index.d.ts +1 -1
  173. package/Menu/index.js +1 -1
  174. package/Menu/index.js.map +1 -1
  175. package/Mosaic/index.d.ts +1 -1
  176. package/Mosaic/index.js +1 -1
  177. package/Mosaic/index.js.map +1 -1
  178. package/Progress/index.d.ts +1 -1
  179. package/Progress/index.js +1 -1
  180. package/Progress/index.js.map +1 -1
  181. package/README.md +6 -21
  182. package/Radio/Radio.d.ts +1 -1
  183. package/Radio/Radio.js +1 -1
  184. package/Radio/Radio.js.map +1 -1
  185. package/Radio/RadioGroup.d.ts +1 -1
  186. package/Radio/RadioGroup.js.map +1 -1
  187. package/Radio/index.d.ts +2 -2
  188. package/Radio/index.js +2 -2
  189. package/Radio/index.js.map +1 -1
  190. package/Ripple/index.d.ts +1 -1
  191. package/Ripple/index.js +1 -1
  192. package/Ripple/index.js.map +1 -1
  193. package/Scrollbar/index.d.ts +1 -1
  194. package/Scrollbar/index.js +1 -1
  195. package/Scrollbar/index.js.map +1 -1
  196. package/Select/Select.d.ts +1 -1
  197. package/Select/Select.js.map +1 -1
  198. package/Select/index.d.ts +1 -1
  199. package/Select/index.js +1 -1
  200. package/Select/index.js.map +1 -1
  201. package/Skeleton/index.d.ts +1 -1
  202. package/Skeleton/index.js +1 -1
  203. package/Skeleton/index.js.map +1 -1
  204. package/Slider/Slider.d.ts +1 -1
  205. package/Slider/Slider.js +1 -1
  206. package/Slider/Slider.js.map +1 -1
  207. package/Slider/index.d.ts +1 -1
  208. package/Slider/index.js +1 -1
  209. package/Slider/index.js.map +1 -1
  210. package/Snackbar/index.d.ts +1 -1
  211. package/Snackbar/index.js +1 -1
  212. package/Snackbar/index.js.map +1 -1
  213. package/Switch/Switch.d.ts +1 -1
  214. package/Switch/Switch.js.map +1 -1
  215. package/Switch/index.d.ts +1 -1
  216. package/Switch/index.js +1 -1
  217. package/Switch/index.js.map +1 -1
  218. package/Tabs/Tab.js +2 -2
  219. package/Tabs/Tab.js.map +1 -1
  220. package/Tabs/Tabs.d.ts +1 -1
  221. package/Tabs/Tabs.js.map +1 -1
  222. package/Tabs/index.d.ts +2 -2
  223. package/Tabs/index.js +2 -2
  224. package/Tabs/index.js.map +1 -1
  225. package/Tags/Tags.d.ts +1 -1
  226. package/Tags/Tags.js.map +1 -1
  227. package/Tags/index.d.ts +1 -1
  228. package/Tags/index.js +1 -1
  229. package/Tags/index.js.map +1 -1
  230. package/Tooltip/index.d.ts +1 -1
  231. package/Tooltip/index.js +1 -1
  232. package/Tooltip/index.js.map +1 -1
  233. package/TopAppBar/TopAppBar.js +6 -2
  234. package/TopAppBar/TopAppBar.js.map +1 -1
  235. package/TopAppBar/TopAppBarPrimary.d.ts +1 -1
  236. package/TopAppBar/TopAppBarPrimary.js +1 -1
  237. package/TopAppBar/TopAppBarPrimary.js.map +1 -1
  238. package/TopAppBar/TopAppBarSecondary.d.ts +1 -1
  239. package/TopAppBar/TopAppBarSecondary.js +1 -1
  240. package/TopAppBar/TopAppBarSecondary.js.map +1 -1
  241. package/TopAppBar/index.d.ts +7 -7
  242. package/TopAppBar/index.js +7 -7
  243. package/TopAppBar/index.js.map +1 -1
  244. package/Typography/index.d.ts +1 -1
  245. package/Typography/index.js +1 -1
  246. package/Typography/index.js.map +1 -1
  247. package/package.json +13 -23
  248. package/RichTextEditor/RichTextEditor.d.ts +0 -12
  249. package/RichTextEditor/RichTextEditor.js +0 -17
  250. package/RichTextEditor/RichTextEditor.js.map +0 -1
  251. package/RichTextEditor/index.d.ts +0 -4
  252. package/RichTextEditor/index.js +0 -4
  253. package/RichTextEditor/index.js.map +0 -1
  254. package/Tabs/README.md +0 -19
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import type { ListItem } from "../List";
3
- import { type AccordionItem } from "./AccordionItem";
2
+ import type { ListItem } from "../List/index.js";
3
+ import { type AccordionItem } from "./AccordionItem.js";
4
4
  interface AccordionProps {
5
5
  /**
6
6
  * Element displayed when accordion is expanded.
@@ -1 +1 @@
1
- {"version":3,"names":["React","Accordion","AdminUiAccordion","props","createElement","children"],"sources":["Accordion.tsx"],"sourcesContent":["import React from \"react\";\nimport { Accordion as AdminUiAccordion } from \"@webiny/admin-ui\";\nimport type { ListItem } from \"../List\";\nimport { type AccordionItem } from \"./AccordionItem\";\n\ninterface AccordionProps {\n /**\n * Element displayed when accordion is expanded.\n */\n children:\n | React.ReactElement<typeof ListItem>[]\n | React.ReactElement<typeof AccordionItem>\n | React.ReactElement<typeof AccordionItem>[];\n\n /**\n * Elevation number, default set to 2\n */\n elevation?: number;\n\n /**\n * Append a class name\n */\n className?: string;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Accordion` component from the `@webiny/admin-ui` package instead.\n */\nconst Accordion = (props: AccordionProps) => {\n return <AdminUiAccordion>{props.children}</AdminUiAccordion>;\n};\n\nexport { Accordion, type AccordionProps };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,IAAIC,gBAAgB,QAAQ,kBAAkB;AAwBhE;AACA;AACA;AACA;AACA,MAAMD,SAAS,GAAIE,KAAqB,IAAK;EACzC,oBAAOH,KAAA,CAAAI,aAAA,CAACF,gBAAgB,QAAEC,KAAK,CAACE,QAA2B,CAAC;AAChE,CAAC;AAED,SAASJ,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["React","Accordion","AdminUiAccordion","props","createElement","children"],"sources":["Accordion.tsx"],"sourcesContent":["import React from \"react\";\nimport { Accordion as AdminUiAccordion } from \"@webiny/admin-ui\";\nimport type { ListItem } from \"../List/index.js\";\nimport { type AccordionItem } from \"./AccordionItem.js\";\n\ninterface AccordionProps {\n /**\n * Element displayed when accordion is expanded.\n */\n children:\n | React.ReactElement<typeof ListItem>[]\n | React.ReactElement<typeof AccordionItem>\n | React.ReactElement<typeof AccordionItem>[];\n\n /**\n * Elevation number, default set to 2\n */\n elevation?: number;\n\n /**\n * Append a class name\n */\n className?: string;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Accordion` component from the `@webiny/admin-ui` package instead.\n */\nconst Accordion = (props: AccordionProps) => {\n return <AdminUiAccordion>{props.children}</AdminUiAccordion>;\n};\n\nexport { Accordion, type AccordionProps };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,IAAIC,gBAAgB,QAAQ,kBAAkB;AAwBhE;AACA;AACA;AACA;AACA,MAAMD,SAAS,GAAIE,KAAqB,IAAK;EACzC,oBAAOH,KAAA,CAAAI,aAAA,CAACF,gBAAgB,QAAEC,KAAK,CAACE,QAA2B,CAAC;AAChE,CAAC;AAED,SAASJ,SAAS","ignoreList":[]}
@@ -31,79 +31,79 @@ export interface AccordionItemProps {
31
31
  * Please use the `Accordion.Item` component from the `@webiny/admin-ui` package instead.
32
32
  */
33
33
  export declare const AccordionItem: ((props: AccordionItemProps) => React.JSX.Element) & {
34
- Divider: ((props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element) & {
35
- original: (props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element;
34
+ Divider: ((props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element) & {
35
+ original: (props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element;
36
36
  originalName: string;
37
37
  displayName: string;
38
38
  } & {
39
- original: ((props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element) & {
40
- original: (props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element;
39
+ original: ((props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element) & {
40
+ original: (props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element;
41
41
  originalName: string;
42
42
  displayName: string;
43
43
  };
44
44
  originalName: string;
45
45
  displayName: string;
46
46
  } & {
47
- createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<((props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element) & {
48
- original: (props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element;
47
+ createDecorator: (decorator: import("../../../react-composition/src").ComponentDecorator<((props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element) & {
48
+ original: (props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element;
49
49
  originalName: string;
50
50
  displayName: string;
51
51
  }>) => (props: unknown) => React.JSX.Element;
52
52
  };
53
- Action: (({ onClick, ...props }: import("@webiny/admin-ui/Button/IconButton").IconButtonProps) => React.JSX.Element) & {
54
- original: ({ onClick, ...props }: import("@webiny/admin-ui/Button/IconButton").IconButtonProps) => React.JSX.Element;
53
+ Action: (({ onClick, ...props }: import("@webiny/admin-ui/Accordion/components/AccordionItemAction").AccordionItemActionProps) => React.JSX.Element) & {
54
+ original: ({ onClick, ...props }: import("@webiny/admin-ui/Accordion/components/AccordionItemAction").AccordionItemActionProps) => React.JSX.Element;
55
55
  originalName: string;
56
56
  displayName: string;
57
57
  } & {
58
- original: (({ onClick, ...props }: import("@webiny/admin-ui/Button/IconButton").IconButtonProps) => React.JSX.Element) & {
59
- original: ({ onClick, ...props }: import("@webiny/admin-ui/Button/IconButton").IconButtonProps) => React.JSX.Element;
58
+ original: (({ onClick, ...props }: import("@webiny/admin-ui/Accordion/components/AccordionItemAction").AccordionItemActionProps) => React.JSX.Element) & {
59
+ original: ({ onClick, ...props }: import("@webiny/admin-ui/Accordion/components/AccordionItemAction").AccordionItemActionProps) => React.JSX.Element;
60
60
  originalName: string;
61
61
  displayName: string;
62
62
  };
63
63
  originalName: string;
64
64
  displayName: string;
65
65
  } & {
66
- createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ onClick, ...props }: import("@webiny/admin-ui/Button/IconButton").IconButtonProps) => React.JSX.Element) & {
67
- original: ({ onClick, ...props }: import("@webiny/admin-ui/Button/IconButton").IconButtonProps) => React.JSX.Element;
66
+ createDecorator: (decorator: import("../../../react-composition/src").ComponentDecorator<(({ onClick, ...props }: import("@webiny/admin-ui/Accordion/components/AccordionItemAction").AccordionItemActionProps) => React.JSX.Element) & {
67
+ original: ({ onClick, ...props }: import("@webiny/admin-ui/Accordion/components/AccordionItemAction").AccordionItemActionProps) => React.JSX.Element;
68
68
  originalName: string;
69
69
  displayName: string;
70
70
  }>) => (props: unknown) => React.JSX.Element;
71
71
  } & {
72
- Separator: ((props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element) & {
73
- original: (props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element;
72
+ Separator: ((props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element) & {
73
+ original: (props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element;
74
74
  originalName: string;
75
75
  displayName: string;
76
76
  } & {
77
- original: ((props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element) & {
78
- original: (props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element;
77
+ original: ((props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element) & {
78
+ original: (props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element;
79
79
  originalName: string;
80
80
  displayName: string;
81
81
  };
82
82
  originalName: string;
83
83
  displayName: string;
84
84
  } & {
85
- createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<((props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element) & {
86
- original: (props: import("@webiny/admin-ui/Separator/Separator").SeparatorProps) => React.JSX.Element;
85
+ createDecorator: (decorator: import("../../../react-composition/src").ComponentDecorator<((props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element) & {
86
+ original: (props: import("@webiny/admin-ui").SeparatorProps) => React.JSX.Element;
87
87
  originalName: string;
88
88
  displayName: string;
89
89
  }>) => (props: unknown) => React.JSX.Element;
90
90
  };
91
91
  };
92
- Icon: ((props: import("@webiny/admin-ui/Icon/Icon").IconProps) => React.JSX.Element) & {
93
- original: (props: import("@webiny/admin-ui/Icon/Icon").IconProps) => React.JSX.Element;
92
+ Icon: ((props: import("@webiny/admin-ui").IconProps) => React.JSX.Element) & {
93
+ original: (props: import("@webiny/admin-ui").IconProps) => React.JSX.Element;
94
94
  originalName: string;
95
95
  displayName: string;
96
96
  } & {
97
- original: ((props: import("@webiny/admin-ui/Icon/Icon").IconProps) => React.JSX.Element) & {
98
- original: (props: import("@webiny/admin-ui/Icon/Icon").IconProps) => React.JSX.Element;
97
+ original: ((props: import("@webiny/admin-ui").IconProps) => React.JSX.Element) & {
98
+ original: (props: import("@webiny/admin-ui").IconProps) => React.JSX.Element;
99
99
  originalName: string;
100
100
  displayName: string;
101
101
  };
102
102
  originalName: string;
103
103
  displayName: string;
104
104
  } & {
105
- createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<((props: import("@webiny/admin-ui/Icon/Icon").IconProps) => React.JSX.Element) & {
106
- original: (props: import("@webiny/admin-ui/Icon/Icon").IconProps) => React.JSX.Element;
105
+ createDecorator: (decorator: import("../../../react-composition/src").ComponentDecorator<((props: import("@webiny/admin-ui").IconProps) => React.JSX.Element) & {
106
+ original: (props: import("@webiny/admin-ui").IconProps) => React.JSX.Element;
107
107
  originalName: string;
108
108
  displayName: string;
109
109
  }>) => (props: unknown) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React, { useMemo, useEffect, useState } from "react";
2
2
  import { Accordion as AdminUiAccordion } from "@webiny/admin-ui";
3
- import { withStaticProps } from "@webiny/admin-ui/utils";
3
+ import { withStaticProps } from "@webiny/admin-ui/utils.js";
4
4
  const AccordionItemBase = props => {
5
5
  const [open, setOpen] = useState(props.open ?? false);
6
6
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","useEffect","useState","Accordion","AdminUiAccordion","withStaticProps","AccordionItemBase","props","open","setOpen","icon","createElement","Item","Icon","label","title","Object","assign","onOpenChange","children","AccordionItem","Divider","Action","Separator","Actions","Fragment","Element"],"sources":["AccordionItem.tsx"],"sourcesContent":["import React, { useMemo, useEffect, useState } from \"react\";\nimport { Accordion as AdminUiAccordion } from \"@webiny/admin-ui\";\nimport { withStaticProps } from \"@webiny/admin-ui/utils\";\n\nexport interface AccordionItemProps {\n /**\n * Element displayed when accordion is expanded.\n */\n children: React.ReactNode;\n\n /**\n * @deprecated This prop no longer has any effect.\n * Elevation number, default set to 2\n */\n elevation?: number;\n\n /**\n * Append a class name\n */\n className?: string;\n\n value?: string;\n\n title?: React.ReactNode;\n\n description?: React.ReactNode;\n\n open?: boolean;\n\n interactive?: boolean;\n\n handle?: React.ReactNode;\n\n actions?: React.ReactNode;\n\n icon?: React.ReactNode;\n\n /**\n * @deprecated This prop no longer has any effect.\n */\n iconClassName?: string;\n}\n\nconst AccordionItemBase = (props: AccordionItemProps) => {\n const [open, setOpen] = useState<boolean>(props.open ?? false);\n\n useEffect(() => {\n setOpen(!!props.open);\n }, [props.open]);\n\n const icon = useMemo(() => {\n return props.icon ? (\n <AdminUiAccordion.Item.Icon\n icon={props.icon}\n label={typeof props.title === \"string\" ? props.title : \"\"}\n />\n ) : null;\n }, [props.icon]);\n\n return (\n <AdminUiAccordion.Item\n {...props}\n open={open}\n onOpenChange={open => setOpen(open)}\n icon={icon}\n title={props.title || \"\"}\n >\n {props.children as React.ReactElement}\n </AdminUiAccordion.Item>\n );\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Accordion.Item` component from the `@webiny/admin-ui` package instead.\n */\nexport const AccordionItem = withStaticProps(AccordionItemBase, {\n Divider: AdminUiAccordion.Item.Action.Separator,\n Action: AdminUiAccordion.Item.Action,\n Icon: AdminUiAccordion.Item.Icon,\n Actions: (props: any) => <>{props.children}</>,\n Element: (props: any) => <div data-role={\"accordion-element\"} {...props} />\n});\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3D,SAASC,SAAS,IAAIC,gBAAgB,QAAQ,kBAAkB;AAChE,SAASC,eAAe,QAAQ,wBAAwB;AAyCxD,MAAMC,iBAAiB,GAA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A,CAAA0B,QAAA,QAAGlB,KAAK,CAACY,QAAW,CAAC;EAC9CO,OAAO,EAAGnB,KAAU,iBAAKR,KAAA,CAAAY,aAAA,QAAAK,MAAA,CAAAC,MAAA;IAAK,aAAW;EAAoB,GAAKV,KAAK,CAAG;AAC9E,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","useEffect","useState","Accordion","AdminUiAccordion","withStaticProps","AccordionItemBase","props","open","setOpen","icon","createElement","Item","Icon","label","title","Object","assign","onOpenChange","children","AccordionItem","Divider","Action","Separator","Actions","Fragment","Element"],"sources":["AccordionItem.tsx"],"sourcesContent":["import React, { useMemo, useEffect, useState } from \"react\";\nimport { Accordion as AdminUiAccordion } from \"@webiny/admin-ui\";\nimport { withStaticProps } from \"@webiny/admin-ui/utils.js\";\n\nexport interface AccordionItemProps {\n /**\n * Element displayed when accordion is expanded.\n */\n children: React.ReactNode;\n\n /**\n * @deprecated This prop no longer has any effect.\n * Elevation number, default set to 2\n */\n elevation?: number;\n\n /**\n * Append a class name\n */\n className?: string;\n\n value?: string;\n\n title?: React.ReactNode;\n\n description?: React.ReactNode;\n\n open?: boolean;\n\n interactive?: boolean;\n\n handle?: React.ReactNode;\n\n actions?: React.ReactNode;\n\n icon?: React.ReactNode;\n\n /**\n * @deprecated This prop no longer has any effect.\n */\n iconClassName?: string;\n}\n\nconst AccordionItemBase = (props: AccordionItemProps) => {\n const [open, setOpen] = useState<boolean>(props.open ?? false);\n\n useEffect(() => {\n setOpen(!!props.open);\n }, [props.open]);\n\n const icon = useMemo(() => {\n return props.icon ? (\n <AdminUiAccordion.Item.Icon\n icon={props.icon}\n label={typeof props.title === \"string\" ? props.title : \"\"}\n />\n ) : null;\n }, [props.icon]);\n\n return (\n <AdminUiAccordion.Item\n {...props}\n open={open}\n onOpenChange={open => setOpen(open)}\n icon={icon}\n title={props.title || \"\"}\n >\n {props.children as React.ReactElement}\n </AdminUiAccordion.Item>\n );\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Accordion.Item` component from the `@webiny/admin-ui` package instead.\n */\nexport const AccordionItem = withStaticProps(AccordionItemBase, {\n Divider: AdminUiAccordion.Item.Action.Separator,\n Action: AdminUiAccordion.Item.Action,\n Icon: AdminUiAccordion.Item.Icon,\n Actions: (props: any) => <>{props.children}</>,\n Element: (props: any) => <div data-role={\"accordion-element\"} {...props} />\n});\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3D,SAASC,SAAS,IAAIC,gBAAgB,QAAQ,kBAAkB;AAChE,SAASC,eAAe,QAAQ,2BAA2B;AAyC3D,MAAMC,iBAAiB,GAAIC,KAAyB,IAAK;EACrD,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAGP,QAAQ,CAAUK,KAAK,CAACC,IAAI,IAAI,KAAK,CAAC;EAE9DP,SAAS,CAAC,MAAM;IACZQ,OAAO,CAAC,CAAC,CAACF,KAAK,CAACC,IAAI,CAAC;EACzB,CAAC,EAAE,CAACD,KAAK,CAACC,IAAI,CAAC,CAAC;EAEhB,MAAME,IAAI,GAAGV,OAAO,CAAC,MAAM;IACvB,OAAOO,KAAK,CAACG,IAAI,gBACbX,KAAA,CAAAY,aAAA,CAACP,gBAAgB,CAACQ,IAAI,CAACC,IAAI;MACvBH,IAAI,EAAEH,KAAK,CAACG,IAAK;MACjBI,KAAK,EAAE,OAAOP,KAAK,CAACQ,KAAK,KAAK,QAAQ,GAAGR,KAAK,CAACQ,KAAK,GAAG;IAAG,CAC7D,CAAC,GACF,IAAI;EACZ,CAAC,EAAE,CAACR,KAAK,CAACG,IAAI,CAAC,CAAC;EAEhB,oBACIX,KAAA,CAAAY,aAAA,CAACP,gBAAgB,CAACQ,IAAI,EAAAI,MAAA,CAAAC,MAAA,KACdV,KAAK;IACTC,IAAI,EAAEA,IAAK;IACXU,YAAY,EAAEV,IAAI,IAAIC,OAAO,CAACD,IAAI,CAAE;IACpCE,IAAI,EAAEA,IAAK;IACXK,KAAK,EAAER,KAAK,CAACQ,KAAK,IAAI;EAAG,IAExBR,KAAK,CAACY,QACY,CAAC;AAEhC,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAGf,eAAe,CAACC,iBAAiB,EAAE;EAC5De,OAAO,EAAEjB,gBAAgB,CAACQ,IAAI,CAACU,MAAM,CAACC,SAAS;EAC/CD,MAAM,EAAElB,gBAAgB,CAACQ,IAAI,CAACU,MAAM;EACpCT,IAAI,EAAET,gBAAgB,CAACQ,IAAI,CAACC,IAAI;EAChCW,OAAO,EAAGjB,KAAU,iBAAKR,KAAA,CAAAY,aAAA,CAAAZ,KAAA,CAAA0B,QAAA,QAAGlB,KAAK,CAACY,QAAW,CAAC;EAC9CO,OAAO,EAAGnB,KAAU,iBAAKR,KAAA,CAAAY,aAAA,QAAAK,MAAA,CAAAC,MAAA;IAAK,aAAW;EAAoB,GAAKV,KAAK,CAAG;AAC9E,CAAC,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { IconButton } from "../Button";
3
- import { Tooltip } from "../Tooltip";
2
+ import { IconButton } from "../Button/index.js";
3
+ import { Tooltip } from "../Tooltip/index.js";
4
4
  export const AccordionItemActions = ({
5
5
  children
6
6
  }) => {
@@ -1 +1 @@
1
- {"version":3,"names":["React","IconButton","Tooltip","AccordionItemActions","children","createElement","Fragment","AccordionItemAction","icon","onClick","tooltip","disabled","iconButton","e","stopPropagation","placement","content","AccordionItemElement","element"],"sources":["AccordionItemActions.tsx"],"sourcesContent":["import React from \"react\";\nimport { IconButton } from \"~/Button\";\nimport { Tooltip } from \"~/Tooltip\";\n\ninterface AccordionItemActionsProps {\n children: React.ReactNode;\n}\n\nexport const AccordionItemActions = ({ children }: AccordionItemActionsProps) => {\n return <>{children}</>;\n};\n\nexport interface AccordionItemActionProps {\n icon: JSX.Element;\n onClick: () => void;\n tooltip?: string;\n disabled?: boolean;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Accordion.Item.Action` component from the `@webiny/admin-ui` package instead.\n */\nexport const AccordionItemAction = ({\n icon,\n onClick,\n tooltip,\n disabled\n}: AccordionItemActionProps) => {\n const iconButton = (\n <IconButton\n disabled={disabled}\n icon={icon}\n onClick={e => {\n e.stopPropagation();\n onClick();\n }}\n />\n );\n\n if (!tooltip) {\n return iconButton;\n }\n\n return (\n <Tooltip placement={\"bottom\"} content={tooltip}>\n {iconButton}\n </Tooltip>\n );\n};\n\nexport interface AccordionItemElementProps {\n element: JSX.Element;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Accordion.Item.Action` component from the `@webiny/admin-ui` package instead.\n */\nexport const AccordionItemElement = ({ element }: AccordionItemElementProps) => {\n return <div onClick={e => e.stopPropagation()}>{element}</div>;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU;AACnB,SAASC,OAAO;AAMhB,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EAAEC;AAAoC,CAAC,KAAK;EAC7E,oBAAOJ,KAAA,CAAAK,aAAA,CAAAL,KAAA,CAAAM,QAAA,QAAGF,QAAW,CAAC;AAC1B,CAAC;AASD;AACA;AACA;AACA;AACA,OAAO,MAAMG,mBAAmB,GAAGA,CAAC;EAChCC,IAAI;EACJC,OAAO;EACPC,OAAO;EACPC;AACsB,CAAC,KAAK;EAC5B,MAAMC,UAAU,gBACZZ,KAAA,CAAAK,aAAA,CAACJ,UAAU;IACPU,QAAQ,EAAEA,QAAS;IACnBH,IAAI,EAAEA,IAAK;IACXC,OAAO,EAAEI,CAAC,IAAI;MACVA,CAAC,CAACC,eAAe,CAAC,CAAC;MACnBL,OAAO,CAAC,CAAC;IACb;EAAE,CACL,CACJ;EAED,IAAI,CAACC,OAAO,EAAE;IACV,OAAOE,UAAU;EACrB;EAEA,oBACIZ,KAAA,CAAAK,aAAA,CAACH,OAAO;IAACa,SAAS,EAAE,QAAS;IAACC,OAAO,EAAEN;EAAQ,GAC1CE,UACI,CAAC;AAElB,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMK,oBAAoB,GAAGA,CAAC;EAAEC;AAAmC,CAAC,KAAK;EAC5E,oBAAOlB,KAAA,CAAAK,aAAA;IAAKI,OAAO,EAAEI,CAAC,IAAIA,CAAC,CAACC,eAAe,CAAC;EAAE,GAAEI,OAAa,CAAC;AAClE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","IconButton","Tooltip","AccordionItemActions","children","createElement","Fragment","AccordionItemAction","icon","onClick","tooltip","disabled","iconButton","e","stopPropagation","placement","content","AccordionItemElement","element"],"sources":["AccordionItemActions.tsx"],"sourcesContent":["import React from \"react\";\nimport { IconButton } from \"~/Button/index.js\";\nimport { Tooltip } from \"~/Tooltip/index.js\";\n\ninterface AccordionItemActionsProps {\n children: React.ReactNode;\n}\n\nexport const AccordionItemActions = ({ children }: AccordionItemActionsProps) => {\n return <>{children}</>;\n};\n\nexport interface AccordionItemActionProps {\n icon: JSX.Element;\n onClick: () => void;\n tooltip?: string;\n disabled?: boolean;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Accordion.Item.Action` component from the `@webiny/admin-ui` package instead.\n */\nexport const AccordionItemAction = ({\n icon,\n onClick,\n tooltip,\n disabled\n}: AccordionItemActionProps) => {\n const iconButton = (\n <IconButton\n disabled={disabled}\n icon={icon}\n onClick={e => {\n e.stopPropagation();\n onClick();\n }}\n />\n );\n\n if (!tooltip) {\n return iconButton;\n }\n\n return (\n <Tooltip placement={\"bottom\"} content={tooltip}>\n {iconButton}\n </Tooltip>\n );\n};\n\nexport interface AccordionItemElementProps {\n element: JSX.Element;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Accordion.Item.Action` component from the `@webiny/admin-ui` package instead.\n */\nexport const AccordionItemElement = ({ element }: AccordionItemElementProps) => {\n return <div onClick={e => e.stopPropagation()}>{element}</div>;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU;AACnB,SAASC,OAAO;AAMhB,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EAAEC;AAAoC,CAAC,KAAK;EAC7E,oBAAOJ,KAAA,CAAAK,aAAA,CAAAL,KAAA,CAAAM,QAAA,QAAGF,QAAW,CAAC;AAC1B,CAAC;AASD;AACA;AACA;AACA;AACA,OAAO,MAAMG,mBAAmB,GAAGA,CAAC;EAChCC,IAAI;EACJC,OAAO;EACPC,OAAO;EACPC;AACsB,CAAC,KAAK;EAC5B,MAAMC,UAAU,gBACZZ,KAAA,CAAAK,aAAA,CAACJ,UAAU;IACPU,QAAQ,EAAEA,QAAS;IACnBH,IAAI,EAAEA,IAAK;IACXC,OAAO,EAAEI,CAAC,IAAI;MACVA,CAAC,CAACC,eAAe,CAAC,CAAC;MACnBL,OAAO,CAAC,CAAC;IACb;EAAE,CACL,CACJ;EAED,IAAI,CAACC,OAAO,EAAE;IACV,OAAOE,UAAU;EACrB;EAEA,oBACIZ,KAAA,CAAAK,aAAA,CAACH,OAAO;IAACa,SAAS,EAAE,QAAS;IAACC,OAAO,EAAEN;EAAQ,GAC1CE,UACI,CAAC;AAElB,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMK,oBAAoB,GAAGA,CAAC;EAAEC;AAAmC,CAAC,KAAK;EAC5E,oBAAOlB,KAAA,CAAAK,aAAA;IAAKI,OAAO,EAAEI,CAAC,IAAIA,CAAC,CAACC,eAAe,CAAC;EAAE,GAAEI,OAAa,CAAC;AAClE,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export * from "./Accordion";
2
- export * from "./AccordionItem";
1
+ export * from "./Accordion.js";
2
+ export * from "./AccordionItem.js";
@@ -1,4 +1,4 @@
1
- export * from "./Accordion";
2
- export * from "./AccordionItem";
1
+ export * from "./Accordion.js";
2
+ export * from "./AccordionItem.js";
3
3
 
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Accordion\";\nexport * from \"./AccordionItem\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Accordion.js\";\nexport * from \"./AccordionItem.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
package/Alert/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./Alert";
1
+ export * from "./Alert.js";
package/Alert/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Alert";
1
+ export * from "./Alert.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Alert\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Alert.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { AutoCompleteBaseProps } from "./types";
2
+ import type { AutoCompleteBaseProps } from "./types.js";
3
3
  export declare enum Placement {
4
4
  top = "top",
5
5
  bottom = "bottom"
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useMemo","AutoComplete","AdminAutoComplete","Placement","size","onChange","valueProp","textProp","renderItem","noResultFound","useSimpleValues","onInput","props","inputSize","options","map","option","label","value","disabled","item","undefined","onValueChange","find","createElement","Object","assign","onValueSearch","optionRenderer","emptyMessage"],"sources":["AutoComplete.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\nimport type { AutoCompleteBaseProps } from \"./types\";\nimport { AutoComplete as AdminAutoComplete } from \"@webiny/admin-ui\";\n\nexport enum Placement {\n top = \"top\",\n bottom = \"bottom\"\n}\n\nexport interface AutoCompleteProps extends Omit<AutoCompleteBaseProps, \"onChange\"> {\n /* Placement position of dropdown menu, can be either `top` or `bottom`. */\n placement?: Placement;\n\n /* A callback that is executed each time a value is changed. */\n onChange?: (value: any, selection?: any) => void;\n\n /* If true, will show a loading spinner on the right side of the input. */\n loading?: boolean;\n\n /* A component that renders supporting UI in case of no result found. */\n noResultFound?: React.ReactNode;\n\n // Size - small, medium or large\n size?: \"small\" | \"medium\" | \"large\";\n\n // Indicates if the reset action should be displayed.\n displayResetAction?: boolean;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `AutoComplete` component from the `@webiny/admin-ui` package instead.\n */\nexport const AutoComplete = ({\n size,\n onChange,\n valueProp = \"id\",\n textProp = \"name\",\n renderItem,\n noResultFound,\n useSimpleValues,\n onInput,\n ...props\n}: AutoCompleteProps) => {\n const inputSize = useMemo(() => {\n if (size === \"medium\") {\n return \"md\";\n }\n\n return \"lg\";\n }, [size]);\n\n const options = useMemo(() => {\n return props.options.map(option => {\n if (useSimpleValues) {\n return {\n label: option,\n value: option\n };\n }\n\n return {\n label: option[textProp],\n value: option[valueProp],\n disabled: option.disabled,\n item: option\n };\n });\n }, [props.options, textProp, valueProp, useSimpleValues]);\n\n const value = useMemo(() => {\n if (!props.value) {\n return undefined;\n }\n\n if (useSimpleValues && typeof props.value === \"string\") {\n return props.value;\n }\n\n return props.value[valueProp as keyof AutoCompleteProps[\"value\"]] as string;\n }, [props.value, valueProp]);\n\n const onValueChange = useCallback(\n (value: any) => {\n const option = options.find(option => option.value === value);\n\n if (!option) {\n return;\n }\n\n onChange?.(value, option.item);\n },\n [onChange, options]\n );\n\n return (\n <AdminAutoComplete\n {...props}\n value={value}\n options={options}\n onValueChange={onValueChange}\n onValueSearch={onInput}\n size={inputSize}\n optionRenderer={renderItem}\n emptyMessage={noResultFound}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAEnD,SAASC,YAAY,IAAIC,iBAAiB,QAAQ,kBAAkB;AAEpE,WAAYC,SAAS,0BA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,KAAK,EAAEZ,SAAS,CAAC,CAAC;EAE5B,MAAMgB,aAAa,GAAGvB,WAAW,CAC5BmB,KAAU,IAAK;IACZ,MAAMF,MAAM,GAAGF,OAAO,CAACS,IAAI,CAACP,MAAM,IAAIA,MAAM,CAACE,KAAK,KAAKA,KAAK,CAAC;IAE7D,IAAI,CAACF,MAAM,EAAE;MACT;IACJ;IAEAX,QAAQ,GAAGa,KAAK,EAAEF,MAAM,CAACI,IAAI,CAAC;EAClC,CAAC,EACD,CAACf,QAAQ,EAAES,OAAO,CACtB,CAAC;EAED,oBACIhB,KAAA,CAAA0B,aAAA,CAACtB,iBAAiB,EAAAuB,MAAA,CAAAC,MAAA,KACVd,KAAK;IACTM,KAAK,EAAEA,KAAM;IACbJ,OAAO,EAAEA,OAAQ;IACjBQ,aAAa,EAAEA,aAAc;IAC7BK,aAAa,EAAEhB,OAAQ;IACvBP,IAAI,EAAES,SAAU;IAChBe,cAAc,EAAEpB,UAAW;IAC3BqB,YAAY,EAAEpB;EAAc,EAC/B,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallback","useMemo","AutoComplete","AdminAutoComplete","Placement","size","onChange","valueProp","textProp","renderItem","noResultFound","useSimpleValues","onInput","props","inputSize","options","map","option","label","value","disabled","item","undefined","onValueChange","find","createElement","Object","assign","onValueSearch","optionRenderer","emptyMessage"],"sources":["AutoComplete.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\nimport type { AutoCompleteBaseProps } from \"./types.js\";\nimport { AutoComplete as AdminAutoComplete } from \"@webiny/admin-ui\";\n\nexport enum Placement {\n top = \"top\",\n bottom = \"bottom\"\n}\n\nexport interface AutoCompleteProps extends Omit<AutoCompleteBaseProps, \"onChange\"> {\n /* Placement position of dropdown menu, can be either `top` or `bottom`. */\n placement?: Placement;\n\n /* A callback that is executed each time a value is changed. */\n onChange?: (value: any, selection?: any) => void;\n\n /* If true, will show a loading spinner on the right side of the input. */\n loading?: boolean;\n\n /* A component that renders supporting UI in case of no result found. */\n noResultFound?: React.ReactNode;\n\n // Size - small, medium or large\n size?: \"small\" | \"medium\" | \"large\";\n\n // Indicates if the reset action should be displayed.\n displayResetAction?: boolean;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `AutoComplete` component from the `@webiny/admin-ui` package instead.\n */\nexport const AutoComplete = ({\n size,\n onChange,\n valueProp = \"id\",\n textProp = \"name\",\n renderItem,\n noResultFound,\n useSimpleValues,\n onInput,\n ...props\n}: AutoCompleteProps) => {\n const inputSize = useMemo(() => {\n if (size === \"medium\") {\n return \"md\";\n }\n\n return \"lg\";\n }, [size]);\n\n const options = useMemo(() => {\n return props.options.map(option => {\n if (useSimpleValues) {\n return {\n label: option,\n value: option\n };\n }\n\n return {\n label: option[textProp],\n value: option[valueProp],\n disabled: option.disabled,\n item: option\n };\n });\n }, [props.options, textProp, valueProp, useSimpleValues]);\n\n const value = useMemo(() => {\n if (!props.value) {\n return undefined;\n }\n\n if (useSimpleValues && typeof props.value === \"string\") {\n return props.value;\n }\n\n return props.value[valueProp as keyof AutoCompleteProps[\"value\"]] as string;\n }, [props.value, valueProp]);\n\n const onValueChange = useCallback(\n (value: any) => {\n const option = options.find(option => option.value === value);\n\n if (!option) {\n return;\n }\n\n onChange?.(value, option.item);\n },\n [onChange, options]\n );\n\n return (\n <AdminAutoComplete\n {...props}\n value={value}\n options={options}\n onValueChange={onValueChange}\n onValueSearch={onInput}\n size={inputSize}\n optionRenderer={renderItem}\n emptyMessage={noResultFound}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAEnD,SAASC,YAAY,IAAIC,iBAAiB,QAAQ,kBAAkB;AAEpE,WAAYC,SAAS,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA;AAyBrB;AACA;AACA;AACA;AACA,OAAO,MAAMF,YAAY,GAAGA,CAAC;EACzBG,I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ACS,IAAI,CAACP,MAAM,IAAIA,MAAM,CAACE,KAAK,KAAKA,KAAK,CAAC;IAE7D,IAAI,CAACF,MAAM,EAAE;MACT;IACJ;IAEAX,QAAQ,GAAGa,KAAK,EAAEF,MAAM,CAACI,IAAI,CAAC;EAClC,CAAC,EACD,CAACf,QAAQ,EAAES,OAAO,CACtB,CAAC;EAED,oBACIhB,KAAA,CAAA0B,aAAA,CAACtB,iBAAiB,EAAAuB,MAAA,CAAAC,MAAA,KACVd,KAAK;IACTM,KAAK,EAAEA,KAAM;IACbJ,OAAO,EAAEA,OAAQ;IACjBQ,aAAa,EAAEA,aAAc;IAC7BK,aAAa,EAAEhB,OAAQ;IACvBP,IAAI,EAAES,SAAU;IAChBe,cAAc,EAAEpB,UAAW;IAC3BqB,YAAY,EAAEpB;EAAc,EAC/B,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { AutoCompleteBaseProps } from "./types";
2
+ import type { AutoCompleteBaseProps } from "./types.js";
3
3
  interface SelectionItem {
4
4
  name: string;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useMemo","MultiAutoComplete","AdminMultiAutoComplete","onChange","value","valueProp","textProp","renderItem","noResultFound","useSimpleValues","loading","allowFreeInput","unique","renderMultipleSelection","onInput","props","getOption","option","label","item","disabled","options","map","values","val","filter","Boolean","onValuesChange","selectedOptions","find","push","selectedItems","selectedOptionRenderer","createElement","Fragment","Object","assign","size","optionRenderer","emptyMessage","onValueSearch","uniqueValues"],"sources":["MultiAutoComplete.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\nimport type { AutoCompleteBaseProps } from \"./types\";\nimport { MultiAutoComplete as AdminMultiAutoComplete } from \"@webiny/admin-ui\";\n\ninterface SelectionItem {\n name: string;\n}\n\ntype MultiAutoCompletePropsValue = SelectionItem[] | string[];\n\nexport interface MultiAutoCompleteProps extends Omit<AutoCompleteBaseProps, \"value\"> {\n /**\n * Prevents adding the same item to the list twice.\n */\n unique?: boolean;\n\n /**\n * Set if custom values (not from list of suggestions) are allowed.\n */\n allowFreeInput?: boolean;\n\n /**\n * If true, will show a loading spinner on the right side of the input.\n */\n loading?: boolean;\n\n /**\n * Use custom renderer for selected items.\n */\n renderMultipleSelection?: ((items: any, index: number) => React.ReactNode | null) | null;\n\n /**\n * Use data list instead of default Chips component. Useful when expecting a lot of data.\n */\n useMultipleSelectionList?: boolean;\n\n /**\n * Render list item when `useMultipleSelectionList` is used.\n */\n renderListItemLabel?: (item: any) => React.ReactNode;\n\n /**\n * Render in meta wrapper\n */\n renderListItemOptions?: (item: any) => React.ReactNode | null;\n\n /**\n * A component that renders supporting UI in case of no result found.\n */\n noResultFound?: React.ReactNode;\n\n /**\n * Value is an array of strings. But can be undefined.\n */\n value?: MultiAutoCompletePropsValue;\n\n /**\n * Indicates if the reset action should be displayed.\n */\n displayResetAction?: boolean;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `MultiAutoComplete` component from the `@webiny/admin-ui` package instead.\n */\nexport const MultiAutoComplete = ({\n onChange,\n value = [],\n valueProp = \"id\",\n textProp = \"name\",\n renderItem,\n noResultFound,\n useSimpleValues,\n loading,\n allowFreeInput,\n unique = true,\n renderMultipleSelection,\n onInput,\n ...props\n}: MultiAutoCompleteProps) => {\n const getOption = useCallback(\n (option: any) => {\n if (useSimpleValues) {\n return {\n label: option,\n value: option,\n item: option\n };\n }\n\n return {\n label: option[textProp],\n value: option[valueProp],\n disabled: option.disabled,\n item: option\n };\n },\n [textProp, valueProp, useSimpleValues]\n );\n\n const options = useMemo(() => {\n return props.options.map(option => {\n return getOption(option);\n });\n }, [props.options]);\n\n const values = useMemo(() => {\n if (!value) {\n return [];\n }\n\n return value\n .map((val: SelectionItem | string) => {\n if (typeof val === \"string\") {\n return val;\n }\n\n return val[valueProp as keyof SelectionItem] as string;\n })\n .filter(Boolean);\n }, [value, valueProp]);\n\n const onValuesChange = useCallback(\n (values: any) => {\n const selectedOptions = [];\n\n for (const value of values) {\n const option = options.find(option => option.value === value);\n\n if (option) {\n selectedOptions.push(option);\n } else {\n selectedOptions.push(getOption(value));\n }\n }\n\n const selectedItems = selectedOptions.map(option => option.item);\n\n onChange?.(selectedItems);\n },\n [onChange, options]\n );\n\n const selectedOptionRenderer = useMemo(() => {\n if (renderMultipleSelection === null) {\n return () => null;\n }\n return renderMultipleSelection;\n }, [renderMultipleSelection]);\n\n return (\n <>\n <AdminMultiAutoComplete\n {...props}\n size={\"lg\"}\n values={values}\n options={options}\n optionRenderer={renderItem}\n selectedOptionRenderer={selectedOptionRenderer}\n emptyMessage={noResultFound}\n onValuesChange={onValuesChange}\n onValueSearch={onInput}\n loading={loading}\n allowFreeInput={allowFreeInput}\n uniqueValues={unique}\n />\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAEnD,SAASC,iBAAiB,IAAIC,sBAAsB,QAAQ,kBAAkB;AA4D9E;AACA;AACA;AACA;AACA,OAAO,MAAMD,iBAAiB,GAAGA,CAAC;EAC9BE,QAAQ;EACRC,KAAK,GAAG,EAAE;EACVC,SAAS,GAAG,IAAI;EAChBC,QAAQ,GAAG,MAAM;EACjBC,UAAU;EACVC,aAAa;EACbC,eAAe;EACfC,OAAO;EACPC,cAAc;EACdC,MAAM,GAAG,IAAI;EACbC,uBAAuB;EACvBC,OAAO;EACP,GAAGC;AACiB,CAAC,KAAK;EAC1B,MAAMC,SAAS,GAAGjB,WAAW,CACxBkB,MAAW,IAAK;IACb,IAAIR,eAAe,EAAE;MACjB,OAAO;QACHS,KAAK,EAAED,MAAM;QACbb,KAAK,EAAEa,MAAM;QACbE,IAAI,EAAEF;MACV,CAAC;IACL;IAEA,OAAO;MACHC,KAAK,EAAED,MAAM,CAACX,QAAQ,CAAC;MACvBF,KAAK,EAAEa,MAAM,CAACZ,SAAS,CAAC;MACxBe,QAAQ,EAAEH,MAAM,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EACD,CAAC5B,QAAQ,EAAEkB,OAAO,CACtB,CAAC;EAED,MAAMW,sBAAsB,GAAGhC,OAAO,CAAC,MAAM;IACzC,IAAIa,uBAAuB,KAAK,IAAI,EAAE;MAClC,OAAO,MAAM,IAAI;IACrB;IACA,OAAOA,uBAAuB;EAClC,CAAC,EAAE,CAACA,uBAAuB,CAAC,CAAC;EAE7B,oBACIf,KAAA,CAAAmC,aAAA,CAAAnC,KAAA,CAAAoC,QAAA,qBACIpC,KAAA,CAAAmC,aAAA,CAAC/B,sBAAsB,EAAAiC,MAAA,CAAAC,MAAA,KACfrB,KAAK;IACTsB,IAAI,EAAE,IAAK;IACXd,MAAM,EAAEA,MAAO;IACfF,OAAO,EAAEA,OAAQ;IACjBiB,cAAc,EAAE/B,UAAW;IAC3ByB,sBAAsB,EAAEA,sBAAuB;IAC/CO,YAAY,EAAE/B,aAAc;IAC5BmB,cAAc,EAAEA,cAAe;IAC/Ba,aAAa,EAAE1B,OAAQ;IACvBJ,OAAO,EAAEA,OAAQ;IACjBC,cAAc,EAAEA,cAAe;IAC/B8B,YAAY,EAAE7B;EAAO,EACxB,CACH,CAAC;AAEX,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallback","useMemo","MultiAutoComplete","AdminMultiAutoComplete","onChange","value","valueProp","textProp","renderItem","noResultFound","useSimpleValues","loading","allowFreeInput","unique","renderMultipleSelection","onInput","props","getOption","option","label","item","disabled","options","map","values","val","filter","Boolean","onValuesChange","selectedOptions","find","push","selectedItems","selectedOptionRenderer","createElement","Fragment","Object","assign","size","optionRenderer","emptyMessage","onValueSearch","uniqueValues"],"sources":["MultiAutoComplete.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\nimport type { AutoCompleteBaseProps } from \"./types.js\";\nimport { MultiAutoComplete as AdminMultiAutoComplete } from \"@webiny/admin-ui\";\n\ninterface SelectionItem {\n name: string;\n}\n\ntype MultiAutoCompletePropsValue = SelectionItem[] | string[];\n\nexport interface MultiAutoCompleteProps extends Omit<AutoCompleteBaseProps, \"value\"> {\n /**\n * Prevents adding the same item to the list twice.\n */\n unique?: boolean;\n\n /**\n * Set if custom values (not from list of suggestions) are allowed.\n */\n allowFreeInput?: boolean;\n\n /**\n * If true, will show a loading spinner on the right side of the input.\n */\n loading?: boolean;\n\n /**\n * Use custom renderer for selected items.\n */\n renderMultipleSelection?: ((items: any, index: number) => React.ReactNode | null) | null;\n\n /**\n * Use data list instead of default Chips component. Useful when expecting a lot of data.\n */\n useMultipleSelectionList?: boolean;\n\n /**\n * Render list item when `useMultipleSelectionList` is used.\n */\n renderListItemLabel?: (item: any) => React.ReactNode;\n\n /**\n * Render in meta wrapper\n */\n renderListItemOptions?: (item: any) => React.ReactNode | null;\n\n /**\n * A component that renders supporting UI in case of no result found.\n */\n noResultFound?: React.ReactNode;\n\n /**\n * Value is an array of strings. But can be undefined.\n */\n value?: MultiAutoCompletePropsValue;\n\n /**\n * Indicates if the reset action should be displayed.\n */\n displayResetAction?: boolean;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `MultiAutoComplete` component from the `@webiny/admin-ui` package instead.\n */\nexport const MultiAutoComplete = ({\n onChange,\n value = [],\n valueProp = \"id\",\n textProp = \"name\",\n renderItem,\n noResultFound,\n useSimpleValues,\n loading,\n allowFreeInput,\n unique = true,\n renderMultipleSelection,\n onInput,\n ...props\n}: MultiAutoCompleteProps) => {\n const getOption = useCallback(\n (option: any) => {\n if (useSimpleValues) {\n return {\n label: option,\n value: option,\n item: option\n };\n }\n\n return {\n label: option[textProp],\n value: option[valueProp],\n disabled: option.disabled,\n item: option\n };\n },\n [textProp, valueProp, useSimpleValues]\n );\n\n const options = useMemo(() => {\n return props.options.map(option => {\n return getOption(option);\n });\n }, [props.options]);\n\n const values = useMemo(() => {\n if (!value) {\n return [];\n }\n\n return value\n .map((val: SelectionItem | string) => {\n if (typeof val === \"string\") {\n return val;\n }\n\n return val[valueProp as keyof SelectionItem] as string;\n })\n .filter(Boolean);\n }, [value, valueProp]);\n\n const onValuesChange = useCallback(\n (values: any) => {\n const selectedOptions = [];\n\n for (const value of values) {\n const option = options.find(option => option.value === value);\n\n if (option) {\n selectedOptions.push(option);\n } else {\n selectedOptions.push(getOption(value));\n }\n }\n\n const selectedItems = selectedOptions.map(option => option.item);\n\n onChange?.(selectedItems);\n },\n [onChange, options]\n );\n\n const selectedOptionRenderer = useMemo(() => {\n if (renderMultipleSelection === null) {\n return () => null;\n }\n return renderMultipleSelection;\n }, [renderMultipleSelection]);\n\n return (\n <>\n <AdminMultiAutoComplete\n {...props}\n size={\"lg\"}\n values={values}\n options={options}\n optionRenderer={renderItem}\n selectedOptionRenderer={selectedOptionRenderer}\n emptyMessage={noResultFound}\n onValuesChange={onValuesChange}\n onValueSearch={onInput}\n loading={loading}\n allowFreeInput={allowFreeInput}\n uniqueValues={unique}\n />\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAEnD,SAASC,iBAAiB,IAAIC,sBAAsB,QAAQ,kBAAkB;AA4D9E;AACA;AACA;AACA;AACA,OAAO,MAAMD,iBAAiB,GAAGA,CAAC;EAC9BE,QAAQ;EACRC,KAAK,GAAG,EAAE;EACVC,SAAS,GAAG,IAAI;EAChBC,QAAQ,GAAG,MAAM;EACjBC,UAAU;EACVC,aAAa;EACbC,eAAe;EACfC,OAAO;EACPC,cAAc;EACdC,MAAM,GAAG,IAAI;EACbC,uBAAuB;EACvBC,OAAO;EACP,GAAGC;AACiB,CAAC,KAAK;EAC1B,MAAMC,SAAS,GAAGjB,WAAW,CACxBkB,MAAW,IAAK;IACb,IAAIR,eAAe,EAAE;MACjB,OAAO;QACHS,KAAK,EAAED,MAAM;QACbb,KAAK,EAAEa,MAAM;QACbE,IAAI,EAAEF;MACV,CAAC;IACL;IAEA,OAAO;MACHC,KAAK,EAAED,MAAM,CAACX,QAAQ,CAAC;MACvBF,KAAK,EAAEa,MAAM,C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EhB,QAAQ,GAAG4B,aAAa,CAAC;EAC7B,CAAC,EACD,CAAC5B,QAAQ,EAAEkB,OAAO,CACtB,CAAC;EAED,MAAMW,sBAAsB,GAAGhC,OAAO,CAAC,MAAM;IACzC,IAAIa,uBAAuB,KAAK,IAAI,EAAE;MAClC,OAAO,MAAM,IAAI;IACrB;IACA,OAAOA,uBAAuB;EAClC,CAAC,EAAE,CAACA,uBAAuB,CAAC,CAAC;EAE7B,oBACIf,KAAA,CAAAmC,aAAA,CAAAnC,KAAA,CAAAoC,QAAA,qBACIpC,KAAA,CAAAmC,aAAA,CAAC/B,sBAAsB,EAAAiC,MAAA,CAAAC,MAAA,KACfrB,KAAK;IACTsB,IAAI,EAAE,IAAK;IACXd,MAAM,EAAEA,MAAO;IACfF,OAAO,EAAEA,OAAQ;IACjBiB,cAAc,EAAE/B,UAAW;IAC3ByB,sBAAsB,EAAEA,sBAAuB;IAC/CO,YAAY,EAAE/B,aAAc;IAC5BmB,cAAc,EAAEA,cAAe;IAC/Ba,aAAa,EAAE1B,OAAQ;IACvBJ,OAAO,EAAEA,OAAQ;IACjBC,cAAc,EAAEA,cAAe;IAC/B8B,YAAY,EAAE7B;EAAO,EACxB,CACH,CAAC;AAEX,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export * from "./AutoComplete";
2
- export * from "./MultiAutoComplete";
1
+ export * from "./AutoComplete.js";
2
+ export * from "./MultiAutoComplete.js";
@@ -1,4 +1,4 @@
1
- export * from "./AutoComplete";
2
- export * from "./MultiAutoComplete";
1
+ export * from "./AutoComplete.js";
2
+ export * from "./MultiAutoComplete.js";
3
3
 
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./AutoComplete\";\nexport * from \"./MultiAutoComplete\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./AutoComplete.js\";\nexport * from \"./MultiAutoComplete.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { FormComponentProps } from "../types";
2
+ import type { FormComponentProps } from "../types.js";
3
3
  export interface AutoCompleteBaseProps extends FormComponentProps {
4
4
  /**
5
5
  * Component label.
@@ -18,9 +18,13 @@ export interface AutoCompleteBaseProps extends FormComponentProps {
18
18
  */
19
19
  options: Array<any>;
20
20
  /**
21
- * Description beneath the autoComplete.
21
+ * Description above the autoComplete.
22
22
  */
23
23
  description?: React.ReactNode;
24
+ /**
25
+ * Note beneath the autoComplete.
26
+ */
27
+ note?: React.ReactNode;
24
28
  /**
25
29
  * Placeholder text for the form control. Set to a blank string to create a non-floating placeholder label.
26
30
  */
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type React from \"react\";\nimport type { FormComponentProps } from \"~/types\";\n\nexport interface AutoCompleteBaseProps extends FormComponentProps {\n /**\n * Component label.\n */\n label?: string;\n\n /**\n * Is component disabled?\n */\n disabled?: boolean;\n\n /**\n * Is component read-only?\n */\n readOnly?: boolean;\n\n /**\n * Options that will be shown.\n */\n options: Array<any>;\n\n /**\n * Description beneath the autoComplete.\n */\n description?: React.ReactNode;\n\n /**\n * Placeholder text for the form control. Set to a blank string to create a non-floating placeholder label.\n */\n placeholder?: string;\n\n /**\n * A className for the root element.\n */\n className?: string;\n\n /**\n * Default structure of value, an object consisting of \"id\" and \"name\" keys. Different keys can be set using \"valueProp\" and \"textProp\" props.\n */\n value?: { id: string; name: string } | string;\n\n /**\n * Key in a single option object that will be used as option's value (by default, \"id\" key will be used).\n */\n valueProp?: string;\n\n /**\n * Key in a single option object that will be used as option's text (by default, \"name\" key will be used).\n */\n textProp?: string;\n\n /**\n * Callback that gets executed on change of input value.\n */\n onInput?: (value: any) => void;\n\n /**\n * Callback that gets executed when the input is focused.\n */\n onFocus?: (ev: React.FocusEvent<any>) => void;\n\n /**\n * Set if you are saving plain strings as values.\n */\n useSimpleValues?: boolean;\n\n /**\n * Renders a single suggestion item.\n */\n renderItem?: (item: any, index?: number) => React.ReactNode;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type React from \"react\";\nimport type { FormComponentProps } from \"~/types.js\";\n\nexport interface AutoCompleteBaseProps extends FormComponentProps {\n /**\n * Component label.\n */\n label?: string;\n\n /**\n * Is component disabled?\n */\n disabled?: boolean;\n\n /**\n * Is component read-only?\n */\n readOnly?: boolean;\n\n /**\n * Options that will be shown.\n */\n options: Array<any>;\n\n /**\n * Description above the autoComplete.\n */\n description?: React.ReactNode;\n\n /**\n * Note beneath the autoComplete.\n */\n note?: React.ReactNode;\n\n /**\n * Placeholder text for the form control. Set to a blank string to create a non-floating placeholder label.\n */\n placeholder?: string;\n\n /**\n * A className for the root element.\n */\n className?: string;\n\n /**\n * Default structure of value, an object consisting of \"id\" and \"name\" keys. Different keys can be set using \"valueProp\" and \"textProp\" props.\n */\n value?: { id: string; name: string } | string;\n\n /**\n * Key in a single option object that will be used as option's value (by default, \"id\" key will be used).\n */\n valueProp?: string;\n\n /**\n * Key in a single option object that will be used as option's text (by default, \"name\" key will be used).\n */\n textProp?: string;\n\n /**\n * Callback that gets executed on change of input value.\n */\n onInput?: (value: any) => void;\n\n /**\n * Callback that gets executed when the input is focused.\n */\n onFocus?: (ev: React.FocusEvent<any>) => void;\n\n /**\n * Set if you are saving plain strings as values.\n */\n useSimpleValues?: boolean;\n\n /**\n * Renders a single suggestion item.\n */\n renderItem?: (item: any, index?: number) => React.ReactNode;\n}\n"],"mappings":"","ignoreList":[]}
package/Avatar/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./Avatar";
1
+ export * from "./Avatar.js";
package/Avatar/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Avatar";
1
+ export * from "./Avatar.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Avatar\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Avatar.js\";\n"],"mappings":"AAAA","ignoreList":[]}
package/Button/Button.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { Button as AdminUiButton } from "@webiny/admin-ui/Button";
3
- import { useMappedButtonProps } from "./useMappedButtonProps";
2
+ import { Button as AdminUiButton } from "@webiny/admin-ui/Button/index.js";
3
+ import { useMappedButtonProps } from "./useMappedButtonProps.js";
4
4
  /**
5
5
  * @deprecated This component is deprecated and will be removed in future releases.
6
6
  * Please use the `Button` component from the `@webiny/admin-ui` package instead.
@@ -1 +1 @@
1
- {"version":3,"names":["React","Button","AdminUiButton","useMappedButtonProps","props","mappedProps","createElement","displayName"],"sources":["Button.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button as AdminUiButton } from \"@webiny/admin-ui/Button\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps\";\n\ninterface ButtonProps {\n /**\n * Make button flat (only applicable to Primary button).\n */\n flat?: boolean;\n\n /**\n * Make button smaller.\n */\n small?: boolean;\n\n /**\n * Returning `any` allows us to pass callbacks to the button without worrying about their\n * specific return types. Buttons don't use return values from callbacks, so we don't have to worry\n * about their return types at all.\n */\n onClick?: (event: React.MouseEvent<any, MouseEvent>) => any;\n\n /**\n * Label and optionally an icon (using Button.Icon component).\n */\n children?: React.ReactNode;\n\n /**\n * Show ripple effect on button click.\n */\n ripple?: boolean;\n\n /**\n * Additional button class name.\n */\n className?: string;\n\n /**\n * Is button disabled?\n */\n disabled?: boolean;\n\n /**\n * Additional inline styles.\n */\n style?: { [key: string]: any };\n\n /**\n * ID of the element for testing purposes.\n */\n \"data-testid\"?: string;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nconst Button = (props: ButtonProps) => {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiButton {...mappedProps} />;\n};\n\nButton.displayName = \"Button\";\n\nexport { Button, ButtonProps };\n\n// Needed for backward compatibility.\nexport default Button;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,aAAa,QAAQ,yBAAyB;AACjE,SAASC,oBAAoB;AAmD7B;AACA;AACA;AACA;AACA,MAAMF,MAAM,GAAIG,KAAkB,IAAK;EACnC,MAAMC,WAAW,GAAGF,oBAAoB,CAACC,KAAK,CAAC;EAC/C,oBAAOJ,KAAA,CAAAM,aAAA,CAACJ,aAAa,EAAKG,WAAc,CAAC;AAC7C,CAAC;AAEDJ,MAAM,CAACM,WAAW,GAAG,QAAQ;AAE7B,SAASN,MAAM;;AAEf;AACA,eAAeA,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["React","Button","AdminUiButton","useMappedButtonProps","props","mappedProps","createElement","displayName"],"sources":["Button.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button as AdminUiButton } from \"@webiny/admin-ui/Button/index.js\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps.js\";\n\ninterface ButtonProps {\n /**\n * Make button flat (only applicable to Primary button).\n */\n flat?: boolean;\n\n /**\n * Make button smaller.\n */\n small?: boolean;\n\n /**\n * Returning `any` allows us to pass callbacks to the button without worrying about their\n * specific return types. Buttons don't use return values from callbacks, so we don't have to worry\n * about their return types at all.\n */\n onClick?: (event: React.MouseEvent<any, MouseEvent>) => any;\n\n /**\n * Label and optionally an icon (using Button.Icon component).\n */\n children?: React.ReactNode;\n\n /**\n * Show ripple effect on button click.\n */\n ripple?: boolean;\n\n /**\n * Additional button class name.\n */\n className?: string;\n\n /**\n * Is button disabled?\n */\n disabled?: boolean;\n\n /**\n * Additional inline styles.\n */\n style?: { [key: string]: any };\n\n /**\n * ID of the element for testing purposes.\n */\n \"data-testid\"?: string;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nconst Button = (props: ButtonProps) => {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiButton {...mappedProps} />;\n};\n\nButton.displayName = \"Button\";\n\nexport { Button, ButtonProps };\n\n// Needed for backward compatibility.\nexport default Button;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,aAAa,QAAQ,kCAAkC;AAC1E,SAASC,oBAAoB;AAmD7B;AACA;AACA;AACA;AACA,MAAMF,MAAM,GAAIG,KAAkB,IAAK;EACnC,MAAMC,WAAW,GAAGF,oBAAoB,CAACC,KAAK,CAAC;EAC/C,oBAAOJ,KAAA,CAAAM,aAAA,CAACJ,aAAa,EAAKG,WAAc,CAAC;AAC7C,CAAC;AAEDJ,MAAM,CAACM,WAAW,GAAG,QAAQ;AAE7B,SAASN,MAAM;;AAEf;AACA,eAAeA,MAAM","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { ButtonProps } from "./Button";
2
+ import type { ButtonProps } from "./Button.js";
3
3
  /**
4
4
  * @deprecated This component is deprecated and will be removed in future releases.
5
5
  * Please use the `Button` component from the `@webiny/admin-ui` package instead.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { useMappedButtonProps } from "./useMappedButtonProps";
2
+ import { useMappedButtonProps } from "./useMappedButtonProps.js";
3
3
  import { Button as AdminUiButton } from "@webiny/admin-ui";
4
4
 
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMappedButtonProps","Button","AdminUiButton","ButtonDefault","props","mappedProps","createElement","Object","assign","variant"],"sources":["ButtonDefault.tsx"],"sourcesContent":["import React from \"react\";\nimport type { ButtonProps } from \"./Button\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps\";\nimport { Button as AdminUiButton } from \"@webiny/admin-ui\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nexport const ButtonDefault = (props: ButtonProps) => {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiButton {...mappedProps} variant={\"secondary\"} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoB;AAC7B,SAASC,MAAM,IAAIC,aAAa,QAAQ,kBAAkB;;AAE1D;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAIC,KAAkB,IAAK;EACjD,MAAMC,WAAW,GAAGL,oBAAoB,CAACI,KAAK,CAAC;EAC/C,oBAAOL,KAAA,CAAAO,aAAA,CAACJ,aAAa,EAAAK,MAAA,CAAAC,MAAA,KAAKH,WAAW;IAAEI,OAAO,EAAE;EAAY,EAAE,CAAC;AACnE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMappedButtonProps","Button","AdminUiButton","ButtonDefault","props","mappedProps","createElement","Object","assign","variant"],"sources":["ButtonDefault.tsx"],"sourcesContent":["import React from \"react\";\nimport type { ButtonProps } from \"./Button.js\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps.js\";\nimport { Button as AdminUiButton } from \"@webiny/admin-ui\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nexport const ButtonDefault = (props: ButtonProps) => {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiButton {...mappedProps} variant={\"secondary\"} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoB;AAC7B,SAASC,MAAM,IAAIC,aAAa,QAAQ,kBAAkB;;AAE1D;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAIC,KAAkB,IAAK;EACjD,MAAMC,WAAW,GAAGL,oBAAoB,CAACI,KAAK,CAAC;EAC/C,oBAAOL,KAAA,CAAAO,aAAA,CAACJ,aAAa,EAAAK,MAAA,CAAAC,MAAA,KAAKH,WAAW;IAAEI,OAAO,EAAE;EAAY,EAAE,CAAC;AACnE,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { IconButtonProps } from "./IconButton";
2
+ import type { IconButtonProps } from "./IconButton.js";
3
3
  /**
4
4
  * @deprecated This component is deprecated and will be removed in future releases.
5
5
  * Please use the `Button` component from the `@webiny/admin-ui` package instead.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { IconButton } from "./IconButton";
2
+ import { IconButton } from "./IconButton.js";
3
3
 
4
4
  /**
5
5
  * @deprecated This component is deprecated and will be removed in future releases.
@@ -1 +1 @@
1
- {"version":3,"names":["React","IconButton","ButtonFloating","props","createElement"],"sources":["ButtonFloating.tsx"],"sourcesContent":["import React from \"react\";\nimport type { IconButtonProps } from \"./IconButton\";\nimport { IconButton } from \"./IconButton\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nexport const ButtonFloating = (props: IconButtonProps) => {\n return <IconButton {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU;;AAEnB;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAIC,KAAsB,IAAK;EACtD,oBAAOH,KAAA,CAAAI,aAAA,CAACH,UAAU,EAAKE,KAAQ,CAAC;AACpC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","IconButton","ButtonFloating","props","createElement"],"sources":["ButtonFloating.tsx"],"sourcesContent":["import React from \"react\";\nimport type { IconButtonProps } from \"./IconButton.js\";\nimport { IconButton } from \"./IconButton.js\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nexport const ButtonFloating = (props: IconButtonProps) => {\n return <IconButton {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU;;AAEnB;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAIC,KAAsB,IAAK;EACtD,oBAAOH,KAAA,CAAAI,aAAA,CAACH,UAAU,EAAKE,KAAQ,CAAC;AACpC,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Icon } from "../Icon";
2
+ import { Icon } from "../Icon/index.js";
3
3
  /**
4
4
  * @deprecated This component is deprecated and will be removed in future releases.
5
5
  * Please use the `Icon` component from the `@webiny/admin-ui` package instead.
@@ -1 +1 @@
1
- {"version":3,"names":["React","Icon","ButtonIcon","props","createElement"],"sources":["ButtonIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { Icon } from \"~/Icon\";\n\nexport interface ButtonIconProps {\n icon: React.ReactElement;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Icon` component from the `@webiny/admin-ui` package instead.\n */\nexport const ButtonIcon = (props: ButtonIconProps) => {\n return <Icon {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI;AAMb;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAIC,KAAsB,IAAK;EAClD,oBAAOH,KAAA,CAAAI,aAAA,CAACH,IAAI,EAAKE,KAAQ,CAAC;AAC9B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Icon","ButtonIcon","props","createElement"],"sources":["ButtonIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { Icon } from \"~/Icon/index.js\";\n\nexport interface ButtonIconProps {\n icon: React.ReactElement;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Icon` component from the `@webiny/admin-ui` package instead.\n */\nexport const ButtonIcon = (props: ButtonIconProps) => {\n return <Icon {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI;AAMb;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAIC,KAAsB,IAAK;EAClD,oBAAOH,KAAA,CAAAI,aAAA,CAACH,IAAI,EAAKE,KAAQ,CAAC;AAC9B,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { ButtonProps } from "./Button";
2
+ import type { ButtonProps } from "./Button.js";
3
3
  /**
4
4
  * @deprecated This component is deprecated and will be removed in future releases.
5
5
  * Please use the `Button` component from the `@webiny/admin-ui` package instead.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { useMappedButtonProps } from "./useMappedButtonProps";
2
+ import { useMappedButtonProps } from "./useMappedButtonProps.js";
3
3
  import { Button as AdminUiButton } from "@webiny/admin-ui";
4
4
 
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMappedButtonProps","Button","AdminUiButton","ButtonPrimary","props","mappedProps","createElement","Object","assign","variant"],"sources":["ButtonPrimary.tsx"],"sourcesContent":["import React from \"react\";\nimport type { ButtonProps } from \"./Button\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps\";\nimport { Button as AdminUiButton } from \"@webiny/admin-ui\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nexport const ButtonPrimary = function ButtonPrimary(props: ButtonProps) {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiButton {...mappedProps} variant={\"primary\"} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoB;AAC7B,SAASC,MAAM,IAAIC,aAAa,QAAQ,kBAAkB;;AAE1D;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAG,SAASA,aAAaA,CAACC,KAAkB,EAAE;EACpE,MAAMC,WAAW,GAAGL,oBAAoB,CAACI,KAAK,CAAC;EAC/C,oBAAOL,KAAA,CAAAO,aAAA,CAACJ,aAAa,EAAAK,MAAA,CAAAC,MAAA,KAAKH,WAAW;IAAEI,OAAO,EAAE;EAAU,EAAE,CAAC;AACjE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMappedButtonProps","Button","AdminUiButton","ButtonPrimary","props","mappedProps","createElement","Object","assign","variant"],"sources":["ButtonPrimary.tsx"],"sourcesContent":["import React from \"react\";\nimport type { ButtonProps } from \"./Button.js\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps.js\";\nimport { Button as AdminUiButton } from \"@webiny/admin-ui\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nexport const ButtonPrimary = function ButtonPrimary(props: ButtonProps) {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiButton {...mappedProps} variant={\"primary\"} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoB;AAC7B,SAASC,MAAM,IAAIC,aAAa,QAAQ,kBAAkB;;AAE1D;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAG,SAASA,aAAaA,CAACC,KAAkB,EAAE;EACpE,MAAMC,WAAW,GAAGL,oBAAoB,CAACI,KAAK,CAAC;EAC/C,oBAAOL,KAAA,CAAAO,aAAA,CAACJ,aAAa,EAAAK,MAAA,CAAAC,MAAA,KAAKH,WAAW;IAAEI,OAAO,EAAE;EAAU,EAAE,CAAC;AACjE,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { ButtonProps } from "./Button";
2
+ import type { ButtonProps } from "./Button.js";
3
3
  /**
4
4
  * @deprecated This component is deprecated and will be removed in future releases.
5
5
  * Please use the `Button` component from the `@webiny/admin-ui` package instead.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { useMappedButtonProps } from "./useMappedButtonProps";
2
+ import { useMappedButtonProps } from "./useMappedButtonProps.js";
3
3
  import { Button as AdminUiButton } from "@webiny/admin-ui";
4
4
 
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMappedButtonProps","Button","AdminUiButton","ButtonSecondary","props","mappedProps","createElement","Object","assign","variant"],"sources":["ButtonSecondary.tsx"],"sourcesContent":["import React from \"react\";\nimport type { ButtonProps } from \"./Button\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps\";\nimport { Button as AdminUiButton } from \"@webiny/admin-ui\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nexport const ButtonSecondary = (props: ButtonProps) => {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiButton {...mappedProps} variant={\"secondary\"} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoB;AAC7B,SAASC,MAAM,IAAIC,aAAa,QAAQ,kBAAkB;;AAE1D;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAIC,KAAkB,IAAK;EACnD,MAAMC,WAAW,GAAGL,oBAAoB,CAACI,KAAK,CAAC;EAC/C,oBAAOL,KAAA,CAAAO,aAAA,CAACJ,aAAa,EAAAK,MAAA,CAAAC,MAAA,KAAKH,WAAW;IAAEI,OAAO,EAAE;EAAY,EAAE,CAAC;AACnE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMappedButtonProps","Button","AdminUiButton","ButtonSecondary","props","mappedProps","createElement","Object","assign","variant"],"sources":["ButtonSecondary.tsx"],"sourcesContent":["import React from \"react\";\nimport type { ButtonProps } from \"./Button.js\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps.js\";\nimport { Button as AdminUiButton } from \"@webiny/admin-ui\";\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nexport const ButtonSecondary = (props: ButtonProps) => {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiButton {...mappedProps} variant={\"secondary\"} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoB;AAC7B,SAASC,MAAM,IAAIC,aAAa,QAAQ,kBAAkB;;AAE1D;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAIC,KAAkB,IAAK;EACnD,MAAMC,WAAW,GAAGL,oBAAoB,CAACI,KAAK,CAAC;EAC/C,oBAAOL,KAAA,CAAAO,aAAA,CAACJ,aAAa,EAAAK,MAAA,CAAAC,MAAA,KAAKH,WAAW;IAAEI,OAAO,EAAE;EAAY,EAAE,CAAC;AACnE,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import type { SyntheticEvent } from "react";
2
2
  import React from "react";
3
- import type { ButtonProps } from "./Button";
3
+ import type { ButtonProps } from "./Button.js";
4
4
  export interface IconButtonProps extends ButtonProps {
5
5
  /**
6
6
  * Icon should be provided as an SvgComponent.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { useMappedButtonProps } from "./useMappedButtonProps";
2
+ import { useMappedButtonProps } from "./useMappedButtonProps.js";
3
3
  import { IconButton as AdminUiBIconButton } from "@webiny/admin-ui";
4
4
  /**
5
5
  * @deprecated This component is deprecated and will be removed in future releases.
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMappedButtonProps","IconButton","AdminUiBIconButton","props","mappedProps","createElement","Object","assign","variant"],"sources":["IconButton.tsx"],"sourcesContent":["import type { SyntheticEvent } from \"react\";\nimport React from \"react\";\nimport type { ButtonProps } from \"./Button\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps\";\nimport { IconButton as AdminUiBIconButton } from \"@webiny/admin-ui\";\n\nexport interface IconButtonProps extends ButtonProps {\n /**\n * Icon should be provided as an SvgComponent.\n */\n icon: React.ReactNode;\n\n label?: string;\n\n onMouseDown?: (e: SyntheticEvent) => void;\n\n onMouseUp?: (e: SyntheticEvent) => void;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nexport const IconButton = (props: IconButtonProps) => {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiBIconButton {...mappedProps} variant={\"ghost\"} />;\n};\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoB;AAC7B,SAASC,UAAU,IAAIC,kBAAkB,QAAQ,kBAAkB;AAenE;AACA;AACA;AACA;AACA,OAAO,MAAMD,UAAU,GAAIE,KAAsB,IAAK;EAClD,MAAMC,WAAW,GAAGJ,oBAAoB,CAACG,KAAK,CAAC;EAC/C,oBAAOJ,KAAA,CAAAM,aAAA,CAACH,kBAAkB,EAAAI,MAAA,CAAAC,MAAA,KAAKH,WAAW;IAAEI,OAAO,EAAE;EAAQ,EAAE,CAAC;AACpE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMappedButtonProps","IconButton","AdminUiBIconButton","props","mappedProps","createElement","Object","assign","variant"],"sources":["IconButton.tsx"],"sourcesContent":["import type { SyntheticEvent } from \"react\";\nimport React from \"react\";\nimport type { ButtonProps } from \"./Button.js\";\nimport { useMappedButtonProps } from \"~/Button/useMappedButtonProps.js\";\nimport { IconButton as AdminUiBIconButton } from \"@webiny/admin-ui\";\n\nexport interface IconButtonProps extends ButtonProps {\n /**\n * Icon should be provided as an SvgComponent.\n */\n icon: React.ReactNode;\n\n label?: string;\n\n onMouseDown?: (e: SyntheticEvent) => void;\n\n onMouseUp?: (e: SyntheticEvent) => void;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Button` component from the `@webiny/admin-ui` package instead.\n */\nexport const IconButton = (props: IconButtonProps) => {\n const mappedProps = useMappedButtonProps(props);\n return <AdminUiBIconButton {...mappedProps} variant={\"ghost\"} />;\n};\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoB;AAC7B,SAASC,UAAU,IAAIC,kBAAkB,QAAQ,kBAAkB;AAenE;AACA;AACA;AACA;AACA,OAAO,MAAMD,UAAU,GAAIE,KAAsB,IAAK;EAClD,MAAMC,WAAW,GAAGJ,oBAAoB,CAACG,KAAK,CAAC;EAC/C,oBAAOJ,KAAA,CAAAM,aAAA,CAACH,kBAAkB,EAAAI,MAAA,CAAAC,MAAA,KAAKH,WAAW;IAAEI,OAAO,EAAE;EAAQ,EAAE,CAAC;AACpE,CAAC","ignoreList":[]}
package/Button/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./Button";
2
- export * from "./ButtonPrimary";
3
- export * from "./ButtonSecondary";
4
- export * from "./ButtonDefault";
5
- export * from "./ButtonFloating";
6
- export * from "./ButtonIcon";
7
- export * from "./CopyButton";
8
- export * from "./IconButton";
1
+ export * from "./Button.js";
2
+ export * from "./ButtonPrimary.js";
3
+ export * from "./ButtonSecondary.js";
4
+ export * from "./ButtonDefault.js";
5
+ export * from "./ButtonFloating.js";
6
+ export * from "./ButtonIcon.js";
7
+ export * from "./CopyButton.js";
8
+ export * from "./IconButton.js";