streamlit-toggle-diy 1.1.3__tar.gz → 1.1.5__tar.gz
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.
- {streamlit_toggle_diy-1.1.3/streamlit_toggle_diy.egg-info → streamlit_toggle_diy-1.1.5}/PKG-INFO +4 -8
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/README.md +3 -7
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/setup.py +1 -1
- streamlit_toggle_diy-1.1.5/streamlit_toggle_diy/frontend/build/asset-manifest.json +19 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/build/index.html +1 -1
- streamlit_toggle_diy-1.1.5/streamlit_toggle_diy/frontend/build/precache-manifest.668eb5ddc0ea6880d50beeba97fd93a9.js +22 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/build/service-worker.js +1 -1
- streamlit_toggle_diy-1.1.5/streamlit_toggle_diy/frontend/build/static/js/2.8590d27d.chunk.js +3 -0
- streamlit_toggle_diy-1.1.5/streamlit_toggle_diy/frontend/build/static/js/2.8590d27d.chunk.js.map +1 -0
- streamlit_toggle_diy-1.1.5/streamlit_toggle_diy/frontend/build/static/js/main.d5e2b6f4.chunk.js +2 -0
- streamlit_toggle_diy-1.1.5/streamlit_toggle_diy/frontend/build/static/js/main.d5e2b6f4.chunk.js.map +1 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/src/streamlit_toggle.tsx +32 -21
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5/streamlit_toggle_diy.egg-info}/PKG-INFO +4 -8
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy.egg-info/SOURCES.txt +6 -6
- streamlit_toggle_diy-1.1.3/streamlit_toggle_diy/frontend/build/asset-manifest.json +0 -19
- streamlit_toggle_diy-1.1.3/streamlit_toggle_diy/frontend/build/precache-manifest.b7df6085566f07f8f27b94ee8ed2d302.js +0 -22
- streamlit_toggle_diy-1.1.3/streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js +0 -3
- streamlit_toggle_diy-1.1.3/streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js.map +0 -1
- streamlit_toggle_diy-1.1.3/streamlit_toggle_diy/frontend/build/static/js/main.9f3c3eed.chunk.js +0 -2
- streamlit_toggle_diy-1.1.3/streamlit_toggle_diy/frontend/build/static/js/main.9f3c3eed.chunk.js.map +0 -1
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/LICENSE +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/MANIFEST.in +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/setup.cfg +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/__init__.py +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/build/bootstrap.min.css +0 -0
- /streamlit_toggle_diy-1.1.3/streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js.LICENSE.txt → /streamlit_toggle_diy-1.1.5/streamlit_toggle_diy/frontend/build/static/js/2.8590d27d.chunk.js.LICENSE.txt +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/build/static/js/runtime-main.cc20bba3.js +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/build/static/js/runtime-main.cc20bba3.js.map +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/public/bootstrap.min.css +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/public/index.html +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/src/index.tsx +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/src/react-app-env.d.ts +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy/frontend/src/style.css +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy.egg-info/dependency_links.txt +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy.egg-info/requires.txt +0 -0
- {streamlit_toggle_diy-1.1.3 → streamlit_toggle_diy-1.1.5}/streamlit_toggle_diy.egg-info/top_level.txt +0 -0
{streamlit_toggle_diy-1.1.3/streamlit_toggle_diy.egg-info → streamlit_toggle_diy-1.1.5}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: streamlit_toggle_diy
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.5
|
4
4
|
Summary: A customized Streamlit toggle switch component with customizable labels, colors, and border radius
|
5
5
|
Home-page: https://github.com/flowing-water1/streamlit-toggle-switch-diy
|
6
6
|
Author: Flow Water
|
@@ -10,12 +10,10 @@ Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE
|
11
11
|
Requires-Dist: streamlit>=0.63
|
12
12
|
|
13
|
-
#
|
13
|
+
# streamlit-toggle-diy
|
14
14
|
|
15
15
|
Creates a toggle switch with color and placement customizations, and you can change the label's color, radius, font size, and more.
|
16
16
|
|
17
|
-
|
18
|
-
|
19
17
|
## Function
|
20
18
|
|
21
19
|
- Customize label background color
|
@@ -28,14 +26,14 @@ Creates a toggle switch with color and placement customizations, and you can cha
|
|
28
26
|
## Installation
|
29
27
|
|
30
28
|
```shell
|
31
|
-
pip install streamlit-toggle-
|
29
|
+
pip install streamlit-toggle-diy
|
32
30
|
```
|
33
31
|
|
34
32
|
## Usage
|
35
33
|
|
36
34
|
```python
|
37
35
|
import streamlit as st
|
38
|
-
import
|
36
|
+
import streamlit-toggle-diy as tog
|
39
37
|
|
40
38
|
tog.st_toggle_switch(
|
41
39
|
key=None,
|
@@ -54,7 +52,6 @@ tog.st_toggle_switch(
|
|
54
52
|
)
|
55
53
|
```
|
56
54
|
|
57
|
-
|
58
55
|
## Parameters
|
59
56
|
|
60
57
|
|
@@ -85,7 +82,6 @@ tog.st_toggle_switch(
|
|
85
82
|
> * If both `background_color_near_button_start` and `background_color_near_button_end` are provided, a gradient behind the switch is created.
|
86
83
|
> * If you only provide one color, it will be used as a solid background.
|
87
84
|
> * `label_start_color` and `label_end_color` control the text color of labels, while `label_bg_color_start` and `label_bg_color_end` control the background of those labels.
|
88
|
-
>
|
89
85
|
|
90
86
|
## Operation
|
91
87
|
|
@@ -1,9 +1,7 @@
|
|
1
|
-
#
|
1
|
+
# streamlit-toggle-diy
|
2
2
|
|
3
3
|
Creates a toggle switch with color and placement customizations, and you can change the label's color, radius, font size, and more.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
5
|
## Function
|
8
6
|
|
9
7
|
- Customize label background color
|
@@ -16,14 +14,14 @@ Creates a toggle switch with color and placement customizations, and you can cha
|
|
16
14
|
## Installation
|
17
15
|
|
18
16
|
```shell
|
19
|
-
pip install streamlit-toggle-
|
17
|
+
pip install streamlit-toggle-diy
|
20
18
|
```
|
21
19
|
|
22
20
|
## Usage
|
23
21
|
|
24
22
|
```python
|
25
23
|
import streamlit as st
|
26
|
-
import
|
24
|
+
import streamlit-toggle-diy as tog
|
27
25
|
|
28
26
|
tog.st_toggle_switch(
|
29
27
|
key=None,
|
@@ -42,7 +40,6 @@ tog.st_toggle_switch(
|
|
42
40
|
)
|
43
41
|
```
|
44
42
|
|
45
|
-
|
46
43
|
## Parameters
|
47
44
|
|
48
45
|
|
@@ -73,7 +70,6 @@ tog.st_toggle_switch(
|
|
73
70
|
> * If both `background_color_near_button_start` and `background_color_near_button_end` are provided, a gradient behind the switch is created.
|
74
71
|
> * If you only provide one color, it will be used as a solid background.
|
75
72
|
> * `label_start_color` and `label_end_color` control the text color of labels, while `label_bg_color_start` and `label_bg_color_end` control the background of those labels.
|
76
|
-
>
|
77
73
|
|
78
74
|
## Operation
|
79
75
|
|
@@ -7,7 +7,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
7
7
|
|
8
8
|
setuptools.setup(
|
9
9
|
name="streamlit_toggle_diy",
|
10
|
-
version="1.1.
|
10
|
+
version="1.1.5",
|
11
11
|
author="Flow Water",
|
12
12
|
author_email="1665526933@qq.com",
|
13
13
|
description="A customized Streamlit toggle switch component with customizable labels, colors, and border radius",
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"files": {
|
3
|
+
"main.js": "./static/js/main.d5e2b6f4.chunk.js",
|
4
|
+
"main.js.map": "./static/js/main.d5e2b6f4.chunk.js.map",
|
5
|
+
"runtime-main.js": "./static/js/runtime-main.cc20bba3.js",
|
6
|
+
"runtime-main.js.map": "./static/js/runtime-main.cc20bba3.js.map",
|
7
|
+
"static/js/2.8590d27d.chunk.js": "./static/js/2.8590d27d.chunk.js",
|
8
|
+
"static/js/2.8590d27d.chunk.js.map": "./static/js/2.8590d27d.chunk.js.map",
|
9
|
+
"index.html": "./index.html",
|
10
|
+
"precache-manifest.668eb5ddc0ea6880d50beeba97fd93a9.js": "./precache-manifest.668eb5ddc0ea6880d50beeba97fd93a9.js",
|
11
|
+
"service-worker.js": "./service-worker.js",
|
12
|
+
"static/js/2.8590d27d.chunk.js.LICENSE.txt": "./static/js/2.8590d27d.chunk.js.LICENSE.txt"
|
13
|
+
},
|
14
|
+
"entrypoints": [
|
15
|
+
"static/js/runtime-main.cc20bba3.js",
|
16
|
+
"static/js/2.8590d27d.chunk.js",
|
17
|
+
"static/js/main.d5e2b6f4.chunk.js"
|
18
|
+
]
|
19
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
<!doctype html><html lang="en"><head><title>Streamlit Component</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Streamlit Component"/><link rel="stylesheet" href="bootstrap.min.css"/></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,l,i=t[0],a=t[1],f=t[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(p&&p(t);s.length;)s.shift()();return u.push.apply(u,f||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,i=1;i<r.length;i++){var a=r[i];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="./";var i=this.webpackJsonpstreamlit_toggle_diy=this.webpackJsonpstreamlit_toggle_diy||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var f=0;f<i.length;f++)t(i[f]);var p=a;r()}([])</script><script src="./static/js/2.
|
1
|
+
<!doctype html><html lang="en"><head><title>Streamlit Component</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Streamlit Component"/><link rel="stylesheet" href="bootstrap.min.css"/></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,l,i=t[0],a=t[1],f=t[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(p&&p(t);s.length;)s.shift()();return u.push.apply(u,f||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,i=1;i<r.length;i++){var a=r[i];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="./";var i=this.webpackJsonpstreamlit_toggle_diy=this.webpackJsonpstreamlit_toggle_diy||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var f=0;f<i.length;f++)t(i[f]);var p=a;r()}([])</script><script src="./static/js/2.8590d27d.chunk.js"></script><script src="./static/js/main.d5e2b6f4.chunk.js"></script></body></html>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
2
|
+
{
|
3
|
+
"revision": "d6c96486a611e6f953d285b857e6dd68",
|
4
|
+
"url": "./index.html"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"revision": "86805c181e0dc035e517",
|
8
|
+
"url": "./static/js/2.8590d27d.chunk.js"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"revision": "fbabe484400fd249a0740ba2c0d294dd",
|
12
|
+
"url": "./static/js/2.8590d27d.chunk.js.LICENSE.txt"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"revision": "138d1b64a39c299ad20b",
|
16
|
+
"url": "./static/js/main.d5e2b6f4.chunk.js"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"revision": "459827b3e50cfc060dc2",
|
20
|
+
"url": "./static/js/runtime-main.cc20bba3.js"
|
21
|
+
}
|
22
|
+
]);
|
@@ -14,7 +14,7 @@
|
|
14
14
|
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
15
15
|
|
16
16
|
importScripts(
|
17
|
-
"./precache-manifest.
|
17
|
+
"./precache-manifest.668eb5ddc0ea6880d50beeba97fd93a9.js"
|
18
18
|
);
|
19
19
|
|
20
20
|
self.addEventListener('message', (event) => {
|