@idds/styles 1.0.56 → 1.0.58
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.
- package/package.json +1 -1
- package/src/components/date-picker.css +13 -16
- package/src/components/file-upload.css +2 -2
- package/src/components/one-time-password.css +9 -3
- package/src/components/pagination.css +20 -9
- package/src/components/radio-input.css +0 -2
- package/src/components/toggle.css +12 -19
package/package.json
CHANGED
|
@@ -363,21 +363,6 @@
|
|
|
363
363
|
justify-content: center;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
.ina-date-picker__today-label {
|
|
367
|
-
font-size: 8px;
|
|
368
|
-
font-weight: var(--ina-font-normal);
|
|
369
|
-
color: var(--ina-content-primary);
|
|
370
|
-
line-height: 1;
|
|
371
|
-
margin-bottom: 2px;
|
|
372
|
-
position: absolute;
|
|
373
|
-
top: -10px;
|
|
374
|
-
white-space: nowrap;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.ina-date-picker__today-label--selected {
|
|
378
|
-
color: var(--ina-neutral-25, #ffffff);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
366
|
.ina-date-picker__day {
|
|
382
367
|
display: flex;
|
|
383
368
|
align-items: center;
|
|
@@ -455,7 +440,19 @@
|
|
|
455
440
|
}
|
|
456
441
|
|
|
457
442
|
.ina-date-picker__day--today {
|
|
458
|
-
|
|
443
|
+
position: relative;
|
|
444
|
+
}
|
|
445
|
+
.ina-date-picker__today-label {
|
|
446
|
+
position: absolute;
|
|
447
|
+
top: 0;
|
|
448
|
+
left: 0;
|
|
449
|
+
right: 0;
|
|
450
|
+
color: var(--ina-content-primary);
|
|
451
|
+
font-size: var(--ina-font-3xs, 8px);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.ina-date-picker__today-label--selected {
|
|
455
|
+
color: var(--ina-white);
|
|
459
456
|
}
|
|
460
457
|
|
|
461
458
|
.ina-date-picker__day--other-month {
|
|
@@ -108,11 +108,11 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.ina-file-upload__button:hover:not(:disabled) {
|
|
111
|
-
background-color: var(--ina-
|
|
111
|
+
background-color: var(--ina-background-secondary);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.ina-file-upload__button:disabled {
|
|
115
|
-
opacity: 0.
|
|
115
|
+
opacity: 0.8;
|
|
116
116
|
cursor: not-allowed;
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
.ina-one-time-password {
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
|
+
border-radius: var(--ina-rounded-lg, 8px);
|
|
8
|
+
background-color: var(--ina-background-primary);
|
|
9
|
+
width: max-content;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
/* Title */
|
|
@@ -33,12 +36,11 @@
|
|
|
33
36
|
/* Individual input field */
|
|
34
37
|
.ina-one-time-password__input {
|
|
35
38
|
flex: 0 0 auto;
|
|
36
|
-
width:
|
|
39
|
+
width: 44px; /* Auto width based on content */
|
|
37
40
|
height: 44px;
|
|
38
41
|
border: 1px solid var(--ina-stroke-primary);
|
|
39
42
|
border-radius: var(--ina-rounded-lg, 8px);
|
|
40
43
|
background-color: var(--ina-background-primary);
|
|
41
|
-
padding: 0 16px;
|
|
42
44
|
font-size: 24px;
|
|
43
45
|
font-weight: 500;
|
|
44
46
|
color: var(--ina-content-primary);
|
|
@@ -93,6 +95,11 @@
|
|
|
93
95
|
color: var(--ina-content-primary);
|
|
94
96
|
}
|
|
95
97
|
|
|
98
|
+
/* Helper text error state */
|
|
99
|
+
.ina-one-time-password__helper-text--error {
|
|
100
|
+
color: var(--ina-negative-500);
|
|
101
|
+
}
|
|
102
|
+
|
|
96
103
|
/* Responsive adjustments */
|
|
97
104
|
@media (max-width: 640px) {
|
|
98
105
|
.ina-one-time-password {
|
|
@@ -110,4 +117,3 @@
|
|
|
110
117
|
gap: 12px;
|
|
111
118
|
}
|
|
112
119
|
}
|
|
113
|
-
|
|
@@ -14,8 +14,14 @@
|
|
|
14
14
|
font-size: var(--ina-font-xs);
|
|
15
15
|
font-weight: var(--ina-font-normal);
|
|
16
16
|
}
|
|
17
|
+
.ina-pagination__page-size-container {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
.ina-pagination__page-info {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
17
23
|
|
|
18
|
-
@media (min-width:
|
|
24
|
+
@media (min-width: 768px) {
|
|
19
25
|
.ina-pagination {
|
|
20
26
|
flex-direction: row-reverse;
|
|
21
27
|
align-items: center;
|
|
@@ -24,6 +30,12 @@
|
|
|
24
30
|
font-size: var(--ina-font-sm);
|
|
25
31
|
font-weight: var(--ina-font-medium);
|
|
26
32
|
}
|
|
33
|
+
.ina-pagination__page-size-container {
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
.ina-pagination__page-info {
|
|
37
|
+
display: block;
|
|
38
|
+
}
|
|
27
39
|
}
|
|
28
40
|
|
|
29
41
|
/* Full width layout (untuk Table) */
|
|
@@ -34,7 +46,7 @@
|
|
|
34
46
|
gap: 12px; /* 12px gap antara nav container dan page size container */
|
|
35
47
|
}
|
|
36
48
|
|
|
37
|
-
@media (min-width:
|
|
49
|
+
@media (min-width: 768px) {
|
|
38
50
|
.ina-pagination--full-width {
|
|
39
51
|
flex-direction: row;
|
|
40
52
|
align-items: center;
|
|
@@ -51,7 +63,7 @@
|
|
|
51
63
|
gap: var(--ina-spacing-2);
|
|
52
64
|
}
|
|
53
65
|
|
|
54
|
-
@media (min-width:
|
|
66
|
+
@media (min-width: 768px) {
|
|
55
67
|
.ina-pagination__nav-container {
|
|
56
68
|
flex-direction: row;
|
|
57
69
|
align-items: center;
|
|
@@ -82,7 +94,6 @@
|
|
|
82
94
|
min-width: 24px;
|
|
83
95
|
min-height: 24px;
|
|
84
96
|
padding: 0 var(--ina-spacing-0-5);
|
|
85
|
-
border: 1px solid var(--ina-stroke-primary);
|
|
86
97
|
border-radius: var(--ina-radius-md);
|
|
87
98
|
cursor: pointer;
|
|
88
99
|
user-select: none;
|
|
@@ -92,7 +103,7 @@
|
|
|
92
103
|
color var(--ina-transition-base);
|
|
93
104
|
}
|
|
94
105
|
|
|
95
|
-
@media (min-width:
|
|
106
|
+
@media (min-width: 768px) {
|
|
96
107
|
.ina-pagination__nav-button {
|
|
97
108
|
min-width: 32px;
|
|
98
109
|
min-height: 32px;
|
|
@@ -149,7 +160,7 @@
|
|
|
149
160
|
color var(--ina-transition-base);
|
|
150
161
|
}
|
|
151
162
|
|
|
152
|
-
@media (min-width:
|
|
163
|
+
@media (min-width: 768px) {
|
|
153
164
|
.ina-pagination__page-button {
|
|
154
165
|
min-width: 32px;
|
|
155
166
|
min-height: 32px;
|
|
@@ -201,7 +212,7 @@
|
|
|
201
212
|
margin-top: var(--ina-spacing-2);
|
|
202
213
|
}
|
|
203
214
|
|
|
204
|
-
@media (min-width:
|
|
215
|
+
@media (min-width: 768px) {
|
|
205
216
|
.ina-pagination__page-size-container {
|
|
206
217
|
margin-top: 0;
|
|
207
218
|
margin-right: var(--ina-spacing-12);
|
|
@@ -215,7 +226,7 @@
|
|
|
215
226
|
order: 2; /* Di bawah nav container pada mobile */
|
|
216
227
|
}
|
|
217
228
|
|
|
218
|
-
@media (min-width:
|
|
229
|
+
@media (min-width: 768px) {
|
|
219
230
|
.ina-pagination--full-width .ina-pagination__page-size-container {
|
|
220
231
|
order: 1; /* Di kiri pada desktop */
|
|
221
232
|
margin-right: 0;
|
|
@@ -227,7 +238,7 @@
|
|
|
227
238
|
order: 1; /* Di atas page size container pada mobile */
|
|
228
239
|
}
|
|
229
240
|
|
|
230
|
-
@media (min-width:
|
|
241
|
+
@media (min-width: 768px) {
|
|
231
242
|
.ina-pagination--full-width .ina-pagination__nav-container {
|
|
232
243
|
order: 2; /* Di kanan pada desktop */
|
|
233
244
|
}
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
|
|
43
43
|
.ina-radio-input__option--disabled {
|
|
44
44
|
cursor: not-allowed;
|
|
45
|
-
opacity: 0.6;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
.ina-radio-input__option--disabled:hover {
|
|
@@ -211,7 +210,6 @@
|
|
|
211
210
|
|
|
212
211
|
/* Loading state */
|
|
213
212
|
.ina-radio-input--loading .ina-radio-input__option {
|
|
214
|
-
opacity: 0.6;
|
|
215
213
|
cursor: not-allowed;
|
|
216
214
|
}
|
|
217
215
|
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
.ina-toggle--disabled {
|
|
14
14
|
cursor: not-allowed;
|
|
15
|
-
opacity: 0.6;
|
|
16
|
-
background-color: var(--ina-background-tertiary) !important;
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
/* Hide the actual input */
|
|
@@ -46,12 +44,12 @@
|
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
.ina-toggle__track--disabled {
|
|
49
|
-
background-color: var(--ina-
|
|
47
|
+
background-color: var(--ina-background-tertiary);
|
|
50
48
|
cursor: not-allowed;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
.ina-toggle__track--disabled.ina-toggle__track--checked {
|
|
54
|
-
background-color: var(--ina-
|
|
52
|
+
background-color: var(--ina-background-tertiary);
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
/* Thumb (the sliding circle) */
|
|
@@ -62,6 +60,8 @@
|
|
|
62
60
|
transition: all var(--ina-transition-duration-200) ease-in-out;
|
|
63
61
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
64
62
|
transform: translateX(0);
|
|
63
|
+
filter: drop-shadow(0 1px 2px rgba(10, 13, 18, 0.06))
|
|
64
|
+
drop-shadow(0 1px 3px rgba(10, 13, 18, 0.1));
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.ina-toggle__thumb--checked {
|
|
@@ -110,15 +110,11 @@
|
|
|
110
110
|
|
|
111
111
|
/* Hover states */
|
|
112
112
|
.ina-toggle:not(.ina-toggle--disabled):hover .ina-toggle__track {
|
|
113
|
-
background-color: var(--ina-
|
|
113
|
+
background-color: var(--ina-background-secondary);
|
|
114
114
|
box-shadow: 0 0 6px 0 rgba(31, 31, 31, 0.1),
|
|
115
115
|
0 0 4px 6px rgba(31, 31, 31, 0.04);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
.ina-toggle:not(.ina-toggle--disabled):hover .ina-toggle__track--checked {
|
|
119
|
-
background-color: var(--ina-primary-600);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
118
|
.ina-toggle:not(.ina-toggle--disabled):hover .ina-toggle__thumb {
|
|
123
119
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
124
120
|
box-shadow: 0 0 6px 0 rgba(31, 31, 31, 0.1),
|
|
@@ -129,6 +125,8 @@
|
|
|
129
125
|
.ina-toggle__input:focus + .ina-toggle__track {
|
|
130
126
|
outline: 2px solid var(--ina-positive-500);
|
|
131
127
|
outline-offset: 2px;
|
|
128
|
+
box-shadow: 0 0 6px 0 rgba(31, 31, 31, 0.1),
|
|
129
|
+
0 0 4px 6px rgba(31, 31, 31, 0.04);
|
|
132
130
|
}
|
|
133
131
|
|
|
134
132
|
.ina-toggle__input:focus:not(:focus-visible) + .ina-toggle__track {
|
|
@@ -161,11 +159,11 @@
|
|
|
161
159
|
}
|
|
162
160
|
|
|
163
161
|
[data-theme='dark'] .ina-toggle__track--disabled {
|
|
164
|
-
background-color: var(--ina-
|
|
162
|
+
background-color: var(--ina-background-tertiary);
|
|
165
163
|
}
|
|
166
164
|
|
|
167
165
|
[data-theme='dark'] .ina-toggle__track--disabled.ina-toggle__track--checked {
|
|
168
|
-
background-color: var(--ina-
|
|
166
|
+
background-color: var(--ina-background-tertiary);
|
|
169
167
|
}
|
|
170
168
|
|
|
171
169
|
[data-theme='dark'] .ina-toggle__thumb {
|
|
@@ -181,13 +179,7 @@
|
|
|
181
179
|
[data-theme='dark']
|
|
182
180
|
.ina-toggle:not(.ina-toggle--disabled):hover
|
|
183
181
|
.ina-toggle__track {
|
|
184
|
-
background-color: var(--ina-
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
[data-theme='dark']
|
|
188
|
-
.ina-toggle:not(.ina-toggle--disabled):hover
|
|
189
|
-
.ina-toggle__track--checked {
|
|
190
|
-
background-color: var(--ina-primary-600);
|
|
182
|
+
background-color: var(--ina-background-secondary);
|
|
191
183
|
}
|
|
192
184
|
|
|
193
185
|
[data-theme='dark']
|
|
@@ -197,7 +189,8 @@
|
|
|
197
189
|
}
|
|
198
190
|
|
|
199
191
|
[data-theme='dark'] .ina-toggle__input:focus + .ina-toggle__track {
|
|
200
|
-
|
|
192
|
+
box-shadow: 0 0 6px 0 rgba(31, 31, 31, 0.1),
|
|
193
|
+
0 0 4px 6px rgba(31, 31, 31, 0.04);
|
|
201
194
|
}
|
|
202
195
|
|
|
203
196
|
/* Reduced motion */
|