@aseguragonzalez/ui 1.4.0 → 1.4.1

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.
@@ -1 +1 @@
1
- const e=require("./AuthLayout.module.css.cjs");let t=require("react/jsx-runtime");var n=()=>(0,t.jsxs)(`svg`,{width:`36`,height:`36`,viewBox:`0 0 36 36`,fill:`none`,"aria-hidden":`true`,children:[(0,t.jsx)(`rect`,{width:`36`,height:`36`,rx:`8`,fill:`var(--ds-color-action-primary)`}),(0,t.jsx)(`path`,{d:`M10 12h16M10 18h11M10 24h8`,stroke:`white`,strokeWidth:`2.5`,strokeLinecap:`round`})]});function r({children:r,branding:i,tagline:a,logo:o,brandingLabel:s=`Product branding`,footer:c}){let l=o??(0,t.jsx)(n,{});return(0,t.jsxs)(`div`,{className:[e.default.layout,c?e.default.withFooter:``].filter(Boolean).join(` `),children:[(0,t.jsx)(`aside`,{className:e.default.brandPanel,"aria-label":s,"aria-hidden":`true`,children:(0,t.jsx)(`div`,{className:e.default.brandContent,children:i??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`div`,{className:e.default.brandLogo,children:l}),(0,t.jsx)(`p`,{className:e.default.brandTagline,children:a??(0,t.jsxs)(t.Fragment,{children:[`Build better products,`,(0,t.jsx)(`br`,{}),`together.`]})})]})})}),(0,t.jsx)(`main`,{className:e.default.formPanel,children:(0,t.jsxs)(`div`,{className:e.default.formContent,children:[(0,t.jsx)(`div`,{className:e.default.mobileLogo,"aria-hidden":`true`,children:l}),r]})}),c&&(0,t.jsx)(`footer`,{className:e.default.footer,children:c})]})}r.displayName=`AuthLayout`,exports.AuthLayout=r;
1
+ const e=require("./AuthLayout.module.css.cjs");let t=require("react/jsx-runtime");var n=()=>(0,t.jsxs)(`svg`,{width:`36`,height:`36`,viewBox:`0 0 36 36`,fill:`none`,"aria-hidden":`true`,children:[(0,t.jsx)(`rect`,{width:`36`,height:`36`,rx:`8`,fill:`var(--ds-color-action-primary)`}),(0,t.jsx)(`path`,{d:`M10 12h16M10 18h11M10 24h8`,stroke:`white`,strokeWidth:`2.5`,strokeLinecap:`round`})]});function r({children:r,branding:i,tagline:a,logo:o,brandingLabel:s=`Product branding`,footer:c}){let l=o??(0,t.jsx)(n,{});return(0,t.jsxs)(`div`,{className:[e.default.layout,c?e.default.withFooter:``].filter(Boolean).join(` `),children:[(0,t.jsx)(`aside`,{className:e.default.brandPanel,"aria-label":s,children:(0,t.jsx)(`div`,{className:e.default.brandContent,children:i??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`div`,{className:e.default.brandLogo,children:l}),(0,t.jsx)(`p`,{className:e.default.brandTagline,children:a??(0,t.jsxs)(t.Fragment,{children:[`Build better products,`,(0,t.jsx)(`br`,{}),`together.`]})})]})})}),(0,t.jsx)(`main`,{className:e.default.formPanel,children:(0,t.jsxs)(`div`,{className:e.default.formContent,children:[(0,t.jsx)(`div`,{className:e.default.mobileLogo,"aria-hidden":`true`,children:l}),r]})}),c&&(0,t.jsx)(`footer`,{className:e.default.footer,children:c})]})}r.displayName=`AuthLayout`,exports.AuthLayout=r;
@@ -8,7 +8,7 @@ export interface AuthLayoutProps {
8
8
  tagline?: ReactNode;
9
9
  /** Logo shown at the top of the form panel on mobile, and inside the branding panel on desktop. */
10
10
  logo?: ReactNode;
11
- /** Accessible label for the branding panel (hidden from visual display). */
11
+ /** Accessible name of the branding panel's complementary landmark. Default: `'Product branding'`. */
12
12
  brandingLabel?: string;
13
13
  /**
14
14
  * Page footer. Rendered in a `<footer>` after `<main>`, not inside it, so it is exposed as the
@@ -27,7 +27,6 @@ function a({ children: a, branding: o, tagline: s, logo: c, brandingLabel: l = "
27
27
  /* @__PURE__ */ n("aside", {
28
28
  className: e.brandPanel,
29
29
  "aria-label": l,
30
- "aria-hidden": "true",
31
30
  children: /* @__PURE__ */ n("div", {
32
31
  className: e.brandContent,
33
32
  children: o ?? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aseguragonzalez/ui",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Accessible, themeable design system for React SPAs",