ywana-core8 0.0.719 → 0.0.721

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,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.719",
3
+ "version": "0.0.721",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/css/html.css CHANGED
@@ -54,4 +54,8 @@ td.actions {
54
54
  justify-content: center;
55
55
  align-items: center;
56
56
  color: var(--text-color-lighter)
57
+ }
58
+
59
+ .btn {
60
+ background-color: red !important;
57
61
  }
@@ -5,10 +5,14 @@ import React, { useContext } from 'react'
5
5
  */
6
6
  export const CollectionEditor = (props) => {
7
7
 
8
+ const context = useContext(CollectionContext)
9
+ const { selected } = context
8
10
  const { customEditor } = props
9
11
 
12
+ const style = selected ? 'selected' : ''
13
+
10
14
  return (
11
- <div className="collection-editor">
15
+ <div className={`collection-editor ${selected}`}>
12
16
  {customEditor}
13
17
  </div>
14
18
  )
@@ -13,8 +13,6 @@ export const CollectionList = (props) => {
13
13
  const { all = [], selected, filters, customFilters } = context
14
14
  const [search, setSearch] = useState('')
15
15
 
16
-
17
-
18
16
  function changeSearch(id, value) {
19
17
  setSearch(value)
20
18
  }
@@ -39,8 +37,10 @@ export const CollectionList = (props) => {
39
37
  }
40
38
  })
41
39
 
40
+ const style = selected ? 'selected' : ''
41
+
42
42
  return (
43
- <div className="collection-list">
43
+ <div className={`collection-list ${style}`}>
44
44
  <List items={items} onSelect={select} groupBy={groupBy} />
45
45
  {searchBy.length > 0 ? (
46
46
  <div className="search-box">
@@ -1,10 +1,11 @@
1
1
  .collection-page {
2
- border: solid 3px red;
3
2
  width: 100%;
4
3
  height: 100%;
5
4
  overflow: hidden;
6
5
  }
7
6
 
7
+ /*************** IDE LAYOUT ***************/
8
+
8
9
  .collection-page.ide {
9
10
  display: grid;
10
11
  grid-template-areas: "header header"
@@ -14,6 +15,14 @@
14
15
  grid-template-rows: auto auto 1fr;
15
16
  }
16
17
 
18
+ .collection-page.full-list {
19
+ grid-template-columns: 1fr 0;
20
+ }
21
+
22
+ .collection-page.full-editor {
23
+ grid-template-columns: 0 1fr;
24
+ }
25
+
17
26
  .collection-page.ide .header {
18
27
  grid-area: header;
19
28
  border-bottom: solid 1px var(--divider-color);
@@ -21,10 +30,12 @@
21
30
 
22
31
  .collection-page.ide .collection-filters {
23
32
  grid-area: filters;
33
+ overflow: hidden;
24
34
  }
25
35
 
26
36
  .collection-page.ide .collection-editor {
27
37
  grid-area: main;
38
+ overflow: hidden;
28
39
  }
29
40
 
30
41
  .collection-page.ide .collection-aside {
@@ -33,6 +44,7 @@
33
44
 
34
45
  .collection-page.ide .collection-list {
35
46
  grid-area: list;
47
+ overflow: hidden;
36
48
  }
37
49
 
38
50
  .collection-page.ide .collection-console {
@@ -41,4 +53,16 @@
41
53
 
42
54
  .collection-page.ide .footer {
43
55
  grid-area: footer;
44
- }
56
+ }
57
+
58
+
59
+ /*************** FULLPAGE LAYOUT ***************/
60
+ .collection-page.fullpage {
61
+ display: grid;
62
+ grid-template-areas: "header"
63
+ "nav"
64
+ "main";
65
+ grid-template-columns: 1fr;
66
+ grid-template-rows: auto auto 1fr;
67
+ }
68
+
@@ -19,7 +19,7 @@ export const CollectionPage = (props) => {
19
19
  listGroupBy, listSearchBy, listItemRenderer,
20
20
  customEditor,
21
21
  } = props
22
-
22
+
23
23
  return (
24
24
  <div className={`collection-page ${layout}`}>
25
25
  <CollectionContextProvider host={host} url={url} filtersValue={filtersValue}>