@crystaldesign/diva-core 24.15.0-beta.4 → 24.15.0-beta.40

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.
Files changed (59) hide show
  1. package/build/esm/{ModalsWrapper-78eb9b8a.js → ModalsWrapper-10fce47e.js} +6 -5
  2. package/build/esm/{index-89b38ea7.js → index-4db284a4.js} +79 -35
  3. package/build/esm/{index-5a5acb8a.js → index-600e89eb.js} +96 -54
  4. package/build/esm/index.js +1 -1
  5. package/build/types/core/src/elements/Auth/Register/index.d.ts.map +1 -1
  6. package/build/types/core/src/elements/Auth/WelcomeScreen/index.d.ts.map +1 -1
  7. package/build/types/core/src/elements/Auth/index.d.ts.map +1 -1
  8. package/build/types/core/src/elements/Barrier/index.d.ts.map +1 -1
  9. package/build/types/core/src/elements/Modal/index.d.ts.map +1 -1
  10. package/build/types/core/src/elements/SideMenu/index.d.ts.map +1 -1
  11. package/build/types/core/src/elements/SnackBar/index.d.ts.map +1 -1
  12. package/build/types/core/src/externalTypes.d.ts +5 -0
  13. package/build/types/core/src/externalTypes.d.ts.map +1 -1
  14. package/build/types/core/src/handler/ProductHandler/index.d.ts +1 -0
  15. package/build/types/core/src/handler/ProductHandler/index.d.ts.map +1 -1
  16. package/build/types/core/src/store/ConfigurationStore.d.ts +1 -1
  17. package/build/types/core/src/store/ConfigurationStore.d.ts.map +1 -1
  18. package/build/types/core/src/store/ContentStore.d.ts +6 -0
  19. package/build/types/core/src/store/ContentStore.d.ts.map +1 -1
  20. package/build/types/core/src/store/index.d.ts +9 -0
  21. package/build/types/core/src/store/index.d.ts.map +1 -1
  22. package/build/types/core/src/types.d.ts +3 -0
  23. package/build/types/core/src/types.d.ts.map +1 -1
  24. package/build/umd/0.diva-core.umd.min.js +2 -0
  25. package/build/umd/0.diva-core.umd.min.js.LICENSE.txt +1 -0
  26. package/build/umd/{192.diva-core.umd.min.js → 218.diva-core.umd.min.js} +2 -2
  27. package/build/umd/218.diva-core.umd.min.js.LICENSE.txt +1 -0
  28. package/build/umd/266.diva-core.umd.min.js +2 -0
  29. package/build/umd/266.diva-core.umd.min.js.LICENSE.txt +1 -0
  30. package/build/umd/492.diva-core.umd.min.js +2 -0
  31. package/build/umd/492.diva-core.umd.min.js.LICENSE.txt +1 -0
  32. package/build/umd/{788.diva-core.umd.min.js → 578.diva-core.umd.min.js} +2 -2
  33. package/build/umd/578.diva-core.umd.min.js.LICENSE.txt +1 -0
  34. package/build/umd/732.diva-core.umd.min.js +2 -0
  35. package/build/umd/732.diva-core.umd.min.js.LICENSE.txt +1 -0
  36. package/build/umd/806.diva-core.umd.min.js +2 -0
  37. package/build/umd/806.diva-core.umd.min.js.LICENSE.txt +1 -0
  38. package/build/umd/{839.diva-core.umd.min.js → 942.diva-core.umd.min.js} +2 -2
  39. package/build/umd/942.diva-core.umd.min.js.LICENSE.txt +1 -0
  40. package/build/umd/969.diva-core.umd.min.js +2 -0
  41. package/build/umd/969.diva-core.umd.min.js.LICENSE.txt +1 -0
  42. package/build/umd/diva-core.umd.min.js +2 -2
  43. package/build/umd/report.html +1 -1
  44. package/package.json +13 -10
  45. package/build/umd/113.diva-core.umd.min.js +0 -2
  46. package/build/umd/113.diva-core.umd.min.js.LICENSE.txt +0 -1
  47. package/build/umd/192.diva-core.umd.min.js.LICENSE.txt +0 -1
  48. package/build/umd/225.diva-core.umd.min.js +0 -2
  49. package/build/umd/225.diva-core.umd.min.js.LICENSE.txt +0 -1
  50. package/build/umd/337.diva-core.umd.min.js +0 -2
  51. package/build/umd/337.diva-core.umd.min.js.LICENSE.txt +0 -1
  52. package/build/umd/617.diva-core.umd.min.js +0 -2
  53. package/build/umd/617.diva-core.umd.min.js.LICENSE.txt +0 -1
  54. package/build/umd/723.diva-core.umd.min.js +0 -2
  55. package/build/umd/723.diva-core.umd.min.js.LICENSE.txt +0 -1
  56. package/build/umd/788.diva-core.umd.min.js.LICENSE.txt +0 -1
  57. package/build/umd/797.diva-core.umd.min.js +0 -2
  58. package/build/umd/797.diva-core.umd.min.js.LICENSE.txt +0 -1
  59. package/build/umd/839.diva-core.umd.min.js.LICENSE.txt +0 -1
@@ -0,0 +1 @@
1
+ /*! filename:942 */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 969.diva-core.umd.min.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkCrystaldesignDivaCore=self.webpackChunkCrystaldesignDivaCore||[]).push([[969],{8969:(e,n,t)=>{t.r(n),t.d(n,{default:()=>ModalsWrapper});var o=t(7363),a=t(9420),l=t(6308),i=t(1578),r=t(8204),d=t(9400),s=t(4415),c=t(1824),m=t(9763),u=t(3379),p=t.n(u),h=t(7795),v=t.n(h),f=t(569),x=t.n(f),g=t(3565),y=t.n(g),b=t(9216),j=t.n(b),k=t(4589),w=t.n(k),Z=t(5297),P={};P.styleTagTransform=w(),P.setAttributes=y(),P.insert=x().bind(null,"head"),P.domAPI=v(),P.insertStyleElement=j();p()(Z.Z,P);Z.Z&&Z.Z.locals&&Z.Z.locals;var C=t(789),E=t(4988),S=t(5054),I={};I.styleTagTransform=w(),I.setAttributes=y(),I.insert=x().bind(null,"head"),I.domAPI=v(),I.insertStyleElement=j();p()(S.ZP,I);S.ZP&&S.ZP.locals&&S.ZP.locals;var F=t(7514);const D=(0,a.Pi)((function Progress(e){var n=e.children,t=e.progress,a=(0,o.useState)(),l=(0,E.Z)(a,2),i=l[0],r=l[1];return(0,o.useEffect)((function(){r(t)}),[t]),(0,F.jsxs)("div",{className:S.YS,children:[!!n&&n,(0,F.jsx)("div",{className:S.l9,children:(0,F.jsx)("div",{className:S.YJ,style:{width:100*(null!=i?i:0)+"%"},children:(0,F.jsx)("div",{className:S.zn})})})]})}));var z=t(3697),A=t(1682);const M=(0,a.Pi)((function Modal(){var e,n=(0,l.KH)().contentStore,t=(0,C.$G)().t,a=function onAccept(e){var t,o=n.modal;n.closeModal(),null==o||null===(t=o.callback)||void 0===t||t.call(o,!o.content||e)},u=function onReject(){var e,t=n.modal;n.closeModal(),null==t||null===(e=t.callback)||void 0===e||e.call(t,!1)},p=(0,o.useCallback)((function(e){n.modal&&"Escape"===e.key&&u()}),[]);(0,o.useEffect)((function(){return document.addEventListener("keydown",p,!1),function(){document.removeEventListener("keydown",p,!1)}}),[]),(0,o.useEffect)((function(){return document.addEventListener("keydown",h,!1),function(){document.removeEventListener("keydown",h,!1)}}),[]);var h=(0,o.useCallback)((function(e){if(n.modal)if("Enter"!==e.key||n.modal.doNotAcceptOnEnter)"ESC"!==e.key&&"Escape"!=e.key||(u(),e.preventDefault());else{var t=document.getElementById("diva-modal-form");if(!t)return;a(new FormData(t)),e.preventDefault()}}),[]);if(!n.modal)return(0,F.jsx)(F.Fragment,{});var v="string"==typeof n.modal.text?t(n.modal.text):n.modal.text,f=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s.Z,{style:n.modal.maxWidth?{maxWidth:n.modal.maxWidth}:void 0,children:n.modal.iFrame?(0,F.jsx)(IFrame,{link:n.modal.iFrame}):"string"==typeof v&&null==n.modal.content?(0,F.jsx)(c.Z,{component:"div",dangerouslySetInnerHTML:{__html:function tryDecodeURIComponent(e){try{return decodeURIComponent(e)}catch(n){return e}}(v)}}):(0,F.jsxs)(c.Z,{component:"div",children:[v,n.modal.content&&n.modal.content]})}),(n.modal.reject||n.modal.accept)&&(0,F.jsxs)(d.Z,{children:[n.modal.reject&&(0,F.jsx)(i.Z,{color:"primary",onClick:u,children:"string"==typeof n.modal.reject?t(n.modal.reject):t("modal.reject")}),n.modal.accept&&(0,F.jsx)(i.Z,{color:"primary",type:"submit",id:"diva-dialog-submitbtn",children:"string"==typeof n.modal.accept?t(n.modal.accept):t("modal.accept")})]}),(0,F.jsxs)("div",{style:{margin:10},children:[n.modal.image&&(0,F.jsx)("img",{src:n.modal.image,style:{maxWidth:480}}),void 0!==n.modal.progress&&(0,F.jsx)(D,{progress:n.modal.progress}),null===(e=n.modal.actions)||void 0===e?void 0:e.map((function(e){var o;return(0,F.jsx)(i.Z,{fullWidth:!0,style:{marginBottom:10},variant:null!==(o=e.variant)&&void 0!==o?o:"contained",color:"primary",onClick:function onClick(){return function onSelect(e,t){var o,a=n.modal;0!=t&&n.closeModal(),null==a||null===(o=a.callback)||void 0===o||o.call(a,e)}(e.id,e.closeable)},children:t(e.text)})}))]})]}),x=!0===n.modal.fullscreen||"mobile"==n.modal.fullscreen&&n.containerDimensions.isMobile;return(0,F.jsx)("div",{className:Z.I,id:"diva-dialog",children:(0,F.jsxs)(r.Z,{open:!0,disablePortal:!0,hideBackdrop:!0,disableEnforceFocus:!0,style:{position:"absolute",zIndex:0},maxWidth:"lg",fullScreen:x,PaperProps:{style:{width:n.modal.width,height:n.modal.height}},children:[(0,F.jsx)(m.Z,{children:"string"==typeof n.modal.title?t(n.modal.title):n.modal.title}),n.modal.rejectByIcon&&(0,F.jsx)(z.Z,{onClick:u,style:{position:"absolute",right:8,top:8,zIndex:1000001},size:"large",children:(0,F.jsx)(A.Z,{})}),n.modal.dontRenderForm&&f,!n.modal.dontRenderForm&&(0,F.jsx)("form",{id:"diva-modal-form",autoComplete:"off",onSubmit:function onSubmit(e){e.preventDefault(),a(new FormData(e.target))},children:f})]})})}));function IFrame(e){var n=e.link;return(0,F.jsx)("iframe",{style:{border:0,width:"100%",height:"99%"},src:n})}function ModalsWrapper(){return(0,F.jsx)(M,{})}},5297:(e,n,t)=>{t.d(n,{I:()=>r,Z:()=>d});var o=t(8081),a=t.n(o),l=t(3645),i=t.n(l)()(a());i.push([e.id,".index-module--AtOcs {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: rgba(255, 255, 255, 0.6);\n z-index: 1001;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n",""]);var r="index-module--AtOcs";const d=i},5054:(e,n,t)=>{t.d(n,{YJ:()=>s,YS:()=>r,ZP:()=>m,l9:()=>d,zn:()=>c});var o=t(8081),a=t.n(o),l=t(3645),i=t.n(l)()(a());i.push([e.id,".index-module--Pww9z {\n display: flex;\n width: 100%;\n}\n\n.index-module--thPSh {\n height: 10px;\n position: relative;\n border-radius: 5px;\n width: 100%;\n}\n\n@keyframes index-module--_9_PO {\n from {\n background-position-x: 0;\n }\n to {\n background-position-x: 113px;\n }\n}\n\n.index-module--HhvXv {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n transition: width 0.4s ease-out;\n overflow: hidden;\n border-radius: 5px;\n}\n.index-module--f7imw {\n border-radius: 5px;\n height: 100%;\n background-color: var(--diva-theme-palette-primary-main);\n background-image: repeating-linear-gradient(\n 45deg,\n transparent,\n transparent 10px,\n var(--diva-theme-palette-secondary-dark) 10px,\n var(--diva-theme-palette-secondary-dark) 20px\n );\n animation: index-module--_9_PO 4s linear infinite;\n will-change: background-position;\n}\n",""]);var r="index-module--Pww9z",d="index-module--thPSh",s="index-module--HhvXv",c="index-module--f7imw";const m=i}}]);
@@ -0,0 +1 @@
1
+ /*! filename:969 */