pixel-react 1.14.23 → 1.14.24
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/lib/components/AddResourceButton/AddResourceButton.js +3 -1
- package/lib/components/AddResourceButton/AddResourceButton.js.map +1 -1
- package/lib/components/AddResourceButton/type.d.ts +6 -0
- package/lib/components/AddResourceButton/type.js +3 -1
- package/lib/components/AddResourceButton/type.js.map +1 -1
- package/lib/components/ChooseFile/ChooseFile.js +38 -17
- package/lib/components/ChooseFile/ChooseFile.js.map +1 -1
- package/lib/components/Icon/Icon.js +1 -1
- package/lib/components/Icon/Icon.js.map +1 -1
- package/lib/components/MenuOption/MenuOption.js +2 -2
- package/lib/components/MenuOption/MenuOption.js.map +1 -1
- package/lib/components/Search/Search.js +3 -1
- package/lib/components/Search/Search.js.map +1 -1
- package/lib/components/Select/Select.js +6 -4
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Select/components/Dropdown.js +4 -3
- package/lib/components/Select/components/Dropdown.js.map +1 -1
- package/lib/components/Select/components/types.d.ts +1 -0
- package/lib/components/Select/components/types.js.map +1 -1
- package/lib/components/StepsLandingTable/StepLandingTable.js +2 -0
- package/lib/components/StepsLandingTable/StepLandingTable.js.map +1 -1
- package/lib/components/TextEditor/TextEditor.js +10 -10
- package/lib/components/TextEditor/TextEditor.js.map +1 -1
- package/lib/index.cjs +70 -42
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/validations/regex.d.ts +1 -1
- package/lib/validations/regex.js +2 -2
- package/lib/validations/regex.js.map +1 -1
- package/package.json +1 -1
@@ -187,26 +187,26 @@ const TextEditor = ({
|
|
187
187
|
ref: buttonsRef,
|
188
188
|
className: "ff-textEditor-buttons",
|
189
189
|
children: [jsx(Tooltip, {
|
190
|
-
title: "
|
190
|
+
title: "Update",
|
191
191
|
placement: "bottom",
|
192
192
|
children: jsx(Icon, {
|
193
|
-
name: "
|
194
|
-
color: "var(--label-edit-
|
193
|
+
name: "update_icon",
|
194
|
+
color: "var(--label-edit-confirm-icon)",
|
195
195
|
height: 20,
|
196
196
|
width: 20,
|
197
|
-
|
198
|
-
|
197
|
+
hoverEffect: true,
|
198
|
+
onClick: handleSubmit
|
199
199
|
})
|
200
200
|
}), jsx(Tooltip, {
|
201
|
-
title: "
|
201
|
+
title: "Cancel",
|
202
202
|
placement: "bottom",
|
203
203
|
children: jsx(Icon, {
|
204
|
-
name: "
|
205
|
-
color: "var(--label-edit-
|
204
|
+
name: "close",
|
205
|
+
color: "var(--label-edit-cancel-icon)",
|
206
206
|
height: 20,
|
207
207
|
width: 20,
|
208
|
-
|
209
|
-
|
208
|
+
onClick: handleCancel,
|
209
|
+
hoverEffect: true
|
210
210
|
})
|
211
211
|
})]
|
212
212
|
}), required && errorMsg || helperText && error ? jsx(Typography, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextEditor.js","sources":["../../../src/components/TextEditor/TextEditor.tsx"],"sourcesContent":[null],"names":["TextEditor","convertedContent","setConvertedContent","readOnly","toolbarHidden","toolbarOptions","label","required","onBlur","mode","helperText","analyticsClasses","error","editableTextEditor","onSubmit","editorState","setEditorState","useState","focusState","setFocusState","errorMsg","setErrorMsg","isEditing","setIsEditing","initialContent","setInitialContent","editorRef","useRef","buttonsRef","defaultToolBarOptions","parseContent","content","parsed","JSON","parse","blocks","convertToRaw","ContentState","createFromText","e","useEffect","newEditorState","checkEmpty","EditorState","createWithContent","convertFromRaw","createEmpty","console","length","handleEditorChange","state","currentContentAsRaw","getCurrentContent","text","handleClickOutside","useClickOutside","handleEditorBlur","event","stringify","handleDoubleClick","isDashContent","handleSubmit","contentString","handleCancel","EditorComponent","DraftEditor","_jsxs","className","children","_jsx","Typography","lineHeight","fontWeight","fontSize","ref","onDoubleClick","onEditorStateChange","wrapperClassName","editorClassName","editorStyle","border","borderRadius","onFocus","toolbarClassName","handlePastedText","toolbar","options","Array","isArray","fontFamily","Tooltip","title","placement","Icon","name","color","height","width","
|
1
|
+
{"version":3,"file":"TextEditor.js","sources":["../../../src/components/TextEditor/TextEditor.tsx"],"sourcesContent":[null],"names":["TextEditor","convertedContent","setConvertedContent","readOnly","toolbarHidden","toolbarOptions","label","required","onBlur","mode","helperText","analyticsClasses","error","editableTextEditor","onSubmit","editorState","setEditorState","useState","focusState","setFocusState","errorMsg","setErrorMsg","isEditing","setIsEditing","initialContent","setInitialContent","editorRef","useRef","buttonsRef","defaultToolBarOptions","parseContent","content","parsed","JSON","parse","blocks","convertToRaw","ContentState","createFromText","e","useEffect","newEditorState","checkEmpty","EditorState","createWithContent","convertFromRaw","createEmpty","console","length","handleEditorChange","state","currentContentAsRaw","getCurrentContent","text","handleClickOutside","useClickOutside","handleEditorBlur","event","stringify","handleDoubleClick","isDashContent","handleSubmit","contentString","handleCancel","EditorComponent","DraftEditor","_jsxs","className","children","_jsx","Typography","lineHeight","fontWeight","fontSize","ref","onDoubleClick","onEditorStateChange","wrapperClassName","editorClassName","editorStyle","border","borderRadius","onFocus","toolbarClassName","handlePastedText","toolbar","options","Array","isArray","fontFamily","Tooltip","title","placement","Icon","name","color","height","width","hoverEffect","onClick","as"],"mappings":";;;;;;;;;;AAgBA,MAAMA,UAAU,GAA4BA,CAAC;EAC3CC,gBAAgB;EAChBC,mBAAmB;EACnBC,QAAQ;EACRC,aAAa;EACbC,cAAc;EACdC,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V;;;;"}
|
package/lib/index.cjs
CHANGED
@@ -1597,7 +1597,7 @@ const Icon = /*#__PURE__*/React.forwardRef(({
|
|
1597
1597
|
style: {
|
1598
1598
|
height: `${iconHeight}px`,
|
1599
1599
|
width: `${iconWidth}px`,
|
1600
|
-
cursor: disabled ? 'not-allowed' : 'pointer'
|
1600
|
+
cursor: disabled ? 'not-allowed' : hoverEffect ? 'pointer' : 'default'
|
1601
1601
|
},
|
1602
1602
|
className: classNames('ff-icon-container', {
|
1603
1603
|
'ff-icon-click': hoverEffect,
|
@@ -2644,8 +2644,8 @@ const DETECT_AT_CHAR_AT_START = /(?:^|\s)@[^@\s]*$/;
|
|
2644
2644
|
const CHECK_AT_FOLLOWED_BY_WORD = /@(\S*)$/;
|
2645
2645
|
//To detect word starting with "@"
|
2646
2646
|
const DETECT_WORD_START_WITH_AT = /(\@\w+)/;
|
2647
|
-
//To check email validations
|
2648
|
-
const EMAIL_VALIDATION_REGEX = /^[a-zA-Z0-9](?!.*[._-]{2})[a-zA-Z0-9._-]*[a-zA-Z0-9]@[a-zA-Z0-9
|
2647
|
+
//To check email validations
|
2648
|
+
const EMAIL_VALIDATION_REGEX = /^[a-zA-Z0-9](?!.*[._-]{2})[a-zA-Z0-9._-]*[a-zA-Z0-9]@[a-zA-Z0-9._-]+\.[a-zA-Z]{2,}$/;
|
2649
2649
|
//To Validate all sorts of URls for Link Component in ManualTestCase (inclusive of optional params)
|
2650
2650
|
const LINK_VALIDATION_REGEX = /^(https?:\/\/)?((?!.*\.\.)[\da-z.-]+)\.([\da-z.-]+)(\/[\/\w\-.~:?#[\]@!$&'()*+,;=]*)*$/i;
|
2651
2651
|
// Alphanumeric Validation with specific Order including special characters (- , _ , ( , ) )
|
@@ -6053,7 +6053,8 @@ const Dropdown$1 = /*#__PURE__*/React.forwardRef(({
|
|
6053
6053
|
modalJSXProps = jsxRuntime.jsx(jsxRuntime.Fragment, {}),
|
6054
6054
|
showArrowIcon = true,
|
6055
6055
|
showClearIcon = false,
|
6056
|
-
noResultsMessage
|
6056
|
+
noResultsMessage,
|
6057
|
+
searchedIcon = ''
|
6057
6058
|
}, ref) => {
|
6058
6059
|
const themeContext = React.useContext(ThemeContext);
|
6059
6060
|
const currentTheme = themeContext?.currentTheme;
|
@@ -6089,9 +6090,9 @@ const Dropdown$1 = /*#__PURE__*/React.forwardRef(({
|
|
6089
6090
|
return {
|
6090
6091
|
left: positionX,
|
6091
6092
|
top: positionY + dynamicHeightFromTop - 10,
|
6092
|
-
width: showIcon ? width + 70 : showArrowIcon || showClearIcon ? width + 32 : width + 10,
|
6093
|
+
width: showIcon && !checkEmpty(searchedIcon) ? width + 70 : showArrowIcon || showClearIcon ? width + 32 : width + 10,
|
6093
6094
|
zIndex: optionZIndex,
|
6094
|
-
marginLeft: showIcon ? '-31px' : '-2px'
|
6095
|
+
marginLeft: showIcon && !checkEmpty(searchedIcon) ? '-31px' : '-2px'
|
6095
6096
|
};
|
6096
6097
|
}
|
6097
6098
|
return {
|
@@ -6487,7 +6488,7 @@ const Select$1 = ({
|
|
6487
6488
|
'ff-select__error__focused': !!errorMsg && showDropdownOptions,
|
6488
6489
|
'ff-select__no_border': !showBorder
|
6489
6490
|
}),
|
6490
|
-
children: [showIcon && jsxRuntime.jsx(Tooltip, {
|
6491
|
+
children: [showIcon && !checkEmpty(searchedIcon) && jsxRuntime.jsx(Tooltip, {
|
6491
6492
|
placement: "bottom",
|
6492
6493
|
title: searchedText,
|
6493
6494
|
children: jsxRuntime.jsx(Icon, {
|
@@ -6507,7 +6508,7 @@ const Select$1 = ({
|
|
6507
6508
|
className: classNames('ff-select-inputField', {
|
6508
6509
|
'ff-select-inputField__disabled': disabled,
|
6509
6510
|
'ff-select-inputField__readonly': disableInput,
|
6510
|
-
'ff-select-inputField__icon': showIcon
|
6511
|
+
'ff-select-inputField__icon': showIcon && !checkEmpty(searchedIcon)
|
6511
6512
|
}),
|
6512
6513
|
onFocus: handleFocus,
|
6513
6514
|
value: searchedText,
|
@@ -6540,7 +6541,7 @@ const Select$1 = ({
|
|
6540
6541
|
}), showLabel && jsxRuntime.jsx(Typography, {
|
6541
6542
|
as: "span",
|
6542
6543
|
className: classNames('ff-select-labels', {
|
6543
|
-
'ff-select-labels__icon': showIcon,
|
6544
|
+
'ff-select-labels__icon': showIcon && !checkEmpty(searchedIcon),
|
6544
6545
|
'ff-select-labels__active': searchedText
|
6545
6546
|
}),
|
6546
6547
|
fontSize: searchedText || showDropdownOptions ? 10 : 12,
|
@@ -6585,7 +6586,8 @@ const Select$1 = ({
|
|
6585
6586
|
showArrowIcon: showArrowIcon,
|
6586
6587
|
showClearIcon: showClearIcon,
|
6587
6588
|
noResultsMessage: noResultsMessage,
|
6588
|
-
ref: dropDownRef
|
6589
|
+
ref: dropDownRef,
|
6590
|
+
searchedIcon: searchedIcon
|
6589
6591
|
}), document.body)
|
6590
6592
|
}), showClearIcon && jsxRuntime.jsx(Tooltip, {
|
6591
6593
|
title: "Cancel",
|
@@ -6939,12 +6941,12 @@ const MenuOption = ({
|
|
6939
6941
|
React.useEffect(() => {
|
6940
6942
|
if (targetRef && !checkEmpty(options)) {
|
6941
6943
|
const parentDom = getAnchorElement(targetRef);
|
6942
|
-
parentDom?.classList.toggle('hover', isClicked);
|
6944
|
+
parentDom?.classList.toggle('menu-hover-active', isClicked);
|
6943
6945
|
}
|
6944
6946
|
return () => {
|
6945
6947
|
if (targetRef) {
|
6946
6948
|
const parentDom = getAnchorElement(targetRef);
|
6947
|
-
parentDom?.classList.remove('hover');
|
6949
|
+
parentDom?.classList.remove('menu-hover-active');
|
6948
6950
|
}
|
6949
6951
|
};
|
6950
6952
|
}, [isClicked, targetRef, options]);
|
@@ -12210,7 +12212,9 @@ const validateArrows = arrows => {
|
|
12210
12212
|
label: 'Sub Module',
|
12211
12213
|
value: 'sub_module',
|
12212
12214
|
icon: '',
|
12213
|
-
disable: false
|
12215
|
+
disable: false,
|
12216
|
+
tooltipForOption: '',
|
12217
|
+
tooltipPlacementForOption: undefined
|
12214
12218
|
}]
|
12215
12219
|
}];
|
12216
12220
|
}
|
@@ -12226,7 +12230,9 @@ const AddResourceButton = ({
|
|
12226
12230
|
label: 'Sub Module',
|
12227
12231
|
value: 'sub_module',
|
12228
12232
|
icon: '',
|
12229
|
-
disable: false
|
12233
|
+
disable: false,
|
12234
|
+
tooltipForOption: '',
|
12235
|
+
tooltipPlacementForOption: undefined
|
12230
12236
|
}]
|
12231
12237
|
}],
|
12232
12238
|
zIndex = 1400,
|
@@ -18134,7 +18140,9 @@ const Search = ({
|
|
18134
18140
|
hoverEffect: true,
|
18135
18141
|
onClick: () => {
|
18136
18142
|
handleSearchClearAndClose('Close');
|
18137
|
-
}
|
18143
|
+
},
|
18144
|
+
height: 12,
|
18145
|
+
width: 12
|
18138
18146
|
})
|
18139
18147
|
})
|
18140
18148
|
}), isAISearch && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
@@ -48566,24 +48574,42 @@ const ChooseFile = ({
|
|
48566
48574
|
handleCloseIcon,
|
48567
48575
|
isMandatory = false
|
48568
48576
|
}) => {
|
48577
|
+
const wrapperRef = React.useRef(null);
|
48578
|
+
const [width, setWidth] = React.useState(0);
|
48579
|
+
const END_PADDING_RESERVE = 10;
|
48580
|
+
React.useLayoutEffect(() => {
|
48581
|
+
if (wrapperRef.current) {
|
48582
|
+
setWidth(wrapperRef.current.getBoundingClientRect().width - END_PADDING_RESERVE);
|
48583
|
+
}
|
48584
|
+
}, [buttonWidth]);
|
48585
|
+
const text = selectedFile?.name || label;
|
48586
|
+
const truncatedText = width ? truncateText(text, width, 'pixel') : text;
|
48587
|
+
const showTooltip = width ? isTextTruncated(text, width, 'pixel') : false;
|
48569
48588
|
return jsxRuntime.jsx("div", {
|
48570
|
-
|
48571
|
-
|
48572
|
-
|
48573
|
-
|
48574
|
-
|
48575
|
-
|
48576
|
-
|
48577
|
-
|
48578
|
-
|
48579
|
-
|
48580
|
-
|
48581
|
-
|
48582
|
-
|
48583
|
-
|
48584
|
-
|
48585
|
-
|
48586
|
-
|
48589
|
+
ref: wrapperRef,
|
48590
|
+
style: {
|
48591
|
+
width: buttonWidth
|
48592
|
+
},
|
48593
|
+
children: jsxRuntime.jsx(Tooltip, {
|
48594
|
+
title: showTooltip ? text : '',
|
48595
|
+
children: jsxRuntime.jsx(Button$1, {
|
48596
|
+
variant: variant,
|
48597
|
+
label: truncatedText,
|
48598
|
+
type: type,
|
48599
|
+
onClick: onClick,
|
48600
|
+
buttonWidth: buttonWidth,
|
48601
|
+
buttonHeight: buttonHeight,
|
48602
|
+
isChooseFile: isChooseFile,
|
48603
|
+
size: size,
|
48604
|
+
disabled: disabled,
|
48605
|
+
className: className,
|
48606
|
+
iconName: iconName,
|
48607
|
+
style: style,
|
48608
|
+
iconPosition: "right",
|
48609
|
+
selectedFile: selectedFile,
|
48610
|
+
handleCloseIcon: handleCloseIcon,
|
48611
|
+
isMandatory: isMandatory
|
48612
|
+
})
|
48587
48613
|
})
|
48588
48614
|
});
|
48589
48615
|
};
|
@@ -80354,6 +80380,8 @@ const StepLandingTable = /*#__PURE__*/React.forwardRef(({
|
|
80354
80380
|
partialSelected: stepPartialSelect
|
80355
80381
|
};
|
80356
80382
|
onSelectClick?.(updatedSelection);
|
80383
|
+
} else {
|
80384
|
+
onSelectClick?.(selectedRows);
|
80357
80385
|
}
|
80358
80386
|
}, [selectedRows]);
|
80359
80387
|
const handleMainCheckbox = (sectionTitle, checked) => {
|
@@ -114297,26 +114325,26 @@ const TextEditor = ({
|
|
114297
114325
|
ref: buttonsRef,
|
114298
114326
|
className: "ff-textEditor-buttons",
|
114299
114327
|
children: [jsxRuntime.jsx(Tooltip, {
|
114300
|
-
title: "
|
114328
|
+
title: "Update",
|
114301
114329
|
placement: "bottom",
|
114302
114330
|
children: jsxRuntime.jsx(Icon, {
|
114303
|
-
name: "
|
114304
|
-
color: "var(--label-edit-
|
114331
|
+
name: "update_icon",
|
114332
|
+
color: "var(--label-edit-confirm-icon)",
|
114305
114333
|
height: 20,
|
114306
114334
|
width: 20,
|
114307
|
-
|
114308
|
-
|
114335
|
+
hoverEffect: true,
|
114336
|
+
onClick: handleSubmit
|
114309
114337
|
})
|
114310
114338
|
}), jsxRuntime.jsx(Tooltip, {
|
114311
|
-
title: "
|
114339
|
+
title: "Cancel",
|
114312
114340
|
placement: "bottom",
|
114313
114341
|
children: jsxRuntime.jsx(Icon, {
|
114314
|
-
name: "
|
114315
|
-
color: "var(--label-edit-
|
114342
|
+
name: "close",
|
114343
|
+
color: "var(--label-edit-cancel-icon)",
|
114316
114344
|
height: 20,
|
114317
114345
|
width: 20,
|
114318
|
-
|
114319
|
-
|
114346
|
+
onClick: handleCancel,
|
114347
|
+
hoverEffect: true
|
114320
114348
|
})
|
114321
114349
|
})]
|
114322
114350
|
}), required && errorMsg || helperText && error ? jsxRuntime.jsx(Typography, {
|