@ukic/web-components 2.35.0 → 2.35.2

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 (110) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/core.cjs.js +1 -1
  3. package/dist/cjs/ic-badge.cjs.entry.js +23 -0
  4. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  5. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-navigation-button.cjs.entry.js +2 -2
  7. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-toast.cjs.entry.js +2 -2
  11. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/collection/collection-manifest.json +1 -1
  14. package/dist/collection/components/ic-accordion/ic-accordion.stories.js +635 -0
  15. package/dist/collection/components/ic-alert/ic-alert.stories.js +257 -0
  16. package/dist/collection/components/ic-back-to-top/ic-back-to-top.stories.js +162 -0
  17. package/dist/collection/components/ic-badge/ic-badge.js +39 -1
  18. package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
  19. package/dist/collection/components/ic-badge/ic-badge.stories.js +1082 -0
  20. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +194 -0
  21. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +1 -1
  22. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.stories.js +502 -0
  23. package/dist/collection/components/ic-button/ic-button.stories.js +2218 -0
  24. package/dist/collection/components/ic-card/ic-card.stories.js +1034 -0
  25. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +687 -0
  26. package/dist/collection/components/ic-chip/ic-chip.stories.js +670 -0
  27. package/dist/collection/components/ic-classification-banner/ic-classification-banner.stories.js +131 -0
  28. package/dist/collection/components/ic-data-entity/ic-data-entity.stories.js +487 -0
  29. package/dist/collection/components/ic-dialog/ic-dialog.stories.js +1256 -0
  30. package/dist/collection/components/ic-empty-state/ic-empty-state.stories.js +397 -0
  31. package/dist/collection/components/ic-footer/ic-footer.stories.js +383 -0
  32. package/dist/collection/components/ic-hero/ic-hero.stories.js +489 -0
  33. package/dist/collection/components/ic-link/ic-link.stories.js +114 -0
  34. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +416 -0
  35. package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +4 -0
  36. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +1 -1
  37. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  38. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +7 -35
  39. package/dist/collection/components/ic-page-header/ic-page-header.stories.js +557 -0
  40. package/dist/collection/components/ic-pagination/ic-pagination.stories.js +125 -0
  41. package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +486 -0
  42. package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +450 -0
  43. package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +591 -0
  44. package/dist/collection/components/ic-section-container/ic-section-container.stories.js +62 -0
  45. package/dist/collection/components/ic-select/ic-select-searchable.stories.js +953 -0
  46. package/dist/collection/components/ic-select/ic-select-single.stories.js +780 -0
  47. package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +2526 -0
  48. package/dist/collection/components/ic-skeleton/ic-skeleton.stories.js +141 -0
  49. package/dist/collection/components/ic-status-tag/ic-status-tag.stories.js +161 -0
  50. package/dist/collection/components/ic-stepper/ic-stepper.stories.js +327 -0
  51. package/dist/collection/components/ic-switch/ic-switch.stories.js +171 -0
  52. package/dist/collection/components/ic-tab-context/ic-tabs.stories.js +388 -0
  53. package/dist/collection/components/ic-text-field/ic-text-field.stories.js +1083 -0
  54. package/dist/collection/components/ic-theme/ic-theme.stories.js +171 -0
  55. package/dist/collection/components/ic-toast/ic-toast.js +2 -2
  56. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  57. package/dist/collection/components/ic-toast/ic-toast.stories.js +413 -0
  58. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +3 -3
  59. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
  60. package/dist/collection/components/ic-toggle-button/ic-toggle-button.stories.js +537 -0
  61. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +610 -0
  62. package/dist/collection/components/ic-tooltip/ic-tooltip.js +2 -5
  63. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  64. package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +356 -0
  65. package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +1083 -0
  66. package/dist/collection/components/ic-typography/ic-typography.stories.js +437 -0
  67. package/dist/collection/patterns/top-nav-content-footer.stories.js +109 -0
  68. package/dist/collection/patterns/z-index.stories.js +474 -0
  69. package/dist/components/ic-badge.js +25 -2
  70. package/dist/components/ic-badge.js.map +1 -1
  71. package/dist/components/ic-navigation-button.js +2 -2
  72. package/dist/components/ic-navigation-button.js.map +1 -1
  73. package/dist/components/ic-navigation-item.js +1 -1
  74. package/dist/components/ic-navigation-item.js.map +1 -1
  75. package/dist/components/ic-toast.js +2 -2
  76. package/dist/components/ic-toast.js.map +1 -1
  77. package/dist/components/ic-tooltip2.js.map +1 -1
  78. package/dist/core/core.esm.js +1 -1
  79. package/dist/core/core.esm.js.map +1 -1
  80. package/dist/core/p-3e8023ff.entry.js +2 -0
  81. package/dist/core/p-3e8023ff.entry.js.map +1 -0
  82. package/dist/core/p-ba06cc95.entry.js.map +1 -1
  83. package/dist/core/{p-7e8a4abd.entry.js → p-bfaa257c.entry.js} +2 -2
  84. package/dist/core/{p-7e8a4abd.entry.js.map → p-bfaa257c.entry.js.map} +1 -1
  85. package/dist/core/p-c05474f3.entry.js +2 -0
  86. package/dist/core/p-c05474f3.entry.js.map +1 -0
  87. package/dist/core/{p-5d3c6ea1.entry.js → p-d0299926.entry.js} +2 -2
  88. package/dist/core/p-d0299926.entry.js.map +1 -0
  89. package/dist/esm/core.js +1 -1
  90. package/dist/esm/ic-badge.entry.js +23 -0
  91. package/dist/esm/ic-badge.entry.js.map +1 -1
  92. package/dist/esm/ic-button_3.entry.js.map +1 -1
  93. package/dist/esm/ic-navigation-button.entry.js +2 -2
  94. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  95. package/dist/esm/ic-navigation-item.entry.js +1 -1
  96. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  97. package/dist/esm/ic-toast.entry.js +2 -2
  98. package/dist/esm/ic-toast.entry.js.map +1 -1
  99. package/dist/esm/loader.js +1 -1
  100. package/dist/types/components/ic-badge/ic-badge.d.ts +5 -0
  101. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +1 -1
  102. package/dist/types/components.d.ts +7 -0
  103. package/hydrate/index.js +30 -7
  104. package/package.json +17 -12
  105. package/vscode-data.json +4 -0
  106. package/dist/core/p-405d89bb.entry.js +0 -2
  107. package/dist/core/p-405d89bb.entry.js.map +0 -1
  108. package/dist/core/p-5d3c6ea1.entry.js.map +0 -1
  109. package/dist/core/p-dfb3e76e.entry.js +0 -2
  110. package/dist/core/p-dfb3e76e.entry.js.map +0 -1
@@ -0,0 +1,1034 @@
1
+ import { html } from "lit-html";
2
+
3
+ const defaultArgs = {
4
+ clickable: false,
5
+ disabled: false,
6
+ expandable: false,
7
+ fullWidth: false,
8
+ heading: "Heading",
9
+ href: "/",
10
+ message: "Message",
11
+ subheading: "Subheading",
12
+ showIcon: false,
13
+ showBadge: false,
14
+ showInteractionButton: false,
15
+ showAdornment: false,
16
+ showImageTop: false,
17
+ showImageMid: false,
18
+ showInteractionControls: false,
19
+ showExpandedContent: false,
20
+ };
21
+
22
+ export default {
23
+ title: "Web Components/Card",
24
+ component: "ic-card",
25
+ };
26
+
27
+ export const Heading = {
28
+ render: () => html`<ic-card heading="This is the card heading"></ic-card>`,
29
+ name: "Heading",
30
+ };
31
+
32
+ export const Icon = {
33
+ render: () =>
34
+ html`<ic-card heading="This is the card heading">
35
+ <svg
36
+ slot="icon"
37
+ xmlns="http://www.w3.org/2000/svg"
38
+ height="24px"
39
+ viewBox="0 0 24 24"
40
+ width="24px"
41
+ fill="#000000"
42
+ >
43
+ <path d="M0 0h24v24H0V0z" fill="none" />
44
+ <path
45
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
46
+ />
47
+ </svg>
48
+ </ic-card>`,
49
+
50
+ name: "Icon",
51
+ };
52
+
53
+ export const Message = {
54
+ render: () =>
55
+ html`<ic-card
56
+ heading="This is the card heading"
57
+ message="This is an example of a new card component with text included."
58
+ >
59
+ <svg
60
+ slot="icon"
61
+ xmlns="http://www.w3.org/2000/svg"
62
+ height="24px"
63
+ viewBox="0 0 24 24"
64
+ width="24px"
65
+ fill="#000000"
66
+ >
67
+ <path d="M0 0h24v24H0V0z" fill="none" />
68
+ <path
69
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
70
+ />
71
+ </svg>
72
+ </ic-card>`,
73
+
74
+ name: "Message",
75
+ };
76
+
77
+ export const WithSubheading = {
78
+ render: () =>
79
+ html`<ic-card
80
+ heading="This is the card heading"
81
+ message="This is an example of a new card component with text included."
82
+ subheading="This is the subheading"
83
+ ><svg
84
+ slot="icon"
85
+ xmlns="http://www.w3.org/2000/svg"
86
+ height="24px"
87
+ viewBox="0 0 24 24"
88
+ width="24px"
89
+ fill="#000000"
90
+ >
91
+ <path d="M0 0h24v24H0V0z" fill="none" />
92
+ <path
93
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
94
+ /></svg
95
+ ></ic-card>`,
96
+
97
+ name: "With subheading",
98
+ };
99
+
100
+ export const SlottedHeadingMessageAndSubheading = {
101
+ render: () =>
102
+ html`<ic-card>
103
+ <ic-typography variant="h4" slot="heading"
104
+ >This is the slotted card heading</ic-typography
105
+ >
106
+ <ic-typography slot="message"
107
+ >This is an example of a new card component with slotted text
108
+ included.</ic-typography
109
+ >
110
+ <ic-typography variant="subtitle-small" slot="subheading"
111
+ >This is the slotted subheading</ic-typography
112
+ >
113
+ <svg
114
+ slot="icon"
115
+ xmlns="http://www.w3.org/2000/svg"
116
+ height="24px"
117
+ viewBox="0 0 24 24"
118
+ width="24px"
119
+ fill="#000000"
120
+ >
121
+ <path d="M0 0h24v24H0V0z" fill="none" />
122
+ <path
123
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
124
+ /></svg
125
+ ></ic-card>`,
126
+
127
+ name: "Slotted heading, message, and subheading",
128
+ };
129
+
130
+ export const WithBadge = {
131
+ render: () =>
132
+ html`<ic-card
133
+ heading="This is the card heading"
134
+ clickable="true"
135
+ href="https://www.google.com"
136
+ style="margin-bottom: 8px"
137
+ >
138
+ <ic-badge text-label="1" slot="badge"></ic-badge>
139
+ </ic-card>
140
+ <ic-card
141
+ heading="This is the card heading"
142
+ clickable="true"
143
+ href="https://www.google.com"
144
+ >
145
+ <ic-badge slot="badge" type="dot"></ic-badge>
146
+ </ic-card>`,
147
+
148
+ name: "With badge",
149
+ };
150
+
151
+ export const WithInteractionButton = {
152
+ render: () =>
153
+ html`<ic-card
154
+ heading="This is the card heading"
155
+ subheading="This is the subheading"
156
+ message="This is an example of a new card component with text included."
157
+ >
158
+ <svg
159
+ slot="icon"
160
+ xmlns="http://www.w3.org/2000/svg"
161
+ height="24px"
162
+ viewBox="0 0 24 24"
163
+ width="24px"
164
+ fill="#000000"
165
+ >
166
+ <path d="M0 0h24v24H0V0z" fill="none" />
167
+ <path
168
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
169
+ />
170
+ </svg>
171
+ <ic-button
172
+ variant="icon"
173
+ title="More information"
174
+ slot="interaction-button"
175
+ >
176
+ <svg
177
+ xmlns="http://www.w3.org/2000/svg"
178
+ width="16"
179
+ height="16"
180
+ fill="currentColor"
181
+ class="bi bi-three-dots-vertical"
182
+ viewBox="0 0 16 16"
183
+ >
184
+ <path
185
+ d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
186
+ />
187
+ </svg>
188
+ </ic-button>
189
+ </ic-card>`,
190
+
191
+ name: "With interaction button",
192
+ };
193
+
194
+ export const Adornment = {
195
+ render: () =>
196
+ html`<ic-card
197
+ heading="This is the card heading"
198
+ subheading="This is the subheading"
199
+ message="This is an example of a new card component with text included."
200
+ >
201
+ <ic-status-tag
202
+ slot="adornment"
203
+ label="Neutral"
204
+ size="small"
205
+ ></ic-status-tag>
206
+ <ic-button
207
+ variant="icon"
208
+ title="More information"
209
+ slot="interaction-button"
210
+ >
211
+ <svg
212
+ xmlns="http://www.w3.org/2000/svg"
213
+ width="16"
214
+ height="16"
215
+ fill="currentColor"
216
+ class="bi bi-three-dots-vertical"
217
+ viewBox="0 0 16 16"
218
+ >
219
+ <path
220
+ d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
221
+ />
222
+ </svg>
223
+ </ic-button>
224
+ <svg
225
+ slot="icon"
226
+ xmlns="http://www.w3.org/2000/svg"
227
+ height="24px"
228
+ viewBox="0 0 24 24"
229
+ width="24px"
230
+ fill="#000000"
231
+ >
232
+ <path d="M0 0h24v24H0V0z" fill="none" />
233
+ <path
234
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
235
+ />
236
+ </svg>
237
+ </ic-card>`,
238
+
239
+ name: "Adornment",
240
+ };
241
+
242
+ export const TopImage = {
243
+ render: () =>
244
+ html`<ic-card
245
+ heading="This is the card heading"
246
+ subheading="This is the subheading"
247
+ message="This is an example of a new card component with text included."
248
+ style="width:360px;"
249
+ >
250
+ <ic-status-tag
251
+ slot="adornment"
252
+ label="Neutral"
253
+ size="small"
254
+ ></ic-status-tag>
255
+ <ic-button
256
+ variant="icon"
257
+ title="More information"
258
+ slot="interaction-button"
259
+ >
260
+ <svg
261
+ xmlns="http://www.w3.org/2000/svg"
262
+ width="16"
263
+ height="16"
264
+ fill="currentColor"
265
+ class="bi bi-three-dots-vertical"
266
+ viewBox="0 0 16 16"
267
+ >
268
+ <path
269
+ d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
270
+ />
271
+ </svg>
272
+ </ic-button>
273
+ <svg
274
+ slot="image-top"
275
+ style="height:326px;width:326px;"
276
+ xmlns="http://www.w3.org/2000/svg"
277
+ viewBox="0 0 1600 900"
278
+ >
279
+ <rect fill="#ff7700" width="1600" height="1600" y="-350" />
280
+ <polygon fill="#cc0000" points="957 450 539 900 1396 900" />
281
+ <polygon fill="#aa0000" points="957 450 872.9 900 1396 900" />
282
+ <polygon fill="#c50022" points="-60 900 398 662 816 900" />
283
+ <polygon fill="#a3001b" points="337 900 398 662 816 900" />
284
+ <polygon fill="#be0044" points="1203 546 1552 900 876 900" />
285
+ <polygon fill="#9c0036" points="1203 546 1552 900 1162 900" />
286
+ <polygon fill="#b80066" points="641 695 886 900 367 900" />
287
+ <polygon fill="#960052" points="587 900 641 695 886 900" />
288
+ <polygon fill="#b10088" points="1710 900 1401 632 1096 900" />
289
+ <polygon fill="#8f006d" points="1710 900 1401 632 1365 900" />
290
+ <polygon fill="#aa00aa" points="1210 900 971 687 725 900" />
291
+ <polygon fill="#880088" points="943 900 1210 900 971 687" />
292
+ </svg>
293
+ <svg
294
+ slot="icon"
295
+ xmlns="http://www.w3.org/2000/svg"
296
+ height="24px"
297
+ viewBox="0 0 24 24"
298
+ width="24px"
299
+ fill="#000000"
300
+ >
301
+ <path d="M0 0h24v24H0V0z" fill="none" />
302
+ <path
303
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
304
+ />
305
+ </svg>
306
+ </ic-card>`,
307
+
308
+ name: "Top image",
309
+ };
310
+
311
+ export const MiddleImage = {
312
+ render: () =>
313
+ html`<ic-card
314
+ heading="This is the card heading"
315
+ subheading="This is the subheading"
316
+ message="This is an example of a new card component with text included."
317
+ style="width:360px;"
318
+ >
319
+ <ic-status-tag
320
+ slot="adornment"
321
+ label="Neutral"
322
+ size="small"
323
+ ></ic-status-tag>
324
+ <ic-button
325
+ variant="icon"
326
+ title="More information"
327
+ slot="interaction-button"
328
+ >
329
+ <svg
330
+ xmlns="http://www.w3.org/2000/svg"
331
+ width="16"
332
+ height="16"
333
+ fill="currentColor"
334
+ class="bi bi-three-dots-vertical"
335
+ viewBox="0 0 16 16"
336
+ >
337
+ <path
338
+ d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
339
+ />
340
+ </svg>
341
+ </ic-button>
342
+ <svg
343
+ slot="image-mid"
344
+ style="height:326px;width:326px;"
345
+ xmlns="http://www.w3.org/2000/svg"
346
+ viewBox="0 0 1600 900"
347
+ >
348
+ <rect fill="#ff7700" width="1600" height="1600" y="-350" />
349
+ <polygon fill="#cc0000" points="957 450 539 900 1396 900" />
350
+ <polygon fill="#aa0000" points="957 450 872.9 900 1396 900" />
351
+ <polygon fill="#c50022" points="-60 900 398 662 816 900" />
352
+ <polygon fill="#a3001b" points="337 900 398 662 816 900" />
353
+ <polygon fill="#be0044" points="1203 546 1552 900 876 900" />
354
+ <polygon fill="#9c0036" points="1203 546 1552 900 1162 900" />
355
+ <polygon fill="#b80066" points="641 695 886 900 367 900" />
356
+ <polygon fill="#960052" points="587 900 641 695 886 900" />
357
+ <polygon fill="#b10088" points="1710 900 1401 632 1096 900" />
358
+ <polygon fill="#8f006d" points="1710 900 1401 632 1365 900" />
359
+ <polygon fill="#aa00aa" points="1210 900 971 687 725 900" />
360
+ <polygon fill="#880088" points="943 900 1210 900 971 687" />
361
+ </svg>
362
+ <svg
363
+ slot="icon"
364
+ xmlns="http://www.w3.org/2000/svg"
365
+ height="24px"
366
+ viewBox="0 0 24 24"
367
+ width="24px"
368
+ fill="#000000"
369
+ >
370
+ <path d="M0 0h24v24H0V0z" fill="none" />
371
+ <path
372
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
373
+ />
374
+ </svg>
375
+ </ic-card>`,
376
+
377
+ name: "Middle image",
378
+ };
379
+
380
+ export const InteractionControls = {
381
+ render: () =>
382
+ html`<ic-card
383
+ heading="This is the card heading"
384
+ subheading="This is the subheading"
385
+ message="This is an example of a new card component with text included."
386
+ style="width:360px;"
387
+ >
388
+ <ic-status-tag
389
+ slot="adornment"
390
+ label="Neutral"
391
+ size="small"
392
+ ></ic-status-tag>
393
+ <ic-button
394
+ variant="icon"
395
+ title="More information"
396
+ slot="interaction-button"
397
+ >
398
+ <svg
399
+ xmlns="http://www.w3.org/2000/svg"
400
+ width="16"
401
+ height="16"
402
+ fill="currentColor"
403
+ class="bi bi-three-dots-vertical"
404
+ viewBox="0 0 16 16"
405
+ >
406
+ <path
407
+ d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
408
+ />
409
+ </svg>
410
+ </ic-button>
411
+ <svg
412
+ slot="image-mid"
413
+ style="height:326px;width:326px;"
414
+ xmlns="http://www.w3.org/2000/svg"
415
+ viewBox="0 0 1600 900"
416
+ >
417
+ <rect fill="#ff7700" width="1600" height="1600" y="-350" />
418
+ <polygon fill="#cc0000" points="957 450 539 900 1396 900" />
419
+ <polygon fill="#aa0000" points="957 450 872.9 900 1396 900" />
420
+ <polygon fill="#c50022" points="-60 900 398 662 816 900" />
421
+ <polygon fill="#a3001b" points="337 900 398 662 816 900" />
422
+ <polygon fill="#be0044" points="1203 546 1552 900 876 900" />
423
+ <polygon fill="#9c0036" points="1203 546 1552 900 1162 900" />
424
+ <polygon fill="#b80066" points="641 695 886 900 367 900" />
425
+ <polygon fill="#960052" points="587 900 641 695 886 900" />
426
+ <polygon fill="#b10088" points="1710 900 1401 632 1096 900" />
427
+ <polygon fill="#8f006d" points="1710 900 1401 632 1365 900" />
428
+ <polygon fill="#aa00aa" points="1210 900 971 687 725 900" />
429
+ <polygon fill="#880088" points="943 900 1210 900 971 687" />
430
+ </svg>
431
+ <svg
432
+ slot="icon"
433
+ xmlns="http://www.w3.org/2000/svg"
434
+ height="24px"
435
+ viewBox="0 0 24 24"
436
+ width="24px"
437
+ fill="#000000"
438
+ >
439
+ <path d="M0 0h24v24H0V0z" fill="none" />
440
+ <path
441
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
442
+ />
443
+ </svg>
444
+ <ic-button slot="interaction-controls" variant="primary"
445
+ >Learn more</ic-button
446
+ >
447
+ <ic-button slot="interaction-controls" variant="secondary"
448
+ >Hide</ic-button
449
+ >
450
+ </ic-card>`,
451
+
452
+ name: "Interaction controls",
453
+ };
454
+
455
+ export const CustomWidth = {
456
+ render: () =>
457
+ html`<div style="display: flex; gap: 16px; flex-direction: column;">
458
+ <ic-card
459
+ heading="This is the card heading"
460
+ subheading="This is the subheading"
461
+ message="This is an example of a reduced width card component."
462
+ style="width:300px;"
463
+ expandable="true"
464
+ >
465
+ <ic-status-tag
466
+ slot="adornment"
467
+ label="Neutral"
468
+ size="small"
469
+ ></ic-status-tag>
470
+ <ic-button
471
+ variant="icon"
472
+ title="More information"
473
+ slot="interaction-button"
474
+ >
475
+ <svg
476
+ xmlns="http://www.w3.org/2000/svg"
477
+ width="16"
478
+ height="16"
479
+ fill="currentColor"
480
+ class="bi bi-three-dots-vertical"
481
+ viewBox="0 0 16 16"
482
+ >
483
+ <path
484
+ d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
485
+ />
486
+ </svg>
487
+ </ic-button>
488
+ <svg
489
+ slot="image-mid"
490
+ xmlns="http://www.w3.org/2000/svg"
491
+ viewBox="0 0 1600 900"
492
+ style="height:326px;width:326px;"
493
+ >
494
+ <rect fill="#ff7700" width="1600" height="1600" y="-350" />
495
+ <polygon fill="#cc0000" points="957 450 539 900 1396 900" />
496
+ <polygon fill="#aa0000" points="957 450 872.9 900 1396 900" />
497
+ <polygon fill="#c50022" points="-60 900 398 662 816 900" />
498
+ <polygon fill="#a3001b" points="337 900 398 662 816 900" />
499
+ <polygon fill="#be0044" points="1203 546 1552 900 876 900" />
500
+ <polygon fill="#9c0036" points="1203 546 1552 900 1162 900" />
501
+ <polygon fill="#b80066" points="641 695 886 900 367 900" />
502
+ <polygon fill="#960052" points="587 900 641 695 886 900" />
503
+ <polygon fill="#b10088" points="1710 900 1401 632 1096 900" />
504
+ <polygon fill="#8f006d" points="1710 900 1401 632 1365 900" />
505
+ <polygon fill="#aa00aa" points="1210 900 971 687 725 900" />
506
+ <polygon fill="#880088" points="943 900 1210 900 971 687" />
507
+ </svg>
508
+ <svg
509
+ slot="icon"
510
+ xmlns="http://www.w3.org/2000/svg"
511
+ height="24px"
512
+ viewBox="0 0 24 24"
513
+ width="24px"
514
+ fill="#000000"
515
+ >
516
+ <path d="M0 0h24v24H0V0z" fill="none" />
517
+ <path
518
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
519
+ />
520
+ </svg>
521
+ <ic-button slot="interaction-controls" variant="primary"
522
+ >Learn more</ic-button
523
+ >
524
+ <ic-button slot="interaction-controls" variant="secondary"
525
+ ><svg
526
+ xmlns="http://www.w3.org/2000/svg"
527
+ viewBox="0 0 24 24"
528
+ slot="left-icon"
529
+ >
530
+ <title>heart-outline</title>
531
+ <path
532
+ d="M12.1,18.55L12,18.65L11.89,18.55C7.14,14.24 4,11.39 4,8.5C4,6.5 5.5,5 7.5,5C9.04,5 10.54,6 11.07,7.36H12.93C13.46,6 14.96,5 16.5,5C18.5,5 20,6.5 20,8.5C20,11.39 16.86,14.24 12.1,18.55M16.5,3C14.76,3 13.09,3.81 12,5.08C10.91,3.81 9.24,3 7.5,3C4.42,3 2,5.41 2,8.5C2,12.27 5.4,15.36 10.55,20.03L12,21.35L13.45,20.03C18.6,15.36 22,12.27 22,8.5C22,5.41 19.58,3 16.5,3Z"
533
+ /></svg
534
+ >Add to favourites</ic-button
535
+ >
536
+ <ic-button slot="interaction-controls" variant="secondary"
537
+ >Hide</ic-button
538
+ >
539
+ </ic-card>
540
+ <ic-card
541
+ heading="This is the card heading"
542
+ subheading="This is the subheading"
543
+ message="This is an example of an increased width card component."
544
+ style="width:500px;"
545
+ expandable="true"
546
+ >
547
+ <ic-status-tag
548
+ slot="adornment"
549
+ label="Neutral"
550
+ size="small"
551
+ ></ic-status-tag>
552
+ <ic-button
553
+ variant="icon"
554
+ title="More information"
555
+ slot="interaction-button"
556
+ >
557
+ <svg
558
+ xmlns="http://www.w3.org/2000/svg"
559
+ width="16"
560
+ height="16"
561
+ fill="currentColor"
562
+ class="bi bi-three-dots-vertical"
563
+ viewBox="0 0 16 16"
564
+ >
565
+ <path
566
+ d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
567
+ />
568
+ </svg>
569
+ </ic-button>
570
+ <svg
571
+ slot="image-mid"
572
+ xmlns="http://www.w3.org/2000/svg"
573
+ viewBox="0 0 1600 900"
574
+ style="height:526px;width:526px;"
575
+ >
576
+ <rect fill="#ff7700" width="1600" height="1600" y="-350" />
577
+ <polygon fill="#cc0000" points="957 450 539 900 1396 900" />
578
+ <polygon fill="#aa0000" points="957 450 872.9 900 1396 900" />
579
+ <polygon fill="#c50022" points="-60 900 398 662 816 900" />
580
+ <polygon fill="#a3001b" points="337 900 398 662 816 900" />
581
+ <polygon fill="#be0044" points="1203 546 1552 900 876 900" />
582
+ <polygon fill="#9c0036" points="1203 546 1552 900 1162 900" />
583
+ <polygon fill="#b80066" points="641 695 886 900 367 900" />
584
+ <polygon fill="#960052" points="587 900 641 695 886 900" />
585
+ <polygon fill="#b10088" points="1710 900 1401 632 1096 900" />
586
+ <polygon fill="#8f006d" points="1710 900 1401 632 1365 900" />
587
+ <polygon fill="#aa00aa" points="1210 900 971 687 725 900" />
588
+ <polygon fill="#880088" points="943 900 1210 900 971 687" />
589
+ </svg>
590
+ <svg
591
+ slot="icon"
592
+ xmlns="http://www.w3.org/2000/svg"
593
+ height="24px"
594
+ viewBox="0 0 24 24"
595
+ width="24px"
596
+ fill="#000000"
597
+ >
598
+ <path d="M0 0h24v24H0V0z" fill="none" />
599
+ <path
600
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
601
+ />
602
+ </svg>
603
+ <ic-button slot="interaction-controls" variant="primary"
604
+ >Learn more</ic-button
605
+ >
606
+ <ic-button slot="interaction-controls" variant="secondary"
607
+ ><svg
608
+ xmlns="http://www.w3.org/2000/svg"
609
+ viewBox="0 0 24 24"
610
+ slot="left-icon"
611
+ >
612
+ <title>heart-outline</title>
613
+ <path
614
+ d="M12.1,18.55L12,18.65L11.89,18.55C7.14,14.24 4,11.39 4,8.5C4,6.5 5.5,5 7.5,5C9.04,5 10.54,6 11.07,7.36H12.93C13.46,6 14.96,5 16.5,5C18.5,5 20,6.5 20,8.5C20,11.39 16.86,14.24 12.1,18.55M16.5,3C14.76,3 13.09,3.81 12,5.08C10.91,3.81 9.24,3 7.5,3C4.42,3 2,5.41 2,8.5C2,12.27 5.4,15.36 10.55,20.03L12,21.35L13.45,20.03C18.6,15.36 22,12.27 22,8.5C22,5.41 19.58,3 16.5,3Z"
615
+ /></svg
616
+ >Add to favourites</ic-button
617
+ >
618
+ <ic-button slot="interaction-controls" variant="secondary"
619
+ >Hide</ic-button
620
+ >
621
+ </ic-card>
622
+ </div>`,
623
+
624
+ name: "Custom width",
625
+ };
626
+
627
+ export const AdditionalHeight = {
628
+ render: () =>
629
+ html`<ic-card
630
+ heading="This is the card heading"
631
+ subheading="This is the subheading"
632
+ message="This is an example of a new card component with text included."
633
+ style="width:360px; height: 700px"
634
+ >
635
+ <ic-status-tag
636
+ slot="adornment"
637
+ label="Neutral"
638
+ size="small"
639
+ ></ic-status-tag>
640
+ <ic-button
641
+ variant="icon"
642
+ title="More information"
643
+ slot="interaction-button"
644
+ >
645
+ <svg
646
+ xmlns="http://www.w3.org/2000/svg"
647
+ width="16"
648
+ height="16"
649
+ fill="currentColor"
650
+ class="bi bi-three-dots-vertical"
651
+ viewBox="0 0 16 16"
652
+ >
653
+ <path
654
+ d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
655
+ />
656
+ </svg>
657
+ </ic-button>
658
+ <svg
659
+ slot="image-mid"
660
+ style="height:326px;width:326px;"
661
+ xmlns="http://www.w3.org/2000/svg"
662
+ viewBox="0 0 1600 900"
663
+ >
664
+ <rect fill="#ff7700" width="1600" height="1600" y="-350" />
665
+ <polygon fill="#cc0000" points="957 450 539 900 1396 900" />
666
+ <polygon fill="#aa0000" points="957 450 872.9 900 1396 900" />
667
+ <polygon fill="#c50022" points="-60 900 398 662 816 900" />
668
+ <polygon fill="#a3001b" points="337 900 398 662 816 900" />
669
+ <polygon fill="#be0044" points="1203 546 1552 900 876 900" />
670
+ <polygon fill="#9c0036" points="1203 546 1552 900 1162 900" />
671
+ <polygon fill="#b80066" points="641 695 886 900 367 900" />
672
+ <polygon fill="#960052" points="587 900 641 695 886 900" />
673
+ <polygon fill="#b10088" points="1710 900 1401 632 1096 900" />
674
+ <polygon fill="#8f006d" points="1710 900 1401 632 1365 900" />
675
+ <polygon fill="#aa00aa" points="1210 900 971 687 725 900" />
676
+ <polygon fill="#880088" points="943 900 1210 900 971 687" />
677
+ </svg>
678
+ <svg
679
+ slot="icon"
680
+ xmlns="http://www.w3.org/2000/svg"
681
+ height="24px"
682
+ viewBox="0 0 24 24"
683
+ width="24px"
684
+ fill="#000000"
685
+ >
686
+ <path d="M0 0h24v24H0V0z" fill="none" />
687
+ <path
688
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
689
+ />
690
+ </svg>
691
+ <ic-button slot="interaction-controls" variant="primary"
692
+ >Learn more</ic-button
693
+ >
694
+ <ic-button slot="interaction-controls" variant="secondary"
695
+ >Hide</ic-button
696
+ >
697
+ </ic-card>`,
698
+
699
+ name: "Additional height",
700
+ };
701
+
702
+ export const Expandable = {
703
+ render: () =>
704
+ html`<ic-card
705
+ heading="This is the card heading"
706
+ subheading="This is the subheading"
707
+ message="This is an example of a new card component with text included."
708
+ expandable
709
+ style="width:360px;"
710
+ >
711
+ <ic-status-tag
712
+ slot="adornment"
713
+ label="Neutral"
714
+ size="small"
715
+ ></ic-status-tag>
716
+ <ic-button
717
+ variant="icon"
718
+ title="More information"
719
+ slot="interaction-button"
720
+ >
721
+ <svg
722
+ xmlns="http://www.w3.org/2000/svg"
723
+ width="16"
724
+ height="16"
725
+ fill="currentColor"
726
+ class="bi bi-three-dots-vertical"
727
+ viewBox="0 0 16 16"
728
+ >
729
+ <path
730
+ d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
731
+ />
732
+ </svg>
733
+ </ic-button>
734
+ <svg
735
+ slot="image-mid"
736
+ style="height:326px;width:326px;"
737
+ xmlns="http://www.w3.org/2000/svg"
738
+ viewBox="0 0 1600 900"
739
+ >
740
+ <rect fill="#ff7700" width="1600" height="1600" y="-350" />
741
+ <polygon fill="#cc0000" points="957 450 539 900 1396 900" />
742
+ <polygon fill="#aa0000" points="957 450 872.9 900 1396 900" />
743
+ <polygon fill="#c50022" points="-60 900 398 662 816 900" />
744
+ <polygon fill="#a3001b" points="337 900 398 662 816 900" />
745
+ <polygon fill="#be0044" points="1203 546 1552 900 876 900" />
746
+ <polygon fill="#9c0036" points="1203 546 1552 900 1162 900" />
747
+ <polygon fill="#b80066" points="641 695 886 900 367 900" />
748
+ <polygon fill="#960052" points="587 900 641 695 886 900" />
749
+ <polygon fill="#b10088" points="1710 900 1401 632 1096 900" />
750
+ <polygon fill="#8f006d" points="1710 900 1401 632 1365 900" />
751
+ <polygon fill="#aa00aa" points="1210 900 971 687 725 900" />
752
+ <polygon fill="#880088" points="943 900 1210 900 971 687" />
753
+ </svg>
754
+ <svg
755
+ slot="icon"
756
+ xmlns="http://www.w3.org/2000/svg"
757
+ height="24px"
758
+ viewBox="0 0 24 24"
759
+ width="24px"
760
+ fill="#000000"
761
+ >
762
+ <path d="M0 0h24v24H0V0z" fill="none" />
763
+ <path
764
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
765
+ />
766
+ </svg>
767
+ <ic-button slot="interaction-controls" variant="primary"
768
+ >Learn more</ic-button
769
+ >
770
+ <ic-button slot="interaction-controls" variant="secondary"
771
+ >Hide</ic-button
772
+ >
773
+ <ic-typography slot="expanded-content" variant="body"
774
+ >This is an example of a new card component with text
775
+ included.</ic-typography
776
+ >
777
+ </ic-card>`,
778
+
779
+ name: "Expandable",
780
+ };
781
+
782
+ export const ClickableLink = {
783
+ render: () =>
784
+ html`<ic-card
785
+ heading="This is the card heading"
786
+ subheading="This is the subheading"
787
+ message="This is an example of a new card component with text included."
788
+ clickable="true"
789
+ href="https://www.google.com"
790
+ ><svg
791
+ slot="icon"
792
+ xmlns="http://www.w3.org/2000/svg"
793
+ height="24px"
794
+ viewBox="0 0 24 24"
795
+ width="24px"
796
+ fill="#000000"
797
+ >
798
+ <path d="M0 0h24v24H0V0z" fill="none" />
799
+ <path
800
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
801
+ /></svg
802
+ ></ic-card>`,
803
+
804
+ name: "Clickable link",
805
+ };
806
+
807
+ export const ClickableButton = {
808
+ render: () =>
809
+ html`<ic-card
810
+ heading="This is the card heading"
811
+ subheading="This is the subheading"
812
+ message="This is an example of a new card component with text included."
813
+ clickable="true"
814
+ onclick="alert('clicked')"
815
+ ><svg
816
+ slot="icon"
817
+ xmlns="http://www.w3.org/2000/svg"
818
+ height="24px"
819
+ viewBox="0 0 24 24"
820
+ width="24px"
821
+ fill="#000000"
822
+ >
823
+ <path d="M0 0h24v24H0V0z" fill="none" />
824
+ <path
825
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
826
+ /></svg
827
+ ></ic-card>`,
828
+
829
+ name: "Clickable button",
830
+ };
831
+
832
+ export const Disabled = {
833
+ render: () =>
834
+ html`<ic-card
835
+ heading="This is the card heading"
836
+ subheading="This is the subheading"
837
+ message="This is an example of a new card component with text included."
838
+ clickable="true"
839
+ disabled="true"
840
+ onClick="alert('clicked')"
841
+ ><svg
842
+ slot="icon"
843
+ xmlns="http://www.w3.org/2000/svg"
844
+ height="24px"
845
+ viewBox="0 0 24 24"
846
+ width="24px"
847
+ fill="#000000"
848
+ >
849
+ <path d="M0 0h24v24H0V0z" fill="none" />
850
+ <path
851
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
852
+ /></svg
853
+ ></ic-card>`,
854
+
855
+ name: "Disabled",
856
+ };
857
+
858
+ export const FullWidth = {
859
+ render: () => html`
860
+ <ic-card
861
+ heading="This is the card heading"
862
+ subheading="This is the subheading"
863
+ message="This is an example of a card component that fills it's parent container."
864
+ clickable="true"
865
+ full-width="true"
866
+ href="https://www.google.com"
867
+ ><svg
868
+ slot="icon"
869
+ xmlns="http://www.w3.org/2000/svg"
870
+ height="24px"
871
+ viewBox="0 0 24 24"
872
+ width="24px"
873
+ fill="#000000"
874
+ >
875
+ <path d="M0 0h24v24H0V0z" fill="none" />
876
+ <path
877
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
878
+ /></svg
879
+ ></ic-card>
880
+ `,
881
+
882
+ name: "Full width",
883
+ };
884
+
885
+ export const WrappedByLink = {
886
+ render: () =>
887
+ html`<a href="/"
888
+ ><ic-card
889
+ heading="This is the card heading"
890
+ subheading="This is the subheading"
891
+ message="This is an example of a new card component with text included."
892
+ ><svg
893
+ slot="icon"
894
+ xmlns="http://www.w3.org/2000/svg"
895
+ height="24px"
896
+ viewBox="0 0 24 24"
897
+ width="24px"
898
+ fill="#000000"
899
+ >
900
+ <path d="M0 0h24v24H0V0z" fill="none" />
901
+ <path
902
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
903
+ /></svg></ic-card
904
+ ></a>`,
905
+
906
+ name: "Wrapped by link",
907
+ };
908
+
909
+ export const Playground = {
910
+ render: (args) =>
911
+ html`<ic-card
912
+ clickable=${args.clickable}
913
+ disabled=${args.disabled}
914
+ expandable=${args.expandable}
915
+ full-width=${args.fullWidth}
916
+ heading=${args.heading}
917
+ href=${args.href}
918
+ message=${args.message}
919
+ subheading=${args.subheading}
920
+ >
921
+ ${args.showIcon &&
922
+ html`
923
+ <svg
924
+ slot="icon"
925
+ xmlns="http://www.w3.org/2000/svg"
926
+ height="24px"
927
+ viewBox="0 0 24 24"
928
+ width="24px"
929
+ fill="#000000"
930
+ >
931
+ <path d="M0 0h24v24H0V0z" fill="none" />
932
+ <path
933
+ d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
934
+ />
935
+ </svg>
936
+ `}
937
+ ${args.showBadge &&
938
+ html` <ic-badge text-label="1" slot="badge"></ic-badge> `}
939
+ ${args.showInteractionButton &&
940
+ html`
941
+ <ic-button
942
+ variant="icon"
943
+ title="More information"
944
+ slot="interaction-button"
945
+ >
946
+ <svg
947
+ xmlns="http://www.w3.org/2000/svg"
948
+ width="16"
949
+ height="16"
950
+ fill="currentColor"
951
+ class="bi bi-three-dots-vertical"
952
+ viewBox="0 0 16 16"
953
+ >
954
+ <path
955
+ d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
956
+ />
957
+ </svg>
958
+ </ic-button>
959
+ `}
960
+ ${args.showAdornment &&
961
+ html`
962
+ <ic-status-tag
963
+ slot="adornment"
964
+ label="Neutral"
965
+ size="small"
966
+ ></ic-status-tag>
967
+ `}
968
+ ${args.showImageTop &&
969
+ html`
970
+ <svg
971
+ slot="image-top"
972
+ style="height:200px;width:326px;"
973
+ xmlns="http://www.w3.org/2000/svg"
974
+ viewBox="0 0 1600 900"
975
+ >
976
+ <rect fill="#edb99d" width="1600" height="1600" y="-350" />
977
+ <polygon fill="#cc0000" points="957 450 539 900 1396 900" />
978
+ <polygon fill="#aa0000" points="957 450 872.9 900 1396 900" />
979
+ <polygon fill="#c50022" points="-60 900 398 662 816 900" />
980
+ <polygon fill="#a3001b" points="337 900 398 662 816 900" />
981
+ <polygon fill="#be0044" points="1203 546 1552 900 876 900" />
982
+ <polygon fill="#9c0036" points="1203 546 1552 900 1162 900" />
983
+ <polygon fill="#b80066" points="641 695 886 900 367 900" />
984
+ <polygon fill="#960052" points="587 900 641 695 886 900" />
985
+ <polygon fill="#b10088" points="1710 900 1401 632 1096 900" />
986
+ <polygon fill="#8f006d" points="1710 900 1401 632 1365 900" />
987
+ <polygon fill="#aa00aa" points="1210 900 971 687 725 900" />
988
+ <polygon fill="#880088" points="943 900 1210 900 971 687" />
989
+ </svg>
990
+ `}
991
+ ${args.showImageMid &&
992
+ html`
993
+ <svg
994
+ slot="image-mid"
995
+ style="height:200px;width:326px;"
996
+ xmlns="http://www.w3.org/2000/svg"
997
+ viewBox="0 0 1600 900"
998
+ >
999
+ <rect fill="#FFC0CB" width="1600" height="1600" y="-350" />
1000
+ <polygon fill="#cc0000" points="957 450 539 900 1396 900" />
1001
+ <polygon fill="#aa0000" points="957 450 872.9 900 1396 900" />
1002
+ <polygon fill="#c50022" points="-60 900 398 662 816 900" />
1003
+ <polygon fill="#ff3300" points="337 900 398 662 816 900" />
1004
+ <polygon fill="#be0044" points="1203 546 1552 900 876 900" />
1005
+ <polygon fill="#9c0036" points="1203 546 1552 900 1162 900" />
1006
+ <polygon fill="#b80066" points="641 695 886 900 367 900" />
1007
+ <polygon fill="#960052" points="587 900 641 695 886 900" />
1008
+ <polygon fill="#b10088" points="1710 900 1401 632 1096 900" />
1009
+ <polygon fill="#8f006d" points="1710 900 1401 632 1365 900" />
1010
+ <polygon fill="#aa00aa" points="1210 900 971 687 725 900" />
1011
+ <polygon fill="#880088" points="943 900 1210 900 971 687" />
1012
+ </svg>
1013
+ `}
1014
+ ${args.showInteractionControls &&
1015
+ html`
1016
+ <ic-button slot="interaction-controls" variant="primary"
1017
+ >Learn more</ic-button
1018
+ >
1019
+ <ic-button slot="interaction-controls" variant="secondary"
1020
+ >Hide</ic-button
1021
+ >
1022
+ `}
1023
+ ${args.showExpandedContent &&
1024
+ html`
1025
+ <ic-typography slot="expanded-content" variant="body"
1026
+ >This is an example of a new card component with text
1027
+ included.</ic-typography
1028
+ >
1029
+ `}
1030
+ </ic-card>`,
1031
+
1032
+ args: defaultArgs,
1033
+ name: "Playground",
1034
+ };