@semcore/typography 16.3.3-prerelease.9 → 16.4.0-prerelease.1

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,15 +1,14 @@
1
- import type { BoxProps, Flex, FlexProps, EllipsisSettings, SimpleHintPopperProps, Ellipsis } from '@semcore/base-components';
2
- import type { PropGetterFn, Intergalactic } from '@semcore/core';
1
+ import type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
2
+ import type { BoxProps, Flex, FlexProps } from '@semcore/flex-box';
3
3
  import type { Property } from 'csstype';
4
4
  import type React from 'react';
5
5
 
6
+ /** @deprecated */
7
+ export interface ITextProps extends TextProps, UnknownProperties {}
6
8
  export type TextProps = BoxProps & {
7
9
  /** Font size and line-heights */
8
10
  size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
9
- /**
10
- * The text will not be wrapped on a new line and will be cut off with ellipsis
11
- * @deprecated use ellipsis prop instead
12
- **/
11
+ /** The text will not be wrapped on a new line and will be cut off with ellipsis */
13
12
  noWrap?: boolean;
14
13
  /** CSS property `font-weight: 700;` */
15
14
  bold?: boolean;
@@ -47,18 +46,18 @@ export type TextProps = BoxProps & {
47
46
  disabled?: boolean;
48
47
  /** Enable formatting/styling for all nested HTML tags with our default styles for them */
49
48
  formatTags?: boolean;
50
- /** The text will not be wrapped on a new line and will be cut off with ellipsis. Also, it will show a hint with full text. */
51
- ellipsis?: true | Readonly<EllipsisSettings> | Ellipsis;
52
- /** Settings for a hint with full text (cropped by ellipsis) */
53
- hintProps?: Partial<Omit<SimpleHintPopperProps, 'children'>> | false;
54
49
  };
55
50
 
51
+ /** @deprecated */
52
+ export interface IListProps extends ListProps, UnknownProperties {}
56
53
  export type ListProps = TextProps & {
57
54
  /** Marker of the entire list
58
55
  * @default • */
59
56
  marker?: React.ReactNode;
60
57
  };
61
58
 
59
+ /** @deprecated */
60
+ export interface IListItemProps extends ListItemProps, UnknownProperties {}
62
61
  export type ListItemProps = TextProps & {
63
62
  /** Individual marker of a list item */
64
63
  marker?: React.ReactNode;
@@ -66,10 +65,14 @@ export type ListItemProps = TextProps & {
66
65
 
67
66
  export type ListItemContentProps = FlexProps;
68
67
 
68
+ /** @deprecated */
69
+ export interface IListContext extends ListContext, UnknownProperties {}
69
70
  export type ListContext = {
70
71
  getItemProps: PropGetterFn;
71
72
  };
72
73
 
74
+ /** @deprecated */
75
+ export interface IBlockquoteProps extends BlockquoteProps, UnknownProperties {}
73
76
  export type BlockquoteProps = BoxProps & {
74
77
  /** Source of the quote */
75
78
  author?: React.ReactNode;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/typography",
3
3
  "description": "Semrush Typography Component",
4
- "version": "16.3.3-prerelease.9",
4
+ "version": "16.4.0-prerelease.1",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -13,10 +13,12 @@
13
13
  "import": "./lib/esm/index.mjs",
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
- "dependencies": {},
16
+ "dependencies": {
17
+ "@semcore/flex-box": "16.1.0-prerelease.1",
18
+ "@semcore/icon": "16.8.0-prerelease.1"
19
+ },
17
20
  "peerDependencies": {
18
- "@semcore/base-components": "^16.4.3-prerelease.9",
19
- "@semcore/icon": "^16.7.2-prerelease.9"
21
+ "@semcore/base-components": "^16.6.0-prerelease.1"
20
22
  },
21
23
  "repository": {
22
24
  "type": "git",
@@ -25,12 +27,10 @@
25
27
  },
26
28
  "devDependencies": {
27
29
  "csstype": "3.1.3",
28
- "@semcore/core": "16.5.1",
29
30
  "@semcore/testing-utils": "1.0.0",
30
- "@semcore/base-components": "16.4.3-prerelease.9",
31
- "@semcore/icon": "16.7.2-prerelease.9"
31
+ "@semcore/core": "16.6.0-prerelease.1"
32
32
  },
33
33
  "scripts": {
34
- "build": "pnpm semcore-builder --source=ts,js && pnpm vite build"
34
+ "build": "pnpm semcore-builder --source=js && pnpm vite build"
35
35
  }
36
36
  }
@@ -1,2 +0,0 @@
1
- declare const _default: import("@semcore/core").Intergalactic.Component<"div", {}, {}, never[]>;
2
- export default _default;