design-zystem 1.0.224 → 1.0.225

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.js CHANGED
@@ -1269,7 +1269,12 @@ var NewModal = ({
1269
1269
  zIndex: 1e3,
1270
1270
  display: "flex",
1271
1271
  alignItems: "center",
1272
- justifyContent: "center"
1272
+ justifyContent: "center",
1273
+ border: "none",
1274
+ borderRadius: 0,
1275
+ boxShadow: "none",
1276
+ padding: "0 0 0 var(--dz-modal-offset-left, 0px)",
1277
+ boxSizing: "border-box"
1273
1278
  },
1274
1279
  onClick: handleBackdropClick,
1275
1280
  fullWidth: true,
@@ -1282,7 +1287,7 @@ var NewModal = ({
1282
1287
  {
1283
1288
  onClick: (e) => e.stopPropagation(),
1284
1289
  style: {
1285
- maxWidth: width,
1290
+ maxWidth: `min(${width}, calc(100vw - var(--dz-modal-offset-left, 0px) - 32px))`,
1286
1291
  background: "#fff",
1287
1292
  borderRadius: 12,
1288
1293
  padding: 24,
package/dist/index.mjs CHANGED
@@ -1177,7 +1177,12 @@ var NewModal = ({
1177
1177
  zIndex: 1e3,
1178
1178
  display: "flex",
1179
1179
  alignItems: "center",
1180
- justifyContent: "center"
1180
+ justifyContent: "center",
1181
+ border: "none",
1182
+ borderRadius: 0,
1183
+ boxShadow: "none",
1184
+ padding: "0 0 0 var(--dz-modal-offset-left, 0px)",
1185
+ boxSizing: "border-box"
1181
1186
  },
1182
1187
  onClick: handleBackdropClick,
1183
1188
  fullWidth: true,
@@ -1190,7 +1195,7 @@ var NewModal = ({
1190
1195
  {
1191
1196
  onClick: (e) => e.stopPropagation(),
1192
1197
  style: {
1193
- maxWidth: width,
1198
+ maxWidth: `min(${width}, calc(100vw - var(--dz-modal-offset-left, 0px) - 32px))`,
1194
1199
  background: "#fff",
1195
1200
  borderRadius: 12,
1196
1201
  padding: 24,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.224",
3
+ "version": "1.0.225",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",