@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.
- package/CHANGELOG.md +12 -0
- package/dist/buttons.d.mts +2 -2
- package/dist/buttons.d.ts +2 -2
- package/dist/buttons.js +30 -1
- package/dist/buttons.js.map +1 -1
- package/dist/buttons.mjs +30 -1
- package/dist/buttons.mjs.map +1 -1
- package/dist/core-Bc5Wj_pc.d.ts +497 -0
- package/dist/core-D4048_K5.d.mts +497 -0
- package/dist/core.d.mts +6 -422
- package/dist/core.d.ts +6 -422
- package/dist/core.js +137 -68
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +138 -69
- package/dist/core.mjs.map +1 -1
- package/dist/index.css +6 -1
- package/dist/index.d.mts +65 -3
- package/dist/index.d.ts +65 -3
- package/dist/index.js +206 -86
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +206 -87
- package/dist/index.mjs.map +1 -1
- package/dist/layout.js +29 -0
- package/dist/layout.js.map +1 -1
- package/dist/layout.mjs +29 -0
- package/dist/layout.mjs.map +1 -1
- package/dist/{md3-DFhj-NZj.d.mts → md3-Dty-Qcad.d.mts} +7 -1
- package/dist/{md3-DFhj-NZj.d.ts → md3-Dty-Qcad.d.ts} +7 -1
- package/dist/{split-button-trailing-uncheckable-BRPuTqi1.d.mts → split-button-trailing-uncheckable-BkPbiBo3.d.ts} +29 -1
- package/dist/{split-button-trailing-uncheckable-CjOFCoyW.d.ts → split-button-trailing-uncheckable-D_PLPb-u.d.mts} +29 -1
- package/package.json +4 -4
|
@@ -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-
|
|
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-
|
|
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.
|
|
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.
|
|
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.
|
|
183
|
-
"@bug-on/m3-tokens": "1.
|
|
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",
|