@iroco/ui 1.0.0-1 → 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 -7
- 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
package/dist/NavBar.svelte
CHANGED
|
@@ -54,112 +54,58 @@ $:
|
|
|
54
54
|
<div class="nav__version">{version == null ? '' : version}</div>
|
|
55
55
|
</nav>
|
|
56
56
|
|
|
57
|
-
<style>.
|
|
58
|
-
color: #00b9ff;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.font-color-darkBlue {
|
|
62
|
-
color: #211d28;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.font-color-nightBlue {
|
|
66
|
-
color: #18151e;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.font-color-green {
|
|
70
|
-
color: #00d692;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.font-color-red {
|
|
74
|
-
color: #ff504d;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.font-color-yellow {
|
|
78
|
-
color: #ffe032;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.font-color-beige {
|
|
82
|
-
color: #f2ebe3;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.font-color-darkBeige {
|
|
86
|
-
color: #a9a29e;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.font-color-mediumGrey {
|
|
90
|
-
color: #464452;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.font-color-darkGrey {
|
|
94
|
-
color: #33323a;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.font-color-lightGrey {
|
|
98
|
-
color: #f5f5f5;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.container-wide {
|
|
57
|
+
<style>.container-wide {
|
|
102
58
|
width: calc(100% - 20px);
|
|
103
59
|
max-width: 2360px;
|
|
104
60
|
margin-left: auto;
|
|
105
61
|
margin-right: auto;
|
|
106
62
|
transition: max-width ease-out 200ms;
|
|
107
63
|
}
|
|
108
|
-
|
|
109
64
|
@media all and (max-width: 2560px) {
|
|
110
65
|
.container-wide {
|
|
111
66
|
max-width: 1620px;
|
|
112
67
|
}
|
|
113
68
|
}
|
|
114
|
-
|
|
115
69
|
@media all and (max-width: 1800px) {
|
|
116
70
|
.container-wide {
|
|
117
71
|
max-width: 1280px;
|
|
118
72
|
}
|
|
119
73
|
}
|
|
120
|
-
|
|
121
74
|
@media all and (max-width: 1440px) {
|
|
122
75
|
.container-wide {
|
|
123
76
|
max-width: 884px;
|
|
124
77
|
}
|
|
125
78
|
}
|
|
126
|
-
|
|
127
79
|
@media all and (max-width: 1024px) {
|
|
128
80
|
.container-wide {
|
|
129
81
|
max-width: 648px;
|
|
130
82
|
}
|
|
131
83
|
}
|
|
132
|
-
|
|
133
84
|
@media all and (max-width: 768px) {
|
|
134
85
|
.container-wide {
|
|
135
86
|
max-width: 496px;
|
|
136
87
|
}
|
|
137
88
|
}
|
|
138
|
-
|
|
139
89
|
@media all and (max-width: 596px) {
|
|
140
90
|
.container-wide {
|
|
141
91
|
max-width: 365px;
|
|
142
92
|
}
|
|
143
93
|
}
|
|
144
|
-
|
|
145
94
|
@media all and (max-width: 425px) {
|
|
146
95
|
.container-wide {
|
|
147
96
|
max-width: calc(100% - 60px);
|
|
148
97
|
}
|
|
149
98
|
}
|
|
150
|
-
|
|
151
99
|
@media all and (max-width: 375px) {
|
|
152
100
|
.container-wide {
|
|
153
101
|
max-width: calc(100% - 40px);
|
|
154
102
|
}
|
|
155
103
|
}
|
|
156
|
-
|
|
157
104
|
@media all and (max-width: 320px) {
|
|
158
105
|
.container-wide {
|
|
159
106
|
max-width: calc(100% - 20px);
|
|
160
107
|
}
|
|
161
108
|
}
|
|
162
|
-
|
|
163
109
|
.container-large {
|
|
164
110
|
width: calc(100% - 20px);
|
|
165
111
|
max-width: 1280px;
|
|
@@ -167,49 +113,41 @@ $:
|
|
|
167
113
|
margin-right: auto;
|
|
168
114
|
transition: max-width ease-out 200ms;
|
|
169
115
|
}
|
|
170
|
-
|
|
171
116
|
@media all and (max-width: 1440px) {
|
|
172
117
|
.container-large {
|
|
173
118
|
max-width: 884px;
|
|
174
119
|
}
|
|
175
120
|
}
|
|
176
|
-
|
|
177
121
|
@media all and (max-width: 1024px) {
|
|
178
122
|
.container-large {
|
|
179
123
|
max-width: 648px;
|
|
180
124
|
}
|
|
181
125
|
}
|
|
182
|
-
|
|
183
126
|
@media all and (max-width: 768px) {
|
|
184
127
|
.container-large {
|
|
185
128
|
max-width: 496px;
|
|
186
129
|
}
|
|
187
130
|
}
|
|
188
|
-
|
|
189
131
|
@media all and (max-width: 596px) {
|
|
190
132
|
.container-large {
|
|
191
133
|
max-width: 365px;
|
|
192
134
|
}
|
|
193
135
|
}
|
|
194
|
-
|
|
195
136
|
@media all and (max-width: 425px) {
|
|
196
137
|
.container-large {
|
|
197
138
|
max-width: calc(100% - 60px);
|
|
198
139
|
}
|
|
199
140
|
}
|
|
200
|
-
|
|
201
141
|
@media all and (max-width: 375px) {
|
|
202
142
|
.container-large {
|
|
203
143
|
max-width: calc(100% - 40px);
|
|
204
144
|
}
|
|
205
145
|
}
|
|
206
|
-
|
|
207
146
|
@media all and (max-width: 320px) {
|
|
208
147
|
.container-large {
|
|
209
148
|
max-width: calc(100% - 20px);
|
|
210
149
|
}
|
|
211
150
|
}
|
|
212
|
-
|
|
213
151
|
.container-medium {
|
|
214
152
|
width: calc(100% - 20px);
|
|
215
153
|
max-width: 884px;
|
|
@@ -217,43 +155,36 @@ $:
|
|
|
217
155
|
margin-right: auto;
|
|
218
156
|
transition: max-width ease-out 200ms;
|
|
219
157
|
}
|
|
220
|
-
|
|
221
158
|
@media all and (max-width: 1024px) {
|
|
222
159
|
.container-medium {
|
|
223
160
|
max-width: 648px;
|
|
224
161
|
}
|
|
225
162
|
}
|
|
226
|
-
|
|
227
163
|
@media all and (max-width: 768px) {
|
|
228
164
|
.container-medium {
|
|
229
165
|
max-width: 496px;
|
|
230
166
|
}
|
|
231
167
|
}
|
|
232
|
-
|
|
233
168
|
@media all and (max-width: 596px) {
|
|
234
169
|
.container-medium {
|
|
235
170
|
max-width: 365px;
|
|
236
171
|
}
|
|
237
172
|
}
|
|
238
|
-
|
|
239
173
|
@media all and (max-width: 425px) {
|
|
240
174
|
.container-medium {
|
|
241
175
|
max-width: calc(100% - 60px);
|
|
242
176
|
}
|
|
243
177
|
}
|
|
244
|
-
|
|
245
178
|
@media all and (max-width: 375px) {
|
|
246
179
|
.container-medium {
|
|
247
180
|
max-width: calc(100% - 40px);
|
|
248
181
|
}
|
|
249
182
|
}
|
|
250
|
-
|
|
251
183
|
@media all and (max-width: 320px) {
|
|
252
184
|
.container-medium {
|
|
253
185
|
max-width: calc(100% - 20px);
|
|
254
186
|
}
|
|
255
187
|
}
|
|
256
|
-
|
|
257
188
|
.container-small {
|
|
258
189
|
width: calc(100% - 20px);
|
|
259
190
|
max-width: 496px;
|
|
@@ -261,69 +192,21 @@ $:
|
|
|
261
192
|
margin-right: auto;
|
|
262
193
|
transition: max-width ease-out 200ms;
|
|
263
194
|
}
|
|
264
|
-
|
|
265
195
|
@media all and (max-width: 425px) {
|
|
266
196
|
.container-small {
|
|
267
197
|
max-width: calc(100% - 60px);
|
|
268
198
|
}
|
|
269
199
|
}
|
|
270
|
-
|
|
271
200
|
@media all and (max-width: 375px) {
|
|
272
201
|
.container-small {
|
|
273
202
|
max-width: calc(100% - 40px);
|
|
274
203
|
}
|
|
275
204
|
}
|
|
276
|
-
|
|
277
205
|
@media all and (max-width: 320px) {
|
|
278
206
|
.container-small {
|
|
279
207
|
max-width: calc(100% - 20px);
|
|
280
208
|
}
|
|
281
209
|
}
|
|
282
|
-
|
|
283
|
-
.font-color-blue {
|
|
284
|
-
color: #00b9ff;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.font-color-darkBlue {
|
|
288
|
-
color: #211d28;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.font-color-nightBlue {
|
|
292
|
-
color: #18151e;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.font-color-green {
|
|
296
|
-
color: #00d692;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.font-color-red {
|
|
300
|
-
color: #ff504d;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.font-color-yellow {
|
|
304
|
-
color: #ffe032;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.font-color-beige {
|
|
308
|
-
color: #f2ebe3;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.font-color-darkBeige {
|
|
312
|
-
color: #a9a29e;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.font-color-mediumGrey {
|
|
316
|
-
color: #464452;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.font-color-darkGrey {
|
|
320
|
-
color: #33323a;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.font-color-lightGrey {
|
|
324
|
-
color: #f5f5f5;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
210
|
.container-wide {
|
|
328
211
|
width: calc(100% - 20px);
|
|
329
212
|
max-width: 2360px;
|
|
@@ -331,61 +214,51 @@ $:
|
|
|
331
214
|
margin-right: auto;
|
|
332
215
|
transition: max-width ease-out 200ms;
|
|
333
216
|
}
|
|
334
|
-
|
|
335
217
|
@media all and (max-width: 2560px) {
|
|
336
218
|
.container-wide {
|
|
337
219
|
max-width: 1620px;
|
|
338
220
|
}
|
|
339
221
|
}
|
|
340
|
-
|
|
341
222
|
@media all and (max-width: 1800px) {
|
|
342
223
|
.container-wide {
|
|
343
224
|
max-width: 1280px;
|
|
344
225
|
}
|
|
345
226
|
}
|
|
346
|
-
|
|
347
227
|
@media all and (max-width: 1440px) {
|
|
348
228
|
.container-wide {
|
|
349
229
|
max-width: 884px;
|
|
350
230
|
}
|
|
351
231
|
}
|
|
352
|
-
|
|
353
232
|
@media all and (max-width: 1024px) {
|
|
354
233
|
.container-wide {
|
|
355
234
|
max-width: 648px;
|
|
356
235
|
}
|
|
357
236
|
}
|
|
358
|
-
|
|
359
237
|
@media all and (max-width: 768px) {
|
|
360
238
|
.container-wide {
|
|
361
239
|
max-width: 496px;
|
|
362
240
|
}
|
|
363
241
|
}
|
|
364
|
-
|
|
365
242
|
@media all and (max-width: 596px) {
|
|
366
243
|
.container-wide {
|
|
367
244
|
max-width: 365px;
|
|
368
245
|
}
|
|
369
246
|
}
|
|
370
|
-
|
|
371
247
|
@media all and (max-width: 425px) {
|
|
372
248
|
.container-wide {
|
|
373
249
|
max-width: calc(100% - 60px);
|
|
374
250
|
}
|
|
375
251
|
}
|
|
376
|
-
|
|
377
252
|
@media all and (max-width: 375px) {
|
|
378
253
|
.container-wide {
|
|
379
254
|
max-width: calc(100% - 40px);
|
|
380
255
|
}
|
|
381
256
|
}
|
|
382
|
-
|
|
383
257
|
@media all and (max-width: 320px) {
|
|
384
258
|
.container-wide {
|
|
385
259
|
max-width: calc(100% - 20px);
|
|
386
260
|
}
|
|
387
261
|
}
|
|
388
|
-
|
|
389
262
|
.container-large {
|
|
390
263
|
width: calc(100% - 20px);
|
|
391
264
|
max-width: 1280px;
|
|
@@ -393,49 +266,41 @@ $:
|
|
|
393
266
|
margin-right: auto;
|
|
394
267
|
transition: max-width ease-out 200ms;
|
|
395
268
|
}
|
|
396
|
-
|
|
397
269
|
@media all and (max-width: 1440px) {
|
|
398
270
|
.container-large {
|
|
399
271
|
max-width: 884px;
|
|
400
272
|
}
|
|
401
273
|
}
|
|
402
|
-
|
|
403
274
|
@media all and (max-width: 1024px) {
|
|
404
275
|
.container-large {
|
|
405
276
|
max-width: 648px;
|
|
406
277
|
}
|
|
407
278
|
}
|
|
408
|
-
|
|
409
279
|
@media all and (max-width: 768px) {
|
|
410
280
|
.container-large {
|
|
411
281
|
max-width: 496px;
|
|
412
282
|
}
|
|
413
283
|
}
|
|
414
|
-
|
|
415
284
|
@media all and (max-width: 596px) {
|
|
416
285
|
.container-large {
|
|
417
286
|
max-width: 365px;
|
|
418
287
|
}
|
|
419
288
|
}
|
|
420
|
-
|
|
421
289
|
@media all and (max-width: 425px) {
|
|
422
290
|
.container-large {
|
|
423
291
|
max-width: calc(100% - 60px);
|
|
424
292
|
}
|
|
425
293
|
}
|
|
426
|
-
|
|
427
294
|
@media all and (max-width: 375px) {
|
|
428
295
|
.container-large {
|
|
429
296
|
max-width: calc(100% - 40px);
|
|
430
297
|
}
|
|
431
298
|
}
|
|
432
|
-
|
|
433
299
|
@media all and (max-width: 320px) {
|
|
434
300
|
.container-large {
|
|
435
301
|
max-width: calc(100% - 20px);
|
|
436
302
|
}
|
|
437
303
|
}
|
|
438
|
-
|
|
439
304
|
.container-medium {
|
|
440
305
|
width: calc(100% - 20px);
|
|
441
306
|
max-width: 884px;
|
|
@@ -443,43 +308,36 @@ $:
|
|
|
443
308
|
margin-right: auto;
|
|
444
309
|
transition: max-width ease-out 200ms;
|
|
445
310
|
}
|
|
446
|
-
|
|
447
311
|
@media all and (max-width: 1024px) {
|
|
448
312
|
.container-medium {
|
|
449
313
|
max-width: 648px;
|
|
450
314
|
}
|
|
451
315
|
}
|
|
452
|
-
|
|
453
316
|
@media all and (max-width: 768px) {
|
|
454
317
|
.container-medium {
|
|
455
318
|
max-width: 496px;
|
|
456
319
|
}
|
|
457
320
|
}
|
|
458
|
-
|
|
459
321
|
@media all and (max-width: 596px) {
|
|
460
322
|
.container-medium {
|
|
461
323
|
max-width: 365px;
|
|
462
324
|
}
|
|
463
325
|
}
|
|
464
|
-
|
|
465
326
|
@media all and (max-width: 425px) {
|
|
466
327
|
.container-medium {
|
|
467
328
|
max-width: calc(100% - 60px);
|
|
468
329
|
}
|
|
469
330
|
}
|
|
470
|
-
|
|
471
331
|
@media all and (max-width: 375px) {
|
|
472
332
|
.container-medium {
|
|
473
333
|
max-width: calc(100% - 40px);
|
|
474
334
|
}
|
|
475
335
|
}
|
|
476
|
-
|
|
477
336
|
@media all and (max-width: 320px) {
|
|
478
337
|
.container-medium {
|
|
479
338
|
max-width: calc(100% - 20px);
|
|
480
339
|
}
|
|
481
340
|
}
|
|
482
|
-
|
|
483
341
|
.container-small {
|
|
484
342
|
width: calc(100% - 20px);
|
|
485
343
|
max-width: 496px;
|
|
@@ -487,107 +345,90 @@ $:
|
|
|
487
345
|
margin-right: auto;
|
|
488
346
|
transition: max-width ease-out 200ms;
|
|
489
347
|
}
|
|
490
|
-
|
|
491
348
|
@media all and (max-width: 425px) {
|
|
492
349
|
.container-small {
|
|
493
350
|
max-width: calc(100% - 60px);
|
|
494
351
|
}
|
|
495
352
|
}
|
|
496
|
-
|
|
497
353
|
@media all and (max-width: 375px) {
|
|
498
354
|
.container-small {
|
|
499
355
|
max-width: calc(100% - 40px);
|
|
500
356
|
}
|
|
501
357
|
}
|
|
502
|
-
|
|
503
358
|
@media all and (max-width: 320px) {
|
|
504
359
|
.container-small {
|
|
505
360
|
max-width: calc(100% - 20px);
|
|
506
361
|
}
|
|
507
362
|
}
|
|
508
|
-
|
|
509
363
|
.iroco-ui-button {
|
|
510
364
|
cursor: pointer;
|
|
511
365
|
-webkit-touch-callout: none;
|
|
512
366
|
-webkit-user-select: none;
|
|
513
|
-
-khtml-user-select: none;
|
|
514
367
|
-moz-user-select: none;
|
|
515
368
|
-ms-user-select: none;
|
|
516
369
|
user-select: none;
|
|
517
370
|
border: none;
|
|
518
371
|
flex-shrink: 0;
|
|
519
|
-
margin: 1em
|
|
372
|
+
margin: 1em 0;
|
|
520
373
|
position: relative;
|
|
521
374
|
text-transform: uppercase;
|
|
522
375
|
border-radius: 0.3em;
|
|
523
376
|
}
|
|
524
|
-
|
|
525
377
|
.iroco-ui-button--basic {
|
|
526
|
-
|
|
527
|
-
|
|
378
|
+
color: var(--btn-basic-label);
|
|
379
|
+
background: var(--btn-basic-bg);
|
|
380
|
+
border: 1px solid var(--btn-basic-border);
|
|
528
381
|
}
|
|
529
|
-
|
|
530
382
|
.iroco-ui-button--dark {
|
|
531
|
-
background:
|
|
532
|
-
color:
|
|
383
|
+
background: var(--dark-btn-primary-bg);
|
|
384
|
+
color: var(--dark-btn-primary-label);
|
|
533
385
|
}
|
|
534
|
-
|
|
535
386
|
.iroco-ui-button--success {
|
|
536
|
-
background:
|
|
537
|
-
color:
|
|
387
|
+
background: var(--color-success);
|
|
388
|
+
color: var(--btn-secondary-label);
|
|
538
389
|
}
|
|
539
|
-
|
|
540
390
|
.iroco-ui-button--danger {
|
|
541
|
-
background:
|
|
391
|
+
background: var(--color-danger);
|
|
542
392
|
}
|
|
543
|
-
|
|
544
393
|
.iroco-ui-button--regular {
|
|
545
394
|
padding: 1em 2em;
|
|
546
395
|
}
|
|
547
|
-
|
|
548
396
|
.iroco-ui-button--small {
|
|
549
397
|
padding: 0.5em 1em;
|
|
550
398
|
}
|
|
551
|
-
|
|
552
399
|
.iroco-ui-button--basic:hover, .iroco-ui-button--success:hover, .iroco-ui-button--danger:hover {
|
|
553
|
-
box-shadow: inset 0 0 0 10em
|
|
400
|
+
box-shadow: inset 0 0 0 10em var(--color-black-op-20);
|
|
554
401
|
}
|
|
555
|
-
|
|
556
402
|
.iroco-ui-button--dark:hover {
|
|
557
|
-
box-shadow: inset 0 0 0 10em
|
|
403
|
+
box-shadow: inset 0 0 0 10em var(--color-white-op-20);
|
|
558
404
|
}
|
|
559
|
-
|
|
560
405
|
.iroco-ui-button:active {
|
|
561
406
|
box-shadow: none;
|
|
562
407
|
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
408
|
+
.iroco-ui-button.disabled, .iroco-ui-button:disabled {
|
|
409
|
+
background-color: var(--btn-disabled-bg);
|
|
410
|
+
color: var(--btn-disabled-label);
|
|
411
|
+
border-color: var(--btn-disabled-border);
|
|
566
412
|
cursor: default;
|
|
567
413
|
}
|
|
568
|
-
|
|
569
|
-
.iroco-ui-button.disabled:hover {
|
|
414
|
+
.iroco-ui-button.disabled:hover, .iroco-ui-button:disabled:hover {
|
|
570
415
|
box-shadow: none;
|
|
571
416
|
}
|
|
572
|
-
|
|
573
417
|
.iroco-ui-link {
|
|
574
418
|
background: none;
|
|
575
419
|
border: none;
|
|
576
420
|
font-family: "Arial";
|
|
577
|
-
color:
|
|
421
|
+
color: var(--color-text);
|
|
578
422
|
cursor: pointer;
|
|
579
423
|
}
|
|
580
|
-
|
|
581
424
|
.nav__sidebar__item, .nav__topbar__item {
|
|
582
425
|
text-decoration: none;
|
|
583
426
|
display: block;
|
|
584
427
|
font-size: 1em;
|
|
585
428
|
}
|
|
586
|
-
|
|
587
429
|
.nav__sidebar__close, .nav__topbar__close {
|
|
588
430
|
display: none;
|
|
589
431
|
}
|
|
590
|
-
|
|
591
432
|
.nav__sidebar {
|
|
592
433
|
height: 100%;
|
|
593
434
|
width: 300px;
|
|
@@ -598,57 +439,47 @@ $:
|
|
|
598
439
|
display: flex;
|
|
599
440
|
flex-direction: column;
|
|
600
441
|
}
|
|
601
|
-
|
|
602
442
|
.nav__sidebar__item-container {
|
|
603
443
|
margin: 0;
|
|
604
444
|
padding: 0;
|
|
605
445
|
}
|
|
606
|
-
|
|
607
446
|
.nav__sidebar__item {
|
|
608
447
|
padding: 2em;
|
|
609
|
-
border-top: 1px solid
|
|
448
|
+
border-top: 1px solid var(--color-border);
|
|
610
449
|
}
|
|
611
|
-
|
|
612
450
|
.nav__sidebar__item:first-child {
|
|
613
451
|
border-top: none;
|
|
614
452
|
}
|
|
615
|
-
|
|
616
453
|
.nav__sidebar .active {
|
|
617
|
-
border-top: 1px solid
|
|
618
|
-
border-bottom: 1px solid
|
|
454
|
+
border-top: 1px solid var(--color-primary);
|
|
455
|
+
border-bottom: 1px solid var(--color-primary);
|
|
619
456
|
}
|
|
620
|
-
|
|
621
457
|
.nav__topbar {
|
|
622
458
|
flex-grow: 1;
|
|
623
459
|
display: flex;
|
|
624
460
|
justify-content: flex-end;
|
|
625
461
|
}
|
|
626
|
-
|
|
627
462
|
.nav__topbar ul,
|
|
628
463
|
.nav__topbar li {
|
|
629
464
|
display: inline;
|
|
630
465
|
}
|
|
631
|
-
|
|
632
466
|
.nav__topbar ul {
|
|
633
467
|
display: flex;
|
|
634
468
|
flex-grow: 1;
|
|
635
469
|
justify-content: space-around;
|
|
636
470
|
}
|
|
637
|
-
|
|
638
471
|
.nav__topbar .active {
|
|
639
|
-
border-bottom: 1px solid
|
|
472
|
+
border-bottom: 1px solid var(--color-primary);
|
|
640
473
|
}
|
|
641
|
-
|
|
642
474
|
.nav__version {
|
|
643
475
|
margin-top: auto;
|
|
644
476
|
padding-left: 2em;
|
|
645
|
-
color:
|
|
477
|
+
color: var(--color-text-dark);
|
|
646
478
|
}
|
|
647
|
-
|
|
648
479
|
@media all and (max-width: 768px) {
|
|
649
480
|
.nav__sidebar, .nav__topbar {
|
|
650
481
|
position: fixed;
|
|
651
|
-
background-color:
|
|
482
|
+
background-color: var(--color-body);
|
|
652
483
|
top: 0;
|
|
653
484
|
right: 0;
|
|
654
485
|
width: 100%;
|
|
@@ -673,21 +504,21 @@ $:
|
|
|
673
504
|
top: 0;
|
|
674
505
|
background-color: transparent;
|
|
675
506
|
border: none;
|
|
676
|
-
color:
|
|
507
|
+
color: var(--color-icon-primary);
|
|
677
508
|
}
|
|
678
509
|
.nav__sidebar {
|
|
679
510
|
top: 0;
|
|
680
511
|
left: 0;
|
|
681
512
|
}
|
|
682
513
|
.nav__sidebar__item:first-child {
|
|
683
|
-
border-top: 1px solid
|
|
514
|
+
border-top: 1px solid var(--color-border);
|
|
684
515
|
}
|
|
685
516
|
.nav__topbar {
|
|
686
517
|
height: 100%;
|
|
687
518
|
}
|
|
688
519
|
.nav__topbar__item {
|
|
689
520
|
padding: 2em;
|
|
690
|
-
border-top: 1px solid
|
|
521
|
+
border-top: 1px solid var(--color-border);
|
|
691
522
|
}
|
|
692
523
|
.nav__version {
|
|
693
524
|
display: none;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<script context="module">
|
|
2
|
+
import Navigation from './Navigation.svelte';
|
|
3
|
+
import { NavigationItem, NavigationItemType } from './definition';
|
|
4
|
+
|
|
5
|
+
export const meta = {
|
|
6
|
+
title: 'Navigation',
|
|
7
|
+
component: Navigation,
|
|
8
|
+
argTypes: {
|
|
9
|
+
type: {
|
|
10
|
+
control: { type: 'select' },
|
|
11
|
+
options: ['sidebar', 'topbar']
|
|
12
|
+
},
|
|
13
|
+
title: {
|
|
14
|
+
control: { type: 'text' }
|
|
15
|
+
},
|
|
16
|
+
version: {
|
|
17
|
+
control: { type: 'text' }
|
|
18
|
+
},
|
|
19
|
+
color: {
|
|
20
|
+
control: { type: 'color' }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
import { Story, Template } from '@storybook/addon-svelte-csf';
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<Template let:args>
|
|
31
|
+
<Navigation
|
|
32
|
+
{...args}
|
|
33
|
+
navigationItems={[
|
|
34
|
+
new NavigationItem('About', `/about`),
|
|
35
|
+
new NavigationItem('Foo', `/foo`),
|
|
36
|
+
new NavigationItem('Bar', `/bar`),
|
|
37
|
+
new NavigationItem('Button', `/bar`, NavigationItemType.BUTTON),
|
|
38
|
+
new NavigationItem('Anchor', `/bar`, NavigationItemType.ANCHOR),
|
|
39
|
+
new NavigationItem('Form', `/bar`, NavigationItemType.FORM)
|
|
40
|
+
]}
|
|
41
|
+
/>
|
|
42
|
+
</Template>
|
|
43
|
+
|
|
44
|
+
<Story name="Default" />
|
|
45
|
+
<Story name="Sidebar" args={{ type: 'sidebar' }} />
|
|
46
|
+
|
|
47
|
+
<Story name="Title" args={{ title: 'Alternative title' }} />
|
|
48
|
+
<Story name="Color" args={{ color: '#ABCDEF' }} />
|