gradio-checkboxgroupmarkdown 0.0.2__tar.gz → 0.0.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/PKG-INFO +15 -2
  2. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/README.md +14 -1
  3. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/backend/gradio_checkboxgroupmarkdown/checkboxgroupmarkdown.py +3 -1
  4. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/backend/gradio_checkboxgroupmarkdown/checkboxgroupmarkdown.pyi +2 -0
  5. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/backend/gradio_checkboxgroupmarkdown/templates/component/index.js +5405 -4728
  6. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/backend/gradio_checkboxgroupmarkdown/templates/component/style.css +1 -1
  7. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/demo/app.py +1 -1
  8. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/demo/space.py +2 -2
  9. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/frontend/Index.svelte +48 -0
  10. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/frontend/package-lock.json +890 -33
  11. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/frontend/package.json +1 -0
  12. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/pyproject.toml +1 -1
  13. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/.gitignore +0 -0
  14. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/backend/gradio_checkboxgroupmarkdown/__init__.py +0 -0
  15. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/backend/gradio_checkboxgroupmarkdown/templates/example/index.js +0 -0
  16. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/backend/gradio_checkboxgroupmarkdown/templates/example/style.css +0 -0
  17. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/demo/__init__.py +0 -0
  18. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/demo/css.css +0 -0
  19. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/demo/requirements.txt +0 -0
  20. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/frontend/Example.svelte +0 -0
  21. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/frontend/gradio.config.js +0 -0
  22. {gradio_checkboxgroupmarkdown-0.0.2 → gradio_checkboxgroupmarkdown-0.0.3}/frontend/tsconfig.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gradio_checkboxgroupmarkdown
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Gradio component for CheckboxGroup with Markdown
5
5
  Author-email: YOUR NAME <YOUREMAIL@domain.com>
6
6
  License-Expression: Apache-2.0
@@ -172,7 +172,7 @@ with gr.Blocks() as demo:
172
172
  label="Select Articles",
173
173
  info="Choose articles to include in your collection",
174
174
  type="all",
175
- # value=["art_101"]
175
+ buttons=["select_all", "deselect_all"]
176
176
  )
177
177
 
178
178
  with gr.Column(scale=1):
@@ -271,6 +271,19 @@ ChoiceType
271
271
  <td align="left">Type of value to be returned by component. "value" returns the list of strings of the choices selected, "index" returns the list of indices of the choices selected.</td>
272
272
  </tr>
273
273
 
274
+ <tr>
275
+ <td align="left"><code>buttons</code></td>
276
+ <td align="left" style="width: 25%;">
277
+
278
+ ```python
279
+ Optional[List[str]]
280
+ ```
281
+
282
+ </td>
283
+ <td align="left"><code>None</code></td>
284
+ <td align="left">None</td>
285
+ </tr>
286
+
274
287
  <tr>
275
288
  <td align="left"><code>label</code></td>
276
289
  <td align="left" style="width: 25%;">
@@ -147,7 +147,7 @@ with gr.Blocks() as demo:
147
147
  label="Select Articles",
148
148
  info="Choose articles to include in your collection",
149
149
  type="all",
150
- # value=["art_101"]
150
+ buttons=["select_all", "deselect_all"]
151
151
  )
152
152
 
153
153
  with gr.Column(scale=1):
@@ -246,6 +246,19 @@ ChoiceType
246
246
  <td align="left">Type of value to be returned by component. "value" returns the list of strings of the choices selected, "index" returns the list of indices of the choices selected.</td>
247
247
  </tr>
248
248
 
249
+ <tr>
250
+ <td align="left"><code>buttons</code></td>
251
+ <td align="left" style="width: 25%;">
252
+
253
+ ```python
254
+ Optional[List[str]]
255
+ ```
256
+
257
+ </td>
258
+ <td align="left"><code>None</code></td>
259
+ <td align="left">None</td>
260
+ </tr>
261
+
249
262
  <tr>
250
263
  <td align="left"><code>label</code></td>
251
264
  <td align="left" style="width: 25%;">
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from collections.abc import Callable, Sequence
6
- from typing import TYPE_CHECKING, Any, Literal, Union
6
+ from typing import TYPE_CHECKING, Any, Literal, Union, List, Optional
7
7
 
8
8
  from gradio_client.documentation import document
9
9
 
@@ -33,6 +33,7 @@ class CheckboxGroupMarkdown(FormComponent):
33
33
  *,
34
34
  value: Sequence[str | float | int] | str | float | int | Callable | None = None,
35
35
  type: ChoiceType = "value",
36
+ buttons: Optional[List[str]] = None,
36
37
  label: str | None = None,
37
38
  info: str | None = None,
38
39
  every: Timer | float | None = None,
@@ -75,6 +76,7 @@ class CheckboxGroupMarkdown(FormComponent):
75
76
  f"Invalid value for parameter `type`: {type}. Please choose from one of: {valid_types}"
76
77
  )
77
78
  self.type = type
79
+ self.buttons = buttons or []
78
80
  super().__init__(
79
81
  label=label,
80
82
  info=info,
@@ -30,6 +30,7 @@ class CheckboxGroupMarkdown(FormComponent):
30
30
  *,
31
31
  value: Sequence[str | float | int] | str | float | int | Callable | None = None,
32
32
  type: ChoiceType = "value",
33
+ buttons: Optional[List[str]] = None,
33
34
  label: str | None = None,
34
35
  info: str | None = None,
35
36
  every: Timer | float | None = None,
@@ -72,6 +73,7 @@ class CheckboxGroupMarkdown(FormComponent):
72
73
  f"Invalid value for parameter `type`: {type}. Please choose from one of: {valid_types}"
73
74
  )
74
75
  self.type = type
76
+ self.buttons = buttons or []
75
77
  super().__init__(
76
78
  label=label,
77
79
  info=info,