@upsoftware_tech/svarium 1.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.
@@ -0,0 +1,28 @@
1
+ // bin/svarium-init.js
2
+
3
+ import { spawn } from 'node:child_process';
4
+ import pc from 'picocolors';
5
+
6
+ console.log(pc.cyan('🚀 Inicjalizuję komponenty...'));
7
+
8
+ const command = 'npx';
9
+ const args = ['shadcn-vue@latest', 'add', 'switch'];
10
+
11
+ const child = spawn(command, args, {
12
+ stdio: 'inherit',
13
+ shell: true
14
+ });
15
+
16
+ child.on('error', (err) => {
17
+ console.error(pc.red('❌ Błąd:'), err);
18
+ process.exit(1);
19
+ });
20
+
21
+ child.on('close', (code) => {
22
+ if (code === 0) {
23
+ console.log(pc.green('✔ Gotowe! Switch dodany.'));
24
+ } else {
25
+ console.log(pc.red(`❌ Proces zakończony kodem błędu: ${code}`));
26
+ process.exit(code);
27
+ }
28
+ });
package/bin/svarium.js ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+
3
+ import process from 'node:process';
4
+
5
+ const commands = [
6
+ 'init',
7
+ 'update'
8
+ ];
9
+
10
+ const cmd = process.argv[2];
11
+
12
+ if (commands.includes(cmd)) {
13
+ // Dynamiczny import. WAŻNE: W ESM musisz podać rozszerzenie pliku (.js)!
14
+ await import(`./svarium-${cmd}.js`);
15
+ } else {
16
+ console.warn(`Unknown command "${cmd}". Available commands: ${commands.join(', ')}`);
17
+ }
@@ -0,0 +1 @@
1
+ .app{font-size:14px}
@@ -0,0 +1,6 @@
1
+ export * from '../index'
2
+ export {}
3
+ import Svarium from '../index'
4
+ export default Svarium
5
+ export * from '../index'
6
+ export {}
@@ -0,0 +1,19 @@
1
+ import { createElementBlock as r, openBlock as s } from "vue";
2
+ const _ = (t, n) => {
3
+ const o = t.__vccOpts || t;
4
+ for (const [c, e] of n)
5
+ o[c] = e;
6
+ return o;
7
+ }, a = {}, l = { class: "w-8" };
8
+ function f(t, n) {
9
+ return s(), r("div", l, "IKONKA");
10
+ }
11
+ const i = /* @__PURE__ */ _(a, [["render", f]]), p = {
12
+ install: (t) => {
13
+ t.component("UButtonIcon", i);
14
+ }
15
+ };
16
+ export {
17
+ i as ButtonIcon,
18
+ p as default
19
+ };
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.Svarium={},e.Vue))})(this,(function(e,t){"use strict";const s=(n,c)=>{const i=n.__vccOpts||n;for(const[_,l]of c)i[_]=l;return i},u={},r={class:"w-8"};function d(n,c){return t.openBlock(),t.createElementBlock("div",r,"IKONKA")}const o=s(u,[["render",d]]),f={install:n=>{n.component("UButtonIcon",o)}};e.ButtonIcon=o,e.default=f,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@upsoftware_tech/svarium",
3
+ "author": {
4
+ "name": "UpSoftware Sp zoo",
5
+ "email": "info@upSoftware.tech",
6
+ "url": "https://upsoftware.tech"
7
+ },
8
+ "version": "1.0.0",
9
+ "type": "module",
10
+ "files": [
11
+ "dist",
12
+ "bin"
13
+ ],
14
+ "scripts": {
15
+ "dev": "vite",
16
+ "build": "vite build"
17
+ },
18
+ "main": "./dist/upsoftware-svarium.umd.cjs",
19
+ "module": "./dist/upsoftware-svarium.js",
20
+ "types": "./dist/types/index.d.ts",
21
+ "bin": {
22
+ "svarium": "./bin/svarium.js"
23
+ },
24
+ "exports": {
25
+ ".": {
26
+ "import": "./dist/svarium.js",
27
+ "require": "./dist/svarium.umd.cjs"
28
+ }
29
+ },
30
+ "devDependencies": {
31
+ "@nuxt/devtools-kit": "^3.1.1",
32
+ "@nuxt/kit": "^4.2.2",
33
+ "@vitejs/plugin-vue": "^6.0.3",
34
+ "typescript": "^5.9.3",
35
+ "vite": "^7.3.0",
36
+ "vite-plugin-dts": "^4.5.4",
37
+ "vue": "^3.5.26"
38
+ },
39
+ "dependencies": {
40
+ "@tailwindcss/vite": "^4.1.18",
41
+ "cac": "^6.7.14",
42
+ "class-variance-authority": "^0.7.1",
43
+ "picocolors": "^1.1.1",
44
+ "tailwindcss": "^4.1.18"
45
+ }
46
+ }