@coolms/ui-react 0.1.0-alpha.44 → 0.1.0-alpha.46
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.
- package/CHANGELOG.md +17 -0
- package/dist/components/Collections.d.ts +8 -3
- package/dist/index.js +1080 -1075
- package/package.json +1 -1
- package/src/kit.css +15 -5
package/package.json
CHANGED
package/src/kit.css
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
.cms-field.is-invalid .cms-input { border-color: var(--cms-danger); }
|
|
84
84
|
.cms-field__help { margin: 0; color: var(--cms-text-muted); font-size: 0.875em; }
|
|
85
85
|
.cms-field__error { margin: 0; color: var(--cms-danger-text); font-size: 0.875em; }
|
|
86
|
-
.cms-field__pinned { margin: 0; color: var(--cms-
|
|
86
|
+
.cms-field__pinned { margin: 0; color: var(--cms-text-muted); font-size: 0.875em; display: flex; gap: 4px; align-items: center; }
|
|
87
87
|
|
|
88
88
|
/* Toggle: the label on the switch's baseline */
|
|
89
89
|
.cms-toggle-row { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; margin-bottom: 12px; }
|
|
@@ -167,8 +167,8 @@
|
|
|
167
167
|
.cms-toast--success > .cms-glyph { color: var(--cms-success-text); }
|
|
168
168
|
.cms-toast--error { border-left-color: var(--cms-danger); }
|
|
169
169
|
.cms-toast--error > .cms-glyph { color: var(--cms-danger-text); }
|
|
170
|
-
.cms-toast--info { border-left-color: var(--cms-
|
|
171
|
-
.cms-toast--info > .cms-glyph { color: var(--cms-
|
|
170
|
+
.cms-toast--info { border-left-color: var(--cms-border-strong); }
|
|
171
|
+
.cms-toast--info > .cms-glyph { color: var(--cms-text-muted); }
|
|
172
172
|
|
|
173
173
|
/* Loading, empty, error */
|
|
174
174
|
.cms-loading { display: inline-flex; align-items: center; gap: 8px; color: var(--cms-text-muted); }
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
.cms-avatar__presence { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; border: 2px solid var(--cms-surface); border-radius: 50%; }
|
|
368
368
|
.cms-avatar__presence.is-online { background: var(--cms-success); }
|
|
369
369
|
.cms-avatar__presence.is-away { background: var(--cms-warning); }
|
|
370
|
-
.cms-avatar__presence.is-offline { background: var(--cms-
|
|
370
|
+
.cms-avatar__presence.is-offline { background: var(--cms-border-control); }
|
|
371
371
|
.cms-avatar__presence.is-connected { background: var(--cms-success); }
|
|
372
372
|
.cms-avatar__presence.is-reconnecting { background: var(--cms-warning); }
|
|
373
373
|
.cms-avatar__presence.is-disconnected { background: var(--cms-text-muted); }
|
|
@@ -391,10 +391,14 @@
|
|
|
391
391
|
color: var(--cms-text);
|
|
392
392
|
box-shadow: var(--cms-shadow-lg);
|
|
393
393
|
}
|
|
394
|
+
.cms-menu { max-width: calc(100vw - 16px); }
|
|
394
395
|
.cms-menu__item { display: flex; align-items: center; gap: 8px; min-height: var(--cms-row-height-sm); padding: 0 10px; border-radius: var(--cms-radius-sm); cursor: pointer; }
|
|
396
|
+
/* The item's words: the label on one line, never wrapped word by word (clipped only where the screen is narrower than
|
|
397
|
+
it), and the item's own reason, when it has one, on the line below. */
|
|
398
|
+
.cms-menu__text { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; padding-block: 4px; }
|
|
395
399
|
.cms-menu__item:hover, .cms-menu__item:focus { background: var(--cms-hover-bg); outline: none; }
|
|
396
400
|
/* An item's icon and its words share one line, centred on each other. */
|
|
397
|
-
.cms-menu__label { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
|
|
401
|
+
.cms-menu__label { display: flex; flex: 1; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; min-width: 0; }
|
|
398
402
|
.cms-menu__label > svg { flex: none; }
|
|
399
403
|
/* A single choice's mark: its place is kept on every choice, so the labels line up. */
|
|
400
404
|
.cms-menu__check { display: inline-flex; flex: none; width: 16px; color: var(--cms-accent-text); }
|
|
@@ -403,7 +407,11 @@
|
|
|
403
407
|
.cms-menu__group { padding: var(--cms-space-1) 10px; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
404
408
|
.cms-menu__item.is-danger { color: var(--cms-danger-text); }
|
|
405
409
|
.cms-menu__item.is-refused { color: var(--cms-text-muted); cursor: not-allowed; }
|
|
410
|
+
/* Refused, the label and its icon are dimmed; the reason below stays legible in the muted text colour. */
|
|
411
|
+
.cms-menu__item.is-refused .cms-menu__label, .cms-menu__item.is-refused > svg { opacity: .55; }
|
|
406
412
|
.cms-menu__refusal { font-size: 0.8125em; }
|
|
413
|
+
/* One reason for every refused item, said once over them all. */
|
|
414
|
+
.cms-menu__reason { padding: var(--cms-space-1) 10px var(--cms-space-2); color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
|
|
407
415
|
|
|
408
416
|
/* One notification: its row (the title, the time, the body in one line until expanded), the chevron beside it, and a
|
|
409
417
|
button action under the text. Unread: the title in weight and a dot. */
|
|
@@ -781,6 +789,8 @@
|
|
|
781
789
|
|
|
782
790
|
/* Phone: a bottom tab bar instead of the rail, one pane at a time with Back, sign-in alone. */
|
|
783
791
|
@media (max-width: 599.98px) {
|
|
792
|
+
/* A toast sits above the bottom section bar, never over it, wherever the shell draws that bar. */
|
|
793
|
+
:root:has(.cms-shell) .cms-toast-region { bottom: calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px) + 8px); }
|
|
784
794
|
.cms-shell {
|
|
785
795
|
grid-template-columns: minmax(0, 1fr);
|
|
786
796
|
grid-template-rows: var(--cms-topbar-height) minmax(0, 1fr) calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px));
|