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