@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,452 @@
1
+ /**
2
+ * Tooltip Component Styles
3
+ * Menggunakan BEM naming convention dengan prefix "ina-"
4
+ * Support multiple variants: basic, light, dark, media, custom
5
+ */
6
+
7
+ /* Base wrapper */
8
+ .ina-tooltip {
9
+ position: relative;
10
+ display: inline-block;
11
+ }
12
+
13
+ .ina-tooltip__trigger {
14
+ display: inline-block;
15
+ }
16
+
17
+ /* Tooltip content container */
18
+ .ina-tooltip__content {
19
+ position: absolute;
20
+ z-index: 999999;
21
+ /* Ensure tooltip is always on top of everything */
22
+ pointer-events: none;
23
+ /* Prevent clipping by any parent container */
24
+ transform: translateZ(0);
25
+ will-change: transform;
26
+ }
27
+
28
+ /* Basic Tooltip Bubble */
29
+ .ina-tooltip__bubble {
30
+ background-color: var(--ina-neutral-700, var(--Neutral-700));
31
+ color: var(--ina-content-white, var(--Content-White));
32
+ pointer-events: auto;
33
+ font-size: 12px;
34
+ font-weight: 600;
35
+ line-height: 16px;
36
+ padding: 8px 12px;
37
+ border-radius: 8px;
38
+ white-space: nowrap;
39
+ max-width: 200px;
40
+ }
41
+
42
+ .ina-tooltip__bubble--basic {
43
+ white-space: normal;
44
+ word-wrap: break-word;
45
+ }
46
+
47
+ /* Card Tooltip (Light, Dark, Media) */
48
+ .ina-tooltip__card {
49
+ position: relative;
50
+ pointer-events: auto;
51
+ border-radius: 8px;
52
+ box-shadow: 0 12px 16px -4px rgba(0, 0, 0, 0.1),
53
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);
54
+ overflow: hidden;
55
+ width: 320px;
56
+ display: flex;
57
+ flex-direction: column;
58
+ }
59
+
60
+ .ina-tooltip__card--light {
61
+ background-color: var(--ina-background-primary, var(--ina-neutral-25));
62
+ color: var(--ina-content-primary, var(--ina-neutral-800));
63
+ }
64
+
65
+ .ina-tooltip__card--dark {
66
+ background-color: var(--ina-neutral-900, var(--Neutral-900));
67
+ color: var(--ina-content-white, var(--Content-White));
68
+ }
69
+
70
+ .ina-tooltip__card--media {
71
+ background-color: var(--ina-background-primary, var(--ina-neutral-25));
72
+ color: var(--ina-content-primary, var(--ina-neutral-800));
73
+ }
74
+
75
+ /* Close button */
76
+ .ina-tooltip__close {
77
+ position: absolute;
78
+ top: 12px;
79
+ right: 12px;
80
+ width: 24px;
81
+ height: 24px;
82
+ border-radius: 50%;
83
+ background-color: var(
84
+ --ina-background-secondary,
85
+ var(--Background-Secondary)
86
+ );
87
+ border: none;
88
+ cursor: pointer;
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ z-index: 10;
93
+ transition: all 0.2s ease;
94
+ color: var(--ina-content-primary, var(--ina-neutral-800));
95
+ }
96
+
97
+ .ina-tooltip__close:hover {
98
+ background-color: var(--ina-background-tertiary, var(--Background-Tertiary));
99
+ }
100
+
101
+ .ina-tooltip__card--dark .ina-tooltip__close {
102
+ background-color: var(--ina-neutral-800, var(--Neutral-800));
103
+ color: var(--ina-content-white, var(--Content-White));
104
+ }
105
+
106
+ .ina-tooltip__card--dark .ina-tooltip__close:hover {
107
+ background-color: var(--ina-neutral-700, var(--Neutral-700));
108
+ }
109
+
110
+ /* Image section (for media variant) */
111
+ .ina-tooltip__image {
112
+ width: 100%;
113
+ height: 200px;
114
+ overflow: hidden;
115
+ background-color: var(--ina-background-tertiary, var(--Background-Tertiary));
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ }
120
+
121
+ .ina-tooltip__image img {
122
+ width: 100%;
123
+ height: 100%;
124
+ object-fit: cover;
125
+ }
126
+
127
+ /* Content section */
128
+ .ina-tooltip__content-section {
129
+ padding: 32px 64px;
130
+ display: flex;
131
+ flex-direction: column;
132
+ gap: 16px;
133
+ }
134
+
135
+ .ina-tooltip__title {
136
+ font-size: 16px;
137
+ font-weight: 600;
138
+ line-height: 24px;
139
+ color: var(--ina-content-primary, var(--ina-neutral-800));
140
+ margin: 0;
141
+ }
142
+
143
+ .ina-tooltip__card--dark .ina-tooltip__title {
144
+ color: var(--ina-content-white, var(--Content-White));
145
+ }
146
+
147
+ .ina-tooltip__description {
148
+ font-size: 12px;
149
+ font-weight: 400;
150
+ line-height: 16px;
151
+ color: var(--ina-content-secondary, var(--Content-Secondary));
152
+ margin: 0;
153
+ }
154
+
155
+ .ina-tooltip__card--dark .ina-tooltip__description {
156
+ color: var(--ina-content-tertiary, var(--Content-Tertiary));
157
+ }
158
+
159
+ /* Pagination dots */
160
+ .ina-tooltip__pagination {
161
+ display: flex;
162
+ gap: 8px;
163
+ align-items: center;
164
+ }
165
+
166
+ .ina-tooltip__pagination-dot {
167
+ width: 6px;
168
+ height: 6px;
169
+ border-radius: 50%;
170
+ background-color: var(--ina-stroke-primary, var(--Stroke-Primary));
171
+ transition: all 0.2s ease;
172
+ }
173
+
174
+ .ina-tooltip__pagination-dot--active {
175
+ background-color: var(--ina-content-primary, var(--ina-neutral-800));
176
+ width: 8px;
177
+ height: 8px;
178
+ }
179
+
180
+ .ina-tooltip__card--dark .ina-tooltip__pagination-dot {
181
+ background-color: var(--ina-neutral-600, var(--Neutral-600));
182
+ }
183
+
184
+ .ina-tooltip__card--dark .ina-tooltip__pagination-dot--active {
185
+ background-color: var(--ina-content-white, var(--Content-White));
186
+ }
187
+
188
+ /* Action buttons */
189
+ .ina-tooltip__actions {
190
+ display: flex;
191
+ gap: 8px;
192
+ justify-content: flex-end;
193
+ margin-top: 8px;
194
+ }
195
+
196
+ .ina-tooltip__action {
197
+ flex-shrink: 0;
198
+ }
199
+
200
+ /* Tooltip arrow */
201
+ .ina-tooltip__arrow {
202
+ position: absolute;
203
+ width: 0;
204
+ height: 0;
205
+ }
206
+
207
+ /* Arrow colors for variants */
208
+ .ina-tooltip__arrow--variant-basic {
209
+ border-top-color: var(--ina-neutral-700, var(--Neutral-700));
210
+ border-bottom-color: var(--ina-neutral-700, var(--Neutral-700));
211
+ border-left-color: var(--ina-neutral-700, var(--Neutral-700));
212
+ border-right-color: var(--ina-neutral-700, var(--Neutral-700));
213
+ }
214
+
215
+ .ina-tooltip__arrow--variant-light {
216
+ border-top-color: var(--ina-background-primary, var(--ina-neutral-25));
217
+ border-bottom-color: var(--ina-background-primary, var(--ina-neutral-25));
218
+ border-left-color: var(--ina-background-primary, var(--ina-neutral-25));
219
+ border-right-color: var(--ina-background-primary, var(--ina-neutral-25));
220
+ }
221
+
222
+ .ina-tooltip__arrow--variant-dark {
223
+ border-top-color: var(--ina-neutral-900, var(--Neutral-900));
224
+ border-bottom-color: var(--ina-neutral-900, var(--Neutral-900));
225
+ border-left-color: var(--ina-neutral-900, var(--Neutral-900));
226
+ border-right-color: var(--ina-neutral-900, var(--Neutral-900));
227
+ }
228
+
229
+ .ina-tooltip__arrow--variant-media {
230
+ border-top-color: var(--ina-background-primary, var(--ina-neutral-25));
231
+ border-bottom-color: var(--ina-background-primary, var(--ina-neutral-25));
232
+ border-left-color: var(--ina-background-primary, var(--ina-neutral-25));
233
+ border-right-color: var(--ina-background-primary, var(--ina-neutral-25));
234
+ }
235
+
236
+ /* Positioning classes */
237
+ .ina-tooltip--placement-top {
238
+ bottom: 100%;
239
+ left: 50%;
240
+ transform: translateX(-50%);
241
+ margin-bottom: 8px;
242
+ }
243
+
244
+ .ina-tooltip--placement-top-start {
245
+ bottom: 100%;
246
+ left: 0;
247
+ margin-bottom: 8px;
248
+ }
249
+
250
+ .ina-tooltip--placement-top-end {
251
+ bottom: 100%;
252
+ right: 0;
253
+ margin-bottom: 8px;
254
+ }
255
+
256
+ .ina-tooltip--placement-bottom {
257
+ top: 100%;
258
+ left: 50%;
259
+ transform: translateX(-50%);
260
+ margin-top: 8px;
261
+ }
262
+
263
+ .ina-tooltip--placement-bottom-start {
264
+ top: 100%;
265
+ left: 0;
266
+ margin-top: 8px;
267
+ }
268
+
269
+ .ina-tooltip--placement-bottom-end {
270
+ top: 100%;
271
+ right: 0;
272
+ margin-top: 8px;
273
+ }
274
+
275
+ .ina-tooltip--placement-left {
276
+ right: 100%;
277
+ top: 50%;
278
+ transform: translateY(-50%);
279
+ margin-right: 8px;
280
+ }
281
+
282
+ .ina-tooltip--placement-left-start {
283
+ right: 100%;
284
+ top: 0;
285
+ margin-right: 8px;
286
+ }
287
+
288
+ .ina-tooltip--placement-left-end {
289
+ right: 100%;
290
+ bottom: 0;
291
+ margin-right: 8px;
292
+ }
293
+
294
+ .ina-tooltip--placement-right {
295
+ left: 100%;
296
+ top: 50%;
297
+ transform: translateY(-50%);
298
+ margin-left: 8px;
299
+ }
300
+
301
+ .ina-tooltip--placement-right-start {
302
+ left: 100%;
303
+ top: 0;
304
+ margin-left: 8px;
305
+ }
306
+
307
+ .ina-tooltip--placement-right-end {
308
+ left: 100%;
309
+ bottom: 0;
310
+ margin-left: 8px;
311
+ }
312
+
313
+ /* Arrow positioning - Top arrows (pointing down) */
314
+ .ina-tooltip__arrow--placement-top {
315
+ left: 50%;
316
+ transform: translateX(-50%);
317
+ bottom: -6px;
318
+ border-left: 6px solid transparent;
319
+ border-right: 6px solid transparent;
320
+ border-top: 6px solid;
321
+ }
322
+
323
+ .ina-tooltip__arrow--placement-top-start {
324
+ left: 16px;
325
+ bottom: -6px;
326
+ border-left: 6px solid transparent;
327
+ border-right: 6px solid transparent;
328
+ border-top: 6px solid;
329
+ }
330
+
331
+ .ina-tooltip__arrow--placement-top-end {
332
+ right: 16px;
333
+ bottom: -6px;
334
+ border-left: 6px solid transparent;
335
+ border-right: 6px solid transparent;
336
+ border-top: 6px solid;
337
+ }
338
+
339
+ /* Bottom arrows (pointing up) */
340
+ .ina-tooltip__arrow--placement-bottom {
341
+ left: 50%;
342
+ transform: translateX(-50%);
343
+ top: -6px;
344
+ border-left: 6px solid transparent;
345
+ border-right: 6px solid transparent;
346
+ border-bottom: 6px solid;
347
+ }
348
+
349
+ .ina-tooltip__arrow--placement-bottom-start {
350
+ left: 16px;
351
+ top: -6px;
352
+ border-left: 6px solid transparent;
353
+ border-right: 6px solid transparent;
354
+ border-bottom: 6px solid;
355
+ }
356
+
357
+ .ina-tooltip__arrow--placement-bottom-end {
358
+ right: 16px;
359
+ top: -6px;
360
+ border-left: 6px solid transparent;
361
+ border-right: 6px solid transparent;
362
+ border-bottom: 6px solid;
363
+ }
364
+
365
+ /* Left arrows (pointing right) */
366
+ .ina-tooltip__arrow--placement-left {
367
+ top: 50%;
368
+ transform: translateY(-50%);
369
+ right: -6px;
370
+ border-top: 6px solid transparent;
371
+ border-bottom: 6px solid transparent;
372
+ border-left: 6px solid;
373
+ }
374
+
375
+ .ina-tooltip__arrow--placement-left-start {
376
+ top: 16px;
377
+ right: -6px;
378
+ border-top: 6px solid transparent;
379
+ border-bottom: 6px solid transparent;
380
+ border-left: 6px solid;
381
+ }
382
+
383
+ .ina-tooltip__arrow--placement-left-end {
384
+ bottom: 16px;
385
+ right: -6px;
386
+ border-top: 6px solid transparent;
387
+ border-bottom: 6px solid transparent;
388
+ border-left: 6px solid;
389
+ }
390
+
391
+ /* Right arrows (pointing left) */
392
+ .ina-tooltip__arrow--placement-right {
393
+ top: 50%;
394
+ transform: translateY(-50%);
395
+ left: -6px;
396
+ border-top: 6px solid transparent;
397
+ border-bottom: 6px solid transparent;
398
+ border-right: 6px solid;
399
+ }
400
+
401
+ .ina-tooltip__arrow--placement-right-start {
402
+ top: 16px;
403
+ left: -6px;
404
+ border-top: 6px solid transparent;
405
+ border-bottom: 6px solid transparent;
406
+ border-right: 6px solid;
407
+ }
408
+
409
+ .ina-tooltip__arrow--placement-right-end {
410
+ bottom: 16px;
411
+ left: -6px;
412
+ border-top: 6px solid transparent;
413
+ border-bottom: 6px solid transparent;
414
+ border-right: 6px solid;
415
+ }
416
+
417
+ /* Visibility states */
418
+ .ina-tooltip__content--visible {
419
+ opacity: 1;
420
+ visibility: visible;
421
+ transition: opacity 0.2s ease, visibility 0.2s ease;
422
+ }
423
+
424
+ .ina-tooltip__content--hidden {
425
+ opacity: 0;
426
+ visibility: hidden;
427
+ transition: opacity 0.2s ease, visibility 0.2s ease;
428
+ }
429
+
430
+ /* Focus styles */
431
+ .ina-tooltip:focus {
432
+ outline: 2px solid var(--ina-primary-500, var(--Primary-500));
433
+ outline-offset: 2px;
434
+ }
435
+
436
+ /* Responsive adjustments */
437
+ @media (max-width: 640px) {
438
+ .ina-tooltip__bubble {
439
+ font-size: 11px;
440
+ max-width: 180px;
441
+ white-space: normal;
442
+ padding: 6px 10px;
443
+ }
444
+
445
+ .ina-tooltip__card {
446
+ width: 280px;
447
+ }
448
+
449
+ .ina-tooltip__content-section {
450
+ padding: 24px 32px;
451
+ }
452
+ }