benivo-ui-library 1.6.4 → 1.6.5
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/{lib/benivo-ui-lib.less → benivo-ui-lib.less} +0 -0
- package/{lib/button.less → button.less} +0 -0
- package/{lib/checkbox.less → checkbox.less} +0 -0
- package/{lib/index.js → index.js} +0 -0
- package/{lib/input.less → input.less} +0 -0
- package/{lib/main.less → main.less} +0 -0
- package/{lib/mixins.less → mixins.less} +0 -0
- package/{lib/navigation.less → navigation.less} +0 -0
- package/package.json +1 -1
- package/{lib/radiobutton.less → radiobutton.less} +0 -0
- package/{lib/select.less → select.less} +0 -0
- package/{lib/spinner.less → spinner.less} +0 -0
- package/{lib/swiper-a11y.less → swiper-a11y.less} +0 -0
- package/{lib/swiper-effect-cube.less → swiper-effect-cube.less} +0 -0
- package/{lib/swiper-effect-fade.less → swiper-effect-fade.less} +0 -0
- package/{lib/swiper-effect-flip.less → swiper-effect-flip.less} +0 -0
- package/{lib/swiper-lazy.less → swiper-lazy.less} +0 -0
- package/{lib/swiper-navigation.less → swiper-navigation.less} +0 -0
- package/{lib/swiper-pagination.less → swiper-pagination.less} +0 -0
- package/{lib/swiper-scrollbar.less → swiper-scrollbar.less} +0 -0
- package/{lib/swiper-thumb.less → swiper-thumb.less} +0 -0
- package/{lib/swiper-zoom.less → swiper-zoom.less} +0 -0
- package/{lib/swiper.less → swiper.less} +0 -0
- package/{lib/tooltip.less → tooltip.less} +0 -0
- package/{lib/variables.less → variables.less} +0 -0
- package/.prettierrc.json +0 -8
- package/Benivo.UI.lib.csproj +0 -21
- package/Benivo.UI.lib.sln +0 -33
- package/LICENSE +0 -21
- package/Properties/launchSettings.json +0 -27
- package/lib/README.md +0 -38
- package/lib/package.json +0 -58
- package/webpack.config.dev.js +0 -69
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/.prettierrc.json
DELETED
package/Benivo.UI.lib.csproj
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
2
|
-
|
|
3
|
-
<PropertyGroup Label="Globals">
|
|
4
|
-
<SccProjectName>SAK</SccProjectName>
|
|
5
|
-
<SccProvider>SAK</SccProvider>
|
|
6
|
-
<SccAuxPath>SAK</SccAuxPath>
|
|
7
|
-
<SccLocalPath>SAK</SccLocalPath>
|
|
8
|
-
</PropertyGroup>
|
|
9
|
-
|
|
10
|
-
<PropertyGroup>
|
|
11
|
-
<TargetFramework>netcoreapp3.1</TargetFramework>
|
|
12
|
-
</PropertyGroup>
|
|
13
|
-
|
|
14
|
-
<ItemGroup>
|
|
15
|
-
<Compile Remove="lib\**" />
|
|
16
|
-
<Content Remove="lib\**" />
|
|
17
|
-
<EmbeddedResource Remove="lib\**" />
|
|
18
|
-
<None Remove="lib\**" />
|
|
19
|
-
</ItemGroup>
|
|
20
|
-
|
|
21
|
-
</Project>
|
package/Benivo.UI.lib.sln
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
3
|
-
# Visual Studio Version 16
|
|
4
|
-
VisualStudioVersion = 16.0.30503.244
|
|
5
|
-
MinimumVisualStudioVersion = 10.0.40219.1
|
|
6
|
-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Benivo.UI.lib", "Benivo.UI.lib.csproj", "{1AA1D8F2-00EE-407C-8520-FB4A67381AF5}"
|
|
7
|
-
EndProject
|
|
8
|
-
Global
|
|
9
|
-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
10
|
-
Debug|Any CPU = Debug|Any CPU
|
|
11
|
-
Release|Any CPU = Release|Any CPU
|
|
12
|
-
EndGlobalSection
|
|
13
|
-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
14
|
-
{1AA1D8F2-00EE-407C-8520-FB4A67381AF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
15
|
-
{1AA1D8F2-00EE-407C-8520-FB4A67381AF5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
16
|
-
{1AA1D8F2-00EE-407C-8520-FB4A67381AF5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
17
|
-
{1AA1D8F2-00EE-407C-8520-FB4A67381AF5}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
18
|
-
EndGlobalSection
|
|
19
|
-
GlobalSection(SolutionProperties) = preSolution
|
|
20
|
-
HideSolutionNode = FALSE
|
|
21
|
-
EndGlobalSection
|
|
22
|
-
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
23
|
-
SolutionGuid = {262C0D48-5B19-41E7-96BD-5B2C9D72BD07}
|
|
24
|
-
EndGlobalSection
|
|
25
|
-
GlobalSection(TeamFoundationVersionControl) = preSolution
|
|
26
|
-
SccNumberOfProjects = 2
|
|
27
|
-
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
|
|
28
|
-
SccTeamFoundationServer = https://brandjourney.visualstudio.com/
|
|
29
|
-
SccLocalPath0 = .
|
|
30
|
-
SccProjectUniqueName1 = Benivo.UI.lib.csproj
|
|
31
|
-
SccLocalPath1 = .
|
|
32
|
-
EndGlobalSection
|
|
33
|
-
EndGlobal
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Benivo
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"iisSettings": {
|
|
3
|
-
"windowsAuthentication": false,
|
|
4
|
-
"anonymousAuthentication": true,
|
|
5
|
-
"iisExpress": {
|
|
6
|
-
"applicationUrl": "http://localhost:62524/",
|
|
7
|
-
"sslPort": 44383
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"profiles": {
|
|
11
|
-
"IIS Express": {
|
|
12
|
-
"commandName": "IISExpress",
|
|
13
|
-
"launchBrowser": true,
|
|
14
|
-
"environmentVariables": {
|
|
15
|
-
"ASPNETCORE_ENVIRONMENT": "Development"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"Benivo.UI.lib": {
|
|
19
|
-
"commandName": "Project",
|
|
20
|
-
"launchBrowser": true,
|
|
21
|
-
"environmentVariables": {
|
|
22
|
-
"ASPNETCORE_ENVIRONMENT": "Development"
|
|
23
|
-
},
|
|
24
|
-
"applicationUrl": "https://localhost:5001;http://localhost:5000"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
package/lib/README.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# benivo-ui-library
|
|
2
|
-
|
|
3
|
-
[](https://travis-ci.org/joemccann/dillinger)
|
|
4
|
-
|
|
5
|
-
`benivo-ui-library` is a collection of react hooks and components for faster development.
|
|
6
|
-
|
|
7
|
-
# Installation
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
$npm install benivo-ui-library --save
|
|
11
|
-
```
|
|
12
|
-
# Basic usage
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
import React from 'react';
|
|
16
|
-
import { Input, Select, Checkbox, Button } from 'benivo-ui-library';
|
|
17
|
-
import { useInput, useSelect, useCheckbox } from 'benivo-ui-library';
|
|
18
|
-
import { withTransition } from 'benivo-ui-library';
|
|
19
|
-
|
|
20
|
-
function MyApp() {
|
|
21
|
-
const email = useInput('initialvalue@gmail.com');
|
|
22
|
-
const agree = useCheckbox(false);
|
|
23
|
-
const event= useSelect('all');
|
|
24
|
-
const eventOptions=['all', 'news', 'promotional'];
|
|
25
|
-
const handleSubmit=()=>{
|
|
26
|
-
//some smart code here
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<form>
|
|
31
|
-
<Input label="Email" {...email.bind} />
|
|
32
|
-
<Select label="Events" options={eventOptions} {...event.bind}/>
|
|
33
|
-
<Checkbox label="I agree" {...agree.bind} />
|
|
34
|
-
<Button onClick={handleSubmit}>Subscribe</Button>
|
|
35
|
-
</form>
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
```
|
package/lib/package.json
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "benivo-ui-library",
|
|
3
|
-
"version": "1.6.4",
|
|
4
|
-
"description": "Benivo UI library",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"readme": "README.md",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"react",
|
|
10
|
-
"react-ui-lib",
|
|
11
|
-
"components",
|
|
12
|
-
"hooks"
|
|
13
|
-
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "rimraf lib && webpack --mode production --config webpack.config.js",
|
|
16
|
-
"start": "webpack-dev-server --open --hot --mode development --config webpack.config.dev.js"
|
|
17
|
-
},
|
|
18
|
-
"peerDependencies": {
|
|
19
|
-
"prop-types": "^15.7.2",
|
|
20
|
-
"react": "^18.2.0",
|
|
21
|
-
"react-dom": "^18.2.0"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"babel-core": "^6.21.0",
|
|
25
|
-
"babel-loader": "^7.1.4",
|
|
26
|
-
"babel-preset-env": "^1.6.1",
|
|
27
|
-
"babel-preset-react": "^6.16.0",
|
|
28
|
-
"babel-preset-stage-0": "^6.24.1",
|
|
29
|
-
"copy-webpack-plugin": "^5.0.4",
|
|
30
|
-
"css-loader": "^5.2.4",
|
|
31
|
-
"file-loader": "^5.0.2",
|
|
32
|
-
"html-webpack-plugin": "^4.4.1",
|
|
33
|
-
"less": "^3.10.3",
|
|
34
|
-
"less-loader": "^5.0.0",
|
|
35
|
-
"mini-css-extract-plugin": "^0.8.0",
|
|
36
|
-
"path": "^0.12.7",
|
|
37
|
-
"prop-types": "^15.7.2",
|
|
38
|
-
"react": "^18.2.0",
|
|
39
|
-
"react-dom": "^18.2.0",
|
|
40
|
-
"style-loader": "^1.0.1",
|
|
41
|
-
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
42
|
-
"url-loader": "^3.0.0",
|
|
43
|
-
"webpack": "^4.5.0",
|
|
44
|
-
"webpack-bundle-analyzer": "^4.4.0",
|
|
45
|
-
"webpack-cli": "^3.2.1",
|
|
46
|
-
"webpack-dev-server": "^3.9.0"
|
|
47
|
-
},
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"lodash": "^4.17.21",
|
|
50
|
-
"npm": "^7.13.0",
|
|
51
|
-
"react-loading-skeleton": "^2.1.1",
|
|
52
|
-
"react-router-dom": "^5.2.0",
|
|
53
|
-
"react-select": "^4.3.1",
|
|
54
|
-
"rimraf": "^3.0.2",
|
|
55
|
-
"swiper": "^7.3.1",
|
|
56
|
-
"terser-webpack-plugin": "^4.2.3"
|
|
57
|
-
}
|
|
58
|
-
}
|
package/webpack.config.dev.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
var path = require('path');
|
|
2
|
-
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
|
3
|
-
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
4
|
-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
mode: 'development',
|
|
8
|
-
entry: './src/App.js',
|
|
9
|
-
devtool: 'inline-source-map',
|
|
10
|
-
output: {
|
|
11
|
-
path: path.resolve('lib'),
|
|
12
|
-
filename: '[name].js'
|
|
13
|
-
},
|
|
14
|
-
module: {
|
|
15
|
-
rules: [
|
|
16
|
-
{
|
|
17
|
-
test: /\.jsx?$/,
|
|
18
|
-
exclude: /(node_modules)/,
|
|
19
|
-
use: 'babel-loader'
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
test: /\.js?$/,
|
|
23
|
-
exclude: /(node_modules)/,
|
|
24
|
-
use: 'babel-loader'
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
test: /\.css$/,
|
|
28
|
-
use: [
|
|
29
|
-
MiniCssExtractPlugin.loader,
|
|
30
|
-
{
|
|
31
|
-
loader: 'css-loader',
|
|
32
|
-
options: { sourceMap: true }
|
|
33
|
-
},
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
test: /\.(less)$/,
|
|
38
|
-
use: [{
|
|
39
|
-
loader: MiniCssExtractPlugin.loader // creates style nodes from JS strings
|
|
40
|
-
}, {
|
|
41
|
-
loader: 'css-loader' // translates CSS into CommonJS
|
|
42
|
-
, options: { sourceMap: true }
|
|
43
|
-
}, {
|
|
44
|
-
options: { sourceMap: true },
|
|
45
|
-
loader: 'less-loader' // compiles Less to CSS
|
|
46
|
-
}]
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
resolve: {
|
|
51
|
-
alias: {
|
|
52
|
-
Hook: path.resolve(__dirname, 'src/hooks'),
|
|
53
|
-
HOC: path.resolve(__dirname, 'src/components/HOC'),
|
|
54
|
-
Utils: path.resolve(__dirname, 'src/utils')
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
plugins: [
|
|
58
|
-
new CopyWebpackPlugin([{ from: "src/assets" }]),
|
|
59
|
-
new MiniCssExtractPlugin({
|
|
60
|
-
filename: 'main.css',
|
|
61
|
-
chunkFilename: '[id].css',
|
|
62
|
-
}),
|
|
63
|
-
new HtmlWebpackPlugin({
|
|
64
|
-
template: __dirname + '/src/index.html',
|
|
65
|
-
filename: 'index.html',
|
|
66
|
-
inject: 'body'
|
|
67
|
-
})
|
|
68
|
-
]
|
|
69
|
-
}
|