bkui-vue 0.0.1-beta.1 → 0.0.1-beta.13

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 (348) hide show
  1. package/LICENSE.txt +22 -0
  2. package/README.md +55 -0
  3. package/dist/bkui-vue.cjs.js +9957 -257
  4. package/dist/bkui-vue.esm.js +9919 -257
  5. package/dist/bkui-vue.umd.js +9967 -267
  6. package/dist/style.css +4010 -428
  7. package/lib/alert/alert.css +75 -0
  8. package/lib/alert/alert.d.ts +53 -0
  9. package/lib/alert/alert.less +110 -0
  10. package/lib/alert/alert.variable.css +161 -0
  11. package/lib/alert/index.d.ts +144 -0
  12. package/lib/alert/index.js +1 -0
  13. package/lib/animate-number/animate-number.d.ts +22 -0
  14. package/lib/animate-number/index.d.ts +77 -0
  15. package/lib/animate-number/index.js +1 -0
  16. package/lib/backtop/backtop.css +42 -0
  17. package/lib/backtop/backtop.d.ts +46 -0
  18. package/lib/backtop/backtop.less +18 -0
  19. package/lib/backtop/backtop.variable.css +128 -0
  20. package/lib/backtop/index.d.ts +110 -0
  21. package/lib/backtop/index.js +1 -0
  22. package/lib/badge/badge.css +121 -0
  23. package/lib/badge/badge.d.ts +70 -0
  24. package/lib/badge/badge.less +137 -0
  25. package/lib/badge/badge.variable.css +207 -0
  26. package/lib/badge/index.d.ts +149 -0
  27. package/lib/badge/index.js +1 -0
  28. package/lib/breadcrumb/breadcrumb-item.d.ts +32 -0
  29. package/lib/breadcrumb/breadcrumb.css +59 -0
  30. package/lib/breadcrumb/breadcrumb.d.ts +26 -0
  31. package/lib/breadcrumb/breadcrumb.less +54 -0
  32. package/lib/breadcrumb/breadcrumb.variable.css +145 -0
  33. package/lib/breadcrumb/index.d.ts +122 -0
  34. package/lib/breadcrumb/index.js +1 -0
  35. package/lib/breadcrumb/props.d.ts +4 -0
  36. package/lib/button/button-group.d.ts +8 -0
  37. package/lib/button/button.css +242 -22
  38. package/lib/button/button.d.ts +114 -0
  39. package/lib/button/button.less +180 -36
  40. package/lib/button/button.variable.css +339 -0
  41. package/lib/button/index.d.ts +170 -0
  42. package/lib/button/index.js +1 -206
  43. package/lib/card/card.css +63 -0
  44. package/lib/card/card.d.ts +54 -0
  45. package/lib/card/card.less +44 -0
  46. package/lib/card/card.variable.css +149 -0
  47. package/lib/card/index.d.ts +127 -0
  48. package/lib/card/index.js +1 -0
  49. package/lib/checkbox/checkbox-group.d.ts +44 -0
  50. package/lib/checkbox/checkbox.css +54 -125
  51. package/lib/checkbox/checkbox.d.ts +105 -0
  52. package/lib/checkbox/checkbox.less +66 -6
  53. package/lib/checkbox/checkbox.variable.css +150 -0
  54. package/lib/checkbox/common.d.ts +13 -0
  55. package/lib/checkbox/index.d.ts +221 -0
  56. package/lib/checkbox/index.js +1 -64
  57. package/lib/checkbox/type.d.ts +19 -0
  58. package/lib/collapse/collapse.css +30 -0
  59. package/lib/collapse/collapse.d.ts +74 -0
  60. package/lib/collapse/collapse.less +37 -0
  61. package/lib/collapse/collapse.variable.css +30 -0
  62. package/lib/collapse/index.d.ts +130 -0
  63. package/lib/collapse/index.js +1 -0
  64. package/lib/components.d.ts +31 -0
  65. package/lib/date-picker/date-picker.css +407 -0
  66. package/lib/date-picker/date-picker.d.ts +357 -0
  67. package/lib/date-picker/date-picker.less +526 -0
  68. package/lib/date-picker/date-picker.variable.css +493 -0
  69. package/lib/date-picker/fecha.d.ts +6 -0
  70. package/lib/date-picker/index.d.ts +525 -0
  71. package/lib/date-picker/index.js +1 -0
  72. package/lib/date-picker/interface.d.ts +22 -0
  73. package/lib/date-picker/utils.d.ts +97 -0
  74. package/lib/dialog/dialog.css +68 -0
  75. package/lib/dialog/dialog.d.ts +83 -0
  76. package/lib/dialog/dialog.less +80 -0
  77. package/lib/dialog/dialog.variable.css +68 -0
  78. package/lib/dialog/index.d.ts +183 -0
  79. package/lib/dialog/index.js +1 -0
  80. package/lib/directives/clickoutside.d.ts +23 -0
  81. package/lib/directives/index.d.ts +3 -0
  82. package/lib/directives/index.js +15 -0
  83. package/lib/directives/mousewheel.d.ts +3 -0
  84. package/lib/directives/tooltips.d.ts +17 -0
  85. package/lib/divider/divider.css +38 -0
  86. package/lib/divider/divider.d.ts +40 -0
  87. package/lib/divider/divider.less +53 -0
  88. package/lib/divider/divider.variable.css +124 -0
  89. package/lib/divider/index.d.ts +110 -0
  90. package/lib/divider/index.js +1 -0
  91. package/lib/dropdown/dropdown-item.d.ts +18 -0
  92. package/lib/dropdown/dropdown-menu.d.ts +15 -0
  93. package/lib/dropdown/dropdown.css +43 -0
  94. package/lib/dropdown/dropdown.d.ts +49 -0
  95. package/lib/dropdown/dropdown.less +54 -0
  96. package/lib/dropdown/dropdown.variable.css +129 -0
  97. package/lib/dropdown/index.d.ts +160 -0
  98. package/lib/dropdown/index.js +1 -0
  99. package/lib/exception/exception.css +32 -0
  100. package/lib/exception/exception.d.ts +24 -0
  101. package/lib/exception/exception.less +39 -0
  102. package/lib/exception/exception.variable.css +118 -0
  103. package/lib/exception/index.d.ts +88 -0
  104. package/lib/exception/index.js +1 -0
  105. package/lib/fixed-navbar/fixed-navbar.css +42 -0
  106. package/lib/fixed-navbar/fixed-navbar.d.ts +28 -0
  107. package/lib/fixed-navbar/fixed-navbar.less +53 -0
  108. package/lib/fixed-navbar/fixed-navbar.variable.css +128 -0
  109. package/lib/fixed-navbar/index.d.ts +88 -0
  110. package/lib/fixed-navbar/index.js +1 -0
  111. package/lib/form/common.d.ts +3 -0
  112. package/lib/form/form-item.d.ts +140 -0
  113. package/lib/form/form.css +39 -0
  114. package/lib/form/form.d.ts +76 -0
  115. package/lib/form/form.less +50 -0
  116. package/lib/form/form.variable.css +39 -0
  117. package/lib/form/index.d.ts +4 -0
  118. package/lib/form/index.js +1 -0
  119. package/lib/form/type.d.ts +21 -0
  120. package/lib/form/validator.d.ts +8 -0
  121. package/lib/icon/angle-double-left.d.ts +4 -0
  122. package/lib/icon/angle-double-right.d.ts +4 -0
  123. package/lib/icon/angle-down-line.d.ts +4 -0
  124. package/lib/icon/angle-down.d.ts +4 -0
  125. package/lib/icon/angle-left.d.ts +4 -0
  126. package/lib/icon/angle-right.d.ts +4 -0
  127. package/lib/icon/angle-up.d.ts +4 -0
  128. package/lib/icon/circle.d.ts +4 -0
  129. package/lib/icon/close.d.ts +4 -0
  130. package/lib/icon/code.d.ts +4 -0
  131. package/lib/icon/cog-shape.d.ts +4 -0
  132. package/lib/icon/collapse-left.d.ts +4 -0
  133. package/lib/icon/copy.d.ts +4 -0
  134. package/lib/icon/done.d.ts +4 -0
  135. package/lib/icon/down-shape.d.ts +4 -0
  136. package/lib/icon/down-small.d.ts +4 -0
  137. package/lib/icon/error.d.ts +4 -0
  138. package/lib/icon/eye.d.ts +4 -0
  139. package/lib/icon/folder-open.d.ts +4 -0
  140. package/lib/icon/folder-shape-open.d.ts +4 -0
  141. package/lib/icon/folder-shape.d.ts +4 -0
  142. package/lib/icon/folder.d.ts +4 -0
  143. package/lib/icon/help-document-fill.d.ts +4 -0
  144. package/lib/icon/help-fill.d.ts +4 -0
  145. package/lib/icon/help.d.ts +4 -0
  146. package/lib/icon/icon.d.ts +12 -0
  147. package/lib/icon/index.d.ts +38 -0
  148. package/lib/icon/index.js +15 -0
  149. package/lib/icon/info-line.d.ts +4 -0
  150. package/lib/icon/info.d.ts +4 -0
  151. package/lib/icon/play-shape.d.ts +4 -0
  152. package/lib/icon/plus.d.ts +4 -0
  153. package/lib/icon/right-shape.d.ts +4 -0
  154. package/lib/icon/search.d.ts +4 -0
  155. package/lib/icon/share.d.ts +4 -0
  156. package/lib/icon/success.d.ts +4 -0
  157. package/lib/icon/switcher-loading.d.ts +4 -0
  158. package/lib/icon/text-file.d.ts +4 -0
  159. package/lib/icon/tree-application-shape.d.ts +4 -0
  160. package/lib/icon/unvisible.d.ts +4 -0
  161. package/lib/icon/warn.d.ts +4 -0
  162. package/lib/index.d.ts +3 -0
  163. package/lib/input/index.d.ts +275 -0
  164. package/lib/input/index.js +15 -60
  165. package/lib/input/input.css +114 -148
  166. package/lib/input/input.d.ts +185 -0
  167. package/lib/input/input.less +107 -40
  168. package/lib/input/input.variable.css +218 -0
  169. package/lib/link/index.d.ts +116 -0
  170. package/lib/link/index.js +1 -0
  171. package/lib/link/link.css +55 -0
  172. package/lib/link/link.d.ts +46 -0
  173. package/lib/link/link.less +74 -0
  174. package/lib/link/link.variable.css +141 -0
  175. package/lib/loading/index.d.ts +125 -0
  176. package/lib/loading/index.js +1 -0
  177. package/lib/loading/loading.css +225 -0
  178. package/lib/loading/loading.d.ts +64 -0
  179. package/lib/loading/loading.less +181 -0
  180. package/lib/loading/loading.variable.css +311 -0
  181. package/lib/menu/index.d.ts +169 -0
  182. package/lib/menu/index.js +1 -0
  183. package/lib/menu/menu-group.d.ts +13 -0
  184. package/lib/menu/menu-item.d.ts +15 -0
  185. package/lib/menu/menu.css +182 -0
  186. package/lib/menu/menu.d.ts +60 -0
  187. package/lib/menu/menu.less +180 -0
  188. package/lib/menu/menu.variable.css +268 -0
  189. package/lib/menu/submenu.d.ts +21 -0
  190. package/lib/menu/submenu.less +5 -0
  191. package/lib/menu/submenu.variable.css +86 -0
  192. package/lib/menu/utils.d.ts +41 -0
  193. package/lib/message/index.d.ts +2 -0
  194. package/lib/message/index.js +1 -0
  195. package/lib/message/message.css +53 -0
  196. package/lib/message/message.less +61 -0
  197. package/lib/message/message.variable.css +139 -0
  198. package/lib/message/messageConstructor.d.ts +61 -0
  199. package/lib/modal/index.d.ts +155 -0
  200. package/lib/modal/index.js +1 -0
  201. package/lib/modal/modal.css +11 -0
  202. package/lib/modal/modal.d.ts +47 -0
  203. package/lib/modal/modal.less +12 -0
  204. package/lib/modal/modal.variable.css +11 -0
  205. package/lib/modal/props.mixin.d.ts +22 -0
  206. package/lib/navigation/index.d.ts +2 -0
  207. package/lib/navigation/index.js +1 -0
  208. package/lib/navigation/navigation-title.d.ts +22 -0
  209. package/lib/navigation/navigation.css +184 -0
  210. package/lib/navigation/navigation.d.ts +94 -0
  211. package/lib/navigation/navigation.less +210 -0
  212. package/lib/navigation/navigation.variable.css +270 -0
  213. package/lib/notify/index.d.ts +2 -0
  214. package/lib/notify/index.js +1 -0
  215. package/lib/notify/notify.css +49 -0
  216. package/lib/notify/notify.less +58 -0
  217. package/lib/notify/notify.variable.css +135 -0
  218. package/lib/notify/notifyConstructor.d.ts +75 -0
  219. package/lib/popover/index.d.ts +202 -0
  220. package/lib/popover/index.js +1 -0
  221. package/lib/popover/popover.css +55 -0
  222. package/lib/popover/popover.d.ts +88 -0
  223. package/lib/popover/popover.less +70 -0
  224. package/lib/popover/popover.variable.css +141 -0
  225. package/lib/preset.d.ts +8 -0
  226. package/lib/progress/circle.d.ts +6 -0
  227. package/lib/progress/index.d.ts +228 -0
  228. package/lib/progress/index.js +1 -0
  229. package/lib/progress/line.d.ts +6 -0
  230. package/lib/progress/progress.css +97 -0
  231. package/lib/progress/progress.d.ts +118 -0
  232. package/lib/progress/progress.less +94 -0
  233. package/lib/progress/progress.variable.css +183 -0
  234. package/lib/radio/common.d.ts +13 -0
  235. package/lib/radio/index.d.ts +228 -0
  236. package/lib/radio/index.js +1 -61
  237. package/lib/radio/radio-button.d.ts +83 -0
  238. package/lib/radio/radio-group.d.ts +40 -0
  239. package/lib/radio/radio.css +128 -125
  240. package/lib/radio/radio.d.ts +77 -0
  241. package/lib/radio/radio.less +173 -20
  242. package/lib/radio/radio.variable.css +224 -0
  243. package/lib/radio/type.d.ts +9 -0
  244. package/lib/rate/index.d.ts +101 -0
  245. package/lib/rate/index.js +1 -0
  246. package/lib/rate/rate.css +10 -0
  247. package/lib/rate/rate.d.ts +29 -0
  248. package/lib/rate/rate.less +11 -0
  249. package/lib/rate/rate.variable.css +10 -0
  250. package/lib/rate/star.css +24 -0
  251. package/lib/rate/star.d.ts +57 -0
  252. package/lib/rate/star.less +29 -0
  253. package/lib/rate/star.variable.css +24 -0
  254. package/lib/select/common.d.ts +28 -0
  255. package/lib/select/index.d.ts +950 -0
  256. package/lib/select/index.js +15 -0
  257. package/lib/select/option.d.ts +32 -0
  258. package/lib/select/optionGroup.d.ts +115 -0
  259. package/lib/select/select.css +157 -0
  260. package/lib/select/select.d.ts +285 -0
  261. package/lib/select/select.less +203 -0
  262. package/lib/select/select.variable.css +243 -0
  263. package/lib/shared/bk-helper-core.d.ts +87 -0
  264. package/lib/shared/bk-mask-manager.d.ts +47 -0
  265. package/lib/shared/bk-pop-manager.d.ts +19 -0
  266. package/lib/shared/bk-popover.d.ts +86 -0
  267. package/lib/shared/index.d.ts +51 -0
  268. package/lib/shared/index.js +1 -13
  269. package/lib/shared/scrollbar-width.d.ts +1 -0
  270. package/lib/shared/vue-types.d.ts +115 -0
  271. package/lib/shared/z-index-manager.d.ts +93 -0
  272. package/lib/sideslider/index.d.ts +139 -0
  273. package/lib/sideslider/index.js +1 -0
  274. package/lib/sideslider/sideslider.css +69 -0
  275. package/lib/sideslider/sideslider.d.ts +54 -0
  276. package/lib/sideslider/sideslider.less +86 -0
  277. package/lib/sideslider/sideslider.variable.css +155 -0
  278. package/lib/slider/index.d.ts +27 -0
  279. package/lib/slider/index.js +15 -0
  280. package/lib/slider/slider-button.d.ts +72 -0
  281. package/lib/slider/slider.css +149 -0
  282. package/lib/slider/slider.d.ts +159 -0
  283. package/lib/slider/slider.less +179 -0
  284. package/lib/slider/slider.variable.css +235 -0
  285. package/lib/steps/index.d.ts +198 -0
  286. package/lib/steps/index.js +15 -0
  287. package/lib/steps/steps.css +285 -0
  288. package/lib/steps/steps.d.ts +148 -0
  289. package/lib/steps/steps.less +320 -0
  290. package/lib/steps/steps.variable.css +371 -0
  291. package/lib/styles/index.d.ts +38 -0
  292. package/lib/styles/index.js +1 -0
  293. package/lib/styles/mixins/animate.css +21 -0
  294. package/lib/styles/mixins/animate.less +27 -0
  295. package/lib/styles/mixins/animate.variable.css +21 -0
  296. package/lib/styles/mixins/ellipsis.less +8 -0
  297. package/lib/styles/mixins/mixins.css +21 -0
  298. package/lib/styles/mixins/mixins.less +2 -0
  299. package/lib/styles/mixins/mixins.variable.css +21 -0
  300. package/lib/styles/mixins/popper.css +43 -0
  301. package/lib/styles/mixins/popper.less +52 -0
  302. package/lib/styles/mixins/popper.variable.css +43 -0
  303. package/lib/styles/mixins/size.less +10 -1
  304. package/lib/styles/reset.css +273 -0
  305. package/lib/styles/reset.less +313 -0
  306. package/lib/styles/reset.variable.css +273 -0
  307. package/lib/styles/themes/themes.less +84 -284
  308. package/lib/switcher/index.d.ts +222 -0
  309. package/lib/switcher/index.js +1 -0
  310. package/lib/switcher/switcher.css +258 -0
  311. package/lib/switcher/switcher.d.ts +97 -0
  312. package/lib/switcher/switcher.less +302 -0
  313. package/lib/switcher/switcher.variable.css +344 -0
  314. package/lib/tab/index.d.ts +416 -0
  315. package/lib/tab/index.js +1 -0
  316. package/lib/tab/tab-nav.d.ts +154 -0
  317. package/lib/tab/tab-panel.d.ts +46 -0
  318. package/lib/tab/tab.css +147 -0
  319. package/lib/tab/tab.d.ts +131 -0
  320. package/lib/tab/tab.less +221 -0
  321. package/lib/tab/tab.variable.css +233 -0
  322. package/lib/table/index.d.ts +119 -0
  323. package/lib/table/index.js +1 -0
  324. package/lib/table/props.d.ts +41 -0
  325. package/lib/table/render.d.ts +47 -0
  326. package/lib/table/table.css +44 -0
  327. package/lib/table/table.d.ts +26 -0
  328. package/lib/table/table.less +67 -0
  329. package/lib/table/table.variable.css +130 -0
  330. package/lib/table/utils.d.ts +22 -0
  331. package/lib/tag/index.d.ts +338 -0
  332. package/lib/tag/index.js +1 -0
  333. package/lib/tag/tag.d.ts +54 -0
  334. package/lib/tag/tag.less +5 -0
  335. package/lib/tag/tag.variable.css +86 -0
  336. package/lib/tree/index.d.ts +149 -0
  337. package/lib/tree/index.js +1 -0
  338. package/lib/tree/tree.css +35 -0
  339. package/lib/tree/tree.d.ts +58 -0
  340. package/lib/tree/tree.less +55 -0
  341. package/lib/tree/tree.variable.css +35 -0
  342. package/lib/tree/util.d.ts +89 -0
  343. package/lib/use-message.d.ts +2 -0
  344. package/package.json +92 -40
  345. package/lib/styles/mixins/size.css +0 -0
  346. package/lib/styles/themes/themes.css +0 -119
  347. package/lib/styles/themes/variables.css +0 -27
  348. package/lib/styles/themes/variables.less +0 -36
@@ -0,0 +1,122 @@
1
+ import BreadcrumbItem from './breadcrumb-item';
2
+ declare const BkBreadcrumb: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ extCls: string;
8
+ separator: string;
9
+ separatorClass: string;
10
+ }> & Omit<Readonly<{
11
+ extCls?: unknown;
12
+ separator?: unknown;
13
+ separatorClass?: unknown;
14
+ } & {
15
+ extCls: string;
16
+ separator: string;
17
+ separatorClass: string;
18
+ } & {}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "extCls" | "separator" | "separatorClass">;
19
+ $attrs: {
20
+ [x: string]: unknown;
21
+ };
22
+ $refs: {
23
+ [x: string]: unknown;
24
+ };
25
+ $slots: Readonly<{
26
+ [name: string]: import("vue").Slot;
27
+ }>;
28
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
29
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
30
+ $emit: (event: string, ...args: any[]) => void;
31
+ $el: any;
32
+ $options: import("vue").ComponentOptionsBase<Readonly<{
33
+ extCls?: unknown;
34
+ separator?: unknown;
35
+ separatorClass?: unknown;
36
+ } & {
37
+ extCls: string;
38
+ separator: string;
39
+ separatorClass: string;
40
+ } & {}> & {}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
41
+ extCls: string;
42
+ separator: string;
43
+ separatorClass: string;
44
+ }> & {
45
+ beforeCreate?: (() => void) | (() => void)[];
46
+ created?: (() => void) | (() => void)[];
47
+ beforeMount?: (() => void) | (() => void)[];
48
+ mounted?: (() => void) | (() => void)[];
49
+ beforeUpdate?: (() => void) | (() => void)[];
50
+ updated?: (() => void) | (() => void)[];
51
+ activated?: (() => void) | (() => void)[];
52
+ deactivated?: (() => void) | (() => void)[];
53
+ beforeDestroy?: (() => void) | (() => void)[];
54
+ beforeUnmount?: (() => void) | (() => void)[];
55
+ destroyed?: (() => void) | (() => void)[];
56
+ unmounted?: (() => void) | (() => void)[];
57
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
58
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
59
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
60
+ };
61
+ $forceUpdate: () => void;
62
+ $nextTick: typeof import("vue").nextTick;
63
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
64
+ } & Readonly<{
65
+ extCls?: unknown;
66
+ separator?: unknown;
67
+ separatorClass?: unknown;
68
+ } & {
69
+ extCls: string;
70
+ separator: string;
71
+ separatorClass: string;
72
+ } & {}> & {} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
73
+ __isFragment?: never;
74
+ __isTeleport?: never;
75
+ __isSuspense?: never;
76
+ } & import("vue").ComponentOptionsBase<Readonly<{
77
+ extCls?: unknown;
78
+ separator?: unknown;
79
+ separatorClass?: unknown;
80
+ } & {
81
+ extCls: string;
82
+ separator: string;
83
+ separatorClass: string;
84
+ } & {}> & {}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
85
+ extCls: string;
86
+ separator: string;
87
+ separatorClass: string;
88
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
89
+ BreadcrumbItem: import("vue").DefineComponent<{
90
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
91
+ default: string;
92
+ };
93
+ to: import("vue-types").VueTypeDef<string | {
94
+ [key: string]: any;
95
+ }> & {
96
+ default: string | (() => {
97
+ [key: string]: any;
98
+ });
99
+ };
100
+ replace: import("vue-types").VueTypeValidableDef<boolean> & {
101
+ default: boolean;
102
+ };
103
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
104
+ extCls?: unknown;
105
+ to?: unknown;
106
+ replace?: unknown;
107
+ } & {
108
+ extCls: string;
109
+ to: string | {
110
+ [key: string]: any;
111
+ };
112
+ replace: boolean;
113
+ } & {}> & {}, {
114
+ extCls: string;
115
+ to: string | {
116
+ [key: string]: any;
117
+ };
118
+ replace: boolean;
119
+ }>;
120
+ }>;
121
+ export { BkBreadcrumb, BreadcrumbItem as BkBreadcrumbItem, };
122
+ export default BkBreadcrumb;
@@ -0,0 +1 @@
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,r,t){"use strict";var a=r.defineComponent({name:"BkBreadcrumb",props:{extCls:t.PropTypes.string,separator:t.PropTypes.string.def("/"),separatorClass:t.PropTypes.string},setup:function(e,a){var o=a.slots,n=r.getCurrentInstance().proxy;r.provide("breadcrumb",e),r.onMounted((function(){var e=n.$el.querySelectorAll(".bk-breadcrumb-item");e.length&&e[e.length-1].setAttribute("aria-current","page")}));var s=t.classes({"bk-breadcrumb":!0},"".concat(e.extCls||""));return function(){var e;return r.createVNode("div",{class:s,"aria-label":"Breadcrumb",role:"navigation"},[null===(e=o.default)||void 0===e?void 0:e.call(o)])}}}),o=r.defineComponent({name:"BkBreadcrumbItem",props:{extCls:t.PropTypes.string,to:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.object]).def(""),replace:t.PropTypes.bool},setup:function(e,a){var o=a.slots,n=r.getCurrentInstance().appContext,s=r.inject("breadcrumb"),l=n.config.globalProperties.$router,c=e.to,u=e.replace,i=function(){c&&l&&(u?l.replace(c):l.push(c))},p=t.classes({"bk-breadcrumb-item":!0},"".concat(e.extCls||""));return function(){var e;return r.createVNode("span",{class:p},[r.createVNode("span",{ref:"link",class:"bk-breadcrumb-item-inner ".concat(c?"is-link":""),role:"link",onClick:i},[null===(e=null==o?void 0:o.default)||void 0===e?void 0:e.call(o)]),(null==s?void 0:s.separatorClass)?r.createVNode("i",{class:"bk-breadcrumb-separator ".concat(s.separatorClass)},null):r.createVNode("span",{class:"bk-breadcrumb-separator",role:"presentation"},[null==s?void 0:s.separator])])}}}),n=t.withInstallProps(a,{BreadcrumbItem:o});e.BkBreadcrumb=n,e.BkBreadcrumbItem=o,e.default=n,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,4 @@
1
+ export interface IBreadcrumbProps {
2
+ separator: string;
3
+ separatorClass: string;
4
+ }
@@ -0,0 +1,8 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ size: import("vue-types").VueTypeDef<string>;
3
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
4
+ size?: unknown;
5
+ } & {} & {
6
+ size?: string;
7
+ }> & {}, {}>;
8
+ export default _default;
@@ -1,33 +1,253 @@
1
1
  .bk-button {
2
- font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
- font-weight: 700;
4
- border: 0;
5
- border-radius: 3em;
6
- cursor: pointer;
7
2
  display: inline-block;
8
- line-height: 1;
3
+ height: 32px;
4
+ min-width: 64px;
5
+ padding: 0 15px;
6
+ font-size: 14px;
7
+ color: #63656e;
8
+ text-align: center;
9
+ text-decoration: none;
10
+ white-space: nowrap;
11
+ vertical-align: middle;
12
+ cursor: pointer;
13
+ background-color: white;
14
+ border: 1px solid #c4c6cc;
15
+ border-radius: 2px;
16
+ outline: none;
17
+ box-sizing: border-box;
18
+ transition: background-color ease 0.3s;
19
+ appearance: none;
20
+ }
21
+ .bk-button.bk-button-primary {
22
+ background-color: #3a84ff;
23
+ color: white;
24
+ border-color: #3a84ff;
25
+ }
26
+ .bk-button.bk-button-primary:hover {
27
+ background-color: #5594fa;
28
+ border-color: #5594fa;
29
+ }
30
+ .bk-button.bk-button-primary:active {
31
+ background-color: #2c77f4;
32
+ border-color: #2c77f4;
33
+ }
34
+ .bk-button.bk-button-primary.is-disabled {
35
+ background-color: #dcdee5;
36
+ border-color: #dcdee5;
9
37
  }
10
- .bk-button .test {
11
- color: red;
38
+ .bk-button.bk-button-primary.is-outline {
39
+ color: #3a84ff;
40
+ border-color: #3a84ff;
41
+ background-color: white;
12
42
  }
13
- .bk-button-primary {
43
+ .bk-button.bk-button-primary.is-outline:hover {
44
+ background-color: #5594fa;
45
+ border-color: #5594fa;
14
46
  color: white;
15
- background-color: #1ea7fd;
16
47
  }
17
- .bk-button-secondary {
18
- color: #333;
19
- background-color: transparent;
20
- box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
48
+ .bk-button.bk-button-primary.is-text {
49
+ color: #3a84ff;
50
+ background: none;
51
+ border: none;
52
+ }
53
+ .bk-button.bk-button-primary.is-text:hover {
54
+ color: #5594fa;
55
+ }
56
+ .bk-button.bk-button-hover-primary:hover {
57
+ background-color: #5594fa;
58
+ border-color: #5594fa;
59
+ color: white;
60
+ }
61
+ .bk-button.bk-button-warning {
62
+ background-color: #ff9c01;
63
+ color: white;
64
+ border-color: #ff9c01;
65
+ }
66
+ .bk-button.bk-button-warning:hover {
67
+ background-color: #ffb848;
68
+ border-color: #ffb848;
69
+ }
70
+ .bk-button.bk-button-warning:active {
71
+ background-color: #eb9000;
72
+ border-color: #eb9000;
73
+ }
74
+ .bk-button.bk-button-warning.is-disabled {
75
+ background-color: #dcdee5;
76
+ border-color: #dcdee5;
77
+ }
78
+ .bk-button.bk-button-warning.is-outline {
79
+ color: #ff9c01;
80
+ border-color: #ff9c01;
81
+ background-color: white;
82
+ }
83
+ .bk-button.bk-button-warning.is-outline:hover {
84
+ background-color: #ffb848;
85
+ border-color: #ffb848;
86
+ color: white;
87
+ }
88
+ .bk-button.bk-button-warning.is-text {
89
+ color: #ff9c01;
90
+ background: none;
91
+ border: none;
92
+ }
93
+ .bk-button.bk-button-warning.is-text:hover {
94
+ color: #ffb848;
95
+ }
96
+ .bk-button.bk-button-hover-warning:hover {
97
+ background-color: #ffb848;
98
+ border-color: #ffb848;
99
+ color: white;
100
+ }
101
+ .bk-button.bk-button-success {
102
+ background-color: #2dcb56;
103
+ color: white;
104
+ border-color: #2dcb56;
105
+ }
106
+ .bk-button.bk-button-success:hover {
107
+ background-color: #45e35f;
108
+ border-color: #45e35f;
109
+ }
110
+ .bk-button.bk-button-success:active {
111
+ background-color: #1ab943;
112
+ border-color: #1ab943;
113
+ }
114
+ .bk-button.bk-button-success.is-disabled {
115
+ background-color: #dcdee5;
116
+ border-color: #dcdee5;
117
+ }
118
+ .bk-button.bk-button-success.is-outline {
119
+ color: #2dcb56;
120
+ border-color: #2dcb56;
121
+ background-color: white;
122
+ }
123
+ .bk-button.bk-button-success.is-outline:hover {
124
+ background-color: #45e35f;
125
+ border-color: #45e35f;
126
+ color: white;
21
127
  }
22
- .bk-button-small {
23
- font-size: 12px;
24
- padding: 10px 16px;
128
+ .bk-button.bk-button-success.is-text {
129
+ color: #2dcb56;
130
+ background: none;
131
+ border: none;
25
132
  }
26
- .bk-button-normal {
133
+ .bk-button.bk-button-success.is-text:hover {
134
+ color: #45e35f;
135
+ }
136
+ .bk-button.bk-button-hover-success:hover {
137
+ background-color: #45e35f;
138
+ border-color: #45e35f;
139
+ color: white;
140
+ }
141
+ .bk-button.bk-button-danger {
142
+ background-color: #ea3636;
143
+ color: white;
144
+ border-color: #ea3636;
145
+ }
146
+ .bk-button.bk-button-danger:hover {
147
+ background-color: #ff5656;
148
+ border-color: #ff5656;
149
+ }
150
+ .bk-button.bk-button-danger:active {
151
+ background-color: #db2626;
152
+ border-color: #db2626;
153
+ }
154
+ .bk-button.bk-button-danger.is-disabled {
155
+ background-color: #dcdee5;
156
+ border-color: #dcdee5;
157
+ }
158
+ .bk-button.bk-button-danger.is-outline {
159
+ color: #ea3636;
160
+ border-color: #ea3636;
161
+ background-color: white;
162
+ }
163
+ .bk-button.bk-button-danger.is-outline:hover {
164
+ background-color: #ff5656;
165
+ border-color: #ff5656;
166
+ color: white;
167
+ }
168
+ .bk-button.bk-button-danger.is-text {
169
+ color: #ea3636;
170
+ background: none;
171
+ border: none;
172
+ }
173
+ .bk-button.bk-button-danger.is-text:hover {
174
+ color: #ff5656;
175
+ }
176
+ .bk-button.bk-button-hover-danger:hover {
177
+ background-color: #ff5656;
178
+ border-color: #ff5656;
179
+ color: white;
180
+ }
181
+ .bk-button.bk-button-small {
182
+ min-width: 48px;
183
+ height: 26px;
184
+ padding: 0 12px;
185
+ }
186
+ .bk-button.bk-button-large {
187
+ min-width: 74px;
188
+ height: 38px;
189
+ padding: 0 20px;
190
+ }
191
+ .bk-button:hover {
192
+ border-color: #979ba5;
193
+ }
194
+ .bk-button:active {
195
+ color: #3a84ff;
196
+ border-color: #3a84ff;
197
+ }
198
+ .bk-button.is-disabled {
199
+ color: #dcdee5;
200
+ cursor: auto;
201
+ border-color: #dcdee5;
202
+ }
203
+ .bk-button.is-text {
27
204
  font-size: 14px;
28
- padding: 11px 20px;
205
+ color: #63656e;
206
+ text-decoration: none;
207
+ cursor: pointer;
208
+ background: none;
209
+ border: none;
210
+ outline: none;
211
+ }
212
+ .bk-button-group {
213
+ display: inline-block;
214
+ font-size: 0;
215
+ }
216
+ .bk-button-group.bk-button-group-small .bk-button {
217
+ min-width: 48px;
218
+ height: 26px;
219
+ padding: 0 12px;
220
+ }
221
+ .bk-button-group.bk-button-group-large .bk-button {
222
+ min-width: 74px;
223
+ height: 38px;
224
+ padding: 0 20px;
225
+ }
226
+ .bk-button-group .bk-button {
227
+ height: 32px;
228
+ min-width: 64px;
229
+ margin: 0 0 0 -1px;
230
+ border-radius: 0;
231
+ }
232
+ .bk-button-group .bk-button:not(.is-disabled) {
233
+ color: #63656e;
234
+ background-color: white;
235
+ border-color: #c4c6cc;
236
+ }
237
+ .bk-button-group .bk-button:first-child {
238
+ border-radius: 2px 0 0 2px;
239
+ }
240
+ .bk-button-group .bk-button:last-child {
241
+ border-radius: 0 2px 2px 0;
242
+ }
243
+ .bk-button-group .bk-button:only-child {
244
+ border-radius: 2px;
29
245
  }
30
- .bk-button-large {
31
- font-size: 16px;
32
- padding: 12px 24px;
246
+ .bk-button-group .bk-button:hover:not(.is-disabled),
247
+ .bk-button-group .bk-button.is-selected:not(.is-disabled) {
248
+ position: relative;
249
+ z-index: 1;
250
+ color: #3a84ff;
251
+ background-color: white;
252
+ border-color: #3a84ff;
33
253
  }
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Tencent is pleased to support the open source community by making
3
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4
+ *
5
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
6
+ *
7
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
8
+ *
9
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
10
+ *
11
+ * ---------------------------------------------------
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
13
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
14
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
15
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16
+ *
17
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
18
+ * the Software.
19
+ *
20
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
21
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
23
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
+ * IN THE SOFTWARE.
25
+ */
26
+ import { ExtractPropTypes, PropType } from 'vue';
27
+ declare type IButtonNativeType = PropType<'button' | 'submit' | 'reset'>;
28
+ declare const buttonProps: {
29
+ theme: import("vue-types").VueTypeDef<string> & {
30
+ default: string;
31
+ };
32
+ hoverTheme: import("vue-types").VueTypeDef<string> & {
33
+ default: string;
34
+ };
35
+ size: import("vue-types").VueTypeDef<string>;
36
+ title: import("vue-types").VueTypeValidableDef<string> & {
37
+ default: string;
38
+ };
39
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
40
+ default: boolean;
41
+ };
42
+ loading: import("vue-types").VueTypeValidableDef<boolean> & {
43
+ default: boolean;
44
+ };
45
+ outline: import("vue-types").VueTypeValidableDef<boolean> & {
46
+ default: boolean;
47
+ };
48
+ text: import("vue-types").VueTypeValidableDef<boolean> & {
49
+ default: boolean;
50
+ };
51
+ nativeType: {
52
+ type: IButtonNativeType;
53
+ };
54
+ };
55
+ export declare type ButtonPropTypes = ExtractPropTypes<typeof buttonProps>;
56
+ declare const _default: import("vue").DefineComponent<{
57
+ theme: import("vue-types").VueTypeDef<string> & {
58
+ default: string;
59
+ };
60
+ hoverTheme: import("vue-types").VueTypeDef<string> & {
61
+ default: string;
62
+ };
63
+ size: import("vue-types").VueTypeDef<string>;
64
+ title: import("vue-types").VueTypeValidableDef<string> & {
65
+ default: string;
66
+ };
67
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
68
+ default: boolean;
69
+ };
70
+ loading: import("vue-types").VueTypeValidableDef<boolean> & {
71
+ default: boolean;
72
+ };
73
+ outline: import("vue-types").VueTypeValidableDef<boolean> & {
74
+ default: boolean;
75
+ };
76
+ text: import("vue-types").VueTypeValidableDef<boolean> & {
77
+ default: boolean;
78
+ };
79
+ nativeType: {
80
+ type: IButtonNativeType;
81
+ };
82
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
83
+ theme?: unknown;
84
+ hoverTheme?: unknown;
85
+ size?: unknown;
86
+ title?: unknown;
87
+ disabled?: unknown;
88
+ loading?: unknown;
89
+ outline?: unknown;
90
+ text?: unknown;
91
+ nativeType?: unknown;
92
+ } & {
93
+ title: string;
94
+ text: boolean;
95
+ theme: string;
96
+ disabled: boolean;
97
+ loading: boolean;
98
+ hoverTheme: string;
99
+ outline: boolean;
100
+ } & {
101
+ size?: string;
102
+ nativeType?: "button" | "reset" | "submit";
103
+ }> & {
104
+ onClick?: (...args: any[]) => any;
105
+ }, {
106
+ title: string;
107
+ text: boolean;
108
+ theme: string;
109
+ disabled: boolean;
110
+ loading: boolean;
111
+ hoverTheme: string;
112
+ outline: boolean;
113
+ }>;
114
+ export default _default;