@seeqdev/qomponents 0.0.209 → 0.0.215
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/iconFont/FontCustom.woff +0 -0
- package/dist/iconFont/FontCustom.woff2 +0 -0
- 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/dist/styles.css +16 -31
- package/package.json +13 -12
|
@@ -1,77 +1,82 @@
|
|
|
1
|
-
import { TooltipComponentProps } from
|
|
1
|
+
import { TooltipComponentProps } from "../Tooltip/Tooltip.types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/ProgressBar/ProgressBar.types.d.ts
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* Props for individual progress indicators within a ProgressBar.
|
|
4
7
|
* Each indicator represents a segment of the overall progress with its own value and styling.
|
|
5
8
|
* Extends TooltipComponentProps to support tooltip functionality on individual indicators.
|
|
6
9
|
*/
|
|
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
|
-
|
|
10
|
+
interface ProgressIndicatorProps extends TooltipComponentProps {
|
|
11
|
+
/**
|
|
12
|
+
* Additional CSS classes to apply to this specific progress indicator.
|
|
13
|
+
* Use this to customize the appearance of individual indicators within the progress bar.
|
|
14
|
+
*/
|
|
15
|
+
extraClasses?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Test ID attribute for this progress indicator used in automated testing.
|
|
18
|
+
* Helps identify and interact with specific indicators in test suites.
|
|
19
|
+
*/
|
|
20
|
+
testId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Current value of this progress indicator.
|
|
23
|
+
* Should be between 0 and the progress bar's max value. The indicator's width
|
|
24
|
+
* will be calculated as a percentage based on this value relative to the max.
|
|
25
|
+
*/
|
|
26
|
+
value: number;
|
|
27
|
+
/**
|
|
28
|
+
* Custom color for this progress indicator.
|
|
29
|
+
* Can be any valid CSS color value (hex, rgb, color names, etc.).
|
|
30
|
+
* If not provided, uses the default theme color for progress indicators.
|
|
31
|
+
*/
|
|
32
|
+
color?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Text label to display on or next to this progress indicator.
|
|
35
|
+
* Useful for showing the indicator's name, category, or current value.
|
|
36
|
+
* Can be positioned and styled using labelClasses.
|
|
37
|
+
*/
|
|
38
|
+
label?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Additional CSS classes to apply specifically to the indicator's label.
|
|
41
|
+
* Use this to customize the label's typography, positioning, or styling
|
|
42
|
+
* independently from the indicator itself.
|
|
43
|
+
*/
|
|
44
|
+
labelClasses?: string;
|
|
42
45
|
}
|
|
43
46
|
/**
|
|
44
47
|
* Props for the ProgressBar component that displays one or more progress indicators.
|
|
45
48
|
* Supports multiple indicators for showing different categories or segments of progress.
|
|
46
49
|
*/
|
|
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
|
-
|
|
50
|
+
interface ProgressBarProps {
|
|
51
|
+
/**
|
|
52
|
+
* Array of progress indicators to display within the progress bar.
|
|
53
|
+
* Each indicator can have its own value, color, label, and styling.
|
|
54
|
+
* Indicators are rendered in the order they appear in the array.
|
|
55
|
+
*/
|
|
56
|
+
values: ProgressIndicatorProps[];
|
|
57
|
+
/**
|
|
58
|
+
* Maximum value for the progress bar scale.
|
|
59
|
+
* All indicator values are calculated as percentages relative to this maximum.
|
|
60
|
+
* Determines the full width (100%) of the progress bar.
|
|
61
|
+
* @default 100
|
|
62
|
+
*/
|
|
63
|
+
max?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Additional CSS classes to apply to the progress bar container.
|
|
66
|
+
* Use this to customize the overall appearance, spacing, or layout of the entire progress bar.
|
|
67
|
+
*/
|
|
68
|
+
containerExtraClasses?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Test ID attribute for the progress bar container used in automated testing.
|
|
71
|
+
* Applied to the main container element for test targeting and interaction.
|
|
72
|
+
*/
|
|
73
|
+
testId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Text label to display when all progress indicators have a value of zero.
|
|
76
|
+
* Useful for providing context or instructions when no progress has been made.
|
|
77
|
+
* Only shown when the total progress is zero.
|
|
78
|
+
*/
|
|
79
|
+
zeroValueLabel?: string;
|
|
77
80
|
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { ProgressBarProps, ProgressIndicatorProps };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import ProgressBar from "./ProgressBar.js";
|
|
2
|
+
export { ProgressBar as default };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SeeqActionDropdownProps } from "./SeeqActionDropdown.types.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/SeeqActionDropdown/SeeqActionDropdown.d.ts
|
|
5
|
+
declare const SeeqActionDropdown: React$1.FunctionComponent<SeeqActionDropdownProps>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SeeqActionDropdown as default };
|
|
@@ -1,164 +1,169 @@
|
|
|
1
|
-
import { TooltipComponentProps } from
|
|
1
|
+
import { TooltipComponentProps } from "../Tooltip/Tooltip.types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* Interface for individual action items within a SeeqActionDropdown.
|
|
4
7
|
* Each item represents a clickable action with optional icon, text, and divider.
|
|
5
8
|
*/
|
|
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
|
-
|
|
9
|
+
interface SeeqActionDropdownItems {
|
|
10
|
+
/**
|
|
11
|
+
* HTML ID attribute for the dropdown item element.
|
|
12
|
+
* Should be unique for proper HTML semantics and accessibility.
|
|
13
|
+
*/
|
|
14
|
+
id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Icon class name to display next to the item label.
|
|
17
|
+
* Typically uses FontAwesome classes (e.g., 'fc-zoom', 'fc-delete').
|
|
18
|
+
* Provides visual context for the action.
|
|
19
|
+
*/
|
|
20
|
+
icon?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Additional CSS classes to apply to the icon element.
|
|
23
|
+
* Use this to customize icon appearance beyond standard styling.
|
|
24
|
+
*/
|
|
25
|
+
iconExtraClassNames?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Additional CSS classes to apply to the dropdown icon container.
|
|
28
|
+
* Use this to customize the icon's appearance beyond default Seeq styling.
|
|
29
|
+
*/
|
|
30
|
+
iconContainerExtraClassNames?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Main display text for the dropdown item.
|
|
33
|
+
* This is the primary text that users see and click on to trigger the action.
|
|
34
|
+
*/
|
|
35
|
+
display: string;
|
|
36
|
+
/**
|
|
37
|
+
* Callback function triggered when the dropdown item is clicked.
|
|
38
|
+
* Use this to define the specific action that should occur when users select this item.
|
|
39
|
+
*/
|
|
40
|
+
action: (e?: Event) => void;
|
|
41
|
+
/**
|
|
42
|
+
* When true, the item is clickable and interactive.
|
|
43
|
+
* When false, the item appears disabled and doesn't respond to clicks.
|
|
44
|
+
* @default true
|
|
45
|
+
*/
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* When true, displays a visual divider line below this dropdown item.
|
|
49
|
+
* Useful for grouping related items or separating different sections of actions.
|
|
50
|
+
*/
|
|
51
|
+
divider?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Test ID attribute for the dropdown item used in automated testing.
|
|
54
|
+
* Helps identify and interact with specific action items in test suites.
|
|
55
|
+
*/
|
|
56
|
+
testId?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Secondary descriptive text displayed below the main display text.
|
|
59
|
+
* Provides additional context or explanation about what the action does.
|
|
60
|
+
*/
|
|
61
|
+
text?: string;
|
|
59
62
|
}
|
|
60
63
|
/**
|
|
61
64
|
* Props for the SeeqActionDropdown component that creates specialized Seeq-branded action menus.
|
|
62
65
|
* Extends TooltipComponentProps to support tooltip functionality on the trigger.
|
|
63
66
|
*/
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
67
|
+
interface SeeqActionDropdownProps extends TooltipComponentProps {
|
|
68
|
+
/**
|
|
69
|
+
* Array of action items to display in the dropdown menu.
|
|
70
|
+
* Each item represents a specific action users can perform, with icons and descriptions.
|
|
71
|
+
*/
|
|
72
|
+
seeqActionDropdownItems: SeeqActionDropdownItems[];
|
|
73
|
+
/**
|
|
74
|
+
* React element to use as the clickable trigger for the dropdown.
|
|
75
|
+
* Typically a button, icon, or text element that users click to open the action menu.
|
|
76
|
+
*/
|
|
77
|
+
trigger: React.ReactNode;
|
|
78
|
+
/**
|
|
79
|
+
* HTML ID attribute for the dropdown trigger element.
|
|
80
|
+
* Should be unique across the page for proper HTML semantics and accessibility.
|
|
81
|
+
*/
|
|
82
|
+
id?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Additional CSS classes to apply to the dropdown container.
|
|
85
|
+
* Use this to customize the dropdown's appearance beyond default Seeq styling.
|
|
86
|
+
*/
|
|
87
|
+
extraClassNames?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Test ID attribute for the dropdown container element used in automated testing.
|
|
90
|
+
* Applied to the main container that wraps both trigger and dropdown content.
|
|
91
|
+
*/
|
|
92
|
+
containerTestId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* When true, disables the dropdown trigger preventing user interaction.
|
|
95
|
+
* Disabled triggers appear visually dimmed and don't open the dropdown when clicked.
|
|
96
|
+
*/
|
|
97
|
+
disabled?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Callback function triggered when the trigger is clicked.
|
|
100
|
+
* Primarily used for tracking or analytics purposes. Note: this doesn't control
|
|
101
|
+
* dropdown opening, which is handled separately.
|
|
102
|
+
*/
|
|
103
|
+
onClick?: (e: MouseEvent) => void;
|
|
104
|
+
/**
|
|
105
|
+
* Horizontal alignment of the dropdown content relative to the trigger:
|
|
106
|
+
* - `start`: Aligns to the left edge of the trigger
|
|
107
|
+
* - `center`: Centers the dropdown on the trigger
|
|
108
|
+
* - `end`: Aligns to the right edge of the trigger
|
|
109
|
+
*/
|
|
110
|
+
align?: 'start' | 'center' | 'end';
|
|
111
|
+
/**
|
|
112
|
+
* Numeric offset in pixels from the aligned position.
|
|
113
|
+
* Positive values move the dropdown further from the trigger in the align direction.
|
|
114
|
+
*/
|
|
115
|
+
alignOffset?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Position of the dropdown relative to the trigger element:
|
|
118
|
+
* - `top`: Dropdown appears above the trigger
|
|
119
|
+
* - `bottom`: Dropdown appears below the trigger
|
|
120
|
+
* - `left`: Dropdown appears to the left of the trigger
|
|
121
|
+
* - `right`: Dropdown appears to the right of the trigger
|
|
122
|
+
*/
|
|
123
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
124
|
+
/**
|
|
125
|
+
* Numeric offset in pixels from the placement position.
|
|
126
|
+
* Positive values move the dropdown further away from the trigger.
|
|
127
|
+
*/
|
|
128
|
+
placementOffset?: number;
|
|
129
|
+
/**
|
|
130
|
+
* When true, displays a visual arrow pointing from the dropdown to the trigger.
|
|
131
|
+
* Helps users understand the relationship between trigger and dropdown content.
|
|
132
|
+
*/
|
|
133
|
+
hasArrow?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Controls whether the dropdown is currently open and visible.
|
|
136
|
+
* Use this for controlled dropdown behavior where you manage open state externally.
|
|
137
|
+
*/
|
|
138
|
+
isOpen?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Callback function triggered when the dropdown open state changes.
|
|
141
|
+
* Receives the new open state as a boolean parameter. Use this to sync with external state.
|
|
142
|
+
*/
|
|
143
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
144
|
+
/**
|
|
145
|
+
* When true, automatically focuses the trigger button when the dropdown closes.
|
|
146
|
+
* Improves keyboard navigation and accessibility by returning focus to the trigger.
|
|
147
|
+
*/
|
|
148
|
+
setFocusOnTriggerOnClose?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* When true, automatically closes the dropdown when any content inside it is clicked.
|
|
151
|
+
* Useful for action dropdowns where selecting an option should close the dropdown.
|
|
152
|
+
*/
|
|
153
|
+
isCloseOnContentClick?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* When true, traps keyboard focus within the dropdown when it's open.
|
|
156
|
+
* Prevents users from tabbing outside the dropdown, improving accessibility.
|
|
157
|
+
*/
|
|
158
|
+
keepFocusInsideDropdown?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Predefined variant that determines the dropdown's styling and behavior:
|
|
161
|
+
* - `create-workbench`: For workbench creation actions
|
|
162
|
+
* - `view-workbench`: For workbench viewing and management actions
|
|
163
|
+
* - `insert-seeq-content`: For inserting Seeq-specific content and objects
|
|
164
|
+
* Each variant has specific styling and may filter available actions.
|
|
165
|
+
*/
|
|
166
|
+
variant: 'create-workbench' | 'view-workbench' | 'insert-seeq-content';
|
|
164
167
|
}
|
|
168
|
+
//#endregion
|
|
169
|
+
export { SeeqActionDropdownItems, SeeqActionDropdownProps };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import SeeqActionDropdown from "./SeeqActionDropdown.js";
|
|
2
|
+
export { SeeqActionDropdown as default };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SeeqActionDropdownItems } from "./SeeqActionDropdown.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/SeeqActionDropdown/variants.d.ts
|
|
5
|
+
declare const SeeqActionDropdownItem: React.FC<SeeqActionDropdownItems>;
|
|
6
|
+
declare const ViewWorkbench: React.FC<SeeqActionDropdownItems>;
|
|
7
|
+
declare const InsertSeeqContent: React.FC<SeeqActionDropdownItems>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { InsertSeeqContent, SeeqActionDropdownItem, ViewWorkbench };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { MultiValue as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SelectProps } from "./Select.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { MultiValue as MultiValue$1, SingleValue as SingleValue$1 } from "react-select";
|
|
4
|
+
|
|
5
|
+
//#region src/Select/Select.d.ts
|
|
6
|
+
type MultiValue<T> = MultiValue$1<T>;
|
|
7
|
+
type SingleValue<T> = SingleValue$1<T>;
|
|
6
8
|
/**
|
|
7
9
|
* Select Component
|
|
8
10
|
* - based on react-select (https://react-select.com/)
|
|
@@ -11,4 +13,5 @@ export type SingleValue<T> = SV<T>;
|
|
|
11
13
|
*
|
|
12
14
|
*/
|
|
13
15
|
declare const Select: React.FunctionComponent<SelectProps>;
|
|
14
|
-
|
|
16
|
+
//#endregion
|
|
17
|
+
export { MultiValue, SingleValue, Select as default };
|