@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.
Files changed (95) hide show
  1. package/Button.js +8 -0
  2. package/Button.mjs +124 -0
  3. package/ButtonGroup.js +8 -0
  4. package/ButtonGroup.mjs +76 -0
  5. package/Chip/Chip.js +8 -0
  6. package/Chip/Chip.mjs +220 -0
  7. package/Chip/ChipList.js +8 -0
  8. package/Chip/ChipList.mjs +190 -0
  9. package/Chip/chip-list-contexts.js +8 -0
  10. package/Chip/chip-list-contexts.mjs +18 -0
  11. package/Chip/data-reducer.js +8 -0
  12. package/Chip/data-reducer.mjs +25 -0
  13. package/Chip/focus-reducer.js +8 -0
  14. package/Chip/focus-reducer.mjs +28 -0
  15. package/Chip/selection-reducer.js +8 -0
  16. package/Chip/selection-reducer.mjs +47 -0
  17. package/FloatingActionButton/FloatingActionButton.js +8 -0
  18. package/FloatingActionButton/FloatingActionButton.mjs +343 -0
  19. package/FloatingActionButton/FloatingActionButtonItem.js +8 -0
  20. package/FloatingActionButton/FloatingActionButtonItem.mjs +93 -0
  21. package/FloatingActionButton/utils.js +8 -0
  22. package/FloatingActionButton/utils.mjs +46 -0
  23. package/ListButton/ButtonItem.js +8 -0
  24. package/ListButton/ButtonItem.mjs +63 -0
  25. package/ListButton/DropDownButton.js +8 -0
  26. package/ListButton/DropDownButton.mjs +267 -0
  27. package/ListButton/DropDownButtonItem.js +8 -0
  28. package/ListButton/DropDownButtonItem.mjs +31 -0
  29. package/ListButton/SplitButton.js +8 -0
  30. package/ListButton/SplitButton.mjs +298 -0
  31. package/ListButton/SplitButtonItem.js +8 -0
  32. package/ListButton/SplitButtonItem.mjs +30 -0
  33. package/ListButton/utils/navigation.js +8 -0
  34. package/ListButton/utils/navigation.mjs +35 -0
  35. package/ListButton/utils/popup.js +8 -0
  36. package/ListButton/utils/popup.mjs +20 -0
  37. package/dist/cdn/js/kendo-react-buttons.js +8 -5
  38. package/index.d.mts +2227 -5
  39. package/index.d.ts +2227 -40
  40. package/index.js +8 -5
  41. package/index.mjs +44 -1906
  42. package/package-metadata.js +8 -0
  43. package/package-metadata.mjs +19 -0
  44. package/package.json +3 -3
  45. package/toolbar/Toolbar.js +8 -0
  46. package/toolbar/Toolbar.mjs +124 -0
  47. package/toolbar/tools/ToolbarItem.js +8 -0
  48. package/toolbar/tools/ToolbarItem.mjs +44 -0
  49. package/toolbar/tools/ToolbarSeparator.js +8 -0
  50. package/toolbar/tools/ToolbarSeparator.mjs +21 -0
  51. package/toolbar/tools/ToolbarSpacer.js +8 -0
  52. package/toolbar/tools/ToolbarSpacer.mjs +36 -0
  53. package/util.js +8 -0
  54. package/util.mjs +36 -0
  55. package/Button.d.ts +0 -146
  56. package/ButtonGroup.d.ts +0 -36
  57. package/ButtonGroupInterface.d.ts +0 -36
  58. package/ButtonInterface.d.ts +0 -39
  59. package/Chip/Chip.d.ts +0 -238
  60. package/Chip/ChipList.d.ts +0 -119
  61. package/Chip/chip-list-contexts.d.ts +0 -17
  62. package/Chip/data-reducer.d.ts +0 -26
  63. package/Chip/focus-reducer.d.ts +0 -28
  64. package/Chip/selection-reducer.d.ts +0 -34
  65. package/FloatingActionButton/FloatingActionButton.d.ts +0 -21
  66. package/FloatingActionButton/FloatingActionButtonItem.d.ts +0 -109
  67. package/FloatingActionButton/interfaces/FloatingActionButtonHandle.d.ts +0 -17
  68. package/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.d.ts +0 -28
  69. package/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +0 -219
  70. package/FloatingActionButton/models/align-offset.d.ts +0 -24
  71. package/FloatingActionButton/models/align.d.ts +0 -31
  72. package/FloatingActionButton/models/events.d.ts +0 -25
  73. package/FloatingActionButton/models/position-mode.d.ts +0 -13
  74. package/FloatingActionButton/models/rounded.d.ts +0 -16
  75. package/FloatingActionButton/models/size.d.ts +0 -15
  76. package/FloatingActionButton/models/theme-color.d.ts +0 -22
  77. package/FloatingActionButton/utils.d.ts +0 -31
  78. package/ListButton/ButtonItem.d.ts +0 -34
  79. package/ListButton/DropDownButton.d.ts +0 -127
  80. package/ListButton/DropDownButtonItem.d.ts +0 -34
  81. package/ListButton/SplitButton.d.ts +0 -129
  82. package/ListButton/SplitButtonItem.d.ts +0 -29
  83. package/ListButton/models/ButtonItem.d.ts +0 -38
  84. package/ListButton/models/ListButtonProps.d.ts +0 -339
  85. package/ListButton/models/PopupSettings.d.ts +0 -32
  86. package/ListButton/models/events.d.ts +0 -51
  87. package/ListButton/utils/navigation.d.ts +0 -9
  88. package/ListButton/utils/popup.d.ts +0 -13
  89. package/models/index.d.ts +0 -92
  90. package/package-metadata.d.ts +0 -9
  91. package/toolbar/Toolbar.d.ts +0 -175
  92. package/toolbar/tools/ToolbarItem.d.ts +0 -42
  93. package/toolbar/tools/ToolbarSeparator.d.ts +0 -20
  94. package/toolbar/tools/ToolbarSpacer.d.ts +0 -27
  95. package/util.d.ts +0 -31
@@ -1,219 +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 { FloatingActionButtonPopupSettings } from './FloatingActionButtonPopupSettings';
6
- import { FloatingActionButtonItemProps } from '../FloatingActionButtonItem';
7
- import { FloatingActionButtonAlign } from '../models/align';
8
- import { FloatingActionButtonAlignOffset } from '../models/align-offset';
9
- import { FloatingActionButtonEvent, FloatingActionButtonItemEvent } from '../models/events';
10
- import { FloatingActionButtonPositionMode } from '../models/position-mode';
11
- import { FloatingActionButtonSize } from '../models/size';
12
- import { FloatingActionButtonThemeColor } from '../models/theme-color';
13
- import { FloatingActionButtonRounded } from '../models/rounded';
14
- import { SVGIcon } from '@progress/kendo-react-common';
15
- /**
16
- * @hidden
17
- */
18
- type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
19
- /**
20
- * Represents the props of the [KendoReact FloatingActionButton component]({% slug overview_floatingactionbutton %}).
21
- */
22
- export interface FloatingActionButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onBlur' | 'onFocus' | 'onKeyDown' | 'onClick'> {
23
- /**
24
- * Sets additional CSS styles to the Floating Action Button.
25
- */
26
- style?: React.CSSProperties;
27
- /**
28
- * Specifies a list of CSS classes that will be added to the Floating Action Button.
29
- */
30
- className?: string;
31
- /**
32
- * Represents the `dir` HTML attribute. This is used to switch from LTR to RTL [see example]({% slug rtl_buttons %}).
33
- */
34
- dir?: string;
35
- /**
36
- * Sets the `id` property of the root HTML element.
37
- */
38
- id?: string;
39
- /**
40
- * Specifies if the Floating Action Button is disabled [see example]({% slug disabled_floatingactionbutton %}). Defaults to `false`.
41
- */
42
- disabled?: boolean;
43
- /**
44
- * Defines the icon rendered in the Floating Action Button [see example]({% slug contenttypes_floatingactionbutton %}).
45
- */
46
- icon?: string;
47
- /**
48
- * Defines the SVG icon rendered in the Floating Action Button [see example]({% slug contenttypes_floatingactionbutton %}).
49
- */
50
- svgIcon?: SVGIcon;
51
- /**
52
- * Defines a CSS class or multiple classes separated by spaces which are applied
53
- * to a `span` element inside the Floating Action Button. Allows the usage of custom icons.
54
- */
55
- iconClass?: string;
56
- /**
57
- * Specifies the text of the Floating Action Button [see example]({% slug contenttypes_floatingactionbutton %}).
58
- */
59
- text?: string;
60
- /**
61
- * Specifies the horizontal and vertical offset applied to the Floating Action Button
62
- * [see example]({% slug positioning_floatingactionbutton %}).
63
- *
64
- * Normally, the floating button is positioned next to the boundaries of its container with a default offset of `16px`.
65
- *
66
- * Positive offsets move floating buttons, which are in a corner, further from that corner. Buttons, which are
67
- * not in a corner, can be moved along the container's boundary or towards the center of the container.
68
- *
69
- * A negative offset can be used to force a button to overflow the boundaries of its container.
70
- *
71
- * The possible keys are:
72
- * * `x`&mdash;Sets the horizontal offset of the Floating Action Button.
73
- * * `y`&mdash;Sets the vertical offset of the Floating Action Button.
74
- *
75
- */
76
- alignOffset?: FloatingActionButtonAlignOffset;
77
- /**
78
- * Specifies the horizontal and vertical alignment of the Floating Action Button in relation to the container
79
- * [see example]({% slug positioning_floatingactionbutton %}).
80
- *
81
- * > Centering the Floating Action Button in both horizontal and vertical dimension is not a typical use case.
82
- * Still, it is possible to achieve such a layout with appropriate offsets. Setting horizontal: "center" and vertical: "middle"
83
- * at the same time is not supported.
84
- *
85
- * The possible keys are:
86
- * * `horizontal`&mdash; Defines the possible horizontal alignment of the Floating Action Button..
87
- * * `start`&mdash;Uses the start point of the container.
88
- * * `center`&mdash;Uses the center point of the container.
89
- * * `end`(Default)&mdash;Uses the end point of the container
90
- * * `vertical`&mdash; Defines the possible vertical alignment of the Floating Action Button..
91
- * * `top`&mdash;Uses the top point of the container.
92
- * * `middle`&mdash;Uses the middle point of the container.
93
- * * `bottom`(Default)&mdash;Uses the bottom point of the container.
94
- *
95
- */
96
- align?: FloatingActionButtonAlign;
97
- /**
98
- * Specifies the position mode of the Floating Action Button
99
- * [see example]({% slug positioning_floatingactionbutton %}). It is based on the
100
- * [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position) rule.
101
- *
102
- * * The possible values are:
103
- * * 'fixed' (Default)
104
- * * 'absolute'
105
- */
106
- positionMode?: FloatingActionButtonPositionMode;
107
- /**
108
- * Specifies the size of the Floating Action Button
109
- * [see example]({% slug appearance_floatingactionbutton %}).
110
- *
111
- * The possible values are:
112
- * * `small`&mdash;Applies half of the default padding, e.g. `8px`.
113
- * * `medium` (Default)&mdash;Applies the default padding, e.g. `16px`.
114
- * * `large`&mdash;Applies one and one half of the default padding, e.g. `24px`.
115
- * * `null`&mdash;Does not set a size `className`.
116
- *
117
- */
118
- size?: FloatingActionButtonSize;
119
- /**
120
- * Specifies the rounding of the Floating Action Button.
121
- *
122
- * The possible values are:
123
- * * `small`
124
- * * `medium`
125
- * * `large`
126
- * * `full`
127
- * * `null`&mdash;Does not set a rounded `className`.
128
- *
129
- * @default `full`
130
- */
131
- rounded?: FloatingActionButtonRounded;
132
- /**
133
- * Specifies the theme color of the Floating Action Button
134
- * [see example]({% slug appearance_floatingactionbutton %}).
135
- *
136
- * The possible values are:
137
- * * `primary` (Default)&mdash;Applies coloring based on the primary theme color.
138
- * * `secondary`&mdash;Applies coloring based on the secondary theme color.
139
- * * `tertiary`&mdash; Applies coloring based on the tertiary theme color.
140
- * * `info`&mdash;Applies coloring based on the info theme color.
141
- * * `success`&mdash; Applies coloring based on the success theme color.
142
- * * `warning`&mdash; Applies coloring based on the warning theme color.
143
- * * `error`&mdash; Applies coloring based on the error theme color.
144
- * * `dark`&mdash; Applies coloring based on the dark theme color.
145
- * * `light`&mdash; Applies coloring based on the light theme color.
146
- * * `inverse`&mdash; Applies coloring based on the inverse theme color.
147
- * * `null`&mdash;Does not set a theme color `className`.
148
- *
149
- */
150
- themeColor?: FloatingActionButtonThemeColor;
151
- /**
152
- * The collection of items that will be rendered in the Floating Action Button
153
- * [see example]({% slug databinding_floatingactionbutton %}).
154
- */
155
- items?: Array<FloatingActionButtonItemProps>;
156
- /**
157
- * Overrides the default component responsible for visualizing a single item
158
- * [see example]({% slug customization_floatingactionbutton %}#toc-items-rendering).
159
- *
160
- * The default Component is: [FloatingActionButtonItem]({% slug api_buttons_floatingactionbuttonitem %}).
161
- */
162
- item?: React.ComponentType<FloatingActionButtonItemProps>;
163
- /**
164
- * Represents the additional props that will be passed to the Popup inside the Floating Action Button
165
- * [see example]({% slug customization_floatingactionbutton %}#toc-popup-behavior).
166
- */
167
- popupSettings?: FloatingActionButtonPopupSettings;
168
- /**
169
- * Specifies the `tabIndex` of the main button.
170
- */
171
- tabIndex?: number;
172
- /**
173
- * Specifies the `accessKey` of the main button.
174
- */
175
- accessKey?: string;
176
- /**
177
- * Specifies if the Floating Action Button will be modal by rendering an overlay under the component.
178
- */
179
- modal?: boolean;
180
- /**
181
- * Set styles to the Floating Action Button overlay element rendered when the `modal` prop is enabled.
182
- */
183
- overlayStyle?: React.CSSProperties;
184
- /**
185
- * Fires when the Floating Action Button is focused
186
- * [see example]({% slug overview_floatingactionbutton %}#toc-events).
187
- */
188
- onFocus?: (event: FloatingActionButtonEvent) => void;
189
- /**
190
- * Fires when the Floating Action Button is blurred
191
- * [see example]({% slug overview_floatingactionbutton %}#toc-events).
192
- */
193
- onBlur?: (event: FloatingActionButtonEvent) => void;
194
- /**
195
- * Fires when the Floating Action Button is clicked.
196
- */
197
- onClick?: (event: FloatingActionButtonEvent) => void;
198
- /**
199
- * Fires when the Floating Action Button Item is clicked
200
- * [see example]({% slug overview_floatingactionbutton %}#toc-events).
201
- */
202
- onItemClick?: (event: FloatingActionButtonItemEvent) => void;
203
- /**
204
- * Triggers onKeyDown event
205
- * [see example]({% slug overview_floatingactionbutton %}#toc-events).
206
- */
207
- onKeyDown?: (event: FloatingActionButtonEvent) => void;
208
- /**
209
- * Fires when the popup which contains the items is opened
210
- * [see example]({% slug overview_floatingactionbutton %}#toc-events).
211
- */
212
- onOpen?: (event: FloatingActionButtonEvent) => void;
213
- /**
214
- * Fires when the popup which contains the items is closed
215
- * [see example]({% slug overview_floatingactionbutton %}#toc-events).
216
- */
217
- onClose?: (event: FloatingActionButtonEvent) => void;
218
- }
219
- export {};
@@ -1,24 +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
- * Specifies the horizontal and vertical offset applied to the Floating Action Button.
7
- *
8
- * Normally, the floating button is positioned next to the boundaries of its container with a default offset of `16px`.
9
- *
10
- * Positive offsets move floating buttons, which are in a corner, further from that corner. Buttons, which are
11
- * not in a corner, can be moved along the container's boundary or towards the center of the container.
12
- *
13
- * A negative offset can be used to force a button to overflow the boundaries of its container.
14
- */
15
- export interface FloatingActionButtonAlignOffset {
16
- /**
17
- * Sets the horizontal offset of the Floating Action Button.
18
- */
19
- x?: number | string;
20
- /**
21
- * Sets the vertical offset of the Floating Action Button.
22
- */
23
- y?: number | string;
24
- }
@@ -1,31 +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
- * Specifies the horizontal and vertical alignment of the Floating Action Button in relation to the container.
7
- *
8
- * > Centering the Floating Action Button in both horizontal and vertical dimension is not a typical use case.
9
- * Still, it is possible to achieve such a layout with appropriate offsets. Setting horizontal: "center" and
10
- * vertical: "middle" at the same time is not supported.
11
- */
12
- export interface FloatingActionButtonAlign {
13
- /**
14
- * Defines the possible horizontal alignment of the Floating Action Button.
15
- *
16
- * The available values are:
17
- * - `start`&mdash;Uses the start point of the container.
18
- * - `center`&mdash;Uses the center point of the container.
19
- * - `end`(Default)&mdash;Uses the end point of the container.
20
- */
21
- horizontal?: 'start' | 'center' | 'end';
22
- /**
23
- * Defines the possible vertical alignment of the Floating Action Button.
24
- *
25
- * The available values are:
26
- * - `top`&mdash;Uses the top point of the container.
27
- * - `middle`&mdash;Uses the middle point of the container.
28
- * - `bottom`(Default)&mdash;Uses the bottom point of the container.
29
- */
30
- vertical?: 'top' | 'middle' | 'bottom';
31
- }
@@ -1,25 +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 { BaseEvent } from '@progress/kendo-react-common';
6
- import { FloatingActionButtonItemProps } from '../..';
7
- import { FloatingActionButtonHandle } from '../interfaces/FloatingActionButtonHandle';
8
- /**
9
- * Represents the return type of the FloatingActionButton events.
10
- */
11
- export interface FloatingActionButtonEvent extends BaseEvent<FloatingActionButtonHandle> {
12
- }
13
- /**
14
- * Represents the return type of the FloatingActionButtonItemEvent.
15
- */
16
- export interface FloatingActionButtonItemEvent extends BaseEvent<FloatingActionButtonHandle> {
17
- /**
18
- * The clicked item props.
19
- */
20
- itemProps?: FloatingActionButtonItemProps;
21
- /**
22
- * The zero-based index of the clicked item.
23
- */
24
- itemIndex: number;
25
- }
@@ -1,13 +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
- * Specifies the position mode of the Floating Action Button. It is based on the
7
- * [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position) rule.
8
- *
9
- * * The possible values are:
10
- * * 'absolute' (Default)
11
- * * 'fixed'
12
- */
13
- export type FloatingActionButtonPositionMode = 'absolute' | 'fixed';
@@ -1,16 +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
- * Specifies the rounding of the Floating Action Button.
7
- *
8
- * The possible values are:
9
- * * `small`
10
- * * `medium`
11
- * * `large`
12
- * * `full`
13
- * * `null`&mdash;Does not set a rounded `className`.
14
- *
15
- */
16
- export type FloatingActionButtonRounded = null | 'small' | 'medium' | 'large' | 'full';
@@ -1,15 +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
- * Specifies the size of the Floating Action Button.
7
- *
8
- * The possible values are:
9
- * * `small`&mdash;Applies half of the default padding, e.g. `8px`.
10
- * * `medium` (Default)&mdash;Applies the default padding, e.g. `16px`.
11
- * * `large`&mdash;Applies one and one half of the default padding, e.g. `24px`.
12
- * * `null`&mdash;Does not set a size `className`.
13
- *
14
- */
15
- export type FloatingActionButtonSize = null | 'small' | 'medium' | 'large';
@@ -1,22 +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
- * Specifies the theme color of the Floating Action Button..
7
- *
8
- * The possible values are:
9
- * * `primary` (Default)&mdash;Applies coloring based on the primary theme color.
10
- * * `secondary`&mdash;Applies coloring based on the secondary theme color.
11
- * * `tertiary`&mdash; Applies coloring based on the tertiary theme color.
12
- * * `info`&mdash;Applies coloring based on the info theme color.
13
- * * `success`&mdash; Applies coloring based on the success theme color.
14
- * * `warning`&mdash; Applies coloring based on the warning theme color.
15
- * * `error`&mdash; Applies coloring based on the error theme color.
16
- * * `dark`&mdash; Applies coloring based on the dark theme color.
17
- * * `light`&mdash; Applies coloring based on the light theme color.
18
- * * `inverse`&mdash; Applies coloring based on the inverse theme color.
19
- * * `null`&mdash;Does not set a theme color `className`.
20
- *
21
- */
22
- export type FloatingActionButtonThemeColor = null | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
@@ -1,31 +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 } from '@progress/kendo-react-popup';
6
- import { FloatingActionButtonAlignOffset } from './models/align-offset';
7
- import { FloatingActionButtonAlign } from './models/align';
8
- /**
9
- * @hidden
10
- */
11
- export declare const DEFAULT_OFFSET = "16px";
12
- /**
13
- * @hidden
14
- */
15
- export declare const toStringValues: (val: number | string) => string;
16
- /**
17
- * @hidden
18
- */
19
- export declare const getAnchorAlign: (fabAlign: FloatingActionButtonAlign, rtl?: boolean) => Align;
20
- /**
21
- * @hidden
22
- */
23
- export declare const getPopupAlign: (fabAlign: FloatingActionButtonAlign, rtl: boolean) => Align;
24
- /**
25
- * @hidden
26
- */
27
- export declare const getTextDirectionClass: (rtl: string, hAlign: any) => any;
28
- /**
29
- * @hidden
30
- */
31
- export declare const position: (ref: any, align: FloatingActionButtonAlign, alignOffset: FloatingActionButtonAlignOffset | undefined, isRtl: boolean) => void;
@@ -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
- * The props of the ButtonItem component.
8
- * The ButtonItem component renders each list item in the dropdown buttons list.
9
- */
10
- export interface ButtonItemProps {
11
- focused?: boolean;
12
- index?: number;
13
- onClick: (event: React.MouseEvent<HTMLLIElement, MouseEvent>, index?: number) => void;
14
- onDown?: (event: React.PointerEvent<HTMLLIElement> | React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
15
- item?: null | React.ComponentType<{
16
- item: any;
17
- itemIndex: number;
18
- }>;
19
- render?: ((li: React.ReactElement<HTMLLIElement>, props: ButtonItemProps) => React.ReactNode) | React.ComponentType<{
20
- item: any;
21
- itemIndex: number;
22
- }>;
23
- dataItem: any;
24
- id?: string;
25
- textField?: string;
26
- className?: string;
27
- }
28
- /**
29
- * @hidden
30
- */
31
- export declare const ButtonItem: {
32
- (props: ButtonItemProps): any;
33
- displayName: string;
34
- };
@@ -1,127 +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 PropTypes from 'prop-types';
7
- import { DropDownButtonProps } from './models/ListButtonProps';
8
- /**
9
- * @hidden
10
- */
11
- export interface DropDownButtonState {
12
- focusedIndex?: number;
13
- focused?: boolean;
14
- opened: boolean;
15
- }
16
- /**
17
- * Represents the [KendoReact DropDownButton component]({% slug overview_dropdownbutton %}).
18
- *
19
- * @example
20
- * ```jsx
21
- * class App extends React.Component {
22
- * render() {
23
- * return (
24
- * <DropDownButton text="Act">
25
- * <DropDownButtonItem text="Item1" />
26
- * <DropDownButtonItem text="Item2" />
27
- * <DropDownButtonItem text="Item3" />
28
- * </DropDownButton>
29
- * );
30
- * }
31
- * }
32
- * ReactDOM.render(<App />, document.querySelector('my-app'));
33
- * ```
34
- */
35
- export declare class DropDownButton extends React.Component<DropDownButtonProps, DropDownButtonState> {
36
- /**
37
- * @hidden
38
- */
39
- static propTypes: {
40
- accessKey: PropTypes.Requireable<string>;
41
- ariaLabel: PropTypes.Requireable<string>;
42
- title: PropTypes.Requireable<string>;
43
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
44
- onBlur: PropTypes.Requireable<(...args: any[]) => any>;
45
- onItemClick: PropTypes.Requireable<(...args: any[]) => any>;
46
- onOpen: PropTypes.Requireable<(...args: any[]) => any>;
47
- onClose: PropTypes.Requireable<(...args: any[]) => any>;
48
- items: PropTypes.Requireable<any[]>;
49
- textField: PropTypes.Requireable<string>;
50
- tabIndex: PropTypes.Requireable<number>;
51
- disabled: PropTypes.Requireable<boolean>;
52
- icon: PropTypes.Requireable<string>;
53
- svgIcon: PropTypes.Requireable<PropTypes.InferProps<{
54
- name: PropTypes.Validator<string>;
55
- content: PropTypes.Validator<string>;
56
- viewBox: PropTypes.Validator<string>;
57
- }>>;
58
- iconClass: PropTypes.Requireable<string>;
59
- imageUrl: PropTypes.Requireable<string>;
60
- popupSettings: PropTypes.Requireable<object>;
61
- itemRender: PropTypes.Requireable<(...args: any[]) => any>;
62
- item: PropTypes.Requireable<(...args: any[]) => any>;
63
- className: PropTypes.Requireable<string>;
64
- buttonClass: PropTypes.Requireable<string>;
65
- dir: PropTypes.Requireable<string>;
66
- };
67
- /**
68
- * @hidden
69
- */
70
- static defaultProps: {
71
- size: string;
72
- rounded: string;
73
- fillMode: string;
74
- themeColor: string;
75
- };
76
- /**
77
- * @hidden
78
- */
79
- readonly state: {
80
- opened: boolean;
81
- focused: boolean;
82
- focusedIndex: number;
83
- };
84
- private mainButton;
85
- private list;
86
- private skipFocus;
87
- private get guid();
88
- private buttonsData;
89
- private openedDuringOnChange?;
90
- private get opened();
91
- constructor(props: DropDownButtonProps);
92
- /**
93
- * @hidden
94
- */
95
- render(): import("react/jsx-runtime").JSX.Element;
96
- /**
97
- * @hidden
98
- */
99
- componentDidMount(): void;
100
- /**
101
- * The DOM element of main button.
102
- */
103
- get element(): HTMLButtonElement | null;
104
- private onKeyDown;
105
- private switchFocus;
106
- private handleFocus;
107
- private handleButtonBlur;
108
- private handleMenuBlur;
109
- private setOpen;
110
- private onItemClick;
111
- private onItemDown;
112
- private mouseDown;
113
- private dispatchClickEvent;
114
- private renderPopup;
115
- private onPopupClose;
116
- private listRef;
117
- private renderChildItems;
118
- private onClickMainButton;
119
- private dispatchPopupEvent;
120
- private isItemDisabled;
121
- private isRtl;
122
- }
123
- /**
124
- * Represent the `ref` of the DropDownButton component.
125
- */
126
- export interface DropDownButtonHandle extends Pick<DropDownButton, keyof DropDownButton> {
127
- }
@@ -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
- import PropTypes from 'prop-types';
7
- import { ButtonItem } from './models/ButtonItem';
8
- /**
9
- * The properties of the KendoReact DropDownButtonItem component.
10
- */
11
- export interface DropDownButtonItemProps extends ButtonItem {
12
- /**
13
- * Determines the selected state of the ButtonItem component.
14
- */
15
- selected?: boolean;
16
- }
17
- export declare class DropDownButtonItem extends React.Component<DropDownButtonItemProps, {}> {
18
- /**
19
- * @hidden
20
- */
21
- static propTypes: {
22
- text: PropTypes.Requireable<string>;
23
- icon: PropTypes.Requireable<string>;
24
- iconClass: PropTypes.Requireable<string>;
25
- imageUrl: PropTypes.Requireable<string>;
26
- selected: PropTypes.Requireable<boolean>;
27
- disabled: PropTypes.Requireable<boolean>;
28
- render: PropTypes.Requireable<any>;
29
- };
30
- /**
31
- * @hidden
32
- */
33
- render(): null;
34
- }