@bug-on/m3-expressive 1.0.0 → 1.1.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 +29 -2
- package/README.md +20 -18
- package/dist/assets/material-symbols-self-hosted.css +27 -26
- package/dist/buttons.d.mts +1 -1
- package/dist/buttons.d.ts +1 -1
- package/dist/buttons.js.map +1 -1
- package/dist/buttons.mjs.map +1 -1
- package/dist/core.d.mts +44 -44
- package/dist/core.d.ts +44 -44
- package/dist/core.js.map +1 -1
- package/dist/core.mjs.map +1 -1
- package/dist/feedback.d.mts +54 -54
- package/dist/feedback.d.ts +54 -54
- package/dist/feedback.js.map +1 -1
- package/dist/feedback.mjs.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/layout.d.mts +40 -40
- package/dist/layout.d.ts +40 -40
- package/dist/layout.js +5 -5
- package/dist/layout.js.map +1 -1
- package/dist/layout.mjs +5 -5
- package/dist/layout.mjs.map +1 -1
- package/dist/material-symbols-self-hosted.css +27 -26
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs.map +1 -1
- package/dist/overlays.d.mts +2 -2
- package/dist/overlays.d.ts +2 -2
- package/dist/overlays.js +2 -2
- package/dist/overlays.js.map +1 -1
- package/dist/overlays.mjs +2 -2
- package/dist/overlays.mjs.map +1 -1
- package/dist/pickers.d.mts +241 -243
- package/dist/pickers.d.ts +241 -243
- package/dist/pickers.js +1 -1
- package/dist/pickers.js.map +1 -1
- package/dist/pickers.mjs +1 -1
- package/dist/pickers.mjs.map +1 -1
- package/dist/{side-sheet-modal-BY6VCC8p.d.mts → side-sheet-modal-64FGhDxL.d.mts} +20 -21
- package/dist/{side-sheet-modal-CglP6KYA.d.ts → side-sheet-modal-Bd5Qqvp9.d.ts} +20 -21
- package/dist/{split-button-trailing-uncheckable-MXj_kyNt.d.mts → split-button-trailing-uncheckable-BRPuTqi1.d.mts} +140 -151
- package/dist/{split-button-trailing-uncheckable-C5CLCIKP.d.ts → split-button-trailing-uncheckable-CjOFCoyW.d.ts} +140 -151
- package/dist/typography.css +5 -0
- package/package.json +4 -4
|
@@ -4,56 +4,57 @@
|
|
|
4
4
|
* SETUP STEPS:
|
|
5
5
|
*
|
|
6
6
|
* Step 1 — Download font files
|
|
7
|
-
*
|
|
7
|
+
* Visit: https://github.com/google/material-design-icons/tree/master/variablefont
|
|
8
8
|
* Download file: MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].woff2
|
|
9
|
-
* (
|
|
9
|
+
* (and Rounded / Sharp if needed)
|
|
10
10
|
*
|
|
11
11
|
* Step 2 — Place font files in your app
|
|
12
|
-
* Recommended location: public/fonts/
|
|
12
|
+
* Recommended location: public/fonts/ or src/assets/fonts/
|
|
13
13
|
* Example: public/fonts/MaterialSymbolsOutlined.woff2
|
|
14
14
|
*
|
|
15
|
-
* Step 3 — Copy
|
|
16
|
-
*
|
|
15
|
+
* Step 3 — Copy and adjust @font-face block below
|
|
16
|
+
* Change src url() to point to the correct path in your project
|
|
17
17
|
*
|
|
18
|
-
* @deprecated New integrations should install `@bug-on/
|
|
19
|
-
* `@bug-on/
|
|
18
|
+
* @deprecated New integrations should install `@bug-on/md3-fonts` and import
|
|
19
|
+
* `@bug-on/md3-fonts/material-symbols.css`. This legacy export remains only
|
|
20
20
|
* for backwards compatibility and will be removed in the next major version.
|
|
21
21
|
*
|
|
22
|
-
* Step 4 — Import file
|
|
22
|
+
* Step 4 — Import this file:
|
|
23
23
|
* import '@bug-on/m3-expressive/material-symbols-self-hosted.css'
|
|
24
24
|
*
|
|
25
25
|
* PERFORMANCE NOTES:
|
|
26
|
-
* - Self-hosting
|
|
27
|
-
* -
|
|
28
|
-
* -
|
|
29
|
-
* - WOFF2
|
|
30
|
-
* -
|
|
26
|
+
* - Self-hosting is better than CDN when using HTTP/2 CDN for static assets
|
|
27
|
+
* - Without a CDN, Google Fonts CDN may be faster due to cache sharing
|
|
28
|
+
* - Use font-display: block for icon fonts (see reasons in CDN file)
|
|
29
|
+
* - WOFF2 is the only format needed (100% modern browser support, Brotli compression)
|
|
30
|
+
* - WOFF fallback is no longer required
|
|
31
31
|
*
|
|
32
|
-
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
|
|
33
|
+
* SUBSETTING (IMPORTANT for reducing file size):
|
|
34
|
+
* Full variable font ~295 KB. After subsetting ~1-2 KB for a few dozen icons.
|
|
35
|
+
* Use tool: https://everythingfonts.com/subsetter
|
|
36
|
+
* Or use Google Fonts text parameter to subset on CDN:
|
|
36
37
|
* ?family=Material+Symbols+Outlined&text=home%20search%20settings
|
|
37
38
|
*
|
|
38
39
|
* GDPR NOTE:
|
|
39
|
-
* Self-hosting
|
|
40
|
-
*
|
|
40
|
+
* Self-hosting eliminates sending user IP addresses to Google servers,
|
|
41
|
+
* resolving GDPR compliance requirements.
|
|
41
42
|
*/
|
|
42
43
|
|
|
43
44
|
@font-face {
|
|
44
45
|
font-family: "Material Symbols Outlined";
|
|
45
46
|
font-style: normal;
|
|
46
|
-
/*
|
|
47
|
+
/* Declare full axis range so browser recognizes variable font */
|
|
47
48
|
font-weight: 100 700;
|
|
48
|
-
/* font-display: block
|
|
49
|
-
* -
|
|
50
|
-
* - Max 3s block,
|
|
51
|
-
*
|
|
49
|
+
/* font-display: block is required for icon fonts:
|
|
50
|
+
* - Prevents rendering raw text "arrow_forward" instead of icon
|
|
51
|
+
* - Max 3s block, then icon appears
|
|
52
|
+
* Reference: https://web.dev/articles/font-best-practices#icon_fonts */
|
|
52
53
|
font-display: block;
|
|
53
54
|
src: url("/fonts/MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].woff2")
|
|
54
55
|
format("woff2");
|
|
55
|
-
/* unicode-range:
|
|
56
|
-
* Material Symbols
|
|
56
|
+
/* unicode-range: loads font only when page contains characters in range.
|
|
57
|
+
* Material Symbols uses PUA (Private Use Area) for ligatures. */
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
/*
|