@bug-on/m3-expressive 1.1.0 → 1.2.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.
@@ -1,7 +1,13 @@
1
1
  import { ElementType, ComponentPropsWithoutRef, ReactNode, ComponentPropsWithRef } from 'react';
2
2
 
3
3
  /** MD3 button color variants */
4
- type MD3ColorStyle = "elevated" | "filled" | "tonal" | "outlined" | "text";
4
+ type MD3ColorStyle = "elevated" | "filled" | "tonal" | "outlined" | "text"
5
+ /** High-chroma tertiary tone — for hero accents, CTAs, expressive moments. */
6
+ | "tertiary"
7
+ /** Brand-stable primary fixed — same hue across light/dark, for badges/pills. */
8
+ | "primary-fixed"
9
+ /** Brand-stable tertiary fixed — same hue across light/dark, for special states. */
10
+ | "tertiary-fixed";
5
11
  /** MD3 Expressive button sizes */
6
12
  type MD3Size = "xs" | "sm" | "md" | "lg" | "xl";
7
13
  /** MD3 shape families */
@@ -1,7 +1,13 @@
1
1
  import { ElementType, ComponentPropsWithoutRef, ReactNode, ComponentPropsWithRef } from 'react';
2
2
 
3
3
  /** MD3 button color variants */
4
- type MD3ColorStyle = "elevated" | "filled" | "tonal" | "outlined" | "text";
4
+ type MD3ColorStyle = "elevated" | "filled" | "tonal" | "outlined" | "text"
5
+ /** High-chroma tertiary tone — for hero accents, CTAs, expressive moments. */
6
+ | "tertiary"
7
+ /** Brand-stable primary fixed — same hue across light/dark, for badges/pills. */
8
+ | "primary-fixed"
9
+ /** Brand-stable tertiary fixed — same hue across light/dark, for special states. */
10
+ | "tertiary-fixed";
5
11
  /** MD3 Expressive button sizes */
6
12
  type MD3Size = "xs" | "sm" | "md" | "lg" | "xl";
7
13
  /** MD3 shape families */
@@ -1,5 +1,5 @@
1
1
  import { HTMLMotionProps } from 'motion/react';
2
- import { M as MD3ColorStyle, b as MD3Size, a as MD3Shape } from './md3-DFhj-NZj.mjs';
2
+ import { M as MD3ColorStyle, b as MD3Size, a as MD3Shape } from './md3-Dty-Qcad.js';
3
3
  import * as React$1 from 'react';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
 
@@ -170,6 +170,34 @@ declare const BUTTON_COLOR_TOKENS: {
170
170
  readonly selected: "bg-transparent text-m3-primary";
171
171
  readonly unselected: "bg-transparent text-m3-primary";
172
172
  };
173
+ /**
174
+ * High-chroma tertiary tone. Use for hero CTAs and expressive moments where
175
+ * a distinct accent beyond primary is needed (e.g., hero chip, highlight fab).
176
+ */
177
+ readonly tertiary: {
178
+ readonly default: "bg-m3-tertiary text-m3-on-tertiary";
179
+ readonly selected: "bg-m3-tertiary text-m3-on-tertiary";
180
+ readonly unselected: "bg-m3-tertiary-container text-m3-on-tertiary-container";
181
+ };
182
+ /**
183
+ * Brand-stable primary fixed. Hue stays consistent across light and dark modes.
184
+ * Ideal for badges, pill chips, and elements that must carry the brand color
185
+ * regardless of the active theme.
186
+ */
187
+ readonly "primary-fixed": {
188
+ readonly default: "bg-m3-primary-fixed text-m3-on-primary-fixed";
189
+ readonly selected: "bg-m3-primary-fixed text-m3-on-primary-fixed";
190
+ readonly unselected: "bg-m3-primary-fixed text-m3-on-primary-fixed-variant";
191
+ };
192
+ /**
193
+ * Brand-stable tertiary fixed. Use for special-state indicators, achievement
194
+ * badges, or accent pills that need a fixed tertiary hue across themes.
195
+ */
196
+ readonly "tertiary-fixed": {
197
+ readonly default: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed";
198
+ readonly selected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed";
199
+ readonly unselected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed-variant";
200
+ };
173
201
  };
174
202
 
175
203
  type ButtonGroupVariant = "standard" | "connected" | "navbar";
@@ -1,5 +1,5 @@
1
1
  import { HTMLMotionProps } from 'motion/react';
2
- import { M as MD3ColorStyle, b as MD3Size, a as MD3Shape } from './md3-DFhj-NZj.js';
2
+ import { M as MD3ColorStyle, b as MD3Size, a as MD3Shape } from './md3-Dty-Qcad.mjs';
3
3
  import * as React$1 from 'react';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
 
@@ -170,6 +170,34 @@ declare const BUTTON_COLOR_TOKENS: {
170
170
  readonly selected: "bg-transparent text-m3-primary";
171
171
  readonly unselected: "bg-transparent text-m3-primary";
172
172
  };
173
+ /**
174
+ * High-chroma tertiary tone. Use for hero CTAs and expressive moments where
175
+ * a distinct accent beyond primary is needed (e.g., hero chip, highlight fab).
176
+ */
177
+ readonly tertiary: {
178
+ readonly default: "bg-m3-tertiary text-m3-on-tertiary";
179
+ readonly selected: "bg-m3-tertiary text-m3-on-tertiary";
180
+ readonly unselected: "bg-m3-tertiary-container text-m3-on-tertiary-container";
181
+ };
182
+ /**
183
+ * Brand-stable primary fixed. Hue stays consistent across light and dark modes.
184
+ * Ideal for badges, pill chips, and elements that must carry the brand color
185
+ * regardless of the active theme.
186
+ */
187
+ readonly "primary-fixed": {
188
+ readonly default: "bg-m3-primary-fixed text-m3-on-primary-fixed";
189
+ readonly selected: "bg-m3-primary-fixed text-m3-on-primary-fixed";
190
+ readonly unselected: "bg-m3-primary-fixed text-m3-on-primary-fixed-variant";
191
+ };
192
+ /**
193
+ * Brand-stable tertiary fixed. Use for special-state indicators, achievement
194
+ * badges, or accent pills that need a fixed tertiary hue across themes.
195
+ */
196
+ readonly "tertiary-fixed": {
197
+ readonly default: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed";
198
+ readonly selected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed";
199
+ readonly unselected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed-variant";
200
+ };
173
201
  };
174
202
 
175
203
  type ButtonGroupVariant = "standard" | "connected" | "navbar";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bug-on/m3-expressive",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Material Design 3 Expressive React components",
5
5
  "author": "Bug On",
6
6
  "license": "MIT",
@@ -169,7 +169,7 @@
169
169
  "@dnd-kit/core": "^6.3.1",
170
170
  "@dnd-kit/sortable": "^10.0.0",
171
171
  "@dnd-kit/utilities": "^3.2.2",
172
- "@material/material-color-utilities": "^0.3.0",
172
+ "@material/material-color-utilities": "^0.4.0",
173
173
  "@radix-ui/react-context-menu": "^2.2.16",
174
174
  "@radix-ui/react-dialog": "^1.1.15",
175
175
  "@radix-ui/react-dropdown-menu": "^2.1.16",
@@ -179,8 +179,8 @@
179
179
  "class-variance-authority": "^0.7.1",
180
180
  "clsx": "^2.1.1",
181
181
  "tailwind-merge": "^3.3.1",
182
- "@bug-on/m3-tailwind": "1.1.0",
183
- "@bug-on/m3-tokens": "1.1.0"
182
+ "@bug-on/m3-tailwind": "1.2.0",
183
+ "@bug-on/m3-tokens": "1.2.0"
184
184
  },
185
185
  "devDependencies": {
186
186
  "@testing-library/jest-dom": "^6.9.1",