@progress/kendo-react-buttons 7.2.4-develop.3 → 7.3.0-develop.1
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/Button.js +8 -0
- package/Button.mjs +124 -0
- package/ButtonGroup.js +8 -0
- package/ButtonGroup.mjs +76 -0
- package/Chip/Chip.js +8 -0
- package/Chip/Chip.mjs +220 -0
- package/Chip/ChipList.js +8 -0
- package/Chip/ChipList.mjs +190 -0
- package/Chip/chip-list-contexts.js +8 -0
- package/Chip/chip-list-contexts.mjs +18 -0
- package/Chip/data-reducer.js +8 -0
- package/Chip/data-reducer.mjs +25 -0
- package/Chip/focus-reducer.js +8 -0
- package/Chip/focus-reducer.mjs +28 -0
- package/Chip/selection-reducer.js +8 -0
- package/Chip/selection-reducer.mjs +47 -0
- package/FloatingActionButton/FloatingActionButton.js +8 -0
- package/FloatingActionButton/FloatingActionButton.mjs +343 -0
- package/FloatingActionButton/FloatingActionButtonItem.js +8 -0
- package/FloatingActionButton/FloatingActionButtonItem.mjs +93 -0
- package/FloatingActionButton/utils.js +8 -0
- package/FloatingActionButton/utils.mjs +46 -0
- package/ListButton/ButtonItem.js +8 -0
- package/ListButton/ButtonItem.mjs +63 -0
- package/ListButton/DropDownButton.js +8 -0
- package/ListButton/DropDownButton.mjs +267 -0
- package/ListButton/DropDownButtonItem.js +8 -0
- package/ListButton/DropDownButtonItem.mjs +31 -0
- package/ListButton/SplitButton.js +8 -0
- package/ListButton/SplitButton.mjs +298 -0
- package/ListButton/SplitButtonItem.js +8 -0
- package/ListButton/SplitButtonItem.mjs +30 -0
- package/ListButton/utils/navigation.js +8 -0
- package/ListButton/utils/navigation.mjs +35 -0
- package/ListButton/utils/popup.js +8 -0
- package/ListButton/utils/popup.mjs +20 -0
- package/dist/cdn/js/kendo-react-buttons.js +8 -5
- package/index.d.mts +2227 -5
- package/index.d.ts +2227 -40
- package/index.js +8 -5
- package/index.mjs +44 -1906
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +3 -3
- package/toolbar/Toolbar.js +8 -0
- package/toolbar/Toolbar.mjs +124 -0
- package/toolbar/tools/ToolbarItem.js +8 -0
- package/toolbar/tools/ToolbarItem.mjs +44 -0
- package/toolbar/tools/ToolbarSeparator.js +8 -0
- package/toolbar/tools/ToolbarSeparator.mjs +21 -0
- package/toolbar/tools/ToolbarSpacer.js +8 -0
- package/toolbar/tools/ToolbarSpacer.mjs +36 -0
- package/util.js +8 -0
- package/util.mjs +36 -0
- package/Button.d.ts +0 -146
- package/ButtonGroup.d.ts +0 -36
- package/ButtonGroupInterface.d.ts +0 -36
- package/ButtonInterface.d.ts +0 -39
- package/Chip/Chip.d.ts +0 -238
- package/Chip/ChipList.d.ts +0 -119
- package/Chip/chip-list-contexts.d.ts +0 -17
- package/Chip/data-reducer.d.ts +0 -26
- package/Chip/focus-reducer.d.ts +0 -28
- package/Chip/selection-reducer.d.ts +0 -34
- package/FloatingActionButton/FloatingActionButton.d.ts +0 -21
- package/FloatingActionButton/FloatingActionButtonItem.d.ts +0 -109
- package/FloatingActionButton/interfaces/FloatingActionButtonHandle.d.ts +0 -17
- package/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.d.ts +0 -28
- package/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +0 -219
- package/FloatingActionButton/models/align-offset.d.ts +0 -24
- package/FloatingActionButton/models/align.d.ts +0 -31
- package/FloatingActionButton/models/events.d.ts +0 -25
- package/FloatingActionButton/models/position-mode.d.ts +0 -13
- package/FloatingActionButton/models/rounded.d.ts +0 -16
- package/FloatingActionButton/models/size.d.ts +0 -15
- package/FloatingActionButton/models/theme-color.d.ts +0 -22
- package/FloatingActionButton/utils.d.ts +0 -31
- package/ListButton/ButtonItem.d.ts +0 -34
- package/ListButton/DropDownButton.d.ts +0 -127
- package/ListButton/DropDownButtonItem.d.ts +0 -34
- package/ListButton/SplitButton.d.ts +0 -129
- package/ListButton/SplitButtonItem.d.ts +0 -29
- package/ListButton/models/ButtonItem.d.ts +0 -38
- package/ListButton/models/ListButtonProps.d.ts +0 -339
- package/ListButton/models/PopupSettings.d.ts +0 -32
- package/ListButton/models/events.d.ts +0 -51
- package/ListButton/utils/navigation.d.ts +0 -9
- package/ListButton/utils/popup.d.ts +0 -13
- package/models/index.d.ts +0 -92
- package/package-metadata.d.ts +0 -9
- package/toolbar/Toolbar.d.ts +0 -175
- package/toolbar/tools/ToolbarItem.d.ts +0 -42
- package/toolbar/tools/ToolbarSeparator.d.ts +0 -20
- package/toolbar/tools/ToolbarSpacer.d.ts +0 -27
- package/util.d.ts +0 -31
package/Chip/Chip.d.ts
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { SVGIcon } from '@progress/kendo-react-common';
|
|
7
|
-
import { ChipRemoveEvent, ChipMouseEvent, ChipFocusEvent, ChipKeyboardEvent } from './../models/index';
|
|
8
|
-
/**
|
|
9
|
-
* Represents the properties of [Chip]({% slug api_buttons_chip %}) component.
|
|
10
|
-
*/
|
|
11
|
-
export interface ChipProps {
|
|
12
|
-
/**
|
|
13
|
-
* Sets the `id` property of the top div element of the Chip.
|
|
14
|
-
*/
|
|
15
|
-
id?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Sets additional classes to the Chip.
|
|
18
|
-
*/
|
|
19
|
-
className?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The React elements that will be rendered as custom content inside the Chip.
|
|
22
|
-
*/
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
* Sets the `tabIndex` attribute.
|
|
26
|
-
*/
|
|
27
|
-
tabIndex?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Sets additional CSS styles to the Chip.
|
|
30
|
-
*/
|
|
31
|
-
style?: React.CSSProperties;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the label text of the Chip.
|
|
34
|
-
*/
|
|
35
|
-
text?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the `id` value of the Chip.
|
|
38
|
-
*/
|
|
39
|
-
value?: any;
|
|
40
|
-
/**
|
|
41
|
-
* The Chip direction 'ltr' as default or 'rtl'.
|
|
42
|
-
*/
|
|
43
|
-
dir?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Determines if the Chip could be removed.
|
|
46
|
-
*/
|
|
47
|
-
removable?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Determines if the Chip has custom font `removeIcon`.
|
|
50
|
-
*/
|
|
51
|
-
removeIcon?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Determines if the Chip has custom SVG `removeIcon`.
|
|
54
|
-
*/
|
|
55
|
-
removeSvgIcon?: SVGIcon;
|
|
56
|
-
/**
|
|
57
|
-
* Determines if the Chip is disabled.
|
|
58
|
-
*/
|
|
59
|
-
disabled?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Determines if the Chip has a font `icon`.
|
|
62
|
-
*/
|
|
63
|
-
icon?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Determines if the Chip has an SVG `icon`.
|
|
66
|
-
*/
|
|
67
|
-
svgIcon?: SVGIcon;
|
|
68
|
-
/**
|
|
69
|
-
* Determines if the Chip has an avatar.
|
|
70
|
-
*/
|
|
71
|
-
avatar?: ChipAvatarProps;
|
|
72
|
-
/**
|
|
73
|
-
* Determines if the Chip has custom selection font `icon`.
|
|
74
|
-
*/
|
|
75
|
-
selectedIcon?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Determines if the Chip has custom selection SVG `icon`.
|
|
78
|
-
*/
|
|
79
|
-
selectedSvgIcon?: SVGIcon;
|
|
80
|
-
/**
|
|
81
|
-
* Triggered on Chip removing.
|
|
82
|
-
*/
|
|
83
|
-
onRemove?: (event: ChipRemoveEvent) => void;
|
|
84
|
-
/**
|
|
85
|
-
* Triggered on `onClick` event.
|
|
86
|
-
*/
|
|
87
|
-
onClick?: (event: ChipMouseEvent) => void;
|
|
88
|
-
/**
|
|
89
|
-
* Triggered on `onMouseDown` event.
|
|
90
|
-
*/
|
|
91
|
-
onMouseDown?: (event: ChipMouseEvent) => void;
|
|
92
|
-
/**
|
|
93
|
-
* Triggered on `onMouseUp` event.
|
|
94
|
-
*/
|
|
95
|
-
onMouseUp?: (event: ChipMouseEvent) => void;
|
|
96
|
-
/**
|
|
97
|
-
* Triggered on `onDoubleClick` event.
|
|
98
|
-
*/
|
|
99
|
-
onDoubleClick?: (event: ChipMouseEvent) => void;
|
|
100
|
-
/**
|
|
101
|
-
* Triggered on `onMouseEnter` event.
|
|
102
|
-
*/
|
|
103
|
-
onMouseEnter?: (event: ChipMouseEvent) => void;
|
|
104
|
-
/**
|
|
105
|
-
* Triggered on `onMouseLeave` event.
|
|
106
|
-
*/
|
|
107
|
-
onMouseLeave?: (event: ChipMouseEvent) => void;
|
|
108
|
-
/**
|
|
109
|
-
* Triggered on `onMouseMove` event.
|
|
110
|
-
*/
|
|
111
|
-
onMouseMove?: (event: ChipMouseEvent) => void;
|
|
112
|
-
/**
|
|
113
|
-
* Triggered on `onMouseOut` event.
|
|
114
|
-
*/
|
|
115
|
-
onMouseOut?: (event: ChipMouseEvent) => void;
|
|
116
|
-
/**
|
|
117
|
-
* Triggered on `onMouseOver` event.
|
|
118
|
-
*/
|
|
119
|
-
onMouseOver?: (event: ChipMouseEvent) => void;
|
|
120
|
-
/**
|
|
121
|
-
* Triggered on `onKeyDown` event.
|
|
122
|
-
*/
|
|
123
|
-
onKeyDown?: (event: ChipKeyboardEvent) => void;
|
|
124
|
-
/**
|
|
125
|
-
* Triggered on `onFocus` event.
|
|
126
|
-
*/
|
|
127
|
-
onFocus?: (event: ChipFocusEvent) => void;
|
|
128
|
-
/**
|
|
129
|
-
* Triggered on `onBlur` event.
|
|
130
|
-
*/
|
|
131
|
-
onBlur?: (event: ChipFocusEvent) => void;
|
|
132
|
-
/**
|
|
133
|
-
* Represents the item data, coming from the `ChipList` component.
|
|
134
|
-
*/
|
|
135
|
-
dataItem?: any;
|
|
136
|
-
/**
|
|
137
|
-
* Determines if the Chip is selected.
|
|
138
|
-
*/
|
|
139
|
-
selected?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* Identifies the element(s) which will describe the component, similar to an [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
142
|
-
* For example, these elements could contain an error or a hint message.
|
|
143
|
-
*/
|
|
144
|
-
ariaDescribedBy?: string;
|
|
145
|
-
/**
|
|
146
|
-
* @hidden
|
|
147
|
-
*/
|
|
148
|
-
role?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Configures the `size` of the Chip.
|
|
151
|
-
*
|
|
152
|
-
* The available options are:
|
|
153
|
-
* - small
|
|
154
|
-
* - medium
|
|
155
|
-
* - large
|
|
156
|
-
* - null—Does not set a size `className`.
|
|
157
|
-
*
|
|
158
|
-
* @default `medium`
|
|
159
|
-
*/
|
|
160
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
161
|
-
/**
|
|
162
|
-
* Configures the `roundness` of the Chip.
|
|
163
|
-
*
|
|
164
|
-
* The available options are:
|
|
165
|
-
* - small
|
|
166
|
-
* - medium
|
|
167
|
-
* - large
|
|
168
|
-
* - full
|
|
169
|
-
* - null—Does not set a rounded `className`.
|
|
170
|
-
*
|
|
171
|
-
* @default `medium`
|
|
172
|
-
*/
|
|
173
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
174
|
-
/**
|
|
175
|
-
* Configures the `fillMode` of the Chip.
|
|
176
|
-
*
|
|
177
|
-
* The available options are:
|
|
178
|
-
* - solid
|
|
179
|
-
* - outline
|
|
180
|
-
* - null—Does not set a fillMode `className`.
|
|
181
|
-
*
|
|
182
|
-
* @default `solid`
|
|
183
|
-
*/
|
|
184
|
-
fillMode?: null | 'solid' | 'outline';
|
|
185
|
-
/**
|
|
186
|
-
* Configures the `themeColor` of the Chip.
|
|
187
|
-
*
|
|
188
|
-
* The available options are:
|
|
189
|
-
* - base
|
|
190
|
-
* - info
|
|
191
|
-
* - success
|
|
192
|
-
* - warning
|
|
193
|
-
* - error
|
|
194
|
-
* - null—Does not set a themeColor `className`.
|
|
195
|
-
*
|
|
196
|
-
* @default `base`
|
|
197
|
-
*/
|
|
198
|
-
themeColor?: null | 'base' | 'info' | 'success' | 'warning' | 'error';
|
|
199
|
-
/**
|
|
200
|
-
* Represents the label of the Chip component.
|
|
201
|
-
*/
|
|
202
|
-
ariaLabel?: string;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Represents the target(element and props) of the ChipRemoveEvent.
|
|
206
|
-
*/
|
|
207
|
-
export interface ChipHandle {
|
|
208
|
-
/**
|
|
209
|
-
* The current element or `null` if there is no one.
|
|
210
|
-
*/
|
|
211
|
-
element: HTMLDivElement | null;
|
|
212
|
-
/**
|
|
213
|
-
* The props values of the Chip.
|
|
214
|
-
*/
|
|
215
|
-
props: ChipProps;
|
|
216
|
-
}
|
|
217
|
-
export interface ChipAvatarProps {
|
|
218
|
-
/**
|
|
219
|
-
* Sets the image of the avatar.
|
|
220
|
-
*/
|
|
221
|
-
image: string;
|
|
222
|
-
/**
|
|
223
|
-
* Defines the alternative text of the avatar image.
|
|
224
|
-
*/
|
|
225
|
-
imageAlt: string;
|
|
226
|
-
/**
|
|
227
|
-
* Configures the `roundness` of the avatar
|
|
228
|
-
*/
|
|
229
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
230
|
-
/**
|
|
231
|
-
* Sets additional CSS styles to the avatar
|
|
232
|
-
*/
|
|
233
|
-
style?: React.CSSProperties;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Represents the Chip component.
|
|
237
|
-
*/
|
|
238
|
-
export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<ChipHandle | null>>;
|
package/Chip/ChipList.d.ts
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { FormComponentProps, KendoMouse } from '@progress/kendo-react-common';
|
|
7
|
-
import { ChipProps } from './Chip';
|
|
8
|
-
import { ChipListChangeEvent, ChipListDataChangeEvent } from './../models/index';
|
|
9
|
-
/**
|
|
10
|
-
* Represents the properties of [ChipList]({% slug api_buttons_chiplist %}) component.
|
|
11
|
-
*/
|
|
12
|
-
export interface ChipListProps extends FormComponentProps, KendoMouse<ChipListHandle, HTMLDivElement> {
|
|
13
|
-
/**
|
|
14
|
-
* Sets the `id` property of the top div element of the ChipList.
|
|
15
|
-
*/
|
|
16
|
-
id?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Sets additional classes to the ChipList.
|
|
19
|
-
*/
|
|
20
|
-
className?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Sets the `tabIndex` attribute.
|
|
23
|
-
*/
|
|
24
|
-
tabIndex?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Sets additional CSS styles to the ChipList.
|
|
27
|
-
*/
|
|
28
|
-
style?: React.CSSProperties;
|
|
29
|
-
/**
|
|
30
|
-
* Represents Chip component.
|
|
31
|
-
*/
|
|
32
|
-
chip?: React.ComponentType<ChipProps>;
|
|
33
|
-
/**
|
|
34
|
-
* Represents the data about the child Chips.
|
|
35
|
-
*/
|
|
36
|
-
data?: any;
|
|
37
|
-
/**
|
|
38
|
-
* Represents the default data about the child Chips.
|
|
39
|
-
*/
|
|
40
|
-
defaultData?: any[];
|
|
41
|
-
/**
|
|
42
|
-
* Triggered after Chip data change.
|
|
43
|
-
*/
|
|
44
|
-
onDataChange?: (event: ChipListDataChangeEvent) => void;
|
|
45
|
-
/**
|
|
46
|
-
* Represents the selection state of Chip component.
|
|
47
|
-
*/
|
|
48
|
-
value?: any | any[];
|
|
49
|
-
/**
|
|
50
|
-
* Represents the default value of the selection state of Chip component.
|
|
51
|
-
*/
|
|
52
|
-
defaultValue?: any | any[];
|
|
53
|
-
/**
|
|
54
|
-
* Triggered after value change.
|
|
55
|
-
*/
|
|
56
|
-
onChange?: (event: ChipListChangeEvent) => void;
|
|
57
|
-
/**
|
|
58
|
-
* Represents the selection state of Chip component.
|
|
59
|
-
*/
|
|
60
|
-
selection?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Represents the `text` field of Chip, used for the `label`.
|
|
63
|
-
*/
|
|
64
|
-
textField?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Represents the `value` field of Chip, used for setting the Chip `id`.
|
|
67
|
-
*/
|
|
68
|
-
valueField?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Determines of ChipList is disabled.
|
|
71
|
-
*/
|
|
72
|
-
disabled?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* The ChipList direction 'ltr' as default or 'rtl'.
|
|
75
|
-
*/
|
|
76
|
-
dir?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
79
|
-
* For example these elements could contain error or hint message.
|
|
80
|
-
*/
|
|
81
|
-
ariaDescribedBy?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Identifies the element(s) which will label the component.
|
|
84
|
-
*/
|
|
85
|
-
ariaLabelledBy?: string;
|
|
86
|
-
/**
|
|
87
|
-
* The accessible label of the component.
|
|
88
|
-
*/
|
|
89
|
-
ariaLabel?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Configures the `size` of the ChipList.
|
|
92
|
-
*
|
|
93
|
-
* The available options are:
|
|
94
|
-
* - small
|
|
95
|
-
* - medium
|
|
96
|
-
* - large
|
|
97
|
-
* - null—Does not set a size `className`.
|
|
98
|
-
*
|
|
99
|
-
* @default `medium`
|
|
100
|
-
*/
|
|
101
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Represents the target(element and props) of the ChipListChangeEvent.
|
|
105
|
-
*/
|
|
106
|
-
export interface ChipListHandle {
|
|
107
|
-
/**
|
|
108
|
-
* The current element or `null` if there is no one.
|
|
109
|
-
*/
|
|
110
|
-
element: HTMLDivElement | null;
|
|
111
|
-
/**
|
|
112
|
-
* The props values of the ChipList.
|
|
113
|
-
*/
|
|
114
|
-
props: ChipListProps;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Represents the ChipList component.
|
|
118
|
-
*/
|
|
119
|
-
export declare const ChipList: React.ForwardRefExoticComponent<ChipListProps & React.RefAttributes<ChipListHandle | null>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const ChipListSelectionContext: React.Context<[string | string[] | null, Function]>;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare const ChipListFocusContext: React.Context<[string | string[] | null, Function]>;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const ChipListDataContext: React.Context<[string | null, Function]>;
|
package/Chip/data-reducer.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare enum CHIP_DATA_ACTION {
|
|
10
|
-
remove = "remove",
|
|
11
|
-
add = "add",
|
|
12
|
-
reorder = "reorder"
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export type DataAction = {
|
|
18
|
-
type: CHIP_DATA_ACTION;
|
|
19
|
-
payload?: any;
|
|
20
|
-
valueField: string;
|
|
21
|
-
event?: React.SyntheticEvent<any>;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export declare const dataReducer: (state: any, action: DataAction) => any;
|
package/Chip/focus-reducer.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare enum FOCUS_ACTION {
|
|
9
|
-
next = "next",
|
|
10
|
-
prev = "prev",
|
|
11
|
-
current = "current",
|
|
12
|
-
reset = "reset"
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export type FocusAction = {
|
|
18
|
-
type: FOCUS_ACTION;
|
|
19
|
-
payload: string;
|
|
20
|
-
items: string[];
|
|
21
|
-
target?: any;
|
|
22
|
-
event?: React.SyntheticEvent<any>;
|
|
23
|
-
state?: any;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export declare const focusReducer: (state: any, action: FocusAction) => any;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare enum SELECTION_TYPE {
|
|
10
|
-
single = "single",
|
|
11
|
-
multiple = "multiple",
|
|
12
|
-
none = "none"
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare enum SELECTION_ACTION {
|
|
18
|
-
toggle = "toggle",
|
|
19
|
-
remove = "remove"
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export type SelectionAction = {
|
|
25
|
-
type?: SELECTION_ACTION;
|
|
26
|
-
selection: SELECTION_TYPE;
|
|
27
|
-
payload?: string;
|
|
28
|
-
event?: React.SyntheticEvent<any>;
|
|
29
|
-
state?: any;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
export declare const selectionReducer: (state: any, action: SelectionAction) => any;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { FloatingActionButtonHandle } from './interfaces/FloatingActionButtonHandle';
|
|
7
|
-
import { FloatingActionButtonProps } from './interfaces/FloatingActionButtonProps';
|
|
8
|
-
/**
|
|
9
|
-
* Represents the [KendoReact FloatingActionButton component]({% slug overview_floatingactionbutton %}).
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```jsx
|
|
13
|
-
* const App = () => {
|
|
14
|
-
* return (
|
|
15
|
-
* <FloatingActionButton icon="plus" text="Create"/>
|
|
16
|
-
* );
|
|
17
|
-
* };
|
|
18
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare const FloatingActionButton: React.ForwardRefExoticComponent<FloatingActionButtonProps & React.RefAttributes<FloatingActionButtonHandle | null>>;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { SVGIcon } from '@progress/kendo-react-common';
|
|
7
|
-
/**
|
|
8
|
-
* The FloatingActionButtonItemHandle ref.
|
|
9
|
-
*/
|
|
10
|
-
export interface FloatingActionButtonItemHandle {
|
|
11
|
-
/**
|
|
12
|
-
* The FloatingActionButtonItemHandle element.
|
|
13
|
-
*/
|
|
14
|
-
element: HTMLLIElement | null;
|
|
15
|
-
/**
|
|
16
|
-
* Focus the FloatingActionButtonItem.
|
|
17
|
-
*/
|
|
18
|
-
focus: () => void;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Represents the props of the [KendoReact FloatingActionButtonItem component]({% slug overview_floatingactionbutton %}).
|
|
22
|
-
*/
|
|
23
|
-
export interface FloatingActionButtonItemProps {
|
|
24
|
-
/**
|
|
25
|
-
* Sets additional CSS styles to the FloatingActionButtonItem.
|
|
26
|
-
*/
|
|
27
|
-
style?: React.CSSProperties;
|
|
28
|
-
/**
|
|
29
|
-
* Specifies a list of CSS classes that will be added to the FloatingActionButtonItem.
|
|
30
|
-
*/
|
|
31
|
-
className?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Represents the children that are passed to the FloatingActionButtonItem.
|
|
34
|
-
*/
|
|
35
|
-
children?: any;
|
|
36
|
-
/**
|
|
37
|
-
* Specifies if the Floating Action Button Item is disabled [see example]({% slug disabled_floatingactionbuttonitem %}).
|
|
38
|
-
* Defaults to `false`.
|
|
39
|
-
*/
|
|
40
|
-
disabled?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the index of the Floating Action Button Item that is used to identify it.
|
|
43
|
-
*/
|
|
44
|
-
index?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Defines the icon rendered in the FloatingActionButtonItem
|
|
47
|
-
* [see example]({% slug databinding_floatingactionbutton %}).
|
|
48
|
-
*/
|
|
49
|
-
icon?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Defines the SVG icon rendered in the FloatingActionButtonItem.
|
|
52
|
-
*/
|
|
53
|
-
svgIcon?: SVGIcon;
|
|
54
|
-
/**
|
|
55
|
-
* Specifies the text of the FloatingActionButtonItem
|
|
56
|
-
* [see example]({% slug databinding_floatingactionbutton %}).
|
|
57
|
-
*/
|
|
58
|
-
text?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Sets the `tabIndex` property of the FloatingActionButtonItem..
|
|
61
|
-
* Defaults to `0`.
|
|
62
|
-
*/
|
|
63
|
-
tabIndex?: number;
|
|
64
|
-
/**
|
|
65
|
-
* Sets a custom property. Contained in the FloatingActionButtonItem props that are
|
|
66
|
-
* returned from the `onItemClick` FloatingActionButton event
|
|
67
|
-
* [see example]({% slug customization_floatingactionbutton %}#toc-items-rendering).
|
|
68
|
-
*/
|
|
69
|
-
[customProp: string]: any;
|
|
70
|
-
/**
|
|
71
|
-
* @hidden
|
|
72
|
-
*/
|
|
73
|
-
id?: string;
|
|
74
|
-
/**
|
|
75
|
-
* @hidden
|
|
76
|
-
*/
|
|
77
|
-
dataItem?: any;
|
|
78
|
-
/**
|
|
79
|
-
* @hidden
|
|
80
|
-
*/
|
|
81
|
-
item?: any;
|
|
82
|
-
/**
|
|
83
|
-
* @hidden
|
|
84
|
-
*/
|
|
85
|
-
focused?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* @hidden
|
|
88
|
-
*/
|
|
89
|
-
onDown?: (event: any) => void;
|
|
90
|
-
/**
|
|
91
|
-
* @hidden
|
|
92
|
-
*/
|
|
93
|
-
onClick?: (event: any, index: number) => void;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Represents the [KendoReact FloatingActionButtonItem component]({% slug overview_floatingactionbutton %}).
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```jsx
|
|
100
|
-
*
|
|
101
|
-
* const App = () => {
|
|
102
|
-
* return (
|
|
103
|
-
* <FloatingActionButton items={[{icon: 'pencil', text: 'Edit'}, {icon: 'close', text: 'Remove'}] icon: 'plus'} />
|
|
104
|
-
* );
|
|
105
|
-
* };
|
|
106
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
107
|
-
* ```
|
|
108
|
-
*/
|
|
109
|
-
export declare const FloatingActionButtonItem: React.ForwardRefExoticComponent<Omit<FloatingActionButtonItemProps, "ref"> & React.RefAttributes<FloatingActionButtonItemHandle | null>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* The FloatingActionButton ref.
|
|
7
|
-
*/
|
|
8
|
-
export interface FloatingActionButtonHandle {
|
|
9
|
-
/**
|
|
10
|
-
* The FloatingActionButton element.
|
|
11
|
-
*/
|
|
12
|
-
element: HTMLButtonElement | null;
|
|
13
|
-
/**
|
|
14
|
-
* Focus the FloatingActionButton.
|
|
15
|
-
*/
|
|
16
|
-
focus: () => void;
|
|
17
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Align, PopupAnimation } from '@progress/kendo-react-popup';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the settings that can be passed to the Popup inside the FloatingActionButtonPopupSettings.
|
|
8
|
-
*/
|
|
9
|
-
export interface FloatingActionButtonPopupSettings {
|
|
10
|
-
/**
|
|
11
|
-
* Controls the popup animation. By default, the open and close animations are enabled
|
|
12
|
-
* [see example]({% slug customization_floatingactionbutton %}#toc-popup-behavior).
|
|
13
|
-
*/
|
|
14
|
-
animate?: boolean | PopupAnimation;
|
|
15
|
-
/**
|
|
16
|
-
* Specifies a list of CSS classes that are used for styling the popup
|
|
17
|
-
* [see example]({% slug customization_floatingactionbutton %}#toc-popup-behavior).
|
|
18
|
-
*/
|
|
19
|
-
popupClass?: string;
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
anchorAlign?: Align;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
popupAlign?: Align;
|
|
28
|
-
}
|