@maxio-com/react-ui-components 9.35.1 → 9.36.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.
@@ -17,12 +17,12 @@
17
17
 
18
18
  ### Variants
19
19
 
20
- Choose the surface treatment that matches the card's hierarchy.
20
+ Choose the surface treatment that matches the card's hierarchy. Use `primary` by default. White is always preferred; see [Semantic Colors](foundations-design-tokens-colors-semantic-colors.md).
21
21
 
22
- | Variants | Purpose | Usage notes |
23
- | :---------- | :--------------------------- | :------------------------------------------------------------- |
24
- | `primary` | Standard grouped surface. | Use for the main card or focused section within a page area. |
25
- | `secondary` | Lower-emphasis grouped area. | Use when header and footer should sit behind the card surface. |
22
+ | Variants | Purpose | Usage notes |
23
+ | :---------- | :--------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ |
24
+ | `primary` | Standard grouped surface. | Use for the main card or focused section within a page area. |
25
+ | `secondary` | Lower-emphasis grouped area. | Header and footer sit on `bg-subtle` around a white body. With only a body, the whole card is `bg-subtle`. It adds gray, so a designer must approve it. |
26
26
 
27
27
  ### Behavior
28
28
 
@@ -4,6 +4,12 @@ Semantic colors help align Maxio's UI with user intent and accessibility needs.
4
4
 
5
5
  If a suitable semantic color isn't available, you may use [Primitive Colors](foundations-design-tokens-colors-primitive-colors.md) as a fallback.
6
6
 
7
+ ## Backgrounds: white first
8
+
9
+ - **White is the default.** Use `bg-primary` for page backgrounds and card surfaces.
10
+ - **Gray needs a designer.** A gray page or surface background is a design decision. A designer must approve it before it ships.
11
+ - **Approved gray means `bg-subtle`.** When a designer approves a gray background, use `bg-subtle`. Don't use `bg-secondary` or `bg-tertiary` for page or card backgrounds.
12
+
7
13
  ## Colors
8
14
 
9
15
  <br />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxio-com/react-ui-components",
3
- "version": "9.35.1",
3
+ "version": "9.36.0",
4
4
  "description": "React UI components",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  "@floating-ui/react-dom": "^2.1.9",
50
50
  "@floating-ui/react-dom-interactions": "^0.13.3",
51
51
  "@internationalized/date": "^3.12.3",
52
- "@maxio-com/design-tokens": "^4.4.0",
52
+ "@maxio-com/design-tokens": "^4.5.0",
53
53
  "@react-aria/toast": "3.1.1",
54
54
  "@react-aria/utils": "^3.34.1",
55
55
  "@react-stately/checkbox": "^3.8.1",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "e86362178902a257cf305699c29264d62aaf61f3"
68
+ "gitHead": "cc420c3ac31da7e470eb719df4b8323aafcedb03"
69
69
  }