@kwantis-id3/frontend-library 0.22.1 → 0.22.2

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/changelog.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v0.22.2
2
+ ## Patch Changes
3
+ - Modal `onClose` didn't work when closing the modal by updating the `isOpen` prop.
4
+
5
+  
1
6
  # v0.22.1
2
7
  ## Patch Changes
3
8
  - InputField font size is now `inherit`
package/dist/esm/index.js CHANGED
@@ -282,5 +282,5 @@ import*as e from"react";import t,{useLayoutEffect as u,useContext as n,createEle
282
282
  label: DialogExitButtonContainer;
283
283
  display: flex;
284
284
  justify-content: flex-end;
285
- `,Ma=({children:e,isOpen:u,setIsOpen:n,onClose:r})=>{const o=s(null);d((()=>{const e=o.current;e&&(u?e.showModal():e.close())}),[u]);const i=()=>{n(!1),r&&r()};return t.createElement(Ra,{ref:o,onCancel:e=>{e.preventDefault(),i()}},t.createElement(Wa,null,t.createElement(Lu,{"data-testid":"close-modal",onClick:i,sx:{padding:"4px",boxShadow:"none"}},t.createElement(un.Icon,{icon:Va,size:15}))),e)};export{nr as Accordion,Lu as Button,ka as Dropdown,ir as InputField,Ma as Modal,Pi as MultiSelect,Xi as SingleSelect,la as Slider,Ou as ThemeContextProvider,Hu as styled,Nu as transientOptions,Tu as useIsMobile,Gu as useThemeContext};
285
+ `,Ma=({children:e,isOpen:u,setIsOpen:n,onClose:r})=>{const o=s(!0),i=s(null);return d((()=>{const e=i.current;e&&(u?e.showModal():(o.current||r&&r(),e.close())),o.current=!1}),[u,n,r]),t.createElement(Ra,{ref:i,onCancel:e=>{e.preventDefault(),n(!1)}},t.createElement(Wa,null,t.createElement(Lu,{"data-testid":"close-modal",onClick:()=>n(!1),sx:{padding:"4px",boxShadow:"none"}},t.createElement(un.Icon,{icon:Va,size:15}))),e)};export{nr as Accordion,Lu as Button,ka as Dropdown,ir as InputField,Ma as Modal,Pi as MultiSelect,Xi as SingleSelect,la as Slider,Ou as ThemeContextProvider,Hu as styled,Nu as transientOptions,Tu as useIsMobile,Gu as useThemeContext};
286
286
  //# sourceMappingURL=index.js.map