@bug-on/m3-expressive 1.3.5 → 1.3.7
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 +12 -0
- package/dist/buttons.d.mts +3 -3
- package/dist/buttons.d.ts +3 -3
- package/dist/buttons.js +110 -91
- package/dist/buttons.js.map +1 -1
- package/dist/buttons.mjs +110 -91
- package/dist/buttons.mjs.map +1 -1
- package/dist/{core-Cckt8qEm.d.ts → core-DamhB5Yd.d.ts} +1 -1
- package/dist/{core-DDfG4pym.d.mts → core-Wsfqn9_N.d.mts} +1 -1
- package/dist/core.d.mts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +1 -1
- package/dist/core.mjs.map +1 -1
- package/dist/{fading-blur-mask--uZbBKLj.d.ts → fading-blur-mask-CX-bwjNU.d.mts} +6 -1
- package/dist/{fading-blur-mask--uZbBKLj.d.mts → fading-blur-mask-D57UMguz.d.ts} +6 -1
- package/dist/feedback.d.mts +17 -5
- package/dist/feedback.d.ts +17 -5
- 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 +3 -3
- package/dist/forms.d.ts +3 -3
- package/dist/forms.js +16 -6
- package/dist/forms.js.map +1 -1
- package/dist/forms.mjs +16 -6
- package/dist/forms.mjs.map +1 -1
- package/dist/{icon-button-CxyJv7UV.d.mts → icon-button-BpX9_fwZ.d.mts} +1 -1
- package/dist/{icon-button-Di8VX6ou.d.ts → icon-button-DFXp9hze.d.ts} +1 -1
- package/dist/index.d.mts +11 -10
- package/dist/index.d.ts +11 -10
- package/dist/index.js +1790 -1133
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1640 -988
- package/dist/index.mjs.map +1 -1
- package/dist/layout.d.mts +92 -23
- package/dist/layout.d.ts +92 -23
- package/dist/layout.js +118 -13
- package/dist/layout.js.map +1 -1
- package/dist/layout.mjs +118 -15
- package/dist/layout.mjs.map +1 -1
- 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/md3-xBl4wgND.d.mts +44 -0
- package/dist/md3-xBl4wgND.d.ts +44 -0
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.js +74 -21
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs +74 -21
- 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.js +89 -56
- package/dist/pickers.js.map +1 -1
- package/dist/pickers.mjs +89 -56
- package/dist/pickers.mjs.map +1 -1
- package/dist/shapes.d.mts +150 -17
- package/dist/shapes.d.ts +150 -17
- 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-Bd5Qqvp9.d.ts → side-sheet-modal-BfdgYjd3.d.ts} +70 -0
- package/dist/{side-sheet-modal-64FGhDxL.d.mts → side-sheet-modal-kLfHINFZ.d.mts} +70 -0
- package/dist/{split-button-trailing-uncheckable-CGzk7KcG.d.ts → split-button-trailing-uncheckable-BpyIlOdn.d.ts} +7 -3
- package/dist/{split-button-trailing-uncheckable-gAz6OAIi.d.mts → split-button-trailing-uncheckable-CpT8iPpr.d.mts} +7 -3
- package/dist/{text-field-DARNdj14.d.ts → text-field-Ct-LT_2T.d.ts} +23 -4
- package/dist/{text-field-4OlT9o8s.d.mts → text-field-D5xiGn-q.d.mts} +23 -4
- package/llms-full.txt +25 -3
- package/llms.txt +4 -1
- package/package.json +1 -1
- package/dist/md3-BQhRygSi.d.mts +0 -31
- package/dist/md3-BQhRygSi.d.ts +0 -31
package/dist/overlays.mjs
CHANGED
|
@@ -1456,7 +1456,7 @@ var WIDTH_SIZE_STYLES = {
|
|
|
1456
1456
|
},
|
|
1457
1457
|
sm: {
|
|
1458
1458
|
default: "w-10",
|
|
1459
|
-
narrow: "w-
|
|
1459
|
+
narrow: "w-10",
|
|
1460
1460
|
wide: "w-[3.25rem]"
|
|
1461
1461
|
},
|
|
1462
1462
|
md: {
|
|
@@ -2008,45 +2008,64 @@ var DialogOverlay = React2.forwardRef((_a, ref) => {
|
|
|
2008
2008
|
) }));
|
|
2009
2009
|
});
|
|
2010
2010
|
DialogOverlay.displayName = "DialogOverlay";
|
|
2011
|
-
var
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
)
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2011
|
+
var DEFAULT_CLOSE_BTN_PROPS = {
|
|
2012
|
+
size: "sm",
|
|
2013
|
+
colorStyle: "standard",
|
|
2014
|
+
className: "absolute right-4 top-4",
|
|
2015
|
+
"aria-label": "Close"
|
|
2016
|
+
};
|
|
2017
|
+
var DialogContent = React2.forwardRef(
|
|
2018
|
+
(_a, ref) => {
|
|
2019
|
+
var _b = _a, {
|
|
2020
|
+
className,
|
|
2021
|
+
children,
|
|
2022
|
+
hideCloseButton = false,
|
|
2023
|
+
closeButtonProps,
|
|
2024
|
+
closeButton
|
|
2025
|
+
} = _b, props = __objRest(_b, [
|
|
2026
|
+
"className",
|
|
2027
|
+
"children",
|
|
2028
|
+
"hideCloseButton",
|
|
2029
|
+
"closeButtonProps",
|
|
2030
|
+
"closeButton"
|
|
2031
|
+
]);
|
|
2032
|
+
const closeAriaLabel = (() => {
|
|
2033
|
+
var _a2, _b2, _c;
|
|
2034
|
+
if (closeButton == null) {
|
|
2035
|
+
return (_a2 = closeButtonProps == null ? void 0 : closeButtonProps["aria-label"]) != null ? _a2 : DEFAULT_CLOSE_BTN_PROPS["aria-label"];
|
|
2036
|
+
}
|
|
2037
|
+
const el = closeButton;
|
|
2038
|
+
return (_c = (_b2 = el == null ? void 0 : el.props) == null ? void 0 : _b2["aria-label"]) != null ? _c : "Close";
|
|
2039
|
+
})();
|
|
2040
|
+
return /* @__PURE__ */ jsx(
|
|
2041
|
+
RadixDialog.Content,
|
|
2042
|
+
__spreadProps(__spreadValues({
|
|
2043
|
+
ref,
|
|
2044
|
+
asChild: true,
|
|
2045
|
+
"aria-describedby": void 0
|
|
2046
|
+
}, props), {
|
|
2047
|
+
children: /* @__PURE__ */ jsxs(
|
|
2048
|
+
m.div,
|
|
2049
|
+
__spreadProps(__spreadValues({
|
|
2050
|
+
className: cn(
|
|
2051
|
+
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
2052
|
+
"w-[calc(100%-2rem)] max-w-140",
|
|
2053
|
+
"rounded-[28px] bg-m3-surface-container-high p-6",
|
|
2054
|
+
"shadow-lg outline-none focus-visible:ring-2 focus-visible:ring-m3-primary",
|
|
2055
|
+
className
|
|
2056
|
+
),
|
|
2057
|
+
role: "dialog"
|
|
2058
|
+
}, MD3_CONTENT_ANIM), {
|
|
2059
|
+
children: [
|
|
2060
|
+
children,
|
|
2061
|
+
closeButton != null ? /* @__PURE__ */ jsx(RadixDialog.Close, { asChild: true, "aria-label": closeAriaLabel, children: closeButton }) : !hideCloseButton ? /* @__PURE__ */ jsx(RadixDialog.Close, { asChild: true, "aria-label": closeAriaLabel, children: /* @__PURE__ */ jsx(IconButton, __spreadProps(__spreadValues(__spreadValues({}, DEFAULT_CLOSE_BTN_PROPS), closeButtonProps), { children: /* @__PURE__ */ jsx(Icon, { name: "close", "aria-hidden": "true" }) })) }) : null
|
|
2062
|
+
]
|
|
2063
|
+
})
|
|
2064
|
+
)
|
|
2065
|
+
})
|
|
2066
|
+
);
|
|
2067
|
+
}
|
|
2068
|
+
);
|
|
2050
2069
|
DialogContent.displayName = "DialogContent";
|
|
2051
2070
|
var DialogIcon = React2.forwardRef((_a, ref) => {
|
|
2052
2071
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
@@ -2137,6 +2156,8 @@ var DialogFullScreenContent = React2.forwardRef(
|
|
|
2137
2156
|
title,
|
|
2138
2157
|
actionLabel,
|
|
2139
2158
|
onAction,
|
|
2159
|
+
actionButtonProps,
|
|
2160
|
+
closeButtonProps,
|
|
2140
2161
|
showDivider
|
|
2141
2162
|
} = _b, props = __objRest(_b, [
|
|
2142
2163
|
"className",
|
|
@@ -2144,8 +2165,11 @@ var DialogFullScreenContent = React2.forwardRef(
|
|
|
2144
2165
|
"title",
|
|
2145
2166
|
"actionLabel",
|
|
2146
2167
|
"onAction",
|
|
2168
|
+
"actionButtonProps",
|
|
2169
|
+
"closeButtonProps",
|
|
2147
2170
|
"showDivider"
|
|
2148
2171
|
]);
|
|
2172
|
+
var _a2;
|
|
2149
2173
|
return /* @__PURE__ */ jsx(
|
|
2150
2174
|
RadixDialog.Content,
|
|
2151
2175
|
__spreadProps(__spreadValues({
|
|
@@ -2165,16 +2189,33 @@ var DialogFullScreenContent = React2.forwardRef(
|
|
|
2165
2189
|
}, MD3_FULLSCREEN_ANIM), {
|
|
2166
2190
|
children: [
|
|
2167
2191
|
/* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center px-4 h-14 gap-2 bg-m3-surface", children: [
|
|
2168
|
-
/* @__PURE__ */ jsx(
|
|
2192
|
+
/* @__PURE__ */ jsx(
|
|
2193
|
+
RadixDialog.Close,
|
|
2194
|
+
{
|
|
2195
|
+
asChild: true,
|
|
2196
|
+
"aria-label": (_a2 = closeButtonProps == null ? void 0 : closeButtonProps["aria-label"]) != null ? _a2 : "Close",
|
|
2197
|
+
children: /* @__PURE__ */ jsx(
|
|
2198
|
+
IconButton,
|
|
2199
|
+
__spreadProps(__spreadValues({
|
|
2200
|
+
size: "sm",
|
|
2201
|
+
colorStyle: "standard",
|
|
2202
|
+
"aria-label": "Close"
|
|
2203
|
+
}, closeButtonProps), {
|
|
2204
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "close", "aria-hidden": "true" })
|
|
2205
|
+
})
|
|
2206
|
+
)
|
|
2207
|
+
}
|
|
2208
|
+
),
|
|
2169
2209
|
title && /* @__PURE__ */ jsx(DialogTitle, { className: "flex-1 text-[22px] leading-7 font-medium truncate pr-2", children: title }),
|
|
2170
2210
|
actionLabel && onAction && /* @__PURE__ */ jsx(
|
|
2171
2211
|
"button",
|
|
2172
|
-
{
|
|
2212
|
+
__spreadProps(__spreadValues({
|
|
2173
2213
|
type: "button",
|
|
2174
2214
|
onClick: onAction,
|
|
2175
|
-
className: "text-sm font-medium text-m3-primary px-3 py-2 rounded-full hover:bg-m3-primary/8 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-m3-primary transition-colors whitespace-nowrap"
|
|
2215
|
+
className: "text-sm font-medium text-m3-primary px-3 py-2 rounded-full hover:bg-m3-primary/8 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-m3-primary transition-colors whitespace-nowrap disabled:opacity-[0.38] disabled:pointer-events-none"
|
|
2216
|
+
}, actionButtonProps), {
|
|
2176
2217
|
children: actionLabel
|
|
2177
|
-
}
|
|
2218
|
+
})
|
|
2178
2219
|
)
|
|
2179
2220
|
] }),
|
|
2180
2221
|
showDivider && /* @__PURE__ */ jsx("hr", { className: "border-m3-outline-variant w-full shrink-0 m-0" }),
|