@coolms/ui-react 0.1.0-alpha.45 → 0.1.0-alpha.47
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 +14 -0
- package/dist/components/Collections.d.ts +2 -2
- package/dist/index.js +692 -687
- package/package.json +1 -1
- package/src/kit.css +14 -1
package/package.json
CHANGED
package/src/kit.css
CHANGED
|
@@ -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,11 @@
|
|
|
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; and above a screen's
|
|
793
|
+
floating primary when one is shown (its height and its gap), so it never covers that button either. A host with
|
|
794
|
+
a floating button of its own lifts the toast by setting --toast-lift. */
|
|
795
|
+
:root:has(.cms-shell) .cms-toast-region { bottom: calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px) + 8px + var(--toast-lift, 0px)); }
|
|
796
|
+
:root:has(.cms-shell .cms-screen__primary) { --toast-lift: calc(var(--cms-control-height-lg) + var(--cms-space-3) + var(--cms-space-4)); }
|
|
784
797
|
.cms-shell {
|
|
785
798
|
grid-template-columns: minmax(0, 1fr);
|
|
786
799
|
grid-template-rows: var(--cms-topbar-height) minmax(0, 1fr) calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px));
|