@shoplflow/base 0.23.2 → 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 +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1868,14 +1868,17 @@ exports.StyledIcon = styled6__default.default.svg`
|
|
|
1868
1868
|
min-width: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
|
|
1869
1869
|
height: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
|
|
1870
1870
|
min-height: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
|
|
1871
|
-
|
|
1872
1871
|
& > path {
|
|
1873
1872
|
fill: ${({ color }) => color && exports.colorTokens[color]};
|
|
1874
1873
|
}
|
|
1875
1874
|
`;
|
|
1876
1875
|
var Icon = React3.forwardRef((_a, ref) => {
|
|
1877
|
-
var _b = _a, { iconSource } = _b, rest = __objRest(_b, ["iconSource"]);
|
|
1878
|
-
|
|
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 }));
|
|
1879
1882
|
});
|
|
1880
1883
|
exports.Icon = Icon;
|
|
1881
1884
|
var DropdownButton = React3.forwardRef(
|