@itilite/iui-user-management 0.0.6 → 0.0.7

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.
@@ -1,4 +1,4 @@
1
- import { IUIAsyncSelect, IUIBox, IUILabel, IUIFileUpload, IUICheckBox, IUIPhone, IUISelect, IUIDatePicker, IUIInput, IUIDivider, IUIGrid, IUITypography, IUIRadio, IUIButton, IUIModal, IUIAccordion, IUIAccordionSummary, IUIAccordionDetails, IUIIconButton, IUICard, IUIBackdrop, IUICircularProgress, IUIBreadCrumb, IUIDropzone, IUIStepper, IUIFormControlLabel, IUITable, IUISkeleton, IUIFormGroup, IUIDropdownButton } from '@itilite/iuistyles';
1
+ import { IUIAsyncSelect, IUIBox, IUILabel, IUIFileUpload, IUICheckboxButton, IUIPhone, IUISelect, IUIDatePicker, IUIInput, IUIDivider, IUIGrid, IUITypography, IUIRadio, IUIButton, IUIModal, IUIAccordion, IUIAccordionSummary, IUIAccordionDetails, IUIIconButton, IUICard, IUIBackdrop, IUICircularProgress, IUIBreadCrumb, IUIDropzone, IUIStepper, IUIFormControlLabel, IUICheckBox, IUITable, IUISkeleton, IUIFormGroup, IUIDropdownButton } from '@itilite/iuistyles';
2
2
  import React, { useState, useEffect, Fragment as Fragment$1 } from 'react';
3
3
  import { configs, services, utilUrls } from '@itilite/utils';
4
4
  import moment from 'moment';
@@ -1179,7 +1179,7 @@ function GetInputType(_ref) {
1179
1179
  }));
1180
1180
 
1181
1181
  case 'checkbox':
1182
- return /*#__PURE__*/React.createElement(IUICheckBox, {
1182
+ return /*#__PURE__*/React.createElement(IUICheckboxButton, {
1183
1183
  label: _p.label,
1184
1184
  isCheckbox: true,
1185
1185
  customHandler: customHandler,
@@ -2896,12 +2896,12 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
2896
2896
  }), !isProfile && fieldsInfo.length > 0 && /*#__PURE__*/React.createElement(IUIButton, {
2897
2897
  buttonText: "Edit approver labels",
2898
2898
  type: "text",
2899
- iconComponent: /*#__PURE__*/React.createElement(PencilIcon, {
2899
+ startIcon: /*#__PURE__*/React.createElement(PencilIcon, {
2900
2900
  width: "13.59",
2901
2901
  height: "13.59",
2902
2902
  color: "#EC5D25"
2903
2903
  }),
2904
- onClickHandler: openEditAproverModal
2904
+ onClick: openEditAproverModal
2905
2905
  })), /*#__PURE__*/React.createElement(IUIGrid, {
2906
2906
  item: true,
2907
2907
  sm: 12,
@@ -2946,12 +2946,12 @@ var TravelExpenseFields = function TravelExpenseFields(props) {
2946
2946
  }, /*#__PURE__*/React.createElement(IUIButton, {
2947
2947
  buttonText: fieldsInfo.length ? 'Add another approver' : 'Add an approver',
2948
2948
  type: "text",
2949
- iconComponent: /*#__PURE__*/React.createElement(AddIcon, {
2949
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
2950
2950
  width: "10",
2951
2951
  height: "10",
2952
2952
  color: "#EC5D25"
2953
2953
  }),
2954
- onClickHandler: addFields
2954
+ onClick: addFields
2955
2955
  })) : null, type === 'travel' && /*#__PURE__*/React.createElement(React.Fragment, null, fieldsInfo.length || !isProfile ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIGrid, {
2956
2956
  item: true,
2957
2957
  sm: 6,
@@ -3234,13 +3234,13 @@ var CustomFields = function CustomFields(_ref) {
3234
3234
  }, /*#__PURE__*/React.createElement(IUIButton, {
3235
3235
  buttonText: "Add custom field",
3236
3236
  type: "text",
3237
- iconComponent: /*#__PURE__*/React.createElement(AddIcon, {
3237
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
3238
3238
  width: "10",
3239
3239
  height: "10",
3240
3240
  color: "#EC5D25"
3241
3241
  }),
3242
3242
  className: styles.paddingTop,
3243
- onClickHandler: openCustomFieldModal
3243
+ onClick: openCustomFieldModal
3244
3244
  }))), customFields.length > 0 && customFields.map(function (p, i) {
3245
3245
  if (i >= maxCustomAttributes) {
3246
3246
  return null;
@@ -3268,13 +3268,13 @@ var CustomFields = function CustomFields(_ref) {
3268
3268
  }, /*#__PURE__*/React.createElement(IUIButton, {
3269
3269
  buttonText: "Add custom field",
3270
3270
  type: "text",
3271
- iconComponent: /*#__PURE__*/React.createElement(AddIcon, {
3271
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
3272
3272
  width: "10",
3273
3273
  height: "10",
3274
3274
  color: "#EC5D25"
3275
3275
  }),
3276
3276
  className: styles.paddingTop,
3277
- onClickHandler: openCustomFieldModal
3277
+ onClick: openCustomFieldModal
3278
3278
  }))))), /*#__PURE__*/React.createElement(AddCustomFieldModal, {
3279
3279
  isOpenModal: isOpenModal,
3280
3280
  closeModalHandler: function closeModalHandler() {
@@ -4237,25 +4237,25 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
4237
4237
  }, /*#__PURE__*/React.createElement(IUIButton, {
4238
4238
  buttonText: "Add airline",
4239
4239
  type: "text",
4240
- iconComponent: /*#__PURE__*/React.createElement(AddIcon, {
4240
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
4241
4241
  width: "10",
4242
4242
  height: "10",
4243
4243
  color: "#EC5D25"
4244
4244
  }),
4245
4245
  className: styles.paddingTop,
4246
- onClickHandler: function onClickHandler(e) {
4246
+ onClick: function onClick(e) {
4247
4247
  return addMemInfoInput('flight');
4248
4248
  }
4249
4249
  }), /*#__PURE__*/React.createElement(IUIButton, {
4250
4250
  buttonText: "Add hotel",
4251
4251
  type: "text",
4252
- iconComponent: /*#__PURE__*/React.createElement(AddIcon, {
4252
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
4253
4253
  width: "10",
4254
4254
  height: "10",
4255
4255
  color: "#EC5D25"
4256
4256
  }),
4257
4257
  className: styles.paddingTop,
4258
- onClickHandler: function onClickHandler(e) {
4258
+ onClick: function onClick(e) {
4259
4259
  return addMemInfoInput('hotel');
4260
4260
  }
4261
4261
  }))), membershipInfoInput.length > 0 && membershipInfoInput.map(function (val, index) {
@@ -4318,25 +4318,25 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
4318
4318
  }, /*#__PURE__*/React.createElement(IUIButton, {
4319
4319
  buttonText: "Add airline",
4320
4320
  type: "text",
4321
- iconComponent: /*#__PURE__*/React.createElement(AddIcon, {
4321
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
4322
4322
  width: "10",
4323
4323
  height: "10",
4324
4324
  color: "#EC5D25"
4325
4325
  }),
4326
4326
  className: styles.paddingTop,
4327
- onClickHandler: function onClickHandler(e) {
4327
+ onClick: function onClick(e) {
4328
4328
  return addMemInfoInput('flight');
4329
4329
  }
4330
4330
  }), /*#__PURE__*/React.createElement(IUIButton, {
4331
4331
  buttonText: "Add hotel",
4332
4332
  type: "text",
4333
- iconComponent: /*#__PURE__*/React.createElement(AddIcon, {
4333
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
4334
4334
  width: "10",
4335
4335
  height: "10",
4336
4336
  color: "#EC5D25"
4337
4337
  }),
4338
4338
  className: styles.paddingTop,
4339
- onClickHandler: function onClickHandler(e) {
4339
+ onClick: function onClick(e) {
4340
4340
  return addMemInfoInput('hotel');
4341
4341
  }
4342
4342
  })))))), /*#__PURE__*/React.createElement(IUIDivider, {
@@ -4425,7 +4425,7 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
4425
4425
  }))))));
4426
4426
  };
4427
4427
 
4428
- var styles$3 = {"root":"_b_muK","minWidth":"_3OQXs","bullet":"_1Q5vL","pos":"_6wGWA","cardHeader":"_SWCfJ"};
4428
+ var styles$3 = {"root":"_b_muK","minWidth":"_3OQXs","bullet":"_1Q5vL","pos":"_6wGWA","cardHeader":"_SWCfJ","pageHeader":"_2ZeWp","buttonHover":"_2Iuy1","cardHeaderBackground":"_3NJWF"};
4429
4429
 
4430
4430
  var VerificationError = function VerificationError(_ref) {
4431
4431
  var config = _ref.config,
@@ -4435,8 +4435,11 @@ var VerificationError = function VerificationError(_ref) {
4435
4435
  errMsg = _ref$errMsg === void 0 ? "You don't have valid role or Permission to access this page" : _ref$errMsg;
4436
4436
  var history = useHistory();
4437
4437
  return /*#__PURE__*/React.createElement(IUIBox, {
4438
- component: "div"
4438
+ component: "div",
4439
+ className: styles$3.pageHeader
4439
4440
  }, /*#__PURE__*/React.createElement(IUICard, {
4441
+ headerComponentTitle: title,
4442
+ cardHeaderClassName: styles$3.cardHeaderBackground,
4440
4443
  headerComponent: /*#__PURE__*/React.createElement(IUITypography, {
4441
4444
  gutterBottom: true,
4442
4445
  variant: "h4",
@@ -4444,11 +4447,13 @@ var VerificationError = function VerificationError(_ref) {
4444
4447
  }, title),
4445
4448
  description: errMsg,
4446
4449
  actionComponent: /*#__PURE__*/React.createElement(IUIButton, {
4450
+ className: styles$3.buttonHover,
4451
+ buttonText: "Back to Homepage",
4447
4452
  size: "small",
4448
4453
  onClick: function onClick() {
4449
4454
  return history.push(config.routes.fallbackUrl);
4450
4455
  }
4451
- }, "Back to Homepage")
4456
+ })
4452
4457
  }));
4453
4458
  };
4454
4459
 
@@ -5888,14 +5893,14 @@ var UserAddEdit = function UserAddEdit(props) {
5888
5893
  }, /*#__PURE__*/React.createElement(IUIButton, {
5889
5894
  buttonText: "Cancel",
5890
5895
  type: "outlined",
5891
- onClickHandler: handleCancelNavigation
5896
+ onClick: handleCancelNavigation
5892
5897
  })), /*#__PURE__*/React.createElement(IUIBox, {
5893
5898
  component: "div",
5894
5899
  className: "pageHeader--button-single button-right"
5895
5900
  }, /*#__PURE__*/React.createElement(IUIButton, {
5896
5901
  buttonText: "Save",
5897
5902
  type: "contained",
5898
- onClickHandler: formSubmitHandler,
5903
+ onClick: formSubmitHandler,
5899
5904
  disabled: isPageLoading || productAccess.travel === false && productAccess.expense === false || !!doesFormHasError()
5900
5905
  }))))), /*#__PURE__*/React.createElement(IUIBox, {
5901
5906
  component: "div",
@@ -6583,7 +6588,7 @@ var BulkUploadModal = function BulkUploadModal(props) {
6583
6588
  }, "Use this template with predefined columns and add users to your team")), /*#__PURE__*/React.createElement(IUIBox, null, /*#__PURE__*/React.createElement(IUIButton, {
6584
6589
  type: "text",
6585
6590
  buttonText: "Download template",
6586
- onClickHandler: downloadTemplate,
6591
+ onClick: downloadTemplate,
6587
6592
  isLink: true
6588
6593
  })))), /*#__PURE__*/React.createElement(IUIDivider, {
6589
6594
  className: clsx(styles$5.dividerColor, styles$5.w100)
@@ -7102,13 +7107,13 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
7102
7107
  }, /*#__PURE__*/React.createElement(IUIButton, {
7103
7108
  buttonText: "Download invalid records",
7104
7109
  type: "text",
7105
- onClickHandler: function onClickHandler() {
7110
+ onClick: function onClick() {
7106
7111
  return handleDownloadRecords('failure');
7107
7112
  }
7108
7113
  }), /*#__PURE__*/React.createElement(IUIButton, {
7109
7114
  buttonText: "Upload again",
7110
7115
  type: "text",
7111
- onClickHandler: importUserHandler
7116
+ onClick: importUserHandler
7112
7117
  }))), (+userBulkImportInfo.success > 0 || +userBulkImportInfo.exist_users > 0) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIDivider, {
7113
7118
  className: styles$4.divider
7114
7119
  }), /*#__PURE__*/React.createElement(IUIBox, null, /*#__PURE__*/React.createElement(IUITypography, {
@@ -7147,7 +7152,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
7147
7152
  }, /*#__PURE__*/React.createElement(IUIButton, {
7148
7153
  buttonText: importStatus !== 1 ? 'Import ' + handleImportNumbers() : 'Importing ' + handleImportNumbers(),
7149
7154
  type: "contained",
7150
- onClickHandler: handleImportUploadRecords,
7155
+ onClick: handleImportUploadRecords,
7151
7156
  disabled: importStatus === 1
7152
7157
  }))))), importStatus === 3 && /*#__PURE__*/React.createElement(IUIBox, {
7153
7158
  className: styles$4.completedContainer
@@ -7164,7 +7169,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
7164
7169
  }, userBulkImportInfo.total_records, /*#__PURE__*/React.createElement("span", null, ' ', +userBulkImportInfo.total_records === 1 ? 'total record' : 'total records', ' ')), /*#__PURE__*/React.createElement(IUIButton, {
7165
7170
  buttonText: "Download records",
7166
7171
  type: "text",
7167
- onClickHandler: function onClickHandler() {
7172
+ onClick: function onClick() {
7168
7173
  return handleDownloadRecords('total');
7169
7174
  }
7170
7175
  })), /*#__PURE__*/React.createElement(IUIDivider, null), +userBulkImportInfo.success > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIBox, {
@@ -7176,7 +7181,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
7176
7181
  }, userBulkImportInfo.success, ' ', /*#__PURE__*/React.createElement("span", null, ' ', +userBulkImportInfo.success === 1 ? 'new user added ' : 'new users added ', ' ')), /*#__PURE__*/React.createElement(IUIButton, {
7177
7182
  buttonText: "Download records",
7178
7183
  type: "text",
7179
- onClickHandler: function onClickHandler() {
7184
+ onClick: function onClick() {
7180
7185
  return handleDownloadRecords('success');
7181
7186
  }
7182
7187
  })), /*#__PURE__*/React.createElement(IUIDivider, null)), +userBulkImportInfo.exist_users > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIBox, {
@@ -7188,7 +7193,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
7188
7193
  }, userBulkImportInfo.exist_users, ' ', /*#__PURE__*/React.createElement("span", null, ' ', +userBulkImportInfo.exist_users === 1 ? 'existing user updated' : 'existing users updated', ' ')), /*#__PURE__*/React.createElement(IUIButton, {
7189
7194
  buttonText: "Download records",
7190
7195
  type: "text",
7191
- onClickHandler: function onClickHandler() {
7196
+ onClick: function onClick() {
7192
7197
  return handleDownloadRecords('exist');
7193
7198
  }
7194
7199
  })), /*#__PURE__*/React.createElement(IUIDivider, null)), +userBulkImportInfo.failure > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IUIBox, {
@@ -7200,7 +7205,7 @@ var UserBulkUpload = function UserBulkUpload(_ref) {
7200
7205
  }, userBulkImportInfo.failure, ' ', /*#__PURE__*/React.createElement("span", null, ' ', +userBulkImportInfo.failure === 1 ? 'invalid record' : 'invalid records', ' ')), /*#__PURE__*/React.createElement(IUIButton, {
7201
7206
  buttonText: "Download records",
7202
7207
  type: "text",
7203
- onClickHandler: function onClickHandler() {
7208
+ onClick: function onClick() {
7204
7209
  return handleDownloadRecords('failure');
7205
7210
  }
7206
7211
  })), /*#__PURE__*/React.createElement(IUIDivider, null))))), /*#__PURE__*/React.createElement(IUIGrid, {
@@ -7792,8 +7797,8 @@ var StickyHeadTable = function StickyHeadTable(props) {
7792
7797
  _props$handleSelectAl = props.handleSelectAllClick,
7793
7798
  handleSelectAllClick = _props$handleSelectAl === void 0 ? function () {} : _props$handleSelectAl,
7794
7799
  selected = props.selected,
7795
- _props$handleSingleCh = props.handleSingleCheckIUIBoxClick,
7796
- handleSingleCheckIUIBoxClick = _props$handleSingleCh === void 0 ? function () {} : _props$handleSingleCh,
7800
+ _props$handleSingleCh = props.handleSingleCheckBoxClick,
7801
+ handleSingleCheckBoxClick = _props$handleSingleCh === void 0 ? function () {} : _props$handleSingleCh,
7797
7802
  orderBy = props.orderBy,
7798
7803
  order = props.order,
7799
7804
  _props$onRequestSort = props.onRequestSort,
@@ -7921,7 +7926,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
7921
7926
  cell: function cell(row) {
7922
7927
  return /*#__PURE__*/React.createElement(IUIButton, {
7923
7928
  buttonText: "Edit",
7924
- onClickHandler: function onClickHandler() {
7929
+ onClick: function onClick() {
7925
7930
  return onEditHandler(row.id);
7926
7931
  }
7927
7932
  });
@@ -7942,7 +7947,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
7942
7947
  rowsPerPage: rowsPerPage,
7943
7948
  handleSelectAllClick: handleSelectAllClick,
7944
7949
  selected: selected,
7945
- handleSingleCheckIUIBoxClick: handleSingleCheckIUIBoxClick,
7950
+ handleSingleCheckBoxClick: handleSingleCheckBoxClick,
7946
7951
  orderBy: orderBy,
7947
7952
  order: order,
7948
7953
  searchHide: false,
@@ -7950,7 +7955,8 @@ var StickyHeadTable = function StickyHeadTable(props) {
7950
7955
  onRequestSort: onRequestSort,
7951
7956
  onSearchHandler: onSearchHandler,
7952
7957
  isDataFetching: isDataFetching,
7953
- disableRowCheckbox: disableRowCheckbox
7958
+ disableRowCheckbox: disableRowCheckbox,
7959
+ searchBoxWidth: "400px"
7954
7960
  });
7955
7961
  };
7956
7962
 
@@ -8105,9 +8111,11 @@ var UserList = function UserList(_ref) {
8105
8111
  setSearchingChangeTemp(!isSearchingChangeTemp);
8106
8112
  };
8107
8113
 
8108
- var handleSingleCheckIUIBoxClick = function handleSingleCheckIUIBoxClick(event, id, page) {
8114
+ var handleSingleCheckBoxClick = function handleSingleCheckBoxClick(event, id, page) {
8109
8115
  var _extends4;
8110
8116
 
8117
+ console.log('test');
8118
+
8111
8119
  var selectedTemp = _extends({}, selected);
8112
8120
 
8113
8121
  if (!(page in selectedTemp)) {
@@ -8310,11 +8318,11 @@ var UserList = function UserList(_ref) {
8310
8318
  }, /*#__PURE__*/React.createElement(IUIButton, {
8311
8319
  buttonText: "Export all users",
8312
8320
  type: "outlined",
8313
- iconComponent: /*#__PURE__*/React.createElement(ExportIcon, {
8321
+ startIcon: /*#__PURE__*/React.createElement(ExportIcon, {
8314
8322
  width: "12",
8315
8323
  height: "12"
8316
8324
  }),
8317
- onClickHandler: handleExportUsers
8325
+ onClick: handleExportUsers
8318
8326
  })), /*#__PURE__*/React.createElement(IUIBox, {
8319
8327
  component: "div",
8320
8328
  className: clsx(styles$5.buttonSingle, styles$5.buttonLeft)
@@ -8328,12 +8336,12 @@ var UserList = function UserList(_ref) {
8328
8336
  }, /*#__PURE__*/React.createElement(IUIButton, {
8329
8337
  buttonText: "Add user",
8330
8338
  type: "contained",
8331
- iconComponent: /*#__PURE__*/React.createElement(AddIcon, {
8339
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
8332
8340
  width: "9",
8333
8341
  height: "9",
8334
8342
  color: "white"
8335
8343
  }),
8336
- onClickHandler: handleAddPageNavigation
8344
+ onClick: handleAddPageNavigation
8337
8345
  })))), /*#__PURE__*/React.createElement(IUIBox, {
8338
8346
  component: "div",
8339
8347
  display: "flex",
@@ -8350,7 +8358,7 @@ var UserList = function UserList(_ref) {
8350
8358
  handleActiveUser: handleActiveUser,
8351
8359
  handleSelectAllClick: handleSelectAllClick,
8352
8360
  selected: selected,
8353
- handleSingleCheckIUIBoxClick: handleSingleCheckIUIBoxClick,
8361
+ handleSingleCheckBoxClick: handleSingleCheckBoxClick,
8354
8362
  orderBy: orderBy,
8355
8363
  order: order,
8356
8364
  onRequestSort: onRequestSort,
@@ -8414,40 +8422,53 @@ function Header(props) {
8414
8422
  component: "div",
8415
8423
  display: "flex",
8416
8424
  justifyContent: "space-between",
8417
- alignItems: "center"
8425
+ alignItems: "center",
8426
+ flexWrap: "wrap",
8427
+ style: {
8428
+ gap: '1rem'
8429
+ }
8430
+ }, /*#__PURE__*/React.createElement(IUIBox, {
8431
+ component: "div",
8432
+ display: "flex",
8433
+ flexDirection: "column",
8434
+ style: {
8435
+ gap: '0.5rem'
8436
+ }
8418
8437
  }, /*#__PURE__*/React.createElement(IUIBox, {
8419
- component: "div"
8438
+ component: "div",
8439
+ className: styles$5.headingWrapper
8420
8440
  }, /*#__PURE__*/React.createElement(IUITypography, {
8421
8441
  variant: "h3",
8422
8442
  className: clsx(styles$5.heading, styles$5.headingLarge)
8423
8443
  }, isILadmin === 1 && companyName + " - ", " ", headingName)), /*#__PURE__*/React.createElement(IUIBox, {
8444
+ component: "div",
8445
+ className: styles$5.headingWrapper
8446
+ }, /*#__PURE__*/React.createElement(IUITypography, {
8447
+ variant: "body2",
8448
+ className: clsx(styles$5.description)
8449
+ }, subHeading))), /*#__PURE__*/React.createElement(IUIBox, {
8424
8450
  component: "div",
8425
8451
  className: styles$5.buttonWrapper,
8426
8452
  display: "flex",
8427
8453
  justifyContent: "space-between",
8428
- alignItems: "center"
8454
+ alignItems: "center",
8455
+ alignSelf: "flex-start"
8429
8456
  }, /*#__PURE__*/React.createElement(IUIBox, {
8430
8457
  component: "div",
8431
8458
  className: "pageHeader--button-single button-right"
8432
8459
  }, /*#__PURE__*/React.createElement(IUIButton, {
8433
8460
  type: "contained",
8434
8461
  buttonText: "+ Add " + name.toLowerCase(),
8435
- onClickHandler: HeaderButton
8462
+ onClick: HeaderButton
8436
8463
  })))), /*#__PURE__*/React.createElement(IUIBox, {
8437
8464
  component: "div",
8438
8465
  display: "flex",
8439
8466
  justifyContent: "space-between",
8440
8467
  alignItems: "center"
8441
- }), /*#__PURE__*/React.createElement(IUIBox, {
8442
- component: "div",
8443
- className: styles$5.headingWrapper
8444
- }, /*#__PURE__*/React.createElement(IUITypography, {
8445
- variant: "body2",
8446
- className: clsx(styles$5.description)
8447
- }, subHeading))));
8468
+ })));
8448
8469
  }
8449
8470
 
8450
- var styles$7 = {"sidebar__container":"_1EFxC","sidebar__wrapper":"_3Mk3_","sidebar__navlinks":"_29KVG","sidebar__navlinks-title":"_2Eg7m","MuiListItem-button":"_3yWwI","Mui-selected":"_3Ou88","buttonWidth":"_13tv0","onBoardText":"_HUoW-","iconStyle":"_3k0Fb","iconLayout":"_v3GT2","baseAlert":"_12zY5"};
8471
+ var styles$7 = {"sidebar__container":"_1EFxC","sidebar__wrapper":"_3Mk3_","sidebar__navlinks":"_29KVG","sidebar__navlinks-title":"_2Eg7m","MuiListItem-button":"_3yWwI","Mui-selected":"_3Ou88","buttonWidth":"_13tv0","onBoardText":"_HUoW-","iconStyle":"_3k0Fb","iconLayout":"_v3GT2","baseAlert":"_12zY5","headingWrapper":"_20Qv9","pageHeader":"_36au5","description":"_tULrl","headerText":"_3W_ZV"};
8451
8472
 
8452
8473
  function Listview(_ref) {
8453
8474
  var data = _ref.data,
@@ -8506,19 +8527,19 @@ function Listview(_ref) {
8506
8527
  }, /*#__PURE__*/React.createElement(IUIButton, {
8507
8528
  buttonText: "Edit",
8508
8529
  className: styles$7.buttonWidth,
8509
- onClickHandler: function onClickHandler() {
8530
+ onClick: function onClick() {
8510
8531
  return handleEditDialog(row);
8511
8532
  }
8512
8533
  }), row.no_of_users > 0 ? /*#__PURE__*/React.createElement(IUIButton, {
8513
8534
  buttonText: "Delete",
8514
8535
  className: styles$7.buttonWidth,
8515
- onClickHandler: function onClickHandler() {
8536
+ onClick: function onClick() {
8516
8537
  return handleDeleteDialog(row, true);
8517
8538
  }
8518
8539
  }) : /*#__PURE__*/React.createElement(IUIButton, {
8519
8540
  buttonText: "Delete",
8520
8541
  className: styles$7.buttonWidth,
8521
- onClickHandler: function onClickHandler() {
8542
+ onClick: function onClick() {
8522
8543
  return handleDeleteDialog(row, false);
8523
8544
  }
8524
8545
  }));
@@ -9224,12 +9245,12 @@ var PageHeader = function PageHeader() {
9224
9245
  }, /*#__PURE__*/React.createElement(IUIButton, {
9225
9246
  buttonText: "Add custom field",
9226
9247
  type: "contained",
9227
- iconComponent: /*#__PURE__*/React.createElement(AddIcon, {
9248
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
9228
9249
  width: "9",
9229
9250
  height: "9",
9230
9251
  color: "white"
9231
9252
  }),
9232
- onClickHandler: handleAddCustomField
9253
+ onClick: handleAddCustomField
9233
9254
  })))), /*#__PURE__*/React.createElement(IUIBox, {
9234
9255
  component: "div",
9235
9256
  display: "flex",
@@ -9296,7 +9317,7 @@ function CustomFieldsTable() {
9296
9317
  className: styles$6.actionButtons
9297
9318
  }, /*#__PURE__*/React.createElement(IUIButton, {
9298
9319
  buttonText: "Edit",
9299
- onClickHandler: function onClickHandler() {
9320
+ onClick: function onClick() {
9300
9321
  return handleEdit(row);
9301
9322
  }
9302
9323
  })));