@newtone-dev/ui-react-web 0.23.0 → 0.24.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.
@@ -95,6 +95,70 @@ a.newtone-card-box:focus-visible {
95
95
  outline-offset: 2px;
96
96
  }
97
97
 
98
+ /* A CARD WHOSE WHOLE GROUND IS ONE PALETTE, 2026-10-02: `signage`. Joshua, of Andrea's talk page:
99
+ * *"3 cards, in the extended palette colors"*, the whole card and not a tile on it. The ground and the
100
+ * ink are the signage slice's pair, the same one FramedIcon reads, so the studio tunes both from one
101
+ * row each. The ink is set on the box and the children inherit it, since `Text` declares no colour.
102
+ * One rule per palette, for framed-icon.css's reason: a palette name cannot be spliced into a
103
+ * property name in CSS. No hover rule, because the slice has no state leaves; a card that is a link
104
+ * and asks for `signage` is the trigger. card-box.md, *`signage`*. */
105
+ .newtone-card-box[data-newtone-signage='neutral'] {
106
+ background: var(--newtone-signage-neutral-fill);
107
+ color: var(--newtone-signage-neutral-text);
108
+ }
109
+ .newtone-card-box[data-newtone-signage='accent'] {
110
+ background: var(--newtone-signage-accent-fill);
111
+ color: var(--newtone-signage-accent-text);
112
+ }
113
+ .newtone-card-box[data-newtone-signage='support'] {
114
+ background: var(--newtone-signage-support-fill);
115
+ color: var(--newtone-signage-support-text);
116
+ }
117
+ .newtone-card-box[data-newtone-signage='success'] {
118
+ background: var(--newtone-signage-success-fill);
119
+ color: var(--newtone-signage-success-text);
120
+ }
121
+ .newtone-card-box[data-newtone-signage='warning'] {
122
+ background: var(--newtone-signage-warning-fill);
123
+ color: var(--newtone-signage-warning-text);
124
+ }
125
+ .newtone-card-box[data-newtone-signage='error'] {
126
+ background: var(--newtone-signage-error-fill);
127
+ color: var(--newtone-signage-error-text);
128
+ }
129
+ .newtone-card-box[data-newtone-signage='red'] {
130
+ background: var(--newtone-signage-red-fill);
131
+ color: var(--newtone-signage-red-text);
132
+ }
133
+ .newtone-card-box[data-newtone-signage='orange'] {
134
+ background: var(--newtone-signage-orange-fill);
135
+ color: var(--newtone-signage-orange-text);
136
+ }
137
+ .newtone-card-box[data-newtone-signage='yellow'] {
138
+ background: var(--newtone-signage-yellow-fill);
139
+ color: var(--newtone-signage-yellow-text);
140
+ }
141
+ .newtone-card-box[data-newtone-signage='green'] {
142
+ background: var(--newtone-signage-green-fill);
143
+ color: var(--newtone-signage-green-text);
144
+ }
145
+ .newtone-card-box[data-newtone-signage='teal'] {
146
+ background: var(--newtone-signage-teal-fill);
147
+ color: var(--newtone-signage-teal-text);
148
+ }
149
+ .newtone-card-box[data-newtone-signage='blue'] {
150
+ background: var(--newtone-signage-blue-fill);
151
+ color: var(--newtone-signage-blue-text);
152
+ }
153
+ .newtone-card-box[data-newtone-signage='purple'] {
154
+ background: var(--newtone-signage-purple-fill);
155
+ color: var(--newtone-signage-purple-text);
156
+ }
157
+ .newtone-card-box[data-newtone-signage='pink'] {
158
+ background: var(--newtone-signage-pink-fill);
159
+ color: var(--newtone-signage-pink-text);
160
+ }
161
+
98
162
  /* No ring, 2026-09-25: `outlined={false}`, for a card whose ground tells it apart. card-box.md. */
99
163
  .newtone-card-box[data-outlined='false'] {
100
164
  border: none;
@@ -1,5 +1,6 @@
1
1
  import { type Elevation } from '../surface/index.js';
2
2
  import { type SpaceStep, type WrapperAlign, type WrapperDirection } from '../wrapper/index.js';
3
+ import type { SignagePalette } from '../framed-icon/index.js';
3
4
  import type { HTMLAttributes, ReactNode } from 'react';
4
5
  /**
5
6
  * The box a card is: an outlined, padded surface with a corner on it.
@@ -135,6 +136,13 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
135
136
  * that is not a link must not look like one. Since 2026-10-01; card-box.md, *`href`*.
136
137
  */
137
138
  href?: string;
139
+ /**
140
+ * Paints the whole card from one palette of the `signage` slice: its ground from that palette's
141
+ * fill and its ink from its text, read in whatever scope the card sits in. Unset, nothing changes.
142
+ * No hover: the slice has no state leaves. Since 2026-10-02, Andrea Arellano's question cards;
143
+ * card-box.md, *`signage`*.
144
+ */
145
+ signage?: SignagePalette;
138
146
  /** The link's own, passed through: a new tab is the page's decision, as on `IconLink`. */
139
147
  target?: string;
140
148
  rel?: string;
@@ -142,5 +150,5 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
142
150
  className?: string;
143
151
  children?: ReactNode;
144
152
  }
145
- export declare function CardBox({ direction, padding, gap, align, elevation, outlined, size, ring, href, className, style, children, ...rest }: CardBoxProps): import("react").JSX.Element;
153
+ export declare function CardBox({ direction, padding, gap, align, elevation, outlined, size, ring, href, signage, className, style, children, ...rest }: CardBoxProps): import("react").JSX.Element;
146
154
  //# 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,EAEH,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACxB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;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;;;;OAIG;IACH,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D,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,OAAO,CAAC,EACpB,SAAS,EACT,OAAO,EACP,GAAG,EACH,KAAK,EACL,SAAS,EACT,QAAe,EACf,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,YAAY,+BAgCd"}
@@ -3,8 +3,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  // this is a server component -- see the repo blueprint, section 4.3.
4
4
  import { Surface } from '../surface/index.js';
5
5
  import { Wrapper, } from '../wrapper/index.js';
6
- export function CardBox({ direction, padding, gap, align, elevation, outlined = true, size, ring, href, className, style, children, ...rest }) {
7
- return (_jsx(Surface, { as: href === undefined ? 'div' : 'a', ...(href === undefined ? {} : { href }), elevation: elevation, className: ['newtone-card-box', className].filter(Boolean).join(' '), "data-outlined": outlined ? undefined : 'false', "data-size": size, style: ring === undefined
6
+ export function CardBox({ direction, padding, gap, align, elevation, outlined = true, size, ring, href, signage, className, style, children, ...rest }) {
7
+ return (_jsx(Surface, { as: href === undefined ? 'div' : 'a', ...(href === undefined ? {} : { href }), elevation: elevation, className: ['newtone-card-box', className].filter(Boolean).join(' '), "data-outlined": outlined ? undefined : 'false', "data-size": size, "data-newtone-signage": signage, style: ring === undefined
8
8
  ? style
9
9
  : { '--newtone-card-box-ring': ring, ...style }, ...rest, children: _jsx(Wrapper, { direction: direction, gap: gap ?? (size === 'sm' ? 2 : undefined), align: align, padding: padding ?? (size === 'sm' ? 4 : size === 'lg' ? 8 : 2), className: "newtone-card-box-body", children: children }) }));
10
10
  }
@@ -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,EACH,OAAO,GAIV,MAAM,qBAAqB,CAAA;AAiJ5B,MAAM,UAAU,OAAO,CAAC,EACpB,SAAS,EACT,OAAO,EACP,GAAG,EACH,KAAK,EACL,SAAS,EACT,QAAQ,GAAG,IAAI,EACf,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACI;IACX,OAAO,CACH,KAAC,OAAO,IACJ,EAAE,EAAE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAEhC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EACxC,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,eAClC,IAAI,EACf,KAAK,EACD,IAAI,KAAK,SAAS;YACd,CAAC,CAAC,KAAK;YACP,CAAC,CAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE,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CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,eAClC,IAAI,0BACO,OAAO,EAC7B,KAAK,EACD,IAAI,KAAK,SAAS;YACd,CAAC,CAAC,KAAK;YACP,CAAC,CAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE,GAAG,KAAK,EAAoB,KAEtE,IAAI,YAKR,KAAC,OAAO,IACJ,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAC3C,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC/D,SAAS,EAAC,uBAAuB,YAEhC,QAAQ,GACH,GACJ,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.23.0",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",