@xsolla/xui-typography 0.73.0 → 0.75.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.
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Flowtype definitions for index
3
+ * Generated by Flowgen from a Typescript Definition
4
+ * Flowgen v1.21.0
5
+ * @flow
6
+ */
7
+
8
+ import React, { Node, ElementType } from "react";
9
+ declare type AlignType = "center" | "inherit" | "justify" | "left" | "right";
10
+ declare type VariantType =
11
+ | "h1"
12
+ | "h2"
13
+ | "h3"
14
+ | "h4"
15
+ | "display"
16
+ | "bodyLg"
17
+ | "bodyLgAccent"
18
+ | "bodyLgParagraph"
19
+ | "bodyMd"
20
+ | "bodyMdAccent"
21
+ | "bodyMdParagraph"
22
+ | "bodySm"
23
+ | "bodySmAccent"
24
+ | "bodySmParagraph"
25
+ | "bodyXs"
26
+ | "bodyXsAccent"
27
+ | "bodyXsParagraph";
28
+ declare type ThemeColorType =
29
+ | "primary"
30
+ | "secondary"
31
+ | "tertiary"
32
+ | "brand"
33
+ | "brandSecondary"
34
+ | "success"
35
+ | "warning"
36
+ | "alert"
37
+ | "neutral";
38
+ declare type ColorType = ThemeColorType | "inherit";
39
+ declare type TypographyProps = {
40
+ children?: Node,
41
+ align?: AlignType,
42
+ noWrap?: boolean,
43
+ variant?: VariantType,
44
+ color?: ColorType | string,
45
+ marginBottom?: number,
46
+ marginTop?: number,
47
+ as?: ElementType,
48
+ "aria-hidden"?: boolean,
49
+ "aria-live"?: "polite" | "assertive" | "off",
50
+ ...
51
+ } & $Diff<any, { color: any }>;
52
+ declare var Typography: React.ForwardRefExoticComponent<{
53
+ ...$Diff<TypographyProps, { ref: any }>,
54
+ ...React.RefAttributes<any>,
55
+ }>;
56
+ export type {
57
+ AlignType,
58
+ ColorType,
59
+ ThemeColorType,
60
+ TypographyProps,
61
+ VariantType,
62
+ };
63
+ declare export { Typography };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-typography",
3
- "version": "0.73.0",
3
+ "version": "0.75.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -13,22 +13,22 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-core": "0.73.0",
17
- "@xsolla/xui-primitives-core": "0.73.0"
16
+ "@xsolla/xui-core": "0.75.0",
17
+ "@xsolla/xui-primitives-core": "0.75.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "react": ">=16.8.0",
21
21
  "styled-components": ">=4"
22
22
  },
23
23
  "devDependencies": {
24
- "@testing-library/jest-dom": "^6.1.5",
24
+ "@testing-library/jest-dom": "^6.9.1",
25
25
  "@testing-library/react": "^14.1.2",
26
- "@vitest/coverage-v8": "^1.0.0",
26
+ "@vitest/coverage-v8": "^4.0.18",
27
27
  "jsdom": "^24.0.0",
28
28
  "react": "^18.0.0",
29
29
  "react-dom": "^18.0.0",
30
30
  "tsup": "^8.0.0",
31
- "vitest": "^1.0.0"
31
+ "vitest": "^4.0.18"
32
32
  },
33
33
  "license": "MIT",
34
34
  "react-native": "./native/index.js",
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Flowtype definitions for index
3
+ * Generated by Flowgen from a Typescript Definition
4
+ * Flowgen v1.21.0
5
+ * @flow
6
+ */
7
+
8
+ import React, { Node, ElementType } from "react";
9
+ declare type AlignType = "center" | "inherit" | "justify" | "left" | "right";
10
+ declare type VariantType =
11
+ | "h1"
12
+ | "h2"
13
+ | "h3"
14
+ | "h4"
15
+ | "display"
16
+ | "bodyLg"
17
+ | "bodyLgAccent"
18
+ | "bodyLgParagraph"
19
+ | "bodyMd"
20
+ | "bodyMdAccent"
21
+ | "bodyMdParagraph"
22
+ | "bodySm"
23
+ | "bodySmAccent"
24
+ | "bodySmParagraph"
25
+ | "bodyXs"
26
+ | "bodyXsAccent"
27
+ | "bodyXsParagraph";
28
+ declare type ThemeColorType =
29
+ | "primary"
30
+ | "secondary"
31
+ | "tertiary"
32
+ | "brand"
33
+ | "brandSecondary"
34
+ | "success"
35
+ | "warning"
36
+ | "alert"
37
+ | "neutral";
38
+ declare type ColorType = ThemeColorType | "inherit";
39
+ declare type TypographyProps = {
40
+ children?: Node,
41
+ align?: AlignType,
42
+ noWrap?: boolean,
43
+ variant?: VariantType,
44
+ color?: ColorType | string,
45
+ marginBottom?: number,
46
+ marginTop?: number,
47
+ as?: ElementType,
48
+ "aria-hidden"?: boolean,
49
+ "aria-live"?: "polite" | "assertive" | "off",
50
+ ...
51
+ } & $Diff<any, { color: any }>;
52
+ declare var Typography: React.ForwardRefExoticComponent<{
53
+ ...$Diff<TypographyProps, { ref: any }>,
54
+ ...React.RefAttributes<any>,
55
+ }>;
56
+ export type {
57
+ AlignType,
58
+ ColorType,
59
+ ThemeColorType,
60
+ TypographyProps,
61
+ VariantType,
62
+ };
63
+ declare export { Typography };