@seip/blue-bird-css 0.1.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/LICENSE +21 -0
- package/README.md +930 -0
- package/dist/bluebird.css +10196 -0
- package/dist/bluebird.d.ts +78 -0
- package/dist/bluebird.esm.js +1321 -0
- package/dist/bluebird.html-data.json +4465 -0
- package/dist/bluebird.js +1306 -0
- package/dist/bluebird.min.css +2 -0
- package/dist/bluebird.min.js +2 -0
- package/package.json +85 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blue Bird CSS Framework — TypeScript Definitions
|
|
3
|
+
* Package: @seip/blue-bird
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface ToastOptions {
|
|
7
|
+
message: string;
|
|
8
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
9
|
+
duration?: number;
|
|
10
|
+
dismissible?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface SnackbarOptions {
|
|
14
|
+
message: string;
|
|
15
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
16
|
+
duration?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface CarouselOptions {
|
|
20
|
+
autoplay?: boolean;
|
|
21
|
+
interval?: number;
|
|
22
|
+
loop?: boolean;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface DataTableColumn {
|
|
26
|
+
key: string;
|
|
27
|
+
label: string;
|
|
28
|
+
sortable?: boolean;
|
|
29
|
+
render?: (value: any, row: any) => string | HTMLElement;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface DataTableOptions {
|
|
33
|
+
data: any[];
|
|
34
|
+
columns: DataTableColumn[];
|
|
35
|
+
pagination?: boolean;
|
|
36
|
+
pageSize?: number;
|
|
37
|
+
searchable?: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export declare class ResponsiveDataTable {
|
|
41
|
+
constructor(container: HTMLElement | string, options: DataTableOptions);
|
|
42
|
+
updateData(newData: any[]): void;
|
|
43
|
+
updateColumns(newColumns: DataTableColumn[]): void;
|
|
44
|
+
updateTable(): void;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare function toast(options: ToastOptions | string): HTMLElement;
|
|
48
|
+
export declare function snackbar(options: SnackbarOptions | string): HTMLElement;
|
|
49
|
+
export declare function dismissToast(toastEl: HTMLElement): void;
|
|
50
|
+
export declare function initMobileDrawer(): void;
|
|
51
|
+
export declare function initSingleCarousel(carousel: HTMLElement, opts?: CarouselOptions): void;
|
|
52
|
+
export declare function getUrlParameter(name: string): string | null;
|
|
53
|
+
export declare function lang(l?: string): void;
|
|
54
|
+
export declare function bluebird(component: string | object, options?: Record<string, any>): any;
|
|
55
|
+
|
|
56
|
+
export declare const Http: {
|
|
57
|
+
get(url: string, headers?: Record<string, string>): Promise<any>;
|
|
58
|
+
post(url: string, data?: any, headers?: Record<string, string>): Promise<any>;
|
|
59
|
+
put(url: string, data?: any, headers?: Record<string, string>): Promise<any>;
|
|
60
|
+
delete(url: string, headers?: Record<string, string>): Promise<any>;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
declare global {
|
|
64
|
+
interface Window {
|
|
65
|
+
bluebird: typeof bluebird;
|
|
66
|
+
toast: typeof toast;
|
|
67
|
+
snackbar: typeof snackbar;
|
|
68
|
+
dismissToast: typeof dismissToast;
|
|
69
|
+
initMobileDrawer: typeof initMobileDrawer;
|
|
70
|
+
initSingleCarousel: typeof initSingleCarousel;
|
|
71
|
+
ResponsiveDataTable: typeof ResponsiveDataTable;
|
|
72
|
+
Http: typeof Http;
|
|
73
|
+
getUrlParameter: typeof getUrlParameter;
|
|
74
|
+
lang: typeof lang;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export default bluebird;
|