ywana-core8 0.0.499 → 0.0.502

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.499",
3
+ "version": "0.0.502",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -42,6 +42,7 @@
42
42
  font-size: 1rem;
43
43
  font-weight: 600;
44
44
  padding: 1rem;
45
+ display: flex;
45
46
  }
46
47
 
47
48
  .dialog-panel > main {
@@ -6,28 +6,29 @@ import './dialog.css'
6
6
  /**
7
7
  * Dialog
8
8
  *
9
- * <Dialog title={title} open={true} onAction={onAction} actions={actions}>
9
+ * <Dialog title={title} open={true} actions={actions}>
10
10
  */
11
11
  export const Dialog = (props) => {
12
12
 
13
13
  const site = useContext(SiteContext)
14
- const { icon, title = "Dialog", children, onAction, actions, className } = props
14
+ const { icon, title = "Dialog", toolbar, children, actions, className } = props
15
15
 
16
16
  function close() {
17
17
  if (className === "prompt") {
18
18
  site.closePromptDialog()
19
19
  } else {
20
- site.closeDialog()
20
+ site.closeDialog()
21
21
  }
22
22
  }
23
23
 
24
24
  return (
25
25
  <Fragment>
26
26
  <div className={`overlay ${className}`} onMouseDown={close} />
27
- <dialog className={`dialog-panel ${className}`}>
27
+ <dialog className={`dialog-panel ${className}`}>
28
28
  <header>
29
29
  {icon ? <MenuIcon icon={icon} /> : null}
30
30
  <Text>{title}</Text>
31
+ {toolbar}
31
32
  </header>
32
33
  <main>
33
34
  {children}
package/src/site/site.css CHANGED
@@ -4,8 +4,8 @@
4
4
  height: 100vh;
5
5
  display: grid;
6
6
  grid-template-columns: auto 1fr 1fr auto;
7
- grid-template-rows: var(--site-header-height) 1fr auto;
8
- grid-template-areas: "header header nav nav" "menu main main aside" "footer footer footer footer";
7
+ grid-template-rows: var(--site-header-height) 1fr auto auto;
8
+ grid-template-areas: "header header nav nav" "menu main main aside" "footer footer footer footer" "console console console console";
9
9
  background-color: var(--background-color);
10
10
  }
11
11
 
@@ -112,7 +112,7 @@
112
112
  }
113
113
 
114
114
  .site6>.site-console {
115
- grid-area: footer;
115
+ grid-area: console;
116
116
  min-height: 20rem;
117
117
  background-color: rgb(222, 222, 222);
118
118
  color: #000;
package/src/site/site.js CHANGED
@@ -172,8 +172,6 @@ const SiteToolBar = ({ children }) => {
172
172
  * Site Footer
173
173
  */
174
174
  const SiteFooter = ({ children }) => {
175
- const context = useContext(SiteContext)
176
- const { breadcrumb } = context
177
175
  return (
178
176
  <footer>
179
177
  {children}
@@ -317,7 +315,7 @@ const SiteConsole = () => {
317
315
  }
318
316
 
319
317
  return context.showConsole ? (
320
- <footer className="site-console" >
318
+ <div className="site-console" >
321
319
  <Header>
322
320
  <Tabs>
323
321
  <Tab label="Console" />
@@ -329,6 +327,6 @@ const SiteConsole = () => {
329
327
  <main>
330
328
  {context.consoleLines.map((line,index) => <div key={`log-${index}`}>{line}</div>)}
331
329
  </main>
332
- </footer>
330
+ </div>
333
331
  ) : ''
334
332
  }