@jotyping/jap-ds 0.1.4-alpha → 0.1.5-alpha

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.
@@ -1,5 +1,5 @@
1
- import { unsafeCSS as u, LitElement as a, html as f } from "/Users/jo/Documents/dev/Web/026-jap-ds/jap/node_modules/lit/index.js";
2
- import { property as n, customElement as c } from "/Users/jo/Documents/dev/Web/026-jap-ds/jap/node_modules/lit/decorators.js";
1
+ import { unsafeCSS as a, LitElement as u, html as n } from "/Users/jo/Documents/dev/Web/026-jap-ds/jap/node_modules/lit/index.js";
2
+ import { property as i, customElement as y } from "/Users/jo/Documents/dev/Web/026-jap-ds/jap/node_modules/lit/decorators.js";
3
3
  import "../flash/jap-flash.js";
4
4
  import "../footer/jap-footer.js";
5
5
  import "../header/jap-header.js";
@@ -11,35 +11,41 @@ import "../link/jap-link.js";
11
11
  import "../modal/jap-modal.js";
12
12
  import "../navigation/jap-navigation.js";
13
13
  import "../tag/jap-tag.js";
14
- import y from "./jap-button.scss.js";
15
- var v = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, i = (l, e, p, o) => {
16
- for (var t = o > 1 ? void 0 : o ? _(e, p) : e, m = l.length - 1, s; m >= 0; m--)
17
- (s = l[m]) && (t = (o ? s(e, p, t) : s(t)) || t);
18
- return o && t && v(e, p, t), t;
14
+ import c from "./jap-button.scss.js";
15
+ var h = Object.defineProperty, v = Object.getOwnPropertyDescriptor, r = (f, o, s, p) => {
16
+ for (var t = p > 1 ? void 0 : p ? v(o, s) : o, m = f.length - 1, l; m >= 0; m--)
17
+ (l = f[m]) && (t = (p ? l(o, s, t) : l(t)) || t);
18
+ return p && t && h(o, s, t), t;
19
19
  };
20
- let r = class extends a {
20
+ let e = class extends u {
21
21
  constructor() {
22
- super(...arguments), this.type = "primary", this.active = !1;
22
+ super(...arguments), this.type = "primary", this.active = !1, this.isLink = !1, this.href = "";
23
23
  }
24
24
  render() {
25
- return f`
26
- <button class=${this.type}>
27
- <slot></slot>
28
- </button>
25
+ return n`
26
+ ${this.isLink ? n`<a href="" target="_self"></a>` : n`<button class=${this.type}>
27
+ <slot></slot>
28
+ </button>`}
29
29
  `;
30
30
  }
31
31
  };
32
- r.styles = u(y);
33
- i([
34
- n({ type: String, reflect: !0 })
35
- ], r.prototype, "type", 2);
36
- i([
37
- n({ type: Boolean, reflect: !0 })
38
- ], r.prototype, "active", 2);
39
- r = i([
40
- c("jap-button")
41
- ], r);
32
+ e.styles = a(c);
33
+ r([
34
+ i({ type: String, reflect: !0 })
35
+ ], e.prototype, "type", 2);
36
+ r([
37
+ i({ type: Boolean, reflect: !0 })
38
+ ], e.prototype, "active", 2);
39
+ r([
40
+ i({ type: Boolean, reflect: !0 })
41
+ ], e.prototype, "isLink", 2);
42
+ r([
43
+ i({ type: String, reflect: !0 })
44
+ ], e.prototype, "href", 2);
45
+ e = r([
46
+ y("jap-button")
47
+ ], e);
42
48
  export {
43
- r as JapButton
49
+ e as JapButton
44
50
  };
45
51
  //# sourceMappingURL=jap-button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jap-button.js","sources":["../../../src/components/button/jap-button.ts"],"sourcesContent":["import { LitElement, html, unsafeCSS } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport \"@/components\";\nimport style from \"./jap-button.scss?inline\";\n\n@customElement(\"jap-button\")\nexport class JapButton extends LitElement {\n static styles = unsafeCSS(style);\n\n /**\n * Button type, can be \"primary\" or \"secondary\".\n */\n @property({ type: String, reflect: true })\n type: \"primary\" | \"secondary\" = \"primary\";\n\n /**\n * Active state\n */\n @property({ type: Boolean, reflect: true })\n active = false;\n\n render() {\n return html`\n <button class=${this.type}>\n <slot></slot>\n </button>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"jap-button\": JapButton;\n }\n}\n"],"names":["JapButton","LitElement","html","unsafeCSS","style","__decorateClass","property","customElement"],"mappings":";;;;;;;;;;;;;;;;;;;AAMO,IAAMA,IAAN,cAAwBC,EAAW;AAAA,EAAnC,cAAA;AAAA,UAAA,GAAA,SAAA,GAOL,KAAA,OAAgC,WAMhC,KAAA,SAAS;AAAA,EAAA;AAAA,EAET,SAAS;AACP,WAAOC;AAAA,sBACW,KAAK,IAAI;AAAA;AAAA;AAAA;AAAA,EAI7B;AACF;AAtBaF,EACJ,SAASG,EAAUC,CAAK;AAM/BC,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GAN9BN,EAOX,WAAA,QAAA,CAAA;AAMAK,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GAZ/BN,EAaX,WAAA,UAAA,CAAA;AAbWA,IAANK,EAAA;AAAA,EADNE,EAAc,YAAY;AAAA,GACdP,CAAA;"}
1
+ {"version":3,"file":"jap-button.js","sources":["../../../src/components/button/jap-button.ts"],"sourcesContent":["import { LitElement, html, unsafeCSS } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport \"@/components\";\nimport style from \"./jap-button.scss?inline\";\n\n@customElement(\"jap-button\")\nexport class JapButton extends LitElement {\n static styles = unsafeCSS(style);\n\n /**\n * Button type, can be \"primary\" or \"secondary\".\n */\n @property({ type: String, reflect: true })\n type: \"primary\" | \"secondary\" = \"primary\";\n\n /**\n * Active state\n */\n @property({ type: Boolean, reflect: true })\n active = false;\n\n /**\n * Active state\n */\n @property({ type: Boolean, reflect: true })\n isLink = false;\n\n /**\n * Href in isLink case\n */\n @property({ type: String, reflect: true })\n href = \"\";\n\n render() {\n return html`\n ${this.isLink\n ? html`<a href=\"\" target=\"_self\"></a>`\n : html`<button class=${this.type}>\n <slot></slot>\n </button>`}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"jap-button\": JapButton;\n }\n}\n"],"names":["JapButton","LitElement","html","unsafeCSS","style","__decorateClass","property","customElement"],"mappings":";;;;;;;;;;;;;;;;;;;AAMO,IAAMA,IAAN,cAAwBC,EAAW;AAAA,EAAnC,cAAA;AAAA,UAAA,GAAA,SAAA,GAOL,KAAA,OAAgC,WAMhC,KAAA,SAAS,IAMT,KAAA,SAAS,IAMT,KAAA,OAAO;AAAA,EAAA;AAAA,EAEP,SAAS;AACP,WAAOC;AAAA,QACH,KAAK,SACHA,oCACAA,kBAAqB,KAAK,IAAI;AAAA;AAAA,oBAEpB;AAAA;AAAA,EAElB;AACF;AApCaF,EACJ,SAASG,EAAUC,CAAK;AAM/BC,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GAN9BN,EAOX,WAAA,QAAA,CAAA;AAMAK,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GAZ/BN,EAaX,WAAA,UAAA,CAAA;AAMAK,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GAlB/BN,EAmBX,WAAA,UAAA,CAAA;AAMAK,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GAxB9BN,EAyBX,WAAA,QAAA,CAAA;AAzBWA,IAANK,EAAA;AAAA,EADNE,EAAc,YAAY;AAAA,GACdP,CAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jotyping/jap-ds",
3
- "version": "0.1.4-alpha",
3
+ "version": "0.1.5-alpha",
4
4
  "description": "jap design system",
5
5
  "author": "Johannes Pfleghar",
6
6
  "homepage": "https://www.johannespfleghar.de",