@plusui/library 0.1.6 → 0.1.8
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/cdn/components/link/link.js +15 -30
- package/custom-elements.json +16 -16
- package/dist/components/link/link.d.ts +5 -4
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/link/link.js +15 -30
- package/dist/components/link/link.js.map +1 -1
- package/dist/{if-defined-DfdVQ-_M.js → if-defined-h3Ll_h1t.js} +1 -1
- package/dist/{live-MFfJlsmK.js → live-CoXrsQ3D.js} +1 -1
- package/dist/{property-TAJ5tP8F.js → property-DLmwa-N3.js} +1 -1
- package/dist/{query-BWPX1NTp.js → query-BFSYd3aM.js} +1 -1
- package/dist/{query-assigned-elements-CCyMx0O5.js → query-assigned-elements-D29cbcky.js} +1 -1
- package/dist/{state-BTUGkeKs.js → state-CURcf9xb.js} +1 -1
- package/dist/{style-map-dc4uuQBk.js → style-map-B8m-sO4m.js} +1 -1
- package/package.json +1 -1
- package/public/html/index.js +14 -29
- package/public/react/index.d.ts +5 -4
- package/public/react/index.js +14 -29
- package/types/custom-element-jsx.d.ts +4 -4
- package/types/custom-element-solidjs.d.ts +4 -4
- package/types/custom-element-svelte.d.ts +4 -4
- package/types/custom-element-vuejs.d.ts +4 -4
- package/web-types.json +9 -9
- /package/dist/{base-e010Bq6Y.js → base-CWTcY3O3.js} +0 -0
- /package/dist/{directive-BWWgvof2.js → directive-CXHWwTfw.js} +0 -0
- /package/dist/{floating-ui.dom-CmtuIKc1.js → floating-ui.dom-CpuNudqy.js} +0 -0
- /package/dist/{index-Dfg8xhdF.js → index-Bw06nX5-.js} +0 -0
- /package/dist/{lit-element-sJu6HHyN.js → lit-element-B3f5s1Hz.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as __decorate, n } from '../../property-DiPQx9S3.js';
|
|
2
|
-
import { x } from '../../lit-element-ByzbtpGk.js';
|
|
2
|
+
import { i, x } from '../../lit-element-ByzbtpGk.js';
|
|
3
3
|
import Tailwind from '../base/tailwind-base.js';
|
|
4
4
|
import { linkStyle } from './link.style.js';
|
|
5
5
|
import { booleanConverter } from '../../utils/boolean-converter.js';
|
|
@@ -41,29 +41,6 @@ class PlusLink extends Tailwind {
|
|
|
41
41
|
* @default false
|
|
42
42
|
*/
|
|
43
43
|
this.readonly = false;
|
|
44
|
-
/**
|
|
45
|
-
* The URL that the hyperlink points to
|
|
46
|
-
* @default ''
|
|
47
|
-
*/
|
|
48
|
-
this.href = '';
|
|
49
|
-
/**
|
|
50
|
-
* Specifies where to display the linked URL
|
|
51
|
-
* Common values: _blank, _self, _parent, _top
|
|
52
|
-
* @default ''
|
|
53
|
-
*/
|
|
54
|
-
this.target = '';
|
|
55
|
-
/**
|
|
56
|
-
* Specifies the relationship between the current document and the linked document
|
|
57
|
-
* Common values: nofollow, noopener, noreferrer
|
|
58
|
-
* @default ''
|
|
59
|
-
*/
|
|
60
|
-
this.rel = '';
|
|
61
|
-
/**
|
|
62
|
-
* Sets the link to download the target URL instead of navigating
|
|
63
|
-
* Optional value specifies the suggested filename
|
|
64
|
-
* @default ''
|
|
65
|
-
*/
|
|
66
|
-
this.download = '';
|
|
67
44
|
/**
|
|
68
45
|
* When true, displays loading state and disables interaction
|
|
69
46
|
* @default false
|
|
@@ -111,12 +88,12 @@ class PlusLink extends Tailwind {
|
|
|
111
88
|
readonly: this.readonly,
|
|
112
89
|
notAllowed: this.disabled || this.readonly,
|
|
113
90
|
})}
|
|
114
|
-
href
|
|
115
|
-
target
|
|
116
|
-
rel
|
|
117
|
-
download
|
|
118
|
-
aria-disabled
|
|
119
|
-
aria-readonly
|
|
91
|
+
href=${this.href ?? ''}
|
|
92
|
+
?target=${target}
|
|
93
|
+
?rel=${rel}
|
|
94
|
+
?download=${this.download}
|
|
95
|
+
aria-disabled=${this.disabled}
|
|
96
|
+
aria-readonly=${this.readonly}
|
|
120
97
|
tabindex="${this.disabled ? '-1' : '0'}"
|
|
121
98
|
part="base"
|
|
122
99
|
@click="${this.handleClick}"
|
|
@@ -127,6 +104,14 @@ class PlusLink extends Tailwind {
|
|
|
127
104
|
`;
|
|
128
105
|
}
|
|
129
106
|
}
|
|
107
|
+
PlusLink.styles = [
|
|
108
|
+
...Tailwind.styles,
|
|
109
|
+
i `
|
|
110
|
+
:host {
|
|
111
|
+
display: inline-block;
|
|
112
|
+
}
|
|
113
|
+
`,
|
|
114
|
+
];
|
|
130
115
|
__decorate([
|
|
131
116
|
n({ type: String })
|
|
132
117
|
], PlusLink.prototype, "size", void 0);
|
package/custom-elements.json
CHANGED
|
@@ -2391,40 +2391,40 @@
|
|
|
2391
2391
|
"kind": "field",
|
|
2392
2392
|
"name": "href",
|
|
2393
2393
|
"type": {
|
|
2394
|
-
"text": "string"
|
|
2394
|
+
"text": "string | undefined"
|
|
2395
2395
|
},
|
|
2396
|
-
"default": "''",
|
|
2397
2396
|
"description": "The URL that the hyperlink points to",
|
|
2397
|
+
"default": "''",
|
|
2398
2398
|
"attribute": "href"
|
|
2399
2399
|
},
|
|
2400
2400
|
{
|
|
2401
2401
|
"kind": "field",
|
|
2402
2402
|
"name": "target",
|
|
2403
2403
|
"type": {
|
|
2404
|
-
"text": "string"
|
|
2404
|
+
"text": "string | undefined"
|
|
2405
2405
|
},
|
|
2406
|
-
"default": "''",
|
|
2407
2406
|
"description": "Specifies where to display the linked URL\nCommon values: _blank, _self, _parent, _top",
|
|
2407
|
+
"default": "''",
|
|
2408
2408
|
"attribute": "target"
|
|
2409
2409
|
},
|
|
2410
2410
|
{
|
|
2411
2411
|
"kind": "field",
|
|
2412
2412
|
"name": "rel",
|
|
2413
2413
|
"type": {
|
|
2414
|
-
"text": "string"
|
|
2414
|
+
"text": "string | undefined"
|
|
2415
2415
|
},
|
|
2416
|
-
"default": "''",
|
|
2417
2416
|
"description": "Specifies the relationship between the current document and the linked document\nCommon values: nofollow, noopener, noreferrer",
|
|
2417
|
+
"default": "''",
|
|
2418
2418
|
"attribute": "rel"
|
|
2419
2419
|
},
|
|
2420
2420
|
{
|
|
2421
2421
|
"kind": "field",
|
|
2422
2422
|
"name": "download",
|
|
2423
2423
|
"type": {
|
|
2424
|
-
"text": "string"
|
|
2424
|
+
"text": "string | undefined"
|
|
2425
2425
|
},
|
|
2426
|
-
"default": "''",
|
|
2427
2426
|
"description": "Sets the link to download the target URL instead of navigating\nOptional value specifies the suggested filename",
|
|
2427
|
+
"default": "''",
|
|
2428
2428
|
"attribute": "download"
|
|
2429
2429
|
},
|
|
2430
2430
|
{
|
|
@@ -2540,40 +2540,40 @@
|
|
|
2540
2540
|
{
|
|
2541
2541
|
"name": "href",
|
|
2542
2542
|
"type": {
|
|
2543
|
-
"text": "string"
|
|
2543
|
+
"text": "string | undefined"
|
|
2544
2544
|
},
|
|
2545
|
-
"default": "''",
|
|
2546
2545
|
"description": "The URL that the hyperlink points to",
|
|
2546
|
+
"default": "''",
|
|
2547
2547
|
"fieldName": "href",
|
|
2548
2548
|
"propName": "href"
|
|
2549
2549
|
},
|
|
2550
2550
|
{
|
|
2551
2551
|
"name": "target",
|
|
2552
2552
|
"type": {
|
|
2553
|
-
"text": "string"
|
|
2553
|
+
"text": "string | undefined"
|
|
2554
2554
|
},
|
|
2555
|
-
"default": "''",
|
|
2556
2555
|
"description": "Specifies where to display the linked URL\nCommon values: _blank, _self, _parent, _top",
|
|
2556
|
+
"default": "''",
|
|
2557
2557
|
"fieldName": "target",
|
|
2558
2558
|
"propName": "target"
|
|
2559
2559
|
},
|
|
2560
2560
|
{
|
|
2561
2561
|
"name": "rel",
|
|
2562
2562
|
"type": {
|
|
2563
|
-
"text": "string"
|
|
2563
|
+
"text": "string | undefined"
|
|
2564
2564
|
},
|
|
2565
|
-
"default": "''",
|
|
2566
2565
|
"description": "Specifies the relationship between the current document and the linked document\nCommon values: nofollow, noopener, noreferrer",
|
|
2566
|
+
"default": "''",
|
|
2567
2567
|
"fieldName": "rel",
|
|
2568
2568
|
"propName": "rel"
|
|
2569
2569
|
},
|
|
2570
2570
|
{
|
|
2571
2571
|
"name": "download",
|
|
2572
2572
|
"type": {
|
|
2573
|
-
"text": "string"
|
|
2573
|
+
"text": "string | undefined"
|
|
2574
2574
|
},
|
|
2575
|
-
"default": "''",
|
|
2576
2575
|
"description": "Sets the link to download the target URL instead of navigating\nOptional value specifies the suggested filename",
|
|
2576
|
+
"default": "''",
|
|
2577
2577
|
"fieldName": "download",
|
|
2578
2578
|
"propName": "download"
|
|
2579
2579
|
},
|
|
@@ -13,6 +13,7 @@ import Tailwind from '../base/tailwind-base';
|
|
|
13
13
|
* @csspart base - The component's base wrapper
|
|
14
14
|
*/
|
|
15
15
|
export default class PlusLink extends Tailwind {
|
|
16
|
+
static styles: import("lit").CSSResult[];
|
|
16
17
|
/**
|
|
17
18
|
* Controls the size of the link
|
|
18
19
|
* - sm: Small size with smaller text and spacing
|
|
@@ -36,25 +37,25 @@ export default class PlusLink extends Tailwind {
|
|
|
36
37
|
* The URL that the hyperlink points to
|
|
37
38
|
* @default ''
|
|
38
39
|
*/
|
|
39
|
-
href
|
|
40
|
+
href?: string;
|
|
40
41
|
/**
|
|
41
42
|
* Specifies where to display the linked URL
|
|
42
43
|
* Common values: _blank, _self, _parent, _top
|
|
43
44
|
* @default ''
|
|
44
45
|
*/
|
|
45
|
-
target
|
|
46
|
+
target?: string;
|
|
46
47
|
/**
|
|
47
48
|
* Specifies the relationship between the current document and the linked document
|
|
48
49
|
* Common values: nofollow, noopener, noreferrer
|
|
49
50
|
* @default ''
|
|
50
51
|
*/
|
|
51
|
-
rel
|
|
52
|
+
rel?: string;
|
|
52
53
|
/**
|
|
53
54
|
* Sets the link to download the target URL instead of navigating
|
|
54
55
|
* Optional value specifies the suggested filename
|
|
55
56
|
* @default ''
|
|
56
57
|
*/
|
|
57
|
-
download
|
|
58
|
+
download?: string;
|
|
58
59
|
/**
|
|
59
60
|
* When true, displays loading state and disables interaction
|
|
60
61
|
* @default false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/link/link.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAK7C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,QAAQ;IAC5C;;;;;;;OAOG;IAEH,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAa;IAEjD;;;OAGG;IAMH,QAAQ,UAAS;IAEjB;;;OAGG;IAMH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,IAAI,
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/link/link.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAK7C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,QAAQ;IAC5C,OAAgB,MAAM,4BAOpB;IAEF;;;;;;;OAOG;IAEH,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAa;IAEjD;;;OAGG;IAMH,QAAQ,UAAS;IAEjB;;;OAGG;IAMH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IAEH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAEH,OAAO,UAAS;IAEhB;;;;OAIG;IAEH,QAAQ,UAAS;IAEjB;;;;;;;OAOG;IAEH,SAAS,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IAEzC,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU;IAIT,MAAM;CAuChB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as __decorate, n } from '../../property-DiPQx9S3.js';
|
|
2
|
-
import { x } from '../../lit-element-ByzbtpGk.js';
|
|
2
|
+
import { i, x } from '../../lit-element-ByzbtpGk.js';
|
|
3
3
|
import Tailwind from '../base/tailwind-base.js';
|
|
4
4
|
import { linkStyle } from './link.style.js';
|
|
5
5
|
import { booleanConverter } from '../../utils/boolean-converter.js';
|
|
@@ -42,29 +42,6 @@ class PlusLink extends Tailwind {
|
|
|
42
42
|
* @default false
|
|
43
43
|
*/
|
|
44
44
|
this.readonly = false;
|
|
45
|
-
/**
|
|
46
|
-
* The URL that the hyperlink points to
|
|
47
|
-
* @default ''
|
|
48
|
-
*/
|
|
49
|
-
this.href = '';
|
|
50
|
-
/**
|
|
51
|
-
* Specifies where to display the linked URL
|
|
52
|
-
* Common values: _blank, _self, _parent, _top
|
|
53
|
-
* @default ''
|
|
54
|
-
*/
|
|
55
|
-
this.target = '';
|
|
56
|
-
/**
|
|
57
|
-
* Specifies the relationship between the current document and the linked document
|
|
58
|
-
* Common values: nofollow, noopener, noreferrer
|
|
59
|
-
* @default ''
|
|
60
|
-
*/
|
|
61
|
-
this.rel = '';
|
|
62
|
-
/**
|
|
63
|
-
* Sets the link to download the target URL instead of navigating
|
|
64
|
-
* Optional value specifies the suggested filename
|
|
65
|
-
* @default ''
|
|
66
|
-
*/
|
|
67
|
-
this.download = '';
|
|
68
45
|
/**
|
|
69
46
|
* When true, displays loading state and disables interaction
|
|
70
47
|
* @default false
|
|
@@ -112,12 +89,12 @@ class PlusLink extends Tailwind {
|
|
|
112
89
|
readonly: this.readonly,
|
|
113
90
|
notAllowed: this.disabled || this.readonly,
|
|
114
91
|
})}
|
|
115
|
-
href
|
|
116
|
-
target
|
|
117
|
-
rel
|
|
118
|
-
download
|
|
119
|
-
aria-disabled
|
|
120
|
-
aria-readonly
|
|
92
|
+
href=${this.href ?? ''}
|
|
93
|
+
?target=${target}
|
|
94
|
+
?rel=${rel}
|
|
95
|
+
?download=${this.download}
|
|
96
|
+
aria-disabled=${this.disabled}
|
|
97
|
+
aria-readonly=${this.readonly}
|
|
121
98
|
tabindex="${this.disabled ? '-1' : '0'}"
|
|
122
99
|
part="base"
|
|
123
100
|
@click="${this.handleClick}"
|
|
@@ -128,6 +105,14 @@ class PlusLink extends Tailwind {
|
|
|
128
105
|
`;
|
|
129
106
|
}
|
|
130
107
|
}
|
|
108
|
+
PlusLink.styles = [
|
|
109
|
+
...Tailwind.styles,
|
|
110
|
+
i `
|
|
111
|
+
:host {
|
|
112
|
+
display: inline-block;
|
|
113
|
+
}
|
|
114
|
+
`,
|
|
115
|
+
];
|
|
131
116
|
__decorate([
|
|
132
117
|
n({ type: String })
|
|
133
118
|
], PlusLink.prototype, "size", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../src/components/link/link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../src/components/link/link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE;;;;;;;;;;;;GAYG;AACH,MAAqB,QAAS,SAAQ,QAAQ;IAA9C;;QAUE;;;;;;;WAOG;QAEH,SAAI,GAAmC,SAAS,CAAC;QAEjD;;;WAGG;QAMH,aAAQ,GAAG,KAAK,CAAC;QAEjB;;;WAGG;QAMH,aAAQ,GAAG,KAAK,CAAC;QAiCjB;;;WAGG;QAEH,YAAO,GAAG,KAA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E,IAAI,EAAE,MAAM,EAAE,CAAC;2CACc;AA0D3C,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as t,u as e}from"./lit-element-
|
|
1
|
+
import{f as t,u as e}from"./lit-element-B3f5s1Hz.js";function r(t,e,r,o){var n,s=arguments.length,c=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(c=(s<3?n(c):s>3?n(e,r,c):n(e,r))||c);return s>3&&c&&Object.defineProperty(e,r,c),c}"function"==typeof SuppressedError&&SuppressedError;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
package/package.json
CHANGED
package/public/html/index.js
CHANGED
|
@@ -4821,29 +4821,6 @@ class PlusLink extends Tailwind {
|
|
|
4821
4821
|
* @default false
|
|
4822
4822
|
*/
|
|
4823
4823
|
this.readonly = false;
|
|
4824
|
-
/**
|
|
4825
|
-
* The URL that the hyperlink points to
|
|
4826
|
-
* @default ''
|
|
4827
|
-
*/
|
|
4828
|
-
this.href = '';
|
|
4829
|
-
/**
|
|
4830
|
-
* Specifies where to display the linked URL
|
|
4831
|
-
* Common values: _blank, _self, _parent, _top
|
|
4832
|
-
* @default ''
|
|
4833
|
-
*/
|
|
4834
|
-
this.target = '';
|
|
4835
|
-
/**
|
|
4836
|
-
* Specifies the relationship between the current document and the linked document
|
|
4837
|
-
* Common values: nofollow, noopener, noreferrer
|
|
4838
|
-
* @default ''
|
|
4839
|
-
*/
|
|
4840
|
-
this.rel = '';
|
|
4841
|
-
/**
|
|
4842
|
-
* Sets the link to download the target URL instead of navigating
|
|
4843
|
-
* Optional value specifies the suggested filename
|
|
4844
|
-
* @default ''
|
|
4845
|
-
*/
|
|
4846
|
-
this.download = '';
|
|
4847
4824
|
/**
|
|
4848
4825
|
* When true, displays loading state and disables interaction
|
|
4849
4826
|
* @default false
|
|
@@ -4891,12 +4868,12 @@ class PlusLink extends Tailwind {
|
|
|
4891
4868
|
readonly: this.readonly,
|
|
4892
4869
|
notAllowed: this.disabled || this.readonly,
|
|
4893
4870
|
})}
|
|
4894
|
-
href
|
|
4895
|
-
target
|
|
4896
|
-
rel
|
|
4897
|
-
download
|
|
4898
|
-
aria-disabled
|
|
4899
|
-
aria-readonly
|
|
4871
|
+
href=${this.href ?? ''}
|
|
4872
|
+
?target=${target}
|
|
4873
|
+
?rel=${rel}
|
|
4874
|
+
?download=${this.download}
|
|
4875
|
+
aria-disabled=${this.disabled}
|
|
4876
|
+
aria-readonly=${this.readonly}
|
|
4900
4877
|
tabindex="${this.disabled ? '-1' : '0'}"
|
|
4901
4878
|
part="base"
|
|
4902
4879
|
@click="${this.handleClick}"
|
|
@@ -4907,6 +4884,14 @@ class PlusLink extends Tailwind {
|
|
|
4907
4884
|
`;
|
|
4908
4885
|
}
|
|
4909
4886
|
}
|
|
4887
|
+
PlusLink.styles = [
|
|
4888
|
+
...Tailwind.styles,
|
|
4889
|
+
i$7 `
|
|
4890
|
+
:host {
|
|
4891
|
+
display: inline-block;
|
|
4892
|
+
}
|
|
4893
|
+
`,
|
|
4894
|
+
];
|
|
4910
4895
|
__decorate([
|
|
4911
4896
|
n$3({ type: String })
|
|
4912
4897
|
], PlusLink.prototype, "size", void 0);
|
package/public/react/index.d.ts
CHANGED
|
@@ -528,6 +528,7 @@ declare class PlusChip$1 extends Tailwind$1 {
|
|
|
528
528
|
* @csspart base - The component's base wrapper
|
|
529
529
|
*/
|
|
530
530
|
declare class PlusLink$1 extends Tailwind$1 {
|
|
531
|
+
static styles: lit.CSSResult[];
|
|
531
532
|
/**
|
|
532
533
|
* Controls the size of the link
|
|
533
534
|
* - sm: Small size with smaller text and spacing
|
|
@@ -551,25 +552,25 @@ declare class PlusLink$1 extends Tailwind$1 {
|
|
|
551
552
|
* The URL that the hyperlink points to
|
|
552
553
|
* @default ''
|
|
553
554
|
*/
|
|
554
|
-
href
|
|
555
|
+
href?: string;
|
|
555
556
|
/**
|
|
556
557
|
* Specifies where to display the linked URL
|
|
557
558
|
* Common values: _blank, _self, _parent, _top
|
|
558
559
|
* @default ''
|
|
559
560
|
*/
|
|
560
|
-
target
|
|
561
|
+
target?: string;
|
|
561
562
|
/**
|
|
562
563
|
* Specifies the relationship between the current document and the linked document
|
|
563
564
|
* Common values: nofollow, noopener, noreferrer
|
|
564
565
|
* @default ''
|
|
565
566
|
*/
|
|
566
|
-
rel
|
|
567
|
+
rel?: string;
|
|
567
568
|
/**
|
|
568
569
|
* Sets the link to download the target URL instead of navigating
|
|
569
570
|
* Optional value specifies the suggested filename
|
|
570
571
|
* @default ''
|
|
571
572
|
*/
|
|
572
|
-
download
|
|
573
|
+
download?: string;
|
|
573
574
|
/**
|
|
574
575
|
* When true, displays loading state and disables interaction
|
|
575
576
|
* @default false
|
package/public/react/index.js
CHANGED
|
@@ -4755,29 +4755,6 @@ let PlusLink$1 = class PlusLink extends Tailwind$1 {
|
|
|
4755
4755
|
* @default false
|
|
4756
4756
|
*/
|
|
4757
4757
|
this.readonly = false;
|
|
4758
|
-
/**
|
|
4759
|
-
* The URL that the hyperlink points to
|
|
4760
|
-
* @default ''
|
|
4761
|
-
*/
|
|
4762
|
-
this.href = '';
|
|
4763
|
-
/**
|
|
4764
|
-
* Specifies where to display the linked URL
|
|
4765
|
-
* Common values: _blank, _self, _parent, _top
|
|
4766
|
-
* @default ''
|
|
4767
|
-
*/
|
|
4768
|
-
this.target = '';
|
|
4769
|
-
/**
|
|
4770
|
-
* Specifies the relationship between the current document and the linked document
|
|
4771
|
-
* Common values: nofollow, noopener, noreferrer
|
|
4772
|
-
* @default ''
|
|
4773
|
-
*/
|
|
4774
|
-
this.rel = '';
|
|
4775
|
-
/**
|
|
4776
|
-
* Sets the link to download the target URL instead of navigating
|
|
4777
|
-
* Optional value specifies the suggested filename
|
|
4778
|
-
* @default ''
|
|
4779
|
-
*/
|
|
4780
|
-
this.download = '';
|
|
4781
4758
|
/**
|
|
4782
4759
|
* When true, displays loading state and disables interaction
|
|
4783
4760
|
* @default false
|
|
@@ -4825,12 +4802,12 @@ let PlusLink$1 = class PlusLink extends Tailwind$1 {
|
|
|
4825
4802
|
readonly: this.readonly,
|
|
4826
4803
|
notAllowed: this.disabled || this.readonly,
|
|
4827
4804
|
})}
|
|
4828
|
-
href
|
|
4829
|
-
target
|
|
4830
|
-
rel
|
|
4831
|
-
download
|
|
4832
|
-
aria-disabled
|
|
4833
|
-
aria-readonly
|
|
4805
|
+
href=${this.href ?? ''}
|
|
4806
|
+
?target=${target}
|
|
4807
|
+
?rel=${rel}
|
|
4808
|
+
?download=${this.download}
|
|
4809
|
+
aria-disabled=${this.disabled}
|
|
4810
|
+
aria-readonly=${this.readonly}
|
|
4834
4811
|
tabindex="${this.disabled ? '-1' : '0'}"
|
|
4835
4812
|
part="base"
|
|
4836
4813
|
@click="${this.handleClick}"
|
|
@@ -4841,6 +4818,14 @@ let PlusLink$1 = class PlusLink extends Tailwind$1 {
|
|
|
4841
4818
|
`;
|
|
4842
4819
|
}
|
|
4843
4820
|
};
|
|
4821
|
+
PlusLink$1.styles = [
|
|
4822
|
+
...Tailwind$1.styles,
|
|
4823
|
+
i$3$1 `
|
|
4824
|
+
:host {
|
|
4825
|
+
display: inline-block;
|
|
4826
|
+
}
|
|
4827
|
+
`,
|
|
4828
|
+
];
|
|
4844
4829
|
__decorate([
|
|
4845
4830
|
n$3({ type: String })
|
|
4846
4831
|
], PlusLink$1.prototype, "size", void 0);
|
|
@@ -250,16 +250,16 @@ export type PlusLinkProps = {
|
|
|
250
250
|
/** When true, the link becomes non-interactive but maintains normal styling */
|
|
251
251
|
readonly?: boolean;
|
|
252
252
|
/** The URL that the hyperlink points to */
|
|
253
|
-
href?: string;
|
|
253
|
+
href?: string | undefined;
|
|
254
254
|
/** Specifies where to display the linked URL
|
|
255
255
|
Common values: _blank, _self, _parent, _top */
|
|
256
|
-
target?: string;
|
|
256
|
+
target?: string | undefined;
|
|
257
257
|
/** Specifies the relationship between the current document and the linked document
|
|
258
258
|
Common values: nofollow, noopener, noreferrer */
|
|
259
|
-
rel?: string;
|
|
259
|
+
rel?: string | undefined;
|
|
260
260
|
/** Sets the link to download the target URL instead of navigating
|
|
261
261
|
Optional value specifies the suggested filename */
|
|
262
|
-
download?: string;
|
|
262
|
+
download?: string | undefined;
|
|
263
263
|
/** When true, displays loading state and disables interaction */
|
|
264
264
|
loading?: boolean;
|
|
265
265
|
/** When true, link opens in new tab with secure attributes
|
|
@@ -266,16 +266,16 @@ type PlusLinkProps = {
|
|
|
266
266
|
/** When true, the link becomes non-interactive but maintains normal styling */
|
|
267
267
|
readonly?: boolean;
|
|
268
268
|
/** The URL that the hyperlink points to */
|
|
269
|
-
href?: string;
|
|
269
|
+
href?: string | undefined;
|
|
270
270
|
/** Specifies where to display the linked URL
|
|
271
271
|
Common values: _blank, _self, _parent, _top */
|
|
272
|
-
target?: string;
|
|
272
|
+
target?: string | undefined;
|
|
273
273
|
/** Specifies the relationship between the current document and the linked document
|
|
274
274
|
Common values: nofollow, noopener, noreferrer */
|
|
275
|
-
rel?: string;
|
|
275
|
+
rel?: string | undefined;
|
|
276
276
|
/** Sets the link to download the target URL instead of navigating
|
|
277
277
|
Optional value specifies the suggested filename */
|
|
278
|
-
download?: string;
|
|
278
|
+
download?: string | undefined;
|
|
279
279
|
/** When true, displays loading state and disables interaction */
|
|
280
280
|
loading?: boolean;
|
|
281
281
|
/** When true, link opens in new tab with secure attributes
|
|
@@ -227,16 +227,16 @@ type PlusLinkProps = {
|
|
|
227
227
|
/** When true, the link becomes non-interactive but maintains normal styling */
|
|
228
228
|
readonly?: boolean;
|
|
229
229
|
/** The URL that the hyperlink points to */
|
|
230
|
-
href?: string;
|
|
230
|
+
href?: string | undefined;
|
|
231
231
|
/** Specifies where to display the linked URL
|
|
232
232
|
Common values: _blank, _self, _parent, _top */
|
|
233
|
-
target?: string;
|
|
233
|
+
target?: string | undefined;
|
|
234
234
|
/** Specifies the relationship between the current document and the linked document
|
|
235
235
|
Common values: nofollow, noopener, noreferrer */
|
|
236
|
-
rel?: string;
|
|
236
|
+
rel?: string | undefined;
|
|
237
237
|
/** Sets the link to download the target URL instead of navigating
|
|
238
238
|
Optional value specifies the suggested filename */
|
|
239
|
-
download?: string;
|
|
239
|
+
download?: string | undefined;
|
|
240
240
|
/** When true, displays loading state and disables interaction */
|
|
241
241
|
loading?: boolean;
|
|
242
242
|
/** When true, link opens in new tab with secure attributes
|
|
@@ -190,16 +190,16 @@ type PlusLinkProps = {
|
|
|
190
190
|
/** When true, the link becomes non-interactive but maintains normal styling */
|
|
191
191
|
readonly?: boolean;
|
|
192
192
|
/** The URL that the hyperlink points to */
|
|
193
|
-
href?: string;
|
|
193
|
+
href?: string | undefined;
|
|
194
194
|
/** Specifies where to display the linked URL
|
|
195
195
|
Common values: _blank, _self, _parent, _top */
|
|
196
|
-
target?: string;
|
|
196
|
+
target?: string | undefined;
|
|
197
197
|
/** Specifies the relationship between the current document and the linked document
|
|
198
198
|
Common values: nofollow, noopener, noreferrer */
|
|
199
|
-
rel?: string;
|
|
199
|
+
rel?: string | undefined;
|
|
200
200
|
/** Sets the link to download the target URL instead of navigating
|
|
201
201
|
Optional value specifies the suggested filename */
|
|
202
|
-
download?: string;
|
|
202
|
+
download?: string | undefined;
|
|
203
203
|
/** When true, displays loading state and disables interaction */
|
|
204
204
|
loading?: boolean;
|
|
205
205
|
/** When true, link opens in new tab with secure attributes
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@plusui/library",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -605,22 +605,22 @@
|
|
|
605
605
|
{
|
|
606
606
|
"name": "href",
|
|
607
607
|
"description": "The URL that the hyperlink points to",
|
|
608
|
-
"value": { "type": "string", "default": "''" }
|
|
608
|
+
"value": { "type": "string | undefined", "default": "''" }
|
|
609
609
|
},
|
|
610
610
|
{
|
|
611
611
|
"name": "target",
|
|
612
612
|
"description": "Specifies where to display the linked URL\nCommon values: _blank, _self, _parent, _top",
|
|
613
|
-
"value": { "type": "string", "default": "''" }
|
|
613
|
+
"value": { "type": "string | undefined", "default": "''" }
|
|
614
614
|
},
|
|
615
615
|
{
|
|
616
616
|
"name": "rel",
|
|
617
617
|
"description": "Specifies the relationship between the current document and the linked document\nCommon values: nofollow, noopener, noreferrer",
|
|
618
|
-
"value": { "type": "string", "default": "''" }
|
|
618
|
+
"value": { "type": "string | undefined", "default": "''" }
|
|
619
619
|
},
|
|
620
620
|
{
|
|
621
621
|
"name": "download",
|
|
622
622
|
"description": "Sets the link to download the target URL instead of navigating\nOptional value specifies the suggested filename",
|
|
623
|
-
"value": { "type": "string", "default": "''" }
|
|
623
|
+
"value": { "type": "string | undefined", "default": "''" }
|
|
624
624
|
},
|
|
625
625
|
{
|
|
626
626
|
"name": "loading",
|
|
@@ -673,22 +673,22 @@
|
|
|
673
673
|
{
|
|
674
674
|
"name": "href",
|
|
675
675
|
"description": "The URL that the hyperlink points to",
|
|
676
|
-
"type": "string"
|
|
676
|
+
"type": "string | undefined"
|
|
677
677
|
},
|
|
678
678
|
{
|
|
679
679
|
"name": "target",
|
|
680
680
|
"description": "Specifies where to display the linked URL\nCommon values: _blank, _self, _parent, _top",
|
|
681
|
-
"type": "string"
|
|
681
|
+
"type": "string | undefined"
|
|
682
682
|
},
|
|
683
683
|
{
|
|
684
684
|
"name": "rel",
|
|
685
685
|
"description": "Specifies the relationship between the current document and the linked document\nCommon values: nofollow, noopener, noreferrer",
|
|
686
|
-
"type": "string"
|
|
686
|
+
"type": "string | undefined"
|
|
687
687
|
},
|
|
688
688
|
{
|
|
689
689
|
"name": "download",
|
|
690
690
|
"description": "Sets the link to download the target URL instead of navigating\nOptional value specifies the suggested filename",
|
|
691
|
-
"type": "string"
|
|
691
|
+
"type": "string | undefined"
|
|
692
692
|
},
|
|
693
693
|
{
|
|
694
694
|
"name": "loading",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|