@ctx-core/switch 11.1.35 → 11.2.1
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/RoundSwitch/index.d.ts +5 -0
- package/RoundSwitch/index.svelte +59 -0
- package/package.json +9 -6
- package/CHANGELOG.md +0 -1780
- package/src/RoundSwitch/index.d.ts +0 -4
- package/src/RoundSwitch/index.svelte +0 -59
- package/src/index.js +0 -1
- package/svelte.config.js +0 -16
- package/tsconfig.json +0 -35
- /package/{src/RoundSwitch → RoundSwitch}/index.js +0 -0
- /package/{src/index.d.ts → index.d.ts} +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let id = ''
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<label class="Switch Round_Switch">
|
|
6
|
-
<input {id} type="checkbox" on:change>
|
|
7
|
-
<span class="slider round"></span>
|
|
8
|
-
</label>
|
|
9
|
-
|
|
10
|
-
<style>
|
|
11
|
-
.Switch {
|
|
12
|
-
position: relative;
|
|
13
|
-
display: inline-block;
|
|
14
|
-
width: 60px;
|
|
15
|
-
height: 34px;
|
|
16
|
-
}
|
|
17
|
-
.Switch input {
|
|
18
|
-
display: none;
|
|
19
|
-
}
|
|
20
|
-
.Switch input:checked + .slider {
|
|
21
|
-
background-color: #3EBBC0;
|
|
22
|
-
}
|
|
23
|
-
.Switch input:checked + .slider:before {
|
|
24
|
-
-webkit-transform: translateX(26px);
|
|
25
|
-
-ms-transform: translateX(26px);
|
|
26
|
-
transform: translateX(26px);
|
|
27
|
-
}
|
|
28
|
-
.Switch input:focused + .slider {
|
|
29
|
-
box-shadow: 0 0 1px #2196F3;
|
|
30
|
-
}
|
|
31
|
-
.Switch input + .slider.round {
|
|
32
|
-
border-radius: 34px;
|
|
33
|
-
}
|
|
34
|
-
.Switch input + .slider.round:before {
|
|
35
|
-
border-radius: 50%;
|
|
36
|
-
}
|
|
37
|
-
.Switch .slider {
|
|
38
|
-
position: absolute;
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
top: 0;
|
|
41
|
-
left: 0;
|
|
42
|
-
right: 0;
|
|
43
|
-
bottom: 0;
|
|
44
|
-
background-color: #ccc;
|
|
45
|
-
-webkit-transition: .4s;
|
|
46
|
-
transition: .4s;
|
|
47
|
-
}
|
|
48
|
-
.Switch .slider:before {
|
|
49
|
-
position: absolute;
|
|
50
|
-
content: "";
|
|
51
|
-
height: 26px;
|
|
52
|
-
width: 26px;
|
|
53
|
-
left: 4px;
|
|
54
|
-
bottom: 4px;
|
|
55
|
-
background-color: white;
|
|
56
|
-
-webkit-transition: .4s;
|
|
57
|
-
transition: .4s;
|
|
58
|
-
}
|
|
59
|
-
</style>
|
package/src/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RoundSwitch/index.js'
|
package/svelte.config.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import adapter from '@sveltejs/adapter-auto'
|
|
2
|
-
import preprocess from 'svelte-preprocess'
|
|
3
|
-
/** @type {import('@sveltejs/kit').Config} */
|
|
4
|
-
const config = {
|
|
5
|
-
// Consult https://github.com/sveltejs/svelte-preprocess
|
|
6
|
-
// for more information about preprocessors
|
|
7
|
-
preprocess: preprocess(),
|
|
8
|
-
kit: {
|
|
9
|
-
adapter: adapter(),
|
|
10
|
-
package: {
|
|
11
|
-
dir: 'lib',
|
|
12
|
-
emitTypes: false
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export default config
|
package/tsconfig.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compileOnSave": true,
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "ES2022",
|
|
5
|
-
"composite": true,
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"noEmitOnError": true,
|
|
9
|
-
"noErrorTruncation": true,
|
|
10
|
-
"module": "ESNext",
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"noImplicitAny": true,
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"allowSyntheticDefaultImports": true,
|
|
16
|
-
"noImplicitThis": true,
|
|
17
|
-
"noUnusedLocals": true,
|
|
18
|
-
"noUnusedParameters": true,
|
|
19
|
-
"typeRoots": [
|
|
20
|
-
"../../../node_modules/@types",
|
|
21
|
-
"../../node_modules/@types",
|
|
22
|
-
"node_modules/@types"
|
|
23
|
-
],
|
|
24
|
-
"rootDir": "src",
|
|
25
|
-
"outDir": "lib",
|
|
26
|
-
"declarationDir": "lib",
|
|
27
|
-
"lib": ["dom", "ESNext"],
|
|
28
|
-
"strict": true
|
|
29
|
-
},
|
|
30
|
-
"exclude": [
|
|
31
|
-
"node_modules",
|
|
32
|
-
"lib"
|
|
33
|
-
],
|
|
34
|
-
"references": []
|
|
35
|
-
}
|
|
File without changes
|
|
File without changes
|