@plusui/library 0.1.7 → 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.
@@ -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="${this.href}"
115
- ?target="${target}"
116
- ?rel="${rel}"
117
- ?download="${this.download}"
118
- ?aria-disabled="${this.disabled}"
119
- ?aria-readonly="${this.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}"
@@ -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
  },
@@ -37,25 +37,25 @@ export default class PlusLink extends Tailwind {
37
37
  * The URL that the hyperlink points to
38
38
  * @default ''
39
39
  */
40
- href: string;
40
+ href?: string;
41
41
  /**
42
42
  * Specifies where to display the linked URL
43
43
  * Common values: _blank, _self, _parent, _top
44
44
  * @default ''
45
45
  */
46
- target: string;
46
+ target?: string;
47
47
  /**
48
48
  * Specifies the relationship between the current document and the linked document
49
49
  * Common values: nofollow, noopener, noreferrer
50
50
  * @default ''
51
51
  */
52
- rel: string;
52
+ rel?: string;
53
53
  /**
54
54
  * Sets the link to download the target URL instead of navigating
55
55
  * Optional value specifies the suggested filename
56
56
  * @default ''
57
57
  */
58
- download: string;
58
+ download?: string;
59
59
  /**
60
60
  * When true, displays loading state and disables interaction
61
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,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,SAAM;IAEV;;;;OAIG;IAEH,MAAM,SAAM;IAEZ;;;;OAIG;IAEH,GAAG,SAAM;IAET;;;;OAIG;IAEH,QAAQ,SAAM;IAEd;;;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
+ {"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"}
@@ -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="${this.href}"
116
- ?target="${target}"
117
- ?rel="${rel}"
118
- ?download="${this.download}"
119
- ?aria-disabled="${this.disabled}"
120
- ?aria-readonly="${this.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}"
@@ -1 +1 @@
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;QAE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,CAAC,MAAM;IAClB,GAAG,CAAA;;;;KAIF;CACF,AAPqB,CAOpB;eARiB,QAAQ;AAmB3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sCACsB;AAWjD;IALC,QAAQ,CAAC;QACR,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,gBAAgB;KAC5B,CAAC;0CACe;AAWjB;IALC,QAAQ,CAAC;QACR,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,gBAAgB;KAC5B,CAAC;0CACe;AAOjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sCACb;AAQd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACX;AAQhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCACd;AAQb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACT;AAOlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCACxD;AAQhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CACvD;AAWjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACc;AA0D3C,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import{E as t}from"./lit-element-DnJ0sDh6.js";
1
+ import{E as t}from"./lit-element-B3f5s1Hz.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2018 Google LLC
@@ -1,4 +1,4 @@
1
- import{T as e,E as t}from"./lit-element-DnJ0sDh6.js";import{e as r,i,t as n}from"./directive-CfWt2y3W.js";
1
+ import{T as e,E as t}from"./lit-element-B3f5s1Hz.js";import{e as r,i,t as n}from"./directive-CXHWwTfw.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2020 Google LLC
@@ -1,4 +1,4 @@
1
- import{f as t,u as e}from"./lit-element-DnJ0sDh6.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;
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
@@ -1,4 +1,4 @@
1
- import{e as r}from"./base-D0AOfeIR.js";
1
+ import{e as r}from"./base-CWTcY3O3.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- import{e}from"./base-D0AOfeIR.js";
1
+ import{e}from"./base-CWTcY3O3.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2021 Google LLC
@@ -1,4 +1,4 @@
1
- import{n as t}from"./property-CEzGATrA.js";
1
+ import{n as t}from"./property-DLmwa-N3.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- import{T as t}from"./lit-element-DnJ0sDh6.js";import{e,i as r,t as s}from"./directive-CfWt2y3W.js";
1
+ import{T as t}from"./lit-element-B3f5s1Hz.js";import{e,i as r,t as s}from"./directive-CXHWwTfw.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2018 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusui/library",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Plus UI Core is a great library that offers many features that you can use in any framework without any problems.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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="${this.href}"
4895
- ?target="${target}"
4896
- ?rel="${rel}"
4897
- ?download="${this.download}"
4898
- ?aria-disabled="${this.disabled}"
4899
- ?aria-readonly="${this.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}"
@@ -552,25 +552,25 @@ declare class PlusLink$1 extends Tailwind$1 {
552
552
  * The URL that the hyperlink points to
553
553
  * @default ''
554
554
  */
555
- href: string;
555
+ href?: string;
556
556
  /**
557
557
  * Specifies where to display the linked URL
558
558
  * Common values: _blank, _self, _parent, _top
559
559
  * @default ''
560
560
  */
561
- target: string;
561
+ target?: string;
562
562
  /**
563
563
  * Specifies the relationship between the current document and the linked document
564
564
  * Common values: nofollow, noopener, noreferrer
565
565
  * @default ''
566
566
  */
567
- rel: string;
567
+ rel?: string;
568
568
  /**
569
569
  * Sets the link to download the target URL instead of navigating
570
570
  * Optional value specifies the suggested filename
571
571
  * @default ''
572
572
  */
573
- download: string;
573
+ download?: string;
574
574
  /**
575
575
  * When true, displays loading state and disables interaction
576
576
  * @default false
@@ -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="${this.href}"
4829
- ?target="${target}"
4830
- ?rel="${rel}"
4831
- ?download="${this.download}"
4832
- ?aria-disabled="${this.disabled}"
4833
- ?aria-readonly="${this.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}"
@@ -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.6",
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