@aakaar/global 0.0.1
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/.turbo/turbo-build.log +12 -0
- package/.turbo/turbo-lint.log +6 -0
- package/.turbo/turbo-ts.log +5 -0
- package/LICENSE.md +21 -0
- package/dist/index.js +47 -0
- package/package.json +25 -0
- package/src/index.ts +35 -0
- package/tsconfig.json +15 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @aakaar/global@0.0.1 build /Users/navjotahuja/Projects/aakaar/packages/global
|
|
4
|
+
> tsup src/index.ts
|
|
5
|
+
|
|
6
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.0
|
|
9
|
+
[34mCLI[39m Target: es2022
|
|
10
|
+
[34mCJS[39m Build start
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m1.77 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 22ms
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Aakaar UI Framework
|
|
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/dist/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
AakaarComponent: () => AakaarComponent
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
|
+
var AakaarComponent = /* @__PURE__ */ ((AakaarComponent2) => {
|
|
27
|
+
AakaarComponent2["accordion"] = "accordion";
|
|
28
|
+
AakaarComponent2["avatar"] = "avatar";
|
|
29
|
+
AakaarComponent2["breadcrumb"] = "breadcrumb";
|
|
30
|
+
AakaarComponent2["button"] = "button";
|
|
31
|
+
AakaarComponent2["card"] = "card";
|
|
32
|
+
AakaarComponent2["checkbox"] = "checkbox";
|
|
33
|
+
AakaarComponent2["dialog"] = "dialog";
|
|
34
|
+
AakaarComponent2["input"] = "input";
|
|
35
|
+
AakaarComponent2["label"] = "label";
|
|
36
|
+
AakaarComponent2["popover"] = "popover";
|
|
37
|
+
AakaarComponent2["radio"] = "radio";
|
|
38
|
+
AakaarComponent2["select"] = "select";
|
|
39
|
+
AakaarComponent2["switch"] = "switch";
|
|
40
|
+
AakaarComponent2["tabs"] = "tabs";
|
|
41
|
+
AakaarComponent2["textarea"] = "textarea";
|
|
42
|
+
return AakaarComponent2;
|
|
43
|
+
})(AakaarComponent || {});
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
AakaarComponent
|
|
47
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/package",
|
|
3
|
+
"name": "@aakaar/global",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./src/index.ts"
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@biomejs/biome": "^1.9.4",
|
|
10
|
+
"@types/node": "^20.0.0",
|
|
11
|
+
"tsup": "^8.0.0",
|
|
12
|
+
"typescript": "^5.0.0"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsup src/index.ts",
|
|
16
|
+
"clean": "rm -rf dist",
|
|
17
|
+
"clean:nm": "rm -rf node_modules",
|
|
18
|
+
"dev": "tsup src/index.ts --watch",
|
|
19
|
+
"lint": "biome check .",
|
|
20
|
+
"generate:component": "turbo gen react-component",
|
|
21
|
+
"ts": "tsc --noEmit",
|
|
22
|
+
"publish:internet": "pnpm publish --access public",
|
|
23
|
+
"publish:local": "pnpm publish --registry http://localhost:4873"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type PackageManager = "npm" | "yarn" | "pnpm" | "bun" | "deno";
|
|
2
|
+
|
|
3
|
+
// --------------------------------------------
|
|
4
|
+
// Sync with scripts/registry.mts
|
|
5
|
+
export type RegistryFile = {
|
|
6
|
+
name: string;
|
|
7
|
+
content: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type ComponentRegistry = {
|
|
11
|
+
name: string;
|
|
12
|
+
dependencies?: string[];
|
|
13
|
+
files: RegistryFile[];
|
|
14
|
+
};
|
|
15
|
+
// --------------------------------------------
|
|
16
|
+
|
|
17
|
+
export enum AakaarComponent {
|
|
18
|
+
accordion = "accordion",
|
|
19
|
+
avatar = "avatar",
|
|
20
|
+
breadcrumb = "breadcrumb",
|
|
21
|
+
button = "button",
|
|
22
|
+
card = "card",
|
|
23
|
+
checkbox = "checkbox",
|
|
24
|
+
dialog = "dialog",
|
|
25
|
+
input = "input",
|
|
26
|
+
label = "label",
|
|
27
|
+
popover = "popover",
|
|
28
|
+
radio = "radio",
|
|
29
|
+
select = "select",
|
|
30
|
+
switch = "switch",
|
|
31
|
+
tabs = "tabs",
|
|
32
|
+
textarea = "textarea",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type AakaarComponentName = keyof typeof AakaarComponent;
|
package/tsconfig.json
ADDED