pixel-react 1.10.10-4 → 1.10.12

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 (125) hide show
  1. package/lib/1fb4472b34e4fe07.css +1 -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.stories.d.ts +7 -0
  7. package/lib/components/AppHeader/AppHeader.stories.d.ts +7 -0
  8. package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
  9. package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
  10. package/lib/components/Button/Button.stories.d.ts +13 -0
  11. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +7 -0
  12. package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +6 -0
  13. package/lib/components/Charts/PieChart/PieChart.stories.d.ts +7 -0
  14. package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +6 -0
  15. package/lib/components/Checkbox/Checkbox.stories.d.ts +8 -0
  16. package/lib/components/Chip/Chip.stories.d.ts +14 -0
  17. package/lib/components/DatePicker/DatePicker.stories.d.ts +9 -0
  18. package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
  19. package/lib/components/Drawer/Drawer.stories.d.ts +12 -0
  20. package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
  21. package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +4 -0
  22. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +7 -0
  23. package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +4 -0
  24. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +5 -0
  25. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +3 -0
  26. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +5 -0
  27. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +5 -0
  28. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +8 -0
  29. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +10 -0
  30. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +3 -0
  31. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +3 -0
  32. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +5 -0
  33. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +3 -0
  34. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +80 -0
  35. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +3 -0
  36. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +174 -0
  37. package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +1 -0
  38. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +8 -0
  39. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +22 -0
  40. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +17 -0
  41. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -0
  42. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +21 -0
  43. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +3 -0
  44. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +24 -0
  45. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +13 -0
  46. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +67 -0
  47. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +22 -0
  48. package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +11 -0
  49. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +27 -0
  50. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +95 -0
  51. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +178 -0
  52. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +3 -0
  53. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +3 -0
  54. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +44 -0
  55. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +19 -0
  56. package/lib/components/ExcelFile/ExcelFile.stories.d.ts +6 -0
  57. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +12 -0
  58. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +15 -0
  59. package/lib/components/ExcelFile/Types.d.ts +129 -0
  60. package/lib/components/ExcelFile/index.d.ts +1 -0
  61. package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +7 -0
  62. package/lib/components/FF_Captcha/captcha.stories.d.ts +8 -0
  63. package/lib/components/FileDropzone/FileDropzone.stories.d.ts +8 -0
  64. package/lib/components/Form/Form.stories.d.ts +7 -0
  65. package/lib/components/GridLayout/GridLayout.stories.d.ts +8 -0
  66. package/lib/components/HighlightText/HighlightText.stories.d.ts +6 -0
  67. package/lib/components/Icon/Icon.stories.d.ts +8 -0
  68. package/lib/components/IconButton/IconButton.stories.d.ts +7 -0
  69. package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +7 -0
  70. package/lib/components/Input/Input.stories.d.ts +9 -0
  71. package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +9 -0
  72. package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +11 -0
  73. package/lib/components/LazyLoad/LazyLoad.stories.d.ts +6 -0
  74. package/lib/components/MachineInputField/MachineInputField.stories.d.ts +6 -0
  75. package/lib/components/MenuOption/MenuOption.stories.d.ts +16 -0
  76. package/lib/components/MiniModal/MiniModal.stories.d.ts +10 -0
  77. package/lib/components/Modal/Modal.stories.d.ts +7 -0
  78. package/lib/components/ModulesChip/ModuleChip.stories.d.ts +6 -0
  79. package/lib/components/MultiSelect/MultiSelect.stories.d.ts +10 -0
  80. package/lib/components/NLPInput/NlpInput.stories.d.ts +7 -0
  81. package/lib/components/NLPInput/type.d.ts +70 -0
  82. package/lib/components/Paper/Paper.stories.d.ts +11 -0
  83. package/lib/components/RadioButton/RadioButton.stories.d.ts +10 -0
  84. package/lib/components/RadioGroup/RadioGroup.stories.d.ts +9 -0
  85. package/lib/components/Search/Search.stories.d.ts +6 -0
  86. package/lib/components/Select/Select.stories.d.ts +13 -0
  87. package/lib/components/Select/components/Dropdown/Dropdown.d.ts +4 -0
  88. package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +17 -0
  89. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +6 -0
  90. package/lib/components/SequentialConnectingBranch/components/AddBrowserModal/AddBrowserModal.d.ts +4 -0
  91. package/lib/components/SequentialConnectingBranch/components/AddBrowserModal/types.d.ts +3 -0
  92. package/lib/components/SequentialConnectingBranch/components/DatasetListModal/DatasetListModal.d.ts +4 -0
  93. package/lib/components/SequentialConnectingBranch/components/DatasetListModal/types.d.ts +3 -0
  94. package/lib/components/StateDropdown/StateDropdown.stories.d.ts +10 -0
  95. package/lib/components/StatusButton/StatusButton.stories.d.ts +14 -0
  96. package/lib/components/Table/Table.stories.d.ts +13 -0
  97. package/lib/components/TableTree/TableTree.stories.d.ts +7 -0
  98. package/lib/components/Tabs/Tabs.stories.d.ts +9 -0
  99. package/lib/components/TextArea/Textarea.stories.d.ts +9 -0
  100. package/lib/components/Toast/Toast.stories.d.ts +6 -0
  101. package/lib/components/Toastify/Toastify.stories.d.ts +6 -0
  102. package/lib/components/Toggle/Toggle.stories.d.ts +12 -0
  103. package/lib/components/Tooltip/Tooltip.stories.d.ts +15 -0
  104. package/lib/components/Typography/Typography.stories.d.ts +10 -0
  105. package/lib/components/VariableInput/VariableInput.stories.d.ts +6 -0
  106. package/lib/index.esm.js +5 -5
  107. package/lib/index.esm.js.map +1 -1
  108. package/lib/index.js +5 -5
  109. package/lib/index.js.map +1 -1
  110. package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +6 -0
  111. package/lib/utils/compareArrays/compareArrays.stories.d.ts +6 -0
  112. package/lib/utils/compareObjects/compareObjects.stories.d.ts +6 -0
  113. package/lib/utils/debounce/debounce.stories.d.ts +6 -0
  114. package/lib/utils/ffID/ffID.stories.d.ts +6 -0
  115. package/lib/utils/find/findAndInsert.d.ts +7 -0
  116. package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
  117. package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +7 -0
  118. package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +6 -0
  119. package/lib/utils/getExtension/getExtension.stories.d.ts +6 -0
  120. package/lib/utils/throttle/throttle.stories.d.ts +6 -0
  121. package/lib/utils/truncateText/truncateText.stories.d.ts +6 -0
  122. package/package.json +1 -1
  123. package/src/components/TableTree/Components/TableCell.tsx +1 -1
  124. package/src/components/TableTree/TableTree.scss +14 -2
  125. package/src/components/TableTree/TableTree.tsx +3 -3
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (value: any) => boolean;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (arr1: unknown[], arr2: unknown[]) => boolean;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (obj1: import("./compareObjects").AnyObject | null, obj2: import("./compareObjects").AnyObject | null) => boolean;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (func: (...args: any[]) => void, delay: number) => import("./debounce").DebouncedFunction;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ffid } from './ffid';
3
+ declare const meta: Meta<typeof ffid>;
4
+ type Story = StoryObj;
5
+ export declare const Primary: Story;
6
+ export default meta;
@@ -0,0 +1,7 @@
1
+ export type AnyObject = {
2
+ id: number;
3
+ [key: string]: any;
4
+ };
5
+ export declare function findAndInsert<T extends AnyObject>(data: T[], key: keyof T, targetId: number, newEntry: T, insertPosition: 'above' | 'below' | 'replace', childrenKey?: string): {
6
+ updatedArray: T[];
7
+ } | null;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (value: string | File) => string | undefined;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (func: (...args: any[]) => void, limit: number) => import("./throttle").ThrottledFunction;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (text: string, maxLength: number) => string;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.10.10-4",
4
+ "version": "1.10.12",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -20,7 +20,7 @@ const renderSpaces = (
20
20
  isLastNode = false;
21
21
 
22
22
  if (!isNaN(level)) {
23
- siblingsArray = Array(level - 1).fill(true);
23
+ siblingsArray = Array(level).fill(true);
24
24
  }
25
25
  }
26
26
 
@@ -159,7 +159,7 @@
159
159
  .table-tree-row-action {
160
160
  display: inline-flex;
161
161
  align-items: center;
162
- svg{
162
+ svg {
163
163
  height: 14px;
164
164
  width: 14px;
165
165
  }
@@ -170,6 +170,17 @@
170
170
 
171
171
  .table-tree-row-action {
172
172
  display: none;
173
+
174
+ .ff-icon-container{
175
+ height: 14px !important;
176
+ width: 14px !important;
177
+ padding: 2px 4px;
178
+ }
179
+
180
+ .ff-add-button-container{
181
+ height: 20px;
182
+ width: 22px;
183
+ }
173
184
  }
174
185
 
175
186
  .table-row-add-button {
@@ -267,6 +278,7 @@
267
278
  height: 12px;
268
279
  width: 12px;
269
280
  transition: transform 0.3s ease;
281
+ cursor: pointer;
270
282
 
271
283
  path {
272
284
  fill: var(--brand-color);
@@ -288,4 +300,4 @@
288
300
  .tree-title-container {
289
301
  display: inline-flex;
290
302
  align-items: center;
291
- }
303
+ }
@@ -143,7 +143,7 @@ const TreeTable: React.FC<TreeTableProps> = ({
143
143
  setExpanding(node.key);
144
144
  onExpand?.(node, index);
145
145
  },
146
- [onExpand]
146
+ [onExpand, expanding]
147
147
  );
148
148
 
149
149
  const handleCheckBoxChange = useCallback(
@@ -151,7 +151,7 @@ const TreeTable: React.FC<TreeTableProps> = ({
151
151
  if (expanding) return;
152
152
  onChange?.(e, node);
153
153
  },
154
- [onChange]
154
+ [onChange, expanding]
155
155
  );
156
156
 
157
157
  const handleRowClick = useCallback(
@@ -159,7 +159,7 @@ const TreeTable: React.FC<TreeTableProps> = ({
159
159
  if (expanding) return;
160
160
  onClick?.(e, node);
161
161
  },
162
- [onClick]
162
+ [onClick, expanding]
163
163
  );
164
164
 
165
165
  return (