kdutify 0.16.9-rc.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 (425) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +70 -0
  3. package/dist/kdutify.css +12850 -0
  4. package/dist/kdutify.css.map +1 -0
  5. package/dist/kdutify.js +16285 -0
  6. package/dist/kdutify.js.map +1 -0
  7. package/dist/kdutify.min.css +7 -0
  8. package/dist/kdutify.min.css.map +1 -0
  9. package/dist/kdutify.min.js +6 -0
  10. package/es5/components/KAlert/KAlert.js +80 -0
  11. package/es5/components/KAlert/index.js +7 -0
  12. package/es5/components/KApp/KApp.js +67 -0
  13. package/es5/components/KApp/index.js +7 -0
  14. package/es5/components/KAvatar/KAvatar.js +31 -0
  15. package/es5/components/KAvatar/index.js +7 -0
  16. package/es5/components/KBadge/KBadge.js +59 -0
  17. package/es5/components/KBadge/index.js +7 -0
  18. package/es5/components/KBottomNav/KBottomNav.js +50 -0
  19. package/es5/components/KBottomNav/index.js +7 -0
  20. package/es5/components/KBottomSheet/KBottomSheet.js +36 -0
  21. package/es5/components/KBottomSheet/index.js +7 -0
  22. package/es5/components/KBreadcrumbs/KBreadcrumbs.js +36 -0
  23. package/es5/components/KBreadcrumbs/KBreadcrumbsItem.js +38 -0
  24. package/es5/components/KBreadcrumbs/index.js +11 -0
  25. package/es5/components/KBtn/KBtn.js +153 -0
  26. package/es5/components/KBtn/index.js +7 -0
  27. package/es5/components/KBtnToggle/KBtnToggle.js +92 -0
  28. package/es5/components/KBtnToggle/index.js +7 -0
  29. package/es5/components/KCard/KCard.js +63 -0
  30. package/es5/components/KCard/KCardMedia.js +41 -0
  31. package/es5/components/KCard/KCardTitle.js +21 -0
  32. package/es5/components/KCard/index.js +19 -0
  33. package/es5/components/KCarousel/KCarousel.js +178 -0
  34. package/es5/components/KCarousel/KCarouselItem.js +63 -0
  35. package/es5/components/KCarousel/index.js +11 -0
  36. package/es5/components/KCheckbox/KCheckbox.js +89 -0
  37. package/es5/components/KCheckbox/index.js +7 -0
  38. package/es5/components/KChip/KChip.js +81 -0
  39. package/es5/components/KChip/index.js +7 -0
  40. package/es5/components/KDataTable/KDataTable.js +347 -0
  41. package/es5/components/KDataTable/KEditDialog.js +108 -0
  42. package/es5/components/KDataTable/index.js +14 -0
  43. package/es5/components/KDataTable/mixins/body.js +103 -0
  44. package/es5/components/KDataTable/mixins/foot.js +118 -0
  45. package/es5/components/KDataTable/mixins/head.js +123 -0
  46. package/es5/components/KDataTable/mixins/progress.js +16 -0
  47. package/es5/components/KDatePicker/KDatePicker.js +416 -0
  48. package/es5/components/KDatePicker/index.js +7 -0
  49. package/es5/components/KDatePicker/mixins/date-header.js +68 -0
  50. package/es5/components/KDatePicker/mixins/date-table.js +101 -0
  51. package/es5/components/KDatePicker/mixins/date-title.js +64 -0
  52. package/es5/components/KDatePicker/mixins/date-years.js +53 -0
  53. package/es5/components/KDatePicker/mixins/month-table.js +91 -0
  54. package/es5/components/KDialog/KDialog.js +181 -0
  55. package/es5/components/KDialog/index.js +7 -0
  56. package/es5/components/KDivider/KDivider.js +29 -0
  57. package/es5/components/KDivider/index.js +7 -0
  58. package/es5/components/KExpansionPanel/KExpansionPanel.js +60 -0
  59. package/es5/components/KExpansionPanel/KExpansionPanelContent.js +114 -0
  60. package/es5/components/KExpansionPanel/index.js +9 -0
  61. package/es5/components/KFooter/KFooter.js +61 -0
  62. package/es5/components/KFooter/index.js +7 -0
  63. package/es5/components/KForm/KForm.js +203 -0
  64. package/es5/components/KForm/index.js +7 -0
  65. package/es5/components/KGrid/KContainer.js +5 -0
  66. package/es5/components/KGrid/KContent.js +33 -0
  67. package/es5/components/KGrid/KFlex.js +5 -0
  68. package/es5/components/KGrid/KLayout.js +5 -0
  69. package/es5/components/KGrid/grid.js +43 -0
  70. package/es5/components/KGrid/index.js +20 -0
  71. package/es5/components/KIcon/KIcon.js +93 -0
  72. package/es5/components/KIcon/index.js +7 -0
  73. package/es5/components/KList/KList.js +82 -0
  74. package/es5/components/KList/KListGroup.js +100 -0
  75. package/es5/components/KList/KListTile.js +65 -0
  76. package/es5/components/KList/KListTileAction.js +15 -0
  77. package/es5/components/KList/index.js +27 -0
  78. package/es5/components/KMenu/KMenu.js +178 -0
  79. package/es5/components/KMenu/index.js +7 -0
  80. package/es5/components/KMenu/mixins/menu-activator.js +59 -0
  81. package/es5/components/KMenu/mixins/menu-generators.js +88 -0
  82. package/es5/components/KMenu/mixins/menu-keyable.js +64 -0
  83. package/es5/components/KMenu/mixins/menu-position.js +64 -0
  84. package/es5/components/KNavigationDrawer/KNavigationDrawer.js +238 -0
  85. package/es5/components/KNavigationDrawer/index.js +7 -0
  86. package/es5/components/KPagination/KPagination.js +167 -0
  87. package/es5/components/KPagination/index.js +7 -0
  88. package/es5/components/KParallax/KParallax.js +98 -0
  89. package/es5/components/KParallax/index.js +7 -0
  90. package/es5/components/KProgressCircular/KProgressCircular.js +145 -0
  91. package/es5/components/KProgressCircular/index.js +7 -0
  92. package/es5/components/KProgressLinear/KProgressLinear.js +146 -0
  93. package/es5/components/KProgressLinear/index.js +7 -0
  94. package/es5/components/KRadioGroup/KRadio.js +148 -0
  95. package/es5/components/KRadioGroup/KRadioGroup.js +139 -0
  96. package/es5/components/KRadioGroup/index.js +11 -0
  97. package/es5/components/KSelect/KSelect.js +635 -0
  98. package/es5/components/KSelect/index.js +7 -0
  99. package/es5/components/KSelect/mixins/select-autocomplete.js +125 -0
  100. package/es5/components/KSelect/mixins/select-generators.js +298 -0
  101. package/es5/components/KSlider/KSlider.js +306 -0
  102. package/es5/components/KSlider/index.js +7 -0
  103. package/es5/components/KSnackbar/KSnackbar.js +106 -0
  104. package/es5/components/KSnackbar/index.js +7 -0
  105. package/es5/components/KSpeedDial/KSpeedDial.js +89 -0
  106. package/es5/components/KSpeedDial/index.js +7 -0
  107. package/es5/components/KStepper/KStepper.js +112 -0
  108. package/es5/components/KStepper/KStepperContent.js +134 -0
  109. package/es5/components/KStepper/KStepperStep.js +105 -0
  110. package/es5/components/KStepper/index.js +17 -0
  111. package/es5/components/KSubheader/KSubheader.js +29 -0
  112. package/es5/components/KSubheader/index.js +7 -0
  113. package/es5/components/KSwitch/KSwitch.js +55 -0
  114. package/es5/components/KSwitch/index.js +7 -0
  115. package/es5/components/KSystemBar/KSystemBar.js +54 -0
  116. package/es5/components/KSystemBar/index.js +7 -0
  117. package/es5/components/KTabs/KTabs.js +272 -0
  118. package/es5/components/KTabs/KTabsBar.js +205 -0
  119. package/es5/components/KTabs/KTabsContent.js +86 -0
  120. package/es5/components/KTabs/KTabsItem.js +103 -0
  121. package/es5/components/KTabs/KTabsItems.js +40 -0
  122. package/es5/components/KTabs/KTabsSlider.js +14 -0
  123. package/es5/components/KTabs/index.js +17 -0
  124. package/es5/components/KTextField/KTextField.js +275 -0
  125. package/es5/components/KTextField/index.js +7 -0
  126. package/es5/components/KTimePicker/KTimePicker.js +302 -0
  127. package/es5/components/KTimePicker/index.js +7 -0
  128. package/es5/components/KTimePicker/mixins/time-body.js +207 -0
  129. package/es5/components/KTimePicker/mixins/time-title.js +55 -0
  130. package/es5/components/KToolbar/KToolbar.js +193 -0
  131. package/es5/components/KToolbar/KToolbarSideIcon.js +29 -0
  132. package/es5/components/KToolbar/index.js +17 -0
  133. package/es5/components/KTooltip/KTooltip.js +156 -0
  134. package/es5/components/KTooltip/index.js +7 -0
  135. package/es5/components/Kdutify/index.js +50 -0
  136. package/es5/components/index.js +45 -0
  137. package/es5/components/transitions/expand-transition.js +36 -0
  138. package/es5/components/transitions/index.js +47 -0
  139. package/es5/components/transitions/row-expand-transition.js +38 -0
  140. package/es5/directives/click-outside.js +100 -0
  141. package/es5/directives/index.js +15 -0
  142. package/es5/directives/resize.js +30 -0
  143. package/es5/directives/ripple.js +144 -0
  144. package/es5/directives/scroll.js +32 -0
  145. package/es5/directives/touch.js +102 -0
  146. package/es5/index.js +30 -0
  147. package/es5/mixins/applicationable.js +9 -0
  148. package/es5/mixins/bootable.js +31 -0
  149. package/es5/mixins/button-group.js +82 -0
  150. package/es5/mixins/colorable.js +24 -0
  151. package/es5/mixins/contextualable.js +10 -0
  152. package/es5/mixins/delayable.js +57 -0
  153. package/es5/mixins/dependent.js +121 -0
  154. package/es5/mixins/detachable.js +41 -0
  155. package/es5/mixins/filterable.js +8 -0
  156. package/es5/mixins/input.js +219 -0
  157. package/es5/mixins/loadable.js +31 -0
  158. package/es5/mixins/maskable.js +181 -0
  159. package/es5/mixins/menuable.js +293 -0
  160. package/es5/mixins/overlayable.js +202 -0
  161. package/es5/mixins/picker.js +36 -0
  162. package/es5/mixins/positionable.js +10 -0
  163. package/es5/mixins/rippleable.js +21 -0
  164. package/es5/mixins/routable.js +66 -0
  165. package/es5/mixins/selectable.js +79 -0
  166. package/es5/mixins/stackable.js +70 -0
  167. package/es5/mixins/tab-focusable.js +7 -0
  168. package/es5/mixins/themeable.js +15 -0
  169. package/es5/mixins/toggleable.js +31 -0
  170. package/es5/mixins/transitionable.js +7 -0
  171. package/es5/mixins/translatable.js +62 -0
  172. package/es5/mixins/validatable.js +138 -0
  173. package/es5/util/breakpoint.js +128 -0
  174. package/es5/util/helpers.js +139 -0
  175. package/es5/util/load.js +15 -0
  176. package/es5/util/mask.js +159 -0
  177. package/es5/util/testing.js +160 -0
  178. package/es5/util/to-have-been-warned.js +117 -0
  179. package/es5/util/touchSupport.js +14 -0
  180. package/index.d.ts +8 -0
  181. package/package.json +134 -0
  182. package/src/components/KAlert/KAlert.js +77 -0
  183. package/src/components/KAlert/index.js +7 -0
  184. package/src/components/KApp/KApp.js +64 -0
  185. package/src/components/KApp/index.js +7 -0
  186. package/src/components/KAvatar/KAvatar.js +27 -0
  187. package/src/components/KAvatar/index.js +7 -0
  188. package/src/components/KBadge/KBadge.js +62 -0
  189. package/src/components/KBadge/index.js +7 -0
  190. package/src/components/KBottomNav/KBottomNav.js +50 -0
  191. package/src/components/KBottomNav/index.js +7 -0
  192. package/src/components/KBottomSheet/KBottomSheet.js +41 -0
  193. package/src/components/KBottomSheet/index.js +7 -0
  194. package/src/components/KBreadcrumbs/KBreadcrumbs.js +35 -0
  195. package/src/components/KBreadcrumbs/KBreadcrumbsItem.js +38 -0
  196. package/src/components/KBreadcrumbs/index.js +11 -0
  197. package/src/components/KBtn/KBtn.js +163 -0
  198. package/src/components/KBtn/index.js +7 -0
  199. package/src/components/KBtnToggle/KBtnToggle.js +92 -0
  200. package/src/components/KBtnToggle/index.js +7 -0
  201. package/src/components/KCard/KCard.js +61 -0
  202. package/src/components/KCard/KCardMedia.js +41 -0
  203. package/src/components/KCard/KCardTitle.js +17 -0
  204. package/src/components/KCard/index.js +19 -0
  205. package/src/components/KCarousel/KCarousel.js +174 -0
  206. package/src/components/KCarousel/KCarouselItem.js +65 -0
  207. package/src/components/KCarousel/index.js +11 -0
  208. package/src/components/KCheckbox/KCheckbox.js +92 -0
  209. package/src/components/KCheckbox/index.js +7 -0
  210. package/src/components/KChip/KChip.js +83 -0
  211. package/src/components/KChip/index.js +7 -0
  212. package/src/components/KDataTable/KDataTable.js +346 -0
  213. package/src/components/KDataTable/KEditDialog.js +110 -0
  214. package/src/components/KDataTable/index.js +16 -0
  215. package/src/components/KDataTable/mixins/body.js +98 -0
  216. package/src/components/KDataTable/mixins/foot.js +128 -0
  217. package/src/components/KDataTable/mixins/head.js +119 -0
  218. package/src/components/KDataTable/mixins/progress.js +16 -0
  219. package/src/components/KDatePicker/KDatePicker.js +382 -0
  220. package/src/components/KDatePicker/index.js +7 -0
  221. package/src/components/KDatePicker/mixins/date-header.js +74 -0
  222. package/src/components/KDatePicker/mixins/date-table.js +95 -0
  223. package/src/components/KDatePicker/mixins/date-title.js +76 -0
  224. package/src/components/KDatePicker/mixins/date-years.js +42 -0
  225. package/src/components/KDatePicker/mixins/month-table.js +82 -0
  226. package/src/components/KDialog/KDialog.js +184 -0
  227. package/src/components/KDialog/index.js +7 -0
  228. package/src/components/KDivider/KDivider.js +25 -0
  229. package/src/components/KDivider/index.js +7 -0
  230. package/src/components/KExpansionPanel/KExpansionPanel.js +55 -0
  231. package/src/components/KExpansionPanel/KExpansionPanelContent.js +112 -0
  232. package/src/components/KExpansionPanel/index.js +9 -0
  233. package/src/components/KFooter/KFooter.js +67 -0
  234. package/src/components/KFooter/index.js +7 -0
  235. package/src/components/KForm/KForm.js +117 -0
  236. package/src/components/KForm/index.js +7 -0
  237. package/src/components/KGrid/KContainer.js +5 -0
  238. package/src/components/KGrid/KContent.js +29 -0
  239. package/src/components/KGrid/KFlex.js +5 -0
  240. package/src/components/KGrid/KLayout.js +5 -0
  241. package/src/components/KGrid/grid.js +40 -0
  242. package/src/components/KGrid/index.js +27 -0
  243. package/src/components/KIcon/KIcon.js +87 -0
  244. package/src/components/KIcon/index.js +7 -0
  245. package/src/components/KList/KList.js +75 -0
  246. package/src/components/KList/KListGroup.js +95 -0
  247. package/src/components/KList/KListTile.js +62 -0
  248. package/src/components/KList/KListTileAction.js +12 -0
  249. package/src/components/KList/index.js +27 -0
  250. package/src/components/KMenu/KMenu.js +207 -0
  251. package/src/components/KMenu/index.js +7 -0
  252. package/src/components/KMenu/mixins/menu-activator.js +51 -0
  253. package/src/components/KMenu/mixins/menu-generators.js +84 -0
  254. package/src/components/KMenu/mixins/menu-keyable.js +68 -0
  255. package/src/components/KMenu/mixins/menu-position.js +72 -0
  256. package/src/components/KNavigationDrawer/KNavigationDrawer.js +267 -0
  257. package/src/components/KNavigationDrawer/index.js +7 -0
  258. package/src/components/KPagination/KPagination.js +168 -0
  259. package/src/components/KPagination/index.js +7 -0
  260. package/src/components/KParallax/KParallax.js +99 -0
  261. package/src/components/KParallax/index.js +7 -0
  262. package/src/components/KProgressCircular/KProgressCircular.js +160 -0
  263. package/src/components/KProgressCircular/index.js +7 -0
  264. package/src/components/KProgressLinear/KProgressLinear.js +157 -0
  265. package/src/components/KProgressLinear/index.js +7 -0
  266. package/src/components/KRadioGroup/KRadio.js +153 -0
  267. package/src/components/KRadioGroup/KRadioGroup.js +118 -0
  268. package/src/components/KRadioGroup/index.js +11 -0
  269. package/src/components/KSelect/KSelect.js +641 -0
  270. package/src/components/KSelect/index.js +7 -0
  271. package/src/components/KSelect/mixins/select-autocomplete.js +125 -0
  272. package/src/components/KSelect/mixins/select-generators.js +300 -0
  273. package/src/components/KSlider/KSlider.js +311 -0
  274. package/src/components/KSlider/index.js +7 -0
  275. package/src/components/KSnackbar/KSnackbar.js +97 -0
  276. package/src/components/KSnackbar/index.js +7 -0
  277. package/src/components/KSpeedDial/KSpeedDial.js +80 -0
  278. package/src/components/KSpeedDial/index.js +7 -0
  279. package/src/components/KStepper/KStepper.js +95 -0
  280. package/src/components/KStepper/KStepperContent.js +138 -0
  281. package/src/components/KStepper/KStepperStep.js +100 -0
  282. package/src/components/KStepper/index.js +17 -0
  283. package/src/components/KSubheader/KSubheader.js +25 -0
  284. package/src/components/KSubheader/index.js +7 -0
  285. package/src/components/KSwitch/KSwitch.js +58 -0
  286. package/src/components/KSwitch/index.js +7 -0
  287. package/src/components/KSystemBar/KSystemBar.js +54 -0
  288. package/src/components/KSystemBar/index.js +7 -0
  289. package/src/components/KTabs/KTabs.js +240 -0
  290. package/src/components/KTabs/KTabsBar.js +202 -0
  291. package/src/components/KTabs/KTabsContent.js +90 -0
  292. package/src/components/KTabs/KTabsItem.js +99 -0
  293. package/src/components/KTabs/KTabsItems.js +40 -0
  294. package/src/components/KTabs/KTabsSlider.js +14 -0
  295. package/src/components/KTabs/index.js +17 -0
  296. package/src/components/KTextField/KTextField.js +246 -0
  297. package/src/components/KTextField/index.js +7 -0
  298. package/src/components/KTimePicker/KTimePicker.js +282 -0
  299. package/src/components/KTimePicker/index.js +7 -0
  300. package/src/components/KTimePicker/mixins/time-body.js +208 -0
  301. package/src/components/KTimePicker/mixins/time-title.js +51 -0
  302. package/src/components/KToolbar/KToolbar.js +206 -0
  303. package/src/components/KToolbar/KToolbarSideIcon.js +26 -0
  304. package/src/components/KToolbar/index.js +19 -0
  305. package/src/components/KTooltip/KTooltip.js +161 -0
  306. package/src/components/KTooltip/index.js +7 -0
  307. package/src/components/Kdutify/index.js +48 -0
  308. package/src/components/index.js +45 -0
  309. package/src/components/transitions/expand-transition.js +34 -0
  310. package/src/components/transitions/index.js +50 -0
  311. package/src/components/transitions/row-expand-transition.js +38 -0
  312. package/src/directives/click-outside.js +72 -0
  313. package/src/directives/index.js +21 -0
  314. package/src/directives/resize.js +30 -0
  315. package/src/directives/ripple.js +120 -0
  316. package/src/directives/scroll.js +31 -0
  317. package/src/directives/touch.js +90 -0
  318. package/src/index.js +30 -0
  319. package/src/mixins/applicationable.js +9 -0
  320. package/src/mixins/bootable.js +31 -0
  321. package/src/mixins/button-group.js +77 -0
  322. package/src/mixins/colorable.js +20 -0
  323. package/src/mixins/contextualable.js +10 -0
  324. package/src/mixins/delayable.js +54 -0
  325. package/src/mixins/dependent.js +55 -0
  326. package/src/mixins/detachable.js +44 -0
  327. package/src/mixins/filterable.js +8 -0
  328. package/src/mixins/input.js +220 -0
  329. package/src/mixins/loadable.js +33 -0
  330. package/src/mixins/maskable.js +117 -0
  331. package/src/mixins/menuable.js +299 -0
  332. package/src/mixins/overlayable.js +180 -0
  333. package/src/mixins/picker.js +35 -0
  334. package/src/mixins/positionable.js +10 -0
  335. package/src/mixins/rippleable.js +21 -0
  336. package/src/mixins/routable.js +66 -0
  337. package/src/mixins/selectable.js +84 -0
  338. package/src/mixins/stackable.js +44 -0
  339. package/src/mixins/tab-focusable.js +7 -0
  340. package/src/mixins/themeable.js +15 -0
  341. package/src/mixins/toggleable.js +28 -0
  342. package/src/mixins/transitionable.js +7 -0
  343. package/src/mixins/translatable.js +67 -0
  344. package/src/mixins/validatable.js +124 -0
  345. package/src/stylus/app.styl +6 -0
  346. package/src/stylus/bootstrap.styl +1 -0
  347. package/src/stylus/components/_alerts.styl +44 -0
  348. package/src/stylus/components/_app.styl +21 -0
  349. package/src/stylus/components/_avatars.styl +22 -0
  350. package/src/stylus/components/_badges.styl +49 -0
  351. package/src/stylus/components/_bottom-navs.styl +86 -0
  352. package/src/stylus/components/_bottom-sheets.styl +18 -0
  353. package/src/stylus/components/_breadcrumbs.styl +46 -0
  354. package/src/stylus/components/_button-toggle.styl +55 -0
  355. package/src/stylus/components/_buttons.styl +339 -0
  356. package/src/stylus/components/_cards.styl +85 -0
  357. package/src/stylus/components/_carousel.styl +76 -0
  358. package/src/stylus/components/_chips.styl +102 -0
  359. package/src/stylus/components/_content.styl +6 -0
  360. package/src/stylus/components/_data-table.styl +113 -0
  361. package/src/stylus/components/_date-picker.styl +214 -0
  362. package/src/stylus/components/_dialogs.styl +63 -0
  363. package/src/stylus/components/_dividers.styl +19 -0
  364. package/src/stylus/components/_expansion-panel.styl +85 -0
  365. package/src/stylus/components/_footer.styl +40 -0
  366. package/src/stylus/components/_grid.styl +171 -0
  367. package/src/stylus/components/_icons.styl +32 -0
  368. package/src/stylus/components/_input-groups.styl +310 -0
  369. package/src/stylus/components/_lists.styl +263 -0
  370. package/src/stylus/components/_menus.styl +87 -0
  371. package/src/stylus/components/_navigation-drawer.styl +150 -0
  372. package/src/stylus/components/_overlay.styl +42 -0
  373. package/src/stylus/components/_pagination.styl +95 -0
  374. package/src/stylus/components/_parallax.styl +35 -0
  375. package/src/stylus/components/_pickers.styl +66 -0
  376. package/src/stylus/components/_progress-circular.styl +58 -0
  377. package/src/stylus/components/_progress-linear.styl +104 -0
  378. package/src/stylus/components/_radio-group.styl +23 -0
  379. package/src/stylus/components/_ripples.styl +31 -0
  380. package/src/stylus/components/_select.styl +153 -0
  381. package/src/stylus/components/_selection-controls.styl +122 -0
  382. package/src/stylus/components/_sliders.styl +234 -0
  383. package/src/stylus/components/_small-dialog.styl +37 -0
  384. package/src/stylus/components/_snackbars.styl +110 -0
  385. package/src/stylus/components/_speed-dial.styl +78 -0
  386. package/src/stylus/components/_steppers.styl +216 -0
  387. package/src/stylus/components/_subheaders.styl +18 -0
  388. package/src/stylus/components/_switch.styl +89 -0
  389. package/src/stylus/components/_system-bars.styl +49 -0
  390. package/src/stylus/components/_tables.styl +103 -0
  391. package/src/stylus/components/_tabs.styl +159 -0
  392. package/src/stylus/components/_text-fields.styl +243 -0
  393. package/src/stylus/components/_time-picker.styl +199 -0
  394. package/src/stylus/components/_toolbar.styl +148 -0
  395. package/src/stylus/components/_tooltips.styl +25 -0
  396. package/src/stylus/elements/_blockquote.styl +5 -0
  397. package/src/stylus/elements/_code.styl +20 -0
  398. package/src/stylus/elements/_global.styl +31 -0
  399. package/src/stylus/elements/_headings.styl +17 -0
  400. package/src/stylus/elements/_lists.styl +2 -0
  401. package/src/stylus/elements/_typography.styl +54 -0
  402. package/src/stylus/generic/_bootstrap.styl +49 -0
  403. package/src/stylus/generic/_reset.styl +332 -0
  404. package/src/stylus/generic/_transitions.styl +116 -0
  405. package/src/stylus/main.styl +2 -0
  406. package/src/stylus/settings/_colors.styl +339 -0
  407. package/src/stylus/settings/_elevations.styl +111 -0
  408. package/src/stylus/settings/_theme.styl +201 -0
  409. package/src/stylus/settings/_variables.styl +396 -0
  410. package/src/stylus/theme.styl +24 -0
  411. package/src/stylus/tools/_animations.styl +9 -0
  412. package/src/stylus/tools/_colors.styl +17 -0
  413. package/src/stylus/tools/_elevations.styl +7 -0
  414. package/src/stylus/trumps/_display.styl +14 -0
  415. package/src/stylus/trumps/_helpers.styl +5 -0
  416. package/src/stylus/trumps/_spacing.styl +37 -0
  417. package/src/stylus/trumps/_text.styl +13 -0
  418. package/src/util/breakpoint.js +134 -0
  419. package/src/util/helpers.d.ts +21 -0
  420. package/src/util/helpers.js +125 -0
  421. package/src/util/load.js +13 -0
  422. package/src/util/mask.js +138 -0
  423. package/src/util/testing.js +154 -0
  424. package/src/util/to-have-been-warned.js +68 -0
  425. package/src/util/touchSupport.js +12 -0
@@ -0,0 +1,206 @@
1
+ require('../../stylus/components/_toolbar.styl')
2
+
3
+ import Applicationable from '../../mixins/applicationable'
4
+ import Colorable from '../../mixins/colorable'
5
+ import Themeable from '../../mixins/themeable'
6
+
7
+ export default {
8
+ name: 'k-toolbar',
9
+
10
+ mixins: [Applicationable, Colorable, Themeable],
11
+
12
+ data: () => ({
13
+ heights: {
14
+ mobileLandscape: 48,
15
+ mobile: 56,
16
+ desktop: 64,
17
+ dense: 48
18
+ },
19
+ denseHeight: 48,
20
+ defaultHeight: 56,
21
+ prominentHeight: 64,
22
+ isExtended: false,
23
+ isScrollingProxy: false,
24
+ marginTop: 0,
25
+ previousScroll: null,
26
+ target: null
27
+ }),
28
+
29
+ props: {
30
+ absolute: Boolean,
31
+ card: Boolean,
32
+ clippedLeft: Boolean,
33
+ clippedRight: Boolean,
34
+ dense: Boolean,
35
+ extended: Boolean,
36
+ fixed: Boolean,
37
+ flat: Boolean,
38
+ floating: Boolean,
39
+ height: [Number, String],
40
+ manualScroll: {
41
+ type: Boolean,
42
+ default: null
43
+ },
44
+ prominent: Boolean,
45
+ scrollOffScreen: Boolean,
46
+ scrollTarget: String,
47
+ scrollThreshold: {
48
+ type: Number,
49
+ default: 100
50
+ }
51
+ },
52
+
53
+ computed: {
54
+ computedHeight () {
55
+ if (this.height) return parseInt(this.height)
56
+ if (this.dense) return this.heights.dense
57
+ if (this.prominent ||
58
+ this.$kdutify.breakpoint.mdAndUp
59
+ ) return this.heights.desktop
60
+ if (this.$kdutify.breakpoint.width >
61
+ this.$kdutify.breakpoint.height
62
+ ) return this.mobileLandscape
63
+
64
+ return this.heights.mobile
65
+ },
66
+ computedMarginTop () {
67
+ return this.marginTop + this.$kdutify.application.bar
68
+ },
69
+ classes () {
70
+ return this.addBackgroundColorClassChecks({
71
+ 'toolbar': true,
72
+ 'elevation-0': this.flat,
73
+ 'toolbar--absolute': this.absolute,
74
+ 'toolbar--card': this.card,
75
+ 'toolbar--clipped': this.clippedLeft || this.clippedRight,
76
+ 'toolbar--dense': this.dense,
77
+ 'toolbar--fixed': this.fixed,
78
+ 'toolbar--floating': this.floating,
79
+ 'toolbar--prominent': this.prominent,
80
+ 'toolbar--extended': this.isExtended,
81
+ 'theme--dark': this.dark,
82
+ 'theme--light': this.light
83
+ })
84
+ },
85
+ isScrolling: {
86
+ get () {
87
+ return this.manualScroll != null
88
+ ? this.manualScroll
89
+ : this.isScrollingProxy
90
+ },
91
+ set (val) {
92
+ this.isScrollingProxy = val
93
+ }
94
+ },
95
+ paddingLeft () {
96
+ if (!this.app || this.clippedLeft) return 0
97
+
98
+ return this.$kdutify.application.left
99
+ },
100
+ paddingRight () {
101
+ if (!this.app || this.clippedRight) return 0
102
+
103
+ return this.$kdutify.application.right
104
+ },
105
+ styles () {
106
+ return this.app && {
107
+ marginTop: `${this.computedMarginTop}px`,
108
+ paddingLeft: `${this.paddingLeft}px`,
109
+ paddingRight: `${this.paddingRight}px`
110
+ }
111
+ }
112
+ },
113
+
114
+ watch: {
115
+ isScrolling (val) {
116
+ this.whenScrolled(val)
117
+ }
118
+ },
119
+
120
+ mounted () {
121
+ this.whenScrolled(this.isScrolling)
122
+ },
123
+
124
+ destroyed () {
125
+ if (this.app) this.$kdutify.application.top = 0
126
+ },
127
+
128
+ methods: {
129
+ onScroll () {
130
+ if (typeof window === 'undefined') return
131
+
132
+ if (!this.target) {
133
+ this.target = this.scrollTarget
134
+ ? document.querySelector(this.scrollTarget)
135
+ : window
136
+ }
137
+
138
+ const currentScroll = this.scrollTarget
139
+ ? this.target.scrollTop
140
+ : this.target.pageYOffset || document.documentElement.scrollTop
141
+
142
+ if (currentScroll < this.scrollThreshold) return
143
+
144
+ if (this.previousScroll === null) {
145
+ this.previousScroll = currentScroll
146
+ }
147
+
148
+ this.isScrollingProxy = this.previousScroll < currentScroll
149
+
150
+ this.previousScroll = currentScroll
151
+ },
152
+ updateApplication () {
153
+ if (!this.app) return
154
+
155
+ this.$kdutify.application.top = !this.fixed && !this.absolute
156
+ ? 0
157
+ : this.isExtended && !this.isScrolling
158
+ ? this.computedHeight * 2
159
+ : this.computedHeight
160
+ },
161
+ whenScrolled (val) {
162
+ this.marginTop = val
163
+ ? -this.$refs.content.clientHeight - 6
164
+ : 0
165
+
166
+ this.updateApplication()
167
+ }
168
+ },
169
+
170
+ render (h) {
171
+ this.isExtended = this.extended || !!this.$slots.extension
172
+ this.updateApplication()
173
+
174
+ const children = []
175
+ const data = {
176
+ 'class': this.classes,
177
+ style: this.styles,
178
+ on: this.$listeners
179
+ }
180
+
181
+ if (this.scrollOffScreen) {
182
+ data.directives = [{
183
+ name: 'scroll',
184
+ value: {
185
+ callback: this.onScroll,
186
+ target: this.scrollTarget
187
+ }
188
+ }]
189
+ }
190
+
191
+ children.push(h('div', {
192
+ staticClass: 'toolbar__content',
193
+ style: { height: `${this.computedHeight}px` },
194
+ ref: 'content'
195
+ }, this.$slots.default))
196
+
197
+ if (this.isExtended) {
198
+ children.push(h('div', {
199
+ staticClass: 'toolbar__extension',
200
+ style: { height: `${this.computedHeight}px` }
201
+ }, this.$slots.extension))
202
+ }
203
+
204
+ return h('nav', data, children)
205
+ }
206
+ }
@@ -0,0 +1,26 @@
1
+ import KBtn from '../../components/KBtn'
2
+ import KIcon from '../../components/KIcon'
3
+
4
+ export default {
5
+ name: 'k-toolbar-side-icon',
6
+
7
+ functional: true,
8
+
9
+ render (h, { slots, listeners, props, data }) {
10
+ const classes = data.staticClass
11
+ ? `${data.staticClass} toolbar__side-icon`
12
+ : 'toolbar__side-icon'
13
+
14
+ const d = Object.assign(data, {
15
+ staticClass: classes,
16
+ props: Object.assign(props, {
17
+ icon: true
18
+ }),
19
+ on: listeners
20
+ })
21
+
22
+ const defaultSlot = slots().default
23
+
24
+ return h(KBtn, d, defaultSlot || [h(KIcon, 'menu')])
25
+ }
26
+ }
@@ -0,0 +1,19 @@
1
+ import {
2
+ createSimpleFunctional
3
+ } from '../../util/helpers'
4
+
5
+ import KToolbar from './KToolbar'
6
+ import KToolbarSideIcon from './KToolbarSideIcon'
7
+
8
+ export { KToolbar, KToolbarSideIcon }
9
+ export const KToolbarTitle = createSimpleFunctional('toolbar__title')
10
+ export const KToolbarItems = createSimpleFunctional('toolbar__items')
11
+
12
+ KToolbar.install = function install (Kdu) {
13
+ Kdu.component('k-toolbar', KToolbar)
14
+ Kdu.component('k-toolbar-items', KToolbarItems)
15
+ Kdu.component('k-toolbar-title', KToolbarTitle)
16
+ Kdu.component('k-toolbar-side-icon', KToolbarSideIcon)
17
+ }
18
+
19
+ export default KToolbar
@@ -0,0 +1,161 @@
1
+ require('../../stylus/components/_tooltips.styl')
2
+
3
+ // Mixins
4
+ import Colorable from '../../mixins/colorable'
5
+ import Delayable from '../../mixins/delayable'
6
+ import Dependent from '../../mixins/dependent'
7
+ import Detachable from '../../mixins/detachable'
8
+ import Menuable from '../../mixins/menuable'
9
+ import Toggleable from '../../mixins/toggleable'
10
+
11
+ export default {
12
+ name: 'k-tooltip',
13
+
14
+ mixins: [Colorable, Delayable, Dependent, Detachable, Menuable, Toggleable],
15
+
16
+ data: () => ({
17
+ calculatedMinWidth: 0,
18
+ closeDependents: false
19
+ }),
20
+
21
+ props: {
22
+ debounce: {
23
+ type: [Number, String],
24
+ default: 0
25
+ },
26
+ fixed: {
27
+ type: Boolean,
28
+ default: true
29
+ },
30
+ tag: {
31
+ type: String,
32
+ default: 'span'
33
+ },
34
+ transition: String,
35
+ zIndex: {
36
+ default: null
37
+ }
38
+ },
39
+
40
+ computed: {
41
+ calculatedLeft () {
42
+ const { activator, content } = this.dimensions
43
+ let left = 0
44
+
45
+ if (this.top || this.bottom) {
46
+ left = (
47
+ activator.left +
48
+ (activator.width / 2) -
49
+ (content.width / 2)
50
+ )
51
+ } else if (this.left || this.right) {
52
+ left = (
53
+ activator.left +
54
+ (this.right ? activator.width : -content.width) +
55
+ (this.right ? 10 : -10)
56
+ )
57
+ }
58
+
59
+ return `${this.calcXOverflow(left)}px`
60
+ },
61
+ calculatedTop () {
62
+ const { activator, content } = this.dimensions
63
+ let top = 0
64
+
65
+ if (this.top || this.bottom) {
66
+ top = (
67
+ activator.top -
68
+ (this.top ? activator.height : -activator.height) -
69
+ (this.top ? 0 : -10)
70
+ )
71
+ } else if (this.left || this.right) {
72
+ top = (
73
+ activator.top +
74
+ (activator.height / 2) -
75
+ (content.height / 2)
76
+ )
77
+ }
78
+
79
+ return `${this.calcYOverflow(top + this.pageYOffset)}px`
80
+ },
81
+ classes () {
82
+ return {
83
+ 'tooltip--top': this.top,
84
+ 'tooltip--right': this.right,
85
+ 'tooltip--bottom': this.bottom,
86
+ 'tooltip--left': this.left
87
+ }
88
+ },
89
+ computedTransition () {
90
+ if (this.transition) return this.transition
91
+ if (this.top) return 'slide-y-reverse-transition'
92
+ if (this.right) return 'slide-x-transition'
93
+ if (this.bottom) return 'slide-y-transition'
94
+ if (this.left) return 'slide-x-reverse-transition'
95
+ },
96
+ offsetY () {
97
+ return this.top || this.bottom
98
+ },
99
+ offsetX () {
100
+ return this.left || this.right
101
+ },
102
+ styles () {
103
+ return {
104
+ left: this.calculatedLeft,
105
+ maxWidth: isNaN(this.maxWidth) ? this.maxWidth : `${this.maxWidth}px`,
106
+ opacity: this.isActive ? 0.9 : 0,
107
+ top: this.calculatedTop,
108
+ zIndex: this.zIndex || this.activeZIndex
109
+ }
110
+ }
111
+ },
112
+
113
+ methods: {
114
+ activate () {
115
+ // Update coordinates and dimensions of menu
116
+ // and its activator
117
+ this.updateDimensions()
118
+ // Start the transition
119
+ requestAnimationFrame(this.startTransition)
120
+ }
121
+ },
122
+
123
+ render (h) {
124
+ const tooltip = h('div', {
125
+ staticClass: 'tooltip__content',
126
+ 'class': this.addBackgroundColorClassChecks({
127
+ [this.contentClass]: true,
128
+ 'menuable__content__active': this.isActive
129
+ }),
130
+ style: this.styles,
131
+ attrs: this.attrs,
132
+ directives: [{
133
+ name: 'show',
134
+ value: this.isContentActive
135
+ }],
136
+ ref: 'content'
137
+ }, this.$slots.default)
138
+
139
+ return h(this.tag, {
140
+ staticClass: 'tooltip',
141
+ 'class': this.classes
142
+ }, [
143
+ h('transition', {
144
+ props: {
145
+ name: this.computedTransition
146
+ }
147
+ }, [tooltip]),
148
+ h('span', {
149
+ on: {
150
+ mouseenter: () => {
151
+ this.runDelay('open', () => (this.isActive = true))
152
+ },
153
+ mouseleave: () => {
154
+ this.runDelay('close', () => (this.isActive = false))
155
+ }
156
+ },
157
+ ref: 'activator'
158
+ }, this.$slots.activator)
159
+ ])
160
+ }
161
+ }
@@ -0,0 +1,7 @@
1
+ import KTooltip from './KTooltip'
2
+
3
+ KTooltip.install = function install (Kdu) {
4
+ Kdu.component(KTooltip.name, KTooltip)
5
+ }
6
+
7
+ export default KTooltip
@@ -0,0 +1,48 @@
1
+ import load from '../../util/load'
2
+
3
+ const Kdutify = {
4
+ install (Kdu, opts = {}) {
5
+ const $kdutify = {
6
+ load,
7
+ application: {
8
+ bar: 0,
9
+ top: 0,
10
+ bottom: 0,
11
+ left: 0,
12
+ right: 0
13
+ },
14
+ breakpoint: {},
15
+ touchSupport: false
16
+ }
17
+
18
+ Kdu.util.defineReactive({}, 'breakpoint', $kdutify)
19
+ Kdu.util.defineReactive({}, 'application', $kdutify)
20
+
21
+ Kdu.prototype.$kdutify = $kdutify
22
+
23
+ if (opts.transitions) {
24
+ Object.keys(opts.transitions).forEach(key => {
25
+ const t = opts.transitions[key]
26
+ if (t.name !== undefined && t.name.startsWith('k-')) {
27
+ Kdu.component(t.name, t)
28
+ }
29
+ })
30
+ }
31
+
32
+ if (opts.directives) {
33
+ Object.keys(opts.directives).forEach(key => {
34
+ const d = opts.directives[key]
35
+ Kdu.directive(d.name, d)
36
+ })
37
+ }
38
+
39
+ if (opts.components) {
40
+ Object.keys(opts.components).forEach(key => {
41
+ const c = opts.components[key]
42
+ Kdu.use(c)
43
+ })
44
+ }
45
+ }
46
+ }
47
+
48
+ export default Kdutify
@@ -0,0 +1,45 @@
1
+ export { default as Kdutify } from './Kdutify'
2
+ export { default as KApp } from './KApp'
3
+ export { default as KAlert } from './KAlert'
4
+ export { default as KAvatar } from './KAvatar'
5
+ export { default as KBadge } from './KBadge'
6
+ export { default as KBottomNav } from './KBottomNav'
7
+ export { default as KBottomSheet } from './KBottomSheet'
8
+ export { default as KBreadcrumbs } from './KBreadcrumbs'
9
+ export { default as KBtn } from './KBtn'
10
+ export { default as KBtnToggle } from './KBtnToggle'
11
+ export { default as KCard } from './KCard'
12
+ export { default as KCarousel } from './KCarousel'
13
+ export { default as KCheckbox } from './KCheckbox'
14
+ export { default as KChip } from './KChip'
15
+ export { default as KDataTable } from './KDataTable'
16
+ export { default as KDatePicker } from './KDatePicker'
17
+ export { default as KDialog } from './KDialog'
18
+ export { default as KDivider } from './KDivider'
19
+ export { default as KExpansionPanel } from './KExpansionPanel'
20
+ export { default as KFooter } from './KFooter'
21
+ export { default as KForm } from './KForm'
22
+ export { default as KGrid } from './KGrid'
23
+ export { default as KIcon } from './KIcon'
24
+ export { default as KList } from './KList'
25
+ export { default as KMenu } from './KMenu'
26
+ export { default as KNavigationDrawer } from './KNavigationDrawer'
27
+ export { default as KPagination } from './KPagination'
28
+ export { default as KParallax } from './KParallax'
29
+ export { default as KProgressCircular } from './KProgressCircular'
30
+ export { default as KProgressLinear } from './KProgressLinear'
31
+ export { default as KRadioGroup } from './KRadioGroup'
32
+ export { default as KSelect } from './KSelect'
33
+ export { default as KSlider } from './KSlider'
34
+ export { default as KSnackbar } from './KSnackbar'
35
+ export { default as KSpeedDial } from './KSpeedDial'
36
+ export { default as KStepper } from './KStepper'
37
+ export { default as KSubheader } from './KSubheader'
38
+ export { default as KSwitch } from './KSwitch'
39
+ export { default as KSystemBar } from './KSystemBar'
40
+ export { default as KTabs } from './KTabs'
41
+ export { default as KTextField } from './KTextField'
42
+ export { default as KTimePicker } from './KTimePicker'
43
+ export { default as KToolbar } from './KToolbar'
44
+ export { default as KTooltip } from './KTooltip'
45
+ export { default as Transitions } from './transitions'
@@ -0,0 +1,34 @@
1
+ import { addOnceEventListener } from '../../util/helpers'
2
+
3
+ export default {
4
+ enter (el, done) {
5
+ // Remove initial transition
6
+ el.style.transition = 'none'
7
+ addOnceEventListener(el, 'transitionend', done)
8
+
9
+ // Get height that is to be scrolled
10
+ el.style.overflow = 'hidden'
11
+ el.style.height = null
12
+ el.style.display = 'block'
13
+ const height = `${el.clientHeight}px`
14
+ el.style.height = 0
15
+ el.style.transition = null
16
+
17
+ setTimeout(() => (el.style.height = height), 100)
18
+ },
19
+
20
+ afterEnter (el) {
21
+ el.style.height = 'auto'
22
+ el.style.overflow = null
23
+ },
24
+
25
+ leave (el, done) {
26
+ addOnceEventListener(el, 'transitionend', done)
27
+
28
+ // Set height before we transition to 0
29
+ el.style.overflow = 'hidden'
30
+ el.style.height = `${el.clientHeight}px`
31
+
32
+ setTimeout(() => (el.style.height = 0), 100)
33
+ }
34
+ }
@@ -0,0 +1,50 @@
1
+ import {
2
+ createSimpleTransition,
3
+ createJavaScriptTransition
4
+ } from '../../util/helpers'
5
+
6
+ import ExpandTransitionFunctions from './expand-transition'
7
+ import RowExpandTransitionFunctions from './row-expand-transition'
8
+
9
+ // Component specific transitions
10
+ export const KBottomSheetTranstion = createSimpleTransition('bottom-sheet-transition')
11
+ export const KCarouselTransition = createSimpleTransition('carousel-transition')
12
+ export const KCarouselReverseTransition = createSimpleTransition('carousel-reverse-transition')
13
+ export const KTabTransition = createSimpleTransition('tab-transition')
14
+ export const KTabReverseTransition = createSimpleTransition('tab-reverse-transition')
15
+ export const KMenuTransition = createSimpleTransition('menu-transition')
16
+ export const KFabTransition = createSimpleTransition('fab-transition', 'center center', 'out-in')
17
+
18
+ // Generic transitions
19
+ export const KDialogTransition = createSimpleTransition('dialog-transition')
20
+ export const KDialogBottomTransition = createSimpleTransition('dialog-bottom-transition')
21
+ export const KFadeTransition = createSimpleTransition('fade-transition')
22
+ export const KScaleTransition = createSimpleTransition('scale-transition')
23
+ export const KSlideXTransition = createSimpleTransition('slide-x-transition')
24
+ export const KSlideXReverseTransition = createSimpleTransition('slide-x-reverse-transition')
25
+ export const KSlideYTransition = createSimpleTransition('slide-y-transition')
26
+ export const KSlideYReverseTransition = createSimpleTransition('slide-y-reverse-transition')
27
+
28
+ // JavaScript transitions
29
+ export const KExpandTransition = createJavaScriptTransition('expand-transition', ExpandTransitionFunctions)
30
+ export const KRowExpandTransition = createJavaScriptTransition('row-expand-transition', RowExpandTransitionFunctions)
31
+
32
+ export default function install (Kdu) {
33
+ Kdu.component('k-bottom-sheet-transition', KBottomSheetTranstion)
34
+ Kdu.component('k-carousel-transition', KCarouselTransition)
35
+ Kdu.component('k-carousel-reverse-transition', KCarouselReverseTransition)
36
+ Kdu.component('k-dialog-transition', KDialogTransition)
37
+ Kdu.component('k-dialog-bottom-transition', KDialogBottomTransition)
38
+ Kdu.component('k-fab-transition', KFabTransition)
39
+ Kdu.component('k-fade-transition', KFadeTransition)
40
+ Kdu.component('k-menu-transition', KMenuTransition)
41
+ Kdu.component('k-scale-transition', KScaleTransition)
42
+ Kdu.component('k-slide-x-transition', KSlideXTransition)
43
+ Kdu.component('k-slide-x-reverse-transition', KSlideXReverseTransition)
44
+ Kdu.component('k-slide-y-transition', KSlideYTransition)
45
+ Kdu.component('k-slide-y-reverse-transition', KSlideYReverseTransition)
46
+ Kdu.component('k-tab-reverse-transition', KTabReverseTransition)
47
+ Kdu.component('k-tab-transition', KTabTransition)
48
+ Kdu.component('k-expand-transition', KExpandTransition)
49
+ Kdu.component('k-row-expand-transition', KRowExpandTransition)
50
+ }
@@ -0,0 +1,38 @@
1
+ import { addOnceEventListener } from '../../util/helpers'
2
+
3
+ export default {
4
+ enter (el, done) {
5
+ el.td = el.parentNode
6
+
7
+ addOnceEventListener(el, 'transitionend', done)
8
+
9
+ // Get height that is to be scrolled
10
+ const height = el.dataset.height || el.clientHeight
11
+ el.dataset.height = height
12
+ el.style.overflow = 'hidden'
13
+ el.style.height = 0
14
+ el.td.style['border-bottom'] = '1px solid rgba(0,0,0,0.12)'
15
+
16
+ setTimeout(() => {
17
+ el.dataset.height = el.style.height = `${el.scrollHeight}px`
18
+ }, 50)
19
+ },
20
+ afterEnter (el) {
21
+ el.style.overflow = null
22
+ },
23
+ leave (el, done) {
24
+ // Remove initial transition
25
+ addOnceEventListener(el, 'transitionend', done)
26
+
27
+ // Set height before we transition to 0
28
+ el.style.overflow = 'hidden'
29
+ el.style.height = `${el.dataset.height}px`
30
+
31
+ setTimeout(() => {
32
+ el.style.height = 0
33
+ }, 50)
34
+ },
35
+ afterLeave (el) {
36
+ el.td.style['border-bottom'] = null
37
+ }
38
+ }