@pushwoosh/kit-typography 1.8.7 → 1.10.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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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 +4 -5
- package/paragraph/index.d.ts +1 -1
- package/paragraph/index.js +1 -1
- package/paragraph/paragraph.component.js +1 -1
- 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.js
CHANGED
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,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 {
|
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.js
CHANGED
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.js
CHANGED
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.js
CHANGED
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.js
CHANGED
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.js
CHANGED
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.10.0",
|
|
4
4
|
"description": "React component for build Pushwoosh products",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -11,19 +11,18 @@
|
|
|
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",
|
|
26
|
-
"styled-components": "
|
|
25
|
+
"styled-components": "^6.5.3"
|
|
27
26
|
},
|
|
28
27
|
"engines": {
|
|
29
28
|
"node": ">= 24"
|
package/paragraph/index.d.ts
CHANGED
package/paragraph/index.js
CHANGED
|
@@ -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 {
|
|
@@ -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