@melony/ui-kit 0.1.16 → 0.1.18
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/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as UIContract, k as UINode } from './types-
|
|
2
|
-
export { a as UIAlign, e as UIColor, l as UIEvent, b as UIJustify, d as UIOrientation, i as UIRadius, h as UIShadow, U as UISize, f as UISpacing, g as UIWidth, c as UIWrap } from './types-
|
|
1
|
+
import { j as UIContract, k as UINode } from './types-84_EO6uZ.js';
|
|
2
|
+
export { a as UIAlign, e as UIColor, l as UIEvent, b as UIJustify, d as UIOrientation, i as UIRadius, h as UIShadow, U as UISize, f as UISpacing, g as UIWidth, c as UIWrap } from './types-84_EO6uZ.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import React, { ReactNode } from 'react';
|
|
5
5
|
import 'melony';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ui } from './server.js';
|
|
2
|
-
export { a as UIAlign, e as UIColor, j as UIContract, l as UIEvent, b as UIJustify, k as UINode, d as UIOrientation, i as UIRadius, h as UIShadow, U as UISize, f as UISpacing, g as UIWidth, c as UIWrap } from './types-
|
|
2
|
+
export { a as UIAlign, e as UIColor, j as UIContract, l as UIEvent, b as UIJustify, k as UINode, d as UIOrientation, i as UIRadius, h as UIShadow, U as UISize, f as UISpacing, g as UIWidth, c as UIWrap } from './types-84_EO6uZ.js';
|
|
3
3
|
export { MelonyComponents, MelonyRenderer, MelonyRendererProps, MelonyUIContextValue, MelonyUIProvider, MelonyUIProviderProps, useMelonyUI } from './client.js';
|
|
4
4
|
import 'melony';
|
|
5
5
|
import 'react/jsx-runtime';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as UIContract, k as UINode, l as UIEvent } from './types-
|
|
2
|
-
export { a as UIAlign, e as UIColor, b as UIJustify, d as UIOrientation, i as UIRadius, h as UIShadow, U as UISize, f as UISpacing, g as UIWidth, c as UIWrap } from './types-
|
|
1
|
+
import { j as UIContract, k as UINode, l as UIEvent } from './types-84_EO6uZ.js';
|
|
2
|
+
export { a as UIAlign, e as UIColor, b as UIJustify, d as UIOrientation, i as UIRadius, h as UIShadow, U as UISize, f as UISpacing, g as UIWidth, c as UIWrap } from './types-84_EO6uZ.js';
|
|
3
3
|
import 'melony';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -224,6 +224,73 @@ interface UIContract {
|
|
|
224
224
|
offsetY?: UISpacing;
|
|
225
225
|
showOnHover?: boolean;
|
|
226
226
|
};
|
|
227
|
+
streamingText: {
|
|
228
|
+
id: string;
|
|
229
|
+
size?: UISpacing;
|
|
230
|
+
weight?: "normal" | "medium" | "semibold" | "bold";
|
|
231
|
+
color?: UIColor;
|
|
232
|
+
align?: UIAlign;
|
|
233
|
+
className?: string;
|
|
234
|
+
markdown?: boolean;
|
|
235
|
+
};
|
|
236
|
+
badge: {
|
|
237
|
+
label: string;
|
|
238
|
+
variant?: "primary" | "secondary" | "danger" | "success" | "warning" | "outline";
|
|
239
|
+
size?: UISize;
|
|
240
|
+
};
|
|
241
|
+
card: {
|
|
242
|
+
title?: string;
|
|
243
|
+
subtitle?: string;
|
|
244
|
+
background?: UIColor;
|
|
245
|
+
padding?: UISpacing;
|
|
246
|
+
radius?: UIRadius;
|
|
247
|
+
shadow?: UIShadow;
|
|
248
|
+
};
|
|
249
|
+
chart: {
|
|
250
|
+
data: Array<{
|
|
251
|
+
label: string;
|
|
252
|
+
value: number;
|
|
253
|
+
color?: string;
|
|
254
|
+
}>;
|
|
255
|
+
chartType?: "bar" | "line";
|
|
256
|
+
title?: string;
|
|
257
|
+
height?: number;
|
|
258
|
+
showValues?: boolean;
|
|
259
|
+
showGrid?: boolean;
|
|
260
|
+
showTooltips?: boolean;
|
|
261
|
+
};
|
|
262
|
+
dropdown: {
|
|
263
|
+
items?: Array<{
|
|
264
|
+
label: string;
|
|
265
|
+
icon?: string;
|
|
266
|
+
onClickAction?: Event;
|
|
267
|
+
}>;
|
|
268
|
+
};
|
|
269
|
+
list: {
|
|
270
|
+
padding?: UISpacing;
|
|
271
|
+
gap?: UISpacing;
|
|
272
|
+
width?: UIWidth;
|
|
273
|
+
};
|
|
274
|
+
listItem: {
|
|
275
|
+
onClickAction?: Event;
|
|
276
|
+
gap?: UISpacing;
|
|
277
|
+
padding?: UISpacing;
|
|
278
|
+
background?: UIColor;
|
|
279
|
+
radius?: UIRadius;
|
|
280
|
+
align?: UIAlign;
|
|
281
|
+
truncate?: boolean;
|
|
282
|
+
};
|
|
283
|
+
thread: {
|
|
284
|
+
placeholder?: string;
|
|
285
|
+
messages?: Array<{
|
|
286
|
+
role: string;
|
|
287
|
+
content: any[];
|
|
288
|
+
runId?: string;
|
|
289
|
+
threadId?: string;
|
|
290
|
+
}>;
|
|
291
|
+
autoFocus?: boolean;
|
|
292
|
+
children?: any;
|
|
293
|
+
};
|
|
227
294
|
}
|
|
228
295
|
type UINode<T extends keyof UIContract = keyof UIContract> = {
|
|
229
296
|
type: T;
|