@vonage/vivid-react 2.10.47 → 2.10.58

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 (292) hide show
  1. package/.storybook/main.js +11 -0
  2. package/.storybook/preview.js +3 -0
  3. package/.vscode/settings.json +4 -0
  4. package/README.md +75 -65
  5. package/babel.config.js +38 -0
  6. package/package.json +66 -67
  7. package/rollup.config.js +30 -0
  8. package/scripts/cli.js +27 -0
  9. package/scripts/generateWrappers/consts.js +220 -0
  10. package/scripts/generateWrappers/generator.js +264 -0
  11. package/scripts/generateWrappers/helpers/generator.js +18 -0
  12. package/scripts/generateWrappers/helpers/generator.test.js +56 -0
  13. package/scripts/generateWrappers/prop.types.js +87 -0
  14. package/scripts/generateWrappers/templates/js/index.tmpl +2 -0
  15. package/scripts/generateWrappers/templates/js/react-component-v3.tmpl +19 -0
  16. package/scripts/generateWrappers/templates/js/react-component.tmpl +30 -0
  17. package/scripts/generateWrappers/templates/js/stories.tmpl +18 -0
  18. package/scripts/generateWrappers/templates/templates.js +39 -0
  19. package/scripts/generateWrappers/templates/ts/element-type.tmpl +3 -0
  20. package/scripts/generateWrappers/templates/ts/index.tmpl +2 -0
  21. package/scripts/generateWrappers/templates/ts/react-component-v3.tmpl +32 -0
  22. package/scripts/generateWrappers/templates/ts/react-component.tmpl +28 -0
  23. package/scripts/generateWrappers/templates/ts/types.tmpl +8 -0
  24. package/scripts/generateWrappers/utils.js +197 -0
  25. package/scripts/generateWrappers/utils.test.js +71 -0
  26. package/scripts/updateDocs.js +42 -0
  27. package/scripts/updateVividPackages.js +81 -0
  28. package/src/dataGrid/index.js +15 -0
  29. package/src/index.js +3 -0
  30. package/src/initialization/initVivid.js +56 -0
  31. package/src/patches/VwcCard/index.js +2 -0
  32. package/src/patches/VwcCard/vwcCardHeadingCrop.js +28 -0
  33. package/src/patches/VwcCard/vwcCardWithMenu.js +14 -0
  34. package/src/patches/index.js +6 -0
  35. package/src/patches/vwcDataGrid.js +26 -0
  36. package/src/patches/vwcNoteContentOverflow.js +20 -0
  37. package/src/patches/vwcSetAttributeValue.js +12 -0
  38. package/src/patches/vwcSnackBarHtmlMessage.js +21 -0
  39. package/src/patches/vwcTooltip.js +46 -0
  40. package/stories/v2/VwcAccordion/VwcAccordion.stories.jsx +18 -0
  41. package/stories/v2/VwcActionGroup/VwcActionGroup.stories.jsx +18 -0
  42. package/stories/v2/VwcBadge/VwcBadge.stories.jsx +18 -0
  43. package/stories/v2/VwcBanner/VwcBanner.stories.jsx +18 -0
  44. package/stories/v2/VwcButton/VwcButton.stories.jsx +18 -0
  45. package/stories/v2/VwcButtonToggleGroup/VwcButtonToggleGroup.stories.jsx +47 -0
  46. package/stories/v2/VwcCalendar/VwcCalendar.stories.jsx +18 -0
  47. package/stories/v2/VwcCalendarEvent/VwcCalendarEvent.stories.jsx +18 -0
  48. package/stories/v2/VwcCard/VwcCard.stories.jsx +90 -0
  49. package/stories/v2/VwcCarousel/VwcCarousel.stories.jsx +18 -0
  50. package/stories/v2/VwcCarouselItem/VwcCarouselItem.stories.jsx +18 -0
  51. package/stories/v2/VwcCheckListItem/VwcCheckListItem.stories.jsx +18 -0
  52. package/stories/v2/VwcCheckbox/VwcCheckbox.stories.jsx +18 -0
  53. package/stories/v2/VwcChip/VwcChip.stories.jsx +18 -0
  54. package/stories/v2/VwcChipSet/VwcChipSet.stories.jsx +38 -0
  55. package/stories/v2/VwcCircularProgress/VwcCircularProgress.stories.jsx +18 -0
  56. package/stories/v2/VwcDataGrid/VwcDataGrid.stories.jsx +109 -0
  57. package/stories/v2/VwcDataGridColumn/VwcDataGridColumn.stories.jsx +18 -0
  58. package/stories/v2/VwcDatepicker/VwcDatepicker.stories.jsx +18 -0
  59. package/stories/v2/VwcDialog/VwcDialog.stories.jsx +18 -0
  60. package/stories/v2/VwcDrawer/VwcDrawer.stories.jsx +18 -0
  61. package/stories/v2/VwcDropdown/VwcDropdown.stories.jsx +18 -0
  62. package/stories/v2/VwcElevation/VwcElevation.stories.jsx +18 -0
  63. package/stories/v2/VwcEmptyState/VwcEmptyState.stories.jsx +18 -0
  64. package/stories/v2/VwcExpansionPanel/VwcExpansionPanel.stories.jsx +18 -0
  65. package/stories/v2/VwcFab/VwcFab.stories.jsx +18 -0
  66. package/stories/v2/VwcFilePicker/VwcFilePicker.stories.jsx +18 -0
  67. package/stories/v2/VwcFormfield/VwcFormfield.stories.jsx +18 -0
  68. package/stories/v2/VwcHelperMessage/VwcHelperMessage.stories.jsx +18 -0
  69. package/stories/v2/VwcIcon/VwcIcon.stories.jsx +18 -0
  70. package/stories/v2/VwcIconButton/VwcIconButton.stories.jsx +18 -0
  71. package/stories/v2/VwcIconButtonToggle/VwcIconButtonToggle.stories.jsx +18 -0
  72. package/stories/v2/VwcKeypad/VwcKeypad.stories.jsx +18 -0
  73. package/stories/v2/VwcLayout/VwcLayout.stories.jsx +63 -0
  74. package/stories/v2/VwcLinearProgress/VwcLinearProgress.stories.jsx +18 -0
  75. package/stories/v2/VwcList/VwcList.stories.jsx +25 -0
  76. package/stories/v2/VwcListExpansionPanel/VwcListExpansionPanel.stories.jsx +18 -0
  77. package/stories/v2/VwcListItem/VwcListItem.stories.jsx +18 -0
  78. package/stories/v2/VwcMenu/VwcMenu.stories.jsx +41 -0
  79. package/stories/v2/VwcNotchedOutline/VwcNotchedOutline.stories.jsx +18 -0
  80. package/stories/v2/VwcNote/VwcNote.stories.jsx +18 -0
  81. package/stories/v2/VwcPagination/VwcPagination.stories.jsx +18 -0
  82. package/stories/v2/VwcPopup/VwcPopup.stories.jsx +18 -0
  83. package/stories/v2/VwcRadio/VwcRadio.stories.jsx +18 -0
  84. package/stories/v2/VwcRadioListItem/VwcRadioListItem.stories.jsx +18 -0
  85. package/stories/v2/VwcSchemeSelect/VwcSchemeSelect.stories.jsx +18 -0
  86. package/stories/v2/VwcSelect/VwcSelect.stories.jsx +18 -0
  87. package/stories/v2/VwcSideDrawer/VwcSideDrawer.stories.jsx +18 -0
  88. package/stories/v2/VwcSlider/VwcSlider.stories.jsx +18 -0
  89. package/stories/v2/VwcSnackbar/VwcSnackbar.stories.jsx +18 -0
  90. package/stories/v2/VwcSurface/VwcSurface.stories.jsx +18 -0
  91. package/stories/v2/VwcSwitch/VwcSwitch.stories.jsx +18 -0
  92. package/stories/v2/VwcTab/VwcTab.stories.jsx +18 -0
  93. package/stories/v2/VwcTabBar/VwcTabBar.stories.jsx +63 -0
  94. package/stories/v2/VwcTag/VwcTag.stories.jsx +18 -0
  95. package/stories/v2/VwcText/VwcText.stories.jsx +18 -0
  96. package/stories/v2/VwcTextarea/VwcTextarea.stories.jsx +24 -0
  97. package/stories/v2/VwcTextfield/VwcTextfield.stories.jsx +47 -0
  98. package/stories/v2/VwcThemeSwitch/VwcThemeSwitch.stories.jsx +18 -0
  99. package/stories/v2/VwcTooltip/VwcTooltip.stories.jsx +41 -0
  100. package/stories/v2/VwcTopAppBar/VwcTopAppBar.stories.jsx +18 -0
  101. package/stories/v2/VwcTopAppBarFixed/VwcTopAppBarFixed.stories.jsx +18 -0
  102. package/stories/v2/patches/patches.stories.jsx +94 -0
  103. package/stories/v3/v3.stories.jsx +28 -0
  104. package/tsconfig.json +70 -0
  105. package/VwcAccordion/index.d.ts +0 -14
  106. package/VwcAccordion/index.js +0 -59
  107. package/VwcAccordion/package.json +0 -11
  108. package/VwcActionGroup/index.d.ts +0 -18
  109. package/VwcActionGroup/index.js +0 -90
  110. package/VwcActionGroup/package.json +0 -11
  111. package/VwcBadge/index.d.ts +0 -29
  112. package/VwcBadge/index.js +0 -154
  113. package/VwcBadge/package.json +0 -11
  114. package/VwcBanner/index.d.ts +0 -26
  115. package/VwcBanner/index.js +0 -91
  116. package/VwcBanner/package.json +0 -11
  117. package/VwcButton/index.d.ts +0 -55
  118. package/VwcButton/index.js +0 -240
  119. package/VwcButton/package.json +0 -11
  120. package/VwcButtonToggleGroup/index.d.ts +0 -25
  121. package/VwcButtonToggleGroup/index.js +0 -91
  122. package/VwcButtonToggleGroup/package.json +0 -11
  123. package/VwcCalendar/index.d.ts +0 -20
  124. package/VwcCalendar/index.js +0 -70
  125. package/VwcCalendar/package.json +0 -11
  126. package/VwcCalendarEvent/index.d.ts +0 -25
  127. package/VwcCalendarEvent/index.js +0 -81
  128. package/VwcCalendarEvent/package.json +0 -11
  129. package/VwcCard/index.d.ts +0 -23
  130. package/VwcCard/index.js +0 -76
  131. package/VwcCard/package.json +0 -11
  132. package/VwcCarousel/index.d.ts +0 -14
  133. package/VwcCarousel/index.js +0 -45
  134. package/VwcCarousel/package.json +0 -11
  135. package/VwcCarouselItem/index.d.ts +0 -14
  136. package/VwcCarouselItem/index.js +0 -49
  137. package/VwcCarouselItem/package.json +0 -11
  138. package/VwcCheckListItem/index.d.ts +0 -41
  139. package/VwcCheckListItem/index.js +0 -153
  140. package/VwcCheckListItem/package.json +0 -11
  141. package/VwcCheckbox/index.d.ts +0 -34
  142. package/VwcCheckbox/index.js +0 -126
  143. package/VwcCheckbox/package.json +0 -11
  144. package/VwcChip/index.d.ts +0 -31
  145. package/VwcChip/index.js +0 -106
  146. package/VwcChip/package.json +0 -11
  147. package/VwcChipSet/index.d.ts +0 -16
  148. package/VwcChipSet/index.js +0 -60
  149. package/VwcChipSet/package.json +0 -11
  150. package/VwcCircularProgress/index.d.ts +0 -24
  151. package/VwcCircularProgress/index.js +0 -84
  152. package/VwcCircularProgress/package.json +0 -11
  153. package/VwcDataGrid/index.d.ts +0 -33
  154. package/VwcDataGrid/index.js +0 -122
  155. package/VwcDataGrid/package.json +0 -11
  156. package/VwcDataGridColumn/index.d.ts +0 -43
  157. package/VwcDataGridColumn/index.js +0 -144
  158. package/VwcDataGridColumn/package.json +0 -11
  159. package/VwcDatepicker/index.d.ts +0 -120
  160. package/VwcDatepicker/index.js +0 -422
  161. package/VwcDatepicker/package.json +0 -11
  162. package/VwcDialog/index.d.ts +0 -40
  163. package/VwcDialog/index.js +0 -135
  164. package/VwcDialog/package.json +0 -11
  165. package/VwcDrawer/index.d.ts +0 -20
  166. package/VwcDrawer/index.js +0 -80
  167. package/VwcDrawer/package.json +0 -11
  168. package/VwcDropdown/index.d.ts +0 -61
  169. package/VwcDropdown/index.js +0 -221
  170. package/VwcDropdown/package.json +0 -11
  171. package/VwcElevation/index.d.ts +0 -14
  172. package/VwcElevation/index.js +0 -45
  173. package/VwcElevation/package.json +0 -11
  174. package/VwcEmptyState/index.d.ts +0 -18
  175. package/VwcEmptyState/index.js +0 -59
  176. package/VwcEmptyState/package.json +0 -11
  177. package/VwcExpansionPanel/index.d.ts +0 -34
  178. package/VwcExpansionPanel/index.js +0 -199
  179. package/VwcExpansionPanel/package.json +0 -11
  180. package/VwcFab/index.d.ts +0 -32
  181. package/VwcFab/index.js +0 -124
  182. package/VwcFab/package.json +0 -11
  183. package/VwcFilePicker/index.d.ts +0 -24
  184. package/VwcFilePicker/index.js +0 -88
  185. package/VwcFilePicker/package.json +0 -11
  186. package/VwcFormfield/index.d.ts +0 -20
  187. package/VwcFormfield/index.js +0 -70
  188. package/VwcFormfield/package.json +0 -11
  189. package/VwcHelperMessage/index.d.ts +0 -14
  190. package/VwcHelperMessage/index.js +0 -49
  191. package/VwcHelperMessage/package.json +0 -11
  192. package/VwcIcon/index.d.ts +0 -22
  193. package/VwcIcon/index.js +0 -102
  194. package/VwcIcon/package.json +0 -11
  195. package/VwcIconButton/index.d.ts +0 -31
  196. package/VwcIconButton/index.js +0 -111
  197. package/VwcIconButton/package.json +0 -11
  198. package/VwcIconButtonToggle/index.d.ts +0 -37
  199. package/VwcIconButtonToggle/index.js +0 -136
  200. package/VwcIconButtonToggle/package.json +0 -11
  201. package/VwcKeypad/index.d.ts +0 -31
  202. package/VwcKeypad/index.js +0 -176
  203. package/VwcKeypad/package.json +0 -11
  204. package/VwcLayout/index.d.ts +0 -20
  205. package/VwcLayout/index.js +0 -105
  206. package/VwcLayout/package.json +0 -11
  207. package/VwcLinearProgress/index.d.ts +0 -26
  208. package/VwcLinearProgress/index.js +0 -98
  209. package/VwcLinearProgress/package.json +0 -11
  210. package/VwcList/index.d.ts +0 -35
  211. package/VwcList/index.js +0 -146
  212. package/VwcList/package.json +0 -11
  213. package/VwcListExpansionPanel/index.d.ts +0 -19
  214. package/VwcListExpansionPanel/index.js +0 -68
  215. package/VwcListExpansionPanel/package.json +0 -11
  216. package/VwcListItem/index.d.ts +0 -42
  217. package/VwcListItem/index.js +0 -171
  218. package/VwcListItem/package.json +0 -11
  219. package/VwcMenu/index.d.ts +0 -53
  220. package/VwcMenu/index.js +0 -210
  221. package/VwcMenu/package.json +0 -11
  222. package/VwcNotchedOutline/index.d.ts +0 -17
  223. package/VwcNotchedOutline/index.js +0 -58
  224. package/VwcNotchedOutline/package.json +0 -11
  225. package/VwcNote/index.d.ts +0 -18
  226. package/VwcNote/index.js +0 -59
  227. package/VwcNote/package.json +0 -11
  228. package/VwcPagination/index.d.ts +0 -16
  229. package/VwcPagination/index.js +0 -52
  230. package/VwcPagination/package.json +0 -11
  231. package/VwcPopup/index.d.ts +0 -30
  232. package/VwcPopup/index.js +0 -147
  233. package/VwcPopup/package.json +0 -11
  234. package/VwcRadio/index.d.ts +0 -52
  235. package/VwcRadio/index.js +0 -149
  236. package/VwcRadio/package.json +0 -11
  237. package/VwcRadioListItem/index.d.ts +0 -41
  238. package/VwcRadioListItem/index.js +0 -148
  239. package/VwcRadioListItem/package.json +0 -11
  240. package/VwcSchemeSelect/index.d.ts +0 -14
  241. package/VwcSchemeSelect/index.js +0 -46
  242. package/VwcSchemeSelect/package.json +0 -11
  243. package/VwcSelect/index.d.ts +0 -60
  244. package/VwcSelect/index.js +0 -253
  245. package/VwcSelect/package.json +0 -11
  246. package/VwcSideDrawer/index.d.ts +0 -22
  247. package/VwcSideDrawer/index.js +0 -73
  248. package/VwcSideDrawer/package.json +0 -11
  249. package/VwcSlider/index.d.ts +0 -34
  250. package/VwcSlider/index.js +0 -129
  251. package/VwcSlider/package.json +0 -11
  252. package/VwcSnackbar/index.d.ts +0 -42
  253. package/VwcSnackbar/index.js +0 -138
  254. package/VwcSnackbar/package.json +0 -11
  255. package/VwcSurface/index.d.ts +0 -42
  256. package/VwcSurface/index.js +0 -145
  257. package/VwcSurface/package.json +0 -11
  258. package/VwcSwitch/index.d.ts +0 -27
  259. package/VwcSwitch/index.js +0 -114
  260. package/VwcSwitch/package.json +0 -11
  261. package/VwcTab/index.d.ts +0 -40
  262. package/VwcTab/index.js +0 -151
  263. package/VwcTab/package.json +0 -11
  264. package/VwcTabBar/index.d.ts +0 -15
  265. package/VwcTabBar/index.js +0 -55
  266. package/VwcTabBar/package.json +0 -11
  267. package/VwcTag/index.d.ts +0 -34
  268. package/VwcTag/index.js +0 -115
  269. package/VwcTag/package.json +0 -11
  270. package/VwcText/index.d.ts +0 -18
  271. package/VwcText/index.js +0 -83
  272. package/VwcText/package.json +0 -11
  273. package/VwcTextarea/index.d.ts +0 -93
  274. package/VwcTextarea/index.js +0 -331
  275. package/VwcTextarea/package.json +0 -11
  276. package/VwcTextfield/index.d.ts +0 -89
  277. package/VwcTextfield/index.js +0 -329
  278. package/VwcTextfield/package.json +0 -11
  279. package/VwcThemeSwitch/index.d.ts +0 -14
  280. package/VwcThemeSwitch/index.js +0 -57
  281. package/VwcThemeSwitch/package.json +0 -11
  282. package/VwcTooltip/index.d.ts +0 -22
  283. package/VwcTooltip/index.js +0 -105
  284. package/VwcTooltip/package.json +0 -11
  285. package/VwcTopAppBar/index.d.ts +0 -22
  286. package/VwcTopAppBar/index.js +0 -77
  287. package/VwcTopAppBar/package.json +0 -11
  288. package/VwcTopAppBarFixed/index.d.ts +0 -22
  289. package/VwcTopAppBarFixed/index.js +0 -88
  290. package/VwcTopAppBarFixed/package.json +0 -11
  291. package/index.js +0 -281
  292. package/types/index.d.ts +0 -2
package/tsconfig.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
+
5
+ /* Basic Options */
6
+ // "incremental": true, /* Enable incremental compilation */
7
+ "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
8
+ "module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
9
+ // "lib": ["ES2015"], /* Specify library files to be included in the compilation. */
10
+ // "allowJs": true, /* Allow javascript files to be compiled. */
11
+ // "checkJs": true, /* Report errors in .js files. */
12
+ "jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
13
+ "declaration": true, /* Generates corresponding '.d.ts' file. */
14
+ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
15
+ // "sourceMap": true, /* Generates corresponding '.map' file. */
16
+ // "outFile": "./", /* Concatenate and emit output to single file. */
17
+ "outDir": "./dist", /* Redirect output structure to the directory. */
18
+ "rootDir": "./dist.ts", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
19
+ // "composite": true, /* Enable project compilation */
20
+ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
21
+ // "removeComments": true, /* Do not emit comments to output. */
22
+ // "noEmit": true, /* Do not emit outputs. */
23
+ "emitDeclarationOnly": true,
24
+ // "importHelpers": true, /* Import emit helpers from 'tslib'. */
25
+ // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
26
+ // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
27
+
28
+ /* Strict Type-Checking Options */
29
+ "strict": true, /* Enable all strict type-checking options. */
30
+ // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
31
+ // "strictNullChecks": true, /* Enable strict null checks. */
32
+ // "strictFunctionTypes": true, /* Enable strict checking of function types. */
33
+ // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
34
+ // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
35
+ // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
36
+ // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
37
+
38
+ /* Additional Checks */
39
+ // "noUnusedLocals": true, /* Report errors on unused locals. */
40
+ // "noUnusedParameters": true, /* Report errors on unused parameters. */
41
+ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
42
+ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
43
+
44
+ /* Module Resolution Options */
45
+ "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
46
+ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
47
+ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
48
+ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
49
+ "typeRoots": ["types"], /* List of folders to include type definitions from. */
50
+ // "types": [], /* Type declaration files to be included in compilation. */
51
+ // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
52
+ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
53
+ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
54
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
55
+
56
+ /* Source Map Options */
57
+ // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
58
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
59
+ // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
60
+ // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
61
+
62
+ /* Experimental Options */
63
+ // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
64
+ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
65
+
66
+ /* Advanced Options */
67
+ "skipLibCheck": true, /* Skip type checking of declaration files. */
68
+ "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
69
+ }
70
+ }
@@ -1,14 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import '@vonage/vwc-accordion';
3
- /**
4
- * @param {boolean} multi attribute: <VwcAccordion multi />
5
- */
6
- declare const VwcAccordion: (props: {
7
- children?: ReactNode;
8
- slot?: string | undefined;
9
- id?: string | undefined;
10
- style?: React.CSSProperties | undefined;
11
- ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
12
- multi?: boolean | undefined;
13
- }) => JSX.Element;
14
- export default VwcAccordion;
@@ -1,59 +0,0 @@
1
- /*
2
- * DO NOT EDIT THIS FILE. IT IS GENERATED
3
- */
4
- /*
5
- Code in this file were generated using following JSON:
6
- {
7
- "name": "vwc-accordion",
8
- "path": "./../node_modules/@vonage/vwc-accordion/src/vwc-accordion.ts",
9
- "attributes": [
10
- {
11
- "name": "multi",
12
- "type": "boolean",
13
- "default": "false"
14
- }
15
- ],
16
- "properties": [
17
- {
18
- "name": "styles",
19
- "type": "CSSResult",
20
- "default": "\"style\""
21
- },
22
- {
23
- "name": "multi",
24
- "attribute": "multi",
25
- "type": "boolean",
26
- "default": "false",
27
- "bindable": false
28
- }
29
- ],
30
- "events": []
31
- }
32
- */
33
- import PropTypes from 'prop-types'
34
- import wrapper from '@vonage/vivid-react-wrapper'
35
- import '@vonage/vwc-accordion'
36
-
37
-
38
- /**
39
- * @param {boolean} multi attribute: &lt;VwcAccordion multi />
40
- */
41
- const VwcAccordion = wrapper('vwc-accordion', {
42
- events: [],
43
- attributes: [],
44
- properties: []
45
- });
46
-
47
- VwcAccordion.propTypes = {
48
- multi: PropTypes.bool/* default: false *//* attribute: multi */
49
- }
50
-
51
- VwcAccordion.defaultProps = {
52
- multi: false
53
- }
54
-
55
- VwcAccordion.displayName = 'VwcAccordion'
56
-
57
-
58
-
59
- export default VwcAccordion
@@ -1,11 +0,0 @@
1
- {
2
- "name": "@vonage/vivid-react-vwc-accordion",
3
- "version": "2.10.47",
4
- "main": "index.js",
5
- "types": "index.d.ts",
6
- "private": true,
7
- "license": "MIT",
8
- "dependencies": {
9
- "@vonage/vwc-accordion": "2.37.0"
10
- }
11
- }
@@ -1,18 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import '@vonage/vwc-action-group';
3
- /** Represents an action-group custom element.
4
- * @param {ActionGroupShape | undefined} shape attribute: &lt;VwcActionGroup shape />
5
- * @param {ActionGroupLayout | undefined} layout attribute: &lt;VwcActionGroup layout />
6
- * @param {boolean} tight attribute: &lt;VwcActionGroup tight />
7
- */
8
- declare const VwcActionGroup: (props: {
9
- children?: ReactNode;
10
- slot?: string | undefined;
11
- id?: string | undefined;
12
- style?: React.CSSProperties | undefined;
13
- ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
14
- shape?: any;
15
- layout?: any;
16
- tight?: boolean | undefined;
17
- }) => JSX.Element;
18
- export default VwcActionGroup;
@@ -1,90 +0,0 @@
1
- /*
2
- * DO NOT EDIT THIS FILE. IT IS GENERATED
3
- */
4
- /*
5
- Code in this file were generated using following JSON:
6
- {
7
- "name": "vwc-action-group",
8
- "path": "./../node_modules/@vonage/vwc-action-group/src/vwc-action-group.ts",
9
- "description": "Represents an action-group custom element.",
10
- "attributes": [
11
- {
12
- "name": "shape",
13
- "type": "ActionGroupShape | undefined"
14
- },
15
- {
16
- "name": "layout",
17
- "type": "ActionGroupLayout | undefined"
18
- },
19
- {
20
- "name": "tight",
21
- "type": "boolean",
22
- "default": "false"
23
- }
24
- ],
25
- "properties": [
26
- {
27
- "name": "styles",
28
- "type": "CSSResult",
29
- "default": "\"style\""
30
- },
31
- {
32
- "name": "shape",
33
- "attribute": "shape",
34
- "type": "ActionGroupShape | undefined",
35
- "bindable": false
36
- },
37
- {
38
- "name": "layout",
39
- "attribute": "layout",
40
- "type": "ActionGroupLayout | undefined",
41
- "bindable": false
42
- },
43
- {
44
- "name": "tight",
45
- "attribute": "tight",
46
- "type": "boolean",
47
- "default": "false",
48
- "bindable": false
49
- }
50
- ],
51
- "slots": [
52
- {
53
- "name": "",
54
- "description": "This is a default/unnamed slot to assign text content. *deprecated* please use _text_ property instead"
55
- }
56
- ],
57
- "events": []
58
- }
59
- */
60
- import PropTypes from 'prop-types'
61
- import wrapper from '@vonage/vivid-react-wrapper'
62
- import '@vonage/vwc-action-group'
63
-
64
-
65
- /** Represents an action-group custom element.
66
- * @param {ActionGroupShape | undefined} shape attribute: &lt;VwcActionGroup shape />
67
- * @param {ActionGroupLayout | undefined} layout attribute: &lt;VwcActionGroup layout />
68
- * @param {boolean} tight attribute: &lt;VwcActionGroup tight />
69
- */
70
- const VwcActionGroup = wrapper('vwc-action-group', {
71
- events: [],
72
- attributes: [],
73
- properties: []
74
- });
75
-
76
- VwcActionGroup.propTypes = {
77
- shape: PropTypes.any /* ActionGroupShape | undefined *//* attribute: shape */,
78
- layout: PropTypes.any /* ActionGroupLayout | undefined *//* attribute: layout */,
79
- tight: PropTypes.bool/* default: false *//* attribute: tight */
80
- }
81
-
82
- VwcActionGroup.defaultProps = {
83
- tight: false
84
- }
85
-
86
- VwcActionGroup.displayName = 'VwcActionGroup'
87
-
88
-
89
-
90
- export default VwcActionGroup
@@ -1,11 +0,0 @@
1
- {
2
- "name": "@vonage/vivid-react-vwc-action-group",
3
- "version": "2.10.47",
4
- "main": "index.js",
5
- "types": "index.d.ts",
6
- "private": true,
7
- "license": "MIT",
8
- "dependencies": {
9
- "@vonage/vwc-action-group": "2.37.0"
10
- }
11
- }
@@ -1,29 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import '@vonage/vwc-badge';
3
- /** Represents a badge custom element.
4
- badge is a label that holds small amounts of information. A badge can be used to display unread notifications, or to label a block of text. Badges don’t work for navigation because they can't include a hyperlink.
5
- * @param {BadgeConnotation | undefined} connotation attribute: &lt;VwcBadge connotation />
6
- * @param {BadgeShape | undefined} shape attribute: &lt;VwcBadge shape />
7
- * @param {BadgeLayout | undefined} layout attribute: &lt;VwcBadge layout />
8
- * @param {boolean} dense attribute: &lt;VwcBadge dense />
9
- * @param {boolean} enlarged attribute: &lt;VwcBadge enlarged />
10
- * @param {string | undefined} text attribute: &lt;VwcBadge text />
11
- * @param {string | undefined} icon attribute: &lt;VwcBadge icon />
12
- * @param {string | undefined} iconTrailing attribute: &lt;VwcBadge iconTrailing />
13
- */
14
- declare const VwcBadge: (props: {
15
- children?: ReactNode;
16
- slot?: string | undefined;
17
- id?: string | undefined;
18
- style?: React.CSSProperties | undefined;
19
- ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
20
- connotation?: any;
21
- shape?: any;
22
- layout?: any;
23
- dense?: boolean | undefined;
24
- enlarged?: boolean | undefined;
25
- text?: string | undefined;
26
- icon?: string | undefined;
27
- iconTrailing?: string | undefined;
28
- }) => JSX.Element;
29
- export default VwcBadge;
package/VwcBadge/index.js DELETED
@@ -1,154 +0,0 @@
1
- /*
2
- * DO NOT EDIT THIS FILE. IT IS GENERATED
3
- */
4
- /*
5
- Code in this file were generated using following JSON:
6
- {
7
- "name": "vwc-badge",
8
- "path": "./../node_modules/@vonage/vwc-badge/src/vwc-badge.ts",
9
- "description": "Represents a badge custom element.\nbadge is a label that holds small amounts of information. A badge can be used to display unread notifications, or to label a block of text. Badges don’t work for navigation because they can't include a hyperlink.",
10
- "attributes": [
11
- {
12
- "name": "connotation",
13
- "type": "BadgeConnotation | undefined"
14
- },
15
- {
16
- "name": "shape",
17
- "type": "BadgeShape | undefined"
18
- },
19
- {
20
- "name": "layout",
21
- "type": "BadgeLayout | undefined"
22
- },
23
- {
24
- "name": "dense",
25
- "type": "boolean",
26
- "default": "false"
27
- },
28
- {
29
- "name": "enlarged",
30
- "type": "boolean",
31
- "default": "false"
32
- },
33
- {
34
- "name": "text",
35
- "type": "string | undefined"
36
- },
37
- {
38
- "name": "icon",
39
- "type": "string | undefined"
40
- },
41
- {
42
- "name": "iconTrailing",
43
- "type": "string | undefined"
44
- }
45
- ],
46
- "properties": [
47
- {
48
- "name": "styles",
49
- "type": "CSSResult",
50
- "default": "\"style\""
51
- },
52
- {
53
- "name": "connotation",
54
- "attribute": "connotation",
55
- "type": "BadgeConnotation | undefined",
56
- "bindable": false
57
- },
58
- {
59
- "name": "shape",
60
- "attribute": "shape",
61
- "type": "BadgeShape | undefined",
62
- "bindable": false
63
- },
64
- {
65
- "name": "layout",
66
- "attribute": "layout",
67
- "type": "BadgeLayout | undefined",
68
- "bindable": false
69
- },
70
- {
71
- "name": "dense",
72
- "attribute": "dense",
73
- "type": "boolean",
74
- "default": "false",
75
- "bindable": false
76
- },
77
- {
78
- "name": "enlarged",
79
- "attribute": "enlarged",
80
- "type": "boolean",
81
- "default": "false",
82
- "bindable": false
83
- },
84
- {
85
- "name": "text",
86
- "attribute": "text",
87
- "type": "string | undefined",
88
- "bindable": false
89
- },
90
- {
91
- "name": "icon",
92
- "attribute": "icon",
93
- "type": "string | undefined",
94
- "bindable": false
95
- },
96
- {
97
- "name": "iconTrailing",
98
- "attribute": "iconTrailing",
99
- "type": "string | undefined",
100
- "bindable": false
101
- }
102
- ],
103
- "slots": [
104
- {
105
- "name": "",
106
- "description": "This is a default/unnamed slot to assign text content. *deprecated* please use _text_ property instead"
107
- }
108
- ],
109
- "events": []
110
- }
111
- */
112
- import PropTypes from 'prop-types'
113
- import wrapper from '@vonage/vivid-react-wrapper'
114
- import '@vonage/vwc-badge'
115
-
116
-
117
- /** Represents a badge custom element.
118
- badge is a label that holds small amounts of information. A badge can be used to display unread notifications, or to label a block of text. Badges don’t work for navigation because they can't include a hyperlink.
119
- * @param {BadgeConnotation | undefined} connotation attribute: &lt;VwcBadge connotation />
120
- * @param {BadgeShape | undefined} shape attribute: &lt;VwcBadge shape />
121
- * @param {BadgeLayout | undefined} layout attribute: &lt;VwcBadge layout />
122
- * @param {boolean} dense attribute: &lt;VwcBadge dense />
123
- * @param {boolean} enlarged attribute: &lt;VwcBadge enlarged />
124
- * @param {string | undefined} text attribute: &lt;VwcBadge text />
125
- * @param {string | undefined} icon attribute: &lt;VwcBadge icon />
126
- * @param {string | undefined} iconTrailing attribute: &lt;VwcBadge iconTrailing />
127
- */
128
- const VwcBadge = wrapper('vwc-badge', {
129
- events: [],
130
- attributes: [],
131
- properties: []
132
- });
133
-
134
- VwcBadge.propTypes = {
135
- connotation: PropTypes.any /* BadgeConnotation | undefined *//* attribute: connotation */,
136
- shape: PropTypes.any /* BadgeShape | undefined *//* attribute: shape */,
137
- layout: PropTypes.any /* BadgeLayout | undefined *//* attribute: layout */,
138
- dense: PropTypes.bool/* default: false *//* attribute: dense */,
139
- enlarged: PropTypes.bool/* default: false *//* attribute: enlarged */,
140
- text: PropTypes.string/* attribute: text */,
141
- icon: PropTypes.string/* attribute: icon */,
142
- iconTrailing: PropTypes.string/* attribute: iconTrailing */
143
- }
144
-
145
- VwcBadge.defaultProps = {
146
- dense: false,
147
- enlarged: false
148
- }
149
-
150
- VwcBadge.displayName = 'VwcBadge'
151
-
152
-
153
-
154
- export default VwcBadge
@@ -1,11 +0,0 @@
1
- {
2
- "name": "@vonage/vivid-react-vwc-badge",
3
- "version": "2.10.47",
4
- "main": "index.js",
5
- "types": "index.d.ts",
6
- "private": true,
7
- "license": "MIT",
8
- "dependencies": {
9
- "@vonage/vwc-badge": "2.37.0"
10
- }
11
- }
@@ -1,26 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import '@vonage/vwc-banner';
3
- /**
4
- * @param {string} message
5
- * @param {boolean} dismissible
6
- * @param {BannerConnotation | undefined} connotation
7
- * @param {string | undefined} icon
8
- * @param {boolean} open
9
- * @param {BannerRole} role
10
- * @param {BannerAriaLive} ariaLive
11
- */
12
- declare const VwcBanner: (props: {
13
- children?: ReactNode;
14
- slot?: string | undefined;
15
- id?: string | undefined;
16
- style?: React.CSSProperties | undefined;
17
- ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
18
- message?: string | undefined;
19
- dismissible?: boolean | undefined;
20
- connotation?: any;
21
- icon?: string | undefined;
22
- open?: boolean | undefined;
23
- role?: any;
24
- ariaLive?: any;
25
- }) => JSX.Element;
26
- export default VwcBanner;
@@ -1,91 +0,0 @@
1
- /*
2
- * DO NOT EDIT THIS FILE. IT IS GENERATED
3
- */
4
- /*
5
- Code in this file were generated using following JSON:
6
- {
7
- "name": "vwc-banner",
8
- "path": "./../node_modules/@vonage/vwc-banner/vwc-banner.d.ts",
9
- "properties": [
10
- {
11
- "name": "styles",
12
- "type": "CSSResult[]"
13
- },
14
- {
15
- "name": "message",
16
- "type": "string",
17
- "bindable": false
18
- },
19
- {
20
- "name": "dismissible",
21
- "type": "boolean",
22
- "bindable": false
23
- },
24
- {
25
- "name": "connotation",
26
- "type": "BannerConnotation | undefined",
27
- "bindable": false
28
- },
29
- {
30
- "name": "icon",
31
- "type": "string | undefined",
32
- "bindable": false
33
- },
34
- {
35
- "name": "open",
36
- "type": "boolean",
37
- "bindable": false
38
- },
39
- {
40
- "name": "role",
41
- "type": "BannerRole",
42
- "bindable": false
43
- },
44
- {
45
- "name": "ariaLive",
46
- "type": "BannerAriaLive",
47
- "bindable": false
48
- }
49
- ],
50
- "events": []
51
- }
52
- */
53
- import PropTypes from 'prop-types'
54
- import wrapper from '@vonage/vivid-react-wrapper'
55
- import '@vonage/vwc-banner'
56
-
57
-
58
- /**
59
- * @param {string} message
60
- * @param {boolean} dismissible
61
- * @param {BannerConnotation | undefined} connotation
62
- * @param {string | undefined} icon
63
- * @param {boolean} open
64
- * @param {BannerRole} role
65
- * @param {BannerAriaLive} ariaLive
66
- */
67
- const VwcBanner = wrapper('vwc-banner', {
68
- events: [],
69
- attributes: [],
70
- properties: []
71
- });
72
-
73
- VwcBanner.propTypes = {
74
- message: PropTypes.string,
75
- dismissible: PropTypes.bool,
76
- connotation: PropTypes.any /* BannerConnotation | undefined */,
77
- icon: PropTypes.string,
78
- open: PropTypes.bool,
79
- role: PropTypes.any /* BannerRole */,
80
- ariaLive: PropTypes.any /* BannerAriaLive */
81
- }
82
-
83
- VwcBanner.defaultProps = {
84
-
85
- }
86
-
87
- VwcBanner.displayName = 'VwcBanner'
88
-
89
-
90
-
91
- export default VwcBanner
@@ -1,11 +0,0 @@
1
- {
2
- "name": "@vonage/vivid-react-vwc-banner",
3
- "version": "2.10.47",
4
- "main": "index.js",
5
- "types": "index.d.ts",
6
- "private": true,
7
- "license": "MIT",
8
- "dependencies": {
9
- "@vonage/vwc-banner": "2.37.0"
10
- }
11
- }
@@ -1,55 +0,0 @@
1
- import React, { ReactNode, SyntheticEvent } from 'react';
2
- import '@vonage/vwc-button';
3
- /**
4
- * @param {string | undefined} name
5
- * @param {string | undefined} value
6
- * @param {boolean} enlarged
7
- * @param {ButtonLayout | undefined} layout
8
- * @param {ButtonConnotation | undefined} connotation
9
- * @param {ButtonShape | undefined} shape
10
- * @param {string} type
11
- * @param {string | null} formId
12
- * @param {boolean} stacked
13
- * @param {HTMLFormElement | null} form
14
- * @param {ShadowRootInit} shadowRootOptions
15
- * @param {boolean} raised
16
- * @param {boolean} unelevated
17
- * @param {boolean} outlined
18
- * @param {boolean} dense
19
- * @param {boolean} disabled
20
- * @param {boolean} trailingIcon
21
- * @param {boolean} fullwidth
22
- * @param {string} icon
23
- * @param {string} label
24
- * @param {boolean} expandContent
25
- */
26
- declare const VwcButton: (props: {
27
- children?: ReactNode;
28
- slot?: string | undefined;
29
- id?: string | undefined;
30
- style?: React.CSSProperties | undefined;
31
- ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
32
- onClick?: ((event: SyntheticEvent) => void) | undefined;
33
- name?: string | undefined;
34
- value?: string | undefined;
35
- enlarged?: boolean | undefined;
36
- layout?: any;
37
- connotation?: any;
38
- shape?: any;
39
- type?: string | undefined;
40
- formId?: string | null | undefined;
41
- stacked?: boolean | undefined;
42
- form?: any;
43
- shadowRootOptions?: any;
44
- raised?: boolean | undefined;
45
- unelevated?: boolean | undefined;
46
- outlined?: boolean | undefined;
47
- dense?: boolean | undefined;
48
- disabled?: boolean | undefined;
49
- trailingIcon?: boolean | undefined;
50
- fullwidth?: boolean | undefined;
51
- icon?: string | undefined;
52
- label?: string | undefined;
53
- expandContent?: boolean | undefined;
54
- }) => JSX.Element;
55
- export default VwcButton;