@progress/kendo-react-buttons 13.3.0-develop.9 → 13.4.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.d.ts +114 -0
- package/Button.js +1 -1
- package/Button.mjs +42 -44
- package/ButtonGroup.d.ts +47 -0
- package/ButtonGroupInterface.d.ts +39 -0
- package/ButtonInterface.d.ts +49 -0
- package/Chip/Chip.d.ts +425 -0
- package/Chip/Chip.js +1 -1
- package/Chip/Chip.mjs +43 -39
- package/Chip/ChipList.d.ts +221 -0
- package/Chip/ChipList.js +1 -1
- package/Chip/ChipList.mjs +40 -41
- package/Chip/chip-list-contexts.d.ts +20 -0
- package/Chip/data-reducer.d.ts +29 -0
- package/Chip/focus-reducer.d.ts +31 -0
- package/Chip/selection-reducer.d.ts +37 -0
- package/FloatingActionButton/FloatingActionButton.d.ts +23 -0
- package/FloatingActionButton/FloatingActionButton.js +1 -1
- package/FloatingActionButton/FloatingActionButton.mjs +85 -85
- package/FloatingActionButton/FloatingActionButtonItem.d.ts +132 -0
- package/FloatingActionButton/interfaces/FloatingActionButtonHandle.d.ts +20 -0
- package/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.d.ts +31 -0
- package/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +354 -0
- package/FloatingActionButton/models/align-offset.d.ts +27 -0
- package/FloatingActionButton/models/align.d.ts +34 -0
- package/FloatingActionButton/models/events.d.ts +28 -0
- package/FloatingActionButton/models/position-mode.d.ts +16 -0
- package/FloatingActionButton/models/rounded.d.ts +19 -0
- package/FloatingActionButton/models/size.d.ts +18 -0
- package/FloatingActionButton/models/theme-color.d.ts +25 -0
- package/FloatingActionButton/utils.d.ts +34 -0
- package/ListButton/ButtonItem.d.ts +72 -0
- package/ListButton/DropDownButton.d.ts +153 -0
- package/ListButton/DropDownButton.js +1 -1
- package/ListButton/DropDownButton.mjs +62 -46
- package/ListButton/DropDownButtonItem.d.ts +37 -0
- package/ListButton/SplitButton.d.ts +142 -0
- package/ListButton/SplitButton.js +1 -1
- package/ListButton/SplitButton.mjs +29 -13
- package/ListButton/SplitButtonItem.d.ts +32 -0
- package/ListButton/models/ButtonItem.d.ts +41 -0
- package/ListButton/models/ListButtonProps.d.ts +411 -0
- package/ListButton/models/PopupSettings.d.ts +35 -0
- package/ListButton/models/events.d.ts +59 -0
- package/ListButton/utils/navigation.d.ts +12 -0
- package/ListButton/utils/popup.d.ts +16 -0
- package/SpeechToTextButton/SpeechToTextButton.d.ts +36 -0
- package/SpeechToTextButton/SpeechToTextButton.js +1 -1
- package/SpeechToTextButton/SpeechToTextButton.mjs +24 -24
- package/SpeechToTextButton/interfaces/SpeechToTextButtonHandle.d.ts +28 -0
- package/SpeechToTextButton/interfaces/SpeechToTextButtonProps.d.ts +117 -0
- package/dist/cdn/js/kendo-react-buttons.js +1 -1
- package/index.d.mts +43 -2928
- package/index.d.ts +43 -2928
- package/messages/index.d.ts +22 -0
- package/models/index.d.ts +95 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +5 -5
- package/toolbar/Toolbar.d.ts +38 -0
- package/toolbar/Toolbar.js +1 -1
- package/toolbar/Toolbar.mjs +15 -15
- package/toolbar/events/ToolbarResizeEvent.d.ts +29 -0
- package/toolbar/interfaces/ToolbarHandle.d.ts +21 -0
- package/toolbar/interfaces/ToolbarOverflowProps.d.ts +50 -0
- package/toolbar/interfaces/ToolbarProps.d.ts +128 -0
- package/toolbar/messages/index.d.ts +27 -0
- package/toolbar/tools/ToolbarItem.d.ts +47 -0
- package/toolbar/tools/ToolbarOverflowSection.d.ts +21 -0
- package/toolbar/tools/ToolbarScrollButton.d.ts +23 -0
- package/toolbar/tools/ToolbarScrollButton.js +1 -1
- package/toolbar/tools/ToolbarScrollButton.mjs +11 -20
- package/toolbar/tools/ToolbarScrollable.d.ts +28 -0
- package/toolbar/tools/ToolbarSeparator.d.ts +22 -0
- package/toolbar/tools/ToolbarSpacer.d.ts +30 -0
- package/util.d.ts +31 -0
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { FloatingActionButtonPopupSettings } from './FloatingActionButtonPopupSettings.js';
|
|
9
|
+
import { FloatingActionButtonItemProps } from '../FloatingActionButtonItem.js';
|
|
10
|
+
import { FloatingActionButtonAlign } from '../models/align.js';
|
|
11
|
+
import { FloatingActionButtonAlignOffset } from '../models/align-offset.js';
|
|
12
|
+
import { FloatingActionButtonEvent, FloatingActionButtonItemEvent } from '../models/events.js';
|
|
13
|
+
import { FloatingActionButtonPositionMode } from '../models/position-mode.js';
|
|
14
|
+
import { FloatingActionButtonSize } from '../models/size.js';
|
|
15
|
+
import { FloatingActionButtonThemeColor } from '../models/theme-color.js';
|
|
16
|
+
import { FloatingActionButtonRounded } from '../models/rounded.js';
|
|
17
|
+
import { SVGIcon } from '@progress/kendo-react-common';
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
22
|
+
/**
|
|
23
|
+
* Represents the props of the [KendoReact FloatingActionButton component](https://www.telerik.com/kendo-react-ui/components/buttons/floatingactionbutton).
|
|
24
|
+
*/
|
|
25
|
+
export interface FloatingActionButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onBlur' | 'onFocus' | 'onKeyDown' | 'onClick'> {
|
|
26
|
+
/**
|
|
27
|
+
* Sets additional CSS styles to the Floating Action Button.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```jsx
|
|
31
|
+
* <FloatingActionButton style={{ backgroundColor: 'blue' }} />
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies a list of CSS classes that will be added to the Floating Action Button.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```jsx
|
|
40
|
+
* <FloatingActionButton className="custom-fab" />
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
className?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Represents the `dir` HTML attribute for text direction.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```jsx
|
|
49
|
+
* <FloatingActionButton dir="rtl" />
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
dir?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Sets the `id` property of the root HTML element.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```jsx
|
|
58
|
+
* <FloatingActionButton id="fab1" />
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
id?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies if the FloatingActionButton is disabled.
|
|
64
|
+
*
|
|
65
|
+
* @default false
|
|
66
|
+
* @example
|
|
67
|
+
* ```jsx
|
|
68
|
+
* <FloatingActionButton disabled />
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Defines the icon that renders in the FloatingActionButton.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```jsx
|
|
77
|
+
* <FloatingActionButton icon="k-icon k-i-plus" />
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
icon?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Defines the SVG icon that renders in the FloatingActionButton.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```jsx
|
|
86
|
+
* import { gearIcon } from '@progress/kendo-svg-icons';
|
|
87
|
+
*
|
|
88
|
+
* <FloatingActionButton svgIcon={gearIcon} />
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
svgIcon?: SVGIcon;
|
|
92
|
+
/**
|
|
93
|
+
* Defines a custom CSS class for the icon.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```jsx
|
|
97
|
+
* <FloatingActionButton iconClass="custom-icon-class" />
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
iconClass?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Specifies the text of the Floating Action Button.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```jsx
|
|
106
|
+
* <FloatingActionButton text="Click me" />
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
text?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Specifies the horizontal and vertical offset of the FloatingActionButton.
|
|
112
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/buttons/floatingactionbutton/positioning).
|
|
113
|
+
*
|
|
114
|
+
* Normally, the floating button positions next to the boundaries of its container with a default offset of `16px`.
|
|
115
|
+
*
|
|
116
|
+
* Positive offsets move floating buttons, which are in a corner, further from that corner. Buttons, which are
|
|
117
|
+
* not in a corner, can be moved along the container's boundary or towards the center of the container.
|
|
118
|
+
*
|
|
119
|
+
* A negative offset can force a button to overflow the boundaries of its container.
|
|
120
|
+
*
|
|
121
|
+
* The possible keys are:
|
|
122
|
+
* * `x` — Sets the horizontal offset of the FloatingActionButton.
|
|
123
|
+
* * `y` — Sets the vertical offset of the FloatingActionButton.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```jsx
|
|
127
|
+
* <FloatingActionButton alignOffset={{ horizontal: 10, vertical: 20 }} />
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
alignOffset?: FloatingActionButtonAlignOffset;
|
|
131
|
+
/**
|
|
132
|
+
* Specifies the alignment of the FloatingActionButton within its container.
|
|
133
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/buttons/floatingactionbutton/positioning).
|
|
134
|
+
*
|
|
135
|
+
* > Centering the FloatingActionButton in both horizontal and vertical dimension is not a typical use case.
|
|
136
|
+
* Still, it is possible to achieve such a layout with appropriate offsets. Setting horizontal: "center" and vertical: "middle"
|
|
137
|
+
* at the same time is not supported.
|
|
138
|
+
*
|
|
139
|
+
* The possible keys are:
|
|
140
|
+
* * `horizontal` — Defines the possible horizontal alignment of the FloatingActionButton.
|
|
141
|
+
* * `start` — Uses the start point of the container.
|
|
142
|
+
* * `center` — Uses the center point of the container.
|
|
143
|
+
* * `end` (Default) — Uses the end point of the container
|
|
144
|
+
* * `vertical` — Defines the possible vertical alignment of the FloatingActionButton.
|
|
145
|
+
* * `top` — Uses the top point of the container.
|
|
146
|
+
* * `middle` — Uses the middle point of the container.
|
|
147
|
+
* * `bottom` (Default) — Uses the bottom point of the container.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```jsx
|
|
151
|
+
* <FloatingActionButton align="bottom end" />
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
align?: FloatingActionButtonAlign;
|
|
155
|
+
/**
|
|
156
|
+
* Specifies the position mode of the Floating Action Button.
|
|
157
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/buttons/floatingactionbutton/positioning). It is based on the
|
|
158
|
+
* [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position) rule.
|
|
159
|
+
*
|
|
160
|
+
* * The possible values are:
|
|
161
|
+
* * 'fixed' (Default)
|
|
162
|
+
* * 'absolute'
|
|
163
|
+
*
|
|
164
|
+
* @default 'fixed'
|
|
165
|
+
* @example
|
|
166
|
+
* ```jsx
|
|
167
|
+
* <FloatingActionButton positionMode="absolute" />
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
positionMode?: FloatingActionButtonPositionMode;
|
|
171
|
+
/**
|
|
172
|
+
* Specifies the size of the FloatingActionButton.
|
|
173
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/buttons/floatingactionbutton/appearance).
|
|
174
|
+
*
|
|
175
|
+
* The possible values are:
|
|
176
|
+
* * `small` — Applies half of the default padding, e.g. `8px`.
|
|
177
|
+
* * `medium` — Applies the default padding, e.g. `16px`.
|
|
178
|
+
* * `large` — Applies one and one half of the default padding, e.g. `24px`.
|
|
179
|
+
*
|
|
180
|
+
* @default undefined (theme-controlled)
|
|
181
|
+
* @example
|
|
182
|
+
* ```jsx
|
|
183
|
+
* <FloatingActionButton size="large" />
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
size?: FloatingActionButtonSize;
|
|
187
|
+
/**
|
|
188
|
+
* Configures the rounding of the Floating Action Button.
|
|
189
|
+
*
|
|
190
|
+
* The possible values are:
|
|
191
|
+
* * `small`
|
|
192
|
+
* * `medium`
|
|
193
|
+
* * `large`
|
|
194
|
+
* * `full`
|
|
195
|
+
*
|
|
196
|
+
* @default undefined (theme-controlled)
|
|
197
|
+
* @example
|
|
198
|
+
* ```jsx
|
|
199
|
+
* <FloatingActionButton rounded="small" />
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
rounded?: FloatingActionButtonRounded;
|
|
203
|
+
/**
|
|
204
|
+
* Configures the theme color of the FloatingActionButton.
|
|
205
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/buttons/floatingactionbutton/appearance).
|
|
206
|
+
*
|
|
207
|
+
* The possible values are:
|
|
208
|
+
* * `primary`—Applies coloring based on the primary theme color.
|
|
209
|
+
* * `secondary`—Applies coloring based on the secondary theme color.
|
|
210
|
+
* * `tertiary`— Applies coloring based on the tertiary theme color.
|
|
211
|
+
* * `info`—Applies coloring based on the info theme color.
|
|
212
|
+
* * `success`— Applies coloring based on the success theme color.
|
|
213
|
+
* * `warning`— Applies coloring based on the warning theme color.
|
|
214
|
+
* * `error`— Applies coloring based on the error theme color.
|
|
215
|
+
* * `dark`— Applies coloring based on the dark theme color.
|
|
216
|
+
* * `light`— Applies coloring based on the light theme color.
|
|
217
|
+
* * `inverse`— Applies coloring based on the inverse theme color.
|
|
218
|
+
*
|
|
219
|
+
* @default undefined (theme-controlled)
|
|
220
|
+
* @example
|
|
221
|
+
* ```jsx
|
|
222
|
+
* <FloatingActionButton themeColor="secondary" />
|
|
223
|
+
* ```
|
|
224
|
+
*/
|
|
225
|
+
themeColor?: FloatingActionButtonThemeColor;
|
|
226
|
+
/**
|
|
227
|
+
* Defines the collection of items rendered in the Floating Action Button.
|
|
228
|
+
*
|
|
229
|
+
* @example
|
|
230
|
+
* ```jsx
|
|
231
|
+
* <FloatingActionButton items={[{ text: 'Item 1' }, { text: 'Item 2' }]} />
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
items?: Array<FloatingActionButtonItemProps>;
|
|
235
|
+
/**
|
|
236
|
+
* Overrides the default component responsible for rendering items.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```jsx
|
|
240
|
+
* <FloatingActionButton item={CustomItemComponent} />
|
|
241
|
+
* ```
|
|
242
|
+
*/
|
|
243
|
+
item?: React.ComponentType<FloatingActionButtonItemProps>;
|
|
244
|
+
/**
|
|
245
|
+
* Configures the popup settings for the Floating Action Button.
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* ```jsx
|
|
249
|
+
* <FloatingActionButton popupSettings={{ animate: false }} />
|
|
250
|
+
* ```
|
|
251
|
+
*/
|
|
252
|
+
popupSettings?: FloatingActionButtonPopupSettings;
|
|
253
|
+
/**
|
|
254
|
+
* Sets the `tabIndex` of the main button.
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* ```jsx
|
|
258
|
+
* <FloatingActionButton tabIndex={0} />
|
|
259
|
+
* ```
|
|
260
|
+
*/
|
|
261
|
+
tabIndex?: number;
|
|
262
|
+
/**
|
|
263
|
+
* Sets the `accessKey` of the main button.
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* ```jsx
|
|
267
|
+
* <FloatingActionButton accessKey="a" />
|
|
268
|
+
* ```
|
|
269
|
+
*/
|
|
270
|
+
accessKey?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Enables modal behavior by rendering an overlay under the Floating Action Button.
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* ```jsx
|
|
276
|
+
* <FloatingActionButton modal />
|
|
277
|
+
* ```
|
|
278
|
+
*/
|
|
279
|
+
modal?: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Sets styles for the overlay element when the `modal` prop is enabled.
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```jsx
|
|
285
|
+
* <FloatingActionButton overlayStyle={{ backgroundColor: 'rgba(0, 0, 0, 0.5)' }} />
|
|
286
|
+
* ```
|
|
287
|
+
*/
|
|
288
|
+
overlayStyle?: React.CSSProperties;
|
|
289
|
+
/**
|
|
290
|
+
* Fires when the Floating Action Button is focused.
|
|
291
|
+
*
|
|
292
|
+
* @example
|
|
293
|
+
* ```jsx
|
|
294
|
+
* <FloatingActionButton onFocus={(event) => console.log(event)} />
|
|
295
|
+
* ```
|
|
296
|
+
*/
|
|
297
|
+
onFocus?: (event: FloatingActionButtonEvent) => void;
|
|
298
|
+
/**
|
|
299
|
+
* Fires when the Floating Action Button is blurred.
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* ```jsx
|
|
303
|
+
* <FloatingActionButton onBlur={(event) => console.log(event)} />
|
|
304
|
+
* ```
|
|
305
|
+
*/
|
|
306
|
+
onBlur?: (event: FloatingActionButtonEvent) => void;
|
|
307
|
+
/**
|
|
308
|
+
* Fires when the Floating Action Button is clicked.
|
|
309
|
+
*
|
|
310
|
+
* @example
|
|
311
|
+
* ```jsx
|
|
312
|
+
* <FloatingActionButton onClick={(event) => console.log(event)} />
|
|
313
|
+
* ```
|
|
314
|
+
*/
|
|
315
|
+
onClick?: (event: FloatingActionButtonEvent) => void;
|
|
316
|
+
/**
|
|
317
|
+
* Fires when a Floating Action Button item is clicked.
|
|
318
|
+
*
|
|
319
|
+
* @example
|
|
320
|
+
* ```jsx
|
|
321
|
+
* <FloatingActionButton onItemClick={(event) => console.log(event)} />
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
onItemClick?: (event: FloatingActionButtonItemEvent) => void;
|
|
325
|
+
/**
|
|
326
|
+
* Fires when a key is pressed while the Floating Action Button is focused.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```jsx
|
|
330
|
+
* <FloatingActionButton onKeyDown={(event) => console.log(event)} />
|
|
331
|
+
* ```
|
|
332
|
+
*/
|
|
333
|
+
onKeyDown?: (event: FloatingActionButtonEvent) => void;
|
|
334
|
+
/**
|
|
335
|
+
* Fires when the popup which contains the items is opened
|
|
336
|
+
* [see example](https://www.telerik.com/kendo-react-ui/components/buttons/floatingactionbutton/events).
|
|
337
|
+
*
|
|
338
|
+
* @example
|
|
339
|
+
* ```jsx
|
|
340
|
+
* <FloatingActionButton onOpen={(event) => console.log(event)} />
|
|
341
|
+
* ```
|
|
342
|
+
*/
|
|
343
|
+
onOpen?: (event: FloatingActionButtonEvent) => void;
|
|
344
|
+
/**
|
|
345
|
+
* Fires when the popup containing the items is closed.
|
|
346
|
+
*
|
|
347
|
+
* @example
|
|
348
|
+
* ```jsx
|
|
349
|
+
* <FloatingActionButton onClose={(event) => console.log(event)} />
|
|
350
|
+
* ```
|
|
351
|
+
*/
|
|
352
|
+
onClose?: (event: FloatingActionButtonEvent) => void;
|
|
353
|
+
}
|
|
354
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the horizontal and vertical offset applied to the Floating Action Button.
|
|
10
|
+
*
|
|
11
|
+
* Normally, the floating button is positioned next to the boundaries of its container with a default offset of `16px`.
|
|
12
|
+
*
|
|
13
|
+
* Positive offsets move floating buttons, which are in a corner, further from that corner. Buttons, which are
|
|
14
|
+
* not in a corner, can be moved along the container's boundary or towards the center of the container.
|
|
15
|
+
*
|
|
16
|
+
* A negative offset can be used to force a button to overflow the boundaries of its container.
|
|
17
|
+
*/
|
|
18
|
+
export interface FloatingActionButtonAlignOffset {
|
|
19
|
+
/**
|
|
20
|
+
* Sets the horizontal offset of the Floating Action Button.
|
|
21
|
+
*/
|
|
22
|
+
x?: number | string;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the vertical offset of the Floating Action Button.
|
|
25
|
+
*/
|
|
26
|
+
y?: number | string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the horizontal and vertical alignment of the Floating Action Button in relation to the container.
|
|
10
|
+
*
|
|
11
|
+
* > Centering the Floating Action Button in both horizontal and vertical dimension is not a typical use case.
|
|
12
|
+
* Still, it is possible to achieve such a layout with appropriate offsets. Setting horizontal: "center" and
|
|
13
|
+
* vertical: "middle" at the same time is not supported.
|
|
14
|
+
*/
|
|
15
|
+
export interface FloatingActionButtonAlign {
|
|
16
|
+
/**
|
|
17
|
+
* Defines the possible horizontal alignment of the Floating Action Button.
|
|
18
|
+
*
|
|
19
|
+
* The available values are:
|
|
20
|
+
* - `start`—Uses the start point of the container.
|
|
21
|
+
* - `center`—Uses the center point of the container.
|
|
22
|
+
* - `end`(Default)—Uses the end point of the container.
|
|
23
|
+
*/
|
|
24
|
+
horizontal?: 'start' | 'center' | 'end';
|
|
25
|
+
/**
|
|
26
|
+
* Defines the possible vertical alignment of the Floating Action Button.
|
|
27
|
+
*
|
|
28
|
+
* The available values are:
|
|
29
|
+
* - `top`—Uses the top point of the container.
|
|
30
|
+
* - `middle`—Uses the middle point of the container.
|
|
31
|
+
* - `bottom`(Default)—Uses the bottom point of the container.
|
|
32
|
+
*/
|
|
33
|
+
vertical?: 'top' | 'middle' | 'bottom';
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { BaseEvent } from '@progress/kendo-react-common';
|
|
9
|
+
import { FloatingActionButtonItemProps } from '../../index.js';
|
|
10
|
+
import { FloatingActionButtonHandle } from '../interfaces/FloatingActionButtonHandle.js';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the return type of the FloatingActionButton events.
|
|
13
|
+
*/
|
|
14
|
+
export interface FloatingActionButtonEvent extends BaseEvent<FloatingActionButtonHandle> {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Represents the return type of the FloatingActionButtonItemEvent.
|
|
18
|
+
*/
|
|
19
|
+
export interface FloatingActionButtonItemEvent extends BaseEvent<FloatingActionButtonHandle> {
|
|
20
|
+
/**
|
|
21
|
+
* The clicked item props.
|
|
22
|
+
*/
|
|
23
|
+
itemProps?: FloatingActionButtonItemProps;
|
|
24
|
+
/**
|
|
25
|
+
* The zero-based index of the clicked item.
|
|
26
|
+
*/
|
|
27
|
+
itemIndex: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the position mode of the Floating Action Button. It is based on the
|
|
10
|
+
* [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position) rule.
|
|
11
|
+
*
|
|
12
|
+
* * The possible values are:
|
|
13
|
+
* * 'absolute' (Default)
|
|
14
|
+
* * 'fixed'
|
|
15
|
+
*/
|
|
16
|
+
export type FloatingActionButtonPositionMode = 'absolute' | 'fixed';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the rounding of the Floating Action Button.
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* * `small`
|
|
13
|
+
* * `medium`
|
|
14
|
+
* * `large`
|
|
15
|
+
* * `full`
|
|
16
|
+
* * `null`—Does not set a rounded `className`.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type FloatingActionButtonRounded = 'small' | 'medium' | 'large' | 'full';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the size of the FloatingActionButton.
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* * `small`—Applies half of the default padding, e.g. `8px`.
|
|
13
|
+
* * `medium` (Default)—Applies the default padding, e.g. `16px`.
|
|
14
|
+
* * `large`—Applies one and one half of the default padding, e.g. `24px`.
|
|
15
|
+
* * `null`—Does not set a size `className`.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export type FloatingActionButtonSize = 'small' | 'medium' | 'large';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the theme color of the Floating Action Button..
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* * `primary` (Default)—Applies coloring based on the primary theme color.
|
|
13
|
+
* * `secondary`—Applies coloring based on the secondary theme color.
|
|
14
|
+
* * `tertiary`— Applies coloring based on the tertiary theme color.
|
|
15
|
+
* * `info`—Applies coloring based on the info theme color.
|
|
16
|
+
* * `success`— Applies coloring based on the success theme color.
|
|
17
|
+
* * `warning`— Applies coloring based on the warning theme color.
|
|
18
|
+
* * `error`— Applies coloring based on the error theme color.
|
|
19
|
+
* * `dark`— Applies coloring based on the dark theme color.
|
|
20
|
+
* * `light`— Applies coloring based on the light theme color.
|
|
21
|
+
* * `inverse`— Applies coloring based on the inverse theme color.
|
|
22
|
+
* * `null`—Does not set a theme color `className`.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export type FloatingActionButtonThemeColor = null | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { Align } from '@progress/kendo-react-popup';
|
|
9
|
+
import { FloatingActionButtonAlignOffset } from './models/align-offset.js';
|
|
10
|
+
import { FloatingActionButtonAlign } from './models/align.js';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare const DEFAULT_OFFSET = "16px";
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export declare const toStringValues: (val: number | string) => string;
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export declare const getAnchorAlign: (fabAlign: FloatingActionButtonAlign, rtl?: boolean) => Align;
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export declare const getPopupAlign: (fabAlign: FloatingActionButtonAlign, rtl: boolean) => Align;
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export declare const getTextDirectionClass: (rtl: string, hAlign: any) => any;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export declare const position: (ref: any, align: FloatingActionButtonAlign, alignOffset: FloatingActionButtonAlignOffset | undefined, isRtl: boolean) => void;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ButtonsClassStructure } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The props of the ButtonItem component.
|
|
12
|
+
* The ButtonItem component renders each list item in the dropdown buttons list.
|
|
13
|
+
*/
|
|
14
|
+
export interface ButtonItemProps {
|
|
15
|
+
/**
|
|
16
|
+
* Determines whether the item is focused.
|
|
17
|
+
*/
|
|
18
|
+
focused?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The index of the item in the items list.
|
|
21
|
+
*/
|
|
22
|
+
index?: number;
|
|
23
|
+
/**
|
|
24
|
+
* A function that is fired when the item is clicked.
|
|
25
|
+
*/
|
|
26
|
+
onClick: (event: React.MouseEvent<HTMLLIElement, MouseEvent>, index?: number) => void;
|
|
27
|
+
/**
|
|
28
|
+
* A function that is fired when the mouse or pointer is pressed down on the item.
|
|
29
|
+
*/
|
|
30
|
+
onDown?: (event: React.PointerEvent<HTMLLIElement> | React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
|
|
31
|
+
/**
|
|
32
|
+
* A React component for rendering the item.
|
|
33
|
+
*/
|
|
34
|
+
item?: null | React.ComponentType<{
|
|
35
|
+
item: any;
|
|
36
|
+
itemIndex: number;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* A function or React component for rendering the item. The default rendering includes an icon, an image, and text.
|
|
40
|
+
*/
|
|
41
|
+
render?: ((li: React.ReactElement<HTMLLIElement>, props: ButtonItemProps) => React.ReactNode) | React.ComponentType<{
|
|
42
|
+
item: any;
|
|
43
|
+
itemIndex: number;
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* The data item represented by this button item.
|
|
47
|
+
*/
|
|
48
|
+
dataItem: any;
|
|
49
|
+
/**
|
|
50
|
+
* The id attribute of the item.
|
|
51
|
+
*/
|
|
52
|
+
id?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The field of the data item that provides the text content of the item.
|
|
55
|
+
*/
|
|
56
|
+
textField?: string;
|
|
57
|
+
/**
|
|
58
|
+
* One or more CSS classes that will be added to the item element.
|
|
59
|
+
*/
|
|
60
|
+
className?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Internal property for the unstyled rendering variant of the component.
|
|
63
|
+
*/
|
|
64
|
+
unstyled?: ButtonsClassStructure;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
export declare const ButtonItem: {
|
|
70
|
+
(props: ButtonItemProps): any;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|