@onehat/ui 0.4.70 → 0.4.71

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 (96) hide show
  1. package/package.json +2 -1
  2. package/src/Components/Accordion/Accordion.js +1 -0
  3. package/src/Components/Blank.js +1 -0
  4. package/src/Components/Buttons/BackButton.js +1 -0
  5. package/src/Components/Buttons/Button.js +5 -4
  6. package/src/Components/Buttons/CartButtonWithBadge.js +1 -0
  7. package/src/Components/Buttons/IconButton.js +9 -8
  8. package/src/Components/Buttons/PlusMinusButton.js +5 -4
  9. package/src/Components/Buttons/SquareButton.js +19 -18
  10. package/src/Components/Container/Container.js +1 -0
  11. package/src/Components/Container/ContainerColumn.js +4 -3
  12. package/src/Components/Container/ScreenContainer.js +13 -13
  13. package/src/Components/Container/Splitter.js +33 -28
  14. package/src/Components/Editor/InlineEditor.js +32 -30
  15. package/src/Components/Fab/DynamicFab.js +14 -13
  16. package/src/Components/Fab/FabWithTooltip.js +1 -0
  17. package/src/Components/Filter/DateRange.js +8 -7
  18. package/src/Components/Filter/NumberRange.js +8 -7
  19. package/src/Components/Form/Field/CKEditor/CKEditor.js +1 -0
  20. package/src/Components/Form/Field/Checkbox/CheckboxGroup.js +1 -0
  21. package/src/Components/Form/Field/Color.js +41 -40
  22. package/src/Components/Form/Field/Combo/Combo.js +173 -172
  23. package/src/Components/Form/Field/Combo/PageSizeCombo.js +1 -0
  24. package/src/Components/Form/Field/Date.js +117 -116
  25. package/src/Components/Form/Field/DisplayField.js +6 -5
  26. package/src/Components/Form/Field/File.js +1 -0
  27. package/src/Components/Form/Field/FormikForm.js +1 -0
  28. package/src/Components/Form/Field/Input.js +15 -14
  29. package/src/Components/Form/Field/Json.js +7 -6
  30. package/src/Components/Form/Field/Number.js +31 -30
  31. package/src/Components/Form/Field/RadioGroup/RadioGroup.js +1 -0
  32. package/src/Components/Form/Field/Select/PageSizeSelect.js +1 -0
  33. package/src/Components/Form/Field/Select/Select.js +9 -8
  34. package/src/Components/Form/Field/Slider.js +15 -14
  35. package/src/Components/Form/Field/Tag/Tag.js +25 -24
  36. package/src/Components/Form/Field/Tag/ValueBox.js +32 -31
  37. package/src/Components/Form/Field/Text.js +9 -8
  38. package/src/Components/Form/Field/TextArea.js +9 -8
  39. package/src/Components/Form/Field/Toggle.js +16 -15
  40. package/src/Components/Form/FieldSet.js +27 -26
  41. package/src/Components/Form/Form.js +104 -103
  42. package/src/Components/Form/Label.js +15 -14
  43. package/src/Components/Grid/Grid.js +46 -45
  44. package/src/Components/Grid/GridHeaderRow.js +42 -40
  45. package/src/Components/Grid/GridRow.js +63 -62
  46. package/src/Components/Grid/HeaderColumnSelectorHandle.js +9 -8
  47. package/src/Components/Grid/HeaderReorderHandle.js +9 -8
  48. package/src/Components/Grid/HeaderResizeHandle.js +9 -8
  49. package/src/Components/Grid/NoRecordsFound.js +4 -3
  50. package/src/Components/Grid/RowDragHandle.js +1 -0
  51. package/src/Components/Grid/RowSelectHandle.js +1 -0
  52. package/src/Components/Hoc/Secondary/withSecondaryEditor.js +1 -1
  53. package/src/Components/Hoc/Secondary/withSecondaryWindowedEditor.js +6 -5
  54. package/src/Components/Hoc/withAlert.js +35 -34
  55. package/src/Components/Hoc/withContextMenu.js +27 -26
  56. package/src/Components/Hoc/withDnd.js +1 -0
  57. package/src/Components/Hoc/withEditor.js +1 -1
  58. package/src/Components/Hoc/withFilters.js +19 -18
  59. package/src/Components/Hoc/withModal.js +7 -6
  60. package/src/Components/Hoc/withToast.js +1 -0
  61. package/src/Components/Hoc/withWindowedEditor.js +6 -5
  62. package/src/Components/Layout/AsyncOperation.js +1 -0
  63. package/src/Components/Layout/CenterBox.js +9 -8
  64. package/src/Components/Layout/Footer.js +11 -10
  65. package/src/Components/Layout/ScreenHeader.js +5 -4
  66. package/src/Components/Layout/TextWithTooltip.js +1 -0
  67. package/src/Components/Messages/ConfirmationMessage.js +6 -5
  68. package/src/Components/Messages/ErrorMessage.js +40 -39
  69. package/src/Components/Messages/Loading.js +1 -0
  70. package/src/Components/Messages/OkMessage.js +11 -10
  71. package/src/Components/Messages/Unauthorized.js +1 -0
  72. package/src/Components/Messages/WaitMessage.js +16 -15
  73. package/src/Components/Panel/AccordionGridPanel.js +1 -0
  74. package/src/Components/Panel/FormPanel.js +1 -0
  75. package/src/Components/Panel/Header.js +59 -58
  76. package/src/Components/Panel/Mask.js +1 -0
  77. package/src/Components/Panel/Panel.js +7 -6
  78. package/src/Components/Picker/Picker.js +1 -0
  79. package/src/Components/Report/Report.js +35 -34
  80. package/src/Components/Screens/Manager.js +1 -0
  81. package/src/Components/Screens/ReportsManager.js +1 -0
  82. package/src/Components/Tab/Tab.js +1 -0
  83. package/src/Components/Tab/TabBar.js +67 -66
  84. package/src/Components/Toolbar/FilterToolbar.js +14 -11
  85. package/src/Components/Toolbar/Pagination.js +26 -25
  86. package/src/Components/Toolbar/PaginationToolbar.js +13 -12
  87. package/src/Components/Toolbar/Toolbar.js +13 -12
  88. package/src/Components/Tooltip/Tooltip.js +1 -0
  89. package/src/Components/Tree/Tree.js +12 -11
  90. package/src/Components/Tree/TreeNode.js +20 -19
  91. package/src/Components/Tree/TreeNodeDragHandle.js +11 -10
  92. package/src/Components/Viewer/MeterTypeText.js +8 -7
  93. package/src/Components/Viewer/TextWithLinks.js +16 -15
  94. package/src/Components/Viewer/Viewer.js +23 -22
  95. package/src/Components/Window/UploadsDownloadsWindow.js +6 -5
  96. package/src/Components/index.js +1 -0
@@ -2,26 +2,27 @@ import {
2
2
  HStack,
3
3
  TextNative,
4
4
  } from '@project-components/Gluestack';
5
+ import clsx from 'clsx';
5
6
  import styles from '../../Constants/Styles.js';
6
7
 
7
8
  export default function Label(props) {
8
- let className = `
9
- Label
10
- items-center
11
- min-w-[120px]
12
- pl-2
13
- `;
9
+ let className = clsx(
10
+ 'Label',
11
+ 'items-center',
12
+ 'min-w-[120px]',
13
+ 'pl-2',
14
+ );
14
15
  if (props.className) {
15
16
  className += ' ' + props.className;
16
17
  }
17
- let textClassName = `
18
- Label-TextNative
19
- inline-block
20
- text-ellipsis
21
- text-base
22
- w-full
23
- ${styles.FORM_LABEL_CLASSNAME}
24
- `;
18
+ let textClassName = clsx(
19
+ 'Label-TextNative',
20
+ 'inline-block',
21
+ 'text-ellipsis',
22
+ 'text-base',
23
+ 'w-full',
24
+ styles.FORM_LABEL_CLASSNAME,
25
+ );
25
26
  if (props._text?.className) {
26
27
  textClassName += ' ' + props._text.className;
27
28
  }
@@ -8,6 +8,7 @@ import {
8
8
  VStack,
9
9
  VStackNative,
10
10
  } from '@project-components/Gluestack';
11
+ import clsx from 'clsx';
11
12
  import {
12
13
  ScrollView,
13
14
  } from 'react-native';
@@ -113,10 +114,10 @@ function GridComponent(props) {
113
114
  defaultHiddenColumns = [],
114
115
  getRowProps = (item) => {
115
116
  return {
116
- className: `
117
- border-bottom-1
118
- border-bottom-grey-500
119
- `,
117
+ className: clsx(
118
+ 'border-bottom-1',
119
+ 'border-bottom-grey-500',
120
+ ),
120
121
  };
121
122
  },
122
123
  flatListProps = {},
@@ -481,12 +482,12 @@ function GridComponent(props) {
481
482
  onContextMenu(item, e, newSelection);
482
483
  }
483
484
  }}
484
- className={`
485
- Pressable
486
- Row
487
- flex-row
488
- grow
489
- `}
485
+ className={clsx(
486
+ 'Pressable',
487
+ 'Row',
488
+ 'flex-row',
489
+ 'grow',
490
+ )}
490
491
  >
491
492
  {({
492
493
  hovered,
@@ -623,21 +624,21 @@ function GridComponent(props) {
623
624
 
624
625
  if (showRowExpander && !isHeaderRow) {
625
626
  const isExpanded = getIsExpanded(index);
626
- let className = `
627
- Grid-rowExpander
628
- w-full
629
- flex-none
630
- `;
627
+ let className = clsx(
628
+ 'Grid-rowExpander',
629
+ 'w-full',
630
+ 'flex-none',
631
+ );
631
632
  if (rowProps?.className) {
632
633
  className += ' ' + rowProps.className;
633
634
  }
634
635
  rowComponent = <VStack className={className}>
635
636
  <HStack
636
- className={`
637
- Grid-rowExpander-HStack
638
- w-full
639
- grow
640
- `}
637
+ className={clsx(
638
+ 'Grid-rowExpander-HStack',
639
+ 'w-full',
640
+ 'grow',
641
+ )}
641
642
  >
642
643
  <ExpandButton
643
644
  {...testProps((Repository ? Repository.schema.name : 'GridRow') + '-expandBtn-' + item?.id)}
@@ -646,10 +647,10 @@ function GridComponent(props) {
646
647
  _icon={{
647
648
  size: 'sm',
648
649
  }}
649
- className={`
650
- Grid-rowExpander-expandBtn
651
- ${styles.GRID_EXPAND_BTN_CLASSNAME}
652
- `}
650
+ className={clsx(
651
+ 'Grid-rowExpander-expandBtn',
652
+ styles.GRID_EXPAND_BTN_CLASSNAME,
653
+ )}
653
654
  tooltip="Expand/Contract Row"
654
655
  />
655
656
  {rowComponent}
@@ -1276,12 +1277,12 @@ function GridComponent(props) {
1276
1277
  if (!hasHeight(props) && !hasWidth(props) && !hasFlex(props)) {
1277
1278
  style.flex = 1;
1278
1279
  }
1279
- let className = `
1280
- Grid-VStackNative
1281
- w-full
1282
- border
1283
- border-grey-300
1284
- `;
1280
+ let className = clsx(
1281
+ 'Grid-VStackNative',
1282
+ 'w-full',
1283
+ 'border',
1284
+ 'border-grey-300',
1285
+ );
1285
1286
  if (props.className) {
1286
1287
  className += props.className;
1287
1288
  }
@@ -1304,14 +1305,14 @@ function GridComponent(props) {
1304
1305
  deselectAll();
1305
1306
  }
1306
1307
  }}
1307
- className={`
1308
- gridContainer
1309
- w-full
1310
- h-full
1311
- flex-1
1312
- min-h-[40px]
1313
- ${gridContainerBorderClassName}
1314
- `}
1308
+ className={clsx(
1309
+ 'gridContainer',
1310
+ 'w-full',
1311
+ 'h-full',
1312
+ 'flex-1',
1313
+ 'min-h-[40px]',
1314
+ gridContainerBorderClassName,
1315
+ )}
1315
1316
  >
1316
1317
  {grid}
1317
1318
  </VStack>
@@ -1324,13 +1325,13 @@ function GridComponent(props) {
1324
1325
  grid = <VStackNative
1325
1326
  {...testProps(self, '-dropTarget')}
1326
1327
  ref={dropTargetRef}
1327
- className={`
1328
- Grid-dropTarget
1329
- h-full
1330
- w-full
1331
- border-[#0ff]
1332
- ${canDrop && isOver ? "border-[4px]" : "border-[0px]"}
1333
- `}
1328
+ className={clsx(
1329
+ 'Grid-dropTarget',
1330
+ 'h-full',
1331
+ 'w-full',
1332
+ 'border-[#0ff]',
1333
+ canDrop && isOver ? 'border-[4px]' : 'border-[0px]',
1334
+ )}
1334
1335
  >{grid}</VStackNative>
1335
1336
  }
1336
1337
  return grid;
@@ -6,6 +6,7 @@ import {
6
6
  Pressable,
7
7
  TextNative,
8
8
  } from '@project-components/Gluestack';
9
+ import clsx from 'clsx';
9
10
  import {
10
11
  SORT_ASCENDING,
11
12
  SORT_DESCENDING,
@@ -309,10 +310,10 @@ export default function GridHeaderRow(props) {
309
310
  isSorter = isSortable && canColumnsSort && sortField === fieldName,
310
311
  isReorderable = canColumnsReorder && configIsReorderable,
311
312
  isResizable = canColumnsResize && configIsResizable,
312
- rowClassName = `
313
- border-r-2
314
- border-r-white
315
- `;
313
+ rowClassName = clsx(
314
+ 'border-r-2',
315
+ 'border-r-white',
316
+ );
316
317
  if (isHidden) {
317
318
  return null;
318
319
  }
@@ -357,16 +358,16 @@ export default function GridHeaderRow(props) {
357
358
  }}
358
359
  onMouseEnter={(e) => onHeaderMouseEnter(e, ix)}
359
360
  onMouseLeave={(e) => onHeaderMouseLeave(e, ix)}
360
- className={`
361
- GridHeaderRow-Pressable
362
- h-full
363
- flex-row
364
- p-0
365
- items-center
366
- justify-center
367
- ${rowClassName}
368
- ${styles.GRID_HEADER_PRESSABLE_CLASSNAME}
369
- `}
361
+ className={clsx(
362
+ 'GridHeaderRow-Pressable',
363
+ 'h-full',
364
+ 'flex-row',
365
+ 'p-0',
366
+ 'items-center',
367
+ 'justify-center',
368
+ rowClassName,
369
+ styles.GRID_HEADER_PRESSABLE_CLASSNAME,
370
+ )}
370
371
  style={rowStyle}
371
372
  >
372
373
  {isReorderable && isOver &&
@@ -395,20 +396,20 @@ export default function GridHeaderRow(props) {
395
396
  <TextNative
396
397
  key="Text"
397
398
  numberOfLines={1}
398
- className={`
399
- GridHeaderRow-TextNative
400
- h-auto
401
- flex-1
402
- items-center
403
- justify-center
404
- leading-tight
405
- text-center
406
- overflow-hidden
407
- text-ellipsis
408
- px-2
409
- py-3
410
- ${styles.GRID_HEADER_CLASSNAME}
411
- `}
399
+ className={clsx(
400
+ 'GridHeaderRow-TextNative',
401
+ 'h-auto',
402
+ 'flex-1',
403
+ 'items-center',
404
+ 'justify-center',
405
+ 'leading-tight',
406
+ 'text-center',
407
+ 'overflow-hidden',
408
+ 'text-ellipsis',
409
+ 'px-2',
410
+ py-3,
411
+ styles.GRID_HEADER_CLASSNAME,
412
+ )}
412
413
  >{header}</TextNative>
413
414
 
414
415
  {isSorter &&
@@ -416,12 +417,13 @@ export default function GridHeaderRow(props) {
416
417
  key="Icon"
417
418
  as={isSortDirectionAsc ? SortUp : SortDown}
418
419
  size={styles.GRID_HEADER_ICON_SIZE}
419
- className={`
420
- GridHeaderRow-Icon
421
- text-center
422
- text-grey-500
423
- ${styles.GRID_HEADER_ICON_CLASSNAME}
424
- `} />}
420
+ className={clsx(
421
+ 'GridHeaderRow-Icon',
422
+ 'text-center',
423
+ 'text-grey-500',
424
+ styles.GRID_HEADER_ICON_CLASSNAME,
425
+ )}
426
+ />}
425
427
 
426
428
  {isOver && UiGlobals.mode === UI_MODE_WEB && // only works for web for now
427
429
  <HeaderColumnSelectorHandle
@@ -488,12 +490,12 @@ export default function GridHeaderRow(props) {
488
490
  style={{
489
491
  scrollbarWidth: 'none',
490
492
  }}
491
- className={`
492
- GridHeaderRow-HStack
493
- w-full
494
- h-[40px]
495
- bg-grey-200
496
- `}
493
+ className={clsx(
494
+ 'GridHeaderRow-HStack',
495
+ 'w-full',
496
+ 'h-[40px]',
497
+ 'bg-grey-200',
498
+ )}
497
499
  >
498
500
  {renderHeaders()}
499
501
  </HStack>;
@@ -7,6 +7,7 @@ import {
7
7
  Text,
8
8
  TextNative,
9
9
  } from '@project-components/Gluestack';
10
+ import clsx from 'clsx';
10
11
  import {
11
12
  UI_MODE_WEB,
12
13
  UI_MODE_NATIVE,
@@ -133,16 +134,16 @@ function GridRow(props) {
133
134
  propsToPass = columnProps[key] || {},
134
135
  colStyle = {},
135
136
  whichCursor = showSelectHandle ? 'cursor-text' : 'cursor-pointer'; // when using rowSelectHandle, indicate that the row text is selectable, otherwise indicate that the row itself is selectable
136
- let colClassName = `
137
- GridRow-column
138
- p-1
139
- justify-center
140
- border-r-black-100
141
- block
142
- overflow-auto
143
- ${whichCursor}
144
- ${styles.GRID_ROW_MAX_HEIGHT_EXTRA}
145
- `;
137
+ let colClassName = clsx(
138
+ 'GridRow-column',
139
+ 'p-1',
140
+ 'justify-center',
141
+ 'border-r-black-100',
142
+ 'block',
143
+ 'overflow-auto',
144
+ whichCursor,
145
+ styles.GRID_ROW_MAX_HEIGHT_EXTRA,
146
+ );
146
147
  if (isOnlyOneVisibleColumn) {
147
148
  colClassName = ' w-full';
148
149
  } else {
@@ -248,18 +249,18 @@ function GridRow(props) {
248
249
  if (config.getCellProps) {
249
250
  _.assign(cellProps, config.getCellProps(item));
250
251
  }
251
- let elementClassName = `
252
- GridRow-Element
253
- self-center
254
- text-ellipsis
255
- px-2
256
- py-3
257
- block
258
- overflow-scroll
259
- ${colClassName}
260
- ${styles.GRID_CELL_CLASSNAME}
261
- ${styles.GRID_ROW_MAX_HEIGHT_NORMAL}
262
- `;
252
+ let elementClassName = clsx(
253
+ 'GridRow-Element',
254
+ 'self-center',
255
+ 'text-ellipsis',
256
+ 'px-2',
257
+ 'py-3',
258
+ 'block',
259
+ 'overflow-scroll',
260
+ colClassName,
261
+ styles.GRID_CELL_CLASSNAME,
262
+ styles.GRID_ROW_MAX_HEIGHT_NORMAL,
263
+ );
263
264
  if (config.className) {
264
265
  elementClassName += ' ' + config.className;
265
266
  }
@@ -309,14 +310,14 @@ function GridRow(props) {
309
310
  if (config.getCellProps) {
310
311
  _.assign(elementProps, config.getCellProps(item));
311
312
  }
312
- let textClassName = `
313
- GridRow-TextNative
314
- self-center
315
- overflow-hidden
316
- ${colClassName}
317
- ${styles.GRID_CELL_CLASSNAME}
318
- ${styles.GRID_ROW_MAX_HEIGHT_EXTRA}
319
- `;
313
+ let textClassName = clsx(
314
+ 'GridRow-TextNative',
315
+ 'self-center',
316
+ 'overflow-hidden',
317
+ colClassName,
318
+ styles.GRID_CELL_CLASSNAME,
319
+ styles.GRID_ROW_MAX_HEIGHT_EXTRA,
320
+ );
320
321
  if (config.className) {
321
322
  textClassName += ' ' + config.className;
322
323
  }
@@ -346,15 +347,15 @@ function GridRow(props) {
346
347
 
347
348
  {isPhantom &&
348
349
  <Box
349
- className={`
350
- GridRow-phantom
351
- absolute
352
- h-2
353
- w-2
354
- top-0
355
- left-0
356
- bg-[#f00]
357
- `}
350
+ className={clsx(
351
+ 'GridRow-phantom',
352
+ 'absolute',
353
+ 'h-2',
354
+ 'w-2',
355
+ 'top-0',
356
+ 'left-0',
357
+ 'bg-[#f00]',
358
+ )}
358
359
  />}
359
360
 
360
361
  {renderColumns(item)}
@@ -363,25 +364,25 @@ function GridRow(props) {
363
364
  <Icon
364
365
  as={AngleRight}
365
366
  variant="outline"
366
- className={`
367
- GridRow-Icon
368
- w-30
369
- self-center
370
- mx-3
371
- ${styles.GRID_NAV_COLUMN_COLOR}
372
- `}
367
+ className={clsx(
368
+ 'GridRow-Icon',
369
+ 'w-30',
370
+ 'self-center',
371
+ 'mx-3',
372
+ styles.GRID_NAV_COLUMN_COLOR,
373
+ )}
373
374
  />}
374
375
  </>;
375
376
 
376
377
  if (dragSourceRef) {
377
378
  rowContents = <HStack
378
379
  ref={dragSourceRef}
379
- className={`
380
- GridRow-dragSourceRef
381
- w-full
382
- flex-1
383
- grow-1
384
- `}
380
+ className={clsx(
381
+ 'GridRow-dragSourceRef',
382
+ 'w-full',
383
+ 'flex-1',
384
+ 'grow-1',
385
+ )}
385
386
  style={{
386
387
  backgroundColor: bg,
387
388
  }}
@@ -390,22 +391,22 @@ function GridRow(props) {
390
391
  if (dropTargetRef) {
391
392
  rowContents = <HStack
392
393
  ref={dropTargetRef}
393
- className={`
394
- GridRow-dropTargetRef
395
- w-full
396
- flex-1
397
- grow-1
398
- `}
394
+ className={clsx(
395
+ 'GridRow-dropTargetRef',
396
+ 'w-full',
397
+ 'flex-1',
398
+ 'grow-1',
399
+ )}
399
400
  style={{
400
401
  backgroundColor: bg,
401
402
  }}
402
403
  >{rowContents}</HStack>;
403
404
  }
404
405
 
405
- let rowClassName = `
406
- GridRow-HStackNative
407
- items-center
408
- `;
406
+ let rowClassName = clsx(
407
+ 'GridRow-HStackNative',
408
+ 'items-center',
409
+ );
409
410
  if (isOnlyOneVisibleColumn) {
410
411
  rowClassName += ' w-full';
411
412
  }
@@ -2,6 +2,7 @@ import {
2
2
  Icon,
3
3
  Pressable,
4
4
  } from '@project-components/Gluestack';
5
+ import clsx from 'clsx';
5
6
  import Gear from '../Icons/Gear.js';
6
7
  import _ from 'lodash';
7
8
 
@@ -13,14 +14,14 @@ export default function HeaderColumnSelectorHandle(props) {
13
14
  _hover={{ bg: 'grey-200' }}
14
15
  _pressed={{ bg: 'grey-300' }}
15
16
  onPress={showColumnsSelector}
16
- className={`
17
- HeaderColumnSelectorHandle
18
- bg-grey-100
19
- h-full
20
- w-3
21
- items-center
22
- justify-center
23
- `}
17
+ className={clsx(
18
+ 'HeaderColumnSelectorHandle',
19
+ 'bg-grey-100',
20
+ 'h-full',
21
+ 'w-3',
22
+ 'items-center',
23
+ 'justify-center',
24
+ )}
24
25
  >
25
26
  <Icon
26
27
  as={Gear}
@@ -2,6 +2,7 @@ import {
2
2
  Icon,
3
3
  VStack,
4
4
  } from '@project-components/Gluestack';
5
+ import clsx from 'clsx';
5
6
  import styles from '../../Styles/StyleSheets.js';
6
7
  import withDraggable from '../Hoc/withDraggable.js';
7
8
  import GripVertical from '../Icons/GripVertical.js';
@@ -13,14 +14,14 @@ function HeaderReorderHandle(props) {
13
14
 
14
15
  return <VStack
15
16
  style={styles.ewResize}
16
- className={`
17
- HeaderReorderHandle
18
- h-full
19
- w-3
20
- items-center
21
- justify-center
22
- ${isDragging ? 'bg-grey-300' : 'bg-grey-100'}
23
- `}
17
+ className={clsx(
18
+ 'HeaderReorderHandle',
19
+ 'h-full',
20
+ 'w-3',
21
+ 'items-center',
22
+ 'justify-center',
23
+ isDragging ? 'bg-grey-300' : 'bg-grey-100',
24
+ )}
24
25
  >
25
26
  <Icon
26
27
  as={GripVertical}
@@ -2,6 +2,7 @@ import {
2
2
  Icon,
3
3
  VStack,
4
4
  } from '@project-components/Gluestack';
5
+ import clsx from 'clsx';
5
6
  import styles from '../../Styles/StyleSheets.js';
6
7
  import withDraggable from '../Hoc/withDraggable.js';
7
8
  import GripLinesVertical from '../Icons/GripLinesVertical.js';
@@ -13,14 +14,14 @@ function HeaderResizeHandle(props) {
13
14
 
14
15
  return <VStack
15
16
  style={styles.ewResize}
16
- className={`
17
- HeaderResizeHandle
18
- h-full
19
- w-3
20
- items-center
21
- justify-center
22
- ${isDragging ? 'bg-grey-300' : 'bg-grey-100'}
23
- `}
17
+ className={clsx(
18
+ 'HeaderResizeHandle',
19
+ 'h-full',
20
+ 'w-3',
21
+ 'items-center',
22
+ 'justify-center',
23
+ isDragging ? 'bg-grey-300' : 'bg-grey-100',
24
+ )}
24
25
  >
25
26
  <Icon
26
27
  as={GripLinesVertical}
@@ -3,6 +3,7 @@ import {
3
3
  Text,
4
4
  VStack,
5
5
  } from '@project-components/Gluestack';
6
+ import clsx from 'clsx';
6
7
  import IconButton from '../Buttons/IconButton.js';
7
8
  import Rotate from '../Icons/Rotate.js';
8
9
 
@@ -23,9 +24,9 @@ export default function NoRecordsFound(props) {
23
24
  icon={Rotate}
24
25
  _icon={{
25
26
  size: 'md',
26
- className: `
27
- text-grey-400
28
- `,
27
+ className: clsx(
28
+ 'text-grey-400',
29
+ ),
29
30
  }}
30
31
  onPress={onRefresh}
31
32
  variant="outline"
@@ -2,6 +2,7 @@ import {
2
2
  Icon,
3
3
  VStack,
4
4
  } from '@project-components/Gluestack';
5
+ import clsx from 'clsx';
5
6
  import styles from '../../Styles/StyleSheets.js';
6
7
  import GripVertical from '../Icons/GripVertical.js';
7
8
 
@@ -2,6 +2,7 @@ import {
2
2
  Icon,
3
3
  VStack,
4
4
  } from '@project-components/Gluestack';
5
+ import clsx from 'clsx';
5
6
  import Arcs from '../Icons/Arcs.js';
6
7
 
7
8
  function RowSelectHandle(props) {
@@ -169,7 +169,7 @@ export default function withSecondaryEditor(WrappedComponent, isTree = false) {
169
169
  if (secondaryDefaultValues) {
170
170
  _.merge(defaultValuesToUse, secondaryDefaultValues);
171
171
  }
172
- addValues = [...defaultValuesToUse];
172
+ addValues = {...defaultValuesToUse};
173
173
  }
174
174
 
175
175
  if (secondarySelectorId && !_.isEmpty(secondarySelectorSelected)) {
@@ -2,6 +2,7 @@ import { forwardRef } from 'react';
2
2
  import {
3
3
  Modal, ModalBackdrop, ModalHeader, ModalContent, ModalCloseButton, ModalBody, ModalFooter,
4
4
  } from '@project-components/Gluestack';
5
+ import clsx from 'clsx';
5
6
  import {
6
7
  EDITOR_TYPE__WINDOWED,
7
8
  } from '../../../Constants/Editor.js';
@@ -82,11 +83,11 @@ export default function withSecondaryWindowedEditor(WrappedComponent, isTree = f
82
83
  {...secondaryEditorProps}
83
84
  parent={self}
84
85
  reference="secondaryEditor"
85
- className={`
86
- bg-white
87
- shadow-lg
88
- rounded-lg
89
- `}
86
+ className={clsx(
87
+ 'bg-white',
88
+ 'shadow-lg',
89
+ 'rounded-lg',
90
+ )}
90
91
  />
91
92
  </Modal>}
92
93
  </>;