@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.
- package/dist/bricks.json +6 -5
- package/dist/chunks/{3494.d850b4d2.js → 3494.0610767d.js} +2 -2
- package/dist/chunks/{7822.83f6e135.js.map → 3494.0610767d.js.map} +1 -1
- package/dist/chunks/4131.aab247a9.js +2 -0
- package/dist/chunks/4131.aab247a9.js.map +1 -0
- package/dist/chunks/{7822.83f6e135.js → 7822.de12dc71.js} +2 -2
- package/dist/chunks/{3494.d850b4d2.js.map → 7822.de12dc71.js.map} +1 -1
- package/dist/chunks/7890.885a981b.js +2 -0
- package/dist/chunks/7890.885a981b.js.map +1 -0
- package/dist/chunks/main.73ecee17.js +2 -0
- package/dist/chunks/{main.0e4c25f7.js.map → main.73ecee17.js.map} +1 -1
- package/dist/chunks/title-text.26debb34.js +2 -0
- package/dist/chunks/title-text.26debb34.js.map +1 -0
- package/dist/index.c15c6055.js +2 -0
- package/dist/index.c15c6055.js.map +1 -0
- package/dist/manifest.json +150 -112
- package/dist/types.json +1543 -923
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/title-text/index.d.ts +58 -0
- package/dist-types/title-text/index.spec.d.ts +1 -0
- package/docs/title-text.md +29 -0
- package/package.json +3 -3
- package/dist/chunks/32.ab6f342f.js +0 -2
- package/dist/chunks/32.ab6f342f.js.map +0 -1
- package/dist/chunks/4131.426d6fc4.js +0 -2
- package/dist/chunks/4131.426d6fc4.js.map +0 -1
- package/dist/chunks/main.0e4c25f7.js +0 -2
- package/dist/index.cc6ab3ed.js +0 -2
- package/dist/index.cc6ab3ed.js.map +0 -1
|
@@ -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.
|
|
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.
|
|
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": "
|
|
42
|
+
"gitHead": "c43f54603ea40bcf683b895466630c864b88d0f5"
|
|
43
43
|
}
|