@atscript/ui-styles 0.1.59
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/README.md +133 -0
- package/dist/css/all.css +1600 -0
- package/dist/css/form.css +437 -0
- package/dist/css/table.css +1597 -0
- package/dist/css/wf.css +440 -0
- package/dist/index.cjs +1380 -0
- package/dist/index.d.cts +238 -0
- package/dist/index.d.mts +238 -0
- package/dist/index.mjs +1289 -0
- package/dist/kebab-CAodBEsa.mjs +2702 -0
- package/dist/kebab-_amgjqa2.cjs +2743 -0
- package/dist/vite.cjs +37 -0
- package/dist/vite.d.cts +16 -0
- package/dist/vite.d.mts +16 -0
- package/dist/vite.mjs +36 -0
- package/package.json +87 -0
package/dist/vite.cjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_kebab = require("./kebab-_amgjqa2.cjs");
|
|
3
|
+
//#region src/vite.ts
|
|
4
|
+
const PKG_TO_NPM = {
|
|
5
|
+
form: "@atscript/vue-form",
|
|
6
|
+
table: "@atscript/vue-table",
|
|
7
|
+
wf: "@atscript/vue-wf"
|
|
8
|
+
};
|
|
9
|
+
const AS_TAG = /^As[A-Z]/;
|
|
10
|
+
/**
|
|
11
|
+
* Auto-imports Tier-1 primary components only — the ones users tag
|
|
12
|
+
* directly in templates (`<AsForm>`, `<AsTable>`, `<AsTableRoot>`,
|
|
13
|
+
* `<AsFilters>`, `<AsField>`, `<AsIterator>`, `<AsWfForm>`). Tier-2
|
|
14
|
+
* default implementations (`AsInput`, `AsFilterDialog`, …) are public
|
|
15
|
+
* and importable via subpath or barrel, but are NOT auto-resolved —
|
|
16
|
+
* users import them explicitly when composing custom defaults.
|
|
17
|
+
* Composables (`useTable`, …) are not handled by `unplugin-vue-components`
|
|
18
|
+
* at all and must be imported explicitly.
|
|
19
|
+
*/
|
|
20
|
+
function AsResolver() {
|
|
21
|
+
return {
|
|
22
|
+
type: "component",
|
|
23
|
+
resolve(name) {
|
|
24
|
+
if (!AS_TAG.test(name)) return;
|
|
25
|
+
const kebab = require_kebab.kebabize(name);
|
|
26
|
+
if (!require_kebab.primaryComponents.has(kebab)) return;
|
|
27
|
+
const pkg = require_kebab.componentPackages[kebab];
|
|
28
|
+
if (!pkg) return;
|
|
29
|
+
return {
|
|
30
|
+
name: "default",
|
|
31
|
+
from: `${PKG_TO_NPM[pkg]}/${kebab}`
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.AsResolver = AsResolver;
|
package/dist/vite.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentResolverObject } from "unplugin-vue-components";
|
|
2
|
+
|
|
3
|
+
//#region src/vite.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Auto-imports Tier-1 primary components only — the ones users tag
|
|
6
|
+
* directly in templates (`<AsForm>`, `<AsTable>`, `<AsTableRoot>`,
|
|
7
|
+
* `<AsFilters>`, `<AsField>`, `<AsIterator>`, `<AsWfForm>`). Tier-2
|
|
8
|
+
* default implementations (`AsInput`, `AsFilterDialog`, …) are public
|
|
9
|
+
* and importable via subpath or barrel, but are NOT auto-resolved —
|
|
10
|
+
* users import them explicitly when composing custom defaults.
|
|
11
|
+
* Composables (`useTable`, …) are not handled by `unplugin-vue-components`
|
|
12
|
+
* at all and must be imported explicitly.
|
|
13
|
+
*/
|
|
14
|
+
declare function AsResolver(): ComponentResolverObject;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AsResolver };
|
package/dist/vite.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentResolverObject } from "unplugin-vue-components";
|
|
2
|
+
|
|
3
|
+
//#region src/vite.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Auto-imports Tier-1 primary components only — the ones users tag
|
|
6
|
+
* directly in templates (`<AsForm>`, `<AsTable>`, `<AsTableRoot>`,
|
|
7
|
+
* `<AsFilters>`, `<AsField>`, `<AsIterator>`, `<AsWfForm>`). Tier-2
|
|
8
|
+
* default implementations (`AsInput`, `AsFilterDialog`, …) are public
|
|
9
|
+
* and importable via subpath or barrel, but are NOT auto-resolved —
|
|
10
|
+
* users import them explicitly when composing custom defaults.
|
|
11
|
+
* Composables (`useTable`, …) are not handled by `unplugin-vue-components`
|
|
12
|
+
* at all and must be imported explicitly.
|
|
13
|
+
*/
|
|
14
|
+
declare function AsResolver(): ComponentResolverObject;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AsResolver };
|
package/dist/vite.mjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { r as componentPackages, s as primaryComponents, t as kebabize } from "./kebab-CAodBEsa.mjs";
|
|
2
|
+
//#region src/vite.ts
|
|
3
|
+
const PKG_TO_NPM = {
|
|
4
|
+
form: "@atscript/vue-form",
|
|
5
|
+
table: "@atscript/vue-table",
|
|
6
|
+
wf: "@atscript/vue-wf"
|
|
7
|
+
};
|
|
8
|
+
const AS_TAG = /^As[A-Z]/;
|
|
9
|
+
/**
|
|
10
|
+
* Auto-imports Tier-1 primary components only — the ones users tag
|
|
11
|
+
* directly in templates (`<AsForm>`, `<AsTable>`, `<AsTableRoot>`,
|
|
12
|
+
* `<AsFilters>`, `<AsField>`, `<AsIterator>`, `<AsWfForm>`). Tier-2
|
|
13
|
+
* default implementations (`AsInput`, `AsFilterDialog`, …) are public
|
|
14
|
+
* and importable via subpath or barrel, but are NOT auto-resolved —
|
|
15
|
+
* users import them explicitly when composing custom defaults.
|
|
16
|
+
* Composables (`useTable`, …) are not handled by `unplugin-vue-components`
|
|
17
|
+
* at all and must be imported explicitly.
|
|
18
|
+
*/
|
|
19
|
+
function AsResolver() {
|
|
20
|
+
return {
|
|
21
|
+
type: "component",
|
|
22
|
+
resolve(name) {
|
|
23
|
+
if (!AS_TAG.test(name)) return;
|
|
24
|
+
const kebab = kebabize(name);
|
|
25
|
+
if (!primaryComponents.has(kebab)) return;
|
|
26
|
+
const pkg = componentPackages[kebab];
|
|
27
|
+
if (!pkg) return;
|
|
28
|
+
return {
|
|
29
|
+
name: "default",
|
|
30
|
+
from: `${PKG_TO_NPM[pkg]}/${kebab}`
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { AsResolver };
|
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atscript/ui-styles",
|
|
3
|
+
"version": "0.1.59",
|
|
4
|
+
"description": "Shared UnoCSS shortcuts, presets, and icon loader for atscript-ui (vue-form, vue-table, vue-wf)",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"atscript",
|
|
7
|
+
"atscript-ui",
|
|
8
|
+
"icons",
|
|
9
|
+
"preset",
|
|
10
|
+
"shortcuts",
|
|
11
|
+
"styles",
|
|
12
|
+
"unocss",
|
|
13
|
+
"vunor"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/moostjs/atscript-ui/tree/main/packages/ui-styles#readme",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/moostjs/atscript-ui/issues"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "Artem Maltsev <artem@maltsev.nl>",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/moostjs/atscript-ui.git",
|
|
24
|
+
"directory": "packages/ui-styles"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"type": "module",
|
|
30
|
+
"main": "dist/index.mjs",
|
|
31
|
+
"types": "dist/index.d.mts",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.mts",
|
|
35
|
+
"import": "./dist/index.mjs",
|
|
36
|
+
"require": "./dist/index.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./css": "./dist/css/all.css",
|
|
39
|
+
"./css/all": "./dist/css/all.css",
|
|
40
|
+
"./css/form": "./dist/css/form.css",
|
|
41
|
+
"./css/table": "./dist/css/table.css",
|
|
42
|
+
"./css/wf": "./dist/css/wf.css",
|
|
43
|
+
"./vite": {
|
|
44
|
+
"types": "./dist/vite.d.mts",
|
|
45
|
+
"import": "./dist/vite.mjs",
|
|
46
|
+
"require": "./dist/vite.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./package.json": "./package.json"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"bake-icons": "tsx scripts/bake-icons.ts",
|
|
52
|
+
"extract-classes": "tsx scripts/extract-component-classes.ts",
|
|
53
|
+
"build-css": "tsx scripts/build-css.ts",
|
|
54
|
+
"build": "pnpm bake-icons && pnpm extract-classes && vp pack && pnpm build-css",
|
|
55
|
+
"dev": "vp pack --watch",
|
|
56
|
+
"test": "vp test",
|
|
57
|
+
"check": "vp check"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@iconify/utils": "catalog:"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@atscript/vue-form": "workspace:^",
|
|
64
|
+
"@atscript/vue-table": "workspace:^",
|
|
65
|
+
"@atscript/vue-wf": "workspace:^",
|
|
66
|
+
"@unocss/preset-icons": "catalog:",
|
|
67
|
+
"@vitejs/plugin-vue": "catalog:",
|
|
68
|
+
"rolldown": "1.0.0-rc.16",
|
|
69
|
+
"tinyglobby": "^0.2.15",
|
|
70
|
+
"tsx": "^4.21.0",
|
|
71
|
+
"unocss": "catalog:",
|
|
72
|
+
"unplugin-vue-components": "^32.0.0",
|
|
73
|
+
"vitest": "catalog:",
|
|
74
|
+
"vunor": "catalog:"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@unocss/preset-icons": "catalog:",
|
|
78
|
+
"unocss": "catalog:",
|
|
79
|
+
"unplugin-vue-components": "^32.0.0",
|
|
80
|
+
"vunor": "catalog:"
|
|
81
|
+
},
|
|
82
|
+
"peerDependenciesMeta": {
|
|
83
|
+
"unplugin-vue-components": {
|
|
84
|
+
"optional": true
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|