pixel-react 1.1.6 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/components/AttachmentButton/AttachmentButton.d.ts +5 -0
  3. package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
  4. package/lib/components/AttachmentButton/index.d.ts +1 -0
  5. package/lib/components/AttachmentButton/types.d.ts +8 -0
  6. package/lib/components/IconButton/IconButton.stories.d.ts +1 -0
  7. package/lib/components/Input/Input.d.ts +1 -1
  8. package/lib/components/Input/types.d.ts +4 -0
  9. package/lib/components/MiniModal/MiniModal.stories.d.ts +1 -1
  10. package/lib/components/MiniModal/types.d.ts +12 -0
  11. package/lib/components/RadioButton/radioButtonTypes.d.ts +15 -0
  12. package/lib/components/RadioGroup/RadioGroup.stories.d.ts +2 -1
  13. package/lib/components/RadioGroup/radioGroupTypes.d.ts +15 -0
  14. package/lib/components/Select/Select.d.ts +1 -1
  15. package/lib/components/Select/types.d.ts +4 -0
  16. package/lib/components/Table/Table.d.ts +1 -1
  17. package/lib/components/Table/Types.d.ts +8 -0
  18. package/lib/components/TableTree/TableTree.d.ts +1 -0
  19. package/lib/index.d.ts +32 -4
  20. package/lib/index.esm.js +360 -148
  21. package/lib/index.esm.js.map +1 -1
  22. package/lib/index.js +360 -147
  23. package/lib/index.js.map +1 -1
  24. package/lib/tsconfig.tsbuildinfo +1 -1
  25. package/package.json +1 -1
  26. package/src/assets/Themes/BaseTheme.scss +18 -1
  27. package/src/assets/Themes/DarkTheme.scss +16 -0
  28. package/src/assets/icons/add_file.svg +14 -0
  29. package/src/assets/icons/app_switch.svg +11 -0
  30. package/src/assets/icons/backward_icon.svg +3 -0
  31. package/src/assets/icons/cloud_server_host_icon.svg +3 -0
  32. package/src/assets/icons/continue_without_sign.svg +3 -0
  33. package/src/assets/icons/forward_icon.svg +3 -0
  34. package/src/assets/icons/hamburger_menu.svg +3 -0
  35. package/src/assets/icons/nlp_help_icon.svg +3 -0
  36. package/src/assets/icons/notification_icon.svg +3 -0
  37. package/src/assets/icons/plus_user_icon.svg +3 -0
  38. package/src/assets/icons/reload.svg +3 -0
  39. package/src/assets/icons/toast_close.svg +2 -2
  40. package/src/assets/icons/update_icon.svg +3 -0
  41. package/src/assets/icons/user_profile.svg +3 -0
  42. package/src/assets/icons/window_maximize.svg +4 -0
  43. package/src/assets/icons/window_minimize.svg +3 -0
  44. package/src/components/AppHeader/AppHeader.scss +58 -1
  45. package/src/components/AttachmentButton/AttachmentButton.scss +9 -0
  46. package/src/components/AttachmentButton/AttachmentButton.stories.tsx +76 -0
  47. package/src/components/AttachmentButton/AttachmentButton.tsx +113 -0
  48. package/src/components/AttachmentButton/index.ts +1 -0
  49. package/src/components/AttachmentButton/types.ts +8 -0
  50. package/src/components/Chip/Chip.scss +14 -13
  51. package/src/components/Drawer/Drawer.scss +0 -1
  52. package/src/components/Icon/Icon.stories.tsx +1 -1
  53. package/src/components/Icon/Icons.scss +1 -1
  54. package/src/components/Icon/iconList.ts +32 -0
  55. package/src/components/IconButton/IconButton.scss +23 -12
  56. package/src/components/IconButton/IconButton.stories.tsx +9 -1
  57. package/src/components/IconButton/IconButton.tsx +5 -3
  58. package/src/components/Input/Input.scss +6 -1
  59. package/src/components/Input/Input.tsx +8 -4
  60. package/src/components/Input/types.ts +4 -0
  61. package/src/components/MiniModal/MiniModal.scss +39 -8
  62. package/src/components/MiniModal/MiniModal.stories.tsx +199 -75
  63. package/src/components/MiniModal/MiniModal.tsx +46 -2
  64. package/src/components/MiniModal/types.ts +13 -0
  65. package/src/components/Modal/modal.scss +1 -1
  66. package/src/components/MultiSelect/MultiSelect.scss +2 -2
  67. package/src/components/RadioButton/RadioButton.scss +74 -68
  68. package/src/components/RadioButton/RadioButton.tsx +22 -15
  69. package/src/components/RadioButton/radioButtonTypes.tsx +18 -0
  70. package/src/components/RadioGroup/RadioGroup.stories.tsx +42 -1
  71. package/src/components/RadioGroup/RadioGroup.tsx +3 -0
  72. package/src/components/RadioGroup/radioGroupTypes.tsx +18 -0
  73. package/src/components/Select/Select.scss +1 -2
  74. package/src/components/Select/Select.tsx +3 -2
  75. package/src/components/Select/types.ts +5 -0
  76. package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +5 -5
  77. package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +1 -1
  78. package/src/components/Table/Table.scss +1 -0
  79. package/src/components/Table/Table.tsx +28 -13
  80. package/src/components/Table/Types.ts +8 -0
  81. package/src/components/TableTree/TableTree.scss +18 -2
  82. package/src/components/TableTree/TableTree.stories.tsx +9 -51
  83. package/src/components/TableTree/TableTree.tsx +15 -2
  84. package/src/index.ts +2 -0
@@ -8,6 +8,7 @@ import { checkEmpty } from '../../utils/checkEmpty/checkEmpty';
8
8
  import Checkbox from '../Checkbox';
9
9
  import './TableTree.scss';
10
10
  import RadioButton from '../RadioButton';
11
+ import Typography from '../Typography';
11
12
 
12
13
  interface ColumnDataProps {
13
14
  name: string;
@@ -16,6 +17,7 @@ interface ColumnDataProps {
16
17
  isClickable?: boolean;
17
18
  minWidth?: string;
18
19
  cell?: (e: any) => JSX.Element | string | ReactNode;
20
+ actions?: (e: any) => JSX.Element | string | ReactNode;
19
21
  }
20
22
 
21
23
  interface ObjectProps {
@@ -162,11 +164,22 @@ const TableTree = ({
162
164
  )}
163
165
  {select === 'radio' && (
164
166
  <RadioButton
165
- checked={selected.includes(node.key)}
167
+ // checked={selected.includes(node.key)}
168
+ name={node.title}
169
+ value={node.key}
166
170
  onChange={(e) => handleCheckBoxChange(e, node)}
167
171
  />
168
172
  )}
169
- {prepareData(node, column)}
173
+
174
+ <Typography className="ff-title-label" fontWeight="medium">
175
+ {prepareData(node, column)}
176
+ </Typography>
177
+
178
+ {column.actions && (
179
+ <div className="ff-title-action-container">
180
+ {column.actions(node)}
181
+ </div>
182
+ )}
170
183
  </div>
171
184
  </td>
172
185
  );
package/src/index.ts CHANGED
@@ -48,6 +48,7 @@ import Recaptcha from './components/FF_Captcha/Recaptcha';
48
48
  import NLPInput from './components/NLPInput';
49
49
  import MachineInputField from './components/MachineInputField';
50
50
  import SequentialConnectingBranch from './components/SequentialConnectingBranch';
51
+ import AttachmentButton from './components/AttachmentButton';
51
52
 
52
53
  // Utils imports
53
54
  import { checkEmpty } from './utils/checkEmpty/checkEmpty';
@@ -117,6 +118,7 @@ export {
117
118
  NLPInput,
118
119
  MachineInputField,
119
120
  SequentialConnectingBranch,
121
+ AttachmentButton,
120
122
 
121
123
  // utils exports
122
124
  checkEmpty,