@ukic/web-components 2.35.0 → 2.35.1

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 (68) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
  3. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  4. package/dist/cjs/ic-toast.cjs.entry.js +2 -2
  5. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  6. package/dist/collection/components/ic-accordion/ic-accordion.stories.js +635 -0
  7. package/dist/collection/components/ic-alert/ic-alert.stories.js +257 -0
  8. package/dist/collection/components/ic-back-to-top/ic-back-to-top.stories.js +162 -0
  9. package/dist/collection/components/ic-badge/ic-badge.stories.js +1082 -0
  10. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.stories.js +502 -0
  11. package/dist/collection/components/ic-button/ic-button.stories.js +2218 -0
  12. package/dist/collection/components/ic-card/ic-card.stories.js +1034 -0
  13. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +687 -0
  14. package/dist/collection/components/ic-chip/ic-chip.stories.js +670 -0
  15. package/dist/collection/components/ic-classification-banner/ic-classification-banner.stories.js +131 -0
  16. package/dist/collection/components/ic-data-entity/ic-data-entity.stories.js +487 -0
  17. package/dist/collection/components/ic-dialog/ic-dialog.stories.js +1256 -0
  18. package/dist/collection/components/ic-empty-state/ic-empty-state.stories.js +397 -0
  19. package/dist/collection/components/ic-footer/ic-footer.stories.js +383 -0
  20. package/dist/collection/components/ic-hero/ic-hero.stories.js +489 -0
  21. package/dist/collection/components/ic-link/ic-link.stories.js +114 -0
  22. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +416 -0
  23. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +7 -35
  24. package/dist/collection/components/ic-page-header/ic-page-header.stories.js +557 -0
  25. package/dist/collection/components/ic-pagination/ic-pagination.stories.js +125 -0
  26. package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +486 -0
  27. package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +450 -0
  28. package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +591 -0
  29. package/dist/collection/components/ic-section-container/ic-section-container.stories.js +62 -0
  30. package/dist/collection/components/ic-select/ic-select-searchable.stories.js +953 -0
  31. package/dist/collection/components/ic-select/ic-select-single.stories.js +780 -0
  32. package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +2526 -0
  33. package/dist/collection/components/ic-skeleton/ic-skeleton.stories.js +141 -0
  34. package/dist/collection/components/ic-status-tag/ic-status-tag.stories.js +161 -0
  35. package/dist/collection/components/ic-stepper/ic-stepper.stories.js +327 -0
  36. package/dist/collection/components/ic-switch/ic-switch.stories.js +171 -0
  37. package/dist/collection/components/ic-tab-context/ic-tabs.stories.js +388 -0
  38. package/dist/collection/components/ic-text-field/ic-text-field.stories.js +1083 -0
  39. package/dist/collection/components/ic-theme/ic-theme.stories.js +171 -0
  40. package/dist/collection/components/ic-toast/ic-toast.js +2 -2
  41. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  42. package/dist/collection/components/ic-toast/ic-toast.stories.js +413 -0
  43. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +3 -3
  44. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
  45. package/dist/collection/components/ic-toggle-button/ic-toggle-button.stories.js +537 -0
  46. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +610 -0
  47. package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +356 -0
  48. package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +1083 -0
  49. package/dist/collection/components/ic-typography/ic-typography.stories.js +437 -0
  50. package/dist/collection/patterns/top-nav-content-footer.stories.js +109 -0
  51. package/dist/collection/patterns/z-index.stories.js +474 -0
  52. package/dist/components/ic-navigation-item.js +1 -1
  53. package/dist/components/ic-navigation-item.js.map +1 -1
  54. package/dist/components/ic-toast.js +2 -2
  55. package/dist/components/ic-toast.js.map +1 -1
  56. package/dist/core/core.esm.js +1 -1
  57. package/dist/core/p-3e8023ff.entry.js +2 -0
  58. package/dist/core/p-3e8023ff.entry.js.map +1 -0
  59. package/dist/core/{p-7e8a4abd.entry.js → p-bfaa257c.entry.js} +2 -2
  60. package/dist/core/{p-7e8a4abd.entry.js.map → p-bfaa257c.entry.js.map} +1 -1
  61. package/dist/esm/ic-navigation-item.entry.js +1 -1
  62. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  63. package/dist/esm/ic-toast.entry.js +2 -2
  64. package/dist/esm/ic-toast.entry.js.map +1 -1
  65. package/hydrate/index.js +3 -3
  66. package/package.json +15 -11
  67. package/dist/core/p-dfb3e76e.entry.js +0 -2
  68. package/dist/core/p-dfb3e76e.entry.js.map +0 -1
@@ -0,0 +1,383 @@
1
+ import { html } from "lit-html";
2
+
3
+ export default {
4
+ title: "Web Components/Footer",
5
+ component: "ic-footer",
6
+ };
7
+
8
+ export const UngroupedLinks = {
9
+ render: () => html`
10
+ <ic-footer
11
+ description="The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback,
12
+ please get in touch."
13
+ caption="All content is available under the Open Government Licence v3.0, except source code and code examples which are available under the MIT Licence."
14
+ >
15
+ <ic-footer-link slot="link" href="/">Get Started</ic-footer-link>
16
+ <ic-footer-link slot="link" href="/">Accessibility</ic-footer-link>
17
+ <ic-footer-link slot="link" href="/">Styles</ic-footer-link>
18
+ <ic-footer-link slot="link" href="/" target="_blank"
19
+ >Components</ic-footer-link
20
+ >
21
+ <ic-footer-link slot="link" href="/">Patterns</ic-footer-link>
22
+ <ic-footer-link slot="link" href="/">Design toolkit</ic-footer-link>
23
+ <div
24
+ slot="logo"
25
+ style="width:100px;height:100px;display:flex;align-items:center;justify-content:center;
26
+ background-color:var(--ic-theme-primary);color:var(--ic-theme-text);"
27
+ >
28
+ Logo
29
+ </div>
30
+ </ic-footer>
31
+ `,
32
+
33
+ name: "Ungrouped links",
34
+ };
35
+
36
+ export const GroupedLinks = {
37
+ render: () => html`
38
+ <ic-footer
39
+ group-links
40
+ description="The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback,
41
+ please get in touch."
42
+ caption="All content is available under the Open Government Licence v3.0, except source code and code examples which are available under the MIT Licence."
43
+ >
44
+ <ic-footer-link-group slot="link" group-title="Links 1">
45
+ <ic-footer-link href="/">Get Started</ic-footer-link>
46
+ <ic-footer-link href="/">Accessibility</ic-footer-link>
47
+ <ic-footer-link href="/">Styles</ic-footer-link>
48
+ <ic-footer-link href="/" target="_blank">Components</ic-footer-link>
49
+ <ic-footer-link href="/">Patterns</ic-footer-link>
50
+ <ic-footer-link href="/">Design toolkit</ic-footer-link>
51
+ </ic-footer-link-group>
52
+ <ic-footer-link-group slot="link" group-title="Links 2">
53
+ <ic-footer-link href="/">Get Started</ic-footer-link>
54
+ <ic-footer-link href="/">Accessibility</ic-footer-link>
55
+ <ic-footer-link href="/">Styles</ic-footer-link>
56
+ <ic-footer-link href="/">Components</ic-footer-link>
57
+ <ic-footer-link href="/">Patterns</ic-footer-link>
58
+ <ic-footer-link href="/">Design toolkit</ic-footer-link>
59
+ </ic-footer-link-group>
60
+ <ic-footer-link-group slot="link" group-title="Links 3">
61
+ <ic-footer-link href="/">Get Started</ic-footer-link>
62
+ <ic-footer-link href="/">Accessibility</ic-footer-link>
63
+ <ic-footer-link href="/">Styles</ic-footer-link>
64
+ <ic-footer-link href="/">Components</ic-footer-link>
65
+ <ic-footer-link href="/">Patterns</ic-footer-link>
66
+ <ic-footer-link href="/">Design toolkit</ic-footer-link>
67
+ </ic-footer-link-group>
68
+ <div
69
+ slot="logo"
70
+ style="width:100px;height:100px;display:flex;align-items:center;justify-content:center;
71
+ background-color:var(--ic-theme-primary);color:var(--ic-theme-text);"
72
+ >
73
+ Logo
74
+ </div>
75
+ </ic-footer>
76
+ `,
77
+
78
+ name: "Grouped links",
79
+ };
80
+
81
+ export const WithClassificationBanner = {
82
+ render: () =>
83
+ html` <ic-classification-banner
84
+ classification="official"
85
+ ></ic-classification-banner>
86
+ <ic-footer
87
+ aligned="full-width"
88
+ description="The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback,
89
+ please get in touch."
90
+ caption="All content is available under the Open Government Licence v3.0, except source code and code examples which are available under the MIT Licence."
91
+ style="position:fixed;bottom:0;left:0;right:0;"
92
+ >
93
+ <ic-footer-link slot="link" href="/">Get Started</ic-footer-link>
94
+ <ic-footer-link slot="link" href="/">Accessibility</ic-footer-link>
95
+ <ic-footer-link slot="link" href="/">Styles</ic-footer-link>
96
+ <ic-footer-link slot="link" href="/">Components</ic-footer-link>
97
+ <ic-footer-link slot="link" href="/">Patterns</ic-footer-link>
98
+ <ic-footer-link slot="link" href="/">Design toolkit</ic-footer-link>
99
+ <div
100
+ slot="logo"
101
+ style="width:100px;height:100px;display:flex;align-items:center;justify-content:center;
102
+ background-color:var(--ic-theme-primary);color:var(--ic-theme-text);"
103
+ >
104
+ Logo
105
+ </div>
106
+ <div
107
+ slot="logo"
108
+ style="width:100px;height:100px;display:flex;align-items:center;justify-content:center;
109
+ background-color:var(--ic-theme-primary);color:var(--ic-theme-texy);"
110
+ >
111
+ Logo
112
+ </div>
113
+ <div
114
+ slot="logo"
115
+ style="width:100px;height:100px;display:flex;align-items:center;justify-content:center;
116
+ background-color:var(--ic-theme-primary);color:var(--ic-theme-text);"
117
+ >
118
+ Logo
119
+ </div>
120
+ </ic-footer>`,
121
+
122
+ name: "With classification banner",
123
+ };
124
+
125
+ export const Theming = {
126
+ render: () =>
127
+ html` <ic-theme color="rgb(27, 60, 121)"></ic-theme>
128
+ <ic-button
129
+ variant="primary"
130
+ id="default-btn"
131
+ onClick="document.querySelector('ic-theme').color='rgb(27, 60, 121)'"
132
+ >
133
+ Default theme
134
+ </ic-button>
135
+ <ic-button
136
+ variant="primary"
137
+ id="custom-btn"
138
+ onClick="document.querySelector('ic-theme').color='rgb(255, 201, 60)'"
139
+ >
140
+ Sunrise theme
141
+ </ic-button>
142
+ <ic-footer
143
+ group-links
144
+ aligned="full-width"
145
+ description="The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback,
146
+ please get in touch."
147
+ caption="All content is available under the Open Government Licence v3.0, except source code and code examples which are available under the MIT Licence."
148
+ style="position:fixed;bottom:0;left:0;right:0;"
149
+ >
150
+ <ic-footer-link-group slot="link" group-title="Links 1">
151
+ <ic-footer-link href="/">Get Started</ic-footer-link>
152
+ <ic-footer-link href="/">Accessibility</ic-footer-link>
153
+ <ic-footer-link href="/">Styles</ic-footer-link>
154
+ <ic-footer-link href="/">Components</ic-footer-link>
155
+ <ic-footer-link href="/">Patterns</ic-footer-link>
156
+ <ic-footer-link href="/">Design toolkit</ic-footer-link>
157
+ </ic-footer-link-group>
158
+ <ic-footer-link-group slot="link" group-title="Links 2">
159
+ <ic-footer-link href="/">Get Started</ic-footer-link>
160
+ <ic-footer-link href="/">Accessibility</ic-footer-link>
161
+ <ic-footer-link href="/">Styles</ic-footer-link>
162
+ <ic-footer-link href="/">Components</ic-footer-link>
163
+ <ic-footer-link href="/">Patterns</ic-footer-link>
164
+ <ic-footer-link href="/">Design toolkit</ic-footer-link>
165
+ </ic-footer-link-group>
166
+ <ic-footer-link-group slot="link" group-title="Links 3">
167
+ <ic-footer-link href="/">Get Started</ic-footer-link>
168
+ <ic-footer-link href="/">Accessibility</ic-footer-link>
169
+ <ic-footer-link href="/">Styles</ic-footer-link>
170
+ <ic-footer-link href="/">Components</ic-footer-link>
171
+ <ic-footer-link href="/">Patterns</ic-footer-link>
172
+ <ic-footer-link href="/">Design toolkit</ic-footer-link>
173
+ </ic-footer-link-group>
174
+ <div
175
+ slot="logo"
176
+ style="width:100px;height:100px;display:flex;align-items:center;justify-content:center;
177
+ background-color:var(--ic-theme-primary);color:var(--ic-theme-text);"
178
+ >
179
+ Logo
180
+ </div>
181
+ <div
182
+ slot="logo"
183
+ style="width:100px;height:100px;display:flex;align-items:center;justify-content:center;
184
+ background-color:var(--ic-theme-primary);color:var(--ic-theme-texy);"
185
+ >
186
+ Logo
187
+ </div>
188
+ <div
189
+ slot="logo"
190
+ style="width:100px;height:100px;display:flex;align-items:center;justify-content:center;
191
+ background-color:var(--ic-theme-primary);color:var(--ic-theme-text);"
192
+ >
193
+ Logo
194
+ </div>
195
+ </ic-footer>`,
196
+
197
+ name: "Theming",
198
+ };
199
+
200
+ export const WithLogoLinks = {
201
+ render: () => html`
202
+ <ic-footer
203
+ description="The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback,
204
+ please get in touch."
205
+ caption="All content is available under the Open Government Licence v3.0, except source code and code examples which are available under the MIT Licence."
206
+ >
207
+ <ic-footer-link slot="link" href="/">Get Started</ic-footer-link>
208
+ <ic-footer-link slot="link" href="/">Accessibility</ic-footer-link>
209
+ <ic-footer-link slot="link" href="/">Styles</ic-footer-link>
210
+ <ic-footer-link slot="link" href="/">Components</ic-footer-link>
211
+ <ic-footer-link slot="link" href="/">Patterns</ic-footer-link>
212
+ <ic-footer-link slot="link" href="/">Design toolkit</ic-footer-link>
213
+ <div slot="logo" style="display:flex;gap:var(--ic-space-sm);">
214
+ <ic-footer-link href="/">
215
+ <svg
216
+ xmlns="http://www.w3.org/2000/svg"
217
+ height="48px"
218
+ viewBox="0 0 24 24"
219
+ width="48px"
220
+ fill="#FFFFFF"
221
+ aria-label="logo"
222
+ >
223
+ <path d="M0 0h24v24H0V0z" fill="none" />
224
+ <path
225
+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"
226
+ />
227
+ </svg>
228
+ </ic-footer-link>
229
+ <ic-footer-link href="/">
230
+ <svg
231
+ xmlns="http://www.w3.org/2000/svg"
232
+ height="48px"
233
+ viewBox="0 0 24 24"
234
+ width="48px"
235
+ fill="#FFFFFF"
236
+ aria-label="logo"
237
+ >
238
+ <path d="M0 0h24v24H0V0z" fill="none" />
239
+ <path
240
+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"
241
+ />
242
+ </svg>
243
+ </ic-footer-link>
244
+ <ic-footer-link href="/">
245
+ <svg
246
+ xmlns="http://www.w3.org/2000/svg"
247
+ height="48px"
248
+ viewBox="0 0 24 24"
249
+ width="48px"
250
+ fill="#FFFFFF"
251
+ aria-label="logo"
252
+ >
253
+ <path d="M0 0h24v24H0V0z" fill="none" />
254
+ <path
255
+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"
256
+ />
257
+ </svg>
258
+ </ic-footer-link>
259
+ </div>
260
+ </ic-footer>
261
+ `,
262
+
263
+ name: "With logo links",
264
+ };
265
+
266
+ export const FooterWithNoCaptionOrLogoOrCopyright = {
267
+ render: () => html`
268
+ <ic-footer
269
+ description="The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback,
270
+ please get in touch."
271
+ copyright="false"
272
+ >
273
+ <ic-footer-link slot="link" href="/">Get Started</ic-footer-link>
274
+ <ic-footer-link slot="link" href="/">Accessibility</ic-footer-link>
275
+ <ic-footer-link slot="link" href="/">Styles</ic-footer-link>
276
+ <ic-footer-link slot="link" href="/" target="_blank"
277
+ >Components</ic-footer-link
278
+ >
279
+ <ic-footer-link slot="link" href="/">Patterns</ic-footer-link>
280
+ <ic-footer-link slot="link" href="/">Design toolkit</ic-footer-link>
281
+ </ic-footer>
282
+ `,
283
+
284
+ name: "Footer with no caption or logo or copyright",
285
+ };
286
+
287
+ export const FooterWithNoLinks = {
288
+ render: () => html`
289
+ <ic-footer
290
+ description="The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback,
291
+ please get in touch."
292
+ caption="All content is available under the Open Government Licence v3.0, except source code and code examples which are available under the MIT Licence."
293
+ >
294
+ </ic-footer>
295
+ `,
296
+
297
+ name: "Footer with no links",
298
+ };
299
+
300
+ export const Breakpoint = {
301
+ render: () => html`
302
+ <ic-footer
303
+ description="The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback,
304
+ please get in touch."
305
+ caption="All content is available under the Open Government Licence v3.0, except source code and code examples which are available under the MIT Licence."
306
+ breakpoint="extra large"
307
+ >
308
+ <ic-footer-link slot="link" href="/">Get Started</ic-footer-link>
309
+ <ic-footer-link slot="link" href="/">Accessibility</ic-footer-link>
310
+ <ic-footer-link slot="link" href="/">Styles</ic-footer-link>
311
+ <ic-footer-link slot="link" href="/">Components</ic-footer-link>
312
+ <ic-footer-link slot="link" href="/">Patterns</ic-footer-link>
313
+ <ic-footer-link slot="link" href="/">Design toolkit</ic-footer-link>
314
+ <div slot="logo" style="display:flex;gap:var(--ic-space-sm);">
315
+ <ic-footer-link href="/">
316
+ <svg
317
+ xmlns="http://www.w3.org/2000/svg"
318
+ height="48px"
319
+ viewBox="0 0 24 24"
320
+ width="48px"
321
+ fill="#FFFFFF"
322
+ aria-label="logo"
323
+ >
324
+ <path d="M0 0h24v24H0V0z" fill="none" />
325
+ <path
326
+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"
327
+ />
328
+ </svg>
329
+ </ic-footer-link>
330
+ <ic-footer-link href="/">
331
+ <svg
332
+ xmlns="http://www.w3.org/2000/svg"
333
+ height="48px"
334
+ viewBox="0 0 24 24"
335
+ width="48px"
336
+ fill="#FFFFFF"
337
+ aria-label="logo"
338
+ >
339
+ <path d="M0 0h24v24H0V0z" fill="none" />
340
+ <path
341
+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"
342
+ />
343
+ </svg>
344
+ </ic-footer-link>
345
+ <ic-footer-link href="/">
346
+ <svg
347
+ xmlns="http://www.w3.org/2000/svg"
348
+ height="48px"
349
+ viewBox="0 0 24 24"
350
+ width="48px"
351
+ fill="#FFFFFF"
352
+ aria-label="logo"
353
+ >
354
+ <path d="M0 0h24v24H0V0z" fill="none" />
355
+ <path
356
+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"
357
+ />
358
+ </svg>
359
+ </ic-footer-link>
360
+ </div>
361
+ </ic-footer>
362
+ `,
363
+
364
+ name: "Breakpoint",
365
+ };
366
+
367
+ export const SlottedDescriptionAndCaption = {
368
+ render: () => html`
369
+ <ic-footer>
370
+ <ic-typography slot="description"
371
+ >The ICDS is maintained by the Design Practice Team. If you've got a
372
+ question or want to feedback, please get in touch.</ic-typography
373
+ >
374
+ <ic-typography slot="caption"
375
+ >All content is available under the Open Government Licence v3.0, except
376
+ source code and code examples which are available under the MIT
377
+ Licence.</ic-typography
378
+ >
379
+ </ic-footer>
380
+ `,
381
+
382
+ name: "Slotted description and caption",
383
+ };