@webiny/ui 5.24.0 → 5.25.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/Accordion/Accordion.js +1 -1
  3. package/Accordion/Accordion.js.map +1 -0
  4. package/Accordion/Accordion.stories.js.map +1 -0
  5. package/Accordion/AccordionItem.d.ts +4 -8
  6. package/Accordion/AccordionItem.js +1 -1
  7. package/Accordion/AccordionItem.js.map +1 -0
  8. package/Accordion/index.js.map +1 -0
  9. package/Alert/Alert.d.ts +4 -4
  10. package/Alert/Alert.js +1 -1
  11. package/Alert/Alert.js.map +1 -0
  12. package/Alert/Alert.stories.js.map +1 -0
  13. package/Alert/index.js.map +1 -0
  14. package/AutoComplete/AutoComplete.d.ts +5 -10
  15. package/AutoComplete/AutoComplete.js +6 -4
  16. package/AutoComplete/AutoComplete.js.map +1 -0
  17. package/AutoComplete/AutoComplete.stories.js.map +1 -0
  18. package/AutoComplete/MultiAutoComplete.d.ts +4 -11
  19. package/AutoComplete/MultiAutoComplete.js +9 -5
  20. package/AutoComplete/MultiAutoComplete.js.map +1 -0
  21. package/AutoComplete/MultiAutoComplete.stories.js.map +1 -0
  22. package/AutoComplete/index.js.map +1 -0
  23. package/AutoComplete/styles.js.map +1 -0
  24. package/AutoComplete/types.d.ts +4 -3
  25. package/AutoComplete/types.js.map +1 -0
  26. package/AutoComplete/utils.d.ts +3 -3
  27. package/AutoComplete/utils.js +1 -1
  28. package/AutoComplete/utils.js.map +1 -0
  29. package/Avatar/Avatar.d.ts +5 -11
  30. package/Avatar/Avatar.js +12 -7
  31. package/Avatar/Avatar.js.map +1 -0
  32. package/Avatar/Avatar.stories.js.map +1 -0
  33. package/Avatar/index.js.map +1 -0
  34. package/Button/Button.d.ts +1 -16
  35. package/Button/Button.js +7 -22
  36. package/Button/Button.js.map +1 -0
  37. package/Button/Button.stories.js.map +1 -0
  38. package/Button/CopyButton/CopyButton.d.ts +4 -7
  39. package/Button/CopyButton/CopyButton.js +1 -4
  40. package/Button/CopyButton/CopyButton.js.map +1 -0
  41. package/Button/CopyButton/CopyButton.stories.js.map +1 -0
  42. package/Button/IconButton/IconButton.d.ts +4 -7
  43. package/Button/IconButton/IconButton.js +1 -4
  44. package/Button/IconButton/IconButton.js.map +1 -0
  45. package/Button/IconButton/IconButton.stories.js.map +1 -0
  46. package/Button/index.js.map +1 -0
  47. package/Carousel/Carousel.d.ts +3 -3
  48. package/Carousel/Carousel.js +1 -1
  49. package/Carousel/Carousel.js.map +1 -0
  50. package/Carousel/Carouser.stories.js.map +1 -0
  51. package/Carousel/index.js.map +1 -0
  52. package/Checkbox/Checkbox.d.ts +1 -2
  53. package/Checkbox/Checkbox.js +8 -10
  54. package/Checkbox/Checkbox.js.map +1 -0
  55. package/Checkbox/Checkbox.stories.js.map +1 -0
  56. package/Checkbox/Checkbox.styles.js.map +1 -0
  57. package/Checkbox/CheckboxGroup.d.ts +1 -1
  58. package/Checkbox/CheckboxGroup.js +1 -1
  59. package/Checkbox/CheckboxGroup.js.map +1 -0
  60. package/Checkbox/CheckboxGroup.stories.js +1 -1
  61. package/Checkbox/CheckboxGroup.stories.js.map +1 -0
  62. package/Checkbox/index.js.map +1 -0
  63. package/Chips/Chip.d.ts +3 -8
  64. package/Chips/Chip.js +1 -1
  65. package/Chips/Chip.js.map +1 -0
  66. package/Chips/ChipIcon.d.ts +2 -2
  67. package/Chips/ChipIcon.js +1 -1
  68. package/Chips/ChipIcon.js.map +1 -0
  69. package/Chips/Chips.d.ts +4 -4
  70. package/Chips/Chips.js +1 -1
  71. package/Chips/Chips.js.map +1 -0
  72. package/Chips/Chips.stories.js.map +1 -0
  73. package/Chips/index.js.map +1 -0
  74. package/Chips/styles.js.map +1 -0
  75. package/CodeEditor/CodeEditor.d.ts +3 -4
  76. package/CodeEditor/CodeEditor.js +7 -10
  77. package/CodeEditor/CodeEditor.js.map +1 -0
  78. package/CodeEditor/CodeEditor.stories.js.map +1 -0
  79. package/CodeEditor/index.js.map +1 -0
  80. package/ColorPicker/ColorPicker.d.ts +7 -5
  81. package/ColorPicker/ColorPicker.js +8 -11
  82. package/ColorPicker/ColorPicker.js.map +1 -0
  83. package/ColorPicker/ColorPicker.stories.js +1 -1
  84. package/ColorPicker/ColorPicker.stories.js.map +1 -0
  85. package/ColorPicker/index.js.map +1 -0
  86. package/ConfirmationDialog/ConfirmationDialog.d.ts +12 -12
  87. package/ConfirmationDialog/ConfirmationDialog.js +7 -4
  88. package/ConfirmationDialog/ConfirmationDialog.js.map +1 -0
  89. package/ConfirmationDialog/ConfirmationDialog.stories.js +1 -1
  90. package/ConfirmationDialog/ConfirmationDialog.stories.js.map +1 -0
  91. package/ConfirmationDialog/index.js.map +1 -0
  92. package/ConfirmationDialog/withConfirmation.d.ts +1 -1
  93. package/ConfirmationDialog/withConfirmation.js +1 -1
  94. package/ConfirmationDialog/withConfirmation.js.map +1 -0
  95. package/Dialog/Dialog.d.ts +20 -28
  96. package/Dialog/Dialog.js +4 -1
  97. package/Dialog/Dialog.js.map +1 -0
  98. package/Dialog/Dialog.stories.js.map +1 -0
  99. package/Dialog/index.js.map +1 -0
  100. package/Drawer/Drawer.d.ts +1 -1
  101. package/Drawer/Drawer.js +1 -1
  102. package/Drawer/Drawer.js.map +1 -0
  103. package/Drawer/Drawer.stories.js.map +1 -0
  104. package/Drawer/index.js.map +1 -0
  105. package/DynamicFieldset/Fieldset.d.ts +5 -5
  106. package/DynamicFieldset/Fieldset.js +21 -14
  107. package/DynamicFieldset/Fieldset.js.map +1 -0
  108. package/DynamicFieldset/index.js.map +1 -0
  109. package/Elevation/Elevation.d.ts +1 -1
  110. package/Elevation/Elevation.js +1 -1
  111. package/Elevation/Elevation.js.map +1 -0
  112. package/Elevation/Elevation.stories.js +1 -1
  113. package/Elevation/Elevation.stories.js.map +1 -0
  114. package/Elevation/index.js.map +1 -0
  115. package/FormElementMessage/FormElementMessage.d.ts +1 -1
  116. package/FormElementMessage/FormElementMessage.js +1 -1
  117. package/FormElementMessage/FormElementMessage.js.map +1 -0
  118. package/FormElementMessage/index.js.map +1 -0
  119. package/FullName/FullName.js.map +1 -0
  120. package/FullName/index.js.map +1 -0
  121. package/Grid/Grid.d.ts +1 -1
  122. package/Grid/Grid.js +1 -1
  123. package/Grid/Grid.js.map +1 -0
  124. package/Grid/Grid.stories.js.map +1 -0
  125. package/Grid/index.js.map +1 -0
  126. package/Helpers/ClassNames.d.ts +4 -3
  127. package/Helpers/ClassNames.js +5 -3
  128. package/Helpers/ClassNames.js.map +1 -0
  129. package/Helpers/index.js.map +1 -0
  130. package/Icon/Icon.d.ts +1 -1
  131. package/Icon/Icon.js +1 -1
  132. package/Icon/Icon.js.map +1 -0
  133. package/Icon/Icon.stories.js.map +1 -0
  134. package/Icon/index.js.map +1 -0
  135. package/Image/Image.d.ts +4 -4
  136. package/Image/Image.js +6 -4
  137. package/Image/Image.js.map +1 -0
  138. package/Image/Image.stories.js +1 -1
  139. package/Image/Image.stories.js.map +1 -0
  140. package/Image/index.js.map +1 -0
  141. package/ImageEditor/ImageEditor.d.ts +24 -24
  142. package/ImageEditor/ImageEditor.js +18 -18
  143. package/ImageEditor/ImageEditor.js.map +1 -0
  144. package/ImageEditor/index.js.map +1 -0
  145. package/ImageEditor/toolbar/crop.js +2 -2
  146. package/ImageEditor/toolbar/crop.js.map +1 -0
  147. package/ImageEditor/toolbar/filter.js.map +1 -0
  148. package/ImageEditor/toolbar/flip.js +1 -1
  149. package/ImageEditor/toolbar/flip.js.map +1 -0
  150. package/ImageEditor/toolbar/icons/index.js.map +1 -0
  151. package/ImageEditor/toolbar/index.js.map +1 -0
  152. package/ImageEditor/toolbar/rotate.js +5 -1
  153. package/ImageEditor/toolbar/rotate.js.map +1 -0
  154. package/ImageEditor/toolbar/types.d.ts +1 -1
  155. package/ImageEditor/toolbar/types.js.map +1 -0
  156. package/ImageUpload/Image.d.ts +6 -6
  157. package/ImageUpload/Image.js +1 -1
  158. package/ImageUpload/Image.js.map +1 -0
  159. package/ImageUpload/ImageEditorDialog.d.ts +5 -4
  160. package/ImageUpload/ImageEditorDialog.js +7 -2
  161. package/ImageUpload/ImageEditorDialog.js.map +1 -0
  162. package/ImageUpload/MultiImageUpload.d.ts +5 -5
  163. package/ImageUpload/MultiImageUpload.js +21 -16
  164. package/ImageUpload/MultiImageUpload.js.map +1 -0
  165. package/ImageUpload/MultiImageUpload.stories.js.map +1 -0
  166. package/ImageUpload/SingleImageUpload.d.ts +14 -13
  167. package/ImageUpload/SingleImageUpload.js +18 -12
  168. package/ImageUpload/SingleImageUpload.js.map +1 -0
  169. package/ImageUpload/SingleImageUpload.stories.js.map +1 -0
  170. package/ImageUpload/index.js.map +1 -0
  171. package/ImageUpload/styled.d.ts +18 -14
  172. package/ImageUpload/styled.js.map +1 -0
  173. package/Input/Input.d.ts +1 -1
  174. package/Input/Input.js +8 -8
  175. package/Input/Input.js.map +1 -0
  176. package/Input/Input.stories.js +1 -1
  177. package/Input/Input.stories.js.map +1 -0
  178. package/Input/__tests__/Input.test.js +32 -26
  179. package/Input/__tests__/Input.test.js.map +1 -0
  180. package/Input/index.js.map +1 -0
  181. package/List/CollapsibleList/CollapsibleList.stories.js.map +1 -0
  182. package/List/CollapsibleList/index.d.ts +2 -2
  183. package/List/CollapsibleList/index.js +1 -1
  184. package/List/CollapsibleList/index.js.map +1 -0
  185. package/List/DataList/DataList.d.ts +16 -12
  186. package/List/DataList/DataList.js +41 -11
  187. package/List/DataList/DataList.js.map +1 -0
  188. package/List/DataList/DataList.stories.js.map +1 -0
  189. package/List/DataList/DataListModalOverlay/DataListModalOverlay.d.ts +7 -8
  190. package/List/DataList/DataListModalOverlay/DataListModalOverlay.js.map +1 -0
  191. package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.d.ts +3 -3
  192. package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js.map +1 -0
  193. package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.d.ts +9 -4
  194. package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js +6 -1
  195. package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js.map +1 -0
  196. package/List/DataList/DataListModalOverlay/index.js.map +1 -0
  197. package/List/DataList/Loader.d.ts +2 -2
  198. package/List/DataList/Loader.js +1 -1
  199. package/List/DataList/Loader.js.map +1 -0
  200. package/List/DataList/NoData.d.ts +2 -2
  201. package/List/DataList/NoData.js +1 -1
  202. package/List/DataList/NoData.js.map +1 -0
  203. package/List/DataList/icons/index.d.ts +1 -1
  204. package/List/DataList/icons/index.js +1 -1
  205. package/List/DataList/icons/index.js.map +1 -0
  206. package/List/DataList/index.js.map +1 -0
  207. package/List/DataList/types.d.ts +1 -1
  208. package/List/DataList/types.js.map +1 -0
  209. package/List/List.d.ts +1 -1
  210. package/List/List.js +1 -1
  211. package/List/List.js.map +1 -0
  212. package/List/List.stories.js.map +1 -0
  213. package/List/icons/index.js.map +1 -0
  214. package/List/index.js.map +1 -0
  215. package/Menu/Menu.d.ts +13 -15
  216. package/Menu/Menu.js +1 -2
  217. package/Menu/Menu.js.map +1 -0
  218. package/Menu/Menu.stories.js.map +1 -0
  219. package/Menu/index.js.map +1 -0
  220. package/Mosaic/Mosaic.js.map +1 -0
  221. package/Mosaic/Mosaic.stories.js +1 -1
  222. package/Mosaic/Mosaic.stories.js.map +1 -0
  223. package/Mosaic/index.js.map +1 -0
  224. package/Progress/CircularProgress.d.ts +3 -3
  225. package/Progress/CircularProgress.js +12 -8
  226. package/Progress/CircularProgress.js.map +1 -0
  227. package/Progress/index.js.map +1 -0
  228. package/Radio/Radio.d.ts +1 -2
  229. package/Radio/Radio.js +8 -10
  230. package/Radio/Radio.js.map +1 -0
  231. package/Radio/Radio.styles.js.map +1 -0
  232. package/Radio/RadioGroup.d.ts +1 -2
  233. package/Radio/RadioGroup.js +8 -11
  234. package/Radio/RadioGroup.js.map +1 -0
  235. package/Radio/RadioGroup.stories.js +1 -1
  236. package/Radio/RadioGroup.stories.js.map +1 -0
  237. package/Radio/index.js.map +1 -0
  238. package/RichTextEditor/RichTextEditor.js +26 -4
  239. package/RichTextEditor/RichTextEditor.js.map +1 -0
  240. package/RichTextEditor/RichTextEditor.stories.js +1 -1
  241. package/RichTextEditor/RichTextEditor.stories.js.map +1 -0
  242. package/RichTextEditor/createPropsFromConfig.js.map +1 -0
  243. package/RichTextEditor/index.js.map +1 -0
  244. package/Ripple/Ripple.d.ts +1 -1
  245. package/Ripple/Ripple.js +1 -1
  246. package/Ripple/Ripple.js.map +1 -0
  247. package/Ripple/Ripple.stories.js +1 -1
  248. package/Ripple/Ripple.stories.js.map +1 -0
  249. package/Ripple/index.js.map +1 -0
  250. package/Scrollbar/Scrollbar.d.ts +1 -1
  251. package/Scrollbar/Scrollbar.js +1 -1
  252. package/Scrollbar/Scrollbar.js.map +1 -0
  253. package/Scrollbar/Scrollbar.stories.js +1 -1
  254. package/Scrollbar/Scrollbar.stories.js.map +1 -0
  255. package/Scrollbar/index.js.map +1 -0
  256. package/Section/Section.stories.js.map +1 -0
  257. package/Section/index.d.ts +1 -1
  258. package/Section/index.js +1 -1
  259. package/Section/index.js.map +1 -0
  260. package/Select/Select.d.ts +1 -1
  261. package/Select/Select.js +60 -10
  262. package/Select/Select.js.map +1 -0
  263. package/Select/Select.stories.js.map +1 -0
  264. package/Select/index.js.map +1 -0
  265. package/Slider/Slider.d.ts +1 -2
  266. package/Slider/Slider.js +7 -10
  267. package/Slider/Slider.js.map +1 -0
  268. package/Slider/Slider.stories.js +1 -1
  269. package/Slider/Slider.stories.js.map +1 -0
  270. package/Slider/index.js.map +1 -0
  271. package/Snackbar/Snackbar.d.ts +3 -6
  272. package/Snackbar/Snackbar.js +2 -5
  273. package/Snackbar/Snackbar.js.map +1 -0
  274. package/Snackbar/Snackbar.stories.js +1 -1
  275. package/Snackbar/Snackbar.stories.js.map +1 -0
  276. package/Snackbar/index.js.map +1 -0
  277. package/Switch/Switch.d.ts +1 -2
  278. package/Switch/Switch.js +8 -10
  279. package/Switch/Switch.js.map +1 -0
  280. package/Switch/Switch.stories.js.map +1 -0
  281. package/Switch/index.js.map +1 -0
  282. package/Tabs/Tab.d.ts +2 -2
  283. package/Tabs/Tab.js +1 -1
  284. package/Tabs/Tab.js.map +1 -0
  285. package/Tabs/Tabs.d.ts +3 -3
  286. package/Tabs/Tabs.js +28 -16
  287. package/Tabs/Tabs.js.map +1 -0
  288. package/Tabs/Tabs.stories.js +1 -1
  289. package/Tabs/Tabs.stories.js.map +1 -0
  290. package/Tabs/index.js.map +1 -0
  291. package/Tags/Tags.d.ts +8 -7
  292. package/Tags/Tags.js +7 -11
  293. package/Tags/Tags.js.map +1 -0
  294. package/Tags/Tags.stories.js.map +1 -0
  295. package/Tags/index.js.map +1 -0
  296. package/Tooltip/Tooltip.d.ts +7 -4
  297. package/Tooltip/Tooltip.js +2 -2
  298. package/Tooltip/Tooltip.js.map +1 -0
  299. package/Tooltip/Tooltip.stories.js.map +1 -0
  300. package/Tooltip/index.js.map +1 -0
  301. package/TopAppBar/TopAppBar.d.ts +1 -1
  302. package/TopAppBar/TopAppBar.js +1 -1
  303. package/TopAppBar/TopAppBar.js.map +1 -0
  304. package/TopAppBar/TopAppBar.stories.js.map +1 -0
  305. package/TopAppBar/TopAppBarActionItem.js +1 -1
  306. package/TopAppBar/TopAppBarActionItem.js.map +1 -0
  307. package/TopAppBar/TopAppBarNavigationIcon.js +1 -1
  308. package/TopAppBar/TopAppBarNavigationIcon.js.map +1 -0
  309. package/TopAppBar/TopAppBarPrimary.js +1 -1
  310. package/TopAppBar/TopAppBarPrimary.js.map +1 -0
  311. package/TopAppBar/TopAppBarSecondary.js +1 -1
  312. package/TopAppBar/TopAppBarSecondary.js.map +1 -0
  313. package/TopAppBar/TopAppBarSection.d.ts +1 -1
  314. package/TopAppBar/TopAppBarSection.js +1 -1
  315. package/TopAppBar/TopAppBarSection.js.map +1 -0
  316. package/TopAppBar/TopAppBarTitle.d.ts +1 -1
  317. package/TopAppBar/TopAppBarTitle.js +1 -1
  318. package/TopAppBar/TopAppBarTitle.js.map +1 -0
  319. package/TopAppBar/index.js.map +1 -0
  320. package/TopProgressBar/TopProgressBar.d.ts +2 -2
  321. package/TopProgressBar/TopProgressBar.js.map +1 -0
  322. package/TopProgressBar/TopProgressBar.stories.js +1 -1
  323. package/TopProgressBar/TopProgressBar.stories.js.map +1 -0
  324. package/TopProgressBar/hoc/index.js.map +1 -0
  325. package/TopProgressBar/hoc/withTopProgressBar.d.ts +1 -1
  326. package/TopProgressBar/hoc/withTopProgressBar.js +1 -1
  327. package/TopProgressBar/hoc/withTopProgressBar.js.map +1 -0
  328. package/TopProgressBar/index.js.map +1 -0
  329. package/Typography/Typography.d.ts +1 -1
  330. package/Typography/Typography.js +1 -1
  331. package/Typography/Typography.js.map +1 -0
  332. package/Typography/Typography.stories.js +1 -1
  333. package/Typography/Typography.stories.js.map +1 -0
  334. package/Typography/index.js.map +1 -0
  335. package/package.json +17 -13
  336. package/rmwc/base/LICENSE +21 -0
  337. package/rmwc/base/README.md +3 -0
  338. package/rmwc/base/code/component.d.ts +18 -0
  339. package/rmwc/base/code/component.js +163 -0
  340. package/rmwc/base/code/foundation-component.d.ts +79 -0
  341. package/rmwc/base/code/foundation-component.js +354 -0
  342. package/rmwc/base/code/index.d.ts +16 -0
  343. package/rmwc/base/code/index.js +25 -0
  344. package/rmwc/base/code/test-polyfill.d.ts +3 -0
  345. package/rmwc/base/code/test-polyfill.js +33 -0
  346. package/rmwc/base/code/utils/apply-passive.d.ts +8 -0
  347. package/rmwc/base/code/utils/apply-passive.js +63 -0
  348. package/rmwc/base/code/utils/debounce.d.ts +2 -0
  349. package/rmwc/base/code/utils/debounce.js +17 -0
  350. package/rmwc/base/code/utils/deprecation.d.ts +6 -0
  351. package/rmwc/base/code/utils/deprecation.js +76 -0
  352. package/rmwc/base/code/utils/emitter.d.ts +13 -0
  353. package/rmwc/base/code/utils/emitter.js +120 -0
  354. package/rmwc/base/code/utils/events-map.d.ts +87 -0
  355. package/rmwc/base/code/utils/events-map.js +90 -0
  356. package/rmwc/base/code/utils/index.d.ts +10 -0
  357. package/rmwc/base/code/utils/index.js +19 -0
  358. package/rmwc/base/code/utils/ponyfills.d.ts +3 -0
  359. package/rmwc/base/code/utils/ponyfills.js +29 -0
  360. package/rmwc/base/code/utils/random-id.d.ts +6 -0
  361. package/rmwc/base/code/utils/random-id.js +14 -0
  362. package/rmwc/base/code/utils/strings.d.ts +3 -0
  363. package/rmwc/base/code/utils/strings.js +13 -0
  364. package/rmwc/base/code/utils/use-knob.d.ts +2 -0
  365. package/rmwc/base/code/utils/use-knob.js +64 -0
  366. package/rmwc/base/code/utils/wrap-child.d.ts +3 -0
  367. package/rmwc/base/code/utils/wrap-child.js +55 -0
  368. package/rmwc/base/code/with-theme.d.ts +15 -0
  369. package/rmwc/base/code/with-theme.js +106 -0
  370. package/rmwc/base/package.json +40 -0
  371. package/types.d.ts +2 -2
  372. package/types.js.map +1 -0
@@ -0,0 +1,63 @@
1
+ /* eslint-disable */
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ /**
5
+ * @license
6
+ * Copyright 2019 Google Inc.
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in
16
+ * all copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ * THE SOFTWARE.
25
+ */
26
+ /**
27
+ * Stores result from applyPassive to avoid redundant processing to detect
28
+ * passive event listener support.
29
+ */
30
+ var supportsPassive_;
31
+ /**
32
+ * Determine whether the current browser supports passive event listeners, and
33
+ * if so, use them.
34
+ */
35
+ function applyPassive(globalObj, forceRefresh) {
36
+ if (globalObj === void 0) {
37
+ globalObj = window;
38
+ }
39
+ if (forceRefresh === void 0) {
40
+ forceRefresh = false;
41
+ }
42
+ if (supportsPassive_ === undefined || forceRefresh) {
43
+ var isSupported_1 = false;
44
+ try {
45
+ globalObj.document.addEventListener(
46
+ "test",
47
+ function () {
48
+ return undefined;
49
+ },
50
+ {
51
+ get passive() {
52
+ isSupported_1 = true;
53
+ return isSupported_1;
54
+ }
55
+ }
56
+ );
57
+ } catch (e) {} // tslint:disable-line:no-empty cannot throw error due to tests. tslint also disables console.log.
58
+ supportsPassive_ = isSupported_1;
59
+ }
60
+ return supportsPassive_ ? { passive: true } : false;
61
+ }
62
+ exports.applyPassive = applyPassive;
63
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export declare const debounce: (func: Function, wait: number) => () => void;
@@ -0,0 +1,17 @@
1
+ /* eslint-disable */
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.debounce = function (func, wait) {
5
+ var timeout;
6
+ return function () {
7
+ // @ts-ignore
8
+ var context = this,
9
+ args = arguments;
10
+ var later = function () {
11
+ timeout = null;
12
+ func.apply(context, args);
13
+ };
14
+ timeout !== null && clearTimeout(timeout);
15
+ timeout = setTimeout(later, wait);
16
+ };
17
+ };
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ export declare type DeprecateT = {
3
+ [oldPropName: string]: string | [string, (value: any) => void];
4
+ };
5
+ export declare const deprecationWarning: (message: string) => void;
6
+ export declare const handleDeprecations: (props: any, deprecate: DeprecateT, displayName: string) => any;
@@ -0,0 +1,76 @@
1
+ /* eslint-disable */
2
+ "use strict";
3
+ var __assign =
4
+ (this && this.__assign) ||
5
+ function () {
6
+ __assign =
7
+ Object.assign ||
8
+ function (t) {
9
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
10
+ s = arguments[i];
11
+ for (var p in s) {
12
+ if (Object.prototype.hasOwnProperty.call(s, p)) {
13
+ t[p] = s[p];
14
+ }
15
+ }
16
+ }
17
+ return t;
18
+ };
19
+ return __assign.apply(this, arguments);
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.deprecationWarning = function (message) {
23
+ if (process && process.env && process.env.NODE_ENV !== "production") {
24
+ console.warn("RMWC Deprecation Warning: " + message);
25
+ }
26
+ };
27
+ exports.handleDeprecations = function (props, deprecate, displayName) {
28
+ props = __assign({}, props);
29
+ for (var oldPropName in deprecate) {
30
+ var newProp = deprecate[oldPropName];
31
+ var newPropName = void 0;
32
+ var transformProp = function (value) {
33
+ return value;
34
+ };
35
+ if (Array.isArray(newProp)) {
36
+ newPropName = newProp[0];
37
+ transformProp = newProp[1];
38
+ } else {
39
+ newPropName = newProp;
40
+ }
41
+ if (props[oldPropName] !== undefined) {
42
+ if (newPropName === "") {
43
+ /* istanbul ignore next */
44
+ exports.deprecationWarning(
45
+ (displayName || "") +
46
+ " component prop '" +
47
+ oldPropName +
48
+ "' has been removed from and is no longer a valid prop."
49
+ );
50
+ } else {
51
+ props[newPropName] = transformProp(props[oldPropName]);
52
+ var propTransformMessage = "";
53
+ if (props[newPropName] !== props[oldPropName]) {
54
+ propTransformMessage =
55
+ " The old value has also been converted from '" +
56
+ props[oldPropName] +
57
+ "' to '" +
58
+ props[newPropName] +
59
+ "'";
60
+ }
61
+ /* istanbul ignore next */
62
+ exports.deprecationWarning(
63
+ (displayName || "") +
64
+ " component prop '" +
65
+ oldPropName +
66
+ "' has been replaced with '" +
67
+ newPropName +
68
+ "'. " +
69
+ propTransformMessage
70
+ );
71
+ }
72
+ delete props[oldPropName];
73
+ }
74
+ }
75
+ return props;
76
+ };
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ export declare class EventEmitter {
3
+ events_: {
4
+ [evtName: string]: Array<Function>;
5
+ };
6
+ on(event: string, cb: Function): void;
7
+ off(event: string, cb: Function): void;
8
+ trigger(event: string, ...args: any): void;
9
+ }
10
+ export declare class ArrayEmitter<T> extends EventEmitter {
11
+ array: T[];
12
+ push(...items: T[]): number;
13
+ }
@@ -0,0 +1,120 @@
1
+ /* eslint-disable */
2
+ "use strict";
3
+ var __extends =
4
+ (this && this.__extends) ||
5
+ (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics =
8
+ Object.setPrototypeOf ||
9
+ ({ __proto__: [] } instanceof Array &&
10
+ function (d, b) {
11
+ d.__proto__ = b;
12
+ }) ||
13
+ function (d, b) {
14
+ for (var p in b) {
15
+ if (b.hasOwnProperty(p)) {
16
+ d[p] = b[p];
17
+ }
18
+ }
19
+ };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ extendStatics(d, b);
24
+ function __() {
25
+ this.constructor = d;
26
+ }
27
+ d.prototype = b === null ? Object.create(b) : ((__.prototype = b.prototype), new __());
28
+ };
29
+ })();
30
+ var __read =
31
+ (this && this.__read) ||
32
+ function (o, n) {
33
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
34
+ if (!m) {
35
+ return o;
36
+ }
37
+ var i = m.call(o),
38
+ r,
39
+ ar = [],
40
+ e;
41
+ try {
42
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
43
+ ar.push(r.value);
44
+ }
45
+ } catch (error) {
46
+ e = { error: error };
47
+ } finally {
48
+ try {
49
+ if (r && !r.done && (m = i["return"])) {
50
+ m.call(i);
51
+ }
52
+ } finally {
53
+ if (e) {
54
+ throw e.error;
55
+ }
56
+ }
57
+ }
58
+ return ar;
59
+ };
60
+ var __spread =
61
+ (this && this.__spread) ||
62
+ function () {
63
+ for (var ar = [], i = 0; i < arguments.length; i++) {
64
+ ar = ar.concat(__read(arguments[i]));
65
+ }
66
+ return ar;
67
+ };
68
+ Object.defineProperty(exports, "__esModule", { value: true });
69
+ var EventEmitter = /** @class */ (function () {
70
+ function EventEmitter() {
71
+ this.events_ = {};
72
+ }
73
+ EventEmitter.prototype.on = function (event, cb) {
74
+ this.events_ = this.events_ || {};
75
+ this.events_[event] = this.events_[event] || [];
76
+ this.events_[event].push(cb);
77
+ };
78
+ EventEmitter.prototype.off = function (event, cb) {
79
+ this.events_ = this.events_ || {};
80
+ if (event in this.events_ === false) {
81
+ return;
82
+ }
83
+ this.events_[event].splice(this.events_[event].indexOf(cb), 1);
84
+ };
85
+ EventEmitter.prototype.trigger = function (event) {
86
+ var args = [];
87
+ for (var _i = 1; _i < arguments.length; _i++) {
88
+ args[_i - 1] = arguments[_i];
89
+ }
90
+ this.events_ = this.events_ || {};
91
+ if (event in this.events_ === false) {
92
+ return;
93
+ }
94
+ for (var i = 0; i < this.events_[event].length; i++) {
95
+ this.events_[event][i].apply(this, Array.prototype.slice.call(arguments, 1));
96
+ }
97
+ };
98
+ return EventEmitter;
99
+ })();
100
+ exports.EventEmitter = EventEmitter;
101
+ var ArrayEmitter = /** @class */ (function (_super) {
102
+ __extends(ArrayEmitter, _super);
103
+ function ArrayEmitter() {
104
+ var _this = (_super !== null && _super.apply(this, arguments)) || this;
105
+ _this.array = [];
106
+ return _this;
107
+ }
108
+ ArrayEmitter.prototype.push = function () {
109
+ var _a;
110
+ var items = [];
111
+ for (var _i = 0; _i < arguments.length; _i++) {
112
+ items[_i] = arguments[_i];
113
+ }
114
+ var rVal = (_a = this.array).push.apply(_a, __spread(items));
115
+ this.trigger("change");
116
+ return rVal;
117
+ };
118
+ return ArrayEmitter;
119
+ })(EventEmitter);
120
+ exports.ArrayEmitter = ArrayEmitter;
@@ -0,0 +1,87 @@
1
+ /* eslint-disable */
2
+ export declare const eventsMap: {
3
+ blur: string;
4
+ cancel: string;
5
+ click: string;
6
+ close: string;
7
+ contextmenu: string;
8
+ copy: string;
9
+ cut: string;
10
+ auxclick: string;
11
+ doubleclick: string;
12
+ dragend: string;
13
+ dragstart: string;
14
+ drop: string;
15
+ focus: string;
16
+ input: string;
17
+ invalid: string;
18
+ keydown: string;
19
+ keypress: string;
20
+ keyup: string;
21
+ mousedown: string;
22
+ mouseup: string;
23
+ paste: string;
24
+ pause: string;
25
+ play: string;
26
+ pointercancel: string;
27
+ pointerdown: string;
28
+ pointerup: string;
29
+ ratechange: string;
30
+ reset: string;
31
+ seeked: string;
32
+ submit: string;
33
+ touchcancel: string;
34
+ touchend: string;
35
+ touchstart: string;
36
+ volumechange: string;
37
+ abort: string;
38
+ animationend: string;
39
+ animationiteration: string;
40
+ animationstart: string;
41
+ canplay: string;
42
+ canplaythrough: string;
43
+ drag: string;
44
+ dragenter: string;
45
+ dragexit: string;
46
+ dragleave: string;
47
+ dragover: string;
48
+ durationchange: string;
49
+ emptied: string;
50
+ encrypted: string;
51
+ ended: string;
52
+ error: string;
53
+ gotpointercapture: string;
54
+ load: string;
55
+ loadeddata: string;
56
+ loadedmetadata: string;
57
+ loadstart: string;
58
+ lostpointercapture: string;
59
+ mousemove: string;
60
+ mouseout: string;
61
+ mouseover: string;
62
+ playing: string;
63
+ pointermove: string;
64
+ pointerout: string;
65
+ pointerover: string;
66
+ progress: string;
67
+ scroll: string;
68
+ seeking: string;
69
+ stalled: string;
70
+ suspend: string;
71
+ timeupdate: string;
72
+ toggle: string;
73
+ touchmove: string;
74
+ transitionend: string;
75
+ waiting: string;
76
+ wheel: string;
77
+ mouseenter: string;
78
+ mouseleave: string;
79
+ pointerenter: string;
80
+ pointerleave: string;
81
+ change: string;
82
+ select: string;
83
+ beforeinput: string;
84
+ compositionend: string;
85
+ compositionstart: string;
86
+ compositionupdate: string;
87
+ };
@@ -0,0 +1,90 @@
1
+ /* eslint-disable */
2
+ "use strict";
3
+ /* istanbul ignore file */
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.eventsMap = {
6
+ blur: "onBlur",
7
+ cancel: "onCancel",
8
+ click: "onClick",
9
+ close: "onClose",
10
+ contextmenu: "onContextMenu",
11
+ copy: "onCopy",
12
+ cut: "onCut",
13
+ auxclick: "onAuxClick",
14
+ doubleclick: "onDoubleClick",
15
+ dragend: "onDragEnd",
16
+ dragstart: "onDragStart",
17
+ drop: "onDrop",
18
+ focus: "onFocus",
19
+ input: "onInput",
20
+ invalid: "onInvalid",
21
+ keydown: "onKeyDown",
22
+ keypress: "onKeyPress",
23
+ keyup: "onKeyUp",
24
+ mousedown: "onMouseDown",
25
+ mouseup: "onMouseUp",
26
+ paste: "onPaste",
27
+ pause: "onPause",
28
+ play: "onPlay",
29
+ pointercancel: "onPointerCancel",
30
+ pointerdown: "onPointerDown",
31
+ pointerup: "onPointerUp",
32
+ ratechange: "onRateChange",
33
+ reset: "onReset",
34
+ seeked: "onSeeked",
35
+ submit: "onSubmit",
36
+ touchcancel: "onTouchCancel",
37
+ touchend: "onTouchEnd",
38
+ touchstart: "onTouchStart",
39
+ volumechange: "onVolumeChange",
40
+ abort: "onAbort",
41
+ animationend: "onAnimationEnd",
42
+ animationiteration: "onAnimationIteration",
43
+ animationstart: "onAnimationStart",
44
+ canplay: "onCanPlay",
45
+ canplaythrough: "onCanPlayThrough",
46
+ drag: "onDrag",
47
+ dragenter: "onDragEnter",
48
+ dragexit: "onDragExit",
49
+ dragleave: "onDragLeave",
50
+ dragover: "onDragOver",
51
+ durationchange: "onDurationChange",
52
+ emptied: "onEmptied",
53
+ encrypted: "onEncrypted",
54
+ ended: "onEnded",
55
+ error: "onError",
56
+ gotpointercapture: "onGotPointerCapture",
57
+ load: "onLoad",
58
+ loadeddata: "onLoadedData",
59
+ loadedmetadata: "onLoadedMetadata",
60
+ loadstart: "onLoadStart",
61
+ lostpointercapture: "onLostPointerCapture",
62
+ mousemove: "onMouseMove",
63
+ mouseout: "onMouseOut",
64
+ mouseover: "onMouseOver",
65
+ playing: "onPlaying",
66
+ pointermove: "onPointerMove",
67
+ pointerout: "onPointerOut",
68
+ pointerover: "onPointerOver",
69
+ progress: "onProgress",
70
+ scroll: "onScroll",
71
+ seeking: "onSeeking",
72
+ stalled: "onStalled",
73
+ suspend: "onSuspend",
74
+ timeupdate: "onTimeUpdate",
75
+ toggle: "onToggle",
76
+ touchmove: "onTouchMove",
77
+ transitionend: "onTransitionEnd",
78
+ waiting: "onWaiting",
79
+ wheel: "onWheel",
80
+ mouseenter: "onMouseEnter",
81
+ mouseleave: "onMouseLeave",
82
+ pointerenter: "onPointerEnter",
83
+ pointerleave: "onPointerLeave",
84
+ change: "onChange",
85
+ select: "onSelect",
86
+ beforeinput: "onBeforeInput",
87
+ compositionend: "onCompositionEnd",
88
+ compositionstart: "onCompositionStart",
89
+ compositionupdate: "onCompositionUpdate"
90
+ };
@@ -0,0 +1,10 @@
1
+ /* eslint-disable */
2
+ export * from './debounce';
3
+ export * from './deprecation';
4
+ export * from './events-map';
5
+ export * from './ponyfills';
6
+ export * from './random-id';
7
+ export * from './strings';
8
+ export * from './wrap-child';
9
+ export * from './emitter';
10
+ export * from './apply-passive';
@@ -0,0 +1,19 @@
1
+ /* eslint-disable */
2
+ "use strict";
3
+ function __export(m) {
4
+ for (var p in m) {
5
+ if (!exports.hasOwnProperty(p)) {
6
+ exports[p] = m[p];
7
+ }
8
+ }
9
+ }
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ __export(require("./debounce"));
12
+ __export(require("./deprecation"));
13
+ __export(require("./events-map"));
14
+ __export(require("./ponyfills"));
15
+ __export(require("./random-id"));
16
+ __export(require("./strings"));
17
+ __export(require("./wrap-child"));
18
+ __export(require("./emitter"));
19
+ __export(require("./apply-passive"));
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ export declare const closest: (element: EventTarget | HTMLElement | null, selector: string) => HTMLElement | null;
3
+ export declare const matches: (element: HTMLElement, selector: string) => boolean;
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.closest = function (element, selector) {
5
+ if (element instanceof Element) {
6
+ /* istanbul ignore else */
7
+ if (element && element.closest) {
8
+ return element.closest(selector);
9
+ } else {
10
+ var el = element;
11
+ while (el) {
12
+ if (exports.matches(el, selector)) {
13
+ return el;
14
+ }
15
+ el = el.parentElement;
16
+ }
17
+ }
18
+ }
19
+ return null;
20
+ };
21
+ exports.matches = function (element, selector) {
22
+ /* istanbul ignore next */
23
+ var nativeMatches =
24
+ element.matches ||
25
+ element.webkitMatchesSelector ||
26
+ // @ts-ignore
27
+ element.msMatchesSelector;
28
+ return nativeMatches.call(element, selector);
29
+ };
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generates a pseudo random string for DOM ids
4
+ * Will return 'test' in the NODE test-env so things like storyshots doesnt break.
5
+ */
6
+ export declare const randomId: (prefix?: string | undefined) => string;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ /**
5
+ * Generates a pseudo random string for DOM ids
6
+ * Will return 'test' in the NODE test-env so things like storyshots doesnt break.
7
+ */
8
+ exports.randomId = function (prefix) {
9
+ var id =
10
+ process.env.NODE_ENV === "test"
11
+ ? "test"
12
+ : (Math.random() + Math.random() + 1).toString(36).substring(2);
13
+ return prefix + "-" + id;
14
+ };
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ export declare const toCamel: (str: string) => string;
3
+ export declare const toDashCase: (str: string) => string;
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.toCamel = function (str) {
5
+ return str.replace(/(-[a-z])/g, function ($1) {
6
+ return $1.toUpperCase().replace("-", "");
7
+ });
8
+ };
9
+ exports.toDashCase = function (str) {
10
+ return str.replace(/([A-Z])/g, function ($1) {
11
+ return "-" + $1.toLowerCase();
12
+ });
13
+ };
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export declare const useKnob: (knobType: "number" | "boolean" | "object" | "button" | "select" | "text" | "color" | "date" | "files" | "knob" | "radios" | "array" | "optionsKnob" | "withKnobs" | "withKnobsOptions", name: string, defaultValue: any) => any[];
@@ -0,0 +1,64 @@
1
+ /* eslint-disable */
2
+ "use strict";
3
+ var __read =
4
+ (this && this.__read) ||
5
+ function (o, n) {
6
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
7
+ if (!m) {
8
+ return o;
9
+ }
10
+ var i = m.call(o),
11
+ r,
12
+ ar = [],
13
+ e;
14
+ try {
15
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
16
+ ar.push(r.value);
17
+ }
18
+ } catch (error) {
19
+ e = { error: error };
20
+ } finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) {
23
+ m.call(i);
24
+ }
25
+ } finally {
26
+ if (e) {
27
+ throw e.error;
28
+ }
29
+ }
30
+ }
31
+ return ar;
32
+ };
33
+ var __importStar =
34
+ (this && this.__importStar) ||
35
+ function (mod) {
36
+ if (mod && mod.__esModule) {
37
+ return mod;
38
+ }
39
+ var result = {};
40
+ if (mod != null) {
41
+ for (var k in mod) {
42
+ if (Object.hasOwnProperty.call(mod, k)) {
43
+ result[k] = mod[k];
44
+ }
45
+ }
46
+ }
47
+ result["default"] = mod;
48
+ return result;
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ /* istanbul ignore file */
52
+ var react_1 = require("react");
53
+ var knobTypes = __importStar(require("@storybook/addon-knobs"));
54
+ exports.useKnob = function (knobType, name, defaultValue) {
55
+ var knobFunc = knobTypes[knobType];
56
+ var _a = __read(react_1.useState(defaultValue), 2),
57
+ stateValue = _a[0],
58
+ stateSetter = _a[1];
59
+ var knobValue = knobFunc(name, stateValue);
60
+ if (knobValue !== stateValue) {
61
+ stateSetter(knobValue);
62
+ }
63
+ return [stateValue, stateSetter];
64
+ };
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ import * as React from 'react';
3
+ export declare const wrapChild: (props: any) => React.DetailedReactHTMLElement<any, HTMLElement>;