@getflip/swirl-components 0.85.0 → 0.86.0
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.json +519 -1
- package/dist/cjs/index-506fe4ea.js +28 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-app-layout_7.cjs.entry.js +8 -3
- package/dist/cjs/swirl-button.cjs.entry.js +1 -1
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-emoji-clap.cjs.entry.js +23 -0
- package/dist/cjs/swirl-emoji-happy.cjs.entry.js +23 -0
- package/dist/cjs/swirl-emoji-idea.cjs.entry.js +23 -0
- package/dist/cjs/swirl-emoji-love.cjs.entry.js +23 -0
- package/dist/cjs/swirl-emoji-sad.cjs.entry.js +23 -0
- package/dist/cjs/swirl-emoji-thumbs-up.cjs.entry.js +23 -0
- package/dist/cjs/swirl-emoji.cjs.entry.js +23 -0
- package/dist/cjs/swirl-icon.cjs.entry.js +3 -3
- package/dist/cjs/swirl-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/swirl-tab.cjs.entry.js +1 -0
- package/dist/cjs/swirl-tabs.cjs.entry.js +1 -0
- package/dist/cjs/swirl-tag.cjs.entry.js +2 -2
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/swirl-button/swirl-button.css +5 -5
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-clap.js +70 -0
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-happy.js +70 -0
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-idea.js +70 -0
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-love.js +70 -0
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-sad.js +70 -0
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-thumbs-up.js +70 -0
- package/dist/collection/components/swirl-emoji/swirl-emoji.css +3 -0
- package/dist/collection/components/swirl-emoji/swirl-emoji.js +86 -0
- package/dist/collection/components/swirl-emoji/swirl-emoji.spec.js +17 -0
- package/dist/collection/components/swirl-emoji/swirl-emoji.stories.js +28 -0
- package/dist/collection/components/swirl-emoji/swirl-emoji.types.js +1 -0
- package/dist/collection/components/swirl-icon/swirl-icon.js +1 -1
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.css +44 -10
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.js +25 -2
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.stories.js +15 -4
- package/dist/collection/components/swirl-tab/swirl-tab.js +18 -0
- package/dist/collection/components/swirl-tab/swirl-tab.stories.js +1 -0
- package/dist/collection/components/swirl-tab-bar/swirl-tab-bar.css +7 -2
- package/dist/collection/components/swirl-tab-bar/swirl-tab-bar.js +1 -1
- package/dist/collection/components/swirl-tab-bar/swirl-tab-bar.stories.js +2 -0
- package/dist/collection/components/swirl-tabs/swirl-tabs.js +1 -0
- package/dist/collection/components/swirl-tabs/swirl-tabs.stories.js +2 -2
- package/dist/collection/components/swirl-tag/swirl-tag.css +9 -0
- package/dist/collection/components/swirl-tag/swirl-tag.js +1 -1
- package/dist/collection/components/swirl-tag/swirl-tag.spec.js +3 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-button2.js +1 -1
- package/dist/components/swirl-emoji-clap.d.ts +11 -0
- package/dist/components/swirl-emoji-clap.js +41 -0
- package/dist/components/swirl-emoji-happy.d.ts +11 -0
- package/dist/components/swirl-emoji-happy.js +41 -0
- package/dist/components/swirl-emoji-idea.d.ts +11 -0
- package/dist/components/swirl-emoji-idea.js +41 -0
- package/dist/components/swirl-emoji-love.d.ts +11 -0
- package/dist/components/swirl-emoji-love.js +41 -0
- package/dist/components/swirl-emoji-sad.d.ts +11 -0
- package/dist/components/swirl-emoji-sad.js +41 -0
- package/dist/components/swirl-emoji-thumbs-up.d.ts +11 -0
- package/dist/components/swirl-emoji-thumbs-up.js +41 -0
- package/dist/components/swirl-emoji.d.ts +11 -0
- package/dist/components/swirl-emoji.js +42 -0
- package/dist/components/swirl-icon.js +3 -3
- package/dist/components/swirl-resource-list-item2.js +9 -3
- package/dist/components/swirl-tab-bar2.js +2 -2
- package/dist/components/swirl-tab.js +2 -0
- package/dist/components/swirl-tabs.js +1 -0
- package/dist/components/swirl-tag2.js +2 -2
- package/dist/esm/index-99d0060d.js +28 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-app-layout_7.entry.js +8 -3
- package/dist/esm/swirl-button.entry.js +1 -1
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-emoji-clap.entry.js +19 -0
- package/dist/esm/swirl-emoji-happy.entry.js +19 -0
- package/dist/esm/swirl-emoji-idea.entry.js +19 -0
- package/dist/esm/swirl-emoji-love.entry.js +19 -0
- package/dist/esm/swirl-emoji-sad.entry.js +19 -0
- package/dist/esm/swirl-emoji-thumbs-up.entry.js +19 -0
- package/dist/esm/swirl-emoji.entry.js +19 -0
- package/dist/esm/swirl-icon.entry.js +3 -3
- package/dist/esm/swirl-tab-bar.entry.js +2 -2
- package/dist/esm/swirl-tab.entry.js +1 -0
- package/dist/esm/swirl-tabs.entry.js +1 -0
- package/dist/esm/swirl-tag.entry.js +2 -2
- package/dist/swirl-components/{p-902fc533.entry.js → p-0f979ef7.entry.js} +1 -1
- package/dist/swirl-components/p-2d16eca4.entry.js +1 -0
- package/dist/swirl-components/p-377f7d35.entry.js +1 -0
- package/dist/swirl-components/p-3a430e14.entry.js +1 -0
- package/dist/swirl-components/p-66551e51.entry.js +1 -0
- package/dist/swirl-components/p-7521afa2.entry.js +1 -0
- package/dist/swirl-components/p-a298fdf9.entry.js +1 -0
- package/dist/swirl-components/p-b5be788e.entry.js +1 -0
- package/dist/swirl-components/{p-a3e6a921.entry.js → p-c8870a5b.entry.js} +1 -1
- package/dist/swirl-components/p-cfbfb7be.entry.js +1 -0
- package/dist/swirl-components/p-e1daecf5.entry.js +1 -0
- package/dist/swirl-components/p-e9b2ed15.entry.js +1 -0
- package/dist/swirl-components/p-eb3c6b4d.entry.js +1 -0
- package/dist/swirl-components/swirl-components.css +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-emoji/emojis/swirl-emoji-clap.d.ts +6 -0
- package/dist/types/components/swirl-emoji/emojis/swirl-emoji-happy.d.ts +6 -0
- package/dist/types/components/swirl-emoji/emojis/swirl-emoji-idea.d.ts +6 -0
- package/dist/types/components/swirl-emoji/emojis/swirl-emoji-love.d.ts +6 -0
- package/dist/types/components/swirl-emoji/emojis/swirl-emoji-sad.d.ts +6 -0
- package/dist/types/components/swirl-emoji/emojis/swirl-emoji-thumbs-up.d.ts +6 -0
- package/dist/types/components/swirl-emoji/swirl-emoji.d.ts +7 -0
- package/dist/types/components/swirl-emoji/swirl-emoji.stories.d.ts +20 -0
- package/dist/types/components/swirl-emoji/swirl-emoji.types.d.ts +1 -0
- package/dist/types/components/swirl-icon/swirl-icon.d.ts +1 -1
- package/dist/types/components/swirl-resource-list-item/swirl-resource-list-item.d.ts +2 -0
- package/dist/types/components/swirl-tab/swirl-tab.d.ts +1 -0
- package/dist/types/components/swirl-tab-bar/swirl-tab-bar.d.ts +1 -0
- package/dist/types/components.d.ts +127 -0
- package/package.json +2 -2
- package/vscode-data.json +131 -0
- package/dist/swirl-components/p-06012b5a.entry.js +0 -1
- package/dist/swirl-components/p-6f178b75.entry.js +0 -1
- package/dist/swirl-components/p-b86c0a97.entry.js +0 -1
- package/dist/swirl-components/p-c4c4d5c4.entry.js +0 -1
|
@@ -60,6 +60,13 @@
|
|
|
60
60
|
"./components/swirl-date-input/swirl-date-input.js",
|
|
61
61
|
"./components/swirl-date-picker/swirl-date-picker.js",
|
|
62
62
|
"./components/swirl-description-list/swirl-description-list.js",
|
|
63
|
+
"./components/swirl-emoji/emojis/swirl-emoji-clap.js",
|
|
64
|
+
"./components/swirl-emoji/swirl-emoji.js",
|
|
65
|
+
"./components/swirl-emoji/emojis/swirl-emoji-happy.js",
|
|
66
|
+
"./components/swirl-emoji/emojis/swirl-emoji-idea.js",
|
|
67
|
+
"./components/swirl-emoji/emojis/swirl-emoji-love.js",
|
|
68
|
+
"./components/swirl-emoji/emojis/swirl-emoji-sad.js",
|
|
69
|
+
"./components/swirl-emoji/emojis/swirl-emoji-thumbs-up.js",
|
|
63
70
|
"./components/swirl-empty-state/swirl-empty-state.js",
|
|
64
71
|
"./components/swirl-file-uploader/swirl-file-uploader.js",
|
|
65
72
|
"./components/swirl-file-viewer/swirl-file-viewer.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
.button:disabled {
|
|
41
41
|
color: var(--s-text-disabled);
|
|
42
|
-
background-color: var(--swirl-ghost-button-background-
|
|
42
|
+
background-color: var(--swirl-ghost-button-background-disabled);
|
|
43
43
|
cursor: default;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -100,19 +100,19 @@
|
|
|
100
100
|
|
|
101
101
|
.button--variant-flat {
|
|
102
102
|
color: var(--s-text-default);
|
|
103
|
-
background-color: var(--
|
|
103
|
+
background-color: var(--swirl-flat-button-background-default);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.button--variant-flat:hover {
|
|
107
|
-
background-color: var(--
|
|
107
|
+
background-color: var(--swirl-flat-button-background-hovered);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.button--variant-flat:active {
|
|
111
|
-
background-color: var(--
|
|
111
|
+
background-color: var(--swirl-flat-button-background-pressed);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.button--variant-flat:disabled {
|
|
115
|
-
background-color: var(--
|
|
115
|
+
background-color: var(--swirl-flat-button-background-disabled);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.button--variant-flat.button--intent-primary:not(:disabled) {
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Fragment, h } from "@stencil/core";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
export class SwirlEmojiClap {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.label = "";
|
|
7
|
+
this.size = 24;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const className = classnames("emoji", `emoji--size-${this.size}`);
|
|
11
|
+
return (h(Fragment, null, this.size === 16 && (h("img", { alt: this.label, class: className, height: "16", src: "/emojis/Clap16.png", width: "16" })), this.size === 20 && (h("img", { alt: this.label, class: className, height: "20", src: "/emojis/Clap20.png", width: "20" })), this.size === 24 && (h("img", { alt: this.label, class: className, height: "24", src: "/emojis/Clap24.png", width: "24" })), this.size === 32 && (h("img", { alt: this.label, class: className, height: "32", src: "/emojis/Clap32.png", width: "32" }))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-emoji-clap"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["../swirl-emoji.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["../swirl-emoji.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"label": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "string",
|
|
32
|
+
"resolved": "string",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": true,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "label",
|
|
42
|
+
"reflect": false,
|
|
43
|
+
"defaultValue": "\"\""
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"type": "number",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "SwirlEmojiSize",
|
|
50
|
+
"resolved": "16 | 20 | 24 | 32",
|
|
51
|
+
"references": {
|
|
52
|
+
"SwirlEmojiSize": {
|
|
53
|
+
"location": "import",
|
|
54
|
+
"path": "../swirl-emoji.types"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": true,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "size",
|
|
65
|
+
"reflect": false,
|
|
66
|
+
"defaultValue": "24"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Fragment, h } from "@stencil/core";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
export class SwirlEmojiHappy {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.label = "";
|
|
7
|
+
this.size = 24;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const className = classnames("emoji", `emoji--size-${this.size}`);
|
|
11
|
+
return (h(Fragment, null, this.size === 16 && (h("img", { alt: this.label, class: className, height: "16", src: "/emojis/Happy16.png", width: "16" })), this.size === 20 && (h("img", { alt: this.label, class: className, height: "20", src: "/emojis/Happy20.png", width: "20" })), this.size === 24 && (h("img", { alt: this.label, class: className, height: "24", src: "/emojis/Happy24.png", width: "24" })), this.size === 32 && (h("img", { alt: this.label, class: className, height: "32", src: "/emojis/Happy32.png", width: "32" }))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-emoji-happy"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["../swirl-emoji.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["../swirl-emoji.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"label": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "string",
|
|
32
|
+
"resolved": "string",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": true,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "label",
|
|
42
|
+
"reflect": false,
|
|
43
|
+
"defaultValue": "\"\""
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"type": "number",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "SwirlEmojiSize",
|
|
50
|
+
"resolved": "16 | 20 | 24 | 32",
|
|
51
|
+
"references": {
|
|
52
|
+
"SwirlEmojiSize": {
|
|
53
|
+
"location": "import",
|
|
54
|
+
"path": "../swirl-emoji.types"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": true,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "size",
|
|
65
|
+
"reflect": false,
|
|
66
|
+
"defaultValue": "24"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Fragment, h } from "@stencil/core";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
export class SwirlEmojiIdea {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.label = "";
|
|
7
|
+
this.size = 24;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const className = classnames("emoji", `emoji--size-${this.size}`);
|
|
11
|
+
return (h(Fragment, null, this.size === 16 && (h("img", { alt: this.label, class: className, height: "16", src: "/emojis/Idea16.png", width: "16" })), this.size === 20 && (h("img", { alt: this.label, class: className, height: "20", src: "/emojis/Idea20.png", width: "20" })), this.size === 24 && (h("img", { alt: this.label, class: className, height: "24", src: "/emojis/Idea24.png", width: "24" })), this.size === 32 && (h("img", { alt: this.label, class: className, height: "32", src: "/emojis/Idea32.png", width: "32" }))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-emoji-idea"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["../swirl-emoji.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["../swirl-emoji.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"label": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "string",
|
|
32
|
+
"resolved": "string",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": true,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "label",
|
|
42
|
+
"reflect": false,
|
|
43
|
+
"defaultValue": "\"\""
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"type": "number",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "SwirlEmojiSize",
|
|
50
|
+
"resolved": "16 | 20 | 24 | 32",
|
|
51
|
+
"references": {
|
|
52
|
+
"SwirlEmojiSize": {
|
|
53
|
+
"location": "import",
|
|
54
|
+
"path": "../swirl-emoji.types"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": true,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "size",
|
|
65
|
+
"reflect": false,
|
|
66
|
+
"defaultValue": "24"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Fragment, h } from "@stencil/core";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
export class SwirlEmojiLove {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.label = "";
|
|
7
|
+
this.size = 24;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const className = classnames("emoji", `emoji--size-${this.size}`);
|
|
11
|
+
return (h(Fragment, null, this.size === 16 && (h("img", { alt: this.label, class: className, height: "16", src: "/emojis/Love16.png", width: "16" })), this.size === 20 && (h("img", { alt: this.label, class: className, height: "20", src: "/emojis/Love20.png", width: "20" })), this.size === 24 && (h("img", { alt: this.label, class: className, height: "24", src: "/emojis/Love24.png", width: "24" })), this.size === 32 && (h("img", { alt: this.label, class: className, height: "32", src: "/emojis/Love32.png", width: "32" }))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-emoji-love"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["../swirl-emoji.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["../swirl-emoji.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"label": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "string",
|
|
32
|
+
"resolved": "string",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": true,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "label",
|
|
42
|
+
"reflect": false,
|
|
43
|
+
"defaultValue": "\"\""
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"type": "number",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "SwirlEmojiSize",
|
|
50
|
+
"resolved": "16 | 20 | 24 | 32",
|
|
51
|
+
"references": {
|
|
52
|
+
"SwirlEmojiSize": {
|
|
53
|
+
"location": "import",
|
|
54
|
+
"path": "../swirl-emoji.types"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": true,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "size",
|
|
65
|
+
"reflect": false,
|
|
66
|
+
"defaultValue": "24"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Fragment, h } from "@stencil/core";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
export class SwirlEmojiSad {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.label = "";
|
|
7
|
+
this.size = 24;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const className = classnames("emoji", `emoji--size-${this.size}`);
|
|
11
|
+
return (h(Fragment, null, this.size === 16 && (h("img", { alt: this.label, class: className, height: "16", src: "/emojis/Sad16.png", width: "16" })), this.size === 20 && (h("img", { alt: this.label, class: className, height: "20", src: "/emojis/Sad20.png", width: "20" })), this.size === 24 && (h("img", { alt: this.label, class: className, height: "24", src: "/emojis/Sad24.png", width: "24" })), this.size === 32 && (h("img", { alt: this.label, class: className, height: "32", src: "/emojis/Sad32.png", width: "32" }))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-emoji-sad"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["../swirl-emoji.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["../swirl-emoji.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"label": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "string",
|
|
32
|
+
"resolved": "string",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": true,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "label",
|
|
42
|
+
"reflect": false,
|
|
43
|
+
"defaultValue": "\"\""
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"type": "number",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "SwirlEmojiSize",
|
|
50
|
+
"resolved": "16 | 20 | 24 | 32",
|
|
51
|
+
"references": {
|
|
52
|
+
"SwirlEmojiSize": {
|
|
53
|
+
"location": "import",
|
|
54
|
+
"path": "../swirl-emoji.types"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": true,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "size",
|
|
65
|
+
"reflect": false,
|
|
66
|
+
"defaultValue": "24"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Fragment, h } from "@stencil/core";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
export class SwirlEmojiThumbsUp {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.label = "";
|
|
7
|
+
this.size = 24;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const className = classnames("emoji", `emoji--size-${this.size}`);
|
|
11
|
+
return (h(Fragment, null, this.size === 16 && (h("img", { alt: this.label, class: className, height: "16", src: "/emojis/ThumbsUp16.png", width: "16" })), this.size === 20 && (h("img", { alt: this.label, class: className, height: "20", src: "/emojis/ThumbsUp20.png", width: "20" })), this.size === 24 && (h("img", { alt: this.label, class: className, height: "24", src: "/emojis/ThumbsUp24.png", width: "24" })), this.size === 32 && (h("img", { alt: this.label, class: className, height: "32", src: "/emojis/ThumbsUp32.png", width: "32" }))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-emoji-thumbs-up"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["../swirl-emoji.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["../swirl-emoji.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"label": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "string",
|
|
32
|
+
"resolved": "string",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": true,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "label",
|
|
42
|
+
"reflect": false,
|
|
43
|
+
"defaultValue": "\"\""
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"type": "number",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "SwirlEmojiSize",
|
|
50
|
+
"resolved": "16 | 20 | 24 | 32",
|
|
51
|
+
"references": {
|
|
52
|
+
"SwirlEmojiSize": {
|
|
53
|
+
"location": "import",
|
|
54
|
+
"path": "../swirl-emoji.types"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": true,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "size",
|
|
65
|
+
"reflect": false,
|
|
66
|
+
"defaultValue": "24"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class SwirlEmoji {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.label = "";
|
|
5
|
+
this.name = undefined;
|
|
6
|
+
this.size = 24;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const Tag = `swirl-emoji-${this.name}`;
|
|
10
|
+
return (h(Host, null, h(Tag, { label: this.label, size: this.size })));
|
|
11
|
+
}
|
|
12
|
+
static get is() { return "swirl-emoji"; }
|
|
13
|
+
static get encapsulation() { return "shadow"; }
|
|
14
|
+
static get originalStyleUrls() {
|
|
15
|
+
return {
|
|
16
|
+
"$": ["swirl-emoji.css"]
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
static get styleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["swirl-emoji.css"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get properties() {
|
|
25
|
+
return {
|
|
26
|
+
"label": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"mutable": false,
|
|
29
|
+
"complexType": {
|
|
30
|
+
"original": "string",
|
|
31
|
+
"resolved": "string",
|
|
32
|
+
"references": {}
|
|
33
|
+
},
|
|
34
|
+
"required": false,
|
|
35
|
+
"optional": true,
|
|
36
|
+
"docs": {
|
|
37
|
+
"tags": [],
|
|
38
|
+
"text": ""
|
|
39
|
+
},
|
|
40
|
+
"attribute": "label",
|
|
41
|
+
"reflect": false,
|
|
42
|
+
"defaultValue": "\"\""
|
|
43
|
+
},
|
|
44
|
+
"name": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "string",
|
|
49
|
+
"resolved": "string",
|
|
50
|
+
"references": {}
|
|
51
|
+
},
|
|
52
|
+
"required": true,
|
|
53
|
+
"optional": false,
|
|
54
|
+
"docs": {
|
|
55
|
+
"tags": [],
|
|
56
|
+
"text": ""
|
|
57
|
+
},
|
|
58
|
+
"attribute": "name",
|
|
59
|
+
"reflect": false
|
|
60
|
+
},
|
|
61
|
+
"size": {
|
|
62
|
+
"type": "number",
|
|
63
|
+
"mutable": false,
|
|
64
|
+
"complexType": {
|
|
65
|
+
"original": "SwirlEmojiSize",
|
|
66
|
+
"resolved": "16 | 20 | 24 | 32",
|
|
67
|
+
"references": {
|
|
68
|
+
"SwirlEmojiSize": {
|
|
69
|
+
"location": "import",
|
|
70
|
+
"path": "./swirl-emoji.types"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": false,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": ""
|
|
79
|
+
},
|
|
80
|
+
"attribute": "size",
|
|
81
|
+
"reflect": false,
|
|
82
|
+
"defaultValue": "24"
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { SwirlEmojiClap } from "./emojis/swirl-emoji-clap";
|
|
3
|
+
describe("swirl-emoji", () => {
|
|
4
|
+
it("renders", async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [SwirlEmojiClap],
|
|
7
|
+
html: `<swirl-emoji-clap></swirl-emoji-clap>`,
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toEqualHtml(`
|
|
10
|
+
<swirl-emoji-clap>
|
|
11
|
+
<mock:shadow-root>
|
|
12
|
+
<img class="emoji emoji--size-24" height="24" width="24" src="/emojis/Clap24.png" alt="">
|
|
13
|
+
</mock:shadow-root>
|
|
14
|
+
</swirl-emoji-clap>
|
|
15
|
+
`);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { generateStoryElement } from "../../utils";
|
|
2
|
+
import Docs from "./swirl-emoji.mdx";
|
|
3
|
+
import EmojisJSON from "../../../emojis.json";
|
|
4
|
+
export default {
|
|
5
|
+
argTypes: {
|
|
6
|
+
name: {
|
|
7
|
+
control: "select",
|
|
8
|
+
options: Object.values(EmojisJSON).map((emoji) => emoji.name),
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
component: "swirl-emoji",
|
|
12
|
+
tags: ["autodocs"],
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
page: Docs,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
title: "Components/SwirlEmoji",
|
|
19
|
+
};
|
|
20
|
+
const Template = (args) => {
|
|
21
|
+
const element = generateStoryElement(`swirl-emoji`, args);
|
|
22
|
+
return element;
|
|
23
|
+
};
|
|
24
|
+
export const SwirlEmoji = Template.bind({});
|
|
25
|
+
SwirlEmoji.args = {
|
|
26
|
+
name: "clap",
|
|
27
|
+
size: "24",
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|