@yourdash/uikit 0.1.13 → 0.1.15

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 (684) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.d.ts +292 -846
  3. package/dist/index.mjs +508 -474
  4. package/package.json +63 -63
  5. package/lib/components/box/UKBox.tsx +0 -27
  6. package/lib/components/box/box.module.css +0 -24
  7. package/lib/components/box/box.module.css.map +0 -1
  8. package/lib/components/box/box.module.scss +0 -21
  9. package/lib/components/button/UKButton.tsx +0 -24
  10. package/lib/components/button/button.module.css +0 -47
  11. package/lib/components/button/button.module.css.map +0 -1
  12. package/lib/components/button/button.module.scss +0 -47
  13. package/lib/components/buttonCombo/UKButtonCombo.tsx +0 -14
  14. package/lib/components/buttonCombo/buttonCombo.module.css +0 -22
  15. package/lib/components/buttonCombo/buttonCombo.module.css.map +0 -1
  16. package/lib/components/buttonCombo/buttonCombo.module.scss +0 -23
  17. package/lib/components/buttonLink/UKButtonLink.tsx +0 -27
  18. package/lib/components/buttonLink/buttonLink.module.css +0 -49
  19. package/lib/components/buttonLink/buttonLink.module.css.map +0 -1
  20. package/lib/components/buttonLink/buttonLink.module.scss +0 -49
  21. package/lib/components/buttonWithIcon/UKButtonWithIcon.tsx +0 -36
  22. package/lib/components/buttonWithIcon/buttonWithIcon.module.css +0 -54
  23. package/lib/components/buttonWithIcon/buttonWithIcon.module.css.map +0 -1
  24. package/lib/components/buttonWithIcon/buttonWithIcon.module.scss +0 -54
  25. package/lib/components/card/UKCard.tsx +0 -64
  26. package/lib/components/card/card.module.css +0 -76
  27. package/lib/components/card/card.module.css.map +0 -1
  28. package/lib/components/card/card.module.scss +0 -78
  29. package/lib/components/container/UKContainer.tsx +0 -24
  30. package/lib/components/container/container.module.css +0 -23
  31. package/lib/components/container/container.module.css.map +0 -1
  32. package/lib/components/container/container.module.scss +0 -24
  33. package/lib/components/contextMenu/UKContextMenu.tsx +0 -55
  34. package/lib/components/contextMenu/contextMenuRoot.module.css +0 -34
  35. package/lib/components/contextMenu/contextMenuRoot.module.css.map +0 -1
  36. package/lib/components/contextMenu/contextMenuRoot.module.scss +0 -31
  37. package/lib/components/contextMenu/contextMenuRoot.tsx +0 -83
  38. package/lib/components/contextMenu/contextMenuRootContext.tsx +0 -16
  39. package/lib/components/flex/UKFlex.tsx +0 -38
  40. package/lib/components/flex/flex.module.css +0 -35
  41. package/lib/components/flex/flex.module.css.map +0 -1
  42. package/lib/components/flex/flex.module.scss +0 -31
  43. package/lib/components/heading/UKHeading.tsx +0 -72
  44. package/lib/components/heading/heading.module.css +0 -47
  45. package/lib/components/heading/heading.module.css.map +0 -1
  46. package/lib/components/heading/heading.module.scss +0 -43
  47. package/lib/components/icon/UKIcon.tsx +0 -42
  48. package/lib/components/icon/icon.module.scss +0 -26
  49. package/lib/components/iconButton/UKIconButton.tsx +0 -36
  50. package/lib/components/iconButton/iconButton.module.css +0 -42
  51. package/lib/components/iconButton/iconButton.module.css.map +0 -1
  52. package/lib/components/iconButton/iconButton.module.scss +0 -40
  53. package/lib/components/image/UKImage.tsx +0 -111
  54. package/lib/components/image/image.module.css +0 -76
  55. package/lib/components/image/image.module.css.map +0 -1
  56. package/lib/components/image/image.module.scss +0 -81
  57. package/lib/components/link/UKLink.tsx +0 -29
  58. package/lib/components/link/link.module.css +0 -33
  59. package/lib/components/link/link.module.css.map +0 -1
  60. package/lib/components/link/link.module.scss +0 -36
  61. package/lib/components/progressBar/UKProgressBar.tsx +0 -29
  62. package/lib/components/progressBar/progressBar.module.css +0 -29
  63. package/lib/components/progressBar/progressBar.module.css.map +0 -1
  64. package/lib/components/progressBar/progressBar.module.scss +0 -25
  65. package/lib/components/redirect/UKRedirect.tsx +0 -23
  66. package/lib/components/separator/UKSeparator.tsx +0 -14
  67. package/lib/components/separator/separator.module.css +0 -40
  68. package/lib/components/separator/separator.module.css.map +0 -1
  69. package/lib/components/separator/separator.module.scss +0 -38
  70. package/lib/components/spinner/UKSpinner.tsx +0 -31
  71. package/lib/components/spinner/spinner.module.css +0 -93
  72. package/lib/components/spinner/spinner.module.css.map +0 -1
  73. package/lib/components/spinner/spinner.module.scss +0 -88
  74. package/lib/components/subtext/UKSubtext.tsx +0 -14
  75. package/lib/components/subtext/subtext.module.css +0 -21
  76. package/lib/components/subtext/subtext.module.css.map +0 -1
  77. package/lib/components/subtext/subtext.module.scss +0 -17
  78. package/lib/components/tag/UKTag.tsx +0 -21
  79. package/lib/components/tag/tag.module.css +0 -17
  80. package/lib/components/tag/tag.module.css.map +0 -1
  81. package/lib/components/tag/tag.module.scss +0 -13
  82. package/lib/components/text/UKText.tsx +0 -14
  83. package/lib/components/text/text.module.css +0 -17
  84. package/lib/components/text/text.module.css.map +0 -1
  85. package/lib/components/text/text.module.scss +0 -13
  86. package/lib/components/textButton/UKTextButton.tsx +0 -22
  87. package/lib/components/textButton/textButton.module.css +0 -32
  88. package/lib/components/textButton/textButton.module.css.map +0 -1
  89. package/lib/components/textButton/textButton.module.scss +0 -30
  90. package/lib/components/textInput/UKTextInput.tsx +0 -78
  91. package/lib/components/textInput/textInput.module.css +0 -51
  92. package/lib/components/textInput/textInput.module.css.map +0 -1
  93. package/lib/components/textInput/textInput.module.scss +0 -52
  94. package/lib/core/clippy.ts +0 -14
  95. package/lib/core/decrementLevel.tsx +0 -15
  96. package/lib/core/iconDictionary.ts +0 -293
  97. package/lib/core/icons/accessibility-16.svg +0 -6
  98. package/lib/core/icons/accessibility-inset-16.svg +0 -6
  99. package/lib/core/icons/alert-16.svg +0 -6
  100. package/lib/core/icons/alert-24.svg +0 -7
  101. package/lib/core/icons/alert-fill-12.svg +0 -6
  102. package/lib/core/icons/app-launcher-16.svg +0 -8
  103. package/lib/core/icons/apps-16.svg +0 -6
  104. package/lib/core/icons/archive-16.svg +0 -6
  105. package/lib/core/icons/archive-24.svg +0 -9
  106. package/lib/core/icons/arrow-both-16.svg +0 -6
  107. package/lib/core/icons/arrow-both-24.svg +0 -3
  108. package/lib/core/icons/arrow-down-16.svg +0 -6
  109. package/lib/core/icons/arrow-down-24.svg +0 -6
  110. package/lib/core/icons/arrow-down-left-24.svg +0 -6
  111. package/lib/core/icons/arrow-down-right-24.svg +0 -6
  112. package/lib/core/icons/arrow-left-16.svg +0 -6
  113. package/lib/core/icons/arrow-left-24.svg +0 -6
  114. package/lib/core/icons/arrow-right-16.svg +0 -6
  115. package/lib/core/icons/arrow-right-24.svg +0 -6
  116. package/lib/core/icons/arrow-switch-16.svg +0 -3
  117. package/lib/core/icons/arrow-switch-24.svg +0 -3
  118. package/lib/core/icons/arrow-up-16.svg +0 -6
  119. package/lib/core/icons/arrow-up-24.svg +0 -6
  120. package/lib/core/icons/arrow-up-left-24.svg +0 -6
  121. package/lib/core/icons/arrow-up-right-24.svg +0 -6
  122. package/lib/core/icons/beaker-16.svg +0 -6
  123. package/lib/core/icons/beaker-24.svg +0 -6
  124. package/lib/core/icons/bell-16.svg +0 -7
  125. package/lib/core/icons/bell-24.svg +0 -6
  126. package/lib/core/icons/bell-fill-16.svg +0 -3
  127. package/lib/core/icons/bell-fill-24.svg +0 -6
  128. package/lib/core/icons/bell-slash-16.svg +0 -6
  129. package/lib/core/icons/bell-slash-24.svg +0 -8
  130. package/lib/core/icons/blocked-16.svg +0 -6
  131. package/lib/core/icons/blocked-24.svg +0 -6
  132. package/lib/core/icons/bold-16.svg +0 -6
  133. package/lib/core/icons/bold-24.svg +0 -6
  134. package/lib/core/icons/book-16.svg +0 -6
  135. package/lib/core/icons/book-24.svg +0 -6
  136. package/lib/core/icons/bookmark-16.svg +0 -6
  137. package/lib/core/icons/bookmark-24.svg +0 -6
  138. package/lib/core/icons/bookmark-fill-24.svg +0 -6
  139. package/lib/core/icons/bookmark-slash-16.svg +0 -6
  140. package/lib/core/icons/bookmark-slash-24.svg +0 -7
  141. package/lib/core/icons/bookmark-slash-fill-24.svg +0 -6
  142. package/lib/core/icons/briefcase-16.svg +0 -6
  143. package/lib/core/icons/briefcase-24.svg +0 -6
  144. package/lib/core/icons/broadcast-16.svg +0 -6
  145. package/lib/core/icons/broadcast-24.svg +0 -3
  146. package/lib/core/icons/browser-16.svg +0 -6
  147. package/lib/core/icons/browser-24.svg +0 -6
  148. package/lib/core/icons/bug-16.svg +0 -6
  149. package/lib/core/icons/bug-24.svg +0 -6
  150. package/lib/core/icons/cache-16.svg +0 -8
  151. package/lib/core/icons/calendar-16.svg +0 -6
  152. package/lib/core/icons/calendar-24.svg +0 -6
  153. package/lib/core/icons/check-16.svg +0 -6
  154. package/lib/core/icons/check-24.svg +0 -6
  155. package/lib/core/icons/check-circle-16.svg +0 -6
  156. package/lib/core/icons/check-circle-24.svg +0 -7
  157. package/lib/core/icons/check-circle-fill-12.svg +0 -6
  158. package/lib/core/icons/check-circle-fill-16.svg +0 -6
  159. package/lib/core/icons/check-circle-fill-24.svg +0 -6
  160. package/lib/core/icons/checkbox-16.svg +0 -6
  161. package/lib/core/icons/checkbox-24.svg +0 -7
  162. package/lib/core/icons/checklist-16.svg +0 -6
  163. package/lib/core/icons/checklist-24.svg +0 -3
  164. package/lib/core/icons/chevron-down-16.svg +0 -6
  165. package/lib/core/icons/chevron-down-24.svg +0 -6
  166. package/lib/core/icons/chevron-left-16.svg +0 -6
  167. package/lib/core/icons/chevron-left-24.svg +0 -6
  168. package/lib/core/icons/chevron-right-16.svg +0 -6
  169. package/lib/core/icons/chevron-right-24.svg +0 -6
  170. package/lib/core/icons/chevron-up-16.svg +0 -6
  171. package/lib/core/icons/chevron-up-24.svg +0 -6
  172. package/lib/core/icons/circle-16.svg +0 -5
  173. package/lib/core/icons/circle-24.svg +0 -6
  174. package/lib/core/icons/circle-slash-16.svg +0 -6
  175. package/lib/core/icons/circle-slash-24.svg +0 -6
  176. package/lib/core/icons/clock-16.svg +0 -6
  177. package/lib/core/icons/clock-24.svg +0 -7
  178. package/lib/core/icons/cloud-16.svg +0 -6
  179. package/lib/core/icons/cloud-24.svg +0 -6
  180. package/lib/core/icons/cloud-offline-16.svg +0 -8
  181. package/lib/core/icons/cloud-offline-24.svg +0 -8
  182. package/lib/core/icons/code-16.svg +0 -6
  183. package/lib/core/icons/code-24.svg +0 -6
  184. package/lib/core/icons/code-of-conduct-16.svg +0 -6
  185. package/lib/core/icons/code-of-conduct-24.svg +0 -6
  186. package/lib/core/icons/code-review-16.svg +0 -6
  187. package/lib/core/icons/code-review-24.svg +0 -8
  188. package/lib/core/icons/code-square-16.svg +0 -6
  189. package/lib/core/icons/code-square-24.svg +0 -8
  190. package/lib/core/icons/codescan-16.svg +0 -8
  191. package/lib/core/icons/codescan-24.svg +0 -8
  192. package/lib/core/icons/codescan-checkmark-16.svg +0 -7
  193. package/lib/core/icons/codescan-checkmark-24.svg +0 -7
  194. package/lib/core/icons/codespaces-16.svg +0 -8
  195. package/lib/core/icons/codespaces-24.svg +0 -8
  196. package/lib/core/icons/columns-16.svg +0 -6
  197. package/lib/core/icons/columns-24.svg +0 -6
  198. package/lib/core/icons/command-palette-16.svg +0 -3
  199. package/lib/core/icons/command-palette-24.svg +0 -3
  200. package/lib/core/icons/comment-16.svg +0 -6
  201. package/lib/core/icons/comment-24.svg +0 -6
  202. package/lib/core/icons/comment-discussion-16.svg +0 -6
  203. package/lib/core/icons/comment-discussion-24.svg +0 -8
  204. package/lib/core/icons/commit-24.svg +0 -7
  205. package/lib/core/icons/container-16.svg +0 -6
  206. package/lib/core/icons/container-24.svg +0 -6
  207. package/lib/core/icons/copilot-16.svg +0 -7
  208. package/lib/core/icons/copilot-24.svg +0 -7
  209. package/lib/core/icons/copilot-48.svg +0 -7
  210. package/lib/core/icons/copilot-96.svg +0 -7
  211. package/lib/core/icons/copilot-error-16.svg +0 -6
  212. package/lib/core/icons/copilot-warning-16.svg +0 -8
  213. package/lib/core/icons/copy-16.svg +0 -8
  214. package/lib/core/icons/copy-24.svg +0 -8
  215. package/lib/core/icons/cpu-16.svg +0 -6
  216. package/lib/core/icons/cpu-24.svg +0 -8
  217. package/lib/core/icons/credit-card-16.svg +0 -7
  218. package/lib/core/icons/credit-card-24.svg +0 -7
  219. package/lib/core/icons/cross-reference-16.svg +0 -6
  220. package/lib/core/icons/cross-reference-24.svg +0 -3
  221. package/lib/core/icons/dash-16.svg +0 -5
  222. package/lib/core/icons/dash-24.svg +0 -5
  223. package/lib/core/icons/database-16.svg +0 -6
  224. package/lib/core/icons/database-24.svg +0 -6
  225. package/lib/core/icons/dependabot-16.svg +0 -7
  226. package/lib/core/icons/dependabot-24.svg +0 -7
  227. package/lib/core/icons/desktop-download-16.svg +0 -3
  228. package/lib/core/icons/desktop-download-24.svg +0 -8
  229. package/lib/core/icons/device-camera-16.svg +0 -6
  230. package/lib/core/icons/device-camera-video-16.svg +0 -6
  231. package/lib/core/icons/device-camera-video-24.svg +0 -6
  232. package/lib/core/icons/device-desktop-16.svg +0 -6
  233. package/lib/core/icons/device-desktop-24.svg +0 -6
  234. package/lib/core/icons/device-mobile-16.svg +0 -6
  235. package/lib/core/icons/device-mobile-24.svg +0 -7
  236. package/lib/core/icons/diamond-16.svg +0 -6
  237. package/lib/core/icons/diamond-24.svg +0 -6
  238. package/lib/core/icons/diff-16.svg +0 -6
  239. package/lib/core/icons/diff-24.svg +0 -6
  240. package/lib/core/icons/diff-added-16.svg +0 -6
  241. package/lib/core/icons/diff-ignored-16.svg +0 -6
  242. package/lib/core/icons/diff-modified-16.svg +0 -6
  243. package/lib/core/icons/diff-removed-16.svg +0 -6
  244. package/lib/core/icons/diff-renamed-16.svg +0 -6
  245. package/lib/core/icons/dot-16.svg +0 -5
  246. package/lib/core/icons/dot-24.svg +0 -5
  247. package/lib/core/icons/dot-fill-16.svg +0 -5
  248. package/lib/core/icons/dot-fill-24.svg +0 -3
  249. package/lib/core/icons/download-16.svg +0 -6
  250. package/lib/core/icons/download-24.svg +0 -3
  251. package/lib/core/icons/duplicate-16.svg +0 -9
  252. package/lib/core/icons/duplicate-24.svg +0 -9
  253. package/lib/core/icons/ellipsis-16.svg +0 -6
  254. package/lib/core/icons/ewsgit.svg +0 -14
  255. package/lib/core/icons/eye-16.svg +0 -6
  256. package/lib/core/icons/eye-24.svg +0 -7
  257. package/lib/core/icons/eye-closed-16.svg +0 -6
  258. package/lib/core/icons/eye-closed-24.svg +0 -8
  259. package/lib/core/icons/feed-discussion-16.svg +0 -6
  260. package/lib/core/icons/feed-forked-16.svg +0 -6
  261. package/lib/core/icons/feed-heart-16.svg +0 -6
  262. package/lib/core/icons/feed-merged-16.svg +0 -6
  263. package/lib/core/icons/feed-person-16.svg +0 -6
  264. package/lib/core/icons/feed-repo-16.svg +0 -6
  265. package/lib/core/icons/feed-rocket-16.svg +0 -6
  266. package/lib/core/icons/feed-star-16.svg +0 -6
  267. package/lib/core/icons/feed-tag-16.svg +0 -7
  268. package/lib/core/icons/feed-trophy-16.svg +0 -7
  269. package/lib/core/icons/file-16.svg +0 -6
  270. package/lib/core/icons/file-24.svg +0 -6
  271. package/lib/core/icons/file-added-16.svg +0 -6
  272. package/lib/core/icons/file-badge-16.svg +0 -8
  273. package/lib/core/icons/file-binary-16.svg +0 -6
  274. package/lib/core/icons/file-binary-24.svg +0 -9
  275. package/lib/core/icons/file-code-16.svg +0 -6
  276. package/lib/core/icons/file-code-24.svg +0 -8
  277. package/lib/core/icons/file-diff-16.svg +0 -6
  278. package/lib/core/icons/file-diff-24.svg +0 -8
  279. package/lib/core/icons/file-directory-16.svg +0 -6
  280. package/lib/core/icons/file-directory-24.svg +0 -6
  281. package/lib/core/icons/file-directory-fill-16.svg +0 -3
  282. package/lib/core/icons/file-directory-fill-24.svg +0 -6
  283. package/lib/core/icons/file-directory-open-fill-16.svg +0 -3
  284. package/lib/core/icons/file-media-24.svg +0 -6
  285. package/lib/core/icons/file-moved-16.svg +0 -3
  286. package/lib/core/icons/file-removed-16.svg +0 -6
  287. package/lib/core/icons/file-submodule-16.svg +0 -6
  288. package/lib/core/icons/file-submodule-24.svg +0 -6
  289. package/lib/core/icons/file-symlink-file-16.svg +0 -6
  290. package/lib/core/icons/file-symlink-file-24.svg +0 -6
  291. package/lib/core/icons/file-zip-16.svg +0 -6
  292. package/lib/core/icons/file-zip-24.svg +0 -10
  293. package/lib/core/icons/filter-16.svg +0 -6
  294. package/lib/core/icons/filter-24.svg +0 -3
  295. package/lib/core/icons/flame-16.svg +0 -6
  296. package/lib/core/icons/flame-24.svg +0 -6
  297. package/lib/core/icons/fold-16.svg +0 -3
  298. package/lib/core/icons/fold-24.svg +0 -10
  299. package/lib/core/icons/fold-down-16.svg +0 -3
  300. package/lib/core/icons/fold-down-24.svg +0 -8
  301. package/lib/core/icons/fold-up-16.svg +0 -3
  302. package/lib/core/icons/fold-up-24.svg +0 -8
  303. package/lib/core/icons/gear-16.svg +0 -6
  304. package/lib/core/icons/gear-24.svg +0 -7
  305. package/lib/core/icons/gift-16.svg +0 -6
  306. package/lib/core/icons/gift-24.svg +0 -6
  307. package/lib/core/icons/git-branch-16.svg +0 -6
  308. package/lib/core/icons/git-branch-24.svg +0 -9
  309. package/lib/core/icons/git-commit-16.svg +0 -6
  310. package/lib/core/icons/git-commit-24.svg +0 -6
  311. package/lib/core/icons/git-compare-16.svg +0 -6
  312. package/lib/core/icons/git-compare-24.svg +0 -9
  313. package/lib/core/icons/git-merge-16.svg +0 -6
  314. package/lib/core/icons/git-merge-24.svg +0 -8
  315. package/lib/core/icons/git-merge-queue-16.svg +0 -8
  316. package/lib/core/icons/git-pull-request-16.svg +0 -6
  317. package/lib/core/icons/git-pull-request-24.svg +0 -8
  318. package/lib/core/icons/git-pull-request-closed-16.svg +0 -6
  319. package/lib/core/icons/git-pull-request-closed-24.svg +0 -8
  320. package/lib/core/icons/git-pull-request-draft-16.svg +0 -7
  321. package/lib/core/icons/git-pull-request-draft-24.svg +0 -7
  322. package/lib/core/icons/globe-16.svg +0 -6
  323. package/lib/core/icons/globe-24.svg +0 -6
  324. package/lib/core/icons/grabber-16.svg +0 -6
  325. package/lib/core/icons/grabber-24.svg +0 -6
  326. package/lib/core/icons/graph-16.svg +0 -6
  327. package/lib/core/icons/graph-24.svg +0 -3
  328. package/lib/core/icons/hash-16.svg +0 -6
  329. package/lib/core/icons/hash-24.svg +0 -6
  330. package/lib/core/icons/heading-16.svg +0 -6
  331. package/lib/core/icons/heading-24.svg +0 -6
  332. package/lib/core/icons/heart-16.svg +0 -6
  333. package/lib/core/icons/heart-24.svg +0 -6
  334. package/lib/core/icons/heart-fill-16.svg +0 -6
  335. package/lib/core/icons/heart-fill-24.svg +0 -3
  336. package/lib/core/icons/history-16.svg +0 -6
  337. package/lib/core/icons/history-24.svg +0 -3
  338. package/lib/core/icons/home-16.svg +0 -3
  339. package/lib/core/icons/home-24.svg +0 -6
  340. package/lib/core/icons/home-fill-24.svg +0 -3
  341. package/lib/core/icons/horizontal-rule-16.svg +0 -5
  342. package/lib/core/icons/horizontal-rule-24.svg +0 -5
  343. package/lib/core/icons/hourglass-16.svg +0 -6
  344. package/lib/core/icons/hourglass-24.svg +0 -6
  345. package/lib/core/icons/hubot-16.svg +0 -6
  346. package/lib/core/icons/hubot-24.svg +0 -8
  347. package/lib/core/icons/id-badge-16.svg +0 -8
  348. package/lib/core/icons/image-16.svg +0 -6
  349. package/lib/core/icons/image-24.svg +0 -6
  350. package/lib/core/icons/inbox-16.svg +0 -6
  351. package/lib/core/icons/inbox-24.svg +0 -6
  352. package/lib/core/icons/infinity-16.svg +0 -6
  353. package/lib/core/icons/infinity-24.svg +0 -6
  354. package/lib/core/icons/info-16.svg +0 -6
  355. package/lib/core/icons/info-24.svg +0 -8
  356. package/lib/core/icons/issue-closed-16.svg +0 -6
  357. package/lib/core/icons/issue-closed-24.svg +0 -7
  358. package/lib/core/icons/issue-draft-16.svg +0 -6
  359. package/lib/core/icons/issue-draft-24.svg +0 -6
  360. package/lib/core/icons/issue-opened-16.svg +0 -6
  361. package/lib/core/icons/issue-opened-24.svg +0 -6
  362. package/lib/core/icons/issue-reopened-16.svg +0 -3
  363. package/lib/core/icons/issue-reopened-24.svg +0 -3
  364. package/lib/core/icons/italic-16.svg +0 -6
  365. package/lib/core/icons/italic-24.svg +0 -6
  366. package/lib/core/icons/iterations-16.svg +0 -3
  367. package/lib/core/icons/iterations-24.svg +0 -3
  368. package/lib/core/icons/kebab-horizontal-16.svg +0 -3
  369. package/lib/core/icons/kebab-horizontal-24.svg +0 -5
  370. package/lib/core/icons/key-16.svg +0 -6
  371. package/lib/core/icons/key-24.svg +0 -7
  372. package/lib/core/icons/key-asterisk-16.svg +0 -8
  373. package/lib/core/icons/law-16.svg +0 -6
  374. package/lib/core/icons/law-24.svg +0 -6
  375. package/lib/core/icons/light-bulb-16.svg +0 -6
  376. package/lib/core/icons/light-bulb-24.svg +0 -6
  377. package/lib/core/icons/link-16.svg +0 -6
  378. package/lib/core/icons/link-24.svg +0 -3
  379. package/lib/core/icons/link-external-16.svg +0 -6
  380. package/lib/core/icons/link-external-24.svg +0 -3
  381. package/lib/core/icons/list-ordered-16.svg +0 -6
  382. package/lib/core/icons/list-ordered-24.svg +0 -3
  383. package/lib/core/icons/list-unordered-16.svg +0 -6
  384. package/lib/core/icons/list-unordered-24.svg +0 -6
  385. package/lib/core/icons/location-16.svg +0 -6
  386. package/lib/core/icons/location-24.svg +0 -7
  387. package/lib/core/icons/lock-16.svg +0 -6
  388. package/lib/core/icons/lock-24.svg +0 -6
  389. package/lib/core/icons/log-16.svg +0 -7
  390. package/lib/core/icons/login.svg +0 -6
  391. package/lib/core/icons/logo-gist-16.svg +0 -6
  392. package/lib/core/icons/logo-github-16.svg +0 -6
  393. package/lib/core/icons/logout.svg +0 -6
  394. package/lib/core/icons/mail-16.svg +0 -6
  395. package/lib/core/icons/mail-24.svg +0 -6
  396. package/lib/core/icons/mark-github-16.svg +0 -6
  397. package/lib/core/icons/markdown-16.svg +0 -6
  398. package/lib/core/icons/megaphone-16.svg +0 -11
  399. package/lib/core/icons/megaphone-24.svg +0 -6
  400. package/lib/core/icons/mention-16.svg +0 -6
  401. package/lib/core/icons/mention-24.svg +0 -6
  402. package/lib/core/icons/meter-16.svg +0 -6
  403. package/lib/core/icons/milestone-16.svg +0 -6
  404. package/lib/core/icons/milestone-24.svg +0 -6
  405. package/lib/core/icons/mirror-16.svg +0 -6
  406. package/lib/core/icons/mirror-24.svg +0 -6
  407. package/lib/core/icons/moon-16.svg +0 -6
  408. package/lib/core/icons/moon-24.svg +0 -6
  409. package/lib/core/icons/mortar-board-16.svg +0 -6
  410. package/lib/core/icons/mortar-board-24.svg +0 -6
  411. package/lib/core/icons/multi-select-16.svg +0 -7
  412. package/lib/core/icons/multi-select-24.svg +0 -7
  413. package/lib/core/icons/mute-16.svg +0 -6
  414. package/lib/core/icons/mute-24.svg +0 -8
  415. package/lib/core/icons/no-entry-16.svg +0 -6
  416. package/lib/core/icons/no-entry-24.svg +0 -6
  417. package/lib/core/icons/no-entry-fill-12.svg +0 -5
  418. package/lib/core/icons/north-star-16.svg +0 -3
  419. package/lib/core/icons/north-star-24.svg +0 -3
  420. package/lib/core/icons/note-16.svg +0 -6
  421. package/lib/core/icons/note-24.svg +0 -8
  422. package/lib/core/icons/number-16.svg +0 -6
  423. package/lib/core/icons/number-24.svg +0 -6
  424. package/lib/core/icons/organization-16.svg +0 -6
  425. package/lib/core/icons/organization-24.svg +0 -8
  426. package/lib/core/icons/package-16.svg +0 -6
  427. package/lib/core/icons/package-24.svg +0 -6
  428. package/lib/core/icons/package-dependencies-16.svg +0 -6
  429. package/lib/core/icons/package-dependencies-24.svg +0 -8
  430. package/lib/core/icons/package-dependents-16.svg +0 -6
  431. package/lib/core/icons/package-dependents-24.svg +0 -8
  432. package/lib/core/icons/paintbrush-16.svg +0 -6
  433. package/lib/core/icons/paper-airplane-16.svg +0 -6
  434. package/lib/core/icons/paper-airplane-24.svg +0 -6
  435. package/lib/core/icons/paperclip-16.svg +0 -6
  436. package/lib/core/icons/paperclip-24.svg +0 -6
  437. package/lib/core/icons/paste-16.svg +0 -6
  438. package/lib/core/icons/paste-24.svg +0 -8
  439. package/lib/core/icons/pencil-16.svg +0 -6
  440. package/lib/core/icons/pencil-24.svg +0 -6
  441. package/lib/core/icons/people-16.svg +0 -6
  442. package/lib/core/icons/people-24.svg +0 -8
  443. package/lib/core/icons/person-16.svg +0 -6
  444. package/lib/core/icons/person-24.svg +0 -6
  445. package/lib/core/icons/person-add-16.svg +0 -6
  446. package/lib/core/icons/person-add-24.svg +0 -6
  447. package/lib/core/icons/person-fill-16.svg +0 -3
  448. package/lib/core/icons/person-fill-24.svg +0 -3
  449. package/lib/core/icons/pin-16.svg +0 -6
  450. package/lib/core/icons/pin-24.svg +0 -6
  451. package/lib/core/icons/play-16.svg +0 -6
  452. package/lib/core/icons/play-24.svg +0 -7
  453. package/lib/core/icons/plug-16.svg +0 -6
  454. package/lib/core/icons/plug-24.svg +0 -6
  455. package/lib/core/icons/plus-16.svg +0 -6
  456. package/lib/core/icons/plus-24.svg +0 -6
  457. package/lib/core/icons/plus-circle-16.svg +0 -6
  458. package/lib/core/icons/plus-circle-24.svg +0 -7
  459. package/lib/core/icons/project-16.svg +0 -6
  460. package/lib/core/icons/project-24.svg +0 -8
  461. package/lib/core/icons/pulse-16.svg +0 -6
  462. package/lib/core/icons/pulse-24.svg +0 -6
  463. package/lib/core/icons/question-16.svg +0 -6
  464. package/lib/core/icons/question-24.svg +0 -8
  465. package/lib/core/icons/quote-16.svg +0 -6
  466. package/lib/core/icons/quote-24.svg +0 -6
  467. package/lib/core/icons/reply-16.svg +0 -6
  468. package/lib/core/icons/reply-24.svg +0 -3
  469. package/lib/core/icons/repo-16.svg +0 -6
  470. package/lib/core/icons/repo-24.svg +0 -7
  471. package/lib/core/icons/repo-clone-16.svg +0 -6
  472. package/lib/core/icons/repo-deleted-16.svg +0 -3
  473. package/lib/core/icons/repo-forked-16.svg +0 -6
  474. package/lib/core/icons/repo-forked-24.svg +0 -9
  475. package/lib/core/icons/repo-locked-16.svg +0 -8
  476. package/lib/core/icons/repo-locked-24.svg +0 -8
  477. package/lib/core/icons/repo-pull-16.svg +0 -6
  478. package/lib/core/icons/repo-push-16.svg +0 -6
  479. package/lib/core/icons/repo-push-24.svg +0 -3
  480. package/lib/core/icons/repo-template-16.svg +0 -6
  481. package/lib/core/icons/repo-template-24.svg +0 -3
  482. package/lib/core/icons/report-16.svg +0 -6
  483. package/lib/core/icons/report-24.svg +0 -6
  484. package/lib/core/icons/rocket-16.svg +0 -6
  485. package/lib/core/icons/rocket-24.svg +0 -6
  486. package/lib/core/icons/rows-16.svg +0 -6
  487. package/lib/core/icons/rows-24.svg +0 -6
  488. package/lib/core/icons/rss-16.svg +0 -6
  489. package/lib/core/icons/rss-24.svg +0 -6
  490. package/lib/core/icons/ruby-16.svg +0 -6
  491. package/lib/core/icons/ruby-24.svg +0 -6
  492. package/lib/core/icons/screen-full-16.svg +0 -6
  493. package/lib/core/icons/screen-full-24.svg +0 -6
  494. package/lib/core/icons/screen-normal-16.svg +0 -6
  495. package/lib/core/icons/screen-normal-24.svg +0 -6
  496. package/lib/core/icons/search-16.svg +0 -6
  497. package/lib/core/icons/search-24.svg +0 -6
  498. package/lib/core/icons/server-16.svg +0 -6
  499. package/lib/core/icons/server-24.svg +0 -8
  500. package/lib/core/icons/server-error.svg +0 -5
  501. package/lib/core/icons/share-16.svg +0 -6
  502. package/lib/core/icons/share-24.svg +0 -6
  503. package/lib/core/icons/share-android-16.svg +0 -6
  504. package/lib/core/icons/share-android-24.svg +0 -6
  505. package/lib/core/icons/shield-16.svg +0 -6
  506. package/lib/core/icons/shield-24.svg +0 -7
  507. package/lib/core/icons/shield-check-16.svg +0 -6
  508. package/lib/core/icons/shield-check-24.svg +0 -7
  509. package/lib/core/icons/shield-lock-16.svg +0 -6
  510. package/lib/core/icons/shield-lock-24.svg +0 -6
  511. package/lib/core/icons/shield-slash-16.svg +0 -8
  512. package/lib/core/icons/shield-x-16.svg +0 -6
  513. package/lib/core/icons/shield-x-24.svg +0 -8
  514. package/lib/core/icons/sidebar-collapse-16.svg +0 -7
  515. package/lib/core/icons/sidebar-collapse-24.svg +0 -7
  516. package/lib/core/icons/sidebar-expand-16.svg +0 -7
  517. package/lib/core/icons/sidebar-expand-24.svg +0 -7
  518. package/lib/core/icons/sign-in-16.svg +0 -6
  519. package/lib/core/icons/sign-in-24.svg +0 -6
  520. package/lib/core/icons/sign-out-16.svg +0 -6
  521. package/lib/core/icons/sign-out-24.svg +0 -6
  522. package/lib/core/icons/single-select-16.svg +0 -7
  523. package/lib/core/icons/single-select-24.svg +0 -7
  524. package/lib/core/icons/skip-16.svg +0 -6
  525. package/lib/core/icons/skip-24.svg +0 -7
  526. package/lib/core/icons/sliders-16.svg +0 -3
  527. package/lib/core/icons/smiley-16.svg +0 -6
  528. package/lib/core/icons/smiley-24.svg +0 -9
  529. package/lib/core/icons/sort-asc-16.svg +0 -6
  530. package/lib/core/icons/sort-asc-24.svg +0 -3
  531. package/lib/core/icons/sort-desc-16.svg +0 -7
  532. package/lib/core/icons/sort-desc-24.svg +0 -3
  533. package/lib/core/icons/square-16.svg +0 -6
  534. package/lib/core/icons/square-24.svg +0 -6
  535. package/lib/core/icons/square-fill-16.svg +0 -6
  536. package/lib/core/icons/square-fill-24.svg +0 -6
  537. package/lib/core/icons/squirrel-16.svg +0 -6
  538. package/lib/core/icons/squirrel-24.svg +0 -3
  539. package/lib/core/icons/stack-16.svg +0 -6
  540. package/lib/core/icons/stack-24.svg +0 -10
  541. package/lib/core/icons/star-16.svg +0 -6
  542. package/lib/core/icons/star-24.svg +0 -6
  543. package/lib/core/icons/star-fill-16.svg +0 -6
  544. package/lib/core/icons/star-fill-24.svg +0 -6
  545. package/lib/core/icons/stop-16.svg +0 -6
  546. package/lib/core/icons/stop-24.svg +0 -7
  547. package/lib/core/icons/stopwatch-16.svg +0 -6
  548. package/lib/core/icons/stopwatch-24.svg +0 -6
  549. package/lib/core/icons/store.svg +0 -7
  550. package/lib/core/icons/strikethrough-16.svg +0 -6
  551. package/lib/core/icons/strikethrough-24.svg +0 -6
  552. package/lib/core/icons/sun-16.svg +0 -6
  553. package/lib/core/icons/sun-24.svg +0 -6
  554. package/lib/core/icons/sync-16.svg +0 -6
  555. package/lib/core/icons/sync-24.svg +0 -3
  556. package/lib/core/icons/tab-24.svg +0 -3
  557. package/lib/core/icons/tab-external-16.svg +0 -3
  558. package/lib/core/icons/table-16.svg +0 -6
  559. package/lib/core/icons/table-24.svg +0 -6
  560. package/lib/core/icons/tag-16.svg +0 -6
  561. package/lib/core/icons/tag-24.svg +0 -7
  562. package/lib/core/icons/tasklist-16.svg +0 -6
  563. package/lib/core/icons/tasklist-24.svg +0 -7
  564. package/lib/core/icons/telescope-16.svg +0 -6
  565. package/lib/core/icons/telescope-24.svg +0 -8
  566. package/lib/core/icons/telescope-fill-16.svg +0 -6
  567. package/lib/core/icons/telescope-fill-24.svg +0 -8
  568. package/lib/core/icons/terminal-16.svg +0 -6
  569. package/lib/core/icons/terminal-24.svg +0 -8
  570. package/lib/core/icons/three-bars-16.svg +0 -6
  571. package/lib/core/icons/thumbsdown-16.svg +0 -6
  572. package/lib/core/icons/thumbsdown-24.svg +0 -6
  573. package/lib/core/icons/thumbsup-16.svg +0 -6
  574. package/lib/core/icons/thumbsup-24.svg +0 -6
  575. package/lib/core/icons/tools-16.svg +0 -6
  576. package/lib/core/icons/tools-24.svg +0 -6
  577. package/lib/core/icons/trash-16.svg +0 -6
  578. package/lib/core/icons/trash-24.svg +0 -10
  579. package/lib/core/icons/triangle-down-16.svg +0 -3
  580. package/lib/core/icons/triangle-down-24.svg +0 -3
  581. package/lib/core/icons/triangle-left-16.svg +0 -3
  582. package/lib/core/icons/triangle-left-24.svg +0 -3
  583. package/lib/core/icons/triangle-right-16.svg +0 -3
  584. package/lib/core/icons/triangle-right-24.svg +0 -3
  585. package/lib/core/icons/triangle-up-16.svg +0 -3
  586. package/lib/core/icons/triangle-up-24.svg +0 -3
  587. package/lib/core/icons/trophy-16.svg +0 -6
  588. package/lib/core/icons/trophy-24.svg +0 -6
  589. package/lib/core/icons/typography-16.svg +0 -6
  590. package/lib/core/icons/typography-24.svg +0 -6
  591. package/lib/core/icons/unfold-16.svg +0 -3
  592. package/lib/core/icons/unfold-24.svg +0 -9
  593. package/lib/core/icons/unlock-16.svg +0 -6
  594. package/lib/core/icons/unlock-24.svg +0 -6
  595. package/lib/core/icons/unmute-16.svg +0 -6
  596. package/lib/core/icons/unmute-24.svg +0 -8
  597. package/lib/core/icons/unverified-16.svg +0 -6
  598. package/lib/core/icons/unverified-24.svg +0 -8
  599. package/lib/core/icons/upload-16.svg +0 -6
  600. package/lib/core/icons/upload-24.svg +0 -6
  601. package/lib/core/icons/verified-16.svg +0 -6
  602. package/lib/core/icons/verified-24.svg +0 -7
  603. package/lib/core/icons/versions-16.svg +0 -6
  604. package/lib/core/icons/versions-24.svg +0 -6
  605. package/lib/core/icons/video-16.svg +0 -7
  606. package/lib/core/icons/video-24.svg +0 -7
  607. package/lib/core/icons/webhook-16.svg +0 -3
  608. package/lib/core/icons/workflow-16.svg +0 -6
  609. package/lib/core/icons/workflow-24.svg +0 -6
  610. package/lib/core/icons/x-16.svg +0 -6
  611. package/lib/core/icons/x-24.svg +0 -6
  612. package/lib/core/icons/x-circle-16.svg +0 -6
  613. package/lib/core/icons/x-circle-24.svg +0 -8
  614. package/lib/core/icons/x-circle-fill-12.svg +0 -6
  615. package/lib/core/icons/x-circle-fill-16.svg +0 -6
  616. package/lib/core/icons/x-circle-fill-24.svg +0 -6
  617. package/lib/core/icons/yourdash.svg +0 -61
  618. package/lib/core/icons/zap-16.svg +0 -6
  619. package/lib/core/icons/zap-24.svg +0 -6
  620. package/lib/core/incrementLevel.tsx +0 -15
  621. package/lib/core/isPhone.ts +0 -30
  622. package/lib/core/level.tsx +0 -27
  623. package/lib/core/remToPx.ts +0 -8
  624. package/lib/core/root.tsx +0 -26
  625. package/lib/core/toasts/toast.module.css +0 -68
  626. package/lib/core/toasts/toast.module.css.map +0 -1
  627. package/lib/core/toasts/toast.module.scss +0 -71
  628. package/lib/core/toasts/toast.ts +0 -12
  629. package/lib/core/toasts/toastAction.ts +0 -12
  630. package/lib/core/toasts/toastContext.ts +0 -16
  631. package/lib/core/toasts/toasts.tsx +0 -96
  632. package/lib/core/toasts/useToast.ts +0 -18
  633. package/lib/core/utils.ts +0 -4
  634. package/lib/core/uuid.ts +0 -12
  635. package/lib/theme/defaultTheme.module.css +0 -297
  636. package/lib/theme/defaultTheme.module.css.map +0 -1
  637. package/lib/theme/defaultTheme.module.scss +0 -361
  638. package/lib/theme/themeValues.css +0 -7
  639. package/lib/theme/themeValues.css.map +0 -1
  640. package/lib/theme/themeValues.scss +0 -129
  641. package/lib/utilityComponent/hasBeenShown/hasBeenShown.tsx +0 -47
  642. package/lib/utilityComponent/onInView/onInView.tsx +0 -83
  643. package/lib/views/carousel/UKCarousel.tsx +0 -147
  644. package/lib/views/carousel/carousel.module.css +0 -77
  645. package/lib/views/carousel/carousel.module.css.map +0 -1
  646. package/lib/views/carousel/carousel.module.scss +0 -94
  647. package/lib/views/dialog/UKDialog.tsx +0 -34
  648. package/lib/views/dialog/dialog.module.css +0 -44
  649. package/lib/views/dialog/dialog.module.css.map +0 -1
  650. package/lib/views/dialog/dialog.module.scss +0 -44
  651. package/lib/views/infiniteScroll/UKInfiniteScroll.tsx +0 -90
  652. package/lib/views/infiniteScroll/infiniteScroll.module.css +0 -30
  653. package/lib/views/infiniteScroll/infiniteScroll.module.css.map +0 -1
  654. package/lib/views/infiniteScroll/infiniteScroll.module.scss +0 -26
  655. package/lib/views/layout/UKLayout.module.scss +0 -24
  656. package/lib/views/layout/UKLayout.tsx +0 -30
  657. package/lib/views/navBar/UKNavBar.tsx +0 -37
  658. package/lib/views/navBar/components/navImage/UKNavbarNavImage.tsx +0 -15
  659. package/lib/views/navBar/components/navImage/navImage.module.css +0 -12
  660. package/lib/views/navBar/components/navImage/navImage.module.css.map +0 -1
  661. package/lib/views/navBar/components/navImage/navImage.module.scss +0 -7
  662. package/lib/views/navBar/components/navTitle/UKNavbarNavTitle.tsx +0 -13
  663. package/lib/views/navBar/navBar.module.css +0 -26
  664. package/lib/views/navBar/navBar.module.css.map +0 -1
  665. package/lib/views/navBar/navBar.module.scss +0 -22
  666. package/lib/views/onBoarding/UKOnBoarding.tsx +0 -146
  667. package/lib/views/onBoarding/onBoarding.module.css +0 -74
  668. package/lib/views/onBoarding/onBoarding.module.css.map +0 -1
  669. package/lib/views/onBoarding/onBoarding.module.scss +0 -84
  670. package/lib/views/pageHeader/UKPageHeader.tsx +0 -28
  671. package/lib/views/pageHeader/header.module.css +0 -20
  672. package/lib/views/pageHeader/header.module.css.map +0 -1
  673. package/lib/views/pageHeader/header.module.scss +0 -16
  674. package/lib/views/panAndZoom/UKPanAndZoom.tsx +0 -121
  675. package/lib/views/sidebar/UKSidebar.tsx +0 -30
  676. package/lib/views/sidebar/UKSidebarContainer.tsx +0 -38
  677. package/lib/views/sidebar/UKSidebarContext.tsx +0 -15
  678. package/lib/views/sidebar/UKSidebarToggleButton.tsx +0 -27
  679. package/lib/views/sidebar/sidebar.module.css +0 -54
  680. package/lib/views/sidebar/sidebar.module.css.map +0 -1
  681. package/lib/views/sidebar/sidebar.module.scss +0 -49
  682. package/lib/views/sidebar/sidebarContainer.module.css +0 -26
  683. package/lib/views/sidebar/sidebarContainer.module.css.map +0 -1
  684. package/lib/views/sidebar/sidebarContainer.module.scss +0 -22
@@ -1,361 +0,0 @@
1
- @use "themeValues" as *;
2
-
3
- /*!
4
- * Copyright ©2025 Ewsgit<https://github.com/ewsgit> and YourDash<https://github.com/yourdash> contributors.
5
- * YourDash is licensed under the MIT License. (https://ewsgit.mit-license.org)
6
- */
7
-
8
- .theme {
9
- overflow-x: hidden;
10
- overflow-y: auto;
11
- height: 100%;
12
-
13
- background: rgb(var(#{$theme+$background}));
14
- #{$theme}-author: "Ewsgit";
15
- #{$theme}-name: "YourDash Classic Dark";
16
- #{$theme}-version: "0.0.1";
17
-
18
- ::-webkit-scrollbar {
19
- width: var(#{$theme+$scrollbar+$width});
20
- border-radius: 0;
21
- }
22
-
23
- ::-webkit-scrollbar-thumb {
24
- border-radius: var(#{$theme+$scrollbar+$radius});
25
- }
26
- }
27
-
28
- .level0 {
29
- color: rgb(var(#{$theme+$color}));
30
-
31
- #{$theme+$color}: 255, 255, 255;
32
- #{$theme+$subcolor}: 187, 187, 187;
33
- #{$theme+$background}: 34, 34, 34;
34
- #{$theme+$accent}: 118, 140, 231;
35
- #{$theme+$border}: 1px solid #555555;
36
- #{$theme+$radius}: 1rem;
37
- #{$theme+$padding}: 1rem;
38
- #{$theme+$gap}: 0.5rem;
39
- #{$theme+$transition}: all 200ms ease-in-out;
40
- #{$theme+$transition+$transition}: 200ms ease-in-out;
41
- #{$theme+$separator+$size}: 1px;
42
- #{$theme+$separator+$color}: 68, 68, 68;
43
- #{$theme+$scrollbar+$width}: 0.4rem;
44
- #{$theme+$scrollbar+$radius}: 0.1rem;
45
-
46
- // heading
47
- #{$theme+$heading+$h1+$weight}: 900;
48
- #{$theme+$heading+$h1+$size}: 3rem;
49
- #{$theme+$heading+$h2+$weight}: 700;
50
- #{$theme+$heading+$h2+$size}: 2rem;
51
- #{$theme+$heading+$h3+$weight}: 600;
52
- #{$theme+$heading+$h3+$size}: 1.5rem;
53
- #{$theme+$heading+$h4+$weight}: 500;
54
- #{$theme+$heading+$h4+$size}: 1.25rem;
55
- #{$theme+$heading+$h5+$weight}: 500;
56
- #{$theme+$heading+$h5+$size}: 1rem;
57
- #{$theme+$heading+$h6+$weight}: 500;
58
- #{$theme+$heading+$h6+$size}: 0.875rem;
59
-
60
- // input
61
- #{$theme+$input+$color}: 255, 255, 255;
62
- #{$theme+$input+$background}: 34, 34, 34;
63
- #{$theme+$input+$border}: 1px solid #444444;
64
- #{$theme+$input+$radius}: 0.5rem;
65
- #{$theme+$input+$height}: 2rem;
66
- #{$theme+$input+$padding+$horizontal}: 0.5rem;
67
- #{$theme+$input+$transition}: all 0.2s ease-in-out;
68
- // focus
69
- #{$theme+$input+$focus+$color}: 255, 255, 255;
70
- #{$theme+$input+$focus+$background}: 51, 51, 51;
71
- #{$theme+$input+$focus+$border}: 1px solid #666666;
72
-
73
- // button
74
- #{$theme+$button+$color}: 255, 255, 255;
75
- #{$theme+$button+$background}: 68, 68, 68;
76
- #{$theme+$button+$border}: 0px solid #666666;
77
- #{$theme+$button+$font+$size}: 0.9rem;
78
- #{$theme+$button+$font+$weight}: 400;
79
- #{$theme+$button+$radius}: 0.5rem;
80
- #{$theme+$button+$padding+$horizontal}: 0.5rem;
81
- #{$theme+$button+$transition}: all 0.2s ease-in-out;
82
- // hover
83
- #{$theme+$button+$hover+$color}: 255, 255, 255;
84
- #{$theme+$button+$hover+$background}: 85, 85, 85;
85
- #{$theme+$button+$hover+$border}: 0px solid #666666;
86
- #{$theme+$button+$hover+$radius}: 0.5rem;
87
- #{$theme+$button+$hover+$transition}: all 50ms ease-in-out;
88
- // active
89
- #{$theme+$button+$active+$color}: 0, 0, 0;
90
- #{$theme+$button+$active+$background}: 102, 102, 102;
91
- #{$theme+$button+$active+$border}: 0px solid #777777;
92
- #{$theme+$button+$active+$radius}: 0.5rem;
93
- #{$theme+$button+$active+$transition}: all 50ms ease-in-out;
94
-
95
- // text button
96
- #{$theme+$textbutton+$font+$weight}: 700;
97
-
98
- // font
99
- #{$theme+$font+$family}: Inter;
100
- #{$theme+$font+$size}: 0.9rem;
101
- #{$theme+$font+$weight}: 400;
102
-
103
- // header
104
- #{$theme+$header+$color}: 255, 255, 255;
105
- #{$theme+$header+$font+$family}: Inter;
106
- #{$theme+$header+$font+$size}: 1.2rem;
107
- #{$theme+$header+$font+$weight}: 700;
108
- #{$theme+$header+$padding+$vertical}: 1rem;
109
- #{$theme+$header+$padding+$horizontal}: 0.5rem;
110
- }
111
-
112
- .level1 {
113
- color: rgb(var(#{$theme+$color}));
114
-
115
- #{$theme+$color}: 255, 255, 255;
116
- #{$theme+$background}: 51, 51, 51;
117
- #{$theme+$border}: 1px solid #666666;
118
- #{$theme+$accent}: 118, 140, 231;
119
- #{$theme+$radius}: 0.5rem;
120
- #{$theme+$font+$family}: Inter;
121
- #{$theme+$font+$radius}: 0.9rem;
122
- #{$theme+$font+$weight}: 400;
123
- #{$theme+$padding}: 0.75rem;
124
- #{$theme+$gap}: 0.5rem;
125
- #{$theme+$transition}: all 200ms ease-in-out;
126
- #{$theme+$separator+$size}: 1px;
127
- #{$theme+$separator+$color}: 85, 85, 85;
128
-
129
- // heading
130
- #{$theme+$heading+$h1+$weight}: 800;
131
- #{$theme+$heading+$h1+$size}: 3rem;
132
- #{$theme+$heading+$h2+$weight}: 700;
133
- #{$theme+$heading+$h2+$size}: 2.5rem;
134
- #{$theme+$heading+$h3+$weight}: 600;
135
- #{$theme+$heading+$h3+$size}: 2rem;
136
- #{$theme+$heading+$h4+$weight}: 500;
137
- #{$theme+$heading+$h4+$size}: 1.5rem;
138
- #{$theme+$heading+$h5+$weight}: 500;
139
- #{$theme+$heading+$h5+$size}: 1rem;
140
- #{$theme+$heading+$h6+$weight}: 500;
141
- #{$theme+$heading+$h6+$size}: 0.875rem;
142
-
143
- // input
144
- #{$theme+$input+$color}: 255, 255, 255;
145
- #{$theme+$input+$background}: 34, 34, 34;
146
- #{$theme+$input+$border}: 1px solid #444444;
147
- #{$theme+$input+$radius}: 0.5rem;
148
- #{$theme+$input+$height}: 2rem;
149
- #{$theme+$input+$padding+$horizontal}: 0.5rem;
150
- #{$theme+$input+$transition}: all 0.2s ease-in-out;
151
- // focus
152
- #{$theme+$input+$focus+$color}: 255, 255, 255;
153
- #{$theme+$input+$focus+$background}: 51, 51, 51;
154
- #{$theme+$input+$focus+$border}: 1px solid #666666;
155
-
156
- // button
157
- #{$theme+$button+$color}: 255, 255, 255;
158
- #{$theme+$button+$background}: 68, 68, 68;
159
- #{$theme+$button+$border}: 0px solid #444444;
160
- #{$theme+$button+$font+$size}: 0.9rem;
161
- #{$theme+$button+$font+$weight}: 400;
162
- #{$theme+$button+$radius}: 0.5rem;
163
- #{$theme+$button+$padding+$horizontal}: 0.5rem;
164
- #{$theme+$button+$transition}: all 0.2s ease-in-out;
165
- // hover
166
- #{$theme+$button+$hover+$color}: 255, 255, 255;
167
- #{$theme+$button+$hover+$background}: 85, 85, 85;
168
- #{$theme+$button+$hover+$border}: 0px solid #666666;
169
- #{$theme+$button+$hover+$radius}: 0.5rem;
170
- #{$theme+$button+$hover+$transition}: all 50ms ease-in-out;
171
- // active
172
- #{$theme+$button+$active+$color}: 0, 0, 0;
173
- #{$theme+$button+$active+$background}: 102, 102, 102;
174
- #{$theme+$button+$active+$border}: 0px solid #666666;
175
- #{$theme+$button+$active+$radius}: 0.5rem;
176
-
177
- // header
178
- #{$theme+$header+$color}: 255, 255, 255;
179
- #{$theme+$header+$font+$family}: Inter;
180
- #{$theme+$header+$font+$size}: 1.2rem;
181
- #{$theme+$header+$font+$weight}: 700;
182
- #{$theme+$header+$padding+$vertical}: 0.5rem;
183
- #{$theme+$header+$padding+$horizontal}: 0.25rem;
184
- }
185
-
186
- .level2 {
187
- color: rgb(var(#{$theme+$color}));
188
-
189
- #{$theme+$color}: 255, 255, 255;
190
- #{$theme+$background}: 68, 68, 68;
191
- #{$theme+$border}: 1px solid #666666;
192
- #{$theme+$accent}: 118, 140, 231;
193
- #{$theme+$radius}: 0.25rem;
194
- #{$theme+$padding}: 0.5rem;
195
- #{$theme+$gap}: 0.75rem;
196
- #{$theme+$transition}: all 200ms ease-in-out;
197
- #{$theme+$separator+$size}: 1px;
198
- #{$theme+$separator+$color}: 85, 85, 85;
199
-
200
- // heading
201
- #{$theme+$heading+$h1+$weight}: 900;
202
- #{$theme+$heading+$h1+$size}: 3rem;
203
- #{$theme+$heading+$h2+$weight}: 700;
204
- #{$theme+$heading+$h2+$size}: 2rem;
205
- #{$theme+$heading+$h3+$weight}: 600;
206
- #{$theme+$heading+$h3+$size}: 1.5rem;
207
- #{$theme+$heading+$h4+$weight}: 500;
208
- #{$theme+$heading+$h4+$size}: 1.25rem;
209
- #{$theme+$heading+$h5+$weight}: 500;
210
- #{$theme+$heading+$h5+$size}: 1rem;
211
- #{$theme+$heading+$h6+$weight}: 500;
212
- #{$theme+$heading+$h6+$size}: 0.875rem;
213
-
214
- // text button
215
- #{$theme+$textbutton+$font+$weight}: 700;
216
-
217
- // font
218
- #{$theme+$font+$family}: Inter;
219
- #{$theme+$font+$size}: 0.9rem;
220
- #{$theme+$font+$weight}: 400;
221
-
222
- // input
223
- #{$theme+$input+$color}: 255, 255, 255;
224
- #{$theme+$input+$background}: 34, 34, 34;
225
- #{$theme+$input+$border}: 1px solid #444444;
226
- #{$theme+$input+$radius}: 0.5rem;
227
- #{$theme+$input+$height}: 2rem;
228
- #{$theme+$input+$padding+$horizontal}: 0.5rem;
229
- #{$theme+$input+$transition}: all 0.2s ease-in-out;
230
- // focus
231
- #{$theme+$input+$focus+$color}: 255, 255, 255;
232
- #{$theme+$input+$focus+$background}: 51, 51, 51;
233
- #{$theme+$input+$focus+$border}: 1px solid #666666;
234
-
235
- // button
236
- #{$theme+$button+$color}: 255, 255, 255;
237
- #{$theme+$button+$background}: 85, 85, 85;
238
- #{$theme+$button+$border}: 0px solid #666666;
239
- #{$theme+$button+$font+$family}: Inter;
240
- #{$theme+$button+$font+$size}: 0.9rem;
241
- #{$theme+$button+$font+$weight}: 400;
242
- #{$theme+$button+$radius}: 0.25rem;
243
- #{$theme+$button+$padding+$horizontal}: 0.5rem;
244
- #{$theme+$button+$transition}: all 0.2s ease-in-out;
245
- // hover
246
- #{$theme+$button+$hover+$color}: 255, 255, 255;
247
- #{$theme+$button+$hover+$background}: 102, 102, 102;
248
- #{$theme+$button+$hover+$border}: 0px solid #666666;
249
- #{$theme+$button+$hover+$radius}: 0.25rem;
250
- #{$theme+$button+$hover+$transition}: all 50ms ease-in-out;
251
- // active
252
- #{$theme+$button+$active+$color}: 0, 0, 0;
253
- #{$theme+$button+$active+$background}: 102, 102, 102;
254
- #{$theme+$button+$active+$border}: 0px solid #666666;
255
- #{$theme+$button+$active+$radius}: 0.25rem;
256
-
257
- // header
258
- #{$theme+$header+$color}: 255, 255, 255;
259
- #{$theme+$header+$font+$family}: Inter;
260
- #{$theme+$header+$font+$size}: 1.2rem;
261
- #{$theme+$header+$font+$weight}: 700;
262
- #{$theme+$header+$padding+$vertical}: 0.5rem;
263
- #{$theme+$header+$padding+$horizontal}: 0.25rem;
264
- }
265
-
266
- .level3 {
267
- color: rgb(var(#{$theme+$color}));
268
-
269
- #{$theme+$color}: 255, 255, 255;
270
- #{$theme+$background}: 85, 85, 85;
271
- #{$theme+$border}: 1px solid #666666;
272
- #{$theme+$accent}: 118, 140, 231;
273
- #{$theme+$radius}: 1px;
274
- #{$theme+$padding}: 0.5rem;
275
- #{$theme+$gap}: 1rem;
276
- #{$theme+$transition}: all 200ms ease-in-out;
277
- #{$theme+$separator+$size}: 1px;
278
- #{$theme+$separator+$color}: 85, 85, 85;
279
-
280
- // heading
281
- #{$theme+$heading+$h1+$weight}: 900;
282
- #{$theme+$heading+$h1+$size}: 3rem;
283
- #{$theme+$heading+$h2+$weight}: 700;
284
- #{$theme+$heading+$h2+$size}: 2rem;
285
- #{$theme+$heading+$h3+$weight}: 600;
286
- #{$theme+$heading+$h3+$size}: 1.5rem;
287
- #{$theme+$heading+$h4+$weight}: 500;
288
- #{$theme+$heading+$h4+$size}: 1.25rem;
289
- #{$theme+$heading+$h5+$weight}: 500;
290
- #{$theme+$heading+$h5+$size}: 1rem;
291
- #{$theme+$heading+$h6+$weight}: 500;
292
- #{$theme+$heading+$h6+$size}: 0.875rem;
293
-
294
- // text button
295
- #{$theme+$textbutton+$font+$weight}: 700;
296
-
297
- // font
298
- #{$theme+$family}: Inter;
299
- #{$theme+$size}: 0.9rem;
300
- #{$theme+$weight}: 400;
301
-
302
- // input
303
- #{$theme+$input+$color}: 255, 255, 255;
304
- #{$theme+$input+$background}: 34, 34, 34;
305
- #{$theme+$input+$border}: 1px solid #444444;
306
- #{$theme+$input+$radius}: 0.5rem;
307
- #{$theme+$input+$height}: 2rem;
308
- #{$theme+$input+$padding+$horizontal}: 0.5rem;
309
- #{$theme+$input+$transition}: all 0.2s ease-in-out;
310
- // focus
311
- #{$theme+$input+$focus+$color}: 255, 255, 255;
312
- #{$theme+$input+$focus+$background}: 51, 51, 51;
313
- #{$theme+$input+$focus+$border}: 1px solid #666666;
314
-
315
- // button
316
- #{$theme+$button+$color}: 255, 255, 255;
317
- #{$theme+$button+$background}: 102, 102, 102;
318
- #{$theme+$button+$border}: 0px solid #666666;
319
- #{$theme+$button+$font+$family}: Inter;
320
- #{$theme+$button+$font+$size}: 0.9rem;
321
- #{$theme+$button+$font+$weight}: 400;
322
- #{$theme+$button+$radius}: 0.25rem;
323
- #{$theme+$button+$padding+$horizontal}: 0.5rem;
324
- // hover
325
- #{$theme+$button+$hover+$color}: 255, 255, 255;
326
- #{$theme+$button+$hover+$background}: 119, 119, 119;
327
- #{$theme+$button+$hover+$border}: 0px solid #777777;
328
- #{$theme+$button+$hover+$radius}: 0.25rem;
329
- #{$theme+$button+$hover+$transition}: all 50ms ease-in-out;
330
- // active
331
- #{$theme+$button+$active+$color}: 0, 0, 0;
332
- #{$theme+$button+$active+$background}: 119, 119, 119;
333
- #{$theme+$button+$active+$border}: 0px solid #777777;
334
- #{$theme+$button+$active+$radius}: 0.25rem;
335
-
336
- // header
337
- #{$theme+$header+$color}: 255, 255, 255;
338
- #{$theme+$header+$font+$family}: Inter;
339
- #{$theme+$header+$font+$size}: 1.2rem;
340
- #{$theme+$header+$font+$weight}: 700;
341
- #{$theme+$header+$padding+$vertical}: 0.5rem;
342
- #{$theme+$header+$padding+$horizontal}: 0.25rem;
343
- }
344
-
345
- .mobile {
346
- .level0 {
347
- #{$theme+$input+$height}: 2.5rem;
348
- }
349
-
350
- .level1 {
351
- #{$theme+$input+$height}: 2.5rem;
352
- }
353
-
354
- .level2 {
355
- #{$theme+$input+$height}: 2.5rem;
356
- }
357
-
358
- .level3 {
359
- #{$theme+$input+$height}: 2.5rem;
360
- }
361
- }
@@ -1,7 +0,0 @@
1
- @charset "UTF-8";
2
- /*!
3
- * Copyright ©2025 Ewsgit <https://ewsgit.uk> and YourDash <https://yourdash.ewsgit.uk> contributors.
4
- * YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
5
- */
6
-
7
- /*# sourceMappingURL=themeValues.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["themeValues.scss"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA","file":"themeValues.css"}
@@ -1,129 +0,0 @@
1
- /*!
2
- * Copyright ©2025 Ewsgit <https://ewsgit.uk> and YourDash <https://yourdash.ewsgit.uk> contributors.
3
- * YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
4
- */
5
-
6
- $theme: "--ut";
7
- $button: "btn";
8
- $hover: "hvr";
9
- $active: "atv";
10
- $padding: "pdn";
11
- $border: "brd";
12
- $radius: "rad";
13
- $accent: "acn";
14
- $subcolor: "scl";
15
- $color: "col";
16
- $background: "bgn";
17
- $gap: "gap";
18
- $transition: "trans";
19
- $font: "font";
20
- $size: "size";
21
- $weight: "wgt";
22
- $family: "fam";
23
- $vertical: "vert";
24
- $horizontal: "horiz";
25
- $header: "hed";
26
- $separator: "sep";
27
- $height: "hei";
28
- $width: "wid";
29
- $heading: "hed";
30
- $input: "inp";
31
- $focus: "foc";
32
- $textbutton: "txb";
33
- $h1: "he1";
34
- $h2: "he2";
35
- $h3: "he3";
36
- $h4: "he4";
37
- $h5: "he5";
38
- $h6: "he6";
39
- $scrollbar: "scrlbr";
40
-
41
- // General
42
- $UKColor: var(#{$theme+$color});
43
- $UKSubColor: var(#{$theme+$subcolor});
44
- $UKBackground: var(#{$theme+$background});
45
- $UKAccent: var(#{$theme+$accent});
46
- $UKBorder: var(#{$theme+$border});
47
- $UKRadius: var(#{$theme+$radius});
48
- $UKPadding: var(#{$theme+$padding});
49
- $UKGap: var(#{$theme+$gap});
50
- $UKTransition: var(#{$theme+$transition});
51
- $UKRawTransition: var(#{$theme+$transition+$transition});
52
- $UKSeparatorSize: var(#{$theme+$separator+$size});
53
- $UKSeparatorColor: var(#{$theme+$separator+$color});
54
- $UKScrollbarWidth: var(#{$theme+$scrollbar+$width});
55
- $UKScrollbarRadius: var(#{$theme+$scrollbar+$radius});
56
-
57
- // Heading
58
- $UKHeadingH1Weight: var(#{$theme+$heading+$h1+$weight});
59
- $UKHeadingH1Size: var(#{$theme+$heading+$h1+$size});
60
- $UKHeadingH2Weight: var(#{$theme+$heading+$h2+$weight});
61
- $UKHeadingH2Size: var(#{$theme+$heading+$h2+$size});
62
- $UKHeadingH3Weight: var(#{$theme+$heading+$h3+$weight});
63
- $UKHeadingH3Size: var(#{$theme+$heading+$h3+$size});
64
- $UKHeadingH4Weight: var(#{$theme+$heading+$h4+$weight});
65
- $UKHeadingH4Size: var(#{$theme+$heading+$h4+$size});
66
- $UKHeadingH5Weight: var(#{$theme+$heading+$h5+$weight});
67
- $UKHeadingH5Size: var(#{$theme+$heading+$h5+$size});
68
- $UKHeadingH6Weight: var(#{$theme+$heading+$h6+$weight});
69
- $UKHeadingH6Size: var(#{$theme+$heading+$h6+$size});
70
-
71
- // Input
72
- $UKInputColor: var(#{$theme+$input+$color});
73
- $UKInputBackground: var(#{$theme+$input+$background});
74
- $UKInputBorder: var(#{$theme+$input+$border});
75
- $UKInputRadius: var(#{$theme+$input+$radius});
76
- $UKInputHeight: var(#{$theme+$input+$height});
77
- $UKInputPaddingHorizontal: var(#{$theme+$input+$padding+$horizontal});
78
- $UKInputTransition: var(#{$theme+$input+$transition});
79
- // Input:Focus
80
- $UKInputFocusColor: var(#{$theme+$input+$focus+$color});
81
- $UKInputFocusBackground: var(#{$theme+$input+$focus+$background});
82
- $UKInputFocusBorder: var(#{$theme+$input+$focus+$border});
83
-
84
- // Button
85
- $UKButtonColor: var(#{$theme+$button+$color});
86
- $UKButtonBackground: var(#{$theme+$button+$background});
87
- $UKButtonBorder: var(#{$theme+$button+$border});
88
- $UKButtonFontSize: var(#{$theme+$button+$font+$size});
89
- $UKButtonFontWeight: var(#{$theme+$button+$font+$weight});
90
- $UKButtonRadius: var(#{$theme+$button+$radius});
91
- $UKButtonPaddingHorizontal: var(#{$theme+$button+$padding+$horizontal});
92
- $UKButtonTransition: var(#{$theme+$button+$transition});
93
- // Button:Hover
94
- $UKButtonHoverColor: var(#{$theme+$button+$hover+$color});
95
- $UKButtonHoverBackground: var(#{$theme+$button+$hover+$background});
96
- $UKButtonHoverBorder: var(#{$theme+$button+$hover+$border});
97
- $UKButtonHoverRadius: var(#{$theme+$button+$hover+$radius});
98
- $UKButtonHoverTransition: var(#{$theme+$button+$hover+$transition});
99
- // Button:Active
100
- $UKButtonActiveColor: var(#{$theme+$button+$active+$color});
101
- $UKButtonActiveBackground: var(#{$theme+$button+$active+$background});
102
- $UKButtonActiveBorder: var(#{$theme+$button+$active+$border});
103
- $UKButtonActiveRadius: var(#{$theme+$button+$active+$radius});
104
- $UKButtonActiveTransition: var(#{$theme+$button+$active+$transition});
105
-
106
- // TextButton
107
- $UKTextButtonFontWeight: var(#{$theme+$textbutton+$font+$weight});
108
-
109
- // Font
110
- $UKFontFamily: var(#{$theme+$font+$family});
111
- $UKFontSize: var(#{$theme+$font+$size});
112
- $UKFontWeight: var(#{$theme+$font+$weight});
113
-
114
- // Header
115
- $UKHeaderColor: var(#{$theme+$header+$color});
116
- $UKHeaderFontFamily: var(#{$theme+$header+$font+$family});
117
- $UKHeaderFontSize: var(#{$theme+$header+$font+$size});
118
- $UKHeaderFontWeight: var(#{$theme+$header+$font+$weight});
119
- $UKHeaderPaddingVertial: var(#{$theme+$header+$padding+$vertical});
120
- $UKHeaderPaddingHorizontal: var(#{$theme+$header+$padding+$horizontal});
121
-
122
- $sizeMobile: 440px;
123
- $sizeLargeMobile: 560px;
124
- $sizeTablet: 768px;
125
- $sizeLargeTablet: 960px;
126
- $sizeSmallDesktop: 1200px;
127
- $sizeMediumDesktop: 1440px;
128
- $sizeLargeDesktop: 1920px;
129
- $sizeWideDesktop: 2560px;
@@ -1,47 +0,0 @@
1
- /*
2
- * Copyright ©2025 Ewsgit<https://github.com/ewsgit> and YourDash<https://github.com/yourdash> contributors.
3
- * YourDash is licensed under the MIT License. (https://ewsgit.mit-license.org)
4
- */
5
-
6
- import { FC, useEffect, useRef, useState } from "react";
7
-
8
- const HasBeenShown: FC<{
9
- className?: string;
10
- onSeen: () => void;
11
- }> = ({ className, onSeen }) => {
12
- const [hasBeenSeen, setHasBeenSeen] = useState(false);
13
- const ref = useRef<HTMLDivElement>(null);
14
-
15
- useEffect(() => {
16
- if (!ref.current) return;
17
-
18
- const current = ref.current;
19
-
20
- const observer = new IntersectionObserver((interaction) => {
21
- if (interaction[0].isIntersecting) {
22
- onSeen();
23
- observer.disconnect();
24
- setHasBeenSeen(true);
25
- }
26
- });
27
-
28
- observer.observe(current);
29
-
30
- return () => {
31
- observer.disconnect();
32
- };
33
- }, []);
34
-
35
- if (hasBeenSeen) {
36
- return null;
37
- }
38
-
39
- return (
40
- <div
41
- ref={ref}
42
- className={className}
43
- />
44
- );
45
- };
46
-
47
- export default HasBeenShown;
@@ -1,83 +0,0 @@
1
- /*
2
- * Copyright ©2025 Ewsgit<https://github.com/ewsgit> and YourDash<https://github.com/yourdash> contributors.
3
- * YourDash is licensed under the MIT License. (https://ewsgit.mit-license.org)
4
- */
5
-
6
- import { FC, useEffect, useRef } from "react";
7
-
8
- const OnInView: FC<{
9
- className?: string;
10
- onEnterView?: (direction: "up" | "down" | "left" | "right") => void;
11
- onLeaveView?: (direction: "up" | "down" | "left" | "right") => void;
12
- }> = ({ className, onEnterView, onLeaveView }) => {
13
- const isInView = useRef(false);
14
- const ref = useRef<HTMLDivElement>(null);
15
-
16
- useEffect(() => {
17
- if (!ref.current) return;
18
-
19
- const current = ref.current;
20
-
21
- const handleScroll = () => {
22
- const { top, bottom, left, right } = current.getBoundingClientRect();
23
-
24
- if (!isInView.current) {
25
- if (top < 0) {
26
- onEnterView?.("up");
27
- isInView.current = true;
28
- return;
29
- } else if (bottom > window.innerHeight) {
30
- onEnterView?.("down");
31
- isInView.current = true;
32
- return;
33
- } else if (left < 0) {
34
- onEnterView?.("left");
35
- isInView.current = true;
36
- return;
37
- } else if (right > window.innerWidth) {
38
- onEnterView?.("right");
39
- isInView.current = true;
40
- return;
41
- }
42
- }
43
-
44
- if (top > window.innerHeight) {
45
- onLeaveView?.("down");
46
- isInView.current = false;
47
- return;
48
- } else if (bottom < 0) {
49
- onLeaveView?.("up");
50
- isInView.current = false;
51
- return;
52
- } else if (left > window.innerWidth) {
53
- onLeaveView?.("right");
54
- isInView.current = false;
55
- return;
56
- } else if (right < 0) {
57
- onLeaveView?.("left");
58
- isInView.current = false;
59
- return;
60
- }
61
- };
62
-
63
- const observer = new IntersectionObserver(() => {
64
- handleScroll();
65
- });
66
-
67
- observer.observe(current);
68
-
69
- return () => {
70
- observer.disconnect();
71
- };
72
- }, []);
73
-
74
- return (
75
- <div
76
- ref={ref}
77
- style={{ height: 1, width: 1 }}
78
- className={className}
79
- />
80
- );
81
- };
82
-
83
- export default OnInView;