@true-engineering/true-react-common-ui-kit 3.0.0-alpha.1 → 3.0.0-alpha.2
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/hooks/index.d.ts +1 -0
- package/dist/hooks/use-mixed-styles.d.ts +1 -0
- package/dist/true-react-common-ui-kit.js +10 -0
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +10 -0
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Checkbox/Checkbox.styles.ts +1 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-mixed-styles.ts +14 -0
|
@@ -4088,6 +4088,14 @@
|
|
|
4088
4088
|
};
|
|
4089
4089
|
}, dependencies);
|
|
4090
4090
|
};
|
|
4091
|
+
var useMixedStyles = function(baseStyles, tweakStyles) {
|
|
4092
|
+
return React.useMemo(function() {
|
|
4093
|
+
return trueReactPlatformHelpers.isNotEmpty(baseStyles) && trueReactPlatformHelpers.isNotEmpty(tweakStyles) ? trueReactPlatformHelpers.mergeStyles(baseStyles, tweakStyles) : baseStyles !== null && baseStyles !== void 0 ? baseStyles : tweakStyles;
|
|
4094
|
+
}, [
|
|
4095
|
+
baseStyles,
|
|
4096
|
+
tweakStyles
|
|
4097
|
+
]);
|
|
4098
|
+
};
|
|
4091
4099
|
const avatarGreen = ` <svg\r
|
|
4092
4100
|
width="100%"\r
|
|
4093
4101
|
height="100%"\r
|
|
@@ -6187,6 +6195,7 @@
|
|
|
6187
6195
|
root: {
|
|
6188
6196
|
cursor: "pointer",
|
|
6189
6197
|
display: "flex",
|
|
6198
|
+
alignItems: "center",
|
|
6190
6199
|
gap: 14,
|
|
6191
6200
|
width: "fit-content"
|
|
6192
6201
|
},
|
|
@@ -28645,6 +28654,7 @@
|
|
|
28645
28654
|
exports2.useDidMountEffect = useDidMountEffect;
|
|
28646
28655
|
exports2.useDropdown = useDropdown;
|
|
28647
28656
|
exports2.useIsMounted = useIsMounted;
|
|
28657
|
+
exports2.useMixedStyles = useMixedStyles;
|
|
28648
28658
|
exports2.useOnClickOutside = useOnClickOutside;
|
|
28649
28659
|
exports2.useOnClickOutsideWithRef = useOnClickOutsideWithRef;
|
|
28650
28660
|
exports2.useTweakStyles = useTweakStyles;
|