otimus-library 0.2.50 → 0.2.52

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 (57) 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 +9 -7
  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 +7 -4
  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 +62 -57
  36. package/fesm2022/otimus-library.mjs.map +1 -1
  37. package/lib/components/oc-key-value/oc-key-value.component.d.ts +3 -1
  38. package/lib/components/oc-tabs/oc-tabs.component.d.ts +1 -1
  39. package/lib/components/oc-toggle/oc-toggle.component.d.ts +2 -1
  40. package/package.json +1 -1
  41. package/styles/colors.scss +70 -70
  42. package/styles/components/buttons/buttons.scss +225 -225
  43. package/styles/components/buttons/buttons.shui.scss +61 -61
  44. package/styles/components/index.scss +2 -2
  45. package/styles/components/inputs/inputs.scss +248 -248
  46. package/styles/components/inputs/inputs.shui.scss +212 -212
  47. package/styles/components/table/table.scss +69 -69
  48. package/styles/components/table/table.shui.scss +50 -50
  49. package/styles/components/tooltip.scss +26 -26
  50. package/styles/grid.scss +1122 -1122
  51. package/styles/patterns/shui/colors.shui.scss +154 -154
  52. package/styles/patterns/shui/fonts.shui.scss +65 -65
  53. package/styles/patterns/shui/index.shui.scss +24 -24
  54. package/styles/patterns/shui/variables.shui.scss +22 -22
  55. package/styles/states.scss +5 -5
  56. package/styles/styles.scss +46 -46
  57. package/styles/variables.scss +47 -47
@@ -1,213 +1,213 @@
1
- @use '../../variables.scss';
2
-
3
- .shui-input-box.prefix {
4
- .material-symbols-outlined{
5
- position: absolute;
6
- left: 0;
7
- font-size: 1.5rem;
8
- user-select: none;
9
- }
10
- }
11
- .shui-input-box.suffix {
12
- .material-symbols-outlined, .oc.suffix{
13
- position: absolute;
14
- right: 0;
15
- font-size: 1.5rem;
16
- user-select: none;
17
- }
18
- }
19
-
20
- .shui-input-box {
21
- position: relative;
22
- margin-top: .5rem;
23
-
24
- select * {
25
- background-color: variables.$color-shui-base-1;
26
- }
27
-
28
- label {
29
- position: absolute;
30
- left: 0;
31
- top: 0;
32
- padding: 0.5rem 0.7rem;
33
- font-size: 0.85rem;
34
- color: variables.$color-shui-ui-1;
35
- pointer-events: none;
36
- transition: 0.3s ease;
37
- border-radius: 0.5rem;
38
- white-space: nowrap
39
- }
40
-
41
-
42
- &.prefix {
43
- z-index: 5;
44
- .material-symbols-outlined,.oc.suffix{
45
- padding: .5rem .7rem;
46
- }
47
- input{
48
- padding-left: 1.75rem;
49
- }
50
- label{
51
- padding: .7rem 2.5rem;
52
- }
53
- }
54
-
55
- &.suffix {
56
- z-index: 5;
57
- .material-symbols-outlined,.oc.suffix {
58
- padding: .5rem .7rem;
59
- }
60
- input{
61
- padding-right: 1.75rem;
62
- }
63
- label{
64
- padding: .7rem 0.7rem;
65
- }
66
- }
67
-
68
- input, textarea, select {
69
- font-size: 1rem;
70
- background-color: variables.$color-shui-base-1;
71
- border: none;
72
- outline: none;
73
- padding: 1rem 0.9rem;
74
- padding-bottom: 0.2rem;
75
- width: 100%;
76
- transition: 0.3s ease;
77
- color: variables.$color-shui-ui-1;
78
- font-weight: 400;
79
- height: 41px;
80
- min-width: 100%;
81
- }
82
- textarea{
83
- height: inherit;
84
- padding-top: 20px;
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: translateX(0.45rem);
94
- background-color: variables.$color-shui-base-1;
95
- width: 95%;
96
- padding: 1px 7px;
97
- padding-bottom: 0;
98
- font-size: 0.7rem;
99
- font-weight: 500;
100
- }
101
-
102
- input:focus ~ label,
103
- textarea:focus ~ label,
104
- select:valid ~ label,
105
- select:focus ~ label {
106
- color: variables.$color-shui-ui-8;
107
- }
108
- }
109
-
110
- .shui-input-box::before {
111
- display: block;
112
- content: '';
113
- position: absolute;
114
- bottom: 0;
115
- height: 1px;
116
- width: 100%;
117
- background-color: variables.$color-shui-ui-5;
118
-
119
- transition: 0.4s ease;
120
-
121
- width: 0;
122
- background-color: variables.$color-shui-ui-8;
123
- }
124
- .shui-input-box:focus-within::before {
125
- width: 100%;
126
- }
127
-
128
-
129
- .error {
130
- input, textarea, select {
131
- border: 1px solid variables.$color-shui-functional-red;
132
- box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
133
- }
134
-
135
- &::before {
136
- width: 0 !important;
137
- }
138
-
139
- small, label {
140
- color: variables.$color-error !important;
141
- font-weight: 600;
142
- }
143
- }
144
-
145
- .shui-input-box.small{
146
- input, textarea, select {
147
- max-height: 36px;
148
- padding-top: 1rem;
149
- }
150
-
151
- &.prefix {
152
- z-index: 5;
153
- .material-symbols-outlined{
154
- padding: .35rem .7rem;
155
- font-size: 1.25rem;
156
- color: variables.$color-shui-ui-8;
157
- }
158
- label{
159
- padding: .45rem 2.5rem;
160
- }
161
- }
162
-
163
- &.suffix {
164
- z-index: 5;
165
- .material-symbols-outlined {
166
- padding: .35rem .7rem;
167
- color: variables.$color-shui-ui-8;
168
- }
169
- label{
170
- padding: .45rem 0.7rem;
171
- }
172
- }
173
- }
174
-
175
- .shui-input-box.large {
176
- input, textarea, select {
177
- height: 46px;
178
- }
179
-
180
- label {
181
- padding: 1rem 0.7rem;
182
- }
183
-
184
- &.prefix {
185
- z-index: 5;
186
- .material-symbols-outlined{
187
- padding: 1rem .7rem;
188
- }
189
- input{
190
- padding-left: 2.5rem;
191
- }
192
- label{
193
- padding: 1.1rem 2.5rem;
194
- }
195
- }
196
-
197
- &.suffix {
198
- z-index: 5;
199
- .material-symbols-outlined {
200
- padding: .9rem .7rem;
201
- }
202
- input{
203
- padding-right: 2.5rem;
204
- }
205
- label{
206
- padding: 1.1rem 0.7rem;
207
- }
208
- }
209
- }
210
-
211
- .oc.suffix, .oc.prefix, .material-symbols-outlined {
212
- z-index: 5 !important;
1
+ @use '../../variables.scss';
2
+
3
+ .shui-input-box.prefix {
4
+ .material-symbols-outlined{
5
+ position: absolute;
6
+ left: 0;
7
+ font-size: 1.5rem;
8
+ user-select: none;
9
+ }
10
+ }
11
+ .shui-input-box.suffix {
12
+ .material-symbols-outlined, .oc.suffix{
13
+ position: absolute;
14
+ right: 0;
15
+ font-size: 1.5rem;
16
+ user-select: none;
17
+ }
18
+ }
19
+
20
+ .shui-input-box {
21
+ position: relative;
22
+ margin-top: .5rem;
23
+
24
+ select * {
25
+ background-color: variables.$color-shui-base-1;
26
+ }
27
+
28
+ label {
29
+ position: absolute;
30
+ left: 0;
31
+ top: 0;
32
+ padding: 0.5rem 0.7rem;
33
+ font-size: 0.85rem;
34
+ color: variables.$color-shui-ui-1;
35
+ pointer-events: none;
36
+ transition: 0.3s ease;
37
+ border-radius: 0.5rem;
38
+ white-space: nowrap
39
+ }
40
+
41
+
42
+ &.prefix {
43
+ z-index: 5;
44
+ .material-symbols-outlined,.oc.suffix{
45
+ padding: .5rem .7rem;
46
+ }
47
+ input{
48
+ padding-left: 1.75rem;
49
+ }
50
+ label{
51
+ padding: .7rem 2.5rem;
52
+ }
53
+ }
54
+
55
+ &.suffix {
56
+ z-index: 5;
57
+ .material-symbols-outlined,.oc.suffix {
58
+ padding: .5rem .7rem;
59
+ }
60
+ input{
61
+ padding-right: 1.75rem;
62
+ }
63
+ label{
64
+ padding: .7rem 0.7rem;
65
+ }
66
+ }
67
+
68
+ input, textarea, select {
69
+ font-size: 1rem;
70
+ background-color: variables.$color-shui-base-1;
71
+ border: none;
72
+ outline: none;
73
+ padding: 1rem 0.9rem;
74
+ padding-bottom: 0.2rem;
75
+ width: 100%;
76
+ transition: 0.3s ease;
77
+ color: variables.$color-shui-ui-1;
78
+ font-weight: 400;
79
+ height: 41px;
80
+ min-width: 100%;
81
+ }
82
+ textarea{
83
+ height: inherit;
84
+ padding-top: 20px;
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: translateX(0.45rem);
94
+ background-color: variables.$color-shui-base-1;
95
+ width: 95%;
96
+ padding: 1px 7px;
97
+ padding-bottom: 0;
98
+ font-size: 0.7rem;
99
+ font-weight: 500;
100
+ }
101
+
102
+ input:focus ~ label,
103
+ textarea:focus ~ label,
104
+ select:valid ~ label,
105
+ select:focus ~ label {
106
+ color: variables.$color-shui-ui-8;
107
+ }
108
+ }
109
+
110
+ .shui-input-box::before {
111
+ display: block;
112
+ content: '';
113
+ position: absolute;
114
+ bottom: 0;
115
+ height: 1px;
116
+ width: 100%;
117
+ background-color: variables.$color-shui-ui-5;
118
+
119
+ transition: 0.4s ease;
120
+
121
+ width: 0;
122
+ background-color: variables.$color-shui-ui-8;
123
+ }
124
+ .shui-input-box:focus-within::before {
125
+ width: 100%;
126
+ }
127
+
128
+
129
+ .error {
130
+ input, textarea, select {
131
+ border: 1px solid variables.$color-shui-functional-red;
132
+ box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
133
+ }
134
+
135
+ &::before {
136
+ width: 0 !important;
137
+ }
138
+
139
+ small, label {
140
+ color: variables.$color-error !important;
141
+ font-weight: 600;
142
+ }
143
+ }
144
+
145
+ .shui-input-box.small{
146
+ input, textarea, select {
147
+ max-height: 36px;
148
+ padding-top: 1rem;
149
+ }
150
+
151
+ &.prefix {
152
+ z-index: 5;
153
+ .material-symbols-outlined{
154
+ padding: .35rem .7rem;
155
+ font-size: 1.25rem;
156
+ color: variables.$color-shui-ui-8;
157
+ }
158
+ label{
159
+ padding: .45rem 2.5rem;
160
+ }
161
+ }
162
+
163
+ &.suffix {
164
+ z-index: 5;
165
+ .material-symbols-outlined {
166
+ padding: .35rem .7rem;
167
+ color: variables.$color-shui-ui-8;
168
+ }
169
+ label{
170
+ padding: .45rem 0.7rem;
171
+ }
172
+ }
173
+ }
174
+
175
+ .shui-input-box.large {
176
+ input, textarea, select {
177
+ height: 46px;
178
+ }
179
+
180
+ label {
181
+ padding: 1rem 0.7rem;
182
+ }
183
+
184
+ &.prefix {
185
+ z-index: 5;
186
+ .material-symbols-outlined{
187
+ padding: 1rem .7rem;
188
+ }
189
+ input{
190
+ padding-left: 2.5rem;
191
+ }
192
+ label{
193
+ padding: 1.1rem 2.5rem;
194
+ }
195
+ }
196
+
197
+ &.suffix {
198
+ z-index: 5;
199
+ .material-symbols-outlined {
200
+ padding: .9rem .7rem;
201
+ }
202
+ input{
203
+ padding-right: 2.5rem;
204
+ }
205
+ label{
206
+ padding: 1.1rem 0.7rem;
207
+ }
208
+ }
209
+ }
210
+
211
+ .oc.suffix, .oc.prefix, .material-symbols-outlined {
212
+ z-index: 5 !important;
213
213
  }
@@ -1,70 +1,70 @@
1
- @use '../../variables.scss';
2
-
3
- .oc.table {
4
- width: 100%;
5
- border-collapse: collapse;
6
- margin: 20px 0;
7
- font-size: 1em;
8
- font-family: 'Arial', sans-serif;
9
-
10
- thead {
11
- min-height: 50px ;
12
- height: 50px;
13
- }
14
-
15
- tr {
16
- background-color: white;
17
- transition: 0.1s ease;
18
- // border: 1px solid variables.$color-gray-6;
19
- border-top: 0;
20
- border-bottom: 0;
21
- }
22
- }
23
-
24
- .oc.table th, .oc.table td {
25
- padding: 13px 15px;
26
- text-align: left;
27
- }
28
-
29
- .oc.table th {
30
- background-color: variables.$color-gray-6;
31
- color: variables.$color-brand-p-1;
32
- font-weight: 600;
33
- }
34
-
35
- .oc.table.striped tr:nth-child(even) {
36
- background-color: rgba(variables.$color-gray-6, 0.5);
37
- }
38
-
39
- .oc.table td {
40
- border-bottom: 1px solid variables.$color-gray-5;
41
- }
42
-
43
- .oc.table th:first-child, .oc.table td:first-child {
44
- border-top-left-radius: 10px;
45
- }
46
-
47
- .oc.table th:last-child, .oc.table td:last-child {
48
- border-top-right-radius: 10px;
49
- }
50
-
51
- .oc.table th:first-child, .oc.table td:first-child {
52
- border-bottom-left-radius: 10px;
53
- }
54
-
55
- .oc.table th:last-child, .oc.table td:last-child {
56
- border-bottom-right-radius: 10px;
57
- }
58
-
59
- .oc.table tr:hover {
60
- background-color: #F5F5F5 !important;
61
- }
62
-
63
-
64
- .button-row {
65
- display: flex;
66
- justify-content: flex-end;
67
- gap: .75rem;
68
- }
69
-
1
+ @use '../../variables.scss';
2
+
3
+ .oc.table {
4
+ width: 100%;
5
+ border-collapse: collapse;
6
+ margin: 20px 0;
7
+ font-size: 1em;
8
+ font-family: 'Arial', sans-serif;
9
+
10
+ thead {
11
+ min-height: 50px ;
12
+ height: 50px;
13
+ }
14
+
15
+ tr {
16
+ background-color: white;
17
+ transition: 0.1s ease;
18
+ // border: 1px solid variables.$color-gray-6;
19
+ border-top: 0;
20
+ border-bottom: 0;
21
+ }
22
+ }
23
+
24
+ .oc.table th, .oc.table td {
25
+ padding: 13px 15px;
26
+ text-align: left;
27
+ }
28
+
29
+ .oc.table th {
30
+ background-color: variables.$color-gray-6;
31
+ color: variables.$color-brand-p-1;
32
+ font-weight: 600;
33
+ }
34
+
35
+ .oc.table.striped tr:nth-child(even) {
36
+ background-color: rgba(variables.$color-gray-6, 0.5);
37
+ }
38
+
39
+ .oc.table td {
40
+ border-bottom: 1px solid variables.$color-gray-5;
41
+ }
42
+
43
+ .oc.table th:first-child, .oc.table td:first-child {
44
+ border-top-left-radius: 10px;
45
+ }
46
+
47
+ .oc.table th:last-child, .oc.table td:last-child {
48
+ border-top-right-radius: 10px;
49
+ }
50
+
51
+ .oc.table th:first-child, .oc.table td:first-child {
52
+ border-bottom-left-radius: 10px;
53
+ }
54
+
55
+ .oc.table th:last-child, .oc.table td:last-child {
56
+ border-bottom-right-radius: 10px;
57
+ }
58
+
59
+ .oc.table tr:hover {
60
+ background-color: #F5F5F5 !important;
61
+ }
62
+
63
+
64
+ .button-row {
65
+ display: flex;
66
+ justify-content: flex-end;
67
+ gap: .75rem;
68
+ }
69
+
70
70
  @import './table.shui.scss';
@@ -1,50 +1,50 @@
1
- @use '../../variables.scss';
2
-
3
- .shui .oc.table,
4
- .shui.oc.table {
5
- width: 100%;
6
- border-collapse: collapse;
7
- margin: 20px 0;
8
- font-size: 1em;
9
- font-family: 'Arial', sans-serif;
10
-
11
- thead {
12
- min-height: 50px;
13
- height: 50px;
14
- }
15
-
16
- tr {
17
- background-color: white;
18
- transition: 0.1s ease;
19
- border: none;
20
- border-top: 0;
21
- border-bottom: 0;
22
-
23
- &:hover {
24
- background-color: #F5F5F5 !important;
25
- }
26
-
27
- }
28
-
29
- th, td {
30
- padding: 15px;
31
- text-align: left;
32
- }
33
-
34
- th {
35
- background-color: transparent;
36
- border-bottom: 1px solid rgba(variables.$color-shui-ui-5, 0.75);
37
- color: variables.$color-shui-ui-1;
38
- font-weight: 600;
39
- padding: 12px 15px;
40
- }
41
-
42
- td {
43
- border-bottom: 1px solid rgba(variables.$color-shui-ui-6, 0.5);
44
- font-size: 0.9rem;
45
- }
46
-
47
- &.striped tr:nth-child(even) {
48
- background-color: white;
49
- }
50
- }
1
+ @use '../../variables.scss';
2
+
3
+ .shui .oc.table,
4
+ .shui.oc.table {
5
+ width: 100%;
6
+ border-collapse: collapse;
7
+ margin: 20px 0;
8
+ font-size: 1em;
9
+ font-family: 'Arial', sans-serif;
10
+
11
+ thead {
12
+ min-height: 50px;
13
+ height: 50px;
14
+ }
15
+
16
+ tr {
17
+ background-color: white;
18
+ transition: 0.1s ease;
19
+ border: none;
20
+ border-top: 0;
21
+ border-bottom: 0;
22
+
23
+ &:hover {
24
+ background-color: #F5F5F5 !important;
25
+ }
26
+
27
+ }
28
+
29
+ th, td {
30
+ padding: 15px;
31
+ text-align: left;
32
+ }
33
+
34
+ th {
35
+ background-color: transparent;
36
+ border-bottom: 1px solid rgba(variables.$color-shui-ui-5, 0.75);
37
+ color: variables.$color-shui-ui-1;
38
+ font-weight: 600;
39
+ padding: 12px 15px;
40
+ }
41
+
42
+ td {
43
+ border-bottom: 1px solid rgba(variables.$color-shui-ui-6, 0.5);
44
+ font-size: 0.9rem;
45
+ }
46
+
47
+ &.striped tr:nth-child(even) {
48
+ background-color: white;
49
+ }
50
+ }