@loadsmart/miranda-wc 1.42.0 → 1.43.0
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/{attention-d36fbf6d.js → attention-7fb9a32e.js} +2 -2
- package/dist/attention-7fb9a32e.js.map +1 -0
- package/dist/{bell-1815234e.js → bell-197c3fe6.js} +2 -2
- package/dist/bell-197c3fe6.js.map +1 -0
- package/dist/{check-48e597eb.js → check-102a5c66.js} +2 -2
- package/dist/check-102a5c66.js.map +1 -0
- package/dist/{close-801579c6.js → close-4443ad31.js} +2 -2
- package/dist/close-4443ad31.js.map +1 -0
- package/dist/components/link/index.d.ts +3 -0
- package/dist/components/link/index.d.ts.map +1 -0
- package/dist/components/link/link.d.ts +128 -0
- package/dist/components/link/link.d.ts.map +1 -0
- package/dist/components/link/link.styles.d.ts +3 -0
- package/dist/components/link/link.styles.d.ts.map +1 -0
- package/dist/{indeterminate-8684fdbb.js → indeterminate-a9e4d267.js} +2 -2
- package/dist/{indeterminate-8684fdbb.js.map → indeterminate-a9e4d267.js.map} +1 -1
- package/dist/{index-dc701c8a.js → index-4f516d31.js} +93 -37
- package/dist/index-4f516d31.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{info-circle-c8027129.js → info-circle-c5681199.js} +2 -2
- package/dist/{info-circle-c8027129.js.map → info-circle-c5681199.js.map} +1 -1
- package/dist/utils/types.d.ts +5 -0
- package/dist/utils/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/attention-d36fbf6d.js.map +0 -1
- package/dist/bell-1815234e.js.map +0 -1
- package/dist/check-48e597eb.js.map +0 -1
- package/dist/close-801579c6.js.map +0 -1
- package/dist/index-dc701c8a.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a}from"./index-
|
|
2
|
-
//# sourceMappingURL=attention-
|
|
1
|
+
import{b as a}from"./index-4f516d31.js";var s=a`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M6.732 42.889h34.537c2.06 0 3.376-2.192 2.406-4.005l-17.27-32.33c-1.026-1.924-3.785-1.924-4.813 0L4.324 38.883c-.968 1.813.349 4.005 2.408 4.005zm14.542-24.504h5.452v10.89h-5.452zM24 31.998a2.726 2.726 0 0 1 2.726 2.723A2.726 2.726 0 0 1 24 37.444a2.726 2.726 0 0 1-2.726-2.723A2.726 2.726 0 0 1 24 31.998z"/></svg>`;export{s as default};
|
|
2
|
+
//# sourceMappingURL=attention-7fb9a32e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attention-7fb9a32e.js","sources":["../src/components/icon/icons/attention.ts"],"sourcesContent":[null],"names":["attention","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as v}from"./index-
|
|
2
|
-
//# sourceMappingURL=bell-
|
|
1
|
+
import{b as v}from"./index-4f516d31.js";var s=v`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M34.417 21.526v9.133l3.632 3.654v1.826H9v-1.827l3.631-3.653v-9.133c0-5.626 2.96-10.302 8.17-11.544V8.74A2.728 2.728 0 0123.524 6a2.728 2.728 0 012.724 2.74v1.242c5.192 1.242 8.17 5.937 8.17 11.544zm-7.262 16.44c0 2.01-1.634 3.653-3.63 3.653-2.016 0-3.632-1.644-3.632-3.653h7.262z"/></svg>`;export{s as default};
|
|
2
|
+
//# sourceMappingURL=bell-197c3fe6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bell-197c3fe6.js","sources":["../src/components/icon/icons/bell.ts"],"sourcesContent":[null],"names":["bell","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as L}from"./index-
|
|
2
|
-
//# sourceMappingURL=check-
|
|
1
|
+
import{b as L}from"./index-4f516d31.js";var s=L`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M44.4205 13.3433L40.1778 9.10067L18.9646 30.3139L9.06512 20.4144L4.82248 24.657L14.722 34.5565L18.9646 38.7992L23.2073 34.5565L44.4205 13.3433Z"/></svg>`;export{s as default};
|
|
2
|
+
//# sourceMappingURL=check-102a5c66.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-102a5c66.js","sources":["../src/components/icon/icons/check.ts"],"sourcesContent":[null],"names":["check","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as L}from"./index-
|
|
2
|
-
//# sourceMappingURL=close-
|
|
1
|
+
import{b as L}from"./index-4f516d31.js";var s=L`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M40.9706 11.2721L36.7279 7.02944L24 19.7574L11.2721 7.02944L7.02944 11.2721L19.7574 24L7.02944 36.7279L11.2721 40.9706L24 28.2426L36.7279 40.9706L40.9706 36.7279L28.2426 24L40.9706 11.2721Z"/></svg>`;export{s as default};
|
|
2
|
+
//# sourceMappingURL=close-4443ad31.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-4443ad31.js","sources":["../src/components/icon/icons/close.ts"],"sourcesContent":[null],"names":["close","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/link/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { LooseAutocomplete } from '../../utils/types';
|
|
2
|
+
import { Component } from '../component';
|
|
3
|
+
export type LinkTarget = LooseAutocomplete<'_self' | '_blank' | '_parent' | '_top'>;
|
|
4
|
+
export type LinkReferrerPolicy = 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
|
|
5
|
+
export type LinkSize = 'small' | 'default' | 'large';
|
|
6
|
+
export declare class Link extends Component {
|
|
7
|
+
#private;
|
|
8
|
+
static styles: import("lit").CSSResult[];
|
|
9
|
+
static get properties(): {
|
|
10
|
+
href: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
reflect: boolean;
|
|
13
|
+
};
|
|
14
|
+
target: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
reflect: boolean;
|
|
17
|
+
};
|
|
18
|
+
rel: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
reflect: boolean;
|
|
21
|
+
};
|
|
22
|
+
download: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
reflect: boolean;
|
|
25
|
+
};
|
|
26
|
+
ping: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
reflect: boolean;
|
|
29
|
+
};
|
|
30
|
+
referrerpolicy: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
reflect: boolean;
|
|
33
|
+
};
|
|
34
|
+
size: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
reflect: boolean;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
reflect: boolean;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The URL that the hyperlink points to. Links are not restricted to
|
|
45
|
+
* HTTP-based URLs — they can use any URL scheme supported by browsers:
|
|
46
|
+
* - Sections of a page with document fragments
|
|
47
|
+
* - Specific text portions with [text fragments](https://developer.mozilla.org/en-US/docs/Web/Text_fragments)
|
|
48
|
+
* - Pieces of media files with media fragments
|
|
49
|
+
* - Telephone numbers with `tel:` URLs
|
|
50
|
+
* - Email addresses with `mailto:` URLs
|
|
51
|
+
* - While web browsers may not support other URL schemes, websites can with [`registerProtocolHandler()`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler)
|
|
52
|
+
*
|
|
53
|
+
* If not provided or, for security reasons, the URL starts with the
|
|
54
|
+
* `javascript:` scheme, the link will be disabled.
|
|
55
|
+
*/
|
|
56
|
+
href?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Where to display the linked URL, as the name for a browsing context (a
|
|
59
|
+
* tab, window, or [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe)).
|
|
60
|
+
* The following keywords have special meanings for where to load the URL:
|
|
61
|
+
* - `_self`: the current browsing context. (Default)
|
|
62
|
+
* - `_blank`: usually a new tab, but users can configure browsers to open a new window instead.
|
|
63
|
+
* - `_parent`: the parent browsing context of the current one. If no parent, behaves as `_self`.
|
|
64
|
+
* - `_top`: the topmost browsing context (the "highest" context that's an ancestor of the current one). If no ancestors, behaves as `_self`.
|
|
65
|
+
*/
|
|
66
|
+
target?: LinkTarget;
|
|
67
|
+
/**
|
|
68
|
+
* The relationship of the linked URL as space-separated link types. You can
|
|
69
|
+
* check some possible values for [`rel` on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
70
|
+
*
|
|
71
|
+
* Additionally, values may be added if the following criteria are met:
|
|
72
|
+
* - If `target` is set to `_blank` and `referrerpolicy` is not set, `noreferrer` will be added.
|
|
73
|
+
* - If `target` is set to `_blank` and `rel` do not contains `opener`, `noopener` will be added.
|
|
74
|
+
*/
|
|
75
|
+
rel?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Causes the browser to treat the linked URL as a download. Can be used
|
|
78
|
+
* with or without a `filename` value:
|
|
79
|
+
* - Without a value, the browser will suggest a filename/extension, generated from various sources:
|
|
80
|
+
* - The [Content-Disposition](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) HTTP header
|
|
81
|
+
* - The final segment in the URL [path](https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname)
|
|
82
|
+
* - The [media type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type) (from the [`Content-Type`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) header, the start of a [`data:` URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs), or [`Blob.type`](https://developer.mozilla.org/en-US/docs/Web/API/Blob/type) for a [`blob:` URL](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL_static))
|
|
83
|
+
* - `filename`: defining a value suggests it as the filename. `/` and `\` characters are converted to underscores (`_`). Filesystems may forbid other characters in filenames, so browsers will adjust the suggested name if necessary.
|
|
84
|
+
*
|
|
85
|
+
* > Note:
|
|
86
|
+
* > - `download` only works for [same-origin URLs](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), or the `blob:` and `data:` schemes.
|
|
87
|
+
* > - How browsers treat downloads varies by browser, user settings, and other factors. The user may be prompted before a download starts, or the file may be saved automatically, or it may open automatically, either in an external application or in the browser itself.
|
|
88
|
+
* > - If the `Content-Disposition` header has different information from the `download` attribute, resulting behavior may differ:
|
|
89
|
+
* > - If the header specifies a `filename`, it takes priority over a filename specified in the `download` attribute.
|
|
90
|
+
* > - If the header specifies a disposition of `inline`, Chrome and Firefox prioritize the attribute and treat it as a download. Old Firefox versions (before 82) prioritize the header and will display the content inline.
|
|
91
|
+
*/
|
|
92
|
+
download?: string;
|
|
93
|
+
/**
|
|
94
|
+
* A space-separated list of URLs. When the link is followed, the browser
|
|
95
|
+
* will send [`POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)
|
|
96
|
+
* requests with the body `PING` to the URLs. Typically for tracking.
|
|
97
|
+
*/
|
|
98
|
+
ping?: string;
|
|
99
|
+
/**
|
|
100
|
+
* How much of the [referrer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer)
|
|
101
|
+
* to send when following the link.
|
|
102
|
+
* - `no-referrer`: The [Referer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) header will not be sent.
|
|
103
|
+
* - `no-referrer-when-downgrade`: The [Referer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin)s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS) ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS)).
|
|
104
|
+
* - `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Web_mechanics/What_is_a_URL), [host](https://developer.mozilla.org/en-US/docs/Glossary/Host), and [port](https://developer.mozilla.org/en-US/docs/Glossary/Port).
|
|
105
|
+
* - `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.
|
|
106
|
+
* - `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy), but cross-origin requests will contain no referrer information.
|
|
107
|
+
* - `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS→HTTPS), but don't send it to a less secure destination (HTTPS→HTTP).
|
|
108
|
+
* - `strict-origin-when-cross-origin` (default): Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS→HTTPS), and send no header to a less secure destination (HTTPS→HTTP).
|
|
109
|
+
* - `unsafe-url`: The referrer will include the origin and the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/username)). This value is unsafe, because it leaks origins and paths from TLS-protected resources to insecure origins.
|
|
110
|
+
*/
|
|
111
|
+
referrerpolicy?: LinkReferrerPolicy;
|
|
112
|
+
/**
|
|
113
|
+
* Link size.
|
|
114
|
+
*/
|
|
115
|
+
size?: LinkSize;
|
|
116
|
+
/**
|
|
117
|
+
* Disables the link.
|
|
118
|
+
*/
|
|
119
|
+
disabled?: boolean;
|
|
120
|
+
constructor();
|
|
121
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
122
|
+
}
|
|
123
|
+
declare global {
|
|
124
|
+
interface HTMLElementTagNameMap {
|
|
125
|
+
'm-link': Link;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/link/link.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,MAAM,MAAM,UAAU,GAAG,iBAAiB,CACzC,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CACvC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC3B,aAAa,GACb,4BAA4B,GAC5B,QAAQ,GACR,0BAA0B,GAC1B,aAAa,GACb,eAAe,GACf,iCAAiC,GACjC,YAAY,CAAC;AAEhB,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAIrD,qBAAa,IAAK,SAAQ,SAAS;;IAClC,OAAgB,MAAM,4BAAc;IAEpC,WAAoB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAW7B;IAED;;;;;;;;;;;;OAYG;IACK,IAAI,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;;;OAQG;IACK,MAAM,CAAC,EAAE,UAAU,CAAC;IAE5B;;;;;;;OAOG;IACK,GAAG,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;;;;OAeG;IACK,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACK,IAAI,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;;;;;;OAWG;IACK,cAAc,CAAC,EAAE,kBAAkB,CAAC;IAE5C;;OAEG;IACK,IAAI,CAAC,EAAE,QAAQ,CAAC;IAExB;;OAEG;IACK,QAAQ,CAAC,EAAE,OAAO,CAAC;;IAQlB,MAAM;CA8Df;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,QAAQ,EAAE,IAAI,CAAC;KACf;CACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.styles.d.ts","sourceRoot":"","sources":["../../../src/components/link/link.styles.ts"],"names":[],"mappings":"AAMA,iBAAS,MAAM,4BA8Cd;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as v}from"./index-
|
|
2
|
-
//# sourceMappingURL=indeterminate-
|
|
1
|
+
import{b as v}from"./index-4f516d31.js";var t=v`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M19 13H5v-2h14v2z" /></svg>`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=indeterminate-a9e4d267.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indeterminate-
|
|
1
|
+
{"version":3,"file":"indeterminate-a9e4d267.js","sources":["../src/components/icon/icons/indeterminate.ts"],"sourcesContent":[null],"names":["indeterminate","svg"],"mappings":"wCAEA,IAAAA,EAAeC,CAAG"}
|