pixel-react-excel-sheet 1.0.31 → 1.0.32

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 (69) hide show
  1. package/lib/components/Charts/DashboardDonutChart/types.d.ts +1 -0
  2. package/lib/components/ConditionalDropdown/types.d.ts +1 -1
  3. package/lib/components/ConnectingBranch/ConnectingBranch.d.ts +2 -1
  4. package/lib/components/ConnectingBranch/data.d.ts +19 -33
  5. package/lib/components/ConnectingBranch/types.d.ts +10 -0
  6. package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.d.ts +7 -1
  7. package/lib/components/FileDropzone/types.d.ts +12 -4
  8. package/lib/components/MachineInputField/MachineInputField.d.ts +4 -1
  9. package/lib/components/Select/types.d.ts +1 -1
  10. package/lib/components/TextArea/Textarea.d.ts +1 -1
  11. package/lib/components/TextArea/Types.d.ts +1 -0
  12. package/lib/components/ThemeProvider/types.d.ts +1 -1
  13. package/lib/index.d.ts +88 -66
  14. package/lib/index.esm.js +175 -103
  15. package/lib/index.esm.js.map +1 -1
  16. package/lib/index.js +175 -103
  17. package/lib/index.js.map +1 -1
  18. package/lib/tsconfig.tsbuildinfo +1 -1
  19. package/lib/utils/validateFile/validateFile.d.ts +2 -0
  20. package/package.json +2 -2
  21. package/src/assets/Themes/BaseTheme.scss +1 -0
  22. package/src/assets/Themes/BlueTheme.scss +279 -0
  23. package/src/assets/Themes/DarkTheme.scss +1 -0
  24. package/src/assets/Themes/Theme.scss +5 -0
  25. package/src/components/AppHeader/AppHeader.tsx +4 -2
  26. package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.tsx +1 -0
  27. package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +3 -1
  28. package/src/components/Charts/DashboardDonutChart/types.ts +1 -0
  29. package/src/components/ConditionalDropdown/ConditionalDropdown.stories.tsx +1 -1
  30. package/src/components/ConditionalDropdown/types.ts +1 -1
  31. package/src/components/ConnectingBranch/BranchComponents/MachineInstances.tsx +94 -79
  32. package/src/components/ConnectingBranch/ConnectingBranch.scss +31 -45
  33. package/src/components/ConnectingBranch/ConnectingBranch.stories.tsx +33 -1
  34. package/src/components/ConnectingBranch/ConnectingBranch.tsx +36 -23
  35. package/src/components/ConnectingBranch/{data.ts → data.tsx} +106 -17
  36. package/src/components/ConnectingBranch/types.ts +21 -0
  37. package/src/components/Excel/ExcelFile/ExcelFile.tsx +1 -1
  38. package/src/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.tsx +7 -5
  39. package/src/components/Excel/ExcelFile/ExcelFileComponents/FloatingRect.tsx +6 -1
  40. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +30 -11
  41. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +65 -19
  42. package/src/components/Excel/ExcelFile/ExcelFileComponents/actions.ts +14 -0
  43. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducer.ts +16 -0
  44. package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +6 -5
  45. package/src/components/FileDropzone/Dropzone.tsx +3 -0
  46. package/src/components/FileDropzone/FileDropzone.scss +18 -0
  47. package/src/components/FileDropzone/FileDropzone.stories.tsx +75 -7
  48. package/src/components/FileDropzone/FileDropzone.tsx +2 -0
  49. package/src/components/FileDropzone/RadioFilePreview.tsx +7 -3
  50. package/src/components/FileDropzone/types.ts +13 -4
  51. package/src/components/Icon/iconList.ts +2 -2
  52. package/src/components/InputWithDropdown/InputWithDropdown.tsx +1 -1
  53. package/src/components/MachineInputField/MachineInputField.tsx +67 -70
  54. package/src/components/Search/Search.tsx +3 -1
  55. package/src/components/Select/types.ts +1 -1
  56. package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +1 -0
  57. package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +2 -8
  58. package/src/components/TextArea/Textarea.tsx +2 -0
  59. package/src/components/TextArea/Types.ts +3 -0
  60. package/src/components/ThemeProvider/types.ts +1 -1
  61. package/src/utils/validateFile/validateFile.stories.tsx +49 -0
  62. package/src/utils/validateFile/validateFile.ts +39 -0
  63. package/src/components/SequentialConnectingBranch/components/AddBrowserModal/AddBrowserModal.scss +0 -51
  64. package/src/components/SequentialConnectingBranch/components/AddBrowserModal/AddBrowserModal.tsx +0 -107
  65. package/src/components/SequentialConnectingBranch/components/AddBrowserModal/types.ts +0 -5
  66. package/src/components/SequentialConnectingBranch/components/DatasetListModal/DatasetListModal.scss +0 -31
  67. package/src/components/SequentialConnectingBranch/components/DatasetListModal/DatasetListModal.tsx +0 -85
  68. package/src/components/SequentialConnectingBranch/components/DatasetListModal/types.ts +0 -4
  69. /package/src/assets/icons/{impactList.svg → impact_list.svg} +0 -0
@@ -1,107 +0,0 @@
1
- import { forwardRef, RefObject } from 'react';
2
- import MiniModal from '../../../MiniModal';
3
- import Typography from '../../../Typography';
4
- import './AddBrowserModal.scss';
5
- import Select from '../../../Select';
6
- import Button from '../../../Button';
7
- import Toggle from '../../../Toggle';
8
- import Input from '../../../Input/Input';
9
- import { AddBrowserModalProps } from './types';
10
-
11
- const AddBrowserModal = forwardRef<HTMLButtonElement, AddBrowserModalProps>(
12
- (props, ref) => {
13
- // TODO: WILL BE REMOVE IN THE FUTURE
14
- const selectOptions = [
15
- { label: 'Execution Environment', inputName: 'number of runs' },
16
- { label: 'Browser', inputName: 'Browser Version' },
17
- { label: 'Android Device', inputName: 'os version' },
18
- { label: 'IOS Device', inputName: 'os version-1' },
19
- ];
20
-
21
- const renderSelectOptions = () => (
22
- <div>
23
- {selectOptions.map(({ label, inputName }, index) => (
24
- <div className="ff-branch-select-input-wrapper" key={index}>
25
- <Select
26
- optionsList={[]}
27
- onChange={() => {}}
28
- label={label}
29
- className="ff-select-browser"
30
- />
31
- <div className="ff-branch-input-wrapper">
32
- <Input
33
- value="0"
34
- label="Number of Runs"
35
- type="number"
36
- onChange={() => {}}
37
- name={inputName}
38
- className="ff-input-browser"
39
- />
40
- </div>
41
- </div>
42
- ))}
43
- </div>
44
- );
45
-
46
- const renderFooterContent = () => (
47
- <div className="ff-connecting-modal-footer-wrapper">
48
- <div className="ff-branch-toggle-wrapper">
49
- <Typography as="span" lineHeight="32px">
50
- Run in Headless Mode
51
- </Typography>
52
- <Toggle />
53
- </div>
54
- <div className="ff-datalist-button-wrapper">
55
- <Button label="Cancel" variant="tertiary" />
56
- <Button label="Update" variant="primary" />
57
- </div>
58
- </div>
59
- );
60
-
61
- return (
62
- <div>
63
- <MiniModal
64
- anchorRef={ref as RefObject<HTMLButtonElement>}
65
- headerProps={
66
- <div className="ff-connecting-datalist-modal-header-wrapper">
67
- <Typography
68
- as="span"
69
- color="var(--ff-connecting-branch-modal-header)"
70
- fontWeight="semi-bold"
71
- fontSize={12}
72
- lineHeight="38px"
73
- >
74
- Add Browser / Device
75
- </Typography>
76
- </div>
77
- }
78
- childContent={
79
- <div className="ff-connecting-modal-child-wrapper">
80
- {renderSelectOptions()}
81
- </div>
82
- }
83
- footerContent={renderFooterContent()}
84
- cancelButtonProps={{
85
- text: 'Cancel',
86
-
87
- // TODO: DEMO PURPOSE AND WILL BE REMOVED IN THE FUTURE
88
- onClick: props.onUpdateAddBrowser,
89
- }}
90
- proceedButtonProps={{
91
- text: 'Proceed',
92
- // TODO: DEMO PURPOSE AND WILL BE REMOVED IN THE FUTURE
93
- onClick: props.onUpdateAddBrowser,
94
- }}
95
- modalPosition="right"
96
- isPopOver
97
- leftTopArrow
98
- extraRightSpace={{ leftTopArrow: 45 }}
99
- extraLeftSpace={{ rightAlignModal: 115 }}
100
- {...props}
101
- />
102
- </div>
103
- );
104
- }
105
- );
106
-
107
- export default AddBrowserModal;
@@ -1,5 +0,0 @@
1
- export interface AddBrowserModalProps {
2
-
3
- // TODO: DEMO PURPOSE AND WILL BE REMOVED IN THE FUTURE
4
- onUpdateAddBrowser: () => void;
5
- }
@@ -1,31 +0,0 @@
1
- .ff-datalist-modal-header-wrapper,
2
- .ff-datalist-modal-child-wrapper,
3
- .ff-datalist-modal-footer-wrapper {
4
- margin: 0 8px;
5
- }
6
-
7
- .ff-datalist-modal-header-wrapper {
8
- width: 255px;
9
- border-bottom: 1px solid var(--ff-connecting-branch-modal-border);
10
- display: flex;
11
- align-items: center;
12
- }
13
-
14
- .ff-datalist-modal-child-wrapper {
15
- .variable {
16
- margin: 8px 0;
17
- }
18
- }
19
-
20
- .ff-datalist-modal-footer-wrapper {
21
- display: flex;
22
- justify-content: space-between;
23
- border-top: 1px solid var(--ff-connecting-branch-modal-border);
24
-
25
- .datalist-button-wrapper {
26
- display: flex;
27
- gap: 10px;
28
- margin-top: 4px;
29
- justify-content: flex-end;
30
- }
31
- }
@@ -1,85 +0,0 @@
1
- import { forwardRef, RefObject } from 'react';
2
- import MiniModal from '../../../MiniModal';
3
- import Typography from '../../../Typography';
4
- import './DatasetListModal.scss';
5
- import Select from '../../../Select';
6
- import Checkbox from '../../../Checkbox';
7
- import Button from '../../../Button';
8
- import { DatasetListModalProps } from './types';
9
-
10
- const DatasetListModal = forwardRef<HTMLButtonElement, DatasetListModalProps>(
11
- (props, ref) => {
12
- const selectOptions = [
13
- { label: 'Project Environment Variable' },
14
- { label: 'Global Variables' },
15
- { label: 'Test Data Set' },
16
- ];
17
-
18
- const renderSelectOptions = () =>
19
- selectOptions.map(({ label }, idx) => (
20
- <Select
21
- key={idx}
22
- optionsList={[]}
23
- onChange={() => {}}
24
- label={label}
25
- className="variable"
26
- />
27
- ));
28
-
29
- const renderFooterContent = () => (
30
- <div className="ff-datalist-modal-footer-wrapper">
31
- <Checkbox checked={false} label="Set as Default" />
32
- <div className="datalist-button-wrapper">
33
- <Button label="Cancel" variant="tertiary" />
34
- <Button label="Update" variant="primary" />
35
- </div>
36
- </div>
37
- );
38
-
39
- return (
40
- <div>
41
- <MiniModal
42
- anchorRef={ref as RefObject<HTMLButtonElement>}
43
- headerProps={
44
- <div className="ff-datalist-modal-header-wrapper">
45
- <Typography
46
- as="span"
47
- color="var(--ff-connecting-branch-modal-header)"
48
- fontWeight="semi-bold"
49
- fontSize={12}
50
- lineHeight="38px"
51
- >
52
- Data Sets
53
- </Typography>
54
- </div>
55
- }
56
- childContent={
57
- <div className="ff-datalist-modal-child-wrapper">
58
- {renderSelectOptions()}
59
- </div>
60
- }
61
- footerContent={renderFooterContent()}
62
- cancelButtonProps={{
63
- text: 'Cancel',
64
-
65
- // TODO: DEMO PURPOSE AND WILL BE REMOVED IN THE FUTURE
66
- onClick: props?.onUpdateDatasetList,
67
- }}
68
- proceedButtonProps={{
69
- text: 'Proceed',
70
- // TODO: DEMO PURPOSE AND WILL BE REMOVED IN THE FUTURE
71
- onClick: props?.onUpdateDatasetList,
72
- }}
73
- modalPosition="right"
74
- isPopOver
75
- leftTopArrow
76
- extraRightSpace={{ leftTopArrow: 40 }}
77
- extraLeftSpace={{ rightAlignModal: 110 }}
78
- {...props}
79
- />
80
- </div>
81
- );
82
- }
83
- );
84
-
85
- export default DatasetListModal;
@@ -1,4 +0,0 @@
1
- export interface DatasetListModalProps {
2
- // TODO: DEMO PURPOSE AND WILL BE REMOVED IN THE FUTURE
3
- onUpdateDatasetList: () => void;
4
- }