@elliemae/ds-pills 2.0.0-alpha.1 → 2.0.0-alpha.10
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/cjs/components/Pill.js +48 -0
- package/cjs/components/PillButton.js +51 -0
- package/cjs/components/PillGroup.js +50 -0
- package/cjs/components/index.js +17 -0
- package/cjs/components/styled.js +69 -0
- package/cjs/components/types/DropdownPill.js +66 -0
- package/cjs/components/types/InputPill.js +71 -0
- package/cjs/components/types/LabelPill.js +31 -0
- package/cjs/components/types/ReadOnlyPill.js +37 -0
- package/cjs/components/types/RemovablePill.js +62 -0
- package/cjs/components/types/ValuePill.js +39 -0
- package/cjs/components/types/index.js +19 -0
- package/cjs/{DropdownPill.js → deprecated/DropdownPill.js} +9 -9
- package/cjs/{InputPill.js → deprecated/InputPill.js} +9 -9
- package/cjs/{LabeledDropdownPills.js → deprecated/LabeledDropdownPills.js} +3 -3
- package/cjs/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownCascadeMenuPill.js +7 -7
- package/cjs/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownMultiPill.js +15 -15
- package/cjs/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownSinglePill.js +13 -13
- package/cjs/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/utils.js +0 -0
- package/cjs/{LabeledPills.js → deprecated/LabeledPills.js} +2 -2
- package/cjs/{OverflowPill.js → deprecated/OverflowPill.js} +8 -8
- package/cjs/{Pill.js → deprecated/Pill.js} +4 -4
- package/cjs/{PillGroup.js → deprecated/PillGroup.js} +2 -2
- package/cjs/{ReadOnlyPill.js → deprecated/ReadOnlyPill.js} +8 -8
- package/cjs/{RemovablePill.js → deprecated/RemovablePill.js} +7 -7
- package/cjs/deprecated/index.js +32 -0
- package/cjs/index.d.js +2 -0
- package/cjs/index.js +19 -9
- package/cjs/props.js +57 -0
- package/cjs/utils.js +18 -0
- package/esm/components/Pill.js +39 -0
- package/esm/components/PillButton.js +41 -0
- package/esm/components/PillGroup.js +39 -0
- package/esm/components/index.js +3 -0
- package/esm/components/styled.js +52 -0
- package/esm/components/types/DropdownPill.js +54 -0
- package/esm/components/types/InputPill.js +61 -0
- package/esm/components/types/LabelPill.js +22 -0
- package/esm/components/types/ReadOnlyPill.js +28 -0
- package/esm/components/types/RemovablePill.js +52 -0
- package/esm/components/types/ValuePill.js +30 -0
- package/esm/components/types/index.js +6 -0
- package/esm/{DropdownPill.js → deprecated/DropdownPill.js} +0 -0
- package/esm/{InputPill.js → deprecated/InputPill.js} +2 -2
- package/esm/{LabeledDropdownPills.js → deprecated/LabeledDropdownPills.js} +0 -0
- package/esm/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownCascadeMenuPill.js +0 -0
- package/esm/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownMultiPill.js +0 -0
- package/esm/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownSinglePill.js +0 -0
- package/esm/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/utils.js +0 -0
- package/esm/{LabeledPills.js → deprecated/LabeledPills.js} +0 -0
- package/esm/{OverflowPill.js → deprecated/OverflowPill.js} +0 -0
- package/esm/{Pill.js → deprecated/Pill.js} +0 -0
- package/esm/{PillGroup.js → deprecated/PillGroup.js} +0 -0
- package/esm/{ReadOnlyPill.js → deprecated/ReadOnlyPill.js} +0 -0
- package/esm/{RemovablePill.js → deprecated/RemovablePill.js} +2 -2
- package/esm/deprecated/index.js +8 -0
- package/esm/index.d.js +1 -0
- package/esm/index.js +11 -8
- package/esm/props.js +46 -0
- package/esm/utils.js +14 -0
- package/package.json +108 -48
- package/types/components/Pill.d.ts +5 -0
- package/types/components/PillButton.d.ts +5 -0
- package/types/components/PillGroup.d.ts +7 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/styled.d.ts +40 -0
- package/types/components/types/DropdownPill.d.ts +3 -0
- package/types/components/types/InputPill.d.ts +3 -0
- package/types/components/types/LabelPill.d.ts +3 -0
- package/types/components/types/ReadOnlyPill.d.ts +3 -0
- package/types/components/types/RemovablePill.d.ts +3 -0
- package/types/components/types/ValuePill.d.ts +3 -0
- package/types/components/types/index.d.ts +6 -0
- package/types/{DropdownPill.d.ts → deprecated/DropdownPill.d.ts} +0 -0
- package/types/{InputPill.d.ts → deprecated/InputPill.d.ts} +0 -0
- package/types/{LabeledDropdownPills.d.ts → deprecated/LabeledDropdownPills.d.ts} +0 -0
- package/types/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownCascadeMenuPill.d.ts +0 -0
- package/types/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownMultiPill.d.ts +0 -0
- package/types/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownSinglePill.d.ts +0 -0
- package/types/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/utils.d.ts +0 -0
- package/types/{LabeledPills.d.ts → deprecated/LabeledPills.d.ts} +0 -0
- package/types/{OverflowPill.d.ts → deprecated/OverflowPill.d.ts} +0 -0
- package/types/{Pill.d.ts → deprecated/Pill.d.ts} +0 -0
- package/types/{PillGroup.d.ts → deprecated/PillGroup.d.ts} +0 -0
- package/types/{ReadOnlyPill.d.ts → deprecated/ReadOnlyPill.d.ts} +0 -0
- package/types/{RemovablePill.d.ts → deprecated/RemovablePill.d.ts} +0 -0
- package/types/deprecated/index.d.ts +8 -0
- package/types/index.d.ts +3 -9
- package/types/props.d.ts +39 -0
- package/types/tests/DSPill.test.d.ts +1 -0
- package/types/tests/DSPillGroup.test.d.ts +1 -0
- package/types/tests/events/DSPill.events.keyboard.test.d.ts +1 -0
- package/types/tests/events/DSPill.events.test.d.ts +1 -0
- package/types/tests/events/DSPillGroup.events.keyboard.test.d.ts +1 -0
- package/types/tests/events/DSPillGroup.events.test.d.ts +1 -0
- package/types/utils.d.ts +4 -0
package/esm/props.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { PropTypes } from 'react-desc';
|
|
2
|
+
import DSInput from '@elliemae/ds-form/Input';
|
|
3
|
+
|
|
4
|
+
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
5
|
+
const pillTypes = PropTypes.oneOf(['label', 'value', 'input', 'dropdown', 'removable', 'readonly']);
|
|
6
|
+
const DSPillV2PropTypes = {
|
|
7
|
+
label: PropTypes.string.description('Label to show in the pill').isRequired,
|
|
8
|
+
type: pillTypes.description('The type of pill that you want to render').isRequired,
|
|
9
|
+
innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).description('Reference to the focuseable internal element of each pill (remove icons, inputs, dropdown, etc.)').defaultValue(() => null),
|
|
10
|
+
ariaLabel: PropTypes.string.description('Aria label for the pill. If not provided we will use the label').defaultValue(''),
|
|
11
|
+
tooltipValue: PropTypes.string.description('String to show as a tooltip in the value pill').defaultValue(''),
|
|
12
|
+
iconLeft: PropTypes.node.description('A component to show int the left of a readonly pill').defaultValue(null),
|
|
13
|
+
iconRight: PropTypes.node.description('A component to show in the right of a readonly pill').defaultValue(null),
|
|
14
|
+
onRemove: PropTypes.func.description('Callback triggered when removing a pill with the close icon').defaultValue(() => null),
|
|
15
|
+
inputPlaceholder: PropTypes.string.description('Placeholder for the input pill').defaultValue(''),
|
|
16
|
+
onInputChange: PropTypes.func.description('Callback triggered when user provides input to the input pill').defaultValue(() => null),
|
|
17
|
+
onInputClear: PropTypes.func.description('Callback triggered when the user clears an input pill').defaultValue(() => null),
|
|
18
|
+
inputWidth: PropTypes.number.description('Width in pixels for the input tag in the input pill').defaultValue(150),
|
|
19
|
+
dropdownProps: PropTypes.object.description('Properties that will be used for the dropdown-menu').defaultValue({})
|
|
20
|
+
};
|
|
21
|
+
const DSPillButtonPropTypes = {
|
|
22
|
+
type: PropTypes.oneOf(['only', 'left', 'right']).description('The position in which this button will be placed. Only used for css styling internally').defaultValue('right'),
|
|
23
|
+
width: PropTypes.string.description('Width of the button').defaultValue('100%'),
|
|
24
|
+
height: PropTypes.string.description('Height of the button').defaultValue('100%')
|
|
25
|
+
};
|
|
26
|
+
const DSPillV2DefaultProps = {
|
|
27
|
+
innerRef: () => null,
|
|
28
|
+
ariaLabel: '',
|
|
29
|
+
tooltipValue: '',
|
|
30
|
+
iconLeft: null,
|
|
31
|
+
iconRight: null,
|
|
32
|
+
onRemove: () => null,
|
|
33
|
+
inputPlaceholder: '',
|
|
34
|
+
onInputChange: () => null,
|
|
35
|
+
onInputClear: () => null,
|
|
36
|
+
inputWidth: 72,
|
|
37
|
+
inputRender: DSInput,
|
|
38
|
+
dropdownProps: {}
|
|
39
|
+
};
|
|
40
|
+
const DSPillButtonDefaultProps = {
|
|
41
|
+
type: 'right',
|
|
42
|
+
width: '100%',
|
|
43
|
+
height: '100%'
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { DSPillButtonDefaultProps, DSPillButtonPropTypes, DSPillV2DefaultProps, DSPillV2PropTypes };
|
package/esm/utils.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-pills",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Pills",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -11,57 +11,117 @@
|
|
|
11
11
|
"import": "./esm/index.js",
|
|
12
12
|
"require": "./cjs/index.js"
|
|
13
13
|
},
|
|
14
|
-
"./
|
|
15
|
-
"import": "./esm/
|
|
16
|
-
"require": "./cjs/
|
|
14
|
+
"./utils": {
|
|
15
|
+
"import": "./esm/utils.js",
|
|
16
|
+
"require": "./cjs/utils.js"
|
|
17
17
|
},
|
|
18
|
-
"./
|
|
19
|
-
"import": "./esm/
|
|
20
|
-
"require": "./cjs/
|
|
18
|
+
"./props": {
|
|
19
|
+
"import": "./esm/props.js",
|
|
20
|
+
"require": "./cjs/props.js"
|
|
21
21
|
},
|
|
22
|
-
"./
|
|
23
|
-
"import": "./esm/
|
|
24
|
-
"require": "./cjs/
|
|
22
|
+
"./deprecated/RemovablePill": {
|
|
23
|
+
"import": "./esm/deprecated/RemovablePill.js",
|
|
24
|
+
"require": "./cjs/deprecated/RemovablePill.js"
|
|
25
25
|
},
|
|
26
|
-
"./
|
|
27
|
-
"import": "./esm/
|
|
28
|
-
"require": "./cjs/
|
|
26
|
+
"./deprecated/ReadOnlyPill": {
|
|
27
|
+
"import": "./esm/deprecated/ReadOnlyPill.js",
|
|
28
|
+
"require": "./cjs/deprecated/ReadOnlyPill.js"
|
|
29
29
|
},
|
|
30
|
-
"./
|
|
31
|
-
"import": "./esm/
|
|
32
|
-
"require": "./cjs/
|
|
30
|
+
"./deprecated/PillGroup": {
|
|
31
|
+
"import": "./esm/deprecated/PillGroup.js",
|
|
32
|
+
"require": "./cjs/deprecated/PillGroup.js"
|
|
33
33
|
},
|
|
34
|
-
"./
|
|
35
|
-
"import": "./esm/
|
|
36
|
-
"require": "./cjs/
|
|
34
|
+
"./deprecated/Pill": {
|
|
35
|
+
"import": "./esm/deprecated/Pill.js",
|
|
36
|
+
"require": "./cjs/deprecated/Pill.js"
|
|
37
37
|
},
|
|
38
|
-
"./
|
|
39
|
-
"import": "./esm/
|
|
40
|
-
"require": "./cjs/
|
|
38
|
+
"./deprecated/OverflowPill": {
|
|
39
|
+
"import": "./esm/deprecated/OverflowPill.js",
|
|
40
|
+
"require": "./cjs/deprecated/OverflowPill.js"
|
|
41
41
|
},
|
|
42
|
-
"./
|
|
43
|
-
"import": "./esm/
|
|
44
|
-
"require": "./cjs/
|
|
42
|
+
"./deprecated/LabeledPills": {
|
|
43
|
+
"import": "./esm/deprecated/LabeledPills.js",
|
|
44
|
+
"require": "./cjs/deprecated/LabeledPills.js"
|
|
45
45
|
},
|
|
46
|
-
"./LabeledDropdownPillsTypes/
|
|
47
|
-
"import": "./esm/LabeledDropdownPillsTypes/
|
|
48
|
-
"require": "./cjs/LabeledDropdownPillsTypes/
|
|
46
|
+
"./deprecated/LabeledDropdownPillsTypes/utils": {
|
|
47
|
+
"import": "./esm/deprecated/LabeledDropdownPillsTypes/utils.js",
|
|
48
|
+
"require": "./cjs/deprecated/LabeledDropdownPillsTypes/utils.js"
|
|
49
49
|
},
|
|
50
|
-
"./LabeledDropdownPillsTypes/
|
|
51
|
-
"import": "./esm/LabeledDropdownPillsTypes/
|
|
52
|
-
"require": "./cjs/LabeledDropdownPillsTypes/
|
|
50
|
+
"./deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill": {
|
|
51
|
+
"import": "./esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js",
|
|
52
|
+
"require": "./cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js"
|
|
53
53
|
},
|
|
54
|
-
"./
|
|
55
|
-
"import": "./esm/
|
|
56
|
-
"require": "./cjs/
|
|
54
|
+
"./deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill": {
|
|
55
|
+
"import": "./esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js",
|
|
56
|
+
"require": "./cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js"
|
|
57
57
|
},
|
|
58
|
-
"./
|
|
59
|
-
"import": "./esm/
|
|
60
|
-
"require": "./cjs/
|
|
58
|
+
"./deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill": {
|
|
59
|
+
"import": "./esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js",
|
|
60
|
+
"require": "./cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js"
|
|
61
61
|
},
|
|
62
|
-
"./
|
|
63
|
-
"import": "./esm/
|
|
64
|
-
"require": "./cjs/
|
|
62
|
+
"./deprecated/LabeledDropdownPills": {
|
|
63
|
+
"import": "./esm/deprecated/LabeledDropdownPills.js",
|
|
64
|
+
"require": "./cjs/deprecated/LabeledDropdownPills.js"
|
|
65
|
+
},
|
|
66
|
+
"./deprecated/InputPill": {
|
|
67
|
+
"import": "./esm/deprecated/InputPill.js",
|
|
68
|
+
"require": "./cjs/deprecated/InputPill.js"
|
|
69
|
+
},
|
|
70
|
+
"./deprecated": {
|
|
71
|
+
"import": "./esm/deprecated/index.js",
|
|
72
|
+
"require": "./cjs/deprecated/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./deprecated/DropdownPill": {
|
|
75
|
+
"import": "./esm/deprecated/DropdownPill.js",
|
|
76
|
+
"require": "./cjs/deprecated/DropdownPill.js"
|
|
77
|
+
},
|
|
78
|
+
"./components/types/ValuePill": {
|
|
79
|
+
"import": "./esm/components/types/ValuePill.js",
|
|
80
|
+
"require": "./cjs/components/types/ValuePill.js"
|
|
81
|
+
},
|
|
82
|
+
"./components/types/RemovablePill": {
|
|
83
|
+
"import": "./esm/components/types/RemovablePill.js",
|
|
84
|
+
"require": "./cjs/components/types/RemovablePill.js"
|
|
85
|
+
},
|
|
86
|
+
"./components/types/ReadOnlyPill": {
|
|
87
|
+
"import": "./esm/components/types/ReadOnlyPill.js",
|
|
88
|
+
"require": "./cjs/components/types/ReadOnlyPill.js"
|
|
89
|
+
},
|
|
90
|
+
"./components/types/LabelPill": {
|
|
91
|
+
"import": "./esm/components/types/LabelPill.js",
|
|
92
|
+
"require": "./cjs/components/types/LabelPill.js"
|
|
93
|
+
},
|
|
94
|
+
"./components/types/InputPill": {
|
|
95
|
+
"import": "./esm/components/types/InputPill.js",
|
|
96
|
+
"require": "./cjs/components/types/InputPill.js"
|
|
97
|
+
},
|
|
98
|
+
"./components/types": {
|
|
99
|
+
"import": "./esm/components/types/index.js",
|
|
100
|
+
"require": "./cjs/components/types/index.js"
|
|
101
|
+
},
|
|
102
|
+
"./components/types/DropdownPill": {
|
|
103
|
+
"import": "./esm/components/types/DropdownPill.js",
|
|
104
|
+
"require": "./cjs/components/types/DropdownPill.js"
|
|
105
|
+
},
|
|
106
|
+
"./components/styled": {
|
|
107
|
+
"import": "./esm/components/styled.js",
|
|
108
|
+
"require": "./cjs/components/styled.js"
|
|
109
|
+
},
|
|
110
|
+
"./components/PillGroup": {
|
|
111
|
+
"import": "./esm/components/PillGroup.js",
|
|
112
|
+
"require": "./cjs/components/PillGroup.js"
|
|
113
|
+
},
|
|
114
|
+
"./components/PillButton": {
|
|
115
|
+
"import": "./esm/components/PillButton.js",
|
|
116
|
+
"require": "./cjs/components/PillButton.js"
|
|
117
|
+
},
|
|
118
|
+
"./components/Pill": {
|
|
119
|
+
"import": "./esm/components/Pill.js",
|
|
120
|
+
"require": "./cjs/components/Pill.js"
|
|
121
|
+
},
|
|
122
|
+
"./components": {
|
|
123
|
+
"import": "./esm/components/index.js",
|
|
124
|
+
"require": "./cjs/components/index.js"
|
|
65
125
|
}
|
|
66
126
|
},
|
|
67
127
|
"sideEffects": [
|
|
@@ -84,14 +144,14 @@
|
|
|
84
144
|
"build": "node ../../scripts/build/build.js"
|
|
85
145
|
},
|
|
86
146
|
"dependencies": {
|
|
87
|
-
"@elliemae/ds-classnames": "2.0.0-alpha.
|
|
88
|
-
"@elliemae/ds-dropdownmenu": "2.0.0-alpha.
|
|
89
|
-
"@elliemae/ds-form": "2.0.0-alpha.
|
|
90
|
-
"@elliemae/ds-icons": "2.0.0-alpha.
|
|
91
|
-
"@elliemae/ds-modal": "2.0.0-alpha.
|
|
92
|
-
"@elliemae/ds-shared": "2.0.0-alpha.
|
|
93
|
-
"@elliemae/ds-tooltip": "2.0.0-alpha.
|
|
94
|
-
"@elliemae/ds-utilities": "2.0.0-alpha.
|
|
147
|
+
"@elliemae/ds-classnames": "2.0.0-alpha.10",
|
|
148
|
+
"@elliemae/ds-dropdownmenu": "2.0.0-alpha.10",
|
|
149
|
+
"@elliemae/ds-form": "2.0.0-alpha.10",
|
|
150
|
+
"@elliemae/ds-icons": "2.0.0-alpha.10",
|
|
151
|
+
"@elliemae/ds-modal": "2.0.0-alpha.10",
|
|
152
|
+
"@elliemae/ds-shared": "2.0.0-alpha.10",
|
|
153
|
+
"@elliemae/ds-tooltip": "2.0.0-alpha.10",
|
|
154
|
+
"@elliemae/ds-utilities": "2.0.0-alpha.10",
|
|
95
155
|
"prop-types": "~15.7.2",
|
|
96
156
|
"react-desc": "~4.1.3"
|
|
97
157
|
},
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DSPillGroupV2Context: React.Context<{
|
|
3
|
+
onKeyboardRemove: (pillUid: string) => void;
|
|
4
|
+
}>;
|
|
5
|
+
declare const DSPillGroupV2: React.ComponentType;
|
|
6
|
+
declare const DSPillGroupV2WithSchema: any;
|
|
7
|
+
export { DSPillGroupV2, DSPillGroupV2WithSchema };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledLabelPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
|
|
3
|
+
export declare const StyledValuePillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
|
|
4
|
+
export declare const StyledInputPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {
|
|
5
|
+
value: string;
|
|
6
|
+
inputWidth: number;
|
|
7
|
+
inputHasFocus: boolean;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const StyledDropdownPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
|
|
10
|
+
export declare const StyledReadonlyPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {
|
|
11
|
+
hasIconRight: boolean;
|
|
12
|
+
hasIconLeft: boolean;
|
|
13
|
+
}, never>;
|
|
14
|
+
export declare const StyledRemovablePillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
|
|
15
|
+
export declare const StyledPillGroup: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
|
|
16
|
+
export declare const StyledSpanWithTooltip: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
17
|
+
export declare const StyledPillButton: import("styled-components").StyledComponent<{
|
|
18
|
+
(props: any): JSX.Element;
|
|
19
|
+
propTypes: {
|
|
20
|
+
id: any;
|
|
21
|
+
buttonType: any;
|
|
22
|
+
size: any;
|
|
23
|
+
disabled: any;
|
|
24
|
+
onClick: any;
|
|
25
|
+
onKeyDown: any;
|
|
26
|
+
onBlur: any;
|
|
27
|
+
onFocus: any;
|
|
28
|
+
className: any;
|
|
29
|
+
tabIndex: any;
|
|
30
|
+
innerRef: any;
|
|
31
|
+
'aria-label': any;
|
|
32
|
+
'aria-pressed': any;
|
|
33
|
+
'data-testid': any;
|
|
34
|
+
role: any;
|
|
35
|
+
children: any;
|
|
36
|
+
};
|
|
37
|
+
}, any, {
|
|
38
|
+
width: string;
|
|
39
|
+
height: string;
|
|
40
|
+
}, never>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
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';
|
package/types/index.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export
|
|
3
|
-
export * from './
|
|
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';
|
|
1
|
+
export * from './deprecated';
|
|
2
|
+
export { default } from './deprecated/Pill';
|
|
3
|
+
export * from './components';
|
package/types/props.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const DSPillV2PropTypes: {
|
|
2
|
+
label: any;
|
|
3
|
+
type: any;
|
|
4
|
+
innerRef: any;
|
|
5
|
+
ariaLabel: any;
|
|
6
|
+
tooltipValue: any;
|
|
7
|
+
iconLeft: any;
|
|
8
|
+
iconRight: any;
|
|
9
|
+
onRemove: any;
|
|
10
|
+
inputPlaceholder: any;
|
|
11
|
+
onInputChange: any;
|
|
12
|
+
onInputClear: any;
|
|
13
|
+
inputWidth: any;
|
|
14
|
+
dropdownProps: any;
|
|
15
|
+
};
|
|
16
|
+
export declare const DSPillButtonPropTypes: {
|
|
17
|
+
type: any;
|
|
18
|
+
width: any;
|
|
19
|
+
height: any;
|
|
20
|
+
};
|
|
21
|
+
export declare const DSPillV2DefaultProps: {
|
|
22
|
+
innerRef: () => null;
|
|
23
|
+
ariaLabel: string;
|
|
24
|
+
tooltipValue: string;
|
|
25
|
+
iconLeft: null;
|
|
26
|
+
iconRight: null;
|
|
27
|
+
onRemove: () => null;
|
|
28
|
+
inputPlaceholder: string;
|
|
29
|
+
onInputChange: () => null;
|
|
30
|
+
onInputClear: () => null;
|
|
31
|
+
inputWidth: number;
|
|
32
|
+
inputRender: any;
|
|
33
|
+
dropdownProps: {};
|
|
34
|
+
};
|
|
35
|
+
export declare const DSPillButtonDefaultProps: {
|
|
36
|
+
type: string;
|
|
37
|
+
width: string;
|
|
38
|
+
height: string;
|
|
39
|
+
};
|
|
@@ -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/types/utils.d.ts
ADDED