cjm-fasthtml-card-stack 0.0.2__py3-none-any.whl → 0.0.3__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.
@@ -1 +1 @@
1
- __version__ = "0.0.2"
1
+ __version__ = "0.0.3"
@@ -11,11 +11,11 @@ from typing import Any, Callable, List, Optional
11
11
  from fasthtml.common import Div, Script, A, Hidden
12
12
 
13
13
  # DaisyUI utilities
14
- from cjm_fasthtml_daisyui.utilities.semantic_colors import ring_dui
14
+ from cjm_fasthtml_daisyui.utilities.semantic_colors import shadow_dui
15
15
  from cjm_fasthtml_daisyui.utilities.border_radius import border_radius
16
16
 
17
17
  # Tailwind utilities
18
- from cjm_fasthtml_tailwind.utilities.effects import ring
18
+ from cjm_fasthtml_tailwind.utilities.effects import shadow
19
19
  from cjm_fasthtml_tailwind.utilities.flexbox_and_grid import (
20
20
  flex_display, flex_direction, justify, items, gap, grid_display
21
21
  )
@@ -110,9 +110,9 @@ def render_slot_card(
110
110
  )
111
111
  content = render_card(card_items[item_index], context)
112
112
 
113
- # Focus ring styling for focused slot
113
+ # Focus shadow styling for focused slot
114
114
  focus_cls = combine_classes(
115
- ring(3), ring_dui.primary, border_radius.box
115
+ shadow.lg, shadow_dui.primary, border_radius.box
116
116
  ) if is_focused else ""
117
117
 
118
118
  # Mode sync script in focused slot OOB updates
@@ -195,7 +195,7 @@ def render_all_slots_oob(
195
195
  focused_section = Div(
196
196
  focused_card, mode_sync,
197
197
  id=ids.viewport_section_focused,
198
- cls=combine_classes(flex_display, justify.center, items.center, w.full),
198
+ cls=combine_classes(flex_display, justify.center, items.center, w.full, p.x(2), p.b(4)),
199
199
  hx_swap_oob="innerHTML"
200
200
  )
201
201
 
@@ -276,7 +276,7 @@ def render_viewport(
276
276
  focused_section = Div(
277
277
  focused_card,
278
278
  id=ids.viewport_section_focused,
279
- cls=combine_classes(flex_display, justify.center, items.center, w.full)
279
+ cls=combine_classes(flex_display, justify.center, items.center, w.full, p.x(2), p.b(4))
280
280
  )
281
281
 
282
282
  after_section = Div(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cjm-fasthtml-card-stack
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: A fixed-viewport card stack component for FastHTML with keyboard navigation, scroll-to-nav, configurable focus position, and HTMX-driven OOB updates.
5
5
  Home-page: https://github.com/cj-mills/cjm-fasthtml-card-stack
6
6
  Author: Christian J. Mills
@@ -100,41 +100,41 @@ graph LR
100
100
  components_controls --> core_html_ids
101
101
  components_progress --> core_html_ids
102
102
  components_states --> core_html_ids
103
- components_viewport --> core_models
104
103
  components_viewport --> core_config
105
- components_viewport --> core_constants
106
- components_viewport --> helpers_focus
107
104
  components_viewport --> core_html_ids
108
105
  components_viewport --> components_states
106
+ components_viewport --> core_constants
107
+ components_viewport --> core_models
108
+ components_viewport --> helpers_focus
109
109
  helpers_focus --> core_html_ids
110
110
  js_core --> core_constants
111
- js_core --> core_button_ids
112
- js_core --> core_models
113
111
  js_core --> core_config
114
- js_core --> js_scroll
115
112
  js_core --> core_html_ids
116
- js_core --> js_navigation
117
113
  js_core --> js_viewport
114
+ js_core --> js_navigation
115
+ js_core --> js_scroll
116
+ js_core --> core_models
117
+ js_core --> core_button_ids
118
118
  js_navigation --> core_button_ids
119
- js_scroll --> core_button_ids
120
119
  js_scroll --> core_constants
120
+ js_scroll --> core_button_ids
121
121
  js_scroll --> core_html_ids
122
122
  js_viewport --> core_html_ids
123
- keyboard_actions --> core_button_ids
124
- keyboard_actions --> core_models
125
123
  keyboard_actions --> core_config
126
124
  keyboard_actions --> core_html_ids
127
125
  keyboard_actions --> js_core
126
+ keyboard_actions --> core_models
127
+ keyboard_actions --> core_button_ids
128
128
  routes_handlers --> core_models
129
- routes_handlers --> components_viewport
130
- routes_handlers --> helpers_focus
131
129
  routes_handlers --> core_config
132
- routes_handlers --> components_progress
133
130
  routes_handlers --> core_html_ids
134
- routes_router --> routes_handlers
135
- routes_router --> core_models
131
+ routes_handlers --> components_progress
132
+ routes_handlers --> helpers_focus
133
+ routes_handlers --> components_viewport
136
134
  routes_router --> core_config
137
135
  routes_router --> core_html_ids
136
+ routes_router --> routes_handlers
137
+ routes_router --> core_models
138
138
  ```
139
139
 
140
140
  *39 cross-module dependencies detected*
@@ -1,10 +1,10 @@
1
- cjm_fasthtml_card_stack/__init__.py,sha256=QvlVh4JTl3JL7jQAja76yKtT-IvF4631ASjWY1wS6AQ,22
1
+ cjm_fasthtml_card_stack/__init__.py,sha256=4GZKi13lDTD25YBkGakhZyEQZWTER_OWQMNPoH_UM2c,22
2
2
  cjm_fasthtml_card_stack/_modidx.py,sha256=jYNj6LPbD5I8yDghD3Lx9XWsDnWqc_oNCESguSF8blA,25105
3
3
  cjm_fasthtml_card_stack/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  cjm_fasthtml_card_stack/components/controls.py,sha256=C3iRvaiRe0ti8S7ogTSKRRRdw-z6vz77mkuvKVmIz-Y,4093
5
5
  cjm_fasthtml_card_stack/components/progress.py,sha256=BBeR4EWEikA54bVG41iLdlyyGRFwMJtEh8-cX9L9QLI,1500
6
6
  cjm_fasthtml_card_stack/components/states.py,sha256=ClgpdS3e19ccO6VHU6ajulU_yb7c1bQVZf9nSsd5QPc,3797
7
- cjm_fasthtml_card_stack/components/viewport.py,sha256=ikb35mGEUP2RpC-1B6F-JeGBrNaT6wpXv_op5T7zbgA,11699
7
+ cjm_fasthtml_card_stack/components/viewport.py,sha256=vLH9oTbSXlkWZEDHTTKWs38Shd9_ajvSpq1mrvcuOGU,11741
8
8
  cjm_fasthtml_card_stack/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  cjm_fasthtml_card_stack/core/button_ids.py,sha256=elKKLBrt-Hu6vgWhrcVlCXgdUeYXHQyfn3NyhhEmxW4,2123
10
10
  cjm_fasthtml_card_stack/core/config.py,sha256=XYaptNnzZ8sRcCdxWA_RB1FwBiXU8Ko6mEsNSbxhtb0,1714
@@ -23,14 +23,14 @@ cjm_fasthtml_card_stack/keyboard/actions.py,sha256=rfCD8lLVXXVPrML-8dj48bT_zOKN7
23
23
  cjm_fasthtml_card_stack/routes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  cjm_fasthtml_card_stack/routes/handlers.py,sha256=GX1h_9t4-2G59IaDyzWTeWUaDFjrXYCqaaUT4UZ_Viw,6823
25
25
  cjm_fasthtml_card_stack/routes/router.py,sha256=w6mTQGb-OE0X7t-6dIz7bXg5A0U4llSzNsec-PTkacs,5131
26
- cjm_fasthtml_card_stack-0.0.2.dist-info/licenses/LICENSE,sha256=xV8xoN4VOL0uw9X8RSs2IMuD_Ss_a9yAbtGNeBWZwnw,11337
26
+ cjm_fasthtml_card_stack-0.0.3.dist-info/licenses/LICENSE,sha256=xV8xoN4VOL0uw9X8RSs2IMuD_Ss_a9yAbtGNeBWZwnw,11337
27
27
  demos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
- demos/basic.py,sha256=o93t_7O3PCnn-aGGCVKSVt09xcgs1oy-yAW2EDdPsY8,3813
29
- demos/bottom.py,sha256=ylyYqUXhv97noIQF1-kdFeVM6E40POKd45r0WM0cabo,3339
28
+ demos/basic.py,sha256=8GVV7eSWOzcz67L6XiPqwKFy886AT5y7Ok-T2ZPX32Q,3815
29
+ demos/bottom.py,sha256=ZLpgpUfOvCzM3rVf3ufvZnSAxuzOQ5gND7RsSUgNpJo,3341
30
30
  demos/data.py,sha256=8yVV_E0nLcr0L1PcrTG-DaT-V36apF74ALKNIZuSQ70,4471
31
31
  demos/shared.py,sha256=8AMZhgjyobY0pnt_7lmZ91gxb8X1UA1biK0KPfherjo,5384
32
- cjm_fasthtml_card_stack-0.0.2.dist-info/METADATA,sha256=kMYvuotFt_cCjJf1TJa-g8YBRAQBbt4IeOoUCZW8Sxw,36832
33
- cjm_fasthtml_card_stack-0.0.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
34
- cjm_fasthtml_card_stack-0.0.2.dist-info/entry_points.txt,sha256=qTw6qaijkEUH1AcPQhpTqJ8TPiUSMnpn0Cvg4hXoX90,68
35
- cjm_fasthtml_card_stack-0.0.2.dist-info/top_level.txt,sha256=ydBTJsY2ONaDryp85HkjhdGHEuuUOoMGdrOgFA2ddyg,30
36
- cjm_fasthtml_card_stack-0.0.2.dist-info/RECORD,,
32
+ cjm_fasthtml_card_stack-0.0.3.dist-info/METADATA,sha256=mv8IdrvEVlWeuYLBn5BKQBZpH8rlUXo9GQeRdhQEvds,36832
33
+ cjm_fasthtml_card_stack-0.0.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
34
+ cjm_fasthtml_card_stack-0.0.3.dist-info/entry_points.txt,sha256=qTw6qaijkEUH1AcPQhpTqJ8TPiUSMnpn0Cvg4hXoX90,68
35
+ cjm_fasthtml_card_stack-0.0.3.dist-info/top_level.txt,sha256=ydBTJsY2ONaDryp85HkjhdGHEuuUOoMGdrOgFA2ddyg,30
36
+ cjm_fasthtml_card_stack-0.0.3.dist-info/RECORD,,
demos/basic.py CHANGED
@@ -57,7 +57,7 @@ def render_card(item, context: CardRenderContext):
57
57
  ),
58
58
  cls=combine_classes(
59
59
  card,
60
- bg_dui.base_100 if is_focused else bg_dui.base_200,
60
+ bg_dui.base_100,# if is_focused else bg_dui.base_200,
61
61
  w.full,
62
62
  ),
63
63
  )
demos/bottom.py CHANGED
@@ -42,7 +42,7 @@ def render_card(item, context: CardRenderContext):
42
42
  ),
43
43
  cls=combine_classes(
44
44
  card,
45
- bg_dui.base_100 if is_focused else bg_dui.base_200,
45
+ bg_dui.base_100,# if is_focused else bg_dui.base_200,
46
46
  w.full,
47
47
  ),
48
48
  )