@quidgest/ui 0.16.59 → 0.16.60

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/dist/ui.scss CHANGED
@@ -1,9 +1,10 @@
1
1
  /*!
2
- * Quidgest UI v0.16.59
2
+ * Quidgest UI v0.16.60
3
3
  * (c) 2026 Quidgest - Consultores de Gestão, S.A.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  @use 'sass:math';
7
+ @use 'sass:map';
7
8
 
8
9
  *,
9
10
  ::before,
@@ -1990,7 +1991,7 @@ $q-carousel-height-md: 300px;
1990
1991
  .q-col-auto {
1991
1992
  flex: 0 0 auto;
1992
1993
  width: auto;
1993
- max-width: none;
1994
+ max-width: 100%;
1994
1995
  }
1995
1996
  @mixin generate-cols($infix: '') {
1996
1997
  @for $i from 1 through 12 {
@@ -2017,9 +2018,6 @@ $q-carousel-height-md: 300px;
2017
2018
  @media (min-width: $breakpoint-xxl) {
2018
2019
  @include generate-cols('-xxl');
2019
2020
  }
2020
- .q-spacer {
2021
- flex: 1 1 0;
2022
- }
2023
2021
  .q-group-box {
2024
2022
  $this: &;
2025
2023
  display: inline-block;
@@ -3559,3 +3557,111 @@ $q-toast-slide-distance: clamp(1rem, 3vw, 1.5rem) !default;
3559
3557
  max-width: 200px;
3560
3558
  }
3561
3559
  }
3560
+ 
3561
+ .q-spacer {
3562
+ flex: 1 1 0;
3563
+ }
3564
+ $q-spacers: (
3565
+ 0: 0,
3566
+ 1: $space-base * 0.25,
3567
+ 2: $space-base * 0.5,
3568
+ 3: $space-base,
3569
+ 4: $space-base * 1.5,
3570
+ 5: $space-base * 3
3571
+ ) !default;
3572
+ $q-breakpoints: (
3573
+ sm: $breakpoint-sm,
3574
+ md: $breakpoint-md,
3575
+ lg: $breakpoint-lg,
3576
+ xl: $breakpoint-xl,
3577
+ xxl: $breakpoint-xxl
3578
+ ) !default;
3579
+ $q-spacing-sides: (
3580
+ null: '',
3581
+
3582
+ t: 't',
3583
+
3584
+ b: 'b',
3585
+
3586
+ l: 'l',
3587
+
3588
+ r: 'r',
3589
+
3590
+ x: 'x',
3591
+
3592
+ y: 'y'
3593
+ ) !default;
3594
+ @mixin q-media-up($breakpoint) {
3595
+ $value: map.get($q-breakpoints, $breakpoint);
3596
+ @if $value {
3597
+ @media (min-width: $value) {
3598
+ @content;
3599
+ }
3600
+ } @else {
3601
+ @warn "Breakpoint `#{$breakpoint}` not found in $q-breakpoints.";
3602
+ }
3603
+ }
3604
+ @mixin q-emit-spacing($property, $side, $value) {
3605
+ @if not $side {
3606
+ #{$property}: $value;
3607
+ } @else if $side == t {
3608
+ #{$property}-top: $value;
3609
+ } @else if $side == b {
3610
+ #{$property}-bottom: $value;
3611
+ } @else if $side == l {
3612
+ #{$property}-left: $value;
3613
+ } @else if $side == r {
3614
+ #{$property}-right: $value;
3615
+ } @else if $side == x {
3616
+ #{$property}-left: $value;
3617
+ #{$property}-right: $value;
3618
+ } @else if $side == y {
3619
+ #{$property}-top: $value;
3620
+ #{$property}-bottom: $value;
3621
+ } @else {
3622
+ @warn "Unknown side `#{$side}` used for spacing generation.";
3623
+ }
3624
+ }
3625
+ @mixin q-generate-responsive-spacing($property, $short) {
3626
+
3627
+ @each $size, $length in $q-spacers {
3628
+ @each $sideKey, $sideSuffix in $q-spacing-sides {
3629
+ .q-#{$short}#{$sideSuffix}-#{$size} {
3630
+ @include q-emit-spacing($property, $sideKey, $length);
3631
+ }
3632
+ }
3633
+ }
3634
+
3635
+ @each $breakpoint, $bpValue in $q-breakpoints {
3636
+ @include q-media-up($breakpoint) {
3637
+ @each $size, $length in $q-spacers {
3638
+ @each $sideKey, $sideSuffix in $q-spacing-sides {
3639
+ .q-#{$short}#{$sideSuffix}-#{$breakpoint}-#{$size} {
3640
+ @include q-emit-spacing($property, $sideKey, $length);
3641
+ }
3642
+ }
3643
+ }
3644
+ }
3645
+ }
3646
+ }
3647
+ @mixin q-generate-margin-auto() {
3648
+
3649
+ @each $sideKey, $sideSuffix in $q-spacing-sides {
3650
+ .q-m#{$sideSuffix}-auto {
3651
+ @include q-emit-spacing(margin, $sideKey, auto);
3652
+ }
3653
+ }
3654
+
3655
+ @each $breakpoint, $bpValue in $q-breakpoints {
3656
+ @include q-media-up($breakpoint) {
3657
+ @each $sideKey, $sideSuffix in $q-spacing-sides {
3658
+ .q-m#{$sideSuffix}-#{$breakpoint}-auto {
3659
+ @include q-emit-spacing(margin, $sideKey, auto);
3660
+ }
3661
+ }
3662
+ }
3663
+ }
3664
+ }
3665
+ @include q-generate-responsive-spacing(margin, m);
3666
+ @include q-generate-responsive-spacing(padding, p);
3667
+ @include q-generate-margin-auto;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quidgest/ui",
3
3
  "description": "Quidgest's UI framework",
4
- "version": "0.16.59",
4
+ "version": "0.16.60",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",