@duskmoon-dev/core 0.1.0 → 0.2.0

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 (110) hide show
  1. package/README.md +366 -78
  2. package/dist/components/accordion.css +244 -0
  3. package/dist/components/alert.css +199 -0
  4. package/dist/components/appbar.css +493 -0
  5. package/dist/components/autocomplete.css +269 -0
  6. package/dist/components/avatar.css +167 -0
  7. package/dist/components/badge.css +178 -0
  8. package/dist/components/bottom-navigation.css +263 -0
  9. package/dist/components/bottomsheet.css +334 -0
  10. package/dist/components/button.css +475 -0
  11. package/dist/components/card.css +220 -0
  12. package/dist/components/cascader.css +418 -0
  13. package/dist/components/checkbox.css +231 -0
  14. package/dist/components/chip.css +211 -0
  15. package/dist/components/collapse.css +454 -0
  16. package/dist/components/datepicker.css +741 -0
  17. package/dist/components/dialog.css +173 -0
  18. package/dist/components/divider.css +284 -0
  19. package/dist/components/drawer.css +371 -0
  20. package/dist/components/file-upload.css +321 -0
  21. package/dist/components/form-group.css +308 -0
  22. package/dist/components/form.css +441 -0
  23. package/dist/components/index.css +14951 -0
  24. package/dist/components/input.css +240 -0
  25. package/dist/components/list.css +188 -0
  26. package/dist/components/markdown-body.css +405 -0
  27. package/dist/components/modal.css +291 -0
  28. package/dist/components/multi-select.css +491 -0
  29. package/dist/components/navigation.css +736 -0
  30. package/dist/components/otp-input.css +195 -0
  31. package/dist/components/pin-input.css +184 -0
  32. package/dist/components/popover.css +392 -0
  33. package/dist/components/progress.css +238 -0
  34. package/dist/components/radio.css +183 -0
  35. package/dist/components/rating.css +230 -0
  36. package/dist/components/segment-control.css +186 -0
  37. package/dist/components/select.css +205 -0
  38. package/dist/components/skeleton.css +216 -0
  39. package/dist/components/slider.css +327 -0
  40. package/dist/components/snackbar.css +311 -0
  41. package/dist/components/stepper.css +313 -0
  42. package/dist/components/switch.css +234 -0
  43. package/dist/components/table.css +199 -0
  44. package/dist/components/textarea.css +398 -0
  45. package/dist/components/time-input.css +252 -0
  46. package/dist/components/timeline.css +353 -0
  47. package/dist/components/toast.css +251 -0
  48. package/dist/components/tooltip.css +284 -0
  49. package/dist/components/tree-select.css +472 -0
  50. package/dist/esm/components/accordion.js +251 -0
  51. package/dist/esm/components/alert.js +206 -0
  52. package/dist/esm/components/appbar.js +500 -0
  53. package/dist/esm/components/autocomplete.js +276 -0
  54. package/dist/esm/components/avatar.js +174 -0
  55. package/dist/esm/components/badge.js +185 -0
  56. package/dist/esm/components/bottom-navigation.js +270 -0
  57. package/dist/esm/components/bottomsheet.js +341 -0
  58. package/dist/esm/components/button.js +482 -0
  59. package/dist/esm/components/card.js +227 -0
  60. package/dist/esm/components/cascader.js +425 -0
  61. package/dist/esm/components/checkbox.js +238 -0
  62. package/dist/esm/components/chip.js +218 -0
  63. package/dist/esm/components/collapse.js +461 -0
  64. package/dist/esm/components/datepicker.js +748 -0
  65. package/dist/esm/components/dialog.js +180 -0
  66. package/dist/esm/components/divider.js +291 -0
  67. package/dist/esm/components/drawer.js +378 -0
  68. package/dist/esm/components/file-upload.js +328 -0
  69. package/dist/esm/components/form-group.js +315 -0
  70. package/dist/esm/components/form.js +448 -0
  71. package/dist/esm/components/input.js +247 -0
  72. package/dist/esm/components/list.js +195 -0
  73. package/dist/esm/components/markdown-body.js +412 -0
  74. package/dist/esm/components/modal.js +298 -0
  75. package/dist/esm/components/multi-select.js +498 -0
  76. package/dist/esm/components/navigation.js +743 -0
  77. package/dist/esm/components/otp-input.js +202 -0
  78. package/dist/esm/components/pin-input.js +191 -0
  79. package/dist/esm/components/popover.js +399 -0
  80. package/dist/esm/components/progress.js +245 -0
  81. package/dist/esm/components/radio.js +190 -0
  82. package/dist/esm/components/rating.js +237 -0
  83. package/dist/esm/components/segment-control.js +193 -0
  84. package/dist/esm/components/select.js +212 -0
  85. package/dist/esm/components/skeleton.js +223 -0
  86. package/dist/esm/components/slider.js +334 -0
  87. package/dist/esm/components/snackbar.js +318 -0
  88. package/dist/esm/components/stepper.js +320 -0
  89. package/dist/esm/components/switch.js +241 -0
  90. package/dist/esm/components/table.js +206 -0
  91. package/dist/esm/components/textarea.js +405 -0
  92. package/dist/esm/components/time-input.js +259 -0
  93. package/dist/esm/components/timeline.js +360 -0
  94. package/dist/esm/components/toast.js +258 -0
  95. package/dist/esm/components/tooltip.js +291 -0
  96. package/dist/esm/components/tree-select.js +479 -0
  97. package/dist/index.css +15866 -0
  98. package/dist/themes/moonlight.css +253 -0
  99. package/dist/themes/sunshine.css +250 -0
  100. package/dist/types/index.d.ts +14 -0
  101. package/dist/types/index.d.ts.map +1 -0
  102. package/dist/types/plugin.d.ts +69 -0
  103. package/dist/types/plugin.d.ts.map +1 -0
  104. package/dist/types/theme.d.ts +202 -0
  105. package/dist/types/theme.d.ts.map +1 -0
  106. package/package.json +262 -18
  107. package/dist/index.cjs +0 -243
  108. package/dist/index.cjs.map +0 -15
  109. package/dist/index.js +0 -211
  110. package/dist/index.js.map +0 -15
@@ -0,0 +1,736 @@
1
+ /**
2
+ * Navigation Component Styles
3
+ * DuskMoonUI - Material Design 3 inspired navigation system
4
+ */
5
+
6
+ @layer components {
7
+ /* Navbar Base */
8
+ .navbar {
9
+ display: flex;
10
+ align-items: center;
11
+ width: 100%;
12
+ min-height: 4rem;
13
+ padding: 0.5rem 1rem;
14
+ background-color: var(--color-surface);
15
+ color: var(--color-on-surface);
16
+ }
17
+
18
+ .navbar-start {
19
+ display: flex;
20
+ align-items: center;
21
+ flex: 1;
22
+ justify-content: flex-start;
23
+ gap: 0.5rem;
24
+ }
25
+
26
+ .navbar-center {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ flex-shrink: 0;
31
+ gap: 0.5rem;
32
+ }
33
+
34
+ .navbar-end {
35
+ display: flex;
36
+ align-items: center;
37
+ flex: 1;
38
+ justify-content: flex-end;
39
+ gap: 0.5rem;
40
+ }
41
+
42
+ /* Menu */
43
+ .menu {
44
+ display: flex;
45
+ flex-wrap: wrap;
46
+ list-style: none;
47
+ margin: 0;
48
+ padding: 0.5rem;
49
+ gap: 0.25rem;
50
+ }
51
+
52
+ .menu li {
53
+ display: flex;
54
+ flex-shrink: 0;
55
+ }
56
+
57
+ .menu li > a,
58
+ .menu li > button,
59
+ .menu-item {
60
+ display: flex;
61
+ align-items: center;
62
+ gap: 0.5rem;
63
+ padding: 0.5rem 1rem;
64
+ font-size: 0.875rem;
65
+ color: var(--color-on-surface);
66
+ text-decoration: none;
67
+ border-radius: 0.5rem;
68
+ cursor: pointer;
69
+ transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
70
+ white-space: nowrap;
71
+ }
72
+
73
+ .menu li > a:hover,
74
+ .menu li > button:hover,
75
+ .menu-item:hover {
76
+ background-color: var(--color-surface-container);
77
+ }
78
+
79
+ .menu li > a:focus-visible,
80
+ .menu li > button:focus-visible,
81
+ .menu-item:focus-visible {
82
+ outline: 2px solid var(--color-primary);
83
+ outline-offset: -2px;
84
+ }
85
+
86
+ .menu li > a.active,
87
+ .menu li > button.active,
88
+ .menu-item.active,
89
+ .menu li > a[aria-current="page"],
90
+ .menu li > button[aria-current="page"] {
91
+ background-color: var(--color-primary-container);
92
+ color: var(--color-on-primary-container);
93
+ }
94
+
95
+ .menu li.disabled > a,
96
+ .menu li.disabled > button,
97
+ .menu-item:disabled {
98
+ opacity: 0.5;
99
+ pointer-events: none;
100
+ }
101
+
102
+ /* Menu Horizontal */
103
+ .menu-horizontal {
104
+ flex-direction: row;
105
+ }
106
+
107
+ /* Menu Vertical */
108
+ .menu-vertical {
109
+ flex-direction: column;
110
+ }
111
+
112
+ .menu-vertical li {
113
+ width: 100%;
114
+ }
115
+
116
+ .menu-vertical li > a,
117
+ .menu-vertical li > button,
118
+ .menu-vertical .menu-item {
119
+ width: 100%;
120
+ }
121
+
122
+ /* Menu Compact */
123
+ .menu-compact li > a,
124
+ .menu-compact li > button,
125
+ .menu-compact .menu-item {
126
+ padding: 0.375rem 0.75rem;
127
+ font-size: 0.8125rem;
128
+ }
129
+
130
+ /* Menu Title */
131
+ .menu-title {
132
+ padding: 0.5rem 1rem;
133
+ font-size: 0.75rem;
134
+ font-weight: 600;
135
+ text-transform: uppercase;
136
+ letter-spacing: 0.05em;
137
+ color: var(--color-on-surface-variant);
138
+ }
139
+
140
+ /* Breadcrumbs */
141
+ .breadcrumbs {
142
+ display: flex;
143
+ align-items: center;
144
+ flex-wrap: wrap;
145
+ gap: 0.5rem;
146
+ padding: 0.5rem 0;
147
+ list-style: none;
148
+ margin: 0;
149
+ font-size: 0.875rem;
150
+ }
151
+
152
+ /* List-based breadcrumbs (legacy) */
153
+ .breadcrumbs li {
154
+ display: flex;
155
+ align-items: center;
156
+ gap: 0.5rem;
157
+ }
158
+
159
+ .breadcrumbs li::after {
160
+ content: '/';
161
+ color: var(--color-on-surface-variant);
162
+ opacity: 0.5;
163
+ }
164
+
165
+ .breadcrumbs li:last-child::after {
166
+ display: none;
167
+ }
168
+
169
+ .breadcrumbs li > a {
170
+ color: var(--color-primary);
171
+ text-decoration: none;
172
+ transition: color 150ms ease-in-out;
173
+ }
174
+
175
+ .breadcrumbs li > a:hover {
176
+ text-decoration: underline;
177
+ }
178
+
179
+ .breadcrumbs li:last-child {
180
+ color: var(--color-on-surface-variant);
181
+ }
182
+
183
+ /* Span-based breadcrumbs */
184
+ .breadcrumb-item {
185
+ display: inline-flex;
186
+ align-items: center;
187
+ gap: 0.375rem;
188
+ color: var(--color-on-surface-variant);
189
+ text-decoration: none;
190
+ transition: color 150ms ease-in-out;
191
+ }
192
+
193
+ .breadcrumb-item:hover {
194
+ color: var(--color-on-surface);
195
+ }
196
+
197
+ .breadcrumb-item-active {
198
+ color: var(--color-on-surface);
199
+ font-weight: 500;
200
+ pointer-events: none;
201
+ }
202
+
203
+ .breadcrumb-link {
204
+ display: inline-flex;
205
+ align-items: center;
206
+ gap: 0.375rem;
207
+ color: var(--color-on-surface-variant);
208
+ text-decoration: none;
209
+ transition: color 150ms ease-in-out;
210
+ cursor: pointer;
211
+ }
212
+
213
+ .breadcrumb-link:hover {
214
+ color: var(--color-primary);
215
+ text-decoration: underline;
216
+ }
217
+
218
+ .breadcrumb-link:focus-visible {
219
+ outline: 2px solid var(--color-primary);
220
+ outline-offset: 2px;
221
+ border-radius: 0.25rem;
222
+ }
223
+
224
+ /* Separator - Default shows "/" */
225
+ .breadcrumb-separator {
226
+ display: inline-flex;
227
+ align-items: center;
228
+ color: var(--color-on-surface-variant);
229
+ font-size: 0.875rem;
230
+ user-select: none;
231
+ opacity: 0.6;
232
+ }
233
+
234
+ .breadcrumb-separator::before {
235
+ content: "/";
236
+ }
237
+
238
+ /* Separator Variants */
239
+ .breadcrumbs-slash .breadcrumb-separator::before {
240
+ content: "/";
241
+ }
242
+
243
+ .breadcrumbs-chevron .breadcrumb-separator::before {
244
+ content: "›";
245
+ font-size: 1.125rem;
246
+ }
247
+
248
+ .breadcrumbs-dot .breadcrumb-separator::before {
249
+ content: "•";
250
+ }
251
+
252
+ .breadcrumbs-arrow .breadcrumb-separator::before {
253
+ content: "→";
254
+ }
255
+
256
+ .breadcrumbs-pipe .breadcrumb-separator::before {
257
+ content: "|";
258
+ }
259
+
260
+ /* Breadcrumb Icon */
261
+ .breadcrumb-icon {
262
+ display: inline-flex;
263
+ align-items: center;
264
+ justify-content: center;
265
+ width: 1rem;
266
+ height: 1rem;
267
+ flex-shrink: 0;
268
+ }
269
+
270
+ .breadcrumb-icon svg {
271
+ width: 100%;
272
+ height: 100%;
273
+ }
274
+
275
+ /* Home Icon Link */
276
+ .breadcrumb-home {
277
+ display: inline-flex;
278
+ align-items: center;
279
+ justify-content: center;
280
+ color: var(--color-on-surface-variant);
281
+ text-decoration: none;
282
+ transition: color 150ms ease-in-out;
283
+ }
284
+
285
+ .breadcrumb-home:hover {
286
+ color: var(--color-primary);
287
+ }
288
+
289
+ .breadcrumb-home-icon {
290
+ width: 1.125rem;
291
+ height: 1.125rem;
292
+ }
293
+
294
+ /* Collapsed Breadcrumbs (with ellipsis) */
295
+ .breadcrumb-ellipsis {
296
+ display: inline-flex;
297
+ align-items: center;
298
+ justify-content: center;
299
+ padding: 0.25rem 0.5rem;
300
+ color: var(--color-on-surface-variant);
301
+ background-color: transparent;
302
+ border: none;
303
+ border-radius: 0.25rem;
304
+ cursor: pointer;
305
+ transition: background-color 150ms ease-in-out;
306
+ }
307
+
308
+ .breadcrumb-ellipsis::before {
309
+ content: "...";
310
+ }
311
+
312
+ .breadcrumb-ellipsis:hover {
313
+ background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
314
+ }
315
+
316
+ /* Color Variants */
317
+ .breadcrumbs-primary .breadcrumb-link:hover,
318
+ .breadcrumbs-primary .breadcrumb-item-active {
319
+ color: var(--color-primary);
320
+ }
321
+
322
+ .breadcrumbs-secondary .breadcrumb-link:hover,
323
+ .breadcrumbs-secondary .breadcrumb-item-active {
324
+ color: var(--color-secondary);
325
+ }
326
+
327
+ .breadcrumbs-tertiary .breadcrumb-link:hover,
328
+ .breadcrumbs-tertiary .breadcrumb-item-active {
329
+ color: var(--color-tertiary);
330
+ }
331
+
332
+ /* Size Variants */
333
+ .breadcrumbs-sm {
334
+ font-size: 0.75rem;
335
+ gap: 0.375rem;
336
+ }
337
+
338
+ .breadcrumbs-sm .breadcrumb-icon,
339
+ .breadcrumbs-sm .breadcrumb-home-icon {
340
+ width: 0.875rem;
341
+ height: 0.875rem;
342
+ }
343
+
344
+ .breadcrumbs-lg {
345
+ font-size: 1rem;
346
+ gap: 0.625rem;
347
+ }
348
+
349
+ .breadcrumbs-lg .breadcrumb-icon,
350
+ .breadcrumbs-lg .breadcrumb-home-icon {
351
+ width: 1.25rem;
352
+ height: 1.25rem;
353
+ }
354
+
355
+ /* Contained Variant (with background) */
356
+ .breadcrumbs-contained {
357
+ padding: 0.75rem 1rem;
358
+ background-color: var(--color-surface-container);
359
+ border-radius: 0.5rem;
360
+ }
361
+
362
+ /* No Wrap Variant */
363
+ .breadcrumbs-nowrap {
364
+ flex-wrap: nowrap;
365
+ overflow-x: auto;
366
+ }
367
+
368
+ /* Disabled Breadcrumb Item */
369
+ .breadcrumb-item-disabled {
370
+ opacity: 0.38;
371
+ pointer-events: none;
372
+ cursor: not-allowed;
373
+ }
374
+
375
+ /* Tabs */
376
+ .tabs {
377
+ display: flex;
378
+ flex-wrap: wrap;
379
+ gap: 0.25rem;
380
+ border-bottom: 1px solid var(--color-outline);
381
+ }
382
+
383
+ .tab {
384
+ display: inline-flex;
385
+ align-items: center;
386
+ justify-content: center;
387
+ gap: 0.5rem;
388
+ padding: 0.75rem 1.25rem;
389
+ font-size: 0.875rem;
390
+ font-weight: 500;
391
+ color: var(--color-on-surface-variant);
392
+ text-decoration: none;
393
+ background-color: transparent;
394
+ border: none;
395
+ border-bottom: 2px solid transparent;
396
+ cursor: pointer;
397
+ transition: all 150ms ease-in-out;
398
+ position: relative;
399
+ margin-bottom: -1px;
400
+ }
401
+
402
+ .tab:hover {
403
+ color: var(--color-on-surface);
404
+ background-color: var(--color-surface-container);
405
+ }
406
+
407
+ .tab:focus-visible {
408
+ outline: 2px solid var(--color-primary);
409
+ outline-offset: -2px;
410
+ }
411
+
412
+ .tab.tab-active,
413
+ .tab[aria-selected="true"] {
414
+ color: var(--color-primary);
415
+ border-bottom-color: var(--color-primary);
416
+ }
417
+
418
+ .tab:disabled {
419
+ opacity: 0.5;
420
+ cursor: not-allowed;
421
+ }
422
+
423
+ /* Tabs Boxed */
424
+ .tabs-boxed {
425
+ background-color: var(--color-surface-container);
426
+ border-radius: 0.5rem;
427
+ padding: 0.25rem;
428
+ border: none;
429
+ }
430
+
431
+ .tabs-boxed .tab {
432
+ border-radius: 0.375rem;
433
+ border-bottom: none;
434
+ margin-bottom: 0;
435
+ }
436
+
437
+ .tabs-boxed .tab.tab-active,
438
+ .tabs-boxed .tab[aria-selected="true"] {
439
+ background-color: var(--color-surface);
440
+ color: var(--color-on-surface);
441
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
442
+ }
443
+
444
+ /* Tabs Lifted */
445
+ .tabs-lifted {
446
+ border: none;
447
+ }
448
+
449
+ .tabs-lifted .tab {
450
+ border: 1px solid transparent;
451
+ border-bottom: none;
452
+ border-radius: 0.5rem 0.5rem 0 0;
453
+ margin-bottom: -1px;
454
+ }
455
+
456
+ .tabs-lifted .tab.tab-active,
457
+ .tabs-lifted .tab[aria-selected="true"] {
458
+ background-color: var(--color-surface);
459
+ border-color: var(--color-outline);
460
+ border-bottom-color: var(--color-surface);
461
+ }
462
+
463
+ /* Tab Sizes */
464
+ .tab-xs {
465
+ padding: 0.375rem 0.625rem;
466
+ font-size: 0.75rem;
467
+ }
468
+
469
+ .tab-sm {
470
+ padding: 0.5rem 0.875rem;
471
+ font-size: 0.8125rem;
472
+ }
473
+
474
+ .tab-lg {
475
+ padding: 1rem 1.5rem;
476
+ font-size: 1rem;
477
+ }
478
+
479
+ /* Dropdown */
480
+ .dropdown {
481
+ position: relative;
482
+ display: inline-block;
483
+ }
484
+
485
+ .dropdown-content {
486
+ position: absolute;
487
+ z-index: 50;
488
+ min-width: 12rem;
489
+ padding: 0.5rem;
490
+ background-color: var(--color-surface);
491
+ border: 1px solid var(--color-outline);
492
+ border-radius: 0.5rem;
493
+ box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
494
+ opacity: 0;
495
+ visibility: hidden;
496
+ transform: translateY(-0.5rem);
497
+ transition: all 150ms ease-in-out;
498
+ }
499
+
500
+ .dropdown:hover .dropdown-content,
501
+ .dropdown:focus-within .dropdown-content,
502
+ .dropdown.dropdown-open .dropdown-content {
503
+ opacity: 1;
504
+ visibility: visible;
505
+ transform: translateY(0);
506
+ }
507
+
508
+ /* Dropdown Positions */
509
+ .dropdown-end .dropdown-content {
510
+ right: 0;
511
+ }
512
+
513
+ .dropdown-top .dropdown-content {
514
+ bottom: 100%;
515
+ top: auto;
516
+ margin-bottom: 0.25rem;
517
+ }
518
+
519
+ .dropdown-left .dropdown-content {
520
+ right: 100%;
521
+ left: auto;
522
+ top: 0;
523
+ margin-right: 0.25rem;
524
+ }
525
+
526
+ .dropdown-right .dropdown-content {
527
+ left: 100%;
528
+ right: auto;
529
+ top: 0;
530
+ margin-left: 0.25rem;
531
+ }
532
+
533
+ /* Pagination */
534
+ .pagination {
535
+ display: flex;
536
+ align-items: center;
537
+ gap: 0.25rem;
538
+ list-style: none;
539
+ margin: 0;
540
+ padding: 0;
541
+ }
542
+
543
+ .pagination-item,
544
+ .pagination-prev,
545
+ .pagination-next,
546
+ .pagination li > a,
547
+ .pagination li > button {
548
+ display: inline-flex;
549
+ align-items: center;
550
+ justify-content: center;
551
+ gap: 0.25rem;
552
+ min-width: 2.5rem;
553
+ height: 2.5rem;
554
+ padding: 0 0.75rem;
555
+ font-size: 0.875rem;
556
+ color: var(--color-on-surface);
557
+ background-color: transparent;
558
+ border: 1px solid var(--color-outline);
559
+ border-radius: 0.5rem;
560
+ cursor: pointer;
561
+ transition: all 150ms ease-in-out;
562
+ white-space: nowrap;
563
+ }
564
+
565
+ .pagination-item:hover,
566
+ .pagination-prev:hover,
567
+ .pagination-next:hover,
568
+ .pagination li > a:hover,
569
+ .pagination li > button:hover {
570
+ background-color: var(--color-surface-container);
571
+ }
572
+
573
+ .pagination-item-active,
574
+ .pagination-item-active-primary,
575
+ .pagination li > a.active,
576
+ .pagination li > button.active,
577
+ .pagination li > a[aria-current="page"],
578
+ .pagination li > button[aria-current="page"] {
579
+ background-color: var(--color-primary);
580
+ color: var(--color-primary-content);
581
+ border-color: var(--color-primary);
582
+ }
583
+
584
+ .pagination-item-active-secondary {
585
+ background-color: var(--color-secondary);
586
+ color: var(--color-secondary-content);
587
+ border-color: var(--color-secondary);
588
+ }
589
+
590
+ .pagination-item-active-tertiary {
591
+ background-color: var(--color-tertiary);
592
+ color: var(--color-tertiary-content);
593
+ border-color: var(--color-tertiary);
594
+ }
595
+
596
+ .pagination-item:focus-visible,
597
+ .pagination-prev:focus-visible,
598
+ .pagination-next:focus-visible,
599
+ .pagination li > a:focus-visible,
600
+ .pagination li > button:focus-visible {
601
+ outline: 2px solid var(--color-primary);
602
+ outline-offset: 2px;
603
+ }
604
+
605
+ .pagination-item:disabled,
606
+ .pagination-item-disabled,
607
+ .pagination-prev:disabled,
608
+ .pagination-next:disabled,
609
+ .pagination li > a:disabled,
610
+ .pagination li > button:disabled {
611
+ opacity: 0.5;
612
+ cursor: not-allowed;
613
+ pointer-events: none;
614
+ }
615
+
616
+ /* Pagination Ellipsis */
617
+ .pagination-ellipsis {
618
+ display: inline-flex;
619
+ align-items: center;
620
+ justify-content: center;
621
+ min-width: 2.5rem;
622
+ height: 2.5rem;
623
+ color: var(--color-on-surface-variant);
624
+ }
625
+
626
+ .pagination-ellipsis::before {
627
+ content: '…';
628
+ }
629
+
630
+ /* Pagination Info */
631
+ .pagination-info {
632
+ display: flex;
633
+ flex-direction: column;
634
+ align-items: center;
635
+ gap: 0.5rem;
636
+ }
637
+
638
+ .pagination-info-text {
639
+ font-size: 0.875rem;
640
+ color: var(--color-on-surface-variant);
641
+ }
642
+
643
+ /* Pagination Input */
644
+ .pagination-input {
645
+ display: inline-flex;
646
+ align-items: center;
647
+ gap: 0.5rem;
648
+ font-size: 0.875rem;
649
+ color: var(--color-on-surface-variant);
650
+ }
651
+
652
+ .pagination-input input {
653
+ width: 3.5rem;
654
+ padding: 0.375rem 0.5rem;
655
+ font-size: 0.875rem;
656
+ text-align: center;
657
+ color: var(--color-on-surface);
658
+ background-color: var(--color-surface);
659
+ border: 1px solid var(--color-outline);
660
+ border-radius: 0.375rem;
661
+ }
662
+
663
+ .pagination-input input:focus {
664
+ outline: none;
665
+ border-color: var(--color-primary);
666
+ }
667
+
668
+ /* Pagination Variants */
669
+ .pagination-outlined .pagination-item,
670
+ .pagination-outlined .pagination-prev,
671
+ .pagination-outlined .pagination-next {
672
+ border: 1px solid var(--color-outline);
673
+ }
674
+
675
+ .pagination-tonal .pagination-item-active,
676
+ .pagination-tonal .pagination-item-active-primary {
677
+ background-color: var(--color-primary-container);
678
+ color: var(--color-on-primary-container);
679
+ border-color: var(--color-primary-container);
680
+ }
681
+
682
+ /* Pagination Sizes */
683
+ .pagination-sm .pagination-item,
684
+ .pagination-sm .pagination-prev,
685
+ .pagination-sm .pagination-next {
686
+ min-width: 2rem;
687
+ height: 2rem;
688
+ padding: 0 0.5rem;
689
+ font-size: 0.75rem;
690
+ }
691
+
692
+ .pagination-lg .pagination-item,
693
+ .pagination-lg .pagination-prev,
694
+ .pagination-lg .pagination-next {
695
+ min-width: 3rem;
696
+ height: 3rem;
697
+ padding: 0 1rem;
698
+ font-size: 1rem;
699
+ }
700
+
701
+ /* Pagination Compact */
702
+ .pagination-compact {
703
+ gap: 0;
704
+ }
705
+
706
+ .pagination-compact .pagination-item,
707
+ .pagination-compact .pagination-prev,
708
+ .pagination-compact .pagination-next {
709
+ border-radius: 0;
710
+ }
711
+
712
+ .pagination-compact .pagination-item:first-child,
713
+ .pagination-compact .pagination-prev {
714
+ border-radius: 0.5rem 0 0 0.5rem;
715
+ }
716
+
717
+ .pagination-compact .pagination-item:last-child,
718
+ .pagination-compact .pagination-next {
719
+ border-radius: 0 0.5rem 0.5rem 0;
720
+ }
721
+
722
+ /* Pagination Responsive */
723
+ .pagination-responsive {
724
+ flex-wrap: wrap;
725
+ justify-content: center;
726
+ }
727
+
728
+ /* Reduce Motion */
729
+ @media (prefers-reduced-motion: reduce) {
730
+ .pagination-item,
731
+ .pagination-prev,
732
+ .pagination-next {
733
+ transition: none;
734
+ }
735
+ }
736
+ }