@usableapp/cardds 0.7.177 → 0.7.178
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/css/layover.css +68 -0
- package/css/lists.css +12 -0
- package/css/palette.css +7 -0
- package/css/parts.css +11 -0
- package/css/tokens.css +5 -1
- package/dist/cardds.css +103 -1
- package/dist/cards/inkGrounds.js +1 -1
- package/dist/catalog.json +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/layover/Popup.d.ts +23 -0
- package/dist/layover/Popup.js +15 -0
- package/dist/lists/Row.d.ts +10 -4
- package/dist/lists/Row.js +7 -6
- package/dist/parts/Lead.d.ts +7 -1
- package/dist/parts/Lead.js +3 -2
- package/docs/reference.md +19 -0
- package/lib/catalog.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ export * from './media/MapPick.js';
|
|
|
107
107
|
export * from './media/Tile.js';
|
|
108
108
|
export * from './media/Mosaic.js';
|
|
109
109
|
export * from './layover/Banner.js';
|
|
110
|
+
export * from './layover/Popup.js';
|
|
110
111
|
export * from './layover/Callout.js';
|
|
111
112
|
export * from './layover/CountIn.js';
|
|
112
113
|
export * from './layover/Snackbar.js';
|
package/dist/index.js
CHANGED
|
@@ -109,6 +109,7 @@ export * from './media/MapPick.js';
|
|
|
109
109
|
export * from './media/Tile.js';
|
|
110
110
|
export * from './media/Mosaic.js';
|
|
111
111
|
export * from './layover/Banner.js';
|
|
112
|
+
export * from './layover/Popup.js';
|
|
112
113
|
export * from './layover/Callout.js';
|
|
113
114
|
export * from './layover/CountIn.js';
|
|
114
115
|
export * from './layover/Snackbar.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
|
+
export interface PopupProps extends Omit<ComponentProps<'div'>, 'popover' | 'title'> {
|
|
3
|
+
/** unique id: the popup's id the opening button targets with the platform's `popoverTarget={id}` */
|
|
4
|
+
id: string;
|
|
5
|
+
/** the head's title: what the list is (Notifications) */
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
/** the head's second line under the title (the span of time it covers, a count) */
|
|
8
|
+
meta?: ReactNode;
|
|
9
|
+
/** the ONE `Btn` at the head's right (read all). Give a small one (`size="sm"`); the head holds no second control */
|
|
10
|
+
action?: ReactNode;
|
|
11
|
+
/** the opening button sits at the screen's right: the popup's right edge is the button's and it grows leftwards (default: it starts at the button's left edge and grows rightwards). Never wider than the room it has, less a margin */
|
|
12
|
+
end?: boolean;
|
|
13
|
+
/** what the popup lists: `Rows joined`, flush to its left and right edges. They scroll under the head */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Popup — a panel hung under the button that opens it: a head (a `title`, a `meta` line, one `action` Btn at the right) and a list of `Rows joined` flush to
|
|
18
|
+
* its edges. A NATIVE popover like a `Menu popover`: any button with `popoverTarget={its id}` opens it, a tap outside or Esc closes it, and it knows nothing of
|
|
19
|
+
* the button. It is never wider than the screen less a margin on each side (`--popup-w` caps it); too tall for the room under the button, the list scrolls
|
|
20
|
+
* inside it and the head stays at the top. Where the browser cannot anchor it to the button (iOS before 26) it hangs under the top bar instead.
|
|
21
|
+
* For a list read and then left (notifications), not a value to pick (that is a `Menu`) and not a page or a sheet of its own.
|
|
22
|
+
*/
|
|
23
|
+
export declare function Popup({ id, title, meta, action, end, className, children, ...rest }: PopupProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from 'react';
|
|
3
|
+
import { cx } from '../cx.js';
|
|
4
|
+
import { Words } from '../parts/Words.js';
|
|
5
|
+
/**
|
|
6
|
+
* Popup — a panel hung under the button that opens it: a head (a `title`, a `meta` line, one `action` Btn at the right) and a list of `Rows joined` flush to
|
|
7
|
+
* its edges. A NATIVE popover like a `Menu popover`: any button with `popoverTarget={its id}` opens it, a tap outside or Esc closes it, and it knows nothing of
|
|
8
|
+
* the button. It is never wider than the screen less a margin on each side (`--popup-w` caps it); too tall for the room under the button, the list scrolls
|
|
9
|
+
* inside it and the head stays at the top. Where the browser cannot anchor it to the button (iOS before 26) it hangs under the top bar instead.
|
|
10
|
+
* For a list read and then left (notifications), not a value to pick (that is a `Menu`) and not a page or a sheet of its own.
|
|
11
|
+
*/
|
|
12
|
+
export function Popup({ id, title, meta, action, end, className, children, ...rest }) {
|
|
13
|
+
const head = useId();
|
|
14
|
+
return (_jsxs("div", { id: id, popover: "auto", role: "group", "aria-labelledby": head, className: cx('popup', end && 'popup--end', className), ...rest, children: [_jsxs("div", { className: "popup__head", children: [_jsx(Words, { id: head, title: title, meta: meta }), action] }), children] }));
|
|
15
|
+
}
|
package/dist/lists/Row.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ export interface RowProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
|
4
4
|
lg?: boolean;
|
|
5
5
|
/** a finished checklist item: muted words, a filled tick at the end, no longer a tap target (aria-disabled) — give it no control at the end */
|
|
6
6
|
done?: boolean;
|
|
7
|
+
/** not yet seen (a notification never tapped): the whole row takes a very light grey fill (`--row-unread-bg`, default the token `--unread-bg`), so it reads apart from the ground it stands on; a screen reader hears "unread" (`unreadLabel` says it another way). Drop it once the member has read it */
|
|
8
|
+
unread?: boolean;
|
|
9
|
+
/** the words a screen reader hears for an `unread` row; default cardds's own, in the page's language */
|
|
10
|
+
unreadLabel?: string;
|
|
7
11
|
/** div (default), a link, a label wrapping a Check/Toggle, li */
|
|
8
12
|
as?: 'div' | 'a' | 'label' | 'li';
|
|
9
13
|
/** with `as="label"`: the `id` of the control the row presses (its `Check`). Needed when a button stands BEFORE the check (a picked row's own move, "open the map"): a label presses the first control inside it, so without this a touch on the row's words would press that button */
|
|
@@ -28,17 +32,19 @@ export interface RowProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
|
28
32
|
* The lead is a `Lead` box, or a bare Avatar / AvatarStack; the words are a `Words`; the end is an `End` (a value and its caption)
|
|
29
33
|
* or a bare control (two side by side).
|
|
30
34
|
* Several go in Rows (hairlines between). A row that IS a card is `Card row`.
|
|
31
|
-
* `done` is the checklist's finished line: ticked, muted, not tappable any more.
|
|
35
|
+
* `done` is the checklist's finished line: ticked, muted, not tappable any more. `unread` is its opposite for a notification: a very light grey fill over the whole row (it is never tapped yet).
|
|
32
36
|
* `more` makes it expand: the row is the summary of a `<details class="row-expand">`, `more` comes out under it; `open` + `onOpenChange`, or `defaultOpen`.
|
|
33
37
|
* A chevron at the end turns when it is open — the app fetches whatever `more` lists; the row only shows it.
|
|
34
38
|
*/
|
|
35
|
-
export declare function Row({ lg, done, as, href, more, open, defaultOpen, onOpenChange, className, children, ...rest }: RowProps): import("react").JSX.Element;
|
|
39
|
+
export declare function Row({ lg, done, unread, unreadLabel, as, href, more, open, defaultOpen, onOpenChange, className, children, ...rest }: RowProps): import("react").JSX.Element;
|
|
36
40
|
export interface RowsProps extends ComponentProps<'div'> {
|
|
37
41
|
/** the group's name, above its rows (Today · Tomorrow · Later): a long list is GROUPED, not spaced out — several Rows one after another.
|
|
38
42
|
* Words = the small label; an ELEMENT (`<Text level="title" as="h3">`) is used as the heading itself — the group is labelled by it. */
|
|
39
43
|
heading?: ReactNode;
|
|
44
|
+
/** the rows JOIN: no gap between them, each row a band edge to edge of the list with its own padding and a line under it (the last too), so a row with a fill (`Row unread`) reads as a band touching the next. For a list that fills its holder's width (a `Popup`), not one inside a card's padding */
|
|
45
|
+
joined?: boolean;
|
|
40
46
|
}
|
|
41
|
-
/** Rows — a list of Rows separated by hairlines; `heading` names the group (a `role="group"` labelled by it).
|
|
47
|
+
/** Rows — a list of Rows separated by hairlines (`joined`: bands that touch, a border under each); `heading` names the group (a `role="group"` labelled by it).
|
|
42
48
|
* REORDERED (the app renders the same keyed rows in another order): each row SLIDES to its new place — the one going up passes
|
|
43
49
|
* over the others — instead of jumping (Lh 2026-10-01). The order is the app's; the move is the list's. */
|
|
44
|
-
export declare function Rows({ heading, className, children, ref, ...rest }: RowsProps): import("react").JSX.Element;
|
|
50
|
+
export declare function Rows({ heading, joined, className, children, ref, ...rest }: RowsProps): import("react").JSX.Element;
|
package/dist/lists/Row.js
CHANGED
|
@@ -5,28 +5,29 @@ import { Icon } from '../type/Icon.js';
|
|
|
5
5
|
import { glide, reducedMotion, setRefs, stopMoves, useDisclosure } from '../state.js';
|
|
6
6
|
import { RowEndRoomCtx, withEndRoom } from '../parts/endRoom.js';
|
|
7
7
|
import { Words } from '../parts/Words.js';
|
|
8
|
+
import { word } from '../words.js';
|
|
8
9
|
/**
|
|
9
10
|
* Row — a frameless row inside a card: lead · words · end, its children in that order. 48px+ tall, a tap target.
|
|
10
11
|
* The lead is a `Lead` box, or a bare Avatar / AvatarStack; the words are a `Words`; the end is an `End` (a value and its caption)
|
|
11
12
|
* or a bare control (two side by side).
|
|
12
13
|
* Several go in Rows (hairlines between). A row that IS a card is `Card row`.
|
|
13
|
-
* `done` is the checklist's finished line: ticked, muted, not tappable any more.
|
|
14
|
+
* `done` is the checklist's finished line: ticked, muted, not tappable any more. `unread` is its opposite for a notification: a very light grey fill over the whole row (it is never tapped yet).
|
|
14
15
|
* `more` makes it expand: the row is the summary of a `<details class="row-expand">`, `more` comes out under it; `open` + `onOpenChange`, or `defaultOpen`.
|
|
15
16
|
* A chevron at the end turns when it is open — the app fetches whatever `more` lists; the row only shows it.
|
|
16
17
|
*/
|
|
17
|
-
export function Row({ lg, done, as, href, more, open, defaultOpen, onOpenChange, className, children, ...rest }) {
|
|
18
|
+
export function Row({ lg, done, unread, unreadLabel, as, href, more, open, defaultOpen, onOpenChange, className, children, ...rest }) {
|
|
18
19
|
const disclosure = useDisclosure(open, defaultOpen, onOpenChange);
|
|
19
20
|
const kids = (useContext(RowEndRoomCtx) && withEndRoom(children, Words)) || children; // in a LinkBlock: the title's later lines run under the ends
|
|
20
21
|
const el = more !== undefined ? 'summary' : as ?? (href ? 'a' : 'div');
|
|
21
|
-
const row = createElement(el, { href, className: cx('row', lg && 'row--lg', done && 'row--done', className), 'aria-disabled': done || undefined, ...(more === undefined ? rest : {}) }, kids, done && _jsx("span", { className: "row__done", children: _jsx(Icon, { name: "check", size: "sm" }) }));
|
|
22
|
+
const row = createElement(el, { href, className: cx('row', lg && 'row--lg', done && 'row--done', unread && 'row--unread', className), 'aria-disabled': done || undefined, ...(more === undefined ? rest : {}) }, unread && _jsx("span", { className: "t-sr", children: unreadLabel ?? word('unread') }), kids, done && _jsx("span", { className: "row__done", children: _jsx(Icon, { name: "check", size: "sm" }) }));
|
|
22
23
|
if (more === undefined)
|
|
23
24
|
return row;
|
|
24
25
|
return (_jsxs("details", { className: "row-expand", ...rest, ...disclosure, children: [row, _jsx("div", { className: "row-expand__more", children: more })] }));
|
|
25
26
|
}
|
|
26
|
-
/** Rows — a list of Rows separated by hairlines; `heading` names the group (a `role="group"` labelled by it).
|
|
27
|
+
/** Rows — a list of Rows separated by hairlines (`joined`: bands that touch, a border under each); `heading` names the group (a `role="group"` labelled by it).
|
|
27
28
|
* REORDERED (the app renders the same keyed rows in another order): each row SLIDES to its new place — the one going up passes
|
|
28
29
|
* over the others — instead of jumping (Lh 2026-10-01). The order is the app's; the move is the list's. */
|
|
29
|
-
export function Rows({ heading, className, children, ref, ...rest }) {
|
|
30
|
+
export function Rows({ heading, joined, className, children, ref, ...rest }) {
|
|
30
31
|
const id = useId();
|
|
31
32
|
const named = heading != null;
|
|
32
33
|
const own = useRef(null);
|
|
@@ -59,5 +60,5 @@ export function Rows({ heading, className, children, ref, ...rest }) {
|
|
|
59
60
|
was.current = at;
|
|
60
61
|
order.current = rows;
|
|
61
62
|
});
|
|
62
|
-
return (_jsxs("div", { ref: setRefs(own, ref), className: cx('rows', className), role: named ? 'group' : undefined, "aria-labelledby": named ? id : undefined, ...rest, children: [named && (isValidElement(heading) ? cloneElement(heading, { id }) : _jsx("span", { className: "rows__head", id: id, children: heading })), children] }));
|
|
63
|
+
return (_jsxs("div", { ref: setRefs(own, ref), className: cx('rows', joined && 'rows--joined', className), role: named ? 'group' : undefined, "aria-labelledby": named ? id : undefined, ...rest, children: [named && (isValidElement(heading) ? cloneElement(heading, { id }) : _jsx("span", { className: "rows__head", id: id, children: heading })), children] }));
|
|
63
64
|
}
|
package/dist/parts/Lead.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
2
|
import { type IconName } from '../type/Icon.js';
|
|
3
|
+
/** the fills a `Lead` takes — cardds's set of six colours, each one that holds the ondark ink (the white icon) at 4.5:1 in every palette cardds ships.
|
|
4
|
+
* The names are the colours', never a meaning: the app decides which kind of thing wears which. In the wireframe they are six greys */
|
|
5
|
+
export type LeadTone = 'blue' | 'green' | 'amber' | 'red' | 'pink' | 'violet';
|
|
3
6
|
export interface LeadProps extends ComponentProps<'span'> {
|
|
4
7
|
/** an icon drawn in the box; without it, the box holds its children (a number, an initial) */
|
|
5
8
|
icon?: IconName;
|
|
9
|
+
/** a FILL: the box takes one colour of cardds's set with no outline, and its icon (or words) turn to the ondark ink, white on the colour. Tells kinds apart (a bank's, a point's, a reminder's lead). A person's lead is never toned: it is a stamp or an avatar */
|
|
10
|
+
tone?: LeadTone;
|
|
6
11
|
}
|
|
7
12
|
/** Lead — the thing at the start of a line: the outlined box holding an `icon` or its children. In a `Row` it is the 48 box of a menu row;
|
|
8
13
|
* in a `Card row` (and a FeedCard's head) the 44 box in the card's own ink, a number or an initial in label type (`.card--row > .lead`, css/parts.css).
|
|
14
|
+
* With a `tone` the box is filled with one colour of cardds's six (`--tone-blue` … `--tone-violet`) and its icon is the ondark ink on it.
|
|
9
15
|
* A person's or a group's lead takes no box: an Avatar or an AvatarStack goes straight in the line as its first child. */
|
|
10
|
-
export declare function Lead({ icon, className, children, ...rest }: LeadProps): import("react").JSX.Element;
|
|
16
|
+
export declare function Lead({ icon, tone, className, children, ...rest }: LeadProps): import("react").JSX.Element;
|
package/dist/parts/Lead.js
CHANGED
|
@@ -3,7 +3,8 @@ import { cx } from '../cx.js';
|
|
|
3
3
|
import { Icon } from '../type/Icon.js';
|
|
4
4
|
/** Lead — the thing at the start of a line: the outlined box holding an `icon` or its children. In a `Row` it is the 48 box of a menu row;
|
|
5
5
|
* in a `Card row` (and a FeedCard's head) the 44 box in the card's own ink, a number or an initial in label type (`.card--row > .lead`, css/parts.css).
|
|
6
|
+
* With a `tone` the box is filled with one colour of cardds's six (`--tone-blue` … `--tone-violet`) and its icon is the ondark ink on it.
|
|
6
7
|
* A person's or a group's lead takes no box: an Avatar or an AvatarStack goes straight in the line as its first child. */
|
|
7
|
-
export function Lead({ icon, className, children, ...rest }) {
|
|
8
|
-
return _jsx("span", { className: cx('lead', className), ...rest, children: icon ? _jsx(Icon, { name: icon }) : children });
|
|
8
|
+
export function Lead({ icon, tone, className, children, ...rest }) {
|
|
9
|
+
return _jsx("span", { className: cx('lead', tone && 'lead--tone', tone && `lead--${tone}`, className), ...rest, children: icon ? _jsx(Icon, { name: icon }) : children });
|
|
9
10
|
}
|
package/docs/reference.md
CHANGED
|
@@ -267,6 +267,25 @@ later and stands clear of it. `Card` forwards `ref` to its root for anything els
|
|
|
267
267
|
(cardds#218) `NoteRows` holds two or more `NoteRow`s as ONE group — the lines stand `--note-rows-gap` apart (default `--sp-1`), not the card's gap (which parts one thing from the next); a single `NoteRow` is unchanged. `Was` is the value that was replaced (the old place, the old day, the helper who withdrew): struck through, in the muted ink of its ground (knob `--was-ink`), after the new value — `<NoteRow icon="map-pin">Coffee shop <Was>Village hall</Was></NoteRow>`; it stands in a `NoteRow`, a `Text` or a `Words` meta, and a screen reader hears "was" (the page's language, `word('was')`) before the old value. Stories `NoteRow · Group`, `NoteRow · WasInWords`.
|
|
268
268
|
In a `NoteRow` the words are one flowing line, so the old value follows the new one in the same sentence; in a `Row`'s `Words` meta (a flex line) it stands a small gap beside it. `--note-rows-gap` is the gap BETWEEN lines (`--note-row-gap` is the icon's, inside one line).
|
|
269
269
|
|
|
270
|
+
### A popup under a button, unread rows, joined rows, a lead with a colour
|
|
271
|
+
|
|
272
|
+
(cardds#219) A list read and then left — the notifications under a bell — is four pieces, each opt-in; a screen written before them is unchanged.
|
|
273
|
+
|
|
274
|
+
- **`Popup`** is a panel hung under the button that opens it: a head (`title`, a second line `meta`, ONE `Btn` as `action` at the right) and the list as its children. It is a native popover like `Menu popover`: any button with `popoverTarget={id}` opens it (the popup knows no button), a tap outside or Esc closes it. It is never wider than the screen less `--popup-margin` (default `--sp-3`) each side, and at most `--popup-w` (default 384) wide; too tall for the room under the button (at most `--popup-max-h`, default 576), the list scrolls inside it and the head stays at the top, opaque, so a row's fill passes under it. A button at the screen's right: with `end` the popup's right edge is the button's and it grows leftwards (the bar's own inset is its right margin; `--popup-margin` keeps the left one); without `end` it starts at the button's left edge and grows rightwards. Where the browser cannot anchor to the button (iOS before 26) it hangs under the top bar. The paper is the card-1 ground (`--popup-bg`, `--popup-border`, `--popup-radius`, `--popup-shadow`); head knobs `--popup-pad-x`, `--popup-pad-y`, `--popup-head-gap`. The unread count on the button is the app's: `<Btn shape="round" icon="bell" label="Notifications" count={n} popoverTarget="inbox" />`. Story `Popup · UnderABell`.
|
|
275
|
+
- **`Rows joined`**: the rows touch (no `--rows-gap`), each is a band edge to edge of the list with its own padding (`--rows-joined-pad-x` 16, `--rows-joined-pad-y` 12) and a border under it, the last too (`--rows-joined-border`, default the hairline), so a row with a fill reads as a band joined to the next. The between-rows hairline is not drawn. For a holder with no padding of its own (a `Popup`); in a `Card` the rows would stand inside its padding. `Rows` without `joined` is unchanged.
|
|
276
|
+
- **`Row unread`**: a row never opened has a very light grey fill over the whole row, the token `--unread-bg` (4% of the row's ink over whatever ground it stands on, so it is a light grey on paper and a light lift on a dark ground; knob `--row-unread-bg`). A screen reader hears "unread" (`unreadLabel` for another word). Drop `unread` once it is read; the fill is only the state, the app owns it.
|
|
277
|
+
- **`Lead tone`**: the box takes a FILL, one of six colours — `blue`, `green`, `amber`, `red`, `pink`, `violet` (`--tone-blue` … `--tone-violet`) — with no outline, and its icon is the ondark ink on it (white). It tells kinds of thing apart (the bank, a reminder, points); the names are colours, never a meaning: the app picks which kind wears which, and a person's lead is still a stamp or an avatar. Each colour holds the icon at 4.5:1 or more in every palette cardds ships ([Ink follows its ground](#ink-follows-its-ground)): the lowest is blue on clay, 4.74; green 5.84, amber 5.16, red 4.98, pink 5.23, violet 6.56 on clay, the dimmest ink. Colour is in `palette.css` and every coloured mode has them (a project's own `data-palette` too); the wireframe keeps six greys. A project whose ondark ink is dimmer retunes the tone `inkGrounds()` names (`--tone-<name>`), in its theme. Knobs `--lead-bg`, `--lead-ink`. Story `Lead · Tones`.
|
|
278
|
+
|
|
279
|
+
```tsx
|
|
280
|
+
<Btn shape="round" icon="bell" label="Notifications" count={2} popoverTarget="inbox" />
|
|
281
|
+
<Popup id="inbox" end title="Notifications" meta="Last 7 days" action={<Btn size="sm" onClick={readAll}>Read all</Btn>}>
|
|
282
|
+
<Rows joined>
|
|
283
|
+
<Row unread href="#a"><AvatarStack><Stamp bare … /></AvatarStack><Words title="Sri sent a message" meta="5 min" /></Row>
|
|
284
|
+
<Row href="#b"><Lead icon="wallet" tone="blue" /><Words title="Paid out 30 hours" meta="Yesterday" /></Row>
|
|
285
|
+
</Rows>
|
|
286
|
+
</Popup>
|
|
287
|
+
```
|
|
288
|
+
|
|
270
289
|
## Sheet stack markup
|
|
271
290
|
|
|
272
291
|
The sheet stack (`.sheet-stack`, `stack.css` — the menu, see *Anatomy*) is the
|
package/lib/catalog.mjs
CHANGED
|
@@ -201,7 +201,7 @@ export function find(cat, query, axes = {}) {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
// the parts that put themselves where they belong by JS at runtime — over the content, open, at the edge: the static html shows them in the wrong place
|
|
204
|
-
const PLACED_BY_JS = ['Sheet', 'SheetStack', 'SheetSteps', 'SheetStage', 'Step', 'Modal', 'Menu', 'Dropdown', 'Snackbar', 'FloatBar'];
|
|
204
|
+
const PLACED_BY_JS = ['Sheet', 'SheetStack', 'SheetSteps', 'SheetStage', 'Step', 'Modal', 'Menu', 'Dropdown', 'Popup', 'Snackbar', 'FloatBar'];
|
|
205
205
|
|
|
206
206
|
/** a story names cardds's own controls by hand where the gallery's page is not in the story's language (`backLabel="กลับ"` on an
|
|
207
207
|
* lang="en" page). In an app that is noise — and a session copies what it is handed (two prototypes did, 2026-10-08): the starting file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usableapp/cardds",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.178",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "card-first mobile design system, React-first: the components in src/ are thin wrappers over the CSS contract (css/*.css stays the only truth); gallery/ shows every story live (npm run dev).",
|