@kwantis-id3/frontend-library 0.22.2 → 0.23.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.
package/changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.23.0
2
+ ## Minor Changes
3
+ - Added the `onOpen` callback to the `Modal` component.
4
+
1
5
  # v0.22.2
2
6
  ## Patch Changes
3
7
  - Modal `onClose` didn't work when closing the modal by updating the `isOpen` prop.
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(!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};
285
+ `,Ma=({children:e,isOpen:u,setIsOpen:n,onOpen:r,onClose:o})=>{const i=s(!0),a=s(null);return d((()=>{const e=a.current;e&&(u?(e.showModal(),r&&r()):(i.current||o&&o(),e.close())),i.current=!1}),[u,n,o,r]),t.createElement(Ra,{ref:a,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