@tempots/beatui 1.7.5 → 1.9.0
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/dist/{ar-Wr6gMs-M.cjs → ar-CEzAem0F.cjs} +1 -1
- package/dist/{ar-fdUqbCvM.js → ar-CQieaqsq.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/auth-divider-B8yr-E_b.cjs +1 -0
- package/dist/{auth-divider-D9KnNeyF.js → auth-divider-Byh5BWLc.js} +91 -88
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +27 -26
- package/dist/card-BkA7Wvbh.cjs +1 -0
- package/dist/card-DX1DwGbL.js +62 -0
- package/dist/{colors-C2sgnzFH.js → colors-CyMhfbJi.js} +64 -58
- package/dist/{colors-DPCHjRMj.cjs → colors-IXZF9U-s.cjs} +1 -1
- package/dist/control-hqEuMzyI.js +343 -0
- package/dist/control-muup9GF1.cjs +1 -0
- package/dist/custom-validation-BA9iJWl_.cjs +1 -0
- package/dist/custom-validation-BOBoUwHY.js +181 -0
- package/dist/{de-C5-k5Eov.js → de-CBIwvkAH.js} +1 -1
- package/dist/{de-DZqdSEta.cjs → de-DdfxrlT3.cjs} +1 -1
- package/dist/deep-merge-8fwp1z4X.js +1346 -0
- package/dist/deep-merge-VDGE_HQD.cjs +1 -0
- package/dist/duration-input-DmsljXl3.cjs +1 -0
- package/dist/{duration-input-D4V_PHIg.js → duration-input-ZQlcqdXU.js} +32 -31
- package/dist/{editor-toolbar-group-FpOHrmtx.js → editor-toolbar-group-BNTBMJCe.js} +2 -2
- package/dist/{editor-toolbar-group-C_ft_T8D.cjs → editor-toolbar-group-DiMzqYgz.cjs} +1 -1
- package/dist/{es-h6jmoF4X.js → es--9HaEj2D.js} +1 -1
- package/dist/{es-CJgYfRap.cjs → es-DSdljxFJ.cjs} +1 -1
- package/dist/{fa-BuxK837l.js → fa-1Z-akcW7.js} +1 -1
- package/dist/{fa-BQ5PzwNY.cjs → fa-BolmeWRT.cjs} +1 -1
- package/dist/flyout-CuKFh_T7.js +151 -0
- package/dist/flyout-DC_tKaTG.cjs +1 -0
- package/dist/{fr-Bv3TG44U.cjs → fr-CODgUuoZ.cjs} +1 -1
- package/dist/{fr-BwILQ9G2.js → fr-DhHM9rou.js} +1 -1
- package/dist/{he-yC9Sc7JD.js → he-CBamXbGJ.js} +1 -1
- package/dist/{he-5LbvgMCC.cjs → he-Juw-dr28.cjs} +1 -1
- package/dist/{hi-Da7rcCpP.js → hi-DvvcX-Ra.js} +1 -1
- package/dist/{hi-YWhWcG_L.cjs → hi-R749jeg-.cjs} +1 -1
- package/dist/{index-CvU9E9wd.js → index-BfQaT5Jy.js} +104 -104
- package/dist/{index-XogEKwdt.cjs → index-Dv7nPuwA.cjs} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +6713 -9831
- package/dist/{input-container-CyOgiiQD.cjs → input-container-BaWQLWB6.cjs} +1 -1
- package/dist/{input-container-8JFB11xN.js → input-container-DCS5oJ4S.js} +4 -4
- package/dist/{it-BxOIJE45.cjs → it-DT5oRZDH.cjs} +1 -1
- package/dist/{it-Yeklau78.js → it-aV6i8Qxz.js} +1 -1
- package/dist/{ja-Dxj9Q5Yd.js → ja-CuLhGnJX.js} +1 -1
- package/dist/{ja-CNhjK06P.cjs → ja-CwKaCYLB.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +83 -79
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +2 -2
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +74 -72
- package/dist/{ko-DgkqcXTs.cjs → ko-Bucro9ID.cjs} +1 -1
- package/dist/{ko-gn_MsegK.js → ko-D-66BsEX.js} +1 -1
- package/dist/lexical/index.cjs.js +1 -1
- package/dist/lexical/index.es.js +5 -5
- package/dist/menu-BFLFKceF.cjs +1 -0
- package/dist/menu-BO6zqyfq.js +220 -0
- package/dist/modal-6Mq3vS5r.js +309 -0
- package/dist/modal-d77-TMc4.cjs +1 -0
- package/dist/{nl-vHNFtXXb.js → nl-CAny6wvm.js} +1 -1
- package/dist/{nl-Dy9lmbBO.cjs → nl-D7vHpehb.cjs} +1 -1
- package/dist/notice-BNGx86Yg.js +110 -0
- package/dist/notice-iF6zBMq9.cjs +1 -0
- package/dist/{oneof-branch-detection-Q_jxvJIA.js → oneof-branch-detection-Bm17RhC2.js} +27 -26
- package/dist/oneof-branch-detection-DZ4MrfBp.cjs +1 -0
- package/dist/openui/index.cjs.js +9 -0
- package/dist/openui/index.es.js +2174 -0
- package/dist/password-input-Bipt7Wsu.cjs +1 -0
- package/dist/password-input-mkRmrEPq.js +105 -0
- package/dist/{pl-BtYbtsmG.cjs → pl-CSiXoOKT.cjs} +1 -1
- package/dist/{pl-C0UdHla0.js → pl-rmZLgQ_V.js} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +4 -4
- package/dist/{pt-CtNmqQ1X.cjs → pt-CJT-iq4y.cjs} +1 -1
- package/dist/{pt-DGKtfN0d.js → pt-DHnajqAi.js} +1 -1
- package/dist/{ru-CpXYLt-v.js → ru-C_E8OZNE.js} +1 -1
- package/dist/{ru-BaL_NPRU.cjs → ru-G3sr_ctV.cjs} +1 -1
- package/dist/slider-input-SLguFA0d.cjs +1 -0
- package/dist/slider-input-VYAMm7pE.js +285 -0
- package/dist/stepper-24p16Zsv.cjs +1 -0
- package/dist/stepper-TlzbfYWa.js +3222 -0
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +38 -40
- package/dist/tailwind/vite-plugin.cjs.js +14 -12
- package/dist/tailwind/vite-plugin.es.js +317 -246
- package/dist/text-area-BdemKQ_w.cjs +1 -0
- package/dist/text-area-Br83-_PQ.js +431 -0
- package/dist/{text-input-NJypZSnE.js → text-input-ByuxdX8w.js} +5 -5
- package/dist/{text-input-DS5zlXb2.cjs → text-input-MjlUC_9u.cjs} +1 -1
- package/dist/{toolbar-BF2L6WKC.js → toolbar-CEBTTjHh.js} +1 -1
- package/dist/{toolbar-BBwfe8U9.cjs → toolbar-DWawYFFX.cjs} +1 -1
- package/dist/{tr-DwOd87oB.cjs → tr-DcxLHHTC.cjs} +1 -1
- package/dist/{tr-DIFZDFW_.js → tr-bVXwloKC.js} +1 -1
- package/dist/{translations-EwEmHe3v.cjs → translations-D3xqZUTA.cjs} +1 -1
- package/dist/{translations-BCMP-h52.js → translations-DU9wTV1y.js} +20 -19
- package/dist/{translations-5cXBrENb.js → translations-RT_UN8ny.js} +1 -1
- package/dist/{translations-BqWc0ZHz.cjs → translations-qljG2Chq.cjs} +1 -1
- package/dist/types/components/navigation/stepper.d.ts +4 -4
- package/dist/types/openui/index.d.ts +28 -0
- package/dist/types/openui/library/define-component.d.ts +15 -0
- package/dist/types/openui/library/library.d.ts +7 -0
- package/dist/types/openui/library/prompt-generator.d.ts +5 -0
- package/dist/types/openui/library/types.d.ts +33 -0
- package/dist/types/openui/parser/parser.d.ts +8 -0
- package/dist/types/openui/parser/streaming-parser.d.ts +14 -0
- package/dist/types/openui/parser/tokenizer.d.ts +9 -0
- package/dist/types/openui/parser/types.d.ts +46 -0
- package/dist/types/openui/registry/button.d.ts +148 -0
- package/dist/types/openui/registry/data.d.ts +177 -0
- package/dist/types/openui/registry/form.d.ts +65 -0
- package/dist/types/openui/registry/format.d.ts +67 -0
- package/dist/types/openui/registry/index.d.ts +9 -0
- package/dist/types/openui/registry/layout.d.ts +45 -0
- package/dist/types/openui/registry/navigation.d.ts +149 -0
- package/dist/types/openui/registry/overlay.d.ts +56 -0
- package/dist/types/openui/registry/typography.d.ts +17 -0
- package/dist/types/openui/renderer/action-context.d.ts +24 -0
- package/dist/types/openui/renderer/node-resolver.d.ts +9 -0
- package/dist/types/openui/renderer/openui-renderer.d.ts +32 -0
- package/dist/types/openui/renderer/skeleton.d.ts +2 -0
- package/dist/types/openui/streaming/from-fetch.d.ts +7 -0
- package/dist/types/openui/streaming/from-sse.d.ts +7 -0
- package/dist/types/openui/streaming/from-websocket.d.ts +10 -0
- package/dist/types/openui/streaming/types.d.ts +5 -0
- package/dist/types/tailwind/preset.d.ts +25 -4
- package/dist/types/tailwind/vite-plugin.d.ts +17 -5
- package/dist/types/tokens/colors.d.ts +87 -9
- package/dist/types/tokens/index.d.ts +7 -6
- package/dist/{ur-DBst-TXc.js → ur-Dls2qb4V.js} +1 -1
- package/dist/{ur-D9nLchps.cjs → ur-IRQoHh1E.cjs} +1 -1
- package/dist/use-form-BZ8vDYOv.cjs +2 -0
- package/dist/use-form-DsCzINfm.js +750 -0
- package/dist/utils-D3-NApSw.cjs +1 -0
- package/dist/utils-Nbh7yQ73.js +105 -0
- package/dist/{vi-Dg1aiMr5.cjs → vi-Bi9SvVCP.cjs} +1 -1
- package/dist/{vi-DQOJp32U.js → vi-C3mTzj50.js} +1 -1
- package/dist/widget-customization-BV6XB2v_.cjs +1 -0
- package/dist/widget-customization-Bso45ONQ.js +1198 -0
- package/dist/{zh-DPK4HXl2.js → zh-B4JRJBt2.js} +1 -1
- package/dist/{zh-tbwSTbmn.cjs → zh-BMU5rYu1.cjs} +1 -1
- package/package.json +31 -20
- package/dist/auth-divider-CjcrgXmq.cjs +0 -1
- package/dist/custom-validation-7por5nJN.js +0 -488
- package/dist/custom-validation-CLscGHY4.cjs +0 -1
- package/dist/deep-merge-D90SW1Ci.cjs +0 -1
- package/dist/deep-merge-DT2H9AGq.js +0 -1765
- package/dist/duration-input-4AQnQpyo.cjs +0 -1
- package/dist/menu-B60Q9j3-.cjs +0 -1
- package/dist/menu-BkqFGcXg.js +0 -366
- package/dist/notice-CQGJyZ8o.js +0 -211
- package/dist/notice-p2IqXS5-.cjs +0 -1
- package/dist/oneof-branch-detection-xDDDdYRk.cjs +0 -1
- package/dist/use-form-8NnZ-KHk.js +0 -1090
- package/dist/use-form-Dcra7GeE.cjs +0 -2
- package/dist/utils-DmEuG3Np.cjs +0 -1
- package/dist/utils-vUtP6iPG.js +0 -165
- package/dist/widget-customization-BIBva3f-.js +0 -1458
- package/dist/widget-customization-pqmtsraC.cjs +0 -1
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const dataComponents: (import("..").DefinedComponent<z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
value: z.ZodString;
|
|
5
|
+
trend: z.ZodOptional<z.ZodString>;
|
|
6
|
+
trendDirection: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
up: "up";
|
|
8
|
+
down: "down";
|
|
9
|
+
flat: "flat";
|
|
10
|
+
}>>;
|
|
11
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
default: "default";
|
|
13
|
+
elevated: "elevated";
|
|
14
|
+
outlined: "outlined";
|
|
15
|
+
}>>;
|
|
16
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
sm: "sm";
|
|
18
|
+
md: "md";
|
|
19
|
+
lg: "lg";
|
|
20
|
+
xl: "xl";
|
|
21
|
+
xs: "xs";
|
|
22
|
+
}>>;
|
|
23
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
base: "base";
|
|
25
|
+
primary: "primary";
|
|
26
|
+
secondary: "secondary";
|
|
27
|
+
success: "success";
|
|
28
|
+
warning: "warning";
|
|
29
|
+
danger: "danger";
|
|
30
|
+
info: "info";
|
|
31
|
+
neutral: "neutral";
|
|
32
|
+
}>>;
|
|
33
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
34
|
+
label: z.ZodString;
|
|
35
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
sm: "sm";
|
|
37
|
+
md: "md";
|
|
38
|
+
lg: "lg";
|
|
39
|
+
xl: "xl";
|
|
40
|
+
xs: "xs";
|
|
41
|
+
}>>;
|
|
42
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
43
|
+
name: z.ZodOptional<z.ZodString>;
|
|
44
|
+
src: z.ZodOptional<z.ZodString>;
|
|
45
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
46
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
sm: "sm";
|
|
48
|
+
md: "md";
|
|
49
|
+
lg: "lg";
|
|
50
|
+
xl: "xl";
|
|
51
|
+
"2xl": "2xl";
|
|
52
|
+
xs: "xs";
|
|
53
|
+
}>>;
|
|
54
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
circle: "circle";
|
|
56
|
+
square: "square";
|
|
57
|
+
}>>;
|
|
58
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
59
|
+
base: "base";
|
|
60
|
+
primary: "primary";
|
|
61
|
+
secondary: "secondary";
|
|
62
|
+
success: "success";
|
|
63
|
+
warning: "warning";
|
|
64
|
+
danger: "danger";
|
|
65
|
+
info: "info";
|
|
66
|
+
neutral: "neutral";
|
|
67
|
+
}>>;
|
|
68
|
+
bordered: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
70
|
+
names: z.ZodArray<z.ZodString>;
|
|
71
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
sm: "sm";
|
|
73
|
+
md: "md";
|
|
74
|
+
lg: "lg";
|
|
75
|
+
xl: "xl";
|
|
76
|
+
"2xl": "2xl";
|
|
77
|
+
xs: "xs";
|
|
78
|
+
}>>;
|
|
79
|
+
spacing: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
normal: "normal";
|
|
81
|
+
tight: "tight";
|
|
82
|
+
}>>;
|
|
83
|
+
overflow: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
85
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
sm: "sm";
|
|
88
|
+
md: "md";
|
|
89
|
+
lg: "lg";
|
|
90
|
+
}>>;
|
|
91
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
base: "base";
|
|
93
|
+
primary: "primary";
|
|
94
|
+
secondary: "secondary";
|
|
95
|
+
success: "success";
|
|
96
|
+
warning: "warning";
|
|
97
|
+
danger: "danger";
|
|
98
|
+
info: "info";
|
|
99
|
+
neutral: "neutral";
|
|
100
|
+
}>>;
|
|
101
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
showLabel: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
104
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
circle: "circle";
|
|
106
|
+
rect: "rect";
|
|
107
|
+
text: "text";
|
|
108
|
+
}>>;
|
|
109
|
+
width: z.ZodOptional<z.ZodString>;
|
|
110
|
+
height: z.ZodOptional<z.ZodString>;
|
|
111
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
animate: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
114
|
+
show: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
base: "base";
|
|
118
|
+
primary: "primary";
|
|
119
|
+
secondary: "secondary";
|
|
120
|
+
success: "success";
|
|
121
|
+
warning: "warning";
|
|
122
|
+
danger: "danger";
|
|
123
|
+
info: "info";
|
|
124
|
+
neutral: "neutral";
|
|
125
|
+
}>>;
|
|
126
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
"top-left": "top-left";
|
|
128
|
+
"top-right": "top-right";
|
|
129
|
+
"bottom-left": "bottom-left";
|
|
130
|
+
"bottom-right": "bottom-right";
|
|
131
|
+
}>>;
|
|
132
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
133
|
+
sm: "sm";
|
|
134
|
+
md: "md";
|
|
135
|
+
lg: "lg";
|
|
136
|
+
xl: "xl";
|
|
137
|
+
xs: "xs";
|
|
138
|
+
}>>;
|
|
139
|
+
children: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
140
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
141
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
action: z.ZodString;
|
|
144
|
+
actionColor: z.ZodString;
|
|
145
|
+
icon: z.ZodString;
|
|
146
|
+
target: z.ZodString;
|
|
147
|
+
targetIcon: z.ZodString;
|
|
148
|
+
actor: z.ZodObject<{
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
initials: z.ZodString;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
time: z.ZodString;
|
|
153
|
+
detail: z.ZodString;
|
|
154
|
+
restorable: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
}, z.core.$strip>>;
|
|
156
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
157
|
+
icon: z.ZodString;
|
|
158
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
159
|
+
sm: "sm";
|
|
160
|
+
md: "md";
|
|
161
|
+
lg: "lg";
|
|
162
|
+
xl: "xl";
|
|
163
|
+
"2xl": "2xl";
|
|
164
|
+
xs: "xs";
|
|
165
|
+
}>>;
|
|
166
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
167
|
+
base: "base";
|
|
168
|
+
primary: "primary";
|
|
169
|
+
secondary: "secondary";
|
|
170
|
+
success: "success";
|
|
171
|
+
warning: "warning";
|
|
172
|
+
danger: "danger";
|
|
173
|
+
info: "info";
|
|
174
|
+
neutral: "neutral";
|
|
175
|
+
}>>;
|
|
176
|
+
title: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>>)[];
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const formComponents: (import("..").DefinedComponent<z.ZodObject<{
|
|
3
|
+
checked: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
5
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
sm: "sm";
|
|
8
|
+
md: "md";
|
|
9
|
+
lg: "lg";
|
|
10
|
+
xl: "xl";
|
|
11
|
+
xs: "xs";
|
|
12
|
+
}>>;
|
|
13
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
14
|
+
value: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
sm: "sm";
|
|
18
|
+
md: "md";
|
|
19
|
+
lg: "lg";
|
|
20
|
+
xl: "xl";
|
|
21
|
+
xs: "xs";
|
|
22
|
+
}>>;
|
|
23
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
base: "base";
|
|
25
|
+
primary: "primary";
|
|
26
|
+
secondary: "secondary";
|
|
27
|
+
success: "success";
|
|
28
|
+
warning: "warning";
|
|
29
|
+
danger: "danger";
|
|
30
|
+
info: "info";
|
|
31
|
+
neutral: "neutral";
|
|
32
|
+
}>>;
|
|
33
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
34
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
sm: "sm";
|
|
39
|
+
md: "md";
|
|
40
|
+
lg: "lg";
|
|
41
|
+
xl: "xl";
|
|
42
|
+
xs: "xs";
|
|
43
|
+
}>>;
|
|
44
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
45
|
+
value: z.ZodOptional<z.ZodString>;
|
|
46
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
sm: "sm";
|
|
49
|
+
md: "md";
|
|
50
|
+
lg: "lg";
|
|
51
|
+
xl: "xl";
|
|
52
|
+
xs: "xs";
|
|
53
|
+
}>>;
|
|
54
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
55
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
57
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
59
|
+
sm: "sm";
|
|
60
|
+
md: "md";
|
|
61
|
+
lg: "lg";
|
|
62
|
+
xl: "xl";
|
|
63
|
+
xs: "xs";
|
|
64
|
+
}>>;
|
|
65
|
+
}, z.core.$strip>>)[];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const formatComponents: (import("..").DefinedComponent<z.ZodObject<{
|
|
3
|
+
value: z.ZodNumber;
|
|
4
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
5
|
+
decimal: "decimal";
|
|
6
|
+
percent: "percent";
|
|
7
|
+
currency: "currency";
|
|
8
|
+
unit: "unit";
|
|
9
|
+
}>>;
|
|
10
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
11
|
+
notation: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
standard: "standard";
|
|
13
|
+
compact: "compact";
|
|
14
|
+
scientific: "scientific";
|
|
15
|
+
engineering: "engineering";
|
|
16
|
+
}>>;
|
|
17
|
+
minimumFractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
maximumFractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
21
|
+
value: z.ZodString;
|
|
22
|
+
dateStyle: z.ZodOptional<z.ZodEnum<{
|
|
23
|
+
short: "short";
|
|
24
|
+
long: "long";
|
|
25
|
+
medium: "medium";
|
|
26
|
+
full: "full";
|
|
27
|
+
}>>;
|
|
28
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
29
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
31
|
+
value: z.ZodString;
|
|
32
|
+
timeStyle: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
short: "short";
|
|
34
|
+
long: "long";
|
|
35
|
+
medium: "medium";
|
|
36
|
+
full: "full";
|
|
37
|
+
}>>;
|
|
38
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
39
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
40
|
+
hour12: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
42
|
+
value: z.ZodNumber;
|
|
43
|
+
unit: z.ZodEnum<{
|
|
44
|
+
year: "year";
|
|
45
|
+
month: "month";
|
|
46
|
+
day: "day";
|
|
47
|
+
hour: "hour";
|
|
48
|
+
minute: "minute";
|
|
49
|
+
second: "second";
|
|
50
|
+
quarter: "quarter";
|
|
51
|
+
week: "week";
|
|
52
|
+
}>;
|
|
53
|
+
numeric: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
auto: "auto";
|
|
55
|
+
always: "always";
|
|
56
|
+
}>>;
|
|
57
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
short: "short";
|
|
59
|
+
long: "long";
|
|
60
|
+
narrow: "narrow";
|
|
61
|
+
}>>;
|
|
62
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
64
|
+
value: z.ZodNumber;
|
|
65
|
+
decimalPlaces: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const beatuiLibrary: import("..").Library;
|
|
2
|
+
export { layoutComponents } from './layout';
|
|
3
|
+
export { buttonComponents } from './button';
|
|
4
|
+
export { dataComponents } from './data';
|
|
5
|
+
export { formComponents } from './form';
|
|
6
|
+
export { navigationComponents } from './navigation';
|
|
7
|
+
export { overlayComponents } from './overlay';
|
|
8
|
+
export { formatComponents } from './format';
|
|
9
|
+
export { typographyComponents } from './typography';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const layoutComponents: (import("..").DefinedComponent<z.ZodObject<{
|
|
3
|
+
children: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
4
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
5
|
+
orientation: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
horizontal: "horizontal";
|
|
7
|
+
vertical: "vertical";
|
|
8
|
+
}>>;
|
|
9
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
solid: "solid";
|
|
11
|
+
dashed: "dashed";
|
|
12
|
+
dotted: "dotted";
|
|
13
|
+
}>>;
|
|
14
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
strong: "strong";
|
|
16
|
+
default: "default";
|
|
17
|
+
subtle: "subtle";
|
|
18
|
+
}>>;
|
|
19
|
+
label: z.ZodOptional<z.ZodString>;
|
|
20
|
+
labelAlign: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
center: "center";
|
|
22
|
+
left: "left";
|
|
23
|
+
right: "right";
|
|
24
|
+
}>>;
|
|
25
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
26
|
+
items: z.ZodArray<z.ZodObject<{
|
|
27
|
+
key: z.ZodString;
|
|
28
|
+
header: z.ZodString;
|
|
29
|
+
body: z.ZodString;
|
|
30
|
+
defaultOpen: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
sm: "sm";
|
|
36
|
+
md: "md";
|
|
37
|
+
lg: "lg";
|
|
38
|
+
xl: "xl";
|
|
39
|
+
xs: "xs";
|
|
40
|
+
}>>;
|
|
41
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
default: "default";
|
|
43
|
+
separated: "separated";
|
|
44
|
+
}>>;
|
|
45
|
+
}, z.core.$strip>>)[];
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const navigationComponents: (import("..").DefinedComponent<z.ZodObject<{
|
|
3
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4
|
+
key: z.ZodString;
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
activeKey: z.ZodOptional<z.ZodString>;
|
|
10
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
sm: "sm";
|
|
12
|
+
md: "md";
|
|
13
|
+
lg: "lg";
|
|
14
|
+
xl: "xl";
|
|
15
|
+
xs: "xs";
|
|
16
|
+
}>>;
|
|
17
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
default: "default";
|
|
19
|
+
pill: "pill";
|
|
20
|
+
filled: "filled";
|
|
21
|
+
outline: "outline";
|
|
22
|
+
underline: "underline";
|
|
23
|
+
}>>;
|
|
24
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
base: "base";
|
|
26
|
+
primary: "primary";
|
|
27
|
+
secondary: "secondary";
|
|
28
|
+
success: "success";
|
|
29
|
+
warning: "warning";
|
|
30
|
+
danger: "danger";
|
|
31
|
+
info: "info";
|
|
32
|
+
neutral: "neutral";
|
|
33
|
+
}>>;
|
|
34
|
+
orientation: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
horizontal: "horizontal";
|
|
36
|
+
vertical: "vertical";
|
|
37
|
+
}>>;
|
|
38
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
39
|
+
items: z.ZodArray<z.ZodObject<{
|
|
40
|
+
label: z.ZodString;
|
|
41
|
+
href: z.ZodOptional<z.ZodString>;
|
|
42
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
43
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
separator: z.ZodOptional<z.ZodString>;
|
|
46
|
+
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
sm: "sm";
|
|
49
|
+
md: "md";
|
|
50
|
+
lg: "lg";
|
|
51
|
+
xl: "xl";
|
|
52
|
+
xs: "xs";
|
|
53
|
+
}>>;
|
|
54
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
55
|
+
currentPage: z.ZodNumber;
|
|
56
|
+
totalPages: z.ZodNumber;
|
|
57
|
+
siblings: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
showPrevNext: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
showFirstLast: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
61
|
+
sm: "sm";
|
|
62
|
+
md: "md";
|
|
63
|
+
lg: "lg";
|
|
64
|
+
xl: "xl";
|
|
65
|
+
xs: "xs";
|
|
66
|
+
}>>;
|
|
67
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
default: "default";
|
|
69
|
+
filled: "filled";
|
|
70
|
+
outline: "outline";
|
|
71
|
+
}>>;
|
|
72
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
base: "base";
|
|
74
|
+
primary: "primary";
|
|
75
|
+
secondary: "secondary";
|
|
76
|
+
success: "success";
|
|
77
|
+
warning: "warning";
|
|
78
|
+
danger: "danger";
|
|
79
|
+
info: "info";
|
|
80
|
+
neutral: "neutral";
|
|
81
|
+
}>>;
|
|
82
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
83
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
84
|
+
label: z.ZodString;
|
|
85
|
+
description: z.ZodOptional<z.ZodString>;
|
|
86
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
activeStep: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
orientation: z.ZodOptional<z.ZodEnum<{
|
|
90
|
+
horizontal: "horizontal";
|
|
91
|
+
vertical: "vertical";
|
|
92
|
+
}>>;
|
|
93
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
default: "default";
|
|
95
|
+
compact: "compact";
|
|
96
|
+
}>>;
|
|
97
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
98
|
+
sm: "sm";
|
|
99
|
+
md: "md";
|
|
100
|
+
lg: "lg";
|
|
101
|
+
xl: "xl";
|
|
102
|
+
xs: "xs";
|
|
103
|
+
}>>;
|
|
104
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
base: "base";
|
|
106
|
+
primary: "primary";
|
|
107
|
+
secondary: "secondary";
|
|
108
|
+
success: "success";
|
|
109
|
+
warning: "warning";
|
|
110
|
+
danger: "danger";
|
|
111
|
+
info: "info";
|
|
112
|
+
neutral: "neutral";
|
|
113
|
+
}>>;
|
|
114
|
+
showNavigation: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
116
|
+
items: z.ZodArray<z.ZodObject<{
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
label: z.ZodString;
|
|
119
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
120
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
121
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
122
|
+
id: z.ZodString;
|
|
123
|
+
label: z.ZodString;
|
|
124
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, z.core.$strip>>>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
selectedId: z.ZodOptional<z.ZodString>;
|
|
128
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
129
|
+
sm: "sm";
|
|
130
|
+
md: "md";
|
|
131
|
+
lg: "lg";
|
|
132
|
+
xl: "xl";
|
|
133
|
+
xs: "xs";
|
|
134
|
+
}>>;
|
|
135
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
136
|
+
backgroundMode: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
light: "light";
|
|
138
|
+
dark: "dark";
|
|
139
|
+
}>>;
|
|
140
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
141
|
+
label: z.ZodString;
|
|
142
|
+
links: z.ZodArray<z.ZodObject<{
|
|
143
|
+
label: z.ZodString;
|
|
144
|
+
href: z.ZodOptional<z.ZodString>;
|
|
145
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
146
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
}, z.core.$strip>>>;
|
|
149
|
+
}, z.core.$strip>>)[];
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const overlayComponents: (import("..").DefinedComponent<z.ZodObject<{
|
|
3
|
+
triggerLabel: z.ZodString;
|
|
4
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5
|
+
body: z.ZodString;
|
|
6
|
+
footerLabel: z.ZodOptional<z.ZodString>;
|
|
7
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
sm: "sm";
|
|
9
|
+
md: "md";
|
|
10
|
+
lg: "lg";
|
|
11
|
+
xl: "xl";
|
|
12
|
+
}>>;
|
|
13
|
+
dismissable: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
center: "center";
|
|
16
|
+
left: "left";
|
|
17
|
+
right: "right";
|
|
18
|
+
top: "top";
|
|
19
|
+
bottom: "bottom";
|
|
20
|
+
"top-start": "top-start";
|
|
21
|
+
"top-end": "top-end";
|
|
22
|
+
"bottom-start": "bottom-start";
|
|
23
|
+
"bottom-end": "bottom-end";
|
|
24
|
+
}>>;
|
|
25
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
26
|
+
triggerLabel: z.ZodString;
|
|
27
|
+
title: z.ZodOptional<z.ZodString>;
|
|
28
|
+
body: z.ZodString;
|
|
29
|
+
side: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
left: "left";
|
|
31
|
+
right: "right";
|
|
32
|
+
top: "top";
|
|
33
|
+
bottom: "bottom";
|
|
34
|
+
"inline-start": "inline-start";
|
|
35
|
+
"inline-end": "inline-end";
|
|
36
|
+
}>>;
|
|
37
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
sm: "sm";
|
|
39
|
+
md: "md";
|
|
40
|
+
lg: "lg";
|
|
41
|
+
xl: "xl";
|
|
42
|
+
}>>;
|
|
43
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
44
|
+
content: z.ZodString;
|
|
45
|
+
triggerLabel: z.ZodString;
|
|
46
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
left: "left";
|
|
48
|
+
right: "right";
|
|
49
|
+
top: "top";
|
|
50
|
+
bottom: "bottom";
|
|
51
|
+
"top-start": "top-start";
|
|
52
|
+
"top-end": "top-end";
|
|
53
|
+
"bottom-start": "bottom-start";
|
|
54
|
+
"bottom-end": "bottom-end";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>>)[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const typographyComponents: (import("..").DefinedComponent<z.ZodObject<{
|
|
3
|
+
key: z.ZodString;
|
|
4
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
5
|
+
sm: "sm";
|
|
6
|
+
md: "md";
|
|
7
|
+
xs: "xs";
|
|
8
|
+
}>>;
|
|
9
|
+
}, z.core.$strip>> | import("..").DefinedComponent<z.ZodObject<{
|
|
10
|
+
text: z.ZodString;
|
|
11
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
default: "default";
|
|
13
|
+
danger: "danger";
|
|
14
|
+
muted: "muted";
|
|
15
|
+
emphasis: "emphasis";
|
|
16
|
+
}>>;
|
|
17
|
+
}, z.core.$strip>>)[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Prop, type Provider } from '@tempots/dom';
|
|
2
|
+
export interface ButtonAction {
|
|
3
|
+
kind: 'button';
|
|
4
|
+
type: string;
|
|
5
|
+
params: Record<string, unknown>;
|
|
6
|
+
humanFriendlyMessage: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FormSubmitAction {
|
|
9
|
+
kind: 'form';
|
|
10
|
+
type: string;
|
|
11
|
+
formName: string;
|
|
12
|
+
formState: Record<string, unknown>;
|
|
13
|
+
humanFriendlyMessage: string;
|
|
14
|
+
}
|
|
15
|
+
export type ActionEvent = ButtonAction | FormSubmitAction;
|
|
16
|
+
export interface ActionContext {
|
|
17
|
+
onAction?: (event: ActionEvent) => void;
|
|
18
|
+
actions: Prop<ActionEvent[]>;
|
|
19
|
+
}
|
|
20
|
+
interface ActionContextOptions {
|
|
21
|
+
onAction?: (event: ActionEvent) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const ActionContextProvider: Provider<ActionContext, ActionContextOptions>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TNode } from '@tempots/dom';
|
|
2
|
+
import type { ASTNode, Statement } from '../parser/types';
|
|
3
|
+
import type { Library } from '../library/types';
|
|
4
|
+
/**
|
|
5
|
+
* Recursively resolve an ASTNode into a TNode.
|
|
6
|
+
* The optional `statements` map enables reference resolution —
|
|
7
|
+
* without it, references render as skeleton placeholders.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveNode(node: ASTNode, library: Library, debug?: boolean, statements?: ReadonlyMap<string, Statement>, onAction?: (event: Record<string, unknown>) => void): TNode;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Value } from '@tempots/dom';
|
|
2
|
+
import type { Renderable } from '@tempots/dom';
|
|
3
|
+
import type { ParseError } from '../parser/types';
|
|
4
|
+
import type { Library } from '../library/types';
|
|
5
|
+
import { type ActionEvent } from './action-context';
|
|
6
|
+
export interface OpenUIRendererOptions {
|
|
7
|
+
/** The component library to resolve against. */
|
|
8
|
+
library: Library;
|
|
9
|
+
/** The OpenUI Lang response text — can be static or a signal that updates as chunks stream in. */
|
|
10
|
+
response: Value<string>;
|
|
11
|
+
/** Whether the response is still streaming. */
|
|
12
|
+
isStreaming?: Value<boolean>;
|
|
13
|
+
/** Callback fired when a rendered component dispatches an action. */
|
|
14
|
+
onAction?: (event: ActionEvent) => void;
|
|
15
|
+
/** Callback fired when parse errors occur. */
|
|
16
|
+
onError?: (errors: ParseError[]) => void;
|
|
17
|
+
/** Callback fired when streaming ends (isStreaming transitions to false). */
|
|
18
|
+
onComplete?: () => void;
|
|
19
|
+
/** CSS class for the renderer's root container. */
|
|
20
|
+
className?: Value<string>;
|
|
21
|
+
/** When true, render warning notices for unknown components. */
|
|
22
|
+
debug?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Parses OpenUI Lang text and renders the result as live BeatUI components.
|
|
26
|
+
*
|
|
27
|
+
* Accepts both static strings and reactive signals. When `response` is a
|
|
28
|
+
* signal, the renderer re-parses and re-renders on each update using
|
|
29
|
+
* `WithCtx` + `renderWithContext` to preserve the full provider chain
|
|
30
|
+
* (Theme, Locale, BeatUII18n, etc.).
|
|
31
|
+
*/
|
|
32
|
+
export declare function OpenUIRenderer(options: OpenUIRendererOptions): Renderable;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Signal } from '@tempots/dom';
|
|
2
|
+
import { StreamOptions } from './types';
|
|
3
|
+
export declare function fromFetch(input: RequestInfo, init?: RequestInit, options?: StreamOptions): {
|
|
4
|
+
response: Signal<string>;
|
|
5
|
+
isStreaming: Signal<boolean>;
|
|
6
|
+
abort: () => void;
|
|
7
|
+
};
|