pixel-react 1.17.5 → 1.17.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.
Files changed (88) hide show
  1. package/lib/components/Accordion/types.d.ts +1 -1
  2. package/lib/components/AppHeader/AppHeader.js +4 -10
  3. package/lib/components/AppHeader/AppHeader.js.map +1 -1
  4. package/lib/components/Box/types.d.ts +3 -3
  5. package/lib/components/BrowserTabs/BrowserTabs.js +1 -3
  6. package/lib/components/BrowserTabs/BrowserTabs.js.map +1 -1
  7. package/lib/components/BrowserTabs/types.d.ts +1 -1
  8. package/lib/components/Button/types.d.ts +1 -1
  9. package/lib/components/Charts/DonutChart/DonutChart.js +11 -13
  10. package/lib/components/Charts/DonutChart/DonutChart.js.map +1 -1
  11. package/lib/components/ChipWithCount/ChipWithCount.js.map +1 -1
  12. package/lib/components/Comments/mentionUser/MentionUser.js +1 -3
  13. package/lib/components/Comments/mentionUser/MentionUser.js.map +1 -1
  14. package/lib/components/Comments/type.d.ts +1 -1
  15. package/lib/components/ConditionalDropdown/ConditionalDropdown.js +2 -1
  16. package/lib/components/ConditionalDropdown/ConditionalDropdown.js.map +1 -1
  17. package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js +2 -4
  18. package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js.map +1 -1
  19. package/lib/components/ConnectingBranch/types.d.ts +3 -3
  20. package/lib/components/DebugToolsPanel/DebugToolsPanel.js +1 -3
  21. package/lib/components/DebugToolsPanel/DebugToolsPanel.js.map +1 -1
  22. package/lib/components/Editor/constants.js +55 -40
  23. package/lib/components/Editor/constants.js.map +1 -1
  24. package/lib/components/Excel/ColorBarSelector/ColorBarSelector.d.ts +1 -1
  25. package/lib/components/Excel/ColorBarSelector/ColorBarSelector.js +5 -3
  26. package/lib/components/Excel/ColorBarSelector/ColorBarSelector.js.map +1 -1
  27. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
  28. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
  29. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Table.js.map +1 -1
  30. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js +10 -3
  31. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js.map +1 -1
  32. package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +1 -1
  33. package/lib/components/Excel/ExcelToolBar/ExcelToolBar.js +8 -2
  34. package/lib/components/Excel/ExcelToolBar/ExcelToolBar.js.map +1 -1
  35. package/lib/components/Form/Forms.d.ts +1 -1
  36. package/lib/components/Form/Forms.js.map +1 -1
  37. package/lib/components/MenuOption/MenuOption.js +1 -3
  38. package/lib/components/MenuOption/MenuOption.js.map +1 -1
  39. package/lib/components/MenuOption/types.d.ts +2 -2
  40. package/lib/components/NLPInput/components/NlpDropDown/NlpDropDownType.d.ts +2 -2
  41. package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js.map +1 -1
  42. package/lib/components/NLPInput/types.d.ts +1 -1
  43. package/lib/components/OtpVerification/OtpVerification.js +1 -3
  44. package/lib/components/OtpVerification/OtpVerification.js.map +1 -1
  45. package/lib/components/PrePostTable/PrePostTable.js.map +1 -1
  46. package/lib/components/PrePostTable/Types.d.ts +2 -2
  47. package/lib/components/Select/components/types.d.ts +2 -2
  48. package/lib/components/Select/types.d.ts +1 -1
  49. package/lib/components/SessionDropdown/SessionDropdown.js +4 -4
  50. package/lib/components/SessionDropdown/SessionDropdown.js.map +1 -1
  51. package/lib/components/SessionDropdown/type.d.ts +2 -0
  52. package/lib/components/StepsLandingTable/Components/StepGroupAccordions.js +1 -5
  53. package/lib/components/StepsLandingTable/Components/StepGroupAccordions.js.map +1 -1
  54. package/lib/components/StepsLandingTable/Components/StepInnerTable.js.map +1 -1
  55. package/lib/components/StepsLandingTable/Components/Types.d.ts +1 -1
  56. package/lib/components/StepsLandingTable/StepLandingTable.d.ts +1 -1
  57. package/lib/components/StepsLandingTable/types.d.ts +2 -2
  58. package/lib/components/Table/Types.d.ts +1 -1
  59. package/lib/components/TableTree/Utils/formatDataCell.js +1 -1
  60. package/lib/components/TableTree/Utils/formatDataCell.js.map +1 -1
  61. package/lib/components/TableTree/types.d.ts +7 -7
  62. package/lib/components/TableTreeFn/TableTreeFn.js +1 -6
  63. package/lib/components/TableTreeFn/TableTreeFn.js.map +1 -1
  64. package/lib/components/TableTreeFn/Utils/formatDataCell.js +1 -1
  65. package/lib/components/TableTreeFn/Utils/formatDataCell.js.map +1 -1
  66. package/lib/components/TableTreeFn/types.d.ts +7 -7
  67. package/lib/components/TableWithAccordion/types.d.ts +1 -1
  68. package/lib/components/Tabs/types.d.ts +2 -2
  69. package/lib/components/TabsWithSilder/types.d.ts +2 -2
  70. package/lib/components/Tooltip/Tooltip.js +1 -1
  71. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  72. package/lib/components/Tooltip/types.d.ts +2 -2
  73. package/lib/components/Typography/types.d.ts +1 -1
  74. package/lib/components/VariableInput/VariableInput.js.map +1 -1
  75. package/lib/hooks/useClickOutside.d.ts +1 -1
  76. package/lib/hooks/useClickOutside.js.map +1 -1
  77. package/lib/hooks/usePortalPosition.d.ts +1 -1
  78. package/lib/hooks/usePortalPosition.js.map +1 -1
  79. package/lib/index.d.ts +34 -32
  80. package/lib/index.js +9 -9
  81. package/lib/index.js.map +1 -1
  82. package/lib/styles.css +1 -1
  83. package/lib/styles.css.map +1 -1
  84. package/lib/utils/getAnchorElement/getAnchorElement.d.ts +1 -1
  85. package/lib/utils/getAnchorElement/getAnchorElement.js.map +1 -1
  86. package/lib/utils/keyBoardActionUtil/UseKeyboardActions.d.ts +1 -1
  87. package/lib/utils/keyBoardActionUtil/UseKeyboardActions.js.map +1 -1
  88. package/package.json +106 -101
package/lib/index.d.ts CHANGED
@@ -142,7 +142,7 @@ interface ButtonProps {
142
142
  /**
143
143
  * onSubmit function handler
144
144
  */
145
- onSubmit?: (event: React.FormEvent<HTMLButtonElement>) => void;
145
+ onSubmit?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
146
146
  /**
147
147
  * react ref for the button
148
148
  */
@@ -410,7 +410,7 @@ interface AccordionProps {
410
410
  /**
411
411
  * Accordion Header Title
412
412
  */
413
- headerTitle: string | React.ReactElement;
413
+ headerTitle: string | JSX.Element;
414
414
  /**
415
415
  * Content that to be shown while Accordion is expanded
416
416
  */
@@ -1040,7 +1040,7 @@ interface SelectProps$1 {
1040
1040
  /**
1041
1041
  * Ref for select option dropdown
1042
1042
  */
1043
- dropDownRef?: RefObject<HTMLDivElement | null>;
1043
+ dropDownRef?: RefObject<HTMLDivElement>;
1044
1044
  /**
1045
1045
  * isGrouped prop for grouped options
1046
1046
  */
@@ -1320,7 +1320,7 @@ interface MenuOptionProps {
1320
1320
  * @optional
1321
1321
  */
1322
1322
  optionCardVariant?: 'primary' | 'default';
1323
- targetRef?: string | React.RefObject<HTMLElement | null> | null;
1323
+ targetRef?: string | React.RefObject<HTMLElement> | null;
1324
1324
  treeRowRef?: React.RefObject<HTMLDivElement | null>;
1325
1325
  isAddResourceButton?: boolean;
1326
1326
  /**
@@ -1805,7 +1805,7 @@ interface TypographyProps {
1805
1805
  /**
1806
1806
  * For JSX elements
1807
1807
  */
1808
- as?: React__default.ElementType;
1808
+ as?: keyof JSX.IntrinsicElements;
1809
1809
  /**
1810
1810
  * htmlFor attribute for element=label,
1811
1811
  */
@@ -1851,7 +1851,7 @@ interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
1851
1851
  }
1852
1852
  declare const ForwardedForms: <T extends Form.FieldValues>(props: FormProps<T> & {
1853
1853
  ref?: React__default.Ref<any>;
1854
- }) => React__default.ReactElement;
1854
+ }) => JSX.Element;
1855
1855
 
1856
1856
  interface Option$4 {
1857
1857
  label: string | ReactNode;
@@ -2301,23 +2301,23 @@ interface NewNode$1 {
2301
2301
  confirmIconTooltip?: string;
2302
2302
  cancelIconTooltip?: string;
2303
2303
  }
2304
- type JSXContent$1 = ReactNode | React.ReactElement[] | string | null;
2304
+ declare type JSX$2 = ReactNode | JSX$2.Element[] | string | null;
2305
2305
  type RootNode$1 = {
2306
2306
  node: any;
2307
2307
  select: 'radio' | 'checkbox' | 'none';
2308
- cell?: (row: any) => JSXContent$1;
2309
- actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSXContent$1;
2308
+ cell?: (row: any) => JSX$2;
2309
+ actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSX$2;
2310
2310
  };
2311
2311
  interface Column$1 {
2312
- name: string | JSXContent$1;
2312
+ name: string | JSX$2;
2313
2313
  accessor: string;
2314
2314
  width: string;
2315
2315
  isClickable?: boolean;
2316
- cell?: (row: any) => JSXContent$1;
2317
- actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSXContent$1;
2316
+ cell?: (row: any) => JSX$2;
2317
+ actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSX$2;
2318
2318
  isTree?: boolean;
2319
2319
  defaultValue?: string;
2320
- defaultActions?: () => JSXContent$1;
2320
+ defaultActions?: () => JSX$2;
2321
2321
  }
2322
2322
  interface TreeTableProps$1 {
2323
2323
  treeData: any;
@@ -2364,7 +2364,7 @@ interface TabsProps$1 {
2364
2364
  id: string;
2365
2365
  label: string;
2366
2366
  icon?: string;
2367
- component?: React.ReactElement;
2367
+ component?: JSX.Element;
2368
2368
  disabled?: boolean;
2369
2369
  count?: number | string;
2370
2370
  status?: 'success' | 'error' | 'transparent';
@@ -2425,7 +2425,7 @@ interface BrowserTab {
2425
2425
  /**
2426
2426
  * Optional component to be rendered when the tab is active.
2427
2427
  */
2428
- component?: React.ReactElement;
2428
+ component?: JSX.Element;
2429
2429
  /**
2430
2430
  * Name of the tab icon.
2431
2431
  */
@@ -3799,7 +3799,7 @@ interface ColumnProps$1 {
3799
3799
  /**
3800
3800
  * data for the column
3801
3801
  */
3802
- cell?: (e: any) => React.ReactElement | string | ReactNode;
3802
+ cell?: (e: any) => JSX.Element | string | ReactNode;
3803
3803
  }
3804
3804
  interface DataProps$2 {
3805
3805
  /**
@@ -4398,7 +4398,7 @@ interface TabsProps {
4398
4398
  tabsData: {
4399
4399
  id: string;
4400
4400
  label: string;
4401
- component?: React.ReactElement;
4401
+ component?: JSX.Element;
4402
4402
  disabled?: boolean;
4403
4403
  count?: number | string;
4404
4404
  status?: 'success' | 'error' | 'transparent';
@@ -4522,12 +4522,14 @@ interface ActionsConfig {
4522
4522
  iconName?: string;
4523
4523
  disabled?: boolean;
4524
4524
  tooltip?: string;
4525
+ className?: string;
4525
4526
  };
4526
4527
  delete?: {
4527
4528
  onClick: () => void;
4528
4529
  iconName?: string;
4529
4530
  disabled?: boolean;
4530
4531
  tooltip?: string;
4532
+ className?: string;
4531
4533
  };
4532
4534
  }
4533
4535
  interface SessionDropdownProps {
@@ -4570,23 +4572,23 @@ interface NewNode {
4570
4572
  cancelIconTooltip?: string;
4571
4573
  firstNodeKey?: string;
4572
4574
  }
4573
- type JSXContent = ReactNode | React.ReactElement[] | string | null;
4575
+ declare type JSX$1 = ReactNode | JSX$1.Element[] | string | null;
4574
4576
  type RootNode = {
4575
4577
  node: any;
4576
4578
  select: 'radio' | 'checkbox' | 'none';
4577
- cell?: (row: any) => JSXContent;
4578
- actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSXContent;
4579
+ cell?: (row: any) => JSX$1;
4580
+ actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSX$1;
4579
4581
  };
4580
4582
  interface Column {
4581
- name: string | JSXContent;
4583
+ name: string | JSX$1;
4582
4584
  accessor: string;
4583
4585
  width: string;
4584
4586
  isClickable?: boolean;
4585
- cell?: (row: any) => JSXContent;
4586
- actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSXContent;
4587
+ cell?: (row: any) => JSX$1;
4588
+ actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSX$1;
4587
4589
  isTree?: boolean;
4588
4590
  defaultValue?: string;
4589
- defaultActions?: () => JSXContent;
4591
+ defaultActions?: () => JSX$1;
4590
4592
  }
4591
4593
  interface TreeTableProps {
4592
4594
  treeData: any;
@@ -4871,7 +4873,7 @@ declare const Comments: ({ commentsData, handleAddComment, handleEditComment, ha
4871
4873
 
4872
4874
  declare const useFileDropzone: (options: DropzoneOptions) => DropzoneState;
4873
4875
 
4874
- declare const useClickOutside: (ref: React.RefObject<HTMLElement | null>, callback: () => void, ignoreRefs?: Array<React.RefObject<HTMLElement | null> | undefined>) => void;
4876
+ declare const useClickOutside: (ref: React.RefObject<HTMLElement>, callback: () => void, ignoreRefs?: Array<React.RefObject<HTMLElement> | undefined>) => void;
4875
4877
 
4876
4878
  type TriggerControl = {
4877
4879
  canTrigger: () => boolean;
@@ -5080,7 +5082,7 @@ type KeyboardAction = {
5080
5082
  action: () => void;
5081
5083
  };
5082
5084
 
5083
- declare const useKeyboardActions: (actions: KeyboardAction[], ref?: RefObject<HTMLElement | null>) => void;
5085
+ declare const useKeyboardActions: (actions: KeyboardAction[], ref?: RefObject<HTMLElement>) => void;
5084
5086
 
5085
5087
  declare const rearrangeDragItem: (initialArray: any[], oldIndex: number, newIndex: number) => any[];
5086
5088
 
@@ -5465,8 +5467,8 @@ interface ColumnProps {
5465
5467
  /**
5466
5468
  * data for the column
5467
5469
  */
5468
- cell?: (e: any) => React.ReactElement | string | ReactNode;
5469
- extraInfo?: (e: any) => React.ReactElement | string | ReactNode;
5470
+ cell?: (e: any) => JSX.Element | string | ReactNode;
5471
+ extraInfo?: (e: any) => JSX.Element | string | ReactNode;
5470
5472
  }
5471
5473
  interface AddNlpProp {
5472
5474
  action?: 'addBelow' | 'addLast' | 'replaceNlp' | 'EditNlp';
@@ -5547,7 +5549,7 @@ interface TableProps {
5547
5549
  handleParentRowHoverOut?: (e: any) => void;
5548
5550
  }
5549
5551
 
5550
- declare const StepLandingTable: React__default.NamedExoticComponent<TableProps & React__default.RefAttributes<any>>;
5552
+ declare const StepLandingTable: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TableProps & React__default.RefAttributes<any>>>;
5551
5553
 
5552
5554
  interface RichTextEditorProps {
5553
5555
  convertedContent: string;
@@ -5597,15 +5599,15 @@ type CardProperties = {
5597
5599
  };
5598
5600
  type HeaderContentProperties = {
5599
5601
  isHeader?: boolean;
5600
- content?: React.ReactElement;
5602
+ content?: JSX.Element;
5601
5603
  };
5602
5604
  type MidContentProperties = {
5603
5605
  isMidContent?: boolean;
5604
- content?: React.ReactElement;
5606
+ content?: JSX.Element;
5605
5607
  };
5606
5608
  type FooterContentProperties = {
5607
5609
  isFooter?: boolean;
5608
- content?: React.ReactElement;
5610
+ content?: JSX.Element;
5609
5611
  };
5610
5612
  type CardProps = {
5611
5613
  cardProperties?: CardProperties;