@jotyping/jap-ds 0.1.7-alpha → 0.1.9-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,4 +1,4 @@
1
- const o = '@font-face{font-family:Satoshi-Regular;src:url(/assets/Satoshi-Regular.woff2) format("woff2"),url(/assets/Satoshi-Regular.woff) format("woff");font-weight:400;font-display:swap;font-style:normal}@font-face{font-family:Satoshi-Italic;src:url(/assets/Satoshi-Italic.woff2) format("woff2"),url(/assets/Satoshi-Italic.woff) format("woff");font-weight:400;font-display:swap;font-style:italic}@font-face{font-family:Satoshi-Bold;src:url(/assets/Satoshi-Bold.woff2) format("woff2"),url(/assets/Satoshi-Bold.woff) format("woff");font-weight:700;font-display:swap;font-style:normal}@font-face{font-family:Satoshi-Black;src:url(/assets/Satoshi-Black.woff2) format("woff2"),url(/assets/Satoshi-Black.woff) format("woff");font-weight:900;font-display:swap;font-style:normal}:host{display:inline-block}:host([active]) button.primary{color:#3a3a3a;background-color:#fff}:host([active]) button.secondary{color:#3a3a3a;background-color:#fff;outline:3px solid #3a3a3a;outline-offset:-3px}:host([active]) button.secondary:hover{outline:4px solid #3a3a3a;outline-offset:-4px}a{display:flex;flex-direction:row;align-items:center;text-decoration:none}button,a{font-family:Satoshi-Bold,sans-serif;font-size:24px;line-height:42px;padding:0 20px;border-radius:28px;cursor:pointer;transition:background-color .3s;height:56px;border:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}button.primary,a.primary{color:#3a3a3a;background-color:#fff;outline:3px solid #3a3a3a;outline-offset:-3px}button.primary:hover,a.primary:hover{outline:4px solid #3a3a3a;outline-offset:-4px}button.secondary,a.secondary{color:#3a3a3a;background-color:#fff;outline:1px solid #f3f3f3;outline-offset:-1px}button.secondary:hover,a.secondary:hover{outline:3px solid #f3f3f3;outline-offset:-3px}';
1
+ const o = '@font-face{font-family:Satoshi-Regular;src:url(/assets/Satoshi-Regular.woff2) format("woff2"),url(/assets/Satoshi-Regular.woff) format("woff");font-weight:400;font-display:swap;font-style:normal}@font-face{font-family:Satoshi-Italic;src:url(/assets/Satoshi-Italic.woff2) format("woff2"),url(/assets/Satoshi-Italic.woff) format("woff");font-weight:400;font-display:swap;font-style:italic}@font-face{font-family:Satoshi-Bold;src:url(/assets/Satoshi-Bold.woff2) format("woff2"),url(/assets/Satoshi-Bold.woff) format("woff");font-weight:700;font-display:swap;font-style:normal}@font-face{font-family:Satoshi-Black;src:url(/assets/Satoshi-Black.woff2) format("woff2"),url(/assets/Satoshi-Black.woff) format("woff");font-weight:900;font-display:swap;font-style:normal}:host{display:inline-block}:host([active]) button.primary,:host([active]) a.primary{color:#3a3a3a;background-color:#fff}:host([active]) button.secondary,:host([active]) a.secondary{color:#3a3a3a;background-color:#fff;outline:3px solid #3a3a3a;outline-offset:-3px}:host([active]) button.secondary:hover,:host([active]) a.secondary:hover{outline:4px solid #3a3a3a;outline-offset:-4px}a{display:flex;flex-direction:row;align-items:center;text-decoration:none}button,a{font-family:Satoshi-Bold,sans-serif;font-size:24px;line-height:42px;padding:0 20px;border-radius:28px;cursor:pointer;transition:background-color .3s;height:56px;border:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}button.primary,a.primary{color:#3a3a3a;background-color:#fff;outline:3px solid #3a3a3a;outline-offset:-3px}button.primary:hover,a.primary:hover{outline:4px solid #3a3a3a;outline-offset:-4px}button.secondary,a.secondary{color:#3a3a3a;background-color:#fff;outline:1px solid #f3f3f3;outline-offset:-1px}button.secondary:hover,a.secondary:hover{outline:3px solid #f3f3f3;outline-offset:-3px}';
2
2
  export {
3
3
  o as default
4
4
  };
@@ -47,9 +47,6 @@ let s = class extends u(n) {
47
47
  })
48
48
  ));
49
49
  }
50
- firstUpdated() {
51
- this.setActiveItem(this.items[0]);
52
- }
53
50
  render() {
54
51
  const t = {
55
52
  "navi-wrapper": !0,
@@ -1 +1 @@
1
- {"version":3,"file":"jap-navigation.js","sources":["../../../src/components/navigation/jap-navigation.ts"],"sourcesContent":["import { LitElement, html, unsafeCSS } from \"lit\";\nimport { customElement, queryAssignedElements } from \"lit/decorators.js\";\nimport style from \"./jap-navigation.scss?inline\";\nimport { SignalWatcher } from \"@lit-labs/signals\";\nimport { breakpoint } from \"@/stores/breakpoint-store\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { JapButton } from \"@/components/button/jap-button\";\nimport \"@/components\";\n\n@customElement(\"jap-navigation\")\nexport class JapNavigation extends SignalWatcher(LitElement) {\n static styles = unsafeCSS(style);\n\n /**\n * Nav items\n */\n @queryAssignedElements({ flatten: true })\n readonly items!: JapButton[];\n\n /**\n * Get items\n */\n getActiveItem() {\n return this.items.find((item) => item.active) ?? null;\n }\n\n /**\n * Set items\n */\n setActiveItem(activeItem: JapButton) {\n for (const item of this.items) {\n item.active = item === activeItem;\n }\n }\n\n /**\n * Handle click\n */\n private async handleClick(event: Event) {\n const item = event.target as JapButton;\n if (event.defaultPrevented || item.active) return;\n this.setActiveItem(item);\n this.dispatchEvent(\n new CustomEvent(\"jap-navigation-click\", {\n detail: { index: this.items.indexOf(item) },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n firstUpdated(): void {\n this.setActiveItem(this.items[0]);\n }\n\n render() {\n const naviWrapperClass = {\n \"navi-wrapper\": true,\n [breakpoint.get()]: true,\n };\n\n return html`\n <div class=${classMap(naviWrapperClass)}>\n <slot @click=${this.handleClick}></slot>\n <div class=\"border-slider\"></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"jap-navigation\": JapNavigation;\n }\n}\n"],"names":["JapNavigation","SignalWatcher","LitElement","item","activeItem","event","naviWrapperClass","breakpoint","html","classMap","unsafeCSS","style","__decorateClass","queryAssignedElements","customElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAUO,IAAMA,IAAN,cAA4BC,EAAcC,CAAU,EAAE;AAAA;AAAA;AAAA;AAAA,EAY3D,gBAAgB;AACd,WAAO,KAAK,MAAM,KAAK,CAACC,MAASA,EAAK,MAAM,KAAK;AAAA,EACnD;AAAA;AAAA;AAAA;AAAA,EAKA,cAAcC,GAAuB;AACnC,eAAWD,KAAQ,KAAK;AACtB,MAAAA,EAAK,SAASA,MAASC;AAAA,EAE3B;AAAA;AAAA;AAAA;AAAA,EAKA,MAAc,YAAYC,GAAc;AACtC,UAAMF,IAAOE,EAAM;AACnB,IAAIA,EAAM,oBAAoBF,EAAK,WACnC,KAAK,cAAcA,CAAI,GACvB,KAAK;AAAA,MACH,IAAI,YAAY,wBAAwB;AAAA,QACtC,QAAQ,EAAE,OAAO,KAAK,MAAM,QAAQA,CAAI,EAAA;AAAA,QACxC,SAAS;AAAA,QACT,UAAU;AAAA,MAAA,CACX;AAAA,IAAA;AAAA,EAEL;AAAA,EAEA,eAAqB;AACnB,SAAK,cAAc,KAAK,MAAM,CAAC,CAAC;AAAA,EAClC;AAAA,EAEA,SAAS;AACP,UAAMG,IAAmB;AAAA,MACvB,gBAAgB;AAAA,MAChB,CAACC,EAAW,KAAK,GAAG;AAAA,IAAA;AAGtB,WAAOC;AAAA,mBACQC,EAASH,CAAgB,CAAC;AAAA,uBACtB,KAAK,WAAW;AAAA;AAAA;AAAA;AAAA,EAIrC;AACF;AA1DaN,EACJ,SAASU,EAAUC,CAAK;AAMtBC,EAAA;AAAA,EADRC,EAAsB,EAAE,SAAS,GAAA,CAAM;AAAA,GAN7Bb,EAOF,WAAA,SAAA,CAAA;AAPEA,IAANY,EAAA;AAAA,EADNE,EAAc,gBAAgB;AAAA,GAClBd,CAAA;"}
1
+ {"version":3,"file":"jap-navigation.js","sources":["../../../src/components/navigation/jap-navigation.ts"],"sourcesContent":["import { LitElement, html, unsafeCSS } from \"lit\";\nimport { customElement, queryAssignedElements } from \"lit/decorators.js\";\nimport style from \"./jap-navigation.scss?inline\";\nimport { SignalWatcher } from \"@lit-labs/signals\";\nimport { breakpoint } from \"@/stores/breakpoint-store\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { JapButton } from \"@/components/button/jap-button\";\nimport \"@/components\";\n\n@customElement(\"jap-navigation\")\nexport class JapNavigation extends SignalWatcher(LitElement) {\n static styles = unsafeCSS(style);\n\n /**\n * Nav items\n */\n @queryAssignedElements({ flatten: true })\n readonly items!: JapButton[];\n\n /**\n * Get items\n */\n getActiveItem() {\n return this.items.find((item) => item.active) ?? null;\n }\n\n /**\n * Set items\n */\n setActiveItem(activeItem: JapButton) {\n for (const item of this.items) {\n item.active = item === activeItem;\n }\n }\n\n /**\n * Handle click\n */\n private async handleClick(event: Event) {\n const item = event.target as JapButton;\n if (event.defaultPrevented || item.active) return;\n this.setActiveItem(item);\n this.dispatchEvent(\n new CustomEvent(\"jap-navigation-click\", {\n detail: { index: this.items.indexOf(item) },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n render() {\n const naviWrapperClass = {\n \"navi-wrapper\": true,\n [breakpoint.get()]: true,\n };\n\n return html`\n <div class=${classMap(naviWrapperClass)}>\n <slot @click=${this.handleClick}></slot>\n <div class=\"border-slider\"></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"jap-navigation\": JapNavigation;\n }\n}\n"],"names":["JapNavigation","SignalWatcher","LitElement","item","activeItem","event","naviWrapperClass","breakpoint","html","classMap","unsafeCSS","style","__decorateClass","queryAssignedElements","customElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAUO,IAAMA,IAAN,cAA4BC,EAAcC,CAAU,EAAE;AAAA;AAAA;AAAA;AAAA,EAY3D,gBAAgB;AACd,WAAO,KAAK,MAAM,KAAK,CAACC,MAASA,EAAK,MAAM,KAAK;AAAA,EACnD;AAAA;AAAA;AAAA;AAAA,EAKA,cAAcC,GAAuB;AACnC,eAAWD,KAAQ,KAAK;AACtB,MAAAA,EAAK,SAASA,MAASC;AAAA,EAE3B;AAAA;AAAA;AAAA;AAAA,EAKA,MAAc,YAAYC,GAAc;AACtC,UAAMF,IAAOE,EAAM;AACnB,IAAIA,EAAM,oBAAoBF,EAAK,WACnC,KAAK,cAAcA,CAAI,GACvB,KAAK;AAAA,MACH,IAAI,YAAY,wBAAwB;AAAA,QACtC,QAAQ,EAAE,OAAO,KAAK,MAAM,QAAQA,CAAI,EAAA;AAAA,QACxC,SAAS;AAAA,QACT,UAAU;AAAA,MAAA,CACX;AAAA,IAAA;AAAA,EAEL;AAAA,EAEA,SAAS;AACP,UAAMG,IAAmB;AAAA,MACvB,gBAAgB;AAAA,MAChB,CAACC,EAAW,KAAK,GAAG;AAAA,IAAA;AAGtB,WAAOC;AAAA,mBACQC,EAASH,CAAgB,CAAC;AAAA,uBACtB,KAAK,WAAW;AAAA;AAAA;AAAA;AAAA,EAIrC;AACF;AAtDaN,EACJ,SAASU,EAAUC,CAAK;AAMtBC,EAAA;AAAA,EADRC,EAAsB,EAAE,SAAS,GAAA,CAAM;AAAA,GAN7Bb,EAOF,WAAA,SAAA,CAAA;AAPEA,IAANY,EAAA;AAAA,EADNE,EAAc,gBAAgB;AAAA,GAClBd,CAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jotyping/jap-ds",
3
- "version": "0.1.7-alpha",
3
+ "version": "0.1.9-alpha",
4
4
  "description": "jap design system",
5
5
  "author": "Johannes Pfleghar",
6
6
  "homepage": "https://www.johannespfleghar.de",