@teambit/panels 0.0.387 → 0.0.391
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 +16 -7
- package/tsconfig.json +34 -0
- package/ui/tabs.module.scss +40 -0
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/panels",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.391",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/ui-foundation/panels",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.ui-foundation",
|
|
8
8
|
"name": "panels",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.391"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/harmony": "0.2.11",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"react-tabs": "3.2.0",
|
|
15
15
|
"@babel/runtime": "7.12.18",
|
|
16
16
|
"core-js": "^3.0.0",
|
|
17
|
-
"@teambit/cli": "0.0.
|
|
17
|
+
"@teambit/cli": "0.0.391"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/classnames": "2.2.11",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@types/node": "12.20.4"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@teambit/legacy": "1.0.
|
|
30
|
+
"@teambit/legacy": "1.0.177",
|
|
31
31
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
32
32
|
"react": "^16.8.0 || ^17.0.0"
|
|
33
33
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": "-"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@teambit/legacy": "1.0.
|
|
58
|
+
"@teambit/legacy": "1.0.177",
|
|
59
59
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
60
60
|
"react": "^16.8.0 || ^17.0.0"
|
|
61
61
|
}
|
|
@@ -64,8 +64,17 @@
|
|
|
64
64
|
"files": [
|
|
65
65
|
"dist",
|
|
66
66
|
"!dist/tsconfig.tsbuildinfo",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
67
|
+
"**/*.md",
|
|
68
|
+
"**/*.mdx",
|
|
69
|
+
"**/*.js",
|
|
70
|
+
"**/*.json",
|
|
71
|
+
"**/*.sass",
|
|
72
|
+
"**/*.scss",
|
|
73
|
+
"**/*.less",
|
|
74
|
+
"**/*.css",
|
|
75
|
+
"**/*.css",
|
|
76
|
+
"**/*.jpeg",
|
|
77
|
+
"**/*.gif"
|
|
69
78
|
],
|
|
70
79
|
"private": false,
|
|
71
80
|
"engines": {
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": [
|
|
4
|
+
"es2019",
|
|
5
|
+
"DOM",
|
|
6
|
+
"ES6",
|
|
7
|
+
"DOM.Iterable",
|
|
8
|
+
"ScriptHost"
|
|
9
|
+
],
|
|
10
|
+
"target": "es2015",
|
|
11
|
+
"module": "commonjs",
|
|
12
|
+
"jsx": "react",
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"sourceMap": true,
|
|
15
|
+
"skipLibCheck": true,
|
|
16
|
+
"moduleResolution": "node",
|
|
17
|
+
"esModuleInterop": true,
|
|
18
|
+
"composite": true,
|
|
19
|
+
"emitDeclarationOnly": true,
|
|
20
|
+
"outDir": "dist",
|
|
21
|
+
"experimentalDecorators": true,
|
|
22
|
+
"emitDecoratorMetadata": true,
|
|
23
|
+
"allowSyntheticDefaultImports": true,
|
|
24
|
+
"strictPropertyInitialization": false,
|
|
25
|
+
"strict": true,
|
|
26
|
+
"noImplicitAny": false,
|
|
27
|
+
"rootDir": ".",
|
|
28
|
+
"preserveConstEnums": true,
|
|
29
|
+
"resolveJsonModule": true
|
|
30
|
+
},
|
|
31
|
+
"exclude": [
|
|
32
|
+
"dist"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.tabContainer {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.tab {
|
|
6
|
+
position: relative;
|
|
7
|
+
padding: 8px;
|
|
8
|
+
text-transform: uppercase;
|
|
9
|
+
font-size: 12px;
|
|
10
|
+
font-weight: bold;
|
|
11
|
+
outline: none;
|
|
12
|
+
|
|
13
|
+
color: #878c9a; //TODO
|
|
14
|
+
transition: color 300ms ease-in-out;
|
|
15
|
+
&:hover {
|
|
16
|
+
color: var(--bit-text-color-heavy);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.disabled {
|
|
20
|
+
color: var(--bit-text-color-light, #6c707c);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.active {
|
|
24
|
+
color: var(--bit-text-color-heavy);
|
|
25
|
+
|
|
26
|
+
&:before {
|
|
27
|
+
content: '';
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 0;
|
|
30
|
+
left: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
|
|
33
|
+
background-color: var(--bit-accent-color, #6c5ce7);
|
|
34
|
+
height: 3px;
|
|
35
|
+
border-radius: 2px;
|
|
36
|
+
|
|
37
|
+
transition: background-color 300ms, height 300ms;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|