@mond-design-system/react 6.1.1 → 6.2.0

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/index.d.cts CHANGED
@@ -1612,6 +1612,10 @@ interface AppBarProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
1612
1612
  leading?: ReactNode;
1613
1613
  /** Right slot — actions. */
1614
1614
  trailing?: ReactNode;
1615
+ /** Drop the page padding so the bar's content reaches the screen edge.
1616
+ Off by default: the padding is what lines the bar up with the page
1617
+ column (Container shares the same token). */
1618
+ flush?: boolean;
1615
1619
  ref?: Ref<HTMLElement>;
1616
1620
  }
1617
1621
  /**
@@ -1628,7 +1632,7 @@ interface AppBarProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
1628
1632
  * />
1629
1633
  * ```
1630
1634
  */
1631
- declare function AppBar({ title, subtitle, leading, trailing, className, ref, ...rest }: AppBarProps): react.JSX.Element;
1635
+ declare function AppBar({ title, subtitle, leading, trailing, flush, className, ref, ...rest }: AppBarProps): react.JSX.Element;
1632
1636
 
1633
1637
  interface TabBarProps {
1634
1638
  /** Accessible name of the navigation landmark. */
package/dist/index.d.ts CHANGED
@@ -1612,6 +1612,10 @@ interface AppBarProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
1612
1612
  leading?: ReactNode;
1613
1613
  /** Right slot — actions. */
1614
1614
  trailing?: ReactNode;
1615
+ /** Drop the page padding so the bar's content reaches the screen edge.
1616
+ Off by default: the padding is what lines the bar up with the page
1617
+ column (Container shares the same token). */
1618
+ flush?: boolean;
1615
1619
  ref?: Ref<HTMLElement>;
1616
1620
  }
1617
1621
  /**
@@ -1628,7 +1632,7 @@ interface AppBarProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
1628
1632
  * />
1629
1633
  * ```
1630
1634
  */
1631
- declare function AppBar({ title, subtitle, leading, trailing, className, ref, ...rest }: AppBarProps): react.JSX.Element;
1635
+ declare function AppBar({ title, subtitle, leading, trailing, flush, className, ref, ...rest }: AppBarProps): react.JSX.Element;
1632
1636
 
1633
1637
  interface TabBarProps {
1634
1638
  /** Accessible name of the navigation landmark. */
package/dist/index.js CHANGED
@@ -2434,10 +2434,10 @@ function ScreenContent({ children, flush = false, className, ref, ...rest }) {
2434
2434
  }
2435
2435
 
2436
2436
  // mds-cssmod:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/AppBar/AppBar.module.css?mds-scoped
2437
- var AppBar_module_default = { "bar": "mds-AppBar__bar", "title": "mds-AppBar__title", "text": "mds-AppBar__text", "subtitle": "mds-AppBar__subtitle", "slot": "mds-AppBar__slot", "trailing": "mds-AppBar__trailing" };
2438
- function AppBar({ title, subtitle, leading, trailing, className, ref, ...rest }) {
2437
+ var AppBar_module_default = { "bar": "mds-AppBar__bar", "flush": "mds-AppBar__flush", "title": "mds-AppBar__title", "text": "mds-AppBar__text", "subtitle": "mds-AppBar__subtitle", "slot": "mds-AppBar__slot", "trailing": "mds-AppBar__trailing" };
2438
+ function AppBar({ title, subtitle, leading, trailing, flush = false, className, ref, ...rest }) {
2439
2439
  const heading = title ? /* @__PURE__ */ jsx("h1", { className: AppBar_module_default.title, children: title }) : null;
2440
- return /* @__PURE__ */ jsxs("header", { ref, className: cx(AppBar_module_default.bar, className), ...rest, children: [
2440
+ return /* @__PURE__ */ jsxs("header", { ref, className: cx(AppBar_module_default.bar, flush && AppBar_module_default.flush, className), ...rest, children: [
2441
2441
  leading ? /* @__PURE__ */ jsx("div", { className: AppBar_module_default.slot, children: leading }) : null,
2442
2442
  subtitle != null ? /* @__PURE__ */ jsxs("div", { className: AppBar_module_default.text, children: [
2443
2443
  heading,