@ukic/web-components 2.34.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 (129) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/core.cjs.js +1 -1
  3. package/dist/cjs/ic-dialog.cjs.entry.js +16 -3
  4. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  5. package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
  6. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ic-radio-group.cjs.entry.js +21 -18
  8. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-radio-option.cjs.entry.js +11 -3
  10. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-search-bar.cjs.entry.js +2 -1
  12. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-toast.cjs.entry.js +2 -2
  14. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/collection/collection-manifest.json +1 -1
  17. package/dist/collection/components/ic-accordion/ic-accordion.stories.js +635 -0
  18. package/dist/collection/components/ic-alert/ic-alert.stories.js +257 -0
  19. package/dist/collection/components/ic-back-to-top/ic-back-to-top.stories.js +162 -0
  20. package/dist/collection/components/ic-badge/ic-badge.stories.js +1082 -0
  21. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.stories.js +502 -0
  22. package/dist/collection/components/ic-button/ic-button.stories.js +2218 -0
  23. package/dist/collection/components/ic-card/ic-card.stories.js +1034 -0
  24. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +687 -0
  25. package/dist/collection/components/ic-chip/ic-chip.stories.js +670 -0
  26. package/dist/collection/components/ic-classification-banner/ic-classification-banner.stories.js +131 -0
  27. package/dist/collection/components/ic-data-entity/ic-data-entity.stories.js +487 -0
  28. package/dist/collection/components/ic-dialog/ic-dialog.js +16 -3
  29. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  30. package/dist/collection/components/ic-dialog/ic-dialog.stories.js +1256 -0
  31. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js +27 -7
  32. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +1 -1
  33. package/dist/collection/components/ic-empty-state/ic-empty-state.stories.js +397 -0
  34. package/dist/collection/components/ic-footer/ic-footer.stories.js +383 -0
  35. package/dist/collection/components/ic-hero/ic-hero.stories.js +489 -0
  36. package/dist/collection/components/ic-link/ic-link.stories.js +114 -0
  37. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +416 -0
  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.js +21 -18
  43. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  44. package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +450 -0
  45. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +4 -1
  46. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -1
  47. package/dist/collection/components/ic-radio-option/ic-radio-option.css +2 -1
  48. package/dist/collection/components/ic-radio-option/ic-radio-option.js +16 -2
  49. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  50. package/dist/collection/components/ic-search-bar/ic-search-bar.js +2 -1
  51. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  52. package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +591 -0
  53. package/dist/collection/components/ic-section-container/ic-section-container.stories.js +62 -0
  54. package/dist/collection/components/ic-select/ic-select-searchable.stories.js +953 -0
  55. package/dist/collection/components/ic-select/ic-select-single.stories.js +780 -0
  56. package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +2526 -0
  57. package/dist/collection/components/ic-skeleton/ic-skeleton.stories.js +141 -0
  58. package/dist/collection/components/ic-status-tag/ic-status-tag.stories.js +161 -0
  59. package/dist/collection/components/ic-stepper/ic-stepper.stories.js +327 -0
  60. package/dist/collection/components/ic-switch/ic-switch.stories.js +171 -0
  61. package/dist/collection/components/ic-tab-context/ic-tabs.stories.js +388 -0
  62. package/dist/collection/components/ic-text-field/ic-text-field.stories.js +1083 -0
  63. package/dist/collection/components/ic-theme/ic-theme.stories.js +171 -0
  64. package/dist/collection/components/ic-toast/ic-toast.js +2 -2
  65. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  66. package/dist/collection/components/ic-toast/ic-toast.stories.js +413 -0
  67. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +3 -3
  68. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
  69. package/dist/collection/components/ic-toggle-button/ic-toggle-button.stories.js +537 -0
  70. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +610 -0
  71. package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +356 -0
  72. package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +1083 -0
  73. package/dist/collection/components/ic-typography/ic-typography.stories.js +437 -0
  74. package/dist/collection/patterns/top-nav-content-footer.stories.js +109 -0
  75. package/dist/collection/patterns/z-index.stories.js +474 -0
  76. package/dist/components/ic-dialog.js +16 -3
  77. package/dist/components/ic-dialog.js.map +1 -1
  78. package/dist/components/ic-navigation-item.js +1 -1
  79. package/dist/components/ic-navigation-item.js.map +1 -1
  80. package/dist/components/ic-radio-group.js +21 -18
  81. package/dist/components/ic-radio-group.js.map +1 -1
  82. package/dist/components/ic-radio-option.js +12 -4
  83. package/dist/components/ic-radio-option.js.map +1 -1
  84. package/dist/components/ic-search-bar.js +2 -1
  85. package/dist/components/ic-search-bar.js.map +1 -1
  86. package/dist/components/ic-toast.js +2 -2
  87. package/dist/components/ic-toast.js.map +1 -1
  88. package/dist/core/core.esm.js +1 -1
  89. package/dist/core/core.esm.js.map +1 -1
  90. package/dist/core/p-3e8023ff.entry.js +2 -0
  91. package/dist/core/p-3e8023ff.entry.js.map +1 -0
  92. package/dist/core/p-a32016ff.entry.js +2 -0
  93. package/dist/core/p-a32016ff.entry.js.map +1 -0
  94. package/dist/core/{p-7e8a4abd.entry.js → p-bfaa257c.entry.js} +2 -2
  95. package/dist/core/{p-7e8a4abd.entry.js.map → p-bfaa257c.entry.js.map} +1 -1
  96. package/dist/core/p-e1ab5945.entry.js +2 -0
  97. package/dist/core/p-e1ab5945.entry.js.map +1 -0
  98. package/dist/core/p-e668390c.entry.js +2 -0
  99. package/dist/core/p-e668390c.entry.js.map +1 -0
  100. package/dist/core/{p-2cd1a601.entry.js → p-f4382f1f.entry.js} +2 -2
  101. package/dist/core/p-f4382f1f.entry.js.map +1 -0
  102. package/dist/esm/core.js +1 -1
  103. package/dist/esm/ic-dialog.entry.js +16 -3
  104. package/dist/esm/ic-dialog.entry.js.map +1 -1
  105. package/dist/esm/ic-navigation-item.entry.js +1 -1
  106. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  107. package/dist/esm/ic-radio-group.entry.js +21 -18
  108. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  109. package/dist/esm/ic-radio-option.entry.js +11 -3
  110. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  111. package/dist/esm/ic-search-bar.entry.js +2 -1
  112. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  113. package/dist/esm/ic-toast.entry.js +2 -2
  114. package/dist/esm/ic-toast.entry.js.map +1 -1
  115. package/dist/esm/loader.js +1 -1
  116. package/dist/types/components/ic-dialog/ic-dialog.d.ts +1 -0
  117. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +1 -1
  118. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +1 -0
  119. package/hydrate/index.js +54 -29
  120. package/package.json +15 -11
  121. package/dist/core/p-2cd1a601.entry.js.map +0 -1
  122. package/dist/core/p-922036e8.entry.js +0 -2
  123. package/dist/core/p-922036e8.entry.js.map +0 -1
  124. package/dist/core/p-afa78488.entry.js +0 -2
  125. package/dist/core/p-afa78488.entry.js.map +0 -1
  126. package/dist/core/p-dfb3e76e.entry.js +0 -2
  127. package/dist/core/p-dfb3e76e.entry.js.map +0 -1
  128. package/dist/core/p-f4a29c16.entry.js +0 -2
  129. package/dist/core/p-f4a29c16.entry.js.map +0 -1
@@ -0,0 +1,1083 @@
1
+ import { html } from "lit-html";
2
+
3
+ const defaultArgs = {
4
+ appTitle: "Application Name",
5
+ contentAligned: "full-width",
6
+ customMobileBreakpoint: 992,
7
+ href: "/",
8
+ inline: false,
9
+ shortAppTitle: "App Name",
10
+ status: "alpha",
11
+ version: "0.0.1",
12
+ appIconSlot: "app-icon",
13
+ searchSlot: "search",
14
+ buttonsSlot: "buttons",
15
+ };
16
+
17
+ export default {
18
+ title: "Web Components/Top navigation",
19
+ component: "ic-top-navigation",
20
+ };
21
+
22
+ export const AppIconAndTitle = {
23
+ render: (args) =>
24
+ html`<ic-top-navigation app-title="Application Name">
25
+ <svg
26
+ slot="app-icon"
27
+ xmlns="http://www.w3.org/2000/svg"
28
+ height="24px"
29
+ viewBox="0 0 24 24"
30
+ width="24px"
31
+ fill="#000000"
32
+ >
33
+ <path d="M0 0h24v24H0V0z" fill="none" />
34
+ <path
35
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
36
+ />
37
+ </svg>
38
+ </ic-top-navigation>`,
39
+
40
+ name: "App icon and title",
41
+
42
+ parameters: {
43
+ layout: "fullscreen",
44
+ },
45
+ };
46
+
47
+ export const SlottedTitleLink = {
48
+ render: (args) =>
49
+ html`<ic-top-navigation>
50
+ <a slot="app-title" href="/">Application Name</a>
51
+ <a slot="short-app-title" href="/">App name</a>
52
+ <a slot="app-icon" href="/">
53
+ <svg
54
+ xmlns="http://www.w3.org/2000/svg"
55
+ height="inherit"
56
+ viewBox="0 0 24 24"
57
+ width="inherit"
58
+ fill="inherit"
59
+ >
60
+ <path d="M0 0h24v24H0V0z" fill="none" />
61
+ <path
62
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
63
+ />
64
+ </svg>
65
+ </a>
66
+ </ic-top-navigation>`,
67
+
68
+ name: "Slotted title link",
69
+
70
+ parameters: {
71
+ layout: "fullscreen",
72
+ },
73
+ };
74
+
75
+ export const StatusAndVersion = {
76
+ render: (args) =>
77
+ html`<ic-top-navigation
78
+ app-title="Application Name"
79
+ status="alpha"
80
+ version="v0.0.7"
81
+ >
82
+ <svg
83
+ slot="app-icon"
84
+ xmlns="http://www.w3.org/2000/svg"
85
+ height="24px"
86
+ viewBox="0 0 24 24"
87
+ width="24px"
88
+ fill="#000000"
89
+ >
90
+ <path d="M0 0h24v24H0V0z" fill="none" />
91
+ <path
92
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
93
+ />
94
+ </svg>
95
+ </ic-top-navigation>`,
96
+
97
+ name: "Status and version",
98
+
99
+ parameters: {
100
+ layout: "fullscreen",
101
+ },
102
+ };
103
+
104
+ export const WithSearch = {
105
+ render: (args) =>
106
+ html`<ic-top-navigation
107
+ app-title="Application Name"
108
+ status="alpha"
109
+ version="v0.0.7"
110
+ >
111
+ <svg
112
+ slot="app-icon"
113
+ xmlns="http://www.w3.org/2000/svg"
114
+ height="24px"
115
+ viewBox="0 0 24 24"
116
+ width="24px"
117
+ fill="#000000"
118
+ >
119
+ <path d="M0 0h24v24H0V0z" fill="none" />
120
+ <path
121
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
122
+ />
123
+ </svg>
124
+ <ic-search-bar
125
+ slot="search"
126
+ placeholder="Search"
127
+ label="Search"
128
+ ></ic-search-bar>
129
+ </ic-top-navigation>
130
+ <script>
131
+ const search1 = document.querySelector("ic-search-bar");
132
+ search1.options = [
133
+ { label: "Espresso", value: "espresso" },
134
+ { label: "Double Espresso", value: "doubleespresso" },
135
+ { label: "Flat White", value: "flatwhite" },
136
+ { label: "Cappuccino", value: "cappuccino" },
137
+ { label: "Americano", value: "americano" },
138
+ { label: "Mocha", value: "mocha" },
139
+ ];
140
+ </script>`,
141
+
142
+ name: "With search",
143
+
144
+ parameters: {
145
+ layout: "fullscreen",
146
+ },
147
+ };
148
+
149
+ export const WithIcons = {
150
+ render: (args) =>
151
+ html`<ic-top-navigation
152
+ app-title="Application Name"
153
+ status="alpha"
154
+ version="v0.0.7"
155
+ >
156
+ <svg
157
+ slot="app-icon"
158
+ xmlns="http://www.w3.org/2000/svg"
159
+ height="24px"
160
+ viewBox="0 0 24 24"
161
+ width="24px"
162
+ fill="#000000"
163
+ >
164
+ <path d="M0 0h24v24H0V0z" fill="none" />
165
+ <path
166
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
167
+ />
168
+ </svg>
169
+ <ic-search-bar
170
+ slot="search"
171
+ placeholder="Search"
172
+ label="Search"
173
+ ></ic-search-bar>
174
+ <ic-navigation-button
175
+ label="Button One"
176
+ slot="buttons"
177
+ href="https://www.google.com"
178
+ target="_blank"
179
+ title="Google 1"
180
+ >
181
+ <svg
182
+ slot="icon"
183
+ xmlns="http://www.w3.org/2000/svg"
184
+ height="24px"
185
+ viewBox="0 0 24 24"
186
+ width="24px"
187
+ fill="#000000"
188
+ >
189
+ <path d="M0 0h24v24H0V0z" fill="none" />
190
+ <path
191
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
192
+ />
193
+ </svg>
194
+ <ic-badge
195
+ text-label="1"
196
+ slot="badge"
197
+ position="near"
198
+ variant="light"
199
+ ></ic-badge>
200
+ </ic-navigation-button>
201
+ <ic-navigation-button
202
+ label="Button Two"
203
+ slot="buttons"
204
+ href="https://www.google.com"
205
+ target="_blank"
206
+ title="Google 2"
207
+ >
208
+ <svg
209
+ slot="icon"
210
+ xmlns="http://www.w3.org/2000/svg"
211
+ height="24px"
212
+ viewBox="0 0 24 24"
213
+ width="24px"
214
+ fill="#000000"
215
+ >
216
+ <path d="M0 0h24v24H0z" fill="none" />
217
+ <path
218
+ d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"
219
+ />
220
+ </svg>
221
+ <ic-badge
222
+ slot="badge"
223
+ position="near"
224
+ variant="light"
225
+ type="dot"
226
+ ></ic-badge>
227
+ </ic-navigation-button>
228
+ <ic-navigation-button
229
+ label="Button Three"
230
+ slot="buttons"
231
+ onclick="alert('test')"
232
+ >
233
+ <svg
234
+ slot="icon"
235
+ xmlns="http://www.w3.org/2000/svg"
236
+ height="24px"
237
+ viewBox="0 0 24 24"
238
+ width="24px"
239
+ fill="#000000"
240
+ >
241
+ <path d="M0 0h24v24H0V0z" fill="none" />
242
+ <path
243
+ d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"
244
+ />
245
+ </svg>
246
+ </ic-navigation-button>
247
+ </ic-top-navigation> `,
248
+
249
+ name: "With icons",
250
+
251
+ parameters: {
252
+ layout: "fullscreen",
253
+ },
254
+ };
255
+
256
+ export const LongAppTitle = {
257
+ render: (args) =>
258
+ html`<ic-top-navigation
259
+ app-title="Application with a long name"
260
+ status="alpha-beta-gamma-delta-epsilon"
261
+ version="v0.0.7-current-release-name-that-is-long"
262
+ >
263
+ <svg
264
+ slot="app-icon"
265
+ xmlns="http://www.w3.org/2000/svg"
266
+ height="24px"
267
+ viewBox="0 0 24 24"
268
+ width="24px"
269
+ fill="#000000"
270
+ >
271
+ <path d="M0 0h24v24H0V0z" fill="none" />
272
+ <path
273
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
274
+ />
275
+ </svg>
276
+ <ic-search-bar
277
+ slot="search"
278
+ placeholder="Search"
279
+ label="Search"
280
+ ></ic-search-bar>
281
+ <ic-navigation-button
282
+ label="Button One"
283
+ slot="buttons"
284
+ onclick="alert('test')"
285
+ >
286
+ <svg
287
+ slot="icon"
288
+ xmlns="http://www.w3.org/2000/svg"
289
+ height="24px"
290
+ viewBox="0 0 24 24"
291
+ width="24px"
292
+ fill="#000000"
293
+ >
294
+ <path d="M0 0h24v24H0V0z" fill="none" />
295
+ <path
296
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
297
+ />
298
+ </svg>
299
+ </ic-navigation-button>
300
+ </ic-top-navigation>`,
301
+
302
+ name: "Long app title",
303
+
304
+ parameters: {
305
+ layout: "fullscreen",
306
+ },
307
+ };
308
+
309
+ export const WithNavigation = {
310
+ render: (args) =>
311
+ html`<ic-top-navigation
312
+ app-title="Application Name"
313
+ status="alpha"
314
+ version="v0.0.7"
315
+ >
316
+ <svg
317
+ slot="app-icon"
318
+ xmlns="http://www.w3.org/2000/svg"
319
+ height="24px"
320
+ viewBox="0 0 24 24"
321
+ width="24px"
322
+ fill="#000000"
323
+ >
324
+ <path d="M0 0h24v24H0V0z" fill="none" />
325
+ <path
326
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
327
+ />
328
+ </svg>
329
+ <ic-search-bar
330
+ slot="search"
331
+ placeholder="Search"
332
+ label="Search"
333
+ ></ic-search-bar>
334
+ <ic-navigation-button
335
+ label="Button One"
336
+ slot="buttons"
337
+ onclick="alert('test')"
338
+ >
339
+ <svg
340
+ slot="icon"
341
+ xmlns="http://www.w3.org/2000/svg"
342
+ height="24px"
343
+ viewBox="0 0 24 24"
344
+ width="24px"
345
+ fill="#000000"
346
+ >
347
+ <path d="M0 0h24v24H0V0z" fill="none" />
348
+ <path
349
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
350
+ />
351
+ </svg>
352
+ </ic-navigation-button>
353
+ <ic-navigation-item
354
+ slot="navigation"
355
+ label="One"
356
+ href="/"
357
+ ></ic-navigation-item>
358
+ <ic-navigation-item
359
+ slot="navigation"
360
+ label="Two thousand five hundred and sixty three"
361
+ href="/"
362
+ ></ic-navigation-item>
363
+ <ic-navigation-item
364
+ slot="navigation"
365
+ label="Three"
366
+ href="/"
367
+ target="_blank"
368
+ ></ic-navigation-item>
369
+ <ic-navigation-item
370
+ slot="navigation"
371
+ label="Four"
372
+ href="/"
373
+ selected="true"
374
+ ></ic-navigation-item>
375
+ <ic-navigation-item
376
+ slot="navigation"
377
+ label="Five"
378
+ href="/"
379
+ ></ic-navigation-item>
380
+ </ic-top-navigation>`,
381
+
382
+ name: "With navigation",
383
+
384
+ parameters: {
385
+ layout: "fullscreen",
386
+ },
387
+ };
388
+
389
+ export const UsingUnnamedSlots = {
390
+ render: (args) =>
391
+ html`<ic-top-navigation
392
+ app-title="Application Name"
393
+ status="alpha"
394
+ version="v0.0.7"
395
+ >
396
+ <svg
397
+ slot="app-icon"
398
+ xmlns="http://www.w3.org/2000/svg"
399
+ height="24px"
400
+ viewBox="0 0 24 24"
401
+ width="24px"
402
+ fill="#000000"
403
+ >
404
+ <path d="M0 0h24v24H0V0z" fill="none" />
405
+ <path
406
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
407
+ />
408
+ </svg>
409
+ <ic-navigation-item slot="navigation">
410
+ <a href="/">One</a>
411
+ </ic-navigation-item>
412
+ <ic-navigation-item slot="navigation">
413
+ <a href="/">Two</a>
414
+ </ic-navigation-item>
415
+ <ic-navigation-item slot="navigation">
416
+ <a href="/">Three</a>
417
+ </ic-navigation-item>
418
+ </ic-top-navigation>`,
419
+
420
+ name: "Using unnamed slots",
421
+
422
+ parameters: {
423
+ layout: "fullscreen",
424
+ },
425
+ };
426
+
427
+ export const WithGroupedNavigation = {
428
+ render: (args) =>
429
+ html`<ic-top-navigation
430
+ app-title="Application Name"
431
+ status="alpha"
432
+ version="v0.0.7"
433
+ >
434
+ <svg
435
+ slot="app-icon"
436
+ xmlns="http://www.w3.org/2000/svg"
437
+ height="24px"
438
+ viewBox="0 0 24 24"
439
+ width="24px"
440
+ fill="#000000"
441
+ >
442
+ <path d="M0 0h24v24H0V0z" fill="none" />
443
+ <path
444
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
445
+ />
446
+ </svg>
447
+ <ic-search-bar
448
+ slot="search"
449
+ placeholder="Search"
450
+ label="Search"
451
+ ></ic-search-bar>
452
+ <ic-navigation-button
453
+ label="Button One"
454
+ slot="buttons"
455
+ onclick="alert('test')"
456
+ >
457
+ <svg
458
+ slot="icon"
459
+ xmlns="http://www.w3.org/2000/svg"
460
+ height="24px"
461
+ viewBox="0 0 24 24"
462
+ width="24px"
463
+ fill="#000000"
464
+ >
465
+ <path d="M0 0h24v24H0V0z" fill="none" />
466
+ <path
467
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
468
+ />
469
+ </svg>
470
+ </ic-navigation-button>
471
+ <ic-navigation-group slot="navigation" label="Navigation group">
472
+ <ic-navigation-item label="One" href="/"></ic-navigation-item>
473
+ <ic-navigation-item label="Two" href="/"></ic-navigation-item>
474
+ <ic-navigation-item label="Three" href="/"></ic-navigation-item>
475
+ <ic-navigation-item label="Four" href="/"></ic-navigation-item>
476
+ <ic-navigation-item
477
+ label="Five"
478
+ href="/"
479
+ selected="true"
480
+ ></ic-navigation-item>
481
+ <ic-navigation-item label="Five" href="/"></ic-navigation-item>
482
+ <ic-navigation-item
483
+ label="Six"
484
+ href="/"
485
+ target="_blank"
486
+ ></ic-navigation-item>
487
+ <ic-navigation-item label="Seven" href="/"></ic-navigation-item>
488
+ <ic-navigation-item label="Eight" href="/"></ic-navigation-item>
489
+ </ic-navigation-group>
490
+ <ic-navigation-group slot="navigation" label="Second navigation group">
491
+ <ic-navigation-item label="Another One" href="/"></ic-navigation-item>
492
+ <ic-navigation-item label="Another Two" href="/"></ic-navigation-item>
493
+ <ic-navigation-item label="Another Three" href="/"></ic-navigation-item>
494
+ <ic-navigation-item label="Another Four" href="/"></ic-navigation-item>
495
+ <ic-navigation-item label="Another Five" href="/"></ic-navigation-item>
496
+ <ic-navigation-item label="Another Six" href="/"></ic-navigation-item>
497
+ <ic-navigation-item label="Another Seven" href="/"></ic-navigation-item>
498
+ <ic-navigation-item label="Another Eight" href="/"></ic-navigation-item>
499
+ </ic-navigation-group>
500
+ </ic-top-navigation>`,
501
+
502
+ name: "With grouped navigation",
503
+
504
+ parameters: {
505
+ layout: "fullscreen",
506
+ },
507
+ };
508
+
509
+ export const ContentCenterAligned = {
510
+ render: (args) =>
511
+ html`<ic-top-navigation
512
+ app-title="Application Name"
513
+ status="alpha"
514
+ version="v0.0.7"
515
+ content-aligned="center"
516
+ >
517
+ <svg
518
+ slot="app-icon"
519
+ xmlns="http://www.w3.org/2000/svg"
520
+ height="24px"
521
+ viewBox="0 0 24 24"
522
+ width="24px"
523
+ fill="#000000"
524
+ >
525
+ <path d="M0 0h24v24H0V0z" fill="none" />
526
+ <path
527
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
528
+ />
529
+ </svg>
530
+ <ic-search-bar
531
+ slot="search"
532
+ placeholder="Search"
533
+ label="Search"
534
+ ></ic-search-bar>
535
+ <ic-navigation-button
536
+ label="Button One"
537
+ slot="buttons"
538
+ onclick="alert('test')"
539
+ >
540
+ <svg
541
+ slot="icon"
542
+ xmlns="http://www.w3.org/2000/svg"
543
+ height="24px"
544
+ viewBox="0 0 24 24"
545
+ width="24px"
546
+ fill="#000000"
547
+ >
548
+ <path d="M0 0h24v24H0V0z" fill="none" />
549
+ <path
550
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
551
+ />
552
+ </svg>
553
+ </ic-navigation-button>
554
+ <ic-navigation-item
555
+ slot="navigation"
556
+ label="One"
557
+ href="/"
558
+ ></ic-navigation-item>
559
+ <ic-navigation-item
560
+ slot="navigation"
561
+ label="Two"
562
+ href="/"
563
+ ></ic-navigation-item>
564
+ <ic-navigation-item
565
+ slot="navigation"
566
+ label="Three"
567
+ href="/"
568
+ ></ic-navigation-item>
569
+ <ic-navigation-item
570
+ slot="navigation"
571
+ label="Four"
572
+ href="/"
573
+ selected="true"
574
+ ></ic-navigation-item>
575
+ <ic-navigation-item
576
+ slot="navigation"
577
+ label="Five"
578
+ href="/"
579
+ ></ic-navigation-item>
580
+ </ic-top-navigation>`,
581
+
582
+ name: "Content center aligned",
583
+
584
+ parameters: {
585
+ layout: "fullscreen",
586
+ },
587
+ };
588
+
589
+ export const ContentLeftAligned = {
590
+ render: (args) =>
591
+ html`<ic-top-navigation
592
+ app-title="Application Name"
593
+ status="alpha"
594
+ version="v0.0.7"
595
+ content-aligned="left"
596
+ >
597
+ <svg
598
+ slot="app-icon"
599
+ xmlns="http://www.w3.org/2000/svg"
600
+ height="24px"
601
+ viewBox="0 0 24 24"
602
+ width="24px"
603
+ fill="#000000"
604
+ >
605
+ <path d="M0 0h24v24H0V0z" fill="none" />
606
+ <path
607
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
608
+ />
609
+ </svg>
610
+ <ic-search-bar
611
+ slot="search"
612
+ placeholder="Search"
613
+ label="Search"
614
+ ></ic-search-bar>
615
+ <ic-navigation-button
616
+ label="Button One"
617
+ slot="buttons"
618
+ onclick="alert('test')"
619
+ >
620
+ <svg
621
+ slot="icon"
622
+ xmlns="http://www.w3.org/2000/svg"
623
+ height="24px"
624
+ viewBox="0 0 24 24"
625
+ width="24px"
626
+ fill="#000000"
627
+ >
628
+ <path d="M0 0h24v24H0V0z" fill="none" />
629
+ <path
630
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
631
+ />
632
+ </svg>
633
+ </ic-navigation-button>
634
+ <ic-navigation-item
635
+ slot="navigation"
636
+ label="One"
637
+ href="/"
638
+ ></ic-navigation-item>
639
+ <ic-navigation-item
640
+ slot="navigation"
641
+ label="Two"
642
+ href="/"
643
+ ></ic-navigation-item>
644
+ <ic-navigation-item
645
+ slot="navigation"
646
+ label="Three"
647
+ href="/"
648
+ ></ic-navigation-item>
649
+ <ic-navigation-item
650
+ slot="navigation"
651
+ label="Four"
652
+ href="/"
653
+ selected="true"
654
+ ></ic-navigation-item>
655
+ <ic-navigation-item
656
+ slot="navigation"
657
+ label="Five"
658
+ href="/"
659
+ ></ic-navigation-item>
660
+ </ic-top-navigation>`,
661
+
662
+ name: "Content left aligned",
663
+
664
+ parameters: {
665
+ layout: "fullscreen",
666
+ },
667
+ };
668
+
669
+ export const Theming = {
670
+ render: (args) =>
671
+ html`<ic-theme color="rgb(27, 60, 121)"></ic-theme>
672
+ <ic-top-navigation
673
+ app-title="Application Name"
674
+ status="alpha"
675
+ version="v0.0.7"
676
+ >
677
+ <svg
678
+ slot="app-icon"
679
+ xmlns="http://www.w3.org/2000/svg"
680
+ height="24px"
681
+ viewBox="0 0 24 24"
682
+ width="24px"
683
+ fill="#000000"
684
+ >
685
+ <path d="M0 0h24v24H0V0z" fill="none" />
686
+ <path
687
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
688
+ />
689
+ </svg>
690
+ <ic-search-bar
691
+ slot="search"
692
+ placeholder="Search"
693
+ label="Search"
694
+ ></ic-search-bar>
695
+ <ic-navigation-button
696
+ label="Button One"
697
+ slot="buttons"
698
+ onclick="alert('test')"
699
+ >
700
+ <svg
701
+ slot="icon"
702
+ xmlns="http://www.w3.org/2000/svg"
703
+ height="24px"
704
+ viewBox="0 0 24 24"
705
+ width="24px"
706
+ fill="#000000"
707
+ >
708
+ <path d="M0 0h24v24H0V0z" fill="none" />
709
+ <path
710
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
711
+ />
712
+ </svg>
713
+ </ic-navigation-button>
714
+ <ic-navigation-item
715
+ slot="navigation"
716
+ label="One"
717
+ href="/"
718
+ selected="true"
719
+ ></ic-navigation-item>
720
+ <ic-navigation-item
721
+ slot="navigation"
722
+ label="Two"
723
+ href="/"
724
+ ></ic-navigation-item>
725
+ <ic-navigation-item
726
+ slot="navigation"
727
+ label="Three"
728
+ href="/"
729
+ ></ic-navigation-item>
730
+ <ic-navigation-item
731
+ slot="navigation"
732
+ label="Four"
733
+ href="/"
734
+ ></ic-navigation-item>
735
+ <ic-navigation-item
736
+ slot="navigation"
737
+ label="Five"
738
+ href="/"
739
+ ></ic-navigation-item>
740
+ <ic-navigation-item
741
+ slot="navigation"
742
+ label="Six"
743
+ href="/"
744
+ ></ic-navigation-item>
745
+ <ic-navigation-item
746
+ slot="navigation"
747
+ label="Seven"
748
+ href="/"
749
+ ></ic-navigation-item>
750
+ <ic-navigation-item
751
+ slot="navigation"
752
+ label="Eight"
753
+ href="/"
754
+ ></ic-navigation-item>
755
+ <ic-navigation-item
756
+ slot="navigation"
757
+ label="Nine"
758
+ href="/"
759
+ ></ic-navigation-item>
760
+ <ic-navigation-item
761
+ slot="navigation"
762
+ label="Ten"
763
+ href="/"
764
+ ></ic-navigation-item>
765
+ <ic-navigation-item
766
+ slot="navigation"
767
+ label="Eleven"
768
+ href="/"
769
+ ></ic-navigation-item>
770
+ </ic-top-navigation>
771
+ <br />
772
+ <ic-button
773
+ variant="primary"
774
+ id="default-btn"
775
+ onClick="document.querySelector('ic-theme').color='rgb(27, 60, 121)'"
776
+ >
777
+ Default theme
778
+ </ic-button>
779
+ <ic-button
780
+ variant="primary"
781
+ id="custom-btn"
782
+ onClick="document.querySelector('ic-theme').color='rgb(255, 201, 60)'"
783
+ >
784
+ Sunrise theme
785
+ </ic-button> `,
786
+
787
+ name: "Theming",
788
+
789
+ parameters: {
790
+ layout: "fullscreen",
791
+ },
792
+ };
793
+
794
+ export const LongSingleWordAppTitle = {
795
+ render: (args) =>
796
+ html`<ic-top-navigation
797
+ app-title="Applicationwithareallyreallylongsinglewordname"
798
+ status="alpha"
799
+ version="v0.0.7"
800
+ >
801
+ <svg
802
+ slot="app-icon"
803
+ xmlns="http://www.w3.org/2000/svg"
804
+ height="24px"
805
+ viewBox="0 0 24 24"
806
+ width="24px"
807
+ fill="#000000"
808
+ >
809
+ <path d="M0 0h24v24H0V0z" fill="none" />
810
+ <path
811
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
812
+ />
813
+ </svg>
814
+ <ic-search-bar
815
+ slot="search"
816
+ placeholder="Search"
817
+ label="Search"
818
+ ></ic-search-bar>
819
+ <ic-navigation-button
820
+ label="Button One"
821
+ slot="buttons"
822
+ onclick="alert('test')"
823
+ >
824
+ <svg
825
+ slot="icon"
826
+ xmlns="http://www.w3.org/2000/svg"
827
+ height="24px"
828
+ viewBox="0 0 24 24"
829
+ width="24px"
830
+ fill="#000000"
831
+ >
832
+ <path d="M0 0h24v24H0V0z" fill="none" />
833
+ <path
834
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
835
+ />
836
+ </svg>
837
+ </ic-navigation-button>
838
+ </ic-top-navigation>`,
839
+
840
+ name: "Long single-word app title",
841
+
842
+ parameters: {
843
+ layout: "fullscreen",
844
+ },
845
+ };
846
+
847
+ export const ShortTitle = {
848
+ render: (args) =>
849
+ html`<ic-top-navigation
850
+ app-title="Application Name"
851
+ short-app-title="App Name"
852
+ >
853
+ <svg
854
+ slot="app-icon"
855
+ xmlns="http://www.w3.org/2000/svg"
856
+ height="24px"
857
+ viewBox="0 0 24 24"
858
+ width="24px"
859
+ fill="#000000"
860
+ >
861
+ <path d="M0 0h24v24H0V0z" fill="none" />
862
+ <path
863
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
864
+ />
865
+ </svg>
866
+ </ic-top-navigation>`,
867
+
868
+ name: "Short title",
869
+
870
+ parameters: {
871
+ layout: "fullscreen",
872
+ },
873
+ };
874
+
875
+ export const TopNavResizedEvent = {
876
+ render: (args) =>
877
+ html`<script>
878
+ var topNav = document.querySelector("ic-top-navigation");
879
+ topNav.addEventListener("topNavResized", function (event) {
880
+ console.log(event.detail.size);
881
+ });
882
+ </script>
883
+ <ic-top-navigation app-title="Application Name">
884
+ <svg
885
+ slot="app-icon"
886
+ xmlns="http://www.w3.org/2000/svg"
887
+ height="24px"
888
+ viewBox="0 0 24 24"
889
+ width="24px"
890
+ fill="#000000"
891
+ >
892
+ <path d="M0 0h24v24H0V0z" fill="none" />
893
+ <path
894
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
895
+ />
896
+ </svg>
897
+ </ic-top-navigation>`,
898
+
899
+ name: "Top nav resized event",
900
+
901
+ parameters: {
902
+ layout: "fullscreen",
903
+ },
904
+ };
905
+
906
+ export const Playground = {
907
+ render: (args) =>
908
+ html`<ic-top-navigation
909
+ app-title=${args.appTitle}
910
+ content-aligned=${args.contentAligned}
911
+ custom-mobile-breakpoint=${args.customMobileBreakpoint}
912
+ href=${args.href}
913
+ inline=${args.inline}
914
+ short-app-title=${args.shortAppTitle}
915
+ status=${args.status}
916
+ version=${args.version}
917
+ >
918
+ <svg
919
+ slot=${args.appIconSlot}
920
+ xmlns="http://www.w3.org/2000/svg"
921
+ height="24px"
922
+ viewBox="0 0 24 24"
923
+ width="24px"
924
+ fill="#000000"
925
+ >
926
+ <path d="M0 0h24v24H0V0z" fill="none" />
927
+ <path
928
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
929
+ />
930
+ </svg>
931
+ <ic-search-bar
932
+ slot=${args.searchSlot}
933
+ placeholder="Search"
934
+ label="Search"
935
+ ></ic-search-bar>
936
+ <ic-navigation-button
937
+ label="Button One"
938
+ slot=${args.buttonsSlot}
939
+ href="https://www.google.com"
940
+ target="_blank"
941
+ title="Google 1"
942
+ >
943
+ <svg
944
+ slot="icon"
945
+ xmlns="http://www.w3.org/2000/svg"
946
+ height="24px"
947
+ viewBox="0 0 24 24"
948
+ width="24px"
949
+ fill="#000000"
950
+ >
951
+ <path d="M0 0h24v24H0V0z" fill="none" />
952
+ <path
953
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z"
954
+ />
955
+ </svg>
956
+ <ic-badge
957
+ text-label="1"
958
+ slot="badge"
959
+ position="near"
960
+ variant="light"
961
+ ></ic-badge>
962
+ </ic-navigation-button>
963
+ <ic-navigation-button
964
+ label="Button Two"
965
+ slot=${args.buttonsSlot}
966
+ href="https://www.google.com"
967
+ target="_blank"
968
+ title="Google 2"
969
+ >
970
+ <svg
971
+ slot="icon"
972
+ xmlns="http://www.w3.org/2000/svg"
973
+ height="24px"
974
+ viewBox="0 0 24 24"
975
+ width="24px"
976
+ fill="#000000"
977
+ >
978
+ <path d="M0 0h24v24H0z" fill="none" />
979
+ <path
980
+ d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"
981
+ />
982
+ </svg>
983
+ <ic-badge
984
+ slot="badge"
985
+ position="near"
986
+ variant="light"
987
+ type="dot"
988
+ ></ic-badge>
989
+ </ic-navigation-button>
990
+ <ic-navigation-button
991
+ label="Button Three"
992
+ slot=${args.buttonsSlot}
993
+ onclick="alert('test')"
994
+ >
995
+ <svg
996
+ slot="icon"
997
+ xmlns="http://www.w3.org/2000/svg"
998
+ height="24px"
999
+ viewBox="0 0 24 24"
1000
+ width="24px"
1001
+ fill="#000000"
1002
+ >
1003
+ <path d="M0 0h24v24H0V0z" fill="none" />
1004
+ <path
1005
+ d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"
1006
+ />
1007
+ </svg>
1008
+ </ic-navigation-button>
1009
+ <ic-navigation-group slot="navigation" label="Navigation group">
1010
+ <ic-navigation-item label="Another One" href="/"></ic-navigation-item>
1011
+ <ic-navigation-item label="Another Two" href="/"></ic-navigation-item>
1012
+ <ic-navigation-item label="Another Three" href="/"></ic-navigation-item>
1013
+ <ic-navigation-item label="Another Four" href="/"></ic-navigation-item>
1014
+ <ic-navigation-item label="Another Five" href="/"></ic-navigation-item>
1015
+ <ic-navigation-item label="Another Six" href="/"></ic-navigation-item>
1016
+ <ic-navigation-item label="Another Seven" href="/"></ic-navigation-item>
1017
+ <ic-navigation-item label="Another Eight" href="/"></ic-navigation-item>
1018
+ </ic-navigation-group>
1019
+ <ic-navigation-item
1020
+ slot="navigation"
1021
+ label="Two thousand five hundred and sixty three"
1022
+ href="/"
1023
+ ></ic-navigation-item>
1024
+ <ic-navigation-item
1025
+ slot="navigation"
1026
+ label="Three"
1027
+ href="/"
1028
+ target="_blank"
1029
+ ></ic-navigation-item>
1030
+ <ic-navigation-item
1031
+ slot="navigation"
1032
+ label="Four"
1033
+ href="/"
1034
+ selected="true"
1035
+ ></ic-navigation-item>
1036
+ </ic-top-navigation>`,
1037
+
1038
+ args: defaultArgs,
1039
+
1040
+ argTypes: {
1041
+ contentAligned: {
1042
+ options: ["full-width", "left", "center"],
1043
+
1044
+ control: {
1045
+ type: "select",
1046
+ },
1047
+ },
1048
+
1049
+ customMobileBreakpoint: {
1050
+ options: [0, 576, 768, 992, 1200],
1051
+
1052
+ control: {
1053
+ type: "select",
1054
+ },
1055
+ },
1056
+
1057
+ appIconSlot: {
1058
+ options: ["app-icon", ""],
1059
+
1060
+ control: {
1061
+ type: "select",
1062
+ },
1063
+ },
1064
+
1065
+ searchSlot: {
1066
+ options: ["search", ""],
1067
+
1068
+ control: {
1069
+ type: "select",
1070
+ },
1071
+ },
1072
+
1073
+ buttonsSlot: {
1074
+ options: ["buttons", ""],
1075
+
1076
+ control: {
1077
+ type: "select",
1078
+ },
1079
+ },
1080
+ },
1081
+
1082
+ name: "Playground",
1083
+ };