Skip to content

Commit

Permalink
add custom popups, fox typings issue when doing dev using npm link
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonswearingen committed Mar 23, 2017
1 parent 316800c commit 96846ca
Show file tree
Hide file tree
Showing 20 changed files with 185 additions and 67 deletions.
1 change: 1 addition & 0 deletions dist/_dts/fixed-data-table-2.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="react" />
import * as React from "react";
export declare namespace _fixedDataTable2 {
var version: string;
Expand Down
1 change: 1 addition & 0 deletions dist/_dts/react-bootstrap-typeahead.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="react" />
import * as React from 'react';
export declare namespace react_bootstrap_typeahead {
/** react-bootstrap-typeahead accepts an array of either strings or objects. If you pass in objects, each one should have a string property to be used as the label for display. By default, the key is named label, but you can specify a different key via the labelKey prop. If you pass an array of strings, the labelKey prop will be ignored.
Expand Down
21 changes: 14 additions & 7 deletions dist/_dts/reactstrap.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="react" />
import * as React from 'react';
export declare namespace reactstrap {
type Sizes = 'xs' | 'xsmall' | 'sm' | 'small' | 'medium' | 'lg' | 'large';
Expand Down Expand Up @@ -289,16 +290,22 @@ export declare namespace reactstrap {
type Tooltip = React.ClassicComponent<TooltipProps, {}>;
var Tooltip: React.ClassicComponentClass<TooltipProps>;
interface PopoverProps extends React.HTMLProps<Popover> {
arrowOffsetLeft?: number | string;
arrowOffsetTop?: number | string;
bsSize?: Sizes;
bsStyle?: string;
placement?: string;
positionLeft?: number | string;
positionTop?: number | string;
/** / boolean to control the state of the popover */
isOpen: boolean;
/** callback for toggling isOpen in the controlling component. triggered when open and user clicks outside the popover. */
toggle?: () => void;
/** target div ID, popover is attached to this element */
target: string;
/** optionally overide tether config http://tether.io/#options */
tether?: any;
/** function which is passed a reference to the instance of tether for manually `position()`ing */
tetherRef?: (tether: any) => any;
placement: 'top' | 'bottom' | 'left' | 'right' | 'top left' | 'top center' | 'top right' | 'right top' | 'right middle' | 'right bottom' | 'bottom right' | 'bottom center' | 'bottom left' | 'left top' | 'left middle' | 'left bottom';
}
type Popover = React.ClassicComponent<PopoverProps, {}>;
var Popover: React.ClassicComponentClass<PopoverProps>;
var PopoverTitle: React.ClassicComponentClass<{}>;
var PopoverContent: React.ClassicComponentClass<{}>;
interface OverlayProps {
animation?: any;
container?: any;
Expand Down
2 changes: 1 addition & 1 deletion dist/_dts/reactstrap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/_dts/reactstrap.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/maps.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="bluebird" />
/// <reference types="googlemaps" />
import * as xlib from "xlib";
import Promise = xlib.promise.bluebird;
Expand Down
3 changes: 2 additions & 1 deletion dist/maps.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/maps.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/react-eco/_index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="react" />
/// <reference types="bluebird" />
import * as xlib from "xlib";
import Promise = xlib.promise.bluebird;
import * as React from "react";
Expand Down
4 changes: 2 additions & 2 deletions dist/react-eco/_index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/react-eco/_index.js.map

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions dist/react-eco/react-common-components.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="react" />
/// <reference types="bluebird" />
import reactEco = require("./_index");
import xlib = require("xlib");
import Promise = xlib.promise.bluebird;
Expand Down Expand Up @@ -119,6 +121,7 @@ export declare function Card(props: {
/**
* a <Button> component that will disable itself and show a loader spinner while the onClick callback is in-progress
* great for async callback operations
* by default will show a dismissible popover when a rejected promise is returned. this is configurable via props
*/
export declare class SpinnerButton extends React.Component<{
/** if you want an external process to control the load state, you can force unloaded state by setting props.isLoaded=false */
Expand All @@ -127,13 +130,27 @@ export declare class SpinnerButton extends React.Component<{
disabled?: boolean;
/** set this property to false to force the spinner to the "Loading" status, even if it's promise is resolved. */
isLoaded?: boolean;
/** set the class of the underlying button */
className?: string;
/** customize the error popover. if this is not set, we show the err.message by default. return null or undefined to silently ignore the error */
customError?: (err: Error) => {
title: string | JSX.Element;
content: string | JSX.Element;
};
}, {
onClickPromise: Promise<any> & {
/** internal helper used to track mounted state, to avoid firing additional callbacks if this component is no longer mounted*/
isMounted: boolean;
};
popoverOpen: boolean;
buttonId: string;
errDetails: {
title: string | JSX.Element;
content: string | JSX.Element;
};
}> {
constructor(props: any);
/** inject the isMounted property onto the Promise */
private _instrumentMountInfo(promise, isMounted);
componentDidMount(): void;
componentWillUnmount(): void;
Expand Down
33 changes: 29 additions & 4 deletions dist/react-eco/react-common-components.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 96846ca

Please sign in to comment.