@coolms/ui-react 0.1.0-alpha.34 → 0.1.0-alpha.35
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 +10 -0
- package/dist/components/Column.d.ts +21 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +391 -384
- package/package.json +3 -2
- package/src/kit.css +12 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.35 (2026-11-27)
|
|
6
|
+
|
|
7
|
+
A column's head stays at the top while its list scrolls.
|
|
8
|
+
|
|
9
|
+
- `Column` is new: a head that stays at the top (a section header, a pane toolbar, a list's head) and a body that is the column's one scroll region, filling the rest of its height, as the components contract's grid asks. The host gets the scroll region itself: `scrollRef`, `onScroll` and `bodyProps`, for a list that reads more as the person nears its end. (#135)
|
|
10
|
+
- A pane of `SplitPanes` lays its content out as a column at every width, so a `Column` in it fills its height; content that is not a `Column` scrolls with the pane as before. (#135)
|
|
11
|
+
- In a screen shell (a phone) the shell's bar is the head that stays and its content the one scroll region, which pull to refresh reads, so a `Column` there grows with its list. (#135)
|
|
12
|
+
|
|
13
|
+
Not in the package: the kit's checks find a dash used as a separator in its words (`check:ui-text`, a list of grandfathered texts that may only shrink, empty today) (#136); the layout check measures a page only once its stylesheets are in, and finds a `Column` whose head moves when its list scrolls (#135).
|
|
14
|
+
|
|
5
15
|
## 0.1.0-alpha.34 (2026-11-27)
|
|
6
16
|
|
|
7
17
|
An avatar with no letter to show says "?", and its tint can come from a stable id.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode, Ref, UIEventHandler } from 'react';
|
|
2
|
+
export interface ColumnProps {
|
|
3
|
+
/** What stays at the column's top and never scrolls: its section header, a pane toolbar, a list's head. */
|
|
4
|
+
readonly head?: ReactNode;
|
|
5
|
+
/** The column's list or content, in its one scroll region. */
|
|
6
|
+
readonly children?: ReactNode;
|
|
7
|
+
readonly className?: string;
|
|
8
|
+
/** The scroll region itself, for a host that reads more as the person scrolls. */
|
|
9
|
+
readonly scrollRef?: Ref<HTMLDivElement>;
|
|
10
|
+
readonly onScroll?: UIEventHandler<HTMLDivElement>;
|
|
11
|
+
/** Further attributes of the scroll region (a `data-list` name, an accessible name). */
|
|
12
|
+
readonly bodyProps?: Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onScroll'> & {
|
|
13
|
+
readonly [data: `data-${string}`]: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A column of a fill layout (contract `split-panes`, grid: each pane has exactly one scroll region): a head that stays at
|
|
18
|
+
* the top, and under it a body that scrolls on its own and fills the rest of the column's height. In a pane of
|
|
19
|
+
* SplitPanes, in a screen shell or in any box of a definite height, the head and its primary action never scroll away.
|
|
20
|
+
*/
|
|
21
|
+
export declare function Column({ head, children, className, scrollRef, onScroll, bodyProps }: ColumnProps): ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { State, STATE_DELAY_MS, type StateKind, type StatePlacement, type StateP
|
|
|
6
6
|
export { FileViewer, type FileViewerAction, type FileViewerConflict, type FileViewerEditing, type FileViewerProps, type FileViewerSiblings, type FileViewerState } from './components/FileViewer.js';
|
|
7
7
|
export { FilePicker, FilePickerDenied, FilePickerRestart, type FilePickerBudget, type FilePickerChoice, type FilePickerEntry, type FilePickerLabels, type FilePickerPage, type FilePickerProps, type FilePickerSpace } from './components/FilePicker.js';
|
|
8
8
|
export { SectionHeader, type SectionHeaderProps, type SectionPrimary } from './components/SectionHeader.js';
|
|
9
|
+
export { Column, type ColumnProps } from './components/Column.js';
|
|
9
10
|
export { PageHeader, TabStrip, Avatar, initialsOf, tintOf, type PageHeaderProps, type Tab, type TabStripProps, type AvatarProps, type AvatarPresence, type AvatarConnection } from './components/Structure.js';
|
|
10
11
|
export { Icon, ICON_NAMES, BOOTSTRAP_ICONS, NamedIcon, iconForName, type IconName, type IconProps } from './components/Icon.js';
|
|
11
12
|
export { AppShell, Badge, SearchField, SplitPanes, fitPanes, MailRow, ChatBubble, Composer, MAIL_ROW_LABELS, type MailRowLabels, type AppShellProps, type RailItem, type BadgeProps, type SearchFieldProps, type SplitPanesProps, type PaneSize, type Pane, type MailRowProps, type ChatBubbleProps, type ComposerProps } from './components/Workspace.js';
|