@shoplflow/base 0.23.1 → 0.24.0

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.cjs CHANGED
@@ -588,7 +588,11 @@ exports.AvatarSizeVariants = {
588
588
  exports.StyledStack = styled6__default.default.div`
589
589
  display: flex;
590
590
  width: ${({ width }) => width};
591
+ max-width: ${({ maxWidth }) => maxWidth};
592
+ min-width: ${({ minWidth }) => minWidth};
591
593
  height: ${({ height }) => height};
594
+ max-height: ${({ maxHeight }) => maxHeight};
595
+ min-height: ${({ minHeight }) => minHeight};
592
596
  flex-direction: ${({ direction }) => direction};
593
597
  align-items: ${({ align }) => align};
594
598
  justify-content: ${({ justify }) => justify};
@@ -1864,14 +1868,17 @@ exports.StyledIcon = styled6__default.default.svg`
1864
1868
  min-width: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
1865
1869
  height: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
1866
1870
  min-height: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
1867
-
1868
1871
  & > path {
1869
1872
  fill: ${({ color }) => color && exports.colorTokens[color]};
1870
1873
  }
1871
1874
  `;
1872
1875
  var Icon = React3.forwardRef((_a, ref) => {
1873
- var _b = _a, { iconSource } = _b, rest = __objRest(_b, ["iconSource"]);
1874
- return /* @__PURE__ */ jsxRuntime.jsx(exports.StyledIcon, __spreadProps(__spreadValues({ as: iconSource, ref }, rest), { "data-shoplflow": "Icon" }));
1876
+ var _b = _a, { iconSource, dangerouslySetInnerHTML } = _b, rest = __objRest(_b, ["iconSource", "dangerouslySetInnerHTML"]);
1877
+ const htmlContent = dangerouslySetInnerHTML ? { __html: dangerouslySetInnerHTML } : void 0;
1878
+ if (htmlContent && iconSource) {
1879
+ throw new Error("Icon: iconSource\uC640 dangerouslySetInnerHTML\uC740 \uB3D9\uC2DC\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");
1880
+ }
1881
+ return /* @__PURE__ */ jsxRuntime.jsx(exports.StyledIcon, __spreadProps(__spreadValues({ as: iconSource, ref }, rest), { "data-shoplflow": "Icon", dangerouslySetInnerHTML: htmlContent }));
1875
1882
  });
1876
1883
  exports.Icon = Icon;
1877
1884
  var DropdownButton = React3.forwardRef(