@seeqdev/qomponents 0.0.223 → 0.0.229
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/index.esm.js +37 -37
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +31 -31
- package/dist/index.js.map +1 -1
- package/dist/src/Accordion/Accordion.d.ts +10 -2
- package/dist/src/Accordion/Accordion.types.d.ts +4 -4
- package/dist/src/Alert/Alert.d.ts +12 -3
- package/dist/src/Alert/Alert.types.d.ts +2 -2
- package/dist/src/Badge/Badge.d.ts +2 -2
- package/dist/src/Button/Button.d.ts +26 -1
- package/dist/src/Button/Button.types.d.ts +2 -2
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +2 -3
- package/dist/src/ButtonGroup/ButtonGroup.types.d.ts +6 -6
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +19 -3
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +6 -6
- package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +26 -2
- package/dist/src/ButtonWithPopover/ButtonWithPopover.types.d.ts +2 -2
- package/dist/src/Carousel/Carousel.d.ts +16 -2
- package/dist/src/Carousel/Carousel.types.d.ts +2 -2
- package/dist/src/Checkbox/Checkbox.d.ts +2 -3
- package/dist/src/Checkbox/Checkbox.types.d.ts +2 -2
- package/dist/src/Collapse/Collapse.d.ts +5 -2
- package/dist/src/Collapse/Collapse.types.d.ts +2 -2
- package/dist/src/ColorPickerControl/ColorPickerControl.d.ts +2 -2
- package/dist/src/ColorPickerControl/ColorPickerControl.types.d.ts +2 -2
- package/dist/src/ColorSwatch/ColorSwatch.d.ts +2 -2
- package/dist/src/ColorSwatch/ColorSwatch.types.d.ts +2 -2
- package/dist/src/EditorPanel/EditorPanel.d.ts +14 -2
- package/dist/src/EditorPanel/EditorPanel.types.d.ts +2 -2
- package/dist/src/ExternalLink/ExternalLink.d.ts +17 -0
- package/dist/src/ExternalLink/ExternalLink.types.d.ts +28 -0
- package/dist/src/ExternalLink/index.d.ts +2 -0
- package/dist/src/Icon/Icon.d.ts +17 -2
- package/dist/src/Icon/Icon.types.d.ts +3 -3
- package/dist/src/InputGroup/InputGroup.d.ts +2 -3
- package/dist/src/InputGroup/InputGroup.types.d.ts +6 -6
- package/dist/src/LoadingIndicator/LoadingIndicator.d.ts +2 -2
- package/dist/src/Modal/Modal.d.ts +44 -3
- package/dist/src/Modal/Modal.types.d.ts +5 -5
- package/dist/src/ProgressBar/ProgressBar.d.ts +7 -2
- package/dist/src/ProgressBar/ProgressBar.types.d.ts +4 -4
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +20 -2
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +4 -4
- package/dist/src/SeeqActionDropdown/variants.d.ts +4 -4
- package/dist/src/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/dist/src/SegmentedControl/SegmentedControl.types.d.ts +4 -4
- package/dist/src/Select/Select.d.ts +40 -2
- package/dist/src/Select/Select.types.d.ts +4 -4
- package/dist/src/Slider/Slider.d.ts +17 -4
- package/dist/src/Slider/Slider.types.d.ts +2 -2
- package/dist/src/SvgIcon/SvgIcon.d.ts +13 -2
- package/dist/src/SvgIcon/SvgIcon.types.d.ts +3 -3
- package/dist/src/Tabs/Tabs.d.ts +11 -2
- package/dist/src/Tabs/Tabs.types.d.ts +2 -2
- package/dist/src/TextArea/TextArea.d.ts +2 -3
- package/dist/src/TextArea/TextArea.types.d.ts +2 -2
- package/dist/src/TextField/TextField.d.ts +34 -4
- package/dist/src/TextField/TextField.types.d.ts +8 -7
- package/dist/src/ToolbarButton/ToolbarButton.d.ts +27 -2
- package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +7 -2
- package/dist/src/Tooltip/QTip.types.d.ts +2 -2
- package/dist/src/Tooltip/Qtip.d.ts +2 -2
- package/dist/src/Tooltip/Tooltip.d.ts +7 -2
- package/dist/src/Tooltip/Tooltip.types.d.ts +4 -4
- package/dist/src/TriggerWithDropdown/TriggerWithDropdown.d.ts +2 -2
- package/dist/src/TriggerWithDropdown/TriggerWithDropdown.types.d.ts +2 -2
- package/dist/src/index.build.d.ts +26 -24
- package/dist/src/index.d.ts +26 -24
- package/dist/src/types.d.ts +5 -4
- package/dist/styles.css +40 -8
- package/package.json +6 -3
|
@@ -8,7 +8,7 @@ type IconSize = '2xs' | 'xs' | 'sm' | 'lg' | 'xl' | '2xl' | '1x' | '2x' | '3x' |
|
|
|
8
8
|
* Props for the Icon component that renders customizable icons with various styling options.
|
|
9
9
|
* Extends TooltipComponentProps to support tooltip functionality on the icon.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type IconProps = {
|
|
12
12
|
/**
|
|
13
13
|
* Icon class name to display, typically from FontAwesome.
|
|
14
14
|
* Examples: 'fc-zoom', 'fc-delete', 'fc-save'. This determines which icon is rendered.
|
|
@@ -54,7 +54,7 @@ interface IconProps extends TooltipComponentProps {
|
|
|
54
54
|
* Receives the mouse event as a parameter. Use this to make icons interactive
|
|
55
55
|
* for actions like opening menus, triggering functions, or navigation.
|
|
56
56
|
*/
|
|
57
|
-
onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) =>
|
|
57
|
+
onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
58
58
|
/**
|
|
59
59
|
* Additional CSS classes to apply to the icon element.
|
|
60
60
|
* Use this to customize the icon's appearance, spacing, or behavior beyond built-in options.
|
|
@@ -89,6 +89,6 @@ interface IconProps extends TooltipComponentProps {
|
|
|
89
89
|
* Can be used for ordering, counting, or any numeric data related to the icon.
|
|
90
90
|
*/
|
|
91
91
|
number?: number;
|
|
92
|
-
}
|
|
92
|
+
} & TooltipComponentProps;
|
|
93
93
|
//#endregion
|
|
94
94
|
export { IconProps, IconSize, IconType, iconTypes };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { InputGroupProps } from "./InputGroup.types.js";
|
|
2
|
-
import
|
|
2
|
+
import * as react10 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/InputGroup/InputGroup.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* InputGroup.
|
|
8
7
|
*/
|
|
9
|
-
declare const InputGroup:
|
|
8
|
+
declare const InputGroup: react10.ForwardRefExoticComponent<Omit<InputGroupProps, "ref"> & react10.RefAttributes<HTMLInputElement>>;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { InputGroup };
|
|
@@ -8,7 +8,7 @@ import { InputLengthStyleProps, TextFieldProps } from "../TextField/TextField.ty
|
|
|
8
8
|
* Interface for button elements that can be appended to an InputGroup.
|
|
9
9
|
* Used when you want to add interactive buttons alongside the input field.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type AppendedButtonProps = {
|
|
12
12
|
/**
|
|
13
13
|
* Specifies that this appended item is an interactive button.
|
|
14
14
|
* Button items can trigger actions and provide additional functionality to the input.
|
|
@@ -19,12 +19,12 @@ interface AppendedButtonProps {
|
|
|
19
19
|
* Uses all standard Button props including click handlers, styling, icons, and tooltips.
|
|
20
20
|
*/
|
|
21
21
|
buttonProps: ButtonProps;
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
23
|
/**
|
|
24
24
|
* Interface for custom React elements that can be appended to an InputGroup.
|
|
25
25
|
* Used when you need to add non-button content like icons, labels, or decorative elements.
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
type ElementProps = {
|
|
28
28
|
/**
|
|
29
29
|
* Specifies that this appended item is a custom React element.
|
|
30
30
|
* Element items are typically decorative or informational and don't have built-in interactivity.
|
|
@@ -35,13 +35,13 @@ interface ElementProps {
|
|
|
35
35
|
* Can be any valid React node including text, icons, indicators, or complex components.
|
|
36
36
|
*/
|
|
37
37
|
element: React.ReactNode;
|
|
38
|
-
}
|
|
38
|
+
};
|
|
39
39
|
type AppendedProps = AppendedButtonProps | ElementProps | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* Base interface for InputGroup component properties.
|
|
42
42
|
* Extends TextFieldProps to inherit all text input functionality while adding group-specific features.
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
type BaseInputGroupProps = {
|
|
45
45
|
/**
|
|
46
46
|
* Array of elements to append to the right side of the input field.
|
|
47
47
|
* Each item can be either a button (for interactive functionality) or an element (for decoration).
|
|
@@ -54,7 +54,7 @@ interface BaseInputGroupProps extends TextFieldProps {
|
|
|
54
54
|
* The field will be integrated seamlessly with the appended elements.
|
|
55
55
|
*/
|
|
56
56
|
field?: React.ReactNode;
|
|
57
|
-
}
|
|
57
|
+
} & TextFieldProps;
|
|
58
58
|
/**
|
|
59
59
|
* Complete props interface for the InputGroup component.
|
|
60
60
|
* Combines base input group functionality with tooltip support and text length constraints.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LoadingIndicatorProps } from "./LoadingIndicator.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/LoadingIndicator/LoadingIndicator.d.ts
|
|
5
5
|
/**
|
|
@@ -19,6 +19,6 @@ declare const LoadingIndicator: ({
|
|
|
19
19
|
role,
|
|
20
20
|
onClick,
|
|
21
21
|
title
|
|
22
|
-
}: LoadingIndicatorProps) =>
|
|
22
|
+
}: LoadingIndicatorProps) => react_jsx_runtime13.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { LoadingIndicator as default };
|
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
import { ModalProps } from "./Modal.types.js";
|
|
2
|
-
import
|
|
3
|
-
import "react/jsx-runtime";
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
4
3
|
|
|
5
4
|
//#region src/Modal/Modal.d.ts
|
|
6
5
|
|
|
7
|
-
declare const Modal:
|
|
6
|
+
declare const Modal: ({
|
|
7
|
+
titleIcon,
|
|
8
|
+
title,
|
|
9
|
+
titleSuffixLabel,
|
|
10
|
+
subtitle,
|
|
11
|
+
children,
|
|
12
|
+
open,
|
|
13
|
+
onClose,
|
|
14
|
+
customButton,
|
|
15
|
+
customButtonLabel,
|
|
16
|
+
onClickCustomButton,
|
|
17
|
+
submitButtonLabel,
|
|
18
|
+
cancelButtonLabel,
|
|
19
|
+
disableSubmitButton,
|
|
20
|
+
stopPropagationSubmitButton,
|
|
21
|
+
onSubmit,
|
|
22
|
+
isTitleEditable,
|
|
23
|
+
onTitleChanged,
|
|
24
|
+
inputExtraClassNames,
|
|
25
|
+
hideCloseIcon,
|
|
26
|
+
size,
|
|
27
|
+
titleIconPosition,
|
|
28
|
+
hideFooterButtons,
|
|
29
|
+
hideSubmitButton,
|
|
30
|
+
hideCancelButton,
|
|
31
|
+
testId,
|
|
32
|
+
modalFooter,
|
|
33
|
+
dialogClassName,
|
|
34
|
+
titlePlaceholder,
|
|
35
|
+
titleRequired,
|
|
36
|
+
titleError,
|
|
37
|
+
submitButtonTooltip,
|
|
38
|
+
cancelButtonTooltip,
|
|
39
|
+
disableCustomButton,
|
|
40
|
+
customHeader,
|
|
41
|
+
middleFooterSection,
|
|
42
|
+
customButtonVariant,
|
|
43
|
+
submitButtonVariant,
|
|
44
|
+
keepFocusInsideModal,
|
|
45
|
+
onPointerDownOutside,
|
|
46
|
+
onInteractOutside,
|
|
47
|
+
ariaDescribedBy
|
|
48
|
+
}: ModalProps) => react_jsx_runtime6.JSX.Element;
|
|
8
49
|
//#endregion
|
|
9
50
|
export { Modal as default };
|
|
@@ -5,7 +5,7 @@ import React from "react";
|
|
|
5
5
|
//#region src/Modal/Modal.types.d.ts
|
|
6
6
|
type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
7
7
|
type TitleIconPosition = 'left' | 'right';
|
|
8
|
-
|
|
8
|
+
type ModalProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Main title text displayed prominently in the modal header.
|
|
11
11
|
* This is the primary heading that identifies the purpose or content of the modal.
|
|
@@ -58,7 +58,7 @@ interface ModalProps {
|
|
|
58
58
|
* Called when clicking the X button, cancel button, or clicking outside the modal.
|
|
59
59
|
* Use this to handle modal closure logic and update the `open` state.
|
|
60
60
|
*/
|
|
61
|
-
onClose?: () =>
|
|
61
|
+
onClose?: () => void;
|
|
62
62
|
/**
|
|
63
63
|
* When true, displays an additional custom button in the footer alongside default buttons.
|
|
64
64
|
* The custom button appears before the submit and cancel buttons.
|
|
@@ -74,7 +74,7 @@ interface ModalProps {
|
|
|
74
74
|
* Callback function triggered when the custom button is clicked.
|
|
75
75
|
* Use this to define the action that should occur when users click the custom button.
|
|
76
76
|
*/
|
|
77
|
-
onClickCustomButton?: () =>
|
|
77
|
+
onClickCustomButton?: () => void;
|
|
78
78
|
/**
|
|
79
79
|
* Text label for the primary submit/confirmation button.
|
|
80
80
|
* This button typically confirms the modal action or submits form data.
|
|
@@ -104,7 +104,7 @@ interface ModalProps {
|
|
|
104
104
|
* Receives the click event as a parameter for additional event handling.
|
|
105
105
|
* Use this to handle form submission, data processing, or confirmation actions.
|
|
106
106
|
*/
|
|
107
|
-
onSubmit?: (event: React.MouseEvent) =>
|
|
107
|
+
onSubmit?: (event: React.MouseEvent) => void;
|
|
108
108
|
/**
|
|
109
109
|
* When true, allows the title text to be edited inline by clicking on it.
|
|
110
110
|
* The title becomes an input field that users can modify directly in the modal header.
|
|
@@ -249,6 +249,6 @@ interface ModalProps {
|
|
|
249
249
|
* More general than `onPointerDownOutside` and covers additional interaction types.
|
|
250
250
|
*/
|
|
251
251
|
onInteractOutside?: (e: Event) => void;
|
|
252
|
-
}
|
|
252
|
+
};
|
|
253
253
|
//#endregion
|
|
254
254
|
export { ModalProps, ModalSize, TitleIconPosition };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { ProgressBarProps } from "./ProgressBar.types.js";
|
|
2
|
-
import
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/ProgressBar/ProgressBar.d.ts
|
|
5
|
-
declare const ProgressBar:
|
|
5
|
+
declare const ProgressBar: ({
|
|
6
|
+
values,
|
|
7
|
+
max,
|
|
8
|
+
containerExtraClasses,
|
|
9
|
+
zeroValueLabel
|
|
10
|
+
}: ProgressBarProps) => react_jsx_runtime4.JSX.Element;
|
|
6
11
|
//#endregion
|
|
7
12
|
export { ProgressBar as default };
|
|
@@ -7,7 +7,7 @@ import { TooltipComponentProps } from "../Tooltip/Tooltip.types.js";
|
|
|
7
7
|
* Each indicator represents a segment of the overall progress with its own value and styling.
|
|
8
8
|
* Extends TooltipComponentProps to support tooltip functionality on individual indicators.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
type ProgressIndicatorProps = {
|
|
11
11
|
/**
|
|
12
12
|
* Additional CSS classes to apply to this specific progress indicator.
|
|
13
13
|
* Use this to customize the appearance of individual indicators within the progress bar.
|
|
@@ -42,12 +42,12 @@ interface ProgressIndicatorProps extends TooltipComponentProps {
|
|
|
42
42
|
* independently from the indicator itself.
|
|
43
43
|
*/
|
|
44
44
|
labelClasses?: string;
|
|
45
|
-
}
|
|
45
|
+
} & TooltipComponentProps;
|
|
46
46
|
/**
|
|
47
47
|
* Props for the ProgressBar component that displays one or more progress indicators.
|
|
48
48
|
* Supports multiple indicators for showing different categories or segments of progress.
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
type ProgressBarProps = {
|
|
51
51
|
/**
|
|
52
52
|
* Array of progress indicators to display within the progress bar.
|
|
53
53
|
* Each indicator can have its own value, color, label, and styling.
|
|
@@ -77,6 +77,6 @@ interface ProgressBarProps {
|
|
|
77
77
|
* Only shown when the total progress is zero.
|
|
78
78
|
*/
|
|
79
79
|
zeroValueLabel?: string;
|
|
80
|
-
}
|
|
80
|
+
};
|
|
81
81
|
//#endregion
|
|
82
82
|
export { ProgressBarProps, ProgressIndicatorProps };
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import { SeeqActionDropdownProps } from "./SeeqActionDropdown.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/SeeqActionDropdown/SeeqActionDropdown.d.ts
|
|
5
|
-
declare const SeeqActionDropdown:
|
|
5
|
+
declare const SeeqActionDropdown: ({
|
|
6
|
+
seeqActionDropdownItems,
|
|
7
|
+
trigger,
|
|
8
|
+
id,
|
|
9
|
+
extraClassNames,
|
|
10
|
+
containerTestId,
|
|
11
|
+
disabled,
|
|
12
|
+
align,
|
|
13
|
+
placement,
|
|
14
|
+
placementOffset,
|
|
15
|
+
alignOffset,
|
|
16
|
+
hasArrow,
|
|
17
|
+
onOpenChange,
|
|
18
|
+
isOpen,
|
|
19
|
+
setFocusOnTriggerOnClose,
|
|
20
|
+
keepFocusInsideDropdown,
|
|
21
|
+
variant,
|
|
22
|
+
...tooltipProps
|
|
23
|
+
}: SeeqActionDropdownProps) => react_jsx_runtime16.JSX.Element;
|
|
6
24
|
//#endregion
|
|
7
25
|
export { SeeqActionDropdown as default };
|
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
|
7
7
|
* Interface for individual action items within a SeeqActionDropdown.
|
|
8
8
|
* Each item represents a clickable action with optional icon, text, and divider.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
type SeeqActionDropdownItems = {
|
|
11
11
|
/**
|
|
12
12
|
* HTML ID attribute for the dropdown item element.
|
|
13
13
|
* Should be unique for proper HTML semantics and accessibility.
|
|
@@ -65,12 +65,12 @@ interface SeeqActionDropdownItems {
|
|
|
65
65
|
* still allows interaction, cursor changes, and hover states.
|
|
66
66
|
*/
|
|
67
67
|
dim?: boolean;
|
|
68
|
-
}
|
|
68
|
+
};
|
|
69
69
|
/**
|
|
70
70
|
* Props for the SeeqActionDropdown component that creates specialized Seeq-branded action menus.
|
|
71
71
|
* Extends TooltipComponentProps to support tooltip functionality on the trigger.
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
type SeeqActionDropdownProps = {
|
|
74
74
|
/**
|
|
75
75
|
* Array of action items to display in the dropdown menu.
|
|
76
76
|
* Each item represents a specific action users can perform, with icons and descriptions.
|
|
@@ -170,6 +170,6 @@ interface SeeqActionDropdownProps extends TooltipComponentProps {
|
|
|
170
170
|
* Each variant has specific styling and may filter available actions.
|
|
171
171
|
*/
|
|
172
172
|
variant: 'create-workbench' | 'view-workbench' | 'insert-seeq-content';
|
|
173
|
-
}
|
|
173
|
+
} & TooltipComponentProps;
|
|
174
174
|
//#endregion
|
|
175
175
|
export { SeeqActionDropdownItems, SeeqActionDropdownProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SeeqActionDropdownItems } from "./SeeqActionDropdown.types.js";
|
|
2
|
-
import
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/SeeqActionDropdown/variants.d.ts
|
|
5
|
-
declare const SeeqActionDropdownItem:
|
|
6
|
-
declare const ViewWorkbench:
|
|
7
|
-
declare const InsertSeeqContent:
|
|
5
|
+
declare const SeeqActionDropdownItem: (item: SeeqActionDropdownItems) => react_jsx_runtime10.JSX.Element;
|
|
6
|
+
declare const ViewWorkbench: (item: SeeqActionDropdownItems) => react_jsx_runtime10.JSX.Element;
|
|
7
|
+
declare const InsertSeeqContent: (item: SeeqActionDropdownItems) => react_jsx_runtime10.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { InsertSeeqContent, SeeqActionDropdownItem, ViewWorkbench };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SegmentedControlProps } from "./SegmentedControl.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/SegmentedControl/SegmentedControl.d.ts
|
|
5
5
|
declare function SegmentedControl<T extends string | number | boolean>({
|
|
@@ -10,6 +10,6 @@ declare function SegmentedControl<T extends string | number | boolean>({
|
|
|
10
10
|
id,
|
|
11
11
|
testId,
|
|
12
12
|
ariaLabel
|
|
13
|
-
}: SegmentedControlProps<T>):
|
|
13
|
+
}: SegmentedControlProps<T>): react_jsx_runtime9.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SegmentedControl as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
//#region src/SegmentedControl/SegmentedControl.types.d.ts
|
|
2
|
-
|
|
2
|
+
type SegmentedControlOption<T extends string | number | boolean> = {
|
|
3
3
|
/** The text label displayed on the option button. */
|
|
4
4
|
label: string;
|
|
5
5
|
/** The value associated with this option, passed to `onChange` when selected. */
|
|
6
6
|
value: T;
|
|
7
|
-
}
|
|
8
|
-
|
|
7
|
+
};
|
|
8
|
+
type SegmentedControlProps<T extends string | number | boolean> = {
|
|
9
9
|
/** The list of options to render as selectable pill buttons. */
|
|
10
10
|
options: SegmentedControlOption<T>[];
|
|
11
11
|
/** The currently selected value. The matching option will be displayed as active. */
|
|
@@ -20,6 +20,6 @@ interface SegmentedControlProps<T extends string | number | boolean> {
|
|
|
20
20
|
testId?: string;
|
|
21
21
|
/** Accessible label for the group of option buttons. */
|
|
22
22
|
ariaLabel?: string;
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
24
|
//#endregion
|
|
25
25
|
export { SegmentedControlOption, SegmentedControlProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectProps } from "./Select.types.js";
|
|
2
|
-
import
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
3
|
import { MultiValue as MultiValue$1, SingleValue as SingleValue$1 } from "react-select";
|
|
4
4
|
|
|
5
5
|
//#region src/Select/Select.d.ts
|
|
@@ -12,6 +12,44 @@ type SingleValue<T> = SingleValue$1<T>;
|
|
|
12
12
|
* For ease of testing most of the elements of this select can be identified by classNames prefixed with "spec".
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
declare const Select:
|
|
15
|
+
declare const Select: ({
|
|
16
|
+
options,
|
|
17
|
+
value,
|
|
18
|
+
placeholder,
|
|
19
|
+
noOptionsMessage,
|
|
20
|
+
isSearchable,
|
|
21
|
+
creatable,
|
|
22
|
+
isMulti,
|
|
23
|
+
isClearable,
|
|
24
|
+
closeMenuOnSelect,
|
|
25
|
+
id,
|
|
26
|
+
inputId,
|
|
27
|
+
menuPortalTarget,
|
|
28
|
+
getOptionLabel,
|
|
29
|
+
getSelectedValueLabel,
|
|
30
|
+
getOptionValue,
|
|
31
|
+
onChange,
|
|
32
|
+
menuIsOpen,
|
|
33
|
+
menuPlacement,
|
|
34
|
+
extraClassNames,
|
|
35
|
+
controlClassNames,
|
|
36
|
+
inputGroup,
|
|
37
|
+
filterConfig,
|
|
38
|
+
filterOption,
|
|
39
|
+
small,
|
|
40
|
+
isDisabled,
|
|
41
|
+
showError,
|
|
42
|
+
isLoading,
|
|
43
|
+
formatGroupLabel,
|
|
44
|
+
onRemove,
|
|
45
|
+
defaultValue,
|
|
46
|
+
onMenuOpen,
|
|
47
|
+
onMenuClose,
|
|
48
|
+
components,
|
|
49
|
+
onMenuInputFocus,
|
|
50
|
+
onInputChange,
|
|
51
|
+
inputValue,
|
|
52
|
+
onMenuScrollToBottom
|
|
53
|
+
}: SelectProps) => react_jsx_runtime21.JSX.Element;
|
|
16
54
|
//#endregion
|
|
17
55
|
export { MultiValue, SingleValue, Select as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputGroupPlacement } from "../types.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import { GroupBase, InputActionMeta, MenuPlacement, MultiValue, SingleValue } from "react-select";
|
|
3
|
+
import { GroupBase, InputActionMeta, MenuPlacement, MultiValue, SelectComponentsConfig, SingleValue } from "react-select";
|
|
4
4
|
|
|
5
5
|
//#region src/Select/Select.types.d.ts
|
|
6
6
|
type Option = {
|
|
@@ -15,7 +15,7 @@ type GroupedOption = {
|
|
|
15
15
|
* Props for the Select component that provides a customizable dropdown selection interface.
|
|
16
16
|
* Built on top of react-select with additional Seeq-specific styling and functionality.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
type SelectProps = {
|
|
19
19
|
/**
|
|
20
20
|
* When false (default), automatically closes the dropdown menu after an option is selected.
|
|
21
21
|
* When true, keeps the menu open after selection, useful for multi-select scenarios
|
|
@@ -204,7 +204,7 @@ interface SelectProps {
|
|
|
204
204
|
* Allows deep customization of option rendering, control appearance, etc.
|
|
205
205
|
* See react-select documentation for available component slots.
|
|
206
206
|
*/
|
|
207
|
-
components?:
|
|
207
|
+
components?: SelectComponentsConfig<Option, boolean, GroupBase<Option>>;
|
|
208
208
|
/**
|
|
209
209
|
* Callback triggered when the search input within the menu receives focus.
|
|
210
210
|
* Receives the current input value. Useful for search-related functionality.
|
|
@@ -226,6 +226,6 @@ interface SelectProps {
|
|
|
226
226
|
* Use this to fetch the next page of options when implementing infinite-scroll loading.
|
|
227
227
|
*/
|
|
228
228
|
onMenuScrollToBottom?: (event: WheelEvent | TouchEvent) => void;
|
|
229
|
-
}
|
|
229
|
+
};
|
|
230
230
|
//#endregion
|
|
231
231
|
export { GroupedOption, Option, SelectProps };
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import { SliderProps } from "./Slider.types.js";
|
|
2
|
-
import
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/Slider/Slider.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
|
-
* Slider .
|
|
6
|
+
* Slider component for selecting a value within a range.
|
|
8
7
|
*/
|
|
9
|
-
declare const Slider:
|
|
8
|
+
declare const Slider: ({
|
|
9
|
+
onValueChange,
|
|
10
|
+
onPointerUp,
|
|
11
|
+
id,
|
|
12
|
+
value,
|
|
13
|
+
name,
|
|
14
|
+
disabled,
|
|
15
|
+
rootExtraClassNames,
|
|
16
|
+
trackExtraClassNames,
|
|
17
|
+
rangeExtraClassNames,
|
|
18
|
+
thumbExtraClassNames,
|
|
19
|
+
step,
|
|
20
|
+
min,
|
|
21
|
+
max
|
|
22
|
+
}: SliderProps) => react_jsx_runtime19.JSX.Element;
|
|
10
23
|
//#endregion
|
|
11
24
|
export { Slider };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Props for the Slider component that provides an interactive range input control.
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
type SliderProps = {
|
|
6
6
|
/**
|
|
7
7
|
* When true, disables the slider preventing user interaction.
|
|
8
8
|
* Disabled sliders appear visually dimmed and don't respond to mouse or keyboard input.
|
|
@@ -82,6 +82,6 @@ interface SliderProps {
|
|
|
82
82
|
* @default 100
|
|
83
83
|
*/
|
|
84
84
|
max?: number;
|
|
85
|
-
}
|
|
85
|
+
};
|
|
86
86
|
//#endregion
|
|
87
87
|
export { SliderProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvgIconProps } from "./SvgIcon.types.js";
|
|
2
|
-
import
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/SvgIcon/SvgIcon.d.ts
|
|
5
5
|
|
|
@@ -18,6 +18,17 @@ import React from "react";
|
|
|
18
18
|
* @param type - default will use dark/light text colors otherwise will use the theme color
|
|
19
19
|
* @param tooltipProps - props to pass to the tooltip
|
|
20
20
|
*/
|
|
21
|
-
declare const SvgIcon:
|
|
21
|
+
declare const SvgIcon: ({
|
|
22
|
+
onClick,
|
|
23
|
+
icon,
|
|
24
|
+
color,
|
|
25
|
+
type,
|
|
26
|
+
extraClassNames,
|
|
27
|
+
viewBox,
|
|
28
|
+
id,
|
|
29
|
+
testId,
|
|
30
|
+
customId,
|
|
31
|
+
...tooltipProps
|
|
32
|
+
}: SvgIconProps) => react_jsx_runtime5.JSX.Element;
|
|
22
33
|
//#endregion
|
|
23
34
|
export { SvgIcon as default };
|
|
@@ -8,7 +8,7 @@ type SvgIconType = (typeof svgIconTypes)[number];
|
|
|
8
8
|
* Extends TooltipComponentProps to support tooltip functionality on the icon.
|
|
9
9
|
* Similar to Icon component but specifically for SVG icons instead of font icons.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type SvgIconProps = {
|
|
12
12
|
/**
|
|
13
13
|
* SVG icon identifier or class name to display.
|
|
14
14
|
* This should correspond to an available SVG icon in your icon system.
|
|
@@ -45,7 +45,7 @@ interface SvgIconProps extends TooltipComponentProps {
|
|
|
45
45
|
* Receives the mouse event as a parameter. Use this to make icons interactive
|
|
46
46
|
* for actions like opening menus, triggering functions, or navigation.
|
|
47
47
|
*/
|
|
48
|
-
onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) =>
|
|
48
|
+
onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
49
49
|
/**
|
|
50
50
|
* Additional CSS classes to apply to the SVG icon element.
|
|
51
51
|
* Use this to customize the icon's appearance, spacing, or behavior beyond built-in options.
|
|
@@ -74,6 +74,6 @@ interface SvgIconProps extends TooltipComponentProps {
|
|
|
74
74
|
* Use this to crop or scale the icon's visible area.
|
|
75
75
|
*/
|
|
76
76
|
viewBox?: string;
|
|
77
|
-
}
|
|
77
|
+
} & TooltipComponentProps;
|
|
78
78
|
//#endregion
|
|
79
79
|
export { SvgIconProps, SvgIconType, svgIconTypes };
|
package/dist/src/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { TabsProps } from "./Tabs.types.js";
|
|
2
|
-
import
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/Tabs/Tabs.d.ts
|
|
5
|
-
declare const Tabs:
|
|
5
|
+
declare const Tabs: ({
|
|
6
|
+
tabs,
|
|
7
|
+
defaultActiveTab,
|
|
8
|
+
activeTab,
|
|
9
|
+
onTabSelect,
|
|
10
|
+
extraClassNames,
|
|
11
|
+
testId,
|
|
12
|
+
id,
|
|
13
|
+
stretchTabs
|
|
14
|
+
}: TabsProps) => react_jsx_runtime3.JSX.Element;
|
|
6
15
|
//#endregion
|
|
7
16
|
export { Tabs as default };
|
|
@@ -5,7 +5,7 @@ import React from "react";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Tabs component that creates a tabbed interface for organizing content.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type TabsProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Additional CSS classes to apply to the tabs container.
|
|
11
11
|
* Use this to customize the overall appearance and layout of the tab component.
|
|
@@ -100,6 +100,6 @@ interface TabsProps {
|
|
|
100
100
|
*/
|
|
101
101
|
tabLabelExtraClassNames?: string;
|
|
102
102
|
}[];
|
|
103
|
-
}
|
|
103
|
+
};
|
|
104
104
|
//#endregion
|
|
105
105
|
export { TabsProps };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { TextAreaProps } from "./TextArea.types.js";
|
|
2
|
-
import
|
|
2
|
+
import * as react0 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/TextArea/TextArea.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* TextArea.
|
|
8
7
|
*/
|
|
9
|
-
declare const TextArea:
|
|
8
|
+
declare const TextArea: react0.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & react0.RefAttributes<HTMLTextAreaElement>>;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { TextArea };
|
|
@@ -5,7 +5,7 @@ import { FormControlElement } from "../types.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the TextArea component that provides a multi-line text input control.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type TextAreaProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Additional CSS classes to apply to the textarea element.
|
|
11
11
|
* Use this to customize the appearance beyond the default styling.
|
|
@@ -115,6 +115,6 @@ interface TextAreaProps {
|
|
|
115
115
|
* Ref object to access the underlying textarea DOM element.
|
|
116
116
|
*/
|
|
117
117
|
ref?: React.Ref<HTMLTextAreaElement>;
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
//#endregion
|
|
120
120
|
export { TextAreaProps };
|