pixel-react 1.4.6 → 1.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/StyleGuide/ColorPalette/ColorPalette.stories.d.ts +6 -0
  3. package/lib/StyleGuide/Typography/Typography.stories.d.ts +6 -0
  4. package/lib/components/Accordion/Accordion.stories.d.ts +6 -0
  5. package/lib/components/AddResourceButton/AddButton.stories.d.ts +8 -0
  6. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.d.ts +1 -1
  7. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +7 -0
  8. package/lib/components/AllProjectsDropdown/types.d.ts +2 -0
  9. package/lib/components/AppHeader/AppHeader.stories.d.ts +7 -0
  10. package/lib/components/AppHeader/types.d.ts +1 -0
  11. package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
  12. package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
  13. package/lib/components/Button/Button.stories.d.ts +13 -0
  14. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +7 -0
  15. package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +6 -0
  16. package/lib/components/Charts/PieChart/PieChart.stories.d.ts +7 -0
  17. package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +6 -0
  18. package/lib/components/Checkbox/Checkbox.stories.d.ts +8 -0
  19. package/lib/components/Chip/Chip.stories.d.ts +14 -0
  20. package/lib/components/DatePicker/DatePicker.stories.d.ts +9 -0
  21. package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
  22. package/lib/components/Drawer/Drawer.stories.d.ts +12 -0
  23. package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
  24. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +7 -0
  25. package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +4 -0
  26. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +5 -0
  27. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +3 -0
  28. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +5 -0
  29. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +5 -0
  30. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +8 -0
  31. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +10 -0
  32. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +3 -0
  33. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +3 -0
  34. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +5 -0
  35. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +3 -0
  36. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +80 -0
  37. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +3 -0
  38. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +174 -0
  39. package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +1 -0
  40. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +8 -0
  41. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +22 -0
  42. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +17 -0
  43. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -0
  44. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +21 -0
  45. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +3 -0
  46. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +24 -0
  47. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +13 -0
  48. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +67 -0
  49. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +22 -0
  50. package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +11 -0
  51. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +27 -0
  52. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +95 -0
  53. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +178 -0
  54. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +3 -0
  55. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +3 -0
  56. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +44 -0
  57. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +19 -0
  58. package/lib/components/ExcelFile/ExcelFile.stories.d.ts +6 -0
  59. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +12 -0
  60. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +15 -0
  61. package/lib/components/ExcelFile/Types.d.ts +129 -0
  62. package/lib/components/ExcelFile/index.d.ts +1 -0
  63. package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +7 -0
  64. package/lib/components/FF_Captcha/captcha.stories.d.ts +8 -0
  65. package/lib/components/FileDropzone/FileDropzone.stories.d.ts +8 -0
  66. package/lib/components/Form/Form.stories.d.ts +7 -0
  67. package/lib/components/Form/Forms.d.ts +3 -1
  68. package/lib/components/GridLayout/GridLayout.stories.d.ts +8 -0
  69. package/lib/components/HighlightText/HighlightText.stories.d.ts +6 -0
  70. package/lib/components/Icon/Icon.stories.d.ts +8 -0
  71. package/lib/components/IconButton/IconButton.stories.d.ts +7 -0
  72. package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +7 -0
  73. package/lib/components/Input/Input.d.ts +1 -1
  74. package/lib/components/Input/Input.stories.d.ts +9 -0
  75. package/lib/components/Input/types.d.ts +4 -0
  76. package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +9 -0
  77. package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +11 -0
  78. package/lib/components/LazyLoad/LazyLoad.stories.d.ts +6 -0
  79. package/lib/components/MachineInputField/MachineInputField.stories.d.ts +6 -0
  80. package/lib/components/MenuOption/MenuOption.stories.d.ts +16 -0
  81. package/lib/components/MenuOption/types.d.ts +1 -1
  82. package/lib/components/MiniModal/MiniModal.stories.d.ts +10 -0
  83. package/lib/components/Modal/Modal.stories.d.ts +7 -0
  84. package/lib/components/Modal/types.d.ts +4 -2
  85. package/lib/components/ModulesChip/ModuleChip.stories.d.ts +6 -0
  86. package/lib/components/MultiSelect/MultiSelect.stories.d.ts +10 -0
  87. package/lib/components/NLPInput/NlpInput.stories.d.ts +7 -0
  88. package/lib/components/Paper/Paper.stories.d.ts +11 -0
  89. package/lib/components/RadioButton/RadioButton.stories.d.ts +10 -0
  90. package/lib/components/RadioGroup/RadioGroup.stories.d.ts +9 -0
  91. package/lib/components/Search/Search.stories.d.ts +6 -0
  92. package/lib/components/Select/Select.stories.d.ts +13 -0
  93. package/lib/components/Select/components/Dropdown/Dropdown.d.ts +4 -0
  94. package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +17 -0
  95. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +6 -0
  96. package/lib/components/StateDropdown/StateDropdown.stories.d.ts +10 -0
  97. package/lib/components/StatusButton/StatusButton.stories.d.ts +14 -0
  98. package/lib/components/Table/Table.stories.d.ts +13 -0
  99. package/lib/components/TableTree/TableTree.d.ts +2 -1
  100. package/lib/components/TableTree/TableTree.stories.d.ts +7 -0
  101. package/lib/components/Tabs/Tabs.stories.d.ts +9 -0
  102. package/lib/components/TextArea/Textarea.stories.d.ts +9 -0
  103. package/lib/components/Toast/Toast.stories.d.ts +6 -0
  104. package/lib/components/Toastify/Toastify.stories.d.ts +6 -0
  105. package/lib/components/Toggle/Toggle.stories.d.ts +12 -0
  106. package/lib/components/Tooltip/Tooltip.stories.d.ts +15 -0
  107. package/lib/components/Typography/Typography.stories.d.ts +10 -0
  108. package/lib/components/VariableInput/VariableInput.stories.d.ts +6 -0
  109. package/lib/index.d.ts +17 -5
  110. package/lib/index.esm.js +212 -145
  111. package/lib/index.esm.js.map +1 -1
  112. package/lib/index.js +212 -145
  113. package/lib/index.js.map +1 -1
  114. package/lib/tsconfig.tsbuildinfo +1 -1
  115. package/lib/utils/capitalize/capitalize.d.ts +1 -0
  116. package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +6 -0
  117. package/lib/utils/compareArrays/compareArrays.stories.d.ts +6 -0
  118. package/lib/utils/compareObjects/compareObjects.stories.d.ts +6 -0
  119. package/lib/utils/debounce/debounce.stories.d.ts +6 -0
  120. package/lib/utils/ffID/ffID.stories.d.ts +6 -0
  121. package/lib/utils/find/findAndInsert.d.ts +7 -0
  122. package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
  123. package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +7 -0
  124. package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +6 -0
  125. package/lib/utils/getExtension/getExtension.stories.d.ts +6 -0
  126. package/lib/utils/throttle/throttle.stories.d.ts +6 -0
  127. package/lib/utils/truncateText/truncateText.stories.d.ts +6 -0
  128. package/package.json +2 -2
  129. package/src/StyleGuide/ColorPalette/colorPaletteList.ts +82 -12
  130. package/src/assets/Themes/BaseTheme.scss +38 -15
  131. package/src/assets/Themes/DarkTheme.scss +15 -1
  132. package/src/assets/fonts/Poppins-Bold.woff2 +0 -0
  133. package/src/assets/fonts/Poppins-Medium.woff2 +0 -0
  134. package/src/assets/fonts/Poppins-Regular.woff2 +0 -0
  135. package/src/assets/fonts/Poppins-SemiBold.woff2 +0 -0
  136. package/src/assets/icons/Header_preset.svg +13 -0
  137. package/src/assets/icons/add_file.svg +16 -4
  138. package/src/assets/icons/eye_open_icon.svg +2 -9
  139. package/src/assets/icons/hide_access_icon.svg +3 -0
  140. package/src/assets/icons/replace_icon.svg +6 -0
  141. package/src/assets/styles/_fonts.scss +7 -4
  142. package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +58 -8
  143. package/src/components/AllProjectsDropdown/AllProjectsDropdown.stories.tsx +83 -75
  144. package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +31 -18
  145. package/src/components/AllProjectsDropdown/types.ts +2 -0
  146. package/src/components/AppHeader/AppHeader.scss +2 -2
  147. package/src/components/AppHeader/AppHeader.stories.tsx +5 -1
  148. package/src/components/AppHeader/AppHeader.tsx +108 -101
  149. package/src/components/AppHeader/types.ts +1 -0
  150. package/src/components/AttachmentButton/AttachmentButton.tsx +10 -5
  151. package/src/components/EditTextField/EditTextField.tsx +3 -5
  152. package/src/components/Form/Form.stories.tsx +4 -8
  153. package/src/components/Form/Forms.tsx +11 -4
  154. package/src/components/Icon/iconList.ts +9 -3
  155. package/src/components/Input/Input.scss +5 -0
  156. package/src/components/Input/Input.stories.tsx +44 -0
  157. package/src/components/Input/Input.tsx +24 -19
  158. package/src/components/Input/types.ts +4 -0
  159. package/src/components/MenuOption/MenuOption.scss +24 -27
  160. package/src/components/MenuOption/MenuOption.stories.tsx +90 -35
  161. package/src/components/MenuOption/MenuOption.tsx +22 -20
  162. package/src/components/MenuOption/types.ts +1 -1
  163. package/src/components/Modal/Modal.stories.tsx +2 -2
  164. package/src/components/Modal/Modal.tsx +6 -2
  165. package/src/components/Modal/modal.scss +2 -3
  166. package/src/components/Modal/types.ts +4 -2
  167. package/src/components/TableTree/TableTree.scss +22 -7
  168. package/src/components/TableTree/TableTree.stories.tsx +41 -0
  169. package/src/components/TableTree/TableTree.tsx +55 -18
  170. package/src/components/Typography/Typography.scss +4 -4
  171. package/src/utils/capitalize/capitalize.stories.tsx +44 -0
  172. package/src/utils/capitalize/capitalize.tsx +4 -0
  173. package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
  174. package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
  175. package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
  176. package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
  177. /package/lib/components/{Excel → ExcelFile}/ContextMenu/ContextMenu.d.ts +0 -0
@@ -0,0 +1,129 @@
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
+ }
@@ -0,0 +1 @@
1
+ export { default } from './ExcelFile/ExcelFile';
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ExpandableMenu from './ExpandableMenu';
3
+ declare const meta: Meta<typeof ExpandableMenu>;
4
+ type Story = StoryObj<typeof ExpandableMenu>;
5
+ export declare const Primary: Story;
6
+ export declare const Controlled: Story;
7
+ export default meta;
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,8 @@
1
+ import { StoryObj, Meta } from '@storybook/react';
2
+ import FileDropzone from './FileDropzone';
3
+ declare const meta: Meta<typeof FileDropzone>;
4
+ type Story = StoryObj<typeof FileDropzone>;
5
+ export declare const Primary: Story;
6
+ export declare const withMIMEValidation: Story;
7
+ export declare const Controlled: Story;
8
+ export default meta;
@@ -0,0 +1,7 @@
1
+ import Forms from './Forms';
2
+ import { Meta, StoryObj } from '@storybook/react/*';
3
+ import './Form.scss';
4
+ declare const meta: Meta<typeof Forms>;
5
+ type Story = StoryObj<typeof Forms>;
6
+ export declare const WithDefaultValues: Story;
7
+ export default meta;
@@ -3,7 +3,9 @@ import Form from './Form';
3
3
  interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
4
4
  id?: string;
5
5
  onSubmit: Form.SubmitHandler<T>;
6
- children: (methods: ReturnType<typeof Form.useForm<T>>) => React.ReactNode;
6
+ children: (methods: ReturnType<typeof Form.useForm<T>> & {
7
+ Form: typeof Form;
8
+ }) => React.ReactNode;
7
9
  }
8
10
  declare const ForwardedForms: <T extends Form.FieldValues>(props: FormProps<T> & {
9
11
  ref?: React.Ref<any>;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Container } from './GridLayout';
3
+ import './GridLayoutStory.scss';
4
+ declare const meta: Meta<typeof Container>;
5
+ type ContainerStory = StoryObj<typeof Container>;
6
+ export declare const Grid: ContainerStory;
7
+ export declare const Grid2: ContainerStory;
8
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import HighlightText from './HighlightText';
3
+ declare const meta: Meta<typeof HighlightText>;
4
+ type Story = StoryObj<typeof HighlightText>;
5
+ export declare const Primary: Story;
6
+ export default meta;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Icon from './Icon';
3
+ declare const meta: Meta<typeof Icon>;
4
+ type Story = StoryObj<typeof Icon>;
5
+ export declare const Icons: Story;
6
+ export declare const AllIcons: Story;
7
+ export declare const DarkVariantIcons: Story;
8
+ export default meta;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import IconButton from './IconButton';
3
+ declare const meta: Meta<typeof IconButton>;
4
+ type Story = StoryObj<typeof IconButton>;
5
+ export declare const Default: Story;
6
+ export declare const PrimaryIconButton: Story;
7
+ export default meta;
@@ -0,0 +1,7 @@
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,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, size, ...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, isLabelRequired, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Input;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Input from './Input';
3
+ declare const meta: Meta<typeof Input>;
4
+ type Story = StoryObj<typeof Input>;
5
+ export declare const Default: Story;
6
+ export declare const Primary: Story;
7
+ export declare const DisabledWithValue: Story;
8
+ export declare const Controlled: Story;
9
+ export default meta;
@@ -75,4 +75,8 @@ export interface InputProps {
75
75
  * size for the input field
76
76
  */
77
77
  size?: 'small' | 'medium';
78
+ /**
79
+ * isLabelRequired for the input field without label,showing placeholder
80
+ */
81
+ isLabelRequired?: boolean;
78
82
  }
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import InputWithDropdown from './InputWithDropdown';
3
+ declare const meta: Meta<typeof InputWithDropdown>;
4
+ type Story = StoryObj<typeof InputWithDropdown>;
5
+ export declare const Default: Story;
6
+ export declare const DisabledWithValue: Story;
7
+ export declare const Controlled: Story;
8
+ export declare const InputWithStaticLabelWithoutOptions: Story;
9
+ export default meta;
@@ -0,0 +1,11 @@
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 textFieldWithDropdown: Story;
10
+ export declare const textFieldWithHighlight: Story;
11
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import LazyLoading from './LazyLoading';
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof LazyLoading>;
5
+ export declare const Primary: Story;
6
+ export default meta;
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,16 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import MenuOption from './MenuOption';
3
+ import './MenuOption.scss';
4
+ export declare const DefaultMenuOption: Story;
5
+ declare const meta: Meta<typeof MenuOption>;
6
+ type Story = StoryObj<typeof MenuOption>;
7
+ export declare const ControlledMenuOption: Story;
8
+ export declare const MenuOptionWithLabel: Story;
9
+ export declare const MenuOptionWithDisabledHoverEffect: Story;
10
+ export declare const MenuOptionWithToolTip: Story;
11
+ export declare const MenuOptionPlacementTop: Story;
12
+ export declare const MenuOptionPlacementDown: Story;
13
+ export declare const MenuOptionPlacementLeft: Story;
14
+ export declare const MenuOptionPlacementRight: Story;
15
+ export declare const MenuOptionCustom: Story;
16
+ export default meta;
@@ -77,7 +77,7 @@ interface OptionCardProps {
77
77
  * @type {dropdownPosition}
78
78
  * @optional
79
79
  */
80
- dropdownPosition?: 'top' | 'down' | 'left' | 'right';
80
+ dropdownPlacement?: 'top' | 'down' | 'left' | 'right';
81
81
  }
82
82
  interface MenuOptionProps {
83
83
  /**
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import MiniModal from './MiniModal';
3
+ import './MiniModal.scss';
4
+ declare const meta: Meta<typeof MiniModal>;
5
+ type Story = StoryObj<typeof MiniModal>;
6
+ export declare const BasicModal: Story;
7
+ export declare const CustomModalWithArrow: () => import("react/jsx-runtime").JSX.Element;
8
+ export declare const CustomModalWithWrapper: () => import("react/jsx-runtime").JSX.Element;
9
+ export declare const normalModalFollowedByIcon: () => import("react/jsx-runtime").JSX.Element;
10
+ export default meta;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Modal from './Modal';
3
+ declare const meta: Meta<typeof Modal>;
4
+ type Story = StoryObj<typeof Modal>;
5
+ export declare const DefaultModalStory: Story;
6
+ export declare const Controlled: Story;
7
+ export default meta;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  export interface ModalProps {
3
3
  isOpen: boolean;
4
4
  onClose: () => void;
@@ -26,5 +26,7 @@ export interface ModalProps {
26
26
  customWidth: string;
27
27
  customHeight?: string;
28
28
  zIndex?: number;
29
- boxShadow: string;
29
+ boxShadow?: string;
30
+ border?: string;
31
+ background?: string;
30
32
  }
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import MultiSelect from './MultiSelect';
3
+ declare const meta: Meta<typeof MultiSelect>;
4
+ type Story = StoryObj<typeof MultiSelect>;
5
+ export declare const Default: Story;
6
+ export declare const Default2: Story;
7
+ export declare const Default3: Story;
8
+ export declare const EmailGroup: Story;
9
+ export declare const Controlled: Story;
10
+ export default meta;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import RadioButton from './RadioButton';
3
+ declare const meta: Meta<typeof RadioButton>;
4
+ type Story = StoryObj<typeof RadioButton>;
5
+ export declare const Default: Story;
6
+ export declare const Checked: Story;
7
+ export declare const UncheckedDisabled: Story;
8
+ export declare const CheckedDisabled: Story;
9
+ export declare const WithoutLabel: Story;
10
+ export default meta;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import RadioGroup from './RadioGroup';
3
+ declare const meta: Meta<typeof RadioGroup>;
4
+ type Story = StoryObj<typeof RadioGroup>;
5
+ export declare const Controlled: Story;
6
+ export declare const WithDisabledOption: Story;
7
+ export declare const DisabledSelected: Story;
8
+ export declare const WithToolTipIcon: Story;
9
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Search from './Search';
3
+ declare const meta: Meta<typeof Search>;
4
+ type Story = StoryObj<typeof Search>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Select from './Select';
3
+ declare const meta: Meta<typeof Select>;
4
+ type Story = StoryObj<typeof Select>;
5
+ export declare const Primary: Story;
6
+ export declare const WithError: Story;
7
+ export declare const WithoutLabel: Story;
8
+ export declare const EmptyOptions: Story;
9
+ export declare const Disable: Story;
10
+ export declare const WithInitialValue: Story;
11
+ export declare const OptionSelection: Story;
12
+ export declare const CustomJSX: Story;
13
+ export default meta;
@@ -0,0 +1,4 @@
1
+ import { DropDownListProps } from './dropdownTypes';
2
+ import './Dropdown.scss';
3
+ declare const Dropdown: ({ onSelectBlur, onSelectOptionSelector, dropdownPosition, options, optionZIndex, inputRef, labelAccessor, }: DropDownListProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Dropdown;
@@ -0,0 +1,17 @@
1
+ import { DrowdownPosition, Option } from '../../types';
2
+ export interface DropDownListProps {
3
+ onSelectBlur: () => void;
4
+ onSelectOptionSelector: (option: Option) => void;
5
+ dropdownPosition: DrowdownPosition;
6
+ options?: Option[];
7
+ optionZIndex?: number;
8
+ inputRef?: React.RefObject<HTMLInputElement>;
9
+ labelAccessor?: string;
10
+ valueAccessor?: string;
11
+ }
12
+ export declare const dropdownDefaultCSSData: {
13
+ margin: number;
14
+ optionHeight: number;
15
+ selectInputHeight: number;
16
+ dropDownWrapperPadding: number;
17
+ };
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import StateDropdown from './StateDropdown';
3
+ declare const meta: Meta<typeof StateDropdown>;
4
+ type Story = StoryObj<typeof StateDropdown>;
5
+ export declare const Disable: Story;
6
+ export declare const Review: Story;
7
+ export declare const Reject: Story;
8
+ export declare const Approved: Story;
9
+ export declare const NewState: Story;
10
+ export default meta;
@@ -0,0 +1,14 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import StatusButton from './StatusButton';
3
+ declare const meta: Meta<typeof StatusButton>;
4
+ type Story = StoryObj<typeof StatusButton>;
5
+ export declare const Passed: Story;
6
+ export declare const Failed: Story;
7
+ export declare const Running: Story;
8
+ export declare const Terminated: Story;
9
+ export declare const Skipped: Story;
10
+ export declare const Warning: Story;
11
+ export declare const PartiallyExecuted: Story;
12
+ export declare const Aborted: Story;
13
+ export declare const NotExecuted: Story;
14
+ export default meta;
@@ -0,0 +1,13 @@
1
+ import { StoryObj, Meta } from '@storybook/react';
2
+ import Table from './Table';
3
+ declare const meta: Meta<typeof Table>;
4
+ type Story = StoryObj<typeof Table>;
5
+ export declare const Default: Story;
6
+ export declare const PrimaryHeaderTextColor: Story;
7
+ export declare const TableDataTextColor: Story;
8
+ export declare const PageTable: Story;
9
+ export declare const PrimaryHeader: Story;
10
+ export declare const FixedHeaderWithBorder: Story;
11
+ export declare const WithCheckBox: Story;
12
+ export declare const TableWithNoData: Story;
13
+ export default meta;
@@ -19,6 +19,7 @@ interface TableTreeProps {
19
19
  onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, data: any) => void;
20
20
  onChange?: (e: any, node: any) => void;
21
21
  selected: Array<string>;
22
+ onPagination?: (node: ObjectProps) => void;
22
23
  }
23
- declare const TableTree: ({ columnsData, treeData, select, onClick, onChange, selected, }: TableTreeProps) => import("react/jsx-runtime").JSX.Element;
24
+ declare const TableTree: ({ columnsData, treeData, select, onClick, onChange, selected, onPagination, }: TableTreeProps) => import("react/jsx-runtime").JSX.Element;
24
25
  export default TableTree;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import TableTree from './TableTree';
3
+ import './TableTreeStories.scss';
4
+ declare const meta: Meta<typeof TableTree>;
5
+ type Story = StoryObj<typeof TableTree>;
6
+ export declare const Default: Story;
7
+ export default meta;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Tabs from './Tabs';
3
+ declare const meta: Meta<typeof Tabs>;
4
+ type Story = StoryObj<typeof Tabs>;
5
+ export declare const DefaultTabs: Story;
6
+ export declare const CapsuleTabs: Story;
7
+ export declare const TabsWithDisabledTab: Story;
8
+ export declare const WithoutBorder: Story;
9
+ export default meta;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Textarea from './Textarea';
3
+ declare const meta: Meta<typeof Textarea>;
4
+ type Story = StoryObj<typeof Textarea>;
5
+ export declare const Default: Story;
6
+ export declare const Primary: Story;
7
+ export declare const Disabled: Story;
8
+ export declare const Controlled: Story;
9
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Toaster from './Toast';
3
+ declare const meta: Meta<typeof Toaster>;
4
+ type Story = StoryObj<typeof Toaster>;
5
+ export declare const Controlled: Story;
6
+ export default meta;
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Toggle from './Toggle';
3
+ declare const meta: Meta<typeof Toggle>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Toggle>;
6
+ export declare const Default: Story;
7
+ export declare const Disabled: Story;
8
+ export declare const Checked: Story;
9
+ export declare const SmallSize: Story;
10
+ export declare const MediumSize: Story;
11
+ export declare const DynamicIconAndSize: Story;
12
+ export declare const Controlled: Story;
@@ -0,0 +1,15 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Tooltip from './Tooltip';
3
+ declare const meta: Meta<typeof Tooltip>;
4
+ type Story = StoryObj<typeof Tooltip>;
5
+ export declare const Default: Story;
6
+ export declare const Controlled: Story;
7
+ export declare const Top: Story;
8
+ export declare const Left: Story;
9
+ export declare const Right: Story;
10
+ export declare const TopStart: Story;
11
+ export declare const TopEnd: Story;
12
+ export declare const BottomStart: Story;
13
+ export declare const BottomEnd: Story;
14
+ export declare const TooltipWithIcon: Story;
15
+ export default meta;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Typography from './Typography';
3
+ declare const meta: Meta<typeof Typography>;
4
+ type Story = StoryObj<typeof Typography>;
5
+ export declare const Docs: Story;
6
+ export declare const Regular12px: Story;
7
+ export declare const Medium12px: Story;
8
+ export declare const SemiBold14px: Story;
9
+ export declare const Bold14px: Story;
10
+ export default meta;
@@ -0,0 +1,6 @@
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;