reykit 1.0.39 → 1.0.41
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/index.d.ts +2 -0
- package/dist/index.js +2180 -2157
- package/dist/request.d.ts +16 -0
- package/dist/style/debug.css +18 -0
- package/package.json +2 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Send request.
|
|
3
|
+
*
|
|
4
|
+
* @param url - Request URL.
|
|
5
|
+
* @param params - Request URL add parameters.
|
|
6
|
+
* @param body - Request body data.
|
|
7
|
+
* - `URLSearchParams` : Form data. Automatic set `Content-Type` to `application/x-www-form-urlencoded`.
|
|
8
|
+
* - `FormData` : Multi form data. Automatic set `Content-Type` to `multipart/form-data`.
|
|
9
|
+
* - `File` : Multi form data. When no attribute `type`, then automatic set `Content-Type` to `multipart/form-data`.
|
|
10
|
+
* - `Blob` : Bytes data. When no attribute `type`, then automatic set `Content-Type` to `application/octet-stream`.
|
|
11
|
+
* - `Record<string, any> | string` : JSON data. Automatic set `Content-Type` to `application/json`.
|
|
12
|
+
* @param headers - Request header data.
|
|
13
|
+
* @param method - Request method.
|
|
14
|
+
* - `undefined` : Automatic judge. When parameter `data` not has value, then is `get`, otherwise is `post`.
|
|
15
|
+
*/
|
|
16
|
+
export default function request(url: string, params?: Record<string, string | number | boolean>, body?: URLSearchParams | File | FormData | Blob | Record<string, any> | string, headers?: Record<string, string | number | boolean>, method?: 'get' | 'post' | 'put' | 'patch' | 'delete' | 'options' | 'head'): Promise<Response>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* base */
|
|
2
|
+
html.debug * {
|
|
3
|
+
box-shadow: inset 0 0 0 1px rgb(0, 0, 0);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* grid */
|
|
7
|
+
html.debug .grid,
|
|
8
|
+
html.debug [class^="grid-"],
|
|
9
|
+
html.debug [class*=" grid-"] {
|
|
10
|
+
box-shadow: inset 0 0 0 1.5px rgb(255, 0, 0);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* flex */
|
|
14
|
+
html.debug .flex,
|
|
15
|
+
html.debug [class^="flex-"],
|
|
16
|
+
html.debug [class*=" flex-"] {
|
|
17
|
+
box-shadow: inset 0 0 0 1.5px rgb(0, 0, 255);
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reykit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
4
4
|
"description": "Kit method set.",
|
|
5
5
|
"author": "reyxbo",
|
|
6
6
|
"keywords": [
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
24
|
"exports": {
|
|
25
25
|
".": "./dist/index.js",
|
|
26
|
+
"./debug": { "style": "./dist/style/debug.css" },
|
|
26
27
|
"./shadcn": { "style": "./dist/style/shadcn.css" },
|
|
27
28
|
"./*": "./dist/*"
|
|
28
29
|
},
|