@kwantis-id3/frontend-library 0.22.0 → 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,13 @@
1
+ # v0.22.2
2
+ ## Patch Changes
3
+ - Modal `onClose` didn't work when closing the modal by updating the `isOpen` prop.
4
+
5
+  
6
+ # v0.22.1
7
+ ## Patch Changes
8
+ - InputField font size is now `inherit`
9
+
10
+  
1
11
  # v0.22.0
2
12
  ## Minor Changes
3
13
  - Dropdown Items now accept a isHidden prop
package/dist/esm/index.js CHANGED
@@ -87,7 +87,7 @@ import*as e from"react";import t,{useLayoutEffect as u,useContext as n,createEle
87
87
  padding: 0px 10px;
88
88
  border-radius: 4px;
89
89
  font-family: inherit;
90
- font-size: 16px;
90
+ font-size: inherit;
91
91
  color: #333333;
92
92
  width: calc(100% - 22px);
93
93
 
@@ -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