@seeqdev/qomponents 0.0.157 → 0.0.159-patch-package-alternative
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/example/package.json +15 -13
- package/dist/example/src/Example.tsx +269 -39
- package/dist/example/src/index.css +1 -0
- package/dist/example/vite.config.ts +2 -1
- package/dist/index.esm.js +2710 -2706
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2710 -2706
- package/dist/index.js.map +1 -1
- package/dist/{Accordion → src/Accordion}/Accordion.d.ts +4 -4
- package/dist/src/Accordion/Accordion.stories.d.ts +5 -0
- package/dist/{Accordion → src/Accordion}/Accordion.test.d.ts +1 -1
- package/dist/src/Accordion/Accordion.types.d.ts +86 -0
- package/dist/{Accordion → src/Accordion}/index.d.ts +1 -1
- package/dist/{Alert → src/Alert}/Alert.d.ts +7 -7
- package/dist/src/Alert/Alert.stories.d.ts +5 -0
- package/dist/src/Alert/Alert.test.d.ts +1 -0
- package/dist/src/Alert/Alert.types.d.ts +63 -0
- package/dist/{Alert → src/Alert}/index.d.ts +1 -1
- package/dist/{Button → src/Button}/Button.d.ts +10 -10
- package/dist/src/Button/Button.stories.d.ts +8 -0
- package/dist/{Button → src/Button}/Button.test.d.ts +1 -1
- package/dist/src/Button/Button.types.d.ts +148 -0
- package/dist/{Button → src/Button}/index.d.ts +1 -1
- package/dist/{ButtonGroup → src/ButtonGroup}/ButtonGroup.d.ts +7 -7
- package/dist/src/ButtonGroup/ButtonGroup.stories.d.ts +5 -0
- package/dist/src/ButtonGroup/ButtonGroup.test.d.ts +1 -0
- package/dist/src/ButtonGroup/ButtonGroup.types.d.ts +81 -0
- package/dist/{ButtonGroup → src/ButtonGroup}/index.d.ts +1 -1
- package/dist/{ButtonWithDropdown → src/ButtonWithDropdown}/ButtonWithDropdown.d.ts +4 -4
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +5 -0
- package/dist/{ButtonWithDropdown → src/ButtonWithDropdown}/ButtonWithDropdown.test.d.ts +1 -1
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +233 -0
- package/dist/{ButtonWithDropdown → src/ButtonWithDropdown}/index.d.ts +1 -1
- package/dist/{ButtonWithPopover → src/ButtonWithPopover}/ButtonWithPopover.d.ts +4 -4
- package/dist/src/ButtonWithPopover/ButtonWithPopover.stories.d.ts +5 -0
- package/dist/{ButtonWithPopover → src/ButtonWithPopover}/ButtonWithPopover.test.d.ts +1 -1
- package/dist/src/ButtonWithPopover/ButtonWithPopover.types.d.ts +134 -0
- package/dist/{ButtonWithPopover → src/ButtonWithPopover}/index.d.ts +1 -1
- package/dist/{Carousel → src/Carousel}/Carousel.d.ts +9 -9
- package/dist/src/Carousel/Carousel.stories.d.ts +5 -0
- package/dist/{Carousel → src/Carousel}/Carousel.test.d.ts +1 -1
- package/dist/src/Carousel/Carousel.types.d.ts +86 -0
- package/dist/{Carousel → src/Carousel}/index.d.ts +1 -1
- package/dist/{Checkbox → src/Checkbox}/Checkbox.d.ts +7 -7
- package/dist/src/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/{Checkbox → src/Checkbox}/Checkbox.test.d.ts +1 -1
- package/dist/src/Checkbox/Checkbox.types.d.ts +92 -0
- package/dist/{Checkbox → src/Checkbox}/index.d.ts +1 -1
- package/dist/{Collapse → src/Collapse}/Collapse.d.ts +4 -4
- package/dist/src/Collapse/Collapse.stories.d.ts +5 -0
- package/dist/{Collapse → src/Collapse}/Collapse.test.d.ts +1 -1
- package/dist/src/Collapse/Collapse.types.d.ts +19 -0
- package/dist/{Collapse → src/Collapse}/index.d.ts +1 -1
- package/dist/{Icon → src/Icon}/Icon.d.ts +10 -10
- package/dist/src/Icon/Icon.stories.d.ts +5 -0
- package/dist/{Icon → src/Icon}/Icon.test.d.ts +1 -1
- package/dist/src/Icon/Icon.types.d.ts +87 -0
- package/dist/{Icon → src/Icon}/index.d.ts +1 -1
- package/dist/{InputGroup → src/InputGroup}/InputGroup.d.ts +7 -7
- package/dist/src/InputGroup/InputGroup.stories.d.ts +5 -0
- package/dist/src/InputGroup/InputGroup.test.d.ts +1 -0
- package/dist/src/InputGroup/InputGroup.types.d.ts +62 -0
- package/dist/{InputGroup → src/InputGroup}/index.d.ts +2 -2
- package/dist/{Modal → src/Modal}/Modal.d.ts +5 -5
- package/dist/{Modal → src/Modal}/Modal.stories.d.ts +10 -10
- package/dist/{Modal → src/Modal}/Modal.test.d.ts +1 -1
- package/dist/src/Modal/Modal.types.d.ts +244 -0
- package/dist/{Modal → src/Modal}/index.d.ts +1 -1
- package/dist/{ProgressBar → src/ProgressBar}/ProgressBar.d.ts +4 -4
- package/dist/src/ProgressBar/ProgressBar.stories.d.ts +5 -0
- package/dist/src/ProgressBar/ProgressBar.test.d.ts +1 -0
- package/dist/src/ProgressBar/ProgressBar.types.d.ts +77 -0
- package/dist/{ProgressBar → src/ProgressBar}/index.d.ts +1 -1
- package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/SeeqActionDropdown.d.ts +4 -4
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +5 -0
- package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/SeeqActionDropdown.test.d.ts +1 -1
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +160 -0
- package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/index.d.ts +1 -1
- package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/variants.d.ts +5 -5
- package/dist/{Select → src/Select}/Select.d.ts +15 -15
- package/dist/src/Select/Select.stories.d.ts +5 -0
- package/dist/{Select → src/Select}/Select.test.d.ts +1 -1
- package/dist/src/Select/Select.types.d.ts +220 -0
- package/dist/{Select → src/Select}/index.d.ts +2 -2
- package/dist/{Slider → src/Slider}/Slider.d.ts +6 -6
- package/dist/src/Slider/Slider.stories.d.ts +5 -0
- package/dist/src/Slider/Slider.test.d.ts +1 -0
- package/dist/src/Slider/Slider.types.d.ts +85 -0
- package/dist/{Slider → src/Slider}/index.d.ts +1 -1
- package/dist/{SvgIcon → src/SvgIcon}/SvgIcon.d.ts +20 -20
- package/dist/src/SvgIcon/SvgIcon.stories.d.ts +5 -0
- package/dist/{SvgIcon → src/SvgIcon}/SvgIcon.test.d.ts +1 -1
- package/dist/src/SvgIcon/SvgIcon.types.d.ts +76 -0
- package/dist/{SvgIcon → src/SvgIcon}/index.d.ts +1 -1
- package/dist/{Tabs → src/Tabs}/Tabs.d.ts +4 -4
- package/dist/src/Tabs/Tabs.stories.d.ts +5 -0
- package/dist/{Tabs → src/Tabs}/Tabs.test.d.ts +1 -1
- package/dist/src/Tabs/Tabs.types.d.ts +95 -0
- package/dist/{Tabs → src/Tabs}/index.d.ts +1 -1
- package/dist/{TextArea → src/TextArea}/TextArea.d.ts +7 -7
- package/dist/src/TextArea/TextArea.stories.d.ts +5 -0
- package/dist/{TextArea → src/TextArea}/TextArea.test.d.ts +1 -1
- package/dist/src/TextArea/TextArea.types.d.ts +105 -0
- package/dist/{TextArea → src/TextArea}/index.d.ts +1 -1
- package/dist/{TextField → src/TextField}/TextField.d.ts +7 -7
- package/dist/src/TextField/TextField.stories.d.ts +5 -0
- package/dist/{TextField → src/TextField}/TextField.test.d.ts +1 -1
- package/dist/src/TextField/TextField.types.d.ts +199 -0
- package/dist/{TextField → src/TextField}/index.d.ts +1 -1
- package/dist/{ToolbarButton → src/ToolbarButton}/ToolbarButton.d.ts +3 -3
- package/dist/src/ToolbarButton/ToolbarButton.stories.d.ts +5 -0
- package/dist/{ToolbarButton → src/ToolbarButton}/ToolbarButton.test.d.ts +1 -1
- package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +124 -0
- package/dist/{ToolbarButton → src/ToolbarButton}/index.d.ts +1 -1
- package/dist/src/Tooltip/QTip.stories.d.ts +5 -0
- package/dist/{Tooltip → src/Tooltip}/QTip.types.d.ts +13 -13
- package/dist/src/Tooltip/QTipPerformance.stories.d.ts +5 -0
- package/dist/{Tooltip → src/Tooltip}/Qtip.d.ts +26 -26
- package/dist/{Tooltip → src/Tooltip}/Tooltip.d.ts +13 -13
- package/dist/src/Tooltip/Tooltip.stories.d.ts +5 -0
- package/dist/{Tooltip → src/Tooltip}/Tooltip.types.d.ts +22 -22
- package/dist/src/Tooltip/TooltipPerformance.stories.d.ts +5 -0
- package/dist/{Tooltip → src/Tooltip}/index.d.ts +2 -2
- package/dist/{Tooltip → src/Tooltip}/qTip.utilities.d.ts +3 -3
- package/dist/{index.d.ts → src/index.d.ts} +45 -45
- package/dist/src/setupTests.d.ts +1 -0
- package/dist/{types.d.ts → src/types.d.ts} +2 -2
- package/dist/{utils → src/utils}/browserId.d.ts +9 -9
- package/dist/{utils → src/utils}/svg.d.ts +15 -15
- package/dist/{utils → src/utils}/validateStyleDimension.d.ts +2 -2
- package/dist/{utils → src/utils}/validateStyleDimension.test.d.ts +1 -1
- package/dist/styles.css +98 -67
- package/package.json +21 -21
- package/dist/Accordion/Accordion.stories.d.ts +0 -6
- package/dist/Accordion/Accordion.types.d.ts +0 -20
- package/dist/Alert/Alert.stories.d.ts +0 -6
- package/dist/Alert/Alert.test.d.ts +0 -1
- package/dist/Alert/Alert.types.d.ts +0 -14
- package/dist/Button/Button.stories.d.ts +0 -9
- package/dist/Button/Button.types.d.ts +0 -53
- package/dist/ButtonGroup/ButtonGroup.stories.d.ts +0 -6
- package/dist/ButtonGroup/ButtonGroup.test.d.ts +0 -1
- package/dist/ButtonGroup/ButtonGroup.types.d.ts +0 -40
- package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +0 -6
- package/dist/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -90
- package/dist/ButtonWithPopover/ButtonWithPopover.stories.d.ts +0 -6
- package/dist/ButtonWithPopover/ButtonWithPopover.types.d.ts +0 -48
- package/dist/Carousel/Carousel.stories.d.ts +0 -6
- package/dist/Carousel/Carousel.types.d.ts +0 -24
- package/dist/Checkbox/Checkbox.stories.d.ts +0 -6
- package/dist/Checkbox/Checkbox.types.d.ts +0 -20
- package/dist/Collapse/Collapse.stories.d.ts +0 -6
- package/dist/Collapse/Collapse.types.d.ts +0 -5
- package/dist/Icon/Icon.stories.d.ts +0 -6
- package/dist/Icon/Icon.types.d.ts +0 -31
- package/dist/InputGroup/InputGroup.stories.d.ts +0 -6
- package/dist/InputGroup/InputGroup.test.d.ts +0 -1
- package/dist/InputGroup/InputGroup.types.d.ts +0 -36
- package/dist/Modal/Modal.types.d.ts +0 -48
- package/dist/ProgressBar/ProgressBar.stories.d.ts +0 -6
- package/dist/ProgressBar/ProgressBar.test.d.ts +0 -1
- package/dist/ProgressBar/ProgressBar.types.d.ts +0 -30
- package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +0 -6
- package/dist/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -58
- package/dist/Select/Select.stories.d.ts +0 -6
- package/dist/Select/Select.types.d.ts +0 -89
- package/dist/Slider/Slider.stories.d.ts +0 -6
- package/dist/Slider/Slider.test.d.ts +0 -1
- package/dist/Slider/Slider.types.d.ts +0 -17
- package/dist/SvgIcon/SvgIcon.stories.d.ts +0 -6
- package/dist/SvgIcon/SvgIcon.types.d.ts +0 -25
- package/dist/Tabs/Tabs.stories.d.ts +0 -6
- package/dist/Tabs/Tabs.types.d.ts +0 -21
- package/dist/TextArea/TextArea.stories.d.ts +0 -6
- package/dist/TextArea/TextArea.types.d.ts +0 -35
- package/dist/TextField/TextField.stories.d.ts +0 -6
- package/dist/TextField/TextField.types.d.ts +0 -40
- package/dist/ToolbarButton/ToolbarButton.stories.d.ts +0 -6
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +0 -53
- package/dist/Tooltip/QTip.stories.d.ts +0 -6
- package/dist/Tooltip/QTipPerformance.stories.d.ts +0 -6
- package/dist/Tooltip/Tooltip.stories.d.ts +0 -6
- package/dist/Tooltip/TooltipPerformance.stories.d.ts +0 -6
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import React, { MouseEvent } from 'react';
|
|
2
|
+
import { TooltipProps } from '../Tooltip/Tooltip.types';
|
|
3
|
+
export declare const tooltipPositions: readonly ['top', 'left', 'right', 'bottom'];
|
|
4
|
+
export type TooltipPosition = (typeof tooltipPositions)[number];
|
|
5
|
+
export declare const toolbarButtonVariants: readonly ["outline", "theme", "theme-light", "warning", "danger", "no-border"];
|
|
6
|
+
export type ToolbarButtonVariant = (typeof toolbarButtonVariants)[number];
|
|
7
|
+
/**
|
|
8
|
+
* Props for the ToolbarButton component that creates toolbar-style buttons with optional popovers.
|
|
9
|
+
* Designed for use in toolbars, action bars, and similar UI contexts.
|
|
10
|
+
*/
|
|
11
|
+
export interface ToolbarButtonProps {
|
|
12
|
+
/**
|
|
13
|
+
* Primary icon class name to display on the button.
|
|
14
|
+
* Typically uses FontAwesome classes (e.g., 'fc-zoom', 'fc-delete').
|
|
15
|
+
* This is the main visual identifier for the button's function.
|
|
16
|
+
*/
|
|
17
|
+
icon: string;
|
|
18
|
+
/**
|
|
19
|
+
* Secondary icon class name to display alongside the primary icon.
|
|
20
|
+
* Useful for showing state indicators, badges, or additional context.
|
|
21
|
+
*/
|
|
22
|
+
secondIcon?: string;
|
|
23
|
+
/**
|
|
24
|
+
* When true, forces the primary icon to render in a smaller size.
|
|
25
|
+
* Overrides automatic sizing based on button variant or layout.
|
|
26
|
+
*/
|
|
27
|
+
forceSmallIcon?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Text label for the toolbar button.
|
|
30
|
+
* Typically shown when the toolbar has sufficient width or in expanded states.
|
|
31
|
+
* Helps users understand the button's function when icons alone aren't clear.
|
|
32
|
+
*/
|
|
33
|
+
label?: string;
|
|
34
|
+
/**
|
|
35
|
+
* React content to display in an attached popover when the button is clicked.
|
|
36
|
+
* Can be any React elements including forms, menus, or complex layouts.
|
|
37
|
+
* When provided, the button becomes a popover trigger.
|
|
38
|
+
*/
|
|
39
|
+
popoverContent?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* When true, renders the button in a compact, icon-only mode.
|
|
42
|
+
* Hides the label even if provided and uses minimal padding for space-constrained layouts.
|
|
43
|
+
*/
|
|
44
|
+
isSmall?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* HTML ID attribute for the toolbar button element.
|
|
47
|
+
* Should be unique across the page for proper HTML semantics and accessibility.
|
|
48
|
+
*/
|
|
49
|
+
id?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Additional CSS classes to apply to the toolbar button container.
|
|
52
|
+
* Use this to customize the button's appearance beyond the built-in variants.
|
|
53
|
+
*/
|
|
54
|
+
extraClassNames?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Test ID attribute for the toolbar button element used in automated testing.
|
|
57
|
+
* Applied to the button element for test targeting and interaction.
|
|
58
|
+
*/
|
|
59
|
+
testId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Text to display in the button's tooltip when hovering.
|
|
62
|
+
* Provides additional context or instructions about the button's function.
|
|
63
|
+
*/
|
|
64
|
+
tooltipText?: string;
|
|
65
|
+
/**
|
|
66
|
+
* When true, the tooltip text is rendered as HTML allowing for rich content.
|
|
67
|
+
* When false (default), the tooltip text is treated as plain text for security.
|
|
68
|
+
* Only set to true if you trust the tooltip content source.
|
|
69
|
+
*/
|
|
70
|
+
isHtmlTooltip?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Test ID attribute specifically for the tooltip element used in automated testing.
|
|
73
|
+
* Helps identify and interact with the tooltip separately from the button.
|
|
74
|
+
*/
|
|
75
|
+
tooltipTestId?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Configuration options for customizing tooltip behavior and appearance.
|
|
78
|
+
* Omits the 'text' property since that's handled by the `tooltipText` prop.
|
|
79
|
+
* Includes options like position, delay, and other tooltip-specific settings.
|
|
80
|
+
*/
|
|
81
|
+
tooltipOptions?: Omit<TooltipProps, 'text'>;
|
|
82
|
+
/**
|
|
83
|
+
* When true, disables the toolbar button preventing user interaction.
|
|
84
|
+
* Disabled buttons appear visually dimmed and don't respond to clicks or show popovers.
|
|
85
|
+
*/
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Callback function triggered when the toolbar button is clicked.
|
|
89
|
+
* Primarily used for tracking, analytics, or additional click handling.
|
|
90
|
+
* Note: this doesn't prevent popover opening if popoverContent is provided.
|
|
91
|
+
*/
|
|
92
|
+
onClick?: (e: MouseEvent) => void;
|
|
93
|
+
/**
|
|
94
|
+
* When true, displays the button in an "active" or "pressed" visual state.
|
|
95
|
+
* Useful for toggle buttons or indicating the current tool/mode in a toolbar.
|
|
96
|
+
*/
|
|
97
|
+
isActive?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Callback function triggered when an attached popover is hidden/closed.
|
|
100
|
+
* Use this for cleanup, state management, or other hide-related side effects.
|
|
101
|
+
*/
|
|
102
|
+
onHide?: () => void;
|
|
103
|
+
/**
|
|
104
|
+
* When true, displays a visual arrow on the button indicating it has a dropdown/popover.
|
|
105
|
+
* Helps users understand that clicking will reveal additional options or content.
|
|
106
|
+
*/
|
|
107
|
+
hasArrow?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* When true, treats the primary icon string as an SVG identifier instead of a font icon class.
|
|
110
|
+
* Changes how the icon is rendered and styled within the component.
|
|
111
|
+
*/
|
|
112
|
+
isPrimaryAnSvg?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Additional CSS classes to apply specifically to the primary icon element.
|
|
115
|
+
* Use this to customize the icon's appearance independently from the button container.
|
|
116
|
+
*/
|
|
117
|
+
primaryIconExtraClassNames?: string;
|
|
118
|
+
/** height for the icon */
|
|
119
|
+
iconHeight?: number;
|
|
120
|
+
/** width for the icon */
|
|
121
|
+
iconWidth?: number;
|
|
122
|
+
/** viewbox for the icon */
|
|
123
|
+
primaryIconViewbox?: string;
|
|
124
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ToolbarButton as default } from './ToolbarButton';
|
|
1
|
+
export { ToolbarButton as default } from './ToolbarButton';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TooltipPosition } from './Tooltip.types';
|
|
2
|
-
export interface QTipDataAttributes {
|
|
3
|
-
/** text displayed by the tooltip */
|
|
4
|
-
'data-qtip-text': string;
|
|
5
|
-
/** one of TooltipPosition */
|
|
6
|
-
'data-qtip-placement'?: TooltipPosition;
|
|
7
|
-
/** set to true to render the provided text as html */
|
|
8
|
-
'data-qtip-is-html'?: boolean;
|
|
9
|
-
/** number of milliseconds to wait before showing a tooltip on-hover */
|
|
10
|
-
'data-qtip-delay'?: number;
|
|
11
|
-
/** useful for testing; sets the provided string as the data-testid attribute of the tooltip */
|
|
12
|
-
'data-qtip-testid'?: string;
|
|
13
|
-
}
|
|
1
|
+
import { TooltipPosition } from './Tooltip.types';
|
|
2
|
+
export interface QTipDataAttributes {
|
|
3
|
+
/** text displayed by the tooltip */
|
|
4
|
+
'data-qtip-text': string;
|
|
5
|
+
/** one of TooltipPosition */
|
|
6
|
+
'data-qtip-placement'?: TooltipPosition;
|
|
7
|
+
/** set to true to render the provided text as html */
|
|
8
|
+
'data-qtip-is-html'?: boolean;
|
|
9
|
+
/** number of milliseconds to wait before showing a tooltip on-hover */
|
|
10
|
+
'data-qtip-delay'?: number;
|
|
11
|
+
/** useful for testing; sets the provided string as the data-testid attribute of the tooltip */
|
|
12
|
+
'data-qtip-testid'?: string;
|
|
13
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* QTip
|
|
4
|
-
*
|
|
5
|
-
* QTip is a Singleton Tooltip component that guarantees high-performance and reduces component wrappers!
|
|
6
|
-
*
|
|
7
|
-
* QTip is used by all qomponents that support the display of tooltips.
|
|
8
|
-
* If you want to add a Tooltip to your application you can do so by adding the following html data-attributes:
|
|
9
|
-
*
|
|
10
|
-
* 'data-qtip-text': the tooltip text to display; this can also be a string containing valid HTML
|
|
11
|
-
* 'data-qtip-placement': one of TooltipPosition (top, bottom, right, or left)
|
|
12
|
-
* 'data-qtip-is-html': set this to true if you provided a text that contains HTML,
|
|
13
|
-
* 'data-qtip-delay': this can be used to delay the showing of the tooltip. this should be a number representing
|
|
14
|
-
* the # of milliseconds you want to delay the tooltip for. If no delay is provided the DEFAULT_TOOL_TIP_DELAY is
|
|
15
|
-
* applied!
|
|
16
|
-
* 'data-qtip-testid': use this attribute to provide a value for a data-testid of your tooltip; this is useful
|
|
17
|
-
* for tests
|
|
18
|
-
*
|
|
19
|
-
* In order for QTip to be able to display Tooltips you must add the QTip component to your top-most component
|
|
20
|
-
* (often that's App or Application) - simply add:
|
|
21
|
-
*
|
|
22
|
-
* <QTip />
|
|
23
|
-
*
|
|
24
|
-
* and enjoy beautiful & performant tooltips!
|
|
25
|
-
*/
|
|
26
|
-
export declare const QTip: React.FunctionComponent<any>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* QTip
|
|
4
|
+
*
|
|
5
|
+
* QTip is a Singleton Tooltip component that guarantees high-performance and reduces component wrappers!
|
|
6
|
+
*
|
|
7
|
+
* QTip is used by all qomponents that support the display of tooltips.
|
|
8
|
+
* If you want to add a Tooltip to your application you can do so by adding the following html data-attributes:
|
|
9
|
+
*
|
|
10
|
+
* 'data-qtip-text': the tooltip text to display; this can also be a string containing valid HTML
|
|
11
|
+
* 'data-qtip-placement': one of TooltipPosition (top, bottom, right, or left)
|
|
12
|
+
* 'data-qtip-is-html': set this to true if you provided a text that contains HTML,
|
|
13
|
+
* 'data-qtip-delay': this can be used to delay the showing of the tooltip. this should be a number representing
|
|
14
|
+
* the # of milliseconds you want to delay the tooltip for. If no delay is provided the DEFAULT_TOOL_TIP_DELAY is
|
|
15
|
+
* applied!
|
|
16
|
+
* 'data-qtip-testid': use this attribute to provide a value for a data-testid of your tooltip; this is useful
|
|
17
|
+
* for tests
|
|
18
|
+
*
|
|
19
|
+
* In order for QTip to be able to display Tooltips you must add the QTip component to your top-most component
|
|
20
|
+
* (often that's App or Application) - simply add:
|
|
21
|
+
*
|
|
22
|
+
* <QTip />
|
|
23
|
+
*
|
|
24
|
+
* and enjoy beautiful & performant tooltips!
|
|
25
|
+
*/
|
|
26
|
+
export declare const QTip: React.FunctionComponent<any>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '../styles.css';
|
|
3
|
-
import { TooltipProps } from './Tooltip.types';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated
|
|
6
|
-
* Note: Tooltip has been replaced by QTip - a singleton JS tooltip that behaves well even with overflow settings :)
|
|
7
|
-
* See @QTip for more info!
|
|
8
|
-
*
|
|
9
|
-
* This component displays a Tooltip for the provided children. It is a CSS only tooltip that will not display
|
|
10
|
-
* correctly if a parent element has an overflow CSS property assigned. Please use QTip to ensure your tooltips
|
|
11
|
-
* display correctly.
|
|
12
|
-
*/
|
|
13
|
-
export declare const Tooltip: React.FunctionComponent<TooltipProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../styles.css';
|
|
3
|
+
import { TooltipProps } from './Tooltip.types';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
* Note: Tooltip has been replaced by QTip - a singleton JS tooltip that behaves well even with overflow settings :)
|
|
7
|
+
* See @QTip for more info!
|
|
8
|
+
*
|
|
9
|
+
* This component displays a Tooltip for the provided children. It is a CSS only tooltip that will not display
|
|
10
|
+
* correctly if a parent element has an overflow CSS property assigned. Please use QTip to ensure your tooltips
|
|
11
|
+
* display correctly.
|
|
12
|
+
*/
|
|
13
|
+
export declare const Tooltip: React.FunctionComponent<TooltipProps>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export declare const DEFAULT_TOOL_TIP_DELAY = 500;
|
|
2
|
-
export declare const tooltipPositions: readonly ["top", "left", "right", "bottom"];
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export type TooltipPosition = (typeof tooltipPositions)[number];
|
|
5
|
-
export interface TooltipProps {
|
|
6
|
-
position?: TooltipPosition;
|
|
7
|
-
children?: React.JSX.Element | string;
|
|
8
|
-
text: React.JSX.Element | string;
|
|
9
|
-
delay?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface TooltipComponentProps {
|
|
12
|
-
/** text to display on tooltip */
|
|
13
|
-
tooltip?: string;
|
|
14
|
-
/** number of milliseconds to wait before showing a tooltip on-hover */
|
|
15
|
-
tooltipDelay?: number;
|
|
16
|
-
/** one of four possible tooltip positions */
|
|
17
|
-
tooltipPlacement?: TooltipPosition;
|
|
18
|
-
/** true if the provided tooltip text should be rendered as HTML */
|
|
19
|
-
isHtmlTooltip?: boolean;
|
|
20
|
-
/** optional testId applied to the tooltip - useful for testing */
|
|
21
|
-
tooltipTestId?: string;
|
|
22
|
-
}
|
|
1
|
+
export declare const DEFAULT_TOOL_TIP_DELAY = 500;
|
|
2
|
+
export declare const tooltipPositions: readonly ["top", "left", "right", "bottom"];
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export type TooltipPosition = (typeof tooltipPositions)[number];
|
|
5
|
+
export interface TooltipProps {
|
|
6
|
+
position?: TooltipPosition;
|
|
7
|
+
children?: React.JSX.Element | string;
|
|
8
|
+
text: React.JSX.Element | string;
|
|
9
|
+
delay?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface TooltipComponentProps {
|
|
12
|
+
/** text to display on tooltip */
|
|
13
|
+
tooltip?: string;
|
|
14
|
+
/** number of milliseconds to wait before showing a tooltip on-hover */
|
|
15
|
+
tooltipDelay?: number;
|
|
16
|
+
/** one of four possible tooltip positions */
|
|
17
|
+
tooltipPlacement?: TooltipPosition;
|
|
18
|
+
/** true if the provided tooltip text should be rendered as HTML */
|
|
19
|
+
isHtmlTooltip?: boolean;
|
|
20
|
+
/** optional testId applied to the tooltip - useful for testing */
|
|
21
|
+
tooltipTestId?: string;
|
|
22
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Tooltip } from './Tooltip';
|
|
2
|
-
export { QTip } from './Qtip';
|
|
1
|
+
export { Tooltip } from './Tooltip';
|
|
2
|
+
export { QTip } from './Qtip';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { QTipDataAttributes } from './QTip.types';
|
|
2
|
-
import { TooltipComponentProps } from './Tooltip.types';
|
|
3
|
-
export declare const getQTipData: ({ tooltip, tooltipPlacement, isHtmlTooltip, tooltipTestId, tooltipDelay, }: TooltipComponentProps) => QTipDataAttributes | undefined;
|
|
1
|
+
import { QTipDataAttributes } from './QTip.types';
|
|
2
|
+
import { TooltipComponentProps } from './Tooltip.types';
|
|
3
|
+
export declare const getQTipData: ({ tooltip, tooltipPlacement, isHtmlTooltip, tooltipTestId, tooltipDelay, }: TooltipComponentProps) => QTipDataAttributes | undefined;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import Button from './Button';
|
|
2
|
-
import ToolbarButton from './ToolbarButton';
|
|
3
|
-
import TextField from './TextField';
|
|
4
|
-
import Checkbox from './Checkbox';
|
|
5
|
-
import TextArea from './TextArea';
|
|
6
|
-
import { QTip, Tooltip } from './Tooltip';
|
|
7
|
-
import Icon from './Icon';
|
|
8
|
-
import Select from './Select';
|
|
9
|
-
import { SelectCompoents } from './Select';
|
|
10
|
-
import Modal from './Modal';
|
|
11
|
-
import Tabs from './Tabs';
|
|
12
|
-
import Accordion from './Accordion';
|
|
13
|
-
import ButtonWithPopover from './ButtonWithPopover';
|
|
14
|
-
import ButtonWithDropdown from './ButtonWithDropdown';
|
|
15
|
-
import Alert from './Alert';
|
|
16
|
-
import SeeqActionDropdown from './SeeqActionDropdown';
|
|
17
|
-
import InputGroup from './InputGroup';
|
|
18
|
-
import Collapse from './Collapse';
|
|
19
|
-
import Slider from './Slider';
|
|
20
|
-
import ProgressBar from './ProgressBar';
|
|
21
|
-
import ButtonGroup from './ButtonGroup';
|
|
22
|
-
import Carousel from './Carousel';
|
|
23
|
-
export { Tabs };
|
|
24
|
-
export { Button };
|
|
25
|
-
export { ToolbarButton };
|
|
26
|
-
export { TextField };
|
|
27
|
-
export { TextArea };
|
|
28
|
-
export { Tooltip };
|
|
29
|
-
export { Checkbox };
|
|
30
|
-
export { Icon };
|
|
31
|
-
export { Select };
|
|
32
|
-
export { SelectCompoents };
|
|
33
|
-
export { QTip };
|
|
34
|
-
export { Modal };
|
|
35
|
-
export { Accordion };
|
|
36
|
-
export { ButtonWithPopover };
|
|
37
|
-
export { ButtonWithDropdown };
|
|
38
|
-
export { Alert };
|
|
39
|
-
export { SeeqActionDropdown };
|
|
40
|
-
export { InputGroup };
|
|
41
|
-
export { Collapse };
|
|
42
|
-
export { Slider };
|
|
43
|
-
export { ProgressBar };
|
|
44
|
-
export { ButtonGroup };
|
|
45
|
-
export { Carousel };
|
|
1
|
+
import Button from './Button';
|
|
2
|
+
import ToolbarButton from './ToolbarButton';
|
|
3
|
+
import TextField from './TextField';
|
|
4
|
+
import Checkbox from './Checkbox';
|
|
5
|
+
import TextArea from './TextArea';
|
|
6
|
+
import { QTip, Tooltip } from './Tooltip';
|
|
7
|
+
import Icon from './Icon';
|
|
8
|
+
import Select from './Select';
|
|
9
|
+
import { SelectCompoents } from './Select';
|
|
10
|
+
import Modal from './Modal';
|
|
11
|
+
import Tabs from './Tabs';
|
|
12
|
+
import Accordion from './Accordion';
|
|
13
|
+
import ButtonWithPopover from './ButtonWithPopover';
|
|
14
|
+
import ButtonWithDropdown from './ButtonWithDropdown';
|
|
15
|
+
import Alert from './Alert';
|
|
16
|
+
import SeeqActionDropdown from './SeeqActionDropdown';
|
|
17
|
+
import InputGroup from './InputGroup';
|
|
18
|
+
import Collapse from './Collapse';
|
|
19
|
+
import Slider from './Slider';
|
|
20
|
+
import ProgressBar from './ProgressBar';
|
|
21
|
+
import ButtonGroup from './ButtonGroup';
|
|
22
|
+
import Carousel from './Carousel';
|
|
23
|
+
export { Tabs };
|
|
24
|
+
export { Button };
|
|
25
|
+
export { ToolbarButton };
|
|
26
|
+
export { TextField };
|
|
27
|
+
export { TextArea };
|
|
28
|
+
export { Tooltip };
|
|
29
|
+
export { Checkbox };
|
|
30
|
+
export { Icon };
|
|
31
|
+
export { Select };
|
|
32
|
+
export { SelectCompoents };
|
|
33
|
+
export { QTip };
|
|
34
|
+
export { Modal };
|
|
35
|
+
export { Accordion };
|
|
36
|
+
export { ButtonWithPopover };
|
|
37
|
+
export { ButtonWithDropdown };
|
|
38
|
+
export { Alert };
|
|
39
|
+
export { SeeqActionDropdown };
|
|
40
|
+
export { InputGroup };
|
|
41
|
+
export { Collapse };
|
|
42
|
+
export { Slider };
|
|
43
|
+
export { ProgressBar };
|
|
44
|
+
export { ButtonGroup };
|
|
45
|
+
export { Carousel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type InputGroupPlacement = 'left' | 'right' | undefined;
|
|
2
|
-
export type FormControlElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
1
|
+
export type InputGroupPlacement = 'left' | 'right' | undefined;
|
|
2
|
+
export type FormControlElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @exports the browser id (i.e., 'IE 11' 'Chrome 90')
|
|
3
|
-
* @see http://stackoverflow.com/questions/2400935/browser-detection-in-javascript
|
|
4
|
-
*/
|
|
5
|
-
export declare const browserId: string;
|
|
6
|
-
export declare const browserName: string;
|
|
7
|
-
export declare const browserVersion: number;
|
|
8
|
-
export declare const browserIsFirefox: boolean;
|
|
9
|
-
export declare const browserIsEdgeBeforeChromium: boolean;
|
|
1
|
+
/**
|
|
2
|
+
* @exports the browser id (i.e., 'IE 11' 'Chrome 90')
|
|
3
|
+
* @see http://stackoverflow.com/questions/2400935/browser-detection-in-javascript
|
|
4
|
+
*/
|
|
5
|
+
export declare const browserId: string;
|
|
6
|
+
export declare const browserName: string;
|
|
7
|
+
export declare const browserVersion: number;
|
|
8
|
+
export declare const browserIsFirefox: boolean;
|
|
9
|
+
export declare const browserIsEdgeBeforeChromium: boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export declare const SVG_PATH = "svgpath:";
|
|
2
|
-
/**
|
|
3
|
-
* Determines if an icon is SVG
|
|
4
|
-
*
|
|
5
|
-
* @param icon - an icon string that will either be an icon class or an SVG path definition (e.g. "fa fa-wrench" or
|
|
6
|
-
* "svgpath:M 17.0181 0 ...")
|
|
7
|
-
*/
|
|
8
|
-
export declare function isSvgIcon(icon: string): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves the SVG path from an SVG icon
|
|
11
|
-
*
|
|
12
|
-
* @param icon - an SVG icon string including path definition (e.g. "svgpath:M 17.0181 0 ...")
|
|
13
|
-
* @returns the SVG icon path or an empty string if the supplied icon is not SVG
|
|
14
|
-
*/
|
|
15
|
-
export declare function getSvgIconPath(icon: string): string;
|
|
1
|
+
export declare const SVG_PATH = "svgpath:";
|
|
2
|
+
/**
|
|
3
|
+
* Determines if an icon is SVG
|
|
4
|
+
*
|
|
5
|
+
* @param icon - an icon string that will either be an icon class or an SVG path definition (e.g. "fa fa-wrench" or
|
|
6
|
+
* "svgpath:M 17.0181 0 ...")
|
|
7
|
+
*/
|
|
8
|
+
export declare function isSvgIcon(icon: string): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the SVG path from an SVG icon
|
|
11
|
+
*
|
|
12
|
+
* @param icon - an SVG icon string including path definition (e.g. "svgpath:M 17.0181 0 ...")
|
|
13
|
+
* @returns the SVG icon path or an empty string if the supplied icon is not SVG
|
|
14
|
+
*/
|
|
15
|
+
export declare function getSvgIconPath(icon: string): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DimensionStyle } from '../TextField/TextField.types';
|
|
2
|
-
export declare const setValidInputDimension: (width?: number, height?: number) => DimensionStyle | undefined;
|
|
1
|
+
import { DimensionStyle } from '../TextField/TextField.types';
|
|
2
|
+
export declare const setValidInputDimension: (width?: number, height?: number) => DimensionStyle | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|