pixel-react 1.4.4 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) 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/AddButton/AddButton.d.ts +5 -0
  6. package/lib/components/AddButton/AddButton.stories.d.ts +6 -0
  7. package/lib/components/AddButton/index.d.ts +1 -0
  8. package/lib/components/AddButton/types.d.ts +4 -0
  9. package/lib/components/AddResourceButton/AddButton.stories.d.ts +8 -0
  10. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +7 -0
  11. package/lib/components/AppHeader/AppHeader.stories.d.ts +7 -0
  12. package/lib/components/AttachImage/AttachImage.stories.d.ts +7 -0
  13. package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
  14. package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
  15. package/lib/components/Button/Button.stories.d.ts +13 -0
  16. package/lib/components/Charts/BarChart/BarChart.stories.d.ts +6 -0
  17. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +7 -0
  18. package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +6 -0
  19. package/lib/components/Charts/IconRadialChart/IconRadialChart.stories.d.ts +8 -0
  20. package/lib/components/Charts/LineChart/LineChart.stories.d.ts +7 -0
  21. package/lib/components/Charts/MultiRadialChart/MultiRadialChart.stories.d.ts +8 -0
  22. package/lib/components/Charts/PieChart/PieChart.stories.d.ts +7 -0
  23. package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +6 -0
  24. package/lib/components/Checkbox/Checkbox.stories.d.ts +8 -0
  25. package/lib/components/Chip/Chip.stories.d.ts +14 -0
  26. package/lib/components/ConnectingBranch/ConnectingBranch.stories.d.ts +6 -0
  27. package/lib/components/DatePicker/DatePicker.stories.d.ts +9 -0
  28. package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
  29. package/lib/components/Drawer/Drawer.stories.d.ts +12 -0
  30. package/lib/components/EditTextField/EditTextField.stories.d.ts +10 -0
  31. package/lib/components/Editor/Editor.d.ts +1 -2
  32. package/lib/components/Editor/Editor.stories.d.ts +6 -0
  33. package/lib/components/Editor/types.d.ts +1 -5
  34. package/lib/components/Excel/ExcelFile.stories.d.ts +6 -0
  35. package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +14 -0
  36. package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
  37. package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +4 -0
  38. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +7 -0
  39. package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +4 -0
  40. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +5 -0
  41. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +3 -0
  42. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +5 -0
  43. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +5 -0
  44. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +8 -0
  45. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +10 -0
  46. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +3 -0
  47. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +3 -0
  48. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +5 -0
  49. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +3 -0
  50. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +81 -0
  51. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +3 -0
  52. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +130 -0
  53. package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +1 -0
  54. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +8 -0
  55. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +22 -0
  56. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +17 -0
  57. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -0
  58. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +21 -0
  59. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +3 -0
  60. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +24 -0
  61. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +13 -0
  62. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +67 -0
  63. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +22 -0
  64. package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +11 -0
  65. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +27 -0
  66. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +95 -0
  67. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +215 -0
  68. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +3 -0
  69. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +3 -0
  70. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +45 -0
  71. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +3 -0
  72. package/lib/components/ExcelFile/ExcelFile.stories.d.ts +6 -0
  73. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +15 -0
  74. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +3 -0
  75. package/lib/components/ExcelFile/ImportExcelStyles.d.ts +24 -0
  76. package/lib/components/ExcelFile/Types.d.ts +176 -0
  77. package/lib/components/ExcelFile/index.d.ts +1 -0
  78. package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +7 -0
  79. package/lib/components/FF_Captcha/captcha.stories.d.ts +8 -0
  80. package/lib/components/FileDropzone/FileDropzone.stories.d.ts +8 -0
  81. package/lib/components/Form/Form.stories.d.ts +7 -0
  82. package/lib/components/GridLayout/GridLayout.stories.d.ts +8 -0
  83. package/lib/components/HighlightText/HighlightText.stories.d.ts +6 -0
  84. package/lib/components/Icon/Icon.stories.d.ts +8 -0
  85. package/lib/components/IconButton/IconButton.stories.d.ts +7 -0
  86. package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +7 -0
  87. package/lib/components/Input/Input.stories.d.ts +9 -0
  88. package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +9 -0
  89. package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +13 -0
  90. package/lib/components/LazyLoad/LazyLoad.stories.d.ts +6 -0
  91. package/lib/components/MachineInputField/MachineInputField.stories.d.ts +6 -0
  92. package/lib/components/MenuOption/MenuOption.stories.d.ts +16 -0
  93. package/lib/components/MiniModal/MiniModal.stories.d.ts +10 -0
  94. package/lib/components/Modal/Modal.stories.d.ts +7 -0
  95. package/lib/components/ModulesChip/ModuleChip.stories.d.ts +6 -0
  96. package/lib/components/MultiSelect/MultiSelect.stories.d.ts +12 -0
  97. package/lib/components/NLPInput/NlpInput.stories.d.ts +7 -0
  98. package/lib/components/Paper/Paper.stories.d.ts +11 -0
  99. package/lib/components/RadioButton/RadioButton.stories.d.ts +10 -0
  100. package/lib/components/RadioGroup/RadioGroup.stories.d.ts +9 -0
  101. package/lib/components/Search/Search.stories.d.ts +6 -0
  102. package/lib/components/Select/Select.stories.d.ts +14 -0
  103. package/lib/components/Select/components/Dropdown/Dropdown.d.ts +4 -0
  104. package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +17 -0
  105. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +6 -0
  106. package/lib/components/StateDropdown/StateDropdown.stories.d.ts +10 -0
  107. package/lib/components/StatusButton/StatusButton.stories.d.ts +14 -0
  108. package/lib/components/StatusCard/StatusCard.stories.d.ts +11 -0
  109. package/lib/components/Table/Table.stories.d.ts +13 -0
  110. package/lib/components/TableTree/TableTree.stories.d.ts +7 -0
  111. package/lib/components/Tabs/Tabs.stories.d.ts +9 -0
  112. package/lib/components/TextArea/Textarea.stories.d.ts +9 -0
  113. package/lib/components/Toast/Toast.stories.d.ts +6 -0
  114. package/lib/components/Toastify/Toastify.stories.d.ts +6 -0
  115. package/lib/components/Toggle/Toggle.stories.d.ts +12 -0
  116. package/lib/components/Tooltip/Tooltip.stories.d.ts +15 -0
  117. package/lib/components/Typography/Typography.stories.d.ts +10 -0
  118. package/lib/components/VariableInput/VariableInput.stories.d.ts +6 -0
  119. package/lib/index.d.ts +32 -7
  120. package/lib/index.esm.js +5052 -224
  121. package/lib/index.esm.js.map +1 -1
  122. package/lib/index.js +5052 -223
  123. package/lib/index.js.map +1 -1
  124. package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +6 -0
  125. package/lib/utils/compareArrays/compareArrays.stories.d.ts +6 -0
  126. package/lib/utils/compareObjects/compareObjects.stories.d.ts +6 -0
  127. package/lib/utils/debounce/debounce.stories.d.ts +6 -0
  128. package/lib/utils/ffID/ffID.stories.d.ts +6 -0
  129. package/lib/utils/find/findAndInsert.d.ts +7 -0
  130. package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
  131. package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +7 -0
  132. package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +6 -0
  133. package/lib/utils/getExtension/getExtension.stories.d.ts +6 -0
  134. package/lib/utils/getSequentialPayload/getSequentialPayload.stories.d.ts +10 -0
  135. package/lib/utils/throttle/throttle.stories.d.ts +6 -0
  136. package/lib/utils/truncateText/truncateText.stories.d.ts +6 -0
  137. package/package.json +2 -2
  138. package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +2 -2
  139. package/src/components/Editor/Editor.tsx +224 -191
  140. package/src/components/Editor/types.ts +1 -5
  141. package/src/index.ts +3 -1
  142. package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
  143. package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
  144. package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
  145. package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
Binary file
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import StyleGuide from './ColorPalette';
3
+ declare const meta: Meta<typeof StyleGuide>;
4
+ type Story = StoryObj<typeof StyleGuide>;
5
+ export declare const ColorList: Story;
6
+ export default meta;
@@ -0,0 +1,6 @@
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 AllFonts: Story;
6
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Accordion from './Accordion';
3
+ declare const meta: Meta<typeof Accordion>;
4
+ type Story = StoryObj<typeof Accordion>;
5
+ export declare const SampleAccordion: Story;
6
+ export default meta;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './AddButton.scss';
3
+ import { AddButtonProps } from './types';
4
+ declare const AddButton: React.FC<AddButtonProps>;
5
+ export default AddButton;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import AddButton from './AddButton';
3
+ declare const meta: Meta<typeof AddButton>;
4
+ type Story = StoryObj<typeof AddButton>;
5
+ export declare const PrimaryAddButton: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export { default } from './AddButton';
@@ -0,0 +1,4 @@
1
+ export interface AddButtonProps {
2
+ name: string;
3
+ onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
4
+ }
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import AddButton from './AddButton';
3
+ declare const meta: Meta<typeof AddButton>;
4
+ type Story = StoryObj<typeof AddButton>;
5
+ export declare const Default: Story;
6
+ export declare const TwoArrowsButtons: Story;
7
+ export declare const ThreeArrowsButton: Story;
8
+ export default meta;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import AllProjectsDropdown from './AllProjectsDropdown';
3
+ declare const meta: Meta<typeof AllProjectsDropdown>;
4
+ type Story = StoryObj<typeof AllProjectsDropdown>;
5
+ export declare const Default: Story;
6
+ export declare const PrimaryIconButton: Story;
7
+ export default meta;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import AppHeader from './AppHeader';
3
+ declare const meta: Meta<typeof AppHeader>;
4
+ type Story = StoryObj<typeof AppHeader>;
5
+ export declare const SampleAppHeader: Story;
6
+ export declare const Controlled: Story;
7
+ export default meta;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import AttachImage from './AttachImage';
3
+ import { AttachImageProps } from './types';
4
+ declare const meta: Meta<typeof AttachImage>;
5
+ export default meta;
6
+ type Story = StoryObj<AttachImageProps>;
7
+ export declare const Default: Story;
@@ -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,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Avatar from './Avatar';
3
+ declare const meta: Meta<typeof Avatar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Small: Story;
7
+ export declare const Medium: Story;
8
+ export declare const Large: Story;
9
+ export declare const CustomAvatarSize: Story;
10
+ export declare const CustomIconSize: Story;
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Button from './Button';
3
+ declare const meta: Meta<typeof Button>;
4
+ type Story = StoryObj<typeof Button>;
5
+ export declare const Primary: Story;
6
+ export declare const Secondary: Story;
7
+ export declare const Tertiary: Story;
8
+ export declare const Delete: Story;
9
+ export declare const Warning: Story;
10
+ export declare const PrimaryWithIcon: Story;
11
+ export declare const SecondaryWithIcon: Story;
12
+ export declare const TertiaryWithIcon: Story;
13
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import BarChart from './BarChart';
3
+ declare const meta: Meta<typeof BarChart>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof BarChart>;
6
+ export declare const BarChartDashboard: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import DashboardDonutChart from './DashboardDonutChart';
3
+ declare const meta: Meta<typeof DashboardDonutChart>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof DashboardDonutChart>;
6
+ export declare const Default: Story;
7
+ export declare const MemoryLegend: Story;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import DonutChart from './DonutChart';
3
+ declare const meta: Meta<typeof DonutChart>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof DonutChart>;
6
+ export declare const Default: Story;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import IconRadialChart from './IconRadialChart';
3
+ declare const meta: Meta<typeof IconRadialChart>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof IconRadialChart>;
6
+ export declare const Default: Story;
7
+ export declare const Mobile: Story;
8
+ export declare const WithoutIcon: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import LineChart from './LineChart';
3
+ import { LineChartProps } from './types';
4
+ declare const meta: Meta<typeof LineChart>;
5
+ export default meta;
6
+ export declare const DefaultLineChart: StoryObj<LineChartProps>;
7
+ export declare const StatusLineChart: StoryObj<LineChartProps>;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import MultiRadialChart from './MultiRadialChart';
3
+ declare const meta: Meta<typeof MultiRadialChart>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MultiRadialChart>;
6
+ export declare const Default: Story;
7
+ export declare const numberLegend: Story;
8
+ export declare const PillLegend: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import PieChart from './PieChart';
3
+ declare const meta: Meta<typeof PieChart>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof PieChart>;
6
+ export declare const PieChartDashBoard: Story;
7
+ export declare const PieChartDashBoardWithBorder: Story;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import RadialChart from './RadialChart';
3
+ declare const meta: Meta<typeof RadialChart>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof RadialChart>;
6
+ export declare const ChartWithStatus: Story;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Checkbox from './Checkbox';
3
+ declare const meta: Meta<typeof Checkbox>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Partial: Story;
8
+ export declare const Controlled: Story;
@@ -0,0 +1,14 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Chip from './Chip';
3
+ import '../../assets/styles/_colors.scss';
4
+ import './Chip.scss';
5
+ declare const meta: Meta<typeof Chip>;
6
+ type Story = StoryObj<typeof Chip>;
7
+ export declare const Primary: Story;
8
+ export declare const withoutExpand: Story;
9
+ export declare const Group: Story;
10
+ export declare const CustomChip: Story;
11
+ export declare const Success: Story;
12
+ export declare const Errors: Story;
13
+ export declare const Warning: Story;
14
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ConnectingBranch from './ConnectingBranch';
3
+ declare const meta: Meta<typeof ConnectingBranch>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ConnectingBranch>;
6
+ export declare const Default: Story;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import CustomDatePicker from './DatePicker';
3
+ declare const meta: Meta<typeof CustomDatePicker>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CustomDatePicker>;
6
+ export declare const Default: Story;
7
+ export declare const StartDateFilter: Story;
8
+ export declare const EndDateInput: Story;
9
+ export declare const ScheduleDateInput: Story;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import DragAndDropList from './DragAndDropList';
3
+ declare const meta: Meta<typeof DragAndDropList>;
4
+ type Story = StoryObj<typeof DragAndDropList>;
5
+ export declare const Primary: Story;
6
+ export default meta;
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Drawer from './Drawer';
3
+ declare const meta: Meta<typeof Drawer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Drawer>;
6
+ export declare const Default: Story;
7
+ export declare const WithoutHeader: Story;
8
+ export declare const WithCustomHeader: Story;
9
+ export declare const WithCustomFooter: Story;
10
+ export declare const WithTertiaryButtons: Story;
11
+ export declare const WithCustomZIndex: Story;
12
+ export declare const Controlled: Story;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import EditTextField from './EditTextField';
3
+ import '../../assets/styles/_colors.scss';
4
+ import './EditTextField.scss';
5
+ declare const meta: Meta<typeof EditTextField>;
6
+ type Story = StoryObj<typeof EditTextField>;
7
+ export declare const textFieldWithLabel: Story;
8
+ export declare const textFieldWithOutLabel: Story;
9
+ export declare const openTextField: Story;
10
+ export default meta;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import { EditorProps } from './types';
3
2
  import './Editor.scss';
4
- declare const Editor: React.FC<EditorProps>;
3
+ declare const Editor: import("react").ForwardRefExoticComponent<EditorProps & import("react").RefAttributes<any>>;
5
4
  export default Editor;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { EditorProps } from './types';
3
+ declare const meta: Meta<EditorProps>;
4
+ export default meta;
5
+ type Story = StoryObj<EditorProps>;
6
+ export declare const Default: Story;
@@ -5,7 +5,7 @@ export interface EditorProps {
5
5
  /**
6
6
  * Editor Content Type
7
7
  */
8
- language?: 'javascript' | 'html' | 'json' | 'plaintext' | 'xml';
8
+ language: 'javascript' | 'html' | 'json' | 'plain text' | 'xml';
9
9
  /**
10
10
  *
11
11
  *Width of the editor
@@ -15,10 +15,6 @@ export interface EditorProps {
15
15
  * Height of the editor
16
16
  */
17
17
  height: string;
18
- /**
19
- * Show toolbar
20
- */
21
- showToolbar?: boolean;
22
18
  /**
23
19
  * read only
24
20
  */
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ExcelFile from './ExcelFile/ExcelFile';
3
+ declare const meta: Meta<typeof ExcelFile>;
4
+ type Story = StoryObj<typeof ExcelFile>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1,14 @@
1
+ import { CellBase } from "./ExcelFile/Excel";
2
+ interface ChangeExcelStylesOptions {
3
+ sheetName: string;
4
+ styleType: string;
5
+ value: string;
6
+ selectedCell: {
7
+ row: number;
8
+ column: number;
9
+ }[];
10
+ }
11
+ export default function ChangeExcelStyles(setWorksheetsData: React.Dispatch<React.SetStateAction<{
12
+ [key: string]: Matrix<CellBase>;
13
+ }>>, options: ChangeExcelStylesOptions): void;
14
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './ColorBarSelector.scss';
3
+ interface ColorBarSelectorProps {
4
+ getColorValue: (color: string) => void;
5
+ disabled: boolean;
6
+ }
7
+ declare const ColorBarSelector: React.FC<ColorBarSelectorProps>;
8
+ export default ColorBarSelector;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './ContextMenu.scss';
3
+ declare const ContextMenu: React.FC<ContextMenuProps>;
4
+ export default ContextMenu;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as Types from "./types";
3
+ type Props = {
4
+ DataEditor: Types.DataEditorComponent;
5
+ };
6
+ declare const ActiveCell: React.FC<Props>;
7
+ export default ActiveCell;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import * as Types from './types';
3
+ export declare const Cell: React.FC<Types.CellComponentProps>;
4
+ export declare const enhance: (CellComponent: React.ComponentType<Types.CellComponentProps>) => React.FC<Omit<Types.CellComponentProps, "selected" | "active" | "copied" | "dragging" | "mode" | "data" | "select" | "activate" | "setCellDimensions">>;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as Types from "./types";
3
+ declare const ColumnIndicator: Types.ColumnIndicatorComponent;
4
+ export default ColumnIndicator;
5
+ export declare const enhance: (ColumnIndicatorComponent: Types.ColumnIndicatorComponent) => React.FC<Omit<Types.ColumnIndicatorProps, "selected" | "onSelect">>;
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Copied: React.FC;
3
+ export default Copied;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as Types from "./types";
3
+ declare const CornerIndicator: Types.CornerIndicatorComponent;
4
+ export default CornerIndicator;
5
+ export declare const enhance: (CornerIndicatorComponent: Types.CornerIndicatorComponent) => React.FC<Omit<Types.CornerIndicatorProps, "selected" | "onSelect">>;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as Types from "./types";
3
+ /** The default Spreadsheet DataEditor component */
4
+ declare const DataEditor: React.FC<Types.DataEditorProps>;
5
+ export default DataEditor;
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import * as Types from "./types";
3
+ export declare const TRUE_TEXT = "TRUE";
4
+ export declare const FALSE_TEXT = "FALSE";
5
+ /** The default Spreadsheet DataViewer component */
6
+ declare const DataViewer: <Cell extends Types.CellBase<Value>, Value>({ cell, evaluatedCell, }: Types.DataViewerProps<Cell>) => React.ReactElement;
7
+ export default DataViewer;
8
+ export declare function convertBooleanToText(value: boolean): string;
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import * as Types from "./types";
3
+ export type Props = {
4
+ variant?: string;
5
+ dimensions?: Types.Dimensions | null | undefined;
6
+ hidden?: boolean;
7
+ dragging?: boolean;
8
+ };
9
+ declare const FloatingRect: React.FC<Props>;
10
+ export default FloatingRect;
@@ -0,0 +1,3 @@
1
+ import * as Types from "./types";
2
+ declare const HeaderRow: Types.HeaderRowComponent;
3
+ export default HeaderRow;
@@ -0,0 +1,3 @@
1
+ import * as Types from "./types";
2
+ declare const Row: Types.RowComponent;
3
+ export default Row;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as Types from "./types";
3
+ declare const RowIndicator: Types.RowIndicatorComponent;
4
+ export default RowIndicator;
5
+ export declare const enhance: (RowIndicatorComponent: Types.RowIndicatorComponent) => React.FC<Omit<Types.RowIndicatorProps, "selected" | "onSelect">>;
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Selected: React.FC;
3
+ export default Selected;
@@ -0,0 +1,81 @@
1
+ import * as React from "react";
2
+ import * as Types from "./types";
3
+ import * as Matrix from "./matrix";
4
+ import * as Point from "./point";
5
+ import { Selection } from "./selection";
6
+ import "./Spreadsheet.css";
7
+ /** The Spreadsheet component props */
8
+ export type Props<CellType extends Types.CellBase> = {
9
+ /** The spreadsheet's data */
10
+ data: Matrix.Matrix<CellType>;
11
+ /** Class name to be added to the spreadsheet's root element */
12
+ className?: string;
13
+ /**
14
+ * Use dark colors that complement dark mode
15
+ * @defaultValue `false`
16
+ */
17
+ darkMode?: boolean;
18
+ /**
19
+ * Function used to create the formula parser (instance of
20
+ * "fast-formula-parser") used by the Spreadsheet by getting the spreadsheet's
21
+ * data.
22
+ * @defaultValue function which creates a formula parser bound to the
23
+ * Spreadsheet's data.
24
+ * @see `createFormulaParser`
25
+ * @see https://www.npmjs.com/package/fast-formula-parser
26
+ */
27
+ createFormulaParser?: Types.CreateFormulaParser;
28
+ /**
29
+ * Labels to use in column indicators.
30
+ * @defaultValue alphabetical labels.
31
+ */
32
+ columnLabels?: string[];
33
+ /**
34
+ * Labels to use in row indicators.
35
+ * @defaultValue row index labels.
36
+ */
37
+ rowLabels?: string[];
38
+ /**
39
+ * If set to true, hides the row indicators of the spreadsheet.
40
+ * @defaultValue `false`.
41
+ */
42
+ hideRowIndicators?: boolean;
43
+ /**
44
+ * If set to true, hides the column indicators of the spreadsheet.
45
+ * @defaultValue `false`.
46
+ */
47
+ hideColumnIndicators?: boolean;
48
+ /** The selected cells in the worksheet. */
49
+ selected?: Selection;
50
+ /** Component rendered above each column. */
51
+ ColumnIndicator?: Types.ColumnIndicatorComponent;
52
+ /** Component rendered in the corner of row and column indicators. */
53
+ CornerIndicator?: Types.CornerIndicatorComponent;
54
+ /** Component rendered next to each row. */
55
+ RowIndicator?: Types.RowIndicatorComponent;
56
+ /** The Spreadsheet's table component. */
57
+ Table?: Types.TableComponent;
58
+ /** The Spreadsheet's row component. */
59
+ Row?: Types.RowComponent;
60
+ /** The spreadsheet's header row component */
61
+ HeaderRow?: Types.HeaderRowComponent;
62
+ /** The Spreadsheet's cell component. */
63
+ Cell?: Types.CellComponent<CellType>;
64
+ /** Component rendered for cells in view mode. */
65
+ DataViewer?: Types.DataViewerComponent<CellType>;
66
+ /** Component rendered for cells in edit mode. */
67
+ DataEditor?: Types.DataEditorComponent<CellType>;
68
+ /** Callback called on key down inside the spreadsheet. */
69
+ onKeyDown?: (event: React.KeyboardEvent) => void;
70
+ /** Callback called when the Spreadsheet's selection changes. */
71
+ onSelect?: (selected: Selection) => void;
72
+ /** Callback called when Spreadsheet's active cell changes. */
73
+ onActivate?: (active: Point.Point) => void;
74
+ /** Callback called when the Spreadsheet's evaluated data changes. */
75
+ onEvaluatedDataChange?: (data: Matrix.Matrix<CellType>) => void;
76
+ };
77
+ /**
78
+ * The Spreadsheet component
79
+ */
80
+ declare const Spreadsheet: <CellType extends Types.CellBase>(props: Props<CellType>) => React.ReactElement;
81
+ export default Spreadsheet;
@@ -0,0 +1,3 @@
1
+ import * as Types from "./types";
2
+ declare const Table: Types.TableComponent;
3
+ export default Table;