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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/components/Accordion/index.d.ts +0 -2
  2. package/dist/components/Badge/index.d.ts +0 -2
  3. package/dist/components/Banner/Banner.d.ts +1 -0
  4. package/dist/components/Banner/index.d.ts +1 -3
  5. package/dist/components/Button/index.d.ts +0 -2
  6. package/dist/components/Card/index.d.ts +0 -2
  7. package/dist/components/Checkbox/index.d.ts +0 -2
  8. package/dist/components/Dialog/index.d.ts +0 -2
  9. package/dist/components/Divider/index.d.ts +0 -1
  10. package/dist/components/Drawer/index.d.ts +0 -2
  11. package/dist/components/Dropdown/index.d.ts +0 -2
  12. package/dist/components/EmptyState/index.d.ts +0 -1
  13. package/dist/components/Field/index.d.ts +0 -2
  14. package/dist/components/Header/index.d.ts +0 -1
  15. package/dist/components/Icon/index.d.ts +0 -2
  16. package/dist/components/LabeledValue/index.d.ts +0 -2
  17. package/dist/components/Layout/index.d.ts +0 -2
  18. package/dist/components/Link/Link.d.ts +2 -0
  19. package/dist/components/Link/index.d.ts +1 -3
  20. package/dist/components/LogoLoader/index.d.ts +0 -2
  21. package/dist/components/PageContent/index.d.ts +0 -4
  22. package/dist/components/Pagination/index.d.ts +0 -2
  23. package/dist/components/ProgressBar/ProgressBar.d.ts +2 -0
  24. package/dist/components/ProgressBar/index.d.ts +1 -3
  25. package/dist/components/ProgressBarCountdown/index.d.ts +0 -2
  26. package/dist/components/RadioGroup/index.d.ts +0 -2
  27. package/dist/components/Section/index.d.ts +0 -2
  28. package/dist/components/SpinnerWheel/index.d.ts +0 -2
  29. package/dist/components/Steps/index.d.ts +0 -2
  30. package/dist/components/Switch/index.d.ts +0 -2
  31. package/dist/components/Table/index.d.ts +1 -2
  32. package/dist/components/Tabs/index.d.ts +1 -2
  33. package/dist/components/Tag/index.d.ts +0 -2
  34. package/dist/components/Text/index.d.ts +0 -2
  35. package/dist/components/TextArea/index.d.ts +0 -2
  36. package/dist/components/TextField/index.d.ts +0 -2
  37. package/dist/components/Timeline/index.d.ts +0 -2
  38. package/dist/components/ToggleGroup/index.d.ts +0 -2
  39. package/dist/components/Tooltip/Tooltip.d.ts +2 -1
  40. package/dist/components/Tooltip/index.d.ts +1 -3
  41. package/dist/index.d.ts +67 -0
  42. package/dist/index.js +1202 -40
  43. package/package.json +3 -3
  44. package/dist/Accordion-CRFOEG8P.js +0 -35
  45. package/dist/ActionableTag-CiY3ktmR.js +0 -30
  46. package/dist/Badge-bksnMK0y.js +0 -10
  47. package/dist/Banner-DKi8HnhY.js +0 -67
  48. package/dist/Button-MYGS0n5V.js +0 -16
  49. package/dist/Card-DMVgqLq2.js +0 -88
  50. package/dist/Checkbox-OA3mt9qr.js +0 -19
  51. package/dist/Dialog-BXmQb7iZ.js +0 -92
  52. package/dist/Divider-Ce0Poebo.js +0 -10
  53. package/dist/Drawer-DAL5BRMS.js +0 -84
  54. package/dist/Dropdown-BZq7wxH2.js +0 -47
  55. package/dist/EmptyState-N_H8UALy.js +0 -49
  56. package/dist/Field-DUTm4XZx.js +0 -31
  57. package/dist/Header-BVVroF-a.js +0 -47
  58. package/dist/Icon-JSXp1ySp.js +0 -10
  59. package/dist/LabeledValue-BEj3zEk5.js +0 -33
  60. package/dist/Layout-yKvtIEmV.js +0 -81
  61. package/dist/Link-XqV4DM9g.js +0 -10
  62. package/dist/LogoLoader-Bjplh2u3.js +0 -10
  63. package/dist/PageContent-Bu0ofdVV.js +0 -19
  64. package/dist/Pagination-D2HYqeb2.js +0 -13
  65. package/dist/ProgressBar-CdwVUs1k.js +0 -10
  66. package/dist/ProgressBarCountdown-BsTb_5jd.js +0 -10
  67. package/dist/RadioGroup-QWrSrVvv.js +0 -28
  68. package/dist/Section-BcuVyQXQ.js +0 -24
  69. package/dist/SpinnerWheel-BqMAxsBi.js +0 -10
  70. package/dist/Switch-Uq5TuNqD.js +0 -13
  71. package/dist/Table-DlnVsR0p.js +0 -78
  72. package/dist/Tabs-9eHquUoD.js +0 -34
  73. package/dist/Text-BUtQqPKN.js +0 -10
  74. package/dist/TextArea-DNtv4x9o.js +0 -18
  75. package/dist/TextField-BHj0EHuT.js +0 -20
  76. package/dist/Timeline-MCAixOaW.js +0 -68
  77. package/dist/ToggleGroup-ig9rKVtU.js +0 -33
  78. package/dist/Tooltip-0sGIbwe8.js +0 -15
  79. package/dist/accordion.js +0 -5
  80. package/dist/badge.js +0 -4
  81. package/dist/banner.js +0 -5
  82. package/dist/button.js +0 -5
  83. package/dist/card.js +0 -5
  84. package/dist/checkbox.js +0 -5
  85. package/dist/createComponent-Cye6h9wF.js +0 -120
  86. package/dist/dialog.js +0 -5
  87. package/dist/divider.js +0 -4
  88. package/dist/drawer.js +0 -5
  89. package/dist/dropdown.js +0 -5
  90. package/dist/emptystate.js +0 -5
  91. package/dist/field.js +0 -5
  92. package/dist/header.js +0 -4
  93. package/dist/icon.js +0 -4
  94. package/dist/labeledvalue.js +0 -5
  95. package/dist/layout.js +0 -5
  96. package/dist/link.js +0 -4
  97. package/dist/logoloader.js +0 -4
  98. package/dist/pagecontent.js +0 -4
  99. package/dist/pagination.js +0 -4
  100. package/dist/progressbar.js +0 -4
  101. package/dist/progressbarcountdown.js +0 -4
  102. package/dist/radiogroup.js +0 -5
  103. package/dist/section.js +0 -5
  104. package/dist/spinnerwheel.js +0 -4
  105. package/dist/steps.js +0 -4
  106. package/dist/switch.js +0 -4
  107. package/dist/table.js +0 -4
  108. package/dist/tabs.js +0 -5
  109. package/dist/tag.js +0 -5
  110. package/dist/text.js +0 -4
  111. package/dist/textarea.js +0 -5
  112. package/dist/textfield.js +0 -5
  113. package/dist/timeline.js +0 -4
  114. package/dist/togglegroup.js +0 -5
  115. package/dist/tooltip.js +0 -5
  116. package/dist/useSteps-O9Ch5_pJ.js +0 -88
@@ -1,120 +0,0 @@
1
- import * as React from 'react';
2
-
3
- function _extends() {
4
- _extends = Object.assign ? Object.assign.bind() : function (target) {
5
- for (var i = 1; i < arguments.length; i++) {
6
- var source = arguments[i];
7
- for (var key in source) {
8
- if (Object.prototype.hasOwnProperty.call(source, key)) {
9
- target[key] = source[key];
10
- }
11
- }
12
- }
13
- return target;
14
- };
15
- return _extends.apply(this, arguments);
16
- }
17
- function _unsupportedIterableToArray(o, minLen) {
18
- if (!o) return;
19
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
20
- var n = Object.prototype.toString.call(o).slice(8, -1);
21
- if (n === "Object" && o.constructor) n = o.constructor.name;
22
- if (n === "Map" || n === "Set") return Array.from(o);
23
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
24
- }
25
- function _arrayLikeToArray(arr, len) {
26
- if (len == null || len > arr.length) len = arr.length;
27
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
28
- return arr2;
29
- }
30
- function _createForOfIteratorHelperLoose(o, allowArrayLike) {
31
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
32
- if (it) return (it = it.call(o)).next.bind(it);
33
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
34
- if (it) o = it;
35
- var i = 0;
36
- return function () {
37
- if (i >= o.length) return {
38
- done: true
39
- };
40
- return {
41
- done: false,
42
- value: o[i++]
43
- };
44
- };
45
- }
46
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47
- }
48
-
49
- /**
50
- * @license
51
- * Copyright 2018 Google LLC
52
- * SPDX-License-Identifier: BSD-3-Clause
53
- */
54
- var e = new Set(["children", "localName", "ref", "style", "className"]),
55
- n = new WeakMap(),
56
- t = function t(e, _t, o, l, a) {
57
- var s = a == null ? void 0 : a[_t];
58
- void 0 === s ? (e[_t] = o, null == o && _t in HTMLElement.prototype && e.removeAttribute(_t)) : o !== l && function (e, t, o) {
59
- var l = n.get(e);
60
- void 0 === l && n.set(e, l = new Map());
61
- var a = l.get(t);
62
- void 0 !== o ? void 0 === a ? (l.set(t, a = {
63
- handleEvent: o
64
- }), e.addEventListener(t, a)) : a.handleEvent = o : void 0 !== a && (l["delete"](t), e.removeEventListener(t, a));
65
- }(e, s, o);
66
- },
67
- o = function o(_ref) {
68
- var n = _ref.react,
69
- o = _ref.tagName,
70
- l = _ref.elementClass,
71
- a = _ref.events,
72
- s = _ref.displayName;
73
- var c = new Set(Object.keys(a != null ? a : {})),
74
- r = n.forwardRef(function (s, r) {
75
- var i = n.useRef(new Map()),
76
- d = n.useRef(null),
77
- f = {},
78
- u = {};
79
- for (var _i = 0, _Object$entries = Object.entries(s); _i < _Object$entries.length; _i++) {
80
- var _Object$entries$_i = _Object$entries[_i],
81
- _n = _Object$entries$_i[0],
82
- _t2 = _Object$entries$_i[1];
83
- e.has(_n) ? f["className" === _n ? "class" : _n] = _t2 : c.has(_n) || _n in l.prototype ? u[_n] = _t2 : f[_n] = _t2;
84
- }
85
- return n.useLayoutEffect(function () {
86
- if (null === d.current) return;
87
- var e = new Map();
88
- 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]);
89
- for (var _iterator = _createForOfIteratorHelperLoose(i.current), _step; !(_step = _iterator()).done;) {
90
- var _step$value = _step.value,
91
- _e = _step$value[0],
92
- _n3 = _step$value[1];
93
- t(d.current, _e, void 0, _n3, a);
94
- }
95
- i.current = e;
96
- }), n.useLayoutEffect(function () {
97
- var _d$current;
98
- (_d$current = d.current) == null || _d$current.removeAttribute("defer-hydration");
99
- }, []), f.suppressHydrationWarning = !0, n.createElement(o, _extends({}, f, {
100
- ref: n.useCallback(function (e) {
101
- d.current = e, "function" == typeof r ? r(e) : null !== r && (r.current = e);
102
- }, [r])
103
- }));
104
- });
105
- return r.displayName = s != null ? s : l.name, r;
106
- };
107
-
108
- const createComponent = ({ subComponents, ...options }) => {
109
- const ReactComponent = o({
110
- react: React,
111
- ...options,
112
- });
113
- const ComponentWithSubComponents = ReactComponent;
114
- if (subComponents) {
115
- Object.assign(ComponentWithSubComponents, subComponents);
116
- }
117
- return ComponentWithSubComponents;
118
- };
119
-
120
- export { createComponent as c };
package/dist/dialog.js DELETED
@@ -1,5 +0,0 @@
1
- export { D as Dialog } from './Dialog-BXmQb7iZ.js';
2
- export { DIALOG_SIZES, DIALOG_VARIANTS, Dialog as WCDialog, DialogActionPrimary as WCDialogActionPrimary, DialogActionSecondary as WCDialogActionSecondary, DialogActionTertiary as WCDialogActionTertiary, DialogActions as WCDialogActions, DialogBody as WCDialogBody, DialogClose as WCDialogClose, DialogFooter as WCDialogFooter, DialogHeader as WCDialogHeader } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
5
- import 'react/jsx-runtime';
package/dist/divider.js DELETED
@@ -1,4 +0,0 @@
1
- export { D as Divider } from './Divider-Ce0Poebo.js';
2
- export { Divider as WCDivider } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
package/dist/drawer.js DELETED
@@ -1,5 +0,0 @@
1
- export { D as Drawer } from './Drawer-DAL5BRMS.js';
2
- export { DRAWER_SIZES, Drawer as WCDrawer, DrawerActionPrimary as WCDrawerActionPrimary, DrawerActionSecondary as WCDrawerActionSecondary, DrawerActionTertiary as WCDrawerActionTertiary, DrawerActions as WCDrawerActions, DrawerBody as WCDrawerBody, DrawerClose as WCDrawerClose, DrawerHeader as WCDrawerHeader } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
5
- import 'react/jsx-runtime';
package/dist/dropdown.js DELETED
@@ -1,5 +0,0 @@
1
- export { D as Dropdown, b as DropdownItem, a as DropdownMenu, c as DropdownTrigger } from './Dropdown-BZq7wxH2.js';
2
- export { Dropdown as WCDropdown, DropdownItem as WCDropdownItem, DropdownMenu as WCDropdownMenu, DropdownTrigger as WCDropdownTrigger } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
5
- import 'react/jsx-runtime';
@@ -1,5 +0,0 @@
1
- export { E as EmptyState } from './EmptyState-N_H8UALy.js';
2
- export { EMPTY_STATE_VARIANTS, EmptyState as WCEmptyState, EmptyStateAction as WCEmptyStateAction, EmptyStateHeader as WCEmptyStateHeader, EmptyStateIllustration as WCEmptyStateIllustration, EmptyStateMessage as WCEmptyStateMessage } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
5
- import 'react/jsx-runtime';
package/dist/field.js DELETED
@@ -1,5 +0,0 @@
1
- export { F as Field } from './Field-DUTm4XZx.js';
2
- export { Field as WCField, FieldHint as WCFieldHint, FieldLabel as WCFieldLabel } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
5
- import 'react/jsx-runtime';
package/dist/header.js DELETED
@@ -1,4 +0,0 @@
1
- export { H as Header, a as HeaderActions, b as HeaderTitle, S as SubHeader } from './Header-BVVroF-a.js';
2
- export { Header as WCHeader, HeaderActions as WCHeaderActions, HeaderContent as WCHeaderContent, HeaderTitle as WCHeaderTitle, SubHeader as WCSubHeader } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
package/dist/icon.js DELETED
@@ -1,4 +0,0 @@
1
- export { I as Icon } from './Icon-JSXp1ySp.js';
2
- export { Icon as WCIcon } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
@@ -1,5 +0,0 @@
1
- export { b as LabeledValue, L as LabeledValueLabel, a as LabeledValueValue } from './LabeledValue-BEj3zEk5.js';
2
- export { LabeledValue as WCLabeledValue, LabeledValueLabel as WCLabeledValueLabel, LabeledValueValue as WCLabeledValueValue } from '@loadsmart/miranda-wc';
3
- import 'react/jsx-runtime';
4
- import 'react';
5
- import './createComponent-Cye6h9wF.js';
package/dist/layout.js DELETED
@@ -1,5 +0,0 @@
1
- export { B as Box, C as Column, d as Container, a as Grid, G as Group, L as Layout, R as Row, b as Sidebar, S as Stack, c as Switcher } from './Layout-yKvtIEmV.js';
2
- export { Box as WCBox, Column as WCColumn, Container as WCContainer, Grid as WCGrid, Group as WCGroup, Row as WCRow, Sidebar as WCSidebar, Stack as WCStack, Switcher as WCSwitcher } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
5
- import 'react/jsx-runtime';
package/dist/link.js DELETED
@@ -1,4 +0,0 @@
1
- export { L as Link } from './Link-XqV4DM9g.js';
2
- export { Link as WCLink } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
@@ -1,4 +0,0 @@
1
- export { L as LogoLoader } from './LogoLoader-Bjplh2u3.js';
2
- export { LogoLoader as WCLogoLoader } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
@@ -1,4 +0,0 @@
1
- export { B as Body, P as PageContent } from './PageContent-Bu0ofdVV.js';
2
- export { Body as WCBody, PageContent as WCPageContent } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
@@ -1,4 +0,0 @@
1
- export { P as Pagination } from './Pagination-D2HYqeb2.js';
2
- export { Pagination as WCPagination } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
@@ -1,4 +0,0 @@
1
- export { P as ProgressBar } from './ProgressBar-CdwVUs1k.js';
2
- export { ProgressBar as WCProgressBar } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
@@ -1,4 +0,0 @@
1
- export { P as ProgressBarCountdown } from './ProgressBarCountdown-BsTb_5jd.js';
2
- export { ProgressBarCountdown as WCProgressBarCountdown } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
@@ -1,5 +0,0 @@
1
- export { a as Radio, R as RadioGroup } from './RadioGroup-QWrSrVvv.js';
2
- export { Radio as WCRadio, RadioGroup as WCRadioGroup } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
5
- import 'react/jsx-runtime';
package/dist/section.js DELETED
@@ -1,5 +0,0 @@
1
- export { S as Section } from './Section-BcuVyQXQ.js';
2
- export { Section as WCSection, SectionTitle as WCSectionTitle } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
5
- import 'react/jsx-runtime';
@@ -1,4 +0,0 @@
1
- export { S as SpinnerWheel } from './SpinnerWheel-BqMAxsBi.js';
2
- export { SpinnerWheel as WCSpinnerWheel } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
package/dist/steps.js DELETED
@@ -1,4 +0,0 @@
1
- export { a as Step, S as Steps, u as useSteps } from './useSteps-O9Ch5_pJ.js';
2
- export { Step as WCStep, Steps as WCSteps } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
package/dist/switch.js DELETED
@@ -1,4 +0,0 @@
1
- export { S as Switch } from './Switch-Uq5TuNqD.js';
2
- export { Switch as WCSwitch } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
package/dist/table.js DELETED
@@ -1,4 +0,0 @@
1
- export { T as Table, i as TableActions, b as TableBody, f as TableCell, h as TableFeedback, c as TableFoot, a as TableHead, e as TableHeadCell, d as TableRow, g as TableToolbar } from './Table-DlnVsR0p.js';
2
- export { Table as WCTable, TableActions as WCTableActions, TableBody as WCTableBody, TableCell as WCTableCell, TableFeedback as WCTableFeedback, TableFoot as WCTableFoot, TableHead as WCTableHead, TableHeadCell as WCTableHeadCell, TableRow as WCTableRow, TableToolbar as WCTableToolbar } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
package/dist/tabs.js DELETED
@@ -1,5 +0,0 @@
1
- export { a as Tab, b as TabPanel, T as Tabs } from './Tabs-9eHquUoD.js';
2
- export { Tab as WCTab, TabPanel as WCTabPanel, Tabs as WCTabs } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
5
- import 'react/jsx-runtime';
package/dist/tag.js DELETED
@@ -1,5 +0,0 @@
1
- export { A as ActionableTag, T as Tag } from './ActionableTag-CiY3ktmR.js';
2
- export { ActionableTag as WCActionableTag, Tag as WCTag } from '@loadsmart/miranda-wc';
3
- import 'react/jsx-runtime';
4
- import 'react';
5
- import './createComponent-Cye6h9wF.js';
package/dist/text.js DELETED
@@ -1,4 +0,0 @@
1
- export { T as Text } from './Text-BUtQqPKN.js';
2
- export { Text as WCText } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
package/dist/textarea.js DELETED
@@ -1,5 +0,0 @@
1
- export { T as TextArea } from './TextArea-DNtv4x9o.js';
2
- export { TextArea as WCTextArea } from '@loadsmart/miranda-wc';
3
- import 'react/jsx-runtime';
4
- import './createComponent-Cye6h9wF.js';
5
- import 'react';
package/dist/textfield.js DELETED
@@ -1,5 +0,0 @@
1
- export { T as TextField } from './TextField-BHj0EHuT.js';
2
- export { TextField as WCTextField } from '@loadsmart/miranda-wc';
3
- import 'react/jsx-runtime';
4
- import 'react';
5
- import './createComponent-Cye6h9wF.js';
package/dist/timeline.js DELETED
@@ -1,4 +0,0 @@
1
- export { T as Timeline, b as TimelineExpandableItem, a as TimelineItem, c as TimelineItemBody, d as TimelineItemFooter, e as TimelineItemHeader, f as TimelineItemHeaderSubtitle, g as TimelineItemHeaderTitle, h as TimelineItemIcon } from './Timeline-MCAixOaW.js';
2
- export { Timeline as WCTimeline, TimelineExpandableItem as WCTimelineExpandableItem, TimelineItem as WCTimelineItem, TimelineItemBody as WCTimelineItemBody, TimelineItemFooter as WCTimelineItemFooter, TimelineItemHeader as WCTimelineItemHeader, TimelineItemHeaderSubtitle as WCTimelineItemHeaderSubtitle, TimelineItemHeaderTitle as WCTimelineItemHeaderTitle, TimelineItemIcon as WCTimelineItemIcon } from '@loadsmart/miranda-wc';
3
- import './createComponent-Cye6h9wF.js';
4
- import 'react';
@@ -1,5 +0,0 @@
1
- export { a as Toggle, T as ToggleGroup } from './ToggleGroup-ig9rKVtU.js';
2
- export { Toggle as WCToggle, ToggleGroup as WCToggleGroup } from '@loadsmart/miranda-wc';
3
- import 'react/jsx-runtime';
4
- import './createComponent-Cye6h9wF.js';
5
- import 'react';
package/dist/tooltip.js DELETED
@@ -1,5 +0,0 @@
1
- export { T as Tooltip } from './Tooltip-0sGIbwe8.js';
2
- export { Tooltip as WCTooltip } from '@loadsmart/miranda-wc';
3
- import 'react/jsx-runtime';
4
- import './createComponent-Cye6h9wF.js';
5
- import 'react';
@@ -1,88 +0,0 @@
1
- import { Step as Step$1, Steps as Steps$1 } from '@loadsmart/miranda-wc';
2
- import { c as createComponent } from './createComponent-Cye6h9wF.js';
3
- import { useState, useCallback } from 'react';
4
-
5
- const Step = createComponent({
6
- tagName: 'm-step',
7
- elementClass: Step$1,
8
- displayName: 'Step',
9
- });
10
-
11
- const Steps = createComponent({
12
- tagName: 'm-steps',
13
- elementClass: Steps$1,
14
- displayName: 'Steps',
15
- events: {
16
- onChange: 'm-change',
17
- onComplete: 'm-complete',
18
- onNavigate: 'm-navigate',
19
- onNext: 'm-next',
20
- onPrevious: 'm-previous',
21
- },
22
- subComponents: {
23
- Step,
24
- },
25
- });
26
-
27
- function createCustomEvent(eventName, detail) {
28
- const event = new CustomEvent(eventName, {
29
- bubbles: true,
30
- detail,
31
- });
32
- return event;
33
- }
34
- function useSteps() {
35
- const [stepsElement, setStepsElement] = useState(null);
36
- const registerSteps = useCallback(() => {
37
- return {
38
- ref(element) {
39
- if (element == null || stepsElement != null) {
40
- return;
41
- }
42
- setStepsElement(element);
43
- },
44
- };
45
- }, [stepsElement]);
46
- const navigateToStep = useCallback(
47
- /**
48
- * Either `'previous'`, `'next'`, or step name.
49
- */
50
- (step) => {
51
- if (stepsElement == null) {
52
- return;
53
- }
54
- const navigateToNextStep = () => {
55
- return createCustomEvent('m-next');
56
- };
57
- const navigateToPreviousStep = () => {
58
- return createCustomEvent('m-previous');
59
- };
60
- let event;
61
- switch (step) {
62
- case 'next':
63
- event = navigateToNextStep();
64
- break;
65
- case 'previous':
66
- event = navigateToPreviousStep();
67
- break;
68
- default:
69
- event = createCustomEvent('m-navigate', step);
70
- }
71
- stepsElement.dispatchEvent(event);
72
- }, [stepsElement]);
73
- const completeStep = useCallback(() => {
74
- if (stepsElement == null) {
75
- return;
76
- }
77
- const event = createCustomEvent('m-complete');
78
- stepsElement.dispatchEvent(event);
79
- }, [stepsElement]);
80
- return {
81
- elementRef: stepsElement,
82
- registerSteps,
83
- navigateToStep,
84
- completeStep,
85
- };
86
- }
87
-
88
- export { Steps as S, Step as a, useSteps as u };