@vonage/vivid-react 2.10.71 → 2.10.73

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 (187) 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/VwcScrubBar/package.json +2 -2
  49. package/VwcSelect/package.json +2 -2
  50. package/VwcSideDrawer/package.json +2 -2
  51. package/VwcSlider/package.json +2 -2
  52. package/VwcSnackbar/package.json +2 -2
  53. package/VwcSurface/package.json +2 -2
  54. package/VwcSwitch/package.json +2 -2
  55. package/VwcTab/package.json +2 -2
  56. package/VwcTabBar/package.json +2 -2
  57. package/VwcTag/package.json +2 -2
  58. package/VwcText/package.json +2 -2
  59. package/VwcTextarea/package.json +2 -2
  60. package/VwcTextfield/package.json +2 -2
  61. package/VwcThemeSwitch/package.json +2 -2
  62. package/VwcTooltip/package.json +2 -2
  63. package/VwcTopAppBar/package.json +2 -2
  64. package/VwcTopAppBarFixed/package.json +2 -2
  65. package/index.js +9 -9
  66. package/package.json +73 -67
  67. package/types/index.d.ts +48 -8
  68. package/v3/VwcAccordion/package.json +2 -2
  69. package/v3/VwcAccordionItem/package.json +2 -2
  70. package/v3/VwcActionGroup/package.json +2 -2
  71. package/v3/VwcAlert/package.json +2 -2
  72. package/v3/VwcAvatar/index.js +8 -0
  73. package/v3/VwcAvatar/package.json +2 -2
  74. package/v3/VwcBadge/package.json +2 -2
  75. package/v3/VwcBanner/package.json +2 -2
  76. package/v3/VwcBreadcrumb/package.json +2 -2
  77. package/v3/VwcBreadcrumbItem/package.json +2 -2
  78. package/v3/VwcButton/package.json +2 -2
  79. package/v3/VwcCalendar/package.json +2 -2
  80. package/v3/VwcCalendarEvent/package.json +2 -2
  81. package/v3/VwcCard/package.json +2 -2
  82. package/v3/VwcCheckbox/index.d.ts +2 -0
  83. package/v3/VwcCheckbox/index.js +17 -1
  84. package/v3/VwcCheckbox/package.json +2 -2
  85. package/v3/VwcCombobox/package.json +2 -2
  86. package/v3/VwcDataGrid/index.d.ts +1 -1
  87. package/v3/VwcDataGrid/index.js +4 -1
  88. package/v3/VwcDataGrid/package.json +2 -2
  89. package/v3/VwcDataGridCell/index.d.ts +4 -3
  90. package/v3/VwcDataGridCell/index.js +15 -3
  91. package/v3/VwcDataGridCell/package.json +2 -2
  92. package/v3/VwcDataGridRow/index.d.ts +1 -1
  93. package/v3/VwcDataGridRow/index.js +4 -1
  94. package/v3/VwcDataGridRow/package.json +2 -2
  95. package/v3/VwcDatePicker/index.d.ts +14 -10
  96. package/v3/VwcDatePicker/index.js +217 -92
  97. package/v3/VwcDatePicker/package.json +2 -2
  98. package/v3/VwcDatePickerBase/index.d.ts +29 -0
  99. package/v3/VwcDatePickerBase/index.js +248 -0
  100. package/v3/VwcDatePickerBase/package.json +11 -0
  101. package/v3/VwcDateRangePicker/index.d.ts +56 -0
  102. package/v3/VwcDateRangePicker/index.js +444 -0
  103. package/v3/VwcDateRangePicker/package.json +11 -0
  104. package/v3/VwcDialog/index.d.ts +2 -0
  105. package/v3/VwcDialog/index.js +18 -2
  106. package/v3/VwcDialog/package.json +2 -2
  107. package/v3/VwcDivider/package.json +2 -2
  108. package/v3/VwcElevation/package.json +2 -2
  109. package/v3/VwcEmptyState/package.json +2 -2
  110. package/v3/VwcFab/index.js +6 -0
  111. package/v3/VwcFab/package.json +2 -2
  112. package/v3/VwcFilePicker/index.d.ts +4 -2
  113. package/v3/VwcFilePicker/index.js +62 -20
  114. package/v3/VwcFilePicker/package.json +2 -2
  115. package/v3/VwcFocus/package.json +2 -2
  116. package/v3/VwcFormAssociatedFilePicker/index.d.ts +17 -0
  117. package/v3/VwcFormAssociatedFilePicker/index.js +44 -0
  118. package/v3/VwcFormAssociatedFilePicker/package.json +11 -0
  119. package/v3/VwcHeader/package.json +2 -2
  120. package/v3/VwcIcon/package.json +2 -2
  121. package/v3/VwcLayout/package.json +2 -2
  122. package/v3/VwcListbox/index.d.ts +4 -0
  123. package/v3/VwcListbox/index.js +71 -1
  124. package/v3/VwcListbox/package.json +2 -2
  125. package/v3/VwcMenu/index.d.ts +2 -0
  126. package/v3/VwcMenu/index.js +5 -1
  127. package/v3/VwcMenu/package.json +2 -2
  128. package/v3/VwcMenuItem/index.d.ts +6 -0
  129. package/v3/VwcMenuItem/index.js +66 -1
  130. package/v3/VwcMenuItem/package.json +2 -2
  131. package/v3/VwcNav/package.json +2 -2
  132. package/v3/VwcNavDisclosure/package.json +2 -2
  133. package/v3/VwcNavItem/package.json +2 -2
  134. package/v3/VwcNote/package.json +2 -2
  135. package/v3/VwcNumberField/index.d.ts +4 -0
  136. package/v3/VwcNumberField/index.js +64 -1
  137. package/v3/VwcNumberField/package.json +2 -2
  138. package/v3/{VwcListboxOption → VwcOption}/index.d.ts +3 -3
  139. package/v3/{VwcListboxOption → VwcOption}/index.js +5 -5
  140. package/v3/{VwcListboxOption → VwcOption}/package.json +2 -2
  141. package/v3/VwcPagination/package.json +2 -2
  142. package/v3/VwcPopup/package.json +2 -2
  143. package/v3/VwcProgress/index.d.ts +5 -3
  144. package/v3/VwcProgress/index.js +29 -4
  145. package/v3/VwcProgress/package.json +2 -2
  146. package/v3/VwcProgressRing/index.d.ts +3 -1
  147. package/v3/VwcProgressRing/index.js +19 -3
  148. package/v3/VwcProgressRing/package.json +2 -2
  149. package/v3/VwcRadio/index.d.ts +2 -0
  150. package/v3/VwcRadio/index.js +17 -1
  151. package/v3/VwcRadio/package.json +2 -2
  152. package/v3/VwcRadioGroup/package.json +2 -2
  153. package/v3/VwcSelect/index.d.ts +2 -1
  154. package/v3/VwcSelect/index.js +1 -1
  155. package/v3/VwcSelect/package.json +2 -2
  156. package/v3/VwcSelectableBox/index.d.ts +30 -0
  157. package/v3/VwcSelectableBox/index.js +197 -0
  158. package/v3/VwcSelectableBox/package.json +11 -0
  159. package/v3/VwcSideDrawer/index.d.ts +3 -1
  160. package/v3/VwcSideDrawer/index.js +11 -1
  161. package/v3/VwcSideDrawer/package.json +2 -2
  162. package/v3/VwcSlider/index.d.ts +6 -0
  163. package/v3/VwcSlider/index.js +60 -1
  164. package/v3/VwcSlider/package.json +2 -2
  165. package/v3/VwcSplitButton/package.json +2 -2
  166. package/v3/VwcSwitch/index.d.ts +1 -1
  167. package/v3/VwcSwitch/index.js +4 -1
  168. package/v3/VwcSwitch/package.json +2 -2
  169. package/v3/VwcTab/index.js +6 -0
  170. package/v3/VwcTab/package.json +2 -2
  171. package/v3/VwcTabPanel/package.json +2 -2
  172. package/v3/VwcTabs/package.json +2 -2
  173. package/v3/VwcTag/package.json +2 -2
  174. package/v3/VwcTagGroup/index.d.ts +2 -1
  175. package/v3/VwcTagGroup/index.js +21 -1
  176. package/v3/VwcTagGroup/package.json +2 -2
  177. package/v3/VwcTextAnchor/package.json +2 -2
  178. package/v3/VwcTextArea/index.d.ts +1 -1
  179. package/v3/VwcTextArea/index.js +11 -0
  180. package/v3/VwcTextArea/package.json +2 -2
  181. package/v3/VwcTextField/index.d.ts +2 -0
  182. package/v3/VwcTextField/index.js +42 -1
  183. package/v3/VwcTextField/package.json +2 -2
  184. package/v3/VwcToggletip/package.json +2 -2
  185. package/v3/VwcTooltip/package.json +2 -2
  186. package/v3/VwcTreeItem/package.json +2 -2
  187. package/v3/VwcTreeView/package.json +2 -2
@@ -0,0 +1,248 @@
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 date-picker",
9
+ "name": "DatePickerBase",
10
+ "cssProperties": [
11
+ {
12
+ "name": "--vvd-date-picker-accent-primary",
13
+ "default": "var(--vvd-color-canvas-text)"
14
+ },
15
+ {
16
+ "name": "--vvd-date-picker-accent-faint",
17
+ "default": "var(--vvd-color-neutral-50)"
18
+ },
19
+ {
20
+ "name": "--vvd-date-picker-accent-soft",
21
+ "default": "var(--vvd-color-neutral-100)"
22
+ },
23
+ {
24
+ "name": "--vvd-date-picker-accent-dim",
25
+ "default": "var(--vvd-color-neutral-200)"
26
+ },
27
+ {
28
+ "name": "--vvd-date-picker-accent-pale",
29
+ "default": "var(--vvd-color-neutral-300)"
30
+ }
31
+ ],
32
+ "members": [
33
+ {
34
+ "kind": "field",
35
+ "name": "label",
36
+ "type": {
37
+ "text": "string"
38
+ }
39
+ },
40
+ {
41
+ "kind": "field",
42
+ "name": "min",
43
+ "type": {
44
+ "text": "string"
45
+ },
46
+ "description": "The earliest accepted date of the date-picker.",
47
+ "privacy": "public",
48
+ "default": "''"
49
+ },
50
+ {
51
+ "kind": "field",
52
+ "name": "max",
53
+ "type": {
54
+ "text": "string"
55
+ },
56
+ "description": "The latest accepted date of the date-picker.",
57
+ "privacy": "public",
58
+ "default": "''"
59
+ },
60
+ {
61
+ "kind": "field",
62
+ "name": "initialValue",
63
+ "type": {
64
+ "text": "string"
65
+ },
66
+ "description": "The initial value of the date-picker.",
67
+ "privacy": "public"
68
+ },
69
+ {
70
+ "kind": "field",
71
+ "name": "currentValue",
72
+ "type": {
73
+ "text": "string"
74
+ },
75
+ "description": "The current value of the date-picker.",
76
+ "privacy": "public"
77
+ },
78
+ {
79
+ "kind": "field",
80
+ "name": "readOnly",
81
+ "type": {
82
+ "text": "boolean"
83
+ },
84
+ "default": "false",
85
+ "description": "Whether the date-picker is readonly.",
86
+ "privacy": "public"
87
+ },
88
+ {
89
+ "kind": "method",
90
+ "name": "#getFocusableEls"
91
+ },
92
+ {
93
+ "kind": "method",
94
+ "name": "_adjustSelectedMonthToEnsureVisibilityOf",
95
+ "privacy": "protected",
96
+ "parameters": [
97
+ {
98
+ "name": "date",
99
+ "type": {
100
+ "text": "DateStr"
101
+ }
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "kind": "method",
107
+ "name": "#isMonthAfterValidRange",
108
+ "parameters": [
109
+ {
110
+ "name": "month",
111
+ "type": {
112
+ "text": "Month"
113
+ }
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "kind": "method",
119
+ "name": "#isMonthBeforeValidRange",
120
+ "parameters": [
121
+ {
122
+ "name": "month",
123
+ "type": {
124
+ "text": "Month"
125
+ }
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "kind": "field",
131
+ "name": "#onFocusIn",
132
+ "privacy": "private"
133
+ },
134
+ {
135
+ "kind": "field",
136
+ "name": "#onFocusOut",
137
+ "privacy": "private"
138
+ },
139
+ {
140
+ "kind": "method",
141
+ "name": "_getCustomValidationError",
142
+ "privacy": "protected",
143
+ "return": {
144
+ "type": {
145
+ "text": "string | null"
146
+ }
147
+ }
148
+ },
149
+ {
150
+ "kind": "field",
151
+ "name": "#dismissOnClickOutside",
152
+ "privacy": "private"
153
+ },
154
+ {
155
+ "kind": "field",
156
+ "name": "#isClosingPopup",
157
+ "privacy": "private",
158
+ "type": {
159
+ "text": "boolean"
160
+ },
161
+ "default": "false"
162
+ },
163
+ {
164
+ "kind": "method",
165
+ "name": "#openPopupIfPossible"
166
+ },
167
+ {
168
+ "kind": "method",
169
+ "name": "_getSelectedDates",
170
+ "privacy": "protected",
171
+ "return": {
172
+ "type": {
173
+ "text": "DateStr[]"
174
+ }
175
+ }
176
+ },
177
+ {
178
+ "kind": "field",
179
+ "name": "value",
180
+ "type": {
181
+ "text": "string"
182
+ },
183
+ "default": "''"
184
+ }
185
+ ],
186
+ "attributes": [
187
+ {
188
+ "type": {
189
+ "text": "string"
190
+ },
191
+ "description": "The earliest accepted date of the date-picker.",
192
+ "default": "''",
193
+ "fieldName": "min"
194
+ },
195
+ {
196
+ "type": {
197
+ "text": "string"
198
+ },
199
+ "description": "The latest accepted date of the date-picker.",
200
+ "default": "''",
201
+ "fieldName": "max"
202
+ },
203
+ {
204
+ "name": "value",
205
+ "type": {
206
+ "text": "string"
207
+ },
208
+ "description": "The initial value of the date-picker.",
209
+ "fieldName": "initialValue"
210
+ },
211
+ {
212
+ "name": "current-value",
213
+ "type": {
214
+ "text": "string"
215
+ },
216
+ "description": "The current value of the date-picker.",
217
+ "fieldName": "currentValue"
218
+ },
219
+ {
220
+ "name": "readonly",
221
+ "type": {
222
+ "text": "boolean"
223
+ },
224
+ "default": "false",
225
+ "description": "Whether the date-picker is readonly.",
226
+ "fieldName": "readOnly"
227
+ }
228
+ ],
229
+ "superclass": {
230
+ "name": "FormAssociatedDatePickerBase",
231
+ "module": "/libs/components/src/shared/date-picker/date-picker-base.form-associated"
232
+ }
233
+ }
234
+ */
235
+ import wrapper from '@vonage/vivid-react-wrapper'
236
+ import { registerDatePickerBase } from '@vonage/vivid'
237
+
238
+ registerDatePickerBase('vvd3')
239
+
240
+ const VwcDatePickerBase = wrapper(`vvd3-date-picker-base`, {
241
+ events: [],
242
+ attributes: [],
243
+ properties: ['label', 'min', 'max', 'initialValue', 'currentValue', 'readOnly', 'value']
244
+ })
245
+
246
+ VwcDatePickerBase.displayName = 'VwcDatePickerBase'
247
+
248
+ export default VwcDatePickerBase
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@vonage/vivid-react-vvd3-date-picker-base",
3
+ "version": "3.40.0",
4
+ "main": "index.js",
5
+ "types": "index.d.ts",
6
+ "private": true,
7
+ "license": "MIT",
8
+ "dependencies": {
9
+ "@vonage/vivid": "3.40.0"
10
+ }
11
+ }
@@ -0,0 +1,56 @@
1
+ import React, { ReactNode, SyntheticEvent } from 'react';
2
+ /** Base class for date-range-picker
3
+ * For more info on this Vivid element please visit https://vivid.deno.dev/components/date-range-picker
4
+ * @param {string} initialStart - The initial start value. This value sets the `start` property
5
+ only when the `start` property has not been explicitly set. **attribute** `start`
6
+ * @param {string} initialEnd - The initial end value. This value sets the `end` property
7
+ only when the `end` property has not been explicitly set. **attribute** `end`
8
+ * @param {string} start - The start value of the date range.
9
+ * @param {string} end - The end value of the date range.
10
+ * @param {string} currentStart - The current start value of the element. This property serves as a mechanism
11
+ to set the `start` property through both property assignment and the
12
+ .setAttribute() method. This is useful for setting the field's value
13
+ in UI libraries that bind data through the .setAttribute() API
14
+ and don't support IDL attribute binding. **attribute** `current-start`
15
+ * @param {string} currentEnd - The current end value of the element. This property serves as a mechanism
16
+ to set the `end` property through both property assignment and the
17
+ .setAttribute() method. This is useful for setting the field's value
18
+ in UI libraries that bind data through the .setAttribute() API
19
+ and don't support IDL attribute binding. **attribute** `current-end`
20
+ * @param setFormValue
21
+ * @param {string} label
22
+ * @param {string} min - The earliest accepted date of the date-picker. **attribute** `min`
23
+ * @param {string} max - The latest accepted date of the date-picker.
24
+ * @param {string} initialValue - The initial value of the date-picker. **attribute** `value`
25
+ * @param {string} currentValue - The current value of the date-picker. **attribute** `current-value`
26
+ * @param {boolean} readOnly - Whether the date-picker is readonly. **attribute** `readonly`
27
+ * @param {string} value
28
+ */
29
+ declare const VwcDateRangePicker: {
30
+ (props: {
31
+ (event: SyntheticEvent): void;
32
+ (event: SyntheticEvent): void;
33
+ children?: ReactNode;
34
+ slot?: string | undefined;
35
+ id?: string | undefined;
36
+ style?: React.CSSProperties | undefined;
37
+ ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
38
+ onInput: start | null;
39
+ initialStart?: string | undefined;
40
+ initialEnd?: string | undefined;
41
+ start?: string | undefined;
42
+ end?: string | undefined;
43
+ currentStart?: string | undefined;
44
+ currentEnd?: string | undefined;
45
+ setFormValue?: any;
46
+ label?: string | undefined;
47
+ min?: string | undefined;
48
+ max?: string | undefined;
49
+ initialValue?: string | undefined;
50
+ currentValue?: string | undefined;
51
+ readOnly?: boolean | undefined;
52
+ value?: string | undefined;
53
+ }): JSX.Element;
54
+ displayName: string;
55
+ };
56
+ export default VwcDateRangePicker;