pythonx-compose 0.1.0a1__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.
Files changed (40) hide show
  1. pythonx/compose/__init__.py +4 -0
  2. pythonx/compose/__init__.pyi +1 -0
  3. pythonx/compose/_reexport.py +512 -0
  4. pythonx/compose/foundation/__init__.py +5 -0
  5. pythonx/compose/foundation/__init__.pyi +17 -0
  6. pythonx/compose/foundation/layout/__init__.py +5 -0
  7. pythonx/compose/foundation/layout/__init__.pyi +2 -0
  8. pythonx/compose/foundation/text/__init__.py +5 -0
  9. pythonx/compose/foundation/text/input/__init__.py +5 -0
  10. pythonx/compose/foundation/text/input/__init__.pyi +78 -0
  11. pythonx/compose/layout/__init__.py +25 -0
  12. pythonx/compose/layout/__init__.pyi +878 -0
  13. pythonx/compose/layout/arrangement.py +34 -0
  14. pythonx/compose/material/__init__.py +8 -0
  15. pythonx/compose/material/__init__.pyi +1 -0
  16. pythonx/compose/material/icons/__init__.py +9 -0
  17. pythonx/compose/material/icons/__init__.pyi +1159 -0
  18. pythonx/compose/material3/__init__.py +24 -0
  19. pythonx/compose/material3/__init__.pyi +3305 -0
  20. pythonx/compose/py.typed +0 -0
  21. pythonx/compose/pythonx-map.toml +73 -0
  22. pythonx/compose/runtime/__init__.py +128 -0
  23. pythonx/compose/runtime/__init__.pyi +180 -0
  24. pythonx/compose/ui/__init__.py +21 -0
  25. pythonx/compose/ui/__init__.pyi +975 -0
  26. pythonx/compose/ui/alignment.py +47 -0
  27. pythonx/compose/ui/graphics/__init__.py +5 -0
  28. pythonx/compose/ui/graphics/__init__.pyi +795 -0
  29. pythonx/compose/ui/graphics/vector/__init__.py +5 -0
  30. pythonx/compose/ui/graphics/vector/__init__.pyi +221 -0
  31. pythonx/compose/ui/modifier.py +110 -0
  32. pythonx/compose/ui/text/__init__.py +5 -0
  33. pythonx/compose/ui/text/__init__.pyi +703 -0
  34. pythonx/compose/ui/unit/__init__.py +19 -0
  35. pythonx/compose/ui/unit/__init__.pyi +348 -0
  36. pythonx_compose-0.1.0a1.dist-info/METADATA +228 -0
  37. pythonx_compose-0.1.0a1.dist-info/RECORD +40 -0
  38. pythonx_compose-0.1.0a1.dist-info/WHEEL +5 -0
  39. pythonx_compose-0.1.0a1.dist-info/licenses/LICENSE +21 -0
  40. pythonx_compose-0.1.0a1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,24 @@
1
+ """`pythonx.compose.material3` -- the Pythonic view of `androidx.compose.material3`.
2
+
3
+ Every Material 3 composable (`Text`, `Button`, `Card`, `TextField`, `Checkbox`, ...) is served by
4
+ the one rule in `pythonx/compose/_reexport.py`: Kotlin's own declaration, upper-case names kept,
5
+ keyword arguments in snake_case (`on_click=`). There is no per-widget file here, on purpose
6
+ (AGENTS.md section 13). The notebook's `Column`, `Row` and `Spacer` are answered from
7
+ `pythonx.compose.layout` by the manifest's `[aliases]` (INTENT section 5.2).
8
+
9
+ ## What used to be here
10
+
11
+ Per-widget wrappers from 2024 (`text.py`, `buttons.py`, `cards.py`, `icon_button.py`,
12
+ `text_field.py`, ...), each a copy of one template that looked a Kotlin function up by a
13
+ mangled-name prefix (`name.startswith("Button-")`), which Kotlin's value-class mangling makes
14
+ impossible. They were deleted as the binder rendered each declaration with no wrapper
15
+ (python-multiplatform `c60bcfeb`, `a6742a1c`, `3fde8bd6`, `cac8243f`). `icon.py` and
16
+ `color_scheme.py` were kept as records of two declarations that cannot be called yet, and 29
17
+ sibling files had always been empty; all were deleted in pythonx-compose #31. What `icon.py`
18
+ recorded -- `Icon` needs an `ImageVector` nothing bound produces -- is SPEC S5.3. `git log` on this
19
+ directory has the rest.
20
+ """
21
+
22
+ from pythonx.compose._reexport import reexport
23
+
24
+ __getattr__, __dir__ = reexport(__name__)