Skip to content

Commit

Permalink
Auto-update API lists and context files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 19, 2025
1 parent d779f32 commit eb2f906
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
32 changes: 21 additions & 11 deletions docs/llms-ctx-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@
- `def get_franken_renderer(img_dir)`
Create a renderer class with the specified img_dir

- `def ThemePicker(color, radii, shadows, font, mode, cls)`
- `def ThemePicker(color, radii, shadows, font, mode, cls, custom_themes)`
Theme picker component with configurable sections

- `def LightboxContainer(*lightboxitem, **kwargs)`
Expand Down Expand Up @@ -2465,7 +2465,7 @@ Source

[code]

LabelCheckboxX(label: str | fastcore.xml.FT, lbl_cls='', input_cls='', container=functools.partial(<function ft at 0x7ff636e027a0>, 'div', void_=False), cls='flex items-center space-x-2', id='', **kwargs) -> fastcore.xml.FT
LabelCheckboxX(label: str | fastcore.xml.FT, lbl_cls='', input_cls='', container=functools.partial(<function ft at 0x7f9fde0567a0>, 'div', void_=False), cls='flex items-center space-x-2', id='', **kwargs) -> fastcore.xml.FT
[/code]

> A FormLabel and CheckboxX pair that provides default spacing and links/names them based on id
Expand Down Expand Up @@ -2494,7 +2494,7 @@ Source

[code]

LabelSwitch(label: str | fastcore.xml.FT, lbl_cls='', input_cls='', cls='space-x-2', id='', *, container=functools.partial(<function ft at 0x7ff636e027a0>, 'div', void_=False)) -> fastcore.xml.FT
LabelSwitch(label: str | fastcore.xml.FT, lbl_cls='', input_cls='', cls='space-x-2', id='', *, container=functools.partial(<function ft at 0x7f9fde0567a0>, 'div', void_=False)) -> fastcore.xml.FT
[/code]

> **Params**
Expand All @@ -2519,7 +2519,7 @@ Source

[code]

LabelRange(label: str | fastcore.xml.FT, lbl_cls='', input_cls='', cls='space-y-6', id='', value='', min=None, max=None, step=None, label_range=True, *, container=functools.partial(<function ft at 0x7ff636e027a0>, 'div', void_=False)) -> fastcore.xml.FT
LabelRange(label: str | fastcore.xml.FT, lbl_cls='', input_cls='', cls='space-y-6', id='', value='', min=None, max=None, step=None, label_range=True, *, container=functools.partial(<function ft at 0x7f9fde0567a0>, 'div', void_=False)) -> fastcore.xml.FT
[/code]

> A FormLabel and Range pair that provides default spacing and links/names them based on id
Expand Down Expand Up @@ -2583,7 +2583,7 @@ Source

[code]

LabelRadio(label: str | fastcore.xml.FT, lbl_cls='', input_cls='', container=functools.partial(<function ft at 0x7ff636e027a0>, 'div', void_=False), cls='flex items-center space-x-2', id='', **kwargs) -> fastcore.xml.FT
LabelRadio(label: str | fastcore.xml.FT, lbl_cls='', input_cls='', container=functools.partial(<function ft at 0x7f9fde0567a0>, 'div', void_=False), cls='flex items-center space-x-2', id='', **kwargs) -> fastcore.xml.FT
[/code]

> A FormLabel and Radio pair that provides default spacing and links/names them based on id
Expand Down Expand Up @@ -2612,7 +2612,7 @@ Source

[code]

LabelSelect(*option, label: str | fastcore.xml.FT, lbl_cls='', input_cls='', container=functools.partial(<function ft at 0x7ff636e027a0>, 'div', void_=False), cls='space-y-2', id='', **kwargs)
LabelSelect(*option, label: str | fastcore.xml.FT, lbl_cls='', input_cls='', container=functools.partial(<function ft at 0x7f9fde0567a0>, 'div', void_=False), cls='space-y-2', id='', **kwargs)
[/code]

> A FormLabel and Select pair that provides default spacing and links/names them based on id (usually UkLabelSelect is a better choice)
Expand Down Expand Up @@ -5159,7 +5159,7 @@ Source

[code]

TableFromLists(header_data: Sequence, body_data: Sequence[Sequence], footer_data=None, header_cell_render=<function Th at 0x7ff5e0ca58a0>, body_cell_render=<function Td at 0x7ff5e0ca5800>, footer_cell_render=<function Td at 0x7ff5e0ca5800>, cls=(<TableT.middle: 'uk-table-middle'>, <TableT.divider: 'uk-table-divider'>, <TableT.hover: 'uk-table-hover'>, <TableT.sm: 'uk-table-sm'>), sortable=False, **kwargs) -> fastcore.xml.FT
TableFromLists(header_data: Sequence, body_data: Sequence[Sequence], footer_data=None, header_cell_render=<function Th at 0x7f9f87ef98a0>, body_cell_render=<function Td at 0x7f9f87ef9800>, footer_cell_render=<function Td at 0x7f9f87ef9800>, cls=(<TableT.middle: 'uk-table-middle'>, <TableT.divider: 'uk-table-divider'>, <TableT.hover: 'uk-table-hover'>, <TableT.sm: 'uk-table-sm'>), sortable=False, **kwargs) -> fastcore.xml.FT
[/code]

> Creates a Table from a list of header data and a list of lists of body data
Expand Down Expand Up @@ -5192,7 +5192,7 @@ Source

[code]

TableFromDicts(header_data: Sequence, body_data: Sequence[dict], footer_data=None, header_cell_render=<function Th at 0x7ff5e0ca58a0>, body_cell_render=<function <lambda> at 0x7ff5e0ca59e0>, footer_cell_render=<function <lambda> at 0x7ff5e0ca5a80>, cls=(<TableT.middle: 'uk-table-middle'>, <TableT.divider: 'uk-table-divider'>, <TableT.hover: 'uk-table-hover'>, <TableT.sm: 'uk-table-sm'>), sortable=False, **kwargs) -> fastcore.xml.FT
TableFromDicts(header_data: Sequence, body_data: Sequence[dict], footer_data=None, header_cell_render=<function Th at 0x7f9f87ef98a0>, body_cell_render=<function <lambda> at 0x7f9f87ef99e0>, footer_cell_render=<function <lambda> at 0x7f9f87ef9a80>, cls=(<TableT.middle: 'uk-table-middle'>, <TableT.divider: 'uk-table-divider'>, <TableT.hover: 'uk-table-hover'>, <TableT.sm: 'uk-table-sm'>), sortable=False, **kwargs) -> fastcore.xml.FT
[/code]

> Creates a Table from a list of header data and a list of dicts of body data
Expand Down Expand Up @@ -5350,7 +5350,7 @@ Source

[code]

ThemePicker(color=True, radii=True, shadows=True, font=True, mode=True, cls='p-4')
ThemePicker(color=True, radii=True, shadows=True, font=True, mode=True, cls='p-4', custom_themes=[])
[/code]

> Theme picker component with configurable sections
Expand All @@ -5369,6 +5369,14 @@ Source

* `cls`

* `custom_themes`

### Custom Themes

1. You can use this theme as a starting point.
2. Add the theme to your headers as a link like this `Link(rel="stylesheet", href="/custom_theme.css", type="text/css")`
3. Then add the theme to the `ThemePicker` component. For example `ThemePicker(custom_themes=[('Grass', '#10b981')])`

Themes are controlled with `bg-background text-foreground` classes on the `Body` tag. `fast_app` and `FastHTML` will do this for you automatically so you typically do not have to do anything

### fast_app
Expand All @@ -5377,7 +5385,7 @@ Source

[code]

fast_app(*args, pico=False, db_file: Optional[str] = None, render: Optional[<built-in function callable>] = None, hdrs: Optional[tuple] = None, ftrs: Optional[tuple] = None, tbls: Optional[dict] = None, before: Union[tuple, NoneType, fasthtml.core.Beforeware] = None, middleware: Optional[tuple] = None, live: bool = False, debug: bool = False, routes: Optional[tuple] = None, exception_handlers: Optional[dict] = None, on_startup: Optional[<built-in function callable>] = None, on_shutdown: Optional[<built-in function callable>] = None, lifespan: Optional[<built-in function callable>] = None, default_hdrs=True, surreal: Optional[bool] = True, htmx: Optional[bool] = True, exts: Union[list, str, NoneType] = None, secret_key: Optional[str] = None, key_fname: str = '.sesskey', session_cookie: str = 'session_', max_age: int = 31536000, sess_path: str = '/', same_site: str = 'lax', sess_https_only: bool = False, sess_domain: Optional[str] = None, htmlkw: Optional[dict] = None, bodykw: Optional[dict] = None, reload_attempts: Optional[int] = 1, reload_interval: Optional[int] = 1000, static_path: str = '.', body_wrap: <built-in function callable> = <function noop_body at 0x7ff6364a9b20>, nb_hdrs: bool = False)
fast_app(*args, pico=False, db_file: Optional[str] = None, render: Optional[<built-in function callable>] = None, hdrs: Optional[tuple] = None, ftrs: Optional[tuple] = None, tbls: Optional[dict] = None, before: Union[tuple, NoneType, fasthtml.core.Beforeware] = None, middleware: Optional[tuple] = None, live: bool = False, debug: bool = False, routes: Optional[tuple] = None, exception_handlers: Optional[dict] = None, on_startup: Optional[<built-in function callable>] = None, on_shutdown: Optional[<built-in function callable>] = None, lifespan: Optional[<built-in function callable>] = None, default_hdrs=True, surreal: Optional[bool] = True, htmx: Optional[bool] = True, exts: Union[list, str, NoneType] = None, secret_key: Optional[str] = None, key_fname: str = '.sesskey', session_cookie: str = 'session_', max_age: int = 31536000, sess_path: str = '/', same_site: str = 'lax', sess_https_only: bool = False, sess_domain: Optional[str] = None, htmlkw: Optional[dict] = None, bodykw: Optional[dict] = None, reload_attempts: Optional[int] = 1, reload_interval: Optional[int] = 1000, static_path: str = '.', body_wrap: <built-in function callable> = <function noop_body at 0x7f9fdd6fdb20>, nb_hdrs: bool = False)
[/code]

> Create a FastHTML or FastHTMLWithLiveReload app with `bg-background text-foreground` to bodykw for frankenui themes
Expand Down Expand Up @@ -5460,7 +5468,7 @@ Source

[code]

FastHTML(*args, pico=False, debug=False, routes=None, middleware=None, title: str = 'FastHTML page', exception_handlers=None, on_startup=None, on_shutdown=None, lifespan=None, hdrs=None, ftrs=None, exts=None, before=None, after=None, surreal=True, htmx=True, default_hdrs=True, sess_cls=<class 'starlette.middleware.sessions.SessionMiddleware'>, secret_key=None, session_cookie='session_', max_age=31536000, sess_path='/', same_site='lax', sess_https_only=False, sess_domain=None, key_fname='.sesskey', body_wrap=<function noop_body at 0x7ff6364a9b20>, htmlkw=None, nb_hdrs=False)
FastHTML(*args, pico=False, debug=False, routes=None, middleware=None, title: str = 'FastHTML page', exception_handlers=None, on_startup=None, on_shutdown=None, lifespan=None, hdrs=None, ftrs=None, exts=None, before=None, after=None, surreal=True, htmx=True, default_hdrs=True, sess_cls=<class 'starlette.middleware.sessions.SessionMiddleware'>, secret_key=None, session_cookie='session_', max_age=31536000, sess_path='/', same_site='lax', sess_https_only=False, sess_domain=None, key_fname='.sesskey', body_wrap=<function noop_body at 0x7f9fdd6fdb20>, htmlkw=None, nb_hdrs=False)
[/code]

> Create a FastHTML app and adds `bg-background text-foreground` to bodykw for frankenui themes
Expand Down Expand Up @@ -5526,6 +5534,8 @@ Source
* `args`

* `pico`

> Users have saidthis site is helpful in creating your own themes.
</doc><doc title="Typography" desc="Typography API Reference"># Typography API Reference

Ready to go semantic options that cover most of what you need based on the HTML spec
Expand Down
2 changes: 1 addition & 1 deletion docs/llms-ctx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@
- `def get_franken_renderer(img_dir)`
Create a renderer class with the specified img_dir

- `def ThemePicker(color, radii, shadows, font, mode, cls)`
- `def ThemePicker(color, radii, shadows, font, mode, cls, custom_themes)`
Theme picker component with configurable sections

- `def LightboxContainer(*lightboxitem, **kwargs)`
Expand Down

0 comments on commit eb2f906

Please sign in to comment.