pixel-react 1.11.5 → 1.11.6

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.
@@ -48,4 +48,7 @@ export type TreeNodeProps = {
48
48
  localCopyId?: string;
49
49
  localAutomationId?: string;
50
50
  localManualId?: string;
51
+ cascaded?: string;
52
+ automationId?: string;
53
+ manualId?: string;
51
54
  };
@@ -4,8 +4,8 @@ import Modal from '../Modal';
4
4
  import Icon from '../Icon';
5
5
  import Typography from '../Typography';
6
6
  import Button from '../Button';
7
- const PopUpModal = ({ isOpen, onClose, onContinue, titleMessage = 'Warning!', subTitleMessage = 'Unsaved Changes.', iconName, modalMessage = 'Your web service data will be lost. Are you sure you want to exit?', firstButtonLabel = 'Cancel', secondButtonLabel = 'Continue', buttonVariant = 'warning', border = '1px solid var(--warning-modal-border-color)', popupWidth = '420', popupHeight = '226', colorForTitleMessage = 'var(--status-button-bg-warning)', footerContent, }) => {
8
- return (_jsx(Modal, { overlayClassName: "custom-overlay", isOpen: isOpen, onClose: onClose, isHeaderDisplayed: false, children: _jsxs("div", { className: 'warning_modal_container', children: [_jsxs("div", { className: 'warning_modal_content', children: [_jsx(Icon, { name: iconName, className: 'warning_modal_icon', width: 94, height: 94 }), _jsxs("div", { className: 'warning_modal_message', children: [_jsxs(Typography, { fontSize: 20, fontWeight: "semi-bold", className: "warning_modal_title_wrapper", children: [' ', _jsxs(Typography, { color: `${colorForTitleMessage}`, fontSize: 20, fontWeight: "semi-bold", children: [' ', titleMessage, ' '] }), ' ', subTitleMessage] }), _jsxs("div", { className: "warning_modal_message_wrapper", children: [_jsx(Typography, { fontSize: 16, children: modalMessage }), _jsx(Typography, { as: "div", children: footerContent })] })] })] }), _jsxs("div", { className: 'warning_modal_footer_button', children: [_jsx(Button, { variant: "secondary", label: firstButtonLabel, onClick: onClose }), _jsx(Button, { variant: buttonVariant || 'warning', label: secondButtonLabel, onClick: onContinue })] })] }), ariaHideApp: true, isFooterDisplayed: false, customWidth: `${popupWidth}px`, customHeight: `${popupHeight}px`, boxShadow: "0px 1px 4px 0px var(--toaster-boxshadow)", border: border }));
7
+ const PopUpModal = ({ isOpen, onClose, onContinue, titleMessage = 'Warning!', subTitleMessage = 'Unsaved Changes.', iconName, modalMessage = 'Your web service data will be lost. Are you sure you want to exit?', firstButtonLabel = 'Cancel', secondButtonLabel = 'Continue', buttonVariant = 'warning', border = '1px solid var(--warning-modal-border-color)', popupWidth = '420', popupHeight = '226', colorForTitleMessage = 'var(--status-button-bg-warning)', footerContent, firstButtonDisabled = false, secondButtonDisabled = false, }) => {
8
+ return (_jsx(Modal, { overlayClassName: "custom-overlay", isOpen: isOpen, onClose: onClose, isHeaderDisplayed: false, children: _jsxs("div", { className: 'warning_modal_container', children: [_jsxs("div", { className: 'warning_modal_content', children: [_jsx(Icon, { name: iconName, className: 'warning_modal_icon', width: 94, height: 94 }), _jsxs("div", { className: 'warning_modal_message', children: [_jsxs(Typography, { fontSize: 20, fontWeight: "semi-bold", className: "warning_modal_title_wrapper", children: [' ', _jsxs(Typography, { color: `${colorForTitleMessage}`, fontSize: 20, fontWeight: "semi-bold", children: [' ', titleMessage, ' '] }), ' ', subTitleMessage] }), _jsxs("div", { className: "warning_modal_message_wrapper", children: [_jsx(Typography, { fontSize: 16, children: modalMessage }), _jsx(Typography, { as: "div", children: footerContent })] })] })] }), _jsxs("div", { className: 'warning_modal_footer_button', children: [_jsx(Button, { variant: "secondary", label: firstButtonLabel, onClick: onClose, disabled: firstButtonDisabled }), _jsx(Button, { variant: buttonVariant || 'warning', label: secondButtonLabel, onClick: onContinue, disabled: secondButtonDisabled })] })] }), ariaHideApp: true, isFooterDisplayed: false, customWidth: `${popupWidth}px`, customHeight: `${popupHeight}px`, boxShadow: "0px 1px 4px 0px var(--toaster-boxshadow)", border: border }));
9
9
  };
10
10
  export default PopUpModal;
11
11
  //# sourceMappingURL=PopUpModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PopUpModal.js","source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L,EACb,eAAK,SAAS,EAAC,+BAA+B,aAC5C,KAAC,UAAU,IAAC,QAAQ,EAAE,EAAE,YAAG,YAAY,GAAc,EACrD,KAAC,UAAU,IAAC,EAAE,EAAC,KAAK,YAAE,aAAa,GAAc,IAC7C,IACF,IACF,EACN,eAAK,SAAS,EAAE,6BAA6B,aAC3C,KAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,OAAO,GAChB,EACF,KAAC,MAAM,IACL,OAAO,EAAE,aAAa,IAAI,SAAS,EACnC,KAAK,EAAE,iBAAiB,EACxB,OAAO,EAAE,UAAU,GACnB,IACE,IACF,EAER,WAAW,QACX,iBAAiB,EAAE,KAAK,EACxB,WAAW,EAAE,GAAG,UAAU,IAAI,EAC9B,YAAY,EAAE,GAAG,WAAW,IAAI,EAChC,SAAS,EAAC,0CAA0C,EACpD,MAAM,EAAE,MAAM,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"PopUpModal.js","sourceRoot":"","sources":["../../../src/components/PopUpModal/PopUpModal.tsx"],"names":[],"mappings":";AACA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,MAAM,MAAM,WAAW,CAAC;AAG/B,MAAM,UAAU,GAAwB,CAAC,EACvC,MAAM,EACN,OAAO,EACP,UAAU,EACV,YAAY,GAAG,UAAU,EACzB,eAAe,GAAG,kBAAkB,EACpC,QAAQ,EACR,YAAY,GAAG,oEAAoE,EACnF,gBAAgB,GAAG,QAAQ,EAC3B,iBAAiB,GAAG,UAAU,EAC9B,aAAa,GAAG,SAAS,EACzB,MAAM,GAAG,6CAA6C,EACtD,UAAU,GAAG,KAAK,EAClB,WAAW,GAAG,KAAK,EACnB,oBAAoB,GAAG,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AAE,KAAK,EACxB,WAAW,EAAE,GAAG,UAAU,IAAI,EAC9B,YAAY,EAAE,GAAG,WAAW,IAAI,EAChC,SAAS,EAAC,0CAA0C,EACpD,MAAM,EAAE,MAAM,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -15,4 +15,6 @@ export interface PopUpModalProps {
15
15
  popupHeight?: string;
16
16
  colorForTitleMessage?: string;
17
17
  footerContent?: React.ReactNode;
18
+ firstButtonDisabled?: boolean;
19
+ secondButtonDisabled?: boolean;
18
20
  }