otimus-library 0.2.13 → 0.2.22

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