@pezkuwi/ui-shared 3.16.7 → 3.16.8

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 (182) hide show
  1. package/package.json +308 -9
  2. package/build/README.md +0 -3
  3. package/build/bundle.js +0 -2
  4. package/build/cjs/bundle.d.ts +0 -2
  5. package/build/cjs/bundle.js +0 -7
  6. package/build/cjs/icons/beachball/colors.js +0 -16
  7. package/build/cjs/icons/beachball/container.js +0 -22
  8. package/build/cjs/icons/beachball/defaults.js +0 -8
  9. package/build/cjs/icons/beachball/demo.js +0 -21
  10. package/build/cjs/icons/beachball/index.js +0 -24
  11. package/build/cjs/icons/beachball/seeder.js +0 -21
  12. package/build/cjs/icons/beachball/shape/circle.js +0 -16
  13. package/build/cjs/icons/beachball/shape/square.js +0 -19
  14. package/build/cjs/icons/beachball/svg/circle.js +0 -11
  15. package/build/cjs/icons/beachball/svg/element.js +0 -12
  16. package/build/cjs/icons/beachball/svg/rect.js +0 -10
  17. package/build/cjs/icons/beachball/svg/svg.js +0 -7
  18. package/build/cjs/icons/beachball/types.js +0 -2
  19. package/build/cjs/icons/index.js +0 -7
  20. package/build/cjs/icons/polkadot.js +0 -116
  21. package/build/cjs/icons/types.js +0 -2
  22. package/build/cjs/index.js +0 -5
  23. package/build/cjs/packageDetect.js +0 -5
  24. package/build/cjs/packageInfo.js +0 -4
  25. package/build/icons/beachball/colors.d.ts +0 -2
  26. package/build/icons/beachball/colors.js +0 -13
  27. package/build/icons/beachball/container.d.ts +0 -1
  28. package/build/icons/beachball/container.js +0 -19
  29. package/build/icons/beachball/defaults.d.ts +0 -2
  30. package/build/icons/beachball/defaults.js +0 -5
  31. package/build/icons/beachball/demo.d.ts +0 -1
  32. package/build/icons/beachball/demo.js +0 -19
  33. package/build/icons/beachball/index.d.ts +0 -2
  34. package/build/icons/beachball/index.js +0 -21
  35. package/build/icons/beachball/seeder.d.ts +0 -2
  36. package/build/icons/beachball/seeder.js +0 -18
  37. package/build/icons/beachball/shape/circle.d.ts +0 -2
  38. package/build/icons/beachball/shape/circle.js +0 -13
  39. package/build/icons/beachball/shape/square.d.ts +0 -2
  40. package/build/icons/beachball/shape/square.js +0 -16
  41. package/build/icons/beachball/svg/circle.d.ts +0 -1
  42. package/build/icons/beachball/svg/circle.js +0 -8
  43. package/build/icons/beachball/svg/element.d.ts +0 -1
  44. package/build/icons/beachball/svg/element.js +0 -9
  45. package/build/icons/beachball/svg/rect.d.ts +0 -1
  46. package/build/icons/beachball/svg/rect.js +0 -7
  47. package/build/icons/beachball/svg/svg.d.ts +0 -1
  48. package/build/icons/beachball/svg/svg.js +0 -4
  49. package/build/icons/beachball/types.d.ts +0 -2
  50. package/build/icons/beachball/types.js +0 -1
  51. package/build/icons/index.d.ts +0 -2
  52. package/build/icons/index.js +0 -2
  53. package/build/icons/polkadot.d.ts +0 -5
  54. package/build/icons/polkadot.js +0 -113
  55. package/build/icons/types.d.ts +0 -10
  56. package/build/icons/types.js +0 -1
  57. package/build/index.d.ts +0 -2
  58. package/build/index.js +0 -2
  59. package/build/package.json +0 -336
  60. package/build/packageDetect.d.ts +0 -1
  61. package/build/packageDetect.js +0 -3
  62. package/build/packageInfo.d.ts +0 -6
  63. package/build/packageInfo.js +0 -1
  64. package/src/bundle.ts +0 -5
  65. package/src/icons/beachball/LICENSE +0 -16
  66. package/src/icons/beachball/README.md +0 -19
  67. package/src/icons/beachball/colors.spec.ts +0 -67
  68. package/src/icons/beachball/colors.ts +0 -28
  69. package/src/icons/beachball/container.spec.ts +0 -46
  70. package/src/icons/beachball/container.ts +0 -27
  71. package/src/icons/beachball/defaults.ts +0 -11
  72. package/src/icons/beachball/demo.ts +0 -35
  73. package/src/icons/beachball/index.spec.ts +0 -36
  74. package/src/icons/beachball/index.ts +0 -33
  75. package/src/icons/beachball/seeder.spec.ts +0 -30
  76. package/src/icons/beachball/seeder.ts +0 -30
  77. package/src/icons/beachball/shape/circle.spec.ts +0 -20
  78. package/src/icons/beachball/shape/circle.ts +0 -23
  79. package/src/icons/beachball/shape/square.ts +0 -26
  80. package/src/icons/beachball/svg/circle.spec.ts +0 -19
  81. package/src/icons/beachball/svg/circle.ts +0 -14
  82. package/src/icons/beachball/svg/element.spec.ts +0 -19
  83. package/src/icons/beachball/svg/element.ts +0 -17
  84. package/src/icons/beachball/svg/rect.spec.ts +0 -19
  85. package/src/icons/beachball/svg/rect.ts +0 -13
  86. package/src/icons/beachball/svg/svg.spec.ts +0 -19
  87. package/src/icons/beachball/svg/svg.ts +0 -10
  88. package/src/icons/beachball/types.ts +0 -6
  89. package/src/icons/index.ts +0 -5
  90. package/src/icons/polkadot.spec.ts +0 -35
  91. package/src/icons/polkadot.ts +0 -154
  92. package/src/icons/types.ts +0 -14
  93. package/src/index.ts +0 -6
  94. package/src/packageDetect.ts +0 -11
  95. package/src/packageInfo.ts +0 -6
  96. package/tsconfig.build.json +0 -12
  97. package/tsconfig.build.tsbuildinfo +0 -1
  98. package/tsconfig.spec.json +0 -16
  99. package/tsconfig.spec.tsbuildinfo +0 -1
  100. /package/{build/LICENSE → LICENSE} +0 -0
  101. /package/{build-tsc/bundle.d.ts → bundle.d.ts} +0 -0
  102. /package/{build-tsc-esm/bundle.js → bundle.js} +0 -0
  103. /package/{build → cjs}/bundle.d.ts +0 -0
  104. /package/{build-tsc-cjs → cjs}/bundle.js +0 -0
  105. /package/{build-tsc → cjs}/icons/beachball/colors.d.ts +0 -0
  106. /package/{build-tsc-cjs → cjs}/icons/beachball/colors.js +0 -0
  107. /package/{build-tsc → cjs}/icons/beachball/container.d.ts +0 -0
  108. /package/{build-tsc-cjs → cjs}/icons/beachball/container.js +0 -0
  109. /package/{build-tsc → cjs}/icons/beachball/defaults.d.ts +0 -0
  110. /package/{build-tsc-cjs → cjs}/icons/beachball/defaults.js +0 -0
  111. /package/{build-tsc → cjs}/icons/beachball/demo.d.ts +0 -0
  112. /package/{build-tsc-cjs → cjs}/icons/beachball/demo.js +0 -0
  113. /package/{build-tsc → cjs}/icons/beachball/index.d.ts +0 -0
  114. /package/{build-tsc-cjs → cjs}/icons/beachball/index.js +0 -0
  115. /package/{build-tsc → cjs}/icons/beachball/seeder.d.ts +0 -0
  116. /package/{build-tsc-cjs → cjs}/icons/beachball/seeder.js +0 -0
  117. /package/{build-tsc → cjs}/icons/beachball/shape/circle.d.ts +0 -0
  118. /package/{build-tsc-cjs → cjs}/icons/beachball/shape/circle.js +0 -0
  119. /package/{build-tsc → cjs}/icons/beachball/shape/square.d.ts +0 -0
  120. /package/{build-tsc-cjs → cjs}/icons/beachball/shape/square.js +0 -0
  121. /package/{build-tsc → cjs}/icons/beachball/svg/circle.d.ts +0 -0
  122. /package/{build-tsc-cjs → cjs}/icons/beachball/svg/circle.js +0 -0
  123. /package/{build-tsc → cjs}/icons/beachball/svg/element.d.ts +0 -0
  124. /package/{build-tsc-cjs → cjs}/icons/beachball/svg/element.js +0 -0
  125. /package/{build-tsc → cjs}/icons/beachball/svg/rect.d.ts +0 -0
  126. /package/{build-tsc-cjs → cjs}/icons/beachball/svg/rect.js +0 -0
  127. /package/{build-tsc → cjs}/icons/beachball/svg/svg.d.ts +0 -0
  128. /package/{build-tsc-cjs → cjs}/icons/beachball/svg/svg.js +0 -0
  129. /package/{build-tsc → cjs}/icons/beachball/types.d.ts +0 -0
  130. /package/{build-tsc-cjs → cjs}/icons/beachball/types.js +0 -0
  131. /package/{build-tsc → cjs}/icons/index.d.ts +0 -0
  132. /package/{build-tsc-cjs → cjs}/icons/index.js +0 -0
  133. /package/{build-tsc → cjs}/icons/polkadot.d.ts +0 -0
  134. /package/{build-tsc-cjs → cjs}/icons/polkadot.js +0 -0
  135. /package/{build-tsc → cjs}/icons/types.d.ts +0 -0
  136. /package/{build-tsc-cjs → cjs}/icons/types.js +0 -0
  137. /package/{build-tsc → cjs}/index.d.ts +0 -0
  138. /package/{build-tsc-cjs → cjs}/index.js +0 -0
  139. /package/{build/cjs → cjs}/package.json +0 -0
  140. /package/{build-tsc → cjs}/packageDetect.d.ts +0 -0
  141. /package/{build-tsc-cjs → cjs}/packageDetect.js +0 -0
  142. /package/{build-tsc → cjs}/packageInfo.d.ts +0 -0
  143. /package/{build-tsc-cjs → cjs}/packageInfo.js +0 -0
  144. /package/{build/icons → icons}/beachball/README.md +0 -0
  145. /package/{build/cjs/icons → icons}/beachball/colors.d.ts +0 -0
  146. /package/{build-tsc-esm/icons → icons}/beachball/colors.js +0 -0
  147. /package/{build/cjs/icons → icons}/beachball/container.d.ts +0 -0
  148. /package/{build-tsc-esm/icons → icons}/beachball/container.js +0 -0
  149. /package/{build/cjs/icons → icons}/beachball/defaults.d.ts +0 -0
  150. /package/{build-tsc-esm/icons → icons}/beachball/defaults.js +0 -0
  151. /package/{build/cjs/icons → icons}/beachball/demo.d.ts +0 -0
  152. /package/{build-tsc-esm/icons → icons}/beachball/demo.js +0 -0
  153. /package/{build/cjs/icons → icons}/beachball/index.d.ts +0 -0
  154. /package/{build-tsc-esm/icons → icons}/beachball/index.js +0 -0
  155. /package/{build/cjs/icons → icons}/beachball/seeder.d.ts +0 -0
  156. /package/{build-tsc-esm/icons → icons}/beachball/seeder.js +0 -0
  157. /package/{build/cjs/icons → icons}/beachball/shape/circle.d.ts +0 -0
  158. /package/{build-tsc-esm/icons → icons}/beachball/shape/circle.js +0 -0
  159. /package/{build/cjs/icons → icons}/beachball/shape/square.d.ts +0 -0
  160. /package/{build-tsc-esm/icons → icons}/beachball/shape/square.js +0 -0
  161. /package/{build/cjs/icons → icons}/beachball/svg/circle.d.ts +0 -0
  162. /package/{build-tsc-esm/icons → icons}/beachball/svg/circle.js +0 -0
  163. /package/{build/cjs/icons → icons}/beachball/svg/element.d.ts +0 -0
  164. /package/{build-tsc-esm/icons → icons}/beachball/svg/element.js +0 -0
  165. /package/{build/cjs/icons → icons}/beachball/svg/rect.d.ts +0 -0
  166. /package/{build-tsc-esm/icons → icons}/beachball/svg/rect.js +0 -0
  167. /package/{build/cjs/icons → icons}/beachball/svg/svg.d.ts +0 -0
  168. /package/{build-tsc-esm/icons → icons}/beachball/svg/svg.js +0 -0
  169. /package/{build/cjs/icons → icons}/beachball/types.d.ts +0 -0
  170. /package/{build-tsc-esm/icons → icons}/beachball/types.js +0 -0
  171. /package/{build/cjs/icons → icons}/index.d.ts +0 -0
  172. /package/{build-tsc-esm/icons → icons}/index.js +0 -0
  173. /package/{build/cjs/icons → icons}/polkadot.d.ts +0 -0
  174. /package/{build-tsc-esm/icons → icons}/polkadot.js +0 -0
  175. /package/{build/cjs/icons → icons}/types.d.ts +0 -0
  176. /package/{build-tsc-esm/icons → icons}/types.js +0 -0
  177. /package/{build/cjs/index.d.ts → index.d.ts} +0 -0
  178. /package/{build-tsc-esm/index.js → index.js} +0 -0
  179. /package/{build/cjs/packageDetect.d.ts → packageDetect.d.ts} +0 -0
  180. /package/{build-tsc-esm/packageDetect.js → packageDetect.js} +0 -0
  181. /package/{build/cjs/packageInfo.d.ts → packageInfo.d.ts} +0 -0
  182. /package/{build-tsc-esm/packageInfo.js → packageInfo.js} +0 -0
@@ -1,336 +0,0 @@
1
- {
2
- "author": "Jaco Greeff <jacogr@gmail.com>",
3
- "bugs": "https://github.com/pezkuwichain/ui/issues",
4
- "description": "Shared logic that is usable accross all frameworks-specific areas",
5
- "engines": {
6
- "node": ">=18"
7
- },
8
- "homepage": "https://github.com/pezkuwichain/ui/tree/master/packages/ui-shared#readme",
9
- "license": "Apache-2.0",
10
- "name": "@pezkuwi/ui-shared",
11
- "repository": {
12
- "directory": "packages/ui-shared",
13
- "type": "git",
14
- "url": "https://github.com/pezkuwichain/ui.git"
15
- },
16
- "sideEffects": [
17
- "./packageDetect.js",
18
- "./cjs/packageDetect.js"
19
- ],
20
- "type": "module",
21
- "version": "3.16.6",
22
- "main": "./cjs/index.js",
23
- "module": "./index.js",
24
- "types": "./index.d.ts",
25
- "exports": {
26
- "./cjs/package.json": "./cjs/package.json",
27
- "./cjs/*": "./cjs/*.js",
28
- ".": {
29
- "module": {
30
- "types": "./index.d.ts",
31
- "default": "./index.js"
32
- },
33
- "require": {
34
- "types": "./cjs/index.d.ts",
35
- "default": "./cjs/index.js"
36
- },
37
- "default": {
38
- "types": "./index.d.ts",
39
- "default": "./index.js"
40
- }
41
- },
42
- "./bundle": {
43
- "module": {
44
- "types": "./bundle.d.ts",
45
- "default": "./bundle.js"
46
- },
47
- "require": {
48
- "types": "./cjs/bundle.d.ts",
49
- "default": "./cjs/bundle.js"
50
- },
51
- "default": {
52
- "types": "./bundle.d.ts",
53
- "default": "./bundle.js"
54
- }
55
- },
56
- "./icons": {
57
- "module": {
58
- "types": "./icons/index.d.ts",
59
- "default": "./icons/index.js"
60
- },
61
- "require": {
62
- "types": "./cjs/icons/index.d.ts",
63
- "default": "./cjs/icons/index.js"
64
- },
65
- "default": {
66
- "types": "./icons/index.d.ts",
67
- "default": "./icons/index.js"
68
- }
69
- },
70
- "./icons/beachball": {
71
- "module": {
72
- "types": "./icons/beachball/index.d.ts",
73
- "default": "./icons/beachball/index.js"
74
- },
75
- "require": {
76
- "types": "./cjs/icons/beachball/index.d.ts",
77
- "default": "./cjs/icons/beachball/index.js"
78
- },
79
- "default": {
80
- "types": "./icons/beachball/index.d.ts",
81
- "default": "./icons/beachball/index.js"
82
- }
83
- },
84
- "./icons/beachball/colors": {
85
- "module": {
86
- "types": "./icons/beachball/colors.d.ts",
87
- "default": "./icons/beachball/colors.js"
88
- },
89
- "require": {
90
- "types": "./cjs/icons/beachball/colors.d.ts",
91
- "default": "./cjs/icons/beachball/colors.js"
92
- },
93
- "default": {
94
- "types": "./icons/beachball/colors.d.ts",
95
- "default": "./icons/beachball/colors.js"
96
- }
97
- },
98
- "./icons/beachball/container": {
99
- "module": {
100
- "types": "./icons/beachball/container.d.ts",
101
- "default": "./icons/beachball/container.js"
102
- },
103
- "require": {
104
- "types": "./cjs/icons/beachball/container.d.ts",
105
- "default": "./cjs/icons/beachball/container.js"
106
- },
107
- "default": {
108
- "types": "./icons/beachball/container.d.ts",
109
- "default": "./icons/beachball/container.js"
110
- }
111
- },
112
- "./icons/beachball/defaults": {
113
- "module": {
114
- "types": "./icons/beachball/defaults.d.ts",
115
- "default": "./icons/beachball/defaults.js"
116
- },
117
- "require": {
118
- "types": "./cjs/icons/beachball/defaults.d.ts",
119
- "default": "./cjs/icons/beachball/defaults.js"
120
- },
121
- "default": {
122
- "types": "./icons/beachball/defaults.d.ts",
123
- "default": "./icons/beachball/defaults.js"
124
- }
125
- },
126
- "./icons/beachball/demo": {
127
- "module": {
128
- "types": "./icons/beachball/demo.d.ts",
129
- "default": "./icons/beachball/demo.js"
130
- },
131
- "require": {
132
- "types": "./cjs/icons/beachball/demo.d.ts",
133
- "default": "./cjs/icons/beachball/demo.js"
134
- },
135
- "default": {
136
- "types": "./icons/beachball/demo.d.ts",
137
- "default": "./icons/beachball/demo.js"
138
- }
139
- },
140
- "./icons/beachball/README.md": "./icons/beachball/README.md",
141
- "./icons/beachball/seeder": {
142
- "module": {
143
- "types": "./icons/beachball/seeder.d.ts",
144
- "default": "./icons/beachball/seeder.js"
145
- },
146
- "require": {
147
- "types": "./cjs/icons/beachball/seeder.d.ts",
148
- "default": "./cjs/icons/beachball/seeder.js"
149
- },
150
- "default": {
151
- "types": "./icons/beachball/seeder.d.ts",
152
- "default": "./icons/beachball/seeder.js"
153
- }
154
- },
155
- "./icons/beachball/shape/circle": {
156
- "module": {
157
- "types": "./icons/beachball/shape/circle.d.ts",
158
- "default": "./icons/beachball/shape/circle.js"
159
- },
160
- "require": {
161
- "types": "./cjs/icons/beachball/shape/circle.d.ts",
162
- "default": "./cjs/icons/beachball/shape/circle.js"
163
- },
164
- "default": {
165
- "types": "./icons/beachball/shape/circle.d.ts",
166
- "default": "./icons/beachball/shape/circle.js"
167
- }
168
- },
169
- "./icons/beachball/shape/square": {
170
- "module": {
171
- "types": "./icons/beachball/shape/square.d.ts",
172
- "default": "./icons/beachball/shape/square.js"
173
- },
174
- "require": {
175
- "types": "./cjs/icons/beachball/shape/square.d.ts",
176
- "default": "./cjs/icons/beachball/shape/square.js"
177
- },
178
- "default": {
179
- "types": "./icons/beachball/shape/square.d.ts",
180
- "default": "./icons/beachball/shape/square.js"
181
- }
182
- },
183
- "./icons/beachball/svg/circle": {
184
- "module": {
185
- "types": "./icons/beachball/svg/circle.d.ts",
186
- "default": "./icons/beachball/svg/circle.js"
187
- },
188
- "require": {
189
- "types": "./cjs/icons/beachball/svg/circle.d.ts",
190
- "default": "./cjs/icons/beachball/svg/circle.js"
191
- },
192
- "default": {
193
- "types": "./icons/beachball/svg/circle.d.ts",
194
- "default": "./icons/beachball/svg/circle.js"
195
- }
196
- },
197
- "./icons/beachball/svg/element": {
198
- "module": {
199
- "types": "./icons/beachball/svg/element.d.ts",
200
- "default": "./icons/beachball/svg/element.js"
201
- },
202
- "require": {
203
- "types": "./cjs/icons/beachball/svg/element.d.ts",
204
- "default": "./cjs/icons/beachball/svg/element.js"
205
- },
206
- "default": {
207
- "types": "./icons/beachball/svg/element.d.ts",
208
- "default": "./icons/beachball/svg/element.js"
209
- }
210
- },
211
- "./icons/beachball/svg/rect": {
212
- "module": {
213
- "types": "./icons/beachball/svg/rect.d.ts",
214
- "default": "./icons/beachball/svg/rect.js"
215
- },
216
- "require": {
217
- "types": "./cjs/icons/beachball/svg/rect.d.ts",
218
- "default": "./cjs/icons/beachball/svg/rect.js"
219
- },
220
- "default": {
221
- "types": "./icons/beachball/svg/rect.d.ts",
222
- "default": "./icons/beachball/svg/rect.js"
223
- }
224
- },
225
- "./icons/beachball/svg/svg": {
226
- "module": {
227
- "types": "./icons/beachball/svg/svg.d.ts",
228
- "default": "./icons/beachball/svg/svg.js"
229
- },
230
- "require": {
231
- "types": "./cjs/icons/beachball/svg/svg.d.ts",
232
- "default": "./cjs/icons/beachball/svg/svg.js"
233
- },
234
- "default": {
235
- "types": "./icons/beachball/svg/svg.d.ts",
236
- "default": "./icons/beachball/svg/svg.js"
237
- }
238
- },
239
- "./icons/beachball/types": {
240
- "module": {
241
- "types": "./icons/beachball/types.d.ts",
242
- "default": "./icons/beachball/types.js"
243
- },
244
- "require": {
245
- "types": "./cjs/icons/beachball/types.d.ts",
246
- "default": "./cjs/icons/beachball/types.js"
247
- },
248
- "default": {
249
- "types": "./icons/beachball/types.d.ts",
250
- "default": "./icons/beachball/types.js"
251
- }
252
- },
253
- "./icons/polkadot": {
254
- "module": {
255
- "types": "./icons/polkadot.d.ts",
256
- "default": "./icons/polkadot.js"
257
- },
258
- "require": {
259
- "types": "./cjs/icons/polkadot.d.ts",
260
- "default": "./cjs/icons/polkadot.js"
261
- },
262
- "default": {
263
- "types": "./icons/polkadot.d.ts",
264
- "default": "./icons/polkadot.js"
265
- }
266
- },
267
- "./icons/types": {
268
- "module": {
269
- "types": "./icons/types.d.ts",
270
- "default": "./icons/types.js"
271
- },
272
- "require": {
273
- "types": "./cjs/icons/types.d.ts",
274
- "default": "./cjs/icons/types.js"
275
- },
276
- "default": {
277
- "types": "./icons/types.d.ts",
278
- "default": "./icons/types.js"
279
- }
280
- },
281
- "./package.json": {
282
- "require": "./cjs/package.json",
283
- "default": "./package.json"
284
- },
285
- "./packageDetect": {
286
- "module": {
287
- "types": "./packageDetect.d.ts",
288
- "default": "./packageDetect.js"
289
- },
290
- "require": {
291
- "types": "./cjs/packageDetect.d.ts",
292
- "default": "./cjs/packageDetect.js"
293
- },
294
- "default": {
295
- "types": "./packageDetect.d.ts",
296
- "default": "./packageDetect.js"
297
- }
298
- },
299
- "./packageInfo.js": {
300
- "module": {
301
- "types": "./packageInfo.d.ts",
302
- "default": "./packageInfo.js"
303
- },
304
- "require": {
305
- "types": "./cjs/packageInfo.d.ts",
306
- "default": "./cjs/packageInfo.js"
307
- },
308
- "default": {
309
- "types": "./packageInfo.d.ts",
310
- "default": "./packageInfo.js"
311
- }
312
- },
313
- "./packageInfo": {
314
- "module": {
315
- "types": "./packageInfo.d.ts",
316
- "default": "./packageInfo.js"
317
- },
318
- "require": {
319
- "types": "./cjs/packageInfo.d.ts",
320
- "default": "./cjs/packageInfo.js"
321
- },
322
- "default": {
323
- "types": "./packageInfo.d.ts",
324
- "default": "./packageInfo.js"
325
- }
326
- }
327
- },
328
- "dependencies": {
329
- "colord": "^2.9.3",
330
- "tslib": "^2.8.1"
331
- },
332
- "peerDependencies": {
333
- "@pezkuwi/util": "*",
334
- "@pezkuwi/util-crypto": "*"
335
- }
336
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { detectPackage } from '@pezkuwi/util';
2
- import { packageInfo } from './packageInfo.js';
3
- detectPackage(packageInfo, null, []);
@@ -1,6 +0,0 @@
1
- export declare const packageInfo: {
2
- name: string;
3
- path: string;
4
- type: string;
5
- version: string;
6
- };
@@ -1 +0,0 @@
1
- export const packageInfo = { name: '@pezkuwi/ui-shared', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.16.6' };
package/src/bundle.ts DELETED
@@ -1,5 +0,0 @@
1
- // Copyright 2018-2025 @pezkuwi/ui-shared authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- export * from './icons/index.js';
5
- export { packageInfo } from './packageInfo.js';
@@ -1,16 +0,0 @@
1
- Apache-2.0 License (Apache-2.0)
2
-
3
- Copyright 2016 Dan Finlay
4
- Copyright 2017-2025 @polkadot/ui-shared authors & contributors
5
-
6
- Permission to use, copy, modify, and/or distribute this software for any
7
- purpose with or without fee is hereby granted, provided that the above
8
- copyright notice and this permission notice appear in all copies.
9
-
10
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DApache-2.0LAIMS ALL WARRANTIES WITH
11
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
12
- FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
- PERFORMANCE OF THIS SOFTWARE.
@@ -1,19 +0,0 @@
1
- # @pezkuwi/ui-shared/beachball
2
-
3
- Adapted from [Jazzicon](https://github.com/danfinlay/jazzicon) by Dan Finlay with the following changes -
4
-
5
- - Random values now is read from the Uint8Array supplied (as opposed to having the seed as a number). This allows us to give an publicKey/address as an input and use those values in the pattern generation.
6
- - Upgrade to the underlying [color](https://github.com/Qix-/color) library
7
- - Generate circles as shapes (instead of rectangles)
8
- - Interface updated to take in optional className & style
9
- - Update everywhere to use ES6
10
- - Split source into self-contained functions (TODO: future testing)
11
- - Everything has been updated to use flow
12
- - Test the library functions
13
- - Copyright headers added (original also under Apache-2.0)
14
-
15
- ## Usage
16
-
17
- Also see [src/demo.js](src/demo.js) for a randomly generated example.
18
-
19
- ![demo](https://raw.githubusercontent.com/pezkuwichain/ui/master/packages/ui-shared/demo.png)
@@ -1,67 +0,0 @@
1
- // Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /// <reference types="@pezkuwi/dev-test/globals.d.ts" />
5
-
6
- import type { ColorGen } from './types.js';
7
-
8
- import { colors as newColors } from './colors.js';
9
- import { seeder as newSeeder } from './seeder.js';
10
-
11
- describe('colors', (): void => {
12
- let colors: ColorGen;
13
-
14
- beforeEach((): void => {
15
- colors = newColors(newSeeder());
16
- });
17
-
18
- it('generates using default alpha', (): void => {
19
- expect(
20
- colors()
21
- ).toEqual(
22
- // with original color ...
23
- // 'hsl(37.19999999999999, 100%, 54.9%)'
24
- 'hsl(37, 100%, 55%)'
25
- );
26
- });
27
-
28
- it('applies specified alpha', (): void => {
29
- expect(
30
- colors(0.5)
31
- ).toEqual(
32
- // with original color ...
33
- // 'hsla(37.19999999999999, 100%, 54.9%, 0.5)'
34
- 'hsla(37, 100%, 55%, 0.5)'
35
- );
36
- });
37
-
38
- it('rolates colors', (): void => {
39
- const orig = colors();
40
-
41
- expect(
42
- orig
43
- ).toEqual('hsl(37, 100%, 55%)');
44
-
45
- expect(
46
- colors()
47
- ).not.toEqual(orig);
48
- });
49
-
50
- it('works in edge conditions (0xff)', (): void => {
51
- const u8a = new Uint8Array(32);
52
-
53
- u8a.fill(255);
54
-
55
- expect(
56
- colors = newColors(newSeeder(u8a))
57
- ).not.toThrow();
58
-
59
- expect(
60
- colors()
61
- ).toEqual(
62
- // with original color ...
63
- // 'hsl(15, 0%, 100%)'
64
- 'hsl(0, 0%, 100%)'
65
- );
66
- });
67
- });
@@ -1,28 +0,0 @@
1
- // Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- // Copyright 2016 Dan Finlay
5
-
6
- import type { Colord } from 'colord';
7
- import type { ColorGen, Seeder } from './types.js';
8
-
9
- import { colord } from 'colord';
10
-
11
- import { COLORS } from './defaults.js';
12
-
13
- const WOBBLE = 30;
14
-
15
- export function colors (seeder: Seeder): ColorGen {
16
- const amount = (seeder() * WOBBLE) - (WOBBLE / 2);
17
- const all = COLORS.map((hex): Colord =>
18
- colord(hex).rotate(amount)
19
- );
20
-
21
- return (alpha = 1): string => {
22
- const index = Math.floor(all.length * seeder());
23
-
24
- return all.splice(index, 1)[0]
25
- .alpha(alpha)
26
- .toHslString();
27
- };
28
- }
@@ -1,46 +0,0 @@
1
- // Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /// <reference types="@pezkuwi/dev-test/globals.d.ts" />
5
-
6
- import { container } from './container.js';
7
-
8
- describe('container', (): void => {
9
- it('applies default styles', (): void => {
10
- expect(
11
- // eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-member-access
12
- (container(100).style as any)._values
13
- ).toMatchObject({
14
- background: 'white',
15
- 'border-radius': '50px',
16
- display: 'inline-block',
17
- height: '100px',
18
- margin: '0px',
19
- overflow: 'hidden',
20
- padding: '0px',
21
- width: '100px'
22
- });
23
- });
24
-
25
- it('overrides with supplied styles', (): void => {
26
- expect(
27
- // eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-member-access
28
- (container(50, 'black', '', { display: 'block' }).style as any)._values
29
- ).toMatchObject({
30
- background: 'black',
31
- 'border-radius': '25px',
32
- display: 'block',
33
- height: '50px',
34
- margin: '0px',
35
- overflow: 'hidden',
36
- padding: '0px',
37
- width: '50px'
38
- });
39
- });
40
-
41
- it('applies the specified className', (): void => {
42
- expect(
43
- container(100, 'blue', 'testClass').className
44
- ).toEqual('testClass');
45
- });
46
- });
@@ -1,27 +0,0 @@
1
- // Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- // Copyright 2016 Dan Finlay
5
-
6
- export function container (diameter: number, background = 'white', className = '', _style: Record<string, string> = {}): HTMLElement {
7
- const element = document.createElement('div');
8
- const style = Object.assign({
9
- background,
10
- borderRadius: `${diameter / 2}px`,
11
- display: 'inline-block',
12
- height: `${diameter}px`,
13
- margin: '0px',
14
- overflow: 'hidden',
15
- padding: '0px',
16
- width: `${diameter}px`
17
- }, _style);
18
-
19
- element.className = className;
20
- element.style.background = background;
21
-
22
- Object.keys(style).forEach((key: unknown): void => {
23
- element.style[key as number] = style[key as number];
24
- });
25
-
26
- return element;
27
- }
@@ -1,11 +0,0 @@
1
- // Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- // Copyright 2016 Dan Finlay
5
-
6
- export const COLORS: readonly string[] = [
7
- // https://sashat.me/2017/01/11/list-of-20-simple-distinct-colors/
8
- '#ffe119', '#4363d8', '#f58231', '#fabebe', '#e6beff', '#800000', '#000075', '#a9a9a9', '#ffffff', '#000000'
9
- ] as const;
10
-
11
- export const SHAPE_COUNT = 5 as const;
@@ -1,35 +0,0 @@
1
- // Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- // Copyright 2016 Dan Finlay
5
-
6
- import { isNull } from '@pezkuwi/util';
7
- import { encodeAddress, randomAsU8a } from '@pezkuwi/util-crypto';
8
-
9
- import { beachballIcon } from './index.js';
10
-
11
- const element = document.getElementById('demo');
12
-
13
- function generateIcon (seed: string = encodeAddress(randomAsU8a(32))): void {
14
- const start = Date.now();
15
-
16
- if (isNull(element)) {
17
- throw new Error('Unable to find #demo element');
18
- }
19
-
20
- element.appendChild(
21
- beachballIcon(seed, { isAlternative: false, size: 100 }, 'padded')
22
- );
23
-
24
- console.log(`Icon generated in ${(Date.now() - start)}ms`);
25
- }
26
-
27
- function generateIcons (count = 512): void {
28
- generateIcon(encodeAddress(new Uint8Array(32)));
29
-
30
- for (let index = 1; index < count; index++) {
31
- generateIcon();
32
- }
33
- }
34
-
35
- generateIcons();
@@ -1,36 +0,0 @@
1
- // Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /// <reference types="@pezkuwi/dev-test/globals.d.ts" />
5
-
6
- import xmlserializer from 'xmlserializer';
7
-
8
- import { beachballIcon } from './index.js';
9
-
10
- describe('identicon', (): void => {
11
- it('generates a basic [0,..,0] identicon', (): void => {
12
- expect(
13
- xmlserializer.serializeToString(
14
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-explicit-any
15
- beachballIcon(new Uint8Array(32), { isAlternative: false, size: 256 }) as any
16
- )
17
- ).toEqual(
18
- // with original color ...
19
- // '<div xmlns="http://www.w3.org/1999/xhtml" class="" style="background: white; border-radius: 128px; display: inline-block; height: 256px; margin: 0px; overflow: hidden; padding: 0px; width: 256px;"><div class="" style="background: rgb(20, 20, 20); border-radius: 128px; display: inline-block; height: 256px; margin: 0px; overflow: hidden; padding: 0px; width: 256px;"><svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="256" height="256"><circle cx="128" cy="140.8" r="128" fill="hsl(212.10000000000002, 65.6%, 55.5%)"/><circle cx="128" cy="153.6" r="102.4" fill="hsl(9.800000000000011, 90.7%, 57.6%)"/><circle cx="128" cy="166.4" r="76.8" fill="hsl(345, 85.7%, 86.3%)"/><circle cx="128" cy="179.2" r="51.2" fill="hsl(261.9, 100%, 87.3%)"/><circle cx="128" cy="192" r="25.6" fill="hsl(345, 100%, 25.1%)"/></svg></div></div>'
20
- '<div xmlns="http://www.w3.org/1999/xhtml" class="" style="background: white; border-radius: 128px; display: inline-block; height: 256px; margin: 0px; overflow: hidden; padding: 0px; width: 256px;"><div class="" style="background: rgb(255, 167, 26); border-radius: 128px; display: inline-block; height: 256px; margin: 0px; overflow: hidden; padding: 0px; width: 256px;"><svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="256" height="256"><circle cx="128" cy="140.8" r="128" fill="hsl(212, 66%, 55%)"/><circle cx="128" cy="153.6" r="102.4" fill="hsl(10, 91%, 58%)"/><circle cx="128" cy="166.4" r="76.8" fill="hsl(345, 86%, 86%)"/><circle cx="128" cy="179.2" r="51.2" fill="hsl(262, 100%, 87%)"/><circle cx="128" cy="192" r="25.6" fill="hsl(345, 100%, 25%)"/></svg></div></div>'
21
- );
22
- });
23
-
24
- it('allows overrides', (): void => {
25
- expect(
26
- xmlserializer.serializeToString(
27
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-explicit-any
28
- beachballIcon(new Uint8Array(32), { isAlternative: false, size: 100 }, 'testClass', { display: 'block' }) as any
29
- )
30
- ).toEqual(
31
- // with original color ...
32
- // '<div xmlns="http://www.w3.org/1999/xhtml" class="testClass" style="background: white; border-radius: 50px; display: block; height: 100px; margin: 0px; overflow: hidden; padding: 0px; width: 100px;"><div class="" style="background: rgb(20, 20, 20); border-radius: 50px; display: inline-block; height: 100px; margin: 0px; overflow: hidden; padding: 0px; width: 100px;"><svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="100" height="100"><circle cx="50" cy="55" r="50" fill="hsl(212.10000000000002, 65.6%, 55.5%)"/><circle cx="50" cy="60" r="40" fill="hsl(9.800000000000011, 90.7%, 57.6%)"/><circle cx="50" cy="65" r="30" fill="hsl(345, 85.7%, 86.3%)"/><circle cx="50" cy="70" r="20" fill="hsl(261.9, 100%, 87.3%)"/><circle cx="50" cy="75" r="10" fill="hsl(345, 100%, 25.1%)"/></svg></div></div>'
33
- '<div xmlns="http://www.w3.org/1999/xhtml" class="testClass" style="background: white; border-radius: 50px; display: block; height: 100px; margin: 0px; overflow: hidden; padding: 0px; width: 100px;"><div class="" style="background: rgb(255, 167, 26); border-radius: 50px; display: inline-block; height: 100px; margin: 0px; overflow: hidden; padding: 0px; width: 100px;"><svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="100" height="100"><circle cx="50" cy="55" r="50" fill="hsl(212, 66%, 55%)"/><circle cx="50" cy="60" r="40" fill="hsl(10, 91%, 58%)"/><circle cx="50" cy="65" r="30" fill="hsl(345, 86%, 86%)"/><circle cx="50" cy="70" r="20" fill="hsl(262, 100%, 87%)"/><circle cx="50" cy="75" r="10" fill="hsl(345, 100%, 25%)"/></svg></div></div>'
34
- );
35
- });
36
- });