@elliemae/ds-pills 2.3.0-alpha.8 → 2.3.0-alpha.9
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/dist/types/components/Pill.d.ts +5 -0
- package/dist/types/components/PillButton.d.ts +5 -0
- package/dist/types/components/PillGroup.d.ts +13 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/styled.d.ts +24 -0
- package/dist/types/components/types/DropdownPill.d.ts +3 -0
- package/dist/types/components/types/InputPill.d.ts +3 -0
- package/dist/types/components/types/LabelPill.d.ts +3 -0
- package/dist/types/components/types/ReadOnlyPill.d.ts +3 -0
- package/dist/types/components/types/RemovablePill.d.ts +3 -0
- package/dist/types/components/types/ValuePill.d.ts +3 -0
- package/dist/types/components/types/index.d.ts +6 -0
- package/dist/types/deprecated/DropdownPill.d.ts +66 -0
- package/dist/types/deprecated/InputPill.d.ts +10 -0
- package/dist/types/deprecated/LabeledDropdownPills.d.ts +82 -0
- package/dist/types/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.d.ts +17 -0
- package/dist/types/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.d.ts +15 -0
- package/dist/types/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.d.ts +29 -0
- package/dist/types/deprecated/LabeledDropdownPillsTypes/utils.d.ts +1 -0
- package/dist/types/deprecated/LabeledPills.d.ts +52 -0
- package/dist/types/deprecated/OverflowPill.d.ts +33 -0
- package/dist/types/deprecated/Pill.d.ts +59 -0
- package/dist/types/deprecated/PillGroup.d.ts +50 -0
- package/dist/types/deprecated/ReadOnlyPill.d.ts +56 -0
- package/dist/types/deprecated/RemovablePill.d.ts +49 -0
- package/dist/types/deprecated/index.d.ts +9 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/props.d.ts +92 -0
- package/dist/types/tests/DSPill.test.d.ts +1 -0
- package/dist/types/tests/DSPillGroup.test.d.ts +1 -0
- package/dist/types/tests/events/DSPill.events.keyboard.test.d.ts +1 -0
- package/dist/types/tests/events/DSPill.events.test.d.ts +1 -0
- package/dist/types/tests/events/DSPillGroup.events.keyboard.test.d.ts +1 -0
- package/dist/types/tests/events/DSPillGroup.events.test.d.ts +1 -0
- package/dist/types/utils.d.ts +4 -0
- package/package.json +15 -15
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { DSPillGroupProps } from '../index.d';
|
|
4
|
+
export declare const DSPillGroupV2Context: React.Context<{
|
|
5
|
+
onKeyboardRemove: (pillUid: string) => void;
|
|
6
|
+
}>;
|
|
7
|
+
declare const DSPillGroupV2: React.ComponentType<DSPillGroupProps>;
|
|
8
|
+
declare const DSPillGroupV2WithSchema: {
|
|
9
|
+
(props?: unknown): JSX.Element;
|
|
10
|
+
propTypes: unknown;
|
|
11
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
12
|
+
};
|
|
13
|
+
export { DSPillGroupV2, DSPillGroupV2WithSchema };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledLabelPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
3
|
+
size: 'm' | 's';
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const StyledValuePillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
6
|
+
size: 'm' | 's';
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const StyledInputPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const StyledDropdownPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
10
|
+
size: 'm' | 's';
|
|
11
|
+
}, never>;
|
|
12
|
+
export declare const StyledReadonlyPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
+
export declare const StyledRemovablePillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
14
|
+
size: 'm' | 's';
|
|
15
|
+
}, never>;
|
|
16
|
+
export declare const StyledPillGroup: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
+
export declare const StyledSpanWithTooltip: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
+
export declare const StyledPillButton: import("styled-components").StyledComponent<{
|
|
19
|
+
(props: import("@elliemae/ds-button/dist/types/v2/propTypes").DSButtonPropsT): JSX.Element;
|
|
20
|
+
propTypes: import("react").WeakValidationMap<unknown>;
|
|
21
|
+
}, import("styled-components").DefaultTheme, {
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
}, never>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare function DropdownPill({ containerProps, label, variant, tabIndex, closeMenuOnItemSelection, maxWidth, minWidth, ...dropdownProps }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
containerProps?: {} | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
variant: any;
|
|
8
|
+
tabIndex?: number | undefined;
|
|
9
|
+
closeMenuOnItemSelection?: boolean | undefined;
|
|
10
|
+
maxWidth: any;
|
|
11
|
+
minWidth: any;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
declare namespace DropdownPill {
|
|
14
|
+
var propTypes: {
|
|
15
|
+
/** props injected to component wrapper */
|
|
16
|
+
containerProps: {
|
|
17
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
21
|
+
};
|
|
22
|
+
/** labeled pill text label */
|
|
23
|
+
label: any;
|
|
24
|
+
/** pill variant */
|
|
25
|
+
variant: {
|
|
26
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
30
|
+
};
|
|
31
|
+
/** html focus border */
|
|
32
|
+
tabIndex: {
|
|
33
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
37
|
+
};
|
|
38
|
+
/** close menu on item selection */
|
|
39
|
+
closeMenuOnItemSelection: {
|
|
40
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
44
|
+
};
|
|
45
|
+
/** pill max width */
|
|
46
|
+
maxWidth: {
|
|
47
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
48
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
51
|
+
};
|
|
52
|
+
/** pill min width */
|
|
53
|
+
minWidth: {
|
|
54
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
declare const DSDropdownPillWithSchema: {
|
|
62
|
+
(props?: unknown): JSX.Element;
|
|
63
|
+
propTypes: unknown;
|
|
64
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
65
|
+
};
|
|
66
|
+
export { DropdownPill, DSDropdownPillWithSchema };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function InputPill({ containerProps, placeholder, onChange, onRemove, value, type, ...otherProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
containerProps?: {} | undefined;
|
|
5
|
+
placeholder?: string | undefined;
|
|
6
|
+
onChange?: (() => void) | undefined;
|
|
7
|
+
onRemove: any;
|
|
8
|
+
value: any;
|
|
9
|
+
type: any;
|
|
10
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare function LabeledDropdownPills({ label, value, type, onFocusNextGroup, onFocusPreviousGroup, onFocusGroupSet, maxWidth, minWidth, fixed, ...menuProps }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
value: any;
|
|
7
|
+
type: any;
|
|
8
|
+
onFocusNextGroup: any;
|
|
9
|
+
onFocusPreviousGroup: any;
|
|
10
|
+
onFocusGroupSet: any;
|
|
11
|
+
maxWidth: any;
|
|
12
|
+
minWidth: any;
|
|
13
|
+
fixed: any;
|
|
14
|
+
}): JSX.Element;
|
|
15
|
+
declare namespace LabeledDropdownPills {
|
|
16
|
+
var propTypes: {
|
|
17
|
+
/** pill type */
|
|
18
|
+
type: {
|
|
19
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
23
|
+
};
|
|
24
|
+
/** focus next group callback */
|
|
25
|
+
onFocusNextGroup: {
|
|
26
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
30
|
+
};
|
|
31
|
+
/** focus prev group callback */
|
|
32
|
+
onFocusPreviousGroup: {
|
|
33
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
37
|
+
};
|
|
38
|
+
/** focus group set callback */
|
|
39
|
+
onFocusGroupSet: {
|
|
40
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
44
|
+
};
|
|
45
|
+
/** pill max width */
|
|
46
|
+
maxWidth: {
|
|
47
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
48
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
51
|
+
};
|
|
52
|
+
/** pill min width */
|
|
53
|
+
minWidth: {
|
|
54
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
58
|
+
};
|
|
59
|
+
/** fixed pill */
|
|
60
|
+
fixed: {
|
|
61
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
62
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
65
|
+
};
|
|
66
|
+
/** pill label text */
|
|
67
|
+
label: any;
|
|
68
|
+
/** pill value */
|
|
69
|
+
value: {
|
|
70
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
71
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
72
|
+
};
|
|
73
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
declare const DSLabeledDropdownPillsWithSchema: {
|
|
78
|
+
(props?: unknown): JSX.Element;
|
|
79
|
+
propTypes: unknown;
|
|
80
|
+
toTypescript: () => import("react-desc").TypescriptSchema; /** fixed pill */
|
|
81
|
+
};
|
|
82
|
+
export { LabeledDropdownPills, DSLabeledDropdownPillsWithSchema };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare function LabeledDropdownCascadeMenuPill({ label, options, value: optionValue, onChange, onRemove, value: selection, placeholder, onFocusNextGroup, onFocusPreviousGroup, onFocusGroupSet, maxWidth, minWidth, ...menuProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
label: any;
|
|
5
|
+
options: any;
|
|
6
|
+
value?: {} | undefined;
|
|
7
|
+
onChange: any;
|
|
8
|
+
onRemove: any;
|
|
9
|
+
placeholder?: string | undefined;
|
|
10
|
+
onFocusNextGroup: any;
|
|
11
|
+
onFocusPreviousGroup: any;
|
|
12
|
+
onFocusGroupSet: any;
|
|
13
|
+
maxWidth: any;
|
|
14
|
+
minWidth: any;
|
|
15
|
+
}): JSX.Element;
|
|
16
|
+
export { LabeledDropdownCascadeMenuPill };
|
|
17
|
+
export default LabeledDropdownCascadeMenuPill;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare function LabeledDropdownMultiPills({ label, options, value, onSelect, onRemove, onChange, // if this is defined, then it's calculating the next result onSelect or onRemove
|
|
3
|
+
maxWidth, minWidth, ...menuProps }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
label: any;
|
|
6
|
+
options?: never[] | undefined;
|
|
7
|
+
value?: never[] | undefined;
|
|
8
|
+
onSelect?: (() => null) | undefined;
|
|
9
|
+
onRemove?: (() => null) | undefined;
|
|
10
|
+
onChange: any;
|
|
11
|
+
maxWidth: any;
|
|
12
|
+
minWidth: any;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
export { LabeledDropdownMultiPills };
|
|
15
|
+
export default LabeledDropdownMultiPills;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
declare function LabeledDropdownSinglePill({ label, labelIsValue, options, value, onSelect, onChange, maxWidth, minWidth, fixed, ...menuProps }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
label: any;
|
|
6
|
+
labelIsValue?: boolean | undefined;
|
|
7
|
+
options: any;
|
|
8
|
+
value: any;
|
|
9
|
+
onSelect?: (() => null) | undefined;
|
|
10
|
+
onChange: any;
|
|
11
|
+
maxWidth: any;
|
|
12
|
+
minWidth: any;
|
|
13
|
+
fixed?: boolean | undefined;
|
|
14
|
+
}): JSX.Element;
|
|
15
|
+
declare namespace LabeledDropdownSinglePill {
|
|
16
|
+
var propTypes: {
|
|
17
|
+
label: PropTypes.Requireable<string>;
|
|
18
|
+
labelIsValue: PropTypes.Requireable<boolean>;
|
|
19
|
+
options: PropTypes.Requireable<any[]>;
|
|
20
|
+
value: PropTypes.Requireable<string | number>;
|
|
21
|
+
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
+
maxWidth: PropTypes.Requireable<string | number>;
|
|
24
|
+
minWidth: PropTypes.Requireable<string | number>;
|
|
25
|
+
fixed: PropTypes.Requireable<boolean>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export { LabeledDropdownSinglePill };
|
|
29
|
+
export default LabeledDropdownSinglePill;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hasOptionChanged: (prevOptions: any, options: any) => boolean;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare function LabeledPills({ children, label, leftAddon, onFocusGroupSet, onFocusNextGroup, onFocusPreviousGroup, }: {
|
|
4
|
+
children: any;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
leftAddon: any;
|
|
7
|
+
onFocusGroupSet: any;
|
|
8
|
+
onFocusNextGroup: any;
|
|
9
|
+
onFocusPreviousGroup: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
declare namespace LabeledPills {
|
|
12
|
+
var propTypes: {
|
|
13
|
+
/** labeled pill text label */
|
|
14
|
+
label: any;
|
|
15
|
+
/** pill to add the label to */
|
|
16
|
+
children: any;
|
|
17
|
+
/** addon component to left */
|
|
18
|
+
leftAddon: {
|
|
19
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
23
|
+
};
|
|
24
|
+
/** focus next group callback */
|
|
25
|
+
onFocusNextGroup: {
|
|
26
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
30
|
+
};
|
|
31
|
+
/** focus prev group callback */
|
|
32
|
+
onFocusPreviousGroup: {
|
|
33
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
37
|
+
};
|
|
38
|
+
/** focus group set callback */
|
|
39
|
+
onFocusGroupSet: {
|
|
40
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
declare const DSLabeledPillsWithSchema: {
|
|
48
|
+
(props?: unknown): JSX.Element;
|
|
49
|
+
propTypes: unknown;
|
|
50
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
51
|
+
};
|
|
52
|
+
export { LabeledPills, DSLabeledPillsWithSchema };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare function OverflowPill({ containerProps, label, options }: {
|
|
4
|
+
containerProps?: {} | undefined;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
options?: never[] | undefined;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
declare namespace OverflowPill {
|
|
9
|
+
var propTypes: {
|
|
10
|
+
/** props to inject to pill wrapper */
|
|
11
|
+
containerProps: {
|
|
12
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
16
|
+
};
|
|
17
|
+
/** pill text label */
|
|
18
|
+
label: any;
|
|
19
|
+
/** overflow pills options */
|
|
20
|
+
options: {
|
|
21
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare const DSOverflowPillWithSchema: {
|
|
29
|
+
(props?: unknown): JSX.Element;
|
|
30
|
+
propTypes: unknown;
|
|
31
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
32
|
+
};
|
|
33
|
+
export { OverflowPill, DSOverflowPillWithSchema };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare function Pill({ containerProps, label, leftAddon, rightAddon, variant, size, ...otherProps }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
containerProps?: {} | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
leftAddon: any;
|
|
8
|
+
rightAddon: any;
|
|
9
|
+
variant?: string | undefined;
|
|
10
|
+
size?: string | undefined;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
declare namespace Pill {
|
|
13
|
+
var propTypes: {
|
|
14
|
+
/** props to inject to pill wrapper */
|
|
15
|
+
containerProps: {
|
|
16
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
17
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
19
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
20
|
+
};
|
|
21
|
+
/** pill text label */
|
|
22
|
+
label: any;
|
|
23
|
+
/** pill size */
|
|
24
|
+
size: {
|
|
25
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
26
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
27
|
+
};
|
|
28
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
29
|
+
};
|
|
30
|
+
/** pill variant */
|
|
31
|
+
variant: {
|
|
32
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
33
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
36
|
+
};
|
|
37
|
+
/** addon component to left */
|
|
38
|
+
leftAddon: {
|
|
39
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
40
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
+
};
|
|
42
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
43
|
+
};
|
|
44
|
+
/** addon component to right */
|
|
45
|
+
rightAddon: {
|
|
46
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
47
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
48
|
+
};
|
|
49
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
declare const DSPillWithSchema: {
|
|
54
|
+
(props?: unknown): JSX.Element;
|
|
55
|
+
propTypes: unknown;
|
|
56
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
57
|
+
};
|
|
58
|
+
export { Pill, DSPillWithSchema };
|
|
59
|
+
export default Pill;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const Container: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
|
|
4
|
+
declare const PillGroup: {
|
|
5
|
+
({ containerProps, onFocusNextGroup, onFocusPreviousGroup, onFocusGroupSet, children, }: {
|
|
6
|
+
containerProps?: {} | undefined;
|
|
7
|
+
onFocusNextGroup: any;
|
|
8
|
+
onFocusPreviousGroup: any;
|
|
9
|
+
onFocusGroupSet: any;
|
|
10
|
+
children: any;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
propTypes: {
|
|
13
|
+
/** props injected to component wrapper */
|
|
14
|
+
containerProps: {
|
|
15
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
16
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
17
|
+
};
|
|
18
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
19
|
+
};
|
|
20
|
+
/** focus next group callback */
|
|
21
|
+
onFocusNextGroup: {
|
|
22
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
23
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
|
+
};
|
|
25
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
26
|
+
};
|
|
27
|
+
/** focus prev group callback */
|
|
28
|
+
onFocusPreviousGroup: {
|
|
29
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
30
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
33
|
+
};
|
|
34
|
+
/** focus group set callback */
|
|
35
|
+
onFocusGroupSet: {
|
|
36
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
37
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
|
+
};
|
|
39
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
40
|
+
};
|
|
41
|
+
/** pill components */
|
|
42
|
+
children: any;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
declare const DSPillGroupWithSchema: {
|
|
46
|
+
(props?: unknown): JSX.Element;
|
|
47
|
+
propTypes: unknown;
|
|
48
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
49
|
+
};
|
|
50
|
+
export { PillGroup, DSPillGroupWithSchema };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const ReadOnlyPill: {
|
|
4
|
+
({ containerProps, modalContent, label, leftAddon, modalTitle, tooltipText, }: {
|
|
5
|
+
containerProps?: {} | undefined;
|
|
6
|
+
modalContent?: string | undefined;
|
|
7
|
+
label?: string | undefined;
|
|
8
|
+
leftAddon: any;
|
|
9
|
+
modalTitle?: string | undefined;
|
|
10
|
+
tooltipText?: string | undefined;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
propTypes: {
|
|
13
|
+
/** props injected to component wrapper */
|
|
14
|
+
containerProps: {
|
|
15
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
16
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
17
|
+
};
|
|
18
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
19
|
+
};
|
|
20
|
+
/** labeled pill text label */
|
|
21
|
+
label: any;
|
|
22
|
+
/** addon component to left */
|
|
23
|
+
leftAddon: {
|
|
24
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
28
|
+
};
|
|
29
|
+
/** read only pill modal content */
|
|
30
|
+
modalContent: {
|
|
31
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
32
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
33
|
+
};
|
|
34
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
35
|
+
};
|
|
36
|
+
/** read only pill modal title */
|
|
37
|
+
modalTitle: {
|
|
38
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
42
|
+
};
|
|
43
|
+
tooltipText: {
|
|
44
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
45
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
46
|
+
};
|
|
47
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
declare const DSReadOnlyPillWithSchema: {
|
|
52
|
+
(props?: unknown): JSX.Element;
|
|
53
|
+
propTypes: unknown;
|
|
54
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
55
|
+
};
|
|
56
|
+
export { ReadOnlyPill, DSReadOnlyPillWithSchema };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare function RemovablePill({ containerProps, label, onRemove, size, leftAddon }: {
|
|
4
|
+
containerProps?: {} | undefined;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
onRemove: any;
|
|
7
|
+
size?: string | undefined;
|
|
8
|
+
leftAddon: any;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
declare namespace RemovablePill {
|
|
11
|
+
var propTypes: {
|
|
12
|
+
/** props injected to component wrapper */
|
|
13
|
+
containerProps: {
|
|
14
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
15
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
18
|
+
};
|
|
19
|
+
/** labeled pill text label */
|
|
20
|
+
label: any;
|
|
21
|
+
/** remove click callback */
|
|
22
|
+
onRemove: {
|
|
23
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
27
|
+
};
|
|
28
|
+
/** pill size */
|
|
29
|
+
size: {
|
|
30
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
34
|
+
};
|
|
35
|
+
/** addon component to left */
|
|
36
|
+
leftAddon: {
|
|
37
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
38
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
39
|
+
};
|
|
40
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
declare const DSRemovablePillWithSchema: {
|
|
45
|
+
(props?: unknown): JSX.Element;
|
|
46
|
+
propTypes: unknown;
|
|
47
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
48
|
+
};
|
|
49
|
+
export { RemovablePill, DSRemovablePillWithSchema };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './Pill';
|
|
2
|
+
export * from './PillGroup';
|
|
3
|
+
export * from './LabeledDropdownPills';
|
|
4
|
+
export * from './LabeledPills';
|
|
5
|
+
export * from './DropdownPill';
|
|
6
|
+
export * from './RemovablePill';
|
|
7
|
+
export * from './ReadOnlyPill';
|
|
8
|
+
export * from './OverflowPill';
|
|
9
|
+
export { default } from './Pill';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const DSPillV2PropTypes: {
|
|
3
|
+
label: import("react-desc").PropTypesDescValue;
|
|
4
|
+
type: import("react-desc").PropTypesDescValue;
|
|
5
|
+
innerRef: {
|
|
6
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
10
|
+
};
|
|
11
|
+
ariaLabel: {
|
|
12
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
13
|
+
};
|
|
14
|
+
labelTruncated: {
|
|
15
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
tooltipValue: {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
iconLeft: {
|
|
21
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
23
|
+
iconRight: {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
onRemove: {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
inputPlaceholder: {
|
|
30
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
onInputChange: {
|
|
33
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
onInputClear: {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
inputWidth: {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
dropdownProps: {
|
|
42
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
44
|
+
onDropdownClick: {
|
|
45
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const DSPillButtonPropTypes: {
|
|
49
|
+
type: {
|
|
50
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
width: {
|
|
53
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
54
|
+
};
|
|
55
|
+
height: {
|
|
56
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare const DSPillGroupPropTypes: {
|
|
60
|
+
width: {
|
|
61
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
62
|
+
};
|
|
63
|
+
innerRef: {
|
|
64
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export declare const DSPillV2DefaultProps: {
|
|
68
|
+
innerRef: () => null;
|
|
69
|
+
ariaLabel: string;
|
|
70
|
+
size: string;
|
|
71
|
+
labelTruncated: boolean;
|
|
72
|
+
tooltipValue: string;
|
|
73
|
+
iconLeft: null;
|
|
74
|
+
iconRight: null;
|
|
75
|
+
onRemove: () => null;
|
|
76
|
+
inputPlaceholder: string;
|
|
77
|
+
onInputChange: () => null;
|
|
78
|
+
onInputClear: () => null;
|
|
79
|
+
inputWidth: number;
|
|
80
|
+
inputRender: any;
|
|
81
|
+
dropdownProps: {};
|
|
82
|
+
onDropdownClick: () => null;
|
|
83
|
+
};
|
|
84
|
+
export declare const DSPillButtonDefaultProps: {
|
|
85
|
+
type: string;
|
|
86
|
+
width: string;
|
|
87
|
+
height: string;
|
|
88
|
+
};
|
|
89
|
+
export declare const DSPillGroupDefaultProps: {
|
|
90
|
+
width: string;
|
|
91
|
+
innerRef: () => null;
|
|
92
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-pills",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Pills",
|
|
6
6
|
"files": [
|
|
@@ -141,20 +141,20 @@
|
|
|
141
141
|
},
|
|
142
142
|
"author": "ICE MT",
|
|
143
143
|
"dependencies": {
|
|
144
|
-
"@elliemae/ds-button": "2.3.0-alpha.
|
|
145
|
-
"@elliemae/ds-classnames": "2.3.0-alpha.
|
|
146
|
-
"@elliemae/ds-dropdownmenu": "2.3.0-alpha.
|
|
147
|
-
"@elliemae/ds-form": "2.3.0-alpha.
|
|
148
|
-
"@elliemae/ds-grid": "2.3.0-alpha.
|
|
149
|
-
"@elliemae/ds-icons": "2.3.0-alpha.
|
|
150
|
-
"@elliemae/ds-modal": "2.3.0-alpha.
|
|
151
|
-
"@elliemae/ds-popover": "2.3.0-alpha.
|
|
152
|
-
"@elliemae/ds-props-helpers": "2.3.0-alpha.
|
|
153
|
-
"@elliemae/ds-shared": "2.3.0-alpha.
|
|
154
|
-
"@elliemae/ds-system": "2.3.0-alpha.
|
|
155
|
-
"@elliemae/ds-tooltip": "2.3.0-alpha.
|
|
156
|
-
"@elliemae/ds-truncated-tooltip-text": "2.3.0-alpha.
|
|
157
|
-
"@elliemae/ds-utilities": "2.3.0-alpha.
|
|
144
|
+
"@elliemae/ds-button": "2.3.0-alpha.9",
|
|
145
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.9",
|
|
146
|
+
"@elliemae/ds-dropdownmenu": "2.3.0-alpha.9",
|
|
147
|
+
"@elliemae/ds-form": "2.3.0-alpha.9",
|
|
148
|
+
"@elliemae/ds-grid": "2.3.0-alpha.9",
|
|
149
|
+
"@elliemae/ds-icons": "2.3.0-alpha.9",
|
|
150
|
+
"@elliemae/ds-modal": "2.3.0-alpha.9",
|
|
151
|
+
"@elliemae/ds-popover": "2.3.0-alpha.9",
|
|
152
|
+
"@elliemae/ds-props-helpers": "2.3.0-alpha.9",
|
|
153
|
+
"@elliemae/ds-shared": "2.3.0-alpha.9",
|
|
154
|
+
"@elliemae/ds-system": "2.3.0-alpha.9",
|
|
155
|
+
"@elliemae/ds-tooltip": "2.3.0-alpha.9",
|
|
156
|
+
"@elliemae/ds-truncated-tooltip-text": "2.3.0-alpha.9",
|
|
157
|
+
"@elliemae/ds-utilities": "2.3.0-alpha.9",
|
|
158
158
|
"prop-types": "~15.7.2",
|
|
159
159
|
"react-desc": "~4.1.3",
|
|
160
160
|
"uid": "~2.0.0"
|