@teambit/command-bar 0.0.556 → 0.0.560
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
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/command-bar",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.560",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/explorer/command-bar",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.explorer",
|
|
8
8
|
"name": "command-bar",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.560"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/harmony": "0.2.11",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"core-js": "^3.0.0",
|
|
20
20
|
"@teambit/base-ui.surfaces.card": "1.0.1",
|
|
21
21
|
"@teambit/base-ui.text.muted-text": "1.0.1",
|
|
22
|
-
"@teambit/preview": "0.0.
|
|
23
|
-
"@teambit/pubsub": "0.0.
|
|
24
|
-
"@teambit/ui-foundation.ui.is-browser": "0.0.
|
|
25
|
-
"@teambit/ui": "0.0.
|
|
26
|
-
"@teambit/bit-error": "0.0.
|
|
27
|
-
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.
|
|
28
|
-
"@teambit/ui-foundation.ui.keycap": "0.0.
|
|
29
|
-
"@teambit/component": "0.0.
|
|
22
|
+
"@teambit/preview": "0.0.560",
|
|
23
|
+
"@teambit/pubsub": "0.0.560",
|
|
24
|
+
"@teambit/ui-foundation.ui.is-browser": "0.0.466",
|
|
25
|
+
"@teambit/ui": "0.0.560",
|
|
26
|
+
"@teambit/bit-error": "0.0.375",
|
|
27
|
+
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.466",
|
|
28
|
+
"@teambit/ui-foundation.ui.keycap": "0.0.466",
|
|
29
|
+
"@teambit/component": "0.0.560"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/mousetrap": "1.6.5",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@types/node": "12.20.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@teambit/legacy": "1.0.
|
|
42
|
+
"@teambit/legacy": "1.0.175",
|
|
43
43
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
44
44
|
"react": "^16.8.0 || ^17.0.0"
|
|
45
45
|
},
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"react": "-"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@teambit/legacy": "1.0.
|
|
70
|
+
"@teambit/legacy": "1.0.175",
|
|
71
71
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
72
72
|
"react": "^16.8.0 || ^17.0.0"
|
|
73
73
|
}
|
|
@@ -76,8 +76,17 @@
|
|
|
76
76
|
"files": [
|
|
77
77
|
"dist",
|
|
78
78
|
"!dist/tsconfig.tsbuildinfo",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
79
|
+
"**/*.md",
|
|
80
|
+
"**/*.mdx",
|
|
81
|
+
"**/*.js",
|
|
82
|
+
"**/*.json",
|
|
83
|
+
"**/*.sass",
|
|
84
|
+
"**/*.scss",
|
|
85
|
+
"**/*.less",
|
|
86
|
+
"**/*.css",
|
|
87
|
+
"**/*.css",
|
|
88
|
+
"**/*.jpeg",
|
|
89
|
+
"**/*.gif"
|
|
81
90
|
],
|
|
82
91
|
"private": false,
|
|
83
92
|
"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,13 @@
|
|
|
1
|
+
.input {
|
|
2
|
+
font-size: inherit;
|
|
3
|
+
font-family: inherit;
|
|
4
|
+
color: inherit;
|
|
5
|
+
border: none;
|
|
6
|
+
|
|
7
|
+
// command bar is open iff input is focused, so outline is not needed
|
|
8
|
+
outline: none;
|
|
9
|
+
|
|
10
|
+
&::placeholder {
|
|
11
|
+
color: var(--bit-text-inactive, #babec9);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@import '~@teambit/ui-foundation.ui.constants.z-indexes/z-indexes.module.scss';
|
|
2
|
+
|
|
3
|
+
.commandBar {
|
|
4
|
+
display: none;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
position: fixed;
|
|
8
|
+
top: 130px;
|
|
9
|
+
left: 50%;
|
|
10
|
+
transform: translate(-50%, 0);
|
|
11
|
+
width: 643px;
|
|
12
|
+
border: 1px solid var(--bit-border-color, #babec9);
|
|
13
|
+
max-width: 90%;
|
|
14
|
+
|
|
15
|
+
overflow: hidden; // enforce border-radius
|
|
16
|
+
|
|
17
|
+
color: var(--bit-text-color-heavy, #2b2b2b);
|
|
18
|
+
box-shadow: 0 40px 60px 0 rgba(0, 0, 0, 0.32);
|
|
19
|
+
|
|
20
|
+
&.visible {
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.commandBar {
|
|
26
|
+
padding: 0px;
|
|
27
|
+
z-index: $modal-z-index;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.input {
|
|
31
|
+
padding: 0 24px;
|
|
32
|
+
font-size: 20px;
|
|
33
|
+
height: 56px;
|
|
34
|
+
line-height: 56px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.results {
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
|
|
40
|
+
&:not(:empty) {
|
|
41
|
+
margin-bottom: 8px;
|
|
42
|
+
border-top: solid 1px var(--bit-border-color, #babec9);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.commandBarOption {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
|
|
5
|
+
height: 40px;
|
|
6
|
+
padding: 0 24px;
|
|
7
|
+
transition: all 180ms;
|
|
8
|
+
|
|
9
|
+
user-select: none;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
background-color: var(--bit-bg-heavy, #f6f6f6);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.active,
|
|
17
|
+
&.active:hover {
|
|
18
|
+
background-color: var(--bit-accent-bg, #eceaff);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.name {
|
|
23
|
+
flex: 1 1;
|
|
24
|
+
text-overflow: ellipsis;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.commandKeys {
|
|
30
|
+
float: right;
|
|
31
|
+
font-size: 15px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.icon {
|
|
35
|
+
width: 16px;
|
|
36
|
+
height: 16px;
|
|
37
|
+
margin-right: 8px;
|
|
38
|
+
}
|