rox-react-components 0.0.12 → 0.0.14
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/README.md +1 -1
- package/dist/es/utils.d.ts +3 -0
- package/dist/es/utils.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.js +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
package/dist/es/utils.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
declare function sleep(timestamp?: number, result?: boolean): Promise<boolean>;
|
|
2
|
+
type parseUrlResponse = Record<string, string | (string | boolean)[] | boolean> | string | boolean | (string | boolean)[] | undefined;
|
|
3
|
+
declare function parseUrl(key?: string): parseUrlResponse;
|
|
2
4
|
declare const _default: {
|
|
3
5
|
sleep: typeof sleep;
|
|
6
|
+
parseUrl: typeof parseUrl;
|
|
4
7
|
};
|
|
5
8
|
export default _default;
|
package/dist/es/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as
|
|
1
|
+
import{__awaiter as r,__generator as i}from"tslib";var n={sleep:function(n,t){return void 0===t&&(t=!1),r(this,void 0,void 0,(function(){return i(this,(function(r){return[2,new Promise((function(r){return setTimeout((function(){return r(t)}),n)}))]}))}))},parseUrl:function(r){var i=window.location.href.split("?").slice(1),n={};return i.forEach((function(r){var i=r.indexOf("/");(-1!==i?r.substring(0,i):r).split("&").forEach((function(r){var i=r.split("="),t=i[0],o=i[1],e=void 0===o||o;if(n.hasOwnProperty(t)){var s=n[t];Array.isArray(s)?s.push(e):n[t]=[e]}else n[t]=e}))})),void 0!==r?n[r]||void 0:n}};export{n as default};
|
package/dist/index.d.ts
CHANGED
|
@@ -21,8 +21,11 @@ interface SwiperExposeMethods {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
declare function sleep(timestamp?: number, result?: boolean): Promise<boolean>;
|
|
24
|
+
type parseUrlResponse = Record<string, string | (string | boolean)[] | boolean> | string | boolean | (string | boolean)[] | undefined;
|
|
25
|
+
declare function parseUrl(key?: string): parseUrlResponse;
|
|
24
26
|
declare const _default$1: {
|
|
25
27
|
sleep: typeof sleep;
|
|
28
|
+
parseUrl: typeof parseUrl;
|
|
26
29
|
};
|
|
27
30
|
|
|
28
31
|
interface CardProps extends PropsWithChildren {
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
declare function sleep(timestamp?: number, result?: boolean): Promise<boolean>;
|
|
2
|
+
type parseUrlResponse = Record<string, string | (string | boolean)[] | boolean> | string | boolean | (string | boolean)[] | undefined;
|
|
3
|
+
declare function parseUrl(key?: string): parseUrlResponse;
|
|
2
4
|
declare const _default: {
|
|
3
5
|
sleep: typeof sleep;
|
|
6
|
+
parseUrl: typeof parseUrl;
|
|
4
7
|
};
|
|
5
8
|
export default _default;
|
package/dist/lib/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib");var e={sleep:function(e,t){return void 0===t&&(t=!1),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,new Promise((function(r){return setTimeout((function(){return r(t)}),e)}))]}))}))},parseUrl:function(r){var e=window.location.href.split("?").slice(1),t={};return e.forEach((function(r){var e=r.indexOf("/");(-1!==e?r.substring(0,e):r).split("&").forEach((function(r){var e=r.split("="),i=e[0],n=e[1],o=void 0===n||n;if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)?s.push(o):t[i]=[o]}else t[i]=o}))})),void 0!==r?t[r]||void 0:t}};exports.default=e;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rox-react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"main": "dist/lib/index.js",
|
|
5
5
|
"module": "dist/es/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"description": "A React UI Component Library",
|
|
7
|
+
"description": "A React UI Component Library with swiper that support pc and mobile events, and with loading",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"react",
|
|
10
10
|
"slideMenu",
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"menu",
|
|
19
19
|
"loading",
|
|
20
20
|
"container with ratio",
|
|
21
|
-
"react swiper carousel pc mobile touch mouse"
|
|
21
|
+
"react swiper carousel pc mobile touch mouse",
|
|
22
|
+
"touch events swiper",
|
|
23
|
+
"touch events carousel"
|
|
22
24
|
],
|
|
23
25
|
"files": [
|
|
24
26
|
"dist",
|