@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,4 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { AccordionProps } from "./Accordion.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/Accordion/Accordion.d.ts
|
|
3
5
|
declare const Accordion: React.FunctionComponent<AccordionProps>;
|
|
4
|
-
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Accordion as default };
|
|
@@ -1,86 +1,89 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/Accordion/Accordion.types.d.ts
|
|
4
|
+
interface AccordionProps {
|
|
5
|
+
/**
|
|
6
|
+
* Additional CSS classes to apply to the accordion container.
|
|
7
|
+
* Use this to customize the styling of the entire accordion component.
|
|
8
|
+
*/
|
|
9
|
+
extraClassNames?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The value of the accordion item that should be expanded by default when the component first renders.
|
|
12
|
+
* Only used when the accordion is in uncontrolled mode (when you don't manage the state externally).
|
|
13
|
+
* Should match the `value` of one of the items in `accordionItems`.
|
|
14
|
+
*/
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The value of the currently selected/expanded accordion item.
|
|
18
|
+
* This should match the `value` property of one of the items in `accordionItems`.
|
|
19
|
+
* Use this when you want to control which item is expanded from a parent component.
|
|
20
|
+
*/
|
|
21
|
+
value: string;
|
|
22
|
+
/**
|
|
23
|
+
* When true, disables the entire accordion component, preventing any user interaction.
|
|
24
|
+
* Individual items can still be disabled independently using their own `disabled` property.
|
|
25
|
+
*/
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Array of accordion items to render. Each item represents a collapsible section
|
|
29
|
+
* with a clickable header (trigger) and expandable content area.
|
|
30
|
+
*/
|
|
31
|
+
accordionItems: AccordionItem[];
|
|
32
|
+
/**
|
|
33
|
+
* Test ID attribute for the accordion container element.
|
|
34
|
+
* Used for automated testing and element selection in test suites.
|
|
35
|
+
*/
|
|
36
|
+
testId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Callback function triggered when a user clicks on an accordion item header.
|
|
39
|
+
* Receives the `value` of the selected item as a parameter.
|
|
40
|
+
* Use this to handle accordion state changes and update the `value` prop accordingly.
|
|
41
|
+
*/
|
|
42
|
+
onItemSelect: (key: string) => void;
|
|
41
43
|
}
|
|
42
44
|
interface AccordionItem {
|
|
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
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Unique identifier for the accordion item.
|
|
47
|
+
* This value is used to determine which item is currently expanded and
|
|
48
|
+
* is passed to the `onItemSelect` callback when the item is clicked.
|
|
49
|
+
*/
|
|
50
|
+
value: string;
|
|
51
|
+
/**
|
|
52
|
+
* The content displayed in the clickable header/trigger area of the accordion item.
|
|
53
|
+
* This is what users click to expand or collapse the item.
|
|
54
|
+
* Can be any React element (text, icons, buttons, etc.).
|
|
55
|
+
*/
|
|
56
|
+
trigger: React.ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* The content displayed when the accordion item is expanded.
|
|
59
|
+
* This is the collapsible content area that shows/hides when the trigger is clicked.
|
|
60
|
+
* Can contain any React elements including forms, lists, text, or other components.
|
|
61
|
+
*/
|
|
62
|
+
content: React.ReactNode;
|
|
63
|
+
/**
|
|
64
|
+
* Test ID attribute for this specific accordion item.
|
|
65
|
+
* Used for automated testing to uniquely identify and interact with this item.
|
|
66
|
+
* Applied to the item's container element.
|
|
67
|
+
*/
|
|
68
|
+
itemTestId?: string;
|
|
69
|
+
/**
|
|
70
|
+
* HTML ID attribute for the accordion item's container element.
|
|
71
|
+
* Useful for accessibility, linking, or custom styling via CSS selectors.
|
|
72
|
+
* Should be unique across the entire page.
|
|
73
|
+
*/
|
|
74
|
+
id?: string;
|
|
75
|
+
/**
|
|
76
|
+
* When true, disables this specific accordion item, preventing user interaction.
|
|
77
|
+
* The item will appear visually disabled and clicking on it will have no effect.
|
|
78
|
+
* This overrides the parent accordion's disabled state for this individual item.
|
|
79
|
+
*/
|
|
80
|
+
disabled?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Additional CSS classes to apply specifically to this item's content area.
|
|
83
|
+
* Use this to customize the styling of the expandable content section.
|
|
84
|
+
* Does not affect the trigger/header styling.
|
|
85
|
+
*/
|
|
86
|
+
contentClassNames?: string;
|
|
85
87
|
}
|
|
86
|
-
|
|
88
|
+
//#endregion
|
|
89
|
+
export { AccordionProps };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import Accordion from "./Accordion.js";
|
|
2
|
+
export { Accordion as default };
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { AlertProps } from "./Alert.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/Alert/Alert.d.ts
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
* Alert.
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
declare const Alert: React.FunctionComponent<AlertProps>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Alert };
|
|
@@ -1,62 +1,65 @@
|
|
|
1
|
-
import { TooltipComponentProps } from
|
|
1
|
+
import { TooltipComponentProps } from "../Tooltip/Tooltip.types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/Alert/Alert.types.d.ts
|
|
2
4
|
interface Props {
|
|
3
|
-
|
|
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
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The content to be displayed inside the alert message.
|
|
7
|
+
* Can include text, icons, buttons, or any other React elements.
|
|
8
|
+
* This is the main message or information you want to communicate to the user.
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* When true, displays a close button (X icon) that allows users to dismiss the alert.
|
|
13
|
+
* When false, the alert cannot be closed by the user and must be controlled programmatically.
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
dismissible?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Callback function triggered when the user clicks the close button to dismiss the alert.
|
|
19
|
+
* Only relevant when `dismissible` is true. Use this to handle alert dismissal logic,
|
|
20
|
+
* such as updating state to hide the alert or performing cleanup actions.
|
|
21
|
+
*/
|
|
22
|
+
onClose?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Controls the visibility of the alert component.
|
|
25
|
+
* When false, the alert is completely hidden from the UI.
|
|
26
|
+
* Use this for programmatic control of when alerts should appear or disappear.
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
show?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The visual style variant of the alert, which determines its appearance and color scheme:
|
|
32
|
+
* - `danger`: Red styling for error messages or critical warnings
|
|
33
|
+
* - `warning`: Yellow/orange styling for caution messages
|
|
34
|
+
* - `gray`: Neutral gray styling for general information
|
|
35
|
+
* - `theme`: Uses the current theme colors for contextual information
|
|
36
|
+
*/
|
|
37
|
+
variant: 'danger' | 'theme' | 'warning' | 'gray' | 'formulaError';
|
|
38
|
+
/**
|
|
39
|
+
* Test ID attribute for the alert container element.
|
|
40
|
+
* Used for automated testing and element selection in test suites.
|
|
41
|
+
* Also used as a prefix for the close button's test ID when dismissible.
|
|
42
|
+
* @default 'alert-id'
|
|
43
|
+
*/
|
|
44
|
+
testId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* HTML ID attribute for the alert container element.
|
|
47
|
+
* Should be unique across the entire page for proper HTML semantics.
|
|
48
|
+
* Useful for accessibility, linking, or custom styling via CSS selectors.
|
|
49
|
+
*/
|
|
50
|
+
id?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Additional CSS classes to apply to the alert container.
|
|
53
|
+
* Use this to customize the alert's appearance beyond the built-in variants.
|
|
54
|
+
* Classes are combined with the component's default styling.
|
|
55
|
+
*/
|
|
56
|
+
extraClassNames?: string;
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
59
|
* Combined props for the Alert component.
|
|
58
60
|
* Includes all Alert-specific properties plus tooltip functionality
|
|
59
61
|
* inherited from TooltipComponentProps for enhanced user interaction.
|
|
60
62
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
type AlertProps = Props & TooltipComponentProps;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { AlertProps };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Alert } from "./Alert.js";
|
|
2
|
+
export { Alert as default };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ButtonProps } from "./Button.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/Button/Button.d.ts
|
|
3
5
|
type ButtonComponentProps = ButtonProps & React.RefAttributes<HTMLButtonElement>;
|
|
4
6
|
/**
|
|
5
7
|
* All-in-one Button:
|
|
@@ -7,4 +9,5 @@ type ButtonComponentProps = ButtonProps & React.RefAttributes<HTMLButtonElement>
|
|
|
7
9
|
* - include tooltips and/or icons
|
|
8
10
|
*/
|
|
9
11
|
declare const Button: React.FunctionComponent<ButtonComponentProps>;
|
|
10
|
-
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Button as default };
|