@bysages/react 0.0.0 → 0.0.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 +7 -7
- package/dist/index.d.mts +5 -1
- package/dist/index.mjs +4 -9522
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -19,26 +19,26 @@
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
# pnpm
|
|
22
|
-
pnpm add @bysages/react
|
|
22
|
+
pnpm add @bysages/react
|
|
23
23
|
|
|
24
24
|
# npm
|
|
25
|
-
npm install @bysages/react
|
|
25
|
+
npm install @bysages/react
|
|
26
26
|
|
|
27
27
|
# yarn
|
|
28
|
-
yarn add @bysages/react
|
|
28
|
+
yarn add @bysages/react
|
|
29
29
|
|
|
30
30
|
# bun
|
|
31
|
-
bun add @bysages/react
|
|
31
|
+
bun add @bysages/react
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Quick Start
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Theme the document, then use the components — the component import
|
|
37
|
+
carries the whole token layer in with it:
|
|
37
38
|
|
|
38
39
|
```tsx
|
|
39
40
|
// main.tsx
|
|
40
|
-
import "@bysages/
|
|
41
|
-
import { applyTheme } from "@bysages/core";
|
|
41
|
+
import { applyTheme } from "@bysages/react";
|
|
42
42
|
|
|
43
43
|
applyTheme({ mode: "system", accent: "ink" });
|
|
44
44
|
```
|
package/dist/index.d.mts
CHANGED
|
@@ -55,6 +55,7 @@ import { Tooltip as Tooltip$1 } from "@ark-ui/react/tooltip";
|
|
|
55
55
|
import { Tour as Tour$1, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails, useTour } from "@ark-ui/react/tour";
|
|
56
56
|
import { TreeView as TreeView$1, TreeViewCheckedChangeDetails, TreeViewExpandedChangeDetails, TreeViewFocusChangeDetails, TreeViewSelectionChangeDetails } from "@ark-ui/react/tree-view";
|
|
57
57
|
import { JSONSchema7, JSONSchema7 as JSONSchema7$1 } from "json-schema";
|
|
58
|
+
export * from "@bysages/core";
|
|
58
59
|
//#endregion
|
|
59
60
|
//#region src/components/accordion/index.d.ts
|
|
60
61
|
/** Ark's Accordion, dressed in the paper-and-ink system: a ruled sheet
|
|
@@ -13219,12 +13220,15 @@ export declare function Reasoning({ label, children, ...rest }: ReasoningProps):
|
|
|
13219
13220
|
* output folded inside. */
|
|
13220
13221
|
export interface ToolProps extends HTMLAttributes<HTMLDivElement> {
|
|
13221
13222
|
name: string;
|
|
13223
|
+
/** Friendlier trigger words than the raw tool name (a `label` slot
|
|
13224
|
+
* in the Vue/Svelte wrappers). */
|
|
13225
|
+
label?: ReactNode;
|
|
13222
13226
|
status?: ToolStatus;
|
|
13223
13227
|
defaultOpen?: boolean;
|
|
13224
13228
|
input?: ReactNode;
|
|
13225
13229
|
output?: ReactNode;
|
|
13226
13230
|
}
|
|
13227
|
-
export declare function Tool({ name, status, input, output, ...rest }: ToolProps): import("react").JSX.Element;
|
|
13231
|
+
export declare function Tool({ name, label, status, input, output, ...rest }: ToolProps): import("react").JSX.Element;
|
|
13228
13232
|
/** One place the ink came from; href and the rest ride the anchor. */
|
|
13229
13233
|
export interface SourceProps extends HTMLAttributes<HTMLAnchorElement> {
|
|
13230
13234
|
href: string;
|