@seeqdev/qomponents 0.0.157 → 0.0.159

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 (184) hide show
  1. package/dist/example/package.json +15 -13
  2. package/dist/example/src/Example.tsx +269 -39
  3. package/dist/example/src/index.css +1 -0
  4. package/dist/example/vite.config.ts +2 -1
  5. package/dist/index.esm.js +2731 -2712
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +2731 -2712
  8. package/dist/index.js.map +1 -1
  9. package/dist/{Accordion → src/Accordion}/Accordion.d.ts +4 -4
  10. package/dist/src/Accordion/Accordion.stories.d.ts +5 -0
  11. package/dist/{Accordion → src/Accordion}/Accordion.test.d.ts +1 -1
  12. package/dist/src/Accordion/Accordion.types.d.ts +86 -0
  13. package/dist/{Accordion → src/Accordion}/index.d.ts +1 -1
  14. package/dist/{Alert → src/Alert}/Alert.d.ts +7 -7
  15. package/dist/src/Alert/Alert.stories.d.ts +5 -0
  16. package/dist/src/Alert/Alert.test.d.ts +1 -0
  17. package/dist/src/Alert/Alert.types.d.ts +63 -0
  18. package/dist/{Alert → src/Alert}/index.d.ts +1 -1
  19. package/dist/{Button → src/Button}/Button.d.ts +10 -10
  20. package/dist/src/Button/Button.stories.d.ts +8 -0
  21. package/dist/{Button → src/Button}/Button.test.d.ts +1 -1
  22. package/dist/src/Button/Button.types.d.ts +148 -0
  23. package/dist/{Button → src/Button}/index.d.ts +1 -1
  24. package/dist/{ButtonGroup → src/ButtonGroup}/ButtonGroup.d.ts +7 -7
  25. package/dist/src/ButtonGroup/ButtonGroup.stories.d.ts +5 -0
  26. package/dist/src/ButtonGroup/ButtonGroup.test.d.ts +1 -0
  27. package/dist/src/ButtonGroup/ButtonGroup.types.d.ts +81 -0
  28. package/dist/{ButtonGroup → src/ButtonGroup}/index.d.ts +1 -1
  29. package/dist/{ButtonWithDropdown → src/ButtonWithDropdown}/ButtonWithDropdown.d.ts +4 -4
  30. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +5 -0
  31. package/dist/{ButtonWithDropdown → src/ButtonWithDropdown}/ButtonWithDropdown.test.d.ts +1 -1
  32. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +233 -0
  33. package/dist/{ButtonWithDropdown → src/ButtonWithDropdown}/index.d.ts +1 -1
  34. package/dist/{ButtonWithPopover → src/ButtonWithPopover}/ButtonWithPopover.d.ts +4 -4
  35. package/dist/src/ButtonWithPopover/ButtonWithPopover.stories.d.ts +5 -0
  36. package/dist/{ButtonWithPopover → src/ButtonWithPopover}/ButtonWithPopover.test.d.ts +1 -1
  37. package/dist/src/ButtonWithPopover/ButtonWithPopover.types.d.ts +134 -0
  38. package/dist/{ButtonWithPopover → src/ButtonWithPopover}/index.d.ts +1 -1
  39. package/dist/{Carousel → src/Carousel}/Carousel.d.ts +9 -9
  40. package/dist/src/Carousel/Carousel.stories.d.ts +5 -0
  41. package/dist/{Carousel → src/Carousel}/Carousel.test.d.ts +1 -1
  42. package/dist/src/Carousel/Carousel.types.d.ts +86 -0
  43. package/dist/{Carousel → src/Carousel}/index.d.ts +1 -1
  44. package/dist/{Checkbox → src/Checkbox}/Checkbox.d.ts +7 -7
  45. package/dist/src/Checkbox/Checkbox.stories.d.ts +5 -0
  46. package/dist/{Checkbox → src/Checkbox}/Checkbox.test.d.ts +1 -1
  47. package/dist/src/Checkbox/Checkbox.types.d.ts +92 -0
  48. package/dist/{Checkbox → src/Checkbox}/index.d.ts +1 -1
  49. package/dist/{Collapse → src/Collapse}/Collapse.d.ts +4 -4
  50. package/dist/src/Collapse/Collapse.stories.d.ts +5 -0
  51. package/dist/{Collapse → src/Collapse}/Collapse.test.d.ts +1 -1
  52. package/dist/src/Collapse/Collapse.types.d.ts +19 -0
  53. package/dist/{Collapse → src/Collapse}/index.d.ts +1 -1
  54. package/dist/{Icon → src/Icon}/Icon.d.ts +10 -10
  55. package/dist/src/Icon/Icon.stories.d.ts +5 -0
  56. package/dist/{Icon → src/Icon}/Icon.test.d.ts +1 -1
  57. package/dist/src/Icon/Icon.types.d.ts +87 -0
  58. package/dist/{Icon → src/Icon}/index.d.ts +1 -1
  59. package/dist/{InputGroup → src/InputGroup}/InputGroup.d.ts +7 -7
  60. package/dist/src/InputGroup/InputGroup.stories.d.ts +5 -0
  61. package/dist/src/InputGroup/InputGroup.test.d.ts +1 -0
  62. package/dist/src/InputGroup/InputGroup.types.d.ts +62 -0
  63. package/dist/{InputGroup → src/InputGroup}/index.d.ts +2 -2
  64. package/dist/{Modal → src/Modal}/Modal.d.ts +5 -5
  65. package/dist/{Modal → src/Modal}/Modal.stories.d.ts +10 -10
  66. package/dist/{Modal → src/Modal}/Modal.test.d.ts +1 -1
  67. package/dist/src/Modal/Modal.types.d.ts +244 -0
  68. package/dist/{Modal → src/Modal}/index.d.ts +1 -1
  69. package/dist/{ProgressBar → src/ProgressBar}/ProgressBar.d.ts +4 -4
  70. package/dist/src/ProgressBar/ProgressBar.stories.d.ts +5 -0
  71. package/dist/src/ProgressBar/ProgressBar.test.d.ts +1 -0
  72. package/dist/src/ProgressBar/ProgressBar.types.d.ts +77 -0
  73. package/dist/{ProgressBar → src/ProgressBar}/index.d.ts +1 -1
  74. package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/SeeqActionDropdown.d.ts +4 -4
  75. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +5 -0
  76. package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/SeeqActionDropdown.test.d.ts +1 -1
  77. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +160 -0
  78. package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/index.d.ts +1 -1
  79. package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/variants.d.ts +5 -5
  80. package/dist/{Select → src/Select}/Select.d.ts +15 -15
  81. package/dist/src/Select/Select.stories.d.ts +5 -0
  82. package/dist/{Select → src/Select}/Select.test.d.ts +1 -1
  83. package/dist/src/Select/Select.types.d.ts +220 -0
  84. package/dist/{Select → src/Select}/index.d.ts +2 -2
  85. package/dist/{Slider → src/Slider}/Slider.d.ts +6 -6
  86. package/dist/src/Slider/Slider.stories.d.ts +5 -0
  87. package/dist/src/Slider/Slider.test.d.ts +1 -0
  88. package/dist/src/Slider/Slider.types.d.ts +85 -0
  89. package/dist/{Slider → src/Slider}/index.d.ts +1 -1
  90. package/dist/{SvgIcon → src/SvgIcon}/SvgIcon.d.ts +20 -20
  91. package/dist/src/SvgIcon/SvgIcon.stories.d.ts +5 -0
  92. package/dist/{SvgIcon → src/SvgIcon}/SvgIcon.test.d.ts +1 -1
  93. package/dist/src/SvgIcon/SvgIcon.types.d.ts +76 -0
  94. package/dist/{SvgIcon → src/SvgIcon}/index.d.ts +1 -1
  95. package/dist/{Tabs → src/Tabs}/Tabs.d.ts +4 -4
  96. package/dist/src/Tabs/Tabs.stories.d.ts +5 -0
  97. package/dist/{Tabs → src/Tabs}/Tabs.test.d.ts +1 -1
  98. package/dist/src/Tabs/Tabs.types.d.ts +95 -0
  99. package/dist/{Tabs → src/Tabs}/index.d.ts +1 -1
  100. package/dist/{TextArea → src/TextArea}/TextArea.d.ts +7 -7
  101. package/dist/src/TextArea/TextArea.stories.d.ts +5 -0
  102. package/dist/{TextArea → src/TextArea}/TextArea.test.d.ts +1 -1
  103. package/dist/src/TextArea/TextArea.types.d.ts +105 -0
  104. package/dist/{TextArea → src/TextArea}/index.d.ts +1 -1
  105. package/dist/{TextField → src/TextField}/TextField.d.ts +7 -7
  106. package/dist/src/TextField/TextField.stories.d.ts +5 -0
  107. package/dist/{TextField → src/TextField}/TextField.test.d.ts +1 -1
  108. package/dist/src/TextField/TextField.types.d.ts +199 -0
  109. package/dist/{TextField → src/TextField}/index.d.ts +1 -1
  110. package/dist/{ToolbarButton → src/ToolbarButton}/ToolbarButton.d.ts +3 -3
  111. package/dist/src/ToolbarButton/ToolbarButton.stories.d.ts +5 -0
  112. package/dist/{ToolbarButton → src/ToolbarButton}/ToolbarButton.test.d.ts +1 -1
  113. package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +124 -0
  114. package/dist/{ToolbarButton → src/ToolbarButton}/index.d.ts +1 -1
  115. package/dist/src/Tooltip/QTip.stories.d.ts +5 -0
  116. package/dist/{Tooltip → src/Tooltip}/QTip.types.d.ts +13 -13
  117. package/dist/src/Tooltip/QTipPerformance.stories.d.ts +5 -0
  118. package/dist/{Tooltip → src/Tooltip}/Qtip.d.ts +26 -26
  119. package/dist/{Tooltip → src/Tooltip}/Tooltip.d.ts +13 -13
  120. package/dist/src/Tooltip/Tooltip.stories.d.ts +5 -0
  121. package/dist/{Tooltip → src/Tooltip}/Tooltip.types.d.ts +22 -22
  122. package/dist/src/Tooltip/TooltipPerformance.stories.d.ts +5 -0
  123. package/dist/{Tooltip → src/Tooltip}/index.d.ts +2 -2
  124. package/dist/{Tooltip → src/Tooltip}/qTip.utilities.d.ts +3 -3
  125. package/dist/{index.d.ts → src/index.d.ts} +45 -45
  126. package/dist/src/setupTests.d.ts +1 -0
  127. package/dist/{types.d.ts → src/types.d.ts} +2 -2
  128. package/dist/{utils → src/utils}/browserId.d.ts +9 -9
  129. package/dist/{utils → src/utils}/svg.d.ts +15 -15
  130. package/dist/{utils → src/utils}/validateStyleDimension.d.ts +2 -2
  131. package/dist/{utils → src/utils}/validateStyleDimension.test.d.ts +1 -1
  132. package/dist/styles.css +102 -67
  133. package/dist/types.d.ts.map +1 -0
  134. package/package.json +20 -22
  135. package/dist/Accordion/Accordion.stories.d.ts +0 -6
  136. package/dist/Accordion/Accordion.types.d.ts +0 -20
  137. package/dist/Alert/Alert.stories.d.ts +0 -6
  138. package/dist/Alert/Alert.test.d.ts +0 -1
  139. package/dist/Alert/Alert.types.d.ts +0 -14
  140. package/dist/Button/Button.stories.d.ts +0 -9
  141. package/dist/Button/Button.types.d.ts +0 -53
  142. package/dist/ButtonGroup/ButtonGroup.stories.d.ts +0 -6
  143. package/dist/ButtonGroup/ButtonGroup.test.d.ts +0 -1
  144. package/dist/ButtonGroup/ButtonGroup.types.d.ts +0 -40
  145. package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +0 -6
  146. package/dist/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -90
  147. package/dist/ButtonWithPopover/ButtonWithPopover.stories.d.ts +0 -6
  148. package/dist/ButtonWithPopover/ButtonWithPopover.types.d.ts +0 -48
  149. package/dist/Carousel/Carousel.stories.d.ts +0 -6
  150. package/dist/Carousel/Carousel.types.d.ts +0 -24
  151. package/dist/Checkbox/Checkbox.stories.d.ts +0 -6
  152. package/dist/Checkbox/Checkbox.types.d.ts +0 -20
  153. package/dist/Collapse/Collapse.stories.d.ts +0 -6
  154. package/dist/Collapse/Collapse.types.d.ts +0 -5
  155. package/dist/Icon/Icon.stories.d.ts +0 -6
  156. package/dist/Icon/Icon.types.d.ts +0 -31
  157. package/dist/InputGroup/InputGroup.stories.d.ts +0 -6
  158. package/dist/InputGroup/InputGroup.test.d.ts +0 -1
  159. package/dist/InputGroup/InputGroup.types.d.ts +0 -36
  160. package/dist/Modal/Modal.types.d.ts +0 -48
  161. package/dist/ProgressBar/ProgressBar.stories.d.ts +0 -6
  162. package/dist/ProgressBar/ProgressBar.test.d.ts +0 -1
  163. package/dist/ProgressBar/ProgressBar.types.d.ts +0 -30
  164. package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +0 -6
  165. package/dist/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -58
  166. package/dist/Select/Select.stories.d.ts +0 -6
  167. package/dist/Select/Select.types.d.ts +0 -89
  168. package/dist/Slider/Slider.stories.d.ts +0 -6
  169. package/dist/Slider/Slider.test.d.ts +0 -1
  170. package/dist/Slider/Slider.types.d.ts +0 -17
  171. package/dist/SvgIcon/SvgIcon.stories.d.ts +0 -6
  172. package/dist/SvgIcon/SvgIcon.types.d.ts +0 -25
  173. package/dist/Tabs/Tabs.stories.d.ts +0 -6
  174. package/dist/Tabs/Tabs.types.d.ts +0 -21
  175. package/dist/TextArea/TextArea.stories.d.ts +0 -6
  176. package/dist/TextArea/TextArea.types.d.ts +0 -35
  177. package/dist/TextField/TextField.stories.d.ts +0 -6
  178. package/dist/TextField/TextField.types.d.ts +0 -40
  179. package/dist/ToolbarButton/ToolbarButton.stories.d.ts +0 -6
  180. package/dist/ToolbarButton/ToolbarButton.types.d.ts +0 -53
  181. package/dist/Tooltip/QTip.stories.d.ts +0 -6
  182. package/dist/Tooltip/QTipPerformance.stories.d.ts +0 -6
  183. package/dist/Tooltip/Tooltip.stories.d.ts +0 -6
  184. package/dist/Tooltip/TooltipPerformance.stories.d.ts +0 -6
@@ -1,89 +0,0 @@
1
- import { GroupBase, InputActionMeta, MenuPlacement, MultiValue, SingleValue } from 'react-select';
2
- import { ReactNode } from 'react';
3
- import { InputGroupPlacement } from '../types';
4
- export type Option = {
5
- label: string;
6
- value: string | number;
7
- } | any;
8
- export type GroupedOption = {
9
- label: string;
10
- options: Option[];
11
- };
12
- export interface SelectProps {
13
- /** set to true to not automatically close the menu on selection */
14
- closeMenuOnSelect?: boolean;
15
- /** set to true if users can add new options */
16
- creatable?: boolean;
17
- /** set to true to disable the select */
18
- isDisabled?: boolean;
19
- /** extra class names to be placed on the select container: this can be used to size the select */
20
- extraClassNames?: string;
21
- /** extra class names to be placed on the select control */
22
- controlClassNames?: string;
23
- /** custom filter for search */
24
- filterConfig?: unknown;
25
- /** formats option labels in the menu and control as React components */
26
- getOptionLabel?: (option: Option) => ReactNode | undefined;
27
- /** resolves option data to a string to be displayed as the label by components */
28
- getOptionValue?: (option: Option) => string;
29
- /** formats the selected option labels in the menu and control as React components */
30
- getSelectedValueLabel?: (option: Option) => ReactNode | undefined;
31
- /** id of the select component */
32
- id?: string;
33
- /** if the select is displayed as part of an input group provide the placement here */
34
- inputGroup?: InputGroupPlacement;
35
- /** id of the input component */
36
- inputId?: string;
37
- /** set to true if users should be able to clear selection */
38
- isClearable?: boolean;
39
- /** set to true while select options are loading */
40
- isLoading?: boolean;
41
- /** set to true if multiple options can be selected */
42
- isMulti?: boolean;
43
- /** set to true if select should be searchable by typing in the select box */
44
- isSearchable?: boolean;
45
- /** set to true to keep the menu open; this is helpful for debugging */
46
- menuIsOpen?: boolean;
47
- /** where the menu should be displayed - auto is usually a great choice */
48
- menuPlacement?: MenuPlacement;
49
- /** whether the menu should use a portal, and where it should attach */
50
- menuPortalTarget?: null | HTMLElement;
51
- /** message displayed if no options are available */
52
- noOptionsMessage?: string;
53
- /** handle change events on the select */
54
- onChange: (newValue: SingleValue<Option> | MultiValue<Option>) => void;
55
- /** Array of options that populate the select menu */
56
- options: Option[] | GroupedOption[];
57
- /** placeholder text that is displayed when no option is selected */
58
- placeholder?: string;
59
- /** if true error formatting will be displayed */
60
- showError?: boolean;
61
- /** if true the select will be displayed in a "small" version */
62
- small?: boolean;
63
- /** value of the select */
64
- value?: Option | undefined;
65
- /** default value of the select */
66
- defaultValue?: Option | undefined;
67
- /** custom method to filter whether an option should be displayed in the menu */
68
- filterOption?: (option: Option, rawInput: string) => boolean;
69
- /** formats group labels in the menu as React components */
70
- formatGroupLabel?: (group: GroupBase<unknown>) => ReactNode;
71
- /** handle remove events in multi-select */
72
- onRemove?: ({ id }: {
73
- id: Option | string;
74
- }) => void;
75
- /** custom handle for on menu open events in select component */
76
- onMenuOpen?: () => void;
77
- /** custom handle for on menu close events in select component */
78
- onMenuClose?: () => void;
79
- /** custom components to be used in the select */
80
- components?: Partial<any>;
81
- /** custom handle for on menu input focus events in select */
82
- onMenuInputFocus?: (inputValue: string) => void;
83
- /** custom handle for on input change events for the select - this is different from onChange which is only called
84
- * when an option is selected - this event is called whenever something about the select changes; the action
85
- * tells you what changed */
86
- onInputChange?: (inputValue: string, action: InputActionMeta) => void;
87
- /** value of the search input */
88
- inputValue?: string;
89
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const AllSliders: () => React.JSX.Element;
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom/extend-expect';
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- export interface SliderProps {
3
- disabled?: boolean;
4
- onValueChange?: (value: number[]) => void;
5
- onPointerUp?: React.PointerEventHandler<HTMLDivElement>;
6
- id?: string;
7
- name?: string;
8
- value: number;
9
- rootExtraClassNames?: string;
10
- trackExtraClassNames?: string;
11
- thumbExtraClassNames?: string;
12
- rangeExtraClassNames?: string;
13
- testId?: string;
14
- step?: number;
15
- min?: number;
16
- max?: number;
17
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const AllIcons: () => React.JSX.Element;
@@ -1,25 +0,0 @@
1
- /// <reference types="react" />
2
- import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
3
- export declare const svgIconTypes: readonly ["theme", "white", "dark-gray", "darkish-gray", "gray", "color", "info", "text", "warning", "inherit", "danger", "theme-light", "success", "default"];
4
- export type SvgIconType = (typeof svgIconTypes)[number];
5
- export interface SvgIconProps extends TooltipComponentProps {
6
- /** icon class to be used (i.e. fc-zoom) */
7
- icon: string;
8
- /** default will use dark/light text colors otherwise will use the theme color */
9
- type?: SvgIconType;
10
- /** used to add a custom color to the icon (required if type="color") */
11
- color?: string;
12
- /** function to call when clicking the icon (takes no parameters) */
13
- onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => any;
14
- /** extra class names to be placed on the SvgIcon component */
15
- extraClassNames?: string;
16
- /** id that can be placed on the SvgIcon component */
17
- id?: string;
18
- /** id that will be used in the data-testid attribute on the icon */
19
- testId?: string;
20
- /** id that will be used in the data-customid attribute on the icon.
21
- * Can be used to identify the icon as the click event target in an event handler */
22
- customId?: string;
23
- /** optional SVG view box */
24
- viewBox?: string;
25
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const AllTabsVariants: () => React.JSX.Element;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- export interface TabsProps {
3
- extraClassNames?: string;
4
- defaultActiveTab?: string;
5
- activeTab?: string;
6
- transition?: boolean;
7
- onTabSelect?: (tabId: string) => void;
8
- id?: string;
9
- testId?: string;
10
- stretchTabs?: boolean;
11
- tabs: {
12
- label: string;
13
- id: string;
14
- content: React.JSX.Element;
15
- icon?: string;
16
- testId?: string;
17
- tabExtraClassNames?: string;
18
- disabled?: boolean;
19
- tabContentExtraClassNames?: string;
20
- }[];
21
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const AllTextAreas: () => React.JSX.Element;
@@ -1,35 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormControlElement } from '../types';
3
- export interface TextAreaProps {
4
- /** extra class names to be placed on the TextArea component */
5
- extraClassNames?: string;
6
- /** id of TextArea */
7
- id?: string;
8
- /** name of TextArea */
9
- name?: string;
10
- /** function that will be called when TextArea value changes */
11
- onChange?: React.ChangeEventHandler<FormControlElement>;
12
- /** function that will be called on key up within the TextArea */
13
- onKeyUp?: React.KeyboardEventHandler<FormControlElement>;
14
- onKeyDown?: React.KeyboardEventHandler<FormControlElement>;
15
- onFocus?: React.FocusEventHandler<HTMLTextAreaElement>;
16
- onBlur?: React.FocusEventHandler<FormControlElement>;
17
- /** placeholder text displayed when TextArea is empty */
18
- placeholder?: string;
19
- /** set readonly to true if TextArea can not be edited */
20
- readonly?: boolean;
21
- /** set disabled to true if TextArea is disabled */
22
- disabled?: boolean;
23
- /** specifies the visible number of lines in the TextArea */
24
- rows?: number;
25
- /** specifies the visible width of the TextArea */
26
- cols?: number;
27
- /** set this to true to focus the TextArea when page loads */
28
- autoFocus?: boolean;
29
- /** id that will be used in the data-testid attribute on the TextArea */
30
- testId?: string;
31
- /** value of the TextArea */
32
- value?: string | string[] | number;
33
- /** if true error formatting will be displayed */
34
- showError?: boolean;
35
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const AllTextFields: () => React.JSX.Element;
@@ -1,40 +0,0 @@
1
- /// <reference types="react" />
2
- import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
3
- import { FormControlElement, InputGroupPlacement } from '../types';
4
- export interface TextFieldProps extends TooltipComponentProps {
5
- readonly?: boolean;
6
- disabled?: boolean;
7
- onChange?: React.ChangeEventHandler<FormControlElement>;
8
- onKeyUp?: React.KeyboardEventHandler<FormControlElement>;
9
- onKeyDown?: React.KeyboardEventHandler<FormControlElement>;
10
- onFocus?: React.FocusEventHandler<HTMLInputElement>;
11
- onBlur?: React.FocusEventHandler<FormControlElement>;
12
- id?: string;
13
- name?: string;
14
- size?: 'sm' | 'lg';
15
- value?: string | string[] | number;
16
- placeholder?: string;
17
- extraClassNames?: string;
18
- type?: 'text' | 'password' | 'number' | 'email';
19
- testId?: string;
20
- ref?: any;
21
- inputGroup?: InputGroupPlacement;
22
- step?: number | string;
23
- showError?: boolean;
24
- errorText?: string;
25
- required?: boolean;
26
- autoComplete?: string;
27
- autoFocus?: boolean;
28
- inputWidth?: number;
29
- inputHeight?: number;
30
- min?: number;
31
- max?: number;
32
- }
33
- export interface DimensionStyle {
34
- width?: string;
35
- height?: string;
36
- }
37
- export interface InputLengthStyleProps {
38
- maxLength?: number;
39
- minLength?: number;
40
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const AllToolbarButtonVariants: () => React.JSX.Element;
@@ -1,53 +0,0 @@
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
- export interface ToolbarButtonProps {
8
- /** icon class to be used with the toolbar (i.e. 'fc-zoom') */
9
- icon: string;
10
- /** second icon class to be displayed alongside icon */
11
- secondIcon?: string;
12
- /** true to force the icon to be small */
13
- forceSmallIcon?: boolean;
14
- /** label for the toolbar item (shown only when toolbar is wide enough) */
15
- label?: string;
16
- /** items for the popover content */
17
- popoverContent?: React.ReactNode;
18
- /** true to render an icon-only toolbar button */
19
- isSmall?: boolean;
20
- id?: string;
21
- /** extra class names to be placed on the Toolbar container component */
22
- extraClassNames?: string;
23
- /** id that will be used in the data-testid attribute on the toolbar button element */
24
- testId?: string;
25
- /** the text to be displayed on the icon's tooltip */
26
- tooltipText?: string;
27
- /** true if the provided tooltip text should be rendered as HTML */
28
- isHtmlTooltip?: boolean;
29
- /** optional testId applied to the tooltip - useful for testing */
30
- tooltipTestId?: string;
31
- /** options for the tooltip */
32
- tooltipOptions?: Omit<TooltipProps, 'text'>;
33
- /** sets button to disabled */
34
- disabled?: boolean;
35
- /** function called when the toolbar is clicked on, i.e. for tracking (does not open the popover) */
36
- onClick?: (e: MouseEvent) => void;
37
- /** true to give the toolbar button the "pressed" look */
38
- isActive?: boolean;
39
- /** called when popup is hidden */
40
- onHide?: () => void;
41
- /** set to display arrow or not */
42
- hasArrow?: boolean;
43
- /** true if the `icon` string is an svg */
44
- isPrimaryAnSvg?: boolean;
45
- /** extra class names to be placed on the primary icon */
46
- primaryIconExtraClassNames?: string;
47
- /** height for the icon */
48
- iconHeight?: number;
49
- /** width for the icon */
50
- iconWidth?: number;
51
- /** viewbox for the icon */
52
- primaryIconViewbox?: string;
53
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const AllQTips: () => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const QtipPerformance: () => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const AllTooltips: () => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const TooltipPerformance: () => React.JSX.Element;