@codeleap/web 2.0.1 → 2.3.13
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/dist/components/ActivityIndicator/index.d.ts +12 -12
- package/dist/components/ActivityIndicator/index.js +60 -60
- package/dist/components/ActivityIndicator/styles.d.ts +53 -53
- package/dist/components/ActivityIndicator/styles.js +21 -21
- package/dist/components/Button.d.ts +18 -18
- package/dist/components/Button.js +66 -66
- package/dist/components/CenterWrapper.d.ts +7 -7
- package/dist/components/CenterWrapper.js +27 -27
- package/dist/components/Checkbox/index.d.ts +12 -12
- package/dist/components/Checkbox/index.js +61 -61
- package/dist/components/Checkbox/styles.d.ts +53 -53
- package/dist/components/Checkbox/styles.js +63 -63
- package/dist/components/Collapse.d.ts +20 -20
- package/dist/components/Collapse.js +67 -67
- package/dist/components/ContentView.d.ts +10 -10
- package/dist/components/ContentView.js +51 -51
- package/dist/components/Drawer.d.ts +23 -23
- package/dist/components/Drawer.js +72 -72
- package/dist/components/FileInput.d.ts +8 -8
- package/dist/components/FileInput.js +72 -72
- package/dist/components/HorizontalScroll.d.ts +3 -3
- package/dist/components/HorizontalScroll.js +41 -41
- package/dist/components/Icon.d.ts +8 -8
- package/dist/components/Icon.js +54 -54
- package/dist/components/Link.d.ts +7 -7
- package/dist/components/Link.js +62 -62
- package/dist/components/List.d.ts +18 -18
- package/dist/components/List.js +51 -51
- package/dist/components/Modal/index.d.ts +21 -21
- package/dist/components/Modal/index.js +119 -119
- package/dist/components/Modal/styles.d.ts +56 -56
- package/dist/components/Modal/styles.js +35 -35
- package/dist/components/Overlay.d.ts +10 -10
- package/dist/components/Overlay.js +40 -40
- package/dist/components/RadioInput/index.d.ts +21 -21
- package/dist/components/RadioInput/index.js +54 -54
- package/dist/components/RadioInput/styles.d.ts +54 -54
- package/dist/components/RadioInput/styles.js +43 -43
- package/dist/components/RouterPage/Menu.d.ts +10 -10
- package/dist/components/RouterPage/Menu.js +35 -35
- package/dist/components/RouterPage/MenuItem.d.ts +12 -12
- package/dist/components/RouterPage/MenuItem.js +41 -41
- package/dist/components/RouterPage/Router.d.ts +8 -8
- package/dist/components/RouterPage/Router.js +26 -26
- package/dist/components/RouterPage/index.d.ts +29 -29
- package/dist/components/RouterPage/index.js +88 -88
- package/dist/components/RouterPage/styles.d.ts +54 -54
- package/dist/components/RouterPage/styles.js +86 -86
- package/dist/components/Scroll.d.ts +5 -5
- package/dist/components/Scroll.js +23 -23
- package/dist/components/Select/Custom.d.ts +8 -8
- package/dist/components/Select/Custom.js +103 -103
- package/dist/components/Select/Multi.d.ts +3 -3
- package/dist/components/Select/Multi.js +104 -104
- package/dist/components/Select/Native.d.ts +17 -17
- package/dist/components/Select/Native.js +43 -43
- package/dist/components/Select/index.d.ts +12 -12
- package/dist/components/Select/index.js +43 -43
- package/dist/components/Select/styles.d.ts +5 -5
- package/dist/components/Select/styles.js +56 -56
- package/dist/components/Select/types.d.ts +49 -49
- package/dist/components/Select/types.js +2 -2
- package/dist/components/Slider.d.ts +5 -5
- package/dist/components/Slider.js +35 -35
- package/dist/components/Text.d.ts +9 -9
- package/dist/components/Text.js +40 -40
- package/dist/components/TextInput.d.ts +150 -150
- package/dist/components/TextInput.js +124 -124
- package/dist/components/Tooltip.d.ts +12 -12
- package/dist/components/Tooltip.js +121 -121
- package/dist/components/Touchable.d.ts +15 -15
- package/dist/components/Touchable.js +51 -51
- package/dist/components/View.d.ts +10 -10
- package/dist/components/View.js +61 -61
- package/dist/components/index.d.ts +24 -24
- package/dist/components/index.js +40 -40
- package/dist/index.d.ts +6 -6
- package/dist/index.js +28 -28
- package/dist/lib/OSAlert.d.ts +21 -21
- package/dist/lib/OSAlert.js +139 -139
- package/dist/lib/Toast.d.ts +13 -13
- package/dist/lib/Toast.js +31 -31
- package/dist/lib/hooks.d.ts +28 -28
- package/dist/lib/hooks.js +182 -182
- package/dist/lib/logger.d.ts +2 -2
- package/dist/lib/logger.js +15 -15
- package/dist/lib/utils/cookies.d.ts +6 -6
- package/dist/lib/utils/cookies.js +14 -14
- package/dist/lib/utils/index.d.ts +4 -4
- package/dist/lib/utils/index.js +26 -26
- package/dist/lib/utils/pollyfils/scroll.d.ts +1 -1
- package/dist/lib/utils/pollyfils/scroll.js +65 -65
- package/dist/lib/utils/stopPropagation.d.ts +1 -1
- package/dist/lib/utils/stopPropagation.js +19 -19
- package/dist/types/utility.d.ts +2 -2
- package/dist/types/utility.js +2 -2
- package/package.json +47 -47
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stopPropagation = void 0;
|
|
4
|
-
function stopPropagation(event) {
|
|
5
|
-
var _a;
|
|
6
|
-
var tryCalls = [
|
|
7
|
-
event === null || event === void 0 ? void 0 : event.stopPropagation,
|
|
8
|
-
event === null || event === void 0 ? void 0 : event.preventDefault,
|
|
9
|
-
(_a = event.nativeEvent) === null || _a === void 0 ? void 0 : _a.stopImmediatePropagation,
|
|
10
|
-
];
|
|
11
|
-
for (var _i = 0, tryCalls_1 = tryCalls; _i < tryCalls_1.length; _i++) {
|
|
12
|
-
var call = tryCalls_1[_i];
|
|
13
|
-
try {
|
|
14
|
-
call();
|
|
15
|
-
}
|
|
16
|
-
catch (e) { }
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.stopPropagation = stopPropagation;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stopPropagation = void 0;
|
|
4
|
+
function stopPropagation(event) {
|
|
5
|
+
var _a;
|
|
6
|
+
var tryCalls = [
|
|
7
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation,
|
|
8
|
+
event === null || event === void 0 ? void 0 : event.preventDefault,
|
|
9
|
+
(_a = event.nativeEvent) === null || _a === void 0 ? void 0 : _a.stopImmediatePropagation,
|
|
10
|
+
];
|
|
11
|
+
for (var _i = 0, tryCalls_1 = tryCalls; _i < tryCalls_1.length; _i++) {
|
|
12
|
+
var call = tryCalls_1[_i];
|
|
13
|
+
try {
|
|
14
|
+
call();
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.stopPropagation = stopPropagation;
|
|
20
20
|
//# sourceMappingURL=stopPropagation.js.map
|
package/dist/types/utility.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CSSObject } from '@emotion/css';
|
|
2
|
-
export declare type StylesOf<C extends string> = Partial<Record<C, CSSObject>>;
|
|
1
|
+
import { CSSObject } from '@emotion/css';
|
|
2
|
+
export declare type StylesOf<C extends string> = Partial<Record<C, CSSObject>>;
|
package/dist/types/utility.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=utility.js.map
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@codeleap/web",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"types": "dist/index.d.ts",
|
|
6
|
-
"repository": {
|
|
7
|
-
"url": "https://github.com/codeleap-uk/internal-libs-monorepo.git",
|
|
8
|
-
"type": "git",
|
|
9
|
-
"directory": "packages/web"
|
|
10
|
-
},
|
|
11
|
-
"license": "UNLICENSED",
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"@codeleap/config": "*",
|
|
14
|
-
"@emotion/react": "^11.9.0",
|
|
15
|
-
"@types/react": "^17.0.39",
|
|
16
|
-
"@types/react-dom": "^17.0.11",
|
|
17
|
-
"@types/react-window": "^1.8.5",
|
|
18
|
-
"react": "^17.0.2",
|
|
19
|
-
"react-dom": "^17.0.2"
|
|
20
|
-
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "tsc --build",
|
|
23
|
-
"lint": "eslint -c .eslintrc.js --fix \"./src/**/*.{ts,tsx,js,jsx}\""
|
|
24
|
-
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@types/react": "^17.0.39",
|
|
27
|
-
"rc-slider": "^9.7.5",
|
|
28
|
-
"react-autosize-textarea": "^7.1.0",
|
|
29
|
-
"react-toastify": "^8.2.0",
|
|
30
|
-
"react-virtualized-auto-sizer": "^1.0.6",
|
|
31
|
-
"react-window": "^1.8.6",
|
|
32
|
-
"url-parse": "^1.5.4",
|
|
33
|
-
"uuid": "^8.3.2"
|
|
34
|
-
},
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"@codeleap/common": "*",
|
|
37
|
-
"@emotion/css": "^11.7.1",
|
|
38
|
-
"@emotion/react": "^11.7.1",
|
|
39
|
-
"@reach/router": "^1.3.4",
|
|
40
|
-
"@types/react": "^17.0.38",
|
|
41
|
-
"axios": "^0.24.0",
|
|
42
|
-
"gatsby-plugin-intl": "^0.3.3",
|
|
43
|
-
"react": "^17.0.2",
|
|
44
|
-
"react-dom": "^17.0.2",
|
|
45
|
-
"react-helmet": "^6.1.0"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@codeleap/web",
|
|
3
|
+
"version": "2.3.13",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"repository": {
|
|
7
|
+
"url": "https://github.com/codeleap-uk/internal-libs-monorepo.git",
|
|
8
|
+
"type": "git",
|
|
9
|
+
"directory": "packages/web"
|
|
10
|
+
},
|
|
11
|
+
"license": "UNLICENSED",
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@codeleap/config": "*",
|
|
14
|
+
"@emotion/react": "^11.9.0",
|
|
15
|
+
"@types/react": "^17.0.39",
|
|
16
|
+
"@types/react-dom": "^17.0.11",
|
|
17
|
+
"@types/react-window": "^1.8.5",
|
|
18
|
+
"react": "^17.0.2",
|
|
19
|
+
"react-dom": "^17.0.2"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc --build",
|
|
23
|
+
"lint": "eslint -c .eslintrc.js --fix \"./src/**/*.{ts,tsx,js,jsx}\""
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@types/react": "^17.0.39",
|
|
27
|
+
"rc-slider": "^9.7.5",
|
|
28
|
+
"react-autosize-textarea": "^7.1.0",
|
|
29
|
+
"react-toastify": "^8.2.0",
|
|
30
|
+
"react-virtualized-auto-sizer": "^1.0.6",
|
|
31
|
+
"react-window": "^1.8.6",
|
|
32
|
+
"url-parse": "^1.5.4",
|
|
33
|
+
"uuid": "^8.3.2"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@codeleap/common": "*",
|
|
37
|
+
"@emotion/css": "^11.7.1",
|
|
38
|
+
"@emotion/react": "^11.7.1",
|
|
39
|
+
"@reach/router": "^1.3.4",
|
|
40
|
+
"@types/react": "^17.0.38",
|
|
41
|
+
"axios": "^0.24.0",
|
|
42
|
+
"gatsby-plugin-intl": "^0.3.3",
|
|
43
|
+
"react": "^17.0.2",
|
|
44
|
+
"react-dom": "^17.0.2",
|
|
45
|
+
"react-helmet": "^6.1.0"
|
|
46
|
+
}
|
|
47
|
+
}
|