@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.
Files changed (120) hide show
  1. package/components.json +519 -1
  2. package/dist/cjs/index-506fe4ea.js +28 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/swirl-app-layout_7.cjs.entry.js +8 -3
  5. package/dist/cjs/swirl-button.cjs.entry.js +1 -1
  6. package/dist/cjs/swirl-components.cjs.js +1 -1
  7. package/dist/cjs/swirl-emoji-clap.cjs.entry.js +23 -0
  8. package/dist/cjs/swirl-emoji-happy.cjs.entry.js +23 -0
  9. package/dist/cjs/swirl-emoji-idea.cjs.entry.js +23 -0
  10. package/dist/cjs/swirl-emoji-love.cjs.entry.js +23 -0
  11. package/dist/cjs/swirl-emoji-sad.cjs.entry.js +23 -0
  12. package/dist/cjs/swirl-emoji-thumbs-up.cjs.entry.js +23 -0
  13. package/dist/cjs/swirl-emoji.cjs.entry.js +23 -0
  14. package/dist/cjs/swirl-icon.cjs.entry.js +3 -3
  15. package/dist/cjs/swirl-tab-bar.cjs.entry.js +2 -2
  16. package/dist/cjs/swirl-tab.cjs.entry.js +1 -0
  17. package/dist/cjs/swirl-tabs.cjs.entry.js +1 -0
  18. package/dist/cjs/swirl-tag.cjs.entry.js +2 -2
  19. package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
  20. package/dist/collection/collection-manifest.json +7 -0
  21. package/dist/collection/components/swirl-button/swirl-button.css +5 -5
  22. package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-clap.js +70 -0
  23. package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-happy.js +70 -0
  24. package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-idea.js +70 -0
  25. package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-love.js +70 -0
  26. package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-sad.js +70 -0
  27. package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-thumbs-up.js +70 -0
  28. package/dist/collection/components/swirl-emoji/swirl-emoji.css +3 -0
  29. package/dist/collection/components/swirl-emoji/swirl-emoji.js +86 -0
  30. package/dist/collection/components/swirl-emoji/swirl-emoji.spec.js +17 -0
  31. package/dist/collection/components/swirl-emoji/swirl-emoji.stories.js +28 -0
  32. package/dist/collection/components/swirl-emoji/swirl-emoji.types.js +1 -0
  33. package/dist/collection/components/swirl-icon/swirl-icon.js +1 -1
  34. package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.css +44 -10
  35. package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.js +25 -2
  36. package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.stories.js +15 -4
  37. package/dist/collection/components/swirl-tab/swirl-tab.js +18 -0
  38. package/dist/collection/components/swirl-tab/swirl-tab.stories.js +1 -0
  39. package/dist/collection/components/swirl-tab-bar/swirl-tab-bar.css +7 -2
  40. package/dist/collection/components/swirl-tab-bar/swirl-tab-bar.js +1 -1
  41. package/dist/collection/components/swirl-tab-bar/swirl-tab-bar.stories.js +2 -0
  42. package/dist/collection/components/swirl-tabs/swirl-tabs.js +1 -0
  43. package/dist/collection/components/swirl-tabs/swirl-tabs.stories.js +2 -2
  44. package/dist/collection/components/swirl-tag/swirl-tag.css +9 -0
  45. package/dist/collection/components/swirl-tag/swirl-tag.js +1 -1
  46. package/dist/collection/components/swirl-tag/swirl-tag.spec.js +3 -1
  47. package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
  48. package/dist/components/swirl-button2.js +1 -1
  49. package/dist/components/swirl-emoji-clap.d.ts +11 -0
  50. package/dist/components/swirl-emoji-clap.js +41 -0
  51. package/dist/components/swirl-emoji-happy.d.ts +11 -0
  52. package/dist/components/swirl-emoji-happy.js +41 -0
  53. package/dist/components/swirl-emoji-idea.d.ts +11 -0
  54. package/dist/components/swirl-emoji-idea.js +41 -0
  55. package/dist/components/swirl-emoji-love.d.ts +11 -0
  56. package/dist/components/swirl-emoji-love.js +41 -0
  57. package/dist/components/swirl-emoji-sad.d.ts +11 -0
  58. package/dist/components/swirl-emoji-sad.js +41 -0
  59. package/dist/components/swirl-emoji-thumbs-up.d.ts +11 -0
  60. package/dist/components/swirl-emoji-thumbs-up.js +41 -0
  61. package/dist/components/swirl-emoji.d.ts +11 -0
  62. package/dist/components/swirl-emoji.js +42 -0
  63. package/dist/components/swirl-icon.js +3 -3
  64. package/dist/components/swirl-resource-list-item2.js +9 -3
  65. package/dist/components/swirl-tab-bar2.js +2 -2
  66. package/dist/components/swirl-tab.js +2 -0
  67. package/dist/components/swirl-tabs.js +1 -0
  68. package/dist/components/swirl-tag2.js +2 -2
  69. package/dist/esm/index-99d0060d.js +28 -0
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/esm/swirl-app-layout_7.entry.js +8 -3
  72. package/dist/esm/swirl-button.entry.js +1 -1
  73. package/dist/esm/swirl-components.js +1 -1
  74. package/dist/esm/swirl-emoji-clap.entry.js +19 -0
  75. package/dist/esm/swirl-emoji-happy.entry.js +19 -0
  76. package/dist/esm/swirl-emoji-idea.entry.js +19 -0
  77. package/dist/esm/swirl-emoji-love.entry.js +19 -0
  78. package/dist/esm/swirl-emoji-sad.entry.js +19 -0
  79. package/dist/esm/swirl-emoji-thumbs-up.entry.js +19 -0
  80. package/dist/esm/swirl-emoji.entry.js +19 -0
  81. package/dist/esm/swirl-icon.entry.js +3 -3
  82. package/dist/esm/swirl-tab-bar.entry.js +2 -2
  83. package/dist/esm/swirl-tab.entry.js +1 -0
  84. package/dist/esm/swirl-tabs.entry.js +1 -0
  85. package/dist/esm/swirl-tag.entry.js +2 -2
  86. package/dist/swirl-components/{p-902fc533.entry.js → p-0f979ef7.entry.js} +1 -1
  87. package/dist/swirl-components/p-2d16eca4.entry.js +1 -0
  88. package/dist/swirl-components/p-377f7d35.entry.js +1 -0
  89. package/dist/swirl-components/p-3a430e14.entry.js +1 -0
  90. package/dist/swirl-components/p-66551e51.entry.js +1 -0
  91. package/dist/swirl-components/p-7521afa2.entry.js +1 -0
  92. package/dist/swirl-components/p-a298fdf9.entry.js +1 -0
  93. package/dist/swirl-components/p-b5be788e.entry.js +1 -0
  94. package/dist/swirl-components/{p-a3e6a921.entry.js → p-c8870a5b.entry.js} +1 -1
  95. package/dist/swirl-components/p-cfbfb7be.entry.js +1 -0
  96. package/dist/swirl-components/p-e1daecf5.entry.js +1 -0
  97. package/dist/swirl-components/p-e9b2ed15.entry.js +1 -0
  98. package/dist/swirl-components/p-eb3c6b4d.entry.js +1 -0
  99. package/dist/swirl-components/swirl-components.css +1 -1
  100. package/dist/swirl-components/swirl-components.esm.js +1 -1
  101. package/dist/types/components/swirl-emoji/emojis/swirl-emoji-clap.d.ts +6 -0
  102. package/dist/types/components/swirl-emoji/emojis/swirl-emoji-happy.d.ts +6 -0
  103. package/dist/types/components/swirl-emoji/emojis/swirl-emoji-idea.d.ts +6 -0
  104. package/dist/types/components/swirl-emoji/emojis/swirl-emoji-love.d.ts +6 -0
  105. package/dist/types/components/swirl-emoji/emojis/swirl-emoji-sad.d.ts +6 -0
  106. package/dist/types/components/swirl-emoji/emojis/swirl-emoji-thumbs-up.d.ts +6 -0
  107. package/dist/types/components/swirl-emoji/swirl-emoji.d.ts +7 -0
  108. package/dist/types/components/swirl-emoji/swirl-emoji.stories.d.ts +20 -0
  109. package/dist/types/components/swirl-emoji/swirl-emoji.types.d.ts +1 -0
  110. package/dist/types/components/swirl-icon/swirl-icon.d.ts +1 -1
  111. package/dist/types/components/swirl-resource-list-item/swirl-resource-list-item.d.ts +2 -0
  112. package/dist/types/components/swirl-tab/swirl-tab.d.ts +1 -0
  113. package/dist/types/components/swirl-tab-bar/swirl-tab-bar.d.ts +1 -0
  114. package/dist/types/components.d.ts +127 -0
  115. package/package.json +2 -2
  116. package/vscode-data.json +131 -0
  117. package/dist/swirl-components/p-06012b5a.entry.js +0 -1
  118. package/dist/swirl-components/p-6f178b75.entry.js +0 -1
  119. package/dist/swirl-components/p-b86c0a97.entry.js +0 -1
  120. 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-default);
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(--s-action-neutral-default);
103
+ background-color: var(--swirl-flat-button-background-default);
104
104
  }
105
105
 
106
106
  .button--variant-flat:hover {
107
- background-color: var(--s-action-neutral-hovered);
107
+ background-color: var(--swirl-flat-button-background-hovered);
108
108
  }
109
109
 
110
110
  .button--variant-flat:active {
111
- background-color: var(--s-action-neutral-pressed);
111
+ background-color: var(--swirl-flat-button-background-pressed);
112
112
  }
113
113
 
114
114
  .button--variant-flat:disabled {
115
- background-color: var(--s-action-neutral-disabled);
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,3 @@
1
+ :host {
2
+ display: inline-flex;
3
+ }
@@ -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
+ };
@@ -1,5 +1,5 @@
1
1
  import { h, Host } from "@stencil/core";
2
- export class SwirlHeading {
2
+ export class SwirlIcon {
3
3
  constructor() {
4
4
  this.glyph = undefined;
5
5
  this.size = 24;