@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.
- package/README.md +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +23 -0
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +2 -2
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.stories.js +635 -0
- package/dist/collection/components/ic-alert/ic-alert.stories.js +257 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.stories.js +162 -0
- package/dist/collection/components/ic-badge/ic-badge.js +39 -1
- package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
- package/dist/collection/components/ic-badge/ic-badge.stories.js +1082 -0
- package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +194 -0
- package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.stories.js +502 -0
- package/dist/collection/components/ic-button/ic-button.stories.js +2218 -0
- package/dist/collection/components/ic-card/ic-card.stories.js +1034 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +687 -0
- package/dist/collection/components/ic-chip/ic-chip.stories.js +670 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.stories.js +131 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.stories.js +487 -0
- package/dist/collection/components/ic-dialog/ic-dialog.stories.js +1256 -0
- package/dist/collection/components/ic-empty-state/ic-empty-state.stories.js +397 -0
- package/dist/collection/components/ic-footer/ic-footer.stories.js +383 -0
- package/dist/collection/components/ic-hero/ic-hero.stories.js +489 -0
- package/dist/collection/components/ic-link/ic-link.stories.js +114 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +416 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +4 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +1 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +7 -35
- package/dist/collection/components/ic-page-header/ic-page-header.stories.js +557 -0
- package/dist/collection/components/ic-pagination/ic-pagination.stories.js +125 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +486 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +450 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +591 -0
- package/dist/collection/components/ic-section-container/ic-section-container.stories.js +62 -0
- package/dist/collection/components/ic-select/ic-select-searchable.stories.js +953 -0
- package/dist/collection/components/ic-select/ic-select-single.stories.js +780 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +2526 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.stories.js +141 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.stories.js +161 -0
- package/dist/collection/components/ic-stepper/ic-stepper.stories.js +327 -0
- package/dist/collection/components/ic-switch/ic-switch.stories.js +171 -0
- package/dist/collection/components/ic-tab-context/ic-tabs.stories.js +388 -0
- package/dist/collection/components/ic-text-field/ic-text-field.stories.js +1083 -0
- package/dist/collection/components/ic-theme/ic-theme.stories.js +171 -0
- package/dist/collection/components/ic-toast/ic-toast.js +2 -2
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.stories.js +413 -0
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +3 -3
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.stories.js +537 -0
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +610 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +2 -5
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +356 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +1083 -0
- package/dist/collection/components/ic-typography/ic-typography.stories.js +437 -0
- package/dist/collection/patterns/top-nav-content-footer.stories.js +109 -0
- package/dist/collection/patterns/z-index.stories.js +474 -0
- package/dist/components/ic-badge.js +25 -2
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-item.js +1 -1
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-toast.js +2 -2
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-3e8023ff.entry.js +2 -0
- package/dist/core/p-3e8023ff.entry.js.map +1 -0
- package/dist/core/p-ba06cc95.entry.js.map +1 -1
- package/dist/core/{p-7e8a4abd.entry.js → p-bfaa257c.entry.js} +2 -2
- package/dist/core/{p-7e8a4abd.entry.js.map → p-bfaa257c.entry.js.map} +1 -1
- package/dist/core/p-c05474f3.entry.js +2 -0
- package/dist/core/p-c05474f3.entry.js.map +1 -0
- package/dist/core/{p-5d3c6ea1.entry.js → p-d0299926.entry.js} +2 -2
- package/dist/core/p-d0299926.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-badge.entry.js +23 -0
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +2 -2
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +1 -1
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +2 -2
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-badge/ic-badge.d.ts +5 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +7 -0
- package/hydrate/index.js +30 -7
- package/package.json +17 -12
- package/vscode-data.json +4 -0
- package/dist/core/p-405d89bb.entry.js +0 -2
- package/dist/core/p-405d89bb.entry.js.map +0 -1
- package/dist/core/p-5d3c6ea1.entry.js.map +0 -1
- package/dist/core/p-dfb3e76e.entry.js +0 -2
- package/dist/core/p-dfb3e76e.entry.js.map +0 -1
@@ -0,0 +1,437 @@
|
|
1
|
+
import { html } from "lit-html";
|
2
|
+
|
3
|
+
const defaultArgs = {
|
4
|
+
applyVerticalMargins: false,
|
5
|
+
bold: false,
|
6
|
+
italic: false,
|
7
|
+
strikethrough: false,
|
8
|
+
underline: false,
|
9
|
+
variant: "body",
|
10
|
+
};
|
11
|
+
|
12
|
+
export default {
|
13
|
+
title: "Web Components/Typography",
|
14
|
+
component: "ic-typography",
|
15
|
+
};
|
16
|
+
|
17
|
+
export const Default = {
|
18
|
+
render: (args) => html`<ic-typography>I am typography</ic-typography>`,
|
19
|
+
name: "Default",
|
20
|
+
};
|
21
|
+
|
22
|
+
export const Variants = {
|
23
|
+
render: () => html`
|
24
|
+
<ic-typography variant="h1">Extra large title</ic-typography>
|
25
|
+
<ic-typography variant="h2">Large title</ic-typography>
|
26
|
+
<ic-typography variant="h3">Medium title</ic-typography>
|
27
|
+
<ic-typography variant="h4">Small title</ic-typography>
|
28
|
+
<ic-typography variant="subtitle-large">Subtitle 1</ic-typography>
|
29
|
+
<ic-typography variant="subtitle-small">Subtitle 2</ic-typography>
|
30
|
+
<ic-typography variant="body">Body text</ic-typography>
|
31
|
+
<ic-typography variant="label">Label</ic-typography>
|
32
|
+
<ic-typography variant="caption">Caption text</ic-typography>
|
33
|
+
<ic-typography variant="caption-uppercase">Caption uppercase</ic-typography>
|
34
|
+
<ic-typography variant="label-uppercase">Label uppercase</ic-typography>
|
35
|
+
<ic-typography variant="code-large">Code large</ic-typography>
|
36
|
+
<ic-typography variant="code-small">Code small</ic-typography>
|
37
|
+
<ic-typography variant="code-extra-small">Code extra small</ic-typography>
|
38
|
+
<ic-typography variant="badge">Badge</ic-typography>
|
39
|
+
<ic-typography variant="badge-small">Badge small</ic-typography>
|
40
|
+
`,
|
41
|
+
|
42
|
+
name: "Variants",
|
43
|
+
};
|
44
|
+
|
45
|
+
export const ComponentOverride = {
|
46
|
+
render: () => html`
|
47
|
+
<ic-typography variant="h1"><h3>H3 rendered as H1</h3></ic-typography>
|
48
|
+
`,
|
49
|
+
|
50
|
+
name: "Component override",
|
51
|
+
};
|
52
|
+
|
53
|
+
export const VerticalMargins = {
|
54
|
+
render: () => html`
|
55
|
+
<ic-typography apply-vertical-margins variant="h1"
|
56
|
+
>Extra large title</ic-typography
|
57
|
+
>
|
58
|
+
<ic-typography apply-vertical-margins variant="h2"
|
59
|
+
>Large title</ic-typography
|
60
|
+
>
|
61
|
+
<ic-typography apply-vertical-margins variant="h3"
|
62
|
+
>Medium title</ic-typography
|
63
|
+
>
|
64
|
+
<ic-typography apply-vertical-margins variant="h4"
|
65
|
+
>Small title</ic-typography
|
66
|
+
>
|
67
|
+
<ic-typography apply-vertical-margins variant="subtitle-large"
|
68
|
+
>Subtitle 1</ic-typography
|
69
|
+
>
|
70
|
+
<ic-typography apply-vertical-margins variant="subtitle-small"
|
71
|
+
>Subtitle 2</ic-typography
|
72
|
+
>
|
73
|
+
<ic-typography apply-vertical-margins variant="body"
|
74
|
+
>Body text</ic-typography
|
75
|
+
>
|
76
|
+
<ic-typography apply-vertical-margins variant="caption"
|
77
|
+
>Caption text</ic-typography
|
78
|
+
>
|
79
|
+
<ic-typography apply-vertical-margins variant="caption-uppercase"
|
80
|
+
>Caption uppercase</ic-typography
|
81
|
+
>
|
82
|
+
<ic-typography apply-vertical-margins variant="code-large"
|
83
|
+
>Code large</ic-typography
|
84
|
+
>
|
85
|
+
<ic-typography apply-vertical-margins variant="code-small"
|
86
|
+
>Code small</ic-typography
|
87
|
+
>
|
88
|
+
<ic-typography apply-vertical-margins variant="code-extra-small"
|
89
|
+
>Code extra small</ic-typography
|
90
|
+
>
|
91
|
+
`,
|
92
|
+
|
93
|
+
name: "Vertical margins",
|
94
|
+
};
|
95
|
+
|
96
|
+
export const Truncation = {
|
97
|
+
render: () => html`
|
98
|
+
<ic-typography max-lines="3" variant="body">
|
99
|
+
Body of text that is truncated to three lines. Click the 'See more' link
|
100
|
+
to expand the text, then click 'See less' to truncate the text once more!
|
101
|
+
<br />
|
102
|
+
Dripper caramelization java saucer grounds galão, mocha, and robusta
|
103
|
+
kopi-luwak, percolator, instant, qui saucer latte in brewed café au lait.
|
104
|
+
Con panna, cup, cream, body americano affogato cup espresso, rich milk
|
105
|
+
seasonal saucer grinder spoon that cultivar strong redeye frappuccino
|
106
|
+
barista extraction redeye mazagran. Grounds, french press dripper organic
|
107
|
+
and foam id saucer, crema, black rich dark, grounds breve coffee steamed
|
108
|
+
caramelization percolator.
|
109
|
+
</ic-typography>
|
110
|
+
`,
|
111
|
+
|
112
|
+
name: "Truncation",
|
113
|
+
};
|
114
|
+
|
115
|
+
export const Bold = {
|
116
|
+
render: () => html`
|
117
|
+
<ic-typography variant="h1" bold="true">Extra large title</ic-typography>
|
118
|
+
<ic-typography variant="h2" bold="true">Large title</ic-typography>
|
119
|
+
<ic-typography variant="h3" bold="true">Medium title</ic-typography>
|
120
|
+
<ic-typography variant="h4" bold="true">Small title</ic-typography>
|
121
|
+
<ic-typography variant="subtitle-large" bold="true"
|
122
|
+
>Subtitle 1</ic-typography
|
123
|
+
>
|
124
|
+
<ic-typography variant="subtitle-small" bold="true"
|
125
|
+
>Subtitle 2</ic-typography
|
126
|
+
>
|
127
|
+
<ic-typography variant="body" bold="true">Body text</ic-typography>
|
128
|
+
<ic-typography variant="label" bold="true">Label</ic-typography>
|
129
|
+
<ic-typography variant="caption" bold="true">Caption text</ic-typography>
|
130
|
+
<ic-typography variant="caption-uppercase" bold="true"
|
131
|
+
>Caption uppercase</ic-typography
|
132
|
+
>
|
133
|
+
<ic-typography variant="label-uppercase" bold="true"
|
134
|
+
>Label uppercase</ic-typography
|
135
|
+
>
|
136
|
+
<ic-typography variant="code-large" bold="true">Code large</ic-typography>
|
137
|
+
<ic-typography variant="code-small" bold="true">Code small</ic-typography>
|
138
|
+
<ic-typography variant="code-extra-small" bold="true"
|
139
|
+
>Code extra small</ic-typography
|
140
|
+
>
|
141
|
+
`,
|
142
|
+
|
143
|
+
name: "Bold",
|
144
|
+
};
|
145
|
+
|
146
|
+
export const Italic = {
|
147
|
+
render: () => html`
|
148
|
+
<ic-typography variant="h1" italic="true">Extra large title</ic-typography>
|
149
|
+
<ic-typography variant="h2" italic="true">Large title</ic-typography>
|
150
|
+
<ic-typography variant="h3" italic="true">Medium title</ic-typography>
|
151
|
+
<ic-typography variant="h4" italic="true">Small title</ic-typography>
|
152
|
+
<ic-typography variant="subtitle-large" italic="true"
|
153
|
+
>Subtitle 1</ic-typography
|
154
|
+
>
|
155
|
+
<ic-typography variant="subtitle-small" italic="true"
|
156
|
+
>Subtitle 2</ic-typography
|
157
|
+
>
|
158
|
+
<ic-typography variant="body" italic="true">Body text</ic-typography>
|
159
|
+
<ic-typography variant="label" italic="true">Label</ic-typography>
|
160
|
+
<ic-typography variant="caption" italic="true">Caption text</ic-typography>
|
161
|
+
<ic-typography variant="caption-uppercase" italic="true"
|
162
|
+
>Caption uppercase</ic-typography
|
163
|
+
>
|
164
|
+
<ic-typography variant="label-uppercase" italic="true"
|
165
|
+
>Label uppercase</ic-typography
|
166
|
+
>
|
167
|
+
<ic-typography variant="code-large" italic="true">Code large</ic-typography>
|
168
|
+
<ic-typography variant="code-small" italic="true">Code small</ic-typography>
|
169
|
+
<ic-typography variant="code-extra-small" italic="true"
|
170
|
+
>Code extra small</ic-typography
|
171
|
+
>
|
172
|
+
`,
|
173
|
+
|
174
|
+
name: "Italic",
|
175
|
+
};
|
176
|
+
|
177
|
+
export const Strikethrough = {
|
178
|
+
render: () => html`
|
179
|
+
<ic-typography variant="h1" strikethrough="true"
|
180
|
+
>Extra large title</ic-typography
|
181
|
+
>
|
182
|
+
<ic-typography variant="h2" strikethrough="true">Large title</ic-typography>
|
183
|
+
<ic-typography variant="h3" strikethrough="true"
|
184
|
+
>Medium title</ic-typography
|
185
|
+
>
|
186
|
+
<ic-typography variant="h4" strikethrough="true">Small title</ic-typography>
|
187
|
+
<ic-typography variant="subtitle-large" strikethrough="true"
|
188
|
+
>Subtitle 1</ic-typography
|
189
|
+
>
|
190
|
+
<ic-typography variant="subtitle-small" strikethrough="true"
|
191
|
+
>Subtitle 2</ic-typography
|
192
|
+
>
|
193
|
+
<ic-typography variant="body" strikethrough="true">Body text</ic-typography>
|
194
|
+
<ic-typography variant="label" strikethrough="true">Label</ic-typography>
|
195
|
+
<ic-typography variant="caption" strikethrough="true"
|
196
|
+
>Caption text</ic-typography
|
197
|
+
>
|
198
|
+
<ic-typography variant="caption-uppercase" strikethrough="true"
|
199
|
+
>Caption uppercase</ic-typography
|
200
|
+
>
|
201
|
+
<ic-typography variant="label-uppercase" strikethrough="true"
|
202
|
+
>Label uppercase</ic-typography
|
203
|
+
>
|
204
|
+
<ic-typography variant="code-large" strikethrough="true"
|
205
|
+
>Code large</ic-typography
|
206
|
+
>
|
207
|
+
<ic-typography variant="code-small" strikethrough="true"
|
208
|
+
>Code small</ic-typography
|
209
|
+
>
|
210
|
+
<ic-typography variant="code-extra-small" strikethrough="true"
|
211
|
+
>Code extra small</ic-typography
|
212
|
+
>
|
213
|
+
`,
|
214
|
+
|
215
|
+
name: "Strikethrough",
|
216
|
+
};
|
217
|
+
|
218
|
+
export const Underline = {
|
219
|
+
render: () => html`
|
220
|
+
<ic-typography variant="h1" underline="true"
|
221
|
+
>Extra large title</ic-typography
|
222
|
+
>
|
223
|
+
<ic-typography variant="h2" underline="true">Large title</ic-typography>
|
224
|
+
<ic-typography variant="h3" underline="true">Medium title</ic-typography>
|
225
|
+
<ic-typography variant="h4" underline="true">Small title</ic-typography>
|
226
|
+
<ic-typography variant="subtitle-large" underline="true"
|
227
|
+
>Subtitle 1</ic-typography
|
228
|
+
>
|
229
|
+
<ic-typography variant="subtitle-small" underline="true"
|
230
|
+
>Subtitle 2</ic-typography
|
231
|
+
>
|
232
|
+
<ic-typography variant="body" underline="true">Body text</ic-typography>
|
233
|
+
<ic-typography variant="label" underline="true">Label</ic-typography>
|
234
|
+
<ic-typography variant="caption" underline="true"
|
235
|
+
>Caption text</ic-typography
|
236
|
+
>
|
237
|
+
<ic-typography variant="caption-uppercase" underline="true"
|
238
|
+
>Caption uppercase</ic-typography
|
239
|
+
>
|
240
|
+
<ic-typography variant="label-uppercase" underline="true"
|
241
|
+
>Label uppercase</ic-typography
|
242
|
+
>
|
243
|
+
<ic-typography variant="code-large" underline="true"
|
244
|
+
>Code large</ic-typography
|
245
|
+
>
|
246
|
+
<ic-typography variant="code-small" underline="true"
|
247
|
+
>Code small</ic-typography
|
248
|
+
>
|
249
|
+
<ic-typography variant="code-extra-small" underline="true"
|
250
|
+
>Code extra small</ic-typography
|
251
|
+
>
|
252
|
+
`,
|
253
|
+
|
254
|
+
name: "Underline",
|
255
|
+
};
|
256
|
+
|
257
|
+
export const AllPropTextStyles = {
|
258
|
+
render: () => html`
|
259
|
+
<ic-typography
|
260
|
+
variant="h1"
|
261
|
+
strikethrough="true"
|
262
|
+
italic="true"
|
263
|
+
bold="true"
|
264
|
+
underline="true"
|
265
|
+
>Extra large title</ic-typography
|
266
|
+
>
|
267
|
+
<ic-typography
|
268
|
+
variant="h2"
|
269
|
+
strikethrough="true"
|
270
|
+
italic="true"
|
271
|
+
bold="true"
|
272
|
+
underline="true"
|
273
|
+
>Large title</ic-typography
|
274
|
+
>
|
275
|
+
<ic-typography
|
276
|
+
variant="h3"
|
277
|
+
strikethrough="true"
|
278
|
+
italic="true"
|
279
|
+
bold="true"
|
280
|
+
underline="true"
|
281
|
+
>Medium title</ic-typography
|
282
|
+
>
|
283
|
+
<ic-typography
|
284
|
+
variant="h4"
|
285
|
+
strikethrough="true"
|
286
|
+
italic="true"
|
287
|
+
bold="true"
|
288
|
+
underline="true"
|
289
|
+
>Small title</ic-typography
|
290
|
+
>
|
291
|
+
<ic-typography
|
292
|
+
variant="subtitle-large"
|
293
|
+
strikethrough="true"
|
294
|
+
italic="true"
|
295
|
+
bold="true"
|
296
|
+
underline="true"
|
297
|
+
>Subtitle 1</ic-typography
|
298
|
+
>
|
299
|
+
<ic-typography
|
300
|
+
variant="subtitle-small"
|
301
|
+
strikethrough="true"
|
302
|
+
italic="true"
|
303
|
+
bold="true"
|
304
|
+
underline="true"
|
305
|
+
>Subtitle 2</ic-typography
|
306
|
+
>
|
307
|
+
<ic-typography
|
308
|
+
variant="body"
|
309
|
+
strikethrough="true"
|
310
|
+
italic="true"
|
311
|
+
bold="true"
|
312
|
+
underline="true"
|
313
|
+
>Body text</ic-typography
|
314
|
+
>
|
315
|
+
<ic-typography
|
316
|
+
variant="label"
|
317
|
+
strikethrough="true"
|
318
|
+
italic="true"
|
319
|
+
bold="true"
|
320
|
+
underline="true"
|
321
|
+
>Label</ic-typography
|
322
|
+
>
|
323
|
+
<ic-typography
|
324
|
+
variant="caption"
|
325
|
+
strikethrough="true"
|
326
|
+
italic="true"
|
327
|
+
bold="true"
|
328
|
+
underline="true"
|
329
|
+
>Caption text</ic-typography
|
330
|
+
>
|
331
|
+
<ic-typography
|
332
|
+
variant="caption-uppercase"
|
333
|
+
strikethrough="true"
|
334
|
+
italic="true"
|
335
|
+
bold="true"
|
336
|
+
underline="true"
|
337
|
+
>Caption uppercase</ic-typography
|
338
|
+
>
|
339
|
+
<ic-typography
|
340
|
+
variant="label-uppercase"
|
341
|
+
strikethrough="true"
|
342
|
+
italic="true"
|
343
|
+
bold="true"
|
344
|
+
underline="true"
|
345
|
+
>Label uppercase</ic-typography
|
346
|
+
>
|
347
|
+
<ic-typography
|
348
|
+
variant="code-large"
|
349
|
+
strikethrough="true"
|
350
|
+
italic="true"
|
351
|
+
bold="true"
|
352
|
+
underline="true"
|
353
|
+
>Code large</ic-typography
|
354
|
+
>
|
355
|
+
<ic-typography
|
356
|
+
variant="code-small"
|
357
|
+
strikethrough="true"
|
358
|
+
italic="true"
|
359
|
+
bold="true"
|
360
|
+
underline="true"
|
361
|
+
>Code small</ic-typography
|
362
|
+
>
|
363
|
+
<ic-typography
|
364
|
+
variant="code-extra-small"
|
365
|
+
strikethrough="true"
|
366
|
+
italic="true"
|
367
|
+
bold="true"
|
368
|
+
underline="true"
|
369
|
+
>Code extra small</ic-typography
|
370
|
+
>
|
371
|
+
`,
|
372
|
+
|
373
|
+
name: "All prop text styles",
|
374
|
+
};
|
375
|
+
|
376
|
+
export const MinAndMaxContent = {
|
377
|
+
render: () => html`
|
378
|
+
<ic-typography variant="body">A</ic-typography>
|
379
|
+
<ic-typography variant="body"
|
380
|
+
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam egestas
|
381
|
+
eget lorem sed luctus. Aenean vitae lorem leo. Pellentesque fringilla
|
382
|
+
semper posuere. Nullam eget sem felis. Fusce quis laoreet arcu. Nulla
|
383
|
+
commodo fringilla magna eget vehicula. Morbi ac nisl tellus. Ut mollis,
|
384
|
+
nunc blandit aliquam dignissim, neque neque rhoncus nisi, at maximus
|
385
|
+
ligula est vitae felis. Nunc at eros posuere, finibus metus sit amet,
|
386
|
+
cursus mi. Nunc euismod ac turpis sit amet luctus. Pellentesque dictum
|
387
|
+
tempor congue. Vivamus consectetur orci eget ante molestie, eget luctus
|
388
|
+
enim tempus. Nam iaculis odio et orci consequat, et volutpat dolor
|
389
|
+
finibus. Proin et porttitor diam. Ut quis est vel diam tincidunt congue
|
390
|
+
nec at ipsum.</ic-typography
|
391
|
+
>
|
392
|
+
`,
|
393
|
+
|
394
|
+
name: "Min and max content",
|
395
|
+
};
|
396
|
+
|
397
|
+
export const Playground = {
|
398
|
+
render: (args) =>
|
399
|
+
html`<ic-typography
|
400
|
+
apply-vertical-margins=${args.applyVerticalMargins}
|
401
|
+
variant=${args.variant}
|
402
|
+
bold=${args.bold}
|
403
|
+
italic=${args.italic}
|
404
|
+
strikethrough=${args.strikethrough}
|
405
|
+
underline=${args.underline}
|
406
|
+
>Typography to test</ic-typography
|
407
|
+
>`,
|
408
|
+
|
409
|
+
args: defaultArgs,
|
410
|
+
|
411
|
+
argTypes: {
|
412
|
+
variant: {
|
413
|
+
options: [
|
414
|
+
"body",
|
415
|
+
"caption",
|
416
|
+
"h1",
|
417
|
+
"h2",
|
418
|
+
"h3",
|
419
|
+
"h4",
|
420
|
+
"label",
|
421
|
+
"subtitle-large",
|
422
|
+
"subtitle-small",
|
423
|
+
"label-uppercase",
|
424
|
+
"caption-uppercase",
|
425
|
+
"code-large",
|
426
|
+
"code-small",
|
427
|
+
"code-extra-small",
|
428
|
+
],
|
429
|
+
|
430
|
+
control: {
|
431
|
+
type: "select",
|
432
|
+
},
|
433
|
+
},
|
434
|
+
},
|
435
|
+
|
436
|
+
name: "Playground",
|
437
|
+
};
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import { html } from "lit-html";
|
2
|
+
|
3
|
+
export default {
|
4
|
+
title: "Patterns/Single Column",
|
5
|
+
};
|
6
|
+
|
7
|
+
export const SingleColumnWithTopNavigationAndFooter = {
|
8
|
+
render: (args) =>
|
9
|
+
html`<div>
|
10
|
+
<div style="display: flex; flex-direction: column; min-height: 100vh;">
|
11
|
+
<ic-top-navigation
|
12
|
+
app-title="Application Name"
|
13
|
+
status="alpha"
|
14
|
+
version="v0.0.7"
|
15
|
+
content-aligned="center"
|
16
|
+
>
|
17
|
+
<svg
|
18
|
+
slot="app-icon"
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
20
|
+
height="24px"
|
21
|
+
viewBox="0 0 24 24"
|
22
|
+
width="24px"
|
23
|
+
fill="#000000"
|
24
|
+
>
|
25
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
26
|
+
<path
|
27
|
+
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"
|
28
|
+
/>
|
29
|
+
</svg>
|
30
|
+
<ic-search-bar
|
31
|
+
slot="search"
|
32
|
+
placeholder="Search"
|
33
|
+
label="Search"
|
34
|
+
></ic-search-bar>
|
35
|
+
<ic-navigation-button
|
36
|
+
label="button1"
|
37
|
+
slot="buttons"
|
38
|
+
onclick="alert('test')"
|
39
|
+
>
|
40
|
+
<svg
|
41
|
+
slot="icon"
|
42
|
+
xmlns="http://www.w3.org/2000/svg"
|
43
|
+
height="24px"
|
44
|
+
viewBox="0 0 24 24"
|
45
|
+
width="24px"
|
46
|
+
fill="#000000"
|
47
|
+
>
|
48
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
49
|
+
<path
|
50
|
+
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"
|
51
|
+
/>
|
52
|
+
</svg>
|
53
|
+
</ic-navigation-button>
|
54
|
+
<ic-navigation-item
|
55
|
+
slot="navigation"
|
56
|
+
label="Navigation"
|
57
|
+
href="/"
|
58
|
+
></ic-navigation-item>
|
59
|
+
<ic-navigation-group
|
60
|
+
slot="navigation"
|
61
|
+
label="Navigation group"
|
62
|
+
expandable="true"
|
63
|
+
>
|
64
|
+
<ic-navigation-item
|
65
|
+
label="Navigation"
|
66
|
+
href="/"
|
67
|
+
></ic-navigation-item>
|
68
|
+
<ic-navigation-item
|
69
|
+
label="Navigation"
|
70
|
+
href="/"
|
71
|
+
></ic-navigation-item>
|
72
|
+
</ic-navigation-group>
|
73
|
+
</ic-top-navigation>
|
74
|
+
<main style="height: 100%">
|
75
|
+
<ic-section-container aligned="center">
|
76
|
+
<ic-typography
|
77
|
+
>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
78
|
+
Vestibulum pharetra scelerisque arcu, vitae semper nisl rhoncus
|
79
|
+
ut. Vestibulum molestie enim at sollicitudin pellentesque. Proin
|
80
|
+
sit amet augue sit amet dui suscipit lobortis. Nullam at
|
81
|
+
consectetur ante. Suspendisse mollis ultricies porttitor. Nunc
|
82
|
+
laoreet leo tortor, ut tristique odio finibus a. In rutrum
|
83
|
+
convallis purus, vitae tristique tortor sagittis vel. Donec dictum
|
84
|
+
nunc a elit tristique, et facilisis est condimentum. Pellentesque
|
85
|
+
maximus nulla libero, nec auctor urna consequat nec. Class aptent
|
86
|
+
taciti sociosqu ad litora torquent per conubia nostra, per
|
87
|
+
inceptos himenaeos. In maximus velit a erat volutpat, sit amet
|
88
|
+
consequat velit rhoncus. Mauris pretium neque eget ante
|
89
|
+
consectetur consectetur. Morbi a consequat lectus. Donec venenatis
|
90
|
+
ultricies sem nec pulvinar. Fusce lacus augue, laoreet id pretium
|
91
|
+
id, efficitur nec leo.</ic-typography
|
92
|
+
>
|
93
|
+
</ic-section-container>
|
94
|
+
</main>
|
95
|
+
</div>
|
96
|
+
<ic-footer
|
97
|
+
aligned="full-width"
|
98
|
+
description="The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback,
|
99
|
+
please get in touch."
|
100
|
+
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."
|
101
|
+
></ic-footer>
|
102
|
+
</div>`,
|
103
|
+
|
104
|
+
name: "Single Column with Top Navigation and Footer",
|
105
|
+
|
106
|
+
parameters: {
|
107
|
+
layout: "fullscreen",
|
108
|
+
},
|
109
|
+
};
|