x-next 1.9.0 → 1.10.0
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/AI_USAGE.md +67 -7
- package/CHANGELOG.md +24 -0
- package/dist/_utils/chart/scale.d.ts +1 -1
- package/dist/components/_components/chart/axis-labels.d.ts +8 -0
- package/dist/components/link/Link.vue.d.ts +1 -1
- package/dist/components/link/index.d.ts +3 -3
- package/dist/components/virtual-list-v2/interface.d.ts +3 -0
- package/dist/components/virtual-list-v2/virtual-list.vue.d.ts +336 -1
- package/dist/es/_hooks/use-component-ref.js +9 -9
- package/dist/es/_utils/chart/scale.js +44 -39
- package/dist/es/components/_components/chart/ChartAxis.js +61 -36
- package/dist/es/components/_components/chart/axis-labels.js +26 -0
- package/dist/es/components/button/Button.js +23 -23
- package/dist/es/components/form-select/Select.js +142 -141
- package/dist/es/components/trigger/Trigger.js +174 -183
- package/dist/es/components/virtual-list-v2/virtual-list.vue.js +22 -23
- package/dist/es/components/virtual-list-v2/virtual-list.vue2.js +67 -53
- package/dist/es/icons/icon.js +37 -36
- package/dist/es/icons/index.js +6 -8
- package/dist/es/icons/public/lucide-names.js +167 -0
- package/dist/es/icons/public/lucide.js +75 -188
- package/dist/es/index.js +152 -148
- package/dist/es/style.css +1 -1
- package/dist/icons/index.d.ts +3 -3
- package/dist/icons/names.d.ts +2 -2
- package/dist/icons/public/lucide-names.d.ts +32 -0
- package/dist/icons/public/lucide.d.ts +2 -2
- package/dist/index.cjs +3 -62
- package/dist/index.umd.js +3 -62
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
package/dist/icons/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { addIcon, hasIcon, registerIcons, removeIcon } from './registry';
|
|
2
2
|
import { IconName } from './names';
|
|
3
3
|
import { IconProps } from './icon';
|
|
4
|
-
import { publicIconNames, registerPublicIcons, PublicIconName } from './public/lucide';
|
|
4
|
+
import { publicIconNames, canonicalIconNames, publicIconAliases, searchPublicIcons, registerPublicIcons, CanonicalIconName, PublicIconName } from './public/lucide';
|
|
5
5
|
import { finiconIconNames, finiconIcons, registerFiniconIcons, FiniconIconName } from './public/finicon';
|
|
6
6
|
import { finiconCategories, finiconIconsMeta, FiniconCategory, FiniconColorMode, FiniconIconMeta } from './public/finicon-meta';
|
|
7
7
|
export declare const Icon: {
|
|
@@ -145,5 +145,5 @@ export declare const Icon: {
|
|
|
145
145
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
146
146
|
install(app: import('vue').App): void;
|
|
147
147
|
};
|
|
148
|
-
export { addIcon, removeIcon, hasIcon, registerIcons, publicIconNames, registerPublicIcons, finiconIconNames, finiconIcons, registerFiniconIcons, finiconCategories, finiconIconsMeta, };
|
|
149
|
-
export type { IconName, IconProps, PublicIconName, FiniconIconName, FiniconCategory, FiniconColorMode, FiniconIconMeta, };
|
|
148
|
+
export { addIcon, removeIcon, hasIcon, registerIcons, publicIconNames, canonicalIconNames, publicIconAliases, searchPublicIcons, registerPublicIcons, finiconIconNames, finiconIcons, registerFiniconIcons, finiconCategories, finiconIconsMeta, };
|
|
149
|
+
export type { IconName, IconProps, PublicIconName, CanonicalIconName, FiniconIconName, FiniconCategory, FiniconColorMode, FiniconIconMeta, };
|
package/dist/icons/names.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PublicIconName } from './public/lucide';
|
|
1
|
+
import { PublicIconName } from './public/lucide-names';
|
|
2
2
|
import { FiniconIconName } from './public/finicon';
|
|
3
|
-
export { publicIconNames } from './public/lucide';
|
|
3
|
+
export { publicIconNames, canonicalIconNames, publicIconAliases } from './public/lucide-names';
|
|
4
4
|
export { finiconIconNames } from './public/finicon';
|
|
5
5
|
export type IconName = PublicIconName | FiniconIconName;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** 包含历史名称的公开清单,保留已有消费端用法。 */
|
|
2
|
+
export declare const publicIconNames: readonly ["x", "close", "check", "search", "plus", "minus", "left", "right", "up", "down", "chevron-left", "chevron-right", "chevron-up", "chevron-down", "check-circle", "close-circle", "info-circle", "alert-circle", "minus-circle", "circle-check", "circle-x", "info", "circle-alert", "circle-minus", "link", "loading", "loading-circle", "settings", "user", "calendar", "clock", "trash", "edit", "download", "upload", "copy", "eye", "eye-off", "menu", "more-horizontal", "filter", "arrow-up-down", "star", "heart", "home", "bell", "mail", "phone", "lock", "unlock", "refresh-cw", "rotate-ccw", "zoom-in", "zoom-out", "maximize", "image", "file", "folder", "save", "external-link", "arrow-left", "arrow-right", "arrow-up", "arrow-down", "chevrons-left", "chevrons-right", "circle-question-mark", "ellipsis-vertical", "rotate-cw"];
|
|
3
|
+
/** 去重后的推荐名称,适合图标墙、搜索与代码生成。 */
|
|
4
|
+
export declare const canonicalIconNames: readonly ["x", "check", "search", "plus", "minus", "chevron-left", "chevron-right", "chevron-up", "chevron-down", "circle-check", "circle-x", "info", "circle-alert", "circle-minus", "link", "loading", "loader-circle", "settings", "user", "calendar", "clock", "trash", "pencil", "download", "upload", "copy", "eye", "eye-off", "menu", "ellipsis", "filter", "arrow-up-down", "star", "heart", "home", "bell", "mail", "phone", "lock", "lock-open", "refresh-cw", "rotate-ccw", "zoom-in", "zoom-out", "maximize", "image", "file", "folder", "save", "external-link", "arrow-left", "arrow-right", "arrow-up", "arrow-down", "chevrons-left", "chevrons-right", "circle-question-mark", "ellipsis-vertical", "rotate-cw"];
|
|
5
|
+
export declare const publicIconAliases: {
|
|
6
|
+
readonly close: "x";
|
|
7
|
+
readonly left: "chevron-left";
|
|
8
|
+
readonly right: "chevron-right";
|
|
9
|
+
readonly up: "chevron-up";
|
|
10
|
+
readonly down: "chevron-down";
|
|
11
|
+
readonly "check-circle": "circle-check";
|
|
12
|
+
readonly "close-circle": "circle-x";
|
|
13
|
+
readonly "info-circle": "info";
|
|
14
|
+
readonly "alert-circle": "circle-alert";
|
|
15
|
+
readonly "minus-circle": "circle-minus";
|
|
16
|
+
readonly "loading-circle": "loader-circle";
|
|
17
|
+
readonly edit: "pencil";
|
|
18
|
+
readonly unlock: "lock-open";
|
|
19
|
+
readonly "more-horizontal": "ellipsis";
|
|
20
|
+
readonly "double-left": "chevrons-left";
|
|
21
|
+
readonly "double-right": "chevrons-right";
|
|
22
|
+
readonly "question-circle": "circle-question-mark";
|
|
23
|
+
readonly "circle-question": "circle-question-mark";
|
|
24
|
+
readonly "eye-invisible": "eye-off";
|
|
25
|
+
readonly "clock-circle": "clock";
|
|
26
|
+
readonly "rotate-left": "rotate-ccw";
|
|
27
|
+
readonly "rotate-right": "rotate-cw";
|
|
28
|
+
};
|
|
29
|
+
export type CanonicalIconName = (typeof canonicalIconNames)[number];
|
|
30
|
+
export type PublicIconName = (typeof publicIconNames)[number] | CanonicalIconName | keyof typeof publicIconAliases;
|
|
31
|
+
/** 推荐名和旧名均能搜索到同一份图形,不重复展示。 */
|
|
32
|
+
export declare const searchPublicIcons: (keyword: string) => CanonicalIconName[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export type PublicIconName
|
|
1
|
+
import { PublicIconName } from './lucide-names';
|
|
2
|
+
export { publicIconNames, canonicalIconNames, publicIconAliases, searchPublicIcons, type CanonicalIconName, type PublicIconName, } from './lucide-names';
|
|
3
3
|
export declare const publicIcons: Record<PublicIconName, string>;
|
|
4
4
|
export declare const registerPublicIcons: () => void;
|