@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.
- package/dist/index.d.ts +1663 -107
- package/dist/index.js +1345 -1166
- package/dist/tokens.d.ts +76 -2
- package/dist/tokens.js +2 -2
- package/package.json +12 -13
- package/dist/components/Accordion/Accordion.d.ts +0 -19
- package/dist/components/Accordion/AccordionContent.d.ts +0 -10
- package/dist/components/Accordion/AccordionTitle.d.ts +0 -16
- package/dist/components/Accordion/index.d.ts +0 -2
- package/dist/components/Badge/Badge.d.ts +0 -12
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Banner/Banner.d.ts +0 -22
- package/dist/components/Banner/BannerActionPrimary.d.ts +0 -17
- package/dist/components/Banner/BannerActionSecondary.d.ts +0 -17
- package/dist/components/Banner/BannerActions.d.ts +0 -12
- package/dist/components/Banner/BannerDescription.d.ts +0 -12
- package/dist/components/Banner/BannerIcon.d.ts +0 -12
- package/dist/components/Banner/BannerTitle.d.ts +0 -12
- package/dist/components/Banner/index.d.ts +0 -2
- package/dist/components/Button/Button.d.ts +0 -17
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -35
- package/dist/components/Card/CardActionPrimary.d.ts +0 -17
- package/dist/components/Card/CardActionSecondary.d.ts +0 -17
- package/dist/components/Card/CardActionTertiary.d.ts +0 -17
- package/dist/components/Card/CardBody.d.ts +0 -12
- package/dist/components/Card/CardDivider.d.ts +0 -12
- package/dist/components/Card/CardFooter.d.ts +0 -12
- package/dist/components/Card/CardSubtitle.d.ts +0 -12
- package/dist/components/Card/CardTitle.d.ts +0 -16
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -19
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/Dialog/Dialog.d.ts +0 -37
- package/dist/components/Dialog/DialogActionPrimary.d.ts +0 -17
- package/dist/components/Dialog/DialogActionSecondary.d.ts +0 -17
- package/dist/components/Dialog/DialogActionTertiary.d.ts +0 -17
- package/dist/components/Dialog/DialogActions.d.ts +0 -12
- package/dist/components/Dialog/DialogBody.d.ts +0 -12
- package/dist/components/Dialog/DialogClose.d.ts +0 -14
- package/dist/components/Dialog/DialogFooter.d.ts +0 -12
- package/dist/components/Dialog/DialogHeader.d.ts +0 -12
- package/dist/components/Dialog/index.d.ts +0 -4
- package/dist/components/Divider/Divider.d.ts +0 -19
- package/dist/components/Divider/index.d.ts +0 -2
- package/dist/components/Drawer/Drawer.d.ts +0 -38
- package/dist/components/Drawer/DrawerActionPrimary.d.ts +0 -17
- package/dist/components/Drawer/DrawerActionSecondary.d.ts +0 -17
- package/dist/components/Drawer/DrawerActionTertiary.d.ts +0 -17
- package/dist/components/Drawer/DrawerActions.d.ts +0 -12
- package/dist/components/Drawer/DrawerBody.d.ts +0 -12
- package/dist/components/Drawer/DrawerClose.d.ts +0 -14
- package/dist/components/Drawer/DrawerHeader.d.ts +0 -12
- package/dist/components/Drawer/index.d.ts +0 -4
- package/dist/components/Dropdown/Dropdown.d.ts +0 -22
- package/dist/components/Dropdown/DropdownItem.d.ts +0 -16
- package/dist/components/Dropdown/DropdownMenu.d.ts +0 -12
- package/dist/components/Dropdown/DropdownTrigger.d.ts +0 -15
- package/dist/components/Dropdown/index.d.ts +0 -5
- package/dist/components/EmptyState/EmptyState.d.ts +0 -23
- package/dist/components/EmptyState/EmptyStateAction.d.ts +0 -17
- package/dist/components/EmptyState/EmptyStateHeader.d.ts +0 -12
- package/dist/components/EmptyState/EmptyStateIllustration.d.ts +0 -12
- package/dist/components/EmptyState/EmptyStateMessage.d.ts +0 -12
- package/dist/components/EmptyState/index.d.ts +0 -4
- package/dist/components/Field/Field.d.ts +0 -16
- package/dist/components/Field/FieldHint.d.ts +0 -16
- package/dist/components/Field/FieldLabel.d.ts +0 -12
- package/dist/components/Field/index.d.ts +0 -2
- package/dist/components/Header/Header.d.ts +0 -18
- package/dist/components/Header/HeaderActions.d.ts +0 -12
- package/dist/components/Header/HeaderBackButton.d.ts +0 -10
- package/dist/components/Header/HeaderContent.d.ts +0 -12
- package/dist/components/Header/HeaderTitle.d.ts +0 -12
- package/dist/components/Header/SubHeader.d.ts +0 -12
- package/dist/components/Header/index.d.ts +0 -8
- package/dist/components/Icon/Icon.d.ts +0 -19
- package/dist/components/Icon/index.d.ts +0 -2
- package/dist/components/Label/Label.d.ts +0 -12
- package/dist/components/LabeledValue/LabeledValue.d.ts +0 -25
- package/dist/components/LabeledValue/index.d.ts +0 -1
- package/dist/components/Layout/Box.d.ts +0 -13
- package/dist/components/Layout/Grid.d.ts +0 -13
- package/dist/components/Layout/Group.d.ts +0 -13
- package/dist/components/Layout/Layout.d.ts +0 -16
- package/dist/components/Layout/Row.d.ts +0 -18
- package/dist/components/Layout/Sidebar.d.ts +0 -20
- package/dist/components/Layout/Stack.d.ts +0 -13
- package/dist/components/Layout/Switcher.d.ts +0 -13
- package/dist/components/Layout/index.d.ts +0 -9
- package/dist/components/Link/Link.d.ts +0 -14
- package/dist/components/Link/index.d.ts +0 -2
- package/dist/components/LogoLoader/LogoLoader.d.ts +0 -13
- package/dist/components/LogoLoader/index.d.ts +0 -2
- package/dist/components/PageContent/Body.d.ts +0 -12
- package/dist/components/PageContent/PageContent.d.ts +0 -14
- package/dist/components/PageContent/index.d.ts +0 -1
- package/dist/components/Pagination/Pagination.d.ts +0 -16
- package/dist/components/Pagination/index.d.ts +0 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -15
- package/dist/components/ProgressBar/index.d.ts +0 -2
- package/dist/components/ProgressBarCountdown/ProgressBarCountdown.d.ts +0 -13
- package/dist/components/ProgressBarCountdown/index.d.ts +0 -2
- package/dist/components/RadioGroup/Radio.d.ts +0 -16
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -18
- package/dist/components/RadioGroup/index.d.ts +0 -4
- package/dist/components/Section/Section.d.ts +0 -15
- package/dist/components/Section/SectionTitle.d.ts +0 -16
- package/dist/components/Section/index.d.ts +0 -2
- package/dist/components/Select/Select.d.ts +0 -31
- package/dist/components/Select/SelectOption.d.ts +0 -16
- package/dist/components/Select/index.d.ts +0 -2
- package/dist/components/SpinnerWheel/SpinnerWheel.d.ts +0 -13
- package/dist/components/SpinnerWheel/index.d.ts +0 -2
- package/dist/components/Steps/Step.d.ts +0 -12
- package/dist/components/Steps/Steps.d.ts +0 -21
- package/dist/components/Steps/index.d.ts +0 -5
- package/dist/components/Steps/useSteps.d.ts +0 -10
- package/dist/components/Switch/Switch.d.ts +0 -15
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/components/Table/Table.d.ts +0 -33
- package/dist/components/Table/TableActions.d.ts +0 -12
- package/dist/components/Table/TableBody.d.ts +0 -12
- package/dist/components/Table/TableCell.d.ts +0 -12
- package/dist/components/Table/TableFeedback.d.ts +0 -12
- package/dist/components/Table/TableFoot.d.ts +0 -12
- package/dist/components/Table/TableHead.d.ts +0 -12
- package/dist/components/Table/TableHeadCell.d.ts +0 -15
- package/dist/components/Table/TableRow.d.ts +0 -12
- package/dist/components/Table/TableToolbar.d.ts +0 -12
- package/dist/components/Table/index.d.ts +0 -21
- package/dist/components/Tabs/Tab.d.ts +0 -16
- package/dist/components/Tabs/TabPanel.d.ts +0 -13
- package/dist/components/Tabs/Tabs.d.ts +0 -19
- package/dist/components/Tabs/index.d.ts +0 -7
- package/dist/components/Tag/ActionableTag.d.ts +0 -20
- package/dist/components/Tag/Tag.d.ts +0 -16
- package/dist/components/Tag/index.d.ts +0 -4
- package/dist/components/Text/Text.d.ts +0 -19
- package/dist/components/Text/index.d.ts +0 -2
- package/dist/components/TextArea/TextArea.d.ts +0 -19
- package/dist/components/TextArea/index.d.ts +0 -2
- package/dist/components/TextField/TextField.d.ts +0 -22
- package/dist/components/TextField/index.d.ts +0 -2
- package/dist/components/Timeline/Timeline.d.ts +0 -22
- package/dist/components/Timeline/TimelineExpandableItem.d.ts +0 -12
- package/dist/components/Timeline/TimelineItem.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemBody.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemFooter.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemHeader.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemHeaderSubtitle.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemHeaderTitle.d.ts +0 -12
- package/dist/components/Timeline/TimelineItemIcon.d.ts +0 -12
- package/dist/components/Timeline/index.d.ts +0 -10
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -16
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +0 -28
- package/dist/components/ToggleGroup/index.d.ts +0 -4
- package/dist/components/Tooltip/Tooltip.d.ts +0 -24
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/tests/constants.d.ts +0 -12
- package/dist/tests/types.d.ts +0 -5
- package/dist/utils/createComponent.d.ts +0 -6
- package/dist/utils/types.d.ts +0 -15
- 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$
|
|
2
|
-
|
|
3
|
-
import * as React from
|
|
4
|
-
import { forwardRef, useState, useCallback, Children, isValidElement, cloneElement } from
|
|
5
|
-
import {
|
|
6
|
-
import { isFragment } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
22
|
+
tagName: "m-accordion-title",
|
|
23
|
+
elementClass: AccordionTitle$1,
|
|
24
|
+
displayName: "AccordionTitle"
|
|
129
25
|
});
|
|
130
|
-
const
|
|
26
|
+
const AccordionTitle2 = forwardRef(
|
|
27
|
+
(props, ref) => {
|
|
131
28
|
const { leading, children, ...rest } = props;
|
|
132
|
-
return (
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
-
|
|
162
|
-
|
|
163
|
-
|
|
55
|
+
tagName: "m-banner-action-primary",
|
|
56
|
+
elementClass: BannerActionPrimary$1,
|
|
57
|
+
displayName: "BannerActionPrimary"
|
|
164
58
|
});
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
});
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
109
|
+
tagName: "m-button",
|
|
110
|
+
elementClass: Button$1,
|
|
111
|
+
displayName: "Button"
|
|
225
112
|
});
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
});
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
});
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
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
|
-
|
|
260
|
-
|
|
261
|
-
|
|
143
|
+
tagName: "m-card-action-primary",
|
|
144
|
+
elementClass: CardActionPrimary$1,
|
|
145
|
+
displayName: "CardActionPrimary"
|
|
262
146
|
});
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
|
|
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
|
-
|
|
270
|
-
|
|
271
|
-
|
|
152
|
+
tagName: "m-card-action-secondary",
|
|
153
|
+
elementClass: CardActionSecondary$1,
|
|
154
|
+
displayName: "CardActionSecondary"
|
|
272
155
|
});
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
|
|
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
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
});
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
});
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
193
|
+
tagName: "m-checkbox",
|
|
194
|
+
elementClass: Checkbox$1,
|
|
195
|
+
events: {
|
|
196
|
+
onChange: "change"
|
|
197
|
+
},
|
|
198
|
+
displayName: "Checkbox"
|
|
320
199
|
});
|
|
321
|
-
const
|
|
322
|
-
|
|
323
|
-
|
|
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
|
-
|
|
328
|
-
|
|
329
|
-
|
|
205
|
+
tagName: "m-dialog-action-primary",
|
|
206
|
+
elementClass: DialogActionPrimary$1,
|
|
207
|
+
displayName: "DialogActionPrimary"
|
|
330
208
|
});
|
|
331
|
-
const
|
|
332
|
-
|
|
333
|
-
|
|
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
|
-
|
|
338
|
-
|
|
339
|
-
|
|
214
|
+
tagName: "m-dialog-action-secondary",
|
|
215
|
+
elementClass: DialogActionSecondary$1,
|
|
216
|
+
displayName: "DialogActionSecondary"
|
|
340
217
|
});
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
|
|
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
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
});
|
|
351
|
-
const
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
});
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
const
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
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
|
-
|
|
413
|
-
|
|
414
|
-
|
|
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
|
-
|
|
420
|
-
|
|
421
|
-
|
|
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
|
-
|
|
430
|
-
|
|
431
|
-
|
|
296
|
+
tagName: "m-drawer-action-secondary",
|
|
297
|
+
elementClass: DrawerActionSecondary$1,
|
|
298
|
+
displayName: "DrawerActionSecondary"
|
|
432
299
|
});
|
|
433
|
-
function
|
|
434
|
-
|
|
435
|
-
|
|
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
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
const
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
const
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
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
|
-
|
|
499
|
-
|
|
500
|
-
|
|
358
|
+
tagName: "m-dropdown-item",
|
|
359
|
+
elementClass: DropdownItem$1,
|
|
360
|
+
displayName: "DropdownItem"
|
|
501
361
|
});
|
|
502
|
-
const
|
|
362
|
+
const DropdownItem2 = forwardRef(
|
|
363
|
+
(props, ref) => {
|
|
503
364
|
const { leading, trailing, children, ...rest } = props;
|
|
504
|
-
return (
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
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
|
-
|
|
515
|
-
|
|
516
|
-
|
|
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
|
|
519
|
-
|
|
520
|
-
|
|
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
|
-
|
|
539
|
-
|
|
540
|
-
|
|
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
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
const
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
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
|
-
|
|
582
|
-
|
|
583
|
-
|
|
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
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
});
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
});
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
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
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
});
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
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
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
displayName: 'Icon',
|
|
504
|
+
const Icon2 = createComponent({
|
|
505
|
+
tagName: "m-icon",
|
|
506
|
+
elementClass: Icon$1,
|
|
507
|
+
displayName: "Icon"
|
|
653
508
|
});
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
displayName: 'LabeledValueLabel',
|
|
509
|
+
const LabeledValueLabel2 = createComponent({
|
|
510
|
+
tagName: "m-labeled-value-label",
|
|
511
|
+
elementClass: LabeledValueLabel$1,
|
|
512
|
+
displayName: "LabeledValueLabel"
|
|
659
513
|
});
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
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
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
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
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
});
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
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
|
-
|
|
607
|
+
return null;
|
|
746
608
|
};
|
|
747
|
-
Layout.Box =
|
|
748
|
-
Layout.Group =
|
|
749
|
-
Layout.Stack =
|
|
750
|
-
Layout.Grid =
|
|
751
|
-
Layout.Sidebar =
|
|
752
|
-
Layout.Switcher =
|
|
753
|
-
Layout.Container =
|
|
754
|
-
Layout.Row =
|
|
755
|
-
Layout.Column =
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
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
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
});
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
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
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
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
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
displayName: 'ProgressBar',
|
|
644
|
+
const ProgressBar2 = createComponent({
|
|
645
|
+
tagName: "m-progress-bar",
|
|
646
|
+
elementClass: ProgressBar$1,
|
|
647
|
+
displayName: "ProgressBar"
|
|
791
648
|
});
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
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
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
});
|
|
804
|
-
const
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
});
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
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
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
});
|
|
826
|
-
const
|
|
827
|
-
|
|
828
|
-
});
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
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
|
-
|
|
841
|
-
|
|
842
|
-
|
|
693
|
+
tagName: "m-option",
|
|
694
|
+
elementClass: SelectOption$1,
|
|
695
|
+
displayName: "SelectOption"
|
|
843
696
|
});
|
|
844
|
-
const SLOTTED_STYLE$
|
|
845
|
-
const
|
|
697
|
+
const SLOTTED_STYLE$3 = { display: "contents" };
|
|
698
|
+
const SelectOption2 = forwardRef(
|
|
699
|
+
(props, ref) => {
|
|
846
700
|
const { leading, trailing, children, ...rest } = props;
|
|
847
|
-
return (
|
|
848
|
-
}
|
|
849
|
-
|
|
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
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
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
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
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
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
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
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
763
|
+
const event = new CustomEvent(eventName, {
|
|
764
|
+
bubbles: true,
|
|
765
|
+
detail
|
|
766
|
+
});
|
|
767
|
+
return event;
|
|
906
768
|
}
|
|
907
769
|
function useSteps() {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
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
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
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
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
const
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
});
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
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
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
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
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
});
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1053
|
-
});
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
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
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1040
|
+
tagName: "m-tag",
|
|
1041
|
+
elementClass: Tag$1,
|
|
1042
|
+
displayName: "Tag"
|
|
1078
1043
|
});
|
|
1079
|
-
const
|
|
1080
|
-
|
|
1081
|
-
|
|
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
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
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
|
|
1058
|
+
const SLOTTED_STYLE = { display: "contents" };
|
|
1059
|
+
const ActionableTag2 = forwardRef(
|
|
1060
|
+
(props, ref) => {
|
|
1094
1061
|
const { leading, children, selectable, removable, ...rest } = props;
|
|
1095
|
-
return
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
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
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
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
|
|
1114
|
-
|
|
1089
|
+
function TextArea2(props) {
|
|
1090
|
+
return /* @__PURE__ */ React__default.createElement(WiredTextArea, { ...props });
|
|
1115
1091
|
}
|
|
1116
|
-
|
|
1117
1092
|
const WiredTextField = createComponent({
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
});
|
|
1127
|
-
const
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
});
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
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
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1164
|
+
tagName: "m-toggle",
|
|
1165
|
+
elementClass: Toggle$1,
|
|
1166
|
+
displayName: "Toggle"
|
|
1199
1167
|
});
|
|
1200
|
-
const
|
|
1201
|
-
|
|
1202
|
-
|
|
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
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
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
|
-
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
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
|
-
|
|
1221
|
-
|
|
1198
|
+
ToggleGroup2.Toggle = Toggle2;
|
|
1222
1199
|
const WiredTooltip = createComponent({
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1200
|
+
tagName: "m-tooltip",
|
|
1201
|
+
elementClass: Tooltip$1,
|
|
1202
|
+
displayName: "Tooltip"
|
|
1226
1203
|
});
|
|
1227
1204
|
let counter = 0;
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
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
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
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
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
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
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
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
|
+
};
|