@coolms/ui-react 0.1.0-alpha.31 → 0.1.0-alpha.32
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 +8 -0
- package/design-tokens.lock.json +3 -3
- package/dist/components/ScreenShell.d.ts +9 -2
- package/dist/index.js +813 -792
- package/kit.contract.json +1 -1
- package/package.json +1 -1
- package/src/kit.css +10 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@coolms/ui-react` are listed here. Versions follow [semantic versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## 0.1.0-alpha.32 (2026-11-25)
|
|
6
|
+
|
|
7
|
+
The phone screen shell's More, Back's name giving way before the title, and design tokens v0.31.0.
|
|
8
|
+
|
|
9
|
+
- In the screen shell's bar Back's parent name gives way before the title, down to Back's icon, as the contract says; it kept its width while the title was cut. A name with no room for a readable piece (24px) is not drawn at all; it stays Back's accessible name.
|
|
10
|
+
- `ScreenShell` has More: `more` (the entries the section header shows under its own, in the tree's order) and `moreLabel`. More is an icon button in the bar, after the section's search and before the shell's own icons, opening the context menu with them; an action the server says cannot run now stays, with its sentence. With no entry shown there is no More, and while the section's search is open it gives way. The bar does not step out of view while the menu is open.
|
|
11
|
+
- The design-tokens copy is v0.31.0: the components contract 0.21.0, the phone screen shell's `with-more`.
|
|
12
|
+
|
|
5
13
|
## 0.1.0-alpha.31 (2026-11-24)
|
|
6
14
|
|
|
7
15
|
The splitter, quiet and menu buttons, one control radius, no empty menus, filter chips that wrap whole, hover only where hover exists on a touch screen, and design tokens v0.30.0.
|
package/design-tokens.lock.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repository": "coolms/design-tokens",
|
|
3
|
-
"tag": "v0.
|
|
4
|
-
"commit": "
|
|
3
|
+
"tag": "v0.31.0",
|
|
4
|
+
"commit": "c0b6b2345ed93e1d63f233f09df96e22002dd790",
|
|
5
5
|
"files": {
|
|
6
6
|
"dist/coolms-tokens.css": {
|
|
7
7
|
"to": "src/tokens/coolms-tokens.css",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"contract/components.json": {
|
|
11
11
|
"to": "contract/components.json",
|
|
12
|
-
"sha256": "
|
|
12
|
+
"sha256": "fe34761d5e16de3dd9c32cb5d15da5a2e04144c2da4a5df2893ccb6611b10b11"
|
|
13
13
|
},
|
|
14
14
|
"contract/server-states.json": {
|
|
15
15
|
"to": "contract/server-states.json",
|
|
@@ -37,6 +37,13 @@ export interface ScreenShellProps {
|
|
|
37
37
|
readonly closeLabel: string;
|
|
38
38
|
readonly onClose: () => void;
|
|
39
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* The section's secondary actions, the entries the section header shows under its More, in the tree's order; a
|
|
42
|
+
* refused one stays, with the server's reason. With none shown, no More; never on an item's own screen.
|
|
43
|
+
*/
|
|
44
|
+
readonly more?: readonly MenuItem[];
|
|
45
|
+
/** More's accessible name and tooltip, from the host's catalogue. */
|
|
46
|
+
readonly moreLabel?: string;
|
|
40
47
|
/** The shell's own icons, the same in every section: the bell, then the person's avatar. */
|
|
41
48
|
readonly globals?: ReactNode;
|
|
42
49
|
/** The place's filters, as chips under the bar, exactly one selected. */
|
|
@@ -63,9 +70,9 @@ export interface ScreenShellProps {
|
|
|
63
70
|
}
|
|
64
71
|
/**
|
|
65
72
|
* One screen of a section at phone width (contract component `screen-shell`: root, nested, with-filters,
|
|
66
|
-
* with-primary-action, with-primary-menu, pulling, refreshing, searching, bar-hidden). One bar: the section's navigation or Back
|
|
73
|
+
* with-primary-action, with-primary-menu, with-more, pulling, refreshing, searching, bar-hidden). One bar: the section's navigation or Back
|
|
67
74
|
* with the parent's name, the title, then search and the shell's own icons, or while searching, Close and the field; the filters under it; the content, which
|
|
68
75
|
* scrolls on its own and refreshes by a pull from its top; the primary action floating at the bottom right, its menu
|
|
69
76
|
* opening above it. What fills each slot is the host's, from the server's declared nodes.
|
|
70
77
|
*/
|
|
71
|
-
export declare function ScreenShell({ title, back, navigation, search, searching, globals, filters, primary: declared, onRefresh, pullText, barHidden, children }: ScreenShellProps): ReactNode;
|
|
78
|
+
export declare function ScreenShell({ title, back, navigation, search, searching, more, moreLabel, globals, filters, primary: declared, onRefresh, pullText, barHidden, children }: ScreenShellProps): ReactNode;
|