pixel-react 1.4.3 → 1.4.5

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 (263) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/StyleGuide/ColorPalette/ColorPalette.stories.d.ts +6 -0
  3. package/lib/StyleGuide/Typography/Typography.stories.d.ts +6 -0
  4. package/lib/components/Accordion/Accordion.stories.d.ts +6 -0
  5. package/lib/components/AddButton/AddButton.d.ts +5 -0
  6. package/lib/components/AddButton/AddButton.stories.d.ts +6 -0
  7. package/lib/components/AddButton/index.d.ts +1 -0
  8. package/lib/components/AddButton/types.d.ts +4 -0
  9. package/lib/components/AddResourceButton/AddButton.stories.d.ts +8 -0
  10. package/lib/components/AddResourceButton/type.d.ts +1 -1
  11. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +7 -0
  12. package/lib/components/AppHeader/AppHeader.stories.d.ts +7 -0
  13. package/lib/components/AttachImage/AttachImage.stories.d.ts +7 -0
  14. package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
  15. package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
  16. package/lib/components/Button/Button.stories.d.ts +13 -0
  17. package/lib/components/Charts/BarChart/BarChart.stories.d.ts +6 -0
  18. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +7 -0
  19. package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +6 -0
  20. package/lib/components/Charts/IconRadialChart/IconRadialChart.stories.d.ts +8 -0
  21. package/lib/components/Charts/LineChart/LineChart.stories.d.ts +7 -0
  22. package/lib/components/Charts/MultiRadialChart/MultiRadialChart.stories.d.ts +8 -0
  23. package/lib/components/Charts/PieChart/PieChart.stories.d.ts +7 -0
  24. package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +6 -0
  25. package/lib/components/Checkbox/Checkbox.stories.d.ts +8 -0
  26. package/lib/components/Chip/Chip.stories.d.ts +14 -0
  27. package/lib/components/ConnectingBranch/ConnectingBranch.stories.d.ts +6 -0
  28. package/lib/components/DatePicker/DatePicker.stories.d.ts +9 -0
  29. package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
  30. package/lib/components/Drawer/Drawer.stories.d.ts +12 -0
  31. package/lib/components/Drawer/Types.d.ts +4 -0
  32. package/lib/components/EditTextField/EditTextField.stories.d.ts +10 -0
  33. package/lib/components/Editor/Editor.d.ts +1 -2
  34. package/lib/components/Editor/Editor.stories.d.ts +6 -0
  35. package/lib/components/Editor/types.d.ts +1 -5
  36. package/lib/components/Excel/ExcelContextMenu/ExcelContextMenu.d.ts +13 -0
  37. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.d.ts +0 -13
  38. package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.d.ts +29 -1
  39. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/engine.d.ts +3 -9
  40. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/formula.d.ts +2 -10
  41. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-graph.d.ts +0 -1
  42. package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +27 -2
  43. package/lib/components/Excel/ExcelFile.stories.d.ts +6 -0
  44. package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +14 -0
  45. package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
  46. package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +4 -0
  47. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +7 -0
  48. package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +4 -0
  49. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +5 -0
  50. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +3 -0
  51. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +5 -0
  52. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +5 -0
  53. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +8 -0
  54. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +10 -0
  55. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +3 -0
  56. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +3 -0
  57. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +5 -0
  58. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +3 -0
  59. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +81 -0
  60. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +3 -0
  61. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +130 -0
  62. package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +1 -0
  63. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +8 -0
  64. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +22 -0
  65. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +17 -0
  66. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -0
  67. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +21 -0
  68. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +3 -0
  69. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +24 -0
  70. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +13 -0
  71. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +67 -0
  72. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +22 -0
  73. package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +11 -0
  74. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +27 -0
  75. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +95 -0
  76. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +215 -0
  77. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +3 -0
  78. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +3 -0
  79. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +45 -0
  80. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +3 -0
  81. package/lib/components/ExcelFile/ExcelFile.stories.d.ts +6 -0
  82. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +15 -0
  83. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +3 -0
  84. package/lib/components/ExcelFile/ImportExcelStyles.d.ts +24 -0
  85. package/lib/components/ExcelFile/Types.d.ts +176 -0
  86. package/lib/components/ExcelFile/index.d.ts +1 -0
  87. package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +7 -0
  88. package/lib/components/FF_Captcha/captcha.stories.d.ts +8 -0
  89. package/lib/components/FileDropzone/FileDropzone.stories.d.ts +8 -0
  90. package/lib/components/Form/Form.stories.d.ts +7 -0
  91. package/lib/components/Form/Forms.d.ts +4 -2
  92. package/lib/components/GridLayout/GridLayout.stories.d.ts +8 -0
  93. package/lib/components/HighlightText/HighlightText.stories.d.ts +6 -0
  94. package/lib/components/Icon/Icon.stories.d.ts +8 -0
  95. package/lib/components/IconButton/IconButton.stories.d.ts +7 -0
  96. package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +7 -0
  97. package/lib/components/Input/Input.stories.d.ts +9 -0
  98. package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
  99. package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +9 -0
  100. package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +13 -0
  101. package/lib/components/LazyLoad/LazyLoad.stories.d.ts +6 -0
  102. package/lib/components/MachineInputField/MachineInputField.stories.d.ts +6 -0
  103. package/lib/components/MenuOption/MenuOption.d.ts +1 -1
  104. package/lib/components/MenuOption/MenuOption.stories.d.ts +16 -0
  105. package/lib/components/MenuOption/types.d.ts +49 -15
  106. package/lib/components/MiniModal/MiniModal.stories.d.ts +10 -0
  107. package/lib/components/Modal/Modal.stories.d.ts +7 -0
  108. package/lib/components/ModulesChip/ModuleChip.stories.d.ts +6 -0
  109. package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
  110. package/lib/components/MultiSelect/MultiSelect.stories.d.ts +12 -0
  111. package/lib/components/MultiSelect/MultiSelectTypes.d.ts +4 -5
  112. package/lib/components/MultiSelect/dropdownTypes.d.ts +2 -0
  113. package/lib/components/NLPInput/NlpInput.stories.d.ts +7 -0
  114. package/lib/components/Paper/Paper.stories.d.ts +11 -0
  115. package/lib/components/RadioButton/RadioButton.d.ts +1 -0
  116. package/lib/components/RadioButton/RadioButton.stories.d.ts +10 -0
  117. package/lib/components/RadioButton/radioButtonTypes.d.ts +3 -1
  118. package/lib/components/RadioGroup/RadioGroup.stories.d.ts +9 -0
  119. package/lib/components/Search/Search.stories.d.ts +6 -0
  120. package/lib/components/Select/Select.stories.d.ts +14 -0
  121. package/lib/components/Select/components/Dropdown/Dropdown.d.ts +4 -0
  122. package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +17 -0
  123. package/lib/components/Select/components/types.d.ts +4 -2
  124. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +6 -0
  125. package/lib/components/StateDropdown/StateDropdown.stories.d.ts +10 -0
  126. package/lib/components/StatusButton/StatusButton.stories.d.ts +14 -0
  127. package/lib/components/StatusCard/StatusCard.stories.d.ts +11 -0
  128. package/lib/components/Table/Table.d.ts +1 -1
  129. package/lib/components/Table/Table.stories.d.ts +13 -0
  130. package/lib/components/TableTree/TableTree.stories.d.ts +7 -0
  131. package/lib/components/Tabs/Tabs.stories.d.ts +9 -0
  132. package/lib/components/TextArea/Textarea.stories.d.ts +9 -0
  133. package/lib/components/Toast/Toast.stories.d.ts +6 -0
  134. package/lib/components/Toastify/Toastify.stories.d.ts +6 -0
  135. package/lib/components/Toggle/Toggle.stories.d.ts +12 -0
  136. package/lib/components/ToggleSwitch/ToggleSwitch.d.ts +10 -0
  137. package/lib/components/ToggleSwitch/index.d.ts +1 -0
  138. package/lib/components/Tooltip/Tooltip.stories.d.ts +15 -0
  139. package/lib/components/Typography/Typography.stories.d.ts +10 -0
  140. package/lib/components/VariableInput/VariableInput.stories.d.ts +6 -0
  141. package/lib/index.d.ts +140 -29
  142. package/lib/index.esm.js +15628 -5724
  143. package/lib/index.esm.js.map +1 -1
  144. package/lib/index.js +15625 -5718
  145. package/lib/index.js.map +1 -1
  146. package/lib/tsconfig.tsbuildinfo +1 -1
  147. package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +6 -0
  148. package/lib/utils/compareArrays/compareArrays.stories.d.ts +6 -0
  149. package/lib/utils/compareObjects/compareObjects.stories.d.ts +6 -0
  150. package/lib/utils/debounce/debounce.stories.d.ts +6 -0
  151. package/lib/utils/ffID/ffID.stories.d.ts +6 -0
  152. package/lib/utils/find/findAndInsert.d.ts +7 -0
  153. package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
  154. package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +7 -0
  155. package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +6 -0
  156. package/lib/utils/getExtension/getExtension.stories.d.ts +6 -0
  157. package/lib/utils/getSequentialPayload/getSequentialPayload.stories.d.ts +10 -0
  158. package/lib/utils/throttle/throttle.stories.d.ts +6 -0
  159. package/lib/utils/truncateText/truncateText.stories.d.ts +6 -0
  160. package/package.json +12 -12
  161. package/src/StyleGuide/ColorPalette/colorPaletteList.ts +10 -0
  162. package/src/assets/Themes/BaseTheme.scss +17 -23
  163. package/src/assets/Themes/DarkTheme.scss +25 -38
  164. package/src/assets/icons/apk_file_type.svg +4 -0
  165. package/src/assets/icons/compressed_file_type.svg +4 -0
  166. package/src/assets/icons/csv_file_type.svg +4 -0
  167. package/src/assets/icons/excel_corner_menu.svg +3 -0
  168. package/src/assets/icons/formula_icon.svg +3 -0
  169. package/src/assets/icons/gif_file_type.svg +4 -0
  170. package/src/assets/icons/html_file_type.svg +4 -0
  171. package/src/assets/icons/ipk_file_type.svg +4 -0
  172. package/src/assets/icons/jpg_file_type.svg +4 -0
  173. package/src/assets/icons/json_file_type.svg +4 -0
  174. package/src/assets/icons/pdf_file_type.svg +4 -0
  175. package/src/assets/icons/png_file_type.svg +4 -0
  176. package/src/assets/icons/quick_run_setting_icon.svg +5 -0
  177. package/src/assets/icons/run_automation_scripts_icon.svg +33 -0
  178. package/src/assets/icons/run_manual_testcase_icon.svg +4 -0
  179. package/src/assets/icons/search.svg +2 -2
  180. package/src/assets/icons/txt_file_type.svg +4 -0
  181. package/src/assets/icons/xls_file_type.svg +4 -0
  182. package/src/assets/icons/xlsx_file_type.svg +4 -0
  183. package/src/assets/icons/xml_file_type.svg +4 -0
  184. package/src/components/AddResourceButton/AddButton.tsx +7 -7
  185. package/src/components/AddResourceButton/type.ts +1 -1
  186. package/src/components/AttachmentButton/AttachmentButton.scss +1 -1
  187. package/src/components/AttachmentButton/AttachmentButton.stories.tsx +1 -0
  188. package/src/components/Button/Button.scss +22 -20
  189. package/src/components/Button/Button.tsx +8 -1
  190. package/src/components/Drawer/Drawer.scss +4 -3
  191. package/src/components/Drawer/Drawer.tsx +14 -18
  192. package/src/components/Drawer/Types.ts +4 -0
  193. package/src/components/Editor/Editor.tsx +224 -193
  194. package/src/components/Editor/types.ts +1 -5
  195. package/src/components/Excel/ExcelContextMenu/ExcelContextMenu.scss +39 -0
  196. package/src/components/Excel/ExcelContextMenu/ExcelContextMenu.tsx +51 -0
  197. package/src/components/Excel/ExcelFile/ExcelFile.tsx +7 -8
  198. package/src/components/Excel/ExcelFile/ExcelFileComponents/Cell.tsx +35 -0
  199. package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +44 -7
  200. package/src/components/Excel/ExcelFile/ExcelFileComponents/CornerIndicator.tsx +8 -1
  201. package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +45 -6
  202. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +37 -2
  203. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +69 -24
  204. package/src/components/Excel/ExcelFile/ExcelFileComponents/actions.ts +59 -0
  205. package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/engine.ts +18 -65
  206. package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/formula.ts +5 -110
  207. package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/point-graph.ts +0 -2
  208. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducer.ts +105 -1
  209. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.ts +670 -673
  210. package/src/components/Excel/ExcelFile/ExcelFileComponents/types.ts +38 -2
  211. package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +0 -4
  212. package/src/components/FileDropzone/FileDropzone.scss +4 -2
  213. package/src/components/FileDropzone/FileDropzone.tsx +1 -1
  214. package/src/components/FileDropzone/FilePreview.tsx +3 -1
  215. package/src/components/Form/Form.scss +2 -0
  216. package/src/components/Form/Form.stories.tsx +195 -6
  217. package/src/components/Form/Forms.tsx +15 -8
  218. package/src/components/Icon/iconList.ts +46 -0
  219. package/src/components/IconRadioGroup/IconRadioGroup.scss +3 -0
  220. package/src/components/IconRadioGroup/IconRadioGroup.tsx +20 -17
  221. package/src/components/Input/Input.scss +14 -15
  222. package/src/components/Input/Input.stories.tsx +2 -1
  223. package/src/components/InputWithDropdown/InputWithDropdown.scss +12 -13
  224. package/src/components/InputWithDropdown/InputWithDropdown.stories.tsx +3 -2
  225. package/src/components/InputWithDropdown/InputWithDropdown.tsx +22 -19
  226. package/src/components/MenuOption/MenuOption.scss +11 -10
  227. package/src/components/MenuOption/MenuOption.stories.tsx +51 -232
  228. package/src/components/MenuOption/MenuOption.tsx +131 -52
  229. package/src/components/MenuOption/types.ts +55 -14
  230. package/src/components/MiniModal/MiniModal.stories.tsx +2 -3
  231. package/src/components/MultiSelect/Dropdown.tsx +11 -12
  232. package/src/components/MultiSelect/MultiSelect.scss +1 -0
  233. package/src/components/MultiSelect/MultiSelect.stories.tsx +45 -10
  234. package/src/components/MultiSelect/MultiSelect.tsx +29 -13
  235. package/src/components/MultiSelect/MultiSelectTypes.ts +7 -5
  236. package/src/components/MultiSelect/dropdownTypes.ts +2 -0
  237. package/src/components/RadioButton/RadioButton.scss +3 -1
  238. package/src/components/RadioButton/RadioButton.tsx +3 -1
  239. package/src/components/RadioButton/radioButtonTypes.tsx +5 -1
  240. package/src/components/Search/Search.scss +25 -6
  241. package/src/components/Search/Search.tsx +45 -24
  242. package/src/components/Select/Select.scss +12 -12
  243. package/src/components/Select/Select.stories.tsx +2 -0
  244. package/src/components/Select/Select.tsx +11 -5
  245. package/src/components/Select/components/Dropdown.scss +2 -0
  246. package/src/components/Select/components/Dropdown.tsx +19 -4
  247. package/src/components/Select/components/types.ts +4 -2
  248. package/src/components/StatusButton/StatusButton.tsx +26 -20
  249. package/src/components/Table/Table.scss +1 -3
  250. package/src/components/Table/Table.stories.tsx +1 -0
  251. package/src/components/Table/Table.tsx +7 -3
  252. package/src/components/ToggleSwitch/ToggleSwitch.scss +59 -0
  253. package/src/components/ToggleSwitch/ToggleSwitch.stories.tsx +52 -0
  254. package/src/components/ToggleSwitch/ToggleSwitch.tsx +30 -0
  255. package/src/components/ToggleSwitch/index.ts +1 -0
  256. package/src/hooks/useFileDropzone.tsx +1 -0
  257. package/src/index.ts +7 -3
  258. package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
  259. package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
  260. package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
  261. package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
  262. package/src/components/Excel/ContextMenu/ContextMenu.scss +0 -99
  263. package/src/components/Excel/ContextMenu/ContextMenu.tsx +0 -103
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import MachineInputField from './MachineInputField';
3
+ declare const meta: Meta<typeof MachineInputField>;
4
+ type Story = StoryObj<typeof MachineInputField>;
5
+ export declare const Primary: Story;
6
+ export default meta;
@@ -1,4 +1,4 @@
1
1
  import './MenuOption.scss';
2
2
  import { MenuOptionProps } from './types';
3
- declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, dropdownPlacement, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, zIndex, }: MenuOptionProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, zIndex, dropdownPlacement, }: MenuOptionProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default MenuOption;
@@ -0,0 +1,16 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import MenuOption from './MenuOption';
3
+ import './MenuOption.scss';
4
+ export declare const DefaultMenuOption: Story;
5
+ declare const meta: Meta<typeof MenuOption>;
6
+ type Story = StoryObj<typeof MenuOption>;
7
+ export declare const ControlledMenuOption: Story;
8
+ export declare const MenuOptionWithLabel: Story;
9
+ export declare const MenuOptionWithDisabledHoverEffect: Story;
10
+ export declare const MenuOptionWithToolTip: Story;
11
+ export declare const MenuOptionPlacementTop: Story;
12
+ export declare const MenuOptionPlacementDown: Story;
13
+ export declare const MenuOptionPlacementLeft: Story;
14
+ export declare const MenuOptionPlacementRight: Story;
15
+ export declare const MenuOptionCustom: Story;
16
+ export default meta;
@@ -10,15 +10,17 @@ interface OptionClick {
10
10
  * @type {Array<string> | string}
11
11
  * @required
12
12
  */
13
- value: Array<string> | string;
13
+ value: any;
14
14
  }
15
15
  interface OptionType extends OptionClick {
16
16
  /**
17
17
  * The name of the icon associated with the option.
18
18
  * @type {string}
19
- * @required
19
+ * @optional
20
20
  */
21
21
  icon?: string;
22
+ iconColor?: string;
23
+ name?: string;
22
24
  /**
23
25
  * Indicates whether the option is disabled.
24
26
  * @type {boolean}
@@ -35,17 +37,47 @@ interface OptionCardProps {
35
37
  options: Array<OptionType>;
36
38
  /**
37
39
  * Callback function triggered when an option is clicked.
38
- * @param {any} data - The data associated with the clicked option.
40
+ * @param {OptionClick} data - The data associated with the clicked option.
39
41
  * @type {function}
40
42
  * @required
41
43
  */
42
- onClick: (data?: any) => void;
44
+ onClick: (data: OptionClick) => void;
43
45
  /**
44
46
  * Optional styles applied to the card.
45
47
  * @type {React.CSSProperties}
46
48
  * @optional
47
49
  */
48
50
  styles?: React.CSSProperties;
51
+ /**
52
+ * The z-index of the option card.
53
+ * @type {number}
54
+ * @optional
55
+ */
56
+ zIndex?: number;
57
+ /**
58
+ * The position of the menu relative to the triggering element.
59
+ * @type {dropdownPosition}
60
+ * @required
61
+ */
62
+ menuPosition: any;
63
+ /**
64
+ * Reference to the menu DOM element.
65
+ * @type {React.RefObject<HTMLElement>}
66
+ * @required
67
+ */
68
+ menuRef: React.RefObject<HTMLElement>;
69
+ /**
70
+ * Callback function to close the dropdown.
71
+ * @type {() => void}
72
+ * @required
73
+ */
74
+ closeDropdown: () => void;
75
+ /**
76
+ * Placement of the dropdown menu relative to the icon.
77
+ * @type {dropdownPosition}
78
+ * @optional
79
+ */
80
+ dropdownPosition?: 'top' | 'down' | 'left' | 'right';
49
81
  }
50
82
  interface MenuOptionProps {
51
83
  /**
@@ -80,27 +112,27 @@ interface MenuOptionProps {
80
112
  tooltipPlacement?: 'bottom' | 'left' | 'right' | 'top' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
81
113
  /**
82
114
  * The placement of the dropdown menu relative to the icon.
83
- * @type {'top' | 'left' | 'right' | 'bottom'}
115
+ * @type {dropdownPosition}
84
116
  * @optional
85
117
  */
86
- dropdownPlacement?: string | 'top' | 'left' | 'right' | 'down';
118
+ dropdownPlacement?: 'top' | 'down' | 'left' | 'right';
87
119
  /**
88
- * The variant of the menu option, either 'dark' or 'light'.
89
- * @type {'dark' | 'light'}
90
- * @default 'light'
91
- * @optional
92
- */
120
+ * The variant of the menu option, either 'dark' or 'light'.
121
+ * @type {'dark' | 'light'}
122
+ * @default 'light'
123
+ * @optional
124
+ */
93
125
  variant?: 'dark' | 'light';
94
126
  /**
95
127
  * Callback function triggered when the icon is clicked.
96
- * @type {function}
128
+ * @type {() => void}
97
129
  * @optional
98
130
  */
99
131
  onClick?: () => void;
100
132
  /**
101
133
  * Callback function triggered when an option is clicked.
102
134
  * @param {OptionClick} option - The option that was clicked.
103
- * @type {function}
135
+ * @type {(option: OptionClick) => void}
104
136
  * @optional
105
137
  */
106
138
  onOptionClick?: (option: OptionClick) => void;
@@ -117,13 +149,15 @@ interface MenuOptionProps {
117
149
  */
118
150
  iconSize?: number;
119
151
  /**
120
- * The border radius of the icon.
152
+ * The border radius of the icon button.
121
153
  * @type {number}
122
154
  * @default 7
123
155
  */
124
156
  iconButtonBorderRadius?: number;
125
157
  /**
126
158
  * Providing z-index for the options card.
159
+ * @type {number}
160
+ * @optional
127
161
  */
128
162
  zIndex?: number;
129
163
  }
@@ -137,7 +171,7 @@ interface OptionProps {
137
171
  /**
138
172
  * Callback function triggered when the option is clicked.
139
173
  * @param {OptionClick} option - The clicked option.
140
- * @type {function}
174
+ * @type {(option: OptionClick) => void}
141
175
  * @required
142
176
  */
143
177
  onClick: (option: OptionClick) => void;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import MiniModal from './MiniModal';
3
+ import './MiniModal.scss';
4
+ declare const meta: Meta<typeof MiniModal>;
5
+ type Story = StoryObj<typeof MiniModal>;
6
+ export declare const BasicModal: Story;
7
+ export declare const CustomModalWithArrow: () => import("react/jsx-runtime").JSX.Element;
8
+ export declare const CustomModalWithWrapper: () => import("react/jsx-runtime").JSX.Element;
9
+ export declare const normalModalFollowedByIcon: () => import("react/jsx-runtime").JSX.Element;
10
+ export default meta;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Modal from './Modal';
3
+ declare const meta: Meta<typeof Modal>;
4
+ type Story = StoryObj<typeof Modal>;
5
+ export declare const DefaultModalStory: Story;
6
+ export declare const Controlled: Story;
7
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ModuleChip from './ModuleChip';
3
+ declare const meta: Meta<typeof ModuleChip>;
4
+ type Story = StoryObj<typeof ModuleChip>;
5
+ export declare const Controlled: Story;
6
+ export default meta;
@@ -1,4 +1,4 @@
1
1
  import './MultiSelect.scss';
2
2
  import { MultiSelectProps } from './MultiSelectTypes';
3
- declare const MultiSelect: ({ options, type, selectedOptions, onChange, acceptNewOption, zIndex, label, onSearch, required, disabled, errorMessage, displayCount, placeholderForSearching, variant, onLabelPlusIconClick, onManageLabelsClick, className, highlightedMachine, onSelectButtonClick, withSelectButton, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const MultiSelect: ({ options, type, selectedOptions, onChange, acceptNewOption, zIndex, label, onSearch, required, disabled, errorMessage, displayCount, placeholderForSearching, variant, onLabelPlusIconClick, onManageLabelsClick, className, highlightedMachine, onSelectButtonClick, labelAccessor, valueAccessor, withSelectButton, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default MultiSelect;
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import MultiSelect from './MultiSelect';
3
+ declare const meta: Meta<typeof MultiSelect>;
4
+ type Story = StoryObj<typeof MultiSelect>;
5
+ export declare const Default: Story;
6
+ export declare const Default2: Story;
7
+ export declare const Default3: Story;
8
+ export declare const EmailGroup: Story;
9
+ export declare const Controlled: Story;
10
+ export declare const Labels: Story;
11
+ export declare const Machines: Story;
12
+ export default meta;
@@ -1,10 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
+ type OptionValue = any;
2
3
  interface Option {
3
- label?: string;
4
- value?: string;
5
- accessor?: string;
6
- isChecked?: boolean;
7
- isDisabled?: boolean;
4
+ [key: string]: OptionValue;
8
5
  }
9
6
  interface MultiSelectProps {
10
7
  options: Option[];
@@ -32,5 +29,7 @@ interface MultiSelectProps {
32
29
  className?: string;
33
30
  /** Machine Name to be displayed */
34
31
  highlightedMachine?: string | ReactElement;
32
+ labelAccessor?: string;
33
+ valueAccessor?: string;
35
34
  }
36
35
  export { Option, MultiSelectProps };
@@ -14,4 +14,6 @@ export interface DropdownProps {
14
14
  zIndex: number;
15
15
  withSelectButton?: boolean;
16
16
  onSelect?: () => void;
17
+ labelAccessor?: string;
18
+ valueAccessor?: string;
17
19
  }
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import NlpInput from './NlpInput';
3
+ declare const meta: Meta<typeof NlpInput>;
4
+ type Story = StoryObj<typeof NlpInput>;
5
+ export declare const Primary: Story;
6
+ export declare const Disable: Story;
7
+ export default meta;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Paper from './Paper';
3
+ import './Paper.scss';
4
+ declare const meta: Meta<typeof Paper>;
5
+ type Story = StoryObj<typeof Paper>;
6
+ export declare const Default: Story;
7
+ export declare const PrimaryPaper: Story;
8
+ export declare const PaperWithLowShadow: Story;
9
+ export declare const PaperWithHighShadow: Story;
10
+ export declare const PaperWithRounded: Story;
11
+ export default meta;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
2
  import './RadioButton.scss';
3
+ import RadioButtonProps from './radioButtonTypes';
3
4
  declare const RadioButton: React.FC<RadioButtonProps>;
4
5
  export default RadioButton;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import RadioButton from './RadioButton';
3
+ declare const meta: Meta<typeof RadioButton>;
4
+ type Story = StoryObj<typeof RadioButton>;
5
+ export declare const Default: Story;
6
+ export declare const Checked: Story;
7
+ export declare const UncheckedDisabled: Story;
8
+ export declare const CheckedDisabled: Story;
9
+ export declare const WithoutLabel: Story;
10
+ export default meta;
@@ -1,3 +1,4 @@
1
+ import { ReactElement } from 'react';
1
2
  /**
2
3
  * Props for the RadioButton component.
3
4
  */
@@ -6,7 +7,7 @@ interface RadioButtonProps {
6
7
  * The display label for the radio button.
7
8
  * Optional.
8
9
  */
9
- label?: string;
10
+ label?: string | ReactElement;
10
11
  /**
11
12
  * The name attribute for the radio button, used for grouping.
12
13
  */
@@ -48,3 +49,4 @@ interface RadioButtonProps {
48
49
  */
49
50
  tooltipTitle?: React.ReactNode;
50
51
  }
52
+ export default RadioButtonProps;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import RadioGroup from './RadioGroup';
3
+ declare const meta: Meta<typeof RadioGroup>;
4
+ type Story = StoryObj<typeof RadioGroup>;
5
+ export declare const Controlled: Story;
6
+ export declare const WithDisabledOption: Story;
7
+ export declare const DisabledSelected: Story;
8
+ export declare const WithToolTipIcon: Story;
9
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Search from './Search';
3
+ declare const meta: Meta<typeof Search>;
4
+ type Story = StoryObj<typeof Search>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1,14 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Select from './Select';
3
+ declare const meta: Meta<typeof Select>;
4
+ type Story = StoryObj<typeof Select>;
5
+ export declare const Primary: Story;
6
+ export declare const WithError: Story;
7
+ export declare const WithoutLabel: Story;
8
+ export declare const EmptyOptions: Story;
9
+ export declare const Disable: Story;
10
+ export declare const WithInitialValue: Story;
11
+ export declare const OptionSelection: Story;
12
+ export declare const CustomJSX: Story;
13
+ export declare const updateOptionFromOutside: Story;
14
+ export default meta;
@@ -0,0 +1,4 @@
1
+ import { DropDownListProps } from './dropdownTypes';
2
+ import './Dropdown.scss';
3
+ declare const Dropdown: ({ onSelectBlur, onSelectOptionSelector, dropdownPosition, options, optionZIndex, inputRef, labelAccessor, }: DropDownListProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Dropdown;
@@ -0,0 +1,17 @@
1
+ import { DrowdownPosition, Option } from '../../types';
2
+ export interface DropDownListProps {
3
+ onSelectBlur: () => void;
4
+ onSelectOptionSelector: (option: Option) => void;
5
+ dropdownPosition: DrowdownPosition;
6
+ options?: Option[];
7
+ optionZIndex?: number;
8
+ inputRef?: React.RefObject<HTMLInputElement>;
9
+ labelAccessor?: string;
10
+ valueAccessor?: string;
11
+ }
12
+ export declare const dropdownDefaultCSSData: {
13
+ margin: number;
14
+ optionHeight: number;
15
+ selectInputHeight: number;
16
+ dropDownWrapperPadding: number;
17
+ };
@@ -1,4 +1,5 @@
1
1
  import { DrowdownPosition, Option } from '../types';
2
+ import { RefObject } from 'react';
2
3
  export interface DropdownProps {
3
4
  options: Option[];
4
5
  dropdownPosition: DrowdownPosition;
@@ -7,9 +8,10 @@ export interface DropdownProps {
7
8
  valueAccessor?: string;
8
9
  onSelectBlur: () => void;
9
10
  onSelectOptionSelector: (option: Option) => void;
10
- inputRef?: React.RefObject<HTMLInputElement>;
11
- selectArrowRef?: React.RefObject<HTMLDivElement>;
11
+ inputRef?: RefObject<HTMLInputElement>;
12
+ selectArrowRef?: RefObject<HTMLDivElement>;
12
13
  heightFromTop: number;
14
+ selectedOption?: Option;
13
15
  }
14
16
  export declare const dropdownDefaultCSSData: {
15
17
  margin: number;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import SequentialConnectingBranch from './SequentialConnectingBranch';
3
+ declare const meta: Meta<typeof SequentialConnectingBranch>;
4
+ type Story = StoryObj<typeof SequentialConnectingBranch>;
5
+ export declare const Primary: Story;
6
+ export default meta;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import StateDropdown from './StateDropdown';
3
+ declare const meta: Meta<typeof StateDropdown>;
4
+ type Story = StoryObj<typeof StateDropdown>;
5
+ export declare const Disable: Story;
6
+ export declare const Review: Story;
7
+ export declare const Reject: Story;
8
+ export declare const Approved: Story;
9
+ export declare const NewState: Story;
10
+ export default meta;
@@ -0,0 +1,14 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import StatusButton from './StatusButton';
3
+ declare const meta: Meta<typeof StatusButton>;
4
+ type Story = StoryObj<typeof StatusButton>;
5
+ export declare const Passed: Story;
6
+ export declare const Failed: Story;
7
+ export declare const Running: Story;
8
+ export declare const Terminated: Story;
9
+ export declare const Skipped: Story;
10
+ export declare const Warning: Story;
11
+ export declare const PartiallyExecuted: Story;
12
+ export declare const Aborted: Story;
13
+ export declare const NotExecuted: Story;
14
+ export default meta;
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Card from './StatusCard';
3
+ import { CardProps } from './types';
4
+ declare const meta: Meta<typeof Card>;
5
+ export default meta;
6
+ type Story = StoryObj<CardProps>;
7
+ export declare const Passed: Story;
8
+ export declare const Failed: Story;
9
+ export declare const Warning: Story;
10
+ export declare const Skipped: Story;
11
+ export declare const Flaky: Story;
@@ -1,4 +1,4 @@
1
1
  import './Table.scss';
2
2
  import { TableProps } from './Types';
3
- declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, noDataContent, height, className, tableHeadClass, tableBodyRowClass, headerTextColor, tableDataTextColor, headerIconName, headerIconOnClick, }: TableProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, noDataContent, height, className, tableHeadClass, tableBodyRowClass, headerTextColor, tableDataTextColor, headerIconName, headerIconOnClick, }: TableProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Table;
@@ -0,0 +1,13 @@
1
+ import { StoryObj, Meta } from '@storybook/react';
2
+ import Table from './Table';
3
+ declare const meta: Meta<typeof Table>;
4
+ type Story = StoryObj<typeof Table>;
5
+ export declare const Default: Story;
6
+ export declare const PrimaryHeaderTextColor: Story;
7
+ export declare const TableDataTextColor: Story;
8
+ export declare const PageTable: Story;
9
+ export declare const PrimaryHeader: Story;
10
+ export declare const FixedHeaderWithBorder: Story;
11
+ export declare const WithCheckBox: Story;
12
+ export declare const TableWithNoData: Story;
13
+ export default meta;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import TableTree from './TableTree';
3
+ import './TableTreeStories.scss';
4
+ declare const meta: Meta<typeof TableTree>;
5
+ type Story = StoryObj<typeof TableTree>;
6
+ export declare const Default: Story;
7
+ export default meta;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Tabs from './Tabs';
3
+ declare const meta: Meta<typeof Tabs>;
4
+ type Story = StoryObj<typeof Tabs>;
5
+ export declare const DefaultTabs: Story;
6
+ export declare const CapsuleTabs: Story;
7
+ export declare const TabsWithDisabledTab: Story;
8
+ export declare const WithoutBorder: Story;
9
+ export default meta;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Textarea from './Textarea';
3
+ declare const meta: Meta<typeof Textarea>;
4
+ type Story = StoryObj<typeof Textarea>;
5
+ export declare const Default: Story;
6
+ export declare const Primary: Story;
7
+ export declare const Disabled: Story;
8
+ export declare const Controlled: Story;
9
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Toaster from './Toast';
3
+ declare const meta: Meta<typeof Toaster>;
4
+ type Story = StoryObj<typeof Toaster>;
5
+ export declare const Controlled: Story;
6
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Toastify } from './Toastify';
3
+ declare const meta: Meta<typeof Toastify>;
4
+ type Story = StoryObj<typeof Toastify>;
5
+ export declare const Controlled: Story;
6
+ export default meta;
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Toggle from './Toggle';
3
+ declare const meta: Meta<typeof Toggle>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Toggle>;
6
+ export declare const Default: Story;
7
+ export declare const Disabled: Story;
8
+ export declare const Checked: Story;
9
+ export declare const SmallSize: Story;
10
+ export declare const MediumSize: Story;
11
+ export declare const DynamicIconAndSize: Story;
12
+ export declare const Controlled: Story;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "./ToggleSwitch.scss";
3
+ interface ToggleSwitchProps {
4
+ firstButton: string;
5
+ secondButton: string;
6
+ handleClick: (selected: string) => void;
7
+ selected: string;
8
+ }
9
+ declare const ToggleSwitch: React.FC<ToggleSwitchProps>;
10
+ export default ToggleSwitch;
@@ -0,0 +1 @@
1
+ export { default } from './ToggleSwitch';
@@ -0,0 +1,15 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Tooltip from './Tooltip';
3
+ declare const meta: Meta<typeof Tooltip>;
4
+ type Story = StoryObj<typeof Tooltip>;
5
+ export declare const Default: Story;
6
+ export declare const Controlled: Story;
7
+ export declare const Top: Story;
8
+ export declare const Left: Story;
9
+ export declare const Right: Story;
10
+ export declare const TopStart: Story;
11
+ export declare const TopEnd: Story;
12
+ export declare const BottomStart: Story;
13
+ export declare const BottomEnd: Story;
14
+ export declare const TooltipWithIcon: Story;
15
+ export default meta;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Typography from './Typography';
3
+ declare const meta: Meta<typeof Typography>;
4
+ type Story = StoryObj<typeof Typography>;
5
+ export declare const Docs: Story;
6
+ export declare const Regular12px: Story;
7
+ export declare const Medium12px: Story;
8
+ export declare const SemiBold14px: Story;
9
+ export declare const Bold14px: Story;
10
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import VariableInput from './VariableInput';
3
+ declare const meta: Meta<typeof VariableInput>;
4
+ type Story = StoryObj<typeof VariableInput>;
5
+ export declare const Default: Story;
6
+ export default meta;