@desynth/web-components-react 13.11.25-alpha.1 → 13.11.25-alpha.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@desynth/web-components-react",
3
3
  "sideEffects": false,
4
- "version": "13.11.25-alpha.1",
4
+ "version": "13.11.25-alpha.3",
5
5
  "description": "React proxy for @desynth/web-components",
6
6
  "license": "MPL-2.0",
7
7
  "homepage": "https://github.com/desynth/desynth-web-components#readme",
@@ -20,11 +20,13 @@
20
20
  "tsc": "tsc -p ."
21
21
  },
22
22
  "main": "./dist/index.js",
23
- "module": "./dist/index.js",
24
- "types": "./dist/index.d.ts",
25
- "files": [
26
- "dist/"
27
- ],
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js"
27
+ }
28
+ },
29
+ "type": "module",
28
30
  "devDependencies": {
29
31
  "@types/react": "19.2.4",
30
32
  "@types/react-dom": "19.2.3"
@@ -1,4 +1,13 @@
1
1
  'use client';
2
+
3
+ /**
4
+ * This file was automatically generated by the Stencil React Output Target.
5
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
6
+ */
7
+
8
+ /* eslint-disable */
9
+
10
+ import { type BeforeCloseAlertEventDetail, type BeforeCloseEventDetail, type CheckedChangeEventValue, type DesynthAlertCustomEvent, type DesynthBreadcrumbCustomEvent, type DesynthCheckboxCustomEvent, type DesynthDatePickerCustomEvent, type DesynthDropFileCustomEvent, type DesynthFormCustomEvent, type DesynthListCustomEvent, type DesynthModalCustomEvent, type DesynthRatingCustomEvent, type DesynthSelectCustomEvent, type DesynthSwitchCustomEvent, type DesynthTextAreaCustomEvent, type DesynthTextInputCustomEvent, type IFormInput, type InputChangeEventValue, type ListItem, type Options, type SwitchChangeEventValue, type TextInputChangeEventValue } from "@desynth/web-components";
2
11
  import { DesynthAccordion as DesynthAccordionElement, defineCustomElement as defineDesynthAccordion } from "@desynth/web-components/dist/desynth-accordion.js";
3
12
  import { DesynthAlert as DesynthAlertElement, defineCustomElement as defineDesynthAlert } from "@desynth/web-components/dist/desynth-alert.js";
4
13
  import { DesynthBreadcrumb as DesynthBreadcrumbElement, defineCustomElement as defineDesynthBreadcrumb } from "@desynth/web-components/dist/desynth-breadcrumb.js";
@@ -29,17 +38,28 @@ import { DesynthTextInput as DesynthTextInputElement, defineCustomElement as def
29
38
  import { DesynthTooltip as DesynthTooltipElement, defineCustomElement as defineDesynthTooltip } from "@desynth/web-components/dist/desynth-tooltip.js";
30
39
  import { HorizontalCards as HorizontalCardsElement, defineCustomElement as defineHorizontalCards } from "@desynth/web-components/dist/horizontal-cards.js";
31
40
  import { HtmlEditor as HtmlEditorElement, defineCustomElement as defineHtmlEditor } from "@desynth/web-components/dist/html-editor.js";
41
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
32
42
  import { createComponent } from '@stencil/react-output-target/runtime';
33
43
  import React from 'react';
34
- export const DesynthAccordion = /*@__PURE__*/ createComponent({
44
+
45
+ export type DesynthAccordionEvents = NonNullable<unknown>;
46
+
47
+ export const DesynthAccordion: StencilReactComponent<DesynthAccordionElement, DesynthAccordionEvents> = /*@__PURE__*/ createComponent<DesynthAccordionElement, DesynthAccordionEvents>({
35
48
  tagName: 'desynth-accordion',
36
49
  elementClass: DesynthAccordionElement,
37
50
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
38
51
  react: React,
39
- events: {},
52
+ events: {} as DesynthAccordionEvents,
40
53
  defineCustomElement: defineDesynthAccordion
41
54
  });
42
- export const DesynthAlert = /*@__PURE__*/ createComponent({
55
+
56
+ export type DesynthAlertEvents = {
57
+ onHandleOpen: EventName<CustomEvent<void>>,
58
+ onHandleClose: EventName<CustomEvent<void>>,
59
+ onHandleBeforeClose: EventName<DesynthAlertCustomEvent<BeforeCloseAlertEventDetail>>
60
+ };
61
+
62
+ export const DesynthAlert: StencilReactComponent<DesynthAlertElement, DesynthAlertEvents> = /*@__PURE__*/ createComponent<DesynthAlertElement, DesynthAlertEvents>({
43
63
  tagName: 'desynth-alert',
44
64
  elementClass: DesynthAlertElement,
45
65
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -48,10 +68,17 @@ export const DesynthAlert = /*@__PURE__*/ createComponent({
48
68
  onHandleOpen: 'handleOpen',
49
69
  onHandleClose: 'handleClose',
50
70
  onHandleBeforeClose: 'handleBeforeClose'
51
- },
71
+ } as DesynthAlertEvents,
52
72
  defineCustomElement: defineDesynthAlert
53
73
  });
54
- export const DesynthBreadcrumb = /*@__PURE__*/ createComponent({
74
+
75
+ export type DesynthBreadcrumbEvents = {
76
+ onHandleInput: EventName<DesynthBreadcrumbCustomEvent<HTMLInputElement>>,
77
+ onHandleFocus: EventName<CustomEvent<void>>,
78
+ onHandleBlur: EventName<CustomEvent<void>>
79
+ };
80
+
81
+ export const DesynthBreadcrumb: StencilReactComponent<DesynthBreadcrumbElement, DesynthBreadcrumbEvents> = /*@__PURE__*/ createComponent<DesynthBreadcrumbElement, DesynthBreadcrumbEvents>({
55
82
  tagName: 'desynth-breadcrumb',
56
83
  elementClass: DesynthBreadcrumbElement,
57
84
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -60,10 +87,17 @@ export const DesynthBreadcrumb = /*@__PURE__*/ createComponent({
60
87
  onHandleInput: 'handleInput',
61
88
  onHandleFocus: 'handleFocus',
62
89
  onHandleBlur: 'handleBlur'
63
- },
90
+ } as DesynthBreadcrumbEvents,
64
91
  defineCustomElement: defineDesynthBreadcrumb
65
92
  });
66
- export const DesynthButton = /*@__PURE__*/ createComponent({
93
+
94
+ export type DesynthButtonEvents = {
95
+ onHandleClick: EventName<CustomEvent<void>>,
96
+ onHandleFocus: EventName<CustomEvent<void>>,
97
+ onHandleBlur: EventName<CustomEvent<void>>
98
+ };
99
+
100
+ export const DesynthButton: StencilReactComponent<DesynthButtonElement, DesynthButtonEvents> = /*@__PURE__*/ createComponent<DesynthButtonElement, DesynthButtonEvents>({
67
101
  tagName: 'desynth-button',
68
102
  elementClass: DesynthButtonElement,
69
103
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -72,50 +106,72 @@ export const DesynthButton = /*@__PURE__*/ createComponent({
72
106
  onHandleClick: 'handleClick',
73
107
  onHandleFocus: 'handleFocus',
74
108
  onHandleBlur: 'handleBlur'
75
- },
109
+ } as DesynthButtonEvents,
76
110
  defineCustomElement: defineDesynthButton
77
111
  });
78
- export const DesynthButtonSlider = /*@__PURE__*/ createComponent({
112
+
113
+ export type DesynthButtonSliderEvents = NonNullable<unknown>;
114
+
115
+ export const DesynthButtonSlider: StencilReactComponent<DesynthButtonSliderElement, DesynthButtonSliderEvents> = /*@__PURE__*/ createComponent<DesynthButtonSliderElement, DesynthButtonSliderEvents>({
79
116
  tagName: 'desynth-button-slider',
80
117
  elementClass: DesynthButtonSliderElement,
81
118
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
82
119
  react: React,
83
- events: {},
120
+ events: {} as DesynthButtonSliderEvents,
84
121
  defineCustomElement: defineDesynthButtonSlider
85
122
  });
86
- export const DesynthCard = /*@__PURE__*/ createComponent({
123
+
124
+ export type DesynthCardEvents = NonNullable<unknown>;
125
+
126
+ export const DesynthCard: StencilReactComponent<DesynthCardElement, DesynthCardEvents> = /*@__PURE__*/ createComponent<DesynthCardElement, DesynthCardEvents>({
87
127
  tagName: 'desynth-card',
88
128
  elementClass: DesynthCardElement,
89
129
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
90
130
  react: React,
91
- events: {},
131
+ events: {} as DesynthCardEvents,
92
132
  defineCustomElement: defineDesynthCard
93
133
  });
94
- export const DesynthCheckbox = /*@__PURE__*/ createComponent({
134
+
135
+ export type DesynthCheckboxEvents = { onHandleClick: EventName<DesynthCheckboxCustomEvent<CheckedChangeEventValue>> };
136
+
137
+ export const DesynthCheckbox: StencilReactComponent<DesynthCheckboxElement, DesynthCheckboxEvents> = /*@__PURE__*/ createComponent<DesynthCheckboxElement, DesynthCheckboxEvents>({
95
138
  tagName: 'desynth-checkbox',
96
139
  elementClass: DesynthCheckboxElement,
97
140
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
98
141
  react: React,
99
- events: { onHandleClick: 'handleClick' },
142
+ events: { onHandleClick: 'handleClick' } as DesynthCheckboxEvents,
100
143
  defineCustomElement: defineDesynthCheckbox
101
144
  });
102
- export const DesynthDatePicker = /*@__PURE__*/ createComponent({
145
+
146
+ export type DesynthDatePickerEvents = { onDateChanged: EventName<DesynthDatePickerCustomEvent<InputChangeEventValue>> };
147
+
148
+ export const DesynthDatePicker: StencilReactComponent<DesynthDatePickerElement, DesynthDatePickerEvents> = /*@__PURE__*/ createComponent<DesynthDatePickerElement, DesynthDatePickerEvents>({
103
149
  tagName: 'desynth-date-picker',
104
150
  elementClass: DesynthDatePickerElement,
105
151
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
106
152
  react: React,
107
- events: { onDateChanged: 'dateChanged' },
153
+ events: { onDateChanged: 'dateChanged' } as DesynthDatePickerEvents,
108
154
  defineCustomElement: defineDesynthDatePicker
109
155
  });
110
- export const DesynthDivider = /*@__PURE__*/ createComponent({
156
+
157
+ export type DesynthDividerEvents = NonNullable<unknown>;
158
+
159
+ export const DesynthDivider: StencilReactComponent<DesynthDividerElement, DesynthDividerEvents> = /*@__PURE__*/ createComponent<DesynthDividerElement, DesynthDividerEvents>({
111
160
  tagName: 'desynth-divider',
112
161
  elementClass: DesynthDividerElement,
113
162
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
114
163
  react: React,
115
- events: {},
164
+ events: {} as DesynthDividerEvents,
116
165
  defineCustomElement: defineDesynthDivider
117
166
  });
118
- export const DesynthDrawer = /*@__PURE__*/ createComponent({
167
+
168
+ export type DesynthDrawerEvents = {
169
+ onHandleClick: EventName<CustomEvent<void>>,
170
+ onHandleFocus: EventName<CustomEvent<void>>,
171
+ onHandleClose: EventName<CustomEvent<void>>
172
+ };
173
+
174
+ export const DesynthDrawer: StencilReactComponent<DesynthDrawerElement, DesynthDrawerEvents> = /*@__PURE__*/ createComponent<DesynthDrawerElement, DesynthDrawerEvents>({
119
175
  tagName: 'desynth-drawer',
120
176
  elementClass: DesynthDrawerElement,
121
177
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -124,18 +180,28 @@ export const DesynthDrawer = /*@__PURE__*/ createComponent({
124
180
  onHandleClick: 'handleClick',
125
181
  onHandleFocus: 'handleFocus',
126
182
  onHandleClose: 'handleClose'
127
- },
183
+ } as DesynthDrawerEvents,
128
184
  defineCustomElement: defineDesynthDrawer
129
185
  });
130
- export const DesynthDropFile = /*@__PURE__*/ createComponent({
186
+
187
+ export type DesynthDropFileEvents = { onFilesDropped: EventName<DesynthDropFileCustomEvent<File[]>> };
188
+
189
+ export const DesynthDropFile: StencilReactComponent<DesynthDropFileElement, DesynthDropFileEvents> = /*@__PURE__*/ createComponent<DesynthDropFileElement, DesynthDropFileEvents>({
131
190
  tagName: 'desynth-drop-file',
132
191
  elementClass: DesynthDropFileElement,
133
192
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
134
193
  react: React,
135
- events: { onFilesDropped: 'filesDropped' },
194
+ events: { onFilesDropped: 'filesDropped' } as DesynthDropFileEvents,
136
195
  defineCustomElement: defineDesynthDropFile
137
196
  });
138
- export const DesynthForm = /*@__PURE__*/ createComponent({
197
+
198
+ export type DesynthFormEvents = {
199
+ onClickSubmit: EventName<CustomEvent<void>>,
200
+ onClickClear: EventName<CustomEvent<void>>,
201
+ onHandleChange: EventName<DesynthFormCustomEvent<IFormInput>>
202
+ };
203
+
204
+ export const DesynthForm: StencilReactComponent<DesynthFormElement, DesynthFormEvents> = /*@__PURE__*/ createComponent<DesynthFormElement, DesynthFormEvents>({
139
205
  tagName: 'desynth-form',
140
206
  elementClass: DesynthFormElement,
141
207
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -144,18 +210,28 @@ export const DesynthForm = /*@__PURE__*/ createComponent({
144
210
  onClickSubmit: 'clickSubmit',
145
211
  onClickClear: 'clickClear',
146
212
  onHandleChange: 'handleChange'
147
- },
213
+ } as DesynthFormEvents,
148
214
  defineCustomElement: defineDesynthForm
149
215
  });
150
- export const DesynthGrid = /*@__PURE__*/ createComponent({
216
+
217
+ export type DesynthGridEvents = NonNullable<unknown>;
218
+
219
+ export const DesynthGrid: StencilReactComponent<DesynthGridElement, DesynthGridEvents> = /*@__PURE__*/ createComponent<DesynthGridElement, DesynthGridEvents>({
151
220
  tagName: 'desynth-grid',
152
221
  elementClass: DesynthGridElement,
153
222
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
154
223
  react: React,
155
- events: {},
224
+ events: {} as DesynthGridEvents,
156
225
  defineCustomElement: defineDesynthGrid
157
226
  });
158
- export const DesynthHeader = /*@__PURE__*/ createComponent({
227
+
228
+ export type DesynthHeaderEvents = {
229
+ onHandleClick: EventName<CustomEvent<void>>,
230
+ onHandleFocus: EventName<CustomEvent<void>>,
231
+ onHandleBlur: EventName<CustomEvent<void>>
232
+ };
233
+
234
+ export const DesynthHeader: StencilReactComponent<DesynthHeaderElement, DesynthHeaderEvents> = /*@__PURE__*/ createComponent<DesynthHeaderElement, DesynthHeaderEvents>({
159
235
  tagName: 'desynth-header',
160
236
  elementClass: DesynthHeaderElement,
161
237
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -164,26 +240,39 @@ export const DesynthHeader = /*@__PURE__*/ createComponent({
164
240
  onHandleClick: 'handleClick',
165
241
  onHandleFocus: 'handleFocus',
166
242
  onHandleBlur: 'handleBlur'
167
- },
243
+ } as DesynthHeaderEvents,
168
244
  defineCustomElement: defineDesynthHeader
169
245
  });
170
- export const DesynthList = /*@__PURE__*/ createComponent({
246
+
247
+ export type DesynthListEvents = { onItemClicked: EventName<DesynthListCustomEvent<ListItem>> };
248
+
249
+ export const DesynthList: StencilReactComponent<DesynthListElement, DesynthListEvents> = /*@__PURE__*/ createComponent<DesynthListElement, DesynthListEvents>({
171
250
  tagName: 'desynth-list',
172
251
  elementClass: DesynthListElement,
173
252
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
174
253
  react: React,
175
- events: { onItemClicked: 'itemClicked' },
254
+ events: { onItemClicked: 'itemClicked' } as DesynthListEvents,
176
255
  defineCustomElement: defineDesynthList
177
256
  });
178
- export const DesynthLoader = /*@__PURE__*/ createComponent({
257
+
258
+ export type DesynthLoaderEvents = NonNullable<unknown>;
259
+
260
+ export const DesynthLoader: StencilReactComponent<DesynthLoaderElement, DesynthLoaderEvents> = /*@__PURE__*/ createComponent<DesynthLoaderElement, DesynthLoaderEvents>({
179
261
  tagName: 'desynth-loader',
180
262
  elementClass: DesynthLoaderElement,
181
263
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
182
264
  react: React,
183
- events: {},
265
+ events: {} as DesynthLoaderEvents,
184
266
  defineCustomElement: defineDesynthLoader
185
267
  });
186
- export const DesynthModal = /*@__PURE__*/ createComponent({
268
+
269
+ export type DesynthModalEvents = {
270
+ onHandleOpen: EventName<CustomEvent<void>>,
271
+ onHandleClose: EventName<CustomEvent<void>>,
272
+ onHandleBeforeClose: EventName<DesynthModalCustomEvent<BeforeCloseEventDetail>>
273
+ };
274
+
275
+ export const DesynthModal: StencilReactComponent<DesynthModalElement, DesynthModalEvents> = /*@__PURE__*/ createComponent<DesynthModalElement, DesynthModalEvents>({
187
276
  tagName: 'desynth-modal',
188
277
  elementClass: DesynthModalElement,
189
278
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -192,42 +281,61 @@ export const DesynthModal = /*@__PURE__*/ createComponent({
192
281
  onHandleOpen: 'handleOpen',
193
282
  onHandleClose: 'handleClose',
194
283
  onHandleBeforeClose: 'handleBeforeClose'
195
- },
284
+ } as DesynthModalEvents,
196
285
  defineCustomElement: defineDesynthModal
197
286
  });
198
- export const DesynthMultiStepper = /*@__PURE__*/ createComponent({
287
+
288
+ export type DesynthMultiStepperEvents = { onHandleSubmit: EventName<CustomEvent<void>> };
289
+
290
+ export const DesynthMultiStepper: StencilReactComponent<DesynthMultiStepperElement, DesynthMultiStepperEvents> = /*@__PURE__*/ createComponent<DesynthMultiStepperElement, DesynthMultiStepperEvents>({
199
291
  tagName: 'desynth-multi-stepper',
200
292
  elementClass: DesynthMultiStepperElement,
201
293
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
202
294
  react: React,
203
- events: { onHandleSubmit: 'handleSubmit' },
295
+ events: { onHandleSubmit: 'handleSubmit' } as DesynthMultiStepperEvents,
204
296
  defineCustomElement: defineDesynthMultiStepper
205
297
  });
206
- export const DesynthPaper = /*@__PURE__*/ createComponent({
298
+
299
+ export type DesynthPaperEvents = NonNullable<unknown>;
300
+
301
+ export const DesynthPaper: StencilReactComponent<DesynthPaperElement, DesynthPaperEvents> = /*@__PURE__*/ createComponent<DesynthPaperElement, DesynthPaperEvents>({
207
302
  tagName: 'desynth-paper',
208
303
  elementClass: DesynthPaperElement,
209
304
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
210
305
  react: React,
211
- events: {},
306
+ events: {} as DesynthPaperEvents,
212
307
  defineCustomElement: defineDesynthPaper
213
308
  });
214
- export const DesynthRating = /*@__PURE__*/ createComponent({
309
+
310
+ export type DesynthRatingEvents = { onHandleChange: EventName<DesynthRatingCustomEvent<TextInputChangeEventValue>> };
311
+
312
+ export const DesynthRating: StencilReactComponent<DesynthRatingElement, DesynthRatingEvents> = /*@__PURE__*/ createComponent<DesynthRatingElement, DesynthRatingEvents>({
215
313
  tagName: 'desynth-rating',
216
314
  elementClass: DesynthRatingElement,
217
315
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
218
316
  react: React,
219
- events: { onHandleChange: 'handleChange' },
317
+ events: { onHandleChange: 'handleChange' } as DesynthRatingEvents,
220
318
  defineCustomElement: defineDesynthRating
221
319
  });
222
- export const DesynthRenderer = /*@__PURE__*/ createComponent({
320
+
321
+ export type DesynthRendererEvents = NonNullable<unknown>;
322
+
323
+ export const DesynthRenderer: StencilReactComponent<DesynthRendererElement, DesynthRendererEvents> = /*@__PURE__*/ createComponent<DesynthRendererElement, DesynthRendererEvents>({
223
324
  tagName: 'desynth-renderer',
224
325
  elementClass: DesynthRendererElement,
225
326
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
226
327
  react: React,
227
- events: {},
328
+ events: {} as DesynthRendererEvents,
228
329
  defineCustomElement: defineDesynthRenderer
229
330
  });
230
- export const DesynthSelect = /*@__PURE__*/ createComponent({
331
+
332
+ export type DesynthSelectEvents = {
333
+ onHandleChange: EventName<DesynthSelectCustomEvent<Options>>,
334
+ onHandleInput: EventName<DesynthSelectCustomEvent<HTMLInputElement>>,
335
+ onHandleFocus: EventName<CustomEvent<void>>
336
+ };
337
+
338
+ export const DesynthSelect: StencilReactComponent<DesynthSelectElement, DesynthSelectEvents> = /*@__PURE__*/ createComponent<DesynthSelectElement, DesynthSelectEvents>({
231
339
  tagName: 'desynth-select',
232
340
  elementClass: DesynthSelectElement,
233
341
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -236,18 +344,29 @@ export const DesynthSelect = /*@__PURE__*/ createComponent({
236
344
  onHandleChange: 'handleChange',
237
345
  onHandleInput: 'handleInput',
238
346
  onHandleFocus: 'handleFocus'
239
- },
347
+ } as DesynthSelectEvents,
240
348
  defineCustomElement: defineDesynthSelect
241
349
  });
242
- export const DesynthStepStepper = /*@__PURE__*/ createComponent({
350
+
351
+ export type DesynthStepStepperEvents = NonNullable<unknown>;
352
+
353
+ export const DesynthStepStepper: StencilReactComponent<DesynthStepStepperElement, DesynthStepStepperEvents> = /*@__PURE__*/ createComponent<DesynthStepStepperElement, DesynthStepStepperEvents>({
243
354
  tagName: 'desynth-step-stepper',
244
355
  elementClass: DesynthStepStepperElement,
245
356
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
246
357
  react: React,
247
- events: {},
358
+ events: {} as DesynthStepStepperEvents,
248
359
  defineCustomElement: defineDesynthStepStepper
249
360
  });
250
- export const DesynthSwitch = /*@__PURE__*/ createComponent({
361
+
362
+ export type DesynthSwitchEvents = {
363
+ onHandleClick: EventName<DesynthSwitchCustomEvent<SwitchChangeEventValue>>,
364
+ onHandleInput: EventName<DesynthSwitchCustomEvent<HTMLInputElement>>,
365
+ onHandleFocus: EventName<CustomEvent<void>>,
366
+ onHandleBlur: EventName<CustomEvent<void>>
367
+ };
368
+
369
+ export const DesynthSwitch: StencilReactComponent<DesynthSwitchElement, DesynthSwitchEvents> = /*@__PURE__*/ createComponent<DesynthSwitchElement, DesynthSwitchEvents>({
251
370
  tagName: 'desynth-switch',
252
371
  elementClass: DesynthSwitchElement,
253
372
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -257,10 +376,18 @@ export const DesynthSwitch = /*@__PURE__*/ createComponent({
257
376
  onHandleInput: 'handleInput',
258
377
  onHandleFocus: 'handleFocus',
259
378
  onHandleBlur: 'handleBlur'
260
- },
379
+ } as DesynthSwitchEvents,
261
380
  defineCustomElement: defineDesynthSwitch
262
381
  });
263
- export const DesynthTable = /*@__PURE__*/ createComponent({
382
+
383
+ export type DesynthTableEvents = {
384
+ onChangeRowsPerPage: EventName<CustomEvent<number>>,
385
+ onGetDataNextPage: EventName<CustomEvent<null>>,
386
+ onRowEvent: EventName<CustomEvent<any>>,
387
+ onDropEvent: EventName<CustomEvent<any>>
388
+ };
389
+
390
+ export const DesynthTable: StencilReactComponent<DesynthTableElement, DesynthTableEvents> = /*@__PURE__*/ createComponent<DesynthTableElement, DesynthTableEvents>({
264
391
  tagName: 'desynth-table',
265
392
  elementClass: DesynthTableElement,
266
393
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -270,10 +397,18 @@ export const DesynthTable = /*@__PURE__*/ createComponent({
270
397
  onGetDataNextPage: 'getDataNextPage',
271
398
  onRowEvent: 'rowEvent',
272
399
  onDropEvent: 'dropEvent'
273
- },
400
+ } as DesynthTableEvents,
274
401
  defineCustomElement: defineDesynthTable
275
402
  });
276
- export const DesynthTextArea = /*@__PURE__*/ createComponent({
403
+
404
+ export type DesynthTextAreaEvents = {
405
+ onHandleChange: EventName<DesynthTextAreaCustomEvent<InputChangeEventValue>>,
406
+ onHandleInput: EventName<DesynthTextAreaCustomEvent<HTMLInputElement>>,
407
+ onHandleFocus: EventName<CustomEvent<void>>,
408
+ onHandleBlur: EventName<CustomEvent<void>>
409
+ };
410
+
411
+ export const DesynthTextArea: StencilReactComponent<DesynthTextAreaElement, DesynthTextAreaEvents> = /*@__PURE__*/ createComponent<DesynthTextAreaElement, DesynthTextAreaEvents>({
277
412
  tagName: 'desynth-text-area',
278
413
  elementClass: DesynthTextAreaElement,
279
414
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -283,10 +418,18 @@ export const DesynthTextArea = /*@__PURE__*/ createComponent({
283
418
  onHandleInput: 'handleInput',
284
419
  onHandleFocus: 'handleFocus',
285
420
  onHandleBlur: 'handleBlur'
286
- },
421
+ } as DesynthTextAreaEvents,
287
422
  defineCustomElement: defineDesynthTextArea
288
423
  });
289
- export const DesynthTextInput = /*@__PURE__*/ createComponent({
424
+
425
+ export type DesynthTextInputEvents = {
426
+ onHandleChange: EventName<DesynthTextInputCustomEvent<TextInputChangeEventValue>>,
427
+ onHandleInput: EventName<DesynthTextInputCustomEvent<HTMLInputElement>>,
428
+ onHandleFocus: EventName<CustomEvent<void>>,
429
+ onHandleBlur: EventName<CustomEvent<void>>
430
+ };
431
+
432
+ export const DesynthTextInput: StencilReactComponent<DesynthTextInputElement, DesynthTextInputEvents> = /*@__PURE__*/ createComponent<DesynthTextInputElement, DesynthTextInputEvents>({
290
433
  tagName: 'desynth-text-input',
291
434
  elementClass: DesynthTextInputElement,
292
435
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
@@ -296,30 +439,39 @@ export const DesynthTextInput = /*@__PURE__*/ createComponent({
296
439
  onHandleInput: 'handleInput',
297
440
  onHandleFocus: 'handleFocus',
298
441
  onHandleBlur: 'handleBlur'
299
- },
442
+ } as DesynthTextInputEvents,
300
443
  defineCustomElement: defineDesynthTextInput
301
444
  });
302
- export const DesynthTooltip = /*@__PURE__*/ createComponent({
445
+
446
+ export type DesynthTooltipEvents = NonNullable<unknown>;
447
+
448
+ export const DesynthTooltip: StencilReactComponent<DesynthTooltipElement, DesynthTooltipEvents> = /*@__PURE__*/ createComponent<DesynthTooltipElement, DesynthTooltipEvents>({
303
449
  tagName: 'desynth-tooltip',
304
450
  elementClass: DesynthTooltipElement,
305
451
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
306
452
  react: React,
307
- events: {},
453
+ events: {} as DesynthTooltipEvents,
308
454
  defineCustomElement: defineDesynthTooltip
309
455
  });
310
- export const HorizontalCards = /*@__PURE__*/ createComponent({
456
+
457
+ export type HorizontalCardsEvents = NonNullable<unknown>;
458
+
459
+ export const HorizontalCards: StencilReactComponent<HorizontalCardsElement, HorizontalCardsEvents> = /*@__PURE__*/ createComponent<HorizontalCardsElement, HorizontalCardsEvents>({
311
460
  tagName: 'horizontal-cards',
312
461
  elementClass: HorizontalCardsElement,
313
462
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
314
463
  react: React,
315
- events: {},
464
+ events: {} as HorizontalCardsEvents,
316
465
  defineCustomElement: defineHorizontalCards
317
466
  });
318
- export const HtmlEditor = /*@__PURE__*/ createComponent({
467
+
468
+ export type HtmlEditorEvents = { onHtmlChanged: EventName<CustomEvent<string>> };
469
+
470
+ export const HtmlEditor: StencilReactComponent<HtmlEditorElement, HtmlEditorEvents> = /*@__PURE__*/ createComponent<HtmlEditorElement, HtmlEditorEvents>({
319
471
  tagName: 'html-editor',
320
472
  elementClass: HtmlEditorElement,
321
473
  // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
322
474
  react: React,
323
- events: { onHtmlChanged: 'htmlChanged' },
475
+ events: { onHtmlChanged: 'htmlChanged' } as HtmlEditorEvents,
324
476
  defineCustomElement: defineHtmlEditor
325
477
  });
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components.js';
package/tsconfig.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "compilerOptions": {
3
+ "alwaysStrict": true,
4
+ "allowSyntheticDefaultImports": true,
5
+ "allowUnreachableCode": false,
6
+ "declaration": true,
7
+ "experimentalDecorators": true,
8
+ "lib": [
9
+ "dom",
10
+ "es2015"
11
+ ],
12
+ "jsx": "react",
13
+ "noImplicitAny": true,
14
+ "noImplicitReturns": true,
15
+ "noUnusedLocals": true,
16
+ "noUnusedParameters": true,
17
+ "pretty": true,
18
+ "removeComments": false,
19
+ "strictPropertyInitialization": false,
20
+ "baseUrl": ".",
21
+ "outDir": "./dist/",
22
+ "target": "es2017", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
23
+ "module": "esnext",
24
+ "moduleResolution": "bundler", /* Specify what module code is generated. */
25
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
26
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
27
+ "strict": true, /* Enable all strict type-checking options. */
28
+ "skipLibCheck": true, /* Skip type checking all .d.ts files. */
29
+ }
30
+ }
@@ -1,162 +0,0 @@
1
- /**
2
- * This file was automatically generated by the Stencil React Output Target.
3
- * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
- */
5
- import { type BeforeCloseAlertEventDetail, type BeforeCloseEventDetail, type CheckedChangeEventValue, type DesynthAlertCustomEvent, type DesynthBreadcrumbCustomEvent, type DesynthCheckboxCustomEvent, type DesynthDatePickerCustomEvent, type DesynthDropFileCustomEvent, type DesynthFormCustomEvent, type DesynthListCustomEvent, type DesynthModalCustomEvent, type DesynthRatingCustomEvent, type DesynthSelectCustomEvent, type DesynthSwitchCustomEvent, type DesynthTextAreaCustomEvent, type DesynthTextInputCustomEvent, type IFormInput, type InputChangeEventValue, type ListItem, type Options, type SwitchChangeEventValue, type TextInputChangeEventValue } from "@desynth/web-components";
6
- import { DesynthAccordion as DesynthAccordionElement } from "@desynth/web-components/dist/desynth-accordion.js";
7
- import { DesynthAlert as DesynthAlertElement } from "@desynth/web-components/dist/desynth-alert.js";
8
- import { DesynthBreadcrumb as DesynthBreadcrumbElement } from "@desynth/web-components/dist/desynth-breadcrumb.js";
9
- import { DesynthButtonSlider as DesynthButtonSliderElement } from "@desynth/web-components/dist/desynth-button-slider.js";
10
- import { DesynthButton as DesynthButtonElement } from "@desynth/web-components/dist/desynth-button.js";
11
- import { DesynthCard as DesynthCardElement } from "@desynth/web-components/dist/desynth-card.js";
12
- import { DesynthCheckbox as DesynthCheckboxElement } from "@desynth/web-components/dist/desynth-checkbox.js";
13
- import { DesynthDatePicker as DesynthDatePickerElement } from "@desynth/web-components/dist/desynth-date-picker.js";
14
- import { DesynthDivider as DesynthDividerElement } from "@desynth/web-components/dist/desynth-divider.js";
15
- import { DesynthDrawer as DesynthDrawerElement } from "@desynth/web-components/dist/desynth-drawer.js";
16
- import { DesynthDropFile as DesynthDropFileElement } from "@desynth/web-components/dist/desynth-drop-file.js";
17
- import { DesynthForm as DesynthFormElement } from "@desynth/web-components/dist/desynth-form.js";
18
- import { DesynthGrid as DesynthGridElement } from "@desynth/web-components/dist/desynth-grid.js";
19
- import { DesynthHeader as DesynthHeaderElement } from "@desynth/web-components/dist/desynth-header.js";
20
- import { DesynthList as DesynthListElement } from "@desynth/web-components/dist/desynth-list.js";
21
- import { DesynthLoader as DesynthLoaderElement } from "@desynth/web-components/dist/desynth-loader.js";
22
- import { DesynthModal as DesynthModalElement } from "@desynth/web-components/dist/desynth-modal.js";
23
- import { DesynthMultiStepper as DesynthMultiStepperElement } from "@desynth/web-components/dist/desynth-multi-stepper.js";
24
- import { DesynthPaper as DesynthPaperElement } from "@desynth/web-components/dist/desynth-paper.js";
25
- import { DesynthRating as DesynthRatingElement } from "@desynth/web-components/dist/desynth-rating.js";
26
- import { DesynthRenderer as DesynthRendererElement } from "@desynth/web-components/dist/desynth-renderer.js";
27
- import { DesynthSelect as DesynthSelectElement } from "@desynth/web-components/dist/desynth-select.js";
28
- import { DesynthStepStepper as DesynthStepStepperElement } from "@desynth/web-components/dist/desynth-step-stepper.js";
29
- import { DesynthSwitch as DesynthSwitchElement } from "@desynth/web-components/dist/desynth-switch.js";
30
- import { DesynthTable as DesynthTableElement } from "@desynth/web-components/dist/desynth-table.js";
31
- import { DesynthTextArea as DesynthTextAreaElement } from "@desynth/web-components/dist/desynth-text-area.js";
32
- import { DesynthTextInput as DesynthTextInputElement } from "@desynth/web-components/dist/desynth-text-input.js";
33
- import { DesynthTooltip as DesynthTooltipElement } from "@desynth/web-components/dist/desynth-tooltip.js";
34
- import { HorizontalCards as HorizontalCardsElement } from "@desynth/web-components/dist/horizontal-cards.js";
35
- import { HtmlEditor as HtmlEditorElement } from "@desynth/web-components/dist/html-editor.js";
36
- import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
37
- export type DesynthAccordionEvents = NonNullable<unknown>;
38
- export declare const DesynthAccordion: StencilReactComponent<DesynthAccordionElement, DesynthAccordionEvents>;
39
- export type DesynthAlertEvents = {
40
- onHandleOpen: EventName<CustomEvent<void>>;
41
- onHandleClose: EventName<CustomEvent<void>>;
42
- onHandleBeforeClose: EventName<DesynthAlertCustomEvent<BeforeCloseAlertEventDetail>>;
43
- };
44
- export declare const DesynthAlert: StencilReactComponent<DesynthAlertElement, DesynthAlertEvents>;
45
- export type DesynthBreadcrumbEvents = {
46
- onHandleInput: EventName<DesynthBreadcrumbCustomEvent<HTMLInputElement>>;
47
- onHandleFocus: EventName<CustomEvent<void>>;
48
- onHandleBlur: EventName<CustomEvent<void>>;
49
- };
50
- export declare const DesynthBreadcrumb: StencilReactComponent<DesynthBreadcrumbElement, DesynthBreadcrumbEvents>;
51
- export type DesynthButtonEvents = {
52
- onHandleClick: EventName<CustomEvent<void>>;
53
- onHandleFocus: EventName<CustomEvent<void>>;
54
- onHandleBlur: EventName<CustomEvent<void>>;
55
- };
56
- export declare const DesynthButton: StencilReactComponent<DesynthButtonElement, DesynthButtonEvents>;
57
- export type DesynthButtonSliderEvents = NonNullable<unknown>;
58
- export declare const DesynthButtonSlider: StencilReactComponent<DesynthButtonSliderElement, DesynthButtonSliderEvents>;
59
- export type DesynthCardEvents = NonNullable<unknown>;
60
- export declare const DesynthCard: StencilReactComponent<DesynthCardElement, DesynthCardEvents>;
61
- export type DesynthCheckboxEvents = {
62
- onHandleClick: EventName<DesynthCheckboxCustomEvent<CheckedChangeEventValue>>;
63
- };
64
- export declare const DesynthCheckbox: StencilReactComponent<DesynthCheckboxElement, DesynthCheckboxEvents>;
65
- export type DesynthDatePickerEvents = {
66
- onDateChanged: EventName<DesynthDatePickerCustomEvent<InputChangeEventValue>>;
67
- };
68
- export declare const DesynthDatePicker: StencilReactComponent<DesynthDatePickerElement, DesynthDatePickerEvents>;
69
- export type DesynthDividerEvents = NonNullable<unknown>;
70
- export declare const DesynthDivider: StencilReactComponent<DesynthDividerElement, DesynthDividerEvents>;
71
- export type DesynthDrawerEvents = {
72
- onHandleClick: EventName<CustomEvent<void>>;
73
- onHandleFocus: EventName<CustomEvent<void>>;
74
- onHandleClose: EventName<CustomEvent<void>>;
75
- };
76
- export declare const DesynthDrawer: StencilReactComponent<DesynthDrawerElement, DesynthDrawerEvents>;
77
- export type DesynthDropFileEvents = {
78
- onFilesDropped: EventName<DesynthDropFileCustomEvent<File[]>>;
79
- };
80
- export declare const DesynthDropFile: StencilReactComponent<DesynthDropFileElement, DesynthDropFileEvents>;
81
- export type DesynthFormEvents = {
82
- onClickSubmit: EventName<CustomEvent<void>>;
83
- onClickClear: EventName<CustomEvent<void>>;
84
- onHandleChange: EventName<DesynthFormCustomEvent<IFormInput>>;
85
- };
86
- export declare const DesynthForm: StencilReactComponent<DesynthFormElement, DesynthFormEvents>;
87
- export type DesynthGridEvents = NonNullable<unknown>;
88
- export declare const DesynthGrid: StencilReactComponent<DesynthGridElement, DesynthGridEvents>;
89
- export type DesynthHeaderEvents = {
90
- onHandleClick: EventName<CustomEvent<void>>;
91
- onHandleFocus: EventName<CustomEvent<void>>;
92
- onHandleBlur: EventName<CustomEvent<void>>;
93
- };
94
- export declare const DesynthHeader: StencilReactComponent<DesynthHeaderElement, DesynthHeaderEvents>;
95
- export type DesynthListEvents = {
96
- onItemClicked: EventName<DesynthListCustomEvent<ListItem>>;
97
- };
98
- export declare const DesynthList: StencilReactComponent<DesynthListElement, DesynthListEvents>;
99
- export type DesynthLoaderEvents = NonNullable<unknown>;
100
- export declare const DesynthLoader: StencilReactComponent<DesynthLoaderElement, DesynthLoaderEvents>;
101
- export type DesynthModalEvents = {
102
- onHandleOpen: EventName<CustomEvent<void>>;
103
- onHandleClose: EventName<CustomEvent<void>>;
104
- onHandleBeforeClose: EventName<DesynthModalCustomEvent<BeforeCloseEventDetail>>;
105
- };
106
- export declare const DesynthModal: StencilReactComponent<DesynthModalElement, DesynthModalEvents>;
107
- export type DesynthMultiStepperEvents = {
108
- onHandleSubmit: EventName<CustomEvent<void>>;
109
- };
110
- export declare const DesynthMultiStepper: StencilReactComponent<DesynthMultiStepperElement, DesynthMultiStepperEvents>;
111
- export type DesynthPaperEvents = NonNullable<unknown>;
112
- export declare const DesynthPaper: StencilReactComponent<DesynthPaperElement, DesynthPaperEvents>;
113
- export type DesynthRatingEvents = {
114
- onHandleChange: EventName<DesynthRatingCustomEvent<TextInputChangeEventValue>>;
115
- };
116
- export declare const DesynthRating: StencilReactComponent<DesynthRatingElement, DesynthRatingEvents>;
117
- export type DesynthRendererEvents = NonNullable<unknown>;
118
- export declare const DesynthRenderer: StencilReactComponent<DesynthRendererElement, DesynthRendererEvents>;
119
- export type DesynthSelectEvents = {
120
- onHandleChange: EventName<DesynthSelectCustomEvent<Options>>;
121
- onHandleInput: EventName<DesynthSelectCustomEvent<HTMLInputElement>>;
122
- onHandleFocus: EventName<CustomEvent<void>>;
123
- };
124
- export declare const DesynthSelect: StencilReactComponent<DesynthSelectElement, DesynthSelectEvents>;
125
- export type DesynthStepStepperEvents = NonNullable<unknown>;
126
- export declare const DesynthStepStepper: StencilReactComponent<DesynthStepStepperElement, DesynthStepStepperEvents>;
127
- export type DesynthSwitchEvents = {
128
- onHandleClick: EventName<DesynthSwitchCustomEvent<SwitchChangeEventValue>>;
129
- onHandleInput: EventName<DesynthSwitchCustomEvent<HTMLInputElement>>;
130
- onHandleFocus: EventName<CustomEvent<void>>;
131
- onHandleBlur: EventName<CustomEvent<void>>;
132
- };
133
- export declare const DesynthSwitch: StencilReactComponent<DesynthSwitchElement, DesynthSwitchEvents>;
134
- export type DesynthTableEvents = {
135
- onChangeRowsPerPage: EventName<CustomEvent<number>>;
136
- onGetDataNextPage: EventName<CustomEvent<null>>;
137
- onRowEvent: EventName<CustomEvent<any>>;
138
- onDropEvent: EventName<CustomEvent<any>>;
139
- };
140
- export declare const DesynthTable: StencilReactComponent<DesynthTableElement, DesynthTableEvents>;
141
- export type DesynthTextAreaEvents = {
142
- onHandleChange: EventName<DesynthTextAreaCustomEvent<InputChangeEventValue>>;
143
- onHandleInput: EventName<DesynthTextAreaCustomEvent<HTMLInputElement>>;
144
- onHandleFocus: EventName<CustomEvent<void>>;
145
- onHandleBlur: EventName<CustomEvent<void>>;
146
- };
147
- export declare const DesynthTextArea: StencilReactComponent<DesynthTextAreaElement, DesynthTextAreaEvents>;
148
- export type DesynthTextInputEvents = {
149
- onHandleChange: EventName<DesynthTextInputCustomEvent<TextInputChangeEventValue>>;
150
- onHandleInput: EventName<DesynthTextInputCustomEvent<HTMLInputElement>>;
151
- onHandleFocus: EventName<CustomEvent<void>>;
152
- onHandleBlur: EventName<CustomEvent<void>>;
153
- };
154
- export declare const DesynthTextInput: StencilReactComponent<DesynthTextInputElement, DesynthTextInputEvents>;
155
- export type DesynthTooltipEvents = NonNullable<unknown>;
156
- export declare const DesynthTooltip: StencilReactComponent<DesynthTooltipElement, DesynthTooltipEvents>;
157
- export type HorizontalCardsEvents = NonNullable<unknown>;
158
- export declare const HorizontalCards: StencilReactComponent<HorizontalCardsElement, HorizontalCardsEvents>;
159
- export type HtmlEditorEvents = {
160
- onHtmlChanged: EventName<CustomEvent<string>>;
161
- };
162
- export declare const HtmlEditor: StencilReactComponent<HtmlEditorElement, HtmlEditorEvents>;