@pixum/combobox 4.0.1 → 4.0.2-alpha.25

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.
@@ -0,0 +1 @@
1
+ export declare const useIsDesktop: () => boolean;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useIsDesktop = void 0;
4
+ var react_1 = require("react");
5
+ var react_device_detect_1 = require("react-device-detect");
6
+ var useIsDesktop = function () {
7
+ var _a = (0, react_1.useState)(false), isPageLoaded = _a[0], setPageLoaded = _a[1];
8
+ (0, react_1.useEffect)(function () {
9
+ setPageLoaded(true);
10
+ }, []);
11
+ return (0, react_1.useMemo)(function () { return isPageLoaded && react_device_detect_1.isDesktop; }, [react_device_detect_1.isDesktop, isPageLoaded]);
12
+ };
13
+ exports.useIsDesktop = useIsDesktop;
14
+ //# sourceMappingURL=useIsDesktop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsDesktop.js","sourceRoot":"","sources":["../../src/helper/useIsDesktop.ts"],"names":[],"mappings":";;;AAAA,+BAAoD;AACpD,2DAA+C;AAExC,IAAM,YAAY,GAAG;IACpB,IAAA,KAAgC,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAA9C,YAAY,QAAA,EAAE,aAAa,QAAmB,CAAA;IAErD,IAAA,iBAAS,EAAC;QACR,aAAa,CAAC,IAAI,CAAC,CAAA;IACrB,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,IAAA,eAAO,EAAC,cAAM,OAAA,YAAY,IAAI,+BAAS,EAAzB,CAAyB,EAAE,CAAC,+BAAS,EAAE,YAAY,CAAC,CAAC,CAAA;AAC5E,CAAC,CAAA;AARY,QAAA,YAAY,gBAQxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixum/combobox",
3
- "version": "4.0.1",
3
+ "version": "4.0.2-alpha.25+6196334e",
4
4
  "main": "lib/index.js",
5
5
  "module": "lib/index.js",
6
6
  "license": "UNLICENSED",
@@ -9,7 +9,7 @@
9
9
  "@pixum/button": "^4.0.0",
10
10
  "@pixum/menu": "^3.0.0",
11
11
  "@pixum/menu-item": "^2.0.0",
12
- "@pixum/svg-icon": "^4.0.0",
12
+ "@pixum/svg-icon": "^5.1.0",
13
13
  "@pixum/text": "^2.0.0",
14
14
  "@pixum/theme-provider": "^4.2.10",
15
15
  "@pixum/user-input": "^3.0.0",
@@ -21,5 +21,5 @@
21
21
  "sideEffects": [
22
22
  "*.css"
23
23
  ],
24
- "gitHead": "b8e72a3d40159d17838db9dd44b36d13c7ed0418"
24
+ "gitHead": "6196334e5bc6ddb2a75b9f8379cf69b582ea4430"
25
25
  }