@kofile/gds-foundations 1.0.0-alpha.14 → 1.0.0-alpha.16
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/build/css/components/dialog.module.css +56 -0
- package/build/css/components/loader.module.css +19 -0
- package/build/css/components/select.module.css +7 -1
- package/build/css/components/switch.module.css +0 -7
- package/build/css/themes/dialog/dark.css +8 -0
- package/build/css/themes/dialog/light.css +8 -0
- package/build/css/themes/global.css +21 -1
- package/build/css/themes/index.css +4 -0
- package/build/css/themes/loader/dark.css +6 -0
- package/build/css/themes/loader/light.css +6 -0
- package/build/css/utilities/background-color.css +161 -0
- package/build/css/utilities/index.css +2 -0
- package/build/css/utilities/shadow.css +15 -0
- package/build/css/utilities/text-align.css +18 -0
- package/package.json +9 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.overlay {
|
|
2
|
+
background-color: var(
|
|
3
|
+
--dialog-light-elements-overlay-color-background-primary-default
|
|
4
|
+
);
|
|
5
|
+
position: fixed;
|
|
6
|
+
inset: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.content {
|
|
10
|
+
background-color: var(
|
|
11
|
+
--dialog-light-elements-content-color-background-primary-default
|
|
12
|
+
);
|
|
13
|
+
border-radius: var(--dialog-elements-content-size-compact-border-radius);
|
|
14
|
+
box-shadow: var(--dialog-elements-content-size-compact-box-shadow);
|
|
15
|
+
position: fixed;
|
|
16
|
+
top: 50%;
|
|
17
|
+
left: 50%;
|
|
18
|
+
transform: translate(-50%, -50%);
|
|
19
|
+
width: var(--dialog-elements-content-size-compact-width);
|
|
20
|
+
padding-block: var(--dialog-elements-content-size-compact-padding-block);
|
|
21
|
+
padding-inline: var(--dialog-elements-content-size-compact-padding-inline);
|
|
22
|
+
animation: var(--dialog-content-animation);
|
|
23
|
+
}
|
|
24
|
+
.content:focus {
|
|
25
|
+
outline: none;
|
|
26
|
+
}
|
|
27
|
+
.content[data-size="spacious"] {
|
|
28
|
+
width: var(--dialog-elements-content-size-spacious-width);
|
|
29
|
+
}
|
|
30
|
+
.content[data-mode="dark"] {
|
|
31
|
+
background-color: var(
|
|
32
|
+
--dialog-dark-elements-content-color-background-primary-default
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.title {
|
|
37
|
+
margin: var(--dialog-elements-title-margin);
|
|
38
|
+
margin-block-start: var(--dialog-elements-title-margin-block-start);
|
|
39
|
+
color: var(--dialog-light-elements-title-color-text-primary-default);
|
|
40
|
+
font: var(--dialog-elements-title-typography);
|
|
41
|
+
text-align: var(--dialog-elements-title-text-align);
|
|
42
|
+
}
|
|
43
|
+
.title[data-mode="dark"] {
|
|
44
|
+
color: var(--dialog-dark-elements-title-color-text-primary-default);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.description {
|
|
48
|
+
margin: var(--dialog-elements-description-margin);
|
|
49
|
+
margin-block-start: var(--dialog-elements-description-margin-block-start);
|
|
50
|
+
color: var(--dialog-light-elements-description-color-text-primary-default);
|
|
51
|
+
font: var(--dialog-elements-description-typography);
|
|
52
|
+
text-align: var(--dialog-elements-description-text-align);
|
|
53
|
+
}
|
|
54
|
+
.description[data-mode="dark"] {
|
|
55
|
+
color: var(--dialog-dark-elements-description-color-text-primary-default);
|
|
56
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.loader {
|
|
2
|
+
border: var(--loader-size-lg-border-width) solid
|
|
3
|
+
var(--loader-light-color-border-primary-default);
|
|
4
|
+
border-top: var(--loader-size-lg-border-width) solid
|
|
5
|
+
var(--loader-light-color-border-top-primary-default);
|
|
6
|
+
border-radius: var(--loader-size-lg-border-radius);
|
|
7
|
+
width: var(--loader-size-lg-width);
|
|
8
|
+
height: var(--loader-size-lg-height);
|
|
9
|
+
animation: spin 1s linear infinite;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@keyframes spin {
|
|
13
|
+
0% {
|
|
14
|
+
transform: rotate(0deg);
|
|
15
|
+
}
|
|
16
|
+
100% {
|
|
17
|
+
transform: rotate(360deg);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
display: flex;
|
|
109
109
|
align-items: center;
|
|
110
110
|
gap: var(--select-elements-menu-item-gap-default);
|
|
111
|
-
height: var(--select-elements-menu-item-size-lg-height);
|
|
111
|
+
/* height: var(--select-elements-menu-item-size-lg-height); */
|
|
112
112
|
outline: none;
|
|
113
113
|
padding-inline: var(--select-elements-menu-item-size-lg-padding-inline);
|
|
114
114
|
}
|
|
@@ -233,3 +233,9 @@
|
|
|
233
233
|
.info[data-mode="dark"] {
|
|
234
234
|
color: var(--select-dark-elements-info-color-text-primary-default);
|
|
235
235
|
}
|
|
236
|
+
|
|
237
|
+
.icon {
|
|
238
|
+
min-width: var(--select-elements-icon-size-md-min-height);
|
|
239
|
+
min-height: 20px;
|
|
240
|
+
align-self: baseline;
|
|
241
|
+
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/* reset */
|
|
2
|
-
/* button {
|
|
3
|
-
all: unset;
|
|
4
|
-
} */
|
|
5
|
-
|
|
6
1
|
.root {
|
|
7
2
|
background-color: var(--switch-light-color-background-primary-default);
|
|
8
3
|
border-radius: var(--switch-size-md-border-radius);
|
|
@@ -39,8 +34,6 @@
|
|
|
39
34
|
width: var(--switch-size-sm-width);
|
|
40
35
|
}
|
|
41
36
|
|
|
42
|
-
/* TODO DARK MODE!!! */
|
|
43
|
-
|
|
44
37
|
.thumb {
|
|
45
38
|
display: block;
|
|
46
39
|
width: var(--switch-elements-thumb-size-md-width);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
:root,
|
|
3
|
+
:host {
|
|
4
|
+
--dialog-dark-elements-overlay-color-background-primary-default: rgba(0, 0, 0, 0.5);
|
|
5
|
+
--dialog-dark-elements-content-color-background-primary-default: #121212;
|
|
6
|
+
--dialog-dark-elements-title-color-text-primary-default: #ffffff;
|
|
7
|
+
--dialog-dark-elements-description-color-text-primary-default: #b7bcc3;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
:root,
|
|
3
|
+
:host {
|
|
4
|
+
--dialog-light-elements-overlay-color-background-primary-default: rgba(0, 0, 0, 0.5);
|
|
5
|
+
--dialog-light-elements-content-color-background-primary-default: #ffffff;
|
|
6
|
+
--dialog-light-elements-title-color-text-primary-default: #121212;
|
|
7
|
+
--dialog-light-elements-description-color-text-primary-default: #6b7280;
|
|
8
|
+
}
|
|
@@ -442,6 +442,21 @@
|
|
|
442
442
|
--card-size-md-width: 32rem;
|
|
443
443
|
--card-size-lg-padding: 3rem;
|
|
444
444
|
--card-size-lg-width: 64rem;
|
|
445
|
+
--dialog-elements-content-size-compact-border-radius: 0.375rem;
|
|
446
|
+
--dialog-elements-content-size-compact-border-width: 0.063rem;
|
|
447
|
+
--dialog-elements-content-size-compact-padding-block: 1.5rem;
|
|
448
|
+
--dialog-elements-content-size-compact-padding-inline: 1.25rem;
|
|
449
|
+
--dialog-elements-content-size-compact-box-shadow: 0 0 12px 0 rgba(18, 18, 18, 0.24);
|
|
450
|
+
--dialog-elements-content-size-compact-width: 16rem;
|
|
451
|
+
--dialog-elements-content-size-spacious-width: 384px;
|
|
452
|
+
--dialog-elements-title-typography: 700 1.25rem/1.75rem 'Source Sans 3';
|
|
453
|
+
--dialog-elements-title-margin: 0rem;
|
|
454
|
+
--dialog-elements-title-margin-block-start: 0.5rem;
|
|
455
|
+
--dialog-elements-title-text-align: center;
|
|
456
|
+
--dialog-elements-description-typography: 400 0.813rem/1.25rem 'Source Sans 3';
|
|
457
|
+
--dialog-elements-description-margin: 0rem;
|
|
458
|
+
--dialog-elements-description-margin-block-start: 0.5rem;
|
|
459
|
+
--dialog-elements-description-text-align: center;
|
|
445
460
|
--field-message-size-sm-typography: 400 0.75rem/1rem 'Source Sans 3';
|
|
446
461
|
--field-message-size-md-margin-block-end: 0.375rem;
|
|
447
462
|
--field-message-size-md-typography: 400 0.813rem/1.25rem 'Source Sans 3';
|
|
@@ -460,6 +475,10 @@
|
|
|
460
475
|
--link-gap-default: 0.25rem;
|
|
461
476
|
--link-opacity-disabled: 0.32;
|
|
462
477
|
--link-weight-regular: 400;
|
|
478
|
+
--loader-size-lg-border-radius: 100%;
|
|
479
|
+
--loader-size-lg-border-width: 0.5rem;
|
|
480
|
+
--loader-size-lg-height: 4rem;
|
|
481
|
+
--loader-size-lg-width: 4rem;
|
|
463
482
|
--radio-group-elements-indicator-size-sm-height: 0.375rem;
|
|
464
483
|
--radio-group-elements-indicator-size-sm-width: 0.375rem;
|
|
465
484
|
--radio-group-elements-indicator-size-md-border-radius: 50%;
|
|
@@ -521,12 +540,13 @@
|
|
|
521
540
|
--select-elements-content-scrollbar-size-lg-border-width: 0.063rem;
|
|
522
541
|
--select-elements-content-scrollbar-size-lg-width: 0.75rem;
|
|
523
542
|
--select-elements-content-scrollbar-thumb-size-lg-height: 8rem;
|
|
524
|
-
--select-elements-menu-item-size-lg-height: 2rem;
|
|
525
543
|
--select-elements-menu-item-size-lg-padding-inline: 0.75rem;
|
|
526
544
|
--select-elements-menu-item-gap-default: 0.5rem;
|
|
527
545
|
--select-elements-menu-item-opacity-disabled: 0.32;
|
|
528
546
|
--select-elements-separator-size-lg-height: 0.063rem;
|
|
529
547
|
--select-elements-info-size-lg-typography: 400 0.813rem/1.25rem 'Source Sans 3';
|
|
548
|
+
--select-elements-icon-size-md-min-height: 1.25rem;
|
|
549
|
+
--select-elements-icon-size-md-min-width: 1.25rem;
|
|
530
550
|
--switch-elements-thumb-size-sm-height: 1rem;
|
|
531
551
|
--switch-elements-thumb-size-sm-width: 1rem;
|
|
532
552
|
--switch-elements-thumb-size-md-border-radius: 1rem;
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
@import "./checkbox/dark.css";
|
|
9
9
|
@import "./checkbox-tile/light.css";
|
|
10
10
|
@import "./checkbox-tile/dark.css";
|
|
11
|
+
@import "./dialog/light.css";
|
|
12
|
+
@import "./dialog/dark.css";
|
|
11
13
|
@import "./field-message/light.css";
|
|
12
14
|
@import "./field-message/dark.css";
|
|
13
15
|
@import "./form-label/light.css";
|
|
@@ -20,6 +22,8 @@
|
|
|
20
22
|
@import "./link/dark.css";
|
|
21
23
|
@import "./list-item/light.css";
|
|
22
24
|
@import "./list-item/dark.css";
|
|
25
|
+
@import "./loader/light.css";
|
|
26
|
+
@import "./loader/dark.css";
|
|
23
27
|
@import "./radio-group/light.css";
|
|
24
28
|
@import "./radio-group/dark.css";
|
|
25
29
|
@import "./radio-group-tile/light.css";
|
|
@@ -282,3 +282,164 @@
|
|
|
282
282
|
.bg-teal-1000 {
|
|
283
283
|
background-color: var(--primitive-teal-1000) !important;
|
|
284
284
|
}
|
|
285
|
+
|
|
286
|
+
.bg-neutral-100 {
|
|
287
|
+
background-color: var(--color-neutral-100) !important;
|
|
288
|
+
}
|
|
289
|
+
.bg-neutral-200 {
|
|
290
|
+
background-color: var(--color-neutral-200) !important;
|
|
291
|
+
}
|
|
292
|
+
.bg-neutral-300 {
|
|
293
|
+
background-color: var(--color-neutral-300) !important;
|
|
294
|
+
}
|
|
295
|
+
.bg-neutral-400 {
|
|
296
|
+
background-color: var(--color-neutral-400) !important;
|
|
297
|
+
}
|
|
298
|
+
.bg-neutral-500 {
|
|
299
|
+
background-color: var(--color-neutral-500) !important;
|
|
300
|
+
}
|
|
301
|
+
.bg-neutral-600 {
|
|
302
|
+
background-color: var(--color-neutral-600) !important;
|
|
303
|
+
}
|
|
304
|
+
.bg-neutral-700 {
|
|
305
|
+
background-color: var(--color-neutral-700) !important;
|
|
306
|
+
}
|
|
307
|
+
.bg-neutral-800 {
|
|
308
|
+
background-color: var(--color-neutral-800) !important;
|
|
309
|
+
}
|
|
310
|
+
.bg-neutral-900 {
|
|
311
|
+
background-color: var(--color-neutral-900) !important;
|
|
312
|
+
}
|
|
313
|
+
.bg-neutral-1000 {
|
|
314
|
+
background-color: var(--color-neutral-1000) !important;
|
|
315
|
+
}
|
|
316
|
+
.bg-neutral-black {
|
|
317
|
+
background-color: var(--color-neutral-black) !important;
|
|
318
|
+
}
|
|
319
|
+
.bg-neutral-white {
|
|
320
|
+
background-color: var(--color-neutral-white) !important;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.bg-success-100 {
|
|
324
|
+
background-color: var(--color-success-100) !important;
|
|
325
|
+
}
|
|
326
|
+
.bg-success-200 {
|
|
327
|
+
background-color: var(--color-success-200) !important;
|
|
328
|
+
}
|
|
329
|
+
.bg-success-300 {
|
|
330
|
+
background-color: var(--color-success-300) !important;
|
|
331
|
+
}
|
|
332
|
+
.bg-success-400 {
|
|
333
|
+
background-color: var(--color-success-400) !important;
|
|
334
|
+
}
|
|
335
|
+
.bg-success-500 {
|
|
336
|
+
background-color: var(--color-success-500) !important;
|
|
337
|
+
}
|
|
338
|
+
.bg-success-600 {
|
|
339
|
+
background-color: var(--color-success-600) !important;
|
|
340
|
+
}
|
|
341
|
+
.bg-success-700 {
|
|
342
|
+
background-color: var(--color-success-700) !important;
|
|
343
|
+
}
|
|
344
|
+
.bg-success-800 {
|
|
345
|
+
background-color: var(--color-success-800) !important;
|
|
346
|
+
}
|
|
347
|
+
.bg-success-900 {
|
|
348
|
+
background-color: var(--color-success-900) !important;
|
|
349
|
+
}
|
|
350
|
+
.bg-success-1000 {
|
|
351
|
+
background-color: var(--color-success-1000) !important;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.bg-danger-100 {
|
|
355
|
+
background-color: var(--color-danger-100) !important;
|
|
356
|
+
}
|
|
357
|
+
.bg-danger-200 {
|
|
358
|
+
background-color: var(--color-danger-200) !important;
|
|
359
|
+
}
|
|
360
|
+
.bg-danger-300 {
|
|
361
|
+
background-color: var(--color-danger-300) !important;
|
|
362
|
+
}
|
|
363
|
+
.bg-danger-400 {
|
|
364
|
+
background-color: var(--color-danger-400) !important;
|
|
365
|
+
}
|
|
366
|
+
.bg-danger-500 {
|
|
367
|
+
background-color: var(--color-danger-500) !important;
|
|
368
|
+
}
|
|
369
|
+
.bg-danger-600 {
|
|
370
|
+
background-color: var(--color-danger-600) !important;
|
|
371
|
+
}
|
|
372
|
+
.bg-danger-700 {
|
|
373
|
+
background-color: var(--color-danger-700) !important;
|
|
374
|
+
}
|
|
375
|
+
.bg-danger-800 {
|
|
376
|
+
background-color: var(--color-danger-800) !important;
|
|
377
|
+
}
|
|
378
|
+
.bg-danger-900 {
|
|
379
|
+
background-color: var(--color-danger-900) !important;
|
|
380
|
+
}
|
|
381
|
+
.bg-danger-1000 {
|
|
382
|
+
background-color: var(--color-danger-1000) !important;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.bg-warning-100 {
|
|
386
|
+
background-color: var(--color-warning-100) !important;
|
|
387
|
+
}
|
|
388
|
+
.bg-warning-200 {
|
|
389
|
+
background-color: var(--color-warning-200) !important;
|
|
390
|
+
}
|
|
391
|
+
.bg-warning-300 {
|
|
392
|
+
background-color: var(--color-warning-300) !important;
|
|
393
|
+
}
|
|
394
|
+
.bg-warning-400 {
|
|
395
|
+
background-color: var(--color-warning-400) !important;
|
|
396
|
+
}
|
|
397
|
+
.bg-warning-500 {
|
|
398
|
+
background-color: var(--color-warning-500) !important;
|
|
399
|
+
}
|
|
400
|
+
.bg-warning-600 {
|
|
401
|
+
background-color: var(--color-warning-600) !important;
|
|
402
|
+
}
|
|
403
|
+
.bg-warning-700 {
|
|
404
|
+
background-color: var(--color-warning-700) !important;
|
|
405
|
+
}
|
|
406
|
+
.bg-warning-800 {
|
|
407
|
+
background-color: var(--color-warning-800) !important;
|
|
408
|
+
}
|
|
409
|
+
.bg-warning-900 {
|
|
410
|
+
background-color: var(--color-warning-900) !important;
|
|
411
|
+
}
|
|
412
|
+
.bg-warning-1000 {
|
|
413
|
+
background-color: var(--color-warning-1000) !important;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.bg-highlight-100 {
|
|
417
|
+
background-color: var(--color-highlight-100) !important;
|
|
418
|
+
}
|
|
419
|
+
.bg-highlight-200 {
|
|
420
|
+
background-color: var(--color-highlight-200) !important;
|
|
421
|
+
}
|
|
422
|
+
.bg-highlight-300 {
|
|
423
|
+
background-color: var(--color-highlight-300) !important;
|
|
424
|
+
}
|
|
425
|
+
.bg-highlight-400 {
|
|
426
|
+
background-color: var(--color-highlight-400) !important;
|
|
427
|
+
}
|
|
428
|
+
.bg-highlight-500 {
|
|
429
|
+
background-color: var(--color-highlight-500) !important;
|
|
430
|
+
}
|
|
431
|
+
.bg-highlight-600 {
|
|
432
|
+
background-color: var(--color-highlight-600) !important;
|
|
433
|
+
}
|
|
434
|
+
.bg-highlight-700 {
|
|
435
|
+
background-color: var(--color-highlight-700) !important;
|
|
436
|
+
}
|
|
437
|
+
.bg-highlight-800 {
|
|
438
|
+
background-color: var(--color-highlight-800) !important;
|
|
439
|
+
}
|
|
440
|
+
.bg-highlight-900 {
|
|
441
|
+
background-color: var(--color-highlight-900) !important;
|
|
442
|
+
}
|
|
443
|
+
.bg-highlight-1000 {
|
|
444
|
+
background-color: var(--color-highlight-1000) !important;
|
|
445
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.shadow-xs {
|
|
2
|
+
box-shadow: 0 0 12px 0 rgba(18, 18, 18, 0.08) !important;
|
|
3
|
+
}
|
|
4
|
+
.shadow-sm {
|
|
5
|
+
box-shadow: 0 0 12px 0 rgba(18, 18, 18, 0.16) !important;
|
|
6
|
+
}
|
|
7
|
+
.shadow-md {
|
|
8
|
+
box-shadow: 0 0 12px 0 rgba(18, 18, 18, 0.24) !important;
|
|
9
|
+
}
|
|
10
|
+
.shadow-lg {
|
|
11
|
+
box-shadow: 0 0 12px 0 rgba(18, 18, 18, 0.72) !important;
|
|
12
|
+
}
|
|
13
|
+
.shadow-xl {
|
|
14
|
+
box-shadow: 0 0 16px 0 rgba(18, 18, 18, 0.96) !important;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.text-left {
|
|
2
|
+
text-align: left !important;
|
|
3
|
+
}
|
|
4
|
+
.text-center {
|
|
5
|
+
text-align: center !important;
|
|
6
|
+
}
|
|
7
|
+
.text-right {
|
|
8
|
+
text-align: right !important;
|
|
9
|
+
}
|
|
10
|
+
.text-justify {
|
|
11
|
+
text-align: justify !important;
|
|
12
|
+
}
|
|
13
|
+
.text-start {
|
|
14
|
+
text-align: start !important;
|
|
15
|
+
}
|
|
16
|
+
.text-end {
|
|
17
|
+
text-align: end !important;
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kofile/gds-foundations",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/css/index.css",
|
|
6
6
|
"exports": {
|
|
@@ -68,6 +68,10 @@
|
|
|
68
68
|
"import": "./build/css/components/checkbox.module.css",
|
|
69
69
|
"require": "./build/css/components/checkbox.module.css"
|
|
70
70
|
},
|
|
71
|
+
"./components/dialog.module.css": {
|
|
72
|
+
"import": "./build/css/components/dialog.module.css",
|
|
73
|
+
"require": "./build/css/components/dialog.module.css"
|
|
74
|
+
},
|
|
71
75
|
"./components/field-message.module.css": {
|
|
72
76
|
"import": "./build/css/components/field-message.module.css",
|
|
73
77
|
"require": "./build/css/components/field-message.module.css"
|
|
@@ -104,6 +108,10 @@
|
|
|
104
108
|
"import": "./build/css/components/list-item.module.css",
|
|
105
109
|
"require": "./build/css/components/list-item.module.css"
|
|
106
110
|
},
|
|
111
|
+
"./components/loader.module.css": {
|
|
112
|
+
"import": "./build/css/components/loader.module.css",
|
|
113
|
+
"require": "./build/css/components/loader.module.css"
|
|
114
|
+
},
|
|
107
115
|
"./components/radio-group.module.css": {
|
|
108
116
|
"import": "./build/css/components/radio-group.module.css",
|
|
109
117
|
"require": "./build/css/components/radio-group.module.css"
|