@firestitch/style 18.0.63 → 18.0.64

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": "@firestitch/style",
3
- "version": "18.0.63",
3
+ "version": "18.0.64",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-style"
@@ -34,6 +34,61 @@
34
34
  }
35
35
  }
36
36
 
37
+ // Fill appearance restyled to look like outline. The label keeps fill's
38
+ // placement (inside the field, no notch) — only the container changes:
39
+ // a border instead of the gray tint + underline. Colors come from the
40
+ // outlined MDC tokens, so hover/focus/error/disabled states track the
41
+ // project's outline theme exactly.
42
+ .mat-mdc-form-field.mat-form-field-appearance-fill {
43
+ --mdc-filled-text-field-container-color: transparent;
44
+ --mdc-filled-text-field-disabled-container-color: transparent;
45
+
46
+ .mat-mdc-text-field-wrapper {
47
+ border: 1px solid var(--mdc-outlined-text-field-outline-color, rgba(0, 0, 0, 0.38));
48
+ border-radius: var(--mdc-outlined-text-field-container-shape, 4px);
49
+ }
50
+
51
+ .mdc-line-ripple {
52
+ display: none;
53
+ }
54
+
55
+ .mat-mdc-form-field-focus-overlay {
56
+ background-color: transparent;
57
+ }
58
+
59
+ &:hover:not(.mat-focused):not(.mat-form-field-invalid):not(.mat-form-field-disabled) {
60
+ .mat-mdc-text-field-wrapper {
61
+ border-color: var(--mdc-outlined-text-field-hover-outline-color, rgba(0, 0, 0, 0.87));
62
+ }
63
+ }
64
+
65
+ // Outline's focused border is 2px; the inset shadow adds the second
66
+ // pixel so the field doesn't reflow
67
+ &.mat-focused .mat-mdc-text-field-wrapper {
68
+ border-color: var(--mdc-outlined-text-field-focus-outline-color);
69
+ box-shadow: inset 0 0 0 1px var(--mdc-outlined-text-field-focus-outline-color);
70
+ }
71
+
72
+ &.mat-form-field-invalid {
73
+ .mat-mdc-text-field-wrapper {
74
+ border-color: var(--mdc-outlined-text-field-error-outline-color);
75
+ }
76
+
77
+ &:hover:not(.mat-focused) .mat-mdc-text-field-wrapper {
78
+ border-color: var(--mdc-outlined-text-field-error-hover-outline-color);
79
+ }
80
+
81
+ &.mat-focused .mat-mdc-text-field-wrapper {
82
+ border-color: var(--mdc-outlined-text-field-error-focus-outline-color);
83
+ box-shadow: inset 0 0 0 1px var(--mdc-outlined-text-field-error-focus-outline-color);
84
+ }
85
+ }
86
+
87
+ &.mat-form-field-disabled .mat-mdc-text-field-wrapper {
88
+ border-color: var(--mdc-outlined-text-field-disabled-outline-color, rgba(0, 0, 0, 0.06));
89
+ }
90
+ }
91
+
37
92
  .form-field-grow {
38
93
  .mat-form-field-infix {
39
94
  width: fit-content;
@@ -50,6 +105,10 @@
50
105
  border-color: transparent;
51
106
  }
52
107
 
108
+ &.mat-form-field-appearance-fill:not(:hover) .mat-mdc-text-field-wrapper {
109
+ border-color: transparent;
110
+ }
111
+
53
112
  input {
54
113
  text-overflow: ellipsis;
55
114
  }