@idds/styles 1.2.11 → 1.2.13
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/README.md +178 -42
- package/dist/base.css +1071 -0
- package/dist/base.min.css +1 -0
- package/dist/index.css +14801 -0
- package/dist/index.min.css +15 -0
- package/dist/tailwind/css/bgn.min.css +1 -0
- package/dist/tailwind/css/bkn.min.css +1 -0
- package/dist/tailwind/css/idds.min.css +1 -0
- package/dist/tailwind/css/inagov.min.css +1 -0
- package/dist/tailwind/css/inaku.min.css +1 -0
- package/dist/tailwind/css/inapas.min.css +1 -0
- package/dist/tailwind/css/lan.min.css +1 -0
- package/dist/tailwind/css/pan-rb.min.css +1 -0
- package/package.json +31 -21
- package/src/colors/brands/bgn.css +0 -30
- package/src/colors/brands/bkn.css +0 -33
- package/src/colors/brands/inagov.css +0 -40
- package/src/colors/brands/inaku.css +0 -29
- package/src/colors/brands/inapas.css +0 -29
- package/src/colors/brands/lan.css +0 -39
- package/src/colors/brands/pan-rb.css +0 -31
- package/src/colors/index.css +0 -11
- package/src/colors/primitives/index.css +0 -175
- package/src/colors/product/index.css +0 -205
- package/src/colors/utilities/index.css +0 -77
- package/src/components/accordion-card.css +0 -99
- package/src/components/accordion.css +0 -120
- package/src/components/action-dropdown.css +0 -140
- package/src/components/alert.css +0 -180
- package/src/components/avatar.css +0 -182
- package/src/components/badge.css +0 -247
- package/src/components/bottom-sheet.css +0 -61
- package/src/components/breadcrumb.css +0 -97
- package/src/components/button-group.css +0 -130
- package/src/components/button.css +0 -241
- package/src/components/card.css +0 -576
- package/src/components/carousel.css +0 -100
- package/src/components/chart.css +0 -81
- package/src/components/checkbox.css +0 -211
- package/src/components/chip.css +0 -245
- package/src/components/collapse.css +0 -84
- package/src/components/confirmation.css +0 -131
- package/src/components/date-picker.css +0 -1059
- package/src/components/divider.css +0 -174
- package/src/components/drawer.css +0 -752
- package/src/components/dropdown.css +0 -370
- package/src/components/field-input-table.css +0 -347
- package/src/components/file-upload.css +0 -333
- package/src/components/input-search.css +0 -428
- package/src/components/linear-progress-indicator.css +0 -34
- package/src/components/modal.css +0 -507
- package/src/components/month-picker.css +0 -326
- package/src/components/multiple-choice-grid.css +0 -383
- package/src/components/one-time-password.css +0 -119
- package/src/components/pagination.css +0 -429
- package/src/components/password-input.css +0 -477
- package/src/components/phone-input.css +0 -412
- package/src/components/progress-bar.css +0 -447
- package/src/components/radio-input.css +0 -277
- package/src/components/reset.css +0 -431
- package/src/components/select-dropdown.css +0 -663
- package/src/components/select-option.css +0 -217
- package/src/components/single-file-upload.css +0 -186
- package/src/components/skeleton.css +0 -488
- package/src/components/spinner.css +0 -450
- package/src/components/stepper.css +0 -260
- package/src/components/tab-horizontal.css +0 -278
- package/src/components/tab-vertical.css +0 -261
- package/src/components/table-progress-bar.css +0 -48
- package/src/components/table.css +0 -538
- package/src/components/text-area.css +0 -220
- package/src/components/text-field.css +0 -278
- package/src/components/theme-toggle.css +0 -259
- package/src/components/time-picker.css +0 -436
- package/src/components/toast.css +0 -265
- package/src/components/toggle.css +0 -195
- package/src/components/tooltip.css +0 -343
- package/src/components/year-picker.css +0 -424
- package/src/index.css +0 -3
- /package/{src → dist}/tailwind/css/bgn.css +0 -0
- /package/{src → dist}/tailwind/css/bkn.css +0 -0
- /package/{src → dist}/tailwind/css/idds.css +0 -0
- /package/{src → dist}/tailwind/css/inagov.css +0 -0
- /package/{src → dist}/tailwind/css/inaku.css +0 -0
- /package/{src → dist}/tailwind/css/inapas.css +0 -0
- /package/{src → dist}/tailwind/css/lan.css +0 -0
- /package/{src → dist}/tailwind/css/pan-rb.css +0 -0
- /package/{src → dist}/tailwind/ts/bgn.ts +0 -0
- /package/{src → dist}/tailwind/ts/bkn.ts +0 -0
- /package/{src → dist}/tailwind/ts/default.ts +0 -0
- /package/{src → dist}/tailwind/ts/idds.ts +0 -0
- /package/{src → dist}/tailwind/ts/inagov.ts +0 -0
- /package/{src → dist}/tailwind/ts/inaku.ts +0 -0
- /package/{src → dist}/tailwind/ts/inapas.ts +0 -0
- /package/{src → dist}/tailwind/ts/lan.ts +0 -0
- /package/{src → dist}/tailwind/ts/pan-rb.ts +0 -0
package/src/components/chart.css
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/* Chart Component Styles */
|
|
2
|
-
.ina-chart {
|
|
3
|
-
background: var(--ina-color-background);
|
|
4
|
-
border-radius: var(--ina-border-radius-md);
|
|
5
|
-
padding: var(--ina-spacing-md);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.ina-chart__title {
|
|
9
|
-
font-size: var(--ina-font-size-lg);
|
|
10
|
-
font-weight: var(--ina-font-weight-semibold);
|
|
11
|
-
color: var(--ina-color-text-primary);
|
|
12
|
-
margin-bottom: var(--ina-spacing-xs);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.ina-chart__subtitle {
|
|
16
|
-
font-size: var(--ina-font-size-sm);
|
|
17
|
-
color: var(--ina-color-text-secondary);
|
|
18
|
-
margin-bottom: var(--ina-spacing-md);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ina-chart__container {
|
|
22
|
-
position: relative;
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 300px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ina-chart__canvas {
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: 100%;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ina-chart__legend {
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-wrap: wrap;
|
|
35
|
-
gap: var(--ina-spacing-md);
|
|
36
|
-
margin-top: var(--ina-spacing-md);
|
|
37
|
-
padding-top: var(--ina-spacing-md);
|
|
38
|
-
border-top: 1px solid var(--ina-color-border);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.ina-chart__legend-item {
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
gap: var(--ina-spacing-xs);
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
padding: var(--ina-spacing-xs);
|
|
47
|
-
border-radius: var(--ina-border-radius-sm);
|
|
48
|
-
transition: background-color 0.2s ease;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.ina-chart__legend-item:hover {
|
|
52
|
-
background: var(--ina-color-surface);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ina-chart__legend-color {
|
|
56
|
-
width: 12px;
|
|
57
|
-
height: 12px;
|
|
58
|
-
border-radius: 2px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.ina-chart__legend-label {
|
|
62
|
-
font-size: var(--ina-font-size-sm);
|
|
63
|
-
color: var(--ina-color-text-primary);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.ina-chart__status {
|
|
67
|
-
margin-top: var(--ina-spacing-sm);
|
|
68
|
-
font-size: var(--ina-font-size-sm);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.ina-chart__status--success {
|
|
72
|
-
color: var(--ina-color-success);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.ina-chart__status--error {
|
|
76
|
-
color: var(--ina-color-error);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ina-chart__status--warning {
|
|
80
|
-
color: var(--ina-color-warning);
|
|
81
|
-
}
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checkbox Component Styles
|
|
3
|
-
* Menggunakan BEM naming convention dengan prefix "ina-" dan state modifiers
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.ina-checkbox {
|
|
7
|
-
/* Main container - label wrapper */
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: flex-start;
|
|
10
|
-
gap: var(--ina-spacing-3);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ina-checkbox__input {
|
|
14
|
-
/* Hidden native input */
|
|
15
|
-
position: absolute;
|
|
16
|
-
opacity: 0;
|
|
17
|
-
pointer-events: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ina-checkbox__box {
|
|
21
|
-
/* Visual checkbox box */
|
|
22
|
-
flex-shrink: 0;
|
|
23
|
-
width: 1rem; /* w-4 */
|
|
24
|
-
height: 1rem; /* h-4 */
|
|
25
|
-
max-width: 1rem;
|
|
26
|
-
max-height: 1rem;
|
|
27
|
-
font-size: var(--ina-font-2xs);
|
|
28
|
-
border: 1px solid var(--ina-stroke-primary);
|
|
29
|
-
background-color: var(--ina-background-primary);
|
|
30
|
-
border-radius: var(--ina-radius-base);
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@media (min-width: 768px) {
|
|
38
|
-
.ina-checkbox__box {
|
|
39
|
-
width: 1.25rem; /* md:w-5 */
|
|
40
|
-
height: 1.25rem; /* md:h-5 */
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ina-checkbox__content {
|
|
45
|
-
/* Container untuk label dan subtext */
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.ina-checkbox__label {
|
|
51
|
-
font-size: var(--ina-font-sm);
|
|
52
|
-
color: var(--ina-content-primary);
|
|
53
|
-
margin: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@media (min-width: 768px) {
|
|
57
|
-
.ina-checkbox__label {
|
|
58
|
-
font-size: var(--ina-font-base); /* md:text-base */
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.ina-checkbox__subtext {
|
|
63
|
-
font-size: var(--ina-font-xs);
|
|
64
|
-
color: var(--ina-content-secondary);
|
|
65
|
-
margin-top: 0.125rem;
|
|
66
|
-
margin: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@media (min-width: 768px) {
|
|
70
|
-
.ina-checkbox__subtext {
|
|
71
|
-
font-size: var(--ina-font-sm); /* md:text-sm */
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* Modifier for checked state */
|
|
76
|
-
.ina-checkbox__box--checked {
|
|
77
|
-
background-color: var(--ina-content-primary);
|
|
78
|
-
border-color: var(--ina-content-primary);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* Modifier for indeterminate state */
|
|
82
|
-
.ina-checkbox__box--indeterminate {
|
|
83
|
-
background-color: var(--ina-content-primary);
|
|
84
|
-
border-color: var(--ina-content-primary);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* Modifier for invalid state */
|
|
88
|
-
.ina-checkbox__box--invalid {
|
|
89
|
-
border-color: var(
|
|
90
|
-
--ina-sentiment-negative-500,
|
|
91
|
-
var(--ina-error-500)
|
|
92
|
-
) !important;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* Modifier for disabled state */
|
|
96
|
-
.ina-checkbox--disabled {
|
|
97
|
-
cursor: not-allowed;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ina-checkbox--disabled .ina-checkbox__box--unchecked,
|
|
101
|
-
.ina-checkbox--disabled .ina-checkbox__box--checked,
|
|
102
|
-
.ina-checkbox--disabled .ina-checkbox__box--indeterminate {
|
|
103
|
-
background-color: var(--ina-background-tertiary);
|
|
104
|
-
border-color: var(--ina-stroke-secondary);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.ina-checkbox--disabled .ina-checkbox__box--unchecked {
|
|
108
|
-
background-color: var(--ina-background-tertiary);
|
|
109
|
-
border-color: var(--ina-stroke-secondary);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.ina-checkbox--disabled .ina-checkbox__label {
|
|
113
|
-
color: var(--ina-content-primary);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.ina-checkbox--disabled .ina-checkbox__icon {
|
|
117
|
-
color: var(--ina-stroke-secondary);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/* Default unchecked state hover effect */
|
|
121
|
-
.ina-checkbox__box--unchecked:hover {
|
|
122
|
-
border-color: var(--ina-stroke-secondary);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/* Icon styling */
|
|
126
|
-
.ina-checkbox__icon {
|
|
127
|
-
color: var(--ina-neutral-25); /* white */
|
|
128
|
-
display: flex;
|
|
129
|
-
align-items: center;
|
|
130
|
-
justify-content: center;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/* Disabled icon color */
|
|
134
|
-
.ina-checkbox--disabled .ina-checkbox__icon {
|
|
135
|
-
color: var(--ina-neutral-400);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/* Focus state menggunakan peer selector untuk accessibility */
|
|
139
|
-
.ina-checkbox__input:focus + .ina-checkbox__box {
|
|
140
|
-
outline: 3px solid #f3f3f3;
|
|
141
|
-
outline-offset: -1px;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/* Focus state untuk indeterminate checkbox */
|
|
145
|
-
.ina-checkbox__input:focus + .ina-checkbox__box--indeterminate {
|
|
146
|
-
outline: 3px solid #f3f3f3;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/* Focus state untuk checked checkbox */
|
|
150
|
-
.ina-checkbox__input:focus + .ina-checkbox__box--checked {
|
|
151
|
-
outline: 3px solid #f3f3f3;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/* Invalid state yang tidak disabled */
|
|
155
|
-
.ina-checkbox:not(.ina-checkbox--disabled) .ina-checkbox__box--invalid:hover {
|
|
156
|
-
border-color: var(--ina-negative-600, var(--ina-error-600));
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/* Interactive states */
|
|
160
|
-
.ina-checkbox:not(.ina-checkbox--disabled) {
|
|
161
|
-
cursor: pointer;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.ina-checkbox:not(.ina-checkbox--disabled) .ina-checkbox__box {
|
|
165
|
-
cursor: pointer;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.ina-checkbox:not(.ina-checkbox--disabled) .ina-checkbox__label {
|
|
169
|
-
cursor: pointer;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/* Animation untuk transisi state */
|
|
173
|
-
.ina-checkbox__icon {
|
|
174
|
-
transition: color 150ms ease-in-out;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/* Accessibility improvements */
|
|
178
|
-
@media (prefers-reduced-motion: reduce) {
|
|
179
|
-
.ina-checkbox__box,
|
|
180
|
-
.ina-checkbox__icon {
|
|
181
|
-
transition: none;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/* High contrast mode support */
|
|
186
|
-
@media (prefers-contrast: high) {
|
|
187
|
-
.ina-checkbox__box {
|
|
188
|
-
border-width: 2px;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.ina-checkbox__box--checked,
|
|
192
|
-
.ina-checkbox__box--indeterminate {
|
|
193
|
-
border-width: 2px;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/* Dark mode support */
|
|
198
|
-
/* @media (prefers-color-scheme: dark) {
|
|
199
|
-
.ina-checkbox__box {
|
|
200
|
-
border-color: var(--ina-neutral-600);
|
|
201
|
-
background-color: var(--ina-neutral-900);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.ina-checkbox__box--unchecked:hover {
|
|
205
|
-
border-color: var(--ina-neutral-500);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.ina-checkbox__box--invalid {
|
|
209
|
-
border-color: var(--ina-error-400) !important;
|
|
210
|
-
}
|
|
211
|
-
} */
|
package/src/components/chip.css
DELETED
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Chip Component Styles
|
|
3
|
-
* Menggunakan BEM naming convention dengan prefix "ina-"
|
|
4
|
-
* Sesuai dengan design system Figma
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
.ina-chip {
|
|
8
|
-
/* Main container */
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
gap: var(--ina-spacing-2);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ina-chip__list {
|
|
15
|
-
/* Container untuk semua chips */
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-wrap: wrap;
|
|
18
|
-
gap: var(--ina-spacing-2);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ina-chip__item {
|
|
22
|
-
/* Base styles */
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
border-radius: var(--ina-radius-full);
|
|
27
|
-
font-weight: 500;
|
|
28
|
-
border: 1px solid;
|
|
29
|
-
transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out,
|
|
30
|
-
color 150ms ease-in-out;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
outline: none;
|
|
33
|
-
box-sizing: border-box;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Size: Small */
|
|
37
|
-
.ina-chip__item--size-small {
|
|
38
|
-
height: 24px;
|
|
39
|
-
font-size: 12px;
|
|
40
|
-
padding: 0 10px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* Size: Medium */
|
|
44
|
-
.ina-chip__item--size-medium {
|
|
45
|
-
height: 32px;
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
padding: 0 12px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* ============================================
|
|
51
|
-
FILLED VARIANT
|
|
52
|
-
============================================ */
|
|
53
|
-
|
|
54
|
-
/* Filled - Default State */
|
|
55
|
-
.ina-chip__item--variant-filled:not(.ina-chip__item--selected):not(
|
|
56
|
-
.ina-chip__item--disabled
|
|
57
|
-
) {
|
|
58
|
-
background-color: var(--ina-primary-25);
|
|
59
|
-
color: var(--ina-content-primary);
|
|
60
|
-
border-color: var(--ina-primary-25);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* Filled - Hover State */
|
|
64
|
-
.ina-chip__item--variant-filled:not(.ina-chip__item--selected):not(
|
|
65
|
-
.ina-chip__item--disabled
|
|
66
|
-
):hover {
|
|
67
|
-
background-color: var(--ina-primary-50);
|
|
68
|
-
color: var(--ina-content-primary);
|
|
69
|
-
border-color: var(--ina-primary-25);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* Filled - Selected State */
|
|
73
|
-
.ina-chip__item--variant-filled.ina-chip__item--selected {
|
|
74
|
-
background-color: var(--ina-primary-300);
|
|
75
|
-
color: var(--ina-neutral-25, #ffffff);
|
|
76
|
-
border-color: var(--ina-primary-300);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/* Filled - Disabled State */
|
|
80
|
-
.ina-chip__item--variant-filled.ina-chip__item--disabled {
|
|
81
|
-
background-color: var(--ina-background-tertiary);
|
|
82
|
-
color: var(--ina-content-tertiary);
|
|
83
|
-
border-color: var(--ina-background-tertiary);
|
|
84
|
-
cursor: not-allowed;
|
|
85
|
-
pointer-events: none;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* ============================================
|
|
89
|
-
OUTLINE VARIANT
|
|
90
|
-
============================================ */
|
|
91
|
-
|
|
92
|
-
/* Outline - Default State */
|
|
93
|
-
.ina-chip__item--variant-outline:not(.ina-chip__item--selected):not(
|
|
94
|
-
.ina-chip__item--disabled
|
|
95
|
-
) {
|
|
96
|
-
background-color: var(--ina-neutral-25, #ffffff);
|
|
97
|
-
color: var(--ina-content-primary);
|
|
98
|
-
border-color: var(--ina-stroke-primary);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/* Outline - Hover State */
|
|
102
|
-
.ina-chip__item--variant-outline:not(.ina-chip__item--selected):not(
|
|
103
|
-
.ina-chip__item--disabled
|
|
104
|
-
):hover {
|
|
105
|
-
background-color: var(--ina-primary-50);
|
|
106
|
-
color: var(--ina-content-primary);
|
|
107
|
-
border-color: var(--ina-stroke-primary);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* Outline - Selected State */
|
|
111
|
-
.ina-chip__item--variant-outline.ina-chip__item--selected {
|
|
112
|
-
background-color: var(--ina-primary-25);
|
|
113
|
-
color: var(--ina-primary-600);
|
|
114
|
-
border-color: var(--ina-primary-600);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/* Outline - Disabled State */
|
|
118
|
-
.ina-chip__item--variant-outline.ina-chip__item--disabled {
|
|
119
|
-
background-color: var(--ina-background-tertiary);
|
|
120
|
-
color: var(--ina-content-tertiary);
|
|
121
|
-
border-color: var(--ina-stroke-primary);
|
|
122
|
-
cursor: not-allowed;
|
|
123
|
-
pointer-events: none;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/* Focus state */
|
|
127
|
-
.ina-chip__item:focus-visible {
|
|
128
|
-
outline: 2px solid var(--ina-primary-500);
|
|
129
|
-
outline-offset: 2px;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/* Active/pressed state */
|
|
133
|
-
.ina-chip__item:active:not(.ina-chip__item--disabled) {
|
|
134
|
-
transform: scale(0.98);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/* Custom field styling */
|
|
138
|
-
.ina-chip__custom-field {
|
|
139
|
-
margin-top: var(--ina-spacing-2);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.ina-chip__custom-field .ina-text-field {
|
|
143
|
-
/* Targeting TextField component styling */
|
|
144
|
-
max-width: 50%; /* sm:max-w-1/2 */
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@media (min-width: 768px) {
|
|
148
|
-
.ina-chip__custom-field .ina-text-field {
|
|
149
|
-
max-width: 25%; /* md:max-w-1/4 */
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* Loading state */
|
|
154
|
-
.ina-chip__item--loading {
|
|
155
|
-
position: relative;
|
|
156
|
-
pointer-events: none;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.ina-chip__item--loading::after {
|
|
160
|
-
content: '';
|
|
161
|
-
position: absolute;
|
|
162
|
-
top: 50%;
|
|
163
|
-
left: 50%;
|
|
164
|
-
transform: translate(-50%, -50%);
|
|
165
|
-
width: 0.75rem;
|
|
166
|
-
height: 0.75rem;
|
|
167
|
-
border: 1px solid transparent;
|
|
168
|
-
border-top: 1px solid currentColor;
|
|
169
|
-
border-radius: 50%;
|
|
170
|
-
animation: chip-spin 1s linear infinite;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
@keyframes chip-spin {
|
|
174
|
-
0% {
|
|
175
|
-
transform: translate(-50%, -50%) rotate(0deg);
|
|
176
|
-
}
|
|
177
|
-
100% {
|
|
178
|
-
transform: translate(-50%, -50%) rotate(360deg);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/* Responsive adjustments */
|
|
183
|
-
@media (max-width: 640px) {
|
|
184
|
-
.ina-chip__list {
|
|
185
|
-
gap: var(--ina-spacing-1);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.ina-chip__custom-field .ina-text-field {
|
|
189
|
-
max-width: 100%; /* Full width on small screens */
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/* Accessibility improvements */
|
|
194
|
-
@media (prefers-reduced-motion: reduce) {
|
|
195
|
-
.ina-chip__item,
|
|
196
|
-
.ina-chip__item:active {
|
|
197
|
-
transition: none;
|
|
198
|
-
transform: none;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.ina-chip__item--loading::after {
|
|
202
|
-
animation: none;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/* High contrast mode */
|
|
207
|
-
@media (prefers-contrast: high) {
|
|
208
|
-
.ina-chip__item {
|
|
209
|
-
border-width: 2px;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.ina-chip__item:focus-visible {
|
|
213
|
-
outline-width: 3px;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/* Focus management */
|
|
218
|
-
.ina-chip__item[tabindex='-1'] {
|
|
219
|
-
opacity: 0.6;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/* Animation untuk chip appearance */
|
|
223
|
-
.ina-chip__item {
|
|
224
|
-
animation: chip-fade-in 150ms ease-out;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
@keyframes chip-fade-in {
|
|
228
|
-
0% {
|
|
229
|
-
opacity: 0;
|
|
230
|
-
transform: scale(0.9);
|
|
231
|
-
}
|
|
232
|
-
100% {
|
|
233
|
-
opacity: 1;
|
|
234
|
-
transform: scale(1);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
.ina-chip__input {
|
|
238
|
-
min-width: 100%;
|
|
239
|
-
max-width: 100%;
|
|
240
|
-
}
|
|
241
|
-
@media (max-width: 640px) {
|
|
242
|
-
.ina-chip__input {
|
|
243
|
-
min-width: 500px;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Collapse Component Styles
|
|
3
|
-
* Menggunakan BEM naming convention dengan prefix "ina-"
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.ina-collapse {
|
|
7
|
-
/* Base collapse container */
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
transition: max-height var(--ina-transition-base);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* Animation states */
|
|
13
|
-
.ina-collapse--entering {
|
|
14
|
-
max-height: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ina-collapse--entered {
|
|
18
|
-
max-height: 1000px; /* Adjust as needed, or use auto */
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ina-collapse--exiting {
|
|
22
|
-
max-height: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* Smooth height transitions */
|
|
26
|
-
.ina-collapse--auto {
|
|
27
|
-
max-height: auto;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* Customizable animation durations */
|
|
31
|
-
.ina-collapse--slow {
|
|
32
|
-
transition-duration: 3000ms;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ina-collapse--fast {
|
|
36
|
-
transition-duration: 150ms;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.ina-collapse--instant {
|
|
40
|
-
transition-duration: 0ms;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* Height-based variants */
|
|
44
|
-
.ina-collapse--small {
|
|
45
|
-
max-height: 200px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.ina-collapse--medium {
|
|
49
|
-
max-height: 400px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ina-collapse--large {
|
|
53
|
-
max-height: 600px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ina-collapse--xl {
|
|
57
|
-
max-height: 800px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Content wrapper */
|
|
61
|
-
.ina-collapse__content {
|
|
62
|
-
/* Add any specific content styling here */
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Animation easing variants */
|
|
66
|
-
.ina-collapse--ease-in {
|
|
67
|
-
transition-timing-function: ease-in;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ina-collapse--ease-out {
|
|
71
|
-
transition-timing-function: ease-out;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ina-collapse--ease-in-out {
|
|
75
|
-
transition-timing-function: ease-in-out;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.ina-collapse--ease-linear {
|
|
79
|
-
transition-timing-function: linear;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ina-collapse--ease-cubic {
|
|
83
|
-
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
84
|
-
}
|