@newtone-dev/ui-react-web 0.6.0 → 0.7.0

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.
@@ -66,6 +66,11 @@
66
66
  border-radius: var(--newtone-card-box-radius);
67
67
  }
68
68
 
69
+ /* No ring, 2026-09-25: `outlined={false}`, for a card whose ground tells it apart. card-box.md. */
70
+ .newtone-card-box[data-outlined='false'] {
71
+ border: none;
72
+ }
73
+
69
74
  /* The inner box fills the outer one, so a card stretched taller by a neighbour in the same row
70
75
  * distributes over its whole height rather than sitting in the top of an empty ring. `Wrapper` sets
71
76
  * no height, so this cannot be out-specified by the inline style it writes -- which is the hazard
@@ -23,6 +23,9 @@ import type { HTMLAttributes, ReactNode } from 'react';
23
23
  *
24
24
  * outlined true, twice -> not a prop. A box that is sometimes not outlined is a
25
25
  * different box, and this one is what a card is made of
26
+ * -> A PROP as of 2026-09-25, defaulting to true: a raised card on
27
+ * a deck slide, whose ground tells it apart, is the same box
28
+ * without its ring. card-box.md
26
29
  * padding="xs" 8px, twice -> not a prop. The card ladder's frame term, and nothing here
27
30
  * has ever wanted a second value
28
31
  * -> A PROP as of 2026-09-06, and the sentence above is what fired
@@ -106,9 +109,15 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
106
109
  * is what every card written before 2026-09-18 does. See the docblock for what asked.
107
110
  */
108
111
  elevation?: Elevation;
112
+ /**
113
+ * Whether the card draws its ring. Defaults to `true`. `false` is for a card whose ground already
114
+ * tells it apart -- a raised one -- and arrived 2026-09-25; see card-box.md. It says whether there
115
+ * is a ring, never what colour: that is `--newtone-card-box-ring`, and issue 201's prop.
116
+ */
117
+ outlined?: boolean;
109
118
  /** The card's own class. It lands on the outer element, where a slot minimum belongs. */
110
119
  className?: string;
111
120
  children?: ReactNode;
112
121
  }
113
- export declare function CardBox({ direction, padding, gap, align, elevation, className, children, ...rest }: CardBoxProps): import("react").JSX.Element;
122
+ export declare function CardBox({ direction, padding, gap, align, elevation, outlined, className, children, ...rest }: CardBoxProps): import("react").JSX.Element;
114
123
  //# sourceMappingURL=card-box.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-box.d.ts","sourceRoot":"","sources":["../../src/card-box/card-box.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAW,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACvG,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC7D,yCAAyC;IACzC,SAAS,CAAC,EAAE,gBAAgB,CAAA;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,oEAAoE;IACpE,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,8DAA8D;IAC9D,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,OAAO,CAAC,EACpB,SAAS,EACT,OAAW,EACX,GAAG,EACH,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,YAAY,+BAqBd"}
1
+ {"version":3,"file":"card-box.d.ts","sourceRoot":"","sources":["../../src/card-box/card-box.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAEH,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACxB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC7D,yCAAyC;IACzC,SAAS,CAAC,EAAE,gBAAgB,CAAA;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,oEAAoE;IACpE,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,8DAA8D;IAC9D,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,OAAO,CAAC,EACpB,SAAS,EACT,OAAW,EACX,GAAG,EACH,KAAK,EACL,SAAS,EACT,QAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,YAAY,+BAsBd"}
@@ -2,8 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // The subpaths, not the barrel. `@newtone-dev/ui-react-web` re-exports Navbar, Navbar calls hooks, and
3
3
  // this is a server component -- see the repo blueprint, section 4.3.
4
4
  import { Surface } from '../surface/index.js';
5
- import { Wrapper } from '../wrapper/index.js';
6
- export function CardBox({ direction, padding = 2, gap, align, elevation, className, children, ...rest }) {
7
- return (_jsx(Surface, { elevation: elevation, className: ['newtone-card-box', className].filter(Boolean).join(' '), ...rest, children: _jsx(Wrapper, { direction: direction, gap: gap, align: align, padding: padding, className: "newtone-card-box-body", children: children }) }));
5
+ import { Wrapper, } from '../wrapper/index.js';
6
+ export function CardBox({ direction, padding = 2, gap, align, elevation, outlined = true, className, children, ...rest }) {
7
+ return (_jsx(Surface, { elevation: elevation, className: ['newtone-card-box', className].filter(Boolean).join(' '), "data-outlined": outlined ? undefined : 'false', ...rest, children: _jsx(Wrapper, { direction: direction, gap: gap, align: align, padding: padding, className: "newtone-card-box-body", children: children }) }));
8
8
  }
9
9
  //# sourceMappingURL=card-box.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-box.js","sourceRoot":"","sources":["../../src/card-box/card-box.tsx"],"names":[],"mappings":";AAAA,uGAAuG;AACvG,qEAAqE;AACrE,OAAO,EAAE,OAAO,EAAkB,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,OAAO,EAA4D,MAAM,qBAAqB,CAAA;AAiHvG,MAAM,UAAU,OAAO,CAAC,EACpB,SAAS,EACT,OAAO,GAAG,CAAC,EACX,GAAG,EACH,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACI;IACX,OAAO,CACH,KAAC,OAAO,IACJ,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAChE,IAAI,YAKR,KAAC,OAAO,IACJ,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,uBAAuB,YAEhC,QAAQ,GACH,GACJ,CACb,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"card-box.js","sourceRoot":"","sources":["../../src/card-box/card-box.tsx"],"names":[],"mappings":";AAAA,uGAAuG;AACvG,qEAAqE;AACrE,OAAO,EAAE,OAAO,EAAkB,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EACH,OAAO,GAIV,MAAM,qBAAqB,CAAA;AA0H5B,MAAM,UAAU,OAAO,CAAC,EACpB,SAAS,EACT,OAAO,GAAG,CAAC,EACX,GAAG,EACH,KAAK,EACL,SAAS,EACT,QAAQ,GAAG,IAAI,EACf,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACI;IACX,OAAO,CACH,KAAC,OAAO,IACJ,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,mBACrD,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,KACzC,IAAI,YAKR,KAAC,OAAO,IACJ,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,uBAAuB,YAEhC,QAAQ,GACH,GACJ,CACb,CAAA;AACL,CAAC"}
@@ -95,3 +95,23 @@
95
95
  );
96
96
  gap: var(--newtone-card-grid-gap);
97
97
  }
98
+
99
+ /* A COUNT AND A FILL, 2026-09-25. `columns={n}` is n equal tracks above 40rem and one at or below;
100
+ * `--_card-grid-count` is written by the component and by nobody else. `fill` shares the height
101
+ * out between the rows, above 40rem, like BarList's and ColumnChart's. card-grid.md. */
102
+ @media (min-width: 40.001rem) {
103
+ .newtone-card-grid--columns[data-count] {
104
+ grid-template-columns: repeat(var(--_card-grid-count), minmax(0, 1fr));
105
+ }
106
+
107
+ .newtone-card-grid--columns[data-fill] {
108
+ height: 100%;
109
+ grid-auto-rows: minmax(0, 1fr);
110
+ }
111
+ }
112
+
113
+ @media (max-width: 40rem) {
114
+ .newtone-card-grid--columns[data-count] {
115
+ grid-template-columns: minmax(0, 1fr);
116
+ }
117
+ }
@@ -56,8 +56,13 @@ export interface CardGridProps extends HTMLAttributes<HTMLElement> {
56
56
  * Equal tracks, as many as fit, at a floor -- rather than cards that each keep their own floor
57
57
  * and share out what is left. Defaults off, which is what two of the three call sites want.
58
58
  */
59
- columns?: boolean;
59
+ columns?: boolean | number;
60
+ /**
61
+ * The column mode's rows share the container's height, above 40rem. The same word and breakpoint
62
+ * as `BarList` and `ColumnChart`; it sets `data-fill`, which a filling container grows.
63
+ */
64
+ fill?: boolean;
60
65
  children?: ReactNode;
61
66
  }
62
- export declare function CardGrid({ columns, children, className, ...rest }: CardGridProps): import("react").JSX.Element;
67
+ export declare function CardGrid({ columns, fill, children, className, style, ...rest }: CardGridProps): import("react").JSX.Element;
63
68
  //# sourceMappingURL=card-grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-grid.d.ts","sourceRoot":"","sources":["../../src/card-grid/card-grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC9D;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,+BAmChF"}
1
+ {"version":3,"file":"card-grid.d.ts","sourceRoot":"","sources":["../../src/card-grid/card-grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC9D;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAI1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,QAAQ,CAAC,EACrB,OAAO,EACP,IAAY,EACZ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACV,EAAE,aAAa,+BA0Cf"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Wrapper } from '../wrapper/index.js';
3
- export function CardGrid({ columns, children, className, ...rest }) {
3
+ export function CardGrid({ columns, fill = false, children, className, style, ...rest }) {
4
4
  // The tracks are a rule in card-grid.css, not props: invariant per row kind, which is
5
5
  // card-box.tsx's argument unchanged.
6
6
  //
@@ -11,7 +11,9 @@ export function CardGrid({ columns, children, className, ...rest }) {
11
11
  // custom property does not have to reach this element to be read by it. card-grid.css carries
12
12
  // the three values that produced that answer and the two candidates it beat.
13
13
  if (columns) {
14
- return (_jsx("div", { className: ['newtone-card-grid--columns', className].filter(Boolean).join(' '), ...rest, children: children }));
14
+ return (_jsx("div", { className: ['newtone-card-grid--columns', className].filter(Boolean).join(' '), "data-count": typeof columns === 'number' ? '' : undefined, "data-fill": fill ? '' : undefined, style: typeof columns === 'number'
15
+ ? { '--_card-grid-count': columns, ...style }
16
+ : style, ...rest, children: children }));
15
17
  }
16
18
  // gap={4} is 16px, the original's own gutter between cards at every width. It writes a narrower
17
19
  // horizontal one on a phone, on the argument that a gap there is width taken from the cards on
@@ -22,6 +24,6 @@ export function CardGrid({ columns, children, className, ...rest }) {
22
24
  // because a prop cannot be read by a stylesheet and a rule cannot be read by a call site. The
23
25
  // two sit a few lines apart, which makes it readable rather than safe. Trigger for making it
24
26
  // one: a third writer of the card gutter, or the gutter changing.
25
- return (_jsx(Wrapper, { direction: "row", wrap: true, gap: 4, className: className, ...rest, children: children }));
27
+ return (_jsx(Wrapper, { direction: "row", wrap: true, gap: 4, className: className, style: style, ...rest, children: children }));
26
28
  }
27
29
  //# sourceMappingURL=card-grid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-grid.js","sourceRoot":"","sources":["../../src/card-grid/card-grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAgE7C,MAAM,UAAU,QAAQ,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAiB;IAC7E,sFAAsF;IACtF,qCAAqC;IACrC,EAAE;IACF,6FAA6F;IAC7F,wGAAwG;IACxG,2FAA2F;IAC3F,6FAA6F;IAC7F,8FAA8F;IAC9F,6EAA6E;IAC7E,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,CACH,cACI,SAAS,EAAE,CAAC,4BAA4B,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAC1E,IAAI,YAEP,QAAQ,GACP,CACT,CAAA;IACL,CAAC;IAED,gGAAgG;IAChG,+FAA+F;IAC/F,4FAA4F;IAC5F,8FAA8F;IAC9F,EAAE;IACF,6FAA6F;IAC7F,8FAA8F;IAC9F,6FAA6F;IAC7F,kEAAkE;IAClE,OAAO,CACH,KAAC,OAAO,IAAC,SAAS,EAAC,KAAK,EAAC,IAAI,QAAC,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,KAAM,IAAI,YAC/D,QAAQ,GACH,CACb,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"card-grid.js","sourceRoot":"","sources":["../../src/card-grid/card-grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAwE7C,MAAM,UAAU,QAAQ,CAAC,EACrB,OAAO,EACP,IAAI,GAAG,KAAK,EACZ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACK;IACZ,sFAAsF;IACtF,qCAAqC;IACrC,EAAE;IACF,6FAA6F;IAC7F,wGAAwG;IACxG,2FAA2F;IAC3F,6FAA6F;IAC7F,8FAA8F;IAC9F,6EAA6E;IAC7E,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,CACH,cACI,SAAS,EAAE,CAAC,4BAA4B,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,gBAClE,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,eAC7C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAChC,KAAK,EACD,OAAO,OAAO,KAAK,QAAQ;gBACvB,CAAC,CAAE,EAAE,oBAAoB,EAAE,OAAO,EAAE,GAAG,KAAK,EAAoB;gBAChE,CAAC,CAAC,KAAK,KAEX,IAAI,YAEP,QAAQ,GACP,CACT,CAAA;IACL,CAAC;IAED,gGAAgG;IAChG,+FAA+F;IAC/F,4FAA4F;IAC5F,8FAA8F;IAC9F,EAAE;IACF,6FAA6F;IAC7F,8FAA8F;IAC9F,6FAA6F;IAC7F,kEAAkE;IAClE,OAAO,CACH,KAAC,OAAO,IAAC,SAAS,EAAC,KAAK,EAAC,IAAI,QAAC,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,KAAM,IAAI,YAC7E,QAAQ,GACH,CACb,CAAA;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newtone-dev/ui-react-web",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",