@bug-on/m3-expressive 1.2.3 → 1.2.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 +6 -0
- package/dist/buttons.d.mts +1 -1
- package/dist/buttons.d.ts +1 -1
- package/dist/buttons.js +27 -8
- package/dist/buttons.js.map +1 -1
- package/dist/buttons.mjs +27 -8
- package/dist/buttons.mjs.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +501 -141
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +501 -141
- package/dist/index.mjs.map +1 -1
- package/dist/layout.js +4 -1
- package/dist/layout.js.map +1 -1
- package/dist/layout.mjs +4 -1
- package/dist/layout.mjs.map +1 -1
- package/dist/md3-expressive-shapes-CPcfl_Hf.d.mts +498 -0
- package/dist/md3-expressive-shapes-CPcfl_Hf.d.ts +498 -0
- package/dist/navigation.d.mts +66 -13
- package/dist/navigation.d.ts +66 -13
- package/dist/navigation.js +2403 -133
- package/dist/navigation.js.map +1 -1
- package/dist/navigation.mjs +2402 -134
- package/dist/navigation.mjs.map +1 -1
- package/dist/shapes.d.mts +3 -498
- package/dist/shapes.d.ts +3 -498
- package/dist/{split-button-trailing-uncheckable-DHJqNeq_.d.mts → split-button-trailing-uncheckable-BTWfIN2k.d.mts} +5 -0
- package/dist/{split-button-trailing-uncheckable-C-qQlyZx.d.ts → split-button-trailing-uncheckable-DtxrcLxH.d.ts} +5 -0
- package/package.json +3 -3
package/dist/buttons.mjs
CHANGED
|
@@ -1309,6 +1309,7 @@ var ButtonComponent = React16.forwardRef(
|
|
|
1309
1309
|
loading = false,
|
|
1310
1310
|
loadingVariant = "loading-indicator",
|
|
1311
1311
|
asChild = false,
|
|
1312
|
+
fullWidth = false,
|
|
1312
1313
|
outlineWidth,
|
|
1313
1314
|
children,
|
|
1314
1315
|
onClick,
|
|
@@ -1331,6 +1332,7 @@ var ButtonComponent = React16.forwardRef(
|
|
|
1331
1332
|
"loading",
|
|
1332
1333
|
"loadingVariant",
|
|
1333
1334
|
"asChild",
|
|
1335
|
+
"fullWidth",
|
|
1334
1336
|
"outlineWidth",
|
|
1335
1337
|
"children",
|
|
1336
1338
|
"onClick",
|
|
@@ -1410,7 +1412,8 @@ var ButtonComponent = React16.forwardRef(
|
|
|
1410
1412
|
[loading, onClick, onKeyDown]
|
|
1411
1413
|
);
|
|
1412
1414
|
const buttonClassName = cn(
|
|
1413
|
-
"relative
|
|
1415
|
+
"relative inline-flex flex-row items-center justify-center",
|
|
1416
|
+
fullWidth ? "w-full" : "w-fit shrink-0",
|
|
1414
1417
|
"whitespace-nowrap select-none cursor-pointer",
|
|
1415
1418
|
"transition-[background-color,color,border-color,box-shadow,opacity,filter] duration-200",
|
|
1416
1419
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-m3-primary focus-visible:ring-offset-2",
|
|
@@ -2685,7 +2688,9 @@ var FABComponent = React16.forwardRef(
|
|
|
2685
2688
|
asChild = false,
|
|
2686
2689
|
onClick,
|
|
2687
2690
|
onKeyDown,
|
|
2688
|
-
"aria-label": ariaLabel
|
|
2691
|
+
"aria-label": ariaLabel,
|
|
2692
|
+
layout,
|
|
2693
|
+
layoutId
|
|
2689
2694
|
} = _b, restProps = __objRest(_b, [
|
|
2690
2695
|
"className",
|
|
2691
2696
|
"style",
|
|
@@ -2701,7 +2706,9 @@ var FABComponent = React16.forwardRef(
|
|
|
2701
2706
|
"asChild",
|
|
2702
2707
|
"onClick",
|
|
2703
2708
|
"onKeyDown",
|
|
2704
|
-
"aria-label"
|
|
2709
|
+
"aria-label",
|
|
2710
|
+
"layout",
|
|
2711
|
+
"layoutId"
|
|
2705
2712
|
]);
|
|
2706
2713
|
var _a2, _b2, _c, _d;
|
|
2707
2714
|
const colors = (_a2 = COLOR_CLASSES2[colorStyle]) != null ? _a2 : COLOR_CLASSES2.primary;
|
|
@@ -2742,7 +2749,9 @@ var FABComponent = React16.forwardRef(
|
|
|
2742
2749
|
/* @__PURE__ */ jsx(Ripple, { ripples, onRippleDone: removeRipple }),
|
|
2743
2750
|
/* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", initial: false, children: loading ? /* @__PURE__ */ jsx(
|
|
2744
2751
|
m.span,
|
|
2745
|
-
__spreadProps(__spreadValues({
|
|
2752
|
+
__spreadProps(__spreadValues({
|
|
2753
|
+
layout: "position"
|
|
2754
|
+
}, ICON_SPAN_VARIANTS), {
|
|
2746
2755
|
transition: SPRING_TRANSITION,
|
|
2747
2756
|
className: cn(
|
|
2748
2757
|
"flex items-center justify-center shrink-0",
|
|
@@ -2769,7 +2778,9 @@ var FABComponent = React16.forwardRef(
|
|
|
2769
2778
|
"loading"
|
|
2770
2779
|
) : /* @__PURE__ */ jsx(
|
|
2771
2780
|
m.span,
|
|
2772
|
-
__spreadProps(__spreadValues({
|
|
2781
|
+
__spreadProps(__spreadValues({
|
|
2782
|
+
layout: "position"
|
|
2783
|
+
}, ICON_SPAN_VARIANTS), {
|
|
2773
2784
|
transition: SPRING_TRANSITION,
|
|
2774
2785
|
"aria-hidden": "true",
|
|
2775
2786
|
className: cn(
|
|
@@ -2783,10 +2794,15 @@ var FABComponent = React16.forwardRef(
|
|
|
2783
2794
|
/* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: extended && labelContent && /* @__PURE__ */ jsx(
|
|
2784
2795
|
m.span,
|
|
2785
2796
|
{
|
|
2797
|
+
layout: "position",
|
|
2786
2798
|
initial: { width: 0, opacity: 0 },
|
|
2787
2799
|
animate: { width: "auto", opacity: 1 },
|
|
2788
2800
|
exit: { width: 0, opacity: 0 },
|
|
2789
|
-
transition:
|
|
2801
|
+
transition: {
|
|
2802
|
+
opacity: { duration: 0.15, ease: "linear" },
|
|
2803
|
+
width: SPRING_TRANSITION,
|
|
2804
|
+
layout: SPRING_TRANSITION
|
|
2805
|
+
},
|
|
2790
2806
|
className: "overflow-hidden whitespace-nowrap ml-3",
|
|
2791
2807
|
children: labelContent
|
|
2792
2808
|
},
|
|
@@ -2803,7 +2819,7 @@ var FABComponent = React16.forwardRef(
|
|
|
2803
2819
|
colors.text,
|
|
2804
2820
|
lowered ? "shadow-sm" : colors.shadow,
|
|
2805
2821
|
(_d = SIZE_STYLES[size]) != null ? _d : "h-14 w-14",
|
|
2806
|
-
extended && "w-auto
|
|
2822
|
+
extended && "w-auto pl-4 pr-6",
|
|
2807
2823
|
SIZE_TEXT_CLASS[size],
|
|
2808
2824
|
loading && "pointer-events-none opacity-75 cursor-not-allowed",
|
|
2809
2825
|
className
|
|
@@ -2834,6 +2850,8 @@ var FABComponent = React16.forwardRef(
|
|
|
2834
2850
|
__spreadProps(__spreadValues({
|
|
2835
2851
|
ref,
|
|
2836
2852
|
type: "button",
|
|
2853
|
+
layout: layout !== void 0 ? layout : true,
|
|
2854
|
+
layoutId,
|
|
2837
2855
|
"aria-label": computedAriaLabel,
|
|
2838
2856
|
"aria-busy": loading || void 0,
|
|
2839
2857
|
"aria-disabled": loading || restProps.disabled,
|
|
@@ -2852,7 +2870,8 @@ var FABComponent = React16.forwardRef(
|
|
|
2852
2870
|
transition: {
|
|
2853
2871
|
borderRadius: SPRING_TRANSITION_FAST,
|
|
2854
2872
|
scale: SPRING_TRANSITION,
|
|
2855
|
-
opacity: { duration: 0.25, ease: "easeOut" }
|
|
2873
|
+
opacity: { duration: 0.25, ease: "easeOut" },
|
|
2874
|
+
layout: SPRING_TRANSITION
|
|
2856
2875
|
},
|
|
2857
2876
|
className: containerClassName
|
|
2858
2877
|
}, restProps), {
|