otimus-library 0.2.1 → 0.2.2

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 +195 -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,195 +1,195 @@
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
- .material-symbols-outlined,.oc.suffix{
44
- padding: .5rem .7rem;
45
- }
46
- input{
47
- padding-left: 1.75rem;
48
- }
49
- label{
50
- padding: .7rem 2.5rem;
51
- }
52
- }
53
-
54
- &.suffix {
55
- .material-symbols-outlined,.oc.suffix {
56
- padding: .5rem .7rem;
57
- }
58
- input{
59
- padding-right: 1.75rem;
60
- }
61
- label{
62
- padding: .7rem 0.7rem;
63
- }
64
- }
65
-
66
- input, textarea, select {
67
- font-size: 1rem;
68
- background-color: variables.$color-shui-base-1;
69
- border: none;
70
- outline: none;
71
- padding: 1rem 0.9rem;
72
- padding-bottom: 0.2rem;
73
- width: 100%;
74
- transition: 0.3s ease;
75
- color: variables.$color-shui-ui-1;
76
- font-weight: 400;
77
- height: 41px;
78
- }
79
-
80
- input:not(:placeholder-shown) ~ label,
81
- input:focus ~ label,
82
- textarea:not(:placeholder-shown) ~ label,
83
- textarea:focus ~ label,
84
- select:valid ~ label,
85
- select:focus ~ label {
86
- transform: translateX(0.45rem);
87
- padding: 1px 7px;
88
- font-size: 0.7rem;
89
- font-weight: 500;
90
- }
91
-
92
- input:focus ~ label,
93
- textarea:focus ~ label,
94
- select:valid ~ label,
95
- select:focus ~ label {
96
- color: variables.$color-shui-ui-8;
97
- }
98
- }
99
-
100
- .shui-input-box::before {
101
- display: block;
102
- content: '';
103
- position: absolute;
104
- bottom: 0;
105
- height: 1px;
106
- width: 100%;
107
- background-color: variables.$color-shui-ui-5;
108
-
109
- transition: 0.4s ease;
110
-
111
- width: 0;
112
- background-color: variables.$color-shui-ui-8;
113
- }
114
- .shui-input-box:focus-within::before {
115
- width: 100%;
116
- }
117
-
118
-
119
- .error {
120
- input, textarea, select {
121
- border: 1px solid variables.$color-shui-functional-red;
122
- box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
123
- }
124
-
125
- &::before {
126
- width: 0 !important;
127
- }
128
-
129
- small, label {
130
- color: variables.$color-error !important;
131
- font-weight: 600;
132
- }
133
- }
134
-
135
- .shui-input-box.small{
136
- input, textarea, select {
137
- max-height: 36px;
138
- padding-top: 1rem;
139
- }
140
-
141
- &.prefix {
142
- .material-symbols-outlined{
143
- padding: .35rem .7rem;
144
- font-size: 1.25rem;
145
- color: variables.$color-shui-ui-8;
146
- }
147
- label{
148
- padding: .45rem 2.5rem;
149
- }
150
- }
151
-
152
- &.suffix {
153
- .material-symbols-outlined {
154
- padding: .35rem .7rem;
155
- color: variables.$color-shui-ui-8;
156
- }
157
- label{
158
- padding: .45rem 0.7rem;
159
- }
160
- }
161
- }
162
-
163
- .shui-input-box.large {
164
- input, textarea, select {
165
- height: 46px;
166
- }
167
-
168
- label {
169
- padding: 1rem 0.7rem;
170
- }
171
-
172
- &.prefix {
173
- .material-symbols-outlined{
174
- padding: 1rem .7rem;
175
- }
176
- input{
177
- padding-left: 2.5rem;
178
- }
179
- label{
180
- padding: 1.1rem 2.5rem;
181
- }
182
- }
183
-
184
- &.suffix {
185
- .material-symbols-outlined {
186
- padding: .9rem .7rem;
187
- }
188
- input{
189
- padding-right: 2.5rem;
190
- }
191
- label{
192
- padding: 1.1rem 0.7rem;
193
- }
194
- }
195
- }
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
+ .material-symbols-outlined,.oc.suffix{
44
+ padding: .5rem .7rem;
45
+ }
46
+ input{
47
+ padding-left: 1.75rem;
48
+ }
49
+ label{
50
+ padding: .7rem 2.5rem;
51
+ }
52
+ }
53
+
54
+ &.suffix {
55
+ .material-symbols-outlined,.oc.suffix {
56
+ padding: .5rem .7rem;
57
+ }
58
+ input{
59
+ padding-right: 1.75rem;
60
+ }
61
+ label{
62
+ padding: .7rem 0.7rem;
63
+ }
64
+ }
65
+
66
+ input, textarea, select {
67
+ font-size: 1rem;
68
+ background-color: variables.$color-shui-base-1;
69
+ border: none;
70
+ outline: none;
71
+ padding: 1rem 0.9rem;
72
+ padding-bottom: 0.2rem;
73
+ width: 100%;
74
+ transition: 0.3s ease;
75
+ color: variables.$color-shui-ui-1;
76
+ font-weight: 400;
77
+ height: 41px;
78
+ }
79
+
80
+ input:not(:placeholder-shown) ~ label,
81
+ input:focus ~ label,
82
+ textarea:not(:placeholder-shown) ~ label,
83
+ textarea:focus ~ label,
84
+ select:valid ~ label,
85
+ select:focus ~ label {
86
+ transform: translateX(0.45rem);
87
+ padding: 1px 7px;
88
+ font-size: 0.7rem;
89
+ font-weight: 500;
90
+ }
91
+
92
+ input:focus ~ label,
93
+ textarea:focus ~ label,
94
+ select:valid ~ label,
95
+ select:focus ~ label {
96
+ color: variables.$color-shui-ui-8;
97
+ }
98
+ }
99
+
100
+ .shui-input-box::before {
101
+ display: block;
102
+ content: '';
103
+ position: absolute;
104
+ bottom: 0;
105
+ height: 1px;
106
+ width: 100%;
107
+ background-color: variables.$color-shui-ui-5;
108
+
109
+ transition: 0.4s ease;
110
+
111
+ width: 0;
112
+ background-color: variables.$color-shui-ui-8;
113
+ }
114
+ .shui-input-box:focus-within::before {
115
+ width: 100%;
116
+ }
117
+
118
+
119
+ .error {
120
+ input, textarea, select {
121
+ border: 1px solid variables.$color-shui-functional-red;
122
+ box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
123
+ }
124
+
125
+ &::before {
126
+ width: 0 !important;
127
+ }
128
+
129
+ small, label {
130
+ color: variables.$color-error !important;
131
+ font-weight: 600;
132
+ }
133
+ }
134
+
135
+ .shui-input-box.small{
136
+ input, textarea, select {
137
+ max-height: 36px;
138
+ padding-top: 1rem;
139
+ }
140
+
141
+ &.prefix {
142
+ .material-symbols-outlined{
143
+ padding: .35rem .7rem;
144
+ font-size: 1.25rem;
145
+ color: variables.$color-shui-ui-8;
146
+ }
147
+ label{
148
+ padding: .45rem 2.5rem;
149
+ }
150
+ }
151
+
152
+ &.suffix {
153
+ .material-symbols-outlined {
154
+ padding: .35rem .7rem;
155
+ color: variables.$color-shui-ui-8;
156
+ }
157
+ label{
158
+ padding: .45rem 0.7rem;
159
+ }
160
+ }
161
+ }
162
+
163
+ .shui-input-box.large {
164
+ input, textarea, select {
165
+ height: 46px;
166
+ }
167
+
168
+ label {
169
+ padding: 1rem 0.7rem;
170
+ }
171
+
172
+ &.prefix {
173
+ .material-symbols-outlined{
174
+ padding: 1rem .7rem;
175
+ }
176
+ input{
177
+ padding-left: 2.5rem;
178
+ }
179
+ label{
180
+ padding: 1.1rem 2.5rem;
181
+ }
182
+ }
183
+
184
+ &.suffix {
185
+ .material-symbols-outlined {
186
+ padding: .9rem .7rem;
187
+ }
188
+ input{
189
+ padding-right: 2.5rem;
190
+ }
191
+ label{
192
+ padding: 1.1rem 0.7rem;
193
+ }
194
+ }
195
+ }
@@ -1,69 +1,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
- filter: brightness(0.95);
61
- }
62
-
63
- .button-row {
64
- display: flex;
65
- justify-content: flex-end;
66
- gap: .75rem;
67
- }
68
-
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
+ filter: brightness(0.95);
61
+ }
62
+
63
+ .button-row {
64
+ display: flex;
65
+ justify-content: flex-end;
66
+ gap: .75rem;
67
+ }
68
+
69
69
  @import './table.shui.scss';
@@ -1,49 +1,49 @@
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
- filter: brightness(0.95);
25
- }
26
- }
27
-
28
- th, td {
29
- padding: 15px;
30
- text-align: left;
31
- }
32
-
33
- th {
34
- background-color: transparent;
35
- border-bottom: 1px solid rgba(variables.$color-shui-ui-5, 0.75);
36
- color: variables.$color-shui-ui-1;
37
- font-weight: 600;
38
- padding: 12px 15px;
39
- }
40
-
41
- td {
42
- border-bottom: 1px solid rgba(variables.$color-shui-ui-6, 0.5);
43
- font-size: 0.9rem;
44
- }
45
-
46
- &.striped tr:nth-child(even) {
47
- background-color: white;
48
- }
49
- }
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
+ filter: brightness(0.95);
25
+ }
26
+ }
27
+
28
+ th, td {
29
+ padding: 15px;
30
+ text-align: left;
31
+ }
32
+
33
+ th {
34
+ background-color: transparent;
35
+ border-bottom: 1px solid rgba(variables.$color-shui-ui-5, 0.75);
36
+ color: variables.$color-shui-ui-1;
37
+ font-weight: 600;
38
+ padding: 12px 15px;
39
+ }
40
+
41
+ td {
42
+ border-bottom: 1px solid rgba(variables.$color-shui-ui-6, 0.5);
43
+ font-size: 0.9rem;
44
+ }
45
+
46
+ &.striped tr:nth-child(even) {
47
+ background-color: white;
48
+ }
49
+ }
@@ -1,27 +1,27 @@
1
- .oc-tooltip {
2
- margin: 0;
3
- position: absolute;
4
- padding: 0.35rem 0.7rem;
5
- font-size: 0.9rem;
6
- font-weight: 500;
7
- background-color: #F8F9FF;
8
- border: 1px solid white;
9
- border-radius: 0.75rem;
10
- box-shadow: 0px 3px 6.5px 0px rgba(0, 0, 0, 0.20);
11
- transition: 0.15s ease;
12
- max-width: 400px;
13
- z-index: 1000;
14
- pointer-events: none;
15
- animation: show-up 0.15s ease;
16
- &.mouse-tracking {
17
- border-top-left-radius: 0;
18
- }
19
- }
20
-
21
- @keyframes show-up {
22
- from {
23
- opacity: 0;
24
- } to {
25
- opacity: 1;
26
- }
1
+ .oc-tooltip {
2
+ margin: 0;
3
+ position: absolute;
4
+ padding: 0.35rem 0.7rem;
5
+ font-size: 0.9rem;
6
+ font-weight: 500;
7
+ background-color: #F8F9FF;
8
+ border: 1px solid white;
9
+ border-radius: 0.75rem;
10
+ box-shadow: 0px 3px 6.5px 0px rgba(0, 0, 0, 0.20);
11
+ transition: 0.15s ease;
12
+ max-width: 400px;
13
+ z-index: 1000;
14
+ pointer-events: none;
15
+ animation: show-up 0.15s ease;
16
+ &.mouse-tracking {
17
+ border-top-left-radius: 0;
18
+ }
19
+ }
20
+
21
+ @keyframes show-up {
22
+ from {
23
+ opacity: 0;
24
+ } to {
25
+ opacity: 1;
26
+ }
27
27
  }