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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +5 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/site.css +5 -0
- package/src/site/site.js +6 -6
package/package.json
CHANGED
package/src/site/site.css
CHANGED
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
|
-
|
86
|
-
|
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=
|
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
|
-
{
|
207
|
+
{sideNav === 'max' ? <label>{title}</label> : null}
|
208
208
|
</div>
|
209
209
|
)
|
210
210
|
})}
|