@bug-on/m3-expressive 1.3.4 → 1.3.5
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 +13 -0
- package/README.md +31 -7
- package/dist/assets/material-symbols-cdn.css +17 -23
- package/dist/buttons.js +129 -35
- package/dist/buttons.js.map +1 -1
- package/dist/buttons.mjs +129 -35
- package/dist/buttons.mjs.map +1 -1
- package/dist/{core-COvZHQ_k.d.ts → core-Cckt8qEm.d.ts} +10 -4
- package/dist/{core-CRkixy1y.d.mts → core-DDfG4pym.d.mts} +10 -4
- package/dist/core.d.mts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +6 -5
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +6 -5
- package/dist/core.mjs.map +1 -1
- package/dist/fading-blur-mask--uZbBKLj.d.mts +77 -0
- package/dist/fading-blur-mask--uZbBKLj.d.ts +77 -0
- package/dist/feedback.js +1 -1
- package/dist/feedback.js.map +1 -1
- package/dist/feedback.mjs +1 -1
- package/dist/feedback.mjs.map +1 -1
- package/dist/forms.js +1 -1
- package/dist/forms.js.map +1 -1
- package/dist/forms.mjs +1 -1
- package/dist/forms.mjs.map +1 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +266 -122
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +266 -122
- package/dist/index.mjs.map +1 -1
- package/dist/layout.d.mts +5 -3
- package/dist/layout.d.ts +5 -3
- package/dist/layout.js +61 -6
- package/dist/layout.js.map +1 -1
- package/dist/layout.mjs +61 -7
- package/dist/layout.mjs.map +1 -1
- package/dist/material-symbols-cdn.css +17 -23
- package/dist/navigation.d.mts +25 -83
- package/dist/navigation.d.ts +25 -83
- package/dist/navigation.js +22 -9
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs +22 -9
- package/dist/navigation.mjs.map +1 -1
- package/dist/overlays.js +1 -1
- package/dist/overlays.js.map +1 -1
- package/dist/overlays.mjs +1 -1
- package/dist/overlays.mjs.map +1 -1
- package/dist/pickers.d.mts +12 -0
- package/dist/pickers.d.ts +12 -0
- package/dist/pickers.js +98 -65
- package/dist/pickers.js.map +1 -1
- package/dist/pickers.mjs +98 -65
- package/dist/pickers.mjs.map +1 -1
- package/dist/{typography-339RV6v7.d.mts → typography-CKTjvlZ4.d.mts} +25 -0
- package/dist/{typography-339RV6v7.d.ts → typography-CKTjvlZ4.d.ts} +25 -0
- package/dist/typography.css +1 -1
- package/llms-full.txt +17 -13
- package/llms.txt +11 -6
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import './md3-BQhRygSi.js';
|
|
5
|
-
import { a as Typography, F as FontVariationAxes } from './typography-
|
|
5
|
+
import { a as Typography, F as FontVariationAxes } from './typography-CKTjvlZ4.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* useMediaQuery — SSR-safe responsive hook.
|
|
@@ -205,11 +205,17 @@ interface MaterialSymbolsPreconnectProps {
|
|
|
205
205
|
/**
|
|
206
206
|
* Array of Material Symbols font variants to load.
|
|
207
207
|
* Include only variants used by application to minimize bandwidth.
|
|
208
|
-
* @default ["
|
|
208
|
+
* @default ["rounded"]
|
|
209
209
|
*/
|
|
210
210
|
variants?: Array<"outlined" | "rounded" | "sharp">;
|
|
211
|
+
/**
|
|
212
|
+
* Font display strategy.
|
|
213
|
+
* Using "block" hides text until font loads, preventing unsightly ligature text pop-in (e.g. "search").
|
|
214
|
+
* @default "block"
|
|
215
|
+
*/
|
|
216
|
+
display?: "block" | "swap";
|
|
211
217
|
}
|
|
212
|
-
declare function MaterialSymbolsPreconnect({ variants, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
218
|
+
declare function MaterialSymbolsPreconnect({ variants, display, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
213
219
|
|
|
214
220
|
/**
|
|
215
221
|
* Props cho component {@link Icon}.
|
|
@@ -225,7 +231,7 @@ interface IconProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
225
231
|
name: string;
|
|
226
232
|
/**
|
|
227
233
|
* Geometric style variant — maps to font family.
|
|
228
|
-
* @default "
|
|
234
|
+
* @default "rounded"
|
|
229
235
|
*/
|
|
230
236
|
variant?: "outlined" | "rounded" | "sharp";
|
|
231
237
|
/**
|
|
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import './md3-BQhRygSi.mjs';
|
|
5
|
-
import { a as Typography, F as FontVariationAxes } from './typography-
|
|
5
|
+
import { a as Typography, F as FontVariationAxes } from './typography-CKTjvlZ4.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* useMediaQuery — SSR-safe responsive hook.
|
|
@@ -205,11 +205,17 @@ interface MaterialSymbolsPreconnectProps {
|
|
|
205
205
|
/**
|
|
206
206
|
* Array of Material Symbols font variants to load.
|
|
207
207
|
* Include only variants used by application to minimize bandwidth.
|
|
208
|
-
* @default ["
|
|
208
|
+
* @default ["rounded"]
|
|
209
209
|
*/
|
|
210
210
|
variants?: Array<"outlined" | "rounded" | "sharp">;
|
|
211
|
+
/**
|
|
212
|
+
* Font display strategy.
|
|
213
|
+
* Using "block" hides text until font loads, preventing unsightly ligature text pop-in (e.g. "search").
|
|
214
|
+
* @default "block"
|
|
215
|
+
*/
|
|
216
|
+
display?: "block" | "swap";
|
|
211
217
|
}
|
|
212
|
-
declare function MaterialSymbolsPreconnect({ variants, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
218
|
+
declare function MaterialSymbolsPreconnect({ variants, display, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
213
219
|
|
|
214
220
|
/**
|
|
215
221
|
* Props cho component {@link Icon}.
|
|
@@ -225,7 +231,7 @@ interface IconProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
225
231
|
name: string;
|
|
226
232
|
/**
|
|
227
233
|
* Geometric style variant — maps to font family.
|
|
228
|
-
* @default "
|
|
234
|
+
* @default "rounded"
|
|
229
235
|
*/
|
|
230
236
|
variant?: "outlined" | "rounded" | "sharp";
|
|
231
237
|
/**
|
package/dist/core.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { I as Icon, a as IconProps, M as MD3ColorScheme, b as MD3ThemeProvider, c as MD3ThemeProviderProps, d as MaterialSymbolsPreconnect, R as Ripple, e as RippleOrigin, f as RippleProps, T as ThemeMode, U as UseRippleStateOptions, g as applyTheme, h as generateM3Theme, r as resolveMode, u as useDOMRipple, i as useMediaQuery, j as useRipple, k as useRippleState, l as useTheme, m as useThemeMode } from './core-
|
|
1
|
+
export { I as Icon, a as IconProps, M as MD3ColorScheme, b as MD3ThemeProvider, c as MD3ThemeProviderProps, d as MaterialSymbolsPreconnect, R as Ripple, e as RippleOrigin, f as RippleProps, T as ThemeMode, U as UseRippleStateOptions, g as applyTheme, h as generateM3Theme, r as resolveMode, u as useDOMRipple, i as useMediaQuery, j as useRipple, k as useRippleState, l as useTheme, m as useThemeMode } from './core-DDfG4pym.mjs';
|
|
2
2
|
export { M as MD3ColorStyle, a as MD3Shape, b as MD3Size, P as PolymorphicProps, c as PolymorphicRef } from './md3-BQhRygSi.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
|
-
import './typography-
|
|
5
|
+
import './typography-CKTjvlZ4.mjs';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { I as Icon, a as IconProps, M as MD3ColorScheme, b as MD3ThemeProvider, c as MD3ThemeProviderProps, d as MaterialSymbolsPreconnect, R as Ripple, e as RippleOrigin, f as RippleProps, T as ThemeMode, U as UseRippleStateOptions, g as applyTheme, h as generateM3Theme, r as resolveMode, u as useDOMRipple, i as useMediaQuery, j as useRipple, k as useRippleState, l as useTheme, m as useThemeMode } from './core-
|
|
1
|
+
export { I as Icon, a as IconProps, M as MD3ColorScheme, b as MD3ThemeProvider, c as MD3ThemeProviderProps, d as MaterialSymbolsPreconnect, R as Ripple, e as RippleOrigin, f as RippleProps, T as ThemeMode, U as UseRippleStateOptions, g as applyTheme, h as generateM3Theme, r as resolveMode, u as useDOMRipple, i as useMediaQuery, j as useRipple, k as useRippleState, l as useTheme, m as useThemeMode } from './core-Cckt8qEm.js';
|
|
2
2
|
export { M as MD3ColorStyle, a as MD3Shape, b as MD3Size, P as PolymorphicProps, c as PolymorphicRef } from './md3-BQhRygSi.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
|
-
import './typography-
|
|
5
|
+
import './typography-CKTjvlZ4.js';
|
package/dist/core.js
CHANGED
|
@@ -130,7 +130,8 @@ function useRipple(options = {}) {
|
|
|
130
130
|
return { rippleRef: ref, onPointerDown };
|
|
131
131
|
}
|
|
132
132
|
function MaterialSymbolsPreconnect({
|
|
133
|
-
variants = ["
|
|
133
|
+
variants = ["rounded"],
|
|
134
|
+
display = "block"
|
|
134
135
|
}) {
|
|
135
136
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
136
137
|
/* @__PURE__ */ jsxRuntime.jsx("link", { rel: "preconnect", href: "https://fonts.googleapis.com" }),
|
|
@@ -145,7 +146,7 @@ function MaterialSymbolsPreconnect({
|
|
|
145
146
|
variants.includes("outlined") && /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
147
|
"link",
|
|
147
148
|
{
|
|
148
|
-
href:
|
|
149
|
+
href: `https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=${display}`,
|
|
149
150
|
rel: "stylesheet",
|
|
150
151
|
precedence: "default"
|
|
151
152
|
}
|
|
@@ -153,7 +154,7 @@ function MaterialSymbolsPreconnect({
|
|
|
153
154
|
variants.includes("rounded") && /* @__PURE__ */ jsxRuntime.jsx(
|
|
154
155
|
"link",
|
|
155
156
|
{
|
|
156
|
-
href:
|
|
157
|
+
href: `https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=${display}`,
|
|
157
158
|
rel: "stylesheet",
|
|
158
159
|
precedence: "default"
|
|
159
160
|
}
|
|
@@ -161,7 +162,7 @@ function MaterialSymbolsPreconnect({
|
|
|
161
162
|
variants.includes("sharp") && /* @__PURE__ */ jsxRuntime.jsx(
|
|
162
163
|
"link",
|
|
163
164
|
{
|
|
164
|
-
href:
|
|
165
|
+
href: `https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=${display}`,
|
|
165
166
|
rel: "stylesheet",
|
|
166
167
|
precedence: "default"
|
|
167
168
|
}
|
|
@@ -322,7 +323,7 @@ var IconComponent = React4__namespace.forwardRef(
|
|
|
322
323
|
(_a, ref) => {
|
|
323
324
|
var _b = _a, {
|
|
324
325
|
name,
|
|
325
|
-
variant = "
|
|
326
|
+
variant = "rounded",
|
|
326
327
|
fill = 0,
|
|
327
328
|
weight = 400,
|
|
328
329
|
grade = 0,
|