@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/dist/layout.js CHANGED
@@ -1518,6 +1518,7 @@ var ButtonComponent = React18__namespace.forwardRef(
1518
1518
  loading = false,
1519
1519
  loadingVariant = "loading-indicator",
1520
1520
  asChild = false,
1521
+ fullWidth = false,
1521
1522
  outlineWidth,
1522
1523
  children,
1523
1524
  onClick,
@@ -1540,6 +1541,7 @@ var ButtonComponent = React18__namespace.forwardRef(
1540
1541
  "loading",
1541
1542
  "loadingVariant",
1542
1543
  "asChild",
1544
+ "fullWidth",
1543
1545
  "outlineWidth",
1544
1546
  "children",
1545
1547
  "onClick",
@@ -1619,7 +1621,8 @@ var ButtonComponent = React18__namespace.forwardRef(
1619
1621
  [loading, onClick, onKeyDown]
1620
1622
  );
1621
1623
  const buttonClassName = cn(
1622
- "relative w-fit shrink-0 inline-flex flex-row items-center justify-center",
1624
+ "relative inline-flex flex-row items-center justify-center",
1625
+ fullWidth ? "w-full" : "w-fit shrink-0",
1623
1626
  "whitespace-nowrap select-none cursor-pointer",
1624
1627
  "transition-[background-color,color,border-color,box-shadow,opacity,filter] duration-200",
1625
1628
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-m3-primary focus-visible:ring-offset-2",