@iroco/ui 1.0.0-0 → 1.0.0-10
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 +49 -1
- package/dist/Alert.stories.svelte +32 -0
- package/dist/Alert.stories.svelte.d.ts +37 -0
- package/dist/Alert.svelte +8 -52
- package/dist/Button.stories.svelte +5 -7
- package/dist/Button.stories.svelte.d.ts +6 -3
- package/dist/Button.svelte +18 -62
- package/dist/Button.svelte.d.ts +0 -4
- package/dist/DataTable.stories.svelte +31 -0
- package/dist/DataTable.stories.svelte.d.ts +29 -0
- package/dist/DataTable.svelte +3 -47
- package/dist/IconBurger.stories.svelte +30 -0
- package/dist/IconBurger.stories.svelte.d.ts +48 -0
- package/dist/IconClose.stories.svelte +30 -0
- package/dist/IconClose.stories.svelte.d.ts +48 -0
- package/dist/IconFloppyDisk.stories.svelte +33 -0
- package/dist/IconFloppyDisk.stories.svelte.d.ts +55 -0
- package/dist/IconInfo.stories.svelte +31 -0
- package/dist/IconInfo.stories.svelte.d.ts +50 -0
- package/dist/IconIrocoLogo.stories.svelte +34 -0
- package/dist/IconIrocoLogo.stories.svelte.d.ts +57 -0
- package/dist/IconIrocoLogo.svelte +14 -10
- package/dist/IconIrocoLogo.svelte.d.ts +2 -0
- package/dist/IconMoreSign.stories.svelte +31 -0
- package/dist/IconMoreSign.stories.svelte.d.ts +50 -0
- package/dist/IconTrashCan.stories.svelte +31 -0
- package/dist/IconTrashCan.stories.svelte.d.ts +50 -0
- package/dist/ImageArticle.stories.svelte +61 -0
- package/dist/ImageArticle.stories.svelte.d.ts +66 -0
- package/dist/ImageArticle.svelte +454 -0
- package/dist/ImageArticle.svelte.d.ts +23 -0
- package/dist/IrocoLogo.stories.svelte +31 -0
- package/dist/IrocoLogo.stories.svelte.d.ts +50 -0
- package/dist/IrocoLogo.svelte +3 -6
- package/dist/IrocoLogo.svelte.d.ts +2 -2
- package/dist/Loader.stories.svelte +19 -0
- package/dist/Loader.stories.svelte.d.ts +29 -0
- package/dist/NavBar.stories.svelte +37 -0
- package/dist/NavBar.stories.svelte.d.ts +37 -0
- package/dist/NavBar.svelte +27 -196
- package/dist/Navigation.stories.svelte +48 -0
- package/dist/Navigation.stories.svelte.d.ts +59 -0
- package/dist/Navigation.svelte +16 -87
- package/dist/Navigation.svelte.d.ts +1 -0
- package/dist/NumberInput.stories.svelte +47 -0
- package/dist/NumberInput.stories.svelte.d.ts +77 -0
- package/dist/NumberInput.svelte +11 -55
- package/dist/NumberInput.svelte.d.ts +4 -4
- package/dist/RadioButton.stories.svelte +39 -0
- package/dist/RadioButton.stories.svelte.d.ts +56 -0
- package/dist/RadioButton.svelte +5 -50
- package/dist/RadioButton.svelte.d.ts +0 -2
- package/dist/TextInput.stories.svelte +78 -0
- package/dist/TextInput.stories.svelte.d.ts +111 -0
- package/dist/TextInput.svelte +18 -61
- package/dist/TextInput.svelte.d.ts +8 -8
- package/dist/definition.d.ts +5 -0
- package/dist/definition.js +8 -0
- package/dist/scss/button.scss +25 -15
- package/dist/scss/colors.scss +68 -44
- package/dist/scss/fields/_checkbox.scss +3 -3
- package/dist/scss/fields/_input.scss +11 -15
- package/dist/scss/forms.scss +8 -8
- package/dist/scss/style.scss +1 -1
- package/package.json +6 -4
- package/dist/NumberInputSized.svelte +0 -4
- package/dist/NumberInputSized.svelte.d.ts +0 -14
- package/dist/TopBar.svelte +0 -0
- package/dist/TopBar.svelte.d.ts +0 -23
- package/dist/scss/check.scss +0 -47
- package/dist/scss/iroco.scss +0 -36
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
<script>import { Icon } from "svelte-awesome";
|
|
2
|
+
import chevronRight from "svelte-awesome/icons/chevronRight";
|
|
3
|
+
export let imgSrc;
|
|
4
|
+
export let figureCaption = void 0;
|
|
5
|
+
export let alt;
|
|
6
|
+
export let articleTitle;
|
|
7
|
+
export let articleContent;
|
|
8
|
+
export let buttonList = [];
|
|
9
|
+
export let reversed = false;
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<div class="imagearticle" class:reversed>
|
|
13
|
+
<figure class="imagearticle__figure">
|
|
14
|
+
<img class="imagearticle__figure__image"
|
|
15
|
+
src={imgSrc}
|
|
16
|
+
{alt} />
|
|
17
|
+
{#if figureCaption}
|
|
18
|
+
<figcaption>{ figureCaption }</figcaption>
|
|
19
|
+
{/if}
|
|
20
|
+
</figure>
|
|
21
|
+
|
|
22
|
+
<article class="imagearticle__article">
|
|
23
|
+
<h1>{articleTitle}</h1>
|
|
24
|
+
<p>{articleContent}</p>
|
|
25
|
+
<div class="imagearticle__article__buttonGroup">
|
|
26
|
+
{#each buttonList as buttonModel}
|
|
27
|
+
<a
|
|
28
|
+
class="iroco-ui-button iroco-ui-button--small iroco-ui-button--dark"
|
|
29
|
+
href={buttonModel.href}
|
|
30
|
+
role="button"
|
|
31
|
+
>
|
|
32
|
+
<Icon data={chevronRight} />
|
|
33
|
+
{buttonModel.label}
|
|
34
|
+
</a>
|
|
35
|
+
{/each}
|
|
36
|
+
</div>
|
|
37
|
+
</article>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<style>.container-wide {
|
|
41
|
+
width: calc(100% - 20px);
|
|
42
|
+
max-width: 2360px;
|
|
43
|
+
margin-left: auto;
|
|
44
|
+
margin-right: auto;
|
|
45
|
+
transition: max-width ease-out 200ms;
|
|
46
|
+
}
|
|
47
|
+
@media all and (max-width: 2560px) {
|
|
48
|
+
.container-wide {
|
|
49
|
+
max-width: 1620px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
@media all and (max-width: 1800px) {
|
|
53
|
+
.container-wide {
|
|
54
|
+
max-width: 1280px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
@media all and (max-width: 1440px) {
|
|
58
|
+
.container-wide {
|
|
59
|
+
max-width: 884px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
@media all and (max-width: 1024px) {
|
|
63
|
+
.container-wide {
|
|
64
|
+
max-width: 648px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
@media all and (max-width: 768px) {
|
|
68
|
+
.container-wide {
|
|
69
|
+
max-width: 496px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@media all and (max-width: 596px) {
|
|
73
|
+
.container-wide {
|
|
74
|
+
max-width: 365px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
@media all and (max-width: 425px) {
|
|
78
|
+
.container-wide {
|
|
79
|
+
max-width: calc(100% - 60px);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
@media all and (max-width: 375px) {
|
|
83
|
+
.container-wide {
|
|
84
|
+
max-width: calc(100% - 40px);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
@media all and (max-width: 320px) {
|
|
88
|
+
.container-wide {
|
|
89
|
+
max-width: calc(100% - 20px);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.container-large {
|
|
93
|
+
width: calc(100% - 20px);
|
|
94
|
+
max-width: 1280px;
|
|
95
|
+
margin-left: auto;
|
|
96
|
+
margin-right: auto;
|
|
97
|
+
transition: max-width ease-out 200ms;
|
|
98
|
+
}
|
|
99
|
+
@media all and (max-width: 1440px) {
|
|
100
|
+
.container-large {
|
|
101
|
+
max-width: 884px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@media all and (max-width: 1024px) {
|
|
105
|
+
.container-large {
|
|
106
|
+
max-width: 648px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
@media all and (max-width: 768px) {
|
|
110
|
+
.container-large {
|
|
111
|
+
max-width: 496px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
@media all and (max-width: 596px) {
|
|
115
|
+
.container-large {
|
|
116
|
+
max-width: 365px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
@media all and (max-width: 425px) {
|
|
120
|
+
.container-large {
|
|
121
|
+
max-width: calc(100% - 60px);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
@media all and (max-width: 375px) {
|
|
125
|
+
.container-large {
|
|
126
|
+
max-width: calc(100% - 40px);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
@media all and (max-width: 320px) {
|
|
130
|
+
.container-large {
|
|
131
|
+
max-width: calc(100% - 20px);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.container-medium {
|
|
135
|
+
width: calc(100% - 20px);
|
|
136
|
+
max-width: 884px;
|
|
137
|
+
margin-left: auto;
|
|
138
|
+
margin-right: auto;
|
|
139
|
+
transition: max-width ease-out 200ms;
|
|
140
|
+
}
|
|
141
|
+
@media all and (max-width: 1024px) {
|
|
142
|
+
.container-medium {
|
|
143
|
+
max-width: 648px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
@media all and (max-width: 768px) {
|
|
147
|
+
.container-medium {
|
|
148
|
+
max-width: 496px;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
@media all and (max-width: 596px) {
|
|
152
|
+
.container-medium {
|
|
153
|
+
max-width: 365px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
@media all and (max-width: 425px) {
|
|
157
|
+
.container-medium {
|
|
158
|
+
max-width: calc(100% - 60px);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
@media all and (max-width: 375px) {
|
|
162
|
+
.container-medium {
|
|
163
|
+
max-width: calc(100% - 40px);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
@media all and (max-width: 320px) {
|
|
167
|
+
.container-medium {
|
|
168
|
+
max-width: calc(100% - 20px);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
.container-small {
|
|
172
|
+
width: calc(100% - 20px);
|
|
173
|
+
max-width: 496px;
|
|
174
|
+
margin-left: auto;
|
|
175
|
+
margin-right: auto;
|
|
176
|
+
transition: max-width ease-out 200ms;
|
|
177
|
+
}
|
|
178
|
+
@media all and (max-width: 425px) {
|
|
179
|
+
.container-small {
|
|
180
|
+
max-width: calc(100% - 60px);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
@media all and (max-width: 375px) {
|
|
184
|
+
.container-small {
|
|
185
|
+
max-width: calc(100% - 40px);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
@media all and (max-width: 320px) {
|
|
189
|
+
.container-small {
|
|
190
|
+
max-width: calc(100% - 20px);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
.container-wide {
|
|
194
|
+
width: calc(100% - 20px);
|
|
195
|
+
max-width: 2360px;
|
|
196
|
+
margin-left: auto;
|
|
197
|
+
margin-right: auto;
|
|
198
|
+
transition: max-width ease-out 200ms;
|
|
199
|
+
}
|
|
200
|
+
@media all and (max-width: 2560px) {
|
|
201
|
+
.container-wide {
|
|
202
|
+
max-width: 1620px;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
@media all and (max-width: 1800px) {
|
|
206
|
+
.container-wide {
|
|
207
|
+
max-width: 1280px;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
@media all and (max-width: 1440px) {
|
|
211
|
+
.container-wide {
|
|
212
|
+
max-width: 884px;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
@media all and (max-width: 1024px) {
|
|
216
|
+
.container-wide {
|
|
217
|
+
max-width: 648px;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
@media all and (max-width: 768px) {
|
|
221
|
+
.container-wide {
|
|
222
|
+
max-width: 496px;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
@media all and (max-width: 596px) {
|
|
226
|
+
.container-wide {
|
|
227
|
+
max-width: 365px;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
@media all and (max-width: 425px) {
|
|
231
|
+
.container-wide {
|
|
232
|
+
max-width: calc(100% - 60px);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
@media all and (max-width: 375px) {
|
|
236
|
+
.container-wide {
|
|
237
|
+
max-width: calc(100% - 40px);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
@media all and (max-width: 320px) {
|
|
241
|
+
.container-wide {
|
|
242
|
+
max-width: calc(100% - 20px);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
.container-large {
|
|
246
|
+
width: calc(100% - 20px);
|
|
247
|
+
max-width: 1280px;
|
|
248
|
+
margin-left: auto;
|
|
249
|
+
margin-right: auto;
|
|
250
|
+
transition: max-width ease-out 200ms;
|
|
251
|
+
}
|
|
252
|
+
@media all and (max-width: 1440px) {
|
|
253
|
+
.container-large {
|
|
254
|
+
max-width: 884px;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
@media all and (max-width: 1024px) {
|
|
258
|
+
.container-large {
|
|
259
|
+
max-width: 648px;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
@media all and (max-width: 768px) {
|
|
263
|
+
.container-large {
|
|
264
|
+
max-width: 496px;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
@media all and (max-width: 596px) {
|
|
268
|
+
.container-large {
|
|
269
|
+
max-width: 365px;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
@media all and (max-width: 425px) {
|
|
273
|
+
.container-large {
|
|
274
|
+
max-width: calc(100% - 60px);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
@media all and (max-width: 375px) {
|
|
278
|
+
.container-large {
|
|
279
|
+
max-width: calc(100% - 40px);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
@media all and (max-width: 320px) {
|
|
283
|
+
.container-large {
|
|
284
|
+
max-width: calc(100% - 20px);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
.container-medium {
|
|
288
|
+
width: calc(100% - 20px);
|
|
289
|
+
max-width: 884px;
|
|
290
|
+
margin-left: auto;
|
|
291
|
+
margin-right: auto;
|
|
292
|
+
transition: max-width ease-out 200ms;
|
|
293
|
+
}
|
|
294
|
+
@media all and (max-width: 1024px) {
|
|
295
|
+
.container-medium {
|
|
296
|
+
max-width: 648px;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
@media all and (max-width: 768px) {
|
|
300
|
+
.container-medium {
|
|
301
|
+
max-width: 496px;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
@media all and (max-width: 596px) {
|
|
305
|
+
.container-medium {
|
|
306
|
+
max-width: 365px;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
@media all and (max-width: 425px) {
|
|
310
|
+
.container-medium {
|
|
311
|
+
max-width: calc(100% - 60px);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
@media all and (max-width: 375px) {
|
|
315
|
+
.container-medium {
|
|
316
|
+
max-width: calc(100% - 40px);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
@media all and (max-width: 320px) {
|
|
320
|
+
.container-medium {
|
|
321
|
+
max-width: calc(100% - 20px);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
.container-small {
|
|
325
|
+
width: calc(100% - 20px);
|
|
326
|
+
max-width: 496px;
|
|
327
|
+
margin-left: auto;
|
|
328
|
+
margin-right: auto;
|
|
329
|
+
transition: max-width ease-out 200ms;
|
|
330
|
+
}
|
|
331
|
+
@media all and (max-width: 425px) {
|
|
332
|
+
.container-small {
|
|
333
|
+
max-width: calc(100% - 60px);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
@media all and (max-width: 375px) {
|
|
337
|
+
.container-small {
|
|
338
|
+
max-width: calc(100% - 40px);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
@media all and (max-width: 320px) {
|
|
342
|
+
.container-small {
|
|
343
|
+
max-width: calc(100% - 20px);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
.iroco-ui-button {
|
|
347
|
+
cursor: pointer;
|
|
348
|
+
-webkit-touch-callout: none;
|
|
349
|
+
-webkit-user-select: none;
|
|
350
|
+
-moz-user-select: none;
|
|
351
|
+
-ms-user-select: none;
|
|
352
|
+
user-select: none;
|
|
353
|
+
border: none;
|
|
354
|
+
flex-shrink: 0;
|
|
355
|
+
margin: 1em 0;
|
|
356
|
+
position: relative;
|
|
357
|
+
text-transform: uppercase;
|
|
358
|
+
border-radius: 0.3em;
|
|
359
|
+
}
|
|
360
|
+
.iroco-ui-button--basic {
|
|
361
|
+
color: var(--btn-basic-label);
|
|
362
|
+
background: var(--btn-basic-bg);
|
|
363
|
+
border: 1px solid var(--btn-basic-border);
|
|
364
|
+
}
|
|
365
|
+
.iroco-ui-button--dark {
|
|
366
|
+
background: var(--dark-btn-primary-bg);
|
|
367
|
+
color: var(--dark-btn-primary-label);
|
|
368
|
+
}
|
|
369
|
+
.iroco-ui-button--success {
|
|
370
|
+
background: var(--color-success);
|
|
371
|
+
color: var(--btn-secondary-label);
|
|
372
|
+
}
|
|
373
|
+
.iroco-ui-button--danger {
|
|
374
|
+
background: var(--color-danger);
|
|
375
|
+
}
|
|
376
|
+
.iroco-ui-button--regular {
|
|
377
|
+
padding: 1em 2em;
|
|
378
|
+
}
|
|
379
|
+
.iroco-ui-button--small {
|
|
380
|
+
padding: 0.5em 1em;
|
|
381
|
+
}
|
|
382
|
+
.iroco-ui-button--basic:hover, .iroco-ui-button--success:hover, .iroco-ui-button--danger:hover {
|
|
383
|
+
box-shadow: inset 0 0 0 10em var(--color-black-op-20);
|
|
384
|
+
}
|
|
385
|
+
.iroco-ui-button--dark:hover {
|
|
386
|
+
box-shadow: inset 0 0 0 10em var(--color-white-op-20);
|
|
387
|
+
}
|
|
388
|
+
.iroco-ui-button:active {
|
|
389
|
+
box-shadow: none;
|
|
390
|
+
}
|
|
391
|
+
.iroco-ui-button.disabled, .iroco-ui-button:disabled {
|
|
392
|
+
background-color: var(--btn-disabled-bg);
|
|
393
|
+
color: var(--btn-disabled-label);
|
|
394
|
+
border-color: var(--btn-disabled-border);
|
|
395
|
+
cursor: default;
|
|
396
|
+
}
|
|
397
|
+
.iroco-ui-button.disabled:hover, .iroco-ui-button:disabled:hover {
|
|
398
|
+
box-shadow: none;
|
|
399
|
+
}
|
|
400
|
+
.iroco-ui-link {
|
|
401
|
+
background: none;
|
|
402
|
+
border: none;
|
|
403
|
+
font-family: "Arial";
|
|
404
|
+
color: var(--color-text);
|
|
405
|
+
cursor: pointer;
|
|
406
|
+
}
|
|
407
|
+
.imagearticle {
|
|
408
|
+
display: flex;
|
|
409
|
+
justify-content: space-around;
|
|
410
|
+
align-items: center;
|
|
411
|
+
}
|
|
412
|
+
.imagearticle__figure {
|
|
413
|
+
width: 40%;
|
|
414
|
+
display: block;
|
|
415
|
+
object-fit: cover;
|
|
416
|
+
margin: 0 auto;
|
|
417
|
+
text-align: center;
|
|
418
|
+
}
|
|
419
|
+
.imagearticle__figure__image {
|
|
420
|
+
width: 100%;
|
|
421
|
+
}
|
|
422
|
+
.imagearticle__article {
|
|
423
|
+
width: 50%;
|
|
424
|
+
text-align: center;
|
|
425
|
+
display: flex;
|
|
426
|
+
flex-direction: column;
|
|
427
|
+
justify-content: space-around;
|
|
428
|
+
align-items: center;
|
|
429
|
+
padding: 2em;
|
|
430
|
+
}
|
|
431
|
+
.imagearticle__article__buttonGroup {
|
|
432
|
+
display: flex;
|
|
433
|
+
gap: 1em;
|
|
434
|
+
flex-wrap: wrap;
|
|
435
|
+
}
|
|
436
|
+
.imagearticle.reversed {
|
|
437
|
+
flex-direction: row-reverse;
|
|
438
|
+
}
|
|
439
|
+
@media all and (max-width: 768px) {
|
|
440
|
+
.imagearticle {
|
|
441
|
+
display: block;
|
|
442
|
+
width: 80%;
|
|
443
|
+
text-align: center;
|
|
444
|
+
}
|
|
445
|
+
.imagearticle__figure {
|
|
446
|
+
width: 100%;
|
|
447
|
+
}
|
|
448
|
+
.imagearticle__figure__image {
|
|
449
|
+
width: 100%;
|
|
450
|
+
}
|
|
451
|
+
.imagearticle__article {
|
|
452
|
+
width: 100%;
|
|
453
|
+
}
|
|
454
|
+
}</style>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { ButtonModel } from './definition';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
imgSrc: string;
|
|
6
|
+
figureCaption?: string | undefined;
|
|
7
|
+
alt: string;
|
|
8
|
+
articleTitle: string;
|
|
9
|
+
articleContent: string;
|
|
10
|
+
buttonList?: ButtonModel[] | undefined;
|
|
11
|
+
reversed?: boolean | undefined;
|
|
12
|
+
};
|
|
13
|
+
events: {
|
|
14
|
+
[evt: string]: CustomEvent<any>;
|
|
15
|
+
};
|
|
16
|
+
slots: {};
|
|
17
|
+
};
|
|
18
|
+
export type ImageArticleProps = typeof __propDef.props;
|
|
19
|
+
export type ImageArticleEvents = typeof __propDef.events;
|
|
20
|
+
export type ImageArticleSlots = typeof __propDef.slots;
|
|
21
|
+
export default class ImageArticle extends SvelteComponent<ImageArticleProps, ImageArticleEvents, ImageArticleSlots> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<script context="module">
|
|
2
|
+
import { IrocoLogo } from './index';
|
|
3
|
+
|
|
4
|
+
export const meta = {
|
|
5
|
+
title: 'Iroco-UI/Iroco/IrocoLogo',
|
|
6
|
+
type: 'Icons',
|
|
7
|
+
component: IrocoLogo,
|
|
8
|
+
argTypes: {
|
|
9
|
+
width: {
|
|
10
|
+
control: { type: 'range' },
|
|
11
|
+
min: 32,
|
|
12
|
+
max: 512
|
|
13
|
+
},
|
|
14
|
+
height: {
|
|
15
|
+
control: { type: 'range' },
|
|
16
|
+
min: 32,
|
|
17
|
+
max: 512
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
import { Story, Template } from '@storybook/addon-svelte-csf';
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<Template let:args>
|
|
28
|
+
<IrocoLogo {...args} />
|
|
29
|
+
</Template>
|
|
30
|
+
|
|
31
|
+
<Story name="Default" />
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export namespace meta {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export let type: string;
|
|
4
|
+
export { IrocoLogo as component };
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace width {
|
|
7
|
+
namespace control {
|
|
8
|
+
let type_1: string;
|
|
9
|
+
export { type_1 as type };
|
|
10
|
+
}
|
|
11
|
+
let min: number;
|
|
12
|
+
let max: number;
|
|
13
|
+
}
|
|
14
|
+
namespace height {
|
|
15
|
+
export namespace control_1 {
|
|
16
|
+
let type_2: string;
|
|
17
|
+
export { type_2 as type };
|
|
18
|
+
}
|
|
19
|
+
export { control_1 as control };
|
|
20
|
+
let min_1: number;
|
|
21
|
+
export { min_1 as min };
|
|
22
|
+
let max_1: number;
|
|
23
|
+
export { max_1 as max };
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/** @typedef {typeof __propDef.props} IrocoLogoProps */
|
|
28
|
+
/** @typedef {typeof __propDef.events} IrocoLogoEvents */
|
|
29
|
+
/** @typedef {typeof __propDef.slots} IrocoLogoSlots */
|
|
30
|
+
export default class IrocoLogo extends SvelteComponent<{
|
|
31
|
+
[x: string]: never;
|
|
32
|
+
}, {
|
|
33
|
+
[evt: string]: CustomEvent<any>;
|
|
34
|
+
}, {}> {
|
|
35
|
+
}
|
|
36
|
+
export type IrocoLogoProps = typeof __propDef.props;
|
|
37
|
+
export type IrocoLogoEvents = typeof __propDef.events;
|
|
38
|
+
export type IrocoLogoSlots = typeof __propDef.slots;
|
|
39
|
+
import { IrocoLogo } from './index';
|
|
40
|
+
import { SvelteComponent } from "svelte";
|
|
41
|
+
declare const __propDef: {
|
|
42
|
+
props: {
|
|
43
|
+
[x: string]: never;
|
|
44
|
+
};
|
|
45
|
+
events: {
|
|
46
|
+
[evt: string]: CustomEvent<any>;
|
|
47
|
+
};
|
|
48
|
+
slots: {};
|
|
49
|
+
};
|
|
50
|
+
export {};
|
package/dist/IrocoLogo.svelte
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
<script>
|
|
1
|
+
<script>export let href = `/`;
|
|
2
|
+
export let ariaLabel = "go to Iroco home";
|
|
2
3
|
export let width = "10rem";
|
|
3
4
|
export let height = "10rem";
|
|
4
|
-
const dispatch = createEventDispatcher();
|
|
5
|
-
function clickOnLogo() {
|
|
6
|
-
dispatch("click_logo");
|
|
7
|
-
}
|
|
8
5
|
</script>
|
|
9
6
|
|
|
10
|
-
<a class="iroco-logo" href
|
|
7
|
+
<a class="iroco-logo" {href} aria-label={ariaLabel}>
|
|
11
8
|
<svg viewBox="0 0 832.33 249.52" role="img" {width} {height}>
|
|
12
9
|
<title>Iroco Logo</title>
|
|
13
10
|
<path
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
+
href?: string | undefined;
|
|
5
|
+
ariaLabel?: string | undefined;
|
|
4
6
|
width?: string | undefined;
|
|
5
7
|
height?: string | undefined;
|
|
6
8
|
};
|
|
7
9
|
events: {
|
|
8
|
-
click_logo: CustomEvent<any>;
|
|
9
|
-
} & {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script context="module">
|
|
2
|
+
import { Loader } from './index';
|
|
3
|
+
|
|
4
|
+
export const meta = {
|
|
5
|
+
title: 'Iroco-UI/Atoms/Loader',
|
|
6
|
+
component: Loader,
|
|
7
|
+
argTypes: {}
|
|
8
|
+
};
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
import { Story, Template } from '@storybook/addon-svelte-csf';
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<Template let:args>
|
|
16
|
+
<Loader {...args} />
|
|
17
|
+
</Template>
|
|
18
|
+
|
|
19
|
+
<Story name="Default" />
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export namespace meta {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Loader as component };
|
|
4
|
+
export let argTypes: {};
|
|
5
|
+
}
|
|
6
|
+
/** @typedef {typeof __propDef.props} LoaderProps */
|
|
7
|
+
/** @typedef {typeof __propDef.events} LoaderEvents */
|
|
8
|
+
/** @typedef {typeof __propDef.slots} LoaderSlots */
|
|
9
|
+
export default class Loader extends SvelteComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}> {
|
|
14
|
+
}
|
|
15
|
+
export type LoaderProps = typeof __propDef.props;
|
|
16
|
+
export type LoaderEvents = typeof __propDef.events;
|
|
17
|
+
export type LoaderSlots = typeof __propDef.slots;
|
|
18
|
+
import { Loader } from './index';
|
|
19
|
+
import { SvelteComponent } from "svelte";
|
|
20
|
+
declare const __propDef: {
|
|
21
|
+
props: {
|
|
22
|
+
[x: string]: never;
|
|
23
|
+
};
|
|
24
|
+
events: {
|
|
25
|
+
[evt: string]: CustomEvent<any>;
|
|
26
|
+
};
|
|
27
|
+
slots: {};
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script context="module">
|
|
2
|
+
import { NavigationItem, NavigationItemType } from './definition';
|
|
3
|
+
import { NavBar } from './index';
|
|
4
|
+
|
|
5
|
+
export const meta = {
|
|
6
|
+
title: 'NavBar',
|
|
7
|
+
component: NavBar,
|
|
8
|
+
argTypes: {
|
|
9
|
+
type: {
|
|
10
|
+
control: { type: 'select' },
|
|
11
|
+
options: ['sidebar', 'topbar']
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
import { Story, Template } from '@storybook/addon-svelte-csf';
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<Template let:args>
|
|
22
|
+
<NavBar
|
|
23
|
+
{...args}
|
|
24
|
+
navigationItems={[
|
|
25
|
+
new NavigationItem('About', `/about`),
|
|
26
|
+
new NavigationItem('Foo', `/foo`),
|
|
27
|
+
new NavigationItem('Bar', `/bar`),
|
|
28
|
+
new NavigationItem('Button', `/bar`, NavigationItemType.BUTTON),
|
|
29
|
+
new NavigationItem('Anchor', `/bar`, NavigationItemType.ANCHOR),
|
|
30
|
+
new NavigationItem('Form', `/bar`, NavigationItemType.FORM)
|
|
31
|
+
]}
|
|
32
|
+
/>
|
|
33
|
+
</Template>
|
|
34
|
+
|
|
35
|
+
<Story name="Default" />
|
|
36
|
+
<Story name="Sidebar" args={{ type: 'sidebar' }} />
|
|
37
|
+
<Story name="Title" args={{ title: 'Alternative title' }} />
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export namespace meta {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { NavBar as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
namespace type {
|
|
6
|
+
namespace control {
|
|
7
|
+
let type_1: string;
|
|
8
|
+
export { type_1 as type };
|
|
9
|
+
}
|
|
10
|
+
let options: string[];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/** @typedef {typeof __propDef.props} NavBarProps */
|
|
15
|
+
/** @typedef {typeof __propDef.events} NavBarEvents */
|
|
16
|
+
/** @typedef {typeof __propDef.slots} NavBarSlots */
|
|
17
|
+
export default class NavBar extends SvelteComponent<{
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
}, {
|
|
20
|
+
[evt: string]: CustomEvent<any>;
|
|
21
|
+
}, {}> {
|
|
22
|
+
}
|
|
23
|
+
export type NavBarProps = typeof __propDef.props;
|
|
24
|
+
export type NavBarEvents = typeof __propDef.events;
|
|
25
|
+
export type NavBarSlots = typeof __propDef.slots;
|
|
26
|
+
import { NavBar } from './index';
|
|
27
|
+
import { SvelteComponent } from "svelte";
|
|
28
|
+
declare const __propDef: {
|
|
29
|
+
props: {
|
|
30
|
+
[x: string]: never;
|
|
31
|
+
};
|
|
32
|
+
events: {
|
|
33
|
+
[evt: string]: CustomEvent<any>;
|
|
34
|
+
};
|
|
35
|
+
slots: {};
|
|
36
|
+
};
|
|
37
|
+
export {};
|