eidosui 0.3.0__py3-none-any.whl → 0.4.0__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.
eidos/tags.py
CHANGED
@@ -3,16 +3,84 @@ import air
|
|
3
3
|
from . import styles
|
4
4
|
from .utils import stringify
|
5
5
|
|
6
|
+
# Define exports for this module
|
7
|
+
__all__ = [
|
8
|
+
# Custom EidosUI components
|
9
|
+
'Button', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'Body',
|
10
|
+
# Semantic components with styling
|
11
|
+
'Strong', 'I', 'Small', 'Del', 'Abbr', 'Var', 'Mark', 'Time',
|
12
|
+
'Code', 'Pre', 'Kbd', 'Samp', 'Blockquote', 'Cite', 'Address',
|
13
|
+
'Hr', 'Details', 'Summary', 'Dl', 'Dt', 'Dd', 'Figure', 'Figcaption',
|
14
|
+
# Pass-through HTML tags from air.tags
|
15
|
+
'A', 'Area', 'Article', 'Aside', 'Audio', 'B', 'Base', 'Bdi', 'Bdo', 'Br',
|
16
|
+
'Canvas', 'Caption', 'Col', 'Colgroup', 'Data', 'Datalist', 'Dfn', 'Dialog', 'Div',
|
17
|
+
'Em', 'Embed', 'Fieldset', 'Footer', 'Form', 'Head', 'Header', 'Hgroup', 'Html',
|
18
|
+
'Iframe', 'Img', 'Input', 'Ins', 'Label', 'Legend', 'Li', 'Link',
|
19
|
+
'Main', 'Map', 'Menu', 'Meta', 'Meter', 'Nav', 'Noscript', 'Object', 'Ol', 'Optgroup', 'Option', 'Output',
|
20
|
+
'P', 'Param', 'Picture', 'Progress', 'Q', 'Rp', 'Rt', 'Ruby',
|
21
|
+
'S', 'Script', 'Search', 'Section', 'Select', 'Source', 'Span', 'Style', 'Sub', 'Sup',
|
22
|
+
'Table', 'Tbody', 'Td', 'Template', 'Textarea', 'Tfoot', 'Th', 'Thead', 'Title', 'Tr', 'Track',
|
23
|
+
'U', 'Ul', 'Video', 'Wbr'
|
24
|
+
]
|
25
|
+
|
6
26
|
def Button(*content: Any, class_: Optional[Union[str, list[str]]] = styles.buttons.primary, **kwargs: Any) -> air.Tag:
|
27
|
+
"""
|
28
|
+
Args:
|
29
|
+
content: The content of the button.
|
30
|
+
class_: The class of the button.
|
31
|
+
**kwargs: Additional keyword arguments passed to the button tag.
|
32
|
+
|
33
|
+
Returns:
|
34
|
+
air.Tag: The button tag.
|
35
|
+
|
36
|
+
Example:
|
37
|
+
Button("Click me", class_=styles.buttons.primary)
|
38
|
+
"""
|
7
39
|
return air.Button(*content, class_=stringify(styles.buttons.base, class_), **kwargs)
|
8
40
|
|
9
41
|
def H1(*content: Any, class_: Optional[Union[str, list[str]]] = None, **kwargs: Any) -> air.Tag:
|
42
|
+
"""
|
43
|
+
Args:
|
44
|
+
content: The content of the h1 tag.
|
45
|
+
class_: The class of the h1 tag.
|
46
|
+
**kwargs: Additional keyword arguments passed to the h1 tag.
|
47
|
+
|
48
|
+
Returns:
|
49
|
+
air.Tag: The h1 tag.
|
50
|
+
|
51
|
+
Example:
|
52
|
+
H1("Hello, world!")
|
53
|
+
"""
|
10
54
|
return air.H1(*content, class_=stringify(styles.typography.h1, class_), **kwargs)
|
11
55
|
|
12
56
|
def H2(*content: Any, class_: Optional[Union[str, list[str]]] = None, **kwargs: Any) -> air.Tag:
|
57
|
+
"""
|
58
|
+
Args:
|
59
|
+
content: The content of the h2 tag.
|
60
|
+
class_: The class of the h2 tag.
|
61
|
+
**kwargs: Additional keyword arguments passed to the h2 tag.
|
62
|
+
|
63
|
+
Returns:
|
64
|
+
air.Tag: The h2 tag.
|
65
|
+
|
66
|
+
Example:
|
67
|
+
H2("Hello, world!")
|
68
|
+
"""
|
13
69
|
return air.H2(*content, class_=stringify(styles.typography.h2, class_), **kwargs)
|
14
70
|
|
15
71
|
def H3(*content: Any, class_: Optional[Union[str, list[str]]] = None, **kwargs: Any) -> air.Tag:
|
72
|
+
"""
|
73
|
+
Args:
|
74
|
+
content: The content of the h3 tag.
|
75
|
+
class_: The class of the h3 tag.
|
76
|
+
**kwargs: Additional keyword arguments passed to the h3 tag.
|
77
|
+
|
78
|
+
Returns:
|
79
|
+
air.Tag: The h3 tag.
|
80
|
+
|
81
|
+
Example:
|
82
|
+
H3("Hello, world!")
|
83
|
+
"""
|
16
84
|
return air.H3(*content, class_=stringify(styles.typography.h3, class_), **kwargs)
|
17
85
|
|
18
86
|
def H4(*content: Any, class_: Optional[Union[str, list[str]]] = None, **kwargs: Any) -> air.Tag:
|
@@ -42,6 +110,18 @@ def Del(*content: Any, class_: Optional[Union[str, list[str]]] = None, **kwargs:
|
|
42
110
|
return air.Del(*content, class_=stringify(styles.semantic.del_, class_), **kwargs)
|
43
111
|
|
44
112
|
def Abbr(*content: Any, class_: Optional[Union[str, list[str]]] = None, **kwargs: Any) -> air.Tag:
|
113
|
+
"""
|
114
|
+
Args:
|
115
|
+
content: The content of the abbr tag.
|
116
|
+
class_: The class of the abbr tag.
|
117
|
+
**kwargs: Additional keyword arguments passed to the abbr tag.
|
118
|
+
|
119
|
+
Returns:
|
120
|
+
air.Tag: The abbr tag.
|
121
|
+
|
122
|
+
Example:
|
123
|
+
Abbr("HTML", title="Hyper Text Markup Language")
|
124
|
+
"""
|
45
125
|
return air.Abbr(*content, class_=stringify(styles.semantic.abbr, class_), **kwargs)
|
46
126
|
|
47
127
|
def Var(*content: Any, class_: Optional[Union[str, list[str]]] = None, **kwargs: Any) -> air.Tag:
|
@@ -96,4 +176,19 @@ def Figure(*content: Any, class_: Optional[Union[str, list[str]]] = None, **kwar
|
|
96
176
|
return air.Figure(*content, class_=stringify(styles.semantic.figure, class_), **kwargs)
|
97
177
|
|
98
178
|
def Figcaption(*content: Any, class_: Optional[Union[str, list[str]]] = None, **kwargs: Any) -> air.Tag:
|
99
|
-
return air.Figcaption(*content, class_=stringify(styles.semantic.figcaption, class_), **kwargs)
|
179
|
+
return air.Figcaption(*content, class_=stringify(styles.semantic.figcaption, class_), **kwargs)
|
180
|
+
|
181
|
+
|
182
|
+
# Pass-through tags from air.tags
|
183
|
+
# Import all standard HTML tags that don't have custom styling
|
184
|
+
from air.tags import (
|
185
|
+
A, Area, Article, Aside, Audio, B, Base, Bdi, Bdo, Br,
|
186
|
+
Canvas, Caption, Col, Colgroup, Data, Datalist, Dfn, Dialog, Div,
|
187
|
+
Em, Embed, Fieldset, Footer, Form, Head, Header, Hgroup, Html,
|
188
|
+
Iframe, Img, Input, Ins, Label, Legend, Li, Link,
|
189
|
+
Main, Map, Menu, Meta, Meter, Nav, Noscript, Object, Ol, Optgroup, Option, Output,
|
190
|
+
P, Param, Picture, Progress, Q, Rp, Rt, Ruby,
|
191
|
+
S, Script, Search, Section, Select, Source, Span, Style, Sub, Sup,
|
192
|
+
Table, Tbody, Td, Template, Textarea, Tfoot, Th, Thead, Title, Tr, Track,
|
193
|
+
U, Ul, Video, Wbr
|
194
|
+
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: eidosui
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.4.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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
eidos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
eidos/styles.py,sha256=QupOwC0VuSZ6zdNJiNFT_PqTnvbJvaNplKO5M5xzMVI,2380
|
3
|
-
eidos/tags.py,sha256=
|
3
|
+
eidos/tags.py,sha256=1IlB7x2AR3G5KI5yTQQ7ors5x5dMIYRvGKrlswNrYqs,9195
|
4
4
|
eidos/utils.py,sha256=DUw2a--J2rpZLY7YD3-xtHSmrK0YrnJuPi4rwV41zT8,2345
|
5
5
|
eidos/components/headers.py,sha256=M4SZ_w_ius9cj7uRALo2niAkBz-iLYMVYAX8p556vyo,2005
|
6
6
|
eidos/components/navigation.py,sha256=_8xQxVuZYmOIWk_85pa1L1ECYAXphIxV4iFmolNRwWQ,2515
|
@@ -16,7 +16,7 @@ eidos/plugins/markdown/renderer.py,sha256=NJYTJWgDySTUkrihYudLvRSR4hr6QeAqTpzZGN
|
|
16
16
|
eidos/plugins/markdown/css/markdown.css,sha256=RxNx7aJDmJMx3zuydX10uAMaPFtl9r6zOFDni9Idsdk,6226
|
17
17
|
eidos/plugins/markdown/extensions/__init__.py,sha256=wOdOyCcb-4lxEm77GMnJLst8JepecDcrN4sp3HO_q9A,28
|
18
18
|
eidos/plugins/markdown/extensions/alerts.py,sha256=q1d49KyjPoTiK6OJ7gKvuwrFxM3BjPwssQnp6qhpFDs,4541
|
19
|
-
eidosui-0.
|
20
|
-
eidosui-0.
|
21
|
-
eidosui-0.
|
22
|
-
eidosui-0.
|
19
|
+
eidosui-0.4.0.dist-info/METADATA,sha256=PRrT8laWJlSp14pGvjHP6kOKkaS6n2SZze85MyAcprg,4749
|
20
|
+
eidosui-0.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
21
|
+
eidosui-0.4.0.dist-info/licenses/LICENSE,sha256=evjPJs6lg9eka9CYtC6ErQrZ71IovVbdvZqqz3ax8E8,1064
|
22
|
+
eidosui-0.4.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|