@teambit/compositions 0.0.558 → 0.0.562

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.
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: Renders component instances as part of different compositions.
3
+ labels: ['ui', 'tests']
4
+ ---
5
+
6
+ import { Compositions } from '@teambit/compositions.aspect-docs.compositions';
7
+
8
+ <Compositions />
@@ -0,0 +1,100 @@
1
+ @import '~@teambit/ui-foundation.ui.constants.z-indexes/z-indexes.module.scss';
2
+ $panelBg: #fafafa;
3
+
4
+ .compositionsPage {
5
+ height: 100%;
6
+ width: 100%;
7
+ }
8
+
9
+ .compositionPreview {
10
+ padding-top: 20px;
11
+ width: 100%;
12
+ }
13
+
14
+ .left {
15
+ min-width: 200px;
16
+
17
+ //cannot assign max-width directly to right side
18
+ max-width: calc(100% - 200px);
19
+
20
+ display: flex;
21
+ overflow-y: auto;
22
+ flex-direction: column;
23
+ }
24
+
25
+ .right {
26
+ background: $panelBg;
27
+ overflow-y: auto;
28
+ // this is to fix the right panel when it gets too big or too small
29
+ min-width: 200px;
30
+ max-width: calc(100% - 200px);
31
+ }
32
+
33
+ .menuBar {
34
+ border-bottom: 1px solid var(--bit-border-color-lightest, #ededed);
35
+ }
36
+
37
+ .splitter {
38
+ position: relative;
39
+
40
+ > :first-child {
41
+ z-index: $nav-z-index + 1;
42
+ position: absolute;
43
+ }
44
+ }
45
+
46
+ .collapser {
47
+ right: 0;
48
+ }
49
+
50
+ .tabsContainer {
51
+ display: flex;
52
+ flex-direction: column;
53
+ height: 100%;
54
+ }
55
+
56
+ .tabs {
57
+ flex: none;
58
+ }
59
+
60
+ .tabContent {
61
+ flex: 1 1;
62
+ overflow: auto;
63
+
64
+ &:empty {
65
+ display: none;
66
+ }
67
+ }
68
+
69
+ .compositions {
70
+ padding: 16px 8px 0 8px;
71
+ }
72
+
73
+ .openInNewTab {
74
+ text-decoration: none;
75
+ color: inherit;
76
+
77
+ &:active {
78
+ color: inherit;
79
+ }
80
+ }
81
+
82
+ .noCompositionsPage {
83
+ padding: 50px 40px 100px 40px;
84
+ width: 100%;
85
+ box-sizing: border-box;
86
+ max-width: 1440px;
87
+ margin: 0 auto;
88
+
89
+ .title {
90
+ margin-bottom: 24px;
91
+ font-size: var(--bit-h-xs, 26px);
92
+ }
93
+ .separator {
94
+ margin-bottom: 41px;
95
+ }
96
+ }
97
+
98
+ .buildStatusMessage {
99
+ margin: auto;
100
+ }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/compositions",
3
- "version": "0.0.558",
3
+ "version": "0.0.562",
4
4
  "homepage": "https://bit.dev/teambit/compositions/compositions",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compositions",
8
8
  "name": "compositions",
9
- "version": "0.0.558"
9
+ "version": "0.0.562"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.2.11",
@@ -23,32 +23,32 @@
23
23
  "@teambit/documenter.ui.heading": "4.1.1",
24
24
  "@teambit/documenter.ui.property-table": "4.1.3",
25
25
  "@teambit/evangelist.elements.icon": "1.0.2",
26
- "@teambit/component": "0.0.558",
27
- "@teambit/compositions.model.composition-id": "0.0.465",
28
- "@teambit/graphql": "0.0.558",
29
- "@teambit/cli": "0.0.388",
30
- "@teambit/dev-files": "0.0.558",
31
- "@teambit/preview": "0.0.558",
32
- "@teambit/schema": "0.0.558",
33
- "@teambit/workspace": "0.0.558",
34
- "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.465",
35
- "@teambit/envs": "0.0.558",
36
- "@teambit/compositions.ui.compositions-menu-bar": "0.0.142",
37
- "@teambit/compositions.ui.hooks.use-composition": "0.0.142",
26
+ "@teambit/component": "0.0.562",
27
+ "@teambit/compositions.model.composition-id": "0.0.467",
28
+ "@teambit/graphql": "0.0.562",
29
+ "@teambit/cli": "0.0.390",
30
+ "@teambit/dev-files": "0.0.562",
31
+ "@teambit/preview": "0.0.562",
32
+ "@teambit/schema": "0.0.562",
33
+ "@teambit/workspace": "0.0.562",
34
+ "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.468",
35
+ "@teambit/envs": "0.0.562",
36
+ "@teambit/compositions.ui.compositions-menu-bar": "0.0.144",
37
+ "@teambit/compositions.ui.hooks.use-composition": "0.0.144",
38
38
  "@teambit/design.ui.alert-card": "0.0.13",
39
39
  "@teambit/design.ui.empty-box": "0.0.352",
40
40
  "@teambit/design.ui.input.option-button": "0.0.26",
41
41
  "@teambit/design.ui.separator": "0.0.351",
42
42
  "@teambit/design.ui.surfaces.status-message-card": "0.0.6",
43
- "@teambit/docs.ui.queries.get-docs": "0.0.465",
44
- "@teambit/mdx.ui.mdx-layout": "0.0.469",
45
- "@teambit/panels": "0.0.388",
46
- "@teambit/preview.ui.component-preview": "0.0.465",
47
- "@teambit/ui-foundation.ui.buttons.collapser": "0.0.170",
48
- "@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.158",
49
- "@teambit/ui": "0.0.558",
50
- "@teambit/compositions.model.composition-type": "0.0.466",
51
- "@teambit/compositions.ui.composition-card": "0.0.471"
43
+ "@teambit/docs.ui.queries.get-docs": "0.0.467",
44
+ "@teambit/mdx.ui.mdx-layout": "0.0.471",
45
+ "@teambit/panels": "0.0.390",
46
+ "@teambit/preview.ui.component-preview": "0.0.467",
47
+ "@teambit/ui-foundation.ui.buttons.collapser": "0.0.173",
48
+ "@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.160",
49
+ "@teambit/ui": "0.0.562",
50
+ "@teambit/compositions.model.composition-type": "0.0.468",
51
+ "@teambit/compositions.ui.composition-card": "0.0.473"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^17.0.8",
@@ -59,10 +59,10 @@
59
59
  "@types/jest": "^26.0.0",
60
60
  "@types/react-dom": "^17.0.5",
61
61
  "@types/node": "12.20.4",
62
- "@teambit/compositions.aspect-docs.compositions": "0.0.107"
62
+ "@teambit/compositions.aspect-docs.compositions": "0.0.109"
63
63
  },
64
64
  "peerDependencies": {
65
- "@teambit/legacy": "1.0.174",
65
+ "@teambit/legacy": "1.0.176",
66
66
  "react-dom": "^16.8.0 || ^17.0.0",
67
67
  "react": "^16.8.0 || ^17.0.0"
68
68
  },
@@ -90,7 +90,7 @@
90
90
  "react": "-"
91
91
  },
92
92
  "peerDependencies": {
93
- "@teambit/legacy": "1.0.174",
93
+ "@teambit/legacy": "1.0.176",
94
94
  "react-dom": "^16.8.0 || ^17.0.0",
95
95
  "react": "^16.8.0 || ^17.0.0"
96
96
  }
@@ -99,10 +99,17 @@
99
99
  "files": [
100
100
  "dist",
101
101
  "!dist/tsconfig.tsbuildinfo",
102
- "README.md",
103
- "README.mdx",
104
- "*.js",
105
- "*.json"
102
+ "**/*.md",
103
+ "**/*.mdx",
104
+ "**/*.js",
105
+ "**/*.json",
106
+ "**/*.sass",
107
+ "**/*.scss",
108
+ "**/*.less",
109
+ "**/*.css",
110
+ "**/*.css",
111
+ "**/*.jpeg",
112
+ "**/*.gif"
106
113
  ],
107
114
  "private": false,
108
115
  "engines": {
@@ -0,0 +1,16 @@
1
+ .background {
2
+ background: var(--bit-bg-dent, #f6f6f6);
3
+ padding: 12px;
4
+ border-radius: 6px;
5
+ border: 1px solid var(--bit-border-color-lightest, #ededed);
6
+ display: flex;
7
+ overflow-x: auto;
8
+
9
+ > * {
10
+ margin-right: 16px;
11
+ }
12
+
13
+ > :last-child {
14
+ margin: 0;
15
+ }
16
+ }
@@ -0,0 +1,119 @@
1
+ .linkWrapper {
2
+ padding: 0 12px;
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: space-between;
6
+ height: 40px;
7
+ font-size: var(--bit-p-xs);
8
+ transition: all 300ms ease-in-out;
9
+
10
+ &:hover {
11
+ background-color: var(--bit-border-color-lightest, #ededed);
12
+ // border-radius: 8px;
13
+ transition: background-color 300ms ease-in-out;
14
+ .right {
15
+ visibility: unset;
16
+ opacity: 1;
17
+ color: var(--bit-text-color-light, #6c707c);
18
+ //TODO - fix hover effect and timing of icon
19
+ transition: visibility 200ms, opacity 100ms ease-in-out;
20
+ .icon {
21
+ &:hover {
22
+ color: var(--bit-text-color-heavy);
23
+ }
24
+ }
25
+ }
26
+ }
27
+ &.active {
28
+ display: flex;
29
+ align-items: center;
30
+ background-color: var(--bit-accent-color, #6c5ce7);
31
+ color: var(--bit-bg-color, #ffffff);
32
+
33
+ // overrides
34
+ &:hover {
35
+ background-color: #5d4aec;
36
+ }
37
+
38
+ .box {
39
+ background-color: var(--bit-bg-color, #ffffff);
40
+ }
41
+
42
+ .right {
43
+ visibility: unset;
44
+ opacity: 1;
45
+ color: var(--bit-accent-bg, #eceaff);
46
+ .icon {
47
+ &:hover {
48
+ color: var(--bit-bg-color, #ffffff);
49
+ }
50
+ }
51
+ }
52
+ }
53
+ .right {
54
+ opacity: 0;
55
+ visibility: hidden;
56
+ font-size: 13px;
57
+ transition: visibility 200ms, opacity 100ms ease-in-out;
58
+ }
59
+ }
60
+
61
+ .box {
62
+ width: 10px;
63
+ height: 10px;
64
+ flex-shrink: 0;
65
+ background-color: var(--bit-text-color-heavy);
66
+ margin-right: 11px;
67
+ border-radius: 1px;
68
+ }
69
+ .name {
70
+ overflow: hidden;
71
+ text-overflow: ellipsis;
72
+ white-space: nowrap;
73
+ margin-right: 8px;
74
+ }
75
+ .panelLink {
76
+ display: flex;
77
+ align-items: center;
78
+ cursor: pointer;
79
+ user-select: none;
80
+ width: 100%;
81
+ height: 100%;
82
+ text-decoration: none;
83
+ color: inherit;
84
+ min-width: 0;
85
+
86
+ &:active {
87
+ color: inherit;
88
+ }
89
+ }
90
+
91
+ .tabs {
92
+ display: flex;
93
+ align-items: center;
94
+ margin-bottom: 17px;
95
+ > div {
96
+ position: relative;
97
+ padding: 8px;
98
+ text-transform: uppercase;
99
+ font-size: 12px;
100
+ font-weight: bold;
101
+ &:not(:first-child) {
102
+ color: #878c9a;
103
+ }
104
+
105
+ &:first-child {
106
+ &:before {
107
+ content: '';
108
+ position: absolute;
109
+ top: 0;
110
+ left: 0;
111
+ right: 0;
112
+ background-color: var(--bit-accent-color, #6c5ce7);
113
+ height: 3px;
114
+ border-radius: 10px;
115
+ transition: background-color 300ms, height 300ms;
116
+ }
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,15 @@
1
+ .linkWrapper {
2
+ background-color: var(--bit-accent-color, #6c5ce7);
3
+ &.active {
4
+ display: flex;
5
+ background-color: var(--bit-accent-color, #6c5ce7);
6
+ height: 40px;
7
+ }
8
+ }
9
+ .panelLink {
10
+ cursor: pointer;
11
+ }
12
+
13
+ .composition {
14
+ width: 200px;
15
+ }