@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.
Files changed (51) hide show
  1. package/dist/Accordion/Accordion.stories.d.ts +1 -2
  2. package/dist/Alert/Alert.stories.d.ts +1 -2
  3. package/dist/Alert/Alert.types.d.ts +0 -1
  4. package/dist/Button/Button.stories.d.ts +4 -5
  5. package/dist/Button/Button.types.d.ts +1 -1
  6. package/dist/ButtonGroup/ButtonGroup.stories.d.ts +1 -2
  7. package/dist/ButtonGroup/ButtonGroup.types.d.ts +0 -1
  8. package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +1 -2
  9. package/dist/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -1
  10. package/dist/ButtonWithPopover/ButtonWithPopover.stories.d.ts +1 -2
  11. package/dist/Carousel/Carousel.stories.d.ts +1 -2
  12. package/dist/Carousel/Carousel.types.d.ts +0 -1
  13. package/dist/Checkbox/Checkbox.stories.d.ts +1 -2
  14. package/dist/Checkbox/Checkbox.types.d.ts +0 -1
  15. package/dist/Collapse/Collapse.stories.d.ts +1 -2
  16. package/dist/Collapse/Collapse.types.d.ts +0 -1
  17. package/dist/FontCustom.woff +0 -0
  18. package/dist/FontCustom.woff2 +0 -0
  19. package/dist/Icon/Icon.stories.d.ts +1 -2
  20. package/dist/Icon/Icon.types.d.ts +0 -1
  21. package/dist/InputGroup/InputGroup.stories.d.ts +1 -2
  22. package/dist/InputGroup/InputGroup.types.d.ts +0 -1
  23. package/dist/ProgressBar/ProgressBar.stories.d.ts +1 -2
  24. package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +1 -2
  25. package/dist/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -1
  26. package/dist/Select/Select.stories.d.ts +1 -2
  27. package/dist/Slider/Slider.stories.d.ts +1 -2
  28. package/dist/Slider/Slider.types.d.ts +0 -1
  29. package/dist/SvgIcon/SvgIcon.d.ts +20 -0
  30. package/dist/SvgIcon/SvgIcon.stories.d.ts +5 -0
  31. package/dist/SvgIcon/SvgIcon.test.d.ts +1 -0
  32. package/dist/SvgIcon/SvgIcon.types.d.ts +24 -0
  33. package/dist/SvgIcon/index.d.ts +1 -0
  34. package/dist/Tabs/Tabs.stories.d.ts +1 -2
  35. package/dist/Tabs/Tabs.types.d.ts +1 -2
  36. package/dist/TextArea/TextArea.stories.d.ts +1 -2
  37. package/dist/TextArea/TextArea.types.d.ts +0 -1
  38. package/dist/TextField/TextField.stories.d.ts +1 -2
  39. package/dist/TextField/TextField.types.d.ts +0 -1
  40. package/dist/ToolbarButton/ToolbarButton.stories.d.ts +1 -2
  41. package/dist/Tooltip/QTip.stories.d.ts +1 -2
  42. package/dist/Tooltip/QTipPerformance.stories.d.ts +1 -2
  43. package/dist/Tooltip/Tooltip.stories.d.ts +1 -2
  44. package/dist/Tooltip/Tooltip.types.d.ts +2 -3
  45. package/dist/Tooltip/TooltipPerformance.stories.d.ts +1 -2
  46. package/dist/index.esm.js +8696 -14613
  47. package/dist/index.esm.js.map +1 -1
  48. package/dist/index.js +8684 -14601
  49. package/dist/index.js.map +1 -1
  50. package/dist/styles.css +21 -1
  51. package/package.json +19 -28
@@ -1,6 +1,5 @@
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 AllAccordionVariants: () => React.JSX.Element;
5
+ export declare const AllAccordionVariants: () => JSX.Element;
@@ -1,6 +1,5 @@
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 AllAlertsVariants: () => React.JSX.Element;
5
+ export declare const AllAlertsVariants: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
3
2
  interface Props {
4
3
  children: React.ReactNode;
@@ -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: () => React.JSX.Element;
7
- export declare const ButtonWithTooltip: () => React.JSX.Element;
8
- export declare const ButtonWithIcon: () => React.JSX.Element;
9
- export declare const DisabledButton: () => React.JSX.Element;
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 | React.JSX.Element | React.ReactNode;
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;
@@ -1,6 +1,5 @@
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 AllButtonGroups: () => React.JSX.Element;
5
+ export declare const AllButtonGroups: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from '../Button/Button.types';
3
2
  import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
4
3
  /**
@@ -1,6 +1,5 @@
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 AllButtonWithDropdownVariants: () => React.JSX.Element;
5
+ export declare const AllButtonWithDropdownVariants: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
3
2
  interface DropdownSubItem {
4
3
  /** icon class to be used with the dropdown subitems - if available (i.e. 'fc-zoom') */
@@ -1,6 +1,5 @@
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 AllButtonWithPopoverVariants: () => React.JSX.Element;
5
+ export declare const AllButtonWithPopoverVariants: () => JSX.Element;
@@ -1,6 +1,5 @@
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 AllCarousels: () => React.JSX.Element;
5
+ export declare const AllCarousels: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Properties for the Carousel component.
4
3
  */
@@ -1,6 +1,5 @@
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 AllCheckboxes: () => React.JSX.Element;
5
+ export declare const AllCheckboxes: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
3
2
  type FormControlElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
4
3
  export interface CheckboxProps extends TooltipComponentProps {
@@ -1,6 +1,5 @@
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 AllCollapses: () => React.JSX.Element;
5
+ export declare const AllCollapses: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface CollapseProps {
3
2
  isVisible: boolean;
4
3
  children: React.ReactNode;
Binary file
Binary file
@@ -1,6 +1,5 @@
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 AllIcons: () => React.JSX.Element;
5
+ export declare const AllIcons: () => JSX.Element;
@@ -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];
@@ -1,6 +1,5 @@
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 AllTextFields: () => React.JSX.Element;
5
+ export declare const AllTextFields: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from '../Button/Button.types';
3
2
  import { InputLengthStyleProps, TextFieldProps } from '../TextField/TextField.types';
4
3
  import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
@@ -1,6 +1,5 @@
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 AllProgressBars: () => React.JSX.Element;
5
+ export declare const AllProgressBars: () => JSX.Element;
@@ -1,6 +1,5 @@
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 AllSeeqActionDropdownVariants: () => React.JSX.Element;
5
+ export declare const AllSeeqActionDropdownVariants: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
3
2
  export interface SeeqActionDropdownItems {
4
3
  id?: string;
@@ -1,6 +1,5 @@
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 AllSelectVariants: () => React.JSX.Element;
5
+ export declare const AllSelectVariants: () => JSX.Element;
@@ -1,6 +1,5 @@
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 AllSliders: () => React.JSX.Element;
5
+ export declare const AllSliders: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface SliderProps {
3
2
  disabled?: boolean;
4
3
  onValueChange?: (value: number[]) => void;
@@ -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,5 @@
1
+ declare const _default: {
2
+ title: string;
3
+ };
4
+ export default _default;
5
+ export declare const AllIcons: () => JSX.Element;
@@ -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,6 +1,5 @@
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 AllTabsVariants: () => React.JSX.Element;
5
+ export declare const AllTabsVariants: () => JSX.Element;
@@ -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: React.JSX.Element;
13
+ content: JSX.Element;
15
14
  icon?: string;
16
15
  testId?: string;
17
16
  tabExtraClassNames?: string;
@@ -1,6 +1,5 @@
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 AllTextAreas: () => React.JSX.Element;
5
+ export declare const AllTextAreas: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormControlElement } from '../types';
3
2
  export interface TextAreaProps {
4
3
  /** extra class names to be placed on the TextArea component */
@@ -1,6 +1,5 @@
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 AllTextFields: () => React.JSX.Element;
5
+ export declare const AllTextFields: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
3
2
  import { FormControlElement, InputGroupPlacement } from '../types';
4
3
  export interface TextFieldProps extends TooltipComponentProps {
@@ -1,6 +1,5 @@
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 AllToolbarButtonVariants: () => React.JSX.Element;
5
+ export declare const AllToolbarButtonVariants: () => JSX.Element;
@@ -1,6 +1,5 @@
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 AllQTips: () => React.JSX.Element;
5
+ export declare const AllQTips: () => JSX.Element;
@@ -1,6 +1,5 @@
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 QtipPerformance: () => React.JSX.Element;
5
+ export declare const QtipPerformance: () => JSX.Element;
@@ -1,6 +1,5 @@
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 AllTooltips: () => React.JSX.Element;
5
+ export declare const AllTooltips: () => JSX.Element;
@@ -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?: React.JSX.Element | string;
8
- text: React.JSX.Element | string;
6
+ children?: JSX.Element | string;
7
+ text: JSX.Element | string;
9
8
  delay?: number;
10
9
  }
11
10
  export interface TooltipComponentProps {
@@ -1,6 +1,5 @@
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 TooltipPerformance: () => React.JSX.Element;
5
+ export declare const TooltipPerformance: () => JSX.Element;