@duskmoon-dev/core 0.1.0 → 1.1.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 (86) 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/esm/components/accordion.js +251 -0
  39. package/dist/esm/components/alert.js +206 -0
  40. package/dist/esm/components/appbar.js +315 -0
  41. package/dist/esm/components/autocomplete.js +276 -0
  42. package/dist/esm/components/avatar.js +174 -0
  43. package/dist/esm/components/badge.js +185 -0
  44. package/dist/esm/components/bottom-navigation.js +270 -0
  45. package/dist/esm/components/bottomsheet.js +341 -0
  46. package/dist/esm/components/button.js +481 -0
  47. package/dist/esm/components/card.js +227 -0
  48. package/dist/esm/components/chip.js +218 -0
  49. package/dist/esm/components/collapse.js +261 -0
  50. package/dist/esm/components/datepicker.js +354 -0
  51. package/dist/esm/components/dialog.js +180 -0
  52. package/dist/esm/components/divider.js +291 -0
  53. package/dist/esm/components/drawer.js +378 -0
  54. package/dist/esm/components/file-upload.js +328 -0
  55. package/dist/esm/components/form.js +448 -0
  56. package/dist/esm/components/input.js +247 -0
  57. package/dist/esm/components/list.js +195 -0
  58. package/dist/esm/components/markdown-body.js +412 -0
  59. package/dist/esm/components/modal.js +298 -0
  60. package/dist/esm/components/navigation.js +399 -0
  61. package/dist/esm/components/popover.js +333 -0
  62. package/dist/esm/components/progress.js +245 -0
  63. package/dist/esm/components/rating.js +237 -0
  64. package/dist/esm/components/skeleton.js +223 -0
  65. package/dist/esm/components/slider.js +334 -0
  66. package/dist/esm/components/snackbar.js +318 -0
  67. package/dist/esm/components/stepper.js +320 -0
  68. package/dist/esm/components/switch.js +284 -0
  69. package/dist/esm/components/table.js +206 -0
  70. package/dist/esm/components/timeline.js +360 -0
  71. package/dist/esm/components/toast.js +258 -0
  72. package/dist/esm/components/tooltip.js +291 -0
  73. package/dist/index.css +10699 -0
  74. package/dist/themes/moonlight.css +168 -0
  75. package/dist/themes/sunshine.css +166 -0
  76. package/dist/types/index.d.ts +14 -0
  77. package/dist/types/index.d.ts.map +1 -0
  78. package/dist/types/plugin.d.ts +69 -0
  79. package/dist/types/plugin.d.ts.map +1 -0
  80. package/dist/types/theme.d.ts +202 -0
  81. package/dist/types/theme.d.ts.map +1 -0
  82. package/package.json +207 -18
  83. package/dist/index.cjs +0 -243
  84. package/dist/index.cjs.map +0 -15
  85. package/dist/index.js +0 -211
  86. package/dist/index.js.map +0 -15
@@ -0,0 +1,334 @@
1
+ /**
2
+ * Bottom Sheet Component Styles
3
+ * DuskMoonUI - Material Design 3 inspired bottom sheet system
4
+ */
5
+
6
+ @layer components {
7
+ /* Bottom Sheet Backdrop */
8
+ .bottomsheet-backdrop {
9
+ position: fixed;
10
+ inset: 0;
11
+ z-index: 1100;
12
+ background-color: rgb(0 0 0 / 0.5);
13
+ opacity: 0;
14
+ visibility: hidden;
15
+ transition: opacity 300ms ease-out, visibility 300ms ease-out;
16
+ }
17
+
18
+ .bottomsheet-backdrop.show {
19
+ opacity: 1;
20
+ visibility: visible;
21
+ }
22
+
23
+ /* Base Bottom Sheet */
24
+ .bottomsheet {
25
+ position: fixed;
26
+ bottom: 0;
27
+ left: 0;
28
+ right: 0;
29
+ z-index: 1200;
30
+ display: flex;
31
+ flex-direction: column;
32
+ max-height: 90vh;
33
+ background-color: var(--color-surface);
34
+ border-radius: 1.75rem 1.75rem 0 0;
35
+ box-shadow: 0 -25px 50px -12px rgb(0 0 0 / 0.25);
36
+ transform: translateY(100%);
37
+ transition: transform 300ms ease-out;
38
+ padding-bottom: env(safe-area-inset-bottom, 0);
39
+ }
40
+
41
+ .bottomsheet.show {
42
+ transform: translateY(0);
43
+ }
44
+
45
+ /* Drag Handle */
46
+ .bottomsheet-handle {
47
+ display: flex;
48
+ justify-content: center;
49
+ padding: 1rem;
50
+ cursor: grab;
51
+ touch-action: none;
52
+ }
53
+
54
+ .bottomsheet-handle::before {
55
+ content: '';
56
+ width: 2rem;
57
+ height: 0.25rem;
58
+ background-color: var(--color-outline-variant);
59
+ border-radius: 9999px;
60
+ }
61
+
62
+ .bottomsheet-handle:active {
63
+ cursor: grabbing;
64
+ }
65
+
66
+ /* Bottom Sheet Header */
67
+ .bottomsheet-header {
68
+ display: flex;
69
+ align-items: center;
70
+ gap: 0.75rem;
71
+ padding: 0 1.5rem 1rem;
72
+ flex-shrink: 0;
73
+ }
74
+
75
+ .bottomsheet-title {
76
+ flex: 1;
77
+ font-size: 1.25rem;
78
+ font-weight: 500;
79
+ color: var(--color-on-surface);
80
+ }
81
+
82
+ .bottomsheet-close {
83
+ display: flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+ width: 2.5rem;
87
+ height: 2.5rem;
88
+ color: var(--color-on-surface-variant);
89
+ background-color: transparent;
90
+ border: none;
91
+ border-radius: 50%;
92
+ cursor: pointer;
93
+ transition: background-color 150ms ease-in-out;
94
+ }
95
+
96
+ .bottomsheet-close:hover {
97
+ background-color: var(--color-surface-container);
98
+ }
99
+
100
+ .bottomsheet-close:focus-visible {
101
+ outline: 2px solid var(--color-primary);
102
+ outline-offset: 2px;
103
+ }
104
+
105
+ /* Bottom Sheet Content */
106
+ .bottomsheet-content {
107
+ flex: 1;
108
+ overflow-y: auto;
109
+ padding: 0 1.5rem;
110
+ overscroll-behavior: contain;
111
+ }
112
+
113
+ /* Bottom Sheet Footer */
114
+ .bottomsheet-footer {
115
+ display: flex;
116
+ align-items: center;
117
+ gap: 0.75rem;
118
+ padding: 1rem 1.5rem;
119
+ border-top: 1px solid var(--color-outline-variant);
120
+ flex-shrink: 0;
121
+ }
122
+
123
+ /* List Items in Bottom Sheet */
124
+ .bottomsheet-list {
125
+ display: flex;
126
+ flex-direction: column;
127
+ margin: 0 -1.5rem;
128
+ }
129
+
130
+ .bottomsheet-item {
131
+ display: flex;
132
+ align-items: center;
133
+ gap: 1rem;
134
+ width: 100%;
135
+ padding: 1rem 1.5rem;
136
+ font-size: 0.875rem;
137
+ color: var(--color-on-surface);
138
+ background-color: transparent;
139
+ border: none;
140
+ cursor: pointer;
141
+ text-align: left;
142
+ text-decoration: none;
143
+ transition: background-color 150ms ease-in-out;
144
+ }
145
+
146
+ .bottomsheet-item:hover {
147
+ background-color: var(--color-surface-container);
148
+ }
149
+
150
+ .bottomsheet-item:focus-visible {
151
+ outline: none;
152
+ background-color: var(--color-surface-container);
153
+ box-shadow: inset 0 0 0 2px var(--color-primary);
154
+ }
155
+
156
+ .bottomsheet-item-icon {
157
+ display: flex;
158
+ align-items: center;
159
+ justify-content: center;
160
+ width: 1.5rem;
161
+ height: 1.5rem;
162
+ color: var(--color-on-surface-variant);
163
+ font-size: 1.25rem;
164
+ flex-shrink: 0;
165
+ }
166
+
167
+ .bottomsheet-item-content {
168
+ flex: 1;
169
+ min-width: 0;
170
+ }
171
+
172
+ .bottomsheet-item-label {
173
+ font-weight: 500;
174
+ overflow: hidden;
175
+ text-overflow: ellipsis;
176
+ white-space: nowrap;
177
+ }
178
+
179
+ .bottomsheet-item-description {
180
+ font-size: 0.75rem;
181
+ color: var(--color-on-surface-variant);
182
+ margin-top: 0.125rem;
183
+ overflow: hidden;
184
+ text-overflow: ellipsis;
185
+ white-space: nowrap;
186
+ }
187
+
188
+ /* Grid Items */
189
+ .bottomsheet-grid {
190
+ display: grid;
191
+ grid-template-columns: repeat(3, 1fr);
192
+ gap: 0.5rem;
193
+ padding: 0.5rem 0;
194
+ }
195
+
196
+ .bottomsheet-grid-item {
197
+ display: flex;
198
+ flex-direction: column;
199
+ align-items: center;
200
+ gap: 0.5rem;
201
+ padding: 1rem 0.5rem;
202
+ font-size: 0.75rem;
203
+ color: var(--color-on-surface);
204
+ background-color: transparent;
205
+ border: none;
206
+ border-radius: 0.75rem;
207
+ cursor: pointer;
208
+ transition: background-color 150ms ease-in-out;
209
+ }
210
+
211
+ .bottomsheet-grid-item:hover {
212
+ background-color: var(--color-surface-container);
213
+ }
214
+
215
+ .bottomsheet-grid-item-icon {
216
+ display: flex;
217
+ align-items: center;
218
+ justify-content: center;
219
+ width: 3rem;
220
+ height: 3rem;
221
+ font-size: 1.5rem;
222
+ background-color: var(--color-surface-container-high);
223
+ border-radius: 50%;
224
+ color: var(--color-on-surface-variant);
225
+ }
226
+
227
+ /* Size Variants */
228
+ .bottomsheet-sm {
229
+ max-height: 50vh;
230
+ }
231
+
232
+ .bottomsheet-lg {
233
+ max-height: 95vh;
234
+ }
235
+
236
+ .bottomsheet-full {
237
+ max-height: 100vh;
238
+ height: 100vh;
239
+ border-radius: 0;
240
+ }
241
+
242
+ /* Persistent (non-modal) */
243
+ .bottomsheet-persistent {
244
+ position: absolute;
245
+ box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
246
+ }
247
+
248
+ /* Expandable Heights */
249
+ .bottomsheet-peek {
250
+ max-height: 30vh;
251
+ }
252
+
253
+ .bottomsheet-half {
254
+ max-height: 50vh;
255
+ }
256
+
257
+ .bottomsheet-expanded {
258
+ max-height: 90vh;
259
+ }
260
+
261
+ /* Detent Indicators */
262
+ .bottomsheet-detents {
263
+ position: absolute;
264
+ right: 1rem;
265
+ top: 50%;
266
+ transform: translateY(-50%);
267
+ display: flex;
268
+ flex-direction: column;
269
+ gap: 0.25rem;
270
+ }
271
+
272
+ .bottomsheet-detent {
273
+ width: 0.25rem;
274
+ height: 1rem;
275
+ background-color: var(--color-outline-variant);
276
+ border-radius: 9999px;
277
+ cursor: pointer;
278
+ }
279
+
280
+ .bottomsheet-detent.active {
281
+ background-color: var(--color-primary);
282
+ }
283
+
284
+ /* Divider in Bottom Sheet */
285
+ .bottomsheet-divider {
286
+ height: 1px;
287
+ margin: 0.5rem 0;
288
+ background-color: var(--color-outline-variant);
289
+ }
290
+
291
+ /* Section Title */
292
+ .bottomsheet-section-title {
293
+ padding: 0.75rem 0;
294
+ font-size: 0.75rem;
295
+ font-weight: 600;
296
+ text-transform: uppercase;
297
+ letter-spacing: 0.05em;
298
+ color: var(--color-on-surface-variant);
299
+ }
300
+
301
+ /* Desktop Breakpoint - Convert to Side Sheet */
302
+ @media (min-width: 768px) {
303
+ .bottomsheet-responsive {
304
+ left: auto;
305
+ right: 0;
306
+ top: 0;
307
+ bottom: 0;
308
+ width: 24rem;
309
+ max-width: calc(100vw - 3.5rem);
310
+ max-height: 100vh;
311
+ border-radius: 1rem 0 0 1rem;
312
+ transform: translateX(100%);
313
+ }
314
+
315
+ .bottomsheet-responsive.show {
316
+ transform: translateX(0);
317
+ }
318
+
319
+ .bottomsheet-responsive .bottomsheet-handle {
320
+ display: none;
321
+ }
322
+ }
323
+
324
+ /* Reduce Motion */
325
+ @media (prefers-reduced-motion: reduce) {
326
+ .bottomsheet,
327
+ .bottomsheet-backdrop,
328
+ .bottomsheet-close,
329
+ .bottomsheet-item,
330
+ .bottomsheet-grid-item {
331
+ transition: none;
332
+ }
333
+ }
334
+ }