@nectary/components 5.0.3 → 5.0.4

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.
@@ -85,6 +85,7 @@ class Accordion extends NectaryElement {
85
85
  }
86
86
  #onChangeReactHandler = (e) => {
87
87
  getReactEventHandler(this, "on-change")?.(e);
88
+ getReactEventHandler(this, "onChange")?.(e);
88
89
  };
89
90
  }
90
91
  defineCustomElement("sinch-accordion", Accordion);
package/bundle.js CHANGED
@@ -586,6 +586,7 @@ class Accordion extends NectaryElement {
586
586
  }
587
587
  #onChangeReactHandler = (e) => {
588
588
  getReactEventHandler(this, "on-change")?.(e);
589
+ getReactEventHandler(this, "onChange")?.(e);
589
590
  };
590
591
  }
591
592
  defineCustomElement("sinch-accordion", Accordion);
@@ -1567,6 +1568,7 @@ class RichText extends NectaryElement {
1567
1568
  }
1568
1569
  #onClickReactHandler = (e) => {
1569
1570
  getReactEventHandler(this, "on-element-click")?.(e);
1571
+ getReactEventHandler(this, "onElementClick")?.(e);
1570
1572
  };
1571
1573
  }
1572
1574
  defineCustomElement("sinch-rich-text", RichText);
@@ -2567,6 +2569,7 @@ class Checkbox extends NectaryElement {
2567
2569
  };
2568
2570
  #onChangeReactHandler = (e) => {
2569
2571
  getReactEventHandler(this, "on-change")?.(e);
2572
+ getReactEventHandler(this, "onChange")?.(e);
2570
2573
  };
2571
2574
  #onFocusReactHandler = (e) => {
2572
2575
  getReactEventHandler(this, "on-focus")?.(e);
@@ -3183,6 +3186,7 @@ class Pop extends NectaryElement {
3183
3186
  };
3184
3187
  #onCloseReactHandler = (e) => {
3185
3188
  getReactEventHandler(this, "on-close")?.(e);
3189
+ getReactEventHandler(this, "onClose")?.(e);
3186
3190
  };
3187
3191
  #dispatchCloseEvent() {
3188
3192
  this.dispatchEvent(
@@ -3641,9 +3645,11 @@ class Tooltip extends NectaryElement {
3641
3645
  }
3642
3646
  #onShowReactHandler = () => {
3643
3647
  getReactEventHandler(this, "on-show")?.();
3648
+ getReactEventHandler(this, "onShow")?.();
3644
3649
  };
3645
3650
  #onHideReactHandler = () => {
3646
3651
  getReactEventHandler(this, "on-hide")?.();
3652
+ getReactEventHandler(this, "onHide")?.();
3647
3653
  };
3648
3654
  }
3649
3655
  defineCustomElement("sinch-tooltip", Tooltip);
@@ -3989,6 +3995,7 @@ class ColorMenu extends NectaryElement {
3989
3995
  }
3990
3996
  #onChangeReactHandler = (e) => {
3991
3997
  getReactEventHandler(this, "on-change")?.(e);
3998
+ getReactEventHandler(this, "onChange")?.(e);
3992
3999
  };
3993
4000
  }
3994
4001
  defineCustomElement("sinch-color-menu", ColorMenu);
@@ -4528,6 +4535,7 @@ class DatePicker extends NectaryElement {
4528
4535
  }
4529
4536
  #onChangeReactHandler = (e) => {
4530
4537
  getReactEventHandler(this, "on-change")?.(e);
4538
+ getReactEventHandler(this, "onChange")?.(e);
4531
4539
  };
4532
4540
  }
4533
4541
  defineCustomElement("sinch-date-picker", DatePicker);
@@ -4695,6 +4703,7 @@ class Dialog extends NectaryElement {
4695
4703
  };
4696
4704
  #onCloseReactHandler = (e) => {
4697
4705
  getReactEventHandler(this, "on-close")?.(e);
4706
+ getReactEventHandler(this, "onClose")?.(e);
4698
4707
  };
4699
4708
  #dispatchCloseEvent(detail, cancelable) {
4700
4709
  this.dispatchEvent(new CustomEvent("-close", { detail, cancelable }));
@@ -5682,6 +5691,7 @@ class Input extends NectaryElement {
5682
5691
  }
5683
5692
  #onChangeReactHandler = (e) => {
5684
5693
  getReactEventHandler(this, "on-change")?.(e);
5694
+ getReactEventHandler(this, "onChange")?.(e);
5685
5695
  };
5686
5696
  #onFocusReactHandler = () => {
5687
5697
  getReactEventHandler(this, "on-focus")?.();
@@ -5977,6 +5987,7 @@ class Tabs extends NectaryElement {
5977
5987
  }
5978
5988
  #onChangeReactHandler = (e) => {
5979
5989
  getReactEventHandler(this, "on-change")?.(e);
5990
+ getReactEventHandler(this, "onChange")?.(e);
5980
5991
  };
5981
5992
  }
5982
5993
  defineCustomElement("sinch-tabs", Tabs);
@@ -6209,6 +6220,7 @@ class EmojiPicker extends NectaryElement {
6209
6220
  };
6210
6221
  #onChangeReactHandler = (e) => {
6211
6222
  getReactEventHandler(this, "on-change")?.(e);
6223
+ getReactEventHandler(this, "onChange")?.(e);
6212
6224
  };
6213
6225
  get focusable() {
6214
6226
  return true;
@@ -6605,9 +6617,11 @@ class FilePicker extends NectaryElement {
6605
6617
  };
6606
6618
  #onChangeReactHandler = (e) => {
6607
6619
  getReactEventHandler(this, "on-change")?.(e);
6620
+ getReactEventHandler(this, "onChange")?.(e);
6608
6621
  };
6609
6622
  #onInvalidReactHandler = (e) => {
6610
6623
  getReactEventHandler(this, "on-invalid")?.(e);
6624
+ getReactEventHandler(this, "onInvalid")?.(e);
6611
6625
  };
6612
6626
  }
6613
6627
  defineCustomElement("sinch-file-picker", FilePicker);
@@ -6850,9 +6864,11 @@ class FileDrop extends NectaryElement {
6850
6864
  };
6851
6865
  #onChangeReactHandler = (e) => {
6852
6866
  getReactEventHandler(this, "on-change")?.(e);
6867
+ getReactEventHandler(this, "onChange")?.(e);
6853
6868
  };
6854
6869
  #onInvalidReactHandler = (e) => {
6855
6870
  getReactEventHandler(this, "on-invalid")?.(e);
6871
+ getReactEventHandler(this, "onInvalid")?.(e);
6856
6872
  };
6857
6873
  #dispatchChangeEvent(files) {
6858
6874
  this.dispatchEvent(
@@ -7159,9 +7175,11 @@ class HelpTooltip extends NectaryElement {
7159
7175
  };
7160
7176
  #onTooltipShowReactHandler = () => {
7161
7177
  getReactEventHandler(this, "on-show")?.();
7178
+ getReactEventHandler(this, "onShow")?.();
7162
7179
  };
7163
7180
  #onTooltipHideReactHandler = () => {
7164
7181
  getReactEventHandler(this, "on-hide")?.();
7182
+ getReactEventHandler(this, "onHide")?.();
7165
7183
  };
7166
7184
  }
7167
7185
  defineCustomElement("sinch-help-tooltip", HelpTooltip);
@@ -7420,6 +7438,7 @@ class Pagination extends NectaryElement {
7420
7438
  }
7421
7439
  #onChangeReactHandler = (e) => {
7422
7440
  getReactEventHandler(this, "on-change")?.(e);
7441
+ getReactEventHandler(this, "onChange")?.(e);
7423
7442
  };
7424
7443
  get focusable() {
7425
7444
  return true;
@@ -7534,6 +7553,7 @@ class PersistentOverlay extends NectaryElement {
7534
7553
  }
7535
7554
  #onVisibilityAlteredReactHandler = (e) => {
7536
7555
  getReactEventHandler(this, "on-visibility-altered")?.(e);
7556
+ getReactEventHandler(this, "onVisibilityAltered")?.(e);
7537
7557
  };
7538
7558
  }
7539
7559
  defineCustomElement("sinch-persistent-overlay", PersistentOverlay);
@@ -7826,6 +7846,7 @@ class ProgressStepper extends NectaryElement {
7826
7846
  };
7827
7847
  #onChangeReactHandler = (e) => {
7828
7848
  getReactEventHandler(this, "on-change")?.(e);
7849
+ getReactEventHandler(this, "onChange")?.(e);
7829
7850
  };
7830
7851
  }
7831
7852
  defineCustomElement("sinch-progress-stepper", ProgressStepper);
@@ -8147,6 +8168,7 @@ class Radio extends NectaryElement {
8147
8168
  }
8148
8169
  #onChangeReactHandler = (e) => {
8149
8170
  getReactEventHandler(this, "on-change")?.(e);
8171
+ getReactEventHandler(this, "onChange")?.(e);
8150
8172
  };
8151
8173
  }
8152
8174
  defineCustomElement("sinch-radio", Radio);
@@ -10282,6 +10304,7 @@ class RichTextarea extends NectaryElement {
10282
10304
  };
10283
10305
  #onChangeReactHandler = (e) => {
10284
10306
  getReactEventHandler(this, "on-change")?.(e);
10307
+ getReactEventHandler(this, "onChange")?.(e);
10285
10308
  };
10286
10309
  #onFocusReactHandler = () => {
10287
10310
  getReactEventHandler(this, "on-focus")?.();
@@ -10291,6 +10314,7 @@ class RichTextarea extends NectaryElement {
10291
10314
  };
10292
10315
  #onSelectionReactHandler = (e) => {
10293
10316
  getReactEventHandler(this, "on-selection")?.(e);
10317
+ getReactEventHandler(this, "onSelection")?.(e);
10294
10318
  };
10295
10319
  }
10296
10320
  defineCustomElement("sinch-rich-textarea", RichTextarea);
@@ -10350,6 +10374,7 @@ class SegmentCollapse extends NectaryElement {
10350
10374
  };
10351
10375
  #onChangeReactHandler = (e) => {
10352
10376
  getReactEventHandler(this, "on-change")?.(e);
10377
+ getReactEventHandler(this, "onChange")?.(e);
10353
10378
  };
10354
10379
  }
10355
10380
  defineCustomElement("sinch-segment-collapse", SegmentCollapse);
@@ -10517,6 +10542,7 @@ class SegmentedControl extends NectaryElement {
10517
10542
  }
10518
10543
  #onChangeReactHandler = (e) => {
10519
10544
  getReactEventHandler(this, "on-change")?.(e);
10545
+ getReactEventHandler(this, "onChange")?.(e);
10520
10546
  };
10521
10547
  }
10522
10548
  defineCustomElement("sinch-segmented-control", SegmentedControl);
@@ -10688,6 +10714,7 @@ class SegmentedIconControl extends NectaryElement {
10688
10714
  }
10689
10715
  #onChangeReactHandler = (e) => {
10690
10716
  getReactEventHandler(this, "on-change")?.(e);
10717
+ getReactEventHandler(this, "onChange")?.(e);
10691
10718
  };
10692
10719
  }
10693
10720
  defineCustomElement("sinch-segmented-icon-control", SegmentedIconControl);
@@ -11387,9 +11414,11 @@ class SelectMenu extends NectaryElement {
11387
11414
  }
11388
11415
  #onChangeReactHandler = (e) => {
11389
11416
  getReactEventHandler(this, "on-change")?.(e);
11417
+ getReactEventHandler(this, "onChange")?.(e);
11390
11418
  };
11391
11419
  #onSearchChangeReactHandler = (e) => {
11392
11420
  getReactEventHandler(this, "on-search-change")?.(e);
11421
+ getReactEventHandler(this, "onSearchChange")?.(e);
11393
11422
  };
11394
11423
  }
11395
11424
  defineCustomElement("sinch-select-menu", SelectMenu);
@@ -12192,6 +12221,7 @@ class Textarea extends NectaryElement {
12192
12221
  }
12193
12222
  #onChangeReactHandler = (e) => {
12194
12223
  getReactEventHandler(this, "on-change")?.(e);
12224
+ getReactEventHandler(this, "onChange")?.(e);
12195
12225
  };
12196
12226
  #onFocusReactHandler = () => {
12197
12227
  getReactEventHandler(this, "on-focus")?.();
@@ -12583,6 +12613,7 @@ class TimePicker extends NectaryElement {
12583
12613
  };
12584
12614
  #onChangeReactHandler = (e) => {
12585
12615
  getReactEventHandler(this, "on-change")?.(e);
12616
+ getReactEventHandler(this, "onChange")?.(e);
12586
12617
  };
12587
12618
  }
12588
12619
  defineCustomElement("sinch-time-picker", TimePicker);
@@ -12842,6 +12873,7 @@ class Toast extends NectaryElement {
12842
12873
  }
12843
12874
  #onTimeoutReactHandler = (e) => {
12844
12875
  getReactEventHandler(this, "on-timeout")?.(e);
12876
+ getReactEventHandler(this, "onTimeout")?.(e);
12845
12877
  };
12846
12878
  }
12847
12879
  defineCustomElement("sinch-toast", Toast);
@@ -12978,6 +13010,7 @@ class Toggle extends NectaryElement {
12978
13010
  };
12979
13011
  #onChangeReactHandler = (e) => {
12980
13012
  getReactEventHandler(this, "on-change")?.(e);
13013
+ getReactEventHandler(this, "onChange")?.(e);
12981
13014
  };
12982
13015
  #onFocusReactHandler = (e) => {
12983
13016
  getReactEventHandler(this, "on-focus")?.(e);
package/checkbox/index.js CHANGED
@@ -163,6 +163,7 @@ class Checkbox extends NectaryElement {
163
163
  };
164
164
  #onChangeReactHandler = (e) => {
165
165
  getReactEventHandler(this, "on-change")?.(e);
166
+ getReactEventHandler(this, "onChange")?.(e);
166
167
  };
167
168
  #onFocusReactHandler = (e) => {
168
169
  getReactEventHandler(this, "on-focus")?.(e);
@@ -301,6 +301,7 @@ class ColorMenu extends NectaryElement {
301
301
  }
302
302
  #onChangeReactHandler = (e) => {
303
303
  getReactEventHandler(this, "on-change")?.(e);
304
+ getReactEventHandler(this, "onChange")?.(e);
304
305
  };
305
306
  }
306
307
  defineCustomElement("sinch-color-menu", ColorMenu);
@@ -410,6 +410,7 @@ class DatePicker extends NectaryElement {
410
410
  }
411
411
  #onChangeReactHandler = (e) => {
412
412
  getReactEventHandler(this, "on-change")?.(e);
413
+ getReactEventHandler(this, "onChange")?.(e);
413
414
  };
414
415
  }
415
416
  defineCustomElement("sinch-date-picker", DatePicker);
package/dialog/index.js CHANGED
@@ -130,6 +130,7 @@ class Dialog extends NectaryElement {
130
130
  };
131
131
  #onCloseReactHandler = (e) => {
132
132
  getReactEventHandler(this, "on-close")?.(e);
133
+ getReactEventHandler(this, "onClose")?.(e);
133
134
  };
134
135
  #dispatchCloseEvent(detail, cancelable) {
135
136
  this.dispatchEvent(new CustomEvent("-close", { detail, cancelable }));
@@ -146,6 +146,7 @@ class EmojiPicker extends NectaryElement {
146
146
  };
147
147
  #onChangeReactHandler = (e) => {
148
148
  getReactEventHandler(this, "on-change")?.(e);
149
+ getReactEventHandler(this, "onChange")?.(e);
149
150
  };
150
151
  get focusable() {
151
152
  return true;
@@ -192,9 +192,11 @@ class FileDrop extends NectaryElement {
192
192
  };
193
193
  #onChangeReactHandler = (e) => {
194
194
  getReactEventHandler(this, "on-change")?.(e);
195
+ getReactEventHandler(this, "onChange")?.(e);
195
196
  };
196
197
  #onInvalidReactHandler = (e) => {
197
198
  getReactEventHandler(this, "on-invalid")?.(e);
199
+ getReactEventHandler(this, "onInvalid")?.(e);
198
200
  };
199
201
  #dispatchChangeEvent(files) {
200
202
  this.dispatchEvent(
@@ -95,9 +95,11 @@ class FilePicker extends NectaryElement {
95
95
  };
96
96
  #onChangeReactHandler = (e) => {
97
97
  getReactEventHandler(this, "on-change")?.(e);
98
+ getReactEventHandler(this, "onChange")?.(e);
98
99
  };
99
100
  #onInvalidReactHandler = (e) => {
100
101
  getReactEventHandler(this, "on-invalid")?.(e);
102
+ getReactEventHandler(this, "onInvalid")?.(e);
101
103
  };
102
104
  }
103
105
  defineCustomElement("sinch-file-picker", FilePicker);
@@ -67,9 +67,11 @@ class HelpTooltip extends NectaryElement {
67
67
  };
68
68
  #onTooltipShowReactHandler = () => {
69
69
  getReactEventHandler(this, "on-show")?.();
70
+ getReactEventHandler(this, "onShow")?.();
70
71
  };
71
72
  #onTooltipHideReactHandler = () => {
72
73
  getReactEventHandler(this, "on-hide")?.();
74
+ getReactEventHandler(this, "onHide")?.();
73
75
  };
74
76
  }
75
77
  defineCustomElement("sinch-help-tooltip", HelpTooltip);
package/input/index.js CHANGED
@@ -666,6 +666,7 @@ class Input extends NectaryElement {
666
666
  }
667
667
  #onChangeReactHandler = (e) => {
668
668
  getReactEventHandler(this, "on-change")?.(e);
669
+ getReactEventHandler(this, "onChange")?.(e);
669
670
  };
670
671
  #onFocusReactHandler = () => {
671
672
  getReactEventHandler(this, "on-focus")?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nectary/components",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "files": [
5
5
  "**/*/*.css",
6
6
  "**/*/*.json",
@@ -137,6 +137,7 @@ class Pagination extends NectaryElement {
137
137
  }
138
138
  #onChangeReactHandler = (e) => {
139
139
  getReactEventHandler(this, "on-change")?.(e);
140
+ getReactEventHandler(this, "onChange")?.(e);
140
141
  };
141
142
  get focusable() {
142
143
  return true;
@@ -92,6 +92,7 @@ class PersistentOverlay extends NectaryElement {
92
92
  }
93
93
  #onVisibilityAlteredReactHandler = (e) => {
94
94
  getReactEventHandler(this, "on-visibility-altered")?.(e);
95
+ getReactEventHandler(this, "onVisibilityAltered")?.(e);
95
96
  };
96
97
  }
97
98
  defineCustomElement("sinch-persistent-overlay", PersistentOverlay);
package/pop/index.js CHANGED
@@ -379,6 +379,7 @@ class Pop extends NectaryElement {
379
379
  };
380
380
  #onCloseReactHandler = (e) => {
381
381
  getReactEventHandler(this, "on-close")?.(e);
382
+ getReactEventHandler(this, "onClose")?.(e);
382
383
  };
383
384
  #dispatchCloseEvent() {
384
385
  this.dispatchEvent(
@@ -197,6 +197,7 @@ class ProgressStepper extends NectaryElement {
197
197
  };
198
198
  #onChangeReactHandler = (e) => {
199
199
  getReactEventHandler(this, "on-change")?.(e);
200
+ getReactEventHandler(this, "onChange")?.(e);
200
201
  };
201
202
  }
202
203
  defineCustomElement("sinch-progress-stepper", ProgressStepper);
package/radio/index.js CHANGED
@@ -188,6 +188,7 @@ class Radio extends NectaryElement {
188
188
  }
189
189
  #onChangeReactHandler = (e) => {
190
190
  getReactEventHandler(this, "on-change")?.(e);
191
+ getReactEventHandler(this, "onChange")?.(e);
191
192
  };
192
193
  }
193
194
  defineCustomElement("sinch-radio", Radio);
@@ -93,6 +93,7 @@ class RichText extends NectaryElement {
93
93
  }
94
94
  #onClickReactHandler = (e) => {
95
95
  getReactEventHandler(this, "on-element-click")?.(e);
96
+ getReactEventHandler(this, "onElementClick")?.(e);
96
97
  };
97
98
  }
98
99
  defineCustomElement("sinch-rich-text", RichText);
@@ -455,6 +455,7 @@ class RichTextarea extends NectaryElement {
455
455
  };
456
456
  #onChangeReactHandler = (e) => {
457
457
  getReactEventHandler(this, "on-change")?.(e);
458
+ getReactEventHandler(this, "onChange")?.(e);
458
459
  };
459
460
  #onFocusReactHandler = () => {
460
461
  getReactEventHandler(this, "on-focus")?.();
@@ -464,6 +465,7 @@ class RichTextarea extends NectaryElement {
464
465
  };
465
466
  #onSelectionReactHandler = (e) => {
466
467
  getReactEventHandler(this, "on-selection")?.(e);
468
+ getReactEventHandler(this, "onSelection")?.(e);
467
469
  };
468
470
  }
469
471
  defineCustomElement("sinch-rich-textarea", RichTextarea);
@@ -58,6 +58,7 @@ class SegmentCollapse extends NectaryElement {
58
58
  };
59
59
  #onChangeReactHandler = (e) => {
60
60
  getReactEventHandler(this, "on-change")?.(e);
61
+ getReactEventHandler(this, "onChange")?.(e);
61
62
  };
62
63
  }
63
64
  defineCustomElement("sinch-segment-collapse", SegmentCollapse);
@@ -78,6 +78,7 @@ class SegmentedControl extends NectaryElement {
78
78
  }
79
79
  #onChangeReactHandler = (e) => {
80
80
  getReactEventHandler(this, "on-change")?.(e);
81
+ getReactEventHandler(this, "onChange")?.(e);
81
82
  };
82
83
  }
83
84
  defineCustomElement("sinch-segmented-control", SegmentedControl);
@@ -95,6 +95,7 @@ class SegmentedIconControl extends NectaryElement {
95
95
  }
96
96
  #onChangeReactHandler = (e) => {
97
97
  getReactEventHandler(this, "on-change")?.(e);
98
+ getReactEventHandler(this, "onChange")?.(e);
98
99
  };
99
100
  }
100
101
  defineCustomElement("sinch-segmented-icon-control", SegmentedIconControl);
@@ -445,9 +445,11 @@ class SelectMenu extends NectaryElement {
445
445
  }
446
446
  #onChangeReactHandler = (e) => {
447
447
  getReactEventHandler(this, "on-change")?.(e);
448
+ getReactEventHandler(this, "onChange")?.(e);
448
449
  };
449
450
  #onSearchChangeReactHandler = (e) => {
450
451
  getReactEventHandler(this, "on-search-change")?.(e);
452
+ getReactEventHandler(this, "onSearchChange")?.(e);
451
453
  };
452
454
  }
453
455
  defineCustomElement("sinch-select-menu", SelectMenu);
package/tabs/index.js CHANGED
@@ -70,6 +70,7 @@ class Tabs extends NectaryElement {
70
70
  }
71
71
  #onChangeReactHandler = (e) => {
72
72
  getReactEventHandler(this, "on-change")?.(e);
73
+ getReactEventHandler(this, "onChange")?.(e);
73
74
  };
74
75
  }
75
76
  defineCustomElement("sinch-tabs", Tabs);
package/textarea/index.js CHANGED
@@ -343,6 +343,7 @@ class Textarea extends NectaryElement {
343
343
  }
344
344
  #onChangeReactHandler = (e) => {
345
345
  getReactEventHandler(this, "on-change")?.(e);
346
+ getReactEventHandler(this, "onChange")?.(e);
346
347
  };
347
348
  #onFocusReactHandler = () => {
348
349
  getReactEventHandler(this, "on-focus")?.();
@@ -325,6 +325,7 @@ class TimePicker extends NectaryElement {
325
325
  };
326
326
  #onChangeReactHandler = (e) => {
327
327
  getReactEventHandler(this, "on-change")?.(e);
328
+ getReactEventHandler(this, "onChange")?.(e);
328
329
  };
329
330
  }
330
331
  defineCustomElement("sinch-time-picker", TimePicker);
package/toast/index.js CHANGED
@@ -82,6 +82,7 @@ class Toast extends NectaryElement {
82
82
  }
83
83
  #onTimeoutReactHandler = (e) => {
84
84
  getReactEventHandler(this, "on-timeout")?.(e);
85
+ getReactEventHandler(this, "onTimeout")?.(e);
85
86
  };
86
87
  }
87
88
  defineCustomElement("sinch-toast", Toast);
package/toggle/index.js CHANGED
@@ -134,6 +134,7 @@ class Toggle extends NectaryElement {
134
134
  };
135
135
  #onChangeReactHandler = (e) => {
136
136
  getReactEventHandler(this, "on-change")?.(e);
137
+ getReactEventHandler(this, "onChange")?.(e);
137
138
  };
138
139
  #onFocusReactHandler = (e) => {
139
140
  getReactEventHandler(this, "on-focus")?.(e);
package/tooltip/index.js CHANGED
@@ -277,9 +277,11 @@ class Tooltip extends NectaryElement {
277
277
  }
278
278
  #onShowReactHandler = () => {
279
279
  getReactEventHandler(this, "on-show")?.();
280
+ getReactEventHandler(this, "onShow")?.();
280
281
  };
281
282
  #onHideReactHandler = () => {
282
283
  getReactEventHandler(this, "on-hide")?.();
284
+ getReactEventHandler(this, "onHide")?.();
283
285
  };
284
286
  }
285
287
  defineCustomElement("sinch-tooltip", Tooltip);
package/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ReactifyEvents, WebComponentReactBaseProp, SafeSelect, CamelCaseify, RemoveReadonly, SetAttributes, ExtendEventListeners } from './utils/adapters';
1
+ import type { ReactifyEvents, WebComponentReactBaseProp, SafeSelect, CamelCaseify, RemoveReadonly, SetAttributes, ExtendEventListeners, PatchReactEvents } from './utils/adapters';
2
2
  import type { CSSProperties } from 'react';
3
3
  export type TRect = {
4
4
  x: number;
@@ -7,7 +7,7 @@ export type TRect = {
7
7
  height: number;
8
8
  };
9
9
  export type NectaryComponentVanillaByType<T extends NectaryComponentMap[keyof NectaryComponentMap]> = Omit<HTMLElement, 'addEventListener' | 'removeEventListener'> & ExtendEventListeners<Required<SafeSelect<T, 'events'>>> & SetAttributes<Required<RemoveReadonly<SafeSelect<T, 'props'>>>> & Required<CamelCaseify<SafeSelect<T, 'props'>>> & Required<SafeSelect<T, 'methods'>>;
10
- export type NectaryComponentReactByType<T extends NectaryComponentMap[keyof NectaryComponentMap]> = WebComponentReactBaseProp<NectaryComponentVanillaByType<T>> & ReactifyEvents<SafeSelect<T, 'events'>> & RemoveReadonly<SafeSelect<T, 'props'>> & {
10
+ export type NectaryComponentReactByType<T extends NectaryComponentMap[keyof NectaryComponentMap]> = PatchReactEvents<WebComponentReactBaseProp<NectaryComponentVanillaByType<T>>, ReactifyEvents<SafeSelect<T, 'events'>>> & RemoveReadonly<SafeSelect<T, 'props'>> & {
11
11
  style?: Partial<SafeSelect<T, 'style'>> & CSSProperties;
12
12
  };
13
13
  export type NectaryComponentVanilla<K extends keyof NectaryComponentMap> = NectaryComponentVanillaByType<NectaryComponentMap[K]>;
@@ -27,4 +27,5 @@ export type ReactifyEvents<T> = {
27
27
  export type WebComponentReactBaseProp<T = HTMLElement> = Omit<DetailedHTMLProps<HTMLAttributes<T>, T>, 'className' | 'style'> & {
28
28
  class?: string;
29
29
  };
30
+ export type PatchReactEvents<T, Events> = Omit<T, keyof CamelCaseify<Events>> & Partial<CamelCaseify<Events>> & Partial<Events>;
30
31
  export {};