@next-bricks/data-view 0.9.4 → 0.9.5

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.
@@ -24,3 +24,4 @@ import "./graph/layout-grid/index.js";
24
24
  import "./grid-background/index.js";
25
25
  import "./gear-background/index.js";
26
26
  import "./radar-chart/index.js";
27
+ import "./title-text/index.js";
@@ -0,0 +1,58 @@
1
+ import { CSSProperties } from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ type TitleType = "normal" | "stroke" | "gradient";
4
+ interface TitleTextProps {
5
+ text: string;
6
+ type?: TitleType;
7
+ fontSize?: CSSProperties["fontSize"];
8
+ fontWeight?: CSSProperties["fontWeight"];
9
+ letterSpacing?: CSSProperties["letterSpacing"];
10
+ }
11
+ /**
12
+ * @id data-view.title-text
13
+ * @name data-view.title-text
14
+ * @docKind brick
15
+ * @description 大屏标题文本构件
16
+ * @author astrid
17
+ * @noInheritDoc
18
+ */
19
+ declare class TitleText extends ReactNextElement {
20
+ /**
21
+ * @kind TitleType
22
+ * @required false
23
+ * @default "normal"
24
+ * @description 文本样式,`normal` 纯白, `stroke` 渐变加描边, `gradient` 渐变
25
+ */
26
+ accessor type: TitleType;
27
+ /**
28
+ * @kind string
29
+ * @required true
30
+ * @default -
31
+ * @description 标题文本
32
+ */
33
+ accessor text: string;
34
+ /**
35
+ * @kind CSSProperties["fontSize"]
36
+ * @required false
37
+ * @default 42px
38
+ * @description 字体大小
39
+ */
40
+ accessor fontSize: CSSProperties["fontSize"];
41
+ /**
42
+ * @kind CSSProperties["fontWeight"]
43
+ * @required false
44
+ * @default 500
45
+ * @description 字体粗细
46
+ */
47
+ accessor fontWeight: CSSProperties["fontWeight"];
48
+ /**
49
+ * @kind CSSProperties["letterSpacing"]
50
+ * @required false
51
+ * @default 17px
52
+ * @description 字体间距
53
+ */
54
+ accessor letterSpacing: CSSProperties["letterSpacing"];
55
+ render(): JSX.Element;
56
+ }
57
+ export declare function TitleTextComponent(props: TitleTextProps): JSX.Element;
58
+ export { TitleText };
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,29 @@
1
+ 构件 title-text
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.title-text
9
+ properties:
10
+ text: 大标题
11
+ ```
12
+
13
+ ### Stroke
14
+
15
+ ```yaml preview
16
+ - brick: data-view.title-text
17
+ properties:
18
+ text: 大标题
19
+ type: stroke
20
+ ```
21
+
22
+ ### Gradient
23
+
24
+ ```yaml preview
25
+ - brick: data-view.title-text
26
+ properties:
27
+ text: 大标题
28
+ type: gradient
29
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/data-view",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/data-view",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,10 +34,10 @@
34
34
  "postpublish": "mv package.json.bak package.json"
35
35
  },
36
36
  "devDependencies": {
37
- "@next-core/build-next-bricks": "^1.10.0",
37
+ "@next-core/build-next-bricks": "^1.11.1",
38
38
  "@next-core/test-next": "^1.0.6",
39
39
  "@types/d3-hierarchy": "^3.1.2",
40
40
  "@types/three": "^0.150.1"
41
41
  },
42
- "gitHead": "cfe21b4ee469180107949b61afff93e410827b6a"
42
+ "gitHead": "c43f54603ea40bcf683b895466630c864b88d0f5"
43
43
  }