@seeqdev/qomponents 0.0.135 → 0.0.137
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/Accordion/Accordion.stories.d.ts +1 -2
- package/dist/Alert/Alert.stories.d.ts +1 -2
- package/dist/Alert/Alert.types.d.ts +0 -1
- package/dist/Button/Button.stories.d.ts +4 -5
- package/dist/Button/Button.types.d.ts +1 -1
- package/dist/ButtonGroup/ButtonGroup.stories.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.types.d.ts +0 -1
- package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +1 -2
- package/dist/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -1
- package/dist/ButtonWithPopover/ButtonWithPopover.stories.d.ts +1 -2
- package/dist/Carousel/Carousel.stories.d.ts +1 -2
- package/dist/Carousel/Carousel.types.d.ts +0 -1
- package/dist/Checkbox/Checkbox.stories.d.ts +1 -2
- package/dist/Checkbox/Checkbox.types.d.ts +0 -1
- package/dist/Collapse/Collapse.stories.d.ts +1 -2
- package/dist/Collapse/Collapse.types.d.ts +0 -1
- package/dist/FontCustom.woff +0 -0
- package/dist/FontCustom.woff2 +0 -0
- package/dist/Icon/Icon.stories.d.ts +1 -2
- package/dist/Icon/Icon.types.d.ts +0 -1
- package/dist/InputGroup/InputGroup.stories.d.ts +1 -2
- package/dist/InputGroup/InputGroup.types.d.ts +0 -1
- package/dist/ProgressBar/ProgressBar.stories.d.ts +1 -2
- package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +1 -2
- package/dist/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -1
- package/dist/Select/Select.stories.d.ts +1 -2
- package/dist/Slider/Slider.stories.d.ts +1 -2
- package/dist/Slider/Slider.types.d.ts +0 -1
- package/dist/SvgIcon/SvgIcon.d.ts +20 -0
- package/dist/SvgIcon/SvgIcon.stories.d.ts +5 -0
- package/dist/SvgIcon/SvgIcon.test.d.ts +1 -0
- package/dist/SvgIcon/SvgIcon.types.d.ts +24 -0
- package/dist/SvgIcon/index.d.ts +1 -0
- package/dist/Tabs/Tabs.stories.d.ts +1 -2
- package/dist/Tabs/Tabs.types.d.ts +1 -2
- package/dist/TextArea/TextArea.stories.d.ts +1 -2
- package/dist/TextArea/TextArea.types.d.ts +0 -1
- package/dist/TextField/TextField.stories.d.ts +1 -2
- package/dist/TextField/TextField.types.d.ts +0 -1
- package/dist/ToolbarButton/ToolbarButton.stories.d.ts +1 -2
- package/dist/Tooltip/QTip.stories.d.ts +1 -2
- package/dist/Tooltip/QTipPerformance.stories.d.ts +1 -2
- package/dist/Tooltip/Tooltip.stories.d.ts +1 -2
- package/dist/Tooltip/Tooltip.types.d.ts +2 -3
- package/dist/Tooltip/TooltipPerformance.stories.d.ts +1 -2
- package/dist/index.esm.js +8696 -14613
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8684 -14601
- package/dist/index.js.map +1 -1
- package/dist/styles.css +21 -1
- package/package.json +19 -28
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const _default: {
|
|
3
2
|
title: string;
|
|
4
3
|
};
|
|
5
4
|
export default _default;
|
|
6
|
-
export declare const AllButtonVariants: () =>
|
|
7
|
-
export declare const ButtonWithTooltip: () =>
|
|
8
|
-
export declare const ButtonWithIcon: () =>
|
|
9
|
-
export declare const DisabledButton: () =>
|
|
5
|
+
export declare const AllButtonVariants: () => JSX.Element;
|
|
6
|
+
export declare const ButtonWithTooltip: () => JSX.Element;
|
|
7
|
+
export declare const ButtonWithIcon: () => JSX.Element;
|
|
8
|
+
export declare const DisabledButton: () => JSX.Element;
|
|
@@ -13,7 +13,7 @@ export interface ButtonProps {
|
|
|
13
13
|
/** function to call when clicking the button (takes no parameters) */
|
|
14
14
|
onClick?: (e: React.MouseEvent) => void;
|
|
15
15
|
/** label translation key on the button (i.e. SUBMIT) */
|
|
16
|
-
label?: string |
|
|
16
|
+
label?: string | JSX.Element | React.ReactNode;
|
|
17
17
|
variant?: ButtonVariant;
|
|
18
18
|
/** type of button (i.e button/submit/reset, default is button) */
|
|
19
19
|
type?: ButtonType;
|
package/dist/FontCustom.woff
CHANGED
|
Binary file
|
package/dist/FontCustom.woff2
CHANGED
|
Binary file
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
|
|
3
2
|
export declare const iconTypes: readonly ["theme", "white", "dark-gray", "darkish-gray", "gray", "color", "info", "text", "warning", "inherit", "danger", "theme-light", "success"];
|
|
4
3
|
export type IconType = (typeof iconTypes)[number];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../styles.css';
|
|
3
|
+
import { SvgIconProps } from './SvgIcon.types';
|
|
4
|
+
/**
|
|
5
|
+
* Renders an icon that has an SVG icon path (see {@link isSvgIcon() })
|
|
6
|
+
*
|
|
7
|
+
* @param onClick - function to call when clicking the icon (takes no parameters)
|
|
8
|
+
* @param id - id that can be placed on the SvgIcon component
|
|
9
|
+
* @param testId - id that will be used in the data-testid attribute on the icon
|
|
10
|
+
* @param customId - id that will be used in the data-customid attribute on the icon. Can be used to identify the icon
|
|
11
|
+
* as the click event target in an event handler
|
|
12
|
+
* @param icon - the SVG icon
|
|
13
|
+
* @param color - used to add a custom color to the icon (required if type="color")
|
|
14
|
+
* @param extraClassNames - extra class names to apply
|
|
15
|
+
* @param [viewBox='0 0 19 19'] - optional SVG view box
|
|
16
|
+
* @param type - default will use dark/light text colors otherwise will use the theme color
|
|
17
|
+
* @param tooltipProps - props to pass to the tooltip
|
|
18
|
+
*/
|
|
19
|
+
declare const SvgIcon: React.FunctionComponent<SvgIconProps>;
|
|
20
|
+
export default SvgIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
|
|
2
|
+
export declare const svgIconTypes: readonly ["theme", "white", "dark-gray", "darkish-gray", "gray", "color", "info", "text", "warning", "inherit", "danger", "theme-light", "success", "default"];
|
|
3
|
+
export type SvgIconType = (typeof svgIconTypes)[number];
|
|
4
|
+
export interface SvgIconProps extends TooltipComponentProps {
|
|
5
|
+
/** icon class to be used (i.e. fc-zoom) */
|
|
6
|
+
icon: string;
|
|
7
|
+
/** default will use dark/light text colors otherwise will use the theme color */
|
|
8
|
+
type?: SvgIconType;
|
|
9
|
+
/** used to add a custom color to the icon (required if type="color") */
|
|
10
|
+
color?: string;
|
|
11
|
+
/** function to call when clicking the icon (takes no parameters) */
|
|
12
|
+
onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => any;
|
|
13
|
+
/** extra class names to be placed on the SvgIcon component */
|
|
14
|
+
extraClassNames?: string;
|
|
15
|
+
/** id that can be placed on the SvgIcon component */
|
|
16
|
+
id?: string;
|
|
17
|
+
/** id that will be used in the data-testid attribute on the icon */
|
|
18
|
+
testId?: string;
|
|
19
|
+
/** id that will be used in the data-customid attribute on the icon.
|
|
20
|
+
* Can be used to identify the icon as the click event target in an event handler */
|
|
21
|
+
customId?: string;
|
|
22
|
+
/** optional SVG view box */
|
|
23
|
+
viewBox?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SvgIcon';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface TabsProps {
|
|
3
2
|
extraClassNames?: string;
|
|
4
3
|
defaultActiveTab?: string;
|
|
@@ -11,7 +10,7 @@ export interface TabsProps {
|
|
|
11
10
|
tabs: {
|
|
12
11
|
label: string;
|
|
13
12
|
id: string;
|
|
14
|
-
content:
|
|
13
|
+
content: JSX.Element;
|
|
15
14
|
icon?: string;
|
|
16
15
|
testId?: string;
|
|
17
16
|
tabExtraClassNames?: string;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const DEFAULT_TOOL_TIP_DELAY = 500;
|
|
3
2
|
export declare const tooltipPositions: readonly ["top", "left", "right", "bottom"];
|
|
4
3
|
export type TooltipPosition = (typeof tooltipPositions)[number];
|
|
5
4
|
export interface TooltipProps {
|
|
6
5
|
position?: TooltipPosition;
|
|
7
|
-
children?:
|
|
8
|
-
text:
|
|
6
|
+
children?: JSX.Element | string;
|
|
7
|
+
text: JSX.Element | string;
|
|
9
8
|
delay?: number;
|
|
10
9
|
}
|
|
11
10
|
export interface TooltipComponentProps {
|