pixel-react 1.7.7 → 1.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/1fb4472b34e4fe07.css +1 -0
- package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +7 -0
- package/lib/components/AppHeader/AppHeader.stories.d.ts +7 -0
- package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
- package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
- package/lib/components/Button/Button.d.ts +2 -2
- package/lib/components/Button/Button.stories.d.ts +1 -0
- package/lib/components/Button/types.d.ts +17 -0
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +7 -0
- package/lib/components/Charts/DashboardDonutChart/types.d.ts +2 -0
- package/lib/components/Charts/MultiRadialChart/types.d.ts +3 -0
- package/lib/components/Charts/PieChart/PieChart.stories.d.ts +7 -0
- package/lib/components/ChooseFile/ChooseFile.d.ts +3 -0
- package/lib/components/ChooseFile/types.d.ts +68 -0
- package/lib/components/ConnectingBranch/ConnectingBranch.d.ts +2 -1
- package/lib/components/ConnectingBranch/data.d.ts +19 -33
- package/lib/components/ConnectingBranch/types.d.ts +10 -0
- package/lib/components/Drawer/Drawer.stories.d.ts +5 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.d.ts +7 -1
- package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
- package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +4 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +7 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +4 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +8 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +10 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +80 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +174 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +1 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +8 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +22 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +17 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +21 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +24 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +13 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +67 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +22 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +11 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +27 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +95 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +178 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +44 -0
- package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +19 -0
- package/lib/components/ExcelFile/ExcelFile.stories.d.ts +6 -0
- package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +12 -0
- package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +15 -0
- package/lib/components/ExcelFile/Types.d.ts +129 -0
- package/lib/components/ExcelFile/index.d.ts +1 -0
- package/lib/components/FF_Captcha/captcha.stories.d.ts +8 -0
- package/lib/components/Form/Form.stories.d.ts +6 -5
- package/lib/components/Icon/Icon.stories.d.ts +1 -0
- package/lib/components/IconButton/IconButton.stories.d.ts +1 -0
- package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +7 -0
- package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +11 -0
- package/lib/components/LabelEditTextField/types.d.ts +2 -0
- package/lib/components/MachineInputField/MachineInputField.d.ts +4 -1
- package/lib/components/MachineInputField/MachineInputField.stories.d.ts +6 -0
- package/lib/components/MenuOption/MenuOption.stories.d.ts +1 -0
- package/lib/components/MiniModal/MiniModal.stories.d.ts +2 -1
- package/lib/components/ModulesChip/ModuleChip.stories.d.ts +6 -0
- package/lib/components/MultiSelect/MultiSelect.stories.d.ts +1 -0
- package/lib/components/NLPInput/NlpInput.stories.d.ts +7 -0
- package/lib/components/NLPInput/type.d.ts +70 -0
- package/lib/components/Paper/Paper.stories.d.ts +11 -0
- package/lib/components/RadioGroup/RadioGroup.stories.d.ts +2 -1
- package/lib/components/Select/components/Dropdown/Dropdown.d.ts +1 -1
- package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +2 -0
- package/lib/components/Select/types.d.ts +1 -1
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +6 -0
- package/lib/components/StatusCard/types.d.ts +2 -0
- package/lib/components/Table/Table.stories.d.ts +2 -0
- package/lib/components/TableTree/Components/TableCell.d.ts +1 -1
- package/lib/components/TableTree/Components/TableRow.d.ts +1 -1
- package/lib/components/TableTree/data.d.ts +74 -0
- package/lib/components/TableTree/types.d.ts +4 -0
- package/lib/components/TextArea/Textarea.d.ts +1 -1
- package/lib/components/TextArea/Types.d.ts +1 -0
- package/lib/components/Toastify/Toastify.stories.d.ts +6 -0
- package/lib/components/VariableInput/VariableInput.stories.d.ts +6 -0
- package/lib/index.d.ts +174 -63
- package/lib/index.esm.js +478 -287
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +478 -286
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/ffID/ffID.stories.d.ts +1 -1
- package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +7 -0
- package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +6 -0
- package/lib/utils/validateFile/validateFile.d.ts +2 -0
- package/package.json +1 -1
- package/src/assets/Themes/BaseTheme.scss +1 -0
- package/src/assets/Themes/BlueTheme.scss +44 -44
- package/src/assets/Themes/DarkTheme.scss +1 -0
- package/src/assets/icons/failed_status_icon.svg +1 -1
- package/src/assets/icons/flaky_status_icon.svg +1 -1
- package/src/assets/icons/settings.svg +3 -0
- package/src/assets/icons/skipped_status_icon.svg +1 -1
- package/src/assets/icons/warning_status_icon.svg +1 -1
- package/src/components/AppHeader/AppHeader.tsx +4 -2
- package/src/components/Button/Button.scss +12 -0
- package/src/components/Button/Button.tsx +29 -11
- package/src/components/Button/types.ts +21 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.scss +83 -30
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.tsx +3 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +39 -16
- package/src/components/Charts/DashboardDonutChart/types.ts +2 -0
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.scss +0 -1
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.stories.tsx +2 -1
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.tsx +18 -4
- package/src/components/Charts/MultiRadialChart/types.ts +4 -1
- package/src/components/ChooseFile/ChooseFile.stories.tsx +190 -0
- package/src/components/ChooseFile/ChooseFile.tsx +46 -0
- package/src/components/ChooseFile/types.ts +78 -0
- package/src/components/ConnectingBranch/BranchComponents/MachineInstances.tsx +94 -79
- package/src/components/ConnectingBranch/ConnectingBranch.scss +183 -195
- package/src/components/ConnectingBranch/ConnectingBranch.stories.tsx +33 -1
- package/src/components/ConnectingBranch/ConnectingBranch.tsx +121 -107
- package/src/components/ConnectingBranch/{data.ts → data.tsx} +106 -17
- package/src/components/ConnectingBranch/types.ts +21 -0
- package/src/components/Excel/ExcelFile/ExcelFile.tsx +1 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.tsx +13 -8
- package/src/components/Excel/ExcelFile/ExcelFileComponents/FloatingRect.tsx +6 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +30 -11
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +65 -19
- package/src/components/Excel/ExcelFile/ExcelFileComponents/actions.ts +14 -0
- package/src/components/Excel/ExcelFile/ExcelFileComponents/reducer.ts +16 -0
- package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +6 -5
- package/src/components/Icon/iconList.ts +2 -0
- package/src/components/InputWithDropdown/InputWithDropdown.tsx +1 -1
- package/src/components/LabelEditTextField/LabelEditTextField.stories.tsx +8 -3
- package/src/components/LabelEditTextField/LabelEditTextField.tsx +28 -11
- package/src/components/LabelEditTextField/types.ts +2 -0
- package/src/components/MachineInputField/MachineInputField.tsx +67 -70
- package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.scss +1 -1
- package/src/components/Select/Select.tsx +4 -4
- package/src/components/Select/types.ts +1 -1
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +1 -0
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +2 -8
- package/src/components/StatusCard/StatusCard.scss +2 -1
- package/src/components/StatusCard/StatusCard.stories.tsx +59 -1
- package/src/components/StatusCard/StatusCard.tsx +10 -2
- package/src/components/StatusCard/types.ts +2 -0
- package/src/components/TableTree/Components/TableBody.tsx +19 -15
- package/src/components/TableTree/Components/TableCell.tsx +47 -31
- package/src/components/TableTree/Components/TableRow.tsx +4 -0
- package/src/components/TableTree/TableTree.scss +122 -109
- package/src/components/TableTree/data.ts +16 -1
- package/src/components/TableTree/types.ts +4 -0
- package/src/components/TextArea/Textarea.tsx +2 -0
- package/src/components/TextArea/Types.ts +3 -0
- package/src/index.ts +3 -0
- package/src/utils/validateFile/validateFile.stories.tsx +49 -0
- package/src/utils/validateFile/validateFile.ts +39 -0
- package/lib/components/ThemeProvider/CustomThemeProvider.d.ts +0 -8
- package/lib/hooks/useCustomThemeProvider.d.ts +0 -11
- package/src/components/SequentialConnectingBranch/components/AddBrowserModal/AddBrowserModal.scss +0 -51
- package/src/components/SequentialConnectingBranch/components/AddBrowserModal/AddBrowserModal.tsx +0 -107
- package/src/components/SequentialConnectingBranch/components/AddBrowserModal/types.ts +0 -5
- package/src/components/SequentialConnectingBranch/components/DatasetListModal/DatasetListModal.scss +0 -31
- package/src/components/SequentialConnectingBranch/components/DatasetListModal/DatasetListModal.tsx +0 -85
- package/src/components/SequentialConnectingBranch/components/DatasetListModal/types.ts +0 -4
@@ -1,233 +1,221 @@
|
|
1
|
-
.
|
2
|
-
|
3
|
-
grid-template-columns: 1fr 4fr 1fr 6fr;
|
4
|
-
padding: 24px 0;
|
5
|
-
grid-auto-rows: auto;
|
6
|
-
|
7
|
-
.ff-selectedMachines {
|
8
|
-
display: contents;
|
9
|
-
}
|
10
|
-
|
11
|
-
.ff-selectedMachines-input {
|
12
|
-
grid-column: 2 / 3;
|
1
|
+
.connecting-branch-container {
|
2
|
+
.ff-connecting-branch-grid-container {
|
13
3
|
display: grid;
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
width: 100%;
|
19
|
-
height: 32px;
|
20
|
-
}
|
4
|
+
grid-template-columns:
|
5
|
+
minmax(100px, 0.5fr) minmax(240px, 1.5fr) minmax(130px, 0.8fr)
|
6
|
+
5fr;
|
7
|
+
grid-auto-rows: auto;
|
21
8
|
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
|
26
|
-
.ff-selectedMachines-connecting-line {
|
27
|
-
grid-column: 3 / 4;
|
28
|
-
position: relative;
|
29
|
-
|
30
|
-
.ff-line {
|
31
|
-
position: absolute;
|
32
|
-
height: 1px;
|
33
|
-
background-color: var(--brand-color);
|
34
|
-
display: flex;
|
35
|
-
align-items: center;
|
36
|
-
justify-content: space-between;
|
37
|
-
width: 100%;
|
9
|
+
.ff-selectedMachines {
|
10
|
+
display: contents;
|
38
11
|
}
|
39
12
|
|
40
|
-
.ff-
|
41
|
-
|
42
|
-
|
43
|
-
background-color: var(--brand-color);
|
44
|
-
border-radius: 50%;
|
45
|
-
margin-right: 5px;
|
13
|
+
.ff-selectedMachines-input {
|
14
|
+
grid-column: 2 / 3;
|
15
|
+
display: grid;
|
46
16
|
}
|
47
17
|
|
48
|
-
.ff-
|
49
|
-
|
50
|
-
|
51
|
-
left: 50%;
|
52
|
-
transform: translateX(-50%);
|
53
|
-
background-color: var(--brand-color);
|
54
|
-
color: var(--tooltip-text-color);
|
55
|
-
padding: 4px;
|
56
|
-
border-radius: 12px;
|
57
|
-
text-align: center;
|
18
|
+
.ff-input-box-container {
|
19
|
+
margin-bottom: 24px;
|
20
|
+
width: 100%;
|
58
21
|
}
|
59
22
|
|
60
|
-
.ff-
|
61
|
-
|
62
|
-
height: 0;
|
63
|
-
border-top: 4px solid transparent;
|
64
|
-
border-bottom: 4px solid transparent;
|
65
|
-
border-left: 8px solid var(--brand-color);
|
66
|
-
margin-left: 84px;
|
67
|
-
bottom: -4px;
|
23
|
+
.ff-machine-instance-row {
|
24
|
+
display: contents;
|
68
25
|
}
|
69
26
|
|
70
|
-
|
27
|
+
.ff-selectedMachines-connecting-line {
|
28
|
+
grid-column: 3 / 4;
|
71
29
|
position: relative;
|
72
|
-
margin-left: 20px;
|
73
|
-
}
|
74
|
-
.ff-vertical-line {
|
75
|
-
position: absolute;
|
76
|
-
left: 22px;
|
77
|
-
top: 0;
|
78
|
-
width: 1px;
|
79
|
-
height: auto;
|
80
|
-
background-color: var(--brand-color);
|
81
|
-
}
|
82
|
-
}
|
83
30
|
|
84
|
-
|
85
|
-
|
31
|
+
.ff-line {
|
32
|
+
position: absolute;
|
33
|
+
height: 1px;
|
34
|
+
background-color: var(--brand-color);
|
35
|
+
display: flex;
|
36
|
+
align-items: center;
|
37
|
+
justify-content: space-between;
|
38
|
+
width: 100%;
|
39
|
+
}
|
86
40
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
41
|
+
.ff-left-icon {
|
42
|
+
height: 8px;
|
43
|
+
width: 8px;
|
44
|
+
background-color: var(--brand-color);
|
45
|
+
border-radius: 50%;
|
46
|
+
margin-right: 5px;
|
47
|
+
}
|
91
48
|
|
92
|
-
|
93
|
-
|
94
|
-
|
49
|
+
.ff-selectedMachines-connecting-line-text {
|
50
|
+
position: absolute;
|
51
|
+
top: -10px;
|
52
|
+
left: 50%;
|
53
|
+
transform: translateX(-50%);
|
54
|
+
background-color: var(--brand-color);
|
55
|
+
color: var(--tooltip-text-color);
|
56
|
+
padding: 4px;
|
57
|
+
border-radius: 12px;
|
58
|
+
text-align: center;
|
59
|
+
}
|
95
60
|
|
96
|
-
|
97
|
-
|
98
|
-
|
61
|
+
.ff-right-icon {
|
62
|
+
width: 0;
|
63
|
+
height: 0;
|
64
|
+
border-top: 4px solid transparent;
|
65
|
+
border-bottom: 4px solid transparent;
|
66
|
+
border-left: 8px solid var(--brand-color);
|
67
|
+
margin-left: 84px;
|
68
|
+
bottom: -4px;
|
69
|
+
}
|
99
70
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
71
|
+
&.ff-second-line {
|
72
|
+
position: relative;
|
73
|
+
margin-left: 20px;
|
74
|
+
}
|
75
|
+
.ff-vertical-line {
|
76
|
+
position: absolute;
|
77
|
+
left: 24px;
|
78
|
+
top: 0;
|
79
|
+
width: 1px;
|
80
|
+
height: auto;
|
81
|
+
background-color: var(--brand-color);
|
82
|
+
}
|
83
|
+
}
|
106
84
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
padding: 4px;
|
118
|
-
border-radius: 12px;
|
119
|
-
text-align: center;
|
120
|
-
}
|
85
|
+
.ff-machine-instance {
|
86
|
+
grid-column: 4 / 5;
|
87
|
+
}
|
88
|
+
.ff-machine-env-button {
|
89
|
+
padding: 4px 0;
|
90
|
+
margin-bottom: 16px;
|
91
|
+
}
|
92
|
+
.ff-selectedMachines-connecting-line {
|
93
|
+
margin-top: 16px;
|
94
|
+
}
|
121
95
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
}
|
96
|
+
.ff-selectedMachines-connecting-line.ff-no-instance-line {
|
97
|
+
margin-top: 16px;
|
98
|
+
}
|
126
99
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
width:
|
100
|
+
.ff-selectedMachines-connecting-line.ff-no-instance-line .ff-line {
|
101
|
+
width: 100%;
|
102
|
+
background-color: var(--brand-color);
|
103
|
+
height: 1px;
|
104
|
+
position: relative;
|
105
|
+
}
|
106
|
+
|
107
|
+
.ff-run-level-execution-dataset {
|
108
|
+
height: 66px;
|
109
|
+
margin-bottom: 8px;
|
110
|
+
border-radius: 4px;
|
111
|
+
margin-bottom: 16px;
|
112
|
+
position: relative;
|
113
|
+
|
114
|
+
.ff-curved-connector {
|
115
|
+
position: absolute;
|
116
|
+
left: -70px;
|
117
|
+
transform: translateX(-50%);
|
118
|
+
width: 40px;
|
146
119
|
height: 0;
|
147
|
-
border: 1px dashed var(--brand-color);
|
148
|
-
border-top: none;
|
149
|
-
border-right: none;
|
150
|
-
border-bottom-left-radius: 8px;
|
151
|
-
display: flex;
|
152
|
-
flex-direction: column-reverse;
|
153
120
|
|
154
|
-
.ff-curve
|
155
|
-
|
121
|
+
.ff-curve {
|
122
|
+
position: relative;
|
123
|
+
width: 80px;
|
156
124
|
height: 0;
|
157
|
-
border
|
158
|
-
border-
|
159
|
-
border-
|
160
|
-
|
161
|
-
|
162
|
-
|
125
|
+
border: 1px dashed var(--brand-color);
|
126
|
+
border-top: none;
|
127
|
+
border-right: none;
|
128
|
+
border-bottom-left-radius: 8px;
|
129
|
+
display: flex;
|
130
|
+
flex-direction: column-reverse;
|
131
|
+
|
132
|
+
.ff-curve-right-icon {
|
133
|
+
width: 0;
|
134
|
+
height: 0;
|
135
|
+
border-top: 4px solid transparent;
|
136
|
+
border-bottom: 4px solid transparent;
|
137
|
+
border-left: 8px solid var(--brand-color);
|
138
|
+
margin-left: 81px;
|
139
|
+
position: absolute;
|
140
|
+
bottom: -4px;
|
141
|
+
}
|
142
|
+
|
143
|
+
.ff-selectedMachines-connecting-line-text {
|
144
|
+
position: absolute;
|
145
|
+
left: 50%;
|
146
|
+
top: 75px;
|
147
|
+
transform: translateX(-50%);
|
148
|
+
background-color: var(--brand-color);
|
149
|
+
color: var(--tooltip-text-color);
|
150
|
+
font-weight: 400;
|
151
|
+
font-size: 8px;
|
152
|
+
padding: 4px;
|
153
|
+
border-radius: 12px;
|
154
|
+
text-align: center;
|
155
|
+
width: 44px;
|
156
|
+
}
|
163
157
|
}
|
164
158
|
|
165
|
-
.ff-
|
166
|
-
|
167
|
-
|
168
|
-
top: 85px;
|
169
|
-
transform: translateX(-50%);
|
170
|
-
background-color: var(--brand-color);
|
171
|
-
color: var(--tooltip-text-color);
|
172
|
-
font-weight: 400;
|
173
|
-
font-size: 8px;
|
174
|
-
padding: 4px;
|
175
|
-
border-radius: 12px;
|
176
|
-
text-align: center;
|
177
|
-
width: 44px;
|
159
|
+
.ff-connector-0 {
|
160
|
+
border: none;
|
161
|
+
bottom: 3px;
|
178
162
|
}
|
179
|
-
}
|
180
|
-
|
181
|
-
.ff-connector-0 {
|
182
|
-
bottom: 8px;
|
183
|
-
border: none;
|
184
|
-
}
|
185
163
|
|
186
|
-
|
187
|
-
|
164
|
+
.ff-curve-right-icon-0 {
|
165
|
+
display: none;
|
166
|
+
}
|
188
167
|
}
|
189
168
|
}
|
190
|
-
}
|
191
|
-
|
192
|
-
.ff-select-machine-input {
|
193
|
-
grid-column: 2 / 3;
|
194
169
|
|
195
|
-
input {
|
196
|
-
|
197
|
-
height: 32px;
|
170
|
+
.ff-select-machine-input {
|
171
|
+
grid-column: 2 / 3;
|
198
172
|
}
|
199
|
-
}
|
200
173
|
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
174
|
+
.ff-grid-item.ff-dynamic-item {
|
175
|
+
grid-column: 1;
|
176
|
+
display: flex;
|
177
|
+
align-items: center;
|
178
|
+
justify-content: center;
|
179
|
+
position: relative;
|
180
|
+
place-self: first baseline;
|
181
|
+
top: 1px;
|
182
|
+
left: 20px;
|
183
|
+
}
|
211
184
|
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
display: flex;
|
220
|
-
justify-content: center;
|
221
|
-
align-items: center;
|
222
|
-
padding: 4px;
|
223
|
-
|
224
|
-
.ff-script-count-box {
|
185
|
+
.ff-script-count-container {
|
186
|
+
grid-column: 1;
|
187
|
+
align-self: center;
|
188
|
+
background-color: var(--brand-color);
|
189
|
+
color: var(--tooltip-text-color);
|
190
|
+
text-align: center;
|
191
|
+
border-radius: 4px;
|
225
192
|
display: flex;
|
226
|
-
flex-direction: column;
|
227
193
|
justify-content: center;
|
228
194
|
align-items: center;
|
229
|
-
|
230
|
-
|
195
|
+
padding: 4px;
|
196
|
+
|
197
|
+
.ff-script-count-box {
|
198
|
+
display: flex;
|
199
|
+
flex-direction: column;
|
200
|
+
justify-content: center;
|
201
|
+
align-items: center;
|
202
|
+
width: 100%;
|
203
|
+
height: 100%;
|
204
|
+
}
|
231
205
|
}
|
232
206
|
}
|
233
207
|
}
|
208
|
+
// Styles for stories
|
209
|
+
.ff-parent-node-container {
|
210
|
+
border: 1px solid green;
|
211
|
+
height: 30px;
|
212
|
+
border-radius: 10px;
|
213
|
+
padding: 2px;
|
214
|
+
}
|
215
|
+
.ff-child-node-container {
|
216
|
+
border: 1px solid red;
|
217
|
+
height: 40px;
|
218
|
+
width: 300px;
|
219
|
+
border-radius: 10px;
|
220
|
+
padding: 8px;
|
221
|
+
}
|
@@ -1,6 +1,9 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
2
3
|
import ConnectingBranch from './ConnectingBranch';
|
3
4
|
import machineData from './data';
|
5
|
+
import Button from '../Button/Button';
|
6
|
+
|
4
7
|
const meta: Meta<typeof ConnectingBranch> = {
|
5
8
|
title: 'Components/ConnectingBranch',
|
6
9
|
component: ConnectingBranch,
|
@@ -14,8 +17,37 @@ export default meta;
|
|
14
17
|
|
15
18
|
type Story = StoryObj<typeof ConnectingBranch>;
|
16
19
|
|
20
|
+
const getChildNodeComponent = (isButton: boolean) => {
|
21
|
+
if (isButton) {
|
22
|
+
return (
|
23
|
+
<div>
|
24
|
+
{' '}
|
25
|
+
<Button variant="primary" label="Add execution Env" />
|
26
|
+
</div>
|
27
|
+
);
|
28
|
+
} else {
|
29
|
+
return (
|
30
|
+
<div className="ff-child-node-container"> Execution Env details</div>
|
31
|
+
);
|
32
|
+
}
|
33
|
+
};
|
34
|
+
|
35
|
+
const getParentNodeComponentActionItems = () => {
|
36
|
+
return <div> Machine Action Items</div>;
|
37
|
+
};
|
38
|
+
|
39
|
+
const getParentNodeComponent = (isMultiSelect: boolean) => (
|
40
|
+
<div className="ff-parent-node-container">
|
41
|
+
{' '}
|
42
|
+
{isMultiSelect ? 'MultiSelect' : 'Select'} DropDown
|
43
|
+
</div>
|
44
|
+
);
|
45
|
+
|
17
46
|
export const Default: Story = {
|
18
47
|
args: {
|
19
|
-
machineData,
|
48
|
+
data: machineData,
|
49
|
+
getParentNodeComponent,
|
50
|
+
getParentNodeComponentActionItems,
|
51
|
+
getChildNodeComponent,
|
20
52
|
},
|
21
53
|
};
|