otimus-library 0.3.9 → 0.3.11

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,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,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';