@mooncellwiki/prts-design-vue 0.1.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.
Files changed (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +21 -0
  3. package/dist/components/Accordion/AkCollapse.vue.d.ts +31 -0
  4. package/dist/components/Accordion/AkCollapseItem.vue.d.ts +27 -0
  5. package/dist/components/Accordion/context.d.ts +7 -0
  6. package/dist/components/Archive/AkArchive.vue.d.ts +35 -0
  7. package/dist/components/Archive/AkArchivePlay.vue.d.ts +18 -0
  8. package/dist/components/Attrs/AkAttr.vue.d.ts +26 -0
  9. package/dist/components/Attrs/AkAttrs.vue.d.ts +18 -0
  10. package/dist/components/Avatar/AkAvatar.vue.d.ts +30 -0
  11. package/dist/components/Avatar/AkAvatarGroup.vue.d.ts +35 -0
  12. package/dist/components/Avatar/context.d.ts +6 -0
  13. package/dist/components/Badge/AkBadge.vue.d.ts +35 -0
  14. package/dist/components/Breadcrumb/AkBreadcrumb.vue.d.ts +25 -0
  15. package/dist/components/Breadcrumb/AkBreadcrumbItem.vue.d.ts +20 -0
  16. package/dist/components/Button/AkButton.vue.d.ts +47 -0
  17. package/dist/components/Button/AkButtonGroup.vue.d.ts +21 -0
  18. package/dist/components/Button/context.d.ts +7 -0
  19. package/dist/components/Camp/AkCamp.vue.d.ts +18 -0
  20. package/dist/components/Card/AkCard.vue.d.ts +54 -0
  21. package/dist/components/Card/AkCardGrid.vue.d.ts +13 -0
  22. package/dist/components/Cbox/AkCbox.vue.d.ts +33 -0
  23. package/dist/components/Checkbox/AkCheckbox.vue.d.ts +39 -0
  24. package/dist/components/Checkbox/AkCheckboxGroup.vue.d.ts +43 -0
  25. package/dist/components/Checkbox/context.d.ts +15 -0
  26. package/dist/components/Chip/AkChip.vue.d.ts +35 -0
  27. package/dist/components/Dialog/AkDialog.vue.d.ts +57 -0
  28. package/dist/components/Dialogue/AkDialogue.vue.d.ts +14 -0
  29. package/dist/components/Dialogue/AkDialogueLine.vue.d.ts +20 -0
  30. package/dist/components/Divider/AkDivider.vue.d.ts +21 -0
  31. package/dist/components/Dossier/AkDossier.vue.d.ts +28 -0
  32. package/dist/components/Dossier/AkRedacted.vue.d.ts +21 -0
  33. package/dist/components/Dropdown/AkDropdown.vue.d.ts +47 -0
  34. package/dist/components/Dropdown/MenuItem.vue.d.ts +14 -0
  35. package/dist/components/Dropdown/types.d.ts +27 -0
  36. package/dist/components/Elite/AkElite.vue.d.ts +33 -0
  37. package/dist/components/Empty/AkEmpty.vue.d.ts +37 -0
  38. package/dist/components/Enemy/AkEnemy.vue.d.ts +34 -0
  39. package/dist/components/Event/AkCountdown.vue.d.ts +25 -0
  40. package/dist/components/Event/AkEvent.vue.d.ts +34 -0
  41. package/dist/components/Fab/AkBackTop.vue.d.ts +36 -0
  42. package/dist/components/Field/AkField.vue.d.ts +35 -0
  43. package/dist/components/Field/context.d.ts +48 -0
  44. package/dist/components/Heading/AkHeading.vue.d.ts +35 -0
  45. package/dist/components/Hero/AkHero.vue.d.ts +41 -0
  46. package/dist/components/Icon/AkIcon.vue.d.ts +15 -0
  47. package/dist/components/Input/AkInput.vue.d.ts +54 -0
  48. package/dist/components/Input/AkInputGroup.vue.d.ts +19 -0
  49. package/dist/components/Input/context.d.ts +6 -0
  50. package/dist/components/InputNumber/AkInputNumber.vue.d.ts +37 -0
  51. package/dist/components/Item/AkItem.vue.d.ts +47 -0
  52. package/dist/components/Item/AkItemList.vue.d.ts +19 -0
  53. package/dist/components/Item/context.d.ts +6 -0
  54. package/dist/components/Kbd/AkKbd.vue.d.ts +14 -0
  55. package/dist/components/Kv/AkKv.vue.d.ts +23 -0
  56. package/dist/components/Kv/AkKvItem.vue.d.ts +20 -0
  57. package/dist/components/Kv/context.d.ts +5 -0
  58. package/dist/components/Level/AkLevel.vue.d.ts +11 -0
  59. package/dist/components/Materials/AkMaterials.vue.d.ts +17 -0
  60. package/dist/components/Materials/AkMaterialsDivider.vue.d.ts +14 -0
  61. package/dist/components/Materials/AkMaterialsRow.vue.d.ts +19 -0
  62. package/dist/components/Message/AkMessage.vue.d.ts +52 -0
  63. package/dist/components/Module/AkModule.vue.d.ts +62 -0
  64. package/dist/components/Module/AkModuleStage.vue.d.ts +22 -0
  65. package/dist/components/Module/AkModuleUnlock.vue.d.ts +20 -0
  66. package/dist/components/News/AkNews.vue.d.ts +25 -0
  67. package/dist/components/OpCard/AkOpCard.vue.d.ts +52 -0
  68. package/dist/components/OpCard/AkOpGrid.vue.d.ts +13 -0
  69. package/dist/components/OpRow/AkOpRow.vue.d.ts +33 -0
  70. package/dist/components/Pagination/AkPagination.vue.d.ts +51 -0
  71. package/dist/components/Panel/AkPanel.vue.d.ts +43 -0
  72. package/dist/components/PhaseTabs/AkPhaseTabs.vue.d.ts +28 -0
  73. package/dist/components/PotList/AkPot.vue.d.ts +27 -0
  74. package/dist/components/PotList/AkPotList.vue.d.ts +18 -0
  75. package/dist/components/PotList/context.d.ts +5 -0
  76. package/dist/components/Potential/AkPotential.vue.d.ts +16 -0
  77. package/dist/components/Potential/AkSpecialization.vue.d.ts +16 -0
  78. package/dist/components/Profession/AkProfession.vue.d.ts +22 -0
  79. package/dist/components/Profession/AkProfessionLabel.vue.d.ts +28 -0
  80. package/dist/components/Progress/AkProgress.vue.d.ts +40 -0
  81. package/dist/components/Radio/AkRadio.vue.d.ts +39 -0
  82. package/dist/components/Radio/AkRadioButton.vue.d.ts +33 -0
  83. package/dist/components/Radio/AkRadioGroup.vue.d.ts +40 -0
  84. package/dist/components/Radio/context.d.ts +12 -0
  85. package/dist/components/Range/AkRange.vue.d.ts +19 -0
  86. package/dist/components/Rarity/AkRarity.vue.d.ts +24 -0
  87. package/dist/components/RichText/AkRichText.vue.d.ts +40 -0
  88. package/dist/components/RichText/parse.d.ts +33 -0
  89. package/dist/components/Scope/AkScope.vue.d.ts +27 -0
  90. package/dist/components/Search/AkSearch.vue.d.ts +31 -0
  91. package/dist/components/Select/AkSelect.vue.d.ts +46 -0
  92. package/dist/components/Skeleton/AkSkeleton.vue.d.ts +21 -0
  93. package/dist/components/Skill/AkSkill.vue.d.ts +65 -0
  94. package/dist/components/Skill/LevelLabel.vue.d.ts +15 -0
  95. package/dist/components/SkillLevels/AkSkillLevels.vue.d.ts +26 -0
  96. package/dist/components/SkillMatrix/AkSkillMatrix.vue.d.ts +58 -0
  97. package/dist/components/SkillSheet/AkSkillSheet.vue.d.ts +50 -0
  98. package/dist/components/Slider/AkSlider.vue.d.ts +36 -0
  99. package/dist/components/Sp/AkSp.vue.d.ts +23 -0
  100. package/dist/components/Sp/AkSpTrigger.vue.d.ts +21 -0
  101. package/dist/components/Sp/AkSpValue.vue.d.ts +25 -0
  102. package/dist/components/Sp/sp.d.ts +19 -0
  103. package/dist/components/Spinner/AkSpinner.vue.d.ts +33 -0
  104. package/dist/components/Stage/AkSanity.vue.d.ts +10 -0
  105. package/dist/components/Stage/AkStage.vue.d.ts +36 -0
  106. package/dist/components/Stage/AkStageCode.vue.d.ts +22 -0
  107. package/dist/components/Stat/AkStat.vue.d.ts +36 -0
  108. package/dist/components/Stat/AkStatRow.vue.d.ts +14 -0
  109. package/dist/components/Stepper/AkStep.vue.d.ts +24 -0
  110. package/dist/components/Stepper/AkSteps.vue.d.ts +25 -0
  111. package/dist/components/Switch/AkSwitch.vue.d.ts +37 -0
  112. package/dist/components/Table/AkDataTable.vue.d.ts +48 -0
  113. package/dist/components/Table/types.d.ts +21 -0
  114. package/dist/components/Tabs/AkTab.vue.d.ts +25 -0
  115. package/dist/components/Tabs/AkTabPane.vue.d.ts +29 -0
  116. package/dist/components/Tabs/AkTabs.vue.d.ts +36 -0
  117. package/dist/components/Tag/AkTag.vue.d.ts +35 -0
  118. package/dist/components/Talent/AkTalent.vue.d.ts +28 -0
  119. package/dist/components/TalentTable/AkCalc.vue.d.ts +8 -0
  120. package/dist/components/TalentTable/AkTalentTable.vue.d.ts +66 -0
  121. package/dist/components/Timeline/AkTimeline.vue.d.ts +17 -0
  122. package/dist/components/Timeline/AkTimelineItem.vue.d.ts +32 -0
  123. package/dist/components/Toast/AkToastProvider.vue.d.ts +35 -0
  124. package/dist/components/Toast/useToast.d.ts +39 -0
  125. package/dist/components/Tooltip/AkPopover.vue.d.ts +52 -0
  126. package/dist/components/Tooltip/AkTooltip.vue.d.ts +48 -0
  127. package/dist/components/Tooltip/trigger.d.ts +13 -0
  128. package/dist/components/Tooltip/usePopover.d.ts +25 -0
  129. package/dist/components/Trust/AkTrust.vue.d.ts +11 -0
  130. package/dist/components/Voice/AkVoice.vue.d.ts +23 -0
  131. package/dist/components/Voice/AkVoiceList.vue.d.ts +36 -0
  132. package/dist/components/Voice/context.d.ts +19 -0
  133. package/dist/components/Voice/player.d.ts +8 -0
  134. package/dist/icons.d.ts +50 -0
  135. package/dist/index.d.ts +135 -0
  136. package/dist/index.js +6455 -0
  137. package/dist/index.js.map +1 -0
  138. package/package.json +48 -0
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ /** 标题(也可写在默认插槽里) */
3
+ title?: string;
4
+ /** 英文副题(Bender 大写灰字):并排时跟在标题右边,stack 时叠在标题上方当眉题(「Chapter 08」) */
5
+ en?: string;
6
+ /** 标题级别,渲染成 h1–h6 */
7
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
8
+ /** 外观:bar 左侧主色粗竖条(默认)· underline 底线 + 左段 120px 主色粗线 */
9
+ variant?: "bar" | "underline";
10
+ /** 英文叠在标题上方(章节号、活动代号) */
11
+ stack?: boolean;
12
+ /** 尺寸:md = h2 字号(默认)· lg = display 字号(专题页 / 活动页头) */
13
+ size?: "md" | "lg";
14
+ };
15
+ type __VLS_Slots = {
16
+ /** 标题内容(代替 title) */
17
+ default?: () => unknown;
18
+ /** 右侧附加(链接、开关),推到最右 */
19
+ extra?: () => unknown;
20
+ };
21
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
+ size: "md" | "lg";
23
+ title: string;
24
+ variant: "bar" | "underline";
25
+ level: 1 | 2 | 3 | 4 | 5 | 6;
26
+ en: string;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,41 @@
1
+ /**
2
+ * 大标题横幅(官网风):黑底 + 青色 overline + 大号拉丁标题(中文副标) + 青色横条 + 说明,右侧竖直青色色面叠网点。
3
+ * 两套主题下都是黑底白字。是静态的「页头横幅」,不是轮播——首页的活动轮播是页面自己的结构(见文档页说明)。
4
+ */
5
+ type __VLS_Props = {
6
+ /** 大标题(展示字、全大写),拉丁字母最好看:PRTS / RHODES ISLAND */
7
+ title: string;
8
+ /** 标题下的中文副标(正文字体、半号) */
9
+ subtitle?: string;
10
+ /** 标题上方的青色小字(PRTS.WIKI · NEW SKIN DESIGN SYSTEM) */
11
+ eyebrow?: string;
12
+ /** 说明文字(最宽 60 字,70% 白) */
13
+ description?: string;
14
+ /** 标题下的青色横条 */
15
+ bar?: boolean;
16
+ /** 右侧竖直青色色面 */
17
+ side?: boolean;
18
+ };
19
+ type __VLS_Slots = {
20
+ /** 标题(代替 title / subtitle);中文副标放 <span class="cn"> */
21
+ title?: () => unknown;
22
+ /** 说明(代替 description),放在 <p> 里——只放行内内容 */
23
+ description?: () => unknown;
24
+ /** 说明下面的内容(按钮等) */
25
+ default?: () => unknown;
26
+ };
27
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
28
+ eyebrow: string;
29
+ bar: boolean;
30
+ description: string;
31
+ subtitle: string;
32
+ side: boolean;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,15 @@
1
+ import { type IconName } from "../../icons";
2
+ type __VLS_Props = {
3
+ /** 图标名(见 icons.ts,与皮肤 sprite 的 #i-* 同名) */
4
+ name: IconName;
5
+ /** 边长(px);不写则由外层 CSS 定(如 .ak-btn__icon 的 1.1em) */
6
+ size?: number | string;
7
+ /** 读屏文本;不写则 aria-hidden(纯装饰,旁边有文字) */
8
+ label?: string;
9
+ };
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ size: number | string;
12
+ label: string;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { type ValidationStatus } from "../Field/context";
2
+ import { type InputSize } from "./context";
3
+ type __VLS_Props = {
4
+ /** 类型:textarea 渲染多行 <textarea class="ak-textarea">(同 Naive);其余是 <input> 的 type。数字用 AkInputNumber,搜索用 AkSearch */
5
+ type?: "text" | "textarea" | "password" | "email" | "url" | "tel";
6
+ /** 占位提示(只做提示,不承载必填等信息) */
7
+ placeholder?: string;
8
+ /** 尺寸:sm 30 · md 36 · lg 44(px 高),与按钮同一刻度;多行输入不适用。不写时跟 AkInputGroup,再不然是 md */
9
+ size?: InputSize;
10
+ /** 校验状态:error 红边(aria-invalid)· success 绿边;不写时跟 AkField 的 validation-status */
11
+ status?: ValidationStatus;
12
+ /** 禁用 */
13
+ disabled?: boolean;
14
+ /** 只读:下沉底色,仍可选中复制——计算器「只显示不编辑」的结果用它,不要用 disabled */
15
+ readonly?: boolean;
16
+ /** 最多字数(原生 maxlength) */
17
+ maxlength?: number;
18
+ /** 多行输入的可见行数(原生 rows);不写时由 CSS 的最小高 90px 定 */
19
+ rows?: number;
20
+ /** 可访问名(aria-label):不在 AkField 里、旁边也没有 <label> 时必填 */
21
+ label?: string;
22
+ };
23
+ type __VLS_Slots = {
24
+ /** 前缀(输入框左边的 .ak-input-group__addon,如「wiki/」);多行输入不适用 */
25
+ prefix?: () => unknown;
26
+ /** 后缀(输入框右边的 .ak-input-group__addon,如单位「%」);多行输入不适用 */
27
+ suffix?: () => unknown;
28
+ };
29
+ type __VLS_ModelProps = {
30
+ /** 输入的文字 */
31
+ modelValue?: string;
32
+ };
33
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
34
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ "update:modelValue": (value: string | undefined) => any;
36
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
37
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
38
+ }>, {
39
+ type: "text" | "textarea" | "password" | "email" | "url" | "tel";
40
+ size: InputSize;
41
+ label: string;
42
+ status: ValidationStatus;
43
+ rows: number;
44
+ placeholder: string;
45
+ maxlength: number;
46
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
48
+ declare const _default: typeof __VLS_export;
49
+ export default _default;
50
+ type __VLS_WithSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
@@ -0,0 +1,19 @@
1
+ import { type InputSize } from "./context";
2
+ /** 把输入框和按钮拼成一条(同 Naive 的 NInputGroup):相邻边重叠、中间不留圆角。前后缀文字用 AkInput 的 #prefix / #suffix */
3
+ type __VLS_Props = {
4
+ /** 组内输入框与按钮的默认尺寸(各自写了 size 以各自为准) */
5
+ size?: InputSize;
6
+ };
7
+ type __VLS_Slots = {
8
+ /** AkInput(可带 #prefix / #suffix)与 AkButton */
9
+ default?: () => unknown;
10
+ };
11
+ declare const __VLS_base: 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>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,6 @@
1
+ import type { InjectionKey } from "vue";
2
+ export type InputSize = "sm" | "md" | "lg";
3
+ /** AkInputGroup 给组内 AkInput 的默认尺寸,也告诉它「前后缀直接作为组的子项输出,不要再包一层 .ak-input-group」 */
4
+ export declare const inputGroupKey: InjectionKey<{
5
+ size?: InputSize;
6
+ }>;
@@ -0,0 +1,37 @@
1
+ type __VLS_Props = {
2
+ /** 最小值 */
3
+ min?: number;
4
+ /** 最大值 */
5
+ max?: number;
6
+ /** 步长:按钮 / 方向键每次加减多少 */
7
+ step?: number;
8
+ /** 禁用 */
9
+ disabled?: boolean;
10
+ /** 只读:值能看能复制,不能改 */
11
+ readonly?: boolean;
12
+ /** 清空时的占位提示 */
13
+ placeholder?: string;
14
+ /** 显示 − / + 按钮(同 Naive 的 show-button) */
15
+ showButton?: boolean;
16
+ /** 可访问名(aria-label):不在 AkField 里、旁边也没有 <label> 时必填 */
17
+ label?: string;
18
+ };
19
+ type __VLS_ModelProps = {
20
+ /** 当前值;输入框清空后是 null */
21
+ modelValue?: number | null;
22
+ };
23
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
24
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (value: number | null | undefined) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: number | null | undefined) => any) | undefined;
28
+ }>, {
29
+ label: string;
30
+ max: number;
31
+ step: number;
32
+ placeholder: string;
33
+ min: number;
34
+ showButton: boolean;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
@@ -0,0 +1,47 @@
1
+ import { type ItemSize } from "./context";
2
+ type __VLS_Props = {
3
+ /** 图片地址:默认是现网拼好的「道具_带框_<名>.png」(底框 + 图标);bare 时是裸图标 */
4
+ src: string;
5
+ /** 道具名:作 alt,并默认作悬停提示 */
6
+ name: string;
7
+ /** 数量:数字或写好的串("30K" / "99+");不写不显示。inline 时显示成图后的「×数量」 */
8
+ count?: number | string;
9
+ /** 数量不足(红字) */
10
+ insufficient?: boolean;
11
+ /** 尺寸:sm 40 · md 56 · lg 76(px);不写时跟 AkItemList 的 size(材料表里是 sm),再不然是 md;inline 时固定 22 */
12
+ size?: ItemSize;
13
+ /** 裸图标:底框由 CSS 按 rarity 画(只有 torappu 透明图标、没有合成图时用) */
14
+ bare?: boolean;
15
+ /** bare 时的底框稀有度 1–6(白 / 绿 / 蓝 / 紫 / 金 / 特殊) */
16
+ rarity?: 1 | 2 | 3 | 4 | 5 | 6;
17
+ /** 去色(未获得 / 不可用) */
18
+ disabled?: boolean;
19
+ /** 招聘合同那种:叠在底图空框里的干员头像;inline 时不显示 */
20
+ avatar?: string;
21
+ /** 链接到道具页 */
22
+ href?: string;
23
+ /** 悬停提示(data-ak-tip):默认是 name,可改写;false 关掉 */
24
+ tip?: string | false;
25
+ /** 行内:22px 小图 + 文字,放在正文里(龙门币×30000);文字默认是「×count」,可用默认插槽改写 */
26
+ inline?: boolean;
27
+ };
28
+ declare var __VLS_8: {};
29
+ type __VLS_Slots = {} & {
30
+ default?: (props: typeof __VLS_8) => any;
31
+ };
32
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
33
+ size: ItemSize;
34
+ href: string;
35
+ tip: string | false;
36
+ count: number | string;
37
+ rarity: 1 | 2 | 3 | 4 | 5 | 6;
38
+ avatar: string;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,19 @@
1
+ import { type ItemSize } from "./context";
2
+ /** 一排道具:换行、间距 6 / 8 */
3
+ type __VLS_Props = {
4
+ /** 里面道具的默认尺寸(道具自己写了 size 以道具为准,同 AkButtonGroup) */
5
+ size?: ItemSize;
6
+ };
7
+ type __VLS_Slots = {
8
+ /** 若干 AkItem */
9
+ default?: () => unknown;
10
+ };
11
+ declare const __VLS_base: 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>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,6 @@
1
+ import type { InjectionKey } from "vue";
2
+ export type ItemSize = "sm" | "md" | "lg";
3
+ /** AkItemList / AkMaterialsRow 给里面 AkItem 的默认尺寸(同 AkButtonGroup → AkButton) */
4
+ export declare const itemListKey: InjectionKey<{
5
+ size?: ItemSize;
6
+ }>;
@@ -0,0 +1,14 @@
1
+ /** 键帽(<kbd class="ak-kbd">):快捷键提示——面板页脚、触发器右侧、行内说明。组合键写成几枚键帽,中间的「+」写在外面 */
2
+ type __VLS_Slots = {
3
+ /** 键名:Ctrl、K、Esc、↵、/ … */
4
+ default?: () => unknown;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 键值表(同 Naive 的 NDescriptions):一个 <dl>,里面放若干 AkKvItem。
3
+ * 子项自己输出 dt + dd,只有内联版要多包一层 div——这点由 provide 告诉子项,父组件不读子项。
4
+ */
5
+ type __VLS_Props = {
6
+ /** 带框(信息栏):外框 + 键列底色、居中,同现网 infobox 的 th;不带框的是档案里那种只有横线的版本 */
7
+ bordered?: boolean;
8
+ /** 内联:两三对短值一行放下、放不下换行,不画格子(所属势力 / 隐藏势力、获得方式 / 上线时间);与 bordered 同时写时以内联为准 */
9
+ inline?: boolean;
10
+ };
11
+ type __VLS_Slots = {
12
+ /** 若干 AkKvItem */
13
+ default?: () => unknown;
14
+ };
15
+ declare const __VLS_base: 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>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,20 @@
1
+ /** 键值表的一对(同 Naive 的 NDescriptionsItem):输出 <dt> + <dd>;在内联版 AkKv 里包一层 <div>。只能放在 AkKv 里 */
2
+ type __VLS_Props = {
3
+ /** 键(dt)文字;要带悬停解释 / 图标时改用 #term 插槽 */
4
+ term?: string;
5
+ };
6
+ type __VLS_Slots = {
7
+ /** 值(dd):文字、链接、标签、列表都行 */
8
+ default?: () => unknown;
9
+ /** 键(代替 term) */
10
+ term?: () => unknown;
11
+ };
12
+ declare const __VLS_base: 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>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,5 @@
1
+ import type { InjectionKey } from "vue";
2
+ /** AkKv 给 AkKvItem 的排法:内联版每对 dt + dd 要包一层 <div>(dl > div > dt + dd) */
3
+ export declare const kvKey: InjectionKey<{
4
+ readonly inline?: boolean;
5
+ }>;
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ /** 等级 */
3
+ value: number;
4
+ /** 外观:default 纯读数 · badge 主题灰块(24px 高,与阶段选择器 / 开关 / 信赖同一条线;是读数不是按钮,不反白) */
5
+ variant?: "default" | "badge";
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ variant: "default" | "badge";
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 材料表(= Naive 的 NDescriptions 那种「标签 → 内容」两列):左列阶段 / 等级,右列这一步要的材料。
3
+ * 里面放 AkMaterialsRow(一行)与 AkMaterialsDivider(横跨两列的分段说明)。
4
+ */
5
+ type __VLS_Slots = {
6
+ /** 若干 AkMaterialsRow / AkMaterialsDivider */
7
+ default?: () => unknown;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,14 @@
1
+ /** 材料表里横跨两列的分段说明(「达到精英阶段 1 后解锁」),只能直接放在 AkMaterials 里 */
2
+ type __VLS_Slots = {
3
+ /** 说明文字 */
4
+ default?: () => unknown;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ /** 左列文字(「1 → 2」「精英阶段 0→1」);要放精英化图标时用 #label 插槽 */
3
+ label?: string;
4
+ };
5
+ type __VLS_Slots = {
6
+ /** 这一步要的材料:若干 AkItem——没写 size 的按表里的规格画成 sm(40px) */
7
+ default?: () => unknown;
8
+ /** 左列内容(代替 label) */
9
+ label?: () => unknown;
10
+ };
11
+ declare const __VLS_base: 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>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,52 @@
1
+ import type { IconName } from "../../icons";
2
+ export type MessageVariant = "info" | "success" | "warning" | "danger" | "neutral" | "accent";
3
+ /** 界面 / 系统反馈的提示条(同 Naive 的 NAlert):左色条 + 淡底;编辑写在正文里的提示用 AkCbox */
4
+ type __VLS_Props = {
5
+ /** 外观(等级色):info 蓝(默认)· success 绿 · warning 黄 · danger 红 · neutral 灰 · accent 主色 */
6
+ variant?: MessageVariant;
7
+ /** 加粗的标题行(等级色);要带链接 / 格式时用 #header 插槽 */
8
+ title?: string;
9
+ /** 图标;默认按 variant:success → check,warning / danger → warn,其余 → info */
10
+ icon?: IconName;
11
+ /** 显示图标(同 Naive 的 show-icon) */
12
+ showIcon?: boolean;
13
+ /** 右侧 ✕ 关闭按钮:点了隐藏自己(v-model 变 false)并触发 close */
14
+ closable?: boolean;
15
+ /** 横幅:顶边 3px 色条、文字居中——站点公告 / 页顶通知 */
16
+ banner?: boolean;
17
+ /** 叠斜纹(危险横幅,配 variant="danger") */
18
+ stripes?: boolean;
19
+ };
20
+ type __VLS_Slots = {
21
+ /** 正文 */
22
+ default?: () => unknown;
23
+ /** 标题行(代替 title) */
24
+ header?: () => unknown;
25
+ /** 图标(代替 icon;放进 20px 的图标位,颜色跟等级色) */
26
+ icon?: () => unknown;
27
+ };
28
+ type __VLS_ModelProps = {
29
+ /** 是否显示;不绑定时自己管(关掉就没了),绑定了可以再打开 */
30
+ modelValue?: boolean;
31
+ };
32
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
33
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
+ "update:modelValue": (value: boolean) => any;
35
+ close: () => any;
36
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
37
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
38
+ onClose?: (() => any) | undefined;
39
+ }>, {
40
+ title: string;
41
+ variant: MessageVariant;
42
+ icon: IconName;
43
+ showIcon: boolean;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
47
+ export default _default;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,62 @@
1
+ export type ModuleColor = "red" | "blue" | "green" | "yellow" | "purple";
2
+ /**
3
+ * 模组卡(= 现网 {{模组}}):一张卡装完型号 + 名称 + 故事 + 三阶段表 + 解锁任务 + 解锁需求与材料。
4
+ * 结构照 Naive 的 NCard(#header-extra);故事默认只露 3 行,「全文阅读」展开同 NEllipsis 的 line-clamp + expand-trigger="click"——
5
+ * 这里用组件内状态(v-model)代替 CSS 版的 data-toggle-class,真皮肤上也能用。
6
+ */
7
+ type __VLS_Props = {
8
+ /** 模组名(h4) */
9
+ name: string;
10
+ /** 模组图地址(游戏 uniequip 图;原型证章放分支图标) */
11
+ src?: string;
12
+ /** 型号文字:SWO-X / Original … */
13
+ typeName?: string;
14
+ /** 型号图标地址(游戏模组类型小图标,放在型号文字前) */
15
+ typeIcon?: string;
16
+ /** 型号色(= 模板参数「类型颜色」,游戏模组类型底色):左侧粗色条 + 型号块 + 阶段条;不写 = 原型证章的灰 */
17
+ color?: ModuleColor;
18
+ /** 「说明 ⓘ」的悬停解释(调整效果先于潜能生效 …);不写不显示 */
19
+ hint?: string;
20
+ /** 故事可折叠:默认只露 3 行 +「全文阅读」开关;false 时全文展开、不出开关(原型证章那种短文) */
21
+ collapsible?: boolean;
22
+ /** 模组解锁任务(纯文本,一条一行);要链接关卡时改用 #tasks 插槽 */
23
+ tasks?: string[];
24
+ };
25
+ type __VLS_Slots = {
26
+ /** 故事(基础信息):若干 <p>,行内换行用 <br> */
27
+ default?: () => unknown;
28
+ /** 名称之后的附加内容(原型证章的说明标签等) */
29
+ "header-extra"?: () => unknown;
30
+ /** 三阶段表的行:若干 AkModuleStage */
31
+ stages?: () => unknown;
32
+ /** 解锁任务:若干 <li>(排在 tasks 之后) */
33
+ tasks?: () => unknown;
34
+ /** 解锁需求与材料表的行:若干 AkModuleUnlock */
35
+ unlock?: () => unknown;
36
+ };
37
+ type __VLS_ModelProps = {
38
+ /** 故事是否展开(「全文阅读」/「收起全文」) */
39
+ modelValue?: boolean;
40
+ };
41
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
42
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
+ "update:modelValue": (value: boolean) => any;
44
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
45
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
46
+ }>, {
47
+ src: string;
48
+ collapsible: boolean;
49
+ color: ModuleColor;
50
+ typeName: string;
51
+ typeIcon: string;
52
+ hint: string;
53
+ tasks: string[];
54
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
55
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
56
+ declare const _default: typeof __VLS_export;
57
+ export default _default;
58
+ type __VLS_WithSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -0,0 +1,22 @@
1
+ /** 模组三阶段表的一行(阶段条 · 属性加成 · 特性追加 / 天赋更新),放在 AkModule 的 #stages 插槽里 */
2
+ type __VLS_Props = {
3
+ /** 阶段 1–3:「STAGE n」+ 三段条点亮 n 段 */
4
+ stage: 1 | 2 | 3;
5
+ /** 属性加成:{ 攻击: "+50", 攻击速度: "+5" }(按写的顺序排,数值绿字) */
6
+ stats?: Record<string, string | number>;
7
+ /** 变化类别的反色小标:特性追加 / 天赋更新 */
8
+ kicker?: string;
9
+ };
10
+ type __VLS_Slots = {
11
+ /** 特性 / 天赋变化的描述(可带富文本) */
12
+ default?: () => unknown;
13
+ };
14
+ declare const __VLS_base: 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>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,20 @@
1
+ /** 模组解锁表的一行(阶段条 · 解锁需求 · 材料消耗),放在 AkModule 的 #unlock 插槽里 */
2
+ type __VLS_Props = {
3
+ /** 阶段 1–3:「STAGE n」+ 三段条点亮 n 段 */
4
+ stage: 1 | 2 | 3;
5
+ };
6
+ type __VLS_Slots = {
7
+ /** 材料消耗:一排 AkItem(AkItemList) */
8
+ default?: () => unknown;
9
+ /** 解锁需求:信赖 / 精英阶段与等级 / 任务标签,横排换行 */
10
+ requirement?: () => unknown;
11
+ };
12
+ declare const __VLS_base: 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>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Breaking news 横幅(游戏主界面那条):左边矩形红块 + 反色底的一行正文,太长时省略号截断。
3
+ * 天然只装一条——同时有好几条活动要列时用列表(首页「进行中的网页活动」),别往这里塞。
4
+ */
5
+ type __VLS_Props = {
6
+ /** 红块里的字(Bender 大写) */
7
+ title?: string;
8
+ };
9
+ type __VLS_Slots = {
10
+ /** 红块内容(代替 title) */
11
+ title?: () => unknown;
12
+ /** 正文:一行,可含链接 / 加粗;超长省略号截断 */
13
+ default?: () => unknown;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ title: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };