@vonage/vivid-react 2.10.62 → 2.10.64

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 (168) hide show
  1. package/README.md +54 -54
  2. package/VwcAccordion/package.json +2 -2
  3. package/VwcActionGroup/package.json +2 -2
  4. package/VwcBadge/package.json +2 -2
  5. package/VwcBanner/package.json +2 -2
  6. package/VwcButton/package.json +2 -2
  7. package/VwcButtonToggleGroup/package.json +2 -2
  8. package/VwcCalendar/package.json +2 -2
  9. package/VwcCalendarEvent/package.json +2 -2
  10. package/VwcCard/package.json +2 -2
  11. package/VwcCarousel/package.json +2 -2
  12. package/VwcCarouselItem/package.json +2 -2
  13. package/VwcCheckListItem/package.json +2 -2
  14. package/VwcCheckbox/package.json +2 -2
  15. package/VwcChip/package.json +2 -2
  16. package/VwcChipSet/package.json +2 -2
  17. package/VwcCircularProgress/package.json +2 -2
  18. package/VwcDataGrid/package.json +2 -2
  19. package/VwcDataGridColumn/package.json +2 -2
  20. package/VwcDatepicker/package.json +2 -2
  21. package/VwcDialog/package.json +2 -2
  22. package/VwcDrawer/package.json +2 -2
  23. package/VwcDropdown/package.json +2 -2
  24. package/VwcElevation/package.json +2 -2
  25. package/VwcEmptyState/package.json +2 -2
  26. package/VwcExpansionPanel/package.json +2 -2
  27. package/VwcFab/package.json +2 -2
  28. package/VwcFilePicker/package.json +2 -2
  29. package/VwcFormfield/package.json +2 -2
  30. package/VwcHelperMessage/package.json +2 -2
  31. package/VwcIcon/package.json +2 -2
  32. package/VwcIconButton/package.json +2 -2
  33. package/VwcIconButtonToggle/package.json +2 -2
  34. package/VwcKeypad/package.json +2 -2
  35. package/VwcLayout/package.json +2 -2
  36. package/VwcLinearProgress/package.json +2 -2
  37. package/VwcList/package.json +2 -2
  38. package/VwcListExpansionPanel/package.json +2 -2
  39. package/VwcListItem/package.json +2 -2
  40. package/VwcMenu/package.json +2 -2
  41. package/VwcNotchedOutline/package.json +2 -2
  42. package/VwcNote/package.json +2 -2
  43. package/VwcPagination/package.json +2 -2
  44. package/VwcPopup/package.json +2 -2
  45. package/VwcRadio/package.json +2 -2
  46. package/VwcRadioListItem/package.json +2 -2
  47. package/VwcSchemeSelect/package.json +2 -2
  48. package/VwcSelect/package.json +2 -2
  49. package/VwcSideDrawer/package.json +2 -2
  50. package/VwcSlider/package.json +2 -2
  51. package/VwcSnackbar/package.json +2 -2
  52. package/VwcSurface/package.json +2 -2
  53. package/VwcSwitch/package.json +2 -2
  54. package/VwcTab/package.json +2 -2
  55. package/VwcTabBar/package.json +2 -2
  56. package/VwcTag/package.json +2 -2
  57. package/VwcText/package.json +2 -2
  58. package/VwcTextarea/package.json +2 -2
  59. package/VwcTextfield/package.json +2 -2
  60. package/VwcThemeSwitch/package.json +2 -2
  61. package/VwcTooltip/package.json +2 -2
  62. package/VwcTopAppBar/package.json +2 -2
  63. package/VwcTopAppBarFixed/package.json +2 -2
  64. package/index.js +7 -6
  65. package/package.json +58 -58
  66. package/types/index.d.ts +38 -4
  67. package/v3/VwcAccordion/package.json +2 -2
  68. package/v3/VwcAccordionItem/package.json +2 -2
  69. package/v3/VwcActionGroup/index.d.ts +2 -2
  70. package/v3/VwcActionGroup/index.js +5 -3
  71. package/v3/VwcActionGroup/package.json +2 -2
  72. package/v3/VwcAlert/index.d.ts +3 -1
  73. package/v3/VwcAlert/index.js +15 -1
  74. package/v3/VwcAlert/package.json +2 -2
  75. package/v3/VwcAvatar/package.json +2 -2
  76. package/v3/VwcBadge/package.json +2 -2
  77. package/v3/VwcBanner/index.d.ts +2 -2
  78. package/v3/VwcBanner/index.js +17 -15
  79. package/v3/VwcBanner/package.json +2 -2
  80. package/v3/VwcBreadcrumb/package.json +2 -2
  81. package/v3/VwcBreadcrumbItem/package.json +2 -2
  82. package/v3/VwcButton/index.d.ts +2 -0
  83. package/v3/VwcButton/index.js +16 -1
  84. package/v3/VwcButton/package.json +2 -2
  85. package/v3/VwcCalendar/index.js +2 -13
  86. package/v3/VwcCalendar/package.json +2 -2
  87. package/v3/VwcCalendarEvent/package.json +2 -2
  88. package/v3/VwcCard/package.json +2 -2
  89. package/v3/VwcCheckbox/package.json +2 -2
  90. package/v3/VwcCombobox/package.json +2 -2
  91. package/v3/VwcDataGrid/index.js +13 -0
  92. package/v3/VwcDataGrid/package.json +2 -2
  93. package/v3/VwcDataGridCell/index.d.ts +2 -0
  94. package/v3/VwcDataGridCell/index.js +17 -1
  95. package/v3/VwcDataGridCell/package.json +2 -2
  96. package/v3/VwcDataGridRow/package.json +2 -2
  97. package/v3/VwcDatePicker/index.d.ts +27 -0
  98. package/v3/VwcDatePicker/index.js +201 -0
  99. package/v3/VwcDatePicker/package.json +11 -0
  100. package/v3/VwcDialog/index.d.ts +4 -1
  101. package/v3/VwcDialog/index.js +19 -2
  102. package/v3/VwcDialog/package.json +2 -2
  103. package/v3/VwcDivider/package.json +2 -2
  104. package/v3/VwcElevation/package.json +2 -2
  105. package/v3/VwcEmptyState/package.json +2 -2
  106. package/v3/VwcFab/package.json +2 -2
  107. package/v3/VwcFilePicker/index.d.ts +28 -0
  108. package/v3/VwcFilePicker/index.js +258 -0
  109. package/v3/VwcFilePicker/package.json +11 -0
  110. package/v3/VwcFocus/package.json +2 -2
  111. package/v3/VwcHeader/package.json +2 -2
  112. package/v3/VwcIcon/index.d.ts +2 -0
  113. package/v3/VwcIcon/index.js +14 -1
  114. package/v3/VwcIcon/package.json +2 -2
  115. package/v3/VwcLayout/index.d.ts +3 -0
  116. package/v3/VwcLayout/index.js +1 -4
  117. package/v3/VwcLayout/package.json +2 -2
  118. package/v3/VwcListbox/package.json +2 -2
  119. package/v3/VwcListboxOption/package.json +2 -2
  120. package/v3/VwcMenu/index.d.ts +10 -10
  121. package/v3/VwcMenu/index.js +150 -36
  122. package/v3/VwcMenu/package.json +2 -2
  123. package/v3/VwcMenuItem/index.js +6 -0
  124. package/v3/VwcMenuItem/package.json +2 -2
  125. package/v3/VwcNav/package.json +2 -2
  126. package/v3/VwcNavDisclosure/index.d.ts +4 -1
  127. package/v3/VwcNavDisclosure/index.js +32 -2
  128. package/v3/VwcNavDisclosure/package.json +2 -2
  129. package/v3/VwcNavItem/index.js +19 -9
  130. package/v3/VwcNavItem/package.json +2 -2
  131. package/v3/VwcNote/package.json +2 -2
  132. package/v3/VwcNumberField/package.json +2 -2
  133. package/v3/VwcPagination/index.d.ts +3 -1
  134. package/v3/VwcPagination/index.js +22 -2
  135. package/v3/VwcPagination/package.json +2 -2
  136. package/v3/VwcPopup/package.json +2 -2
  137. package/v3/VwcProgress/package.json +2 -2
  138. package/v3/VwcProgressRing/package.json +2 -2
  139. package/v3/VwcRadio/index.d.ts +2 -0
  140. package/v3/VwcRadio/index.js +56 -7
  141. package/v3/VwcRadio/package.json +2 -2
  142. package/v3/VwcRadioGroup/package.json +2 -2
  143. package/v3/VwcSelect/index.d.ts +7 -5
  144. package/v3/VwcSelect/index.js +47 -12
  145. package/v3/VwcSelect/package.json +2 -2
  146. package/v3/VwcSideDrawer/package.json +2 -2
  147. package/v3/VwcSlider/package.json +2 -2
  148. package/v3/VwcSplitButton/index.d.ts +39 -0
  149. package/v3/VwcSplitButton/index.js +311 -0
  150. package/v3/VwcSplitButton/package.json +11 -0
  151. package/v3/VwcSwitch/package.json +2 -2
  152. package/v3/VwcTab/index.d.ts +2 -0
  153. package/v3/VwcTab/index.js +18 -1
  154. package/v3/VwcTab/package.json +2 -2
  155. package/v3/VwcTabPanel/package.json +2 -2
  156. package/v3/VwcTabs/index.js +16 -2
  157. package/v3/VwcTabs/package.json +2 -2
  158. package/v3/VwcTag/package.json +2 -2
  159. package/v3/VwcTagGroup/index.js +6 -0
  160. package/v3/VwcTagGroup/package.json +2 -2
  161. package/v3/VwcTextAnchor/package.json +2 -2
  162. package/v3/VwcTextArea/package.json +2 -2
  163. package/v3/VwcTextField/package.json +2 -2
  164. package/v3/VwcToggletip/index.js +10 -0
  165. package/v3/VwcToggletip/package.json +2 -2
  166. package/v3/VwcTooltip/package.json +2 -2
  167. package/v3/VwcTreeItem/package.json +2 -2
  168. package/v3/VwcTreeView/package.json +2 -2
@@ -2,6 +2,7 @@ import React, { ReactNode } 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 | undefined} label - Indicates the radio's label. **attribute** `label`
5
+ * @param {RadioConnotation | undefined} connotation - The connotation the radioButton should have. **attribute** `connotation`
5
6
  */
6
7
  declare const VwcRadio: {
7
8
  (props: {
@@ -11,6 +12,7 @@ declare const VwcRadio: {
11
12
  style?: React.CSSProperties | undefined;
12
13
  ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
13
14
  label?: string | undefined;
15
+ connotation?: any;
14
16
  }): JSX.Element;
15
17
  displayName: string;
16
18
  };
@@ -8,21 +8,53 @@ Code in this file were generated using following JSON:
8
8
  "description": "Base class for radio",
9
9
  "name": "Radio",
10
10
  "cssProperties": [
11
+ {
12
+ "name": "--vvd-radio-cta-primary",
13
+ "default": "var(--vvd-color-cta-500)"
14
+ },
15
+ {
16
+ "name": "--vvd-radio-cta-primary-text",
17
+ "default": "var(--vvd-color-canvas)"
18
+ },
19
+ {
20
+ "name": "--vvd-radio-cta-primary-increment",
21
+ "default": "var(--vvd-color-cta-600)"
22
+ },
23
+ {
24
+ "name": "--vvd-radio-cta-intermediate",
25
+ "default": "var(--vvd-color-cta-500)"
26
+ },
27
+ {
28
+ "name": "--vvd-radio-cta-backdrop",
29
+ "default": "var(--vvd-color-cta-50)"
30
+ },
31
+ {
32
+ "name": "--vvd-radio-cta-firm",
33
+ "default": "var(--vvd-color-cta-600)"
34
+ },
11
35
  {
12
36
  "name": "--vvd-radio-accent-primary",
13
37
  "default": "var(--vvd-color-canvas-text)"
14
38
  },
15
39
  {
16
- "name": "--vvd-radio-accent-firm",
17
- "default": "var(--vvd-color-canvas-text)"
40
+ "name": "--vvd-radio-accent-primary-text",
41
+ "default": "var(--vvd-color-canvas)"
42
+ },
43
+ {
44
+ "name": "--vvd-radio-accent-primary-increment",
45
+ "default": "var(--vvd-color-neutral-800)"
46
+ },
47
+ {
48
+ "name": "--vvd-radio-accent-intermediate",
49
+ "default": "var(--vvd-color-neutral-500)"
18
50
  },
19
51
  {
20
- "name": "--vvd-radio-accent-faint",
21
- "default": "var(--vvd-color-neutral-50)"
52
+ "name": "--vvd-radio-accent-backdrop",
53
+ "default": "var(--vvd-color-canvas)"
22
54
  },
23
55
  {
24
- "name": "--vvd-radio-accent-soft",
25
- "default": "var(--vvd-color-neutral-100)"
56
+ "name": "--vvd-radio-accent-firm",
57
+ "default": "var(--vvd-color-canvas-text)"
26
58
  }
27
59
  ],
28
60
  "members": [
@@ -34,6 +66,15 @@ Code in this file were generated using following JSON:
34
66
  },
35
67
  "description": "Indicates the radio's label.",
36
68
  "privacy": "public"
69
+ },
70
+ {
71
+ "kind": "field",
72
+ "name": "connotation",
73
+ "type": {
74
+ "text": "RadioConnotation | undefined"
75
+ },
76
+ "description": "The connotation the radioButton should have.",
77
+ "privacy": "public"
37
78
  }
38
79
  ],
39
80
  "attributes": [
@@ -44,6 +85,14 @@ Code in this file were generated using following JSON:
44
85
  },
45
86
  "description": "Indicates the radio's label.",
46
87
  "fieldName": "label"
88
+ },
89
+ {
90
+ "name": "connotation",
91
+ "type": {
92
+ "text": "RadioConnotation | undefined"
93
+ },
94
+ "description": "The connotation the radioButton should have.",
95
+ "fieldName": "connotation"
47
96
  }
48
97
  ],
49
98
  "superclass": {
@@ -60,7 +109,7 @@ registerRadio('vvd3')
60
109
  const VwcRadio = wrapper(`vvd3-radio`, {
61
110
  events: [],
62
111
  attributes: [],
63
- properties: ['label']
112
+ properties: ['label', 'connotation']
64
113
  })
65
114
 
66
115
  VwcRadio.displayName = 'VwcRadio'
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vonage/vivid-react-vvd3-radio",
3
- "version": "3.20.0",
3
+ "version": "3.32.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@vonage/vivid": "3.20.0"
9
+ "@vonage/vivid": "3.32.0"
10
10
  }
11
11
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vonage/vivid-react-vvd3-radio-group",
3
- "version": "3.20.0",
3
+ "version": "3.32.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@vonage/vivid": "3.20.0"
9
+ "@vonage/vivid": "3.32.0"
10
10
  }
11
11
  }
@@ -1,11 +1,12 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  /** Base class for select
3
3
  * For more info on this Vivid element please visit https://vivid.deno.dev/components/select
4
- * @param {SelectAppearance | undefined} appearance **attribute** `appearance`
5
- * @param {SelectShape | undefined} shape **attribute** `shape`
6
4
  * @param {Popup} _popup
7
5
  * @param {HTMLElement} _anchor
8
- * @param {boolean} fixedDropdown **attribute** `fixed-dropdown`
6
+ * @param {SelectAppearance | undefined} appearance - The appearance attribute. **attribute** `appearance`
7
+ * @param {SelectShape | undefined} shape - The shape attribute. **attribute** `shape`
8
+ * @param {boolean} fixedDropdown - The fixed-dropdown attribute. **attribute** `fixed-dropdown`
9
+ * @param {string | undefined} placeholder - The placeholder attribute. **attribute** `placeholder`
9
10
  */
10
11
  declare const VwcSelect: {
11
12
  (props: {
@@ -14,11 +15,12 @@ declare const VwcSelect: {
14
15
  id?: string | undefined;
15
16
  style?: React.CSSProperties | undefined;
16
17
  ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
17
- appearance?: any;
18
- shape?: any;
19
18
  _popup?: any;
20
19
  _anchor?: any;
20
+ appearance?: any;
21
+ shape?: any;
21
22
  fixedDropdown?: boolean | undefined;
23
+ placeholder?: string | undefined;
22
24
  }): JSX.Element;
23
25
  displayName: string;
24
26
  };
@@ -74,31 +74,35 @@ Code in this file were generated using following JSON:
74
74
  "members": [
75
75
  {
76
76
  "kind": "field",
77
- "name": "appearance",
77
+ "name": "_popup",
78
78
  "type": {
79
- "text": "SelectAppearance | undefined"
79
+ "text": "Popup"
80
80
  }
81
81
  },
82
82
  {
83
83
  "kind": "field",
84
- "name": "shape",
84
+ "name": "_anchor",
85
85
  "type": {
86
- "text": "SelectShape | undefined"
86
+ "text": "HTMLElement"
87
87
  }
88
88
  },
89
89
  {
90
90
  "kind": "field",
91
- "name": "_popup",
91
+ "name": "appearance",
92
92
  "type": {
93
- "text": "Popup"
94
- }
93
+ "text": "SelectAppearance | undefined"
94
+ },
95
+ "description": "The appearance attribute.",
96
+ "privacy": "public"
95
97
  },
96
98
  {
97
99
  "kind": "field",
98
- "name": "_anchor",
100
+ "name": "shape",
99
101
  "type": {
100
- "text": "HTMLElement"
101
- }
102
+ "text": "SelectShape | undefined"
103
+ },
104
+ "description": "The shape attribute.",
105
+ "privacy": "public"
102
106
  },
103
107
  {
104
108
  "kind": "field",
@@ -106,7 +110,18 @@ Code in this file were generated using following JSON:
106
110
  "type": {
107
111
  "text": "boolean"
108
112
  },
109
- "default": "false"
113
+ "default": "false",
114
+ "description": "The fixed-dropdown attribute.",
115
+ "privacy": "public"
116
+ },
117
+ {
118
+ "kind": "field",
119
+ "name": "placeholder",
120
+ "type": {
121
+ "text": "string | undefined"
122
+ },
123
+ "description": "The placeholder attribute.",
124
+ "privacy": "public"
110
125
  },
111
126
  {
112
127
  "kind": "field",
@@ -115,6 +130,15 @@ Code in this file were generated using following JSON:
115
130
  "text": "string"
116
131
  },
117
132
  "readonly": true
133
+ },
134
+ {
135
+ "kind": "method",
136
+ "name": "setDefaultSelectedOption",
137
+ "return": {
138
+ "type": {
139
+ "text": "void"
140
+ }
141
+ }
118
142
  }
119
143
  ],
120
144
  "attributes": [
@@ -123,6 +147,7 @@ Code in this file were generated using following JSON:
123
147
  "type": {
124
148
  "text": "SelectAppearance | undefined"
125
149
  },
150
+ "description": "The appearance attribute.",
126
151
  "fieldName": "appearance"
127
152
  },
128
153
  {
@@ -130,6 +155,7 @@ Code in this file were generated using following JSON:
130
155
  "type": {
131
156
  "text": "SelectShape | undefined"
132
157
  },
158
+ "description": "The shape attribute.",
133
159
  "fieldName": "shape"
134
160
  },
135
161
  {
@@ -138,7 +164,16 @@ Code in this file were generated using following JSON:
138
164
  "text": "boolean"
139
165
  },
140
166
  "default": "false",
167
+ "description": "The fixed-dropdown attribute.",
141
168
  "fieldName": "fixedDropdown"
169
+ },
170
+ {
171
+ "name": "placeholder",
172
+ "type": {
173
+ "text": "string | undefined"
174
+ },
175
+ "description": "The placeholder attribute.",
176
+ "fieldName": "placeholder"
142
177
  }
143
178
  ],
144
179
  "superclass": {
@@ -155,7 +190,7 @@ registerSelect('vvd3')
155
190
  const VwcSelect = wrapper(`vvd3-select`, {
156
191
  events: [],
157
192
  attributes: [],
158
- properties: ['appearance', 'shape', '_popup', '_anchor', 'fixedDropdown']
193
+ properties: ['_popup', '_anchor', 'appearance', 'shape', 'fixedDropdown', 'placeholder']
159
194
  })
160
195
 
161
196
  VwcSelect.displayName = 'VwcSelect'
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vonage/vivid-react-vvd3-select",
3
- "version": "3.20.0",
3
+ "version": "3.32.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@vonage/vivid": "3.20.0"
9
+ "@vonage/vivid": "3.32.0"
10
10
  }
11
11
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vonage/vivid-react-vvd3-side-drawer",
3
- "version": "3.20.0",
3
+ "version": "3.32.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@vonage/vivid": "3.20.0"
9
+ "@vonage/vivid": "3.32.0"
10
10
  }
11
11
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vonage/vivid-react-vvd3-slider",
3
- "version": "3.20.0",
3
+ "version": "3.32.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@vonage/vivid": "3.20.0"
9
+ "@vonage/vivid": "3.32.0"
10
10
  }
11
11
  }
@@ -0,0 +1,39 @@
1
+ import React, { ReactNode } from 'react';
2
+ /** Base class for split button
3
+ * For more info on this Vivid element please visit https://vivid.deno.dev/components/split-button
4
+ * @param {HTMLButtonElement} _action - Action HTML button element
5
+ * @param {HTMLButtonElement} _indicator - Indicator HTML button element
6
+ * @param {SplitButtonConnotation | undefined} connotation - The connotation the split button should have. **attribute** `connotation`
7
+ * @param {SplitButtonShape | undefined} shape - The shape the split button should have. **attribute** `shape`
8
+ * @param {SplitButtonAppearance | undefined} appearance - The appearance the split button should have. **attribute** `appearance`
9
+ * @param {SplitButtonSize | undefined} size - The size the split button should have. **attribute** `size`
10
+ * @param {string | undefined} label - Indicates the split button's label. **attribute** `label`
11
+ * @param {string | undefined} icon - Indicates the split button's icon. **attribute** `icon`
12
+ * @param {string} splitIndicator - Indicates the split button's icon indicator. **attribute** `split-indicator`
13
+ * @param {boolean} disabled - Indicates if the button is disabled. **attribute** `disabled`
14
+ * @param {string | null} ariaLabel **attribute** `aria-label`
15
+ * @param {string | null} ariaExpanded **attribute** `aria-expanded`
16
+ */
17
+ declare const VwcSplitButton: {
18
+ (props: {
19
+ children?: ReactNode;
20
+ slot?: string | undefined;
21
+ id?: string | undefined;
22
+ style?: React.CSSProperties | undefined;
23
+ ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
24
+ _action?: any;
25
+ _indicator?: any;
26
+ connotation?: any;
27
+ shape?: any;
28
+ appearance?: any;
29
+ size?: any;
30
+ label?: string | undefined;
31
+ icon?: string | undefined;
32
+ splitIndicator?: string | undefined;
33
+ disabled?: boolean | undefined;
34
+ ariaLabel?: string | null | undefined;
35
+ ariaExpanded?: string | null | undefined;
36
+ }): JSX.Element;
37
+ displayName: string;
38
+ };
39
+ export default VwcSplitButton;
@@ -0,0 +1,311 @@
1
+ /*
2
+ * DO NOT EDIT THIS FILE. IT IS GENERATED
3
+ */
4
+ /*
5
+ Code in this file were generated using following JSON:
6
+ {
7
+ "kind": "class",
8
+ "description": "Base class for split button",
9
+ "name": "SplitButton",
10
+ "cssProperties": [
11
+ {
12
+ "name": "--vvd-split-button-cta-primary",
13
+ "default": "var(--vvd-color-cta-500)"
14
+ },
15
+ {
16
+ "name": "--vvd-split-button-cta-primary-text",
17
+ "default": "var(--vvd-color-canvas)"
18
+ },
19
+ {
20
+ "name": "--vvd-split-button-cta-primary-increment",
21
+ "default": "var(--vvd-color-cta-600)"
22
+ },
23
+ {
24
+ "name": "--vvd-split-button-cta-contrast",
25
+ "default": "var(--vvd-color-cta-800)"
26
+ },
27
+ {
28
+ "name": "--vvd-split-button-cta-fierce",
29
+ "default": "var(--vvd-color-cta-700)"
30
+ },
31
+ {
32
+ "name": "--vvd-split-button-cta-firm",
33
+ "default": "var(--vvd-color-cta-600)"
34
+ },
35
+ {
36
+ "name": "--vvd-split-button-cta-soft",
37
+ "default": "var(--vvd-color-cta-100)"
38
+ },
39
+ {
40
+ "name": "--vvd-split-button-cta-faint",
41
+ "default": "var(--vvd-color-cta-50)"
42
+ },
43
+ {
44
+ "name": "--vvd-split-button-accent-primary",
45
+ "default": "var(--vvd-color-canvas-text)"
46
+ },
47
+ {
48
+ "name": "--vvd-split-button-accent-primary-text",
49
+ "default": "var(--vvd-color-canvas)"
50
+ },
51
+ {
52
+ "name": "--vvd-split-button-accent-primary-increment",
53
+ "default": "var(--vvd-color-neutral-800)"
54
+ },
55
+ {
56
+ "name": "--vvd-split-button-accent-contrast",
57
+ "default": "var(--vvd-color-neutral-800)"
58
+ },
59
+ {
60
+ "name": "--vvd-split-button-accent-fierce",
61
+ "default": "var(--vvd-color-neutral-700)"
62
+ },
63
+ {
64
+ "name": "--vvd-split-button-accent-firm",
65
+ "default": "var(--vvd-color-canvas-text)"
66
+ },
67
+ {
68
+ "name": "--vvd-split-button-accent-soft",
69
+ "default": "var(--vvd-color-neutral-100)"
70
+ },
71
+ {
72
+ "name": "--vvd-split-button-accent-faint",
73
+ "default": "var(--vvd-color-neutral-50)"
74
+ }
75
+ ],
76
+ "slots": [
77
+ {
78
+ "description": "Default slot.",
79
+ "name": ""
80
+ }
81
+ ],
82
+ "members": [
83
+ {
84
+ "kind": "field",
85
+ "name": "_action",
86
+ "type": {
87
+ "text": "HTMLButtonElement"
88
+ },
89
+ "description": "Action HTML button element",
90
+ "privacy": "public"
91
+ },
92
+ {
93
+ "kind": "field",
94
+ "name": "action",
95
+ "type": {
96
+ "text": "HTMLButtonElement"
97
+ },
98
+ "readonly": true
99
+ },
100
+ {
101
+ "kind": "field",
102
+ "name": "_indicator",
103
+ "type": {
104
+ "text": "HTMLButtonElement"
105
+ },
106
+ "description": "Indicator HTML button element",
107
+ "privacy": "public"
108
+ },
109
+ {
110
+ "kind": "field",
111
+ "name": "indicator",
112
+ "type": {
113
+ "text": "HTMLButtonElement"
114
+ },
115
+ "readonly": true
116
+ },
117
+ {
118
+ "kind": "field",
119
+ "name": "connotation",
120
+ "type": {
121
+ "text": "SplitButtonConnotation | undefined"
122
+ },
123
+ "description": "The connotation the split button should have.",
124
+ "privacy": "public"
125
+ },
126
+ {
127
+ "kind": "field",
128
+ "name": "shape",
129
+ "type": {
130
+ "text": "SplitButtonShape | undefined"
131
+ },
132
+ "description": "The shape the split button should have.",
133
+ "privacy": "public"
134
+ },
135
+ {
136
+ "kind": "field",
137
+ "name": "appearance",
138
+ "type": {
139
+ "text": "SplitButtonAppearance | undefined"
140
+ },
141
+ "description": "The appearance the split button should have.",
142
+ "privacy": "public"
143
+ },
144
+ {
145
+ "kind": "field",
146
+ "name": "size",
147
+ "type": {
148
+ "text": "SplitButtonSize | undefined"
149
+ },
150
+ "description": "The size the split button should have.",
151
+ "privacy": "public"
152
+ },
153
+ {
154
+ "kind": "field",
155
+ "name": "label",
156
+ "type": {
157
+ "text": "string | undefined"
158
+ },
159
+ "description": "Indicates the split button's label.",
160
+ "privacy": "public"
161
+ },
162
+ {
163
+ "kind": "field",
164
+ "name": "icon",
165
+ "type": {
166
+ "text": "string | undefined"
167
+ },
168
+ "description": "Indicates the split button's icon.",
169
+ "privacy": "public"
170
+ },
171
+ {
172
+ "kind": "field",
173
+ "name": "splitIndicator",
174
+ "type": {
175
+ "text": "string"
176
+ },
177
+ "default": "'chevron-down-line'",
178
+ "description": "Indicates the split button's icon indicator.",
179
+ "privacy": "public"
180
+ },
181
+ {
182
+ "kind": "field",
183
+ "name": "disabled",
184
+ "type": {
185
+ "text": "boolean"
186
+ },
187
+ "default": "false",
188
+ "description": "Indicates if the button is disabled.",
189
+ "privacy": "public"
190
+ },
191
+ {
192
+ "kind": "field",
193
+ "name": "ariaLabel",
194
+ "type": {
195
+ "text": "string | null"
196
+ },
197
+ "default": "null"
198
+ },
199
+ {
200
+ "kind": "field",
201
+ "name": "ariaExpanded",
202
+ "type": {
203
+ "text": "string | null"
204
+ },
205
+ "default": "null"
206
+ }
207
+ ],
208
+ "attributes": [
209
+ {
210
+ "name": "connotation",
211
+ "type": {
212
+ "text": "SplitButtonConnotation | undefined"
213
+ },
214
+ "description": "The connotation the split button should have.",
215
+ "fieldName": "connotation"
216
+ },
217
+ {
218
+ "name": "shape",
219
+ "type": {
220
+ "text": "SplitButtonShape | undefined"
221
+ },
222
+ "description": "The shape the split button should have.",
223
+ "fieldName": "shape"
224
+ },
225
+ {
226
+ "name": "appearance",
227
+ "type": {
228
+ "text": "SplitButtonAppearance | undefined"
229
+ },
230
+ "description": "The appearance the split button should have.",
231
+ "fieldName": "appearance"
232
+ },
233
+ {
234
+ "name": "size",
235
+ "type": {
236
+ "text": "SplitButtonSize | undefined"
237
+ },
238
+ "description": "The size the split button should have.",
239
+ "fieldName": "size"
240
+ },
241
+ {
242
+ "name": "label",
243
+ "type": {
244
+ "text": "string | undefined"
245
+ },
246
+ "description": "Indicates the split button's label.",
247
+ "fieldName": "label"
248
+ },
249
+ {
250
+ "name": "icon",
251
+ "type": {
252
+ "text": "string | undefined"
253
+ },
254
+ "description": "Indicates the split button's icon.",
255
+ "fieldName": "icon"
256
+ },
257
+ {
258
+ "name": "split-indicator",
259
+ "type": {
260
+ "text": "string"
261
+ },
262
+ "default": "'chevron-down-line'",
263
+ "description": "Indicates the split button's icon indicator.",
264
+ "fieldName": "splitIndicator"
265
+ },
266
+ {
267
+ "name": "disabled",
268
+ "type": {
269
+ "text": "boolean"
270
+ },
271
+ "default": "false",
272
+ "description": "Indicates if the button is disabled.",
273
+ "fieldName": "disabled"
274
+ },
275
+ {
276
+ "name": "aria-label",
277
+ "type": {
278
+ "text": "string | null"
279
+ },
280
+ "default": "null",
281
+ "fieldName": "ariaLabel"
282
+ },
283
+ {
284
+ "name": "aria-expanded",
285
+ "type": {
286
+ "text": "string | null"
287
+ },
288
+ "default": "null",
289
+ "fieldName": "ariaExpanded"
290
+ }
291
+ ],
292
+ "superclass": {
293
+ "name": "FoundationElement",
294
+ "package": "@microsoft/fast-foundation"
295
+ }
296
+ }
297
+ */
298
+ import wrapper from '@vonage/vivid-react-wrapper'
299
+ import { registerSplitButton } from '@vonage/vivid'
300
+
301
+ registerSplitButton('vvd3')
302
+
303
+ const VwcSplitButton = wrapper(`vvd3-split-button`, {
304
+ events: [],
305
+ attributes: [],
306
+ properties: ['_action', '_indicator', 'connotation', 'shape', 'appearance', 'size', 'label', 'icon', 'splitIndicator', 'disabled', 'ariaLabel', 'ariaExpanded']
307
+ })
308
+
309
+ VwcSplitButton.displayName = 'VwcSplitButton'
310
+
311
+ export default VwcSplitButton