@cyber-harbour/ui 1.0.73 → 1.0.74
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.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/Modal/Modal.tsx +2 -2
- package/src/Core/Overlay/Overlay.tsx +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1075,7 +1075,7 @@
|
|
|
1075
1075
|
from { opacity: 0.5; transform: translateX(-${F(t,e.baseSize)}); }
|
|
1076
1076
|
to { opacity: 1; transform: translateX(0); }
|
|
1077
1077
|
}
|
|
1078
|
-
`);var au=r(e=>{let{contentLoader:{foreground:o,background:t}}=w1.useTheme();return jsxRuntime.jsx(X8__default.default,{...e,backgroundColor:t,foregroundColor:o})},"ContentLoader");var e6=E(({children:e,onOutsideClick:o,prepend:t,append:a,prependPosition:l,appendPosition:C,isLocked:u=true,...S})=>(x2(u),reactDom.createPortal(jsxRuntime.jsxs(Q8,{...S,onClick:x=>{x.target===x.currentTarget&&o&&o();},children:[!!t&&jsxRuntime.jsx(j8,{$position:l,children:t}),jsxRuntime.jsx(K8,{children:e}),!!a&&jsxRuntime.jsx(J8,{$position:C,children:a})]}),document.body))),j8=w1.styled.div(({theme:e,$position:o="end"})=>`
|
|
1078
|
+
`);var au=r(e=>{let{contentLoader:{foreground:o,background:t}}=w1.useTheme();return jsxRuntime.jsx(X8__default.default,{...e,backgroundColor:t,foregroundColor:o})},"ContentLoader");var e6=E(({children:e,onOutsideClick:o,prepend:t,append:a,prependPosition:l,appendPosition:C,isLocked:u=true,...S})=>(x2(u),reactDom.createPortal(jsxRuntime.jsxs(Q8,{...S,className:"cb-ui-backdrop",onClick:x=>{x.target===x.currentTarget&&o&&o();},children:[!!t&&jsxRuntime.jsx(j8,{$position:l,children:t}),jsxRuntime.jsx(K8,{children:e}),!!a&&jsxRuntime.jsx(J8,{$position:C,children:a})]}),document.body))),j8=w1.styled.div(({theme:e,$position:o="end"})=>`
|
|
1079
1079
|
position: absolute;
|
|
1080
1080
|
top: ${e.overlay.gap};
|
|
1081
1081
|
z-index: ${e.zIndex.backdrop};
|
|
@@ -1103,7 +1103,7 @@
|
|
|
1103
1103
|
background: ${e.overlay.background};
|
|
1104
1104
|
z-index: ${e.zIndex.backdrop};
|
|
1105
1105
|
|
|
1106
|
-
`));var Pu=r(({children:e,onClose:o,isNested:t=false,width:a})=>jsxRuntime.jsx(e6,{onOutsideClick:o,isLocked:!t,
|
|
1106
|
+
`));var Pu=r(({children:e,onClose:o,isNested:t=false,width:a})=>jsxRuntime.jsx(e6,{onOutsideClick:o,isLocked:!t,children:jsxRuntime.jsx(o9,{$width:a,children:e})}),"Modal"),ku=T(w1__default.default.div(({theme:e,p:o=e.modal.padding,px:t,pl:a,pr:l})=>{let C=a||t||o,u=l||t||o;return `
|
|
1107
1107
|
grid-area: modal-header;
|
|
1108
1108
|
position: relative;
|
|
1109
1109
|
&::after {
|
|
@@ -1156,7 +1156,7 @@
|
|
|
1156
1156
|
transform: translate(-50%, -50%);
|
|
1157
1157
|
height: auto;
|
|
1158
1158
|
max-height: 90dvh;
|
|
1159
|
-
width: ${t1(o)};
|
|
1159
|
+
width: ${t1(o,e.baseSize)};
|
|
1160
1160
|
max-width: 90vw;
|
|
1161
1161
|
border: 1px solid ${e.modal.borderColor};
|
|
1162
1162
|
box-shadow: ${e.modal.shadow};
|