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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/Accordion-CRFOEG8P.js +35 -0
  2. package/dist/ActionableTag-CiY3ktmR.js +30 -0
  3. package/dist/Badge-bksnMK0y.js +10 -0
  4. package/dist/Banner-DKi8HnhY.js +67 -0
  5. package/dist/Button-MYGS0n5V.js +16 -0
  6. package/dist/Card-DMVgqLq2.js +88 -0
  7. package/dist/Checkbox-OA3mt9qr.js +19 -0
  8. package/dist/Dialog-BXmQb7iZ.js +92 -0
  9. package/dist/Divider-Ce0Poebo.js +10 -0
  10. package/dist/Drawer-DAL5BRMS.js +84 -0
  11. package/dist/Dropdown-BZq7wxH2.js +47 -0
  12. package/dist/EmptyState-N_H8UALy.js +49 -0
  13. package/dist/Field-DUTm4XZx.js +31 -0
  14. package/dist/Header-BVVroF-a.js +47 -0
  15. package/dist/Icon-JSXp1ySp.js +10 -0
  16. package/dist/LabeledValue-BEj3zEk5.js +33 -0
  17. package/dist/Layout-yKvtIEmV.js +81 -0
  18. package/dist/Link-XqV4DM9g.js +10 -0
  19. package/dist/LogoLoader-Bjplh2u3.js +10 -0
  20. package/dist/PageContent-Bu0ofdVV.js +19 -0
  21. package/dist/Pagination-D2HYqeb2.js +13 -0
  22. package/dist/ProgressBar-CdwVUs1k.js +10 -0
  23. package/dist/ProgressBarCountdown-BsTb_5jd.js +10 -0
  24. package/dist/RadioGroup-QWrSrVvv.js +28 -0
  25. package/dist/Section-BcuVyQXQ.js +24 -0
  26. package/dist/SpinnerWheel-BqMAxsBi.js +10 -0
  27. package/dist/Switch-Uq5TuNqD.js +13 -0
  28. package/dist/Table-DlnVsR0p.js +78 -0
  29. package/dist/Tabs-9eHquUoD.js +34 -0
  30. package/dist/Text-BUtQqPKN.js +10 -0
  31. package/dist/TextArea-DNtv4x9o.js +18 -0
  32. package/dist/TextField-BHj0EHuT.js +20 -0
  33. package/dist/Timeline-MCAixOaW.js +68 -0
  34. package/dist/ToggleGroup-ig9rKVtU.js +33 -0
  35. package/dist/Tooltip-0sGIbwe8.js +15 -0
  36. package/dist/accordion.js +5 -0
  37. package/dist/badge.js +4 -0
  38. package/dist/banner.js +5 -0
  39. package/dist/button.js +5 -0
  40. package/dist/card.js +5 -0
  41. package/dist/checkbox.js +5 -0
  42. package/dist/components/Accordion/index.d.ts +2 -0
  43. package/dist/components/Badge/index.d.ts +2 -0
  44. package/dist/components/Banner/Banner.d.ts +0 -1
  45. package/dist/components/Banner/index.d.ts +3 -1
  46. package/dist/components/Button/index.d.ts +2 -0
  47. package/dist/components/Card/index.d.ts +2 -0
  48. package/dist/components/Checkbox/index.d.ts +2 -0
  49. package/dist/components/Dialog/index.d.ts +2 -0
  50. package/dist/components/Divider/index.d.ts +1 -0
  51. package/dist/components/Drawer/index.d.ts +2 -0
  52. package/dist/components/Dropdown/index.d.ts +2 -0
  53. package/dist/components/EmptyState/index.d.ts +1 -0
  54. package/dist/components/Field/index.d.ts +2 -0
  55. package/dist/components/Header/index.d.ts +1 -0
  56. package/dist/components/Icon/index.d.ts +2 -0
  57. package/dist/components/LabeledValue/index.d.ts +2 -0
  58. package/dist/components/Layout/index.d.ts +2 -0
  59. package/dist/components/Link/Link.d.ts +0 -2
  60. package/dist/components/Link/index.d.ts +3 -1
  61. package/dist/components/LogoLoader/index.d.ts +2 -0
  62. package/dist/components/PageContent/index.d.ts +4 -0
  63. package/dist/components/Pagination/index.d.ts +2 -0
  64. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -2
  65. package/dist/components/ProgressBar/index.d.ts +3 -1
  66. package/dist/components/ProgressBarCountdown/index.d.ts +2 -0
  67. package/dist/components/RadioGroup/index.d.ts +2 -0
  68. package/dist/components/Section/index.d.ts +2 -0
  69. package/dist/components/SpinnerWheel/index.d.ts +2 -0
  70. package/dist/components/Steps/index.d.ts +2 -0
  71. package/dist/components/Switch/index.d.ts +2 -0
  72. package/dist/components/Table/index.d.ts +2 -1
  73. package/dist/components/Tabs/index.d.ts +2 -1
  74. package/dist/components/Tag/index.d.ts +2 -0
  75. package/dist/components/Text/index.d.ts +2 -0
  76. package/dist/components/TextArea/index.d.ts +2 -0
  77. package/dist/components/TextField/index.d.ts +2 -0
  78. package/dist/components/Timeline/index.d.ts +2 -0
  79. package/dist/components/ToggleGroup/index.d.ts +2 -0
  80. package/dist/components/Tooltip/Tooltip.d.ts +1 -2
  81. package/dist/components/Tooltip/index.d.ts +3 -1
  82. package/dist/createComponent-Cye6h9wF.js +120 -0
  83. package/dist/dialog.js +5 -0
  84. package/dist/divider.js +4 -0
  85. package/dist/drawer.js +5 -0
  86. package/dist/dropdown.js +5 -0
  87. package/dist/emptystate.js +5 -0
  88. package/dist/field.js +5 -0
  89. package/dist/header.js +4 -0
  90. package/dist/icon.js +4 -0
  91. package/dist/index.d.ts +0 -67
  92. package/dist/index.js +40 -1202
  93. package/dist/labeledvalue.js +5 -0
  94. package/dist/layout.js +5 -0
  95. package/dist/link.js +4 -0
  96. package/dist/logoloader.js +4 -0
  97. package/dist/pagecontent.js +4 -0
  98. package/dist/pagination.js +4 -0
  99. package/dist/progressbar.js +4 -0
  100. package/dist/progressbarcountdown.js +4 -0
  101. package/dist/radiogroup.js +5 -0
  102. package/dist/section.js +5 -0
  103. package/dist/spinnerwheel.js +4 -0
  104. package/dist/steps.js +4 -0
  105. package/dist/switch.js +4 -0
  106. package/dist/table.js +4 -0
  107. package/dist/tabs.js +5 -0
  108. package/dist/tag.js +5 -0
  109. package/dist/text.js +4 -0
  110. package/dist/textarea.js +5 -0
  111. package/dist/textfield.js +5 -0
  112. package/dist/timeline.js +4 -0
  113. package/dist/togglegroup.js +5 -0
  114. package/dist/tooltip.js +5 -0
  115. package/dist/useSteps-O9Ch5_pJ.js +88 -0
  116. package/package.json +3 -3
@@ -0,0 +1,35 @@
1
+ import { AccordionTitle as AccordionTitle$1, AccordionContent as AccordionContent$1, Accordion as Accordion$1 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { forwardRef } from 'react';
5
+
6
+ const WiredAccordionTitle = createComponent({
7
+ tagName: 'm-accordion-title',
8
+ elementClass: AccordionTitle$1,
9
+ displayName: 'AccordionTitle',
10
+ });
11
+ const AccordionTitle = forwardRef((props, ref) => {
12
+ const { leading, children, ...rest } = props;
13
+ return (jsxs(WiredAccordionTitle, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
14
+ });
15
+
16
+ const AccordionContent = createComponent({
17
+ tagName: 'm-accordion-content',
18
+ elementClass: AccordionContent$1,
19
+ displayName: 'AccordionContent',
20
+ });
21
+
22
+ const Accordion = createComponent({
23
+ tagName: 'm-accordion',
24
+ elementClass: Accordion$1,
25
+ displayName: 'Accordion',
26
+ events: {
27
+ onToggle: 'm-toggle',
28
+ },
29
+ subComponents: {
30
+ Title: AccordionTitle,
31
+ Content: AccordionContent,
32
+ },
33
+ });
34
+
35
+ export { Accordion as A };
@@ -0,0 +1,30 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import { Tag as Tag$1, ActionableTag as ActionableTag$1 } from '@loadsmart/miranda-wc';
4
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
5
+
6
+ const WiredTag = createComponent({
7
+ tagName: 'm-tag',
8
+ elementClass: Tag$1,
9
+ displayName: 'Tag',
10
+ });
11
+ const Tag = forwardRef((props, ref) => {
12
+ const { leading, children, ...rest } = props;
13
+ return (jsxs(WiredTag, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
14
+ });
15
+
16
+ const WiredActionableTag = createComponent({
17
+ tagName: 'm-actionable-tag',
18
+ elementClass: ActionableTag$1,
19
+ displayName: 'ActionableTag',
20
+ events: {
21
+ onChange: 'm-change',
22
+ onRemove: 'm-remove',
23
+ },
24
+ });
25
+ const ActionableTag = forwardRef((props, ref) => {
26
+ const { leading, children, selectable, removable, ...rest } = props;
27
+ return (jsxs(WiredActionableTag, { ...rest, selectable: selectable || Boolean(rest.onChange), removable: removable || Boolean(rest.onRemove), ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
28
+ });
29
+
30
+ export { ActionableTag as A, Tag as T };
@@ -0,0 +1,10 @@
1
+ import { Badge as Badge$1 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+
4
+ const Badge = createComponent({
5
+ tagName: 'm-badge',
6
+ elementClass: Badge$1,
7
+ displayName: 'Badge',
8
+ });
9
+
10
+ export { Badge as B };
@@ -0,0 +1,67 @@
1
+ import { 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 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { forwardRef } from 'react';
5
+
6
+ const WiredBannerActionPrimary = createComponent({
7
+ tagName: 'm-banner-action-primary',
8
+ elementClass: BannerActionPrimary$1,
9
+ displayName: 'BannerActionPrimary',
10
+ });
11
+ const BannerActionPrimary = forwardRef((props, ref) => {
12
+ const { leading, trailing, children, ...rest } = props;
13
+ return (jsxs(WiredBannerActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
14
+ });
15
+
16
+ const BannerActions = createComponent({
17
+ tagName: 'm-banner-actions',
18
+ elementClass: BannerActions$1,
19
+ displayName: 'BannerActions',
20
+ });
21
+
22
+ const WiredBannerActionSecondary = createComponent({
23
+ tagName: 'm-banner-action-secondary',
24
+ elementClass: BannerActionSecondary$1,
25
+ displayName: 'BannerActionSecondary',
26
+ });
27
+ const BannerActionSecondary = forwardRef((props, ref) => {
28
+ const { leading, trailing, children, ...rest } = props;
29
+ return (jsxs(WiredBannerActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
30
+ });
31
+
32
+ const BannerDescription = createComponent({
33
+ tagName: 'm-banner-description',
34
+ elementClass: BannerDescription$1,
35
+ displayName: 'BannerDescription',
36
+ });
37
+
38
+ const BannerIcon = createComponent({
39
+ tagName: 'm-banner-icon',
40
+ elementClass: BannerIcon$1,
41
+ displayName: 'BannerIcon',
42
+ });
43
+
44
+ const BannerTitle = createComponent({
45
+ tagName: 'm-banner-title',
46
+ elementClass: BannerTitle$1,
47
+ displayName: 'BannerTitle',
48
+ });
49
+
50
+ const Banner = createComponent({
51
+ tagName: 'm-banner',
52
+ elementClass: Banner$1,
53
+ events: {
54
+ onDismiss: 'm-dismiss',
55
+ },
56
+ displayName: 'Banner',
57
+ subComponents: {
58
+ ActionPrimary: BannerActionPrimary,
59
+ Actions: BannerActions,
60
+ ActionSecondary: BannerActionSecondary,
61
+ Description: BannerDescription,
62
+ Icon: BannerIcon,
63
+ Title: BannerTitle,
64
+ },
65
+ });
66
+
67
+ export { Banner as B };
@@ -0,0 +1,16 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import { Button as Button$1 } from '@loadsmart/miranda-wc';
4
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
5
+
6
+ const WiredButton = createComponent({
7
+ tagName: 'm-button',
8
+ elementClass: Button$1,
9
+ displayName: 'Button',
10
+ });
11
+ const Button = forwardRef((props, ref) => {
12
+ const { leading, trailing, children, ...rest } = props;
13
+ return (jsxs(WiredButton, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
14
+ });
15
+
16
+ export { Button as B };
@@ -0,0 +1,88 @@
1
+ import { 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 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { forwardRef } from 'react';
5
+
6
+ const WiredCardTitle = createComponent({
7
+ tagName: 'm-card-title',
8
+ elementClass: CardTitle$1,
9
+ displayName: 'CardTitle',
10
+ });
11
+ const CardTitle = forwardRef(({ children, leading, ...props }, ref) => {
12
+ return (jsxs(WiredCardTitle, { ...props, slot: "title", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
13
+ });
14
+
15
+ const CardSubtitle = createComponent({
16
+ tagName: 'm-card-subtitle',
17
+ elementClass: CardSubtitle$1,
18
+ displayName: 'CardSubtitle',
19
+ });
20
+
21
+ const CardBody = createComponent({
22
+ tagName: 'm-card-body',
23
+ elementClass: CardBody$1,
24
+ displayName: 'CardBody',
25
+ });
26
+
27
+ const CardDivider = createComponent({
28
+ tagName: 'm-card-divider',
29
+ elementClass: CardDivider$1,
30
+ displayName: 'CardDivider',
31
+ });
32
+
33
+ const WiredCardActionPrimary = createComponent({
34
+ tagName: 'm-card-action-primary',
35
+ elementClass: CardActionPrimary$1,
36
+ displayName: 'CardActionPrimary',
37
+ });
38
+ const CardActionPrimary = forwardRef((props, ref) => {
39
+ const { leading, trailing, children, ...rest } = props;
40
+ return (jsxs(WiredCardActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
41
+ });
42
+
43
+ const WiredCardActionSecondary = createComponent({
44
+ tagName: 'm-card-action-secondary',
45
+ elementClass: CardActionSecondary$1,
46
+ displayName: 'CardActionSecondary',
47
+ });
48
+ const CardActionSecondary = forwardRef((props, ref) => {
49
+ const { leading, trailing, children, ...rest } = props;
50
+ return (jsxs(WiredCardActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
51
+ });
52
+
53
+ const WiredCardActionTertiary = createComponent({
54
+ tagName: 'm-card-action-tertiary',
55
+ elementClass: CardActionTertiary$1,
56
+ displayName: 'CardActionTertiary',
57
+ });
58
+ const CardActionTertiary = forwardRef((props, ref) => {
59
+ const { leading, trailing, children, ...rest } = props;
60
+ return (jsxs(WiredCardActionTertiary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
61
+ });
62
+
63
+ const CardFooter = createComponent({
64
+ tagName: 'm-card-footer',
65
+ elementClass: CardFooter$1,
66
+ displayName: 'CardFooter',
67
+ });
68
+
69
+ const Card = createComponent({
70
+ tagName: 'm-card',
71
+ elementClass: Card$1,
72
+ displayName: 'Card',
73
+ events: {
74
+ onToggle: 'm-toggle',
75
+ },
76
+ subComponents: {
77
+ Title: CardTitle,
78
+ Subtitle: CardSubtitle,
79
+ Body: CardBody,
80
+ Divider: CardDivider,
81
+ ActionPrimary: CardActionPrimary,
82
+ ActionSecondary: CardActionSecondary,
83
+ ActionTertiary: CardActionTertiary,
84
+ Footer: CardFooter,
85
+ },
86
+ });
87
+
88
+ export { Card as C };
@@ -0,0 +1,19 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import { Checkbox as Checkbox$1 } from '@loadsmart/miranda-wc';
4
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
5
+
6
+ const WiredCheckbox = createComponent({
7
+ tagName: 'm-checkbox',
8
+ elementClass: Checkbox$1,
9
+ events: {
10
+ onChange: 'change',
11
+ },
12
+ displayName: 'Checkbox',
13
+ });
14
+ const Checkbox = forwardRef((props, ref) => {
15
+ const { children, leading, ...rest } = props;
16
+ return (jsxs(WiredCheckbox, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
17
+ });
18
+
19
+ export { Checkbox as C };
@@ -0,0 +1,92 @@
1
+ import { 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 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { forwardRef } from 'react';
5
+
6
+ const WiredDialogActionPrimary = createComponent({
7
+ tagName: 'm-dialog-action-primary',
8
+ elementClass: DialogActionPrimary$1,
9
+ displayName: 'DialogActionPrimary',
10
+ });
11
+ const DialogActionPrimary = forwardRef((props, ref) => {
12
+ const { leading, trailing, children, ...rest } = props;
13
+ return (jsxs(WiredDialogActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
14
+ });
15
+
16
+ const WiredDialogActionSecondary = createComponent({
17
+ tagName: 'm-dialog-action-secondary',
18
+ elementClass: DialogActionSecondary$1,
19
+ displayName: 'DialogActionSecondary',
20
+ });
21
+ const DialogActionSecondary = forwardRef((props, ref) => {
22
+ const { leading, trailing, children, ...rest } = props;
23
+ return (jsxs(WiredDialogActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
24
+ });
25
+
26
+ const WiredDialogActionTertiary = createComponent({
27
+ tagName: 'm-dialog-action-tertiary',
28
+ elementClass: DialogActionTertiary$1,
29
+ displayName: 'DialogActionTertiary',
30
+ });
31
+ const DialogActionTertiary = forwardRef((props, ref) => {
32
+ const { leading, trailing, children, ...rest } = props;
33
+ return (jsxs(WiredDialogActionTertiary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
34
+ });
35
+
36
+ const DialogActions = createComponent({
37
+ tagName: 'm-dialog-actions',
38
+ elementClass: DialogActions$1,
39
+ displayName: 'DialogActions',
40
+ });
41
+
42
+ const DialogBody = createComponent({
43
+ tagName: 'm-dialog-body',
44
+ elementClass: DialogBody$1,
45
+ displayName: 'DialogBody',
46
+ });
47
+
48
+ const DialogClose = createComponent({
49
+ tagName: 'm-dialog-close',
50
+ elementClass: DialogClose$1,
51
+ events: {
52
+ onClose: 'm-close',
53
+ },
54
+ displayName: 'DialogClose',
55
+ });
56
+
57
+ const DialogFooter = createComponent({
58
+ tagName: 'm-dialog-footer',
59
+ elementClass: DialogFooter$1,
60
+ displayName: 'DialogFooter',
61
+ });
62
+
63
+ const DialogHeader = createComponent({
64
+ tagName: 'm-dialog-header',
65
+ elementClass: DialogHeader$1,
66
+ displayName: 'DialogHeader',
67
+ });
68
+
69
+ const Dialog = createComponent({
70
+ tagName: 'm-dialog',
71
+ elementClass: Dialog$1,
72
+ events: {
73
+ onClose: 'm-close',
74
+ onOpening: 'm-opening',
75
+ onOpened: 'm-opened',
76
+ onClosing: 'm-closing',
77
+ onClosed: 'm-closed',
78
+ },
79
+ displayName: 'Dialog',
80
+ subComponents: {
81
+ ActionPrimary: DialogActionPrimary,
82
+ ActionSecondary: DialogActionSecondary,
83
+ ActionTertiary: DialogActionTertiary,
84
+ Actions: DialogActions,
85
+ Body: DialogBody,
86
+ Close: DialogClose,
87
+ Footer: DialogFooter,
88
+ Header: DialogHeader,
89
+ },
90
+ });
91
+
92
+ export { Dialog as D };
@@ -0,0 +1,10 @@
1
+ import { Divider as Divider$1 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+
4
+ const Divider = createComponent({
5
+ tagName: 'm-divider',
6
+ elementClass: Divider$1,
7
+ displayName: 'Divider',
8
+ });
9
+
10
+ export { Divider as D };
@@ -0,0 +1,84 @@
1
+ import { 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 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+
5
+ const WiredDrawerActionPrimary = createComponent({
6
+ tagName: 'm-drawer-action-primary',
7
+ elementClass: DrawerActionPrimary$1,
8
+ displayName: 'DrawerActionPrimary',
9
+ });
10
+ function DrawerActionPrimary(props) {
11
+ const { leading, trailing, children, ...rest } = props;
12
+ return (jsxs(WiredDrawerActionPrimary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
13
+ }
14
+
15
+ const WiredDrawerActionSecondary = createComponent({
16
+ tagName: 'm-drawer-action-secondary',
17
+ elementClass: DrawerActionSecondary$1,
18
+ displayName: 'DrawerActionSecondary',
19
+ });
20
+ function DrawerActionSecondary(props) {
21
+ const { leading, trailing, children, ...rest } = props;
22
+ return (jsxs(WiredDrawerActionSecondary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
23
+ }
24
+
25
+ const WiredDrawerActionTertiary = createComponent({
26
+ tagName: 'm-drawer-action-tertiary',
27
+ elementClass: DrawerActionTertiary$1,
28
+ displayName: 'DrawerActionTertiary',
29
+ });
30
+ function DrawerActionTertiary(props) {
31
+ const { leading, trailing, children, ...rest } = props;
32
+ return (jsxs(WiredDrawerActionTertiary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
33
+ }
34
+
35
+ const DrawerActions = createComponent({
36
+ tagName: 'm-drawer-actions',
37
+ elementClass: DrawerActions$1,
38
+ displayName: 'DrawerActions',
39
+ });
40
+
41
+ const DrawerBody = createComponent({
42
+ tagName: 'm-drawer-body',
43
+ elementClass: DrawerBody$1,
44
+ displayName: 'DrawerBody',
45
+ });
46
+
47
+ const DrawerClose = createComponent({
48
+ tagName: 'm-drawer-close',
49
+ elementClass: DrawerClose$1,
50
+ events: {
51
+ onClose: 'm-close',
52
+ },
53
+ displayName: 'DrawerClose',
54
+ });
55
+
56
+ const DrawerHeader = createComponent({
57
+ tagName: 'm-drawer-header',
58
+ elementClass: DrawerHeader$1,
59
+ displayName: 'DrawerHeader',
60
+ });
61
+
62
+ const Drawer = createComponent({
63
+ tagName: 'm-drawer',
64
+ elementClass: Drawer$1,
65
+ events: {
66
+ onClose: 'm-close',
67
+ onOpening: 'm-opening',
68
+ onOpened: 'm-opened',
69
+ onClosing: 'm-closing',
70
+ onClosed: 'm-closed',
71
+ },
72
+ displayName: 'Drawer',
73
+ subComponents: {
74
+ ActionPrimary: DrawerActionPrimary,
75
+ ActionSecondary: DrawerActionSecondary,
76
+ ActionTertiary: DrawerActionTertiary,
77
+ Actions: DrawerActions,
78
+ Body: DrawerBody,
79
+ Close: DrawerClose,
80
+ Header: DrawerHeader,
81
+ },
82
+ });
83
+
84
+ export { Drawer as D };
@@ -0,0 +1,47 @@
1
+ import { DropdownItem as DropdownItem$1, DropdownMenu as DropdownMenu$1, DropdownTrigger as DropdownTrigger$1, Dropdown as Dropdown$1 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { forwardRef } from 'react';
5
+
6
+ const WiredDropdownItem = createComponent({
7
+ tagName: 'm-dropdown-item',
8
+ elementClass: DropdownItem$1,
9
+ displayName: 'DropdownItem',
10
+ });
11
+ const DropdownItem = forwardRef((props, ref) => {
12
+ const { leading, trailing, children, ...rest } = props;
13
+ return (jsxs(WiredDropdownItem, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
14
+ });
15
+
16
+ const DropdownMenu = createComponent({
17
+ tagName: 'm-dropdown-menu',
18
+ elementClass: DropdownMenu$1,
19
+ displayName: 'DropdownMenu',
20
+ });
21
+
22
+ const WiredDropdownTrigger = createComponent({
23
+ tagName: 'm-dropdown-trigger',
24
+ elementClass: DropdownTrigger$1,
25
+ displayName: 'DropdownTrigger',
26
+ });
27
+ const DropdownTrigger = forwardRef((props, ref) => {
28
+ const { leading, children, ...rest } = props;
29
+ return (jsxs(WiredDropdownTrigger, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
30
+ });
31
+
32
+ const Dropdown = createComponent({
33
+ tagName: 'm-dropdown',
34
+ elementClass: Dropdown$1,
35
+ displayName: 'Dropdown',
36
+ subComponents: {
37
+ Item: DropdownItem,
38
+ Menu: DropdownMenu,
39
+ Trigger: DropdownTrigger,
40
+ },
41
+ events: {
42
+ onExpand: 'm-expand',
43
+ onCollapse: 'm-collapse',
44
+ },
45
+ });
46
+
47
+ export { Dropdown as D, DropdownMenu as a, DropdownItem as b, DropdownTrigger as c };
@@ -0,0 +1,49 @@
1
+ import { EmptyStateIllustration as EmptyStateIllustration$1, EmptyStateHeader as EmptyStateHeader$1, EmptyStateMessage as EmptyStateMessage$1, EmptyStateAction as EmptyStateAction$1, EmptyState as EmptyState$1 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { forwardRef } from 'react';
5
+
6
+ const EmptyStateIllustration = createComponent({
7
+ tagName: 'm-empty-state-illustration',
8
+ elementClass: EmptyStateIllustration$1,
9
+ displayName: 'EmptyStateIllustration',
10
+ });
11
+
12
+ const EmptyStateHeader = createComponent({
13
+ tagName: 'm-empty-state-header',
14
+ elementClass: EmptyStateHeader$1,
15
+ displayName: 'EmptyStateHeader',
16
+ });
17
+
18
+ const EmptyStateMessage = createComponent({
19
+ tagName: 'm-empty-state-message',
20
+ elementClass: EmptyStateMessage$1,
21
+ displayName: 'EmptyStateMessage',
22
+ });
23
+
24
+ const WiredEmptyStateAction = createComponent({
25
+ tagName: 'm-empty-state-action',
26
+ elementClass: EmptyStateAction$1,
27
+ displayName: 'EmptyStateAction',
28
+ });
29
+ const EmptyStateAction = forwardRef((props, ref) => {
30
+ const { leading, trailing, children, ...rest } = props;
31
+ return (jsxs(WiredEmptyStateAction, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
32
+ });
33
+
34
+ const EmptyState = createComponent({
35
+ tagName: 'm-empty-state',
36
+ elementClass: EmptyState$1,
37
+ events: {
38
+ onAction: 'm-action',
39
+ },
40
+ displayName: 'EmptyState',
41
+ subComponents: {
42
+ Illustration: EmptyStateIllustration,
43
+ Header: EmptyStateHeader,
44
+ Message: EmptyStateMessage,
45
+ Action: EmptyStateAction,
46
+ },
47
+ });
48
+
49
+ export { EmptyState as E };
@@ -0,0 +1,31 @@
1
+ import { FieldLabel as FieldLabel$1, FieldHint as FieldHint$1, Field as Field$1 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { forwardRef } from 'react';
5
+
6
+ const FieldLabel = createComponent({
7
+ tagName: 'm-field-label',
8
+ elementClass: FieldLabel$1,
9
+ displayName: 'FieldLabel',
10
+ });
11
+
12
+ const WiredFieldHint = createComponent({
13
+ tagName: 'm-field-hint',
14
+ elementClass: FieldHint$1,
15
+ displayName: 'FieldHint',
16
+ });
17
+ const FieldHint = forwardRef(({ children, leading, ...props }, ref) => {
18
+ return (jsxs(WiredFieldHint, { ...props, slot: "hint", ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children] }));
19
+ });
20
+
21
+ const Field = createComponent({
22
+ tagName: 'm-field',
23
+ elementClass: Field$1,
24
+ displayName: 'Field',
25
+ subComponents: {
26
+ Label: FieldLabel,
27
+ Hint: FieldHint,
28
+ },
29
+ });
30
+
31
+ export { Field as F };
@@ -0,0 +1,47 @@
1
+ import { HeaderActions as HeaderActions$1, HeaderContent as HeaderContent$1, HeaderTitle as HeaderTitle$1, SubHeader as SubHeader$1, BackButton, Header as Header$1 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+
4
+ const HeaderActions = createComponent({
5
+ tagName: 'm-header-actions',
6
+ elementClass: HeaderActions$1,
7
+ displayName: 'HeaderActions',
8
+ });
9
+
10
+ const HeaderContent = createComponent({
11
+ tagName: 'm-header-content',
12
+ elementClass: HeaderContent$1,
13
+ displayName: 'HeaderContent',
14
+ });
15
+
16
+ const HeaderTitle = createComponent({
17
+ tagName: 'm-header-title',
18
+ elementClass: HeaderTitle$1,
19
+ displayName: 'HeaderTitle',
20
+ });
21
+
22
+ const SubHeader = createComponent({
23
+ tagName: 'm-sub-header',
24
+ elementClass: SubHeader$1,
25
+ displayName: 'SubHeader',
26
+ });
27
+
28
+ const HeaderBackButton = createComponent({
29
+ tagName: 'm-back-button',
30
+ elementClass: BackButton,
31
+ displayName: 'HeaderBackButton',
32
+ });
33
+
34
+ const Header = createComponent({
35
+ tagName: 'm-header',
36
+ elementClass: Header$1,
37
+ displayName: 'Header',
38
+ subComponents: {
39
+ Actions: HeaderActions,
40
+ Content: HeaderContent,
41
+ Title: HeaderTitle,
42
+ SubHeader,
43
+ BackButton: HeaderBackButton,
44
+ },
45
+ });
46
+
47
+ export { Header as H, SubHeader as S, HeaderActions as a, HeaderTitle as b };
@@ -0,0 +1,10 @@
1
+ import { Icon as Icon$1 } from '@loadsmart/miranda-wc';
2
+ import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
+
4
+ const Icon = createComponent({
5
+ tagName: 'm-icon',
6
+ elementClass: Icon$1,
7
+ displayName: 'Icon',
8
+ });
9
+
10
+ export { Icon as I };