@bug-on/m3-expressive 1.2.2 → 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.mjs CHANGED
@@ -1496,6 +1496,7 @@ var ButtonComponent = React18.forwardRef(
1496
1496
  loading = false,
1497
1497
  loadingVariant = "loading-indicator",
1498
1498
  asChild = false,
1499
+ fullWidth = false,
1499
1500
  outlineWidth,
1500
1501
  children,
1501
1502
  onClick,
@@ -1518,6 +1519,7 @@ var ButtonComponent = React18.forwardRef(
1518
1519
  "loading",
1519
1520
  "loadingVariant",
1520
1521
  "asChild",
1522
+ "fullWidth",
1521
1523
  "outlineWidth",
1522
1524
  "children",
1523
1525
  "onClick",
@@ -1597,7 +1599,8 @@ var ButtonComponent = React18.forwardRef(
1597
1599
  [loading, onClick, onKeyDown]
1598
1600
  );
1599
1601
  const buttonClassName = cn(
1600
- "relative w-fit shrink-0 inline-flex flex-row items-center justify-center",
1602
+ "relative inline-flex flex-row items-center justify-center",
1603
+ fullWidth ? "w-full" : "w-fit shrink-0",
1601
1604
  "whitespace-nowrap select-none cursor-pointer",
1602
1605
  "transition-[background-color,color,border-color,box-shadow,opacity,filter] duration-200",
1603
1606
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-m3-primary focus-visible:ring-offset-2",