@composy/keyboard-vue 0.0.1 → 0.0.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.
- package/README.md +48 -24
- package/dist/index.css +552 -560
- package/dist/index.js +228 -192
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.min.js +954 -1
- package/dist/index.min.js.map +1 -0
- package/es/.dts-output-manifest.json +1 -0
- package/es/.dts.tsbuildinfo +1 -0
- package/es/components/KeyboardKey.js +1 -1
- package/es/components/KeyboardKey.js.map +1 -1
- package/es/components/KeyboardKey.vue_vue_type_script_setup_true_lang.js +16 -7
- package/es/components/KeyboardKey.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/es/components/KeyboardPopup.js +1 -1
- package/es/components/KeyboardPopup.js.map +1 -1
- package/es/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.js +8 -5
- package/es/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/es/components/LicensePlateKeyboard.js +1 -1
- package/es/components/LicensePlateKeyboard.js.map +1 -1
- package/es/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/es/components/VirtualKeyboard.js +1 -1
- package/es/components/VirtualKeyboard.js.map +1 -1
- package/es/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.d.ts.map +1 -1
- package/es/components/index.js +1 -1
- package/es/composables/index.d.ts +0 -1
- package/es/composables/index.js +1 -1
- package/es/composables/useKeyboard.d.ts +1 -2
- package/es/composables/useKeyboard.d.ts.map +1 -1
- package/es/composables/useKeyboard.js +8 -15
- package/es/composables/useKeyboard.js.map +1 -1
- package/es/composables/useKeyboardPopup.d.ts +2 -51
- package/es/composables/useKeyboardPopup.d.ts.map +1 -1
- package/es/composables/useKeyboardPopup.js +66 -49
- package/es/composables/useKeyboardPopup.js.map +1 -1
- package/es/directives/index.d.ts +0 -1
- package/es/directives/index.js +1 -1
- package/es/directives/v-keyboard.d.ts +0 -1
- package/es/directives/v-keyboard.d.ts.map +1 -1
- package/es/directives/v-keyboard.js +10 -11
- package/es/directives/v-keyboard.js.map +1 -1
- package/es/index.d.ts +3 -4
- package/es/index.d.ts.map +1 -1
- package/es/index.js +2 -5
- package/es/index.js.map +1 -1
- package/es/plugins/engine-plugin.d.ts +0 -1
- package/es/plugins/engine-plugin.d.ts.map +1 -1
- package/es/plugins/engine-plugin.js +19 -4
- package/es/plugins/engine-plugin.js.map +1 -1
- package/es/plugins/index.d.ts +0 -1
- package/es/plugins/index.js +1 -1
- package/es/style/css.js +1 -1
- package/es/style/index.css +2 -0
- package/es/style/index.js +1 -1
- package/es/styles/index.css +391 -0
- package/es/styles/keyboard.css +252 -0
- package/es/styles/themes.css +137 -0
- package/esm/components/KeyboardKey.js +17 -0
- package/esm/components/KeyboardKey.js.map +1 -0
- package/esm/components/KeyboardKey.vue_vue_type_script_setup_true_lang.js +140 -0
- package/esm/components/KeyboardKey.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/esm/components/KeyboardPopup.js +17 -0
- package/esm/components/KeyboardPopup.js.map +1 -0
- package/esm/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.js +167 -0
- package/esm/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/esm/components/LicensePlateKeyboard.js +17 -0
- package/esm/components/LicensePlateKeyboard.js.map +1 -0
- package/esm/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.js +97 -0
- package/esm/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/esm/components/VirtualKeyboard.js +17 -0
- package/esm/components/VirtualKeyboard.js.map +1 -0
- package/esm/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.js +127 -0
- package/esm/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/{lib → esm}/components/index.d.ts +1 -1
- package/esm/components/index.d.ts.map +1 -0
- package/esm/components/index.js +15 -0
- package/esm/composables/index.d.ts.map +1 -0
- package/esm/composables/index.js +13 -0
- package/{lib → esm}/composables/useKeyboard.d.ts +1 -1
- package/esm/composables/useKeyboard.d.ts.map +1 -0
- package/esm/composables/useKeyboard.js +68 -0
- package/esm/composables/useKeyboard.js.map +1 -0
- package/esm/composables/useKeyboardPopup.d.ts +25 -0
- package/esm/composables/useKeyboardPopup.d.ts.map +1 -0
- package/esm/composables/useKeyboardPopup.js +136 -0
- package/esm/composables/useKeyboardPopup.js.map +1 -0
- package/esm/directives/index.d.ts.map +1 -0
- package/esm/directives/index.js +12 -0
- package/esm/directives/v-keyboard.d.ts.map +1 -0
- package/esm/directives/v-keyboard.js +64 -0
- package/esm/directives/v-keyboard.js.map +1 -0
- package/esm/index.d.ts +42 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +34 -0
- package/esm/index.js.map +1 -0
- package/esm/plugins/engine-plugin.d.ts.map +1 -0
- package/esm/plugins/engine-plugin.js +53 -0
- package/esm/plugins/engine-plugin.js.map +1 -0
- package/esm/plugins/index.d.ts.map +1 -0
- package/esm/plugins/index.js +12 -0
- package/esm/style/css.js +1 -0
- package/esm/style/index.js +1 -0
- package/{es → esm}/style/index.less +1 -1
- package/esm/styles/index.less +5 -0
- package/esm/styles/keyboard.less +286 -0
- package/esm/styles/themes.less +164 -0
- package/lib/components/KeyboardKey.cjs +1 -1
- package/lib/components/KeyboardKey.cjs.map +1 -1
- package/lib/components/KeyboardKey.vue_vue_type_script_setup_true_lang.cjs +16 -7
- package/lib/components/KeyboardKey.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/lib/components/KeyboardPopup.cjs +1 -1
- package/lib/components/KeyboardPopup.cjs.map +1 -1
- package/lib/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.cjs +8 -5
- package/lib/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/lib/components/LicensePlateKeyboard.cjs +1 -1
- package/lib/components/LicensePlateKeyboard.cjs.map +1 -1
- package/lib/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/lib/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/lib/components/VirtualKeyboard.cjs +1 -1
- package/lib/components/VirtualKeyboard.cjs.map +1 -1
- package/lib/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.cjs +4 -4
- package/lib/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.cts +8 -0
- package/lib/components/index.d.cts.map +1 -0
- package/lib/composables/index.cjs +1 -1
- package/lib/composables/index.d.cts +6 -0
- package/lib/composables/index.d.cts.map +1 -0
- package/lib/composables/useKeyboard.cjs +8 -15
- package/lib/composables/useKeyboard.cjs.map +1 -1
- package/lib/composables/useKeyboard.d.cts +112 -0
- package/lib/composables/useKeyboard.d.cts.map +1 -0
- package/lib/composables/useKeyboardPopup.cjs +66 -49
- package/lib/composables/useKeyboardPopup.cjs.map +1 -1
- package/lib/composables/useKeyboardPopup.d.cts +24 -0
- package/lib/composables/useKeyboardPopup.d.cts.map +1 -0
- package/lib/directives/index.cjs +1 -1
- package/lib/directives/index.d.cts +5 -0
- package/lib/directives/index.d.cts.map +1 -0
- package/lib/directives/v-keyboard.cjs +10 -11
- package/lib/directives/v-keyboard.cjs.map +1 -1
- package/lib/directives/v-keyboard.d.cts +35 -0
- package/lib/directives/v-keyboard.d.cts.map +1 -0
- package/lib/index.cjs +2 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +41 -0
- package/lib/index.d.cts.map +1 -0
- package/lib/plugins/engine-plugin.cjs +19 -3
- package/lib/plugins/engine-plugin.cjs.map +1 -1
- package/lib/plugins/engine-plugin.d.cts +36 -0
- package/lib/plugins/engine-plugin.d.cts.map +1 -0
- package/lib/plugins/index.cjs +1 -1
- package/lib/plugins/index.d.cts +5 -0
- package/lib/plugins/index.d.cts.map +1 -0
- package/lib/style/index.css +1 -1
- package/lib/styles/index.css +357 -195
- package/lib/styles/keyboard.css +92 -186
- package/lib/styles/themes.css +102 -178
- package/package.json +43 -34
- package/es/styles/index.less +0 -267
- package/es/styles/keyboard.less +0 -399
- package/es/styles/themes.less +0 -233
- package/lib/composables/useKeyboardPopup.d.ts +0 -73
- package/lib/index.d.ts +0 -42
- /package/{lib → esm}/composables/index.d.ts +0 -0
- /package/{lib → esm}/directives/index.d.ts +0 -0
- /package/{lib → esm}/directives/v-keyboard.d.ts +0 -0
- /package/{lib → esm}/plugins/engine-plugin.d.ts +0 -0
- /package/{lib → esm}/plugins/index.d.ts +0 -0
package/lib/styles/themes.css
CHANGED
|
@@ -1,213 +1,137 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Keyboard theme tokens.
|
|
3
|
+
* Theme values intentionally reference the shared LDesign color and size runtime.
|
|
4
4
|
*/
|
|
5
|
-
/* ====================
|
|
6
|
-
MIUI 主题 - 小米风格(默认)
|
|
7
|
-
==================== */
|
|
8
5
|
[data-theme="miui"],
|
|
9
6
|
.keyboard-theme-miui {
|
|
10
|
-
--keyboard-bg:
|
|
11
|
-
--keyboard-key-bg:
|
|
12
|
-
--keyboard-key-color:
|
|
13
|
-
--keyboard-key-active-bg:
|
|
14
|
-
--keyboard-fn-key-bg:
|
|
15
|
-
--keyboard-fn-key-color:
|
|
16
|
-
--keyboard-fn-key-active-bg:
|
|
17
|
-
--keyboard-primary-bg:
|
|
18
|
-
--keyboard-primary-active-bg:
|
|
19
|
-
--keyboard-primary-color:
|
|
20
|
-
--keyboard-
|
|
21
|
-
--keyboard-key-
|
|
22
|
-
--keyboard-key-
|
|
23
|
-
--keyboard-
|
|
24
|
-
--keyboard-
|
|
25
|
-
--keyboard-
|
|
26
|
-
--keyboard-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.keyboard-theme-miui .keyboard-key {
|
|
30
|
-
font-weight: 500;
|
|
7
|
+
--keyboard-bg: var(--ld-bg-surface);
|
|
8
|
+
--keyboard-key-bg: var(--ld-bg-container);
|
|
9
|
+
--keyboard-key-color: var(--ld-text-primary);
|
|
10
|
+
--keyboard-key-active-bg: var(--ld-warning-50);
|
|
11
|
+
--keyboard-fn-key-bg: var(--ld-bg-elevated);
|
|
12
|
+
--keyboard-fn-key-color: var(--ld-text-secondary);
|
|
13
|
+
--keyboard-fn-key-active-bg: var(--ld-warning-100);
|
|
14
|
+
--keyboard-primary-bg: var(--ld-warning-500);
|
|
15
|
+
--keyboard-primary-active-bg: var(--ld-warning-600);
|
|
16
|
+
--keyboard-primary-color: var(--ld-text-inverse);
|
|
17
|
+
--keyboard-mask-bg: color-mix(in srgb, var(--ld-black) 40%, var(--ld-transparent));
|
|
18
|
+
--keyboard-key-border: var(--ld-border);
|
|
19
|
+
--keyboard-key-radius: var(--ld-radius-md);
|
|
20
|
+
--keyboard-key-gap: var(--ld-spacing-sm);
|
|
21
|
+
--keyboard-key-height: var(--ld-px-48);
|
|
22
|
+
--keyboard-font-size: var(--ld-font-lg);
|
|
23
|
+
--keyboard-fn-font-size: var(--ld-font-sm);
|
|
24
|
+
--keyboard-padding: var(--ld-spacing-sm);
|
|
25
|
+
--keyboard-key-shadow: var(--ld-shadow-sm, none);
|
|
31
26
|
}
|
|
32
|
-
/* ====================
|
|
33
|
-
iOS 主题 - 苹果风格
|
|
34
|
-
==================== */
|
|
35
27
|
[data-theme="ios"],
|
|
36
28
|
.keyboard-theme-ios {
|
|
37
|
-
--keyboard-bg:
|
|
38
|
-
--keyboard-key-bg:
|
|
39
|
-
--keyboard-key-color:
|
|
40
|
-
--keyboard-key-active-bg:
|
|
41
|
-
--keyboard-key-
|
|
42
|
-
--keyboard-fn-key-
|
|
43
|
-
--keyboard-fn-key-
|
|
44
|
-
--keyboard-
|
|
45
|
-
--keyboard-primary-bg:
|
|
46
|
-
--keyboard-primary-
|
|
47
|
-
--keyboard-
|
|
48
|
-
--keyboard-key-
|
|
49
|
-
--keyboard-key-
|
|
50
|
-
--keyboard-key-
|
|
51
|
-
--keyboard-
|
|
52
|
-
--keyboard-
|
|
53
|
-
--keyboard-
|
|
54
|
-
--keyboard-
|
|
55
|
-
|
|
56
|
-
[data-theme="ios"] .keyboard-key,
|
|
57
|
-
.keyboard-theme-ios .keyboard-key {
|
|
58
|
-
font-weight: 400;
|
|
29
|
+
--keyboard-bg: var(--ld-bg-surface);
|
|
30
|
+
--keyboard-key-bg: var(--ld-bg-container);
|
|
31
|
+
--keyboard-key-color: var(--ld-text-primary);
|
|
32
|
+
--keyboard-key-active-bg: var(--ld-primary-50);
|
|
33
|
+
--keyboard-fn-key-bg: var(--ld-bg-elevated);
|
|
34
|
+
--keyboard-fn-key-color: var(--ld-text-primary);
|
|
35
|
+
--keyboard-fn-key-active-bg: var(--ld-primary-100);
|
|
36
|
+
--keyboard-primary-bg: var(--ld-primary-500);
|
|
37
|
+
--keyboard-primary-active-bg: var(--ld-primary-600);
|
|
38
|
+
--keyboard-primary-color: var(--ld-text-inverse);
|
|
39
|
+
--keyboard-mask-bg: color-mix(in srgb, var(--ld-black) 40%, var(--ld-transparent));
|
|
40
|
+
--keyboard-key-border: var(--ld-border);
|
|
41
|
+
--keyboard-key-radius: var(--ld-radius-sm);
|
|
42
|
+
--keyboard-key-gap: var(--ld-spacing-sm);
|
|
43
|
+
--keyboard-key-height: var(--ld-px-42);
|
|
44
|
+
--keyboard-font-size: var(--ld-font-xl);
|
|
45
|
+
--keyboard-fn-font-size: var(--ld-font-base);
|
|
46
|
+
--keyboard-padding: var(--ld-spacing-xs);
|
|
47
|
+
--keyboard-key-shadow: var(--ld-shadow-sm, none);
|
|
59
48
|
}
|
|
60
|
-
[data-theme="ios"] .keyboard-key:active,
|
|
61
|
-
.keyboard-theme-ios .keyboard-key:active {
|
|
62
|
-
transform: none;
|
|
63
|
-
}
|
|
64
|
-
/* ====================
|
|
65
|
-
Material 主题 - 质感设计
|
|
66
|
-
==================== */
|
|
67
49
|
[data-theme="material"],
|
|
68
50
|
.keyboard-theme-material {
|
|
69
|
-
--keyboard-bg:
|
|
70
|
-
--keyboard-key-bg:
|
|
71
|
-
--keyboard-key-color:
|
|
72
|
-
--keyboard-key-active-bg:
|
|
73
|
-
--keyboard-fn-key-bg:
|
|
74
|
-
--keyboard-fn-key-color:
|
|
75
|
-
--keyboard-fn-key-active-bg:
|
|
76
|
-
--keyboard-primary-bg:
|
|
77
|
-
--keyboard-primary-active-bg:
|
|
78
|
-
--keyboard-primary-color:
|
|
79
|
-
--keyboard-
|
|
80
|
-
--keyboard-key-
|
|
81
|
-
--keyboard-key-
|
|
82
|
-
--keyboard-
|
|
83
|
-
--keyboard-
|
|
84
|
-
--keyboard-
|
|
85
|
-
--keyboard-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
.keyboard-theme-material .keyboard-key {
|
|
89
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
|
|
51
|
+
--keyboard-bg: var(--ld-bg-elevated);
|
|
52
|
+
--keyboard-key-bg: var(--ld-bg-container);
|
|
53
|
+
--keyboard-key-color: var(--ld-text-primary);
|
|
54
|
+
--keyboard-key-active-bg: var(--ld-success-50);
|
|
55
|
+
--keyboard-fn-key-bg: var(--ld-bg-surface);
|
|
56
|
+
--keyboard-fn-key-color: var(--ld-text-secondary);
|
|
57
|
+
--keyboard-fn-key-active-bg: var(--ld-success-100);
|
|
58
|
+
--keyboard-primary-bg: var(--ld-success-500);
|
|
59
|
+
--keyboard-primary-active-bg: var(--ld-success-600);
|
|
60
|
+
--keyboard-primary-color: var(--ld-text-inverse);
|
|
61
|
+
--keyboard-mask-bg: color-mix(in srgb, var(--ld-black) 40%, var(--ld-transparent));
|
|
62
|
+
--keyboard-key-border: var(--ld-border);
|
|
63
|
+
--keyboard-key-radius: var(--ld-radius-sm);
|
|
64
|
+
--keyboard-key-gap: var(--ld-spacing-xs);
|
|
65
|
+
--keyboard-key-height: var(--ld-px-48);
|
|
66
|
+
--keyboard-font-size: var(--ld-font-lg);
|
|
67
|
+
--keyboard-fn-font-size: var(--ld-font-sm);
|
|
68
|
+
--keyboard-padding: var(--ld-spacing-sm);
|
|
69
|
+
--keyboard-key-shadow: var(--ld-shadow-sm, none);
|
|
90
70
|
}
|
|
91
|
-
[data-theme="material"] .keyboard-key:active,
|
|
92
|
-
.keyboard-theme-material .keyboard-key:active {
|
|
93
|
-
transform: none;
|
|
94
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
95
|
-
}
|
|
96
|
-
/* ====================
|
|
97
|
-
Minimal 极简主题 - 无边框
|
|
98
|
-
==================== */
|
|
99
71
|
[data-theme="minimal"],
|
|
100
72
|
.keyboard-theme-minimal {
|
|
101
|
-
--keyboard-bg:
|
|
102
|
-
--keyboard-key-bg:
|
|
103
|
-
--keyboard-key-color:
|
|
104
|
-
--keyboard-key-active-bg:
|
|
105
|
-
--keyboard-fn-key-bg:
|
|
106
|
-
--keyboard-fn-key-color:
|
|
107
|
-
--keyboard-fn-key-active-bg:
|
|
108
|
-
--keyboard-primary-bg:
|
|
109
|
-
--keyboard-primary-active-bg:
|
|
110
|
-
--keyboard-primary-color:
|
|
111
|
-
--keyboard-key-
|
|
112
|
-
--keyboard-key-
|
|
113
|
-
--keyboard-key-
|
|
114
|
-
--keyboard-
|
|
115
|
-
--keyboard-
|
|
116
|
-
--keyboard-
|
|
73
|
+
--keyboard-bg: var(--ld-bg-surface);
|
|
74
|
+
--keyboard-key-bg: var(--ld-bg-container);
|
|
75
|
+
--keyboard-key-color: var(--ld-text-primary);
|
|
76
|
+
--keyboard-key-active-bg: var(--ld-primary-50);
|
|
77
|
+
--keyboard-fn-key-bg: var(--ld-bg-surface);
|
|
78
|
+
--keyboard-fn-key-color: var(--ld-text-secondary);
|
|
79
|
+
--keyboard-fn-key-active-bg: var(--ld-primary-100);
|
|
80
|
+
--keyboard-primary-bg: var(--ld-text-primary);
|
|
81
|
+
--keyboard-primary-active-bg: var(--ld-text-secondary);
|
|
82
|
+
--keyboard-primary-color: var(--ld-bg-container);
|
|
83
|
+
--keyboard-key-border: var(--ld-border-subtle);
|
|
84
|
+
--keyboard-key-radius: var(--ld-radius-lg);
|
|
85
|
+
--keyboard-key-gap: var(--ld-spacing-sm);
|
|
86
|
+
--keyboard-key-height: var(--ld-px-48);
|
|
87
|
+
--keyboard-font-size: var(--ld-font-base);
|
|
88
|
+
--keyboard-fn-font-size: var(--ld-font-sm);
|
|
89
|
+
--keyboard-padding: var(--ld-spacing-md);
|
|
117
90
|
--keyboard-key-shadow: none;
|
|
118
91
|
}
|
|
119
|
-
[data-theme="minimal"] .keyboard-key,
|
|
120
|
-
.keyboard-theme-minimal .keyboard-key {
|
|
121
|
-
box-shadow: none;
|
|
122
|
-
}
|
|
123
|
-
[data-theme="minimal"] .keyboard-key:active,
|
|
124
|
-
.keyboard-theme-minimal .keyboard-key:active {
|
|
125
|
-
transform: scale(0.95);
|
|
126
|
-
}
|
|
127
|
-
/* ====================
|
|
128
|
-
Dark 深色主题
|
|
129
|
-
==================== */
|
|
130
92
|
[data-theme="dark"],
|
|
131
93
|
.keyboard-theme-dark {
|
|
132
|
-
--keyboard-bg:
|
|
133
|
-
--keyboard-key-bg:
|
|
134
|
-
--keyboard-key-color:
|
|
135
|
-
--keyboard-key-active-bg:
|
|
136
|
-
--keyboard-fn-key-bg:
|
|
137
|
-
--keyboard-fn-key-color:
|
|
138
|
-
--keyboard-fn-key-active-bg:
|
|
139
|
-
--keyboard-primary-bg:
|
|
140
|
-
--keyboard-primary-active-bg:
|
|
141
|
-
--keyboard-primary-color:
|
|
142
|
-
--keyboard-
|
|
143
|
-
--keyboard-key-
|
|
144
|
-
--keyboard-key-
|
|
145
|
-
--keyboard-
|
|
146
|
-
--keyboard-
|
|
147
|
-
--keyboard-
|
|
148
|
-
--keyboard-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
.keyboard-theme-dark .keyboard-key {
|
|
152
|
-
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
|
|
153
|
-
}
|
|
154
|
-
/* 深色车牌键盘特殊样式 */
|
|
155
|
-
[data-theme="dark"] .key-plate-special,
|
|
156
|
-
.keyboard-theme-dark .key-plate-special {
|
|
157
|
-
background-color: #4a3728;
|
|
158
|
-
color: #fcd34d;
|
|
94
|
+
--keyboard-bg: var(--ld-bg-surface);
|
|
95
|
+
--keyboard-key-bg: var(--ld-bg-elevated);
|
|
96
|
+
--keyboard-key-color: var(--ld-text-primary);
|
|
97
|
+
--keyboard-key-active-bg: var(--ld-primary-100);
|
|
98
|
+
--keyboard-fn-key-bg: var(--ld-bg-container);
|
|
99
|
+
--keyboard-fn-key-color: var(--ld-text-secondary);
|
|
100
|
+
--keyboard-fn-key-active-bg: var(--ld-primary-200);
|
|
101
|
+
--keyboard-primary-bg: var(--ld-primary-500);
|
|
102
|
+
--keyboard-primary-active-bg: var(--ld-primary-600);
|
|
103
|
+
--keyboard-primary-color: var(--ld-text-inverse);
|
|
104
|
+
--keyboard-mask-bg: color-mix(in srgb, var(--ld-black) 40%, var(--ld-transparent));
|
|
105
|
+
--keyboard-key-border: var(--ld-border);
|
|
106
|
+
--keyboard-key-radius: var(--ld-radius-md);
|
|
107
|
+
--keyboard-key-gap: var(--ld-spacing-sm);
|
|
108
|
+
--keyboard-key-height: var(--ld-px-48);
|
|
109
|
+
--keyboard-font-size: var(--ld-font-lg);
|
|
110
|
+
--keyboard-fn-font-size: var(--ld-font-sm);
|
|
111
|
+
--keyboard-padding: var(--ld-spacing-sm);
|
|
112
|
+
--keyboard-key-shadow: var(--ld-shadow-sm, none);
|
|
159
113
|
}
|
|
160
|
-
/* ====================
|
|
161
|
-
Green 护眼主题
|
|
162
|
-
==================== */
|
|
163
114
|
[data-theme="green"],
|
|
164
115
|
.keyboard-theme-green {
|
|
165
|
-
--keyboard-bg:
|
|
166
|
-
--keyboard-
|
|
167
|
-
--keyboard-key-color: #2e7d32;
|
|
168
|
-
--keyboard-key-active-bg: #c8e6c9;
|
|
169
|
-
--keyboard-key-border: #a5d6a7;
|
|
170
|
-
--keyboard-fn-bg: #c8e6c9;
|
|
171
|
-
--keyboard-fn-color: #388e3c;
|
|
172
|
-
--keyboard-fn-active-bg: #a5d6a7;
|
|
173
|
-
--keyboard-primary-bg: #43a047;
|
|
174
|
-
--keyboard-primary-active-bg: #388e3c;
|
|
175
|
-
--keyboard-primary-color: #ffffff;
|
|
176
|
-
--keyboard-key-radius: 8px;
|
|
116
|
+
--keyboard-primary-bg: var(--ld-success-500);
|
|
117
|
+
--keyboard-primary-active-bg: var(--ld-success-600);
|
|
177
118
|
}
|
|
178
|
-
/* ====================
|
|
179
|
-
Blue 蓝色主题
|
|
180
|
-
==================== */
|
|
181
119
|
[data-theme="blue"],
|
|
182
120
|
.keyboard-theme-blue {
|
|
183
|
-
--keyboard-bg:
|
|
184
|
-
--keyboard-
|
|
185
|
-
--keyboard-key-color: #1565c0;
|
|
186
|
-
--keyboard-key-active-bg: #bbdefb;
|
|
187
|
-
--keyboard-key-border: #90caf9;
|
|
188
|
-
--keyboard-fn-bg: #bbdefb;
|
|
189
|
-
--keyboard-fn-color: #1976d2;
|
|
190
|
-
--keyboard-fn-active-bg: #90caf9;
|
|
191
|
-
--keyboard-primary-bg: #1976d2;
|
|
192
|
-
--keyboard-primary-active-bg: #1565c0;
|
|
193
|
-
--keyboard-primary-color: #ffffff;
|
|
194
|
-
--keyboard-key-radius: 8px;
|
|
121
|
+
--keyboard-primary-bg: var(--ld-info-500);
|
|
122
|
+
--keyboard-primary-active-bg: var(--ld-info-600);
|
|
195
123
|
}
|
|
196
|
-
/* ====================
|
|
197
|
-
主题工具类
|
|
198
|
-
==================== */
|
|
199
124
|
.keyboard-theme-light {
|
|
200
125
|
color-scheme: light;
|
|
201
126
|
}
|
|
202
127
|
.keyboard-theme-dark {
|
|
203
128
|
color-scheme: dark;
|
|
204
129
|
}
|
|
205
|
-
/* 平滑主题切换 */
|
|
206
130
|
.keyboard-popup,
|
|
207
131
|
.virtual-keyboard {
|
|
208
|
-
transition: background-color
|
|
132
|
+
transition: background-color var(--ld-duration-fast);
|
|
209
133
|
}
|
|
210
134
|
.keyboard-key {
|
|
211
|
-
transition: background-color var(--
|
|
135
|
+
transition: background-color var(--ld-duration-fast), transform var(--ld-duration-fast);
|
|
212
136
|
}
|
|
213
|
-
/*# sourceMappingURL=src
|
|
137
|
+
/*# sourceMappingURL=src\styles\themes.less.map */
|
package/package.json
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composy/keyboard-vue",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.2",
|
|
4
5
|
"description": "LDesign 虚拟键盘 - Vue 3 适配器",
|
|
6
|
+
"author": "LDesign Team",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://gitee.com/ldesign-v1/ldesign-keyboard/tree/main/packages/vue#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://gitee.com/ldesign-v1/ldesign-keyboard.git",
|
|
12
|
+
"directory": "packages/vue"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://gitee.com/ldesign-v1/ldesign-keyboard/issues"
|
|
16
|
+
},
|
|
5
17
|
"keywords": [
|
|
6
18
|
"keyboard",
|
|
7
19
|
"virtual-keyboard",
|
|
@@ -13,16 +25,10 @@
|
|
|
13
25
|
"ldesign",
|
|
14
26
|
"typescript"
|
|
15
27
|
],
|
|
16
|
-
"author": "LDesign Team",
|
|
17
|
-
"license": "MIT",
|
|
18
|
-
"type": "module",
|
|
19
28
|
"sideEffects": [
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"dist/*",
|
|
24
|
-
"es/**/style/**",
|
|
25
|
-
"esm/**/style/**"
|
|
29
|
+
"**/*.vue",
|
|
30
|
+
"**/*.css",
|
|
31
|
+
"**/*.less"
|
|
26
32
|
],
|
|
27
33
|
"exports": {
|
|
28
34
|
".": {
|
|
@@ -85,57 +91,60 @@
|
|
|
85
91
|
"./styles/index.css": "./lib/styles/index.css",
|
|
86
92
|
"./styles/keyboard.css": "./lib/styles/keyboard.css",
|
|
87
93
|
"./styles/themes.css": "./lib/styles/themes.css",
|
|
88
|
-
"./style/index.less": "./
|
|
89
|
-
"./styles/index.less": "./
|
|
90
|
-
"./styles/keyboard.less": "./
|
|
91
|
-
"./styles/themes.less": "./
|
|
94
|
+
"./style/index.less": "./esm/style/index.less",
|
|
95
|
+
"./styles/index.less": "./esm/styles/index.less",
|
|
96
|
+
"./styles/keyboard.less": "./esm/styles/keyboard.less",
|
|
97
|
+
"./styles/themes.less": "./esm/styles/themes.less",
|
|
92
98
|
"./package.json": "./package.json"
|
|
93
99
|
},
|
|
94
100
|
"main": "./lib/index.cjs",
|
|
95
101
|
"module": "./es/index.js",
|
|
96
|
-
"
|
|
102
|
+
"style": "./dist/index.css",
|
|
97
103
|
"unpkg": "./dist/index.min.js",
|
|
98
104
|
"jsdelivr": "./dist/index.min.js",
|
|
105
|
+
"types": "./es/index.d.ts",
|
|
99
106
|
"files": [
|
|
100
107
|
"README.md",
|
|
101
|
-
"
|
|
102
|
-
"CHANGELOG.md",
|
|
108
|
+
"dist",
|
|
103
109
|
"es",
|
|
104
|
-
"
|
|
105
|
-
"
|
|
110
|
+
"esm",
|
|
111
|
+
"lib"
|
|
106
112
|
],
|
|
107
113
|
"scripts": {
|
|
108
114
|
"build": "ldesign-builder build",
|
|
109
|
-
"clean": "rimraf dist es esm
|
|
115
|
+
"clean": "rimraf dist es esm lib",
|
|
110
116
|
"dev": "ldesign-builder build --watch",
|
|
111
|
-
"lint": "eslint . --fix",
|
|
112
|
-
"lint:check": "eslint . --max-warnings 0",
|
|
113
|
-
"lint:fix": "eslint . --fix",
|
|
117
|
+
"lint": "eslint . --no-cache --fix",
|
|
118
|
+
"lint:check": "eslint . --no-cache --max-warnings 0",
|
|
119
|
+
"lint:fix": "eslint . --no-cache --fix",
|
|
114
120
|
"type-check": "vue-tsc --noEmit",
|
|
121
|
+
"type-check:cjs": "vue-tsc --noEmit -p tsconfig.cjs.json",
|
|
115
122
|
"test": "ltesting run:unit",
|
|
116
123
|
"test:run": "ltesting run:unit",
|
|
117
124
|
"test:watch": "ltesting run:unit --watch",
|
|
118
125
|
"test:coverage": "ltesting run:unit --coverage",
|
|
119
126
|
"test:changed": "ltesting run:unit --changed",
|
|
120
127
|
"test:failed": "ltesting run:unit --failed",
|
|
121
|
-
"test:ui": "ltesting dashboard"
|
|
122
|
-
|
|
123
|
-
"dependencies": {
|
|
124
|
-
"@composy/keyboard-core": "^0.0.1"
|
|
128
|
+
"test:ui": "ltesting dashboard",
|
|
129
|
+
"release": "ldesign-release publish --package-dir ."
|
|
125
130
|
},
|
|
126
131
|
"peerDependencies": {
|
|
127
|
-
"vue": "
|
|
132
|
+
"vue": "3.5.32"
|
|
133
|
+
},
|
|
134
|
+
"dependencies": {
|
|
135
|
+
"@composy/keyboard-core": "^0.0.2"
|
|
128
136
|
},
|
|
129
137
|
"devDependencies": {
|
|
130
138
|
"@antfu/eslint-config": "9.1.0",
|
|
131
|
-
"@composy/builder": "^0.0
|
|
132
|
-
"@composy/
|
|
139
|
+
"@composy/builder": "^0.1.0",
|
|
140
|
+
"@composy/release": "^0.1.0",
|
|
141
|
+
"@composy/testing": "^0.0.2",
|
|
133
142
|
"eslint": "10.7.0",
|
|
134
|
-
"rimraf": "
|
|
143
|
+
"rimraf": "6.1.3",
|
|
135
144
|
"typescript": "5.9.3",
|
|
136
|
-
"vue": "3.5.
|
|
137
|
-
"vue-tsc": "
|
|
145
|
+
"vue": "3.5.32",
|
|
146
|
+
"vue-tsc": "3.3.11"
|
|
138
147
|
},
|
|
139
148
|
"typings": "./es/index.d.ts",
|
|
140
149
|
"browser": "./dist/index.js"
|
|
141
|
-
}
|
|
150
|
+
}
|