da-style 0.1.1 → 0.1.2

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 (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +225 -0
  3. package/dist/da-style.css +2 -0
  4. package/dist/da-style.js +2 -0
  5. package/dist/da-style.mjs +704 -0
  6. package/dist/src/components/Button/DButton.types.d.ts +23 -0
  7. package/dist/src/components/Button/DButton.vue.d.ts +29 -0
  8. package/dist/src/components/Button/index.d.ts +4 -0
  9. package/dist/src/components/Icon/DIcon.types.d.ts +12 -0
  10. package/dist/src/components/Icon/DIcon.vue.d.ts +8 -0
  11. package/dist/src/components/Icon/icons.d.ts +2 -0
  12. package/dist/src/components/Icon/index.d.ts +5 -0
  13. package/dist/src/components/Input/DInput.types.d.ts +17 -0
  14. package/dist/src/components/Input/DInput.vue.d.ts +45 -0
  15. package/dist/src/components/Input/index.d.ts +9 -0
  16. package/dist/src/components/Loading/DLoading.types.d.ts +14 -0
  17. package/dist/src/components/Loading/DLoading.vue.d.ts +10 -0
  18. package/dist/src/components/Loading/index.d.ts +8 -0
  19. package/dist/src/components/Tag/DTag.types.d.ts +22 -0
  20. package/dist/src/components/Tag/DTag.vue.d.ts +25 -0
  21. package/dist/src/components/Tag/index.d.ts +9 -0
  22. package/dist/src/components/index.d.ts +5 -0
  23. package/dist/src/index.d.ts +4 -0
  24. package/dist/src/shared/index.d.ts +3 -0
  25. package/dist/src/shared/props.d.ts +24 -0
  26. package/dist/src/shared/types.d.ts +15 -0
  27. package/dist/src/shared/utils.d.ts +7 -0
  28. package/dist/src/token/borders.d.ts +41 -0
  29. package/dist/src/token/colors.d.ts +84 -0
  30. package/dist/src/token/index.d.ts +20 -0
  31. package/dist/src/token/inject.d.ts +24 -0
  32. package/dist/src/token/shadows.d.ts +43 -0
  33. package/dist/src/token/spacing.d.ts +58 -0
  34. package/dist/src/token/typography.d.ts +86 -0
  35. package/package.json +38 -45
  36. package/lib/da-style.common.js +0 -2011
  37. package/lib/da-style.common.js.map +0 -1
  38. package/lib/da-style.css +0 -1
  39. package/lib/da-style.umd.js +0 -2021
  40. package/lib/da-style.umd.js.map +0 -1
  41. package/lib/da-style.umd.min.js +0 -2
  42. package/lib/da-style.umd.min.js.map +0 -1
  43. package/lib/demo.html +0 -10
@@ -0,0 +1,86 @@
1
+ /**
2
+ * da-style Typography System
3
+ *
4
+ * Cyberpunk-informed type scale: monospace primary for that
5
+ * hacker/terminal feel, system-ui for headings where readability
6
+ * at large sizes matters.
7
+ */
8
+ export declare const fontMono = "'Courier New', 'Consolas', 'Source Code Pro', monospace";
9
+ export declare const fontSans = "system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif";
10
+ export declare const fontHeading = "system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif";
11
+ export declare const fontBody = "'Courier New', Consolas, monospace";
12
+ export declare const textXs = "12px";
13
+ export declare const textSm = "14px";
14
+ export declare const textBase = "16px";
15
+ export declare const textLg = "18px";
16
+ export declare const textXl = "20px";
17
+ export declare const text2xl = "24px";
18
+ export declare const text3xl = "30px";
19
+ export declare const weightRegular = "400";
20
+ export declare const weightMedium = "500";
21
+ export declare const weightSemibold = "600";
22
+ export declare const weightBold = "700";
23
+ export declare const leadingTight = "1.2";
24
+ export declare const leadingNormal = "1.5";
25
+ export declare const leadingRelaxed = "1.75";
26
+ export declare const trackingTight = "-0.02em";
27
+ export declare const trackingNormal = "0";
28
+ export declare const trackingWide = "0.08em";
29
+ export declare const cssVars: {
30
+ readonly font: {
31
+ readonly mono: "--d-font-mono";
32
+ readonly sans: "--d-font-sans";
33
+ readonly heading: "--d-font-heading";
34
+ readonly body: "--d-font-body";
35
+ };
36
+ readonly size: {
37
+ readonly xs: "--d-text-xs";
38
+ readonly sm: "--d-text-sm";
39
+ readonly base: "--d-text-base";
40
+ readonly lg: "--d-text-lg";
41
+ readonly xl: "--d-text-xl";
42
+ readonly '2xl': "--d-text-2xl";
43
+ readonly '3xl': "--d-text-3xl";
44
+ };
45
+ readonly weight: {
46
+ readonly regular: "--d-weight-regular";
47
+ readonly medium: "--d-weight-medium";
48
+ readonly semibold: "--d-weight-semibold";
49
+ readonly bold: "--d-weight-bold";
50
+ };
51
+ readonly leading: {
52
+ readonly tight: "--d-leading-tight";
53
+ readonly normal: "--d-leading-normal";
54
+ readonly relaxed: "--d-leading-relaxed";
55
+ };
56
+ readonly tracking: {
57
+ readonly tight: "--d-tracking-tight";
58
+ readonly normal: "--d-tracking-normal";
59
+ readonly wide: "--d-tracking-wide";
60
+ };
61
+ };
62
+ export interface TypographyTokens {
63
+ fontMono: string;
64
+ fontSans: string;
65
+ fontHeading: string;
66
+ fontBody: string;
67
+ textXs: string;
68
+ textSm: string;
69
+ textBase: string;
70
+ textLg: string;
71
+ textXl: string;
72
+ text2xl: string;
73
+ text3xl: string;
74
+ weightRegular: string;
75
+ weightMedium: string;
76
+ weightSemibold: string;
77
+ weightBold: string;
78
+ leadingTight: string;
79
+ leadingNormal: string;
80
+ leadingRelaxed: string;
81
+ trackingTight: string;
82
+ trackingNormal: string;
83
+ trackingWide: string;
84
+ }
85
+ /** All typography tokens as a flat object */
86
+ export declare const typography: TypographyTokens;
package/package.json CHANGED
@@ -1,45 +1,38 @@
1
- {
2
- "name": "da-style",
3
- "version": "0.1.1",
4
- "main": "lib/da-style.common.js",
5
- "author": "da9527",
6
- "private": false,
7
- "scripts": {
8
- "serve": "vue-cli-service serve",
9
- "build": "vue-cli-service build",
10
- "lib": "vue-cli-service build --target lib --name da-style --dest lib packages/index.js",
11
- "lint": "vue-cli-service lint"
12
- },
13
- "dependencies": {
14
- "core-js": "^3.6.5",
15
- "vue": "^3.0.0"
16
- },
17
- "devDependencies": {
18
- "@vue/cli-plugin-babel": "~4.5.0",
19
- "@vue/cli-plugin-eslint": "~4.5.0",
20
- "@vue/cli-service": "~4.5.0",
21
- "@vue/compiler-sfc": "^3.0.0",
22
- "babel-eslint": "^10.1.0",
23
- "eslint": "^6.7.2",
24
- "eslint-plugin-vue": "^7.0.0"
25
- },
26
- "eslintConfig": {
27
- "root": true,
28
- "env": {
29
- "node": true
30
- },
31
- "extends": [
32
- "plugin:vue/vue3-essential",
33
- "eslint:recommended"
34
- ],
35
- "parserOptions": {
36
- "parser": "babel-eslint"
37
- },
38
- "rules": {}
39
- },
40
- "browserslist": [
41
- "> 1%",
42
- "last 2 versions",
43
- "not dead"
44
- ]
45
- }
1
+ {
2
+ "name": "da-style",
3
+ "version": "0.1.2",
4
+ "description": "赛博朋克风格 Vue3 组件库",
5
+ "type": "module",
6
+ "private": false,
7
+ "license": "MIT",
8
+ "author": "da",
9
+ "scripts": {
10
+ "dev": "vite",
11
+ "build": "vue-tsc --noEmit && vite build",
12
+ "preview": "vite preview",
13
+ "docs:dev": "vitepress dev docs",
14
+ "docs:build": "vitepress build docs",
15
+ "test": "vitest",
16
+ "test:run": "vitest run",
17
+ "test:watch": "vitest",
18
+ "typecheck": "vue-tsc --noEmit"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "README.md"
23
+ ],
24
+ "dependencies": {
25
+ "vue": "^3.5.38"
26
+ },
27
+ "devDependencies": {
28
+ "@vitejs/plugin-vue": "^6.0.7",
29
+ "@vue/test-utils": "^2.4.11",
30
+ "jsdom": "^29.1.1",
31
+ "typescript": "^6.0.3",
32
+ "vite": "^8.0.16",
33
+ "vite-plugin-dts": "^5.0.2",
34
+ "vitepress": "^1.6.4",
35
+ "vitest": "^4.1.9",
36
+ "vue-tsc": "^3.3.5"
37
+ }
38
+ }