react-better-html 1.1.272 → 1.1.273

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
@@ -1606,7 +1606,11 @@ var IconElement = import_styled_components3.default.svg.withConfig({
1606
1606
  var Icon = (0, import_react5.forwardRef)(function Icon2({ name, size = 16, ...props }, ref) {
1607
1607
  const theme2 = (0, import_react_better_core5.useTheme)();
1608
1608
  const { icons: icons2 } = (0, import_react_better_core5.useBetterCoreContext)();
1609
- const { style, hoverStyle, restProps } = useComponentPropsGrouper(props);
1609
+ const {
1610
+ style: { fill, stroke, strokeColor, ...restStyle },
1611
+ hoverStyle,
1612
+ restProps
1613
+ } = useComponentPropsGrouper(props);
1610
1614
  const dataProps = useComponentPropsWithPrefix(restProps, "data");
1611
1615
  const ariaProps = useComponentPropsWithPrefix(restProps, "aria");
1612
1616
  const svgColor = props.color ?? theme2.colors.textPrimary;
@@ -1627,7 +1631,7 @@ var Icon = (0, import_react5.forwardRef)(function Icon2({ name, size = 16, ...pr
1627
1631
  xmlns: "http://www.w3.org/2000/svg",
1628
1632
  theme: theme2,
1629
1633
  hoverColor: svgHoverColorColor,
1630
- style,
1634
+ style: restStyle,
1631
1635
  hoverStyle,
1632
1636
  ...restProps,
1633
1637
  ...dataProps,
@@ -1638,8 +1642,8 @@ var Icon = (0, import_react5.forwardRef)(function Icon2({ name, size = 16, ...pr
1638
1642
  {
1639
1643
  ...path,
1640
1644
  className: path.type === "fill" ? "react-better-html-icon-path-with-fill" : "react-better-html-icon-path-with-stroke",
1641
- fill: path.type === "fill" ? svgColor : void 0,
1642
- stroke: path.type === "stroke" ? svgColor : void 0,
1645
+ fill: path.type === "fill" ? fill ?? svgColor : void 0,
1646
+ stroke: path.type === "stroke" ? strokeColor ?? stroke ?? svgColor : void 0,
1643
1647
  key: path.d
1644
1648
  }
1645
1649
  ))