@duskmoon-dev/core 0.1.0 → 1.0.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 (51) 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 +308 -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 +474 -0
  11. package/dist/components/card.css +220 -0
  12. package/dist/components/chip.css +211 -0
  13. package/dist/components/collapse.css +254 -0
  14. package/dist/components/datepicker.css +347 -0
  15. package/dist/components/dialog.css +173 -0
  16. package/dist/components/divider.css +284 -0
  17. package/dist/components/drawer.css +371 -0
  18. package/dist/components/file-upload.css +321 -0
  19. package/dist/components/form.css +441 -0
  20. package/dist/components/index.css +9994 -0
  21. package/dist/components/input.css +240 -0
  22. package/dist/components/list.css +188 -0
  23. package/dist/components/markdown-body.css +405 -0
  24. package/dist/components/modal.css +291 -0
  25. package/dist/components/navigation.css +392 -0
  26. package/dist/components/popover.css +326 -0
  27. package/dist/components/progress.css +238 -0
  28. package/dist/components/rating.css +230 -0
  29. package/dist/components/skeleton.css +216 -0
  30. package/dist/components/slider.css +327 -0
  31. package/dist/components/snackbar.css +311 -0
  32. package/dist/components/stepper.css +313 -0
  33. package/dist/components/switch.css +277 -0
  34. package/dist/components/table.css +199 -0
  35. package/dist/components/timeline.css +353 -0
  36. package/dist/components/toast.css +251 -0
  37. package/dist/components/tooltip.css +284 -0
  38. package/dist/index.css +10699 -0
  39. package/dist/themes/moonlight.css +168 -0
  40. package/dist/themes/sunshine.css +166 -0
  41. package/dist/types/index.d.ts +14 -0
  42. package/dist/types/index.d.ts.map +1 -0
  43. package/dist/types/plugin.d.ts +69 -0
  44. package/dist/types/plugin.d.ts.map +1 -0
  45. package/dist/types/theme.d.ts +202 -0
  46. package/dist/types/theme.d.ts.map +1 -0
  47. package/package.json +137 -18
  48. package/dist/index.cjs +0 -243
  49. package/dist/index.cjs.map +0 -15
  50. package/dist/index.js +0 -211
  51. package/dist/index.js.map +0 -15
@@ -0,0 +1,199 @@
1
+ /**
2
+ * Table Component Styles
3
+ * DuskMoonUI - Material Design 3 inspired table system
4
+ */
5
+
6
+ @layer components {
7
+ /* Base Table */
8
+ .table {
9
+ width: 100%;
10
+ border-collapse: collapse;
11
+ border-spacing: 0;
12
+ font-size: 0.875rem;
13
+ color: var(--color-on-surface);
14
+ }
15
+
16
+ /* Table Head */
17
+ .table thead,
18
+ .table-header {
19
+ background-color: var(--color-surface-container);
20
+ }
21
+
22
+ .table th,
23
+ .table-header-cell {
24
+ padding: 0.75rem 1rem;
25
+ font-weight: 600;
26
+ text-align: left;
27
+ color: var(--color-on-surface);
28
+ border-bottom: 2px solid var(--color-outline);
29
+ }
30
+
31
+ /* Table Body */
32
+ .table tbody,
33
+ .table-body {
34
+ background-color: var(--color-surface);
35
+ }
36
+
37
+ .table td,
38
+ .table-cell {
39
+ padding: 0.75rem 1rem;
40
+ border-bottom: 1px solid var(--color-outline-variant);
41
+ vertical-align: middle;
42
+ }
43
+
44
+ .table tr:last-child td,
45
+ .table-row:last-child .table-cell {
46
+ border-bottom: none;
47
+ }
48
+
49
+ /* Table Footer */
50
+ .table tfoot,
51
+ .table-footer {
52
+ background-color: var(--color-surface-container);
53
+ font-weight: 500;
54
+ }
55
+
56
+ .table tfoot td {
57
+ border-top: 2px solid var(--color-outline);
58
+ border-bottom: none;
59
+ }
60
+
61
+ /* Zebra Striping */
62
+ .table-zebra tbody tr:nth-child(even),
63
+ .table-zebra .table-row:nth-child(even) {
64
+ background-color: var(--color-surface-container-low);
65
+ }
66
+
67
+ /* Hover Effect */
68
+ .table-hover tbody tr:hover,
69
+ .table-hover .table-row:hover {
70
+ background-color: var(--color-surface-container);
71
+ }
72
+
73
+ /* Bordered Table */
74
+ .table-bordered {
75
+ border: 1px solid var(--color-outline);
76
+ border-radius: 0.5rem;
77
+ overflow: hidden;
78
+ }
79
+
80
+ .table-bordered th,
81
+ .table-bordered td {
82
+ border: 1px solid var(--color-outline-variant);
83
+ }
84
+
85
+ /* Compact Table */
86
+ .table-compact th,
87
+ .table-compact td {
88
+ padding: 0.5rem 0.75rem;
89
+ font-size: 0.8125rem;
90
+ }
91
+
92
+ /* Comfortable Table */
93
+ .table-comfortable th,
94
+ .table-comfortable td {
95
+ padding: 1rem 1.25rem;
96
+ }
97
+
98
+ /* Fixed Layout */
99
+ .table-fixed {
100
+ table-layout: fixed;
101
+ }
102
+
103
+ /* Sortable Header */
104
+ .table-sortable th {
105
+ cursor: pointer;
106
+ user-select: none;
107
+ }
108
+
109
+ .table-sortable th:hover {
110
+ background-color: var(--color-surface-container-high);
111
+ }
112
+
113
+ .table-sort-asc::after {
114
+ content: ' ↑';
115
+ opacity: 0.7;
116
+ }
117
+
118
+ .table-sort-desc::after {
119
+ content: ' ↓';
120
+ opacity: 0.7;
121
+ }
122
+
123
+ /* Selected Row */
124
+ .table-row-selected,
125
+ .table tr.selected {
126
+ background-color: var(--color-primary-container);
127
+ color: var(--color-on-primary-container);
128
+ }
129
+
130
+ /* Clickable Row */
131
+ .table-row-clickable,
132
+ .table tbody tr[data-href] {
133
+ cursor: pointer;
134
+ }
135
+
136
+ /* Responsive Table */
137
+ .table-responsive {
138
+ display: block;
139
+ width: 100%;
140
+ overflow-x: auto;
141
+ -webkit-overflow-scrolling: touch;
142
+ }
143
+
144
+ .table-responsive .table {
145
+ min-width: 100%;
146
+ }
147
+
148
+ /* Table Caption */
149
+ .table caption,
150
+ .table-caption {
151
+ padding: 0.75rem;
152
+ font-size: 0.875rem;
153
+ color: var(--color-on-surface-variant);
154
+ text-align: left;
155
+ caption-side: bottom;
156
+ }
157
+
158
+ /* Empty State */
159
+ .table-empty {
160
+ text-align: center;
161
+ padding: 2rem;
162
+ color: var(--color-on-surface-variant);
163
+ }
164
+
165
+ /* Loading State */
166
+ .table-loading {
167
+ position: relative;
168
+ }
169
+
170
+ .table-loading::after {
171
+ content: '';
172
+ position: absolute;
173
+ inset: 0;
174
+ background-color: var(--color-surface);
175
+ opacity: 0.7;
176
+ }
177
+
178
+ /* Pinned Columns */
179
+ .table-pin-left {
180
+ position: sticky;
181
+ left: 0;
182
+ background-color: inherit;
183
+ z-index: 1;
184
+ }
185
+
186
+ .table-pin-right {
187
+ position: sticky;
188
+ right: 0;
189
+ background-color: inherit;
190
+ z-index: 1;
191
+ }
192
+
193
+ /* Focus State for Interactive Tables */
194
+ .table tr:focus-visible,
195
+ .table-row:focus-visible {
196
+ outline: 2px solid var(--color-primary);
197
+ outline-offset: -2px;
198
+ }
199
+ }
@@ -0,0 +1,353 @@
1
+ /**
2
+ * Timeline Component Styles
3
+ * DuskMoonUI - Material Design 3 inspired timeline system
4
+ */
5
+
6
+ @layer components {
7
+ /* Base Timeline */
8
+ .timeline {
9
+ position: relative;
10
+ display: flex;
11
+ flex-direction: column;
12
+ gap: 0;
13
+ }
14
+
15
+ /* Timeline Line */
16
+ .timeline::before {
17
+ content: '';
18
+ position: absolute;
19
+ top: 0;
20
+ left: 1.25rem;
21
+ width: 2px;
22
+ height: 100%;
23
+ background-color: var(--color-outline-variant);
24
+ }
25
+
26
+ /* Timeline Item */
27
+ .timeline-item {
28
+ position: relative;
29
+ display: flex;
30
+ gap: 1rem;
31
+ padding-bottom: 1.5rem;
32
+ }
33
+
34
+ .timeline-item:last-child {
35
+ padding-bottom: 0;
36
+ }
37
+
38
+ /* Timeline Marker */
39
+ .timeline-marker {
40
+ position: relative;
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ width: 2.5rem;
45
+ height: 2.5rem;
46
+ background-color: var(--color-surface);
47
+ border: 2px solid var(--color-outline-variant);
48
+ border-radius: 50%;
49
+ flex-shrink: 0;
50
+ z-index: 1;
51
+ }
52
+
53
+ .timeline-marker-icon {
54
+ font-size: 1rem;
55
+ color: var(--color-on-surface-variant);
56
+ }
57
+
58
+ .timeline-marker-dot {
59
+ width: 0.75rem;
60
+ height: 0.75rem;
61
+ background-color: var(--color-outline-variant);
62
+ border-radius: 50%;
63
+ }
64
+
65
+ /* Timeline Content */
66
+ .timeline-content {
67
+ flex: 1;
68
+ padding-top: 0.375rem;
69
+ min-width: 0;
70
+ }
71
+
72
+ .timeline-title {
73
+ font-size: 0.875rem;
74
+ font-weight: 600;
75
+ color: var(--color-on-surface);
76
+ margin-bottom: 0.25rem;
77
+ }
78
+
79
+ .timeline-time {
80
+ font-size: 0.75rem;
81
+ color: var(--color-on-surface-variant);
82
+ margin-bottom: 0.5rem;
83
+ }
84
+
85
+ .timeline-description {
86
+ font-size: 0.875rem;
87
+ color: var(--color-on-surface-variant);
88
+ line-height: 1.5;
89
+ }
90
+
91
+ /* Timeline Card */
92
+ .timeline-card {
93
+ padding: 1rem;
94
+ background-color: var(--color-surface-container);
95
+ border-radius: 0.75rem;
96
+ margin-top: 0.5rem;
97
+ }
98
+
99
+ /* Color Variants */
100
+ .timeline-item-primary .timeline-marker {
101
+ border-color: var(--color-primary);
102
+ background-color: var(--color-primary-container);
103
+ }
104
+
105
+ .timeline-item-primary .timeline-marker-icon,
106
+ .timeline-item-primary .timeline-marker-dot {
107
+ color: var(--color-on-primary-container);
108
+ background-color: var(--color-primary);
109
+ }
110
+
111
+ .timeline-item-secondary .timeline-marker {
112
+ border-color: var(--color-secondary);
113
+ background-color: var(--color-secondary-container);
114
+ }
115
+
116
+ .timeline-item-success .timeline-marker {
117
+ border-color: var(--color-success);
118
+ background-color: var(--color-success-container);
119
+ }
120
+
121
+ .timeline-item-success .timeline-marker-dot {
122
+ background-color: var(--color-success);
123
+ }
124
+
125
+ .timeline-item-warning .timeline-marker {
126
+ border-color: var(--color-warning);
127
+ background-color: var(--color-warning-container);
128
+ }
129
+
130
+ .timeline-item-warning .timeline-marker-dot {
131
+ background-color: var(--color-warning);
132
+ }
133
+
134
+ .timeline-item-error .timeline-marker {
135
+ border-color: var(--color-error);
136
+ background-color: var(--color-error-container);
137
+ }
138
+
139
+ .timeline-item-error .timeline-marker-dot {
140
+ background-color: var(--color-error);
141
+ }
142
+
143
+ /* Completed State */
144
+ .timeline-item.completed .timeline-marker {
145
+ border-color: var(--color-primary);
146
+ background-color: var(--color-primary);
147
+ }
148
+
149
+ .timeline-item.completed .timeline-marker-icon {
150
+ color: var(--color-on-primary);
151
+ }
152
+
153
+ /* Active State */
154
+ .timeline-item.active .timeline-marker {
155
+ border-color: var(--color-primary);
156
+ background-color: var(--color-primary);
157
+ box-shadow: 0 0 0 4px var(--color-primary-container);
158
+ }
159
+
160
+ .timeline-item.active .timeline-marker-icon,
161
+ .timeline-item.active .timeline-marker-dot {
162
+ color: var(--color-on-primary);
163
+ background-color: var(--color-on-primary);
164
+ }
165
+
166
+ /* Size Variants */
167
+ .timeline-sm::before {
168
+ left: 0.75rem;
169
+ }
170
+
171
+ .timeline-sm .timeline-marker {
172
+ width: 1.5rem;
173
+ height: 1.5rem;
174
+ }
175
+
176
+ .timeline-sm .timeline-marker-icon {
177
+ font-size: 0.75rem;
178
+ }
179
+
180
+ .timeline-sm .timeline-marker-dot {
181
+ width: 0.5rem;
182
+ height: 0.5rem;
183
+ }
184
+
185
+ .timeline-lg::before {
186
+ left: 1.5rem;
187
+ }
188
+
189
+ .timeline-lg .timeline-marker {
190
+ width: 3rem;
191
+ height: 3rem;
192
+ }
193
+
194
+ .timeline-lg .timeline-marker-icon {
195
+ font-size: 1.25rem;
196
+ }
197
+
198
+ /* Alternate Layout (zigzag) */
199
+ .timeline-alternate {
200
+ padding-left: 0;
201
+ }
202
+
203
+ .timeline-alternate::before {
204
+ left: 50%;
205
+ transform: translateX(-50%);
206
+ }
207
+
208
+ .timeline-alternate .timeline-item {
209
+ width: 50%;
210
+ padding-right: 2rem;
211
+ }
212
+
213
+ .timeline-alternate .timeline-item:nth-child(even) {
214
+ margin-left: 50%;
215
+ padding-right: 0;
216
+ padding-left: 2rem;
217
+ flex-direction: row-reverse;
218
+ }
219
+
220
+ .timeline-alternate .timeline-item:nth-child(even) .timeline-content {
221
+ text-align: right;
222
+ }
223
+
224
+ .timeline-alternate .timeline-marker {
225
+ position: absolute;
226
+ left: 100%;
227
+ transform: translateX(-50%);
228
+ }
229
+
230
+ .timeline-alternate .timeline-item:nth-child(even) .timeline-marker {
231
+ left: 0;
232
+ transform: translateX(-50%);
233
+ }
234
+
235
+ /* Right-aligned Timeline */
236
+ .timeline-right {
237
+ align-items: flex-end;
238
+ }
239
+
240
+ .timeline-right::before {
241
+ left: auto;
242
+ right: 1.25rem;
243
+ }
244
+
245
+ .timeline-right .timeline-item {
246
+ flex-direction: row-reverse;
247
+ }
248
+
249
+ .timeline-right .timeline-content {
250
+ text-align: right;
251
+ }
252
+
253
+ /* Horizontal Timeline */
254
+ .timeline-horizontal {
255
+ flex-direction: row;
256
+ overflow-x: auto;
257
+ padding-bottom: 1rem;
258
+ }
259
+
260
+ .timeline-horizontal::before {
261
+ top: 1.25rem;
262
+ left: 0;
263
+ width: 100%;
264
+ height: 2px;
265
+ }
266
+
267
+ .timeline-horizontal .timeline-item {
268
+ flex-direction: column;
269
+ padding-bottom: 0;
270
+ padding-right: 2rem;
271
+ min-width: 10rem;
272
+ }
273
+
274
+ .timeline-horizontal .timeline-item:last-child {
275
+ padding-right: 0;
276
+ }
277
+
278
+ .timeline-horizontal .timeline-content {
279
+ padding-top: 1rem;
280
+ text-align: center;
281
+ }
282
+
283
+ /* Collapsible Timeline */
284
+ .timeline-collapsible .timeline-item {
285
+ cursor: pointer;
286
+ }
287
+
288
+ .timeline-collapsible .timeline-description {
289
+ display: none;
290
+ }
291
+
292
+ .timeline-collapsible .timeline-item.expanded .timeline-description {
293
+ display: block;
294
+ }
295
+
296
+ /* Loading State */
297
+ .timeline-item.loading .timeline-marker {
298
+ animation: timeline-pulse 1.5s ease-in-out infinite;
299
+ }
300
+
301
+ @keyframes timeline-pulse {
302
+ 0%, 100% {
303
+ opacity: 1;
304
+ }
305
+ 50% {
306
+ opacity: 0.5;
307
+ }
308
+ }
309
+
310
+ /* Connected Line Progress */
311
+ .timeline-progress::before {
312
+ background: linear-gradient(
313
+ to bottom,
314
+ var(--color-primary) var(--timeline-progress, 0%),
315
+ var(--color-outline-variant) var(--timeline-progress, 0%)
316
+ );
317
+ }
318
+
319
+ /* Responsive */
320
+ @media (max-width: 640px) {
321
+ .timeline-alternate::before {
322
+ left: 1.25rem;
323
+ transform: none;
324
+ }
325
+
326
+ .timeline-alternate .timeline-item,
327
+ .timeline-alternate .timeline-item:nth-child(even) {
328
+ width: 100%;
329
+ margin-left: 0;
330
+ padding-left: 0;
331
+ padding-right: 0;
332
+ flex-direction: row;
333
+ }
334
+
335
+ .timeline-alternate .timeline-item:nth-child(even) .timeline-content {
336
+ text-align: left;
337
+ }
338
+
339
+ .timeline-alternate .timeline-marker,
340
+ .timeline-alternate .timeline-item:nth-child(even) .timeline-marker {
341
+ position: relative;
342
+ left: 0;
343
+ transform: none;
344
+ }
345
+ }
346
+
347
+ /* Reduce Motion */
348
+ @media (prefers-reduced-motion: reduce) {
349
+ .timeline-item.loading .timeline-marker {
350
+ animation: none;
351
+ }
352
+ }
353
+ }