pixel-react 1.7.5 → 1.7.7
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.
- package/.yarn/install-state.gz +0 -0
- package/lib/StyleGuide/ColorPalette/ColorPalette.stories.d.ts +6 -0
- package/lib/StyleGuide/Typography/Typography.stories.d.ts +6 -0
- package/lib/components/Accordion/Accordion.stories.d.ts +6 -0
- package/lib/components/AddResourceButton/AddButton.stories.d.ts +8 -0
- package/lib/components/Button/Button.stories.d.ts +12 -0
- package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +6 -0
- package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +6 -0
- package/lib/components/Checkbox/Checkbox.stories.d.ts +8 -0
- package/lib/components/Chip/Chip.stories.d.ts +14 -0
- package/lib/components/ConditionalDropdown/types.d.ts +1 -1
- package/lib/components/DatePicker/DatePicker.stories.d.ts +9 -0
- package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
- package/lib/components/Drawer/Drawer.stories.d.ts +7 -0
- package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +7 -0
- package/lib/components/FileDropzone/FileDropzone.stories.d.ts +8 -0
- package/lib/components/FileDropzone/types.d.ts +12 -4
- package/lib/components/Form/Form.stories.d.ts +6 -0
- package/lib/components/GridLayout/GridLayout.stories.d.ts +8 -0
- package/lib/components/HighlightText/HighlightText.stories.d.ts +6 -0
- package/lib/components/Icon/Icon.stories.d.ts +7 -0
- package/lib/components/IconButton/IconButton.stories.d.ts +6 -0
- package/lib/components/Input/Input.stories.d.ts +9 -0
- package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +9 -0
- package/lib/components/LazyLoad/LazyLoad.stories.d.ts +6 -0
- package/lib/components/MenuOption/MenuOption.stories.d.ts +15 -0
- package/lib/components/MenuOption/types.d.ts +1 -1
- package/lib/components/MiniModal/MiniModal.stories.d.ts +9 -0
- package/lib/components/Modal/Modal.stories.d.ts +7 -0
- package/lib/components/MultiSelect/MultiSelect.stories.d.ts +9 -0
- package/lib/components/PopUpModal/types.d.ts +2 -1
- package/lib/components/RadioButton/RadioButton.stories.d.ts +10 -0
- package/lib/components/RadioGroup/RadioGroup.stories.d.ts +8 -0
- package/lib/components/Search/Search.stories.d.ts +6 -0
- package/lib/components/Select/Select.stories.d.ts +13 -0
- package/lib/components/Select/components/Dropdown/Dropdown.d.ts +4 -0
- package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +15 -0
- package/lib/components/StateDropdown/StateDropdown.stories.d.ts +10 -0
- package/lib/components/StatusButton/StatusButton.stories.d.ts +14 -0
- package/lib/components/Table/Table.stories.d.ts +11 -0
- package/lib/components/TableTree/TableTree.stories.d.ts +7 -0
- package/lib/components/Tabs/Tabs.stories.d.ts +9 -0
- package/lib/components/TextArea/Textarea.stories.d.ts +9 -0
- package/lib/components/ThemeProvider/CustomThemeProvider.d.ts +8 -0
- package/lib/components/ThemeProvider/types.d.ts +1 -1
- package/lib/components/Toast/Toast.stories.d.ts +6 -0
- package/lib/components/Toggle/Toggle.stories.d.ts +12 -0
- package/lib/components/Tooltip/Tooltip.stories.d.ts +15 -0
- package/lib/components/Typography/Typography.stories.d.ts +10 -0
- package/lib/hooks/useCustomThemeProvider.d.ts +11 -0
- package/lib/index.d.ts +70 -64
- package/lib/index.esm.js +204 -272
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +204 -272
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +6 -0
- package/lib/utils/compareArrays/compareArrays.stories.d.ts +6 -0
- package/lib/utils/compareObjects/compareObjects.stories.d.ts +6 -0
- package/lib/utils/debounce/debounce.stories.d.ts +6 -0
- package/lib/utils/ffID/ffID.stories.d.ts +6 -0
- package/lib/utils/find/findAndInsert.d.ts +7 -0
- package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
- package/lib/utils/getExtension/getExtension.stories.d.ts +6 -0
- package/lib/utils/throttle/throttle.stories.d.ts +6 -0
- package/lib/utils/truncateText/truncateText.stories.d.ts +6 -0
- package/package.json +1 -1
- package/src/assets/Themes/BlueTheme.scss +279 -0
- package/src/assets/Themes/Theme.scss +5 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.scss +4 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +1 -1
- package/src/components/ConditionalDropdown/ConditionalDropdown.stories.tsx +1 -1
- package/src/components/ConditionalDropdown/types.ts +1 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +8 -8
- package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +1 -5
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +4 -3
- package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +35 -27
- package/src/components/FileDropzone/Dropzone.tsx +3 -0
- package/src/components/FileDropzone/FileDropzone.scss +18 -0
- package/src/components/FileDropzone/FileDropzone.stories.tsx +75 -7
- package/src/components/FileDropzone/FileDropzone.tsx +2 -0
- package/src/components/FileDropzone/RadioFilePreview.tsx +7 -3
- package/src/components/FileDropzone/types.ts +13 -4
- package/src/components/Icon/iconList.ts +2 -2
- package/src/components/MenuOption/MenuOption.stories.tsx +2 -3
- package/src/components/MenuOption/MenuOption.tsx +27 -29
- package/src/components/MenuOption/types.ts +1 -1
- package/src/components/PopUpModal/types.ts +4 -3
- package/src/components/Search/Search.stories.tsx +1 -2
- package/src/components/ThemeProvider/types.ts +1 -1
- package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
- package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
- package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
- package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/lib/components/Excel/ContextMenu/ContextMenu.d.ts +0 -4
- package/lib/components/NLPInput/type.d.ts +0 -70
- package/lib/components/TableTree/TableTree copy.d.ts +0 -25
- /package/src/assets/icons/{impactList.svg → impact_list.svg} +0 -0
package/lib/index.d.ts
CHANGED
@@ -949,7 +949,7 @@ interface MenuOptionProps {
|
|
949
949
|
* @optional
|
950
950
|
*/
|
951
951
|
optionCardVariant?: 'primary';
|
952
|
-
targetRef?: React.RefObject<HTMLElement>;
|
952
|
+
targetRef?: string | React.RefObject<HTMLElement>;
|
953
953
|
}
|
954
954
|
|
955
955
|
declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, zIndex, dropdownPlacement, optionCardVariant, targetRef, }: MenuOptionProps) => react_jsx_runtime.JSX.Element;
|
@@ -1099,6 +1099,62 @@ type DonutChartProps = {
|
|
1099
1099
|
|
1100
1100
|
declare const DonutChart: React__default.FC<DonutChartProps>;
|
1101
1101
|
|
1102
|
+
type DynamicObj = {
|
1103
|
+
[key: string]: any;
|
1104
|
+
};
|
1105
|
+
interface CreateVariableProps {
|
1106
|
+
/**
|
1107
|
+
* Open Create variable Slider
|
1108
|
+
*/
|
1109
|
+
isOpen: boolean;
|
1110
|
+
/**
|
1111
|
+
* Value for the variable name
|
1112
|
+
*/
|
1113
|
+
variableName: string;
|
1114
|
+
/**
|
1115
|
+
* Value for the variable to be created
|
1116
|
+
*/
|
1117
|
+
value: string;
|
1118
|
+
/**
|
1119
|
+
* List for the variable types
|
1120
|
+
*/
|
1121
|
+
variableTypesList: DynamicObj[];
|
1122
|
+
/**
|
1123
|
+
* Selected variable type
|
1124
|
+
*/
|
1125
|
+
selectedVariableType: DynamicObj;
|
1126
|
+
/**
|
1127
|
+
* Function to handle variable type change
|
1128
|
+
* @param option
|
1129
|
+
* @returns
|
1130
|
+
*/
|
1131
|
+
onVariableTypeChange: (option: DynamicObj) => void;
|
1132
|
+
/**
|
1133
|
+
* Function to handle close
|
1134
|
+
*/
|
1135
|
+
onClose?: () => void;
|
1136
|
+
/**
|
1137
|
+
* onChange of name
|
1138
|
+
*/
|
1139
|
+
onNameChange: (value: string) => void;
|
1140
|
+
/**
|
1141
|
+
* onChange of value
|
1142
|
+
*/
|
1143
|
+
onValueChange: (value: string) => void;
|
1144
|
+
/**
|
1145
|
+
* Hide value
|
1146
|
+
*/
|
1147
|
+
hideValue: boolean;
|
1148
|
+
/**
|
1149
|
+
* onChange for hide value
|
1150
|
+
*/
|
1151
|
+
onHideChange: (value: boolean) => void;
|
1152
|
+
/**
|
1153
|
+
* Function to handle submit
|
1154
|
+
*/
|
1155
|
+
handleSubmit: () => void;
|
1156
|
+
}
|
1157
|
+
|
1102
1158
|
interface RadioOption {
|
1103
1159
|
label: string;
|
1104
1160
|
value: string;
|
@@ -1185,11 +1241,11 @@ interface FileDropzoneProps {
|
|
1185
1241
|
/**
|
1186
1242
|
* Its the File Name of File Selected from Local File.
|
1187
1243
|
**/
|
1188
|
-
setSelectedFile?: (file: File | null) => void;
|
1244
|
+
setSelectedFile?: (file: File | DynamicObj | null) => void;
|
1189
1245
|
/**
|
1190
1246
|
* Its the File Name of File Selected from Local File.
|
1191
1247
|
**/
|
1192
|
-
selectedFile?: File | null;
|
1248
|
+
selectedFile?: File | DynamicObj | null;
|
1193
1249
|
/**
|
1194
1250
|
* Its the function which updates the Selected file from Local Directory.
|
1195
1251
|
**/
|
@@ -1206,6 +1262,10 @@ interface FileDropzoneProps {
|
|
1206
1262
|
* If isDisable is true not able to access the FileDropzone
|
1207
1263
|
**/
|
1208
1264
|
isDisable?: boolean;
|
1265
|
+
/**
|
1266
|
+
* Its the boolean value setted when the replace is clicked for TestData radio option .
|
1267
|
+
**/
|
1268
|
+
setShowDrawer?: (value: boolean | ((prevState: boolean) => boolean)) => void;
|
1209
1269
|
}
|
1210
1270
|
interface FileError {
|
1211
1271
|
message: string;
|
@@ -1250,11 +1310,12 @@ interface DroppableProps {
|
|
1250
1310
|
selectedRadioOption?: Option;
|
1251
1311
|
radioOptions?: RadioOption[];
|
1252
1312
|
handleOptionChange?: (option: RadioOption) => void;
|
1253
|
-
selectedFile?: File | null;
|
1254
|
-
setSelectedFile?: (file: File | null) => void;
|
1313
|
+
selectedFile?: File | DynamicObj | null;
|
1314
|
+
setSelectedFile?: (file: File | DynamicObj | null) => void;
|
1255
1315
|
handleFileChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
1256
1316
|
handleRemoveFile?: () => void;
|
1257
1317
|
isDisable?: boolean;
|
1318
|
+
setShowDrawer?: (value: boolean | ((prevState: boolean) => boolean)) => void;
|
1258
1319
|
}
|
1259
1320
|
interface FilePreviewProps {
|
1260
1321
|
file: File;
|
@@ -1269,7 +1330,7 @@ declare const Dropzone: FC<DroppableProps>;
|
|
1269
1330
|
|
1270
1331
|
declare const FilePreview: React.FC<FilePreviewProps>;
|
1271
1332
|
|
1272
|
-
type Theme = 'ff-light-theme' | 'ff-dark-theme' | 'ff-grey-theme';
|
1333
|
+
type Theme = 'ff-light-theme' | 'ff-dark-theme' | 'ff-grey-theme' | 'ff-blue-theme';
|
1273
1334
|
interface ThemeContextType {
|
1274
1335
|
currentTheme: Theme;
|
1275
1336
|
setCurrentTheme: React.Dispatch<React.SetStateAction<Theme>>;
|
@@ -2618,62 +2679,6 @@ interface fieldSetProps {
|
|
2618
2679
|
|
2619
2680
|
declare const FieldSet: FC<fieldSetProps>;
|
2620
2681
|
|
2621
|
-
type DynamicObj = {
|
2622
|
-
[key: string]: any;
|
2623
|
-
};
|
2624
|
-
interface CreateVariableProps {
|
2625
|
-
/**
|
2626
|
-
* Open Create variable Slider
|
2627
|
-
*/
|
2628
|
-
isOpen: boolean;
|
2629
|
-
/**
|
2630
|
-
* Value for the variable name
|
2631
|
-
*/
|
2632
|
-
variableName: string;
|
2633
|
-
/**
|
2634
|
-
* Value for the variable to be created
|
2635
|
-
*/
|
2636
|
-
value: string;
|
2637
|
-
/**
|
2638
|
-
* List for the variable types
|
2639
|
-
*/
|
2640
|
-
variableTypesList: DynamicObj[];
|
2641
|
-
/**
|
2642
|
-
* Selected variable type
|
2643
|
-
*/
|
2644
|
-
selectedVariableType: DynamicObj;
|
2645
|
-
/**
|
2646
|
-
* Function to handle variable type change
|
2647
|
-
* @param option
|
2648
|
-
* @returns
|
2649
|
-
*/
|
2650
|
-
onVariableTypeChange: (option: DynamicObj) => void;
|
2651
|
-
/**
|
2652
|
-
* Function to handle close
|
2653
|
-
*/
|
2654
|
-
onClose?: () => void;
|
2655
|
-
/**
|
2656
|
-
* onChange of name
|
2657
|
-
*/
|
2658
|
-
onNameChange: (value: string) => void;
|
2659
|
-
/**
|
2660
|
-
* onChange of value
|
2661
|
-
*/
|
2662
|
-
onValueChange: (value: string) => void;
|
2663
|
-
/**
|
2664
|
-
* Hide value
|
2665
|
-
*/
|
2666
|
-
hideValue: boolean;
|
2667
|
-
/**
|
2668
|
-
* onChange for hide value
|
2669
|
-
*/
|
2670
|
-
onHideChange: (value: boolean) => void;
|
2671
|
-
/**
|
2672
|
-
* Function to handle submit
|
2673
|
-
*/
|
2674
|
-
handleSubmit: () => void;
|
2675
|
-
}
|
2676
|
-
|
2677
2682
|
declare const CreateVariableSlider: FC<CreateVariableProps>;
|
2678
2683
|
|
2679
2684
|
interface ColumnProps {
|
@@ -2928,7 +2933,8 @@ interface PopUpModalProps {
|
|
2928
2933
|
titleMessage: string;
|
2929
2934
|
subTitleMessage?: string;
|
2930
2935
|
iconName: string;
|
2931
|
-
modalMessage: string;
|
2936
|
+
modalMessage: string | React.ReactNode;
|
2937
|
+
secondaryMessage?: string | React.ReactNode;
|
2932
2938
|
firstButtonLabel?: string;
|
2933
2939
|
secondButtonLabel: string;
|
2934
2940
|
buttonVariant: any;
|
@@ -2964,7 +2970,7 @@ interface ConditionalDropdownProps {
|
|
2964
2970
|
/**
|
2965
2971
|
* Function storing and updating the inputValue state
|
2966
2972
|
*/
|
2967
|
-
setHashInputValue?: (value: dynamicObject |
|
2973
|
+
setHashInputValue?: (value: File | dynamicObject | null) => void;
|
2968
2974
|
/**
|
2969
2975
|
* List of variables
|
2970
2976
|
*/
|