@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.
- 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 +9 -8
- package/dist/src/styles.build.css.d.ts +0 -1
|
@@ -1,91 +1,94 @@
|
|
|
1
|
-
import { TooltipComponentProps } from
|
|
1
|
+
import { TooltipComponentProps } from "../Tooltip/Tooltip.types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/Checkbox/Checkbox.types.d.ts
|
|
2
4
|
type FormControlElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
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
|
-
|
|
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
|
-
|
|
5
|
+
interface CheckboxProps extends TooltipComponentProps {
|
|
6
|
+
/**
|
|
7
|
+
* Additional CSS classes to apply to the checkbox container.
|
|
8
|
+
* These classes are combined with the component's built-in styling.
|
|
9
|
+
* Use this to customize the overall appearance of the checkbox wrapper.
|
|
10
|
+
*/
|
|
11
|
+
extraClassNames?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Additional CSS classes to apply specifically to the label element.
|
|
14
|
+
* Use this to customize the styling of the text label that appears next to the checkbox.
|
|
15
|
+
* Does not affect the input element itself.
|
|
16
|
+
*/
|
|
17
|
+
extraLabelClassNames?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Determines the type of input control to render:
|
|
20
|
+
* - `checkbox`: Standard checkbox that can be checked/unchecked independently
|
|
21
|
+
* - `radio`: Radio button that is typically part of a group where only one can be selected
|
|
22
|
+
* @default 'checkbox'
|
|
23
|
+
*/
|
|
24
|
+
type?: 'radio' | 'checkbox';
|
|
25
|
+
/**
|
|
26
|
+
* HTML ID attribute for the input element.
|
|
27
|
+
* Should be unique across the entire page for proper HTML semantics and accessibility.
|
|
28
|
+
* If not provided, a random ID will be generated automatically.
|
|
29
|
+
* Used for associating the label with the input for accessibility.
|
|
30
|
+
*/
|
|
31
|
+
id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Name attribute for the input element, used for form submission and grouping.
|
|
34
|
+
* For radio buttons, all options in the same group should share the same name.
|
|
35
|
+
* For checkboxes, this identifies the field when the form is submitted.
|
|
36
|
+
*/
|
|
37
|
+
name?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Controls whether the checkbox/radio button is currently checked.
|
|
40
|
+
* Use this for controlled components where you manage the state externally.
|
|
41
|
+
* When provided, the component becomes controlled and you must handle state changes via `onChange`.
|
|
42
|
+
*/
|
|
43
|
+
checked?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Sets the initial checked state for uncontrolled components.
|
|
46
|
+
* Only used when `checked` is not provided (uncontrolled mode).
|
|
47
|
+
* The component will manage its own state after the initial render.
|
|
48
|
+
*/
|
|
49
|
+
defaultChecked?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The value associated with this checkbox/radio button.
|
|
52
|
+
* This is the value that will be submitted with the form when the input is checked.
|
|
53
|
+
* For radio buttons, each option in a group should have a unique value.
|
|
54
|
+
*/
|
|
55
|
+
value?: string | number;
|
|
56
|
+
/**
|
|
57
|
+
* The text or content to display as the label next to the checkbox/radio button.
|
|
58
|
+
* Can be a simple string or any React element for more complex label content.
|
|
59
|
+
* Clicking on this label will toggle the input due to proper accessibility association.
|
|
60
|
+
*/
|
|
61
|
+
label?: string | React.ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* Callback function triggered when the checkbox/radio button state changes.
|
|
64
|
+
* Receives the change event which contains the new checked state and value.
|
|
65
|
+
* Use this to update your component state when in controlled mode.
|
|
66
|
+
*/
|
|
67
|
+
onChange?: React.ChangeEventHandler<FormControlElement>;
|
|
68
|
+
/**
|
|
69
|
+
* Callback function triggered when a key is pressed while the input has focus.
|
|
70
|
+
* Useful for implementing custom keyboard navigation or shortcuts.
|
|
71
|
+
* Receives the keyboard event with details about the pressed key.
|
|
72
|
+
*/
|
|
73
|
+
onKeyDown?: React.KeyboardEventHandler<FormControlElement>;
|
|
74
|
+
/**
|
|
75
|
+
* Callback function triggered when the input element is clicked.
|
|
76
|
+
* This fires before the onChange event and can be used for additional click handling.
|
|
77
|
+
* Note that clicking the associated label will also trigger this event.
|
|
78
|
+
*/
|
|
79
|
+
onClick?: React.MouseEventHandler<FormControlElement>;
|
|
80
|
+
/**
|
|
81
|
+
* When true, disables the checkbox/radio button preventing user interaction.
|
|
82
|
+
* Disabled inputs appear visually dimmed and do not respond to user actions.
|
|
83
|
+
* The input will not be included in form submissions when disabled.
|
|
84
|
+
*/
|
|
85
|
+
disabled?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Test ID attribute for the input element used in automated testing.
|
|
88
|
+
* Applied to the `data-testid` attribute for element selection in test suites.
|
|
89
|
+
* Helps identify this specific checkbox/radio button in tests.
|
|
90
|
+
*/
|
|
91
|
+
testId?: string;
|
|
90
92
|
}
|
|
91
|
-
|
|
93
|
+
//#endregion
|
|
94
|
+
export { CheckboxProps };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Checkbox } from "./Checkbox.js";
|
|
2
|
+
export { Checkbox as default };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CollapseProps } from "./Collapse.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/Collapse/Collapse.d.ts
|
|
3
5
|
declare const Collapse: React.FunctionComponent<CollapseProps>;
|
|
4
|
-
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Collapse as default };
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
+
//#region src/Collapse/Collapse.types.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Props for the Collapse component that creates smooth expand/collapse animations.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
interface CollapseProps {
|
|
6
|
+
/**
|
|
7
|
+
* Controls whether the collapse content is visible and expanded.
|
|
8
|
+
* When true, the content smoothly expands to full height.
|
|
9
|
+
* When false, the content smoothly collapses to zero height.
|
|
10
|
+
* Use this to control the collapse state from parent components.
|
|
11
|
+
*/
|
|
12
|
+
isVisible: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Content to display inside the collapsible area.
|
|
15
|
+
* Can be any React elements that you want to show/hide with animation.
|
|
16
|
+
* The content will be measured and animated when expanding or collapsing.
|
|
17
|
+
*/
|
|
18
|
+
children: React.ReactNode;
|
|
18
19
|
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { CollapseProps };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import Collapse from "./Collapse.js";
|
|
2
|
+
export { Collapse as default };
|
package/dist/src/Icon/Icon.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { IconProps } from "./Icon.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/Icon/Icon.d.ts
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
* Icon:
|
|
5
8
|
* - access to Seeq custom icons by providing the desired icon
|
|
6
9
|
* - leverage "type" to style your icon
|
|
7
10
|
*/
|
|
8
11
|
declare const Icon: React.FunctionComponent<IconProps>;
|
|
9
|
-
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Icon as default };
|
|
@@ -1,90 +1,94 @@
|
|
|
1
|
-
import { TooltipComponentProps } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TooltipComponentProps } from "../Tooltip/Tooltip.types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/Icon/Icon.types.d.ts
|
|
4
|
+
declare const iconTypes: readonly ["theme", "white", "dark-gray", "darkish-gray", "gray", "color", "info", "text", "warning", "inherit", "danger", "theme-light", "success"];
|
|
5
|
+
type IconType = (typeof iconTypes)[number];
|
|
6
|
+
type IconSize = '2xs' | 'xs' | 'sm' | 'lg' | 'xl' | '2xl' | '1x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | '10x';
|
|
5
7
|
/**
|
|
6
8
|
* Props for the Icon component that renders customizable icons with various styling options.
|
|
7
9
|
* Extends TooltipComponentProps to support tooltip functionality on the icon.
|
|
8
10
|
*/
|
|
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
|
-
|
|
11
|
+
interface IconProps extends TooltipComponentProps {
|
|
12
|
+
/**
|
|
13
|
+
* Icon class name to display, typically from FontAwesome.
|
|
14
|
+
* Examples: 'fc-zoom', 'fc-delete', 'fc-save'. This determines which icon is rendered.
|
|
15
|
+
*/
|
|
16
|
+
icon: string;
|
|
17
|
+
/**
|
|
18
|
+
* Custom prefix for the icon class when not using standard FontAwesome icons.
|
|
19
|
+
* By default, icons are prefixed with 'fa-sharp fa-regular', but some icons
|
|
20
|
+
* from different icon sets require specific prefixes. Use this to override the default.
|
|
21
|
+
*/
|
|
22
|
+
iconPrefix?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Visual style type that determines the icon's color and appearance:
|
|
25
|
+
* - `theme`: Uses primary theme colors (default)
|
|
26
|
+
* - `white`: Pure white color
|
|
27
|
+
* - `text`: Uses standard text color
|
|
28
|
+
* - `dark-gray`: Dark gray color
|
|
29
|
+
* - `darkish-gray`: Medium-dark gray color
|
|
30
|
+
* - `gray`: Standard gray color
|
|
31
|
+
* - `color`: Uses custom color specified in `color` prop
|
|
32
|
+
* - `info`: Blue informational color
|
|
33
|
+
* - `warning`: Yellow/orange warning color
|
|
34
|
+
* - `danger`: Red error/danger color
|
|
35
|
+
* - `success`: Green success color
|
|
36
|
+
* - `theme-light`: Lighter version of theme color
|
|
37
|
+
* - `inherit`: Inherits color from parent element
|
|
38
|
+
* @default 'theme'
|
|
39
|
+
*/
|
|
40
|
+
type?: IconType;
|
|
41
|
+
/**
|
|
42
|
+
* Icon size, mapped to FontAwesome sizing classes so it works for both FA and FontCustom icons.
|
|
43
|
+
* Examples: 'sm', 'lg', 'xl', '2xl', '1x'...'10x', 'xs', '2xs'.
|
|
44
|
+
*/
|
|
45
|
+
size?: IconSize;
|
|
46
|
+
/**
|
|
47
|
+
* Custom color value for the icon when `type` is set to 'color'.
|
|
48
|
+
* Can be any valid CSS color (hex, rgb, color names, etc.).
|
|
49
|
+
* This property is required when type is 'color'.
|
|
50
|
+
*/
|
|
51
|
+
color?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Callback function triggered when the icon is clicked.
|
|
54
|
+
* Receives the mouse event as a parameter. Use this to make icons interactive
|
|
55
|
+
* for actions like opening menus, triggering functions, or navigation.
|
|
56
|
+
*/
|
|
57
|
+
onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => any;
|
|
58
|
+
/**
|
|
59
|
+
* Additional CSS classes to apply to the icon element.
|
|
60
|
+
* Use this to customize the icon's appearance, spacing, or behavior beyond built-in options.
|
|
61
|
+
*/
|
|
62
|
+
extraClassNames?: string;
|
|
63
|
+
/**
|
|
64
|
+
* HTML ID attribute for the icon element.
|
|
65
|
+
* Should be unique across the page for proper HTML semantics and accessibility.
|
|
66
|
+
*/
|
|
67
|
+
id?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated Use `size="lg"` instead.
|
|
70
|
+
*/
|
|
71
|
+
large?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Use `size="sm"` instead.
|
|
74
|
+
*/
|
|
75
|
+
small?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Test ID attribute for the icon element used in automated testing.
|
|
78
|
+
* Applied to the `data-testid` attribute for element selection in test suites.
|
|
79
|
+
*/
|
|
80
|
+
testId?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Custom identifier placed in the `data-customid` attribute on the icon element.
|
|
83
|
+
* Useful for identifying the specific icon in event handlers when multiple icons
|
|
84
|
+
* share the same click handler. Helps distinguish which icon was clicked.
|
|
85
|
+
*/
|
|
86
|
+
customId?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Numeric value associated with the icon, purpose depends on specific use case.
|
|
89
|
+
* Can be used for ordering, counting, or any numeric data related to the icon.
|
|
90
|
+
*/
|
|
91
|
+
number?: number;
|
|
90
92
|
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { IconProps, IconSize, IconType, iconTypes };
|
package/dist/src/Icon/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import Icon from "./Icon.js";
|
|
2
|
+
export { Icon as default };
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { InputGroupProps } from "./InputGroup.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/InputGroup/InputGroup.d.ts
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
* InputGroup.
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
declare const InputGroup: React.ForwardRefExoticComponent<Omit<InputGroupProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { InputGroup };
|
|
@@ -1,61 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { TooltipComponentProps } from "../Tooltip/Tooltip.types.js";
|
|
2
|
+
import { ButtonProps } from "../Button/Button.types.js";
|
|
3
|
+
import { InputLengthStyleProps, TextFieldProps } from "../TextField/TextField.types.js";
|
|
4
|
+
|
|
5
|
+
//#region src/InputGroup/InputGroup.types.d.ts
|
|
6
|
+
|
|
4
7
|
/**
|
|
5
8
|
* Interface for button elements that can be appended to an InputGroup.
|
|
6
9
|
* Used when you want to add interactive buttons alongside the input field.
|
|
7
10
|
*/
|
|
8
11
|
interface AppendedButtonProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Specifies that this appended item is an interactive button.
|
|
14
|
+
* Button items can trigger actions and provide additional functionality to the input.
|
|
15
|
+
*/
|
|
16
|
+
variant: 'button';
|
|
17
|
+
/**
|
|
18
|
+
* Configuration properties for the button component.
|
|
19
|
+
* Uses all standard Button props including click handlers, styling, icons, and tooltips.
|
|
20
|
+
*/
|
|
21
|
+
buttonProps: ButtonProps;
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
21
24
|
* Interface for custom React elements that can be appended to an InputGroup.
|
|
22
25
|
* Used when you need to add non-button content like icons, labels, or decorative elements.
|
|
23
26
|
*/
|
|
24
27
|
interface ElementProps {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Specifies that this appended item is a custom React element.
|
|
30
|
+
* Element items are typically decorative or informational and don't have built-in interactivity.
|
|
31
|
+
*/
|
|
32
|
+
variant: 'element';
|
|
33
|
+
/**
|
|
34
|
+
* The React content to render alongside the input field.
|
|
35
|
+
* Can be any valid React node including text, icons, indicators, or complex components.
|
|
36
|
+
*/
|
|
37
|
+
element: React.ReactNode;
|
|
35
38
|
}
|
|
36
|
-
|
|
39
|
+
type AppendedProps = AppendedButtonProps | ElementProps | undefined;
|
|
37
40
|
/**
|
|
38
41
|
* Base interface for InputGroup component properties.
|
|
39
42
|
* Extends TextFieldProps to inherit all text input functionality while adding group-specific features.
|
|
40
43
|
*/
|
|
41
44
|
interface BaseInputGroupProps extends TextFieldProps {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Array of elements to append to the right side of the input field.
|
|
47
|
+
* Each item can be either a button (for interactive functionality) or an element (for decoration).
|
|
48
|
+
* Items are displayed in the order they appear in the array, creating a cohesive input group.
|
|
49
|
+
*/
|
|
50
|
+
append: AppendedProps[];
|
|
51
|
+
/**
|
|
52
|
+
* Custom input field component to render instead of the default TextField.
|
|
53
|
+
* Use this when you need specialized input behavior while maintaining the group styling.
|
|
54
|
+
* The field will be integrated seamlessly with the appended elements.
|
|
55
|
+
*/
|
|
56
|
+
field?: React.ReactNode;
|
|
54
57
|
}
|
|
55
58
|
/**
|
|
56
59
|
* Complete props interface for the InputGroup component.
|
|
57
60
|
* Combines base input group functionality with tooltip support and text length constraints.
|
|
58
61
|
* Creates a cohesive input control with attached buttons or decorative elements.
|
|
59
62
|
*/
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
type InputGroupProps = BaseInputGroupProps & TooltipComponentProps & InputLengthStyleProps;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { AppendedProps, InputGroupProps };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { AppendedProps } from "./InputGroup.types.js";
|
|
2
|
+
import { InputGroup } from "./InputGroup.js";
|
|
3
|
+
export { type AppendedProps, InputGroup as default };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ModalProps } from "./Modal.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/Modal/Modal.d.ts
|
|
6
|
+
|
|
3
7
|
declare const Modal: React.FunctionComponent<ModalProps>;
|
|
4
|
-
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Modal as default };
|