@loadsmart/miranda-react 3.0.0-beta.8 → 3.0.0-beta.80

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 (164) hide show
  1. package/dist/index.d.ts +1663 -107
  2. package/dist/index.js +1345 -1166
  3. package/dist/tokens.d.ts +76 -2
  4. package/dist/tokens.js +2 -2
  5. package/package.json +12 -13
  6. package/dist/components/Accordion/Accordion.d.ts +0 -19
  7. package/dist/components/Accordion/AccordionContent.d.ts +0 -10
  8. package/dist/components/Accordion/AccordionTitle.d.ts +0 -16
  9. package/dist/components/Accordion/index.d.ts +0 -2
  10. package/dist/components/Badge/Badge.d.ts +0 -12
  11. package/dist/components/Badge/index.d.ts +0 -2
  12. package/dist/components/Banner/Banner.d.ts +0 -22
  13. package/dist/components/Banner/BannerActionPrimary.d.ts +0 -17
  14. package/dist/components/Banner/BannerActionSecondary.d.ts +0 -17
  15. package/dist/components/Banner/BannerActions.d.ts +0 -12
  16. package/dist/components/Banner/BannerDescription.d.ts +0 -12
  17. package/dist/components/Banner/BannerIcon.d.ts +0 -12
  18. package/dist/components/Banner/BannerTitle.d.ts +0 -12
  19. package/dist/components/Banner/index.d.ts +0 -2
  20. package/dist/components/Button/Button.d.ts +0 -17
  21. package/dist/components/Button/index.d.ts +0 -2
  22. package/dist/components/Card/Card.d.ts +0 -35
  23. package/dist/components/Card/CardActionPrimary.d.ts +0 -17
  24. package/dist/components/Card/CardActionSecondary.d.ts +0 -17
  25. package/dist/components/Card/CardActionTertiary.d.ts +0 -17
  26. package/dist/components/Card/CardBody.d.ts +0 -12
  27. package/dist/components/Card/CardDivider.d.ts +0 -12
  28. package/dist/components/Card/CardFooter.d.ts +0 -12
  29. package/dist/components/Card/CardSubtitle.d.ts +0 -12
  30. package/dist/components/Card/CardTitle.d.ts +0 -16
  31. package/dist/components/Card/index.d.ts +0 -2
  32. package/dist/components/Checkbox/Checkbox.d.ts +0 -19
  33. package/dist/components/Checkbox/index.d.ts +0 -2
  34. package/dist/components/Dialog/Dialog.d.ts +0 -37
  35. package/dist/components/Dialog/DialogActionPrimary.d.ts +0 -17
  36. package/dist/components/Dialog/DialogActionSecondary.d.ts +0 -17
  37. package/dist/components/Dialog/DialogActionTertiary.d.ts +0 -17
  38. package/dist/components/Dialog/DialogActions.d.ts +0 -12
  39. package/dist/components/Dialog/DialogBody.d.ts +0 -12
  40. package/dist/components/Dialog/DialogClose.d.ts +0 -14
  41. package/dist/components/Dialog/DialogFooter.d.ts +0 -12
  42. package/dist/components/Dialog/DialogHeader.d.ts +0 -12
  43. package/dist/components/Dialog/index.d.ts +0 -4
  44. package/dist/components/Divider/Divider.d.ts +0 -19
  45. package/dist/components/Divider/index.d.ts +0 -2
  46. package/dist/components/Drawer/Drawer.d.ts +0 -38
  47. package/dist/components/Drawer/DrawerActionPrimary.d.ts +0 -17
  48. package/dist/components/Drawer/DrawerActionSecondary.d.ts +0 -17
  49. package/dist/components/Drawer/DrawerActionTertiary.d.ts +0 -17
  50. package/dist/components/Drawer/DrawerActions.d.ts +0 -12
  51. package/dist/components/Drawer/DrawerBody.d.ts +0 -12
  52. package/dist/components/Drawer/DrawerClose.d.ts +0 -14
  53. package/dist/components/Drawer/DrawerHeader.d.ts +0 -12
  54. package/dist/components/Drawer/index.d.ts +0 -4
  55. package/dist/components/Dropdown/Dropdown.d.ts +0 -22
  56. package/dist/components/Dropdown/DropdownItem.d.ts +0 -16
  57. package/dist/components/Dropdown/DropdownMenu.d.ts +0 -12
  58. package/dist/components/Dropdown/DropdownTrigger.d.ts +0 -15
  59. package/dist/components/Dropdown/index.d.ts +0 -5
  60. package/dist/components/EmptyState/EmptyState.d.ts +0 -23
  61. package/dist/components/EmptyState/EmptyStateAction.d.ts +0 -17
  62. package/dist/components/EmptyState/EmptyStateHeader.d.ts +0 -12
  63. package/dist/components/EmptyState/EmptyStateIllustration.d.ts +0 -12
  64. package/dist/components/EmptyState/EmptyStateMessage.d.ts +0 -12
  65. package/dist/components/EmptyState/index.d.ts +0 -4
  66. package/dist/components/Field/Field.d.ts +0 -16
  67. package/dist/components/Field/FieldHint.d.ts +0 -16
  68. package/dist/components/Field/FieldLabel.d.ts +0 -12
  69. package/dist/components/Field/index.d.ts +0 -2
  70. package/dist/components/Header/Header.d.ts +0 -18
  71. package/dist/components/Header/HeaderActions.d.ts +0 -12
  72. package/dist/components/Header/HeaderBackButton.d.ts +0 -10
  73. package/dist/components/Header/HeaderContent.d.ts +0 -12
  74. package/dist/components/Header/HeaderTitle.d.ts +0 -12
  75. package/dist/components/Header/SubHeader.d.ts +0 -12
  76. package/dist/components/Header/index.d.ts +0 -8
  77. package/dist/components/Icon/Icon.d.ts +0 -19
  78. package/dist/components/Icon/index.d.ts +0 -2
  79. package/dist/components/Label/Label.d.ts +0 -12
  80. package/dist/components/LabeledValue/LabeledValue.d.ts +0 -25
  81. package/dist/components/LabeledValue/index.d.ts +0 -1
  82. package/dist/components/Layout/Box.d.ts +0 -13
  83. package/dist/components/Layout/Grid.d.ts +0 -13
  84. package/dist/components/Layout/Group.d.ts +0 -13
  85. package/dist/components/Layout/Layout.d.ts +0 -16
  86. package/dist/components/Layout/Row.d.ts +0 -18
  87. package/dist/components/Layout/Sidebar.d.ts +0 -20
  88. package/dist/components/Layout/Stack.d.ts +0 -13
  89. package/dist/components/Layout/Switcher.d.ts +0 -13
  90. package/dist/components/Layout/index.d.ts +0 -9
  91. package/dist/components/Link/Link.d.ts +0 -14
  92. package/dist/components/Link/index.d.ts +0 -2
  93. package/dist/components/LogoLoader/LogoLoader.d.ts +0 -13
  94. package/dist/components/LogoLoader/index.d.ts +0 -2
  95. package/dist/components/PageContent/Body.d.ts +0 -12
  96. package/dist/components/PageContent/PageContent.d.ts +0 -14
  97. package/dist/components/PageContent/index.d.ts +0 -1
  98. package/dist/components/Pagination/Pagination.d.ts +0 -16
  99. package/dist/components/Pagination/index.d.ts +0 -2
  100. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -15
  101. package/dist/components/ProgressBar/index.d.ts +0 -2
  102. package/dist/components/ProgressBarCountdown/ProgressBarCountdown.d.ts +0 -13
  103. package/dist/components/ProgressBarCountdown/index.d.ts +0 -2
  104. package/dist/components/RadioGroup/Radio.d.ts +0 -16
  105. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -18
  106. package/dist/components/RadioGroup/index.d.ts +0 -4
  107. package/dist/components/Section/Section.d.ts +0 -15
  108. package/dist/components/Section/SectionTitle.d.ts +0 -16
  109. package/dist/components/Section/index.d.ts +0 -2
  110. package/dist/components/Select/Select.d.ts +0 -31
  111. package/dist/components/Select/SelectOption.d.ts +0 -16
  112. package/dist/components/Select/index.d.ts +0 -2
  113. package/dist/components/SpinnerWheel/SpinnerWheel.d.ts +0 -13
  114. package/dist/components/SpinnerWheel/index.d.ts +0 -2
  115. package/dist/components/Steps/Step.d.ts +0 -12
  116. package/dist/components/Steps/Steps.d.ts +0 -21
  117. package/dist/components/Steps/index.d.ts +0 -5
  118. package/dist/components/Steps/useSteps.d.ts +0 -10
  119. package/dist/components/Switch/Switch.d.ts +0 -15
  120. package/dist/components/Switch/index.d.ts +0 -2
  121. package/dist/components/Table/Table.d.ts +0 -33
  122. package/dist/components/Table/TableActions.d.ts +0 -12
  123. package/dist/components/Table/TableBody.d.ts +0 -12
  124. package/dist/components/Table/TableCell.d.ts +0 -12
  125. package/dist/components/Table/TableFeedback.d.ts +0 -12
  126. package/dist/components/Table/TableFoot.d.ts +0 -12
  127. package/dist/components/Table/TableHead.d.ts +0 -12
  128. package/dist/components/Table/TableHeadCell.d.ts +0 -15
  129. package/dist/components/Table/TableRow.d.ts +0 -12
  130. package/dist/components/Table/TableToolbar.d.ts +0 -12
  131. package/dist/components/Table/index.d.ts +0 -21
  132. package/dist/components/Tabs/Tab.d.ts +0 -16
  133. package/dist/components/Tabs/TabPanel.d.ts +0 -13
  134. package/dist/components/Tabs/Tabs.d.ts +0 -19
  135. package/dist/components/Tabs/index.d.ts +0 -7
  136. package/dist/components/Tag/ActionableTag.d.ts +0 -20
  137. package/dist/components/Tag/Tag.d.ts +0 -16
  138. package/dist/components/Tag/index.d.ts +0 -4
  139. package/dist/components/Text/Text.d.ts +0 -19
  140. package/dist/components/Text/index.d.ts +0 -2
  141. package/dist/components/TextArea/TextArea.d.ts +0 -19
  142. package/dist/components/TextArea/index.d.ts +0 -2
  143. package/dist/components/TextField/TextField.d.ts +0 -22
  144. package/dist/components/TextField/index.d.ts +0 -2
  145. package/dist/components/Timeline/Timeline.d.ts +0 -22
  146. package/dist/components/Timeline/TimelineExpandableItem.d.ts +0 -12
  147. package/dist/components/Timeline/TimelineItem.d.ts +0 -12
  148. package/dist/components/Timeline/TimelineItemBody.d.ts +0 -12
  149. package/dist/components/Timeline/TimelineItemFooter.d.ts +0 -12
  150. package/dist/components/Timeline/TimelineItemHeader.d.ts +0 -12
  151. package/dist/components/Timeline/TimelineItemHeaderSubtitle.d.ts +0 -12
  152. package/dist/components/Timeline/TimelineItemHeaderTitle.d.ts +0 -12
  153. package/dist/components/Timeline/TimelineItemIcon.d.ts +0 -12
  154. package/dist/components/Timeline/index.d.ts +0 -10
  155. package/dist/components/ToggleGroup/Toggle.d.ts +0 -16
  156. package/dist/components/ToggleGroup/ToggleGroup.d.ts +0 -28
  157. package/dist/components/ToggleGroup/index.d.ts +0 -4
  158. package/dist/components/Tooltip/Tooltip.d.ts +0 -24
  159. package/dist/components/Tooltip/index.d.ts +0 -2
  160. package/dist/tests/constants.d.ts +0 -12
  161. package/dist/tests/types.d.ts +0 -5
  162. package/dist/utils/createComponent.d.ts +0 -6
  163. package/dist/utils/types.d.ts +0 -15
  164. package/dist/utils/utils.d.ts +0 -5
package/dist/index.js CHANGED
@@ -1,1284 +1,1463 @@
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, 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, 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
- 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';
4
- import { forwardRef, useState, useCallback, Children, isValidElement, cloneElement } from 'react';
5
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
- import { isFragment } from 'react-is';
7
-
8
- function _extends() {
9
- _extends = Object.assign ? Object.assign.bind() : function (target) {
10
- for (var i = 1; i < arguments.length; i++) {
11
- var source = arguments[i];
12
- for (var key in source) {
13
- if (Object.prototype.hasOwnProperty.call(source, key)) {
14
- target[key] = source[key];
15
- }
16
- }
17
- }
18
- return target;
19
- };
20
- return _extends.apply(this, arguments);
21
- }
22
- function _unsupportedIterableToArray(o, minLen) {
23
- if (!o) return;
24
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
25
- var n = Object.prototype.toString.call(o).slice(8, -1);
26
- if (n === "Object" && o.constructor) n = o.constructor.name;
27
- if (n === "Map" || n === "Set") return Array.from(o);
28
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
29
- }
30
- function _arrayLikeToArray(arr, len) {
31
- if (len == null || len > arr.length) len = arr.length;
32
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
33
- return arr2;
34
- }
35
- function _createForOfIteratorHelperLoose(o, allowArrayLike) {
36
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
37
- if (it) return (it = it.call(o)).next.bind(it);
38
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
39
- if (it) o = it;
40
- var i = 0;
41
- return function () {
42
- if (i >= o.length) return {
43
- done: true
44
- };
45
- return {
46
- done: false,
47
- value: o[i++]
48
- };
49
- };
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$2, TableBody as TableBody$2, TableFoot as TableFoot$2, TableRow as TableRow$2, TableCell as TableCell$2, TableToolbar as TableToolbar$1, TableHeadCell as TableHeadCell$2, TableFeedback as TableFeedback$1, TableActions as TableActions$1, TableSelectionCell as TableSelectionCell$1, Table as Table$2, TableHeadV2, TableBodyV2, TableFootV2, TableRowV2, TableCellV2, TableHeadCellV2, TableRowSelectV2, TableRowExpandV2, TableV2, TableLayoutToolbar as TableLayoutToolbar$1, TableLayoutFeedback as TableLayoutFeedback$1, TableLayoutActions as TableLayoutActions$1, TableLayout as TableLayout$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
+ import { DIALOG_SIZES, DIALOG_VARIANTS, DRAWER_SIZES, EMPTY_STATE_VARIANTS, Accordion, AccordionContent, AccordionTitle, ActionableTag, Badge, Banner, BannerActionPrimary, BannerActionSecondary, BannerActions, BannerDescription, BannerIcon, BannerTitle, Box, Button, Card, CardActionPrimary, CardActionSecondary, CardActionTertiary, CardBody, CardDivider, CardFooter, CardSubtitle, CardTitle, Checkbox, Column, Container, Dialog, DialogActionPrimary, DialogActionSecondary, DialogActionTertiary, DialogActions, DialogBody, DialogClose, DialogFooter, DialogHeader, Divider, Drawer, DrawerActionPrimary, DrawerActionSecondary, DrawerActionTertiary, DrawerActions, DrawerBody, DrawerClose, DrawerHeader, Dropdown, DropdownItem, DropdownMenu, DropdownTrigger, EmptyState, EmptyStateAction, EmptyStateHeader, EmptyStateIllustration, EmptyStateMessage, Field, FieldHint, FieldLabel, Grid, Group, Header, HeaderActions, HeaderContent, HeaderTitle, Icon, LabeledValue, LabeledValueLabel, LabeledValueValue, Link, LogoLoader, PageContent, Pagination, ProgressBar, ProgressBarCountdown, Radio, RadioGroup, Row, Section, SectionTitle, Select, SelectOption, Sidebar, SpinnerWheel, Stack, Step, Steps, SubHeader, Switch, Switcher, Tab, TabPanel, Table, TableActions, TableBody, TableCell, TableFeedback, TableFoot, TableHead, TableHeadCell, TableRow, TableToolbar, Tabs, Tag, Text, TextArea, TextField, Timeline, TimelineExpandableItem, TimelineItem, TimelineItemBody, TimelineItemFooter, TimelineItemHeader, TimelineItemHeaderSubtitle, TimelineItemHeaderTitle, TimelineItemIcon, Toggle, ToggleGroup, Tooltip } from "@loadsmart/miranda-wc";
3
+ import * as React from "react";
4
+ import React__default, { forwardRef, useState, useCallback, Children, isValidElement, cloneElement } from "react";
5
+ import { createComponent as createComponent$1 } from "@lit/react";
6
+ import { isFragment } from "react-is";
7
+ const createComponent = ({
8
+ subComponents,
9
+ ...options
10
+ }) => {
11
+ const ReactComponent = createComponent$1({
12
+ react: React,
13
+ ...options
14
+ });
15
+ const ComponentWithSubComponents = ReactComponent;
16
+ if (subComponents) {
17
+ Object.assign(ComponentWithSubComponents, subComponents);
50
18
  }
51
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
52
- }
53
-
54
- /**
55
- * @license
56
- * Copyright 2018 Google LLC
57
- * SPDX-License-Identifier: BSD-3-Clause
58
- */
59
- var e = new Set(["children", "localName", "ref", "style", "className"]),
60
- n = new WeakMap(),
61
- t = function t(e, _t, o, l, a) {
62
- var s = a == null ? void 0 : a[_t];
63
- void 0 === s ? (e[_t] = o, null == o && _t in HTMLElement.prototype && e.removeAttribute(_t)) : o !== l && function (e, t, o) {
64
- var l = n.get(e);
65
- void 0 === l && n.set(e, l = new Map());
66
- var a = l.get(t);
67
- void 0 !== o ? void 0 === a ? (l.set(t, a = {
68
- handleEvent: o
69
- }), e.addEventListener(t, a)) : a.handleEvent = o : void 0 !== a && (l["delete"](t), e.removeEventListener(t, a));
70
- }(e, s, o);
71
- },
72
- o = function o(_ref) {
73
- var n = _ref.react,
74
- o = _ref.tagName,
75
- l = _ref.elementClass,
76
- a = _ref.events,
77
- s = _ref.displayName;
78
- var c = new Set(Object.keys(a != null ? a : {})),
79
- r = n.forwardRef(function (s, r) {
80
- var i = n.useRef(new Map()),
81
- d = n.useRef(null),
82
- f = {},
83
- u = {};
84
- for (var _i = 0, _Object$entries = Object.entries(s); _i < _Object$entries.length; _i++) {
85
- var _Object$entries$_i = _Object$entries[_i],
86
- _n = _Object$entries$_i[0],
87
- _t2 = _Object$entries$_i[1];
88
- e.has(_n) ? f["className" === _n ? "class" : _n] = _t2 : c.has(_n) || _n in l.prototype ? u[_n] = _t2 : f[_n] = _t2;
89
- }
90
- return n.useLayoutEffect(function () {
91
- if (null === d.current) return;
92
- var e = new Map();
93
- for (var _n2 in u) t(d.current, _n2, s[_n2], i.current.get(_n2), a), i.current["delete"](_n2), e.set(_n2, s[_n2]);
94
- for (var _iterator = _createForOfIteratorHelperLoose(i.current), _step; !(_step = _iterator()).done;) {
95
- var _step$value = _step.value,
96
- _e = _step$value[0],
97
- _n3 = _step$value[1];
98
- t(d.current, _e, void 0, _n3, a);
99
- }
100
- i.current = e;
101
- }), n.useLayoutEffect(function () {
102
- var _d$current;
103
- (_d$current = d.current) == null || _d$current.removeAttribute("defer-hydration");
104
- }, []), f.suppressHydrationWarning = !0, n.createElement(o, _extends({}, f, {
105
- ref: n.useCallback(function (e) {
106
- d.current = e, "function" == typeof r ? r(e) : null !== r && (r.current = e);
107
- }, [r])
108
- }));
109
- });
110
- return r.displayName = s != null ? s : l.name, r;
111
- };
112
-
113
- const createComponent = ({ subComponents, ...options }) => {
114
- const ReactComponent = o({
115
- react: React,
116
- ...options,
117
- });
118
- const ComponentWithSubComponents = ReactComponent;
119
- if (subComponents) {
120
- Object.assign(ComponentWithSubComponents, subComponents);
121
- }
122
- return ComponentWithSubComponents;
19
+ return ComponentWithSubComponents;
123
20
  };
124
-
125
21
  const WiredAccordionTitle = createComponent({
126
- tagName: 'm-accordion-title',
127
- elementClass: AccordionTitle$1,
128
- displayName: 'AccordionTitle',
22
+ tagName: "m-accordion-title",
23
+ elementClass: AccordionTitle$1,
24
+ displayName: "AccordionTitle"
129
25
  });
130
- const AccordionTitle = forwardRef((props, ref) => {
26
+ const AccordionTitle2 = forwardRef(
27
+ (props, ref) => {
131
28
  const { leading, children, ...rest } = props;
132
- return (jsxs(WiredAccordionTitle, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
133
- });
134
-
135
- const AccordionContent = createComponent({
136
- tagName: 'm-accordion-content',
137
- elementClass: AccordionContent$1,
138
- displayName: 'AccordionContent',
139
- });
140
-
141
- const Accordion = createComponent({
142
- tagName: 'm-accordion',
143
- elementClass: Accordion$1,
144
- displayName: 'Accordion',
145
- events: {
146
- onToggle: 'toggle',
147
- },
148
- subComponents: {
149
- Title: AccordionTitle,
150
- Content: AccordionContent,
151
- },
29
+ return /* @__PURE__ */ React__default.createElement(WiredAccordionTitle, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children);
30
+ }
31
+ );
32
+ const AccordionContent2 = createComponent({
33
+ tagName: "m-accordion-content",
34
+ elementClass: AccordionContent$1,
35
+ displayName: "AccordionContent"
36
+ });
37
+ const Accordion2 = createComponent({
38
+ tagName: "m-accordion",
39
+ elementClass: Accordion$1,
40
+ displayName: "Accordion",
41
+ events: {
42
+ onToggle: "toggle"
43
+ },
44
+ subComponents: {
45
+ Title: AccordionTitle2,
46
+ Content: AccordionContent2
47
+ }
152
48
  });
153
-
154
- const Badge = createComponent({
155
- tagName: 'm-badge',
156
- elementClass: Badge$1,
157
- displayName: 'Badge',
49
+ const Badge2 = createComponent({
50
+ tagName: "m-badge",
51
+ elementClass: Badge$1,
52
+ displayName: "Badge"
158
53
  });
159
-
160
54
  const WiredBannerActionPrimary = createComponent({
161
- tagName: 'm-banner-action-primary',
162
- elementClass: BannerActionPrimary$1,
163
- displayName: 'BannerActionPrimary',
55
+ tagName: "m-banner-action-primary",
56
+ elementClass: BannerActionPrimary$1,
57
+ displayName: "BannerActionPrimary"
164
58
  });
165
- const BannerActionPrimary = forwardRef((props, ref) => {
166
- const { leading, trailing, children, ...rest } = props;
167
- return (jsxs(WiredBannerActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
59
+ const BannerActionPrimary2 = forwardRef((props, ref) => {
60
+ const { leading, trailing, children, ...rest } = props;
61
+ return /* @__PURE__ */ React__default.createElement(WiredBannerActionPrimary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
168
62
  });
169
-
170
- const BannerActions = createComponent({
171
- tagName: 'm-banner-actions',
172
- elementClass: BannerActions$1,
173
- displayName: 'BannerActions',
63
+ const BannerActions2 = createComponent({
64
+ tagName: "m-banner-actions",
65
+ elementClass: BannerActions$1,
66
+ displayName: "BannerActions"
174
67
  });
175
-
176
68
  const WiredBannerActionSecondary = createComponent({
177
- tagName: 'm-banner-action-secondary',
178
- elementClass: BannerActionSecondary$1,
179
- displayName: 'BannerActionSecondary',
180
- });
181
- const BannerActionSecondary = forwardRef((props, ref) => {
182
- const { leading, trailing, children, ...rest } = props;
183
- return (jsxs(WiredBannerActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
184
- });
185
-
186
- const BannerDescription = createComponent({
187
- tagName: 'm-banner-description',
188
- elementClass: BannerDescription$1,
189
- displayName: 'BannerDescription',
190
- });
191
-
192
- const BannerIcon = createComponent({
193
- tagName: 'm-banner-icon',
194
- elementClass: BannerIcon$1,
195
- displayName: 'BannerIcon',
196
- });
197
-
198
- const BannerTitle = createComponent({
199
- tagName: 'm-banner-title',
200
- elementClass: BannerTitle$1,
201
- displayName: 'BannerTitle',
202
- });
203
-
204
- const Banner = createComponent({
205
- tagName: 'm-banner',
206
- elementClass: Banner$1,
207
- events: {
208
- onDismiss: 'dismiss',
209
- },
210
- displayName: 'Banner',
211
- subComponents: {
212
- ActionPrimary: BannerActionPrimary,
213
- Actions: BannerActions,
214
- ActionSecondary: BannerActionSecondary,
215
- Description: BannerDescription,
216
- Icon: BannerIcon,
217
- Title: BannerTitle,
218
- },
69
+ tagName: "m-banner-action-secondary",
70
+ elementClass: BannerActionSecondary$1,
71
+ displayName: "BannerActionSecondary"
72
+ });
73
+ const BannerActionSecondary2 = forwardRef((props, ref) => {
74
+ const { leading, trailing, children, ...rest } = props;
75
+ return /* @__PURE__ */ React__default.createElement(WiredBannerActionSecondary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
76
+ });
77
+ const BannerDescription2 = createComponent({
78
+ tagName: "m-banner-description",
79
+ elementClass: BannerDescription$1,
80
+ displayName: "BannerDescription"
81
+ });
82
+ const BannerIcon2 = createComponent({
83
+ tagName: "m-banner-icon",
84
+ elementClass: BannerIcon$1,
85
+ displayName: "BannerIcon"
86
+ });
87
+ const BannerTitle2 = createComponent({
88
+ tagName: "m-banner-title",
89
+ elementClass: BannerTitle$1,
90
+ displayName: "BannerTitle"
91
+ });
92
+ const Banner2 = createComponent({
93
+ tagName: "m-banner",
94
+ elementClass: Banner$1,
95
+ events: {
96
+ onDismiss: "dismiss"
97
+ },
98
+ displayName: "Banner",
99
+ subComponents: {
100
+ ActionPrimary: BannerActionPrimary2,
101
+ Actions: BannerActions2,
102
+ ActionSecondary: BannerActionSecondary2,
103
+ Description: BannerDescription2,
104
+ Icon: BannerIcon2,
105
+ Title: BannerTitle2
106
+ }
219
107
  });
220
-
221
108
  const WiredButton = createComponent({
222
- tagName: 'm-button',
223
- elementClass: Button$1,
224
- displayName: 'Button',
109
+ tagName: "m-button",
110
+ elementClass: Button$1,
111
+ displayName: "Button"
225
112
  });
226
- const Button = forwardRef((props, ref) => {
227
- const { leading, trailing, children, ...rest } = props;
228
- return (jsxs(WiredButton, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
113
+ const Button2 = forwardRef((props, ref) => {
114
+ const { leading, trailing, children, ...rest } = props;
115
+ return /* @__PURE__ */ React__default.createElement(WiredButton, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
229
116
  });
230
-
231
117
  const WiredCardTitle = createComponent({
232
- tagName: 'm-card-title',
233
- elementClass: CardTitle$1,
234
- displayName: 'CardTitle',
235
- });
236
- const CardTitle = forwardRef(({ children, leading, ...props }, ref) => {
237
- return (jsxs(WiredCardTitle, { ...props, slot: "title", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
238
- });
239
-
240
- const CardSubtitle = createComponent({
241
- tagName: 'm-card-subtitle',
242
- elementClass: CardSubtitle$1,
243
- displayName: 'CardSubtitle',
244
- });
245
-
246
- const CardBody = createComponent({
247
- tagName: 'm-card-body',
248
- elementClass: CardBody$1,
249
- displayName: 'CardBody',
250
- });
251
-
252
- const CardDivider = createComponent({
253
- tagName: 'm-card-divider',
254
- elementClass: CardDivider$1,
255
- displayName: 'CardDivider',
256
- });
257
-
118
+ tagName: "m-card-title",
119
+ elementClass: CardTitle$1,
120
+ displayName: "CardTitle"
121
+ });
122
+ const CardTitle2 = forwardRef(
123
+ ({ children, leading, ...props }, ref) => {
124
+ return /* @__PURE__ */ React__default.createElement(WiredCardTitle, { ...props, slot: "title", ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children);
125
+ }
126
+ );
127
+ const CardSubtitle2 = createComponent({
128
+ tagName: "m-card-subtitle",
129
+ elementClass: CardSubtitle$1,
130
+ displayName: "CardSubtitle"
131
+ });
132
+ const CardBody2 = createComponent({
133
+ tagName: "m-card-body",
134
+ elementClass: CardBody$1,
135
+ displayName: "CardBody"
136
+ });
137
+ const CardDivider2 = createComponent({
138
+ tagName: "m-card-divider",
139
+ elementClass: CardDivider$1,
140
+ displayName: "CardDivider"
141
+ });
258
142
  const WiredCardActionPrimary = createComponent({
259
- tagName: 'm-card-action-primary',
260
- elementClass: CardActionPrimary$1,
261
- displayName: 'CardActionPrimary',
143
+ tagName: "m-card-action-primary",
144
+ elementClass: CardActionPrimary$1,
145
+ displayName: "CardActionPrimary"
262
146
  });
263
- const CardActionPrimary = forwardRef((props, ref) => {
264
- const { leading, trailing, children, ...rest } = props;
265
- return (jsxs(WiredCardActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
147
+ const CardActionPrimary2 = forwardRef((props, ref) => {
148
+ const { leading, trailing, children, ...rest } = props;
149
+ return /* @__PURE__ */ React__default.createElement(WiredCardActionPrimary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
266
150
  });
267
-
268
151
  const WiredCardActionSecondary = createComponent({
269
- tagName: 'm-card-action-secondary',
270
- elementClass: CardActionSecondary$1,
271
- displayName: 'CardActionSecondary',
152
+ tagName: "m-card-action-secondary",
153
+ elementClass: CardActionSecondary$1,
154
+ displayName: "CardActionSecondary"
272
155
  });
273
- const CardActionSecondary = forwardRef((props, ref) => {
274
- const { leading, trailing, children, ...rest } = props;
275
- return (jsxs(WiredCardActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
156
+ const CardActionSecondary2 = forwardRef((props, ref) => {
157
+ const { leading, trailing, children, ...rest } = props;
158
+ return /* @__PURE__ */ React__default.createElement(WiredCardActionSecondary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
276
159
  });
277
-
278
160
  const WiredCardActionTertiary = createComponent({
279
- tagName: 'm-card-action-tertiary',
280
- elementClass: CardActionTertiary$1,
281
- displayName: 'CardActionTertiary',
282
- });
283
- const CardActionTertiary = forwardRef((props, ref) => {
284
- const { leading, trailing, children, ...rest } = props;
285
- return (jsxs(WiredCardActionTertiary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
286
- });
287
-
288
- const CardFooter = createComponent({
289
- tagName: 'm-card-footer',
290
- elementClass: CardFooter$1,
291
- displayName: 'CardFooter',
292
- });
293
-
294
- const Card = createComponent({
295
- tagName: 'm-card',
296
- elementClass: Card$1,
297
- displayName: 'Card',
298
- events: {
299
- onToggle: 'toggle',
300
- },
301
- subComponents: {
302
- Title: CardTitle,
303
- Subtitle: CardSubtitle,
304
- Body: CardBody,
305
- Divider: CardDivider,
306
- ActionPrimary: CardActionPrimary,
307
- ActionSecondary: CardActionSecondary,
308
- ActionTertiary: CardActionTertiary,
309
- Footer: CardFooter,
310
- },
161
+ tagName: "m-card-action-tertiary",
162
+ elementClass: CardActionTertiary$1,
163
+ displayName: "CardActionTertiary"
164
+ });
165
+ const CardActionTertiary2 = forwardRef((props, ref) => {
166
+ const { leading, trailing, children, ...rest } = props;
167
+ return /* @__PURE__ */ React__default.createElement(WiredCardActionTertiary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
168
+ });
169
+ const CardFooter2 = createComponent({
170
+ tagName: "m-card-footer",
171
+ elementClass: CardFooter$1,
172
+ displayName: "CardFooter"
173
+ });
174
+ const Card2 = createComponent({
175
+ tagName: "m-card",
176
+ elementClass: Card$1,
177
+ displayName: "Card",
178
+ events: {
179
+ onToggle: "toggle"
180
+ },
181
+ subComponents: {
182
+ Title: CardTitle2,
183
+ Subtitle: CardSubtitle2,
184
+ Body: CardBody2,
185
+ Divider: CardDivider2,
186
+ ActionPrimary: CardActionPrimary2,
187
+ ActionSecondary: CardActionSecondary2,
188
+ ActionTertiary: CardActionTertiary2,
189
+ Footer: CardFooter2
190
+ }
311
191
  });
312
-
313
192
  const WiredCheckbox = createComponent({
314
- tagName: 'm-checkbox',
315
- elementClass: Checkbox$1,
316
- events: {
317
- onChange: 'change',
318
- },
319
- displayName: 'Checkbox',
193
+ tagName: "m-checkbox",
194
+ elementClass: Checkbox$1,
195
+ events: {
196
+ onChange: "change"
197
+ },
198
+ displayName: "Checkbox"
320
199
  });
321
- const Checkbox = forwardRef((props, ref) => {
322
- const { children, leading, ...rest } = props;
323
- return (jsxs(WiredCheckbox, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
200
+ const Checkbox2 = forwardRef((props, ref) => {
201
+ const { children, leading, ...rest } = props;
202
+ return /* @__PURE__ */ React__default.createElement(WiredCheckbox, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children);
324
203
  });
325
-
326
204
  const WiredDialogActionPrimary = createComponent({
327
- tagName: 'm-dialog-action-primary',
328
- elementClass: DialogActionPrimary$1,
329
- displayName: 'DialogActionPrimary',
205
+ tagName: "m-dialog-action-primary",
206
+ elementClass: DialogActionPrimary$1,
207
+ displayName: "DialogActionPrimary"
330
208
  });
331
- const DialogActionPrimary = forwardRef((props, ref) => {
332
- const { leading, trailing, children, ...rest } = props;
333
- return (jsxs(WiredDialogActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
209
+ const DialogActionPrimary2 = forwardRef((props, ref) => {
210
+ const { leading, trailing, children, ...rest } = props;
211
+ return /* @__PURE__ */ React__default.createElement(WiredDialogActionPrimary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
334
212
  });
335
-
336
213
  const WiredDialogActionSecondary = createComponent({
337
- tagName: 'm-dialog-action-secondary',
338
- elementClass: DialogActionSecondary$1,
339
- displayName: 'DialogActionSecondary',
214
+ tagName: "m-dialog-action-secondary",
215
+ elementClass: DialogActionSecondary$1,
216
+ displayName: "DialogActionSecondary"
340
217
  });
341
- const DialogActionSecondary = forwardRef((props, ref) => {
342
- const { leading, trailing, children, ...rest } = props;
343
- return (jsxs(WiredDialogActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
218
+ const DialogActionSecondary2 = forwardRef((props, ref) => {
219
+ const { leading, trailing, children, ...rest } = props;
220
+ return /* @__PURE__ */ React__default.createElement(WiredDialogActionSecondary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
344
221
  });
345
-
346
222
  const WiredDialogActionTertiary = createComponent({
347
- tagName: 'm-dialog-action-tertiary',
348
- elementClass: DialogActionTertiary$1,
349
- displayName: 'DialogActionTertiary',
350
- });
351
- const DialogActionTertiary = forwardRef((props, ref) => {
352
- const { leading, trailing, children, ...rest } = props;
353
- return (jsxs(WiredDialogActionTertiary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
354
- });
355
-
356
- const DialogActions = createComponent({
357
- tagName: 'm-dialog-actions',
358
- elementClass: DialogActions$1,
359
- displayName: 'DialogActions',
360
- });
361
-
362
- const DialogBody = createComponent({
363
- tagName: 'm-dialog-body',
364
- elementClass: DialogBody$1,
365
- displayName: 'DialogBody',
366
- });
367
-
368
- const DialogClose = createComponent({
369
- tagName: 'm-dialog-close',
370
- elementClass: DialogClose$1,
371
- events: {
372
- onClose: 'm-close',
373
- },
374
- displayName: 'DialogClose',
375
- });
376
-
377
- const DialogFooter = createComponent({
378
- tagName: 'm-dialog-footer',
379
- elementClass: DialogFooter$1,
380
- displayName: 'DialogFooter',
381
- });
382
-
383
- const DialogHeader = createComponent({
384
- tagName: 'm-dialog-header',
385
- elementClass: DialogHeader$1,
386
- displayName: 'DialogHeader',
387
- });
388
-
389
- const Dialog = createComponent({
390
- tagName: 'm-dialog',
391
- elementClass: Dialog$1,
392
- events: {
393
- onClose: 'close',
394
- onOpening: 'opening',
395
- onOpened: 'opened',
396
- onClosing: 'closing',
397
- onClosed: 'closed',
398
- },
399
- displayName: 'Dialog',
400
- subComponents: {
401
- ActionPrimary: DialogActionPrimary,
402
- ActionSecondary: DialogActionSecondary,
403
- ActionTertiary: DialogActionTertiary,
404
- Actions: DialogActions,
405
- Body: DialogBody,
406
- Close: DialogClose,
407
- Footer: DialogFooter,
408
- Header: DialogHeader,
409
- },
223
+ tagName: "m-dialog-action-tertiary",
224
+ elementClass: DialogActionTertiary$1,
225
+ displayName: "DialogActionTertiary"
226
+ });
227
+ const DialogActionTertiary2 = forwardRef((props, ref) => {
228
+ const { leading, trailing, children, ...rest } = props;
229
+ return /* @__PURE__ */ React__default.createElement(WiredDialogActionTertiary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
230
+ });
231
+ const DialogActions2 = createComponent({
232
+ tagName: "m-dialog-actions",
233
+ elementClass: DialogActions$1,
234
+ displayName: "DialogActions"
235
+ });
236
+ const DialogBody2 = createComponent({
237
+ tagName: "m-dialog-body",
238
+ elementClass: DialogBody$1,
239
+ displayName: "DialogBody"
240
+ });
241
+ const DialogClose2 = createComponent({
242
+ tagName: "m-dialog-close",
243
+ elementClass: DialogClose$1,
244
+ events: {
245
+ onClose: "m-close"
246
+ },
247
+ displayName: "DialogClose"
248
+ });
249
+ const DialogFooter2 = createComponent({
250
+ tagName: "m-dialog-footer",
251
+ elementClass: DialogFooter$1,
252
+ displayName: "DialogFooter"
253
+ });
254
+ const DialogHeader2 = createComponent({
255
+ tagName: "m-dialog-header",
256
+ elementClass: DialogHeader$1,
257
+ displayName: "DialogHeader"
258
+ });
259
+ const Dialog2 = createComponent({
260
+ tagName: "m-dialog",
261
+ elementClass: Dialog$1,
262
+ events: {
263
+ onClose: "close",
264
+ onOpening: "opening",
265
+ onOpened: "opened",
266
+ onClosing: "closing",
267
+ onClosed: "closed"
268
+ },
269
+ displayName: "Dialog",
270
+ subComponents: {
271
+ ActionPrimary: DialogActionPrimary2,
272
+ ActionSecondary: DialogActionSecondary2,
273
+ ActionTertiary: DialogActionTertiary2,
274
+ Actions: DialogActions2,
275
+ Body: DialogBody2,
276
+ Close: DialogClose2,
277
+ Footer: DialogFooter2,
278
+ Header: DialogHeader2
279
+ }
410
280
  });
411
-
412
- const Divider = createComponent({
413
- tagName: 'm-divider',
414
- elementClass: Divider$1,
415
- displayName: 'Divider',
281
+ const Divider2 = createComponent({
282
+ tagName: "m-divider",
283
+ elementClass: Divider$1,
284
+ displayName: "Divider"
416
285
  });
417
-
418
286
  const WiredDrawerActionPrimary = createComponent({
419
- tagName: 'm-drawer-action-primary',
420
- elementClass: DrawerActionPrimary$1,
421
- displayName: 'DrawerActionPrimary',
287
+ tagName: "m-drawer-action-primary",
288
+ elementClass: DrawerActionPrimary$1,
289
+ displayName: "DrawerActionPrimary"
290
+ });
291
+ const DrawerActionPrimary2 = forwardRef(function DrawerActionPrimary22(props, ref) {
292
+ const { leading, trailing, children, ...rest } = props;
293
+ return /* @__PURE__ */ React__default.createElement(WiredDrawerActionPrimary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
422
294
  });
423
- function DrawerActionPrimary(props) {
424
- const { leading, trailing, children, ...rest } = props;
425
- return (jsxs(WiredDrawerActionPrimary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
426
- }
427
-
428
295
  const WiredDrawerActionSecondary = createComponent({
429
- tagName: 'm-drawer-action-secondary',
430
- elementClass: DrawerActionSecondary$1,
431
- displayName: 'DrawerActionSecondary',
296
+ tagName: "m-drawer-action-secondary",
297
+ elementClass: DrawerActionSecondary$1,
298
+ displayName: "DrawerActionSecondary"
432
299
  });
433
- function DrawerActionSecondary(props) {
434
- const { leading, trailing, children, ...rest } = props;
435
- return (jsxs(WiredDrawerActionSecondary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
436
- }
437
-
438
- const WiredDrawerActionTertiary = createComponent({
439
- tagName: 'm-drawer-action-tertiary',
440
- elementClass: DrawerActionTertiary$1,
441
- displayName: 'DrawerActionTertiary',
300
+ const DrawerActionSecondary2 = forwardRef(function DrawerActionSecondary22(props, ref) {
301
+ const { leading, trailing, children, ...rest } = props;
302
+ return /* @__PURE__ */ React__default.createElement(WiredDrawerActionSecondary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
442
303
  });
443
- function DrawerActionTertiary(props) {
444
- const { leading, trailing, children, ...rest } = props;
445
- return (jsxs(WiredDrawerActionTertiary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
446
- }
447
-
448
- const DrawerActions = createComponent({
449
- tagName: 'm-drawer-actions',
450
- elementClass: DrawerActions$1,
451
- displayName: 'DrawerActions',
452
- });
453
-
454
- const DrawerBody = createComponent({
455
- tagName: 'm-drawer-body',
456
- elementClass: DrawerBody$1,
457
- displayName: 'DrawerBody',
458
- });
459
-
460
- const DrawerClose = createComponent({
461
- tagName: 'm-drawer-close',
462
- elementClass: DrawerClose$1,
463
- events: {
464
- onClose: 'm-close',
465
- },
466
- displayName: 'DrawerClose',
467
- });
468
-
469
- const DrawerHeader = createComponent({
470
- tagName: 'm-drawer-header',
471
- elementClass: DrawerHeader$1,
472
- displayName: 'DrawerHeader',
473
- });
474
-
475
- const Drawer = createComponent({
476
- tagName: 'm-drawer',
477
- elementClass: Drawer$1,
478
- events: {
479
- onClose: 'close',
480
- onOpening: 'opening',
481
- onOpened: 'opened',
482
- onClosing: 'closing',
483
- onClosed: 'closed',
484
- },
485
- displayName: 'Drawer',
486
- subComponents: {
487
- ActionPrimary: DrawerActionPrimary,
488
- ActionSecondary: DrawerActionSecondary,
489
- ActionTertiary: DrawerActionTertiary,
490
- Actions: DrawerActions,
491
- Body: DrawerBody,
492
- Close: DrawerClose,
493
- Header: DrawerHeader,
494
- },
304
+ const WiredDrawerActionTertiary = createComponent({
305
+ tagName: "m-drawer-action-tertiary",
306
+ elementClass: DrawerActionTertiary$1,
307
+ displayName: "DrawerActionTertiary"
308
+ });
309
+ const DrawerActionTertiary2 = forwardRef(function DrawerActionTertiary22(props, ref) {
310
+ const { leading, trailing, children, ...rest } = props;
311
+ return /* @__PURE__ */ React__default.createElement(WiredDrawerActionTertiary, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
312
+ });
313
+ const DrawerActions2 = createComponent({
314
+ tagName: "m-drawer-actions",
315
+ elementClass: DrawerActions$1,
316
+ displayName: "DrawerActions"
317
+ });
318
+ const DrawerBody2 = createComponent({
319
+ tagName: "m-drawer-body",
320
+ elementClass: DrawerBody$1,
321
+ displayName: "DrawerBody"
322
+ });
323
+ const DrawerClose2 = createComponent({
324
+ tagName: "m-drawer-close",
325
+ elementClass: DrawerClose$1,
326
+ events: {
327
+ onClose: "m-close"
328
+ },
329
+ displayName: "DrawerClose"
330
+ });
331
+ const DrawerHeader2 = createComponent({
332
+ tagName: "m-drawer-header",
333
+ elementClass: DrawerHeader$1,
334
+ displayName: "DrawerHeader"
335
+ });
336
+ const Drawer2 = createComponent({
337
+ tagName: "m-drawer",
338
+ elementClass: Drawer$1,
339
+ events: {
340
+ onClose: "close",
341
+ onOpening: "opening",
342
+ onOpened: "opened",
343
+ onClosing: "closing",
344
+ onClosed: "closed"
345
+ },
346
+ displayName: "Drawer",
347
+ subComponents: {
348
+ ActionPrimary: DrawerActionPrimary2,
349
+ ActionSecondary: DrawerActionSecondary2,
350
+ ActionTertiary: DrawerActionTertiary2,
351
+ Actions: DrawerActions2,
352
+ Body: DrawerBody2,
353
+ Close: DrawerClose2,
354
+ Header: DrawerHeader2
355
+ }
495
356
  });
496
-
497
357
  const WiredDropdownItem = createComponent({
498
- tagName: 'm-dropdown-item',
499
- elementClass: DropdownItem$1,
500
- displayName: 'DropdownItem',
358
+ tagName: "m-dropdown-item",
359
+ elementClass: DropdownItem$1,
360
+ displayName: "DropdownItem"
501
361
  });
502
- const DropdownItem = forwardRef((props, ref) => {
362
+ const DropdownItem2 = forwardRef(
363
+ (props, ref) => {
503
364
  const { leading, trailing, children, ...rest } = props;
504
- return (jsxs(WiredDropdownItem, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
505
- });
506
-
507
- const DropdownMenu = createComponent({
508
- tagName: 'm-dropdown-menu',
509
- elementClass: DropdownMenu$1,
510
- displayName: 'DropdownMenu',
365
+ return /* @__PURE__ */ React__default.createElement(WiredDropdownItem, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
366
+ }
367
+ );
368
+ const DropdownMenu2 = createComponent({
369
+ tagName: "m-dropdown-menu",
370
+ elementClass: DropdownMenu$1,
371
+ displayName: "DropdownMenu"
511
372
  });
512
-
513
373
  const WiredDropdownTrigger = createComponent({
514
- tagName: 'm-dropdown-trigger',
515
- elementClass: DropdownTrigger$1,
516
- displayName: 'DropdownTrigger',
374
+ tagName: "m-dropdown-trigger",
375
+ elementClass: DropdownTrigger$1,
376
+ displayName: "DropdownTrigger"
377
+ });
378
+ const DropdownTrigger2 = forwardRef((props, ref) => {
379
+ const { leading, children, ...rest } = props;
380
+ return /* @__PURE__ */ React__default.createElement(WiredDropdownTrigger, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children);
381
+ });
382
+ const Dropdown2 = createComponent({
383
+ tagName: "m-dropdown",
384
+ elementClass: Dropdown$1,
385
+ displayName: "Dropdown",
386
+ subComponents: {
387
+ Item: DropdownItem2,
388
+ Menu: DropdownMenu2,
389
+ Trigger: DropdownTrigger2
390
+ },
391
+ events: {
392
+ onExpand: "expand",
393
+ onCollapse: "collapse"
394
+ }
517
395
  });
518
- const DropdownTrigger = forwardRef((props, ref) => {
519
- const { leading, children, ...rest } = props;
520
- return (jsxs(WiredDropdownTrigger, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
521
- });
522
-
523
- const Dropdown = createComponent({
524
- tagName: 'm-dropdown',
525
- elementClass: Dropdown$1,
526
- displayName: 'Dropdown',
527
- subComponents: {
528
- Item: DropdownItem,
529
- Menu: DropdownMenu,
530
- Trigger: DropdownTrigger,
531
- },
532
- events: {
533
- onExpand: 'expand',
534
- onCollapse: 'collapse',
535
- },
396
+ const EmptyStateIllustration2 = createComponent({
397
+ tagName: "m-empty-state-illustration",
398
+ elementClass: EmptyStateIllustration$1,
399
+ displayName: "EmptyStateIllustration"
536
400
  });
537
-
538
- const EmptyStateIllustration = createComponent({
539
- tagName: 'm-empty-state-illustration',
540
- elementClass: EmptyStateIllustration$1,
541
- displayName: 'EmptyStateIllustration',
542
- });
543
-
544
- const EmptyStateHeader = createComponent({
545
- tagName: 'm-empty-state-header',
546
- elementClass: EmptyStateHeader$1,
547
- displayName: 'EmptyStateHeader',
548
- });
549
-
550
- const EmptyStateMessage = createComponent({
551
- tagName: 'm-empty-state-message',
552
- elementClass: EmptyStateMessage$1,
553
- displayName: 'EmptyStateMessage',
554
- });
555
-
556
- const WiredEmptyStateAction = createComponent({
557
- tagName: 'm-empty-state-action',
558
- elementClass: EmptyStateAction$1,
559
- displayName: 'EmptyStateAction',
401
+ const EmptyStateHeader2 = createComponent({
402
+ tagName: "m-empty-state-header",
403
+ elementClass: EmptyStateHeader$1,
404
+ displayName: "EmptyStateHeader"
560
405
  });
561
- const EmptyStateAction = forwardRef((props, ref) => {
562
- const { leading, trailing, children, ...rest } = props;
563
- return (jsxs(WiredEmptyStateAction, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
564
- });
565
-
566
- const EmptyState = createComponent({
567
- tagName: 'm-empty-state',
568
- elementClass: EmptyState$1,
569
- events: {
570
- onAction: 'action',
571
- },
572
- displayName: 'EmptyState',
573
- subComponents: {
574
- Illustration: EmptyStateIllustration,
575
- Header: EmptyStateHeader,
576
- Message: EmptyStateMessage,
577
- Action: EmptyStateAction,
578
- },
406
+ const EmptyStateMessage2 = createComponent({
407
+ tagName: "m-empty-state-message",
408
+ elementClass: EmptyStateMessage$1,
409
+ displayName: "EmptyStateMessage"
410
+ });
411
+ const WiredEmptyStateAction = createComponent({
412
+ tagName: "m-empty-state-action",
413
+ elementClass: EmptyStateAction$1,
414
+ displayName: "EmptyStateAction"
415
+ });
416
+ const EmptyStateAction2 = forwardRef((props, ref) => {
417
+ const { leading, trailing, children, ...rest } = props;
418
+ return /* @__PURE__ */ React__default.createElement(WiredEmptyStateAction, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { slot: "trailing" }, trailing));
419
+ });
420
+ const EmptyState2 = createComponent({
421
+ tagName: "m-empty-state",
422
+ elementClass: EmptyState$1,
423
+ events: {
424
+ onAction: "action"
425
+ },
426
+ displayName: "EmptyState",
427
+ subComponents: {
428
+ Illustration: EmptyStateIllustration2,
429
+ Header: EmptyStateHeader2,
430
+ Message: EmptyStateMessage2,
431
+ Action: EmptyStateAction2
432
+ }
579
433
  });
580
-
581
- const FieldLabel = createComponent({
582
- tagName: 'm-field-label',
583
- elementClass: FieldLabel$1,
584
- displayName: 'FieldLabel',
434
+ const FieldLabel2 = createComponent({
435
+ tagName: "m-field-label",
436
+ elementClass: FieldLabel$1,
437
+ displayName: "FieldLabel"
585
438
  });
586
-
587
439
  const WiredFieldHint = createComponent({
588
- tagName: 'm-field-hint',
589
- elementClass: FieldHint$1,
590
- displayName: 'FieldHint',
591
- });
592
- const FieldHint = forwardRef(({ children, leading, ...props }, ref) => {
593
- return (jsxs(WiredFieldHint, { ...props, slot: "hint", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
594
- });
595
-
596
- const Field = createComponent({
597
- tagName: 'm-field',
598
- elementClass: Field$1,
599
- displayName: 'Field',
600
- subComponents: {
601
- Label: FieldLabel,
602
- Hint: FieldHint,
603
- },
440
+ tagName: "m-field-hint",
441
+ elementClass: FieldHint$1,
442
+ displayName: "FieldHint"
443
+ });
444
+ const FieldHint2 = forwardRef(
445
+ ({ children, leading, ...props }, ref) => {
446
+ return /* @__PURE__ */ React__default.createElement(WiredFieldHint, { ...props, slot: "hint", ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children);
447
+ }
448
+ );
449
+ const Field2 = createComponent({
450
+ tagName: "m-field",
451
+ elementClass: Field$1,
452
+ displayName: "Field",
453
+ subComponents: {
454
+ Label: FieldLabel2,
455
+ Hint: FieldHint2
456
+ }
457
+ });
458
+ const HeaderActions2 = createComponent({
459
+ tagName: "m-header-actions",
460
+ elementClass: HeaderActions$1,
461
+ displayName: "HeaderActions"
462
+ });
463
+ const HeaderContent2 = createComponent({
464
+ tagName: "m-header-content",
465
+ elementClass: HeaderContent$1,
466
+ displayName: "HeaderContent"
467
+ });
468
+ const HeaderTitle2 = createComponent({
469
+ tagName: "m-header-title",
470
+ elementClass: HeaderTitle$1,
471
+ displayName: "HeaderTitle"
472
+ });
473
+ const SubHeader2 = createComponent({
474
+ tagName: "m-sub-header",
475
+ elementClass: SubHeader$1,
476
+ displayName: "SubHeader"
604
477
  });
605
-
606
- const HeaderActions = createComponent({
607
- tagName: 'm-header-actions',
608
- elementClass: HeaderActions$1,
609
- displayName: 'HeaderActions',
610
- });
611
-
612
- const HeaderContent = createComponent({
613
- tagName: 'm-header-content',
614
- elementClass: HeaderContent$1,
615
- displayName: 'HeaderContent',
616
- });
617
-
618
- const HeaderTitle = createComponent({
619
- tagName: 'm-header-title',
620
- elementClass: HeaderTitle$1,
621
- displayName: 'HeaderTitle',
622
- });
623
-
624
- const SubHeader = createComponent({
625
- tagName: 'm-sub-header',
626
- elementClass: SubHeader$1,
627
- displayName: 'SubHeader',
628
- });
629
-
630
478
  const HeaderBackButton = createComponent({
631
- tagName: 'm-back-button',
632
- elementClass: BackButton,
633
- displayName: 'HeaderBackButton',
634
- });
635
-
636
- const Header = createComponent({
637
- tagName: 'm-header',
638
- elementClass: Header$1,
639
- displayName: 'Header',
640
- subComponents: {
641
- Actions: HeaderActions,
642
- Content: HeaderContent,
643
- Title: HeaderTitle,
644
- SubHeader,
645
- BackButton: HeaderBackButton,
646
- },
479
+ tagName: "m-back-button",
480
+ elementClass: BackButton,
481
+ displayName: "HeaderBackButton"
482
+ });
483
+ const HeaderTabs = createComponent({
484
+ tagName: "m-header-tabs",
485
+ elementClass: HeaderTabs$1,
486
+ displayName: "HeaderTabs",
487
+ events: {
488
+ onTabChange: "tabchange"
489
+ }
490
+ });
491
+ const Header2 = createComponent({
492
+ tagName: "m-header",
493
+ elementClass: Header$1,
494
+ displayName: "Header",
495
+ subComponents: {
496
+ Actions: HeaderActions2,
497
+ Content: HeaderContent2,
498
+ Title: HeaderTitle2,
499
+ SubHeader: SubHeader2,
500
+ BackButton: HeaderBackButton,
501
+ Tabs: HeaderTabs
502
+ }
647
503
  });
648
-
649
- const Icon = createComponent({
650
- tagName: 'm-icon',
651
- elementClass: Icon$1,
652
- displayName: 'Icon',
504
+ const Icon2 = createComponent({
505
+ tagName: "m-icon",
506
+ elementClass: Icon$1,
507
+ displayName: "Icon"
653
508
  });
654
-
655
- const LabeledValueLabel = createComponent({
656
- tagName: 'm-labeled-value-label',
657
- elementClass: LabeledValueLabel$1,
658
- displayName: 'LabeledValueLabel',
509
+ const LabeledValueLabel2 = createComponent({
510
+ tagName: "m-labeled-value-label",
511
+ elementClass: LabeledValueLabel$1,
512
+ displayName: "LabeledValueLabel"
659
513
  });
660
- const LabeledValueValue = createComponent({
661
- tagName: 'm-labeled-value-value',
662
- elementClass: LabeledValueValue$1,
663
- displayName: 'LabeledValueValue',
514
+ const LabeledValueValue2 = createComponent({
515
+ tagName: "m-labeled-value-value",
516
+ elementClass: LabeledValueValue$1,
517
+ displayName: "LabeledValueValue"
664
518
  });
665
519
  const WiredLabeledValue = createComponent({
666
- tagName: 'm-labeled-value',
667
- elementClass: LabeledValue$1,
668
- displayName: 'LabeledValue',
669
- subComponents: {
670
- Label: LabeledValueLabel,
671
- Value: LabeledValueValue,
672
- },
520
+ tagName: "m-labeled-value",
521
+ elementClass: LabeledValue$1,
522
+ displayName: "LabeledValue",
523
+ subComponents: {
524
+ Label: LabeledValueLabel2,
525
+ Value: LabeledValueValue2
526
+ }
673
527
  });
674
- const LabeledValue = Object.assign(forwardRef((props, ref) => {
675
- const { label, value, children, valueVariant, valueColor, labelVariant, labelColor, ...rest } = props;
676
- 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] }));
677
- }), {
678
- Label: LabeledValueLabel,
679
- Value: LabeledValueValue,
680
- });
681
-
682
- const Box = createComponent({
683
- tagName: 'm-box',
684
- elementClass: Box$1,
685
- displayName: 'Box',
686
- });
687
-
688
- const Group = createComponent({
689
- tagName: 'm-group',
690
- elementClass: Group$1,
691
- displayName: 'Group',
692
- });
693
-
694
- const Stack = createComponent({
695
- tagName: 'm-stack',
696
- elementClass: Stack$1,
697
- displayName: 'Stack',
698
- });
699
-
700
- const Grid = createComponent({
701
- tagName: 'm-grid',
702
- elementClass: Grid$1,
703
- displayName: 'Grid',
704
- });
705
-
706
- const SidebarSide = forwardRef(({ children, ...boxProps }, ref) => {
707
- return (jsx(Box, { ...boxProps, slot: "sidebar", ref: ref, children: children }));
708
- });
709
- const SidebarContent = forwardRef(({ children, ...boxProps }, ref) => {
710
- return (jsx(Box, { ...boxProps, slot: "content", ref: ref, children: children }));
711
- });
712
- const Sidebar = createComponent({
713
- tagName: 'm-sidebar',
714
- elementClass: Sidebar$1,
715
- displayName: 'Sidebar',
716
- subComponents: {
717
- Side: SidebarSide,
718
- Content: SidebarContent,
719
- },
528
+ const LabeledValue2 = Object.assign(
529
+ forwardRef((props, ref) => {
530
+ const {
531
+ label,
532
+ value,
533
+ children,
534
+ valueVariant,
535
+ valueColor,
536
+ labelVariant,
537
+ labelColor,
538
+ ...rest
539
+ } = props;
540
+ return /* @__PURE__ */ React__default.createElement(WiredLabeledValue, { ...rest, ref }, label != null && /* @__PURE__ */ React__default.createElement(LabeledValueLabel2, { variant: labelVariant, color: labelColor }, label), value != null && /* @__PURE__ */ React__default.createElement(LabeledValueValue2, { variant: valueVariant, color: valueColor }, value), children);
541
+ }),
542
+ {
543
+ Label: LabeledValueLabel2,
544
+ Value: LabeledValueValue2
545
+ }
546
+ );
547
+ const Box2 = createComponent({
548
+ tagName: "m-box",
549
+ elementClass: Box$1,
550
+ displayName: "Box"
551
+ });
552
+ const Group2 = createComponent({
553
+ tagName: "m-group",
554
+ elementClass: Group$1,
555
+ displayName: "Group"
556
+ });
557
+ const Stack2 = createComponent({
558
+ tagName: "m-stack",
559
+ elementClass: Stack$1,
560
+ displayName: "Stack"
561
+ });
562
+ const Grid2 = createComponent({
563
+ tagName: "m-grid",
564
+ elementClass: Grid$1,
565
+ displayName: "Grid"
566
+ });
567
+ const SidebarSide = forwardRef(
568
+ ({ children, ...boxProps }, ref) => {
569
+ return /* @__PURE__ */ React__default.createElement(Box2, { ...boxProps, slot: "sidebar", ref }, children);
570
+ }
571
+ );
572
+ const SidebarContent = forwardRef(
573
+ ({ children, ...boxProps }, ref) => {
574
+ return /* @__PURE__ */ React__default.createElement(Box2, { ...boxProps, slot: "content", ref }, children);
575
+ }
576
+ );
577
+ const Sidebar2 = createComponent({
578
+ tagName: "m-sidebar",
579
+ elementClass: Sidebar$1,
580
+ displayName: "Sidebar",
581
+ subComponents: {
582
+ Side: SidebarSide,
583
+ Content: SidebarContent
584
+ }
585
+ });
586
+ const Switcher2 = createComponent({
587
+ tagName: "m-switcher",
588
+ elementClass: Switcher$1,
589
+ displayName: "Switcher"
590
+ });
591
+ const Container2 = createComponent({
592
+ tagName: "m-container",
593
+ elementClass: Container$1,
594
+ displayName: "Container"
595
+ });
596
+ const Row2 = createComponent({
597
+ tagName: "m-row",
598
+ elementClass: Row$1,
599
+ displayName: "Row"
600
+ });
601
+ const Column2 = createComponent({
602
+ tagName: "m-column",
603
+ elementClass: Column$1,
604
+ displayName: "Column"
720
605
  });
721
-
722
- const Switcher = createComponent({
723
- tagName: 'm-switcher',
724
- elementClass: Switcher$1,
725
- displayName: 'Switcher',
726
- });
727
-
728
- const Container = createComponent({
729
- tagName: 'm-container',
730
- elementClass: Container$1,
731
- displayName: 'Container',
732
- });
733
- const Row = createComponent({
734
- tagName: 'm-row',
735
- elementClass: Row$1,
736
- displayName: 'Row',
737
- });
738
- const Column = createComponent({
739
- tagName: 'm-column',
740
- elementClass: Column$1,
741
- displayName: 'Column',
742
- });
743
-
744
606
  const Layout = () => {
745
- return null;
607
+ return null;
746
608
  };
747
- Layout.Box = Box;
748
- Layout.Group = Group;
749
- Layout.Stack = Stack;
750
- Layout.Grid = Grid;
751
- Layout.Sidebar = Sidebar;
752
- Layout.Switcher = Switcher;
753
- Layout.Container = Container;
754
- Layout.Row = Row;
755
- Layout.Column = Column;
756
-
757
- const Link = createComponent({
758
- tagName: 'm-link',
759
- elementClass: Link$1,
760
- displayName: 'Link',
761
- });
762
-
609
+ Layout.Box = Box2;
610
+ Layout.Group = Group2;
611
+ Layout.Stack = Stack2;
612
+ Layout.Grid = Grid2;
613
+ Layout.Sidebar = Sidebar2;
614
+ Layout.Switcher = Switcher2;
615
+ Layout.Container = Container2;
616
+ Layout.Row = Row2;
617
+ Layout.Column = Column2;
618
+ const Link2 = createComponent({
619
+ tagName: "m-link",
620
+ elementClass: Link$1,
621
+ displayName: "Link"
622
+ });
763
623
  const Body = createComponent({
764
- tagName: 'm-body',
765
- elementClass: Body$1,
766
- displayName: 'Body',
767
- });
768
-
769
- const PageContent = createComponent({
770
- tagName: 'm-page-content',
771
- elementClass: PageContent$1,
772
- displayName: 'PageContent',
773
- subComponents: {
774
- Body,
775
- },
624
+ tagName: "m-body",
625
+ elementClass: Body$1,
626
+ displayName: "Body"
627
+ });
628
+ const PageContent2 = createComponent({
629
+ tagName: "m-page-content",
630
+ elementClass: PageContent$1,
631
+ displayName: "PageContent",
632
+ subComponents: {
633
+ Body
634
+ }
776
635
  });
777
-
778
- const Pagination = createComponent({
779
- tagName: 'm-pagination',
780
- elementClass: Pagination$1,
781
- displayName: 'Pagination',
782
- events: {
783
- onChange: 'paginationchange',
784
- },
636
+ const Pagination2 = createComponent({
637
+ tagName: "m-pagination",
638
+ elementClass: Pagination$1,
639
+ displayName: "Pagination",
640
+ events: {
641
+ onChange: "paginationchange"
642
+ }
785
643
  });
786
-
787
- const ProgressBar = createComponent({
788
- tagName: 'm-progress-bar',
789
- elementClass: ProgressBar$1,
790
- displayName: 'ProgressBar',
644
+ const ProgressBar2 = createComponent({
645
+ tagName: "m-progress-bar",
646
+ elementClass: ProgressBar$1,
647
+ displayName: "ProgressBar"
791
648
  });
792
-
793
- const ProgressBarCountdown = createComponent({
794
- tagName: 'm-progress-bar-countdown',
795
- elementClass: ProgressBarCountdown$1,
796
- displayName: 'ProgressBarCountdown',
649
+ const ProgressBarCountdown2 = createComponent({
650
+ tagName: "m-progress-bar-countdown",
651
+ elementClass: ProgressBarCountdown$1,
652
+ displayName: "ProgressBarCountdown"
797
653
  });
798
-
799
654
  const WiredRadio = createComponent({
800
- tagName: 'm-radio',
801
- elementClass: Radio$1,
802
- displayName: 'Radio',
803
- });
804
- const Radio = forwardRef((props, ref) => {
805
- const { children, leading, ...rest } = props;
806
- return (jsxs(WiredRadio, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
807
- });
808
-
809
- const RadioGroup = createComponent({
810
- tagName: 'm-radio-group',
811
- elementClass: RadioGroup$1,
812
- subComponents: {
813
- Radio,
814
- },
815
- events: {
816
- onChange: 'change',
817
- },
818
- displayName: 'RadioGroup',
655
+ tagName: "m-radio",
656
+ elementClass: Radio$1,
657
+ displayName: "Radio"
658
+ });
659
+ const Radio2 = forwardRef((props, ref) => {
660
+ const { children, leading, ...rest } = props;
661
+ return /* @__PURE__ */ React__default.createElement(WiredRadio, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children);
662
+ });
663
+ const RadioGroup2 = createComponent({
664
+ tagName: "m-radio-group",
665
+ elementClass: RadioGroup$1,
666
+ subComponents: {
667
+ Radio: Radio2
668
+ },
669
+ events: {
670
+ onChange: "change"
671
+ },
672
+ displayName: "RadioGroup"
819
673
  });
820
-
821
674
  const WiredSectionTitle = createComponent({
822
- tagName: 'm-section-title',
823
- elementClass: SectionTitle$1,
824
- displayName: 'SectionTitle',
825
- });
826
- const SectionTitle = forwardRef(({ children, leading, ...props }, ref) => {
827
- return (jsxs(WiredSectionTitle, { ...props, slot: "title", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
828
- });
829
-
830
- const Section = createComponent({
831
- tagName: 'm-section',
832
- elementClass: Section$1,
833
- displayName: 'Section',
834
- subComponents: {
835
- Title: SectionTitle,
836
- },
675
+ tagName: "m-section-title",
676
+ elementClass: SectionTitle$1,
677
+ displayName: "SectionTitle"
678
+ });
679
+ const SectionTitle2 = forwardRef(
680
+ ({ children, leading, ...props }, ref) => {
681
+ return /* @__PURE__ */ React__default.createElement(WiredSectionTitle, { ...props, slot: "title", ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children);
682
+ }
683
+ );
684
+ const Section2 = createComponent({
685
+ tagName: "m-section",
686
+ elementClass: Section$1,
687
+ displayName: "Section",
688
+ subComponents: {
689
+ Title: SectionTitle2
690
+ }
837
691
  });
838
-
839
692
  const WiredSelectOption = createComponent({
840
- tagName: 'm-option',
841
- elementClass: SelectOption$1,
842
- displayName: 'SelectOption',
693
+ tagName: "m-option",
694
+ elementClass: SelectOption$1,
695
+ displayName: "SelectOption"
843
696
  });
844
- const SLOTTED_STYLE$1 = { display: 'contents' };
845
- const SelectOption = forwardRef((props, ref) => {
697
+ const SLOTTED_STYLE$3 = { display: "contents" };
698
+ const SelectOption2 = forwardRef(
699
+ (props, ref) => {
846
700
  const { leading, trailing, children, ...rest } = props;
847
- return (jsxs(WiredSelectOption, { ...rest, ref: ref, children: [leading != null && (jsx("span", { style: SLOTTED_STYLE$1, slot: "leading", children: leading })), children, trailing != null && (jsx("span", { style: SLOTTED_STYLE$1, slot: "trailing", children: trailing }))] }));
848
- });
849
- SelectOption.displayName = 'SelectOption';
850
-
701
+ return /* @__PURE__ */ React__default.createElement(WiredSelectOption, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { style: SLOTTED_STYLE$3, slot: "leading" }, leading), children, trailing != null && /* @__PURE__ */ React__default.createElement("span", { style: SLOTTED_STYLE$3, slot: "trailing" }, trailing));
702
+ }
703
+ );
704
+ SelectOption2.displayName = "SelectOption";
851
705
  const WiredSelect = createComponent({
852
- tagName: 'm-select',
853
- elementClass: Select$1,
854
- events: {
855
- onExpand: 'expand',
856
- onCollapse: 'collapse',
857
- onChange: 'change',
706
+ tagName: "m-select",
707
+ elementClass: Select$1,
708
+ events: {
709
+ onExpand: "expand",
710
+ onCollapse: "collapse",
711
+ onChange: "change"
712
+ },
713
+ displayName: "Select"
714
+ });
715
+ const SLOTTED_STYLE$2 = { display: "contents" };
716
+ function Select2(props) {
717
+ const { options, children, onChange, ...rest } = props;
718
+ return /* @__PURE__ */ React__default.createElement(
719
+ WiredSelect,
720
+ {
721
+ onChange,
722
+ ...rest
858
723
  },
859
- displayName: 'Select',
860
- });
861
- const SLOTTED_STYLE = { display: 'contents' };
862
- function Select(props) {
863
- const { options, children, ...rest } = props;
864
- return (jsx(WiredSelect, { ...rest, children: children ||
865
- (options || []).map(function renderOption(option) {
866
- const { label, leading, trailing, value: optionValue, ...others } = option;
867
- return (jsxs(SelectOption, { ...others, value: optionValue, children: [leading != null && (jsx("span", { style: SLOTTED_STYLE, slot: "leading", children: leading })), label, trailing != null && (jsx("span", { style: SLOTTED_STYLE, slot: "trailing", children: trailing }))] }, optionValue));
868
- }) }));
724
+ children || options?.map(function renderOption(option) {
725
+ const {
726
+ label,
727
+ leading,
728
+ trailing,
729
+ value: optionValue,
730
+ ...others
731
+ } = option;
732
+ return /* @__PURE__ */ React__default.createElement(SelectOption2, { key: optionValue, ...others, value: optionValue }, leading != null && /* @__PURE__ */ React__default.createElement("span", { style: SLOTTED_STYLE$2, slot: "leading" }, leading), label, trailing != null && /* @__PURE__ */ React__default.createElement("span", { style: SLOTTED_STYLE$2, slot: "trailing" }, trailing));
733
+ })
734
+ );
869
735
  }
870
- Select.Option = SelectOption;
871
-
872
- const SpinnerWheel = createComponent({
873
- tagName: 'm-spinner-wheel',
874
- elementClass: SpinnerWheel$1,
875
- displayName: 'SpinnerWheel',
876
- });
877
-
878
- const Step = createComponent({
879
- tagName: 'm-step',
880
- elementClass: Step$1,
881
- displayName: 'Step',
882
- });
883
-
884
- const Steps = createComponent({
885
- tagName: 'm-steps',
886
- elementClass: Steps$1,
887
- displayName: 'Steps',
888
- events: {
889
- onChange: 'stepchange',
890
- onComplete: 'stepcomplete',
891
- onNavigate: 'navigate',
892
- onNext: 'navigatenext',
893
- onPrevious: 'navigateprevious',
894
- },
895
- subComponents: {
896
- Step,
897
- },
736
+ Select2.Option = SelectOption2;
737
+ const SpinnerWheel2 = createComponent({
738
+ tagName: "m-spinner-wheel",
739
+ elementClass: SpinnerWheel$1,
740
+ displayName: "SpinnerWheel"
741
+ });
742
+ const Step2 = createComponent({
743
+ tagName: "m-step",
744
+ elementClass: Step$1,
745
+ displayName: "Step"
746
+ });
747
+ const Steps2 = createComponent({
748
+ tagName: "m-steps",
749
+ elementClass: Steps$1,
750
+ displayName: "Steps",
751
+ events: {
752
+ onChange: "stepchange",
753
+ onComplete: "stepcomplete",
754
+ onNavigate: "navigate",
755
+ onNext: "navigatenext",
756
+ onPrevious: "navigateprevious"
757
+ },
758
+ subComponents: {
759
+ Step: Step2
760
+ }
898
761
  });
899
-
900
762
  function createCustomEvent(eventName, detail) {
901
- const event = new CustomEvent(eventName, {
902
- bubbles: true,
903
- detail,
904
- });
905
- return event;
763
+ const event = new CustomEvent(eventName, {
764
+ bubbles: true,
765
+ detail
766
+ });
767
+ return event;
906
768
  }
907
769
  function useSteps() {
908
- const [stepsElement, setStepsElement] = useState(null);
909
- const registerSteps = useCallback(() => {
910
- return {
911
- ref(element) {
912
- if (element == null || stepsElement != null) {
913
- return;
914
- }
915
- setStepsElement(element);
916
- },
917
- };
918
- }, [stepsElement]);
919
- const navigateToStep = useCallback(
770
+ const [stepsElement, setStepsElement] = useState(null);
771
+ const registerSteps = useCallback(() => {
772
+ return {
773
+ ref(element) {
774
+ if (element == null || stepsElement != null) {
775
+ return;
776
+ }
777
+ setStepsElement(element);
778
+ }
779
+ };
780
+ }, [stepsElement]);
781
+ const navigateToStep = useCallback(
920
782
  /**
921
783
  * Either `'previous'`, `'next'`, or step name.
922
784
  */
923
785
  (step) => {
924
- if (stepsElement == null) {
925
- return;
926
- }
927
- const navigateToNextStep = () => {
928
- return createCustomEvent('navigatenext');
929
- };
930
- const navigateToPreviousStep = () => {
931
- return createCustomEvent('navigateprevious');
932
- };
933
- let event;
934
- switch (step) {
935
- case 'next':
936
- event = navigateToNextStep();
937
- break;
938
- case 'previous':
939
- event = navigateToPreviousStep();
940
- break;
941
- default:
942
- event = createCustomEvent('navigate', {
943
- step,
944
- });
945
- }
946
- stepsElement.dispatchEvent(event);
947
- }, [stepsElement]);
948
- const completeStep = useCallback(() => {
949
- if (stepsElement == null) {
950
- return;
951
- }
952
- const event = createCustomEvent('stepcomplete');
953
- stepsElement.dispatchEvent(event);
954
- }, [stepsElement]);
955
- return {
956
- elementRef: stepsElement,
957
- registerSteps,
958
- navigateToStep,
959
- completeStep,
960
- };
961
- }
962
-
963
- const Switch = createComponent({
964
- tagName: 'm-switch',
965
- elementClass: Switch$1,
966
- displayName: 'Switch',
967
- events: {
968
- onChange: 'change',
786
+ if (stepsElement == null) {
787
+ return;
788
+ }
789
+ const navigateToNextStep = () => {
790
+ return createCustomEvent("navigatenext");
791
+ };
792
+ const navigateToPreviousStep = () => {
793
+ return createCustomEvent("navigateprevious");
794
+ };
795
+ let event;
796
+ switch (step) {
797
+ case "next":
798
+ event = navigateToNextStep();
799
+ break;
800
+ case "previous":
801
+ event = navigateToPreviousStep();
802
+ break;
803
+ default:
804
+ event = createCustomEvent("navigate", {
805
+ step
806
+ });
807
+ }
808
+ stepsElement.dispatchEvent(event);
969
809
  },
810
+ [stepsElement]
811
+ );
812
+ const completeStep = useCallback(() => {
813
+ if (stepsElement == null) {
814
+ return;
815
+ }
816
+ const event = createCustomEvent("stepcomplete");
817
+ stepsElement.dispatchEvent(event);
818
+ }, [stepsElement]);
819
+ return {
820
+ elementRef: stepsElement,
821
+ registerSteps,
822
+ navigateToStep,
823
+ completeStep
824
+ };
825
+ }
826
+ const Switch2 = createComponent({
827
+ tagName: "m-switch",
828
+ elementClass: Switch$1,
829
+ displayName: "Switch",
830
+ events: {
831
+ onChange: "change"
832
+ }
970
833
  });
971
-
972
- const TableHead = createComponent({
973
- tagName: 'm-table-head',
974
- elementClass: TableHead$1,
975
- displayName: 'TableHead',
976
- });
977
-
978
- const TableBody = createComponent({
979
- tagName: 'm-table-body',
980
- elementClass: TableBody$1,
981
- displayName: 'TableBody',
982
- });
983
-
984
- const TableFoot = createComponent({
985
- tagName: 'm-table-foot',
986
- elementClass: TableFoot$1,
987
- displayName: 'TableFoot',
988
- });
989
-
990
- const TableRow = createComponent({
991
- tagName: 'm-table-row',
992
- elementClass: TableRow$1,
993
- displayName: 'TableRow',
994
- });
995
-
996
- const TableCell = createComponent({
997
- tagName: 'm-table-cell',
998
- elementClass: TableCell$1,
999
- displayName: 'TableCell',
1000
- });
1001
-
1002
- const TableToolbar = createComponent({
1003
- tagName: 'm-table-toolbar',
1004
- elementClass: TableToolbar$1,
1005
- displayName: 'TableToolbar',
1006
- });
1007
-
1008
- const TableHeadCell = createComponent({
1009
- tagName: 'm-table-head-cell',
1010
- elementClass: TableHeadCell$1,
1011
- displayName: 'TableHeadCell',
1012
- events: {
1013
- onSort: 'columnsort',
1014
- },
834
+ const TableHead$1 = createComponent({
835
+ tagName: "m-table-head",
836
+ elementClass: TableHead$2,
837
+ displayName: "TableHead"
838
+ });
839
+ const TableBody$1 = createComponent({
840
+ tagName: "m-table-body",
841
+ elementClass: TableBody$2,
842
+ displayName: "TableBody"
843
+ });
844
+ const TableFoot$1 = createComponent({
845
+ tagName: "m-table-foot",
846
+ elementClass: TableFoot$2,
847
+ displayName: "TableFoot"
848
+ });
849
+ const TableRow$1 = createComponent({
850
+ tagName: "m-table-row",
851
+ elementClass: TableRow$2,
852
+ displayName: "TableRow"
853
+ });
854
+ const TableCell$1 = createComponent({
855
+ tagName: "m-table-cell",
856
+ elementClass: TableCell$2,
857
+ displayName: "TableCell"
858
+ });
859
+ const TableToolbar2 = createComponent({
860
+ tagName: "m-table-toolbar",
861
+ elementClass: TableToolbar$1,
862
+ displayName: "TableToolbar"
863
+ });
864
+ const TableHeadCell$1 = createComponent({
865
+ tagName: "m-table-head-cell",
866
+ elementClass: TableHeadCell$2,
867
+ displayName: "TableHeadCell",
868
+ events: {
869
+ onSort: "columnsort"
870
+ }
1015
871
  });
1016
-
1017
- const TableFeedback = createComponent({
1018
- tagName: 'm-table-feedback',
1019
- elementClass: TableFeedback$1,
1020
- displayName: 'TableFeedback',
1021
- });
1022
-
1023
- const TableActions = createComponent({
1024
- tagName: 'm-table-actions',
1025
- elementClass: TableActions$1,
1026
- displayName: 'TableActions',
1027
- });
1028
-
1029
- const Table = createComponent({
1030
- tagName: 'm-table',
1031
- elementClass: Table$1,
1032
- displayName: 'Table',
1033
- subComponents: {
1034
- Head: TableHead,
1035
- Body: TableBody,
1036
- Foot: TableFoot,
1037
- Row: TableRow,
1038
- HeadCell: TableHeadCell,
1039
- Cell: TableCell,
1040
- Toolbar: TableToolbar,
1041
- Feedback: TableFeedback,
1042
- Actions: TableActions,
1043
- },
872
+ const TableFeedback2 = createComponent({
873
+ tagName: "m-table-feedback",
874
+ elementClass: TableFeedback$1,
875
+ displayName: "TableFeedback"
876
+ });
877
+ const TableActions2 = createComponent({
878
+ tagName: "m-table-actions",
879
+ elementClass: TableActions$1,
880
+ displayName: "TableActions"
881
+ });
882
+ const TableSelectionCell = createComponent({
883
+ tagName: "m-table-selection-cell",
884
+ elementClass: TableSelectionCell$1,
885
+ displayName: "TableSelectionCell"
886
+ });
887
+ const Table$1 = createComponent({
888
+ tagName: "m-table",
889
+ elementClass: Table$2,
890
+ displayName: "Table",
891
+ events: {
892
+ onSelect: "select"
893
+ },
894
+ subComponents: {
895
+ Head: TableHead$1,
896
+ Body: TableBody$1,
897
+ Foot: TableFoot$1,
898
+ Row: TableRow$1,
899
+ HeadCell: TableHeadCell$1,
900
+ Cell: TableCell$1,
901
+ SelectionCell: TableSelectionCell,
902
+ Toolbar: TableToolbar2,
903
+ Feedback: TableFeedback2,
904
+ Actions: TableActions2
905
+ }
906
+ });
907
+ const TableHead2 = createComponent({
908
+ tagName: "m-table-head-v2",
909
+ elementClass: TableHeadV2,
910
+ displayName: "TableHeadV2"
911
+ });
912
+ const TableBody2 = createComponent({
913
+ tagName: "m-table-body-v2",
914
+ elementClass: TableBodyV2,
915
+ displayName: "TableBodyV2"
916
+ });
917
+ const TableFoot2 = createComponent({
918
+ tagName: "m-table-foot-v2",
919
+ elementClass: TableFootV2,
920
+ displayName: "TableFootV2"
921
+ });
922
+ const TableRow2 = createComponent({
923
+ tagName: "m-table-row-v2",
924
+ elementClass: TableRowV2,
925
+ displayName: "TableRowV2"
926
+ });
927
+ const TableCell2 = createComponent({
928
+ tagName: "m-table-cell-v2",
929
+ elementClass: TableCellV2,
930
+ displayName: "TableCellV2"
931
+ });
932
+ const TableHeadCell2 = createComponent({
933
+ tagName: "m-table-head-cell-v2",
934
+ elementClass: TableHeadCellV2,
935
+ displayName: "TableHeadCellV2",
936
+ events: {
937
+ onSort: "columnsort"
938
+ }
939
+ });
940
+ const TableRowSelect = createComponent({
941
+ tagName: "m-table-row-select-v2",
942
+ elementClass: TableRowSelectV2,
943
+ displayName: "TableRowSelectV2"
944
+ });
945
+ const TableRowExpand = createComponent({
946
+ tagName: "m-table-row-expand-v2",
947
+ elementClass: TableRowExpandV2,
948
+ displayName: "TableRowExpandV2"
949
+ });
950
+ function applySlotToChildren(children) {
951
+ return React__default.Children.map(children, (child) => {
952
+ if (!child) return child;
953
+ if (React__default.isValidElement(child)) {
954
+ if (child.type === React__default.Fragment) {
955
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, applySlotToChildren(child.props.children));
956
+ }
957
+ return React__default.cloneElement(child, { slot: "expansion" });
958
+ }
959
+ return child;
960
+ });
961
+ }
962
+ function TableRowExpansion(props) {
963
+ const { children } = props;
964
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, applySlotToChildren(children));
965
+ }
966
+ const Table2 = createComponent({
967
+ tagName: "m-table-v2",
968
+ elementClass: TableV2,
969
+ displayName: "TableV2",
970
+ events: {
971
+ onSelect: "select",
972
+ onExpand: "expand",
973
+ onCollapse: "collapse"
974
+ },
975
+ subComponents: {
976
+ Head: TableHead2,
977
+ Body: TableBody2,
978
+ Foot: TableFoot2,
979
+ Row: TableRow2,
980
+ HeadCell: TableHeadCell2,
981
+ Cell: TableCell2,
982
+ RowSelect: TableRowSelect,
983
+ RowExpand: TableRowExpand,
984
+ RowExpansion: TableRowExpansion
985
+ }
986
+ });
987
+ const TableLayoutToolbar = createComponent({
988
+ tagName: "m-table-layout-toolbar",
989
+ elementClass: TableLayoutToolbar$1,
990
+ displayName: "TableLayoutToolbar"
991
+ });
992
+ const TableLayoutFeedback = createComponent({
993
+ tagName: "m-table-layout-feedback",
994
+ elementClass: TableLayoutFeedback$1,
995
+ displayName: "TableLayoutFeedback"
996
+ });
997
+ const TableLayoutActions = createComponent({
998
+ tagName: "m-table-layout-actions",
999
+ elementClass: TableLayoutActions$1,
1000
+ displayName: "TableLayoutActions"
1001
+ });
1002
+ const TableLayout = createComponent({
1003
+ tagName: "m-table-layout",
1004
+ elementClass: TableLayout$1,
1005
+ displayName: "TableLayout",
1006
+ subComponents: {
1007
+ Toolbar: TableLayoutToolbar,
1008
+ Feedback: TableLayoutFeedback,
1009
+ Actions: TableLayoutActions
1010
+ }
1044
1011
  });
1045
-
1046
1012
  const WiredTab = createComponent({
1047
- tagName: 'm-tab',
1048
- elementClass: Tab$1,
1049
- displayName: 'Tab',
1050
- });
1051
- const Tab = forwardRef(({ children, leading, ...props }, ref) => {
1052
- return (jsxs(WiredTab, { ...props, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
1053
- });
1054
-
1055
- const TabPanel = createComponent({
1056
- tagName: 'm-tab-panel',
1057
- elementClass: TabPanel$1,
1058
- displayName: 'TabPanel',
1059
- });
1060
-
1061
- const Tabs = createComponent({
1062
- tagName: 'm-tabs',
1063
- elementClass: Tabs$1,
1064
- events: {
1065
- onTabChange: 'tabchange',
1066
- },
1067
- displayName: 'Tabs',
1068
- subComponents: {
1069
- Tab,
1070
- Panel: TabPanel,
1071
- },
1013
+ tagName: "m-tab",
1014
+ elementClass: Tab$1,
1015
+ displayName: "Tab"
1016
+ });
1017
+ const Tab2 = forwardRef(
1018
+ ({ children, leading, ...props }, ref) => {
1019
+ return /* @__PURE__ */ React__default.createElement(WiredTab, { ...props, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children);
1020
+ }
1021
+ );
1022
+ const TabPanel2 = createComponent({
1023
+ tagName: "m-tab-panel",
1024
+ elementClass: TabPanel$1,
1025
+ displayName: "TabPanel"
1026
+ });
1027
+ const Tabs2 = createComponent({
1028
+ tagName: "m-tabs",
1029
+ elementClass: Tabs$1,
1030
+ events: {
1031
+ onTabChange: "tabchange"
1032
+ },
1033
+ displayName: "Tabs",
1034
+ subComponents: {
1035
+ Tab: Tab2,
1036
+ Panel: TabPanel2
1037
+ }
1072
1038
  });
1073
-
1074
1039
  const WiredTag = createComponent({
1075
- tagName: 'm-tag',
1076
- elementClass: Tag$1,
1077
- displayName: 'Tag',
1040
+ tagName: "m-tag",
1041
+ elementClass: Tag$1,
1042
+ displayName: "Tag"
1078
1043
  });
1079
- const Tag = forwardRef((props, ref) => {
1080
- const { leading, children, ...rest } = props;
1081
- return (jsxs(WiredTag, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
1044
+ const SLOTTED_STYLE$1 = { display: "contents" };
1045
+ const Tag2 = forwardRef((props, ref) => {
1046
+ const { leading, children, ...rest } = props;
1047
+ return /* @__PURE__ */ React__default.createElement(WiredTag, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { style: SLOTTED_STYLE$1, slot: "leading" }, leading), children);
1082
1048
  });
1083
-
1084
1049
  const WiredActionableTag = createComponent({
1085
- tagName: 'm-actionable-tag',
1086
- elementClass: ActionableTag$1,
1087
- displayName: 'ActionableTag',
1088
- events: {
1089
- onChange: 'change',
1090
- onRemove: 'remove',
1091
- },
1050
+ tagName: "m-actionable-tag",
1051
+ elementClass: ActionableTag$1,
1052
+ displayName: "ActionableTag",
1053
+ events: {
1054
+ onChange: "change",
1055
+ onRemove: "remove"
1056
+ }
1092
1057
  });
1093
- const ActionableTag = forwardRef((props, ref) => {
1058
+ const SLOTTED_STYLE = { display: "contents" };
1059
+ const ActionableTag2 = forwardRef(
1060
+ (props, ref) => {
1094
1061
  const { leading, children, selectable, removable, ...rest } = props;
1095
- return (jsxs(WiredActionableTag, { ...rest, selectable: selectable || Boolean(rest.onChange), removable: removable || Boolean(rest.onRemove), ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
1096
- });
1097
-
1098
- const Text = createComponent({
1099
- tagName: 'm-text',
1100
- elementClass: Text$1,
1101
- displayName: 'Text',
1062
+ return /* @__PURE__ */ React__default.createElement(
1063
+ WiredActionableTag,
1064
+ {
1065
+ ...rest,
1066
+ selectable: selectable || Boolean(rest.onChange),
1067
+ removable: removable || Boolean(rest.onRemove),
1068
+ ref
1069
+ },
1070
+ leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading", style: SLOTTED_STYLE }, leading),
1071
+ children
1072
+ );
1073
+ }
1074
+ );
1075
+ const Text2 = createComponent({
1076
+ tagName: "m-text",
1077
+ elementClass: Text$1,
1078
+ displayName: "Text"
1102
1079
  });
1103
-
1104
1080
  const WiredTextArea = createComponent({
1105
- tagName: 'm-text-area',
1106
- elementClass: TextArea$1,
1107
- events: {
1108
- onInput: 'input',
1109
- onChange: 'change',
1110
- },
1111
- displayName: 'TextArea',
1081
+ tagName: "m-text-area",
1082
+ elementClass: TextArea$1,
1083
+ events: {
1084
+ onInput: "input",
1085
+ onChange: "change"
1086
+ },
1087
+ displayName: "TextArea"
1112
1088
  });
1113
- function TextArea(props) {
1114
- return jsx(WiredTextArea, { ...props });
1089
+ function TextArea2(props) {
1090
+ return /* @__PURE__ */ React__default.createElement(WiredTextArea, { ...props });
1115
1091
  }
1116
-
1117
1092
  const WiredTextField = createComponent({
1118
- tagName: 'm-text-field',
1119
- elementClass: TextField$1,
1120
- events: {
1121
- onInput: 'input',
1122
- onChange: 'change',
1123
- onClear: 'clear',
1124
- },
1125
- displayName: 'TextField',
1126
- });
1127
- const TextField = forwardRef(({ leading, trailing, ...rest }, ref) => {
1128
- return (jsxs(WiredTextField, { ...rest, ref: ref, children: [leading != null && jsx("div", { slot: "leading", children: leading }), trailing != null && jsx("div", { slot: "trailing", children: trailing })] }));
1129
- });
1130
-
1131
- const TimelineItem = createComponent({
1132
- tagName: 'm-timeline-item',
1133
- elementClass: TimelineItem$1,
1134
- displayName: 'TimelineItem',
1135
- });
1136
-
1137
- const TimelineExpandableItem = createComponent({
1138
- tagName: 'm-timeline-expandable-item',
1139
- elementClass: TimelineExpandableItem$1,
1140
- displayName: 'TimelineExpandableItem',
1141
- });
1142
-
1143
- const TimelineItemBody = createComponent({
1144
- tagName: 'm-timeline-item-body',
1145
- elementClass: TimelineItemBody$1,
1146
- displayName: 'TimelineItemBody',
1147
- });
1148
-
1149
- const TimelineItemFooter = createComponent({
1150
- tagName: 'm-timeline-item-footer',
1151
- elementClass: TimelineItemFooter$1,
1152
- displayName: 'TimelineItemFooter',
1153
- });
1154
-
1155
- const TimelineItemHeader = createComponent({
1156
- tagName: 'm-timeline-item-header',
1157
- elementClass: TimelineItemHeader$1,
1158
- displayName: 'TimelineItemHeader',
1159
- });
1160
-
1161
- const TimelineItemHeaderSubtitle = createComponent({
1162
- tagName: 'm-timeline-item-header-subtitle',
1163
- elementClass: TimelineItemHeaderSubtitle$1,
1164
- displayName: 'TimelineItemHeaderSubtitle',
1165
- });
1166
-
1167
- const TimelineItemHeaderTitle = createComponent({
1168
- tagName: 'm-timeline-item-header-title',
1169
- elementClass: TimelineItemHeaderTitle$1,
1170
- displayName: 'TimelineItemHeaderTitle',
1171
- });
1172
-
1173
- const TimelineItemIcon = createComponent({
1174
- tagName: 'm-timeline-item-icon',
1175
- elementClass: TimelineItemIcon$1,
1176
- displayName: 'TimelineItemIcon',
1177
- });
1178
-
1179
- const Timeline = createComponent({
1180
- tagName: 'm-timeline',
1181
- elementClass: Timeline$1,
1182
- displayName: 'Timeline',
1183
- subComponents: {
1184
- Item: TimelineItem,
1185
- ExpandableItem: TimelineExpandableItem,
1186
- ItemBody: TimelineItemBody,
1187
- ItemFooter: TimelineItemFooter,
1188
- ItemHeader: TimelineItemHeader,
1189
- ItemHeaderTitle: TimelineItemHeaderTitle,
1190
- ItemHeaderSubtitle: TimelineItemHeaderSubtitle,
1191
- ItemIcon: TimelineItemIcon,
1192
- },
1093
+ tagName: "m-text-field",
1094
+ elementClass: TextField$1,
1095
+ events: {
1096
+ onInput: "input",
1097
+ onChange: "change",
1098
+ onClear: "clear"
1099
+ },
1100
+ displayName: "TextField"
1101
+ });
1102
+ const TextField2 = forwardRef(
1103
+ ({ leading, trailing, value, ...rest }, ref) => {
1104
+ const normalizedValue = value !== void 0 ? String(value) : "";
1105
+ return /* @__PURE__ */ React__default.createElement(WiredTextField, { ...rest, value: normalizedValue, ref }, leading != null && /* @__PURE__ */ React__default.createElement("div", { slot: "leading" }, leading), trailing != null && /* @__PURE__ */ React__default.createElement("div", { slot: "trailing" }, trailing));
1106
+ }
1107
+ );
1108
+ const TimelineItem2 = createComponent({
1109
+ tagName: "m-timeline-item",
1110
+ elementClass: TimelineItem$1,
1111
+ displayName: "TimelineItem"
1112
+ });
1113
+ const TimelineExpandableItem2 = createComponent({
1114
+ tagName: "m-timeline-expandable-item",
1115
+ elementClass: TimelineExpandableItem$1,
1116
+ displayName: "TimelineExpandableItem"
1117
+ });
1118
+ const TimelineItemBody2 = createComponent({
1119
+ tagName: "m-timeline-item-body",
1120
+ elementClass: TimelineItemBody$1,
1121
+ displayName: "TimelineItemBody"
1122
+ });
1123
+ const TimelineItemFooter2 = createComponent({
1124
+ tagName: "m-timeline-item-footer",
1125
+ elementClass: TimelineItemFooter$1,
1126
+ displayName: "TimelineItemFooter"
1127
+ });
1128
+ const TimelineItemHeader2 = createComponent({
1129
+ tagName: "m-timeline-item-header",
1130
+ elementClass: TimelineItemHeader$1,
1131
+ displayName: "TimelineItemHeader"
1132
+ });
1133
+ const TimelineItemHeaderSubtitle2 = createComponent({
1134
+ tagName: "m-timeline-item-header-subtitle",
1135
+ elementClass: TimelineItemHeaderSubtitle$1,
1136
+ displayName: "TimelineItemHeaderSubtitle"
1137
+ });
1138
+ const TimelineItemHeaderTitle2 = createComponent({
1139
+ tagName: "m-timeline-item-header-title",
1140
+ elementClass: TimelineItemHeaderTitle$1,
1141
+ displayName: "TimelineItemHeaderTitle"
1142
+ });
1143
+ const TimelineItemIcon2 = createComponent({
1144
+ tagName: "m-timeline-item-icon",
1145
+ elementClass: TimelineItemIcon$1,
1146
+ displayName: "TimelineItemIcon"
1147
+ });
1148
+ const Timeline2 = createComponent({
1149
+ tagName: "m-timeline",
1150
+ elementClass: Timeline$1,
1151
+ displayName: "Timeline",
1152
+ subComponents: {
1153
+ Item: TimelineItem2,
1154
+ ExpandableItem: TimelineExpandableItem2,
1155
+ ItemBody: TimelineItemBody2,
1156
+ ItemFooter: TimelineItemFooter2,
1157
+ ItemHeader: TimelineItemHeader2,
1158
+ ItemHeaderTitle: TimelineItemHeaderTitle2,
1159
+ ItemHeaderSubtitle: TimelineItemHeaderSubtitle2,
1160
+ ItemIcon: TimelineItemIcon2
1161
+ }
1193
1162
  });
1194
-
1195
1163
  const WiredToggle = createComponent({
1196
- tagName: 'm-toggle',
1197
- elementClass: Toggle$1,
1198
- displayName: 'Toggle',
1164
+ tagName: "m-toggle",
1165
+ elementClass: Toggle$1,
1166
+ displayName: "Toggle"
1199
1167
  });
1200
- const Toggle = forwardRef((props, ref) => {
1201
- const { children, leading, ...rest } = props;
1202
- return (jsxs(WiredToggle, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
1168
+ const Toggle2 = forwardRef((props, ref) => {
1169
+ const { children, leading, ...rest } = props;
1170
+ return /* @__PURE__ */ React__default.createElement(WiredToggle, { ...rest, ref }, leading != null && /* @__PURE__ */ React__default.createElement("span", { slot: "leading" }, leading), children);
1203
1171
  });
1204
-
1205
1172
  const WiredToggleGroup = createComponent({
1206
- tagName: 'm-toggle-group',
1207
- elementClass: ToggleGroup$1,
1208
- events: {
1209
- onChange: 'change',
1173
+ tagName: "m-toggle-group",
1174
+ elementClass: ToggleGroup$1,
1175
+ events: {
1176
+ onChange: "change"
1177
+ },
1178
+ displayName: "ToggleGroup"
1179
+ });
1180
+ function ToggleGroup2({
1181
+ options,
1182
+ children,
1183
+ onChange,
1184
+ ...rest
1185
+ }) {
1186
+ return /* @__PURE__ */ React__default.createElement(
1187
+ WiredToggleGroup,
1188
+ {
1189
+ onChange,
1190
+ ...rest
1210
1191
  },
1211
- displayName: 'ToggleGroup',
1212
- });
1213
- function ToggleGroup(props) {
1214
- const { options, children, ...rest } = props;
1215
- return (jsx(WiredToggleGroup, { ...rest, children: children !== null && children !== void 0 ? children : (options || []).map(function renderOption(option) {
1216
- const { label, value: optionValue, ...others } = option;
1217
- return (jsx(Toggle, { ...others, value: optionValue, children: label }, optionValue));
1218
- }) }));
1192
+ children ?? options?.map(function renderOption(option) {
1193
+ const { label, value: optionValue, ...others } = option;
1194
+ return /* @__PURE__ */ React__default.createElement(Toggle2, { key: optionValue, ...others, value: optionValue }, label);
1195
+ })
1196
+ );
1219
1197
  }
1220
- ToggleGroup.Toggle = Toggle;
1221
-
1198
+ ToggleGroup2.Toggle = Toggle2;
1222
1199
  const WiredTooltip = createComponent({
1223
- tagName: 'm-tooltip',
1224
- elementClass: Tooltip$1,
1225
- displayName: 'Tooltip',
1200
+ tagName: "m-tooltip",
1201
+ elementClass: Tooltip$1,
1202
+ displayName: "Tooltip"
1226
1203
  });
1227
1204
  let counter = 0;
1228
- /**
1229
- * Generates a unique id for our elements, prepending the given `prefix`.
1230
- * @param prefix - Id prefix. Defaults to 'tt-anchor'
1231
- */
1232
- function generateId(prefix = 'tt-anchor') {
1233
- counter += 1;
1234
- /**
1235
- * prefixing with 'm' to ensure we always start with a letter.
1236
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
1237
- */
1238
- const id = `m-${prefix}-${counter}`;
1239
- /**
1240
- * Embracing the unlikelyhood of having 9007199254740991 elements we id-d with this approach
1241
- * at the same time in the document (in which case we would have a collision).
1242
- */
1243
- if (counter === Number.MAX_SAFE_INTEGER) {
1244
- counter = 0;
1245
- }
1246
- return id;
1205
+ function generateId(prefix = "tt-anchor") {
1206
+ counter += 1;
1207
+ const id = `m-${prefix}-${counter}`;
1208
+ if (counter === Number.MAX_SAFE_INTEGER) {
1209
+ counter = 0;
1210
+ }
1211
+ return id;
1247
1212
  }
1248
- /**
1249
- * Render the tooltip component.
1250
- *
1251
- * **Warning**: This component will throw if the provided `children` is not a single child,
1252
- * and will not render if the children is not valid or is a fragment.
1253
- */
1254
- function Tooltip(props) {
1255
- const { children, message, ...rest } = props;
1256
- const child = Children.only(children);
1257
- if (isFragment(child) || !isValidElement(child)) {
1258
- console.error('Tooltip must wrap a single and valid child element (Fragment is not accepted).');
1259
- return null; // do not render the tooltip if the children are not valid or a fragment
1213
+ function Tooltip2(props) {
1214
+ const { children, message, ...rest } = props;
1215
+ const child = Children.only(children);
1216
+ if (isFragment(child) || !isValidElement(child)) {
1217
+ console.error(
1218
+ "Tooltip must wrap a single and valid child element (Fragment is not accepted)."
1219
+ );
1220
+ return null;
1221
+ }
1222
+ const [anchorId, childWithId] = (() => {
1223
+ const elementWithID = child;
1224
+ const { id } = elementWithID.props;
1225
+ if (id) {
1226
+ return [id, elementWithID];
1260
1227
  }
1261
- const [anchorId, childWithId] = (() => {
1262
- const elementWithID = child;
1263
- const { id } = elementWithID.props;
1264
- if (id) {
1265
- return [id, elementWithID];
1266
- }
1267
- const generatedAnchorId = generateId();
1268
- return [
1269
- generatedAnchorId,
1270
- cloneElement(elementWithID, {
1271
- id: generatedAnchorId,
1272
- }),
1273
- ];
1274
- })();
1275
- return (jsxs(Fragment, { children: [jsx(WiredTooltip, { anchor: anchorId, ...rest, children: message }), childWithId] }));
1228
+ const generatedAnchorId = generateId();
1229
+ return [
1230
+ generatedAnchorId,
1231
+ cloneElement(elementWithID, {
1232
+ id: generatedAnchorId
1233
+ })
1234
+ ];
1235
+ })();
1236
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(WiredTooltip, { anchor: anchorId, ...rest }, message), childWithId);
1276
1237
  }
1277
-
1278
- const LogoLoader = createComponent({
1279
- tagName: 'm-logo-loader',
1280
- elementClass: LogoLoader$1,
1281
- displayName: 'LogoLoader',
1282
- });
1283
-
1284
- export { Accordion, ActionableTag, Badge, Banner, Box, Button, Card, Checkbox, Column, Container, Dialog, Divider, Drawer, Dropdown, DropdownItem, DropdownMenu, DropdownTrigger, EmptyState, Field, Grid, Group, Header, HeaderActions, HeaderTitle, Icon, LabeledValue, LabeledValueLabel, LabeledValueValue, Layout, Link, LogoLoader, PageContent, Pagination, ProgressBar, ProgressBarCountdown, Radio, RadioGroup, Row, Section, Select, Sidebar, SpinnerWheel, Stack, Step, Steps, SubHeader, Switch, Switcher, Tab, TabPanel, Table, TableActions, TableBody, TableCell, TableFeedback, TableFoot, TableHead, TableHeadCell, TableRow, TableToolbar, Tabs, Tag, Text, TextArea, TextField, Timeline, TimelineExpandableItem, TimelineItem, TimelineItemBody, TimelineItemFooter, TimelineItemHeader, TimelineItemHeaderSubtitle, TimelineItemHeaderTitle, TimelineItemIcon, Toggle, ToggleGroup, Tooltip, useSteps };
1238
+ const LogoLoader2 = createComponent({
1239
+ tagName: "m-logo-loader",
1240
+ elementClass: LogoLoader$1,
1241
+ displayName: "LogoLoader"
1242
+ });
1243
+ const DotsLoader = createComponent({
1244
+ tagName: "m-dots-loader",
1245
+ elementClass: DotsLoader$1,
1246
+ displayName: "DotsLoader"
1247
+ });
1248
+ export {
1249
+ Accordion2 as Accordion,
1250
+ ActionableTag2 as ActionableTag,
1251
+ Badge2 as Badge,
1252
+ Banner2 as Banner,
1253
+ Box2 as Box,
1254
+ Button2 as Button,
1255
+ Card2 as Card,
1256
+ Checkbox2 as Checkbox,
1257
+ Column2 as Column,
1258
+ Container2 as Container,
1259
+ DIALOG_SIZES,
1260
+ DIALOG_VARIANTS,
1261
+ DRAWER_SIZES,
1262
+ Dialog2 as Dialog,
1263
+ Divider2 as Divider,
1264
+ DotsLoader,
1265
+ Drawer2 as Drawer,
1266
+ Dropdown2 as Dropdown,
1267
+ DropdownItem2 as DropdownItem,
1268
+ DropdownMenu2 as DropdownMenu,
1269
+ DropdownTrigger2 as DropdownTrigger,
1270
+ EMPTY_STATE_VARIANTS,
1271
+ EmptyState2 as EmptyState,
1272
+ Field2 as Field,
1273
+ Grid2 as Grid,
1274
+ Group2 as Group,
1275
+ Header2 as Header,
1276
+ HeaderActions2 as HeaderActions,
1277
+ HeaderTabs,
1278
+ HeaderTitle2 as HeaderTitle,
1279
+ Icon2 as Icon,
1280
+ LabeledValue2 as LabeledValue,
1281
+ LabeledValueLabel2 as LabeledValueLabel,
1282
+ LabeledValueValue2 as LabeledValueValue,
1283
+ Layout,
1284
+ Link2 as Link,
1285
+ LogoLoader2 as LogoLoader,
1286
+ PageContent2 as PageContent,
1287
+ Pagination2 as Pagination,
1288
+ ProgressBar2 as ProgressBar,
1289
+ ProgressBarCountdown2 as ProgressBarCountdown,
1290
+ Radio2 as Radio,
1291
+ RadioGroup2 as RadioGroup,
1292
+ Row2 as Row,
1293
+ Section2 as Section,
1294
+ Select2 as Select,
1295
+ Sidebar2 as Sidebar,
1296
+ SpinnerWheel2 as SpinnerWheel,
1297
+ Stack2 as Stack,
1298
+ Step2 as Step,
1299
+ Steps2 as Steps,
1300
+ SubHeader2 as SubHeader,
1301
+ Switch2 as Switch,
1302
+ Switcher2 as Switcher,
1303
+ Tab2 as Tab,
1304
+ TabPanel2 as TabPanel,
1305
+ Table$1 as Table,
1306
+ TableActions2 as TableActions,
1307
+ TableBody$1 as TableBody,
1308
+ TableBody2 as TableBodyV2,
1309
+ TableCell$1 as TableCell,
1310
+ TableCell2 as TableCellV2,
1311
+ TableFeedback2 as TableFeedback,
1312
+ TableFoot$1 as TableFoot,
1313
+ TableFoot2 as TableFootV2,
1314
+ TableHead$1 as TableHead,
1315
+ TableHeadCell$1 as TableHeadCell,
1316
+ TableHeadCell2 as TableHeadCellV2,
1317
+ TableHead2 as TableHeadV2,
1318
+ TableLayout,
1319
+ TableLayoutActions,
1320
+ TableLayoutFeedback,
1321
+ TableLayoutToolbar,
1322
+ TableRow$1 as TableRow,
1323
+ TableRowExpand as TableRowExpandV2,
1324
+ TableRowSelect as TableRowSelectV2,
1325
+ TableRow2 as TableRowV2,
1326
+ TableSelectionCell,
1327
+ TableToolbar2 as TableToolbar,
1328
+ Table2 as TableV2,
1329
+ Tabs2 as Tabs,
1330
+ Tag2 as Tag,
1331
+ Text2 as Text,
1332
+ TextArea2 as TextArea,
1333
+ TextField2 as TextField,
1334
+ Timeline2 as Timeline,
1335
+ TimelineExpandableItem2 as TimelineExpandableItem,
1336
+ TimelineItem2 as TimelineItem,
1337
+ TimelineItemBody2 as TimelineItemBody,
1338
+ TimelineItemFooter2 as TimelineItemFooter,
1339
+ TimelineItemHeader2 as TimelineItemHeader,
1340
+ TimelineItemHeaderSubtitle2 as TimelineItemHeaderSubtitle,
1341
+ TimelineItemHeaderTitle2 as TimelineItemHeaderTitle,
1342
+ TimelineItemIcon2 as TimelineItemIcon,
1343
+ Toggle2 as Toggle,
1344
+ ToggleGroup2 as ToggleGroup,
1345
+ Tooltip2 as Tooltip,
1346
+ Accordion as WCAccordion,
1347
+ AccordionContent as WCAccordionContent,
1348
+ AccordionTitle as WCAccordionTitle,
1349
+ ActionableTag as WCActionableTag,
1350
+ Badge as WCBadge,
1351
+ Banner as WCBanner,
1352
+ BannerActionPrimary as WCBannerActionPrimary,
1353
+ BannerActionSecondary as WCBannerActionSecondary,
1354
+ BannerActions as WCBannerActions,
1355
+ BannerDescription as WCBannerDescription,
1356
+ BannerIcon as WCBannerIcon,
1357
+ BannerTitle as WCBannerTitle,
1358
+ Box as WCBox,
1359
+ Button as WCButton,
1360
+ Card as WCCard,
1361
+ CardActionPrimary as WCCardActionPrimary,
1362
+ CardActionSecondary as WCCardActionSecondary,
1363
+ CardActionTertiary as WCCardActionTertiary,
1364
+ CardBody as WCCardBody,
1365
+ CardDivider as WCCardDivider,
1366
+ CardFooter as WCCardFooter,
1367
+ CardSubtitle as WCCardSubtitle,
1368
+ CardTitle as WCCardTitle,
1369
+ Checkbox as WCCheckbox,
1370
+ Column as WCColumn,
1371
+ Container as WCContainer,
1372
+ Dialog as WCDialog,
1373
+ DialogActionPrimary as WCDialogActionPrimary,
1374
+ DialogActionSecondary as WCDialogActionSecondary,
1375
+ DialogActionTertiary as WCDialogActionTertiary,
1376
+ DialogActions as WCDialogActions,
1377
+ DialogBody as WCDialogBody,
1378
+ DialogClose as WCDialogClose,
1379
+ DialogFooter as WCDialogFooter,
1380
+ DialogHeader as WCDialogHeader,
1381
+ Divider as WCDivider,
1382
+ Drawer as WCDrawer,
1383
+ DrawerActionPrimary as WCDrawerActionPrimary,
1384
+ DrawerActionSecondary as WCDrawerActionSecondary,
1385
+ DrawerActionTertiary as WCDrawerActionTertiary,
1386
+ DrawerActions as WCDrawerActions,
1387
+ DrawerBody as WCDrawerBody,
1388
+ DrawerClose as WCDrawerClose,
1389
+ DrawerHeader as WCDrawerHeader,
1390
+ Dropdown as WCDropdown,
1391
+ DropdownItem as WCDropdownItem,
1392
+ DropdownMenu as WCDropdownMenu,
1393
+ DropdownTrigger as WCDropdownTrigger,
1394
+ EmptyState as WCEmptyState,
1395
+ EmptyStateAction as WCEmptyStateAction,
1396
+ EmptyStateHeader as WCEmptyStateHeader,
1397
+ EmptyStateIllustration as WCEmptyStateIllustration,
1398
+ EmptyStateMessage as WCEmptyStateMessage,
1399
+ Field as WCField,
1400
+ FieldHint as WCFieldHint,
1401
+ FieldLabel as WCFieldLabel,
1402
+ Grid as WCGrid,
1403
+ Group as WCGroup,
1404
+ Header as WCHeader,
1405
+ HeaderActions as WCHeaderActions,
1406
+ HeaderContent as WCHeaderContent,
1407
+ HeaderTitle as WCHeaderTitle,
1408
+ Icon as WCIcon,
1409
+ LabeledValue as WCLabeledValue,
1410
+ LabeledValueLabel as WCLabeledValueLabel,
1411
+ LabeledValueValue as WCLabeledValueValue,
1412
+ Link as WCLink,
1413
+ LogoLoader as WCLogoLoader,
1414
+ PageContent as WCPageContent,
1415
+ Pagination as WCPagination,
1416
+ ProgressBar as WCProgressBar,
1417
+ ProgressBarCountdown as WCProgressBarCountdown,
1418
+ Radio as WCRadio,
1419
+ RadioGroup as WCRadioGroup,
1420
+ Row as WCRow,
1421
+ Section as WCSection,
1422
+ SectionTitle as WCSectionTitle,
1423
+ Select as WCSelect,
1424
+ SelectOption as WCSelectOption,
1425
+ Sidebar as WCSidebar,
1426
+ SpinnerWheel as WCSpinnerWheel,
1427
+ Stack as WCStack,
1428
+ Step as WCStep,
1429
+ Steps as WCSteps,
1430
+ SubHeader as WCSubHeader,
1431
+ Switch as WCSwitch,
1432
+ Switcher as WCSwitcher,
1433
+ Tab as WCTab,
1434
+ TabPanel as WCTabPanel,
1435
+ Table as WCTable,
1436
+ TableActions as WCTableActions,
1437
+ TableBody as WCTableBody,
1438
+ TableCell as WCTableCell,
1439
+ TableFeedback as WCTableFeedback,
1440
+ TableFoot as WCTableFoot,
1441
+ TableHead as WCTableHead,
1442
+ TableHeadCell as WCTableHeadCell,
1443
+ TableRow as WCTableRow,
1444
+ TableToolbar as WCTableToolbar,
1445
+ Tabs as WCTabs,
1446
+ Tag as WCTag,
1447
+ Text as WCText,
1448
+ TextArea as WCTextArea,
1449
+ TextField as WCTextField,
1450
+ Timeline as WCTimeline,
1451
+ TimelineExpandableItem as WCTimelineExpandableItem,
1452
+ TimelineItem as WCTimelineItem,
1453
+ TimelineItemBody as WCTimelineItemBody,
1454
+ TimelineItemFooter as WCTimelineItemFooter,
1455
+ TimelineItemHeader as WCTimelineItemHeader,
1456
+ TimelineItemHeaderSubtitle as WCTimelineItemHeaderSubtitle,
1457
+ TimelineItemHeaderTitle as WCTimelineItemHeaderTitle,
1458
+ TimelineItemIcon as WCTimelineItemIcon,
1459
+ Toggle as WCToggle,
1460
+ ToggleGroup as WCToggleGroup,
1461
+ Tooltip as WCTooltip,
1462
+ useSteps
1463
+ };