@proprioo/salatim 23.5.3 → 23.5.6

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,5 +1,17 @@
1
1
  ## Changelog
2
2
 
3
+ **23.5.6**
4
+
5
+ * Fix: avoid Safari iOS zoom
6
+
7
+ **23.5.5**
8
+
9
+ * Fix: do not propagate event click outside modal
10
+
11
+ **23.5.4**
12
+
13
+ * Fix: Row can't be single
14
+
3
15
  **23.5.3**
4
16
 
5
17
  * Fix: handle empty address on <OfferSignatoryForm/>
package/lib/index.js CHANGED
@@ -91,20 +91,17 @@
91
91
  flex-direction: column;
92
92
 
93
93
  & > * {
94
- width: 100%;
95
-
96
94
  &:not(:first-child) {
97
95
  margin-top: ${oe(24)};
98
96
  }
99
97
  }
100
98
 
101
- @media (min-width: ${m.base}px) {
99
+ & > & {
102
100
  flex-direction: row;
101
+ margin-bottom: 0;
103
102
 
104
103
  & > * {
105
- &:not(:only-child) {
106
- width: calc(50% - ${oe(12)});
107
- }
104
+ width: calc(50% - ${oe(4)});
108
105
 
109
106
  &:not(:first-child) {
110
107
  margin-top: 0;
@@ -112,14 +109,11 @@
112
109
  }
113
110
  }
114
111
 
115
- & > & {
112
+ @media (min-width: ${m.base}px) {
116
113
  flex-direction: row;
117
- margin-bottom: 0;
118
114
 
119
115
  & > * {
120
- &:not(:only-child) {
121
- width: calc(50% - ${oe(4)});
122
- }
116
+ width: calc(50% - ${oe(12)});
123
117
 
124
118
  &:not(:first-child) {
125
119
  margin-top: 0;
@@ -181,7 +175,7 @@
181
175
  min-width: 0;
182
176
  background: none;
183
177
  padding: 0 ${oe(28)};
184
- font-size: ${se.small};
178
+ font-size: ${se.base};
185
179
  caret-color: ${ne.blue.base};
186
180
  line-height: ${oe(48)};
187
181
  min-height: ${oe(48)};
@@ -2338,7 +2332,7 @@ function _w(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,
2338
2332
  @media (min-width: ${m.small}px) {
2339
2333
  text-align: left;
2340
2334
  }
2341
- `,aT=({closeModal:e,children:r,title:n,text:o,icon:i,isAlternative:l=!1,isFullScreen:s,noPadding:d,fade:c,isLoading:f})=>{const p=t.useRef(null),[h,y]=t.useState(0),g=t=>{"Escape"===t.key&&e()};return jD(p,(t=>{e()})),t.useLayoutEffect((()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]),t.useLayoutEffect((()=>{const e=document.getElementById("modal");if(e){const t=e.scrollHeight;y(t)}return()=>y(0)}),[f]),t.useEffect((()=>(document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g))),[]),a.createPortal(u.default.createElement(VI,{fade:c},u.default.createElement(QI,{id:"modal",ref:p,fade:c,isFullScreen:s,noPadding:d},f&&u.default.createElement(YI,{loaderHeight:`${h.toString()}px`}),u.default.createElement(ZI,{"data-test":"close-modal-icon",hasTitle:!!n,onClick:e},u.default.createElement(qI,null)),n&&u.default.createElement(eT,null,n),(i||n||o)&&u.default.createElement(tT,null,i&&u.default.createElement(rT,{"data-test":"modal-icon"},i),n&&u.default.createElement(nT,{isAlternative:l,"data-test":"modal-title",dangerouslySetInnerHTML:{__html:n}}),o&&u.default.createElement(oT,{"data-test":"modal-text",dangerouslySetInnerHTML:{__html:o}})),u.default.createElement("div",null,r))),(null===document||void 0===document?void 0:document.body)||null)};var iT,lT;exports.PanelColorsTypes=void 0,(iT=exports.PanelColorsTypes||(exports.PanelColorsTypes={})).PRIMARY="primary",iT.SECONDARY="secondary",iT.GREEN="green",iT.RED="red",iT.BLUE="blue",iT.ORANGE="orange",iT.YELLOW="yellow",exports.PanelOrientation=void 0,(lT=exports.PanelOrientation||(exports.PanelOrientation={})).HORIZONTAL="horizontal",lT.VERTICAL="vertical";const sT={blue:{background:ne.blue.base5,border:ne.blue.base},red:{background:ne.red.base5,border:ne.red.base},green:{background:ne.green.base5,border:ne.green.base},orange:{background:ne.orange.base5,border:ne.orange.base},secondary:{background:ne.background,border:ne.green.base},primary:{background:ne.background,border:ne.dark.base},yellow:{background:ne.yellow.base5,border:ne.yellow.base}},uT=c.default.div`
2335
+ `,aT=({closeModal:e,children:r,title:n,text:o,icon:i,isAlternative:l=!1,isFullScreen:s,noPadding:d,fade:c,isLoading:f})=>{const p=t.useRef(null),[h,y]=t.useState(0),g=t=>{"Escape"===t.key&&e()};return jD(p,(t=>{e()})),t.useLayoutEffect((()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]),t.useLayoutEffect((()=>{const e=document.getElementById("modal");if(e){const t=e.scrollHeight;y(t)}return()=>y(0)}),[f]),t.useEffect((()=>(document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g))),[]),a.createPortal(u.default.createElement(VI,{fade:c,onClick:e=>e.stopPropagation()},u.default.createElement(QI,{id:"modal",ref:p,fade:c,isFullScreen:s,noPadding:d},f&&u.default.createElement(YI,{loaderHeight:`${h.toString()}px`}),u.default.createElement(ZI,{"data-test":"close-modal-icon",hasTitle:!!n,onClick:e},u.default.createElement(qI,null)),n&&u.default.createElement(eT,null,n),(i||n||o)&&u.default.createElement(tT,null,i&&u.default.createElement(rT,{"data-test":"modal-icon"},i),n&&u.default.createElement(nT,{isAlternative:l,"data-test":"modal-title",dangerouslySetInnerHTML:{__html:n}}),o&&u.default.createElement(oT,{"data-test":"modal-text",dangerouslySetInnerHTML:{__html:o}})),u.default.createElement("div",null,r))),(null===document||void 0===document?void 0:document.body)||null)};var iT,lT;exports.PanelColorsTypes=void 0,(iT=exports.PanelColorsTypes||(exports.PanelColorsTypes={})).PRIMARY="primary",iT.SECONDARY="secondary",iT.GREEN="green",iT.RED="red",iT.BLUE="blue",iT.ORANGE="orange",iT.YELLOW="yellow",exports.PanelOrientation=void 0,(lT=exports.PanelOrientation||(exports.PanelOrientation={})).HORIZONTAL="horizontal",lT.VERTICAL="vertical";const sT={blue:{background:ne.blue.base5,border:ne.blue.base},red:{background:ne.red.base5,border:ne.red.base},green:{background:ne.green.base5,border:ne.green.base},orange:{background:ne.orange.base5,border:ne.orange.base},secondary:{background:ne.background,border:ne.green.base},primary:{background:ne.background,border:ne.dark.base},yellow:{background:ne.yellow.base5,border:ne.yellow.base}},uT=c.default.div`
2342
2336
  ${({color:e})=>n.css`
2343
2337
  background-color: ${sT[e].background};
2344
2338
  border-color: ${sT[e].border};
@@ -2659,7 +2653,7 @@ function _w(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,
2659
2653
  border-radius: ${({borderRadius:e})=>e};
2660
2654
  box-sizing: border-box;
2661
2655
  padding: ${oe(16)} ${oe(24)};
2662
- font-size: ${se.small};
2656
+ font-size: ${se.base};
2663
2657
  line-height: ${oe(24)};
2664
2658
  color: ${ne.dark.base80};
2665
2659
  resize: none;