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.
- package/.yarn/install-state.gz +0 -0
- package/lib/components/AttachmentButton/AttachmentButton.d.ts +5 -0
- package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
- package/lib/components/AttachmentButton/index.d.ts +1 -0
- package/lib/components/AttachmentButton/types.d.ts +8 -0
- package/lib/components/IconButton/IconButton.stories.d.ts +1 -0
- package/lib/components/Input/Input.d.ts +1 -1
- package/lib/components/Input/types.d.ts +4 -0
- package/lib/components/MiniModal/MiniModal.stories.d.ts +1 -1
- package/lib/components/MiniModal/types.d.ts +12 -0
- package/lib/components/RadioButton/radioButtonTypes.d.ts +15 -0
- package/lib/components/RadioGroup/RadioGroup.stories.d.ts +2 -1
- package/lib/components/RadioGroup/radioGroupTypes.d.ts +15 -0
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Select/types.d.ts +4 -0
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/components/Table/Types.d.ts +8 -0
- package/lib/components/TableTree/TableTree.d.ts +1 -0
- package/lib/index.d.ts +32 -4
- package/lib/index.esm.js +360 -148
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +360 -147
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/assets/Themes/BaseTheme.scss +18 -1
- package/src/assets/Themes/DarkTheme.scss +16 -0
- package/src/assets/icons/add_file.svg +14 -0
- package/src/assets/icons/app_switch.svg +11 -0
- package/src/assets/icons/backward_icon.svg +3 -0
- package/src/assets/icons/cloud_server_host_icon.svg +3 -0
- package/src/assets/icons/continue_without_sign.svg +3 -0
- package/src/assets/icons/forward_icon.svg +3 -0
- package/src/assets/icons/hamburger_menu.svg +3 -0
- package/src/assets/icons/nlp_help_icon.svg +3 -0
- package/src/assets/icons/notification_icon.svg +3 -0
- package/src/assets/icons/plus_user_icon.svg +3 -0
- package/src/assets/icons/reload.svg +3 -0
- package/src/assets/icons/toast_close.svg +2 -2
- package/src/assets/icons/update_icon.svg +3 -0
- package/src/assets/icons/user_profile.svg +3 -0
- package/src/assets/icons/window_maximize.svg +4 -0
- package/src/assets/icons/window_minimize.svg +3 -0
- package/src/components/AppHeader/AppHeader.scss +58 -1
- package/src/components/AttachmentButton/AttachmentButton.scss +9 -0
- package/src/components/AttachmentButton/AttachmentButton.stories.tsx +76 -0
- package/src/components/AttachmentButton/AttachmentButton.tsx +113 -0
- package/src/components/AttachmentButton/index.ts +1 -0
- package/src/components/AttachmentButton/types.ts +8 -0
- package/src/components/Chip/Chip.scss +14 -13
- package/src/components/Drawer/Drawer.scss +0 -1
- package/src/components/Icon/Icon.stories.tsx +1 -1
- package/src/components/Icon/Icons.scss +1 -1
- package/src/components/Icon/iconList.ts +32 -0
- package/src/components/IconButton/IconButton.scss +23 -12
- package/src/components/IconButton/IconButton.stories.tsx +9 -1
- package/src/components/IconButton/IconButton.tsx +5 -3
- package/src/components/Input/Input.scss +6 -1
- package/src/components/Input/Input.tsx +8 -4
- package/src/components/Input/types.ts +4 -0
- package/src/components/MiniModal/MiniModal.scss +39 -8
- package/src/components/MiniModal/MiniModal.stories.tsx +199 -75
- package/src/components/MiniModal/MiniModal.tsx +46 -2
- package/src/components/MiniModal/types.ts +13 -0
- package/src/components/Modal/modal.scss +1 -1
- package/src/components/MultiSelect/MultiSelect.scss +2 -2
- package/src/components/RadioButton/RadioButton.scss +74 -68
- package/src/components/RadioButton/RadioButton.tsx +22 -15
- package/src/components/RadioButton/radioButtonTypes.tsx +18 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +42 -1
- package/src/components/RadioGroup/RadioGroup.tsx +3 -0
- package/src/components/RadioGroup/radioGroupTypes.tsx +18 -0
- package/src/components/Select/Select.scss +1 -2
- package/src/components/Select/Select.tsx +3 -2
- package/src/components/Select/types.ts +5 -0
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +5 -5
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +1 -1
- package/src/components/Table/Table.scss +1 -0
- package/src/components/Table/Table.tsx +28 -13
- package/src/components/Table/Types.ts +8 -0
- package/src/components/TableTree/TableTree.scss +18 -2
- package/src/components/TableTree/TableTree.stories.tsx +9 -51
- package/src/components/TableTree/TableTree.tsx +15 -2
- 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
|
-
|
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,
|