otimus-library 0.3.71 → 0.3.73

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.
@@ -1,272 +1,272 @@
1
- @use '../../variables.scss';
2
-
3
- // Mixin para reutilizar os estilos
4
- @mixin input-box-prefix {
5
- .material-symbols-outlined {
6
- position: absolute;
7
- left: 0;
8
- font-size: 1.5rem;
9
- user-select: none;
10
- }
11
- }
12
-
13
- @mixin input-box-suffix {
14
- .material-symbols-outlined,
15
- .oc.suffix {
16
- position: absolute;
17
- right: 0;
18
- font-size: 1.5rem;
19
- user-select: none;
20
- }
21
- }
22
-
23
- @mixin input-box-base {
24
- position: relative;
25
- margin-top: 0.5rem;
26
-
27
- select * {
28
- background-color: variables.$color-shui-base-2;
29
- }
30
-
31
- label {
32
- position: absolute;
33
- left: 0;
34
- top: 0;
35
- padding: 0.5rem 0.7rem;
36
- font-size: 0.85rem;
37
- color: variables.$color-shui-ui-1;
38
- pointer-events: none;
39
- transition: 0.3s ease;
40
- border-radius: 0.5rem;
41
- white-space: nowrap;
42
- }
43
-
44
- &.prefix {
45
- z-index: 5;
46
- .material-symbols-outlined,
47
- .oc.suffix {
48
- padding: 0.5rem 0.7rem;
49
- }
50
- input {
51
- padding-left: 1.75rem;
52
- }
53
- label {
54
- padding: 0.7rem 2.5rem;
55
- }
56
- }
57
-
58
- &.suffix {
59
- z-index: 5;
60
- .material-symbols-outlined,
61
- .oc.suffix {
62
- padding: 0.5rem 0.7rem;
63
- }
64
- input {
65
- padding-right: 1.75rem;
66
- }
67
- label {
68
- padding: 0.7rem 0.7rem;
69
- }
70
- }
71
-
72
- input,
73
- textarea,
74
- select {
75
- border-radius: 0;
76
- font-size: 1rem;
77
- background-color: variables.$color-shui-base-2;
78
- border: none;
79
- outline: none;
80
- padding: 1rem 0.9rem;
81
- padding-bottom: 0.2rem;
82
- width: 100%;
83
- transition: 0.3s ease;
84
- color: variables.$color-shui-ui-1;
85
- font-weight: 400;
86
- height: 41px;
87
- min-width: 100%;
88
- }
89
-
90
- textarea {
91
- height: inherit;
92
- padding-top: 20px;
93
- }
94
-
95
- input:not(:placeholder-shown) ~ label,
96
- input:focus ~ label,
97
- textarea:not(:placeholder-shown) ~ label,
98
- textarea:focus ~ label,
99
- select:valid ~ label,
100
- select:focus ~ label {
101
- transform: translateX(0.45rem);
102
- background-color: variables.$color-shui-base-2;
103
- width: 95%;
104
- padding: 1px 7px;
105
- padding-bottom: 0;
106
- font-size: 0.7rem;
107
- font-weight: 500;
108
- }
109
-
110
- input:focus ~ label,
111
- textarea:focus ~ label,
112
- select:valid ~ label,
113
- select:focus ~ label {
114
- color: variables.$color-shui-ui-8;
115
- }
116
-
117
- &::before {
118
- display: block;
119
- content: '';
120
- position: absolute;
121
- bottom: 0;
122
- height: 1px;
123
- width: 100%;
124
- background-color: variables.$color-shui-ui-5;
125
- transition: 0.4s ease;
126
- width: 0;
127
- background-color: variables.$color-shui-ui-8;
128
- }
129
-
130
- &:focus-within::before {
131
- width: 100%;
132
- }
133
-
134
- &.small {
135
- input,
136
- textarea,
137
- select {
138
- max-height: 36px;
139
- padding-top: 1rem;
140
- }
141
-
142
- &.prefix {
143
- z-index: 5;
144
- .material-symbols-outlined {
145
- padding: 0.35rem 0.7rem;
146
- font-size: 1.25rem;
147
- color: variables.$color-shui-ui-8;
148
- }
149
- label {
150
- padding: 0.45rem 2.5rem;
151
- }
152
- }
153
-
154
- &.suffix {
155
- z-index: 5;
156
- .material-symbols-outlined {
157
- padding: 0.35rem 0.7rem;
158
- color: variables.$color-shui-ui-8;
159
- }
160
- label {
161
- padding: 0.45rem 0.7rem;
162
- }
163
- }
164
- }
165
-
166
- &.large {
167
- input,
168
- textarea,
169
- select {
170
- height: 46px;
171
- }
172
-
173
- label {
174
- padding: 1rem 0.7rem;
175
- }
176
-
177
- &.prefix {
178
- z-index: 5;
179
- .material-symbols-outlined {
180
- padding: 1rem 0.7rem;
181
- }
182
- input {
183
- padding-left: 2.5rem;
184
- }
185
- label {
186
- padding: 1.1rem 2.5rem;
187
- }
188
- }
189
-
190
- &.suffix {
191
- z-index: 5;
192
- .material-symbols-outlined {
193
- padding: 0.9rem 0.7rem;
194
- }
195
- input {
196
- padding-right: 2.5rem;
197
- }
198
- label {
199
- padding: 1.1rem 0.7rem;
200
- }
201
- }
202
- }
203
- }
204
-
205
- @mixin error-styles {
206
- input,
207
- textarea,
208
- select {
209
- border: 1px solid variables.$color-shui-functional-red;
210
- box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
211
- }
212
-
213
- &::before {
214
- width: 0 !important;
215
- }
216
-
217
- small,
218
- label {
219
- color: variables.$color-error !important;
220
- font-weight: 600;
221
- }
222
- }
223
-
224
- // Aplicação direta (sem classe pai .shui)
225
- .shui-input-box.prefix {
226
- @include input-box-prefix;
227
- }
228
-
229
- .shui-input-box.suffix {
230
- @include input-box-suffix;
231
- }
232
-
233
- .shui-input-box {
234
- @include input-box-base;
235
- }
236
-
237
- .error {
238
- @include error-styles;
239
- }
240
-
241
- // Aplicação com classe pai .shui
242
- .shui {
243
- .prefix {
244
- @include input-box-prefix;
245
- }
246
-
247
- .suffix {
248
- @include input-box-suffix;
249
- }
250
-
251
- .oc-input-box {
252
- @include input-box-base;
253
- }
254
-
255
- .error {
256
- @include error-styles;
257
- }
258
- }
259
-
260
- .oc.suffix,
261
- .oc.prefix,
262
- .material-symbols-outlined {
263
- z-index: 5 !important;
264
- }
265
-
266
- .shui {
267
- .oc.suffix,
268
- .oc.prefix,
269
- .material-symbols-outlined {
270
- z-index: 5 !important;
271
- }
1
+ @use '../../variables.scss';
2
+
3
+ // Mixin para reutilizar os estilos
4
+ @mixin input-box-prefix {
5
+ .material-symbols-outlined {
6
+ position: absolute;
7
+ left: 0;
8
+ font-size: 1.5rem;
9
+ user-select: none;
10
+ }
11
+ }
12
+
13
+ @mixin input-box-suffix {
14
+ .material-symbols-outlined,
15
+ .oc.suffix {
16
+ position: absolute;
17
+ right: 0;
18
+ font-size: 1.5rem;
19
+ user-select: none;
20
+ }
21
+ }
22
+
23
+ @mixin input-box-base {
24
+ position: relative;
25
+ margin-top: 0.5rem;
26
+
27
+ select * {
28
+ background-color: variables.$color-shui-base-2;
29
+ }
30
+
31
+ label {
32
+ position: absolute;
33
+ left: 0;
34
+ top: 0;
35
+ padding: 0.5rem 0.7rem;
36
+ font-size: 0.85rem;
37
+ color: variables.$color-shui-ui-1;
38
+ pointer-events: none;
39
+ transition: 0.3s ease;
40
+ border-radius: 0.5rem;
41
+ white-space: nowrap;
42
+ }
43
+
44
+ &.prefix {
45
+ z-index: 5;
46
+ .material-symbols-outlined,
47
+ .oc.suffix {
48
+ padding: 0.5rem 0.7rem;
49
+ }
50
+ input {
51
+ padding-left: 1.75rem;
52
+ }
53
+ label {
54
+ padding: 0.7rem 2.5rem;
55
+ }
56
+ }
57
+
58
+ &.suffix {
59
+ z-index: 5;
60
+ .material-symbols-outlined,
61
+ .oc.suffix {
62
+ padding: 0.5rem 0.7rem;
63
+ }
64
+ input {
65
+ padding-right: 1.75rem;
66
+ }
67
+ label {
68
+ padding: 0.7rem 0.7rem;
69
+ }
70
+ }
71
+
72
+ input,
73
+ textarea,
74
+ select {
75
+ border-radius: 0;
76
+ font-size: 1rem;
77
+ background-color: variables.$color-shui-base-2;
78
+ border: none;
79
+ outline: none;
80
+ padding: 1rem 0.9rem;
81
+ padding-bottom: 0.2rem;
82
+ width: 100%;
83
+ transition: 0.3s ease;
84
+ color: variables.$color-shui-ui-1;
85
+ font-weight: 400;
86
+ height: 41px;
87
+ min-width: 100%;
88
+ }
89
+
90
+ textarea {
91
+ height: inherit;
92
+ padding-top: 20px;
93
+ }
94
+
95
+ input:not(:placeholder-shown) ~ label,
96
+ input:focus ~ label,
97
+ textarea:not(:placeholder-shown) ~ label,
98
+ textarea:focus ~ label,
99
+ select:valid ~ label,
100
+ select:focus ~ label {
101
+ transform: translateX(0.45rem);
102
+ background-color: variables.$color-shui-base-2;
103
+ width: 95%;
104
+ padding: 1px 7px;
105
+ padding-bottom: 0;
106
+ font-size: 0.7rem;
107
+ font-weight: 500;
108
+ }
109
+
110
+ input:focus ~ label,
111
+ textarea:focus ~ label,
112
+ select:valid ~ label,
113
+ select:focus ~ label {
114
+ color: variables.$color-shui-ui-8;
115
+ }
116
+
117
+ &::before {
118
+ display: block;
119
+ content: '';
120
+ position: absolute;
121
+ bottom: 0;
122
+ height: 1px;
123
+ width: 100%;
124
+ background-color: variables.$color-shui-ui-5;
125
+ transition: 0.4s ease;
126
+ width: 0;
127
+ background-color: variables.$color-shui-ui-8;
128
+ }
129
+
130
+ &:focus-within::before {
131
+ width: 100%;
132
+ }
133
+
134
+ &.small {
135
+ input,
136
+ textarea,
137
+ select {
138
+ max-height: 36px;
139
+ padding-top: 1rem;
140
+ }
141
+
142
+ &.prefix {
143
+ z-index: 5;
144
+ .material-symbols-outlined {
145
+ padding: 0.35rem 0.7rem;
146
+ font-size: 1.25rem;
147
+ color: variables.$color-shui-ui-8;
148
+ }
149
+ label {
150
+ padding: 0.45rem 2.5rem;
151
+ }
152
+ }
153
+
154
+ &.suffix {
155
+ z-index: 5;
156
+ .material-symbols-outlined {
157
+ padding: 0.35rem 0.7rem;
158
+ color: variables.$color-shui-ui-8;
159
+ }
160
+ label {
161
+ padding: 0.45rem 0.7rem;
162
+ }
163
+ }
164
+ }
165
+
166
+ &.large {
167
+ input,
168
+ textarea,
169
+ select {
170
+ height: 46px;
171
+ }
172
+
173
+ label {
174
+ padding: 1rem 0.7rem;
175
+ }
176
+
177
+ &.prefix {
178
+ z-index: 5;
179
+ .material-symbols-outlined {
180
+ padding: 1rem 0.7rem;
181
+ }
182
+ input {
183
+ padding-left: 2.5rem;
184
+ }
185
+ label {
186
+ padding: 1.1rem 2.5rem;
187
+ }
188
+ }
189
+
190
+ &.suffix {
191
+ z-index: 5;
192
+ .material-symbols-outlined {
193
+ padding: 0.9rem 0.7rem;
194
+ }
195
+ input {
196
+ padding-right: 2.5rem;
197
+ }
198
+ label {
199
+ padding: 1.1rem 0.7rem;
200
+ }
201
+ }
202
+ }
203
+ }
204
+
205
+ @mixin error-styles {
206
+ input,
207
+ textarea,
208
+ select {
209
+ border: 1px solid variables.$color-shui-functional-red;
210
+ box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
211
+ }
212
+
213
+ &::before {
214
+ width: 0 !important;
215
+ }
216
+
217
+ small,
218
+ label {
219
+ color: variables.$color-error !important;
220
+ font-weight: 600;
221
+ }
222
+ }
223
+
224
+ // Aplicação direta (sem classe pai .shui)
225
+ .shui-input-box.prefix {
226
+ @include input-box-prefix;
227
+ }
228
+
229
+ .shui-input-box.suffix {
230
+ @include input-box-suffix;
231
+ }
232
+
233
+ .shui-input-box {
234
+ @include input-box-base;
235
+ }
236
+
237
+ .error {
238
+ @include error-styles;
239
+ }
240
+
241
+ // Aplicação com classe pai .shui
242
+ .shui {
243
+ .prefix {
244
+ @include input-box-prefix;
245
+ }
246
+
247
+ .suffix {
248
+ @include input-box-suffix;
249
+ }
250
+
251
+ .oc-input-box {
252
+ @include input-box-base;
253
+ }
254
+
255
+ .error {
256
+ @include error-styles;
257
+ }
258
+ }
259
+
260
+ .oc.suffix,
261
+ .oc.prefix,
262
+ .material-symbols-outlined {
263
+ z-index: 5 !important;
264
+ }
265
+
266
+ .shui {
267
+ .oc.suffix,
268
+ .oc.prefix,
269
+ .material-symbols-outlined {
270
+ z-index: 5 !important;
271
+ }
272
272
  }