streamlit-toggle-diy 1.0.1__py3-none-any.whl → 1.1.4__py3-none-any.whl
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/__init__.py +208 -53
- streamlit_toggle_diy/frontend/build/asset-manifest.json +19 -0
- streamlit_toggle_diy/frontend/build/bootstrap.min.css +9501 -0
- streamlit_toggle_diy/frontend/build/index.html +1 -0
- streamlit_toggle_diy/frontend/build/precache-manifest.208239bd31634c912148876425127f2c.js +22 -0
- streamlit_toggle_diy/frontend/build/precache-manifest.669f85f994ea2c0d193915faa9d91f97.js +22 -0
- streamlit_toggle_diy/frontend/build/precache-manifest.b7df6085566f07f8f27b94ee8ed2d302.js +22 -0
- streamlit_toggle_diy/frontend/build/service-worker.js +39 -0
- streamlit_toggle_diy/frontend/build/static/js/2.82cd69ef.chunk.js +3 -0
- streamlit_toggle_diy/frontend/build/static/js/2.82cd69ef.chunk.js.LICENSE.txt +68 -0
- streamlit_toggle_diy/frontend/build/static/js/2.82cd69ef.chunk.js.map +1 -0
- streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js +3 -0
- streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js.LICENSE.txt +68 -0
- streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js.map +1 -0
- streamlit_toggle_diy/frontend/build/static/js/main.72a874a0.chunk.js +2 -0
- streamlit_toggle_diy/frontend/build/static/js/main.72a874a0.chunk.js.map +1 -0
- streamlit_toggle_diy/frontend/build/static/js/main.93eb9d37.chunk.js +2 -0
- streamlit_toggle_diy/frontend/build/static/js/main.93eb9d37.chunk.js.map +1 -0
- streamlit_toggle_diy/frontend/build/static/js/main.9f3c3eed.chunk.js +2 -0
- streamlit_toggle_diy/frontend/build/static/js/main.9f3c3eed.chunk.js.map +1 -0
- streamlit_toggle_diy/frontend/build/static/js/runtime-main.cc20bba3.js +2 -0
- streamlit_toggle_diy/frontend/build/static/js/runtime-main.cc20bba3.js.map +1 -0
- streamlit_toggle_diy/frontend/build/static/js/runtime-main.d76c522e.js +2 -0
- streamlit_toggle_diy/frontend/build/static/js/runtime-main.d76c522e.js.map +1 -0
- streamlit_toggle_diy/frontend/public/bootstrap.min.css +9501 -0
- streamlit_toggle_diy/frontend/public/index.html +25 -0
- streamlit_toggle_diy/frontend/src/index.tsx +11 -0
- streamlit_toggle_diy/frontend/src/react-app-env.d.ts +1 -0
- streamlit_toggle_diy/frontend/src/streamlit_toggle.tsx +170 -0
- streamlit_toggle_diy/frontend/src/style.css +6 -0
- streamlit_toggle_diy-1.1.4.dist-info/METADATA +88 -0
- streamlit_toggle_diy-1.1.4.dist-info/RECORD +35 -0
- {streamlit_toggle_diy-1.0.1.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/WHEEL +1 -1
- streamlit_toggle_diy-1.0.1.dist-info/METADATA +0 -10
- streamlit_toggle_diy-1.0.1.dist-info/RECORD +0 -6
- {streamlit_toggle_diy-1.0.1.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/LICENSE +0 -0
- {streamlit_toggle_diy-1.0.1.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title>Streamlit Component</title>
|
5
|
+
<meta charset="UTF-8" />
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7
|
+
<meta name="theme-color" content="#000000" />
|
8
|
+
<meta name="description" content="Streamlit Component" />
|
9
|
+
<link rel="stylesheet" href="bootstrap.min.css" />
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
13
|
+
<div id="root"></div>
|
14
|
+
<!--
|
15
|
+
This HTML file is a template.
|
16
|
+
If you open it directly in the browser, you will see an empty page.
|
17
|
+
|
18
|
+
You can add webfonts, meta tags, or analytics to this file.
|
19
|
+
The build step will place the bundled scripts into the <body> tag.
|
20
|
+
|
21
|
+
To begin the development, run `npm start` or `yarn start`.
|
22
|
+
To create a production bundle, use `npm run build` or `yarn build`.
|
23
|
+
-->
|
24
|
+
</body>
|
25
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
/// <reference types="react-scripts" />
|
@@ -0,0 +1,170 @@
|
|
1
|
+
import {
|
2
|
+
ComponentProps,
|
3
|
+
Streamlit,
|
4
|
+
withStreamlitConnection,
|
5
|
+
} from "streamlit-component-lib";
|
6
|
+
import React, { useEffect, useRef } from "react";
|
7
|
+
import { createTheme } from "@material-ui/core/styles";
|
8
|
+
import { Typography, Switch, Grid } from "@material-ui/core";
|
9
|
+
import { ThemeProvider } from "@material-ui/styles";
|
10
|
+
|
11
|
+
interface ToggleSwitchProps {
|
12
|
+
// 原有参数
|
13
|
+
default_value: boolean;
|
14
|
+
label_start?: string;
|
15
|
+
label_end?: string;
|
16
|
+
justify?: "flex-start" | "center" | "flex-end";
|
17
|
+
active_color?: string;
|
18
|
+
inactive_color?: string;
|
19
|
+
track_color?: string;
|
20
|
+
label_bg_color_start?: string;
|
21
|
+
label_bg_color_end?: string;
|
22
|
+
background_color_near_button_start?: string;
|
23
|
+
background_color_near_button_end?: string;
|
24
|
+
border_radius?: string;
|
25
|
+
label_start_color?: string; // 左侧标签文字颜色
|
26
|
+
label_end_color?: string; // 右侧标签文字颜色
|
27
|
+
label_font_size?: string; // 标签文字大小
|
28
|
+
label_font_weight?: string; // 标签文字粗细
|
29
|
+
switch_size?: "small" | "medium"; // Switch 尺寸
|
30
|
+
}
|
31
|
+
|
32
|
+
const StreamlitToggle = (props: ComponentProps) => {
|
33
|
+
// 1. 从 props.args 中解构所有参数
|
34
|
+
const {
|
35
|
+
// -- 基础必选 --
|
36
|
+
default_value,
|
37
|
+
// -- 已有可选 --
|
38
|
+
label_start,
|
39
|
+
label_end,
|
40
|
+
justify = "flex-start",
|
41
|
+
inactive_color='#CEE8FF',
|
42
|
+
active_color="#00668c",
|
43
|
+
track_color="#3D5A80",
|
44
|
+
label_bg_color_start="#FFFFFF",
|
45
|
+
label_bg_color_end="yellow",
|
46
|
+
background_color_near_button_start="#FFFFFF",
|
47
|
+
background_color_near_button_end="#FFFFFF",
|
48
|
+
border_radius='30px',
|
49
|
+
label_start_color="#333333",
|
50
|
+
label_end_color="red",
|
51
|
+
label_font_size="16px",
|
52
|
+
label_font_weight="bold",
|
53
|
+
switch_size="medium",
|
54
|
+
} = props.args as ToggleSwitchProps;
|
55
|
+
|
56
|
+
// 2. 引入容器引用,以便 setFrameHeight() 时保证内容高度正确
|
57
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
58
|
+
|
59
|
+
useEffect(() => {
|
60
|
+
// 通知 Streamlit 调整 iframe 高度
|
61
|
+
Streamlit.setFrameHeight();
|
62
|
+
}, []);
|
63
|
+
|
64
|
+
// 3. 管理 Switch 状态
|
65
|
+
const [state, setState] = React.useState({
|
66
|
+
checkStatus: default_value,
|
67
|
+
});
|
68
|
+
|
69
|
+
const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
70
|
+
setState({ ...state, [event.target.name]: event.target.checked });
|
71
|
+
// 将选中状态传回 Python
|
72
|
+
Streamlit.setComponentValue(event.target.checked);
|
73
|
+
};
|
74
|
+
|
75
|
+
// 4. Material-UI 主题:动态覆盖 Switch 的颜色
|
76
|
+
const snowflakeTheme = createTheme({
|
77
|
+
overrides: {
|
78
|
+
MuiSwitch: {
|
79
|
+
switchBase: {
|
80
|
+
color: inactive_color, // 未选中时的按钮颜色
|
81
|
+
},
|
82
|
+
colorSecondary: {
|
83
|
+
"&$checked": {
|
84
|
+
color: active_color, // 选中时按钮颜色
|
85
|
+
},
|
86
|
+
},
|
87
|
+
track: {
|
88
|
+
opacity: 0.1,
|
89
|
+
backgroundColor: track_color, // 轨道颜色
|
90
|
+
"$checked$checked + &": {
|
91
|
+
opacity: 1,
|
92
|
+
backgroundColor: track_color,
|
93
|
+
},
|
94
|
+
},
|
95
|
+
},
|
96
|
+
},
|
97
|
+
});
|
98
|
+
|
99
|
+
// 5. 样式:标签与背景
|
100
|
+
const labelStartStyle: React.CSSProperties = {
|
101
|
+
backgroundColor: label_bg_color_start,
|
102
|
+
color: label_start_color,
|
103
|
+
padding: "4px 8px",
|
104
|
+
borderRadius: border_radius,
|
105
|
+
display: "inline-block",
|
106
|
+
fontWeight: label_font_weight,
|
107
|
+
fontSize: label_font_size,
|
108
|
+
};
|
109
|
+
|
110
|
+
const labelEndStyle: React.CSSProperties = {
|
111
|
+
backgroundColor: label_bg_color_end,
|
112
|
+
color: label_end_color,
|
113
|
+
padding: "4px 8px",
|
114
|
+
borderRadius: border_radius,
|
115
|
+
display: "inline-block",
|
116
|
+
fontWeight: label_font_weight,
|
117
|
+
fontSize: label_font_size,
|
118
|
+
};
|
119
|
+
|
120
|
+
// 背景(左右渐变或单色)
|
121
|
+
const buttonBackgroundStyle: React.CSSProperties = {
|
122
|
+
background:
|
123
|
+
background_color_near_button_start && background_color_near_button_end
|
124
|
+
? `linear-gradient(to right, ${background_color_near_button_start}, ${background_color_near_button_end})`
|
125
|
+
: background_color_near_button_start ||
|
126
|
+
background_color_near_button_end ||
|
127
|
+
"#ffffff",
|
128
|
+
padding: "10px",
|
129
|
+
borderRadius: border_radius,
|
130
|
+
display: "flex",
|
131
|
+
alignItems: "center",
|
132
|
+
};
|
133
|
+
|
134
|
+
// 6. 组件 JSX
|
135
|
+
return (
|
136
|
+
<ThemeProvider theme={snowflakeTheme}>
|
137
|
+
<Typography
|
138
|
+
component="div"
|
139
|
+
variant="subtitle1"
|
140
|
+
paragraph={false}
|
141
|
+
gutterBottom={false}
|
142
|
+
>
|
143
|
+
<div ref={containerRef} style={buttonBackgroundStyle}>
|
144
|
+
<Grid container justifyContent={justify} alignItems="center" spacing={1}>
|
145
|
+
{label_start && (
|
146
|
+
<Grid item>
|
147
|
+
<span style={labelStartStyle}>{label_start}</span>
|
148
|
+
</Grid>
|
149
|
+
)}
|
150
|
+
<Grid item>
|
151
|
+
<Switch
|
152
|
+
checked={state.checkStatus}
|
153
|
+
onChange={handleChange}
|
154
|
+
name="checkStatus"
|
155
|
+
size={switch_size} // 新增:Switch 尺寸
|
156
|
+
/>
|
157
|
+
</Grid>
|
158
|
+
{label_end && (
|
159
|
+
<Grid item>
|
160
|
+
<span style={labelEndStyle}>{label_end}</span>
|
161
|
+
</Grid>
|
162
|
+
)}
|
163
|
+
</Grid>
|
164
|
+
</div>
|
165
|
+
</Typography>
|
166
|
+
</ThemeProvider>
|
167
|
+
);
|
168
|
+
};
|
169
|
+
|
170
|
+
export default withStreamlitConnection(StreamlitToggle);
|
@@ -0,0 +1,88 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: streamlit_toggle_diy
|
3
|
+
Version: 1.1.4
|
4
|
+
Summary: A customized Streamlit toggle switch component with customizable labels, colors, and border radius
|
5
|
+
Home-page: https://github.com/flowing-water1/streamlit-toggle-switch-diy
|
6
|
+
Author: Flow Water
|
7
|
+
Author-email: 1665526933@qq.com
|
8
|
+
Requires-Python: >=3.6
|
9
|
+
Description-Content-Type: text/markdown
|
10
|
+
License-File: LICENSE
|
11
|
+
Requires-Dist: streamlit>=0.63
|
12
|
+
|
13
|
+
# streamlit-toggle-diy
|
14
|
+
|
15
|
+
Creates a toggle switch with color and placement customizations, and you can change the label's color, radius, font size, and more.
|
16
|
+
|
17
|
+
## Function
|
18
|
+
|
19
|
+
- Customize label background color
|
20
|
+
- Customize the text color, font size, and font weight for both labels
|
21
|
+
- Customize the Switch size (small or medium)
|
22
|
+
- Customize the background color near the button
|
23
|
+
- Custom rounded corners
|
24
|
+
- Support multiple layout methods
|
25
|
+
|
26
|
+
## Installation
|
27
|
+
|
28
|
+
```shell
|
29
|
+
pip install streamlit-toggle-diy
|
30
|
+
```
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
```python
|
35
|
+
import streamlit as st
|
36
|
+
import streamlit-toggle-diy as tog
|
37
|
+
|
38
|
+
tog.st_toggle_switch(
|
39
|
+
key=None,
|
40
|
+
label_start="111",
|
41
|
+
label_end="",
|
42
|
+
justify='flex-start',
|
43
|
+
default_value=False,
|
44
|
+
inactive_color='#D3D3D3',
|
45
|
+
active_color="#11567f",
|
46
|
+
track_color="#29B5E8",
|
47
|
+
label_bg_color_start=None,
|
48
|
+
label_bg_color_end=None,
|
49
|
+
background_color_near_button_start=None,
|
50
|
+
background_color_near_button_end=None,
|
51
|
+
border_radius=None,
|
52
|
+
)
|
53
|
+
```
|
54
|
+
|
55
|
+
## Parameters
|
56
|
+
|
57
|
+
|
58
|
+
| **Parameter Name** | **Type** | **Default** | **Description** |
|
59
|
+
| ------------------------------------------ | ------------------------------------ | -------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
60
|
+
| **key** | `str` | None | The unique identifier for each component instance.<br />Used to distinguish different component instances in the Streamlit application. |
|
61
|
+
| **label\_start** | `str` | `""` | The text content of the label before the switch. If a preceding label is not needed, pass an empty string`""`. |
|
62
|
+
| **label\_end** | `str` | `""` | The text content of the label after the switch. If a following label is not needed, pass an empty string`""`. |
|
63
|
+
| **justify** | `{'flex-start','center','flex-end'}` | `'flex-start'` | Controls alignment of labels and the switch within the container. |
|
64
|
+
| **default\_value** | `bool` | `False` | The initial state of the toggle switch.`True`= On,`False`= Off. |
|
65
|
+
| **inactive\_color** | `str` | `'#D3D3D3'` | The color of the slider when the switch is inactive (off). |
|
66
|
+
| **active\_color** | `str` | `'#11567f'` | The color of the slider when the switch is active (on). |
|
67
|
+
| **track\_color** | `str` | `'#29B5E8'` | The color of the switch track (background). |
|
68
|
+
| **label\_bg\_color\_start** | `str` | `None` | The starting value of the label background color, used to create a gradient effect. |
|
69
|
+
| **label\_bg\_color\_end** | `str` | `None` | The ending value of the label background color, used to create a gradient effect. |
|
70
|
+
| **background\_color\_near\_button\_start** | `str` | `None` | The starting value of the background color near the switch, used to create a gradient effect behind the component. |
|
71
|
+
| **background\_color\_near\_button\_end** | `str` | `None` | The ending value of the background color near the switch, used to create a gradient effect behind the component. |
|
72
|
+
| **border\_radius** | `str` | `None` | The border-radius of the component, such as`'4px'`,`'8px'`,`'50%'`, etc. |
|
73
|
+
| **label\_start\_color** | `str` | `"#7f1916"` | Text color for the left (start) label. |
|
74
|
+
| **label\_end\_color** | `str` | `"#FFFFFF"` | Text color for the right (end) label. |
|
75
|
+
| **label\_font\_size** | `str` | `"14px"` | Font size for both labels (e.g.`"14px"`,`"12pt"`). |
|
76
|
+
| **label\_font\_weight** | `str` | `"bold"` | Font weight for both labels (e.g.`"bold"`,`"normal"`,`"500"`). |
|
77
|
+
| **switch\_size** | `{'small','medium'}` | `"medium"` | The size of the Switch component. |
|
78
|
+
|
79
|
+
> **Note**:
|
80
|
+
>
|
81
|
+
> * If both `label_bg_color_start` and `label_bg_color_end` are set, a gradient background for the label(s) will be created.
|
82
|
+
> * If both `background_color_near_button_start` and `background_color_near_button_end` are provided, a gradient behind the switch is created.
|
83
|
+
> * If you only provide one color, it will be used as a solid background.
|
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.
|
85
|
+
|
86
|
+
## Operation
|
87
|
+
|
88
|
+

|
@@ -0,0 +1,35 @@
|
|
1
|
+
streamlit_toggle_diy/__init__.py,sha256=RPo0LyCPihcZW7V9RhqsJrXFM4w0PN53kcmQt643PEY,11071
|
2
|
+
streamlit_toggle_diy/frontend/build/asset-manifest.json,sha256=6Ohohv0eSXbiFZBQsSRZl_Eo_uBKqqWzU4G6Eri2FWs,859
|
3
|
+
streamlit_toggle_diy/frontend/build/bootstrap.min.css,sha256=hTwg6axJ8dAPmGVJmYTrsQS3JhKWA0skJ-td54UbEOk,197459
|
4
|
+
streamlit_toggle_diy/frontend/build/index.html,sha256=BIhpXUjrxMC2l33tpBlXAC2z0hy9k2Dh4QRI6qQDAhE,2085
|
5
|
+
streamlit_toggle_diy/frontend/build/precache-manifest.208239bd31634c912148876425127f2c.js,sha256=g6l3wTxp-Gx7vsm9HU7MBv8N2sKIZIRwBdQKXe6RODY,564
|
6
|
+
streamlit_toggle_diy/frontend/build/precache-manifest.669f85f994ea2c0d193915faa9d91f97.js,sha256=VF6vnplDuDYws7J5o5iGyIuSEjBVqVcmH8f606xJrUI,564
|
7
|
+
streamlit_toggle_diy/frontend/build/precache-manifest.b7df6085566f07f8f27b94ee8ed2d302.js,sha256=yZ0E8cubRljI8p1lsAIc-YN-pjVJ2BNRma4cfp188X0,564
|
8
|
+
streamlit_toggle_diy/frontend/build/service-worker.js,sha256=6vBxp1L5jl8JuSD5gcMBGukv1xb3TC1xtzAvxMkUfyE,1183
|
9
|
+
streamlit_toggle_diy/frontend/build/static/js/2.82cd69ef.chunk.js,sha256=iI-6zSaFjHrVMDs5IcvYU1OVxSf5qJwlHURziuCP4co,668310
|
10
|
+
streamlit_toggle_diy/frontend/build/static/js/2.82cd69ef.chunk.js.LICENSE.txt,sha256=H626T6BMSwnq-XFGfmNj9boRuONWUwScDJGw74vRftQ,1969
|
11
|
+
streamlit_toggle_diy/frontend/build/static/js/2.82cd69ef.chunk.js.map,sha256=IPAfUQsdk-MV69vDWwKG_Tq8Dqpk0cduCSCB12dUaOE,2233103
|
12
|
+
streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js,sha256=r76t4pKFSxrC1oZik1WSzsTSOp7zq8IwG5uP0MK8a4w,668294
|
13
|
+
streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js.LICENSE.txt,sha256=H626T6BMSwnq-XFGfmNj9boRuONWUwScDJGw74vRftQ,1969
|
14
|
+
streamlit_toggle_diy/frontend/build/static/js/2.9720bf9e.chunk.js.map,sha256=eg3P-Yc3hNnGUKLxbInAWkAlnYVVFFlcuKFJo_pO6jc,2233103
|
15
|
+
streamlit_toggle_diy/frontend/build/static/js/main.72a874a0.chunk.js,sha256=FfaycPp6qqpxt5qXQOUc13WUXoxjvb4ZTHUVAqpfYRs,2576
|
16
|
+
streamlit_toggle_diy/frontend/build/static/js/main.72a874a0.chunk.js.map,sha256=uE6oOalTF-b3DAJtwIpJWT4W-6aho3tCZISCA-3TCLk,9422
|
17
|
+
streamlit_toggle_diy/frontend/build/static/js/main.93eb9d37.chunk.js,sha256=qttewDTdClUb3ry99Ih9ewLMJ0nK5o7eBDovTFBGklE,1991
|
18
|
+
streamlit_toggle_diy/frontend/build/static/js/main.93eb9d37.chunk.js.map,sha256=pX-qmkWFUOetjQ6xFBMpzMeKg9ahFUeKSDBjY_LzZew,7043
|
19
|
+
streamlit_toggle_diy/frontend/build/static/js/main.9f3c3eed.chunk.js,sha256=AOoAHvlJ2UV7b7sGV47sR_2HzrH6Z6kq3htwTNYtQyE,2560
|
20
|
+
streamlit_toggle_diy/frontend/build/static/js/main.9f3c3eed.chunk.js.map,sha256=Gt-uI9COnfMQ1Paax2xND0EMJn_T5VZzHEq_DLk9BkM,9422
|
21
|
+
streamlit_toggle_diy/frontend/build/static/js/runtime-main.cc20bba3.js,sha256=fPgOCYqsGvWhMaPhVkWzyIXu18b1ZAEHcnlEaehuFxE,1582
|
22
|
+
streamlit_toggle_diy/frontend/build/static/js/runtime-main.cc20bba3.js.map,sha256=nD-RhUp2C-J8HxxejdeZMOdN6H6pijIzkaZo_l52vvQ,8301
|
23
|
+
streamlit_toggle_diy/frontend/build/static/js/runtime-main.d76c522e.js,sha256=NsBmq9EdX8DFZR9QBem8uQTt0h6WvnZ__cvfU49ghbo,1598
|
24
|
+
streamlit_toggle_diy/frontend/build/static/js/runtime-main.d76c522e.js.map,sha256=8hiL7qtk5WZTEu5Xt6x712cQci8myG_9wM_hc4HDZNU,8317
|
25
|
+
streamlit_toggle_diy/frontend/public/bootstrap.min.css,sha256=hTwg6axJ8dAPmGVJmYTrsQS3JhKWA0skJ-td54UbEOk,197459
|
26
|
+
streamlit_toggle_diy/frontend/public/index.html,sha256=pd7UG_FaSF9p3dPQLDghzAmcNX2pYgJjxC4y2fzPCCA,894
|
27
|
+
streamlit_toggle_diy/frontend/src/index.tsx,sha256=X_k1aZGH_KKCQnhoxvBtBG_r09zqaLbtIXnuCMId3i8,243
|
28
|
+
streamlit_toggle_diy/frontend/src/react-app-env.d.ts,sha256=V-2kxMBKHcpFxihXMmiCzpzJSMS1KXPA48O35MP6OZA,40
|
29
|
+
streamlit_toggle_diy/frontend/src/streamlit_toggle.tsx,sha256=4wVPf_La5KBGtZwwcSodKv0vyOHsyHYP6DLvp0oIiDs,5115
|
30
|
+
streamlit_toggle_diy/frontend/src/style.css,sha256=Dv1altORNXSycHo4hYEtekgCYJQNNJ_FmqvkZCwmwpA,142
|
31
|
+
streamlit_toggle_diy-1.1.4.dist-info/LICENSE,sha256=NjPmumOMFSp_Jkk0GC961Ie0-R4mbAV6POCovLzRQJk,1061
|
32
|
+
streamlit_toggle_diy-1.1.4.dist-info/METADATA,sha256=H9D0X6riVzu8Dg42WWqJIa6I4rn1dNlklRrAXOPYzS8,6888
|
33
|
+
streamlit_toggle_diy-1.1.4.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
34
|
+
streamlit_toggle_diy-1.1.4.dist-info/top_level.txt,sha256=nFI-mEsztmjsHXlvV0MpfzhT-2ovmY270y2Ulm--D3I,21
|
35
|
+
streamlit_toggle_diy-1.1.4.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: streamlit_toggle_diy
|
3
|
-
Version: 1.0.1
|
4
|
-
Summary: Creates a customizable toggle, and you can switch the background color of label
|
5
|
-
Home-page: https://github.com/sqlinsights/streamlit-toggle-switch
|
6
|
-
Author: Flow_Water
|
7
|
-
Author-email: 1665526933@qq.com
|
8
|
-
Requires-Python: >=3.6
|
9
|
-
License-File: LICENSE
|
10
|
-
Requires-Dist: streamlit>=0.63
|
@@ -1,6 +0,0 @@
|
|
1
|
-
streamlit_toggle_diy/__init__.py,sha256=AGRjNeZsgLF4783MjB7feh-FBzcczvz_yozCyZSbuME,5237
|
2
|
-
streamlit_toggle_diy-1.0.1.dist-info/LICENSE,sha256=NjPmumOMFSp_Jkk0GC961Ie0-R4mbAV6POCovLzRQJk,1061
|
3
|
-
streamlit_toggle_diy-1.0.1.dist-info/METADATA,sha256=-GUgPeZ_K1pi_afw2Z7RlgfEloKrAwGLNPEO_dOWc6c,356
|
4
|
-
streamlit_toggle_diy-1.0.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
5
|
-
streamlit_toggle_diy-1.0.1.dist-info/top_level.txt,sha256=nFI-mEsztmjsHXlvV0MpfzhT-2ovmY270y2Ulm--D3I,21
|
6
|
-
streamlit_toggle_diy-1.0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|