otimus-library 0.2.2 → 0.2.3

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.
Files changed (54) hide show
  1. package/README.md +26 -26
  2. package/esm2022/lib/components/oc-accordion/oc-accordion.component.mjs +3 -3
  3. package/esm2022/lib/components/oc-accordion-item/oc-accordion-item.component.mjs +3 -3
  4. package/esm2022/lib/components/oc-autocomplete/oc-autocomplete.component.mjs +3 -3
  5. package/esm2022/lib/components/oc-badge/oc-badge.component.mjs +3 -3
  6. package/esm2022/lib/components/oc-checkbox/oc-checkbox.component.mjs +3 -3
  7. package/esm2022/lib/components/oc-chip/oc-chip.component.mjs +3 -3
  8. package/esm2022/lib/components/oc-filter/oc-filter.component.mjs +3 -3
  9. package/esm2022/lib/components/oc-input/oc-input.component.mjs +3 -3
  10. package/esm2022/lib/components/oc-key-value/oc-key-value.component.mjs +3 -3
  11. package/esm2022/lib/components/oc-log/oc-log.component.mjs +3 -3
  12. package/esm2022/lib/components/oc-menu/oc-menu.component.mjs +3 -3
  13. package/esm2022/lib/components/oc-modal/oc-modal.component.mjs +3 -3
  14. package/esm2022/lib/components/oc-modal-footer/oc-modal-footer.component.mjs +3 -3
  15. package/esm2022/lib/components/oc-not-found/oc-not-found.component.mjs +3 -3
  16. package/esm2022/lib/components/oc-pagination/oc-pagination.component.mjs +3 -3
  17. package/esm2022/lib/components/oc-profile/oc-profile.component.mjs +3 -3
  18. package/esm2022/lib/components/oc-step/oc-step.component.mjs +3 -3
  19. package/esm2022/lib/components/oc-stepper/oc-stepper.component.mjs +3 -3
  20. package/esm2022/lib/components/oc-tab/oc-tab.component.mjs +3 -3
  21. package/esm2022/lib/components/oc-tabs/oc-tabs.component.mjs +3 -3
  22. package/esm2022/lib/components/oc-toast/oc-toast.component.mjs +3 -3
  23. package/esm2022/lib/components/oc-toggle/oc-toggle.component.mjs +3 -3
  24. package/esm2022/lib/directives/oc-tooltip/oc-tooltip.directive.mjs +1 -1
  25. package/esm2022/lib/interfaces/oc-autocomplete.mjs +1 -1
  26. package/esm2022/lib/interfaces/oc-menu.mjs +1 -1
  27. package/esm2022/lib/interfaces/oc-style-theme.mjs +1 -1
  28. package/esm2022/lib/interfaces/oc-toast.mjs +1 -1
  29. package/esm2022/lib/otimus-library.component.mjs +9 -9
  30. package/esm2022/lib/otimus-library.service.mjs +1 -1
  31. package/esm2022/lib/services/internationalization.service.mjs +1 -1
  32. package/esm2022/lib/services/oc-toast.service.mjs +1 -1
  33. package/esm2022/lib/services/style-theme.service.mjs +1 -1
  34. package/esm2022/public-api.mjs +1 -1
  35. package/fesm2022/otimus-library.mjs +52 -52
  36. package/fesm2022/otimus-library.mjs.map +1 -1
  37. package/package.json +1 -1
  38. package/styles/colors.scss +70 -70
  39. package/styles/components/buttons/buttons.scss +225 -225
  40. package/styles/components/buttons/buttons.shui.scss +56 -56
  41. package/styles/components/index.scss +2 -2
  42. package/styles/components/inputs/inputs.scss +236 -236
  43. package/styles/components/inputs/inputs.shui.scss +198 -195
  44. package/styles/components/table/table.scss +68 -68
  45. package/styles/components/table/table.shui.scss +49 -49
  46. package/styles/components/tooltip.scss +26 -26
  47. package/styles/grid.scss +1122 -1122
  48. package/styles/patterns/shui/colors.shui.scss +154 -154
  49. package/styles/patterns/shui/fonts.shui.scss +65 -65
  50. package/styles/patterns/shui/index.shui.scss +24 -24
  51. package/styles/patterns/shui/variables.shui.scss +22 -22
  52. package/styles/states.scss +5 -5
  53. package/styles/styles.scss +46 -46
  54. package/styles/variables.scss +47 -47
@@ -1,57 +1,57 @@
1
- @use '../../variables.scss';
2
-
3
- .shui .oc.button, .shui.oc.button {
4
- border-radius: 2rem;
5
- font-size: 1.1rem;
6
-
7
- background-color: variables.$color-shui-base-1;
8
-
9
- height: 2.5rem;
10
- padding: 0 1rem;
11
-
12
- &.icon {
13
- border-radius: 50%;
14
-
15
- .material-symbols-outlined {
16
- font-size: 1.9rem;
17
- }
18
- }
19
-
20
- &.ui-8, &.p-1, &.g-1 {
21
- background-color: variables.$color-shui-ui-8;
22
- color: variables.$color-shui-ui-7;
23
- }
24
-
25
- &.tiny {
26
- height: 1.75rem;
27
- .material-symbols-outlined {
28
- font-size: 1.4rem;
29
- }
30
- }
31
-
32
- &.small{
33
- height: 2rem;
34
- .material-symbols-outlined {
35
- font-size: 1.5rem;
36
- }
37
- }
38
-
39
- &.large{
40
- height: 3rem;
41
- }
42
-
43
- &.icon{
44
- width: 2.5rem;
45
- &.tiny {
46
- width: 1.75rem;
47
- }
48
-
49
- &.small{
50
- width: 2rem ;
51
- }
52
-
53
- &.large{
54
- width: 3rem ;
55
- }
56
- }
1
+ @use '../../variables.scss';
2
+
3
+ .shui .oc.button, .shui.oc.button {
4
+ border-radius: 2rem;
5
+ font-size: 1.1rem;
6
+
7
+ background-color: variables.$color-shui-base-1;
8
+
9
+ height: 2.5rem;
10
+ padding: 0 1rem;
11
+
12
+ &.icon {
13
+ border-radius: 50%;
14
+
15
+ .material-symbols-outlined {
16
+ font-size: 1.9rem;
17
+ }
18
+ }
19
+
20
+ &.ui-8, &.p-1, &.g-1 {
21
+ background-color: variables.$color-shui-ui-8;
22
+ color: variables.$color-shui-ui-7;
23
+ }
24
+
25
+ &.tiny {
26
+ height: 1.75rem;
27
+ .material-symbols-outlined {
28
+ font-size: 1.4rem;
29
+ }
30
+ }
31
+
32
+ &.small{
33
+ height: 2rem;
34
+ .material-symbols-outlined {
35
+ font-size: 1.5rem;
36
+ }
37
+ }
38
+
39
+ &.large{
40
+ height: 3rem;
41
+ }
42
+
43
+ &.icon{
44
+ width: 2.5rem;
45
+ &.tiny {
46
+ width: 1.75rem;
47
+ }
48
+
49
+ &.small{
50
+ width: 2rem ;
51
+ }
52
+
53
+ &.large{
54
+ width: 3rem ;
55
+ }
56
+ }
57
57
  }
@@ -1,3 +1,3 @@
1
- @import './buttons/buttons.scss';
2
- @import './tooltip.scss';
1
+ @import './buttons/buttons.scss';
2
+ @import './tooltip.scss';
3
3
  @import './table/table.scss';
@@ -1,236 +1,236 @@
1
- .oc-input-box.prefix {
2
- .material-symbols-outlined{
3
- position: absolute;
4
- left: 0;
5
- font-size: 1.5rem;
6
- user-select: none;
7
- }
8
- }
9
- .oc-input-box.suffix {
10
- .material-symbols-outlined, .oc.suffix{
11
- position: absolute;
12
- right: 0;
13
- font-size: 1.5rem;
14
- user-select: none;
15
- }
16
- }
17
-
18
- .oc-input-box {
19
- position: relative;
20
- margin-top: .5rem;
21
-
22
- select * {
23
- background-color: variables.$color-gray-6;
24
- }
25
-
26
- label {
27
- position: absolute;
28
- left: 0;
29
- top: 0;
30
- padding: 0.5rem 0.7rem;
31
- font-size: 0.85rem;
32
- color: variables.$color-gray-3;
33
- pointer-events: none;
34
- transition: 0.3s ease;
35
- border-radius: 0.5rem;
36
- white-space: nowrap
37
- }
38
-
39
-
40
- &.prefix {
41
- .material-symbols-outlined,.oc.suffix{
42
- padding: .5rem .7rem;
43
- }
44
- input{
45
- padding-left: 1.75rem;
46
- }
47
- label{
48
- padding: .7rem 2.5rem;
49
- }
50
- }
51
-
52
- &.suffix {
53
- .material-symbols-outlined,.oc.suffix {
54
- padding: .5rem .7rem;
55
- }
56
- input{
57
- padding-right: 1.75rem;
58
- }
59
- label{
60
- padding: .7rem 0.7rem;
61
- }
62
- }
63
-
64
- input, textarea, select {
65
- font-size: 1rem;
66
- border-radius: 0.7rem;
67
- background-color: variables.$color-gray-6;
68
- border: 1px solid variables.$color-gray-4;
69
- outline: none;
70
- padding: 0.6rem 0.9rem;
71
- width: 100%;
72
- transition: 0.3s ease;
73
- color: variables.$color-gray-2;
74
- font-weight: 500;
75
-
76
- &:focus {
77
- border: 1px solid variables.$color-brand-g-1;
78
- box-shadow: 0px 4px 3.2px 0px rgba(0, 221, 163, 0.08);
79
- }
80
- }
81
-
82
- input:not(:placeholder-shown) ~ label,
83
- input:focus ~ label,
84
- textarea:not(:placeholder-shown) ~ label,
85
- textarea:focus ~ label,
86
- select:valid ~ label,
87
- select:focus ~ label {
88
- transform: translateY(-0.855rem) translateX(0.6rem);
89
- color: variables.$color-brand-dp-1;
90
- background-color: variables.$color-gray-6;
91
- padding: 1px 7px;
92
- font-weight: 500;
93
- }
94
-
95
- }
96
-
97
-
98
- .error {
99
- input, textarea, select {
100
- border: 1px solid variables.$color-error;
101
- box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
102
- }
103
-
104
- small, label {
105
- color: variables.$color-error !important;
106
- font-weight: 600;
107
- }
108
- }
109
-
110
- .oc-input-box.small {
111
- input, textarea, select {
112
- padding: 0.3rem 0.7rem;
113
- border-radius: 0.5rem;
114
- }
115
-
116
- &.prefix {
117
- .material-symbols-outlined{
118
- padding: .35rem .7rem;
119
- font-size: 1.25rem;
120
- }
121
- label{
122
- padding: .45rem 2.5rem;
123
- }
124
- }
125
-
126
- &.suffix {
127
- .material-symbols-outlined {
128
- padding: .35rem .7rem;
129
- }
130
- label{
131
- padding: .45rem 0.7rem;
132
- }
133
- }
134
-
135
- label {
136
- padding: 0.5rem 0.7rem;
137
- }
138
- input:focus ~ label,
139
- input:not(:placeholder-shown) ~ label,
140
- textarea:focus ~ label,
141
- textarea:not(:placeholder-shown) ~ label,
142
- select:focus ~ label,
143
- select:valid ~ label {
144
- transform: translateY(-0.99rem) translateX(0.6rem);
145
- color: variables.$color-gray-2;
146
- background-color: variables.$color-white;
147
- padding: 1px 7px;
148
- font-weight: 500;
149
- }
150
- }
151
-
152
- .oc-input-box.large {
153
- input, textarea, select {
154
- padding: 1rem;
155
- border-radius: 1rem;
156
- }
157
-
158
- label {
159
- padding: 1rem 0.7rem;
160
- }
161
-
162
- &.prefix {
163
- .material-symbols-outlined{
164
- padding: 1rem .7rem;
165
- }
166
- input{
167
- padding-left: 2.5rem;
168
- }
169
- label{
170
- padding: 1.1rem 2.5rem;
171
- }
172
- }
173
-
174
- &.suffix {
175
- .material-symbols-outlined {
176
- padding: .9rem .7rem;
177
- }
178
- input{
179
- padding-right: 2.5rem;
180
- }
181
- label{
182
- padding: 1.1rem 0.7rem;
183
- }
184
- }
185
-
186
- input:focus ~ label,
187
- input:not(:placeholder-shown) ~ label,
188
- textarea:focus ~ label,
189
- textarea:not(:placeholder-shown) ~ label,
190
- select:focus ~ label,
191
- select:valid ~ label {
192
- transform: translateY(-0.77rem) translateX(0.6rem);
193
- color: variables.$color-gray-2;
194
- background-color: variables.$color-white;
195
- padding: 1px 7px;
196
- font-weight: 500;
197
- }
198
- }
199
-
200
-
201
- // Semantic-like input:
202
-
203
- /* Estilo geral do input */
204
- .semantic-input {
205
- display: inline-block;
206
- width: 100%;
207
- padding: 10px 12px;
208
- font-size: 14px;
209
- line-height: 1.5;
210
- color: #333;
211
- background-color: #fff;
212
- border: 1px solid #ccc;
213
- border-radius: 4px;
214
- box-shadow: 0 1px 2px rgba(34, 36, 38, 0.15);
215
- transition: border-color 0.2s ease, box-shadow 0.2s ease;
216
- }
217
-
218
- /* Estilo ao passar o mouse */
219
- .semantic-input:hover {
220
- border-color: #b3b3b3;
221
- }
222
-
223
- /* Estilo ao focar */
224
- .semantic-input:focus {
225
- border-color: #85b7d9;
226
- box-shadow: 0 0 0 2px rgba(34, 36, 38, 0.15);
227
- outline: none;
228
- }
229
-
230
- /* Estilo para inputs desabilitados */
231
- .semantic-input:disabled {
232
- background-color: #f9f9f9;
233
- color: #b3b3b3;
234
- border-color: #ddd;
235
- cursor: not-allowed;
236
- }
1
+ .oc-input-box.prefix {
2
+ .material-symbols-outlined{
3
+ position: absolute;
4
+ left: 0;
5
+ font-size: 1.5rem;
6
+ user-select: none;
7
+ }
8
+ }
9
+ .oc-input-box.suffix {
10
+ .material-symbols-outlined, .oc.suffix{
11
+ position: absolute;
12
+ right: 0;
13
+ font-size: 1.5rem;
14
+ user-select: none;
15
+ }
16
+ }
17
+
18
+ .oc-input-box {
19
+ position: relative;
20
+ margin-top: .5rem;
21
+
22
+ select * {
23
+ background-color: variables.$color-gray-6;
24
+ }
25
+
26
+ label {
27
+ position: absolute;
28
+ left: 0;
29
+ top: 0;
30
+ padding: 0.5rem 0.7rem;
31
+ font-size: 0.85rem;
32
+ color: variables.$color-gray-3;
33
+ pointer-events: none;
34
+ transition: 0.3s ease;
35
+ border-radius: 0.5rem;
36
+ white-space: nowrap
37
+ }
38
+
39
+
40
+ &.prefix {
41
+ .material-symbols-outlined,.oc.suffix{
42
+ padding: .5rem .7rem;
43
+ }
44
+ input{
45
+ padding-left: 1.75rem;
46
+ }
47
+ label{
48
+ padding: .7rem 2.5rem;
49
+ }
50
+ }
51
+
52
+ &.suffix {
53
+ .material-symbols-outlined,.oc.suffix {
54
+ padding: .5rem .7rem;
55
+ }
56
+ input{
57
+ padding-right: 1.75rem;
58
+ }
59
+ label{
60
+ padding: .7rem 0.7rem;
61
+ }
62
+ }
63
+
64
+ input, textarea, select {
65
+ font-size: 1rem;
66
+ border-radius: 0.7rem;
67
+ background-color: variables.$color-gray-6;
68
+ border: 1px solid variables.$color-gray-4;
69
+ outline: none;
70
+ padding: 0.6rem 0.9rem;
71
+ width: 100%;
72
+ transition: 0.3s ease;
73
+ color: variables.$color-gray-2;
74
+ font-weight: 500;
75
+
76
+ &:focus {
77
+ border: 1px solid variables.$color-brand-g-1;
78
+ box-shadow: 0px 4px 3.2px 0px rgba(0, 221, 163, 0.08);
79
+ }
80
+ }
81
+
82
+ input:not(:placeholder-shown) ~ label,
83
+ input:focus ~ label,
84
+ textarea:not(:placeholder-shown) ~ label,
85
+ textarea:focus ~ label,
86
+ select:valid ~ label,
87
+ select:focus ~ label {
88
+ transform: translateY(-0.855rem) translateX(0.6rem);
89
+ color: variables.$color-brand-dp-1;
90
+ background-color: variables.$color-gray-6;
91
+ padding: 1px 7px;
92
+ font-weight: 500;
93
+ }
94
+
95
+ }
96
+
97
+
98
+ .error {
99
+ input, textarea, select {
100
+ border: 1px solid variables.$color-error;
101
+ box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
102
+ }
103
+
104
+ small, label {
105
+ color: variables.$color-error !important;
106
+ font-weight: 600;
107
+ }
108
+ }
109
+
110
+ .oc-input-box.small {
111
+ input, textarea, select {
112
+ padding: 0.3rem 0.7rem;
113
+ border-radius: 0.5rem;
114
+ }
115
+
116
+ &.prefix {
117
+ .material-symbols-outlined{
118
+ padding: .35rem .7rem;
119
+ font-size: 1.25rem;
120
+ }
121
+ label{
122
+ padding: .45rem 2.5rem;
123
+ }
124
+ }
125
+
126
+ &.suffix {
127
+ .material-symbols-outlined {
128
+ padding: .35rem .7rem;
129
+ }
130
+ label{
131
+ padding: .45rem 0.7rem;
132
+ }
133
+ }
134
+
135
+ label {
136
+ padding: 0.5rem 0.7rem;
137
+ }
138
+ input:focus ~ label,
139
+ input:not(:placeholder-shown) ~ label,
140
+ textarea:focus ~ label,
141
+ textarea:not(:placeholder-shown) ~ label,
142
+ select:focus ~ label,
143
+ select:valid ~ label {
144
+ transform: translateY(-0.99rem) translateX(0.6rem);
145
+ color: variables.$color-gray-2;
146
+ background-color: variables.$color-white;
147
+ padding: 1px 7px;
148
+ font-weight: 500;
149
+ }
150
+ }
151
+
152
+ .oc-input-box.large {
153
+ input, textarea, select {
154
+ padding: 1rem;
155
+ border-radius: 1rem;
156
+ }
157
+
158
+ label {
159
+ padding: 1rem 0.7rem;
160
+ }
161
+
162
+ &.prefix {
163
+ .material-symbols-outlined{
164
+ padding: 1rem .7rem;
165
+ }
166
+ input{
167
+ padding-left: 2.5rem;
168
+ }
169
+ label{
170
+ padding: 1.1rem 2.5rem;
171
+ }
172
+ }
173
+
174
+ &.suffix {
175
+ .material-symbols-outlined {
176
+ padding: .9rem .7rem;
177
+ }
178
+ input{
179
+ padding-right: 2.5rem;
180
+ }
181
+ label{
182
+ padding: 1.1rem 0.7rem;
183
+ }
184
+ }
185
+
186
+ input:focus ~ label,
187
+ input:not(:placeholder-shown) ~ label,
188
+ textarea:focus ~ label,
189
+ textarea:not(:placeholder-shown) ~ label,
190
+ select:focus ~ label,
191
+ select:valid ~ label {
192
+ transform: translateY(-0.77rem) translateX(0.6rem);
193
+ color: variables.$color-gray-2;
194
+ background-color: variables.$color-white;
195
+ padding: 1px 7px;
196
+ font-weight: 500;
197
+ }
198
+ }
199
+
200
+
201
+ // Semantic-like input:
202
+
203
+ /* Estilo geral do input */
204
+ .semantic-input {
205
+ display: inline-block;
206
+ width: 100%;
207
+ padding: 10px 12px;
208
+ font-size: 14px;
209
+ line-height: 1.5;
210
+ color: #333;
211
+ background-color: #fff;
212
+ border: 1px solid #ccc;
213
+ border-radius: 4px;
214
+ box-shadow: 0 1px 2px rgba(34, 36, 38, 0.15);
215
+ transition: border-color 0.2s ease, box-shadow 0.2s ease;
216
+ }
217
+
218
+ /* Estilo ao passar o mouse */
219
+ .semantic-input:hover {
220
+ border-color: #b3b3b3;
221
+ }
222
+
223
+ /* Estilo ao focar */
224
+ .semantic-input:focus {
225
+ border-color: #85b7d9;
226
+ box-shadow: 0 0 0 2px rgba(34, 36, 38, 0.15);
227
+ outline: none;
228
+ }
229
+
230
+ /* Estilo para inputs desabilitados */
231
+ .semantic-input:disabled {
232
+ background-color: #f9f9f9;
233
+ color: #b3b3b3;
234
+ border-color: #ddd;
235
+ cursor: not-allowed;
236
+ }