@progress/kendo-react-grid 14.0.0-develop.1 → 14.0.0-develop.3

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 (72) hide show
  1. package/columnMenu/GridColumnMenuFilter.mjs +2 -2
  2. package/components/noRecords/GridNoRecordsContainer.mjs +1 -1
  3. package/constants/index.mjs +2 -2
  4. package/dist/cdn/js/kendo-react-grid.js +1 -1
  5. package/hooks/index.d.ts +8 -0
  6. package/hooks/useGridAIRequest.d.ts +150 -0
  7. package/hooks/useGridAIRequest.js +8 -0
  8. package/hooks/useGridAIRequest.mjs +93 -0
  9. package/index.d.mts +3 -1
  10. package/index.d.ts +3 -1
  11. package/index.js +1 -1
  12. package/index.mjs +56 -50
  13. package/messages/index.d.ts +75 -0
  14. package/messages/index.js +2 -2
  15. package/messages/index.mjs +108 -78
  16. package/package-metadata.js +1 -1
  17. package/package-metadata.mjs +1 -1
  18. package/package.json +19 -19
  19. package/toolbar-tools/GridToolbarAIAssistant.d.ts +2 -34
  20. package/toolbar-tools/GridToolbarAIAssistant.js +2 -2
  21. package/toolbar-tools/GridToolbarAIAssistant.mjs +167 -164
  22. package/toolbar-tools/GridToolbarFilter.mjs +5 -5
  23. package/toolbar-tools/smartbox/SegmentedControl.d.ts +13 -0
  24. package/toolbar-tools/smartbox/SegmentedControl.js +8 -0
  25. package/toolbar-tools/smartbox/SegmentedControl.mjs +109 -0
  26. package/toolbar-tools/smartbox/SmartBox.d.ts +20 -0
  27. package/toolbar-tools/smartbox/SmartBox.js +8 -0
  28. package/toolbar-tools/smartbox/SmartBox.mjs +380 -0
  29. package/toolbar-tools/smartbox/defaultConfigs.d.ts +30 -0
  30. package/toolbar-tools/smartbox/defaultConfigs.js +8 -0
  31. package/toolbar-tools/smartbox/defaultConfigs.mjs +36 -0
  32. package/toolbar-tools/smartbox/hooks/index.d.ts +17 -0
  33. package/toolbar-tools/smartbox/hooks/useDebounce.d.ts +11 -0
  34. package/toolbar-tools/smartbox/hooks/useDebounce.js +9 -0
  35. package/toolbar-tools/smartbox/hooks/useDebounce.mjs +21 -0
  36. package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.d.ts +251 -0
  37. package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.js +9 -0
  38. package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.mjs +68 -0
  39. package/toolbar-tools/smartbox/hooks/useSmartBoxHistory.d.ts +80 -0
  40. package/toolbar-tools/smartbox/hooks/useSmartBoxHistory.js +9 -0
  41. package/toolbar-tools/smartbox/hooks/useSmartBoxHistory.mjs +66 -0
  42. package/toolbar-tools/smartbox/hooks/useSmartBoxInput.d.ts +96 -0
  43. package/toolbar-tools/smartbox/hooks/useSmartBoxLabels.d.ts +93 -0
  44. package/toolbar-tools/smartbox/hooks/useSmartBoxLabels.js +9 -0
  45. package/toolbar-tools/smartbox/hooks/useSmartBoxLabels.mjs +61 -0
  46. package/toolbar-tools/smartbox/hooks/useSmartBoxListData.d.ts +163 -0
  47. package/toolbar-tools/smartbox/hooks/useSmartBoxListData.js +9 -0
  48. package/toolbar-tools/smartbox/hooks/useSmartBoxListData.mjs +102 -0
  49. package/toolbar-tools/smartbox/hooks/useSmartBoxModes.d.ts +115 -0
  50. package/toolbar-tools/smartbox/hooks/useSmartBoxModes.js +9 -0
  51. package/toolbar-tools/smartbox/hooks/useSmartBoxModes.mjs +65 -0
  52. package/toolbar-tools/smartbox/hooks/useSmartBoxPopup.d.ts +56 -0
  53. package/toolbar-tools/smartbox/hooks/useSmartBoxPopup.js +9 -0
  54. package/toolbar-tools/smartbox/hooks/useSmartBoxPopup.mjs +25 -0
  55. package/toolbar-tools/smartbox/hooks/useSmartBoxSearch.d.ts +82 -0
  56. package/toolbar-tools/smartbox/hooks/useSmartBoxSearch.js +9 -0
  57. package/toolbar-tools/smartbox/hooks/useSmartBoxSearch.mjs +67 -0
  58. package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.d.ts +70 -0
  59. package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.js +9 -0
  60. package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.mjs +57 -0
  61. package/toolbar-tools/smartbox/index.d.ts +10 -0
  62. package/toolbar-tools/smartbox/interfaces/SearchTypes.d.ts +45 -0
  63. package/toolbar-tools/smartbox/interfaces/SegmentedControlTypes.d.ts +66 -0
  64. package/toolbar-tools/smartbox/interfaces/SmartBoxTypes.d.ts +461 -0
  65. package/toolbar-tools/smartbox/interfaces/index.d.ts +11 -0
  66. package/toolbar-tools/smartbox/interfaces/utilTypes.d.ts +25 -0
  67. package/toolbar-tools/smartbox/listItemRenders.d.ts +165 -0
  68. package/toolbar-tools/smartbox/listItemRenders.js +8 -0
  69. package/toolbar-tools/smartbox/listItemRenders.mjs +68 -0
  70. package/toolbar-tools/smartbox/utils.d.ts +14 -0
  71. package/toolbar-tools/smartbox/utils.js +8 -0
  72. package/toolbar-tools/smartbox/utils.mjs +14 -0
@@ -0,0 +1,82 @@
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 { GridSmartBoxSearchProps, GridSmartBoxSearchEvent, SmartBoxMode } from '../interfaces/index.js';
9
+ import { GridSmartBoxHistoryProps } from '../interfaces/utilTypes.js';
10
+ /**
11
+ * Represents the props for the useSmartBoxSearch hook.
12
+ *
13
+ * @hidden
14
+ */
15
+ export interface UseSmartBoxSearchProps {
16
+ /**
17
+ * The currently selected view mode.
18
+ */
19
+ selectedView: SmartBoxMode | null;
20
+ /**
21
+ * The search mode configuration.
22
+ */
23
+ searchMode: GridSmartBoxSearchProps | null;
24
+ /**
25
+ * The grid columns used for filtering.
26
+ */
27
+ columns: Array<{
28
+ field: string;
29
+ }>;
30
+ /**
31
+ * The grid context providing access to grid operations.
32
+ */
33
+ gridContext: any;
34
+ /**
35
+ * The history settings for search mode.
36
+ */
37
+ searchHistorySettings: GridSmartBoxHistoryProps | null;
38
+ /**
39
+ * The history settings for semantic search mode.
40
+ */
41
+ semanticSearchHistorySettings: GridSmartBoxHistoryProps | null;
42
+ /**
43
+ * Function to add a new item to the history.
44
+ */
45
+ addToHistory: (mode: SmartBoxMode, value: string, historySettings: GridSmartBoxHistoryProps | null) => void;
46
+ /**
47
+ * Callback function fired when a search is performed.
48
+ */
49
+ onSearch?: (event: GridSmartBoxSearchEvent) => void;
50
+ /**
51
+ * Callback function fired when a semantic search is performed.
52
+ */
53
+ onSemanticSearch?: (event: GridSmartBoxSearchEvent) => void;
54
+ }
55
+ /**
56
+ * Represents the return value of the useSmartBoxSearch hook.
57
+ *
58
+ * @hidden
59
+ */
60
+ export interface UseSmartBoxSearchReturn {
61
+ /**
62
+ * Function to emit a search event with the given value.
63
+ * Creates filter descriptors and triggers the appropriate callback
64
+ * based on the selected view mode.
65
+ *
66
+ * @param value - The search value to emit.
67
+ */
68
+ emitSearchEvent: (value: string) => void;
69
+ }
70
+ /**
71
+ * Hook to handle search event emission for SmartBox.
72
+ *
73
+ * This hook creates filter descriptors based on the search value and configured fields,
74
+ * emits the appropriate search event (search or semantic search), and optionally
75
+ * applies the filter to the grid if the default action is not prevented.
76
+ *
77
+ * @param props - The hook properties.
78
+ * @returns An object containing the emitSearchEvent function.
79
+ *
80
+ * @hidden
81
+ */
82
+ export declare function useSmartBoxSearch({ selectedView, searchMode, columns, gridContext, searchHistorySettings, semanticSearchHistorySettings, addToHistory, onSearch, onSemanticSearch }: UseSmartBoxSearchProps): UseSmartBoxSearchReturn;
@@ -0,0 +1,9 @@
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
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react");function j(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const f=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(e,l,f.get?f:{enumerable:!0,get:()=>t[l]})}}return e.default=t,Object.freeze(e)}const o=j(g);function v({selectedView:t,searchMode:e,columns:l,gridContext:f,searchHistorySettings:p,semanticSearchHistorySettings:c,addToHistory:i,onSearch:n,onSemanticSearch:s}){return{emitSearchEvent:o.useCallback(r=>{var O;if(!t||t==="aiAssistant")return;const b=((O=e==null?void 0:e.fields)!=null&&O.length?e.fields:l.map(u=>u.field)).map(u=>({field:u,operator:"contains",value:r,ignoreCase:!0}));let a=!1;const m={searchValue:r,filters:b,logic:"or",isDefaultPrevented:()=>a,preventDefault:()=>{a=!0}};if(t==="search"){if(n==null||n(m),!a&&(f!=null&&f.filterChange)){const u=r.trim()?{filters:b,logic:"or"}:null;f.filterChange(u,{})}i("search",r,p)}else t==="semanticSearch"&&(s==null||s(m),i("semanticSearch",r,c))},[t,e,l,f,n,s,i,p,c])}}exports.useSmartBoxSearch=v;
@@ -0,0 +1,67 @@
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
+ "use client";
9
+ import * as B from "react";
10
+ function j({
11
+ selectedView: f,
12
+ searchMode: l,
13
+ columns: v,
14
+ gridContext: p,
15
+ searchHistorySettings: D,
16
+ semanticSearchHistorySettings: E,
17
+ addToHistory: m,
18
+ onSearch: u,
19
+ onSemanticSearch: i
20
+ }) {
21
+ return {
22
+ emitSearchEvent: B.useCallback(
23
+ (s) => {
24
+ var A;
25
+ if (!f || f === "aiAssistant")
26
+ return;
27
+ const b = ((A = l == null ? void 0 : l.fields) != null && A.length ? l.fields : v.map((t) => t.field)).map((t) => ({
28
+ field: t,
29
+ operator: "contains",
30
+ value: s,
31
+ ignoreCase: !0
32
+ }));
33
+ let r = !1;
34
+ const k = {
35
+ searchValue: s,
36
+ filters: b,
37
+ logic: "or",
38
+ isDefaultPrevented: () => r,
39
+ preventDefault: () => {
40
+ r = !0;
41
+ }
42
+ };
43
+ if (f === "search") {
44
+ if (u == null || u(k), !r && (p != null && p.filterChange)) {
45
+ const t = s.trim() ? { filters: b, logic: "or" } : null;
46
+ p.filterChange(t, {});
47
+ }
48
+ m("search", s, D);
49
+ } else f === "semanticSearch" && (i == null || i(k), m("semanticSearch", s, E));
50
+ },
51
+ [
52
+ f,
53
+ l,
54
+ v,
55
+ p,
56
+ u,
57
+ i,
58
+ m,
59
+ D,
60
+ E
61
+ ]
62
+ )
63
+ };
64
+ }
65
+ export {
66
+ j as useSmartBoxSearch
67
+ };
@@ -0,0 +1,70 @@
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 { SmartBoxMode, SegmentedButtonProps } from '../interfaces/index.js';
9
+ import * as React from 'react';
10
+ /**
11
+ * Represents a minimal mode configuration for the segmented control.
12
+ *
13
+ * @hidden
14
+ */
15
+ export interface SmartBoxModeConfig {
16
+ /**
17
+ * Specifies whether the mode is enabled.
18
+ */
19
+ enabled?: boolean;
20
+ }
21
+ /**
22
+ * Represents the props for the useSmartBoxSegmentedControl hook.
23
+ *
24
+ * @hidden
25
+ */
26
+ export interface UseSmartBoxSegmentedControlProps {
27
+ /**
28
+ * The search mode configuration.
29
+ */
30
+ searchMode: SmartBoxModeConfig | null;
31
+ /**
32
+ * The semantic search mode configuration.
33
+ */
34
+ semanticSearchMode: SmartBoxModeConfig | null;
35
+ /**
36
+ * The AI assistant mode configuration.
37
+ */
38
+ aiAssistantMode: SmartBoxModeConfig | null;
39
+ /**
40
+ * The currently selected view mode.
41
+ */
42
+ selectedView: SmartBoxMode | null;
43
+ /**
44
+ * The last selected search mode (either 'search' or 'semanticSearch').
45
+ * Used to restore the previous search mode when switching back from AI Assistant.
46
+ */
47
+ lastSearchMode: SmartBoxMode | null;
48
+ /**
49
+ * Callback function to update the selected view state.
50
+ */
51
+ setSelectedViewState: (view: SmartBoxMode) => void;
52
+ /**
53
+ * Callback function to update the input value.
54
+ */
55
+ setInputValue: React.Dispatch<React.SetStateAction<string>>;
56
+ }
57
+ /**
58
+ * Hook to generate segmented control buttons for switching between SmartBox modes.
59
+ *
60
+ * This hook creates the button configuration for the segmented control that allows
61
+ * users to switch between Search and AI Assistant modes. When both search modes
62
+ * (standard and semantic) are available, the Search button dynamically shows the
63
+ * appropriate icon based on the last selected search mode.
64
+ *
65
+ * @param props - The hook properties.
66
+ * @returns An array of segmented button props for the mode switcher.
67
+ *
68
+ * @hidden
69
+ */
70
+ export declare function useSmartBoxSegmentedControl({ searchMode, semanticSearchMode, aiAssistantMode, selectedView, lastSearchMode, setSelectedViewState, setInputValue }: UseSmartBoxSegmentedControlProps): SegmentedButtonProps[];
@@ -0,0 +1,9 @@
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
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),I=require("@progress/kendo-svg-icons");function y(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const u in n)if(u!=="default"){const b=Object.getOwnPropertyDescriptor(n,u);Object.defineProperty(t,u,b.get?b:{enumerable:!0,get:()=>n[u]})}}return t.default=n,Object.freeze(t)}const x=y(v);function C({searchMode:n,semanticSearchMode:t,aiAssistantMode:u,selectedView:b,lastSearchMode:l,setSelectedViewState:f,setInputValue:r}){return x.useMemo(()=>{const g=[],p=(n==null?void 0:n.enabled)||(t==null?void 0:t.enabled),k=u==null?void 0:u.enabled;if(p&&k){const O=b==="search"||b==="semanticSearch",c=l||(n!=null&&n.enabled?"search":"semanticSearch"),o=b==="semanticSearch"||b==="aiAssistant"&&c==="semanticSearch",j=o?I.zoomSparkleIcon:I.searchIcon;g.push({buttonId:1,text:"Search",svgIcon:j,selected:O,accentIcon:o,onClick:()=>{l&&(l==="search"?n!=null&&n.enabled:t!=null&&t.enabled)?f(l):n!=null&&n.enabled?f("search"):t!=null&&t.enabled&&f("semanticSearch"),r("")}}),g.push({buttonId:2,text:"AI Assistant",svgIcon:I.sparklesIcon,selected:b==="aiAssistant",accentIcon:!0,onClick:()=>{f("aiAssistant"),r("")}})}return g},[n,t,u,b,l,f,r])}exports.useSmartBoxSegmentedControl=C;
@@ -0,0 +1,57 @@
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
+ "use client";
9
+ import * as A from "react";
10
+ import { zoomSparkleIcon as R, searchIcon as j, sparklesIcon as q } from "@progress/kendo-svg-icons";
11
+ function D({
12
+ searchMode: n,
13
+ semanticSearchMode: b,
14
+ aiAssistantMode: p,
15
+ selectedView: u,
16
+ lastSearchMode: I,
17
+ setSelectedViewState: f,
18
+ setInputValue: k
19
+ }) {
20
+ return A.useMemo(() => {
21
+ const l = [], g = (n == null ? void 0 : n.enabled) || (b == null ? void 0 : b.enabled), C = p == null ? void 0 : p.enabled;
22
+ if (g && C) {
23
+ const v = u === "search" || u === "semanticSearch", B = I || (n != null && n.enabled ? "search" : "semanticSearch"), x = u === "semanticSearch" || u === "aiAssistant" && B === "semanticSearch", z = x ? R : j;
24
+ l.push({
25
+ buttonId: 1,
26
+ text: "Search",
27
+ svgIcon: z,
28
+ selected: v,
29
+ accentIcon: x,
30
+ onClick: () => {
31
+ I && (I === "search" ? n != null && n.enabled : b != null && b.enabled) ? f(I) : n != null && n.enabled ? f("search") : b != null && b.enabled && f("semanticSearch"), k("");
32
+ }
33
+ }), l.push({
34
+ buttonId: 2,
35
+ text: "AI Assistant",
36
+ svgIcon: q,
37
+ selected: u === "aiAssistant",
38
+ accentIcon: !0,
39
+ onClick: () => {
40
+ f("aiAssistant"), k("");
41
+ }
42
+ });
43
+ }
44
+ return l;
45
+ }, [
46
+ n,
47
+ b,
48
+ p,
49
+ u,
50
+ I,
51
+ f,
52
+ k
53
+ ]);
54
+ }
55
+ export {
56
+ D as useSmartBoxSegmentedControl
57
+ };
@@ -0,0 +1,10 @@
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
+ export * from './interfaces/index.js';
9
+ export * from './SmartBox.js';
10
+ export * from './SegmentedControl.js';
@@ -0,0 +1,45 @@
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 { GridSmartBoxHistoryProps } from './utilTypes.js';
9
+ export interface GridSmartBoxAIAssistantSearchProps {
10
+ /**
11
+ * Sets the settings for the history queries of all modes.
12
+ * When set to `true`, enables history with default settings for all modes.
13
+ * When set to `false`, disables history for all modes.
14
+ * When set to an object, configures the history settings for all modes.
15
+ * This shared setting overrides individual mode history settings (e.g., `searchConfig.history`).
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * // Enable history with default settings for all modes
20
+ * <SmartBox history={true} />
21
+ *
22
+ * // Disable history for all modes
23
+ * <SmartBox history={false} />
24
+ *
25
+ * // Configure history settings for all modes (overrides individual mode settings)
26
+ * <SmartBox history={{ size: 10, timestampFormat: 'HH:mm' }} />
27
+ * ```
28
+ */
29
+ history?: boolean | GridSmartBoxHistoryProps;
30
+ /**
31
+ * Sets the placeholder text for the SmartBox input.
32
+ */
33
+ placeholder?: string;
34
+ /**
35
+ * Specifies whether the mode is enabled.
36
+ */
37
+ enabled?: boolean;
38
+ /**
39
+ * Sets the delay in milliseconds before triggering search.
40
+ */
41
+ delay?: number;
42
+ }
43
+ export interface GridSmartBoxSearchProps extends GridSmartBoxAIAssistantSearchProps {
44
+ fields?: Array<string>;
45
+ }
@@ -0,0 +1,66 @@
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 { ButtonProps } from '@progress/kendo-react-buttons';
9
+ import { SVGIcon } from '@progress/kendo-svg-icons';
10
+ /**
11
+ * @hidden
12
+ *
13
+ * Defines the props for a Button inside the SegmentedControlComponent.
14
+ */
15
+ export interface SegmentedButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
16
+ /**
17
+ * The unique identifier for the SegmentedButton.
18
+ */
19
+ buttonId: number;
20
+ /**
21
+ * Sets an SVG icon to display inside the Button.
22
+ */
23
+ svgIcon?: SVGIcon;
24
+ /**
25
+ * Specifies the text content of the Button.
26
+ */
27
+ text?: string;
28
+ /**
29
+ * Specifies whether the button is selected.
30
+ */
31
+ selected?: boolean;
32
+ /**
33
+ * Specifies whether the icon should use the accent color when the button is selected.
34
+ *
35
+ * @default false
36
+ */
37
+ accentIcon?: boolean;
38
+ }
39
+ /**
40
+ * @hidden
41
+ */
42
+ export interface SegmentedControlHandle {
43
+ /**
44
+ * The root DOM element of the SegmentedControl.
45
+ */
46
+ element: HTMLDivElement | null;
47
+ }
48
+ /**
49
+ * @hidden
50
+ */
51
+ export interface SegmentedControlProps {
52
+ /**
53
+ * Specifies the collection of buttons that will be rendered inside the SegmentedControl.
54
+ */
55
+ buttons?: Array<SegmentedButtonProps>;
56
+ /**
57
+ * Sets the padding of the control.
58
+ *
59
+ *
60
+ */
61
+ size?: ButtonProps['size'];
62
+ /**
63
+ * Specifies whether the SegmentedControl should stretch to fill the available horizontal space.
64
+ */
65
+ stretched?: boolean;
66
+ }