wabtec-internal-volt-extended-components-react 1.2.0 → 1.3.0

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.
@@ -0,0 +1,254 @@
1
+ /**
2
+ * Type augmentations for Volt components to include native HTML attributes
3
+ *
4
+ * This file extends the JSX types from wabtec-internal-volt-basic-components and
5
+ * wabtec-internal-volt-extended-components to include standard HTML input/textarea
6
+ * attributes that are forwarded via cloneAttributes but not explicitly
7
+ * defined as @Props in the Stencil components.
8
+ */
9
+ /**
10
+ * Common attributes that should be available on ALL Volt components
11
+ */
12
+ interface CommonHTMLAttributes {
13
+ [key: `data-${string}`]: any;
14
+ [key: `aria-${string}`]: any;
15
+ }
16
+ /**
17
+ * Native HTML input element attributes
18
+ * Based on MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
19
+ */
20
+ interface InputHTMLAttributes extends CommonHTMLAttributes {
21
+ name?: string;
22
+ id?: string;
23
+ form?: string;
24
+ autocomplete?: string;
25
+ autocorrect?: "on" | "off";
26
+ autocapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters";
27
+ autofocus?: boolean;
28
+ inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
29
+ enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
30
+ min?: string;
31
+ max?: string;
32
+ minlength?: string;
33
+ maxlength?: string;
34
+ pattern?: string;
35
+ step?: string;
36
+ list?: string;
37
+ multiple?: boolean;
38
+ accept?: string;
39
+ dirname?: string;
40
+ title?: string;
41
+ tabindex?: string;
42
+ spellcheck?: boolean | "true" | "false";
43
+ }
44
+ /**
45
+ * Native HTML textarea element attributes
46
+ * Based on MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
47
+ */
48
+ interface TextareaHTMLAttributes extends CommonHTMLAttributes {
49
+ name?: string;
50
+ id?: string;
51
+ form?: string;
52
+ autocomplete?: string;
53
+ autocorrect?: "on" | "off";
54
+ autocapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters";
55
+ autofocus?: boolean;
56
+ dirname?: string;
57
+ title?: string;
58
+ tabindex?: string;
59
+ spellcheck?: boolean | "true" | "false";
60
+ wrap?: "soft" | "hard" | "off";
61
+ rows?: string;
62
+ cols?: string;
63
+ minlength?: string;
64
+ maxlength?: string;
65
+ }
66
+ declare module "wabtec-internal-volt-basic-components" {
67
+ namespace JSX {
68
+ interface VdsBasicInput extends InputHTMLAttributes {
69
+ }
70
+ interface VdsBasicTextarea extends TextareaHTMLAttributes {
71
+ }
72
+ interface VdsAvatar extends CommonHTMLAttributes {
73
+ }
74
+ interface VdsBadgeDot extends CommonHTMLAttributes {
75
+ }
76
+ interface VdsBadgePill extends CommonHTMLAttributes {
77
+ }
78
+ interface VdsBasicAccordion extends CommonHTMLAttributes {
79
+ }
80
+ interface VdsBasicDropdown extends CommonHTMLAttributes {
81
+ }
82
+ interface VdsBasicDropdownMultiselect extends CommonHTMLAttributes {
83
+ }
84
+ interface VdsBasicSliderContinuous extends CommonHTMLAttributes {
85
+ }
86
+ interface VdsButton extends CommonHTMLAttributes {
87
+ }
88
+ interface VdsCard extends CommonHTMLAttributes {
89
+ }
90
+ interface VdsCheckbox extends CommonHTMLAttributes {
91
+ }
92
+ interface VdsChip extends CommonHTMLAttributes {
93
+ }
94
+ interface VdsDialog extends CommonHTMLAttributes {
95
+ }
96
+ interface VdsDialogActionFooter extends CommonHTMLAttributes {
97
+ }
98
+ interface VdsDialogBody extends CommonHTMLAttributes {
99
+ }
100
+ interface VdsDialogHeader extends CommonHTMLAttributes {
101
+ }
102
+ interface VdsDialogModal extends CommonHTMLAttributes {
103
+ }
104
+ interface VdsDivider extends CommonHTMLAttributes {
105
+ }
106
+ interface VdsDrawer extends CommonHTMLAttributes {
107
+ }
108
+ interface VdsDropdownGroupHeader extends CommonHTMLAttributes {
109
+ }
110
+ interface VdsDropdownItem extends CommonHTMLAttributes {
111
+ }
112
+ interface VdsField extends CommonHTMLAttributes {
113
+ }
114
+ interface VdsFooter extends CommonHTMLAttributes {
115
+ }
116
+ interface VdsHeader extends CommonHTMLAttributes {
117
+ }
118
+ interface VdsIcon extends CommonHTMLAttributes {
119
+ }
120
+ interface VdsIconButton extends CommonHTMLAttributes {
121
+ }
122
+ interface VdsLabel extends CommonHTMLAttributes {
123
+ }
124
+ interface VdsLink extends CommonHTMLAttributes {
125
+ }
126
+ interface VdsMenu extends CommonHTMLAttributes {
127
+ }
128
+ interface VdsMenuGroupHeader extends CommonHTMLAttributes {
129
+ }
130
+ interface VdsMenuItem extends CommonHTMLAttributes {
131
+ }
132
+ interface VdsMenuList extends CommonHTMLAttributes {
133
+ }
134
+ interface VdsNotification extends CommonHTMLAttributes {
135
+ }
136
+ interface VdsPopover extends CommonHTMLAttributes {
137
+ }
138
+ interface VdsProgressLinear extends CommonHTMLAttributes {
139
+ }
140
+ interface VdsRadioButton extends CommonHTMLAttributes {
141
+ }
142
+ interface VdsSidenavItem extends CommonHTMLAttributes {
143
+ }
144
+ interface VdsSidenavItemApp extends CommonHTMLAttributes {
145
+ }
146
+ interface VdsSidenavItemButton extends CommonHTMLAttributes {
147
+ }
148
+ interface VdsSidenavItemCategory extends CommonHTMLAttributes {
149
+ }
150
+ interface VdsSidenavItemInput extends CommonHTMLAttributes {
151
+ }
152
+ interface VdsSwitch extends CommonHTMLAttributes {
153
+ }
154
+ interface VdsTab extends CommonHTMLAttributes {
155
+ }
156
+ interface VdsTabsGroup extends CommonHTMLAttributes {
157
+ }
158
+ interface VdsTooltip extends CommonHTMLAttributes {
159
+ }
160
+ interface VdsProgressCircular extends CommonHTMLAttributes {
161
+ }
162
+ interface VdsAutocompleteItem extends CommonHTMLAttributes {
163
+ }
164
+ interface VdsBasicAutocomplete extends CommonHTMLAttributes {
165
+ }
166
+ interface VdsBasicSliderRangeContinuous extends CommonHTMLAttributes {
167
+ }
168
+ interface VdsSegmentedButton extends CommonHTMLAttributes {
169
+ }
170
+ interface VdsKeyValuePair extends CommonHTMLAttributes {
171
+ }
172
+ interface VdsUploadItem extends CommonHTMLAttributes {
173
+ }
174
+ interface VdsSkeletonLoading extends CommonHTMLAttributes {
175
+ }
176
+ interface VdsUploadDrag extends CommonHTMLAttributes {
177
+ }
178
+ interface VdsBasicComboBox extends CommonHTMLAttributes {
179
+ }
180
+ interface VdsSheet extends CommonHTMLAttributes {
181
+ }
182
+ interface VdsStepperItem extends CommonHTMLAttributes {
183
+ }
184
+ interface VdsStepperItemHeader extends CommonHTMLAttributes {
185
+ }
186
+ interface VdsBreadcrumbsItem extends CommonHTMLAttributes {
187
+ }
188
+ interface VdsTopbar extends CommonHTMLAttributes {
189
+ }
190
+ }
191
+ }
192
+ declare module "wabtec-internal-volt-extended-components" {
193
+ namespace JSX {
194
+ interface VdsInput extends InputHTMLAttributes {
195
+ }
196
+ interface VdsTextarea extends TextareaHTMLAttributes {
197
+ }
198
+ interface VdsAccordionGroup extends CommonHTMLAttributes {
199
+ }
200
+ interface VdsAutocomplete extends CommonHTMLAttributes {
201
+ }
202
+ interface VdsAvatarGroup extends CommonHTMLAttributes {
203
+ }
204
+ interface VdsBreadcrumbs extends CommonHTMLAttributes {
205
+ }
206
+ interface VdsCalendar extends CommonHTMLAttributes {
207
+ }
208
+ interface VdsCalendarDayCell extends CommonHTMLAttributes {
209
+ }
210
+ interface VdsCheckboxGroup extends CommonHTMLAttributes {
211
+ }
212
+ interface VdsDatePicker extends CommonHTMLAttributes {
213
+ }
214
+ interface VdsDatePanel extends CommonHTMLAttributes {
215
+ }
216
+ interface VdsDateTimePanel extends CommonHTMLAttributes {
217
+ }
218
+ interface VdsDateTimePicker extends CommonHTMLAttributes {
219
+ }
220
+ interface VdsDropdown extends CommonHTMLAttributes {
221
+ }
222
+ interface VdsDropdownMultiselect extends CommonHTMLAttributes {
223
+ }
224
+ interface VdsHorizontalStepper extends CommonHTMLAttributes {
225
+ }
226
+ interface VdsInputDate extends CommonHTMLAttributes {
227
+ }
228
+ interface VdsInputDateTime extends CommonHTMLAttributes {
229
+ }
230
+ interface VdsInputTime extends CommonHTMLAttributes {
231
+ }
232
+ interface VdsNotificationGroup extends CommonHTMLAttributes {
233
+ }
234
+ interface VdsNotificationToast extends CommonHTMLAttributes {
235
+ }
236
+ interface VdsRadioGroup extends CommonHTMLAttributes {
237
+ }
238
+ interface VdsSegmentedGroup extends CommonHTMLAttributes {
239
+ }
240
+ interface VdsSidenav extends CommonHTMLAttributes {
241
+ }
242
+ interface VdsSwitchGroup extends CommonHTMLAttributes {
243
+ }
244
+ interface VdsTimePanel extends CommonHTMLAttributes {
245
+ }
246
+ interface VdsTimePicker extends CommonHTMLAttributes {
247
+ }
248
+ interface VdsUpload extends CommonHTMLAttributes {
249
+ }
250
+ interface VdsVerticalStepper extends CommonHTMLAttributes {
251
+ }
252
+ }
253
+ }
254
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Type augmentations for Volt components to include native HTML attributes
3
+ *
4
+ * This file extends the JSX types from wabtec-internal-volt-basic-components and
5
+ * wabtec-internal-volt-extended-components to include standard HTML input/textarea
6
+ * attributes that are forwarded via cloneAttributes but not explicitly
7
+ * defined as @Props in the Stencil components.
8
+ */
9
+ export {};
@@ -59,3 +59,4 @@ export declare const VdsSheet: import("react").ForwardRefExoticComponent<JSX.Vds
59
59
  export declare const VdsStepperItem: import("react").ForwardRefExoticComponent<JSX.VdsStepperItem & Omit<import("react").HTMLAttributes<HTMLVdsStepperItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVdsStepperItemElement>>;
60
60
  export declare const VdsStepperItemHeader: import("react").ForwardRefExoticComponent<JSX.VdsStepperItemHeader & Omit<import("react").HTMLAttributes<HTMLVdsStepperItemHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVdsStepperItemHeaderElement>>;
61
61
  export declare const VdsBreadcrumbsItem: import("react").ForwardRefExoticComponent<JSX.VdsBreadcrumbsItem & Omit<import("react").HTMLAttributes<HTMLVdsBreadcrumbsItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVdsBreadcrumbsItemElement>>;
62
+ export declare const VdsTopbar: import("react").ForwardRefExoticComponent<JSX.VdsTopbar & Omit<import("react").HTMLAttributes<HTMLVdsTopbarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVdsTopbarElement>>;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  /* tslint:disable */
3
3
  /* auto-generated react proxies */
4
- import { createReactComponent } from './react-component-lib';
4
+ import { createReactComponent } from './react-component-lib/createComponent';
5
5
  export const VdsAvatar = /*@__PURE__*/ createReactComponent('vds-avatar');
6
6
  export const VdsBadgeDot = /*@__PURE__*/ createReactComponent('vds-badge-dot');
7
7
  export const VdsBadgePill = /*@__PURE__*/ createReactComponent('vds-badge-pill');
@@ -62,3 +62,4 @@ export const VdsSheet = /*@__PURE__*/ createReactComponent('vds-sheet');
62
62
  export const VdsStepperItem = /*@__PURE__*/ createReactComponent('vds-stepper-item');
63
63
  export const VdsStepperItemHeader = /*@__PURE__*/ createReactComponent('vds-stepper-item-header');
64
64
  export const VdsBreadcrumbsItem = /*@__PURE__*/ createReactComponent('vds-breadcrumbs-item');
65
+ export const VdsTopbar = /*@__PURE__*/ createReactComponent('vds-topbar');
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./components";
2
2
  export * from "./basic-components";
3
+ export * from "./augment-types";
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./components";
2
2
  export * from "./basic-components";
3
+ export * from "./augment-types";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wabtec-internal-volt-extended-components-react",
3
3
  "sideEffects": false,
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "description": "React component library for the Volt Extended components",
6
6
  "repository": {},
7
7
  "author": "Wilmer Contreras <wilmer.contreras@wabtec.com>",
@@ -33,14 +33,10 @@
33
33
  "typescript": "^5.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "wabtec-internal-volt-extended-components": "1.2.0",
37
- "react": "^16.12.0",
38
- "react-dom": "^16.12.0"
36
+ "wabtec-internal-volt-extended-components": "1.3.0"
39
37
  },
40
38
  "peerDependencies": {
41
- "wabtec-internal-volt-extended-components": "1.2.0",
42
- "react": "^16.7.0",
43
- "react-dom": "^16.7.0"
39
+ "wabtec-internal-volt-extended-components": "1.3.0"
44
40
  },
45
41
  "jest": {
46
42
  "preset": "ts-jest",