@seeqdev/qomponents 0.0.214 → 0.0.216
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/dist/example/package.json +1 -1
- package/dist/index.esm.js +76 -29429
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +78 -29481
- package/dist/index.js.map +1 -1
- package/dist/src/Accordion/Accordion.d.ts +6 -3
- package/dist/src/Accordion/Accordion.types.d.ts +86 -83
- package/dist/src/Accordion/index.d.ts +2 -1
- package/dist/src/Alert/Alert.d.ts +8 -3
- package/dist/src/Alert/Alert.types.d.ts +58 -55
- package/dist/src/Alert/index.d.ts +2 -1
- package/dist/src/Button/Button.d.ts +6 -3
- package/dist/src/Button/Button.types.d.ts +151 -147
- package/dist/src/Button/index.d.ts +2 -1
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +8 -3
- package/dist/src/ButtonGroup/ButtonGroup.types.d.ts +66 -62
- package/dist/src/ButtonGroup/index.d.ts +2 -1
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +8 -5
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +209 -204
- package/dist/src/ButtonWithDropdown/index.d.ts +2 -1
- package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +7 -4
- package/dist/src/ButtonWithPopover/ButtonWithPopover.types.d.ts +134 -129
- package/dist/src/ButtonWithPopover/index.d.ts +2 -1
- package/dist/src/Carousel/Carousel.d.ts +7 -3
- package/dist/src/Carousel/Carousel.types.d.ts +84 -81
- package/dist/src/Carousel/index.d.ts +2 -1
- package/dist/src/Checkbox/Checkbox.d.ts +8 -3
- package/dist/src/Checkbox/Checkbox.types.d.ts +92 -89
- package/dist/src/Checkbox/index.d.ts +2 -1
- package/dist/src/Collapse/Collapse.d.ts +6 -3
- package/dist/src/Collapse/Collapse.types.d.ts +17 -14
- package/dist/src/Collapse/index.d.ts +2 -1
- package/dist/src/Icon/Icon.d.ts +7 -3
- package/dist/src/Icon/Icon.types.d.ts +89 -85
- package/dist/src/Icon/index.d.ts +2 -1
- package/dist/src/InputGroup/InputGroup.d.ts +8 -3
- package/dist/src/InputGroup/InputGroup.types.d.ts +42 -38
- package/dist/src/InputGroup/index.d.ts +3 -2
- package/dist/src/Modal/Modal.d.ts +8 -3
- package/dist/src/Modal/Modal.types.d.ts +253 -249
- package/dist/src/Modal/index.d.ts +2 -1
- package/dist/src/ProgressBar/ProgressBar.d.ts +6 -3
- package/dist/src/ProgressBar/ProgressBar.types.d.ts +71 -66
- package/dist/src/ProgressBar/index.d.ts +2 -1
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +7 -4
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +159 -154
- package/dist/src/SeeqActionDropdown/index.d.ts +2 -1
- package/dist/src/SeeqActionDropdown/variants.d.ts +9 -5
- package/dist/src/Select/Select.d.ts +9 -6
- package/dist/src/Select/Select.types.d.ts +219 -213
- package/dist/src/Select/index.d.ts +3 -2
- package/dist/src/Slider/Slider.d.ts +8 -3
- package/dist/src/Slider/Slider.types.d.ts +83 -80
- package/dist/src/Slider/index.d.ts +2 -1
- package/dist/src/SvgIcon/SvgIcon.d.ts +7 -3
- package/dist/src/SvgIcon/SvgIcon.types.d.ts +73 -69
- package/dist/src/SvgIcon/index.d.ts +2 -1
- package/dist/src/Tabs/Tabs.d.ts +6 -3
- package/dist/src/Tabs/Tabs.types.d.ts +83 -78
- package/dist/src/Tabs/index.d.ts +2 -1
- package/dist/src/TextArea/TextArea.d.ts +8 -3
- package/dist/src/TextArea/TextArea.types.d.ts +116 -111
- package/dist/src/TextArea/index.d.ts +2 -1
- package/dist/src/TextField/TextField.d.ts +8 -3
- package/dist/src/TextField/TextField.types.d.ts +198 -194
- package/dist/src/TextField/index.d.ts +2 -1
- package/dist/src/ToolbarButton/ToolbarButton.d.ts +7 -3
- package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +121 -117
- package/dist/src/ToolbarButton/index.d.ts +2 -1
- package/dist/src/Tooltip/QTip.types.d.ts +16 -12
- package/dist/src/Tooltip/Qtip.d.ts +7 -2
- package/dist/src/Tooltip/Tooltip.d.ts +8 -3
- package/dist/src/Tooltip/Tooltip.types.d.ts +24 -20
- package/dist/src/Tooltip/index.d.ts +3 -2
- package/dist/src/Tooltip/qTip.utilities.d.ts +13 -3
- package/dist/src/TriggerWithDropdown/TriggerWithDropdown.d.ts +7 -4
- package/dist/src/TriggerWithDropdown/TriggerWithDropdown.types.d.ts +99 -94
- package/dist/src/TriggerWithDropdown/index.d.ts +2 -1
- package/dist/src/index.build.d.ts +50 -6
- package/dist/src/index.d.ts +50 -46
- package/dist/src/test-utils/is-browser-mode.d.ts +7 -4
- package/dist/src/types.d.ts +30 -28
- package/dist/src/utils/browserId.d.ts +8 -5
- package/dist/src/utils/svg.d.ts +6 -3
- package/dist/src/utils/validateStyleDimension.d.ts +6 -2
- package/package.json +10 -9
- package/dist/src/styles.build.css.d.ts +0 -1
|
@@ -1,148 +1,152 @@
|
|
|
1
|
-
import { TooltipProps } from
|
|
2
|
-
import { IconType } from
|
|
3
|
-
import React from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
1
|
+
import { TooltipProps } from "../Tooltip/Tooltip.types.js";
|
|
2
|
+
import { IconType } from "../Icon/Icon.types.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/Button/Button.types.d.ts
|
|
6
|
+
declare const buttonTypes: readonly ["button", "reset", "submit", "link"];
|
|
7
|
+
declare const buttonSizes: readonly ["xs", "sm", "lg"];
|
|
8
|
+
declare const buttonVariants: readonly ["outline", "theme", "theme-light", "warning", "danger", "no-border"];
|
|
9
|
+
declare const iconPositions: string[];
|
|
10
|
+
type ButtonType = (typeof buttonTypes)[number];
|
|
11
|
+
type ButtonSize = (typeof buttonSizes)[number];
|
|
12
|
+
type ButtonVariant = (typeof buttonVariants)[number];
|
|
13
|
+
type IconPosition = (typeof iconPositions)[number];
|
|
14
|
+
interface ButtonProps {
|
|
15
|
+
/**
|
|
16
|
+
* Callback function triggered when the button is clicked.
|
|
17
|
+
* Receives the mouse event as a parameter for additional event handling.
|
|
18
|
+
* Use this to define the primary action the button should perform.
|
|
19
|
+
*/
|
|
20
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
21
|
+
/**
|
|
22
|
+
* The text, element, or content to display inside the button.
|
|
23
|
+
* Can be a string for simple text, a translation key, or any React element/node
|
|
24
|
+
* for more complex content like formatted text or inline elements.
|
|
25
|
+
*/
|
|
26
|
+
label?: string | React.JSX.Element | React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Visual style variant that determines the button's appearance and color scheme:
|
|
29
|
+
* - `outline`: White background with border, suitable for secondary actions
|
|
30
|
+
* - `theme`: Primary theme colors, typically for main call-to-action buttons
|
|
31
|
+
* - `theme-light`: Lighter version of theme colors for subtle primary actions
|
|
32
|
+
* - `warning`: Yellow/orange styling for caution-related actions
|
|
33
|
+
* - `danger`: Red styling for destructive or critical actions
|
|
34
|
+
* - `no-border`: Borderless styling for minimal, text-like buttons
|
|
35
|
+
* @default 'outline'
|
|
36
|
+
*/
|
|
37
|
+
variant?: ButtonVariant;
|
|
38
|
+
/**
|
|
39
|
+
* HTML button type attribute that determines the button's behavior in forms:
|
|
40
|
+
* - `button`: Standard button with no special form behavior (default)
|
|
41
|
+
* - `submit`: Submits the parent form when clicked
|
|
42
|
+
* - `reset`: Resets the parent form fields to their initial values
|
|
43
|
+
* - `link`: Behaves like a button but renders as button type for Firefox compatibility
|
|
44
|
+
* @default 'button'
|
|
45
|
+
*/
|
|
46
|
+
type?: ButtonType;
|
|
47
|
+
/**
|
|
48
|
+
* Size variant that controls the button's dimensions and text size:
|
|
49
|
+
* - `sm`: Small button with compact padding and smaller text (default)
|
|
50
|
+
* - `lg`: Large button with generous padding and larger text
|
|
51
|
+
* @default 'sm'
|
|
52
|
+
*/
|
|
53
|
+
size?: ButtonSize;
|
|
54
|
+
/**
|
|
55
|
+
* When true, disables the button preventing user interaction.
|
|
56
|
+
* Disabled buttons are visually dimmed and do not respond to clicks or focus.
|
|
57
|
+
* The button will also have `pointer-events: none` applied via CSS.
|
|
58
|
+
*/
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Additional CSS classes to apply to the button element.
|
|
62
|
+
* These classes are combined with the component's built-in styling classes.
|
|
63
|
+
* Use this to customize appearance beyond the standard variants.
|
|
64
|
+
*/
|
|
65
|
+
extraClassNames?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Icon class name to display alongside the button text.
|
|
68
|
+
* Typically uses FontAwesome classes (e.g., 'fc-zoom', 'fc-delete').
|
|
69
|
+
* The icon is automatically styled to match the button's text color.
|
|
70
|
+
*/
|
|
71
|
+
icon?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Determines how the icon should be styled and colored:
|
|
74
|
+
* - `text`: Uses the button's text color (default)
|
|
75
|
+
* - `white`: Forces white color regardless of button variant
|
|
76
|
+
* - `theme`: Uses theme-specific colors
|
|
77
|
+
* - `color`: Uses a custom color specified in `iconColor`
|
|
78
|
+
* @default 'text'
|
|
79
|
+
*/
|
|
80
|
+
iconStyle?: IconType;
|
|
81
|
+
/**
|
|
82
|
+
* Custom color for the icon when `iconStyle` is set to 'color'.
|
|
83
|
+
* Can be any valid CSS color value (hex, rgb, color name, etc.).
|
|
84
|
+
* This property is required when iconStyle is 'color'.
|
|
85
|
+
*/
|
|
86
|
+
iconColor?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Position of the icon relative to the button text:
|
|
89
|
+
* - `left`: Icon appears before the text with right margin
|
|
90
|
+
* - `right`: Icon appears after the text with left margin
|
|
91
|
+
* @default 'left'
|
|
92
|
+
*/
|
|
93
|
+
iconPosition?: IconPosition;
|
|
94
|
+
/**
|
|
95
|
+
* Custom prefix for the icon class when not using standard FontAwesome icons.
|
|
96
|
+
* By default, icons are prefixed with 'fa-sharp fa-regular', but some icons
|
|
97
|
+
* require different prefixes. Use this to override the default behavior.
|
|
98
|
+
*/
|
|
99
|
+
iconPrefix?: string;
|
|
100
|
+
/**
|
|
101
|
+
* HTML ID attribute for the button element.
|
|
102
|
+
* Should be unique across the entire page for proper HTML semantics.
|
|
103
|
+
* Also used as a prefix for the icon's test ID when an icon is present.
|
|
104
|
+
*/
|
|
105
|
+
id?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Test ID attribute for the button element used in automated testing.
|
|
108
|
+
* Applied to the `data-testid` attribute for element selection in test suites.
|
|
109
|
+
*/
|
|
110
|
+
testId?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Controls whether the click event should stop propagation to parent elements.
|
|
113
|
+
* When true (default), prevents the click from bubbling up the DOM tree.
|
|
114
|
+
* Set to false if you need parent elements to also handle the click event.
|
|
115
|
+
* @default true
|
|
116
|
+
*/
|
|
117
|
+
stopPropagation?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Tooltip text to display when hovering over the button.
|
|
120
|
+
* When provided, the button will show a tooltip with this text on hover.
|
|
121
|
+
* The tooltip appearance and behavior can be customized with `tooltipOptions`.
|
|
122
|
+
*/
|
|
123
|
+
tooltip?: string;
|
|
124
|
+
/**
|
|
125
|
+
* When true, the tooltip text is rendered as HTML allowing for rich content.
|
|
126
|
+
* When false (default), the tooltip text is treated as plain text for security.
|
|
127
|
+
* Only set to true if you trust the tooltip content source.
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
130
|
+
isHtmlTooltip?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Test ID attribute specifically for the tooltip element.
|
|
133
|
+
* Used for automated testing to identify and interact with the tooltip.
|
|
134
|
+
* Helpful when you need to test tooltip-specific behavior separately from the button.
|
|
135
|
+
*/
|
|
136
|
+
tooltipTestId?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Configuration options for customizing tooltip behavior and appearance.
|
|
139
|
+
* Omits the 'text' property since that's handled by the `tooltip` prop.
|
|
140
|
+
* Includes options like position, delay, and other tooltip-specific settings.
|
|
141
|
+
*/
|
|
142
|
+
tooltipOptions?: Omit<TooltipProps, 'text'>;
|
|
143
|
+
/**
|
|
144
|
+
* When true, prevents the blur event from occurring on mouse down.
|
|
145
|
+
* Useful when you want to keep focus on the current element after clicking the button.
|
|
146
|
+
* Commonly used in scenarios where button clicks shouldn't interrupt form input focus.
|
|
147
|
+
* @default false
|
|
148
|
+
*/
|
|
149
|
+
preventBlur?: boolean;
|
|
148
150
|
}
|
|
151
|
+
//#endregion
|
|
152
|
+
export { ButtonProps, ButtonSize, ButtonType, ButtonVariant, IconPosition, buttonSizes, buttonTypes, buttonVariants, iconPositions };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import Button from "./Button.js";
|
|
2
|
+
export { Button as default };
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ButtonGroupProps } from "./ButtonGroup.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
* ButtonGroup.
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
declare const ButtonGroup: React.FunctionComponent<ButtonGroupProps>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ButtonGroup };
|
|
@@ -1,80 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TooltipComponentProps } from "../Tooltip/Tooltip.types.js";
|
|
2
|
+
import { ButtonProps } from "../Button/Button.types.js";
|
|
3
|
+
|
|
4
|
+
//#region src/ButtonGroup/ButtonGroup.types.d.ts
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
* Interface representing the properties for a button within a ButtonGroup.
|
|
5
8
|
* Used when you want to include an interactive button as part of the group.
|
|
6
9
|
*/
|
|
7
10
|
interface AppendedButtonProps {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Specifies that this group item is a clickable button.
|
|
13
|
+
* Button items can be selected, have active states, and trigger onChange events.
|
|
14
|
+
*/
|
|
15
|
+
variant: 'button';
|
|
16
|
+
/**
|
|
17
|
+
* Configuration properties for the button component.
|
|
18
|
+
* Omits the onClick handler since ButtonGroup manages selection internally.
|
|
19
|
+
* Requires a value for selection tracking and optionally an isActive state.
|
|
20
|
+
*/
|
|
21
|
+
buttonProps: Omit<ButtonProps, 'onClick'> & {
|
|
22
|
+
/** Unique value used to identify this button when selected */
|
|
23
|
+
value: string;
|
|
24
|
+
/** Whether this button is currently in the active/selected state */
|
|
25
|
+
isActive?: boolean;
|
|
26
|
+
};
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
26
29
|
* Interface for including custom React elements within a ButtonGroup.
|
|
27
30
|
* Used when you need to add non-button content like separators, labels, or custom components.
|
|
28
31
|
*/
|
|
29
32
|
interface ElementProps {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Specifies that this group item is a custom React element.
|
|
35
|
+
* Element items are purely presentational and don't participate in selection logic.
|
|
36
|
+
*/
|
|
37
|
+
variant: 'element';
|
|
38
|
+
/**
|
|
39
|
+
* The React content to render within the button group.
|
|
40
|
+
* Can be any valid React node including text, icons, separators, or complex components.
|
|
41
|
+
*/
|
|
42
|
+
element: React.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Additional CSS classes to apply to the element's container.
|
|
45
|
+
* Use this to style the element consistently with the button group's appearance.
|
|
46
|
+
*/
|
|
47
|
+
extraClassNames?: string;
|
|
45
48
|
}
|
|
46
49
|
type Props = AppendedButtonProps | ElementProps | undefined;
|
|
47
50
|
/**
|
|
48
51
|
* Props for the ButtonGroup component that creates a cohesive group of related buttons.
|
|
49
52
|
* Extends TooltipComponentProps to support tooltip functionality on the entire group.
|
|
50
53
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
54
|
+
interface ButtonGroupProps extends TooltipComponentProps {
|
|
55
|
+
/**
|
|
56
|
+
* Array of items to display in the button group.
|
|
57
|
+
* Each item can be either a button (for interactive elements) or an element (for decorative content).
|
|
58
|
+
* Buttons within the group share consistent styling and spacing for a unified appearance.
|
|
59
|
+
*/
|
|
60
|
+
buttons: Props[];
|
|
61
|
+
/**
|
|
62
|
+
* HTML ID attribute for the button group container.
|
|
63
|
+
* Should be unique across the page for proper HTML semantics and accessibility.
|
|
64
|
+
*/
|
|
65
|
+
id?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Additional CSS classes to apply to the button group container.
|
|
68
|
+
* Use this to customize the group's appearance, spacing, or layout beyond default styling.
|
|
69
|
+
*/
|
|
70
|
+
extraClassNames?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Callback function triggered when a button within the group is selected.
|
|
73
|
+
* Receives the value of the selected button as defined in its buttonProps.value.
|
|
74
|
+
* Use this to handle selection changes and update your application state.
|
|
75
|
+
*/
|
|
76
|
+
onChange?: (value: string) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Test ID attribute for the button group container used in automated testing.
|
|
79
|
+
* Applied to the group's root element for test targeting and interaction.
|
|
80
|
+
*/
|
|
81
|
+
testId?: string;
|
|
79
82
|
}
|
|
80
|
-
|
|
83
|
+
//#endregion
|
|
84
|
+
export { ButtonGroupProps };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ButtonGroup } from "./ButtonGroup.js";
|
|
2
|
+
export { ButtonGroup as default };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ButtonWithDropdownProps } from "./ButtonWithDropdown.types.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/ButtonWithDropdown/ButtonWithDropdown.d.ts
|
|
5
|
+
declare const ButtonWithDropdown: React$1.FunctionComponent<ButtonWithDropdownProps>;
|
|
6
|
+
declare const Dropdown: React$1.FunctionComponent<ButtonWithDropdownProps>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { Dropdown, ButtonWithDropdown as default };
|