@loadsmart/miranda-react 3.0.0-alpha.2 → 3.0.0-beta.10

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.
Files changed (129) hide show
  1. package/dist/components/Accordion/index.d.ts +0 -2
  2. package/dist/components/Badge/index.d.ts +0 -2
  3. package/dist/components/Banner/Banner.d.ts +1 -0
  4. package/dist/components/Banner/index.d.ts +1 -3
  5. package/dist/components/Button/index.d.ts +0 -2
  6. package/dist/components/Card/index.d.ts +0 -2
  7. package/dist/components/Checkbox/Checkbox.d.ts +4 -3
  8. package/dist/components/Checkbox/index.d.ts +0 -2
  9. package/dist/components/Dialog/index.d.ts +0 -2
  10. package/dist/components/Divider/index.d.ts +0 -1
  11. package/dist/components/Drawer/index.d.ts +0 -2
  12. package/dist/components/Dropdown/index.d.ts +0 -2
  13. package/dist/components/EmptyState/index.d.ts +0 -1
  14. package/dist/components/Field/index.d.ts +0 -2
  15. package/dist/components/Header/index.d.ts +0 -1
  16. package/dist/components/Icon/index.d.ts +0 -2
  17. package/dist/components/LabeledValue/index.d.ts +0 -2
  18. package/dist/components/Layout/index.d.ts +0 -2
  19. package/dist/components/Link/Link.d.ts +2 -0
  20. package/dist/components/Link/index.d.ts +1 -3
  21. package/dist/components/LogoLoader/index.d.ts +0 -2
  22. package/dist/components/PageContent/index.d.ts +0 -4
  23. package/dist/components/Pagination/index.d.ts +0 -2
  24. package/dist/components/ProgressBar/ProgressBar.d.ts +2 -0
  25. package/dist/components/ProgressBar/index.d.ts +1 -3
  26. package/dist/components/ProgressBarCountdown/index.d.ts +0 -2
  27. package/dist/components/RadioGroup/RadioGroup.d.ts +3 -2
  28. package/dist/components/RadioGroup/index.d.ts +0 -2
  29. package/dist/components/Section/index.d.ts +0 -2
  30. package/dist/components/Select/Select.d.ts +31 -0
  31. package/dist/components/Select/SelectOption.d.ts +16 -0
  32. package/dist/components/Select/index.d.ts +2 -0
  33. package/dist/components/SpinnerWheel/index.d.ts +0 -2
  34. package/dist/components/Steps/Steps.d.ts +3 -2
  35. package/dist/components/Steps/index.d.ts +0 -2
  36. package/dist/components/Steps/useSteps.d.ts +1 -1
  37. package/dist/components/Switch/Switch.d.ts +4 -3
  38. package/dist/components/Switch/index.d.ts +0 -2
  39. package/dist/components/Table/index.d.ts +1 -2
  40. package/dist/components/Tabs/index.d.ts +1 -2
  41. package/dist/components/Tag/ActionableTag.d.ts +4 -4
  42. package/dist/components/Tag/index.d.ts +0 -2
  43. package/dist/components/Text/index.d.ts +0 -2
  44. package/dist/components/TextArea/TextArea.d.ts +5 -4
  45. package/dist/components/TextArea/index.d.ts +0 -2
  46. package/dist/components/TextField/TextField.d.ts +6 -6
  47. package/dist/components/TextField/index.d.ts +0 -2
  48. package/dist/components/Timeline/index.d.ts +0 -2
  49. package/dist/components/ToggleGroup/ToggleGroup.d.ts +4 -3
  50. package/dist/components/ToggleGroup/index.d.ts +0 -2
  51. package/dist/components/Tooltip/Tooltip.d.ts +13 -5
  52. package/dist/components/Tooltip/index.d.ts +1 -3
  53. package/dist/index.d.ts +70 -0
  54. package/dist/index.js +1284 -40
  55. package/dist/utils/types.d.ts +6 -0
  56. package/package.json +6 -4
  57. package/dist/Accordion-CRFOEG8P.js +0 -35
  58. package/dist/ActionableTag-CiY3ktmR.js +0 -30
  59. package/dist/Badge-bksnMK0y.js +0 -10
  60. package/dist/Banner-DKi8HnhY.js +0 -67
  61. package/dist/Button-MYGS0n5V.js +0 -16
  62. package/dist/Card-DMVgqLq2.js +0 -88
  63. package/dist/Checkbox-OA3mt9qr.js +0 -19
  64. package/dist/Dialog-BXmQb7iZ.js +0 -92
  65. package/dist/Divider-Ce0Poebo.js +0 -10
  66. package/dist/Drawer-DAL5BRMS.js +0 -84
  67. package/dist/Dropdown-BZq7wxH2.js +0 -47
  68. package/dist/EmptyState-N_H8UALy.js +0 -49
  69. package/dist/Field-DUTm4XZx.js +0 -31
  70. package/dist/Header-BVVroF-a.js +0 -47
  71. package/dist/Icon-JSXp1ySp.js +0 -10
  72. package/dist/LabeledValue-BEj3zEk5.js +0 -33
  73. package/dist/Layout-yKvtIEmV.js +0 -81
  74. package/dist/Link-XqV4DM9g.js +0 -10
  75. package/dist/LogoLoader-Bjplh2u3.js +0 -10
  76. package/dist/PageContent-Bu0ofdVV.js +0 -19
  77. package/dist/Pagination-D2HYqeb2.js +0 -13
  78. package/dist/ProgressBar-CdwVUs1k.js +0 -10
  79. package/dist/ProgressBarCountdown-BsTb_5jd.js +0 -10
  80. package/dist/RadioGroup-QWrSrVvv.js +0 -28
  81. package/dist/Section-BcuVyQXQ.js +0 -24
  82. package/dist/SpinnerWheel-BqMAxsBi.js +0 -10
  83. package/dist/Switch-Uq5TuNqD.js +0 -13
  84. package/dist/Table-DlnVsR0p.js +0 -78
  85. package/dist/Tabs-9eHquUoD.js +0 -34
  86. package/dist/Text-BUtQqPKN.js +0 -10
  87. package/dist/TextArea-DNtv4x9o.js +0 -18
  88. package/dist/TextField-BHj0EHuT.js +0 -20
  89. package/dist/Timeline-MCAixOaW.js +0 -68
  90. package/dist/ToggleGroup-ig9rKVtU.js +0 -33
  91. package/dist/Tooltip-0sGIbwe8.js +0 -15
  92. package/dist/accordion.js +0 -5
  93. package/dist/badge.js +0 -4
  94. package/dist/banner.js +0 -5
  95. package/dist/button.js +0 -5
  96. package/dist/card.js +0 -5
  97. package/dist/checkbox.js +0 -5
  98. package/dist/createComponent-Cye6h9wF.js +0 -120
  99. package/dist/dialog.js +0 -5
  100. package/dist/divider.js +0 -4
  101. package/dist/drawer.js +0 -5
  102. package/dist/dropdown.js +0 -5
  103. package/dist/emptystate.js +0 -5
  104. package/dist/field.js +0 -5
  105. package/dist/header.js +0 -4
  106. package/dist/icon.js +0 -4
  107. package/dist/labeledvalue.js +0 -5
  108. package/dist/layout.js +0 -5
  109. package/dist/link.js +0 -4
  110. package/dist/logoloader.js +0 -4
  111. package/dist/pagecontent.js +0 -4
  112. package/dist/pagination.js +0 -4
  113. package/dist/progressbar.js +0 -4
  114. package/dist/progressbarcountdown.js +0 -4
  115. package/dist/radiogroup.js +0 -5
  116. package/dist/section.js +0 -5
  117. package/dist/spinnerwheel.js +0 -4
  118. package/dist/steps.js +0 -4
  119. package/dist/switch.js +0 -4
  120. package/dist/table.js +0 -4
  121. package/dist/tabs.js +0 -5
  122. package/dist/tag.js +0 -5
  123. package/dist/text.js +0 -4
  124. package/dist/textarea.js +0 -5
  125. package/dist/textfield.js +0 -5
  126. package/dist/timeline.js +0 -4
  127. package/dist/togglegroup.js +0 -5
  128. package/dist/tooltip.js +0 -5
  129. package/dist/useSteps-O9Ch5_pJ.js +0 -88
@@ -1,4 +1,2 @@
1
1
  export { default as Accordion } from './Accordion';
2
2
  export type { AccordionProps } from './Accordion';
3
- export { Accordion as WCAccordion, AccordionTitle as WCAccordionTitle, AccordionContent as WCAccordionContent, } from '@loadsmart/miranda-wc';
4
- export type { AccordionProps as WCAccordionProps, AccordionToggleEventDetails, } from '@loadsmart/miranda-wc';
@@ -1,4 +1,2 @@
1
1
  export { Badge } from './Badge';
2
2
  export type { BadgeProps } from './Badge';
3
- export { Badge as WCBadge } from '@loadsmart/miranda-wc';
4
- export type { BadgeProps as WCBadgeProps } from '@loadsmart/miranda-wc';
@@ -19,3 +19,4 @@ export declare const Banner: import("@lit/react").ReactWebComponent<WCBanner, {
19
19
  Title: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").BannerTitle, {}>;
20
20
  };
21
21
  export type BannerProps = ComponentProps<typeof Banner>;
22
+ export type { BannerVariant } from '@loadsmart/miranda-wc';
@@ -1,4 +1,2 @@
1
1
  export { Banner } from './Banner';
2
- export type { BannerProps } from './Banner';
3
- export { Banner as WCBanner, BannerActions as WCBannerActions, BannerActionPrimary as WCBannerActionPrimary, BannerActionSecondary as WCBannerActionSecondary, BannerDescription as WCBannerDescription, BannerIcon as WCBannerIcon, BannerTitle as WCBannerTitle, } from '@loadsmart/miranda-wc';
4
- export type { BannerProps as WCBannerProps, BannerVariant, } from '@loadsmart/miranda-wc';
2
+ export type { BannerProps, BannerVariant } from './Banner';
@@ -1,4 +1,2 @@
1
1
  export { default as Button } from './Button';
2
2
  export type { ButtonProps } from './Button';
3
- export { Button as WCButton } from '@loadsmart/miranda-wc';
4
- export type { ButtonProps as WCButtonProps, ButtonSize, ButtonType, ButtonVariant, } from '@loadsmart/miranda-wc';
@@ -1,4 +1,2 @@
1
1
  export { default as Card } from './Card';
2
2
  export type { CardProps } from './Card';
3
- 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';
4
- export type { CardProps as WCCardProps, CardToggleEventDetails, } from '@loadsmart/miranda-wc';
@@ -1,6 +1,7 @@
1
- import type { ReactNode, ComponentProps } from 'react';
2
1
  import { Checkbox as WCCheckbox } from '@loadsmart/miranda-wc';
3
- import type { WebComponentProps } from '@lit/react';
2
+ import type { EventName, WebComponentProps } from '@lit/react';
3
+ import type { ReactNode, ComponentProps } from 'react';
4
+ import type { MirandaChangeEvent } from '../../utils/types';
4
5
  declare global {
5
6
  namespace JSX {
6
7
  interface IntrinsicElements {
@@ -9,7 +10,7 @@ declare global {
9
10
  }
10
11
  }
11
12
  declare const WiredCheckbox: import("@lit/react").ReactWebComponent<WCCheckbox, {
12
- onChange: string;
13
+ onChange: EventName<MirandaChangeEvent<WCCheckbox>>;
13
14
  }>;
14
15
  export type CheckboxProps = ComponentProps<typeof WiredCheckbox> & {
15
16
  leading?: ReactNode;
@@ -1,4 +1,2 @@
1
1
  export { default as Checkbox } from './Checkbox';
2
2
  export type { CheckboxProps } from './Checkbox';
3
- export { Checkbox as WCCheckbox } from '@loadsmart/miranda-wc';
4
- export type { CheckboxProps as WCCheckboxProps } from '@loadsmart/miranda-wc';
@@ -1,6 +1,4 @@
1
1
  export { Dialog } from './Dialog';
2
2
  export type { DialogProps, DialogActionPrimaryProps, DialogActionSecondaryProps, DialogActionTertiaryProps, DialogActionsProps, DialogBodyProps, DialogCloseProps, DialogFooterProps, DialogHeaderProps, } from './Dialog';
3
- 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';
4
3
  export { DIALOG_SIZES, DIALOG_VARIANTS } from '@loadsmart/miranda-wc';
5
4
  export type { DialogSize, DialogVariant } from '@loadsmart/miranda-wc';
6
- export type { DialogProps as WCDialogProps } from '@loadsmart/miranda-wc';
@@ -1,3 +1,2 @@
1
1
  export { Divider } from './Divider';
2
2
  export type { DividerProps } from './Divider';
3
- export { Divider as WCDivider } from '@loadsmart/miranda-wc';
@@ -1,6 +1,4 @@
1
1
  export { Drawer } from './Drawer';
2
2
  export type { DrawerProps, DrawerActionPrimaryProps, DrawerActionSecondaryProps, DrawerActionTertiaryProps, DrawerActionsProps, DrawerBodyProps, DrawerCloseProps, DrawerHeaderProps, } from './Drawer';
3
- export { Drawer as WCDrawer, DrawerActionPrimary as WCDrawerActionPrimary, DrawerActionSecondary as WCDrawerActionSecondary, DrawerActionTertiary as WCDrawerActionTertiary, DrawerActions as WCDrawerActions, DrawerBody as WCDrawerBody, DrawerClose as WCDrawerClose, DrawerHeader as WCDrawerHeader, } from '@loadsmart/miranda-wc';
4
3
  export { DRAWER_SIZES } from '@loadsmart/miranda-wc';
5
- export type { DrawerProps as WCDrawerProps } from '@loadsmart/miranda-wc';
6
4
  export type { DrawerSize } from '@loadsmart/miranda-wc';
@@ -3,5 +3,3 @@ export { DropdownMenu } from './DropdownMenu';
3
3
  export { DropdownItem } from './DropdownItem';
4
4
  export { DropdownTrigger } from './DropdownTrigger';
5
5
  export type { DropdownProps, DropdownItemProps, DropdownTriggerProps, DropdownMenuProps, } from './Dropdown';
6
- export { Dropdown as WCDropdown, DropdownTrigger as WCDropdownTrigger, DropdownMenu as WCDropdownMenu, DropdownItem as WCDropdownItem, } from '@loadsmart/miranda-wc';
7
- export type { DropdownProps as WCDropdownProps, DropdownItemProps as WCDropdownItemProps, DropdownTriggerProps as WCDropdownTriggerProps, DropdownPlacement, DropdownSize, } from '@loadsmart/miranda-wc';
@@ -1,5 +1,4 @@
1
1
  export { EmptyState } from './EmptyState';
2
2
  export type { EmptyStateProps, EmptyStateIllustrationProps, EmptyStateHeaderProps, EmptyStateMessageProps, EmptyStateActionProps, } from './EmptyState';
3
- export { EmptyState as WCEmptyState, EmptyStateAction as WCEmptyStateAction, EmptyStateHeader as WCEmptyStateHeader, EmptyStateIllustration as WCEmptyStateIllustration, EmptyStateMessage as WCEmptyStateMessage, } from '@loadsmart/miranda-wc';
4
3
  export { EMPTY_STATE_VARIANTS } from '@loadsmart/miranda-wc';
5
4
  export type { EmptyStateVariant } from '@loadsmart/miranda-wc';
@@ -1,4 +1,2 @@
1
1
  export { default as Field } from './Field';
2
2
  export type { FieldProps } from './Field';
3
- export { Field as WCField, FieldLabel as WCFieldLabel, FieldHint as WCFieldHint, } from '@loadsmart/miranda-wc';
4
- export type { FieldProps as WCFieldProps, FieldHintProps as WCFieldHintProps, FieldLabelProps as WCFieldLabelProps, FieldSize, FieldStatus, } from '@loadsmart/miranda-wc';
@@ -6,4 +6,3 @@ export { SubHeader } from './SubHeader';
6
6
  export type { SubHeaderProps } from './SubHeader';
7
7
  export { HeaderTitle } from './HeaderTitle';
8
8
  export type { HeaderTitleProps } from './HeaderTitle';
9
- export { Header as WCHeader, HeaderActions as WCHeaderActions, HeaderContent as WCHeaderContent, HeaderTitle as WCHeaderTitle, SubHeader as WCSubHeader, } from '@loadsmart/miranda-wc';
@@ -1,4 +1,2 @@
1
1
  export { default as Icon } from './Icon';
2
2
  export type { IconProps } from './Icon';
3
- export { Icon as WCIcon } from '@loadsmart/miranda-wc';
4
- export type { IconProps as WCIconProps, IconName } from '@loadsmart/miranda-wc';
@@ -1,3 +1 @@
1
1
  export * from './LabeledValue';
2
- export { LabeledValue as WCLabeledValue, LabeledValueLabel as WCLabeledValueLabel, LabeledValueValue as WCLabeledValueValue, } from '@loadsmart/miranda-wc';
3
- export type { LabeledValueProps as WCLabeledValueProps } from '@loadsmart/miranda-wc';
@@ -7,5 +7,3 @@ export { default as Sidebar, type SidebarProps, type SidebarSideProps, type Side
7
7
  export { default as Switcher, type SwitcherProps } from './Switcher';
8
8
  export { Row, Column, Container } from './Row';
9
9
  export type { RowProps, ColumnProps, ContainerProps } from './Row';
10
- export { Box as WCBox, Group as WCGroup, Stack as WCStack, Grid as WCGrid, Sidebar as WCSidebar, Switcher as WCSwitcher, Container as WCContainer, Row as WCRow, Column as WCColumn, } from '@loadsmart/miranda-wc';
11
- export type { BoxProps as WCBoxProps, GroupProps as WCGroupProps, StackProps as WCStackProps, GridProps as WCGridProps, SidebarProps as WCSidebarProps, SwitcherProps as WCSwitcherProps, ColumnProps as WCColumnProps, RowProps as WCRowProps, ColumnSize, JustifyContentValue, AlignItemsValue, } from '@loadsmart/miranda-wc';
@@ -1,6 +1,7 @@
1
1
  import type { ComponentProps } from 'react';
2
2
  import type { WebComponentProps } from '@lit/react';
3
3
  import { Link as WCLink } from '@loadsmart/miranda-wc';
4
+ import type { LinkReferrerPolicy, LinkSize, LinkTarget } from '@loadsmart/miranda-wc';
4
5
  declare global {
5
6
  namespace JSX {
6
7
  interface IntrinsicElements {
@@ -10,3 +11,4 @@ declare global {
10
11
  }
11
12
  export declare const Link: import("@lit/react").ReactWebComponent<WCLink, {}>;
12
13
  export type LinkProps = ComponentProps<typeof Link>;
14
+ export type { LinkReferrerPolicy, LinkSize, LinkTarget };
@@ -1,4 +1,2 @@
1
1
  export { Link } from './Link';
2
- export type { LinkProps } from './Link';
3
- export { Link as WCLink } from '@loadsmart/miranda-wc';
4
- export type { LinkReferrerPolicy, LinkSize, LinkTarget, } from '@loadsmart/miranda-wc';
2
+ export type { LinkReferrerPolicy, LinkSize, LinkTarget } from './Link';
@@ -1,4 +1,2 @@
1
1
  export { default as LogoLoader } from './LogoLoader';
2
2
  export type { LogoLoaderProps } from './LogoLoader';
3
- export { LogoLoader as WCLogoLoader } from '@loadsmart/miranda-wc';
4
- export type { LogoLoaderProps as WCLogoLoaderProps } from '@loadsmart/miranda-wc';
@@ -1,5 +1 @@
1
1
  export { PageContent } from './PageContent';
2
- export type { PageContentProps } from './PageContent';
3
- export { Body } from './Body';
4
- export type { BodyProps } from './Body';
5
- export { PageContent as WCPageContent, Body as WCBody, } from '@loadsmart/miranda-wc';
@@ -1,4 +1,2 @@
1
1
  export { default as Pagination } from './Pagination';
2
2
  export type { PaginationProps } from './Pagination';
3
- export { Pagination as WCPagination } from '@loadsmart/miranda-wc';
4
- export type { PaginationProps as WCPaginationProps, PaginationChangeEventDetails, } from '@loadsmart/miranda-wc';
@@ -1,6 +1,8 @@
1
1
  import type { ComponentProps } from 'react';
2
2
  import type { WebComponentProps } from '@lit/react';
3
3
  import { ProgressBar as WCProgressBar } from '@loadsmart/miranda-wc';
4
+ import type { ProgressBarVariant as WCProgressBarVariant } from '@loadsmart/miranda-wc';
5
+ export type ProgressBarVariant = WCProgressBarVariant;
4
6
  declare global {
5
7
  namespace JSX {
6
8
  interface IntrinsicElements {
@@ -1,4 +1,2 @@
1
1
  export { default as ProgressBar } from './ProgressBar';
2
- export type { ProgressBarProps } from './ProgressBar';
3
- export { ProgressBar as WCProgressBar } from '@loadsmart/miranda-wc';
4
- export type { ProgressBarProps as WCProgressBarProps, ProgressBarVariant, } from '@loadsmart/miranda-wc';
2
+ export type { ProgressBarProps, ProgressBarVariant } from './ProgressBar';
@@ -1,4 +1,2 @@
1
1
  export { default as ProgressBarCountdown } from './ProgressBarCountdown';
2
2
  export type { ProgressBarCountdownProps } from './ProgressBarCountdown';
3
- export { ProgressBarCountdown as WCProgressBarCountdown } from '@loadsmart/miranda-wc';
4
- export type { ProgressBarCountdownProps as WCProgressBarCountdownProps } from '@loadsmart/miranda-wc';
@@ -1,6 +1,7 @@
1
- import type { WebComponentProps } from '@lit/react';
2
1
  import { RadioGroup as WCRadioGroup } from '@loadsmart/miranda-wc';
3
2
  import type { ComponentProps } from 'react';
3
+ import type { EventName, WebComponentProps } from '@lit/react';
4
+ import type { MirandaChangeEvent } from '../../utils/types';
4
5
  declare global {
5
6
  namespace JSX {
6
7
  interface IntrinsicElements {
@@ -9,7 +10,7 @@ declare global {
9
10
  }
10
11
  }
11
12
  declare const RadioGroup: import("@lit/react").ReactWebComponent<WCRadioGroup, {
12
- onChange: string;
13
+ onChange: EventName<MirandaChangeEvent<WCRadioGroup>>;
13
14
  }> & {
14
15
  Radio: import("react").ForwardRefExoticComponent<Omit<import("./Radio").RadioProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").Radio>>;
15
16
  };
@@ -2,5 +2,3 @@ export { default as RadioGroup } from './RadioGroup';
2
2
  export { default as Radio } from './Radio';
3
3
  export type { RadioGroupProps } from './RadioGroup';
4
4
  export type { RadioProps } from './Radio';
5
- export { Radio as WCRadio, RadioGroup as WCRadioGroup, } from '@loadsmart/miranda-wc';
6
- export type { RadioProps as WCRadioProps, RadioGroupProps as WCRadioGroupProps, RadioGroupOrientation, } from '@loadsmart/miranda-wc';
@@ -1,4 +1,2 @@
1
1
  export { default as Section } from './Section';
2
2
  export type { SectionProps } from './Section';
3
- export { Section as WCSection, SectionTitle as WCSectionTitle, } from '@loadsmart/miranda-wc';
4
- export type { SectionProps as WCSectionProps } from '@loadsmart/miranda-wc';
@@ -0,0 +1,31 @@
1
+ import { Select as WCSelect } from '@loadsmart/miranda-wc';
2
+ import type { EventName, WebComponentProps } from '@lit/react';
3
+ import type { ReactNode, ComponentProps } from 'react';
4
+ import type { MirandaChangeEvent } from '../../utils/types';
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ 'm-select': WebComponentProps<WCSelect>;
9
+ }
10
+ }
11
+ }
12
+ declare const WiredSelect: import("@lit/react").ReactWebComponent<WCSelect, {
13
+ onExpand: EventName<CustomEvent<any>>;
14
+ onCollapse: EventName<CustomEvent<any>>;
15
+ onChange: EventName<MirandaChangeEvent<WCSelect>>;
16
+ }>;
17
+ export type SelectOption = {
18
+ value: string;
19
+ label?: string;
20
+ leading?: ReactNode;
21
+ trailing?: ReactNode;
22
+ disabled?: boolean;
23
+ };
24
+ export type SelectProps = ComponentProps<typeof WiredSelect> & {
25
+ options?: SelectOption[];
26
+ };
27
+ export declare function Select(props: SelectProps): import("react/jsx-runtime").JSX.Element;
28
+ export declare namespace Select {
29
+ var Option: import("react").ForwardRefExoticComponent<Omit<import("./SelectOption").SelectOptionProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").SelectOption>>;
30
+ }
31
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ import type { WebComponentProps } from '@lit/react';
3
+ import { SelectOption as WCSelectOption } from '@loadsmart/miranda-wc';
4
+ declare global {
5
+ namespace JSX {
6
+ interface IntrinsicElements {
7
+ 'm-option': WebComponentProps<WCSelectOption>;
8
+ }
9
+ }
10
+ }
11
+ export declare const WiredSelectOption: import("@lit/react").ReactWebComponent<WCSelectOption, {}>;
12
+ export interface SelectOptionProps extends ComponentProps<typeof WiredSelectOption> {
13
+ leading?: ReactNode;
14
+ trailing?: ReactNode;
15
+ }
16
+ export declare const SelectOption: import("react").ForwardRefExoticComponent<Omit<SelectOptionProps, "ref"> & import("react").RefAttributes<WCSelectOption>>;
@@ -0,0 +1,2 @@
1
+ export { Select } from './Select';
2
+ export type { SelectProps } from './Select';
@@ -1,4 +1,2 @@
1
1
  export { default as SpinnerWheel } from './SpinnerWheel';
2
2
  export type { SpinnerWheelProps } from './SpinnerWheel';
3
- export { SpinnerWheel as WCSpinnerWheel } from '@loadsmart/miranda-wc';
4
- export type { SpinnerWheelProps as WCSpinnerWheelProps } from '@loadsmart/miranda-wc';
@@ -1,5 +1,6 @@
1
1
  import type { ComponentProps } from 'react';
2
2
  import type { EventName, WebComponentProps } from '@lit/react';
3
+ import type { StepChangeEventDetail, StepNavigateEventDetail } from '@loadsmart/miranda-wc';
3
4
  import { Steps as WCSteps } from '@loadsmart/miranda-wc';
4
5
  declare global {
5
6
  namespace JSX {
@@ -9,9 +10,9 @@ declare global {
9
10
  }
10
11
  }
11
12
  export declare const Steps: import("@lit/react").ReactWebComponent<WCSteps, {
12
- onChange: EventName<CustomEvent<any>>;
13
+ onChange: EventName<CustomEvent<StepChangeEventDetail>>;
13
14
  onComplete: EventName<CustomEvent<any>>;
14
- onNavigate: EventName<CustomEvent<any>>;
15
+ onNavigate: EventName<CustomEvent<StepNavigateEventDetail>>;
15
16
  onNext: EventName<CustomEvent<any>>;
16
17
  onPrevious: EventName<CustomEvent<any>>;
17
18
  }> & {
@@ -3,5 +3,3 @@ export { Step } from './Step';
3
3
  export { useSteps } from './useSteps';
4
4
  export type { StepsProps } from './Steps';
5
5
  export type { StepProps } from './Step';
6
- export { Step as WCStep, Steps as WCSteps } from '@loadsmart/miranda-wc';
7
- export type { StepProps as WCStepProps, NavigateStepEventDetail, } from '@loadsmart/miranda-wc';
@@ -1,5 +1,5 @@
1
1
  import type { LiteralUnion } from '../../utils/types';
2
- export declare function createCustomEvent(eventName: string, detail?: unknown): CustomEvent<unknown>;
2
+ export declare function createCustomEvent<T>(eventName: string, detail?: T): CustomEvent<T>;
3
3
  export declare function useSteps(): {
4
4
  elementRef: HTMLElement | null;
5
5
  registerSteps: () => {
@@ -1,6 +1,7 @@
1
- import type { ComponentProps } from 'react';
2
- import type { WebComponentProps } from '@lit/react';
3
1
  import { Switch as WCSwitch } from '@loadsmart/miranda-wc';
2
+ import type { ComponentProps } from 'react';
3
+ import type { EventName, WebComponentProps } from '@lit/react';
4
+ import type { MirandaChangeEvent } from '../../utils/types';
4
5
  declare global {
5
6
  namespace JSX {
6
7
  interface IntrinsicElements {
@@ -9,6 +10,6 @@ declare global {
9
10
  }
10
11
  }
11
12
  export declare const Switch: import("@lit/react").ReactWebComponent<WCSwitch, {
12
- onChange: string;
13
+ onChange: EventName<MirandaChangeEvent<WCSwitch>>;
13
14
  }>;
14
15
  export type SwitchProps = ComponentProps<typeof Switch>;
@@ -1,4 +1,2 @@
1
1
  export { Switch } from './Switch';
2
2
  export type { SwitchProps } from './Switch';
3
- export { Switch as WCSwitch } from '@loadsmart/miranda-wc';
4
- export type { SwitchProps as WCSwitchProps, SwitchSize, } from '@loadsmart/miranda-wc';
@@ -18,5 +18,4 @@ export type { TableCellProps } from './TableCell';
18
18
  export type { TableToolbarProps } from './TableToolbar';
19
19
  export type { TableFeedbackProps } from './TableFeedback';
20
20
  export type { TableActionsProps } from './TableActions';
21
- 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';
22
- export type { TableProps as WCTableProps, TableCellProps as WCTableCellProps, TableHeadCellProps as WCTableHeadCellProps, TableSize, TableCellAlignment, TableSortDirection, TableHeadCellSortEventDetails, } from '@loadsmart/miranda-wc';
21
+ export type { TableSize, TableCellAlignment, TableSortDirection, TableHeadCellSortEventDetails, } from '@loadsmart/miranda-wc';
@@ -4,5 +4,4 @@ export { default as TabPanel } from './TabPanel';
4
4
  export type { TabsProps } from './Tabs';
5
5
  export type { TabProps } from './Tab';
6
6
  export type { TabPanelProps } from './TabPanel';
7
- export { Tabs as WCTabs, Tab as WCTab, TabPanel as WCTabPanel, } from '@loadsmart/miranda-wc';
8
- export type { TabsProps as WCTabsProps, TabProps as WCTabProps, TabPanelProps as WCTabPanelProps, TabContentDirection, TabChangeEventDetail, } from '@loadsmart/miranda-wc';
7
+ export type { TabContentDirection } from '@loadsmart/miranda-wc';
@@ -1,7 +1,7 @@
1
- import type { ReactNode, ComponentProps } from 'react';
2
- import type { EventName, WebComponentProps } from '@lit/react';
3
1
  import { ActionableTag as WCActionableTag } from '@loadsmart/miranda-wc';
4
- import type { ActionableTagChangeEventDetail } from '@loadsmart/miranda-wc';
2
+ import type { EventName, WebComponentProps } from '@lit/react';
3
+ import type { ReactNode, ComponentProps } from 'react';
4
+ import type { MirandaChangeEvent } from '../../utils/types';
5
5
  declare global {
6
6
  namespace JSX {
7
7
  interface IntrinsicElements {
@@ -10,7 +10,7 @@ declare global {
10
10
  }
11
11
  }
12
12
  declare const WiredActionableTag: import("@lit/react").ReactWebComponent<WCActionableTag, {
13
- onChange: EventName<CustomEvent<ActionableTagChangeEventDetail>>;
13
+ onChange: EventName<MirandaChangeEvent<WCActionableTag>>;
14
14
  onRemove: EventName<CustomEvent<any>>;
15
15
  }>;
16
16
  export type ActionableTagProps = ComponentProps<typeof WiredActionableTag> & {
@@ -2,5 +2,3 @@ export { default as Tag } from './Tag';
2
2
  export type { TagProps } from './Tag';
3
3
  export { default as ActionableTag } from './ActionableTag';
4
4
  export type { ActionableTagProps } from './ActionableTag';
5
- export { Tag as WCTag, ActionableTag as WCActionableTag, } from '@loadsmart/miranda-wc';
6
- export type { TagProps as WCTagProps, ActionableTagProps as WCActionableTagProps, TagVariant, TagSize, ActionableTagChangeEventDetail, } from '@loadsmart/miranda-wc';
@@ -1,4 +1,2 @@
1
1
  export { default as Text } from './Text';
2
2
  export type { TextProps } from './Text';
3
- export { Text as WCText } from '@loadsmart/miranda-wc';
4
- export type { TextProps as WCTextProps } from '@loadsmart/miranda-wc';
@@ -1,7 +1,8 @@
1
+ import { TextArea as WCTextArea } from '@loadsmart/miranda-wc';
1
2
  import type { ComponentProps } from 'react';
2
- import type { WebComponentProps } from '@lit/react';
3
+ import type { EventName, WebComponentProps } from '@lit/react';
3
4
  import type { TextAreaProps as WCTextAreaProps } from '@loadsmart/miranda-wc';
4
- import { TextArea as WCTextArea } from '@loadsmart/miranda-wc';
5
+ import type { MirandaChangeEvent } from '../../utils/types';
5
6
  declare global {
6
7
  namespace JSX {
7
8
  interface IntrinsicElements {
@@ -10,8 +11,8 @@ declare global {
10
11
  }
11
12
  }
12
13
  declare const WiredTextArea: import("@lit/react").ReactWebComponent<WCTextArea, {
13
- onInput: string;
14
- onChange: string;
14
+ onInput: EventName<MirandaChangeEvent<WCTextArea>>;
15
+ onChange: EventName<MirandaChangeEvent<WCTextArea>>;
15
16
  }>;
16
17
  export type TextAreaProps = ComponentProps<typeof WiredTextArea>;
17
18
  declare function TextArea(props: TextAreaProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,2 @@
1
1
  export { default as TextArea } from './TextArea';
2
2
  export type { TextAreaProps } from './TextArea';
3
- export { TextArea as WCTextArea } from '@loadsmart/miranda-wc';
4
- export type { TextAreaProps as WCTextAreaProps } from '@loadsmart/miranda-wc';
@@ -1,17 +1,17 @@
1
- import type { ReactNode, ComponentProps } from 'react';
2
- import type { EventName, WebComponentProps } from '@lit/react';
3
- import type { TextFieldProps as WCTextFieldProps } from '@loadsmart/miranda-wc';
4
1
  import { TextField as WCTextField } from '@loadsmart/miranda-wc';
2
+ import type { EventName, WebComponentProps } from '@lit/react';
3
+ import type { ReactNode, ComponentProps } from 'react';
4
+ import type { MirandaChangeEvent } from '../../utils/types';
5
5
  declare global {
6
6
  namespace JSX {
7
7
  interface IntrinsicElements {
8
- 'm-text-field': WebComponentProps<WCTextField> & WCTextFieldProps;
8
+ 'm-text-field': WebComponentProps<WCTextField>;
9
9
  }
10
10
  }
11
11
  }
12
12
  declare const WiredTextField: import("@lit/react").ReactWebComponent<WCTextField, {
13
- onInput: string;
14
- onChange: string;
13
+ onInput: EventName<MirandaChangeEvent<WCTextField>>;
14
+ onChange: EventName<MirandaChangeEvent<WCTextField>>;
15
15
  onClear: EventName<CustomEvent<any>>;
16
16
  }>;
17
17
  export type TextFieldProps = ComponentProps<typeof WiredTextField> & {
@@ -1,4 +1,2 @@
1
1
  export { default as TextField } from './TextField';
2
2
  export type { TextFieldProps } from './TextField';
3
- export { TextField as WCTextField } from '@loadsmart/miranda-wc';
4
- export type { TextFieldProps as WCTextFieldProps } from '@loadsmart/miranda-wc';
@@ -8,5 +8,3 @@ export { TimelineItemHeaderSubtitle } from './TimelineItemHeaderSubtitle';
8
8
  export { TimelineItemHeaderTitle } from './TimelineItemHeaderTitle';
9
9
  export { TimelineItemIcon } from './TimelineItemIcon';
10
10
  export type { TimelineProps, TimelineItemProps } from './Timeline';
11
- 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';
12
- export type { TimelineItemProps as WCTimelineItemProps, TimelineItemVariant, } from '@loadsmart/miranda-wc';
@@ -1,6 +1,7 @@
1
- import type { ReactNode, ComponentProps } from 'react';
2
- import type { WebComponentProps } from '@lit/react';
3
1
  import { ToggleGroup as WCToggleGroup } from '@loadsmart/miranda-wc';
2
+ import type { EventName, WebComponentProps } from '@lit/react';
3
+ import type { ReactNode, ComponentProps } from 'react';
4
+ import type { MirandaChangeEvent } from '../../utils/types';
4
5
  declare global {
5
6
  namespace JSX {
6
7
  interface IntrinsicElements {
@@ -9,7 +10,7 @@ declare global {
9
10
  }
10
11
  }
11
12
  declare const WiredToggleGroup: import("@lit/react").ReactWebComponent<WCToggleGroup, {
12
- onChange: string;
13
+ onChange: EventName<MirandaChangeEvent<WCToggleGroup>>;
13
14
  }>;
14
15
  export type ToggleGroupOption = {
15
16
  value: string;
@@ -2,5 +2,3 @@ export { default as ToggleGroup } from './ToggleGroup';
2
2
  export { default as Toggle } from './Toggle';
3
3
  export type { ToggleGroupProps } from './ToggleGroup';
4
4
  export type { ToggleProps } from './Toggle';
5
- export { Toggle as WCToggle, ToggleGroup as WCToggleGroup, } from '@loadsmart/miranda-wc';
6
- export type { ToggleProps as WCToggleProps, ToggleGroupProps as WCToggleGroupProps, ToggleSize, } from '@loadsmart/miranda-wc';
@@ -1,6 +1,7 @@
1
- import type { ReactNode, ComponentProps } from 'react';
2
- import type { WebComponentProps } from '@lit/react';
3
1
  import { Tooltip as WCTooltip } from '@loadsmart/miranda-wc';
2
+ import type { ReactElement, ReactNode, ComponentProps } from 'react';
3
+ import type { WebComponentProps } from '@lit/react';
4
+ import type { TooltipPlacement, TooltipTrigger } from '@loadsmart/miranda-wc';
4
5
  declare global {
5
6
  namespace JSX {
6
7
  interface IntrinsicElements {
@@ -10,7 +11,14 @@ declare global {
10
11
  }
11
12
  declare const WiredTooltip: import("@lit/react").ReactWebComponent<WCTooltip, {}>;
12
13
  export type TooltipProps = ComponentProps<typeof WiredTooltip> & {
13
- message?: ReactNode;
14
+ message: ReactNode;
15
+ children: ReactElement;
14
16
  };
15
- export declare function Tooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element;
16
- export {};
17
+ /**
18
+ * Render the tooltip component.
19
+ *
20
+ * **Warning**: This component will throw if the provided `children` is not a single child,
21
+ * and will not render if the children is not valid or is a fragment.
22
+ */
23
+ export declare function Tooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element | null;
24
+ export type { TooltipPlacement, TooltipTrigger };
@@ -1,4 +1,2 @@
1
1
  export { Tooltip } from './Tooltip';
2
- export type { TooltipProps } from './Tooltip';
3
- export { Tooltip as WCTooltip } from '@loadsmart/miranda-wc';
4
- export type { TooltipProps as WCTooltipProps, TooltipPlacement, TooltipTrigger, } from '@loadsmart/miranda-wc';
2
+ export type { TooltipProps, TooltipPlacement, TooltipTrigger } from './Tooltip';