@enso-ui/switch 2.0.7 → 2.1.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/LICENSE +1 -1
- package/README.md +3 -9
- package/package.json +3 -18
- package/src/bulma/VueSwitch.vue +5 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
# Vue Switch
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-

|
|
5
|
-

|
|
6
|
-

|
|
7
|
-

|
|
8
|
-
|
|
9
|
-
Vue Switch
|
|
3
|
+
Vue switch component.
|
|
10
4
|
|
|
11
5
|
## Usage
|
|
12
6
|
|
|
@@ -18,7 +12,7 @@ For live examples and demos, you may visit [laravel-enso.com](https://www.larave
|
|
|
18
12
|
|
|
19
13
|
### Installation, Configuration & Usage
|
|
20
14
|
|
|
21
|
-
Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/switch.html)
|
|
15
|
+
Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/switch.html).
|
|
22
16
|
|
|
23
17
|
## Contributions
|
|
24
18
|
|
|
@@ -28,4 +22,4 @@ Thank you to all the people who already contributed to Enso!
|
|
|
28
22
|
|
|
29
23
|
## License
|
|
30
24
|
|
|
31
|
-
[
|
|
25
|
+
[MIT](LICENSE)
|
package/package.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enso-ui/switch",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Vue Switch",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
6
|
"repository": {
|
|
10
7
|
"type": "git",
|
|
11
8
|
"url": "git+https://github.com/enso-ui/switch.git"
|
|
@@ -16,24 +13,12 @@
|
|
|
16
13
|
"bulma"
|
|
17
14
|
],
|
|
18
15
|
"author": "Adrian Ocneanu <aocneanu@gmail.com>",
|
|
19
|
-
"license": "
|
|
16
|
+
"license": "MIT",
|
|
20
17
|
"bugs": {
|
|
21
18
|
"url": "https://github.com/enso-ui/switch/issues"
|
|
22
19
|
},
|
|
23
20
|
"homepage": "https://github.com/enso-ui/switch#readme",
|
|
24
|
-
"
|
|
25
|
-
"bulma": "^0.9.0",
|
|
21
|
+
"peerDependencies": {
|
|
26
22
|
"vue": "^3.0"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@vue/cli-plugin-babel": "5.0.0-beta.6",
|
|
30
|
-
"@vue/cli-plugin-eslint": "5.0.0-beta.6",
|
|
31
|
-
"@vue/eslint-config-airbnb": "^5.0.0",
|
|
32
|
-
"autoprefixer": "^9.6.1",
|
|
33
|
-
"babel-eslint": "^10.0.1",
|
|
34
|
-
"cross-env": "^6.0.0",
|
|
35
|
-
"eslint": "^7.0.0",
|
|
36
|
-
"eslint-import-resolver-alias": "^1.1.2",
|
|
37
|
-
"eslint-plugin-vue": "^8.0.3"
|
|
38
23
|
}
|
|
39
24
|
}
|
package/src/bulma/VueSwitch.vue
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<label class="vue-switch">
|
|
3
|
+
<label class="control-label"
|
|
4
|
+
@click="toggle">
|
|
5
|
+
<slot name="before"/>
|
|
6
|
+
</label>
|
|
3
7
|
<input class="checkbox"
|
|
4
8
|
type="checkbox"
|
|
5
9
|
:value="modelValue"
|
|
@@ -13,7 +17,7 @@
|
|
|
13
17
|
@click="toggle"/>
|
|
14
18
|
<label class="control-label"
|
|
15
19
|
@click="toggle">
|
|
16
|
-
<slot/>
|
|
20
|
+
<slot name="after"/>
|
|
17
21
|
</label>
|
|
18
22
|
</label>
|
|
19
23
|
</template>
|
|
@@ -119,7 +123,6 @@ export default {
|
|
|
119
123
|
}
|
|
120
124
|
|
|
121
125
|
.control-label {
|
|
122
|
-
padding-left: 0.5rem;
|
|
123
126
|
cursor: pointer;
|
|
124
127
|
font-size: calc(0.9 * var(--height));
|
|
125
128
|
}
|