@elderbyte/ngx-starter 15.3.3 → 15.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "15.3.3",
3
+ "version": "15.3.5",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^15.0.0 || ^16.0.0",
6
6
  "@angular/common": "^15.0.0 || ^16.0.0",
@@ -1,13 +1,19 @@
1
1
  @use 'mat-icon-button-size' as icon-button-size;
2
2
 
3
- $xs: 4px;
4
- $sm: 8px;
5
- $md: 12px;
6
- $lg: 16px;
7
- $xl: 24px;
8
- $xxl: 32px;
9
-
10
- @mixin elder-common-styles {
3
+ @mixin elder-common-styles ($common-sizes) {
4
+
5
+ /***************************************************************************
6
+ * *
7
+ * Common Sizes *
8
+ * *
9
+ **************************************************************************/
10
+
11
+ $xs: map-get($common-sizes, xs);
12
+ $sm: map-get($common-sizes, sm);
13
+ $md: map-get($common-sizes, md);
14
+ $lg: map-get($common-sizes, lg);
15
+ $xl: map-get($common-sizes, xl);
16
+ $xxl:map-get($common-sizes, xxl);
11
17
 
12
18
  /***************************************************************************
13
19
  * *
@@ -0,0 +1,37 @@
1
+
2
+ /*
3
+ Builds an elder-config.
4
+
5
+ All arguments are optional which means all, none are only a part of the arguments can be passed.
6
+ In case no arguments are passed, the default elder-config will be returned.
7
+
8
+ @Examples:
9
+ elder-config.build(); // returns default config
10
+ elder-config.build($common-sizes: $custom-sizes); // returns config with custom sizes
11
+ */
12
+ @function buildConfig($common-sizes: common-sizes()) {
13
+ @return (
14
+ common-sizes: $common-sizes
15
+ );
16
+ }
17
+
18
+ /*
19
+ Returns a map of common-sizes.
20
+ */
21
+ @function common-sizes(
22
+ $xs: 4px,
23
+ $sm: 8px,
24
+ $md: 12px,
25
+ $lg: 16px,
26
+ $xl: 24px,
27
+ $xxl: 32px
28
+ ) {
29
+ @return (
30
+ xs: $xs,
31
+ sm: $sm,
32
+ md: $md,
33
+ lg: $lg,
34
+ xl: $xl,
35
+ xxl: $xxl
36
+ )
37
+ }
@@ -34,7 +34,20 @@ $media: (
34
34
  box-sizing: border-box;
35
35
  }
36
36
 
37
- @mixin elder-flex-layout {
37
+ @mixin elder-flex-layout($common-sizes) {
38
+
39
+ /***************************************************************************
40
+ * *
41
+ * Common Sizes *
42
+ * *
43
+ **************************************************************************/
44
+
45
+ $xs: map-get($common-sizes, xs);
46
+ $sm: map-get($common-sizes, sm);
47
+ $md: map-get($common-sizes, md);
48
+ $lg: map-get($common-sizes, lg);
49
+ $xl: map-get($common-sizes, xl);
50
+ $xxl:map-get($common-sizes, xxl);
38
51
 
39
52
  /***************************************************************************
40
53
  * *
@@ -332,32 +345,242 @@ $media: (
332
345
 
333
346
  /***************************************************************************
334
347
  * *
335
- * Gaps *
348
+ * Gap xs *
336
349
  * *
337
350
  **************************************************************************/
338
351
 
339
352
  .gap-xs {
340
- gap: 4px;
353
+ gap: $xs;
354
+ }
355
+
356
+ .xs\:gap-xs {
357
+ @include breakpoint('xs') {
358
+ gap: $xs !important;
359
+ }
360
+ }
361
+
362
+ .sm\:gap-xs {
363
+ @include breakpoint('sm') {
364
+ gap: $xs !important;
365
+ }
366
+ }
367
+
368
+ .md\:gap-xs {
369
+ @include breakpoint('md') {
370
+ gap: $xs !important;
371
+ }
372
+ }
373
+
374
+ .lg\:gap-xs {
375
+ @include breakpoint('lg') {
376
+ gap: $xs !important;
377
+ }
378
+ }
379
+
380
+ .xl\:gap-xs {
381
+ @include breakpoint('xl') {
382
+ gap: $xs !important;
383
+ }
341
384
  }
342
385
 
386
+ /***************************************************************************
387
+ * *
388
+ * Gap sm *
389
+ * *
390
+ **************************************************************************/
391
+
343
392
  .gap-sm {
344
- gap: 8px;
393
+ gap: $sm;
394
+ }
395
+
396
+ .xs\:gap-sm {
397
+ @include breakpoint('xs') {
398
+ gap: $sm !important;
399
+ }
400
+ }
401
+
402
+ .sm\:gap-sm {
403
+ @include breakpoint('sm') {
404
+ gap: $sm !important;
405
+ }
406
+ }
407
+
408
+ .md\:gap-sm {
409
+ @include breakpoint('md') {
410
+ gap: $sm !important;
411
+ }
345
412
  }
346
413
 
414
+ .lg\:gap-sm {
415
+ @include breakpoint('lg') {
416
+ gap: $sm !important;
417
+ }
418
+ }
419
+
420
+ .xl\:gap-sm {
421
+ @include breakpoint('xl') {
422
+ gap: $sm !important;
423
+ }
424
+ }
425
+
426
+ /***************************************************************************
427
+ * *
428
+ * Gap md *
429
+ * *
430
+ **************************************************************************/
431
+
347
432
  .gap-md {
348
- gap: 12px;
433
+ gap: $md;
434
+ }
435
+
436
+ .xs\:gap-md {
437
+ @include breakpoint('xs') {
438
+ gap: $md !important;
439
+ }
440
+ }
441
+
442
+ .sm\:gap-md {
443
+ @include breakpoint('sm') {
444
+ gap: $md !important;
445
+ }
446
+ }
447
+
448
+ .md\:gap-md {
449
+ @include breakpoint('md') {
450
+ gap: $md !important;
451
+ }
452
+ }
453
+
454
+ .lg\:gap-md {
455
+ @include breakpoint('lg') {
456
+ gap: $md !important;
457
+ }
458
+ }
459
+
460
+ .xl\:gap-md {
461
+ @include breakpoint('xl') {
462
+ gap: $md !important;
463
+ }
349
464
  }
350
465
 
466
+ /***************************************************************************
467
+ * *
468
+ * Gap lg *
469
+ * *
470
+ **************************************************************************/
471
+
351
472
  .gap-lg {
352
- gap: 16px;
473
+ gap: $lg;
474
+ }
475
+
476
+ .xs\:gap-lg {
477
+ @include breakpoint('xs') {
478
+ gap: $lg !important;
479
+ }
480
+ }
481
+
482
+ .sm\:gap-lg {
483
+ @include breakpoint('sm') {
484
+ gap: $lg !important;
485
+ }
486
+ }
487
+
488
+ .md\:gap-lg {
489
+ @include breakpoint('md') {
490
+ gap: $lg !important;
491
+ }
492
+ }
493
+
494
+ .lg\:gap-lg {
495
+ @include breakpoint('lg') {
496
+ gap: $lg !important;
497
+ }
498
+ }
499
+
500
+ .xl\:gap-lg {
501
+ @include breakpoint('xl') {
502
+ gap: $lg !important;
503
+ }
353
504
  }
354
505
 
506
+ /***************************************************************************
507
+ * *
508
+ * Gap xl *
509
+ * *
510
+ **************************************************************************/
511
+
355
512
  .gap-xl {
356
- gap: 24px;
513
+ gap: $xl;
514
+ }
515
+
516
+ .xs\:gap-xl {
517
+ @include breakpoint('xs') {
518
+ gap: $xl !important;
519
+ }
520
+ }
521
+
522
+ .sm\:gap-xl {
523
+ @include breakpoint('sm') {
524
+ gap: $xl !important;
525
+ }
357
526
  }
358
527
 
528
+ .md\:gap-xl {
529
+ @include breakpoint('md') {
530
+ gap: $xl !important;
531
+ }
532
+ }
533
+
534
+ .lg\:gap-xl {
535
+ @include breakpoint('lg') {
536
+ gap: $xl !important;
537
+ }
538
+ }
539
+
540
+ .xl\:gap-xl {
541
+ @include breakpoint('xl') {
542
+ gap: $xl !important;
543
+ }
544
+ }
545
+
546
+ /***************************************************************************
547
+ * *
548
+ * Gap xxl *
549
+ * *
550
+ **************************************************************************/
551
+
359
552
  .gap-xxl {
360
- gap: 32px;
553
+ gap: $xxl;
554
+ }
555
+
556
+ .xs\:gap-xxl {
557
+ @include breakpoint('xs') {
558
+ gap: $xxl !important;
559
+ }
560
+ }
561
+
562
+ .sm\:gap-xxl {
563
+ @include breakpoint('sm') {
564
+ gap: $xxl !important;
565
+ }
566
+ }
567
+
568
+ .md\:gap-xxl {
569
+ @include breakpoint('md') {
570
+ gap: $xxl !important;
571
+ }
572
+ }
573
+
574
+ .lg\:gap-xxl {
575
+ @include breakpoint('lg') {
576
+ gap: $xxl !important;
577
+ }
578
+ }
579
+
580
+ .xl\:gap-xxl {
581
+ @include breakpoint('xl') {
582
+ gap: $xxl !important;
583
+ }
361
584
  }
362
585
 
363
586
  /***************************************************************************