@warp-ds/elements 2.10.0-next.10 → 2.10.0-next.11

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/dist/index.d.ts CHANGED
@@ -70,6 +70,15 @@ export type ScopedElements<
70
70
  [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
71
71
  };
72
72
 
73
+ /**
74
+ * A generic type for strongly typing custom events with their targets
75
+ * @template T - The type of the event target (extends EventTarget)
76
+ * @template D - The type of the detail payload for the custom event
77
+ */
78
+ type TypedEvent<T extends EventTarget, E = Event> = E & {
79
+ target: T;
80
+ };
81
+
73
82
  type BaseProps<T extends HTMLElement> = {
74
83
  /** Content added between the opening and closing tags of the element */
75
84
  children?: any;
@@ -93,6 +102,8 @@ type BaseProps<T extends HTMLElement> = {
93
102
  key?: string | number;
94
103
  /** Specifies the language of the element. */
95
104
  lang?: string;
105
+ /** Defines the element's semantic role for accessibility APIs. */
106
+ role?: string;
96
107
  /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
97
108
  part?: string;
98
109
  /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
@@ -115,7 +126,113 @@ type BaseProps<T extends HTMLElement> = {
115
126
  popovertargetaction?: "show" | "hide" | "toggle";
116
127
  };
117
128
 
118
- type BaseEvents = {};
129
+ type BaseEvents = {
130
+ // Mouse Events
131
+
132
+ /** Triggered when the element is clicked by the user by mouse or keyboard. */
133
+ onClick?: (event: MouseEvent) => void;
134
+ /** Fired when the context menu is triggered, often by right-clicking. */
135
+ onContextMenu?: (event: MouseEvent) => void;
136
+ /** Fired when the element is double-clicked. */
137
+ onDoubleClick?: (event: MouseEvent) => void;
138
+ /** Fired repeatedly as the draggable element is being dragged. */
139
+ onDrag?: (event: DragEvent) => void;
140
+ /** Fired when the dragging of a draggable element is finished. */
141
+ onDragEnd?: (event: DragEvent) => void;
142
+ /** Fired when a dragged element or text selection enters a valid drop target. */
143
+ onDragEnter?: (event: DragEvent) => void;
144
+ /** Fired when a dragged element or text selection leaves a valid drop target. */
145
+ onDragExit?: (event: DragEvent) => void;
146
+ /** Fired when a dragged element or text selection leaves a valid drop target. */
147
+ onDragLeave?: (event: DragEvent) => void;
148
+ /** Fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds). */
149
+ onDragOver?: (event: DragEvent) => void;
150
+ /** Fired when a draggable element starts being dragged. */
151
+ onDragStart?: (event: DragEvent) => void;
152
+ /** Fired when a dragged element is dropped onto a drop target. */
153
+ onDrop?: (event: DragEvent) => void;
154
+ /** Fired when a mouse button is pressed down on the element. */
155
+ onMouseDown?: (event: MouseEvent) => void;
156
+ /** Fired when the mouse cursor enters the element. */
157
+ onMouseEnter?: (event: MouseEvent) => void;
158
+ /** Triggered when the mouse cursor leaves the element. */
159
+ onMouseLeave?: (event: MouseEvent) => void;
160
+ /** Fired at an element when a pointing device (usually a mouse) is moved while the cursor's hotspot is inside it. */
161
+ onMouseMove?: (event: MouseEvent) => void;
162
+ /** Fired at an Element when a pointing device (usually a mouse) is used to move the cursor so that it is no longer contained within the element or one of its children. */
163
+ onMouseOut?: (event: MouseEvent) => void;
164
+ /** Fired at an Element when a pointing device (such as a mouse or trackpad) is used to move the cursor onto the element or one of its child elements. */
165
+ onMouseOver?: (event: MouseEvent) => void;
166
+ /** Fired when a mouse button is released on the element. */
167
+ onMouseUp?: (event: MouseEvent) => void;
168
+
169
+ // Keyboard Events
170
+
171
+ /** Fired when a key is pressed down. */
172
+ onKeyDown?: (event: KeyboardEvent) => void;
173
+ /** Fired when a key is released.. */
174
+ onKeyUp?: (event: KeyboardEvent) => void;
175
+ /** Fired when a key is pressed down. */
176
+ onKeyPressed?: (event: KeyboardEvent) => void;
177
+
178
+ // Focus Events
179
+
180
+ /** Fired when the element receives focus, often triggered by tab navigation. */
181
+ onFocus?: (event: FocusEvent) => void;
182
+ /** Fired when the element loses focus. */
183
+ onBlur?: (event: FocusEvent) => void;
184
+
185
+ // Form Events
186
+
187
+ /** Fired when the value of an input element changes, such as with text inputs or select elements. */
188
+ onChange?: (event: Event) => void;
189
+ /** Fires when the value of an <input>, <select>, or <textarea> element has been changed. */
190
+ onInput?: (event: Event) => void;
191
+ /** Fired when a form is submitted, usually on pressing Enter in a text input. */
192
+ onSubmit?: (event: Event) => void;
193
+ /** Fired when a form is reset. */
194
+ onReset?: (event: Event) => void;
195
+
196
+ // UI Events
197
+
198
+ /** Fired when the content of an element is scrolled. */
199
+ onScroll?: (event: UIEvent) => void;
200
+
201
+ // Wheel Events
202
+
203
+ /** Fired when the mouse wheel is scrolled while the element is focused. */
204
+ onWheel?: (event: WheelEvent) => void;
205
+
206
+ // Animation Events
207
+
208
+ /** Fired when a CSS animation starts. */
209
+ onAnimationStart?: (event: AnimationEvent) => void;
210
+ /** Fired when a CSS animation completes. */
211
+ onAnimationEnd?: (event: AnimationEvent) => void;
212
+ /** Fired when a CSS animation completes one iteration. */
213
+ onAnimationIteration?: (event: AnimationEvent) => void;
214
+
215
+ // Transition Events
216
+
217
+ /** Fired when a CSS transition has completed. */
218
+ onTransitionEnd?: (event: TransitionEvent) => void;
219
+
220
+ // Media Events
221
+
222
+ /** Fired when an element (usually an image) finishes loading */
223
+ onLoad?: (event: Event) => void;
224
+ /** Fired when an error occurs during the loading of an element, like an image not being found. */
225
+ onError?: (event: Event) => void;
226
+
227
+ // Clipboard Events
228
+
229
+ /** Fires when the user initiates a copy action through the browser's user interface. */
230
+ onCopy?: (event: ClipboardEvent) => void;
231
+ /** Fired when the user has initiated a "cut" action through the browser's user interface. */
232
+ onCut?: (event: ClipboardEvent) => void;
233
+ /** Fired when the user has initiated a "paste" action through the browser's user interface. */
234
+ onPaste?: (event: ClipboardEvent) => void;
235
+ };
119
236
 
120
237
  export type WarpIconProps = {
121
238
  /** Icon filename (without .svg) */
@@ -776,6 +893,9 @@ When set, the card becomes keyboard focusable and Enter or Space triggers a clic
776
893
  textContent?: string | number;
777
894
  };
778
895
 
896
+ /** `WarpCheckbox` component event */
897
+ export type WarpCheckboxElementEvent<E = Event> = TypedEvent<WarpCheckbox, E>;
898
+
779
899
  export type WarpCheckboxProps = {
780
900
  /** The name of the checkbox.
781
901
 
@@ -809,7 +929,7 @@ Use this to show an externally managed validation error. Required validation als
809
929
  input?: WarpCheckbox["input"];
810
930
 
811
931
  /** */
812
- onchange?: (e: Event) => void;
932
+ onchange?: (e: WarpCheckboxElementEvent) => void;
813
933
  };
814
934
 
815
935
  export type WarpCheckboxSolidJsProps = {
@@ -844,7 +964,7 @@ Use this to show an externally managed validation error. Required validation als
844
964
  /** */
845
965
  "prop:input"?: WarpCheckbox["input"];
846
966
  /** */
847
- "on:change"?: (e: Event) => void;
967
+ "on:change"?: (e: WarpCheckboxElementEvent) => void;
848
968
 
849
969
  /** Set the innerHTML of the element */
850
970
  innerHTML?: string;
@@ -1304,6 +1424,9 @@ export type WarpExpandableSolidJsProps = {
1304
1424
  textContent?: string | number;
1305
1425
  };
1306
1426
 
1427
+ /** `WarpModal` component event */
1428
+ export type WarpModalElementEvent<E = Event> = TypedEvent<WarpModal, E>;
1429
+
1307
1430
  export type WarpModalProps = {
1308
1431
  /** Controls if the modal should show or hide.
1309
1432
 
@@ -1319,9 +1442,9 @@ You can also call the `open()` and `close()` methods. */
1319
1442
  ignoreBackdropClicks?: WarpModal["ignoreBackdropClicks"];
1320
1443
 
1321
1444
  /** */
1322
- onshown?: (e: CustomEvent) => void;
1445
+ onshown?: (e: WarpModalElementEvent) => void;
1323
1446
  /** */
1324
- onhidden?: (e: CustomEvent) => void;
1447
+ onhidden?: (e: WarpModalElementEvent) => void;
1325
1448
  };
1326
1449
 
1327
1450
  export type WarpModalSolidJsProps = {
@@ -1338,9 +1461,9 @@ You can also call the `open()` and `close()` methods. */
1338
1461
  /** Ignores clicks to the backdrop when set */
1339
1462
  "prop:ignoreBackdropClicks"?: WarpModal["ignoreBackdropClicks"];
1340
1463
  /** */
1341
- "on:shown"?: (e: CustomEvent) => void;
1464
+ "on:shown"?: (e: WarpModalElementEvent) => void;
1342
1465
  /** */
1343
- "on:hidden"?: (e: CustomEvent) => void;
1466
+ "on:hidden"?: (e: WarpModalElementEvent) => void;
1344
1467
 
1345
1468
  /** Set the innerHTML of the element */
1346
1469
  innerHTML?: string;
@@ -1357,6 +1480,12 @@ export type WarpModalFooterSolidJsProps = {
1357
1480
  textContent?: string | number;
1358
1481
  };
1359
1482
 
1483
+ /** `WarpModalHeader` component event */
1484
+ export type WarpModalHeaderElementEvent<E = Event> = TypedEvent<
1485
+ WarpModalHeader,
1486
+ E
1487
+ >;
1488
+
1360
1489
  export type WarpModalHeaderProps = {
1361
1490
  /** A short but descriptive title for the modal */
1362
1491
  title?: WarpModalHeader["title"];
@@ -1368,7 +1497,7 @@ export type WarpModalHeaderProps = {
1368
1497
  noClose?: WarpModalHeader["noClose"];
1369
1498
 
1370
1499
  /** */
1371
- onbackClicked?: (e: CustomEvent) => void;
1500
+ onbackClicked?: (e: WarpModalHeaderElementEvent) => void;
1372
1501
  };
1373
1502
 
1374
1503
  export type WarpModalHeaderSolidJsProps = {
@@ -1381,7 +1510,7 @@ export type WarpModalHeaderSolidJsProps = {
1381
1510
  /** Lets you hide the close button in the header */
1382
1511
  "prop:noClose"?: WarpModalHeader["noClose"];
1383
1512
  /** */
1384
- "on:backClicked"?: (e: CustomEvent) => void;
1513
+ "on:backClicked"?: (e: WarpModalHeaderElementEvent) => void;
1385
1514
 
1386
1515
  /** Set the innerHTML of the element */
1387
1516
  innerHTML?: string;
@@ -1416,6 +1545,12 @@ export type WarpPageIndicatorSolidJsProps = {
1416
1545
  textContent?: string | number;
1417
1546
  };
1418
1547
 
1548
+ /** `WarpPagination` component event */
1549
+ export type WarpPaginationElementEvent<E = Event> = TypedEvent<
1550
+ WarpPagination,
1551
+ E
1552
+ >;
1553
+
1419
1554
  export type WarpPaginationProps = {
1420
1555
  /** The base URL used to construct page links, for example `/search?page=`.
1421
1556
 
@@ -1437,7 +1572,7 @@ The page number is appended to this URL. */
1437
1572
  visiblePages?: WarpPagination["visiblePages"];
1438
1573
 
1439
1574
  /** Triggered when a link in the pagination is clicked. Contains the page number in `string` form. */
1440
- "onpage-click"?: (e: CustomEvent) => void;
1575
+ "onpage-click"?: (e: WarpPaginationElementEvent) => void;
1441
1576
  };
1442
1577
 
1443
1578
  export type WarpPaginationSolidJsProps = {
@@ -1460,7 +1595,7 @@ The page number is appended to this URL. */
1460
1595
  /** The maximum number of page numbers visible. */
1461
1596
  "prop:visiblePages"?: WarpPagination["visiblePages"];
1462
1597
  /** Triggered when a link in the pagination is clicked. Contains the page number in `string` form. */
1463
- "on:page-click"?: (e: CustomEvent) => void;
1598
+ "on:page-click"?: (e: WarpPaginationElementEvent) => void;
1464
1599
 
1465
1600
  /** Set the innerHTML of the element */
1466
1601
  innerHTML?: string;
@@ -1468,6 +1603,9 @@ The page number is appended to this URL. */
1468
1603
  textContent?: string | number;
1469
1604
  };
1470
1605
 
1606
+ /** `WarpPill` component event */
1607
+ export type WarpPillElementEvent<E = Event> = TypedEvent<WarpPill, E>;
1608
+
1471
1609
  export type WarpPillProps = {
1472
1610
  /** Whether the pill should be removable via a close button. */
1473
1611
  "can-close"?: WarpPill["canClose"];
@@ -1493,9 +1631,9 @@ export type WarpPillProps = {
1493
1631
  closeAriaLabel?: WarpPill["closeAriaLabel"];
1494
1632
 
1495
1633
  /** Fires when the pill itself is clicked. */
1496
- "onw-pill-click"?: (e: CustomEvent) => void;
1634
+ "onw-pill-click"?: (e: WarpPillElementEvent) => void;
1497
1635
  /** Fires when the pill's close button is clicked. */
1498
- "onw-pill-close"?: (e: CustomEvent) => void;
1636
+ "onw-pill-close"?: (e: WarpPillElementEvent) => void;
1499
1637
  };
1500
1638
 
1501
1639
  export type WarpPillSolidJsProps = {
@@ -1522,9 +1660,9 @@ export type WarpPillSolidJsProps = {
1522
1660
  /** Label read by screen readers when targeting the close button. */
1523
1661
  "prop:closeAriaLabel"?: WarpPill["closeAriaLabel"];
1524
1662
  /** Fires when the pill itself is clicked. */
1525
- "on:w-pill-click"?: (e: CustomEvent) => void;
1663
+ "on:w-pill-click"?: (e: WarpPillElementEvent) => void;
1526
1664
  /** Fires when the pill's close button is clicked. */
1527
- "on:w-pill-close"?: (e: CustomEvent) => void;
1665
+ "on:w-pill-close"?: (e: WarpPillElementEvent) => void;
1528
1666
 
1529
1667
  /** Set the innerHTML of the element */
1530
1668
  innerHTML?: string;
@@ -1618,6 +1756,9 @@ If you set `required` and `invalid` the group gets a default error message, but
1618
1756
  textContent?: string | number;
1619
1757
  };
1620
1758
 
1759
+ /** `WarpSelect` component event */
1760
+ export type WarpSelectElementEvent<E = Event> = TypedEvent<WarpSelect, E>;
1761
+
1621
1762
  export type WarpSelectProps = {
1622
1763
  /** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
1623
1764
  "auto-focus"?: WarpSelect["autoFocus"];
@@ -1659,7 +1800,7 @@ Paired with `help-text` to provide feedback about the error. */
1659
1800
  value?: WarpSelect["value"];
1660
1801
 
1661
1802
  /** */
1662
- onchange?: (e: CustomEvent) => void;
1803
+ onchange?: (e: WarpSelectElementEvent) => void;
1663
1804
  };
1664
1805
 
1665
1806
  export type WarpSelectSolidJsProps = {
@@ -1702,7 +1843,7 @@ Paired with `help-text` to provide feedback about the error. */
1702
1843
  /** Lets you set the current value. */
1703
1844
  "prop:value"?: WarpSelect["value"];
1704
1845
  /** */
1705
- "on:change"?: (e: CustomEvent) => void;
1846
+ "on:change"?: (e: WarpSelectElementEvent) => void;
1706
1847
 
1707
1848
  /** Set the innerHTML of the element */
1708
1849
  innerHTML?: string;
@@ -1710,6 +1851,12 @@ Paired with `help-text` to provide feedback about the error. */
1710
1851
  textContent?: string | number;
1711
1852
  };
1712
1853
 
1854
+ /** `WarpSliderThumb` component event */
1855
+ export type WarpSliderThumbElementEvent<E = Event> = TypedEvent<
1856
+ WarpSliderThumb,
1857
+ E
1858
+ >;
1859
+
1713
1860
  export type WarpSliderThumbProps = {
1714
1861
  /** Label for the range input. */
1715
1862
  "aria-label"?: WarpSliderThumb["ariaLabel"];
@@ -1727,9 +1874,9 @@ export type WarpSliderThumbProps = {
1727
1874
  placeholder?: WarpSliderThumb["placeholder"];
1728
1875
 
1729
1876
  /** Internal event used by (and stopped by) `w-slider`. */
1730
- onthumbreset?: (e: CustomEvent) => void;
1877
+ onthumbreset?: (e: WarpSliderThumbElementEvent) => void;
1731
1878
  /** Internal event used by (and stopped by) `w-slider`. */
1732
- onslidervalidity?: (e: CustomEvent) => void;
1879
+ onslidervalidity?: (e: WarpSliderThumbElementEvent) => void;
1733
1880
  };
1734
1881
 
1735
1882
  export type WarpSliderThumbSolidJsProps = {
@@ -1748,9 +1895,9 @@ export type WarpSliderThumbSolidJsProps = {
1748
1895
  /** Placeholder in empty text fields */
1749
1896
  "prop:placeholder"?: WarpSliderThumb["placeholder"];
1750
1897
  /** Internal event used by (and stopped by) `w-slider`. */
1751
- "on:thumbreset"?: (e: CustomEvent) => void;
1898
+ "on:thumbreset"?: (e: WarpSliderThumbElementEvent) => void;
1752
1899
  /** Internal event used by (and stopped by) `w-slider`. */
1753
- "on:slidervalidity"?: (e: CustomEvent) => void;
1900
+ "on:slidervalidity"?: (e: WarpSliderThumbElementEvent) => void;
1754
1901
 
1755
1902
  /** Set the innerHTML of the element */
1756
1903
  innerHTML?: string;
@@ -1899,6 +2046,12 @@ export type WarpStepIndicatorSolidJsProps = {
1899
2046
  textContent?: string | number;
1900
2047
  };
1901
2048
 
2049
+ /** `WarpSwitch` component event */
2050
+ export type WarpSwitchElementEvent<E = Event> = TypedEvent<WarpSwitch, E>;
2051
+ /** `change` event type */
2052
+ export type WarpSwitchChangeElementEvent =
2053
+ WarpSwitchElementEvent<WarpSwitchChangeEvent>;
2054
+
1902
2055
  export type WarpSwitchProps = {
1903
2056
  /** Name used when submitting an HTML form. */
1904
2057
  name?: WarpSwitch["name"];
@@ -1912,7 +2065,7 @@ The component reports `null` as the value in the `change` event when `value` is
1912
2065
  disabled?: WarpSwitch["disabled"];
1913
2066
 
1914
2067
  /** Dispatched when the switch toggles. Includes boolean `checked` and string/null `value` on `details`. */
1915
- onchange?: (e: WarpSwitchChangeEvent) => void;
2068
+ onchange?: (e: WarpSwitchChangeElementEvent) => void;
1916
2069
  };
1917
2070
 
1918
2071
  export type WarpSwitchSolidJsProps = {
@@ -1927,7 +2080,7 @@ The component reports `null` as the value in the `change` event when `value` is
1927
2080
  /** Whether the switch is disabled. */
1928
2081
  "prop:disabled"?: WarpSwitch["disabled"];
1929
2082
  /** Dispatched when the switch toggles. Includes boolean `checked` and string/null `value` on `details`. */
1930
- "on:change"?: (e: WarpSwitchChangeEvent) => void;
2083
+ "on:change"?: (e: WarpSwitchChangeElementEvent) => void;
1931
2084
 
1932
2085
  /** Set the innerHTML of the element */
1933
2086
  innerHTML?: string;
@@ -1969,19 +2122,25 @@ export type WarpTabPanelSolidJsProps = {
1969
2122
  textContent?: string | number;
1970
2123
  };
1971
2124
 
2125
+ /** `WarpTabs` component event */
2126
+ export type WarpTabsElementEvent<E = Event> = TypedEvent<WarpTabs, E>;
2127
+ /** `change` event type */
2128
+ export type WarpTabsChangeElementEvent =
2129
+ WarpTabsElementEvent<WarpTabsChangeEvent>;
2130
+
1972
2131
  export type WarpTabsProps = {
1973
2132
  /** The `id` of the panel that should be active. */
1974
2133
  active?: WarpTabs["active"];
1975
2134
 
1976
2135
  /** Includes `details.panelId` with the now active tab's ID */
1977
- onchange?: (e: WarpTabsChangeEvent) => void;
2136
+ onchange?: (e: WarpTabsChangeElementEvent) => void;
1978
2137
  };
1979
2138
 
1980
2139
  export type WarpTabsSolidJsProps = {
1981
2140
  /** The `id` of the panel that should be active. */
1982
2141
  "prop:active"?: WarpTabs["active"];
1983
2142
  /** Includes `details.panelId` with the now active tab's ID */
1984
- "on:change"?: (e: WarpTabsChangeEvent) => void;
2143
+ "on:change"?: (e: WarpTabsChangeElementEvent) => void;
1985
2144
 
1986
2145
  /** Set the innerHTML of the element */
1987
2146
  innerHTML?: string;
@@ -3116,6 +3275,106 @@ export type CustomElements = {
3116
3275
  >;
3117
3276
  };
3118
3277
 
3278
+ type ReactElementProps<T extends HTMLElement> = import("react").DOMAttributes<T> &
3279
+ import("react").AriaAttributes &
3280
+ import("react").RefAttributes<T> &
3281
+ Pick<
3282
+ import("react").HTMLAttributes<T>,
3283
+ | "className"
3284
+ | "style"
3285
+ | "suppressContentEditableWarning"
3286
+ | "suppressHydrationWarning"
3287
+ >;
3288
+
3289
+ // Merge order matters: component props must win over React/global/base props
3290
+ // when names collide, e.g. w-attention's boolean popover prop.
3291
+ type ReactCustomElementProps<T extends HTMLElement, Props> = Omit<
3292
+ BaseProps<T> & BaseEvents,
3293
+ keyof ReactElementProps<T> | keyof Props
3294
+ > &
3295
+ Omit<ReactElementProps<T>, keyof Props> &
3296
+ Props;
3297
+
3298
+ type CustomElementInstances = {
3299
+ "w-icon": WarpIcon;
3300
+ "w-textfield": WarpTextField;
3301
+ "w-affix": WarpAffix;
3302
+ "w-alert": WarpAlert;
3303
+ "w-link": WarpLink;
3304
+ "w-button": WarpButton;
3305
+ "w-attention": WarpAttention;
3306
+ "w-badge": WarpBadge;
3307
+ "w-box": WarpBox;
3308
+ "w-breadcrumbs": WarpBreadcrumbs;
3309
+ "w-card": WarpCard;
3310
+ "w-checkbox": WarpCheckbox;
3311
+ "w-checkbox-group": WarpCheckboxGroup;
3312
+ "w-combobox": WarpCombobox;
3313
+ "w-datepicker": WarpDatepicker;
3314
+ "w-expandable": WarpExpandable;
3315
+ "w-modal": WarpModal;
3316
+ "w-modal-footer": WarpModalFooter;
3317
+ "w-modal-header": WarpModalHeader;
3318
+ "w-page-indicator": WarpPageIndicator;
3319
+ "w-pagination": WarpPagination;
3320
+ "w-pill": WarpPill;
3321
+ "w-radio": WarpRadio;
3322
+ "w-radio-group": WarpRadioGroup;
3323
+ "w-select": WarpSelect;
3324
+ "w-slider-thumb": WarpSliderThumb;
3325
+ "w-slider": WarpSlider;
3326
+ "w-step": WarpStep;
3327
+ "w-step-indicator": WarpStepIndicator;
3328
+ "w-switch": WarpSwitch;
3329
+ "w-tab": WarpTab;
3330
+ "w-tab-panel": WarpTabPanel;
3331
+ "w-tabs": WarpTabs;
3332
+ "w-textarea": WarpTextarea;
3333
+ };
3334
+
3335
+ type CustomElementComponentProps = {
3336
+ "w-icon": WarpIconProps;
3337
+ "w-textfield": WarpTextFieldProps;
3338
+ "w-affix": WarpAffixProps;
3339
+ "w-alert": WarpAlertProps;
3340
+ "w-link": WarpLinkProps;
3341
+ "w-button": WarpButtonProps;
3342
+ "w-attention": WarpAttentionProps;
3343
+ "w-badge": WarpBadgeProps;
3344
+ "w-box": WarpBoxProps;
3345
+ "w-breadcrumbs": WarpBreadcrumbsProps;
3346
+ "w-card": WarpCardProps;
3347
+ "w-checkbox": WarpCheckboxProps;
3348
+ "w-checkbox-group": WarpCheckboxGroupProps;
3349
+ "w-combobox": WarpComboboxProps;
3350
+ "w-datepicker": WarpDatepickerProps;
3351
+ "w-expandable": WarpExpandableProps;
3352
+ "w-modal": WarpModalProps;
3353
+ "w-modal-footer": WarpModalFooterProps;
3354
+ "w-modal-header": WarpModalHeaderProps;
3355
+ "w-page-indicator": WarpPageIndicatorProps;
3356
+ "w-pagination": WarpPaginationProps;
3357
+ "w-pill": WarpPillProps;
3358
+ "w-radio": WarpRadioProps;
3359
+ "w-radio-group": WarpRadioGroupProps;
3360
+ "w-select": WarpSelectProps;
3361
+ "w-slider-thumb": WarpSliderThumbProps;
3362
+ "w-slider": WarpSliderProps;
3363
+ "w-step": WarpStepProps;
3364
+ "w-step-indicator": WarpStepIndicatorProps;
3365
+ "w-switch": WarpSwitchProps;
3366
+ "w-tab": WarpTabProps;
3367
+ "w-tab-panel": WarpTabPanelProps;
3368
+ "w-tabs": WarpTabsProps;
3369
+ "w-textarea": WarpTextareaProps;
3370
+ };
3371
+
3372
+ export type ReactCustomElements = {
3373
+ [Tag in keyof CustomElementComponentProps]: Tag extends keyof CustomElementInstances
3374
+ ? Partial<ReactCustomElementProps<CustomElementInstances[Tag], CustomElementComponentProps[Tag]>>
3375
+ : never;
3376
+ };
3377
+
3119
3378
  export type CustomElementsSolidJs = {
3120
3379
  /**
3121
3380
  *
@@ -4245,7 +4504,7 @@ export type CustomCssProperties = {};
4245
4504
 
4246
4505
  declare module "react" {
4247
4506
  namespace JSX {
4248
- interface IntrinsicElements extends CustomElements {}
4507
+ interface IntrinsicElements extends ReactCustomElements {}
4249
4508
  }
4250
4509
  export interface CSSProperties extends CustomCssProperties {}
4251
4510
  }