UNPKG

4.9 kBTypeScriptView Raw
1// Components interfaces
2import { Components as IoniconsComponents, JSX as IoniconsJSX } from 'ionicons';
3export * from './components';
4export * from './index';
5export * from './components/accordion-group/accordion-group-interface';
6export * from './components/alert/alert-interface';
7export * from './components/action-sheet/action-sheet-interface';
8export * from './components/breadcrumb/breadcrumb-interface';
9export * from './components/content/content-interface';
10export * from './components/checkbox/checkbox-interface';
11export * from './components/datetime/datetime-interface';
12export * from './components/infinite-scroll/infinite-scroll-interface';
13export * from './components/input/input-interface';
14export * from './components/item-sliding/item-sliding-interface';
15export * from './components/loading/loading-interface';
16export * from './components/menu/menu-interface';
17export * from './components/modal/modal-interface';
18export * from './components/nav/nav-interface';
19export * from './components/picker/picker-interface';
20export * from './components/popover/popover-interface';
21export * from './components/radio-group/radio-group-interface';
22export * from './components/range/range-interface';
23export * from './components/router/utils/interface';
24export * from './components/refresher/refresher-interface';
25export * from './components/reorder-group/reorder-group-interface';
26export * from './components/searchbar/searchbar-interface';
27export * from './components/segment/segment-interface';
28export * from './components/select/select-interface';
29export * from './components/select-popover/select-popover-interface';
30export * from './components/spinner/spinner-interface';
31export * from './components/tabs/tabs-interface';
32export * from './components/tab-bar/tab-bar-interface';
33export * from './components/textarea/textarea-interface';
34export * from './components/toast/toast-interface';
35export * from './components/toggle/toggle-interface';
36export * from './components/virtual-scroll/virtual-scroll-interface';
37
38// Types from utils
39export { Animation, AnimationBuilder, AnimationCallbackOptions, AnimationDirection, AnimationFill, AnimationKeyFrames, AnimationLifecycle } from './utils/animation/animation-interface';
40export * from './utils/overlays-interface';
41export * from './global/config';
42export { Gesture, GestureConfig, GestureDetail } from './utils/gesture';
43
44// From: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
45export type AutocompleteTypes = (
46| 'on' | 'off' | 'name' | 'honorific-prefix' | 'given-name' | 'additional-name' | 'family-name' | 'honorific-suffix'
47| 'nickname' | 'email' | 'username' | 'new-password' | 'current-password' | 'one-time-code' | 'organization-title' | 'organization'
48| 'street-address' | 'address-line1' | 'address-line2' | 'address-line3' | 'address-level4' | 'address-level3' | 'address-level2'
49| 'address-level1' | 'country' | 'country-name' | 'postal-code' | 'cc-name' | 'cc-given-name' | 'cc-additional-name' | 'cc-family-name'
50| 'cc-family-name' | 'cc-number' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-csc' | 'cc-type' | 'transaction-currency' | 'transaction-amount'
51| 'language' | 'bday' | 'bday-day' | 'bday-month' | 'bday-year' | 'sex' | 'tel' | 'tel-country-code' | 'tel-national' | 'tel-area-code' | 'tel-local'
52| 'tel-extension' | 'impp' | 'url' | 'photo');
53
54
55export type TextFieldTypes = 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' | 'time' | 'week' | 'month' | 'datetime-local';
56export type Side = 'start' | 'end';
57export type PredefinedColors = 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark';
58export type Color = PredefinedColors | string;
59export type Mode = "ios" | "md";
60export type ComponentTags = string;
61export type ComponentRef = Function | HTMLElement | string | null;
62export type ComponentProps<T = null> = {[key: string]: any};
63export type CssClassMap = { [className: string]: boolean };
64export type BackButtonEvent = CustomEvent<BackButtonEventDetail>;
65
66export interface FrameworkDelegate {
67 attachViewToDom(container: any, component: any, propsOrDataObj?: any, cssClasses?: string[]): Promise<HTMLElement>;
68 removeViewFromDom(container: any, component: any): Promise<void>;
69}
70
71export interface BackButtonEventDetail {
72 register(priority: number, handler: (processNextHandler: () => void) => Promise<any> | void): void;
73}
74
75export interface KeyboardEventDetail {
76 keyboardHeight: number;
77}
78
79export interface StyleEventDetail {
80 [styleName: string]: boolean;
81}
82
83export { NavComponentWithProps } from "./components/nav/nav-interface";
84
85declare module "./components" {
86 export namespace Components {
87 export interface IonIcon extends IoniconsComponents.IonIcon{}
88 }
89}
90
91declare module "./components" {
92 export namespace JSX {
93 export interface IonIcon extends IoniconsJSX.IonIcon {}
94 }
95}