@kwantis-id3/frontend-library 0.22.1 → 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,12 @@
|
|
|
1
|
+
# v0.23.0
|
|
2
|
+
## Minor Changes
|
|
3
|
+
- Added the `onOpen` callback to the `Modal` component.
|
|
4
|
+
|
|
5
|
+
# v0.22.2
|
|
6
|
+
## Patch Changes
|
|
7
|
+
- Modal `onClose` didn't work when closing the modal by updating the `isOpen` prop.
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
# v0.22.1
|
|
2
11
|
## Patch Changes
|
|
3
12
|
- 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:
|
|
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
|