cjm-fasthtml-card-stack 0.0.2__tar.gz → 0.0.3__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.
Files changed (46) hide show
  1. {cjm_fasthtml_card_stack-0.0.2/cjm_fasthtml_card_stack.egg-info → cjm_fasthtml_card_stack-0.0.3}/PKG-INFO +16 -16
  2. cjm_fasthtml_card_stack-0.0.3/cjm_fasthtml_card_stack/__init__.py +1 -0
  3. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/components/viewport.py +6 -6
  4. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3/cjm_fasthtml_card_stack.egg-info}/PKG-INFO +16 -16
  5. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/demos/basic.py +1 -1
  6. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/demos/bottom.py +1 -1
  7. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/settings.ini +1 -1
  8. cjm_fasthtml_card_stack-0.0.2/cjm_fasthtml_card_stack/__init__.py +0 -1
  9. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/LICENSE +0 -0
  10. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/MANIFEST.in +0 -0
  11. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/README.md +15 -15
  12. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/_modidx.py +0 -0
  13. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/components/__init__.py +0 -0
  14. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/components/controls.py +0 -0
  15. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/components/progress.py +0 -0
  16. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/components/states.py +0 -0
  17. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/core/__init__.py +0 -0
  18. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/core/button_ids.py +0 -0
  19. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/core/config.py +0 -0
  20. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/core/constants.py +0 -0
  21. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/core/html_ids.py +0 -0
  22. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/core/models.py +0 -0
  23. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/helpers/__init__.py +0 -0
  24. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/helpers/focus.py +0 -0
  25. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/js/__init__.py +0 -0
  26. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/js/core.py +0 -0
  27. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/js/navigation.py +0 -0
  28. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/js/scroll.py +0 -0
  29. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/js/viewport.py +0 -0
  30. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/keyboard/__init__.py +0 -0
  31. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/keyboard/actions.py +0 -0
  32. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/routes/__init__.py +0 -0
  33. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/routes/handlers.py +0 -0
  34. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack/routes/router.py +0 -0
  35. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack.egg-info/SOURCES.txt +0 -0
  36. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack.egg-info/dependency_links.txt +0 -0
  37. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack.egg-info/entry_points.txt +0 -0
  38. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack.egg-info/not-zip-safe +0 -0
  39. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack.egg-info/requires.txt +0 -0
  40. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/cjm_fasthtml_card_stack.egg-info/top_level.txt +0 -0
  41. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/demos/__init__.py +0 -0
  42. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/demos/data.py +0 -0
  43. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/demos/shared.py +0 -0
  44. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/pyproject.toml +0 -0
  45. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/setup.cfg +0 -0
  46. {cjm_fasthtml_card_stack-0.0.2 → cjm_fasthtml_card_stack-0.0.3}/setup.py +0 -0
@@ -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*
@@ -0,0 +1 @@
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*
@@ -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
  )
@@ -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
  )
@@ -1,7 +1,7 @@
1
1
  [DEFAULT]
2
2
  repo = cjm-fasthtml-card-stack
3
3
  lib_name = cjm-fasthtml-card-stack
4
- version = 0.0.2
4
+ version = 0.0.3
5
5
  min_python = 3.12
6
6
  license = apache2
7
7
  black_formatting = False
@@ -1 +0,0 @@
1
- __version__ = "0.0.2"
@@ -64,41 +64,41 @@ graph LR
64
64
  components_controls --> core_html_ids
65
65
  components_progress --> core_html_ids
66
66
  components_states --> core_html_ids
67
- components_viewport --> core_models
68
67
  components_viewport --> core_config
69
- components_viewport --> core_constants
70
- components_viewport --> helpers_focus
71
68
  components_viewport --> core_html_ids
72
69
  components_viewport --> components_states
70
+ components_viewport --> core_constants
71
+ components_viewport --> core_models
72
+ components_viewport --> helpers_focus
73
73
  helpers_focus --> core_html_ids
74
74
  js_core --> core_constants
75
- js_core --> core_button_ids
76
- js_core --> core_models
77
75
  js_core --> core_config
78
- js_core --> js_scroll
79
76
  js_core --> core_html_ids
80
- js_core --> js_navigation
81
77
  js_core --> js_viewport
78
+ js_core --> js_navigation
79
+ js_core --> js_scroll
80
+ js_core --> core_models
81
+ js_core --> core_button_ids
82
82
  js_navigation --> core_button_ids
83
- js_scroll --> core_button_ids
84
83
  js_scroll --> core_constants
84
+ js_scroll --> core_button_ids
85
85
  js_scroll --> core_html_ids
86
86
  js_viewport --> core_html_ids
87
- keyboard_actions --> core_button_ids
88
- keyboard_actions --> core_models
89
87
  keyboard_actions --> core_config
90
88
  keyboard_actions --> core_html_ids
91
89
  keyboard_actions --> js_core
90
+ keyboard_actions --> core_models
91
+ keyboard_actions --> core_button_ids
92
92
  routes_handlers --> core_models
93
- routes_handlers --> components_viewport
94
- routes_handlers --> helpers_focus
95
93
  routes_handlers --> core_config
96
- routes_handlers --> components_progress
97
94
  routes_handlers --> core_html_ids
98
- routes_router --> routes_handlers
99
- routes_router --> core_models
95
+ routes_handlers --> components_progress
96
+ routes_handlers --> helpers_focus
97
+ routes_handlers --> components_viewport
100
98
  routes_router --> core_config
101
99
  routes_router --> core_html_ids
100
+ routes_router --> routes_handlers
101
+ routes_router --> core_models
102
102
  ```
103
103
 
104
104
  *39 cross-module dependencies detected*