@quiteer/naive-extra 0.0.1

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 (171) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +86 -0
  3. package/dist/components/breadcrumb/index.d.ts +0 -0
  4. package/dist/components/breadcrumb/index.vue.d.ts +3 -0
  5. package/dist/components/breadcrumb/props.d.ts +0 -0
  6. package/dist/components/button/action/index.d.ts +3 -0
  7. package/dist/components/button/action/index.vue.d.ts +118 -0
  8. package/dist/components/button/action/props.d.ts +63 -0
  9. package/dist/components/button/action/utils.d.ts +8 -0
  10. package/dist/components/button/base/index.d.ts +3 -0
  11. package/dist/components/button/base/index.vue.d.ts +36 -0
  12. package/dist/components/button/base/props.d.ts +27 -0
  13. package/dist/components/button/index.d.ts +4 -0
  14. package/dist/components/button/types.d.ts +2 -0
  15. package/dist/components/form/helper.d.ts +11 -0
  16. package/dist/components/form/index.d.ts +3 -0
  17. package/dist/components/form/index.vue.d.ts +642 -0
  18. package/dist/components/form/props.d.ts +34 -0
  19. package/dist/components/icon/IconPicker.vue.d.ts +13 -0
  20. package/dist/components/icon/iconify.d.ts +25 -0
  21. package/dist/components/icon/index.d.ts +3 -0
  22. package/dist/components/icon/index.vue.d.ts +12 -0
  23. package/dist/components/layout/const.d.ts +22 -0
  24. package/dist/components/layout/context.d.ts +77 -0
  25. package/dist/components/layout/index.d.ts +5 -0
  26. package/dist/components/layout/index.vue.d.ts +80 -0
  27. package/dist/components/layout/layout-parts/AppBreadcrumb.vue.d.ts +3 -0
  28. package/dist/components/layout/layout-parts/AppFooter.vue.d.ts +18 -0
  29. package/dist/components/layout/layout-parts/AppHeader.vue.d.ts +18 -0
  30. package/dist/components/layout/layout-parts/AppLeftLogoInfo.vue.d.ts +3 -0
  31. package/dist/components/layout/layout-parts/AppMain.vue.d.ts +18 -0
  32. package/dist/components/layout/layout-parts/AppSidebar.vue.d.ts +4067 -0
  33. package/dist/components/layout/layout-parts/LayoutTransition.vue.d.ts +58 -0
  34. package/dist/components/layout/mode.d.ts +0 -0
  35. package/dist/components/layout/props.d.ts +35 -0
  36. package/dist/components/layout/types.d.ts +59 -0
  37. package/dist/components/layout/utils.d.ts +97 -0
  38. package/dist/components/provider/index.d.ts +3 -0
  39. package/dist/components/provider/index.vue.d.ts +19 -0
  40. package/dist/components/provider/props.d.ts +33 -0
  41. package/dist/components/search-bar/index.d.ts +3 -0
  42. package/dist/components/search-bar/index.vue.d.ts +1288 -0
  43. package/dist/components/search-bar/props.d.ts +15 -0
  44. package/dist/components/table/TableSetting.vue.d.ts +15 -0
  45. package/dist/components/table/index.d.ts +4 -0
  46. package/dist/components/table/index.vue.d.ts +17246 -0
  47. package/dist/components/table/props.d.ts +26 -0
  48. package/dist/components/table/useColumn.d.ts +15 -0
  49. package/dist/components/upload/enum.d.ts +18 -0
  50. package/dist/components/upload/index.d.ts +4 -0
  51. package/dist/components/upload/index.vue.d.ts +17 -0
  52. package/dist/components/upload/props.d.ts +7 -0
  53. package/dist/const/defaults.d.ts +7 -0
  54. package/dist/const/index.d.ts +2 -0
  55. package/dist/const/types.d.ts +134 -0
  56. package/dist/context/color.d.ts +13 -0
  57. package/dist/context/common.d.ts +117 -0
  58. package/dist/context/index.d.ts +41 -0
  59. package/dist/context/layout.d.ts +52 -0
  60. package/dist/context/loading-bar.d.ts +14 -0
  61. package/dist/context/locale.d.ts +143 -0
  62. package/dist/context/menu.d.ts +212 -0
  63. package/dist/context/message.d.ts +14 -0
  64. package/dist/context/notification.d.ts +14 -0
  65. package/dist/context/table.d.ts +917 -0
  66. package/dist/context/theme.d.ts +20 -0
  67. package/dist/hooks/index.d.ts +6 -0
  68. package/dist/hooks/useAdmin.d.ts +0 -0
  69. package/dist/hooks/useForm.d.ts +54 -0
  70. package/dist/hooks/useLayout.d.ts +116 -0
  71. package/dist/hooks/useProviderContext.d.ts +17 -0
  72. package/dist/hooks/useTable.d.ts +66 -0
  73. package/dist/hooks/useThemeOverrides.d.ts +8 -0
  74. package/dist/hooks/useUpload.d.ts +22 -0
  75. package/dist/index.css +36 -0
  76. package/dist/index.d.ts +29 -0
  77. package/dist/index.js +6771 -0
  78. package/dist/share/compact.d.ts +16 -0
  79. package/dist/share/index.d.ts +2 -0
  80. package/dist/share/menu.d.ts +0 -0
  81. package/dist/share/route.d.ts +0 -0
  82. package/dist/share/slot.d.ts +6 -0
  83. package/dist/utils/form.d.ts +0 -0
  84. package/dist/utils/index.d.ts +0 -0
  85. package/dist/utils/transformRoutes.d.ts +67 -0
  86. package/dist/utils/tree.d.ts +6 -0
  87. package/package.json +53 -0
  88. package/src/auto-imports.d.ts +73 -0
  89. package/src/components/breadcrumb/index.ts +0 -0
  90. package/src/components/breadcrumb/index.vue +0 -0
  91. package/src/components/breadcrumb/props.ts +0 -0
  92. package/src/components/button/action/index.ts +4 -0
  93. package/src/components/button/action/index.vue +313 -0
  94. package/src/components/button/action/props.ts +78 -0
  95. package/src/components/button/action/utils.ts +122 -0
  96. package/src/components/button/base/index.ts +4 -0
  97. package/src/components/button/base/index.vue +156 -0
  98. package/src/components/button/base/props.ts +29 -0
  99. package/src/components/button/index.ts +4 -0
  100. package/src/components/button/types.ts +2 -0
  101. package/src/components/form/helper.ts +73 -0
  102. package/src/components/form/index.ts +5 -0
  103. package/src/components/form/index.vue +243 -0
  104. package/src/components/form/props.ts +75 -0
  105. package/src/components/icon/IconPicker.vue +255 -0
  106. package/src/components/icon/iconify.ts +80 -0
  107. package/src/components/icon/index.ts +7 -0
  108. package/src/components/icon/index.vue +23 -0
  109. package/src/components/layout/const.ts +102 -0
  110. package/src/components/layout/context.ts +189 -0
  111. package/src/components/layout/index.ts +8 -0
  112. package/src/components/layout/index.vue +64 -0
  113. package/src/components/layout/layout-parts/AppBreadcrumb.vue +108 -0
  114. package/src/components/layout/layout-parts/AppFooter.vue +26 -0
  115. package/src/components/layout/layout-parts/AppHeader.vue +112 -0
  116. package/src/components/layout/layout-parts/AppLeftLogoInfo.vue +30 -0
  117. package/src/components/layout/layout-parts/AppMain.vue +34 -0
  118. package/src/components/layout/layout-parts/AppSidebar.vue +174 -0
  119. package/src/components/layout/layout-parts/LayoutTransition.vue +366 -0
  120. package/src/components/layout/mode.ts +0 -0
  121. package/src/components/layout/props.ts +36 -0
  122. package/src/components/layout/types.ts +79 -0
  123. package/src/components/layout/utils.ts +201 -0
  124. package/src/components/provider/index.ts +5 -0
  125. package/src/components/provider/index.vue +69 -0
  126. package/src/components/provider/props.ts +45 -0
  127. package/src/components/search-bar/index.ts +5 -0
  128. package/src/components/search-bar/index.vue +282 -0
  129. package/src/components/search-bar/props.ts +26 -0
  130. package/src/components/table/TableSetting.vue +253 -0
  131. package/src/components/table/index.ts +14 -0
  132. package/src/components/table/index.vue +179 -0
  133. package/src/components/table/props.ts +29 -0
  134. package/src/components/table/useColumn.ts +104 -0
  135. package/src/components/upload/enum.ts +21 -0
  136. package/src/components/upload/index.ts +9 -0
  137. package/src/components/upload/index.vue +267 -0
  138. package/src/components/upload/props.ts +8 -0
  139. package/src/components.d.ts +154 -0
  140. package/src/const/defaults.ts +94 -0
  141. package/src/const/index.ts +2 -0
  142. package/src/const/types.ts +139 -0
  143. package/src/context/color.ts +53 -0
  144. package/src/context/common.ts +27 -0
  145. package/src/context/index.ts +141 -0
  146. package/src/context/layout.ts +34 -0
  147. package/src/context/loading-bar.ts +26 -0
  148. package/src/context/locale.ts +22 -0
  149. package/src/context/menu.ts +26 -0
  150. package/src/context/message.ts +30 -0
  151. package/src/context/notification.ts +29 -0
  152. package/src/context/table.ts +32 -0
  153. package/src/context/theme.ts +35 -0
  154. package/src/hooks/index.ts +6 -0
  155. package/src/hooks/useAdmin.ts +0 -0
  156. package/src/hooks/useForm.ts +272 -0
  157. package/src/hooks/useLayout.ts +300 -0
  158. package/src/hooks/useProviderContext.ts +47 -0
  159. package/src/hooks/useTable.ts +241 -0
  160. package/src/hooks/useThemeOverrides.ts +18 -0
  161. package/src/hooks/useUpload.ts +82 -0
  162. package/src/index.ts +59 -0
  163. package/src/share/compact.ts +35 -0
  164. package/src/share/index.ts +2 -0
  165. package/src/share/menu.ts +0 -0
  166. package/src/share/route.ts +0 -0
  167. package/src/share/slot.ts +29 -0
  168. package/src/utils/form.ts +0 -0
  169. package/src/utils/index.ts +0 -0
  170. package/src/utils/transformRoutes.ts +163 -0
  171. package/src/utils/tree.ts +31 -0
@@ -0,0 +1,212 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { NaiveExtraThemeConfig } from '../const';
3
+ import { ExtractThemeOverrides } from 'naive-ui/es/_mixins/use-theme';
4
+ import { Theme } from 'naive-ui/es/_mixins';
5
+ /**
6
+ * 菜单组件样式覆盖模块
7
+ *
8
+ * @param mergedConfig - 合并后的响应式配置
9
+ * @returns 包含菜单组件主题覆盖对象的集合
10
+ */
11
+ export declare function useMenuModule(mergedConfig: ComputedRef<Required<NaiveExtraThemeConfig>>): {
12
+ menuOverrides: ComputedRef< ExtractThemeOverrides< Theme<"Menu", {
13
+ itemColorHoverInverted: string;
14
+ itemColorActiveInverted: string;
15
+ itemColorActiveHoverInverted: string;
16
+ itemColorActiveCollapsedInverted: string;
17
+ itemTextColorInverted: string;
18
+ itemTextColorHoverInverted: string;
19
+ itemTextColorChildActiveInverted: string;
20
+ itemTextColorChildActiveHoverInverted: string;
21
+ itemTextColorActiveInverted: string;
22
+ itemTextColorActiveHoverInverted: string;
23
+ itemTextColorHorizontalInverted: string;
24
+ itemTextColorHoverHorizontalInverted: string;
25
+ itemTextColorChildActiveHorizontalInverted: string;
26
+ itemTextColorChildActiveHoverHorizontalInverted: string;
27
+ itemTextColorActiveHorizontalInverted: string;
28
+ itemTextColorActiveHoverHorizontalInverted: string;
29
+ itemIconColorInverted: string;
30
+ itemIconColorHoverInverted: string;
31
+ itemIconColorActiveInverted: string;
32
+ itemIconColorActiveHoverInverted: string;
33
+ itemIconColorChildActiveInverted: string;
34
+ itemIconColorChildActiveHoverInverted: string;
35
+ itemIconColorCollapsedInverted: string;
36
+ itemIconColorHorizontalInverted: string;
37
+ itemIconColorHoverHorizontalInverted: string;
38
+ itemIconColorActiveHorizontalInverted: string;
39
+ itemIconColorActiveHoverHorizontalInverted: string;
40
+ itemIconColorChildActiveHorizontalInverted: string;
41
+ itemIconColorChildActiveHoverHorizontalInverted: string;
42
+ arrowColorInverted: string;
43
+ arrowColorHoverInverted: string;
44
+ arrowColorActiveInverted: string;
45
+ arrowColorActiveHoverInverted: string;
46
+ arrowColorChildActiveInverted: string;
47
+ arrowColorChildActiveHoverInverted: string;
48
+ groupTextColorInverted: string;
49
+ borderRadius: string;
50
+ color: string;
51
+ groupTextColor: string;
52
+ itemColorHover: string;
53
+ itemColorActive: string;
54
+ itemColorActiveHover: string;
55
+ itemColorActiveCollapsed: string;
56
+ itemTextColor: string;
57
+ itemTextColorHover: string;
58
+ itemTextColorActive: string;
59
+ itemTextColorActiveHover: string;
60
+ itemTextColorChildActive: string;
61
+ itemTextColorChildActiveHover: string;
62
+ itemTextColorHorizontal: string;
63
+ itemTextColorHoverHorizontal: string;
64
+ itemTextColorActiveHorizontal: string;
65
+ itemTextColorActiveHoverHorizontal: string;
66
+ itemTextColorChildActiveHorizontal: string;
67
+ itemTextColorChildActiveHoverHorizontal: string;
68
+ itemIconColor: string;
69
+ itemIconColorHover: string;
70
+ itemIconColorActive: string;
71
+ itemIconColorActiveHover: string;
72
+ itemIconColorChildActive: string;
73
+ itemIconColorChildActiveHover: string;
74
+ itemIconColorCollapsed: string;
75
+ itemIconColorHorizontal: string;
76
+ itemIconColorHoverHorizontal: string;
77
+ itemIconColorActiveHorizontal: string;
78
+ itemIconColorActiveHoverHorizontal: string;
79
+ itemIconColorChildActiveHorizontal: string;
80
+ itemIconColorChildActiveHoverHorizontal: string;
81
+ itemHeight: string;
82
+ arrowColor: string;
83
+ arrowColorHover: string;
84
+ arrowColorActive: string;
85
+ arrowColorActiveHover: string;
86
+ arrowColorChildActive: string;
87
+ arrowColorChildActiveHover: string;
88
+ colorInverted: string;
89
+ borderColorHorizontal: string;
90
+ fontSize: string;
91
+ dividerColor: string;
92
+ }, {
93
+ Tooltip: Theme<"Tooltip", {
94
+ borderRadius: string;
95
+ boxShadow: string;
96
+ color: string;
97
+ textColor: string;
98
+ padding: string;
99
+ }, {
100
+ Popover: Theme<"Popover", {
101
+ fontSize: string;
102
+ borderRadius: string;
103
+ color: string;
104
+ dividerColor: string;
105
+ textColor: string;
106
+ boxShadow: string;
107
+ space: string;
108
+ spaceArrow: string;
109
+ arrowOffset: string;
110
+ arrowOffsetVertical: string;
111
+ arrowHeight: string;
112
+ padding: string;
113
+ }, {
114
+ Scrollbar: Theme<"Scrollbar", {
115
+ height: string;
116
+ width: string;
117
+ borderRadius: string;
118
+ color: string;
119
+ colorHover: string;
120
+ railInsetHorizontalBottom: string;
121
+ railInsetHorizontalTop: string;
122
+ railInsetVerticalRight: string;
123
+ railInsetVerticalLeft: string;
124
+ railColor: string;
125
+ }, any>;
126
+ }>;
127
+ }>;
128
+ Dropdown: Theme<"Dropdown", {
129
+ optionHeightSmall: string;
130
+ optionHeightMedium: string;
131
+ optionHeightLarge: string;
132
+ optionHeightHuge: string;
133
+ borderRadius: string;
134
+ fontSizeSmall: string;
135
+ fontSizeMedium: string;
136
+ fontSizeLarge: string;
137
+ fontSizeHuge: string;
138
+ optionTextColor: string;
139
+ optionTextColorHover: string;
140
+ optionTextColorActive: string;
141
+ optionTextColorChildActive: string;
142
+ color: string;
143
+ dividerColor: string;
144
+ suffixColor: string;
145
+ prefixColor: string;
146
+ optionColorHover: string;
147
+ optionColorActive: string;
148
+ groupHeaderTextColor: string;
149
+ optionTextColorInverted: string;
150
+ optionTextColorHoverInverted: string;
151
+ optionTextColorActiveInverted: string;
152
+ optionTextColorChildActiveInverted: string;
153
+ colorInverted: string;
154
+ dividerColorInverted: string;
155
+ suffixColorInverted: string;
156
+ prefixColorInverted: string;
157
+ optionColorHoverInverted: string;
158
+ optionColorActiveInverted: string;
159
+ groupHeaderTextColorInverted: string;
160
+ optionOpacityDisabled: string;
161
+ padding: string;
162
+ optionIconSizeSmall: string;
163
+ optionIconSizeMedium: string;
164
+ optionIconSizeLarge: string;
165
+ optionIconSizeHuge: string;
166
+ optionSuffixWidthSmall: string;
167
+ optionSuffixWidthMedium: string;
168
+ optionSuffixWidthLarge: string;
169
+ optionSuffixWidthHuge: string;
170
+ optionIconSuffixWidthSmall: string;
171
+ optionIconSuffixWidthMedium: string;
172
+ optionIconSuffixWidthLarge: string;
173
+ optionIconSuffixWidthHuge: string;
174
+ optionPrefixWidthSmall: string;
175
+ optionPrefixWidthMedium: string;
176
+ optionPrefixWidthLarge: string;
177
+ optionPrefixWidthHuge: string;
178
+ optionIconPrefixWidthSmall: string;
179
+ optionIconPrefixWidthMedium: string;
180
+ optionIconPrefixWidthLarge: string;
181
+ optionIconPrefixWidthHuge: string;
182
+ }, {
183
+ Popover: Theme<"Popover", {
184
+ fontSize: string;
185
+ borderRadius: string;
186
+ color: string;
187
+ dividerColor: string;
188
+ textColor: string;
189
+ boxShadow: string;
190
+ space: string;
191
+ spaceArrow: string;
192
+ arrowOffset: string;
193
+ arrowOffsetVertical: string;
194
+ arrowHeight: string;
195
+ padding: string;
196
+ }, {
197
+ Scrollbar: Theme<"Scrollbar", {
198
+ height: string;
199
+ width: string;
200
+ borderRadius: string;
201
+ color: string;
202
+ colorHover: string;
203
+ railInsetHorizontalBottom: string;
204
+ railInsetHorizontalTop: string;
205
+ railInsetVerticalRight: string;
206
+ railInsetVerticalLeft: string;
207
+ railColor: string;
208
+ }, any>;
209
+ }>;
210
+ }>;
211
+ }> | undefined> | undefined>;
212
+ };
@@ -0,0 +1,14 @@
1
+ import { MessageProviderProps } from 'naive-ui';
2
+ import { ComputedRef } from 'vue';
3
+ import { NaiveExtraThemeConfig } from '../const';
4
+ /**
5
+ * 消息 (Message) 配置模块
6
+ *
7
+ * 负责管理 NMessageProvider 的全局展示逻辑
8
+ *
9
+ * @param mergedConfig - 合并后的完整主题配置
10
+ * @returns 包含 messageProviderProps 的计算引用
11
+ */
12
+ export declare function useMessageModule(mergedConfig: ComputedRef<Required<NaiveExtraThemeConfig>>): {
13
+ messageProviderProps: ComputedRef<MessageProviderProps>;
14
+ };
@@ -0,0 +1,14 @@
1
+ import { NotificationProviderProps } from 'naive-ui';
2
+ import { ComputedRef } from 'vue';
3
+ import { NaiveExtraThemeConfig } from '../const';
4
+ /**
5
+ * 通知 (Notification) 配置模块
6
+ *
7
+ * 负责管理 NNotificationProvider 的全局展示逻辑
8
+ *
9
+ * @param mergedConfig - 合并后的完整主题配置
10
+ * @returns 包含 notificationProviderProps 的计算引用
11
+ */
12
+ export declare function useNotificationModule(mergedConfig: ComputedRef<Required<NaiveExtraThemeConfig>>): {
13
+ notificationProviderProps: ComputedRef<NotificationProviderProps>;
14
+ };