@teactjs/ui 0.1.0-alpha.1
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.
- package/README.md +40 -0
- package/dist/index.js +1253 -0
- package/dist/react/src/callback-registry.d.ts +11 -0
- package/dist/react/src/callback-registry.d.ts.map +1 -0
- package/dist/react/src/components.d.ts +396 -0
- package/dist/react/src/components.d.ts.map +1 -0
- package/dist/react/src/error-boundary.d.ts +19 -0
- package/dist/react/src/error-boundary.d.ts.map +1 -0
- package/dist/react/src/hooks.d.ts +37 -0
- package/dist/react/src/hooks.d.ts.map +1 -0
- package/dist/react/src/index.d.ts +11 -0
- package/dist/react/src/index.d.ts.map +1 -0
- package/dist/renderer/src/index.d.ts +5 -0
- package/dist/renderer/src/index.d.ts.map +1 -0
- package/dist/renderer/src/nodes.d.ts +23 -0
- package/dist/renderer/src/nodes.d.ts.map +1 -0
- package/dist/renderer/src/renderer.d.ts +9 -0
- package/dist/renderer/src/renderer.d.ts.map +1 -0
- package/dist/renderer/src/types.d.ts +36 -0
- package/dist/renderer/src/types.d.ts.map +1 -0
- package/dist/ui/src/index.d.ts +5 -0
- package/dist/ui/src/index.d.ts.map +1 -0
- package/package.json +32 -0
- package/src/index.ts +88 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @teactjs/ui
|
|
2
|
+
|
|
3
|
+
Convenience re-exports of all components and hooks from `@teactjs/react`.
|
|
4
|
+
|
|
5
|
+
This package exists so you can import UI primitives from a dedicated namespace if you prefer to keep runtime and UI imports separate.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
bun add @teactjs/ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import {
|
|
17
|
+
Message,
|
|
18
|
+
Button,
|
|
19
|
+
InlineKeyboard,
|
|
20
|
+
Photo,
|
|
21
|
+
ErrorBoundary,
|
|
22
|
+
useQuery,
|
|
23
|
+
useMutation,
|
|
24
|
+
} from "@teactjs/ui";
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Every component, prop type, and data hook exported by `@teactjs/react` is available here with the same names and signatures.
|
|
28
|
+
|
|
29
|
+
## When to Use This vs @teactjs/react
|
|
30
|
+
|
|
31
|
+
They are identical. Use whichever you prefer:
|
|
32
|
+
|
|
33
|
+
- `@teactjs/ui` -- if you want a short, UI-focused import path
|
|
34
|
+
- `@teactjs/react` -- if you want to be explicit about the source package
|
|
35
|
+
- `@teactjs/core` -- if you want everything (runtime + components) from one import
|
|
36
|
+
|
|
37
|
+
## See Also
|
|
38
|
+
|
|
39
|
+
- [`@teactjs/react`](../react) for the full component catalog
|
|
40
|
+
- [`@teactjs/core`](../core) for the barrel import
|