ywana-core8 0.0.292 → 0.0.293

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.292",
3
+ "version": "0.0.293",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
package/src/site/site.css CHANGED
@@ -59,6 +59,11 @@
59
59
  padding: .5rem .7rem;
60
60
  }
61
61
 
62
+ .site6>menu>main>.section-title.min {
63
+ border-bottom: solid 1px var(--divider-color);
64
+ max-height: 1px
65
+ }
66
+
62
67
  .site6>menu>main>.site-menu-item {
63
68
  width: 100%;
64
69
  display: flex;
package/src/site/site.js CHANGED
@@ -82,10 +82,10 @@ export const SiteProvider = ({ children, siteLang, siteDictionary, showConsole }
82
82
  animationIn: ["animate__animated", "animate__fadeIn"],
83
83
  animationOut: ["animate__animated", "animate__fadeOut"],
84
84
  dismiss: {
85
- duration: 3000,
86
- onScreen: true
85
+ duration: 3000,
86
+ onScreen: true
87
87
  }
88
- });
88
+ });
89
89
  }
90
90
  }
91
91
 
@@ -103,7 +103,7 @@ export const Site = ({ icon, logo, title, toolbar, children, init, min, lang, di
103
103
  return (
104
104
  <SiteProvider siteLang={lang} siteDictionary={dictionary}>
105
105
  <div className="site6">
106
- <SiteHeader icon={icon} title={title}/>
106
+ <SiteHeader icon={icon} title={title} />
107
107
  <SiteToolBar >{toolbar}</SiteToolBar>
108
108
  <SiteMenu logo={logo} title={title} min={min} >{children}</SiteMenu>
109
109
  <SitePage init={init}>
@@ -198,13 +198,13 @@ const SiteMenu = ({ logo, title, children, min }) => {
198
198
  <main >
199
199
  {Object.keys(sections).map(title => (
200
200
  <Fragment key={title}>
201
- <div className="section-title">{title}</div>
201
+ <div className={`section-title ${style}`}>{sideNav === "max" ? title : ''}</div>
202
202
  {sections[title].map(({ id, icon = 'info', title }) => {
203
203
  const styleItem = id === page ? 'selected' : ''
204
204
  return (
205
205
  <div className={`site-menu-item ${styleItem}`} key={id} onClick={() => goto(id)}>
206
206
  <Icon key={id} icon={icon} clickable action={() => goto(id)} />
207
- { sideNav === 'max' ? <label>{title}</label> : null }
207
+ {sideNav === 'max' ? <label>{title}</label> : null}
208
208
  </div>
209
209
  )
210
210
  })}