pixel-react 1.13.70 → 1.13.71
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/StyleGuide/ColorPalette/colorPaletteList.js +10 -0
- package/lib/StyleGuide/ColorPalette/colorPaletteList.js.map +1 -1
- package/lib/_virtual/index10.js +2 -2
- package/lib/_virtual/index11.js +2 -2
- package/lib/assets/icons/capture_image.svg.js +6 -0
- package/lib/assets/icons/capture_image.svg.js.map +1 -0
- package/lib/components/Button/Button.js +6 -2
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/types.d.ts +4 -0
- package/lib/components/ChooseFile/ChooseFile.js +4 -2
- package/lib/components/ChooseFile/ChooseFile.js.map +1 -1
- package/lib/components/ChooseFile/types.d.ts +4 -0
- package/lib/components/Icon/iconList.js +2 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/TextArea/Textarea.d.ts +1 -1
- package/lib/components/TextArea/Textarea.js +6 -3
- package/lib/components/TextArea/Textarea.js.map +1 -1
- package/lib/components/TextArea/Types.d.ts +8 -0
- package/lib/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.js +1 -1
- package/lib/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.js.map +1 -1
- package/lib/index.cjs +20 -8
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +17 -1
- package/lib/node_modules/js-beautify/js/src/css/beautifier.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/index.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/index.js +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
@@ -1009,6 +1009,8 @@ const SvgAiApproved = (props) => /* @__PURE__ */ React__namespace.createElement(
|
|
1009
1009
|
|
1010
1010
|
const SvgVideoRecording = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 18 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M18 2.97752V13.0224C18 13.2011 17.9047 13.3661 17.75 13.4554C17.6727 13.5001 17.5863 13.5224 17.5 13.5224C17.4137 13.5224 17.3273 13.5001 17.25 13.4554L14.196 11.6922V12.1226C14.196 13.2832 13.2518 14.2273 12.0913 14.2273H4.10469C2.94416 14.2273 2 13.2832 2 12.1226V3.87727C2 2.71674 2.94416 1.77258 4.10469 1.77258H12.0913C13.2518 1.77258 14.196 2.71674 14.196 3.87727V4.30774L17.25 2.54449C17.4047 2.45518 17.5953 2.45518 17.75 2.54449C17.9047 2.6338 18 2.79886 18 2.97752ZM13.196 3.87727C13.196 3.26815 12.7004 2.77258 12.0913 2.77258H4.10469C3.49556 2.77258 3 3.26815 3 3.87727V12.1227C3 12.7318 3.49556 13.2274 4.10469 13.2274H12.0913C12.7004 13.2274 13.196 12.7318 13.196 12.1227V3.87727ZM17 3.84355L14.196 5.46243V10.5375L17 12.1564V3.84355Z", fill: "#71347B" }), /* @__PURE__ */ React__namespace.createElement("rect", { x: 0.630859, y: 0.720825, width: 6.08496, height: 6.08496, rx: 3.04248, fill: "#C60202", stroke: "white", strokeWidth: 0.5 }));
|
1011
1011
|
|
1012
|
+
const SvgCaptureImage = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", ...props }, /* @__PURE__ */ React__namespace.createElement("g", { clipPath: "url(#clip0_950_34977)" }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M4.72727 10.5455C4.53439 10.5455 4.3494 10.4688 4.21301 10.3324C4.07662 10.1961 4 10.0111 4 9.81818V7.63636C4.00114 6.67229 4.38462 5.74802 5.06632 5.06632C5.74802 4.38462 6.67229 4.00114 7.63636 4H9.81818C10.0111 4 10.1961 4.07662 10.3324 4.21301C10.4688 4.3494 10.5455 4.53439 10.5455 4.72727C10.5455 4.92016 10.4688 5.10514 10.3324 5.24153C10.1961 5.37792 10.0111 5.45455 9.81818 5.45455H7.63636C7.0579 5.45518 6.50332 5.68525 6.09429 6.09429C5.68525 6.50332 5.45518 7.0579 5.45455 7.63636V9.81818C5.45455 10.0111 5.37792 10.1961 5.24153 10.3324C5.10514 10.4688 4.92016 10.5455 4.72727 10.5455ZM20 9.81818V7.63636C19.9989 6.67229 19.6154 5.74802 18.9337 5.06632C18.252 4.38462 17.3277 4.00114 16.3636 4H14.1818C13.9889 4 13.8039 4.07662 13.6676 4.21301C13.5312 4.3494 13.4545 4.53439 13.4545 4.72727C13.4545 4.92016 13.5312 5.10514 13.6676 5.24153C13.8039 5.37792 13.9889 5.45455 14.1818 5.45455H16.3636C16.9421 5.45518 17.4967 5.68525 17.9057 6.09429C18.3147 6.50332 18.5448 7.0579 18.5455 7.63636V9.81818C18.5455 10.0111 18.6221 10.1961 18.7585 10.3324C18.8949 10.4688 19.0798 10.5455 19.2727 10.5455C19.4656 10.5455 19.6506 10.4688 19.787 10.3324C19.9234 10.1961 20 10.0111 20 9.81818ZM20 16.3636V14.1818C20 13.9889 19.9234 13.8039 19.787 13.6676C19.6506 13.5312 19.4656 13.4545 19.2727 13.4545C19.0798 13.4545 18.8949 13.5312 18.7585 13.6676C18.6221 13.8039 18.5455 13.9889 18.5455 14.1818V16.3636C18.5448 16.9421 18.3147 17.4967 17.9057 17.9057C17.4967 18.3147 16.9421 18.5448 16.3636 18.5455H14.1818C13.9889 18.5455 13.8039 18.6221 13.6676 18.7585C13.5312 18.8949 13.4545 19.0798 13.4545 19.2727C13.4545 19.4656 13.5312 19.6506 13.6676 19.787C13.8039 19.9234 13.9889 20 14.1818 20H16.3636C17.3277 19.9989 18.252 19.6154 18.9337 18.9337C19.6154 18.252 19.9989 17.3277 20 16.3636ZM10.5455 19.2727C10.5455 19.0798 10.4688 18.8949 10.3324 18.7585C10.1961 18.6221 10.0111 18.5455 9.81818 18.5455H7.63636C7.0579 18.5448 6.50332 18.3147 6.09429 17.9057C5.68525 17.4967 5.45518 16.9421 5.45455 16.3636V14.1818C5.45455 13.9889 5.37792 13.8039 5.24153 13.6676C5.10514 13.5312 4.92016 13.4545 4.72727 13.4545C4.53439 13.4545 4.3494 13.5312 4.21301 13.6676C4.07662 13.8039 4 13.9889 4 14.1818V16.3636C4.00114 17.3277 4.38462 18.252 5.06632 18.9337C5.74802 19.6154 6.67229 19.9989 7.63636 20H9.81818C10.0111 20 10.1961 19.9234 10.3324 19.787C10.4688 19.6506 10.5455 19.4656 10.5455 19.2727ZM15.6364 12C15.6364 11.2808 15.4231 10.5777 15.0235 9.97974C14.624 9.38175 14.056 8.91567 13.3916 8.64044C12.7271 8.36521 11.996 8.2932 11.2906 8.43351C10.5852 8.57382 9.93726 8.92015 9.4287 9.4287C8.92015 9.93726 8.57382 10.5852 8.43351 11.2906C8.2932 11.996 8.36521 12.7271 8.64044 13.3916C8.91567 14.056 9.38175 14.624 9.97974 15.0235C10.5777 15.4231 11.2808 15.6364 12 15.6364C12.9641 15.6352 13.8883 15.2517 14.57 14.57C15.2517 13.8883 15.6352 12.9641 15.6364 12Z", fill: "#71347B" })), /* @__PURE__ */ React__namespace.createElement("defs", null, /* @__PURE__ */ React__namespace.createElement("clipPath", { id: "clip0_950_34977" }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z", fill: "white" }))));
|
1013
|
+
|
1012
1014
|
let Components = {};
|
1013
1015
|
Components['success'] = SvgSuccess;
|
1014
1016
|
Components['setting_icon'] = SvgSettingIcon;
|
@@ -1447,6 +1449,7 @@ Components['enable_filled'] = SvgEnableIconFilled;
|
|
1447
1449
|
Components['disable_filled'] = SvgDisableIconFilled;
|
1448
1450
|
Components['ai_approved'] = SvgAiApproved;
|
1449
1451
|
Components['video_live_icon'] = SvgVideoRecording;
|
1452
|
+
Components['screen_capture_icon'] = SvgCaptureImage;
|
1450
1453
|
|
1451
1454
|
const Icon = /*#__PURE__*/React.forwardRef(({
|
1452
1455
|
name,
|
@@ -1591,6 +1594,7 @@ const Button$1 = /*#__PURE__*/React.forwardRef(({
|
|
1591
1594
|
fontSize = 10,
|
1592
1595
|
typographyStyle,
|
1593
1596
|
iconColor = '',
|
1597
|
+
isMandatory = false,
|
1594
1598
|
...props
|
1595
1599
|
}, ref) => {
|
1596
1600
|
const renderIcon = () => iconName && jsxRuntime.jsx("div", {
|
@@ -1628,7 +1632,7 @@ const Button$1 = /*#__PURE__*/React.forwardRef(({
|
|
1628
1632
|
onCopy: onCopy,
|
1629
1633
|
disabled: disabled,
|
1630
1634
|
...props,
|
1631
|
-
children: [iconPosition === 'left' && renderIcon(), jsxRuntime.
|
1635
|
+
children: [iconPosition === 'left' && renderIcon(), jsxRuntime.jsxs(Typography, {
|
1632
1636
|
fontSize: fontSize,
|
1633
1637
|
style: {
|
1634
1638
|
...typographyStyle
|
@@ -1637,7 +1641,10 @@ const Button$1 = /*#__PURE__*/React.forwardRef(({
|
|
1637
1641
|
className: classNames(`ff-button-${variant}--text`, {
|
1638
1642
|
'ff-button-choose-file-text': selectedFile
|
1639
1643
|
}),
|
1640
|
-
children:
|
1644
|
+
children: [isMandatory && jsxRuntime.jsx("span", {
|
1645
|
+
className: "required-asterisk",
|
1646
|
+
children: "*"
|
1647
|
+
}), label]
|
1641
1648
|
}), iconPosition === 'right' && renderIcon(), children]
|
1642
1649
|
});
|
1643
1650
|
});
|
@@ -4535,6 +4542,8 @@ const Textarea = ({
|
|
4535
4542
|
resize = false,
|
4536
4543
|
errorText,
|
4537
4544
|
readOnly = false,
|
4545
|
+
displayCapacity = true,
|
4546
|
+
isLabelRequired = true,
|
4538
4547
|
...props
|
4539
4548
|
}) => {
|
4540
4549
|
const labelClasses = classNames('ff-textarea-label ff-textarea-label--' + variant, {
|
@@ -4542,7 +4551,8 @@ const Textarea = ({
|
|
4542
4551
|
});
|
4543
4552
|
const textareaClasses = classNames(`ff-textarea ff-textarea--${variant}`, className, {
|
4544
4553
|
'ff-textarea--danger': error,
|
4545
|
-
'ff-textarea--resize': !resize
|
4554
|
+
'ff-textarea--resize': !resize,
|
4555
|
+
'ff-textarea--placeholder': !isLabelRequired
|
4546
4556
|
});
|
4547
4557
|
const containerClasses = classNames('ff-textarea-container', {
|
4548
4558
|
'ff-textarea-container--disabled': disabled,
|
@@ -4609,7 +4619,7 @@ const Textarea = ({
|
|
4609
4619
|
};
|
4610
4620
|
return jsxRuntime.jsxs("div", {
|
4611
4621
|
className: containerClasses,
|
4612
|
-
children: [jsxRuntime.jsx("label", {
|
4622
|
+
children: [isLabelRequired && jsxRuntime.jsx("label", {
|
4613
4623
|
htmlFor: name,
|
4614
4624
|
className: classNames('ff-textarea-label-container', {
|
4615
4625
|
'ff-textarea-label-container--danger': error
|
@@ -4640,7 +4650,7 @@ const Textarea = ({
|
|
4640
4650
|
...props
|
4641
4651
|
}), jsxRuntime.jsxs("div", {
|
4642
4652
|
className: isError ? 'ff-textarea-error-alignment' : 'msg-character-count',
|
4643
|
-
children: [errorMessage, capacity > 0 && !readOnly && jsxRuntime.jsxs("div", {
|
4653
|
+
children: [errorMessage, capacity > 0 && !readOnly && displayCapacity && jsxRuntime.jsxs("div", {
|
4644
4654
|
className: 'ff-textarea-character-count',
|
4645
4655
|
children: [jsxRuntime.jsxs(Typography, {
|
4646
4656
|
fontSize: 8,
|
@@ -43076,7 +43086,7 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
|
|
43076
43086
|
},
|
43077
43087
|
children: jsxRuntime.jsx(Icon, {
|
43078
43088
|
onClick: onCreateVariableClick,
|
43079
|
-
name: "
|
43089
|
+
name: "add_variable",
|
43080
43090
|
height: 16,
|
43081
43091
|
width: 16,
|
43082
43092
|
hoverEffect: true
|
@@ -43523,7 +43533,8 @@ const ChooseFile = ({
|
|
43523
43533
|
buttonWidth = 'auto',
|
43524
43534
|
buttonHeight = 'auto',
|
43525
43535
|
selectedFile = {},
|
43526
|
-
handleCloseIcon
|
43536
|
+
handleCloseIcon,
|
43537
|
+
isMandatory = false
|
43527
43538
|
}) => {
|
43528
43539
|
return jsxRuntime.jsx("div", {
|
43529
43540
|
children: jsxRuntime.jsx(Button$1, {
|
@@ -43541,7 +43552,8 @@ const ChooseFile = ({
|
|
43541
43552
|
style: style,
|
43542
43553
|
iconPosition: "right",
|
43543
43554
|
selectedFile: selectedFile,
|
43544
|
-
handleCloseIcon: handleCloseIcon
|
43555
|
+
handleCloseIcon: handleCloseIcon,
|
43556
|
+
isMandatory: isMandatory
|
43545
43557
|
})
|
43546
43558
|
});
|
43547
43559
|
};
|