ranui 0.1.5 → 0.1.7

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.
Files changed (171) hide show
  1. package/dist/add-user-b2bed3e7.js +4 -0
  2. package/dist/book-b11a68eb.js +4 -0
  3. package/dist/build/config.d.ts +3 -0
  4. package/dist/check-circle-74bd09c3.js +4 -0
  5. package/dist/check-circle-fill-dc284144.js +4 -0
  6. package/dist/close-20925345.js +4 -0
  7. package/dist/close-circle-720c18be.js +4 -0
  8. package/dist/close-circle-fill-238a66b1.js +4 -0
  9. package/dist/components/button/index.d.ts +1 -331
  10. package/dist/components/button/index.js +4 -2
  11. package/dist/components/icon/index.js +3 -1
  12. package/dist/components/image/index.js +1 -1
  13. package/dist/components/input/index.d.ts +1 -435
  14. package/dist/components/input/index.js +2 -2
  15. package/dist/components/message/index.d.ts +12 -6
  16. package/dist/components/message/index.js +1 -2
  17. package/dist/components/modal/index.js +4 -0
  18. package/dist/components/option/index.d.ts +2 -0
  19. package/dist/components/option/index.js +95 -0
  20. package/dist/components/{video → player}/index.d.ts +245 -114
  21. package/dist/components/player/index.js +11 -0
  22. package/dist/components/preview/colz.d.ts +1 -1
  23. package/dist/components/preview/excel/excel.d.ts +0 -9
  24. package/dist/components/preview/index.d.ts +4 -0
  25. package/dist/components/preview/index.js +5 -4
  26. package/dist/components/preview/pptx/process_pptx.d.ts +1 -1
  27. package/dist/components/progress/index.d.ts +36 -0
  28. package/dist/components/progress/index.js +8 -0
  29. package/dist/components/radar/index.d.ts +2 -0
  30. package/dist/components/radar/index.js +7 -0
  31. package/dist/components/select/index.d.ts +101 -0
  32. package/dist/components/select/index.js +11 -0
  33. package/dist/components/skeleton/index.js +1 -1
  34. package/dist/components/tab/index.d.ts +47 -27
  35. package/dist/components/tab/index.js +4 -2
  36. package/dist/components/tabpane/index.d.ts +47 -27
  37. package/dist/components/tabpane/index.js +1 -1
  38. package/dist/docx-c5d02d8c.js +21 -0
  39. package/dist/eye-5e742329.js +4 -0
  40. package/dist/eye-close-3874f1ae.js +4 -0
  41. package/dist/hls/5_1700986031916/5.key +1 -0
  42. package/dist/hls/5_1700986031916/5.m3u8 +12 -0
  43. package/dist/hls/5_1700986031916/5_00000.ts +0 -0
  44. package/dist/hls/5_1700986031916/5_00001.ts +0 -0
  45. package/dist/hls/5_1700986031916/5_00002.ts +0 -0
  46. package/dist/hls/5_1700986110178/5.key +1 -0
  47. package/dist/hls/5_1700986110178/5.m3u8 +12 -0
  48. package/dist/hls/5_1700986110178/5_00000.ts +0 -0
  49. package/dist/hls/5_1700986110178/5_00001.ts +0 -0
  50. package/dist/hls/5_1700986110178/5_00002.ts +0 -0
  51. package/dist/hls/example.m3u8 +5 -0
  52. package/dist/home-c4a05e8b.js +4 -0
  53. package/dist/index-0e7229ea.js +328 -0
  54. package/dist/index-183517e7.js +265 -0
  55. package/dist/index-48653b79.js +162 -0
  56. package/dist/index-4d873a42.js +195 -0
  57. package/dist/index-57492b9b.js +48 -0
  58. package/dist/index-5975bbc0.js +126 -0
  59. package/dist/index-7b8840f9.js +18690 -0
  60. package/dist/index-7f513a14.js +175 -0
  61. package/dist/index-8e1e2573.js +19 -0
  62. package/dist/index-a1a53af6.js +354 -0
  63. package/dist/index-a216f328.js +662 -0
  64. package/dist/index-a43b144f.js +232 -0
  65. package/dist/index-aea75a9f.js +78 -0
  66. package/dist/index-b2be6bef.js +10423 -0
  67. package/dist/index-b90299ca.js +43 -0
  68. package/dist/index-d2d69b06.js +225 -0
  69. package/dist/index-ecaed5cc.js +439 -0
  70. package/dist/index-f6d6982d.js +516 -0
  71. package/dist/index.d.ts +5 -0
  72. package/dist/index.js +24 -12
  73. package/dist/info-circle-5826decc.js +4 -0
  74. package/dist/info-circle-fill-90ec9aa9.js +14 -0
  75. package/dist/loading-09ca52df.js +4 -0
  76. package/dist/lock-1d2487c9.js +4 -0
  77. package/dist/message-b2bfdea7.js +4 -0
  78. package/dist/{pdf-bd9a47ff.js → pdf-bdb7818a.js} +1 -2
  79. package/dist/playwright.config.d.ts +0 -2
  80. package/dist/plugins/auto-import-file.d.ts +0 -10
  81. package/dist/power-off-6ade5a91.js +4 -0
  82. package/dist/preview-b291aea8.js +4 -0
  83. package/dist/setting-1e5ccb6d.js +4 -0
  84. package/dist/style.css +1 -1
  85. package/dist/team-ca6a12e1.js +4 -0
  86. package/dist/umd/build/config.d.ts +3 -0
  87. package/dist/umd/components/button/index.d.ts +1 -331
  88. package/dist/umd/components/input/index.d.ts +1 -435
  89. package/dist/umd/components/message/index.d.ts +12 -6
  90. package/dist/umd/components/option/index.d.ts +2 -0
  91. package/dist/umd/components/{video → player}/index.d.ts +245 -114
  92. package/dist/umd/components/preview/colz.d.ts +1 -1
  93. package/dist/umd/components/preview/excel/excel.d.ts +0 -9
  94. package/dist/umd/components/preview/index.d.ts +4 -0
  95. package/dist/umd/components/preview/pptx/process_pptx.d.ts +1 -1
  96. package/dist/umd/components/progress/index.d.ts +36 -0
  97. package/dist/umd/components/radar/index.d.ts +2 -0
  98. package/dist/umd/components/select/index.d.ts +101 -0
  99. package/dist/umd/components/tab/index.d.ts +47 -27
  100. package/dist/umd/components/tabpane/index.d.ts +47 -27
  101. package/dist/umd/hls/5_1700986031916/5.key +1 -0
  102. package/dist/umd/hls/5_1700986031916/5.m3u8 +12 -0
  103. package/dist/umd/hls/5_1700986031916/5_00000.ts +0 -0
  104. package/dist/umd/hls/5_1700986031916/5_00001.ts +0 -0
  105. package/dist/umd/hls/5_1700986031916/5_00002.ts +0 -0
  106. package/dist/umd/hls/5_1700986110178/5.key +1 -0
  107. package/dist/umd/hls/5_1700986110178/5.m3u8 +12 -0
  108. package/dist/umd/hls/5_1700986110178/5_00000.ts +0 -0
  109. package/dist/umd/hls/5_1700986110178/5_00001.ts +0 -0
  110. package/dist/umd/hls/5_1700986110178/5_00002.ts +0 -0
  111. package/dist/umd/hls/example.m3u8 +5 -0
  112. package/dist/umd/index.d.ts +5 -0
  113. package/dist/umd/index.umd.cjs +26 -8
  114. package/dist/umd/playwright.config.d.ts +0 -2
  115. package/dist/umd/plugins/auto-import-file.d.ts +0 -10
  116. package/dist/umd/style.css +1 -1
  117. package/dist/umd/utils/image.d.ts +32 -0
  118. package/dist/umd/utils/index.d.ts +44 -17
  119. package/dist/umd/utils/math.d.ts +26 -0
  120. package/dist/umd/utils/tween.d.ts +21 -0
  121. package/dist/unlock-f56086fd.js +4 -0
  122. package/dist/user-5c01e665.js +4 -0
  123. package/dist/utils/image.d.ts +32 -0
  124. package/dist/utils/index.d.ts +44 -17
  125. package/dist/utils/math.d.ts +26 -0
  126. package/dist/utils/tween.d.ts +21 -0
  127. package/dist/{index-714a1eb8.js → vendor-f71e6f68.js} +7771 -1267
  128. package/dist/warning-circle-035e025c.js +4 -0
  129. package/dist/warning-circle-fill-d17c37c9.js +4 -0
  130. package/package.json +54 -7
  131. package/readme.md +78 -50
  132. package/dist/_commonjs-dynamic-modules-2ceabb0b.js +0 -12
  133. package/dist/add-user-d07564bd.js +0 -4
  134. package/dist/assets/image/failImage.d.ts +0 -2
  135. package/dist/base-bcc748a2.js +0 -1
  136. package/dist/book-2a5a596c.js +0 -4
  137. package/dist/check-circle-2c986969.js +0 -4
  138. package/dist/check-circle-fill-62eaa796.js +0 -4
  139. package/dist/close-circle-2afb6e94.js +0 -4
  140. package/dist/close-circle-fill-b6906239.js +0 -4
  141. package/dist/close-ee3ba1d1.js +0 -4
  142. package/dist/docx-5262a8f1.js +0 -2635
  143. package/dist/eye-bd60afe1.js +0 -4
  144. package/dist/eye-close-bde3c1fc.js +0 -4
  145. package/dist/home-f824d8f4.js +0 -4
  146. package/dist/index-00913cab.js +0 -43
  147. package/dist/index-03e90266.js +0 -455
  148. package/dist/index-105ed089.js +0 -127
  149. package/dist/index-1ffff466.js +0 -23077
  150. package/dist/index-2243317e.js +0 -155
  151. package/dist/index-441da303.js +0 -196
  152. package/dist/index-9861f093.js +0 -215
  153. package/dist/index-ac3f8c4f.js +0 -324
  154. package/dist/index-b580f377.js +0 -78
  155. package/dist/index-c61cbf56.js +0 -74
  156. package/dist/index-db03e134.js +0 -177
  157. package/dist/info-circle-59333e1c.js +0 -4
  158. package/dist/info-circle-fill-3ab7660d.js +0 -4
  159. package/dist/jszip.min-97cf7c6a.js +0 -2655
  160. package/dist/loading-407d8249.js +0 -4
  161. package/dist/lock-6d20715b.js +0 -4
  162. package/dist/message-ee4fe153.js +0 -4
  163. package/dist/power-off-bbec6b5f.js +0 -4
  164. package/dist/preview-164a4944.js +0 -4
  165. package/dist/setting-735a1963.js +0 -4
  166. package/dist/team-42573142.js +0 -4
  167. package/dist/umd/assets/image/failImage.d.ts +0 -2
  168. package/dist/unlock-ae33c6f7.js +0 -4
  169. package/dist/user-b7098183.js +0 -4
  170. package/dist/warning-circle-536d4749.js +0 -4
  171. package/dist/warning-circle-fill-e4be98bc.js +0 -4
@@ -0,0 +1,4 @@
1
+ const warningCircle = { "success": true, "_identification": true, "data": '<svg t="1667895689016" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8572" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="8573"></path><path d="M512 688m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z" p-id="8574"></path><path d="M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" p-id="8575"></path></svg>' };
2
+ export {
3
+ warningCircle as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const warningCircleFill = { "success": true, "_identification": true, "data": '<svg t="1667965273540" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8989" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296z m32 440c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z" p-id="8990"></path></svg>' };
2
+ export {
3
+ warningCircleFill as default
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ranui",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "UI Component library based on `Web Component`",
5
5
  "main": "dist/umd/index.umd.cjs",
6
6
  "module": "dist/index.js",
@@ -17,14 +17,19 @@
17
17
  "dist/*"
18
18
  ],
19
19
  "engines": {
20
- "node": "^14.18.0 || >=16.0.0"
20
+ "node": ">=14.20.0"
21
21
  },
22
22
  "keywords": [
23
23
  "ran",
24
24
  "component",
25
25
  "components",
26
26
  "ui",
27
- "design"
27
+ "design",
28
+ "web-components",
29
+ "web components",
30
+ "webComponents",
31
+ "ranui",
32
+ "@ranui/react"
28
33
  ],
29
34
  "exports": {
30
35
  ".": {
@@ -72,6 +77,41 @@
72
77
  "import": "./dist/components/tab/index.js",
73
78
  "require": "./dist/umd/index.umd.cjs"
74
79
  },
80
+ "./tabpane": {
81
+ "types": "./dist/components/tabpane/index.d.ts",
82
+ "import": "./dist/components/tabpane/index.js",
83
+ "require": "./dist/umd/index.umd.cjs"
84
+ },
85
+ "./radar": {
86
+ "types": "./dist/components/radar/index.d.ts",
87
+ "import": "./dist/components/radar/index.js",
88
+ "require": "./dist/umd/index.umd.cjs"
89
+ },
90
+ "./modal": {
91
+ "types": "./dist/components/modal/index.d.ts",
92
+ "import": "./dist/components/modal/index.js",
93
+ "require": "./dist/umd/index.umd.cjs"
94
+ },
95
+ "./select": {
96
+ "types": "./dist/components/select/index.d.ts",
97
+ "import": "./dist/components/select/index.js",
98
+ "require": "./dist/umd/index.umd.cjs"
99
+ },
100
+ "./option": {
101
+ "types": "./dist/components/option/index.d.ts",
102
+ "import": "./dist/components/option/index.js",
103
+ "require": "./dist/umd/index.umd.cjs"
104
+ },
105
+ "./progress": {
106
+ "types": "./dist/components/progress/index.d.ts",
107
+ "import": "./dist/components/progress/index.js",
108
+ "require": "./dist/umd/index.umd.cjs"
109
+ },
110
+ "./player": {
111
+ "types": "./dist/components/player/index.d.ts",
112
+ "import": "./dist/components/player/index.js",
113
+ "require": "./dist/umd/index.umd.cjs"
114
+ },
75
115
  "./style": {
76
116
  "types": "./dist/index.d.ts",
77
117
  "import": "./dist/style.css",
@@ -83,15 +123,18 @@
83
123
  "@babel/preset-env": "^7.22.7",
84
124
  "@babel/preset-typescript": "^7.22.5",
85
125
  "@playwright/test": "^1.36.2",
126
+ "@types/imagemin-svgo": "^10.0.4",
86
127
  "@types/lodash": "^4.14.197",
87
128
  "@types/tinycolor2": "^1.4.3",
129
+ "@vheemstra/vite-plugin-imagemin": "^1.0.12",
130
+ "imagemin-svgo": "^10.0.1",
88
131
  "less": "^4.1.3",
89
132
  "prettier": "^2.8.1",
90
- "ranuts": "0.1.0-alpha.7",
133
+ "rollup-plugin-visualizer": "^5.9.2",
91
134
  "svgo": "^3.0.0",
92
135
  "tsx": "^3.12.7",
93
136
  "vite": "^4.4.9",
94
- "vite-plugin-dts": "^3.5.2"
137
+ "vite-plugin-dts": "^3.6.3"
95
138
  },
96
139
  "dependencies": {
97
140
  "dayjs": "^1.11.9",
@@ -100,14 +143,18 @@
100
143
  "jszip": "^3.10.1",
101
144
  "lodash": "^4.17.21",
102
145
  "tinycolor2": "^1.6.0",
103
- "x-data-spreadsheet": "^1.1.9"
146
+ "x-data-spreadsheet": "^1.1.9",
147
+ "ranuts": "0.1.0-alpha.10"
104
148
  },
105
149
  "scripts": {
106
150
  "dev": "vite",
107
151
  "build": "sh ./bin/build.sh",
152
+ "build:es": "vite build -c ./build/config.es.ts",
153
+ "build:umd": "vite build -c ./build/config.umd.ts",
108
154
  "prepublish": "npm run build",
109
155
  "test": "sh ./bin/test.sh",
110
156
  "test:report": "playwright show-report",
111
- "test:ui": "playwright test --ui"
157
+ "test:ui": "playwright test --ui",
158
+ "test:update": "playwright test --update-snapshots"
112
159
  }
113
160
  }
package/readme.md CHANGED
@@ -28,19 +28,19 @@ npm install ranui --save
28
28
 
29
29
  [See components and use examples](https://chaxus.github.io/ran/src/ranui/)
30
30
 
31
- ## Import
31
+ ## Import
32
32
 
33
33
  Support for on-demand import, which can reduce the size of loaded js
34
34
 
35
35
  ```js
36
- import 'ranui/button'
36
+ import 'ranui/button';
37
37
  ```
38
38
 
39
39
  For global components like `preview` and `message`, you need to import global styles
40
40
 
41
41
  ```js
42
- import 'ranui/preview'
43
- import 'ranui/style'
42
+ import 'ranui/preview';
43
+ import 'ranui/style';
44
44
  ```
45
45
 
46
46
  Support global import
@@ -48,7 +48,7 @@ Support global import
48
48
  - ES module
49
49
 
50
50
  ```js
51
- import 'ranui'
51
+ import 'ranui';
52
52
  ```
53
53
 
54
54
  - UMD, IIFE, CJS
@@ -84,102 +84,130 @@ Here are some examples:
84
84
  ### js
85
85
 
86
86
  ```js
87
- import 'ranui'
87
+ import 'ranui';
88
88
 
89
- const Button = document.createElement('r-button')
90
- Button.appendChild('this is button text')
91
- document.body.appendChild(Button)
89
+ const Button = document.createElement('r-button');
90
+ Button.appendChild('this is button text');
91
+ document.body.appendChild(Button);
92
92
  ```
93
93
 
94
94
  ### jsx
95
95
 
96
+ Since `react` has composite events, for more convenient use, `ranui` is encapsulated through `react` high-level components to form [@ranui/react](https://www.npmjs.com/package/@ranui/react).
97
+
98
+ In react, it is recommended to use [@ranui/react](https://www.npmjs.com/package/@ranui/react).
99
+
100
+ However, `ranui` can still be used in any `js` or `ts` framework.
101
+
96
102
  ```jsx
97
- import 'ranui'
103
+ import 'ranui';
104
+
98
105
  const App = () => {
99
106
  return (
100
107
  <>
101
108
  <r-button>Button</r-button>
102
109
  </>
103
- )
104
- }
110
+ );
111
+ };
105
112
  ```
106
113
 
107
- ### vue
114
+ ### vue
108
115
 
109
116
  ```vue
110
117
  <template>
111
118
  <r-button></r-button>
112
119
  </template>
113
120
  <script>
114
- import 'ranui'
121
+ import 'ranui';
115
122
  </script>
116
-
117
123
  ```
118
124
 
119
125
  ### tsx
120
126
 
127
+ Since `react` has composite events, for more convenient use, [ranui](https://www.npmjs.com/package/ranui) is encapsulated through `react` high-level components, so there is [@ranui/react](https://www.npmjs.com/package/@ranui/react).
128
+
129
+ In `react`, using [@ranui/react](https://www.npmjs.com/package/@ranui/react) is silky and fully integrated into the `react` ecosystem after being wrapped in higher-order functions.
130
+
131
+ However, [ranui](https://www.npmjs.com/package/ranui) can still be used in any `js` or `ts`.
132
+
121
133
  ```tsx
122
- // react 18
134
+ // react 18
123
135
  import type { SyntheticEvent } from 'react';
124
- import React, { useRef } from 'react'
125
- import 'ranui'
136
+ import React, { useRef } from 'react';
137
+ import 'ranui';
126
138
 
127
139
  const FilePreview = () => {
128
- const ref = useRef<HTMLDivElement | null>(null)
129
- const uploadFile = (e: SyntheticEvent<HTMLDivElement>) => {
130
- if (ref.current) {
131
- const uploadFile = document.createElement('input')
132
- uploadFile.setAttribute('type', 'file')
133
- uploadFile.click()
134
- uploadFile.onchange = (e) => {
135
- const { files = [] } = uploadFile
136
- if (files && files?.length > 0 && ref.current) {
137
- ref.current.setAttribute('src', '')
138
- const file = files[0]
139
- const url = URL.createObjectURL(file)
140
- ref.current.setAttribute('src', url)
141
- }
142
- }
140
+ const ref = useRef<HTMLDivElement | null>(null);
141
+ const uploadFile = (e: SyntheticEvent<HTMLDivElement>) => {
142
+ if (ref.current) {
143
+ const uploadFile = document.createElement('input');
144
+ uploadFile.setAttribute('type', 'file');
145
+ uploadFile.click();
146
+ uploadFile.onchange = (e) => {
147
+ const { files = [] } = uploadFile;
148
+ if (files && files?.length > 0 && ref.current) {
149
+ ref.current.setAttribute('src', '');
150
+ const file = files[0];
151
+ const url = URL.createObjectURL(file);
152
+ ref.current.setAttribute('src', url);
143
153
  }
154
+ };
144
155
  }
145
- return (
146
- <div >
147
- <r-preview ref={ref}></r-preview>
148
- <r-button type="primary" onClick={uploadFile}>choose file to preview</r-button>
149
- </div>
150
- )
151
- }
156
+ };
157
+ return (
158
+ <div>
159
+ <r-preview ref={ref}></r-preview>
160
+ <r-button type="primary" onClick={uploadFile}>
161
+ choose file to preview
162
+ </r-button>
163
+ </div>
164
+ );
165
+ };
152
166
  ```
153
167
 
154
- `jsx` defines the types of all `HTML-native` components in `TypeScript`.
168
+ `jsx` defines the types of all `HTML-native` components in `TypeScript`.
155
169
 
156
- The `web component` type is not in the `jsx` definition.
170
+ The `web component` type is not in the `jsx` definition.
157
171
 
158
- You need to add it manually.
172
+ You need to add it manually.
159
173
 
160
174
  Otherwise you'll have type problems, but it actually works.
161
175
 
162
176
  ```ts
163
177
  // typings.d.ts
164
178
  interface RButton {
165
- type?: string,
166
- onClick?: React.MouseEventHandler<HTMLDivElement> | undefined
179
+ type?: string;
180
+ onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
167
181
  }
168
182
 
169
183
  interface RPreview {
170
- src?: string | Blob | ArrayBuffer,
171
- onClick?: React.MouseEventHandler<HTMLDivElement> | undefined
172
- ref?: React.MutableRefObject<HTMLDivElement | null>
184
+ src?: string | Blob | ArrayBuffer;
185
+ onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
186
+ ref?: React.MutableRefObject<HTMLDivElement | null>;
173
187
  }
174
188
 
175
189
  declare namespace JSX {
176
190
  interface IntrinsicElements {
177
- 'r-preview': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & RPreview
178
- 'r-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & RButton
191
+ 'r-preview': React.DetailedHTMLProps<
192
+ React.HTMLAttributes<HTMLDivElement>,
193
+ HTMLDivElement
194
+ > &
195
+ RPreview;
196
+ 'r-button': React.DetailedHTMLProps<
197
+ React.HTMLAttributes<HTMLDivElement>,
198
+ HTMLDivElement
199
+ > &
200
+ RButton;
179
201
  }
180
202
  }
181
203
  ```
182
204
 
205
+ ## Contributors
206
+
207
+ <a href="https://github.com/chaxus/ran/graphs/contributors">
208
+ <img src="https://contrib.rocks/image?repo=chaxus/ran" />
209
+ </a>
210
+
183
211
  ## Meta
184
212
 
185
213
  [LICENSE (MIT)](/LICENSE)
@@ -1,12 +0,0 @@
1
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
2
- function getDefaultExportFromCjs(x) {
3
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4
- }
5
- function commonjsRequire(path) {
6
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
7
- }
8
- export {
9
- commonjsRequire as a,
10
- commonjsGlobal as c,
11
- getDefaultExportFromCjs as g
12
- };
@@ -1,4 +0,0 @@
1
- const addUser = { "_identification": true, "data": '<svg t="1667110768583" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8046" width="200" height="200"><path d="M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h0.1c3 0 4.4-3.6 2.2-5.6-30.8-27.6-65.6-49.7-103.7-65.8-0.4-0.2-0.8-0.3-1.2-0.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-0.4 0.2-0.8 0.3-1.2 0.5-44.7 18.9-84.8 46-119.3 80.6-34.5 34.5-61.5 74.7-80.4 119.5C147.9 794.5 138 841 137 888.8c-0.1 4.5 3.5 8.2 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1 2.5 1.5 5.5 1.7 8.1 0.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4-32.4-32.5-50.3-75.7-50.3-121.6 0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4c32.4 32.5 50.3 75.7 50.3 121.6 0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" p-id="8047"></path></svg>' };
2
- export {
3
- addUser as default
4
- };
@@ -1,2 +0,0 @@
1
- declare const failImage = "\n data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY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EKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==\n";
2
- export default failImage;
@@ -1 +0,0 @@
1
- const base = "";
@@ -1,4 +0,0 @@
1
- const book = { "_identification": true, "data": '<svg t="1667110830636" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8464" width="200" height="200"><path d="M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32z m-260 72h96v209.9L621.5 312 572 347.4V136z m220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3 5.1 7.2 15.1 8.9 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z" p-id="8465"></path></svg>' };
2
- export {
3
- book as default
4
- };
@@ -1,4 +0,0 @@
1
- const checkCircle = { "_identification": true, "data": '<svg t="1667483538687" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8683" width="200" height="200"><path d="M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8c12.7 17.7 39 17.7 51.7 0l210.6-292c3.9-5.3 0.1-12.7-6.4-12.7z" p-id="8684"></path><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="8685"></path></svg>' };
2
- export {
3
- checkCircle as default
4
- };
@@ -1,4 +0,0 @@
1
- const checkCircleFill = { "_identification": true, "data": '<svg t="1667965185400" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8572" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m193.5 301.7l-210.6 292c-12.7 17.7-39 17.7-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" p-id="8573"></path></svg>' };
2
- export {
3
- checkCircleFill as default
4
- };
@@ -1,4 +0,0 @@
1
- const closeCircle = { "_identification": true, "data": '<svg t="1667483596224" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8848" width="200" height="200"><path d="M685.4 354.8c0-4.4-3.6-8-8-8l-66 0.3L512 465.6l-99.3-118.4-66.1-0.3c-4.4 0-8 3.5-8 8 0 1.9 0.7 3.7 1.9 5.2l130.1 155L340.5 670c-1.2 1.5-1.9 3.3-1.9 5.2 0 4.4 3.6 8 8 8l66.1-0.3L512 564.4l99.3 118.4 66 0.3c4.4 0 8-3.5 8-8 0-1.9-0.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" p-id="8849"></path><path d="M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="8850"></path></svg>' };
2
- export {
3
- closeCircle as default
4
- };
@@ -1,4 +0,0 @@
1
- const closeCircleFill = { "_identification": true, "data": '<svg t="1667965220951" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8711" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m165.4 618.2l-66-0.3L512 563.4l-99.3 118.4-66.1 0.3c-4.4 0-8-3.5-8-8 0-1.9 0.7-3.7 1.9-5.2l130.1-155L340.5 359c-1.2-1.5-1.9-3.3-1.9-5.2 0-4.4 3.6-8 8-8l66.1 0.3L512 464.6l99.3-118.4 66-0.3c4.4 0 8 3.5 8 8 0 1.9-0.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" p-id="8712"></path></svg>' };
2
- export {
3
- closeCircleFill as default
4
- };
@@ -1,4 +0,0 @@
1
- const close = { "_identification": true, "data": '<svg t="1688378016663" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2608" width="128" height="128"><path d="M568 515.008l254.016-255.008q12-11.008 12-27.488t-11.488-28-28-11.488-27.488 12l-255.008 254.016-255.008-254.016q-11.008-12-27.488-12t-28 11.488-11.488 28 12 27.488l254.016 255.008-254.016 255.008q-12 11.008-12 27.488t11.488 28 28 11.488 27.488-12l255.008-255.008 255.008 255.008q11.008 12 27.488 12t28-11.488 11.488-28-12-27.488z" p-id="2609" ></path></svg>' };
2
- export {
3
- close as default
4
- };