@jotyping/jo-designsystem 0.1.2-alpha → 0.1.3-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.
- package/dist/components/button/jd-button.js +42 -0
- package/dist/components/button/jd-button.js.map +1 -0
- package/dist/components/button/jd-button.scss.js +5 -0
- package/dist/components/button/jd-button.scss.js.map +1 -0
- package/dist/components/flash/jd-flash.js +74 -0
- package/dist/components/flash/jd-flash.js.map +1 -0
- package/dist/components/flash/jd-flash.scss.js +5 -0
- package/dist/components/flash/jd-flash.scss.js.map +1 -0
- package/dist/components/footer/jd-footer.js +50 -0
- package/dist/components/footer/jd-footer.js.map +1 -0
- package/dist/components/footer/jd-footer.scss.js +5 -0
- package/dist/components/footer/jd-footer.scss.js.map +1 -0
- package/dist/components/header/jd-header.js +69 -0
- package/dist/components/header/jd-header.js.map +1 -0
- package/dist/components/header/jd-header.scss.js +5 -0
- package/dist/components/header/jd-header.scss.js.map +1 -0
- package/dist/components/heading/jd-heading.js +63 -0
- package/dist/components/heading/jd-heading.js.map +1 -0
- package/dist/components/heading/jd-heading.scss.js +5 -0
- package/dist/components/heading/jd-heading.scss.js.map +1 -0
- package/dist/components/icon/icon-data.js +47 -0
- package/dist/components/icon/icon-data.js.map +1 -0
- package/dist/components/icon/jd-icon.js +58 -0
- package/dist/components/icon/jd-icon.js.map +1 -0
- package/dist/components/icon/jd-icon.scss.js +5 -0
- package/dist/components/icon/jd-icon.scss.js.map +1 -0
- package/dist/components/icon-button/jd-icon-button.js +52 -0
- package/dist/components/icon-button/jd-icon-button.js.map +1 -0
- package/dist/components/icon-button/jd-icon-button.scss.js +5 -0
- package/dist/components/icon-button/jd-icon-button.scss.js.map +1 -0
- package/dist/components/image-link/jd-image-link.js +63 -0
- package/dist/components/image-link/jd-image-link.js.map +1 -0
- package/dist/components/image-link/jd-image-link.scss.js +5 -0
- package/dist/components/image-link/jd-image-link.scss.js.map +1 -0
- package/dist/components/link/jd-link.js +43 -0
- package/dist/components/link/jd-link.js.map +1 -0
- package/dist/components/link/jd-link.scss.js +5 -0
- package/dist/components/link/jd-link.scss.js.map +1 -0
- package/dist/components/modal/jd-modal.js +86 -0
- package/dist/components/modal/jd-modal.js.map +1 -0
- package/dist/components/modal/jd-modal.scss.js +5 -0
- package/dist/components/modal/jd-modal.scss.js.map +1 -0
- package/dist/components/navigation/jd-navigation.js +44 -0
- package/dist/components/navigation/jd-navigation.js.map +1 -0
- package/dist/components/navigation/jd-navigation.scss.js +5 -0
- package/dist/components/navigation/jd-navigation.scss.js.map +1 -0
- package/dist/components/tag/jd-tag.js +36 -0
- package/dist/components/tag/jd-tag.js.map +1 -0
- package/dist/components/tag/jd-tag.scss.js +5 -0
- package/dist/components/tag/jd-tag.scss.js.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/stores/breakpoint-store.js +13 -0
- package/dist/stores/breakpoint-store.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jd-heading.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
fire: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" class="size-6">
|
|
3
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M15.362 5.214A8.252 8.252 0 0 1 12 21 8.25 8.25 0 0 1 6.038 7.047 8.287 8.287 0 0 0 9 9.601a8.983 8.983 0 0 1 3.361-6.867 8.21 8.21 0 0 0 3 2.48Z" />
|
|
4
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M12 18a3.75 3.75 0 0 0 .495-7.468 5.99 5.99 0 0 0-1.925 3.547 5.975 5.975 0 0 1-2.133-1.001A3.75 3.75 0 0 0 12 18Z" />
|
|
5
|
+
</svg>`,
|
|
6
|
+
lightning: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" class="size-6">
|
|
7
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z" />
|
|
8
|
+
</svg>
|
|
9
|
+
`,
|
|
10
|
+
chat: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" class="size-6">
|
|
11
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 0 1-2.555-.337A5.972 5.972 0 0 1 5.41 20.97a5.969 5.969 0 0 1-.474-.065 4.48 4.48 0 0 0 .978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z" />
|
|
12
|
+
</svg>
|
|
13
|
+
`,
|
|
14
|
+
puzzle: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" class="size-6">
|
|
15
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z" />
|
|
16
|
+
</svg>
|
|
17
|
+
`,
|
|
18
|
+
"arrow-circle-left": `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" class="size-6">
|
|
19
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="m11.25 9-3 3m0 0 3 3m-3-3h7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
|
|
20
|
+
</svg>
|
|
21
|
+
`,
|
|
22
|
+
"arrow-right": `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" class="size-6">
|
|
23
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3" />
|
|
24
|
+
</svg>
|
|
25
|
+
`,
|
|
26
|
+
"burger-menu": `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.6" stroke="currentColor" class="size-6">
|
|
27
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M6 8h12M6 16h12" />
|
|
28
|
+
</svg>
|
|
29
|
+
`,
|
|
30
|
+
x: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
|
|
31
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
|
32
|
+
</svg>
|
|
33
|
+
`,
|
|
34
|
+
circle: `<svg
|
|
35
|
+
width="8"
|
|
36
|
+
height="8"
|
|
37
|
+
viewBox="0 0 8 8"
|
|
38
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
39
|
+
>
|
|
40
|
+
<circle cx="4" cy="4" r="4" fill="currentColor" />
|
|
41
|
+
</svg>
|
|
42
|
+
`
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
o as icons
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=icon-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-data.js","sources":["../../../src/components/icon/icon-data.ts"],"sourcesContent":["const icons = {\n fire: `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1\" stroke=\"currentColor\" class=\"size-6\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15.362 5.214A8.252 8.252 0 0 1 12 21 8.25 8.25 0 0 1 6.038 7.047 8.287 8.287 0 0 0 9 9.601a8.983 8.983 0 0 1 3.361-6.867 8.21 8.21 0 0 0 3 2.48Z\" />\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 18a3.75 3.75 0 0 0 .495-7.468 5.99 5.99 0 0 0-1.925 3.547 5.975 5.975 0 0 1-2.133-1.001A3.75 3.75 0 0 0 12 18Z\" />\n </svg>`,\n lightning: `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1\" stroke=\"currentColor\" class=\"size-6\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z\" />\n</svg>\n`,\n chat: `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1\" stroke=\"currentColor\" class=\"size-6\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 0 1-2.555-.337A5.972 5.972 0 0 1 5.41 20.97a5.969 5.969 0 0 1-.474-.065 4.48 4.48 0 0 0 .978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z\" />\n</svg>\n`,\n puzzle: `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1\" stroke=\"currentColor\" class=\"size-6\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z\" />\n</svg>\n`,\n \"arrow-circle-left\": `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1\" stroke=\"currentColor\" class=\"size-6\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m11.25 9-3 3m0 0 3 3m-3-3h7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\" />\n</svg>\n`,\n \"arrow-right\": `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1\" stroke=\"currentColor\" class=\"size-6\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3\" />\n</svg>\n`,\n \"burger-menu\": `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.6\" stroke=\"currentColor\" class=\"size-6\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M6 8h12M6 16h12\" />\n</svg>\n`,\n x: `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M6 18 18 6M6 6l12 12\" />\n</svg>\n`,\n circle: `<svg\n width=\"8\"\n height=\"8\"\n viewBox=\"0 0 8 8\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle cx=\"4\" cy=\"4\" r=\"4\" fill=\"currentColor\" />\n </svg>\n`,\n};\n\nexport { icons };\n"],"names":["icons"],"mappings":"AAAA,MAAMA,IAAQ;AAAA,EACZ,MAAM;AAAA;AAAA;AAAA;AAAA,EAIN,WAAW;AAAA;AAAA;AAAA;AAAA,EAIX,MAAM;AAAA;AAAA;AAAA;AAAA,EAIN,QAAQ;AAAA;AAAA;AAAA;AAAA,EAIR,qBAAqB;AAAA;AAAA;AAAA;AAAA,EAIrB,eAAe;AAAA;AAAA;AAAA;AAAA,EAIf,eAAe;AAAA;AAAA;AAAA;AAAA,EAIf,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASV;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { unsafeCSS as l, LitElement as a, html as f } from "/Users/jo/Documents/dev/Web/027 jo-ds/jd/node_modules/lit/index.js";
|
|
2
|
+
import { property as c, customElement as h } from "/Users/jo/Documents/dev/Web/027 jo-ds/jd/node_modules/lit/decorators.js";
|
|
3
|
+
import { icons as u } from "./icon-data.js";
|
|
4
|
+
import y from "./jd-icon.scss.js";
|
|
5
|
+
import { classMap as v } from "/Users/jo/Documents/dev/Web/027 jo-ds/jd/node_modules/lit/directives/class-map.js";
|
|
6
|
+
import { unsafeHTML as _ } from "/Users/jo/Documents/dev/Web/027 jo-ds/jd/node_modules/lit/directives/unsafe-html.js";
|
|
7
|
+
import "../button/jd-button.js";
|
|
8
|
+
import "../flash/jd-flash.js";
|
|
9
|
+
import "../footer/jd-footer.js";
|
|
10
|
+
import "../header/jd-header.js";
|
|
11
|
+
import "../heading/jd-heading.js";
|
|
12
|
+
import "../icon-button/jd-icon-button.js";
|
|
13
|
+
import "../image-link/jd-image-link.js";
|
|
14
|
+
import "../link/jd-link.js";
|
|
15
|
+
import "../modal/jd-modal.js";
|
|
16
|
+
import "../navigation/jd-navigation.js";
|
|
17
|
+
import "../tag/jd-tag.js";
|
|
18
|
+
var d = Object.defineProperty, g = Object.getOwnPropertyDescriptor, p = (o, e, s, i) => {
|
|
19
|
+
for (var r = i > 1 ? void 0 : i ? g(e, s) : e, m = o.length - 1, n; m >= 0; m--)
|
|
20
|
+
(n = o[m]) && (r = (i ? n(e, s, r) : n(r)) || r);
|
|
21
|
+
return i && r && d(e, s, r), r;
|
|
22
|
+
};
|
|
23
|
+
let t = class extends a {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments), this.iconName = "fire", this.size = "48px", this.color = "black";
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const o = {
|
|
29
|
+
"icon-wrapper": !0,
|
|
30
|
+
[this.color]: !0
|
|
31
|
+
};
|
|
32
|
+
return f`
|
|
33
|
+
<div
|
|
34
|
+
class=${v(o)}
|
|
35
|
+
style="height: ${this.size}; width: ${this.size};"
|
|
36
|
+
>
|
|
37
|
+
${_(u[this.iconName])}
|
|
38
|
+
</div>
|
|
39
|
+
`;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
t.styles = l(y);
|
|
43
|
+
p([
|
|
44
|
+
c({ type: String })
|
|
45
|
+
], t.prototype, "iconName", 2);
|
|
46
|
+
p([
|
|
47
|
+
c({ type: String })
|
|
48
|
+
], t.prototype, "size", 2);
|
|
49
|
+
p([
|
|
50
|
+
c({ type: String })
|
|
51
|
+
], t.prototype, "color", 2);
|
|
52
|
+
t = p([
|
|
53
|
+
h("jd-icon")
|
|
54
|
+
], t);
|
|
55
|
+
export {
|
|
56
|
+
t as JdIcon
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=jd-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jd-icon.js","sources":["../../../src/components/icon/jd-icon.ts"],"sourcesContent":["import { LitElement, html, unsafeCSS } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport { icons } from \"./icon-data.ts\";\nimport style from \"./jd-icon.scss?inline\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { unsafeHTML } from \"lit/directives/unsafe-html.js\";\nimport \"../../components\";\n\nexport type IconName =\n | \"circle\"\n | \"x\"\n | \"fire\"\n | \"puzzle\"\n | \"lightning\"\n | \"arrow-right\"\n | \"arrow-circle-left\"\n | \"burger-menu\"\n | \"chat\";\n\n@customElement(\"jd-icon\")\nexport class JdIcon extends LitElement {\n static styles = unsafeCSS(style);\n\n @property({ type: String }) iconName: IconName = \"fire\";\n\n @property({ type: String }) size:\n | \"72px\"\n | \"56px\"\n | \"48px\"\n | \"40px\"\n | \"32px\"\n | \"24px\"\n | \"16px\" = \"48px\";\n\n @property({ type: String }) color:\n | \"red\"\n | \"purple\"\n | \"blue\"\n | \"black\"\n | \"white\"\n | \"neutral-200\"\n | \"neutral-400\"\n | \"neutral-600\" = \"black\";\n\n render() {\n const iconWrapperClasses = {\n \"icon-wrapper\": true,\n [this.color]: true,\n };\n\n return html`\n <div\n class=${classMap(iconWrapperClasses)}\n style=\"height: ${this.size}; width: ${this.size};\"\n >\n ${unsafeHTML(icons[this.iconName])}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"jd-icon\": JdIcon;\n }\n}\n"],"names":["JdIcon","LitElement","iconWrapperClasses","html","classMap","unsafeHTML","icons","unsafeCSS","style","__decorateClass","property","customElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAoBa,IAAAA,IAAN,cAAqBC,EAAW;AAAA,EAAhC,cAAA;AAAA,UAAA,GAAA,SAAA,GAG4C,KAAA,WAAA,QASpC,KAAA,OAAA,QAUO,KAAA,QAAA;AAAA,EAAA;AAAA,EAEpB,SAAS;AACP,UAAMC,IAAqB;AAAA,MACzB,gBAAgB;AAAA,MAChB,CAAC,KAAK,KAAK,GAAG;AAAA,IAChB;AAEO,WAAAC;AAAA;AAAA,gBAEKC,EAASF,CAAkB,CAAC;AAAA,yBACnB,KAAK,IAAI,YAAY,KAAK,IAAI;AAAA;AAAA,UAE7CG,EAAWC,EAAM,KAAK,QAAQ,CAAC,CAAC;AAAA;AAAA;AAAA,EAAA;AAI1C;AAvCaN,EACJ,SAASO,EAAUC,CAAK;AAEHC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAHfV,EAGiB,WAAA,YAAA,CAAA;AAEAS,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GALfV,EAKiB,WAAA,QAAA,CAAA;AASAS,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAdfV,EAciB,WAAA,SAAA,CAAA;AAdjBA,IAANS,EAAA;AAAA,EADNE,EAAc,SAAS;AAAA,GACXX,CAAA;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const r = ":host{display:inline-block}.icon-wrapper{display:flex;align-items:center;justify-content:center}.icon-wrapper.blue{color:#2a91ff}.icon-wrapper.red{color:#ff4d2a}.icon-wrapper.purple{color:#bf2aff}.icon-wrapper.black{color:#3a3a3a}.icon-wrapper.white{color:#fff}.icon-wrapper.neutral-200{color:#f3f3f3}.icon-wrapper.neutral-400{color:#d5d5d5}.icon-wrapper.neutral-600{color:#898989}";
|
|
2
|
+
export {
|
|
3
|
+
r as default
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=jd-icon.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jd-icon.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { unsafeCSS as l, LitElement as u, html as y } from "/Users/jo/Documents/dev/Web/027 jo-ds/jd/node_modules/lit/index.js";
|
|
2
|
+
import { property as n, customElement as a } from "/Users/jo/Documents/dev/Web/027 jo-ds/jd/node_modules/lit/decorators.js";
|
|
3
|
+
import f from "./jd-icon-button.scss.js";
|
|
4
|
+
import "../button/jd-button.js";
|
|
5
|
+
import "../flash/jd-flash.js";
|
|
6
|
+
import "../footer/jd-footer.js";
|
|
7
|
+
import "../header/jd-header.js";
|
|
8
|
+
import "../heading/jd-heading.js";
|
|
9
|
+
import "../icon/jd-icon.js";
|
|
10
|
+
import "../image-link/jd-image-link.js";
|
|
11
|
+
import "../link/jd-link.js";
|
|
12
|
+
import "../modal/jd-modal.js";
|
|
13
|
+
import "../navigation/jd-navigation.js";
|
|
14
|
+
import "../tag/jd-tag.js";
|
|
15
|
+
var h = Object.defineProperty, b = Object.getOwnPropertyDescriptor, p = (c, r, i, e) => {
|
|
16
|
+
for (var t = e > 1 ? void 0 : e ? b(r, i) : r, s = c.length - 1, m; s >= 0; s--)
|
|
17
|
+
(m = c[s]) && (t = (e ? m(r, i, t) : m(t)) || t);
|
|
18
|
+
return e && t && h(r, i, t), t;
|
|
19
|
+
};
|
|
20
|
+
let o = class extends u {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments), this.type = "borderless", this.iconName = "puzzle", this.color = "black";
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return y`
|
|
26
|
+
<button class=${this.type}>
|
|
27
|
+
<jd-icon
|
|
28
|
+
iconName=${this.iconName}
|
|
29
|
+
color=${this.color}
|
|
30
|
+
size=${this.type === "borderless" ? "48px" : "32px"}
|
|
31
|
+
></jd-icon>
|
|
32
|
+
</button>
|
|
33
|
+
`;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
o.styles = l(f);
|
|
37
|
+
p([
|
|
38
|
+
n({ type: String })
|
|
39
|
+
], o.prototype, "type", 2);
|
|
40
|
+
p([
|
|
41
|
+
n({ type: String })
|
|
42
|
+
], o.prototype, "iconName", 2);
|
|
43
|
+
p([
|
|
44
|
+
n({ type: String })
|
|
45
|
+
], o.prototype, "color", 2);
|
|
46
|
+
o = p([
|
|
47
|
+
a("jd-icon-button")
|
|
48
|
+
], o);
|
|
49
|
+
export {
|
|
50
|
+
o as JdIconButton
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=jd-icon-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jd-icon-button.js","sources":["../../../src/components/icon-button/jd-icon-button.ts"],"sourcesContent":["import { LitElement, html, unsafeCSS } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport style from \"./jd-icon-button.scss?inline\";\nimport { IconName } from \"../icon/jd-icon.ts\";\nimport \"../../components\";\n\n@customElement(\"jd-icon-button\")\nexport class JdIconButton extends LitElement {\n static styles = unsafeCSS(style);\n\n /**\n * Button type, can be \"primary\" or \"secondary\".\n */\n @property({ type: String }) type: \"borderless\" | \"border\" = \"borderless\";\n\n /**\n * Icon name.\n */\n @property({ type: String }) iconName: IconName = \"puzzle\";\n\n /**\n * Icon color.\n */\n @property({ type: String }) color:\n | \"red\"\n | \"purple\"\n | \"blue\"\n | \"black\"\n | \"white\"\n | \"neutral-200\"\n | \"neutral-400\"\n | \"neutral-600\" = \"black\";\n\n render() {\n return html`\n <button class=${this.type}>\n <jd-icon\n iconName=${this.iconName}\n color=${this.color}\n size=${this.type === \"borderless\" ? \"48px\" : \"32px\"}\n ></jd-icon>\n </button>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"jd-icon-button\": JdIconButton;\n }\n}\n"],"names":["JdIconButton","LitElement","html","unsafeCSS","style","__decorateClass","property","customElement"],"mappings":";;;;;;;;;;;;;;;;;;;AAOa,IAAAA,IAAN,cAA2BC,EAAW;AAAA,EAAtC,cAAA;AAAA,UAAA,GAAA,SAAA,GAMuD,KAAA,OAAA,cAKX,KAAA,WAAA,UAa7B,KAAA,QAAA;AAAA,EAAA;AAAA,EAEpB,SAAS;AACA,WAAAC;AAAA,sBACW,KAAK,IAAI;AAAA;AAAA,qBAEV,KAAK,QAAQ;AAAA,kBAChB,KAAK,KAAK;AAAA,iBACX,KAAK,SAAS,eAAe,SAAS,MAAM;AAAA;AAAA;AAAA;AAAA,EAAA;AAK7D;AArCaF,EACJ,SAASG,EAAUC,CAAK;AAKHC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GANfN,EAMiB,WAAA,QAAA,CAAA;AAKAK,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAXfN,EAWiB,WAAA,YAAA,CAAA;AAKAK,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAhBfN,EAgBiB,WAAA,SAAA,CAAA;AAhBjBA,IAANK,EAAA;AAAA,EADNE,EAAc,gBAAgB;AAAA,GAClBP,CAAA;"}
|