rechtspilot-ui 1.2.2 → 1.2.3

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.cjs CHANGED
@@ -133,19 +133,19 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
133
133
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
134
134
 
135
135
  For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Un=`DialogDescriptionWarning`,Wn=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vn(Un).contentName}}.`;return i.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Gn=gn,Kn=Sn,qn=wn,Jn=On,Yn=Nn,Xn=Fn,Zn=Ln,Qn=Gn,$n=Kn,er=i.forwardRef(({className:t,...r},i)=>(0,n.jsx)(qn,{ref:i,className:e.R(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,t),...r}));er.displayName=qn.displayName;var tr=i.forwardRef(({className:t,children:r,...i},a)=>(0,n.jsxs)($n,{children:[(0,n.jsx)(er,{}),(0,n.jsxs)(Jn,{ref:a,translate:`no`,className:e.R(`fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] dark:border-neutral-800 dark:bg-neutral-950`,t),...i,children:[r,(0,n.jsxs)(Zn,{className:`absolute right-4 top-4 rounded-xs opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400`,children:[(0,n.jsx)(e.I,{className:`h-4 w-4`}),(0,n.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));tr.displayName=Jn.displayName;var nr=({className:t,...r})=>(0,n.jsx)(`div`,{className:e.R(`flex flex-col space-y-1.5 text-center sm:text-left`,t),...r});nr.displayName=`DialogHeader`;var rr=({className:t,...r})=>(0,n.jsx)(`div`,{className:e.R(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,t),...r});rr.displayName=`DialogFooter`;var ir=i.forwardRef(({className:t,...r},i)=>(0,n.jsx)(Yn,{ref:i,className:e.R(`text-lg font-semibold leading-none tracking-tight hidden`,t),...r}));ir.displayName=Yn.displayName;var ar=i.forwardRef(({className:t,...r},i)=>(0,n.jsx)(Xn,{ref:i,className:e.R(`text-sm text-neutral-500 dark:text-neutral-400`,t),...r}));ar.displayName=Xn.displayName;function or({open:e,toggleDialog:t,children:r,...i}){return(0,n.jsx)(Qn,{open:e,onOpenChange:t,...i,children:r})}var sr=(0,i.forwardRef)(({className:t,...r},i)=>(0,n.jsx)(qn,{ref:i,className:e.R(`fixed inset-0 z-50 bg-black/30 backdrop-blur-[2px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,t),...r}));sr.displayName=qn.displayName;var cr=(0,t.styled)(Jn)`
136
- --dialog-scale: ${({$fullScreen:e,$height:t})=>e?`1`:`min(1, calc(90dvh / ${t||`48.75rem`}))`};
137
- width: ${({$width:e,$fullScreen:t})=>t?`100vw`:`calc((${e||`36.25rem`}) * var(--dialog-scale))`};
138
- height: ${({$height:e,$fullScreen:t})=>t?`100dvh`:`calc((${e||`48.75rem`}) * var(--dialog-scale))`};
136
+ width: ${({$width:e,$fullScreen:t})=>t?`100vw`:e||`36.25rem`};
137
+ height: ${({$height:e,$fullScreen:t})=>t?`100dvh`:e||`48.75rem`};
138
+ max-height: 100dvh;
139
139
  border-radius: ${({$fullScreen:e})=>e?`0`:`1.25rem`};
140
140
  background: ${({$background:e})=>e};
141
141
  overflow: hidden;
142
142
  `,lr=t.styled.div`
143
143
  width: ${({$width:e,$fullScreen:t})=>t?`100vw`:e||`36.25rem`};
144
144
  height: ${({$height:e,$fullScreen:t})=>t?`100dvh`:e||`48.75rem`};
145
- transform: scale(var(--dialog-scale));
146
- transform-origin: top left;
145
+ max-height: 100dvh;
147
146
  display: flex;
148
147
  flex-direction: column;
148
+ overflow-y: auto;
149
149
  `,ur=(0,i.forwardRef)(({width:t,height:r,background:i,fullScreen:a,children:o,...s},l)=>{let u=c(),d=i||e.B.white;return(0,n.jsxs)(Sn,{children:[(0,n.jsx)(sr,{}),(0,n.jsx)(cr,{$width:t,$height:r,$fullScreen:a===void 0?u:a,$background:d,ref:l,className:e.R(`fixed left-1/2 top-1/2 z-50 transform -translate-x-1/2 -translate-y-1/2`),"aria-describedby":void 0,...s,children:(0,n.jsxs)(lr,{$width:t,$height:r,$fullScreen:a===void 0?u:a,children:[(0,n.jsx)(ir,{}),(0,n.jsx)(ar,{}),o]})})]})});ur.displayName=On.displayName;var dr=t.styled.div`
150
150
  width: 100%;
151
151
  height: 100%;
package/dist/index.es.js CHANGED
@@ -1657,19 +1657,19 @@ var Dr = b(({ className: e, ...t }, n) => /* @__PURE__ */ h(pr, {
1657
1657
  }));
1658
1658
  Dr.displayName = pr.displayName;
1659
1659
  var Or = p(mr)`
1660
- --dialog-scale: ${({ $fullScreen: e, $height: t }) => e ? "1" : `min(1, calc(90dvh / ${t || "48.75rem"}))`};
1661
- width: ${({ $width: e, $fullScreen: t }) => t ? "100vw" : `calc((${e || "36.25rem"}) * var(--dialog-scale))`};
1662
- height: ${({ $height: e, $fullScreen: t }) => t ? "100dvh" : `calc((${e || "48.75rem"}) * var(--dialog-scale))`};
1660
+ width: ${({ $width: e, $fullScreen: t }) => t ? "100vw" : e || "36.25rem"};
1661
+ height: ${({ $height: e, $fullScreen: t }) => t ? "100dvh" : e || "48.75rem"};
1662
+ max-height: 100dvh;
1663
1663
  border-radius: ${({ $fullScreen: e }) => e ? "0" : "1.25rem"};
1664
1664
  background: ${({ $background: e }) => e};
1665
1665
  overflow: hidden;
1666
1666
  `, kr = p.div`
1667
1667
  width: ${({ $width: e, $fullScreen: t }) => t ? "100vw" : e || "36.25rem"};
1668
1668
  height: ${({ $height: e, $fullScreen: t }) => t ? "100dvh" : e || "48.75rem"};
1669
- transform: scale(var(--dialog-scale));
1670
- transform-origin: top left;
1669
+ max-height: 100dvh;
1671
1670
  display: flex;
1672
1671
  flex-direction: column;
1672
+ overflow-y: auto;
1673
1673
  `, Ar = b(({ width: t, height: n, background: r, fullScreen: i, children: a, ...o }, c) => {
1674
1674
  let l = A(), u = r || e.white;
1675
1675
  return /* @__PURE__ */ g(Hn, { children: [/* @__PURE__ */ h(Dr, {}), /* @__PURE__ */ h(Or, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rechtspilot-ui",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "type": "module",
5
5
  "description": "Rechtspilot UI Library",
6
6
  "main": "dist/index.cjs",