pixel-react 1.8.9 → 1.9.0

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 (120) hide show
  1. package/lib/components/Button/Button.stories.d.ts +0 -1
  2. package/lib/components/Drawer/Drawer.stories.d.ts +0 -5
  3. package/lib/components/Form/Form.stories.d.ts +5 -6
  4. package/lib/components/Icon/Icon.stories.d.ts +0 -1
  5. package/lib/components/IconButton/IconButton.stories.d.ts +0 -1
  6. package/lib/components/MenuOption/MenuOption.stories.d.ts +0 -1
  7. package/lib/components/MiniModal/MiniModal.stories.d.ts +1 -2
  8. package/lib/components/MultiSelect/MultiSelect.stories.d.ts +0 -2
  9. package/lib/components/RadioGroup/RadioGroup.stories.d.ts +1 -2
  10. package/lib/components/Select/Select.stories.d.ts +0 -1
  11. package/lib/components/Select/components/Dropdown/Dropdown.d.ts +1 -1
  12. package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +0 -2
  13. package/lib/components/Table/Table.stories.d.ts +0 -2
  14. package/lib/components/Tabs/types.d.ts +1 -0
  15. package/lib/components/ThemeProvider/CustomThemeProvider.d.ts +8 -0
  16. package/lib/hooks/useCustomThemeProvider.d.ts +11 -0
  17. package/lib/index.d.ts +1 -0
  18. package/lib/index.esm.js +3 -1
  19. package/lib/index.esm.js.map +1 -1
  20. package/lib/index.js +3 -1
  21. package/lib/index.js.map +1 -1
  22. package/lib/utils/ffID/ffID.stories.d.ts +1 -1
  23. package/package.json +1 -1
  24. package/src/assets/icons/approval_pending.svg +8 -8
  25. package/src/assets/icons/configuration.svg +3 -3
  26. package/src/assets/icons/defects.svg +8 -8
  27. package/src/assets/icons/element.svg +4 -4
  28. package/src/assets/icons/project_element.svg +4 -4
  29. package/src/assets/icons/step_group.svg +10 -10
  30. package/src/assets/icons/variable.svg +3 -3
  31. package/src/assets/icons/web_service_icon.svg +3 -3
  32. package/src/components/Tabs/Tabs.scss +19 -0
  33. package/src/components/Tabs/Tabs.tsx +9 -0
  34. package/src/components/Tabs/types.ts +1 -0
  35. package/lib/1fb4472b34e4fe07.css +0 -1
  36. package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
  37. package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
  38. package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
  39. package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
  40. package/lib/components/AddButton/AddButton.d.ts +0 -5
  41. package/lib/components/AddButton/AddButton.stories.d.ts +0 -6
  42. package/lib/components/AddButton/index.d.ts +0 -1
  43. package/lib/components/AddButton/types.d.ts +0 -4
  44. package/lib/components/AddVariables/AddVariables.d.ts +0 -5
  45. package/lib/components/AddVariables/index.d.ts +0 -1
  46. package/lib/components/AddVariables/types.d.ts +0 -35
  47. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +0 -7
  48. package/lib/components/AppHeader/AppHeader.stories.d.ts +0 -7
  49. package/lib/components/AttachImage/AttachImage.stories.d.ts +0 -7
  50. package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +0 -9
  51. package/lib/components/Avatar/Avatar.stories.d.ts +0 -10
  52. package/lib/components/Charts/BarChart/BarChart.stories.d.ts +0 -6
  53. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +0 -7
  54. package/lib/components/Charts/IconRadialChart/IconRadialChart.stories.d.ts +0 -8
  55. package/lib/components/Charts/LineChart/LineChart.stories.d.ts +0 -7
  56. package/lib/components/Charts/MultiRadialChart/MultiRadialChart.stories.d.ts +0 -8
  57. package/lib/components/Charts/PieChart/PieChart.stories.d.ts +0 -7
  58. package/lib/components/ConnectingBranch/ConnectingBranch.stories.d.ts +0 -6
  59. package/lib/components/EditTextField/EditTextField.stories.d.ts +0 -10
  60. package/lib/components/Editor/Editor.stories.d.ts +0 -6
  61. package/lib/components/Excel/ContextMenu/ContextMenu.d.ts +0 -4
  62. package/lib/components/Excel/ExcelFile.stories.d.ts +0 -6
  63. package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +0 -14
  64. package/lib/components/ExcelFile/ColorBarSelector/ColorBarSelector.d.ts +0 -8
  65. package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +0 -4
  66. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +0 -7
  67. package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +0 -4
  68. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +0 -5
  69. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +0 -3
  70. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +0 -5
  71. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +0 -5
  72. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +0 -8
  73. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +0 -10
  74. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +0 -3
  75. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +0 -3
  76. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +0 -5
  77. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +0 -3
  78. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +0 -80
  79. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +0 -3
  80. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +0 -174
  81. package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +0 -1
  82. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +0 -8
  83. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +0 -22
  84. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +0 -17
  85. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +0 -2
  86. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +0 -21
  87. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +0 -3
  88. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +0 -24
  89. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +0 -13
  90. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +0 -67
  91. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +0 -22
  92. package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +0 -11
  93. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +0 -27
  94. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +0 -95
  95. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +0 -178
  96. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +0 -3
  97. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +0 -3
  98. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +0 -44
  99. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +0 -19
  100. package/lib/components/ExcelFile/ExcelFile.stories.d.ts +0 -6
  101. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +0 -12
  102. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +0 -15
  103. package/lib/components/ExcelFile/ImportExcelStyles.d.ts +0 -24
  104. package/lib/components/ExcelFile/Types.d.ts +0 -129
  105. package/lib/components/ExcelFile/index.d.ts +0 -1
  106. package/lib/components/FF_Captcha/captcha.stories.d.ts +0 -8
  107. package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +0 -7
  108. package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +0 -13
  109. package/lib/components/MachineInputField/MachineInputField.stories.d.ts +0 -6
  110. package/lib/components/ModulesChip/ModuleChip.stories.d.ts +0 -6
  111. package/lib/components/NLPInput/NlpInput.stories.d.ts +0 -7
  112. package/lib/components/NLPInput/type.d.ts +0 -70
  113. package/lib/components/Paper/Paper.stories.d.ts +0 -11
  114. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +0 -6
  115. package/lib/components/StatusCard/StatusCard.stories.d.ts +0 -11
  116. package/lib/components/Toastify/Toastify.stories.d.ts +0 -6
  117. package/lib/components/VariableInput/VariableInput.stories.d.ts +0 -6
  118. package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +0 -7
  119. package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +0 -6
  120. package/lib/utils/getSequentialPayload/getSequentialPayload.stories.d.ts +0 -10
@@ -1,129 +0,0 @@
1
- interface ExcelFileProps {
2
- /** The Excel data containing sheets and their content */
3
- excelData: {
4
- sheets: WorkSheet[];
5
- };
6
- /** Optional: Provide context menu options for actions like right-click */
7
- contextOption?: {
8
- name: string;
9
- title: React.ReactNode;
10
- action: () => void;
11
- }[];
12
- /** Controls whether the toolbar is shown, disabled, or hidden */
13
- toolbar?: 'show' | 'disable' | 'hide';
14
- /** Callback function to save the Excel data */
15
- onSave?: (excelData?: any) => void;
16
- }
17
- interface WorkSheet {
18
- /** The name of the worksheet */
19
- sheetName: string;
20
- /** 2D array of worksheet data (cells) */
21
- data: WorkData[][];
22
- }
23
- interface WorkData {
24
- /** Value of the cell */
25
- value: string;
26
- /** Styling options for the cell */
27
- style: React.CSSProperties;
28
- type?: boolean;
29
- }
30
- /** A generic type to represent a 2D matrix of any type (or undefined values) */
31
- type Matrix<T> = (T | undefined)[][];
32
- interface ContextAction {
33
- /** Name of the right-click option */
34
- name: string;
35
- /** Display title of the right-click menu option */
36
- title: React.ReactNode;
37
- /** The action that occurs when the right-click menu option is selected */
38
- action: () => void;
39
- }
40
- interface ContextOption {
41
- /** Type of the context option ('cell', 'row', 'column') */
42
- name: string;
43
- /** Array of context menu actions for right-click options */
44
- value: ContextAction[];
45
- }
46
- interface ContextMenuState {
47
- /** Whether the context menu is visible */
48
- visible: boolean;
49
- /** X-coordinate position for the context menu */
50
- x: number;
51
- /** Y-coordinate position for the context menu */
52
- y: number;
53
- /** Type of the context menu ('cell', 'row', 'column', or 'sheet_options') */
54
- type: 'cell' | 'row' | 'column' | 'sheet_options' | null;
55
- }
56
- interface SelectedCell {
57
- /** The row index of the selected cell */
58
- row: number;
59
- /** The column index of the selected cell */
60
- column: number;
61
- }
62
- interface ColorContainer {
63
- /** The color used for the text (hex code) */
64
- color: string;
65
- /** The background color used for the cell (hex code) */
66
- backgroundColor: string;
67
- /** The border color used for the cell (hex code) */
68
- borderColor: string;
69
- }
70
- interface SelectedValue {
71
- /** The value inside the selected cell */
72
- value: string;
73
- /** The row index of the selected cell */
74
- row: number;
75
- /** The column index of the selected cell */
76
- column: number;
77
- /** The column represented as an alphabetical string ('A', 'B') */
78
- alphaCol: string;
79
- /** The style applied to the selected cell */
80
- style: React.CSSProperties;
81
- /** The sheet name where the cell is located */
82
- sheet: string;
83
- }
84
- interface ExcelSheetBarProps {
85
- /** Object containing details about the file, including sheet names */
86
- fileDetails: {
87
- sheetNames: string[];
88
- };
89
- /** Function to handle sheet change events */
90
- handleSheetChange: (name: string, index: number) => void;
91
- /** Function to open the context menu on a sheet */
92
- contextMenu: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, name: string, index: number) => void;
93
- /** Function to add a new sheet */
94
- addSheet: () => void;
95
- /** Object representing the currently selected sheet */
96
- selectedSheet: {
97
- name: string;
98
- index: number;
99
- };
100
- /** Function to update the context Type */
101
- contextSelect: (event: React.MouseEvent) => void;
102
- }
103
- interface ContextMenuProps {
104
- /** Custom context menu options */
105
- customContext: {
106
- name: string;
107
- title: React.ReactNode;
108
- action: () => void;
109
- }[];
110
- /** Object that holds different context actions based on the type (cell, row, column, sheet_options) */
111
- contextAction: {
112
- /** Function to add a row */
113
- addRow: () => void;
114
- /** Function to delete a row */
115
- deleteRow: () => void;
116
- /** Function to add a column */
117
- addColumn: () => void;
118
- /** Function to delete a column */
119
- deleteColumn: () => void;
120
- /** Function to add a new sheet */
121
- addSheet: () => void;
122
- /** Function to delete a sheet */
123
- deleteSheet: () => void;
124
- };
125
- /** The state of the context menu, controlling its visibility and position */
126
- contextData: ContextMenuState;
127
- /** Function to update the context menu state */
128
- setContextData: React.Dispatch<React.SetStateAction<ContextMenuState>>;
129
- }
@@ -1 +0,0 @@
1
- export { default } from './ExcelFile/ExcelFile';
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import Recaptcha from './Recaptcha';
3
- declare const meta: Meta<typeof Recaptcha>;
4
- type Story = StoryObj<typeof Recaptcha>;
5
- export declare const Default: Story;
6
- export declare const WithError: Story;
7
- export declare const WithCustomTheme: Story;
8
- export default meta;
@@ -1,7 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import IconRadioGroup from './IconRadioGroup';
3
- declare const meta: Meta<typeof IconRadioGroup>;
4
- type Story = StoryObj<typeof IconRadioGroup>;
5
- export declare const Default: Story;
6
- export declare const WithDisabledOption: Story;
7
- export default meta;
@@ -1,13 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import LabelEditTextField from './LabelEditTextField';
3
- import '../../assets/styles/_colors.scss';
4
- import './LabelEditTextField.scss';
5
- declare const meta: Meta<typeof LabelEditTextField>;
6
- type Story = StoryObj<typeof LabelEditTextField>;
7
- export declare const textField: Story;
8
- export declare const textFieldWithOutLabel: Story;
9
- export declare const openTextFieldWithOutLabel: Story;
10
- export declare const textFieldWithDropdown: Story;
11
- export declare const textFieldWithHighlight: Story;
12
- export declare const openLabelEditTextField: Story;
13
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import MachineInputField from './MachineInputField';
3
- declare const meta: Meta<typeof MachineInputField>;
4
- type Story = StoryObj<typeof MachineInputField>;
5
- export declare const Primary: Story;
6
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import ModuleChip from './ModuleChip';
3
- declare const meta: Meta<typeof ModuleChip>;
4
- type Story = StoryObj<typeof ModuleChip>;
5
- export declare const Controlled: Story;
6
- export default meta;
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import NlpInput from './NlpInput';
3
- declare const meta: Meta<typeof NlpInput>;
4
- type Story = StoryObj<typeof NlpInput>;
5
- export declare const Primary: Story;
6
- export declare const Disable: Story;
7
- export default meta;
@@ -1,70 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface SelectProps {
3
- label?: string;
4
- showLabel?: boolean;
5
- optionsList: any[];
6
- selectedOption?: Option;
7
- onChange: (option: Option) => void;
8
- errorMsg?: string;
9
- className?: string;
10
- optionZIndex?: number;
11
- disabled?: boolean;
12
- borderRadius?: boolean;
13
- showBorder?: boolean;
14
- required?: boolean;
15
- }
16
- export interface DrowdownPosition {
17
- positionX: number;
18
- positionY: number;
19
- width: number;
20
- fromBottom: number;
21
- }
22
- export interface SelectState {
23
- isInputFocused: boolean;
24
- iconColor: string;
25
- isIconClick: boolean;
26
- showOptions: boolean;
27
- options: any[];
28
- option: string;
29
- dropdownPosition: DrowdownPosition;
30
- }
31
- export type SelectAction = {
32
- type: 'FOCUS_INPUT';
33
- } | {
34
- type: 'BLUR_INPUT';
35
- payload: {
36
- optionsList: Option[];
37
- option: Option['projectId'];
38
- };
39
- } | {
40
- type: 'MOUSE_ENTER';
41
- } | {
42
- type: 'MOUSE_LEAVE';
43
- } | {
44
- type: 'UPDATE_DROPDOWN_POSITION';
45
- payload: {
46
- positionX: number;
47
- positionY: number;
48
- width: number;
49
- fromBottom: number;
50
- };
51
- } | {
52
- type: 'UPDATE_OPTION';
53
- payload: string;
54
- } | {
55
- type: 'UPDATE_OPTION_LIST';
56
- payload: any[];
57
- } | {
58
- type: 'SHOW_ERROR';
59
- payload: {
60
- optionsList: any[];
61
- option: Option['projectId'];
62
- };
63
- };
64
- export interface Option {
65
- displayName: string | ReactNode;
66
- projectId: string;
67
- nlpType: string;
68
- platform: string;
69
- disabled?: boolean;
70
- }
@@ -1,11 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import Paper from './Paper';
3
- import './Paper.scss';
4
- declare const meta: Meta<typeof Paper>;
5
- type Story = StoryObj<typeof Paper>;
6
- export declare const Default: Story;
7
- export declare const PrimaryPaper: Story;
8
- export declare const PaperWithLowShadow: Story;
9
- export declare const PaperWithHighShadow: Story;
10
- export declare const PaperWithRounded: Story;
11
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import SequentialConnectingBranch from './SequentialConnectingBranch';
3
- declare const meta: Meta<typeof SequentialConnectingBranch>;
4
- type Story = StoryObj<typeof SequentialConnectingBranch>;
5
- export declare const Primary: Story;
6
- export default meta;
@@ -1,11 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import Card from './StatusCard';
3
- import { CardProps } from './types';
4
- declare const meta: Meta<typeof Card>;
5
- export default meta;
6
- type Story = StoryObj<CardProps>;
7
- export declare const Passed: Story;
8
- export declare const Failed: Story;
9
- export declare const Warning: Story;
10
- export declare const Skipped: Story;
11
- export declare const Flaky: Story;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Toastify } from './Toastify';
3
- declare const meta: Meta<typeof Toastify>;
4
- type Story = StoryObj<typeof Toastify>;
5
- export declare const Controlled: Story;
6
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import VariableInput from './VariableInput';
3
- declare const meta: Meta<typeof VariableInput>;
4
- type Story = StoryObj<typeof VariableInput>;
5
- export declare const Default: Story;
6
- export default meta;
@@ -1,7 +0,0 @@
1
- import { findAndInsert } from './findAndInsert';
2
- declare const _default: {
3
- title: string;
4
- component: typeof findAndInsert;
5
- };
6
- export default _default;
7
- export declare const InteractivePlayground: () => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- component: (data: string, publicKey: string) => string | false;
4
- };
5
- export default _default;
6
- export declare const InteractivePlayground: () => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { Meta, StoryObj } from '@storybook/react';
3
- import { MachineExecutionInstanceDataSet } from './types';
4
- declare const SequentialPayloadComponent: React.FC<{
5
- machineInstances: MachineExecutionInstanceDataSet[];
6
- }>;
7
- declare const meta: Meta<typeof SequentialPayloadComponent>;
8
- type Story = StoryObj<typeof SequentialPayloadComponent>;
9
- export declare const Primary: Story;
10
- export default meta;