@idds/styles 1.2.10 → 1.2.12

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 (95) hide show
  1. package/dist/base.css +1071 -0
  2. package/dist/base.min.css +1 -0
  3. package/dist/index.css +14801 -0
  4. package/dist/index.min.css +15 -0
  5. package/dist/tailwind/css/bgn.min.css +1 -0
  6. package/dist/tailwind/css/bkn.min.css +1 -0
  7. package/dist/tailwind/css/idds.min.css +1 -0
  8. package/dist/tailwind/css/inagov.min.css +1 -0
  9. package/dist/tailwind/css/inaku.min.css +1 -0
  10. package/dist/tailwind/css/inapas.min.css +1 -0
  11. package/dist/tailwind/css/lan.min.css +1 -0
  12. package/dist/tailwind/css/pan-rb.min.css +1 -0
  13. package/package.json +31 -21
  14. package/src/colors/brands/bgn.css +0 -30
  15. package/src/colors/brands/bkn.css +0 -33
  16. package/src/colors/brands/inagov.css +0 -40
  17. package/src/colors/brands/inaku.css +0 -29
  18. package/src/colors/brands/inapas.css +0 -29
  19. package/src/colors/brands/lan.css +0 -39
  20. package/src/colors/brands/pan-rb.css +0 -31
  21. package/src/colors/index.css +0 -11
  22. package/src/colors/primitives/index.css +0 -175
  23. package/src/colors/product/index.css +0 -205
  24. package/src/colors/utilities/index.css +0 -77
  25. package/src/components/accordion-card.css +0 -99
  26. package/src/components/accordion.css +0 -120
  27. package/src/components/action-dropdown.css +0 -140
  28. package/src/components/alert.css +0 -180
  29. package/src/components/avatar.css +0 -182
  30. package/src/components/badge.css +0 -247
  31. package/src/components/bottom-sheet.css +0 -61
  32. package/src/components/breadcrumb.css +0 -97
  33. package/src/components/button-group.css +0 -130
  34. package/src/components/button.css +0 -241
  35. package/src/components/card.css +0 -576
  36. package/src/components/carousel.css +0 -100
  37. package/src/components/chart.css +0 -81
  38. package/src/components/checkbox.css +0 -211
  39. package/src/components/chip.css +0 -245
  40. package/src/components/collapse.css +0 -84
  41. package/src/components/confirmation.css +0 -131
  42. package/src/components/date-picker.css +0 -1059
  43. package/src/components/divider.css +0 -174
  44. package/src/components/drawer.css +0 -752
  45. package/src/components/dropdown.css +0 -370
  46. package/src/components/field-input-table.css +0 -347
  47. package/src/components/file-upload.css +0 -333
  48. package/src/components/input-search.css +0 -428
  49. package/src/components/linear-progress-indicator.css +0 -34
  50. package/src/components/modal.css +0 -506
  51. package/src/components/month-picker.css +0 -326
  52. package/src/components/multiple-choice-grid.css +0 -383
  53. package/src/components/one-time-password.css +0 -119
  54. package/src/components/pagination.css +0 -429
  55. package/src/components/password-input.css +0 -477
  56. package/src/components/phone-input.css +0 -412
  57. package/src/components/progress-bar.css +0 -447
  58. package/src/components/radio-input.css +0 -277
  59. package/src/components/reset.css +0 -431
  60. package/src/components/select-dropdown.css +0 -663
  61. package/src/components/select-option.css +0 -217
  62. package/src/components/single-file-upload.css +0 -186
  63. package/src/components/skeleton.css +0 -488
  64. package/src/components/spinner.css +0 -450
  65. package/src/components/stepper.css +0 -260
  66. package/src/components/tab-horizontal.css +0 -278
  67. package/src/components/tab-vertical.css +0 -261
  68. package/src/components/table-progress-bar.css +0 -48
  69. package/src/components/table.css +0 -538
  70. package/src/components/text-area.css +0 -220
  71. package/src/components/text-field.css +0 -278
  72. package/src/components/theme-toggle.css +0 -259
  73. package/src/components/time-picker.css +0 -436
  74. package/src/components/toast.css +0 -265
  75. package/src/components/toggle.css +0 -195
  76. package/src/components/tooltip.css +0 -343
  77. package/src/components/year-picker.css +0 -424
  78. package/src/index.css +0 -3
  79. /package/{src → dist}/tailwind/css/bgn.css +0 -0
  80. /package/{src → dist}/tailwind/css/bkn.css +0 -0
  81. /package/{src → dist}/tailwind/css/idds.css +0 -0
  82. /package/{src → dist}/tailwind/css/inagov.css +0 -0
  83. /package/{src → dist}/tailwind/css/inaku.css +0 -0
  84. /package/{src → dist}/tailwind/css/inapas.css +0 -0
  85. /package/{src → dist}/tailwind/css/lan.css +0 -0
  86. /package/{src → dist}/tailwind/css/pan-rb.css +0 -0
  87. /package/{src → dist}/tailwind/ts/bgn.ts +0 -0
  88. /package/{src → dist}/tailwind/ts/bkn.ts +0 -0
  89. /package/{src → dist}/tailwind/ts/default.ts +0 -0
  90. /package/{src → dist}/tailwind/ts/idds.ts +0 -0
  91. /package/{src → dist}/tailwind/ts/inagov.ts +0 -0
  92. /package/{src → dist}/tailwind/ts/inaku.ts +0 -0
  93. /package/{src → dist}/tailwind/ts/inapas.ts +0 -0
  94. /package/{src → dist}/tailwind/ts/lan.ts +0 -0
  95. /package/{src → dist}/tailwind/ts/pan-rb.ts +0 -0
@@ -1,265 +0,0 @@
1
- /* Toast Component Styles */
2
-
3
- /* Base container */
4
- .ina-toast-container {
5
- position: fixed;
6
- z-index: 1000;
7
- pointer-events: none;
8
- display: flex;
9
- gap: var(--ina-spacing-2);
10
- padding: var(--ina-spacing-2);
11
- max-width: 100vw;
12
- box-sizing: border-box;
13
- }
14
-
15
- /* Position variants */
16
- .ina-toast-container--top-left {
17
- top: var(--ina-spacing-4);
18
- left: var(--ina-spacing-4);
19
- align-items: flex-start;
20
- flex-direction: column;
21
- }
22
-
23
- .ina-toast-container--top-right {
24
- top: var(--ina-spacing-4);
25
- right: var(--ina-spacing-4);
26
- align-items: flex-end;
27
- flex-direction: column;
28
- }
29
-
30
- .ina-toast-container--top-middle {
31
- top: var(--ina-spacing-4);
32
- left: 50%;
33
- transform: translateX(-50%);
34
- align-items: center;
35
- flex-direction: column;
36
- }
37
-
38
- .ina-toast-container--bottom-left {
39
- bottom: var(--ina-spacing-4);
40
- left: var(--ina-spacing-4);
41
- align-items: flex-start;
42
- flex-direction: column-reverse;
43
- }
44
-
45
- .ina-toast-container--bottom-right {
46
- bottom: var(--ina-spacing-4);
47
- right: var(--ina-spacing-4);
48
- align-items: flex-end;
49
- flex-direction: column-reverse;
50
- }
51
-
52
- .ina-toast-container--bottom-middle {
53
- bottom: var(--ina-spacing-4);
54
- left: 50%;
55
- transform: translateX(-50%);
56
- align-items: center;
57
- flex-direction: column-reverse;
58
- }
59
-
60
- .ina-toast-container--left-middle {
61
- top: 50%;
62
- left: var(--ina-spacing-4);
63
- transform: translateY(-50%);
64
- align-items: flex-start;
65
- flex-direction: column;
66
- }
67
-
68
- .ina-toast-container--right-middle {
69
- top: 50%;
70
- right: var(--ina-spacing-4);
71
- transform: translateY(-50%);
72
- align-items: flex-end;
73
- flex-direction: column;
74
- }
75
-
76
- /* Toast item wrapper */
77
- .ina-toast-item {
78
- pointer-events: none;
79
- }
80
-
81
- /* Toast itself */
82
- .ina-toast {
83
- pointer-events: auto;
84
- border-radius: var(--ina-radius-lg);
85
- box-shadow: 0 12px 16px -4px rgba(10, 13, 18, 0.08),
86
- 0 4px 6px -2px rgba(10, 13, 18, 0.03);
87
- padding: var(--ina-spacing-4);
88
- display: flex;
89
- align-items: center;
90
- width: 100%;
91
- min-width: 358px;
92
- max-width: 100%;
93
- transition: opacity 300ms ease-in-out;
94
- background-color: var(--ina-background-primary);
95
- border: 1px solid var(--ina-stroke-primary);
96
- color: var(--ina-content-primary);
97
- min-height: 40px;
98
- font-weight: 500;
99
- }
100
-
101
- /* Toast content */
102
- .ina-toast__content {
103
- display: flex;
104
- align-items: center;
105
- flex: 1;
106
- min-width: 0; /* Allow content to shrink below content size */
107
- }
108
-
109
- .ina-toast__icon {
110
- margin-right: var(--ina-spacing-2);
111
- margin-top: 0;
112
- margin-bottom: 0;
113
- color: var(--ina-white);
114
- }
115
-
116
- /* Toast text area */
117
- .ina-toast__text-area {
118
- display: flex;
119
- flex-direction: column;
120
- flex: 1;
121
- min-width: 0; /* Allow text to shrink below content size */
122
- overflow-wrap: break-word;
123
- word-break: break-word;
124
- margin: 0;
125
- padding: 0;
126
- }
127
-
128
- .ina-toast__title {
129
- font-size: var(--ina-font-xs);
130
- font-weight: 500;
131
- line-height: 1.4;
132
- margin: 0;
133
- padding: 0;
134
- }
135
-
136
- .ina-toast__description {
137
- margin-top: var(--ina-spacing-1);
138
- margin-bottom: 0;
139
- padding: 0;
140
- font-size: var(--ina-font-2xs);
141
- line-height: 1.4;
142
- }
143
-
144
- /* Action area */
145
- .ina-toast__action-area {
146
- margin-left: var(--ina-spacing-3);
147
- flex-shrink: 0;
148
- }
149
-
150
- /* Close button */
151
- .ina-toast__close-button {
152
- margin-left: var(--ina-spacing-2);
153
- flex-shrink: 0;
154
- background: none;
155
- border: none;
156
- cursor: pointer;
157
- padding: 0;
158
- display: inline-flex;
159
- align-items: center;
160
- justify-content: center;
161
- transition: stroke-width var(--ina-transition-base);
162
- }
163
-
164
- .ina-toast__close-button:hover {
165
- stroke-width: 3;
166
- }
167
-
168
- .ina-toast__close-icon {
169
- width: 16px;
170
- height: 16px;
171
- color: var(--ina-white);
172
- }
173
-
174
- /* Style variants */
175
- /* Note: Style variants are handled by state styles below */
176
-
177
- /* State styles - Solid (default style) */
178
- .ina-toast--state-default.ina-toast--style-solid {
179
- background-color: var(--ina-content-primary) !important;
180
- border: 1px solid var(--ina-content-primary) !important;
181
- color: var(--ina-white) !important;
182
- }
183
-
184
- .ina-toast--state-destructive.ina-toast--style-solid {
185
- background-color: var(--ina-negative-500) !important;
186
- border: 1px solid var(--ina-negative-500) !important;
187
- color: var(--ina-white) !important;
188
- }
189
-
190
- .ina-toast--state-positive.ina-toast--style-solid {
191
- background-color: var(--ina-positive-700) !important;
192
- border: 1px solid var(--ina-positive-700) !important;
193
- color: var(--ina-white) !important;
194
- }
195
-
196
- /* State styles - Outline (default style) */
197
- .ina-toast--state-default.ina-toast--style-outline {
198
- background-color: var(--ina-background-primary) !important;
199
- border: 1px solid var(--ina-content-primary) !important;
200
- color: var(--ina-content-primary) !important;
201
- }
202
-
203
- .ina-toast--state-destructive.ina-toast--style-outline {
204
- background-color: var(--ina-negative-50) !important;
205
- border: 1px solid var(--ina-negative-500) !important;
206
- color: var(--ina-negative-500) !important;
207
- }
208
-
209
- .ina-toast--state-positive.ina-toast--style-outline {
210
- background-color: var(--ina-positive-50) !important;
211
- border: 1px solid var(--ina-positive-700) !important;
212
- color: var(--ina-positive-700) !important;
213
- }
214
-
215
- /* Visibility states */
216
- .ina-toast--visible {
217
- opacity: 1;
218
- }
219
-
220
- .ina-toast--hidden {
221
- opacity: 0;
222
- }
223
-
224
- /* Responsive adjustments */
225
- /* Mobile (< 640px) */
226
- @media (max-width: 639px) {
227
- .ina-toast {
228
- /* Jika viewport < 358px, gunakan max-width dari viewport untuk mencegah overflow */
229
- max-width: calc(100vw - var(--ina-spacing-8));
230
- /* Min-width akan otomatis tidak berlaku jika max-width lebih kecil */
231
- min-width: min(358px, calc(100vw - var(--ina-spacing-8)));
232
- padding: var(--ina-spacing-3);
233
- min-height: 40px;
234
- }
235
-
236
- .ina-toast__title {
237
- font-size: var(--ina-font-xs);
238
- }
239
-
240
- .ina-toast__description {
241
- font-size: var(--ina-font-2xs);
242
- }
243
- }
244
-
245
- /* Small (>= 640px) */
246
- @media (min-width: 640px) {
247
- .ina-toast {
248
- min-height: 48px;
249
- }
250
-
251
- .ina-toast__title {
252
- font-size: var(--ina-font-xs);
253
- }
254
- }
255
-
256
- /* Large (>= 1024px) */
257
- @media (min-width: 1024px) {
258
- .ina-toast {
259
- min-height: 52px;
260
- }
261
-
262
- .ina-toast__title {
263
- font-size: var(--ina-font-sm);
264
- }
265
- }
@@ -1,195 +0,0 @@
1
- /* =========================== */
2
- /* TOGGLE SWITCH STYLES */
3
- /* =========================== */
4
-
5
- .ina-toggle {
6
- position: relative;
7
- display: inline-flex;
8
- align-items: center;
9
- cursor: pointer;
10
- user-select: none;
11
- }
12
-
13
- .ina-toggle--disabled {
14
- cursor: not-allowed;
15
- }
16
-
17
- /* Hide the actual input */
18
- .ina-toggle__input {
19
- position: absolute;
20
- opacity: 0;
21
- width: 0;
22
- height: 0;
23
- margin: 0;
24
- padding: 0;
25
- border: none;
26
- outline: none;
27
- }
28
-
29
- /* Track (the background oval) */
30
- .ina-toggle__track {
31
- position: relative;
32
- display: flex;
33
- align-items: center;
34
- background-color: var(--ina-background-secondary);
35
- border-radius: 9999px;
36
- transition: all var(--ina-transition-duration-200) ease-in-out;
37
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
38
- cursor: pointer;
39
- }
40
-
41
- .ina-toggle__track--checked {
42
- background-color: var(--ina-positive-500);
43
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
44
- }
45
-
46
- .ina-toggle__track--disabled {
47
- background-color: var(--ina-background-tertiary);
48
- cursor: not-allowed;
49
- }
50
-
51
- .ina-toggle__track--disabled.ina-toggle__track--checked {
52
- background-color: var(--ina-background-tertiary);
53
- }
54
-
55
- /* Thumb (the sliding circle) */
56
- .ina-toggle__thumb {
57
- position: absolute;
58
- background-color: var(--ina-background-primary);
59
- border-radius: 50%;
60
- transition: all var(--ina-transition-duration-200) ease-in-out;
61
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
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
- }
66
-
67
- .ina-toggle__thumb--checked {
68
- transform: translateX(100%);
69
- }
70
-
71
- .ina-toggle__thumb--disabled {
72
- background-color: var(--ina-background-secondary);
73
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
74
- }
75
-
76
- /* Size variants */
77
- /* Small: 36px x 20px */
78
- .ina-toggle--size-sm .ina-toggle__track {
79
- width: 36px;
80
- height: 20px;
81
- }
82
-
83
- .ina-toggle--size-sm .ina-toggle__thumb {
84
- width: 16px;
85
- height: 16px;
86
- top: 2px;
87
- left: 2px;
88
- }
89
-
90
- .ina-toggle--size-sm .ina-toggle__thumb--checked {
91
- transform: translateX(16px);
92
- }
93
-
94
- /* Medium: 44px x 24px */
95
- .ina-toggle--size-md .ina-toggle__track {
96
- width: 44px;
97
- height: 24px;
98
- }
99
-
100
- .ina-toggle--size-md .ina-toggle__thumb {
101
- width: 20px;
102
- height: 20px;
103
- top: 2px;
104
- left: 2px;
105
- }
106
-
107
- .ina-toggle--size-md .ina-toggle__thumb--checked {
108
- transform: translateX(20px);
109
- }
110
-
111
- /* Hover states */
112
- .ina-toggle:not(.ina-toggle--disabled):hover .ina-toggle__track {
113
- box-shadow: 0 0 6px 0 rgba(31, 31, 31, 0.1),
114
- 0 0 4px 6px rgba(31, 31, 31, 0.04);
115
- }
116
-
117
- .ina-toggle:not(.ina-toggle--disabled):hover .ina-toggle__thumb {
118
- box-shadow: 0 0 6px 0 rgba(31, 31, 31, 0.1),
119
- 0 0 4px 6px rgba(31, 31, 31, 0.04);
120
- }
121
-
122
- /* Focus states */
123
- .ina-toggle__input:focus + .ina-toggle__track {
124
- outline: 2px solid var(--ina-positive-500);
125
- outline-offset: 2px;
126
- box-shadow: 0 0 6px 0 rgba(31, 31, 31, 0.1),
127
- 0 0 4px 6px rgba(31, 31, 31, 0.04);
128
- }
129
-
130
- .ina-toggle__input:focus:not(:focus-visible) + .ina-toggle__track {
131
- outline: none;
132
- }
133
-
134
- /* Active states */
135
- .ina-toggle:not(.ina-toggle--disabled):active .ina-toggle__thumb {
136
- transform: scale(0.95);
137
- }
138
-
139
- .ina-toggle:not(.ina-toggle--disabled):active .ina-toggle__thumb--checked {
140
- transform: translateX(20px) scale(0.95);
141
- }
142
-
143
- .ina-toggle--size-sm:not(.ina-toggle--disabled):active
144
- .ina-toggle__thumb--checked {
145
- transform: translateX(16px) scale(0.95);
146
- }
147
-
148
- /* Dark mode */
149
- [data-theme='dark'] .ina-toggle__track {
150
- background-color: var(--ina-stroke-secondary);
151
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
152
- }
153
-
154
- [data-theme='dark'] .ina-toggle__track--checked {
155
- background-color: var(--ina-positive-500);
156
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
157
- }
158
-
159
- [data-theme='dark'] .ina-toggle__track--disabled {
160
- background-color: var(--ina-background-tertiary);
161
- }
162
-
163
- [data-theme='dark'] .ina-toggle__track--disabled.ina-toggle__track--checked {
164
- background-color: var(--ina-background-tertiary);
165
- }
166
-
167
- [data-theme='dark'] .ina-toggle__thumb {
168
- background-color: var(--ina-background-primary);
169
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
170
- }
171
-
172
- [data-theme='dark'] .ina-toggle__thumb--disabled {
173
- background-color: var(--ina-background-secondary);
174
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
175
- }
176
-
177
- [data-theme='dark']
178
- .ina-toggle:not(.ina-toggle--disabled):hover
179
- .ina-toggle__thumb {
180
- box-shadow: 0 0 6px 0 rgba(31, 31, 31, 0.1),
181
- 0 0 4px 6px rgba(31, 31, 31, 0.04);
182
- }
183
-
184
- [data-theme='dark'] .ina-toggle__input:focus + .ina-toggle__track {
185
- box-shadow: 0 0 6px 0 rgba(31, 31, 31, 0.1),
186
- 0 0 4px 6px rgba(31, 31, 31, 0.04);
187
- }
188
-
189
- /* Reduced motion */
190
- @media (prefers-reduced-motion: reduce) {
191
- .ina-toggle__track,
192
- .ina-toggle__thumb {
193
- transition: none;
194
- }
195
- }