@bug-on/m3-expressive 1.3.3 → 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 +21 -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-DyEy8H9Z.d.ts → core-Cckt8qEm.d.ts} +11 -8
- package/dist/{core-D8FdHY6I.d.mts → core-DDfG4pym.d.mts} +11 -8
- package/dist/core.d.mts +2 -3
- package/dist/core.d.ts +2 -3
- package/dist/core.js +7 -7
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +8 -7
- 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 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +270 -127
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +271 -127
- 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 +18 -18
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { ClassValue } from 'clsx';
|
|
5
4
|
import './md3-BQhRygSi.js';
|
|
6
|
-
import { a as Typography, F as FontVariationAxes } from './typography-
|
|
5
|
+
import { a as Typography, F as FontVariationAxes } from './typography-CKTjvlZ4.js';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* useMediaQuery — SSR-safe responsive hook.
|
|
@@ -206,13 +205,17 @@ interface MaterialSymbolsPreconnectProps {
|
|
|
206
205
|
/**
|
|
207
206
|
* Array of Material Symbols font variants to load.
|
|
208
207
|
* Include only variants used by application to minimize bandwidth.
|
|
209
|
-
* @default ["
|
|
208
|
+
* @default ["rounded"]
|
|
210
209
|
*/
|
|
211
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";
|
|
212
217
|
}
|
|
213
|
-
declare function MaterialSymbolsPreconnect({ variants, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
214
|
-
|
|
215
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
218
|
+
declare function MaterialSymbolsPreconnect({ variants, display, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
216
219
|
|
|
217
220
|
/**
|
|
218
221
|
* Props cho component {@link Icon}.
|
|
@@ -228,7 +231,7 @@ interface IconProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
228
231
|
name: string;
|
|
229
232
|
/**
|
|
230
233
|
* Geometric style variant — maps to font family.
|
|
231
|
-
* @default "
|
|
234
|
+
* @default "rounded"
|
|
232
235
|
*/
|
|
233
236
|
variant?: "outlined" | "rounded" | "sharp";
|
|
234
237
|
/**
|
|
@@ -494,4 +497,4 @@ declare function MD3ThemeProvider({ children, sourceColor: initialSourceColor, d
|
|
|
494
497
|
declare function useTheme(): ThemeContextValue;
|
|
495
498
|
declare function useThemeMode(): Pick<ThemeContextValue, "mode" | "setMode" | "effectiveMode">;
|
|
496
499
|
|
|
497
|
-
export { type ContrastLevel as C, type GenerateM3ThemeOptions as G, Icon as I, type MD3ColorScheme as M, Ripple as R, type SchemeVariant as S, type ThemeMode as T, type UseRippleStateOptions as U, type IconProps as a, MD3ThemeProvider as b, type MD3ThemeProviderProps as c, MaterialSymbolsPreconnect as d, type RippleOrigin as e, type RippleProps as f, applyTheme as g,
|
|
500
|
+
export { type ContrastLevel as C, type GenerateM3ThemeOptions as G, Icon as I, type MD3ColorScheme as M, Ripple as R, type SchemeVariant as S, type ThemeMode as T, type UseRippleStateOptions as U, type IconProps as a, MD3ThemeProvider as b, type MD3ThemeProviderProps as c, MaterialSymbolsPreconnect as d, type RippleOrigin as e, type RippleProps as f, applyTheme as g, generateM3Theme as h, useMediaQuery as i, useRipple as j, useRippleState as k, useTheme as l, useThemeMode as m, resolveMode as r, useRipple$1 as u };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { ClassValue } from 'clsx';
|
|
5
4
|
import './md3-BQhRygSi.mjs';
|
|
6
|
-
import { a as Typography, F as FontVariationAxes } from './typography-
|
|
5
|
+
import { a as Typography, F as FontVariationAxes } from './typography-CKTjvlZ4.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* useMediaQuery — SSR-safe responsive hook.
|
|
@@ -206,13 +205,17 @@ interface MaterialSymbolsPreconnectProps {
|
|
|
206
205
|
/**
|
|
207
206
|
* Array of Material Symbols font variants to load.
|
|
208
207
|
* Include only variants used by application to minimize bandwidth.
|
|
209
|
-
* @default ["
|
|
208
|
+
* @default ["rounded"]
|
|
210
209
|
*/
|
|
211
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";
|
|
212
217
|
}
|
|
213
|
-
declare function MaterialSymbolsPreconnect({ variants, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
214
|
-
|
|
215
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
218
|
+
declare function MaterialSymbolsPreconnect({ variants, display, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
216
219
|
|
|
217
220
|
/**
|
|
218
221
|
* Props cho component {@link Icon}.
|
|
@@ -228,7 +231,7 @@ interface IconProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
228
231
|
name: string;
|
|
229
232
|
/**
|
|
230
233
|
* Geometric style variant — maps to font family.
|
|
231
|
-
* @default "
|
|
234
|
+
* @default "rounded"
|
|
232
235
|
*/
|
|
233
236
|
variant?: "outlined" | "rounded" | "sharp";
|
|
234
237
|
/**
|
|
@@ -494,4 +497,4 @@ declare function MD3ThemeProvider({ children, sourceColor: initialSourceColor, d
|
|
|
494
497
|
declare function useTheme(): ThemeContextValue;
|
|
495
498
|
declare function useThemeMode(): Pick<ThemeContextValue, "mode" | "setMode" | "effectiveMode">;
|
|
496
499
|
|
|
497
|
-
export { type ContrastLevel as C, type GenerateM3ThemeOptions as G, Icon as I, type MD3ColorScheme as M, Ripple as R, type SchemeVariant as S, type ThemeMode as T, type UseRippleStateOptions as U, type IconProps as a, MD3ThemeProvider as b, type MD3ThemeProviderProps as c, MaterialSymbolsPreconnect as d, type RippleOrigin as e, type RippleProps as f, applyTheme as g,
|
|
500
|
+
export { type ContrastLevel as C, type GenerateM3ThemeOptions as G, Icon as I, type MD3ColorScheme as M, Ripple as R, type SchemeVariant as S, type ThemeMode as T, type UseRippleStateOptions as U, type IconProps as a, MD3ThemeProvider as b, type MD3ThemeProviderProps as c, MaterialSymbolsPreconnect as d, type RippleOrigin as e, type RippleProps as f, applyTheme as g, generateM3Theme as h, useMediaQuery as i, useRipple as j, useRippleState as k, useTheme as l, useThemeMode as m, resolveMode as r, useRipple$1 as u };
|
package/dist/core.d.mts
CHANGED
|
@@ -1,6 +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
|
|
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 '
|
|
6
|
-
import './typography-339RV6v7.mjs';
|
|
5
|
+
import './typography-CKTjvlZ4.mjs';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,6 +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
|
|
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 '
|
|
6
|
-
import './typography-339RV6v7.js';
|
|
5
|
+
import './typography-CKTjvlZ4.js';
|
package/dist/core.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
var React4 = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var materialColorUtilities = require('@material/material-color-utilities');
|
|
7
|
+
var react = require('motion/react');
|
|
7
8
|
var clsx = require('clsx');
|
|
8
9
|
var tailwindMerge = require('tailwind-merge');
|
|
9
|
-
var react = require('motion/react');
|
|
10
10
|
var reactSlot = require('@radix-ui/react-slot');
|
|
11
11
|
|
|
12
12
|
function _interopNamespace(e) {
|
|
@@ -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,
|
|
@@ -2996,7 +2997,6 @@ exports.MD3ThemeProvider = MD3ThemeProvider;
|
|
|
2996
2997
|
exports.MaterialSymbolsPreconnect = MaterialSymbolsPreconnect;
|
|
2997
2998
|
exports.Ripple = Ripple;
|
|
2998
2999
|
exports.applyTheme = applyTheme;
|
|
2999
|
-
exports.cn = cn;
|
|
3000
3000
|
exports.generateM3Theme = generateM3Theme;
|
|
3001
3001
|
exports.resolveMode = resolveMode;
|
|
3002
3002
|
exports.useDOMRipple = useRipple;
|