@delta-comic/ui 2.1.0 → 3.0.0-next.10
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/dist/core-CccJCdWI.js +22 -0
- package/dist/core-CccJCdWI.js.map +1 -0
- package/dist/dist-js-BlNPHicQ.js +12 -0
- package/dist/dist-js-BlNPHicQ.js.map +1 -0
- package/dist/index.css +2 -2
- package/dist/index.d.ts +2815 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8472 -7503
- package/dist/index.js.map +1 -1
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist-vite/index.d.mts +6 -0
- package/dist-vite/index.mjs +19 -0
- package/dist-vite/index.mjs.map +1 -0
- package/package.json +50 -42
- package/tailwind/index.ts +227 -0
- package/tailwind/safe-area.d.ts +4 -0
- package/README.md +0 -42
- package/dist/index2.js +0 -16
- package/dist/index2.js.map +0 -1
- package/dist/lib/components/DcAuthorIcon.vue.d.ts +0 -10
- package/dist/lib/components/DcAwait.vue.d.ts +0 -26
- package/dist/lib/components/DcContent.vue.d.ts +0 -47
- package/dist/lib/components/DcFloatPopup.vue.d.ts +0 -39
- package/dist/lib/components/DcImage.vue.d.ts +0 -1158
- package/dist/lib/components/DcImagedIcon.vue.d.ts +0 -10
- package/dist/lib/components/DcList.vue.d.ts +0 -61
- package/dist/lib/components/DcLoading.vue.d.ts +0 -18
- package/dist/lib/components/DcMarkdown/index.vue.d.ts +0 -14
- package/dist/lib/components/DcPopup.vue.d.ts +0 -39
- package/dist/lib/components/DcRouterTab.vue.d.ts +0 -33
- package/dist/lib/components/DcState.vue.d.ts +0 -27
- package/dist/lib/components/DcText.vue.d.ts +0 -8
- package/dist/lib/components/DcToggleIcon.vue.d.ts +0 -43
- package/dist/lib/components/DcVar.vue.d.ts +0 -23
- package/dist/lib/components/DcWaterfall.vue.d.ts +0 -61
- package/dist/lib/components/icons.d.ts +0 -6
- package/dist/lib/form/components/DcForm.vue.d.ts +0 -40
- package/dist/lib/form/components/DcFormCheckbox.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormDate.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormDateRange.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormItem.vue.d.ts +0 -21
- package/dist/lib/form/components/DcFormNumber.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormPairs.vue.d.ts +0 -19
- package/dist/lib/form/components/DcFormRadio.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormString.vue.d.ts +0 -13
- package/dist/lib/form/components/DcFormSwitch.vue.d.ts +0 -13
- package/dist/lib/form/functional.d.ts +0 -5
- package/dist/lib/form/row.d.ts +0 -73
- package/dist/lib/form/type.d.ts +0 -16
- package/dist/lib/index.d.ts +0 -45
- package/dist/lib/message/dialog.d.ts +0 -9
- package/dist/lib/message/download.d.ts +0 -13
- package/dist/lib/message/index.d.ts +0 -3
- package/dist/lib/message/loading.d.ts +0 -14
- package/dist/lib/utils/image.d.ts +0 -5
- package/dist/lib/utils/index.d.ts +0 -4
- package/dist/lib/utils/layout.d.ts +0 -18
- package/dist/lib/utils/type.d.ts +0 -6
- package/dist/pack.tgz +0 -0
- package/dist/vite/index.d.ts +0 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.defineProperty, t = (t, n) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var i in t) e(r, i, {
|
|
5
|
+
get: t[i],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region package.json
|
|
2
|
+
var name = "@delta-comic/ui";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region vite/index.ts
|
|
5
|
+
function DeltaComicUiResolver() {
|
|
6
|
+
return {
|
|
7
|
+
type: "component",
|
|
8
|
+
resolve: (name$1) => {
|
|
9
|
+
if (name$1.match(/^(Dc[A-Z]|dc-[a-z])/)) return {
|
|
10
|
+
name: name$1,
|
|
11
|
+
from: name
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { DeltaComicUiResolver };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["name","pkgName"],"sources":["../package.json","../vite/index.ts"],"sourcesContent":["","import type { ComponentResolver } from 'unplugin-vue-components'\n\nimport { name as pkgName } from '../package.json'\n\nexport function DeltaComicUiResolver(): ComponentResolver {\n return {\n type: 'component',\n resolve: (name: string) => {\n if (name.match(/^(Dc[A-Z]|dc-[a-z])/)) return { name, from: pkgName }\n return\n },\n }\n}"],"mappings":";;;;ACIA,SAAgB,uBAA0C;CACxD,OAAO;EACL,MAAM;EACN,UAAU,WAAiB;GACzB,IAAIA,OAAK,MAAM,qBAAqB,GAAG,OAAO;IAAE,MAAA;IAAM,MAAMC;GAAQ;EAEtE;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delta-comic/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-next.10",
|
|
4
4
|
"description": "空阙虱楼",
|
|
5
5
|
"homepage": "https://github.com/delta-comic/delta-comic",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -13,20 +13,26 @@
|
|
|
13
13
|
"url": "https://github.com/delta-comic/delta-comic.git"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"dist-vite",
|
|
18
|
+
"tailwind"
|
|
17
19
|
],
|
|
18
20
|
"type": "module",
|
|
19
21
|
"main": "./dist/index.js",
|
|
20
22
|
"module": "./dist/index.js",
|
|
21
|
-
"types": "./dist/
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
22
24
|
"exports": {
|
|
23
25
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
25
27
|
"import": "./dist/index.js"
|
|
26
28
|
},
|
|
27
29
|
"./vite": {
|
|
28
|
-
"types": "./dist
|
|
29
|
-
"import": "./dist/
|
|
30
|
+
"types": "./dist-vite/index.d.mts",
|
|
31
|
+
"import": "./dist-vite/index.mjs"
|
|
32
|
+
},
|
|
33
|
+
"./tailwind": {
|
|
34
|
+
"types": "./tailwind/index.ts",
|
|
35
|
+
"import": "./tailwind/index.ts"
|
|
30
36
|
},
|
|
31
37
|
"./style.css": "./dist/index.css"
|
|
32
38
|
},
|
|
@@ -34,53 +40,55 @@
|
|
|
34
40
|
"access": "public"
|
|
35
41
|
},
|
|
36
42
|
"dependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"@pinia/colada": "^1.1.0",
|
|
43
|
+
"@tauri-apps/api": "^2.11.1",
|
|
39
44
|
"@tauri-apps/plugin-shell": "^2.3.5",
|
|
40
|
-
"@
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"markdown-it": "^14.1.1",
|
|
45
|
+
"@vueuse/core": "^14.4.0",
|
|
46
|
+
"dayjs": "^2.0.0-alpha.4",
|
|
47
|
+
"es-toolkit": "^1.50.0",
|
|
48
|
+
"linkify-it": "^6.1.0",
|
|
49
|
+
"markdown-it": "^15.0.0",
|
|
46
50
|
"mitt": "^3.0.1",
|
|
47
|
-
"motion-v": "2.0
|
|
48
|
-
"
|
|
51
|
+
"motion-v": "2.3.0",
|
|
52
|
+
"swiper": "^14.0.7",
|
|
53
|
+
"tailwind-merge": "^3.6.0",
|
|
49
54
|
"tailwindcss-safe-area-capacitor": "^0.5.1",
|
|
50
|
-
"tlds": "^1.261.0"
|
|
55
|
+
"tlds": "^1.261.0",
|
|
56
|
+
"@delta-comic/logger": "3.0.0-next.10"
|
|
51
57
|
},
|
|
52
58
|
"devDependencies": {
|
|
53
|
-
"@tailwindcss/vite": "^4.
|
|
59
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
54
60
|
"@types/linkify-it": "^5.0.0",
|
|
55
61
|
"@types/markdown-it": "^14.1.2",
|
|
56
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
57
|
-
"@vitejs/plugin-vue-jsx": "^5.1.
|
|
58
|
-
"browserslist": "^4.28.
|
|
59
|
-
"lightningcss": "^1.
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"vite
|
|
64
|
-
"
|
|
62
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
63
|
+
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
64
|
+
"browserslist": "^4.28.7",
|
|
65
|
+
"lightningcss": "^1.33.0",
|
|
66
|
+
"rolldown-plugin-dts": "^0.28.0",
|
|
67
|
+
"tailwindcss": "^4.3.3",
|
|
68
|
+
"unplugin-vue-components": "32.1.0",
|
|
69
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
70
|
+
"vite-plus": "^0.2.7",
|
|
71
|
+
"vue-component-type-helpers": "^3.3.9",
|
|
72
|
+
"vue-tsc": "^3.3.3"
|
|
65
73
|
},
|
|
66
74
|
"peerDependencies": {
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"vue
|
|
72
|
-
"
|
|
73
|
-
"@delta-comic/model": "
|
|
74
|
-
"@delta-comic/utils": "
|
|
75
|
-
},
|
|
76
|
-
"release": {
|
|
77
|
-
"tagFormat": "ui-${version}"
|
|
75
|
+
"@pinia/colada": "^1.4.2",
|
|
76
|
+
"naive-ui": "^2.44.1",
|
|
77
|
+
"pinia": "^4.0.2",
|
|
78
|
+
"tailwindcss": "^4.3.3",
|
|
79
|
+
"vue": "^3.6.0-rc.2",
|
|
80
|
+
"vue-router": "^5.2.0",
|
|
81
|
+
"@delta-comic/model": "3.0.0-next.10",
|
|
82
|
+
"@delta-comic/utils": "3.0.0-next.10"
|
|
78
83
|
},
|
|
79
|
-
"
|
|
80
|
-
"
|
|
84
|
+
"peerDependenciesMeta": {
|
|
85
|
+
"tailwindcss": {
|
|
86
|
+
"optional": true
|
|
87
|
+
}
|
|
81
88
|
},
|
|
82
|
-
"readme": "./README.md",
|
|
83
89
|
"scripts": {
|
|
84
|
-
"build": "vp build &&
|
|
90
|
+
"build": "vp build && vp pack",
|
|
91
|
+
"dev": "vp dev",
|
|
92
|
+
"typecheck": "vue-tsc -p tsconfig.app.json --noEmit && tsc -p tsconfig.node.json --noEmit"
|
|
85
93
|
}
|
|
86
94
|
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import safeArea from 'tailwindcss-safe-area-capacitor'
|
|
2
|
+
import plugin, { type PluginWithConfig } from 'tailwindcss/plugin'
|
|
3
|
+
|
|
4
|
+
const interactiveUtility = {
|
|
5
|
+
'cursor': 'pointer',
|
|
6
|
+
'WebkitTapHighlightColor': 'transparent',
|
|
7
|
+
'&:active': { opacity: '0.72' },
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const hairlineAfter = {
|
|
11
|
+
pointerEvents: 'none',
|
|
12
|
+
position: 'absolute',
|
|
13
|
+
boxSizing: 'border-box',
|
|
14
|
+
borderColor: 'var(--dc-color-border)',
|
|
15
|
+
borderStyle: 'solid',
|
|
16
|
+
content: '""',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const DeltaComicTailwindPlugin: PluginWithConfig = plugin(
|
|
20
|
+
({ addBase, addUtilities }) => {
|
|
21
|
+
addBase({
|
|
22
|
+
':root, :host, body': {
|
|
23
|
+
'--safe-area-inset-top': '0px',
|
|
24
|
+
'--safe-area-inset-right': '0px',
|
|
25
|
+
'--safe-area-inset-bottom': '0px',
|
|
26
|
+
'--safe-area-inset-left': '0px',
|
|
27
|
+
'--dc-background': 'var(--nui-body-color, #f7f8fa)',
|
|
28
|
+
'--dc-surface': 'var(--nui-card-color, #ffffff)',
|
|
29
|
+
'--dc-text': 'var(--nui-text-color-1, #323233)',
|
|
30
|
+
'--dc-text-secondary': 'var(--nui-text-color-2, #969799)',
|
|
31
|
+
'--dc-text-tertiary': 'var(--nui-text-color-3, #c8c9cc)',
|
|
32
|
+
'--dc-border': 'var(--nui-divider-color, #ebedf0)',
|
|
33
|
+
'--dc-overlay': 'rgb(0 0 0 / 48%)',
|
|
34
|
+
'--dc-error': 'var(--nui-error-color, #ee0a24)',
|
|
35
|
+
'--dc-gray-1': 'var(--nui-hover-color, #f2f3f5)',
|
|
36
|
+
'--dc-gray-6': '#969799',
|
|
37
|
+
'--dc-gray-7': '#646566',
|
|
38
|
+
'--dc-navigation-height': '72px',
|
|
39
|
+
'--dc-desktop-navigation-width': '88px',
|
|
40
|
+
'--dc-page-header-height': '52px',
|
|
41
|
+
'--dc-tabs-height': '44px',
|
|
42
|
+
'--dc-tabs-padding-bottom': '10px',
|
|
43
|
+
'--dc-content-padding': '16px',
|
|
44
|
+
'--bili-blue': '#00aeec',
|
|
45
|
+
'--dc-color-page': 'var(--dc-background)',
|
|
46
|
+
'--dc-color-surface': 'var(--dc-surface)',
|
|
47
|
+
'--dc-color-text': 'var(--dc-text)',
|
|
48
|
+
'--dc-color-text-secondary': 'var(--dc-text-secondary)',
|
|
49
|
+
'--dc-color-text-tertiary': 'var(--dc-text-tertiary)',
|
|
50
|
+
'--dc-color-border': 'var(--dc-border)',
|
|
51
|
+
'--dc-color-active': 'var(--dc-gray-1)',
|
|
52
|
+
'--dc-color-overlay': 'var(--dc-overlay)',
|
|
53
|
+
'--dc-color-danger': 'var(--dc-error)',
|
|
54
|
+
'--dc-color-primary': 'var(--p-color, var(--nui-primary-color, #1989fa))',
|
|
55
|
+
'--dc-color-icon': 'var(--dc-text-tertiary)',
|
|
56
|
+
'--dc-font-size-sm': '12px',
|
|
57
|
+
'--dc-font-size-md': '14px',
|
|
58
|
+
'--dc-font-size-lg': '16px',
|
|
59
|
+
'--dc-line-height-sm': '18px',
|
|
60
|
+
'--dc-line-height-md': '24px',
|
|
61
|
+
'--dc-space-1': '4px',
|
|
62
|
+
'--dc-space-2': '8px',
|
|
63
|
+
'--dc-space-3': '12px',
|
|
64
|
+
'--dc-space-4': '16px',
|
|
65
|
+
'--dc-radius-lg': '8px',
|
|
66
|
+
'--dc-duration-fast': '200ms',
|
|
67
|
+
'--dc-duration-base': '300ms',
|
|
68
|
+
|
|
69
|
+
// Transitional aliases for plugin-authored styles.
|
|
70
|
+
'--dc-background-2': 'var(--dc-surface)',
|
|
71
|
+
'--dc-black': 'var(--dc-overlay)',
|
|
72
|
+
'--dc-text-color': 'var(--dc-text)',
|
|
73
|
+
'--dc-text-color-2': 'var(--dc-text-secondary)',
|
|
74
|
+
'--dc-text-color-3': 'var(--dc-text-tertiary)',
|
|
75
|
+
'--dc-danger-color': 'var(--dc-error)',
|
|
76
|
+
'--dc-tabs-line-height': 'var(--dc-tabs-height)',
|
|
77
|
+
'--dc-cell-group-inset-padding': 'var(--dc-content-padding)',
|
|
78
|
+
},
|
|
79
|
+
":root[data-theme='light'], :root[data-theme='light'] body": {
|
|
80
|
+
'--dc-background': '#f5f5f7',
|
|
81
|
+
'--dc-surface': '#ffffff',
|
|
82
|
+
'--dc-text': '#1f2329',
|
|
83
|
+
'--dc-text-secondary': '#646a73',
|
|
84
|
+
'--dc-text-tertiary': '#8f959e',
|
|
85
|
+
'--dc-border': 'rgb(31 35 41 / 10%)',
|
|
86
|
+
'--dc-overlay': 'rgb(0 0 0 / 48%)',
|
|
87
|
+
'--dc-error': '#d03050',
|
|
88
|
+
'--dc-gray-1': '#f7f8fa',
|
|
89
|
+
'--dc-gray-6': '#969799',
|
|
90
|
+
'--dc-gray-7': '#646566',
|
|
91
|
+
'--p-color': '#fb7299',
|
|
92
|
+
},
|
|
93
|
+
":root[data-theme='dark'], :root[data-theme='dark'] body": {
|
|
94
|
+
'--dc-background': '#101113',
|
|
95
|
+
'--dc-surface': '#17181a',
|
|
96
|
+
'--dc-text': '#f2f3f5',
|
|
97
|
+
'--dc-text-secondary': '#b7bbc2',
|
|
98
|
+
'--dc-text-tertiary': '#8c9199',
|
|
99
|
+
'--dc-border': 'rgb(255 255 255 / 10%)',
|
|
100
|
+
'--dc-overlay': 'rgb(0 0 0 / 64%)',
|
|
101
|
+
'--dc-gray-1': '#202226',
|
|
102
|
+
'--dc-gray-6': '#a1a5ac',
|
|
103
|
+
'--dc-gray-7': '#c2c5ca',
|
|
104
|
+
'--dc-error': '#d03050',
|
|
105
|
+
'--p-color': '#fb7299',
|
|
106
|
+
},
|
|
107
|
+
'*': { boxSizing: 'border-box', userSelect: 'none', WebkitUserSelect: 'none' },
|
|
108
|
+
'html, body': { overflow: 'hidden !important' },
|
|
109
|
+
'body': {
|
|
110
|
+
margin: '0',
|
|
111
|
+
background: 'var(--dc-background)',
|
|
112
|
+
color: 'var(--dc-text)',
|
|
113
|
+
fontFamily: 'var(--nui-font-family, system-ui, sans-serif)',
|
|
114
|
+
WebkitFontSmoothing: 'antialiased',
|
|
115
|
+
MozOsxFontSmoothing: 'grayscale',
|
|
116
|
+
},
|
|
117
|
+
'input::-webkit-search-cancel-button': { display: 'none' },
|
|
118
|
+
'@media (min-width: 60rem)': { ':root, :host, body': { '--dc-content-padding': '24px' } },
|
|
119
|
+
'.v-binder-follower-container': { zIndex: '1000000 !important' },
|
|
120
|
+
'#messages': {
|
|
121
|
+
'position': 'fixed',
|
|
122
|
+
'zIndex': '2147483647',
|
|
123
|
+
'inset': '0',
|
|
124
|
+
'width': '100vw',
|
|
125
|
+
'height': '100vh',
|
|
126
|
+
'pointerEvents': 'none',
|
|
127
|
+
'*': { pointerEvents: 'all' },
|
|
128
|
+
},
|
|
129
|
+
'* .n-progress-graph-line-indicator': { display: 'none !important' },
|
|
130
|
+
'.list-move, .list-enter-active, .list-leave-active': {
|
|
131
|
+
transition: 'transform 420ms cubic-bezier(0.22, 1.5, 0.5, 1), opacity 240ms ease-out',
|
|
132
|
+
willChange: 'transform, opacity',
|
|
133
|
+
},
|
|
134
|
+
'.list-enter-from, .list-leave-to': { opacity: '0', transform: 'translateY(30px)' },
|
|
135
|
+
'.list-leave-active': { position: 'absolute' },
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
addUtilities({
|
|
139
|
+
'.dc-interactive': interactiveUtility,
|
|
140
|
+
'.dc-haptics-feedback': interactiveUtility,
|
|
141
|
+
'.dc-ellipsis': { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' },
|
|
142
|
+
'.dc-clamp-2': {
|
|
143
|
+
display: '-webkit-box',
|
|
144
|
+
overflow: 'hidden',
|
|
145
|
+
WebkitBoxOrient: 'vertical',
|
|
146
|
+
WebkitLineClamp: '2',
|
|
147
|
+
},
|
|
148
|
+
'.dc-scrollbar-hidden': {
|
|
149
|
+
'scrollbarWidth': 'none',
|
|
150
|
+
'&::-webkit-scrollbar': { display: 'none' },
|
|
151
|
+
},
|
|
152
|
+
'.dc-hairline': {
|
|
153
|
+
'position': 'relative',
|
|
154
|
+
'&::after': { ...hairlineAfter, inset: '-50%', scale: '0.5', borderWidth: '1px' },
|
|
155
|
+
},
|
|
156
|
+
'.dc-hairline-surround': {
|
|
157
|
+
'position': 'relative',
|
|
158
|
+
'&::after': { ...hairlineAfter, inset: '-50%', scale: '0.5', borderWidth: '1px' },
|
|
159
|
+
},
|
|
160
|
+
'.dc-hairline-top': {
|
|
161
|
+
'position': 'relative',
|
|
162
|
+
'&::after': {
|
|
163
|
+
...hairlineAfter,
|
|
164
|
+
inset: '0 0 auto',
|
|
165
|
+
scale: '1 0.5',
|
|
166
|
+
transformOrigin: 'top',
|
|
167
|
+
borderWidth: '1px 0 0',
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
'.dc-hairline-bottom': {
|
|
171
|
+
'position': 'relative',
|
|
172
|
+
'&::after': {
|
|
173
|
+
...hairlineAfter,
|
|
174
|
+
inset: 'auto 0 0',
|
|
175
|
+
scale: '1 0.5',
|
|
176
|
+
transformOrigin: 'bottom',
|
|
177
|
+
borderWidth: '0 0 1px',
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
'.dc-hairline-left': {
|
|
181
|
+
'position': 'relative',
|
|
182
|
+
'&::after': {
|
|
183
|
+
...hairlineAfter,
|
|
184
|
+
inset: '0 auto 0 0',
|
|
185
|
+
scale: '0.5 1',
|
|
186
|
+
transformOrigin: 'left',
|
|
187
|
+
borderWidth: '0 0 0 1px',
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
'.dc-hairline-right': {
|
|
191
|
+
'position': 'relative',
|
|
192
|
+
'&::after': {
|
|
193
|
+
...hairlineAfter,
|
|
194
|
+
inset: '0 0 0 auto',
|
|
195
|
+
scale: '0.5 1',
|
|
196
|
+
transformOrigin: 'right',
|
|
197
|
+
borderWidth: '0 1px 0 0',
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
'.dc-hairline-top-bottom': {
|
|
201
|
+
'position': 'relative',
|
|
202
|
+
'&::after': { ...hairlineAfter, inset: '-50% 0', scale: '1 0.5', borderWidth: '1px 0' },
|
|
203
|
+
},
|
|
204
|
+
})
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
plugins: [safeArea],
|
|
208
|
+
theme: {
|
|
209
|
+
extend: {
|
|
210
|
+
colors: {
|
|
211
|
+
'dc-page': 'var(--dc-color-page)',
|
|
212
|
+
'dc-surface': 'var(--dc-color-surface)',
|
|
213
|
+
'dc-text': 'var(--dc-color-text)',
|
|
214
|
+
'dc-text-secondary': 'var(--dc-color-text-secondary)',
|
|
215
|
+
'dc-text-tertiary': 'var(--dc-color-text-tertiary)',
|
|
216
|
+
'dc-border': 'var(--dc-color-border)',
|
|
217
|
+
'dc-overlay': 'var(--dc-color-overlay)',
|
|
218
|
+
'dc-danger': 'var(--dc-color-danger)',
|
|
219
|
+
'dc-primary': 'var(--dc-color-primary)',
|
|
220
|
+
},
|
|
221
|
+
screens: { desktop: '60rem' },
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
export default DeltaComicTailwindPlugin
|
package/README.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
```python
|
|
2
|
-
r"""
|
|
3
|
-
___________________________
|
|
4
|
-
/ ______\ | __ | | ____|
|
|
5
|
-
| | _____ | |__| | | |__
|
|
6
|
-
| | / _ \| __ \ | __|
|
|
7
|
-
| |___| |_| || | \ \| |____
|
|
8
|
-
\__________/|_| \________|
|
|
9
|
-
==============================
|
|
10
|
-
空阙虱楼 Copyright © Wenxig
|
|
11
|
-
"""
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
[](https://raw.githubusercontent.com/delta-comic/delta-comic-core/main/LICENSE)
|
|
15
|
-
[](https://www.npmjs.com/package/delta-comic-core)
|
|
16
|
-
|
|
17
|
-
- 工具库
|
|
18
|
-
|
|
19
|
-
## 功能
|
|
20
|
-
|
|
21
|
-
- 辅助编写插件
|
|
22
|
-
- 提供通用数据结构与默认样式
|
|
23
|
-
|
|
24
|
-
## 如何使用
|
|
25
|
-
|
|
26
|
-
```sh
|
|
27
|
-
pnpm add delta-comic-core
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## 为谁编写插件?
|
|
31
|
-
|
|
32
|
-
[](https://github.com/delta-comic/delta-comic)
|
|
33
|
-
|
|
34
|
-
## 辅助的插件
|
|
35
|
-
|
|
36
|
-
### Layout
|
|
37
|
-
|
|
38
|
-
[](https://github.com/delta-comic/delta-comic-plugin-bika)
|
|
39
|
-
|
|
40
|
-
## Star History
|
|
41
|
-
|
|
42
|
-
[](https://www.star-history.com/#delta-comic/delta-comic-core&Date)
|
package/dist/index2.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//#region vite/index.ts
|
|
2
|
-
function e() {
|
|
3
|
-
return {
|
|
4
|
-
type: "component",
|
|
5
|
-
resolve: (e) => {
|
|
6
|
-
if (e.match(/^(Dc[A-Z]|dc-[a-z])/)) return {
|
|
7
|
-
name: e,
|
|
8
|
-
from: "@delta-comic/ui"
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { e as DeltaComicUiResolver };
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=index2.js.map
|
package/dist/index2.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import type { ComponentResolver } from 'unplugin-vue-components'\n\nexport function DeltaComicUiResolver(): ComponentResolver {\n return {\n type: 'component',\n resolve: (name: string) => {\n if (name.match(/^(Dc[A-Z]|dc-[a-z])/)) return { name, from: '@delta-comic/ui' }\n }\n }\n}"],"mappings":";AAEA,SAAgB,IAA0C;AACxD,QAAO;EACL,MAAM;EACN,UAAU,MAAiB;AACzB,OAAI,EAAK,MAAM,sBAAsB,CAAE,QAAO;IAAE;IAAM,MAAM;IAAmB;;EAElF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { uni } from '@delta-comic/model';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
author: {
|
|
4
|
-
$$plugin: string;
|
|
5
|
-
icon: string | uni.resource.RawResource | uni.image.RawImage;
|
|
6
|
-
};
|
|
7
|
-
sizeSpacing: number;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: <T extends PromiseLike<unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
3
|
-
promise: () => T;
|
|
4
|
-
autoLoad?: boolean;
|
|
5
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
6
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
7
|
-
attrs: any;
|
|
8
|
-
slots: Readonly<{
|
|
9
|
-
default(arg: {
|
|
10
|
-
result: Awaited<T> | undefined;
|
|
11
|
-
load: () => Promise<T>;
|
|
12
|
-
}): any;
|
|
13
|
-
}> & {
|
|
14
|
-
default(arg: {
|
|
15
|
-
result: Awaited<T> | undefined;
|
|
16
|
-
load: () => Promise<T>;
|
|
17
|
-
}): any;
|
|
18
|
-
};
|
|
19
|
-
emit: {};
|
|
20
|
-
}>) => import('vue').VNode & {
|
|
21
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_PrettifyLocal<T> = {
|
|
25
|
-
[K in keyof T]: T[K];
|
|
26
|
-
} & {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { UseInfiniteQueryReturn, UseQueryReturn } from '@pinia/colada';
|
|
2
|
-
import { StyleValue } from 'vue';
|
|
3
|
-
import { StyleProps } from '../utils';
|
|
4
|
-
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & ({
|
|
6
|
-
hideError?: boolean;
|
|
7
|
-
hideEmpty?: boolean;
|
|
8
|
-
hideLoading?: boolean;
|
|
9
|
-
source: {
|
|
10
|
-
type: "query";
|
|
11
|
-
query: UseQueryReturn<T, any, any>;
|
|
12
|
-
} | {
|
|
13
|
-
type: "infinite";
|
|
14
|
-
stream: UseInfiniteQueryReturn<T, any, any>;
|
|
15
|
-
} | {
|
|
16
|
-
type: "raw";
|
|
17
|
-
data: T;
|
|
18
|
-
isLoading: boolean;
|
|
19
|
-
error?: Error | null;
|
|
20
|
-
refetch?: () => any;
|
|
21
|
-
};
|
|
22
|
-
classError?: any;
|
|
23
|
-
classEmpty?: any;
|
|
24
|
-
styleError?: StyleValue;
|
|
25
|
-
styleEmpty?: StyleValue;
|
|
26
|
-
} & StyleProps) & Partial<{}>> & import('vue').PublicProps;
|
|
27
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
28
|
-
cont: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
29
|
-
}>): void;
|
|
30
|
-
attrs: any;
|
|
31
|
-
slots: Readonly<{
|
|
32
|
-
default(data: {
|
|
33
|
-
data?: T;
|
|
34
|
-
}): any;
|
|
35
|
-
}> & {
|
|
36
|
-
default(data: {
|
|
37
|
-
data?: T;
|
|
38
|
-
}): any;
|
|
39
|
-
};
|
|
40
|
-
emit: {};
|
|
41
|
-
}>) => import('vue').VNode & {
|
|
42
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
43
|
-
};
|
|
44
|
-
export default _default;
|
|
45
|
-
type __VLS_PrettifyLocal<T> = {
|
|
46
|
-
[K in keyof T]: T[K];
|
|
47
|
-
} & {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { StyleProps } from '../utils';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
anchors?: 'high' | 'low' | number[];
|
|
4
|
-
lockScroll?: boolean;
|
|
5
|
-
overlay?: boolean;
|
|
6
|
-
contentDraggable?: boolean;
|
|
7
|
-
} & StyleProps;
|
|
8
|
-
declare function __VLS_template(): {
|
|
9
|
-
attrs: Partial<{}>;
|
|
10
|
-
slots: Readonly<{
|
|
11
|
-
default(arg: {
|
|
12
|
-
height: number;
|
|
13
|
-
}): void;
|
|
14
|
-
}> & {
|
|
15
|
-
default(arg: {
|
|
16
|
-
height: number;
|
|
17
|
-
}): void;
|
|
18
|
-
};
|
|
19
|
-
refs: {};
|
|
20
|
-
rootEl: any;
|
|
21
|
-
};
|
|
22
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
24
|
-
show(node?: number): void;
|
|
25
|
-
close(): void;
|
|
26
|
-
isShowing: Readonly<import('vue').ShallowRef<boolean, boolean>>;
|
|
27
|
-
height: Readonly<import('vue').ShallowRef<number, number>>;
|
|
28
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
|
-
anchors: "high" | "low" | number[];
|
|
30
|
-
lockScroll: boolean;
|
|
31
|
-
contentDraggable: boolean;
|
|
32
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
|
-
export default _default;
|
|
35
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
-
new (): {
|
|
37
|
-
$slots: S;
|
|
38
|
-
};
|
|
39
|
-
};
|