@loadsmart/miranda-react 3.0.0-beta.20 → 3.0.0-beta.22
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/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +6 -6
- package/dist/components/Dialog/DialogClose.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +6 -6
- package/dist/components/Drawer/DrawerClose.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Steps/Steps.d.ts +3 -3
- package/dist/components/Steps/useSteps.d.ts +1 -1
- package/dist/components/Tag/ActionableTag.d.ts +1 -1
- package/dist/components/TextField/TextField.d.ts +1 -1
- package/dist/index.js +31 -38
- package/dist/utils/createComponent.d.ts +1 -1
- package/package.json +3 -3
|
@@ -9,7 +9,7 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare const Banner: import("@lit/react").ReactWebComponent<WCBanner, {
|
|
12
|
-
onDismiss: EventName<CustomEvent
|
|
12
|
+
onDismiss: EventName<CustomEvent>;
|
|
13
13
|
}> & {
|
|
14
14
|
ActionPrimary: import("react").ForwardRefExoticComponent<Omit<import("./BannerActionPrimary").BannerActionPrimaryProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").BannerActionPrimary>>;
|
|
15
15
|
Actions: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").BannerActions, {}>;
|
|
@@ -9,11 +9,11 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare const Dialog: import("@lit/react").ReactWebComponent<WCDialog, {
|
|
12
|
-
onClose: EventName<CustomEvent
|
|
13
|
-
onOpening: EventName<CustomEvent
|
|
14
|
-
onOpened: EventName<CustomEvent
|
|
15
|
-
onClosing: EventName<CustomEvent
|
|
16
|
-
onClosed: EventName<CustomEvent
|
|
12
|
+
onClose: EventName<CustomEvent>;
|
|
13
|
+
onOpening: EventName<CustomEvent>;
|
|
14
|
+
onOpened: EventName<CustomEvent>;
|
|
15
|
+
onClosing: EventName<CustomEvent>;
|
|
16
|
+
onClosed: EventName<CustomEvent>;
|
|
17
17
|
}> & {
|
|
18
18
|
ActionPrimary: import("react").ForwardRefExoticComponent<Omit<import("./DialogActionPrimary").DialogActionPrimaryProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").DialogActionPrimary>>;
|
|
19
19
|
ActionSecondary: import("react").ForwardRefExoticComponent<Omit<import("./DialogActionSecondary").DialogActionSecondaryProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").DialogActionSecondary>>;
|
|
@@ -21,7 +21,7 @@ export declare const Dialog: import("@lit/react").ReactWebComponent<WCDialog, {
|
|
|
21
21
|
Actions: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DialogActions, {}>;
|
|
22
22
|
Body: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DialogBody, {}>;
|
|
23
23
|
Close: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DialogClose, {
|
|
24
|
-
onClose: EventName<CustomEvent
|
|
24
|
+
onClose: EventName<CustomEvent>;
|
|
25
25
|
}>;
|
|
26
26
|
Footer: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DialogFooter, {}>;
|
|
27
27
|
Header: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DialogHeader, {}>;
|
|
@@ -9,6 +9,6 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare const DialogClose: import("@lit/react").ReactWebComponent<WCDialogClose, {
|
|
12
|
-
onClose: EventName<CustomEvent
|
|
12
|
+
onClose: EventName<CustomEvent>;
|
|
13
13
|
}>;
|
|
14
14
|
export type DialogCloseProps = ComponentProps<typeof DialogClose>;
|
|
@@ -12,11 +12,11 @@ declare global {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
export declare const Drawer: import("@lit/react").ReactWebComponent<WCDrawer, {
|
|
15
|
-
onClose: EventName<CustomEvent
|
|
16
|
-
onOpening: EventName<CustomEvent
|
|
17
|
-
onOpened: EventName<CustomEvent
|
|
18
|
-
onClosing: EventName<CustomEvent
|
|
19
|
-
onClosed: EventName<CustomEvent
|
|
15
|
+
onClose: EventName<CustomEvent>;
|
|
16
|
+
onOpening: EventName<CustomEvent>;
|
|
17
|
+
onOpened: EventName<CustomEvent>;
|
|
18
|
+
onClosing: EventName<CustomEvent>;
|
|
19
|
+
onClosed: EventName<CustomEvent>;
|
|
20
20
|
}> & {
|
|
21
21
|
ActionPrimary: typeof DrawerActionPrimary;
|
|
22
22
|
ActionSecondary: typeof DrawerActionSecondary;
|
|
@@ -24,7 +24,7 @@ export declare const Drawer: import("@lit/react").ReactWebComponent<WCDrawer, {
|
|
|
24
24
|
Actions: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DrawerActions, {}>;
|
|
25
25
|
Body: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DrawerBody, {}>;
|
|
26
26
|
Close: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DrawerClose, {
|
|
27
|
-
onClose: EventName<CustomEvent
|
|
27
|
+
onClose: EventName<CustomEvent>;
|
|
28
28
|
}>;
|
|
29
29
|
Header: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DrawerHeader, {}>;
|
|
30
30
|
};
|
|
@@ -9,6 +9,6 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare const DrawerClose: import("@lit/react").ReactWebComponent<WCDrawerClose, {
|
|
12
|
-
onClose: EventName<CustomEvent
|
|
12
|
+
onClose: EventName<CustomEvent>;
|
|
13
13
|
}>;
|
|
14
14
|
export type DrawerCloseProps = ComponentProps<typeof DrawerClose>;
|
|
@@ -9,8 +9,8 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare const Dropdown: import("@lit/react").ReactWebComponent<WCDropdown, {
|
|
12
|
-
onExpand: EventName<CustomEvent
|
|
13
|
-
onCollapse: EventName<CustomEvent
|
|
12
|
+
onExpand: EventName<CustomEvent>;
|
|
13
|
+
onCollapse: EventName<CustomEvent>;
|
|
14
14
|
}> & {
|
|
15
15
|
Item: import("react").ForwardRefExoticComponent<Omit<import("./DropdownItem").DropdownItemProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").DropdownItem>>;
|
|
16
16
|
Menu: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DropdownMenu, {}>;
|
|
@@ -9,7 +9,7 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare const EmptyState: import("@lit/react").ReactWebComponent<WCEmptyState, {
|
|
12
|
-
onAction: EventName<CustomEvent
|
|
12
|
+
onAction: EventName<CustomEvent>;
|
|
13
13
|
}> & {
|
|
14
14
|
Illustration: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").EmptyStateIllustration, {}>;
|
|
15
15
|
Header: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").EmptyStateHeader, {}>;
|
|
@@ -10,8 +10,8 @@ declare global {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
declare const WiredSelect: import("@lit/react").ReactWebComponent<WCSelect, {
|
|
13
|
-
onExpand: EventName<CustomEvent
|
|
14
|
-
onCollapse: EventName<CustomEvent
|
|
13
|
+
onExpand: EventName<CustomEvent>;
|
|
14
|
+
onCollapse: EventName<CustomEvent>;
|
|
15
15
|
onChange: EventName<MirandaChangeEvent<WCSelect>>;
|
|
16
16
|
}>;
|
|
17
17
|
export type SelectOption = {
|
|
@@ -11,10 +11,10 @@ declare global {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const Steps: import("@lit/react").ReactWebComponent<WCSteps, {
|
|
13
13
|
onChange: EventName<CustomEvent<StepChangeEventDetail>>;
|
|
14
|
-
onComplete: EventName<CustomEvent
|
|
14
|
+
onComplete: EventName<CustomEvent>;
|
|
15
15
|
onNavigate: EventName<CustomEvent<StepNavigateEventDetail>>;
|
|
16
|
-
onNext: EventName<CustomEvent
|
|
17
|
-
onPrevious: EventName<CustomEvent
|
|
16
|
+
onNext: EventName<CustomEvent>;
|
|
17
|
+
onPrevious: EventName<CustomEvent>;
|
|
18
18
|
}> & {
|
|
19
19
|
Step: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").Step, {}>;
|
|
20
20
|
};
|
|
@@ -5,6 +5,6 @@ export declare function useSteps(): {
|
|
|
5
5
|
registerSteps: () => {
|
|
6
6
|
ref(element: HTMLElement | null): void;
|
|
7
7
|
};
|
|
8
|
-
navigateToStep: (step: LiteralUnion<
|
|
8
|
+
navigateToStep: (step: LiteralUnion<"previous" | "next", string>) => void;
|
|
9
9
|
completeStep: () => void;
|
|
10
10
|
};
|
|
@@ -11,7 +11,7 @@ declare global {
|
|
|
11
11
|
}
|
|
12
12
|
declare const WiredActionableTag: import("@lit/react").ReactWebComponent<WCActionableTag, {
|
|
13
13
|
onChange: EventName<MirandaChangeEvent<WCActionableTag>>;
|
|
14
|
-
onRemove: EventName<CustomEvent
|
|
14
|
+
onRemove: EventName<CustomEvent>;
|
|
15
15
|
}>;
|
|
16
16
|
export type ActionableTagProps = ComponentProps<typeof WiredActionableTag> & {
|
|
17
17
|
leading?: ReactNode;
|
|
@@ -12,7 +12,7 @@ declare global {
|
|
|
12
12
|
declare const WiredTextField: import("@lit/react").ReactWebComponent<WCTextField, {
|
|
13
13
|
onInput: EventName<MirandaChangeEvent<WCTextField>>;
|
|
14
14
|
onChange: EventName<MirandaChangeEvent<WCTextField>>;
|
|
15
|
-
onClear: EventName<CustomEvent
|
|
15
|
+
onClear: EventName<CustomEvent>;
|
|
16
16
|
}>;
|
|
17
17
|
export type TextFieldProps = ComponentProps<typeof WiredTextField> & {
|
|
18
18
|
leading?: ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -5,51 +5,44 @@ import { forwardRef, useState, useCallback, Children, isValidElement, cloneEleme
|
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import { isFragment } from 'react-is';
|
|
7
7
|
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
for (var key in source) {
|
|
13
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
14
|
-
target[key] = source[key];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
return _extends.apply(this, arguments);
|
|
21
|
-
}
|
|
22
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
23
|
-
if (!o) return;
|
|
24
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
25
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
26
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
27
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
28
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
29
|
-
}
|
|
30
|
-
function _arrayLikeToArray(arr, len) {
|
|
31
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
32
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
33
|
-
return arr2;
|
|
8
|
+
function _arrayLikeToArray(r, a) {
|
|
9
|
+
(null == a || a > r.length) && (a = r.length);
|
|
10
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
11
|
+
return n;
|
|
34
12
|
}
|
|
35
|
-
function _createForOfIteratorHelperLoose(
|
|
36
|
-
var
|
|
37
|
-
if (
|
|
38
|
-
if (Array.isArray(
|
|
39
|
-
|
|
40
|
-
var
|
|
13
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
14
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
15
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
16
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
|
|
17
|
+
t && (r = t);
|
|
18
|
+
var o = 0;
|
|
41
19
|
return function () {
|
|
42
|
-
|
|
43
|
-
done:
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
value: o[i++]
|
|
20
|
+
return o >= r.length ? {
|
|
21
|
+
done: !0
|
|
22
|
+
} : {
|
|
23
|
+
done: !1,
|
|
24
|
+
value: r[o++]
|
|
48
25
|
};
|
|
49
26
|
};
|
|
50
27
|
}
|
|
51
28
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
52
29
|
}
|
|
30
|
+
function _extends() {
|
|
31
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
32
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
33
|
+
var t = arguments[e];
|
|
34
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
35
|
+
}
|
|
36
|
+
return n;
|
|
37
|
+
}, _extends.apply(null, arguments);
|
|
38
|
+
}
|
|
39
|
+
function _unsupportedIterableToArray(r, a) {
|
|
40
|
+
if (r) {
|
|
41
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
42
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
43
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
53
46
|
|
|
54
47
|
/**
|
|
55
48
|
* @license
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EventName, Options } from '@lit/react';
|
|
2
2
|
type EventNames = Record<string, EventName | string>;
|
|
3
3
|
export declare const createComponent: <I extends HTMLElement, E extends EventNames = {}, SubComponents extends Record<string, unknown> = {}>({ subComponents, ...options }: Omit<Options<I, E>, "react"> & {
|
|
4
|
-
subComponents?: SubComponents
|
|
4
|
+
subComponents?: SubComponents;
|
|
5
5
|
}) => import("@lit/react").ReactWebComponent<I, E> & SubComponents;
|
|
6
6
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/miranda-react",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.22",
|
|
4
4
|
"description": "React component library based on Miranda Web Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@loadsmart/miranda-tokens": "4.0.0-beta.
|
|
45
|
-
"@loadsmart/miranda-wc": "3.0.0-beta.
|
|
44
|
+
"@loadsmart/miranda-tokens": "4.0.0-beta.22",
|
|
45
|
+
"@loadsmart/miranda-wc": "3.0.0-beta.22",
|
|
46
46
|
"@lit/react": "^1.0.5",
|
|
47
47
|
"react-is": "^18.3.1"
|
|
48
48
|
},
|