otimus-library 0.3.47 → 0.3.49

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