design-zystem 1.0.303 → 1.0.305

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 CHANGED
@@ -335,6 +335,7 @@ interface IconProps {
335
335
  isRound?: boolean;
336
336
  shadow?: string;
337
337
  onClick?: () => void;
338
+ cursor?: string;
338
339
  className?: string;
339
340
  style?: CSSProperties;
340
341
  title?: string;
package/dist/index.d.ts CHANGED
@@ -335,6 +335,7 @@ interface IconProps {
335
335
  isRound?: boolean;
336
336
  shadow?: string;
337
337
  onClick?: () => void;
338
+ cursor?: string;
338
339
  className?: string;
339
340
  style?: CSSProperties;
340
341
  title?: string;
package/dist/index.js CHANGED
@@ -713,7 +713,8 @@ var shouldForwardProp3 = (prop) => ![
713
713
  "height",
714
714
  "backgroundColor",
715
715
  "isRound",
716
- "shadow"
716
+ "shadow",
717
+ "cursor"
717
718
  ].includes(prop);
718
719
  var StyledIcon = import_styled_components6.default.i.withConfig({ shouldForwardProp: shouldForwardProp3 })`
719
720
  font-size: ${(props) => textSizes2[props.size] || props.size || "1em"};
@@ -728,7 +729,7 @@ var StyledIcon = import_styled_components6.default.i.withConfig({ shouldForwardP
728
729
  aspect-ratio: ${(props) => props.isRound ? "1" : "auto"};
729
730
  text-align: center;
730
731
  align-self: center;
731
- cursor: ${(props) => props.onClick ? "pointer" : "inherit"};
732
+ cursor: ${(props) => props.cursor || (props.onClick ? "pointer" : "inherit")};
732
733
  background-color: ${(props) => colors[props.backgroundColor] || props.backgroundColor || "transparent"};
733
734
  border-radius: ${(props) => props.isRound ? "50%" : "0"};
734
735
  text-shadow: ${(props) => props.shadow ? `0 0 6px ${colors[props.shadow] || props.shadow}` : "none"};
@@ -5332,13 +5333,13 @@ var Popover = ({
5332
5333
  top: "auto",
5333
5334
  bottom: menuPosition.bottom,
5334
5335
  left: menuPosition.left,
5335
- width: menuPosition.width,
5336
+ minWidth: menuPosition.width,
5336
5337
  transform: "none"
5337
5338
  } : {
5338
5339
  top: menuPosition.top,
5339
5340
  bottom: "auto",
5340
5341
  left: menuPosition.left,
5341
- width: menuPosition.width,
5342
+ minWidth: menuPosition.width,
5342
5343
  transform: align === "left" ? "none" : "translateX(-100%)"
5343
5344
  };
5344
5345
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(PopoverWrapper, { ref, $fullWidth: fullWidth, children: [
package/dist/index.mjs CHANGED
@@ -572,7 +572,8 @@ var shouldForwardProp3 = (prop) => ![
572
572
  "height",
573
573
  "backgroundColor",
574
574
  "isRound",
575
- "shadow"
575
+ "shadow",
576
+ "cursor"
576
577
  ].includes(prop);
577
578
  var StyledIcon = styled6.i.withConfig({ shouldForwardProp: shouldForwardProp3 })`
578
579
  font-size: ${(props) => textSizes2[props.size] || props.size || "1em"};
@@ -587,7 +588,7 @@ var StyledIcon = styled6.i.withConfig({ shouldForwardProp: shouldForwardProp3 })
587
588
  aspect-ratio: ${(props) => props.isRound ? "1" : "auto"};
588
589
  text-align: center;
589
590
  align-self: center;
590
- cursor: ${(props) => props.onClick ? "pointer" : "inherit"};
591
+ cursor: ${(props) => props.cursor || (props.onClick ? "pointer" : "inherit")};
591
592
  background-color: ${(props) => colors[props.backgroundColor] || props.backgroundColor || "transparent"};
592
593
  border-radius: ${(props) => props.isRound ? "50%" : "0"};
593
594
  text-shadow: ${(props) => props.shadow ? `0 0 6px ${colors[props.shadow] || props.shadow}` : "none"};
@@ -5211,13 +5212,13 @@ var Popover = ({
5211
5212
  top: "auto",
5212
5213
  bottom: menuPosition.bottom,
5213
5214
  left: menuPosition.left,
5214
- width: menuPosition.width,
5215
+ minWidth: menuPosition.width,
5215
5216
  transform: "none"
5216
5217
  } : {
5217
5218
  top: menuPosition.top,
5218
5219
  bottom: "auto",
5219
5220
  left: menuPosition.left,
5220
- width: menuPosition.width,
5221
+ minWidth: menuPosition.width,
5221
5222
  transform: align === "left" ? "none" : "translateX(-100%)"
5222
5223
  };
5223
5224
  return /* @__PURE__ */ jsxs26(PopoverWrapper, { ref, $fullWidth: fullWidth, children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.303",
3
+ "version": "1.0.305",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",