vevet 1.4.27 → 2.0.1-dev.3

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 (360) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +7 -71
  3. package/build/cdn/index.js +12 -0
  4. package/build/cdn/index.js.LICENSE.txt +14 -0
  5. package/build/cjs/app/Application.js +297 -0
  6. package/build/cjs/app/events/PageLoad.js +74 -0
  7. package/build/cjs/app/events/Viewport.js +303 -0
  8. package/build/cjs/base/Callbacks.js +232 -0
  9. package/build/cjs/base/Component.js +56 -0
  10. package/build/cjs/base/Module.js +262 -0
  11. package/build/cjs/base/MutableProp.js +165 -0
  12. package/build/cjs/base/Plugin.js +56 -0
  13. package/build/cjs/components/animation-frame/AnimationFrame.js +183 -0
  14. package/build/cjs/components/canvas/Ctx2D.js +200 -0
  15. package/build/cjs/components/canvas/Ctx2DPrerender.js +72 -0
  16. package/build/cjs/components/cursor/CustomCursor.js +344 -0
  17. package/build/cjs/components/dragger/Dragger.js +229 -0
  18. package/build/cjs/components/dragger/DraggerDirection.js +77 -0
  19. package/build/cjs/components/dragger/DraggerMove.js +84 -0
  20. package/build/cjs/components/loading/Preloader.js +229 -0
  21. package/build/cjs/components/loading/ProgressPreloader.js +377 -0
  22. package/build/cjs/components/page/Page.js +353 -0
  23. package/build/cjs/components/scroll/custom-scroll/CustomScroll.js +517 -0
  24. package/build/cjs/components/scroll/plugins/SmoothScrollDragPlugin.js +178 -0
  25. package/build/cjs/components/scroll/plugins/SmoothScrollKeyboardPlugin.js +138 -0
  26. package/build/cjs/components/scroll/scrollable/ScrollEventsBase.js +133 -0
  27. package/build/cjs/components/scroll/scrollable/ScrollView.js +315 -0
  28. package/build/cjs/components/scroll/scrollbar/Bar.js +315 -0
  29. package/build/cjs/components/scroll/scrollbar/ScrollBar.js +206 -0
  30. package/build/cjs/components/scroll/smooth-scroll/SmoothScroll.js +625 -0
  31. package/build/cjs/components/scroll/types.js +2 -0
  32. package/build/cjs/components/split-text/SplitText.js +233 -0
  33. package/build/cjs/components/text/SplitText.js +329 -0
  34. package/build/cjs/components/timeline/StaticTimeline.js +137 -0
  35. package/build/cjs/components/timeline/Timeline.js +190 -0
  36. package/build/cjs/index.js +87 -0
  37. package/build/cjs/utils/common/index.js +12 -0
  38. package/build/cjs/utils/common/mergeWithoutArrays.js +19 -0
  39. package/build/cjs/utils/common/randID.js +11 -0
  40. package/build/cjs/utils/common/timeoutCallback.js +17 -0
  41. package/build/cjs/utils/errors.js +8 -0
  42. package/build/cjs/utils/listeners/index.js +10 -0
  43. package/build/cjs/utils/listeners/intersectionObserverSupported.js +11 -0
  44. package/build/cjs/utils/listeners/onScroll.js +47 -0
  45. package/build/cjs/utils/math/boundVal.js +16 -0
  46. package/build/cjs/utils/math/index.js +12 -0
  47. package/build/cjs/utils/math/lerp.js +15 -0
  48. package/build/cjs/utils/math/scopeProgress.js +25 -0
  49. package/build/cjs/utils/types/general.js +2 -0
  50. package/build/cjs/utils/types/utility.js +2 -0
  51. package/build/es/app/Application.js +210 -0
  52. package/build/es/app/events/PageLoad.js +47 -0
  53. package/build/es/app/events/Viewport.js +232 -0
  54. package/build/es/base/Callbacks.js +205 -0
  55. package/build/es/base/Component.js +32 -0
  56. package/build/es/base/Module.js +225 -0
  57. package/build/es/base/MutableProp.js +152 -0
  58. package/build/es/base/Plugin.js +31 -0
  59. package/build/es/components/animation-frame/AnimationFrame.js +145 -0
  60. package/build/es/components/canvas/Ctx2D.js +133 -0
  61. package/build/es/components/canvas/Ctx2DPrerender.js +37 -0
  62. package/build/es/components/cursor/CustomCursor.js +274 -0
  63. package/build/es/components/dragger/Dragger.js +175 -0
  64. package/build/es/components/dragger/DraggerDirection.js +42 -0
  65. package/build/es/components/dragger/DraggerMove.js +56 -0
  66. package/build/es/components/loading/Preloader.js +164 -0
  67. package/build/es/components/loading/ProgressPreloader.js +304 -0
  68. package/build/es/components/page/Page.js +283 -0
  69. package/build/es/components/scroll/custom-scroll/CustomScroll.js +486 -0
  70. package/build/es/components/scroll/plugins/SmoothScrollDragPlugin.js +140 -0
  71. package/build/es/components/scroll/plugins/SmoothScrollKeyboardPlugin.js +109 -0
  72. package/build/es/components/scroll/scrollable/ScrollEventsBase.js +79 -0
  73. package/build/es/components/scroll/scrollable/ScrollView.js +264 -0
  74. package/build/es/components/scroll/scrollbar/Bar.js +262 -0
  75. package/build/es/components/scroll/scrollbar/ScrollBar.js +152 -0
  76. package/build/es/components/scroll/smooth-scroll/SmoothScroll.js +519 -0
  77. package/build/es/components/scroll/types.js +1 -0
  78. package/build/es/components/split-text/SplitText.js +199 -0
  79. package/build/es/components/text/SplitText.js +270 -0
  80. package/build/es/components/timeline/StaticTimeline.js +92 -0
  81. package/build/es/components/timeline/Timeline.js +141 -0
  82. package/build/es/index.js +37 -0
  83. package/build/es/utils/common/index.js +4 -0
  84. package/build/es/utils/common/mergeWithoutArrays.js +13 -0
  85. package/build/es/utils/common/randID.js +7 -0
  86. package/build/es/utils/common/timeoutCallback.js +14 -0
  87. package/build/es/utils/errors.js +5 -0
  88. package/build/es/utils/listeners/index.js +3 -0
  89. package/build/es/utils/listeners/intersectionObserverSupported.js +8 -0
  90. package/build/es/utils/listeners/onScroll.js +44 -0
  91. package/build/es/utils/math/boundVal.js +12 -0
  92. package/build/es/utils/math/index.js +4 -0
  93. package/build/es/utils/math/lerp.js +11 -0
  94. package/build/es/utils/math/scopeProgress.js +22 -0
  95. package/build/es/utils/types/general.js +1 -0
  96. package/build/es/utils/types/utility.js +1 -0
  97. package/build/types/app/Application.d.ts +161 -0
  98. package/build/types/app/Application.d.ts.map +1 -0
  99. package/build/types/app/events/PageLoad.d.ts +28 -0
  100. package/build/types/app/events/PageLoad.d.ts.map +1 -0
  101. package/build/types/app/events/Viewport.d.ts +137 -0
  102. package/build/types/app/events/Viewport.d.ts.map +1 -0
  103. package/build/types/base/Callbacks.d.ts +174 -0
  104. package/build/types/base/Callbacks.d.ts.map +1 -0
  105. package/build/types/base/Component.d.ts +48 -0
  106. package/build/types/base/Component.d.ts.map +1 -0
  107. package/build/types/base/Module.d.ts +179 -0
  108. package/build/types/base/Module.d.ts.map +1 -0
  109. package/build/types/base/MutableProp.d.ts +142 -0
  110. package/build/types/base/MutableProp.d.ts.map +1 -0
  111. package/build/types/base/Plugin.d.ts +35 -0
  112. package/build/types/base/Plugin.d.ts.map +1 -0
  113. package/build/types/components/animation-frame/AnimationFrame.d.ts +96 -0
  114. package/build/types/components/animation-frame/AnimationFrame.d.ts.map +1 -0
  115. package/build/types/components/canvas/Ctx2D.d.ts +111 -0
  116. package/build/types/components/canvas/Ctx2D.d.ts.map +1 -0
  117. package/build/types/components/canvas/Ctx2DPrerender.d.ts +41 -0
  118. package/build/types/components/canvas/Ctx2DPrerender.d.ts.map +1 -0
  119. package/build/types/components/cursor/CustomCursor.d.ts +181 -0
  120. package/build/types/components/cursor/CustomCursor.d.ts.map +1 -0
  121. package/build/types/components/dragger/Dragger.d.ts +120 -0
  122. package/build/types/components/dragger/Dragger.d.ts.map +1 -0
  123. package/build/types/components/dragger/DraggerDirection.d.ts +39 -0
  124. package/build/types/components/dragger/DraggerDirection.d.ts.map +1 -0
  125. package/build/types/components/dragger/DraggerMove.d.ts +49 -0
  126. package/build/types/components/dragger/DraggerMove.d.ts.map +1 -0
  127. package/build/types/components/loading/Preloader.d.ts +107 -0
  128. package/build/types/components/loading/Preloader.d.ts.map +1 -0
  129. package/build/types/components/loading/ProgressPreloader.d.ts +166 -0
  130. package/build/types/components/loading/ProgressPreloader.d.ts.map +1 -0
  131. package/build/types/components/page/Page.d.ts +126 -0
  132. package/build/types/components/page/Page.d.ts.map +1 -0
  133. package/build/types/components/scroll/custom-scroll/CustomScroll.d.ts +322 -0
  134. package/build/types/components/scroll/custom-scroll/CustomScroll.d.ts.map +1 -0
  135. package/build/types/components/scroll/plugins/SmoothScrollDragPlugin.d.ts +97 -0
  136. package/build/types/components/scroll/plugins/SmoothScrollDragPlugin.d.ts.map +1 -0
  137. package/build/types/components/scroll/plugins/SmoothScrollKeyboardPlugin.d.ts +34 -0
  138. package/build/types/components/scroll/plugins/SmoothScrollKeyboardPlugin.d.ts.map +1 -0
  139. package/build/types/components/scroll/scrollable/ScrollEventsBase.d.ts +60 -0
  140. package/build/types/components/scroll/scrollable/ScrollEventsBase.d.ts.map +1 -0
  141. package/build/types/components/scroll/scrollable/ScrollView.d.ts +140 -0
  142. package/build/types/components/scroll/scrollable/ScrollView.d.ts.map +1 -0
  143. package/build/types/components/scroll/scrollbar/Bar.d.ts +84 -0
  144. package/build/types/components/scroll/scrollbar/Bar.d.ts.map +1 -0
  145. package/build/types/components/scroll/scrollbar/ScrollBar.d.ts +109 -0
  146. package/build/types/components/scroll/scrollbar/ScrollBar.d.ts.map +1 -0
  147. package/build/types/components/scroll/smooth-scroll/SmoothScroll.d.ts +307 -0
  148. package/build/types/components/scroll/smooth-scroll/SmoothScroll.d.ts.map +1 -0
  149. package/build/types/components/scroll/types.d.ts +11 -0
  150. package/build/types/components/scroll/types.d.ts.map +1 -0
  151. package/build/types/components/split-text/SplitText.d.ts +118 -0
  152. package/build/types/components/split-text/SplitText.d.ts.map +1 -0
  153. package/build/types/components/text/SplitText.d.ts +118 -0
  154. package/build/types/components/text/SplitText.d.ts.map +1 -0
  155. package/build/types/components/timeline/StaticTimeline.d.ts +92 -0
  156. package/build/types/components/timeline/StaticTimeline.d.ts.map +1 -0
  157. package/build/types/components/timeline/Timeline.d.ts +101 -0
  158. package/build/types/components/timeline/Timeline.d.ts.map +1 -0
  159. package/build/types/index.d.ts +38 -0
  160. package/build/types/index.d.ts.map +1 -0
  161. package/build/types/utils/common/index.d.ts +5 -0
  162. package/build/types/utils/common/index.d.ts.map +1 -0
  163. package/build/types/utils/common/mergeWithoutArrays.d.ts +6 -0
  164. package/build/types/utils/common/mergeWithoutArrays.d.ts.map +1 -0
  165. package/build/types/utils/common/randID.d.ts +5 -0
  166. package/build/types/utils/common/randID.d.ts.map +1 -0
  167. package/build/types/utils/common/timeoutCallback.d.ts +6 -0
  168. package/build/types/utils/common/timeoutCallback.d.ts.map +1 -0
  169. package/build/types/utils/errors.d.ts +3 -0
  170. package/build/types/utils/errors.d.ts.map +1 -0
  171. package/build/types/utils/listeners/index.d.ts +4 -0
  172. package/build/types/utils/listeners/index.d.ts.map +1 -0
  173. package/build/types/utils/listeners/intersectionObserverSupported.d.ts +2 -0
  174. package/build/types/utils/listeners/intersectionObserverSupported.d.ts.map +1 -0
  175. package/build/types/utils/listeners/onScroll.d.ts +10 -0
  176. package/build/types/utils/listeners/onScroll.d.ts.map +1 -0
  177. package/build/types/utils/math/boundVal.d.ts +5 -0
  178. package/build/types/utils/math/boundVal.d.ts.map +1 -0
  179. package/build/types/utils/math/index.d.ts +5 -0
  180. package/build/types/utils/math/index.d.ts.map +1 -0
  181. package/build/types/utils/math/lerp.d.ts +5 -0
  182. package/build/types/utils/math/lerp.d.ts.map +1 -0
  183. package/build/types/utils/math/scopeProgress.d.ts +20 -0
  184. package/build/types/utils/math/scopeProgress.d.ts.map +1 -0
  185. package/build/types/utils/types/general.d.ts +7 -0
  186. package/build/types/utils/types/general.d.ts.map +1 -0
  187. package/build/types/utils/types/utility.d.ts +14 -0
  188. package/build/types/utils/types/utility.d.ts.map +1 -0
  189. package/package.json +88 -82
  190. package/src/cdn/index.js +3 -0
  191. package/src/sass/base.scss +3 -0
  192. package/src/sass/components/cursor/_custom-cursor.scss +63 -0
  193. package/src/sass/components/index.scss +6 -0
  194. package/src/sass/components/loading/_preloader.scss +15 -0
  195. package/src/sass/components/scroll/_scrollbar.scss +73 -0
  196. package/src/sass/components/scroll/_smooth-scroll.scss +17 -0
  197. package/src/sass/index.scss +3 -0
  198. package/src/sass/mixins/_scroll.scss +7 -0
  199. package/{dist/scss → src/sass}/mixins/_transition.scss +8 -4
  200. package/src/sass/mixins/_viewport.scss +69 -0
  201. package/src/sass/mixins/index.scss +3 -0
  202. package/src/ts/app/Application.ts +350 -0
  203. package/src/ts/app/events/PageLoad.ts +79 -0
  204. package/src/ts/app/events/Viewport.ts +365 -0
  205. package/src/ts/base/Callbacks.ts +380 -0
  206. package/src/ts/base/Component.ts +83 -0
  207. package/src/ts/base/Module.ts +385 -0
  208. package/src/ts/base/MutableProp.ts +242 -0
  209. package/src/ts/base/Plugin.ts +76 -0
  210. package/src/ts/components/animation-frame/AnimationFrame.ts +264 -0
  211. package/src/ts/components/canvas/Ctx2D.ts +260 -0
  212. package/src/ts/components/canvas/Ctx2DPrerender.ts +96 -0
  213. package/src/ts/components/cursor/CustomCursor.ts +462 -0
  214. package/src/ts/components/dragger/Dragger.ts +313 -0
  215. package/src/ts/components/dragger/DraggerDirection.ts +106 -0
  216. package/src/ts/components/dragger/DraggerMove.ts +114 -0
  217. package/src/ts/components/loading/Preloader.ts +279 -0
  218. package/src/ts/components/loading/ProgressPreloader.ts +484 -0
  219. package/src/ts/components/page/Page.ts +421 -0
  220. package/src/ts/components/scroll/plugins/SmoothScrollDragPlugin.ts +251 -0
  221. package/src/ts/components/scroll/plugins/SmoothScrollKeyboardPlugin.ts +166 -0
  222. package/src/ts/components/scroll/scrollable/ScrollEventsBase.ts +151 -0
  223. package/src/ts/components/scroll/scrollable/ScrollView.ts +435 -0
  224. package/src/ts/components/scroll/scrollbar/Bar.ts +364 -0
  225. package/src/ts/components/scroll/scrollbar/ScrollBar.ts +292 -0
  226. package/src/ts/components/scroll/smooth-scroll/SmoothScroll.ts +861 -0
  227. package/src/ts/components/scroll/types.ts +10 -0
  228. package/src/ts/components/text/SplitText.ts +418 -0
  229. package/src/ts/components/timeline/StaticTimeline.ts +197 -0
  230. package/src/ts/components/timeline/Timeline.ts +256 -0
  231. package/src/ts/index.ts +94 -0
  232. package/src/ts/utils/common/index.ts +9 -0
  233. package/src/ts/utils/common/mergeWithoutArrays.ts +20 -0
  234. package/src/ts/utils/common/randID.ts +9 -0
  235. package/src/ts/utils/common/timeoutCallback.ts +16 -0
  236. package/src/ts/utils/errors.ts +6 -0
  237. package/src/ts/utils/listeners/index.ts +7 -0
  238. package/src/ts/utils/listeners/intersectionObserverSupported.ts +10 -0
  239. package/src/ts/utils/listeners/onScroll.ts +56 -0
  240. package/src/ts/utils/math/boundVal.ts +15 -0
  241. package/src/ts/utils/math/index.ts +9 -0
  242. package/src/ts/utils/math/lerp.ts +16 -0
  243. package/src/ts/utils/math/scopeProgress.ts +23 -0
  244. package/src/ts/utils/types/general.ts +7 -0
  245. package/src/ts/utils/types/utility.ts +34 -0
  246. package/dist/js/AJAXEvent.js +0 -355
  247. package/dist/js/Application.js +0 -345
  248. package/dist/js/ColumnsModule.js +0 -392
  249. package/dist/js/CursorModule.js +0 -390
  250. package/dist/js/DraggerModule.js +0 -792
  251. package/dist/js/Event.js +0 -538
  252. package/dist/js/FilterModule.js +0 -943
  253. package/dist/js/FormModule.js +0 -706
  254. package/dist/js/FrameModule.js +0 -229
  255. package/dist/js/IntervalModule.js +0 -270
  256. package/dist/js/KeydownModule.js +0 -293
  257. package/dist/js/LoadEvent.js +0 -106
  258. package/dist/js/MenuBaseModule.js +0 -292
  259. package/dist/js/MenuModule.js +0 -265
  260. package/dist/js/MenuTimelineModule.js +0 -321
  261. package/dist/js/Module.js +0 -478
  262. package/dist/js/PageAjaxModule.js +0 -1010
  263. package/dist/js/PageLoadMediaPlugin.js +0 -285
  264. package/dist/js/PageModule.js +0 -440
  265. package/dist/js/PaginationModule.js +0 -961
  266. package/dist/js/PaginationScrollPlugin.js +0 -209
  267. package/dist/js/Plugin.js +0 -114
  268. package/dist/js/PopupModule.js +0 -942
  269. package/dist/js/PreloaderModule.js +0 -724
  270. package/dist/js/ResponsiveProp.js +0 -301
  271. package/dist/js/ScrollAnchorModule.js +0 -554
  272. package/dist/js/ScrollAnimateModule.js +0 -419
  273. package/dist/js/ScrollBarPlugin.js +0 -594
  274. package/dist/js/ScrollDragPlugin.js +0 -396
  275. package/dist/js/ScrollModule.js +0 -1071
  276. package/dist/js/ScrollViewModule.js +0 -388
  277. package/dist/js/SelectModule.js +0 -860
  278. package/dist/js/SliderCanvasModule.js +0 -733
  279. package/dist/js/SliderControlsPlugin.js +0 -247
  280. package/dist/js/SliderCounterPlugin.js +0 -278
  281. package/dist/js/SliderDotsPlugin.js +0 -270
  282. package/dist/js/SliderDragSwipePlugin.js +0 -245
  283. package/dist/js/SliderIntervalPlugin.js +0 -192
  284. package/dist/js/SliderKeydownPlugin.js +0 -185
  285. package/dist/js/SliderModule.js +0 -1062
  286. package/dist/js/SliderWheelPlugin.js +0 -194
  287. package/dist/js/TextAnimateModule.js +0 -663
  288. package/dist/js/TextSplitModule.js +0 -785
  289. package/dist/js/TimelineBaseModule.js +0 -405
  290. package/dist/js/TimelineModule.js +0 -494
  291. package/dist/js/URLEvent.js +0 -239
  292. package/dist/js/ViewportEvent.js +0 -465
  293. package/dist/js/WheelEventModule.js +0 -295
  294. package/dist/js/domChildOf.js +0 -46
  295. package/dist/js/domChildren.js +0 -47
  296. package/dist/js/domInsertAfter.js +0 -32
  297. package/dist/js/domRemoveChildren.js +0 -26
  298. package/dist/js/easing.js +0 -363
  299. package/dist/js/eventListenerAdd.js +0 -87
  300. package/dist/js/eventListenerGet.js +0 -49
  301. package/dist/js/eventListenerRemove.js +0 -36
  302. package/dist/js/generateId.js +0 -29
  303. package/dist/js/getBrowserName.js +0 -60
  304. package/dist/js/getOsName.js +0 -39
  305. package/dist/js/getVevetProperties.js +0 -22
  306. package/dist/js/index.js +0 -519
  307. package/dist/js/mathScopeProgress.js +0 -32
  308. package/dist/js/mathSpreadScopeProgress.js +0 -35
  309. package/dist/js/merge.js +0 -33
  310. package/dist/js/normalizeWheel.js +0 -97
  311. package/dist/js/text_animate_module_addons/_composite_elementary.js +0 -196
  312. package/dist/js/text_animate_module_addons/_elementary.js +0 -88
  313. package/dist/js/timeoutCallback.js +0 -26
  314. package/dist/js/vevet.js +0 -10
  315. package/dist/scss/_prefix.scss +0 -1
  316. package/dist/scss/classes/_clear.scss +0 -5
  317. package/dist/scss/classes/_col-row.scss +0 -48
  318. package/dist/scss/classes/_display.scss +0 -65
  319. package/dist/scss/classes/_document-reset.scss +0 -28
  320. package/dist/scss/classes/_document.scss +0 -7
  321. package/dist/scss/classes/_overflow.scss +0 -39
  322. package/dist/scss/classes/_position.scss +0 -55
  323. package/dist/scss/classes/_text.scss +0 -24
  324. package/dist/scss/classes/_transition.scss +0 -22
  325. package/dist/scss/classes/_wrap.scss +0 -31
  326. package/dist/scss/classes/index.scss +0 -14
  327. package/dist/scss/index.scss +0 -3
  328. package/dist/scss/mixins/_clear.scss +0 -6
  329. package/dist/scss/mixins/_display.scss +0 -6
  330. package/dist/scss/mixins/_form.scss +0 -14
  331. package/dist/scss/mixins/_position.scss +0 -42
  332. package/dist/scss/mixins/_reset.scss +0 -17
  333. package/dist/scss/mixins/_responsive.scss +0 -88
  334. package/dist/scss/mixins/index.scss +0 -7
  335. package/dist/scss/modules/columns/_settings.scss +0 -1
  336. package/dist/scss/modules/columns/index.scss +0 -19
  337. package/dist/scss/modules/cursor/_settings.scss +0 -7
  338. package/dist/scss/modules/cursor/index.scss +0 -15
  339. package/dist/scss/modules/form/_settings.scss +0 -15
  340. package/dist/scss/modules/form/index.scss +0 -57
  341. package/dist/scss/modules/index.scss +0 -11
  342. package/dist/scss/modules/menu/_button.scss +0 -58
  343. package/dist/scss/modules/menu/_menu.scss +0 -25
  344. package/dist/scss/modules/menu/_settings.scss +0 -23
  345. package/dist/scss/modules/menu/index.scss +0 -3
  346. package/dist/scss/modules/pagination/_settings.scss +0 -6
  347. package/dist/scss/modules/pagination/index.scss +0 -24
  348. package/dist/scss/modules/popup/_settings.scss +0 -26
  349. package/dist/scss/modules/popup/index.scss +0 -294
  350. package/dist/scss/modules/preloader/_settings.scss +0 -3
  351. package/dist/scss/modules/preloader/index.scss +0 -19
  352. package/dist/scss/modules/scroll/_settings.scss +0 -22
  353. package/dist/scss/modules/scroll/index.scss +0 -94
  354. package/dist/scss/modules/select/_settings.scss +0 -28
  355. package/dist/scss/modules/select/index.scss +0 -142
  356. package/dist/scss/modules/slider/_settings.scss +0 -35
  357. package/dist/scss/modules/slider/index.scss +0 -153
  358. package/dist/scss/modules/text/_settings.scss +0 -1
  359. package/dist/scss/modules/text/index.scss +0 -19
  360. package/dist/types/types.d.ts +0 -18763
@@ -1,196 +0,0 @@
1
- "use strict";
2
-
3
- /* Type of animation */
4
- function composite_elementary(prop, type) {
5
- // get the needed SettingStyle
6
- var styles;
7
-
8
- if (type === 'lineletter' || type === 'wordletter') {
9
- styles = prop.letter;
10
- } else if (type === 'lineword') {
11
- styles = prop.word;
12
- } // get parents
13
-
14
-
15
- var parents;
16
-
17
- if (type === 'lineletter' || type === 'lineword') {
18
- parents = this._el.lines.slice();
19
- } else if (type === 'wordletter') {
20
- parents = this._el.words.slice();
21
- } // if animation is to be reversed
22
-
23
-
24
- if (prop.reverseComposite) {
25
- parents.reverse();
26
- } // if the chain is to be chaotic
27
-
28
-
29
- if (prop.shuffle) {
30
- parents.sort(function () {
31
- return Math.random() - .5;
32
- });
33
- } // get animation information
34
-
35
-
36
- var info = composite_elementary_duration(Object.assign(prop, {
37
- styles: styles,
38
- type: type,
39
- parents: parents
40
- }), this._prop);
41
- return info;
42
- }
43
-
44
- function composite_elementary_getChildren(parent, data, prop) {
45
- // get children
46
- var children = [];
47
-
48
- if (data.type == 'lineletter') {
49
- if (prop.appendWords) {
50
- for (var i = 0; i < parent.children.length; i++) {
51
- var subChild = parent.children[i];
52
-
53
- for (var a = 0; a < subChild.children.length; a++) {
54
- var child = subChild.children[a];
55
- children.push(child);
56
- }
57
- }
58
- } else {
59
- children = parent.children;
60
- }
61
- } else if (data.type == 'lineword' || data.type == 'wordletter') {
62
- children = parent.children;
63
- } // get amount
64
-
65
-
66
- var amount = children.length,
67
- el = children.slice(); // copy elements
68
-
69
- el = el.slice(); // if animation is to be reversed
70
-
71
- if (data.reverse) {
72
- el.reverse();
73
- } // if the chain is to be chaotic
74
-
75
-
76
- if (data.shuffle) {
77
- el.sort(function () {
78
- return Math.random() - .5;
79
- });
80
- } // return values
81
-
82
-
83
- return {
84
- amount: amount,
85
- el: el
86
- };
87
- }
88
-
89
- function composite_elementary_getParents(data) {
90
- // get amount
91
- var amount = data.parents.length,
92
- el = data.parents.slice(); // return values
93
-
94
- return {
95
- amount: amount,
96
- el: el
97
- };
98
- }
99
-
100
- function composite_elementary_duration(data, prop) {
101
- // get parents
102
- var parents = composite_elementary_getParents(data); // get duration
103
-
104
- var duration = data.duration; // intervals of time
105
-
106
- var timelines = []; // calculate custom duration if auto
107
-
108
- if (data.durationAuto) {
109
- // calculate duration of children
110
- // full duration of all parents including elements inside with shifts
111
- var durationFull = 0; // all shifts between parents
112
-
113
- var shiftsFull = 0; // durations of parents that include duration of all elements with shifts
114
-
115
- var parentsDuration = []; // children in parents
116
-
117
- var allChildren = [];
118
-
119
- for (var i = 0; i < parents.amount; i++) {
120
- // all children inside the line
121
- var children = composite_elementary_getChildren(parents.el[i], data, prop); // duration of children without shifts
122
-
123
- var childrenDurationFull = children.amount * data.durationElement; // all shifts between children
124
-
125
- var childrenShifts = (children.amount - 1) * data.shift * data.durationElement; // get duration of children taking shifts into account
126
-
127
- var childrenDuration = childrenDurationFull - childrenShifts; // increase full duration without shifts
128
-
129
- durationFull += childrenDuration; // increase total shifts
130
-
131
- if (i > 0) {
132
- shiftsFull += childrenDuration * data.shiftLine;
133
- } // add informations to stack
134
-
135
-
136
- parentsDuration.push(childrenDuration);
137
- allChildren.push(children);
138
- } // calculate real duration
139
-
140
-
141
- duration = durationFull - shiftsFull; // get timelines
142
-
143
- for (var _i = 0; _i < parents.amount; _i++) {
144
- // get starting point of time in line
145
- var startTimeLine = 0;
146
-
147
- for (var a = 0; a < _i; a++) {
148
- startTimeLine += parentsDuration[a] - parentsDuration[a] * data.shiftLine;
149
- } // calculate timelines of children
150
-
151
-
152
- for (var _a = 0; _a < allChildren[_i].amount; _a++) {
153
- var startTime = startTimeLine + data.durationElement * (1 - data.shift) * _a,
154
- endTime = startTime + data.durationElement;
155
- timelines.push({
156
- start: startTime / duration,
157
- end: endTime / duration,
158
- el: allChildren[_i].el[_a]
159
- });
160
- }
161
- }
162
- } // calculate duration of each element if duration not auto
163
- else {
164
- // get duration of each parent
165
- var parentDuration = 1 / (parents.amount - data.shiftLine * (parents.amount - 1)); // go thru all parents
166
-
167
- for (var _i2 = 0; _i2 < parents.amount; _i2++) {
168
- // get starting point in parent
169
- var parentStart = parentDuration * (1 - data.shiftLine) * _i2; // get children
170
-
171
- var _children = composite_elementary_getChildren(parents.el[_i2], data, prop); // calculate duration of each child
172
-
173
-
174
- var childDuration = parentDuration / (_children.amount - data.shift * (_children.amount - 1)); // set timelines of children
175
-
176
- for (var _a2 = 0; _a2 < _children.amount; _a2++) {
177
- var start = parentStart + childDuration * (1 - data.shift) * _a2,
178
- end = start + childDuration;
179
- timelines.push({
180
- start: start,
181
- end: end,
182
- el: _children.el[_a2]
183
- });
184
- }
185
- }
186
- } // return object of data
187
-
188
-
189
- return {
190
- duration: duration,
191
- timelines: timelines,
192
- styles: data.styles
193
- };
194
- }
195
-
196
- module.exports = composite_elementary;
@@ -1,88 +0,0 @@
1
- "use strict";
2
-
3
- /* Type of animation */
4
- function elementary(prop, type) {
5
- // get elements
6
- var el;
7
-
8
- if (type === 'letter') {
9
- el = this._el.letters;
10
- } else if (type === 'word') {
11
- el = this._el.words;
12
- } else {
13
- el = this._el.lines;
14
- } // get the needed SettingStyle
15
-
16
-
17
- var styles;
18
-
19
- if (type === 'letter') {
20
- styles = prop.letter;
21
- } else if (type === 'word') {
22
- styles = prop.word;
23
- } else {
24
- styles = prop.line;
25
- } // copy elements
26
-
27
-
28
- el = el.slice(); // if animation is to be reversed
29
-
30
- if (prop.reverse) {
31
- el.reverse();
32
- } // if the chain is to be chaotic
33
-
34
-
35
- if (prop.shuffle) {
36
- el.sort(function () {
37
- return Math.random() - .5;
38
- });
39
- } // if the chain must start from center
40
-
41
-
42
- if (prop.center) {
43
- var centerNums = []; // if odd or even // if one or two elements in the center
44
-
45
- var centerNum = Math.ceil(el.length / 2) - 1;
46
-
47
- if (el.length % 2 == 0) {
48
- centerNums = [centerNum, centerNum + 1];
49
- } else {
50
- centerNums = [centerNum];
51
- } // create new array of elements // in the center at first
52
-
53
-
54
- var elNew = [],
55
- start = centerNums[0],
56
- end = centerNums[0];
57
-
58
- if (centerNums.length === 1) {
59
- elNew.push(el[centerNums[0]]);
60
- } else {
61
- elNew.push([el[centerNums[0]], el[centerNums[1]]]);
62
- end = centerNums[1];
63
- } // how much elements are left?
64
-
65
-
66
- var elementsLeft = (el.length - centerNums.length) / 2;
67
-
68
- for (var i = 1; i <= elementsLeft; i++) {
69
- var arr = [];
70
- arr.push(el[end + i]);
71
- arr.push(el[start - i]);
72
- elNew.push(arr);
73
- }
74
-
75
- el = elNew;
76
- } // get animation information
77
-
78
-
79
- var info = this._animationInfo(Object.assign(prop, {
80
- el: el,
81
- styles: styles,
82
- type: type
83
- }));
84
-
85
- return info;
86
- }
87
-
88
- module.exports = elementary;
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- /**
9
- * @description Timeout callback.
10
- *
11
- * @param {Function} callback
12
- * @param {number} timeout
13
- *
14
- * @memberof Vevet
15
- *
16
- */
17
- function timeoutCallback(callback, timeout) {
18
- if (timeout === 0) {
19
- callback();
20
- } else {
21
- setTimeout(callback.bind(this), timeout);
22
- }
23
- }
24
-
25
- var _default = timeoutCallback;
26
- exports.default = _default;
package/dist/js/vevet.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * Vevet - a JavaScript library with useful stuff.
3
- *
4
- * @module Vevet
5
- * @interface
6
- * @namespace
7
- * @author Anton Bobrov {@link https://github.com/antonbobrov/vevet.git| GitHub}
8
- *
9
- */
10
- "use strict";
@@ -1 +0,0 @@
1
- $prefix: 'vevet-' !default;
@@ -1,5 +0,0 @@
1
- @import '../mixins/clear';
2
-
3
- .clear {
4
- @include clear;
5
- }
@@ -1,48 +0,0 @@
1
- $cols: 12 !default;
2
- $rows: 12 !default;
3
-
4
- .col {
5
-
6
- @for $i from 1 through $cols {
7
-
8
- $p: $i / $cols;
9
- $value: percentage($p);
10
-
11
- &-#{$i} {
12
- width: $value;
13
- }
14
-
15
- &-v-#{$i} {
16
- width: #{$p * 100}vw;
17
- }
18
-
19
- }
20
-
21
- &-left {
22
- float: left;
23
- }
24
-
25
- &-right {
26
- float: right;
27
- }
28
-
29
- }
30
-
31
- .row {
32
-
33
- @for $i from 1 through $rows {
34
-
35
- $p: $i / $rows;
36
- $value: percentage($p);
37
-
38
- &-#{$i} {
39
- height: $value;
40
- }
41
-
42
- &-v-#{$i} {
43
- height: #{$p * 100}vh;
44
- }
45
-
46
- }
47
-
48
- }
@@ -1,65 +0,0 @@
1
- @import '../mixins/display';
2
-
3
- .display {
4
-
5
- &-block {
6
- display: block;
7
-
8
- &_important {
9
- display: block !important;
10
- }
11
-
12
- }
13
-
14
-
15
-
16
- &-inline-block {
17
- display: inline-block;
18
-
19
- &_important {
20
- display: inline-block !important;
21
- }
22
-
23
- }
24
-
25
-
26
-
27
- &-inline {
28
- display: inline;
29
-
30
- &_important {
31
- display: inline !important;
32
- }
33
-
34
- }
35
-
36
-
37
-
38
- &-flex {
39
- display: flex;
40
-
41
- &_important {
42
- display: flex !important;
43
- }
44
-
45
- &_center {
46
- align-items: center;
47
- display: flex;
48
- flex-direction: row;
49
- justify-content: center;
50
- }
51
-
52
- }
53
-
54
-
55
-
56
- &-none {
57
- display: none;
58
-
59
- &_important {
60
- display: none !important;
61
- }
62
-
63
- }
64
-
65
- }
@@ -1,28 +0,0 @@
1
- @import '../prefix';
2
-
3
- .#{$prefix}reset,
4
- .#{$prefix}reset * {
5
- -moz-appearance: none;
6
- -webkit-appearance: none;
7
-
8
- -webkit-tap-highlight-color: transparent;
9
- -webkit-text-size-adjust: 100%;
10
-
11
- box-sizing: border-box;
12
-
13
- outline: none;
14
-
15
- }
16
-
17
- .#{$prefix}reset {
18
-
19
- input,
20
- textarea {
21
-
22
- &::-ms-clear {
23
- display: none;
24
- }
25
-
26
- }
27
-
28
- }
@@ -1,7 +0,0 @@
1
- $bg: #fff !default;
2
- $color: #000 !default;
3
-
4
- html {
5
- background: $bg;
6
- color: $color;
7
- }
@@ -1,39 +0,0 @@
1
- .overflow {
2
-
3
- &-visible {
4
- overflow: visible;
5
-
6
- &_imortant {
7
- overflow: visible !important;
8
- }
9
-
10
- }
11
-
12
- &-hidden {
13
- overflow: hidden;
14
-
15
- &_imortant {
16
- overflow: hidden !important;
17
- }
18
-
19
- }
20
-
21
- &-scroll {
22
- overflow: scroll;
23
-
24
- &_imortant {
25
- overflow: scroll !important;
26
- }
27
-
28
- }
29
-
30
- &-auto {
31
- overflow: auto;
32
-
33
- &_imortant {
34
- overflow: auto !important;
35
- }
36
-
37
- }
38
-
39
- }
@@ -1,55 +0,0 @@
1
- @import '../mixins/position';
2
-
3
- .top-left {
4
- @include top-left();
5
- }
6
-
7
- .top-right {
8
- @include top-right();
9
- }
10
-
11
- .bottom-left {
12
- @include bottom-left();
13
- }
14
-
15
- .bottom-right {
16
- @include bottom-right();
17
- }
18
-
19
-
20
-
21
- .relative {
22
- position: relative;
23
-
24
- &_important {
25
- position: relative !important;
26
- }
27
-
28
- }
29
-
30
- .absolute {
31
- position: absolute;
32
-
33
- &_important {
34
- position: absolute !important;
35
- }
36
-
37
- }
38
-
39
- .fixed {
40
- position: fixed;
41
-
42
- &_important {
43
- position: fixed !important;
44
- }
45
-
46
- }
47
-
48
- .static {
49
- position: static;
50
-
51
- &_important {
52
- position: static !important;
53
- }
54
-
55
- }
@@ -1,24 +0,0 @@
1
- .text {
2
- position: relative;
3
-
4
- &-left {
5
- text-align: left;
6
- }
7
-
8
- &-center {
9
- text-align: center;
10
- }
11
-
12
- &-right {
13
- text-align: right;
14
- }
15
-
16
- &-justify {
17
- text-align: justify;
18
- }
19
-
20
- p {
21
- width: 100%;
22
- }
23
-
24
- }
@@ -1,22 +0,0 @@
1
- @import '../prefix';
2
- @import '../mixins/transition';
3
-
4
- .#{$prefix}no-transition {
5
-
6
- *:not(.#{$prefix}preloader) {
7
-
8
- &:not(.#{$prefix}preloader__item) {
9
- &:not(.#{$prefix}has-transition) {
10
- &,
11
- &:before,
12
- &:after {
13
- animation-delay: 0s !important;
14
- animation-duration: 0s !important;
15
- transition: 0s !important;
16
- }
17
- }
18
- }
19
-
20
- }
21
-
22
- }
@@ -1,31 +0,0 @@
1
- $wrap-padding: 0 !default;
2
- $wrap-1-padding: 0 4vw !default;
3
- $wrap-2-padding: 0 8vw !default;
4
- $wrap-3-padding: 0 12vw !default;
5
- $wrap-4-padding: 0 16vw !default;
6
-
7
- .wrap {
8
- padding: $wrap-padding;
9
- width: 100%;
10
-
11
- &_1 {
12
- @extend .wrap;
13
- padding: $wrap-1-padding;
14
- }
15
-
16
- &_2 {
17
- @extend .wrap;
18
- padding: $wrap-2-padding;
19
- }
20
-
21
- &_3 {
22
- @extend .wrap;
23
- padding: $wrap-3-padding;
24
- }
25
-
26
- &_4 {
27
- @extend .wrap;
28
- padding: $wrap-4-padding;
29
- }
30
-
31
- }
@@ -1,14 +0,0 @@
1
-
2
- @import './document-reset';
3
- @import './document';
4
-
5
- @import './transition';
6
-
7
- @import './position';
8
- @import './overflow';
9
- @import './display';
10
- @import './clear';
11
- @import './col-row';
12
-
13
- @import './wrap';
14
- @import './text';
@@ -1,3 +0,0 @@
1
- @import './mixins/index';
2
- @import './classes/index';
3
- @import './modules/index';
@@ -1,6 +0,0 @@
1
- @mixin clear {
2
- clear: both;
3
- display: block;
4
- height: 0;
5
- width: 100%;
6
- }
@@ -1,6 +0,0 @@
1
- @mixin display-flex-center() {
2
- align-items: center;
3
- display: flex;
4
- flex-direction: row;
5
- justify-content: center;
6
- }