UNPKG

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