@pushwoosh/kit-typography 1.8.6 → 1.8.7

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.
@@ -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): JSX.Element;
4
+ export declare function Code(props: CodeProps): ReactElement;
@@ -1,6 +1,6 @@
1
- import type React from 'react';
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?: React.Ref<HTMLDivElement>;
5
- readonly children: React.ReactNode;
4
+ readonly boxRef?: Ref<HTMLDivElement>;
5
+ readonly children: ReactNode;
6
6
  };
@@ -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): JSX.Element;
4
+ export declare function Footnote(props: FootnoteProps): ReactElement;
@@ -1,6 +1,6 @@
1
- import type React from 'react';
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?: React.Ref<HTMLDivElement>;
5
- readonly children: React.ReactNode;
4
+ readonly boxRef?: Ref<HTMLDivElement>;
5
+ readonly children: ReactNode;
6
6
  };
@@ -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): JSX.Element;
4
+ export declare function H1(props: H1Props): ReactElement;
package/h1/h1.types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type React from 'react';
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?: React.Ref<HTMLHeadingElement>;
5
- readonly children: React.ReactNode;
4
+ readonly boxRef?: Ref<HTMLHeadingElement>;
5
+ readonly children: ReactNode;
6
6
  };
@@ -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): JSX.Element;
4
+ export declare function H2(props: H2Props): ReactElement;
package/h2/h2.types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type React from 'react';
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?: React.Ref<HTMLHeadingElement>;
5
- readonly children: React.ReactNode;
4
+ readonly boxRef?: Ref<HTMLHeadingElement>;
5
+ readonly children: ReactNode;
6
6
  };
@@ -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): JSX.Element;
4
+ export declare function H3(props: H3Props): ReactElement;
package/h3/h3.types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type React from 'react';
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?: React.Ref<HTMLHeadingElement>;
5
- readonly children: React.ReactNode;
4
+ readonly boxRef?: Ref<HTMLHeadingElement>;
5
+ readonly children: ReactNode;
6
6
  };
@@ -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): JSX.Element;
4
+ export declare function H4(props: H4Props): ReactElement;
package/h4/h4.types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type React from 'react';
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?: React.Ref<HTMLHeadingElement>;
5
- readonly children: React.ReactNode;
4
+ readonly boxRef?: Ref<HTMLHeadingElement>;
5
+ readonly children: ReactNode;
6
6
  };
@@ -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): JSX.Element;
4
+ export declare function H5(props: H5Props): ReactElement;
package/h5/h5.types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type React from 'react';
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?: React.Ref<HTMLHeadingElement>;
5
- readonly children: React.ReactNode;
4
+ readonly boxRef?: Ref<HTMLHeadingElement>;
5
+ readonly children: ReactNode;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/kit-typography",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
4
4
  "description": "React component for build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -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): JSX.Element;
4
+ export declare function Paragraph(props: ParagraphProps): ReactElement;
@@ -1,6 +1,6 @@
1
- import type React from 'react';
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?: React.Ref<HTMLParagraphElement>;
5
- readonly children: React.ReactNode;
4
+ readonly boxRef?: Ref<HTMLParagraphElement>;
5
+ readonly children: ReactNode;
6
6
  };