w-design-system 0.4.174 → 0.4.175
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
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO,6NAQnB,CAAA;AACD,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO,6NAQnB,CAAA;AACD,eAAO,MAAM,cAAc,6NAqC1B,CAAA"}
|
package/dist/w-design-system.js
CHANGED
|
@@ -1519,7 +1519,7 @@ const X4 = { ...l.title }, W4 = v.p.withConfig({ displayName: "StyledTitle", com
|
|
|
1519
1519
|
function V4({ size: A = "medium", bold: g, color: e, children: I }) {
|
|
1520
1520
|
return s.jsx(W4, { $size: A, $bold: g, $color: e, children: I });
|
|
1521
1521
|
}
|
|
1522
|
-
const { colors: { shade20: q4 }, zIndex: { z8: $4, z9: _4 } } = l, A5 = v.div.withConfig({ displayName: "Overlay", componentId: "sc-iy043f-0" })(["position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:", ";"], $4), g5 = v.div.withConfig({ displayName: "ModalContainer", componentId: "sc-iy043f-1" })(["display:flex;min-width:360px;width:auto;height:auto;padding:16px;flex-direction:column;align-items:flex-start;gap:16px;flex-shrink:0;border-radius:5px;border:1px solid ", ";background:white;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:rgba(149,157,165,0.1) 0px 0px 24px;border:1px solid rgba(0,0,0,0.08);z-index:", ";.modalContainer{min-height:100px;}.modalHeader{display:inline-flex;justify-content:space-between;width:100%;}.modalFooter{display:inline-flex;justify-content:flex-end;width:100%;gap:0 24px;}"], q4, _4), { colors: { cyan50: I5, shade30: C5 } } = l;
|
|
1522
|
+
const { colors: { shade20: q4 }, zIndex: { z8: $4, z9: _4 } } = l, A5 = v.div.withConfig({ displayName: "Overlay", componentId: "sc-iy043f-0" })(["position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:", ";"], $4), g5 = v.div.withConfig({ displayName: "ModalContainer", componentId: "sc-iy043f-1" })(["display:flex;min-width:360px;width:auto;height:auto;padding:16px;flex-direction:column;align-items:flex-start;gap:16px;flex-shrink:0;border-radius:5px;border:1px solid ", ";background:white;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:rgba(149,157,165,0.1) 0px 0px 24px;border:1px solid rgba(0,0,0,0.08);z-index:", ";.modalContainer{min-height:100px;max-height:calc(100vh - 166px);overflow-y:auto;}.modalHeader{display:inline-flex;justify-content:space-between;width:100%;}.modalFooter{display:inline-flex;justify-content:flex-end;width:100%;gap:0 24px;}"], q4, _4), { colors: { cyan50: I5, shade30: C5 } } = l;
|
|
1523
1523
|
function iA({ title: A, children: g, onClose: e, footer: I, ...c }) {
|
|
1524
1524
|
return s1.createPortal(s.jsxs(s.Fragment, { children: [s.jsx(A5, { onClick: e }), s.jsxs(g5, { ...c, children: [s.jsxs("div", { className: "modalHeader", children: [s.jsx(V4, { size: "medium", bold: !0, color: I5, children: A }), s.jsx(I0, { src: f2, width: "14px", height: "14px", color: C5, onClick: e })] }), s.jsx("div", { className: "modalContainer", children: g }), s.jsx("div", { className: "modalFooter", children: I })] })] }), document.body);
|
|
1525
1525
|
}
|