v-eris 1.0.7 → 1.0.9
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/package.json +8 -5
- package/release/cjs/components/Card/styles/index.scss +19 -0
- package/release/cjs/components/Column/styles/index.scss +7 -0
- package/release/cjs/components/Divider/styles/index.scss +32 -0
- package/release/cjs/components/Editable/styles/index.scss +42 -0
- package/release/cjs/components/Flex/styles/index.scss +0 -0
- package/release/cjs/components/Icons/styles/index.scss +60 -0
- package/release/cjs/components/List/styles/index.scss +55 -0
- package/release/cjs/components/Row/styles/index.scss +5 -0
- package/release/cjs/components/Tooltip/styles/index.scss +48 -0
- package/release/cjs/components/Typography/styles/index.scss +28 -0
- package/types/components/Card/index.d.ts +3 -0
- package/types/components/Card/index.d.ts.map +1 -0
- package/types/components/Column/index.d.ts +3 -0
- package/types/components/Column/index.d.ts.map +1 -0
- package/types/components/Divider/index.d.ts +3 -0
- package/types/components/Divider/index.d.ts.map +1 -0
- package/types/components/Editable/index.d.ts +3 -0
- package/types/components/Editable/index.d.ts.map +1 -0
- package/types/components/Eris/index.d.ts +2 -0
- package/types/components/Eris/index.d.ts.map +1 -0
- package/types/components/Flex/index.d.ts +3 -0
- package/types/components/Flex/index.d.ts.map +1 -0
- package/types/components/Icons/index.d.ts +497 -0
- package/types/components/Icons/index.d.ts.map +1 -0
- package/types/components/Lang/index.d.ts +2 -0
- package/types/components/Lang/index.d.ts.map +1 -0
- package/types/components/List/index.d.ts +7 -0
- package/types/components/List/index.d.ts.map +1 -0
- package/types/components/List/leaf.d.ts +3 -0
- package/types/components/List/leaf.d.ts.map +1 -0
- package/types/components/Row/index.d.ts +4 -0
- package/types/components/Row/index.d.ts.map +1 -0
- package/types/components/Theme/index.d.ts +2 -0
- package/types/components/Theme/index.d.ts.map +1 -0
- package/types/components/Tooltip/index.d.ts +3 -0
- package/types/components/Tooltip/index.d.ts.map +1 -0
- package/types/components/Typography/index.d.ts +3 -0
- package/types/components/Typography/index.d.ts.map +1 -0
- package/types/examples/example.d.ts +2 -0
- package/types/examples/example.d.ts.map +1 -0
- package/types/examples/routes/icons.d.ts +2 -0
- package/types/examples/routes/icons.d.ts.map +1 -0
- package/types/examples/routes/list.d.ts +2 -0
- package/types/examples/routes/list.d.ts.map +1 -0
- package/types/examples/routes/typography.d.ts +2 -0
- package/types/examples/routes/typography.d.ts.map +1 -0
- package/types/index.d.ts +43 -0
- package/types/index.d.ts.map +1 -0
- package/types/main.d.ts +2 -0
- package/types/main.d.ts.map +1 -0
- package/types/utility/animation.d.ts +4 -0
- package/types/utility/animation.d.ts.map +1 -0
- package/types/utility/common.d.ts +45 -0
- package/types/utility/common.d.ts.map +1 -0
- package/types/utility/cookie.d.ts +7 -0
- package/types/utility/cookie.d.ts.map +1 -0
- package/types/utility/mutable.d.ts +22 -0
- package/types/utility/mutable.d.ts.map +1 -0
- package/types/utility/props.d.ts +4 -0
- package/types/utility/props.d.ts.map +1 -0
- package/types/utility/requests.d.ts +41 -0
- package/types/utility/requests.d.ts.map +1 -0
- package/types/utility/storage.d.ts +12 -0
- package/types/utility/storage.d.ts.map +1 -0
- package/types/utility/time.d.ts +56 -0
- package/types/utility/time.d.ts.map +1 -0
- package/types/utility/vmath.d.ts +7 -0
- package/types/utility/vmath.d.ts.map +1 -0
- package/release/esm/03523cf578d69fa92322.ttf +0 -0
- package/release/esm/c9d9202d39212162d5e5.ttf +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "v-eris",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"bootstrapVersion": 3,
|
|
6
6
|
"styleLoaders": [],
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"webpack": "webpack --mode development",
|
|
12
12
|
"auto": "tsc -watch - tsconfig.json",
|
|
13
|
-
"build": "yarn build:esm && yarn build:cjs",
|
|
13
|
+
"build": "yarn build:esm && yarn build:cjs && yarn copy",
|
|
14
14
|
"build:esm": "tsc",
|
|
15
15
|
"build:cjs": "tsc --module commonjs --outDir release/cjs",
|
|
16
16
|
"tsc2": "tsc && tsc -m es6 --outDir release && webpack --mode development",
|
|
@@ -19,12 +19,14 @@
|
|
|
19
19
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
20
20
|
"start": "webpack-dev-server --mode development",
|
|
21
21
|
"production": "webpack --mode production",
|
|
22
|
+
"copy": "copyfiles -u 2 \"./source/components/**/*.{css,scss}\" \"./release/cjs/components\"",
|
|
22
23
|
"pub": "tsc && npm version patch --force && npm publish --access public"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
26
|
"package.json",
|
|
26
27
|
"tsconfig.json",
|
|
27
|
-
"release/*"
|
|
28
|
+
"release/*",
|
|
29
|
+
"types/*"
|
|
28
30
|
],
|
|
29
31
|
"imports": {
|
|
30
32
|
"@assets/*": "../assets/*",
|
|
@@ -54,10 +56,11 @@
|
|
|
54
56
|
"webpack-cli": "^5.1.4"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
59
|
+
"copyfiles": "^2.4.1",
|
|
57
60
|
"esbuild-loader": "^3.0.1",
|
|
58
|
-
"webpack-dev-server": "^4.15.1",
|
|
59
61
|
"react": "^18.2.0",
|
|
60
62
|
"react-dom": "^18.2.0",
|
|
61
|
-
"react-router-dom": "^6.2.1"
|
|
63
|
+
"react-router-dom": "^6.2.1",
|
|
64
|
+
"webpack-dev-server": "^4.15.1"
|
|
62
65
|
}
|
|
63
66
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.card{
|
|
2
|
+
padding: 0px;
|
|
3
|
+
margin: 0px;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
list-style: none;
|
|
6
|
+
position: relative;
|
|
7
|
+
border-radius: 2px;
|
|
8
|
+
background: #fff;
|
|
9
|
+
border: 1px solid #f0f0f0;
|
|
10
|
+
margin: 16px;
|
|
11
|
+
|
|
12
|
+
&-body{
|
|
13
|
+
padding: 18px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
.card-borderless{
|
|
18
|
+
border: 1px solid transparent;
|
|
19
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.divider{
|
|
2
|
+
display: flex;
|
|
3
|
+
margin: 16px 0;
|
|
4
|
+
color: rgba(0, 0, 0, 0.85);
|
|
5
|
+
font-weight: 500;
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
text-align: center;
|
|
9
|
+
border-top: 0;
|
|
10
|
+
border-top-color: rgba(0, 0, 0, 0.06);
|
|
11
|
+
}
|
|
12
|
+
.divider > div{
|
|
13
|
+
padding: 0px 18px;
|
|
14
|
+
}
|
|
15
|
+
.divider:before, .divider:after{
|
|
16
|
+
position: relative;
|
|
17
|
+
top: 50%;
|
|
18
|
+
width: 50%;
|
|
19
|
+
border-top: 1px solid transparent;
|
|
20
|
+
border-top-color: inherit;
|
|
21
|
+
border-bottom: 0;
|
|
22
|
+
transform: translateY(50%);
|
|
23
|
+
content: '';
|
|
24
|
+
}
|
|
25
|
+
.divider:before{
|
|
26
|
+
top: 50%;
|
|
27
|
+
width: 5%;
|
|
28
|
+
}
|
|
29
|
+
.divider:after{
|
|
30
|
+
top: 50%;
|
|
31
|
+
width: 95%;
|
|
32
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.typography-editable{
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.typography-editable > div:first-child{
|
|
5
|
+
position: relative;
|
|
6
|
+
padding: 0px;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
white-space: pre-wrap;
|
|
9
|
+
margin-right: 6px;
|
|
10
|
+
}
|
|
11
|
+
.typography-editable > .icon{
|
|
12
|
+
top: -4px;
|
|
13
|
+
};
|
|
14
|
+
.typography-editable > textarea{
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: 0px;
|
|
17
|
+
top: 0px;
|
|
18
|
+
margin: 0px;
|
|
19
|
+
resize: none;
|
|
20
|
+
padding: 3px 11px 3px 11px;
|
|
21
|
+
margin: -4px -12px -9px -12px;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
list-style: none;
|
|
24
|
+
display: inline-block;
|
|
25
|
+
width: 100%;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
color: #000000d9;
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
line-height: 1.56;
|
|
30
|
+
background-color: #fff;
|
|
31
|
+
background-image: none;
|
|
32
|
+
border: 1px solid #d9d9d9;
|
|
33
|
+
border-radius: 2px;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
transition: all .3s, height 0s;
|
|
36
|
+
}
|
|
37
|
+
.typography-editable > textarea:focus{
|
|
38
|
+
border-color: #40a9ff;
|
|
39
|
+
box-shadow: 0 0 0 2px #40a9ff;
|
|
40
|
+
border-right-width: 1px!important;
|
|
41
|
+
outline: 0;
|
|
42
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@import "../../../../assets/styles/preset";
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: icomoon;
|
|
5
|
+
src: url(/assets/fonts/icomoon.ttf);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.icon{
|
|
9
|
+
font-family: icomoon;
|
|
10
|
+
font-size: 90%;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
color: inherit;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
line-height: 1;
|
|
15
|
+
text-align: center;
|
|
16
|
+
text-transform: none;
|
|
17
|
+
//vertical-align: -0.125em;
|
|
18
|
+
text-rendering: optimizeLegibility;
|
|
19
|
+
-webkit-font-smoothing: antialiased;
|
|
20
|
+
-moz-osx-font-smoothing: grayscale;
|
|
21
|
+
}
|
|
22
|
+
.icon-transition{
|
|
23
|
+
transition: all .2s ease-in-out;
|
|
24
|
+
}
|
|
25
|
+
.icon-active{
|
|
26
|
+
color: $icons-accent;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
.icon-active:hover{
|
|
30
|
+
color: $icons-accent-hover;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.icon-arrow{
|
|
34
|
+
position: relative;
|
|
35
|
+
top: 50%;
|
|
36
|
+
right: 16px;
|
|
37
|
+
width: 10px;
|
|
38
|
+
transform: translateY(-50%);
|
|
39
|
+
}
|
|
40
|
+
.icon-arrow:before, .icon-arrow:after{
|
|
41
|
+
position: absolute;
|
|
42
|
+
width: 6px;
|
|
43
|
+
height: 1.5px;
|
|
44
|
+
background-color: currentColor;
|
|
45
|
+
border-radius: 2px;
|
|
46
|
+
content: "";
|
|
47
|
+
transition: transform .2s ease-in-out;
|
|
48
|
+
}
|
|
49
|
+
.icon-arrow:before{
|
|
50
|
+
transform: rotate(-45deg) translate(-2.5px);
|
|
51
|
+
}
|
|
52
|
+
.icon-arrow:after{
|
|
53
|
+
transform: rotate(225deg) translate(-2.5px);
|
|
54
|
+
}
|
|
55
|
+
.icon-arrow-reverse.icon-arrow:before{
|
|
56
|
+
transform: rotate(45deg) translate(-2.5px);
|
|
57
|
+
}
|
|
58
|
+
.icon-arrow-reverse.icon-arrow:after{
|
|
59
|
+
transform: rotate(135deg) translate(-2.5px);
|
|
60
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.list{
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
flex-wrap: nowrap;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
border-right: 1px solid #f0f0f0;
|
|
9
|
+
user-select: none;
|
|
10
|
+
padding-left: 20px;
|
|
11
|
+
}
|
|
12
|
+
.list-item{
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
flex-wrap: nowrap;
|
|
16
|
+
z-index: 0;
|
|
17
|
+
|
|
18
|
+
&-title{
|
|
19
|
+
background-color: #fff;
|
|
20
|
+
padding: 9px 0px;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
flex-wrap: nowrap;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: flex-start;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
&-children{
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
transition: all 0.15s ease-in-out;
|
|
31
|
+
}
|
|
32
|
+
&-title > .icon{
|
|
33
|
+
margin-right: 10px;
|
|
34
|
+
}
|
|
35
|
+
&-title > .icon:last-child{
|
|
36
|
+
margin-left: auto;
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
&-expandable > &-title > .icon:last-child{
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-title:hover{
|
|
44
|
+
color: #1890ff;
|
|
45
|
+
}
|
|
46
|
+
&-chain > &-title{
|
|
47
|
+
color: #1890ff;
|
|
48
|
+
}
|
|
49
|
+
&-selected &-title{
|
|
50
|
+
color: #1890ff !important;
|
|
51
|
+
background-color: #e6f7ff !important;
|
|
52
|
+
border-right: 2px solid #1890ff !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.tooltip{
|
|
2
|
+
position: fixed;
|
|
3
|
+
padding: 4px 8px;
|
|
4
|
+
opacity: 0;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
max-height: 0;
|
|
7
|
+
max-width: 256px;
|
|
8
|
+
transition: all .2s 0.05s ease-in-out, left 0s, top 0s, height 0s;
|
|
9
|
+
transform: scale(0.7);
|
|
10
|
+
background: #424242;
|
|
11
|
+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.22);
|
|
12
|
+
|
|
13
|
+
&-arrow{
|
|
14
|
+
width: 0;
|
|
15
|
+
height: 0;
|
|
16
|
+
border-left: 7px solid transparent;
|
|
17
|
+
border-right: 7px solid transparent;
|
|
18
|
+
border-top: 7px solid #424242;
|
|
19
|
+
position: absolute;
|
|
20
|
+
bottom: -7px;
|
|
21
|
+
left: 50%;
|
|
22
|
+
margin-left: -7px;
|
|
23
|
+
transition: all .2s 0.05s ease-in-out;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
.tooltip-active{
|
|
28
|
+
transform: scale(1.0);
|
|
29
|
+
max-height: 99999px;
|
|
30
|
+
opacity: 1;
|
|
31
|
+
}
|
|
32
|
+
.tooltip-hidden{
|
|
33
|
+
padding: 0px;
|
|
34
|
+
}
|
|
35
|
+
.tooltip-hidden .tooltip-arrow{
|
|
36
|
+
transform: scaleY(0.0);
|
|
37
|
+
}
|
|
38
|
+
.tooltip > div{
|
|
39
|
+
transition: all .2s;
|
|
40
|
+
max-height: 0;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
}
|
|
43
|
+
.tooltip-active > div{
|
|
44
|
+
max-height: 99999px;
|
|
45
|
+
};
|
|
46
|
+
.tooltip > div > .typography{
|
|
47
|
+
color: #f4f4f4;
|
|
48
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import "../../../../assets/styles/preset";
|
|
2
|
+
|
|
3
|
+
.typography{
|
|
4
|
+
font-family: $fonts;
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
font-weight: normal;
|
|
7
|
+
color: rgba(0, 0, 0, 0.85);
|
|
8
|
+
overflow-wrap: break-word;
|
|
9
|
+
line-height: 1.56;
|
|
10
|
+
}
|
|
11
|
+
.typography-q{
|
|
12
|
+
color: inherit;
|
|
13
|
+
}
|
|
14
|
+
.typography-italic{
|
|
15
|
+
font-style: italic;
|
|
16
|
+
}
|
|
17
|
+
.typography-strong{
|
|
18
|
+
font-weight: bold;
|
|
19
|
+
}
|
|
20
|
+
.typography-link, .typography-link > a{
|
|
21
|
+
font-weight: bold;
|
|
22
|
+
color: $link;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
}
|
|
26
|
+
.typography-transition{
|
|
27
|
+
transition: all .2s ease-in-out;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/components/Card/index.tsx"],"names":[],"mappings":"AAIA,OAAO,qBAAqB,CAAA;AAE5B,eAAO,MAAM,IAAI,qBAoBhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/components/Column/index.tsx"],"names":[],"mappings":"AAIA,OAAO,qBAAqB,CAAA;AAI5B,eAAO,MAAM,MAAM,qBAiBlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/components/Divider/index.tsx"],"names":[],"mappings":"AAKA,OAAO,qBAAqB,CAAA;AAE5B,eAAO,MAAM,OAAO,qBAWnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/components/Editable/index.tsx"],"names":[],"mappings":"AAIA,OAAO,qBAAqB,CAAA;AAK5B,wBAAgB,QAAQ,CAAE,KAAK,KAAA,OA2F9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/components/Eris/index.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,qBAehB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/components/Flex/index.tsx"],"names":[],"mappings":"AAIA,OAAO,qBAAqB,CAAA;AAE5B,eAAO,MAAM,IAAI,+BAYhB,CAAC"}
|