@pushwoosh/kit-typography 1.8.6 → 1.9.0
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/code/code.component.d.ts +2 -1
- package/code/code.component.js +1 -1
- package/code/code.types.d.ts +3 -3
- package/code/index.d.ts +1 -1
- package/code/index.js +1 -1
- package/code/styles.d.ts +4 -0
- package/code/{code.styles.js → styles.js} +1 -1
- package/footnote/footnote.component.d.ts +2 -1
- package/footnote/footnote.component.js +1 -1
- package/footnote/footnote.types.d.ts +3 -3
- package/footnote/index.d.ts +1 -1
- package/footnote/index.js +1 -1
- package/footnote/styles.d.ts +4 -0
- package/footnote/{footnote.styles.js → styles.js} +1 -1
- package/global-styles/global-styles.component.d.ts +1 -1
- package/h1/h1.component.d.ts +2 -1
- package/h1/h1.component.js +1 -1
- package/h1/h1.types.d.ts +3 -3
- package/h1/index.d.ts +1 -1
- package/h1/index.js +1 -1
- package/h1/styles.d.ts +4 -0
- package/h1/{h1.styles.js → styles.js} +1 -1
- package/h2/h2.component.d.ts +2 -1
- package/h2/h2.component.js +1 -1
- package/h2/h2.types.d.ts +3 -3
- package/h2/index.d.ts +1 -1
- package/h2/index.js +1 -1
- package/h2/styles.d.ts +4 -0
- package/h2/{h2.styles.js → styles.js} +1 -1
- package/h3/h3.component.d.ts +2 -1
- package/h3/h3.component.js +1 -1
- package/h3/h3.types.d.ts +3 -3
- package/h3/index.d.ts +1 -1
- package/h3/index.js +1 -1
- package/h3/styles.d.ts +4 -0
- package/h3/{h3.styles.js → styles.js} +1 -1
- package/h4/h4.component.d.ts +2 -1
- package/h4/h4.component.js +1 -1
- package/h4/h4.types.d.ts +3 -3
- package/h4/index.d.ts +1 -1
- package/h4/index.js +1 -1
- package/h4/styles.d.ts +4 -0
- package/h4/{h4.styles.js → styles.js} +1 -1
- package/h5/h5.component.d.ts +2 -1
- package/h5/h5.component.js +1 -1
- package/h5/h5.types.d.ts +3 -3
- package/h5/index.d.ts +1 -1
- package/h5/index.js +1 -1
- package/h5/styles.d.ts +4 -0
- package/h5/{h5.styles.js → styles.js} +1 -1
- package/package.json +3 -4
- package/paragraph/index.d.ts +1 -1
- package/paragraph/index.js +1 -1
- package/paragraph/paragraph.component.d.ts +2 -1
- package/paragraph/paragraph.component.js +1 -1
- package/paragraph/paragraph.types.d.ts +3 -3
- package/paragraph/styles.d.ts +4 -0
- package/paragraph/{paragraph.styles.js → styles.js} +1 -1
- package/text/Text.d.ts +4 -2
- package/code/code.styles.d.ts +0 -2
- package/footnote/footnote.styles.d.ts +0 -2
- package/h1/h1.styles.d.ts +0 -2
- package/h2/h2.styles.d.ts +0 -2
- package/h3/h3.styles.d.ts +0 -2
- package/h4/h4.styles.d.ts +0 -2
- package/h5/h5.styles.d.ts +0 -2
- package/paragraph/paragraph.styles.d.ts +0 -2
package/code/code.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
1
2
|
import { type CodeProps } from './code.types';
|
|
2
3
|
/** Monospaced text block — renders `<div>` with the `code` typography variant. */
|
|
3
|
-
export declare function Code(props: CodeProps):
|
|
4
|
+
export declare function Code(props: CodeProps): ReactElement;
|
package/code/code.component.js
CHANGED
package/code/code.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { JSX, ReactNode, Ref } from 'react';
|
|
2
2
|
/** Props of {@link Code}: every `<div>` attribute plus `boxRef` — `ref` is taken by the wrapper. */
|
|
3
3
|
export type CodeProps = Omit<JSX.IntrinsicElements['div'], 'ref'> & {
|
|
4
|
-
readonly boxRef?:
|
|
5
|
-
readonly children:
|
|
4
|
+
readonly boxRef?: Ref<HTMLDivElement>;
|
|
5
|
+
readonly children: ReactNode;
|
|
6
6
|
};
|
package/code/index.d.ts
CHANGED
package/code/index.js
CHANGED
package/code/styles.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Styled `<div>` behind {@link Code}; use it when you need to extend the styles. */
|
|
2
|
+
export declare const CodeBox: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
|
+
}> & string;
|
|
@@ -3,6 +3,6 @@ import { variants } from '../map';
|
|
|
3
3
|
/** Styled `<div>` behind {@link Code}; use it when you need to extend the styles. */
|
|
4
4
|
export const CodeBox = styled.div.withConfig({
|
|
5
5
|
displayName: "CodeBox",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-fzmnuy-0"
|
|
7
7
|
})(["", ""], variants.code);
|
|
8
8
|
CodeBox.displayName = 'CodeBox';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
1
2
|
import { type FootnoteProps } from './footnote.types';
|
|
2
3
|
/** Small secondary text — renders `<div>` with the `footnote` typography variant. */
|
|
3
|
-
export declare function Footnote(props: FootnoteProps):
|
|
4
|
+
export declare function Footnote(props: FootnoteProps): ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { FootnoteBox } from './
|
|
2
|
+
import { FootnoteBox } from './styles';
|
|
3
3
|
/** Small secondary text — renders `<div>` with the `footnote` typography variant. */
|
|
4
4
|
export function Footnote(props) {
|
|
5
5
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { JSX, ReactNode, Ref } from 'react';
|
|
2
2
|
/** Props of {@link Footnote}: every `<div>` attribute plus `boxRef` — `ref` is taken by the wrapper. */
|
|
3
3
|
export type FootnoteProps = Omit<JSX.IntrinsicElements['div'], 'ref'> & {
|
|
4
|
-
readonly boxRef?:
|
|
5
|
-
readonly children:
|
|
4
|
+
readonly boxRef?: Ref<HTMLDivElement>;
|
|
5
|
+
readonly children: ReactNode;
|
|
6
6
|
};
|
package/footnote/index.d.ts
CHANGED
package/footnote/index.js
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Styled `<div>` behind {@link Footnote}; use it when you need to extend the styles. */
|
|
2
|
+
export declare const FootnoteBox: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
|
+
}> & string;
|
|
@@ -3,6 +3,6 @@ import { variants } from '../map';
|
|
|
3
3
|
/** Styled `<div>` behind {@link Footnote}; use it when you need to extend the styles. */
|
|
4
4
|
export const FootnoteBox = styled.div.withConfig({
|
|
5
5
|
displayName: "FootnoteBox",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-f46k3r-0"
|
|
7
7
|
})(["", ""], variants.footnote);
|
|
8
8
|
FootnoteBox.displayName = 'FootnoteBox';
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* App-wide baseline, mounted once at the app root: border-box sizing, body typography and link colours
|
|
3
3
|
* from the kit tokens, antialiased smoothing, and a cleared focus outline on `button` and `a`.
|
|
4
4
|
*/
|
|
5
|
-
export declare const GlobalStyles: import("
|
|
5
|
+
export declare const GlobalStyles: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
package/h1/h1.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
1
2
|
import { type H1Props } from './h1.types';
|
|
2
3
|
/** Page title — renders `<h1>` with the `h1` typography variant. */
|
|
3
|
-
export declare function H1(props: H1Props):
|
|
4
|
+
export declare function H1(props: H1Props): ReactElement;
|
package/h1/h1.component.js
CHANGED
package/h1/h1.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { JSX, ReactNode, Ref } from 'react';
|
|
2
2
|
/** Props of {@link H1}: every `<h1>` attribute plus `boxRef` — `ref` is taken by the wrapper. */
|
|
3
3
|
export type H1Props = Omit<JSX.IntrinsicElements['h1'], 'ref'> & {
|
|
4
|
-
readonly boxRef?:
|
|
5
|
-
readonly children:
|
|
4
|
+
readonly boxRef?: Ref<HTMLHeadingElement>;
|
|
5
|
+
readonly children: ReactNode;
|
|
6
6
|
};
|
package/h1/index.d.ts
CHANGED
package/h1/index.js
CHANGED
package/h1/styles.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Styled `<h1>` behind {@link H1}; use it when you need to extend the styles. */
|
|
2
|
+
export declare const H1Box: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
|
+
}> & string;
|
|
@@ -3,6 +3,6 @@ import { variants } from '../map';
|
|
|
3
3
|
/** Styled `<h1>` behind {@link H1}; use it when you need to extend the styles. */
|
|
4
4
|
export const H1Box = styled.h1.withConfig({
|
|
5
5
|
displayName: "H1Box",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-58pfxn-0"
|
|
7
7
|
})(["margin:0;", ""], variants.h1);
|
|
8
8
|
H1Box.displayName = 'H1Box';
|
package/h2/h2.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
1
2
|
import { type H2Props } from './h2.types';
|
|
2
3
|
/** Section heading — renders `<h2>` with the `h2` typography variant. */
|
|
3
|
-
export declare function H2(props: H2Props):
|
|
4
|
+
export declare function H2(props: H2Props): ReactElement;
|
package/h2/h2.component.js
CHANGED
package/h2/h2.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { JSX, ReactNode, Ref } from 'react';
|
|
2
2
|
/** Props of {@link H2}: every `<h2>` attribute plus `boxRef` — `ref` is taken by the wrapper. */
|
|
3
3
|
export type H2Props = Omit<JSX.IntrinsicElements['h2'], 'ref'> & {
|
|
4
|
-
readonly boxRef?:
|
|
5
|
-
readonly children:
|
|
4
|
+
readonly boxRef?: Ref<HTMLHeadingElement>;
|
|
5
|
+
readonly children: ReactNode;
|
|
6
6
|
};
|
package/h2/index.d.ts
CHANGED
package/h2/index.js
CHANGED
package/h2/styles.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Styled `<h2>` behind {@link H2}; use it when you need to extend the styles. */
|
|
2
|
+
export declare const H2Box: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
|
+
}> & string;
|
|
@@ -3,6 +3,6 @@ import { variants } from '../map';
|
|
|
3
3
|
/** Styled `<h2>` behind {@link H2}; use it when you need to extend the styles. */
|
|
4
4
|
export const H2Box = styled.h2.withConfig({
|
|
5
5
|
displayName: "H2Box",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-1a137gg-0"
|
|
7
7
|
})(["margin:0;", ""], variants.h2);
|
|
8
8
|
H2Box.displayName = 'H2Box';
|
package/h3/h3.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
1
2
|
import { type H3Props } from './h3.types';
|
|
2
3
|
/** Sub-section heading — renders `<h3>` with the `h3` typography variant. */
|
|
3
|
-
export declare function H3(props: H3Props):
|
|
4
|
+
export declare function H3(props: H3Props): ReactElement;
|
package/h3/h3.component.js
CHANGED
package/h3/h3.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { JSX, ReactNode, Ref } from 'react';
|
|
2
2
|
/** Props of {@link H3}: every `<h3>` attribute plus `boxRef` — `ref` is taken by the wrapper. */
|
|
3
3
|
export type H3Props = Omit<JSX.IntrinsicElements['h3'], 'ref'> & {
|
|
4
|
-
readonly boxRef?:
|
|
5
|
-
readonly children:
|
|
4
|
+
readonly boxRef?: Ref<HTMLHeadingElement>;
|
|
5
|
+
readonly children: ReactNode;
|
|
6
6
|
};
|
package/h3/index.d.ts
CHANGED
package/h3/index.js
CHANGED
package/h3/styles.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Styled `<h3>` behind {@link H3}; use it when you need to extend the styles. */
|
|
2
|
+
export declare const H3Box: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
|
+
}> & string;
|
|
@@ -3,6 +3,6 @@ import { variants } from '../map';
|
|
|
3
3
|
/** Styled `<h3>` behind {@link H3}; use it when you need to extend the styles. */
|
|
4
4
|
export const H3Box = styled.h3.withConfig({
|
|
5
5
|
displayName: "H3Box",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-4j45cg-0"
|
|
7
7
|
})(["margin:0;", ""], variants.h3);
|
|
8
8
|
H3Box.displayName = 'H3Box';
|
package/h4/h4.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
1
2
|
import { type H4Props } from './h4.types';
|
|
2
3
|
/** Small heading — renders `<h4>` with the `h4` typography variant. */
|
|
3
|
-
export declare function H4(props: H4Props):
|
|
4
|
+
export declare function H4(props: H4Props): ReactElement;
|
package/h4/h4.component.js
CHANGED
package/h4/h4.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { JSX, ReactNode, Ref } from 'react';
|
|
2
2
|
/** Props of {@link H4}: every `<h4>` attribute plus `boxRef` — `ref` is taken by the wrapper. */
|
|
3
3
|
export type H4Props = Omit<JSX.IntrinsicElements['h4'], 'ref'> & {
|
|
4
|
-
readonly boxRef?:
|
|
5
|
-
readonly children:
|
|
4
|
+
readonly boxRef?: Ref<HTMLHeadingElement>;
|
|
5
|
+
readonly children: ReactNode;
|
|
6
6
|
};
|
package/h4/index.d.ts
CHANGED
package/h4/index.js
CHANGED
package/h4/styles.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Styled `<h4>` behind {@link H4}; use it when you need to extend the styles. */
|
|
2
|
+
export declare const H4Box: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
|
+
}> & string;
|
|
@@ -3,6 +3,6 @@ import { variants } from '../map';
|
|
|
3
3
|
/** Styled `<h4>` behind {@link H4}; use it when you need to extend the styles. */
|
|
4
4
|
export const H4Box = styled.h4.withConfig({
|
|
5
5
|
displayName: "H4Box",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-1eb3cj5-0"
|
|
7
7
|
})(["margin:0;", ""], variants.h4);
|
|
8
8
|
H4Box.displayName = 'H4Box';
|
package/h5/h5.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
1
2
|
import { type H5Props } from './h5.types';
|
|
2
3
|
/** Smallest heading, rendered uppercase — renders `<h5>` with the `h5` typography variant. */
|
|
3
|
-
export declare function H5(props: H5Props):
|
|
4
|
+
export declare function H5(props: H5Props): ReactElement;
|
package/h5/h5.component.js
CHANGED
package/h5/h5.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { JSX, ReactNode, Ref } from 'react';
|
|
2
2
|
/** Props of {@link H5}: every `<h5>` attribute plus `boxRef` — `ref` is taken by the wrapper. */
|
|
3
3
|
export type H5Props = Omit<JSX.IntrinsicElements['h5'], 'ref'> & {
|
|
4
|
-
readonly boxRef?:
|
|
5
|
-
readonly children:
|
|
4
|
+
readonly boxRef?: Ref<HTMLHeadingElement>;
|
|
5
|
+
readonly children: ReactNode;
|
|
6
6
|
};
|
package/h5/index.d.ts
CHANGED
package/h5/index.js
CHANGED
package/h5/styles.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Styled `<h5>` behind {@link H5}; use it when you need to extend the styles. */
|
|
2
|
+
export declare const H5Box: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
|
+
}> & string;
|
|
@@ -3,6 +3,6 @@ import { variants } from '../map';
|
|
|
3
3
|
/** Styled `<h5>` behind {@link H5}; use it when you need to extend the styles. */
|
|
4
4
|
export const H5Box = styled.h5.withConfig({
|
|
5
5
|
displayName: "H5Box",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-uuwth8-0"
|
|
7
7
|
})(["margin:0;", " text-transform:uppercase;"], variants.h5);
|
|
8
8
|
H5Box.displayName = 'H5Box';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/kit-typography",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "React component for build Pushwoosh products",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -11,15 +11,14 @@
|
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@pushwoosh/kit-constants": "^2.1.
|
|
14
|
+
"@pushwoosh/kit-constants": "^2.1.1"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/react": "^18.3.31",
|
|
18
18
|
"@types/react-dom": "^18.3.7",
|
|
19
|
-
"@types/styled-components": "^5.1.34",
|
|
20
19
|
"react": "^18.3.1",
|
|
21
20
|
"react-dom": "^18.3.1",
|
|
22
|
-
"styled-components": "^5.3
|
|
21
|
+
"styled-components": "^6.5.3"
|
|
23
22
|
},
|
|
24
23
|
"peerDependencies": {
|
|
25
24
|
"react": ">=18.0.0",
|
package/paragraph/index.d.ts
CHANGED
package/paragraph/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
1
2
|
import { type ParagraphProps } from './paragraph.types';
|
|
2
3
|
/** Body text — renders `<p>` with the `standard` variant; consecutive paragraphs get a top margin. */
|
|
3
|
-
export declare function Paragraph(props: ParagraphProps):
|
|
4
|
+
export declare function Paragraph(props: ParagraphProps): ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ParagraphBox } from './
|
|
2
|
+
import { ParagraphBox } from './styles';
|
|
3
3
|
/** Body text — renders `<p>` with the `standard` variant; consecutive paragraphs get a top margin. */
|
|
4
4
|
export function Paragraph(props) {
|
|
5
5
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { JSX, ReactNode, Ref } from 'react';
|
|
2
2
|
/** Props of {@link Paragraph}: every `<p>` attribute plus `boxRef` — `ref` is taken by the wrapper. */
|
|
3
3
|
export type ParagraphProps = Omit<JSX.IntrinsicElements['p'], 'ref'> & {
|
|
4
|
-
readonly boxRef?:
|
|
5
|
-
readonly children:
|
|
4
|
+
readonly boxRef?: Ref<HTMLParagraphElement>;
|
|
5
|
+
readonly children: ReactNode;
|
|
6
6
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Styled `<p>` behind {@link Paragraph}; use it when you need to extend the styles. */
|
|
2
|
+
export declare const ParagraphBox: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
|
+
}> & string;
|
|
@@ -3,6 +3,6 @@ import { variants } from '../map';
|
|
|
3
3
|
/** Styled `<p>` behind {@link Paragraph}; use it when you need to extend the styles. */
|
|
4
4
|
export const ParagraphBox = styled.p.withConfig({
|
|
5
5
|
displayName: "ParagraphBox",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-6035vo-0"
|
|
7
7
|
})(["margin:0;", " & + &{margin:0.5em 0 0;}"], variants.standard);
|
|
8
8
|
ParagraphBox.displayName = 'ParagraphBox';
|
package/text/Text.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import { type TypographyVariant } from '../map';
|
|
|
3
3
|
* Inline text in any typography variant: `$variant`, plus `$color`, `$uppercase` and `$ellipsis`.
|
|
4
4
|
* `$ellipsis` needs a bounded width — it makes the span `inline-block` at `max-width: 100%`.
|
|
5
5
|
*/
|
|
6
|
-
export declare const Text: import("styled-components").
|
|
6
|
+
export declare const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
8
|
+
}, {
|
|
7
9
|
$color?: string;
|
|
8
10
|
$uppercase?: boolean;
|
|
9
11
|
$ellipsis?: boolean;
|
|
10
12
|
$variant?: TypographyVariant;
|
|
11
|
-
}
|
|
13
|
+
}>> & string;
|
package/code/code.styles.d.ts
DELETED
package/h1/h1.styles.d.ts
DELETED
package/h2/h2.styles.d.ts
DELETED
package/h3/h3.styles.d.ts
DELETED
package/h4/h4.styles.d.ts
DELETED
package/h5/h5.styles.d.ts
DELETED