@pushwoosh/kit-typography 1.12.1 → 1.14.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 (3) hide show
  1. package/map.d.ts +3 -1
  2. package/map.js +2 -1
  3. package/package.json +7 -7
package/map.d.ts CHANGED
@@ -16,6 +16,8 @@ export type TypographyVariant =
16
16
  /** Smallest heading; `H5` also uppercases it, the variant alone does not. */
17
17
  | 'h5'
18
18
  /** Monospaced text: code, ids, tokens. */
19
- | 'code';
19
+ | 'code'
20
+ /** Standalone figure — a metric tile, a total, an order amount. Not a heading: no `h*` tag. */
21
+ | 'display';
20
22
  /** Font family/size/weight/line-height per variant, as a styled-components interpolation; values come from `@pushwoosh/kit-constants`. */
21
23
  export declare const variants: Record<TypographyVariant, ReturnType<typeof css>>;
package/map.js CHANGED
@@ -9,5 +9,6 @@ export const variants = {
9
9
  h3: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MAIN, FontSize.HEADING3, FontWeight.BOLD, LineHeight.HEADING3),
10
10
  h4: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MAIN, FontSize.HEADING4, FontWeight.MEDIUM, LineHeight.HEADING4),
11
11
  h5: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MAIN, FontSize.HEADING5, FontWeight.MEDIUM, LineHeight.HEADING5),
12
- code: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MONO, FontSize.REGULAR, FontWeight.REGULAR, LineHeight.REGULAR)
12
+ code: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MONO, FontSize.REGULAR, FontWeight.REGULAR, LineHeight.REGULAR),
13
+ display: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MAIN, FontSize.DISPLAY, FontWeight.BOLD, LineHeight.DISPLAY)
13
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/kit-typography",
3
- "version": "1.12.1",
3
+ "version": "1.14.0",
4
4
  "description": "React component for build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -11,17 +11,17 @@
11
11
  "directory": "dist"
12
12
  },
13
13
  "dependencies": {
14
- "@pushwoosh/kit-constants": "^2.1.1"
14
+ "@pushwoosh/kit-constants": "^2.2.0"
15
15
  },
16
16
  "devDependencies": {
17
- "@types/react": "^18.3.31",
18
- "@types/react-dom": "^18.3.7",
19
- "react": "^18.3.1",
20
- "react-dom": "^18.3.1",
17
+ "@types/react": "^19.3.0",
18
+ "@types/react-dom": "^19.3.0",
19
+ "react": "^19.3.0",
20
+ "react-dom": "^19.3.0",
21
21
  "styled-components": "^6.5.3"
22
22
  },
23
23
  "peerDependencies": {
24
- "react": "^18.0.0 || ^19.0.0",
24
+ "react": "^19.0.0",
25
25
  "styled-components": "^6.5.3"
26
26
  },
27
27
  "engines": {