@cyber-harbour/ui 1.0.29 → 1.0.30
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/Button/Button.tsx +1 -2
- package/src/Core/Typography/Typography.tsx +3 -1
package/package.json
CHANGED
|
@@ -109,10 +109,9 @@ const StyledButton = styled(createComponent('button'))<{
|
|
|
109
109
|
${getCss(getButtonStyles(theme, $variant, $color, 'disabled'))}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
svg {
|
|
112
|
+
${StyledIconWrapper} svg {
|
|
113
113
|
width: ${sizes.iconSize};
|
|
114
114
|
height: ${sizes.iconSize};
|
|
115
|
-
|
|
116
115
|
}
|
|
117
116
|
|
|
118
117
|
${
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { CSSProperties, ElementType
|
|
2
|
+
import { CSSProperties, ElementType } from 'react';
|
|
3
3
|
import { ColorVariant, createComponent, FabricComponent, TypographyVariant } from '../../Theme';
|
|
4
4
|
import { resolveThemeColor } from '../../Theme/utils';
|
|
5
5
|
|
|
@@ -40,6 +40,7 @@ export const Typography = ({
|
|
|
40
40
|
color,
|
|
41
41
|
className,
|
|
42
42
|
style,
|
|
43
|
+
...props
|
|
43
44
|
}: TypographyProps) => {
|
|
44
45
|
// Determine which HTML element to render based on the variant if not explicitly specified
|
|
45
46
|
const Element = element || (variant.startsWith('h') ? variant : 'p');
|
|
@@ -53,6 +54,7 @@ export const Typography = ({
|
|
|
53
54
|
$color={color}
|
|
54
55
|
className={className}
|
|
55
56
|
style={style}
|
|
57
|
+
{...props}
|
|
56
58
|
>
|
|
57
59
|
{children}
|
|
58
60
|
</StyledTypography>
|