= (props) => (
9 |
12 | )
13 |
--------------------------------------------------------------------------------
/src/npm-fastui/typedoc.json:
--------------------------------------------------------------------------------
1 | // TODO: we really want the entryPoint to be src, but mkdocstrings-typescript doesn't fully support this option yet,
2 | // as we can't specify the path within the package from which we want to pull docs, so right now
3 | // we resort to more specific entryPoints
4 | {
5 | "extends": ["../../typedoc.base.json"],
6 | "entryPointStrategy": "expand",
7 | "entryPoints": ["src/models.d.ts"]
8 | }
9 |
--------------------------------------------------------------------------------
/src/python-fastui/fastui/auth/__init__.py:
--------------------------------------------------------------------------------
1 | from .github import GitHubAuthProvider, GitHubEmail, GitHubExchange, GithubUser
2 | from .shared import AuthError, AuthRedirect, fastapi_auth_exception_handling
3 |
4 | __all__ = (
5 | 'GitHubAuthProvider',
6 | 'GitHubExchange',
7 | 'GithubUser',
8 | 'GitHubEmail',
9 | 'AuthError',
10 | 'AuthRedirect',
11 | 'fastapi_auth_exception_handling',
12 | )
13 |
--------------------------------------------------------------------------------
/src/python-fastui/README.md:
--------------------------------------------------------------------------------
1 | # FastUI
2 |
3 | [](https://github.com/pydantic/FastUI/actions?query=event%3Apush+branch%3Amain+workflow%3ACI)
4 | [](https://github.com/pydantic/FastUI)
5 | [](https://github.com/pydantic/FastUI/blob/main/LICENSE)
6 |
7 | Python components for [FastUI](https://github.com/pydantic/FastUI).
8 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 | /**/*.egg-info
10 |
11 | node_modules
12 | dist
13 | dist-ssr
14 | *.local
15 |
16 | # Editor directories and files
17 | .vscode/*
18 | !.vscode/extensions.json
19 | .idea
20 | .DS_Store
21 | *.suo
22 | *.ntvs*
23 | *.njsproj
24 | *.sln
25 | *.sw?
26 |
27 | # python
28 | /env*/
29 | __pycache__/
30 |
31 | /.logfire/
32 | /frontend-dist/
33 | /scratch/
34 | /packages-dist/
35 | /.coverage
36 | /users.db
37 |
--------------------------------------------------------------------------------
/src/npm-fastui/src/components/button.tsx:
--------------------------------------------------------------------------------
1 | import { FC } from 'react'
2 |
3 | import type { Button } from '../models'
4 |
5 | import { useClassName } from '../hooks/className'
6 | import { useFireEvent } from '../events'
7 |
8 | export const ButtonComp: FC