pixel-react 1.20.33 → 1.20.35

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 (93) hide show
  1. package/lib/components/Accordion/types.d.ts +1 -1
  2. package/lib/components/AppHeader/AppHeader.js +10 -4
  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 +3 -1
  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/ChipWithCount/ChipWithCount.js.map +1 -1
  10. package/lib/components/Comments/mentionUser/MentionUser.js +3 -1
  11. package/lib/components/Comments/mentionUser/MentionUser.js.map +1 -1
  12. package/lib/components/Comments/type.d.ts +1 -1
  13. package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js +4 -2
  14. package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js.map +1 -1
  15. package/lib/components/ConnectingBranch/types.d.ts +3 -3
  16. package/lib/components/DebugToolsPanel/DebugToolsPanel.js +3 -1
  17. package/lib/components/DebugToolsPanel/DebugToolsPanel.js.map +1 -1
  18. package/lib/components/EditLabel/EditLabel.d.ts +1 -1
  19. package/lib/components/EditLabel/EditLabel.js +3 -5
  20. package/lib/components/EditLabel/EditLabel.js.map +1 -1
  21. package/lib/components/EditLabel/types.d.ts +0 -1
  22. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
  23. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
  24. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Table.js.map +1 -1
  25. package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +1 -1
  26. package/lib/components/Form/Forms.d.ts +1 -1
  27. package/lib/components/Form/Forms.js.map +1 -1
  28. package/lib/components/MenuOption/MenuOption.js +21 -20
  29. package/lib/components/MenuOption/MenuOption.js.map +1 -1
  30. package/lib/components/MenuOption/types.d.ts +2 -2
  31. package/lib/components/NLPInput/components/NlpDropDown/NlpDropDownType.d.ts +2 -2
  32. package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js.map +1 -1
  33. package/lib/components/NLPInput/types.d.ts +1 -1
  34. package/lib/components/OtpVerification/OtpVerification.js +3 -1
  35. package/lib/components/OtpVerification/OtpVerification.js.map +1 -1
  36. package/lib/components/PrePostTable/PrePostTable.js.map +1 -1
  37. package/lib/components/PrePostTable/Types.d.ts +2 -2
  38. package/lib/components/Select/Select.js +10 -10
  39. package/lib/components/Select/Select.js.map +1 -1
  40. package/lib/components/Select/components/types.d.ts +2 -2
  41. package/lib/components/Select/types.d.ts +1 -1
  42. package/lib/components/StepsLandingTable/Components/StepGroupAccordions.js +5 -1
  43. package/lib/components/StepsLandingTable/Components/StepGroupAccordions.js.map +1 -1
  44. package/lib/components/StepsLandingTable/Components/StepInnerTable.js.map +1 -1
  45. package/lib/components/StepsLandingTable/Components/Types.d.ts +1 -1
  46. package/lib/components/StepsLandingTable/StepLandingTable.d.ts +1 -1
  47. package/lib/components/StepsLandingTable/types.d.ts +2 -2
  48. package/lib/components/StorageUsageBar/StorageUsageBar.js +43 -5
  49. package/lib/components/StorageUsageBar/StorageUsageBar.js.map +1 -1
  50. package/lib/components/StorageUsageBar/types.d.ts +2 -2
  51. package/lib/components/Table/Types.d.ts +1 -1
  52. package/lib/components/TableTree/Utils/formatDataCell.js +1 -1
  53. package/lib/components/TableTree/Utils/formatDataCell.js.map +1 -1
  54. package/lib/components/TableTree/types.d.ts +7 -7
  55. package/lib/components/TableTreeFn/Components/TableBody.d.ts +1 -1
  56. package/lib/components/TableTreeFn/Components/TableBody.js +2 -2
  57. package/lib/components/TableTreeFn/Components/TableBody.js.map +1 -1
  58. package/lib/components/TableTreeFn/Components/TableCell.d.ts +1 -1
  59. package/lib/components/TableTreeFn/Components/TableCell.js +5 -2
  60. package/lib/components/TableTreeFn/Components/TableCell.js.map +1 -1
  61. package/lib/components/TableTreeFn/Components/TableHead.d.ts +1 -1
  62. package/lib/components/TableTreeFn/Components/TableHead.js +7 -9
  63. package/lib/components/TableTreeFn/Components/TableHead.js.map +1 -1
  64. package/lib/components/TableTreeFn/Components/TableRow.d.ts +1 -1
  65. package/lib/components/TableTreeFn/Components/TableRow.js +2 -2
  66. package/lib/components/TableTreeFn/Components/TableRow.js.map +1 -1
  67. package/lib/components/TableTreeFn/TableTreeFn.js +2 -2
  68. package/lib/components/TableTreeFn/TableTreeFn.js.map +1 -1
  69. package/lib/components/TableTreeFn/Utils/formatDataCell.js +1 -1
  70. package/lib/components/TableTreeFn/Utils/formatDataCell.js.map +1 -1
  71. package/lib/components/TableTreeFn/types.d.ts +12 -7
  72. package/lib/components/TableWithAccordion/types.d.ts +1 -1
  73. package/lib/components/Tabs/types.d.ts +2 -2
  74. package/lib/components/TabsWithSilder/types.d.ts +2 -2
  75. package/lib/components/Tooltip/Tooltip.js +1 -1
  76. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  77. package/lib/components/Tooltip/types.d.ts +2 -2
  78. package/lib/components/TooltipService/TooltipService.js +18 -1
  79. package/lib/components/TooltipService/TooltipService.js.map +1 -1
  80. package/lib/components/Typography/types.d.ts +1 -1
  81. package/lib/components/VariableInput/VariableInput.js.map +1 -1
  82. package/lib/hooks/useClickOutside.d.ts +1 -1
  83. package/lib/hooks/useClickOutside.js.map +1 -1
  84. package/lib/hooks/usePortalPosition.d.ts +1 -1
  85. package/lib/hooks/usePortalPosition.js.map +1 -1
  86. package/lib/index.d.ts +36 -36
  87. package/lib/index.js +9 -9
  88. package/lib/styles.css +1 -1
  89. package/lib/utils/getAnchorElement/getAnchorElement.d.ts +1 -1
  90. package/lib/utils/getAnchorElement/getAnchorElement.js.map +1 -1
  91. package/lib/utils/keyBoardActionUtil/UseKeyboardActions.d.ts +1 -1
  92. package/lib/utils/keyBoardActionUtil/UseKeyboardActions.js.map +1 -1
  93. package/package.json +13 -18
package/lib/index.d.ts CHANGED
@@ -147,7 +147,7 @@ interface ButtonProps {
147
147
  /**
148
148
  * onSubmit function handler
149
149
  */
150
- onSubmit?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
150
+ onSubmit?: (event: React.FormEvent<HTMLButtonElement>) => void;
151
151
  /**
152
152
  * react ref for the button
153
153
  */
@@ -420,7 +420,7 @@ interface AccordionProps {
420
420
  /**
421
421
  * Accordion Header Title
422
422
  */
423
- headerTitle: string | JSX.Element;
423
+ headerTitle: string | React.ReactElement;
424
424
  /**
425
425
  * Content that to be shown while Accordion is expanded
426
426
  */
@@ -1051,7 +1051,7 @@ interface SelectProps$1 {
1051
1051
  /**
1052
1052
  * Ref for select option dropdown
1053
1053
  */
1054
- dropDownRef?: RefObject<HTMLDivElement>;
1054
+ dropDownRef?: RefObject<HTMLDivElement | null>;
1055
1055
  /**
1056
1056
  * isGrouped prop for grouped options
1057
1057
  */
@@ -1335,7 +1335,7 @@ interface MenuOptionProps {
1335
1335
  * @optional
1336
1336
  */
1337
1337
  optionCardVariant?: 'primary' | 'default';
1338
- targetRef?: string | React.RefObject<HTMLElement> | null;
1338
+ targetRef?: string | React.RefObject<HTMLElement | null> | null;
1339
1339
  treeRowRef?: React.RefObject<HTMLDivElement | null>;
1340
1340
  isAddResourceButton?: boolean;
1341
1341
  /**
@@ -1820,7 +1820,7 @@ interface TypographyProps {
1820
1820
  /**
1821
1821
  * For JSX elements
1822
1822
  */
1823
- as?: keyof JSX.IntrinsicElements;
1823
+ as?: React__default.ElementType;
1824
1824
  /**
1825
1825
  * htmlFor attribute for element=label,
1826
1826
  */
@@ -1867,7 +1867,7 @@ interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
1867
1867
  }
1868
1868
  declare const ForwardedForms: <T extends Form.FieldValues>(props: FormProps<T> & {
1869
1869
  ref?: React__default.Ref<any>;
1870
- }) => JSX.Element;
1870
+ }) => React__default.ReactElement;
1871
1871
 
1872
1872
  interface Option$4 {
1873
1873
  label: string | ReactNode;
@@ -2319,23 +2319,23 @@ interface NewNode$1 {
2319
2319
  confirmIconTooltip?: string;
2320
2320
  cancelIconTooltip?: string;
2321
2321
  }
2322
- declare type JSX$2 = ReactNode | JSX$2.Element[] | string | null;
2322
+ type JSXContent$1 = ReactNode | React.ReactElement[] | string | null;
2323
2323
  type RootNode$1 = {
2324
2324
  node: any;
2325
2325
  select: 'radio' | 'checkbox' | 'none';
2326
- cell?: (row: any) => JSX$2;
2327
- actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSX$2;
2326
+ cell?: (row: any) => JSXContent$1;
2327
+ actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSXContent$1;
2328
2328
  };
2329
2329
  interface Column$1 {
2330
- name: string | JSX$2;
2330
+ name: string | JSXContent$1;
2331
2331
  accessor: string;
2332
2332
  width: string;
2333
2333
  isClickable?: boolean;
2334
- cell?: (row: any) => JSX$2;
2335
- actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSX$2;
2334
+ cell?: (row: any) => JSXContent$1;
2335
+ actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSXContent$1;
2336
2336
  isTree?: boolean;
2337
2337
  defaultValue?: string;
2338
- defaultActions?: () => JSX$2;
2338
+ defaultActions?: () => JSXContent$1;
2339
2339
  }
2340
2340
  interface TreeTableProps$1 {
2341
2341
  treeData: any;
@@ -2382,7 +2382,7 @@ interface TabsProps$1 {
2382
2382
  id: string;
2383
2383
  label: string;
2384
2384
  icon?: string;
2385
- component?: JSX.Element;
2385
+ component?: React.ReactElement;
2386
2386
  disabled?: boolean;
2387
2387
  count?: number | string;
2388
2388
  status?: 'success' | 'error' | 'transparent';
@@ -2443,7 +2443,7 @@ interface BrowserTab {
2443
2443
  /**
2444
2444
  * Optional component to be rendered when the tab is active.
2445
2445
  */
2446
- component?: JSX.Element;
2446
+ component?: React.ReactElement;
2447
2447
  /**
2448
2448
  * Name of the tab icon.
2449
2449
  */
@@ -3825,7 +3825,7 @@ interface ColumnProps$1 {
3825
3825
  /**
3826
3826
  * data for the column
3827
3827
  */
3828
- cell?: (e: any) => JSX.Element | string | ReactNode;
3828
+ cell?: (e: any) => React.ReactElement | string | ReactNode;
3829
3829
  }
3830
3830
  interface DataProps$2 {
3831
3831
  /**
@@ -4376,7 +4376,6 @@ interface EditLabelProps {
4376
4376
  onChangeValidationError?: boolean;
4377
4377
  truncatedType?: 'count' | 'pixel';
4378
4378
  isTableTree?: boolean;
4379
- isAutoTruncate?: boolean;
4380
4379
  }
4381
4380
  type OptionValue$1 = any;
4382
4381
  type DisabledOptions = {
@@ -4388,7 +4387,7 @@ interface Option$2 {
4388
4387
  [key: string]: OptionValue$1;
4389
4388
  }
4390
4389
 
4391
- declare const EditLabel: ({ id, onConfirm, onCancel, handleCustomError, value, label, optionsList, selectedOption, withDropdown, inputFieldWidth, selectFieldWidth, textColor, tooltip, required, isDisable, onClick, highlightText, isEditable, setIsEditable, cursor, isOnBlurTrue, handleOnChange, handleTriggerDoubleClick, truncatedTextCount, truncatedType, confirmIconTooltip, cancelIconTooltip, inlineValidationError, onChangeValidationError, isTableTree, isAutoTruncate, }: EditLabelProps) => react_jsx_runtime.JSX.Element;
4390
+ declare const EditLabel: ({ id, onConfirm, onCancel, handleCustomError, value, label, optionsList, selectedOption, withDropdown, inputFieldWidth, selectFieldWidth, textColor, tooltip, required, isDisable, onClick, highlightText, isEditable, setIsEditable, cursor, isOnBlurTrue, handleOnChange, handleTriggerDoubleClick, truncatedTextCount, truncatedType, confirmIconTooltip, cancelIconTooltip, inlineValidationError, onChangeValidationError, isTableTree, }: EditLabelProps) => react_jsx_runtime.JSX.Element;
4392
4391
 
4393
4392
  interface ErrorBoundaryProps {
4394
4393
  fallback: ReactNode;
@@ -4426,7 +4425,7 @@ interface TabsProps {
4426
4425
  tabsData: {
4427
4426
  id: string;
4428
4427
  label: string;
4429
- component?: JSX.Element;
4428
+ component?: React.ReactElement;
4430
4429
  disabled?: boolean;
4431
4430
  count?: number | string;
4432
4431
  status?: 'success' | 'error' | 'transparent';
@@ -4600,23 +4599,23 @@ interface NewNode {
4600
4599
  cancelIconTooltip?: string;
4601
4600
  firstNodeKey?: string;
4602
4601
  }
4603
- declare type JSX$1 = ReactNode | JSX$1.Element[] | string | null;
4602
+ type JSXContent = ReactNode | React.ReactElement[] | string | null;
4604
4603
  type RootNode = {
4605
4604
  node: any;
4606
4605
  select: 'radio' | 'checkbox' | 'none';
4607
- cell?: (row: any) => JSX$1;
4608
- actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSX$1;
4606
+ cell?: (row: any) => JSXContent;
4607
+ actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSXContent;
4609
4608
  };
4610
4609
  interface Column {
4611
- name: string | JSX$1;
4610
+ name: string | JSXContent;
4612
4611
  accessor: string;
4613
4612
  width: string;
4614
4613
  isClickable?: boolean;
4615
- cell?: (row: any) => JSX$1;
4616
- actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSX$1;
4614
+ cell?: (row: any) => JSXContent;
4615
+ actions?: (row: any, treeRowRef?: React.RefObject<HTMLDivElement | null>) => JSXContent;
4617
4616
  isTree?: boolean;
4618
4617
  defaultValue?: string;
4619
- defaultActions?: () => JSX$1;
4618
+ defaultActions?: () => JSXContent;
4620
4619
  }
4621
4620
  interface TreeTableProps {
4622
4621
  treeData: any;
@@ -4641,6 +4640,7 @@ interface TreeTableProps {
4641
4640
  tableHeaderBgColor?: string;
4642
4641
  hideOnDisable?: boolean;
4643
4642
  freezeColumns?: number;
4643
+ scriptLengthTruncate?: number;
4644
4644
  addModuleInputWidth?: number;
4645
4645
  addModuleSelectWidth?: number;
4646
4646
  onScroll?: () => void;
@@ -4901,7 +4901,7 @@ declare const Comments: ({ commentsData, handleAddComment, handleEditComment, ha
4901
4901
 
4902
4902
  declare const useFileDropzone: (options: DropzoneOptions) => DropzoneState;
4903
4903
 
4904
- declare const useClickOutside: (ref: React.RefObject<HTMLElement>, callback: () => void, ignoreRefs?: Array<React.RefObject<HTMLElement> | undefined>) => void;
4904
+ declare const useClickOutside: (ref: React.RefObject<HTMLElement | null>, callback: () => void, ignoreRefs?: Array<React.RefObject<HTMLElement | null> | undefined>) => void;
4905
4905
 
4906
4906
  type TriggerControl = {
4907
4907
  canTrigger: () => boolean;
@@ -5110,7 +5110,7 @@ type KeyboardAction = {
5110
5110
  action: () => void;
5111
5111
  };
5112
5112
 
5113
- declare const useKeyboardActions: (actions: KeyboardAction[], ref?: RefObject<HTMLElement>) => void;
5113
+ declare const useKeyboardActions: (actions: KeyboardAction[], ref?: RefObject<HTMLElement | null>) => void;
5114
5114
 
5115
5115
  declare const rearrangeDragItem: (initialArray: any[], oldIndex: number, newIndex: number) => any[];
5116
5116
 
@@ -5495,8 +5495,8 @@ interface ColumnProps {
5495
5495
  /**
5496
5496
  * data for the column
5497
5497
  */
5498
- cell?: (e: any) => JSX.Element | string | ReactNode;
5499
- extraInfo?: (e: any) => JSX.Element | string | ReactNode;
5498
+ cell?: (e: any) => React.ReactElement | string | ReactNode;
5499
+ extraInfo?: (e: any) => React.ReactElement | string | ReactNode;
5500
5500
  }
5501
5501
  interface AddNlpProp {
5502
5502
  action?: 'addBelow' | 'addLast' | 'replaceNlp' | 'EditNlp';
@@ -5577,7 +5577,7 @@ interface TableProps {
5577
5577
  handleParentRowHoverOut?: (e: any) => void;
5578
5578
  }
5579
5579
 
5580
- declare const StepLandingTable: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TableProps & React__default.RefAttributes<any>>>;
5580
+ declare const StepLandingTable: React__default.NamedExoticComponent<TableProps & React__default.RefAttributes<any>>;
5581
5581
 
5582
5582
  interface RichTextEditorProps {
5583
5583
  convertedContent: string;
@@ -5627,15 +5627,15 @@ type CardProperties = {
5627
5627
  };
5628
5628
  type HeaderContentProperties = {
5629
5629
  isHeader?: boolean;
5630
- content?: JSX.Element;
5630
+ content?: React.ReactElement;
5631
5631
  };
5632
5632
  type MidContentProperties = {
5633
5633
  isMidContent?: boolean;
5634
- content?: JSX.Element;
5634
+ content?: React.ReactElement;
5635
5635
  };
5636
5636
  type FooterContentProperties = {
5637
5637
  isFooter?: boolean;
5638
- content?: JSX.Element;
5638
+ content?: React.ReactElement;
5639
5639
  };
5640
5640
  type CardProps = {
5641
5641
  cardProperties?: CardProperties;
@@ -5888,8 +5888,8 @@ declare const useDeviceType: () => {
5888
5888
  declare const copyToClipboard: (text: string) => boolean;
5889
5889
 
5890
5890
  interface StorageUsageBarProps {
5891
- used: number;
5892
- total: number;
5891
+ used: string | number;
5892
+ total: string | number;
5893
5893
  unit?: string;
5894
5894
  showValue?: boolean;
5895
5895
  width?: string;