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.
Files changed (70) hide show
  1. package/component/Button.jsx +6 -5
  2. package/component/Col.jsx +74 -0
  3. package/component/Container.jsx +78 -0
  4. package/component/Grid.jsx +76 -0
  5. package/component/Icon.jsx +8 -4
  6. package/component/IconicInput.jsx +86 -0
  7. package/component/Input.jsx +196 -0
  8. package/component/Typography.jsx +1 -1
  9. package/package.json +1 -1
  10. package/src/Components/Alert.js +0 -68
  11. package/src/Components/Anchor.js +0 -12
  12. package/src/Components/Avatar.js +0 -11
  13. package/src/Components/Bg.js +0 -6
  14. package/src/Components/Breadcrumb.js +0 -24
  15. package/src/Components/Button.js +0 -44
  16. package/src/Components/Card.js +0 -37
  17. package/src/Components/CloseModal.jsx +0 -10
  18. package/src/Components/CloseSnackbar.js +0 -0
  19. package/src/Components/Col.js +0 -9
  20. package/src/Components/Color.js +0 -6
  21. package/src/Components/Container.js +0 -9
  22. package/src/Components/Div.js +0 -31
  23. package/src/Components/DropAction.js +0 -8
  24. package/src/Components/DropMenu.js +0 -8
  25. package/src/Components/Dropdown.js +0 -9
  26. package/src/Components/Dropitem.js +0 -8
  27. package/src/Components/Dropup.js +0 -9
  28. package/src/Components/Ellipsis.js +0 -10
  29. package/src/Components/Footer.js +0 -62
  30. package/src/Components/Grid.js +0 -11
  31. package/src/Components/Hr.js +0 -9
  32. package/src/Components/Icon.js +0 -6
  33. package/src/Components/IconicInput.js +0 -22
  34. package/src/Components/Input.js +0 -150
  35. package/src/Components/Layout.js +0 -30
  36. package/src/Components/LinkWrapper.js +0 -14
  37. package/src/Components/List.js +0 -9
  38. package/src/Components/ListItem.js +0 -9
  39. package/src/Components/LoadRing.js +0 -11
  40. package/src/Components/LoadSpan.js +0 -10
  41. package/src/Components/Logo.js +0 -15
  42. package/src/Components/Middle.js +0 -9
  43. package/src/Components/Modal.js +0 -39
  44. package/src/Components/Modalaction.js +0 -6
  45. package/src/Components/Modalcontent.js +0 -13
  46. package/src/Components/Modalheader.js +0 -12
  47. package/src/Components/NavBar.jsx +0 -12
  48. package/src/Components/NavLink.jsx +0 -10
  49. package/src/Components/NavLogo.js +0 -15
  50. package/src/Components/Navcenter.js +0 -14
  51. package/src/Components/Navleft.js +0 -14
  52. package/src/Components/Panelcontent.js +0 -11
  53. package/src/Components/Panelfront.js +0 -11
  54. package/src/Components/ProgressBar.js +0 -18
  55. package/src/Components/Roller.js +0 -10
  56. package/src/Components/RowFlex.js +0 -9
  57. package/src/Components/Section.js +0 -9
  58. package/src/Components/Sidebar.js +0 -203
  59. package/src/Components/SidebarTrigger.js +0 -15
  60. package/src/Components/Slidepanel.js +0 -11
  61. package/src/Components/Snackbar.js +0 -28
  62. package/src/Components/Table.js +0 -17
  63. package/src/Components/TableBody.js +0 -9
  64. package/src/Components/TableData.js +0 -9
  65. package/src/Components/TableHead.js +0 -9
  66. package/src/Components/TableRow.js +0 -9
  67. package/src/Components/Tip.js +0 -7
  68. package/src/Components/ToolTip.js +0 -9
  69. package/src/Components/Typography.js +0 -38
  70. package/src/index.js +0 -44
@@ -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,6 +0,0 @@
1
- import React from 'react'
2
- export default function Modalaction({funcss,children}) {
3
- return (
4
- <div className={`${funcss} modal-action`}>{children}</div>
5
- )
6
- }
@@ -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,15 +0,0 @@
1
- import React , {Component} from "react"
2
- export default class NavLogo extends Component{
3
- render(){
4
- return (
5
- <div className={`
6
- nav-logo
7
- ${this.props.bg}
8
- ${this.props.funcss}
9
- `}
10
- >
11
- {this.props.children}
12
- </div>
13
- );
14
- }
15
- }
@@ -1,14 +0,0 @@
1
- import React , {Component} from "react"
2
- export default class Navcenter extends Component{
3
- render(){
4
- return (
5
- <div className={`
6
- ${this.props.bg}
7
- ${this.props.funcss}
8
- `}
9
- >
10
- {this.props.children}
11
- </div>
12
- );
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- import React , {Component} from "react"
2
- export default class Navleft extends Component{
3
- render(){
4
- return (
5
- <div className={`
6
- ${this.props.bg}
7
- ${this.props.funcss}
8
- `}
9
- >
10
- {this.props.children}
11
- </div>
12
- );
13
- }
14
- }
@@ -1,11 +0,0 @@
1
-
2
- import React , {Component} from "react"
3
- export default class Panelcontent extends Component{
4
- render(){
5
- return (
6
- <div className={`slide-panel-content ${this.props.funcss}`}>
7
- {this.props.children}
8
- </div>
9
- );
10
- }
11
- }
@@ -1,11 +0,0 @@
1
-
2
- import React , {Component} from "react"
3
- export default class Panelfront extends Component{
4
- render(){
5
- return (
6
- <div className={`slide-panel-image ${this.props.funcss}`}>
7
- {this.props.children}
8
- </div>
9
- );
10
- }
11
- }
@@ -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
- }
@@ -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,9 +0,0 @@
1
- import React from 'react'
2
- const RowFlex = ({children ,funcss , content , justify}) => {
3
- return (
4
- <div className={`row-flex ${funcss} ${justify}`}>
5
- {children} {content}
6
- </div>
7
- );
8
- }
9
- export default RowFlex;
@@ -1,9 +0,0 @@
1
- import React from 'react'
2
- const Section = ({children , funcss}) => {
3
- return (
4
- <div className={funcss} style={{paddingTop:"5px" , paddingBottom:"5px"}}>
5
- {children}
6
- </div>
7
- );
8
- }
9
- export default Section;
@@ -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,11 +0,0 @@
1
-
2
- import React , {Component} from "react"
3
- export default class Slidepanel extends Component{
4
- render(){
5
- return (
6
- <div className={`slide-panel slide-${this.props.slide} ${this.props.funcss}`}>
7
- {this.props.children}
8
- </div>
9
- );
10
- }
11
- }
@@ -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;
@@ -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;
@@ -1,9 +0,0 @@
1
- import React from 'react'
2
- const TableBody = ({children , funcss}) => {
3
- return (
4
- <tbody className={`${funcss}`}>
5
- {children}
6
- </tbody>
7
- );
8
- }
9
- export default TableBody;
@@ -1,9 +0,0 @@
1
- import React from 'react'
2
- const TableData = ({children , funcss}) => {
3
- return (
4
- <td className={`${funcss}`}>
5
- {children}
6
- </td>
7
- );
8
- }
9
- export default TableData;
@@ -1,9 +0,0 @@
1
- import React from 'react'
2
- const TableHead = ({children , funcss}) => {
3
- return (
4
- <thead className={`${funcss}`}>
5
- {children}
6
- </thead>
7
- );
8
- }
9
- export default TableHead;
@@ -1,9 +0,0 @@
1
- import React from 'react'
2
- const TableRow = ({children , funcss}) => {
3
- return (
4
- <tr className={`${funcss}`}>
5
- {children}
6
- </tr>
7
- );
8
- }
9
- export default TableRow;
@@ -1,7 +0,0 @@
1
- import React from 'react'
2
-
3
- export default function Tip({tip , funcss, children , content , animation , duration }) {
4
- return (
5
- <span className={`tip-${tip} tip ${funcss}`} style={{animation:` ${duration}s ${animation}`}}>{children} {content}</span>
6
- )
7
- }
@@ -1,9 +0,0 @@
1
- const ToolTip = ({funcss , children}) => {
2
- return (
3
- <span className={`tooltip ${funcss}`}>
4
- {children}
5
- </span>
6
- );
7
- }
8
-
9
- export default ToolTip;
@@ -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} &nbsp;
37
- {text}
38
- {children} &nbsp;
39
- {endIcon}
40
- </button>
41
- )
42
- }
43
-
44
-