@quidgest/ui 0.16.59 → 0.16.61

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.61
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,
@@ -499,6 +500,9 @@ $transition-duration: 0.2s !default;
499
500
  &__content.q-button {
500
501
  padding: calc(0.483em + 1px) calc(0.5em + 1px);
501
502
  }
503
+ &--removable &__content {
504
+ padding-right: 0;
505
+ }
502
506
  .q-icon {
503
507
  color: currentcolor;
504
508
  }
@@ -513,7 +517,7 @@ $transition-duration: 0.2s !default;
513
517
  border-bottom-left-radius: 0;
514
518
  border-color: transparent;
515
519
  .q-button__content {
516
- padding: 1px;
520
+ padding: 0.08rem;
517
521
  border-radius: 9999px;
518
522
  }
519
523
  &:not(:disabled):hover {
@@ -1990,7 +1994,7 @@ $q-carousel-height-md: 300px;
1990
1994
  .q-col-auto {
1991
1995
  flex: 0 0 auto;
1992
1996
  width: auto;
1993
- max-width: none;
1997
+ max-width: 100%;
1994
1998
  }
1995
1999
  @mixin generate-cols($infix: '') {
1996
2000
  @for $i from 1 through 12 {
@@ -2017,9 +2021,6 @@ $q-carousel-height-md: 300px;
2017
2021
  @media (min-width: $breakpoint-xxl) {
2018
2022
  @include generate-cols('-xxl');
2019
2023
  }
2020
- .q-spacer {
2021
- flex: 1 1 0;
2022
- }
2023
2024
  .q-group-box {
2024
2025
  $this: &;
2025
2026
  display: inline-block;
@@ -3559,3 +3560,111 @@ $q-toast-slide-distance: clamp(1rem, 3vw, 1.5rem) !default;
3559
3560
  max-width: 200px;
3560
3561
  }
3561
3562
  }
3563
+ 
3564
+ .q-spacer {
3565
+ flex: 1 1 0;
3566
+ }
3567
+ $q-spacers: (
3568
+ 0: 0,
3569
+ 1: $space-base * 0.25,
3570
+ 2: $space-base * 0.5,
3571
+ 3: $space-base,
3572
+ 4: $space-base * 1.5,
3573
+ 5: $space-base * 3
3574
+ ) !default;
3575
+ $q-breakpoints: (
3576
+ sm: $breakpoint-sm,
3577
+ md: $breakpoint-md,
3578
+ lg: $breakpoint-lg,
3579
+ xl: $breakpoint-xl,
3580
+ xxl: $breakpoint-xxl
3581
+ ) !default;
3582
+ $q-spacing-sides: (
3583
+ null: '',
3584
+
3585
+ t: 't',
3586
+
3587
+ b: 'b',
3588
+
3589
+ l: 'l',
3590
+
3591
+ r: 'r',
3592
+
3593
+ x: 'x',
3594
+
3595
+ y: 'y'
3596
+ ) !default;
3597
+ @mixin q-media-up($breakpoint) {
3598
+ $value: map.get($q-breakpoints, $breakpoint);
3599
+ @if $value {
3600
+ @media (min-width: $value) {
3601
+ @content;
3602
+ }
3603
+ } @else {
3604
+ @warn "Breakpoint `#{$breakpoint}` not found in $q-breakpoints.";
3605
+ }
3606
+ }
3607
+ @mixin q-emit-spacing($property, $side, $value) {
3608
+ @if not $side {
3609
+ #{$property}: $value;
3610
+ } @else if $side == t {
3611
+ #{$property}-top: $value;
3612
+ } @else if $side == b {
3613
+ #{$property}-bottom: $value;
3614
+ } @else if $side == l {
3615
+ #{$property}-left: $value;
3616
+ } @else if $side == r {
3617
+ #{$property}-right: $value;
3618
+ } @else if $side == x {
3619
+ #{$property}-left: $value;
3620
+ #{$property}-right: $value;
3621
+ } @else if $side == y {
3622
+ #{$property}-top: $value;
3623
+ #{$property}-bottom: $value;
3624
+ } @else {
3625
+ @warn "Unknown side `#{$side}` used for spacing generation.";
3626
+ }
3627
+ }
3628
+ @mixin q-generate-responsive-spacing($property, $short) {
3629
+
3630
+ @each $size, $length in $q-spacers {
3631
+ @each $sideKey, $sideSuffix in $q-spacing-sides {
3632
+ .q-#{$short}#{$sideSuffix}-#{$size} {
3633
+ @include q-emit-spacing($property, $sideKey, $length);
3634
+ }
3635
+ }
3636
+ }
3637
+
3638
+ @each $breakpoint, $bpValue in $q-breakpoints {
3639
+ @include q-media-up($breakpoint) {
3640
+ @each $size, $length in $q-spacers {
3641
+ @each $sideKey, $sideSuffix in $q-spacing-sides {
3642
+ .q-#{$short}#{$sideSuffix}-#{$breakpoint}-#{$size} {
3643
+ @include q-emit-spacing($property, $sideKey, $length);
3644
+ }
3645
+ }
3646
+ }
3647
+ }
3648
+ }
3649
+ }
3650
+ @mixin q-generate-margin-auto() {
3651
+
3652
+ @each $sideKey, $sideSuffix in $q-spacing-sides {
3653
+ .q-m#{$sideSuffix}-auto {
3654
+ @include q-emit-spacing(margin, $sideKey, auto);
3655
+ }
3656
+ }
3657
+
3658
+ @each $breakpoint, $bpValue in $q-breakpoints {
3659
+ @include q-media-up($breakpoint) {
3660
+ @each $sideKey, $sideSuffix in $q-spacing-sides {
3661
+ .q-m#{$sideSuffix}-#{$breakpoint}-auto {
3662
+ @include q-emit-spacing(margin, $sideKey, auto);
3663
+ }
3664
+ }
3665
+ }
3666
+ }
3667
+ }
3668
+ @include q-generate-responsive-spacing(margin, m);
3669
+ @include q-generate-responsive-spacing(padding, p);
3670
+ @include q-generate-margin-auto;
@@ -1 +1 @@
1
- {"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAyCA;AAiJC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAkG3C,iBAAS,cAAc;WAuIT,OAAO,IAA6B;;yBAXrB,GAAG;yBACF,GAAG;;;;EAehC;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAyCA;AAkJC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAmG3C,iBAAS,cAAc;WAuIT,OAAO,IAA6B;;yBAXrB,GAAG;yBACF,GAAG;;;;EAehC;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -33,26 +33,27 @@ const G = ["id"], H = {
33
33
  e.class
34
34
  ];
35
35
  }), P = a(() => {
36
- const o = f.value ? `q-badge--${e.color}` : void 0;
36
+ const o = b.value ? `q-badge--${e.color}` : void 0;
37
37
  return [
38
38
  "q-badge",
39
39
  `q-badge--${e.variant}`,
40
40
  {
41
+ "q-badge--removable": e.removable,
41
42
  "q-badge--disabled": e.disabled
42
43
  },
43
44
  o,
44
45
  v.value
45
46
  ];
46
- }), { isUtilityColor: f, style: r } = w(D(e, "color")), Q = a(() => {
47
+ }), { isUtilityColor: b, style: r } = w(D(e, "color")), Q = a(() => {
47
48
  var o, s, C, _;
48
- if (!f.value)
49
+ if (!b.value)
49
50
  return {
50
51
  "--q-badge-main-color": (o = r.value) == null ? void 0 : o.mainColor,
51
52
  "--q-badge-on-main-color": (s = r.value) == null ? void 0 : s.onMainColor,
52
53
  "--q-badge-hover-color": (C = r.value) == null ? void 0 : C.hoverColor,
53
54
  "--q-badge-on-hover-color": (_ = r.value) == null ? void 0 : _.onHoverColor
54
55
  };
55
- }), S = a(() => m.onClick), b = a(() => ({
56
+ }), S = a(() => m.onClick), f = a(() => ({
56
57
  class: "q-badge__remove",
57
58
  variant: e.variant,
58
59
  color: e.color,
@@ -83,7 +84,7 @@ const G = ["id"], H = {
83
84
  }, 8, ["variant", "color", "disabled", "onClick"]),
84
85
  e.removable ? (t(), i(
85
86
  l(u),
86
- B({ key: 0 }, b.value, { onClick: p }),
87
+ B({ key: 0 }, f.value, { onClick: p }),
87
88
  {
88
89
  default: n(() => [
89
90
  d(
@@ -116,7 +117,7 @@ const G = ["id"], H = {
116
117
  ]),
117
118
  e.removable ? (t(), i(
118
119
  l(u),
119
- B({ key: 0 }, b.value, { onClick: p }),
120
+ B({ key: 0 }, f.value, { onClick: p }),
120
121
  {
121
122
  default: n(() => [
122
123
  d(
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.61",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",