eidosui 0.7.0__tar.gz → 0.8.0__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.
- {eidosui-0.7.0 → eidosui-0.8.0}/PKG-INFO +1 -1
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/components/tabs.py +16 -6
- {eidosui-0.7.0 → eidosui-0.8.0}/pyproject.toml +1 -1
- {eidosui-0.7.0 → eidosui-0.8.0}/.gitignore +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/LICENSE +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/README.md +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/__init__.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/components/__init__.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/components/headers.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/components/navigation.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/components/table.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/css/styles.css +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/css/themes/dark.css +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/css/themes/eidos-variables.css +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/css/themes/light.css +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/js/eidos.js +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/plugins/__init__.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/plugins/markdown/__init__.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/plugins/markdown/components.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/plugins/markdown/css/markdown.css +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/plugins/markdown/extensions/__init__.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/plugins/markdown/extensions/alerts.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/plugins/markdown/renderer.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/styles.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/tags.py +0 -0
- {eidosui-0.7.0 → eidosui-0.8.0}/eidos/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: eidosui
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.8.0
|
4
4
|
Summary: A modern, Tailwind CSS-based UI library for air development
|
5
5
|
Project-URL: Homepage, https://github.com/isaac-flath/EidosUI
|
6
6
|
Project-URL: Repository, https://github.com/isaac-flath/EidosUI
|
@@ -5,9 +5,11 @@ from ..utils import stringify
|
|
5
5
|
|
6
6
|
|
7
7
|
def TabContainer(
|
8
|
+
*content,
|
8
9
|
initial_tab_url: str,
|
9
|
-
|
10
|
+
class_: str = "",
|
10
11
|
target_id: str = "tabs",
|
12
|
+
**kwargs,
|
11
13
|
) -> Tag:
|
12
14
|
"""HTMX-based tab container that loads tabs dynamically.
|
13
15
|
|
@@ -23,21 +25,24 @@ def TabContainer(
|
|
23
25
|
TabContainer("/settings/general")
|
24
26
|
"""
|
25
27
|
return Div(
|
28
|
+
*content,
|
26
29
|
id=target_id,
|
27
30
|
hx_get=initial_tab_url,
|
28
31
|
hx_trigger="load delay:100ms",
|
29
32
|
hx_target=f"#{target_id}",
|
30
33
|
hx_swap="innerHTML",
|
31
|
-
class_=stringify(styles.tabs.container,
|
34
|
+
class_=stringify(styles.tabs.container, class_),
|
35
|
+
**kwargs,
|
32
36
|
)
|
33
37
|
|
34
38
|
|
35
39
|
def TabList(
|
36
40
|
*tabs: tuple[str, str],
|
37
41
|
selected: int = 0,
|
38
|
-
|
42
|
+
class_: str = "",
|
39
43
|
hx_target: str = "#tabs",
|
40
44
|
hx_swap: str = "innerHTML",
|
45
|
+
**kwargs,
|
41
46
|
) -> Tag:
|
42
47
|
"""HTMX-based tab list for server-rendered tabs.
|
43
48
|
|
@@ -75,7 +80,7 @@ def TabList(
|
|
75
80
|
class_=stringify(
|
76
81
|
styles.tabs.tab,
|
77
82
|
styles.tabs.tab_active if is_selected else "",
|
78
|
-
|
83
|
+
class_
|
79
84
|
),
|
80
85
|
)
|
81
86
|
tab_buttons.append(tab_button)
|
@@ -84,12 +89,14 @@ def TabList(
|
|
84
89
|
*tab_buttons,
|
85
90
|
role="tablist",
|
86
91
|
class_=styles.tabs.list,
|
92
|
+
**kwargs,
|
87
93
|
)
|
88
94
|
|
89
95
|
|
90
96
|
def TabPanel(
|
91
97
|
content: Tag,
|
92
|
-
|
98
|
+
class_: str = "",
|
99
|
+
**kwargs,
|
93
100
|
) -> Tag:
|
94
101
|
"""Tab panel content wrapper.
|
95
102
|
|
@@ -104,7 +111,8 @@ def TabPanel(
|
|
104
111
|
content,
|
105
112
|
id="tab-content",
|
106
113
|
role="tabpanel",
|
107
|
-
class_=stringify(styles.tabs.panel, styles.tabs.panel_active,
|
114
|
+
class_=stringify(styles.tabs.panel, styles.tabs.panel_active, class_),
|
115
|
+
**kwargs,
|
108
116
|
)
|
109
117
|
|
110
118
|
|
@@ -112,6 +120,7 @@ def Tabs(
|
|
112
120
|
tab_list: Tag,
|
113
121
|
tab_panel: Tag,
|
114
122
|
cls: str = "",
|
123
|
+
**kwargs,
|
115
124
|
) -> Tag:
|
116
125
|
"""Complete tab component with list and panel.
|
117
126
|
|
@@ -137,4 +146,5 @@ def Tabs(
|
|
137
146
|
tab_list,
|
138
147
|
tab_panel,
|
139
148
|
class_=stringify(styles.tabs.container, cls),
|
149
|
+
**kwargs,
|
140
150
|
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|