@bug-on/m3-expressive 1.3.4 → 1.3.6
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 +19 -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.d.mts +2 -2
- package/dist/forms.d.ts +2 -2
- package/dist/forms.js +17 -7
- package/dist/forms.js.map +1 -1
- package/dist/forms.mjs +17 -7
- package/dist/forms.mjs.map +1 -1
- package/dist/index.d.mts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +988 -309
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +984 -310
- 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/{md3-expressive-shapes-CPcfl_Hf.d.mts → md3-expressive-shapes-wk_98LJh.d.mts} +20 -1
- package/dist/{md3-expressive-shapes-CPcfl_Hf.d.ts → md3-expressive-shapes-wk_98LJh.d.ts} +20 -1
- package/dist/navigation.d.mts +26 -84
- package/dist/navigation.d.ts +26 -84
- package/dist/navigation.js +95 -29
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs +95 -29
- package/dist/navigation.mjs.map +1 -1
- package/dist/overlays.d.mts +4 -2
- package/dist/overlays.d.ts +4 -2
- package/dist/overlays.js +85 -44
- package/dist/overlays.js.map +1 -1
- package/dist/overlays.mjs +85 -44
- 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 +186 -120
- package/dist/pickers.js.map +1 -1
- package/dist/pickers.mjs +186 -120
- package/dist/pickers.mjs.map +1 -1
- package/dist/shapes.d.mts +141 -15
- package/dist/shapes.d.ts +141 -15
- package/dist/shapes.js +618 -126
- package/dist/shapes.js.map +1 -1
- package/dist/shapes.mjs +614 -127
- package/dist/shapes.mjs.map +1 -1
- package/dist/{side-sheet-modal-64FGhDxL.d.mts → side-sheet-modal-BycxrabB.d.mts} +70 -0
- package/dist/{side-sheet-modal-Bd5Qqvp9.d.ts → side-sheet-modal-Cw4vemKx.d.ts} +70 -0
- package/dist/{text-field-4OlT9o8s.d.mts → text-field-B1fLh5Sh.d.mts} +22 -3
- package/dist/{text-field-DARNdj14.d.ts → text-field-C0VQLp8Y.d.ts} +22 -3
- 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 +24 -13
- package/llms.txt +11 -6
- package/package.json +3 -3
package/dist/layout.mjs
CHANGED
|
@@ -3298,7 +3298,7 @@ var IconComponent = React23.forwardRef(
|
|
|
3298
3298
|
(_a, ref) => {
|
|
3299
3299
|
var _b = _a, {
|
|
3300
3300
|
name,
|
|
3301
|
-
variant = "
|
|
3301
|
+
variant = "rounded",
|
|
3302
3302
|
fill = 0,
|
|
3303
3303
|
weight = 400,
|
|
3304
3304
|
grade = 0,
|
|
@@ -3652,13 +3652,16 @@ function CodeBlock({
|
|
|
3652
3652
|
}
|
|
3653
3653
|
function buildWavePath(startX, endX, amplitude = 2, wavelength = 32, yCenter = 4) {
|
|
3654
3654
|
if (startX >= endX) return "";
|
|
3655
|
+
const totalWidth = endX - startX;
|
|
3655
3656
|
const halfCycle = wavelength / 2;
|
|
3656
|
-
const numHalfCycles = Math.
|
|
3657
|
-
const
|
|
3657
|
+
const numHalfCycles = Math.max(1, Math.round(totalWidth / halfCycle));
|
|
3658
|
+
const actualHalfCycle = totalWidth / numHalfCycles;
|
|
3659
|
+
const scale = Math.min(1, actualHalfCycle / halfCycle);
|
|
3660
|
+
const cpDistanceY = amplitude * (4 / 3) * scale;
|
|
3658
3661
|
let d = `M ${startX},${yCenter}`;
|
|
3659
3662
|
for (let i = 0; i < numHalfCycles; i++) {
|
|
3660
|
-
const x0 = startX + i *
|
|
3661
|
-
const x1 =
|
|
3663
|
+
const x0 = startX + i * actualHalfCycle;
|
|
3664
|
+
const x1 = i === numHalfCycles - 1 ? endX : startX + (i + 1) * actualHalfCycle;
|
|
3662
3665
|
const peak = i % 2 === 0 ? yCenter - cpDistanceY : yCenter + cpDistanceY;
|
|
3663
3666
|
const segLen = x1 - x0;
|
|
3664
3667
|
const cp1x = x0 + segLen / 3;
|
|
@@ -5579,7 +5582,7 @@ var ListItemImpl = React23.forwardRef(
|
|
|
5579
5582
|
"cursor-grab active:cursor-grabbing text-m3-on-surface-variant p-2 -mr-2"
|
|
5580
5583
|
)
|
|
5581
5584
|
}, attributes), listeners), {
|
|
5582
|
-
children: /* @__PURE__ */ jsx("span", { className: "material-symbols-
|
|
5585
|
+
children: /* @__PURE__ */ jsx("span", { className: "material-symbols-rounded text-[24px]", children: "drag_handle" })
|
|
5583
5586
|
})
|
|
5584
5587
|
);
|
|
5585
5588
|
}
|
|
@@ -5811,6 +5814,57 @@ var ListItemImpl = React23.forwardRef(
|
|
|
5811
5814
|
);
|
|
5812
5815
|
ListItemImpl.displayName = "ListItem";
|
|
5813
5816
|
var ListItem = React23.memo(ListItemImpl);
|
|
5817
|
+
function getMaskGradient(direction) {
|
|
5818
|
+
switch (direction) {
|
|
5819
|
+
case "bottom":
|
|
5820
|
+
return "linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0.7) 75%, rgba(0, 0, 0, 0) 100%)";
|
|
5821
|
+
case "both":
|
|
5822
|
+
return "linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 15%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.7) 85%, rgba(0, 0, 0, 1) 100%)";
|
|
5823
|
+
default:
|
|
5824
|
+
return "linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0.7) 75%, rgba(0, 0, 0, 0) 100%)";
|
|
5825
|
+
}
|
|
5826
|
+
}
|
|
5827
|
+
function FadingBlurMask({
|
|
5828
|
+
direction = "top",
|
|
5829
|
+
blurIntensity = 12,
|
|
5830
|
+
blurHeight = "100%",
|
|
5831
|
+
color = "var(--md-sys-color-surface)",
|
|
5832
|
+
className,
|
|
5833
|
+
style,
|
|
5834
|
+
children
|
|
5835
|
+
}) {
|
|
5836
|
+
const shouldReduceMotion = useReducedMotion();
|
|
5837
|
+
const activeBlur = shouldReduceMotion ? 0 : blurIntensity;
|
|
5838
|
+
const maskGradient = getMaskGradient(direction);
|
|
5839
|
+
const isFullHeight = direction === "both" || blurHeight === "100%";
|
|
5840
|
+
const computedHeight = isFullHeight ? "100%" : typeof blurHeight === "number" ? `${blurHeight}px` : blurHeight;
|
|
5841
|
+
const maskStyle = __spreadValues({
|
|
5842
|
+
position: "absolute",
|
|
5843
|
+
top: direction === "bottom" && !isFullHeight ? "auto" : 0,
|
|
5844
|
+
bottom: direction === "top" && !isFullHeight ? "auto" : 0,
|
|
5845
|
+
left: 0,
|
|
5846
|
+
right: 0,
|
|
5847
|
+
pointerEvents: "none",
|
|
5848
|
+
height: computedHeight,
|
|
5849
|
+
backdropFilter: activeBlur > 0 ? `blur(${activeBlur}px)` : void 0,
|
|
5850
|
+
WebkitBackdropFilter: activeBlur > 0 ? `blur(${activeBlur}px)` : void 0,
|
|
5851
|
+
maskImage: maskGradient,
|
|
5852
|
+
WebkitMaskImage: maskGradient,
|
|
5853
|
+
backgroundColor: color
|
|
5854
|
+
}, style);
|
|
5855
|
+
return /* @__PURE__ */ jsx(
|
|
5856
|
+
"div",
|
|
5857
|
+
{
|
|
5858
|
+
"aria-hidden": "true",
|
|
5859
|
+
className: cn(
|
|
5860
|
+
"absolute pointer-events-none z-10 rounded-[inherit]",
|
|
5861
|
+
className
|
|
5862
|
+
),
|
|
5863
|
+
style: maskStyle,
|
|
5864
|
+
children
|
|
5865
|
+
}
|
|
5866
|
+
);
|
|
5867
|
+
}
|
|
5814
5868
|
var typographyVariants = cva("m-0 p-0 text-m3-on-surface", {
|
|
5815
5869
|
variants: {
|
|
5816
5870
|
variant: {
|
|
@@ -6678,6 +6732,6 @@ function TypographyProvider({
|
|
|
6678
6732
|
return /* @__PURE__ */ jsx(TypographyContext.Provider, { value, children });
|
|
6679
6733
|
}
|
|
6680
6734
|
|
|
6681
|
-
export { Card, CardContent, CardFooter, CardHeader, CardMedia, Carousel, CarouselGrid, CarouselItem, CarouselScrollClient, CarouselTokens, CodeBlock, DEFAULT_FONT_VARIATION_AXES, Divider, LIST_TOKENS, List, ListContext, ListDivider, ListItem, MD3_EXPRESSIVE_FONT_VARIATION, SHADOW, ScrollArea, ScrollAreaScrollbar, TableOfContents, Text, TypeScaleTokens, Typography, TypographyContext, TypographyKeyTokens, TypographyProvider, TypographyTokens, VARIANT_ELEVATION, buildWavePath, cardVariants, getExpressiveShape, getListItemHeight, resolveElevationShadow, serializeFontVariationAxes, shouldTopAlign, typographyVariants, useCardElevation, useCarouselA11y, useCarouselKeylines, useListContext, useTypography };
|
|
6735
|
+
export { Card, CardContent, CardFooter, CardHeader, CardMedia, Carousel, CarouselGrid, CarouselItem, CarouselScrollClient, CarouselTokens, CodeBlock, DEFAULT_FONT_VARIATION_AXES, Divider, FadingBlurMask, LIST_TOKENS, List, ListContext, ListDivider, ListItem, MD3_EXPRESSIVE_FONT_VARIATION, SHADOW, ScrollArea, ScrollAreaScrollbar, TableOfContents, Text, TypeScaleTokens, Typography, TypographyContext, TypographyKeyTokens, TypographyProvider, TypographyTokens, VARIANT_ELEVATION, buildWavePath, cardVariants, getExpressiveShape, getListItemHeight, resolveElevationShadow, serializeFontVariationAxes, shouldTopAlign, typographyVariants, useCardElevation, useCarouselA11y, useCarouselKeylines, useListContext, useTypography };
|
|
6682
6736
|
//# sourceMappingURL=layout.mjs.map
|
|
6683
6737
|
//# sourceMappingURL=layout.mjs.map
|