@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.
Files changed (67) hide show
  1. package/code/code.component.d.ts +2 -1
  2. package/code/code.component.js +1 -1
  3. package/code/code.types.d.ts +3 -3
  4. package/code/index.d.ts +1 -1
  5. package/code/index.js +1 -1
  6. package/code/styles.d.ts +4 -0
  7. package/code/{code.styles.js → styles.js} +1 -1
  8. package/footnote/footnote.component.d.ts +2 -1
  9. package/footnote/footnote.component.js +1 -1
  10. package/footnote/footnote.types.d.ts +3 -3
  11. package/footnote/index.d.ts +1 -1
  12. package/footnote/index.js +1 -1
  13. package/footnote/styles.d.ts +4 -0
  14. package/footnote/{footnote.styles.js → styles.js} +1 -1
  15. package/global-styles/global-styles.component.d.ts +1 -1
  16. package/h1/h1.component.d.ts +2 -1
  17. package/h1/h1.component.js +1 -1
  18. package/h1/h1.types.d.ts +3 -3
  19. package/h1/index.d.ts +1 -1
  20. package/h1/index.js +1 -1
  21. package/h1/styles.d.ts +4 -0
  22. package/h1/{h1.styles.js → styles.js} +1 -1
  23. package/h2/h2.component.d.ts +2 -1
  24. package/h2/h2.component.js +1 -1
  25. package/h2/h2.types.d.ts +3 -3
  26. package/h2/index.d.ts +1 -1
  27. package/h2/index.js +1 -1
  28. package/h2/styles.d.ts +4 -0
  29. package/h2/{h2.styles.js → styles.js} +1 -1
  30. package/h3/h3.component.d.ts +2 -1
  31. package/h3/h3.component.js +1 -1
  32. package/h3/h3.types.d.ts +3 -3
  33. package/h3/index.d.ts +1 -1
  34. package/h3/index.js +1 -1
  35. package/h3/styles.d.ts +4 -0
  36. package/h3/{h3.styles.js → styles.js} +1 -1
  37. package/h4/h4.component.d.ts +2 -1
  38. package/h4/h4.component.js +1 -1
  39. package/h4/h4.types.d.ts +3 -3
  40. package/h4/index.d.ts +1 -1
  41. package/h4/index.js +1 -1
  42. package/h4/styles.d.ts +4 -0
  43. package/h4/{h4.styles.js → styles.js} +1 -1
  44. package/h5/h5.component.d.ts +2 -1
  45. package/h5/h5.component.js +1 -1
  46. package/h5/h5.types.d.ts +3 -3
  47. package/h5/index.d.ts +1 -1
  48. package/h5/index.js +1 -1
  49. package/h5/styles.d.ts +4 -0
  50. package/h5/{h5.styles.js → styles.js} +1 -1
  51. package/package.json +3 -4
  52. package/paragraph/index.d.ts +1 -1
  53. package/paragraph/index.js +1 -1
  54. package/paragraph/paragraph.component.d.ts +2 -1
  55. package/paragraph/paragraph.component.js +1 -1
  56. package/paragraph/paragraph.types.d.ts +3 -3
  57. package/paragraph/styles.d.ts +4 -0
  58. package/paragraph/{paragraph.styles.js → styles.js} +1 -1
  59. package/text/Text.d.ts +4 -2
  60. package/code/code.styles.d.ts +0 -2
  61. package/footnote/footnote.styles.d.ts +0 -2
  62. package/h1/h1.styles.d.ts +0 -2
  63. package/h2/h2.styles.d.ts +0 -2
  64. package/h3/h3.styles.d.ts +0 -2
  65. package/h4/h4.styles.d.ts +0 -2
  66. package/h5/h5.styles.d.ts +0 -2
  67. package/paragraph/paragraph.styles.d.ts +0 -2
@@ -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,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { CodeBox } from './code.styles';
2
+ import { CodeBox } from './styles';
3
3
  /** Monospaced text block — renders `<div>` with the `code` typography variant. */
4
4
  export function Code(props) {
5
5
  const {
@@ -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
  };
package/code/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './code.component';
2
- export * from './code.styles';
2
+ export * from './styles';
3
3
  export * from './code.types';
package/code/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './code.component';
2
- export * from './code.styles';
2
+ export * from './styles';
3
3
  export * from './code.types';
@@ -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-15hd43f-0"
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): JSX.Element;
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 './footnote.styles';
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 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,3 @@
1
1
  export * from './footnote.component';
2
- export * from './footnote.styles';
2
+ export * from './styles';
3
3
  export * from './footnote.types';
package/footnote/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './footnote.component';
2
- export * from './footnote.styles';
2
+ export * from './styles';
3
3
  export * from './footnote.types';
@@ -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-1yebxfg-0"
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("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
5
+ export declare const GlobalStyles: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { H1Box } from './h1.styles';
2
+ import { H1Box } from './styles';
3
3
  /** Page title — renders `<h1>` with the `h1` typography variant. */
4
4
  export function H1(props) {
5
5
  const {
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
  };
package/h1/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './h1.component';
2
- export * from './h1.styles';
2
+ export * from './styles';
3
3
  export * from './h1.types';
package/h1/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './h1.component';
2
- export * from './h1.styles';
2
+ export * from './styles';
3
3
  export * from './h1.types';
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-nenzzw-0"
6
+ componentId: "sc-58pfxn-0"
7
7
  })(["margin:0;", ""], variants.h1);
8
8
  H1Box.displayName = 'H1Box';
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { H2Box } from './h2.styles';
2
+ import { H2Box } from './styles';
3
3
  /** Section heading — renders `<h2>` with the `h2` typography variant. */
4
4
  export function H2(props) {
5
5
  const {
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
  };
package/h2/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './h2.component';
2
- export * from './h2.styles';
2
+ export * from './styles';
3
3
  export * from './h2.types';
package/h2/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './h2.component';
2
- export * from './h2.styles';
2
+ export * from './styles';
3
3
  export * from './h2.types';
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-ev7pmn-0"
6
+ componentId: "sc-1a137gg-0"
7
7
  })(["margin:0;", ""], variants.h2);
8
8
  H2Box.displayName = 'H2Box';
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { H3Box } from './h3.styles';
2
+ import { H3Box } from './styles';
3
3
  /** Sub-section heading — renders `<h3>` with the `h3` typography variant. */
4
4
  export function H3(props) {
5
5
  const {
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
  };
package/h3/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './h3.component';
2
- export * from './h3.styles';
2
+ export * from './styles';
3
3
  export * from './h3.types';
package/h3/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './h3.component';
2
- export * from './h3.styles';
2
+ export * from './styles';
3
3
  export * from './h3.types';
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-mhts3r-0"
6
+ componentId: "sc-4j45cg-0"
7
7
  })(["margin:0;", ""], variants.h3);
8
8
  H3Box.displayName = 'H3Box';
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { H4Box } from './h4.styles';
2
+ import { H4Box } from './styles';
3
3
  /** Small heading — renders `<h4>` with the `h4` typography variant. */
4
4
  export function H4(props) {
5
5
  const {
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
  };
package/h4/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './h4.component';
2
- export * from './h4.styles';
2
+ export * from './styles';
3
3
  export * from './h4.types';
package/h4/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './h4.component';
2
- export * from './h4.styles';
2
+ export * from './styles';
3
3
  export * from './h4.types';
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-1178dfn-0"
6
+ componentId: "sc-1eb3cj5-0"
7
7
  })(["margin:0;", ""], variants.h4);
8
8
  H4Box.displayName = 'H4Box';
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { H5Box } from './h5.styles';
2
+ import { H5Box } from './styles';
3
3
  /** Smallest heading, rendered uppercase — renders `<h5>` with the `h5` typography variant. */
4
4
  export function H5(props) {
5
5
  const {
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/h5/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './h5.component';
2
- export * from './h5.styles';
2
+ export * from './styles';
3
3
  export * from './h5.types';
package/h5/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './h5.component';
2
- export * from './h5.styles';
2
+ export * from './styles';
3
3
  export * from './h5.types';
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-1nc3vby-0"
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.8.6",
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.0"
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.11"
21
+ "styled-components": "^6.5.3"
23
22
  },
24
23
  "peerDependencies": {
25
24
  "react": ">=18.0.0",
@@ -1,3 +1,3 @@
1
1
  export * from './paragraph.component';
2
- export * from './paragraph.styles';
2
+ export * from './styles';
3
3
  export * from './paragraph.types';
@@ -1,3 +1,3 @@
1
1
  export * from './paragraph.component';
2
- export * from './paragraph.styles';
2
+ export * from './styles';
3
3
  export * from './paragraph.types';
@@ -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,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ParagraphBox } from './paragraph.styles';
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 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
  };
@@ -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-1o1vp14-0"
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").StyledComponent<"span", any, {
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
- }, never>;
13
+ }>> & string;
@@ -1,2 +0,0 @@
1
- /** Styled `<div>` behind {@link Code}; use it when you need to extend the styles. */
2
- export declare const CodeBox: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,2 +0,0 @@
1
- /** Styled `<div>` behind {@link Footnote}; use it when you need to extend the styles. */
2
- export declare const FootnoteBox: import("styled-components").StyledComponent<"div", any, {}, never>;
package/h1/h1.styles.d.ts DELETED
@@ -1,2 +0,0 @@
1
- /** Styled `<h1>` behind {@link H1}; use it when you need to extend the styles. */
2
- export declare const H1Box: import("styled-components").StyledComponent<"h1", any, {}, never>;
package/h2/h2.styles.d.ts DELETED
@@ -1,2 +0,0 @@
1
- /** Styled `<h2>` behind {@link H2}; use it when you need to extend the styles. */
2
- export declare const H2Box: import("styled-components").StyledComponent<"h2", any, {}, never>;
package/h3/h3.styles.d.ts DELETED
@@ -1,2 +0,0 @@
1
- /** Styled `<h3>` behind {@link H3}; use it when you need to extend the styles. */
2
- export declare const H3Box: import("styled-components").StyledComponent<"h3", any, {}, never>;
package/h4/h4.styles.d.ts DELETED
@@ -1,2 +0,0 @@
1
- /** Styled `<h4>` behind {@link H4}; use it when you need to extend the styles. */
2
- export declare const H4Box: import("styled-components").StyledComponent<"h4", any, {}, never>;
package/h5/h5.styles.d.ts DELETED
@@ -1,2 +0,0 @@
1
- /** Styled `<h5>` behind {@link H5}; use it when you need to extend the styles. */
2
- export declare const H5Box: import("styled-components").StyledComponent<"h5", any, {}, never>;
@@ -1,2 +0,0 @@
1
- /** Styled `<p>` behind {@link Paragraph}; use it when you need to extend the styles. */
2
- export declare const ParagraphBox: import("styled-components").StyledComponent<"p", any, {}, never>;