@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.
Files changed (49) hide show
  1. package/CHANGELOG.md +29 -2
  2. package/README.md +20 -18
  3. package/dist/assets/material-symbols-self-hosted.css +27 -26
  4. package/dist/buttons.d.mts +1 -1
  5. package/dist/buttons.d.ts +1 -1
  6. package/dist/buttons.js.map +1 -1
  7. package/dist/buttons.mjs.map +1 -1
  8. package/dist/core.d.mts +44 -44
  9. package/dist/core.d.ts +44 -44
  10. package/dist/core.js.map +1 -1
  11. package/dist/core.mjs.map +1 -1
  12. package/dist/feedback.d.mts +54 -54
  13. package/dist/feedback.d.ts +54 -54
  14. package/dist/feedback.js.map +1 -1
  15. package/dist/feedback.mjs.map +1 -1
  16. package/dist/index.css +3 -0
  17. package/dist/index.d.mts +2 -2
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +8 -8
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +8 -8
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/layout.d.mts +40 -40
  24. package/dist/layout.d.ts +40 -40
  25. package/dist/layout.js +5 -5
  26. package/dist/layout.js.map +1 -1
  27. package/dist/layout.mjs +5 -5
  28. package/dist/layout.mjs.map +1 -1
  29. package/dist/material-symbols-self-hosted.css +27 -26
  30. package/dist/navigation.js.map +1 -1
  31. package/dist/navigation.mjs.map +1 -1
  32. package/dist/overlays.d.mts +2 -2
  33. package/dist/overlays.d.ts +2 -2
  34. package/dist/overlays.js +2 -2
  35. package/dist/overlays.js.map +1 -1
  36. package/dist/overlays.mjs +2 -2
  37. package/dist/overlays.mjs.map +1 -1
  38. package/dist/pickers.d.mts +241 -243
  39. package/dist/pickers.d.ts +241 -243
  40. package/dist/pickers.js +1 -1
  41. package/dist/pickers.js.map +1 -1
  42. package/dist/pickers.mjs +1 -1
  43. package/dist/pickers.mjs.map +1 -1
  44. package/dist/{side-sheet-modal-BY6VCC8p.d.mts → side-sheet-modal-64FGhDxL.d.mts} +20 -21
  45. package/dist/{side-sheet-modal-CglP6KYA.d.ts → side-sheet-modal-Bd5Qqvp9.d.ts} +20 -21
  46. package/dist/{split-button-trailing-uncheckable-MXj_kyNt.d.mts → split-button-trailing-uncheckable-BRPuTqi1.d.mts} +140 -151
  47. package/dist/{split-button-trailing-uncheckable-C5CLCIKP.d.ts → split-button-trailing-uncheckable-CjOFCoyW.d.ts} +140 -151
  48. package/dist/typography.css +5 -0
  49. package/package.json +4 -4
@@ -4,56 +4,57 @@
4
4
  * SETUP STEPS:
5
5
  *
6
6
  * Step 1 — Download font files
7
- * Truy cập: https://github.com/google/material-design-icons/tree/master/variablefont
7
+ * Visit: https://github.com/google/material-design-icons/tree/master/variablefont
8
8
  * Download file: MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].woff2
9
- * ( Rounded / Sharp nếu cần)
9
+ * (and Rounded / Sharp if needed)
10
10
  *
11
11
  * Step 2 — Place font files in your app
12
- * Recommended location: public/fonts/ hoặc src/assets/fonts/
12
+ * Recommended location: public/fonts/ or src/assets/fonts/
13
13
  * Example: public/fonts/MaterialSymbolsOutlined.woff2
14
14
  *
15
- * Step 3 — Copy điều chỉnh @font-face block bên dưới
16
- * Thay đổi src url() để trỏ đúng đường dẫn trong project của bạn
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/m3-fonts` and import
19
- * `@bug-on/m3-fonts/material-symbols.css`. This legacy export remains only
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 này:
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 tốt hơn CDN khi bạn dùng CDN + HTTP/2 cho static assets
27
- * - Nếu không CDN, Google Fonts CDN thể nhanh hơn do cache sharing
28
- * - Dùng font-display: block cho icon fonts (xem do file CDN)
29
- * - WOFF2 format duy nhất cần thiết (100% modern browser support, Brotli compression)
30
- * - Không cần WOFF fallback nữa
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
- * SUBSETTING (QUAN TRỌNG để giảm file size):
33
- * Full variable font ~295 KB. Sau khi subset còn ~1-2 KB cho vài chục icons.
34
- * Dùng tool: https://everythingfonts.com/subsetter
35
- * Hoặc dùng Google Fonts text parameter để subset trên CDN:
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 loại bỏ việc gửi user IP đến Google servers,
40
- * giải quyết GDPR compliance requirement.
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
- /* Khai báo full axis range để browser biết đây là variable font */
47
+ /* Declare full axis range so browser recognizes variable font */
47
48
  font-weight: 100 700;
48
- /* font-display: block bắt buộc cho icon fonts:
49
- * - Tránh render text thô "arrow_forward" thay icon
50
- * - Max 3s block, sau đó icon xuất hiện
51
- * Tham khảo: https://web.dev/articles/font-best-practices#icon_fonts */
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: chỉ load font khi page chứa tự trong range này.
56
- * Material Symbols dùng PUA (Private Use Area) cho ligatures. */
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
  /*