@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
package/dist/layout.mjs
CHANGED
|
@@ -1374,6 +1374,35 @@ var BUTTON_COLOR_TOKENS = {
|
|
|
1374
1374
|
default: "bg-transparent text-m3-primary",
|
|
1375
1375
|
selected: "bg-transparent text-m3-primary",
|
|
1376
1376
|
unselected: "bg-transparent text-m3-primary"
|
|
1377
|
+
},
|
|
1378
|
+
// ── MD3 Expressive accent variants ──────────────────────────────────────
|
|
1379
|
+
/**
|
|
1380
|
+
* High-chroma tertiary tone. Use for hero CTAs and expressive moments where
|
|
1381
|
+
* a distinct accent beyond primary is needed (e.g., hero chip, highlight fab).
|
|
1382
|
+
*/
|
|
1383
|
+
tertiary: {
|
|
1384
|
+
default: "bg-m3-tertiary text-m3-on-tertiary",
|
|
1385
|
+
selected: "bg-m3-tertiary text-m3-on-tertiary",
|
|
1386
|
+
unselected: "bg-m3-tertiary-container text-m3-on-tertiary-container"
|
|
1387
|
+
},
|
|
1388
|
+
/**
|
|
1389
|
+
* Brand-stable primary fixed. Hue stays consistent across light and dark modes.
|
|
1390
|
+
* Ideal for badges, pill chips, and elements that must carry the brand color
|
|
1391
|
+
* regardless of the active theme.
|
|
1392
|
+
*/
|
|
1393
|
+
"primary-fixed": {
|
|
1394
|
+
default: "bg-m3-primary-fixed text-m3-on-primary-fixed",
|
|
1395
|
+
selected: "bg-m3-primary-fixed text-m3-on-primary-fixed",
|
|
1396
|
+
unselected: "bg-m3-primary-fixed text-m3-on-primary-fixed-variant"
|
|
1397
|
+
},
|
|
1398
|
+
/**
|
|
1399
|
+
* Brand-stable tertiary fixed. Use for special-state indicators, achievement
|
|
1400
|
+
* badges, or accent pills that need a fixed tertiary hue across themes.
|
|
1401
|
+
*/
|
|
1402
|
+
"tertiary-fixed": {
|
|
1403
|
+
default: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed",
|
|
1404
|
+
selected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed",
|
|
1405
|
+
unselected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed-variant"
|
|
1377
1406
|
}
|
|
1378
1407
|
};
|
|
1379
1408
|
var MOTION_PROP_KEYS = [
|