@florid-kit/components 0.3.6 → 0.3.7
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/components/link.d.ts +2 -2
- package/index.js +5 -5
- package/index.mjs +5 -5
- package/package.json +1 -1
package/components/link.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type Template = "standard" | "discret" | "review";
|
|
4
4
|
type Inverse = true | false;
|
|
5
5
|
type endIcon = true | false;
|
|
6
6
|
type reverseEndIcon = true | false;
|
|
@@ -8,7 +8,7 @@ export declare class OccitaneLink extends LitElement {
|
|
|
8
8
|
static styles: import('lit').CSSResult;
|
|
9
9
|
href: string;
|
|
10
10
|
target: "_blank" | "_parent" | "_self" | "_top" | "";
|
|
11
|
-
|
|
11
|
+
template: Template;
|
|
12
12
|
inverse: Inverse;
|
|
13
13
|
endIcon: endIcon;
|
|
14
14
|
reverseEndIcon: reverseEndIcon;
|
package/index.js
CHANGED
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
}
|
|
394
|
-
`;A([c({type:String,reflect:!0})],b.prototype,"bgstyle",2);A([c({type:String,reflect:!0})],b.prototype,"size",2);A([c({type:String,reflect:!0})],b.prototype,"status",2);A([c({type:String,reflect:!0})],b.prototype,"type",2);A([c({type:String})],b.prototype,"strokewidth",2);A([c({type:String})],b.prototype,"icon",2);A([c({type:Boolean,reflect:!0})],b.prototype,"disabled",2);b=A([Z("o-icon-button")],b);var de=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,k=(i,t,e,s)=>{for(var r=s>1?void 0:s?ue(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&de(t,e,r),r};let $=class extends w{constructor(){super(...arguments),this.href="",this.target="",this.
|
|
394
|
+
`;A([c({type:String,reflect:!0})],b.prototype,"bgstyle",2);A([c({type:String,reflect:!0})],b.prototype,"size",2);A([c({type:String,reflect:!0})],b.prototype,"status",2);A([c({type:String,reflect:!0})],b.prototype,"type",2);A([c({type:String})],b.prototype,"strokewidth",2);A([c({type:String})],b.prototype,"icon",2);A([c({type:Boolean,reflect:!0})],b.prototype,"disabled",2);b=A([Z("o-icon-button")],b);var de=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,k=(i,t,e,s)=>{for(var r=s>1?void 0:s?ue(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&de(t,e,r),r};let $=class extends w{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}render(){return g`
|
|
395
395
|
<a href="${this.href}" target="${this.target}">
|
|
396
396
|
${this.endIcon&&this.reverseEndIcon?g`
|
|
397
397
|
<o-icon-button
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
`:null}
|
|
415
415
|
</a>
|
|
416
416
|
`}};$.styles=I`
|
|
417
|
-
:host([
|
|
417
|
+
:host([template="standard"]) a {
|
|
418
418
|
color: var(--color-content-action-secondary);
|
|
419
419
|
font-size: var(--font-size-200);
|
|
420
420
|
font-weight: var(--font-weight-400);
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
font-family: var(--font-family-loccitane-serif);
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
:host([
|
|
426
|
+
:host([template="discret"]) a {
|
|
427
427
|
color: var(--color-content-action-secondary);
|
|
428
428
|
font-size: var(--font-size-100);
|
|
429
429
|
font-weight: var(--font-weight-400);
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
font-family: var(--font-family-loccitane-sans);
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
:host([
|
|
435
|
+
:host([template="review"]) a {
|
|
436
436
|
color: var(--color-content-action-secondary);
|
|
437
437
|
font-size: var(--font-size-100);
|
|
438
438
|
font-weight: var(--font-weight-500);
|
|
@@ -510,4 +510,4 @@
|
|
|
510
510
|
opacity: 0;
|
|
511
511
|
}
|
|
512
512
|
/* End of underline effect */
|
|
513
|
-
`;k([c({type:String})],$.prototype,"href",2);k([c({type:String})],$.prototype,"target",2);k([c({type:String,reflect:!0})],$.prototype,"
|
|
513
|
+
`;k([c({type:String})],$.prototype,"href",2);k([c({type:String})],$.prototype,"target",2);k([c({type:String,reflect:!0})],$.prototype,"template",2);k([c({type:Boolean,reflect:!0})],$.prototype,"inverse",2);k([c({type:Boolean,reflect:!0})],$.prototype,"endIcon",2);k([c({type:Boolean,reflect:!0})],$.prototype,"reverseEndIcon",2);$=k([Z("o-link")],$);
|
package/index.mjs
CHANGED
|
@@ -1207,7 +1207,7 @@ var de = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, k = (i, t,
|
|
|
1207
1207
|
};
|
|
1208
1208
|
let $ = class extends w {
|
|
1209
1209
|
constructor() {
|
|
1210
|
-
super(...arguments), this.href = "", this.target = "", this.
|
|
1210
|
+
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1211
1211
|
}
|
|
1212
1212
|
render() {
|
|
1213
1213
|
return g`
|
|
@@ -1236,7 +1236,7 @@ let $ = class extends w {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|
|
1238
1238
|
$.styles = I`
|
|
1239
|
-
:host([
|
|
1239
|
+
:host([template="standard"]) a {
|
|
1240
1240
|
color: var(--color-content-action-secondary);
|
|
1241
1241
|
font-size: var(--font-size-200);
|
|
1242
1242
|
font-weight: var(--font-weight-400);
|
|
@@ -1245,7 +1245,7 @@ $.styles = I`
|
|
|
1245
1245
|
font-family: var(--font-family-loccitane-serif);
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
|
-
:host([
|
|
1248
|
+
:host([template="discret"]) a {
|
|
1249
1249
|
color: var(--color-content-action-secondary);
|
|
1250
1250
|
font-size: var(--font-size-100);
|
|
1251
1251
|
font-weight: var(--font-weight-400);
|
|
@@ -1254,7 +1254,7 @@ $.styles = I`
|
|
|
1254
1254
|
font-family: var(--font-family-loccitane-sans);
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
|
-
:host([
|
|
1257
|
+
:host([template="review"]) a {
|
|
1258
1258
|
color: var(--color-content-action-secondary);
|
|
1259
1259
|
font-size: var(--font-size-100);
|
|
1260
1260
|
font-weight: var(--font-weight-500);
|
|
@@ -1341,7 +1341,7 @@ k([
|
|
|
1341
1341
|
], $.prototype, "target", 2);
|
|
1342
1342
|
k([
|
|
1343
1343
|
c({ type: String, reflect: !0 })
|
|
1344
|
-
], $.prototype, "
|
|
1344
|
+
], $.prototype, "template", 2);
|
|
1345
1345
|
k([
|
|
1346
1346
|
c({ type: Boolean, reflect: !0 })
|
|
1347
1347
|
], $.prototype, "inverse", 2);
|