@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.
Files changed (96) hide show
  1. package/README.md +178 -42
  2. package/dist/base.css +1071 -0
  3. package/dist/base.min.css +1 -0
  4. package/dist/index.css +14801 -0
  5. package/dist/index.min.css +15 -0
  6. package/dist/tailwind/css/bgn.min.css +1 -0
  7. package/dist/tailwind/css/bkn.min.css +1 -0
  8. package/dist/tailwind/css/idds.min.css +1 -0
  9. package/dist/tailwind/css/inagov.min.css +1 -0
  10. package/dist/tailwind/css/inaku.min.css +1 -0
  11. package/dist/tailwind/css/inapas.min.css +1 -0
  12. package/dist/tailwind/css/lan.min.css +1 -0
  13. package/dist/tailwind/css/pan-rb.min.css +1 -0
  14. package/package.json +31 -21
  15. package/src/colors/brands/bgn.css +0 -30
  16. package/src/colors/brands/bkn.css +0 -33
  17. package/src/colors/brands/inagov.css +0 -40
  18. package/src/colors/brands/inaku.css +0 -29
  19. package/src/colors/brands/inapas.css +0 -29
  20. package/src/colors/brands/lan.css +0 -39
  21. package/src/colors/brands/pan-rb.css +0 -31
  22. package/src/colors/index.css +0 -11
  23. package/src/colors/primitives/index.css +0 -175
  24. package/src/colors/product/index.css +0 -205
  25. package/src/colors/utilities/index.css +0 -77
  26. package/src/components/accordion-card.css +0 -99
  27. package/src/components/accordion.css +0 -120
  28. package/src/components/action-dropdown.css +0 -140
  29. package/src/components/alert.css +0 -180
  30. package/src/components/avatar.css +0 -182
  31. package/src/components/badge.css +0 -247
  32. package/src/components/bottom-sheet.css +0 -61
  33. package/src/components/breadcrumb.css +0 -97
  34. package/src/components/button-group.css +0 -130
  35. package/src/components/button.css +0 -241
  36. package/src/components/card.css +0 -576
  37. package/src/components/carousel.css +0 -100
  38. package/src/components/chart.css +0 -81
  39. package/src/components/checkbox.css +0 -211
  40. package/src/components/chip.css +0 -245
  41. package/src/components/collapse.css +0 -84
  42. package/src/components/confirmation.css +0 -131
  43. package/src/components/date-picker.css +0 -1059
  44. package/src/components/divider.css +0 -174
  45. package/src/components/drawer.css +0 -752
  46. package/src/components/dropdown.css +0 -370
  47. package/src/components/field-input-table.css +0 -347
  48. package/src/components/file-upload.css +0 -333
  49. package/src/components/input-search.css +0 -428
  50. package/src/components/linear-progress-indicator.css +0 -34
  51. package/src/components/modal.css +0 -507
  52. package/src/components/month-picker.css +0 -326
  53. package/src/components/multiple-choice-grid.css +0 -383
  54. package/src/components/one-time-password.css +0 -119
  55. package/src/components/pagination.css +0 -429
  56. package/src/components/password-input.css +0 -477
  57. package/src/components/phone-input.css +0 -412
  58. package/src/components/progress-bar.css +0 -447
  59. package/src/components/radio-input.css +0 -277
  60. package/src/components/reset.css +0 -431
  61. package/src/components/select-dropdown.css +0 -663
  62. package/src/components/select-option.css +0 -217
  63. package/src/components/single-file-upload.css +0 -186
  64. package/src/components/skeleton.css +0 -488
  65. package/src/components/spinner.css +0 -450
  66. package/src/components/stepper.css +0 -260
  67. package/src/components/tab-horizontal.css +0 -278
  68. package/src/components/tab-vertical.css +0 -261
  69. package/src/components/table-progress-bar.css +0 -48
  70. package/src/components/table.css +0 -538
  71. package/src/components/text-area.css +0 -220
  72. package/src/components/text-field.css +0 -278
  73. package/src/components/theme-toggle.css +0 -259
  74. package/src/components/time-picker.css +0 -436
  75. package/src/components/toast.css +0 -265
  76. package/src/components/toggle.css +0 -195
  77. package/src/components/tooltip.css +0 -343
  78. package/src/components/year-picker.css +0 -424
  79. package/src/index.css +0 -3
  80. /package/{src → dist}/tailwind/css/bgn.css +0 -0
  81. /package/{src → dist}/tailwind/css/bkn.css +0 -0
  82. /package/{src → dist}/tailwind/css/idds.css +0 -0
  83. /package/{src → dist}/tailwind/css/inagov.css +0 -0
  84. /package/{src → dist}/tailwind/css/inaku.css +0 -0
  85. /package/{src → dist}/tailwind/css/inapas.css +0 -0
  86. /package/{src → dist}/tailwind/css/lan.css +0 -0
  87. /package/{src → dist}/tailwind/css/pan-rb.css +0 -0
  88. /package/{src → dist}/tailwind/ts/bgn.ts +0 -0
  89. /package/{src → dist}/tailwind/ts/bkn.ts +0 -0
  90. /package/{src → dist}/tailwind/ts/default.ts +0 -0
  91. /package/{src → dist}/tailwind/ts/idds.ts +0 -0
  92. /package/{src → dist}/tailwind/ts/inagov.ts +0 -0
  93. /package/{src → dist}/tailwind/ts/inaku.ts +0 -0
  94. /package/{src → dist}/tailwind/ts/inapas.ts +0 -0
  95. /package/{src → dist}/tailwind/ts/lan.ts +0 -0
  96. /package/{src → dist}/tailwind/ts/pan-rb.ts +0 -0
@@ -1,97 +0,0 @@
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(
58
- .ina-breadcrumb__link--disabled
59
- ) {
60
- color: var(--ina-content-primary);
61
- text-decoration: underline;
62
- }
63
-
64
- .ina-breadcrumb__link--disabled {
65
- cursor: not-allowed;
66
- opacity: 0.5;
67
- pointer-events: none;
68
- }
69
-
70
- .ina-breadcrumb__icon {
71
- display: flex;
72
- align-items: center;
73
- flex-shrink: 0;
74
- }
75
-
76
- .ina-breadcrumb__text {
77
- overflow: hidden;
78
- text-overflow: ellipsis;
79
- white-space: nowrap;
80
- max-width: 100%;
81
- }
82
-
83
- /* Separator: text-content-secondary */
84
- .ina-breadcrumb__separator {
85
- display: flex;
86
- align-items: center;
87
- color: var(--ina-content-secondary);
88
- margin: 0 var(--ina-spacing-1);
89
- flex-shrink: 0;
90
- font-size: var(--ina-font-xs);
91
- }
92
-
93
- @media (min-width: 768px) {
94
- .ina-breadcrumb__separator {
95
- font-size: var(--ina-font-sm);
96
- }
97
- }
@@ -1,130 +0,0 @@
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
- }
@@ -1,241 +0,0 @@
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-primary);
113
- color: var(--ina-white, var(--ina-neutral-25));
114
- border: none;
115
- }
116
-
117
- .ina-button--primary:hover:not(:disabled) {
118
- background-color: color-mix(
119
- in srgb,
120
- var(--ina-primary-primary, var(--ina-content-primary)) 90%,
121
- transparent
122
- );
123
- }
124
-
125
- .ina-button--primary:focus:not(:disabled) {
126
- background-color: var(--ina-primary-primary, var(--ina-content-primary));
127
- box-shadow: 0 1px 2px 0 rgba(31, 31, 31, 0.1),
128
- 0 0 0 4px var(--ina-neutral-100, #f5f5f5);
129
- outline-offset: 2px;
130
- }
131
-
132
- .ina-button--primary:disabled {
133
- background-color: var(--ina-background-tertiary, var(--ina-neutral-100));
134
- color: var(--ina-content-tertiary, var(--ina-neutral-400));
135
- cursor: not-allowed;
136
- opacity: 1;
137
- }
138
-
139
- /* Hierarchy modifiers - Secondary */
140
- .ina-button--secondary {
141
- background-color: var(--ina-background-primary, var(--ina-neutral-25));
142
- color: var(--ina-content-primary, var(--ina-neutral-800));
143
- border: 1px solid var(--ina-stroke-primary, var(--ina-neutral-200));
144
- }
145
-
146
- .ina-button--secondary:hover:not(:disabled) {
147
- background-color: var(--ina-background-secondary, var(--ina-neutral-50));
148
- }
149
-
150
- .ina-button--secondary:focus:not(:disabled) {
151
- background-color: var(--ina-background-secondary, var(--ina-neutral-50));
152
- box-shadow: 0 1px 2px 0 rgba(31, 31, 31, 0.1),
153
- 0 0 0 4px var(--ina-neutral-100, #f5f5f5);
154
- outline-offset: 2px;
155
- }
156
-
157
- .ina-button--secondary:disabled {
158
- background-color: var(--ina-background-tertiary, var(--ina-neutral-100));
159
- color: var(--ina-content-tertiary, var(--ina-neutral-400));
160
- border-color: var(--ina-stroke-primary, var(--Stroke-Primary));
161
- cursor: not-allowed;
162
- opacity: 1;
163
- }
164
-
165
- /* Hierarchy modifiers - Tertiary */
166
- .ina-button--tertiary {
167
- background-color: var(--ina-background-primary, var(--ina-neutral-25));
168
- color: var(--ina-content-primary, var(--ina-neutral-800));
169
- border: none;
170
- }
171
-
172
- .ina-button--tertiary:hover:not(:disabled) {
173
- background-color: var(--ina-background-tertiary, var(--ina-neutral-100));
174
- }
175
-
176
- .ina-button--tertiary:focus:not(:disabled) {
177
- background-color: var(--ina-background-tertiary, var(--ina-neutral-100));
178
- box-shadow: 0 1px 2px 0 rgba(31, 31, 31, 0.1),
179
- 0 0 0 4px var(--ina-neutral-100, #f5f5f5);
180
- outline-offset: 2px;
181
- }
182
-
183
- .ina-button--tertiary:disabled {
184
- background-color: var(--ina-background-tertiary, var(--ina-neutral-100));
185
- color: var(--ina-content-tertiary, var(--ina-neutral-400));
186
- cursor: not-allowed;
187
- opacity: 1;
188
- }
189
-
190
- /* Hierarchy modifiers - Link */
191
- .ina-button--link {
192
- background-color: var(--ina-background-primary, var(--ina-neutral-25));
193
- color: var(--ina-content-guide, var(--Content-Guide));
194
- border: none;
195
- text-decoration: none;
196
- }
197
- .ina-button.ina-button--link {
198
- padding: 0;
199
- }
200
-
201
- .ina-button--link:hover:not(:disabled) {
202
- color: var(--ina-guide-400, var(--ina-blue-400));
203
- }
204
-
205
- .ina-button--link:focus:not(:disabled) {
206
- color: var(--ina-guide-400, var(--ina-blue-400));
207
- box-shadow: 0 1px 2px 0 rgba(31, 31, 31, 0.1),
208
- 0 0 0 4px var(--ina-neutral-100, #f5f5f5);
209
- outline-offset: 2px;
210
- }
211
-
212
- .ina-button--link:disabled {
213
- background-color: var(--ina-background-primary, var(--ina-neutral-25));
214
- color: var(--ina-content-tertiary, var(--ina-neutral-400));
215
- cursor: not-allowed;
216
- opacity: 1;
217
- }
218
-
219
- /* Hierarchy modifiers - Custom */
220
- .ina-button--custom {
221
- /* Custom variant tidak ada default styling, semua styling berdasarkan user */
222
- cursor: pointer;
223
- }
224
-
225
- .ina-button--custom:disabled {
226
- cursor: not-allowed;
227
- opacity: 0.6;
228
- }
229
-
230
- /* Loading state */
231
- .ina-button--loading {
232
- position: relative;
233
- pointer-events: none;
234
- }
235
-
236
- /* Icon styling */
237
- .ina-button__prefix-icon svg,
238
- .ina-button__suffix-icon svg {
239
- display: inline-block;
240
- vertical-align: middle;
241
- }