@viewstem/ui 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.ko.md +47 -0
- package/README.md +60 -2
- package/dist/BASECOAT-LICENSE.md +21 -0
- package/dist/basecoat-contracts.d.ts +2 -0
- package/dist/basecoat-contracts.js +358 -0
- package/dist/basecoat-controllers.js +1612 -0
- package/dist/behaviors.d.ts +29 -0
- package/dist/behaviors.js +1475 -0
- package/dist/browser.d.ts +2 -0
- package/dist/browser.js +2 -0
- package/dist/catalog-meta.d.ts +26 -0
- package/dist/catalog-meta.js +130 -0
- package/dist/component-context.d.ts +7 -0
- package/dist/component-context.js +10 -0
- package/dist/components.d.ts +2 -0
- package/dist/components.js +536 -0
- package/dist/data-table.d.ts +2 -0
- package/dist/data-table.js +260 -0
- package/dist/date-calendar.d.ts +4 -0
- package/dist/date-calendar.js +512 -0
- package/dist/dynamic-catalog.d.ts +2 -0
- package/dist/dynamic-catalog.js +118 -0
- package/dist/form-scroll-families.d.ts +7 -0
- package/dist/form-scroll-families.js +895 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -0
- package/dist/markup-families.d.ts +10 -0
- package/dist/markup-families.js +492 -0
- package/dist/menus.d.ts +8 -0
- package/dist/menus.js +427 -0
- package/dist/shadcn.d.ts +13 -0
- package/dist/shadcn.js +8 -0
- package/dist/slider-values.d.ts +9 -0
- package/dist/slider-values.js +43 -0
- package/dist/slider.d.ts +2 -0
- package/dist/slider.js +148 -0
- package/dist/static-catalog.d.ts +2 -0
- package/dist/static-catalog.js +87 -0
- package/dist/style-scope.d.ts +2 -0
- package/dist/style-scope.js +3 -0
- package/dist/styles.css +9573 -0
- package/dist/styles.css.d.ts +1 -0
- package/dist/support.json +1 -0
- package/dist/widget-families.d.ts +6 -0
- package/dist/widget-families.js +739 -0
- package/package.json +59 -4
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { NodeSnapshot } from '@viewstem/core';
|
|
2
|
+
type Widget = HTMLElement & {
|
|
3
|
+
_destroy?: () => void;
|
|
4
|
+
refresh?: () => void;
|
|
5
|
+
select?: (target: HTMLElement, focus?: boolean) => void;
|
|
6
|
+
close?: (focus: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
type Props = NodeSnapshot['inputs'];
|
|
9
|
+
export type Send = (event: string, payload: unknown) => void;
|
|
10
|
+
export type Behavior = {
|
|
11
|
+
sync(inputs: Props): void;
|
|
12
|
+
dispose?(): void;
|
|
13
|
+
};
|
|
14
|
+
export declare const uniqueId: () => string;
|
|
15
|
+
export declare function tooltip(element: HTMLElement, send: Send, signal: AbortSignal): Behavior;
|
|
16
|
+
export declare function modal(element: HTMLElement, send: Send, signal: AbortSignal): Behavior;
|
|
17
|
+
export declare function disclosure(element: HTMLElement, name: string, send: Send, signal: AbortSignal): Behavior;
|
|
18
|
+
export declare function tabs(element: Widget, send: Send, signal: AbortSignal): Behavior;
|
|
19
|
+
export declare function popover(element: HTMLElement, send: Send, signal: AbortSignal): Behavior;
|
|
20
|
+
export declare function select(element: Widget, send: Send, signal: AbortSignal): Behavior;
|
|
21
|
+
export declare function combobox(element: Widget, send: Send, signal: AbortSignal): Behavior;
|
|
22
|
+
export declare function command(element: Widget, send: Send, signal: AbortSignal): Behavior;
|
|
23
|
+
export declare function commandDialog(dialog: HTMLDialogElement, host: HTMLElement, send: Send, signal: AbortSignal): Behavior;
|
|
24
|
+
export declare function range(element: HTMLInputElement, send: Send, signal: AbortSignal): Behavior;
|
|
25
|
+
export declare function group(element: HTMLElement, name: string, send: Send, signal: AbortSignal): Behavior;
|
|
26
|
+
export declare function notifications(element: HTMLElement, send: Send): Behavior;
|
|
27
|
+
export declare function scopeChartColor(color: string): string;
|
|
28
|
+
export declare function chart(element: HTMLElement): Behavior;
|
|
29
|
+
export {};
|