dolfo-angular 1.234.0 → 1.235.0

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,12 +1,12 @@
1
1
  {
2
2
  "name": "dolfo-angular",
3
- "version": "1.234.0",
3
+ "version": "1.235.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^22.1.1",
6
- "@angular/core": "^22.1.1",
7
- "@angular/forms": "^22.1.1",
8
- "@angular/platform-browser": "^22.1.1",
9
- "@angular/router": "^22.1.1"
5
+ "@angular/common": "^22.2.1",
6
+ "@angular/core": "^22.2.1",
7
+ "@angular/forms": "^22.2.1",
8
+ "@angular/platform-browser": "^22.2.1",
9
+ "@angular/router": "^22.2.1"
10
10
  },
11
11
  "dependencies": {
12
12
  "tslib": "^2.8.1"
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  &.error{
29
- input[type="text"], input[type="password"], input[type="email"], textarea, input[type="time"], input[type="number"], input[type="date"], .combobox{
29
+ input[type="text"], input[type="password"], input[type="email"], textarea, input[type="time"], input[type="number"], input[type="date"], input[type="file"], .combobox{
30
30
  border-color: $error !important;
31
31
  background-color: rgba(217, 16, 16, 0.07) !important
32
32
  }
@@ -37,7 +37,7 @@
37
37
  color: $error
38
38
  }
39
39
 
40
- input[type="text"], input[type="password"], input[type="email"], textarea, input[type="time"], input[type="number"]{
40
+ input[type="text"], input[type="password"], input[type="email"], textarea, input[type="time"], input[type="number"], input[type="file"]{
41
41
  @include base-input;
42
42
 
43
43
  &:focus{
@@ -51,6 +51,34 @@
51
51
  }
52
52
  }
53
53
 
54
+ input[type="file"]{
55
+ @include pointer;
56
+
57
+ &::file-selector-button{
58
+ @include rounded;
59
+ @include pointer;
60
+ margin-right: 0.5rem;
61
+ background-color: $primary;
62
+ border: 0;
63
+ color: $white;
64
+ padding: 0.3rem 0.5rem;
65
+
66
+ &:hover{
67
+ background-color: color.adjust($primary, $lightness: -10%)
68
+ }
69
+ }
70
+
71
+ &[disabled]::file-selector-button{
72
+ opacity: 0.7;
73
+ pointer-events: none
74
+ }
75
+
76
+ &.dragging{
77
+ border-style: dashed;
78
+ border-color: $primary
79
+ }
80
+ }
81
+
54
82
  textarea{
55
83
  resize: none;
56
84
  min-height: 100px