@genesislcap/foundation-ui 14.424.1 → 14.425.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.
package/dist/react.cjs CHANGED
@@ -5,7 +5,6 @@
5
5
 
6
6
  'use strict';
7
7
 
8
- const { provideReactWrapper } = require('@microsoft/fast-react-wrapper');
9
8
  const React = require('react');
10
9
  const { AccordionItem: AccordionItemWC } = require('./esm/accordion-item/accordion-item.js');
11
10
  const { Accordion: AccordionWC } = require('./esm/accordion/accordion.js');
@@ -94,289 +93,794 @@ const { Tooltip: TooltipWC } = require('./esm/tooltip/tooltip.js');
94
93
  const { TreeView: TreeViewWC } = require('./esm/tree-view/tree-view.js');
95
94
  const { UrlInput: UrlInputWC } = require('./esm/url-input/url-input.js');
96
95
 
97
- const { wrap } = provideReactWrapper(React);
98
-
99
- const AccordionItem = wrap(AccordionItemWC);
96
+ function _mergeRefs(...refs) {
97
+ return (value) => {
98
+ for (const ref of refs) {
99
+ if (typeof ref === 'function') ref(value);
100
+ else if (ref != null) ref.current = value;
101
+ }
102
+ };
103
+ }
104
+
105
+ const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
106
+ const { children, ...rest } = props;
107
+ return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
108
+ });
100
109
 
101
- const Accordion = wrap(AccordionWC);
110
+ const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
111
+ const { children, ...rest } = props;
112
+ return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
113
+ });
102
114
 
103
- const ActionsMenu = wrap(ActionsMenuWC);
115
+ const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
116
+ const { onCriteriaChanged, onValidationErrors, children, ...rest } = props;
117
+ const _innerRef = React.useRef(null);
118
+ const _onCriteriaChangedRef = React.useRef(onCriteriaChanged);
119
+ _onCriteriaChangedRef.current = onCriteriaChanged;
120
+ const _onValidationErrorsRef = React.useRef(onValidationErrors);
121
+ _onValidationErrorsRef.current = onValidationErrors;
122
+ React.useLayoutEffect(() => {
123
+ const el = _innerRef.current;
124
+ if (!el) return;
125
+ const _onCriteriaChangedFn = (e) => _onCriteriaChangedRef.current?.(e);
126
+ el.addEventListener('criteria-changed', _onCriteriaChangedFn);
127
+ const _onValidationErrorsFn = (e) => _onValidationErrorsRef.current?.(e);
128
+ el.addEventListener('validation-errors', _onValidationErrorsFn);
129
+ return () => {
130
+ el.removeEventListener('criteria-changed', _onCriteriaChangedFn);
131
+ el.removeEventListener('validation-errors', _onValidationErrorsFn);
132
+ };
133
+ }, []);
134
+ return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
135
+ });
104
136
 
105
- const AiCriteriaSearch = wrap(AiCriteriaSearchWC, {
106
- events: {
107
- onCriteriaChanged: 'criteria-changed',
108
- onValidationErrors: 'validation-errors',
109
- },
137
+ const Accordion = React.forwardRef(function Accordion(props, ref) {
138
+ const { children, ...rest } = props;
139
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
110
140
  });
111
141
 
112
- const AiIndicator = wrap(AiIndicatorWC);
142
+ const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
143
+ const { children, ...rest } = props;
144
+ return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
145
+ });
113
146
 
114
- const Anchor = wrap(AnchorWC);
147
+ const Anchor = React.forwardRef(function Anchor(props, ref) {
148
+ const { children, ...rest } = props;
149
+ return React.createElement(customElements.getName(AnchorWC) ?? '%%prefix%%-anchor', { ...rest, ref }, children);
150
+ });
115
151
 
116
- const AnchoredRegion = wrap(AnchoredRegionWC, {
117
- events: {
118
- onLoaded: 'loaded',
119
- onPositionchange: 'positionchange',
120
- },
152
+ const AnchoredRegion = React.forwardRef(function AnchoredRegion(props, ref) {
153
+ const { onLoaded, onPositionchange, children, ...rest } = props;
154
+ const _innerRef = React.useRef(null);
155
+ const _onLoadedRef = React.useRef(onLoaded);
156
+ _onLoadedRef.current = onLoaded;
157
+ const _onPositionchangeRef = React.useRef(onPositionchange);
158
+ _onPositionchangeRef.current = onPositionchange;
159
+ React.useLayoutEffect(() => {
160
+ const el = _innerRef.current;
161
+ if (!el) return;
162
+ const _onLoadedFn = (e) => _onLoadedRef.current?.(e);
163
+ el.addEventListener('loaded', _onLoadedFn);
164
+ const _onPositionchangeFn = (e) => _onPositionchangeRef.current?.(e);
165
+ el.addEventListener('positionchange', _onPositionchangeFn);
166
+ return () => {
167
+ el.removeEventListener('loaded', _onLoadedFn);
168
+ el.removeEventListener('positionchange', _onPositionchangeFn);
169
+ };
170
+ }, []);
171
+ return React.createElement(customElements.getName(AnchoredRegionWC) ?? '%%prefix%%-anchored-region', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
121
172
  });
122
173
 
123
- const Avatar = wrap(AvatarWC);
174
+ const Avatar = React.forwardRef(function Avatar(props, ref) {
175
+ const { children, ...rest } = props;
176
+ return React.createElement(customElements.getName(AvatarWC) ?? '%%prefix%%-avatar', { ...rest, ref }, children);
177
+ });
124
178
 
125
- const Badge = wrap(BadgeWC);
179
+ const Badge = React.forwardRef(function Badge(props, ref) {
180
+ const { children, ...rest } = props;
181
+ return React.createElement(customElements.getName(BadgeWC) ?? '%%prefix%%-badge', { ...rest, ref }, children);
182
+ });
126
183
 
127
- const Banner = wrap(BannerWC);
184
+ const Banner = React.forwardRef(function Banner(props, ref) {
185
+ const { children, ...rest } = props;
186
+ return React.createElement(customElements.getName(BannerWC) ?? '%%prefix%%-banner', { ...rest, ref }, children);
187
+ });
128
188
 
129
- const Breadcrumb = wrap(BreadcrumbWC);
189
+ const Breadcrumb = React.forwardRef(function Breadcrumb(props, ref) {
190
+ const { children, ...rest } = props;
191
+ return React.createElement(customElements.getName(BreadcrumbWC) ?? '%%prefix%%-breadcrumb', { ...rest, ref }, children);
192
+ });
130
193
 
131
- const BreadcrumbItem = wrap(BreadcrumbItemWC);
194
+ const BreadcrumbItem = React.forwardRef(function BreadcrumbItem(props, ref) {
195
+ const { children, ...rest } = props;
196
+ return React.createElement(customElements.getName(BreadcrumbItemWC) ?? '%%prefix%%-breadcrumb-item', { ...rest, ref }, children);
197
+ });
132
198
 
133
- const Button = wrap(ButtonWC);
199
+ const Button = React.forwardRef(function Button(props, ref) {
200
+ const { children, ...rest } = props;
201
+ return React.createElement(customElements.getName(ButtonWC) ?? '%%prefix%%-button', { ...rest, ref }, children);
202
+ });
134
203
 
135
- const Calendar = wrap(CalendarWC, {
136
- events: {
137
- onDateselected: 'dateselected',
138
- },
204
+ const Calendar = React.forwardRef(function Calendar(props, ref) {
205
+ const { onDateselected, children, ...rest } = props;
206
+ const _innerRef = React.useRef(null);
207
+ const _onDateselectedRef = React.useRef(onDateselected);
208
+ _onDateselectedRef.current = onDateselected;
209
+ React.useLayoutEffect(() => {
210
+ const el = _innerRef.current;
211
+ if (!el) return;
212
+ const _onDateselectedFn = (e) => _onDateselectedRef.current?.(e);
213
+ el.addEventListener('dateselected', _onDateselectedFn);
214
+ return () => {
215
+ el.removeEventListener('dateselected', _onDateselectedFn);
216
+ };
217
+ }, []);
218
+ return React.createElement(customElements.getName(CalendarWC) ?? '%%prefix%%-calendar', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
139
219
  });
140
220
 
141
- const Card = wrap(CardWC);
221
+ const Card = React.forwardRef(function Card(props, ref) {
222
+ const { children, ...rest } = props;
223
+ return React.createElement(customElements.getName(CardWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
224
+ });
142
225
 
143
- const CategorizedMultiselect = wrap(CategorizedMultiselectWC, {
144
- events: {
145
- onSelectionChange: 'selectionChange',
146
- },
226
+ const CategorizedMultiselect = React.forwardRef(function CategorizedMultiselect(props, ref) {
227
+ const { onSelectionChange, children, ...rest } = props;
228
+ const _innerRef = React.useRef(null);
229
+ const _onSelectionChangeRef = React.useRef(onSelectionChange);
230
+ _onSelectionChangeRef.current = onSelectionChange;
231
+ React.useLayoutEffect(() => {
232
+ const el = _innerRef.current;
233
+ if (!el) return;
234
+ const _onSelectionChangeFn = (e) => _onSelectionChangeRef.current?.(e);
235
+ el.addEventListener('selectionChange', _onSelectionChangeFn);
236
+ return () => {
237
+ el.removeEventListener('selectionChange', _onSelectionChangeFn);
238
+ };
239
+ }, []);
240
+ return React.createElement(customElements.getName(CategorizedMultiselectWC) ?? '%%prefix%%-categorized-multiselect', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
147
241
  });
148
242
 
149
- const Checkbox = wrap(CheckboxWC);
243
+ const Checkbox = React.forwardRef(function Checkbox(props, ref) {
244
+ const { children, ...rest } = props;
245
+ return React.createElement(customElements.getName(CheckboxWC) ?? '%%prefix%%-checkbox', { ...rest, ref }, children);
246
+ });
150
247
 
151
- const Combobox = wrap(ComboboxWC);
248
+ const Combobox = React.forwardRef(function Combobox(props, ref) {
249
+ const { children, ...rest } = props;
250
+ return React.createElement(customElements.getName(ComboboxWC) ?? '%%prefix%%-combobox', { ...rest, ref }, children);
251
+ });
152
252
 
153
- const ConnectionIndicator = wrap(ConnectionIndicatorWC);
253
+ const ConnectionIndicator = React.forwardRef(function ConnectionIndicator(props, ref) {
254
+ const { children, ...rest } = props;
255
+ return React.createElement(customElements.getName(ConnectionIndicatorWC) ?? '%%prefix%%-connection-indicator', { ...rest, ref }, children);
256
+ });
154
257
 
155
- const DataGrid = wrap(DataGridWC);
258
+ const DataGrid = React.forwardRef(function DataGrid(props, ref) {
259
+ const { children, ...rest } = props;
260
+ return React.createElement(customElements.getName(DataGridWC) ?? '%%prefix%%-data-grid', { ...rest, ref }, children);
261
+ });
156
262
 
157
- const DataGridCell = wrap(DataGridCellWC, {
158
- events: {
159
- onCellFocused: 'cell-focused',
160
- },
263
+ const DataGridCell = React.forwardRef(function DataGridCell(props, ref) {
264
+ const { onCellFocused, children, ...rest } = props;
265
+ const _innerRef = React.useRef(null);
266
+ const _onCellFocusedRef = React.useRef(onCellFocused);
267
+ _onCellFocusedRef.current = onCellFocused;
268
+ React.useLayoutEffect(() => {
269
+ const el = _innerRef.current;
270
+ if (!el) return;
271
+ const _onCellFocusedFn = (e) => _onCellFocusedRef.current?.(e);
272
+ el.addEventListener('cell-focused', _onCellFocusedFn);
273
+ return () => {
274
+ el.removeEventListener('cell-focused', _onCellFocusedFn);
275
+ };
276
+ }, []);
277
+ return React.createElement(customElements.getName(DataGridCellWC) ?? '%%prefix%%-data-grid-cell', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
161
278
  });
162
279
 
163
- const DataGridRow = wrap(DataGridRowWC, {
164
- events: {
165
- onRowFocused: 'row-focused',
166
- },
280
+ const DataGridRow = React.forwardRef(function DataGridRow(props, ref) {
281
+ const { onRowFocused, children, ...rest } = props;
282
+ const _innerRef = React.useRef(null);
283
+ const _onRowFocusedRef = React.useRef(onRowFocused);
284
+ _onRowFocusedRef.current = onRowFocused;
285
+ React.useLayoutEffect(() => {
286
+ const el = _innerRef.current;
287
+ if (!el) return;
288
+ const _onRowFocusedFn = (e) => _onRowFocusedRef.current?.(e);
289
+ el.addEventListener('row-focused', _onRowFocusedFn);
290
+ return () => {
291
+ el.removeEventListener('row-focused', _onRowFocusedFn);
292
+ };
293
+ }, []);
294
+ return React.createElement(customElements.getName(DataGridRowWC) ?? '%%prefix%%-data-grid-row', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
167
295
  });
168
296
 
169
- const DatePicker = wrap(DatePickerWC, {
170
- events: {
171
- onValueChanged: 'value-changed',
172
- },
297
+ const DatePicker = React.forwardRef(function DatePicker(props, ref) {
298
+ const { onValueChanged, children, ...rest } = props;
299
+ const _innerRef = React.useRef(null);
300
+ const _onValueChangedRef = React.useRef(onValueChanged);
301
+ _onValueChangedRef.current = onValueChanged;
302
+ React.useLayoutEffect(() => {
303
+ const el = _innerRef.current;
304
+ if (!el) return;
305
+ const _onValueChangedFn = (e) => _onValueChangedRef.current?.(e);
306
+ el.addEventListener('value-changed', _onValueChangedFn);
307
+ return () => {
308
+ el.removeEventListener('value-changed', _onValueChangedFn);
309
+ };
310
+ }, []);
311
+ return React.createElement(customElements.getName(DatePickerWC) ?? '%%prefix%%-date-picker', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
173
312
  });
174
313
 
175
- const FoundationDesignSystemProvider = wrap(FoundationDesignSystemProviderWC);
314
+ const FoundationDesignSystemProvider = React.forwardRef(function FoundationDesignSystemProvider(props, ref) {
315
+ const { children, ...rest } = props;
316
+ return React.createElement(customElements.getName(FoundationDesignSystemProviderWC) ?? '%%prefix%%-design-system-provider', { ...rest, ref }, children);
317
+ });
176
318
 
177
- const Dialog = wrap(DialogWC, {
178
- events: {
179
- onClose: 'close',
180
- },
319
+ const Dialog = React.forwardRef(function Dialog(props, ref) {
320
+ const { onClose, children, ...rest } = props;
321
+ const _innerRef = React.useRef(null);
322
+ const _onCloseRef = React.useRef(onClose);
323
+ _onCloseRef.current = onClose;
324
+ React.useLayoutEffect(() => {
325
+ const el = _innerRef.current;
326
+ if (!el) return;
327
+ const _onCloseFn = (e) => _onCloseRef.current?.(e);
328
+ el.addEventListener('close', _onCloseFn);
329
+ return () => {
330
+ el.removeEventListener('close', _onCloseFn);
331
+ };
332
+ }, []);
333
+ return React.createElement(customElements.getName(DialogWC) ?? '%%prefix%%-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
181
334
  });
182
335
 
183
- const Disclosure = wrap(DisclosureWC);
336
+ const Disclosure = React.forwardRef(function Disclosure(props, ref) {
337
+ const { children, ...rest } = props;
338
+ return React.createElement(customElements.getName(DisclosureWC) ?? '%%prefix%%-disclosure', { ...rest, ref }, children);
339
+ });
184
340
 
185
- const Divider = wrap(DividerWC);
341
+ const Divider = React.forwardRef(function Divider(props, ref) {
342
+ const { children, ...rest } = props;
343
+ return React.createElement(customElements.getName(DividerWC) ?? '%%prefix%%-divider', { ...rest, ref }, children);
344
+ });
186
345
 
187
- const DropdownMenu = wrap(DropdownMenuWC);
346
+ const DropdownMenu = React.forwardRef(function DropdownMenu(props, ref) {
347
+ const { children, ...rest } = props;
348
+ return React.createElement(customElements.getName(DropdownMenuWC) ?? '%%prefix%%-dropdown-menu', { ...rest, ref }, children);
349
+ });
188
350
 
189
- const EnvironmentIndicator = wrap(EnvironmentIndicatorWC);
351
+ const EnvironmentIndicator = React.forwardRef(function EnvironmentIndicator(props, ref) {
352
+ const { children, ...rest } = props;
353
+ return React.createElement(customElements.getName(EnvironmentIndicatorWC) ?? '%%prefix%%-environment-indicator', { ...rest, ref }, children);
354
+ });
190
355
 
191
- const ErrorBanner = wrap(ErrorBannerWC);
356
+ const ErrorBanner = React.forwardRef(function ErrorBanner(props, ref) {
357
+ const { children, ...rest } = props;
358
+ return React.createElement(customElements.getName(ErrorBannerWC) ?? '%%prefix%%-error-banner', { ...rest, ref }, children);
359
+ });
192
360
 
193
- const ErrorBoundary = wrap(ErrorBoundaryWC);
361
+ const ErrorBoundary = React.forwardRef(function ErrorBoundary(props, ref) {
362
+ const { children, ...rest } = props;
363
+ return React.createElement(customElements.getName(ErrorBoundaryWC) ?? '%%prefix%%-error-boundary', { ...rest, ref }, children);
364
+ });
194
365
 
195
- const ErrorDialog = wrap(ErrorDialogWC);
366
+ const ErrorDialog = React.forwardRef(function ErrorDialog(props, ref) {
367
+ const { children, ...rest } = props;
368
+ return React.createElement(customElements.getName(ErrorDialogWC) ?? '%%prefix%%-error-dialog', { ...rest, ref }, children);
369
+ });
196
370
 
197
- const FileReader = wrap(FileReaderWC, {
198
- events: {
199
- onFileRead: 'file-read',
200
- onClear: 'clear',
201
- },
371
+ const FileReader = React.forwardRef(function FileReader(props, ref) {
372
+ const { onFileRead, onClear, children, ...rest } = props;
373
+ const _innerRef = React.useRef(null);
374
+ const _onFileReadRef = React.useRef(onFileRead);
375
+ _onFileReadRef.current = onFileRead;
376
+ const _onClearRef = React.useRef(onClear);
377
+ _onClearRef.current = onClear;
378
+ React.useLayoutEffect(() => {
379
+ const el = _innerRef.current;
380
+ if (!el) return;
381
+ const _onFileReadFn = (e) => _onFileReadRef.current?.(e);
382
+ el.addEventListener('file-read', _onFileReadFn);
383
+ const _onClearFn = (e) => _onClearRef.current?.(e);
384
+ el.addEventListener('clear', _onClearFn);
385
+ return () => {
386
+ el.removeEventListener('file-read', _onFileReadFn);
387
+ el.removeEventListener('clear', _onClearFn);
388
+ };
389
+ }, []);
390
+ return React.createElement(customElements.getName(FileReaderWC) ?? '%%prefix%%-file-reader', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
202
391
  });
203
392
 
204
- const FileUpload = wrap(FileUploadWC, {
205
- events: {
206
- onFileSelected: 'file-selected',
207
- onSuccess: 'success',
208
- onErrorOut: 'errorOut',
209
- onClear: 'clear',
210
- },
393
+ const FileUpload = React.forwardRef(function FileUpload(props, ref) {
394
+ const { onFileSelected, onSuccess, onErrorOut, onClear, children, ...rest } = props;
395
+ const _innerRef = React.useRef(null);
396
+ const _onFileSelectedRef = React.useRef(onFileSelected);
397
+ _onFileSelectedRef.current = onFileSelected;
398
+ const _onSuccessRef = React.useRef(onSuccess);
399
+ _onSuccessRef.current = onSuccess;
400
+ const _onErrorOutRef = React.useRef(onErrorOut);
401
+ _onErrorOutRef.current = onErrorOut;
402
+ const _onClearRef = React.useRef(onClear);
403
+ _onClearRef.current = onClear;
404
+ React.useLayoutEffect(() => {
405
+ const el = _innerRef.current;
406
+ if (!el) return;
407
+ const _onFileSelectedFn = (e) => _onFileSelectedRef.current?.(e);
408
+ el.addEventListener('file-selected', _onFileSelectedFn);
409
+ const _onSuccessFn = (e) => _onSuccessRef.current?.(e);
410
+ el.addEventListener('success', _onSuccessFn);
411
+ const _onErrorOutFn = (e) => _onErrorOutRef.current?.(e);
412
+ el.addEventListener('errorOut', _onErrorOutFn);
413
+ const _onClearFn = (e) => _onClearRef.current?.(e);
414
+ el.addEventListener('clear', _onClearFn);
415
+ return () => {
416
+ el.removeEventListener('file-selected', _onFileSelectedFn);
417
+ el.removeEventListener('success', _onSuccessFn);
418
+ el.removeEventListener('errorOut', _onErrorOutFn);
419
+ el.removeEventListener('clear', _onClearFn);
420
+ };
421
+ }, []);
422
+ return React.createElement(customElements.getName(FileUploadWC) ?? '%%prefix%%-file-upload', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
211
423
  });
212
424
 
213
- const Filter = wrap(FilterWC, {
214
- events: {
215
- onFilterChanged: 'filter-changed',
216
- onFilterCleared: 'filter-cleared',
217
- },
425
+ const Filter = React.forwardRef(function Filter(props, ref) {
426
+ const { onFilterChanged, onFilterCleared, children, ...rest } = props;
427
+ const _innerRef = React.useRef(null);
428
+ const _onFilterChangedRef = React.useRef(onFilterChanged);
429
+ _onFilterChangedRef.current = onFilterChanged;
430
+ const _onFilterClearedRef = React.useRef(onFilterCleared);
431
+ _onFilterClearedRef.current = onFilterCleared;
432
+ React.useLayoutEffect(() => {
433
+ const el = _innerRef.current;
434
+ if (!el) return;
435
+ const _onFilterChangedFn = (e) => _onFilterChangedRef.current?.(e);
436
+ el.addEventListener('filter-changed', _onFilterChangedFn);
437
+ const _onFilterClearedFn = (e) => _onFilterClearedRef.current?.(e);
438
+ el.addEventListener('filter-cleared', _onFilterClearedFn);
439
+ return () => {
440
+ el.removeEventListener('filter-changed', _onFilterChangedFn);
441
+ el.removeEventListener('filter-cleared', _onFilterClearedFn);
442
+ };
443
+ }, []);
444
+ return React.createElement(customElements.getName(FilterWC) ?? '%%prefix%%-filter', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
218
445
  });
219
446
 
220
- const FilterBar = wrap(FilterBarWC);
447
+ const FilterBar = React.forwardRef(function FilterBar(props, ref) {
448
+ const { children, ...rest } = props;
449
+ return React.createElement(customElements.getName(FilterBarWC) ?? '%%prefix%%-filter-bar', { ...rest, ref }, children);
450
+ });
221
451
 
222
- const FlexLayout = wrap(FlexLayoutWC);
452
+ const FlexLayout = React.forwardRef(function FlexLayout(props, ref) {
453
+ const { children, ...rest } = props;
454
+ return React.createElement(customElements.getName(FlexLayoutWC) ?? '%%prefix%%-flex-layout', { ...rest, ref }, children);
455
+ });
223
456
 
224
- const Flipper = wrap(FlipperWC);
457
+ const Flipper = React.forwardRef(function Flipper(props, ref) {
458
+ const { children, ...rest } = props;
459
+ return React.createElement(customElements.getName(FlipperWC) ?? '%%prefix%%-flipper', { ...rest, ref }, children);
460
+ });
225
461
 
226
- const Flyout = wrap(FlyoutWC, {
227
- events: {
228
- onClosed: 'closed',
229
- },
462
+ const Flyout = React.forwardRef(function Flyout(props, ref) {
463
+ const { onClosed, children, ...rest } = props;
464
+ const _innerRef = React.useRef(null);
465
+ const _onClosedRef = React.useRef(onClosed);
466
+ _onClosedRef.current = onClosed;
467
+ React.useLayoutEffect(() => {
468
+ const el = _innerRef.current;
469
+ if (!el) return;
470
+ const _onClosedFn = (e) => _onClosedRef.current?.(e);
471
+ el.addEventListener('closed', _onClosedFn);
472
+ return () => {
473
+ el.removeEventListener('closed', _onClosedFn);
474
+ };
475
+ }, []);
476
+ return React.createElement(customElements.getName(FlyoutWC) ?? '%%prefix%%-flyout', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
230
477
  });
231
478
 
232
- const GridLayout = wrap(GridLayoutWC);
479
+ const GridLayout = React.forwardRef(function GridLayout(props, ref) {
480
+ const { children, ...rest } = props;
481
+ return React.createElement(customElements.getName(GridLayoutWC) ?? '%%prefix%%-grid-layout', { ...rest, ref }, children);
482
+ });
233
483
 
234
- const GridLayoutItem = wrap(GridLayoutItemWC);
484
+ const GridLayoutItem = React.forwardRef(function GridLayoutItem(props, ref) {
485
+ const { children, ...rest } = props;
486
+ return React.createElement(customElements.getName(GridLayoutItemWC) ?? '%%prefix%%-grid-layout-item', { ...rest, ref }, children);
487
+ });
235
488
 
236
- const HorizontalScroll = wrap(HorizontalScrollWC, {
237
- events: {
238
- onScrollstart: 'scrollstart',
239
- onScrollend: 'scrollend',
240
- },
489
+ const HorizontalScroll = React.forwardRef(function HorizontalScroll(props, ref) {
490
+ const { onScrollstart, onScrollend, children, ...rest } = props;
491
+ const _innerRef = React.useRef(null);
492
+ const _onScrollstartRef = React.useRef(onScrollstart);
493
+ _onScrollstartRef.current = onScrollstart;
494
+ const _onScrollendRef = React.useRef(onScrollend);
495
+ _onScrollendRef.current = onScrollend;
496
+ React.useLayoutEffect(() => {
497
+ const el = _innerRef.current;
498
+ if (!el) return;
499
+ const _onScrollstartFn = (e) => _onScrollstartRef.current?.(e);
500
+ el.addEventListener('scrollstart', _onScrollstartFn);
501
+ const _onScrollendFn = (e) => _onScrollendRef.current?.(e);
502
+ el.addEventListener('scrollend', _onScrollendFn);
503
+ return () => {
504
+ el.removeEventListener('scrollstart', _onScrollstartFn);
505
+ el.removeEventListener('scrollend', _onScrollendFn);
506
+ };
507
+ }, []);
508
+ return React.createElement(customElements.getName(HorizontalScrollWC) ?? '%%prefix%%-horizontal-scroll', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
241
509
  });
242
510
 
243
- const Icon = wrap(IconWC);
511
+ const Icon = React.forwardRef(function Icon(props, ref) {
512
+ const { children, ...rest } = props;
513
+ return React.createElement(customElements.getName(IconWC) ?? '%%prefix%%-icon', { ...rest, ref }, children);
514
+ });
244
515
 
245
- const Listbox = wrap(ListboxWC);
516
+ const Listbox = React.forwardRef(function Listbox(props, ref) {
517
+ const { children, ...rest } = props;
518
+ return React.createElement(customElements.getName(ListboxWC) ?? '%%prefix%%-listbox', { ...rest, ref }, children);
519
+ });
246
520
 
247
- const ListboxOption = wrap(ListboxOptionWC);
521
+ const ListboxOption = React.forwardRef(function ListboxOption(props, ref) {
522
+ const { children, ...rest } = props;
523
+ return React.createElement(customElements.getName(ListboxOptionWC) ?? '%%prefix%%-option', { ...rest, ref }, children);
524
+ });
248
525
 
249
- const Menu = wrap(MenuWC);
526
+ const Menu = React.forwardRef(function Menu(props, ref) {
527
+ const { children, ...rest } = props;
528
+ return React.createElement(customElements.getName(MenuWC) ?? '%%prefix%%-menu', { ...rest, ref }, children);
529
+ });
250
530
 
251
- const MenuItem = wrap(MenuItemWC, {
252
- events: {
253
- onOnMenuClick: 'onMenuClick',
254
- onExpandedChange: 'expanded-change',
255
- },
531
+ const MenuItem = React.forwardRef(function MenuItem(props, ref) {
532
+ const { onOnMenuClick, onExpandedChange, children, ...rest } = props;
533
+ const _innerRef = React.useRef(null);
534
+ const _onOnMenuClickRef = React.useRef(onOnMenuClick);
535
+ _onOnMenuClickRef.current = onOnMenuClick;
536
+ const _onExpandedChangeRef = React.useRef(onExpandedChange);
537
+ _onExpandedChangeRef.current = onExpandedChange;
538
+ React.useLayoutEffect(() => {
539
+ const el = _innerRef.current;
540
+ if (!el) return;
541
+ const _onOnMenuClickFn = (e) => _onOnMenuClickRef.current?.(e);
542
+ el.addEventListener('onMenuClick', _onOnMenuClickFn);
543
+ const _onExpandedChangeFn = (e) => _onExpandedChangeRef.current?.(e);
544
+ el.addEventListener('expanded-change', _onExpandedChangeFn);
545
+ return () => {
546
+ el.removeEventListener('onMenuClick', _onOnMenuClickFn);
547
+ el.removeEventListener('expanded-change', _onExpandedChangeFn);
548
+ };
549
+ }, []);
550
+ return React.createElement(customElements.getName(MenuItemWC) ?? '%%prefix%%-menu-item', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
256
551
  });
257
552
 
258
- const Modal = wrap(ModalWC);
553
+ const Modal = React.forwardRef(function Modal(props, ref) {
554
+ const { children, ...rest } = props;
555
+ return React.createElement(customElements.getName(ModalWC) ?? '%%prefix%%-modal', { ...rest, ref }, children);
556
+ });
259
557
 
260
- const Multiselect = wrap(MultiselectWC, {
261
- events: {
262
- onSelectionChange: 'selectionChange',
263
- onClear: 'clear',
264
- },
558
+ const Multiselect = React.forwardRef(function Multiselect(props, ref) {
559
+ const { onSelectionChange, onClear, children, ...rest } = props;
560
+ const _innerRef = React.useRef(null);
561
+ const _onSelectionChangeRef = React.useRef(onSelectionChange);
562
+ _onSelectionChangeRef.current = onSelectionChange;
563
+ const _onClearRef = React.useRef(onClear);
564
+ _onClearRef.current = onClear;
565
+ React.useLayoutEffect(() => {
566
+ const el = _innerRef.current;
567
+ if (!el) return;
568
+ const _onSelectionChangeFn = (e) => _onSelectionChangeRef.current?.(e);
569
+ el.addEventListener('selectionChange', _onSelectionChangeFn);
570
+ const _onClearFn = (e) => _onClearRef.current?.(e);
571
+ el.addEventListener('clear', _onClearFn);
572
+ return () => {
573
+ el.removeEventListener('selectionChange', _onSelectionChangeFn);
574
+ el.removeEventListener('clear', _onClearFn);
575
+ };
576
+ }, []);
577
+ return React.createElement(customElements.getName(MultiselectWC) ?? '%%prefix%%-multiselect', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
265
578
  });
266
579
 
267
- const NotificationListener = wrap(NotificationListenerWC);
580
+ const NotificationListener = React.forwardRef(function NotificationListener(props, ref) {
581
+ const { children, ...rest } = props;
582
+ return React.createElement(customElements.getName(NotificationListenerWC) ?? '%%prefix%%-notification-listener', { ...rest, ref }, children);
583
+ });
268
584
 
269
- const NumberField = wrap(NumberFieldWC);
585
+ const NumberField = React.forwardRef(function NumberField(props, ref) {
586
+ const { children, ...rest } = props;
587
+ return React.createElement(customElements.getName(NumberFieldWC) ?? '%%prefix%%-number-field', { ...rest, ref }, children);
588
+ });
270
589
 
271
- const Optgroup = wrap(OptgroupWC);
590
+ const Optgroup = React.forwardRef(function Optgroup(props, ref) {
591
+ const { children, ...rest } = props;
592
+ return React.createElement(customElements.getName(OptgroupWC) ?? '%%prefix%%-optgroup', { ...rest, ref }, children);
593
+ });
272
594
 
273
- const Popper = wrap(PopperWC);
595
+ const Popper = React.forwardRef(function Popper(props, ref) {
596
+ const { children, ...rest } = props;
597
+ return React.createElement(customElements.getName(PopperWC) ?? '%%prefix%%-popper', { ...rest, ref }, children);
598
+ });
274
599
 
275
- const Progress = wrap(ProgressWC);
600
+ const Progress = React.forwardRef(function Progress(props, ref) {
601
+ const { children, ...rest } = props;
602
+ return React.createElement(customElements.getName(ProgressWC) ?? '%%prefix%%-progress', { ...rest, ref }, children);
603
+ });
276
604
 
277
- const ProgressRing = wrap(ProgressRingWC);
605
+ const ProgressRing = React.forwardRef(function ProgressRing(props, ref) {
606
+ const { children, ...rest } = props;
607
+ return React.createElement(customElements.getName(ProgressRingWC) ?? '%%prefix%%-progress-ring', { ...rest, ref }, children);
608
+ });
278
609
 
279
- const Radio = wrap(RadioWC);
610
+ const Radio = React.forwardRef(function Radio(props, ref) {
611
+ const { children, ...rest } = props;
612
+ return React.createElement(customElements.getName(RadioWC) ?? '%%prefix%%-radio', { ...rest, ref }, children);
613
+ });
280
614
 
281
- const RadioGroup = wrap(RadioGroupWC);
615
+ const RadioGroup = React.forwardRef(function RadioGroup(props, ref) {
616
+ const { children, ...rest } = props;
617
+ return React.createElement(customElements.getName(RadioGroupWC) ?? '%%prefix%%-radio-group', { ...rest, ref }, children);
618
+ });
282
619
 
283
- const Scheduler = wrap(SchedulerWC);
620
+ const Scheduler = React.forwardRef(function Scheduler(props, ref) {
621
+ const { children, ...rest } = props;
622
+ return React.createElement(customElements.getName(SchedulerWC) ?? '%%prefix%%-scheduler', { ...rest, ref }, children);
623
+ });
284
624
 
285
- const SchedulerCronBuilder = wrap(SchedulerCronBuilderWC);
625
+ const SchedulerCronBuilder = React.forwardRef(function SchedulerCronBuilder(props, ref) {
626
+ const { children, ...rest } = props;
627
+ return React.createElement(customElements.getName(SchedulerCronBuilderWC) ?? '%%prefix%%-scheduler-cron-builder', { ...rest, ref }, children);
628
+ });
286
629
 
287
- const SchedulerTimezone = wrap(SchedulerTimezoneWC);
630
+ const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(props, ref) {
631
+ const { children, ...rest } = props;
632
+ return React.createElement(customElements.getName(SchedulerTimezoneWC) ?? '%%prefix%%-scheduler-timezone', { ...rest, ref }, children);
633
+ });
288
634
 
289
- const SearchBarCombobox = wrap(SearchBarComboboxWC, {
290
- events: {
291
- onInputdeleted: 'inputdeleted',
292
- },
635
+ const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
636
+ const { onInputdeleted, children, ...rest } = props;
637
+ const _innerRef = React.useRef(null);
638
+ const _onInputdeletedRef = React.useRef(onInputdeleted);
639
+ _onInputdeletedRef.current = onInputdeleted;
640
+ React.useLayoutEffect(() => {
641
+ const el = _innerRef.current;
642
+ if (!el) return;
643
+ const _onInputdeletedFn = (e) => _onInputdeletedRef.current?.(e);
644
+ el.addEventListener('inputdeleted', _onInputdeletedFn);
645
+ return () => {
646
+ el.removeEventListener('inputdeleted', _onInputdeletedFn);
647
+ };
648
+ }, []);
649
+ return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
293
650
  });
294
651
 
295
- const SearchBar = wrap(SearchBarWC, {
296
- events: {
297
- onSelectionChange: 'selectionChange',
298
- },
652
+ const SearchBar = React.forwardRef(function SearchBar(props, ref) {
653
+ const { onSelectionChange, children, ...rest } = props;
654
+ const _innerRef = React.useRef(null);
655
+ const _onSelectionChangeRef = React.useRef(onSelectionChange);
656
+ _onSelectionChangeRef.current = onSelectionChange;
657
+ React.useLayoutEffect(() => {
658
+ const el = _innerRef.current;
659
+ if (!el) return;
660
+ const _onSelectionChangeFn = (e) => _onSelectionChangeRef.current?.(e);
661
+ el.addEventListener('selectionChange', _onSelectionChangeFn);
662
+ return () => {
663
+ el.removeEventListener('selectionChange', _onSelectionChangeFn);
664
+ };
665
+ }, []);
666
+ return React.createElement(customElements.getName(SearchBarWC) ?? '%%prefix%%-search-bar', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
299
667
  });
300
668
 
301
- const SectionNavigator = wrap(SectionNavigatorWC, {
302
- events: {
303
- onSectionNavigatorSetState: 'section-navigator-set-state',
304
- onSectionNavigatorSetStates: 'section-navigator-set-states',
305
- onSectionNavigatorClearState: 'section-navigator-clear-state',
306
- onSectionNavigatorClearAllStates: 'section-navigator-clear-all-states',
307
- },
669
+ const SectionNavigator = React.forwardRef(function SectionNavigator(props, ref) {
670
+ const { onSectionNavigatorSetState, onSectionNavigatorSetStates, onSectionNavigatorClearState, onSectionNavigatorClearAllStates, children, ...rest } = props;
671
+ const _innerRef = React.useRef(null);
672
+ const _onSectionNavigatorSetStateRef = React.useRef(onSectionNavigatorSetState);
673
+ _onSectionNavigatorSetStateRef.current = onSectionNavigatorSetState;
674
+ const _onSectionNavigatorSetStatesRef = React.useRef(onSectionNavigatorSetStates);
675
+ _onSectionNavigatorSetStatesRef.current = onSectionNavigatorSetStates;
676
+ const _onSectionNavigatorClearStateRef = React.useRef(onSectionNavigatorClearState);
677
+ _onSectionNavigatorClearStateRef.current = onSectionNavigatorClearState;
678
+ const _onSectionNavigatorClearAllStatesRef = React.useRef(onSectionNavigatorClearAllStates);
679
+ _onSectionNavigatorClearAllStatesRef.current = onSectionNavigatorClearAllStates;
680
+ React.useLayoutEffect(() => {
681
+ const el = _innerRef.current;
682
+ if (!el) return;
683
+ const _onSectionNavigatorSetStateFn = (e) => _onSectionNavigatorSetStateRef.current?.(e);
684
+ el.addEventListener('section-navigator-set-state', _onSectionNavigatorSetStateFn);
685
+ const _onSectionNavigatorSetStatesFn = (e) => _onSectionNavigatorSetStatesRef.current?.(e);
686
+ el.addEventListener('section-navigator-set-states', _onSectionNavigatorSetStatesFn);
687
+ const _onSectionNavigatorClearStateFn = (e) => _onSectionNavigatorClearStateRef.current?.(e);
688
+ el.addEventListener('section-navigator-clear-state', _onSectionNavigatorClearStateFn);
689
+ const _onSectionNavigatorClearAllStatesFn = (e) => _onSectionNavigatorClearAllStatesRef.current?.(e);
690
+ el.addEventListener('section-navigator-clear-all-states', _onSectionNavigatorClearAllStatesFn);
691
+ return () => {
692
+ el.removeEventListener('section-navigator-set-state', _onSectionNavigatorSetStateFn);
693
+ el.removeEventListener('section-navigator-set-states', _onSectionNavigatorSetStatesFn);
694
+ el.removeEventListener('section-navigator-clear-state', _onSectionNavigatorClearStateFn);
695
+ el.removeEventListener('section-navigator-clear-all-states', _onSectionNavigatorClearAllStatesFn);
696
+ };
697
+ }, []);
698
+ return React.createElement(customElements.getName(SectionNavigatorWC) ?? '%%prefix%%-section-navigator', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
308
699
  });
309
700
 
310
- const SegmentedControl = wrap(SegmentedControlWC);
701
+ const SegmentedControl = React.forwardRef(function SegmentedControl(props, ref) {
702
+ const { children, ...rest } = props;
703
+ return React.createElement(customElements.getName(SegmentedControlWC) ?? '%%prefix%%-segmented-control', { ...rest, ref }, children);
704
+ });
311
705
 
312
- const SegmentedItem = wrap(SegmentedItemWC);
706
+ const SegmentedItem = React.forwardRef(function SegmentedItem(props, ref) {
707
+ const { children, ...rest } = props;
708
+ return React.createElement(customElements.getName(SegmentedItemWC) ?? '%%prefix%%-segmented-item', { ...rest, ref }, children);
709
+ });
313
710
 
314
- const Select = wrap(SelectWC);
711
+ const Select = React.forwardRef(function Select(props, ref) {
712
+ const { children, ...rest } = props;
713
+ return React.createElement(customElements.getName(SelectWC) ?? '%%prefix%%-select', { ...rest, ref }, children);
714
+ });
315
715
 
316
- const Skeleton = wrap(SkeletonWC);
716
+ const Skeleton = React.forwardRef(function Skeleton(props, ref) {
717
+ const { children, ...rest } = props;
718
+ return React.createElement(customElements.getName(SkeletonWC) ?? '%%prefix%%-skeleton', { ...rest, ref }, children);
719
+ });
317
720
 
318
- const Slider = wrap(SliderWC);
721
+ const Slider = React.forwardRef(function Slider(props, ref) {
722
+ const { children, ...rest } = props;
723
+ return React.createElement(customElements.getName(SliderWC) ?? '%%prefix%%-slider', { ...rest, ref }, children);
724
+ });
319
725
 
320
- const SliderLabel = wrap(SliderLabelWC);
726
+ const SliderLabel = React.forwardRef(function SliderLabel(props, ref) {
727
+ const { children, ...rest } = props;
728
+ return React.createElement(customElements.getName(SliderLabelWC) ?? '%%prefix%%-slider-label', { ...rest, ref }, children);
729
+ });
321
730
 
322
- const Snackbar = wrap(SnackbarWC, {
323
- events: {
324
- onAutoDismiss: 'autoDismiss',
325
- },
731
+ const Snackbar = React.forwardRef(function Snackbar(props, ref) {
732
+ const { onAutoDismiss, children, ...rest } = props;
733
+ const _innerRef = React.useRef(null);
734
+ const _onAutoDismissRef = React.useRef(onAutoDismiss);
735
+ _onAutoDismissRef.current = onAutoDismiss;
736
+ React.useLayoutEffect(() => {
737
+ const el = _innerRef.current;
738
+ if (!el) return;
739
+ const _onAutoDismissFn = (e) => _onAutoDismissRef.current?.(e);
740
+ el.addEventListener('autoDismiss', _onAutoDismissFn);
741
+ return () => {
742
+ el.removeEventListener('autoDismiss', _onAutoDismissFn);
743
+ };
744
+ }, []);
745
+ return React.createElement(customElements.getName(SnackbarWC) ?? '%%prefix%%-snackbar', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
326
746
  });
327
747
 
328
- const StackingIcons = wrap(StackingIconsWC);
748
+ const StackingIcons = React.forwardRef(function StackingIcons(props, ref) {
749
+ const { children, ...rest } = props;
750
+ return React.createElement(customElements.getName(StackingIconsWC) ?? '%%prefix%%-stacking-icons', { ...rest, ref }, children);
751
+ });
329
752
 
330
- const StatusPill = wrap(StatusPillWC);
753
+ const StatusPill = React.forwardRef(function StatusPill(props, ref) {
754
+ const { children, ...rest } = props;
755
+ return React.createElement(customElements.getName(StatusPillWC) ?? '%%prefix%%-status-pill', { ...rest, ref }, children);
756
+ });
331
757
 
332
- const Stepper = wrap(StepperWC, {
333
- events: {
334
- onStepClick: 'step-click',
335
- onValidationFailure: 'validation-failure',
336
- onNextStep: 'next-step',
337
- onValidationSuccess: 'validation-success',
338
- },
758
+ const Stepper = React.forwardRef(function Stepper(props, ref) {
759
+ const { onStepClick, onValidationFailure, onNextStep, onValidationSuccess, children, ...rest } = props;
760
+ const _innerRef = React.useRef(null);
761
+ const _onStepClickRef = React.useRef(onStepClick);
762
+ _onStepClickRef.current = onStepClick;
763
+ const _onValidationFailureRef = React.useRef(onValidationFailure);
764
+ _onValidationFailureRef.current = onValidationFailure;
765
+ const _onNextStepRef = React.useRef(onNextStep);
766
+ _onNextStepRef.current = onNextStep;
767
+ const _onValidationSuccessRef = React.useRef(onValidationSuccess);
768
+ _onValidationSuccessRef.current = onValidationSuccess;
769
+ React.useLayoutEffect(() => {
770
+ const el = _innerRef.current;
771
+ if (!el) return;
772
+ const _onStepClickFn = (e) => _onStepClickRef.current?.(e);
773
+ el.addEventListener('step-click', _onStepClickFn);
774
+ const _onValidationFailureFn = (e) => _onValidationFailureRef.current?.(e);
775
+ el.addEventListener('validation-failure', _onValidationFailureFn);
776
+ const _onNextStepFn = (e) => _onNextStepRef.current?.(e);
777
+ el.addEventListener('next-step', _onNextStepFn);
778
+ const _onValidationSuccessFn = (e) => _onValidationSuccessRef.current?.(e);
779
+ el.addEventListener('validation-success', _onValidationSuccessFn);
780
+ return () => {
781
+ el.removeEventListener('step-click', _onStepClickFn);
782
+ el.removeEventListener('validation-failure', _onValidationFailureFn);
783
+ el.removeEventListener('next-step', _onNextStepFn);
784
+ el.removeEventListener('validation-success', _onValidationSuccessFn);
785
+ };
786
+ }, []);
787
+ return React.createElement(customElements.getName(StepperWC) ?? '%%prefix%%-stepper', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
339
788
  });
340
789
 
341
- const StepperTab = wrap(StepperTabWC, {
342
- events: {
343
- onTabClicked: 'tab-clicked',
344
- },
790
+ const StepperTab = React.forwardRef(function StepperTab(props, ref) {
791
+ const { onTabClicked, children, ...rest } = props;
792
+ const _innerRef = React.useRef(null);
793
+ const _onTabClickedRef = React.useRef(onTabClicked);
794
+ _onTabClickedRef.current = onTabClicked;
795
+ React.useLayoutEffect(() => {
796
+ const el = _innerRef.current;
797
+ if (!el) return;
798
+ const _onTabClickedFn = (e) => _onTabClickedRef.current?.(e);
799
+ el.addEventListener('tab-clicked', _onTabClickedFn);
800
+ return () => {
801
+ el.removeEventListener('tab-clicked', _onTabClickedFn);
802
+ };
803
+ }, []);
804
+ return React.createElement(customElements.getName(StepperTabWC) ?? '%%prefix%%-stepper-tab', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
345
805
  });
346
806
 
347
- const StepperTabPanel = wrap(StepperTabPanelWC);
807
+ const StepperTabPanel = React.forwardRef(function StepperTabPanel(props, ref) {
808
+ const { children, ...rest } = props;
809
+ return React.createElement(customElements.getName(StepperTabPanelWC) ?? '%%prefix%%-stepper-tab-panel', { ...rest, ref }, children);
810
+ });
348
811
 
349
- const Switch = wrap(SwitchWC);
812
+ const Switch = React.forwardRef(function Switch(props, ref) {
813
+ const { children, ...rest } = props;
814
+ return React.createElement(customElements.getName(SwitchWC) ?? '%%prefix%%-switch', { ...rest, ref }, children);
815
+ });
350
816
 
351
- const Tab = wrap(TabWC);
817
+ const Tab = React.forwardRef(function Tab(props, ref) {
818
+ const { children, ...rest } = props;
819
+ return React.createElement(customElements.getName(TabWC) ?? '%%prefix%%-tab', { ...rest, ref }, children);
820
+ });
352
821
 
353
- const TabPanel = wrap(TabPanelWC);
822
+ const TabPanel = React.forwardRef(function TabPanel(props, ref) {
823
+ const { children, ...rest } = props;
824
+ return React.createElement(customElements.getName(TabPanelWC) ?? '%%prefix%%-tab-panel', { ...rest, ref }, children);
825
+ });
354
826
 
355
- const Tabs = wrap(TabsWC);
827
+ const Tabs = React.forwardRef(function Tabs(props, ref) {
828
+ const { children, ...rest } = props;
829
+ return React.createElement(customElements.getName(TabsWC) ?? '%%prefix%%-tabs', { ...rest, ref }, children);
830
+ });
356
831
 
357
- const TextArea = wrap(TextAreaWC);
832
+ const TextArea = React.forwardRef(function TextArea(props, ref) {
833
+ const { children, ...rest } = props;
834
+ return React.createElement(customElements.getName(TextAreaWC) ?? '%%prefix%%-text-area', { ...rest, ref }, children);
835
+ });
358
836
 
359
- const TextField = wrap(TextFieldWC);
837
+ const TextField = React.forwardRef(function TextField(props, ref) {
838
+ const { children, ...rest } = props;
839
+ return React.createElement(customElements.getName(TextFieldWC) ?? '%%prefix%%-text-field', { ...rest, ref }, children);
840
+ });
360
841
 
361
- const Toast = wrap(ToastWC);
842
+ const Toast = React.forwardRef(function Toast(props, ref) {
843
+ const { children, ...rest } = props;
844
+ return React.createElement(customElements.getName(ToastWC) ?? '%%prefix%%-toast', { ...rest, ref }, children);
845
+ });
362
846
 
363
- const Toolbar = wrap(ToolbarWC);
847
+ const Toolbar = React.forwardRef(function Toolbar(props, ref) {
848
+ const { children, ...rest } = props;
849
+ return React.createElement(customElements.getName(ToolbarWC) ?? '%%prefix%%-toolbar', { ...rest, ref }, children);
850
+ });
364
851
 
365
- const Tooltip = wrap(TooltipWC, {
366
- events: {
367
- onDismiss: 'dismiss',
368
- },
852
+ const Tooltip = React.forwardRef(function Tooltip(props, ref) {
853
+ const { onDismiss, children, ...rest } = props;
854
+ const _innerRef = React.useRef(null);
855
+ const _onDismissRef = React.useRef(onDismiss);
856
+ _onDismissRef.current = onDismiss;
857
+ React.useLayoutEffect(() => {
858
+ const el = _innerRef.current;
859
+ if (!el) return;
860
+ const _onDismissFn = (e) => _onDismissRef.current?.(e);
861
+ el.addEventListener('dismiss', _onDismissFn);
862
+ return () => {
863
+ el.removeEventListener('dismiss', _onDismissFn);
864
+ };
865
+ }, []);
866
+ return React.createElement(customElements.getName(TooltipWC) ?? '%%prefix%%-tooltip', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
369
867
  });
370
868
 
371
- const TreeView = wrap(TreeViewWC);
869
+ const TreeView = React.forwardRef(function TreeView(props, ref) {
870
+ const { children, ...rest } = props;
871
+ return React.createElement(customElements.getName(TreeViewWC) ?? '%%prefix%%-tree-view', { ...rest, ref }, children);
872
+ });
372
873
 
373
- const UrlInput = wrap(UrlInputWC);
874
+ const UrlInput = React.forwardRef(function UrlInput(props, ref) {
875
+ const { children, ...rest } = props;
876
+ return React.createElement(customElements.getName(UrlInputWC) ?? '%%prefix%%-url-input', { ...rest, ref }, children);
877
+ });
374
878
 
375
879
  module.exports = {
376
- AccordionItem,
377
- Accordion,
378
880
  ActionsMenu,
881
+ AccordionItem,
379
882
  AiCriteriaSearch,
883
+ Accordion,
380
884
  AiIndicator,
381
885
  Anchor,
382
886
  AnchoredRegion,