@proprioo/salatim 30.5.1 → 30.5.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,5 +1,9 @@
1
1
  ## Changelog
2
2
 
3
+ **30.5.2**
4
+
5
+ * Fix: isTouchDevice should check if ontouchstart is defined or not
6
+
3
7
  **30.5.1**
4
8
 
5
9
  * Fix: isTouchDevice should check if ontouchstart is not null
package/lib/index.js CHANGED
@@ -147,7 +147,7 @@
147
147
  width: ${w(3)};
148
148
  height: ${w(3)};
149
149
  }
150
- `;function V(e){return()=>({type:e})}const U=e=>{const[t,n]=r.useState(!1);return r.useEffect((()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const o=()=>n(r.matches);return r.addListener(o),()=>r.removeListener(o)}),[e]),t},W=()=>U(`(max-width: ${b.xsmall-1}px)`),q=()=>!("undefined"==typeof window||null===window.ontouchstart)||!("undefined"==typeof navigator||!navigator.maxTouchPoints),G=o.css`
150
+ `;function V(e){return()=>({type:e})}const U=e=>{const[t,n]=r.useState(!1);return r.useEffect((()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const o=()=>n(r.matches);return r.addListener(o),()=>r.removeListener(o)}),[e]),t},W=()=>U(`(max-width: ${b.xsmall-1}px)`),q=()=>!("undefined"==typeof window||!window.ontouchstart)||!("undefined"==typeof navigator||!navigator.maxTouchPoints),G=o.css`
151
151
  border: none;
152
152
  margin: 0;
153
153
  padding: 0;