@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.js
CHANGED
|
@@ -1396,6 +1396,35 @@ var BUTTON_COLOR_TOKENS = {
|
|
|
1396
1396
|
default: "bg-transparent text-m3-primary",
|
|
1397
1397
|
selected: "bg-transparent text-m3-primary",
|
|
1398
1398
|
unselected: "bg-transparent text-m3-primary"
|
|
1399
|
+
},
|
|
1400
|
+
// ── MD3 Expressive accent variants ──────────────────────────────────────
|
|
1401
|
+
/**
|
|
1402
|
+
* High-chroma tertiary tone. Use for hero CTAs and expressive moments where
|
|
1403
|
+
* a distinct accent beyond primary is needed (e.g., hero chip, highlight fab).
|
|
1404
|
+
*/
|
|
1405
|
+
tertiary: {
|
|
1406
|
+
default: "bg-m3-tertiary text-m3-on-tertiary",
|
|
1407
|
+
selected: "bg-m3-tertiary text-m3-on-tertiary",
|
|
1408
|
+
unselected: "bg-m3-tertiary-container text-m3-on-tertiary-container"
|
|
1409
|
+
},
|
|
1410
|
+
/**
|
|
1411
|
+
* Brand-stable primary fixed. Hue stays consistent across light and dark modes.
|
|
1412
|
+
* Ideal for badges, pill chips, and elements that must carry the brand color
|
|
1413
|
+
* regardless of the active theme.
|
|
1414
|
+
*/
|
|
1415
|
+
"primary-fixed": {
|
|
1416
|
+
default: "bg-m3-primary-fixed text-m3-on-primary-fixed",
|
|
1417
|
+
selected: "bg-m3-primary-fixed text-m3-on-primary-fixed",
|
|
1418
|
+
unselected: "bg-m3-primary-fixed text-m3-on-primary-fixed-variant"
|
|
1419
|
+
},
|
|
1420
|
+
/**
|
|
1421
|
+
* Brand-stable tertiary fixed. Use for special-state indicators, achievement
|
|
1422
|
+
* badges, or accent pills that need a fixed tertiary hue across themes.
|
|
1423
|
+
*/
|
|
1424
|
+
"tertiary-fixed": {
|
|
1425
|
+
default: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed",
|
|
1426
|
+
selected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed",
|
|
1427
|
+
unselected: "bg-m3-tertiary-fixed text-m3-on-tertiary-fixed-variant"
|
|
1399
1428
|
}
|
|
1400
1429
|
};
|
|
1401
1430
|
var MOTION_PROP_KEYS = [
|