fh-matui 0.9.16__py3-none-any.whl → 0.9.17__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.
- fh_matui/components.py +2 -2
- {fh_matui-0.9.16.dist-info → fh_matui-0.9.17.dist-info}/METADATA +22 -19
- {fh_matui-0.9.16.dist-info → fh_matui-0.9.17.dist-info}/RECORD +7 -7
- {fh_matui-0.9.16.dist-info → fh_matui-0.9.17.dist-info}/WHEEL +0 -0
- {fh_matui-0.9.16.dist-info → fh_matui-0.9.17.dist-info}/entry_points.txt +0 -0
- {fh_matui-0.9.16.dist-info → fh_matui-0.9.17.dist-info}/licenses/LICENSE +0 -0
- {fh_matui-0.9.16.dist-info → fh_matui-0.9.17.dist-info}/top_level.txt +0 -0
fh_matui/components.py
CHANGED
|
@@ -685,8 +685,8 @@ def Select(*options, label=None, value='', name='', id=None, placeholder=None, c
|
|
|
685
685
|
|
|
686
686
|
select_el = fc.Select(*opt_elements, **select_attrs)
|
|
687
687
|
|
|
688
|
-
# Build field wrapper
|
|
689
|
-
field_cls = ['field', 'border', 'round']
|
|
688
|
+
# Build field wrapper - 'max' ensures full width like LabelInput
|
|
689
|
+
field_cls = ['field', 'border', 'round', 'max']
|
|
690
690
|
if label: field_cls.append('label')
|
|
691
691
|
if cls: field_cls.extend(normalize_tokens(cls))
|
|
692
692
|
cls_str = stringify(field_cls)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fh-matui
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.17
|
|
4
4
|
Summary: material-ui for fasthtml
|
|
5
5
|
Home-page: https://github.com/abhisheksreesaila/fh-matui
|
|
6
6
|
Author: abhishek sreesaila
|
|
@@ -84,22 +84,24 @@ responsive web interfaces entirely in Python — no JavaScript required.
|
|
|
84
84
|
|
|
85
85
|
fh-matui includes 15+ pre-configured Material Design 3 color themes:
|
|
86
86
|
|
|
87
|
-
| Theme
|
|
88
|
-
|
|
89
|
-
| `MatTheme.red`
|
|
90
|
-
| `MatTheme.purple`
|
|
91
|
-
| `MatTheme.indigo`
|
|
92
|
-
| `MatTheme.
|
|
93
|
-
| `MatTheme.teal`
|
|
94
|
-
| `MatTheme.
|
|
95
|
-
| `MatTheme.yellow`
|
|
96
|
-
| `MatTheme.orange`
|
|
87
|
+
| Theme | Preview | Theme | Preview |
|
|
88
|
+
|------------------------|---------|------------------------|---------|
|
|
89
|
+
| `MatTheme.red` | 🔴 | `MatTheme.pink` | 🩷 |
|
|
90
|
+
| `MatTheme.purple` | 🟣 | `MatTheme.deep_purple` | 💜 |
|
|
91
|
+
| `MatTheme.indigo` | 🔵 | `MatTheme.blue` | 💙 |
|
|
92
|
+
| `MatTheme.light_blue` | 🩵 | `MatTheme.cyan` | 🌊 |
|
|
93
|
+
| `MatTheme.teal` | 🩶 | `MatTheme.green` | 💚 |
|
|
94
|
+
| `MatTheme.light_green` | 🍀 | `MatTheme.lime` | 💛 |
|
|
95
|
+
| `MatTheme.yellow` | 🌟 | `MatTheme.amber` | 🧡 |
|
|
96
|
+
| `MatTheme.orange` | 🟠 | `MatTheme.deep_orange` | 🔶 |
|
|
97
|
+
| `MatTheme.brown` | 🟤 | `MatTheme.grey` | ⚪ |
|
|
98
|
+
| `MatTheme.blue_grey` | 🔘 | | |
|
|
97
99
|
|
|
98
100
|
**Usage:**
|
|
99
101
|
|
|
100
102
|
``` python
|
|
101
103
|
# Choose your theme
|
|
102
|
-
app, rt = fast_app(hdrs=[MatTheme.
|
|
104
|
+
app, rt = fast_app(hdrs=[MatTheme.deep_purple.headers()])
|
|
103
105
|
```
|
|
104
106
|
|
|
105
107
|
## 🚀 Quick Start
|
|
@@ -120,7 +122,6 @@ def home():
|
|
|
120
122
|
Card(
|
|
121
123
|
H3("Welcome to fh-matui!"),
|
|
122
124
|
P("Build beautiful Material Design apps with Python."),
|
|
123
|
-
FormField("email", label="Email", type="email"),
|
|
124
125
|
Button("Get Started", cls="primary"),
|
|
125
126
|
),
|
|
126
127
|
cls="padding"
|
|
@@ -145,8 +146,10 @@ styling
|
|
|
145
146
|
|
|
146
147
|
1. **`MatTheme.indigo.headers()`** - Loads BeerCSS with the indigo
|
|
147
148
|
color scheme
|
|
148
|
-
2.
|
|
149
|
-
|
|
149
|
+
2. **[`Card`](https://abhisheksreesaila.github.io/fh-matui/components.html#card)** -
|
|
150
|
+
Creates a Material Design card component with elevation
|
|
151
|
+
3. **[`FormField`](https://abhisheksreesaila.github.io/fh-matui/components.html#formfield)** -
|
|
152
|
+
Generates a styled input with floating label
|
|
150
153
|
4. **`Button`** - Renders a Material Design button with ripple effects
|
|
151
154
|
|
|
152
155
|
## 📚 Module Reference
|
|
@@ -155,9 +158,9 @@ styling
|
|
|
155
158
|
|----|----|----|
|
|
156
159
|
| [Foundations](foundations.html) | Base utilities and helper functions | `BeerHeaders`, `display`, styling helpers |
|
|
157
160
|
| [Core](core.html) | Theme system and styling | `MatTheme`, color presets, theme configuration |
|
|
158
|
-
| [Components](components.html) | UI component library | `Button`, `Card
|
|
161
|
+
| [Components](components.html) | UI component library | `Button`, [`Card`](https://abhisheksreesaila.github.io/fh-matui/components.html#card), [`FormField`](https://abhisheksreesaila.github.io/fh-matui/components.html#formfield), [`FormModal`](https://abhisheksreesaila.github.io/fh-matui/components.html#formmodal), [`Grid`](https://abhisheksreesaila.github.io/fh-matui/components.html#grid) |
|
|
159
162
|
| [App Pages](app_pages.html) | Application layouts | Navigation, sidebars, full-page layouts |
|
|
160
|
-
| [Data Tables](05_table.html) | Data management components | `DataTable
|
|
163
|
+
| [Data Tables](05_table.html) | Data management components | [`DataTable`](https://abhisheksreesaila.github.io/fh-matui/datatable.html#datatable), [`DataTableResource`](https://abhisheksreesaila.github.io/fh-matui/datatable.html#datatableresource), CRUD operations |
|
|
161
164
|
| [Web Pages](web_pages.html) | Marketing/landing pages | Hero sections, feature grids, testimonials |
|
|
162
165
|
|
|
163
166
|
## 🛠️ Development
|
|
@@ -185,8 +188,8 @@ nbdev_prepare
|
|
|
185
188
|
| **Component consistency** | Unified API across all components |
|
|
186
189
|
| **Dark mode support** | Built-in with automatic system preference detection |
|
|
187
190
|
| **Responsive design** | Mobile-first grid system and responsive utilities |
|
|
188
|
-
| **Form handling** | `FormField
|
|
189
|
-
| **Data management** | `DataTable` and `DataTableResource` for CRUD operations |
|
|
191
|
+
| **Form handling** | [`FormField`](https://abhisheksreesaila.github.io/fh-matui/components.html#formfield), [`FormGrid`](https://abhisheksreesaila.github.io/fh-matui/components.html#formgrid), [`FormModal`](https://abhisheksreesaila.github.io/fh-matui/components.html#formmodal) for rapid form building |
|
|
192
|
+
| **Data management** | [`DataTable`](https://abhisheksreesaila.github.io/fh-matui/datatable.html#datatable) and [`DataTableResource`](https://abhisheksreesaila.github.io/fh-matui/datatable.html#datatableresource) for CRUD operations |
|
|
190
193
|
|
|
191
194
|
## 🤖 For LLM Users
|
|
192
195
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
fh_matui/__init__.py,sha256=1Trt9wiX-dulRPRdt82fqX0JH-xfZMdFAJe6dA4gaQM,24
|
|
2
2
|
fh_matui/_modidx.py,sha256=x9AV-LcrfUpON34QN4WnbO-E_GKQ2PhdlY5Zh0NEAT0,24162
|
|
3
3
|
fh_matui/app_pages.py,sha256=DtaStRuYJ_oiEB2nBzMApCv0NfBkE2wUZMUfKBMhMFs,10378
|
|
4
|
-
fh_matui/components.py,sha256=
|
|
4
|
+
fh_matui/components.py,sha256=y00glXXR5dB4zHwCDnqXCeGiYKMETK1WO6l7Ee2Bdls,59103
|
|
5
5
|
fh_matui/core.py,sha256=3j-4ot0MgmyBpsIg7qRh3-KTlRYmgVeetQhQNQPQ19E,11108
|
|
6
6
|
fh_matui/datatable.py,sha256=DRgA6nmm4h_QCMmd6CJK8QluRJ0S7c8j9H-yHjpUjBo,42590
|
|
7
7
|
fh_matui/foundations.py,sha256=jSJuELof3B-YeZ4jlsIV-ABpOn9Hv2Qd67o0LuBTqVY,1912
|
|
8
8
|
fh_matui/web_pages.py,sha256=6l0axbrCYmqSmSGrq0qt3nPUNblArCCAy_LlN-iCsNc,35183
|
|
9
|
-
fh_matui-0.9.
|
|
10
|
-
fh_matui-0.9.
|
|
11
|
-
fh_matui-0.9.
|
|
12
|
-
fh_matui-0.9.
|
|
13
|
-
fh_matui-0.9.
|
|
14
|
-
fh_matui-0.9.
|
|
9
|
+
fh_matui-0.9.17.dist-info/licenses/LICENSE,sha256=xV8xoN4VOL0uw9X8RSs2IMuD_Ss_a9yAbtGNeBWZwnw,11337
|
|
10
|
+
fh_matui-0.9.17.dist-info/METADATA,sha256=6ngbutacYFlJoMqDm6IKv_uWOa_ARVdl_2nryVQ4E1Q,10601
|
|
11
|
+
fh_matui-0.9.17.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
12
|
+
fh_matui-0.9.17.dist-info/entry_points.txt,sha256=zn4CR4gNTiAAxbFsCxHAf2tQhtW29_YOffjbUTgeoWI,38
|
|
13
|
+
fh_matui-0.9.17.dist-info/top_level.txt,sha256=l80d5eoA2ZjqtPYwAorLMS5PiHxUxz3zKzxMJ41Xoso,9
|
|
14
|
+
fh_matui-0.9.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|