@vonage/vivid-react 2.10.73 → 2.10.75
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.
- package/VwcAccordion/package.json +1 -1
- package/VwcActionGroup/package.json +1 -1
- package/VwcBadge/package.json +1 -1
- package/VwcBanner/package.json +1 -1
- package/VwcButton/package.json +1 -1
- package/VwcButtonToggleGroup/package.json +1 -1
- package/VwcCalendar/package.json +1 -1
- package/VwcCalendarEvent/package.json +1 -1
- package/VwcCard/package.json +1 -1
- package/VwcCarousel/package.json +1 -1
- package/VwcCarouselItem/package.json +1 -1
- package/VwcCheckListItem/package.json +1 -1
- package/VwcCheckbox/package.json +1 -1
- package/VwcChip/package.json +1 -1
- package/VwcChipSet/package.json +1 -1
- package/VwcCircularProgress/package.json +1 -1
- package/VwcDataGrid/package.json +1 -1
- package/VwcDataGridColumn/package.json +1 -1
- package/VwcDatepicker/package.json +1 -1
- package/VwcDialog/package.json +1 -1
- package/VwcDrawer/package.json +1 -1
- package/VwcDropdown/package.json +1 -1
- package/VwcElevation/package.json +1 -1
- package/VwcEmptyState/package.json +1 -1
- package/VwcExpansionPanel/package.json +1 -1
- package/VwcFab/package.json +1 -1
- package/VwcFilePicker/package.json +1 -1
- package/VwcFormfield/package.json +1 -1
- package/VwcHelperMessage/package.json +1 -1
- package/VwcIcon/package.json +1 -1
- package/VwcIconButton/package.json +1 -1
- package/VwcIconButtonToggle/package.json +1 -1
- package/VwcKeypad/package.json +1 -1
- package/VwcLayout/package.json +1 -1
- package/VwcLinearProgress/package.json +1 -1
- package/VwcList/package.json +1 -1
- package/VwcListExpansionPanel/package.json +1 -1
- package/VwcListItem/package.json +1 -1
- package/VwcMenu/package.json +1 -1
- package/VwcNotchedOutline/package.json +1 -1
- package/VwcNote/package.json +1 -1
- package/VwcPagination/package.json +1 -1
- package/VwcPopup/package.json +1 -1
- package/VwcRadio/package.json +1 -1
- package/VwcRadioListItem/package.json +1 -1
- package/VwcSchemeSelect/package.json +1 -1
- package/VwcScrubBar/package.json +1 -1
- package/VwcSelect/package.json +1 -1
- package/VwcSideDrawer/package.json +1 -1
- package/VwcSlider/package.json +1 -1
- package/VwcSnackbar/package.json +1 -1
- package/VwcSurface/package.json +1 -1
- package/VwcSwitch/package.json +1 -1
- package/VwcTab/package.json +1 -1
- package/VwcTabBar/package.json +1 -1
- package/VwcTag/package.json +1 -1
- package/VwcText/package.json +1 -1
- package/VwcTextarea/package.json +1 -1
- package/VwcTextfield/package.json +1 -1
- package/VwcThemeSwitch/package.json +1 -1
- package/VwcTooltip/package.json +1 -1
- package/VwcTopAppBar/package.json +1 -1
- package/VwcTopAppBarFixed/package.json +1 -1
- package/package.json +1 -1
- package/v3/VwcAccordion/index.d.ts +2 -1
- package/v3/VwcAccordion/index.js +1 -1
- package/v3/VwcCheckbox/index.d.ts +6 -1
- package/v3/VwcCheckbox/index.js +2 -2
- package/v3/VwcCombobox/index.d.ts +2 -1
- package/v3/VwcCombobox/index.js +1 -1
- package/v3/VwcMenuItem/index.d.ts +2 -1
- package/v3/VwcMenuItem/index.js +1 -1
- package/v3/VwcNumberField/index.d.ts +3 -1
- package/v3/VwcNumberField/index.js +1 -1
- package/v3/VwcRadio/index.d.ts +2 -1
- package/v3/VwcRadio/index.js +1 -1
- package/v3/VwcRadioGroup/index.d.ts +2 -1
- package/v3/VwcRadioGroup/index.js +1 -1
- package/v3/VwcSplitButton/index.d.ts +2 -1
- package/v3/VwcSplitButton/index.js +1 -1
- package/v3/VwcSwitch/index.d.ts +2 -1
- package/v3/VwcSwitch/index.js +1 -1
- package/v3/VwcTab/index.d.ts +2 -1
- package/v3/VwcTab/index.js +1 -1
- package/v3/VwcTabs/index.d.ts +2 -1
- package/v3/VwcTabs/index.js +1 -1
- package/v3/VwcTextArea/index.d.ts +2 -1
- package/v3/VwcTextArea/index.js +1 -1
- package/v3/VwcTextField/index.d.ts +2 -2
- package/v3/VwcTextField/index.js +1 -1
package/VwcBadge/package.json
CHANGED
package/VwcBanner/package.json
CHANGED
package/VwcButton/package.json
CHANGED
package/VwcCalendar/package.json
CHANGED
package/VwcCard/package.json
CHANGED
package/VwcCarousel/package.json
CHANGED
package/VwcCheckbox/package.json
CHANGED
package/VwcChip/package.json
CHANGED
package/VwcChipSet/package.json
CHANGED
package/VwcDataGrid/package.json
CHANGED
package/VwcDialog/package.json
CHANGED
package/VwcDrawer/package.json
CHANGED
package/VwcDropdown/package.json
CHANGED
package/VwcFab/package.json
CHANGED
package/VwcIcon/package.json
CHANGED
package/VwcKeypad/package.json
CHANGED
package/VwcLayout/package.json
CHANGED
package/VwcList/package.json
CHANGED
package/VwcListItem/package.json
CHANGED
package/VwcMenu/package.json
CHANGED
package/VwcNote/package.json
CHANGED
package/VwcPopup/package.json
CHANGED
package/VwcRadio/package.json
CHANGED
package/VwcScrubBar/package.json
CHANGED
package/VwcSelect/package.json
CHANGED
package/VwcSlider/package.json
CHANGED
package/VwcSnackbar/package.json
CHANGED
package/VwcSurface/package.json
CHANGED
package/VwcSwitch/package.json
CHANGED
package/VwcTab/package.json
CHANGED
package/VwcTabBar/package.json
CHANGED
package/VwcTag/package.json
CHANGED
package/VwcText/package.json
CHANGED
package/VwcTextarea/package.json
CHANGED
package/VwcTooltip/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for accordion
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/accordion
|
|
4
4
|
* @param {AccordionExpandMode} expandmode - Controls the expand mode of the Accordion, either allowing
|
|
@@ -11,6 +11,7 @@ declare const VwcAccordion: {
|
|
|
11
11
|
id?: string | undefined;
|
|
12
12
|
style?: React.CSSProperties | undefined;
|
|
13
13
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
14
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
14
15
|
expandmode?: any;
|
|
15
16
|
}): JSX.Element;
|
|
16
17
|
displayName: string;
|
package/v3/VwcAccordion/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for checkbox
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/checkbox
|
|
4
4
|
* @param {string | null} ariaLabel **attribute** `aria-label`
|
|
5
5
|
* @param {CheckboxConnotation | undefined} connotation - The connotation the checklist should have. **attribute** `connotation`
|
|
6
|
+
* @param {boolean} checked
|
|
7
|
+
* @param {any} onClick
|
|
6
8
|
*/
|
|
7
9
|
declare const VwcCheckbox: {
|
|
8
10
|
(props: {
|
|
@@ -11,8 +13,11 @@ declare const VwcCheckbox: {
|
|
|
11
13
|
id?: string | undefined;
|
|
12
14
|
style?: React.CSSProperties | undefined;
|
|
13
15
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
16
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
14
17
|
ariaLabel?: string | null | undefined;
|
|
15
18
|
connotation?: any;
|
|
19
|
+
checked?: boolean | undefined;
|
|
20
|
+
onClick?: any;
|
|
16
21
|
}): JSX.Element;
|
|
17
22
|
displayName: string;
|
|
18
23
|
};
|
package/v3/VwcCheckbox/index.js
CHANGED
|
@@ -106,9 +106,9 @@ import { registerCheckbox } from '@vonage/vivid'
|
|
|
106
106
|
registerCheckbox('vvd3')
|
|
107
107
|
|
|
108
108
|
const VwcCheckbox = wrapper(`vvd3-checkbox`, {
|
|
109
|
-
events: [],
|
|
109
|
+
events: [{"name":"change","propName":"onChange"}],
|
|
110
110
|
attributes: [],
|
|
111
|
-
properties: ['ariaLabel', 'connotation']
|
|
111
|
+
properties: ['ariaLabel', 'connotation', 'checked', 'onClick']
|
|
112
112
|
})
|
|
113
113
|
|
|
114
114
|
VwcCheckbox.displayName = 'VwcCheckbox'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for combobox
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/combobox
|
|
4
4
|
* @param {PopupPlacement | undefined} placement - the placement of the combobox
|
|
@@ -14,6 +14,7 @@ declare const VwcCombobox: {
|
|
|
14
14
|
id?: string | undefined;
|
|
15
15
|
style?: React.CSSProperties | undefined;
|
|
16
16
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
17
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
17
18
|
placement?: any;
|
|
18
19
|
_popup?: any;
|
|
19
20
|
_anchor?: any;
|
package/v3/VwcCombobox/index.js
CHANGED
|
@@ -77,7 +77,7 @@ import { registerCombobox } from '@vonage/vivid'
|
|
|
77
77
|
registerCombobox('vvd3')
|
|
78
78
|
|
|
79
79
|
const VwcCombobox = wrapper(`vvd3-combobox`, {
|
|
80
|
-
events: [],
|
|
80
|
+
events: [{"name":"change","propName":"onChange"}],
|
|
81
81
|
attributes: [],
|
|
82
82
|
properties: ['placement', '_popup', '_anchor']
|
|
83
83
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for menu-item
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/menu-item
|
|
4
4
|
* @param {string | undefined} text - Indicates the menu item's text. **attribute** `text`
|
|
@@ -14,6 +14,7 @@ declare const VwcMenuItem: {
|
|
|
14
14
|
id?: string | undefined;
|
|
15
15
|
style?: React.CSSProperties | undefined;
|
|
16
16
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
17
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
17
18
|
text?: string | undefined;
|
|
18
19
|
textSecondary?: string | undefined;
|
|
19
20
|
checkTrailing?: boolean | undefined;
|
package/v3/VwcMenuItem/index.js
CHANGED
|
@@ -158,7 +158,7 @@ import { registerMenuItem } from '@vonage/vivid'
|
|
|
158
158
|
registerMenuItem('vvd3')
|
|
159
159
|
|
|
160
160
|
const VwcMenuItem = wrapper(`vvd3-menu-item`, {
|
|
161
|
-
events: [],
|
|
161
|
+
events: [{"name":"change","propName":"onChange"}],
|
|
162
162
|
attributes: [],
|
|
163
163
|
properties: ['text', 'textSecondary', 'checkTrailing', 'checkedAppearance', 'updateSubmenu']
|
|
164
164
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for number-field
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/number-field
|
|
4
4
|
* @param {string | null} incrementButtonAriaLabel **attribute** `increment-button-aria-label`
|
|
@@ -14,6 +14,8 @@ declare const VwcNumberField: {
|
|
|
14
14
|
id?: string | undefined;
|
|
15
15
|
style?: React.CSSProperties | undefined;
|
|
16
16
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
17
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
18
|
+
onInput?: ((event: SyntheticEvent) => void) | undefined;
|
|
17
19
|
incrementButtonAriaLabel?: string | null | undefined;
|
|
18
20
|
decrementButtonAriaLabel?: string | null | undefined;
|
|
19
21
|
appearance?: any;
|
|
@@ -202,7 +202,7 @@ import { registerNumberField } from '@vonage/vivid'
|
|
|
202
202
|
registerNumberField('vvd3')
|
|
203
203
|
|
|
204
204
|
const VwcNumberField = wrapper(`vvd3-number-field`, {
|
|
205
|
-
events: [],
|
|
205
|
+
events: [{"name":"input","propName":"onInput"},{"name":"change","propName":"onChange"}],
|
|
206
206
|
attributes: [],
|
|
207
207
|
properties: ['incrementButtonAriaLabel', 'decrementButtonAriaLabel', 'appearance', 'shape', 'autoComplete']
|
|
208
208
|
})
|
package/v3/VwcRadio/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for radio
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/radio
|
|
4
4
|
* @param {string | null} ariaLabel **attribute** `aria-label`
|
|
@@ -12,6 +12,7 @@ declare const VwcRadio: {
|
|
|
12
12
|
id?: string | undefined;
|
|
13
13
|
style?: React.CSSProperties | undefined;
|
|
14
14
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
15
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
15
16
|
ariaLabel?: string | null | undefined;
|
|
16
17
|
label?: string | undefined;
|
|
17
18
|
connotation?: any;
|
package/v3/VwcRadio/index.js
CHANGED
|
@@ -123,7 +123,7 @@ import { registerRadio } from '@vonage/vivid'
|
|
|
123
123
|
registerRadio('vvd3')
|
|
124
124
|
|
|
125
125
|
const VwcRadio = wrapper(`vvd3-radio`, {
|
|
126
|
-
events: [],
|
|
126
|
+
events: [{"name":"change","propName":"onChange"}],
|
|
127
127
|
attributes: [],
|
|
128
128
|
properties: ['ariaLabel', 'label', 'connotation']
|
|
129
129
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for radio-group
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/radio-group
|
|
4
4
|
* @param {string | undefined} label - Indicates the group's label. **attribute** `label`
|
|
@@ -10,6 +10,7 @@ declare const VwcRadioGroup: {
|
|
|
10
10
|
id?: string | undefined;
|
|
11
11
|
style?: React.CSSProperties | undefined;
|
|
12
12
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
13
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
13
14
|
label?: string | undefined;
|
|
14
15
|
}): JSX.Element;
|
|
15
16
|
displayName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for split button
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/split-button
|
|
4
4
|
* @param {HTMLButtonElement} _action - Action HTML button element
|
|
@@ -21,6 +21,7 @@ declare const VwcSplitButton: {
|
|
|
21
21
|
id?: string | undefined;
|
|
22
22
|
style?: React.CSSProperties | undefined;
|
|
23
23
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
24
|
+
onClick?: ((event: SyntheticEvent) => void) | undefined;
|
|
24
25
|
_action?: any;
|
|
25
26
|
_indicator?: any;
|
|
26
27
|
connotation?: any;
|
|
@@ -301,7 +301,7 @@ import { registerSplitButton } from '@vonage/vivid'
|
|
|
301
301
|
registerSplitButton('vvd3')
|
|
302
302
|
|
|
303
303
|
const VwcSplitButton = wrapper(`vvd3-split-button`, {
|
|
304
|
-
events: [],
|
|
304
|
+
events: [{"name":"click","propName":"onClick"}],
|
|
305
305
|
attributes: [],
|
|
306
306
|
properties: ['_action', '_indicator', 'connotation', 'shape', 'appearance', 'size', 'label', 'icon', 'splitIndicator', 'disabled', 'ariaLabel', 'ariaExpanded']
|
|
307
307
|
})
|
package/v3/VwcSwitch/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for switch
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/switch
|
|
4
4
|
* @param {string | undefined} label - Indicates the switch's label. **attribute** `label`
|
|
@@ -11,6 +11,7 @@ declare const VwcSwitch: {
|
|
|
11
11
|
id?: string | undefined;
|
|
12
12
|
style?: React.CSSProperties | undefined;
|
|
13
13
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
14
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
14
15
|
label?: string | undefined;
|
|
15
16
|
connotation?: any;
|
|
16
17
|
}): JSX.Element;
|
package/v3/VwcSwitch/index.js
CHANGED
|
@@ -155,7 +155,7 @@ import { registerSwitch } from '@vonage/vivid'
|
|
|
155
155
|
registerSwitch('vvd3')
|
|
156
156
|
|
|
157
157
|
const VwcSwitch = wrapper(`vvd3-switch`, {
|
|
158
|
-
events: [],
|
|
158
|
+
events: [{"name":"change","propName":"onChange"}],
|
|
159
159
|
attributes: [],
|
|
160
160
|
properties: ['label', 'connotation']
|
|
161
161
|
})
|
package/v3/VwcTab/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for tab
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/tab
|
|
4
4
|
* @param {TabConnotation | undefined} connotation - The connotation the tab should have. **attribute** `connotation`
|
|
@@ -14,6 +14,7 @@ declare const VwcTab: {
|
|
|
14
14
|
id?: string | undefined;
|
|
15
15
|
style?: React.CSSProperties | undefined;
|
|
16
16
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
17
|
+
onClick?: ((event: SyntheticEvent) => void) | undefined;
|
|
17
18
|
connotation?: any;
|
|
18
19
|
shape?: any;
|
|
19
20
|
label?: string | undefined;
|
package/v3/VwcTab/index.js
CHANGED
|
@@ -161,7 +161,7 @@ import { registerTab } from '@vonage/vivid'
|
|
|
161
161
|
registerTab('vvd3')
|
|
162
162
|
|
|
163
163
|
const VwcTab = wrapper(`vvd3-tab`, {
|
|
164
|
-
events: [],
|
|
164
|
+
events: [{"name":"click","propName":"onClick"}],
|
|
165
165
|
attributes: [],
|
|
166
166
|
properties: ['connotation', 'shape', 'label', 'tabIndex', 'ariaSelected']
|
|
167
167
|
})
|
package/v3/VwcTabs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for tabs
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/tabs
|
|
4
4
|
* @param {HTMLElement | undefined} tablist
|
|
@@ -11,6 +11,7 @@ declare const VwcTabs: {
|
|
|
11
11
|
id?: string | undefined;
|
|
12
12
|
style?: React.CSSProperties | undefined;
|
|
13
13
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
14
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
14
15
|
tablist?: any;
|
|
15
16
|
connotation?: any;
|
|
16
17
|
}): JSX.Element;
|
package/v3/VwcTabs/index.js
CHANGED
|
@@ -147,7 +147,7 @@ import { registerTabs } from '@vonage/vivid'
|
|
|
147
147
|
registerTabs('vvd3')
|
|
148
148
|
|
|
149
149
|
const VwcTabs = wrapper(`vvd3-tabs`, {
|
|
150
|
-
events: [],
|
|
150
|
+
events: [{"name":"change","propName":"onChange"}],
|
|
151
151
|
attributes: [],
|
|
152
152
|
properties: ['tablist', 'connotation']
|
|
153
153
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for text-area
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/text-area
|
|
4
4
|
* @param {TextAreaWrap | undefined} wrap - The wrap attribute **attribute** `wrap`
|
|
@@ -10,6 +10,7 @@ declare const VwcTextArea: {
|
|
|
10
10
|
id?: string | undefined;
|
|
11
11
|
style?: React.CSSProperties | undefined;
|
|
12
12
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
13
|
+
onInput?: ((event: SyntheticEvent) => void) | undefined;
|
|
13
14
|
wrap?: any;
|
|
14
15
|
}): JSX.Element;
|
|
15
16
|
displayName: string;
|
package/v3/VwcTextArea/index.js
CHANGED
|
@@ -122,7 +122,7 @@ import { registerTextArea } from '@vonage/vivid'
|
|
|
122
122
|
registerTextArea('vvd3')
|
|
123
123
|
|
|
124
124
|
const VwcTextArea = wrapper(`vvd3-text-area`, {
|
|
125
|
-
events: [],
|
|
125
|
+
events: [{"name":"input","propName":"onInput"}],
|
|
126
126
|
attributes: [],
|
|
127
127
|
properties: ['wrap']
|
|
128
128
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for text-field
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/text-field
|
|
4
4
|
* @param {TextFieldAppearance | undefined} appearance **attribute** `appearance`
|
|
@@ -16,13 +16,13 @@ declare const VwcTextField: {
|
|
|
16
16
|
id?: string | undefined;
|
|
17
17
|
style?: React.CSSProperties | undefined;
|
|
18
18
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
19
|
+
onInput?: ((event: SyntheticEvent) => void) | undefined;
|
|
19
20
|
appearance?: any;
|
|
20
21
|
shape?: any;
|
|
21
22
|
autoComplete?: string | undefined;
|
|
22
23
|
leadingActionItemsSlottedContent?: any;
|
|
23
24
|
placeholder?: string | undefined;
|
|
24
25
|
label?: string | undefined;
|
|
25
|
-
onInput?: any;
|
|
26
26
|
}): JSX.Element;
|
|
27
27
|
displayName: string;
|
|
28
28
|
};
|
package/v3/VwcTextField/index.js
CHANGED
|
@@ -180,7 +180,7 @@ import { registerTextField } from '@vonage/vivid'
|
|
|
180
180
|
registerTextField('vvd3')
|
|
181
181
|
|
|
182
182
|
const VwcTextField = wrapper(`vvd3-text-field`, {
|
|
183
|
-
events: [],
|
|
183
|
+
events: [{"name":"input","propName":"onInput"}],
|
|
184
184
|
attributes: [],
|
|
185
185
|
properties: ['appearance', 'shape', 'autoComplete', 'leadingActionItemsSlottedContent', 'placeholder', 'label', 'onInput']
|
|
186
186
|
})
|