@pushwoosh/kit-typography 1.7.4 → 1.7.6

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,2 @@
1
- /// <reference types="react" />
2
1
  import { CodeProps } from './code.types';
3
2
  export declare function Code(props: CodeProps): JSX.Element;
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { CodeBox } from './code.styles';
3
3
  export function Code(props) {
4
4
  const {
5
5
  boxRef,
6
6
  ...rest
7
7
  } = props;
8
- return React.createElement(CodeBox, {
8
+ return _jsx(CodeBox, {
9
9
  ...rest,
10
10
  ref: boxRef
11
11
  });
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FootnoteProps } from './footnote.types';
3
2
  export declare function Footnote(props: FootnoteProps): JSX.Element;
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { FootnoteBox } from './footnote.styles';
3
3
  export function Footnote(props) {
4
4
  const {
5
5
  boxRef,
6
6
  ...rest
7
7
  } = props;
8
- return React.createElement(FootnoteBox, {
8
+ return _jsx(FootnoteBox, {
9
9
  ...rest,
10
10
  ref: boxRef
11
11
  });
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { H1Props } from './h1.types';
3
2
  export declare function H1(props: H1Props): JSX.Element;
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { H1Box } from './h1.styles';
3
3
  export function H1(props) {
4
4
  const {
5
5
  boxRef,
6
6
  ...rest
7
7
  } = props;
8
- return React.createElement(H1Box, {
8
+ return _jsx(H1Box, {
9
9
  ...rest,
10
10
  ref: boxRef
11
11
  });
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { H2Props } from './h2.types';
3
2
  export declare function H2(props: H2Props): JSX.Element;
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { H2Box } from './h2.styles';
3
3
  export function H2(props) {
4
4
  const {
5
5
  boxRef,
6
6
  ...rest
7
7
  } = props;
8
- return React.createElement(H2Box, {
8
+ return _jsx(H2Box, {
9
9
  ...rest,
10
10
  ref: boxRef
11
11
  });
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { H3Props } from './h3.types';
3
2
  export declare function H3(props: H3Props): JSX.Element;
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { H3Box } from './h3.styles';
3
3
  export function H3(props) {
4
4
  const {
5
5
  boxRef,
6
6
  ...rest
7
7
  } = props;
8
- return React.createElement(H3Box, {
8
+ return _jsx(H3Box, {
9
9
  ...rest,
10
10
  ref: boxRef
11
11
  });
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { H4Props } from './h4.types';
3
2
  export declare function H4(props: H4Props): JSX.Element;
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { H4Box } from './h4.styles';
3
3
  export function H4(props) {
4
4
  const {
5
5
  boxRef,
6
6
  ...rest
7
7
  } = props;
8
- return React.createElement(H4Box, {
8
+ return _jsx(H4Box, {
9
9
  ...rest,
10
10
  ref: boxRef
11
11
  });
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { H5Props } from './h5.types';
3
2
  export declare function H5(props: H5Props): JSX.Element;
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { H5Box } from './h5.styles';
3
3
  export function H5(props) {
4
4
  const {
5
5
  boxRef,
6
6
  ...rest
7
7
  } = props;
8
- return React.createElement(H5Box, {
8
+ return _jsx(H5Box, {
9
9
  ...rest,
10
10
  ref: boxRef
11
11
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/kit-typography",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "React component for build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -8,7 +8,7 @@
8
8
  "sideEffects": false,
9
9
  "scripts": {
10
10
  "start": "npm run playground",
11
- "build": "pushwoosh-engine lib:build && cp ai-documentation.mdx dist/ai-documentation.mdx",
11
+ "build": "pushwoosh-engine lib:build && cp ai-documentation.md dist/ai-documentation.md",
12
12
  "playground": "pushwoosh-engine lib:playground",
13
13
  "check": "npm run check:lint && npm run check:types",
14
14
  "check:lint": "echo \"Run check:lint\" && eslint .",
@@ -19,7 +19,7 @@
19
19
  "@pushwoosh/kit-constants": "^1.6.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@pushwoosh/frontend-builder-engine": "^0.1.5",
22
+ "@pushwoosh/frontend-builder-engine": "^2.1.1",
23
23
  "@types/react": "^16.14.20",
24
24
  "@types/react-dom": "^16.9.14",
25
25
  "@types/styled-components": "^5.1.34",
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ParagraphProps } from './paragraph.types';
3
2
  export declare function Paragraph(props: ParagraphProps): JSX.Element;
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ParagraphBox } from './paragraph.styles';
3
3
  export function Paragraph(props) {
4
4
  const {
5
5
  boxRef,
6
6
  ...rest
7
7
  } = props;
8
- return React.createElement(ParagraphBox, {
8
+ return _jsx(ParagraphBox, {
9
9
  ...rest,
10
10
  ref: boxRef
11
11
  });
package/text/Text.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { type TypographyVariant } from '../map';
2
2
  export declare const Text: import("styled-components").StyledComponent<"span", any, {
3
- $color?: string | undefined;
4
- $uppercase?: boolean | undefined;
5
- $ellipsis?: boolean | undefined;
6
- $variant?: TypographyVariant | undefined;
3
+ $color?: string;
4
+ $uppercase?: boolean;
5
+ $ellipsis?: boolean;
6
+ $variant?: TypographyVariant;
7
7
  }, never>;
File without changes