pixel-react 1.1.6 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/components/AttachmentButton/AttachmentButton.d.ts +5 -0
  3. package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
  4. package/lib/components/AttachmentButton/index.d.ts +1 -0
  5. package/lib/components/AttachmentButton/types.d.ts +8 -0
  6. package/lib/components/IconButton/IconButton.stories.d.ts +1 -0
  7. package/lib/components/Input/Input.d.ts +1 -1
  8. package/lib/components/Input/types.d.ts +4 -0
  9. package/lib/components/MiniModal/MiniModal.stories.d.ts +1 -1
  10. package/lib/components/MiniModal/types.d.ts +12 -0
  11. package/lib/components/RadioButton/radioButtonTypes.d.ts +15 -0
  12. package/lib/components/RadioGroup/RadioGroup.stories.d.ts +2 -1
  13. package/lib/components/RadioGroup/radioGroupTypes.d.ts +15 -0
  14. package/lib/components/Select/Select.d.ts +1 -1
  15. package/lib/components/Select/types.d.ts +4 -0
  16. package/lib/components/Table/Table.d.ts +1 -1
  17. package/lib/components/Table/Types.d.ts +8 -0
  18. package/lib/components/TableTree/TableTree.d.ts +1 -0
  19. package/lib/index.d.ts +32 -4
  20. package/lib/index.esm.js +360 -148
  21. package/lib/index.esm.js.map +1 -1
  22. package/lib/index.js +360 -147
  23. package/lib/index.js.map +1 -1
  24. package/lib/tsconfig.tsbuildinfo +1 -1
  25. package/package.json +1 -1
  26. package/src/assets/Themes/BaseTheme.scss +18 -1
  27. package/src/assets/Themes/DarkTheme.scss +16 -0
  28. package/src/assets/icons/add_file.svg +14 -0
  29. package/src/assets/icons/app_switch.svg +11 -0
  30. package/src/assets/icons/backward_icon.svg +3 -0
  31. package/src/assets/icons/cloud_server_host_icon.svg +3 -0
  32. package/src/assets/icons/continue_without_sign.svg +3 -0
  33. package/src/assets/icons/forward_icon.svg +3 -0
  34. package/src/assets/icons/hamburger_menu.svg +3 -0
  35. package/src/assets/icons/nlp_help_icon.svg +3 -0
  36. package/src/assets/icons/notification_icon.svg +3 -0
  37. package/src/assets/icons/plus_user_icon.svg +3 -0
  38. package/src/assets/icons/reload.svg +3 -0
  39. package/src/assets/icons/toast_close.svg +2 -2
  40. package/src/assets/icons/update_icon.svg +3 -0
  41. package/src/assets/icons/user_profile.svg +3 -0
  42. package/src/assets/icons/window_maximize.svg +4 -0
  43. package/src/assets/icons/window_minimize.svg +3 -0
  44. package/src/components/AppHeader/AppHeader.scss +58 -1
  45. package/src/components/AttachmentButton/AttachmentButton.scss +9 -0
  46. package/src/components/AttachmentButton/AttachmentButton.stories.tsx +76 -0
  47. package/src/components/AttachmentButton/AttachmentButton.tsx +113 -0
  48. package/src/components/AttachmentButton/index.ts +1 -0
  49. package/src/components/AttachmentButton/types.ts +8 -0
  50. package/src/components/Chip/Chip.scss +14 -13
  51. package/src/components/Drawer/Drawer.scss +0 -1
  52. package/src/components/Icon/Icon.stories.tsx +1 -1
  53. package/src/components/Icon/Icons.scss +1 -1
  54. package/src/components/Icon/iconList.ts +32 -0
  55. package/src/components/IconButton/IconButton.scss +23 -12
  56. package/src/components/IconButton/IconButton.stories.tsx +9 -1
  57. package/src/components/IconButton/IconButton.tsx +5 -3
  58. package/src/components/Input/Input.scss +6 -1
  59. package/src/components/Input/Input.tsx +8 -4
  60. package/src/components/Input/types.ts +4 -0
  61. package/src/components/MiniModal/MiniModal.scss +39 -8
  62. package/src/components/MiniModal/MiniModal.stories.tsx +199 -75
  63. package/src/components/MiniModal/MiniModal.tsx +46 -2
  64. package/src/components/MiniModal/types.ts +13 -0
  65. package/src/components/Modal/modal.scss +1 -1
  66. package/src/components/MultiSelect/MultiSelect.scss +2 -2
  67. package/src/components/RadioButton/RadioButton.scss +74 -68
  68. package/src/components/RadioButton/RadioButton.tsx +22 -15
  69. package/src/components/RadioButton/radioButtonTypes.tsx +18 -0
  70. package/src/components/RadioGroup/RadioGroup.stories.tsx +42 -1
  71. package/src/components/RadioGroup/RadioGroup.tsx +3 -0
  72. package/src/components/RadioGroup/radioGroupTypes.tsx +18 -0
  73. package/src/components/Select/Select.scss +1 -2
  74. package/src/components/Select/Select.tsx +3 -2
  75. package/src/components/Select/types.ts +5 -0
  76. package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +5 -5
  77. package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +1 -1
  78. package/src/components/Table/Table.scss +1 -0
  79. package/src/components/Table/Table.tsx +28 -13
  80. package/src/components/Table/Types.ts +8 -0
  81. package/src/components/TableTree/TableTree.scss +18 -2
  82. package/src/components/TableTree/TableTree.stories.tsx +9 -51
  83. package/src/components/TableTree/TableTree.tsx +15 -2
  84. package/src/index.ts +2 -0
Binary file
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { AttachmentUploaderProps } from './types';
3
+ import './AttachmentButton.scss';
4
+ declare const AttachmentButton: React.FC<AttachmentUploaderProps>;
5
+ export default AttachmentButton;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import AttachmentButton from './AttachmentButton';
3
+ declare const meta: Meta<typeof AttachmentButton>;
4
+ type Story = StoryObj<typeof AttachmentButton>;
5
+ export declare const Default: Story;
6
+ export declare const SmallFileLimit: Story;
7
+ export declare const LargeFileLimit: Story;
8
+ export declare const DisabledUploader: Story;
9
+ export default meta;
@@ -0,0 +1 @@
1
+ export { default } from './AttachmentButton';
@@ -0,0 +1,8 @@
1
+ export interface AttachmentUploaderProps {
2
+ label: string;
3
+ selectedFiles: File[];
4
+ onFilesChange: (files: File[]) => void;
5
+ disabled?: boolean;
6
+ maxFileSizeMB?: number;
7
+ maxFiles?: number;
8
+ }
@@ -2,5 +2,6 @@ import type { Meta, StoryObj } from '@storybook/react';
2
2
  import IconButton from './IconButton';
3
3
  declare const meta: Meta<typeof IconButton>;
4
4
  type Story = StoryObj<typeof IconButton>;
5
+ export declare const Default: Story;
5
6
  export declare const PrimaryIconButton: Story;
6
7
  export default meta;
@@ -1,4 +1,4 @@
1
1
  import './Input.scss';
2
2
  import { InputProps } from './types';
3
- declare const Input: ({ type, variant, name, label, disabled, required, placeholder, value, helperText, error, noBorder, className, onChange, onBlur, onFocus, autoComplete, minValue, maxValue, transparentBackground, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const Input: ({ type, variant, name, label, disabled, required, placeholder, value, helperText, error, noBorder, className, onChange, onBlur, onFocus, autoComplete, minValue, maxValue, transparentBackground, size, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Input;
@@ -71,4 +71,8 @@ export interface InputProps {
71
71
  * background of the input field prop
72
72
  */
73
73
  transparentBackground?: boolean;
74
+ /**
75
+ * size for the input field
76
+ */
77
+ size?: 'small' | 'medium';
74
78
  }
@@ -4,6 +4,6 @@ import './MiniModal.scss';
4
4
  declare const meta: Meta<typeof MiniModal>;
5
5
  type Story = StoryObj<typeof MiniModal>;
6
6
  export declare const BasicModal: Story;
7
- export declare const CustomModalWithWrapper: () => import("react/jsx-runtime").JSX.Element;
8
7
  export declare const CustomModalWithArrow: () => import("react/jsx-runtime").JSX.Element;
8
+ export declare const CustomModalWithWrapper: () => import("react/jsx-runtime").JSX.Element;
9
9
  export default meta;
@@ -86,4 +86,16 @@ export interface MiniEditModalProps {
86
86
  rightAlignModal?: number;
87
87
  };
88
88
  }
89
+ export interface Rect {
90
+ top: number;
91
+ left: number;
92
+ bottom: number;
93
+ right: number;
94
+ }
95
+ export interface AvailableSpace {
96
+ spaceTop: number;
97
+ spaceLeft: number;
98
+ spaceRight: number;
99
+ spaceBottom: number;
100
+ }
89
101
  export {};
@@ -32,4 +32,19 @@ interface RadioButtonProps {
32
32
  * Optional.
33
33
  */
34
34
  disabled?: boolean;
35
+ /**
36
+ * Indicates whether the radio button show the tooltip.
37
+ * Optional.
38
+ */
39
+ showTooltip?: boolean;
40
+ /**
41
+ * The content of the tooltip.
42
+ * Optional.
43
+ */
44
+ tooltipChildren?: React.ReactNode;
45
+ /**
46
+ * The content of the tooltip.
47
+ * Optional.
48
+ */
49
+ tooltipTitle?: React.ReactNode;
35
50
  }
@@ -4,5 +4,6 @@ declare const meta: Meta<typeof RadioGroup>;
4
4
  type Story = StoryObj<typeof RadioGroup>;
5
5
  export declare const Controlled: Story;
6
6
  export declare const WithDisabledOption: Story;
7
- export declare const DisabledSelcted: Story;
7
+ export declare const DisabledSelected: Story;
8
+ export declare const WithToolTipIcon: Story;
8
9
  export default meta;
@@ -15,6 +15,21 @@ interface Option {
15
15
  * Optional.
16
16
  */
17
17
  disabled?: boolean;
18
+ /**
19
+ * Indicates whether the radio button show the tooltip.
20
+ * Optional.
21
+ */
22
+ showTooltip?: boolean;
23
+ /**
24
+ * The content of the tooltip.
25
+ * Optional.
26
+ */
27
+ tooltipChildren?: React.ReactNode;
28
+ /**
29
+ * The content of the tooltip.
30
+ * Optional.
31
+ */
32
+ tooltipTitle?: React.ReactNode;
18
33
  }
19
34
  /**
20
35
  * Props for the RadioGroup component.
@@ -1,4 +1,4 @@
1
1
  import { SelectProps } from './types';
2
2
  import './Select.scss';
3
- declare const Select: ({ label, showLabel, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, optionsRequired, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const Select: ({ label, showLabel, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, optionsRequired, selectedOptionColor, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Select;
@@ -16,6 +16,10 @@ export interface SelectProps {
16
16
  * optionsRequired:false prop removes options from dropdown & shows static label only
17
17
  */
18
18
  optionsRequired?: boolean;
19
+ /**
20
+ * selectedOptionColor prop provides the custom color for the selected option
21
+ */
22
+ selectedOptionColor?: string;
19
23
  }
20
24
  export interface DrowdownPosition {
21
25
  positionX: number;
@@ -1,4 +1,4 @@
1
1
  import './Table.scss';
2
2
  import { TableProps } from './Types';
3
- declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, height, className, }: TableProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, height, className, tableHeadClass, tableBodyRowClass, }: TableProps) => import("react/jsx-runtime").JSX.Element | null;
4
4
  export default Table;
@@ -95,4 +95,12 @@ export interface TableProps {
95
95
  * classNames for the table container
96
96
  */
97
97
  className?: string;
98
+ /**
99
+ * classNames for the table Header container
100
+ */
101
+ tableHeadClass?: string;
102
+ /**
103
+ * classNames for the table Row container
104
+ */
105
+ tableBodyRowClass?: string;
98
106
  }
@@ -7,6 +7,7 @@ interface ColumnDataProps {
7
7
  isClickable?: boolean;
8
8
  minWidth?: string;
9
9
  cell?: (e: any) => JSX.Element | string | ReactNode;
10
+ actions?: (e: any) => JSX.Element | string | ReactNode;
10
11
  }
11
12
  interface ObjectProps {
12
13
  [key: string]: any;
package/lib/index.d.ts CHANGED
@@ -530,9 +530,13 @@ interface InputProps {
530
530
  * background of the input field prop
531
531
  */
532
532
  transparentBackground?: boolean;
533
+ /**
534
+ * size for the input field
535
+ */
536
+ size?: 'small' | 'medium';
533
537
  }
534
538
 
535
- declare const Input: ({ type, variant, name, label, disabled, required, placeholder, value, helperText, error, noBorder, className, onChange, onBlur, onFocus, autoComplete, minValue, maxValue, transparentBackground, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
539
+ declare const Input: ({ type, variant, name, label, disabled, required, placeholder, value, helperText, error, noBorder, className, onChange, onBlur, onFocus, autoComplete, minValue, maxValue, transparentBackground, size, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
536
540
 
537
541
  type Status$1 = {
538
542
  status: 'Passed' | 'Failed' | 'Warning' | 'Skipped' | 'passed' | 'failed' | 'warning' | 'skipped';
@@ -602,6 +606,10 @@ interface SelectProps$1 {
602
606
  * optionsRequired:false prop removes options from dropdown & shows static label only
603
607
  */
604
608
  optionsRequired?: boolean;
609
+ /**
610
+ * selectedOptionColor prop provides the custom color for the selected option
611
+ */
612
+ selectedOptionColor?: string;
605
613
  }
606
614
  interface Option$2 {
607
615
  label: string | ReactNode;
@@ -609,7 +617,7 @@ interface Option$2 {
609
617
  disabled?: boolean;
610
618
  }
611
619
 
612
- declare const Select: ({ label, showLabel, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, optionsRequired, }: SelectProps$1) => react_jsx_runtime.JSX.Element;
620
+ declare const Select: ({ label, showLabel, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, optionsRequired, selectedOptionColor, }: SelectProps$1) => react_jsx_runtime.JSX.Element;
613
621
 
614
622
  interface TextareaProps {
615
623
  /**
@@ -909,9 +917,17 @@ interface TableProps {
909
917
  * classNames for the table container
910
918
  */
911
919
  className?: string;
920
+ /**
921
+ * classNames for the table Header container
922
+ */
923
+ tableHeadClass?: string;
924
+ /**
925
+ * classNames for the table Row container
926
+ */
927
+ tableBodyRowClass?: string;
912
928
  }
913
929
 
914
- declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, height, className, }: TableProps) => react_jsx_runtime.JSX.Element | null;
930
+ declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, height, className, tableHeadClass, tableBodyRowClass, }: TableProps) => react_jsx_runtime.JSX.Element | null;
915
931
 
916
932
  /**
917
933
  * Props for the Add Resource Button component.
@@ -1282,6 +1298,7 @@ interface ColumnDataProps {
1282
1298
  isClickable?: boolean;
1283
1299
  minWidth?: string;
1284
1300
  cell?: (e: any) => JSX.Element | string | ReactNode;
1301
+ actions?: (e: any) => JSX.Element | string | ReactNode;
1285
1302
  }
1286
1303
  interface ObjectProps {
1287
1304
  [key: string]: any;
@@ -1740,6 +1757,17 @@ interface ExecutionContext {
1740
1757
 
1741
1758
  declare const SequentialConnectingBranch: ({ machineInstances, machineColumnWidth, machineColumnCount, machineInstance, selectedMachine, machineOptionsList, onMachineSelectionChange, }: SequentialConnectingBranchProps) => react_jsx_runtime.JSX.Element;
1742
1759
 
1760
+ interface AttachmentUploaderProps {
1761
+ label: string;
1762
+ selectedFiles: File[];
1763
+ onFilesChange: (files: File[]) => void;
1764
+ disabled?: boolean;
1765
+ maxFileSizeMB?: number;
1766
+ maxFiles?: number;
1767
+ }
1768
+
1769
+ declare const AttachmentButton: React__default.FC<AttachmentUploaderProps>;
1770
+
1743
1771
  type valueType$1 = any;
1744
1772
  declare const checkEmpty: (value: valueType$1) => boolean;
1745
1773
 
@@ -1787,4 +1815,4 @@ declare const throttle: (func: Callback, limit: number) => ThrottledFunction;
1787
1815
 
1788
1816
  declare const truncateText: (text: string, maxLength: number) => string;
1789
1817
 
1790
- export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, Button, Checkbox, Chip, Col, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExpandableMenu, FileDropzone, Form, HighlightText, Icon, IconButton, Input, InputWithDropdown, MachineInputField, MenuOption, MiniModal, Modal, MultiSelect, NlpInput as NLPInput, Paper, PieChart, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toggle, Tooltip, Typography, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, throttle, truncateText, useTheme };
1818
+ export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachmentButton, Button, Checkbox, Chip, Col, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExpandableMenu, FileDropzone, Form, HighlightText, Icon, IconButton, Input, InputWithDropdown, MachineInputField, MenuOption, MiniModal, Modal, MultiSelect, NlpInput as NLPInput, Paper, PieChart, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toggle, Tooltip, Typography, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, throttle, truncateText, useTheme };