@shoplflow/base 0.24.0 → 0.24.1
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 +2 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1128,8 +1128,7 @@ declare const IconSizeVariants: {
|
|
|
1128
1128
|
declare type IconSizeVariantsType = $Values<typeof IconSizeVariants>;
|
|
1129
1129
|
interface IconProps extends IconOptionProps {
|
|
1130
1130
|
}
|
|
1131
|
-
interface IconOptionProps extends SizeVariantProps<IconSizeVariantsType>, IconSourceProps, ColorTokenProps {
|
|
1132
|
-
dangerouslySetInnerHTML?: string;
|
|
1131
|
+
interface IconOptionProps extends SizeVariantProps<IconSizeVariantsType>, IconSourceProps, ColorTokenProps, Omit<HTMLAttributes<SVGSVGElement>, 'color'> {
|
|
1133
1132
|
}
|
|
1134
1133
|
declare type DangerouslySetInnerHTML = (string & {
|
|
1135
1134
|
__html: string | TrustedHTML;
|
package/dist/index.d.ts
CHANGED
|
@@ -1128,8 +1128,7 @@ declare const IconSizeVariants: {
|
|
|
1128
1128
|
declare type IconSizeVariantsType = $Values<typeof IconSizeVariants>;
|
|
1129
1129
|
interface IconProps extends IconOptionProps {
|
|
1130
1130
|
}
|
|
1131
|
-
interface IconOptionProps extends SizeVariantProps<IconSizeVariantsType>, IconSourceProps, ColorTokenProps {
|
|
1132
|
-
dangerouslySetInnerHTML?: string;
|
|
1131
|
+
interface IconOptionProps extends SizeVariantProps<IconSizeVariantsType>, IconSourceProps, ColorTokenProps, Omit<HTMLAttributes<SVGSVGElement>, 'color'> {
|
|
1133
1132
|
}
|
|
1134
1133
|
declare type DangerouslySetInnerHTML = (string & {
|
|
1135
1134
|
__html: string | TrustedHTML;
|
package/dist/index.js
CHANGED
|
@@ -1848,12 +1848,8 @@ var StyledIcon = styled6.svg`
|
|
|
1848
1848
|
}
|
|
1849
1849
|
`;
|
|
1850
1850
|
var Icon = forwardRef((_a, ref) => {
|
|
1851
|
-
var _b = _a, { iconSource
|
|
1852
|
-
|
|
1853
|
-
if (htmlContent && iconSource) {
|
|
1854
|
-
throw new Error("Icon: iconSource\uC640 dangerouslySetInnerHTML\uC740 \uB3D9\uC2DC\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");
|
|
1855
|
-
}
|
|
1856
|
-
return /* @__PURE__ */ jsx(StyledIcon, __spreadProps(__spreadValues({ as: iconSource, ref }, rest), { "data-shoplflow": "Icon", dangerouslySetInnerHTML: htmlContent }));
|
|
1851
|
+
var _b = _a, { iconSource } = _b, rest = __objRest(_b, ["iconSource"]);
|
|
1852
|
+
return /* @__PURE__ */ jsx(StyledIcon, __spreadProps(__spreadValues({ as: iconSource, ref }, rest), { "data-shoplflow": "Icon" }));
|
|
1857
1853
|
});
|
|
1858
1854
|
var Icon_default = Icon;
|
|
1859
1855
|
var DropdownButton = forwardRef(
|