@mw-kit/mw-ui 1.10.0 → 1.10.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.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9568,8 +9568,8 @@ var SVGContainer = import_styled_components7.default.div`
|
|
|
9568
9568
|
|
|
9569
9569
|
> svg,
|
|
9570
9570
|
> svg * {
|
|
9571
|
-
stroke: ${({ theme: theme4 }) => `var(--color, ${theme4.colors.grey})`};
|
|
9572
|
-
color: ${({ theme: theme4 }) => `var(--color, ${theme4.colors.grey})`};
|
|
9571
|
+
stroke: ${({ theme: theme4 }) => `var(--icon-color, ${theme4.colors.grey})`};
|
|
9572
|
+
color: ${({ theme: theme4 }) => `var(--icon-color, ${theme4.colors.grey})`};
|
|
9573
9573
|
|
|
9574
9574
|
${({ $hasStrokeWidth: hasStrokeWidth }) => hasStrokeWidth && import_styled_components7.css`
|
|
9575
9575
|
stroke-width: var(--stroke-width, unset);
|
|
@@ -9587,7 +9587,7 @@ var SVGContainer = import_styled_components7.default.div`
|
|
|
9587
9587
|
// src/components/Icon/index.tsx
|
|
9588
9588
|
var import_jsx_runtime293 = require("react/jsx-runtime");
|
|
9589
9589
|
var getColor2 = (c) => {
|
|
9590
|
-
if (!c) return
|
|
9590
|
+
if (!c) return theme3.colors.grey;
|
|
9591
9591
|
if (Array.isArray(c)) return theme3.getColor(...c);
|
|
9592
9592
|
return isKeyOf(theme3.colors, c) ? theme3.colors[c] : c;
|
|
9593
9593
|
};
|
|
@@ -9616,7 +9616,7 @@ var Icon = import_react8.default.forwardRef((props, ref) => {
|
|
|
9616
9616
|
$hasHeight: commonProps.height !== void 0,
|
|
9617
9617
|
$hasStrokeWidth: strokeWidth !== void 0,
|
|
9618
9618
|
style: {
|
|
9619
|
-
"--color": getColor2(color),
|
|
9619
|
+
"--icon-color": getColor2(color),
|
|
9620
9620
|
...getSizes({
|
|
9621
9621
|
width: DEFAULT_WIDTH,
|
|
9622
9622
|
...props
|
package/dist/index.mjs
CHANGED
|
@@ -9508,8 +9508,8 @@ var SVGContainer = styled4.div`
|
|
|
9508
9508
|
|
|
9509
9509
|
> svg,
|
|
9510
9510
|
> svg * {
|
|
9511
|
-
stroke: ${({ theme: theme4 }) => `var(--color, ${theme4.colors.grey})`};
|
|
9512
|
-
color: ${({ theme: theme4 }) => `var(--color, ${theme4.colors.grey})`};
|
|
9511
|
+
stroke: ${({ theme: theme4 }) => `var(--icon-color, ${theme4.colors.grey})`};
|
|
9512
|
+
color: ${({ theme: theme4 }) => `var(--icon-color, ${theme4.colors.grey})`};
|
|
9513
9513
|
|
|
9514
9514
|
${({ $hasStrokeWidth: hasStrokeWidth }) => hasStrokeWidth && css6`
|
|
9515
9515
|
stroke-width: var(--stroke-width, unset);
|
|
@@ -9527,7 +9527,7 @@ var SVGContainer = styled4.div`
|
|
|
9527
9527
|
// src/components/Icon/index.tsx
|
|
9528
9528
|
import { jsx as jsx293 } from "react/jsx-runtime";
|
|
9529
9529
|
var getColor2 = (c) => {
|
|
9530
|
-
if (!c) return
|
|
9530
|
+
if (!c) return theme3.colors.grey;
|
|
9531
9531
|
if (Array.isArray(c)) return theme3.getColor(...c);
|
|
9532
9532
|
return isKeyOf(theme3.colors, c) ? theme3.colors[c] : c;
|
|
9533
9533
|
};
|
|
@@ -9556,7 +9556,7 @@ var Icon = React290.forwardRef((props, ref) => {
|
|
|
9556
9556
|
$hasHeight: commonProps.height !== void 0,
|
|
9557
9557
|
$hasStrokeWidth: strokeWidth !== void 0,
|
|
9558
9558
|
style: {
|
|
9559
|
-
"--color": getColor2(color),
|
|
9559
|
+
"--icon-color": getColor2(color),
|
|
9560
9560
|
...getSizes({
|
|
9561
9561
|
width: DEFAULT_WIDTH,
|
|
9562
9562
|
...props
|