@soul-refiner/design-system 0.2.3 → 0.2.4
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.
|
@@ -7,5 +7,6 @@ export interface CommonProps extends TypographyProps {
|
|
|
7
7
|
export interface ParagraphProps extends CommonProps {
|
|
8
8
|
$fontSize?: 10 | 11 | 12 | 14 | 16;
|
|
9
9
|
$lineHeight?: 14 | 16 | 20 | 24;
|
|
10
|
+
$sx?: string;
|
|
10
11
|
}
|
|
11
|
-
export declare const P: ({ as, children, $fontSize, $lineHeight, $textAlign, ...rest }: ParagraphProps) => React.JSX.Element;
|
|
12
|
+
export declare const P: ({ as, children, $fontSize, $lineHeight, $textAlign, sx, ...rest }: ParagraphProps) => React.JSX.Element;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { Styles } from '../../../common';
|
|
5
|
-
export const P = ({ as = 'p', children, $fontSize = 16, $lineHeight = 24, $textAlign = 'left', ...rest }) => (React.createElement(StyledP, { as: as, "$fontSize": $fontSize, "$lineHeight": $lineHeight, "$textAlign": $textAlign, ...rest }, children));
|
|
5
|
+
export const P = ({ as = 'p', children, $fontSize = 16, $lineHeight = 24, $textAlign = 'left', sx, ...rest }) => (React.createElement(StyledP, { as: as, "$fontSize": $fontSize, "$lineHeight": $lineHeight, "$textAlign": $textAlign, "$sx": sx, ...rest }, children));
|
|
6
6
|
const StyledP = styled.p `
|
|
7
7
|
margin: 0px;
|
|
8
8
|
font-family: Inter;
|
|
@@ -14,4 +14,5 @@ const StyledP = styled.p `
|
|
|
14
14
|
${Styles.typography}
|
|
15
15
|
${Styles.styleable}
|
|
16
16
|
${({ $textClampLines }) => ($textClampLines ? Styles.textClamp : '')}
|
|
17
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
17
18
|
`;
|