ziko-atropos 0.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 ZAKARIA ELALAOUI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ > [!NOTE]
2
+ > This project is part of the [ZikoJS](https://github.com/zakarialaoui10/ziko.js) ecosystem.
3
+
4
+ # [Addon Title]
5
+
6
+ <!--
7
+ Overview Or Description
8
+ Doc
9
+ -->
10
+
11
+ ## Install
12
+
13
+ ## Usage
14
+
15
+ ## Features
16
+
17
+ # ⭐️ Show your support
18
+
19
+ If you appreciate the library, kindly demonstrate your support by giving it a star!<br>
20
+
21
+ <!--## Financial support-->
22
+
23
+ # Licence
24
+ This projet is licensed under the terms of MIT License
@@ -0,0 +1,25 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite App</title>
8
+ <link
9
+ href="https://fonts.googleapis.com/css?family=Gloria+Hallelujah&display=swap"
10
+ rel="stylesheet"
11
+ />
12
+ <!-- <style>
13
+ body{
14
+ font-family: "Gloria Hallelujah", cursive;
15
+ font-weight: 700;
16
+ text-wrap :wrap !important;
17
+ overflow-x: hidden;
18
+ }
19
+ </style> -->
20
+ </head>
21
+ <body>
22
+ <script type="module" src="/main.js"></script>
23
+ <div id="app"></div>
24
+ </body>
25
+ </html>
package/demo/main.js ADDED
@@ -0,0 +1,16 @@
1
+ import { Atropos } from 'ziko-atropos'
2
+ import { tags } from 'ziko/ui'
3
+
4
+ globalThis.a = Atropos(
5
+ tags.div().style({
6
+ width : '100%',
7
+ height : '100%',
8
+ background : 'blue'
9
+ })
10
+ ).style({
11
+ border : '2px darkblue dotted',
12
+ width : '400px',
13
+ height : '300px',
14
+ margin : '20px auto'
15
+ })
16
+ a.mount(document.body)
@@ -0,0 +1,852 @@
1
+ {
2
+ "name": "preview",
3
+ "version": "0.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "preview",
9
+ "version": "0.0.0",
10
+ "devDependencies": {
11
+ "vite": "^5.4.8"
12
+ }
13
+ },
14
+ "node_modules/@esbuild/aix-ppc64": {
15
+ "version": "0.21.5",
16
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",
17
+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",
18
+ "cpu": [
19
+ "ppc64"
20
+ ],
21
+ "dev": true,
22
+ "license": "MIT",
23
+ "optional": true,
24
+ "os": [
25
+ "aix"
26
+ ],
27
+ "engines": {
28
+ "node": ">=12"
29
+ }
30
+ },
31
+ "node_modules/@esbuild/android-arm": {
32
+ "version": "0.21.5",
33
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",
34
+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",
35
+ "cpu": [
36
+ "arm"
37
+ ],
38
+ "dev": true,
39
+ "license": "MIT",
40
+ "optional": true,
41
+ "os": [
42
+ "android"
43
+ ],
44
+ "engines": {
45
+ "node": ">=12"
46
+ }
47
+ },
48
+ "node_modules/@esbuild/android-arm64": {
49
+ "version": "0.21.5",
50
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",
51
+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",
52
+ "cpu": [
53
+ "arm64"
54
+ ],
55
+ "dev": true,
56
+ "license": "MIT",
57
+ "optional": true,
58
+ "os": [
59
+ "android"
60
+ ],
61
+ "engines": {
62
+ "node": ">=12"
63
+ }
64
+ },
65
+ "node_modules/@esbuild/android-x64": {
66
+ "version": "0.21.5",
67
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",
68
+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",
69
+ "cpu": [
70
+ "x64"
71
+ ],
72
+ "dev": true,
73
+ "license": "MIT",
74
+ "optional": true,
75
+ "os": [
76
+ "android"
77
+ ],
78
+ "engines": {
79
+ "node": ">=12"
80
+ }
81
+ },
82
+ "node_modules/@esbuild/darwin-arm64": {
83
+ "version": "0.21.5",
84
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",
85
+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",
86
+ "cpu": [
87
+ "arm64"
88
+ ],
89
+ "dev": true,
90
+ "license": "MIT",
91
+ "optional": true,
92
+ "os": [
93
+ "darwin"
94
+ ],
95
+ "engines": {
96
+ "node": ">=12"
97
+ }
98
+ },
99
+ "node_modules/@esbuild/darwin-x64": {
100
+ "version": "0.21.5",
101
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",
102
+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",
103
+ "cpu": [
104
+ "x64"
105
+ ],
106
+ "dev": true,
107
+ "license": "MIT",
108
+ "optional": true,
109
+ "os": [
110
+ "darwin"
111
+ ],
112
+ "engines": {
113
+ "node": ">=12"
114
+ }
115
+ },
116
+ "node_modules/@esbuild/freebsd-arm64": {
117
+ "version": "0.21.5",
118
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",
119
+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",
120
+ "cpu": [
121
+ "arm64"
122
+ ],
123
+ "dev": true,
124
+ "license": "MIT",
125
+ "optional": true,
126
+ "os": [
127
+ "freebsd"
128
+ ],
129
+ "engines": {
130
+ "node": ">=12"
131
+ }
132
+ },
133
+ "node_modules/@esbuild/freebsd-x64": {
134
+ "version": "0.21.5",
135
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",
136
+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",
137
+ "cpu": [
138
+ "x64"
139
+ ],
140
+ "dev": true,
141
+ "license": "MIT",
142
+ "optional": true,
143
+ "os": [
144
+ "freebsd"
145
+ ],
146
+ "engines": {
147
+ "node": ">=12"
148
+ }
149
+ },
150
+ "node_modules/@esbuild/linux-arm": {
151
+ "version": "0.21.5",
152
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",
153
+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",
154
+ "cpu": [
155
+ "arm"
156
+ ],
157
+ "dev": true,
158
+ "license": "MIT",
159
+ "optional": true,
160
+ "os": [
161
+ "linux"
162
+ ],
163
+ "engines": {
164
+ "node": ">=12"
165
+ }
166
+ },
167
+ "node_modules/@esbuild/linux-arm64": {
168
+ "version": "0.21.5",
169
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",
170
+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",
171
+ "cpu": [
172
+ "arm64"
173
+ ],
174
+ "dev": true,
175
+ "license": "MIT",
176
+ "optional": true,
177
+ "os": [
178
+ "linux"
179
+ ],
180
+ "engines": {
181
+ "node": ">=12"
182
+ }
183
+ },
184
+ "node_modules/@esbuild/linux-ia32": {
185
+ "version": "0.21.5",
186
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",
187
+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",
188
+ "cpu": [
189
+ "ia32"
190
+ ],
191
+ "dev": true,
192
+ "license": "MIT",
193
+ "optional": true,
194
+ "os": [
195
+ "linux"
196
+ ],
197
+ "engines": {
198
+ "node": ">=12"
199
+ }
200
+ },
201
+ "node_modules/@esbuild/linux-loong64": {
202
+ "version": "0.21.5",
203
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",
204
+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",
205
+ "cpu": [
206
+ "loong64"
207
+ ],
208
+ "dev": true,
209
+ "license": "MIT",
210
+ "optional": true,
211
+ "os": [
212
+ "linux"
213
+ ],
214
+ "engines": {
215
+ "node": ">=12"
216
+ }
217
+ },
218
+ "node_modules/@esbuild/linux-mips64el": {
219
+ "version": "0.21.5",
220
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",
221
+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",
222
+ "cpu": [
223
+ "mips64el"
224
+ ],
225
+ "dev": true,
226
+ "license": "MIT",
227
+ "optional": true,
228
+ "os": [
229
+ "linux"
230
+ ],
231
+ "engines": {
232
+ "node": ">=12"
233
+ }
234
+ },
235
+ "node_modules/@esbuild/linux-ppc64": {
236
+ "version": "0.21.5",
237
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",
238
+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",
239
+ "cpu": [
240
+ "ppc64"
241
+ ],
242
+ "dev": true,
243
+ "license": "MIT",
244
+ "optional": true,
245
+ "os": [
246
+ "linux"
247
+ ],
248
+ "engines": {
249
+ "node": ">=12"
250
+ }
251
+ },
252
+ "node_modules/@esbuild/linux-riscv64": {
253
+ "version": "0.21.5",
254
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",
255
+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",
256
+ "cpu": [
257
+ "riscv64"
258
+ ],
259
+ "dev": true,
260
+ "license": "MIT",
261
+ "optional": true,
262
+ "os": [
263
+ "linux"
264
+ ],
265
+ "engines": {
266
+ "node": ">=12"
267
+ }
268
+ },
269
+ "node_modules/@esbuild/linux-s390x": {
270
+ "version": "0.21.5",
271
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",
272
+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",
273
+ "cpu": [
274
+ "s390x"
275
+ ],
276
+ "dev": true,
277
+ "license": "MIT",
278
+ "optional": true,
279
+ "os": [
280
+ "linux"
281
+ ],
282
+ "engines": {
283
+ "node": ">=12"
284
+ }
285
+ },
286
+ "node_modules/@esbuild/linux-x64": {
287
+ "version": "0.21.5",
288
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",
289
+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
290
+ "cpu": [
291
+ "x64"
292
+ ],
293
+ "dev": true,
294
+ "license": "MIT",
295
+ "optional": true,
296
+ "os": [
297
+ "linux"
298
+ ],
299
+ "engines": {
300
+ "node": ">=12"
301
+ }
302
+ },
303
+ "node_modules/@esbuild/netbsd-x64": {
304
+ "version": "0.21.5",
305
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",
306
+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",
307
+ "cpu": [
308
+ "x64"
309
+ ],
310
+ "dev": true,
311
+ "license": "MIT",
312
+ "optional": true,
313
+ "os": [
314
+ "netbsd"
315
+ ],
316
+ "engines": {
317
+ "node": ">=12"
318
+ }
319
+ },
320
+ "node_modules/@esbuild/openbsd-x64": {
321
+ "version": "0.21.5",
322
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",
323
+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",
324
+ "cpu": [
325
+ "x64"
326
+ ],
327
+ "dev": true,
328
+ "license": "MIT",
329
+ "optional": true,
330
+ "os": [
331
+ "openbsd"
332
+ ],
333
+ "engines": {
334
+ "node": ">=12"
335
+ }
336
+ },
337
+ "node_modules/@esbuild/sunos-x64": {
338
+ "version": "0.21.5",
339
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",
340
+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",
341
+ "cpu": [
342
+ "x64"
343
+ ],
344
+ "dev": true,
345
+ "license": "MIT",
346
+ "optional": true,
347
+ "os": [
348
+ "sunos"
349
+ ],
350
+ "engines": {
351
+ "node": ">=12"
352
+ }
353
+ },
354
+ "node_modules/@esbuild/win32-arm64": {
355
+ "version": "0.21.5",
356
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",
357
+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",
358
+ "cpu": [
359
+ "arm64"
360
+ ],
361
+ "dev": true,
362
+ "license": "MIT",
363
+ "optional": true,
364
+ "os": [
365
+ "win32"
366
+ ],
367
+ "engines": {
368
+ "node": ">=12"
369
+ }
370
+ },
371
+ "node_modules/@esbuild/win32-ia32": {
372
+ "version": "0.21.5",
373
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",
374
+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",
375
+ "cpu": [
376
+ "ia32"
377
+ ],
378
+ "dev": true,
379
+ "license": "MIT",
380
+ "optional": true,
381
+ "os": [
382
+ "win32"
383
+ ],
384
+ "engines": {
385
+ "node": ">=12"
386
+ }
387
+ },
388
+ "node_modules/@esbuild/win32-x64": {
389
+ "version": "0.21.5",
390
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",
391
+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",
392
+ "cpu": [
393
+ "x64"
394
+ ],
395
+ "dev": true,
396
+ "license": "MIT",
397
+ "optional": true,
398
+ "os": [
399
+ "win32"
400
+ ],
401
+ "engines": {
402
+ "node": ">=12"
403
+ }
404
+ },
405
+ "node_modules/@rollup/rollup-android-arm-eabi": {
406
+ "version": "4.24.0",
407
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.24.0.tgz",
408
+ "integrity": "sha512-Q6HJd7Y6xdB48x8ZNVDOqsbh2uByBhgK8PiQgPhwkIw/HC/YX5Ghq2mQY5sRMZWHb3VsFkWooUVOZHKr7DmDIA==",
409
+ "cpu": [
410
+ "arm"
411
+ ],
412
+ "dev": true,
413
+ "license": "MIT",
414
+ "optional": true,
415
+ "os": [
416
+ "android"
417
+ ]
418
+ },
419
+ "node_modules/@rollup/rollup-android-arm64": {
420
+ "version": "4.24.0",
421
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.24.0.tgz",
422
+ "integrity": "sha512-ijLnS1qFId8xhKjT81uBHuuJp2lU4x2yxa4ctFPtG+MqEE6+C5f/+X/bStmxapgmwLwiL3ih122xv8kVARNAZA==",
423
+ "cpu": [
424
+ "arm64"
425
+ ],
426
+ "dev": true,
427
+ "license": "MIT",
428
+ "optional": true,
429
+ "os": [
430
+ "android"
431
+ ]
432
+ },
433
+ "node_modules/@rollup/rollup-darwin-arm64": {
434
+ "version": "4.24.0",
435
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.24.0.tgz",
436
+ "integrity": "sha512-bIv+X9xeSs1XCk6DVvkO+S/z8/2AMt/2lMqdQbMrmVpgFvXlmde9mLcbQpztXm1tajC3raFDqegsH18HQPMYtA==",
437
+ "cpu": [
438
+ "arm64"
439
+ ],
440
+ "dev": true,
441
+ "license": "MIT",
442
+ "optional": true,
443
+ "os": [
444
+ "darwin"
445
+ ]
446
+ },
447
+ "node_modules/@rollup/rollup-darwin-x64": {
448
+ "version": "4.24.0",
449
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.24.0.tgz",
450
+ "integrity": "sha512-X6/nOwoFN7RT2svEQWUsW/5C/fYMBe4fnLK9DQk4SX4mgVBiTA9h64kjUYPvGQ0F/9xwJ5U5UfTbl6BEjaQdBQ==",
451
+ "cpu": [
452
+ "x64"
453
+ ],
454
+ "dev": true,
455
+ "license": "MIT",
456
+ "optional": true,
457
+ "os": [
458
+ "darwin"
459
+ ]
460
+ },
461
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
462
+ "version": "4.24.0",
463
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.24.0.tgz",
464
+ "integrity": "sha512-0KXvIJQMOImLCVCz9uvvdPgfyWo93aHHp8ui3FrtOP57svqrF/roSSR5pjqL2hcMp0ljeGlU4q9o/rQaAQ3AYA==",
465
+ "cpu": [
466
+ "arm"
467
+ ],
468
+ "dev": true,
469
+ "license": "MIT",
470
+ "optional": true,
471
+ "os": [
472
+ "linux"
473
+ ]
474
+ },
475
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
476
+ "version": "4.24.0",
477
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.24.0.tgz",
478
+ "integrity": "sha512-it2BW6kKFVh8xk/BnHfakEeoLPv8STIISekpoF+nBgWM4d55CZKc7T4Dx1pEbTnYm/xEKMgy1MNtYuoA8RFIWw==",
479
+ "cpu": [
480
+ "arm"
481
+ ],
482
+ "dev": true,
483
+ "license": "MIT",
484
+ "optional": true,
485
+ "os": [
486
+ "linux"
487
+ ]
488
+ },
489
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
490
+ "version": "4.24.0",
491
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.24.0.tgz",
492
+ "integrity": "sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA==",
493
+ "cpu": [
494
+ "arm64"
495
+ ],
496
+ "dev": true,
497
+ "license": "MIT",
498
+ "optional": true,
499
+ "os": [
500
+ "linux"
501
+ ]
502
+ },
503
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
504
+ "version": "4.24.0",
505
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.24.0.tgz",
506
+ "integrity": "sha512-9E6MKUJhDuDh604Qco5yP/3qn3y7SLXYuiC0Rpr89aMScS2UAmK1wHP2b7KAa1nSjWJc/f/Lc0Wl1L47qjiyQw==",
507
+ "cpu": [
508
+ "arm64"
509
+ ],
510
+ "dev": true,
511
+ "license": "MIT",
512
+ "optional": true,
513
+ "os": [
514
+ "linux"
515
+ ]
516
+ },
517
+ "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
518
+ "version": "4.24.0",
519
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.24.0.tgz",
520
+ "integrity": "sha512-2XFFPJ2XMEiF5Zi2EBf4h73oR1V/lycirxZxHZNc93SqDN/IWhYYSYj8I9381ikUFXZrz2v7r2tOVk2NBwxrWw==",
521
+ "cpu": [
522
+ "ppc64"
523
+ ],
524
+ "dev": true,
525
+ "license": "MIT",
526
+ "optional": true,
527
+ "os": [
528
+ "linux"
529
+ ]
530
+ },
531
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
532
+ "version": "4.24.0",
533
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.24.0.tgz",
534
+ "integrity": "sha512-M3Dg4hlwuntUCdzU7KjYqbbd+BLq3JMAOhCKdBE3TcMGMZbKkDdJ5ivNdehOssMCIokNHFOsv7DO4rlEOfyKpg==",
535
+ "cpu": [
536
+ "riscv64"
537
+ ],
538
+ "dev": true,
539
+ "license": "MIT",
540
+ "optional": true,
541
+ "os": [
542
+ "linux"
543
+ ]
544
+ },
545
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
546
+ "version": "4.24.0",
547
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.24.0.tgz",
548
+ "integrity": "sha512-mjBaoo4ocxJppTorZVKWFpy1bfFj9FeCMJqzlMQGjpNPY9JwQi7OuS1axzNIk0nMX6jSgy6ZURDZ2w0QW6D56g==",
549
+ "cpu": [
550
+ "s390x"
551
+ ],
552
+ "dev": true,
553
+ "license": "MIT",
554
+ "optional": true,
555
+ "os": [
556
+ "linux"
557
+ ]
558
+ },
559
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
560
+ "version": "4.24.0",
561
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.24.0.tgz",
562
+ "integrity": "sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A==",
563
+ "cpu": [
564
+ "x64"
565
+ ],
566
+ "dev": true,
567
+ "license": "MIT",
568
+ "optional": true,
569
+ "os": [
570
+ "linux"
571
+ ]
572
+ },
573
+ "node_modules/@rollup/rollup-linux-x64-musl": {
574
+ "version": "4.24.0",
575
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.24.0.tgz",
576
+ "integrity": "sha512-w1i+L7kAXZNdYl+vFvzSZy8Y1arS7vMgIy8wusXJzRrPyof5LAb02KGr1PD2EkRcl73kHulIID0M501lN+vobQ==",
577
+ "cpu": [
578
+ "x64"
579
+ ],
580
+ "dev": true,
581
+ "license": "MIT",
582
+ "optional": true,
583
+ "os": [
584
+ "linux"
585
+ ]
586
+ },
587
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
588
+ "version": "4.24.0",
589
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.24.0.tgz",
590
+ "integrity": "sha512-VXBrnPWgBpVDCVY6XF3LEW0pOU51KbaHhccHw6AS6vBWIC60eqsH19DAeeObl+g8nKAz04QFdl/Cefta0xQtUQ==",
591
+ "cpu": [
592
+ "arm64"
593
+ ],
594
+ "dev": true,
595
+ "license": "MIT",
596
+ "optional": true,
597
+ "os": [
598
+ "win32"
599
+ ]
600
+ },
601
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
602
+ "version": "4.24.0",
603
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.24.0.tgz",
604
+ "integrity": "sha512-xrNcGDU0OxVcPTH/8n/ShH4UevZxKIO6HJFK0e15XItZP2UcaiLFd5kiX7hJnqCbSztUF8Qot+JWBC/QXRPYWQ==",
605
+ "cpu": [
606
+ "ia32"
607
+ ],
608
+ "dev": true,
609
+ "license": "MIT",
610
+ "optional": true,
611
+ "os": [
612
+ "win32"
613
+ ]
614
+ },
615
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
616
+ "version": "4.24.0",
617
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.24.0.tgz",
618
+ "integrity": "sha512-fbMkAF7fufku0N2dE5TBXcNlg0pt0cJue4xBRE2Qc5Vqikxr4VCgKj/ht6SMdFcOacVA9rqF70APJ8RN/4vMJw==",
619
+ "cpu": [
620
+ "x64"
621
+ ],
622
+ "dev": true,
623
+ "license": "MIT",
624
+ "optional": true,
625
+ "os": [
626
+ "win32"
627
+ ]
628
+ },
629
+ "node_modules/@types/estree": {
630
+ "version": "1.0.6",
631
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
632
+ "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",
633
+ "dev": true,
634
+ "license": "MIT"
635
+ },
636
+ "node_modules/esbuild": {
637
+ "version": "0.21.5",
638
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
639
+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
640
+ "dev": true,
641
+ "hasInstallScript": true,
642
+ "license": "MIT",
643
+ "bin": {
644
+ "esbuild": "bin/esbuild"
645
+ },
646
+ "engines": {
647
+ "node": ">=12"
648
+ },
649
+ "optionalDependencies": {
650
+ "@esbuild/aix-ppc64": "0.21.5",
651
+ "@esbuild/android-arm": "0.21.5",
652
+ "@esbuild/android-arm64": "0.21.5",
653
+ "@esbuild/android-x64": "0.21.5",
654
+ "@esbuild/darwin-arm64": "0.21.5",
655
+ "@esbuild/darwin-x64": "0.21.5",
656
+ "@esbuild/freebsd-arm64": "0.21.5",
657
+ "@esbuild/freebsd-x64": "0.21.5",
658
+ "@esbuild/linux-arm": "0.21.5",
659
+ "@esbuild/linux-arm64": "0.21.5",
660
+ "@esbuild/linux-ia32": "0.21.5",
661
+ "@esbuild/linux-loong64": "0.21.5",
662
+ "@esbuild/linux-mips64el": "0.21.5",
663
+ "@esbuild/linux-ppc64": "0.21.5",
664
+ "@esbuild/linux-riscv64": "0.21.5",
665
+ "@esbuild/linux-s390x": "0.21.5",
666
+ "@esbuild/linux-x64": "0.21.5",
667
+ "@esbuild/netbsd-x64": "0.21.5",
668
+ "@esbuild/openbsd-x64": "0.21.5",
669
+ "@esbuild/sunos-x64": "0.21.5",
670
+ "@esbuild/win32-arm64": "0.21.5",
671
+ "@esbuild/win32-ia32": "0.21.5",
672
+ "@esbuild/win32-x64": "0.21.5"
673
+ }
674
+ },
675
+ "node_modules/fsevents": {
676
+ "version": "2.3.3",
677
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
678
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
679
+ "dev": true,
680
+ "hasInstallScript": true,
681
+ "license": "MIT",
682
+ "optional": true,
683
+ "os": [
684
+ "darwin"
685
+ ],
686
+ "engines": {
687
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
688
+ }
689
+ },
690
+ "node_modules/nanoid": {
691
+ "version": "3.3.7",
692
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
693
+ "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
694
+ "dev": true,
695
+ "funding": [
696
+ {
697
+ "type": "github",
698
+ "url": "https://github.com/sponsors/ai"
699
+ }
700
+ ],
701
+ "license": "MIT",
702
+ "bin": {
703
+ "nanoid": "bin/nanoid.cjs"
704
+ },
705
+ "engines": {
706
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
707
+ }
708
+ },
709
+ "node_modules/picocolors": {
710
+ "version": "1.1.0",
711
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz",
712
+ "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==",
713
+ "dev": true,
714
+ "license": "ISC"
715
+ },
716
+ "node_modules/postcss": {
717
+ "version": "8.4.47",
718
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.47.tgz",
719
+ "integrity": "sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==",
720
+ "dev": true,
721
+ "funding": [
722
+ {
723
+ "type": "opencollective",
724
+ "url": "https://opencollective.com/postcss/"
725
+ },
726
+ {
727
+ "type": "tidelift",
728
+ "url": "https://tidelift.com/funding/github/npm/postcss"
729
+ },
730
+ {
731
+ "type": "github",
732
+ "url": "https://github.com/sponsors/ai"
733
+ }
734
+ ],
735
+ "license": "MIT",
736
+ "dependencies": {
737
+ "nanoid": "^3.3.7",
738
+ "picocolors": "^1.1.0",
739
+ "source-map-js": "^1.2.1"
740
+ },
741
+ "engines": {
742
+ "node": "^10 || ^12 || >=14"
743
+ }
744
+ },
745
+ "node_modules/rollup": {
746
+ "version": "4.24.0",
747
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.24.0.tgz",
748
+ "integrity": "sha512-DOmrlGSXNk1DM0ljiQA+i+o0rSLhtii1je5wgk60j49d1jHT5YYttBv1iWOnYSTG+fZZESUOSNiAl89SIet+Cg==",
749
+ "dev": true,
750
+ "license": "MIT",
751
+ "dependencies": {
752
+ "@types/estree": "1.0.6"
753
+ },
754
+ "bin": {
755
+ "rollup": "dist/bin/rollup"
756
+ },
757
+ "engines": {
758
+ "node": ">=18.0.0",
759
+ "npm": ">=8.0.0"
760
+ },
761
+ "optionalDependencies": {
762
+ "@rollup/rollup-android-arm-eabi": "4.24.0",
763
+ "@rollup/rollup-android-arm64": "4.24.0",
764
+ "@rollup/rollup-darwin-arm64": "4.24.0",
765
+ "@rollup/rollup-darwin-x64": "4.24.0",
766
+ "@rollup/rollup-linux-arm-gnueabihf": "4.24.0",
767
+ "@rollup/rollup-linux-arm-musleabihf": "4.24.0",
768
+ "@rollup/rollup-linux-arm64-gnu": "4.24.0",
769
+ "@rollup/rollup-linux-arm64-musl": "4.24.0",
770
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.24.0",
771
+ "@rollup/rollup-linux-riscv64-gnu": "4.24.0",
772
+ "@rollup/rollup-linux-s390x-gnu": "4.24.0",
773
+ "@rollup/rollup-linux-x64-gnu": "4.24.0",
774
+ "@rollup/rollup-linux-x64-musl": "4.24.0",
775
+ "@rollup/rollup-win32-arm64-msvc": "4.24.0",
776
+ "@rollup/rollup-win32-ia32-msvc": "4.24.0",
777
+ "@rollup/rollup-win32-x64-msvc": "4.24.0",
778
+ "fsevents": "~2.3.2"
779
+ }
780
+ },
781
+ "node_modules/source-map-js": {
782
+ "version": "1.2.1",
783
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
784
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
785
+ "dev": true,
786
+ "license": "BSD-3-Clause",
787
+ "engines": {
788
+ "node": ">=0.10.0"
789
+ }
790
+ },
791
+ "node_modules/vite": {
792
+ "version": "5.4.8",
793
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.8.tgz",
794
+ "integrity": "sha512-FqrItQ4DT1NC4zCUqMB4c4AZORMKIa0m8/URVCZ77OZ/QSNeJ54bU1vrFADbDsuwfIPcgknRkmqakQcgnL4GiQ==",
795
+ "dev": true,
796
+ "license": "MIT",
797
+ "dependencies": {
798
+ "esbuild": "^0.21.3",
799
+ "postcss": "^8.4.43",
800
+ "rollup": "^4.20.0"
801
+ },
802
+ "bin": {
803
+ "vite": "bin/vite.js"
804
+ },
805
+ "engines": {
806
+ "node": "^18.0.0 || >=20.0.0"
807
+ },
808
+ "funding": {
809
+ "url": "https://github.com/vitejs/vite?sponsor=1"
810
+ },
811
+ "optionalDependencies": {
812
+ "fsevents": "~2.3.3"
813
+ },
814
+ "peerDependencies": {
815
+ "@types/node": "^18.0.0 || >=20.0.0",
816
+ "less": "*",
817
+ "lightningcss": "^1.21.0",
818
+ "sass": "*",
819
+ "sass-embedded": "*",
820
+ "stylus": "*",
821
+ "sugarss": "*",
822
+ "terser": "^5.4.0"
823
+ },
824
+ "peerDependenciesMeta": {
825
+ "@types/node": {
826
+ "optional": true
827
+ },
828
+ "less": {
829
+ "optional": true
830
+ },
831
+ "lightningcss": {
832
+ "optional": true
833
+ },
834
+ "sass": {
835
+ "optional": true
836
+ },
837
+ "sass-embedded": {
838
+ "optional": true
839
+ },
840
+ "stylus": {
841
+ "optional": true
842
+ },
843
+ "sugarss": {
844
+ "optional": true
845
+ },
846
+ "terser": {
847
+ "optional": true
848
+ }
849
+ }
850
+ }
851
+ }
852
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "preview",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "devDependencies": {
12
+ "vite": "^5.4.8"
13
+ }
14
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "ziko-atropos",
3
+ "version": "0.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./src/index.js"
10
+ }
11
+ },
12
+ "scripts": {
13
+ "test": "echo \"Error: no test specified\" && exit 1",
14
+ "dev": "cross-env NODE_ENV=development rollup --config rollup.config.js",
15
+ "watch": "cross-env NODE_ENV=development rollup --config rollup.config.js -w",
16
+ "build": "cross-env NODE_ENV=production rollup --config rollup.config.js"
17
+ },
18
+ "author": "",
19
+ "keywords": [
20
+ "zikojs",
21
+ "zikojs-addons"
22
+ ],
23
+ "license": "MIT",
24
+ "devDependencies": {
25
+ "@rollup/plugin-commonjs": "^28.0.0",
26
+ "@rollup/plugin-node-resolve": "^15.3.0",
27
+ "@rollup/plugin-terser": "^0.4.4",
28
+ "cross-env": "^7.0.3",
29
+ "rollup": "^4.24.0"
30
+ },
31
+ "dependencies": {
32
+ "atropos": "^2.0.2",
33
+ "ziko": "^0.60.1"
34
+ }
35
+ }
@@ -0,0 +1,69 @@
1
+ import resolve from "@rollup/plugin-node-resolve";
2
+ import commonjs from '@rollup/plugin-commonjs';
3
+ import terser from "@rollup/plugin-terser";
4
+
5
+ const Addon_name = "ziko-something";
6
+ const NamedExport = "ZikoSomething"
7
+ const Author = "";
8
+
9
+ const banner = `
10
+ /*
11
+ Project: ${Addon_name}
12
+ Author: ${Author}
13
+ Date : ${new Date()}
14
+ */
15
+ `;
16
+ const isProduction = process.env.NODE_ENV === "production";
17
+
18
+ const output = [
19
+ {
20
+ file: `dist/${Addon_name}.mjs`,
21
+ format: "es",
22
+ banner,
23
+ exports: "named",
24
+ },
25
+ {
26
+ file: `dist/${Addon_name}.js`,
27
+ format: "umd",
28
+ name: NamedExport,
29
+ banner,
30
+ exports: "named",
31
+ globals: {
32
+ ziko: "Ziko",
33
+ },
34
+ },
35
+ ];
36
+ isProduction &&
37
+ output.push(
38
+ {
39
+ file: `dist/${Addon_name}.min.mjs`,
40
+ format: "es",
41
+ banner,
42
+ exports: "named",
43
+ },
44
+ {
45
+ file: `dist/${Addon_name}.min.js`,
46
+ format: "umd",
47
+ name: NamedExport,
48
+ banner,
49
+ exports: "named",
50
+ plugins: [
51
+ terser({
52
+ output: {
53
+ comments: (node, { type, value }) =>
54
+ type === "comment2" && value.includes("Author"),
55
+ },
56
+ }),
57
+ ],
58
+ },
59
+ );
60
+
61
+ export default {
62
+ input: "src/index.js",
63
+ output,
64
+ external: ["ziko"],
65
+ plugins: [
66
+ resolve(),
67
+ commonjs(),
68
+ ],
69
+ };
package/src/index.js ADDED
@@ -0,0 +1,36 @@
1
+ import { UIElement, tags } from "ziko/ui";
2
+ import 'atropos/css'
3
+ import __Atropos__ from 'atropos';
4
+
5
+
6
+
7
+ export class UIAtropos extends UIElement{
8
+ constructor(item){
9
+ super({ element : 'div'})
10
+ this.setAttr({class : 'atropos'});
11
+ this.inner = tags.div({class : 'atropos-inner'}).append(item)
12
+ this.append(
13
+ tags.div({class : 'atropos-scale'}).append(
14
+ tags.div({class : 'atropos-rotate'}).append(
15
+ this.inner
16
+ )
17
+ )
18
+ )
19
+ this.atropos = __Atropos__({
20
+ el : this.element,
21
+ // activeOffset: 40,
22
+ // shadowScale: 1.05,
23
+ // onEnter() {
24
+ // console.log('Enter');
25
+ // },
26
+ // onLeave() {
27
+ // console.log('Leave');
28
+ // },
29
+ // onRotate(x, y) {
30
+ // console.log('Rotate', x, y);
31
+ // }
32
+ })
33
+ }
34
+ }
35
+
36
+ export const Atropos = (item) => new UIAtropos(item)