@webiny/ui 0.0.0-unstable.eb196ccd2f → 0.0.0-unstable.f6dc066313

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 (255) 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.d.ts +4 -0
  27. package/Button/Button.js +2 -2
  28. package/Button/Button.js.map +1 -1
  29. package/Button/ButtonDefault.d.ts +1 -1
  30. package/Button/ButtonDefault.js +1 -1
  31. package/Button/ButtonDefault.js.map +1 -1
  32. package/Button/ButtonFloating.d.ts +1 -1
  33. package/Button/ButtonFloating.js +1 -1
  34. package/Button/ButtonFloating.js.map +1 -1
  35. package/Button/ButtonIcon.js +1 -1
  36. package/Button/ButtonIcon.js.map +1 -1
  37. package/Button/ButtonPrimary.d.ts +1 -1
  38. package/Button/ButtonPrimary.js +1 -1
  39. package/Button/ButtonPrimary.js.map +1 -1
  40. package/Button/ButtonSecondary.d.ts +1 -1
  41. package/Button/ButtonSecondary.js +1 -1
  42. package/Button/ButtonSecondary.js.map +1 -1
  43. package/Button/IconButton.d.ts +1 -1
  44. package/Button/IconButton.js +1 -1
  45. package/Button/IconButton.js.map +1 -1
  46. package/Button/index.d.ts +8 -8
  47. package/Button/index.js +8 -8
  48. package/Button/index.js.map +1 -1
  49. package/Button/useMappedButtonProps.d.ts +4 -4
  50. package/Button/useMappedButtonProps.js +1 -1
  51. package/Button/useMappedButtonProps.js.map +1 -1
  52. package/Carousel/index.d.ts +1 -1
  53. package/Carousel/index.js +1 -1
  54. package/Carousel/index.js.map +1 -1
  55. package/Checkbox/Checkbox.d.ts +1 -1
  56. package/Checkbox/Checkbox.js.map +1 -1
  57. package/Checkbox/CheckboxGroup.d.ts +1 -1
  58. package/Checkbox/CheckboxGroup.js.map +1 -1
  59. package/Checkbox/index.d.ts +2 -2
  60. package/Checkbox/index.js +2 -2
  61. package/Checkbox/index.js.map +1 -1
  62. package/Chips/Chip.js +1 -1
  63. package/Chips/Chip.js.map +1 -1
  64. package/Chips/Chips.d.ts +1 -1
  65. package/Chips/Chips.js +1 -1
  66. package/Chips/Chips.js.map +1 -1
  67. package/Chips/index.d.ts +2 -2
  68. package/Chips/index.js +2 -2
  69. package/Chips/index.js.map +1 -1
  70. package/CodeEditor/CodeEditor.d.ts +1 -1
  71. package/CodeEditor/CodeEditor.js.map +1 -1
  72. package/CodeEditor/index.d.ts +1 -1
  73. package/CodeEditor/index.js +1 -1
  74. package/CodeEditor/index.js.map +1 -1
  75. package/ColorPicker/ColorPicker.d.ts +1 -1
  76. package/ColorPicker/ColorPicker.js.map +1 -1
  77. package/ColorPicker/index.d.ts +1 -1
  78. package/ColorPicker/index.js +1 -1
  79. package/ColorPicker/index.js.map +1 -1
  80. package/ConfirmationDialog/ConfirmationDialog.js +3 -3
  81. package/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
  82. package/ConfirmationDialog/index.d.ts +2 -2
  83. package/ConfirmationDialog/index.js +2 -2
  84. package/ConfirmationDialog/index.js.map +1 -1
  85. package/ConfirmationDialog/withConfirmation.js +1 -1
  86. package/ConfirmationDialog/withConfirmation.js.map +1 -1
  87. package/DataTable/index.d.ts +1 -1
  88. package/DataTable/index.js +1 -1
  89. package/DataTable/index.js.map +1 -1
  90. package/DateTime/index.d.ts +1 -1
  91. package/DateTime/index.js +1 -1
  92. package/DateTime/index.js.map +1 -1
  93. package/Dialog/Dialog.js +4 -4
  94. package/Dialog/Dialog.js.map +1 -1
  95. package/Dialog/index.d.ts +1 -1
  96. package/Dialog/index.js +1 -1
  97. package/Dialog/index.js.map +1 -1
  98. package/Drawer/Drawer.js +1 -1
  99. package/Drawer/Drawer.js.map +1 -1
  100. package/Drawer/index.d.ts +1 -1
  101. package/Drawer/index.js +1 -1
  102. package/Drawer/index.js.map +1 -1
  103. package/Elevation/Elevation.js +1 -1
  104. package/Elevation/Elevation.js.map +1 -1
  105. package/Elevation/index.d.ts +1 -1
  106. package/Elevation/index.js +1 -1
  107. package/Elevation/index.js.map +1 -1
  108. package/FormElementMessage/index.d.ts +1 -1
  109. package/FormElementMessage/index.js +1 -1
  110. package/FormElementMessage/index.js.map +1 -1
  111. package/FullName/index.d.ts +1 -1
  112. package/FullName/index.js +1 -1
  113. package/FullName/index.js.map +1 -1
  114. package/Grid/Grid.js +1 -1
  115. package/Grid/Grid.js.map +1 -1
  116. package/Grid/index.d.ts +1 -1
  117. package/Grid/index.js +1 -1
  118. package/Grid/index.js.map +1 -1
  119. package/Helpers/index.d.ts +1 -1
  120. package/Helpers/index.js +1 -1
  121. package/Helpers/index.js.map +1 -1
  122. package/Icon/Icon.js +1 -1
  123. package/Icon/Icon.js.map +1 -1
  124. package/Icon/index.d.ts +1 -1
  125. package/Icon/index.js +1 -1
  126. package/Icon/index.js.map +1 -1
  127. package/ImageEditor/index.d.ts +1 -1
  128. package/ImageEditor/index.js +1 -1
  129. package/ImageEditor/index.js.map +1 -1
  130. package/ImageUpload/ImageEditorDialog.d.ts +1 -1
  131. package/ImageUpload/ImageEditorDialog.js.map +1 -1
  132. package/ImageUpload/MultiImageUpload.d.ts +1 -1
  133. package/ImageUpload/MultiImageUpload.js.map +1 -1
  134. package/ImageUpload/SingleImageUpload.d.ts +1 -1
  135. package/ImageUpload/SingleImageUpload.js.map +1 -1
  136. package/ImageUpload/index.d.ts +4 -4
  137. package/ImageUpload/index.js +4 -4
  138. package/ImageUpload/index.js.map +1 -1
  139. package/Input/Input.d.ts +1 -1
  140. package/Input/Input.js +1 -1
  141. package/Input/Input.js.map +1 -1
  142. package/Input/index.d.ts +1 -1
  143. package/Input/index.js +1 -1
  144. package/Input/index.js.map +1 -1
  145. package/List/DataList/DataList.d.ts +2 -2
  146. package/List/DataList/DataList.js.map +1 -1
  147. package/List/DataList/DataListModalOverlay/index.d.ts +2 -3
  148. package/List/DataList/DataListWithSections.d.ts +3 -3
  149. package/List/DataList/DataListWithSections.js.map +1 -1
  150. package/List/DataList/icons/index.d.ts +1 -1
  151. package/List/DataList/icons/index.js +1 -1
  152. package/List/DataList/icons/index.js.map +1 -1
  153. package/List/DataList/index.d.ts +3 -3
  154. package/List/DataList/index.js +3 -3
  155. package/List/DataList/index.js.map +1 -1
  156. package/List/DataList/types.d.ts +1 -1
  157. package/List/DataList/types.js +1 -1
  158. package/List/DataList/types.js.map +1 -1
  159. package/List/List/ListItemAction.js +1 -1
  160. package/List/List/ListItemAction.js.map +1 -1
  161. package/List/List/ListItemGraphic.js +1 -1
  162. package/List/List/ListItemGraphic.js.map +1 -1
  163. package/List/List/ListItemText.js +1 -1
  164. package/List/List/ListItemText.js.map +1 -1
  165. package/List/List/index.d.ts +6 -6
  166. package/List/List/index.js +6 -6
  167. package/List/List/index.js.map +1 -1
  168. package/List/index.d.ts +4 -4
  169. package/List/index.js +4 -4
  170. package/List/index.js.map +1 -1
  171. package/Menu/Menu.js +8 -5
  172. package/Menu/Menu.js.map +1 -1
  173. package/Menu/index.d.ts +1 -1
  174. package/Menu/index.js +1 -1
  175. package/Menu/index.js.map +1 -1
  176. package/Mosaic/index.d.ts +1 -1
  177. package/Mosaic/index.js +1 -1
  178. package/Mosaic/index.js.map +1 -1
  179. package/Progress/index.d.ts +1 -1
  180. package/Progress/index.js +1 -1
  181. package/Progress/index.js.map +1 -1
  182. package/README.md +6 -21
  183. package/Radio/Radio.d.ts +1 -1
  184. package/Radio/Radio.js +1 -1
  185. package/Radio/Radio.js.map +1 -1
  186. package/Radio/RadioGroup.d.ts +1 -1
  187. package/Radio/RadioGroup.js.map +1 -1
  188. package/Radio/index.d.ts +2 -2
  189. package/Radio/index.js +2 -2
  190. package/Radio/index.js.map +1 -1
  191. package/Ripple/index.d.ts +1 -1
  192. package/Ripple/index.js +1 -1
  193. package/Ripple/index.js.map +1 -1
  194. package/Scrollbar/index.d.ts +1 -1
  195. package/Scrollbar/index.js +1 -1
  196. package/Scrollbar/index.js.map +1 -1
  197. package/Select/Select.d.ts +1 -1
  198. package/Select/Select.js.map +1 -1
  199. package/Select/index.d.ts +1 -1
  200. package/Select/index.js +1 -1
  201. package/Select/index.js.map +1 -1
  202. package/Skeleton/index.d.ts +1 -1
  203. package/Skeleton/index.js +1 -1
  204. package/Skeleton/index.js.map +1 -1
  205. package/Slider/Slider.d.ts +1 -1
  206. package/Slider/Slider.js +1 -1
  207. package/Slider/Slider.js.map +1 -1
  208. package/Slider/index.d.ts +1 -1
  209. package/Slider/index.js +1 -1
  210. package/Slider/index.js.map +1 -1
  211. package/Snackbar/index.d.ts +1 -1
  212. package/Snackbar/index.js +1 -1
  213. package/Snackbar/index.js.map +1 -1
  214. package/Switch/Switch.d.ts +1 -1
  215. package/Switch/Switch.js.map +1 -1
  216. package/Switch/index.d.ts +1 -1
  217. package/Switch/index.js +1 -1
  218. package/Switch/index.js.map +1 -1
  219. package/Tabs/Tab.js +2 -2
  220. package/Tabs/Tab.js.map +1 -1
  221. package/Tabs/Tabs.d.ts +1 -1
  222. package/Tabs/Tabs.js.map +1 -1
  223. package/Tabs/index.d.ts +2 -2
  224. package/Tabs/index.js +2 -2
  225. package/Tabs/index.js.map +1 -1
  226. package/Tags/Tags.d.ts +1 -1
  227. package/Tags/Tags.js.map +1 -1
  228. package/Tags/index.d.ts +1 -1
  229. package/Tags/index.js +1 -1
  230. package/Tags/index.js.map +1 -1
  231. package/Tooltip/index.d.ts +1 -1
  232. package/Tooltip/index.js +1 -1
  233. package/Tooltip/index.js.map +1 -1
  234. package/TopAppBar/TopAppBar.js +6 -2
  235. package/TopAppBar/TopAppBar.js.map +1 -1
  236. package/TopAppBar/TopAppBarPrimary.d.ts +1 -1
  237. package/TopAppBar/TopAppBarPrimary.js +1 -1
  238. package/TopAppBar/TopAppBarPrimary.js.map +1 -1
  239. package/TopAppBar/TopAppBarSecondary.d.ts +1 -1
  240. package/TopAppBar/TopAppBarSecondary.js +1 -1
  241. package/TopAppBar/TopAppBarSecondary.js.map +1 -1
  242. package/TopAppBar/index.d.ts +7 -7
  243. package/TopAppBar/index.js +7 -7
  244. package/TopAppBar/index.js.map +1 -1
  245. package/Typography/index.d.ts +1 -1
  246. package/Typography/index.js +1 -1
  247. package/Typography/index.js.map +1 -1
  248. package/package.json +13 -23
  249. package/RichTextEditor/RichTextEditor.d.ts +0 -12
  250. package/RichTextEditor/RichTextEditor.js +0 -17
  251. package/RichTextEditor/RichTextEditor.js.map +0 -1
  252. package/RichTextEditor/index.d.ts +0 -4
  253. package/RichTextEditor/index.js +0 -4
  254. package/RichTextEditor/index.js.map +0 -1
  255. package/Tabs/README.md +0 -19
package/Button/index.js CHANGED
@@ -1,10 +1,10 @@
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";
9
9
 
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Button\";\nexport * from \"./ButtonPrimary\";\nexport * from \"./ButtonSecondary\";\nexport * from \"./ButtonDefault\";\nexport * from \"./ButtonFloating\";\nexport * from \"./ButtonIcon\";\nexport * from \"./CopyButton\";\nexport * from \"./IconButton\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Button.js\";\nexport * from \"./ButtonPrimary.js\";\nexport * from \"./ButtonSecondary.js\";\nexport * from \"./ButtonDefault.js\";\nexport * from \"./ButtonFloating.js\";\nexport * from \"./ButtonIcon.js\";\nexport * from \"./CopyButton.js\";\nexport * from \"./IconButton.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -1,14 +1,14 @@
1
- /// <reference types="react" />
2
- import type { ButtonProps } from "./Button";
1
+ import type { ButtonProps } from "../Button/Button.js";
3
2
  export declare const useMappedButtonProps: (props: ButtonProps) => {
4
3
  text?: import("react").ReactNode;
5
- size?: "sm" | "md" | "lg" | "xl" | null | undefined;
4
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined | undefined;
6
5
  children?: import("react").ReactNode;
7
6
  className?: string | undefined;
8
7
  style?: {
9
8
  [key: string]: any;
10
9
  } | undefined;
11
- onClick?: ((event: import("react").MouseEvent<any, MouseEvent>) => any) | undefined;
10
+ onClick?: ((event: React.MouseEvent<any, MouseEvent>) => any) | undefined;
12
11
  disabled?: boolean | undefined;
12
+ icon?: import("react").ReactNode;
13
13
  "data-testid"?: string | undefined;
14
14
  };
@@ -1,5 +1,5 @@
1
1
  import { useMemo } from "react";
2
- import omit from "lodash/omit";
2
+ import omit from "lodash/omit.js";
3
3
  export const useMappedButtonProps = props => {
4
4
  return useMemo(() => {
5
5
  const mappedButtonProps = {};
@@ -1 +1 @@
1
- {"version":3,"names":["useMemo","omit","useMappedButtonProps","props","mappedButtonProps","small","size","children","text"],"sources":["useMappedButtonProps.ts"],"sourcesContent":["import { useMemo } from \"react\";\nimport omit from \"lodash/omit\";\nimport type { ButtonProps as AdminUiButtonProps } from \"@webiny/admin-ui\";\nimport type { ButtonProps } from \"~/Button/Button\";\n\nexport const useMappedButtonProps = (props: ButtonProps) => {\n return useMemo(() => {\n const mappedButtonProps: Pick<AdminUiButtonProps, \"size\" | \"text\"> = {};\n\n if (props.small === true) {\n mappedButtonProps.size = \"sm\";\n }\n\n if (props.children) {\n mappedButtonProps.text = props.children;\n }\n\n // Return all remaining props omitting unused ones.\n return {\n ...omit(props, [\"flat\", \"ripple\", \"small\"]),\n ...mappedButtonProps\n };\n }, [props]);\n};\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,OAAOC,IAAI,MAAM,aAAa;AAI9B,OAAO,MAAMC,oBAAoB,GAAIC,KAAkB,IAAK;EACxD,OAAOH,OAAO,CAAC,MAAM;IACjB,MAAMI,iBAA4D,GAAG,CAAC,CAAC;IAEvE,IAAID,KAAK,CAACE,KAAK,KAAK,IAAI,EAAE;MACtBD,iBAAiB,CAACE,IAAI,GAAG,IAAI;IACjC;IAEA,IAAIH,KAAK,CAACI,QAAQ,EAAE;MAChBH,iBAAiB,CAACI,IAAI,GAAGL,KAAK,CAACI,QAAQ;IAC3C;;IAEA;IACA,OAAO;MACH,GAAGN,IAAI,CAACE,KAAK,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;MAC3C,GAAGC;IACP,CAAC;EACL,CAAC,EAAE,CAACD,KAAK,CAAC,CAAC;AACf,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useMemo","omit","useMappedButtonProps","props","mappedButtonProps","small","size","children","text"],"sources":["useMappedButtonProps.ts"],"sourcesContent":["import { useMemo } from \"react\";\nimport omit from \"lodash/omit.js\";\nimport type { ButtonProps as AdminUiButtonProps } from \"@webiny/admin-ui\";\nimport type { ButtonProps } from \"~/Button/Button.js\";\n\nexport const useMappedButtonProps = (props: ButtonProps) => {\n return useMemo(() => {\n const mappedButtonProps: Pick<AdminUiButtonProps, \"size\" | \"text\"> = {};\n\n if (props.small === true) {\n mappedButtonProps.size = \"sm\";\n }\n\n if (props.children) {\n mappedButtonProps.text = props.children;\n }\n\n // Return all remaining props omitting unused ones.\n return {\n ...omit(props, [\"flat\", \"ripple\", \"small\"]),\n ...mappedButtonProps\n };\n }, [props]);\n};\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,OAAOC,IAAI,MAAM,gBAAgB;AAIjC,OAAO,MAAMC,oBAAoB,GAAIC,KAAkB,IAAK;EACxD,OAAOH,OAAO,CAAC,MAAM;IACjB,MAAMI,iBAA4D,GAAG,CAAC,CAAC;IAEvE,IAAID,KAAK,CAACE,KAAK,KAAK,IAAI,EAAE;MACtBD,iBAAiB,CAACE,IAAI,GAAG,IAAI;IACjC;IAEA,IAAIH,KAAK,CAACI,QAAQ,EAAE;MAChBH,iBAAiB,CAACI,IAAI,GAAGL,KAAK,CAACI,QAAQ;IAC3C;;IAEA;IACA,OAAO;MACH,GAAGN,IAAI,CAACE,KAAK,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;MAC3C,GAAGC;IACP,CAAC;EACL,CAAC,EAAE,CAACD,KAAK,CAAC,CAAC;AACf,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- export { default as Carousel } from "./Carousel";
1
+ export { default as Carousel } from "./Carousel.js";
package/Carousel/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { default as Carousel } from "./Carousel";
1
+ export { default as Carousel } from "./Carousel.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["default","Carousel"],"sources":["index.ts"],"sourcesContent":["export { default as Carousel } from \"./Carousel\";\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["default","Carousel"],"sources":["index.ts"],"sourcesContent":["export { default as Carousel } from \"./Carousel.js\";\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,QAAQ","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { FormComponentProps } from "../types";
2
+ import type { FormComponentProps } from "../types.js";
3
3
  interface Props extends FormComponentProps {
4
4
  id?: string;
5
5
  label?: string;
@@ -1 +1 @@
1
- {"version":3,"names":["React","Checkbox","AdminCheckbox","Component","onChange","checked","props","render","id","value","label","disabled","indeterminate","description","validation","onClick","createElement","Boolean"],"sources":["Checkbox.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FormComponentProps } from \"~/types\";\nimport { Checkbox as AdminCheckbox } from \"@webiny/admin-ui\";\n\ninterface Props extends FormComponentProps {\n // Component id.\n id?: string;\n\n // Component label.\n label?: string;\n\n // Is checkbox disabled?\n disabled?: boolean;\n\n // onClick callback.\n onClick?: (value: boolean) => void;\n\n // Use when checkbox is not checked nor unchecked.\n indeterminate?: boolean;\n\n // Description beneath the checkbox.\n description?: string;\n\n // For testing purposes.\n \"data-testid\"?: string;\n\n children?: React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Checkbox` component from the `@webiny/admin-ui` package instead.\n */\nclass Checkbox extends React.Component<Props> {\n onChange = (checked: boolean) => {\n this.props.onChange && this.props.onChange(checked);\n };\n\n public override render() {\n const { id, value, label, disabled, indeterminate, description, validation, onClick } =\n this.props;\n\n return (\n <AdminCheckbox\n id={id}\n indeterminate={indeterminate}\n disabled={disabled}\n checked={Boolean(value)}\n onChange={this.onChange}\n onClick={() => typeof onClick === \"function\" && onClick(Boolean(value))}\n label={label}\n data-testid={this.props[\"data-testid\"]}\n description={description}\n validation={validation}\n />\n );\n }\n}\n\nexport default Checkbox;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,QAAQ,IAAIC,aAAa,QAAQ,kBAAkB;AA2B5D;AACA;AACA;AACA;AACA,MAAMD,QAAQ,SAASD,KAAK,CAACG,SAAS,CAAQ;EAC1CC,QAAQ,GAAIC,OAAgB,IAAK;IAC7B,IAAI,CAACC,KAAK,CAACF,QAAQ,IAAI,IAAI,CAACE,KAAK,CAACF,QAAQ,CAACC,OAAO,CAAC;EACvD,CAAC;EAEeE,MAAMA,CAAA,EAAG;IACrB,MAAM;MAAEC,EAAE;MAAEC,KAAK;MAAEC,KAAK;MAAEC,QAAQ;MAAEC,aAAa;MAAEC,WAAW;MAAEC,UAAU;MAAEC;IAAQ,CAAC,GACjF,IAAI,CAACT,KAAK;IAEd,oBACIN,KAAA,CAAAgB,aAAA,CAACd,aAAa;MACVM,EAAE,EAAEA,EAAG;MACPI,aAAa,EAAEA,aAAc;MAC7BD,QAAQ,EAAEA,QAAS;MACnBN,OAAO,EAAEY,OAAO,CAACR,KAAK,CAAE;MACxBL,QAAQ,EAAE,IAAI,CAACA,QAAS;MACxBW,OAAO,EAAEA,CAAA,KAAM,OAAOA,OAAO,KAAK,UAAU,IAAIA,OAAO,CAACE,OAAO,CAACR,KAAK,CAAC,CAAE;MACxEC,KAAK,EAAEA,KAAM;MACb,eAAa,IAAI,CAACJ,KAAK,CAAC,aAAa,CAAE;MACvCO,WAAW,EAAEA,WAAY;MACzBC,UAAU,EAAEA;IAAW,CAC1B,CAAC;EAEV;AACJ;AAEA,eAAeb,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["React","Checkbox","AdminCheckbox","Component","onChange","checked","props","render","id","value","label","disabled","indeterminate","description","validation","onClick","createElement","Boolean"],"sources":["Checkbox.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FormComponentProps } from \"~/types.js\";\nimport { Checkbox as AdminCheckbox } from \"@webiny/admin-ui\";\n\ninterface Props extends FormComponentProps {\n // Component id.\n id?: string;\n\n // Component label.\n label?: string;\n\n // Is checkbox disabled?\n disabled?: boolean;\n\n // onClick callback.\n onClick?: (value: boolean) => void;\n\n // Use when checkbox is not checked nor unchecked.\n indeterminate?: boolean;\n\n // Description beneath the checkbox.\n description?: string;\n\n // For testing purposes.\n \"data-testid\"?: string;\n\n children?: React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Checkbox` component from the `@webiny/admin-ui` package instead.\n */\nclass Checkbox extends React.Component<Props> {\n onChange = (checked: boolean) => {\n this.props.onChange && this.props.onChange(checked);\n };\n\n public override render() {\n const { id, value, label, disabled, indeterminate, description, validation, onClick } =\n this.props;\n\n return (\n <AdminCheckbox\n id={id}\n indeterminate={indeterminate}\n disabled={disabled}\n checked={Boolean(value)}\n onChange={this.onChange}\n onClick={() => typeof onClick === \"function\" && onClick(Boolean(value))}\n label={label}\n data-testid={this.props[\"data-testid\"]}\n description={description}\n validation={validation}\n />\n );\n }\n}\n\nexport default Checkbox;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,QAAQ,IAAIC,aAAa,QAAQ,kBAAkB;AA2B5D;AACA;AACA;AACA;AACA,MAAMD,QAAQ,SAASD,KAAK,CAACG,SAAS,CAAQ;EAC1CC,QAAQ,GAAIC,OAAgB,IAAK;IAC7B,IAAI,CAACC,KAAK,CAACF,QAAQ,IAAI,IAAI,CAACE,KAAK,CAACF,QAAQ,CAACC,OAAO,CAAC;EACvD,CAAC;EAEeE,MAAMA,CAAA,EAAG;IACrB,MAAM;MAAEC,EAAE;MAAEC,KAAK;MAAEC,KAAK;MAAEC,QAAQ;MAAEC,aAAa;MAAEC,WAAW;MAAEC,UAAU;MAAEC;IAAQ,CAAC,GACjF,IAAI,CAACT,KAAK;IAEd,oBACIN,KAAA,CAAAgB,aAAA,CAACd,aAAa;MACVM,EAAE,EAAEA,EAAG;MACPI,aAAa,EAAEA,aAAc;MAC7BD,QAAQ,EAAEA,QAAS;MACnBN,OAAO,EAAEY,OAAO,CAACR,KAAK,CAAE;MACxBL,QAAQ,EAAE,IAAI,CAACA,QAAS;MACxBW,OAAO,EAAEA,CAAA,KAAM,OAAOA,OAAO,KAAK,UAAU,IAAIA,OAAO,CAACE,OAAO,CAACR,KAAK,CAAC,CAAE;MACxEC,KAAK,EAAEA,KAAM;MACb,eAAa,IAAI,CAACJ,KAAK,CAAC,aAAa,CAAE;MACvCO,WAAW,EAAEA,WAAY;MACzBC,UAAU,EAAEA;IAAW,CAC1B,CAAC;EAEV;AACJ;AAEA,eAAeb,QAAQ","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { FormComponentProps } from "../types";
2
+ import type { FormComponentProps } from "../types.js";
3
3
  export interface ChildrenRenderProp {
4
4
  onChange: (id: string | number) => () => void;
5
5
  getValue: (id: string | number) => boolean;
@@ -1 +1 @@
1
- {"version":3,"names":["React","FormComponentDescription","FormComponentErrorMessage","FormComponentLabel","CheckboxGroup","Component","render","description","label","validation","props","isValid","validationIsValid","message","validationMessage","createElement","className","text","children","onChange","value","values","Array","isArray","index","indexOf","splice","push","getValue","id","includes","invalid","Boolean"],"sources":["CheckboxGroup.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FormComponentProps } from \"~/types\";\nimport {\n FormComponentDescription,\n FormComponentErrorMessage,\n FormComponentLabel\n} from \"@webiny/admin-ui\";\n\nexport interface ChildrenRenderProp {\n onChange: (id: string | number) => () => void;\n getValue: (id: string | number) => boolean;\n}\n\ntype Props = FormComponentProps & {\n // Form element's label.\n label?: string;\n\n // Form element's description.\n description?: string;\n\n // An array of Checkbox components.\n children: (props: ChildrenRenderProp) => React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `CheckboxGroup` component from the `@webiny/admin-ui` package instead.\n */\nclass CheckboxGroup extends React.Component<Props> {\n public override render() {\n const { description, label, validation } = this.props;\n const { isValid: validationIsValid, message: validationMessage } = validation || {};\n\n return (\n <div className={\"w-full\"}>\n <FormComponentLabel text={label} />\n <FormComponentDescription text={description} />\n {this.props.children({\n onChange: value => {\n return () => {\n const values = Array.isArray(this.props.value)\n ? [...this.props.value]\n : [];\n const index = values.indexOf(value);\n if (index > -1) {\n values.splice(index, 1);\n } else {\n values.push(value);\n }\n\n this.props.onChange && this.props.onChange(values);\n };\n },\n getValue: id => {\n const values = Array.isArray(this.props.value) ? this.props.value : [];\n return values.includes(id);\n }\n })}\n <FormComponentErrorMessage\n invalid={Boolean(validationIsValid === false)}\n text={validationMessage}\n />\n </div>\n );\n }\n}\n\nexport default CheckboxGroup;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SACIC,wBAAwB,EACxBC,yBAAyB,EACzBC,kBAAkB,QACf,kBAAkB;AAkBzB;AACA;AACA;AACA;AACA,MAAMC,aAAa,SAASJ,KAAK,CAACK,SAAS,CAAQ;EAC/BC,MAAMA,CAAA,EAAG;IACrB,MAAM;MAAEC,WAAW;MAAEC,KAAK;MAAEC;IAAW,CAAC,GAAG,IAAI,CAACC,KAAK;IACrD,MAAM;MAAEC,OAAO,EAAEC,iBAAiB;MAAEC,OAAO,EAAEC;IAAkB,CAAC,GAAGL,UAAU,IAAI,CAAC,CAAC;IAEnF,oBACIT,KAAA,CAAAe,aAAA;MAAKC,SAAS,EAAE;IAAS,gBACrBhB,KAAA,CAAAe,aAAA,CAACZ,kBAAkB;MAACc,IAAI,EAAET;IAAM,CAAE,CAAC,eACnCR,KAAA,CAAAe,aAAA,CAACd,wBAAwB;MAACgB,IAAI,EAAEV;IAAY,CAAE,CAAC,EAC9C,IAAI,CAACG,KAAK,CAACQ,QAAQ,CAAC;MACjBC,QAAQ,EAAEC,KAAK,IAAI;QACf,OAAO,MAAM;UACT,MAAMC,MAAM,GAAGC,KAAK,CAACC,OAAO,CAAC,IAAI,CAACb,KAAK,CAACU,KAAK,CAAC,GACxC,CAAC,GAAG,IAAI,CAACV,KAAK,CAACU,KAAK,CAAC,GACrB,EAAE;UACR,MAAMI,KAAK,GAAGH,MAAM,CAACI,OAAO,CAACL,KAAK,CAAC;UACnC,IAAII,KAAK,GAAG,CAAC,CAAC,EAAE;YACZH,MAAM,CAACK,MAAM,CAACF,KAAK,EAAE,CAAC,CAAC;UAC3B,CAAC,MAAM;YACHH,MAAM,CAACM,IAAI,CAACP,KAAK,CAAC;UACtB;UAEA,IAAI,CAACV,KAAK,CAACS,QAAQ,IAAI,IAAI,CAACT,KAAK,CAACS,QAAQ,CAACE,MAAM,CAAC;QACtD,CAAC;MACL,CAAC;MACDO,QAAQ,EAAEC,EAAE,IAAI;QACZ,MAAMR,MAAM,GAAGC,KAAK,CAACC,OAAO,CAAC,IAAI,CAACb,KAAK,CAACU,KAAK,CAAC,GAAG,IAAI,CAACV,KAAK,CAACU,KAAK,GAAG,EAAE;QACtE,OAAOC,MAAM,CAACS,QAAQ,CAACD,EAAE,CAAC;MAC9B;IACJ,CAAC,CAAC,eACF7B,KAAA,CAAAe,aAAA,CAACb,yBAAyB;MACtB6B,OAAO,EAAEC,OAAO,CAACpB,iBAAiB,KAAK,KAAK,CAAE;MAC9CK,IAAI,EAAEH;IAAkB,CAC3B,CACA,CAAC;EAEd;AACJ;AAEA,eAAeV,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["React","FormComponentDescription","FormComponentErrorMessage","FormComponentLabel","CheckboxGroup","Component","render","description","label","validation","props","isValid","validationIsValid","message","validationMessage","createElement","className","text","children","onChange","value","values","Array","isArray","index","indexOf","splice","push","getValue","id","includes","invalid","Boolean"],"sources":["CheckboxGroup.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FormComponentProps } from \"~/types.js\";\nimport {\n FormComponentDescription,\n FormComponentErrorMessage,\n FormComponentLabel\n} from \"@webiny/admin-ui\";\n\nexport interface ChildrenRenderProp {\n onChange: (id: string | number) => () => void;\n getValue: (id: string | number) => boolean;\n}\n\ntype Props = FormComponentProps & {\n // Form element's label.\n label?: string;\n\n // Form element's description.\n description?: string;\n\n // An array of Checkbox components.\n children: (props: ChildrenRenderProp) => React.ReactNode;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `CheckboxGroup` component from the `@webiny/admin-ui` package instead.\n */\nclass CheckboxGroup extends React.Component<Props> {\n public override render() {\n const { description, label, validation } = this.props;\n const { isValid: validationIsValid, message: validationMessage } = validation || {};\n\n return (\n <div className={\"w-full\"}>\n <FormComponentLabel text={label} />\n <FormComponentDescription text={description} />\n {this.props.children({\n onChange: value => {\n return () => {\n const values = Array.isArray(this.props.value)\n ? [...this.props.value]\n : [];\n const index = values.indexOf(value);\n if (index > -1) {\n values.splice(index, 1);\n } else {\n values.push(value);\n }\n\n this.props.onChange && this.props.onChange(values);\n };\n },\n getValue: id => {\n const values = Array.isArray(this.props.value) ? this.props.value : [];\n return values.includes(id);\n }\n })}\n <FormComponentErrorMessage\n invalid={Boolean(validationIsValid === false)}\n text={validationMessage}\n />\n </div>\n );\n }\n}\n\nexport default CheckboxGroup;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SACIC,wBAAwB,EACxBC,yBAAyB,EACzBC,kBAAkB,QACf,kBAAkB;AAkBzB;AACA;AACA;AACA;AACA,MAAMC,aAAa,SAASJ,KAAK,CAACK,SAAS,CAAQ;EAC/BC,MAAMA,CAAA,EAAG;IACrB,MAAM;MAAEC,WAAW;MAAEC,KAAK;MAAEC;IAAW,CAAC,GAAG,IAAI,CAACC,KAAK;IACrD,MAAM;MAAEC,OAAO,EAAEC,iBAAiB;MAAEC,OAAO,EAAEC;IAAkB,CAAC,GAAGL,UAAU,IAAI,CAAC,CAAC;IAEnF,oBACIT,KAAA,CAAAe,aAAA;MAAKC,SAAS,EAAE;IAAS,gBACrBhB,KAAA,CAAAe,aAAA,CAACZ,kBAAkB;MAACc,IAAI,EAAET;IAAM,CAAE,CAAC,eACnCR,KAAA,CAAAe,aAAA,CAACd,wBAAwB;MAACgB,IAAI,EAAEV;IAAY,CAAE,CAAC,EAC9C,IAAI,CAACG,KAAK,CAACQ,QAAQ,CAAC;MACjBC,QAAQ,EAAEC,KAAK,IAAI;QACf,OAAO,MAAM;UACT,MAAMC,MAAM,GAAGC,KAAK,CAACC,OAAO,CAAC,IAAI,CAACb,KAAK,CAACU,KAAK,CAAC,GACxC,CAAC,GAAG,IAAI,CAACV,KAAK,CAACU,KAAK,CAAC,GACrB,EAAE;UACR,MAAMI,KAAK,GAAGH,MAAM,CAACI,OAAO,CAACL,KAAK,CAAC;UACnC,IAAII,KAAK,GAAG,CAAC,CAAC,EAAE;YACZH,MAAM,CAACK,MAAM,CAACF,KAAK,EAAE,CAAC,CAAC;UAC3B,CAAC,MAAM;YACHH,MAAM,CAACM,IAAI,CAACP,KAAK,CAAC;UACtB;UAEA,IAAI,CAACV,KAAK,CAACS,QAAQ,IAAI,IAAI,CAACT,KAAK,CAACS,QAAQ,CAACE,MAAM,CAAC;QACtD,CAAC;MACL,CAAC;MACDO,QAAQ,EAAEC,EAAE,IAAI;QACZ,MAAMR,MAAM,GAAGC,KAAK,CAACC,OAAO,CAAC,IAAI,CAACb,KAAK,CAACU,KAAK,CAAC,GAAG,IAAI,CAACV,KAAK,CAACU,KAAK,GAAG,EAAE;QACtE,OAAOC,MAAM,CAACS,QAAQ,CAACD,EAAE,CAAC;MAC9B;IACJ,CAAC,CAAC,eACF7B,KAAA,CAAAe,aAAA,CAACb,yBAAyB;MACtB6B,OAAO,EAAEC,OAAO,CAACpB,iBAAiB,KAAK,KAAK,CAAE;MAC9CK,IAAI,EAAEH;IAAkB,CAC3B,CACA,CAAC;EAEd;AACJ;AAEA,eAAeV,aAAa","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export { default as Checkbox } from "./Checkbox";
2
- export { default as CheckboxGroup } from "./CheckboxGroup";
1
+ export { default as Checkbox } from "./Checkbox.js";
2
+ export { default as CheckboxGroup } from "./CheckboxGroup.js";
package/Checkbox/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { default as Checkbox } from "./Checkbox";
2
- export { default as CheckboxGroup } from "./CheckboxGroup";
1
+ export { default as Checkbox } from "./Checkbox.js";
2
+ export { default as CheckboxGroup } from "./CheckboxGroup.js";
3
3
 
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["default","Checkbox","CheckboxGroup"],"sources":["index.ts"],"sourcesContent":["export { default as Checkbox } from \"./Checkbox\";\nexport { default as CheckboxGroup } from \"./CheckboxGroup\";\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,QAAQ;AAC5B,SAASD,OAAO,IAAIE,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["default","Checkbox","CheckboxGroup"],"sources":["index.ts"],"sourcesContent":["export { default as Checkbox } from \"./Checkbox.js\";\nexport { default as CheckboxGroup } from \"./CheckboxGroup.js\";\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,QAAQ;AAC5B,SAASD,OAAO,IAAIE,aAAa","ignoreList":[]}
package/Chips/Chip.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { useCallback } from "react";
2
2
  import { Tag as AdminTag } from "@webiny/admin-ui";
3
- import omit from "lodash/omit";
3
+ import omit from "lodash/omit.js";
4
4
  /**
5
5
  * @deprecated This component is deprecated and will be removed in future releases.
6
6
  * Please use the `Tag` component from the `@webiny/admin-ui` package instead.
package/Chips/Chip.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","Tag","AdminTag","omit","Chip","props","children","label","trailingIcon","onRemove","onInteraction","rest","getEventWithDetails","ev","detail","chipId","id","onRemoveCb","onClick","createIconElement","icon","isValidElement","undefined","createElement","Object","assign","content","dismissIconElement","onDismiss"],"sources":["Chip.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { Tag as AdminTag } from \"@webiny/admin-ui\";\nimport omit from \"lodash/omit\";\n\nexport interface RmwcChipProps {\n /** Text for your Chip. */\n label?: React.ReactNode;\n /** @deprecated makes the Chip appear selected. */\n selected?: boolean;\n /** @deprecated Instance of an Icon Component. */\n icon?: any;\n /** @deprecated Instance of an Icon Component. */\n trailingIcon?: any;\n /** @deprecated Defaults to true. Set this to false if your trailing icon is something other than a remove button. */\n trailingIconRemovesChip?: boolean;\n /** An optional chip ID that will be included in callback evt.detail. If this is not passed, RMWC will attempt to use the \"key\" prop if present. */\n id?: string;\n /** @deprecated Includes an optional checkmark for the chips selected state. */\n checkmark?: boolean;\n /** @deprecated Additional children will be rendered in the text area. */\n children?: React.ReactNode;\n /** A callback for click or enter key. This should be used over onClick for accessibility reasons. evt.detail = { chipId: string } */\n onInteraction?: (evt: any) => void;\n /** @deprecated A callback for click or enter key for the trailing icon. material-components-web always treats this as an intent to remove the chip. evt.detail = { chipId: string } */\n onTrailingIconInteraction?: (evt: any) => void;\n /** A callback that is fired once the chip is in an exited state from removing it. evt.detail = { chipId: string } */\n onRemove?: (evt: any) => void;\n /** @deprecated Advanced: A reference to the MDCFoundation. */\n foundationRef?: any;\n}\n\nexport interface ChipProps extends Omit<RmwcChipProps, \"onRemove\" | \"trailingIcon\"> {\n onRemove?: (\n ev: React.MouseEvent<HTMLSpanElement> | React.SyntheticEvent<HTMLSpanElement>\n ) => void;\n trailingIcon?: React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Tag` component from the `@webiny/admin-ui` package instead.\n */\nexport const Chip = (props: ChipProps) => {\n const { children, label, trailingIcon, onRemove, onInteraction, ...rest } = props;\n\n const getEventWithDetails = useCallback(\n (ev: React.SyntheticEvent<HTMLSpanElement>) => {\n return {\n ...ev,\n detail: {\n chipId: props.id\n }\n };\n },\n [props.id]\n );\n\n const onRemoveCb = useCallback(\n (ev: React.SyntheticEvent<HTMLSpanElement>) => {\n if (!onRemove) {\n return;\n }\n\n onRemove(getEventWithDetails(ev));\n },\n [onRemove]\n );\n\n const onClick = useCallback(\n (ev: React.SyntheticEvent<HTMLSpanElement>) => {\n if (!onInteraction) {\n return;\n }\n\n onInteraction(getEventWithDetails(ev));\n },\n [onInteraction]\n );\n\n const createIconElement = useCallback((icon: React.ReactNode) => {\n if (React.isValidElement(icon)) {\n return icon;\n }\n\n return undefined;\n }, []);\n\n return (\n <AdminTag\n {...omit(rest, [\n \"selected\",\n \"icon\",\n \"trailingIconRemovesChip\",\n \"onTrailingIconInteraction\",\n \"checkmark\",\n \"foundationRef\"\n ])}\n content={children || label}\n dismissIconElement={createIconElement(trailingIcon)}\n onDismiss={onRemove ? onRemoveCb : undefined}\n onClick={onClick}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,GAAG,IAAIC,QAAQ,QAAQ,kBAAkB;AAClD,OAAOC,IAAI,MAAM,aAAa;AAoC9B;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAI,GAAIC,KAAgB,IAAK;EACtC,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,YAAY;IAAEC,QAAQ;IAAEC,aAAa;IAAE,GAAGC;EAAK,CAAC,GAAGN,KAAK;EAEjF,MAAMO,mBAAmB,GAAGZ,WAAW,CAClCa,EAAyC,IAAK;IAC3C,OAAO;MACH,GAAGA,EAAE;MACLC,MAAM,EAAE;QACJC,MAAM,EAAEV,KAAK,CAACW;MAClB;IACJ,CAAC;EACL,CAAC,EACD,CAACX,KAAK,CAACW,EAAE,CACb,CAAC;EAED,MAAMC,UAAU,GAAGjB,WAAW,CACzBa,EAAyC,IAAK;IAC3C,IAAI,CAACJ,QAAQ,EAAE;MACX;IACJ;IAEAA,QAAQ,CAACG,mBAAmB,CAACC,EAAE,CAAC,CAAC;EACrC,CAAC,EACD,CAACJ,QAAQ,CACb,CAAC;EAED,MAAMS,OAAO,GAAGlB,WAAW,CACtBa,EAAyC,IAAK;IAC3C,IAAI,CAACH,aAAa,EAAE;MAChB;IACJ;IAEAA,aAAa,CAACE,mBAAmB,CAACC,EAAE,CAAC,CAAC;EAC1C,CAAC,EACD,CAACH,aAAa,CAClB,CAAC;EAED,MAAMS,iBAAiB,GAAGnB,WAAW,CAAEoB,IAAqB,IAAK;IAC7D,iBAAIrB,KAAK,CAACsB,cAAc,CAACD,IAAI,CAAC,EAAE;MAC5B,OAAOA,IAAI;IACf;IAEA,OAAOE,SAAS;EACpB,CAAC,EAAE,EAAE,CAAC;EAEN,oBACIvB,KAAA,CAAAwB,aAAA,CAACrB,QAAQ,EAAAsB,MAAA,CAAAC,MAAA,KACDtB,IAAI,CAACQ,IAAI,EAAE,CACX,UAAU,EACV,MAAM,EACN,yBAAyB,EACzB,2BAA2B,EAC3B,WAAW,EACX,eAAe,CAClB,CAAC;IACFe,OAAO,EAAEpB,QAAQ,IAAIC,KAAM;IAC3BoB,kBAAkB,EAAER,iBAAiB,CAACX,YAAY,CAAE;IACpDoB,SAAS,EAAEnB,QAAQ,GAAGQ,UAAU,GAAGK,SAAU;IAC7CJ,OAAO,EAAEA;EAAQ,EACpB,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallback","Tag","AdminTag","omit","Chip","props","children","label","trailingIcon","onRemove","onInteraction","rest","getEventWithDetails","ev","detail","chipId","id","onRemoveCb","onClick","createIconElement","icon","isValidElement","undefined","createElement","Object","assign","content","dismissIconElement","onDismiss"],"sources":["Chip.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { Tag as AdminTag } from \"@webiny/admin-ui\";\nimport omit from \"lodash/omit.js\";\n\nexport interface RmwcChipProps {\n /** Text for your Chip. */\n label?: React.ReactNode;\n /** @deprecated makes the Chip appear selected. */\n selected?: boolean;\n /** @deprecated Instance of an Icon Component. */\n icon?: any;\n /** @deprecated Instance of an Icon Component. */\n trailingIcon?: any;\n /** @deprecated Defaults to true. Set this to false if your trailing icon is something other than a remove button. */\n trailingIconRemovesChip?: boolean;\n /** An optional chip ID that will be included in callback evt.detail. If this is not passed, RMWC will attempt to use the \"key\" prop if present. */\n id?: string;\n /** @deprecated Includes an optional checkmark for the chips selected state. */\n checkmark?: boolean;\n /** @deprecated Additional children will be rendered in the text area. */\n children?: React.ReactNode;\n /** A callback for click or enter key. This should be used over onClick for accessibility reasons. evt.detail = { chipId: string } */\n onInteraction?: (evt: any) => void;\n /** @deprecated A callback for click or enter key for the trailing icon. material-components-web always treats this as an intent to remove the chip. evt.detail = { chipId: string } */\n onTrailingIconInteraction?: (evt: any) => void;\n /** A callback that is fired once the chip is in an exited state from removing it. evt.detail = { chipId: string } */\n onRemove?: (evt: any) => void;\n /** @deprecated Advanced: A reference to the MDCFoundation. */\n foundationRef?: any;\n}\n\nexport interface ChipProps extends Omit<RmwcChipProps, \"onRemove\" | \"trailingIcon\"> {\n onRemove?: (\n ev: React.MouseEvent<HTMLSpanElement> | React.SyntheticEvent<HTMLSpanElement>\n ) => void;\n trailingIcon?: React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Tag` component from the `@webiny/admin-ui` package instead.\n */\nexport const Chip = (props: ChipProps) => {\n const { children, label, trailingIcon, onRemove, onInteraction, ...rest } = props;\n\n const getEventWithDetails = useCallback(\n (ev: React.SyntheticEvent<HTMLSpanElement>) => {\n return {\n ...ev,\n detail: {\n chipId: props.id\n }\n };\n },\n [props.id]\n );\n\n const onRemoveCb = useCallback(\n (ev: React.SyntheticEvent<HTMLSpanElement>) => {\n if (!onRemove) {\n return;\n }\n\n onRemove(getEventWithDetails(ev));\n },\n [onRemove]\n );\n\n const onClick = useCallback(\n (ev: React.SyntheticEvent<HTMLSpanElement>) => {\n if (!onInteraction) {\n return;\n }\n\n onInteraction(getEventWithDetails(ev));\n },\n [onInteraction]\n );\n\n const createIconElement = useCallback((icon: React.ReactNode) => {\n if (React.isValidElement(icon)) {\n return icon;\n }\n\n return undefined;\n }, []);\n\n return (\n <AdminTag\n {...omit(rest, [\n \"selected\",\n \"icon\",\n \"trailingIconRemovesChip\",\n \"onTrailingIconInteraction\",\n \"checkmark\",\n \"foundationRef\"\n ])}\n content={children || label}\n dismissIconElement={createIconElement(trailingIcon)}\n onDismiss={onRemove ? onRemoveCb : undefined}\n onClick={onClick}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,GAAG,IAAIC,QAAQ,QAAQ,kBAAkB;AAClD,OAAOC,IAAI,MAAM,gBAAgB;AAoCjC;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAI,GAAIC,KAAgB,IAAK;EACtC,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,YAAY;IAAEC,QAAQ;IAAEC,aAAa;IAAE,GAAGC;EAAK,CAAC,GAAGN,KAAK;EAEjF,MAAMO,mBAAmB,GAAGZ,WAAW,CAClCa,EAAyC,IAAK;IAC3C,OAAO;MACH,GAAGA,EAAE;MACLC,MAAM,EAAE;QACJC,MAAM,EAAEV,KAAK,CAACW;MAClB;IACJ,CAAC;EACL,CAAC,EACD,CAACX,KAAK,CAACW,EAAE,CACb,CAAC;EAED,MAAMC,UAAU,GAAGjB,WAAW,CACzBa,EAAyC,IAAK;IAC3C,IAAI,CAACJ,QAAQ,EAAE;MACX;IACJ;IAEAA,QAAQ,CAACG,mBAAmB,CAACC,EAAE,CAAC,CAAC;EACrC,CAAC,EACD,CAACJ,QAAQ,CACb,CAAC;EAED,MAAMS,OAAO,GAAGlB,WAAW,CACtBa,EAAyC,IAAK;IAC3C,IAAI,CAACH,aAAa,EAAE;MAChB;IACJ;IAEAA,aAAa,CAACE,mBAAmB,CAACC,EAAE,CAAC,CAAC;EAC1C,CAAC,EACD,CAACH,aAAa,CAClB,CAAC;EAED,MAAMS,iBAAiB,GAAGnB,WAAW,CAAEoB,IAAqB,IAAK;IAC7D,iBAAIrB,KAAK,CAACsB,cAAc,CAACD,IAAI,CAAC,EAAE;MAC5B,OAAOA,IAAI;IACf;IAEA,OAAOE,SAAS;EACpB,CAAC,EAAE,EAAE,CAAC;EAEN,oBACIvB,KAAA,CAAAwB,aAAA,CAACrB,QAAQ,EAAAsB,MAAA,CAAAC,MAAA,KACDtB,IAAI,CAACQ,IAAI,EAAE,CACX,UAAU,EACV,MAAM,EACN,yBAAyB,EACzB,2BAA2B,EAC3B,WAAW,EACX,eAAe,CAClB,CAAC;IACFe,OAAO,EAAEpB,QAAQ,IAAIC,KAAM;IAC3BoB,kBAAkB,EAAER,iBAAiB,CAACX,YAAY,CAAE;IACpDoB,SAAS,EAAEnB,QAAQ,GAAGQ,UAAU,GAAGK,SAAU;IAC7CJ,OAAO,EAAEA;EAAQ,EACpB,CAAC;AAEV,CAAC","ignoreList":[]}
package/Chips/Chips.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { Chip } from "./Chip";
2
+ import type { Chip } from "./Chip.js";
3
3
  export interface ChipsProps {
4
4
  /**
5
5
  * Chips to show
package/Chips/Chips.js CHANGED
@@ -11,7 +11,7 @@ export const Chips = props => {
11
11
  ...rest
12
12
  } = props;
13
13
  return /*#__PURE__*/React.createElement("div", Object.assign({}, rest, {
14
- className: cn("mdc-evolution-chip-set wby-flex wby-gap-sm wby-py-sm", className)
14
+ className: cn("mdc-evolution-chip-set flex gap-sm py-sm", className)
15
15
  }), children);
16
16
  };
17
17
 
@@ -1 +1 @@
1
- {"version":3,"names":["React","cn","Chips","props","children","className","rest","createElement","Object","assign"],"sources":["Chips.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn } from \"@webiny/admin-ui\";\nimport type { Chip } from \"./Chip\";\n\nexport interface ChipsProps {\n /**\n * Chips to show\n */\n children?: React.ReactElement<typeof Chip> | React.ReactElement<typeof Chip>[];\n\n /**\n * Is chip disabled?\n */\n disabled?: boolean;\n\n /**\n * CSS class name\n */\n className?: string;\n\n /**\n * Style object.\n */\n style?: React.CSSProperties;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Tag` component from the `@webiny/admin-ui` package instead.\n */\nexport const Chips = (props: ChipsProps) => {\n const { children, className, ...rest } = props;\n\n return (\n <div\n {...rest}\n className={cn(\"mdc-evolution-chip-set wby-flex wby-gap-sm wby-py-sm\", className)}\n >\n {children}\n </div>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,EAAE,QAAQ,kBAAkB;AAyBrC;AACA;AACA;AACA;AACA,OAAO,MAAMC,KAAK,GAAIC,KAAiB,IAAK;EACxC,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAE,GAAGC;EAAK,CAAC,GAAGH,KAAK;EAE9C,oBACIH,KAAA,CAAAO,aAAA,QAAAC,MAAA,CAAAC,MAAA,KACQH,IAAI;IACRD,SAAS,EAAEJ,EAAE,CAAC,sDAAsD,EAAEI,SAAS;EAAE,IAEhFD,QACA,CAAC;AAEd,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","cn","Chips","props","children","className","rest","createElement","Object","assign"],"sources":["Chips.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn } from \"@webiny/admin-ui\";\nimport type { Chip } from \"./Chip.js\";\n\nexport interface ChipsProps {\n /**\n * Chips to show\n */\n children?: React.ReactElement<typeof Chip> | React.ReactElement<typeof Chip>[];\n\n /**\n * Is chip disabled?\n */\n disabled?: boolean;\n\n /**\n * CSS class name\n */\n className?: string;\n\n /**\n * Style object.\n */\n style?: React.CSSProperties;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Tag` component from the `@webiny/admin-ui` package instead.\n */\nexport const Chips = (props: ChipsProps) => {\n const { children, className, ...rest } = props;\n\n return (\n <div {...rest} className={cn(\"mdc-evolution-chip-set flex gap-sm py-sm\", className)}>\n {children}\n </div>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,EAAE,QAAQ,kBAAkB;AAyBrC;AACA;AACA;AACA;AACA,OAAO,MAAMC,KAAK,GAAIC,KAAiB,IAAK;EACxC,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAE,GAAGC;EAAK,CAAC,GAAGH,KAAK;EAE9C,oBACIH,KAAA,CAAAO,aAAA,QAAAC,MAAA,CAAAC,MAAA,KAASH,IAAI;IAAED,SAAS,EAAEJ,EAAE,CAAC,0CAA0C,EAAEI,SAAS;EAAE,IAC/ED,QACA,CAAC;AAEd,CAAC","ignoreList":[]}
package/Chips/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Chips";
2
- export * from "./Chip";
1
+ export * from "./Chips.js";
2
+ export * from "./Chip.js";
package/Chips/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./Chips";
2
- export * from "./Chip";
1
+ export * from "./Chips.js";
2
+ export * from "./Chip.js";
3
3
 
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Chips\";\nexport * from \"./Chip\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Chips.js\";\nexport * from \"./Chip.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { FormComponentProps } from "../types";
2
+ import type { FormComponentProps } from "../types.js";
3
3
  interface Props extends FormComponentProps {
4
4
  mode: string;
5
5
  theme: string;
@@ -1 +1 @@
1
- {"version":3,"names":["React","CodeEditor","AdminCodeEditor","readOnly","props","createElement","Object","assign","disabled"],"sources":["CodeEditor.tsx"],"sourcesContent":["import React from \"react\";\nimport { CodeEditor as AdminCodeEditor } from \"@webiny/admin-ui\";\nimport type { FormComponentProps } from \"~/types\";\n\ninterface Props extends FormComponentProps {\n mode: string;\n\n theme: string;\n\n readOnly?: boolean;\n\n // Description beneath the input.\n description?: React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `CodeEditor` component props from the `@webiny/admin-ui` package instead.\n */\nexport const CodeEditor = ({ readOnly, ...props }: Props) => {\n return <AdminCodeEditor disabled={readOnly} {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,IAAIC,eAAe,QAAQ,kBAAkB;AAchE;AACA;AACA;AACA;AACA,OAAO,MAAMD,UAAU,GAAGA,CAAC;EAAEE,QAAQ;EAAE,GAAGC;AAAa,CAAC,KAAK;EACzD,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,eAAe,EAAAI,MAAA,CAAAC,MAAA;IAACC,QAAQ,EAAEL;EAAS,GAAKC,KAAK,CAAG,CAAC;AAC7D,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","CodeEditor","AdminCodeEditor","readOnly","props","createElement","Object","assign","disabled"],"sources":["CodeEditor.tsx"],"sourcesContent":["import React from \"react\";\nimport { CodeEditor as AdminCodeEditor } from \"@webiny/admin-ui\";\nimport type { FormComponentProps } from \"~/types.js\";\n\ninterface Props extends FormComponentProps {\n mode: string;\n\n theme: string;\n\n readOnly?: boolean;\n\n // Description beneath the input.\n description?: React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please find out the new `CodeEditor` component props from the `@webiny/admin-ui` package instead.\n */\nexport const CodeEditor = ({ readOnly, ...props }: Props) => {\n return <AdminCodeEditor disabled={readOnly} {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,IAAIC,eAAe,QAAQ,kBAAkB;AAchE;AACA;AACA;AACA;AACA,OAAO,MAAMD,UAAU,GAAGA,CAAC;EAAEE,QAAQ;EAAE,GAAGC;AAAa,CAAC,KAAK;EACzD,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,eAAe,EAAAI,MAAA,CAAAC,MAAA;IAACC,QAAQ,EAAEL;EAAS,GAAKC,KAAK,CAAG,CAAC;AAC7D,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- export * from "./CodeEditor";
1
+ export * from "./CodeEditor.js";
@@ -1,3 +1,3 @@
1
- export * from "./CodeEditor";
1
+ export * from "./CodeEditor.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./CodeEditor\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./CodeEditor.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { FormComponentProps } from "../types";
2
+ import type { FormComponentProps } from "../types.js";
3
3
  interface ColorPickerProps extends FormComponentProps<string> {
4
4
  label?: string;
5
5
  disable?: boolean;
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useMemo","ColorPicker","AdminColorPicker","value","onChange","align","originalAlign","props","onValueChange","undefined","createElement","Object","assign"],"sources":["ColorPicker.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\nimport { ColorPicker as AdminColorPicker } from \"@webiny/admin-ui\";\nimport type { FormComponentProps } from \"~/types\";\n\ninterface ColorPickerProps extends FormComponentProps<string> {\n // Component label.\n label?: string;\n\n // Is color picker disabled?\n disable?: boolean;\n\n // Description beneath the color picker.\n description?: string;\n\n // Popover alignment (default is `left`).\n align?: \"left\" | \"right\";\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `ColorPicker` component from the `@webiny/admin-ui` package instead.\n */\nconst ColorPicker = ({ value, onChange, align: originalAlign, ...props }: ColorPickerProps) => {\n const onValueChange = useCallback((value: string) => onChange && onChange(value), [onChange]);\n\n const align = useMemo(() => {\n if (!originalAlign) {\n return undefined;\n }\n\n if (originalAlign === \"right\") {\n return \"end\";\n }\n\n return \"start\";\n }, [originalAlign]);\n\n return <AdminColorPicker {...props} value={value} onChange={onValueChange} align={align} />;\n};\n\nexport { ColorPicker };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SAASC,WAAW,IAAIC,gBAAgB,QAAQ,kBAAkB;AAiBlE;AACA;AACA;AACA;AACA,MAAMD,WAAW,GAAGA,CAAC;EAAEE,KAAK;EAAEC,QAAQ;EAAEC,KAAK,EAAEC,aAAa;EAAE,GAAGC;AAAwB,CAAC,KAAK;EAC3F,MAAMC,aAAa,GAAGT,WAAW,CAAEI,KAAa,IAAKC,QAAQ,IAAIA,QAAQ,CAACD,KAAK,CAAC,EAAE,CAACC,QAAQ,CAAC,CAAC;EAE7F,MAAMC,KAAK,GAAGL,OAAO,CAAC,MAAM;IACxB,IAAI,CAACM,aAAa,EAAE;MAChB,OAAOG,SAAS;IACpB;IAEA,IAAIH,aAAa,KAAK,OAAO,EAAE;MAC3B,OAAO,KAAK;IAChB;IAEA,OAAO,OAAO;EAClB,CAAC,EAAE,CAACA,aAAa,CAAC,CAAC;EAEnB,oBAAOR,KAAA,CAAAY,aAAA,CAACR,gBAAgB,EAAAS,MAAA,CAAAC,MAAA,KAAKL,KAAK;IAAEJ,KAAK,EAAEA,KAAM;IAACC,QAAQ,EAAEI,aAAc;IAACH,KAAK,EAAEA;EAAM,EAAE,CAAC;AAC/F,CAAC;AAED,SAASJ,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallback","useMemo","ColorPicker","AdminColorPicker","value","onChange","align","originalAlign","props","onValueChange","undefined","createElement","Object","assign"],"sources":["ColorPicker.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\nimport { ColorPicker as AdminColorPicker } from \"@webiny/admin-ui\";\nimport type { FormComponentProps } from \"~/types.js\";\n\ninterface ColorPickerProps extends FormComponentProps<string> {\n // Component label.\n label?: string;\n\n // Is color picker disabled?\n disable?: boolean;\n\n // Description beneath the color picker.\n description?: string;\n\n // Popover alignment (default is `left`).\n align?: \"left\" | \"right\";\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `ColorPicker` component from the `@webiny/admin-ui` package instead.\n */\nconst ColorPicker = ({ value, onChange, align: originalAlign, ...props }: ColorPickerProps) => {\n const onValueChange = useCallback((value: string) => onChange && onChange(value), [onChange]);\n\n const align = useMemo(() => {\n if (!originalAlign) {\n return undefined;\n }\n\n if (originalAlign === \"right\") {\n return \"end\";\n }\n\n return \"start\";\n }, [originalAlign]);\n\n return <AdminColorPicker {...props} value={value} onChange={onValueChange} align={align} />;\n};\n\nexport { ColorPicker };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SAASC,WAAW,IAAIC,gBAAgB,QAAQ,kBAAkB;AAiBlE;AACA;AACA;AACA;AACA,MAAMD,WAAW,GAAGA,CAAC;EAAEE,KAAK;EAAEC,QAAQ;EAAEC,KAAK,EAAEC,aAAa;EAAE,GAAGC;AAAwB,CAAC,KAAK;EAC3F,MAAMC,aAAa,GAAGT,WAAW,CAAEI,KAAa,IAAKC,QAAQ,IAAIA,QAAQ,CAACD,KAAK,CAAC,EAAE,CAACC,QAAQ,CAAC,CAAC;EAE7F,MAAMC,KAAK,GAAGL,OAAO,CAAC,MAAM;IACxB,IAAI,CAACM,aAAa,EAAE;MAChB,OAAOG,SAAS;IACpB;IAEA,IAAIH,aAAa,KAAK,OAAO,EAAE;MAC3B,OAAO,KAAK;IAChB;IAEA,OAAO,OAAO;EAClB,CAAC,EAAE,CAACA,aAAa,CAAC,CAAC;EAEnB,oBAAOR,KAAA,CAAAY,aAAA,CAACR,gBAAgB,EAAAS,MAAA,CAAAC,MAAA,KAAKL,KAAK;IAAEJ,KAAK,EAAEA,KAAM;IAACC,QAAQ,EAAEI,aAAc;IAACH,KAAK,EAAEA;EAAM,EAAE,CAAC;AAC/F,CAAC;AAED,SAASJ,WAAW","ignoreList":[]}
@@ -1 +1 @@
1
- export * from "./ColorPicker";
1
+ export * from "./ColorPicker.js";
@@ -1,3 +1,3 @@
1
- export * from "./ColorPicker";
1
+ export * from "./ColorPicker.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ColorPicker\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ColorPicker.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import { Dialog, DialogCancel, DialogActions, DialogTitle, DialogContent } from "./../Dialog";
3
- import { CircularProgress } from "../Progress";
4
- import { ButtonPrimary } from "../Button";
2
+ import { Dialog, DialogCancel, DialogActions, DialogTitle, DialogContent } from "./../Dialog/index.js";
3
+ import { CircularProgress } from "../Progress/index.js";
4
+ import { ButtonPrimary } from "../Button/index.js";
5
5
  /**
6
6
  * Use ConfirmationDialog component to display a list of choices, once the handler is triggered.
7
7
  */
@@ -1 +1 @@
1
- {"version":3,"names":["React","Dialog","DialogCancel","DialogActions","DialogTitle","DialogContent","CircularProgress","ButtonPrimary","ConfirmationDialog","Component","defaultProps","title","message","loading","createElement","__isMounted","callbacks","onAccept","onCancel","state","show","componentDidMount","componentWillUnmount","showConfirmation","setState","hideConfirmation","render","Fragment","style","props","open","onClose","onClick","disabled","disableConfirm","children"],"sources":["ConfirmationDialog.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Dialog, DialogCancel, DialogActions, DialogTitle, DialogContent } from \"./../Dialog\";\n\nimport { CircularProgress } from \"../Progress\";\nimport { ButtonPrimary } from \"~/Button\";\n\ninterface ChildrenRenderProp {\n showConfirmation: (onAccept?: () => void, onCancel?: () => void) => any;\n}\n\ninterface ConfirmationCallbacks {\n onAccept?: () => void;\n onCancel?: () => void;\n}\n\ninterface Props {\n // Title of confirmation dialog\n title?: React.ReactNode;\n\n // Message of confirmation dialog\n message?: React.ReactNode;\n\n // This element will be rendered during loading\n loading?: React.ReactNode;\n\n // For testing purposes\n \"data-testid\"?: string;\n\n // An element that will trigger the confirmation dialog.\n children: (props: ChildrenRenderProp) => React.ReactNode;\n\n // Is `Confirm` button disabled\n disableConfirm?: boolean;\n\n // Dialog component's custom in-line styles.\n style?: React.CSSProperties;\n}\n\ninterface ConfirmationDialogState {\n show: boolean;\n loading: boolean;\n}\n\n/**\n * Use ConfirmationDialog component to display a list of choices, once the handler is triggered.\n */\nclass ConfirmationDialog extends React.Component<Props, ConfirmationDialogState> {\n static defaultProps = {\n title: \"Confirmation\",\n message: \"Are you sure you want to continue?\",\n loading: <CircularProgress />\n };\n\n __isMounted = false;\n\n callbacks: ConfirmationCallbacks = {\n onAccept: () => {\n return void 0;\n },\n onCancel: () => {\n return void 0;\n }\n };\n\n public override state = {\n show: false,\n loading: false\n };\n\n public override componentDidMount() {\n this.__isMounted = true;\n }\n\n public override componentWillUnmount() {\n this.__isMounted = false;\n }\n\n private readonly showConfirmation = (onAccept?: () => void, onCancel?: () => void) => {\n this.callbacks = {\n onAccept,\n onCancel\n };\n this.setState({ show: true });\n };\n\n private readonly hideConfirmation = () => {\n this.setState({ show: false });\n };\n\n private readonly onAccept = async () => {\n const { onAccept } = this.callbacks;\n if (typeof onAccept === \"function\") {\n this.setState({ loading: true });\n await onAccept();\n if (this.__isMounted) {\n this.setState({ loading: false, show: false });\n }\n }\n };\n\n private readonly onCancel = async () => {\n const { onCancel } = this.callbacks;\n if (typeof onCancel === \"function\") {\n await onCancel();\n }\n };\n\n public override render() {\n return (\n <React.Fragment>\n <Dialog\n style={this.props.style}\n open={this.state.show}\n onClose={this.hideConfirmation}\n data-testid={this.props[\"data-testid\"]}\n >\n {this.state.loading ? this.props.loading : null}\n <DialogTitle>{this.props.title}</DialogTitle>\n <DialogContent>{this.props.message}</DialogContent>\n <DialogActions>\n <DialogCancel onClick={this.onCancel}>Cancel</DialogCancel>\n <ButtonPrimary\n data-testid=\"confirmationdialog-confirm-action\"\n onClick={this.onAccept}\n disabled={this.props.disableConfirm}\n >\n Confirm\n </ButtonPrimary>\n </DialogActions>\n </Dialog>\n {this.props.children({\n showConfirmation: this.showConfirmation\n })}\n </React.Fragment>\n );\n }\n}\n\nexport { ConfirmationDialog };\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["React","Dialog","DialogCancel","DialogActions","DialogTitle","DialogContent","CircularProgress","ButtonPrimary","ConfirmationDialog","Component","defaultProps","title","message","loading","createElement","__isMounted","callbacks","onAccept","onCancel","state","show","componentDidMount","componentWillUnmount","showConfirmation","setState","hideConfirmation","render","Fragment","style","props","open","onClose","onClick","disabled","disableConfirm","children"],"sources":["ConfirmationDialog.tsx"],"sourcesContent":["import React from \"react\";\n\nimport {\n Dialog,\n DialogCancel,\n DialogActions,\n DialogTitle,\n DialogContent\n} from \"./../Dialog/index.js\";\n\nimport { CircularProgress } from \"../Progress/index.js\";\nimport { ButtonPrimary } from \"~/Button/index.js\";\n\ninterface ChildrenRenderProp {\n showConfirmation: (onAccept?: () => void, onCancel?: () => void) => any;\n}\n\ninterface ConfirmationCallbacks {\n onAccept?: () => void;\n onCancel?: () => void;\n}\n\ninterface Props {\n // Title of confirmation dialog\n title?: React.ReactNode;\n\n // Message of confirmation dialog\n message?: React.ReactNode;\n\n // This element will be rendered during loading\n loading?: React.ReactNode;\n\n // For testing purposes\n \"data-testid\"?: string;\n\n // An element that will trigger the confirmation dialog.\n children: (props: ChildrenRenderProp) => React.ReactNode;\n\n // Is `Confirm` button disabled\n disableConfirm?: boolean;\n\n // Dialog component's custom in-line styles.\n style?: React.CSSProperties;\n}\n\ninterface ConfirmationDialogState {\n show: boolean;\n loading: boolean;\n}\n\n/**\n * Use ConfirmationDialog component to display a list of choices, once the handler is triggered.\n */\nclass ConfirmationDialog extends React.Component<Props, ConfirmationDialogState> {\n static defaultProps = {\n title: \"Confirmation\",\n message: \"Are you sure you want to continue?\",\n loading: <CircularProgress />\n };\n\n __isMounted = false;\n\n callbacks: ConfirmationCallbacks = {\n onAccept: () => {\n return void 0;\n },\n onCancel: () => {\n return void 0;\n }\n };\n\n public override state = {\n show: false,\n loading: false\n };\n\n public override componentDidMount() {\n this.__isMounted = true;\n }\n\n public override componentWillUnmount() {\n this.__isMounted = false;\n }\n\n private readonly showConfirmation = (onAccept?: () => void, onCancel?: () => void) => {\n this.callbacks = {\n onAccept,\n onCancel\n };\n this.setState({ show: true });\n };\n\n private readonly hideConfirmation = () => {\n this.setState({ show: false });\n };\n\n private readonly onAccept = async () => {\n const { onAccept } = this.callbacks;\n if (typeof onAccept === \"function\") {\n this.setState({ loading: true });\n await onAccept();\n if (this.__isMounted) {\n this.setState({ loading: false, show: false });\n }\n }\n };\n\n private readonly onCancel = async () => {\n const { onCancel } = this.callbacks;\n if (typeof onCancel === \"function\") {\n await onCancel();\n }\n };\n\n public override render() {\n return (\n <React.Fragment>\n <Dialog\n style={this.props.style}\n open={this.state.show}\n onClose={this.hideConfirmation}\n data-testid={this.props[\"data-testid\"]}\n >\n {this.state.loading ? this.props.loading : null}\n <DialogTitle>{this.props.title}</DialogTitle>\n <DialogContent>{this.props.message}</DialogContent>\n <DialogActions>\n <DialogCancel onClick={this.onCancel}>Cancel</DialogCancel>\n <ButtonPrimary\n data-testid=\"confirmationdialog-confirm-action\"\n onClick={this.onAccept}\n disabled={this.props.disableConfirm}\n >\n Confirm\n </ButtonPrimary>\n </DialogActions>\n </Dialog>\n {this.props.children({\n showConfirmation: this.showConfirmation\n })}\n </React.Fragment>\n );\n }\n}\n\nexport { ConfirmationDialog };\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export * from "./ConfirmationDialog";
2
- export * from "./withConfirmation";
1
+ export * from "./ConfirmationDialog.js";
2
+ export * from "./withConfirmation.js";
@@ -1,4 +1,4 @@
1
- export * from "./ConfirmationDialog";
2
- export * from "./withConfirmation";
1
+ export * from "./ConfirmationDialog.js";
2
+ export * from "./withConfirmation.js";
3
3
 
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ConfirmationDialog\";\nexport * from \"./withConfirmation\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ConfirmationDialog.js\";\nexport * from \"./withConfirmation.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ConfirmationDialog } from "./ConfirmationDialog";
2
+ import { ConfirmationDialog } from "./ConfirmationDialog.js";
3
3
  export const withConfirmation = dialogProps => {
4
4
  return Component => {
5
5
  return function withConfirmationRender(ownProps) {
@@ -1 +1 @@
1
- {"version":3,"names":["React","ConfirmationDialog","withConfirmation","dialogProps","Component","withConfirmationRender","ownProps","props","createElement","showConfirmation","Object","assign"],"sources":["withConfirmation.tsx"],"sourcesContent":["import React from \"react\";\nimport { ConfirmationDialog } from \"./ConfirmationDialog\";\n\ntype ConfirmationProps = {\n title?: React.ReactNode;\n message?: React.ReactNode;\n};\n\ntype WithConfirmationParams = (props: Record<string, any>) => ConfirmationProps;\n\nexport type WithConfirmationProps = {\n showConfirmation: (confirm: () => void, cancel: () => void) => void;\n};\n\nexport const withConfirmation = (dialogProps: WithConfirmationParams) => {\n return (Component: typeof React.Component) => {\n return function withConfirmationRender(ownProps: Record<string, any>) {\n const props = typeof dialogProps === \"function\" ? dialogProps(ownProps) : dialogProps;\n return (\n <ConfirmationDialog {...props}>\n {({ showConfirmation }) => (\n <Component {...ownProps} showConfirmation={showConfirmation} />\n )}\n </ConfirmationDialog>\n );\n };\n };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB;AAa3B,OAAO,MAAMC,gBAAgB,GAAIC,WAAmC,IAAK;EACrE,OAAQC,SAAiC,IAAK;IAC1C,OAAO,SAASC,sBAAsBA,CAACC,QAA6B,EAAE;MAClE,MAAMC,KAAK,GAAG,OAAOJ,WAAW,KAAK,UAAU,GAAGA,WAAW,CAACG,QAAQ,CAAC,GAAGH,WAAW;MACrF,oBACIH,KAAA,CAAAQ,aAAA,CAACP,kBAAkB,EAAKM,KAAK,EACxB,CAAC;QAAEE;MAAiB,CAAC,kBAClBT,KAAA,CAAAQ,aAAA,CAACJ,SAAS,EAAAM,MAAA,CAAAC,MAAA,KAAKL,QAAQ;QAAEG,gBAAgB,EAAEA;MAAiB,EAAE,CAElD,CAAC;IAE7B,CAAC;EACL,CAAC;AACL,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","ConfirmationDialog","withConfirmation","dialogProps","Component","withConfirmationRender","ownProps","props","createElement","showConfirmation","Object","assign"],"sources":["withConfirmation.tsx"],"sourcesContent":["import React from \"react\";\nimport { ConfirmationDialog } from \"./ConfirmationDialog.js\";\n\ntype ConfirmationProps = {\n title?: React.ReactNode;\n message?: React.ReactNode;\n};\n\ntype WithConfirmationParams = (props: Record<string, any>) => ConfirmationProps;\n\nexport type WithConfirmationProps = {\n showConfirmation: (confirm: () => void, cancel: () => void) => void;\n};\n\nexport const withConfirmation = (dialogProps: WithConfirmationParams) => {\n return (Component: typeof React.Component) => {\n return function withConfirmationRender(ownProps: Record<string, any>) {\n const props = typeof dialogProps === \"function\" ? dialogProps(ownProps) : dialogProps;\n return (\n <ConfirmationDialog {...props}>\n {({ showConfirmation }) => (\n <Component {...ownProps} showConfirmation={showConfirmation} />\n )}\n </ConfirmationDialog>\n );\n };\n };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB;AAa3B,OAAO,MAAMC,gBAAgB,GAAIC,WAAmC,IAAK;EACrE,OAAQC,SAAiC,IAAK;IAC1C,OAAO,SAASC,sBAAsBA,CAACC,QAA6B,EAAE;MAClE,MAAMC,KAAK,GAAG,OAAOJ,WAAW,KAAK,UAAU,GAAGA,WAAW,CAACG,QAAQ,CAAC,GAAGH,WAAW;MACrF,oBACIH,KAAA,CAAAQ,aAAA,CAACP,kBAAkB,EAAKM,KAAK,EACxB,CAAC;QAAEE;MAAiB,CAAC,kBAClBT,KAAA,CAAAQ,aAAA,CAACJ,SAAS,EAAAM,MAAA,CAAAC,MAAA,KAAKL,QAAQ;QAAEG,gBAAgB,EAAEA;MAAiB,EAAE,CAElD,CAAC;IAE7B,CAAC;EACL,CAAC;AACL,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- export * from "./DataTable";
1
+ export * from "./DataTable.js";
@@ -1,3 +1,3 @@
1
- export * from "./DataTable";
1
+ export * from "./DataTable.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./DataTable\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./DataTable.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- export { DateComponent as Date } from "./Date";
1
+ export { DateComponent as Date } from "./Date.js";
package/DateTime/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { DateComponent as Date } from "./Date";
1
+ export { DateComponent as Date } from "./Date.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DateComponent","Date"],"sources":["index.ts"],"sourcesContent":["export { DateComponent as Date } from \"./Date\";\n"],"mappings":"AAAA,SAASA,aAAa,IAAIC,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["DateComponent","Date"],"sources":["index.ts"],"sourcesContent":["export { DateComponent as Date } from \"./Date.js\";\n"],"mappings":"AAAA,SAASA,aAAa,IAAIC,IAAI","ignoreList":[]}
package/Dialog/Dialog.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import { Button as AdminUiButton, Dialog as AdminUiDialog } from "@webiny/admin-ui";
3
- import { DialogHeader as AdminUiDialogHeader } from "@webiny/admin-ui/Dialog/components/DialogHeader";
4
- import { DialogFooter as AdminUiDialogFooter } from "@webiny/admin-ui/Dialog/components/DialogFooter";
5
- import { DialogClosePrimitive as AdminUiDialogClose } from "@webiny/admin-ui/Dialog/components/DialogClose";
6
- import { DialogBody } from "@webiny/admin-ui/Dialog/components/DialogBody";
3
+ import { DialogHeader as AdminUiDialogHeader } from "@webiny/admin-ui/Dialog/components/DialogHeader.js";
4
+ import { DialogFooter as AdminUiDialogFooter } from "@webiny/admin-ui/Dialog/components/DialogFooter.js";
5
+ import { DialogClose as AdminUiDialogClose } from "@webiny/admin-ui/Dialog/components/DialogClose.js";
6
+ import { DialogBody } from "@webiny/admin-ui/Dialog/components/DialogBody.js";
7
7
  /**
8
8
  * @deprecated This component is deprecated and will be removed in future releases.
9
9
  * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.
@@ -1 +1 @@
1
- {"version":3,"names":["React","Button","AdminUiButton","Dialog","AdminUiDialog","DialogHeader","AdminUiDialogHeader","DialogFooter","AdminUiDialogFooter","DialogClosePrimitive","AdminUiDialogClose","DialogBody","DialogActions","props","createElement","actions","children","DialogButton","Object","assign","variant","text","DialogAccept","DialogCancel","asChild","displayName","DialogContent","DialogTitle","title","onClose","onOpened","open","showCloseButton","preventOutsideDismiss","rest","bodyPadding","dismissible","onOpen"],"sources":["Dialog.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n Button as AdminUiButton,\n type ButtonProps as AdminUiButtonProps,\n Dialog as AdminUiDialog,\n type DialogProps as AdminUiDialogProps\n} from \"@webiny/admin-ui\";\nimport { DialogHeader as AdminUiDialogHeader } from \"@webiny/admin-ui/Dialog/components/DialogHeader\";\nimport { DialogFooter as AdminUiDialogFooter } from \"@webiny/admin-ui/Dialog/components/DialogFooter\";\nimport { DialogClosePrimitive as AdminUiDialogClose } from \"@webiny/admin-ui/Dialog/components/DialogClose\";\nimport { DialogBody } from \"@webiny/admin-ui/Dialog/components/DialogBody\";\n\nexport interface DialogActionsProps {\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogActions = (props: DialogActionsProps) => {\n return <AdminUiDialogFooter actions={props.children} />;\n};\n\nexport interface DialogButtonProps extends AdminUiButtonProps {\n children?: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogButton = (props: DialogButtonProps) => {\n return <AdminUiButton {...props} variant={\"secondary\"} text={props.text || props.children} />;\n};\n\nexport interface DialogAcceptProps extends AdminUiButtonProps {\n children?: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogAccept = (props: DialogAcceptProps) => {\n return <AdminUiButton {...props} variant={\"primary\"} text={props.text || props.children} />;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogCancel = (props: DialogButtonProps) => {\n return (\n <AdminUiDialogClose asChild>\n <AdminUiButton {...props} variant={\"secondary\"} text={props.text || props.children} />\n </AdminUiDialogClose>\n );\n};\n\nDialogActions.displayName = \"DialogActions\";\n\nexport interface DialogContentProps {\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogContent = (props: DialogContentProps) => {\n return <DialogBody>{props.children}</DialogBody>;\n};\n\nDialogContent.displayName = \"DialogContent\";\n\nexport interface DialogTitleProps {\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogTitle = (props: DialogTitleProps) => {\n return <AdminUiDialogHeader title={props.children} />;\n};\n\nDialogTitle.displayName = \"DialogTitle\";\n\nexport type DialogOnClose = () => void;\n\nexport interface DialogProps extends AdminUiDialogProps {\n onClose?: DialogOnClose;\n onOpened?: () => void;\n preventOutsideDismiss?: boolean;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const Dialog = ({\n onClose,\n onOpened,\n open,\n showCloseButton,\n children,\n preventOutsideDismiss,\n ...rest\n}: DialogProps) => {\n return (\n <AdminUiDialog\n open={open}\n bodyPadding={false}\n dismissible={preventOutsideDismiss === true ? false : true}\n showCloseButton={showCloseButton}\n onClose={onClose}\n onOpen={onOpened}\n {...rest}\n >\n {children}\n </AdminUiDialog>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,MAAM,IAAIC,aAAa,EAEvBC,MAAM,IAAIC,aAAa,QAEpB,kBAAkB;AACzB,SAASC,YAAY,IAAIC,mBAAmB,QAAQ,iDAAiD;AACrG,SAASC,YAAY,IAAIC,mBAAmB,QAAQ,iDAAiD;AACrG,SAASC,oBAAoB,IAAIC,kBAAkB,QAAQ,gDAAgD;AAC3G,SAASC,UAAU,QAAQ,+CAA+C;AAM1E;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAIC,KAAyB,IAAK;EACxD,oBAAOb,KAAA,CAAAc,aAAA,CAACN,mBAAmB;IAACO,OAAO,EAAEF,KAAK,CAACG;EAAS,CAAE,CAAC;AAC3D,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAIJ,KAAwB,IAAK;EACtD,oBAAOb,KAAA,CAAAc,aAAA,CAACZ,aAAa,EAAAgB,MAAA,CAAAC,MAAA,KAAKN,KAAK;IAAEO,OAAO,EAAE,WAAY;IAACC,IAAI,EAAER,KAAK,CAACQ,IAAI,IAAIR,KAAK,CAACG;EAAS,EAAE,CAAC;AACjG,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMM,YAAY,GAAIT,KAAwB,IAAK;EACtD,oBAAOb,KAAA,CAAAc,aAAA,CAACZ,aAAa,EAAAgB,MAAA,CAAAC,MAAA,KAAKN,KAAK;IAAEO,OAAO,EAAE,SAAU;IAACC,IAAI,EAAER,KAAK,CAACQ,IAAI,IAAIR,KAAK,CAACG;EAAS,EAAE,CAAC;AAC/F,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMO,YAAY,GAAIV,KAAwB,IAAK;EACtD,oBACIb,KAAA,CAAAc,aAAA,CAACJ,kBAAkB;IAACc,OAAO;EAAA,gBACvBxB,KAAA,CAAAc,aAAA,CAACZ,aAAa,EAAAgB,MAAA,CAAAC,MAAA,KAAKN,KAAK;IAAEO,OAAO,EAAE,WAAY;IAACC,IAAI,EAAER,KAAK,CAACQ,IAAI,IAAIR,KAAK,CAACG;EAAS,EAAE,CACrE,CAAC;AAE7B,CAAC;AAEDJ,aAAa,CAACa,WAAW,GAAG,eAAe;AAM3C;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAIb,KAAyB,IAAK;EACxD,oBAAOb,KAAA,CAAAc,aAAA,CAACH,UAAU,QAAEE,KAAK,CAACG,QAAqB,CAAC;AACpD,CAAC;AAEDU,aAAa,CAACD,WAAW,GAAG,eAAe;AAM3C;AACA;AACA;AACA;AACA,OAAO,MAAME,WAAW,GAAId,KAAuB,IAAK;EACpD,oBAAOb,KAAA,CAAAc,aAAA,CAACR,mBAAmB;IAACsB,KAAK,EAAEf,KAAK,CAACG;EAAS,CAAE,CAAC;AACzD,CAAC;AAEDW,WAAW,CAACF,WAAW,GAAG,aAAa;AAUvC;AACA;AACA;AACA;AACA,OAAO,MAAMtB,MAAM,GAAGA,CAAC;EACnB0B,OAAO;EACPC,QAAQ;EACRC,IAAI;EACJC,eAAe;EACfhB,QAAQ;EACRiB,qBAAqB;EACrB,GAAGC;AACM,CAAC,KAAK;EACf,oBACIlC,KAAA,CAAAc,aAAA,CAACV,aAAa,EAAAc,MAAA,CAAAC,MAAA;IACVY,IAAI,EAAEA,IAAK;IACXI,WAAW,EAAE,KAAM;IACnBC,WAAW,EAAEH,qBAAqB,KAAK,IAAI,GAAG,KAAK,GAAG,IAAK;IAC3DD,eAAe,EAAEA,eAAgB;IACjCH,OAAO,EAAEA,OAAQ;IACjBQ,MAAM,EAAEP;EAAS,GACbI,IAAI,GAEPlB,QACU,CAAC;AAExB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Button","AdminUiButton","Dialog","AdminUiDialog","DialogHeader","AdminUiDialogHeader","DialogFooter","AdminUiDialogFooter","DialogClose","AdminUiDialogClose","DialogBody","DialogActions","props","createElement","actions","children","DialogButton","Object","assign","variant","text","DialogAccept","DialogCancel","asChild","displayName","DialogContent","DialogTitle","title","onClose","onOpened","open","showCloseButton","preventOutsideDismiss","rest","bodyPadding","dismissible","onOpen"],"sources":["Dialog.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n Button as AdminUiButton,\n type ButtonProps as AdminUiButtonProps,\n Dialog as AdminUiDialog,\n type DialogProps as AdminUiDialogProps\n} from \"@webiny/admin-ui\";\nimport { DialogHeader as AdminUiDialogHeader } from \"@webiny/admin-ui/Dialog/components/DialogHeader.js\";\nimport { DialogFooter as AdminUiDialogFooter } from \"@webiny/admin-ui/Dialog/components/DialogFooter.js\";\nimport { DialogClose as AdminUiDialogClose } from \"@webiny/admin-ui/Dialog/components/DialogClose.js\";\nimport { DialogBody } from \"@webiny/admin-ui/Dialog/components/DialogBody.js\";\n\nexport interface DialogActionsProps {\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogActions = (props: DialogActionsProps) => {\n return <AdminUiDialogFooter actions={props.children} />;\n};\n\nexport interface DialogButtonProps extends AdminUiButtonProps {\n children?: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogButton = (props: DialogButtonProps) => {\n return <AdminUiButton {...props} variant={\"secondary\"} text={props.text || props.children} />;\n};\n\nexport interface DialogAcceptProps extends AdminUiButtonProps {\n children?: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogAccept = (props: DialogAcceptProps) => {\n return <AdminUiButton {...props} variant={\"primary\"} text={props.text || props.children} />;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogCancel = (props: DialogButtonProps) => {\n return (\n <AdminUiDialogClose asChild>\n <AdminUiButton {...props} variant={\"secondary\"} text={props.text || props.children} />\n </AdminUiDialogClose>\n );\n};\n\nDialogActions.displayName = \"DialogActions\";\n\nexport interface DialogContentProps {\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogContent = (props: DialogContentProps) => {\n return <DialogBody>{props.children}</DialogBody>;\n};\n\nDialogContent.displayName = \"DialogContent\";\n\nexport interface DialogTitleProps {\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const DialogTitle = (props: DialogTitleProps) => {\n return <AdminUiDialogHeader title={props.children} />;\n};\n\nDialogTitle.displayName = \"DialogTitle\";\n\nexport type DialogOnClose = () => void;\n\nexport interface DialogProps extends AdminUiDialogProps {\n onClose?: DialogOnClose;\n onOpened?: () => void;\n preventOutsideDismiss?: boolean;\n}\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nexport const Dialog = ({\n onClose,\n onOpened,\n open,\n showCloseButton,\n children,\n preventOutsideDismiss,\n ...rest\n}: DialogProps) => {\n return (\n <AdminUiDialog\n open={open}\n bodyPadding={false}\n dismissible={preventOutsideDismiss === true ? false : true}\n showCloseButton={showCloseButton}\n onClose={onClose}\n onOpen={onOpened}\n {...rest}\n >\n {children}\n </AdminUiDialog>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,MAAM,IAAIC,aAAa,EAEvBC,MAAM,IAAIC,aAAa,QAEpB,kBAAkB;AACzB,SAASC,YAAY,IAAIC,mBAAmB,QAAQ,oDAAoD;AACxG,SAASC,YAAY,IAAIC,mBAAmB,QAAQ,oDAAoD;AACxG,SAASC,WAAW,IAAIC,kBAAkB,QAAQ,mDAAmD;AACrG,SAASC,UAAU,QAAQ,kDAAkD;AAM7E;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAIC,KAAyB,IAAK;EACxD,oBAAOb,KAAA,CAAAc,aAAA,CAACN,mBAAmB;IAACO,OAAO,EAAEF,KAAK,CAACG;EAAS,CAAE,CAAC;AAC3D,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAIJ,KAAwB,IAAK;EACtD,oBAAOb,KAAA,CAAAc,aAAA,CAACZ,aAAa,EAAAgB,MAAA,CAAAC,MAAA,KAAKN,KAAK;IAAEO,OAAO,EAAE,WAAY;IAACC,IAAI,EAAER,KAAK,CAACQ,IAAI,IAAIR,KAAK,CAACG;EAAS,EAAE,CAAC;AACjG,CAAC;AAMD;AACA;AACA;AACA;AACA,OAAO,MAAMM,YAAY,GAAIT,KAAwB,IAAK;EACtD,oBAAOb,KAAA,CAAAc,aAAA,CAACZ,aAAa,EAAAgB,MAAA,CAAAC,MAAA,KAAKN,KAAK;IAAEO,OAAO,EAAE,SAAU;IAACC,IAAI,EAAER,KAAK,CAACQ,IAAI,IAAIR,KAAK,CAACG;EAAS,EAAE,CAAC;AAC/F,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMO,YAAY,GAAIV,KAAwB,IAAK;EACtD,oBACIb,KAAA,CAAAc,aAAA,CAACJ,kBAAkB;IAACc,OAAO;EAAA,gBACvBxB,KAAA,CAAAc,aAAA,CAACZ,aAAa,EAAAgB,MAAA,CAAAC,MAAA,KAAKN,KAAK;IAAEO,OAAO,EAAE,WAAY;IAACC,IAAI,EAAER,KAAK,CAACQ,IAAI,IAAIR,KAAK,CAACG;EAAS,EAAE,CACrE,CAAC;AAE7B,CAAC;AAEDJ,aAAa,CAACa,WAAW,GAAG,eAAe;AAM3C;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAIb,KAAyB,IAAK;EACxD,oBAAOb,KAAA,CAAAc,aAAA,CAACH,UAAU,QAAEE,KAAK,CAACG,QAAqB,CAAC;AACpD,CAAC;AAEDU,aAAa,CAACD,WAAW,GAAG,eAAe;AAM3C;AACA;AACA;AACA;AACA,OAAO,MAAME,WAAW,GAAId,KAAuB,IAAK;EACpD,oBAAOb,KAAA,CAAAc,aAAA,CAACR,mBAAmB;IAACsB,KAAK,EAAEf,KAAK,CAACG;EAAS,CAAE,CAAC;AACzD,CAAC;AAEDW,WAAW,CAACF,WAAW,GAAG,aAAa;AAUvC;AACA;AACA;AACA;AACA,OAAO,MAAMtB,MAAM,GAAGA,CAAC;EACnB0B,OAAO;EACPC,QAAQ;EACRC,IAAI;EACJC,eAAe;EACfhB,QAAQ;EACRiB,qBAAqB;EACrB,GAAGC;AACM,CAAC,KAAK;EACf,oBACIlC,KAAA,CAAAc,aAAA,CAACV,aAAa,EAAAc,MAAA,CAAAC,MAAA;IACVY,IAAI,EAAEA,IAAK;IACXI,WAAW,EAAE,KAAM;IACnBC,WAAW,EAAEH,qBAAqB,KAAK,IAAI,GAAG,KAAK,GAAG,IAAK;IAC3DD,eAAe,EAAEA,eAAgB;IACjCH,OAAO,EAAEA,OAAQ;IACjBQ,MAAM,EAAEP;EAAS,GACbI,IAAI,GAEPlB,QACU,CAAC;AAExB,CAAC","ignoreList":[]}
package/Dialog/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./Dialog";
1
+ export * from "./Dialog.js";
package/Dialog/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Dialog";
1
+ export * from "./Dialog.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Dialog\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Dialog.js\";\n"],"mappings":"AAAA","ignoreList":[]}
package/Drawer/Drawer.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Drawer as AdminUiDrawer } from "@webiny/admin-ui";
3
- import { DrawerHeader as AdminUiDrawerHeader } from "@webiny/admin-ui/Drawer/components/DrawerHeader";
3
+ import { DrawerHeader as AdminUiDrawerHeader } from "@webiny/admin-ui/Drawer/components/DrawerHeader.js";
4
4
 
5
5
  /**
6
6
  * Use Drawer component to display navigation for the whole app or just a small section of it.
@@ -1 +1 @@
1
- {"version":3,"names":["React","Drawer","AdminUiDrawer","DrawerHeader","AdminUiDrawerHeader","children","props","createElement","Object","assign","side","DrawerRight","DrawerLeft","title","description","DrawerContent","Fragment"],"sources":["Drawer.tsx"],"sourcesContent":["import React from \"react\";\nimport { Drawer as AdminUiDrawer, type DrawerProps as AdminUiDrawerProps } from \"@webiny/admin-ui\";\nimport { DrawerHeader as AdminUiDrawerHeader } from \"@webiny/admin-ui/Drawer/components/DrawerHeader\";\n\n/**\n * Use Drawer component to display navigation for the whole app or just a small section of it.\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst Drawer = ({ children, ...props }: DrawerProps) => {\n return (\n <AdminUiDrawer side={\"left\"} {...props}>\n {children}\n </AdminUiDrawer>\n );\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerRight = (props: DrawerProps) => {\n return <Drawer side={\"right\"} {...props} />;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerLeft = (props: DrawerProps) => {\n return <Drawer side={\"left\"} {...props} />;\n};\n\ntype DrawerHeaderProps = {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS 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 `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerHeader = (props: DrawerHeaderProps) => {\n return <AdminUiDrawerHeader title={props.children} description={\"\"} />;\n};\n\nexport type DrawerContentProps = {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS 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 `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerContent = (props: DrawerContentProps) => {\n return <>{props.children}</>;\n};\n\nexport interface DrawerProps extends AdminUiDrawerProps {\n /**\n * @deprecated Property is no longer supported.\n */\n dismissible?: boolean;\n\n onClose?: () => void;\n}\n\nexport { Drawer, DrawerHeader, DrawerContent, DrawerRight, DrawerLeft };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,aAAa,QAAgD,kBAAkB;AAClG,SAASC,YAAY,IAAIC,mBAAmB,QAAQ,iDAAiD;;AAErG;AACA;AACA;AACA;AACA;AACA,MAAMH,MAAM,GAAGA,CAAC;EAAEI,QAAQ;EAAE,GAAGC;AAAmB,CAAC,KAAK;EACpD,oBACIN,KAAA,CAAAO,aAAA,CAACL,aAAa,EAAAM,MAAA,CAAAC,MAAA;IAACC,IAAI,EAAE;EAAO,GAAKJ,KAAK,GACjCD,QACU,CAAC;AAExB,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMM,WAAW,GAAIL,KAAkB,IAAK;EACxC,oBAAON,KAAA,CAAAO,aAAA,CAACN,MAAM,EAAAO,MAAA,CAAAC,MAAA;IAACC,IAAI,EAAE;EAAQ,GAAKJ,KAAK,CAAG,CAAC;AAC/C,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMM,UAAU,GAAIN,KAAkB,IAAK;EACvC,oBAAON,KAAA,CAAAO,aAAA,CAACN,MAAM,EAAAO,MAAA,CAAAC,MAAA;IAACC,IAAI,EAAE;EAAO,GAAKJ,KAAK,CAAG,CAAC;AAC9C,CAAC;AAcD;AACA;AACA;AACA;AACA,MAAMH,YAAY,GAAIG,KAAwB,IAAK;EAC/C,oBAAON,KAAA,CAAAO,aAAA,CAACH,mBAAmB;IAACS,KAAK,EAAEP,KAAK,CAACD,QAAS;IAACS,WAAW,EAAE;EAAG,CAAE,CAAC;AAC1E,CAAC;AAcD;AACA;AACA;AACA;AACA,MAAMC,aAAa,GAAIT,KAAyB,IAAK;EACjD,oBAAON,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAgB,QAAA,QAAGV,KAAK,CAACD,QAAW,CAAC;AAChC,CAAC;AAWD,SAASJ,MAAM,EAAEE,YAAY,EAAEY,aAAa,EAAEJ,WAAW,EAAEC,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["React","Drawer","AdminUiDrawer","DrawerHeader","AdminUiDrawerHeader","children","props","createElement","Object","assign","side","DrawerRight","DrawerLeft","title","description","DrawerContent","Fragment"],"sources":["Drawer.tsx"],"sourcesContent":["import React from \"react\";\nimport { Drawer as AdminUiDrawer, type DrawerProps as AdminUiDrawerProps } from \"@webiny/admin-ui\";\nimport { DrawerHeader as AdminUiDrawerHeader } from \"@webiny/admin-ui/Drawer/components/DrawerHeader.js\";\n\n/**\n * Use Drawer component to display navigation for the whole app or just a small section of it.\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst Drawer = ({ children, ...props }: DrawerProps) => {\n return (\n <AdminUiDrawer side={\"left\"} {...props}>\n {children}\n </AdminUiDrawer>\n );\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerRight = (props: DrawerProps) => {\n return <Drawer side={\"right\"} {...props} />;\n};\n\n/**\n * @deprecated This component is deprecated and will be removed in future releases.\n * Please use the `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerLeft = (props: DrawerProps) => {\n return <Drawer side={\"left\"} {...props} />;\n};\n\ntype DrawerHeaderProps = {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS 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 `Dialog` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerHeader = (props: DrawerHeaderProps) => {\n return <AdminUiDrawerHeader title={props.children} description={\"\"} />;\n};\n\nexport type DrawerContentProps = {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS 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 `Drawer` component from the `@webiny/admin-ui` package instead.\n */\nconst DrawerContent = (props: DrawerContentProps) => {\n return <>{props.children}</>;\n};\n\nexport interface DrawerProps extends AdminUiDrawerProps {\n /**\n * @deprecated Property is no longer supported.\n */\n dismissible?: boolean;\n\n onClose?: () => void;\n}\n\nexport { Drawer, DrawerHeader, DrawerContent, DrawerRight, DrawerLeft };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,aAAa,QAAgD,kBAAkB;AAClG,SAASC,YAAY,IAAIC,mBAAmB,QAAQ,oDAAoD;;AAExG;AACA;AACA;AACA;AACA;AACA,MAAMH,MAAM,GAAGA,CAAC;EAAEI,QAAQ;EAAE,GAAGC;AAAmB,CAAC,KAAK;EACpD,oBACIN,KAAA,CAAAO,aAAA,CAACL,aAAa,EAAAM,MAAA,CAAAC,MAAA;IAACC,IAAI,EAAE;EAAO,GAAKJ,KAAK,GACjCD,QACU,CAAC;AAExB,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMM,WAAW,GAAIL,KAAkB,IAAK;EACxC,oBAAON,KAAA,CAAAO,aAAA,CAACN,MAAM,EAAAO,MAAA,CAAAC,MAAA;IAACC,IAAI,EAAE;EAAQ,GAAKJ,KAAK,CAAG,CAAC;AAC/C,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMM,UAAU,GAAIN,KAAkB,IAAK;EACvC,oBAAON,KAAA,CAAAO,aAAA,CAACN,MAAM,EAAAO,MAAA,CAAAC,MAAA;IAACC,IAAI,EAAE;EAAO,GAAKJ,KAAK,CAAG,CAAC;AAC9C,CAAC;AAcD;AACA;AACA;AACA;AACA,MAAMH,YAAY,GAAIG,KAAwB,IAAK;EAC/C,oBAAON,KAAA,CAAAO,aAAA,CAACH,mBAAmB;IAACS,KAAK,EAAEP,KAAK,CAACD,QAAS;IAACS,WAAW,EAAE;EAAG,CAAE,CAAC;AAC1E,CAAC;AAcD;AACA;AACA;AACA;AACA,MAAMC,aAAa,GAAIT,KAAyB,IAAK;EACjD,oBAAON,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAgB,QAAA,QAAGV,KAAK,CAACD,QAAW,CAAC;AAChC,CAAC;AAWD,SAASJ,MAAM,EAAEE,YAAY,EAAEY,aAAa,EAAEJ,WAAW,EAAEC,UAAU","ignoreList":[]}
package/Drawer/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./Drawer";
1
+ export * from "./Drawer.js";
package/Drawer/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Drawer";
1
+ export * from "./Drawer.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Drawer\";\n"],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Drawer.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -9,7 +9,7 @@ const Elevation = ({
9
9
  ...props
10
10
  }) => {
11
11
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
12
- className: cn("wby-bg-white wby-shadow-md wby-p-4", className)
12
+ className: cn("bg-white shadow-md p-4", className)
13
13
  }), props.children);
14
14
  };
15
15
  Elevation.displayName = "Elevation";