@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
package/dist/navigation.mjs
CHANGED
|
@@ -52,7 +52,7 @@ function getMaskGradient(direction) {
|
|
|
52
52
|
case "bottom":
|
|
53
53
|
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%)";
|
|
54
54
|
case "both":
|
|
55
|
-
return "linear-gradient(to bottom, rgba(0, 0, 0,
|
|
55
|
+
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%)";
|
|
56
56
|
default:
|
|
57
57
|
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%)";
|
|
58
58
|
}
|
|
@@ -69,11 +69,16 @@ function FadingBlurMask({
|
|
|
69
69
|
const shouldReduceMotion = useReducedMotion();
|
|
70
70
|
const activeBlur = shouldReduceMotion ? 0 : blurIntensity;
|
|
71
71
|
const maskGradient = getMaskGradient(direction);
|
|
72
|
+
const isFullHeight = direction === "both" || blurHeight === "100%";
|
|
73
|
+
const computedHeight = isFullHeight ? "100%" : typeof blurHeight === "number" ? `${blurHeight}px` : blurHeight;
|
|
72
74
|
const maskStyle = __spreadValues({
|
|
73
75
|
position: "absolute",
|
|
74
|
-
|
|
76
|
+
top: direction === "bottom" && !isFullHeight ? "auto" : 0,
|
|
77
|
+
bottom: direction === "top" && !isFullHeight ? "auto" : 0,
|
|
78
|
+
left: 0,
|
|
79
|
+
right: 0,
|
|
75
80
|
pointerEvents: "none",
|
|
76
|
-
height:
|
|
81
|
+
height: computedHeight,
|
|
77
82
|
backdropFilter: activeBlur > 0 ? `blur(${activeBlur}px)` : void 0,
|
|
78
83
|
WebkitBackdropFilter: activeBlur > 0 ? `blur(${activeBlur}px)` : void 0,
|
|
79
84
|
maskImage: maskGradient,
|
|
@@ -85,7 +90,7 @@ function FadingBlurMask({
|
|
|
85
90
|
{
|
|
86
91
|
"aria-hidden": "true",
|
|
87
92
|
className: cn(
|
|
88
|
-
"absolute
|
|
93
|
+
"absolute pointer-events-none z-10 rounded-[inherit]",
|
|
89
94
|
className
|
|
90
95
|
),
|
|
91
96
|
style: maskStyle,
|
|
@@ -1133,7 +1138,7 @@ var IconComponent = React39.forwardRef(
|
|
|
1133
1138
|
(_a, ref) => {
|
|
1134
1139
|
var _b = _a, {
|
|
1135
1140
|
name,
|
|
1136
|
-
variant = "
|
|
1141
|
+
variant = "rounded",
|
|
1137
1142
|
fill = 0,
|
|
1138
1143
|
weight = 400,
|
|
1139
1144
|
grade = 0,
|
|
@@ -5947,6 +5952,7 @@ var NavigationRailComponent = React39.forwardRef(
|
|
|
5947
5952
|
m.div,
|
|
5948
5953
|
{
|
|
5949
5954
|
layout: true,
|
|
5955
|
+
transition: SPRING_TRANSITION,
|
|
5950
5956
|
className: cn(
|
|
5951
5957
|
"flex w-full flex-col justify-start shrink-0 empty:hidden",
|
|
5952
5958
|
isExpanded ? "items-start px-3" : "items-center",
|
|
@@ -6281,6 +6287,7 @@ function SearchBar({
|
|
|
6281
6287
|
onSearch,
|
|
6282
6288
|
active,
|
|
6283
6289
|
onActiveChange,
|
|
6290
|
+
showLeadingIcon = true,
|
|
6284
6291
|
leadingIcon,
|
|
6285
6292
|
trailingIcon,
|
|
6286
6293
|
avatar,
|
|
@@ -6343,7 +6350,7 @@ function SearchBar({
|
|
|
6343
6350
|
layoutId: shouldReduceMotion ? void 0 : searchId,
|
|
6344
6351
|
transition: shouldReduceMotion ? void 0 : SEARCH_BAR_EXPAND_SPRING,
|
|
6345
6352
|
className: cn(
|
|
6346
|
-
"relative group select-none",
|
|
6353
|
+
"relative group select-none rounded-full",
|
|
6347
6354
|
SEARCH_ELEVATION.level3,
|
|
6348
6355
|
className
|
|
6349
6356
|
),
|
|
@@ -6383,7 +6390,7 @@ function SearchBar({
|
|
|
6383
6390
|
"aria-label": ariaLabel,
|
|
6384
6391
|
className: "relative flex h-full items-center gap-2 rounded-full px-4",
|
|
6385
6392
|
children: /* @__PURE__ */ jsxs("form", { className: "contents", onSubmit: handleFormSubmit, children: [
|
|
6386
|
-
/* @__PURE__ */ jsx(
|
|
6393
|
+
showLeadingIcon && /* @__PURE__ */ jsx(
|
|
6387
6394
|
"span",
|
|
6388
6395
|
{
|
|
6389
6396
|
className: "flex shrink-0 items-center justify-center",
|
|
@@ -8145,6 +8152,7 @@ function SearchViewDocked({
|
|
|
8145
8152
|
onSearch,
|
|
8146
8153
|
active,
|
|
8147
8154
|
onActiveChange,
|
|
8155
|
+
showLeadingIcon = true,
|
|
8148
8156
|
leadingIcon,
|
|
8149
8157
|
trailingIcon,
|
|
8150
8158
|
avatar,
|
|
@@ -8201,7 +8209,7 @@ function SearchViewDocked({
|
|
|
8201
8209
|
className: "flex items-center gap-2 px-4",
|
|
8202
8210
|
style: { height: SearchTokens.heights.dockedHeader },
|
|
8203
8211
|
children: /* @__PURE__ */ jsxs("form", { className: "contents", onSubmit: handleFormSubmit, children: [
|
|
8204
|
-
/* @__PURE__ */ jsx(
|
|
8212
|
+
showLeadingIcon && /* @__PURE__ */ jsx(
|
|
8205
8213
|
"span",
|
|
8206
8214
|
{
|
|
8207
8215
|
className: "flex shrink-0 items-center justify-center",
|
|
@@ -8296,6 +8304,7 @@ function SearchViewFullScreen({
|
|
|
8296
8304
|
onSearch,
|
|
8297
8305
|
active,
|
|
8298
8306
|
onActiveChange,
|
|
8307
|
+
showCloseButton = true,
|
|
8299
8308
|
leadingIcon,
|
|
8300
8309
|
trailingIcon,
|
|
8301
8310
|
avatar,
|
|
@@ -8362,7 +8371,7 @@ function SearchViewFullScreen({
|
|
|
8362
8371
|
className: "flex shrink-0 items-center gap-2 px-4",
|
|
8363
8372
|
style: { height: SearchTokens.heights.fullScreenHeader },
|
|
8364
8373
|
children: /* @__PURE__ */ jsxs("form", { className: "contents", onSubmit: handleFormSubmit, children: [
|
|
8365
|
-
/* @__PURE__ */ jsx(
|
|
8374
|
+
showCloseButton && /* @__PURE__ */ jsx(
|
|
8366
8375
|
IconButton,
|
|
8367
8376
|
{
|
|
8368
8377
|
size: "sm",
|
|
@@ -8463,6 +8472,8 @@ function SearchComponent({
|
|
|
8463
8472
|
variant = "docked",
|
|
8464
8473
|
styleType = "contained",
|
|
8465
8474
|
hasGap = false,
|
|
8475
|
+
showLeadingIcon = true,
|
|
8476
|
+
showCloseButton = true,
|
|
8466
8477
|
leadingIcon,
|
|
8467
8478
|
trailingIcon,
|
|
8468
8479
|
avatar,
|
|
@@ -8491,6 +8502,7 @@ function SearchComponent({
|
|
|
8491
8502
|
onSearch,
|
|
8492
8503
|
active,
|
|
8493
8504
|
onActiveChange,
|
|
8505
|
+
showLeadingIcon,
|
|
8494
8506
|
leadingIcon,
|
|
8495
8507
|
trailingIcon,
|
|
8496
8508
|
avatar,
|
|
@@ -8507,6 +8519,7 @@ function SearchComponent({
|
|
|
8507
8519
|
variant === "fullscreen" ? /* @__PURE__ */ jsx(
|
|
8508
8520
|
SearchViewFullScreen,
|
|
8509
8521
|
__spreadProps(__spreadValues({}, sharedProps), {
|
|
8522
|
+
showCloseButton,
|
|
8510
8523
|
styleType,
|
|
8511
8524
|
viewClassName,
|
|
8512
8525
|
children
|