@vibe/core 4.5.28-alpha-a7b77.0 → 4.5.28-alpha-871ee.0

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.
@@ -1,2 +1,2 @@
1
- import e,{useRef as t,useMemo as n}from"react";import{useFloating as i,flip as o,shift as l,autoUpdate as r}from"@floating-ui/react-dom";import s from"../../../../../../dialog/dist/DialogContentContainer/DialogContentContainer.js";import{useIsomorphicLayoutEffect as a}from"../../../../../../../shared/dist/hooks/ssr/useIsomorphicLayoutEffect.js";var u=["right-end","left-start","left-end"],c=function(c){var m,d=c.anchorRef,f=c.open,p=c.autoFocusOnMount,v=c.onClose,g=c.children,h=c.submenuPosition,b=c.autoAdjustOnSubMenuContentResize,C=t(null);a((function(){p&&f&&(null==C?void 0:C.current)&&requestAnimationFrame((function(){C.current.focus()}))}),[p,f]);var j=n((function(){return"left"===h?"left-start":"right-start"}),[h]),y=i({placement:j,middleware:[o({fallbackPlacements:u}),l()],elements:{reference:null==d?void 0:d.current},whileElementsMounted:function(e,t,n){return r(e,t,n,{elementResize:!!b})}}),M=y.refs,E=y.floatingStyles,O=y.placement,D=g&&e.Children.only(g);return(null===(m=null==D?void 0:D.type)||void 0===m?void 0:m.isMenu)?e.createElement("div",{style:Object.assign(Object.assign({},E),{visibility:f?"visible":"hidden"}),ref:M.setFloating,"data-popper-placement":O},D&&f&&e.createElement(s,null,e.cloneElement(D,Object.assign(Object.assign({},null==D?void 0:D.props),{isVisible:f,isSubMenu:!0,onClose:v,ref:C,useDocumentEventListeners:!p})))):(console.error("MenuItem can accept only Menu element as first level child, this element is not valid: ",D),null)};export{c as default};
1
+ import e,{useRef as n,useMemo as t}from"react";import{useFloating as i,flip as o,shift as l,autoUpdate as r}from"@floating-ui/react-dom";import s from"../../../../../../dialog/dist/DialogContentContainer/DialogContentContainer.js";import{useIsomorphicLayoutEffect as a}from"../../../../../../../shared/dist/hooks/ssr/useIsomorphicLayoutEffect.js";var u=["right-end","left-start","left-end"],c=function(c){var m,d=c.anchorRef,f=c.open,p=c.autoFocusOnMount,v=c.onClose,g=c.children,h=c.submenuPosition,b=c.autoAdjustOnSubMenuContentResize,C=n(null);a((function(){p&&f&&(null==C?void 0:C.current)&&requestAnimationFrame((function(){C.current.focus()}))}),[p,f]);var j=t((function(){return"left"===h?"left-start":"right-start"}),[h]),y=i({placement:j,middleware:[o({fallbackPlacements:u}),l()],elements:{reference:null==d?void 0:d.current},whileElementsMounted:function(e,n,t){return r(e,n,t,{animationFrame:!!b})}}),M=y.refs,E=y.floatingStyles,O=y.placement,F=g&&e.Children.only(g);return(null===(m=null==F?void 0:F.type)||void 0===m?void 0:m.isMenu)?e.createElement("div",{style:Object.assign(Object.assign({},E),{visibility:f?"visible":"hidden"}),ref:M.setFloating,"data-popper-placement":O},F&&f&&e.createElement(s,null,e.cloneElement(F,Object.assign(Object.assign({},null==F?void 0:F.props),{isVisible:f,isSubMenu:!0,onClose:v,ref:C,useDocumentEventListeners:!p})))):(console.error("MenuItem can accept only Menu element as first level child, this element is not valid: ",F),null)};export{c as default};
2
2
  //# sourceMappingURL=MenuItemSubMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItemSubMenu.js","sources":["../../../../../../../../../components/menu/dist/Menu/MenuItem/components/MenuItemSubMenu/MenuItemSubMenu.js"],"sourcesContent":["import e,{useRef as t,useMemo as n}from\"react\";import{DialogContentContainer as l}from\"@vibe/dialog\";import{useFloating as i,flip as o,shift as s,autoUpdate as r}from\"@floating-ui/react-dom\";import{useIsomorphicLayoutEffect as a}from\"@vibe/shared\";const u=[\"right-end\",\"left-start\",\"left-end\"],c=({anchorRef:c,open:m,autoFocusOnMount:d,onClose:f,children:p,submenuPosition:v,autoAdjustOnSubMenuContentResize:b})=>{var g;const h=t(null);a((()=>{d&&m&&(null==h?void 0:h.current)&&requestAnimationFrame((()=>{h.current.focus()}))}),[d,m]);const M=n((()=>\"left\"===v?\"left-start\":\"right-start\"),[v]),{refs:y,floatingStyles:O,placement:j}=i({placement:M,middleware:[o({fallbackPlacements:u}),s()],elements:{reference:null==c?void 0:c.current},whileElementsMounted:(e,t,n)=>r(e,t,n,{elementResize:!!b})}),E=p&&e.Children.only(p);return(null===(g=null==E?void 0:E.type)||void 0===g?void 0:g.isMenu)?e.createElement(\"div\",{style:Object.assign(Object.assign({},O),{visibility:m?\"visible\":\"hidden\"}),ref:y.setFloating,\"data-popper-placement\":j},E&&m&&e.createElement(l,null,e.cloneElement(E,Object.assign(Object.assign({},null==E?void 0:E.props),{isVisible:m,isSubMenu:!0,onClose:f,ref:h,useDocumentEventListeners:!d})))):(console.error(\"MenuItem can accept only Menu element as first level child, this element is not valid: \",E),null)};export{c as default};\n//# sourceMappingURL=MenuItemSubMenu.js.map\n"],"names":["u","c","_ref","g","anchorRef","m","open","d","autoFocusOnMount","f","onClose","p","children","v","submenuPosition","b","autoAdjustOnSubMenuContentResize","h","t","a","current","requestAnimationFrame","focus","M","n","_i","i","placement","middleware","o","fallbackPlacements","s","elements","reference","whileElementsMounted","e","r","elementResize","y","refs","O","floatingStyles","j","E","Children","only","type","isMenu","createElement","style","Object","assign","visibility","ref","setFloating","l","cloneElement","props","isVisible","isSubMenu","useDocumentEventListeners","console","error"],"mappings":"2VAOA,IAAMA,EAA2C,CAAC,YAAa,aAAc,YAEvEC,EAAkB,SAAAC,GAOtB,IAAAC,EANAF,EAAAC,EAAAE,UACAC,EAAAH,EAAAI,KACAC,EAAAL,EAAAM,iBACAC,EAAAP,EAAAQ,QACAC,EAAAT,EAAAU,SACAC,EAAAX,EAAAY,gBACAC,EAAAb,EAAAc,iCAEMC,EAAWC,EAAuB,MAExCC,GAA0B,WACnBZ,GAAqBF,IAAS,MAAAY,OAAAA,EAAAA,EAAUG,UAG7CC,uBAAsB,WACpBJ,EAASG,QAAQE,aAElB,CAACf,EAAkBF,IAEhB,IAAAkB,EAAYC,GAChB,WAAA,MAA2B,SAApBX,EAA6B,aAAe,aAAA,GACnD,CAACA,IAAAY,EAOCC,EAAY,CACdC,UAAAJ,EACAK,WAAY,CAACC,EAAK,CAAEC,mBAAoB9B,IAAgC+B,KACxEC,SAAU,CACRC,UAAW,MAAAhC,OAAA,EAAAA,EAAWmB,SAExBc,qBAAsB,SAACC,EAAWjB,EAAUM,GAAA,OAC1CY,EAAWD,EAAWjB,EAAUM,EAAQ,CAAEa,gBAAiBtB,GAAA,IAV7DuB,EAAAb,EADIc,KAEJC,EAAAf,EADIgB,eAEOC,EAAAjB,EAAXE,UAWIgB,EAAqBhC,GAAYwB,EAAMS,SAASC,KAAKlC,GAC3D,OAAkB,QAAbR,EAAA,MAAAwC,OAAO,EAAPA,EAASG,gBAAI3C,SAAAA,EAAE4C,QAMlBZ,EAAAa,cAAA,MAAA,CACEC,MAAKC,OAAAC,OAAAD,OAAAC,OAAOX,CAAAA,EAAAA,GAAgB,CAAAY,WAAY/C,EAAO,UAAY,WAC3DgD,IAAKf,EAAKgB,YACa,wBAAAZ,GAEtBC,GAAWtC,GACV8B,EAAAa,cAACO,EACE,KAAApB,EAAMqB,aAAab,EACfO,OAAAC,OAAAD,OAAAC,OAAAR,CAAAA,EAAAA,MAAAA,OAAO,EAAPA,EAASc,OACZ,CAAAC,UAAWrD,EACXsD,WAAW,EACXjD,QAAAD,EACA4C,IAAKpC,EACL2C,2BAA4BrD,QAlBpCsD,QAAQC,MAAM,0FAA2FnB,GAClG,KAqBD"}
1
+ {"version":3,"file":"MenuItemSubMenu.js","sources":["../../../../../../../../../components/menu/dist/Menu/MenuItem/components/MenuItemSubMenu/MenuItemSubMenu.js"],"sourcesContent":["import e,{useRef as t,useMemo as n}from\"react\";import{DialogContentContainer as l}from\"@vibe/dialog\";import{useFloating as i,flip as o,shift as r,autoUpdate as s}from\"@floating-ui/react-dom\";import{useIsomorphicLayoutEffect as a}from\"@vibe/shared\";const u=[\"right-end\",\"left-start\",\"left-end\"],c=({anchorRef:c,open:m,autoFocusOnMount:d,onClose:f,children:p,submenuPosition:v,autoAdjustOnSubMenuContentResize:b})=>{var g;const h=t(null);a((()=>{d&&m&&(null==h?void 0:h.current)&&requestAnimationFrame((()=>{h.current.focus()}))}),[d,m]);const M=n((()=>\"left\"===v?\"left-start\":\"right-start\"),[v]),{refs:y,floatingStyles:O,placement:j}=i({placement:M,middleware:[o({fallbackPlacements:u}),r()],elements:{reference:null==c?void 0:c.current},whileElementsMounted:(e,t,n)=>s(e,t,n,{animationFrame:!!b})}),E=p&&e.Children.only(p);return(null===(g=null==E?void 0:E.type)||void 0===g?void 0:g.isMenu)?e.createElement(\"div\",{style:Object.assign(Object.assign({},O),{visibility:m?\"visible\":\"hidden\"}),ref:y.setFloating,\"data-popper-placement\":j},E&&m&&e.createElement(l,null,e.cloneElement(E,Object.assign(Object.assign({},null==E?void 0:E.props),{isVisible:m,isSubMenu:!0,onClose:f,ref:h,useDocumentEventListeners:!d})))):(console.error(\"MenuItem can accept only Menu element as first level child, this element is not valid: \",E),null)};export{c as default};\n//# sourceMappingURL=MenuItemSubMenu.js.map\n"],"names":["u","c","_ref","g","anchorRef","m","open","d","autoFocusOnMount","f","onClose","p","children","v","submenuPosition","b","autoAdjustOnSubMenuContentResize","h","t","a","current","requestAnimationFrame","focus","M","n","_i","i","placement","middleware","o","fallbackPlacements","r","elements","reference","whileElementsMounted","e","s","animationFrame","y","refs","O","floatingStyles","j","E","Children","only","type","isMenu","createElement","style","Object","assign","visibility","ref","setFloating","l","cloneElement","props","isVisible","isSubMenu","useDocumentEventListeners","console","error"],"mappings":"2VAOA,IAAMA,EAA2C,CAAC,YAAa,aAAc,YAEvEC,EAAkB,SAAAC,GAOtB,IAAAC,EANAF,EAAAC,EAAAE,UACAC,EAAAH,EAAAI,KACAC,EAAAL,EAAAM,iBACAC,EAAAP,EAAAQ,QACAC,EAAAT,EAAAU,SACAC,EAAAX,EAAAY,gBACAC,EAAAb,EAAAc,iCAEMC,EAAWC,EAAuB,MAExCC,GAA0B,WACnBZ,GAAqBF,IAAS,MAAAY,OAAAA,EAAAA,EAAUG,UAG7CC,uBAAsB,WACpBJ,EAASG,QAAQE,aAElB,CAACf,EAAkBF,IAEhB,IAAAkB,EAAYC,GAChB,WAAA,MAA2B,SAApBX,EAA6B,aAAe,aAAA,GACnD,CAACA,IAAAY,EAOCC,EAAY,CACdC,UAAAJ,EACAK,WAAY,CAACC,EAAK,CAAEC,mBAAoB9B,IAAgC+B,KACxEC,SAAU,CACRC,UAAW,MAAAhC,OAAA,EAAAA,EAAWmB,SAExBc,qBAAsB,SAACC,EAAWjB,EAAUM,GAAA,OAC1CY,EAAWD,EAAWjB,EAAUM,EAAQ,CAAEa,iBAAkBtB,GAAA,IAV9DuB,EAAAb,EADIc,KAEJC,EAAAf,EADIgB,eAEOC,EAAAjB,EAAXE,UAWIgB,EAAqBhC,GAAYwB,EAAMS,SAASC,KAAKlC,GAC3D,OAAkB,QAAbR,EAAA,MAAAwC,OAAO,EAAPA,EAASG,gBAAI3C,SAAAA,EAAE4C,QAMlBZ,EAAAa,cAAA,MAAA,CACEC,MAAKC,OAAAC,OAAAD,OAAAC,OAAOX,CAAAA,EAAAA,GAAgB,CAAAY,WAAY/C,EAAO,UAAY,WAC3DgD,IAAKf,EAAKgB,YACa,wBAAAZ,GAEtBC,GAAWtC,GACV8B,EAAAa,cAACO,EACE,KAAApB,EAAMqB,aAAab,EACfO,OAAAC,OAAAD,OAAAC,OAAAR,CAAAA,EAAAA,MAAAA,OAAO,EAAPA,EAASc,OACZ,CAAAC,UAAWrD,EACXsD,WAAW,EACXjD,QAAAD,EACA4C,IAAKpC,EACL2C,2BAA4BrD,QAlBpCsD,QAAQC,MAAM,0FAA2FnB,GAClG,KAqBD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe/core",
3
- "version": "4.5.28-alpha-a7b77.0",
3
+ "version": "4.5.28-alpha-871ee.0",
4
4
  "description": "Official monday.com UI resources for application development in React.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -95,11 +95,11 @@
95
95
  "@vibe/alert-banner": "4.0.5",
96
96
  "@vibe/attention-box": "4.0.4",
97
97
  "@vibe/avatar": "4.0.9",
98
- "@vibe/avatar-group": "4.0.2-alpha-a7b77.0",
98
+ "@vibe/avatar-group": "4.0.2-alpha-871ee.0",
99
99
  "@vibe/badge": "4.0.3",
100
100
  "@vibe/base": "4.0.10",
101
101
  "@vibe/base-list": "4.0.1",
102
- "@vibe/breadcrumbs": "4.0.2-alpha-a7b77.0",
102
+ "@vibe/breadcrumbs": "4.0.2-alpha-871ee.0",
103
103
  "@vibe/button": "4.0.11",
104
104
  "@vibe/button-group": "4.0.11",
105
105
  "@vibe/checkbox": "4.0.11",
@@ -125,15 +125,15 @@
125
125
  "@vibe/layout": "4.0.11",
126
126
  "@vibe/link": "4.0.7",
127
127
  "@vibe/loader": "4.0.9",
128
- "@vibe/menu": "4.0.2-alpha-a7b77.0",
129
- "@vibe/menu-button": "4.0.2-alpha-a7b77.0",
128
+ "@vibe/menu": "4.0.2-alpha-871ee.0",
129
+ "@vibe/menu-button": "4.0.2-alpha-871ee.0",
130
130
  "@vibe/progress-bars": "4.0.7",
131
131
  "@vibe/radio-button": "4.0.10",
132
- "@vibe/search": "4.0.2-alpha-a7b77.0",
132
+ "@vibe/search": "4.0.2-alpha-871ee.0",
133
133
  "@vibe/shared": "4.0.9",
134
134
  "@vibe/skeleton": "4.0.5",
135
135
  "@vibe/slider": "4.0.1",
136
- "@vibe/split-button": "4.0.2-alpha-a7b77.0",
136
+ "@vibe/split-button": "4.0.2-alpha-871ee.0",
137
137
  "@vibe/style": "4.1.0",
138
138
  "@vibe/tabs": "4.0.6",
139
139
  "@vibe/text-inputs": "4.0.1",
@@ -314,5 +314,5 @@
314
314
  "browserslist": [
315
315
  "extends browserslist-config-monday"
316
316
  ],
317
- "gitHead": "8699a10eb5201e76f728cf62f00dfad6f9385404"
317
+ "gitHead": "0c1dfe3eb45dcb0210cd28786d777a2697e79f23"
318
318
  }