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 CHANGED
@@ -6,6 +6,6 @@
6
6
 
7
7
  # Components
8
8
 
9
- ## Card
9
+ ## Swiper、Loading、 Card、Container、Menu
10
10
 
11
11
  ## Swiper (suppoert <strong>PC</strong> & <strong>Mobile</strong> Platform)
@@ -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 t,__generator as n}from"tslib";var r={sleep:function(r,i){return void 0===i&&(i=!1),t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t){return setTimeout((function(){return t(i)}),r)}))]}))}))}};export{r as default};
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 {
@@ -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 e=require("tslib");var t={sleep:function(t,r){return void 0===r&&(r=!1),e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,new Promise((function(e){return setTimeout((function(){return e(r)}),t)}))]}))}))}};exports.default=t;
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.12",
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",