@loadsmart/miranda-react 2.1.0 → 3.0.0-beta.1

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.
@@ -1,7 +1,6 @@
1
1
  import type { ReactNode, ComponentProps } from 'react';
2
2
  import { Checkbox as WCCheckbox } from '@loadsmart/miranda-wc';
3
- import type { CheckboxChangeEventDetail } from '@loadsmart/miranda-wc';
4
- import type { EventName, WebComponentProps } from '@lit/react';
3
+ import type { WebComponentProps } from '@lit/react';
5
4
  declare global {
6
5
  namespace JSX {
7
6
  interface IntrinsicElements {
@@ -10,7 +9,7 @@ declare global {
10
9
  }
11
10
  }
12
11
  declare const WiredCheckbox: import("@lit/react").ReactWebComponent<WCCheckbox, {
13
- onChange: EventName<CustomEvent<CheckboxChangeEventDetail>>;
12
+ onChange: string;
14
13
  }>;
15
14
  export type CheckboxProps = ComponentProps<typeof WiredCheckbox> & {
16
15
  leading?: ReactNode;
@@ -1,7 +1,6 @@
1
- import type { EventName, WebComponentProps } from '@lit/react';
1
+ import type { WebComponentProps } from '@lit/react';
2
2
  import { RadioGroup as WCRadioGroup } from '@loadsmart/miranda-wc';
3
3
  import type { ComponentProps } from 'react';
4
- import type { RadioGroupChangeEventDetail } from '@loadsmart/miranda-wc/dist/components/radio-group/radio-group';
5
4
  declare global {
6
5
  namespace JSX {
7
6
  interface IntrinsicElements {
@@ -10,7 +9,9 @@ declare global {
10
9
  }
11
10
  }
12
11
  declare const RadioGroup: import("@lit/react").ReactWebComponent<WCRadioGroup, {
13
- onChange: EventName<CustomEvent<RadioGroupChangeEventDetail>>;
14
- }>;
12
+ onChange: string;
13
+ }> & {
14
+ Radio: import("react").ForwardRefExoticComponent<Omit<import("./Radio").RadioProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").Radio>>;
15
+ };
15
16
  export type RadioGroupProps = ComponentProps<typeof RadioGroup>;
16
17
  export default RadioGroup;
@@ -1,7 +1,6 @@
1
1
  import type { ComponentProps } from 'react';
2
- import type { EventName, WebComponentProps } from '@lit/react';
2
+ import type { WebComponentProps } from '@lit/react';
3
3
  import { Switch as WCSwitch } from '@loadsmart/miranda-wc';
4
- import type { SwitchChangeEventDetail } from '@loadsmart/miranda-wc';
5
4
  declare global {
6
5
  namespace JSX {
7
6
  interface IntrinsicElements {
@@ -10,6 +9,6 @@ declare global {
10
9
  }
11
10
  }
12
11
  export declare const Switch: import("@lit/react").ReactWebComponent<WCSwitch, {
13
- onChange: EventName<CustomEvent<SwitchChangeEventDetail>>;
12
+ onChange: string;
14
13
  }>;
15
14
  export type SwitchProps = ComponentProps<typeof Switch>;
@@ -1,8 +1,7 @@
1
1
  import type { ComponentProps } from 'react';
2
- import type { EventName, WebComponentProps } from '@lit/react';
2
+ import type { WebComponentProps } from '@lit/react';
3
3
  import type { TextAreaProps as WCTextAreaProps } from '@loadsmart/miranda-wc';
4
4
  import { TextArea as WCTextArea } from '@loadsmart/miranda-wc';
5
- import type { ChangeEvent } from '@loadsmart/miranda-wc/dist/utils/types';
6
5
  declare global {
7
6
  namespace JSX {
8
7
  interface IntrinsicElements {
@@ -12,7 +11,7 @@ declare global {
12
11
  }
13
12
  declare const WiredTextArea: import("@lit/react").ReactWebComponent<WCTextArea, {
14
13
  onInput: string;
15
- onChange: EventName<ChangeEvent<HTMLTextAreaElement>>;
14
+ onChange: string;
16
15
  }>;
17
16
  export type TextAreaProps = ComponentProps<typeof WiredTextArea>;
18
17
  declare function TextArea(props: TextAreaProps): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,6 @@ import type { ReactNode, ComponentProps } from 'react';
2
2
  import type { EventName, WebComponentProps } from '@lit/react';
3
3
  import type { TextFieldProps as WCTextFieldProps } from '@loadsmart/miranda-wc';
4
4
  import { TextField as WCTextField } from '@loadsmart/miranda-wc';
5
- import type { ChangeEvent } from '@loadsmart/miranda-wc/dist/utils/types';
6
5
  declare global {
7
6
  namespace JSX {
8
7
  interface IntrinsicElements {
@@ -12,7 +11,7 @@ declare global {
12
11
  }
13
12
  declare const WiredTextField: import("@lit/react").ReactWebComponent<WCTextField, {
14
13
  onInput: string;
15
- onChange: EventName<ChangeEvent<HTMLInputElement>>;
14
+ onChange: string;
16
15
  onClear: EventName<CustomEvent<any>>;
17
16
  }>;
18
17
  export type TextFieldProps = ComponentProps<typeof WiredTextField> & {
@@ -1,6 +1,5 @@
1
1
  import type { ReactNode, ComponentProps } from 'react';
2
- import type { EventName, WebComponentProps } from '@lit/react';
3
- import type { ToggleGroupChangeEventDetail } from '@loadsmart/miranda-wc';
2
+ import type { WebComponentProps } from '@lit/react';
4
3
  import { ToggleGroup as WCToggleGroup } from '@loadsmart/miranda-wc';
5
4
  declare global {
6
5
  namespace JSX {
@@ -10,7 +9,7 @@ declare global {
10
9
  }
11
10
  }
12
11
  declare const WiredToggleGroup: import("@lit/react").ReactWebComponent<WCToggleGroup, {
13
- onChange: EventName<CustomEvent<ToggleGroupChangeEventDetail>>;
12
+ onChange: string;
14
13
  }>;
15
14
  export type ToggleGroupOption = {
16
15
  value: string;
@@ -22,4 +21,7 @@ export type ToggleGroupProps = ComponentProps<typeof WiredToggleGroup> & {
22
21
  options?: ToggleGroupOption[];
23
22
  };
24
23
  declare function ToggleGroup(props: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
24
+ declare namespace ToggleGroup {
25
+ var Toggle: import("react").ForwardRefExoticComponent<Omit<import("./Toggle").ToggleProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").Toggle>>;
26
+ }
25
27
  export default ToggleGroup;
@@ -10,9 +10,8 @@ declare global {
10
10
  }
11
11
  }
12
12
  declare const WiredTooltip: import("@lit/react").ReactWebComponent<WCTooltip, {}>;
13
- export type TooltipProps = Omit<ComponentProps<typeof WiredTooltip>, 'trigger'> & {
14
- message: ReactNode;
15
- trigger?: TooltipTrigger | TooltipTrigger[];
13
+ export type TooltipProps = ComponentProps<typeof WiredTooltip> & {
14
+ message?: ReactNode;
16
15
  };
17
16
  export declare function Tooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element;
18
17
  export type { TooltipPlacement, TooltipTrigger };
package/dist/index.d.ts CHANGED
@@ -46,7 +46,7 @@ export type { ButtonProps as WCButtonProps, ButtonSize, ButtonType, ButtonVarian
46
46
  export { Card as WCCard, CardBody as WCCardBody, CardSubtitle as WCCardSubtitle, CardTitle as WCCardTitle, CardDivider as WCCardDivider, CardFooter as WCCardFooter, CardActionPrimary as WCCardActionPrimary, CardActionSecondary as WCCardActionSecondary, CardActionTertiary as WCCardActionTertiary, } from '@loadsmart/miranda-wc';
47
47
  export type { CardProps as WCCardProps, CardToggleEventDetails, } from '@loadsmart/miranda-wc';
48
48
  export { Checkbox as WCCheckbox } from '@loadsmart/miranda-wc';
49
- export type { CheckboxProps as WCCheckboxProps, CheckboxChangeEventDetail, } from '@loadsmart/miranda-wc';
49
+ export type { CheckboxProps as WCCheckboxProps } from '@loadsmart/miranda-wc';
50
50
  export { 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, } from '@loadsmart/miranda-wc';
51
51
  export type { DialogProps as WCDialogProps } from '@loadsmart/miranda-wc';
52
52
  export { Divider as WCDivider } from '@loadsmart/miranda-wc';
@@ -73,7 +73,7 @@ export type { ProgressBarProps as WCProgressBarProps } from '@loadsmart/miranda-
73
73
  export { ProgressBarCountdown as WCProgressBarCountdown } from '@loadsmart/miranda-wc';
74
74
  export type { ProgressBarCountdownProps as WCProgressBarCountdownProps } from '@loadsmart/miranda-wc';
75
75
  export { Radio as WCRadio, RadioGroup as WCRadioGroup, } from '@loadsmart/miranda-wc';
76
- export type { RadioProps as WCRadioProps, RadioGroupProps as WCRadioGroupProps, RadioGroupOrientation, RadioGroupChangeEventDetail, } from '@loadsmart/miranda-wc';
76
+ export type { RadioProps as WCRadioProps, RadioGroupProps as WCRadioGroupProps, RadioGroupOrientation, } from '@loadsmart/miranda-wc';
77
77
  export { Section as WCSection, SectionTitle as WCSectionTitle, } from '@loadsmart/miranda-wc';
78
78
  export type { SectionProps as WCSectionProps } from '@loadsmart/miranda-wc';
79
79
  export { SpinnerWheel as WCSpinnerWheel } from '@loadsmart/miranda-wc';
@@ -81,7 +81,7 @@ export type { SpinnerWheelProps as WCSpinnerWheelProps } from '@loadsmart/mirand
81
81
  export { Step as WCStep, Steps as WCSteps } from '@loadsmart/miranda-wc';
82
82
  export type { StepProps as WCStepProps, NavigateStepEventDetail, } from '@loadsmart/miranda-wc';
83
83
  export { Switch as WCSwitch } from '@loadsmart/miranda-wc';
84
- export type { SwitchProps as WCSwitchProps, SwitchSize, SwitchChangeEventDetail, } from '@loadsmart/miranda-wc';
84
+ export type { SwitchProps as WCSwitchProps, SwitchSize, } from '@loadsmart/miranda-wc';
85
85
  export { Table as WCTable, TableHead as WCTableHead, TableHeadCell as WCTableHeadCell, TableBody as WCTableBody, TableFoot as WCTableFoot, TableRow as WCTableRow, TableCell as WCTableCell, TableToolbar as WCTableToolbar, TableFeedback as WCTableFeedback, TableActions as WCTableActions, } from '@loadsmart/miranda-wc';
86
86
  export type { TableProps as WCTableProps, TableCellProps as WCTableCellProps, TableHeadCellProps as WCTableHeadCellProps, } from '@loadsmart/miranda-wc';
87
87
  export { Tabs as WCTabs, Tab as WCTab, TabPanel as WCTabPanel, } from '@loadsmart/miranda-wc';
@@ -97,7 +97,7 @@ export type { TextFieldProps as WCTextFieldProps } from '@loadsmart/miranda-wc';
97
97
  export { 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, } from '@loadsmart/miranda-wc';
98
98
  export type { TimelineItemProps as WCTimelineItemProps, TimelineItemVariant, } from '@loadsmart/miranda-wc';
99
99
  export { Toggle as WCToggle, ToggleGroup as WCToggleGroup, } from '@loadsmart/miranda-wc';
100
- export type { ToggleProps as WCToggleProps, ToggleGroupProps as WCToggleGroupProps, ToggleSize, ToggleGroupChangeEventDetail, } from '@loadsmart/miranda-wc';
100
+ export type { ToggleProps as WCToggleProps, ToggleGroupProps as WCToggleGroupProps, ToggleSize, } from '@loadsmart/miranda-wc';
101
101
  export { Tooltip as WCTooltip } from '@loadsmart/miranda-wc';
102
102
  export type { TooltipProps as WCTooltipProps } from '@loadsmart/miranda-wc';
103
103
  export { LogoLoader as WCLogoLoader } from '@loadsmart/miranda-wc';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
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, 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, RadioGroup as RadioGroup$1, Radio as Radio$1, SectionTitle as SectionTitle$1, Section as Section$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, 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 } from '@loadsmart/miranda-wc';
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, 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, 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, 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 } 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
3
  import * as React from 'react';
4
- import { forwardRef, useState, useCallback, useRef, useEffect } from 'react';
4
+ import { forwardRef, useState, useCallback } from 'react';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
 
7
7
  function _extends() {
@@ -313,7 +313,7 @@ const WiredCheckbox = createComponent({
313
313
  tagName: 'm-checkbox',
314
314
  elementClass: Checkbox$1,
315
315
  events: {
316
- onChange: 'm-change',
316
+ onChange: 'change',
317
317
  },
318
318
  displayName: 'Checkbox',
319
319
  });
@@ -795,15 +795,6 @@ const ProgressBarCountdown = createComponent({
795
795
  displayName: 'ProgressBarCountdown',
796
796
  });
797
797
 
798
- const RadioGroup = createComponent({
799
- tagName: 'm-radio-group',
800
- elementClass: RadioGroup$1,
801
- events: {
802
- onChange: 'm-change',
803
- },
804
- displayName: 'RadioGroup',
805
- });
806
-
807
798
  const WiredRadio = createComponent({
808
799
  tagName: 'm-radio',
809
800
  elementClass: Radio$1,
@@ -814,6 +805,18 @@ const Radio = forwardRef((props, ref) => {
814
805
  return (jsxs(WiredRadio, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
815
806
  });
816
807
 
808
+ const RadioGroup = createComponent({
809
+ tagName: 'm-radio-group',
810
+ elementClass: RadioGroup$1,
811
+ subComponents: {
812
+ Radio,
813
+ },
814
+ events: {
815
+ onChange: 'change',
816
+ },
817
+ displayName: 'RadioGroup',
818
+ });
819
+
817
820
  const WiredSectionTitle = createComponent({
818
821
  tagName: 'm-section-title',
819
822
  elementClass: SectionTitle$1,
@@ -926,7 +929,7 @@ const Switch = createComponent({
926
929
  elementClass: Switch$1,
927
930
  displayName: 'Switch',
928
931
  events: {
929
- onChange: 'm-change',
932
+ onChange: 'change',
930
933
  },
931
934
  });
932
935
 
@@ -1167,52 +1170,27 @@ const WiredToggleGroup = createComponent({
1167
1170
  tagName: 'm-toggle-group',
1168
1171
  elementClass: ToggleGroup$1,
1169
1172
  events: {
1170
- onChange: 'm-change',
1173
+ onChange: 'change',
1171
1174
  },
1172
1175
  displayName: 'ToggleGroup',
1173
1176
  });
1174
1177
  function ToggleGroup(props) {
1175
- const { value, options, children, disabled, ...rest } = props;
1176
- const ref = useRef(null);
1177
- useEffect(
1178
- /**
1179
- * we use a `ref` to update the `value` attribute whenever the `value` prop
1180
- * changes. As the m-toggle-group accepts `string | string[]` and arrays
1181
- * cannot be passed as regular attributes, setting the value via reference
1182
- * seemed a convenient way to do that without needing any parsing or serialization.
1183
- */
1184
- function onValueChange() {
1185
- if (ref.current == null) {
1186
- return;
1187
- }
1188
- ref.current.value = value;
1189
- }, [value]);
1190
- return (jsx(WiredToggleGroup, { ref: ref, disabled: disabled, ...rest, children: children !== null && children !== void 0 ? children : (options || []).map(function renderOption(option) {
1178
+ const { options, children, ...rest } = props;
1179
+ return (jsx(WiredToggleGroup, { ...rest, children: children !== null && children !== void 0 ? children : (options || []).map(function renderOption(option) {
1191
1180
  const { label, value: optionValue, ...others } = option;
1192
- return (jsx(Toggle, { ...others, disabled: Boolean(disabled || option.disabled), value: optionValue, children: label }, optionValue));
1181
+ return (jsx(Toggle, { ...others, value: optionValue, children: label }, optionValue));
1193
1182
  }) }));
1194
1183
  }
1184
+ ToggleGroup.Toggle = Toggle;
1195
1185
 
1196
1186
  const WiredTooltip = createComponent({
1197
1187
  tagName: 'm-tooltip',
1198
1188
  elementClass: Tooltip$1,
1199
1189
  displayName: 'Tooltip',
1200
1190
  });
1201
- const FLOATING_STYLE = {
1202
- display: 'flex',
1203
- alignItems: 'center',
1204
- maxWidth: '100%',
1205
- };
1206
1191
  function Tooltip(props) {
1207
- const { children, message, trigger, ...rest } = props;
1208
- const ref = useRef(null);
1209
- useEffect(function onTriggerChange() {
1210
- if (ref.current == null || trigger == null) {
1211
- return;
1212
- }
1213
- ref.current.trigger = Array.isArray(trigger) ? trigger : [trigger];
1214
- }, [trigger]);
1215
- return (jsxs(WiredTooltip, { ref: ref, ...rest, children: [jsx(Box, { slot: "floating", padding: "none", children: message }), jsx("span", { slot: "reference", style: FLOATING_STYLE, children: children })] }));
1192
+ const { children, message, ...rest } = props;
1193
+ return jsx(WiredTooltip, { ...rest, children: message !== null && message !== void 0 ? message : children });
1216
1194
  }
1217
1195
 
1218
1196
  const LogoLoader = createComponent({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loadsmart/miranda-react",
3
- "version": "2.1.0",
3
+ "version": "3.0.0-beta.1",
4
4
  "description": "React component library based on Miranda Web Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -40,8 +40,8 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@loadsmart/miranda-tokens": "3.1.0",
44
- "@loadsmart/miranda-wc": "2.1.0",
43
+ "@loadsmart/miranda-tokens": "4.0.0-beta.1",
44
+ "@loadsmart/miranda-wc": "3.0.0-beta.1",
45
45
  "@lit/react": "^1.0.5"
46
46
  },
47
47
  "directories": {