funuicss 1.1.0 → 1.2.0
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/component/Button.jsx +6 -5
- package/component/Col.jsx +74 -0
- package/component/Container.jsx +78 -0
- package/component/Grid.jsx +76 -0
- package/component/Icon.jsx +8 -4
- package/component/IconicInput.jsx +86 -0
- package/component/Input.jsx +196 -0
- package/component/Typography.jsx +1 -1
- package/package.json +1 -1
- package/src/Components/Alert.js +0 -68
- package/src/Components/Anchor.js +0 -12
- package/src/Components/Avatar.js +0 -11
- package/src/Components/Bg.js +0 -6
- package/src/Components/Breadcrumb.js +0 -24
- package/src/Components/Button.js +0 -44
- package/src/Components/Card.js +0 -37
- package/src/Components/CloseModal.jsx +0 -10
- package/src/Components/CloseSnackbar.js +0 -0
- package/src/Components/Col.js +0 -9
- package/src/Components/Color.js +0 -6
- package/src/Components/Container.js +0 -9
- package/src/Components/Div.js +0 -31
- package/src/Components/DropAction.js +0 -8
- package/src/Components/DropMenu.js +0 -8
- package/src/Components/Dropdown.js +0 -9
- package/src/Components/Dropitem.js +0 -8
- package/src/Components/Dropup.js +0 -9
- package/src/Components/Ellipsis.js +0 -10
- package/src/Components/Footer.js +0 -62
- package/src/Components/Grid.js +0 -11
- package/src/Components/Hr.js +0 -9
- package/src/Components/Icon.js +0 -6
- package/src/Components/IconicInput.js +0 -22
- package/src/Components/Input.js +0 -150
- package/src/Components/Layout.js +0 -30
- package/src/Components/LinkWrapper.js +0 -14
- package/src/Components/List.js +0 -9
- package/src/Components/ListItem.js +0 -9
- package/src/Components/LoadRing.js +0 -11
- package/src/Components/LoadSpan.js +0 -10
- package/src/Components/Logo.js +0 -15
- package/src/Components/Middle.js +0 -9
- package/src/Components/Modal.js +0 -39
- package/src/Components/Modalaction.js +0 -6
- package/src/Components/Modalcontent.js +0 -13
- package/src/Components/Modalheader.js +0 -12
- package/src/Components/NavBar.jsx +0 -12
- package/src/Components/NavLink.jsx +0 -10
- package/src/Components/NavLogo.js +0 -15
- package/src/Components/Navcenter.js +0 -14
- package/src/Components/Navleft.js +0 -14
- package/src/Components/Panelcontent.js +0 -11
- package/src/Components/Panelfront.js +0 -11
- package/src/Components/ProgressBar.js +0 -18
- package/src/Components/Roller.js +0 -10
- package/src/Components/RowFlex.js +0 -9
- package/src/Components/Section.js +0 -9
- package/src/Components/Sidebar.js +0 -203
- package/src/Components/SidebarTrigger.js +0 -15
- package/src/Components/Slidepanel.js +0 -11
- package/src/Components/Snackbar.js +0 -28
- package/src/Components/Table.js +0 -17
- package/src/Components/TableBody.js +0 -9
- package/src/Components/TableData.js +0 -9
- package/src/Components/TableHead.js +0 -9
- package/src/Components/TableRow.js +0 -9
- package/src/Components/Tip.js +0 -7
- package/src/Components/ToolTip.js +0 -9
- package/src/Components/Typography.js +0 -38
- package/src/index.js +0 -44
package/src/Components/Modal.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
export default function Modal({
|
|
4
|
-
children ,
|
|
5
|
-
funcss ,
|
|
6
|
-
animation ,
|
|
7
|
-
duration ,
|
|
8
|
-
open,
|
|
9
|
-
maxWidth,
|
|
10
|
-
maxHeight,
|
|
11
|
-
height,
|
|
12
|
-
width,
|
|
13
|
-
backdrop
|
|
14
|
-
}) {
|
|
15
|
-
if(open){
|
|
16
|
-
return (
|
|
17
|
-
<div
|
|
18
|
-
className={`${funcss} modal ${backdrop ? "backdrop" : ""}`}
|
|
19
|
-
|
|
20
|
-
>
|
|
21
|
-
<div className="modal-content"
|
|
22
|
-
style={{
|
|
23
|
-
animation:` ${duration}s ${animation}`,
|
|
24
|
-
maxWidth:maxWidth ? maxWidth : "",
|
|
25
|
-
maxHeight:maxHeight ? maxHeight : "",
|
|
26
|
-
width:width ? width : "",
|
|
27
|
-
height:height ? height : ""
|
|
28
|
-
}}
|
|
29
|
-
>
|
|
30
|
-
{children}
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
)
|
|
34
|
-
}{
|
|
35
|
-
return (
|
|
36
|
-
<div></div>
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
export default function Modalcontent({funcss,children,
|
|
3
|
-
maxWidth,
|
|
4
|
-
maxHeight,
|
|
5
|
-
height,
|
|
6
|
-
width,}) {
|
|
7
|
-
return (
|
|
8
|
-
<div className={`modal-body ${funcss} `}style={{
|
|
9
|
-
maxHeight:maxHeight ? maxHeight : "",
|
|
10
|
-
height:height ? height : ""
|
|
11
|
-
}}>{children}</div>
|
|
12
|
-
)
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Div from './Div';
|
|
3
|
-
import Icon from './Icon';
|
|
4
|
-
export default function Modalheader({funcss,children,close}) {
|
|
5
|
-
return (
|
|
6
|
-
<div className={`${funcss} modal-title`}>
|
|
7
|
-
<Div funcss="fit relative">
|
|
8
|
-
{children} {close}
|
|
9
|
-
</Div>
|
|
10
|
-
</div>
|
|
11
|
-
)
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
function Navbar({children , fixed , funcss , padding}) {
|
|
3
|
-
return (
|
|
4
|
-
<div>
|
|
5
|
-
<nav className={`navigation-bar ${funcss} ${fixed ? "fixedTop" : ""}`} style={{padding:`${padding ? padding : ""}`}}>
|
|
6
|
-
{children}
|
|
7
|
-
</nav>
|
|
8
|
-
</div>
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default Navbar;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Link from 'next/link';
|
|
3
|
-
const NavLink = ({children ,funcss , href , text , hoverable}) => {
|
|
4
|
-
return (
|
|
5
|
-
<Link href={href}>
|
|
6
|
-
<div className={`navbar-link ${funcss} ${hoverable ? "hover" : ""}`}>{children} {text}</div>
|
|
7
|
-
</Link>
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
export default NavLink;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
export default function ProgressBar({funcss , progress , height , children , content , bg , lined}) {
|
|
3
|
-
return (
|
|
4
|
-
<>
|
|
5
|
-
{
|
|
6
|
-
lined ?
|
|
7
|
-
<div className={` ${funcss} progressBar lined ${bg}`} >
|
|
8
|
-
{children} {content}
|
|
9
|
-
<div className={` ${funcss} ${bg} linedProgress text-smaller`} style={{width:`${progress}%` , height:`${height}px`}}></div>
|
|
10
|
-
</div>
|
|
11
|
-
:
|
|
12
|
-
<div className='progressBar'>
|
|
13
|
-
<div className={` ${funcss} progressInner ${bg} text-smaller`} style={{width:`${progress}%` , height:`${height}px` , padding:`${parseInt(progress) > 0 ? "0 1rem" : ""}`}}>{children} {content}</div>
|
|
14
|
-
</div>
|
|
15
|
-
}
|
|
16
|
-
</>
|
|
17
|
-
)
|
|
18
|
-
}
|
package/src/Components/Roller.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
export default function LoadSpan({funcss , width , height}) {
|
|
3
|
-
return (
|
|
4
|
-
<div className="roller" style={{width:`${width}px` , height:`${height}px`}}>
|
|
5
|
-
<div className={`${funcss}`}></div>
|
|
6
|
-
<div className={`${funcss}`}></div>
|
|
7
|
-
<div className={`${funcss}`}></div>
|
|
8
|
-
</div>
|
|
9
|
-
)
|
|
10
|
-
}
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Logo from './Logo';
|
|
3
|
-
import {useState} from "react"
|
|
4
|
-
import { useRouter } from 'next/router';
|
|
5
|
-
import Link from "next/link"
|
|
6
|
-
function Sidebar() {
|
|
7
|
-
const Router = useRouter()
|
|
8
|
-
let links = [
|
|
9
|
-
{
|
|
10
|
-
text:"Home",
|
|
11
|
-
path:""
|
|
12
|
-
} ,
|
|
13
|
-
{
|
|
14
|
-
text:"Components",
|
|
15
|
-
path:"components"
|
|
16
|
-
} ,
|
|
17
|
-
{
|
|
18
|
-
text:"Getting Started",
|
|
19
|
-
path:"gettingstarted"
|
|
20
|
-
} ,
|
|
21
|
-
{
|
|
22
|
-
text:"Colors",
|
|
23
|
-
path:"colors"
|
|
24
|
-
} ,
|
|
25
|
-
{
|
|
26
|
-
text:"Typography",
|
|
27
|
-
path:"typography"
|
|
28
|
-
} ,
|
|
29
|
-
{
|
|
30
|
-
text:"Helpers",
|
|
31
|
-
path:"helpers"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
text:"Show And Hide",
|
|
35
|
-
path:"show-hide"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
text:"Icons",
|
|
39
|
-
path:"icons"
|
|
40
|
-
} ,
|
|
41
|
-
{
|
|
42
|
-
text:"Container",
|
|
43
|
-
path:"container"
|
|
44
|
-
} ,
|
|
45
|
-
{
|
|
46
|
-
text:"Grid",
|
|
47
|
-
path:"grid"
|
|
48
|
-
} ,
|
|
49
|
-
{
|
|
50
|
-
text:"Buttons",
|
|
51
|
-
path:"buttons"
|
|
52
|
-
} ,
|
|
53
|
-
{
|
|
54
|
-
text:"Card",
|
|
55
|
-
path:"card"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
text:"Slide Panel",
|
|
59
|
-
path:"slidepanel"
|
|
60
|
-
} ,
|
|
61
|
-
{
|
|
62
|
-
text:"Inputs",
|
|
63
|
-
path:"input"
|
|
64
|
-
} ,
|
|
65
|
-
{
|
|
66
|
-
text:"Table",
|
|
67
|
-
path:"table"
|
|
68
|
-
} ,
|
|
69
|
-
{
|
|
70
|
-
text:"List",
|
|
71
|
-
path:"list"
|
|
72
|
-
} ,
|
|
73
|
-
{
|
|
74
|
-
text:"Alerts",
|
|
75
|
-
path:"alerts"
|
|
76
|
-
} ,
|
|
77
|
-
{
|
|
78
|
-
text:"Modal",
|
|
79
|
-
path:"modal"
|
|
80
|
-
} ,
|
|
81
|
-
{
|
|
82
|
-
text:"Dropdown",
|
|
83
|
-
path:"dropdown"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
text:"Progress Bar",
|
|
87
|
-
path:"progress"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
text:"Snackbar",
|
|
91
|
-
path:"snackbars"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
text:"Tooltip",
|
|
95
|
-
path:"tooltip"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
text:"Navigation bar",
|
|
99
|
-
path:"navigation"
|
|
100
|
-
},
|
|
101
|
-
// {
|
|
102
|
-
// text:"Slider",
|
|
103
|
-
// path:"slider"
|
|
104
|
-
// },
|
|
105
|
-
{
|
|
106
|
-
text:"About",
|
|
107
|
-
path:"about"
|
|
108
|
-
}
|
|
109
|
-
]
|
|
110
|
-
|
|
111
|
-
//handlesidebar
|
|
112
|
-
const [width, setwidth] = useState("0px");
|
|
113
|
-
const [display, setdisplay] = useState('none');
|
|
114
|
-
const Handlesidebar = ()=>{
|
|
115
|
-
if(width === "200px"){
|
|
116
|
-
setwidth("0px")
|
|
117
|
-
}else{
|
|
118
|
-
setwidth("200px")
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
const [search, setsearch] = useState('');
|
|
122
|
-
return (
|
|
123
|
-
<div className="">
|
|
124
|
-
|
|
125
|
-
<div className="open-sidebar">
|
|
126
|
-
<span className="material-icons icon size-2 pointer" onClick={Handlesidebar} >
|
|
127
|
-
menu
|
|
128
|
-
</span>
|
|
129
|
-
</div>
|
|
130
|
-
<div className="SideBar glass">
|
|
131
|
-
<div className="section padding ">
|
|
132
|
-
<input className="input search width-100-p padding-top-10 padding-bottom-10 text-center" onChange={(e)=>setsearch(e.target.value)} placeholder="Search..." />
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
<div className="sidecontent ">
|
|
136
|
-
|
|
137
|
-
<div className="section padding">
|
|
138
|
-
|
|
139
|
-
{
|
|
140
|
-
links.filter(text=>{
|
|
141
|
-
if(search === ''){
|
|
142
|
-
return links;
|
|
143
|
-
}else if (
|
|
144
|
-
text.text.toLowerCase().trim().includes(search.toLowerCase().trim())
|
|
145
|
-
){
|
|
146
|
-
return links
|
|
147
|
-
}
|
|
148
|
-
}).map(link=>(
|
|
149
|
-
<div className="padding" key={link.text.trim()}>
|
|
150
|
-
<Link href={`/${link.path}`}>
|
|
151
|
-
<a className="sidebar-link">
|
|
152
|
-
<div>{link.text}</div>
|
|
153
|
-
</a>
|
|
154
|
-
</Link>
|
|
155
|
-
|
|
156
|
-
</div>
|
|
157
|
-
))
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
|
|
163
|
-
</div>
|
|
164
|
-
<div className="SideBar fixed" style={{width : `${width}`}}>
|
|
165
|
-
<div className="section padding ">
|
|
166
|
-
<input className="input search width-100-p padding-top-10 padding-bottom-10 text-center" onChange={(e)=>setsearch(e.target.value)} placeholder="Search..." />
|
|
167
|
-
</div>
|
|
168
|
-
|
|
169
|
-
<div className="sidecontent">
|
|
170
|
-
|
|
171
|
-
<div className="section padding">
|
|
172
|
-
|
|
173
|
-
{
|
|
174
|
-
links.filter(text=>{
|
|
175
|
-
if(search === ''){
|
|
176
|
-
return links;
|
|
177
|
-
}else if (
|
|
178
|
-
text.text.toLowerCase().trim().includes(search.toLowerCase().trim())
|
|
179
|
-
){
|
|
180
|
-
return links
|
|
181
|
-
}
|
|
182
|
-
}).map(link=>(
|
|
183
|
-
<div className="sidebar-link" key={link.text.trim()}>
|
|
184
|
-
|
|
185
|
-
<Link href={`/${link.path}`}>
|
|
186
|
-
<a className='text-black hover-text-indigo'>
|
|
187
|
-
<div className='padding'>{link.text}</div>
|
|
188
|
-
</a>
|
|
189
|
-
</Link>
|
|
190
|
-
|
|
191
|
-
</div>
|
|
192
|
-
))
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
</div>
|
|
196
|
-
</div>
|
|
197
|
-
|
|
198
|
-
</div>
|
|
199
|
-
</div>
|
|
200
|
-
);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export default Sidebar;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React , {Component} from "react"
|
|
2
|
-
export default class SidebarTrigger extends Component{
|
|
3
|
-
render(){
|
|
4
|
-
return (
|
|
5
|
-
<div className={`
|
|
6
|
-
sidebar-trigger
|
|
7
|
-
${this.props.funcss}
|
|
8
|
-
`}
|
|
9
|
-
onClick={this.props.onClick}
|
|
10
|
-
>
|
|
11
|
-
{this.props.children}{this.props.content}
|
|
12
|
-
</div>
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { useEffect,useState } from "react"
|
|
2
|
-
const Snackbar = ({message, close , timeOut , open ,position , funcss , animation , duration}) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if(open){
|
|
6
|
-
return (
|
|
7
|
-
<div>
|
|
8
|
-
<div className={`snackbar ${position} ${funcss}`} style={{animation:` ${duration}s ${animation}`}}>
|
|
9
|
-
<div className="snackbar-content">
|
|
10
|
-
<div className="snackbar-body">
|
|
11
|
-
{message}
|
|
12
|
-
</div>
|
|
13
|
-
<div>
|
|
14
|
-
<span className="close-snackbar">
|
|
15
|
-
<span>{close}</span>
|
|
16
|
-
</span>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
);
|
|
23
|
-
}else{
|
|
24
|
-
<div></div>
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default Snackbar;
|
package/src/Components/Table.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
const Table = ({children , funcss , bordered , stripped , hoverable , showTotal , data}) => {
|
|
3
|
-
return (
|
|
4
|
-
<table className={`table ${funcss} ${bordered ? "border" : ""} ${stripped ? "stripped" : ""} ${hoverable ? "hoverable" : ""}`}>
|
|
5
|
-
{children}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
{
|
|
9
|
-
showTotal &&
|
|
10
|
-
<tr className="borderless">
|
|
11
|
-
<td className="padding borderless text-bold"> Total {children.length - 1} </td>
|
|
12
|
-
</tr>
|
|
13
|
-
}
|
|
14
|
-
</table>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
export default Table;
|
package/src/Components/Tip.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
export default function Typography({size ,
|
|
3
|
-
bg ,
|
|
4
|
-
color,
|
|
5
|
-
children ,
|
|
6
|
-
hoverBg,
|
|
7
|
-
hoverText ,
|
|
8
|
-
text ,
|
|
9
|
-
heading ,
|
|
10
|
-
funcss,
|
|
11
|
-
emp,
|
|
12
|
-
bold,
|
|
13
|
-
block
|
|
14
|
-
}) {
|
|
15
|
-
return (
|
|
16
|
-
<span className={`
|
|
17
|
-
text-${size}
|
|
18
|
-
text-${color}
|
|
19
|
-
${bg}
|
|
20
|
-
hover-text-${hoverText}
|
|
21
|
-
hover-${hoverBg}
|
|
22
|
-
${heading}
|
|
23
|
-
${funcss}
|
|
24
|
-
${emp ? "emp" : ""}
|
|
25
|
-
${bold ? "bold" : ""}
|
|
26
|
-
`}
|
|
27
|
-
style={{
|
|
28
|
-
display:block ? "block" : "",
|
|
29
|
-
transition:"0.2s linear",
|
|
30
|
-
fontWeight:`${bold ? "bold" : ""}`
|
|
31
|
-
}}
|
|
32
|
-
>
|
|
33
|
-
{children}
|
|
34
|
-
{text}
|
|
35
|
-
</span>
|
|
36
|
-
)
|
|
37
|
-
}
|
|
38
|
-
|
package/src/index.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
export default function Button({color ,
|
|
4
|
-
bg,
|
|
5
|
-
funcss ,
|
|
6
|
-
size,
|
|
7
|
-
onChange ,
|
|
8
|
-
onClick,
|
|
9
|
-
startIcon,
|
|
10
|
-
endIcon ,
|
|
11
|
-
children,
|
|
12
|
-
text,
|
|
13
|
-
rounded,
|
|
14
|
-
raised,
|
|
15
|
-
height,
|
|
16
|
-
width,
|
|
17
|
-
float
|
|
18
|
-
}) {
|
|
19
|
-
return (
|
|
20
|
-
<button className={`button
|
|
21
|
-
text-${color}
|
|
22
|
-
${bg}
|
|
23
|
-
${funcss}
|
|
24
|
-
${size}
|
|
25
|
-
${rounded ? "roundBtn" : ""}
|
|
26
|
-
${float ? "floatBtn" : ""}
|
|
27
|
-
${raised ? "card" : ""}
|
|
28
|
-
`}
|
|
29
|
-
onClick={onClick}
|
|
30
|
-
onChange={onChange}
|
|
31
|
-
style={{
|
|
32
|
-
height:height ? height : "",
|
|
33
|
-
width:width ? width : ""
|
|
34
|
-
}}
|
|
35
|
-
>
|
|
36
|
-
{startIcon}
|
|
37
|
-
{text}
|
|
38
|
-
{children}
|
|
39
|
-
{endIcon}
|
|
40
|
-
</button>
|
|
41
|
-
)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|