@loadsmart/miranda-react 3.0.0-beta.57 → 3.0.0-beta.58

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.
@@ -24,7 +24,7 @@ export type SelectOption = {
24
24
  export type SelectProps = ComponentProps<typeof WiredSelect> & {
25
25
  options?: SelectOption[];
26
26
  };
27
- export declare function Select(props: SelectProps): import("react/jsx-runtime").JSX.Element;
27
+ export declare function Select(props: SelectProps): import("react").JSX.Element;
28
28
  export declare namespace Select {
29
29
  var Option: import("react").ForwardRefExoticComponent<Omit<import("./SelectOption").SelectOptionProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").SelectOption>>;
30
30
  }
@@ -15,5 +15,5 @@ declare const WiredTextArea: import("@lit/react").ReactWebComponent<WCTextArea,
15
15
  onChange: EventName<MirandaChangeEvent<WCTextArea>>;
16
16
  }>;
17
17
  export type TextAreaProps = ComponentProps<typeof WiredTextArea>;
18
- declare function TextArea(props: TextAreaProps): import("react/jsx-runtime").JSX.Element;
18
+ declare function TextArea(props: TextAreaProps): import("react").JSX.Element;
19
19
  export default TextArea;
@@ -45,7 +45,7 @@ export type ToggleGroupProps<TSelectionType extends SelectionType = SelectionTyp
45
45
  value?: SelectionValue<OptionValue>;
46
46
  onChange?: OnChangeEvent<OptionValue>;
47
47
  });
48
- declare function ToggleGroup<TSelectionType extends SelectionType = SelectionType, OptionValue extends string = string>({ options, children, onChange, ...rest }: ToggleGroupProps<TSelectionType, OptionValue>): import("react/jsx-runtime").JSX.Element;
48
+ declare function ToggleGroup<TSelectionType extends SelectionType = SelectionType, OptionValue extends string = string>({ options, children, onChange, ...rest }: ToggleGroupProps<TSelectionType, OptionValue>): import("react").JSX.Element;
49
49
  declare namespace ToggleGroup {
50
50
  var Toggle: import("react").ForwardRefExoticComponent<Omit<import("./Toggle").ToggleProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").Toggle>>;
51
51
  }
@@ -20,5 +20,5 @@ export type TooltipProps = ComponentProps<typeof WiredTooltip> & {
20
20
  * **Warning**: This component will throw if the provided `children` is not a single child,
21
21
  * and will not render if the children is not valid or is a fragment.
22
22
  */
23
- export declare function Tooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element | null;
23
+ export declare function Tooltip(props: TooltipProps): import("react").JSX.Element | null;
24
24
  export type { TooltipPlacement, TooltipTrigger };
package/dist/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import { AccordionTitle as AccordionTitle$1, AccordionContent as AccordionContent$1, Accordion as Accordion$1, Badge as Badge$1, BannerActionPrimary as BannerActionPrimary$1, BannerActions as BannerActions$1, BannerActionSecondary as BannerActionSecondary$1, BannerDescription as BannerDescription$1, BannerIcon as BannerIcon$1, BannerTitle as BannerTitle$1, Banner as Banner$1, Button as Button$1, CardTitle as CardTitle$1, CardSubtitle as CardSubtitle$1, CardBody as CardBody$1, CardDivider as CardDivider$1, CardActionPrimary as CardActionPrimary$1, CardActionSecondary as CardActionSecondary$1, CardActionTertiary as CardActionTertiary$1, CardFooter as CardFooter$1, Card as Card$1, Checkbox as Checkbox$1, DialogActionPrimary as DialogActionPrimary$1, DialogActionSecondary as DialogActionSecondary$1, DialogActionTertiary as DialogActionTertiary$1, DialogActions as DialogActions$1, DialogBody as DialogBody$1, DialogClose as DialogClose$1, DialogFooter as DialogFooter$1, DialogHeader as DialogHeader$1, Dialog as Dialog$1, Divider as Divider$1, DrawerActionPrimary as DrawerActionPrimary$1, DrawerActionSecondary as DrawerActionSecondary$1, DrawerActionTertiary as DrawerActionTertiary$1, DrawerActions as DrawerActions$1, DrawerBody as DrawerBody$1, DrawerClose as DrawerClose$1, DrawerHeader as DrawerHeader$1, Drawer as Drawer$1, DropdownItem as DropdownItem$1, DropdownMenu as DropdownMenu$1, DropdownTrigger as DropdownTrigger$1, Dropdown as Dropdown$1, EmptyStateIllustration as EmptyStateIllustration$1, EmptyStateHeader as EmptyStateHeader$1, EmptyStateMessage as EmptyStateMessage$1, EmptyStateAction as EmptyStateAction$1, EmptyState as EmptyState$1, FieldLabel as FieldLabel$1, FieldHint as FieldHint$1, Field as Field$1, HeaderActions as HeaderActions$1, HeaderContent as HeaderContent$1, HeaderTitle as HeaderTitle$1, SubHeader as SubHeader$1, BackButton, HeaderTabs as HeaderTabs$1, Header as Header$1, Icon as Icon$1, LabeledValueLabel as LabeledValueLabel$1, LabeledValueValue as LabeledValueValue$1, LabeledValue as LabeledValue$1, Box as Box$1, Group as Group$1, Stack as Stack$1, Grid as Grid$1, Sidebar as Sidebar$1, Switcher as Switcher$1, Container as Container$1, Row as Row$1, Column as Column$1, Link as Link$1, Body as Body$1, PageContent as PageContent$1, Pagination as Pagination$1, ProgressBar as ProgressBar$1, ProgressBarCountdown as ProgressBarCountdown$1, Radio as Radio$1, RadioGroup as RadioGroup$1, SectionTitle as SectionTitle$1, Section as Section$1, SelectOption as SelectOption$1, Select as Select$1, SpinnerWheel as SpinnerWheel$1, Step as Step$1, Steps as Steps$1, Switch as Switch$1, TableHead as TableHead$1, TableBody as TableBody$1, TableFoot as TableFoot$1, TableRow as TableRow$1, TableCell as TableCell$1, TableToolbar as TableToolbar$1, TableHeadCell as TableHeadCell$1, TableFeedback as TableFeedback$1, TableActions as TableActions$1, TableSelectionCell as TableSelectionCell$1, Table as Table$1, Tab as Tab$1, TabPanel as TabPanel$1, Tabs as Tabs$1, Tag as Tag$1, ActionableTag as ActionableTag$1, Text as Text$1, TextArea as TextArea$1, TextField as TextField$1, TimelineItem as TimelineItem$1, TimelineExpandableItem as TimelineExpandableItem$1, TimelineItemBody as TimelineItemBody$1, TimelineItemFooter as TimelineItemFooter$1, TimelineItemHeader as TimelineItemHeader$1, TimelineItemHeaderSubtitle as TimelineItemHeaderSubtitle$1, TimelineItemHeaderTitle as TimelineItemHeaderTitle$1, TimelineItemIcon as TimelineItemIcon$1, Timeline as Timeline$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Tooltip as Tooltip$1, LogoLoader as LogoLoader$1, DotsLoader as DotsLoader$1 } from '@loadsmart/miranda-wc';
2
2
  export { DIALOG_SIZES, DIALOG_VARIANTS, DRAWER_SIZES, EMPTY_STATE_VARIANTS, Accordion as WCAccordion, AccordionContent as WCAccordionContent, AccordionTitle as WCAccordionTitle, ActionableTag as WCActionableTag, Badge as WCBadge, Banner as WCBanner, BannerActionPrimary as WCBannerActionPrimary, BannerActionSecondary as WCBannerActionSecondary, BannerActions as WCBannerActions, BannerDescription as WCBannerDescription, BannerIcon as WCBannerIcon, BannerTitle as WCBannerTitle, Box as WCBox, Button as WCButton, Card as WCCard, CardActionPrimary as WCCardActionPrimary, CardActionSecondary as WCCardActionSecondary, CardActionTertiary as WCCardActionTertiary, CardBody as WCCardBody, CardDivider as WCCardDivider, CardFooter as WCCardFooter, CardSubtitle as WCCardSubtitle, CardTitle as WCCardTitle, Checkbox as WCCheckbox, Column as WCColumn, Container as WCContainer, Dialog as WCDialog, DialogActionPrimary as WCDialogActionPrimary, DialogActionSecondary as WCDialogActionSecondary, DialogActionTertiary as WCDialogActionTertiary, DialogActions as WCDialogActions, DialogBody as WCDialogBody, DialogClose as WCDialogClose, DialogFooter as WCDialogFooter, DialogHeader as WCDialogHeader, Divider as WCDivider, Drawer as WCDrawer, DrawerActionPrimary as WCDrawerActionPrimary, DrawerActionSecondary as WCDrawerActionSecondary, DrawerActionTertiary as WCDrawerActionTertiary, DrawerActions as WCDrawerActions, DrawerBody as WCDrawerBody, DrawerClose as WCDrawerClose, DrawerHeader as WCDrawerHeader, Dropdown as WCDropdown, DropdownItem as WCDropdownItem, DropdownMenu as WCDropdownMenu, DropdownTrigger as WCDropdownTrigger, EmptyState as WCEmptyState, EmptyStateAction as WCEmptyStateAction, EmptyStateHeader as WCEmptyStateHeader, EmptyStateIllustration as WCEmptyStateIllustration, EmptyStateMessage as WCEmptyStateMessage, Field as WCField, FieldHint as WCFieldHint, FieldLabel as WCFieldLabel, Grid as WCGrid, Group as WCGroup, Header as WCHeader, HeaderActions as WCHeaderActions, HeaderContent as WCHeaderContent, HeaderTitle as WCHeaderTitle, Icon as WCIcon, LabeledValue as WCLabeledValue, LabeledValueLabel as WCLabeledValueLabel, LabeledValueValue as WCLabeledValueValue, Link as WCLink, LogoLoader as WCLogoLoader, PageContent as WCPageContent, Pagination as WCPagination, ProgressBar as WCProgressBar, ProgressBarCountdown as WCProgressBarCountdown, Radio as WCRadio, RadioGroup as WCRadioGroup, Row as WCRow, Section as WCSection, SectionTitle as WCSectionTitle, Sidebar as WCSidebar, SpinnerWheel as WCSpinnerWheel, Stack as WCStack, Step as WCStep, Steps as WCSteps, SubHeader as WCSubHeader, Switch as WCSwitch, Switcher as WCSwitcher, Tab as WCTab, TabPanel as WCTabPanel, Table as WCTable, TableActions as WCTableActions, TableBody as WCTableBody, TableCell as WCTableCell, TableFeedback as WCTableFeedback, TableFoot as WCTableFoot, TableHead as WCTableHead, TableHeadCell as WCTableHeadCell, TableRow as WCTableRow, TableToolbar as WCTableToolbar, Tabs as WCTabs, Tag as WCTag, Text as WCText, TextArea as WCTextArea, TextField as WCTextField, Timeline as WCTimeline, TimelineExpandableItem as WCTimelineExpandableItem, TimelineItem as WCTimelineItem, TimelineItemBody as WCTimelineItemBody, TimelineItemFooter as WCTimelineItemFooter, TimelineItemHeader as WCTimelineItemHeader, TimelineItemHeaderSubtitle as WCTimelineItemHeaderSubtitle, TimelineItemHeaderTitle as WCTimelineItemHeaderTitle, TimelineItemIcon as WCTimelineItemIcon, Toggle as WCToggle, ToggleGroup as WCToggleGroup, Tooltip as WCTooltip } from '@loadsmart/miranda-wc';
3
- import * as React from 'react';
3
+ import * as React$1 from 'react';
4
4
  import { forwardRef, useState, useCallback, Children, isValidElement, cloneElement } from 'react';
5
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
5
  import { isFragment } from 'react-is';
7
6
 
8
7
  function _arrayLikeToArray(r, a) {
@@ -105,7 +104,7 @@ var e = new Set(["children", "localName", "ref", "style", "className"]),
105
104
 
106
105
  const createComponent = ({ subComponents, ...options }) => {
107
106
  const ReactComponent = o({
108
- react: React,
107
+ react: React$1,
109
108
  ...options,
110
109
  });
111
110
  const ComponentWithSubComponents = ReactComponent;
@@ -122,7 +121,9 @@ const WiredAccordionTitle = createComponent({
122
121
  });
123
122
  const AccordionTitle = forwardRef((props, ref) => {
124
123
  const { leading, children, ...rest } = props;
125
- return (jsxs(WiredAccordionTitle, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
124
+ return (React.createElement(WiredAccordionTitle, { ...rest, ref: ref },
125
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
126
+ children));
126
127
  });
127
128
 
128
129
  const AccordionContent = createComponent({
@@ -157,7 +158,10 @@ const WiredBannerActionPrimary = createComponent({
157
158
  });
158
159
  const BannerActionPrimary = forwardRef((props, ref) => {
159
160
  const { leading, trailing, children, ...rest } = props;
160
- return (jsxs(WiredBannerActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
161
+ return (React.createElement(WiredBannerActionPrimary, { ...rest, ref: ref },
162
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
163
+ children,
164
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
161
165
  });
162
166
 
163
167
  const BannerActions = createComponent({
@@ -173,7 +177,10 @@ const WiredBannerActionSecondary = createComponent({
173
177
  });
174
178
  const BannerActionSecondary = forwardRef((props, ref) => {
175
179
  const { leading, trailing, children, ...rest } = props;
176
- return (jsxs(WiredBannerActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
180
+ return (React.createElement(WiredBannerActionSecondary, { ...rest, ref: ref },
181
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
182
+ children,
183
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
177
184
  });
178
185
 
179
186
  const BannerDescription = createComponent({
@@ -218,7 +225,10 @@ const WiredButton = createComponent({
218
225
  });
219
226
  const Button = forwardRef((props, ref) => {
220
227
  const { leading, trailing, children, ...rest } = props;
221
- return (jsxs(WiredButton, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
228
+ return (React.createElement(WiredButton, { ...rest, ref: ref },
229
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
230
+ children,
231
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
222
232
  });
223
233
 
224
234
  const WiredCardTitle = createComponent({
@@ -227,7 +237,9 @@ const WiredCardTitle = createComponent({
227
237
  displayName: 'CardTitle',
228
238
  });
229
239
  const CardTitle = forwardRef(({ children, leading, ...props }, ref) => {
230
- return (jsxs(WiredCardTitle, { ...props, slot: "title", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
240
+ return (React.createElement(WiredCardTitle, { ...props, slot: "title", ref: ref },
241
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
242
+ children));
231
243
  });
232
244
 
233
245
  const CardSubtitle = createComponent({
@@ -255,7 +267,10 @@ const WiredCardActionPrimary = createComponent({
255
267
  });
256
268
  const CardActionPrimary = forwardRef((props, ref) => {
257
269
  const { leading, trailing, children, ...rest } = props;
258
- return (jsxs(WiredCardActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
270
+ return (React.createElement(WiredCardActionPrimary, { ...rest, ref: ref },
271
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
272
+ children,
273
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
259
274
  });
260
275
 
261
276
  const WiredCardActionSecondary = createComponent({
@@ -265,7 +280,10 @@ const WiredCardActionSecondary = createComponent({
265
280
  });
266
281
  const CardActionSecondary = forwardRef((props, ref) => {
267
282
  const { leading, trailing, children, ...rest } = props;
268
- return (jsxs(WiredCardActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
283
+ return (React.createElement(WiredCardActionSecondary, { ...rest, ref: ref },
284
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
285
+ children,
286
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
269
287
  });
270
288
 
271
289
  const WiredCardActionTertiary = createComponent({
@@ -275,7 +293,10 @@ const WiredCardActionTertiary = createComponent({
275
293
  });
276
294
  const CardActionTertiary = forwardRef((props, ref) => {
277
295
  const { leading, trailing, children, ...rest } = props;
278
- return (jsxs(WiredCardActionTertiary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
296
+ return (React.createElement(WiredCardActionTertiary, { ...rest, ref: ref },
297
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
298
+ children,
299
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
279
300
  });
280
301
 
281
302
  const CardFooter = createComponent({
@@ -313,7 +334,9 @@ const WiredCheckbox = createComponent({
313
334
  });
314
335
  const Checkbox = forwardRef((props, ref) => {
315
336
  const { children, leading, ...rest } = props;
316
- return (jsxs(WiredCheckbox, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
337
+ return (React.createElement(WiredCheckbox, { ...rest, ref: ref },
338
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
339
+ children));
317
340
  });
318
341
 
319
342
  const WiredDialogActionPrimary = createComponent({
@@ -323,7 +346,10 @@ const WiredDialogActionPrimary = createComponent({
323
346
  });
324
347
  const DialogActionPrimary = forwardRef((props, ref) => {
325
348
  const { leading, trailing, children, ...rest } = props;
326
- return (jsxs(WiredDialogActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
349
+ return (React.createElement(WiredDialogActionPrimary, { ...rest, ref: ref },
350
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
351
+ children,
352
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
327
353
  });
328
354
 
329
355
  const WiredDialogActionSecondary = createComponent({
@@ -333,7 +359,10 @@ const WiredDialogActionSecondary = createComponent({
333
359
  });
334
360
  const DialogActionSecondary = forwardRef((props, ref) => {
335
361
  const { leading, trailing, children, ...rest } = props;
336
- return (jsxs(WiredDialogActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
362
+ return (React.createElement(WiredDialogActionSecondary, { ...rest, ref: ref },
363
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
364
+ children,
365
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
337
366
  });
338
367
 
339
368
  const WiredDialogActionTertiary = createComponent({
@@ -343,7 +372,10 @@ const WiredDialogActionTertiary = createComponent({
343
372
  });
344
373
  const DialogActionTertiary = forwardRef((props, ref) => {
345
374
  const { leading, trailing, children, ...rest } = props;
346
- return (jsxs(WiredDialogActionTertiary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
375
+ return (React.createElement(WiredDialogActionTertiary, { ...rest, ref: ref },
376
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
377
+ children,
378
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
347
379
  });
348
380
 
349
381
  const DialogActions = createComponent({
@@ -415,7 +447,10 @@ const WiredDrawerActionPrimary = createComponent({
415
447
  });
416
448
  const DrawerActionPrimary = forwardRef(function DrawerActionPrimary(props, ref) {
417
449
  const { leading, trailing, children, ...rest } = props;
418
- return (jsxs(WiredDrawerActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
450
+ return (React.createElement(WiredDrawerActionPrimary, { ...rest, ref: ref },
451
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
452
+ children,
453
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
419
454
  });
420
455
 
421
456
  const WiredDrawerActionSecondary = createComponent({
@@ -425,7 +460,10 @@ const WiredDrawerActionSecondary = createComponent({
425
460
  });
426
461
  const DrawerActionSecondary = forwardRef(function DrawerActionSecondary(props, ref) {
427
462
  const { leading, trailing, children, ...rest } = props;
428
- return (jsxs(WiredDrawerActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
463
+ return (React.createElement(WiredDrawerActionSecondary, { ...rest, ref: ref },
464
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
465
+ children,
466
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
429
467
  });
430
468
 
431
469
  const WiredDrawerActionTertiary = createComponent({
@@ -435,7 +473,10 @@ const WiredDrawerActionTertiary = createComponent({
435
473
  });
436
474
  const DrawerActionTertiary = forwardRef(function DrawerActionTertiary(props, ref) {
437
475
  const { leading, trailing, children, ...rest } = props;
438
- return (jsxs(WiredDrawerActionTertiary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
476
+ return (React.createElement(WiredDrawerActionTertiary, { ...rest, ref: ref },
477
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
478
+ children,
479
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
439
480
  });
440
481
 
441
482
  const DrawerActions = createComponent({
@@ -494,7 +535,10 @@ const WiredDropdownItem = createComponent({
494
535
  });
495
536
  const DropdownItem = forwardRef((props, ref) => {
496
537
  const { leading, trailing, children, ...rest } = props;
497
- return (jsxs(WiredDropdownItem, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
538
+ return (React.createElement(WiredDropdownItem, { ...rest, ref: ref },
539
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
540
+ children,
541
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
498
542
  });
499
543
 
500
544
  const DropdownMenu = createComponent({
@@ -510,7 +554,9 @@ const WiredDropdownTrigger = createComponent({
510
554
  });
511
555
  const DropdownTrigger = forwardRef((props, ref) => {
512
556
  const { leading, children, ...rest } = props;
513
- return (jsxs(WiredDropdownTrigger, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
557
+ return (React.createElement(WiredDropdownTrigger, { ...rest, ref: ref },
558
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
559
+ children));
514
560
  });
515
561
 
516
562
  const Dropdown = createComponent({
@@ -553,7 +599,10 @@ const WiredEmptyStateAction = createComponent({
553
599
  });
554
600
  const EmptyStateAction = forwardRef((props, ref) => {
555
601
  const { leading, trailing, children, ...rest } = props;
556
- return (jsxs(WiredEmptyStateAction, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
602
+ return (React.createElement(WiredEmptyStateAction, { ...rest, ref: ref },
603
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
604
+ children,
605
+ trailing != null && React.createElement("span", { slot: "trailing" }, trailing)));
557
606
  });
558
607
 
559
608
  const EmptyState = createComponent({
@@ -583,7 +632,9 @@ const WiredFieldHint = createComponent({
583
632
  displayName: 'FieldHint',
584
633
  });
585
634
  const FieldHint = forwardRef(({ children, leading, ...props }, ref) => {
586
- return (jsxs(WiredFieldHint, { ...props, slot: "hint", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
635
+ return (React.createElement(WiredFieldHint, { ...props, slot: "hint", ref: ref },
636
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
637
+ children));
587
638
  });
588
639
 
589
640
  const Field = createComponent({
@@ -676,7 +727,10 @@ const WiredLabeledValue = createComponent({
676
727
  });
677
728
  const LabeledValue = Object.assign(forwardRef((props, ref) => {
678
729
  const { label, value, children, valueVariant, valueColor, labelVariant, labelColor, ...rest } = props;
679
- return (jsxs(WiredLabeledValue, { ...rest, ref: ref, children: [label != null && (jsx(LabeledValueLabel, { variant: labelVariant, color: labelColor, children: label })), value != null && (jsx(LabeledValueValue, { variant: valueVariant, color: valueColor, children: value })), children] }));
730
+ return (React.createElement(WiredLabeledValue, { ...rest, ref: ref },
731
+ label != null && (React.createElement(LabeledValueLabel, { variant: labelVariant, color: labelColor }, label)),
732
+ value != null && (React.createElement(LabeledValueValue, { variant: valueVariant, color: valueColor }, value)),
733
+ children));
680
734
  }), {
681
735
  Label: LabeledValueLabel,
682
736
  Value: LabeledValueValue,
@@ -707,10 +761,10 @@ const Grid = createComponent({
707
761
  });
708
762
 
709
763
  const SidebarSide = forwardRef(({ children, ...boxProps }, ref) => {
710
- return (jsx(Box, { ...boxProps, slot: "sidebar", ref: ref, children: children }));
764
+ return (React.createElement(Box, { ...boxProps, slot: "sidebar", ref: ref }, children));
711
765
  });
712
766
  const SidebarContent = forwardRef(({ children, ...boxProps }, ref) => {
713
- return (jsx(Box, { ...boxProps, slot: "content", ref: ref, children: children }));
767
+ return (React.createElement(Box, { ...boxProps, slot: "content", ref: ref }, children));
714
768
  });
715
769
  const Sidebar = createComponent({
716
770
  tagName: 'm-sidebar',
@@ -806,7 +860,9 @@ const WiredRadio = createComponent({
806
860
  });
807
861
  const Radio = forwardRef((props, ref) => {
808
862
  const { children, leading, ...rest } = props;
809
- return (jsxs(WiredRadio, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
863
+ return (React.createElement(WiredRadio, { ...rest, ref: ref },
864
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
865
+ children));
810
866
  });
811
867
 
812
868
  const RadioGroup = createComponent({
@@ -827,7 +883,9 @@ const WiredSectionTitle = createComponent({
827
883
  displayName: 'SectionTitle',
828
884
  });
829
885
  const SectionTitle = forwardRef(({ children, leading, ...props }, ref) => {
830
- return (jsxs(WiredSectionTitle, { ...props, slot: "title", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
886
+ return (React.createElement(WiredSectionTitle, { ...props, slot: "title", ref: ref },
887
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
888
+ children));
831
889
  });
832
890
 
833
891
  const Section = createComponent({
@@ -847,7 +905,10 @@ const WiredSelectOption = createComponent({
847
905
  const SLOTTED_STYLE$3 = { display: 'contents' };
848
906
  const SelectOption = forwardRef((props, ref) => {
849
907
  const { leading, trailing, children, ...rest } = props;
850
- return (jsxs(WiredSelectOption, { ...rest, ref: ref, children: [leading != null && (jsx("span", { style: SLOTTED_STYLE$3, slot: "leading", children: leading })), children, trailing != null && (jsx("span", { style: SLOTTED_STYLE$3, slot: "trailing", children: trailing }))] }));
908
+ return (React.createElement(WiredSelectOption, { ...rest, ref: ref },
909
+ leading != null && (React.createElement("span", { style: SLOTTED_STYLE$3, slot: "leading" }, leading)),
910
+ children,
911
+ trailing != null && (React.createElement("span", { style: SLOTTED_STYLE$3, slot: "trailing" }, trailing))));
851
912
  });
852
913
  SelectOption.displayName = 'SelectOption';
853
914
 
@@ -864,11 +925,14 @@ const WiredSelect = createComponent({
864
925
  const SLOTTED_STYLE$2 = { display: 'contents' };
865
926
  function Select(props) {
866
927
  const { options, children, ...rest } = props;
867
- return (jsx(WiredSelect, { ...rest, children: children ||
868
- (options || []).map(function renderOption(option) {
869
- const { label, leading, trailing, value: optionValue, ...others } = option;
870
- return (jsxs(SelectOption, { ...others, value: optionValue, children: [leading != null && (jsx("span", { style: SLOTTED_STYLE$2, slot: "leading", children: leading })), label, trailing != null && (jsx("span", { style: SLOTTED_STYLE$2, slot: "trailing", children: trailing }))] }, optionValue));
871
- }) }));
928
+ return (React.createElement(WiredSelect, { ...rest }, children ||
929
+ (options || []).map(function renderOption(option) {
930
+ const { label, leading, trailing, value: optionValue, ...others } = option;
931
+ return (React.createElement(SelectOption, { key: optionValue, ...others, value: optionValue },
932
+ leading != null && (React.createElement("span", { style: SLOTTED_STYLE$2, slot: "leading" }, leading)),
933
+ label,
934
+ trailing != null && (React.createElement("span", { style: SLOTTED_STYLE$2, slot: "trailing" }, trailing))));
935
+ })));
872
936
  }
873
937
  Select.Option = SelectOption;
874
938
 
@@ -1062,7 +1126,9 @@ const WiredTab = createComponent({
1062
1126
  displayName: 'Tab',
1063
1127
  });
1064
1128
  const Tab = forwardRef(({ children, leading, ...props }, ref) => {
1065
- return (jsxs(WiredTab, { ...props, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
1129
+ return (React.createElement(WiredTab, { ...props, ref: ref },
1130
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
1131
+ children));
1066
1132
  });
1067
1133
 
1068
1134
  const TabPanel = createComponent({
@@ -1092,7 +1158,9 @@ const WiredTag = createComponent({
1092
1158
  const SLOTTED_STYLE$1 = { display: 'contents' };
1093
1159
  const Tag = forwardRef((props, ref) => {
1094
1160
  const { leading, children, ...rest } = props;
1095
- return (jsxs(WiredTag, { ...rest, ref: ref, children: [leading != null && (jsx("span", { style: SLOTTED_STYLE$1, slot: "leading", children: leading })), children] }));
1161
+ return (React.createElement(WiredTag, { ...rest, ref: ref },
1162
+ leading != null && (React.createElement("span", { style: SLOTTED_STYLE$1, slot: "leading" }, leading)),
1163
+ children));
1096
1164
  });
1097
1165
 
1098
1166
  const WiredActionableTag = createComponent({
@@ -1107,7 +1175,9 @@ const WiredActionableTag = createComponent({
1107
1175
  const SLOTTED_STYLE = { display: 'contents' };
1108
1176
  const ActionableTag = forwardRef((props, ref) => {
1109
1177
  const { leading, children, selectable, removable, ...rest } = props;
1110
- return (jsxs(WiredActionableTag, { ...rest, selectable: selectable || Boolean(rest.onChange), removable: removable || Boolean(rest.onRemove), ref: ref, children: [leading != null && (jsx("span", { slot: "leading", style: SLOTTED_STYLE, children: leading })), children] }));
1178
+ return (React.createElement(WiredActionableTag, { ...rest, selectable: selectable || Boolean(rest.onChange), removable: removable || Boolean(rest.onRemove), ref: ref },
1179
+ leading != null && (React.createElement("span", { slot: "leading", style: SLOTTED_STYLE }, leading)),
1180
+ children));
1111
1181
  });
1112
1182
 
1113
1183
  const Text = createComponent({
@@ -1126,7 +1196,7 @@ const WiredTextArea = createComponent({
1126
1196
  displayName: 'TextArea',
1127
1197
  });
1128
1198
  function TextArea(props) {
1129
- return jsx(WiredTextArea, { ...props });
1199
+ return React.createElement(WiredTextArea, { ...props });
1130
1200
  }
1131
1201
 
1132
1202
  const WiredTextField = createComponent({
@@ -1141,7 +1211,9 @@ const WiredTextField = createComponent({
1141
1211
  });
1142
1212
  const TextField = forwardRef(({ leading, trailing, value, ...rest }, ref) => {
1143
1213
  const normalizedValue = value !== undefined ? String(value) : '';
1144
- return (jsxs(WiredTextField, { ...rest, value: normalizedValue, ref: ref, children: [leading != null && jsx("div", { slot: "leading", children: leading }), trailing != null && jsx("div", { slot: "trailing", children: trailing })] }));
1214
+ return (React.createElement(WiredTextField, { ...rest, value: normalizedValue, ref: ref },
1215
+ leading != null && React.createElement("div", { slot: "leading" }, leading),
1216
+ trailing != null && React.createElement("div", { slot: "trailing" }, trailing)));
1145
1217
  });
1146
1218
 
1147
1219
  const TimelineItem = createComponent({
@@ -1215,7 +1287,9 @@ const WiredToggle = createComponent({
1215
1287
  });
1216
1288
  const Toggle = forwardRef((props, ref) => {
1217
1289
  const { children, leading, ...rest } = props;
1218
- return (jsxs(WiredToggle, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
1290
+ return (React.createElement(WiredToggle, { ...rest, ref: ref },
1291
+ leading != null && React.createElement("span", { slot: "leading" }, leading),
1292
+ children));
1219
1293
  });
1220
1294
 
1221
1295
  const WiredToggleGroup = createComponent({
@@ -1227,15 +1301,15 @@ const WiredToggleGroup = createComponent({
1227
1301
  displayName: 'ToggleGroup',
1228
1302
  });
1229
1303
  function ToggleGroup({ options, children, onChange, ...rest }) {
1230
- return (jsx(WiredToggleGroup
1304
+ return (React.createElement(WiredToggleGroup
1231
1305
  // @ts-expect-error -- we can't type this properly because of the way the WC is implemented
1232
1306
  , {
1233
1307
  // @ts-expect-error -- we can't type this properly because of the way the WC is implemented
1234
- onChange: onChange, ...rest, children: children ??
1235
- (options || []).map(function renderOption(option) {
1236
- const { label, value: optionValue, ...others } = option;
1237
- return (jsx(Toggle, { ...others, value: optionValue, children: label }, optionValue));
1238
- }) }));
1308
+ onChange: onChange, ...rest }, children ??
1309
+ (options || []).map(function renderOption(option) {
1310
+ const { label, value: optionValue, ...others } = option;
1311
+ return (React.createElement(Toggle, { key: optionValue, ...others, value: optionValue }, label));
1312
+ })));
1239
1313
  }
1240
1314
  ToggleGroup.Toggle = Toggle;
1241
1315
 
@@ -1292,7 +1366,9 @@ function Tooltip(props) {
1292
1366
  }),
1293
1367
  ];
1294
1368
  })();
1295
- return (jsxs(Fragment, { children: [jsx(WiredTooltip, { anchor: anchorId, ...rest, children: message }), childWithId] }));
1369
+ return (React.createElement(React.Fragment, null,
1370
+ React.createElement(WiredTooltip, { anchor: anchorId, ...rest }, message),
1371
+ childWithId));
1296
1372
  }
1297
1373
 
1298
1374
  const LogoLoader = createComponent({
package/dist/tokens.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from '@loadsmart/miranda-tokens';
2
- export * from '@loadsmart/miranda-tokens/dist/themes';
2
+ export * from '@loadsmart/miranda-tokens/dist/themes.js';
package/dist/tokens.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from '@loadsmart/miranda-tokens';
2
- export * from '@loadsmart/miranda-tokens/dist/themes';
2
+ export * from '@loadsmart/miranda-tokens/dist/themes.js';
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@loadsmart/miranda-react",
3
- "version": "3.0.0-beta.57",
3
+ "version": "3.0.0-beta.58",
4
4
  "description": "React component library based on Miranda Web Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "type": "module",
7
8
  "files": [
8
9
  "dist"
9
10
  ],
@@ -39,8 +40,8 @@
39
40
  },
40
41
  "dependencies": {
41
42
  "@lit/react": "^1.0.5",
42
- "@loadsmart/miranda-tokens": "4.0.0-beta.57",
43
- "@loadsmart/miranda-wc": "3.0.0-beta.57",
43
+ "@loadsmart/miranda-tokens": "4.0.0-beta.58",
44
+ "@loadsmart/miranda-wc": "3.0.0-beta.58",
44
45
  "react-is": "^18.3.1"
45
46
  },
46
47
  "directories": {