@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
@@ -1,93 +0,0 @@
1
- import React, { ReactNode, SyntheticEvent } from 'react';
2
- import '@vonage/vwc-textarea';
3
- /**
4
- * @param {boolean} dense
5
- * @param {boolean} resizable
6
- * @param {string | undefined} form
7
- * @param {number} rows
8
- * @param {number} cols
9
- * @param {string} value
10
- * @param {TextFieldType} type
11
- * @param {string} placeholder
12
- * @param {string} label
13
- * @param {string} icon
14
- * @param {string} iconTrailing
15
- * @param {boolean} disabled
16
- * @param {boolean} required
17
- * @param {number} minLength
18
- * @param {number} maxLength
19
- * @param {boolean} outlined
20
- * @param {string} helper
21
- * @param {boolean} validateOnInitialRender
22
- * @param {string} validationMessage
23
- * @param {boolean} autoValidate
24
- * @param {string} pattern
25
- * @param {string | number} min
26
- * @param {string | number} max
27
- * @param {number | null} step
28
- * @param {number | null} size
29
- * @param {boolean} helperPersistent
30
- * @param {boolean | TextAreaCharCounter} charCounter
31
- * @param {boolean} endAligned
32
- * @param {string} prefix
33
- * @param {string} suffix
34
- * @param {string} name
35
- * @param {TextFieldInputMode} inputMode
36
- * @param {boolean} readOnly
37
- * @param {string} autocapitalize
38
- * @param {boolean} willValidate
39
- * @param {number | null} selectionStart
40
- * @param {number | null} selectionEnd
41
- * @param {((value: string, nativeValidity: ValidityState) => Partial<ValidityState>) | null} validityTransform
42
- * @param {ShadowRootInit} shadowRootOptions
43
- */
44
- declare const VwcTextarea: (props: {
45
- children?: ReactNode;
46
- slot?: string | undefined;
47
- id?: string | undefined;
48
- style?: React.CSSProperties | undefined;
49
- ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
50
- onInput?: ((event: SyntheticEvent) => void) | undefined;
51
- onBlur?: ((event: SyntheticEvent) => void) | undefined;
52
- onFocus?: ((event: SyntheticEvent) => void) | undefined;
53
- dense?: boolean | undefined;
54
- resizable?: boolean | undefined;
55
- form?: string | undefined;
56
- rows?: number | undefined;
57
- cols?: number | undefined;
58
- value?: string | undefined;
59
- type?: any;
60
- placeholder?: string | undefined;
61
- label?: string | undefined;
62
- icon?: string | undefined;
63
- iconTrailing?: string | undefined;
64
- disabled?: boolean | undefined;
65
- required?: boolean | undefined;
66
- minLength?: number | undefined;
67
- maxLength?: number | undefined;
68
- outlined?: boolean | undefined;
69
- helper?: string | undefined;
70
- validateOnInitialRender?: boolean | undefined;
71
- validationMessage?: string | undefined;
72
- autoValidate?: boolean | undefined;
73
- pattern?: string | undefined;
74
- min?: string | number | undefined;
75
- max?: string | number | undefined;
76
- step?: number | undefined;
77
- size?: number | undefined;
78
- helperPersistent?: boolean | undefined;
79
- charCounter?: any;
80
- endAligned?: boolean | undefined;
81
- prefix?: string | undefined;
82
- suffix?: string | undefined;
83
- name?: string | undefined;
84
- inputMode?: any;
85
- readOnly?: boolean | undefined;
86
- autocapitalize?: string | undefined;
87
- willValidate?: boolean | undefined;
88
- selectionStart?: number | undefined;
89
- selectionEnd?: number | undefined;
90
- validityTransform?: any;
91
- shadowRootOptions?: any;
92
- }) => JSX.Element;
93
- export default VwcTextarea;
@@ -1,331 +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-textarea",
8
- "path": "./../node_modules/@vonage/vwc-textarea/vwc-textarea.d.ts",
9
- "properties": [
10
- {
11
- "name": "dense",
12
- "type": "boolean",
13
- "bindable": false
14
- },
15
- {
16
- "name": "resizable",
17
- "type": "boolean",
18
- "bindable": false
19
- },
20
- {
21
- "name": "form",
22
- "type": "string | undefined",
23
- "bindable": true
24
- },
25
- {
26
- "name": "styles",
27
- "type": "CSSResult[]"
28
- },
29
- {
30
- "name": "rows",
31
- "type": "number",
32
- "bindable": false
33
- },
34
- {
35
- "name": "cols",
36
- "type": "number",
37
- "bindable": false
38
- },
39
- {
40
- "name": "value",
41
- "type": "string",
42
- "bindable": false
43
- },
44
- {
45
- "name": "type",
46
- "type": "TextFieldType",
47
- "bindable": false
48
- },
49
- {
50
- "name": "placeholder",
51
- "type": "string",
52
- "bindable": false
53
- },
54
- {
55
- "name": "label",
56
- "type": "string",
57
- "bindable": false
58
- },
59
- {
60
- "name": "icon",
61
- "type": "string",
62
- "bindable": false
63
- },
64
- {
65
- "name": "iconTrailing",
66
- "type": "string",
67
- "bindable": false
68
- },
69
- {
70
- "name": "disabled",
71
- "type": "boolean",
72
- "bindable": false
73
- },
74
- {
75
- "name": "required",
76
- "type": "boolean",
77
- "bindable": false
78
- },
79
- {
80
- "name": "minLength",
81
- "type": "number",
82
- "bindable": false
83
- },
84
- {
85
- "name": "maxLength",
86
- "type": "number",
87
- "bindable": false
88
- },
89
- {
90
- "name": "outlined",
91
- "type": "boolean",
92
- "bindable": false
93
- },
94
- {
95
- "name": "helper",
96
- "type": "string",
97
- "bindable": false
98
- },
99
- {
100
- "name": "validateOnInitialRender",
101
- "type": "boolean",
102
- "bindable": false
103
- },
104
- {
105
- "name": "validationMessage",
106
- "type": "string",
107
- "bindable": false
108
- },
109
- {
110
- "name": "autoValidate",
111
- "type": "boolean",
112
- "bindable": false
113
- },
114
- {
115
- "name": "pattern",
116
- "type": "string",
117
- "bindable": false
118
- },
119
- {
120
- "name": "min",
121
- "type": "string | number",
122
- "bindable": false
123
- },
124
- {
125
- "name": "max",
126
- "type": "string | number",
127
- "bindable": false
128
- },
129
- {
130
- "name": "step",
131
- "type": "number | null",
132
- "bindable": false
133
- },
134
- {
135
- "name": "size",
136
- "type": "number | null",
137
- "bindable": false
138
- },
139
- {
140
- "name": "helperPersistent",
141
- "type": "boolean",
142
- "bindable": false
143
- },
144
- {
145
- "name": "charCounter",
146
- "type": "boolean | TextAreaCharCounter",
147
- "bindable": false
148
- },
149
- {
150
- "name": "endAligned",
151
- "type": "boolean",
152
- "bindable": false
153
- },
154
- {
155
- "name": "prefix",
156
- "type": "string",
157
- "bindable": false
158
- },
159
- {
160
- "name": "suffix",
161
- "type": "string",
162
- "bindable": false
163
- },
164
- {
165
- "name": "name",
166
- "type": "string",
167
- "bindable": false
168
- },
169
- {
170
- "name": "inputMode",
171
- "type": "TextFieldInputMode",
172
- "bindable": false
173
- },
174
- {
175
- "name": "readOnly",
176
- "type": "boolean",
177
- "bindable": false
178
- },
179
- {
180
- "name": "autocapitalize",
181
- "type": "string",
182
- "bindable": false
183
- },
184
- {
185
- "name": "validity",
186
- "type": "ValidityState"
187
- },
188
- {
189
- "name": "willValidate",
190
- "type": "boolean",
191
- "bindable": false
192
- },
193
- {
194
- "name": "selectionStart",
195
- "type": "number | null",
196
- "bindable": false
197
- },
198
- {
199
- "name": "selectionEnd",
200
- "type": "number | null",
201
- "bindable": false
202
- },
203
- {
204
- "name": "validityTransform",
205
- "type": "((value: string, nativeValidity: ValidityState) => Partial<ValidityState>) | null",
206
- "bindable": true
207
- },
208
- {
209
- "name": "shadowRootOptions",
210
- "type": "ShadowRootInit",
211
- "bindable": false
212
- },
213
- {
214
- "name": "ripple",
215
- "description": "Implement ripple getter for Ripple integration with mwc-formfield",
216
- "type": "Promise<RippleInterface | null> | undefined"
217
- }
218
- ],
219
- "events": [
220
- "input",
221
- "blur",
222
- "focus"
223
- ]
224
- }
225
- */
226
- import PropTypes from 'prop-types'
227
- import wrapper from '@vonage/vivid-react-wrapper'
228
- import '@vonage/vwc-textarea'
229
-
230
-
231
- /**
232
- * @param {boolean} dense
233
- * @param {boolean} resizable
234
- * @param {string | undefined} form
235
- * @param {number} rows
236
- * @param {number} cols
237
- * @param {string} value
238
- * @param {TextFieldType} type
239
- * @param {string} placeholder
240
- * @param {string} label
241
- * @param {string} icon
242
- * @param {string} iconTrailing
243
- * @param {boolean} disabled
244
- * @param {boolean} required
245
- * @param {number} minLength
246
- * @param {number} maxLength
247
- * @param {boolean} outlined
248
- * @param {string} helper
249
- * @param {boolean} validateOnInitialRender
250
- * @param {string} validationMessage
251
- * @param {boolean} autoValidate
252
- * @param {string} pattern
253
- * @param {string | number} min
254
- * @param {string | number} max
255
- * @param {number | null} step
256
- * @param {number | null} size
257
- * @param {boolean} helperPersistent
258
- * @param {boolean | TextAreaCharCounter} charCounter
259
- * @param {boolean} endAligned
260
- * @param {string} prefix
261
- * @param {string} suffix
262
- * @param {string} name
263
- * @param {TextFieldInputMode} inputMode
264
- * @param {boolean} readOnly
265
- * @param {string} autocapitalize
266
- * @param {boolean} willValidate
267
- * @param {number | null} selectionStart
268
- * @param {number | null} selectionEnd
269
- * @param {((value: string, nativeValidity: ValidityState) => Partial<ValidityState>) | null} validityTransform
270
- * @param {ShadowRootInit} shadowRootOptions
271
- */
272
- const VwcTextarea = wrapper('vwc-textarea', {
273
- events: [{"name":"focus","propName":"onFocus"},{"name":"blur","propName":"onBlur"},{"name":"input","propName":"onInput"}],
274
- attributes: [],
275
- properties: ["form","validityTransform"]
276
- });
277
-
278
- VwcTextarea.propTypes = {
279
- onInput: PropTypes.func,
280
- onBlur: PropTypes.func,
281
- onFocus: PropTypes.func,
282
- dense: PropTypes.bool,
283
- resizable: PropTypes.bool,
284
- form: PropTypes.string,
285
- rows: PropTypes.number,
286
- cols: PropTypes.number,
287
- value: PropTypes.string,
288
- type: PropTypes.any /* TextFieldType */,
289
- placeholder: PropTypes.string,
290
- label: PropTypes.string,
291
- icon: PropTypes.string,
292
- iconTrailing: PropTypes.string,
293
- disabled: PropTypes.bool,
294
- required: PropTypes.bool,
295
- minLength: PropTypes.number,
296
- maxLength: PropTypes.number,
297
- outlined: PropTypes.bool,
298
- helper: PropTypes.string,
299
- validateOnInitialRender: PropTypes.bool,
300
- validationMessage: PropTypes.string,
301
- autoValidate: PropTypes.bool,
302
- pattern: PropTypes.string,
303
- min: PropTypes.any /* string | number */,
304
- max: PropTypes.any /* string | number */,
305
- step: PropTypes.number,
306
- size: PropTypes.number,
307
- helperPersistent: PropTypes.bool,
308
- charCounter: PropTypes.any /* boolean | TextAreaCharCounter */,
309
- endAligned: PropTypes.bool,
310
- prefix: PropTypes.string,
311
- suffix: PropTypes.string,
312
- name: PropTypes.string,
313
- inputMode: PropTypes.any /* TextFieldInputMode */,
314
- readOnly: PropTypes.bool,
315
- autocapitalize: PropTypes.string,
316
- willValidate: PropTypes.bool,
317
- selectionStart: PropTypes.number,
318
- selectionEnd: PropTypes.number,
319
- validityTransform: PropTypes.any /* ((value: string, nativeValidity: ValidityState) => Partial<ValidityState>) | null */,
320
- shadowRootOptions: PropTypes.any /* ShadowRootInit */
321
- }
322
-
323
- VwcTextarea.defaultProps = {
324
-
325
- }
326
-
327
- VwcTextarea.displayName = 'VwcTextarea'
328
-
329
-
330
-
331
- export default VwcTextarea
@@ -1,11 +0,0 @@
1
- {
2
- "name": "@vonage/vivid-react-vwc-textarea",
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-textarea": "2.37.0"
10
- }
11
- }
@@ -1,89 +0,0 @@
1
- import React, { ReactNode, SyntheticEvent } from 'react';
2
- import '@vonage/vwc-textfield';
3
- /**
4
- * @param {boolean} noActionsSync
5
- * @param {boolean} dense
6
- * @param {TextfieldShape | undefined} shape
7
- * @param {string | undefined} autocomplete
8
- * @param {string | undefined} form
9
- * @param {TextfieldLayout | undefined} appearance
10
- * @param {string} value
11
- * @param {TextFieldType} type
12
- * @param {string} placeholder
13
- * @param {string} label
14
- * @param {string} icon
15
- * @param {string} iconTrailing
16
- * @param {boolean} disabled
17
- * @param {boolean} required
18
- * @param {number} minLength
19
- * @param {number} maxLength
20
- * @param {boolean} outlined
21
- * @param {string} helper
22
- * @param {boolean} validateOnInitialRender
23
- * @param {string} validationMessage
24
- * @param {boolean} autoValidate
25
- * @param {string} pattern
26
- * @param {string | number} min
27
- * @param {string | number} max
28
- * @param {number | null} step
29
- * @param {number | null} size
30
- * @param {boolean} helperPersistent
31
- * @param {boolean | TextAreaCharCounter} charCounter
32
- * @param {boolean} endAligned
33
- * @param {string} prefix
34
- * @param {string} suffix
35
- * @param {string} name
36
- * @param {TextFieldInputMode} inputMode
37
- * @param {boolean} readOnly
38
- * @param {string} autocapitalize
39
- * @param {((value: string, nativeValidity: ValidityState) => Partial<ValidityState>) | null} validityTransform
40
- * @param {ShadowRootInit} shadowRootOptions
41
- */
42
- declare const VwcTextfield: (props: {
43
- children?: ReactNode;
44
- slot?: string | undefined;
45
- id?: string | undefined;
46
- style?: React.CSSProperties | undefined;
47
- ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
48
- onInput?: ((event: SyntheticEvent) => void) | undefined;
49
- onBlur?: ((event: SyntheticEvent) => void) | undefined;
50
- onFocus?: ((event: SyntheticEvent) => void) | undefined;
51
- noActionsSync?: boolean | undefined;
52
- dense?: boolean | undefined;
53
- shape?: any;
54
- autocomplete?: string | undefined;
55
- form?: string | undefined;
56
- appearance?: any;
57
- value?: string | undefined;
58
- type?: any;
59
- placeholder?: string | undefined;
60
- label?: string | undefined;
61
- icon?: string | undefined;
62
- iconTrailing?: string | undefined;
63
- disabled?: boolean | undefined;
64
- required?: boolean | undefined;
65
- minLength?: number | undefined;
66
- maxLength?: number | undefined;
67
- outlined?: boolean | undefined;
68
- helper?: string | undefined;
69
- validateOnInitialRender?: boolean | undefined;
70
- validationMessage?: string | undefined;
71
- autoValidate?: boolean | undefined;
72
- pattern?: string | undefined;
73
- min?: string | number | undefined;
74
- max?: string | number | undefined;
75
- step?: number | undefined;
76
- size?: number | undefined;
77
- helperPersistent?: boolean | undefined;
78
- charCounter?: any;
79
- endAligned?: boolean | undefined;
80
- prefix?: string | undefined;
81
- suffix?: string | undefined;
82
- name?: string | undefined;
83
- inputMode?: any;
84
- readOnly?: boolean | undefined;
85
- autocapitalize?: string | undefined;
86
- validityTransform?: any;
87
- shadowRootOptions?: any;
88
- }) => JSX.Element;
89
- export default VwcTextfield;