@idds/styles 1.0.26

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 (81) hide show
  1. package/README.md +147 -0
  2. package/package.json +55 -0
  3. package/src/colors/brands/bgn.css +29 -0
  4. package/src/colors/brands/bkn.css +32 -0
  5. package/src/colors/brands/inagov.css +39 -0
  6. package/src/colors/brands/inaku.css +28 -0
  7. package/src/colors/brands/inapas.css +28 -0
  8. package/src/colors/brands/lan.css +38 -0
  9. package/src/colors/brands/pan-rb.css +30 -0
  10. package/src/colors/index.css +11 -0
  11. package/src/colors/primitives/index.css +150 -0
  12. package/src/colors/product/index.css +205 -0
  13. package/src/colors/utilities/index.css +77 -0
  14. package/src/components/accordion-card.css +99 -0
  15. package/src/components/accordion.css +120 -0
  16. package/src/components/action-dropdown.css +140 -0
  17. package/src/components/alert.css +180 -0
  18. package/src/components/avatar.css +182 -0
  19. package/src/components/badge.css +244 -0
  20. package/src/components/bottom-sheet.css +61 -0
  21. package/src/components/breadcrumb.css +94 -0
  22. package/src/components/button-group.css +130 -0
  23. package/src/components/button.css +233 -0
  24. package/src/components/card.css +488 -0
  25. package/src/components/carousel.css +100 -0
  26. package/src/components/chart.css +81 -0
  27. package/src/components/checkbox.css +211 -0
  28. package/src/components/chip.css +228 -0
  29. package/src/components/collapse.css +84 -0
  30. package/src/components/confirmation.css +131 -0
  31. package/src/components/date-picker.css +1063 -0
  32. package/src/components/divider.css +174 -0
  33. package/src/components/drawer.css +757 -0
  34. package/src/components/dropdown.css +369 -0
  35. package/src/components/field-input-table.css +347 -0
  36. package/src/components/file-upload.css +357 -0
  37. package/src/components/input-search.css +428 -0
  38. package/src/components/linear-progress-indicator.css +34 -0
  39. package/src/components/modal.css +497 -0
  40. package/src/components/month-picker.css +325 -0
  41. package/src/components/multiple-choice-grid.css +383 -0
  42. package/src/components/pagination.css +415 -0
  43. package/src/components/password-input.css +472 -0
  44. package/src/components/phone-input.css +412 -0
  45. package/src/components/progress-bar.css +447 -0
  46. package/src/components/radio-input.css +263 -0
  47. package/src/components/reset.css +431 -0
  48. package/src/components/select-dropdown.css +663 -0
  49. package/src/components/select-option.css +217 -0
  50. package/src/components/skeleton.css +488 -0
  51. package/src/components/spinner.css +450 -0
  52. package/src/components/stepper.css +209 -0
  53. package/src/components/tab-horizontal.css +278 -0
  54. package/src/components/tab-vertical.css +261 -0
  55. package/src/components/table-progress-bar.css +48 -0
  56. package/src/components/table.css +538 -0
  57. package/src/components/text-area.css +216 -0
  58. package/src/components/text-field.css +275 -0
  59. package/src/components/theme-toggle.css +259 -0
  60. package/src/components/time-picker.css +436 -0
  61. package/src/components/toast.css +245 -0
  62. package/src/components/toggle.css +223 -0
  63. package/src/components/tooltip.css +452 -0
  64. package/src/components/year-picker.css +423 -0
  65. package/src/index.css +3 -0
  66. package/src/tailwind/css/bgn.css +43 -0
  67. package/src/tailwind/css/bkn.css +37 -0
  68. package/src/tailwind/css/idds.css +231 -0
  69. package/src/tailwind/css/inagov.css +33 -0
  70. package/src/tailwind/css/inaku.css +33 -0
  71. package/src/tailwind/css/inapas.css +33 -0
  72. package/src/tailwind/css/lan.css +43 -0
  73. package/src/tailwind/css/pan-rb.css +35 -0
  74. package/src/tailwind/ts/bgn.ts +20 -0
  75. package/src/tailwind/ts/bkn.ts +38 -0
  76. package/src/tailwind/ts/idds.ts +240 -0
  77. package/src/tailwind/ts/inagov.ts +35 -0
  78. package/src/tailwind/ts/inaku.ts +35 -0
  79. package/src/tailwind/ts/inapas.ts +35 -0
  80. package/src/tailwind/ts/lan.ts +45 -0
  81. package/src/tailwind/ts/panrb.ts +37 -0
@@ -0,0 +1,94 @@
1
+ /* =========================== */
2
+ /* BREADCRUMB STYLES */
3
+ /* =========================== */
4
+
5
+ .ina-breadcrumb {
6
+ display: flex;
7
+ align-items: center;
8
+ }
9
+
10
+ .ina-breadcrumb__list {
11
+ display: flex;
12
+ align-items: center;
13
+ list-style: none;
14
+ margin: 0;
15
+ padding: 0;
16
+ flex-wrap: wrap;
17
+ gap: var(--ina-spacing-1);
18
+ }
19
+
20
+ .ina-breadcrumb__item {
21
+ display: flex;
22
+ align-items: center;
23
+ }
24
+
25
+ .ina-breadcrumb__link {
26
+ display: flex;
27
+ align-items: center;
28
+ gap: var(--ina-spacing-1);
29
+ text-decoration: none;
30
+ font-size: var(--ina-font-xs);
31
+ transition: color var(--ina-transition-base);
32
+ white-space: nowrap;
33
+ overflow: hidden;
34
+ text-overflow: ellipsis;
35
+ max-width: 100%;
36
+ }
37
+
38
+ /* Text size: text-xs md:text-sm */
39
+ @media (min-width: 768px) {
40
+ .ina-breadcrumb__link {
41
+ font-size: var(--ina-font-sm);
42
+ }
43
+ }
44
+
45
+ /* Inactive link: text-content-secondary, font-normal */
46
+ .ina-breadcrumb__link {
47
+ color: var(--ina-content-secondary);
48
+ font-weight: var(--ina-font-normal);
49
+ }
50
+
51
+ /* Active link: text-content-primary, font-medium */
52
+ .ina-breadcrumb__link--active {
53
+ color: var(--ina-content-primary);
54
+ font-weight: var(--ina-font-medium);
55
+ }
56
+
57
+ .ina-breadcrumb__link:hover:not(.ina-breadcrumb__link--active):not(.ina-breadcrumb__link--disabled) {
58
+ color: var(--ina-content-primary);
59
+ }
60
+
61
+ .ina-breadcrumb__link--disabled {
62
+ cursor: not-allowed;
63
+ opacity: 0.5;
64
+ pointer-events: none;
65
+ }
66
+
67
+ .ina-breadcrumb__icon {
68
+ display: flex;
69
+ align-items: center;
70
+ flex-shrink: 0;
71
+ }
72
+
73
+ .ina-breadcrumb__text {
74
+ overflow: hidden;
75
+ text-overflow: ellipsis;
76
+ white-space: nowrap;
77
+ max-width: 100%;
78
+ }
79
+
80
+ /* Separator: text-content-secondary */
81
+ .ina-breadcrumb__separator {
82
+ display: flex;
83
+ align-items: center;
84
+ color: var(--ina-content-secondary);
85
+ margin: 0 var(--ina-spacing-1);
86
+ flex-shrink: 0;
87
+ font-size: var(--ina-font-xs);
88
+ }
89
+
90
+ @media (min-width: 768px) {
91
+ .ina-breadcrumb__separator {
92
+ font-size: var(--ina-font-sm);
93
+ }
94
+ }
@@ -0,0 +1,130 @@
1
+ /* =========================== */
2
+ /* BUTTON GROUP STYLES */
3
+ /* =========================== */
4
+
5
+ .ina-button-group {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ border: 1px solid var(--ina-stroke-primary);
9
+ border-radius: 8px;
10
+ background-color: var(--ina-background-primary);
11
+ overflow: hidden;
12
+ gap: 0;
13
+ }
14
+
15
+ .ina-button-group--disabled {
16
+ opacity: 0.6;
17
+ cursor: not-allowed;
18
+ }
19
+
20
+ .ina-button-group__button {
21
+ position: relative;
22
+ display: inline-flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ height: 40px;
26
+ padding: 0 16px;
27
+ font-size: var(--ina-font-sm);
28
+ font-weight: var(--ina-font-semibold);
29
+ line-height: var(--ina-line-height-sm);
30
+ color: var(--ina-content-secondary);
31
+ background-color: var(--ina-background-primary);
32
+ border: none;
33
+ border-right: 1px solid var(--ina-stroke-primary);
34
+ cursor: pointer;
35
+ transition: all 0.2s ease-in-out;
36
+ white-space: nowrap;
37
+ user-select: none;
38
+ }
39
+
40
+ .ina-button-group__button:last-child {
41
+ border-right: none;
42
+ }
43
+
44
+ .ina-button-group__button:hover:not(.ina-button-group__button--disabled) {
45
+ background-color: var(--ina-neutral-100);
46
+ color: var(--ina-content-primary);
47
+ }
48
+
49
+ .ina-button-group__button--selected {
50
+ background-color: var(--ina-background-secondary);
51
+ color: var(--ina-content-primary);
52
+ }
53
+
54
+ .ina-button-group__button--disabled {
55
+ opacity: 0.5;
56
+ cursor: not-allowed;
57
+ pointer-events: none;
58
+ }
59
+
60
+ .ina-button-group__button-content {
61
+ display: inline-flex;
62
+ align-items: center;
63
+ justify-content: center;
64
+ gap: 8px;
65
+ }
66
+
67
+ /* Responsive font sizes */
68
+ @media (max-width: 768px) {
69
+ .ina-button-group__button {
70
+ height: 32px;
71
+ padding: 0 12px;
72
+ font-size: var(--ina-font-xs);
73
+ line-height: var(--ina-line-height-xs);
74
+ }
75
+ }
76
+
77
+ @media (min-width: 769px) and (max-width: 1024px) {
78
+ .ina-button-group__button {
79
+ font-size: 14px;
80
+ padding: 0 14px;
81
+ }
82
+ }
83
+
84
+ /* Focus states */
85
+ .ina-button-group__button:focus-visible {
86
+ outline: 2px solid var(--ina-primary-500);
87
+ outline-offset: -2px;
88
+ z-index: 1;
89
+ }
90
+
91
+ /* Active states */
92
+ .ina-button-group__button:active:not(.ina-button-group__button--disabled) {
93
+ background-color: var(--ina-neutral-200);
94
+ }
95
+
96
+ .ina-button-group__button--selected:active:not(
97
+ .ina-button-group__button--disabled
98
+ ) {
99
+ background-color: var(--ina-neutral-200);
100
+ }
101
+
102
+ /* Dark mode */
103
+ [data-theme='dark'] .ina-button-group {
104
+ border-color: var(--ina-stroke-primary);
105
+ background-color: var(--ina-background-primary);
106
+ }
107
+
108
+ [data-theme='dark'] .ina-button-group__button {
109
+ color: var(--ina-content-secondary);
110
+ background-color: var(--ina-background-primary);
111
+ border-right-color: var(--ina-stroke-primary);
112
+ }
113
+
114
+ [data-theme='dark']
115
+ .ina-button-group__button:hover:not(.ina-button-group__button--disabled) {
116
+ background-color: var(--ina-neutral-100);
117
+ color: var(--ina-content-primary);
118
+ }
119
+
120
+ [data-theme='dark'] .ina-button-group__button--selected {
121
+ background-color: var(--ina-neutral-100);
122
+ color: var(--ina-content-primary);
123
+ }
124
+
125
+ /* Reduced motion */
126
+ @media (prefers-reduced-motion: reduce) {
127
+ .ina-button-group__button {
128
+ transition: none;
129
+ }
130
+ }
@@ -0,0 +1,233 @@
1
+ /**
2
+ * Button Component Styles
3
+ * Menggunakan BEM naming convention dengan prefix "ina-" dan hierarchy/size modifiers
4
+ */
5
+
6
+ .ina-button {
7
+ /* Base button styling */
8
+ display: inline-flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ font-weight: 500;
12
+ border-radius: 8px;
13
+ transition: all 150ms ease-in-out;
14
+ cursor: pointer;
15
+ border: none;
16
+ box-sizing: border-box;
17
+ gap: 8px;
18
+ flex-shrink: 0;
19
+ }
20
+
21
+ .ina-button__prefix-icon,
22
+ .ina-button__suffix-icon {
23
+ /* Icon containers */
24
+ flex-shrink: 0;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ }
29
+
30
+ /* Size modifiers */
31
+ .ina-button--2xl {
32
+ max-height: 56px;
33
+ font-size: 16px;
34
+ line-height: 24px;
35
+ padding: 16px;
36
+ }
37
+
38
+ .ina-button--xl {
39
+ max-height: 48px;
40
+ font-size: 16px;
41
+ line-height: 24px;
42
+ padding: 12px 16px;
43
+ }
44
+
45
+ .ina-button--lg {
46
+ max-height: 44px;
47
+ font-size: 14px;
48
+ line-height: 20px;
49
+ padding: 12px;
50
+ }
51
+
52
+ .ina-button--md {
53
+ max-height: 40px;
54
+ font-size: 14px;
55
+ line-height: 20px;
56
+ padding: 10px 12px;
57
+ }
58
+
59
+ .ina-button--sm {
60
+ max-height: 32px;
61
+ font-size: 12px;
62
+ line-height: 16px;
63
+ padding: 8px;
64
+ border-radius: 6px;
65
+ }
66
+ .ina-button.ina-button--md {
67
+ border-radius: 7px;
68
+ }
69
+ .ina-button.ina-button--sm {
70
+ border-radius: 6px;
71
+ }
72
+
73
+ @media (max-width: 639px) {
74
+ /* Size modifiers */
75
+ .ina-button--2xl {
76
+ max-height: 48px;
77
+ font-size: 14px;
78
+ line-height: 20px;
79
+ padding: 12px 16px;
80
+ }
81
+
82
+ .ina-button--xl {
83
+ max-height: 44px;
84
+ font-size: 14px;
85
+ line-height: 24px;
86
+ padding: 10px 12px;
87
+ }
88
+
89
+ .ina-button--lg {
90
+ max-height: 40px;
91
+ font-size: 12px;
92
+ line-height: 16px;
93
+ padding: 10px 12px;
94
+ }
95
+
96
+ .ina-button--md {
97
+ max-height: 32px;
98
+ font-size: 12px;
99
+ line-height: 16px;
100
+ padding: 8px;
101
+ }
102
+
103
+ .ina-button--sm {
104
+ max-height: 28px;
105
+ font-size: 10px;
106
+ line-height: 12px;
107
+ padding: 6px 8px;
108
+ }
109
+ }
110
+ /* Hierarchy modifiers - Primary */
111
+ .ina-button--primary {
112
+ background-color: var(--ina-primary-500);
113
+ color: var(--ina-content-white, #ffffff);
114
+ border: none;
115
+ }
116
+
117
+ .ina-button--primary:hover:not(:disabled) {
118
+ background-color: var(--ina-primary-400, var(--Primary-400));
119
+ }
120
+
121
+ .ina-button--primary:focus:not(:disabled) {
122
+ background-color: var(--ina-primary-500, var(--Primary-500));
123
+ outline: 2px solid var(--ina-primary-300, var(--Primary-300));
124
+ outline-offset: 2px;
125
+ }
126
+
127
+ .ina-button--primary:disabled {
128
+ background-color: var(--ina-background-tertiary, var(--ina-neutral-100));
129
+ color: var(--ina-content-tertiary, var(--ina-neutral-400));
130
+ cursor: not-allowed;
131
+ opacity: 1;
132
+ }
133
+
134
+ /* Hierarchy modifiers - Secondary */
135
+ .ina-button--secondary {
136
+ background-color: var(--ina-background-primary, var(--ina-neutral-25));
137
+ color: var(--ina-content-primary, var(--ina-neutral-800));
138
+ border: 1px solid var(--ina-stroke-primary, var(--ina-neutral-200));
139
+ }
140
+
141
+ .ina-button--secondary:hover:not(:disabled) {
142
+ background-color: var(--ina-background-secondary, var(--ina-neutral-50));
143
+ }
144
+
145
+ .ina-button--secondary:focus:not(:disabled) {
146
+ background-color: var(--ina-background-secondary, var(--ina-neutral-50));
147
+ outline: 2px solid var(--ina-primary-300, var(--ina-blue-300));
148
+ outline-offset: 2px;
149
+ }
150
+
151
+ .ina-button--secondary:disabled {
152
+ background-color: var(--ina-background-tertiary, var(--Background-Tertiary));
153
+ color: var(--ina-content-tertiary, var(--ina-neutral-400));
154
+ border-color: var(--ina-stroke-primary, var(--Stroke-Primary));
155
+ cursor: not-allowed;
156
+ opacity: 1;
157
+ }
158
+
159
+ /* Hierarchy modifiers - Tertiary */
160
+ .ina-button--tertiary {
161
+ background-color: var(--ina-background-primary, var(--ina-neutral-25));
162
+ color: var(--ina-content-primary, var(--ina-neutral-800));
163
+ border: none;
164
+ }
165
+
166
+ .ina-button--tertiary:hover:not(:disabled) {
167
+ background-color: var(--ina-background-tertiary, var(--Background-Tertiary));
168
+ }
169
+
170
+ .ina-button--tertiary:focus:not(:disabled) {
171
+ background-color: var(--ina-background-tertiary, var(--Background-Tertiary));
172
+ outline: 2px solid var(--ina-primary-300, var(--Primary-300));
173
+ outline-offset: 2px;
174
+ }
175
+
176
+ .ina-button--tertiary:disabled {
177
+ background-color: var(--ina-background-tertiary, var(--Background-Tertiary));
178
+ color: var(--ina-content-tertiary, var(--ina-neutral-400));
179
+ cursor: not-allowed;
180
+ opacity: 1;
181
+ }
182
+
183
+ /* Hierarchy modifiers - Link */
184
+ .ina-button--link {
185
+ background-color: var(--ina-background-primary, var(--ina-neutral-25));
186
+ color: var(--ina-content-guide, var(--Content-Guide));
187
+ border: none;
188
+ text-decoration: none;
189
+ }
190
+ .ina-button.ina-button--link {
191
+ padding: 0;
192
+ }
193
+
194
+ .ina-button--link:hover:not(:disabled) {
195
+ color: var(--ina-guide-400, var(--Guide-400));
196
+ }
197
+
198
+ .ina-button--link:focus:not(:disabled) {
199
+ color: var(--ina-guide-400, var(--Guide-400));
200
+ outline: 2px solid var(--ina-primary-300, var(--Primary-300));
201
+ outline-offset: 2px;
202
+ }
203
+
204
+ .ina-button--link:disabled {
205
+ background-color: var(--ina-background-primary, var(--ina-neutral-25));
206
+ color: var(--ina-content-tertiary, var(--ina-neutral-400));
207
+ cursor: not-allowed;
208
+ opacity: 1;
209
+ }
210
+
211
+ /* Hierarchy modifiers - Custom */
212
+ .ina-button--custom {
213
+ /* Custom variant tidak ada default styling, semua styling berdasarkan user */
214
+ cursor: pointer;
215
+ }
216
+
217
+ .ina-button--custom:disabled {
218
+ cursor: not-allowed;
219
+ opacity: 0.6;
220
+ }
221
+
222
+ /* Loading state */
223
+ .ina-button--loading {
224
+ position: relative;
225
+ pointer-events: none;
226
+ }
227
+
228
+ /* Icon styling */
229
+ .ina-button__prefix-icon svg,
230
+ .ina-button__suffix-icon svg {
231
+ display: inline-block;
232
+ vertical-align: middle;
233
+ }