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

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 (116) hide show
  1. package/dist/components/Accordion/index.d.ts +0 -2
  2. package/dist/components/Badge/index.d.ts +0 -2
  3. package/dist/components/Banner/Banner.d.ts +1 -0
  4. package/dist/components/Banner/index.d.ts +1 -3
  5. package/dist/components/Button/index.d.ts +0 -2
  6. package/dist/components/Card/index.d.ts +0 -2
  7. package/dist/components/Checkbox/index.d.ts +0 -2
  8. package/dist/components/Dialog/index.d.ts +0 -2
  9. package/dist/components/Divider/index.d.ts +0 -1
  10. package/dist/components/Drawer/index.d.ts +0 -2
  11. package/dist/components/Dropdown/index.d.ts +0 -2
  12. package/dist/components/EmptyState/index.d.ts +0 -1
  13. package/dist/components/Field/index.d.ts +0 -2
  14. package/dist/components/Header/index.d.ts +0 -1
  15. package/dist/components/Icon/index.d.ts +0 -2
  16. package/dist/components/LabeledValue/index.d.ts +0 -2
  17. package/dist/components/Layout/index.d.ts +0 -2
  18. package/dist/components/Link/Link.d.ts +2 -0
  19. package/dist/components/Link/index.d.ts +1 -3
  20. package/dist/components/LogoLoader/index.d.ts +0 -2
  21. package/dist/components/PageContent/index.d.ts +0 -4
  22. package/dist/components/Pagination/index.d.ts +0 -2
  23. package/dist/components/ProgressBar/ProgressBar.d.ts +2 -0
  24. package/dist/components/ProgressBar/index.d.ts +1 -3
  25. package/dist/components/ProgressBarCountdown/index.d.ts +0 -2
  26. package/dist/components/RadioGroup/index.d.ts +0 -2
  27. package/dist/components/Section/index.d.ts +0 -2
  28. package/dist/components/SpinnerWheel/index.d.ts +0 -2
  29. package/dist/components/Steps/index.d.ts +0 -2
  30. package/dist/components/Switch/index.d.ts +0 -2
  31. package/dist/components/Table/index.d.ts +1 -2
  32. package/dist/components/Tabs/index.d.ts +1 -2
  33. package/dist/components/Tag/index.d.ts +0 -2
  34. package/dist/components/Text/index.d.ts +0 -2
  35. package/dist/components/TextArea/index.d.ts +0 -2
  36. package/dist/components/TextField/index.d.ts +0 -2
  37. package/dist/components/Timeline/index.d.ts +0 -2
  38. package/dist/components/ToggleGroup/index.d.ts +0 -2
  39. package/dist/components/Tooltip/Tooltip.d.ts +2 -1
  40. package/dist/components/Tooltip/index.d.ts +1 -3
  41. package/dist/index.d.ts +67 -0
  42. package/dist/index.js +1202 -40
  43. package/package.json +3 -3
  44. package/dist/Accordion-CRFOEG8P.js +0 -35
  45. package/dist/ActionableTag-CiY3ktmR.js +0 -30
  46. package/dist/Badge-bksnMK0y.js +0 -10
  47. package/dist/Banner-DKi8HnhY.js +0 -67
  48. package/dist/Button-MYGS0n5V.js +0 -16
  49. package/dist/Card-DMVgqLq2.js +0 -88
  50. package/dist/Checkbox-OA3mt9qr.js +0 -19
  51. package/dist/Dialog-BXmQb7iZ.js +0 -92
  52. package/dist/Divider-Ce0Poebo.js +0 -10
  53. package/dist/Drawer-DAL5BRMS.js +0 -84
  54. package/dist/Dropdown-BZq7wxH2.js +0 -47
  55. package/dist/EmptyState-N_H8UALy.js +0 -49
  56. package/dist/Field-DUTm4XZx.js +0 -31
  57. package/dist/Header-BVVroF-a.js +0 -47
  58. package/dist/Icon-JSXp1ySp.js +0 -10
  59. package/dist/LabeledValue-BEj3zEk5.js +0 -33
  60. package/dist/Layout-yKvtIEmV.js +0 -81
  61. package/dist/Link-XqV4DM9g.js +0 -10
  62. package/dist/LogoLoader-Bjplh2u3.js +0 -10
  63. package/dist/PageContent-Bu0ofdVV.js +0 -19
  64. package/dist/Pagination-D2HYqeb2.js +0 -13
  65. package/dist/ProgressBar-CdwVUs1k.js +0 -10
  66. package/dist/ProgressBarCountdown-BsTb_5jd.js +0 -10
  67. package/dist/RadioGroup-QWrSrVvv.js +0 -28
  68. package/dist/Section-BcuVyQXQ.js +0 -24
  69. package/dist/SpinnerWheel-BqMAxsBi.js +0 -10
  70. package/dist/Switch-Uq5TuNqD.js +0 -13
  71. package/dist/Table-DlnVsR0p.js +0 -78
  72. package/dist/Tabs-9eHquUoD.js +0 -34
  73. package/dist/Text-BUtQqPKN.js +0 -10
  74. package/dist/TextArea-DNtv4x9o.js +0 -18
  75. package/dist/TextField-BHj0EHuT.js +0 -20
  76. package/dist/Timeline-MCAixOaW.js +0 -68
  77. package/dist/ToggleGroup-ig9rKVtU.js +0 -33
  78. package/dist/Tooltip-0sGIbwe8.js +0 -15
  79. package/dist/accordion.js +0 -5
  80. package/dist/badge.js +0 -4
  81. package/dist/banner.js +0 -5
  82. package/dist/button.js +0 -5
  83. package/dist/card.js +0 -5
  84. package/dist/checkbox.js +0 -5
  85. package/dist/createComponent-Cye6h9wF.js +0 -120
  86. package/dist/dialog.js +0 -5
  87. package/dist/divider.js +0 -4
  88. package/dist/drawer.js +0 -5
  89. package/dist/dropdown.js +0 -5
  90. package/dist/emptystate.js +0 -5
  91. package/dist/field.js +0 -5
  92. package/dist/header.js +0 -4
  93. package/dist/icon.js +0 -4
  94. package/dist/labeledvalue.js +0 -5
  95. package/dist/layout.js +0 -5
  96. package/dist/link.js +0 -4
  97. package/dist/logoloader.js +0 -4
  98. package/dist/pagecontent.js +0 -4
  99. package/dist/pagination.js +0 -4
  100. package/dist/progressbar.js +0 -4
  101. package/dist/progressbarcountdown.js +0 -4
  102. package/dist/radiogroup.js +0 -5
  103. package/dist/section.js +0 -5
  104. package/dist/spinnerwheel.js +0 -4
  105. package/dist/steps.js +0 -4
  106. package/dist/switch.js +0 -4
  107. package/dist/table.js +0 -4
  108. package/dist/tabs.js +0 -5
  109. package/dist/tag.js +0 -5
  110. package/dist/text.js +0 -4
  111. package/dist/textarea.js +0 -5
  112. package/dist/textfield.js +0 -5
  113. package/dist/timeline.js +0 -4
  114. package/dist/togglegroup.js +0 -5
  115. package/dist/tooltip.js +0 -5
  116. package/dist/useSteps-O9Ch5_pJ.js +0 -88
package/dist/index.js CHANGED
@@ -1,40 +1,1202 @@
1
- export { A as Accordion } from './Accordion-CRFOEG8P.js';
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, Body as WCBody, 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
- export { B as Badge } from './Badge-bksnMK0y.js';
4
- export { B as Banner } from './Banner-DKi8HnhY.js';
5
- export { B as Button } from './Button-MYGS0n5V.js';
6
- export { C as Card } from './Card-DMVgqLq2.js';
7
- export { C as Checkbox } from './Checkbox-OA3mt9qr.js';
8
- export { D as Dialog } from './Dialog-BXmQb7iZ.js';
9
- export { D as Divider } from './Divider-Ce0Poebo.js';
10
- export { D as Drawer } from './Drawer-DAL5BRMS.js';
11
- export { D as Dropdown, b as DropdownItem, a as DropdownMenu, c as DropdownTrigger } from './Dropdown-BZq7wxH2.js';
12
- export { E as EmptyState } from './EmptyState-N_H8UALy.js';
13
- export { F as Field } from './Field-DUTm4XZx.js';
14
- export { H as Header, a as HeaderActions, b as HeaderTitle, S as SubHeader } from './Header-BVVroF-a.js';
15
- export { I as Icon } from './Icon-JSXp1ySp.js';
16
- export { b as LabeledValue, L as LabeledValueLabel, a as LabeledValueValue } from './LabeledValue-BEj3zEk5.js';
17
- export { B as Box, C as Column, d as Container, a as Grid, G as Group, L as Layout, R as Row, b as Sidebar, S as Stack, c as Switcher } from './Layout-yKvtIEmV.js';
18
- export { L as Link } from './Link-XqV4DM9g.js';
19
- export { B as Body, P as PageContent } from './PageContent-Bu0ofdVV.js';
20
- export { P as Pagination } from './Pagination-D2HYqeb2.js';
21
- export { P as ProgressBar } from './ProgressBar-CdwVUs1k.js';
22
- export { P as ProgressBarCountdown } from './ProgressBarCountdown-BsTb_5jd.js';
23
- export { a as Radio, R as RadioGroup } from './RadioGroup-QWrSrVvv.js';
24
- export { S as Section } from './Section-BcuVyQXQ.js';
25
- export { S as SpinnerWheel } from './SpinnerWheel-BqMAxsBi.js';
26
- export { a as Step, S as Steps, u as useSteps } from './useSteps-O9Ch5_pJ.js';
27
- export { S as Switch } from './Switch-Uq5TuNqD.js';
28
- export { T as Table, i as TableActions, b as TableBody, f as TableCell, h as TableFeedback, c as TableFoot, a as TableHead, e as TableHeadCell, d as TableRow, g as TableToolbar } from './Table-DlnVsR0p.js';
29
- export { a as Tab, b as TabPanel, T as Tabs } from './Tabs-9eHquUoD.js';
30
- export { A as ActionableTag, T as Tag } from './ActionableTag-CiY3ktmR.js';
31
- export { T as Text } from './Text-BUtQqPKN.js';
32
- export { T as TextArea } from './TextArea-DNtv4x9o.js';
33
- export { T as TextField } from './TextField-BHj0EHuT.js';
34
- export { T as Timeline, b as TimelineExpandableItem, a as TimelineItem, c as TimelineItemBody, d as TimelineItemFooter, e as TimelineItemHeader, f as TimelineItemHeaderSubtitle, g as TimelineItemHeaderTitle, h as TimelineItemIcon } from './Timeline-MCAixOaW.js';
35
- export { a as Toggle, T as ToggleGroup } from './ToggleGroup-ig9rKVtU.js';
36
- export { T as Tooltip } from './Tooltip-0sGIbwe8.js';
37
- export { L as LogoLoader } from './LogoLoader-Bjplh2u3.js';
38
- import './createComponent-Cye6h9wF.js';
39
- import 'react';
40
- import 'react/jsx-runtime';
1
+ import { AccordionTitle as AccordionTitle$1, AccordionContent as AccordionContent$1, Accordion as Accordion$1, Badge as Badge$1, BannerActionPrimary as BannerActionPrimary$1, BannerActions as BannerActions$1, BannerActionSecondary as BannerActionSecondary$1, BannerDescription as BannerDescription$1, BannerIcon as BannerIcon$1, BannerTitle as BannerTitle$1, Banner as Banner$1, Button as Button$1, CardTitle as CardTitle$1, CardSubtitle as CardSubtitle$1, CardBody as CardBody$1, CardDivider as CardDivider$1, CardActionPrimary as CardActionPrimary$1, CardActionSecondary as CardActionSecondary$1, CardActionTertiary as CardActionTertiary$1, CardFooter as CardFooter$1, Card as Card$1, Checkbox as Checkbox$1, DialogActionPrimary as DialogActionPrimary$1, DialogActionSecondary as DialogActionSecondary$1, DialogActionTertiary as DialogActionTertiary$1, DialogActions as DialogActions$1, DialogBody as DialogBody$1, DialogClose as DialogClose$1, DialogFooter as DialogFooter$1, DialogHeader as DialogHeader$1, Dialog as Dialog$1, Divider as Divider$1, DrawerActionPrimary as DrawerActionPrimary$1, DrawerActionSecondary as DrawerActionSecondary$1, DrawerActionTertiary as DrawerActionTertiary$1, DrawerActions as DrawerActions$1, DrawerBody as DrawerBody$1, DrawerClose as DrawerClose$1, DrawerHeader as DrawerHeader$1, Drawer as Drawer$1, DropdownItem as DropdownItem$1, DropdownMenu as DropdownMenu$1, DropdownTrigger as DropdownTrigger$1, Dropdown as Dropdown$1, EmptyStateIllustration as EmptyStateIllustration$1, EmptyStateHeader as EmptyStateHeader$1, EmptyStateMessage as EmptyStateMessage$1, EmptyStateAction as EmptyStateAction$1, EmptyState as EmptyState$1, FieldLabel as FieldLabel$1, FieldHint as FieldHint$1, Field as Field$1, HeaderActions as HeaderActions$1, HeaderContent as HeaderContent$1, HeaderTitle as HeaderTitle$1, SubHeader as SubHeader$1, BackButton, Header as Header$1, Icon as Icon$1, LabeledValueLabel as LabeledValueLabel$1, LabeledValueValue as LabeledValueValue$1, LabeledValue as LabeledValue$1, Box as Box$1, Group as Group$1, Stack as Stack$1, Grid as Grid$1, Sidebar as Sidebar$1, Switcher as Switcher$1, Container as Container$1, Row as Row$1, Column as Column$1, Link as Link$1, Body as Body$1, PageContent as PageContent$1, Pagination as Pagination$1, ProgressBar as ProgressBar$1, ProgressBarCountdown as ProgressBarCountdown$1, Radio as Radio$1, RadioGroup as RadioGroup$1, SectionTitle as SectionTitle$1, Section as Section$1, SpinnerWheel as SpinnerWheel$1, Step as Step$1, Steps as Steps$1, Switch as Switch$1, TableHead as TableHead$1, TableBody as TableBody$1, TableFoot as TableFoot$1, TableRow as TableRow$1, TableCell as TableCell$1, TableToolbar as TableToolbar$1, TableHeadCell as TableHeadCell$1, TableFeedback as TableFeedback$1, TableActions as TableActions$1, Table as Table$1, Tab as Tab$1, TabPanel as TabPanel$1, Tabs as Tabs$1, Tag as Tag$1, ActionableTag as ActionableTag$1, Text as Text$1, TextArea as TextArea$1, TextField as TextField$1, TimelineItem as TimelineItem$1, TimelineExpandableItem as TimelineExpandableItem$1, TimelineItemBody as TimelineItemBody$1, TimelineItemFooter as TimelineItemFooter$1, TimelineItemHeader as TimelineItemHeader$1, TimelineItemHeaderSubtitle as TimelineItemHeaderSubtitle$1, TimelineItemHeaderTitle as TimelineItemHeaderTitle$1, TimelineItemIcon as TimelineItemIcon$1, Timeline as Timeline$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Tooltip as Tooltip$1, LogoLoader as LogoLoader$1 } from '@loadsmart/miranda-wc';
2
+ 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 } from 'react';
5
+ import { jsxs, jsx } from 'react/jsx-runtime';
6
+
7
+ function _extends() {
8
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
9
+ for (var i = 1; i < arguments.length; i++) {
10
+ var source = arguments[i];
11
+ for (var key in source) {
12
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
13
+ target[key] = source[key];
14
+ }
15
+ }
16
+ }
17
+ return target;
18
+ };
19
+ return _extends.apply(this, arguments);
20
+ }
21
+ function _unsupportedIterableToArray(o, minLen) {
22
+ if (!o) return;
23
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
24
+ var n = Object.prototype.toString.call(o).slice(8, -1);
25
+ if (n === "Object" && o.constructor) n = o.constructor.name;
26
+ if (n === "Map" || n === "Set") return Array.from(o);
27
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
28
+ }
29
+ function _arrayLikeToArray(arr, len) {
30
+ if (len == null || len > arr.length) len = arr.length;
31
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
32
+ return arr2;
33
+ }
34
+ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
35
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
36
+ if (it) return (it = it.call(o)).next.bind(it);
37
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
38
+ if (it) o = it;
39
+ var i = 0;
40
+ return function () {
41
+ if (i >= o.length) return {
42
+ done: true
43
+ };
44
+ return {
45
+ done: false,
46
+ value: o[i++]
47
+ };
48
+ };
49
+ }
50
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
51
+ }
52
+
53
+ /**
54
+ * @license
55
+ * Copyright 2018 Google LLC
56
+ * SPDX-License-Identifier: BSD-3-Clause
57
+ */
58
+ var e = new Set(["children", "localName", "ref", "style", "className"]),
59
+ n = new WeakMap(),
60
+ t = function t(e, _t, o, l, a) {
61
+ var s = a == null ? void 0 : a[_t];
62
+ void 0 === s ? (e[_t] = o, null == o && _t in HTMLElement.prototype && e.removeAttribute(_t)) : o !== l && function (e, t, o) {
63
+ var l = n.get(e);
64
+ void 0 === l && n.set(e, l = new Map());
65
+ var a = l.get(t);
66
+ void 0 !== o ? void 0 === a ? (l.set(t, a = {
67
+ handleEvent: o
68
+ }), e.addEventListener(t, a)) : a.handleEvent = o : void 0 !== a && (l["delete"](t), e.removeEventListener(t, a));
69
+ }(e, s, o);
70
+ },
71
+ o = function o(_ref) {
72
+ var n = _ref.react,
73
+ o = _ref.tagName,
74
+ l = _ref.elementClass,
75
+ a = _ref.events,
76
+ s = _ref.displayName;
77
+ var c = new Set(Object.keys(a != null ? a : {})),
78
+ r = n.forwardRef(function (s, r) {
79
+ var i = n.useRef(new Map()),
80
+ d = n.useRef(null),
81
+ f = {},
82
+ u = {};
83
+ for (var _i = 0, _Object$entries = Object.entries(s); _i < _Object$entries.length; _i++) {
84
+ var _Object$entries$_i = _Object$entries[_i],
85
+ _n = _Object$entries$_i[0],
86
+ _t2 = _Object$entries$_i[1];
87
+ e.has(_n) ? f["className" === _n ? "class" : _n] = _t2 : c.has(_n) || _n in l.prototype ? u[_n] = _t2 : f[_n] = _t2;
88
+ }
89
+ return n.useLayoutEffect(function () {
90
+ if (null === d.current) return;
91
+ var e = new Map();
92
+ 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]);
93
+ for (var _iterator = _createForOfIteratorHelperLoose(i.current), _step; !(_step = _iterator()).done;) {
94
+ var _step$value = _step.value,
95
+ _e = _step$value[0],
96
+ _n3 = _step$value[1];
97
+ t(d.current, _e, void 0, _n3, a);
98
+ }
99
+ i.current = e;
100
+ }), n.useLayoutEffect(function () {
101
+ var _d$current;
102
+ (_d$current = d.current) == null || _d$current.removeAttribute("defer-hydration");
103
+ }, []), f.suppressHydrationWarning = !0, n.createElement(o, _extends({}, f, {
104
+ ref: n.useCallback(function (e) {
105
+ d.current = e, "function" == typeof r ? r(e) : null !== r && (r.current = e);
106
+ }, [r])
107
+ }));
108
+ });
109
+ return r.displayName = s != null ? s : l.name, r;
110
+ };
111
+
112
+ const createComponent = ({ subComponents, ...options }) => {
113
+ const ReactComponent = o({
114
+ react: React,
115
+ ...options,
116
+ });
117
+ const ComponentWithSubComponents = ReactComponent;
118
+ if (subComponents) {
119
+ Object.assign(ComponentWithSubComponents, subComponents);
120
+ }
121
+ return ComponentWithSubComponents;
122
+ };
123
+
124
+ const WiredAccordionTitle = createComponent({
125
+ tagName: 'm-accordion-title',
126
+ elementClass: AccordionTitle$1,
127
+ displayName: 'AccordionTitle',
128
+ });
129
+ const AccordionTitle = forwardRef((props, ref) => {
130
+ const { leading, children, ...rest } = props;
131
+ return (jsxs(WiredAccordionTitle, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
132
+ });
133
+
134
+ const AccordionContent = createComponent({
135
+ tagName: 'm-accordion-content',
136
+ elementClass: AccordionContent$1,
137
+ displayName: 'AccordionContent',
138
+ });
139
+
140
+ const Accordion = createComponent({
141
+ tagName: 'm-accordion',
142
+ elementClass: Accordion$1,
143
+ displayName: 'Accordion',
144
+ events: {
145
+ onToggle: 'm-toggle',
146
+ },
147
+ subComponents: {
148
+ Title: AccordionTitle,
149
+ Content: AccordionContent,
150
+ },
151
+ });
152
+
153
+ const Badge = createComponent({
154
+ tagName: 'm-badge',
155
+ elementClass: Badge$1,
156
+ displayName: 'Badge',
157
+ });
158
+
159
+ const WiredBannerActionPrimary = createComponent({
160
+ tagName: 'm-banner-action-primary',
161
+ elementClass: BannerActionPrimary$1,
162
+ displayName: 'BannerActionPrimary',
163
+ });
164
+ const BannerActionPrimary = forwardRef((props, ref) => {
165
+ const { leading, trailing, children, ...rest } = props;
166
+ return (jsxs(WiredBannerActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
167
+ });
168
+
169
+ const BannerActions = createComponent({
170
+ tagName: 'm-banner-actions',
171
+ elementClass: BannerActions$1,
172
+ displayName: 'BannerActions',
173
+ });
174
+
175
+ const WiredBannerActionSecondary = createComponent({
176
+ tagName: 'm-banner-action-secondary',
177
+ elementClass: BannerActionSecondary$1,
178
+ displayName: 'BannerActionSecondary',
179
+ });
180
+ const BannerActionSecondary = forwardRef((props, ref) => {
181
+ const { leading, trailing, children, ...rest } = props;
182
+ return (jsxs(WiredBannerActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
183
+ });
184
+
185
+ const BannerDescription = createComponent({
186
+ tagName: 'm-banner-description',
187
+ elementClass: BannerDescription$1,
188
+ displayName: 'BannerDescription',
189
+ });
190
+
191
+ const BannerIcon = createComponent({
192
+ tagName: 'm-banner-icon',
193
+ elementClass: BannerIcon$1,
194
+ displayName: 'BannerIcon',
195
+ });
196
+
197
+ const BannerTitle = createComponent({
198
+ tagName: 'm-banner-title',
199
+ elementClass: BannerTitle$1,
200
+ displayName: 'BannerTitle',
201
+ });
202
+
203
+ const Banner = createComponent({
204
+ tagName: 'm-banner',
205
+ elementClass: Banner$1,
206
+ events: {
207
+ onDismiss: 'm-dismiss',
208
+ },
209
+ displayName: 'Banner',
210
+ subComponents: {
211
+ ActionPrimary: BannerActionPrimary,
212
+ Actions: BannerActions,
213
+ ActionSecondary: BannerActionSecondary,
214
+ Description: BannerDescription,
215
+ Icon: BannerIcon,
216
+ Title: BannerTitle,
217
+ },
218
+ });
219
+
220
+ const WiredButton = createComponent({
221
+ tagName: 'm-button',
222
+ elementClass: Button$1,
223
+ displayName: 'Button',
224
+ });
225
+ const Button = forwardRef((props, ref) => {
226
+ const { leading, trailing, children, ...rest } = props;
227
+ return (jsxs(WiredButton, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
228
+ });
229
+
230
+ const WiredCardTitle = createComponent({
231
+ tagName: 'm-card-title',
232
+ elementClass: CardTitle$1,
233
+ displayName: 'CardTitle',
234
+ });
235
+ const CardTitle = forwardRef(({ children, leading, ...props }, ref) => {
236
+ return (jsxs(WiredCardTitle, { ...props, slot: "title", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
237
+ });
238
+
239
+ const CardSubtitle = createComponent({
240
+ tagName: 'm-card-subtitle',
241
+ elementClass: CardSubtitle$1,
242
+ displayName: 'CardSubtitle',
243
+ });
244
+
245
+ const CardBody = createComponent({
246
+ tagName: 'm-card-body',
247
+ elementClass: CardBody$1,
248
+ displayName: 'CardBody',
249
+ });
250
+
251
+ const CardDivider = createComponent({
252
+ tagName: 'm-card-divider',
253
+ elementClass: CardDivider$1,
254
+ displayName: 'CardDivider',
255
+ });
256
+
257
+ const WiredCardActionPrimary = createComponent({
258
+ tagName: 'm-card-action-primary',
259
+ elementClass: CardActionPrimary$1,
260
+ displayName: 'CardActionPrimary',
261
+ });
262
+ const CardActionPrimary = forwardRef((props, ref) => {
263
+ const { leading, trailing, children, ...rest } = props;
264
+ return (jsxs(WiredCardActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
265
+ });
266
+
267
+ const WiredCardActionSecondary = createComponent({
268
+ tagName: 'm-card-action-secondary',
269
+ elementClass: CardActionSecondary$1,
270
+ displayName: 'CardActionSecondary',
271
+ });
272
+ const CardActionSecondary = forwardRef((props, ref) => {
273
+ const { leading, trailing, children, ...rest } = props;
274
+ return (jsxs(WiredCardActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
275
+ });
276
+
277
+ const WiredCardActionTertiary = createComponent({
278
+ tagName: 'm-card-action-tertiary',
279
+ elementClass: CardActionTertiary$1,
280
+ displayName: 'CardActionTertiary',
281
+ });
282
+ const CardActionTertiary = forwardRef((props, ref) => {
283
+ const { leading, trailing, children, ...rest } = props;
284
+ return (jsxs(WiredCardActionTertiary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
285
+ });
286
+
287
+ const CardFooter = createComponent({
288
+ tagName: 'm-card-footer',
289
+ elementClass: CardFooter$1,
290
+ displayName: 'CardFooter',
291
+ });
292
+
293
+ const Card = createComponent({
294
+ tagName: 'm-card',
295
+ elementClass: Card$1,
296
+ displayName: 'Card',
297
+ events: {
298
+ onToggle: 'm-toggle',
299
+ },
300
+ subComponents: {
301
+ Title: CardTitle,
302
+ Subtitle: CardSubtitle,
303
+ Body: CardBody,
304
+ Divider: CardDivider,
305
+ ActionPrimary: CardActionPrimary,
306
+ ActionSecondary: CardActionSecondary,
307
+ ActionTertiary: CardActionTertiary,
308
+ Footer: CardFooter,
309
+ },
310
+ });
311
+
312
+ const WiredCheckbox = createComponent({
313
+ tagName: 'm-checkbox',
314
+ elementClass: Checkbox$1,
315
+ events: {
316
+ onChange: 'change',
317
+ },
318
+ displayName: 'Checkbox',
319
+ });
320
+ const Checkbox = forwardRef((props, ref) => {
321
+ const { children, leading, ...rest } = props;
322
+ return (jsxs(WiredCheckbox, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
323
+ });
324
+
325
+ const WiredDialogActionPrimary = createComponent({
326
+ tagName: 'm-dialog-action-primary',
327
+ elementClass: DialogActionPrimary$1,
328
+ displayName: 'DialogActionPrimary',
329
+ });
330
+ const DialogActionPrimary = forwardRef((props, ref) => {
331
+ const { leading, trailing, children, ...rest } = props;
332
+ return (jsxs(WiredDialogActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
333
+ });
334
+
335
+ const WiredDialogActionSecondary = createComponent({
336
+ tagName: 'm-dialog-action-secondary',
337
+ elementClass: DialogActionSecondary$1,
338
+ displayName: 'DialogActionSecondary',
339
+ });
340
+ const DialogActionSecondary = forwardRef((props, ref) => {
341
+ const { leading, trailing, children, ...rest } = props;
342
+ return (jsxs(WiredDialogActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
343
+ });
344
+
345
+ const WiredDialogActionTertiary = createComponent({
346
+ tagName: 'm-dialog-action-tertiary',
347
+ elementClass: DialogActionTertiary$1,
348
+ displayName: 'DialogActionTertiary',
349
+ });
350
+ const DialogActionTertiary = forwardRef((props, ref) => {
351
+ const { leading, trailing, children, ...rest } = props;
352
+ return (jsxs(WiredDialogActionTertiary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
353
+ });
354
+
355
+ const DialogActions = createComponent({
356
+ tagName: 'm-dialog-actions',
357
+ elementClass: DialogActions$1,
358
+ displayName: 'DialogActions',
359
+ });
360
+
361
+ const DialogBody = createComponent({
362
+ tagName: 'm-dialog-body',
363
+ elementClass: DialogBody$1,
364
+ displayName: 'DialogBody',
365
+ });
366
+
367
+ const DialogClose = createComponent({
368
+ tagName: 'm-dialog-close',
369
+ elementClass: DialogClose$1,
370
+ events: {
371
+ onClose: 'm-close',
372
+ },
373
+ displayName: 'DialogClose',
374
+ });
375
+
376
+ const DialogFooter = createComponent({
377
+ tagName: 'm-dialog-footer',
378
+ elementClass: DialogFooter$1,
379
+ displayName: 'DialogFooter',
380
+ });
381
+
382
+ const DialogHeader = createComponent({
383
+ tagName: 'm-dialog-header',
384
+ elementClass: DialogHeader$1,
385
+ displayName: 'DialogHeader',
386
+ });
387
+
388
+ const Dialog = createComponent({
389
+ tagName: 'm-dialog',
390
+ elementClass: Dialog$1,
391
+ events: {
392
+ onClose: 'm-close',
393
+ onOpening: 'm-opening',
394
+ onOpened: 'm-opened',
395
+ onClosing: 'm-closing',
396
+ onClosed: 'm-closed',
397
+ },
398
+ displayName: 'Dialog',
399
+ subComponents: {
400
+ ActionPrimary: DialogActionPrimary,
401
+ ActionSecondary: DialogActionSecondary,
402
+ ActionTertiary: DialogActionTertiary,
403
+ Actions: DialogActions,
404
+ Body: DialogBody,
405
+ Close: DialogClose,
406
+ Footer: DialogFooter,
407
+ Header: DialogHeader,
408
+ },
409
+ });
410
+
411
+ const Divider = createComponent({
412
+ tagName: 'm-divider',
413
+ elementClass: Divider$1,
414
+ displayName: 'Divider',
415
+ });
416
+
417
+ const WiredDrawerActionPrimary = createComponent({
418
+ tagName: 'm-drawer-action-primary',
419
+ elementClass: DrawerActionPrimary$1,
420
+ displayName: 'DrawerActionPrimary',
421
+ });
422
+ function DrawerActionPrimary(props) {
423
+ const { leading, trailing, children, ...rest } = props;
424
+ return (jsxs(WiredDrawerActionPrimary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
425
+ }
426
+
427
+ const WiredDrawerActionSecondary = createComponent({
428
+ tagName: 'm-drawer-action-secondary',
429
+ elementClass: DrawerActionSecondary$1,
430
+ displayName: 'DrawerActionSecondary',
431
+ });
432
+ function DrawerActionSecondary(props) {
433
+ const { leading, trailing, children, ...rest } = props;
434
+ return (jsxs(WiredDrawerActionSecondary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
435
+ }
436
+
437
+ const WiredDrawerActionTertiary = createComponent({
438
+ tagName: 'm-drawer-action-tertiary',
439
+ elementClass: DrawerActionTertiary$1,
440
+ displayName: 'DrawerActionTertiary',
441
+ });
442
+ function DrawerActionTertiary(props) {
443
+ const { leading, trailing, children, ...rest } = props;
444
+ return (jsxs(WiredDrawerActionTertiary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
445
+ }
446
+
447
+ const DrawerActions = createComponent({
448
+ tagName: 'm-drawer-actions',
449
+ elementClass: DrawerActions$1,
450
+ displayName: 'DrawerActions',
451
+ });
452
+
453
+ const DrawerBody = createComponent({
454
+ tagName: 'm-drawer-body',
455
+ elementClass: DrawerBody$1,
456
+ displayName: 'DrawerBody',
457
+ });
458
+
459
+ const DrawerClose = createComponent({
460
+ tagName: 'm-drawer-close',
461
+ elementClass: DrawerClose$1,
462
+ events: {
463
+ onClose: 'm-close',
464
+ },
465
+ displayName: 'DrawerClose',
466
+ });
467
+
468
+ const DrawerHeader = createComponent({
469
+ tagName: 'm-drawer-header',
470
+ elementClass: DrawerHeader$1,
471
+ displayName: 'DrawerHeader',
472
+ });
473
+
474
+ const Drawer = createComponent({
475
+ tagName: 'm-drawer',
476
+ elementClass: Drawer$1,
477
+ events: {
478
+ onClose: 'm-close',
479
+ onOpening: 'm-opening',
480
+ onOpened: 'm-opened',
481
+ onClosing: 'm-closing',
482
+ onClosed: 'm-closed',
483
+ },
484
+ displayName: 'Drawer',
485
+ subComponents: {
486
+ ActionPrimary: DrawerActionPrimary,
487
+ ActionSecondary: DrawerActionSecondary,
488
+ ActionTertiary: DrawerActionTertiary,
489
+ Actions: DrawerActions,
490
+ Body: DrawerBody,
491
+ Close: DrawerClose,
492
+ Header: DrawerHeader,
493
+ },
494
+ });
495
+
496
+ const WiredDropdownItem = createComponent({
497
+ tagName: 'm-dropdown-item',
498
+ elementClass: DropdownItem$1,
499
+ displayName: 'DropdownItem',
500
+ });
501
+ const DropdownItem = forwardRef((props, ref) => {
502
+ const { leading, trailing, children, ...rest } = props;
503
+ return (jsxs(WiredDropdownItem, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
504
+ });
505
+
506
+ const DropdownMenu = createComponent({
507
+ tagName: 'm-dropdown-menu',
508
+ elementClass: DropdownMenu$1,
509
+ displayName: 'DropdownMenu',
510
+ });
511
+
512
+ const WiredDropdownTrigger = createComponent({
513
+ tagName: 'm-dropdown-trigger',
514
+ elementClass: DropdownTrigger$1,
515
+ displayName: 'DropdownTrigger',
516
+ });
517
+ const DropdownTrigger = forwardRef((props, ref) => {
518
+ const { leading, children, ...rest } = props;
519
+ return (jsxs(WiredDropdownTrigger, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
520
+ });
521
+
522
+ const Dropdown = createComponent({
523
+ tagName: 'm-dropdown',
524
+ elementClass: Dropdown$1,
525
+ displayName: 'Dropdown',
526
+ subComponents: {
527
+ Item: DropdownItem,
528
+ Menu: DropdownMenu,
529
+ Trigger: DropdownTrigger,
530
+ },
531
+ events: {
532
+ onExpand: 'm-expand',
533
+ onCollapse: 'm-collapse',
534
+ },
535
+ });
536
+
537
+ const EmptyStateIllustration = createComponent({
538
+ tagName: 'm-empty-state-illustration',
539
+ elementClass: EmptyStateIllustration$1,
540
+ displayName: 'EmptyStateIllustration',
541
+ });
542
+
543
+ const EmptyStateHeader = createComponent({
544
+ tagName: 'm-empty-state-header',
545
+ elementClass: EmptyStateHeader$1,
546
+ displayName: 'EmptyStateHeader',
547
+ });
548
+
549
+ const EmptyStateMessage = createComponent({
550
+ tagName: 'm-empty-state-message',
551
+ elementClass: EmptyStateMessage$1,
552
+ displayName: 'EmptyStateMessage',
553
+ });
554
+
555
+ const WiredEmptyStateAction = createComponent({
556
+ tagName: 'm-empty-state-action',
557
+ elementClass: EmptyStateAction$1,
558
+ displayName: 'EmptyStateAction',
559
+ });
560
+ const EmptyStateAction = forwardRef((props, ref) => {
561
+ const { leading, trailing, children, ...rest } = props;
562
+ return (jsxs(WiredEmptyStateAction, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
563
+ });
564
+
565
+ const EmptyState = createComponent({
566
+ tagName: 'm-empty-state',
567
+ elementClass: EmptyState$1,
568
+ events: {
569
+ onAction: 'm-action',
570
+ },
571
+ displayName: 'EmptyState',
572
+ subComponents: {
573
+ Illustration: EmptyStateIllustration,
574
+ Header: EmptyStateHeader,
575
+ Message: EmptyStateMessage,
576
+ Action: EmptyStateAction,
577
+ },
578
+ });
579
+
580
+ const FieldLabel = createComponent({
581
+ tagName: 'm-field-label',
582
+ elementClass: FieldLabel$1,
583
+ displayName: 'FieldLabel',
584
+ });
585
+
586
+ const WiredFieldHint = createComponent({
587
+ tagName: 'm-field-hint',
588
+ elementClass: FieldHint$1,
589
+ displayName: 'FieldHint',
590
+ });
591
+ const FieldHint = forwardRef(({ children, leading, ...props }, ref) => {
592
+ return (jsxs(WiredFieldHint, { ...props, slot: "hint", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
593
+ });
594
+
595
+ const Field = createComponent({
596
+ tagName: 'm-field',
597
+ elementClass: Field$1,
598
+ displayName: 'Field',
599
+ subComponents: {
600
+ Label: FieldLabel,
601
+ Hint: FieldHint,
602
+ },
603
+ });
604
+
605
+ const HeaderActions = createComponent({
606
+ tagName: 'm-header-actions',
607
+ elementClass: HeaderActions$1,
608
+ displayName: 'HeaderActions',
609
+ });
610
+
611
+ const HeaderContent = createComponent({
612
+ tagName: 'm-header-content',
613
+ elementClass: HeaderContent$1,
614
+ displayName: 'HeaderContent',
615
+ });
616
+
617
+ const HeaderTitle = createComponent({
618
+ tagName: 'm-header-title',
619
+ elementClass: HeaderTitle$1,
620
+ displayName: 'HeaderTitle',
621
+ });
622
+
623
+ const SubHeader = createComponent({
624
+ tagName: 'm-sub-header',
625
+ elementClass: SubHeader$1,
626
+ displayName: 'SubHeader',
627
+ });
628
+
629
+ const HeaderBackButton = createComponent({
630
+ tagName: 'm-back-button',
631
+ elementClass: BackButton,
632
+ displayName: 'HeaderBackButton',
633
+ });
634
+
635
+ const Header = createComponent({
636
+ tagName: 'm-header',
637
+ elementClass: Header$1,
638
+ displayName: 'Header',
639
+ subComponents: {
640
+ Actions: HeaderActions,
641
+ Content: HeaderContent,
642
+ Title: HeaderTitle,
643
+ SubHeader,
644
+ BackButton: HeaderBackButton,
645
+ },
646
+ });
647
+
648
+ const Icon = createComponent({
649
+ tagName: 'm-icon',
650
+ elementClass: Icon$1,
651
+ displayName: 'Icon',
652
+ });
653
+
654
+ const LabeledValueLabel = createComponent({
655
+ tagName: 'm-labeled-value-label',
656
+ elementClass: LabeledValueLabel$1,
657
+ displayName: 'LabeledValueLabel',
658
+ });
659
+ const LabeledValueValue = createComponent({
660
+ tagName: 'm-labeled-value-value',
661
+ elementClass: LabeledValueValue$1,
662
+ displayName: 'LabeledValueValue',
663
+ });
664
+ const WiredLabeledValue = createComponent({
665
+ tagName: 'm-labeled-value',
666
+ elementClass: LabeledValue$1,
667
+ displayName: 'LabeledValue',
668
+ subComponents: {
669
+ Label: LabeledValueLabel,
670
+ Value: LabeledValueValue,
671
+ },
672
+ });
673
+ const LabeledValue = Object.assign(forwardRef((props, ref) => {
674
+ const { label, value, children, valueVariant, valueColor, labelVariant, labelColor, ...rest } = props;
675
+ 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] }));
676
+ }), {
677
+ Label: LabeledValueLabel,
678
+ Value: LabeledValueValue,
679
+ });
680
+
681
+ const Box = createComponent({
682
+ tagName: 'm-box',
683
+ elementClass: Box$1,
684
+ displayName: 'Box',
685
+ });
686
+
687
+ const Group = createComponent({
688
+ tagName: 'm-group',
689
+ elementClass: Group$1,
690
+ displayName: 'Group',
691
+ });
692
+
693
+ const Stack = createComponent({
694
+ tagName: 'm-stack',
695
+ elementClass: Stack$1,
696
+ displayName: 'Stack',
697
+ });
698
+
699
+ const Grid = createComponent({
700
+ tagName: 'm-grid',
701
+ elementClass: Grid$1,
702
+ displayName: 'Grid',
703
+ });
704
+
705
+ const SidebarSide = forwardRef(({ children, ...boxProps }, ref) => {
706
+ return (jsx(Box, { ...boxProps, slot: "sidebar", ref: ref, children: children }));
707
+ });
708
+ const SidebarContent = forwardRef(({ children, ...boxProps }, ref) => {
709
+ return (jsx(Box, { ...boxProps, slot: "content", ref: ref, children: children }));
710
+ });
711
+ const Sidebar = createComponent({
712
+ tagName: 'm-sidebar',
713
+ elementClass: Sidebar$1,
714
+ displayName: 'Sidebar',
715
+ subComponents: {
716
+ Side: SidebarSide,
717
+ Content: SidebarContent,
718
+ },
719
+ });
720
+
721
+ const Switcher = createComponent({
722
+ tagName: 'm-switcher',
723
+ elementClass: Switcher$1,
724
+ displayName: 'Switcher',
725
+ });
726
+
727
+ const Container = createComponent({
728
+ tagName: 'm-container',
729
+ elementClass: Container$1,
730
+ displayName: 'Container',
731
+ });
732
+ const Row = createComponent({
733
+ tagName: 'm-row',
734
+ elementClass: Row$1,
735
+ displayName: 'Row',
736
+ });
737
+ const Column = createComponent({
738
+ tagName: 'm-column',
739
+ elementClass: Column$1,
740
+ displayName: 'Column',
741
+ });
742
+
743
+ const Layout = () => {
744
+ return null;
745
+ };
746
+ Layout.Box = Box;
747
+ Layout.Group = Group;
748
+ Layout.Stack = Stack;
749
+ Layout.Grid = Grid;
750
+ Layout.Sidebar = Sidebar;
751
+ Layout.Switcher = Switcher;
752
+ Layout.Container = Container;
753
+ Layout.Row = Row;
754
+ Layout.Column = Column;
755
+
756
+ const Link = createComponent({
757
+ tagName: 'm-link',
758
+ elementClass: Link$1,
759
+ displayName: 'Link',
760
+ });
761
+
762
+ const Body = createComponent({
763
+ tagName: 'm-body',
764
+ elementClass: Body$1,
765
+ displayName: 'Body',
766
+ });
767
+
768
+ const PageContent = createComponent({
769
+ tagName: 'm-page-content',
770
+ elementClass: PageContent$1,
771
+ displayName: 'PageContent',
772
+ subComponents: {
773
+ Body,
774
+ },
775
+ });
776
+
777
+ const Pagination = createComponent({
778
+ tagName: 'm-pagination',
779
+ elementClass: Pagination$1,
780
+ displayName: 'Pagination',
781
+ events: {
782
+ onChange: 'm-change',
783
+ },
784
+ });
785
+
786
+ const ProgressBar = createComponent({
787
+ tagName: 'm-progress-bar',
788
+ elementClass: ProgressBar$1,
789
+ displayName: 'ProgressBar',
790
+ });
791
+
792
+ const ProgressBarCountdown = createComponent({
793
+ tagName: 'm-progress-bar-countdown',
794
+ elementClass: ProgressBarCountdown$1,
795
+ displayName: 'ProgressBarCountdown',
796
+ });
797
+
798
+ const WiredRadio = createComponent({
799
+ tagName: 'm-radio',
800
+ elementClass: Radio$1,
801
+ displayName: 'Radio',
802
+ });
803
+ const Radio = forwardRef((props, ref) => {
804
+ const { children, leading, ...rest } = props;
805
+ return (jsxs(WiredRadio, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
806
+ });
807
+
808
+ const RadioGroup = createComponent({
809
+ tagName: 'm-radio-group',
810
+ elementClass: RadioGroup$1,
811
+ subComponents: {
812
+ Radio,
813
+ },
814
+ events: {
815
+ onChange: 'change',
816
+ },
817
+ displayName: 'RadioGroup',
818
+ });
819
+
820
+ const WiredSectionTitle = createComponent({
821
+ tagName: 'm-section-title',
822
+ elementClass: SectionTitle$1,
823
+ displayName: 'SectionTitle',
824
+ });
825
+ const SectionTitle = forwardRef(({ children, leading, ...props }, ref) => {
826
+ return (jsxs(WiredSectionTitle, { ...props, slot: "title", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
827
+ });
828
+
829
+ const Section = createComponent({
830
+ tagName: 'm-section',
831
+ elementClass: Section$1,
832
+ displayName: 'Section',
833
+ subComponents: {
834
+ Title: SectionTitle,
835
+ },
836
+ });
837
+
838
+ const SpinnerWheel = createComponent({
839
+ tagName: 'm-spinner-wheel',
840
+ elementClass: SpinnerWheel$1,
841
+ displayName: 'SpinnerWheel',
842
+ });
843
+
844
+ const Step = createComponent({
845
+ tagName: 'm-step',
846
+ elementClass: Step$1,
847
+ displayName: 'Step',
848
+ });
849
+
850
+ const Steps = createComponent({
851
+ tagName: 'm-steps',
852
+ elementClass: Steps$1,
853
+ displayName: 'Steps',
854
+ events: {
855
+ onChange: 'm-change',
856
+ onComplete: 'm-complete',
857
+ onNavigate: 'm-navigate',
858
+ onNext: 'm-next',
859
+ onPrevious: 'm-previous',
860
+ },
861
+ subComponents: {
862
+ Step,
863
+ },
864
+ });
865
+
866
+ function createCustomEvent(eventName, detail) {
867
+ const event = new CustomEvent(eventName, {
868
+ bubbles: true,
869
+ detail,
870
+ });
871
+ return event;
872
+ }
873
+ function useSteps() {
874
+ const [stepsElement, setStepsElement] = useState(null);
875
+ const registerSteps = useCallback(() => {
876
+ return {
877
+ ref(element) {
878
+ if (element == null || stepsElement != null) {
879
+ return;
880
+ }
881
+ setStepsElement(element);
882
+ },
883
+ };
884
+ }, [stepsElement]);
885
+ const navigateToStep = useCallback(
886
+ /**
887
+ * Either `'previous'`, `'next'`, or step name.
888
+ */
889
+ (step) => {
890
+ if (stepsElement == null) {
891
+ return;
892
+ }
893
+ const navigateToNextStep = () => {
894
+ return createCustomEvent('m-next');
895
+ };
896
+ const navigateToPreviousStep = () => {
897
+ return createCustomEvent('m-previous');
898
+ };
899
+ let event;
900
+ switch (step) {
901
+ case 'next':
902
+ event = navigateToNextStep();
903
+ break;
904
+ case 'previous':
905
+ event = navigateToPreviousStep();
906
+ break;
907
+ default:
908
+ event = createCustomEvent('m-navigate', step);
909
+ }
910
+ stepsElement.dispatchEvent(event);
911
+ }, [stepsElement]);
912
+ const completeStep = useCallback(() => {
913
+ if (stepsElement == null) {
914
+ return;
915
+ }
916
+ const event = createCustomEvent('m-complete');
917
+ stepsElement.dispatchEvent(event);
918
+ }, [stepsElement]);
919
+ return {
920
+ elementRef: stepsElement,
921
+ registerSteps,
922
+ navigateToStep,
923
+ completeStep,
924
+ };
925
+ }
926
+
927
+ const Switch = createComponent({
928
+ tagName: 'm-switch',
929
+ elementClass: Switch$1,
930
+ displayName: 'Switch',
931
+ events: {
932
+ onChange: 'change',
933
+ },
934
+ });
935
+
936
+ const TableHead = createComponent({
937
+ tagName: 'm-table-head',
938
+ elementClass: TableHead$1,
939
+ displayName: 'TableHead',
940
+ });
941
+
942
+ const TableBody = createComponent({
943
+ tagName: 'm-table-body',
944
+ elementClass: TableBody$1,
945
+ displayName: 'TableBody',
946
+ });
947
+
948
+ const TableFoot = createComponent({
949
+ tagName: 'm-table-foot',
950
+ elementClass: TableFoot$1,
951
+ displayName: 'TableFoot',
952
+ });
953
+
954
+ const TableRow = createComponent({
955
+ tagName: 'm-table-row',
956
+ elementClass: TableRow$1,
957
+ displayName: 'TableRow',
958
+ });
959
+
960
+ const TableCell = createComponent({
961
+ tagName: 'm-table-cell',
962
+ elementClass: TableCell$1,
963
+ displayName: 'TableCell',
964
+ });
965
+
966
+ const TableToolbar = createComponent({
967
+ tagName: 'm-table-toolbar',
968
+ elementClass: TableToolbar$1,
969
+ displayName: 'TableToolbar',
970
+ });
971
+
972
+ const TableHeadCell = createComponent({
973
+ tagName: 'm-table-head-cell',
974
+ elementClass: TableHeadCell$1,
975
+ displayName: 'TableHeadCell',
976
+ events: {
977
+ onSort: 'm-sort',
978
+ },
979
+ });
980
+
981
+ const TableFeedback = createComponent({
982
+ tagName: 'm-table-feedback',
983
+ elementClass: TableFeedback$1,
984
+ displayName: 'TableFeedback',
985
+ });
986
+
987
+ const TableActions = createComponent({
988
+ tagName: 'm-table-actions',
989
+ elementClass: TableActions$1,
990
+ displayName: 'TableActions',
991
+ });
992
+
993
+ const Table = createComponent({
994
+ tagName: 'm-table',
995
+ elementClass: Table$1,
996
+ displayName: 'Table',
997
+ subComponents: {
998
+ Head: TableHead,
999
+ Body: TableBody,
1000
+ Foot: TableFoot,
1001
+ Row: TableRow,
1002
+ HeadCell: TableHeadCell,
1003
+ Cell: TableCell,
1004
+ Toolbar: TableToolbar,
1005
+ Feedback: TableFeedback,
1006
+ Actions: TableActions,
1007
+ },
1008
+ });
1009
+
1010
+ const WiredTab = createComponent({
1011
+ tagName: 'm-tab',
1012
+ elementClass: Tab$1,
1013
+ displayName: 'Tab',
1014
+ });
1015
+ const Tab = forwardRef(({ children, leading, ...props }, ref) => {
1016
+ return (jsxs(WiredTab, { ...props, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
1017
+ });
1018
+
1019
+ const TabPanel = createComponent({
1020
+ tagName: 'm-tab-panel',
1021
+ elementClass: TabPanel$1,
1022
+ displayName: 'TabPanel',
1023
+ });
1024
+
1025
+ const Tabs = createComponent({
1026
+ tagName: 'm-tabs',
1027
+ elementClass: Tabs$1,
1028
+ events: {
1029
+ onTabChange: 'm-tab-change',
1030
+ },
1031
+ displayName: 'Tabs',
1032
+ subComponents: {
1033
+ Tab,
1034
+ Panel: TabPanel,
1035
+ },
1036
+ });
1037
+
1038
+ const WiredTag = createComponent({
1039
+ tagName: 'm-tag',
1040
+ elementClass: Tag$1,
1041
+ displayName: 'Tag',
1042
+ });
1043
+ const Tag = forwardRef((props, ref) => {
1044
+ const { leading, children, ...rest } = props;
1045
+ return (jsxs(WiredTag, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
1046
+ });
1047
+
1048
+ const WiredActionableTag = createComponent({
1049
+ tagName: 'm-actionable-tag',
1050
+ elementClass: ActionableTag$1,
1051
+ displayName: 'ActionableTag',
1052
+ events: {
1053
+ onChange: 'm-change',
1054
+ onRemove: 'm-remove',
1055
+ },
1056
+ });
1057
+ const ActionableTag = forwardRef((props, ref) => {
1058
+ const { leading, children, selectable, removable, ...rest } = props;
1059
+ 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] }));
1060
+ });
1061
+
1062
+ const Text = createComponent({
1063
+ tagName: 'm-text',
1064
+ elementClass: Text$1,
1065
+ displayName: 'Text',
1066
+ });
1067
+
1068
+ const WiredTextArea = createComponent({
1069
+ tagName: 'm-text-area',
1070
+ elementClass: TextArea$1,
1071
+ events: {
1072
+ onInput: 'input',
1073
+ onChange: 'change',
1074
+ },
1075
+ displayName: 'TextArea',
1076
+ });
1077
+ function TextArea(props) {
1078
+ return jsx(WiredTextArea, { ...props });
1079
+ }
1080
+
1081
+ const WiredTextField = createComponent({
1082
+ tagName: 'm-text-field',
1083
+ elementClass: TextField$1,
1084
+ events: {
1085
+ onInput: 'input',
1086
+ onChange: 'change',
1087
+ onClear: 'm-clear',
1088
+ },
1089
+ displayName: 'TextField',
1090
+ });
1091
+ const TextField = forwardRef(({ leading, trailing, ...rest }, ref) => {
1092
+ return (jsxs(WiredTextField, { ...rest, ref: ref, children: [leading != null && jsx("div", { slot: "leading", children: leading }), trailing != null && jsx("div", { slot: "trailing", children: trailing })] }));
1093
+ });
1094
+
1095
+ const TimelineItem = createComponent({
1096
+ tagName: 'm-timeline-item',
1097
+ elementClass: TimelineItem$1,
1098
+ displayName: 'TimelineItem',
1099
+ });
1100
+
1101
+ const TimelineExpandableItem = createComponent({
1102
+ tagName: 'm-timeline-expandable-item',
1103
+ elementClass: TimelineExpandableItem$1,
1104
+ displayName: 'TimelineExpandableItem',
1105
+ });
1106
+
1107
+ const TimelineItemBody = createComponent({
1108
+ tagName: 'm-timeline-item-body',
1109
+ elementClass: TimelineItemBody$1,
1110
+ displayName: 'TimelineItemBody',
1111
+ });
1112
+
1113
+ const TimelineItemFooter = createComponent({
1114
+ tagName: 'm-timeline-item-footer',
1115
+ elementClass: TimelineItemFooter$1,
1116
+ displayName: 'TimelineItemFooter',
1117
+ });
1118
+
1119
+ const TimelineItemHeader = createComponent({
1120
+ tagName: 'm-timeline-item-header',
1121
+ elementClass: TimelineItemHeader$1,
1122
+ displayName: 'TimelineItemHeader',
1123
+ });
1124
+
1125
+ const TimelineItemHeaderSubtitle = createComponent({
1126
+ tagName: 'm-timeline-item-header-subtitle',
1127
+ elementClass: TimelineItemHeaderSubtitle$1,
1128
+ displayName: 'TimelineItemHeaderSubtitle',
1129
+ });
1130
+
1131
+ const TimelineItemHeaderTitle = createComponent({
1132
+ tagName: 'm-timeline-item-header-title',
1133
+ elementClass: TimelineItemHeaderTitle$1,
1134
+ displayName: 'TimelineItemHeaderTitle',
1135
+ });
1136
+
1137
+ const TimelineItemIcon = createComponent({
1138
+ tagName: 'm-timeline-item-icon',
1139
+ elementClass: TimelineItemIcon$1,
1140
+ displayName: 'TimelineItemIcon',
1141
+ });
1142
+
1143
+ const Timeline = createComponent({
1144
+ tagName: 'm-timeline',
1145
+ elementClass: Timeline$1,
1146
+ displayName: 'Timeline',
1147
+ subComponents: {
1148
+ Item: TimelineItem,
1149
+ ExpandableItem: TimelineExpandableItem,
1150
+ ItemBody: TimelineItemBody,
1151
+ ItemFooter: TimelineItemFooter,
1152
+ ItemHeader: TimelineItemHeader,
1153
+ ItemHeaderTitle: TimelineItemHeaderTitle,
1154
+ ItemHeaderSubtitle: TimelineItemHeaderSubtitle,
1155
+ ItemIcon: TimelineItemIcon,
1156
+ },
1157
+ });
1158
+
1159
+ const WiredToggle = createComponent({
1160
+ tagName: 'm-toggle',
1161
+ elementClass: Toggle$1,
1162
+ displayName: 'Toggle',
1163
+ });
1164
+ const Toggle = forwardRef((props, ref) => {
1165
+ const { children, leading, ...rest } = props;
1166
+ return (jsxs(WiredToggle, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
1167
+ });
1168
+
1169
+ const WiredToggleGroup = createComponent({
1170
+ tagName: 'm-toggle-group',
1171
+ elementClass: ToggleGroup$1,
1172
+ events: {
1173
+ onChange: 'change',
1174
+ },
1175
+ displayName: 'ToggleGroup',
1176
+ });
1177
+ function ToggleGroup(props) {
1178
+ const { options, children, ...rest } = props;
1179
+ return (jsx(WiredToggleGroup, { ...rest, children: children !== null && children !== void 0 ? children : (options || []).map(function renderOption(option) {
1180
+ const { label, value: optionValue, ...others } = option;
1181
+ return (jsx(Toggle, { ...others, value: optionValue, children: label }, optionValue));
1182
+ }) }));
1183
+ }
1184
+ ToggleGroup.Toggle = Toggle;
1185
+
1186
+ const WiredTooltip = createComponent({
1187
+ tagName: 'm-tooltip',
1188
+ elementClass: Tooltip$1,
1189
+ displayName: 'Tooltip',
1190
+ });
1191
+ function Tooltip(props) {
1192
+ const { children, message, ...rest } = props;
1193
+ return jsx(WiredTooltip, { ...rest, children: message !== null && message !== void 0 ? message : children });
1194
+ }
1195
+
1196
+ const LogoLoader = createComponent({
1197
+ tagName: 'm-logo-loader',
1198
+ elementClass: LogoLoader$1,
1199
+ displayName: 'LogoLoader',
1200
+ });
1201
+
1202
+ 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, 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 };