pixel-react 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
  3. package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
  4. package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
  5. package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
  6. package/lib/components/MachineInputField/types.d.ts +1 -0
  7. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.d.ts +1 -1
  8. package/lib/components/SequentialConnectingBranch/types.d.ts +7 -4
  9. package/lib/index.d.ts +12 -10
  10. package/lib/index.esm.js +200 -427
  11. package/lib/index.esm.js.map +1 -1
  12. package/lib/index.js +200 -427
  13. package/lib/index.js.map +1 -1
  14. package/lib/utils/getSequentialPayload/getSequentialPayload.d.ts +2 -2
  15. package/lib/utils/getSequentialPayload/types.d.ts +2 -4
  16. package/package.json +2 -2
  17. package/src/assets/icons/add_file.svg +4 -13
  18. package/src/assets/icons/eye_open_icon.svg +10 -0
  19. package/src/assets/icons/windows.svg +8 -4
  20. package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +2 -2
  21. package/src/components/Checkbox/Checkbox.scss +1 -1
  22. package/src/components/Icon/iconList.ts +2 -0
  23. package/src/components/MachineInputField/MachineInputField.scss +4 -2
  24. package/src/components/MachineInputField/MachineInputField.tsx +2 -0
  25. package/src/components/MachineInputField/types.ts +1 -0
  26. package/src/components/MenuOption/MenuOption.tsx +3 -4
  27. package/src/components/MultiSelect/MultiSelect.scss +50 -45
  28. package/src/components/MultiSelect/MultiSelect.tsx +1 -1
  29. package/src/components/Select/components/Dropdown.tsx +22 -8
  30. package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.scss +34 -32
  31. package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.tsx +34 -40
  32. package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.tsx +27 -100
  33. package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +5 -5
  34. package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +5 -3
  35. package/src/components/SequentialConnectingBranch/types.ts +7 -4
  36. package/src/components/Tooltip/Tooltip.scss +1 -0
  37. package/src/components/Tooltip/Tooltip.tsx +1 -2
  38. package/src/utils/getSequentialPayload/getSequentialPayload.stories.tsx +2 -5
  39. package/src/utils/getSequentialPayload/getSequentialPayload.ts +11 -24
  40. package/src/utils/getSequentialPayload/types.ts +3 -6
  41. package/lib/StyleGuide/ColorPalette/ColorPalette.stories.d.ts +0 -6
  42. package/lib/StyleGuide/Typography/Typography.stories.d.ts +0 -6
  43. package/lib/components/Accordion/Accordion.stories.d.ts +0 -6
  44. package/lib/components/AddButton/AddButton.d.ts +0 -5
  45. package/lib/components/AddButton/AddButton.stories.d.ts +0 -6
  46. package/lib/components/AddButton/index.d.ts +0 -1
  47. package/lib/components/AddButton/types.d.ts +0 -4
  48. package/lib/components/AddResourceButton/AddButton.stories.d.ts +0 -8
  49. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +0 -7
  50. package/lib/components/AppHeader/AppHeader.stories.d.ts +0 -7
  51. package/lib/components/AttachImage/AttachImage.stories.d.ts +0 -7
  52. package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +0 -9
  53. package/lib/components/Avatar/Avatar.stories.d.ts +0 -10
  54. package/lib/components/Button/Button.stories.d.ts +0 -13
  55. package/lib/components/Charts/BarChart/BarChart.stories.d.ts +0 -6
  56. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +0 -7
  57. package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +0 -6
  58. package/lib/components/Charts/IconRadialChart/IconRadialChart.stories.d.ts +0 -8
  59. package/lib/components/Charts/LineChart/LineChart.stories.d.ts +0 -7
  60. package/lib/components/Charts/MultiRadialChart/MultiRadialChart.stories.d.ts +0 -8
  61. package/lib/components/Charts/PieChart/PieChart.stories.d.ts +0 -7
  62. package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +0 -6
  63. package/lib/components/Checkbox/Checkbox.stories.d.ts +0 -8
  64. package/lib/components/Chip/Chip.stories.d.ts +0 -14
  65. package/lib/components/ConnectingBranch/ConnectingBranch.stories.d.ts +0 -6
  66. package/lib/components/DatePicker/DatePicker.stories.d.ts +0 -9
  67. package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +0 -6
  68. package/lib/components/Drawer/Drawer.stories.d.ts +0 -12
  69. package/lib/components/EditTextField/EditTextField.stories.d.ts +0 -10
  70. package/lib/components/Editor/Editor.stories.d.ts +0 -6
  71. package/lib/components/Excel/ExcelFile.stories.d.ts +0 -6
  72. package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +0 -14
  73. package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +0 -8
  74. package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +0 -4
  75. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +0 -7
  76. package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +0 -4
  77. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +0 -5
  78. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +0 -3
  79. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +0 -5
  80. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +0 -5
  81. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +0 -8
  82. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +0 -10
  83. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +0 -3
  84. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +0 -3
  85. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +0 -5
  86. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +0 -3
  87. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +0 -81
  88. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +0 -3
  89. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +0 -130
  90. package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +0 -1
  91. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +0 -8
  92. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +0 -22
  93. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +0 -17
  94. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +0 -2
  95. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +0 -21
  96. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +0 -3
  97. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +0 -24
  98. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +0 -13
  99. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +0 -67
  100. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +0 -22
  101. package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +0 -11
  102. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +0 -27
  103. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +0 -95
  104. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +0 -215
  105. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +0 -3
  106. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +0 -3
  107. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +0 -45
  108. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +0 -3
  109. package/lib/components/ExcelFile/ExcelFile.stories.d.ts +0 -6
  110. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +0 -15
  111. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +0 -3
  112. package/lib/components/ExcelFile/ImportExcelStyles.d.ts +0 -24
  113. package/lib/components/ExcelFile/Types.d.ts +0 -176
  114. package/lib/components/ExcelFile/index.d.ts +0 -1
  115. package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +0 -7
  116. package/lib/components/FF_Captcha/captcha.stories.d.ts +0 -8
  117. package/lib/components/FileDropzone/FileDropzone.stories.d.ts +0 -8
  118. package/lib/components/Form/Form.stories.d.ts +0 -7
  119. package/lib/components/GridLayout/GridLayout.stories.d.ts +0 -8
  120. package/lib/components/HighlightText/HighlightText.stories.d.ts +0 -6
  121. package/lib/components/Icon/Icon.stories.d.ts +0 -8
  122. package/lib/components/IconButton/IconButton.stories.d.ts +0 -7
  123. package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +0 -7
  124. package/lib/components/Input/Input.stories.d.ts +0 -9
  125. package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +0 -9
  126. package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +0 -13
  127. package/lib/components/LazyLoad/LazyLoad.stories.d.ts +0 -6
  128. package/lib/components/MachineInputField/MachineInputField.stories.d.ts +0 -6
  129. package/lib/components/MenuOption/MenuOption.stories.d.ts +0 -16
  130. package/lib/components/MiniModal/MiniModal.stories.d.ts +0 -10
  131. package/lib/components/Modal/Modal.stories.d.ts +0 -7
  132. package/lib/components/ModulesChip/ModuleChip.stories.d.ts +0 -6
  133. package/lib/components/MultiSelect/MultiSelect.stories.d.ts +0 -12
  134. package/lib/components/NLPInput/NlpInput.stories.d.ts +0 -7
  135. package/lib/components/Paper/Paper.stories.d.ts +0 -11
  136. package/lib/components/RadioButton/RadioButton.stories.d.ts +0 -10
  137. package/lib/components/RadioGroup/RadioGroup.stories.d.ts +0 -9
  138. package/lib/components/Search/Search.stories.d.ts +0 -6
  139. package/lib/components/Select/Select.stories.d.ts +0 -14
  140. package/lib/components/Select/components/Dropdown/Dropdown.d.ts +0 -4
  141. package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +0 -17
  142. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +0 -6
  143. package/lib/components/StateDropdown/StateDropdown.stories.d.ts +0 -10
  144. package/lib/components/StatusButton/StatusButton.stories.d.ts +0 -14
  145. package/lib/components/StatusCard/StatusCard.stories.d.ts +0 -11
  146. package/lib/components/Table/Table.stories.d.ts +0 -13
  147. package/lib/components/TableTree/TableTree.stories.d.ts +0 -7
  148. package/lib/components/Tabs/Tabs.stories.d.ts +0 -9
  149. package/lib/components/TextArea/Textarea.stories.d.ts +0 -9
  150. package/lib/components/Toast/Toast.stories.d.ts +0 -6
  151. package/lib/components/Toastify/Toastify.stories.d.ts +0 -6
  152. package/lib/components/Toggle/Toggle.stories.d.ts +0 -12
  153. package/lib/components/Tooltip/Tooltip.stories.d.ts +0 -15
  154. package/lib/components/Typography/Typography.stories.d.ts +0 -10
  155. package/lib/components/VariableInput/VariableInput.stories.d.ts +0 -6
  156. package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +0 -6
  157. package/lib/utils/compareArrays/compareArrays.stories.d.ts +0 -6
  158. package/lib/utils/compareObjects/compareObjects.stories.d.ts +0 -6
  159. package/lib/utils/debounce/debounce.stories.d.ts +0 -6
  160. package/lib/utils/ffID/ffID.stories.d.ts +0 -6
  161. package/lib/utils/find/findAndInsert.d.ts +0 -7
  162. package/lib/utils/find/findAndInsert.stories.d.ts +0 -7
  163. package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +0 -7
  164. package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +0 -6
  165. package/lib/utils/getExtension/getExtension.stories.d.ts +0 -6
  166. package/lib/utils/getSequentialPayload/getSequentialPayload.stories.d.ts +0 -10
  167. package/lib/utils/throttle/throttle.stories.d.ts +0 -6
  168. package/lib/utils/truncateText/truncateText.stories.d.ts +0 -6
@@ -1,2 +1,2 @@
1
- import { SequentialMachineInstance, MachineExecutionInstanceDataSet } from './types';
2
- export declare const getSequentialPayload: (machineInstances?: MachineExecutionInstanceDataSet[]) => SequentialMachineInstance[];
1
+ import { MachineExecutionInstance, SequentialMachineInstance } from './types';
2
+ export declare const getSequentialPayload: (data: MachineExecutionInstance[]) => SequentialMachineInstance[];
@@ -18,12 +18,10 @@ export interface MachineExecutionInstance {
18
18
  systemUrl: string;
19
19
  machineInfo: OperatingSystemInfo;
20
20
  deviceInfo: any[];
21
- headless: boolean;
22
- }
23
- export interface MachineExecutionInstanceDataSet extends MachineExecutionInstance {
24
21
  runLevelExecutionDataSets: RunLevelExecutionDataSet[];
22
+ headless: boolean;
25
23
  }
26
- export interface SequentialMachineInstance extends MachineExecutionInstance {
24
+ export interface SequentialMachineInstance extends Omit<MachineExecutionInstance, 'runLevelExecutionDataSets'> {
27
25
  peVariableSetId: string;
28
26
  globalVariableSetId: string;
29
27
  testDataSetId: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.4.5",
4
+ "version": "1.4.6",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -26,10 +26,10 @@
26
26
  "@storybook/react": "^8.4.5",
27
27
  "@storybook/react-vite": "^8.4.5",
28
28
  "@storybook/test": "^8.4.5",
29
+ "@types/js-beautify": "^1.14.3",
29
30
  "@types/react": "^18.3.12",
30
31
  "@types/react-dom": "^18.3.1",
31
32
  "@types/react-google-recaptcha": "^2.1.9",
32
- "@types/js-beautify": "^1.14.3",
33
33
  "chromatic": "^11.16.5",
34
34
  "postcss": "^8.4.35",
35
35
  "react": "^18.2.0",
@@ -1,14 +1,5 @@
1
- <svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_911_11481)">
3
- <path fill-rule="evenodd" clip-rule="evenodd"
4
- d="M19.1307 13.4822C19.6597 13.4822 20.0885 13.0534 20.0885 12.5243C20.0885 11.9953 19.6597 11.5665 19.1307 11.5665L12.9579 11.5665L12.9579 5.39368C12.9579 4.86467 12.529 4.43582 12 4.43582C11.471 4.43582 11.0421 4.86467 11.0421 5.39368L11.0421 11.5665L4.86934 11.5665C4.34033 11.5665 3.91148 11.9953 3.91148 12.5243C3.91148 13.0534 4.34032 13.4822 4.86934 13.4822L11.0421 13.4822V19.655C11.0421 20.184 11.471 20.6129 12 20.6129C12.529 20.6129 12.9579 20.184 12.9579 19.655V13.4822L19.1307 13.4822Z"
5
- fill="currentColor" />
6
- </g>
7
- <defs>
8
- <clipPath id="clip0_911_11481">
9
- <path
10
- d="M0 4.52441C0 2.31528 1.79086 0.524414 4 0.524414H20C22.2091 0.524414 24 2.31528 24 4.52441V20.5244C24 22.7336 22.2091 24.5244 20 24.5244H4C1.79086 24.5244 0 22.7336 0 20.5244V4.52441Z"
11
- fill="currentColor" />
12
- </clipPath>
13
- </defs>
1
+ <svg width="16" height="16" viewBox="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd"
3
+ d="M16.1307 9.4822C16.6597 9.4822 17.0885 9.05336 17.0885 8.52434C17.0885 7.99533 16.6597 7.56648 16.1307 7.56648L9.95786 7.56648L9.95786 1.39368C9.95786 0.864669 9.52901 0.435821 9 0.435821C8.47099 0.435821 8.04214 0.864669 8.04214 1.39368L8.04214 7.56648L1.86934 7.56648C1.34033 7.56648 0.911477 7.99533 0.911477 8.52434C0.911477 9.05336 1.34032 9.4822 1.86934 9.4822L8.04214 9.4822V15.655C8.04214 16.184 8.47099 16.6129 9 16.6129C9.52901 16.6129 9.95786 16.184 9.95786 15.655V9.4822L16.1307 9.4822Z"
4
+ fill="currentColor" />
14
5
  </svg>
@@ -0,0 +1,10 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_2947_11191)">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M18.8985 12.297C17.5046 14.8002 14.861 16.3552 12.0009 16.3552C9.13896 16.3552 6.49546 14.8002 5.10149 12.297C4.99413 12.1026 4.99413 11.8972 5.10149 11.703C6.49546 9.19978 9.13896 7.64494 12.0009 7.64494C14.861 7.64494 17.5045 9.19978 18.8985 11.703C19.0078 11.8972 19.0078 12.1026 18.8985 12.297ZM19.789 11.2067C18.2154 8.38043 15.2313 6.62494 12.0009 6.62494C8.76871 6.62494 5.78457 8.38043 4.21104 11.2067C3.92965 11.7109 3.92965 12.2891 4.21104 12.7929C5.78457 15.6192 8.76871 17.375 12.0009 17.375C15.2313 17.375 18.2154 15.6192 19.789 12.7929C20.0703 12.2891 20.0703 11.7109 19.789 11.2067ZM12.0009 14.0923C13.1542 14.0923 14.0928 13.1538 14.0928 11.9999C14.0928 10.8461 13.1542 9.9075 12.0009 9.9075C10.8458 9.9075 9.9072 10.8461 9.9072 11.9999C9.9072 13.1538 10.8458 14.0923 12.0009 14.0923ZM12.0009 8.88749C10.283 8.88749 8.8872 10.2839 8.8872 11.9999C8.8872 13.7164 10.283 15.1122 12.0009 15.1122C13.717 15.1122 15.1128 13.7164 15.1128 11.9999C15.1128 10.2839 13.717 8.88749 12.0009 8.88749Z" fill="currentColor"/>
4
+ </g>
5
+ <defs>
6
+ <clipPath id="clip0_2947_11191">
7
+ <path d="M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z" fill="white"/>
8
+ </clipPath>
9
+ </defs>
10
+ </svg>
@@ -1,6 +1,10 @@
1
1
  <svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M4.80888 12.0185L0.114433 11.3751L0.00422248 11.36L0.00421445 11.2489L0.00396729 7.39195V7.26428H0.131141H4.82583H4.95351V7.39195V11.8924V12.0384L4.80888 12.0185Z" fill="#00ADEF"/>
3
- <path d="M12.0003 7.39195L11.9987 12.8732V13.0197L11.8541 12.9993L5.59136 12.1182L5.48114 12.1028V11.9921V7.39195V7.26428H5.60882H11.8731H12.0003V7.39195Z" fill="#00ADEF"/>
4
- <path d="M5.59086 1.91281L11.8536 1.00154L11.9993 0.980347V1.12771V6.60891V6.73658H11.8715H5.60882H5.48114V6.60891V2.03899V1.92879L5.59086 1.91281Z" fill="#00ADEF"/>
5
- <path d="M0.00418431 6.60893L-0.000124334 2.79077L-0.000244141 2.67959L0.110094 2.6646L4.80836 2.02659L4.95299 2.00696V2.15276V6.60893V6.7366H4.82531H0.131358H0.00433601L0.00418431 6.60893Z" fill="#00ADEF"/>
2
+ <path d="M4.80888 12.0185L0.114433 11.3751L0.00422248 11.36L0.00421445 11.2489L0.00396729 7.39195V7.26428H0.131141H4.82583H4.95351V7.39195V11.8924V12.0384L4.80888 12.0185Z"
3
+ fill="currentColor"/>
4
+ <path d="M12.0003 7.39195L11.9987 12.8732V13.0197L11.8541 12.9993L5.59136 12.1182L5.48114 12.1028V11.9921V7.39195V7.26428H5.60882H11.8731H12.0003V7.39195Z"
5
+ fill="currentColor"/>
6
+ <path d="M5.59086 1.91281L11.8536 1.00154L11.9993 0.980347V1.12771V6.60891V6.73658H11.8715H5.60882H5.48114V6.60891V2.03899V1.92879L5.59086 1.91281Z"
7
+ fill="currentColor"/>
8
+ <path d="M0.00418431 6.60893L-0.000124334 2.79077L-0.000244141 2.67959L0.110094 2.6646L4.80836 2.02659L4.95299 2.00696V2.15276V6.60893V6.7366H4.82531H0.131358H0.00433601L0.00418431 6.60893Z"
9
+ fill="currentColor"/>
6
10
  </svg>
@@ -141,7 +141,7 @@ const DashboardDonutChart: React.FC<DashboardDonutChartProps> = ({
141
141
  {legendData.map((item, index) => (
142
142
  <div className="ff-legend-item" key={index}>
143
143
  <Typography
144
- fontSize={22}
144
+ fontSize={20}
145
145
  fontWeight="semi-bold"
146
146
  className="ff-legend-value"
147
147
  color={
@@ -152,7 +152,7 @@ const DashboardDonutChart: React.FC<DashboardDonutChartProps> = ({
152
152
  >
153
153
  {item.value} {showUnit && unit?.toUpperCase()}
154
154
  </Typography>
155
- <Typography fontSize={12} className="ff-legend-key">
155
+ <Typography fontSize={10} className="ff-legend-key">
156
156
  {item.key}
157
157
  </Typography>
158
158
  </div>
@@ -14,7 +14,7 @@
14
14
  @include mixins.box(16px, 1px solid var(--checkbox-border-color));
15
15
  box-sizing: border-box;
16
16
  border-radius: 2px;
17
- margin-right: 8px;
17
+ margin-right: 4px;
18
18
  background-color: var(--checkbox-bg-color);
19
19
  position: relative;
20
20
  @include mixins.center-content;
@@ -202,6 +202,7 @@ import AddLabelIcon from '../../assets/icons/add_label_icon.svg?react';
202
202
  import QuickRunSettingIcon from '../../assets/icons/quick_run_setting_icon.svg?react';
203
203
  import RunManualTestcaseIcon from '../../assets/icons/run_manual_testcase_icon.svg?react';
204
204
  import RunAutomationScriptsIcon from '../../assets/icons/run_automation_scripts_icon.svg?react';
205
+ import EyeOpenIcon from '../../assets/icons/eye_open_icon.svg?react';
205
206
 
206
207
  Components['delete_info'] = DeleteInfoIcon;
207
208
  Components['success'] = ToastSuccessIcon;
@@ -402,6 +403,7 @@ Components['add_label_icon'] = AddLabelIcon;
402
403
  Components['quick_run_setting'] = QuickRunSettingIcon;
403
404
  Components['run_manual_testcase'] = RunManualTestcaseIcon;
404
405
  Components['run_automation_scripts'] = RunAutomationScriptsIcon;
406
+ Components['eye_open_icon'] = EyeOpenIcon;
405
407
 
406
408
 
407
409
  export default Components;
@@ -9,6 +9,7 @@
9
9
  height: 100%;
10
10
  width: 100%;
11
11
  border: 1px solid var(--ff-machine-input-field-border-color);
12
+ padding: 0 8px 0 0;
12
13
  border-radius: 4px;
13
14
  display: flex;
14
15
  align-items: center;
@@ -17,9 +18,10 @@
17
18
  .ff-machine-icon-text-wrapper,
18
19
  .ff-machine-icon-text-wrapper-reverse {
19
20
  display: flex;
21
+ align-items: center;
20
22
 
21
23
  .ff-machine-icon {
22
- margin-right: 8px;
24
+ margin-left: 4px;
23
25
  }
24
26
  }
25
27
 
@@ -39,6 +41,6 @@
39
41
  background-color: var(--ff-machine-input-field-border-color);
40
42
  border-radius: 4px;
41
43
  padding: 1px 2px;
42
- height: 10px;
44
+ height: 12px;
43
45
  }
44
46
  }
@@ -13,6 +13,7 @@ const MachineInputField = forwardRef<HTMLDivElement, MachineInputFieldProps>(
13
13
  runCount = 0,
14
14
  className = '',
15
15
  contentReverse = false,
16
+ onClick = () => {},
16
17
  },
17
18
  ref
18
19
  ) => {
@@ -28,6 +29,7 @@ const MachineInputField = forwardRef<HTMLDivElement, MachineInputFieldProps>(
28
29
  ref={ref}
29
30
  style={{ width: width }}
30
31
  className={classNames('ff-machine-input-field-wrapper', className)}
32
+ onClick={onClick}
31
33
  >
32
34
  <Typography
33
35
  as="span"
@@ -9,4 +9,5 @@ export interface MachineInputFieldProps {
9
9
  runCount: number;
10
10
  className?: string;
11
11
  contentReverse?: boolean;
12
+ onClick?: () => void;
12
13
  }
@@ -70,7 +70,7 @@ const OptionCard = ({
70
70
  };
71
71
  case 'down':
72
72
  return {
73
- top: menuPosition.bottom,
73
+ top: menuPosition.bottom - 5,
74
74
  left: menuPosition.rightSpaceAvailable + 12,
75
75
  };
76
76
  case 'left':
@@ -131,13 +131,12 @@ const MenuOption = ({
131
131
  fromBottom: 0,
132
132
  rightSpaceAvailable: 0,
133
133
  });
134
- useEffect(() => {
135
- calculateDims();
136
- });
134
+
137
135
  const closeDropDown = () => setIsClicked(false);
138
136
 
139
137
  const onIconClickHandler = () => {
140
138
  onClick();
139
+ calculateDims();
141
140
  setIsClicked((prev) => !prev);
142
141
  };
143
142
 
@@ -79,59 +79,64 @@
79
79
  top: -6px;
80
80
  pointer-events: none;
81
81
  }
82
- .ff-multiselect-chip-container {
82
+ .ff-multiselect-chip-parent-container{
83
+ width: 100%;
83
84
  display: flex;
84
- flex-wrap: wrap;
85
- align-items: center;
86
- gap: 5px;
87
- .ff-multiselect-chip {
88
- @include flex-center;
89
- box-sizing: border-box;
90
- border: 0.5px solid #f1ebf2;
91
- padding: 0 1px 0 4px;
92
- gap: 4px;
93
- height: 16px;
94
- border-radius: 15px;
95
- .ff-multiselect-chip-label {
96
- @extend .fontXs;
97
- line-height: 14px;
98
- color: var(--tooltip-bg-color);
99
- &.label-padding {
100
- padding: 5px 2px;
85
+ justify-content: space-between;
86
+ .ff-multiselect-chip-container {
87
+ display: flex;
88
+ flex-wrap: wrap;
89
+ align-items: center;
90
+ gap: 5px;
91
+ .ff-multiselect-chip {
92
+ @include flex-center;
93
+ box-sizing: border-box;
94
+ border: 0.5px solid #f1ebf2;
95
+ padding: 0 1px 0 4px;
96
+ gap: 4px;
97
+ height: 16px;
98
+ border-radius: 15px;
99
+ .ff-multiselect-chip-label {
100
+ @extend .fontXs;
101
+ line-height: 14px;
102
+ color: var(--tooltip-bg-color);
103
+ &.label-padding {
104
+ padding: 5px 2px;
105
+ }
106
+ }
107
+ .ff-multiselect-chip-close-icon {
108
+ color: var(--brand-color);
109
+ cursor: pointer;
101
110
  }
102
111
  }
103
- .ff-multiselect-chip-close-icon {
104
- color: var(--brand-color);
105
- cursor: pointer;
106
- }
107
- }
108
- .ff-multiselect-input-container {
109
- flex: 1;
110
- min-width: 20px;
111
- input {
112
- width: 100%;
113
- min-width: 30px;
114
- max-width: calc(100% - 0px);
115
- padding: 2px;
116
- box-sizing: border-box;
117
- border: none;
118
- font-size: 12px;
119
- &:focus {
120
- outline: none;
112
+ .ff-multiselect-input-container {
113
+ flex: 1;
114
+ min-width: 20px;
115
+ input {
116
+ width: 100%;
117
+ min-width: 30px;
118
+ max-width: calc(100% - 0px);
119
+ padding: 2px;
120
+ box-sizing: border-box;
121
+ border: none;
122
+ font-size: 12px;
123
+ &:focus {
124
+ outline: none;
125
+ }
121
126
  }
122
127
  }
123
128
  }
129
+ .ff-multiselect-more-chip {
130
+ display: flex;
131
+ align-items: center;
132
+ width: 16px;
133
+ @extend .fontSm;
134
+ font-weight: 600;
135
+ line-height: 16px;
136
+ color: var(--brand-color);
137
+ }
124
138
  }
125
139
  }
126
- .ff-multiselect-more-chip {
127
- display: flex;
128
- align-items: center;
129
- width: 16px;
130
- @extend .fontSm;
131
- font-weight: 600;
132
- line-height: 16px;
133
- color: var(--brand-color);
134
- }
135
140
  &__toggle {
136
141
  display: flex;
137
142
  align-items: center;
@@ -355,7 +355,7 @@ const MultiSelect = ({
355
355
  )}
356
356
 
357
357
  {!withSelectButton && (
358
- <div>
358
+ <div className='ff-multiselect-chip-parent-container'>
359
359
  <div className="ff-multiselect-chip-container">
360
360
  {displayCount ? (
361
361
  <>
@@ -1,4 +1,4 @@
1
- import { type FC, useContext, useRef } from 'react';
1
+ import React, { type FC, useContext, useRef } from 'react';
2
2
  import { dropdownDefaultCSSData, DropdownProps } from './types';
3
3
  import './Dropdown.scss';
4
4
  import { checkEmpty } from '../../../utils/checkEmpty/checkEmpty';
@@ -65,6 +65,23 @@ const Dropdown: FC<DropdownProps> = ({
65
65
  };
66
66
  };
67
67
 
68
+ const getOptionLabel = (label: any) => {
69
+ if (React.isValidElement(label)) {
70
+ console.log('test');
71
+ return label;
72
+ }
73
+ console.log('test112');
74
+ return (
75
+ <Typography
76
+ as="div"
77
+ lineHeight="30px"
78
+ color="var(--ff-select-text-color)"
79
+ >
80
+ {label}
81
+ </Typography>
82
+ );
83
+ };
84
+
68
85
  return (
69
86
  <div
70
87
  className={classNames('ff-select-dropdown-wrapper', currentTheme)}
@@ -73,10 +90,7 @@ const Dropdown: FC<DropdownProps> = ({
73
90
  >
74
91
  {!checkEmpty(options) ? (
75
92
  options.map((option) => (
76
- <Typography
77
- key={ffid()}
78
- as="div"
79
- lineHeight="30px"
93
+ <div
80
94
  className={classNames(
81
95
  'ff-select-dropdown-option',
82
96
  {
@@ -85,14 +99,14 @@ const Dropdown: FC<DropdownProps> = ({
85
99
  },
86
100
  currentTheme
87
101
  )}
88
- color="var(--ff-select-text-color)"
102
+ key={ffid()}
89
103
  onClick={() => {
90
104
  if ('disable' in option && option['disable']) return;
91
105
  onSelectOptionSelector(option);
92
106
  }}
93
107
  >
94
- {getLabel(option, labelAccessor)}
95
- </Typography>
108
+ {getOptionLabel(getLabel(option, labelAccessor))}
109
+ </div>
96
110
  ))
97
111
  ) : (
98
112
  <Typography
@@ -1,3 +1,23 @@
1
+ @mixin item-center {
2
+ display: flex;
3
+ align-items: center;
4
+ }
5
+
6
+ @mixin circle($size, $color) {
7
+ width: $size;
8
+ height: $size;
9
+ border-radius: 50%;
10
+ background-color: $color;
11
+ }
12
+
13
+ @mixin arrow($color, $width, $height) {
14
+ width: $width;
15
+ height: $height;
16
+ background-color: $color;
17
+ clip-path: polygon(100% 50%, 0 100%, 0 0);
18
+ position: absolute;
19
+ }
20
+
1
21
  .ff-sequential-connecting-branch-wrapper {
2
22
  .ff-connecting-select-branch-wrapper {
3
23
  height: 66px;
@@ -15,40 +35,29 @@
15
35
  }
16
36
 
17
37
  .ff-select-branch-arrow {
38
+ @include item-center;
18
39
  position: relative;
19
- display: flex;
20
- align-items: center;
21
40
 
22
41
  .ff-branch-arrow-wrapper {
42
+ margin: 0;
23
43
  width: 40px;
24
44
  border-top: 1px solid var(--ff-connecting-branch-color);
25
- margin-top: 4px;
26
45
  position: relative;
27
46
 
28
47
  .ff-branch-arrow {
29
- width: 6px;
30
- height: 6px;
31
- background-color: var(--ff-connecting-branch-color);
32
- clip-path: polygon(100% 50%, 0 100%, 0 0);
33
- position: absolute;
48
+ @include arrow(var(--ff-connecting-branch-color), 6px, 6px);
34
49
  right: -1px;
35
50
  top: -3px;
36
51
  }
37
52
  }
38
53
 
39
54
  .ff-select-branch-point {
40
- width: 5px;
41
- height: 5px;
42
- border-radius: 50%;
43
- background-color: var(--ff-connecting-branch-color);
55
+ @include circle(5px, var(--ff-connecting-branch-color));
44
56
  position: absolute;
45
57
  left: -3px;
46
58
  z-index: 102;
47
59
  top: 50%;
48
- }
49
-
50
- .branch-button {
51
- margin-top: 4px;
60
+ transform: translateY(-50%);
52
61
  }
53
62
  }
54
63
 
@@ -57,21 +66,19 @@
57
66
  height: 38px;
58
67
 
59
68
  .ff-select-branch-point {
69
+ @include circle(5px, var(--ff-connecting-branch-color));
60
70
  position: absolute;
61
- height: 5px;
62
- width: 5px;
63
- background-color: var(--ff-connecting-branch-color);
64
- border-radius: 50%;
65
- top: 50%;
66
71
  left: -2px;
67
72
  z-index: 102;
73
+ top: 50%;
74
+ transform: translateY(-50%);
68
75
  }
69
76
 
70
77
  .ff-select-branch-arrow {
71
- width: 0px;
78
+ width: 0;
72
79
  height: 62px;
73
80
  top: calc(50% + 1px);
74
- border-left: 1px solid var(--ff-connecting-branch-color);
81
+ border-left: 1px solid var(--ff-connecting-branch-color);
75
82
  z-index: 102;
76
83
  }
77
84
  }
@@ -80,21 +87,16 @@
80
87
  .ff-select-scope-datalist {
81
88
  box-sizing: border-box;
82
89
  width: 240px;
83
- margin-top: 4px;
84
- padding: 0px 4px;
85
90
  display: flex;
86
91
  justify-content: space-between;
87
92
 
88
93
  .ff-scope-wrapper {
89
- display: flex;
90
-
91
- .ff-scope-text {
92
- margin-left: 4px;
93
- }
94
+ @include item-center;
95
+ margin-right: 12px;
94
96
  }
95
97
 
96
98
  .ff-datalist-wrapper {
97
- display: flex;
99
+ @include item-center;
98
100
 
99
101
  .ff-dataset-icon,
100
102
  .ff-run-delete-icon,
@@ -103,7 +105,7 @@
103
105
  }
104
106
 
105
107
  .ff-datalist-text {
106
- margin: 0px 12px 0px 4px;
108
+ margin: 0 12px 0 0;
107
109
  }
108
110
  }
109
111
  }
@@ -1,6 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
2
  import SequentialConnectingBranch from './SequentialConnectingBranch';
3
- import {ffid} from '../../utils/ffID/ffid';
3
+ import { useState } from 'react';
4
4
 
5
5
  const meta: Meta<typeof SequentialConnectingBranch> = {
6
6
  title: 'Components/SequentialConnectingBranch',
@@ -14,48 +14,42 @@ const meta: Meta<typeof SequentialConnectingBranch> = {
14
14
  type Story = StoryObj<typeof SequentialConnectingBranch>;
15
15
 
16
16
  export const Primary: Story = {
17
- args: {
18
- machineInstances: [
17
+ render: () => {
18
+ const machineList = [
19
19
  {
20
- id: ffid(),
21
- runCount: 1,
22
- clientId: 'flinko-client-win-98ddb98f-2349-43ce-869e-c2d5350741a4',
23
- executionEnv: 'Local',
24
- browserName: 'Google Chrome',
25
- browserVersion: '111.0.5563.112',
26
- systemUrl: '',
27
- machineInfo: {
28
- osName: 'Windows 11 Pro',
29
- osVersion: '10.0.22621',
30
- hostName: 'TYSS-Kumuda',
31
- },
32
- deviceInfo: [],
33
- headless: false,
34
- peVariableSetId: 'UUID',
35
- globalVariableSetId: 'UUID',
36
- testDataSetId: 'UUID',
20
+ label: 'FFE 123',
21
+ value: 'FFE 123',
37
22
  },
38
- ],
39
- machineInstance: {
40
- id: ffid(),
41
- runCount: 1,
42
- clientId: 'flinko-client-win-98ddb98f-2349-43ce-869e-c2d5350741a4',
43
- executionEnv: 'Local',
44
- browserName: 'Google Chrome',
45
- browserVersion: '111.0.5563.112',
46
- systemUrl: '',
47
- machineInfo: {
48
- osName: 'Windows 11 Pro',
49
- osVersion: '10.0.22621',
50
- hostName: 'TYSS-Kumuda',
23
+ {
24
+ label: 'FFE 234',
25
+ value: 'FFE 234',
26
+ },
27
+ {
28
+ label: 'FFE 345',
29
+ value: 'FFE 345',
30
+ },
31
+ {
32
+ label: 'FFE 456',
33
+ value: 'FFE 456',
51
34
  },
52
- deviceInfo: [],
53
- headless: false,
54
- peVariableSetId: 'UUID',
55
- globalVariableSetId: 'UUID',
56
- testDataSetId: 'UUID',
57
- },
58
- selectedMachine: 'test',
35
+ ];
36
+ const [selectedMachine, setSelectedMachine] = useState({});
37
+ const [machineInstances, setMachineInstances] = useState<any>([]);
38
+ return (
39
+ <>
40
+ <SequentialConnectingBranch
41
+ machineOptionsList={machineList}
42
+ machineInstances={machineInstances}
43
+ selectedMachine={selectedMachine}
44
+ onHandleSelect={(option) => {
45
+ setSelectedMachine(option);
46
+ }}
47
+ onAddBrowserInstance={() => {
48
+ setMachineInstances([...machineInstances, {}]);
49
+ }}
50
+ />
51
+ </>
52
+ );
59
53
  },
60
54
  };
61
55