@airplane/views
Version:
A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.
39 lines (38 loc) • 1.28 kB
TypeScript
import { CellType } from "./Cell";
import { Column } from "./Table.types";
export type SimpleUser = {
userID: string;
username: string;
};
export declare const SIMPLE_USER_COLUMNS: Column<SimpleUser>[];
export declare const EDITABLE_COLUMNS: Column<User>[];
export declare const WRAPPED_COLUMNS: Column<User>[];
export declare const createRandomSimpleUser: () => SimpleUser;
export declare const createRandomSimpleUsers: (count: number) => SimpleUser[];
export type User = {
userID: string;
username: string;
email: string;
address: string;
password: string;
birthdate: string;
registeredAt: string;
age: number;
json: string;
isCool: boolean;
mood: "happy" | "sad" | "frustrated";
link: string;
};
export declare const USER_COLUMNS: Column<User>[];
export declare const createRandomUser: () => User;
export declare const createRandomUsers: (count: number) => User[];
export type Product = {
name: string;
dept: string;
price: string;
desc: string;
};
export declare const createRandomProduct: () => Product;
export declare const createRandomProducts: (count: number) => Product[];
export declare const PRODUCT_COLUMNS: Column<Product>[];
export declare const NULL_DATA_COLUMNS: Record<CellType, Column>;