@semcore/typography 17.2.1 → 18.0.0-prerelease.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 (42) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/components/Blockquote/Blockquote.js +4 -4
  3. package/lib/cjs/components/Blockquote/Blockquote.type.js.map +1 -1
  4. package/lib/cjs/components/List/List.js +5 -5
  5. package/lib/cjs/components/List/List.type.js.map +1 -1
  6. package/lib/cjs/components/Text/Text.js +42 -41
  7. package/lib/cjs/components/Text/Text.js.map +1 -1
  8. package/lib/cjs/components/Text/Text.type.js.map +1 -1
  9. package/lib/cjs/style/blockquote.shadow.css +6 -6
  10. package/lib/cjs/style/list.shadow.css +4 -4
  11. package/lib/cjs/style/text.shadow.css +70 -65
  12. package/lib/es6/components/Blockquote/Blockquote.js +4 -4
  13. package/lib/es6/components/Blockquote/Blockquote.type.js.map +1 -1
  14. package/lib/es6/components/List/List.js +5 -5
  15. package/lib/es6/components/List/List.type.js.map +1 -1
  16. package/lib/es6/components/Text/Text.js +42 -41
  17. package/lib/es6/components/Text/Text.js.map +1 -1
  18. package/lib/es6/components/Text/Text.type.js.map +1 -1
  19. package/lib/es6/style/blockquote.shadow.css +6 -6
  20. package/lib/es6/style/list.shadow.css +4 -4
  21. package/lib/es6/style/text.shadow.css +70 -65
  22. package/lib/esm/components/Blockquote/Blockquote.mjs +5 -5
  23. package/lib/esm/components/List/List.mjs +6 -6
  24. package/lib/esm/components/Text/Text.mjs +43 -42
  25. package/lib/esm/style/blockquote.shadow.css +6 -6
  26. package/lib/esm/style/list.shadow.css +4 -4
  27. package/lib/esm/style/text.shadow.css +70 -65
  28. package/lib/types/components/Blockquote/Blockquote.d.ts +1 -0
  29. package/lib/types/components/Blockquote/Blockquote.d.ts.map +1 -0
  30. package/lib/types/components/Blockquote/Blockquote.type.d.ts +7 -3
  31. package/lib/types/components/Blockquote/Blockquote.type.d.ts.map +1 -0
  32. package/lib/types/components/List/List.d.ts +1 -0
  33. package/lib/types/components/List/List.d.ts.map +1 -0
  34. package/lib/types/components/List/List.type.d.ts +7 -6
  35. package/lib/types/components/List/List.type.d.ts.map +1 -0
  36. package/lib/types/components/Text/Text.d.ts +1 -0
  37. package/lib/types/components/Text/Text.d.ts.map +1 -0
  38. package/lib/types/components/Text/Text.type.d.ts +11 -10
  39. package/lib/types/components/Text/Text.type.d.ts.map +1 -0
  40. package/lib/types/index.d.ts +1 -0
  41. package/lib/types/index.d.ts.map +1 -0
  42. package/package.json +6 -6
@@ -1,12 +1,16 @@
1
- import type { BoxProps } from '@semcore/base-components';
1
+ import type { NSBox } from '@semcore/base-components';
2
2
  import type { Intergalactic } from '@semcore/core';
3
3
  declare namespace NSBlockquote {
4
- type Props = BoxProps & {
4
+ type Props = NSBox.Props & {
5
5
  /** Source of the quote */
6
6
  author?: React.ReactNode;
7
7
  };
8
+ /**
9
+ * @deprecated It will be removed in v19.
10
+ */
8
11
  type Component = Intergalactic.Component<'blockquote', Props>;
9
12
  }
10
- /** @deprecated It will be removed in v18. */
13
+ /** @deprecated It will be removed in v19. */
11
14
  export type BlockquoteProps = NSBlockquote.Props;
12
15
  export type { NSBlockquote };
16
+ //# sourceMappingURL=Blockquote.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockquote.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Blockquote/Blockquote.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,WAAW,YAAY,CAAC;IAC7B,KAAK,KAAK,GAAG,KAAK,CAAC,KAAK,GAAG;QAC3B,0BAA0B;QACxB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KAC1B,CAAC;IAEF;;OAEG;IACH,KAAK,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;CAC/D;AAED,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,KAAK,CAAC;AAEjD,YAAY,EAAE,YAAY,EAAE,CAAC"}
@@ -6,3 +6,4 @@ import type { NSList } from './List.type';
6
6
  */
7
7
  declare const List: NSList.Component;
8
8
  export default List;
9
+ //# sourceMappingURL=List.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/List/List.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAqE1C;;;;GAIG;AACH,QAAA,MAAM,IAAI,kBAGW,CAAC;AAEtB,eAAe,IAAI,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Flex, FlexProps } from '@semcore/base-components';
1
+ import type { NSFlex } from '@semcore/base-components';
2
2
  import type { Intergalactic } from '@semcore/core';
3
3
  import type React from 'react';
4
4
  import type { NSText } from '../Text/Text.type';
@@ -17,8 +17,8 @@ declare namespace NSList {
17
17
  marker?: React.ReactNode;
18
18
  };
19
19
  namespace Content {
20
- type Props = FlexProps;
21
- type Component = Intergalactic.Component<typeof Flex, Props>;
20
+ type Props = NSFlex.Props;
21
+ type Component = Intergalactic.Component<NSFlex.Component, Props>;
22
22
  }
23
23
  type Component = Intergalactic.Component<'li', Props> & {
24
24
  Content: Content.Component;
@@ -28,10 +28,11 @@ declare namespace NSList {
28
28
  Item: Item.Component;
29
29
  };
30
30
  }
31
- /** @deprecated It will be removed in v18. */
31
+ /** @deprecated It will be removed in v19. */
32
32
  export type ListItemProps = NSList.Item.Props;
33
- /** @deprecated It will be removed in v18. */
33
+ /** @deprecated It will be removed in v19. */
34
34
  export type ListItemContentProps = NSList.Item.Content.Props;
35
- /** @deprecated It will be removed in v18. */
35
+ /** @deprecated It will be removed in v19. */
36
36
  export type ListProps = NSList.Props;
37
37
  export type { NSList };
38
+ //# sourceMappingURL=List.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AAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;AAC7D,6CAA6C;AAC7C,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC;AAErC,YAAY,EAAE,MAAM,EAAE,CAAC"}
@@ -6,3 +6,4 @@ import type { NSText } from './Text.type';
6
6
  */
7
7
  declare const Text: NSText.Component;
8
8
  export default Text;
9
+ //# sourceMappingURL=Text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAmI1C;;;;GAIG;AACH,QAAA,MAAM,IAAI,kBAGC,CAAC;AAEZ,eAAe,IAAI,CAAC"}
@@ -1,10 +1,10 @@
1
- import type { BoxProps, EllipsisSettings, SimpleHintPopperProps, Ellipsis as EllipsisInstance } from '@semcore/base-components';
1
+ import type { NSBox, NSEllipsis, NSHint, Ellipsis as EllipsisInstance } from '@semcore/base-components';
2
2
  import type { Intergalactic } from '@semcore/core';
3
3
  import type { Property } from 'csstype';
4
4
  declare namespace NSText {
5
5
  type BaseProps = {
6
6
  /** Font size and line-heights */
7
- size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
7
+ size?: 100 | 200 | 300 | 350 | 400 | 500 | 600 | 700 | 800;
8
8
  /**
9
9
  * The text will not be wrapped on a new line and will be cut off with ellipsis
10
10
  * @deprecated use ellipsis prop instead
@@ -49,15 +49,15 @@ declare namespace NSText {
49
49
  /** Manually enabled/disabled Hint */
50
50
  hint?: boolean;
51
51
  } & {
52
- [K in keyof SimpleHintPopperProps as `hint:${string & K}`]?: SimpleHintPopperProps[K];
52
+ [K in keyof NSHint.Props as `hint:${string & K}`]?: NSHint.Props[K];
53
53
  };
54
54
  type EllipsisProps = {
55
55
  /** Manually enabled/disabled Ellipsis or provide an instance of it. */
56
56
  ellipsis?: boolean | EllipsisInstance;
57
57
  } & {
58
- [K in keyof EllipsisSettings as `ellipsis:${string & K}`]?: EllipsisSettings[K];
58
+ [K in keyof NSEllipsis.Settings as `ellipsis:${string & K}`]?: NSEllipsis.Settings[K];
59
59
  };
60
- type Props = BoxProps & NSText.BaseProps & ({
60
+ type Props = NSBox.Props & NSText.BaseProps & ({
61
61
  /** Enable formatting/styling for all nested HTML tags with our default styles for them */
62
62
  formatTags?: boolean;
63
63
  ellipsis?: never;
@@ -69,14 +69,15 @@ declare namespace NSText {
69
69
  } & NSText.HintProps & NSText.EllipsisProps));
70
70
  type Component = Intergalactic.Component<'span', Props>;
71
71
  }
72
- /** @deprecated It will be removed in v18. */
72
+ /** @deprecated It will be removed in v19. */
73
73
  export type TextHintProps = NSText.HintProps;
74
- /** @deprecated It will be removed in v18. */
74
+ /** @deprecated It will be removed in v19. */
75
75
  export type TextEllipsisProps = NSText.EllipsisProps;
76
- /** @deprecated It will be removed in v18. */
76
+ /** @deprecated It will be removed in v19. */
77
77
  export type BaseTextProps = NSText.BaseProps;
78
- /** @deprecated It will be removed in v18. */
78
+ /** @deprecated It will be removed in v19. */
79
79
  export type TextProps = NSText.Props;
80
- /** @deprecated It will be removed in v18. */
80
+ /** @deprecated It will be removed in v19. */
81
81
  export type TextComponent = NSText.Component;
82
82
  export type { NSText };
83
+ //# sourceMappingURL=Text.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,UAAU,EACV,MAAM,EACN,QAAQ,IAAI,gBAAgB,EAC7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,WAAW,MAAM,CAAC;IACvB,KAAK,SAAS,GAA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,GAAG,MAAM,CAAC,SAAS,CAAC;AAE7C,YAAY,EAAE,MAAM,EAAE,CAAC"}
@@ -4,3 +4,4 @@ export { default as List } from './components/List/List';
4
4
  export * from './components/Text/Text.type';
5
5
  export * from './components/Blockquote/Blockquote.type';
6
6
  export * from './components/List/List.type';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,6BAA6B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/typography",
3
3
  "description": "Semrush Typography Component",
4
- "version": "17.2.1",
4
+ "version": "18.0.0-prerelease.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {},
17
17
  "peerDependencies": {
18
- "@semcore/base-components": "^17.2.1",
19
- "@semcore/icon": "^17.2.0"
18
+ "@semcore/base-components": "^18.0.0-prerelease.0",
19
+ "@semcore/icon": "^18.0.0-prerelease.0"
20
20
  },
21
21
  "repository": {
22
22
  "type": "git",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "csstype": "3.1.3",
28
- "@semcore/core": "17.2.1",
29
- "@semcore/base-components": "17.2.1",
28
+ "@semcore/core": "18.0.0-prerelease.0",
29
+ "@semcore/base-components": "18.0.0-prerelease.0",
30
30
  "@semcore/testing-utils": "1.0.0",
31
- "@semcore/icon": "17.2.0"
31
+ "@semcore/icon": "18.0.0-prerelease.0"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "pnpm semcore-builder && pnpm vite build"