@coolms/ui-react 0.1.0-alpha.20 → 0.1.0-alpha.22
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/design-tokens.lock.json +7 -3
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/ScreenShell.d.ts +8 -2
- package/dist/components/pull.d.ts +2 -2
- package/dist/index.js +1025 -957
- package/kit.contract.json +1 -1
- package/package.json +1 -1
- package/src/kit.css +8 -0
package/kit.contract.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tab-strip": { "implementedBy": "TabStrip", "states": ["default", "active", "with-count"] },
|
|
17
17
|
"list": { "implementedBy": "List", "states": ["loading", "empty", "populated", "selected", "error", "pulled"] },
|
|
18
18
|
"avatar": { "implementedBy": "Avatar", "states": ["picture", "initials", "presence", "connection", "deleted"] },
|
|
19
|
-
"screen-shell": { "implementedBy": "ScreenShell", "states": ["root", "nested", "with-filters", "with-primary-action", "with-primary-menu", "pulling", "refreshing", "searching"] },
|
|
19
|
+
"screen-shell": { "implementedBy": "ScreenShell", "states": ["root", "nested", "with-filters", "with-primary-action", "with-primary-menu", "pulling", "refreshing", "searching", "bar-hidden"] },
|
|
20
20
|
"context-menu": { "implementedBy": "ContextMenu", "states": ["open", "item-danger", "item-locked", "item-refused", "item-disabled"] },
|
|
21
21
|
"file-viewer": { "implementedBy": "FileViewer", "states": ["loading", "error", "no-preview", "editing", "editing-closing", "editing-conflict", "with-edit", "with-siblings", "with-thumbnails", "with-attachment-strip", "phone"] },
|
|
22
22
|
"file-picker": { "implementedBy": "FilePicker", "states": ["loading", "empty", "error", "denied", "with-selection", "with-budget", "over-budget", "disabled-entry", "paging", "phone"] },
|
package/package.json
CHANGED
package/src/kit.css
CHANGED
|
@@ -279,6 +279,10 @@
|
|
|
279
279
|
.cms-screen__filters { flex: none; padding: var(--cms-space-2) var(--cms-space-4); overflow-x: auto; }
|
|
280
280
|
.cms-screen__content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
|
|
281
281
|
.cms-screen__primary { position: absolute; right: var(--cms-space-4); bottom: var(--cms-space-4); z-index: 2; width: calc(var(--cms-control-height-lg) + var(--cms-space-3)); height: calc(var(--cms-control-height-lg) + var(--cms-space-3)); min-height: 0; padding: 0; border-radius: 50%; justify-content: center; box-shadow: var(--cms-shadow-md); }
|
|
282
|
+
/* bar-hidden: the bar and the filters step out of view, collapsed rather than removed, so focus can still reach them
|
|
283
|
+
(and brings them back). */
|
|
284
|
+
.cms-screen[data-bar-hidden] > .cms-screen__bar, .cms-screen[data-bar-hidden] > .cms-screen__filters { height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; overflow: hidden; }
|
|
285
|
+
@media (prefers-reduced-motion: reduce) { .cms-screen__bar, .cms-screen__filters { transition: none; animation: none; } }
|
|
282
286
|
.cms-screen--with-primary .cms-screen__content { padding-bottom: calc(var(--cms-control-height-lg) + var(--cms-space-3) + 2 * var(--cms-space-4)); }
|
|
283
287
|
|
|
284
288
|
/* Avatar */
|
|
@@ -669,6 +673,10 @@
|
|
|
669
673
|
.cms-signin { grid-template-columns: minmax(0, 1fr); }
|
|
670
674
|
.cms-signin__brand { display: none; }
|
|
671
675
|
.cms-signin__form { padding: var(--cms-space-6) var(--cms-space-4); }
|
|
676
|
+
/* One header: while a screen shell is drawn, the shell's own top bar gives way to the screen's bar, which carries the
|
|
677
|
+
host's globals (the account, the search). */
|
|
678
|
+
.cms-shell:has(.cms-screen) { grid-template-rows: 0 minmax(0, 1fr) calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px)); }
|
|
679
|
+
.cms-shell:has(.cms-screen) .cms-shell__top { overflow: hidden; border-bottom: 0; }
|
|
672
680
|
}
|
|
673
681
|
|
|
674
682
|
/* File picker: a dialog of fixed height whose list scrolls; on a phone the whole screen, its foot kept at the bottom. */
|