@bug-on/m3-expressive 1.3.3 → 1.3.4
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 +8 -0
- package/dist/{core-DyEy8H9Z.d.ts → core-COvZHQ_k.d.ts} +1 -4
- package/dist/{core-D8FdHY6I.d.mts → core-CRkixy1y.d.mts} +1 -4
- package/dist/core.d.mts +1 -2
- package/dist/core.d.ts +1 -2
- package/dist/core.js +1 -2
- package/dist/core.mjs +2 -2
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @bug-on/m3-expressive
|
|
2
2
|
|
|
3
|
+
## 1.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2190cac: Remove `cn` utility from public exports (`.` and `./core`).
|
|
8
|
+
|
|
9
|
+
`cn` is an internal helper for component implementation and is not part of the Material Design 3 Expressive public API. If you need `cn` in your application, please install `clsx` and `tailwind-merge` directly in your project.
|
|
10
|
+
|
|
3
11
|
## 1.3.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,7 +1,6 @@
|
|
|
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
5
|
import { a as Typography, F as FontVariationAxes } from './typography-339RV6v7.js';
|
|
7
6
|
|
|
@@ -212,8 +211,6 @@ interface MaterialSymbolsPreconnectProps {
|
|
|
212
211
|
}
|
|
213
212
|
declare function MaterialSymbolsPreconnect({ variants, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
214
213
|
|
|
215
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
216
|
-
|
|
217
214
|
/**
|
|
218
215
|
* Props cho component {@link Icon}.
|
|
219
216
|
*
|
|
@@ -494,4 +491,4 @@ declare function MD3ThemeProvider({ children, sourceColor: initialSourceColor, d
|
|
|
494
491
|
declare function useTheme(): ThemeContextValue;
|
|
495
492
|
declare function useThemeMode(): Pick<ThemeContextValue, "mode" | "setMode" | "effectiveMode">;
|
|
496
493
|
|
|
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,
|
|
494
|
+
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,7 +1,6 @@
|
|
|
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
5
|
import { a as Typography, F as FontVariationAxes } from './typography-339RV6v7.mjs';
|
|
7
6
|
|
|
@@ -212,8 +211,6 @@ interface MaterialSymbolsPreconnectProps {
|
|
|
212
211
|
}
|
|
213
212
|
declare function MaterialSymbolsPreconnect({ variants, }: MaterialSymbolsPreconnectProps): react_jsx_runtime.JSX.Element;
|
|
214
213
|
|
|
215
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
216
|
-
|
|
217
214
|
/**
|
|
218
215
|
* Props cho component {@link Icon}.
|
|
219
216
|
*
|
|
@@ -494,4 +491,4 @@ declare function MD3ThemeProvider({ children, sourceColor: initialSourceColor, d
|
|
|
494
491
|
declare function useTheme(): ThemeContextValue;
|
|
495
492
|
declare function useThemeMode(): Pick<ThemeContextValue, "mode" | "setMode" | "effectiveMode">;
|
|
496
493
|
|
|
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,
|
|
494
|
+
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-CRkixy1y.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 'clsx';
|
|
6
5
|
import './typography-339RV6v7.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-COvZHQ_k.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 'clsx';
|
|
6
5
|
import './typography-339RV6v7.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) {
|
|
@@ -2996,7 +2996,6 @@ exports.MD3ThemeProvider = MD3ThemeProvider;
|
|
|
2996
2996
|
exports.MaterialSymbolsPreconnect = MaterialSymbolsPreconnect;
|
|
2997
2997
|
exports.Ripple = Ripple;
|
|
2998
2998
|
exports.applyTheme = applyTheme;
|
|
2999
|
-
exports.cn = cn;
|
|
3000
2999
|
exports.generateM3Theme = generateM3Theme;
|
|
3001
3000
|
exports.resolveMode = resolveMode;
|
|
3002
3001
|
exports.useDOMRipple = useRipple;
|
package/dist/core.mjs
CHANGED
|
@@ -3,9 +3,9 @@ import * as React4 from 'react';
|
|
|
3
3
|
import { createContext, useState, useEffect, useRef, useCallback, useMemo, useContext } from 'react';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { hexFromArgb, Hct, SchemeExpressive, SchemeNeutral, SchemeMonochrome, SchemeContent, SchemeFidelity, SchemeVibrant, SchemeTonalSpot } from '@material/material-color-utilities';
|
|
6
|
+
import { LazyMotion, domMax, m, useMotionValue, animate, useAnimationFrame, AnimatePresence, useReducedMotion } from 'motion/react';
|
|
6
7
|
import { clsx } from 'clsx';
|
|
7
8
|
import { twMerge } from 'tailwind-merge';
|
|
8
|
-
import { LazyMotion, domMax, m, useMotionValue, animate, useAnimationFrame, AnimatePresence, useReducedMotion } from 'motion/react';
|
|
9
9
|
import { Slot } from '@radix-ui/react-slot';
|
|
10
10
|
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
@@ -2970,6 +2970,6 @@ function useThemeMode() {
|
|
|
2970
2970
|
return { mode, setMode, effectiveMode };
|
|
2971
2971
|
}
|
|
2972
2972
|
|
|
2973
|
-
export { Icon, MD3ThemeProvider, MaterialSymbolsPreconnect, Ripple, applyTheme,
|
|
2973
|
+
export { Icon, MD3ThemeProvider, MaterialSymbolsPreconnect, Ripple, applyTheme, generateM3Theme, resolveMode, useRipple as useDOMRipple, useMediaQuery, useRipple2 as useRipple, useRippleState, useTheme, useThemeMode };
|
|
2974
2974
|
//# sourceMappingURL=core.mjs.map
|
|
2975
2975
|
//# sourceMappingURL=core.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SchemeVariant, C as ContrastLevel, M as MD3ColorScheme } from './core-
|
|
2
|
-
export { G as GenerateM3ThemeOptions, I as Icon, a as IconProps, 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
|
+
import { S as SchemeVariant, C as ContrastLevel, M as MD3ColorScheme } from './core-CRkixy1y.mjs';
|
|
2
|
+
export { G as GenerateM3ThemeOptions, I as Icon, a as IconProps, 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-CRkixy1y.mjs';
|
|
3
3
|
export { A as ANGLE_EPSILON, C as CornerFeature, a as CornerRounding, b as Cubic, D as DISTANCE_EPSILON, E as EdgeFeature, F as FLOAT_PI, c as Feature, M as MD3ShapeName, d as MD3Shapes, e as MutableCubic, P as Point, f as PointTransformer, R as RoundedPolygon, U as UNROUNDED, g as addPoints, h as clockwise, i as convex, j as cornerFeature, k as cornerRounding, l as directionVector, m as distance, n as distanceSquared, o as dividePoint, p as dotProduct, q as edgeFeature, r as getDirection, s as getDistance, t as getDistanceSquared, u as interpolate, v as lerpPoint, w as point, x as positiveModulo, y as radialToCartesian, z as rotate90, B as scalePoint, G as square, H as subtractPoints, I as transformFeature, J as transformPoint } from './md3-expressive-shapes-CPcfl_Hf.mjs';
|
|
4
4
|
export { CubicPair, DoubleMapper, MD3CornerRadius, MD3CornerRadiusToken, MeasuredCubic, MeasuredFeature, MeasuredPolygon, Morph, MorphTrigger, ShapeIcon, ShapeIconProps, ShapeMedia, ShapeMediaProps, ShapeMediaServer, ShapeMorphOptions, ShapeRef, ShapeSvg, ShapeSvgProps, UseShapeMorphResult, circle, createDoubleMapper, featureMapper, interpolatePath, pill, pillStar, rectangle, star, toClipPath, toSvgPath, useShapeMorph } from './shapes.mjs';
|
|
5
5
|
export { M as MD3ColorStyle, a as MD3Shape, b as MD3Size, P as PolymorphicProps, c as PolymorphicRef } from './md3-BQhRygSi.mjs';
|
|
@@ -16,7 +16,6 @@ export { S as ScrollArea, a as ScrollAreaOrientation, b as ScrollAreaProps, c as
|
|
|
16
16
|
export { M as MD3_EXPRESSIVE_FONT_VARIATION, T as TextStyle, a as Typography, b as TypographyContext, c as TypographyKeyTokens, d as TypographyProvider, e as TypographyProviderProps, f as TypographyTokens, u as useTypography } from './typography-339RV6v7.mjs';
|
|
17
17
|
import 'react';
|
|
18
18
|
import 'react/jsx-runtime';
|
|
19
|
-
import 'clsx';
|
|
20
19
|
import 'motion';
|
|
21
20
|
import '@radix-ui/react-context-menu';
|
|
22
21
|
import '@radix-ui/react-dropdown-menu';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SchemeVariant, C as ContrastLevel, M as MD3ColorScheme } from './core-
|
|
2
|
-
export { G as GenerateM3ThemeOptions, I as Icon, a as IconProps, 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
|
+
import { S as SchemeVariant, C as ContrastLevel, M as MD3ColorScheme } from './core-COvZHQ_k.js';
|
|
2
|
+
export { G as GenerateM3ThemeOptions, I as Icon, a as IconProps, 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-COvZHQ_k.js';
|
|
3
3
|
export { A as ANGLE_EPSILON, C as CornerFeature, a as CornerRounding, b as Cubic, D as DISTANCE_EPSILON, E as EdgeFeature, F as FLOAT_PI, c as Feature, M as MD3ShapeName, d as MD3Shapes, e as MutableCubic, P as Point, f as PointTransformer, R as RoundedPolygon, U as UNROUNDED, g as addPoints, h as clockwise, i as convex, j as cornerFeature, k as cornerRounding, l as directionVector, m as distance, n as distanceSquared, o as dividePoint, p as dotProduct, q as edgeFeature, r as getDirection, s as getDistance, t as getDistanceSquared, u as interpolate, v as lerpPoint, w as point, x as positiveModulo, y as radialToCartesian, z as rotate90, B as scalePoint, G as square, H as subtractPoints, I as transformFeature, J as transformPoint } from './md3-expressive-shapes-CPcfl_Hf.js';
|
|
4
4
|
export { CubicPair, DoubleMapper, MD3CornerRadius, MD3CornerRadiusToken, MeasuredCubic, MeasuredFeature, MeasuredPolygon, Morph, MorphTrigger, ShapeIcon, ShapeIconProps, ShapeMedia, ShapeMediaProps, ShapeMediaServer, ShapeMorphOptions, ShapeRef, ShapeSvg, ShapeSvgProps, UseShapeMorphResult, circle, createDoubleMapper, featureMapper, interpolatePath, pill, pillStar, rectangle, star, toClipPath, toSvgPath, useShapeMorph } from './shapes.js';
|
|
5
5
|
export { M as MD3ColorStyle, a as MD3Shape, b as MD3Size, P as PolymorphicProps, c as PolymorphicRef } from './md3-BQhRygSi.js';
|
|
@@ -16,7 +16,6 @@ export { S as ScrollArea, a as ScrollAreaOrientation, b as ScrollAreaProps, c as
|
|
|
16
16
|
export { M as MD3_EXPRESSIVE_FONT_VARIATION, T as TextStyle, a as Typography, b as TypographyContext, c as TypographyKeyTokens, d as TypographyProvider, e as TypographyProviderProps, f as TypographyTokens, u as useTypography } from './typography-339RV6v7.js';
|
|
17
17
|
import 'react';
|
|
18
18
|
import 'react/jsx-runtime';
|
|
19
|
-
import 'clsx';
|
|
20
19
|
import 'motion';
|
|
21
20
|
import '@radix-ui/react-context-menu';
|
|
22
21
|
import '@radix-ui/react-dropdown-menu';
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
var React67 = require('react');
|
|
5
5
|
var materialColorUtilities = require('@material/material-color-utilities');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
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 RxContextMenu = require('@radix-ui/react-context-menu');
|
|
11
11
|
var RadixScrollArea = require('@radix-ui/react-scroll-area');
|
|
12
12
|
var m3Tokens = require('@bug-on/m3-tokens');
|
|
@@ -319,9 +319,6 @@ function MaterialSymbolsPreconnect({
|
|
|
319
319
|
)
|
|
320
320
|
] });
|
|
321
321
|
}
|
|
322
|
-
function cn(...inputs) {
|
|
323
|
-
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
324
|
-
}
|
|
325
322
|
|
|
326
323
|
// src/shapes/core/features.ts
|
|
327
324
|
function cornerFeature(cubics, convex2) {
|
|
@@ -2855,6 +2852,9 @@ function interpolatePath(morph, progress, width, height) {
|
|
|
2855
2852
|
function fmt(v) {
|
|
2856
2853
|
return Number(v.toFixed(4)).toString();
|
|
2857
2854
|
}
|
|
2855
|
+
function cn(...inputs) {
|
|
2856
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
2857
|
+
}
|
|
2858
2858
|
function getMaskGradient(direction) {
|
|
2859
2859
|
switch (direction) {
|
|
2860
2860
|
case "bottom":
|
|
@@ -27532,7 +27532,6 @@ exports.buildWavePath = buildWavePath;
|
|
|
27532
27532
|
exports.cardVariants = cardVariants;
|
|
27533
27533
|
exports.circle = circle;
|
|
27534
27534
|
exports.clockwise = clockwise;
|
|
27535
|
-
exports.cn = cn;
|
|
27536
27535
|
exports.convex = convex;
|
|
27537
27536
|
exports.cornerFeature = cornerFeature;
|
|
27538
27537
|
exports.cornerRounding = cornerRounding;
|