@progress/kendo-react-buttons 13.3.0 → 13.4.0-develop.2

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 (77) hide show
  1. package/Button.d.ts +114 -0
  2. package/Button.js +1 -1
  3. package/Button.mjs +42 -44
  4. package/ButtonGroup.d.ts +47 -0
  5. package/ButtonGroupInterface.d.ts +39 -0
  6. package/ButtonInterface.d.ts +49 -0
  7. package/Chip/Chip.d.ts +425 -0
  8. package/Chip/Chip.js +1 -1
  9. package/Chip/Chip.mjs +43 -39
  10. package/Chip/ChipList.d.ts +221 -0
  11. package/Chip/ChipList.js +1 -1
  12. package/Chip/ChipList.mjs +40 -41
  13. package/Chip/chip-list-contexts.d.ts +20 -0
  14. package/Chip/data-reducer.d.ts +29 -0
  15. package/Chip/focus-reducer.d.ts +31 -0
  16. package/Chip/selection-reducer.d.ts +37 -0
  17. package/FloatingActionButton/FloatingActionButton.d.ts +23 -0
  18. package/FloatingActionButton/FloatingActionButton.js +1 -1
  19. package/FloatingActionButton/FloatingActionButton.mjs +85 -85
  20. package/FloatingActionButton/FloatingActionButtonItem.d.ts +132 -0
  21. package/FloatingActionButton/interfaces/FloatingActionButtonHandle.d.ts +20 -0
  22. package/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.d.ts +31 -0
  23. package/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +354 -0
  24. package/FloatingActionButton/models/align-offset.d.ts +27 -0
  25. package/FloatingActionButton/models/align.d.ts +34 -0
  26. package/FloatingActionButton/models/events.d.ts +28 -0
  27. package/FloatingActionButton/models/position-mode.d.ts +16 -0
  28. package/FloatingActionButton/models/rounded.d.ts +19 -0
  29. package/FloatingActionButton/models/size.d.ts +18 -0
  30. package/FloatingActionButton/models/theme-color.d.ts +25 -0
  31. package/FloatingActionButton/utils.d.ts +34 -0
  32. package/ListButton/ButtonItem.d.ts +72 -0
  33. package/ListButton/DropDownButton.d.ts +153 -0
  34. package/ListButton/DropDownButton.js +1 -1
  35. package/ListButton/DropDownButton.mjs +62 -46
  36. package/ListButton/DropDownButtonItem.d.ts +37 -0
  37. package/ListButton/SplitButton.d.ts +142 -0
  38. package/ListButton/SplitButton.js +1 -1
  39. package/ListButton/SplitButton.mjs +29 -13
  40. package/ListButton/SplitButtonItem.d.ts +32 -0
  41. package/ListButton/models/ButtonItem.d.ts +41 -0
  42. package/ListButton/models/ListButtonProps.d.ts +411 -0
  43. package/ListButton/models/PopupSettings.d.ts +35 -0
  44. package/ListButton/models/events.d.ts +59 -0
  45. package/ListButton/utils/navigation.d.ts +12 -0
  46. package/ListButton/utils/popup.d.ts +16 -0
  47. package/SpeechToTextButton/SpeechToTextButton.d.ts +36 -0
  48. package/SpeechToTextButton/SpeechToTextButton.js +1 -1
  49. package/SpeechToTextButton/SpeechToTextButton.mjs +24 -24
  50. package/SpeechToTextButton/interfaces/SpeechToTextButtonHandle.d.ts +28 -0
  51. package/SpeechToTextButton/interfaces/SpeechToTextButtonProps.d.ts +117 -0
  52. package/dist/cdn/js/kendo-react-buttons.js +1 -1
  53. package/index.d.mts +43 -2928
  54. package/index.d.ts +43 -2928
  55. package/messages/index.d.ts +22 -0
  56. package/models/index.d.ts +95 -0
  57. package/package-metadata.d.ts +12 -0
  58. package/package-metadata.js +1 -1
  59. package/package-metadata.mjs +10 -16
  60. package/package.json +5 -5
  61. package/toolbar/Toolbar.d.ts +38 -0
  62. package/toolbar/Toolbar.js +1 -1
  63. package/toolbar/Toolbar.mjs +15 -15
  64. package/toolbar/events/ToolbarResizeEvent.d.ts +29 -0
  65. package/toolbar/interfaces/ToolbarHandle.d.ts +21 -0
  66. package/toolbar/interfaces/ToolbarOverflowProps.d.ts +50 -0
  67. package/toolbar/interfaces/ToolbarProps.d.ts +128 -0
  68. package/toolbar/messages/index.d.ts +27 -0
  69. package/toolbar/tools/ToolbarItem.d.ts +47 -0
  70. package/toolbar/tools/ToolbarOverflowSection.d.ts +21 -0
  71. package/toolbar/tools/ToolbarScrollButton.d.ts +23 -0
  72. package/toolbar/tools/ToolbarScrollButton.js +1 -1
  73. package/toolbar/tools/ToolbarScrollButton.mjs +11 -20
  74. package/toolbar/tools/ToolbarScrollable.d.ts +28 -0
  75. package/toolbar/tools/ToolbarSeparator.d.ts +22 -0
  76. package/toolbar/tools/ToolbarSpacer.d.ts +30 -0
  77. 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 m=require("react"),l=require("@progress/kendo-react-common"),p=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(m),k=t=>{const n=p.useLocalization(),{disabled:o,type:e,scrollContentRef:c,buttonScrollSpeed:a,prevButton:u,nextButton:d}=t,b=S=>{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-md","k-button-solid","k-button-solid-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=k;
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 k } from "@progress/kendo-react-common";
10
- import { useLocalization as f } from "@progress/kendo-react-intl";
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 g, caretAltRightIcon as v } from "@progress/kendo-svg-icons";
12
+ import { caretAltLeftIcon as k, caretAltRightIcon as v } from "@progress/kendo-svg-icons";
13
13
  const I = (s) => {
14
- const n = f(), { disabled: r, type: t, scrollContentRef: o, buttonScrollSpeed: e, prevButton: m, nextButton: u } = s, d = (S) => {
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
- }, p = t === "prev" ? m || "span" : u || "span";
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
- p,
24
+ d,
25
25
  {
26
- className: b(
27
- "k-button",
28
- "k-button-md",
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: d
32
+ onClick: p
42
33
  },
43
- /* @__PURE__ */ a.createElement(k, { icon: t === "prev" ? g : v, className: "k-button-icon" })
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[];