@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,47 @@
|
|
|
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 { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the ToolbarItem handle.
|
|
12
|
+
*/
|
|
13
|
+
export interface ToolbarItemHandle {
|
|
14
|
+
/**
|
|
15
|
+
* Returns the HTML element of the ToolbarItem component.
|
|
16
|
+
*/
|
|
17
|
+
element: HTMLDivElement | null;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Represents the props of KendoReact ToolbarItem component.
|
|
21
|
+
*/
|
|
22
|
+
export interface ToolbarItemProps extends KendoReactComponentBaseProps {
|
|
23
|
+
/**
|
|
24
|
+
* Sets additional classes to the ToolbarItem component.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```jsx
|
|
28
|
+
* <ToolbarItem className="custom-class" />
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
className?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Sets additional styles to the ToolbarItem component.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```jsx
|
|
37
|
+
* <ToolbarItem style={{ margin: '10px' }} />
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
style?: React.CSSProperties;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Represents the KendoReact ToolbarItem component.
|
|
44
|
+
* To add a tool to the Toolbar, wrap it inside a ToolbarItem component
|
|
45
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/buttons/toolbar/tools)).
|
|
46
|
+
*/
|
|
47
|
+
export declare const ToolbarItem: React.ForwardRefExoticComponent<ToolbarItemProps & React.RefAttributes<ToolbarItemHandle>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ToolbarOverflowSectionProps {
|
|
13
|
+
toolbarRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
fillMode?: string | null;
|
|
16
|
+
size?: string | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare const ToolbarOverflowSection: (props: ToolbarOverflowSectionProps) => React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ToolbarScrollButtonProps {
|
|
13
|
+
buttonScrollSpeed?: number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
scrollContentRef?: React.MutableRefObject<HTMLSpanElement | null>;
|
|
16
|
+
type: 'prev' | 'next';
|
|
17
|
+
prevButton?: React.ComponentType;
|
|
18
|
+
nextButton?: React.ComponentType;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare const ToolbarScrollButton: (props: ToolbarScrollButtonProps) => React.JSX.Element;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react"),l=require("@progress/kendo-react-common"),m=require("@progress/kendo-react-intl"),r=require("../messages/index.js"),s=require("@progress/kendo-svg-icons");function f(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const e=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,e.get?e:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const i=f(p),S=t=>{const n=m.useLocalization(),{disabled:o,type:e,scrollContentRef:c,buttonScrollSpeed:a,prevButton:u,nextButton:d}=t,b=k=>{c&&c.current&&a&&c.current.scrollBy({left:e==="next"?a:-a,behavior:"smooth"})},g=e==="prev"?u||"span":d||"span";return i.createElement(g,{className:l.classNames("k-button","k-button-base","k-rounded-md","k-icon-button",`k-toolbar-${e}`,{"k-disabled":o}),title:`${e==="prev"?n.toLanguageString(r.prevArrowTitle,r.messages[r.prevArrowTitle]):n.toLanguageString(r.nextArrowTitle,r.messages[r.nextArrowTitle])}`,"aria-hidden":!0,tabIndex:o?-1:void 0,onClick:b},i.createElement(l.SvgIcon,{icon:e==="prev"?s.caretAltLeftIcon:s.caretAltRightIcon,className:"k-button-icon"}))};exports.ToolbarScrollButton=S;
|
|
@@ -6,41 +6,32 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as a from "react";
|
|
9
|
-
import { classNames as b, SvgIcon as
|
|
10
|
-
import { useLocalization as
|
|
9
|
+
import { classNames as b, SvgIcon as f } from "@progress/kendo-react-common";
|
|
10
|
+
import { useLocalization as g } from "@progress/kendo-react-intl";
|
|
11
11
|
import { prevArrowTitle as l, messages as c, nextArrowTitle as i } from "../messages/index.mjs";
|
|
12
|
-
import { caretAltLeftIcon as
|
|
12
|
+
import { caretAltLeftIcon as k, caretAltRightIcon as v } from "@progress/kendo-svg-icons";
|
|
13
13
|
const I = (s) => {
|
|
14
|
-
const n =
|
|
14
|
+
const n = g(), { disabled: r, type: t, scrollContentRef: o, buttonScrollSpeed: e, prevButton: m, nextButton: u } = s, p = (S) => {
|
|
15
15
|
o && o.current && e && o.current.scrollBy({
|
|
16
16
|
left: t === "next" ? e : -e,
|
|
17
17
|
behavior: "smooth"
|
|
18
18
|
});
|
|
19
|
-
},
|
|
19
|
+
}, d = t === "prev" ? m || "span" : u || "span";
|
|
20
20
|
return (
|
|
21
21
|
// Using span instead of real Button component is intentional.
|
|
22
22
|
// Ref: https://progresssoftware.atlassian.net/wiki/spaces/DE/pages/edit-v2/544997922#Hidden-interactive-elements
|
|
23
23
|
/* @__PURE__ */ a.createElement(
|
|
24
|
-
|
|
24
|
+
d,
|
|
25
25
|
{
|
|
26
|
-
className: b(
|
|
27
|
-
"k-
|
|
28
|
-
|
|
29
|
-
"k-button-solid",
|
|
30
|
-
"k-button-solid-base",
|
|
31
|
-
"k-rounded-md",
|
|
32
|
-
"k-icon-button",
|
|
33
|
-
`k-toolbar-${t}`,
|
|
34
|
-
{
|
|
35
|
-
"k-disabled": r
|
|
36
|
-
}
|
|
37
|
-
),
|
|
26
|
+
className: b("k-button", "k-button-base", "k-rounded-md", "k-icon-button", `k-toolbar-${t}`, {
|
|
27
|
+
"k-disabled": r
|
|
28
|
+
}),
|
|
38
29
|
title: `${t === "prev" ? n.toLanguageString(l, c[l]) : n.toLanguageString(i, c[i])}`,
|
|
39
30
|
"aria-hidden": !0,
|
|
40
31
|
tabIndex: r ? -1 : void 0,
|
|
41
|
-
onClick:
|
|
32
|
+
onClick: p
|
|
42
33
|
},
|
|
43
|
-
/* @__PURE__ */ a.createElement(
|
|
34
|
+
/* @__PURE__ */ a.createElement(f, { icon: t === "prev" ? k : v, className: "k-button-icon" })
|
|
44
35
|
)
|
|
45
36
|
);
|
|
46
37
|
};
|
|
@@ -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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ToolbarScrollableProps {
|
|
13
|
+
scrollButtons: string;
|
|
14
|
+
scrollButtonsPosition: string;
|
|
15
|
+
isOverflowing: boolean;
|
|
16
|
+
scrollContentRef: React.MutableRefObject<HTMLSpanElement | null>;
|
|
17
|
+
buttonScrollSpeed: number;
|
|
18
|
+
dir?: string;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
isScrollStartPosition: boolean;
|
|
21
|
+
isScrollEndPosition: boolean;
|
|
22
|
+
prevButton?: React.ComponentType;
|
|
23
|
+
nextButton?: React.ComponentType;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
export declare const ToolbarScrollable: (props: ToolbarScrollableProps) => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the KendoReact Toolbar Separator component.
|
|
11
|
+
*/
|
|
12
|
+
export interface ToolbarSeparatorProps {
|
|
13
|
+
/**
|
|
14
|
+
* Sets additional classes to the ToolbarSeparator component.
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
_ref?: React.Ref<HTMLDivElement>;
|
|
21
|
+
}
|
|
22
|
+
export declare const ToolbarSeparator: (props: ToolbarSeparatorProps) => React.JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of KendoReact ToolbarSpacer component.
|
|
11
|
+
*/
|
|
12
|
+
export interface ToolbarSpacerProps {
|
|
13
|
+
/**
|
|
14
|
+
* Sets additional classes to the ToolbarSpacer component.
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/** @hidden */
|
|
19
|
+
export interface ToolbarSpacerHandle {
|
|
20
|
+
/**
|
|
21
|
+
* Returns the HTML element of the ToolbarSpacer component.
|
|
22
|
+
*/
|
|
23
|
+
element: HTMLDivElement | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents the KendoReact ToolbarSpacer component.
|
|
27
|
+
* To specify an empty space, provide a ToolbarSpacer component
|
|
28
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/buttons/toolbar/tools)).
|
|
29
|
+
*/
|
|
30
|
+
export declare const ToolbarSpacer: React.ForwardRefExoticComponent<ToolbarSpacerProps & React.RefAttributes<ToolbarSpacerHandle>>;
|
package/util.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const styles: {
|
|
12
|
+
button: string;
|
|
13
|
+
flat: string;
|
|
14
|
+
outline: string;
|
|
15
|
+
clear: string;
|
|
16
|
+
primary: string;
|
|
17
|
+
'state-selected': string;
|
|
18
|
+
'button-icon': string;
|
|
19
|
+
'button-icontext': string;
|
|
20
|
+
'state-disabled': string;
|
|
21
|
+
'group-start': string;
|
|
22
|
+
'group-end': string;
|
|
23
|
+
'button-group': string;
|
|
24
|
+
'button-group-stretched': string;
|
|
25
|
+
ltr: string;
|
|
26
|
+
rtl: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const toolbarButtons: string[];
|