ywana-core8 0.0.498 → 0.0.501

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.498",
3
+ "version": "0.0.501",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -6,18 +6,18 @@ 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
 
@@ -28,6 +28,7 @@ export const Dialog = (props) => {
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
@@ -5,11 +5,9 @@ import { Header } from '../html/header'
5
5
  import { Tooltip } from '../html/tooltip'
6
6
  import { Page } from './page'
7
7
  import { SiteContext } from './siteContext'
8
- import './site.css'
9
-
10
8
  import { ReactNotifications, Store } from 'react-notifications-component'
11
9
  import 'react-notifications-component/dist/theme.css'
12
- import { Console } from './console'
10
+ import './site.css'
13
11
 
14
12
 
15
13
 
@@ -174,8 +172,6 @@ const SiteToolBar = ({ children }) => {
174
172
  * Site Footer
175
173
  */
176
174
  const SiteFooter = ({ children }) => {
177
- const context = useContext(SiteContext)
178
- const { breadcrumb } = context
179
175
  return (
180
176
  <footer>
181
177
  {children}
@@ -319,7 +315,7 @@ const SiteConsole = () => {
319
315
  }
320
316
 
321
317
  return context.showConsole ? (
322
- <footer className="site-console" >
318
+ <div className="site-console" >
323
319
  <Header>
324
320
  <Tabs>
325
321
  <Tab label="Console" />
@@ -329,8 +325,8 @@ const SiteConsole = () => {
329
325
  <Icon icon="clear_all" size="small" clickable action={clear} />
330
326
  </nav>
331
327
  <main>
332
- {context.consoleLines.map(line => <div>{line}</div>)}
328
+ {context.consoleLines.map((line,index) => <div key={`log-${index}`}>{line}</div>)}
333
329
  </main>
334
- </footer>
330
+ </div>
335
331
  ) : ''
336
332
  }