@pimolu/web-styles 0.0.0-stage → 0.1.0-beta.2

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 (134) hide show
  1. package/README.fr.md +40 -0
  2. package/README.md +40 -3
  3. package/dist/accordion.css +122 -0
  4. package/dist/alert.css +147 -0
  5. package/dist/anchor.css +121 -0
  6. package/dist/api-table.css +110 -0
  7. package/dist/app-shell.css +201 -0
  8. package/dist/aspect-ratio.css +34 -0
  9. package/dist/audio-player.css +327 -0
  10. package/dist/avatar-group.css +58 -0
  11. package/dist/avatar.css +93 -0
  12. package/dist/badge.css +148 -0
  13. package/dist/banner.css +145 -0
  14. package/dist/box.css +39 -0
  15. package/dist/breadcrumbs.css +48 -0
  16. package/dist/button-group.css +84 -0
  17. package/dist/button.css +278 -0
  18. package/dist/calendar.css +221 -0
  19. package/dist/card.css +126 -0
  20. package/dist/carousel.css +223 -0
  21. package/dist/cascader.css +273 -0
  22. package/dist/center.css +20 -0
  23. package/dist/chart.css +377 -0
  24. package/dist/chat.css +517 -0
  25. package/dist/checkbox.css +184 -0
  26. package/dist/circular-progress.css +125 -0
  27. package/dist/code-block.css +169 -0
  28. package/dist/code.css +81 -0
  29. package/dist/color-picker.css +295 -0
  30. package/dist/combobox.css +306 -0
  31. package/dist/command.css +204 -0
  32. package/dist/container.css +36 -0
  33. package/dist/context-menu.css +105 -0
  34. package/dist/currency-input.css +134 -0
  35. package/dist/dashboard-layout.css +222 -0
  36. package/dist/data-grid.css +515 -0
  37. package/dist/data-table.css +191 -0
  38. package/dist/date-picker.css +200 -0
  39. package/dist/date-range-picker.css +260 -0
  40. package/dist/description-list.css +76 -0
  41. package/dist/dialog.css +183 -0
  42. package/dist/docs-layout.css +196 -0
  43. package/dist/drawer.css +219 -0
  44. package/dist/dropdown-menu.css +82 -0
  45. package/dist/dropzone.css +248 -0
  46. package/dist/empty-state.css +120 -0
  47. package/dist/file-manager.css +408 -0
  48. package/dist/file-upload.css +235 -0
  49. package/dist/flex.css +70 -0
  50. package/dist/focus-scope.css +13 -0
  51. package/dist/footer.css +200 -0
  52. package/dist/form-field.css +91 -0
  53. package/dist/form.css +27 -0
  54. package/dist/gantt.css +406 -0
  55. package/dist/grid.css +51 -0
  56. package/dist/hero.css +176 -0
  57. package/dist/hover-card.css +76 -0
  58. package/dist/image-cropper.css +431 -0
  59. package/dist/image.css +158 -0
  60. package/dist/input-group.css +435 -0
  61. package/dist/input.css +259 -0
  62. package/dist/kanban.css +473 -0
  63. package/dist/label.css +39 -0
  64. package/dist/lightbox.css +286 -0
  65. package/dist/link.css +66 -0
  66. package/dist/list.css +111 -0
  67. package/dist/loading-overlay.css +103 -0
  68. package/dist/masked-input.css +134 -0
  69. package/dist/mentions.css +212 -0
  70. package/dist/menubar.css +140 -0
  71. package/dist/multi-select.css +399 -0
  72. package/dist/navbar.css +247 -0
  73. package/dist/navigation-menu.css +132 -0
  74. package/dist/notification-center.css +331 -0
  75. package/dist/number-input.css +196 -0
  76. package/dist/page-header.css +160 -0
  77. package/dist/pagination.css +92 -0
  78. package/dist/password-input.css +291 -0
  79. package/dist/pdf-viewer.css +148 -0
  80. package/dist/phone-input.css +182 -0
  81. package/dist/pimolu.css +22277 -0
  82. package/dist/pimolu.min.css +1 -0
  83. package/dist/pin-input.css +121 -0
  84. package/dist/popconfirm.css +95 -0
  85. package/dist/popover.css +90 -0
  86. package/dist/progress.css +105 -0
  87. package/dist/prose.css +296 -0
  88. package/dist/qr-code.css +17 -0
  89. package/dist/radio.css +220 -0
  90. package/dist/range-slider.css +214 -0
  91. package/dist/rating.css +122 -0
  92. package/dist/resizable.css +122 -0
  93. package/dist/result.css +118 -0
  94. package/dist/scheduler.css +385 -0
  95. package/dist/scroll-area.css +55 -0
  96. package/dist/search-input.css +41 -0
  97. package/dist/segmented-control.css +109 -0
  98. package/dist/select.css +296 -0
  99. package/dist/separator.css +66 -0
  100. package/dist/sidebar.css +218 -0
  101. package/dist/signature.css +189 -0
  102. package/dist/skeleton.css +90 -0
  103. package/dist/slider.css +163 -0
  104. package/dist/spacer.css +20 -0
  105. package/dist/spinner.css +165 -0
  106. package/dist/split-button.css +100 -0
  107. package/dist/stack.css +58 -0
  108. package/dist/stat.css +159 -0
  109. package/dist/stepper.css +155 -0
  110. package/dist/switch.css +194 -0
  111. package/dist/table-of-contents.css +90 -0
  112. package/dist/table.css +147 -0
  113. package/dist/tabs.css +335 -0
  114. package/dist/tags-input.css +236 -0
  115. package/dist/textarea.css +208 -0
  116. package/dist/theme-builder.css +269 -0
  117. package/dist/time-picker.css +174 -0
  118. package/dist/timeline.css +195 -0
  119. package/dist/toast.css +139 -0
  120. package/dist/toggle-group.css +21 -0
  121. package/dist/toggle.css +102 -0
  122. package/dist/toolbar.css +124 -0
  123. package/dist/tooltip.css +95 -0
  124. package/dist/tour.css +196 -0
  125. package/dist/transfer.css +426 -0
  126. package/dist/tree-select.css +340 -0
  127. package/dist/tree-table.css +173 -0
  128. package/dist/tree-view.css +83 -0
  129. package/dist/typography.css +92 -0
  130. package/dist/video-player.css +299 -0
  131. package/dist/virtual-list.css +59 -0
  132. package/dist/visually-hidden.css +44 -0
  133. package/dist/watermark.css +41 -0
  134. package/package.json +169 -6
package/dist/chat.css ADDED
@@ -0,0 +1,517 @@
1
+ /* src/chat.css */
2
+ .pimolu-chat {
3
+ --pimolu-chat-height: 34rem;
4
+ --pimolu-chat-bubble-gap: 4px;
5
+ display: flex;
6
+ flex-direction: column;
7
+ box-sizing: border-box;
8
+ width: 100%;
9
+ height: var(--pimolu-chat-height);
10
+ min-height: 22rem;
11
+ max-height: 80vh;
12
+ overflow: hidden;
13
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
14
+ border-radius: var(--pimolu-radius-lg, 14px);
15
+ background: var(--pimolu-background, #fff);
16
+ color: var(--pimolu-foreground, currentColor);
17
+ font-family: var(--pimolu-font-body, inherit);
18
+ font-size: var(--pimolu-font-size-sm, 14px);
19
+ }
20
+ .pimolu-chat__header {
21
+ display: flex;
22
+ flex: none;
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ gap: var(--pimolu-spacing-3, 12px);
26
+ padding: var(--pimolu-spacing-3, 12px) var(--pimolu-spacing-4, 16px);
27
+ border-bottom: 1px solid var(--pimolu-border, #e2e8f0);
28
+ background: var(--pimolu-surface, var(--pimolu-background, #fff));
29
+ color: var( --pimolu-surface-foreground, var(--pimolu-foreground, currentColor) );
30
+ }
31
+ .pimolu-chat__header > * {
32
+ min-width: 0;
33
+ }
34
+ .pimolu-chat__body {
35
+ position: relative;
36
+ display: flex;
37
+ flex: 1;
38
+ flex-direction: column;
39
+ min-height: 0;
40
+ }
41
+ .pimolu-chat__log {
42
+ display: flex;
43
+ flex: 1;
44
+ flex-direction: column;
45
+ gap: var(--pimolu-spacing-4, 16px);
46
+ box-sizing: border-box;
47
+ margin: 0;
48
+ padding: var(--pimolu-spacing-4, 16px);
49
+ overflow-y: auto;
50
+ overscroll-behavior-y: contain;
51
+ scroll-behavior: smooth;
52
+ scrollbar-color: var(--pimolu-border, #e2e8f0) transparent;
53
+ list-style: none;
54
+ }
55
+ .pimolu-chat__date {
56
+ display: flex;
57
+ align-items: center;
58
+ gap: var(--pimolu-spacing-2, 8px);
59
+ margin-block: 2px;
60
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
61
+ font-size: 11px;
62
+ font-weight: 600;
63
+ letter-spacing: 0.05em;
64
+ text-transform: uppercase;
65
+ list-style: none;
66
+ }
67
+ .pimolu-chat__date::before,
68
+ .pimolu-chat__date::after {
69
+ content: "";
70
+ flex: 1;
71
+ height: 1px;
72
+ background: var(--pimolu-border, #e2e8f0);
73
+ }
74
+ .pimolu-chat__date > span {
75
+ flex: none;
76
+ }
77
+ .pimolu-chat__message {
78
+ display: flex;
79
+ align-items: flex-start;
80
+ gap: var(--pimolu-spacing-2, 8px);
81
+ max-width: 100%;
82
+ min-width: 0;
83
+ list-style: none;
84
+ }
85
+ .pimolu-chat__message--own {
86
+ flex-direction: row-reverse;
87
+ }
88
+ .pimolu-chat__avatar {
89
+ flex: none;
90
+ margin-block-start: 18px;
91
+ }
92
+ .pimolu-chat__content {
93
+ display: flex;
94
+ flex-direction: column;
95
+ gap: var(--pimolu-chat-bubble-gap);
96
+ min-width: 0;
97
+ max-width: min(82%, 42rem);
98
+ }
99
+ .pimolu-chat__message--own .pimolu-chat__content {
100
+ align-items: flex-end;
101
+ }
102
+ .pimolu-chat__meta {
103
+ display: flex;
104
+ align-items: center;
105
+ flex-wrap: wrap;
106
+ gap: 6px;
107
+ min-width: 0;
108
+ }
109
+ .pimolu-chat__author {
110
+ color: var(--pimolu-foreground, currentColor);
111
+ font-size: var(--pimolu-font-size-xs, 12px);
112
+ font-weight: 600;
113
+ line-height: 1.3;
114
+ }
115
+ .pimolu-chat__message--own .pimolu-chat__author {
116
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
117
+ }
118
+ .pimolu-chat__time {
119
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
120
+ font-size: 11px;
121
+ font-variant-numeric: tabular-nums;
122
+ line-height: 1.3;
123
+ }
124
+ .pimolu-chat__status {
125
+ display: inline-flex;
126
+ align-items: center;
127
+ gap: 3px;
128
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
129
+ font-size: 11px;
130
+ line-height: 1.3;
131
+ }
132
+ .pimolu-chat__status--sent {
133
+ color: var(--pimolu-success, #15803d);
134
+ }
135
+ .pimolu-chat__status--error {
136
+ color: var(--pimolu-danger, #dc2626);
137
+ }
138
+ .pimolu-chat__status-spinner {
139
+ display: inline-block;
140
+ box-sizing: border-box;
141
+ width: 10px;
142
+ height: 10px;
143
+ border: 1.5px solid currentColor;
144
+ border-top-color: transparent;
145
+ border-radius: var( --pimolu-radius-full, 9999px );
146
+ animation: pimolu-chat-spin 800ms linear infinite;
147
+ }
148
+ .pimolu-chat__status-text {
149
+ font-weight: 550;
150
+ }
151
+ .pimolu-chat__bubble {
152
+ box-sizing: border-box;
153
+ max-width: 100%;
154
+ padding: 9px 12px;
155
+ border: 1px solid transparent;
156
+ border-radius: var(--pimolu-radius-lg, 14px) var(--pimolu-radius-lg, 14px) var(--pimolu-radius-lg, 14px) var(--pimolu-radius-sm, 6px);
157
+ background: var(--pimolu-muted, #f1f5f9);
158
+ color: var(--pimolu-foreground, currentColor);
159
+ line-height: 1.55;
160
+ white-space: pre-wrap;
161
+ overflow-wrap: anywhere;
162
+ }
163
+ .pimolu-chat__message--own .pimolu-chat__bubble {
164
+ border-color: var( --pimolu-primary, #4f46e5 );
165
+ border-radius: var(--pimolu-radius-lg, 14px) var(--pimolu-radius-lg, 14px) var(--pimolu-radius-sm, 6px) var(--pimolu-radius-lg, 14px);
166
+ background: var(--pimolu-primary, #4f46e5);
167
+ color: var( --pimolu-primary-foreground, #fff );
168
+ }
169
+ .pimolu-chat__message[data-status=error] .pimolu-chat__bubble {
170
+ border-color: var(--pimolu-danger, #dc2626);
171
+ }
172
+ .pimolu-chat__attachments {
173
+ display: flex;
174
+ flex-direction: column;
175
+ gap: var(--pimolu-chat-bubble-gap);
176
+ box-sizing: border-box;
177
+ width: min(100%, 20rem);
178
+ margin: 0;
179
+ padding: 0;
180
+ list-style: none;
181
+ }
182
+ .pimolu-chat__attachment {
183
+ display: flex;
184
+ align-items: center;
185
+ gap: 6px;
186
+ box-sizing: border-box;
187
+ min-width: 0;
188
+ padding: 6px 8px;
189
+ border: 1px solid var(--pimolu-border, #e2e8f0);
190
+ border-radius: var(--pimolu-radius-sm, 6px);
191
+ background: var(--pimolu-surface, #f8fafc);
192
+ color: var(--pimolu-foreground, currentColor);
193
+ font-size: var(--pimolu-font-size-xs, 12px);
194
+ }
195
+ .pimolu-chat__message--own .pimolu-chat__attachment {
196
+ align-self: flex-end;
197
+ }
198
+ .pimolu-chat__attachment-icon {
199
+ display: inline-flex;
200
+ flex: none;
201
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
202
+ }
203
+ .pimolu-chat__attachment-name {
204
+ min-width: 0;
205
+ overflow: hidden;
206
+ color: var(--pimolu-primary, #4f46e5);
207
+ text-overflow: ellipsis;
208
+ white-space: nowrap;
209
+ }
210
+ a.pimolu-chat__attachment-name {
211
+ text-underline-offset: 2px;
212
+ }
213
+ a.pimolu-chat__attachment-name:hover {
214
+ text-decoration: underline;
215
+ }
216
+ a.pimolu-chat__attachment-name:focus-visible {
217
+ outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary, #4f46e5));
218
+ outline-offset: 2px;
219
+ border-radius: 2px;
220
+ }
221
+ .pimolu-chat__attachment-size {
222
+ flex: none;
223
+ margin-inline-start: auto;
224
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
225
+ font-variant-numeric: tabular-nums;
226
+ }
227
+ .pimolu-chat__typing {
228
+ display: flex;
229
+ flex: none;
230
+ align-items: center;
231
+ gap: var(--pimolu-spacing-2, 8px);
232
+ padding: 0 var(--pimolu-spacing-4, 16px) var(--pimolu-spacing-2, 8px);
233
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
234
+ font-size: var(--pimolu-font-size-xs, 12px);
235
+ }
236
+ .pimolu-chat__typing-dots {
237
+ display: inline-flex;
238
+ align-items: center;
239
+ gap: 3px;
240
+ height: 12px;
241
+ }
242
+ .pimolu-chat__typing-dots > span {
243
+ width: 4px;
244
+ height: 4px;
245
+ border-radius: var( --pimolu-radius-full, 9999px );
246
+ background: currentColor;
247
+ animation: pimolu-chat-bounce 1s ease-in-out infinite;
248
+ }
249
+ .pimolu-chat__typing-dots > span:nth-child(2) {
250
+ animation-delay: 150ms;
251
+ }
252
+ .pimolu-chat__typing-dots > span:nth-child(3) {
253
+ animation-delay: 300ms;
254
+ }
255
+ .pimolu-chat__composer {
256
+ display: flex;
257
+ flex: none;
258
+ align-items: flex-end;
259
+ gap: var(--pimolu-spacing-2, 8px);
260
+ padding: var(--pimolu-spacing-2, 8px) var(--pimolu-spacing-3, 12px);
261
+ border-top: 1px solid var(--pimolu-border, #e2e8f0);
262
+ background: var(--pimolu-background, #fff);
263
+ }
264
+ .pimolu-chat__input {
265
+ flex: 1;
266
+ box-sizing: border-box;
267
+ width: 100%;
268
+ min-height: 38px;
269
+ max-height: 8rem;
270
+ padding: 9px 12px;
271
+ border: 1px solid var(--pimolu-border, #e2e8f0);
272
+ border-radius: var(--pimolu-radius-lg, 14px);
273
+ background: var(--pimolu-surface, #f8fafc);
274
+ color: var(--pimolu-foreground, currentColor);
275
+ font: inherit;
276
+ line-height: 1.4;
277
+ resize: none;
278
+ transition:
279
+ border-color 150ms ease,
280
+ box-shadow 150ms ease,
281
+ background-color 150ms ease;
282
+ }
283
+ .pimolu-chat__input::placeholder {
284
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
285
+ opacity: 0.8;
286
+ }
287
+ .pimolu-chat__input:hover:not(:disabled) {
288
+ border-color: color-mix(in srgb, var(--pimolu-primary, #4f46e5) 30%, var(--pimolu-border, #e2e8f0));
289
+ }
290
+ .pimolu-chat__input:focus {
291
+ outline: none;
292
+ border-color: var(--pimolu-primary, #4f46e5);
293
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--pimolu-primary, #4f46e5) 20%, transparent);
294
+ }
295
+ .pimolu-chat__input:focus-visible {
296
+ outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary, #4f46e5));
297
+ outline-offset: 2px;
298
+ }
299
+ .pimolu-chat__input:disabled {
300
+ background: var(--pimolu-muted, #f1f5f9);
301
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
302
+ cursor: not-allowed;
303
+ opacity: 0.7;
304
+ }
305
+ .pimolu-chat__attach,
306
+ .pimolu-chat__send {
307
+ display: inline-grid;
308
+ place-items: center;
309
+ flex: none;
310
+ box-sizing: border-box;
311
+ width: 38px;
312
+ height: 38px;
313
+ padding: 0;
314
+ border: 0;
315
+ border-radius: var( --pimolu-radius-full, 9999px );
316
+ cursor: pointer;
317
+ transition:
318
+ background-color 150ms ease,
319
+ color 150ms ease,
320
+ opacity 150ms ease;
321
+ }
322
+ .pimolu-chat__attach {
323
+ background: transparent;
324
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
325
+ }
326
+ .pimolu-chat__attach:hover:not(:disabled) {
327
+ background: var(--pimolu-muted, #f1f5f9);
328
+ color: var(--pimolu-foreground, currentColor);
329
+ }
330
+ .pimolu-chat__send {
331
+ background: var(--pimolu-primary, #4f46e5);
332
+ color: var( --pimolu-primary-foreground, #fff );
333
+ }
334
+ .pimolu-chat__send:hover:not(:disabled) {
335
+ background: var( --pimolu-primary-hover, var(--pimolu-primary, #4f46e5) );
336
+ }
337
+ .pimolu-chat__attach:focus-visible,
338
+ .pimolu-chat__send:focus-visible {
339
+ outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary, #4f46e5));
340
+ outline-offset: 2px;
341
+ }
342
+ .pimolu-chat__attach:disabled,
343
+ .pimolu-chat__send:disabled {
344
+ cursor: not-allowed;
345
+ opacity: 0.45;
346
+ }
347
+ .pimolu-chat__empty,
348
+ .pimolu-chat__loading {
349
+ display: flex;
350
+ flex: 1;
351
+ flex-direction: column;
352
+ align-items: center;
353
+ justify-content: center;
354
+ gap: 6px;
355
+ box-sizing: border-box;
356
+ padding: var(--pimolu-spacing-8, 32px) var(--pimolu-spacing-6, 24px);
357
+ text-align: center;
358
+ }
359
+ .pimolu-chat__empty-icon {
360
+ display: grid;
361
+ place-items: center;
362
+ width: 44px;
363
+ height: 44px;
364
+ margin-block-end: 4px;
365
+ border-radius: var( --pimolu-radius-full, 9999px );
366
+ background: color-mix(in srgb, var(--pimolu-primary, #4f46e5) 10%, var(--pimolu-surface, var(--pimolu-background, #fff)));
367
+ color: var(--pimolu-primary, #4f46e5);
368
+ }
369
+ .pimolu-chat__empty-title {
370
+ margin: 0;
371
+ color: var(--pimolu-foreground, currentColor);
372
+ font-size: var(--pimolu-font-size-sm, 14px);
373
+ font-weight: 600;
374
+ }
375
+ .pimolu-chat__empty-description {
376
+ max-width: 36ch;
377
+ margin: 0;
378
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
379
+ font-size: var(--pimolu-font-size-xs, 12px);
380
+ line-height: 1.55;
381
+ }
382
+ .pimolu-chat__loading {
383
+ flex-direction: row;
384
+ gap: var(--pimolu-spacing-2, 8px);
385
+ color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
386
+ font-size: var(--pimolu-font-size-xs, 12px);
387
+ }
388
+ .pimolu-chat__spinner {
389
+ display: inline-block;
390
+ box-sizing: border-box;
391
+ width: 20px;
392
+ height: 20px;
393
+ border: 2px solid color-mix(in srgb, var(--pimolu-primary, #4f46e5) 25%, transparent);
394
+ border-top-color: var(--pimolu-primary, #4f46e5);
395
+ border-radius: var( --pimolu-radius-full, 9999px );
396
+ animation: pimolu-chat-spin 900ms linear infinite;
397
+ }
398
+ .pimolu-chat__sr {
399
+ position: absolute;
400
+ width: 1px;
401
+ height: 1px;
402
+ padding: 0;
403
+ margin: -1px;
404
+ overflow: hidden;
405
+ clip-path: inset(50%);
406
+ white-space: nowrap;
407
+ border: 0;
408
+ }
409
+ @keyframes pimolu-chat-spin {
410
+ to {
411
+ transform: rotate(360deg);
412
+ }
413
+ }
414
+ @keyframes pimolu-chat-bounce {
415
+ 0%, 60%, 100% {
416
+ transform: translateY(0);
417
+ opacity: 0.45;
418
+ }
419
+ 30% {
420
+ transform: translateY(-3px);
421
+ opacity: 1;
422
+ }
423
+ }
424
+ @media (max-width: 640px) {
425
+ .pimolu-chat {
426
+ --pimolu-chat-height: 30rem;
427
+ }
428
+ .pimolu-chat__log {
429
+ padding: var(--pimolu-spacing-3, 12px);
430
+ }
431
+ .pimolu-chat__content {
432
+ max-width: 88%;
433
+ }
434
+ .pimolu-chat__composer {
435
+ padding-inline: var(--pimolu-spacing-2, 8px);
436
+ }
437
+ .pimolu-chat__header {
438
+ padding-inline: var(--pimolu-spacing-3, 12px);
439
+ }
440
+ }
441
+ @media (prefers-reduced-motion: reduce) {
442
+ .pimolu-chat__log {
443
+ scroll-behavior: auto;
444
+ }
445
+ .pimolu-chat__typing-dots > span {
446
+ animation: none;
447
+ opacity: 0.7;
448
+ }
449
+ .pimolu-chat__input,
450
+ .pimolu-chat__attach,
451
+ .pimolu-chat__send {
452
+ transition: none;
453
+ }
454
+ }
455
+ @media (forced-colors: active) {
456
+ .pimolu-chat,
457
+ .pimolu-chat__header,
458
+ .pimolu-chat__composer,
459
+ .pimolu-chat__bubble,
460
+ .pimolu-chat__attachment,
461
+ .pimolu-chat__input {
462
+ border-color: CanvasText;
463
+ background: Canvas;
464
+ color: CanvasText;
465
+ box-shadow: none;
466
+ }
467
+ .pimolu-chat__message--own .pimolu-chat__bubble {
468
+ border: 2px solid CanvasText;
469
+ background: Canvas;
470
+ color: CanvasText;
471
+ }
472
+ .pimolu-chat__status--sent {
473
+ color: CanvasText;
474
+ }
475
+ .pimolu-chat__status--error {
476
+ color: Mark;
477
+ }
478
+ .pimolu-chat__send {
479
+ border: 1px solid ButtonText;
480
+ background: ButtonFace;
481
+ color: ButtonText;
482
+ }
483
+ .pimolu-chat__send:hover:not(:disabled),
484
+ .pimolu-chat__attach:hover:not(:disabled) {
485
+ background: Highlight;
486
+ color: HighlightText;
487
+ }
488
+ .pimolu-chat__send:disabled,
489
+ .pimolu-chat__attach:disabled,
490
+ .pimolu-chat__input:disabled {
491
+ color: GrayText;
492
+ opacity: 1;
493
+ }
494
+ .pimolu-chat__time,
495
+ .pimolu-chat__author,
496
+ .pimolu-chat__typing,
497
+ .pimolu-chat__empty-description,
498
+ .pimolu-chat__attachment-size {
499
+ color: CanvasText;
500
+ }
501
+ .pimolu-chat__date::before,
502
+ .pimolu-chat__date::after {
503
+ background: CanvasText;
504
+ }
505
+ .pimolu-chat__attachment-name {
506
+ color: LinkText;
507
+ }
508
+ .pimolu-chat__attach:focus-visible,
509
+ .pimolu-chat__send:focus-visible,
510
+ .pimolu-chat__input:focus-visible,
511
+ a.pimolu-chat__attachment-name:focus-visible {
512
+ outline: 2px solid Highlight;
513
+ }
514
+ .pimolu-chat__typing-dots > span {
515
+ background: CanvasText;
516
+ }
517
+ }
@@ -0,0 +1,184 @@
1
+ /* src/checkbox.css */
2
+ .pimolu-checkbox {
3
+ --pimolu-checkbox-size: 20px;
4
+ --pimolu-checkbox-gap: 12px;
5
+ --pimolu-checkbox-active: var(--pimolu-primary);
6
+ --pimolu-checkbox-active-foreground: var(--pimolu-primary-foreground, #fff);
7
+ display: inline-flex;
8
+ align-items: center;
9
+ gap: var(--pimolu-checkbox-gap);
10
+ min-width: 0;
11
+ max-width: 100%;
12
+ box-sizing: border-box;
13
+ color: var(--pimolu-foreground);
14
+ font-family: var(--pimolu-font-body, inherit);
15
+ vertical-align: middle;
16
+ }
17
+ .pimolu-checkbox--sm {
18
+ --pimolu-checkbox-size: 16px;
19
+ --pimolu-checkbox-gap: 8px;
20
+ }
21
+ .pimolu-checkbox--md {
22
+ --pimolu-checkbox-size: 20px;
23
+ --pimolu-checkbox-gap: 12px;
24
+ }
25
+ .pimolu-checkbox--lg {
26
+ --pimolu-checkbox-size: 24px;
27
+ --pimolu-checkbox-gap: 14px;
28
+ }
29
+ .pimolu-checkbox--neutral {
30
+ --pimolu-checkbox-active: var(--pimolu-foreground);
31
+ --pimolu-checkbox-active-foreground: var(--pimolu-background);
32
+ }
33
+ .pimolu-checkbox--primary {
34
+ --pimolu-checkbox-active: var(--pimolu-primary);
35
+ --pimolu-checkbox-active-foreground: var(--pimolu-primary-foreground, #fff);
36
+ }
37
+ .pimolu-checkbox--secondary {
38
+ --pimolu-checkbox-active: var(--pimolu-secondary);
39
+ --pimolu-checkbox-active-foreground: var(--pimolu-secondary-foreground, #fff);
40
+ }
41
+ .pimolu-checkbox--success {
42
+ --pimolu-checkbox-active: var(--pimolu-success, #15803d);
43
+ --pimolu-checkbox-active-foreground: var(--pimolu-success-foreground, #fff);
44
+ }
45
+ .pimolu-checkbox--warning {
46
+ --pimolu-checkbox-active: var(--pimolu-warning, #d97706);
47
+ --pimolu-checkbox-active-foreground: var(--pimolu-warning-foreground, #171717);
48
+ }
49
+ .pimolu-checkbox--danger {
50
+ --pimolu-checkbox-active: var(--pimolu-danger, #dc2626);
51
+ --pimolu-checkbox-active-foreground: var(--pimolu-danger-foreground, #fff);
52
+ }
53
+ .pimolu-checkbox__control {
54
+ position: relative;
55
+ display: inline-flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ flex: 0 0 auto;
59
+ width: 44px;
60
+ height: 44px;
61
+ box-sizing: border-box;
62
+ }
63
+ .pimolu-checkbox__input {
64
+ position: absolute;
65
+ inset: 0;
66
+ z-index: 1;
67
+ display: block;
68
+ width: 100%;
69
+ height: 100%;
70
+ margin: 0;
71
+ padding: 0;
72
+ opacity: 0;
73
+ cursor: pointer;
74
+ }
75
+ .pimolu-checkbox__box {
76
+ display: inline-flex;
77
+ align-items: center;
78
+ justify-content: center;
79
+ width: var(--pimolu-checkbox-size);
80
+ height: var(--pimolu-checkbox-size);
81
+ box-sizing: border-box;
82
+ background: var( --pimolu-surface, var(--pimolu-background) );
83
+ color: var(--pimolu-checkbox-active-foreground);
84
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
85
+ border-radius: var(--pimolu-radius-sm, 4px);
86
+ pointer-events: none;
87
+ transition:
88
+ background-color 160ms ease,
89
+ border-color 160ms ease,
90
+ color 160ms ease;
91
+ }
92
+ .pimolu-checkbox__input:checked + .pimolu-checkbox__box,
93
+ .pimolu-checkbox__input:indeterminate + .pimolu-checkbox__box {
94
+ background: var(--pimolu-checkbox-active);
95
+ border-color: var(--pimolu-checkbox-active);
96
+ }
97
+ .pimolu-checkbox__check,
98
+ .pimolu-checkbox__minus {
99
+ display: none;
100
+ width: 80%;
101
+ height: 80%;
102
+ flex: 0 0 auto;
103
+ }
104
+ .pimolu-checkbox__input:checked:not(:indeterminate) + .pimolu-checkbox__box .pimolu-checkbox__check {
105
+ display: block;
106
+ }
107
+ .pimolu-checkbox__input:indeterminate + .pimolu-checkbox__box .pimolu-checkbox__minus {
108
+ display: block;
109
+ }
110
+ .pimolu-checkbox__input:hover:not(:disabled) + .pimolu-checkbox__box {
111
+ border-color: var(--pimolu-checkbox-active);
112
+ }
113
+ .pimolu-checkbox__input:focus-visible + .pimolu-checkbox__box {
114
+ outline: 2px solid var( --pimolu-focus-ring, var(--pimolu-primary) );
115
+ outline-offset: 3px;
116
+ }
117
+ .pimolu-checkbox__input[aria-invalid=true] + .pimolu-checkbox__box {
118
+ border-color: var(--pimolu-danger, #dc2626);
119
+ }
120
+ .pimolu-checkbox--disabled {
121
+ opacity: 0.55;
122
+ }
123
+ .pimolu-checkbox__input:disabled {
124
+ cursor: not-allowed;
125
+ }
126
+ .pimolu-checkbox--disabled .pimolu-checkbox__label {
127
+ cursor: not-allowed;
128
+ }
129
+ .pimolu-checkbox__content {
130
+ display: flex;
131
+ flex-direction: column;
132
+ gap: 4px;
133
+ min-width: 0;
134
+ }
135
+ .pimolu-checkbox__label {
136
+ font-size: 0.875rem;
137
+ line-height: 1.4;
138
+ color: var(--pimolu-foreground);
139
+ overflow-wrap: anywhere;
140
+ cursor: pointer;
141
+ }
142
+ .pimolu-checkbox--sm .pimolu-checkbox__label {
143
+ font-size: 0.8125rem;
144
+ }
145
+ .pimolu-checkbox--lg .pimolu-checkbox__label {
146
+ font-size: 1rem;
147
+ }
148
+ .pimolu-checkbox__description {
149
+ color: var(--pimolu-muted-foreground);
150
+ font-size: 0.8125rem;
151
+ line-height: 1.5;
152
+ overflow-wrap: anywhere;
153
+ }
154
+ .pimolu-checkbox__required {
155
+ margin-inline-start: 3px;
156
+ color: var(--pimolu-danger, currentColor);
157
+ }
158
+ @media (prefers-reduced-motion: reduce) {
159
+ .pimolu-checkbox__box {
160
+ transition: none;
161
+ }
162
+ }
163
+ @media (forced-colors: active) {
164
+ .pimolu-checkbox {
165
+ opacity: 1;
166
+ }
167
+ .pimolu-checkbox__box {
168
+ background: Canvas;
169
+ color: CanvasText;
170
+ border-color: CanvasText;
171
+ }
172
+ .pimolu-checkbox__input:checked + .pimolu-checkbox__box,
173
+ .pimolu-checkbox__input:indeterminate + .pimolu-checkbox__box {
174
+ background: Highlight;
175
+ color: HighlightText;
176
+ border-color: Highlight;
177
+ }
178
+ .pimolu-checkbox__input:focus-visible + .pimolu-checkbox__box {
179
+ outline-color: Highlight;
180
+ }
181
+ .pimolu-checkbox__input:disabled + .pimolu-checkbox__box {
182
+ border-color: GrayText;
183
+ }
184
+ }