@ardium-ui/ui 5.0.0-alpha.5 → 5.0.0-alpha.6

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": "@ardium-ui/ui",
3
- "version": "5.0.0-alpha.5",
3
+ "version": "5.0.0-alpha.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
@@ -43,7 +43,7 @@ ard-horizontal-form-field {
43
43
  .ard-form-field .ard-form-field__errors-right > *,
44
44
  .ard-horizontal-form-field .ard-form-field__hints-right > *,
45
45
  .ard-horizontal-form-field .ard-form-field__errors-right > * {
46
- padding-left: 0.25rem;
46
+ padding-left: 0.5rem;
47
47
  }
48
48
  .ard-form-field .ard-hint,
49
49
  .ard-form-field .ard-error,
@@ -51,8 +51,8 @@ ard-horizontal-form-field {
51
51
  .ard-horizontal-form-field .ard-error {
52
52
  font-size: 1em;
53
53
  line-height: 1.1;
54
- display: block;
55
- height: 1.1em;
54
+ display: inline-grid;
55
+ min-height: 1.1em;
56
56
  }
57
57
  .ard-form-field .ard-hint,
58
58
  .ard-horizontal-form-field .ard-hint {
@@ -69,6 +69,11 @@ ard-horizontal-form-field {
69
69
  .ard-horizontal-form-field .ard-error:not(.ard-hint-error) {
70
70
  animation: errorAppear 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
71
71
  }
72
+ .ard-form-field .ard-form-field__default-hint, .ard-form-field .ard-form-field__default-error,
73
+ .ard-horizontal-form-field .ard-form-field__default-hint,
74
+ .ard-horizontal-form-field .ard-form-field__default-error {
75
+ gap: 0.375em;
76
+ }
72
77
  .ard-form-field.ard-form-field__with-error .ard-label,
73
78
  .ard-horizontal-form-field.ard-form-field__with-error .ard-label {
74
79
  color: rgb(var(--ard-danger-700));
@@ -108,10 +113,10 @@ ard-horizontal-form-field {
108
113
 
109
114
  @keyframes errorAppear {
110
115
  from {
111
- height: 0;
116
+ grid-template-rows: 0fr;
112
117
  }
113
118
  to {
114
- height: 1.1em;
119
+ grid-template-rows: 1fr;
115
120
  }
116
121
  }
117
122
 
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/form-field.scss","../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAEA;AAAA;EAEE;EACA;;;AAGF;AAAA;EAEE;EACA;;AAEA;AAAA;EACE;EACA;EACA;;AAGE;AAAA;EACE;EACA;EACA;EACA;;AAIF;AAAA;EACE;EACA;EACA;;AAIN;AAAA;EACE;EACA;EACA;;AAEA;AAAA;EACE;EACA;;AAKF;AAAA;AAAA;AAAA;EACE;;AAGJ;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;;AAEF;AAAA;EACE,OClDI;;ADoDN;AAAA;AAAA;AAAA;EAEE,OCkBQ;EDjBR;;AAEF;AAAA;EACE;;AAIA;AAAA;EACE,OCSM;;ADLR;AAAA;EACE,OC8BO;;AD1BT;AAAA;EACE;;AAEF;AAAA;EACE;;;AAIN;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA,QCvDgB;EDwDhB;EACA;EACA;;AAEF;EACE;;AAIA;EACE,QCjEsB;;;ADsE5B;EACE;IACE;;EAEF;IACE","file":"form-field.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/form-field.scss","../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAEA;AAAA;EAEE;EACA;;;AAGF;AAAA;EAEE;EACA;;AAEA;AAAA;EACE;EACA;EACA;;AAGE;AAAA;EACE;EACA;EACA;EACA;;AAIF;AAAA;EACE;EACA;EACA;;AAIN;AAAA;EACE;EACA;EACA;;AAEA;AAAA;EACE;EACA;;AAKF;AAAA;AAAA;AAAA;EACE;;AAGJ;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;;AAEF;AAAA;EACE,OClDI;;ADoDN;AAAA;AAAA;AAAA;EAEE,OCkBQ;EDjBR;;AAEF;AAAA;EACE;;AAEF;AAAA;AAAA;EACE;;AAIA;AAAA;EACE,OCMM;;ADFR;AAAA;EACE,OC2BO;;ADvBT;AAAA;EACE;;AAEF;AAAA;EACE;;;AAIN;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA,QC1DgB;ED2DhB;EACA;EACA;;AAEF;EACE;;AAIA;EACE,QCpEsB;;;ADyE5B;EACE;IACE;;EAEF;IACE","file":"form-field.css"}
@@ -45,15 +45,15 @@ ard-horizontal-form-field {
45
45
  .ard-form-field__hints-right,
46
46
  .ard-form-field__errors-right {
47
47
  > * {
48
- padding-left: 0.25rem;
48
+ padding-left: 0.5rem;
49
49
  }
50
50
  }
51
51
  .ard-hint,
52
52
  .ard-error {
53
53
  font-size: 1em;
54
54
  line-height: 1.1;
55
- display: block;
56
- height: 1.1em;
55
+ display: inline-grid;
56
+ min-height: 1.1em;
57
57
  }
58
58
  .ard-hint {
59
59
  color: ARD.$text2;
@@ -66,6 +66,9 @@ ard-horizontal-form-field {
66
66
  .ard-error:not(.ard-hint-error) {
67
67
  animation: errorAppear 0.25s ARD.$timing-fn forwards;
68
68
  }
69
+ .ard-form-field__default-hint, .ard-form-field__default-error {
70
+ gap: 0.375em;
71
+ }
69
72
 
70
73
  &.ard-form-field__with-error {
71
74
  .ard-label {
@@ -112,9 +115,9 @@ ard-horizontal-form-field {
112
115
 
113
116
  @keyframes errorAppear {
114
117
  from {
115
- height: 0;
118
+ grid-template-rows: 0fr;
116
119
  }
117
120
  to {
118
- height: 1.1em;
121
+ grid-template-rows: 1fr;
119
122
  }
120
123
  }