@vonage/vivid-react 0.0.1 → 2.10.47
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/README.md +183 -0
- package/VwcAccordion/index.d.ts +14 -0
- package/VwcAccordion/index.js +59 -0
- package/VwcAccordion/package.json +11 -0
- package/VwcActionGroup/index.d.ts +18 -0
- package/VwcActionGroup/index.js +90 -0
- package/VwcActionGroup/package.json +11 -0
- package/VwcBadge/index.d.ts +29 -0
- package/VwcBadge/index.js +154 -0
- package/VwcBadge/package.json +11 -0
- package/VwcBanner/index.d.ts +26 -0
- package/VwcBanner/index.js +91 -0
- package/VwcBanner/package.json +11 -0
- package/VwcButton/index.d.ts +55 -0
- package/VwcButton/index.js +240 -0
- package/VwcButton/package.json +11 -0
- package/VwcButtonToggleGroup/index.d.ts +25 -0
- package/VwcButtonToggleGroup/index.js +91 -0
- package/VwcButtonToggleGroup/package.json +11 -0
- package/VwcCalendar/index.d.ts +20 -0
- package/VwcCalendar/index.js +70 -0
- package/VwcCalendar/package.json +11 -0
- package/VwcCalendarEvent/index.d.ts +25 -0
- package/VwcCalendarEvent/index.js +81 -0
- package/VwcCalendarEvent/package.json +11 -0
- package/VwcCard/index.d.ts +23 -0
- package/VwcCard/index.js +76 -0
- package/VwcCard/package.json +11 -0
- package/VwcCarousel/index.d.ts +14 -0
- package/VwcCarousel/index.js +45 -0
- package/VwcCarousel/package.json +11 -0
- package/VwcCarouselItem/index.d.ts +14 -0
- package/VwcCarouselItem/index.js +49 -0
- package/VwcCarouselItem/package.json +11 -0
- package/VwcCheckListItem/index.d.ts +41 -0
- package/VwcCheckListItem/index.js +153 -0
- package/VwcCheckListItem/package.json +11 -0
- package/VwcCheckbox/index.d.ts +34 -0
- package/VwcCheckbox/index.js +126 -0
- package/VwcCheckbox/package.json +11 -0
- package/VwcChip/index.d.ts +31 -0
- package/VwcChip/index.js +106 -0
- package/VwcChip/package.json +11 -0
- package/VwcChipSet/index.d.ts +16 -0
- package/VwcChipSet/index.js +60 -0
- package/VwcChipSet/package.json +11 -0
- package/VwcCircularProgress/index.d.ts +24 -0
- package/VwcCircularProgress/index.js +84 -0
- package/VwcCircularProgress/package.json +11 -0
- package/VwcDataGrid/index.d.ts +33 -0
- package/VwcDataGrid/index.js +122 -0
- package/VwcDataGrid/package.json +11 -0
- package/VwcDataGridColumn/index.d.ts +43 -0
- package/VwcDataGridColumn/index.js +144 -0
- package/VwcDataGridColumn/package.json +11 -0
- package/VwcDatepicker/index.d.ts +120 -0
- package/VwcDatepicker/index.js +422 -0
- package/VwcDatepicker/package.json +11 -0
- package/VwcDialog/index.d.ts +40 -0
- package/VwcDialog/index.js +135 -0
- package/VwcDialog/package.json +11 -0
- package/VwcDrawer/index.d.ts +20 -0
- package/VwcDrawer/index.js +80 -0
- package/VwcDrawer/package.json +11 -0
- package/VwcDropdown/index.d.ts +61 -0
- package/VwcDropdown/index.js +221 -0
- package/VwcDropdown/package.json +11 -0
- package/VwcElevation/index.d.ts +14 -0
- package/VwcElevation/index.js +45 -0
- package/VwcElevation/package.json +11 -0
- package/VwcEmptyState/index.d.ts +18 -0
- package/VwcEmptyState/index.js +59 -0
- package/VwcEmptyState/package.json +11 -0
- package/VwcExpansionPanel/index.d.ts +34 -0
- package/VwcExpansionPanel/index.js +199 -0
- package/VwcExpansionPanel/package.json +11 -0
- package/VwcFab/index.d.ts +32 -0
- package/VwcFab/index.js +124 -0
- package/VwcFab/package.json +11 -0
- package/VwcFilePicker/index.d.ts +24 -0
- package/VwcFilePicker/index.js +88 -0
- package/VwcFilePicker/package.json +11 -0
- package/VwcFormfield/index.d.ts +20 -0
- package/VwcFormfield/index.js +70 -0
- package/VwcFormfield/package.json +11 -0
- package/VwcHelperMessage/index.d.ts +14 -0
- package/VwcHelperMessage/index.js +49 -0
- package/VwcHelperMessage/package.json +11 -0
- package/VwcIcon/index.d.ts +22 -0
- package/VwcIcon/index.js +102 -0
- package/VwcIcon/package.json +11 -0
- package/VwcIconButton/index.d.ts +31 -0
- package/VwcIconButton/index.js +111 -0
- package/VwcIconButton/package.json +11 -0
- package/VwcIconButtonToggle/index.d.ts +37 -0
- package/VwcIconButtonToggle/index.js +136 -0
- package/VwcIconButtonToggle/package.json +11 -0
- package/VwcKeypad/index.d.ts +31 -0
- package/VwcKeypad/index.js +176 -0
- package/VwcKeypad/package.json +11 -0
- package/VwcLayout/index.d.ts +20 -0
- package/VwcLayout/index.js +105 -0
- package/VwcLayout/package.json +11 -0
- package/VwcLinearProgress/index.d.ts +26 -0
- package/VwcLinearProgress/index.js +98 -0
- package/VwcLinearProgress/package.json +11 -0
- package/VwcList/index.d.ts +35 -0
- package/VwcList/index.js +146 -0
- package/VwcList/package.json +11 -0
- package/VwcListExpansionPanel/index.d.ts +19 -0
- package/VwcListExpansionPanel/index.js +68 -0
- package/VwcListExpansionPanel/package.json +11 -0
- package/VwcListItem/index.d.ts +42 -0
- package/VwcListItem/index.js +171 -0
- package/VwcListItem/package.json +11 -0
- package/VwcMenu/index.d.ts +53 -0
- package/VwcMenu/index.js +210 -0
- package/VwcMenu/package.json +11 -0
- package/VwcNotchedOutline/index.d.ts +17 -0
- package/VwcNotchedOutline/index.js +58 -0
- package/VwcNotchedOutline/package.json +11 -0
- package/VwcNote/index.d.ts +18 -0
- package/VwcNote/index.js +59 -0
- package/VwcNote/package.json +11 -0
- package/VwcPagination/index.d.ts +16 -0
- package/VwcPagination/index.js +52 -0
- package/VwcPagination/package.json +11 -0
- package/VwcPopup/index.d.ts +30 -0
- package/VwcPopup/index.js +147 -0
- package/VwcPopup/package.json +11 -0
- package/VwcRadio/index.d.ts +52 -0
- package/VwcRadio/index.js +149 -0
- package/VwcRadio/package.json +11 -0
- package/VwcRadioListItem/index.d.ts +41 -0
- package/VwcRadioListItem/index.js +148 -0
- package/VwcRadioListItem/package.json +11 -0
- package/VwcSchemeSelect/index.d.ts +14 -0
- package/VwcSchemeSelect/index.js +46 -0
- package/VwcSchemeSelect/package.json +11 -0
- package/VwcSelect/index.d.ts +60 -0
- package/VwcSelect/index.js +253 -0
- package/VwcSelect/package.json +11 -0
- package/VwcSideDrawer/index.d.ts +22 -0
- package/VwcSideDrawer/index.js +73 -0
- package/VwcSideDrawer/package.json +11 -0
- package/VwcSlider/index.d.ts +34 -0
- package/VwcSlider/index.js +129 -0
- package/VwcSlider/package.json +11 -0
- package/VwcSnackbar/index.d.ts +42 -0
- package/VwcSnackbar/index.js +138 -0
- package/VwcSnackbar/package.json +11 -0
- package/VwcSurface/index.d.ts +42 -0
- package/VwcSurface/index.js +145 -0
- package/VwcSurface/package.json +11 -0
- package/VwcSwitch/index.d.ts +27 -0
- package/VwcSwitch/index.js +114 -0
- package/VwcSwitch/package.json +11 -0
- package/VwcTab/index.d.ts +40 -0
- package/VwcTab/index.js +151 -0
- package/VwcTab/package.json +11 -0
- package/VwcTabBar/index.d.ts +15 -0
- package/VwcTabBar/index.js +55 -0
- package/VwcTabBar/package.json +11 -0
- package/VwcTag/index.d.ts +34 -0
- package/VwcTag/index.js +115 -0
- package/VwcTag/package.json +11 -0
- package/VwcText/index.d.ts +18 -0
- package/VwcText/index.js +83 -0
- package/VwcText/package.json +11 -0
- package/VwcTextarea/index.d.ts +93 -0
- package/VwcTextarea/index.js +331 -0
- package/VwcTextarea/package.json +11 -0
- package/VwcTextfield/index.d.ts +89 -0
- package/VwcTextfield/index.js +329 -0
- package/VwcTextfield/package.json +11 -0
- package/VwcThemeSwitch/index.d.ts +14 -0
- package/VwcThemeSwitch/index.js +57 -0
- package/VwcThemeSwitch/package.json +11 -0
- package/VwcTooltip/index.d.ts +22 -0
- package/VwcTooltip/index.js +105 -0
- package/VwcTooltip/package.json +11 -0
- package/VwcTopAppBar/index.d.ts +22 -0
- package/VwcTopAppBar/index.js +77 -0
- package/VwcTopAppBar/package.json +11 -0
- package/VwcTopAppBarFixed/index.d.ts +22 -0
- package/VwcTopAppBarFixed/index.js +88 -0
- package/VwcTopAppBarFixed/package.json +11 -0
- package/index.js +281 -0
- package/package.json +135 -7
- package/testing/component.mock.js +3 -0
- package/types/index.d.ts +2 -0
package/VwcTab/index.js
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
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-tab",
|
|
8
|
+
"path": "./../node_modules/@vonage/vwc-tab-bar/vwc-tab.d.ts",
|
|
9
|
+
"properties": [
|
|
10
|
+
{
|
|
11
|
+
"name": "disabled",
|
|
12
|
+
"type": "boolean",
|
|
13
|
+
"bindable": false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "block",
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"bindable": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "trailingIcon",
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"bindable": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "styles",
|
|
27
|
+
"type": "CSSResult[]"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "shadowRootOptions",
|
|
31
|
+
"type": "ShadowRootInit",
|
|
32
|
+
"bindable": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "label",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"bindable": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "icon",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"bindable": false
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "hasImageIcon",
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"bindable": false
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "isFadingIndicator",
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"bindable": false
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "minWidth",
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"bindable": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "isMinWidthIndicator",
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"bindable": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "active",
|
|
66
|
+
"type": "boolean"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "indicatorIcon",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"bindable": false
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "stacked",
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"bindable": false
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "focusOnActivate",
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"bindable": false
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "ripple",
|
|
85
|
+
"type": "Promise<Ripple | null>"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "isRippleActive"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"events": [
|
|
92
|
+
{
|
|
93
|
+
"name": "MDCTab:interacted",
|
|
94
|
+
"propName": "onInteracted"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
*/
|
|
99
|
+
import PropTypes from 'prop-types'
|
|
100
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
101
|
+
import '@vonage/vwc-tab-bar'
|
|
102
|
+
import '@vonage/vwc-tab-bar/vwc-tab'
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @param {boolean} disabled
|
|
107
|
+
* @param {boolean} block
|
|
108
|
+
* @param {boolean} trailingIcon
|
|
109
|
+
* @param {ShadowRootInit} shadowRootOptions
|
|
110
|
+
* @param {string} label
|
|
111
|
+
* @param {string} icon
|
|
112
|
+
* @param {boolean} hasImageIcon
|
|
113
|
+
* @param {boolean} isFadingIndicator
|
|
114
|
+
* @param {boolean} minWidth
|
|
115
|
+
* @param {boolean} isMinWidthIndicator
|
|
116
|
+
* @param {string} indicatorIcon
|
|
117
|
+
* @param {boolean} stacked
|
|
118
|
+
* @param {boolean} focusOnActivate
|
|
119
|
+
*/
|
|
120
|
+
const VwcTab = wrapper('vwc-tab', {
|
|
121
|
+
events: [{"name":"MDCTab:interacted","propName":"onInteracted"}],
|
|
122
|
+
attributes: [],
|
|
123
|
+
properties: []
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
VwcTab.propTypes = {
|
|
127
|
+
onInteracted: PropTypes.func,
|
|
128
|
+
disabled: PropTypes.bool,
|
|
129
|
+
block: PropTypes.bool,
|
|
130
|
+
trailingIcon: PropTypes.bool,
|
|
131
|
+
shadowRootOptions: PropTypes.any /* ShadowRootInit */,
|
|
132
|
+
label: PropTypes.string,
|
|
133
|
+
icon: PropTypes.string,
|
|
134
|
+
hasImageIcon: PropTypes.bool,
|
|
135
|
+
isFadingIndicator: PropTypes.bool,
|
|
136
|
+
minWidth: PropTypes.bool,
|
|
137
|
+
isMinWidthIndicator: PropTypes.bool,
|
|
138
|
+
indicatorIcon: PropTypes.string,
|
|
139
|
+
stacked: PropTypes.bool,
|
|
140
|
+
focusOnActivate: PropTypes.bool
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
VwcTab.defaultProps = {
|
|
144
|
+
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
VwcTab.displayName = 'VwcTab'
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
export default VwcTab
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import '@vonage/vwc-tab-bar';
|
|
3
|
+
/**
|
|
4
|
+
* @param {number} activeIndex
|
|
5
|
+
*/
|
|
6
|
+
declare const VwcTabBar: (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
|
+
onActivated?: ((event: SyntheticEvent) => void) | undefined;
|
|
13
|
+
activeIndex?: number | undefined;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
export default VwcTabBar;
|
|
@@ -0,0 +1,55 @@
|
|
|
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-tab-bar",
|
|
8
|
+
"path": "./../node_modules/@vonage/vwc-tab-bar/vwc-tab-bar.d.ts",
|
|
9
|
+
"properties": [
|
|
10
|
+
{
|
|
11
|
+
"name": "styles",
|
|
12
|
+
"type": "CSSResult[]"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "activeIndex",
|
|
16
|
+
"type": "number",
|
|
17
|
+
"bindable": false
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"events": [
|
|
21
|
+
{
|
|
22
|
+
"name": "MDCTabBar:activated",
|
|
23
|
+
"propName": "onActivated"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
*/
|
|
28
|
+
import PropTypes from 'prop-types'
|
|
29
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
30
|
+
import '@vonage/vwc-tab-bar'
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @param {number} activeIndex
|
|
35
|
+
*/
|
|
36
|
+
const VwcTabBar = wrapper('vwc-tab-bar', {
|
|
37
|
+
events: [{"name":"MDCTabBar:activated","propName":"onActivated"}],
|
|
38
|
+
attributes: [],
|
|
39
|
+
properties: []
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
VwcTabBar.propTypes = {
|
|
43
|
+
onActivated: PropTypes.func,
|
|
44
|
+
activeIndex: PropTypes.number
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
VwcTabBar.defaultProps = {
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
VwcTabBar.displayName = 'VwcTabBar'
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
export default VwcTabBar
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import '@vonage/vwc-tags/vwc-tag';
|
|
3
|
+
/**
|
|
4
|
+
* @param {CSSResult} styles
|
|
5
|
+
* @param {Promise<Ripple | null>} ripple
|
|
6
|
+
* @param {HTMLElement} selectableElement
|
|
7
|
+
* @param {string | undefined} text
|
|
8
|
+
* @param {boolean} selected
|
|
9
|
+
* @param {TagConnotation | undefined} connotation
|
|
10
|
+
* @param {TagShape | undefined} shape
|
|
11
|
+
* @param {TagLayout | undefined} layout
|
|
12
|
+
* @param {boolean} selectable
|
|
13
|
+
* @param {boolean} removable
|
|
14
|
+
* @param {boolean} removeEventOnly
|
|
15
|
+
*/
|
|
16
|
+
declare const VwcTag: (props: {
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
slot?: string | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
style?: React.CSSProperties | undefined;
|
|
21
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
22
|
+
styles?: any;
|
|
23
|
+
ripple?: any;
|
|
24
|
+
selectableElement?: any;
|
|
25
|
+
text?: string | undefined;
|
|
26
|
+
selected?: boolean | undefined;
|
|
27
|
+
connotation?: any;
|
|
28
|
+
shape?: any;
|
|
29
|
+
layout?: any;
|
|
30
|
+
selectable?: boolean | undefined;
|
|
31
|
+
removable?: boolean | undefined;
|
|
32
|
+
removeEventOnly?: boolean | undefined;
|
|
33
|
+
}) => JSX.Element;
|
|
34
|
+
export default VwcTag;
|
package/VwcTag/index.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
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-tag",
|
|
8
|
+
"path": "./../node_modules/@vonage/vwc-tags/vwc-tag.d.ts",
|
|
9
|
+
"properties": [
|
|
10
|
+
{
|
|
11
|
+
"name": "styles",
|
|
12
|
+
"type": "CSSResult",
|
|
13
|
+
"bindable": false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "ripple",
|
|
17
|
+
"type": "Promise<Ripple | null>",
|
|
18
|
+
"bindable": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "selectableElement",
|
|
22
|
+
"type": "HTMLElement",
|
|
23
|
+
"bindable": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "text",
|
|
27
|
+
"type": "string | undefined",
|
|
28
|
+
"bindable": false
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "selected",
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"bindable": false
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "connotation",
|
|
37
|
+
"type": "TagConnotation | undefined",
|
|
38
|
+
"bindable": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "shape",
|
|
42
|
+
"type": "TagShape | undefined",
|
|
43
|
+
"bindable": false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "layout",
|
|
47
|
+
"type": "TagLayout | undefined",
|
|
48
|
+
"bindable": false
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "selectable",
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"bindable": false
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "removable",
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"bindable": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "removeEventOnly",
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"bindable": false
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"events": []
|
|
67
|
+
}
|
|
68
|
+
*/
|
|
69
|
+
import PropTypes from 'prop-types'
|
|
70
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
71
|
+
import '@vonage/vwc-tags/vwc-tag'
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @param {CSSResult} styles
|
|
76
|
+
* @param {Promise<Ripple | null>} ripple
|
|
77
|
+
* @param {HTMLElement} selectableElement
|
|
78
|
+
* @param {string | undefined} text
|
|
79
|
+
* @param {boolean} selected
|
|
80
|
+
* @param {TagConnotation | undefined} connotation
|
|
81
|
+
* @param {TagShape | undefined} shape
|
|
82
|
+
* @param {TagLayout | undefined} layout
|
|
83
|
+
* @param {boolean} selectable
|
|
84
|
+
* @param {boolean} removable
|
|
85
|
+
* @param {boolean} removeEventOnly
|
|
86
|
+
*/
|
|
87
|
+
const VwcTag = wrapper('vwc-tag', {
|
|
88
|
+
events: [],
|
|
89
|
+
attributes: [],
|
|
90
|
+
properties: []
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
VwcTag.propTypes = {
|
|
94
|
+
styles: PropTypes.any /* CSSResult */,
|
|
95
|
+
ripple: PropTypes.any /* Promise<Ripple | null> */,
|
|
96
|
+
selectableElement: PropTypes.any /* HTMLElement */,
|
|
97
|
+
text: PropTypes.string,
|
|
98
|
+
selected: PropTypes.bool,
|
|
99
|
+
connotation: PropTypes.any /* TagConnotation | undefined */,
|
|
100
|
+
shape: PropTypes.any /* TagShape | undefined */,
|
|
101
|
+
layout: PropTypes.any /* TagLayout | undefined */,
|
|
102
|
+
selectable: PropTypes.bool,
|
|
103
|
+
removable: PropTypes.bool,
|
|
104
|
+
removeEventOnly: PropTypes.bool
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
VwcTag.defaultProps = {
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
VwcTag.displayName = 'VwcTag'
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
export default VwcTag
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import '@vonage/vwc-text';
|
|
3
|
+
/**
|
|
4
|
+
* @param {VVDFontFace | undefined} fontFace attribute: <VwcText font-face />
|
|
5
|
+
* @param {TextConnotation | undefined} connotation attribute: <VwcText connotation />
|
|
6
|
+
* @param {boolean} tight attribute: <VwcText tight />
|
|
7
|
+
*/
|
|
8
|
+
declare const VwcText: (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
|
+
fontFace?: any;
|
|
15
|
+
connotation?: any;
|
|
16
|
+
tight?: boolean | undefined;
|
|
17
|
+
}) => JSX.Element;
|
|
18
|
+
export default VwcText;
|
package/VwcText/index.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
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-text",
|
|
8
|
+
"path": "./../node_modules/@vonage/vwc-text/src/vwc-text.ts",
|
|
9
|
+
"attributes": [
|
|
10
|
+
{
|
|
11
|
+
"name": "font-face",
|
|
12
|
+
"type": "VVDFontFace | undefined"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "connotation",
|
|
16
|
+
"type": "TextConnotation | undefined"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "tight",
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": "false"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"properties": [
|
|
25
|
+
{
|
|
26
|
+
"name": "styles",
|
|
27
|
+
"type": "CSSResult",
|
|
28
|
+
"default": "\"style\""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "fontFace",
|
|
32
|
+
"attribute": "font-face",
|
|
33
|
+
"type": "VVDFontFace | undefined",
|
|
34
|
+
"bindable": true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "connotation",
|
|
38
|
+
"attribute": "connotation",
|
|
39
|
+
"type": "TextConnotation | undefined",
|
|
40
|
+
"bindable": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "tight",
|
|
44
|
+
"attribute": "tight",
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"default": "false",
|
|
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-text'
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @param {VVDFontFace | undefined} fontFace attribute: <VwcText font-face />
|
|
60
|
+
* @param {TextConnotation | undefined} connotation attribute: <VwcText connotation />
|
|
61
|
+
* @param {boolean} tight attribute: <VwcText tight />
|
|
62
|
+
*/
|
|
63
|
+
const VwcText = wrapper('vwc-text', {
|
|
64
|
+
events: [],
|
|
65
|
+
attributes: [],
|
|
66
|
+
properties: ["fontFace"]
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
VwcText.propTypes = {
|
|
70
|
+
fontFace: PropTypes.any /* VVDFontFace | undefined *//* attribute: font-face */,
|
|
71
|
+
connotation: PropTypes.any /* TextConnotation | undefined *//* attribute: connotation */,
|
|
72
|
+
tight: PropTypes.bool/* default: false *//* attribute: tight */
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
VwcText.defaultProps = {
|
|
76
|
+
tight: false
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
VwcText.displayName = 'VwcText'
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
export default VwcText
|
|
@@ -0,0 +1,93 @@
|
|
|
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;
|